@getflip/swirl-components-react 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/dist/{flip-action-list-item.entry.8a7c3ed5.js → flip-action-list-item.entry.bfe816d0.js} +2 -2
  2. package/dist/{flip-action-list-section.entry.da0cdb9e.js → flip-action-list-section.entry.8072859c.js} +1 -1
  3. package/dist/{flip-action-list.entry.b8a1ea41.js → flip-action-list.entry.07c4e8cb.js} +1 -1
  4. package/dist/{flip-avatar-group.entry.b0e66358.js → flip-avatar-group.entry.f987aa8b.js} +18 -9
  5. package/dist/{flip-avatar.entry.6a8f2e19.js → flip-avatar.entry.7be29e5c.js} +19 -10
  6. package/dist/{flip-badge.entry.a6d07965.js → flip-badge.entry.bb0eb78d.js} +1 -1
  7. package/dist/{flip-banner.entry.f53786a0.js → flip-banner.entry.50b72a3f.js} +1 -1
  8. package/dist/flip-button-group.entry.9261c585.js +20 -0
  9. package/dist/flip-button.entry.98440a9e.js +35 -0
  10. package/dist/{flip-checkbox.entry.ade04b9c.js → flip-checkbox.entry.56d1e132.js} +2 -2
  11. package/dist/{flip-chip.entry.42861041.js → flip-chip.entry.e2be5143.js} +1 -1
  12. package/dist/{flip-date-input.entry.adafe713.js → flip-date-input.entry.2d5088ea.js} +1 -1
  13. package/dist/{flip-date-picker_3.entry.4a72cca9.js → flip-date-picker_3.entry.d61d1842.js} +82 -77
  14. package/dist/{flip-description-list-item.entry.0844c111.js → flip-description-list-item.entry.ebdd7136.js} +1 -1
  15. package/dist/{flip-description-list.entry.cdb5ba16.js → flip-description-list.entry.48a4d48b.js} +1 -1
  16. package/dist/{flip-dialog.entry.cdfca16a.js → flip-dialog.entry.bec58ff3.js} +2 -2
  17. package/dist/{flip-empty-state.entry.77f9c8ed.js → flip-empty-state.entry.d125feea.js} +1 -1
  18. package/dist/{flip-file-uploader.entry.43c0b766.js → flip-file-uploader.entry.d8919920.js} +2 -2
  19. package/dist/{flip-file-viewer-audio_6.entry.c9978e1a.js → flip-file-viewer-audio_6.entry.6ac11dbe.js} +697 -697
  20. package/dist/{flip-file-viewer.entry.85af31ff.js → flip-file-viewer.entry.66629b65.js} +3 -3
  21. package/dist/{flip-form-control.entry.ec90cfb9.js → flip-form-control.entry.c45d4428.js} +1 -1
  22. package/dist/{flip-form-group.entry.6256d521.js → flip-form-group.entry.52e6ee89.js} +4 -4
  23. package/dist/{flip-heading.entry.472e3005.js → flip-heading.entry.b20bb368.js} +1 -1
  24. package/dist/{flip-icon-add-photo.entry.d8ca058c.js → flip-icon-add-photo.entry.897fe115.js} +1 -1
  25. package/dist/{flip-icon-add.entry.79a8d7e6.js → flip-icon-add.entry.a04d115d.js} +1 -1
  26. package/dist/{flip-icon-admin-panel-settings.entry.abfc03bf.js → flip-icon-admin-panel-settings.entry.d1c445fd.js} +1 -1
  27. package/dist/{flip-icon-arrow-back.entry.eff9e6a3.js → flip-icon-arrow-back.entry.e054a0e8.js} +1 -1
  28. package/dist/{flip-icon-arrow-forward.entry.b0017297.js → flip-icon-arrow-forward.entry.ceea49fe.js} +1 -1
  29. package/dist/flip-icon-arrow-left_3.entry.ec0b28c1.js +35 -0
  30. package/dist/{flip-icon-arrow-right-small.entry.dd9ec828.js → flip-icon-arrow-right-small.entry.88470f4b.js} +1 -1
  31. package/dist/{flip-icon-attachment.entry.d41db045.js → flip-icon-attachment.entry.c141c860.js} +1 -1
  32. package/dist/{flip-icon-cancel.entry.c5b57f7f.js → flip-icon-cancel.entry.07a0efa7.js} +1 -1
  33. package/dist/{flip-icon-chat-bubble.entry.32859e94.js → flip-icon-chat-bubble.entry.13a6899b.js} +1 -1
  34. package/dist/{flip-icon-check-circle.entry.cf0be0f3.js → flip-icon-check-circle.entry.4c134688.js} +1 -1
  35. package/dist/{flip-icon-check-small.entry.c28df931.js → flip-icon-check-small.entry.1da0f061.js} +1 -1
  36. package/dist/{flip-icon-check-strong.entry.756abe1c.js → flip-icon-check-strong.entry.819065e2.js} +1 -1
  37. package/dist/{flip-icon-check.entry.71f246f6.js → flip-icon-check.entry.e9e18ec0.js} +1 -1
  38. package/dist/{flip-icon-chevron-left.entry.76299ff3.js → flip-icon-chevron-left.entry.8b4f8813.js} +1 -1
  39. package/dist/{flip-icon-chevron-right.entry.56cd2638.js → flip-icon-chevron-right.entry.d32eba9e.js} +1 -1
  40. package/dist/{flip-icon-close-small.entry.d5bce874.js → flip-icon-close-small.entry.e18fcac6.js} +1 -1
  41. package/dist/{flip-icon-close.entry.1c183b2c.js → flip-icon-close.entry.30a8abc3.js} +1 -1
  42. package/dist/{flip-icon-cloud-upload.entry.780eefd8.js → flip-icon-cloud-upload.entry.6412d35e.js} +1 -1
  43. package/dist/{flip-icon-comment.entry.9c85f2af.js → flip-icon-comment.entry.731b5907.js} +1 -1
  44. package/dist/{flip-icon-copy.entry.33ed327d.js → flip-icon-copy.entry.c29519f3.js} +1 -1
  45. package/dist/{flip-icon-date-range.entry.739ecf4e.js → flip-icon-date-range.entry.d6dea969.js} +1 -1
  46. package/dist/{flip-icon-delete.entry.f3cba347.js → flip-icon-delete.entry.e99d814a.js} +1 -1
  47. package/dist/{flip-icon-description.entry.d0f9e65c.js → flip-icon-description.entry.8448b398.js} +1 -1
  48. package/dist/{flip-icon-edit.entry.7b9f186f.js → flip-icon-edit.entry.3ae910b7.js} +1 -1
  49. package/dist/{flip-icon-emoji-mood.entry.e0b32fe1.js → flip-icon-emoji-mood.entry.89308bc3.js} +1 -1
  50. package/dist/{flip-icon-emoji-satisfied.entry.5ef82f25.js → flip-icon-emoji-satisfied.entry.5a9bca01.js} +1 -1
  51. package/dist/{flip-icon-error_3.entry.87fcf907.js → flip-icon-error_3.entry.f44ffe60.js} +1 -1
  52. package/dist/{flip-icon-expand-less_3.entry.8f8fb508.js → flip-icon-expand-less_3.entry.6e9d656c.js} +1 -1
  53. package/dist/{flip-icon-expand-more.entry.d2c9bf62.js → flip-icon-expand-more.entry.d0acac42.js} +1 -1
  54. package/dist/{flip-icon-file.entry.0d1868a4.js → flip-icon-file.entry.24508e1d.js} +1 -1
  55. package/dist/{flip-icon-folder-shared.entry.f1f4317b.js → flip-icon-folder-shared.entry.c829f971.js} +1 -1
  56. package/dist/{flip-icon-fullscreen-exit.entry.168a2e77.js → flip-icon-fullscreen-exit.entry.4f7369df.js} +1 -1
  57. package/dist/{flip-icon-fullscreen.entry.d78bc3a4.js → flip-icon-fullscreen.entry.fe6d6998.js} +1 -1
  58. package/dist/{flip-icon-group-assign.entry.2116431e.js → flip-icon-group-assign.entry.ba88a447.js} +1 -1
  59. package/dist/{flip-icon-groups-custom.entry.415539b5.js → flip-icon-groups-custom.entry.eeaaa045.js} +1 -1
  60. package/dist/{flip-icon-groups.entry.25ce8212.js → flip-icon-groups.entry.fb62ee22.js} +1 -1
  61. package/dist/{flip-icon-image.entry.ce484f72.js → flip-icon-image.entry.75eebbb0.js} +1 -1
  62. package/dist/{flip-icon-info.entry.3f6c72bb.js → flip-icon-info.entry.e30b9669.js} +1 -1
  63. package/dist/{flip-icon-inventory.entry.fc8b1c79.js → flip-icon-inventory.entry.39ebc534.js} +1 -1
  64. package/dist/{flip-icon-like.entry.34ea69dc.js → flip-icon-like.entry.80e5f8b9.js} +1 -1
  65. package/dist/{flip-icon-link.entry.94b7dd90.js → flip-icon-link.entry.c99a2106.js} +1 -1
  66. package/dist/{flip-icon-lock.entry.3e9c3e72.js → flip-icon-lock.entry.5957290a.js} +1 -1
  67. package/dist/{flip-icon-logout.entry.57363229.js → flip-icon-logout.entry.c6240d44.js} +1 -1
  68. package/dist/{flip-icon-mail.entry.b37d0b32.js → flip-icon-mail.entry.65b32c8b.js} +1 -1
  69. package/dist/{flip-icon-manage-accounts.entry.fb4e9a6b.js → flip-icon-manage-accounts.entry.73cd3a27.js} +1 -1
  70. package/dist/{flip-icon-mention.entry.2bfbfa63.js → flip-icon-mention.entry.088e8573.js} +1 -1
  71. package/dist/{flip-icon-message.entry.2df9486d.js → flip-icon-message.entry.e7306c78.js} +1 -1
  72. package/dist/{flip-icon-more-horizontal.entry.7f45f170.js → flip-icon-more-horizontal.entry.9b6c4ab4.js} +1 -1
  73. package/dist/{flip-icon-more-vertikal.entry.8045a647.js → flip-icon-more-vertikal.entry.43a77373.js} +1 -1
  74. package/dist/{flip-icon-notifications-active.entry.f03b2fc4.js → flip-icon-notifications-active.entry.b48ff150.js} +1 -1
  75. package/dist/{flip-icon-notifications-off.entry.dd8c68fd.js → flip-icon-notifications-off.entry.b60ef6aa.js} +1 -1
  76. package/dist/{flip-icon-notifications.entry.edc9821c.js → flip-icon-notifications.entry.e2d0f244.js} +1 -1
  77. package/dist/{flip-icon-open-in-new.entry.ff63ea33.js → flip-icon-open-in-new.entry.bdcb5f7e.js} +1 -1
  78. package/dist/{flip-icon-people-alt.entry.aad60933.js → flip-icon-people-alt.entry.4c0917f0.js} +1 -1
  79. package/dist/{flip-icon-person-off.entry.59a3c96c.js → flip-icon-person-off.entry.4dba1b98.js} +1 -1
  80. package/dist/{flip-icon-person.entry.e69d335c.js → flip-icon-person.entry.57042a58.js} +1 -1
  81. package/dist/{flip-icon-phone.entry.d3656af0.js → flip-icon-phone.entry.3ad46317.js} +1 -1
  82. package/dist/{flip-icon-poll.entry.16e1615e.js → flip-icon-poll.entry.c14b718c.js} +1 -1
  83. package/dist/{flip-icon-print.entry.16e54d5b.js → flip-icon-print.entry.42bc6751.js} +1 -1
  84. package/dist/{flip-icon-recieved.entry.7a850323.js → flip-icon-recieved.entry.35cc64fd.js} +1 -1
  85. package/dist/{flip-icon-remove.entry.88fa105e.js → flip-icon-remove.entry.7ce5335b.js} +1 -1
  86. package/dist/{flip-icon-search-strong.entry.fd001082.js → flip-icon-search-strong.entry.d6722aba.js} +1 -1
  87. package/dist/{flip-icon-search.entry.2efaf023.js → flip-icon-search.entry.c2c88135.js} +1 -1
  88. package/dist/{flip-icon-send.entry.6a4cd99f.js → flip-icon-send.entry.6d3ed0a4.js} +1 -1
  89. package/dist/{flip-icon-settings.entry.44aec164.js → flip-icon-settings.entry.3ab04c76.js} +1 -1
  90. package/dist/{flip-icon-time-filled.entry.bced668e.js → flip-icon-time-filled.entry.050c61d7.js} +1 -1
  91. package/dist/{flip-icon-time-outlined.entry.36bb857d.js → flip-icon-time-outlined.entry.195df6e9.js} +1 -1
  92. package/dist/{flip-icon-user-assign.entry.f55379f5.js → flip-icon-user-assign.entry.60316828.js} +1 -1
  93. package/dist/{flip-icon-video-camera.entry.23798820.js → flip-icon-video-camera.entry.d376e2da.js} +1 -1
  94. package/dist/{flip-icon-warning.entry.ac7a7e4c.js → flip-icon-warning.entry.7484d16e.js} +1 -1
  95. package/dist/flip-lightbox.entry.cdffd089.js +110 -0
  96. package/dist/{flip-link.entry.31692150.js → flip-link.entry.145e89bf.js} +1 -1
  97. package/dist/{flip-list.entry.1eac3a62.js → flip-list.entry.fcece197.js} +1 -1
  98. package/dist/flip-modal.entry.f20fd032.js +63 -0
  99. package/dist/{flip-option-list-item.entry.f911c3b8.js → flip-option-list-item.entry.ed931c3c.js} +1 -1
  100. package/dist/{flip-option-list-section.entry.0f67d7d7.js → flip-option-list-section.entry.c0084261.js} +1 -1
  101. package/dist/{flip-option-list.entry.32d7928a.js → flip-option-list.entry.a07fd2d3.js} +1 -1
  102. package/dist/{flip-pagination.entry.278034c1.js → flip-pagination.entry.a8a4c1bf.js} +1 -1
  103. package/dist/{flip-progress-indicator.entry.99e10b2c.js → flip-progress-indicator.entry.8069914b.js} +1 -1
  104. package/dist/{flip-radio-group.entry.7cc7a065.js → flip-radio-group.entry.4046ee83.js} +2 -2
  105. package/dist/{flip-radio.entry.eacccab0.js → flip-radio.entry.941e407b.js} +2 -2
  106. package/dist/{flip-resource-list-file-item.entry.4fd698ae.js → flip-resource-list-file-item.entry.678596e2.js} +1 -1
  107. package/dist/{flip-resource-list-item.entry.d9efc26d.js → flip-resource-list-item.entry.3ba2f6c5.js} +1 -1
  108. package/dist/{flip-resource-list.entry.dca2afcd.js → flip-resource-list.entry.b5f4d108.js} +1 -1
  109. package/dist/{flip-search.entry.7a786fe8.js → flip-search.entry.05617d72.js} +1 -1
  110. package/dist/{flip-stack.entry.a2afebf5.js → flip-stack.entry.60b7e7d8.js} +1 -1
  111. package/dist/{flip-switch.entry.9e81c9b0.js → flip-switch.entry.51a1856d.js} +1 -1
  112. package/dist/{flip-tab.entry.b64631a4.js → flip-tab.entry.fd12f894.js} +1 -1
  113. package/dist/flip-tabs.entry.9462dbaa.js +67 -0
  114. package/dist/{flip-tag.entry.c888703b.js → flip-tag.entry.923d754e.js} +1 -1
  115. package/dist/{flip-text-input.entry.8deff49d.js → flip-text-input.entry.09a6024a.js} +4 -4
  116. package/dist/{flip-text.entry.4bcd3eae.js → flip-text.entry.634f95b3.js} +1 -1
  117. package/dist/{flip-theme-provider.entry.1b167993.js → flip-theme-provider.entry.ab641668.js} +1 -1
  118. package/dist/{flip-thumbnail.entry.5f2effe1.js → flip-thumbnail.entry.9d00d2f8.js} +1 -1
  119. package/dist/{flip-toast-provider.entry.870ddb2c.js → flip-toast-provider.entry.d0391c9a.js} +1 -1
  120. package/dist/{flip-toast.entry.f8bc132d.js → flip-toast.entry.fac8df58.js} +4 -4
  121. package/dist/{flip-tooltip.entry.e4e0b3a6.js → flip-tooltip.entry.f7d80b92.js} +1 -1
  122. package/dist/{flip-video-thumbnail.entry.855576fe.js → flip-video-thumbnail.entry.f45c61bc.js} +1 -1
  123. package/dist/{flip-visually-hidden.entry.8d93e0bb.js → flip-visually-hidden.entry.1099adf3.js} +1 -1
  124. package/dist/{index.b70d4c92.js → index.0ccdd659.js} +231 -230
  125. package/dist/stencil-generated/index.d.ts +1 -0
  126. package/dist/swirl-components-react.js +44 -43
  127. package/dist/swirl-components-react.umd.cjs +31 -29
  128. package/package.json +2 -2
  129. package/dist/flip-button-group.entry.0342e82d.js +0 -15
  130. package/dist/flip-button.entry.b752e108.js +0 -33
  131. package/dist/flip-icon-arrow-left.entry.234146e1.js +0 -15
  132. package/dist/flip-icon-arrow-right.entry.d4a36d98.js +0 -15
  133. package/dist/flip-icon-download.entry.9adb287e.js +0 -15
  134. package/dist/flip-modal.entry.5df13219.js +0 -61
  135. package/dist/flip-tabs.entry.a42a1989.js +0 -92
@@ -1,5 +1,5 @@
1
- import { r as Yt, h as Je, H as qt, g as qi } from "./index.b70d4c92.js";
2
- import { c as xr, a as Ut, g as Ki, b as Xr, d as Qi } from "./_commonjsHelpers-44457d8d.ba94af77.js";
1
+ import { r as Yt, h as Je, H as qt, g as qi } from "./index.0ccdd659.js";
2
+ import { c as kr, a as Ut, g as Ki, b as Xr, d as Qi } from "./_commonjsHelpers-44457d8d.ba94af77.js";
3
3
  import { g as Ji } from "./utils-b46bcd4f.79126bb2.js";
4
4
  import "react";
5
5
  import "react-dom";
@@ -12,7 +12,7 @@ const Zi = ":host{display:inline-flex;width:100%;height:100%}:host *{box-sizing:
12
12
  }
13
13
  };
14
14
  ea.style = Zi;
15
- var ta = xr(function(je, it) {
15
+ var ta = kr(function(je, it) {
16
16
  /* @license
17
17
  Papa Parse
18
18
  v5.3.2
@@ -37,7 +37,7 @@ var ta = xr(function(je, it) {
37
37
  return typeof p == "string" ? a = b.download ? new P(b) : new M(b) : p.readable === !0 && F(p.read) && F(p.on) ? a = new T(b) : (Fe.File && p instanceof File || p instanceof Object) && (a = new O(b)), a.stream(p);
38
38
  }, unparse: function(p, b) {
39
39
  var c = !1, t = !0, a = ",", h = `\r
40
- `, g = '"', E = g + g, B = !1, x = null, ne = !1;
40
+ `, g = '"', E = g + g, B = !1, k = null, ne = !1;
41
41
  (function() {
42
42
  if (typeof b == "object") {
43
43
  if (typeof b.delimiter != "string" || n.BAD_DELIMITERS.filter(function(z) {
@@ -45,7 +45,7 @@ var ta = xr(function(je, it) {
45
45
  }).length || (a = b.delimiter), (typeof b.quotes == "boolean" || typeof b.quotes == "function" || Array.isArray(b.quotes)) && (c = b.quotes), typeof b.skipEmptyLines != "boolean" && typeof b.skipEmptyLines != "string" || (B = b.skipEmptyLines), typeof b.newline == "string" && (h = b.newline), typeof b.quoteChar == "string" && (g = b.quoteChar), typeof b.header == "boolean" && (t = b.header), Array.isArray(b.columns)) {
46
46
  if (b.columns.length === 0)
47
47
  throw new Error("Option columns is empty");
48
- x = b.columns;
48
+ k = b.columns;
49
49
  }
50
50
  b.escapeChar !== void 0 && (E = b.escapeChar + g), (typeof b.escapeFormulae == "boolean" || b.escapeFormulae instanceof RegExp) && (ne = b.escapeFormulae instanceof RegExp ? b.escapeFormulae : /^[=+\-@\t\r].*$/);
51
51
  }
@@ -55,9 +55,9 @@ var ta = xr(function(je, it) {
55
55
  if (!p.length || Array.isArray(p[0]))
56
56
  return re(null, p, B);
57
57
  if (typeof p[0] == "object")
58
- return re(x || Object.keys(p[0]), p, B);
58
+ return re(k || Object.keys(p[0]), p, B);
59
59
  } else if (typeof p == "object")
60
- return typeof p.data == "string" && (p.data = JSON.parse(p.data)), Array.isArray(p.data) && (p.fields || (p.fields = p.meta && p.meta.fields || x), p.fields || (p.fields = Array.isArray(p.data[0]) ? p.fields : typeof p.data[0] == "object" ? Object.keys(p.data[0]) : []), Array.isArray(p.data[0]) || typeof p.data[0] == "object" || (p.data = [p.data])), re(p.fields || [], p.data || [], B);
60
+ return typeof p.data == "string" && (p.data = JSON.parse(p.data)), Array.isArray(p.data) && (p.fields || (p.fields = p.meta && p.meta.fields || k), p.fields || (p.fields = Array.isArray(p.data[0]) ? p.fields : typeof p.data[0] == "object" ? Object.keys(p.data[0]) : []), Array.isArray(p.data[0]) || typeof p.data[0] == "object" || (p.data = [p.data])), re(p.fields || [], p.data || [], B);
61
61
  throw new Error("Unable to serialize unrecognized input");
62
62
  function re(z, G, W) {
63
63
  var I = "";
@@ -117,22 +117,22 @@ var ta = xr(function(je, it) {
117
117
  }), t(), this;
118
118
  function t() {
119
119
  if (c.length !== 0) {
120
- var h, g, E, B, x = c[0];
120
+ var h, g, E, B, k = c[0];
121
121
  if (F(p.before)) {
122
- var ne = p.before(x.file, x.inputElem);
122
+ var ne = p.before(k.file, k.inputElem);
123
123
  if (typeof ne == "object") {
124
124
  if (ne.action === "abort")
125
- return h = "AbortError", g = x.file, E = x.inputElem, B = ne.reason, void (F(p.error) && p.error({ name: h }, g, E, B));
125
+ return h = "AbortError", g = k.file, E = k.inputElem, B = ne.reason, void (F(p.error) && p.error({ name: h }, g, E, B));
126
126
  if (ne.action === "skip")
127
127
  return void a();
128
- typeof ne.config == "object" && (x.instanceConfig = o.extend(x.instanceConfig, ne.config));
128
+ typeof ne.config == "object" && (k.instanceConfig = o.extend(k.instanceConfig, ne.config));
129
129
  } else if (ne === "skip")
130
130
  return void a();
131
131
  }
132
- var q = x.instanceConfig.complete;
133
- x.instanceConfig.complete = function(re) {
134
- F(q) && q(re, x.file, x.inputElem), a();
135
- }, n.parse(x.file, x.instanceConfig);
132
+ var q = k.instanceConfig.complete;
133
+ k.instanceConfig.complete = function(re) {
134
+ F(q) && q(re, k.file, k.inputElem), a();
135
+ }, n.parse(k.file, k.instanceConfig);
136
136
  } else
137
137
  F(p.complete) && p.complete();
138
138
  }
@@ -271,7 +271,7 @@ var ta = xr(function(je, it) {
271
271
  }, this);
272
272
  }
273
273
  function m(p) {
274
- var b, c, t, a = Math.pow(2, 53), h = -a, g = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, E = /^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/, B = this, x = 0, ne = 0, q = !1, re = !1, Z = [], z = { data: [], errors: [], meta: {} };
274
+ var b, c, t, a = Math.pow(2, 53), h = -a, g = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, E = /^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/, B = this, k = 0, ne = 0, q = !1, re = !1, Z = [], z = { data: [], errors: [], meta: {} };
275
275
  if (F(p.step)) {
276
276
  var G = p.step;
277
277
  p.step = function(Se) {
@@ -280,7 +280,7 @@ var ta = xr(function(je, it) {
280
280
  else {
281
281
  if (I(), z.data.length === 0)
282
282
  return;
283
- x += Se.data.length, p.preview && x > p.preview ? c.abort() : (z.data = z.data[0], G(z, B));
283
+ k += Se.data.length, p.preview && k > p.preview ? c.abort() : (z.data = z.data[0], G(z, B));
284
284
  }
285
285
  };
286
286
  }
@@ -339,30 +339,30 @@ var ta = xr(function(je, it) {
339
339
  var S = p.quoteChar || '"';
340
340
  if (p.newline || (p.newline = function(s, u) {
341
341
  s = s.substring(0, 1048576);
342
- var _ = new RegExp(y(u) + "([^]*?)" + y(u), "gm"), k = (s = s.replace(_, "")).split("\r"), L = s.split(`
343
- `), X = 1 < L.length && L[0].length < k[0].length;
344
- if (k.length === 1 || X)
342
+ var _ = new RegExp(y(u) + "([^]*?)" + y(u), "gm"), x = (s = s.replace(_, "")).split("\r"), L = s.split(`
343
+ `), X = 1 < L.length && L[0].length < x[0].length;
344
+ if (x.length === 1 || X)
345
345
  return `
346
346
  `;
347
- for (var J = 0, ie = 0; ie < k.length; ie++)
348
- k[ie][0] === `
347
+ for (var J = 0, ie = 0; ie < x.length; ie++)
348
+ x[ie][0] === `
349
349
  ` && J++;
350
- return J >= k.length / 2 ? `\r
350
+ return J >= x.length / 2 ? `\r
351
351
  ` : "\r";
352
352
  }(Se, S)), t = !1, p.delimiter)
353
353
  F(p.delimiter) && (p.delimiter = p.delimiter(Se), z.meta.delimiter = p.delimiter);
354
354
  else {
355
- var N = function(s, u, _, k, L) {
355
+ var N = function(s, u, _, x, L) {
356
356
  var X, J, ie, se;
357
357
  L = L || [",", " ", "|", ";", n.RECORD_SEP, n.UNIT_SEP];
358
358
  for (var he = 0; he < L.length; he++) {
359
359
  var le = L[he], fe = 0, ve = 0, we = 0;
360
360
  ie = void 0;
361
- for (var Ee = new D({ comments: k, delimiter: le, newline: u, preview: 10 }).parse(s), xe = 0; xe < Ee.data.length; xe++)
362
- if (_ && W(Ee.data[xe]))
361
+ for (var Ee = new D({ comments: x, delimiter: le, newline: u, preview: 10 }).parse(s), ke = 0; ke < Ee.data.length; ke++)
362
+ if (_ && W(Ee.data[ke]))
363
363
  we++;
364
364
  else {
365
- var Ne = Ee.data[xe].length;
365
+ var Ne = Ee.data[ke].length;
366
366
  ve += Ne, ie !== void 0 ? 0 < Ne && (fe += Math.abs(Ne - ie), ie = Ne) : ie = Ne;
367
367
  }
368
368
  0 < Ee.data.length && (ve /= Ee.data.length - we), (J === void 0 || fe <= J) && (se === void 0 || se < ve) && 1.99 < ve && (J = fe, X = le, se = ve);
@@ -396,17 +396,17 @@ var ta = xr(function(je, it) {
396
396
  ` && t !== "\r" && t !== `\r
397
397
  ` && (t = `
398
398
  `);
399
- var x = 0, ne = !1;
399
+ var k = 0, ne = !1;
400
400
  this.parse = function(q, re, Z) {
401
401
  if (typeof q != "string")
402
402
  throw new Error("Input must be a string");
403
- var z = q.length, G = c.length, W = t.length, I = a.length, ee = F(h), de = [], ye = [], Se = [], Y = x = 0;
403
+ var z = q.length, G = c.length, W = t.length, I = a.length, ee = F(h), de = [], ye = [], Se = [], Y = k = 0;
404
404
  if (!q)
405
405
  return se();
406
406
  if (E || E !== !1 && q.indexOf(b) === -1) {
407
407
  for (var C = q.split(t), S = 0; S < C.length; S++) {
408
- if (Se = C[S], x += Se.length, S !== C.length - 1)
409
- x += t.length;
408
+ if (Se = C[S], k += Se.length, S !== C.length - 1)
409
+ k += t.length;
410
410
  else if (Z)
411
411
  return se();
412
412
  if (!a || Se.substring(0, I) !== a) {
@@ -421,52 +421,52 @@ var ta = xr(function(je, it) {
421
421
  }
422
422
  return se();
423
423
  }
424
- for (var N = q.indexOf(c, x), j = q.indexOf(t, x), s = new RegExp(y(B) + y(b), "g"), u = q.indexOf(b, x); ; )
425
- if (q[x] !== b)
426
- if (a && Se.length === 0 && q.substring(x, x + I) === a) {
424
+ for (var N = q.indexOf(c, k), j = q.indexOf(t, k), s = new RegExp(y(B) + y(b), "g"), u = q.indexOf(b, k); ; )
425
+ if (q[k] !== b)
426
+ if (a && Se.length === 0 && q.substring(k, k + I) === a) {
427
427
  if (j === -1)
428
428
  return se();
429
- x = j + W, j = q.indexOf(t, x), N = q.indexOf(c, x);
429
+ k = j + W, j = q.indexOf(t, k), N = q.indexOf(c, k);
430
430
  } else if (N !== -1 && (N < j || j === -1))
431
- Se.push(q.substring(x, N)), x = N + G, N = q.indexOf(c, x);
431
+ Se.push(q.substring(k, N)), k = N + G, N = q.indexOf(c, k);
432
432
  else {
433
433
  if (j === -1)
434
434
  break;
435
- if (Se.push(q.substring(x, j)), ie(j + W), ee && (he(), ne))
435
+ if (Se.push(q.substring(k, j)), ie(j + W), ee && (he(), ne))
436
436
  return se();
437
437
  if (g && de.length >= g)
438
438
  return se(!0);
439
439
  }
440
440
  else
441
- for (u = x, x++; ; ) {
441
+ for (u = k, k++; ; ) {
442
442
  if ((u = q.indexOf(b, u + 1)) === -1)
443
- return Z || ye.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: de.length, index: x }), J();
443
+ return Z || ye.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: de.length, index: k }), J();
444
444
  if (u === z - 1)
445
- return J(q.substring(x, u).replace(s, b));
445
+ return J(q.substring(k, u).replace(s, b));
446
446
  if (b !== B || q[u + 1] !== B) {
447
447
  if (b === B || u === 0 || q[u - 1] !== B) {
448
448
  N !== -1 && N < u + 1 && (N = q.indexOf(c, u + 1)), j !== -1 && j < u + 1 && (j = q.indexOf(t, u + 1));
449
449
  var _ = X(j === -1 ? N : Math.min(N, j));
450
450
  if (q.substr(u + 1 + _, G) === c) {
451
- Se.push(q.substring(x, u).replace(s, b)), q[x = u + 1 + _ + G] !== b && (u = q.indexOf(b, x)), N = q.indexOf(c, x), j = q.indexOf(t, x);
451
+ Se.push(q.substring(k, u).replace(s, b)), q[k = u + 1 + _ + G] !== b && (u = q.indexOf(b, k)), N = q.indexOf(c, k), j = q.indexOf(t, k);
452
452
  break;
453
453
  }
454
- var k = X(j);
455
- if (q.substring(u + 1 + k, u + 1 + k + W) === t) {
456
- if (Se.push(q.substring(x, u).replace(s, b)), ie(u + 1 + k + W), N = q.indexOf(c, x), u = q.indexOf(b, x), ee && (he(), ne))
454
+ var x = X(j);
455
+ if (q.substring(u + 1 + x, u + 1 + x + W) === t) {
456
+ if (Se.push(q.substring(k, u).replace(s, b)), ie(u + 1 + x + W), N = q.indexOf(c, k), u = q.indexOf(b, k), ee && (he(), ne))
457
457
  return se();
458
458
  if (g && de.length >= g)
459
459
  return se(!0);
460
460
  break;
461
461
  }
462
- ye.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: de.length, index: x }), u++;
462
+ ye.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: de.length, index: k }), u++;
463
463
  }
464
464
  } else
465
465
  u++;
466
466
  }
467
467
  return J();
468
468
  function L(le) {
469
- de.push(le), Y = x;
469
+ de.push(le), Y = k;
470
470
  }
471
471
  function X(le) {
472
472
  var fe = 0;
@@ -477,10 +477,10 @@ var ta = xr(function(je, it) {
477
477
  return fe;
478
478
  }
479
479
  function J(le) {
480
- return Z || (le === void 0 && (le = q.substring(x)), Se.push(le), x = z, L(Se), ee && he()), se();
480
+ return Z || (le === void 0 && (le = q.substring(k)), Se.push(le), k = z, L(Se), ee && he()), se();
481
481
  }
482
482
  function ie(le) {
483
- x = le, L(Se), Se = [], j = q.indexOf(t, x);
483
+ k = le, L(Se), Se = [], j = q.indexOf(t, k);
484
484
  }
485
485
  function se(le) {
486
486
  return { data: de, errors: ye, meta: { delimiter: c, linebreak: t, aborted: ne, truncated: !!le, cursor: Y + (re || 0) } };
@@ -491,7 +491,7 @@ var ta = xr(function(je, it) {
491
491
  }, this.abort = function() {
492
492
  ne = !0;
493
493
  }, this.getCharIndex = function() {
494
- return x;
494
+ return k;
495
495
  };
496
496
  }
497
497
  function r(p) {
@@ -545,7 +545,7 @@ var ta = xr(function(je, it) {
545
545
  }), (P.prototype = Object.create(f.prototype)).constructor = P, (O.prototype = Object.create(f.prototype)).constructor = O, (M.prototype = Object.create(M.prototype)).constructor = M, (T.prototype = Object.create(f.prototype)).constructor = T, n;
546
546
  });
547
547
  });
548
- const ra = ":host{position:relative;display:inline-flex;width:100%;max-height:100%}:host *{box-sizing:border-box}.file-viewer-csv__csv{overflow:auto;width:100%;max-height:100%}.file-viewer-csv__table{margin-right:auto;margin-left:auto;border-collapse:collapse}.file-viewer-csv__cell{padding:var(--s-space-8);border:var(--s-border-width-default) solid var(--s-border-default)}.file-viewer-csv__spinner{position:absolute;display:flex;justify-content:center;align-items:center;background-color:rgba(0, 0, 0, 0.2);inset:0}.file-viewer-csv__error{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}", na = class {
548
+ const ra = ":host{position:relative;display:inline-flex;width:100%;max-height:100%}:host *{box-sizing:border-box}.file-viewer-csv__csv{overflow:auto;width:100%;max-height:100%;padding:var(--s-space-16);background-color:var(--s-background-default)}.file-viewer-csv__table{margin-right:auto;margin-left:auto;border-collapse:collapse}.file-viewer-csv__cell{padding:var(--s-space-8);border:var(--s-border-width-default) solid var(--s-border-default)}.file-viewer-csv__spinner{position:absolute;display:flex;justify-content:center;align-items:center;background-color:rgba(0, 0, 0, 0.2);inset:0}.file-viewer-csv__error{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}", na = class {
549
549
  constructor(je) {
550
550
  Yt(this, je), this.errorMessage = "File could not be loaded.";
551
551
  }
@@ -602,7 +602,7 @@ const ia = ":host{position:relative;display:inline-flex;max-height:100%}:host *{
602
602
  }
603
603
  };
604
604
  aa.style = ia;
605
- var sa = xr(function(je, it) {
605
+ var sa = kr(function(je, it) {
606
606
  /*!
607
607
  * DOMMatrix v1.0.3 (https://thednp.github.io/dommatrix/)
608
608
  * Copyright 2022 © thednp
@@ -618,8 +618,8 @@ var sa = xr(function(je, it) {
618
618
  }))
619
619
  throw TypeError('CSSMatrix: "' + r + '" must only have numbers.');
620
620
  if (A.length === 16) {
621
- var d = A[0], w = A[1], F = A[2], p = A[3], b = A[4], c = A[5], t = A[6], a = A[7], h = A[8], g = A[9], E = A[10], B = A[11], x = A[12], ne = A[13], q = A[14], re = A[15];
622
- l.m11 = d, l.a = d, l.m21 = b, l.c = b, l.m31 = h, l.m41 = x, l.e = x, l.m12 = w, l.b = w, l.m22 = c, l.d = c, l.m32 = g, l.m42 = ne, l.f = ne, l.m13 = F, l.m23 = t, l.m33 = E, l.m43 = q, l.m14 = p, l.m24 = a, l.m34 = B, l.m44 = re;
621
+ var d = A[0], w = A[1], F = A[2], p = A[3], b = A[4], c = A[5], t = A[6], a = A[7], h = A[8], g = A[9], E = A[10], B = A[11], k = A[12], ne = A[13], q = A[14], re = A[15];
622
+ l.m11 = d, l.a = d, l.m21 = b, l.c = b, l.m31 = h, l.m41 = k, l.e = k, l.m12 = w, l.b = w, l.m22 = c, l.d = c, l.m32 = g, l.m42 = ne, l.f = ne, l.m13 = F, l.m23 = t, l.m33 = E, l.m43 = q, l.m14 = p, l.m24 = a, l.m34 = B, l.m44 = re;
623
623
  } else if (A.length === 6) {
624
624
  var Z = A[0], z = A[1], G = A[2], W = A[3], I = A[4], ee = A[5];
625
625
  l.m11 = Z, l.a = Z, l.m12 = z, l.b = z, l.m21 = G, l.c = G, l.m22 = W, l.d = W, l.m41 = I, l.e = I, l.m42 = ee, l.f = ee;
@@ -674,10 +674,10 @@ var sa = xr(function(je, it) {
674
674
  else if (p.includes("matrix") && [6, 16].includes(c.length) && c.every(function(I) {
675
675
  return !Number.isNaN(+I);
676
676
  })) {
677
- var x = c.map(function(I) {
677
+ var k = c.map(function(I) {
678
678
  return Math.abs(I) < 1e-6 ? 0 : I;
679
679
  });
680
- A = A.multiply(We(x));
680
+ A = A.multiply(We(k));
681
681
  } else if (p === "translate3d" && E.every(function(I) {
682
682
  return !Number.isNaN(+I);
683
683
  }))
@@ -747,8 +747,8 @@ var sa = xr(function(je, it) {
747
747
  return d.m41 = r, d.e = r, d.m42 = l, d.f = l, d.m43 = A, d;
748
748
  }
749
749
  function v(r, l, A) {
750
- var d = new T(), w = Math.PI / 180, F = r * w, p = l * w, b = A * w, c = Math.cos(F), t = -Math.sin(F), a = Math.cos(p), h = -Math.sin(p), g = Math.cos(b), E = -Math.sin(b), B = a * g, x = -a * E;
751
- d.m11 = B, d.a = B, d.m12 = x, d.b = x, d.m13 = h;
750
+ var d = new T(), w = Math.PI / 180, F = r * w, p = l * w, b = A * w, c = Math.cos(F), t = -Math.sin(F), a = Math.cos(p), h = -Math.sin(p), g = Math.cos(b), E = -Math.sin(b), B = a * g, k = -a * E;
751
+ d.m11 = B, d.a = B, d.m12 = k, d.b = k, d.m13 = h;
752
752
  var ne = t * h * g + c * E;
753
753
  d.m21 = ne, d.c = ne;
754
754
  var q = c * g - t * h * E;
@@ -758,13 +758,13 @@ var sa = xr(function(je, it) {
758
758
  var w = new T(), F = Math.sqrt(r * r + l * l + A * A);
759
759
  if (F === 0)
760
760
  return w;
761
- var p = r / F, b = l / F, c = A / F, t = d * (Math.PI / 360), a = Math.sin(t), h = Math.cos(t), g = a * a, E = p * p, B = b * b, x = c * c, ne = 1 - 2 * (B + x) * g;
761
+ var p = r / F, b = l / F, c = A / F, t = d * (Math.PI / 360), a = Math.sin(t), h = Math.cos(t), g = a * a, E = p * p, B = b * b, k = c * c, ne = 1 - 2 * (B + k) * g;
762
762
  w.m11 = ne, w.a = ne;
763
763
  var q = 2 * (p * b * g + c * a * h);
764
764
  w.m12 = q, w.b = q, w.m13 = 2 * (p * c * g - b * a * h);
765
765
  var re = 2 * (b * p * g - c * a * h);
766
766
  w.m21 = re, w.c = re;
767
- var Z = 1 - 2 * (x + E) * g;
767
+ var Z = 1 - 2 * (k + E) * g;
768
768
  return w.m22 = Z, w.d = Z, w.m23 = 2 * (b * c * g + p * a * h), w.m31 = 2 * (c * p * g + b * a * h), w.m32 = 2 * (c * b * g - p * a * h), w.m33 = 1 - 2 * (E + B) * g, w;
769
769
  }
770
770
  function o(r, l, A) {
@@ -790,7 +790,7 @@ var sa = xr(function(je, it) {
790
790
  return f(0, r);
791
791
  }
792
792
  function M(r, l) {
793
- var A = l.m11 * r.m11 + l.m12 * r.m21 + l.m13 * r.m31 + l.m14 * r.m41, d = l.m11 * r.m12 + l.m12 * r.m22 + l.m13 * r.m32 + l.m14 * r.m42, w = l.m11 * r.m13 + l.m12 * r.m23 + l.m13 * r.m33 + l.m14 * r.m43, F = l.m11 * r.m14 + l.m12 * r.m24 + l.m13 * r.m34 + l.m14 * r.m44, p = l.m21 * r.m11 + l.m22 * r.m21 + l.m23 * r.m31 + l.m24 * r.m41, b = l.m21 * r.m12 + l.m22 * r.m22 + l.m23 * r.m32 + l.m24 * r.m42, c = l.m21 * r.m13 + l.m22 * r.m23 + l.m23 * r.m33 + l.m24 * r.m43, t = l.m21 * r.m14 + l.m22 * r.m24 + l.m23 * r.m34 + l.m24 * r.m44, a = l.m31 * r.m11 + l.m32 * r.m21 + l.m33 * r.m31 + l.m34 * r.m41, h = l.m31 * r.m12 + l.m32 * r.m22 + l.m33 * r.m32 + l.m34 * r.m42, g = l.m31 * r.m13 + l.m32 * r.m23 + l.m33 * r.m33 + l.m34 * r.m43, E = l.m31 * r.m14 + l.m32 * r.m24 + l.m33 * r.m34 + l.m34 * r.m44, B = l.m41 * r.m11 + l.m42 * r.m21 + l.m43 * r.m31 + l.m44 * r.m41, x = l.m41 * r.m12 + l.m42 * r.m22 + l.m43 * r.m32 + l.m44 * r.m42, ne = l.m41 * r.m13 + l.m42 * r.m23 + l.m43 * r.m33 + l.m44 * r.m43, q = l.m41 * r.m14 + l.m42 * r.m24 + l.m43 * r.m34 + l.m44 * r.m44;
793
+ var A = l.m11 * r.m11 + l.m12 * r.m21 + l.m13 * r.m31 + l.m14 * r.m41, d = l.m11 * r.m12 + l.m12 * r.m22 + l.m13 * r.m32 + l.m14 * r.m42, w = l.m11 * r.m13 + l.m12 * r.m23 + l.m13 * r.m33 + l.m14 * r.m43, F = l.m11 * r.m14 + l.m12 * r.m24 + l.m13 * r.m34 + l.m14 * r.m44, p = l.m21 * r.m11 + l.m22 * r.m21 + l.m23 * r.m31 + l.m24 * r.m41, b = l.m21 * r.m12 + l.m22 * r.m22 + l.m23 * r.m32 + l.m24 * r.m42, c = l.m21 * r.m13 + l.m22 * r.m23 + l.m23 * r.m33 + l.m24 * r.m43, t = l.m21 * r.m14 + l.m22 * r.m24 + l.m23 * r.m34 + l.m24 * r.m44, a = l.m31 * r.m11 + l.m32 * r.m21 + l.m33 * r.m31 + l.m34 * r.m41, h = l.m31 * r.m12 + l.m32 * r.m22 + l.m33 * r.m32 + l.m34 * r.m42, g = l.m31 * r.m13 + l.m32 * r.m23 + l.m33 * r.m33 + l.m34 * r.m43, E = l.m31 * r.m14 + l.m32 * r.m24 + l.m33 * r.m34 + l.m34 * r.m44, B = l.m41 * r.m11 + l.m42 * r.m21 + l.m43 * r.m31 + l.m44 * r.m41, k = l.m41 * r.m12 + l.m42 * r.m22 + l.m43 * r.m32 + l.m44 * r.m42, ne = l.m41 * r.m13 + l.m42 * r.m23 + l.m43 * r.m33 + l.m44 * r.m43, q = l.m41 * r.m14 + l.m42 * r.m24 + l.m43 * r.m34 + l.m44 * r.m44;
794
794
  return We(
795
795
  [
796
796
  A,
@@ -806,7 +806,7 @@ var sa = xr(function(je, it) {
806
806
  g,
807
807
  E,
808
808
  B,
809
- x,
809
+ k,
810
810
  ne,
811
811
  q
812
812
  ]
@@ -895,7 +895,7 @@ var sa = xr(function(je, it) {
895
895
  var y = "1.0.3", D = y;
896
896
  return Object.assign(T, { Version: D }), T;
897
897
  });
898
- }), oa = xr(function(je, it) {
898
+ }), oa = kr(function(je, it) {
899
899
  (function(We, Fe) {
900
900
  Fe(it);
901
901
  })(Ut, function(We) {
@@ -985,8 +985,8 @@ var sa = xr(function(je, it) {
985
985
  _next: void 0
986
986
  }), R._elements.push(i), K !== R && (this._back = K, R._next = K), ++this._size;
987
987
  }, e.prototype.shift = function() {
988
- var i = this._front, R = i, K = this._cursor, pe = K + 1, Ae = i._elements, ke = Ae[K];
989
- return pe === b && (R = i._next, pe = 0), --this._size, this._cursor = pe, i !== R && (this._front = R), Ae[K] = void 0, ke;
988
+ var i = this._front, R = i, K = this._cursor, pe = K + 1, Ae = i._elements, xe = Ae[K];
989
+ return pe === b && (R = i._next, pe = 0), --this._size, this._cursor = pe, i !== R && (this._front = R), Ae[K] = void 0, xe;
990
990
  }, e.prototype.forEach = function(i) {
991
991
  for (var R = this._cursor, K = this._front, pe = K._elements; (R !== pe.length || K._next !== void 0) && !(R === pe.length && (K = K._next, pe = K._elements, R = 0, pe.length === 0)); )
992
992
  i(pe[R]), ++R;
@@ -996,7 +996,7 @@ var sa = xr(function(je, it) {
996
996
  }, e;
997
997
  }();
998
998
  function t(e, i) {
999
- e._ownerReadableStream = i, i._reader = e, i._state === "readable" ? E(e) : i._state === "closed" ? x(e) : B(e, i._storedError);
999
+ e._ownerReadableStream = i, i._reader = e, i._state === "readable" ? E(e) : i._state === "closed" ? k(e) : B(e, i._storedError);
1000
1000
  }
1001
1001
  function a(e, i) {
1002
1002
  var R = e._ownerReadableStream;
@@ -1016,7 +1016,7 @@ var sa = xr(function(je, it) {
1016
1016
  function B(e, i) {
1017
1017
  E(e), ne(e, i);
1018
1018
  }
1019
- function x(e) {
1019
+ function k(e) {
1020
1020
  E(e), re(e);
1021
1021
  }
1022
1022
  function ne(e, i) {
@@ -1076,8 +1076,8 @@ var sa = xr(function(je, it) {
1076
1076
  throw new TypeError(i + " is outside the accepted range of " + R + " to " + K + ", inclusive");
1077
1077
  return !I(pe) || pe === 0 ? 0 : pe;
1078
1078
  }
1079
- function k(e, i) {
1080
- if (!kt(e))
1079
+ function x(e, i) {
1080
+ if (!xt(e))
1081
1081
  throw new TypeError(i + " is not a ReadableStream.");
1082
1082
  }
1083
1083
  function L(e) {
@@ -1099,7 +1099,7 @@ var sa = xr(function(je, it) {
1099
1099
  }
1100
1100
  var he = function() {
1101
1101
  function e(i) {
1102
- if (S(i, 1, "ReadableStreamDefaultReader"), k(i, "First parameter"), Ot(i))
1102
+ if (S(i, 1, "ReadableStreamDefaultReader"), x(i, "First parameter"), Ot(i))
1103
1103
  throw new TypeError("This stream has already been locked for exclusive reading by another reader");
1104
1104
  t(this, i), this._readRequests = new c();
1105
1105
  }
@@ -1116,8 +1116,8 @@ var sa = xr(function(je, it) {
1116
1116
  return m(ve("read"));
1117
1117
  if (this._ownerReadableStream === void 0)
1118
1118
  return m(g("read from"));
1119
- var i, R, K = M(function(Ae, ke) {
1120
- i = Ae, R = ke;
1119
+ var i, R, K = M(function(Ae, xe) {
1120
+ i = Ae, R = xe;
1121
1121
  }), pe = {
1122
1122
  _chunkSteps: function(Ae) {
1123
1123
  return i({ value: Ae, done: !1 });
@@ -1163,7 +1163,7 @@ var sa = xr(function(je, it) {
1163
1163
  typeof Fe.asyncIterator == "symbol" && (Ee = (we = {}, we[Fe.asyncIterator] = function() {
1164
1164
  return this;
1165
1165
  }, we), Object.defineProperty(Ee, Fe.asyncIterator, { enumerable: !1 }));
1166
- var xe = function() {
1166
+ var ke = function() {
1167
1167
  function e(i, R) {
1168
1168
  this._ongoingPromise = void 0, this._isFinished = !1, this._reader = i, this._preventCancel = R;
1169
1169
  }
@@ -1186,7 +1186,7 @@ var sa = xr(function(je, it) {
1186
1186
  return m(g("iterate"));
1187
1187
  var K, pe, Ae = M(function(Le, Ye) {
1188
1188
  K = Le, pe = Ye;
1189
- }), ke = {
1189
+ }), xe = {
1190
1190
  _chunkSteps: function(Le) {
1191
1191
  i._ongoingPromise = void 0, w(function() {
1192
1192
  return K({ value: Le, done: !1 });
@@ -1199,7 +1199,7 @@ var sa = xr(function(je, it) {
1199
1199
  i._ongoingPromise = void 0, i._isFinished = !0, h(R), pe(Le);
1200
1200
  }
1201
1201
  };
1202
- return fe(R, ke), Ae;
1202
+ return fe(R, xe), Ae;
1203
1203
  }, e.prototype._returnSteps = function(i) {
1204
1204
  if (this._isFinished)
1205
1205
  return Promise.resolve({ value: i, done: !0 });
@@ -1225,14 +1225,14 @@ var sa = xr(function(je, it) {
1225
1225
  };
1226
1226
  Ee !== void 0 && Object.setPrototypeOf(Ne, Ee);
1227
1227
  function Oe(e, i) {
1228
- var R = L(e), K = new xe(R, i), pe = Object.create(Ne);
1228
+ var R = L(e), K = new ke(R, i), pe = Object.create(Ne);
1229
1229
  return pe._asyncIteratorImpl = K, pe;
1230
1230
  }
1231
1231
  function Ce(e) {
1232
1232
  if (!v(e) || !Object.prototype.hasOwnProperty.call(e, "_asyncIteratorImpl"))
1233
1233
  return !1;
1234
1234
  try {
1235
- return e._asyncIteratorImpl instanceof xe;
1235
+ return e._asyncIteratorImpl instanceof ke;
1236
1236
  } catch {
1237
1237
  return !1;
1238
1238
  }
@@ -1288,20 +1288,20 @@ var sa = xr(function(je, it) {
1288
1288
  return Object.defineProperty(e.prototype, "view", {
1289
1289
  get: function() {
1290
1290
  if (!$e(this))
1291
- throw kr("view");
1291
+ throw xr("view");
1292
1292
  return this._view;
1293
1293
  },
1294
1294
  enumerable: !1,
1295
1295
  configurable: !0
1296
1296
  }), e.prototype.respond = function(i) {
1297
1297
  if (!$e(this))
1298
- throw kr("respond");
1298
+ throw xr("respond");
1299
1299
  if (S(i, 1, "respond"), i = _(i, "First parameter"), this._associatedReadableByteStreamController === void 0)
1300
1300
  throw new TypeError("This BYOB request has been invalidated");
1301
1301
  St(this._associatedReadableByteStreamController, i);
1302
1302
  }, e.prototype.respondWithNewView = function(i) {
1303
1303
  if (!$e(this))
1304
- throw kr("respondWithNewView");
1304
+ throw xr("respondWithNewView");
1305
1305
  if (S(i, 1, "respondWithNewView"), !ArrayBuffer.isView(i))
1306
1306
  throw new TypeError("You can only respond with array buffer views");
1307
1307
  if (this._associatedReadableByteStreamController === void 0)
@@ -1380,15 +1380,15 @@ var sa = xr(function(je, it) {
1380
1380
  }
1381
1381
  var Ae = this._autoAllocateChunkSize;
1382
1382
  if (Ae !== void 0) {
1383
- var ke = void 0;
1383
+ var xe = void 0;
1384
1384
  try {
1385
- ke = new ArrayBuffer(Ae);
1385
+ xe = new ArrayBuffer(Ae);
1386
1386
  } catch (Ye) {
1387
1387
  i._errorSteps(Ye);
1388
1388
  return;
1389
1389
  }
1390
1390
  var Le = {
1391
- buffer: ke,
1391
+ buffer: xe,
1392
1392
  bufferByteLength: Ae,
1393
1393
  byteOffset: 0,
1394
1394
  byteLength: Ae,
@@ -1451,8 +1451,8 @@ var sa = xr(function(je, it) {
1451
1451
  e._queue.push({ buffer: i, byteOffset: R, byteLength: K }), e._queueTotalSize += K;
1452
1452
  }
1453
1453
  function ze(e, i) {
1454
- var R = i.elementSize, K = i.bytesFilled - i.bytesFilled % R, pe = Math.min(e._queueTotalSize, i.byteLength - i.bytesFilled), Ae = i.bytesFilled + pe, ke = Ae - Ae % R, Le = pe, Ye = !1;
1455
- ke > K && (Le = ke - i.bytesFilled, Ye = !0);
1454
+ var R = i.elementSize, K = i.bytesFilled - i.bytesFilled % R, pe = Math.min(e._queueTotalSize, i.byteLength - i.bytesFilled), Ae = i.bytesFilled + pe, xe = Ae - Ae % R, Le = pe, Ye = !1;
1455
+ xe > K && (Le = xe - i.bytesFilled, Ye = !0);
1456
1456
  for (var qe = e._queue; Le > 0; ) {
1457
1457
  var Qe = qe.peek(), et = Math.min(Le, Qe.byteLength), ut = i.byteOffset + i.bytesFilled;
1458
1458
  H(i.buffer, ut, Qe.buffer, Qe.byteOffset, et), Qe.byteLength === et ? qe.shift() : (Qe.byteOffset += et, Qe.byteLength -= et), e._queueTotalSize -= et, Ve(e, et, i), Le -= et;
@@ -1479,9 +1479,9 @@ var sa = xr(function(je, it) {
1479
1479
  function lt(e, i, R) {
1480
1480
  var K = e._controlledReadableByteStream, pe = 1;
1481
1481
  i.constructor !== DataView && (pe = i.constructor.BYTES_PER_ELEMENT);
1482
- var Ae = i.constructor, ke = i.buffer, Le = {
1483
- buffer: ke,
1484
- bufferByteLength: ke.byteLength,
1482
+ var Ae = i.constructor, xe = i.buffer, Le = {
1483
+ buffer: xe,
1484
+ bufferByteLength: xe.byteLength,
1485
1485
  byteOffset: i.byteOffset,
1486
1486
  byteLength: i.byteLength,
1487
1487
  bytesFilled: 0,
@@ -1573,21 +1573,21 @@ var sa = xr(function(je, it) {
1573
1573
  function vt(e, i) {
1574
1574
  var R = e._controlledReadableByteStream;
1575
1575
  if (!(e._closeRequested || R._state !== "readable")) {
1576
- var K = i.buffer, pe = i.byteOffset, Ae = i.byteLength, ke = K;
1576
+ var K = i.buffer, pe = i.byteOffset, Ae = i.byteLength, xe = K;
1577
1577
  if (e._pendingPullIntos.length > 0) {
1578
1578
  var Le = e._pendingPullIntos.peek();
1579
1579
  Le.buffer = Le.buffer;
1580
1580
  }
1581
1581
  if (Be(e), se(R))
1582
1582
  if (ie(R) === 0)
1583
- Ue(e, ke, pe, Ae);
1583
+ Ue(e, xe, pe, Ae);
1584
1584
  else {
1585
1585
  e._pendingPullIntos.length > 0 && tt(e);
1586
- var Ye = new Uint8Array(ke, pe, Ae);
1586
+ var Ye = new Uint8Array(xe, pe, Ae);
1587
1587
  J(R, Ye, !1);
1588
1588
  }
1589
1589
  else
1590
- Or(R) ? (Ue(e, ke, pe, Ae), Ke(e)) : Ue(e, ke, pe, Ae);
1590
+ Or(R) ? (Ue(e, xe, pe, Ae), Ke(e)) : Ue(e, xe, pe, Ae);
1591
1591
  me(e);
1592
1592
  }
1593
1593
  }
@@ -1635,8 +1635,8 @@ var sa = xr(function(je, it) {
1635
1635
  var pe = i.byteLength;
1636
1636
  R.buffer = i.buffer, ct(e, pe);
1637
1637
  }
1638
- function qr(e, i, R, K, pe, Ae, ke) {
1639
- i._controlledReadableByteStream = e, i._pullAgain = !1, i._pulling = !1, i._byobRequest = null, i._queue = i._queueTotalSize = void 0, te(i), i._closeRequested = !1, i._started = !1, i._strategyHWM = Ae, i._pullAlgorithm = K, i._cancelAlgorithm = pe, i._autoAllocateChunkSize = ke, i._pendingPullIntos = new c(), e._readableStreamController = i;
1638
+ function qr(e, i, R, K, pe, Ae, xe) {
1639
+ i._controlledReadableByteStream = e, i._pullAgain = !1, i._pulling = !1, i._byobRequest = null, i._queue = i._queueTotalSize = void 0, te(i), i._closeRequested = !1, i._started = !1, i._strategyHWM = Ae, i._pullAlgorithm = K, i._cancelAlgorithm = pe, i._autoAllocateChunkSize = xe, i._pendingPullIntos = new c(), e._readableStreamController = i;
1640
1640
  var Le = R();
1641
1641
  D(T(Le), function() {
1642
1642
  i._started = !0, me(i);
@@ -1648,25 +1648,25 @@ var sa = xr(function(je, it) {
1648
1648
  var K = Object.create(be.prototype), pe = function() {
1649
1649
  }, Ae = function() {
1650
1650
  return T(void 0);
1651
- }, ke = function() {
1651
+ }, xe = function() {
1652
1652
  return T(void 0);
1653
1653
  };
1654
1654
  i.start !== void 0 && (pe = function() {
1655
1655
  return i.start(K);
1656
1656
  }), i.pull !== void 0 && (Ae = function() {
1657
1657
  return i.pull(K);
1658
- }), i.cancel !== void 0 && (ke = function(Ye) {
1658
+ }), i.cancel !== void 0 && (xe = function(Ye) {
1659
1659
  return i.cancel(Ye);
1660
1660
  });
1661
1661
  var Le = i.autoAllocateChunkSize;
1662
1662
  if (Le === 0)
1663
1663
  throw new TypeError("autoAllocateChunkSize must be greater than 0");
1664
- qr(e, K, pe, Ae, ke, R, Le);
1664
+ qr(e, K, pe, Ae, xe, R, Le);
1665
1665
  }
1666
1666
  function Bn(e, i, R) {
1667
1667
  e._associatedReadableByteStreamController = i, e._view = R;
1668
1668
  }
1669
- function kr(e) {
1669
+ function xr(e) {
1670
1670
  return new TypeError("ReadableStreamBYOBRequest.prototype." + e + " can only be used on a ReadableStreamBYOBRequest");
1671
1671
  }
1672
1672
  function Kt(e) {
@@ -1691,7 +1691,7 @@ var sa = xr(function(je, it) {
1691
1691
  }
1692
1692
  var Qt = function() {
1693
1693
  function e(i) {
1694
- if (S(i, 1, "ReadableStreamBYOBReader"), k(i, "First parameter"), Ot(i))
1694
+ if (S(i, 1, "ReadableStreamBYOBReader"), x(i, "First parameter"), Ot(i))
1695
1695
  throw new TypeError("This stream has already been locked for exclusive reading by another reader");
1696
1696
  if (!De(i._readableStreamController))
1697
1697
  throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");
@@ -1716,17 +1716,17 @@ var sa = xr(function(je, it) {
1716
1716
  return m(new TypeError("view's buffer must have non-zero byteLength"));
1717
1717
  if (this._ownerReadableStream === void 0)
1718
1718
  return m(g("read from"));
1719
- var R, K, pe = M(function(ke, Le) {
1720
- R = ke, K = Le;
1719
+ var R, K, pe = M(function(xe, Le) {
1720
+ R = xe, K = Le;
1721
1721
  }), Ae = {
1722
- _chunkSteps: function(ke) {
1723
- return R({ value: ke, done: !1 });
1722
+ _chunkSteps: function(xe) {
1723
+ return R({ value: xe, done: !1 });
1724
1724
  },
1725
- _closeSteps: function(ke) {
1726
- return R({ value: ke, done: !0 });
1725
+ _closeSteps: function(xe) {
1726
+ return R({ value: xe, done: !0 });
1727
1727
  },
1728
- _errorSteps: function(ke) {
1729
- return K(ke);
1728
+ _errorSteps: function(xe) {
1729
+ return K(xe);
1730
1730
  }
1731
1731
  };
1732
1732
  return Zr(this, i, Ae), pe;
@@ -1788,12 +1788,12 @@ var sa = xr(function(je, it) {
1788
1788
  }
1789
1789
  function zn(e, i) {
1790
1790
  ye(e, i);
1791
- var R = e == null ? void 0 : e.abort, K = e == null ? void 0 : e.close, pe = e == null ? void 0 : e.start, Ae = e == null ? void 0 : e.type, ke = e == null ? void 0 : e.write;
1791
+ var R = e == null ? void 0 : e.abort, K = e == null ? void 0 : e.close, pe = e == null ? void 0 : e.start, Ae = e == null ? void 0 : e.type, xe = e == null ? void 0 : e.write;
1792
1792
  return {
1793
1793
  abort: R === void 0 ? void 0 : jn(R, e, i + " has member 'abort' that"),
1794
1794
  close: K === void 0 ? void 0 : Gn(K, e, i + " has member 'close' that"),
1795
1795
  start: pe === void 0 ? void 0 : $n(pe, e, i + " has member 'start' that"),
1796
- write: ke === void 0 ? void 0 : Hn(ke, e, i + " has member 'write' that"),
1796
+ write: xe === void 0 ? void 0 : Hn(xe, e, i + " has member 'write' that"),
1797
1797
  type: Ae
1798
1798
  };
1799
1799
  }
@@ -1843,8 +1843,8 @@ var sa = xr(function(je, it) {
1843
1843
  var Ae = pe.type;
1844
1844
  if (Ae !== void 0)
1845
1845
  throw new RangeError("Invalid type is specified");
1846
- var ke = lr(K), Le = Jt(K, 1);
1847
- li(this, pe, Le, ke);
1846
+ var xe = lr(K), Le = Jt(K, 1);
1847
+ li(this, pe, Le, xe);
1848
1848
  }
1849
1849
  return Object.defineProperty(e.prototype, "locked", {
1850
1850
  get: function() {
@@ -1880,10 +1880,10 @@ var sa = xr(function(je, it) {
1880
1880
  pe === void 0 && (pe = 1), Ae === void 0 && (Ae = function() {
1881
1881
  return 1;
1882
1882
  });
1883
- var ke = Object.create(Zt.prototype);
1884
- rn(ke);
1883
+ var xe = Object.create(Zt.prototype);
1884
+ rn(xe);
1885
1885
  var Le = Object.create(Gt.prototype);
1886
- return un(ke, Le, e, i, R, K, pe, Ae), ke;
1886
+ return un(xe, Le, e, i, R, K, pe, Ae), xe;
1887
1887
  }
1888
1888
  function rn(e) {
1889
1889
  e._state = "writable", e._storedError = void 0, e._writer = void 0, e._writableStreamController = void 0, e._writeRequests = new c(), e._inFlightWriteRequest = void 0, e._closeRequest = void 0, e._inFlightCloseRequest = void 0, e._pendingAbortRequest = void 0, e._backpressure = !1;
@@ -1906,10 +1906,10 @@ var sa = xr(function(je, it) {
1906
1906
  return e._pendingAbortRequest._promise;
1907
1907
  var pe = !1;
1908
1908
  K === "erroring" && (pe = !0, i = void 0);
1909
- var Ae = M(function(ke, Le) {
1909
+ var Ae = M(function(xe, Le) {
1910
1910
  e._pendingAbortRequest = {
1911
1911
  _promise: void 0,
1912
- _resolve: ke,
1912
+ _resolve: xe,
1913
1913
  _reject: Le,
1914
1914
  _reason: i,
1915
1915
  _wasAlreadyErroring: pe
@@ -1922,11 +1922,11 @@ var sa = xr(function(je, it) {
1922
1922
  if (i === "closed" || i === "errored")
1923
1923
  return m(new TypeError("The stream (in " + i + " state) is not in the writable state and cannot be closed"));
1924
1924
  var R = M(function(pe, Ae) {
1925
- var ke = {
1925
+ var xe = {
1926
1926
  _resolve: pe,
1927
1927
  _reject: Ae
1928
1928
  };
1929
- e._closeRequest = ke;
1929
+ e._closeRequest = xe;
1930
1930
  }), K = e._writer;
1931
1931
  return K !== void 0 && e._backpressure && i === "writable" && jr(K), ci(e._writableStreamController), R;
1932
1932
  }
@@ -2119,8 +2119,8 @@ var sa = xr(function(je, it) {
2119
2119
  return m(new TypeError("The stream is closing or closed and cannot be written to"));
2120
2120
  if (Ae === "erroring")
2121
2121
  return m(R._storedError);
2122
- var ke = Kn(R);
2123
- return di(K, i, pe), ke;
2122
+ var xe = Kn(R);
2123
+ return di(K, i, pe), xe;
2124
2124
  }
2125
2125
  var cn = {}, Gt = function() {
2126
2126
  function e() {
@@ -2167,8 +2167,8 @@ var sa = xr(function(je, it) {
2167
2167
  function Lr(e) {
2168
2168
  return !v(e) || !Object.prototype.hasOwnProperty.call(e, "_controlledWritableStream") ? !1 : e instanceof Gt;
2169
2169
  }
2170
- function un(e, i, R, K, pe, Ae, ke, Le) {
2171
- i._controlledWritableStream = e, e._writableStreamController = i, i._queue = void 0, i._queueTotalSize = void 0, te(i), i._abortReason = void 0, i._abortController = Yn(), i._started = !1, i._strategySizeAlgorithm = Le, i._strategyHWM = ke, i._writeAlgorithm = K, i._closeAlgorithm = pe, i._abortAlgorithm = Ae;
2170
+ function un(e, i, R, K, pe, Ae, xe, Le) {
2171
+ i._controlledWritableStream = e, e._writableStreamController = i, i._queue = void 0, i._queueTotalSize = void 0, te(i), i._abortReason = void 0, i._abortController = Yn(), i._started = !1, i._strategySizeAlgorithm = Le, i._strategyHWM = xe, i._writeAlgorithm = K, i._closeAlgorithm = pe, i._abortAlgorithm = Ae;
2172
2172
  var Ye = Br(i);
2173
2173
  Dr(e, Ye);
2174
2174
  var qe = R(), Qe = T(qe);
@@ -2180,7 +2180,7 @@ var sa = xr(function(je, it) {
2180
2180
  }
2181
2181
  function li(e, i, R, K) {
2182
2182
  var pe = Object.create(Gt.prototype), Ae = function() {
2183
- }, ke = function() {
2183
+ }, xe = function() {
2184
2184
  return T(void 0);
2185
2185
  }, Le = function() {
2186
2186
  return T(void 0);
@@ -2189,13 +2189,13 @@ var sa = xr(function(je, it) {
2189
2189
  };
2190
2190
  i.start !== void 0 && (Ae = function() {
2191
2191
  return i.start(pe);
2192
- }), i.write !== void 0 && (ke = function(qe) {
2192
+ }), i.write !== void 0 && (xe = function(qe) {
2193
2193
  return i.write(qe, pe);
2194
2194
  }), i.close !== void 0 && (Le = function() {
2195
2195
  return i.close();
2196
2196
  }), i.abort !== void 0 && (Ye = function(qe) {
2197
2197
  return i.abort(qe);
2198
- }), un(e, pe, Ae, ke, Le, Ye, R, K);
2198
+ }), un(e, pe, Ae, xe, Le, Ye, R, K);
2199
2199
  }
2200
2200
  function hr(e) {
2201
2201
  e._writeAlgorithm = void 0, e._closeAlgorithm = void 0, e._abortAlgorithm = void 0, e._strategySizeAlgorithm = void 0;
@@ -2351,7 +2351,7 @@ var sa = xr(function(je, it) {
2351
2351
  }
2352
2352
  var Si = bi(vn) ? vn : yi();
2353
2353
  function bn(e, i, R, K, pe, Ae) {
2354
- var ke = L(e), Le = tn(i);
2354
+ var xe = L(e), Le = tn(i);
2355
2355
  e._disturbed = !0;
2356
2356
  var Ye = !1, qe = T(void 0);
2357
2357
  return M(function(Qe, et) {
@@ -2385,7 +2385,7 @@ var sa = xr(function(je, it) {
2385
2385
  function Vt() {
2386
2386
  return Ye ? T(!0) : y(Le._readyPromise, function() {
2387
2387
  return M(function(Xe, rt) {
2388
- fe(ke, {
2388
+ fe(xe, {
2389
2389
  _chunkSteps: function(ot) {
2390
2390
  qe = y(ln(Le, ot), void 0, Ge), Xe(!1);
2391
2391
  },
@@ -2397,7 +2397,7 @@ var sa = xr(function(je, it) {
2397
2397
  });
2398
2398
  });
2399
2399
  }
2400
- if (ht(e, ke._closedPromise, function(Xe) {
2400
+ if (ht(e, xe._closedPromise, function(Xe) {
2401
2401
  K ? Tt(!0, Xe) : mt(function() {
2402
2402
  return ur(i, Xe);
2403
2403
  }, !0, Xe);
@@ -2405,7 +2405,7 @@ var sa = xr(function(je, it) {
2405
2405
  pe ? Tt(!0, Xe) : mt(function() {
2406
2406
  return bt(e, Xe);
2407
2407
  }, !0, Xe);
2408
- }), Et(e, ke._closedPromise, function() {
2408
+ }), Et(e, xe._closedPromise, function() {
2409
2409
  R ? Tt() : mt(function() {
2410
2410
  return ai(Le);
2411
2411
  });
@@ -2446,7 +2446,7 @@ var sa = xr(function(je, it) {
2446
2446
  }) : st(Xe, rt));
2447
2447
  }
2448
2448
  function st(Xe, rt) {
2449
- on(Le), h(ke), Ae !== void 0 && Ae.removeEventListener("abort", ut), Xe ? et(rt) : Qe(void 0);
2449
+ on(Le), h(xe), Ae !== void 0 && Ae.removeEventListener("abort", ut), Xe ? et(rt) : Qe(void 0);
2450
2450
  }
2451
2451
  });
2452
2452
  }
@@ -2573,8 +2573,8 @@ var sa = xr(function(je, it) {
2573
2573
  var i = e._controlledReadableStream._state;
2574
2574
  return !e._closeRequested && i === "readable";
2575
2575
  }
2576
- function Sn(e, i, R, K, pe, Ae, ke) {
2577
- i._controlledReadableStream = e, i._queue = void 0, i._queueTotalSize = void 0, te(i), i._started = !1, i._closeRequested = !1, i._pullAgain = !1, i._pulling = !1, i._strategySizeAlgorithm = ke, i._strategyHWM = Ae, i._pullAlgorithm = K, i._cancelAlgorithm = pe, e._readableStreamController = i;
2576
+ function Sn(e, i, R, K, pe, Ae, xe) {
2577
+ i._controlledReadableStream = e, i._queue = void 0, i._queueTotalSize = void 0, te(i), i._started = !1, i._closeRequested = !1, i._pullAgain = !1, i._pulling = !1, i._strategySizeAlgorithm = xe, i._strategyHWM = Ae, i._pullAlgorithm = K, i._cancelAlgorithm = pe, e._readableStreamController = i;
2578
2578
  var Le = R();
2579
2579
  D(T(Le), function() {
2580
2580
  i._started = !0, rr(i);
@@ -2584,18 +2584,18 @@ var sa = xr(function(je, it) {
2584
2584
  }
2585
2585
  function wi(e, i, R, K) {
2586
2586
  var pe = Object.create($t.prototype), Ae = function() {
2587
- }, ke = function() {
2587
+ }, xe = function() {
2588
2588
  return T(void 0);
2589
2589
  }, Le = function() {
2590
2590
  return T(void 0);
2591
2591
  };
2592
2592
  i.start !== void 0 && (Ae = function() {
2593
2593
  return i.start(pe);
2594
- }), i.pull !== void 0 && (ke = function() {
2594
+ }), i.pull !== void 0 && (xe = function() {
2595
2595
  return i.pull(pe);
2596
2596
  }), i.cancel !== void 0 && (Le = function(Ye) {
2597
2597
  return i.cancel(Ye);
2598
- }), Sn(e, pe, Ae, ke, Le, R, K);
2598
+ }), Sn(e, pe, Ae, xe, Le, R, K);
2599
2599
  }
2600
2600
  function Sr(e) {
2601
2601
  return new TypeError("ReadableStreamDefaultController.prototype." + e + " can only be used on a ReadableStreamDefaultController");
@@ -2604,7 +2604,7 @@ var sa = xr(function(je, it) {
2604
2604
  return De(e._readableStreamController) ? Ci(e) : Ei(e);
2605
2605
  }
2606
2606
  function Ei(e, i) {
2607
- var R = L(e), K = !1, pe = !1, Ae = !1, ke = !1, Le, Ye, qe, Qe, et, ut = M(function(ht) {
2607
+ var R = L(e), K = !1, pe = !1, Ae = !1, xe = !1, Le, Ye, qe, Qe, et, ut = M(function(ht) {
2608
2608
  et = ht;
2609
2609
  });
2610
2610
  function yt() {
@@ -2616,11 +2616,11 @@ var sa = xr(function(je, it) {
2616
2616
  w(function() {
2617
2617
  pe = !1;
2618
2618
  var mt = Et, Tt = Et;
2619
- Ae || yr(qe._readableStreamController, mt), ke || yr(Qe._readableStreamController, Tt), K = !1, pe && yt();
2619
+ Ae || yr(qe._readableStreamController, mt), xe || yr(Qe._readableStreamController, Tt), K = !1, pe && yt();
2620
2620
  });
2621
2621
  },
2622
2622
  _closeSteps: function() {
2623
- K = !1, Ae || nr(qe._readableStreamController), ke || nr(Qe._readableStreamController), (!Ae || !ke) && et(void 0);
2623
+ K = !1, Ae || nr(qe._readableStreamController), xe || nr(Qe._readableStreamController), (!Ae || !xe) && et(void 0);
2624
2624
  },
2625
2625
  _errorSteps: function() {
2626
2626
  K = !1;
@@ -2629,14 +2629,14 @@ var sa = xr(function(je, it) {
2629
2629
  return fe(R, ht), T(void 0);
2630
2630
  }
2631
2631
  function Vt(ht) {
2632
- if (Ae = !0, Le = ht, ke) {
2632
+ if (Ae = !0, Le = ht, xe) {
2633
2633
  var Et = $([Le, Ye]), mt = bt(e, Et);
2634
2634
  et(mt);
2635
2635
  }
2636
2636
  return ut;
2637
2637
  }
2638
2638
  function Ft(ht) {
2639
- if (ke = !0, Ye = ht, Ae) {
2639
+ if (xe = !0, Ye = ht, Ae) {
2640
2640
  var Et = $([Le, Ye]), mt = bt(e, Et);
2641
2641
  et(mt);
2642
2642
  }
@@ -2645,16 +2645,16 @@ var sa = xr(function(je, it) {
2645
2645
  function _t() {
2646
2646
  }
2647
2647
  return qe = $r(_t, yt, Vt), Qe = $r(_t, yt, Ft), l(R._closedPromise, function(ht) {
2648
- Rt(qe._readableStreamController, ht), Rt(Qe._readableStreamController, ht), (!Ae || !ke) && et(void 0);
2648
+ Rt(qe._readableStreamController, ht), Rt(Qe._readableStreamController, ht), (!Ae || !xe) && et(void 0);
2649
2649
  }), [qe, Qe];
2650
2650
  }
2651
2651
  function Ci(e) {
2652
- var i = L(e), R = !1, K = !1, pe = !1, Ae = !1, ke = !1, Le, Ye, qe, Qe, et, ut = M(function(st) {
2652
+ var i = L(e), R = !1, K = !1, pe = !1, Ae = !1, xe = !1, Le, Ye, qe, Qe, et, ut = M(function(st) {
2653
2653
  et = st;
2654
2654
  });
2655
2655
  function yt(st) {
2656
2656
  l(st._closedPromise, function(Xe) {
2657
- st === i && (ft(qe._readableStreamController, Xe), ft(Qe._readableStreamController, Xe), (!Ae || !ke) && et(void 0));
2657
+ st === i && (ft(qe._readableStreamController, Xe), ft(Qe._readableStreamController, Xe), (!Ae || !xe) && et(void 0));
2658
2658
  });
2659
2659
  }
2660
2660
  function Vt() {
@@ -2664,18 +2664,18 @@ var sa = xr(function(je, it) {
2664
2664
  w(function() {
2665
2665
  K = !1, pe = !1;
2666
2666
  var rt = Xe, ot = Xe;
2667
- if (!Ae && !ke)
2667
+ if (!Ae && !xe)
2668
2668
  try {
2669
2669
  ot = ce(Xe);
2670
2670
  } catch (Ct) {
2671
2671
  ft(qe._readableStreamController, Ct), ft(Qe._readableStreamController, Ct), et(bt(e, Ct));
2672
2672
  return;
2673
2673
  }
2674
- Ae || vt(qe._readableStreamController, rt), ke || vt(Qe._readableStreamController, ot), R = !1, K ? _t() : pe && ht();
2674
+ Ae || vt(qe._readableStreamController, rt), xe || vt(Qe._readableStreamController, ot), R = !1, K ? _t() : pe && ht();
2675
2675
  });
2676
2676
  },
2677
2677
  _closeSteps: function() {
2678
- R = !1, Ae || gt(qe._readableStreamController), ke || gt(Qe._readableStreamController), qe._readableStreamController._pendingPullIntos.length > 0 && St(qe._readableStreamController, 0), Qe._readableStreamController._pendingPullIntos.length > 0 && St(Qe._readableStreamController, 0), (!Ae || !ke) && et(void 0);
2678
+ R = !1, Ae || gt(qe._readableStreamController), xe || gt(Qe._readableStreamController), qe._readableStreamController._pendingPullIntos.length > 0 && St(qe._readableStreamController, 0), Qe._readableStreamController._pendingPullIntos.length > 0 && St(Qe._readableStreamController, 0), (!Ae || !xe) && et(void 0);
2679
2679
  },
2680
2680
  _errorSteps: function() {
2681
2681
  R = !1;
@@ -2689,7 +2689,7 @@ var sa = xr(function(je, it) {
2689
2689
  _chunkSteps: function(Mt) {
2690
2690
  w(function() {
2691
2691
  K = !1, pe = !1;
2692
- var Xt = Xe ? ke : Ae, sr = Xe ? Ae : ke;
2692
+ var Xt = Xe ? xe : Ae, sr = Xe ? Ae : xe;
2693
2693
  if (sr)
2694
2694
  Xt || At(rt._readableStreamController, Mt);
2695
2695
  else {
@@ -2707,7 +2707,7 @@ var sa = xr(function(je, it) {
2707
2707
  },
2708
2708
  _closeSteps: function(Mt) {
2709
2709
  R = !1;
2710
- var Xt = Xe ? ke : Ae, sr = Xe ? Ae : ke;
2710
+ var Xt = Xe ? xe : Ae, sr = Xe ? Ae : xe;
2711
2711
  Xt || gt(rt._readableStreamController), sr || gt(ot._readableStreamController), Mt !== void 0 && (Xt || At(rt._readableStreamController, Mt), !sr && ot._readableStreamController._pendingPullIntos.length > 0 && St(ot._readableStreamController, 0)), (!Xt || !sr) && et(void 0);
2712
2712
  },
2713
2713
  _errorSteps: function() {
@@ -2731,14 +2731,14 @@ var sa = xr(function(je, it) {
2731
2731
  return st === null ? Vt() : Ft(st._view, !0), T(void 0);
2732
2732
  }
2733
2733
  function Et(st) {
2734
- if (Ae = !0, Le = st, ke) {
2734
+ if (Ae = !0, Le = st, xe) {
2735
2735
  var Xe = $([Le, Ye]), rt = bt(e, Xe);
2736
2736
  et(rt);
2737
2737
  }
2738
2738
  return ut;
2739
2739
  }
2740
2740
  function mt(st) {
2741
- if (ke = !0, Ye = st, Ae) {
2741
+ if (xe = !0, Ye = st, Ae) {
2742
2742
  var Xe = $([Le, Ye]), rt = bt(e, Xe);
2743
2743
  et(rt);
2744
2744
  }
@@ -2750,13 +2750,13 @@ var sa = xr(function(je, it) {
2750
2750
  }
2751
2751
  function Ti(e, i) {
2752
2752
  ye(e, i);
2753
- var R = e, K = R == null ? void 0 : R.autoAllocateChunkSize, pe = R == null ? void 0 : R.cancel, Ae = R == null ? void 0 : R.pull, ke = R == null ? void 0 : R.start, Le = R == null ? void 0 : R.type;
2753
+ var R = e, K = R == null ? void 0 : R.autoAllocateChunkSize, pe = R == null ? void 0 : R.cancel, Ae = R == null ? void 0 : R.pull, xe = R == null ? void 0 : R.start, Le = R == null ? void 0 : R.type;
2754
2754
  return {
2755
2755
  autoAllocateChunkSize: K === void 0 ? void 0 : _(K, i + " has member 'autoAllocateChunkSize' that"),
2756
2756
  cancel: pe === void 0 ? void 0 : Pi(pe, R, i + " has member 'cancel' that"),
2757
2757
  pull: Ae === void 0 ? void 0 : Ri(Ae, R, i + " has member 'pull' that"),
2758
- start: ke === void 0 ? void 0 : xi(ke, R, i + " has member 'start' that"),
2759
- type: Le === void 0 ? void 0 : ki(Le, i + " has member 'type' that")
2758
+ start: xe === void 0 ? void 0 : ki(xe, R, i + " has member 'start' that"),
2759
+ type: Le === void 0 ? void 0 : xi(Le, i + " has member 'type' that")
2760
2760
  };
2761
2761
  }
2762
2762
  function Pi(e, i, R) {
@@ -2769,12 +2769,12 @@ var sa = xr(function(je, it) {
2769
2769
  return p(e, i, [K]);
2770
2770
  };
2771
2771
  }
2772
- function xi(e, i, R) {
2772
+ function ki(e, i, R) {
2773
2773
  return Se(e, R), function(K) {
2774
2774
  return F(e, i, [K]);
2775
2775
  };
2776
2776
  }
2777
- function ki(e, i) {
2777
+ function xi(e, i) {
2778
2778
  if (e = "" + e, e !== "bytes")
2779
2779
  throw new TypeError(i + " '" + e + "' is not a valid enumeration value for ReadableStreamType");
2780
2780
  return e;
@@ -2813,11 +2813,11 @@ var sa = xr(function(je, it) {
2813
2813
  function Di(e, i) {
2814
2814
  ye(e, i);
2815
2815
  var R = e == null ? void 0 : e.readable;
2816
- N(R, "readable", "ReadableWritablePair"), k(R, i + " has member 'readable' that");
2816
+ N(R, "readable", "ReadableWritablePair"), x(R, i + " has member 'readable' that");
2817
2817
  var K = e == null ? void 0 : e.writable;
2818
2818
  return N(K, "writable", "ReadableWritablePair"), en(K, i + " has member 'writable' that"), { readable: R, writable: K };
2819
2819
  }
2820
- var xt = function() {
2820
+ var kt = function() {
2821
2821
  function e(i, R) {
2822
2822
  i === void 0 && (i = {}), R === void 0 && (R = {}), i === void 0 ? i = null : C(i, "First parameter");
2823
2823
  var K = cr(R, "Second parameter"), pe = Ti(i, "First parameter");
@@ -2827,27 +2827,27 @@ var sa = xr(function(je, it) {
2827
2827
  var Ae = Jt(K, 0);
2828
2828
  Nn(this, pe, Ae);
2829
2829
  } else {
2830
- var ke = lr(K), Ae = Jt(K, 1);
2831
- wi(this, pe, Ae, ke);
2830
+ var xe = lr(K), Ae = Jt(K, 1);
2831
+ wi(this, pe, Ae, xe);
2832
2832
  }
2833
2833
  }
2834
2834
  return Object.defineProperty(e.prototype, "locked", {
2835
2835
  get: function() {
2836
- if (!kt(this))
2836
+ if (!xt(this))
2837
2837
  throw Bt("locked");
2838
2838
  return Ot(this);
2839
2839
  },
2840
2840
  enumerable: !1,
2841
2841
  configurable: !0
2842
2842
  }), e.prototype.cancel = function(i) {
2843
- return i === void 0 && (i = void 0), kt(this) ? Ot(this) ? m(new TypeError("Cannot cancel a stream that already has a reader")) : bt(this, i) : m(Bt("cancel"));
2843
+ return i === void 0 && (i = void 0), xt(this) ? Ot(this) ? m(new TypeError("Cannot cancel a stream that already has a reader")) : bt(this, i) : m(Bt("cancel"));
2844
2844
  }, e.prototype.getReader = function(i) {
2845
- if (i === void 0 && (i = void 0), !kt(this))
2845
+ if (i === void 0 && (i = void 0), !xt(this))
2846
2846
  throw Bt("getReader");
2847
2847
  var R = Oi(i, "First parameter");
2848
2848
  return R.mode === void 0 ? L(this) : Kr(this);
2849
2849
  }, e.prototype.pipeThrough = function(i, R) {
2850
- if (R === void 0 && (R = {}), !kt(this))
2850
+ if (R === void 0 && (R = {}), !xt(this))
2851
2851
  throw Bt("pipeThrough");
2852
2852
  S(i, 1, "pipeThrough");
2853
2853
  var K = Di(i, "First parameter"), pe = An(R, "Second parameter");
@@ -2858,7 +2858,7 @@ var sa = xr(function(je, it) {
2858
2858
  var Ae = bn(this, K.writable, pe.preventClose, pe.preventAbort, pe.preventCancel, pe.signal);
2859
2859
  return d(Ae), K.readable;
2860
2860
  }, e.prototype.pipeTo = function(i, R) {
2861
- if (R === void 0 && (R = {}), !kt(this))
2861
+ if (R === void 0 && (R = {}), !xt(this))
2862
2862
  return m(Bt("pipeTo"));
2863
2863
  if (i === void 0)
2864
2864
  return m("Parameter 1 is required in 'pipeTo'.");
@@ -2872,18 +2872,18 @@ var sa = xr(function(je, it) {
2872
2872
  }
2873
2873
  return Ot(this) ? m(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")) : jt(i) ? m(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")) : bn(this, i, K.preventClose, K.preventAbort, K.preventCancel, K.signal);
2874
2874
  }, e.prototype.tee = function() {
2875
- if (!kt(this))
2875
+ if (!xt(this))
2876
2876
  throw Bt("tee");
2877
2877
  var i = _i(this);
2878
2878
  return $(i);
2879
2879
  }, e.prototype.values = function(i) {
2880
- if (i === void 0 && (i = void 0), !kt(this))
2880
+ if (i === void 0 && (i = void 0), !xt(this))
2881
2881
  throw Bt("values");
2882
2882
  var R = Mi(i, "First parameter");
2883
2883
  return Oe(this, R.preventCancel);
2884
2884
  }, e;
2885
2885
  }();
2886
- Object.defineProperties(xt.prototype, {
2886
+ Object.defineProperties(kt.prototype, {
2887
2887
  cancel: { enumerable: !0 },
2888
2888
  getReader: { enumerable: !0 },
2889
2889
  pipeThrough: { enumerable: !0 },
@@ -2891,11 +2891,11 @@ var sa = xr(function(je, it) {
2891
2891
  tee: { enumerable: !0 },
2892
2892
  values: { enumerable: !0 },
2893
2893
  locked: { enumerable: !0 }
2894
- }), typeof Fe.toStringTag == "symbol" && Object.defineProperty(xt.prototype, Fe.toStringTag, {
2894
+ }), typeof Fe.toStringTag == "symbol" && Object.defineProperty(kt.prototype, Fe.toStringTag, {
2895
2895
  value: "ReadableStream",
2896
2896
  configurable: !0
2897
- }), typeof Fe.asyncIterator == "symbol" && Object.defineProperty(xt.prototype, Fe.asyncIterator, {
2898
- value: xt.prototype.values,
2897
+ }), typeof Fe.asyncIterator == "symbol" && Object.defineProperty(kt.prototype, Fe.asyncIterator, {
2898
+ value: kt.prototype.values,
2899
2899
  writable: !0,
2900
2900
  configurable: !0
2901
2901
  });
@@ -2903,13 +2903,13 @@ var sa = xr(function(je, it) {
2903
2903
  K === void 0 && (K = 1), pe === void 0 && (pe = function() {
2904
2904
  return 1;
2905
2905
  });
2906
- var Ae = Object.create(xt.prototype);
2906
+ var Ae = Object.create(kt.prototype);
2907
2907
  Hr(Ae);
2908
- var ke = Object.create($t.prototype);
2909
- return Sn(Ae, ke, e, i, R, K, pe), Ae;
2908
+ var xe = Object.create($t.prototype);
2909
+ return Sn(Ae, xe, e, i, R, K, pe), Ae;
2910
2910
  }
2911
2911
  function wn(e, i, R) {
2912
- var K = Object.create(xt.prototype);
2912
+ var K = Object.create(kt.prototype);
2913
2913
  Hr(K);
2914
2914
  var pe = Object.create(be.prototype);
2915
2915
  return qr(K, pe, e, i, R, 0, void 0), K;
@@ -2917,8 +2917,8 @@ var sa = xr(function(je, it) {
2917
2917
  function Hr(e) {
2918
2918
  e._state = "readable", e._reader = void 0, e._storedError = void 0, e._disturbed = !1;
2919
2919
  }
2920
- function kt(e) {
2921
- return !v(e) || !Object.prototype.hasOwnProperty.call(e, "_readableStreamController") ? !1 : e instanceof xt;
2920
+ function xt(e) {
2921
+ return !v(e) || !Object.prototype.hasOwnProperty.call(e, "_readableStreamController") ? !1 : e instanceof kt;
2922
2922
  }
2923
2923
  function Ot(e) {
2924
2924
  return e._reader !== void 0;
@@ -3023,16 +3023,16 @@ var sa = xr(function(je, it) {
3023
3023
  }
3024
3024
  return Object.defineProperty(e.prototype, "highWaterMark", {
3025
3025
  get: function() {
3026
- if (!kn(this))
3027
- throw xn("highWaterMark");
3026
+ if (!xn(this))
3027
+ throw kn("highWaterMark");
3028
3028
  return this._countQueuingStrategyHighWaterMark;
3029
3029
  },
3030
3030
  enumerable: !1,
3031
3031
  configurable: !0
3032
3032
  }), Object.defineProperty(e.prototype, "size", {
3033
3033
  get: function() {
3034
- if (!kn(this))
3035
- throw xn("size");
3034
+ if (!xn(this))
3035
+ throw kn("size");
3036
3036
  return Rn;
3037
3037
  },
3038
3038
  enumerable: !1,
@@ -3046,21 +3046,21 @@ var sa = xr(function(je, it) {
3046
3046
  value: "CountQueuingStrategy",
3047
3047
  configurable: !0
3048
3048
  });
3049
- function xn(e) {
3049
+ function kn(e) {
3050
3050
  return new TypeError("CountQueuingStrategy.prototype." + e + " can only be used on a CountQueuingStrategy");
3051
3051
  }
3052
- function kn(e) {
3052
+ function xn(e) {
3053
3053
  return !v(e) || !Object.prototype.hasOwnProperty.call(e, "_countQueuingStrategyHighWaterMark") ? !1 : e instanceof wr;
3054
3054
  }
3055
3055
  function Li(e, i) {
3056
3056
  ye(e, i);
3057
- var R = e == null ? void 0 : e.flush, K = e == null ? void 0 : e.readableType, pe = e == null ? void 0 : e.start, Ae = e == null ? void 0 : e.transform, ke = e == null ? void 0 : e.writableType;
3057
+ var R = e == null ? void 0 : e.flush, K = e == null ? void 0 : e.readableType, pe = e == null ? void 0 : e.start, Ae = e == null ? void 0 : e.transform, xe = e == null ? void 0 : e.writableType;
3058
3058
  return {
3059
3059
  flush: R === void 0 ? void 0 : Ni(R, e, i + " has member 'flush' that"),
3060
3060
  readableType: K,
3061
3061
  start: pe === void 0 ? void 0 : Bi(pe, e, i + " has member 'start' that"),
3062
3062
  transform: Ae === void 0 ? void 0 : Wi(Ae, e, i + " has member 'transform' that"),
3063
- writableType: ke
3063
+ writableType: xe
3064
3064
  };
3065
3065
  }
3066
3066
  function Ni(e, i, R) {
@@ -3081,15 +3081,15 @@ var sa = xr(function(je, it) {
3081
3081
  var _r = function() {
3082
3082
  function e(i, R, K) {
3083
3083
  i === void 0 && (i = {}), R === void 0 && (R = {}), K === void 0 && (K = {}), i === void 0 && (i = null);
3084
- var pe = cr(R, "Second parameter"), Ae = cr(K, "Third parameter"), ke = Li(i, "First parameter");
3085
- if (ke.readableType !== void 0)
3084
+ var pe = cr(R, "Second parameter"), Ae = cr(K, "Third parameter"), xe = Li(i, "First parameter");
3085
+ if (xe.readableType !== void 0)
3086
3086
  throw new RangeError("Invalid readableType specified");
3087
- if (ke.writableType !== void 0)
3087
+ if (xe.writableType !== void 0)
3088
3088
  throw new RangeError("Invalid writableType specified");
3089
3089
  var Le = Jt(Ae, 0), Ye = lr(Ae), qe = Jt(pe, 1), Qe = lr(pe), et, ut = M(function(yt) {
3090
3090
  et = yt;
3091
3091
  });
3092
- Ui(this, ut, qe, Qe, Le, Ye), ji(this, ke), ke.start !== void 0 ? et(ke.start(this._transformStreamController)) : et(void 0);
3092
+ Ui(this, ut, qe, Qe, Le, Ye), ji(this, xe), xe.start !== void 0 ? et(xe.start(this._transformStreamController)) : et(void 0);
3093
3093
  }
3094
3094
  return Object.defineProperty(e.prototype, "readable", {
3095
3095
  get: function() {
@@ -3117,7 +3117,7 @@ var sa = xr(function(je, it) {
3117
3117
  configurable: !0
3118
3118
  });
3119
3119
  function Ui(e, i, R, K, pe, Ae) {
3120
- function ke() {
3120
+ function xe() {
3121
3121
  return i;
3122
3122
  }
3123
3123
  function Le(ut) {
@@ -3129,14 +3129,14 @@ var sa = xr(function(je, it) {
3129
3129
  function qe() {
3130
3130
  return Xi(e);
3131
3131
  }
3132
- e._writable = qn(ke, Le, qe, Ye, R, K);
3132
+ e._writable = qn(xe, Le, qe, Ye, R, K);
3133
3133
  function Qe() {
3134
3134
  return Yi(e);
3135
3135
  }
3136
3136
  function et(ut) {
3137
3137
  return Cr(e, ut), T(void 0);
3138
3138
  }
3139
- e._readable = $r(ke, Qe, et, pe, Ae), e._backpressure = void 0, e._backpressureChangePromise = void 0, e._backpressureChangePromise_resolve = void 0, Tr(e, !0), e._transformStreamController = void 0;
3139
+ e._readable = $r(xe, Qe, et, pe, Ae), e._backpressure = void 0, e._backpressureChangePromise = void 0, e._backpressureChangePromise_resolve = void 0, Tr(e, !0), e._transformStreamController = void 0;
3140
3140
  }
3141
3141
  function On(e) {
3142
3142
  return !v(e) || !Object.prototype.hasOwnProperty.call(e, "_transformStreamController") ? !1 : e instanceof _r;
@@ -3198,8 +3198,8 @@ var sa = xr(function(je, it) {
3198
3198
  var R = Object.create(ar.prototype), K = function(Ae) {
3199
3199
  try {
3200
3200
  return Mn(R, Ae), T(void 0);
3201
- } catch (ke) {
3202
- return m(ke);
3201
+ } catch (xe) {
3202
+ return m(xe);
3203
3203
  }
3204
3204
  }, pe = function() {
3205
3205
  return T(void 0);
@@ -3275,14 +3275,14 @@ var sa = xr(function(je, it) {
3275
3275
  function Dn(e) {
3276
3276
  return new TypeError("TransformStream.prototype." + e + " can only be used on a TransformStream");
3277
3277
  }
3278
- We.ByteLengthQueuingStrategy = Ar, We.CountQueuingStrategy = wr, We.ReadableByteStreamController = be, We.ReadableStream = xt, We.ReadableStreamBYOBReader = Qt, We.ReadableStreamBYOBRequest = ae, We.ReadableStreamDefaultController = $t, We.ReadableStreamDefaultReader = he, We.TransformStream = _r, We.TransformStreamDefaultController = ar, We.WritableStream = Zt, We.WritableStreamDefaultController = Gt, We.WritableStreamDefaultWriter = er, Object.defineProperty(We, "__esModule", { value: !0 });
3278
+ We.ByteLengthQueuingStrategy = Ar, We.CountQueuingStrategy = wr, We.ReadableByteStreamController = be, We.ReadableStream = kt, We.ReadableStreamBYOBReader = Qt, We.ReadableStreamBYOBRequest = ae, We.ReadableStreamDefaultController = $t, We.ReadableStreamDefaultReader = he, We.TransformStream = _r, We.TransformStreamDefaultController = ar, We.WritableStream = Zt, We.WritableStreamDefaultController = Gt, We.WritableStreamDefaultWriter = er, Object.defineProperty(We, "__esModule", { value: !0 });
3279
3279
  });
3280
3280
  });
3281
3281
  const la = {}, ca = /* @__PURE__ */ Object.freeze({
3282
3282
  __proto__: null,
3283
3283
  default: la
3284
3284
  }), Wt = /* @__PURE__ */ Qi(ca);
3285
- var Yr = xr(function(je, it) {
3285
+ var Yr = kr(function(je, it) {
3286
3286
  (function(Fe, Ge) {
3287
3287
  je.exports = Ge();
3288
3288
  })(globalThis, () => (() => {
@@ -3503,7 +3503,7 @@ var Yr = xr(function(je, it) {
3503
3503
  RLX: "RLX"
3504
3504
  };
3505
3505
  v.StreamType = B;
3506
- const x = {
3506
+ const k = {
3507
3507
  UNKNOWN: "UNKNOWN",
3508
3508
  TYPE1: "TYPE1",
3509
3509
  TYPE1STANDARD: "TYPE1STANDARD",
@@ -3517,7 +3517,7 @@ var Yr = xr(function(je, it) {
3517
3517
  TYPE0: "TYPE0",
3518
3518
  MMTYPE1: "MMTYPE1"
3519
3519
  };
3520
- v.FontType = x;
3520
+ v.FontType = k;
3521
3521
  const ne = {
3522
3522
  ERRORS: 0,
3523
3523
  WARNINGS: 1,
@@ -3749,12 +3749,12 @@ var Yr = xr(function(je, it) {
3749
3749
  }
3750
3750
  }
3751
3751
  v.MissingPDFException = _;
3752
- class k extends N {
3752
+ class x extends N {
3753
3753
  constructor(te, ae) {
3754
3754
  super(te, "UnexpectedResponseException"), this.status = ae;
3755
3755
  }
3756
3756
  }
3757
- v.UnexpectedResponseException = k;
3757
+ v.UnexpectedResponseException = x;
3758
3758
  class L extends N {
3759
3759
  constructor(te) {
3760
3760
  super(te, "FormatError");
@@ -3829,7 +3829,7 @@ var Yr = xr(function(je, it) {
3829
3829
  function Ee() {
3830
3830
  return !1;
3831
3831
  }
3832
- class xe {
3832
+ class ke {
3833
3833
  static get isLittleEndian() {
3834
3834
  return S(this, "isLittleEndian", we());
3835
3835
  }
@@ -3840,7 +3840,7 @@ var Yr = xr(function(je, it) {
3840
3840
  return S(this, "isOffscreenCanvasSupported", typeof OffscreenCanvas < "u");
3841
3841
  }
3842
3842
  }
3843
- v.FeatureTest = xe;
3843
+ v.FeatureTest = ke;
3844
3844
  const Ne = [...Array(256).keys()].map((ge) => ge.toString(16).padStart(2, "0"));
3845
3845
  class Oe {
3846
3846
  static makeHexColor(te, ae, be) {
@@ -4444,10 +4444,10 @@ var Yr = xr(function(je, it) {
4444
4444
  return F(E) ? w(E) : d(E, {});
4445
4445
  }, b = function(E) {
4446
4446
  return function(B) {
4447
- var x;
4448
- if (!O(B) || (x = w(B)).type !== E)
4447
+ var k;
4448
+ if (!O(B) || (k = w(B)).type !== E)
4449
4449
  throw l("Incompatible receiver, " + E + " required");
4450
- return x;
4450
+ return k;
4451
4451
  };
4452
4452
  };
4453
4453
  if (o || m.state) {
@@ -4674,7 +4674,7 @@ var Yr = xr(function(je, it) {
4674
4674
  });
4675
4675
  },
4676
4676
  (U, v, n) => {
4677
- var o = n(79), f = n(9), P = n(7), O = n(23), M = n(22), T = n(40), m = n(80), y = n(33), D = n(45), r = n(49), l = n(46).f, A = n(26), d = n(82), w = n(84), F = n(35), p = n(42), b = n(53), c = b.enforce, t = b.get, a = P.Int8Array, h = a && a.prototype, g = P.Uint8ClampedArray, E = g && g.prototype, B = a && d(a), x = h && d(h), ne = Object.prototype, q = P.TypeError, re = F("toStringTag"), Z = p("TYPED_ARRAY_TAG"), z = "TypedArrayConstructor", G = o && !!w && m(P.opera) !== "Opera", W = !1, I, ee, de, ye = {
4677
+ var o = n(79), f = n(9), P = n(7), O = n(23), M = n(22), T = n(40), m = n(80), y = n(33), D = n(45), r = n(49), l = n(46).f, A = n(26), d = n(82), w = n(84), F = n(35), p = n(42), b = n(53), c = b.enforce, t = b.get, a = P.Int8Array, h = a && a.prototype, g = P.Uint8ClampedArray, E = g && g.prototype, B = a && d(a), k = h && d(h), ne = Object.prototype, q = P.TypeError, re = F("toStringTag"), Z = p("TYPED_ARRAY_TAG"), z = "TypedArrayConstructor", G = o && !!w && m(P.opera) !== "Opera", W = !1, I, ee, de, ye = {
4678
4678
  Int8Array: 1,
4679
4679
  Uint8Array: 1,
4680
4680
  Uint8ClampedArray: 1,
@@ -4687,22 +4687,22 @@ var Yr = xr(function(je, it) {
4687
4687
  }, Se = {
4688
4688
  BigInt64Array: 8,
4689
4689
  BigUint64Array: 8
4690
- }, Y = function(k) {
4691
- if (!M(k))
4690
+ }, Y = function(x) {
4691
+ if (!M(x))
4692
4692
  return !1;
4693
- var L = m(k);
4693
+ var L = m(x);
4694
4694
  return L === "DataView" || T(ye, L) || T(Se, L);
4695
4695
  }, C = function(_) {
4696
- var k = d(_);
4697
- if (!!M(k)) {
4698
- var L = t(k);
4699
- return L && T(L, z) ? L[z] : C(k);
4696
+ var x = d(_);
4697
+ if (!!M(x)) {
4698
+ var L = t(x);
4699
+ return L && T(L, z) ? L[z] : C(x);
4700
4700
  }
4701
4701
  }, S = function(_) {
4702
4702
  if (!M(_))
4703
4703
  return !1;
4704
- var k = m(_);
4705
- return T(ye, k) || T(Se, k);
4704
+ var x = m(_);
4705
+ return T(ye, x) || T(Se, x);
4706
4706
  }, N = function(_) {
4707
4707
  if (S(_))
4708
4708
  return _;
@@ -4711,7 +4711,7 @@ var Yr = xr(function(je, it) {
4711
4711
  if (O(_) && (!w || A(B, _)))
4712
4712
  return _;
4713
4713
  throw q(y(_) + " is not a typed array constructor");
4714
- }, s = function(_, k, L, X) {
4714
+ }, s = function(_, x, L, X) {
4715
4715
  if (!!f) {
4716
4716
  if (L)
4717
4717
  for (var J in ye) {
@@ -4721,14 +4721,14 @@ var Yr = xr(function(je, it) {
4721
4721
  delete ie.prototype[_];
4722
4722
  } catch {
4723
4723
  try {
4724
- ie.prototype[_] = k;
4724
+ ie.prototype[_] = x;
4725
4725
  } catch {
4726
4726
  }
4727
4727
  }
4728
4728
  }
4729
- (!x[_] || L) && r(x, _, L ? k : G && h[_] || k, X);
4729
+ (!k[_] || L) && r(k, _, L ? x : G && h[_] || x, X);
4730
4730
  }
4731
- }, u = function(_, k, L) {
4731
+ }, u = function(_, x, L) {
4732
4732
  var X, J;
4733
4733
  if (!!f) {
4734
4734
  if (w) {
@@ -4742,14 +4742,14 @@ var Yr = xr(function(je, it) {
4742
4742
  }
4743
4743
  if (!B[_] || L)
4744
4744
  try {
4745
- return r(B, _, L ? k : G && B[_] || k);
4745
+ return r(B, _, L ? x : G && B[_] || x);
4746
4746
  } catch {
4747
4747
  }
4748
4748
  else
4749
4749
  return;
4750
4750
  }
4751
4751
  for (X in ye)
4752
- J = P[X], J && (!J[_] || L) && r(J, _, k);
4752
+ J = P[X], J && (!J[_] || L) && r(J, _, x);
4753
4753
  }
4754
4754
  };
4755
4755
  for (I in ye)
@@ -4761,11 +4761,11 @@ var Yr = xr(function(je, it) {
4761
4761
  }, G))
4762
4762
  for (I in ye)
4763
4763
  P[I] && w(P[I], B);
4764
- if ((!G || !x || x === ne) && (x = B.prototype, G))
4764
+ if ((!G || !k || k === ne) && (k = B.prototype, G))
4765
4765
  for (I in ye)
4766
- P[I] && w(P[I].prototype, x);
4767
- if (G && d(E) !== x && w(E, x), f && !T(x, re)) {
4768
- W = !0, l(x, re, {
4766
+ P[I] && w(P[I].prototype, k);
4767
+ if (G && d(E) !== k && w(E, k), f && !T(k, re)) {
4768
+ W = !0, l(k, re, {
4769
4769
  get: function() {
4770
4770
  return M(this) ? this[Z] : void 0;
4771
4771
  }
@@ -4784,7 +4784,7 @@ var Yr = xr(function(je, it) {
4784
4784
  isView: Y,
4785
4785
  isTypedArray: S,
4786
4786
  TypedArray: B,
4787
- TypedArrayPrototype: x
4787
+ TypedArrayPrototype: k
4788
4788
  };
4789
4789
  },
4790
4790
  (U) => {
@@ -4894,8 +4894,8 @@ var Yr = xr(function(je, it) {
4894
4894
  var o = n(6), f = n(11), P = n(37), O = n(51), M = n(23), T = n(90), m = n(82), y = n(84), D = n(92), r = n(45), l = n(49), A = n(35), d = n(88), w = n(91), F = O.PROPER, p = O.CONFIGURABLE, b = w.IteratorPrototype, c = w.BUGGY_SAFARI_ITERATORS, t = A("iterator"), a = "keys", h = "values", g = "entries", E = function() {
4895
4895
  return this;
4896
4896
  };
4897
- U.exports = function(B, x, ne, q, re, Z, z) {
4898
- T(ne, x, q);
4897
+ U.exports = function(B, k, ne, q, re, Z, z) {
4898
+ T(ne, k, q);
4899
4899
  var G = function(N) {
4900
4900
  if (N === re && ye)
4901
4901
  return ye;
@@ -4918,7 +4918,7 @@ var Yr = xr(function(je, it) {
4918
4918
  return function() {
4919
4919
  return new ne(this);
4920
4920
  };
4921
- }, W = x + " Iterator", I = !1, ee = B.prototype, de = ee[t] || ee["@@iterator"] || re && ee[re], ye = !c && de || G(re), Se = x == "Array" && ee.entries || de, Y, C, S;
4921
+ }, W = k + " Iterator", I = !1, ee = B.prototype, de = ee[t] || ee["@@iterator"] || re && ee[re], ye = !c && de || G(re), Se = k == "Array" && ee.entries || de, Y, C, S;
4922
4922
  if (Se && (Y = m(Se.call(new B())), Y !== Object.prototype && Y.next && (!P && m(Y) !== b && (y ? y(Y, b) : M(Y[t]) || l(Y, t, E)), D(Y, W, !0, !0), P && (d[W] = E))), F && re == h && de && de.name !== h && (!P && p ? r(ee, "name", h) : (I = !0, ye = function() {
4923
4923
  return f(de, this);
4924
4924
  })), re)
@@ -4931,11 +4931,11 @@ var Yr = xr(function(je, it) {
4931
4931
  (c || I || !(S in ee)) && l(ee, S, C[S]);
4932
4932
  else
4933
4933
  o({
4934
- target: x,
4934
+ target: k,
4935
4935
  proto: !0,
4936
4936
  forced: c || I
4937
4937
  }, C);
4938
- return (!P || z) && ee[t] !== ye && l(ee, t, ye, { name: re }), d[x] = ye, C;
4938
+ return (!P || z) && ee[t] !== ye && l(ee, t, ye, { name: re }), d[k] = ye, C;
4939
4939
  };
4940
4940
  },
4941
4941
  (U, v, n) => {
@@ -4994,7 +4994,7 @@ var Yr = xr(function(je, it) {
4994
4994
  (U, v, n) => {
4995
4995
  var o = n(6), f = n(7), P = n(17), O = n(69), M = n(49), T = n(98), m = n(105), y = n(111), D = n(23), r = n(22), l = n(10), A = n(112), d = n(92), w = n(113);
4996
4996
  U.exports = function(F, p, b) {
4997
- var c = F.indexOf("Map") !== -1, t = F.indexOf("Weak") !== -1, a = c ? "set" : "add", h = f[F], g = h && h.prototype, E = h, B = {}, x = function(W) {
4997
+ var c = F.indexOf("Map") !== -1, t = F.indexOf("Weak") !== -1, a = c ? "set" : "add", h = f[F], g = h && h.prototype, E = h, B = {}, k = function(W) {
4998
4998
  var I = P(g[W]);
4999
4999
  M(g, W, W == "add" ? function(de) {
5000
5000
  return I(this, de === 0 ? 0 : de), this;
@@ -5029,7 +5029,7 @@ var Yr = xr(function(je, it) {
5029
5029
  that: ee,
5030
5030
  AS_ENTRIES: c
5031
5031
  }), ee;
5032
- }), E.prototype = g, g.constructor = E), (Z || G) && (x("delete"), x("has"), c && x("get")), (G || re) && x(a), t && g.clear && delete g.clear;
5032
+ }), E.prototype = g, g.constructor = E), (Z || G) && (k("delete"), k("has"), c && k("get")), (G || re) && k(a), t && g.clear && delete g.clear;
5033
5033
  }
5034
5034
  return B[F] = E, o({
5035
5035
  global: !0,
@@ -5073,12 +5073,12 @@ var Yr = xr(function(je, it) {
5073
5073
  }, A = !0;
5074
5074
  var h = m.f, g = f([].splice), E = {};
5075
5075
  E[d] = 1, h(E).length && (m.f = function(B) {
5076
- for (var x = h(B), ne = 0, q = x.length; ne < q; ne++)
5077
- if (x[ne] === d) {
5078
- g(x, ne, 1);
5076
+ for (var k = h(B), ne = 0, q = k.length; ne < q; ne++)
5077
+ if (k[ne] === d) {
5078
+ g(k, ne, 1);
5079
5079
  break;
5080
5080
  }
5081
- return x;
5081
+ return k;
5082
5082
  }, o({
5083
5083
  target: "Object",
5084
5084
  stat: !0,
@@ -5146,7 +5146,7 @@ var Yr = xr(function(je, it) {
5146
5146
  this.stopped = w, this.result = F;
5147
5147
  }, d = A.prototype;
5148
5148
  U.exports = function(w, F, p) {
5149
- var b = p && p.that, c = !!(p && p.AS_ENTRIES), t = !!(p && p.IS_RECORD), a = !!(p && p.IS_ITERATOR), h = !!(p && p.INTERRUPTED), g = o(F, b), E, B, x, ne, q, re, Z, z = function(W) {
5149
+ var b = p && p.that, c = !!(p && p.AS_ENTRIES), t = !!(p && p.IS_RECORD), a = !!(p && p.IS_ITERATOR), h = !!(p && p.INTERRUPTED), g = o(F, b), E, B, k, ne, q, re, Z, z = function(W) {
5150
5150
  return E && r(E, "normal", W), new A(!0, W);
5151
5151
  }, G = function(W) {
5152
5152
  return c ? (P(W), h ? g(W[0], W[1], z) : g(W[0], W[1])) : h ? g(W, z) : g(W);
@@ -5159,8 +5159,8 @@ var Yr = xr(function(je, it) {
5159
5159
  if (B = D(w), !B)
5160
5160
  throw l(O(w) + " is not iterable");
5161
5161
  if (M(B)) {
5162
- for (x = 0, ne = T(w); ne > x; x++)
5163
- if (q = G(w[x]), q && m(d, q))
5162
+ for (k = 0, ne = T(w); ne > k; k++)
5163
+ if (q = G(w[k]), q && m(d, q))
5164
5164
  return q;
5165
5165
  return new A(!1);
5166
5166
  }
@@ -5296,40 +5296,40 @@ var Yr = xr(function(je, it) {
5296
5296
  that: E,
5297
5297
  AS_ENTRIES: p
5298
5298
  });
5299
- }), t = c.prototype, a = d(F), h = function(E, B, x) {
5299
+ }), t = c.prototype, a = d(F), h = function(E, B, k) {
5300
5300
  var ne = a(E), q = g(E, B), re, Z;
5301
- return q ? q.value = x : (ne.last = q = {
5301
+ return q ? q.value = k : (ne.last = q = {
5302
5302
  index: Z = r(B, !0),
5303
5303
  key: B,
5304
- value: x,
5304
+ value: k,
5305
5305
  previous: re = ne.last,
5306
5306
  next: void 0,
5307
5307
  removed: !1
5308
5308
  }, ne.first || (ne.first = q), re && (re.next = q), D ? ne.size++ : E.size++, Z !== "F" && (ne.index[Z] = q)), E;
5309
5309
  }, g = function(E, B) {
5310
- var x = a(E), ne = r(B), q;
5310
+ var k = a(E), ne = r(B), q;
5311
5311
  if (ne !== "F")
5312
- return x.index[ne];
5313
- for (q = x.first; q; q = q.next)
5312
+ return k.index[ne];
5313
+ for (q = k.first; q; q = q.next)
5314
5314
  if (q.key == B)
5315
5315
  return q;
5316
5316
  };
5317
5317
  return P(t, {
5318
5318
  clear: function() {
5319
- for (var B = this, x = a(B), ne = x.index, q = x.first; q; )
5319
+ for (var B = this, k = a(B), ne = k.index, q = k.first; q; )
5320
5320
  q.removed = !0, q.previous && (q.previous = q.previous.next = void 0), delete ne[q.index], q = q.next;
5321
- x.first = x.last = void 0, D ? x.size = 0 : B.size = 0;
5321
+ k.first = k.last = void 0, D ? k.size = 0 : B.size = 0;
5322
5322
  },
5323
5323
  delete: function(E) {
5324
- var B = this, x = a(B), ne = g(B, E);
5324
+ var B = this, k = a(B), ne = g(B, E);
5325
5325
  if (ne) {
5326
5326
  var q = ne.next, re = ne.previous;
5327
- delete x.index[ne.index], ne.removed = !0, re && (re.next = q), q && (q.previous = re), x.first == ne && (x.first = q), x.last == ne && (x.last = re), D ? x.size-- : B.size--;
5327
+ delete k.index[ne.index], ne.removed = !0, re && (re.next = q), q && (q.previous = re), k.first == ne && (k.first = q), k.last == ne && (k.last = re), D ? k.size-- : B.size--;
5328
5328
  }
5329
5329
  return !!ne;
5330
5330
  },
5331
5331
  forEach: function(B) {
5332
- for (var x = a(this), ne = O(B, arguments.length > 1 ? arguments[1] : void 0), q; q = q ? q.next : x.first; )
5332
+ for (var k = a(this), ne = O(B, arguments.length > 1 ? arguments[1] : void 0), q; q = q ? q.next : k.first; )
5333
5333
  for (ne(q.value, q.key, this); q && q.removed; )
5334
5334
  q = q.previous;
5335
5335
  },
@@ -5338,11 +5338,11 @@ var Yr = xr(function(je, it) {
5338
5338
  }
5339
5339
  }), P(t, p ? {
5340
5340
  get: function(B) {
5341
- var x = g(this, B);
5342
- return x && x.value;
5341
+ var k = g(this, B);
5342
+ return k && k.value;
5343
5343
  },
5344
- set: function(B, x) {
5345
- return h(this, B === 0 ? 0 : B, x);
5344
+ set: function(B, k) {
5345
+ return h(this, B === 0 ? 0 : B, k);
5346
5346
  }
5347
5347
  } : {
5348
5348
  add: function(B) {
@@ -5419,12 +5419,12 @@ var Yr = xr(function(je, it) {
5419
5419
  }, f);
5420
5420
  },
5421
5421
  (U, v, n) => {
5422
- var o = n(37), f = n(6), P = n(7), O = n(25), M = n(17), T = n(10), m = n(42), y = n(23), D = n(120), r = n(22), l = n(24), A = n(105), d = n(48), w = n(80), F = n(40), p = n(101), b = n(45), c = n(65), t = n(121), a = n(122), h = n(124), g = n(29), E = n(125), B = n(126), x = n(127), ne = P.Object, q = P.Date, re = P.Error, Z = P.EvalError, z = P.RangeError, G = P.ReferenceError, W = P.SyntaxError, I = P.TypeError, ee = P.URIError, de = P.PerformanceMark, ye = P.WebAssembly, Se = ye && ye.CompileError || re, Y = ye && ye.LinkError || re, C = ye && ye.RuntimeError || re, S = O("DOMException"), N = O("Set"), j = O("Map"), s = j.prototype, u = M(s.has), _ = M(s.get), k = M(s.set), L = M(N.prototype.add), X = O("Object", "keys"), J = M([].push), ie = M((!0).valueOf), se = M(1 .valueOf), he = M("".valueOf), le = M(q.prototype.getTime), fe = m("structuredClone"), ve = "DataCloneError", we = "Transferring", Ee = function(ce) {
5422
+ var o = n(37), f = n(6), P = n(7), O = n(25), M = n(17), T = n(10), m = n(42), y = n(23), D = n(120), r = n(22), l = n(24), A = n(105), d = n(48), w = n(80), F = n(40), p = n(101), b = n(45), c = n(65), t = n(121), a = n(122), h = n(124), g = n(29), E = n(125), B = n(126), k = n(127), ne = P.Object, q = P.Date, re = P.Error, Z = P.EvalError, z = P.RangeError, G = P.ReferenceError, W = P.SyntaxError, I = P.TypeError, ee = P.URIError, de = P.PerformanceMark, ye = P.WebAssembly, Se = ye && ye.CompileError || re, Y = ye && ye.LinkError || re, C = ye && ye.RuntimeError || re, S = O("DOMException"), N = O("Set"), j = O("Map"), s = j.prototype, u = M(s.has), _ = M(s.get), x = M(s.set), L = M(N.prototype.add), X = O("Object", "keys"), J = M([].push), ie = M((!0).valueOf), se = M(1 .valueOf), he = M("".valueOf), le = M(q.prototype.getTime), fe = m("structuredClone"), ve = "DataCloneError", we = "Transferring", Ee = function(ce) {
5423
5423
  return !T(function() {
5424
5424
  var Te = new P.Set([7]), Ie = ce(Te), ge = ce(ne(7));
5425
5425
  return Ie == Te || !Ie.has(7) || typeof ge != "object" || ge != 7;
5426
5426
  }) && ce;
5427
- }, xe = function(ce, Te) {
5427
+ }, ke = function(ce, Te) {
5428
5428
  return !T(function() {
5429
5429
  var Ie = new Te(), ge = ce({
5430
5430
  a: Ie,
@@ -5437,7 +5437,7 @@ var Yr = xr(function(je, it) {
5437
5437
  var Te = ce(new P.AggregateError([1], fe, { cause: 3 }));
5438
5438
  return Te.name != "AggregateError" || Te.errors[0] != 1 || Te.message != fe || Te.cause != 3;
5439
5439
  });
5440
- }, Oe = P.structuredClone, Ce = o || !xe(Oe, re) || !xe(Oe, S) || !Ne(Oe), V = !Oe && Ee(function(ce) {
5440
+ }, Oe = P.structuredClone, Ce = o || !ke(Oe, re) || !ke(Oe, S) || !Ne(Oe), V = !Oe && Ee(function(ce) {
5441
5441
  return new de(fe, { detail: ce }).detail;
5442
5442
  }), Q = Ee(Oe) || V, $ = function(ce) {
5443
5443
  throw new S("Uncloneable type: " + ce, ve);
@@ -5640,7 +5640,7 @@ var Yr = xr(function(je, it) {
5640
5640
  $(Ie);
5641
5641
  }
5642
5642
  }
5643
- if (k(Te, ce, be), ge)
5643
+ if (x(Te, ce, be), ge)
5644
5644
  switch (Ie) {
5645
5645
  case "Array":
5646
5646
  case "Object":
@@ -5649,7 +5649,7 @@ var Yr = xr(function(je, it) {
5649
5649
  break;
5650
5650
  case "Map":
5651
5651
  ce.forEach(function(ze, Ve) {
5652
- k(be, oe(Ve, Te), oe(ze, Te));
5652
+ x(be, oe(Ve, Te), oe(ze, Te));
5653
5653
  });
5654
5654
  break;
5655
5655
  case "Set":
@@ -5664,7 +5664,7 @@ var Yr = xr(function(je, it) {
5664
5664
  }
5665
5665
  return be;
5666
5666
  }, _e = Oe && !T(function() {
5667
- if (B && g > 92 || x && g > 94 || E && g > 97)
5667
+ if (B && g > 92 || k && g > 94 || E && g > 97)
5668
5668
  return !1;
5669
5669
  var ce = new ArrayBuffer(8), Te = Oe(ce, { transfer: [ce] });
5670
5670
  return ce.byteLength != 0 || Te.byteLength != 8;
@@ -5678,7 +5678,7 @@ var Yr = xr(function(je, it) {
5678
5678
  var ge = 0, te = c(Ie), ae, be, De, $e, me, ue, Pe;
5679
5679
  if (_e)
5680
5680
  for ($e = Oe(Ie, { transfer: Ie }); ge < te; )
5681
- k(Te, Ie[ge], $e[ge++]);
5681
+ x(Te, Ie[ge], $e[ge++]);
5682
5682
  else
5683
5683
  for (; ge < te; ) {
5684
5684
  if (ae = Ie[ge++], u(Te, ae))
@@ -5709,7 +5709,7 @@ var Yr = xr(function(je, it) {
5709
5709
  }
5710
5710
  if (me === void 0)
5711
5711
  throw new S("This object cannot be transferred: " + be, ve);
5712
- k(Te, ae, me);
5712
+ x(Te, ae, me);
5713
5713
  }
5714
5714
  };
5715
5715
  f({
@@ -5826,7 +5826,7 @@ var Yr = xr(function(je, it) {
5826
5826
  }
5827
5827
  function c(Ce, V) {
5828
5828
  var Q = t(Ce, V, "get");
5829
- return x(Ce, Q);
5829
+ return k(Ce, Q);
5830
5830
  }
5831
5831
  function t(Ce, V, Q) {
5832
5832
  if (!V.has(Ce))
@@ -5846,7 +5846,7 @@ var Yr = xr(function(je, it) {
5846
5846
  }
5847
5847
  }
5848
5848
  function g(Ce, V, Q) {
5849
- return B(Ce, V), E(Q, "get"), x(Ce, Q);
5849
+ return B(Ce, V), E(Q, "get"), k(Ce, Q);
5850
5850
  }
5851
5851
  function E(Ce, V) {
5852
5852
  if (Ce === void 0)
@@ -5856,7 +5856,7 @@ var Yr = xr(function(je, it) {
5856
5856
  if (Ce !== V)
5857
5857
  throw new TypeError("Private static access of wrong provenance");
5858
5858
  }
5859
- function x(Ce, V) {
5859
+ function k(Ce, V) {
5860
5860
  return V.get ? V.get.call(Ce) : V.value;
5861
5861
  }
5862
5862
  const ne = 65536, q = 100;
@@ -6704,10 +6704,10 @@ var Yr = xr(function(je, it) {
6704
6704
  u.getWorkerSrc = function() {
6705
6705
  return (0, P.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."), this.workerSrc;
6706
6706
  };
6707
- var k = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap();
6707
+ var x = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap();
6708
6708
  class ie {
6709
6709
  constructor(V, Q, $, H) {
6710
- F(this, k, {
6710
+ F(this, x, {
6711
6711
  writable: !0,
6712
6712
  value: null
6713
6713
  }), F(this, L, {
@@ -6735,7 +6735,7 @@ var Yr = xr(function(je, it) {
6735
6735
  return (0, o.shadow)(this, "annotationStorage", new f.AnnotationStorage());
6736
6736
  }
6737
6737
  get stats() {
6738
- return c(this, k);
6738
+ return c(this, x);
6739
6739
  }
6740
6740
  getRenderingIntent(V) {
6741
6741
  let Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : o.AnnotationMode.ENABLE, $ = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, H = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, oe = o.RenderingIntentFlag.DISPLAY, _e = null;
@@ -6994,7 +6994,7 @@ var Yr = xr(function(je, it) {
6994
6994
  total: $.total
6995
6995
  });
6996
6996
  }), V.on("DocStats", ($) => {
6997
- this.destroyed || b(this, k, Object.freeze({
6997
+ this.destroyed || b(this, x, Object.freeze({
6998
6998
  streamTypes: Object.freeze($.streamTypes),
6999
6999
  fontTypes: Object.freeze($.fontTypes)
7000
7000
  }));
@@ -7236,9 +7236,9 @@ var Yr = xr(function(je, it) {
7236
7236
  if (this.cancelled)
7237
7237
  return;
7238
7238
  if (this._canvas) {
7239
- if (g(Ee, Ee, xe).has(this._canvas))
7239
+ if (g(Ee, Ee, ke).has(this._canvas))
7240
7240
  throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");
7241
- g(Ee, Ee, xe).add(this._canvas);
7241
+ g(Ee, Ee, ke).add(this._canvas);
7242
7242
  }
7243
7243
  this._pdfBug && (Q = globalThis.StepperManager) !== null && Q !== void 0 && Q.enabled && (this.stepper = globalThis.StepperManager.create(this._pageIndex), this.stepper.init(this.operatorList), this.stepper.nextBreakPoint = this.stepper.getNextBreakPoint());
7244
7244
  const {
@@ -7257,7 +7257,7 @@ var Yr = xr(function(je, it) {
7257
7257
  }
7258
7258
  cancel() {
7259
7259
  let V = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
7260
- this.running = !1, this.cancelled = !0, this.gfx && this.gfx.endDrawing(), this._canvas && g(Ee, Ee, xe).delete(this._canvas), this.callback(V || new P.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex + 1}`, "canvas"));
7260
+ this.running = !1, this.cancelled = !0, this.gfx && this.gfx.endDrawing(), this._canvas && g(Ee, Ee, ke).delete(this._canvas), this.callback(V || new P.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex + 1}`, "canvas"));
7261
7261
  }
7262
7262
  operatorListChanged() {
7263
7263
  if (!this.graphicsReady) {
@@ -7275,10 +7275,10 @@ var Yr = xr(function(je, it) {
7275
7275
  }) : Promise.resolve().then(this._nextBound).catch(this._cancelBound);
7276
7276
  }
7277
7277
  async _next() {
7278
- this.cancelled || (this.operatorListIdx = this.gfx.executeOperatorList(this.operatorList, this.operatorListIdx, this._continueBound, this.stepper), this.operatorListIdx === this.operatorList.argsArray.length && (this.running = !1, this.operatorList.lastChunk && (this.gfx.endDrawing(), this._canvas && g(Ee, Ee, xe).delete(this._canvas), this.callback())));
7278
+ this.cancelled || (this.operatorListIdx = this.gfx.executeOperatorList(this.operatorList, this.operatorListIdx, this._continueBound, this.stepper), this.operatorListIdx === this.operatorList.argsArray.length && (this.running = !1, this.operatorList.lastChunk && (this.gfx.endDrawing(), this._canvas && g(Ee, Ee, ke).delete(this._canvas), this.callback())));
7279
7279
  }
7280
7280
  }
7281
- var xe = {
7281
+ var ke = {
7282
7282
  writable: !0,
7283
7283
  value: /* @__PURE__ */ new WeakSet()
7284
7284
  };
@@ -7554,31 +7554,31 @@ var Yr = xr(function(je, it) {
7554
7554
  t.ctrlKey && !a || t.shiftKey || t.metaKey && a ? this.parent.toggleSelected(this) : this.parent.setSelected(this), T(this, d, !0);
7555
7555
  }
7556
7556
  getRect(t, a) {
7557
- const [h, g] = this.parent.viewportBaseDimensions, [E, B] = this.parent.pageDimensions, x = E * t / h, ne = B * a / g, q = this.x * E, re = this.y * B, Z = this.width * E, z = this.height * B;
7557
+ const [h, g] = this.parent.viewportBaseDimensions, [E, B] = this.parent.pageDimensions, k = E * t / h, ne = B * a / g, q = this.x * E, re = this.y * B, Z = this.width * E, z = this.height * B;
7558
7558
  switch (this.rotation) {
7559
7559
  case 0:
7560
- return [q + x, B - re - ne - z, q + x + Z, B - re - ne];
7560
+ return [q + k, B - re - ne - z, q + k + Z, B - re - ne];
7561
7561
  case 90:
7562
- return [q + ne, B - re + x, q + ne + z, B - re + x + Z];
7562
+ return [q + ne, B - re + k, q + ne + z, B - re + k + Z];
7563
7563
  case 180:
7564
- return [q - x - Z, B - re + ne, q - x, B - re + ne + z];
7564
+ return [q - k - Z, B - re + ne, q - k, B - re + ne + z];
7565
7565
  case 270:
7566
- return [q - ne - z, B - re - x - Z, q - ne, B - re - x];
7566
+ return [q - ne - z, B - re - k - Z, q - ne, B - re - k];
7567
7567
  default:
7568
7568
  throw new Error("Invalid rotation");
7569
7569
  }
7570
7570
  }
7571
7571
  getRectInCurrentCoords(t, a) {
7572
- const [h, g, E, B] = t, x = E - h, ne = B - g;
7572
+ const [h, g, E, B] = t, k = E - h, ne = B - g;
7573
7573
  switch (this.rotation) {
7574
7574
  case 0:
7575
- return [h, a - B, x, ne];
7575
+ return [h, a - B, k, ne];
7576
7576
  case 90:
7577
- return [h, a - g, ne, x];
7577
+ return [h, a - g, ne, k];
7578
7578
  case 180:
7579
- return [E, a - g, x, ne];
7579
+ return [E, a - g, k, ne];
7580
7580
  case 270:
7581
- return [E, a - B, ne, x];
7581
+ return [E, a - B, ne, k];
7582
7582
  default:
7583
7583
  throw new Error("Invalid rotation");
7584
7584
  }
@@ -7616,8 +7616,8 @@ var Yr = xr(function(je, it) {
7616
7616
  id: a.getNextId()
7617
7617
  });
7618
7618
  h.rotation = t.rotation;
7619
- const [g, E] = a.pageDimensions, [B, x, ne, q] = h.getRectInCurrentCoords(t.rect, E);
7620
- return h.x = B / g, h.y = x / E, h.width = ne / g, h.height = q / E, h;
7619
+ const [g, E] = a.pageDimensions, [B, k, ne, q] = h.getRectInCurrentCoords(t.rect, E);
7620
+ return h.x = B / g, h.y = k / E, h.width = ne / g, h.height = q / E, h;
7621
7621
  }
7622
7622
  remove() {
7623
7623
  this.div.removeEventListener("focusin", y(this, l)), this.div.removeEventListener("focusout", y(this, A)), this.isEmpty() || this.commit(), this.parent.remove(this);
@@ -7812,25 +7812,25 @@ var Yr = xr(function(je, it) {
7812
7812
  const H = this.buffer.join("+");
7813
7813
  return this.buffer.length = 0, H;
7814
7814
  }
7815
- var x = /* @__PURE__ */ new WeakMap();
7815
+ var k = /* @__PURE__ */ new WeakMap();
7816
7816
  class ne {
7817
7817
  constructor() {
7818
- T(this, x, {
7818
+ T(this, k, {
7819
7819
  writable: !0,
7820
7820
  value: null
7821
7821
  });
7822
7822
  }
7823
7823
  copy(H) {
7824
- !H || (Array.isArray(H) ? y(this, x, H.map((oe) => oe.serialize())) : y(this, x, [H.serialize()]), y(this, x, r(this, x).filter((oe) => !!oe)), r(this, x).length === 0 && y(this, x, null));
7824
+ !H || (Array.isArray(H) ? y(this, k, H.map((oe) => oe.serialize())) : y(this, k, [H.serialize()]), y(this, k, r(this, k).filter((oe) => !!oe)), r(this, k).length === 0 && y(this, k, null));
7825
7825
  }
7826
7826
  paste() {
7827
- return r(this, x);
7827
+ return r(this, k);
7828
7828
  }
7829
7829
  isEmpty() {
7830
- return r(this, x) === null;
7830
+ return r(this, k) === null;
7831
7831
  }
7832
7832
  destroy() {
7833
- y(this, x, null);
7833
+ y(this, k, null);
7834
7834
  }
7835
7835
  }
7836
7836
  class q {
@@ -7853,10 +7853,10 @@ var Yr = xr(function(je, it) {
7853
7853
  }
7854
7854
  }
7855
7855
  v.ColorManager = q, P(q, "_colorsMapping", /* @__PURE__ */ new Map([["CanvasText", [0, 0, 0]], ["Canvas", [255, 255, 255]]]));
7856
- var re = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), C = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakSet(), k = /* @__PURE__ */ new WeakSet(), L = /* @__PURE__ */ new WeakSet(), X = /* @__PURE__ */ new WeakSet(), J = /* @__PURE__ */ new WeakSet(), ie = /* @__PURE__ */ new WeakSet(), se = /* @__PURE__ */ new WeakSet(), he = /* @__PURE__ */ new WeakSet(), le = /* @__PURE__ */ new WeakSet();
7856
+ var re = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), C = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakSet(), x = /* @__PURE__ */ new WeakSet(), L = /* @__PURE__ */ new WeakSet(), X = /* @__PURE__ */ new WeakSet(), J = /* @__PURE__ */ new WeakSet(), ie = /* @__PURE__ */ new WeakSet(), se = /* @__PURE__ */ new WeakSet(), he = /* @__PURE__ */ new WeakSet(), le = /* @__PURE__ */ new WeakSet();
7857
7857
  class fe {
7858
7858
  constructor(H, oe) {
7859
- O(this, le), O(this, he), O(this, se), O(this, ie), O(this, J), O(this, X), O(this, L), O(this, k), O(this, _), T(this, re, {
7859
+ O(this, le), O(this, he), O(this, se), O(this, ie), O(this, J), O(this, X), O(this, L), O(this, x), O(this, _), T(this, re, {
7860
7860
  writable: !0,
7861
7861
  value: null
7862
7862
  }), T(this, Z, {
@@ -7917,7 +7917,7 @@ var Yr = xr(function(je, it) {
7917
7917
  }), y(this, u, H), y(this, de, oe), r(this, de)._on("editingaction", r(this, N)), r(this, de)._on("pagechanging", r(this, j));
7918
7918
  }
7919
7919
  destroy() {
7920
- M(this, k, we).call(this), r(this, de)._off("editingaction", r(this, N)), r(this, de)._off("pagechanging", r(this, j));
7920
+ M(this, x, we).call(this), r(this, de)._off("editingaction", r(this, N)), r(this, de)._off("pagechanging", r(this, j));
7921
7921
  for (const H of r(this, z).values())
7922
7922
  H.destroy();
7923
7923
  r(this, z).clear(), r(this, Z).clear(), y(this, re, null), r(this, C).clear(), r(this, G).destroy(), r(this, W).destroy();
@@ -7946,14 +7946,14 @@ var Yr = xr(function(je, it) {
7946
7946
  hasSomethingToRedo: r(this, W).hasSomethingToRedo(),
7947
7947
  hasSelectedEditor: !1,
7948
7948
  hasEmptyClipboard: r(this, G).isEmpty()
7949
- })) : (M(this, k, we).call(this), M(this, L, Ee).call(this, {
7949
+ })) : (M(this, x, we).call(this), M(this, L, Ee).call(this, {
7950
7950
  isEditing: !1
7951
7951
  }));
7952
7952
  }
7953
7953
  registerEditorTypes(H) {
7954
7954
  y(this, ee, H);
7955
7955
  for (const oe of r(this, ee))
7956
- M(this, X, xe).call(this, oe.defaultPropertiesToUpdate);
7956
+ M(this, X, ke).call(this, oe.defaultPropertiesToUpdate);
7957
7957
  }
7958
7958
  getId() {
7959
7959
  return r(this, ye).getId();
@@ -8001,7 +8001,7 @@ var Yr = xr(function(je, it) {
8001
8001
  r(this, Z).delete(H.id), this.unselect(H);
8002
8002
  }
8003
8003
  setActiveEditor(H) {
8004
- r(this, re) !== H && (y(this, re, H), H && M(this, X, xe).call(this, H.propertiesToUpdate));
8004
+ r(this, re) !== H && (y(this, re, H), H && M(this, X, ke).call(this, H.propertiesToUpdate));
8005
8005
  }
8006
8006
  toggleSelected(H) {
8007
8007
  if (r(this, C).has(H)) {
@@ -8010,14 +8010,14 @@ var Yr = xr(function(je, it) {
8010
8010
  });
8011
8011
  return;
8012
8012
  }
8013
- r(this, C).add(H), H.select(), M(this, X, xe).call(this, H.propertiesToUpdate), M(this, L, Ee).call(this, {
8013
+ r(this, C).add(H), H.select(), M(this, X, ke).call(this, H.propertiesToUpdate), M(this, L, Ee).call(this, {
8014
8014
  hasSelectedEditor: !0
8015
8015
  });
8016
8016
  }
8017
8017
  setSelected(H) {
8018
8018
  for (const oe of r(this, C))
8019
8019
  oe !== H && oe.unselect();
8020
- r(this, C).clear(), r(this, C).add(H), H.select(), M(this, X, xe).call(this, H.propertiesToUpdate), M(this, L, Ee).call(this, {
8020
+ r(this, C).clear(), r(this, C).add(H), H.select(), M(this, X, ke).call(this, H.propertiesToUpdate), M(this, L, Ee).call(this, {
8021
8021
  hasSelectedEditor: !0
8022
8022
  });
8023
8023
  }
@@ -8146,7 +8146,7 @@ var Yr = xr(function(je, it) {
8146
8146
  details: Object.assign(r(this, s), $)
8147
8147
  });
8148
8148
  }
8149
- function xe($) {
8149
+ function ke($) {
8150
8150
  r(this, de).dispatch("annotationeditorparamschanged", {
8151
8151
  source: this,
8152
8152
  details: $
@@ -8191,7 +8191,7 @@ var Yr = xr(function(je, it) {
8191
8191
  (U, v, n) => {
8192
8192
  Object.defineProperty(v, "__esModule", {
8193
8193
  value: !0
8194
- }), v.StatTimer = v.RenderingCancelledException = v.PixelsPerInch = v.PageViewport = v.PDFDateString = v.DOMStandardFontDataFactory = v.DOMSVGFactory = v.DOMCanvasFactory = v.DOMCMapReaderFactory = v.AnnotationPrefix = void 0, v.deprecated = h, v.getColorValues = ne, v.getCurrentTransform = q, v.getCurrentTransformInverse = re, v.getFilenameFromUrl = p, v.getPdfFilenameFromUrl = b, v.getRGB = x, v.getXfaPageViewport = B, v.isDataScheme = w, v.isPdfFile = F, v.isValidFetchUrl = t, v.loadScript = a;
8194
+ }), v.StatTimer = v.RenderingCancelledException = v.PixelsPerInch = v.PageViewport = v.PDFDateString = v.DOMStandardFontDataFactory = v.DOMSVGFactory = v.DOMCanvasFactory = v.DOMCMapReaderFactory = v.AnnotationPrefix = void 0, v.deprecated = h, v.getColorValues = ne, v.getCurrentTransform = q, v.getCurrentTransformInverse = re, v.getFilenameFromUrl = p, v.getPdfFilenameFromUrl = b, v.getRGB = k, v.getXfaPageViewport = B, v.isDataScheme = w, v.isPdfFile = F, v.isValidFetchUrl = t, v.loadScript = a;
8195
8195
  var o = n(134), f = n(1);
8196
8196
  function P(Z, z, G) {
8197
8197
  return z in Z ? Object.defineProperty(Z, z, { value: G, enumerable: !0, configurable: !0, writable: !0 }) : Z[z] = G, Z;
@@ -8289,8 +8289,8 @@ var Yr = xr(function(je, it) {
8289
8289
  throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.");
8290
8290
  }
8291
8291
  ye && (N = -N, j = -j);
8292
- let s, u, _, k;
8293
- C === 0 ? (s = Math.abs(Y - G[1]) * W + ee, u = Math.abs(Se - G[0]) * W + de, _ = Math.abs(G[3] - G[1]) * W, k = Math.abs(G[2] - G[0]) * W) : (s = Math.abs(Se - G[0]) * W + ee, u = Math.abs(Y - G[1]) * W + de, _ = Math.abs(G[2] - G[0]) * W, k = Math.abs(G[3] - G[1]) * W), this.transform = [C * W, S * W, N * W, j * W, s - C * W * Se - N * W * Y, u - S * W * Se - j * W * Y], this.width = _, this.height = k;
8292
+ let s, u, _, x;
8293
+ C === 0 ? (s = Math.abs(Y - G[1]) * W + ee, u = Math.abs(Se - G[0]) * W + de, _ = Math.abs(G[3] - G[1]) * W, x = Math.abs(G[2] - G[0]) * W) : (s = Math.abs(Se - G[0]) * W + ee, u = Math.abs(Y - G[1]) * W + de, _ = Math.abs(G[2] - G[0]) * W, x = Math.abs(G[3] - G[1]) * W), this.transform = [C * W, S * W, N * W, j * W, s - C * W * Se - N * W * Y, u - S * W * Se - j * W * Y], this.width = _, this.height = x;
8294
8294
  }
8295
8295
  clone() {
8296
8296
  let {
@@ -8453,7 +8453,7 @@ var Yr = xr(function(je, it) {
8453
8453
  rotation: W
8454
8454
  });
8455
8455
  }
8456
- function x(Z) {
8456
+ function k(Z) {
8457
8457
  if (Z.startsWith("#")) {
8458
8458
  const z = parseInt(Z.slice(1), 16);
8459
8459
  return [(z & 16711680) >> 16, (z & 65280) >> 8, z & 255];
@@ -8466,7 +8466,7 @@ var Yr = xr(function(je, it) {
8466
8466
  for (const G of Z.keys()) {
8467
8467
  z.style.color = G;
8468
8468
  const W = window.getComputedStyle(z).color;
8469
- Z.set(G, x(W));
8469
+ Z.set(G, k(W));
8470
8470
  }
8471
8471
  z.remove();
8472
8472
  }
@@ -8794,13 +8794,13 @@ var Yr = xr(function(je, it) {
8794
8794
  l < b.length && (g = g - h + D(b + "XXX", l) | 0), c = r(c, a, 4, (0, o.string32)(g));
8795
8795
  const E = `url(data:font/opentype;base64,${btoa(c)});`, B = `@font-face {font-family:"${b}";src:${E}}`;
8796
8796
  this.insertRule(B);
8797
- const x = [];
8797
+ const k = [];
8798
8798
  for (const q of m)
8799
- x.push(q.loadedName);
8800
- x.push(b);
8799
+ k.push(q.loadedName);
8800
+ k.push(b);
8801
8801
  const ne = this._document.createElement("div");
8802
8802
  ne.style.visibility = "hidden", ne.style.width = ne.style.height = "10px", ne.style.position = "absolute", ne.style.top = ne.style.left = "0px";
8803
- for (const q of x) {
8803
+ for (const q of k) {
8804
8804
  const re = this._document.createElement("span");
8805
8805
  re.textContent = "Hi", re.style.fontFamily = q, ne.append(re);
8806
8806
  }
@@ -8903,10 +8903,10 @@ var Yr = xr(function(je, it) {
8903
8903
  C.translate(N, j), this.__originalTranslate(N, j);
8904
8904
  }, Y.scale = function(N, j) {
8905
8905
  C.scale(N, j), this.__originalScale(N, j);
8906
- }, Y.transform = function(N, j, s, u, _, k) {
8907
- C.transform(N, j, s, u, _, k), this.__originalTransform(N, j, s, u, _, k);
8908
- }, Y.setTransform = function(N, j, s, u, _, k) {
8909
- C.setTransform(N, j, s, u, _, k), this.__originalSetTransform(N, j, s, u, _, k);
8906
+ }, Y.transform = function(N, j, s, u, _, x) {
8907
+ C.transform(N, j, s, u, _, x), this.__originalTransform(N, j, s, u, _, x);
8908
+ }, Y.setTransform = function(N, j, s, u, _, x) {
8909
+ C.setTransform(N, j, s, u, _, x), this.__originalSetTransform(N, j, s, u, _, x);
8910
8910
  }, Y.resetTransform = function() {
8911
8911
  C.resetTransform(), this.__originalResetTransform();
8912
8912
  }, Y.rotate = function(N) {
@@ -8945,19 +8945,19 @@ var Yr = xr(function(je, it) {
8945
8945
  }
8946
8946
  }
8947
8947
  }
8948
- function c(Y, C, S, N, j, s, u, _, k, L) {
8948
+ function c(Y, C, S, N, j, s, u, _, x, L) {
8949
8949
  const [X, J, ie, se, he, le] = (0, o.getCurrentTransform)(Y);
8950
8950
  if (J === 0 && ie === 0) {
8951
- const we = u * X + he, Ee = Math.round(we), xe = _ * se + le, Ne = Math.round(xe), Oe = (u + k) * X + he, Ce = Math.abs(Math.round(Oe) - Ee) || 1, V = (_ + L) * se + le, Q = Math.abs(Math.round(V) - Ne) || 1;
8951
+ const we = u * X + he, Ee = Math.round(we), ke = _ * se + le, Ne = Math.round(ke), Oe = (u + x) * X + he, Ce = Math.abs(Math.round(Oe) - Ee) || 1, V = (_ + L) * se + le, Q = Math.abs(Math.round(V) - Ne) || 1;
8952
8952
  return Y.setTransform(Math.sign(X), 0, 0, Math.sign(se), Ee, Ne), Y.drawImage(C, S, N, j, s, 0, 0, Ce, Q), Y.setTransform(X, J, ie, se, he, le), [Ce, Q];
8953
8953
  }
8954
8954
  if (X === 0 && se === 0) {
8955
- const we = _ * ie + he, Ee = Math.round(we), xe = u * J + le, Ne = Math.round(xe), Oe = (_ + L) * ie + he, Ce = Math.abs(Math.round(Oe) - Ee) || 1, V = (u + k) * J + le, Q = Math.abs(Math.round(V) - Ne) || 1;
8955
+ const we = _ * ie + he, Ee = Math.round(we), ke = u * J + le, Ne = Math.round(ke), Oe = (_ + L) * ie + he, Ce = Math.abs(Math.round(Oe) - Ee) || 1, V = (u + x) * J + le, Q = Math.abs(Math.round(V) - Ne) || 1;
8956
8956
  return Y.setTransform(0, Math.sign(J), Math.sign(ie), 0, Ee, Ne), Y.drawImage(C, S, N, j, s, 0, 0, Q, Ce), Y.setTransform(X, J, ie, se, he, le), [Q, Ce];
8957
8957
  }
8958
- Y.drawImage(C, S, N, j, s, u, _, k, L);
8958
+ Y.drawImage(C, S, N, j, s, u, _, x, L);
8959
8959
  const fe = Math.hypot(X, J), ve = Math.hypot(ie, se);
8960
- return [fe * k, ve * L];
8960
+ return [fe * x, ve * L];
8961
8961
  }
8962
8962
  function t(Y) {
8963
8963
  const {
@@ -8967,7 +8967,7 @@ var Yr = xr(function(je, it) {
8967
8967
  if (C > w || S > w)
8968
8968
  return null;
8969
8969
  const N = 1e3, j = new Uint8Array([0, 2, 4, 0, 1, 0, 5, 4, 8, 10, 0, 8, 0, 2, 1, 0]), s = C + 1;
8970
- let u = new Uint8Array(s * (S + 1)), _, k, L;
8970
+ let u = new Uint8Array(s * (S + 1)), _, x, L;
8971
8971
  const X = C + 7 & -8;
8972
8972
  let J = new Uint8Array(X * S), ie = 0;
8973
8973
  for (const ve of Y.data) {
@@ -8976,19 +8976,19 @@ var Yr = xr(function(je, it) {
8976
8976
  J[ie++] = ve & we ? 0 : 255, we >>= 1;
8977
8977
  }
8978
8978
  let se = 0;
8979
- for (ie = 0, J[ie] !== 0 && (u[0] = 1, ++se), k = 1; k < C; k++)
8980
- J[ie] !== J[ie + 1] && (u[k] = J[ie] ? 2 : 1, ++se), ie++;
8981
- for (J[ie] !== 0 && (u[k] = 2, ++se), _ = 1; _ < S; _++) {
8979
+ for (ie = 0, J[ie] !== 0 && (u[0] = 1, ++se), x = 1; x < C; x++)
8980
+ J[ie] !== J[ie + 1] && (u[x] = J[ie] ? 2 : 1, ++se), ie++;
8981
+ for (J[ie] !== 0 && (u[x] = 2, ++se), _ = 1; _ < S; _++) {
8982
8982
  ie = _ * X, L = _ * s, J[ie - X] !== J[ie] && (u[L] = J[ie] ? 1 : 8, ++se);
8983
8983
  let ve = (J[ie] ? 4 : 0) + (J[ie - X] ? 8 : 0);
8984
- for (k = 1; k < C; k++)
8985
- ve = (ve >> 2) + (J[ie + 1] ? 4 : 0) + (J[ie - X + 1] ? 8 : 0), j[ve] && (u[L + k] = j[ve], ++se), ie++;
8986
- if (J[ie - X] !== J[ie] && (u[L + k] = J[ie] ? 2 : 4, ++se), se > N)
8984
+ for (x = 1; x < C; x++)
8985
+ ve = (ve >> 2) + (J[ie + 1] ? 4 : 0) + (J[ie - X + 1] ? 8 : 0), j[ve] && (u[L + x] = j[ve], ++se), ie++;
8986
+ if (J[ie - X] !== J[ie] && (u[L + x] = J[ie] ? 2 : 4, ++se), se > N)
8987
8987
  return null;
8988
8988
  }
8989
- for (ie = X * (S - 1), L = _ * s, J[ie] !== 0 && (u[L] = 8, ++se), k = 1; k < C; k++)
8990
- J[ie] !== J[ie + 1] && (u[L + k] = J[ie] ? 4 : 8, ++se), ie++;
8991
- if (J[ie] !== 0 && (u[L + k] = 4, ++se), se > N)
8989
+ for (ie = X * (S - 1), L = _ * s, J[ie] !== 0 && (u[L] = 8, ++se), x = 1; x < C; x++)
8990
+ J[ie] !== J[ie + 1] && (u[L + x] = J[ie] ? 4 : 8, ++se), ie++;
8991
+ if (J[ie] !== 0 && (u[L + x] = 4, ++se), se > N)
8992
8992
  return null;
8993
8993
  const he = new Int32Array([0, s, -1, 0, -s, 0, 0, 0, 1]), le = new Path2D();
8994
8994
  for (_ = 0; se && _ <= S; _++) {
@@ -9000,14 +9000,14 @@ var Yr = xr(function(je, it) {
9000
9000
  continue;
9001
9001
  le.moveTo(ve % s, _);
9002
9002
  const Ee = ve;
9003
- let xe = u[ve];
9003
+ let ke = u[ve];
9004
9004
  do {
9005
- const Ne = he[xe];
9005
+ const Ne = he[ke];
9006
9006
  do
9007
9007
  ve += Ne;
9008
9008
  while (!u[ve]);
9009
9009
  const Oe = u[ve];
9010
- Oe !== 5 && Oe !== 10 ? (xe = Oe, u[ve] = 0) : (xe = Oe & 51 * xe >> 4, u[ve] &= xe >> 2 | xe << 2), le.lineTo(ve % s, ve / s | 0), u[ve] || --se;
9010
+ Oe !== 5 && Oe !== 10 ? (ke = Oe, u[ve] = 0) : (ke = Oe & 51 * ke >> 4, u[ve] &= ke >> 2 | ke << 2), le.lineTo(ve % s, ve / s | 0), u[ve] || --se;
9011
9011
  } while (Ee !== ve);
9012
9012
  --_;
9013
9013
  }
@@ -9036,8 +9036,8 @@ var Yr = xr(function(je, it) {
9036
9036
  updateScalingPathMinMax(C, S) {
9037
9037
  f.Util.scaleMinMax(C, S), this.minX = Math.min(this.minX, S[0]), this.maxX = Math.max(this.maxX, S[1]), this.minY = Math.min(this.minY, S[2]), this.maxY = Math.max(this.maxY, S[3]);
9038
9038
  }
9039
- updateCurvePathMinMax(C, S, N, j, s, u, _, k, L, X) {
9040
- const J = f.Util.bezierBoundingBox(S, N, j, s, u, _, k, L);
9039
+ updateCurvePathMinMax(C, S, N, j, s, u, _, x, L, X) {
9040
+ const J = f.Util.bezierBoundingBox(S, N, j, s, u, _, x, L);
9041
9041
  if (X) {
9042
9042
  X[0] = Math.min(X[0], J[0], J[2]), X[1] = Math.max(X[1], J[0], J[2]), X[2] = Math.min(X[2], J[1], J[3]), X[3] = Math.max(X[3], J[1], J[3]);
9043
9043
  return;
@@ -9075,23 +9075,23 @@ var Yr = xr(function(je, it) {
9075
9075
  Y.putImageData(C, 0, 0);
9076
9076
  return;
9077
9077
  }
9078
- const N = C.height, j = C.width, s = N % F, u = (N - s) / F, _ = s === 0 ? u : u + 1, k = Y.createImageData(j, F);
9078
+ const N = C.height, j = C.width, s = N % F, u = (N - s) / F, _ = s === 0 ? u : u + 1, x = Y.createImageData(j, F);
9079
9079
  let L = 0, X;
9080
- const J = C.data, ie = k.data;
9081
- let se, he, le, fe, ve, we, Ee, xe;
9080
+ const J = C.data, ie = x.data;
9081
+ let se, he, le, fe, ve, we, Ee, ke;
9082
9082
  if (S)
9083
9083
  switch (S.length) {
9084
9084
  case 1:
9085
- ve = S[0], we = S[0], Ee = S[0], xe = S[0];
9085
+ ve = S[0], we = S[0], Ee = S[0], ke = S[0];
9086
9086
  break;
9087
9087
  case 4:
9088
- ve = S[0], we = S[1], Ee = S[2], xe = S[3];
9088
+ ve = S[0], we = S[1], Ee = S[2], ke = S[3];
9089
9089
  break;
9090
9090
  }
9091
9091
  if (C.kind === f.ImageKind.GRAYSCALE_1BPP) {
9092
9092
  const Ne = J.byteLength, Oe = new Uint32Array(ie.buffer, 0, ie.byteLength >> 2), Ce = Oe.length, V = j + 7 >> 3;
9093
9093
  let Q = 4294967295, $ = f.FeatureTest.isLittleEndian ? 4278190080 : 255;
9094
- for (xe && xe[0] === 255 && xe[255] === 0 && ([Q, $] = [$, Q]), se = 0; se < _; se++) {
9094
+ for (ke && ke[0] === 255 && ke[255] === 0 && ([Q, $] = [$, Q]), se = 0; se < _; se++) {
9095
9095
  for (le = se < u ? F : s, X = 0, he = 0; he < le; he++) {
9096
9096
  const H = Ne - L;
9097
9097
  let oe = 0;
@@ -9104,7 +9104,7 @@ var Yr = xr(function(je, it) {
9104
9104
  }
9105
9105
  for (; X < Ce; )
9106
9106
  Oe[X++] = 0;
9107
- Y.putImageData(k, 0, se * F);
9107
+ Y.putImageData(x, 0, se * F);
9108
9108
  }
9109
9109
  } else if (C.kind === f.ImageKind.RGBA_32BPP) {
9110
9110
  const Ne = !!(ve || we || Ee);
@@ -9112,13 +9112,13 @@ var Yr = xr(function(je, it) {
9112
9112
  if (ie.set(J.subarray(L, L + fe)), L += fe, Ne)
9113
9113
  for (let Oe = 0; Oe < fe; Oe += 4)
9114
9114
  ve && (ie[Oe + 0] = ve[ie[Oe + 0]]), we && (ie[Oe + 1] = we[ie[Oe + 1]]), Ee && (ie[Oe + 2] = Ee[ie[Oe + 2]]);
9115
- Y.putImageData(k, 0, he), he += F;
9115
+ Y.putImageData(x, 0, he), he += F;
9116
9116
  }
9117
9117
  if (se < _) {
9118
9118
  if (fe = j * s * 4, ie.set(J.subarray(L, L + fe)), Ne)
9119
9119
  for (let Oe = 0; Oe < fe; Oe += 4)
9120
9120
  ve && (ie[Oe + 0] = ve[ie[Oe + 0]]), we && (ie[Oe + 1] = we[ie[Oe + 1]]), Ee && (ie[Oe + 2] = Ee[ie[Oe + 2]]);
9121
- Y.putImageData(k, 0, he);
9121
+ Y.putImageData(x, 0, he);
9122
9122
  }
9123
9123
  } else if (C.kind === f.ImageKind.RGB_24BPP) {
9124
9124
  const Ne = !!(ve || we || Ee);
@@ -9128,7 +9128,7 @@ var Yr = xr(function(je, it) {
9128
9128
  if (Ne)
9129
9129
  for (let Oe = 0; Oe < X; Oe += 4)
9130
9130
  ve && (ie[Oe + 0] = ve[ie[Oe + 0]]), we && (ie[Oe + 1] = we[ie[Oe + 1]]), Ee && (ie[Oe + 2] = Ee[ie[Oe + 2]]);
9131
- Y.putImageData(k, 0, se * F);
9131
+ Y.putImageData(x, 0, se * F);
9132
9132
  }
9133
9133
  } else
9134
9134
  throw new Error(`bad image kind: ${C.kind}`);
@@ -9139,15 +9139,15 @@ var Yr = xr(function(je, it) {
9139
9139
  return;
9140
9140
  }
9141
9141
  const S = C.height, N = C.width, j = S % F, s = (S - j) / F, u = j === 0 ? s : s + 1, _ = Y.createImageData(N, F);
9142
- let k = 0;
9142
+ let x = 0;
9143
9143
  const L = C.data, X = _.data;
9144
9144
  for (let J = 0; J < u; J++) {
9145
9145
  const ie = J < s ? F : j;
9146
9146
  ({
9147
- srcPos: k
9147
+ srcPos: x
9148
9148
  } = (0, O.applyMaskImageData)({
9149
9149
  src: L,
9150
- srcPos: k,
9150
+ srcPos: x,
9151
9151
  dest: X,
9152
9152
  width: N,
9153
9153
  height: ie
@@ -9165,7 +9165,7 @@ var Yr = xr(function(je, it) {
9165
9165
  function B(Y, C) {
9166
9166
  Y.strokeStyle = Y.fillStyle = C || "#000000", Y.fillRule = "nonzero", Y.globalAlpha = 1, Y.lineWidth = 1, Y.lineCap = "butt", Y.lineJoin = "miter", Y.miterLimit = 10, Y.globalCompositeOperation = "source-over", Y.font = "10px sans-serif", Y.setLineDash !== void 0 && (Y.setLineDash([]), Y.lineDashOffset = 0);
9167
9167
  }
9168
- function x(Y, C, S, N) {
9168
+ function k(Y, C, S, N) {
9169
9169
  const j = Y.length;
9170
9170
  for (let s = 3; s < j; s += 4) {
9171
9171
  const u = Y[s];
@@ -9191,14 +9191,14 @@ var Yr = xr(function(je, it) {
9191
9191
  C[j] = S ? C[j] * S[s >> 8] >> 8 : C[j] * s >> 16;
9192
9192
  }
9193
9193
  }
9194
- function re(Y, C, S, N, j, s, u, _, k, L, X) {
9194
+ function re(Y, C, S, N, j, s, u, _, x, L, X) {
9195
9195
  const J = !!s, ie = J ? s[0] : 0, se = J ? s[1] : 0, he = J ? s[2] : 0;
9196
9196
  let le;
9197
9197
  j === "Luminosity" ? le = q : le = ne;
9198
9198
  const ve = Math.min(N, Math.ceil(1048576 / S));
9199
9199
  for (let we = 0; we < N; we += ve) {
9200
- const Ee = Math.min(ve, N - we), xe = Y.getImageData(_ - L, we + (k - X), S, Ee), Ne = C.getImageData(_, we + k, S, Ee);
9201
- J && x(xe.data, ie, se, he), le(xe.data, Ne.data, u), C.putImageData(Ne, _, we + k);
9200
+ const Ee = Math.min(ve, N - we), ke = Y.getImageData(_ - L, we + (x - X), S, Ee), Ne = C.getImageData(_, we + x, S, Ee);
9201
+ J && k(ke.data, ie, se, he), le(ke.data, Ne.data, u), C.putImageData(Ne, _, we + x);
9202
9202
  }
9203
9203
  }
9204
9204
  function Z(Y, C, S, N) {
@@ -9214,8 +9214,8 @@ var Yr = xr(function(je, it) {
9214
9214
  const G = ["butt", "round", "square"], W = ["miter", "round", "bevel"], I = {}, ee = {};
9215
9215
  var de = /* @__PURE__ */ new WeakSet();
9216
9216
  class ye {
9217
- constructor(C, S, N, j, s, u, _, k) {
9218
- T(this, de), this.ctx = C, this.current = new a(this.ctx.canvas.width, this.ctx.canvas.height), this.stateStack = [], this.pendingClip = null, this.pendingEOFill = !1, this.res = null, this.xobjs = null, this.commonObjs = S, this.objs = N, this.canvasFactory = j, this.imageLayer = s, this.groupStack = [], this.processingType3 = null, this.baseTransform = null, this.baseTransformStack = [], this.groupLevel = 0, this.smaskStack = [], this.smaskCounter = 0, this.tempSMask = null, this.suspendedCtx = null, this.contentVisible = !0, this.markedContentStack = [], this.optionalContentConfig = u, this.cachedCanvases = new b(this.canvasFactory), this.cachedPatterns = /* @__PURE__ */ new Map(), this.annotationCanvasMap = _, this.viewportScale = 1, this.outputScaleX = 1, this.outputScaleY = 1, this.backgroundColor = (k == null ? void 0 : k.background) || null, this.foregroundColor = (k == null ? void 0 : k.foreground) || null, this._cachedScaleForStroking = null, this._cachedGetSinglePixelWidth = null, this._cachedBitmapsMap = /* @__PURE__ */ new Map();
9217
+ constructor(C, S, N, j, s, u, _, x) {
9218
+ T(this, de), this.ctx = C, this.current = new a(this.ctx.canvas.width, this.ctx.canvas.height), this.stateStack = [], this.pendingClip = null, this.pendingEOFill = !1, this.res = null, this.xobjs = null, this.commonObjs = S, this.objs = N, this.canvasFactory = j, this.imageLayer = s, this.groupStack = [], this.processingType3 = null, this.baseTransform = null, this.baseTransformStack = [], this.groupLevel = 0, this.smaskStack = [], this.smaskCounter = 0, this.tempSMask = null, this.suspendedCtx = null, this.contentVisible = !0, this.markedContentStack = [], this.optionalContentConfig = u, this.cachedCanvases = new b(this.canvasFactory), this.cachedPatterns = /* @__PURE__ */ new Map(), this.annotationCanvasMap = _, this.viewportScale = 1, this.outputScaleX = 1, this.outputScaleY = 1, this.backgroundColor = (x == null ? void 0 : x.background) || null, this.foregroundColor = (x == null ? void 0 : x.foreground) || null, this._cachedScaleForStroking = null, this._cachedGetSinglePixelWidth = null, this._cachedBitmapsMap = /* @__PURE__ */ new Map();
9219
9219
  }
9220
9220
  getObject(C) {
9221
9221
  let S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
@@ -9228,24 +9228,24 @@ var Yr = xr(function(je, it) {
9228
9228
  transparency: j = !1,
9229
9229
  background: s = null
9230
9230
  } = C;
9231
- const u = this.ctx.canvas.width, _ = this.ctx.canvas.height, k = s || "#ffffff";
9231
+ const u = this.ctx.canvas.width, _ = this.ctx.canvas.height, x = s || "#ffffff";
9232
9232
  if (this.ctx.save(), this.foregroundColor && this.backgroundColor) {
9233
9233
  this.ctx.fillStyle = this.foregroundColor;
9234
9234
  const L = this.foregroundColor = this.ctx.fillStyle;
9235
9235
  this.ctx.fillStyle = this.backgroundColor;
9236
9236
  const X = this.backgroundColor = this.ctx.fillStyle;
9237
- let J = !0, ie = k;
9238
- if (this.ctx.fillStyle = k, ie = this.ctx.fillStyle, J = typeof ie == "string" && /^#[0-9A-Fa-f]{6}$/.test(ie), L === "#000000" && X === "#ffffff" || L === X || !J)
9237
+ let J = !0, ie = x;
9238
+ if (this.ctx.fillStyle = x, ie = this.ctx.fillStyle, J = typeof ie == "string" && /^#[0-9A-Fa-f]{6}$/.test(ie), L === "#000000" && X === "#ffffff" || L === X || !J)
9239
9239
  this.foregroundColor = this.backgroundColor = null;
9240
9240
  else {
9241
9241
  const [se, he, le] = (0, o.getRGB)(ie), fe = (we) => (we /= 255, we <= 0.03928 ? we / 12.92 : ((we + 0.055) / 1.055) ** 2.4), ve = Math.round(0.2126 * fe(se) + 0.7152 * fe(he) + 0.0722 * fe(le));
9242
- this.selectColor = (we, Ee, xe) => {
9243
- const Ne = 0.2126 * fe(we) + 0.7152 * fe(Ee) + 0.0722 * fe(xe);
9242
+ this.selectColor = (we, Ee, ke) => {
9243
+ const Ne = 0.2126 * fe(we) + 0.7152 * fe(Ee) + 0.0722 * fe(ke);
9244
9244
  return Math.round(Ne) === ve ? X : L;
9245
9245
  };
9246
9246
  }
9247
9247
  }
9248
- if (this.ctx.fillStyle = this.backgroundColor || k, this.ctx.fillRect(0, 0, u, _), this.ctx.restore(), j) {
9248
+ if (this.ctx.fillStyle = this.backgroundColor || x, this.ctx.fillRect(0, 0, u, _), this.ctx.restore(), j) {
9249
9249
  const L = this.cachedCanvases.getCanvas("transparent", u, _);
9250
9250
  this.compositeCtx = this.ctx, this.transparentCanvas = L.canvas, this.ctx = L.context, this.ctx.save(), this.ctx.transform(...(0, o.getCurrentTransform)(this.compositeCtx));
9251
9251
  }
@@ -9254,10 +9254,10 @@ var Yr = xr(function(je, it) {
9254
9254
  executeOperatorList(C, S, N, j) {
9255
9255
  const s = C.argsArray, u = C.fnArray;
9256
9256
  let _ = S || 0;
9257
- const k = s.length;
9258
- if (k === _)
9257
+ const x = s.length;
9258
+ if (x === _)
9259
9259
  return _;
9260
- const L = k - _ > d && typeof N == "function", X = L ? Date.now() + A : 0;
9260
+ const L = x - _ > d && typeof N == "function", X = L ? Date.now() + A : 0;
9261
9261
  let J = 0;
9262
9262
  const ie = this.commonObjs, se = this.objs;
9263
9263
  let he;
@@ -9272,7 +9272,7 @@ var Yr = xr(function(je, it) {
9272
9272
  if (!fe.has(le))
9273
9273
  return fe.get(le, N), _;
9274
9274
  }
9275
- if (_++, _ === k)
9275
+ if (_++, _ === x)
9276
9276
  return _;
9277
9277
  if (L && ++J > d) {
9278
9278
  if (Date.now() > X)
@@ -9292,15 +9292,15 @@ var Yr = xr(function(je, it) {
9292
9292
  }
9293
9293
  _scaleImage(C, S) {
9294
9294
  const N = C.width, j = C.height;
9295
- let s = Math.max(Math.hypot(S[0], S[1]), 1), u = Math.max(Math.hypot(S[2], S[3]), 1), _ = N, k = j, L = "prescale1", X, J;
9296
- for (; s > 2 && _ > 1 || u > 2 && k > 1; ) {
9297
- let ie = _, se = k;
9298
- s > 2 && _ > 1 && (ie = Math.ceil(_ / 2), s /= _ / ie), u > 2 && k > 1 && (se = Math.ceil(k / 2), u /= k / se), X = this.cachedCanvases.getCanvas(L, ie, se), J = X.context, J.clearRect(0, 0, ie, se), J.drawImage(C, 0, 0, _, k, 0, 0, ie, se), C = X.canvas, _ = ie, k = se, L = L === "prescale1" ? "prescale2" : "prescale1";
9295
+ let s = Math.max(Math.hypot(S[0], S[1]), 1), u = Math.max(Math.hypot(S[2], S[3]), 1), _ = N, x = j, L = "prescale1", X, J;
9296
+ for (; s > 2 && _ > 1 || u > 2 && x > 1; ) {
9297
+ let ie = _, se = x;
9298
+ s > 2 && _ > 1 && (ie = Math.ceil(_ / 2), s /= _ / ie), u > 2 && x > 1 && (se = Math.ceil(x / 2), u /= x / se), X = this.cachedCanvases.getCanvas(L, ie, se), J = X.context, J.clearRect(0, 0, ie, se), J.drawImage(C, 0, 0, _, x, 0, 0, ie, se), C = X.canvas, _ = ie, x = se, L = L === "prescale1" ? "prescale2" : "prescale1";
9299
9299
  }
9300
9300
  return {
9301
9301
  img: C,
9302
9302
  paintWidth: _,
9303
- paintHeight: k
9303
+ paintHeight: x
9304
9304
  };
9305
9305
  }
9306
9306
  _createMaskCanvas(C) {
@@ -9308,11 +9308,11 @@ var Yr = xr(function(je, it) {
9308
9308
  width: N,
9309
9309
  height: j
9310
9310
  } = C, s = this.current.fillColor, u = this.current.patternFill, _ = (0, o.getCurrentTransform)(S);
9311
- let k, L, X, J;
9311
+ let x, L, X, J;
9312
9312
  if ((C.bitmap || C.data) && C.count > 1) {
9313
9313
  const Ce = C.bitmap || C.data.buffer, V = _.slice(0, 4);
9314
- L = JSON.stringify(u ? V : [V, s]), k = this._cachedBitmapsMap.get(Ce), k || (k = /* @__PURE__ */ new Map(), this._cachedBitmapsMap.set(Ce, k));
9315
- const Q = k.get(L);
9314
+ L = JSON.stringify(u ? V : [V, s]), x = this._cachedBitmapsMap.get(Ce), x || (x = /* @__PURE__ */ new Map(), this._cachedBitmapsMap.set(Ce, x));
9315
+ const Q = x.get(L);
9316
9316
  if (Q && !u) {
9317
9317
  const $ = Math.round(Math.min(_[0], _[2]) + _[4]), H = Math.round(Math.min(_[1], _[3]) + _[5]);
9318
9318
  return {
@@ -9326,12 +9326,12 @@ var Yr = xr(function(je, it) {
9326
9326
  X || (J = this.cachedCanvases.getCanvas("maskCanvas", N, j), g(J.context, C));
9327
9327
  let ie = f.Util.transform(_, [1 / N, 0, 0, -1 / j, 0, 0]);
9328
9328
  ie = f.Util.transform(ie, [1, 0, 0, 1, 0, -j]);
9329
- const se = f.Util.applyTransform([0, 0], ie), he = f.Util.applyTransform([N, j], ie), le = f.Util.normalizeRect([se[0], se[1], he[0], he[1]]), fe = Math.round(le[2] - le[0]) || 1, ve = Math.round(le[3] - le[1]) || 1, we = this.cachedCanvases.getCanvas("fillCanvas", fe, ve), Ee = we.context, xe = Math.min(se[0], he[0]), Ne = Math.min(se[1], he[1]);
9330
- Ee.translate(-xe, -Ne), Ee.transform(...ie), X || (X = this._scaleImage(J.canvas, (0, o.getCurrentTransformInverse)(Ee)), X = X.img, k && u && k.set(L, X)), Ee.imageSmoothingEnabled = z((0, o.getCurrentTransform)(Ee), C.interpolate), c(Ee, X, 0, 0, X.width, X.height, 0, 0, N, j), Ee.globalCompositeOperation = "source-in";
9331
- const Oe = f.Util.transform((0, o.getCurrentTransformInverse)(Ee), [1, 0, 0, 1, -xe, -Ne]);
9332
- return Ee.fillStyle = u ? s.getPattern(S, this, Oe, P.PathType.FILL) : s, Ee.fillRect(0, 0, N, j), k && !u && (this.cachedCanvases.delete("fillCanvas"), k.set(L, we.canvas)), {
9329
+ const se = f.Util.applyTransform([0, 0], ie), he = f.Util.applyTransform([N, j], ie), le = f.Util.normalizeRect([se[0], se[1], he[0], he[1]]), fe = Math.round(le[2] - le[0]) || 1, ve = Math.round(le[3] - le[1]) || 1, we = this.cachedCanvases.getCanvas("fillCanvas", fe, ve), Ee = we.context, ke = Math.min(se[0], he[0]), Ne = Math.min(se[1], he[1]);
9330
+ Ee.translate(-ke, -Ne), Ee.transform(...ie), X || (X = this._scaleImage(J.canvas, (0, o.getCurrentTransformInverse)(Ee)), X = X.img, x && u && x.set(L, X)), Ee.imageSmoothingEnabled = z((0, o.getCurrentTransform)(Ee), C.interpolate), c(Ee, X, 0, 0, X.width, X.height, 0, 0, N, j), Ee.globalCompositeOperation = "source-in";
9331
+ const Oe = f.Util.transform((0, o.getCurrentTransformInverse)(Ee), [1, 0, 0, 1, -ke, -Ne]);
9332
+ return Ee.fillStyle = u ? s.getPattern(S, this, Oe, P.PathType.FILL) : s, Ee.fillRect(0, 0, N, j), x && !u && (this.cachedCanvases.delete("fillCanvas"), x.set(L, we.canvas)), {
9333
9333
  canvas: we.canvas,
9334
- offsetX: Math.round(xe),
9334
+ offsetX: Math.round(ke),
9335
9335
  offsetY: Math.round(Ne)
9336
9336
  };
9337
9337
  }
@@ -9440,7 +9440,7 @@ var Yr = xr(function(je, it) {
9440
9440
  }
9441
9441
  constructPath(C, S, N) {
9442
9442
  const j = this.ctx, s = this.current;
9443
- let u = s.x, _ = s.y, k, L;
9443
+ let u = s.x, _ = s.y, x, L;
9444
9444
  const X = (0, o.getCurrentTransform)(j), J = X[0] === 0 && X[3] === 0 || X[1] === 0 && X[2] === 0, ie = J ? N.slice(0) : null;
9445
9445
  for (let se = 0, he = 0, le = C.length; se < le; se++)
9446
9446
  switch (C[se] | 0) {
@@ -9456,13 +9456,13 @@ var Yr = xr(function(je, it) {
9456
9456
  u = S[he++], _ = S[he++], j.lineTo(u, _), J || s.updatePathMinMax(X, u, _);
9457
9457
  break;
9458
9458
  case f.OPS.curveTo:
9459
- k = u, L = _, u = S[he + 4], _ = S[he + 5], j.bezierCurveTo(S[he], S[he + 1], S[he + 2], S[he + 3], u, _), s.updateCurvePathMinMax(X, k, L, S[he], S[he + 1], S[he + 2], S[he + 3], u, _, ie), he += 6;
9459
+ x = u, L = _, u = S[he + 4], _ = S[he + 5], j.bezierCurveTo(S[he], S[he + 1], S[he + 2], S[he + 3], u, _), s.updateCurvePathMinMax(X, x, L, S[he], S[he + 1], S[he + 2], S[he + 3], u, _, ie), he += 6;
9460
9460
  break;
9461
9461
  case f.OPS.curveTo2:
9462
- k = u, L = _, j.bezierCurveTo(u, _, S[he], S[he + 1], S[he + 2], S[he + 3]), s.updateCurvePathMinMax(X, k, L, u, _, S[he], S[he + 1], S[he + 2], S[he + 3], ie), u = S[he + 2], _ = S[he + 3], he += 4;
9462
+ x = u, L = _, j.bezierCurveTo(u, _, S[he], S[he + 1], S[he + 2], S[he + 3]), s.updateCurvePathMinMax(X, x, L, u, _, S[he], S[he + 1], S[he + 2], S[he + 3], ie), u = S[he + 2], _ = S[he + 3], he += 4;
9463
9463
  break;
9464
9464
  case f.OPS.curveTo3:
9465
- k = u, L = _, u = S[he + 2], _ = S[he + 3], j.bezierCurveTo(S[he], S[he + 1], u, _, u, _), s.updateCurvePathMinMax(X, k, L, S[he], S[he + 1], u, _, u, _, ie), he += 4;
9465
+ x = u, L = _, u = S[he + 2], _ = S[he + 3], j.bezierCurveTo(S[he], S[he + 1], u, _, u, _), s.updateCurvePathMinMax(X, x, L, S[he], S[he + 1], u, _, u, _, ie), he += 4;
9466
9466
  break;
9467
9467
  case f.OPS.closePath:
9468
9468
  j.closePath();
@@ -9548,9 +9548,9 @@ var Yr = xr(function(je, it) {
9548
9548
  const s = N.loadedName || "sans-serif";
9549
9549
  let u = "normal";
9550
9550
  N.black ? u = "900" : N.bold && (u = "bold");
9551
- const _ = N.italic ? "italic" : "normal", k = `"${s}", ${N.fallbackName}`;
9551
+ const _ = N.italic ? "italic" : "normal", x = `"${s}", ${N.fallbackName}`;
9552
9552
  let L = S;
9553
- S < D ? L = D : S > r && (L = r), this.current.fontSizeScale = S / L, this.ctx.font = `${_} ${u} ${L}px ${k}`;
9553
+ S < D ? L = D : S > r && (L = r), this.current.fontSizeScale = S / L, this.ctx.font = `${_} ${u} ${L}px ${x}`;
9554
9554
  }
9555
9555
  setTextRenderingMode(C) {
9556
9556
  this.current.textRenderingMode = C;
@@ -9571,7 +9571,7 @@ var Yr = xr(function(je, it) {
9571
9571
  this.moveText(0, this.current.leading);
9572
9572
  }
9573
9573
  paintChar(C, S, N, j) {
9574
- const s = this.ctx, u = this.current, _ = u.font, k = u.textRenderingMode, L = u.fontSize / u.fontSizeScale, X = k & f.TextRenderingMode.FILL_STROKE_MASK, J = !!(k & f.TextRenderingMode.ADD_TO_PATH_FLAG), ie = u.patternFill && !_.missingFile;
9574
+ const s = this.ctx, u = this.current, _ = u.font, x = u.textRenderingMode, L = u.fontSize / u.fontSizeScale, X = x & f.TextRenderingMode.FILL_STROKE_MASK, J = !!(x & f.TextRenderingMode.ADD_TO_PATH_FLAG), ie = u.patternFill && !_.missingFile;
9575
9575
  let se;
9576
9576
  (_.disableFontFace || J || ie) && (se = _.getPathGenerator(this.commonObjs, C)), _.disableFontFace || ie ? (s.save(), s.translate(S, N), s.beginPath(), se(s, L), j && s.setTransform(...j), (X === f.TextRenderingMode.FILL || X === f.TextRenderingMode.FILL_STROKE) && s.fill(), (X === f.TextRenderingMode.STROKE || X === f.TextRenderingMode.FILL_STROKE) && s.stroke(), s.restore()) : ((X === f.TextRenderingMode.FILL || X === f.TextRenderingMode.FILL_STROKE) && s.fillText(C, S, N), (X === f.TextRenderingMode.STROKE || X === f.TextRenderingMode.FILL_STROKE) && s.strokeText(C, S, N)), J && (this.pendingTextPaths || (this.pendingTextPaths = [])).push({
9577
9577
  transform: (0, o.getCurrentTransform)(s),
@@ -9602,7 +9602,7 @@ var Yr = xr(function(je, it) {
9602
9602
  const j = S.fontSize;
9603
9603
  if (j === 0)
9604
9604
  return;
9605
- const s = this.ctx, u = S.fontSizeScale, _ = S.charSpacing, k = S.wordSpacing, L = S.fontDirection, X = S.textHScale * L, J = C.length, ie = N.vertical, se = ie ? 1 : -1, he = N.defaultVMetrics, le = j * S.fontMatrix[0], fe = S.textRenderingMode === f.TextRenderingMode.FILL && !N.disableFontFace && !S.patternFill;
9605
+ const s = this.ctx, u = S.fontSizeScale, _ = S.charSpacing, x = S.wordSpacing, L = S.fontDirection, X = S.textHScale * L, J = C.length, ie = N.vertical, se = ie ? 1 : -1, he = N.defaultVMetrics, le = j * S.fontMatrix[0], fe = S.textRenderingMode === f.TextRenderingMode.FILL && !N.disableFontFace && !S.patternFill;
9606
9606
  s.save(), s.transform(...S.textMatrix), s.translate(S.x, S.y + S.textRise), L > 0 ? s.scale(X, -1) : s.scale(X, 1);
9607
9607
  let ve;
9608
9608
  if (S.patternFill) {
@@ -9618,21 +9618,21 @@ var Yr = xr(function(je, it) {
9618
9618
  } else
9619
9619
  we /= Ee;
9620
9620
  u !== 1 && (s.scale(u, u), we /= u), s.lineWidth = we;
9621
- let xe = 0, Ne;
9621
+ let ke = 0, Ne;
9622
9622
  for (Ne = 0; Ne < J; ++Ne) {
9623
9623
  const Oe = C[Ne];
9624
9624
  if (typeof Oe == "number") {
9625
- xe += se * Oe * j / 1e3;
9625
+ ke += se * Oe * j / 1e3;
9626
9626
  continue;
9627
9627
  }
9628
9628
  let Ce = !1;
9629
- const V = (Oe.isSpace ? k : 0) + _, Q = Oe.fontChar, $ = Oe.accent;
9629
+ const V = (Oe.isSpace ? x : 0) + _, Q = Oe.fontChar, $ = Oe.accent;
9630
9630
  let H, oe, _e = Oe.width;
9631
9631
  if (ie) {
9632
9632
  const ce = Oe.vmetric || he, Te = -(Oe.vmetric ? ce[1] : _e * 0.5) * le, Ie = ce[2] * le;
9633
- _e = ce ? -ce[0] : _e, H = Te / u, oe = (xe + Ie) / u;
9633
+ _e = ce ? -ce[0] : _e, H = Te / u, oe = (ke + Ie) / u;
9634
9634
  } else
9635
- H = xe / u, oe = 0;
9635
+ H = ke / u, oe = 0;
9636
9636
  if (N.remeasure && _e > 0) {
9637
9637
  const ce = s.measureText(Q).width * 1e3 / j * u;
9638
9638
  if (_e < ce && this.isFontSubpixelAAEnabled) {
@@ -9650,12 +9650,12 @@ var Yr = xr(function(je, it) {
9650
9650
  }
9651
9651
  }
9652
9652
  let Re;
9653
- ie ? Re = _e * le - V * L : Re = _e * le + V * L, xe += Re, Ce && s.restore();
9653
+ ie ? Re = _e * le - V * L : Re = _e * le + V * L, ke += Re, Ce && s.restore();
9654
9654
  }
9655
- ie ? S.y -= xe : S.x += xe * X, s.restore(), this.compose();
9655
+ ie ? S.y -= ke : S.x += ke * X, s.restore(), this.compose();
9656
9656
  }
9657
9657
  showType3Text(C) {
9658
- const S = this.ctx, N = this.current, j = N.font, s = N.fontSize, u = N.fontDirection, _ = j.vertical ? 1 : -1, k = N.charSpacing, L = N.wordSpacing, X = N.textHScale * u, J = N.fontMatrix || f.FONT_IDENTITY_MATRIX, ie = C.length, se = N.textRenderingMode === f.TextRenderingMode.INVISIBLE;
9658
+ const S = this.ctx, N = this.current, j = N.font, s = N.fontSize, u = N.fontDirection, _ = j.vertical ? 1 : -1, x = N.charSpacing, L = N.wordSpacing, X = N.textHScale * u, J = N.fontMatrix || f.FONT_IDENTITY_MATRIX, ie = C.length, se = N.textRenderingMode === f.TextRenderingMode.INVISIBLE;
9659
9659
  let he, le, fe, ve;
9660
9660
  if (!(se || s === 0)) {
9661
9661
  for (this._cachedScaleForStroking = null, this._cachedGetSinglePixelWidth = null, S.save(), S.transform(...N.textMatrix), S.translate(N.x, N.y), S.scale(X, u), he = 0; he < ie; ++he) {
@@ -9663,7 +9663,7 @@ var Yr = xr(function(je, it) {
9663
9663
  ve = _ * le * s / 1e3, this.ctx.translate(ve, 0), N.x += ve * X;
9664
9664
  continue;
9665
9665
  }
9666
- const we = (le.isSpace ? L : 0) + k, Ee = j.charProcOperatorList[le.operatorListId];
9666
+ const we = (le.isSpace ? L : 0) + x, Ee = j.charProcOperatorList[le.operatorListId];
9667
9667
  if (!Ee) {
9668
9668
  (0, f.warn)(`Type3 character "${le.operatorListId}" is not available.`);
9669
9669
  continue;
@@ -9718,7 +9718,7 @@ var Yr = xr(function(je, it) {
9718
9718
  S.fillStyle = N.getPattern(S, this, (0, o.getCurrentTransformInverse)(S), P.PathType.SHADING);
9719
9719
  const j = (0, o.getCurrentTransformInverse)(S);
9720
9720
  if (j) {
9721
- const s = S.canvas, u = s.width, _ = s.height, k = f.Util.applyTransform([0, 0], j), L = f.Util.applyTransform([0, _], j), X = f.Util.applyTransform([u, 0], j), J = f.Util.applyTransform([u, _], j), ie = Math.min(k[0], L[0], X[0], J[0]), se = Math.min(k[1], L[1], X[1], J[1]), he = Math.max(k[0], L[0], X[0], J[0]), le = Math.max(k[1], L[1], X[1], J[1]);
9721
+ const s = S.canvas, u = s.width, _ = s.height, x = f.Util.applyTransform([0, 0], j), L = f.Util.applyTransform([0, _], j), X = f.Util.applyTransform([u, 0], j), J = f.Util.applyTransform([u, _], j), ie = Math.min(x[0], L[0], X[0], J[0]), se = Math.min(x[1], L[1], X[1], J[1]), he = Math.max(x[0], L[0], X[0], J[0]), le = Math.max(x[1], L[1], X[1], J[1]);
9722
9722
  this.ctx.fillRect(ie, se, he - ie, le - se);
9723
9723
  } else
9724
9724
  this.ctx.fillRect(-1e10, -1e10, 2e10, 2e10);
@@ -9752,11 +9752,11 @@ var Yr = xr(function(je, it) {
9752
9752
  const s = [0, 0, S.canvas.width, S.canvas.height];
9753
9753
  j = f.Util.intersect(j, s) || [0, 0, 0, 0];
9754
9754
  const u = Math.floor(j[0]), _ = Math.floor(j[1]);
9755
- let k = Math.max(Math.ceil(j[2]) - u, 1), L = Math.max(Math.ceil(j[3]) - _, 1), X = 1, J = 1;
9756
- k > l && (X = k / l, k = l), L > l && (J = L / l, L = l), this.current.startNewPathAndClipBox([0, 0, k, L]);
9755
+ let x = Math.max(Math.ceil(j[2]) - u, 1), L = Math.max(Math.ceil(j[3]) - _, 1), X = 1, J = 1;
9756
+ x > l && (X = x / l, x = l), L > l && (J = L / l, L = l), this.current.startNewPathAndClipBox([0, 0, x, L]);
9757
9757
  let ie = "groupAt" + this.groupLevel;
9758
9758
  C.smask && (ie += "_smask_" + this.smaskCounter++ % 2);
9759
- const se = this.cachedCanvases.getCanvas(ie, k, L), he = se.context;
9759
+ const se = this.cachedCanvases.getCanvas(ie, x, L), he = se.context;
9760
9760
  he.scale(1 / X, 1 / J), he.translate(-u, -_), he.transform(...N), C.smask ? this.smaskStack.push({
9761
9761
  canvas: se.canvas,
9762
9762
  context: he,
@@ -9790,7 +9790,7 @@ var Yr = xr(function(je, it) {
9790
9790
  const u = S[2] - S[0], _ = S[3] - S[1];
9791
9791
  if (s && this.annotationCanvasMap) {
9792
9792
  N = N.slice(), N[4] -= S[0], N[5] -= S[1], S = S.slice(), S[0] = S[1] = 0, S[2] = u, S[3] = _;
9793
- const [k, L] = f.Util.singularValueDecompose2dScale((0, o.getCurrentTransform)(this.ctx)), {
9793
+ const [x, L] = f.Util.singularValueDecompose2dScale((0, o.getCurrentTransform)(this.ctx)), {
9794
9794
  viewportScale: X
9795
9795
  } = this, J = Math.ceil(u * this.outputScaleX * X), ie = Math.ceil(_ * this.outputScaleY * X);
9796
9796
  this.annotationCanvas = this.canvasFactory.create(J, ie);
@@ -9798,7 +9798,7 @@ var Yr = xr(function(je, it) {
9798
9798
  canvas: se,
9799
9799
  context: he
9800
9800
  } = this.annotationCanvas;
9801
- this.annotationCanvasMap.set(C, se), this.annotationCanvas.savedCtx = this.ctx, this.ctx = he, this.ctx.setTransform(k, 0, 0, -L, 0, _ * L), B(this.ctx, this.foregroundColor);
9801
+ this.annotationCanvasMap.set(C, se), this.annotationCanvas.savedCtx = this.ctx, this.ctx = he, this.ctx.setTransform(x, 0, 0, -L, 0, _ * L), B(this.ctx, this.foregroundColor);
9802
9802
  } else
9803
9803
  B(this.ctx, this.foregroundColor), this.ctx.rect(S[0], S[1], u, _), this.ctx.clip(), this.endPath();
9804
9804
  }
@@ -9827,12 +9827,12 @@ var Yr = xr(function(je, it) {
9827
9827
  C = this.getObject(C.data, C);
9828
9828
  const _ = this.ctx;
9829
9829
  _.save();
9830
- const k = (0, o.getCurrentTransform)(_);
9830
+ const x = (0, o.getCurrentTransform)(_);
9831
9831
  _.transform(S, N, j, s, 0, 0);
9832
9832
  const L = this._createMaskCanvas(C);
9833
9833
  _.setTransform(1, 0, 0, 1, 0, 0);
9834
9834
  for (let X = 0, J = u.length; X < J; X += 2) {
9835
- const ie = f.Util.transform(k, [S, N, j, s, u[X], u[X + 1]]), [se, he] = f.Util.applyTransform([0, 0], ie);
9835
+ const ie = f.Util.transform(x, [S, N, j, s, u[X], u[X + 1]]), [se, he] = f.Util.applyTransform([0, 0], ie);
9836
9836
  _.drawImage(L.canvas, se, he);
9837
9837
  }
9838
9838
  _.restore(), this.compose();
@@ -9845,12 +9845,12 @@ var Yr = xr(function(je, it) {
9845
9845
  const {
9846
9846
  data: u,
9847
9847
  width: _,
9848
- height: k,
9848
+ height: x,
9849
9849
  transform: L
9850
- } = s, X = this.cachedCanvases.getCanvas("maskCanvas", _, k), J = X.context;
9850
+ } = s, X = this.cachedCanvases.getCanvas("maskCanvas", _, x), J = X.context;
9851
9851
  J.save();
9852
9852
  const ie = this.getObject(u, s);
9853
- g(J, ie), J.globalCompositeOperation = "source-in", J.fillStyle = j ? N.getPattern(J, this, (0, o.getCurrentTransformInverse)(S), P.PathType.FILL) : N, J.fillRect(0, 0, _, k), J.restore(), S.save(), S.transform(...L), S.scale(1, -1), c(S, X.canvas, 0, 0, _, k, 0, -1, 1, 1), S.restore();
9853
+ g(J, ie), J.globalCompositeOperation = "source-in", J.fillStyle = j ? N.getPattern(J, this, (0, o.getCurrentTransformInverse)(S), P.PathType.FILL) : N, J.fillRect(0, 0, _, x), J.restore(), S.save(), S.transform(...L), S.scale(1, -1), c(S, X.canvas, 0, 0, _, x, 0, -1, 1, 1), S.restore();
9854
9854
  }
9855
9855
  this.compose();
9856
9856
  }
@@ -9872,16 +9872,16 @@ var Yr = xr(function(je, it) {
9872
9872
  (0, f.warn)("Dependent image isn't ready yet");
9873
9873
  return;
9874
9874
  }
9875
- const u = s.width, _ = s.height, k = [];
9875
+ const u = s.width, _ = s.height, x = [];
9876
9876
  for (let L = 0, X = j.length; L < X; L += 2)
9877
- k.push({
9877
+ x.push({
9878
9878
  transform: [S, 0, 0, N, j[L], j[L + 1]],
9879
9879
  x: 0,
9880
9880
  y: 0,
9881
9881
  w: u,
9882
9882
  h: _
9883
9883
  });
9884
- this.paintInlineImageXObjectGroup(s, k);
9884
+ this.paintInlineImageXObjectGroup(s, x);
9885
9885
  }
9886
9886
  paintInlineImageXObject(C) {
9887
9887
  if (!this.contentVisible)
@@ -9897,7 +9897,7 @@ var Yr = xr(function(je, it) {
9897
9897
  }
9898
9898
  const u = this._scaleImage(s, (0, o.getCurrentTransformInverse)(j));
9899
9899
  j.imageSmoothingEnabled = z((0, o.getCurrentTransform)(j), C.interpolate);
9900
- const [_, k] = c(j, u.img, 0, 0, u.paintWidth, u.paintHeight, 0, -N, S, N);
9900
+ const [_, x] = c(j, u.img, 0, 0, u.paintWidth, u.paintHeight, 0, -N, S, N);
9901
9901
  if (this.imageLayer) {
9902
9902
  const [L, X] = f.Util.applyTransform([0, -N], (0, o.getCurrentTransform)(this.ctx));
9903
9903
  this.imageLayer.appendImage({
@@ -9905,7 +9905,7 @@ var Yr = xr(function(je, it) {
9905
9905
  left: L,
9906
9906
  top: X,
9907
9907
  width: _,
9908
- height: k
9908
+ height: x
9909
9909
  });
9910
9910
  }
9911
9911
  this.compose(), this.restore();
@@ -9915,9 +9915,9 @@ var Yr = xr(function(je, it) {
9915
9915
  return;
9916
9916
  const N = this.ctx, j = C.width, s = C.height, u = this.cachedCanvases.getCanvas("inlineImage", j, s), _ = u.context;
9917
9917
  h(_, C, this.current.transferMaps);
9918
- for (const k of S) {
9919
- if (N.save(), N.transform(...k.transform), N.scale(1, -1), c(N, u.canvas, k.x, k.y, k.w, k.h, 0, -1, 1, 1), this.imageLayer) {
9920
- const [L, X] = f.Util.applyTransform([k.x, k.y], (0, o.getCurrentTransform)(this.ctx));
9918
+ for (const x of S) {
9919
+ if (N.save(), N.transform(...x.transform), N.scale(1, -1), c(N, u.canvas, x.x, x.y, x.w, x.h, 0, -1, 1, 1), this.imageLayer) {
9920
+ const [L, X] = f.Util.applyTransform([x.x, x.y], (0, o.getCurrentTransform)(this.ctx));
9921
9921
  this.imageLayer.appendImage({
9922
9922
  imgData: C,
9923
9923
  left: L,
@@ -9985,16 +9985,16 @@ var Yr = xr(function(je, it) {
9985
9985
  if (C === 0)
9986
9986
  N = 1 / s, j = 1 / u;
9987
9987
  else {
9988
- const _ = s * C, k = u * C;
9989
- N = _ < 1 ? 1 / _ : 1, j = k < 1 ? 1 / k : 1;
9988
+ const _ = s * C, x = u * C;
9989
+ N = _ < 1 ? 1 / _ : 1, j = x < 1 ? 1 / x : 1;
9990
9990
  }
9991
9991
  } else {
9992
9992
  const s = Math.abs(S[0] * S[3] - S[2] * S[1]), u = Math.hypot(S[0], S[1]), _ = Math.hypot(S[2], S[3]);
9993
9993
  if (C === 0)
9994
9994
  N = _ / s, j = u / s;
9995
9995
  else {
9996
- const k = C * s;
9997
- N = _ > k ? _ / k : 1, j = u > k ? u / k : 1;
9996
+ const x = C * s;
9997
+ N = _ > x ? _ / x : 1, j = u > x ? u / x : 1;
9998
9998
  }
9999
9999
  }
10000
10000
  this._cachedScaleForStroking = [N, j];
@@ -10011,10 +10011,10 @@ var Yr = xr(function(je, it) {
10011
10011
  S.stroke();
10012
10012
  return;
10013
10013
  }
10014
- let u, _, k;
10015
- C && (u = (0, o.getCurrentTransform)(S), _ = S.getLineDash().slice(), k = S.lineDashOffset), S.scale(j, s);
10014
+ let u, _, x;
10015
+ C && (u = (0, o.getCurrentTransform)(S), _ = S.getLineDash().slice(), x = S.lineDashOffset), S.scale(j, s);
10016
10016
  const L = Math.max(j, s);
10017
- S.setLineDash(S.getLineDash().map((X) => X / L)), S.lineDashOffset /= L, S.stroke(), C && (S.setTransform(...u), S.setLineDash(_), S.lineDashOffset = k);
10017
+ S.setLineDash(S.getLineDash().map((X) => X / L)), S.lineDashOffset /= L, S.stroke(), C && (S.setTransform(...u), S.setLineDash(_), S.lineDashOffset = x);
10018
10018
  }
10019
10019
  isContentVisible() {
10020
10020
  for (let C = this.markedContentStack.length - 1; C >= 0; C--)
@@ -10071,8 +10071,8 @@ var Yr = xr(function(je, it) {
10071
10071
  getPattern(p, b, c, t) {
10072
10072
  let a;
10073
10073
  if (t === O.STROKE || t === O.FILL) {
10074
- const h = b.current.getClippedPathBoundingBox(t, (0, f.getCurrentTransform)(p)) || [0, 0, 0, 0], g = Math.ceil(h[2] - h[0]) || 1, E = Math.ceil(h[3] - h[1]) || 1, B = b.cachedCanvases.getCanvas("pattern", g, E, !0), x = B.context;
10075
- x.clearRect(0, 0, x.canvas.width, x.canvas.height), x.beginPath(), x.rect(0, 0, x.canvas.width, x.canvas.height), x.translate(-h[0], -h[1]), c = o.Util.transform(c, [1, 0, 0, 1, h[0], h[1]]), x.transform(...b.baseTransform), this.matrix && x.transform(...this.matrix), M(x, this._bbox), x.fillStyle = this._createGradient(x), x.fill(), a = p.createPattern(B.canvas, "no-repeat");
10074
+ const h = b.current.getClippedPathBoundingBox(t, (0, f.getCurrentTransform)(p)) || [0, 0, 0, 0], g = Math.ceil(h[2] - h[0]) || 1, E = Math.ceil(h[3] - h[1]) || 1, B = b.cachedCanvases.getCanvas("pattern", g, E, !0), k = B.context;
10075
+ k.clearRect(0, 0, k.canvas.width, k.canvas.height), k.beginPath(), k.rect(0, 0, k.canvas.width, k.canvas.height), k.translate(-h[0], -h[1]), c = o.Util.transform(c, [1, 0, 0, 1, h[0], h[1]]), k.transform(...b.baseTransform), this.matrix && k.transform(...this.matrix), M(k, this._bbox), k.fillStyle = this._createGradient(k), k.fill(), a = p.createPattern(B.canvas, "no-repeat");
10076
10076
  const ne = new DOMMatrix(c);
10077
10077
  try {
10078
10078
  a.setTransform(ne);
@@ -10085,28 +10085,28 @@ var Yr = xr(function(je, it) {
10085
10085
  }
10086
10086
  }
10087
10087
  function y(F, p, b, c, t, a, h, g) {
10088
- const E = p.coords, B = p.colors, x = F.data, ne = F.width * 4;
10088
+ const E = p.coords, B = p.colors, k = F.data, ne = F.width * 4;
10089
10089
  let q;
10090
10090
  E[b + 1] > E[c + 1] && (q = b, b = c, c = q, q = a, a = h, h = q), E[c + 1] > E[t + 1] && (q = c, c = t, t = q, q = h, h = g, g = q), E[b + 1] > E[c + 1] && (q = b, b = c, c = q, q = a, a = h, h = q);
10091
10091
  const re = (E[b] + p.offsetX) * p.scaleX, Z = (E[b + 1] + p.offsetY) * p.scaleY, z = (E[c] + p.offsetX) * p.scaleX, G = (E[c + 1] + p.offsetY) * p.scaleY, W = (E[t] + p.offsetX) * p.scaleX, I = (E[t + 1] + p.offsetY) * p.scaleY;
10092
10092
  if (Z >= I)
10093
10093
  return;
10094
10094
  const ee = B[a], de = B[a + 1], ye = B[a + 2], Se = B[h], Y = B[h + 1], C = B[h + 2], S = B[g], N = B[g + 1], j = B[g + 2], s = Math.round(Z), u = Math.round(I);
10095
- let _, k, L, X, J, ie, se, he;
10095
+ let _, x, L, X, J, ie, se, he;
10096
10096
  for (let le = s; le <= u; le++) {
10097
10097
  if (le < G) {
10098
- let xe;
10099
- le < Z ? xe = 0 : xe = (Z - le) / (Z - G), _ = re - (re - z) * xe, k = ee - (ee - Se) * xe, L = de - (de - Y) * xe, X = ye - (ye - C) * xe;
10098
+ let ke;
10099
+ le < Z ? ke = 0 : ke = (Z - le) / (Z - G), _ = re - (re - z) * ke, x = ee - (ee - Se) * ke, L = de - (de - Y) * ke, X = ye - (ye - C) * ke;
10100
10100
  } else {
10101
- let xe;
10102
- le > I ? xe = 1 : G === I ? xe = 0 : xe = (G - le) / (G - I), _ = z - (z - W) * xe, k = Se - (Se - S) * xe, L = Y - (Y - N) * xe, X = C - (C - j) * xe;
10101
+ let ke;
10102
+ le > I ? ke = 1 : G === I ? ke = 0 : ke = (G - le) / (G - I), _ = z - (z - W) * ke, x = Se - (Se - S) * ke, L = Y - (Y - N) * ke, X = C - (C - j) * ke;
10103
10103
  }
10104
10104
  let fe;
10105
10105
  le < Z ? fe = 0 : le > I ? fe = 1 : fe = (Z - le) / (Z - I), J = re - (re - W) * fe, ie = ee - (ee - S) * fe, se = de - (de - N) * fe, he = ye - (ye - j) * fe;
10106
10106
  const ve = Math.round(Math.min(_, J)), we = Math.round(Math.max(_, J));
10107
10107
  let Ee = ne * le + ve * 4;
10108
- for (let xe = ve; xe <= we; xe++)
10109
- fe = (_ - xe) / (_ - J), fe < 0 ? fe = 0 : fe > 1 && (fe = 1), x[Ee++] = k - (k - ie) * fe | 0, x[Ee++] = L - (L - se) * fe | 0, x[Ee++] = X - (X - he) * fe | 0, x[Ee++] = 255;
10108
+ for (let ke = ve; ke <= we; ke++)
10109
+ fe = (_ - ke) / (_ - J), fe < 0 ? fe = 0 : fe > 1 && (fe = 1), k[Ee++] = x - (x - ie) * fe | 0, k[Ee++] = L - (L - se) * fe | 0, k[Ee++] = X - (X - he) * fe | 0, k[Ee++] = 255;
10110
10110
  }
10111
10111
  }
10112
10112
  function D(F, p, b) {
@@ -10116,9 +10116,9 @@ var Yr = xr(function(je, it) {
10116
10116
  case "lattice":
10117
10117
  const g = p.verticesPerRow, E = Math.floor(c.length / g) - 1, B = g - 1;
10118
10118
  for (a = 0; a < E; a++) {
10119
- let x = a * g;
10120
- for (let ne = 0; ne < B; ne++, x++)
10121
- y(F, b, c[x], c[x + 1], c[x + g], t[x], t[x + 1], t[x + g]), y(F, b, c[x + g + 1], c[x + 1], c[x + g], t[x + g + 1], t[x + 1], t[x + g]);
10119
+ let k = a * g;
10120
+ for (let ne = 0; ne < B; ne++, k++)
10121
+ y(F, b, c[k], c[k + 1], c[k + g], t[k], t[k + 1], t[k + g]), y(F, b, c[k + g + 1], c[k + 1], c[k + g], t[k + g + 1], t[k + 1], t[k + g]);
10122
10122
  }
10123
10123
  break;
10124
10124
  case "triangles":
@@ -10134,7 +10134,7 @@ var Yr = xr(function(je, it) {
10134
10134
  super(), this._coords = p[2], this._colors = p[3], this._figures = p[4], this._bounds = p[5], this._bbox = p[7], this._background = p[8], this.matrix = null;
10135
10135
  }
10136
10136
  _createMeshCanvas(p, b, c) {
10137
- const g = Math.floor(this._bounds[0]), E = Math.floor(this._bounds[1]), B = Math.ceil(this._bounds[2]) - g, x = Math.ceil(this._bounds[3]) - E, ne = Math.min(Math.ceil(Math.abs(B * p[0] * 1.1)), 3e3), q = Math.min(Math.ceil(Math.abs(x * p[1] * 1.1)), 3e3), re = B / ne, Z = x / q, z = {
10137
+ const g = Math.floor(this._bounds[0]), E = Math.floor(this._bounds[1]), B = Math.ceil(this._bounds[2]) - g, k = Math.ceil(this._bounds[3]) - E, ne = Math.min(Math.ceil(Math.abs(B * p[0] * 1.1)), 3e3), q = Math.min(Math.ceil(Math.abs(k * p[1] * 1.1)), 3e3), re = B / ne, Z = k / q, z = {
10138
10138
  coords: this._coords,
10139
10139
  colors: this._colors,
10140
10140
  offsetX: -g,
@@ -10200,10 +10200,10 @@ var Yr = xr(function(je, it) {
10200
10200
  createPatternCanvas(p) {
10201
10201
  const b = this.operatorList, c = this.bbox, t = this.xstep, a = this.ystep, h = this.paintType, g = this.tilingType, E = this.color, B = this.canvasGraphicsFactory;
10202
10202
  (0, o.info)("TilingType: " + g);
10203
- const x = c[0], ne = c[1], q = c[2], re = c[3], Z = o.Util.singularValueDecompose2dScale(this.matrix), z = o.Util.singularValueDecompose2dScale(this.baseTransform), G = [Z[0] * z[0], Z[1] * z[1]], W = this.getSizeAndScale(t, this.ctx.canvas.width, G[0]), I = this.getSizeAndScale(a, this.ctx.canvas.height, G[1]), ee = p.cachedCanvases.getCanvas("pattern", W.size, I.size, !0), de = ee.context, ye = B.createCanvasGraphics(de);
10203
+ const k = c[0], ne = c[1], q = c[2], re = c[3], Z = o.Util.singularValueDecompose2dScale(this.matrix), z = o.Util.singularValueDecompose2dScale(this.baseTransform), G = [Z[0] * z[0], Z[1] * z[1]], W = this.getSizeAndScale(t, this.ctx.canvas.width, G[0]), I = this.getSizeAndScale(a, this.ctx.canvas.height, G[1]), ee = p.cachedCanvases.getCanvas("pattern", W.size, I.size, !0), de = ee.context, ye = B.createCanvasGraphics(de);
10204
10204
  ye.groupLevel = p.groupLevel, this.setFillAndStrokeStyleToContext(ye, h, E);
10205
- let Se = x, Y = ne, C = q, S = re;
10206
- return x < 0 && (Se = 0, C += Math.abs(x)), ne < 0 && (Y = 0, S += Math.abs(ne)), de.translate(-(W.scale * Se), -(I.scale * Y)), ye.transform(W.scale, 0, 0, I.scale, 0, 0), de.save(), this.clipBbox(ye, Se, Y, C, S), ye.baseTransform = (0, f.getCurrentTransform)(ye.ctx), ye.executeOperatorList(b), ye.endDrawing(), {
10205
+ let Se = k, Y = ne, C = q, S = re;
10206
+ return k < 0 && (Se = 0, C += Math.abs(k)), ne < 0 && (Y = 0, S += Math.abs(ne)), de.translate(-(W.scale * Se), -(I.scale * Y)), ye.transform(W.scale, 0, 0, I.scale, 0, 0), de.save(), this.clipBbox(ye, Se, Y, C, S), ye.baseTransform = (0, f.getCurrentTransform)(ye.ctx), ye.executeOperatorList(b), ye.endDrawing(), {
10207
10207
  canvas: ee.canvas,
10208
10208
  scaleX: W.scale,
10209
10209
  scaleY: I.scale,
@@ -10854,14 +10854,14 @@ var Yr = xr(function(je, it) {
10854
10854
  return !0;
10855
10855
  const E = h[0];
10856
10856
  for (let B = 1; B < g; B++) {
10857
- const x = h[B];
10857
+ const k = h[B];
10858
10858
  let ne;
10859
- if (Array.isArray(x))
10860
- ne = P(this, c, a).call(this, x);
10861
- else if (y(this, F).has(x))
10862
- ne = y(this, F).get(x).visible;
10859
+ if (Array.isArray(k))
10860
+ ne = P(this, c, a).call(this, k);
10861
+ else if (y(this, F).has(k))
10862
+ ne = y(this, F).get(k).visible;
10863
10863
  else
10864
- return (0, o.warn)(`Optional content group not found: ${x}`), !0;
10864
+ return (0, o.warn)(`Optional content group not found: ${k}`), !0;
10865
10865
  switch (E) {
10866
10866
  case "And":
10867
10867
  if (!ne)
@@ -11197,10 +11197,10 @@ var Yr = xr(function(je, it) {
11197
11197
  I.value = ee;
11198
11198
  }
11199
11199
  }
11200
- var F = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakSet(), B = /* @__PURE__ */ new WeakSet(), x = /* @__PURE__ */ new WeakSet(), ne = /* @__PURE__ */ new WeakSet();
11200
+ var F = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakSet(), B = /* @__PURE__ */ new WeakSet(), k = /* @__PURE__ */ new WeakSet(), ne = /* @__PURE__ */ new WeakSet();
11201
11201
  class q {
11202
11202
  constructor(I) {
11203
- M(this, ne), M(this, x), M(this, B), M(this, E), m(this, F, {
11203
+ M(this, ne), M(this, k), M(this, B), M(this, E), m(this, F, {
11204
11204
  writable: !0,
11205
11205
  value: void 0
11206
11206
  }), m(this, p, {
@@ -11243,7 +11243,7 @@ var Yr = xr(function(je, it) {
11243
11243
  return;
11244
11244
  }
11245
11245
  }
11246
- D(this, x, z).call(this, {
11246
+ D(this, k, z).call(this, {
11247
11247
  offsetX: 0,
11248
11248
  offsetY: 0
11249
11249
  }).setInBackground();
@@ -11357,7 +11357,7 @@ var Yr = xr(function(je, it) {
11357
11357
  A(this, p, !0);
11358
11358
  return;
11359
11359
  }
11360
- D(this, x, z).call(this, I);
11360
+ D(this, k, z).call(this, I);
11361
11361
  }
11362
11362
  }
11363
11363
  pointerdown(I) {
@@ -11501,7 +11501,7 @@ var Yr = xr(function(je, it) {
11501
11501
  }
11502
11502
  }
11503
11503
  var w = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakSet(), g = /* @__PURE__ */ new WeakSet(), E = /* @__PURE__ */ new WeakSet(), B = /* @__PURE__ */ new WeakSet();
11504
- class x extends P.AnnotationEditor {
11504
+ class k extends P.AnnotationEditor {
11505
11505
  constructor(G) {
11506
11506
  super({
11507
11507
  ...G,
@@ -11527,7 +11527,7 @@ var Yr = xr(function(je, it) {
11527
11527
  }), T(this, a, {
11528
11528
  writable: !0,
11529
11529
  value: void 0
11530
- }), l(this, b, G.color || x._defaultColor || P.AnnotationEditor._defaultLineColor), l(this, a, G.fontSize || x._defaultFontSize);
11530
+ }), l(this, b, G.color || k._defaultColor || P.AnnotationEditor._defaultLineColor), l(this, a, G.fontSize || k._defaultFontSize);
11531
11531
  }
11532
11532
  static initialize(G) {
11533
11533
  this._l10nPromise = new Map(["free_text_default_content", "editor_free_text_aria_label"].map((I) => [I, G.get(I)]));
@@ -11537,10 +11537,10 @@ var Yr = xr(function(je, it) {
11537
11537
  static updateDefaultParams(G, W) {
11538
11538
  switch (G) {
11539
11539
  case o.AnnotationEditorParamsType.FREETEXT_SIZE:
11540
- x._defaultFontSize = W;
11540
+ k._defaultFontSize = W;
11541
11541
  break;
11542
11542
  case o.AnnotationEditorParamsType.FREETEXT_COLOR:
11543
- x._defaultColor = W;
11543
+ k._defaultColor = W;
11544
11544
  break;
11545
11545
  }
11546
11546
  }
@@ -11555,13 +11555,13 @@ var Yr = xr(function(je, it) {
11555
11555
  }
11556
11556
  }
11557
11557
  static get defaultPropertiesToUpdate() {
11558
- return [[o.AnnotationEditorParamsType.FREETEXT_SIZE, x._defaultFontSize], [o.AnnotationEditorParamsType.FREETEXT_COLOR, x._defaultColor || P.AnnotationEditor._defaultLineColor]];
11558
+ return [[o.AnnotationEditorParamsType.FREETEXT_SIZE, k._defaultFontSize], [o.AnnotationEditorParamsType.FREETEXT_COLOR, k._defaultColor || P.AnnotationEditor._defaultLineColor]];
11559
11559
  }
11560
11560
  get propertiesToUpdate() {
11561
11561
  return [[o.AnnotationEditorParamsType.FREETEXT_SIZE, y(this, a)], [o.AnnotationEditorParamsType.FREETEXT_COLOR, y(this, b)]];
11562
11562
  }
11563
11563
  getInitialTranslation() {
11564
- return [-x._internalPadding * this.parent.scaleFactor, -(x._internalPadding + y(this, a)) * this.parent.scaleFactor];
11564
+ return [-k._internalPadding * this.parent.scaleFactor, -(k._internalPadding + y(this, a)) * this.parent.scaleFactor];
11565
11565
  }
11566
11566
  rebuild() {
11567
11567
  super.rebuild(), this.div !== null && (this.isAttachedToDOM || this.parent.add(this));
@@ -11597,7 +11597,7 @@ var Yr = xr(function(je, it) {
11597
11597
  G.target === this.div && G.key === "Enter" && (this.enableEditMode(), this.editorDiv.focus());
11598
11598
  }
11599
11599
  editorDivKeydown(G) {
11600
- x._keyboardManager.exec(this, G);
11600
+ k._keyboardManager.exec(this, G);
11601
11601
  }
11602
11602
  editorDivFocus(G) {
11603
11603
  this.isEditing = !0;
@@ -11615,10 +11615,10 @@ var Yr = xr(function(je, it) {
11615
11615
  if (this.div)
11616
11616
  return this.div;
11617
11617
  let G, W;
11618
- this.width && (G = this.x, W = this.y), super.render(), this.editorDiv = document.createElement("div"), this.editorDiv.className = "internal", this.editorDiv.setAttribute("id", `${this.id}-editor`), this.enableEditing(), x._l10nPromise.get("editor_free_text_aria_label").then((ee) => {
11618
+ this.width && (G = this.x, W = this.y), super.render(), this.editorDiv = document.createElement("div"), this.editorDiv.className = "internal", this.editorDiv.setAttribute("id", `${this.id}-editor`), this.enableEditing(), k._l10nPromise.get("editor_free_text_aria_label").then((ee) => {
11619
11619
  var de;
11620
11620
  return (de = this.editorDiv) === null || de === void 0 ? void 0 : de.setAttribute("aria-label", ee);
11621
- }), x._l10nPromise.get("free_text_default_content").then((ee) => {
11621
+ }), k._l10nPromise.get("free_text_default_content").then((ee) => {
11622
11622
  var de;
11623
11623
  return (de = this.editorDiv) === null || de === void 0 ? void 0 : de.setAttribute("default-content", ee);
11624
11624
  }), this.editorDiv.contentEditable = !0;
@@ -11648,7 +11648,7 @@ var Yr = xr(function(je, it) {
11648
11648
  serialize() {
11649
11649
  if (this.isEmpty())
11650
11650
  return null;
11651
- const G = x._internalPadding * this.parent.scaleFactor, W = this.getRect(G, G), I = P.AnnotationEditor._colorManager.convert(getComputedStyle(this.editorDiv).color);
11651
+ const G = k._internalPadding * this.parent.scaleFactor, W = this.getRect(G, G), I = P.AnnotationEditor._colorManager.convert(getComputedStyle(this.editorDiv).color);
11652
11652
  return {
11653
11653
  annotationType: o.AnnotationEditorType.FREETEXT,
11654
11654
  color: I,
@@ -11660,7 +11660,7 @@ var Yr = xr(function(je, it) {
11660
11660
  };
11661
11661
  }
11662
11662
  }
11663
- v.FreeTextEditor = x;
11663
+ v.FreeTextEditor = k;
11664
11664
  function ne(z) {
11665
11665
  const G = (I) => {
11666
11666
  this.editorDiv.style.fontSize = `calc(${I}px * var(--scale-factor))`, this.translate(0, -(I - y(this, a)) * this.parent.scaleFactor), l(this, a, I), r(this, B, Z).call(this);
@@ -11709,7 +11709,7 @@ var Yr = xr(function(je, it) {
11709
11709
  const [z, G] = this.parent.viewportBaseDimensions, W = this.div.getBoundingClientRect();
11710
11710
  this.width = W.width / z, this.height = W.height / G;
11711
11711
  }
11712
- M(x, "_freeTextDefaultContent", ""), M(x, "_l10nPromise", void 0), M(x, "_internalPadding", 0), M(x, "_defaultColor", null), M(x, "_defaultFontSize", 10), M(x, "_keyboardManager", new f.KeyboardManager([[["ctrl+Enter", "mac+meta+Enter", "Escape", "mac+Escape"], x.prototype.commitOrRemove]])), M(x, "_type", "freetext");
11712
+ M(k, "_freeTextDefaultContent", ""), M(k, "_l10nPromise", void 0), M(k, "_internalPadding", 0), M(k, "_defaultColor", null), M(k, "_defaultFontSize", 10), M(k, "_keyboardManager", new f.KeyboardManager([[["ctrl+Enter", "mac+meta+Enter", "Escape", "mac+Escape"], k.prototype.commitOrRemove]])), M(k, "_type", "freetext");
11713
11713
  },
11714
11714
  (U, v, n) => {
11715
11715
  Object.defineProperty(v, "__esModule", {
@@ -11772,13 +11772,13 @@ var Yr = xr(function(je, it) {
11772
11772
  return Pe;
11773
11773
  }
11774
11774
  const b = 16;
11775
- var c = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakSet(), I = /* @__PURE__ */ new WeakSet(), ee = /* @__PURE__ */ new WeakSet(), de = /* @__PURE__ */ new WeakSet(), ye = /* @__PURE__ */ new WeakSet(), Se = /* @__PURE__ */ new WeakSet(), Y = /* @__PURE__ */ new WeakSet(), C = /* @__PURE__ */ new WeakSet(), S = /* @__PURE__ */ new WeakSet(), N = /* @__PURE__ */ new WeakSet(), j = /* @__PURE__ */ new WeakSet(), s = /* @__PURE__ */ new WeakSet(), u = /* @__PURE__ */ new WeakSet(), _ = /* @__PURE__ */ new WeakSet(), k = /* @__PURE__ */ new WeakSet(), L = /* @__PURE__ */ new WeakSet(), X = /* @__PURE__ */ new WeakSet(), J = /* @__PURE__ */ new WeakSet(), ie = /* @__PURE__ */ new WeakSet(), se = /* @__PURE__ */ new WeakSet(), he = /* @__PURE__ */ new WeakSet(), le = /* @__PURE__ */ new WeakSet();
11775
+ var c = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakSet(), I = /* @__PURE__ */ new WeakSet(), ee = /* @__PURE__ */ new WeakSet(), de = /* @__PURE__ */ new WeakSet(), ye = /* @__PURE__ */ new WeakSet(), Se = /* @__PURE__ */ new WeakSet(), Y = /* @__PURE__ */ new WeakSet(), C = /* @__PURE__ */ new WeakSet(), S = /* @__PURE__ */ new WeakSet(), N = /* @__PURE__ */ new WeakSet(), j = /* @__PURE__ */ new WeakSet(), s = /* @__PURE__ */ new WeakSet(), u = /* @__PURE__ */ new WeakSet(), _ = /* @__PURE__ */ new WeakSet(), x = /* @__PURE__ */ new WeakSet(), L = /* @__PURE__ */ new WeakSet(), X = /* @__PURE__ */ new WeakSet(), J = /* @__PURE__ */ new WeakSet(), ie = /* @__PURE__ */ new WeakSet(), se = /* @__PURE__ */ new WeakSet(), he = /* @__PURE__ */ new WeakSet(), le = /* @__PURE__ */ new WeakSet();
11776
11776
  class fe extends f.AnnotationEditor {
11777
11777
  constructor(ue) {
11778
11778
  super({
11779
11779
  ...ue,
11780
11780
  name: "inkEditor"
11781
- }), M(this, le), M(this, he), M(this, se), M(this, ie), M(this, J), M(this, X), M(this, L), M(this, k), M(this, _), M(this, u), M(this, s), M(this, j), M(this, N), M(this, S), M(this, C), M(this, Y), M(this, Se), M(this, ye), M(this, de), M(this, ee), M(this, I), M(this, W), m(this, c, {
11781
+ }), M(this, le), M(this, he), M(this, se), M(this, ie), M(this, J), M(this, X), M(this, L), M(this, x), M(this, _), M(this, u), M(this, s), M(this, j), M(this, N), M(this, S), M(this, C), M(this, Y), M(this, Se), M(this, ye), M(this, de), M(this, ee), M(this, I), M(this, W), m(this, c, {
11782
11782
  writable: !0,
11783
11783
  value: 0
11784
11784
  }), m(this, t, {
@@ -11799,7 +11799,7 @@ var Yr = xr(function(je, it) {
11799
11799
  }), m(this, B, {
11800
11800
  writable: !0,
11801
11801
  value: this.canvasPointerdown.bind(this)
11802
- }), m(this, x, {
11802
+ }), m(this, k, {
11803
11803
  writable: !0,
11804
11804
  value: !1
11805
11805
  }), m(this, ne, {
@@ -11865,7 +11865,7 @@ var Yr = xr(function(je, it) {
11865
11865
  this.canvas !== null && (this.isEmpty() || this.commit(), this.canvas.width = this.canvas.height = 0, this.canvas.remove(), this.canvas = null, d(this, re).disconnect(), l(this, re, null), super.remove());
11866
11866
  }
11867
11867
  enableEditMode() {
11868
- d(this, x) || this.canvas === null || (super.enableEditMode(), this.div.draggable = !1, this.canvas.addEventListener("pointerdown", d(this, B)), this.canvas.addEventListener("pointerup", d(this, E)));
11868
+ d(this, k) || this.canvas === null || (super.enableEditMode(), this.div.draggable = !1, this.canvas.addEventListener("pointerdown", d(this, B)), this.canvas.addEventListener("pointerup", d(this, E)));
11869
11869
  }
11870
11870
  disableEditMode() {
11871
11871
  !this.isInEditMode() || this.canvas === null || (super.disableEditMode(), this.div.draggable = !this.isEmpty(), this.div.classList.remove("editing"), this.canvas.removeEventListener("pointerdown", d(this, B)), this.canvas.removeEventListener("pointerup", d(this, E)));
@@ -11877,13 +11877,13 @@ var Yr = xr(function(je, it) {
11877
11877
  return this.paths.length === 0 || this.paths.length === 1 && this.paths[0].length === 0;
11878
11878
  }
11879
11879
  commit() {
11880
- d(this, x) || (super.commit(), this.isEditing = !1, this.disableEditMode(), this.setInForeground(), l(this, x, !0), this.div.classList.add("disabled"), p(this, he, De).call(this, !0), this.parent.addInkEditorIfNeeded(!0), this.parent.moveEditorInDOM(this), this.div.focus());
11880
+ d(this, k) || (super.commit(), this.isEditing = !1, this.disableEditMode(), this.setInForeground(), l(this, k, !0), this.div.classList.add("disabled"), p(this, he, De).call(this, !0), this.parent.addInkEditorIfNeeded(!0), this.parent.moveEditorInDOM(this), this.div.focus());
11881
11881
  }
11882
11882
  focusin(ue) {
11883
11883
  super.focusin(ue), this.enableEditMode();
11884
11884
  }
11885
11885
  canvasPointerdown(ue) {
11886
- ue.button !== 0 || !this.isInEditMode() || d(this, x) || (this.setInForeground(), ue.type !== "mouse" && this.div.focus(), ue.stopPropagation(), this.canvas.addEventListener("pointerleave", d(this, g)), this.canvas.addEventListener("pointermove", d(this, h)), p(this, Se, Oe).call(this, ue.offsetX, ue.offsetY));
11886
+ ue.button !== 0 || !this.isInEditMode() || d(this, k) || (this.setInForeground(), ue.type !== "mouse" && this.div.focus(), ue.stopPropagation(), this.canvas.addEventListener("pointerleave", d(this, g)), this.canvas.addEventListener("pointermove", d(this, h)), p(this, Se, Oe).call(this, ue.offsetX, ue.offsetY));
11887
11887
  }
11888
11888
  canvasPointermove(ue) {
11889
11889
  ue.stopPropagation(), p(this, Y, Ce).call(this, ue.offsetX, ue.offsetY);
@@ -11902,7 +11902,7 @@ var Yr = xr(function(je, it) {
11902
11902
  var Be;
11903
11903
  return (Be = this.div) === null || Be === void 0 ? void 0 : Be.setAttribute("aria-label", He);
11904
11904
  });
11905
- const [Me, Ue, ze, Ve] = p(this, de, xe).call(this);
11905
+ const [Me, Ue, ze, Ve] = p(this, de, ke).call(this);
11906
11906
  if (this.setAt(Me, Ue, 0, 0), this.setDims(ze, Ve), p(this, j, H).call(this), this.width) {
11907
11907
  const [He, Be] = this.parent.viewportBaseDimensions;
11908
11908
  this.setAt(ue * He, Pe * Be, this.width * He, this.height * Be), l(this, ne, !0), p(this, u, _e).call(this), this.setDims(this.width * He, this.height * Be), p(this, S, Q).call(this), p(this, le, $e).call(this), this.div.classList.add("disabled");
@@ -11916,13 +11916,13 @@ var Yr = xr(function(je, it) {
11916
11916
  return;
11917
11917
  l(this, Z, Me), l(this, z, Ue), this.canvas.style.visibility = "hidden", d(this, c) && Math.abs(d(this, c) - ue / Pe) > 0.01 && (Pe = Math.ceil(ue / d(this, c)), this.setDims(ue, Pe));
11918
11918
  const [ze, Ve] = this.parent.viewportBaseDimensions;
11919
- this.width = ue / ze, this.height = Pe / Ve, d(this, x) && p(this, _, Re).call(this, ue, Pe), p(this, u, _e).call(this), p(this, S, Q).call(this), this.canvas.style.visibility = "visible";
11919
+ this.width = ue / ze, this.height = Pe / Ve, d(this, k) && p(this, _, Re).call(this, ue, Pe), p(this, u, _e).call(this), p(this, S, Q).call(this), this.canvas.style.visibility = "visible";
11920
11920
  }
11921
11921
  static deserialize(ue, Pe) {
11922
11922
  const Me = super.deserialize(ue, Pe);
11923
11923
  Me.thickness = ue.thickness, Me.color = o.Util.makeHexColor(...ue.color), Me.opacity = ue.opacity;
11924
11924
  const [Ue, ze] = Pe.pageDimensions, Ve = Me.width * Ue, He = Me.height * ze, Be = Pe.scaleFactor, Ke = ue.thickness / 2;
11925
- l(Me, c, Ve / He), l(Me, x, !0), l(Me, Z, Math.round(Ve)), l(Me, z, Math.round(He));
11925
+ l(Me, c, Ve / He), l(Me, k, !0), l(Me, Z, Math.round(Ve)), l(Me, z, Math.round(He));
11926
11926
  for (const {
11927
11927
  bezier: Ze
11928
11928
  } of ue.paths) {
@@ -12002,7 +12002,7 @@ var Yr = xr(function(je, it) {
12002
12002
  keepUndo: !0
12003
12003
  });
12004
12004
  }
12005
- function xe() {
12005
+ function ke() {
12006
12006
  const {
12007
12007
  width: me,
12008
12008
  height: ue,
@@ -12061,7 +12061,7 @@ var Yr = xr(function(je, it) {
12061
12061
  }
12062
12062
  function Q() {
12063
12063
  if (this.isEmpty()) {
12064
- p(this, k, ce).call(this);
12064
+ p(this, x, ce).call(this);
12065
12065
  return;
12066
12066
  }
12067
12067
  p(this, ye, Ne).call(this);
@@ -12069,7 +12069,7 @@ var Yr = xr(function(je, it) {
12069
12069
  canvas: me,
12070
12070
  ctx: ue
12071
12071
  } = this;
12072
- ue.setTransform(1, 0, 0, 1, 0, 0), ue.clearRect(0, 0, me.width, me.height), p(this, k, ce).call(this);
12072
+ ue.setTransform(1, 0, 0, 1, 0, 0), ue.clearRect(0, 0, me.width, me.height), p(this, x, ce).call(this);
12073
12073
  for (const Pe of this.bezierPath2D)
12074
12074
  ue.stroke(Pe);
12075
12075
  }
@@ -12092,7 +12092,7 @@ var Yr = xr(function(je, it) {
12092
12092
  if (!d(this, ne))
12093
12093
  return;
12094
12094
  const [me, ue] = this.parent.viewportBaseDimensions;
12095
- this.canvas.width = Math.ceil(this.width * me), this.canvas.height = Math.ceil(this.height * ue), p(this, k, ce).call(this);
12095
+ this.canvas.width = Math.ceil(this.width * me), this.canvas.height = Math.ceil(this.height * ue), p(this, x, ce).call(this);
12096
12096
  }
12097
12097
  function Re(me, ue) {
12098
12098
  const Pe = p(this, se, be).call(this), Me = (me - Pe) / d(this, a), Ue = (ue - Pe) / d(this, t);
@@ -12153,13 +12153,13 @@ var Yr = xr(function(je, it) {
12153
12153
  return [me, Pe, ue, Me];
12154
12154
  }
12155
12155
  function be() {
12156
- return d(this, x) ? Math.ceil(this.thickness * this.parent.scaleFactor) : 0;
12156
+ return d(this, k) ? Math.ceil(this.thickness * this.parent.scaleFactor) : 0;
12157
12157
  }
12158
12158
  function De() {
12159
12159
  let me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
12160
12160
  if (this.isEmpty())
12161
12161
  return;
12162
- if (!d(this, x)) {
12162
+ if (!d(this, k)) {
12163
12163
  p(this, S, Q).call(this);
12164
12164
  return;
12165
12165
  }
@@ -12200,7 +12200,7 @@ var Yr = xr(function(je, it) {
12200
12200
  return n(A, p, b, d, w);
12201
12201
  }
12202
12202
  function n(A, d, w, F, p) {
12203
- var c, t, a, h, g, E, B, x, ne, q, re, Z, z;
12203
+ var c, t, a, h, g, E, B, k, ne, q, re, Z, z;
12204
12204
  if (A.length === 2)
12205
12205
  return Z = r.vectorLen(r.subtract(A[0], A[1])) / 3, c = [A[0], r.addArrays(A[0], r.mulItems(d, Z)), r.addArrays(A[1], r.mulItems(w, Z)), A[1]], [c];
12206
12206
  if (t = M(A), [c, h, E] = o(A, t, t, d, w, p), h === 0 || h < F)
@@ -12216,7 +12216,7 @@ var Yr = xr(function(je, it) {
12216
12216
  }
12217
12217
  g = h, B = E;
12218
12218
  }
12219
- return re = [], x = r.subtract(A[E - 1], A[E + 1]), x.every((G) => G === 0) && (x = r.subtract(A[E - 1], A[E]), [x[0], x[1]] = [-x[1], x[0]]), ne = r.normalize(x), q = r.mulItems(ne, -1), re = re.concat(n(A.slice(0, E + 1), d, ne, F, p)), re = re.concat(n(A.slice(E), q, w, F, p)), re;
12219
+ return re = [], k = r.subtract(A[E - 1], A[E + 1]), k.every((G) => G === 0) && (k = r.subtract(A[E - 1], A[E]), [k[0], k[1]] = [-k[1], k[0]]), ne = r.normalize(k), q = r.mulItems(ne, -1), re = re.concat(n(A.slice(0, E + 1), d, ne, F, p)), re = re.concat(n(A.slice(E), q, w, F, p)), re;
12220
12220
  }
12221
12221
  function o(A, d, w, F, p, b) {
12222
12222
  var c, t, a;
@@ -12229,12 +12229,12 @@ var Yr = xr(function(je, it) {
12229
12229
  }), [c, t, a];
12230
12230
  }
12231
12231
  function f(A, d, w, F) {
12232
- var p, b, c, t, a, h, g, E, B, x, ne, q, re, Z, z, G, W, I = A[0], ee = A[A.length - 1];
12232
+ var p, b, c, t, a, h, g, E, B, k, ne, q, re, Z, z, G, W, I = A[0], ee = A[A.length - 1];
12233
12233
  for (p = [I, null, null, ee], b = r.zeros_Xx2x2(d.length), re = 0, Z = d.length; re < Z; re++)
12234
12234
  G = d[re], W = 1 - G, c = b[re], c[0] = r.mulItems(w, 3 * G * (W * W)), c[1] = r.mulItems(F, 3 * W * (G * G));
12235
12235
  for (t = [[0, 0], [0, 0]], a = [0, 0], re = 0, Z = A.length; re < Z; re++)
12236
12236
  G = d[re], c = b[re], t[0][0] += r.dot(c[0], c[0]), t[0][1] += r.dot(c[0], c[1]), t[1][0] += r.dot(c[0], c[1]), t[1][1] += r.dot(c[1], c[1]), z = r.subtract(A[re], l.q([I, I, ee, ee], G)), a[0] += r.dot(c[0], z), a[1] += r.dot(c[1], z);
12237
- return h = t[0][0] * t[1][1] - t[1][0] * t[0][1], g = t[0][0] * a[1] - t[1][0] * a[0], E = a[0] * t[1][1] - a[1] * t[0][1], B = h === 0 ? 0 : E / h, x = h === 0 ? 0 : g / h, q = r.vectorLen(r.subtract(I, ee)), ne = 1e-6 * q, B < ne || x < ne ? (p[1] = r.addArrays(I, r.mulItems(w, q / 3)), p[2] = r.addArrays(ee, r.mulItems(F, q / 3))) : (p[1] = r.addArrays(I, r.mulItems(w, B)), p[2] = r.addArrays(ee, r.mulItems(F, x))), p;
12237
+ return h = t[0][0] * t[1][1] - t[1][0] * t[0][1], g = t[0][0] * a[1] - t[1][0] * a[0], E = a[0] * t[1][1] - a[1] * t[0][1], B = h === 0 ? 0 : E / h, k = h === 0 ? 0 : g / h, q = r.vectorLen(r.subtract(I, ee)), ne = 1e-6 * q, B < ne || k < ne ? (p[1] = r.addArrays(I, r.mulItems(w, q / 3)), p[2] = r.addArrays(ee, r.mulItems(F, q / 3))) : (p[1] = r.addArrays(I, r.mulItems(w, B)), p[2] = r.addArrays(ee, r.mulItems(F, k))), p;
12238
12238
  }
12239
12239
  function P(A, d, w) {
12240
12240
  return w.map((F, p) => O(A, d[p], F));
@@ -12373,7 +12373,7 @@ var Yr = xr(function(je, it) {
12373
12373
  case o.AnnotationType.FREETEXT:
12374
12374
  return new B(s);
12375
12375
  case o.AnnotationType.LINE:
12376
- return new x(s);
12376
+ return new k(s);
12377
12377
  case o.AnnotationType.SQUARE:
12378
12378
  return new ne(s);
12379
12379
  case o.AnnotationType.CIRCLE:
@@ -12408,23 +12408,23 @@ var Yr = xr(function(je, it) {
12408
12408
  let {
12409
12409
  isRenderable: u = !1,
12410
12410
  ignoreBorder: _ = !1,
12411
- createQuadrilaterals: k = !1
12411
+ createQuadrilaterals: x = !1
12412
12412
  } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
12413
- this.isRenderable = u, this.data = s.data, this.layer = s.layer, this.page = s.page, this.viewport = s.viewport, this.linkService = s.linkService, this.downloadManager = s.downloadManager, this.imageResourcesPath = s.imageResourcesPath, this.renderForms = s.renderForms, this.svgFactory = s.svgFactory, this.annotationStorage = s.annotationStorage, this.enableScripting = s.enableScripting, this.hasJSActions = s.hasJSActions, this._fieldObjects = s.fieldObjects, this._mouseState = s.mouseState, u && (this.container = this._createContainer(_)), k && (this.quadrilaterals = this._createQuadrilaterals(_));
12413
+ this.isRenderable = u, this.data = s.data, this.layer = s.layer, this.page = s.page, this.viewport = s.viewport, this.linkService = s.linkService, this.downloadManager = s.downloadManager, this.imageResourcesPath = s.imageResourcesPath, this.renderForms = s.renderForms, this.svgFactory = s.svgFactory, this.annotationStorage = s.annotationStorage, this.enableScripting = s.enableScripting, this.hasJSActions = s.hasJSActions, this._fieldObjects = s.fieldObjects, this._mouseState = s.mouseState, u && (this.container = this._createContainer(_)), x && (this.quadrilaterals = this._createQuadrilaterals(_));
12414
12414
  }
12415
12415
  _createContainer() {
12416
12416
  let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
12417
- const u = this.data, _ = this.page, k = this.viewport, L = document.createElement("section"), {
12417
+ const u = this.data, _ = this.page, x = this.viewport, L = document.createElement("section"), {
12418
12418
  width: X,
12419
12419
  height: J
12420
- } = l(u.rect), [ie, se, he, le] = k.viewBox, fe = he - ie, ve = le - se;
12420
+ } = l(u.rect), [ie, se, he, le] = x.viewBox, fe = he - ie, ve = le - se;
12421
12421
  L.setAttribute("data-annotation-id", u.id);
12422
12422
  const we = o.Util.normalizeRect([u.rect[0], _.view[3] - u.rect[1] + _.view[1], u.rect[2], _.view[3] - u.rect[3] + _.view[1]]);
12423
12423
  if (!s && u.borderStyle.width > 0) {
12424
12424
  L.style.borderWidth = `${u.borderStyle.width}px`;
12425
- const xe = u.borderStyle.horizontalCornerRadius, Ne = u.borderStyle.verticalCornerRadius;
12426
- if (xe > 0 || Ne > 0) {
12427
- const Ce = `calc(${xe}px * var(--scale-factor)) / calc(${Ne}px * var(--scale-factor))`;
12425
+ const ke = u.borderStyle.horizontalCornerRadius, Ne = u.borderStyle.verticalCornerRadius;
12426
+ if (ke > 0 || Ne > 0) {
12427
+ const Ce = `calc(${ke}px * var(--scale-factor)) / calc(${Ne}px * var(--scale-factor))`;
12428
12428
  L.style.borderRadius = Ce;
12429
12429
  } else if (this instanceof t) {
12430
12430
  const Ce = `calc(${X}px * var(--scale-factor)) / calc(${J}px * var(--scale-factor))`;
@@ -12458,7 +12458,7 @@ var Yr = xr(function(je, it) {
12458
12458
  }
12459
12459
  setRotation(s) {
12460
12460
  let u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.container;
12461
- const [_, k, L, X] = this.viewport.viewBox, J = L - _, ie = X - k, {
12461
+ const [_, x, L, X] = this.viewport.viewBox, J = L - _, ie = X - x, {
12462
12462
  width: se,
12463
12463
  height: he
12464
12464
  } = l(this.data.rect);
@@ -12466,9 +12466,9 @@ var Yr = xr(function(je, it) {
12466
12466
  s % 180 === 0 ? (le = 100 * se / J, fe = 100 * he / ie) : (le = 100 * he / J, fe = 100 * se / ie), u.style.width = `${le}%`, u.style.height = `${fe}%`, u.setAttribute("data-main-rotation", (360 - s) % 360);
12467
12467
  }
12468
12468
  get _commonActions() {
12469
- const s = (u, _, k) => {
12470
- const L = k.detail[u];
12471
- k.target.style[_] = O.ColorConverters[`${L[0]}_HTML`](L.slice(1));
12469
+ const s = (u, _, x) => {
12470
+ const L = x.detail[u];
12471
+ x.target.style[_] = O.ColorConverters[`${L[0]}_HTML`](L.slice(1));
12472
12472
  };
12473
12473
  return (0, o.shadow)(this, "_commonActions", {
12474
12474
  display: (u) => {
@@ -12530,8 +12530,8 @@ var Yr = xr(function(je, it) {
12530
12530
  }
12531
12531
  _dispatchEventFromSandbox(s, u) {
12532
12532
  const _ = this._commonActions;
12533
- for (const k of Object.keys(u.detail)) {
12534
- const L = s[k] || _[k];
12533
+ for (const x of Object.keys(u.detail)) {
12534
+ const L = s[x] || _[x];
12535
12535
  L && L(u);
12536
12536
  }
12537
12537
  }
@@ -12542,16 +12542,16 @@ var Yr = xr(function(je, it) {
12542
12542
  if (!u)
12543
12543
  return;
12544
12544
  const _ = this._commonActions;
12545
- for (const [k, L] of Object.entries(u)) {
12546
- const X = _[k];
12545
+ for (const [x, L] of Object.entries(u)) {
12546
+ const X = _[x];
12547
12547
  if (X) {
12548
12548
  const J = {
12549
12549
  detail: {
12550
- [k]: L
12550
+ [x]: L
12551
12551
  },
12552
12552
  target: s
12553
12553
  };
12554
- X(J), delete u[k];
12554
+ X(J), delete u[x];
12555
12555
  }
12556
12556
  }
12557
12557
  }
@@ -12560,8 +12560,8 @@ var Yr = xr(function(je, it) {
12560
12560
  if (!this.data.quadPoints)
12561
12561
  return null;
12562
12562
  const u = [], _ = this.data.rect;
12563
- for (const k of this.data.quadPoints)
12564
- this.data.rect = [k[2].x, k[2].y, k[1].x, k[1].y], u.push(this._createContainer(s));
12563
+ for (const x of this.data.quadPoints)
12564
+ this.data.rect = [x[2].x, x[2].y, x[1].x, x[1].y], u.push(this._createContainer(s));
12565
12565
  return this.data.rect = _, u;
12566
12566
  }
12567
12567
  _createPopup(s, u) {
@@ -12591,13 +12591,13 @@ var Yr = xr(function(je, it) {
12591
12591
  let u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
12592
12592
  const _ = [];
12593
12593
  if (this._fieldObjects) {
12594
- const k = this._fieldObjects[s];
12595
- if (k)
12594
+ const x = this._fieldObjects[s];
12595
+ if (x)
12596
12596
  for (const {
12597
12597
  page: L,
12598
12598
  id: X,
12599
12599
  exportValues: J
12600
- } of k) {
12600
+ } of x) {
12601
12601
  if (L === -1 || X === u)
12602
12602
  continue;
12603
12603
  const ie = typeof J == "string" ? J : null, se = document.querySelector(`[data-element-id="${X}"]`);
@@ -12613,15 +12613,15 @@ var Yr = xr(function(je, it) {
12613
12613
  }
12614
12614
  return _;
12615
12615
  }
12616
- for (const k of document.getElementsByName(s)) {
12616
+ for (const x of document.getElementsByName(s)) {
12617
12617
  const {
12618
12618
  id: L,
12619
12619
  exportValue: X
12620
- } = k;
12621
- L !== u && (!r.has(k) || _.push({
12620
+ } = x;
12621
+ L !== u && (!r.has(x) || _.push({
12622
12622
  id: L,
12623
12623
  exportValue: X,
12624
- domElement: k
12624
+ domElement: x
12625
12625
  }));
12626
12626
  }
12627
12627
  return _;
@@ -12649,11 +12649,11 @@ var Yr = xr(function(je, it) {
12649
12649
  linkService: u
12650
12650
  } = this, _ = document.createElement("a");
12651
12651
  _.setAttribute("data-element-id", s.id);
12652
- let k = !1;
12653
- return s.url ? (u.addLinkAttributes(_, s.url, s.newWindow), k = !0) : s.action ? (this._bindNamedAction(_, s.action), k = !0) : s.dest ? (this._bindLink(_, s.dest), k = !0) : (s.actions && (s.actions.Action || s.actions["Mouse Up"] || s.actions["Mouse Down"]) && this.enableScripting && this.hasJSActions && (this._bindJSAction(_, s), k = !0), s.resetForm ? (this._bindResetFormAction(_, s.resetForm), k = !0) : this.isTooltipOnly && !k && (this._bindLink(_, ""), k = !0)), this.quadrilaterals ? this._renderQuadrilaterals("linkAnnotation").map((L, X) => {
12652
+ let x = !1;
12653
+ return s.url ? (u.addLinkAttributes(_, s.url, s.newWindow), x = !0) : s.action ? (this._bindNamedAction(_, s.action), x = !0) : s.dest ? (this._bindLink(_, s.dest), x = !0) : (s.actions && (s.actions.Action || s.actions["Mouse Up"] || s.actions["Mouse Down"]) && this.enableScripting && this.hasJSActions && (this._bindJSAction(_, s), x = !0), s.resetForm ? (this._bindResetFormAction(_, s.resetForm), x = !0) : this.isTooltipOnly && !x && (this._bindLink(_, ""), x = !0)), this.quadrilaterals ? this._renderQuadrilaterals("linkAnnotation").map((L, X) => {
12654
12654
  const J = X === 0 ? _ : _.cloneNode();
12655
12655
  return L.append(J), L;
12656
- }) : (this.container.className = "linkAnnotation", k && this.container.append(_), this.container);
12656
+ }) : (this.container.className = "linkAnnotation", x && this.container.append(_), this.container);
12657
12657
  }
12658
12658
  _bindLink(s, u) {
12659
12659
  s.href = this.linkService.getDestinationHash(u), s.onclick = () => (u && this.linkService.goToDestination(u), !1), (u || u === "") && (s.className = "internalLink");
@@ -12664,15 +12664,15 @@ var Yr = xr(function(je, it) {
12664
12664
  _bindJSAction(s, u) {
12665
12665
  s.href = this.linkService.getAnchorUrl("");
12666
12666
  const _ = /* @__PURE__ */ new Map([["Action", "onclick"], ["Mouse Up", "onmouseup"], ["Mouse Down", "onmousedown"]]);
12667
- for (const k of Object.keys(u.actions)) {
12668
- const L = _.get(k);
12667
+ for (const x of Object.keys(u.actions)) {
12668
+ const L = _.get(x);
12669
12669
  !L || (s[L] = () => {
12670
12670
  var X;
12671
12671
  return (X = this.linkService.eventBus) === null || X === void 0 || X.dispatch("dispatcheventinsandbox", {
12672
12672
  source: this,
12673
12673
  detail: {
12674
12674
  id: u.id,
12675
- name: k
12675
+ name: x
12676
12676
  }
12677
12677
  }), !1;
12678
12678
  });
@@ -12688,13 +12688,13 @@ var Yr = xr(function(je, it) {
12688
12688
  s.onclick = () => {
12689
12689
  _ && _();
12690
12690
  const {
12691
- fields: k,
12691
+ fields: x,
12692
12692
  refs: L,
12693
12693
  include: X
12694
12694
  } = u, J = [];
12695
- if (k.length !== 0 || L.length !== 0) {
12695
+ if (x.length !== 0 || L.length !== 0) {
12696
12696
  const le = new Set(L);
12697
- for (const fe of k) {
12697
+ for (const fe of x) {
12698
12698
  const ve = this._fieldObjects[fe] || [];
12699
12699
  for (const {
12700
12700
  id: we
@@ -12766,8 +12766,8 @@ var Yr = xr(function(je, it) {
12766
12766
  }
12767
12767
  class F extends d {
12768
12768
  constructor(s) {
12769
- var u, _, k;
12770
- const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (k = s.data.richText) !== null && k !== void 0 && k.str);
12769
+ var u, _, x;
12770
+ const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (x = s.data.richText) !== null && x !== void 0 && x.str);
12771
12771
  super(s, {
12772
12772
  isRenderable: L
12773
12773
  });
@@ -12791,7 +12791,7 @@ var Yr = xr(function(je, it) {
12791
12791
  } = d.platform;
12792
12792
  return u && s.ctrlKey || _ && s.metaKey;
12793
12793
  }
12794
- _setEventListener(s, u, _, k) {
12794
+ _setEventListener(s, u, _, x) {
12795
12795
  u.includes("mouse") ? s.addEventListener(u, (L) => {
12796
12796
  var X;
12797
12797
  (X = this.linkService.eventBus) === null || X === void 0 || X.dispatch("dispatcheventinsandbox", {
@@ -12799,7 +12799,7 @@ var Yr = xr(function(je, it) {
12799
12799
  detail: {
12800
12800
  id: this.data.id,
12801
12801
  name: _,
12802
- value: k(L),
12802
+ value: x(L),
12803
12803
  shift: L.shiftKey,
12804
12804
  modifier: this._getKeyModifier(L)
12805
12805
  }
@@ -12811,15 +12811,15 @@ var Yr = xr(function(je, it) {
12811
12811
  detail: {
12812
12812
  id: this.data.id,
12813
12813
  name: _,
12814
- value: k(L)
12814
+ value: x(L)
12815
12815
  }
12816
12816
  });
12817
12817
  });
12818
12818
  }
12819
12819
  _setEventListeners(s, u, _) {
12820
12820
  for (const [L, X] of u) {
12821
- var k;
12822
- (X === "Action" || (k = this.data.actions) !== null && k !== void 0 && k[X]) && this._setEventListener(s, L, X, _);
12821
+ var x;
12822
+ (X === "Action" || (x = this.data.actions) !== null && x !== void 0 && x[X]) && this._setEventListener(s, L, X, _);
12823
12823
  }
12824
12824
  }
12825
12825
  _setBackgroundColor(s) {
@@ -12829,14 +12829,14 @@ var Yr = xr(function(je, it) {
12829
12829
  _setTextStyle(s) {
12830
12830
  const u = ["left", "center", "right"], {
12831
12831
  fontColor: _
12832
- } = this.data.defaultAppearanceData, k = this.data.defaultAppearanceData.fontSize || D, L = s.style;
12832
+ } = this.data.defaultAppearanceData, x = this.data.defaultAppearanceData.fontSize || D, L = s.style;
12833
12833
  let X;
12834
12834
  if (this.data.multiLine) {
12835
- const J = Math.abs(this.data.rect[3] - this.data.rect[1]), ie = Math.round(J / (o.LINE_FACTOR * k)) || 1, se = J / ie;
12836
- X = Math.min(k, Math.round(se / o.LINE_FACTOR));
12835
+ const J = Math.abs(this.data.rect[3] - this.data.rect[1]), ie = Math.round(J / (o.LINE_FACTOR * x)) || 1, se = J / ie;
12836
+ X = Math.min(x, Math.round(se / o.LINE_FACTOR));
12837
12837
  } else {
12838
12838
  const J = Math.abs(this.data.rect[3] - this.data.rect[1]);
12839
- X = Math.min(k, Math.round(J / o.LINE_FACTOR));
12839
+ X = Math.min(x, Math.round(J / o.LINE_FACTOR));
12840
12840
  }
12841
12841
  L.fontSize = `calc(${X}px * var(--scale-factor))`, L.color = o.Util.makeHexColor(_[0], _[1], _[2]), this.data.textAlignment !== null && (L.textAlign = u[this.data.textAlignment]);
12842
12842
  }
@@ -12851,11 +12851,11 @@ var Yr = xr(function(je, it) {
12851
12851
  isRenderable: u
12852
12852
  });
12853
12853
  }
12854
- setPropertyOnSiblings(s, u, _, k) {
12854
+ setPropertyOnSiblings(s, u, _, x) {
12855
12855
  const L = this.annotationStorage;
12856
12856
  for (const X of this._getElementsByName(s.name, s.id))
12857
12857
  X.domElement && (X.domElement[u] = _), L.setValue(X.id, {
12858
- [k]: _
12858
+ [x]: _
12859
12859
  });
12860
12860
  }
12861
12861
  render() {
@@ -12892,7 +12892,7 @@ var Yr = xr(function(je, it) {
12892
12892
  le != null && (he.target.value = le), he.target.scrollLeft = 0;
12893
12893
  };
12894
12894
  if (this.enableScripting && this.hasJSActions) {
12895
- var k;
12895
+ var x;
12896
12896
  _.addEventListener("focus", (le) => {
12897
12897
  ie.userValue && (le.target.value = ie.userValue), ie.valueOnFocus = le.target.value;
12898
12898
  }), _.addEventListener("updatefromsandbox", (le) => {
@@ -12919,15 +12919,15 @@ var Yr = xr(function(je, it) {
12919
12919
  const {
12920
12920
  charLimit: Ee
12921
12921
  } = ve.detail, {
12922
- target: xe
12922
+ target: ke
12923
12923
  } = ve;
12924
12924
  if (Ee === 0) {
12925
- xe.removeAttribute("maxLength");
12925
+ ke.removeAttribute("maxLength");
12926
12926
  return;
12927
12927
  }
12928
- xe.setAttribute("maxLength", Ee);
12928
+ ke.setAttribute("maxLength", Ee);
12929
12929
  let Ne = ie.userValue;
12930
- !Ne || Ne.length <= Ee || (Ne = Ne.slice(0, Ee), xe.value = ie.userValue = Ne, s.setValue(u, {
12930
+ !Ne || Ne.length <= Ee || (Ne = Ne.slice(0, Ee), ke.value = ie.userValue = Ne, s.setValue(u, {
12931
12931
  value: Ne
12932
12932
  }), (we = this.linkService.eventBus) === null || we === void 0 || we.dispatch("dispatcheventinsandbox", {
12933
12933
  source: this,
@@ -12937,8 +12937,8 @@ var Yr = xr(function(je, it) {
12937
12937
  value: Ne,
12938
12938
  willCommit: !0,
12939
12939
  commitKey: 1,
12940
- selStart: xe.selectionStart,
12941
- selEnd: xe.selectionEnd
12940
+ selStart: ke.selectionStart,
12941
+ selEnd: ke.selectionEnd
12942
12942
  }
12943
12943
  }));
12944
12944
  }
@@ -12986,33 +12986,33 @@ var Yr = xr(function(je, it) {
12986
12986
  });
12987
12987
  }
12988
12988
  he(le);
12989
- }), (k = this.data.actions) !== null && k !== void 0 && k.Keystroke && _.addEventListener("beforeinput", (le) => {
12989
+ }), (x = this.data.actions) !== null && x !== void 0 && x.Keystroke && _.addEventListener("beforeinput", (le) => {
12990
12990
  var fe;
12991
12991
  const {
12992
12992
  data: ve,
12993
12993
  target: we
12994
12994
  } = le, {
12995
12995
  value: Ee,
12996
- selectionStart: xe,
12996
+ selectionStart: ke,
12997
12997
  selectionEnd: Ne
12998
12998
  } = we;
12999
- let Oe = xe, Ce = Ne;
12999
+ let Oe = ke, Ce = Ne;
13000
13000
  switch (le.inputType) {
13001
13001
  case "deleteWordBackward": {
13002
- const V = Ee.substring(0, xe).match(/\w*[^\w]*$/);
13002
+ const V = Ee.substring(0, ke).match(/\w*[^\w]*$/);
13003
13003
  V && (Oe -= V[0].length);
13004
13004
  break;
13005
13005
  }
13006
13006
  case "deleteWordForward": {
13007
- const V = Ee.substring(xe).match(/^[^\w]*\w*/);
13007
+ const V = Ee.substring(ke).match(/^[^\w]*\w*/);
13008
13008
  V && (Ce += V[0].length);
13009
13009
  break;
13010
13010
  }
13011
13011
  case "deleteContentBackward":
13012
- xe === Ne && (Oe -= 1);
13012
+ ke === Ne && (Oe -= 1);
13013
13013
  break;
13014
13014
  case "deleteContentForward":
13015
- xe === Ne && (Ce += 1);
13015
+ ke === Ne && (Ce += 1);
13016
13016
  break;
13017
13017
  }
13018
13018
  le.preventDefault(), (fe = this.linkService.eventBus) === null || fe === void 0 || fe.dispatch("dispatcheventinsandbox", {
@@ -13046,14 +13046,14 @@ var Yr = xr(function(je, it) {
13046
13046
  }
13047
13047
  render() {
13048
13048
  const s = this.annotationStorage, u = this.data, _ = u.id;
13049
- let k = s.getValue(_, {
13049
+ let x = s.getValue(_, {
13050
13050
  value: u.exportValue === u.fieldValue
13051
13051
  }).value;
13052
- typeof k == "string" && (k = k !== "Off", s.setValue(_, {
13053
- value: k
13052
+ typeof x == "string" && (x = x !== "Off", s.setValue(_, {
13053
+ value: x
13054
13054
  })), this.container.className = "buttonWidgetAnnotation checkBox";
13055
13055
  const L = document.createElement("input");
13056
- return r.add(L), L.setAttribute("data-element-id", _), L.disabled = u.readOnly, this._setRequired(L, this.data.required), L.type = "checkbox", L.name = u.fieldName, k && L.setAttribute("checked", !0), L.setAttribute("exportValue", u.exportValue), L.tabIndex = y, L.addEventListener("change", (X) => {
13056
+ return r.add(L), L.setAttribute("data-element-id", _), L.disabled = u.readOnly, this._setRequired(L, this.data.required), L.type = "checkbox", L.name = u.fieldName, x && L.setAttribute("checked", !0), L.setAttribute("exportValue", u.exportValue), L.tabIndex = y, L.addEventListener("change", (X) => {
13057
13057
  const {
13058
13058
  name: J,
13059
13059
  checked: ie
@@ -13091,14 +13091,14 @@ var Yr = xr(function(je, it) {
13091
13091
  render() {
13092
13092
  this.container.className = "buttonWidgetAnnotation radioButton";
13093
13093
  const s = this.annotationStorage, u = this.data, _ = u.id;
13094
- let k = s.getValue(_, {
13094
+ let x = s.getValue(_, {
13095
13095
  value: u.fieldValue === u.buttonValue
13096
13096
  }).value;
13097
- typeof k == "string" && (k = k !== u.buttonValue, s.setValue(_, {
13098
- value: k
13097
+ typeof x == "string" && (x = x !== u.buttonValue, s.setValue(_, {
13098
+ value: x
13099
13099
  }));
13100
13100
  const L = document.createElement("input");
13101
- if (r.add(L), L.setAttribute("data-element-id", _), L.disabled = u.readOnly, this._setRequired(L, this.data.required), L.type = "radio", L.name = u.fieldName, k && L.setAttribute("checked", !0), L.tabIndex = y, L.addEventListener("change", (X) => {
13101
+ if (r.add(L), L.setAttribute("data-element-id", _), L.disabled = u.readOnly, this._setRequired(L, this.data.required), L.type = "radio", L.name = u.fieldName, x && L.setAttribute("checked", !0), L.tabIndex = y, L.addEventListener("change", (X) => {
13102
13102
  const {
13103
13103
  name: J,
13104
13104
  checked: ie
@@ -13158,24 +13158,24 @@ var Yr = xr(function(je, it) {
13158
13158
  this.container.className = "choiceWidgetAnnotation";
13159
13159
  const s = this.annotationStorage, u = this.data.id, _ = s.getValue(u, {
13160
13160
  value: this.data.fieldValue
13161
- }), k = document.createElement("select");
13162
- r.add(k), k.setAttribute("data-element-id", u), k.disabled = this.data.readOnly, this._setRequired(k, this.data.required), k.name = this.data.fieldName, k.tabIndex = y;
13161
+ }), x = document.createElement("select");
13162
+ r.add(x), x.setAttribute("data-element-id", u), x.disabled = this.data.readOnly, this._setRequired(x, this.data.required), x.name = this.data.fieldName, x.tabIndex = y;
13163
13163
  let L = this.data.combo && this.data.options.length > 0;
13164
- this.data.combo || (k.size = this.data.options.length, this.data.multiSelect && (k.multiple = !0)), k.addEventListener("resetform", (se) => {
13164
+ this.data.combo || (x.size = this.data.options.length, this.data.multiSelect && (x.multiple = !0)), x.addEventListener("resetform", (se) => {
13165
13165
  const he = this.data.defaultFieldValue;
13166
- for (const le of k.options)
13166
+ for (const le of x.options)
13167
13167
  le.selected = le.value === he;
13168
13168
  });
13169
13169
  for (const se of this.data.options) {
13170
13170
  const he = document.createElement("option");
13171
- he.textContent = se.displayValue, he.value = se.exportValue, _.value.includes(se.exportValue) && (he.setAttribute("selected", !0), L = !1), k.append(he);
13171
+ he.textContent = se.displayValue, he.value = se.exportValue, _.value.includes(se.exportValue) && (he.setAttribute("selected", !0), L = !1), x.append(he);
13172
13172
  }
13173
13173
  let X = null;
13174
13174
  if (L) {
13175
13175
  const se = document.createElement("option");
13176
- se.value = " ", se.setAttribute("hidden", !0), se.setAttribute("selected", !0), k.prepend(se), X = () => {
13177
- se.remove(), k.removeEventListener("input", X), X = null;
13178
- }, k.addEventListener("input", X);
13176
+ se.value = " ", se.setAttribute("hidden", !0), se.setAttribute("selected", !0), x.prepend(se), X = () => {
13177
+ se.remove(), x.removeEventListener("input", X), X = null;
13178
+ }, x.addEventListener("input", X);
13179
13179
  }
13180
13180
  const J = (se, he) => {
13181
13181
  const le = he ? "value" : "textContent", fe = se.target.options;
@@ -13187,31 +13187,31 @@ var Yr = xr(function(je, it) {
13187
13187
  exportValue: le.value
13188
13188
  }));
13189
13189
  };
13190
- return this.enableScripting && this.hasJSActions ? (k.addEventListener("updatefromsandbox", (se) => {
13190
+ return this.enableScripting && this.hasJSActions ? (x.addEventListener("updatefromsandbox", (se) => {
13191
13191
  const he = {
13192
13192
  value(le) {
13193
13193
  var fe;
13194
13194
  (fe = X) === null || fe === void 0 || fe();
13195
13195
  const ve = le.detail.value, we = new Set(Array.isArray(ve) ? ve : [ve]);
13196
- for (const Ee of k.options)
13196
+ for (const Ee of x.options)
13197
13197
  Ee.selected = we.has(Ee.value);
13198
13198
  s.setValue(u, {
13199
13199
  value: J(le, !0)
13200
13200
  });
13201
13201
  },
13202
13202
  multipleSelection(le) {
13203
- k.multiple = !0;
13203
+ x.multiple = !0;
13204
13204
  },
13205
13205
  remove(le) {
13206
- const fe = k.options, ve = le.detail.remove;
13207
- fe[ve].selected = !1, k.remove(ve), fe.length > 0 && Array.prototype.findIndex.call(fe, (Ee) => Ee.selected) === -1 && (fe[0].selected = !0), s.setValue(u, {
13206
+ const fe = x.options, ve = le.detail.remove;
13207
+ fe[ve].selected = !1, x.remove(ve), fe.length > 0 && Array.prototype.findIndex.call(fe, (Ee) => Ee.selected) === -1 && (fe[0].selected = !0), s.setValue(u, {
13208
13208
  value: J(le, !0),
13209
13209
  items: ie(le)
13210
13210
  });
13211
13211
  },
13212
13212
  clear(le) {
13213
- for (; k.length !== 0; )
13214
- k.remove(0);
13213
+ for (; x.length !== 0; )
13214
+ x.remove(0);
13215
13215
  s.setValue(u, {
13216
13216
  value: null,
13217
13217
  items: []
@@ -13222,8 +13222,8 @@ var Yr = xr(function(je, it) {
13222
13222
  index: fe,
13223
13223
  displayValue: ve,
13224
13224
  exportValue: we
13225
- } = le.detail.insert, Ee = k.children[fe], xe = document.createElement("option");
13226
- xe.textContent = ve, xe.value = we, Ee ? Ee.before(xe) : k.append(xe), s.setValue(u, {
13225
+ } = le.detail.insert, Ee = x.children[fe], ke = document.createElement("option");
13226
+ ke.textContent = ve, ke.value = we, Ee ? Ee.before(ke) : x.append(ke), s.setValue(u, {
13227
13227
  value: J(le, !0),
13228
13228
  items: ie(le)
13229
13229
  });
@@ -13232,16 +13232,16 @@ var Yr = xr(function(je, it) {
13232
13232
  const {
13233
13233
  items: fe
13234
13234
  } = le.detail;
13235
- for (; k.length !== 0; )
13236
- k.remove(0);
13235
+ for (; x.length !== 0; )
13236
+ x.remove(0);
13237
13237
  for (const ve of fe) {
13238
13238
  const {
13239
13239
  displayValue: we,
13240
13240
  exportValue: Ee
13241
- } = ve, xe = document.createElement("option");
13242
- xe.textContent = we, xe.value = Ee, k.append(xe);
13241
+ } = ve, ke = document.createElement("option");
13242
+ ke.textContent = we, ke.value = Ee, x.append(ke);
13243
13243
  }
13244
- k.options.length > 0 && (k.options[0].selected = !0), s.setValue(u, {
13244
+ x.options.length > 0 && (x.options[0].selected = !0), s.setValue(u, {
13245
13245
  value: J(le, !0),
13246
13246
  items: ie(le)
13247
13247
  });
@@ -13259,7 +13259,7 @@ var Yr = xr(function(je, it) {
13259
13259
  }
13260
13260
  };
13261
13261
  this._dispatchEventFromSandbox(he, se);
13262
- }), k.addEventListener("input", (se) => {
13262
+ }), x.addEventListener("input", (se) => {
13263
13263
  var he;
13264
13264
  const le = J(se, !0), fe = J(se, !1);
13265
13265
  s.setValue(u, {
@@ -13276,17 +13276,17 @@ var Yr = xr(function(je, it) {
13276
13276
  keyDown: !1
13277
13277
  }
13278
13278
  });
13279
- }), this._setEventListeners(k, [["focus", "Focus"], ["blur", "Blur"], ["mousedown", "Mouse Down"], ["mouseenter", "Mouse Enter"], ["mouseleave", "Mouse Exit"], ["mouseup", "Mouse Up"], ["input", "Action"]], (se) => se.target.checked)) : k.addEventListener("input", function(se) {
13279
+ }), this._setEventListeners(x, [["focus", "Focus"], ["blur", "Blur"], ["mousedown", "Mouse Down"], ["mouseenter", "Mouse Enter"], ["mouseleave", "Mouse Exit"], ["mouseup", "Mouse Up"], ["input", "Action"]], (se) => se.target.checked)) : x.addEventListener("input", function(se) {
13280
13280
  s.setValue(u, {
13281
13281
  value: J(se, !0)
13282
13282
  });
13283
- }), this.data.combo && this._setTextStyle(k), this._setBackgroundColor(k), this._setDefaultPropertiesFromJS(k), this.container.append(k), this.container;
13283
+ }), this.data.combo && this._setTextStyle(x), this._setBackgroundColor(x), this._setDefaultPropertiesFromJS(x), this.container.append(x), this.container;
13284
13284
  }
13285
13285
  }
13286
13286
  class g extends d {
13287
13287
  constructor(s) {
13288
- var u, _, k;
13289
- const L = !!((u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (k = s.data.richText) !== null && k !== void 0 && k.str);
13288
+ var u, _, x;
13289
+ const L = !!((u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (x = s.data.richText) !== null && x !== void 0 && x.str);
13290
13290
  super(s, {
13291
13291
  isRenderable: L
13292
13292
  });
@@ -13298,7 +13298,7 @@ var Yr = xr(function(je, it) {
13298
13298
  const u = `[data-annotation-id="${this.data.parentId}"]`, _ = this.layer.querySelectorAll(u);
13299
13299
  if (_.length === 0)
13300
13300
  return this.container;
13301
- const k = new E({
13301
+ const x = new E({
13302
13302
  container: this.container,
13303
13303
  trigger: Array.from(_),
13304
13304
  color: this.data.color,
@@ -13307,7 +13307,7 @@ var Yr = xr(function(je, it) {
13307
13307
  contentsObj: this.data.contentsObj,
13308
13308
  richText: this.data.richText
13309
13309
  }), L = this.page, X = o.Util.normalizeRect([this.data.parentRect[0], L.view[3] - this.data.parentRect[1] + L.view[1], this.data.parentRect[2], L.view[3] - this.data.parentRect[3] + L.view[1]]), J = X[0] + this.data.parentRect[2] - this.data.parentRect[0], ie = X[1], [se, he, le, fe] = this.viewport.viewBox, ve = le - se, we = fe - he;
13310
- return this.container.style.left = `${100 * (J - se) / ve}%`, this.container.style.top = `${100 * (ie - he) / we}%`, this.container.append(k.render()), this.container;
13310
+ return this.container.style.left = `${100 * (J - se) / ve}%`, this.container.style.top = `${100 * (ie - he) / we}%`, this.container.append(x.render()), this.container;
13311
13311
  }
13312
13312
  }
13313
13313
  class E {
@@ -13316,8 +13316,8 @@ var Yr = xr(function(je, it) {
13316
13316
  }
13317
13317
  render() {
13318
13318
  var s, u;
13319
- const k = document.createElement("div");
13320
- k.className = "popupWrapper", this.hideElement = this.hideWrapper ? k : this.container, this.hideElement.hidden = !0;
13319
+ const x = document.createElement("div");
13320
+ x.className = "popupWrapper", this.hideElement = this.hideWrapper ? x : this.container, this.hideElement.hidden = !0;
13321
13321
  const L = document.createElement("div");
13322
13322
  L.className = "popup";
13323
13323
  const X = this.color;
@@ -13348,21 +13348,21 @@ var Yr = xr(function(je, it) {
13348
13348
  Array.isArray(this.trigger) || (this.trigger = [this.trigger]);
13349
13349
  for (const se of this.trigger)
13350
13350
  se.addEventListener("click", this._toggle.bind(this)), se.addEventListener("mouseover", this._show.bind(this, !1)), se.addEventListener("mouseout", this._hide.bind(this, !1));
13351
- return L.addEventListener("click", this._hide.bind(this, !0)), k.append(L), k;
13351
+ return L.addEventListener("click", this._hide.bind(this, !0)), x.append(L), x;
13352
13352
  }
13353
13353
  _formatContents(s) {
13354
13354
  let {
13355
13355
  str: u,
13356
13356
  dir: _
13357
13357
  } = s;
13358
- const k = document.createElement("p");
13359
- k.className = "popupContent", k.dir = _;
13358
+ const x = document.createElement("p");
13359
+ x.className = "popupContent", x.dir = _;
13360
13360
  const L = u.split(/(?:\r\n?|\n)/);
13361
13361
  for (let X = 0, J = L.length; X < J; ++X) {
13362
13362
  const ie = L[X];
13363
- k.append(document.createTextNode(ie)), X < J - 1 && k.append(document.createElement("br"));
13363
+ x.append(document.createTextNode(ie)), X < J - 1 && x.append(document.createElement("br"));
13364
13364
  }
13365
- return k;
13365
+ return x;
13366
13366
  }
13367
13367
  _toggle() {
13368
13368
  this.pinned ? this._hide(!0) : this._show(!0);
@@ -13376,8 +13376,8 @@ var Yr = xr(function(je, it) {
13376
13376
  }
13377
13377
  class B extends d {
13378
13378
  constructor(s) {
13379
- var u, _, k;
13380
- const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (k = s.data.richText) !== null && k !== void 0 && k.str);
13379
+ var u, _, x;
13380
+ const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (x = s.data.richText) !== null && x !== void 0 && x.str);
13381
13381
  super(s, {
13382
13382
  isRenderable: L,
13383
13383
  ignoreBorder: !0
@@ -13396,10 +13396,10 @@ var Yr = xr(function(je, it) {
13396
13396
  return this.data.hasPopup || this._createPopup(null, this.data), this.container;
13397
13397
  }
13398
13398
  }
13399
- class x extends d {
13399
+ class k extends d {
13400
13400
  constructor(s) {
13401
- var u, _, k;
13402
- const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (k = s.data.richText) !== null && k !== void 0 && k.str);
13401
+ var u, _, x;
13402
+ const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (x = s.data.richText) !== null && x !== void 0 && x.str);
13403
13403
  super(s, {
13404
13404
  isRenderable: L,
13405
13405
  ignoreBorder: !0
@@ -13410,14 +13410,14 @@ var Yr = xr(function(je, it) {
13410
13410
  const s = this.data, {
13411
13411
  width: u,
13412
13412
  height: _
13413
- } = l(s.rect), k = this.svgFactory.create(u, _, !0), L = this.svgFactory.createElement("svg:line");
13414
- return L.setAttribute("x1", s.rect[2] - s.lineCoordinates[0]), L.setAttribute("y1", s.rect[3] - s.lineCoordinates[1]), L.setAttribute("x2", s.rect[2] - s.lineCoordinates[2]), L.setAttribute("y2", s.rect[3] - s.lineCoordinates[3]), L.setAttribute("stroke-width", s.borderStyle.width || 1), L.setAttribute("stroke", "transparent"), L.setAttribute("fill", "transparent"), k.append(L), this.container.append(k), this._createPopup(L, s), this.container;
13413
+ } = l(s.rect), x = this.svgFactory.create(u, _, !0), L = this.svgFactory.createElement("svg:line");
13414
+ return L.setAttribute("x1", s.rect[2] - s.lineCoordinates[0]), L.setAttribute("y1", s.rect[3] - s.lineCoordinates[1]), L.setAttribute("x2", s.rect[2] - s.lineCoordinates[2]), L.setAttribute("y2", s.rect[3] - s.lineCoordinates[3]), L.setAttribute("stroke-width", s.borderStyle.width || 1), L.setAttribute("stroke", "transparent"), L.setAttribute("fill", "transparent"), x.append(L), this.container.append(x), this._createPopup(L, s), this.container;
13415
13415
  }
13416
13416
  }
13417
13417
  class ne extends d {
13418
13418
  constructor(s) {
13419
- var u, _, k;
13420
- const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (k = s.data.richText) !== null && k !== void 0 && k.str);
13419
+ var u, _, x;
13420
+ const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (x = s.data.richText) !== null && x !== void 0 && x.str);
13421
13421
  super(s, {
13422
13422
  isRenderable: L,
13423
13423
  ignoreBorder: !0
@@ -13428,14 +13428,14 @@ var Yr = xr(function(je, it) {
13428
13428
  const s = this.data, {
13429
13429
  width: u,
13430
13430
  height: _
13431
- } = l(s.rect), k = this.svgFactory.create(u, _, !0), L = s.borderStyle.width, X = this.svgFactory.createElement("svg:rect");
13432
- return X.setAttribute("x", L / 2), X.setAttribute("y", L / 2), X.setAttribute("width", u - L), X.setAttribute("height", _ - L), X.setAttribute("stroke-width", L || 1), X.setAttribute("stroke", "transparent"), X.setAttribute("fill", "transparent"), k.append(X), this.container.append(k), this._createPopup(X, s), this.container;
13431
+ } = l(s.rect), x = this.svgFactory.create(u, _, !0), L = s.borderStyle.width, X = this.svgFactory.createElement("svg:rect");
13432
+ return X.setAttribute("x", L / 2), X.setAttribute("y", L / 2), X.setAttribute("width", u - L), X.setAttribute("height", _ - L), X.setAttribute("stroke-width", L || 1), X.setAttribute("stroke", "transparent"), X.setAttribute("fill", "transparent"), x.append(X), this.container.append(x), this._createPopup(X, s), this.container;
13433
13433
  }
13434
13434
  }
13435
13435
  class q extends d {
13436
13436
  constructor(s) {
13437
- var u, _, k;
13438
- const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (k = s.data.richText) !== null && k !== void 0 && k.str);
13437
+ var u, _, x;
13438
+ const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (x = s.data.richText) !== null && x !== void 0 && x.str);
13439
13439
  super(s, {
13440
13440
  isRenderable: L,
13441
13441
  ignoreBorder: !0
@@ -13446,14 +13446,14 @@ var Yr = xr(function(je, it) {
13446
13446
  const s = this.data, {
13447
13447
  width: u,
13448
13448
  height: _
13449
- } = l(s.rect), k = this.svgFactory.create(u, _, !0), L = s.borderStyle.width, X = this.svgFactory.createElement("svg:ellipse");
13450
- return X.setAttribute("cx", u / 2), X.setAttribute("cy", _ / 2), X.setAttribute("rx", u / 2 - L / 2), X.setAttribute("ry", _ / 2 - L / 2), X.setAttribute("stroke-width", L || 1), X.setAttribute("stroke", "transparent"), X.setAttribute("fill", "transparent"), k.append(X), this.container.append(k), this._createPopup(X, s), this.container;
13449
+ } = l(s.rect), x = this.svgFactory.create(u, _, !0), L = s.borderStyle.width, X = this.svgFactory.createElement("svg:ellipse");
13450
+ return X.setAttribute("cx", u / 2), X.setAttribute("cy", _ / 2), X.setAttribute("rx", u / 2 - L / 2), X.setAttribute("ry", _ / 2 - L / 2), X.setAttribute("stroke-width", L || 1), X.setAttribute("stroke", "transparent"), X.setAttribute("fill", "transparent"), x.append(X), this.container.append(x), this._createPopup(X, s), this.container;
13451
13451
  }
13452
13452
  }
13453
13453
  class re extends d {
13454
13454
  constructor(s) {
13455
- var u, _, k;
13456
- const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (k = s.data.richText) !== null && k !== void 0 && k.str);
13455
+ var u, _, x;
13456
+ const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (x = s.data.richText) !== null && x !== void 0 && x.str);
13457
13457
  super(s, {
13458
13458
  isRenderable: L,
13459
13459
  ignoreBorder: !0
@@ -13464,7 +13464,7 @@ var Yr = xr(function(je, it) {
13464
13464
  const s = this.data, {
13465
13465
  width: u,
13466
13466
  height: _
13467
- } = l(s.rect), k = this.svgFactory.create(u, _, !0);
13467
+ } = l(s.rect), x = this.svgFactory.create(u, _, !0);
13468
13468
  let L = [];
13469
13469
  for (const J of s.vertices) {
13470
13470
  const ie = J.x - s.rect[0], se = s.rect[3] - J.y;
@@ -13472,7 +13472,7 @@ var Yr = xr(function(je, it) {
13472
13472
  }
13473
13473
  L = L.join(" ");
13474
13474
  const X = this.svgFactory.createElement(this.svgElementName);
13475
- return X.setAttribute("points", L), X.setAttribute("stroke-width", s.borderStyle.width || 1), X.setAttribute("stroke", "transparent"), X.setAttribute("fill", "transparent"), k.append(X), this.container.append(k), this._createPopup(X, s), this.container;
13475
+ return X.setAttribute("points", L), X.setAttribute("stroke-width", s.borderStyle.width || 1), X.setAttribute("stroke", "transparent"), X.setAttribute("fill", "transparent"), x.append(X), this.container.append(x), this._createPopup(X, s), this.container;
13476
13476
  }
13477
13477
  }
13478
13478
  class Z extends re {
@@ -13482,8 +13482,8 @@ var Yr = xr(function(je, it) {
13482
13482
  }
13483
13483
  class z extends d {
13484
13484
  constructor(s) {
13485
- var u, _, k;
13486
- const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (k = s.data.richText) !== null && k !== void 0 && k.str);
13485
+ var u, _, x;
13486
+ const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (x = s.data.richText) !== null && x !== void 0 && x.str);
13487
13487
  super(s, {
13488
13488
  isRenderable: L,
13489
13489
  ignoreBorder: !0
@@ -13495,8 +13495,8 @@ var Yr = xr(function(je, it) {
13495
13495
  }
13496
13496
  class G extends d {
13497
13497
  constructor(s) {
13498
- var u, _, k;
13499
- const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (k = s.data.richText) !== null && k !== void 0 && k.str);
13498
+ var u, _, x;
13499
+ const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (x = s.data.richText) !== null && x !== void 0 && x.str);
13500
13500
  super(s, {
13501
13501
  isRenderable: L,
13502
13502
  ignoreBorder: !0
@@ -13507,7 +13507,7 @@ var Yr = xr(function(je, it) {
13507
13507
  const s = this.data, {
13508
13508
  width: u,
13509
13509
  height: _
13510
- } = l(s.rect), k = this.svgFactory.create(u, _, !0);
13510
+ } = l(s.rect), x = this.svgFactory.create(u, _, !0);
13511
13511
  for (const L of s.inkLists) {
13512
13512
  let X = [];
13513
13513
  for (const ie of L) {
@@ -13516,15 +13516,15 @@ var Yr = xr(function(je, it) {
13516
13516
  }
13517
13517
  X = X.join(" ");
13518
13518
  const J = this.svgFactory.createElement(this.svgElementName);
13519
- J.setAttribute("points", X), J.setAttribute("stroke-width", s.borderStyle.width || 1), J.setAttribute("stroke", "transparent"), J.setAttribute("fill", "transparent"), this._createPopup(J, s), k.append(J);
13519
+ J.setAttribute("points", X), J.setAttribute("stroke-width", s.borderStyle.width || 1), J.setAttribute("stroke", "transparent"), J.setAttribute("fill", "transparent"), this._createPopup(J, s), x.append(J);
13520
13520
  }
13521
- return this.container.append(k), this.container;
13521
+ return this.container.append(x), this.container;
13522
13522
  }
13523
13523
  }
13524
13524
  class W extends d {
13525
13525
  constructor(s) {
13526
- var u, _, k;
13527
- const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (k = s.data.richText) !== null && k !== void 0 && k.str);
13526
+ var u, _, x;
13527
+ const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (x = s.data.richText) !== null && x !== void 0 && x.str);
13528
13528
  super(s, {
13529
13529
  isRenderable: L,
13530
13530
  ignoreBorder: !0,
@@ -13537,8 +13537,8 @@ var Yr = xr(function(je, it) {
13537
13537
  }
13538
13538
  class I extends d {
13539
13539
  constructor(s) {
13540
- var u, _, k;
13541
- const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (k = s.data.richText) !== null && k !== void 0 && k.str);
13540
+ var u, _, x;
13541
+ const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (x = s.data.richText) !== null && x !== void 0 && x.str);
13542
13542
  super(s, {
13543
13543
  isRenderable: L,
13544
13544
  ignoreBorder: !0,
@@ -13551,8 +13551,8 @@ var Yr = xr(function(je, it) {
13551
13551
  }
13552
13552
  class ee extends d {
13553
13553
  constructor(s) {
13554
- var u, _, k;
13555
- const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (k = s.data.richText) !== null && k !== void 0 && k.str);
13554
+ var u, _, x;
13555
+ const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (x = s.data.richText) !== null && x !== void 0 && x.str);
13556
13556
  super(s, {
13557
13557
  isRenderable: L,
13558
13558
  ignoreBorder: !0,
@@ -13565,8 +13565,8 @@ var Yr = xr(function(je, it) {
13565
13565
  }
13566
13566
  class de extends d {
13567
13567
  constructor(s) {
13568
- var u, _, k;
13569
- const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (k = s.data.richText) !== null && k !== void 0 && k.str);
13568
+ var u, _, x;
13569
+ const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (x = s.data.richText) !== null && x !== void 0 && x.str);
13570
13570
  super(s, {
13571
13571
  isRenderable: L,
13572
13572
  ignoreBorder: !0,
@@ -13579,8 +13579,8 @@ var Yr = xr(function(je, it) {
13579
13579
  }
13580
13580
  class ye extends d {
13581
13581
  constructor(s) {
13582
- var u, _, k;
13583
- const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (k = s.data.richText) !== null && k !== void 0 && k.str);
13582
+ var u, _, x;
13583
+ const L = !!(s.data.hasPopup || (u = s.data.titleObj) !== null && u !== void 0 && u.str || (_ = s.data.contentsObj) !== null && _ !== void 0 && _.str || (x = s.data.richText) !== null && x !== void 0 && x.str);
13584
13584
  super(s, {
13585
13585
  isRenderable: L,
13586
13586
  ignoreBorder: !0
@@ -13598,12 +13598,12 @@ var Yr = xr(function(je, it) {
13598
13598
  });
13599
13599
  const {
13600
13600
  filename: _,
13601
- content: k
13601
+ content: x
13602
13602
  } = this.data.file;
13603
- this.filename = (0, f.getFilenameFromUrl)(_), this.content = k, (u = this.linkService.eventBus) === null || u === void 0 || u.dispatch("fileattachmentannotation", {
13603
+ this.filename = (0, f.getFilenameFromUrl)(_), this.content = x, (u = this.linkService.eventBus) === null || u === void 0 || u.dispatch("fileattachmentannotation", {
13604
13604
  source: this,
13605
13605
  filename: _,
13606
- content: k
13606
+ content: x
13607
13607
  });
13608
13608
  }
13609
13609
  render() {
@@ -13622,10 +13622,10 @@ var Yr = xr(function(je, it) {
13622
13622
  const {
13623
13623
  annotations: u,
13624
13624
  div: _,
13625
- viewport: k,
13625
+ viewport: x,
13626
13626
  accessibilityManager: L
13627
13627
  } = s;
13628
- T(this, Y, S).call(this, _, k);
13628
+ T(this, Y, S).call(this, _, x);
13629
13629
  let X = 0;
13630
13630
  for (const J of u) {
13631
13631
  if (J.annotationType !== o.AnnotationType.POPUP) {
@@ -13640,7 +13640,7 @@ var Yr = xr(function(je, it) {
13640
13640
  data: J,
13641
13641
  layer: _,
13642
13642
  page: s.page,
13643
- viewport: k,
13643
+ viewport: x,
13644
13644
  linkService: s.linkService,
13645
13645
  downloadManager: s.downloadManager,
13646
13646
  imageResourcesPath: s.imageResourcesPath || "",
@@ -13669,37 +13669,37 @@ var Yr = xr(function(je, it) {
13669
13669
  const {
13670
13670
  annotationCanvasMap: u,
13671
13671
  div: _,
13672
- viewport: k
13672
+ viewport: x
13673
13673
  } = s;
13674
- T(this, Y, S).call(this, _, k), T(this, Y, N).call(this, _, u), _.hidden = !1;
13674
+ T(this, Y, S).call(this, _, x), T(this, Y, N).call(this, _, u), _.hidden = !1;
13675
13675
  }
13676
13676
  }
13677
13677
  v.AnnotationLayer = Y;
13678
13678
  function C(j, s, u, _) {
13679
- const k = j.firstChild || j;
13680
- k.id = `${f.AnnotationPrefix}${s}`, u.append(j), _ == null || _.moveElementInDOM(u, j, k, !1);
13679
+ const x = j.firstChild || j;
13680
+ x.id = `${f.AnnotationPrefix}${s}`, u.append(j), _ == null || _.moveElementInDOM(u, j, x, !1);
13681
13681
  }
13682
13682
  function S(j, s) {
13683
13683
  let {
13684
13684
  width: u,
13685
13685
  height: _,
13686
- rotation: k
13686
+ rotation: x
13687
13687
  } = s;
13688
13688
  const {
13689
13689
  style: L
13690
- } = j, X = k % 180 !== 0, J = Math.floor(u) + "px", ie = Math.floor(_) + "px";
13691
- L.width = X ? ie : J, L.height = X ? J : ie, j.setAttribute("data-main-rotation", k);
13690
+ } = j, X = x % 180 !== 0, J = Math.floor(u) + "px", ie = Math.floor(_) + "px";
13691
+ L.width = X ? ie : J, L.height = X ? J : ie, j.setAttribute("data-main-rotation", x);
13692
13692
  }
13693
13693
  function N(j, s) {
13694
13694
  if (!!s) {
13695
13695
  for (const [u, _] of s) {
13696
- const k = j.querySelector(`[data-annotation-id="${u}"]`);
13697
- if (!k)
13696
+ const x = j.querySelector(`[data-annotation-id="${u}"]`);
13697
+ if (!x)
13698
13698
  continue;
13699
13699
  const {
13700
13700
  firstChild: L
13701
- } = k;
13702
- L ? L.nodeName === "CANVAS" ? L.replaceWith(_) : L.before(_) : k.append(_);
13701
+ } = x;
13702
+ L ? L.nodeName === "CANVAS" ? L.replaceWith(_) : L.before(_) : x.append(_);
13703
13703
  }
13704
13704
  s.clear();
13705
13705
  }
@@ -13931,7 +13931,7 @@ var Yr = xr(function(je, it) {
13931
13931
  break;
13932
13932
  }
13933
13933
  c.clearRect(0, 0, O, O), c.strokeText("A", 0, O), E = c.getImageData(0, 0, O, O).data, h = 0;
13934
- for (let B = 0, x = E.length; B < x; B += 4)
13934
+ for (let B = 0, k = E.length; B < k; B += 4)
13935
13935
  if (E[B] > 0) {
13936
13936
  h = O - Math.floor(B / 4 / O);
13937
13937
  break;
@@ -13965,11 +13965,11 @@ var Yr = xr(function(je, it) {
13965
13965
  b._textDivs.push(h);
13966
13966
  const E = o.Util.transform(b._viewport.transform, c.transform);
13967
13967
  let B = Math.atan2(E[1], E[0]);
13968
- const x = t[c.fontName];
13969
- x.vertical && (B += Math.PI / 2);
13970
- const ne = Math.hypot(E[2], E[3]), q = ne * y(x.fontFamily, a);
13968
+ const k = t[c.fontName];
13969
+ k.vertical && (B += Math.PI / 2);
13970
+ const ne = Math.hypot(E[2], E[3]), q = ne * y(k.fontFamily, a);
13971
13971
  let re, Z;
13972
- B === 0 ? (re = E[4], Z = E[5] - q) : (re = E[4] + q * Math.sin(B), Z = E[5] - q * Math.cos(B)), h.style.left = `${re}px`, h.style.top = `${Z}px`, h.style.fontSize = `${ne}px`, h.style.fontFamily = x.fontFamily, g.fontSize = ne, h.setAttribute("role", "presentation"), h.textContent = c.str, h.dir = c.dir, b._fontInspectorEnabled && (h.dataset.fontName = c.fontName), B !== 0 && (g.angle = B * (180 / Math.PI));
13972
+ B === 0 ? (re = E[4], Z = E[5] - q) : (re = E[4] + q * Math.sin(B), Z = E[5] - q * Math.cos(B)), h.style.left = `${re}px`, h.style.top = `${Z}px`, h.style.fontSize = `${ne}px`, h.style.fontFamily = k.fontFamily, g.fontSize = ne, h.setAttribute("role", "presentation"), h.textContent = c.str, h.dir = c.dir, b._fontInspectorEnabled && (h.dataset.fontName = c.fontName), B !== 0 && (g.angle = B * (180 / Math.PI));
13973
13973
  let z = !1;
13974
13974
  if (c.str.length > 1 || b._enhanceTextSelection && m.test(c.str))
13975
13975
  z = !0;
@@ -13977,10 +13977,10 @@ var Yr = xr(function(je, it) {
13977
13977
  const G = Math.abs(c.transform[0]), W = Math.abs(c.transform[3]);
13978
13978
  G !== W && Math.max(G, W) / Math.min(G, W) > 1.5 && (z = !0);
13979
13979
  }
13980
- if (z && (x.vertical ? g.canvasWidth = c.height * b._viewport.scale : g.canvasWidth = c.width * b._viewport.scale), b._textDivProperties.set(h, g), b._textContentStream && b._layoutText(h), b._enhanceTextSelection && g.hasText) {
13980
+ if (z && (k.vertical ? g.canvasWidth = c.height * b._viewport.scale : g.canvasWidth = c.width * b._viewport.scale), b._textDivProperties.set(h, g), b._textContentStream && b._layoutText(h), b._enhanceTextSelection && g.hasText) {
13981
13981
  let G = 1, W = 0;
13982
13982
  B !== 0 && (G = Math.cos(B), W = Math.sin(B));
13983
- const I = (x.vertical ? c.height : c.width) * b._viewport.scale, ee = ne;
13983
+ const I = (k.vertical ? c.height : c.width) * b._viewport.scale, ee = ne;
13984
13984
  let de, ye;
13985
13985
  B !== 0 ? (de = [G, W, -W, G, re, Z], ye = o.Util.getAxialAlignedBoundingBox([0, 0, I, ee], de)) : ye = [re, Z, re + I, Z + ee], b._bounds.push({
13986
13986
  left: ye[0],
@@ -14022,7 +14022,7 @@ var Yr = xr(function(je, it) {
14022
14022
  E.paddingLeft = c[h].left - a[h].left, E.paddingTop = c[h].top - a[h].top, E.paddingRight = a[h].right - c[h].right, E.paddingBottom = a[h].bottom - c[h].bottom, b._textDivProperties.set(g, E);
14023
14023
  continue;
14024
14024
  }
14025
- const B = a[h], x = c[h], ne = x.m, q = ne[0], re = ne[1], Z = [[0, 0], [0, x.size[1]], [x.size[0], 0], x.size], z = new Float64Array(64);
14025
+ const B = a[h], k = c[h], ne = k.m, q = ne[0], re = ne[1], Z = [[0, 0], [0, k.size[1]], [k.size[0], 0], k.size], z = new Float64Array(64);
14026
14026
  for (let W = 0, I = Z.length; W < I; W++) {
14027
14027
  const ee = o.Util.applyTransform(Z[W], ne);
14028
14028
  z[W + 0] = q && (B.left - ee[0]) / q, z[W + 4] = re && (B.top - ee[1]) / re, z[W + 8] = q && (B.right - ee[0]) / q, z[W + 12] = re && (B.bottom - ee[1]) / re, z[W + 16] = re && (B.left - ee[0]) / -re, z[W + 20] = q && (B.top - ee[1]) / q, z[W + 24] = re && (B.right - ee[0]) / -re, z[W + 28] = q && (B.bottom - ee[1]) / q, z[W + 32] = q && (B.left - ee[0]) / -q, z[W + 36] = re && (B.top - ee[1]) / -re, z[W + 40] = q && (B.right - ee[0]) / -q, z[W + 44] = re && (B.bottom - ee[1]) / -re, z[W + 48] = re && (B.left - ee[0]) / re, z[W + 52] = q && (B.top - ee[1]) / -q, z[W + 56] = re && (B.right - ee[0]) / re, z[W + 60] = q && (B.bottom - ee[1]) / -q;
@@ -14055,8 +14055,8 @@ var Yr = xr(function(je, it) {
14055
14055
  };
14056
14056
  }
14057
14057
  t.map(function(g, E) {
14058
- const B = h[E], x = a[E];
14059
- x.x1 = g.top, x.y1 = b - B.right, x.x2 = g.bottom, x.y2 = b - B.left, x.index = E, x.x1New = void 0, x.x2New = void 0;
14058
+ const B = h[E], k = a[E];
14059
+ k.x1 = g.top, k.y1 = b - B.right, k.x2 = g.bottom, k.y2 = b - B.left, k.index = E, k.x1New = void 0, k.x2New = void 0;
14060
14060
  }), w(c, a);
14061
14061
  for (const g of a) {
14062
14062
  const E = g.index;
@@ -14088,19 +14088,19 @@ var Yr = xr(function(je, it) {
14088
14088
  let E = a.length - 1;
14089
14089
  for (; E >= 0 && a[E].start >= h.y2; )
14090
14090
  E--;
14091
- let B, x, ne, q, re = -1 / 0;
14091
+ let B, k, ne, q, re = -1 / 0;
14092
14092
  for (ne = g; ne <= E; ne++) {
14093
- B = a[ne], x = B.boundary;
14093
+ B = a[ne], k = B.boundary;
14094
14094
  let G;
14095
- x.x2 > h.x1 ? G = x.index > h.index ? x.x1New : h.x1 : x.x2New === void 0 ? G = (x.x2 + h.x1) / 2 : G = x.x2New, G > re && (re = G);
14095
+ k.x2 > h.x1 ? G = k.index > h.index ? k.x1New : h.x1 : k.x2New === void 0 ? G = (k.x2 + h.x1) / 2 : G = k.x2New, G > re && (re = G);
14096
14096
  }
14097
14097
  for (h.x1New = re, ne = g; ne <= E; ne++)
14098
- B = a[ne], x = B.boundary, x.x2New === void 0 ? x.x2 > h.x1 ? x.index > h.index && (x.x2New = x.x2) : x.x2New = re : x.x2New > re && (x.x2New = Math.max(re, x.x2));
14098
+ B = a[ne], k = B.boundary, k.x2New === void 0 ? k.x2 > h.x1 ? k.index > h.index && (k.x2New = k.x2) : k.x2New = re : k.x2New > re && (k.x2New = Math.max(re, k.x2));
14099
14099
  const Z = [];
14100
14100
  let z = null;
14101
14101
  for (ne = g; ne <= E; ne++) {
14102
- B = a[ne], x = B.boundary;
14103
- const G = x.x2 > h.x2 ? x : h;
14102
+ B = a[ne], k = B.boundary;
14103
+ const G = k.x2 > h.x2 ? k : h;
14104
14104
  z === G ? Z.at(-1).end = B.end : (Z.push({
14105
14105
  start: B.start,
14106
14106
  end: B.end,
@@ -14116,16 +14116,16 @@ var Yr = xr(function(je, it) {
14116
14116
  end: a[E].end,
14117
14117
  boundary: a[E].boundary
14118
14118
  })), ne = g; ne <= E; ne++) {
14119
- if (B = a[ne], x = B.boundary, x.x2New !== void 0)
14119
+ if (B = a[ne], k = B.boundary, k.x2New !== void 0)
14120
14120
  continue;
14121
14121
  let G = !1;
14122
- for (q = g - 1; !G && q >= 0 && a[q].start >= x.y1; q--)
14123
- G = a[q].boundary === x;
14124
- for (q = E + 1; !G && q < a.length && a[q].end <= x.y2; q++)
14125
- G = a[q].boundary === x;
14122
+ for (q = g - 1; !G && q >= 0 && a[q].start >= k.y1; q--)
14123
+ G = a[q].boundary === k;
14124
+ for (q = E + 1; !G && q < a.length && a[q].end <= k.y2; q++)
14125
+ G = a[q].boundary === k;
14126
14126
  for (q = 0; !G && q < Z.length; q++)
14127
- G = Z[q].boundary === x;
14128
- G || (x.x2New = re);
14127
+ G = Z[q].boundary === k;
14128
+ G || (k.x2New = re);
14129
14129
  }
14130
14130
  Array.prototype.splice.apply(a, [g, E - g + 1, ...Z]);
14131
14131
  }
@@ -14143,10 +14143,10 @@ var Yr = xr(function(je, it) {
14143
14143
  container: g,
14144
14144
  viewport: E,
14145
14145
  textDivs: B,
14146
- textContentItemsStr: x,
14146
+ textContentItemsStr: k,
14147
14147
  enhanceTextSelection: ne
14148
14148
  } = c;
14149
- ne && (0, f.deprecated)("The `enhanceTextSelection` functionality will be removed in the future."), this._textContent = a, this._textContentStream = h, this._container = g, this._document = g.ownerDocument, this._viewport = E, this._textDivs = B || [], this._textContentItemsStr = x || [], this._enhanceTextSelection = !!ne, this._fontInspectorEnabled = !!((t = globalThis.FontInspector) !== null && t !== void 0 && t.enabled), this._reader = null, this._layoutTextLastFontSize = null, this._layoutTextLastFontFamily = null, this._layoutTextCtx = null, this._textDivProperties = /* @__PURE__ */ new WeakMap(), this._renderingDone = !1, this._canceled = !1, this._capability = (0, o.createPromiseCapability)(), this._renderTimer = null, this._bounds = [], this._devicePixelRatio = globalThis.devicePixelRatio || 1, this._capability.promise.finally(() => {
14149
+ ne && (0, f.deprecated)("The `enhanceTextSelection` functionality will be removed in the future."), this._textContent = a, this._textContentStream = h, this._container = g, this._document = g.ownerDocument, this._viewport = E, this._textDivs = B || [], this._textContentItemsStr = k || [], this._enhanceTextSelection = !!ne, this._fontInspectorEnabled = !!((t = globalThis.FontInspector) !== null && t !== void 0 && t.enabled), this._reader = null, this._layoutTextLastFontSize = null, this._layoutTextLastFontFamily = null, this._layoutTextCtx = null, this._textDivProperties = /* @__PURE__ */ new WeakMap(), this._renderingDone = !1, this._canceled = !1, this._capability = (0, o.createPromiseCapability)(), this._renderTimer = null, this._bounds = [], this._devicePixelRatio = globalThis.devicePixelRatio || 1, this._capability.promise.finally(() => {
14150
14150
  this._enhanceTextSelection || (this._textDivProperties = null), this._layoutTextCtx && (this._layoutTextCtx.canvas.width = 0, this._layoutTextCtx.canvas.height = 0, this._layoutTextCtx = null);
14151
14151
  }).catch(() => {
14152
14152
  });
@@ -14209,9 +14209,9 @@ var Yr = xr(function(je, it) {
14209
14209
  this._reader.read().then((E) => {
14210
14210
  let {
14211
14211
  value: B,
14212
- done: x
14212
+ done: k
14213
14213
  } = E;
14214
- if (x) {
14214
+ if (k) {
14215
14215
  t.resolve();
14216
14216
  return;
14217
14217
  }
@@ -14315,8 +14315,8 @@ var Yr = xr(function(je, it) {
14315
14315
  }));
14316
14316
  const g = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
14317
14317
  let E = `data:${a};base64,`;
14318
- for (let B = 0, x = t.length; B < x; B += 3) {
14319
- const ne = t[B] & 255, q = t[B + 1] & 255, re = t[B + 2] & 255, Z = ne >> 2, z = (ne & 3) << 4 | q >> 4, G = B + 1 < x ? (q & 15) << 2 | re >> 6 : 64, W = B + 2 < x ? re & 63 : 64;
14318
+ for (let B = 0, k = t.length; B < k; B += 3) {
14319
+ const ne = t[B] & 255, q = t[B + 1] & 255, re = t[B + 2] & 255, Z = ne >> 2, z = (ne & 3) << 4 | q >> 4, G = B + 1 < k ? (q & 15) << 2 | re >> 6 : 64, W = B + 2 < k ? re & 63 : 64;
14320
14320
  E += g[Z] + g[z] + g[G] + g[W];
14321
14321
  }
14322
14322
  return E;
@@ -14349,7 +14349,7 @@ var Yr = xr(function(je, it) {
14349
14349
  G = (G + (re[I] & 255)) % 65521, W = (W + G) % 65521;
14350
14350
  return W << 16 | G;
14351
14351
  }
14352
- function x(re) {
14352
+ function k(re) {
14353
14353
  if (!P.isNodeJS)
14354
14354
  return ne(re);
14355
14355
  try {
@@ -14395,17 +14395,17 @@ var Yr = xr(function(je, it) {
14395
14395
  }
14396
14396
  const Y = new Uint8Array((1 + ye) * I);
14397
14397
  let C = 0, S = 0;
14398
- for (let k = 0; k < I; ++k)
14398
+ for (let x = 0; x < I; ++x)
14399
14399
  Y[C++] = 0, Y.set(Se.subarray(S, S + ye), C), S += ye, C += ye;
14400
14400
  if (Z === f.ImageKind.GRAYSCALE_1BPP && G) {
14401
14401
  C = 0;
14402
- for (let k = 0; k < I; k++) {
14402
+ for (let x = 0; x < I; x++) {
14403
14403
  C++;
14404
14404
  for (let L = 0; L < ye; L++)
14405
14405
  Y[C++] ^= 255;
14406
14406
  }
14407
14407
  }
14408
- const N = new Uint8Array([W >> 24 & 255, W >> 16 & 255, W >> 8 & 255, W & 255, I >> 24 & 255, I >> 16 & 255, I >> 8 & 255, I & 255, ee, de, 0, 0, 0]), j = x(Y), s = t.length + a * 3 + N.length + j.length, u = new Uint8Array(s);
14408
+ const N = new Uint8Array([W >> 24 & 255, W >> 16 & 255, W >> 8 & 255, W & 255, I >> 24 & 255, I >> 16 & 255, I >> 8 & 255, I & 255, ee, de, 0, 0, 0]), j = k(Y), s = t.length + a * 3 + N.length + j.length, u = new Uint8Array(s);
14409
14409
  let _ = 0;
14410
14410
  return u.set(t, _), _ += t.length, E("IHDR", N, u, _), _ += a + N.length, E("IDATA", j, u, _), _ += a + j.length, E("IEND", new Uint8Array(0), u, _), r(u, "image/png", z);
14411
14411
  }
@@ -14449,16 +14449,16 @@ var Yr = xr(function(je, it) {
14449
14449
  for (let g = 0, E = a.length; g < E; g++)
14450
14450
  if (a[g] === f.OPS.dependency)
14451
14451
  for (const B of h[g]) {
14452
- const x = B.startsWith("g_") ? this.commonObjs : this.objs, ne = new Promise((q) => {
14453
- x.get(B, q);
14452
+ const k = B.startsWith("g_") ? this.commonObjs : this.objs, ne = new Promise((q) => {
14453
+ k.get(B, q);
14454
14454
  });
14455
14455
  this.current.dependencies.push(ne);
14456
14456
  }
14457
14457
  return Promise.all(this.current.dependencies);
14458
14458
  }
14459
14459
  transform(t, a, h, g, E, B) {
14460
- const x = [t, a, h, g, E, B];
14461
- this.transformMatrix = f.Util.transform(this.transformMatrix, x), this.tgrp = null;
14460
+ const k = [t, a, h, g, E, B];
14461
+ this.transformMatrix = f.Util.transform(this.transformMatrix, k), this.tgrp = null;
14462
14462
  }
14463
14463
  getSVG(t, a) {
14464
14464
  this.viewport = a;
@@ -14467,7 +14467,7 @@ var Yr = xr(function(je, it) {
14467
14467
  }
14468
14468
  convertOpList(t) {
14469
14469
  const a = this._operatorIdMapping, h = t.argsArray, g = t.fnArray, E = [];
14470
- for (let B = 0, x = g.length; B < x; B++) {
14470
+ for (let B = 0, k = g.length; B < k; B++) {
14471
14471
  const ne = g[B];
14472
14472
  E.push({
14473
14473
  fnId: ne,
@@ -14646,8 +14646,8 @@ var Yr = xr(function(je, it) {
14646
14646
  this.moveText(0, this.current.leading);
14647
14647
  }
14648
14648
  setTextMatrix(t, a, h, g, E, B) {
14649
- const x = this.current;
14650
- x.textMatrix = x.lineMatrix = [t, a, h, g, E, B], x.textMatrixScale = Math.hypot(t, a), x.x = x.lineX = 0, x.y = x.lineY = 0, x.xcoords = [], x.ycoords = [], x.tspan = this.svgFactory.createElement("svg:tspan"), x.tspan.setAttributeNS(null, "font-family", x.fontFamily), x.tspan.setAttributeNS(null, "font-size", `${w(x.fontSize)}px`), x.tspan.setAttributeNS(null, "y", w(-x.y)), x.txtElement = this.svgFactory.createElement("svg:text"), x.txtElement.append(x.tspan);
14649
+ const k = this.current;
14650
+ k.textMatrix = k.lineMatrix = [t, a, h, g, E, B], k.textMatrixScale = Math.hypot(t, a), k.x = k.lineX = 0, k.y = k.lineY = 0, k.xcoords = [], k.ycoords = [], k.tspan = this.svgFactory.createElement("svg:tspan"), k.tspan.setAttributeNS(null, "font-family", k.fontFamily), k.tspan.setAttributeNS(null, "font-size", `${w(k.fontSize)}px`), k.tspan.setAttributeNS(null, "y", w(-k.y)), k.txtElement = this.svgFactory.createElement("svg:text"), k.txtElement.append(k.tspan);
14651
14651
  }
14652
14652
  beginText() {
14653
14653
  const t = this.current;
@@ -14661,17 +14661,17 @@ var Yr = xr(function(je, it) {
14661
14661
  const a = this.current, h = a.font, g = a.fontSize;
14662
14662
  if (g === 0)
14663
14663
  return;
14664
- const E = a.fontSizeScale, B = a.charSpacing, x = a.wordSpacing, ne = a.fontDirection, q = a.textHScale * ne, re = h.vertical, Z = re ? 1 : -1, z = h.defaultVMetrics, G = g * a.fontMatrix[0];
14664
+ const E = a.fontSizeScale, B = a.charSpacing, k = a.wordSpacing, ne = a.fontDirection, q = a.textHScale * ne, re = h.vertical, Z = re ? 1 : -1, z = h.defaultVMetrics, G = g * a.fontMatrix[0];
14665
14665
  let W = 0;
14666
14666
  for (const de of t) {
14667
14667
  if (de === null) {
14668
- W += ne * x;
14668
+ W += ne * k;
14669
14669
  continue;
14670
14670
  } else if (typeof de == "number") {
14671
14671
  W += Z * de * g / 1e3;
14672
14672
  continue;
14673
14673
  }
14674
- const ye = (de.isSpace ? x : 0) + B, Se = de.fontChar;
14674
+ const ye = (de.isSpace ? k : 0) + B, Se = de.fontChar;
14675
14675
  let Y, C, S = de.width;
14676
14676
  if (re) {
14677
14677
  let j;
@@ -14750,14 +14750,14 @@ var Yr = xr(function(je, it) {
14750
14750
  this.current.fillColor = this._makeColorN_Pattern(t);
14751
14751
  }
14752
14752
  shadingFill(t) {
14753
- const a = this.viewport.width, h = this.viewport.height, g = f.Util.inverseTransform(this.transformMatrix), E = f.Util.applyTransform([0, 0], g), B = f.Util.applyTransform([0, h], g), x = f.Util.applyTransform([a, 0], g), ne = f.Util.applyTransform([a, h], g), q = Math.min(E[0], B[0], x[0], ne[0]), re = Math.min(E[1], B[1], x[1], ne[1]), Z = Math.max(E[0], B[0], x[0], ne[0]), z = Math.max(E[1], B[1], x[1], ne[1]), G = this.svgFactory.createElement("svg:rect");
14753
+ const a = this.viewport.width, h = this.viewport.height, g = f.Util.inverseTransform(this.transformMatrix), E = f.Util.applyTransform([0, 0], g), B = f.Util.applyTransform([0, h], g), k = f.Util.applyTransform([a, 0], g), ne = f.Util.applyTransform([a, h], g), q = Math.min(E[0], B[0], k[0], ne[0]), re = Math.min(E[1], B[1], k[1], ne[1]), Z = Math.max(E[0], B[0], k[0], ne[0]), z = Math.max(E[1], B[1], k[1], ne[1]), G = this.svgFactory.createElement("svg:rect");
14754
14754
  G.setAttributeNS(null, "x", q), G.setAttributeNS(null, "y", re), G.setAttributeNS(null, "width", Z - q), G.setAttributeNS(null, "height", z - re), G.setAttributeNS(null, "fill", this._makeShadingPattern(t)), this.current.fillAlpha < 1 && G.setAttributeNS(null, "fill-opacity", this.current.fillAlpha), this._ensureTransformGroup().append(G);
14755
14755
  }
14756
14756
  _makeColorN_Pattern(t) {
14757
14757
  return t[0] === "TilingPattern" ? this._makeTilingPattern(t) : this._makeShadingPattern(t);
14758
14758
  }
14759
14759
  _makeTilingPattern(t) {
14760
- const a = t[1], h = t[2], g = t[3] || f.IDENTITY_MATRIX, [E, B, x, ne] = t[4], q = t[5], re = t[6], Z = t[7], z = `shading${c++}`, [G, W, I, ee] = f.Util.normalizeRect([...f.Util.applyTransform([E, B], g), ...f.Util.applyTransform([x, ne], g)]), [de, ye] = f.Util.singularValueDecompose2dScale(g), Se = q * de, Y = re * ye, C = this.svgFactory.createElement("svg:pattern");
14760
+ const a = t[1], h = t[2], g = t[3] || f.IDENTITY_MATRIX, [E, B, k, ne] = t[4], q = t[5], re = t[6], Z = t[7], z = `shading${c++}`, [G, W, I, ee] = f.Util.normalizeRect([...f.Util.applyTransform([E, B], g), ...f.Util.applyTransform([k, ne], g)]), [de, ye] = f.Util.singularValueDecompose2dScale(g), Se = q * de, Y = re * ye, C = this.svgFactory.createElement("svg:pattern");
14761
14761
  C.setAttributeNS(null, "id", z), C.setAttributeNS(null, "patternUnits", "userSpaceOnUse"), C.setAttributeNS(null, "width", Se), C.setAttributeNS(null, "height", Y), C.setAttributeNS(null, "x", `${G}`), C.setAttributeNS(null, "y", `${W}`);
14762
14762
  const S = this.svg, N = this.transformMatrix, j = this.current.fillColor, s = this.current.strokeColor, u = this.svgFactory.create(I - G, ee - W);
14763
14763
  if (this.svg = u, this.transformMatrix = g, Z === 2) {
@@ -14777,8 +14777,8 @@ var Yr = xr(function(je, it) {
14777
14777
  g = this.svgFactory.createElement("svg:linearGradient"), g.setAttributeNS(null, "id", a), g.setAttributeNS(null, "gradientUnits", "userSpaceOnUse"), g.setAttributeNS(null, "x1", E[0]), g.setAttributeNS(null, "y1", E[1]), g.setAttributeNS(null, "x2", B[0]), g.setAttributeNS(null, "y2", B[1]);
14778
14778
  break;
14779
14779
  case "radial":
14780
- const x = t[4], ne = t[5], q = t[6], re = t[7];
14781
- g = this.svgFactory.createElement("svg:radialGradient"), g.setAttributeNS(null, "id", a), g.setAttributeNS(null, "gradientUnits", "userSpaceOnUse"), g.setAttributeNS(null, "cx", ne[0]), g.setAttributeNS(null, "cy", ne[1]), g.setAttributeNS(null, "r", re), g.setAttributeNS(null, "fx", x[0]), g.setAttributeNS(null, "fy", x[1]), g.setAttributeNS(null, "fr", q);
14780
+ const k = t[4], ne = t[5], q = t[6], re = t[7];
14781
+ g = this.svgFactory.createElement("svg:radialGradient"), g.setAttributeNS(null, "id", a), g.setAttributeNS(null, "gradientUnits", "userSpaceOnUse"), g.setAttributeNS(null, "cx", ne[0]), g.setAttributeNS(null, "cy", ne[1]), g.setAttributeNS(null, "r", re), g.setAttributeNS(null, "fx", k[0]), g.setAttributeNS(null, "fy", k[1]), g.setAttributeNS(null, "fr", q);
14782
14782
  break;
14783
14783
  default:
14784
14784
  throw new Error(`Unknown RadialAxial type: ${t[1]}`);
@@ -14801,28 +14801,28 @@ var Yr = xr(function(je, it) {
14801
14801
  }
14802
14802
  constructPath(t, a) {
14803
14803
  const h = this.current;
14804
- let g = h.x, E = h.y, B = [], x = 0;
14804
+ let g = h.x, E = h.y, B = [], k = 0;
14805
14805
  for (const ne of t)
14806
14806
  switch (ne | 0) {
14807
14807
  case f.OPS.rectangle:
14808
- g = a[x++], E = a[x++];
14809
- const q = a[x++], re = a[x++], Z = g + q, z = E + re;
14808
+ g = a[k++], E = a[k++];
14809
+ const q = a[k++], re = a[k++], Z = g + q, z = E + re;
14810
14810
  B.push("M", w(g), w(E), "L", w(Z), w(E), "L", w(Z), w(z), "L", w(g), w(z), "Z");
14811
14811
  break;
14812
14812
  case f.OPS.moveTo:
14813
- g = a[x++], E = a[x++], B.push("M", w(g), w(E));
14813
+ g = a[k++], E = a[k++], B.push("M", w(g), w(E));
14814
14814
  break;
14815
14815
  case f.OPS.lineTo:
14816
- g = a[x++], E = a[x++], B.push("L", w(g), w(E));
14816
+ g = a[k++], E = a[k++], B.push("L", w(g), w(E));
14817
14817
  break;
14818
14818
  case f.OPS.curveTo:
14819
- g = a[x + 4], E = a[x + 5], B.push("C", w(a[x]), w(a[x + 1]), w(a[x + 2]), w(a[x + 3]), w(g), w(E)), x += 6;
14819
+ g = a[k + 4], E = a[k + 5], B.push("C", w(a[k]), w(a[k + 1]), w(a[k + 2]), w(a[k + 3]), w(g), w(E)), k += 6;
14820
14820
  break;
14821
14821
  case f.OPS.curveTo2:
14822
- B.push("C", w(g), w(E), w(a[x]), w(a[x + 1]), w(a[x + 2]), w(a[x + 3])), g = a[x + 2], E = a[x + 3], x += 4;
14822
+ B.push("C", w(g), w(E), w(a[k]), w(a[k + 1]), w(a[k + 2]), w(a[k + 3])), g = a[k + 2], E = a[k + 3], k += 4;
14823
14823
  break;
14824
14824
  case f.OPS.curveTo3:
14825
- g = a[x + 2], E = a[x + 3], B.push("C", w(a[x]), w(a[x + 1]), w(g), w(E), w(g), w(E)), x += 4;
14825
+ g = a[k + 2], E = a[k + 3], B.push("C", w(a[k]), w(a[k + 1]), w(g), w(E), w(g), w(E)), k += 4;
14826
14826
  break;
14827
14827
  case f.OPS.closePath:
14828
14828
  B.push("Z");
@@ -14962,16 +14962,16 @@ var Yr = xr(function(je, it) {
14962
14962
  paintInlineImageXObject(t, a) {
14963
14963
  const h = t.width, g = t.height, E = l(t, this.forceDataSchema, !!a), B = this.svgFactory.createElement("svg:rect");
14964
14964
  B.setAttributeNS(null, "x", "0"), B.setAttributeNS(null, "y", "0"), B.setAttributeNS(null, "width", w(h)), B.setAttributeNS(null, "height", w(g)), this.current.element = B, this.clip("nonzero");
14965
- const x = this.svgFactory.createElement("svg:image");
14966
- x.setAttributeNS(m, "xlink:href", E), x.setAttributeNS(null, "x", "0"), x.setAttributeNS(null, "y", w(-g)), x.setAttributeNS(null, "width", w(h) + "px"), x.setAttributeNS(null, "height", w(g) + "px"), x.setAttributeNS(null, "transform", `scale(${w(1 / h)} ${w(-1 / g)})`), a ? a.append(x) : this._ensureTransformGroup().append(x);
14965
+ const k = this.svgFactory.createElement("svg:image");
14966
+ k.setAttributeNS(m, "xlink:href", E), k.setAttributeNS(null, "x", "0"), k.setAttributeNS(null, "y", w(-g)), k.setAttributeNS(null, "width", w(h) + "px"), k.setAttributeNS(null, "height", w(g) + "px"), k.setAttributeNS(null, "transform", `scale(${w(1 / h)} ${w(-1 / g)})`), a ? a.append(k) : this._ensureTransformGroup().append(k);
14967
14967
  }
14968
14968
  paintImageMaskXObject(t) {
14969
14969
  const a = this.current, h = t.width, g = t.height, E = a.fillColor;
14970
14970
  a.maskId = `mask${b++}`;
14971
14971
  const B = this.svgFactory.createElement("svg:mask");
14972
14972
  B.setAttributeNS(null, "id", a.maskId);
14973
- const x = this.svgFactory.createElement("svg:rect");
14974
- x.setAttributeNS(null, "x", "0"), x.setAttributeNS(null, "y", "0"), x.setAttributeNS(null, "width", w(h)), x.setAttributeNS(null, "height", w(g)), x.setAttributeNS(null, "fill", E), x.setAttributeNS(null, "mask", `url(#${a.maskId})`), this.defs.append(B), this._ensureTransformGroup().append(x), this.paintInlineImageXObject(t, B);
14973
+ const k = this.svgFactory.createElement("svg:rect");
14974
+ k.setAttributeNS(null, "x", "0"), k.setAttributeNS(null, "y", "0"), k.setAttributeNS(null, "width", w(h)), k.setAttributeNS(null, "height", w(g)), k.setAttributeNS(null, "fill", E), k.setAttributeNS(null, "mask", `url(#${a.maskId})`), this.defs.append(B), this._ensureTransformGroup().append(k), this.paintInlineImageXObject(t, B);
14975
14975
  }
14976
14976
  paintFormXObjectBegin(t, a) {
14977
14977
  if (Array.isArray(t) && t.length === 6 && this.transform(t[0], t[1], t[2], t[3], t[4], t[5]), a) {
@@ -16129,7 +16129,7 @@ const ha = class {
16129
16129
  }
16130
16130
  };
16131
16131
  ha.style = da;
16132
- const fa = ":host{position:relative;display:inline-flex;width:100%;max-height:100%}:host *{box-sizing:border-box}.file-viewer-text__text{overflow:auto;width:100%;max-height:100%;margin:0;padding:0;font-family:var(--s-font-family-code)}.file-viewer-text__spinner{position:absolute;display:flex;justify-content:center;align-items:center;background-color:rgba(0, 0, 0, 0.2);inset:0}.file-viewer-text__error{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}", pa = class {
16132
+ const fa = ":host{position:relative;display:inline-flex;width:100%;max-height:100%}:host *{box-sizing:border-box}.file-viewer-text__text{overflow:auto;width:100%;max-height:100%;margin:0;padding:0;padding:var(--s-space-16);background-color:var(--s-background-default);font-family:var(--s-font-family-code)}.file-viewer-text__spinner{position:absolute;display:flex;justify-content:center;align-items:center;background-color:rgba(0, 0, 0, 0.2);inset:0}.file-viewer-text__error{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}", pa = class {
16133
16133
  constructor(je) {
16134
16134
  Yt(this, je), this.errorMessage = "File could not be loaded.";
16135
16135
  }
@@ -16155,7 +16155,7 @@ const fa = ":host{position:relative;display:inline-flex;width:100%;max-height:10
16155
16155
  }
16156
16156
  };
16157
16157
  pa.style = fa;
16158
- const ga = ":host{display:inline-flex;width:100%;height:100%}:host *{box-sizing:border-box}.file-viewer-video__video{width:100%;height:100%}", ma = class {
16158
+ const ga = ":host{display:inline-flex;width:100%;max-height:100%}:host *{box-sizing:border-box}.file-viewer-video__video{width:100%;background-color:rgba(0, 0, 0, 1)}", ma = class {
16159
16159
  constructor(je) {
16160
16160
  Yt(this, je);
16161
16161
  }