@tamagui/code-to-html 1.101.7 → 1.102.1

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.
@@ -21876,14 +21876,14 @@ var require_preprocessor_mixin = __commonJS({
21876
21876
  }), superClass && _set_prototype_of3(subClass, superClass);
21877
21877
  }
21878
21878
  function _possible_constructor_return3(self, call) {
21879
- return call && (_type_of3(call) === "object" || typeof call == "function") ? call : _assert_this_initialized3(self);
21879
+ return call && (_type_of10(call) === "object" || typeof call == "function") ? call : _assert_this_initialized3(self);
21880
21880
  }
21881
21881
  function _set_prototype_of3(o, p2) {
21882
21882
  return _set_prototype_of3 = Object.setPrototypeOf || function(o2, p3) {
21883
21883
  return o2.__proto__ = p3, o2;
21884
21884
  }, _set_prototype_of3(o, p2);
21885
21885
  }
21886
- function _type_of3(obj) {
21886
+ function _type_of10(obj) {
21887
21887
  "@swc/helpers - typeof";
21888
21888
  return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
21889
21889
  }
@@ -21985,14 +21985,14 @@ var require_tokenizer_mixin = __commonJS({
21985
21985
  }), superClass && _set_prototype_of3(subClass, superClass);
21986
21986
  }
21987
21987
  function _possible_constructor_return3(self, call) {
21988
- return call && (_type_of3(call) === "object" || typeof call == "function") ? call : _assert_this_initialized3(self);
21988
+ return call && (_type_of10(call) === "object" || typeof call == "function") ? call : _assert_this_initialized3(self);
21989
21989
  }
21990
21990
  function _set_prototype_of3(o, p2) {
21991
21991
  return _set_prototype_of3 = Object.setPrototypeOf || function(o2, p3) {
21992
21992
  return o2.__proto__ = p3, o2;
21993
21993
  }, _set_prototype_of3(o, p2);
21994
21994
  }
21995
- function _type_of3(obj) {
21995
+ function _type_of10(obj) {
21996
21996
  "@swc/helpers - typeof";
21997
21997
  return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
21998
21998
  }
@@ -22141,14 +22141,14 @@ var require_open_element_stack_mixin = __commonJS({
22141
22141
  }), superClass && _set_prototype_of3(subClass, superClass);
22142
22142
  }
22143
22143
  function _possible_constructor_return3(self, call) {
22144
- return call && (_type_of3(call) === "object" || typeof call == "function") ? call : _assert_this_initialized3(self);
22144
+ return call && (_type_of10(call) === "object" || typeof call == "function") ? call : _assert_this_initialized3(self);
22145
22145
  }
22146
22146
  function _set_prototype_of3(o, p2) {
22147
22147
  return _set_prototype_of3 = Object.setPrototypeOf || function(o2, p3) {
22148
22148
  return o2.__proto__ = p3, o2;
22149
22149
  }, _set_prototype_of3(o, p2);
22150
22150
  }
22151
- function _type_of3(obj) {
22151
+ function _type_of10(obj) {
22152
22152
  "@swc/helpers - typeof";
22153
22153
  return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
22154
22154
  }
@@ -22246,14 +22246,14 @@ var require_parser_mixin = __commonJS({
22246
22246
  }), superClass && _set_prototype_of3(subClass, superClass);
22247
22247
  }
22248
22248
  function _possible_constructor_return3(self, call) {
22249
- return call && (_type_of3(call) === "object" || typeof call == "function") ? call : _assert_this_initialized3(self);
22249
+ return call && (_type_of10(call) === "object" || typeof call == "function") ? call : _assert_this_initialized3(self);
22250
22250
  }
22251
22251
  function _set_prototype_of3(o, p2) {
22252
22252
  return _set_prototype_of3 = Object.setPrototypeOf || function(o2, p3) {
22253
22253
  return o2.__proto__ = p3, o2;
22254
22254
  }, _set_prototype_of3(o, p2);
22255
22255
  }
22256
- function _type_of3(obj) {
22256
+ function _type_of10(obj) {
22257
22257
  "@swc/helpers - typeof";
22258
22258
  return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
22259
22259
  }
@@ -22439,14 +22439,14 @@ var require_mixin_base = __commonJS({
22439
22439
  }), superClass && _set_prototype_of3(subClass, superClass);
22440
22440
  }
22441
22441
  function _possible_constructor_return3(self, call) {
22442
- return call && (_type_of3(call) === "object" || typeof call == "function") ? call : _assert_this_initialized3(self);
22442
+ return call && (_type_of10(call) === "object" || typeof call == "function") ? call : _assert_this_initialized3(self);
22443
22443
  }
22444
22444
  function _set_prototype_of3(o, p2) {
22445
22445
  return _set_prototype_of3 = Object.setPrototypeOf || function(o2, p3) {
22446
22446
  return o2.__proto__ = p3, o2;
22447
22447
  }, _set_prototype_of3(o, p2);
22448
22448
  }
22449
- function _type_of3(obj) {
22449
+ function _type_of10(obj) {
22450
22450
  "@swc/helpers - typeof";
22451
22451
  return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
22452
22452
  }
@@ -22566,7 +22566,7 @@ var require_preprocessor_mixin2 = __commonJS({
22566
22566
  }), superClass && _set_prototype_of3(subClass, superClass);
22567
22567
  }
22568
22568
  function _possible_constructor_return3(self, call) {
22569
- return call && (_type_of3(call) === "object" || typeof call == "function") ? call : _assert_this_initialized3(self);
22569
+ return call && (_type_of10(call) === "object" || typeof call == "function") ? call : _assert_this_initialized3(self);
22570
22570
  }
22571
22571
  function _set_prototype_of3(o, p2) {
22572
22572
  return _set_prototype_of3 = Object.setPrototypeOf || function(o2, p3) {
@@ -22578,7 +22578,7 @@ var require_preprocessor_mixin2 = __commonJS({
22578
22578
  ;
22579
22579
  return object;
22580
22580
  }
22581
- function _type_of3(obj) {
22581
+ function _type_of10(obj) {
22582
22582
  "@swc/helpers - typeof";
22583
22583
  return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
22584
22584
  }
@@ -22655,14 +22655,14 @@ var require_tokenizer_mixin2 = __commonJS({
22655
22655
  }), superClass && _set_prototype_of3(subClass, superClass);
22656
22656
  }
22657
22657
  function _possible_constructor_return3(self, call) {
22658
- return call && (_type_of3(call) === "object" || typeof call == "function") ? call : _assert_this_initialized3(self);
22658
+ return call && (_type_of10(call) === "object" || typeof call == "function") ? call : _assert_this_initialized3(self);
22659
22659
  }
22660
22660
  function _set_prototype_of3(o, p2) {
22661
22661
  return _set_prototype_of3 = Object.setPrototypeOf || function(o2, p3) {
22662
22662
  return o2.__proto__ = p3, o2;
22663
22663
  }, _set_prototype_of3(o, p2);
22664
22664
  }
22665
- function _type_of3(obj) {
22665
+ function _type_of10(obj) {
22666
22666
  "@swc/helpers - typeof";
22667
22667
  return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
22668
22668
  }
@@ -22743,14 +22743,14 @@ var require_parser_mixin2 = __commonJS({
22743
22743
  }), superClass && _set_prototype_of3(subClass, superClass);
22744
22744
  }
22745
22745
  function _possible_constructor_return3(self, call) {
22746
- return call && (_type_of3(call) === "object" || typeof call == "function") ? call : _assert_this_initialized3(self);
22746
+ return call && (_type_of10(call) === "object" || typeof call == "function") ? call : _assert_this_initialized3(self);
22747
22747
  }
22748
22748
  function _set_prototype_of3(o, p2) {
22749
22749
  return _set_prototype_of3 = Object.setPrototypeOf || function(o2, p3) {
22750
22750
  return o2.__proto__ = p3, o2;
22751
22751
  }, _set_prototype_of3(o, p2);
22752
22752
  }
22753
- function _type_of3(obj) {
22753
+ function _type_of10(obj) {
22754
22754
  "@swc/helpers - typeof";
22755
22755
  return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
22756
22756
  }
@@ -24353,6 +24353,10 @@ var require_is_buffer = __commonJS({
24353
24353
  var require_extend = __commonJS({
24354
24354
  "../../../node_modules/extend/index.js"(exports, module) {
24355
24355
  "use strict";
24356
+ function _type_of10(obj) {
24357
+ "@swc/helpers - typeof";
24358
+ return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
24359
+ }
24356
24360
  var hasOwn = Object.prototype.hasOwnProperty, toStr = Object.prototype.toString, defineProperty = Object.defineProperty, gOPD = Object.getOwnPropertyDescriptor, isArray = function(arr) {
24357
24361
  return typeof Array.isArray == "function" ? Array.isArray(arr) : toStr.call(arr) === "[object Array]";
24358
24362
  }, isPlainObject2 = function(obj) {
@@ -24382,7 +24386,7 @@ var require_extend = __commonJS({
24382
24386
  };
24383
24387
  module.exports = function extend3() {
24384
24388
  var options, name, src, copy, copyIsArray, clone, target = arguments[0], i = 1, length = arguments.length, deep = !1;
24385
- for (typeof target == "boolean" && (deep = target, target = arguments[1] || {}, i = 2), (target == null || typeof target != "object" && typeof target != "function") && (target = {}); i < length; ++i)
24389
+ for (typeof target == "boolean" && (deep = target, target = arguments[1] || {}, i = 2), (target == null || (typeof target > "u" ? "undefined" : _type_of10(target)) !== "object" && typeof target != "function") && (target = {}); i < length; ++i)
24386
24390
  if (options = arguments[i], options != null)
24387
24391
  for (name in options)
24388
24392
  src = getProperty(target, name), copy = getProperty(options, name), target !== copy && (deep && copy && (isPlainObject2(copy) || (copyIsArray = isArray(copy))) ? (copyIsArray ? (copyIsArray = !1, clone = src && isArray(src) ? src : []) : clone = src && isPlainObject2(src) ? src : {}, setProperty(target, {
@@ -26224,10 +26228,14 @@ function stringify2(values) {
26224
26228
  }
26225
26229
 
26226
26230
  // ../../../node_modules/hast-util-to-html/node_modules/hast-util-whitespace/index.js
26231
+ function _type_of2(obj) {
26232
+ "@swc/helpers - typeof";
26233
+ return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
26234
+ }
26227
26235
  function whitespace(thing) {
26228
26236
  var value = (
26229
26237
  // @ts-expect-error looks like a node.
26230
- thing && typeof thing == "object" && thing.type === "text" ? (
26238
+ thing && (typeof thing > "u" ? "undefined" : _type_of2(thing)) === "object" && thing.type === "text" ? (
26231
26239
  // @ts-expect-error looks like a text.
26232
26240
  thing.value || ""
26233
26241
  ) : thing
@@ -30125,6 +30133,10 @@ function parseSelector(selector, defaultTagName) {
30125
30133
  }
30126
30134
 
30127
30135
  // ../../../node_modules/hastscript/lib/core.js
30136
+ function _type_of3(obj) {
30137
+ "@swc/helpers - typeof";
30138
+ return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
30139
+ }
30128
30140
  var buttonTypes = /* @__PURE__ */ new Set([
30129
30141
  "menu",
30130
30142
  "submit",
@@ -30175,7 +30187,7 @@ function core2(schema, defaultTagName, caseSensitive) {
30175
30187
  return h2;
30176
30188
  }
30177
30189
  function isProperties(value, name) {
30178
- return value == null || typeof value != "object" || Array.isArray(value) ? !1 : name === "input" || !value.type || typeof value.type != "string" ? !0 : "children" in value && Array.isArray(value.children) ? !1 : name === "button" ? buttonTypes.has(value.type.toLowerCase()) : !("value" in value);
30190
+ return value == null || (typeof value > "u" ? "undefined" : _type_of3(value)) !== "object" || Array.isArray(value) ? !1 : name === "input" || !value.type || typeof value.type != "string" ? !0 : "children" in value && Array.isArray(value.children) ? !1 : name === "button" ? buttonTypes.has(value.type.toLowerCase()) : !("value" in value);
30179
30191
  }
30180
30192
  function addProperty(schema, properties, key2, value) {
30181
30193
  var info = find(schema, key2), index2 = -1, result;
@@ -30204,7 +30216,7 @@ function addChild(nodes, value) {
30204
30216
  else if (Array.isArray(value))
30205
30217
  for (; ++index2 < value.length; )
30206
30218
  addChild(nodes, value[index2]);
30207
- else if (typeof value == "object" && "type" in value)
30219
+ else if ((typeof value > "u" ? "undefined" : _type_of3(value)) === "object" && "type" in value)
30208
30220
  value.type === "root" ? addChild(nodes, value.children) : nodes.push(value);
30209
30221
  else
30210
30222
  throw new Error("Expected node, nodes, or string, got `" + value + "`");
@@ -33078,6 +33090,10 @@ function _non_iterable_spread3() {
33078
33090
  function _to_consumable_array3(arr) {
33079
33091
  return _array_without_holes3(arr) || _iterable_to_array3(arr) || _unsupported_iterable_to_array3(arr) || _non_iterable_spread3();
33080
33092
  }
33093
+ function _type_of4(obj) {
33094
+ "@swc/helpers - typeof";
33095
+ return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
33096
+ }
33081
33097
  function _unsupported_iterable_to_array3(o, minLen) {
33082
33098
  if (o) {
33083
33099
  if (typeof o == "string") return _array_like_to_array3(o, minLen);
@@ -33102,7 +33118,7 @@ function highlight2(value, language) {
33102
33118
  if (typeof value != "string")
33103
33119
  throw new TypeError("Expected `string` for `value`, got `" + value + "`");
33104
33120
  var grammar, name;
33105
- if (language && typeof language == "object")
33121
+ if (language && (typeof language > "u" ? "undefined" : _type_of4(language)) === "object")
33106
33122
  grammar = language;
33107
33123
  else {
33108
33124
  if (name = language, typeof name != "string")
@@ -33142,7 +33158,7 @@ function registered(aliasOrLanguage) {
33142
33158
  function listLanguages() {
33143
33159
  var languages = refractor.languages, list = [], language;
33144
33160
  for (language in languages)
33145
- own7.call(languages, language) && typeof languages[language] == "object" && list.push(language);
33161
+ own7.call(languages, language) && _type_of4(languages[language]) === "object" && list.push(language);
33146
33162
  return list;
33147
33163
  }
33148
33164
  function stringify3(value, language) {
@@ -33814,8 +33830,12 @@ function bail(error) {
33814
33830
  var import_is_buffer2 = __toESM(require_is_buffer(), 1), import_extend = __toESM(require_extend(), 1);
33815
33831
 
33816
33832
  // ../../../node_modules/is-plain-obj/index.js
33833
+ function _type_of5(obj) {
33834
+ "@swc/helpers - typeof";
33835
+ return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
33836
+ }
33817
33837
  function isPlainObject(value) {
33818
- if (typeof value != "object" || value === null)
33838
+ if ((typeof value > "u" ? "undefined" : _type_of5(value)) !== "object" || value === null)
33819
33839
  return !1;
33820
33840
  var prototype = Object.getPrototypeOf(value);
33821
33841
  return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
@@ -33923,8 +33943,12 @@ function wrap(middleware, callback) {
33923
33943
  var import_is_buffer = __toESM(require_is_buffer(), 1);
33924
33944
 
33925
33945
  // ../../../node_modules/unified/node_modules/unist-util-stringify-position/lib/index.js
33946
+ function _type_of6(obj) {
33947
+ "@swc/helpers - typeof";
33948
+ return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
33949
+ }
33926
33950
  function stringifyPosition(value) {
33927
- return !value || typeof value != "object" ? "" : "position" in value || "type" in value ? position2(value.position) : "start" in value || "end" in value ? position2(value) : "line" in value || "column" in value ? point2(value) : "";
33951
+ return !value || (typeof value > "u" ? "undefined" : _type_of6(value)) !== "object" ? "" : "position" in value || "type" in value ? position2(value.position) : "start" in value || "end" in value ? position2(value) : "line" in value || "column" in value ? point2(value) : "";
33928
33952
  }
33929
33953
  function point2(point3) {
33930
33954
  return index(point3 && point3.line) + ":" + index(point3 && point3.column);
@@ -33976,14 +34000,14 @@ function _is_native_function(fn) {
33976
34000
  return Function.toString.call(fn).indexOf("[native code]") !== -1;
33977
34001
  }
33978
34002
  function _possible_constructor_return2(self, call) {
33979
- return call && (_type_of2(call) === "object" || typeof call == "function") ? call : _assert_this_initialized2(self);
34003
+ return call && (_type_of7(call) === "object" || typeof call == "function") ? call : _assert_this_initialized2(self);
33980
34004
  }
33981
34005
  function _set_prototype_of2(o, p2) {
33982
34006
  return _set_prototype_of2 = Object.setPrototypeOf || function(o2, p3) {
33983
34007
  return o2.__proto__ = p3, o2;
33984
34008
  }, _set_prototype_of2(o, p2);
33985
34009
  }
33986
- function _type_of2(obj) {
34010
+ function _type_of7(obj) {
33987
34011
  "@swc/helpers - typeof";
33988
34012
  return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
33989
34013
  }
@@ -34057,7 +34081,7 @@ var VFileMessage = /* @__PURE__ */ function(Error1) {
34057
34081
  var index2 = origin.indexOf(":");
34058
34082
  index2 === -1 ? parts[1] = origin : (parts[0] = origin.slice(0, index2), parts[1] = origin.slice(index2 + 1));
34059
34083
  }
34060
- return place && ("type" in place || "position" in place ? place.position && (position3 = place.position) : "start" in place || "end" in place ? position3 = place : ("line" in place || "column" in place) && (position3.start = place)), _this.name = stringifyPosition(place) || "1:1", _this.message = typeof reason == "object" ? reason.message : reason, _this.stack = "", typeof reason == "object" && reason.stack && (_this.stack = reason.stack), _this.reason = _this.message, _this.fatal, _this.line = position3.start.line, _this.column = position3.start.column, _this.position = position3, _this.source = parts[0], _this.ruleId = parts[1], _this.file, _this.actual, _this.expected, _this.url, _this.note, _this;
34084
+ return place && ("type" in place || "position" in place ? place.position && (position3 = place.position) : "start" in place || "end" in place ? position3 = place : ("line" in place || "column" in place) && (position3.start = place)), _this.name = stringifyPosition(place) || "1:1", _this.message = (typeof reason > "u" ? "undefined" : _type_of7(reason)) === "object" ? reason.message : reason, _this.stack = "", (typeof reason > "u" ? "undefined" : _type_of7(reason)) === "object" && reason.stack && (_this.stack = reason.stack), _this.reason = _this.message, _this.fatal, _this.line = position3.start.line, _this.column = position3.start.column, _this.position = position3, _this.source = parts[0], _this.ruleId = parts[1], _this.file, _this.actual, _this.expected, _this.url, _this.note, _this;
34061
34085
  }
34062
34086
  return VFileMessage2;
34063
34087
  }(_wrap_native_super(Error));
@@ -34083,8 +34107,12 @@ import { default as default3 } from "process";
34083
34107
  import { fileURLToPath } from "url";
34084
34108
 
34085
34109
  // ../../../node_modules/unified/node_modules/vfile/lib/minurl.shared.js
34110
+ function _type_of8(obj) {
34111
+ "@swc/helpers - typeof";
34112
+ return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
34113
+ }
34086
34114
  function isUrl(fileUrlOrPath) {
34087
- return fileUrlOrPath !== null && typeof fileUrlOrPath == "object" && // @ts-expect-error: indexable.
34115
+ return fileUrlOrPath !== null && (typeof fileUrlOrPath > "u" ? "undefined" : _type_of8(fileUrlOrPath)) === "object" && // @ts-expect-error: indexable.
34088
34116
  fileUrlOrPath.href && // @ts-expect-error: indexable.
34089
34117
  fileUrlOrPath.origin;
34090
34118
  }
@@ -34410,6 +34438,10 @@ function _to_array(arr) {
34410
34438
  function _to_consumable_array6(arr) {
34411
34439
  return _array_without_holes6(arr) || _iterable_to_array6(arr) || _unsupported_iterable_to_array6(arr) || _non_iterable_spread6();
34412
34440
  }
34441
+ function _type_of9(obj) {
34442
+ "@swc/helpers - typeof";
34443
+ return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
34444
+ }
34413
34445
  function _unsupported_iterable_to_array6(o, minLen) {
34414
34446
  if (o) {
34415
34447
  if (typeof o == "string") return _array_like_to_array6(o, minLen);
@@ -34456,7 +34488,7 @@ function base2() {
34456
34488
  addPlugin.apply(void 0, [
34457
34489
  value
34458
34490
  ].concat(_to_consumable_array6(options)));
34459
- else if (typeof value == "object")
34491
+ else if ((typeof value > "u" ? "undefined" : _type_of9(value)) === "object")
34460
34492
  Array.isArray(value) ? addList(value) : addPreset(value);
34461
34493
  else
34462
34494
  throw new TypeError("Expected usable value, not `" + value + "`");
@@ -34464,7 +34496,7 @@ function base2() {
34464
34496
  function add2(value2) {
34465
34497
  if (typeof value2 == "function")
34466
34498
  addPlugin(value2);
34467
- else if (typeof value2 == "object")
34499
+ else if ((typeof value2 > "u" ? "undefined" : _type_of9(value2)) === "object")
34468
34500
  if (Array.isArray(value2)) {
34469
34501
  var _value = _to_array(value2), plugin = _value[0], options2 = _value.slice(1);
34470
34502
  addPlugin.apply(void 0, [
@@ -34595,7 +34627,7 @@ function vfile(value) {
34595
34627
  return looksLikeAVFile(value) ? value : new VFile(value);
34596
34628
  }
34597
34629
  function looksLikeAVFile(value) {
34598
- return !!(value && typeof value == "object" && "message" in value && "messages" in value);
34630
+ return !!(value && (typeof value > "u" ? "undefined" : _type_of9(value)) === "object" && "message" in value && "messages" in value);
34599
34631
  }
34600
34632
  function looksLikeAVFileValue(value) {
34601
34633
  return typeof value == "string" || (0, import_is_buffer2.default)(value);