@posthog/rrweb-snapshot 0.0.32 → 0.0.35

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.
@@ -1,16 +1,4 @@
1
- (function (g, f) {
2
- if ("object" == typeof exports && "object" == typeof module) {
3
- module.exports = f();
4
- } else if ("function" == typeof define && define.amd) {
5
- define("rrwebSnapshot", [], f);
6
- } else if ("object" == typeof exports) {
7
- exports["rrwebSnapshot"] = f();
8
- } else {
9
- g["rrwebSnapshot"] = f();
10
- }
11
- }(this, () => {
12
- var exports = {};
13
- var module = { exports };
1
+ (function (g, f) {if ("object" == typeof exports && "object" == typeof module) {module.exports = f();} else if ("function" == typeof define && define.amd) {define("rrwebSnapshot", [], f);} else if ("object" == typeof exports) {exports["rrwebSnapshot"] = f();} else {g["rrwebSnapshot"] = f();}}(typeof self !== 'undefined' ? self : typeof globalThis !== 'undefined' ? globalThis : this, () => {var exports = {};var module = { exports };
14
2
  "use strict";
15
3
  var __defProp = Object.defineProperty;
16
4
  var __defProps = Object.defineProperties;
@@ -983,6 +971,7 @@ var require_record = __commonJS({
983
971
  return n.href;
984
972
  }
985
973
  function serializeElementNode(n, options) {
974
+ var _a, _b;
986
975
  const {
987
976
  doc,
988
977
  blockClass,
@@ -1156,11 +1145,13 @@ var require_record = __commonJS({
1156
1145
  }
1157
1146
  }
1158
1147
  if (needBlock) {
1159
- const { width, height } = n.getBoundingClientRect();
1148
+ const { width, height, left, top } = n.getBoundingClientRect();
1160
1149
  attributes = {
1161
1150
  class: attributes.class,
1162
1151
  rr_width: `${width}px`,
1163
- rr_height: `${height}px`
1152
+ rr_height: `${height}px`,
1153
+ rr_left: `${Math.floor(left + (((_a = doc.defaultView) == null ? void 0 : _a.scrollX) || 0))}px`,
1154
+ rr_top: `${Math.floor(top + (((_b = doc.defaultView) == null ? void 0 : _b.scrollY) || 0))}px`
1164
1155
  };
1165
1156
  }
1166
1157
  if (tagName === "iframe" && !keepIframeSrcFn(attributes.src)) {
@@ -1617,7 +1608,7 @@ var require_replay = __commonJS({
1617
1608
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
1618
1609
  }
1619
1610
  function getAugmentedNamespace(n) {
1620
- if (n.__esModule) return n;
1611
+ if (Object.prototype.hasOwnProperty.call(n, "__esModule")) return n;
1621
1612
  var f = n.default;
1622
1613
  if (typeof f == "function") {
1623
1614
  var a = function a2() {
@@ -2136,6 +2127,9 @@ var require_replay = __commonJS({
2136
2127
  return offset;
2137
2128
  }
2138
2129
  class Node {
2130
+ get proxyOf() {
2131
+ return this;
2132
+ }
2139
2133
  constructor(defaults = {}) {
2140
2134
  this.raws = {};
2141
2135
  this[isClean] = false;
@@ -2254,7 +2248,7 @@ var require_replay = __commonJS({
2254
2248
  let index = this.parent.index(this);
2255
2249
  return this.parent.nodes[index + 1];
2256
2250
  }
2257
- positionBy(opts) {
2251
+ positionBy(opts = {}) {
2258
2252
  let pos = this.source.start;
2259
2253
  if (opts.index) {
2260
2254
  pos = this.positionInside(opts.index);
@@ -2283,27 +2277,38 @@ var require_replay = __commonJS({
2283
2277
  column += 1;
2284
2278
  }
2285
2279
  }
2286
- return { column, line };
2280
+ return { column, line, offset: end };
2287
2281
  }
2288
2282
  prev() {
2289
2283
  if (!this.parent) return void 0;
2290
2284
  let index = this.parent.index(this);
2291
2285
  return this.parent.nodes[index - 1];
2292
2286
  }
2293
- rangeBy(opts) {
2287
+ rangeBy(opts = {}) {
2288
+ let inputString = "document" in this.source.input ? this.source.input.document : this.source.input.css;
2294
2289
  let start = {
2295
2290
  column: this.source.start.column,
2296
- line: this.source.start.line
2291
+ line: this.source.start.line,
2292
+ offset: sourceOffset(inputString, this.source.start)
2297
2293
  };
2298
2294
  let end = this.source.end ? {
2299
2295
  column: this.source.end.column + 1,
2300
- line: this.source.end.line
2296
+ line: this.source.end.line,
2297
+ offset: typeof this.source.end.offset === "number" ? (
2298
+ // `source.end.offset` is exclusive, so we don't need to add 1
2299
+ this.source.end.offset
2300
+ ) : (
2301
+ // Since line/column in this.source.end is inclusive,
2302
+ // the `sourceOffset(... , this.source.end)` returns an inclusive offset.
2303
+ // So, we add 1 to convert it to exclusive.
2304
+ sourceOffset(inputString, this.source.end) + 1
2305
+ )
2301
2306
  } : {
2302
2307
  column: start.column + 1,
2303
- line: start.line
2308
+ line: start.line,
2309
+ offset: start.offset + 1
2304
2310
  };
2305
2311
  if (opts.word) {
2306
- let inputString = "document" in this.source.input ? this.source.input.document : this.source.input.css;
2307
2312
  let stringRepresentation = inputString.slice(
2308
2313
  sourceOffset(inputString, this.source.start),
2309
2314
  sourceOffset(inputString, this.source.end)
@@ -2311,15 +2316,14 @@ var require_replay = __commonJS({
2311
2316
  let index = stringRepresentation.indexOf(opts.word);
2312
2317
  if (index !== -1) {
2313
2318
  start = this.positionInside(index);
2314
- end = this.positionInside(
2315
- index + opts.word.length
2316
- );
2319
+ end = this.positionInside(index + opts.word.length);
2317
2320
  }
2318
2321
  } else {
2319
2322
  if (opts.start) {
2320
2323
  start = {
2321
2324
  column: opts.start.column,
2322
- line: opts.start.line
2325
+ line: opts.start.line,
2326
+ offset: sourceOffset(inputString, opts.start)
2323
2327
  };
2324
2328
  } else if (opts.index) {
2325
2329
  start = this.positionInside(opts.index);
@@ -2327,7 +2331,8 @@ var require_replay = __commonJS({
2327
2331
  if (opts.end) {
2328
2332
  end = {
2329
2333
  column: opts.end.column,
2330
- line: opts.end.line
2334
+ line: opts.end.line,
2335
+ offset: sourceOffset(inputString, opts.end)
2331
2336
  };
2332
2337
  } else if (typeof opts.endIndex === "number") {
2333
2338
  end = this.positionInside(opts.endIndex);
@@ -2336,7 +2341,11 @@ var require_replay = __commonJS({
2336
2341
  }
2337
2342
  }
2338
2343
  if (end.line < start.line || end.line === start.line && end.column <= start.column) {
2339
- end = { column: start.column + 1, line: start.line };
2344
+ end = {
2345
+ column: start.column + 1,
2346
+ line: start.line,
2347
+ offset: start.offset + 1
2348
+ };
2340
2349
  }
2341
2350
  return { end, start };
2342
2351
  }
@@ -2400,6 +2409,7 @@ var require_replay = __commonJS({
2400
2409
  } else if (typeof value === "object" && value.toJSON) {
2401
2410
  fixed[name] = value.toJSON(null, inputs);
2402
2411
  } else if (name === "source") {
2412
+ if (value == null) continue;
2403
2413
  let inputId = inputs.get(value.input);
2404
2414
  if (inputId == null) {
2405
2415
  inputId = inputsNextIndex;
@@ -2434,14 +2444,11 @@ var require_replay = __commonJS({
2434
2444
  });
2435
2445
  return result2;
2436
2446
  }
2437
- warn(result2, text, opts) {
2447
+ warn(result2, text, opts = {}) {
2438
2448
  let data = { node: this };
2439
2449
  for (let i in opts) data[i] = opts[i];
2440
2450
  return result2.warn(text, data);
2441
2451
  }
2442
- get proxyOf() {
2443
- return this;
2444
- }
2445
2452
  }
2446
2453
  node = Node;
2447
2454
  Node.default = Node;
@@ -2470,6 +2477,9 @@ var require_replay = __commonJS({
2470
2477
  hasRequiredDeclaration = 1;
2471
2478
  let Node = requireNode();
2472
2479
  class Declaration extends Node {
2480
+ get variable() {
2481
+ return this.prop.startsWith("--") || this.prop[0] === "$";
2482
+ }
2473
2483
  constructor(defaults) {
2474
2484
  if (defaults && typeof defaults.value !== "undefined" && typeof defaults.value !== "string") {
2475
2485
  defaults = __spreadProps(__spreadValues({}, defaults), { value: String(defaults.value) });
@@ -2477,9 +2487,6 @@ var require_replay = __commonJS({
2477
2487
  super(defaults);
2478
2488
  this.type = "decl";
2479
2489
  }
2480
- get variable() {
2481
- return this.prop.startsWith("--") || this.prop[0] === "$";
2482
- }
2483
2490
  }
2484
2491
  declaration = Declaration;
2485
2492
  Declaration.default = Declaration;
@@ -2511,6 +2518,14 @@ var require_replay = __commonJS({
2511
2518
  }
2512
2519
  }
2513
2520
  class Container extends Node {
2521
+ get first() {
2522
+ if (!this.proxyOf.nodes) return void 0;
2523
+ return this.proxyOf.nodes[0];
2524
+ }
2525
+ get last() {
2526
+ if (!this.proxyOf.nodes) return void 0;
2527
+ return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
2528
+ }
2514
2529
  append(...children) {
2515
2530
  for (let child of children) {
2516
2531
  let nodes = this.normalize(child, this.last);
@@ -2823,14 +2838,6 @@ var require_replay = __commonJS({
2823
2838
  }
2824
2839
  });
2825
2840
  }
2826
- get first() {
2827
- if (!this.proxyOf.nodes) return void 0;
2828
- return this.proxyOf.nodes[0];
2829
- }
2830
- get last() {
2831
- if (!this.proxyOf.nodes) return void 0;
2832
- return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
2833
- }
2834
2841
  }
2835
2842
  Container.registerParse = (dependant) => {
2836
2843
  parse = dependant;
@@ -3080,10 +3087,25 @@ var require_replay = __commonJS({
3080
3087
  let CssSyntaxError = requireCssSyntaxError();
3081
3088
  let PreviousMap = requirePreviousMap();
3082
3089
  let terminalHighlight = require$$2;
3083
- let fromOffsetCache = Symbol("fromOffsetCache");
3090
+ let lineToIndexCache = Symbol("lineToIndexCache");
3084
3091
  let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator);
3085
3092
  let pathAvailable = Boolean(resolve && isAbsolute);
3093
+ function getLineToIndex(input2) {
3094
+ if (input2[lineToIndexCache]) return input2[lineToIndexCache];
3095
+ let lines = input2.css.split("\n");
3096
+ let lineToIndex = new Array(lines.length);
3097
+ let prevIndex = 0;
3098
+ for (let i = 0, l = lines.length; i < l; i++) {
3099
+ lineToIndex[i] = prevIndex;
3100
+ prevIndex += lines[i].length + 1;
3101
+ }
3102
+ input2[lineToIndexCache] = lineToIndex;
3103
+ return lineToIndex;
3104
+ }
3086
3105
  class Input {
3106
+ get from() {
3107
+ return this.file || this.id;
3108
+ }
3087
3109
  constructor(css, opts = {}) {
3088
3110
  if (css === null || typeof css === "undefined" || typeof css === "object" && !css.toString) {
3089
3111
  throw new Error(`PostCSS received ${css} instead of CSS string`);
@@ -3118,30 +3140,37 @@ var require_replay = __commonJS({
3118
3140
  if (this.map) this.map.file = this.from;
3119
3141
  }
3120
3142
  error(message, line, column, opts = {}) {
3121
- let endColumn, endLine, result2;
3143
+ let endColumn, endLine, endOffset, offset, result2;
3122
3144
  if (line && typeof line === "object") {
3123
3145
  let start = line;
3124
3146
  let end = column;
3125
3147
  if (typeof start.offset === "number") {
3126
- let pos = this.fromOffset(start.offset);
3148
+ offset = start.offset;
3149
+ let pos = this.fromOffset(offset);
3127
3150
  line = pos.line;
3128
3151
  column = pos.col;
3129
3152
  } else {
3130
3153
  line = start.line;
3131
3154
  column = start.column;
3155
+ offset = this.fromLineAndColumn(line, column);
3132
3156
  }
3133
3157
  if (typeof end.offset === "number") {
3134
- let pos = this.fromOffset(end.offset);
3158
+ endOffset = end.offset;
3159
+ let pos = this.fromOffset(endOffset);
3135
3160
  endLine = pos.line;
3136
3161
  endColumn = pos.col;
3137
3162
  } else {
3138
3163
  endLine = end.line;
3139
3164
  endColumn = end.column;
3165
+ endOffset = this.fromLineAndColumn(end.line, end.column);
3140
3166
  }
3141
3167
  } else if (!column) {
3142
- let pos = this.fromOffset(line);
3168
+ offset = line;
3169
+ let pos = this.fromOffset(offset);
3143
3170
  line = pos.line;
3144
3171
  column = pos.col;
3172
+ } else {
3173
+ offset = this.fromLineAndColumn(line, column);
3145
3174
  }
3146
3175
  let origin = this.origin(line, column, endLine, endColumn);
3147
3176
  if (origin) {
@@ -3163,7 +3192,7 @@ var require_replay = __commonJS({
3163
3192
  opts.plugin
3164
3193
  );
3165
3194
  }
3166
- result2.input = { column, endColumn, endLine, line, source: this.css };
3195
+ result2.input = { column, endColumn, endLine, endOffset, line, offset, source: this.css };
3167
3196
  if (this.file) {
3168
3197
  if (pathToFileURL) {
3169
3198
  result2.input.url = pathToFileURL(this.file).toString();
@@ -3172,21 +3201,14 @@ var require_replay = __commonJS({
3172
3201
  }
3173
3202
  return result2;
3174
3203
  }
3204
+ fromLineAndColumn(line, column) {
3205
+ let lineToIndex = getLineToIndex(this);
3206
+ let index = lineToIndex[line - 1];
3207
+ return index + column - 1;
3208
+ }
3175
3209
  fromOffset(offset) {
3176
- let lastLine, lineToIndex;
3177
- if (!this[fromOffsetCache]) {
3178
- let lines = this.css.split("\n");
3179
- lineToIndex = new Array(lines.length);
3180
- let prevIndex = 0;
3181
- for (let i = 0, l = lines.length; i < l; i++) {
3182
- lineToIndex[i] = prevIndex;
3183
- prevIndex += lines[i].length + 1;
3184
- }
3185
- this[fromOffsetCache] = lineToIndex;
3186
- } else {
3187
- lineToIndex = this[fromOffsetCache];
3188
- }
3189
- lastLine = lineToIndex[lineToIndex.length - 1];
3210
+ let lineToIndex = getLineToIndex(this);
3211
+ let lastLine = lineToIndex[lineToIndex.length - 1];
3190
3212
  let min = 0;
3191
3213
  if (offset >= lastLine) {
3192
3214
  min = lineToIndex.length - 1;
@@ -3267,9 +3289,6 @@ var require_replay = __commonJS({
3267
3289
  }
3268
3290
  return json;
3269
3291
  }
3270
- get from() {
3271
- return this.file || this.id;
3272
- }
3273
3292
  }
3274
3293
  input = Input;
3275
3294
  Input.default = Input;
@@ -3395,11 +3414,6 @@ var require_replay = __commonJS({
3395
3414
  let Container = requireContainer();
3396
3415
  let list = requireList();
3397
3416
  class Rule extends Container {
3398
- constructor(defaults) {
3399
- super(defaults);
3400
- this.type = "rule";
3401
- if (!this.nodes) this.nodes = [];
3402
- }
3403
3417
  get selectors() {
3404
3418
  return list.comma(this.selector);
3405
3419
  }
@@ -3408,6 +3422,11 @@ var require_replay = __commonJS({
3408
3422
  let sep = match ? match[0] : "," + this.raw("between", "beforeOpen");
3409
3423
  this.selector = values.join(sep);
3410
3424
  }
3425
+ constructor(defaults) {
3426
+ super(defaults);
3427
+ this.type = "rule";
3428
+ if (!this.nodes) this.nodes = [];
3429
+ }
3411
3430
  }
3412
3431
  rule = Rule;
3413
3432
  Rule.default = Rule;
@@ -4306,6 +4325,8 @@ var require_replay = __commonJS({
4306
4325
  if (prev && prev.type === "rule" && !prev.raws.ownSemicolon) {
4307
4326
  prev.raws.ownSemicolon = this.spaces;
4308
4327
  this.spaces = "";
4328
+ prev.source.end = this.getPosition(token[2]);
4329
+ prev.source.end.offset += prev.raws.ownSemicolon.length;
4309
4330
  }
4310
4331
  }
4311
4332
  }
@@ -4517,7 +4538,7 @@ var require_replay = __commonJS({
4517
4538
  }
4518
4539
  unknownWord(tokens) {
4519
4540
  throw this.input.error(
4520
- "Unknown word",
4541
+ "Unknown word " + tokens[0][1],
4521
4542
  { offset: tokens[0][2] },
4522
4543
  { offset: tokens[0][2] + tokens[0][1].length }
4523
4544
  );
@@ -4610,12 +4631,15 @@ var require_replay = __commonJS({
4610
4631
  hasRequiredResult = 1;
4611
4632
  let Warning = requireWarning();
4612
4633
  class Result {
4634
+ get content() {
4635
+ return this.css;
4636
+ }
4613
4637
  constructor(processor2, root2, opts) {
4614
4638
  this.processor = processor2;
4615
4639
  this.messages = [];
4616
4640
  this.root = root2;
4617
4641
  this.opts = opts;
4618
- this.css = void 0;
4642
+ this.css = "";
4619
4643
  this.map = void 0;
4620
4644
  }
4621
4645
  toString() {
@@ -4634,9 +4658,6 @@ var require_replay = __commonJS({
4634
4658
  warnings() {
4635
4659
  return this.messages.filter((i) => i.type === "warning");
4636
4660
  }
4637
- get content() {
4638
- return this.css;
4639
- }
4640
4661
  }
4641
4662
  result = Result;
4642
4663
  Result.default = Result;
@@ -4755,6 +4776,30 @@ var require_replay = __commonJS({
4755
4776
  }
4756
4777
  let postcss2 = {};
4757
4778
  class LazyResult {
4779
+ get content() {
4780
+ return this.stringify().content;
4781
+ }
4782
+ get css() {
4783
+ return this.stringify().css;
4784
+ }
4785
+ get map() {
4786
+ return this.stringify().map;
4787
+ }
4788
+ get messages() {
4789
+ return this.sync().messages;
4790
+ }
4791
+ get opts() {
4792
+ return this.result.opts;
4793
+ }
4794
+ get processor() {
4795
+ return this.result.processor;
4796
+ }
4797
+ get root() {
4798
+ return this.sync().root;
4799
+ }
4800
+ get [Symbol.toStringTag]() {
4801
+ return "LazyResult";
4802
+ }
4758
4803
  constructor(processor2, css, opts) {
4759
4804
  this.stringified = false;
4760
4805
  this.processed = false;
@@ -5097,30 +5142,6 @@ var require_replay = __commonJS({
5097
5142
  warnings() {
5098
5143
  return this.sync().warnings();
5099
5144
  }
5100
- get content() {
5101
- return this.stringify().content;
5102
- }
5103
- get css() {
5104
- return this.stringify().css;
5105
- }
5106
- get map() {
5107
- return this.stringify().map;
5108
- }
5109
- get messages() {
5110
- return this.sync().messages;
5111
- }
5112
- get opts() {
5113
- return this.result.opts;
5114
- }
5115
- get processor() {
5116
- return this.result.processor;
5117
- }
5118
- get root() {
5119
- return this.sync().root;
5120
- }
5121
- get [Symbol.toStringTag]() {
5122
- return "LazyResult";
5123
- }
5124
5145
  }
5125
5146
  LazyResult.registerPostcss = (dependant) => {
5126
5147
  postcss2 = dependant;
@@ -5142,6 +5163,45 @@ var require_replay = __commonJS({
5142
5163
  let stringify = requireStringify();
5143
5164
  let warnOnce2 = requireWarnOnce();
5144
5165
  class NoWorkResult {
5166
+ get content() {
5167
+ return this.result.css;
5168
+ }
5169
+ get css() {
5170
+ return this.result.css;
5171
+ }
5172
+ get map() {
5173
+ return this.result.map;
5174
+ }
5175
+ get messages() {
5176
+ return [];
5177
+ }
5178
+ get opts() {
5179
+ return this.result.opts;
5180
+ }
5181
+ get processor() {
5182
+ return this.result.processor;
5183
+ }
5184
+ get root() {
5185
+ if (this._root) {
5186
+ return this._root;
5187
+ }
5188
+ let root2;
5189
+ let parser2 = parse;
5190
+ try {
5191
+ root2 = parser2(this._css, this._opts);
5192
+ } catch (error) {
5193
+ this.error = error;
5194
+ }
5195
+ if (this.error) {
5196
+ throw this.error;
5197
+ } else {
5198
+ this._root = root2;
5199
+ return root2;
5200
+ }
5201
+ }
5202
+ get [Symbol.toStringTag]() {
5203
+ return "NoWorkResult";
5204
+ }
5145
5205
  constructor(processor2, css, opts) {
5146
5206
  css = css.toString();
5147
5207
  this.stringified = false;
@@ -5203,45 +5263,6 @@ var require_replay = __commonJS({
5203
5263
  warnings() {
5204
5264
  return [];
5205
5265
  }
5206
- get content() {
5207
- return this.result.css;
5208
- }
5209
- get css() {
5210
- return this.result.css;
5211
- }
5212
- get map() {
5213
- return this.result.map;
5214
- }
5215
- get messages() {
5216
- return [];
5217
- }
5218
- get opts() {
5219
- return this.result.opts;
5220
- }
5221
- get processor() {
5222
- return this.result.processor;
5223
- }
5224
- get root() {
5225
- if (this._root) {
5226
- return this._root;
5227
- }
5228
- let root2;
5229
- let parser2 = parse;
5230
- try {
5231
- root2 = parser2(this._css, this._opts);
5232
- } catch (error) {
5233
- this.error = error;
5234
- }
5235
- if (this.error) {
5236
- throw this.error;
5237
- } else {
5238
- this._root = root2;
5239
- return root2;
5240
- }
5241
- }
5242
- get [Symbol.toStringTag]() {
5243
- return "NoWorkResult";
5244
- }
5245
5266
  }
5246
5267
  noWorkResult = NoWorkResult;
5247
5268
  NoWorkResult.default = NoWorkResult;
@@ -5258,7 +5279,7 @@ var require_replay = __commonJS({
5258
5279
  let Root = requireRoot();
5259
5280
  class Processor {
5260
5281
  constructor(plugins = []) {
5261
- this.version = "8.5.1";
5282
+ this.version = "8.5.6";
5262
5283
  this.plugins = this.normalize(plugins);
5263
5284
  }
5264
5285
  normalize(plugins) {
@@ -5714,6 +5735,12 @@ var require_replay = __commonJS({
5714
5735
  node2.style.setProperty("width", value.toString());
5715
5736
  } else if (name === "rr_height") {
5716
5737
  node2.style.setProperty("height", value.toString());
5738
+ } else if (name === "rr_left") {
5739
+ node2.style.setProperty("left", value.toString());
5740
+ node2.style.setProperty("position", "absolute");
5741
+ } else if (name === "rr_top") {
5742
+ node2.style.setProperty("top", value.toString());
5743
+ node2.style.setProperty("position", "absolute");
5717
5744
  } else if (name === "rr_mediaCurrentTime" && typeof value === "number") {
5718
5745
  node2.currentTime = value;
5719
5746
  } else if (name === "rr_mediaState") {
@@ -5973,7 +6000,7 @@ exports.recompressBase64Image = types.recompressBase64Image;
5973
6000
  exports.stringifyRule = types.stringifyRule;
5974
6001
  exports.stringifyStylesheet = types.stringifyStylesheet;
5975
6002
  exports.toLowerCase = types.toLowerCase;
5976
- if (typeof module.exports == "object" && typeof exports == "object") {
6003
+ ;if (typeof module.exports == "object" && typeof exports == "object") {
5977
6004
  var __cp = (to, from, except, desc) => {
5978
6005
  if ((from && typeof from === "object") || typeof from === "function") {
5979
6006
  for (let key of Object.getOwnPropertyNames(from)) {