hot-updater 0.20.11 → 0.20.13

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,12 +1,12 @@
1
1
  const require_picocolors$1 = require('./picocolors-y8lGs7d-.cjs');
2
- let fs = require("fs");
3
- fs = require_picocolors$1.__toESM(fs);
4
2
  let __clack_prompts = require("@clack/prompts");
5
3
  __clack_prompts = require_picocolors$1.__toESM(__clack_prompts);
6
4
  let __hot_updater_plugin_core = require("@hot-updater/plugin-core");
7
5
  __hot_updater_plugin_core = require_picocolors$1.__toESM(__hot_updater_plugin_core);
8
6
  let path = require("path");
9
7
  path = require_picocolors$1.__toESM(path);
8
+ let fs = require("fs");
9
+ fs = require_picocolors$1.__toESM(fs);
10
10
  let __expo_fingerprint = require("@expo/fingerprint");
11
11
  __expo_fingerprint = require_picocolors$1.__toESM(__expo_fingerprint);
12
12
 
@@ -708,11 +708,8 @@ function parseTextData(val, tagName, jPath, dontTrim, hasAttributes, isLeafNode,
708
708
  if (newval === null || newval === void 0) return val;
709
709
  else if (typeof newval !== typeof val || newval !== val) return newval;
710
710
  else if (this.options.trimValues) return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);
711
- else {
712
- const trimmedVal = val.trim();
713
- if (trimmedVal === val) return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);
714
- else return val;
715
- }
711
+ else if (val.trim() === val) return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);
712
+ else return val;
716
713
  }
717
714
  }
718
715
  }
@@ -764,125 +761,122 @@ const parseXml = function(xmlData) {
764
761
  let currentNode = xmlObj;
765
762
  let textData = "";
766
763
  let jPath = "";
767
- for (let i$1 = 0; i$1 < xmlData.length; i$1++) {
768
- const ch = xmlData[i$1];
769
- if (ch === "<") if (xmlData[i$1 + 1] === "/") {
770
- const closeIndex = findClosingIndex(xmlData, ">", i$1, "Closing Tag is not closed.");
771
- let tagName = xmlData.substring(i$1 + 2, closeIndex).trim();
772
- if (this.options.removeNSPrefix) {
773
- const colonIndex = tagName.indexOf(":");
774
- if (colonIndex !== -1) tagName = tagName.substr(colonIndex + 1);
775
- }
776
- if (this.options.transformTagName) tagName = this.options.transformTagName(tagName);
777
- if (currentNode) textData = this.saveTextToParentTag(textData, currentNode, jPath);
778
- const lastTagName = jPath.substring(jPath.lastIndexOf(".") + 1);
779
- if (tagName && this.options.unpairedTags.indexOf(tagName) !== -1) throw new Error(`Unpaired tag can not be used as closing tag: </${tagName}>`);
780
- let propIndex = 0;
781
- if (lastTagName && this.options.unpairedTags.indexOf(lastTagName) !== -1) {
782
- propIndex = jPath.lastIndexOf(".", jPath.lastIndexOf(".") - 1);
783
- this.tagsNodeStack.pop();
784
- } else propIndex = jPath.lastIndexOf(".");
785
- jPath = jPath.substring(0, propIndex);
786
- currentNode = this.tagsNodeStack.pop();
787
- textData = "";
788
- i$1 = closeIndex;
789
- } else if (xmlData[i$1 + 1] === "?") {
790
- let tagData = readTagExp(xmlData, i$1, false, "?>");
791
- if (!tagData) throw new Error("Pi Tag is not closed.");
792
- textData = this.saveTextToParentTag(textData, currentNode, jPath);
793
- if (this.options.ignoreDeclaration && tagData.tagName === "?xml" || this.options.ignorePiTags) {} else {
794
- const childNode = new XmlNode(tagData.tagName);
795
- childNode.add(this.options.textNodeName, "");
796
- if (tagData.tagName !== tagData.tagExp && tagData.attrExpPresent) childNode[":@"] = this.buildAttributesMap(tagData.tagExp, jPath, tagData.tagName);
797
- this.addChild(currentNode, childNode, jPath, i$1);
798
- }
799
- i$1 = tagData.closeIndex + 1;
800
- } else if (xmlData.substr(i$1 + 1, 3) === "!--") {
801
- const endIndex = findClosingIndex(xmlData, "-->", i$1 + 4, "Comment is not closed.");
802
- if (this.options.commentPropName) {
803
- const comment = xmlData.substring(i$1 + 4, endIndex - 2);
804
- textData = this.saveTextToParentTag(textData, currentNode, jPath);
805
- currentNode.add(this.options.commentPropName, [{ [this.options.textNodeName]: comment }]);
806
- }
807
- i$1 = endIndex;
808
- } else if (xmlData.substr(i$1 + 1, 2) === "!D") {
809
- const result = readDocType(xmlData, i$1);
810
- this.docTypeEntities = result.entities;
811
- i$1 = result.i;
812
- } else if (xmlData.substr(i$1 + 1, 2) === "![") {
813
- const closeIndex = findClosingIndex(xmlData, "]]>", i$1, "CDATA is not closed.") - 2;
814
- const tagExp = xmlData.substring(i$1 + 9, closeIndex);
764
+ for (let i$1 = 0; i$1 < xmlData.length; i$1++) if (xmlData[i$1] === "<") if (xmlData[i$1 + 1] === "/") {
765
+ const closeIndex = findClosingIndex(xmlData, ">", i$1, "Closing Tag is not closed.");
766
+ let tagName = xmlData.substring(i$1 + 2, closeIndex).trim();
767
+ if (this.options.removeNSPrefix) {
768
+ const colonIndex = tagName.indexOf(":");
769
+ if (colonIndex !== -1) tagName = tagName.substr(colonIndex + 1);
770
+ }
771
+ if (this.options.transformTagName) tagName = this.options.transformTagName(tagName);
772
+ if (currentNode) textData = this.saveTextToParentTag(textData, currentNode, jPath);
773
+ const lastTagName = jPath.substring(jPath.lastIndexOf(".") + 1);
774
+ if (tagName && this.options.unpairedTags.indexOf(tagName) !== -1) throw new Error(`Unpaired tag can not be used as closing tag: </${tagName}>`);
775
+ let propIndex = 0;
776
+ if (lastTagName && this.options.unpairedTags.indexOf(lastTagName) !== -1) {
777
+ propIndex = jPath.lastIndexOf(".", jPath.lastIndexOf(".") - 1);
778
+ this.tagsNodeStack.pop();
779
+ } else propIndex = jPath.lastIndexOf(".");
780
+ jPath = jPath.substring(0, propIndex);
781
+ currentNode = this.tagsNodeStack.pop();
782
+ textData = "";
783
+ i$1 = closeIndex;
784
+ } else if (xmlData[i$1 + 1] === "?") {
785
+ let tagData = readTagExp(xmlData, i$1, false, "?>");
786
+ if (!tagData) throw new Error("Pi Tag is not closed.");
787
+ textData = this.saveTextToParentTag(textData, currentNode, jPath);
788
+ if (this.options.ignoreDeclaration && tagData.tagName === "?xml" || this.options.ignorePiTags) {} else {
789
+ const childNode = new XmlNode(tagData.tagName);
790
+ childNode.add(this.options.textNodeName, "");
791
+ if (tagData.tagName !== tagData.tagExp && tagData.attrExpPresent) childNode[":@"] = this.buildAttributesMap(tagData.tagExp, jPath, tagData.tagName);
792
+ this.addChild(currentNode, childNode, jPath, i$1);
793
+ }
794
+ i$1 = tagData.closeIndex + 1;
795
+ } else if (xmlData.substr(i$1 + 1, 3) === "!--") {
796
+ const endIndex = findClosingIndex(xmlData, "-->", i$1 + 4, "Comment is not closed.");
797
+ if (this.options.commentPropName) {
798
+ const comment = xmlData.substring(i$1 + 4, endIndex - 2);
815
799
  textData = this.saveTextToParentTag(textData, currentNode, jPath);
816
- let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true);
817
- if (val == void 0) val = "";
818
- if (this.options.cdataPropName) currentNode.add(this.options.cdataPropName, [{ [this.options.textNodeName]: tagExp }]);
819
- else currentNode.add(this.options.textNodeName, val);
820
- i$1 = closeIndex + 2;
800
+ currentNode.add(this.options.commentPropName, [{ [this.options.textNodeName]: comment }]);
801
+ }
802
+ i$1 = endIndex;
803
+ } else if (xmlData.substr(i$1 + 1, 2) === "!D") {
804
+ const result = readDocType(xmlData, i$1);
805
+ this.docTypeEntities = result.entities;
806
+ i$1 = result.i;
807
+ } else if (xmlData.substr(i$1 + 1, 2) === "![") {
808
+ const closeIndex = findClosingIndex(xmlData, "]]>", i$1, "CDATA is not closed.") - 2;
809
+ const tagExp = xmlData.substring(i$1 + 9, closeIndex);
810
+ textData = this.saveTextToParentTag(textData, currentNode, jPath);
811
+ let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true);
812
+ if (val == void 0) val = "";
813
+ if (this.options.cdataPropName) currentNode.add(this.options.cdataPropName, [{ [this.options.textNodeName]: tagExp }]);
814
+ else currentNode.add(this.options.textNodeName, val);
815
+ i$1 = closeIndex + 2;
816
+ } else {
817
+ let result = readTagExp(xmlData, i$1, this.options.removeNSPrefix);
818
+ let tagName = result.tagName;
819
+ const rawTagName = result.rawTagName;
820
+ let tagExp = result.tagExp;
821
+ let attrExpPresent = result.attrExpPresent;
822
+ let closeIndex = result.closeIndex;
823
+ if (this.options.transformTagName) tagName = this.options.transformTagName(tagName);
824
+ if (currentNode && textData) {
825
+ if (currentNode.tagname !== "!xml") textData = this.saveTextToParentTag(textData, currentNode, jPath, false);
826
+ }
827
+ const lastTag = currentNode;
828
+ if (lastTag && this.options.unpairedTags.indexOf(lastTag.tagname) !== -1) {
829
+ currentNode = this.tagsNodeStack.pop();
830
+ jPath = jPath.substring(0, jPath.lastIndexOf("."));
831
+ }
832
+ if (tagName !== xmlObj.tagname) jPath += jPath ? "." + tagName : tagName;
833
+ const startIndex = i$1;
834
+ if (this.isItStopNode(this.options.stopNodes, jPath, tagName)) {
835
+ let tagContent = "";
836
+ if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
837
+ if (tagName[tagName.length - 1] === "/") {
838
+ tagName = tagName.substr(0, tagName.length - 1);
839
+ jPath = jPath.substr(0, jPath.length - 1);
840
+ tagExp = tagName;
841
+ } else tagExp = tagExp.substr(0, tagExp.length - 1);
842
+ i$1 = result.closeIndex;
843
+ } else if (this.options.unpairedTags.indexOf(tagName) !== -1) i$1 = result.closeIndex;
844
+ else {
845
+ const result$1 = this.readStopNodeData(xmlData, rawTagName, closeIndex + 1);
846
+ if (!result$1) throw new Error(`Unexpected end of ${rawTagName}`);
847
+ i$1 = result$1.i;
848
+ tagContent = result$1.tagContent;
849
+ }
850
+ const childNode = new XmlNode(tagName);
851
+ if (tagName !== tagExp && attrExpPresent) childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
852
+ if (tagContent) tagContent = this.parseTextData(tagContent, tagName, jPath, true, attrExpPresent, true, true);
853
+ jPath = jPath.substr(0, jPath.lastIndexOf("."));
854
+ childNode.add(this.options.textNodeName, tagContent);
855
+ this.addChild(currentNode, childNode, jPath, startIndex);
821
856
  } else {
822
- let result = readTagExp(xmlData, i$1, this.options.removeNSPrefix);
823
- let tagName = result.tagName;
824
- const rawTagName = result.rawTagName;
825
- let tagExp = result.tagExp;
826
- let attrExpPresent = result.attrExpPresent;
827
- let closeIndex = result.closeIndex;
828
- if (this.options.transformTagName) tagName = this.options.transformTagName(tagName);
829
- if (currentNode && textData) {
830
- if (currentNode.tagname !== "!xml") textData = this.saveTextToParentTag(textData, currentNode, jPath, false);
831
- }
832
- const lastTag = currentNode;
833
- if (lastTag && this.options.unpairedTags.indexOf(lastTag.tagname) !== -1) {
834
- currentNode = this.tagsNodeStack.pop();
835
- jPath = jPath.substring(0, jPath.lastIndexOf("."));
836
- }
837
- if (tagName !== xmlObj.tagname) jPath += jPath ? "." + tagName : tagName;
838
- const startIndex = i$1;
839
- if (this.isItStopNode(this.options.stopNodes, jPath, tagName)) {
840
- let tagContent = "";
841
- if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
842
- if (tagName[tagName.length - 1] === "/") {
843
- tagName = tagName.substr(0, tagName.length - 1);
844
- jPath = jPath.substr(0, jPath.length - 1);
845
- tagExp = tagName;
846
- } else tagExp = tagExp.substr(0, tagExp.length - 1);
847
- i$1 = result.closeIndex;
848
- } else if (this.options.unpairedTags.indexOf(tagName) !== -1) i$1 = result.closeIndex;
849
- else {
850
- const result$1 = this.readStopNodeData(xmlData, rawTagName, closeIndex + 1);
851
- if (!result$1) throw new Error(`Unexpected end of ${rawTagName}`);
852
- i$1 = result$1.i;
853
- tagContent = result$1.tagContent;
854
- }
857
+ if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
858
+ if (tagName[tagName.length - 1] === "/") {
859
+ tagName = tagName.substr(0, tagName.length - 1);
860
+ jPath = jPath.substr(0, jPath.length - 1);
861
+ tagExp = tagName;
862
+ } else tagExp = tagExp.substr(0, tagExp.length - 1);
863
+ if (this.options.transformTagName) tagName = this.options.transformTagName(tagName);
855
864
  const childNode = new XmlNode(tagName);
856
865
  if (tagName !== tagExp && attrExpPresent) childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
857
- if (tagContent) tagContent = this.parseTextData(tagContent, tagName, jPath, true, attrExpPresent, true, true);
858
- jPath = jPath.substr(0, jPath.lastIndexOf("."));
859
- childNode.add(this.options.textNodeName, tagContent);
860
866
  this.addChild(currentNode, childNode, jPath, startIndex);
867
+ jPath = jPath.substr(0, jPath.lastIndexOf("."));
861
868
  } else {
862
- if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
863
- if (tagName[tagName.length - 1] === "/") {
864
- tagName = tagName.substr(0, tagName.length - 1);
865
- jPath = jPath.substr(0, jPath.length - 1);
866
- tagExp = tagName;
867
- } else tagExp = tagExp.substr(0, tagExp.length - 1);
868
- if (this.options.transformTagName) tagName = this.options.transformTagName(tagName);
869
- const childNode = new XmlNode(tagName);
870
- if (tagName !== tagExp && attrExpPresent) childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
871
- this.addChild(currentNode, childNode, jPath, startIndex);
872
- jPath = jPath.substr(0, jPath.lastIndexOf("."));
873
- } else {
874
- const childNode = new XmlNode(tagName);
875
- this.tagsNodeStack.push(currentNode);
876
- if (tagName !== tagExp && attrExpPresent) childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
877
- this.addChild(currentNode, childNode, jPath, startIndex);
878
- currentNode = childNode;
879
- }
880
- textData = "";
881
- i$1 = closeIndex;
869
+ const childNode = new XmlNode(tagName);
870
+ this.tagsNodeStack.push(currentNode);
871
+ if (tagName !== tagExp && attrExpPresent) childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
872
+ this.addChild(currentNode, childNode, jPath, startIndex);
873
+ currentNode = childNode;
882
874
  }
875
+ textData = "";
876
+ i$1 = closeIndex;
883
877
  }
884
- else textData += xmlData[i$1];
885
878
  }
879
+ else textData += xmlData[i$1];
886
880
  return xmlObj.child;
887
881
  };
888
882
  function addChild(currentNode, childNode, jPath, startIndex) {
@@ -1005,8 +999,7 @@ function readStopNodeData(xmlData, tagName, i$1) {
1005
999
  let openTagCount = 1;
1006
1000
  for (; i$1 < xmlData.length; i$1++) if (xmlData[i$1] === "<") if (xmlData[i$1 + 1] === "/") {
1007
1001
  const closeIndex = findClosingIndex(xmlData, ">", i$1, `${tagName} is not closed`);
1008
- let closeTagName = xmlData.substring(i$1 + 2, closeIndex).trim();
1009
- if (closeTagName === tagName) {
1002
+ if (xmlData.substring(i$1 + 2, closeIndex).trim() === tagName) {
1010
1003
  openTagCount--;
1011
1004
  if (openTagCount === 0) return {
1012
1005
  tagContent: xmlData.substring(startIndex, i$1),
@@ -1014,20 +1007,13 @@ function readStopNodeData(xmlData, tagName, i$1) {
1014
1007
  };
1015
1008
  }
1016
1009
  i$1 = closeIndex;
1017
- } else if (xmlData[i$1 + 1] === "?") {
1018
- const closeIndex = findClosingIndex(xmlData, "?>", i$1 + 1, "StopNode is not closed.");
1019
- i$1 = closeIndex;
1020
- } else if (xmlData.substr(i$1 + 1, 3) === "!--") {
1021
- const closeIndex = findClosingIndex(xmlData, "-->", i$1 + 3, "StopNode is not closed.");
1022
- i$1 = closeIndex;
1023
- } else if (xmlData.substr(i$1 + 1, 2) === "![") {
1024
- const closeIndex = findClosingIndex(xmlData, "]]>", i$1, "StopNode is not closed.") - 2;
1025
- i$1 = closeIndex;
1026
- } else {
1010
+ } else if (xmlData[i$1 + 1] === "?") i$1 = findClosingIndex(xmlData, "?>", i$1 + 1, "StopNode is not closed.");
1011
+ else if (xmlData.substr(i$1 + 1, 3) === "!--") i$1 = findClosingIndex(xmlData, "-->", i$1 + 3, "StopNode is not closed.");
1012
+ else if (xmlData.substr(i$1 + 1, 2) === "![") i$1 = findClosingIndex(xmlData, "]]>", i$1, "StopNode is not closed.") - 2;
1013
+ else {
1027
1014
  const tagData = readTagExp(xmlData, i$1, ">");
1028
1015
  if (tagData) {
1029
- const openTagName = tagData && tagData.tagName;
1030
- if (openTagName === tagName && tagData.tagExp[tagData.tagExp.length - 1] !== "/") openTagCount++;
1016
+ if ((tagData && tagData.tagName) === tagName && tagData.tagExp[tagData.tagExp.length - 1] !== "/") openTagCount++;
1031
1017
  i$1 = tagData.closeIndex;
1032
1018
  }
1033
1019
  }
@@ -1215,18 +1201,17 @@ function arrToStr(arr, options, jPath, indentation) {
1215
1201
  isPreviousElementTag = true;
1216
1202
  continue;
1217
1203
  } else if (tagName[0] === "?") {
1218
- const attStr$1 = attr_to_str(tagObj[":@"], options);
1204
+ const attStr = attr_to_str(tagObj[":@"], options);
1219
1205
  const tempInd = tagName === "?xml" ? "" : indentation;
1220
1206
  let piTextNodeName = tagObj[tagName][0][options.textNodeName];
1221
1207
  piTextNodeName = piTextNodeName.length !== 0 ? " " + piTextNodeName : "";
1222
- xmlStr += tempInd + `<${tagName}${piTextNodeName}${attStr$1}?>`;
1208
+ xmlStr += tempInd + `<${tagName}${piTextNodeName}${attStr}?>`;
1223
1209
  isPreviousElementTag = true;
1224
1210
  continue;
1225
1211
  }
1226
1212
  let newIdentation = indentation;
1227
1213
  if (newIdentation !== "") newIdentation += options.indentBy;
1228
- const attStr = attr_to_str(tagObj[":@"], options);
1229
- const tagStart = indentation + `<${tagName}${attStr}`;
1214
+ const tagStart = indentation + `<${tagName}${attr_to_str(tagObj[":@"], options)}`;
1230
1215
  const tagValue = arrToStr(tagObj[tagName], options, newJPath, newIdentation);
1231
1216
  if (options.unpairedTags.indexOf(tagName) !== -1) if (options.suppressUnpairedNode) xmlStr += tagStart + ">";
1232
1217
  else xmlStr += tagStart + "/>";
@@ -1510,8 +1495,7 @@ var AndroidConfigParser = class {
1510
1495
  const content = await fs.default.promises.readFile(stringsXmlPath, "utf-8");
1511
1496
  const result = this.parser.parse(content);
1512
1497
  if (!result.resources.string) continue;
1513
- const strings = Array.isArray(result.resources.string) ? result.resources.string : [result.resources.string];
1514
- const stringElement = strings.find((str) => str["@_name"] === key && str["@_moduleConfig"] === "true");
1498
+ const stringElement = (Array.isArray(result.resources.string) ? result.resources.string : [result.resources.string]).find((str) => str["@_name"] === key && str["@_moduleConfig"] === "true");
1515
1499
  if (stringElement?.["#text"]) return {
1516
1500
  value: stringElement["#text"].trim(),
1517
1501
  paths: searchedPaths
@@ -2034,8 +2018,7 @@ var require_dom = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_
2034
2018
  return null;
2035
2019
  },
2036
2020
  isDefaultNamespace: function(namespaceURI) {
2037
- var prefix = this.lookupPrefix(namespaceURI);
2038
- return prefix == null;
2021
+ return this.lookupPrefix(namespaceURI) == null;
2039
2022
  }
2040
2023
  };
2041
2024
  function _xmlEncoder(c) {
@@ -2058,13 +2041,11 @@ var require_dom = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_
2058
2041
  }
2059
2042
  function _onAddAttribute(doc, el, newAttr) {
2060
2043
  doc && doc._inc++;
2061
- var ns = newAttr.namespaceURI;
2062
- if (ns === NAMESPACE$2.XMLNS) el._nsMap[newAttr.prefix ? newAttr.localName : ""] = newAttr.value;
2044
+ if (newAttr.namespaceURI === NAMESPACE$2.XMLNS) el._nsMap[newAttr.prefix ? newAttr.localName : ""] = newAttr.value;
2063
2045
  }
2064
2046
  function _onRemoveAttribute(doc, el, newAttr, remove) {
2065
2047
  doc && doc._inc++;
2066
- var ns = newAttr.namespaceURI;
2067
- if (ns === NAMESPACE$2.XMLNS) delete el._nsMap[newAttr.prefix ? newAttr.localName : ""];
2048
+ if (newAttr.namespaceURI === NAMESPACE$2.XMLNS) delete el._nsMap[newAttr.prefix ? newAttr.localName : ""];
2068
2049
  }
2069
2050
  /**
2070
2051
  * Updates `el.childNodes`, updating the indexed items and it's `length`.
@@ -5209,8 +5190,7 @@ var require_sax = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_
5209
5190
  }
5210
5191
  var localNSMap = config.localNSMap;
5211
5192
  var endMatch = config.tagName == tagName;
5212
- var endIgnoreCaseMach = endMatch || config.tagName && config.tagName.toLowerCase() == tagName.toLowerCase();
5213
- if (endIgnoreCaseMach) {
5193
+ if (endMatch || config.tagName && config.tagName.toLowerCase() == tagName.toLowerCase()) {
5214
5194
  domBuilder.endElement(config.uri, config.localName, tagName);
5215
5195
  if (localNSMap) {
5216
5196
  for (var prefix in localNSMap) if (Object.prototype.hasOwnProperty.call(localNSMap, prefix)) domBuilder.endPrefixMapping(prefix);
@@ -5493,8 +5473,7 @@ var require_sax = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_
5493
5473
  for (var n in source) if (Object.prototype.hasOwnProperty.call(source, n)) target[n] = source[n];
5494
5474
  }
5495
5475
  function parseDCC(source, start, domBuilder, errorHandler) {
5496
- var next = source.charAt(start + 2);
5497
- switch (next) {
5476
+ switch (source.charAt(start + 2)) {
5498
5477
  case "-": if (source.charAt(start + 3) === "-") {
5499
5478
  var end = source.indexOf("-->", start + 4);
5500
5479
  if (end > start) {
@@ -6120,8 +6099,7 @@ var require_Utility = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
6120
6099
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDOMImplementation.js
6121
6100
  var require_XMLDOMImplementation = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDOMImplementation.js": ((exports, module) => {
6122
6101
  (function() {
6123
- var XMLDOMImplementation;
6124
- module.exports = XMLDOMImplementation = class XMLDOMImplementation$1 {
6102
+ module.exports = class XMLDOMImplementation {
6125
6103
  hasFeature(feature, version) {
6126
6104
  return true;
6127
6105
  }
@@ -6145,8 +6123,7 @@ var require_XMLDOMImplementation = /* @__PURE__ */ require_picocolors$1.__common
6145
6123
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js
6146
6124
  var require_XMLDOMErrorHandler = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js": ((exports, module) => {
6147
6125
  (function() {
6148
- var XMLDOMErrorHandler;
6149
- module.exports = XMLDOMErrorHandler = class XMLDOMErrorHandler$1 {
6126
+ module.exports = class XMLDOMErrorHandler {
6150
6127
  constructor() {}
6151
6128
  handleError(error) {
6152
6129
  throw new Error(error);
@@ -6159,9 +6136,8 @@ var require_XMLDOMErrorHandler = /* @__PURE__ */ require_picocolors$1.__commonJS
6159
6136
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDOMStringList.js
6160
6137
  var require_XMLDOMStringList = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDOMStringList.js": ((exports, module) => {
6161
6138
  (function() {
6162
- var XMLDOMStringList;
6163
- module.exports = XMLDOMStringList = (function() {
6164
- class XMLDOMStringList$1 {
6139
+ module.exports = (function() {
6140
+ class XMLDOMStringList {
6165
6141
  constructor(arr) {
6166
6142
  this.arr = arr || [];
6167
6143
  }
@@ -6172,10 +6148,10 @@ var require_XMLDOMStringList = /* @__PURE__ */ require_picocolors$1.__commonJS({
6172
6148
  return this.arr.indexOf(str) !== -1;
6173
6149
  }
6174
6150
  }
6175
- Object.defineProperty(XMLDOMStringList$1.prototype, "length", { get: function() {
6151
+ Object.defineProperty(XMLDOMStringList.prototype, "length", { get: function() {
6176
6152
  return this.arr.length;
6177
6153
  } });
6178
- return XMLDOMStringList$1;
6154
+ return XMLDOMStringList;
6179
6155
  }).call(this);
6180
6156
  }).call(exports);
6181
6157
  }) });
@@ -6184,13 +6160,10 @@ var require_XMLDOMStringList = /* @__PURE__ */ require_picocolors$1.__commonJS({
6184
6160
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js
6185
6161
  var require_XMLDOMConfiguration = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js": ((exports, module) => {
6186
6162
  (function() {
6187
- var XMLDOMConfiguration, XMLDOMErrorHandler, XMLDOMStringList;
6188
- XMLDOMErrorHandler = require_XMLDOMErrorHandler();
6189
- XMLDOMStringList = require_XMLDOMStringList();
6190
- module.exports = XMLDOMConfiguration = (function() {
6191
- class XMLDOMConfiguration$1 {
6163
+ var XMLDOMErrorHandler = require_XMLDOMErrorHandler(), XMLDOMStringList = require_XMLDOMStringList();
6164
+ module.exports = (function() {
6165
+ class XMLDOMConfiguration {
6192
6166
  constructor() {
6193
- var clonedSelf;
6194
6167
  this.defaultParams = {
6195
6168
  "canonical-form": false,
6196
6169
  "cdata-sections": false,
@@ -6210,7 +6183,7 @@ var require_XMLDOMConfiguration = /* @__PURE__ */ require_picocolors$1.__commonJ
6210
6183
  "validate": false,
6211
6184
  "well-formed": true
6212
6185
  };
6213
- this.params = clonedSelf = Object.create(this.defaultParams);
6186
+ this.params = Object.create(this.defaultParams);
6214
6187
  }
6215
6188
  getParameter(name) {
6216
6189
  if (this.params.hasOwnProperty(name)) return this.params[name];
@@ -6224,10 +6197,10 @@ var require_XMLDOMConfiguration = /* @__PURE__ */ require_picocolors$1.__commonJ
6224
6197
  else return delete this.params[name];
6225
6198
  }
6226
6199
  }
6227
- Object.defineProperty(XMLDOMConfiguration$1.prototype, "parameterNames", { get: function() {
6200
+ Object.defineProperty(XMLDOMConfiguration.prototype, "parameterNames", { get: function() {
6228
6201
  return new XMLDOMStringList(Object.keys(this.defaultParams));
6229
6202
  } });
6230
- return XMLDOMConfiguration$1;
6203
+ return XMLDOMConfiguration;
6231
6204
  }).call(this);
6232
6205
  }).call(exports);
6233
6206
  }) });
@@ -6262,11 +6235,10 @@ var require_NodeType = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../
6262
6235
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLAttribute.js
6263
6236
  var require_XMLAttribute = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLAttribute.js": ((exports, module) => {
6264
6237
  (function() {
6265
- var NodeType$1, XMLAttribute, XMLNode;
6266
- NodeType$1 = require_NodeType();
6267
- XMLNode = require_XMLNode();
6268
- module.exports = XMLAttribute = (function() {
6269
- class XMLAttribute$1 {
6238
+ var NodeType$1 = require_NodeType();
6239
+ require_XMLNode();
6240
+ module.exports = (function() {
6241
+ class XMLAttribute {
6270
6242
  constructor(parent, name, value) {
6271
6243
  this.parent = parent;
6272
6244
  if (this.parent) {
@@ -6299,13 +6271,13 @@ var require_XMLAttribute = /* @__PURE__ */ require_picocolors$1.__commonJS({ "..
6299
6271
  return true;
6300
6272
  }
6301
6273
  }
6302
- Object.defineProperty(XMLAttribute$1.prototype, "nodeType", { get: function() {
6274
+ Object.defineProperty(XMLAttribute.prototype, "nodeType", { get: function() {
6303
6275
  return this.type;
6304
6276
  } });
6305
- Object.defineProperty(XMLAttribute$1.prototype, "ownerElement", { get: function() {
6277
+ Object.defineProperty(XMLAttribute.prototype, "ownerElement", { get: function() {
6306
6278
  return this.parent;
6307
6279
  } });
6308
- Object.defineProperty(XMLAttribute$1.prototype, "textContent", {
6280
+ Object.defineProperty(XMLAttribute.prototype, "textContent", {
6309
6281
  get: function() {
6310
6282
  return this.value;
6311
6283
  },
@@ -6313,19 +6285,19 @@ var require_XMLAttribute = /* @__PURE__ */ require_picocolors$1.__commonJS({ "..
6313
6285
  return this.value = value || "";
6314
6286
  }
6315
6287
  });
6316
- Object.defineProperty(XMLAttribute$1.prototype, "namespaceURI", { get: function() {
6288
+ Object.defineProperty(XMLAttribute.prototype, "namespaceURI", { get: function() {
6317
6289
  return "";
6318
6290
  } });
6319
- Object.defineProperty(XMLAttribute$1.prototype, "prefix", { get: function() {
6291
+ Object.defineProperty(XMLAttribute.prototype, "prefix", { get: function() {
6320
6292
  return "";
6321
6293
  } });
6322
- Object.defineProperty(XMLAttribute$1.prototype, "localName", { get: function() {
6294
+ Object.defineProperty(XMLAttribute.prototype, "localName", { get: function() {
6323
6295
  return this.name;
6324
6296
  } });
6325
- Object.defineProperty(XMLAttribute$1.prototype, "specified", { get: function() {
6297
+ Object.defineProperty(XMLAttribute.prototype, "specified", { get: function() {
6326
6298
  return true;
6327
6299
  } });
6328
- return XMLAttribute$1;
6300
+ return XMLAttribute;
6329
6301
  }).call(this);
6330
6302
  }).call(exports);
6331
6303
  }) });
@@ -6334,9 +6306,8 @@ var require_XMLAttribute = /* @__PURE__ */ require_picocolors$1.__commonJS({ "..
6334
6306
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js
6335
6307
  var require_XMLNamedNodeMap = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js": ((exports, module) => {
6336
6308
  (function() {
6337
- var XMLNamedNodeMap;
6338
- module.exports = XMLNamedNodeMap = (function() {
6339
- class XMLNamedNodeMap$1 {
6309
+ module.exports = (function() {
6310
+ class XMLNamedNodeMap {
6340
6311
  constructor(nodes) {
6341
6312
  this.nodes = nodes;
6342
6313
  }
@@ -6347,14 +6318,12 @@ var require_XMLNamedNodeMap = /* @__PURE__ */ require_picocolors$1.__commonJS({
6347
6318
  return this.nodes[name];
6348
6319
  }
6349
6320
  setNamedItem(node) {
6350
- var oldNode;
6351
- oldNode = this.nodes[node.nodeName];
6321
+ var oldNode = this.nodes[node.nodeName];
6352
6322
  this.nodes[node.nodeName] = node;
6353
6323
  return oldNode || null;
6354
6324
  }
6355
6325
  removeNamedItem(name) {
6356
- var oldNode;
6357
- oldNode = this.nodes[name];
6326
+ var oldNode = this.nodes[name];
6358
6327
  delete this.nodes[name];
6359
6328
  return oldNode || null;
6360
6329
  }
@@ -6371,10 +6340,10 @@ var require_XMLNamedNodeMap = /* @__PURE__ */ require_picocolors$1.__commonJS({
6371
6340
  throw new Error("This DOM method is not implemented.");
6372
6341
  }
6373
6342
  }
6374
- Object.defineProperty(XMLNamedNodeMap$1.prototype, "length", { get: function() {
6343
+ Object.defineProperty(XMLNamedNodeMap.prototype, "length", { get: function() {
6375
6344
  return Object.keys(this.nodes).length || 0;
6376
6345
  } });
6377
- return XMLNamedNodeMap$1;
6346
+ return XMLNamedNodeMap;
6378
6347
  }).call(this);
6379
6348
  }).call(exports);
6380
6349
  }) });
@@ -6383,14 +6352,14 @@ var require_XMLNamedNodeMap = /* @__PURE__ */ require_picocolors$1.__commonJS({
6383
6352
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLElement.js
6384
6353
  var require_XMLElement = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLElement.js": ((exports, module) => {
6385
6354
  (function() {
6386
- var NodeType$1, XMLAttribute, XMLElement, XMLNamedNodeMap, XMLNode, getValue, isFunction, isObject$2, hasProp = {}.hasOwnProperty;
6355
+ var NodeType$1, XMLAttribute, XMLNamedNodeMap, XMLNode, getValue, isFunction, isObject$2, hasProp = {}.hasOwnProperty;
6387
6356
  ({isObject: isObject$2, isFunction, getValue} = require_Utility());
6388
6357
  XMLNode = require_XMLNode();
6389
6358
  NodeType$1 = require_NodeType();
6390
6359
  XMLAttribute = require_XMLAttribute();
6391
6360
  XMLNamedNodeMap = require_XMLNamedNodeMap();
6392
- module.exports = XMLElement = (function() {
6393
- class XMLElement$1 extends XMLNode {
6361
+ module.exports = (function() {
6362
+ class XMLElement extends XMLNode {
6394
6363
  constructor(parent, name, attributes) {
6395
6364
  var child, j, len$1, ref;
6396
6365
  super(parent);
@@ -6417,8 +6386,7 @@ var require_XMLElement = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../.
6417
6386
  }
6418
6387
  }
6419
6388
  clone() {
6420
- var att, attName, clonedSelf, ref;
6421
- clonedSelf = Object.create(this);
6389
+ var att, attName, clonedSelf = Object.create(this), ref;
6422
6390
  if (clonedSelf.isRoot) clonedSelf.documentObject = null;
6423
6391
  clonedSelf.attribs = {};
6424
6392
  ref = this.attribs;
@@ -6429,8 +6397,7 @@ var require_XMLElement = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../.
6429
6397
  }
6430
6398
  clonedSelf.children = [];
6431
6399
  this.children.forEach(function(child) {
6432
- var clonedChild;
6433
- clonedChild = child.clone();
6400
+ var clonedChild = child.clone();
6434
6401
  clonedChild.parent = clonedSelf;
6435
6402
  return clonedSelf.children.push(clonedChild);
6436
6403
  });
@@ -6545,32 +6512,32 @@ var require_XMLElement = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../.
6545
6512
  return true;
6546
6513
  }
6547
6514
  }
6548
- Object.defineProperty(XMLElement$1.prototype, "tagName", { get: function() {
6515
+ Object.defineProperty(XMLElement.prototype, "tagName", { get: function() {
6549
6516
  return this.name;
6550
6517
  } });
6551
- Object.defineProperty(XMLElement$1.prototype, "namespaceURI", { get: function() {
6518
+ Object.defineProperty(XMLElement.prototype, "namespaceURI", { get: function() {
6552
6519
  return "";
6553
6520
  } });
6554
- Object.defineProperty(XMLElement$1.prototype, "prefix", { get: function() {
6521
+ Object.defineProperty(XMLElement.prototype, "prefix", { get: function() {
6555
6522
  return "";
6556
6523
  } });
6557
- Object.defineProperty(XMLElement$1.prototype, "localName", { get: function() {
6524
+ Object.defineProperty(XMLElement.prototype, "localName", { get: function() {
6558
6525
  return this.name;
6559
6526
  } });
6560
- Object.defineProperty(XMLElement$1.prototype, "id", { get: function() {
6527
+ Object.defineProperty(XMLElement.prototype, "id", { get: function() {
6561
6528
  throw new Error("This DOM method is not implemented." + this.debugInfo());
6562
6529
  } });
6563
- Object.defineProperty(XMLElement$1.prototype, "className", { get: function() {
6530
+ Object.defineProperty(XMLElement.prototype, "className", { get: function() {
6564
6531
  throw new Error("This DOM method is not implemented." + this.debugInfo());
6565
6532
  } });
6566
- Object.defineProperty(XMLElement$1.prototype, "classList", { get: function() {
6533
+ Object.defineProperty(XMLElement.prototype, "classList", { get: function() {
6567
6534
  throw new Error("This DOM method is not implemented." + this.debugInfo());
6568
6535
  } });
6569
- Object.defineProperty(XMLElement$1.prototype, "attributes", { get: function() {
6536
+ Object.defineProperty(XMLElement.prototype, "attributes", { get: function() {
6570
6537
  if (!this.attributeMap || !this.attributeMap.nodes) this.attributeMap = new XMLNamedNodeMap(this.attribs);
6571
6538
  return this.attributeMap;
6572
6539
  } });
6573
- return XMLElement$1;
6540
+ return XMLElement;
6574
6541
  }).call(this);
6575
6542
  }).call(exports);
6576
6543
  }) });
@@ -6579,10 +6546,9 @@ var require_XMLElement = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../.
6579
6546
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLCharacterData.js
6580
6547
  var require_XMLCharacterData = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLCharacterData.js": ((exports, module) => {
6581
6548
  (function() {
6582
- var XMLCharacterData, XMLNode;
6583
- XMLNode = require_XMLNode();
6584
- module.exports = XMLCharacterData = (function() {
6585
- class XMLCharacterData$1 extends XMLNode {
6549
+ var XMLNode = require_XMLNode();
6550
+ module.exports = (function() {
6551
+ class XMLCharacterData extends XMLNode {
6586
6552
  constructor(parent) {
6587
6553
  super(parent);
6588
6554
  this.value = "";
@@ -6611,7 +6577,7 @@ var require_XMLCharacterData = /* @__PURE__ */ require_picocolors$1.__commonJS({
6611
6577
  return true;
6612
6578
  }
6613
6579
  }
6614
- Object.defineProperty(XMLCharacterData$1.prototype, "data", {
6580
+ Object.defineProperty(XMLCharacterData.prototype, "data", {
6615
6581
  get: function() {
6616
6582
  return this.value;
6617
6583
  },
@@ -6619,10 +6585,10 @@ var require_XMLCharacterData = /* @__PURE__ */ require_picocolors$1.__commonJS({
6619
6585
  return this.value = value || "";
6620
6586
  }
6621
6587
  });
6622
- Object.defineProperty(XMLCharacterData$1.prototype, "length", { get: function() {
6588
+ Object.defineProperty(XMLCharacterData.prototype, "length", { get: function() {
6623
6589
  return this.value.length;
6624
6590
  } });
6625
- Object.defineProperty(XMLCharacterData$1.prototype, "textContent", {
6591
+ Object.defineProperty(XMLCharacterData.prototype, "textContent", {
6626
6592
  get: function() {
6627
6593
  return this.value;
6628
6594
  },
@@ -6630,7 +6596,7 @@ var require_XMLCharacterData = /* @__PURE__ */ require_picocolors$1.__commonJS({
6630
6596
  return this.value = value || "";
6631
6597
  }
6632
6598
  });
6633
- return XMLCharacterData$1;
6599
+ return XMLCharacterData;
6634
6600
  }).call(this);
6635
6601
  }).call(exports);
6636
6602
  }) });
@@ -6639,10 +6605,8 @@ var require_XMLCharacterData = /* @__PURE__ */ require_picocolors$1.__commonJS({
6639
6605
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLCData.js
6640
6606
  var require_XMLCData = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLCData.js": ((exports, module) => {
6641
6607
  (function() {
6642
- var NodeType$1, XMLCData, XMLCharacterData;
6643
- NodeType$1 = require_NodeType();
6644
- XMLCharacterData = require_XMLCharacterData();
6645
- module.exports = XMLCData = class XMLCData$1 extends XMLCharacterData {
6608
+ var NodeType$1 = require_NodeType(), XMLCharacterData = require_XMLCharacterData();
6609
+ module.exports = class XMLCData extends XMLCharacterData {
6646
6610
  constructor(parent, text) {
6647
6611
  super(parent);
6648
6612
  if (text == null) throw new Error("Missing CDATA text. " + this.debugInfo());
@@ -6664,10 +6628,8 @@ var require_XMLCData = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../
6664
6628
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLComment.js
6665
6629
  var require_XMLComment = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLComment.js": ((exports, module) => {
6666
6630
  (function() {
6667
- var NodeType$1, XMLCharacterData, XMLComment;
6668
- NodeType$1 = require_NodeType();
6669
- XMLCharacterData = require_XMLCharacterData();
6670
- module.exports = XMLComment = class XMLComment$1 extends XMLCharacterData {
6631
+ var NodeType$1 = require_NodeType(), XMLCharacterData = require_XMLCharacterData();
6632
+ module.exports = class XMLComment extends XMLCharacterData {
6671
6633
  constructor(parent, text) {
6672
6634
  super(parent);
6673
6635
  if (text == null) throw new Error("Missing comment text. " + this.debugInfo());
@@ -6689,11 +6651,11 @@ var require_XMLComment = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../.
6689
6651
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDeclaration.js
6690
6652
  var require_XMLDeclaration = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDeclaration.js": ((exports, module) => {
6691
6653
  (function() {
6692
- var NodeType$1, XMLDeclaration, XMLNode, isObject$2;
6654
+ var NodeType$1, XMLNode, isObject$2;
6693
6655
  ({isObject: isObject$2} = require_Utility());
6694
6656
  XMLNode = require_XMLNode();
6695
6657
  NodeType$1 = require_NodeType();
6696
- module.exports = XMLDeclaration = class XMLDeclaration$1 extends XMLNode {
6658
+ module.exports = class XMLDeclaration extends XMLNode {
6697
6659
  constructor(parent, version, encoding, standalone) {
6698
6660
  super(parent);
6699
6661
  if (isObject$2(version)) ({version, encoding, standalone} = version);
@@ -6714,10 +6676,9 @@ var require_XMLDeclaration = /* @__PURE__ */ require_picocolors$1.__commonJS({ "
6714
6676
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDTDAttList.js
6715
6677
  var require_XMLDTDAttList = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDTDAttList.js": ((exports, module) => {
6716
6678
  (function() {
6717
- var NodeType$1, XMLDTDAttList, XMLNode;
6718
- XMLNode = require_XMLNode();
6679
+ var NodeType$1, XMLNode = require_XMLNode();
6719
6680
  NodeType$1 = require_NodeType();
6720
- module.exports = XMLDTDAttList = class XMLDTDAttList$1 extends XMLNode {
6681
+ module.exports = class XMLDTDAttList extends XMLNode {
6721
6682
  constructor(parent, elementName, attributeName, attributeType, defaultValueType, defaultValue) {
6722
6683
  super(parent);
6723
6684
  if (elementName == null) throw new Error("Missing DTD element name. " + this.debugInfo());
@@ -6745,12 +6706,12 @@ var require_XMLDTDAttList = /* @__PURE__ */ require_picocolors$1.__commonJS({ ".
6745
6706
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDTDEntity.js
6746
6707
  var require_XMLDTDEntity = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDTDEntity.js": ((exports, module) => {
6747
6708
  (function() {
6748
- var NodeType$1, XMLDTDEntity, XMLNode, isObject$2;
6709
+ var NodeType$1, XMLNode, isObject$2;
6749
6710
  ({isObject: isObject$2} = require_Utility());
6750
6711
  XMLNode = require_XMLNode();
6751
6712
  NodeType$1 = require_NodeType();
6752
- module.exports = XMLDTDEntity = (function() {
6753
- class XMLDTDEntity$1 extends XMLNode {
6713
+ module.exports = (function() {
6714
+ class XMLDTDEntity extends XMLNode {
6754
6715
  constructor(parent, pe, name, value) {
6755
6716
  super(parent);
6756
6717
  if (name == null) throw new Error("Missing DTD entity name. " + this.debugInfo(name));
@@ -6775,25 +6736,25 @@ var require_XMLDTDEntity = /* @__PURE__ */ require_picocolors$1.__commonJS({ "..
6775
6736
  return this.options.writer.dtdEntity(this, this.options.writer.filterOptions(options));
6776
6737
  }
6777
6738
  }
6778
- Object.defineProperty(XMLDTDEntity$1.prototype, "publicId", { get: function() {
6739
+ Object.defineProperty(XMLDTDEntity.prototype, "publicId", { get: function() {
6779
6740
  return this.pubID;
6780
6741
  } });
6781
- Object.defineProperty(XMLDTDEntity$1.prototype, "systemId", { get: function() {
6742
+ Object.defineProperty(XMLDTDEntity.prototype, "systemId", { get: function() {
6782
6743
  return this.sysID;
6783
6744
  } });
6784
- Object.defineProperty(XMLDTDEntity$1.prototype, "notationName", { get: function() {
6745
+ Object.defineProperty(XMLDTDEntity.prototype, "notationName", { get: function() {
6785
6746
  return this.nData || null;
6786
6747
  } });
6787
- Object.defineProperty(XMLDTDEntity$1.prototype, "inputEncoding", { get: function() {
6748
+ Object.defineProperty(XMLDTDEntity.prototype, "inputEncoding", { get: function() {
6788
6749
  return null;
6789
6750
  } });
6790
- Object.defineProperty(XMLDTDEntity$1.prototype, "xmlEncoding", { get: function() {
6751
+ Object.defineProperty(XMLDTDEntity.prototype, "xmlEncoding", { get: function() {
6791
6752
  return null;
6792
6753
  } });
6793
- Object.defineProperty(XMLDTDEntity$1.prototype, "xmlVersion", { get: function() {
6754
+ Object.defineProperty(XMLDTDEntity.prototype, "xmlVersion", { get: function() {
6794
6755
  return null;
6795
6756
  } });
6796
- return XMLDTDEntity$1;
6757
+ return XMLDTDEntity;
6797
6758
  }).call(this);
6798
6759
  }).call(exports);
6799
6760
  }) });
@@ -6802,10 +6763,9 @@ var require_XMLDTDEntity = /* @__PURE__ */ require_picocolors$1.__commonJS({ "..
6802
6763
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDTDElement.js
6803
6764
  var require_XMLDTDElement = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDTDElement.js": ((exports, module) => {
6804
6765
  (function() {
6805
- var NodeType$1, XMLDTDElement, XMLNode;
6806
- XMLNode = require_XMLNode();
6766
+ var NodeType$1, XMLNode = require_XMLNode();
6807
6767
  NodeType$1 = require_NodeType();
6808
- module.exports = XMLDTDElement = class XMLDTDElement$1 extends XMLNode {
6768
+ module.exports = class XMLDTDElement extends XMLNode {
6809
6769
  constructor(parent, name, value) {
6810
6770
  super(parent);
6811
6771
  if (name == null) throw new Error("Missing DTD element name. " + this.debugInfo());
@@ -6826,11 +6786,10 @@ var require_XMLDTDElement = /* @__PURE__ */ require_picocolors$1.__commonJS({ ".
6826
6786
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDTDNotation.js
6827
6787
  var require_XMLDTDNotation = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDTDNotation.js": ((exports, module) => {
6828
6788
  (function() {
6829
- var NodeType$1, XMLDTDNotation, XMLNode;
6830
- XMLNode = require_XMLNode();
6789
+ var NodeType$1, XMLNode = require_XMLNode();
6831
6790
  NodeType$1 = require_NodeType();
6832
- module.exports = XMLDTDNotation = (function() {
6833
- class XMLDTDNotation$1 extends XMLNode {
6791
+ module.exports = (function() {
6792
+ class XMLDTDNotation extends XMLNode {
6834
6793
  constructor(parent, name, value) {
6835
6794
  super(parent);
6836
6795
  if (name == null) throw new Error("Missing DTD notation name. " + this.debugInfo(name));
@@ -6844,13 +6803,13 @@ var require_XMLDTDNotation = /* @__PURE__ */ require_picocolors$1.__commonJS({ "
6844
6803
  return this.options.writer.dtdNotation(this, this.options.writer.filterOptions(options));
6845
6804
  }
6846
6805
  }
6847
- Object.defineProperty(XMLDTDNotation$1.prototype, "publicId", { get: function() {
6806
+ Object.defineProperty(XMLDTDNotation.prototype, "publicId", { get: function() {
6848
6807
  return this.pubID;
6849
6808
  } });
6850
- Object.defineProperty(XMLDTDNotation$1.prototype, "systemId", { get: function() {
6809
+ Object.defineProperty(XMLDTDNotation.prototype, "systemId", { get: function() {
6851
6810
  return this.sysID;
6852
6811
  } });
6853
- return XMLDTDNotation$1;
6812
+ return XMLDTDNotation;
6854
6813
  }).call(this);
6855
6814
  }).call(exports);
6856
6815
  }) });
@@ -6859,7 +6818,7 @@ var require_XMLDTDNotation = /* @__PURE__ */ require_picocolors$1.__commonJS({ "
6859
6818
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDocType.js
6860
6819
  var require_XMLDocType = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDocType.js": ((exports, module) => {
6861
6820
  (function() {
6862
- var NodeType$1, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDocType, XMLNamedNodeMap, XMLNode, isObject$2;
6821
+ var NodeType$1, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLNamedNodeMap, XMLNode, isObject$2;
6863
6822
  ({isObject: isObject$2} = require_Utility());
6864
6823
  XMLNode = require_XMLNode();
6865
6824
  NodeType$1 = require_NodeType();
@@ -6868,8 +6827,8 @@ var require_XMLDocType = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../.
6868
6827
  XMLDTDElement = require_XMLDTDElement();
6869
6828
  XMLDTDNotation = require_XMLDTDNotation();
6870
6829
  XMLNamedNodeMap = require_XMLNamedNodeMap();
6871
- module.exports = XMLDocType = (function() {
6872
- class XMLDocType$1 extends XMLNode {
6830
+ module.exports = (function() {
6831
+ class XMLDocType extends XMLNode {
6873
6832
  constructor(parent, pubID, sysID) {
6874
6833
  var child, i$1, len$1, ref;
6875
6834
  super(parent);
@@ -6891,32 +6850,27 @@ var require_XMLDocType = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../.
6891
6850
  if (sysID != null) this.sysID = this.stringify.dtdSysID(sysID);
6892
6851
  }
6893
6852
  element(name, value) {
6894
- var child;
6895
- child = new XMLDTDElement(this, name, value);
6853
+ var child = new XMLDTDElement(this, name, value);
6896
6854
  this.children.push(child);
6897
6855
  return this;
6898
6856
  }
6899
6857
  attList(elementName, attributeName, attributeType, defaultValueType, defaultValue) {
6900
- var child;
6901
- child = new XMLDTDAttList(this, elementName, attributeName, attributeType, defaultValueType, defaultValue);
6858
+ var child = new XMLDTDAttList(this, elementName, attributeName, attributeType, defaultValueType, defaultValue);
6902
6859
  this.children.push(child);
6903
6860
  return this;
6904
6861
  }
6905
6862
  entity(name, value) {
6906
- var child;
6907
- child = new XMLDTDEntity(this, false, name, value);
6863
+ var child = new XMLDTDEntity(this, false, name, value);
6908
6864
  this.children.push(child);
6909
6865
  return this;
6910
6866
  }
6911
6867
  pEntity(name, value) {
6912
- var child;
6913
- child = new XMLDTDEntity(this, true, name, value);
6868
+ var child = new XMLDTDEntity(this, true, name, value);
6914
6869
  this.children.push(child);
6915
6870
  return this;
6916
6871
  }
6917
6872
  notation(name, value) {
6918
- var child;
6919
- child = new XMLDTDNotation(this, name, value);
6873
+ var child = new XMLDTDNotation(this, name, value);
6920
6874
  this.children.push(child);
6921
6875
  return this;
6922
6876
  }
@@ -6949,36 +6903,32 @@ var require_XMLDocType = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../.
6949
6903
  return true;
6950
6904
  }
6951
6905
  }
6952
- Object.defineProperty(XMLDocType$1.prototype, "entities", { get: function() {
6953
- var child, i$1, len$1, nodes, ref;
6954
- nodes = {};
6955
- ref = this.children;
6906
+ Object.defineProperty(XMLDocType.prototype, "entities", { get: function() {
6907
+ var child, i$1, len$1, nodes = {}, ref = this.children;
6956
6908
  for (i$1 = 0, len$1 = ref.length; i$1 < len$1; i$1++) {
6957
6909
  child = ref[i$1];
6958
6910
  if (child.type === NodeType$1.EntityDeclaration && !child.pe) nodes[child.name] = child;
6959
6911
  }
6960
6912
  return new XMLNamedNodeMap(nodes);
6961
6913
  } });
6962
- Object.defineProperty(XMLDocType$1.prototype, "notations", { get: function() {
6963
- var child, i$1, len$1, nodes, ref;
6964
- nodes = {};
6965
- ref = this.children;
6914
+ Object.defineProperty(XMLDocType.prototype, "notations", { get: function() {
6915
+ var child, i$1, len$1, nodes = {}, ref = this.children;
6966
6916
  for (i$1 = 0, len$1 = ref.length; i$1 < len$1; i$1++) {
6967
6917
  child = ref[i$1];
6968
6918
  if (child.type === NodeType$1.NotationDeclaration) nodes[child.name] = child;
6969
6919
  }
6970
6920
  return new XMLNamedNodeMap(nodes);
6971
6921
  } });
6972
- Object.defineProperty(XMLDocType$1.prototype, "publicId", { get: function() {
6922
+ Object.defineProperty(XMLDocType.prototype, "publicId", { get: function() {
6973
6923
  return this.pubID;
6974
6924
  } });
6975
- Object.defineProperty(XMLDocType$1.prototype, "systemId", { get: function() {
6925
+ Object.defineProperty(XMLDocType.prototype, "systemId", { get: function() {
6976
6926
  return this.sysID;
6977
6927
  } });
6978
- Object.defineProperty(XMLDocType$1.prototype, "internalSubset", { get: function() {
6928
+ Object.defineProperty(XMLDocType.prototype, "internalSubset", { get: function() {
6979
6929
  throw new Error("This DOM method is not implemented." + this.debugInfo());
6980
6930
  } });
6981
- return XMLDocType$1;
6931
+ return XMLDocType;
6982
6932
  }).call(this);
6983
6933
  }).call(exports);
6984
6934
  }) });
@@ -6987,10 +6937,8 @@ var require_XMLDocType = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../.
6987
6937
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLRaw.js
6988
6938
  var require_XMLRaw = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLRaw.js": ((exports, module) => {
6989
6939
  (function() {
6990
- var NodeType$1, XMLNode, XMLRaw;
6991
- NodeType$1 = require_NodeType();
6992
- XMLNode = require_XMLNode();
6993
- module.exports = XMLRaw = class XMLRaw$1 extends XMLNode {
6940
+ var NodeType$1 = require_NodeType(), XMLNode = require_XMLNode();
6941
+ module.exports = class XMLRaw extends XMLNode {
6994
6942
  constructor(parent, text) {
6995
6943
  super(parent);
6996
6944
  if (text == null) throw new Error("Missing raw text. " + this.debugInfo());
@@ -7011,11 +6959,9 @@ var require_XMLRaw = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../no
7011
6959
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLText.js
7012
6960
  var require_XMLText = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLText.js": ((exports, module) => {
7013
6961
  (function() {
7014
- var NodeType$1, XMLCharacterData, XMLText;
7015
- NodeType$1 = require_NodeType();
7016
- XMLCharacterData = require_XMLCharacterData();
7017
- module.exports = XMLText = (function() {
7018
- class XMLText$1 extends XMLCharacterData {
6962
+ var NodeType$1 = require_NodeType(), XMLCharacterData = require_XMLCharacterData();
6963
+ module.exports = (function() {
6964
+ class XMLText extends XMLCharacterData {
7019
6965
  constructor(parent, text) {
7020
6966
  super(parent);
7021
6967
  if (text == null) throw new Error("Missing element text. " + this.debugInfo());
@@ -7036,12 +6982,11 @@ var require_XMLText = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
7036
6982
  throw new Error("This DOM method is not implemented." + this.debugInfo());
7037
6983
  }
7038
6984
  }
7039
- Object.defineProperty(XMLText$1.prototype, "isElementContentWhitespace", { get: function() {
6985
+ Object.defineProperty(XMLText.prototype, "isElementContentWhitespace", { get: function() {
7040
6986
  throw new Error("This DOM method is not implemented." + this.debugInfo());
7041
6987
  } });
7042
- Object.defineProperty(XMLText$1.prototype, "wholeText", { get: function() {
7043
- var next, prev, str;
7044
- str = "";
6988
+ Object.defineProperty(XMLText.prototype, "wholeText", { get: function() {
6989
+ var next, prev, str = "";
7045
6990
  prev = this.previousSibling;
7046
6991
  while (prev) {
7047
6992
  str = prev.data + str;
@@ -7055,7 +7000,7 @@ var require_XMLText = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
7055
7000
  }
7056
7001
  return str;
7057
7002
  } });
7058
- return XMLText$1;
7003
+ return XMLText;
7059
7004
  }).call(this);
7060
7005
  }).call(exports);
7061
7006
  }) });
@@ -7064,10 +7009,8 @@ var require_XMLText = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
7064
7009
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js
7065
7010
  var require_XMLProcessingInstruction = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js": ((exports, module) => {
7066
7011
  (function() {
7067
- var NodeType$1, XMLCharacterData, XMLProcessingInstruction;
7068
- NodeType$1 = require_NodeType();
7069
- XMLCharacterData = require_XMLCharacterData();
7070
- module.exports = XMLProcessingInstruction = class XMLProcessingInstruction$1 extends XMLCharacterData {
7012
+ var NodeType$1 = require_NodeType(), XMLCharacterData = require_XMLCharacterData();
7013
+ module.exports = class XMLProcessingInstruction extends XMLCharacterData {
7071
7014
  constructor(parent, target, value) {
7072
7015
  super(parent);
7073
7016
  if (target == null) throw new Error("Missing instruction target. " + this.debugInfo());
@@ -7095,10 +7038,9 @@ var require_XMLProcessingInstruction = /* @__PURE__ */ require_picocolors$1.__co
7095
7038
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDummy.js
7096
7039
  var require_XMLDummy = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDummy.js": ((exports, module) => {
7097
7040
  (function() {
7098
- var NodeType$1, XMLDummy, XMLNode;
7099
- XMLNode = require_XMLNode();
7041
+ var NodeType$1, XMLNode = require_XMLNode();
7100
7042
  NodeType$1 = require_NodeType();
7101
- module.exports = XMLDummy = class XMLDummy$1 extends XMLNode {
7043
+ module.exports = class XMLDummy extends XMLNode {
7102
7044
  constructor(parent) {
7103
7045
  super(parent);
7104
7046
  this.type = NodeType$1.Dummy;
@@ -7117,9 +7059,8 @@ var require_XMLDummy = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../
7117
7059
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLNodeList.js
7118
7060
  var require_XMLNodeList = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLNodeList.js": ((exports, module) => {
7119
7061
  (function() {
7120
- var XMLNodeList;
7121
- module.exports = XMLNodeList = (function() {
7122
- class XMLNodeList$1 {
7062
+ module.exports = (function() {
7063
+ class XMLNodeList {
7123
7064
  constructor(nodes) {
7124
7065
  this.nodes = nodes;
7125
7066
  }
@@ -7130,10 +7071,10 @@ var require_XMLNodeList = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../
7130
7071
  return this.nodes[index] || null;
7131
7072
  }
7132
7073
  }
7133
- Object.defineProperty(XMLNodeList$1.prototype, "length", { get: function() {
7074
+ Object.defineProperty(XMLNodeList.prototype, "length", { get: function() {
7134
7075
  return this.nodes.length || 0;
7135
7076
  } });
7136
- return XMLNodeList$1;
7077
+ return XMLNodeList;
7137
7078
  }).call(this);
7138
7079
  }).call(exports);
7139
7080
  }) });
@@ -7157,7 +7098,7 @@ var require_DocumentPosition = /* @__PURE__ */ require_picocolors$1.__commonJS({
7157
7098
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLNode.js
7158
7099
  var require_XMLNode = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLNode.js": ((exports, module) => {
7159
7100
  (function() {
7160
- var DocumentPosition, NodeType$1, XMLCData, XMLComment, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLNamedNodeMap, XMLNode, XMLNodeList, XMLProcessingInstruction, XMLRaw, XMLText, getValue, isEmpty$1, isFunction, isObject$2, hasProp = {}.hasOwnProperty, splice = [].splice;
7101
+ var DocumentPosition, NodeType$1, XMLCData, XMLComment, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLNodeList, XMLProcessingInstruction, XMLRaw, XMLText, getValue, isEmpty$1, isFunction, isObject$2, hasProp = {}.hasOwnProperty, splice = [].splice;
7161
7102
  ({isObject: isObject$2, isFunction, isEmpty: isEmpty$1, getValue} = require_Utility());
7162
7103
  XMLElement = null;
7163
7104
  XMLCData = null;
@@ -7170,10 +7111,9 @@ var require_XMLNode = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
7170
7111
  XMLDummy = null;
7171
7112
  NodeType$1 = null;
7172
7113
  XMLNodeList = null;
7173
- XMLNamedNodeMap = null;
7174
7114
  DocumentPosition = null;
7175
- module.exports = XMLNode = (function() {
7176
- class XMLNode$1 {
7115
+ module.exports = (function() {
7116
+ class XMLNode {
7177
7117
  constructor(parent1) {
7178
7118
  this.parent = parent1;
7179
7119
  if (this.parent) {
@@ -7195,7 +7135,7 @@ var require_XMLNode = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
7195
7135
  XMLDummy = require_XMLDummy();
7196
7136
  NodeType$1 = require_NodeType();
7197
7137
  XMLNodeList = require_XMLNodeList();
7198
- XMLNamedNodeMap = require_XMLNamedNodeMap();
7138
+ require_XMLNamedNodeMap();
7199
7139
  DocumentPosition = require_DocumentPosition();
7200
7140
  }
7201
7141
  }
@@ -7215,8 +7155,7 @@ var require_XMLNode = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
7215
7155
  return results;
7216
7156
  }
7217
7157
  element(name, attributes, text) {
7218
- var childNode, item, j, k, key, lastChild, len$1, len1, val;
7219
- lastChild = null;
7158
+ var childNode, item, j, k, key, lastChild = null, len$1, len1, val;
7220
7159
  if (attributes === null && text == null) [attributes, text] = [{}, null];
7221
7160
  if (attributes == null) attributes = {};
7222
7161
  attributes = getValue(attributes);
@@ -7290,10 +7229,10 @@ var require_XMLNode = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
7290
7229
  return child;
7291
7230
  }
7292
7231
  remove() {
7293
- var i$1, ref1;
7232
+ var i$1;
7294
7233
  if (this.isRoot) throw new Error("Cannot remove the root element. " + this.debugInfo());
7295
7234
  i$1 = this.parent.children.indexOf(this);
7296
- splice.apply(this.parent.children, [i$1, i$1 - i$1 + 1].concat(ref1 = []));
7235
+ splice.apply(this.parent.children, [i$1, i$1 - i$1 + 1].concat([]));
7297
7236
  return this.parent;
7298
7237
  }
7299
7238
  node(name, attributes, text) {
@@ -7315,43 +7254,34 @@ var require_XMLNode = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
7315
7254
  return this;
7316
7255
  }
7317
7256
  cdata(value) {
7318
- var child;
7319
- child = new XMLCData(this, value);
7257
+ var child = new XMLCData(this, value);
7320
7258
  this.children.push(child);
7321
7259
  return this;
7322
7260
  }
7323
7261
  comment(value) {
7324
- var child;
7325
- child = new XMLComment(this, value);
7262
+ var child = new XMLComment(this, value);
7326
7263
  this.children.push(child);
7327
7264
  return this;
7328
7265
  }
7329
7266
  commentBefore(value) {
7330
- var child, i$1, removed;
7331
- i$1 = this.parent.children.indexOf(this);
7332
- removed = this.parent.children.splice(i$1);
7333
- child = this.parent.comment(value);
7267
+ var i$1 = this.parent.children.indexOf(this), removed = this.parent.children.splice(i$1);
7268
+ this.parent.comment(value);
7334
7269
  Array.prototype.push.apply(this.parent.children, removed);
7335
7270
  return this;
7336
7271
  }
7337
7272
  commentAfter(value) {
7338
- var child, i$1, removed;
7339
- i$1 = this.parent.children.indexOf(this);
7340
- removed = this.parent.children.splice(i$1 + 1);
7341
- child = this.parent.comment(value);
7273
+ var i$1 = this.parent.children.indexOf(this), removed = this.parent.children.splice(i$1 + 1);
7274
+ this.parent.comment(value);
7342
7275
  Array.prototype.push.apply(this.parent.children, removed);
7343
7276
  return this;
7344
7277
  }
7345
7278
  raw(value) {
7346
- var child;
7347
- child = new XMLRaw(this, value);
7279
+ var child = new XMLRaw(this, value);
7348
7280
  this.children.push(child);
7349
7281
  return this;
7350
7282
  }
7351
7283
  dummy() {
7352
- var child;
7353
- child = new XMLDummy(this);
7354
- return child;
7284
+ return new XMLDummy(this);
7355
7285
  }
7356
7286
  instruction(target, value) {
7357
7287
  var insTarget, insValue, instruction, j, len$1;
@@ -7374,35 +7304,26 @@ var require_XMLNode = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
7374
7304
  return this;
7375
7305
  }
7376
7306
  instructionBefore(target, value) {
7377
- var child, i$1, removed;
7378
- i$1 = this.parent.children.indexOf(this);
7379
- removed = this.parent.children.splice(i$1);
7380
- child = this.parent.instruction(target, value);
7307
+ var i$1 = this.parent.children.indexOf(this), removed = this.parent.children.splice(i$1);
7308
+ this.parent.instruction(target, value);
7381
7309
  Array.prototype.push.apply(this.parent.children, removed);
7382
7310
  return this;
7383
7311
  }
7384
7312
  instructionAfter(target, value) {
7385
- var child, i$1, removed;
7386
- i$1 = this.parent.children.indexOf(this);
7387
- removed = this.parent.children.splice(i$1 + 1);
7388
- child = this.parent.instruction(target, value);
7313
+ var i$1 = this.parent.children.indexOf(this), removed = this.parent.children.splice(i$1 + 1);
7314
+ this.parent.instruction(target, value);
7389
7315
  Array.prototype.push.apply(this.parent.children, removed);
7390
7316
  return this;
7391
7317
  }
7392
7318
  declaration(version, encoding, standalone) {
7393
- var doc, xmldec;
7394
- doc = this.document();
7395
- xmldec = new XMLDeclaration(doc, version, encoding, standalone);
7319
+ var doc = this.document(), xmldec = new XMLDeclaration(doc, version, encoding, standalone);
7396
7320
  if (doc.children.length === 0) doc.children.unshift(xmldec);
7397
7321
  else if (doc.children[0].type === NodeType$1.Declaration) doc.children[0] = xmldec;
7398
7322
  else doc.children.unshift(xmldec);
7399
7323
  return doc.root() || doc;
7400
7324
  }
7401
7325
  dtd(pubID, sysID) {
7402
- var child, doc, doctype, i$1, j, k, len$1, len1, ref1, ref2;
7403
- doc = this.document();
7404
- doctype = new XMLDocType(doc, pubID, sysID);
7405
- ref1 = doc.children;
7326
+ var child, doc = this.document(), doctype = new XMLDocType(doc, pubID, sysID), i$1, j, k, len$1, len1, ref1 = doc.children, ref2;
7406
7327
  for (i$1 = j = 0, len$1 = ref1.length; j < len$1; i$1 = ++j) {
7407
7328
  child = ref1[i$1];
7408
7329
  if (child.type === NodeType$1.DocType) {
@@ -7426,15 +7347,13 @@ var require_XMLNode = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
7426
7347
  return this.parent;
7427
7348
  }
7428
7349
  root() {
7429
- var node;
7430
- node = this;
7350
+ var node = this;
7431
7351
  while (node) if (node.type === NodeType$1.Document) return node.rootObject;
7432
7352
  else if (node.isRoot) return node;
7433
7353
  else node = node.parent;
7434
7354
  }
7435
7355
  document() {
7436
- var node;
7437
- node = this;
7356
+ var node = this;
7438
7357
  while (node) if (node.type === NodeType$1.Document) return node;
7439
7358
  else node = node.parent;
7440
7359
  }
@@ -7442,20 +7361,17 @@ var require_XMLNode = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
7442
7361
  return this.document().end(options);
7443
7362
  }
7444
7363
  prev() {
7445
- var i$1;
7446
- i$1 = this.parent.children.indexOf(this);
7364
+ var i$1 = this.parent.children.indexOf(this);
7447
7365
  if (i$1 < 1) throw new Error("Already at the first node. " + this.debugInfo());
7448
7366
  return this.parent.children[i$1 - 1];
7449
7367
  }
7450
7368
  next() {
7451
- var i$1;
7452
- i$1 = this.parent.children.indexOf(this);
7369
+ var i$1 = this.parent.children.indexOf(this);
7453
7370
  if (i$1 === -1 || i$1 === this.parent.children.length - 1) throw new Error("Already at the last node. " + this.debugInfo());
7454
7371
  return this.parent.children[i$1 + 1];
7455
7372
  }
7456
7373
  importDocument(doc) {
7457
- var child, clonedRoot, j, len$1, ref1;
7458
- clonedRoot = doc.root().clone();
7374
+ var child, clonedRoot = doc.root().clone(), j, len$1, ref1;
7459
7375
  clonedRoot.parent = this;
7460
7376
  clonedRoot.isRoot = false;
7461
7377
  this.children.push(clonedRoot);
@@ -7572,8 +7488,7 @@ var require_XMLNode = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
7572
7488
  return this.attribs.length !== 0;
7573
7489
  }
7574
7490
  compareDocumentPosition(other) {
7575
- var ref, res;
7576
- ref = this;
7491
+ var ref = this, res;
7577
7492
  if (ref === other) return 0;
7578
7493
  else if (this.document() !== other.document()) {
7579
7494
  res = DocumentPosition.Disconnected | DocumentPosition.ImplementationSpecific;
@@ -7618,8 +7533,7 @@ var require_XMLNode = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
7618
7533
  return other === this || this.isDescendant(other);
7619
7534
  }
7620
7535
  isDescendant(node) {
7621
- var child, isDescendantChild, j, len$1, ref1;
7622
- ref1 = this.children;
7536
+ var child, isDescendantChild, j, len$1, ref1 = this.children;
7623
7537
  for (j = 0, len$1 = ref1.length; j < len$1; j++) {
7624
7538
  child = ref1[j];
7625
7539
  if (node === child) return true;
@@ -7632,22 +7546,17 @@ var require_XMLNode = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
7632
7546
  return node.isDescendant(this);
7633
7547
  }
7634
7548
  isPreceding(node) {
7635
- var nodePos, thisPos;
7636
- nodePos = this.treePosition(node);
7637
- thisPos = this.treePosition(this);
7549
+ var nodePos = this.treePosition(node), thisPos = this.treePosition(this);
7638
7550
  if (nodePos === -1 || thisPos === -1) return false;
7639
7551
  else return nodePos < thisPos;
7640
7552
  }
7641
7553
  isFollowing(node) {
7642
- var nodePos, thisPos;
7643
- nodePos = this.treePosition(node);
7644
- thisPos = this.treePosition(this);
7554
+ var nodePos = this.treePosition(node), thisPos = this.treePosition(this);
7645
7555
  if (nodePos === -1 || thisPos === -1) return false;
7646
7556
  else return nodePos > thisPos;
7647
7557
  }
7648
7558
  treePosition(node) {
7649
- var found, pos;
7650
- pos = 0;
7559
+ var found, pos = 0;
7651
7560
  found = false;
7652
7561
  this.foreachTreeNode(this.document(), function(childNode) {
7653
7562
  pos++;
@@ -7670,42 +7579,40 @@ var require_XMLNode = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
7670
7579
  }
7671
7580
  }
7672
7581
  }
7673
- Object.defineProperty(XMLNode$1.prototype, "nodeName", { get: function() {
7582
+ Object.defineProperty(XMLNode.prototype, "nodeName", { get: function() {
7674
7583
  return this.name;
7675
7584
  } });
7676
- Object.defineProperty(XMLNode$1.prototype, "nodeType", { get: function() {
7585
+ Object.defineProperty(XMLNode.prototype, "nodeType", { get: function() {
7677
7586
  return this.type;
7678
7587
  } });
7679
- Object.defineProperty(XMLNode$1.prototype, "nodeValue", { get: function() {
7588
+ Object.defineProperty(XMLNode.prototype, "nodeValue", { get: function() {
7680
7589
  return this.value;
7681
7590
  } });
7682
- Object.defineProperty(XMLNode$1.prototype, "parentNode", { get: function() {
7591
+ Object.defineProperty(XMLNode.prototype, "parentNode", { get: function() {
7683
7592
  return this.parent;
7684
7593
  } });
7685
- Object.defineProperty(XMLNode$1.prototype, "childNodes", { get: function() {
7594
+ Object.defineProperty(XMLNode.prototype, "childNodes", { get: function() {
7686
7595
  if (!this.childNodeList || !this.childNodeList.nodes) this.childNodeList = new XMLNodeList(this.children);
7687
7596
  return this.childNodeList;
7688
7597
  } });
7689
- Object.defineProperty(XMLNode$1.prototype, "firstChild", { get: function() {
7598
+ Object.defineProperty(XMLNode.prototype, "firstChild", { get: function() {
7690
7599
  return this.children[0] || null;
7691
7600
  } });
7692
- Object.defineProperty(XMLNode$1.prototype, "lastChild", { get: function() {
7601
+ Object.defineProperty(XMLNode.prototype, "lastChild", { get: function() {
7693
7602
  return this.children[this.children.length - 1] || null;
7694
7603
  } });
7695
- Object.defineProperty(XMLNode$1.prototype, "previousSibling", { get: function() {
7696
- var i$1;
7697
- i$1 = this.parent.children.indexOf(this);
7604
+ Object.defineProperty(XMLNode.prototype, "previousSibling", { get: function() {
7605
+ var i$1 = this.parent.children.indexOf(this);
7698
7606
  return this.parent.children[i$1 - 1] || null;
7699
7607
  } });
7700
- Object.defineProperty(XMLNode$1.prototype, "nextSibling", { get: function() {
7701
- var i$1;
7702
- i$1 = this.parent.children.indexOf(this);
7608
+ Object.defineProperty(XMLNode.prototype, "nextSibling", { get: function() {
7609
+ var i$1 = this.parent.children.indexOf(this);
7703
7610
  return this.parent.children[i$1 + 1] || null;
7704
7611
  } });
7705
- Object.defineProperty(XMLNode$1.prototype, "ownerDocument", { get: function() {
7612
+ Object.defineProperty(XMLNode.prototype, "ownerDocument", { get: function() {
7706
7613
  return this.document() || null;
7707
7614
  } });
7708
- Object.defineProperty(XMLNode$1.prototype, "textContent", {
7615
+ Object.defineProperty(XMLNode.prototype, "textContent", {
7709
7616
  get: function() {
7710
7617
  var child, j, len$1, ref1, str;
7711
7618
  if (this.nodeType === NodeType$1.Element || this.nodeType === NodeType$1.DocumentFragment) {
@@ -7722,7 +7629,7 @@ var require_XMLNode = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
7722
7629
  throw new Error("This DOM method is not implemented." + this.debugInfo());
7723
7630
  }
7724
7631
  });
7725
- return XMLNode$1;
7632
+ return XMLNode;
7726
7633
  }).call(this);
7727
7634
  }).call(exports);
7728
7635
  }) });
@@ -7731,9 +7638,9 @@ var require_XMLNode = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
7731
7638
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLStringifier.js
7732
7639
  var require_XMLStringifier = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLStringifier.js": ((exports, module) => {
7733
7640
  (function() {
7734
- var XMLStringifier, hasProp = {}.hasOwnProperty;
7735
- module.exports = XMLStringifier = (function() {
7736
- class XMLStringifier$1 {
7641
+ var hasProp = {}.hasOwnProperty;
7642
+ module.exports = (function() {
7643
+ class XMLStringifier {
7737
7644
  constructor(options) {
7738
7645
  var key, ref, value;
7739
7646
  this.assertLegalChar = this.assertLegalChar.bind(this);
@@ -7866,13 +7773,13 @@ var require_XMLStringifier = /* @__PURE__ */ require_picocolors$1.__commonJS({ "
7866
7773
  return str.replace(ampregex, "&amp;").replace(/</g, "&lt;").replace(/"/g, "&quot;").replace(/\t/g, "&#x9;").replace(/\n/g, "&#xA;").replace(/\r/g, "&#xD;");
7867
7774
  }
7868
7775
  }
7869
- XMLStringifier$1.prototype.convertAttKey = "@";
7870
- XMLStringifier$1.prototype.convertPIKey = "?";
7871
- XMLStringifier$1.prototype.convertTextKey = "#text";
7872
- XMLStringifier$1.prototype.convertCDataKey = "#cdata";
7873
- XMLStringifier$1.prototype.convertCommentKey = "#comment";
7874
- XMLStringifier$1.prototype.convertRawKey = "#raw";
7875
- return XMLStringifier$1;
7776
+ XMLStringifier.prototype.convertAttKey = "@";
7777
+ XMLStringifier.prototype.convertPIKey = "?";
7778
+ XMLStringifier.prototype.convertTextKey = "#text";
7779
+ XMLStringifier.prototype.convertCDataKey = "#cdata";
7780
+ XMLStringifier.prototype.convertCommentKey = "#comment";
7781
+ XMLStringifier.prototype.convertRawKey = "#raw";
7782
+ return XMLStringifier;
7876
7783
  }).call(this);
7877
7784
  }).call(exports);
7878
7785
  }) });
@@ -7894,24 +7801,24 @@ var require_WriterState = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../
7894
7801
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLWriterBase.js
7895
7802
  var require_XMLWriterBase = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLWriterBase.js": ((exports, module) => {
7896
7803
  (function() {
7897
- var NodeType$1, WriterState, XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLProcessingInstruction, XMLRaw, XMLText, XMLWriterBase, assign$1, hasProp = {}.hasOwnProperty;
7804
+ var NodeType$1, WriterState, assign$1, hasProp = {}.hasOwnProperty;
7898
7805
  ({assign: assign$1} = require_Utility());
7899
7806
  NodeType$1 = require_NodeType();
7900
- XMLDeclaration = require_XMLDeclaration();
7901
- XMLDocType = require_XMLDocType();
7902
- XMLCData = require_XMLCData();
7903
- XMLComment = require_XMLComment();
7904
- XMLElement = require_XMLElement();
7905
- XMLRaw = require_XMLRaw();
7906
- XMLText = require_XMLText();
7907
- XMLProcessingInstruction = require_XMLProcessingInstruction();
7908
- XMLDummy = require_XMLDummy();
7909
- XMLDTDAttList = require_XMLDTDAttList();
7910
- XMLDTDElement = require_XMLDTDElement();
7911
- XMLDTDEntity = require_XMLDTDEntity();
7912
- XMLDTDNotation = require_XMLDTDNotation();
7807
+ require_XMLDeclaration();
7808
+ require_XMLDocType();
7809
+ require_XMLCData();
7810
+ require_XMLComment();
7811
+ require_XMLElement();
7812
+ require_XMLRaw();
7813
+ require_XMLText();
7814
+ require_XMLProcessingInstruction();
7815
+ require_XMLDummy();
7816
+ require_XMLDTDAttList();
7817
+ require_XMLDTDElement();
7818
+ require_XMLDTDEntity();
7819
+ require_XMLDTDNotation();
7913
7820
  WriterState = require_WriterState();
7914
- module.exports = XMLWriterBase = class XMLWriterBase$1 {
7821
+ module.exports = class XMLWriterBase {
7915
7822
  constructor(options) {
7916
7823
  var key, ref, value;
7917
7824
  options || (options = {});
@@ -8252,9 +8159,8 @@ var require_XMLWriterBase = /* @__PURE__ */ require_picocolors$1.__commonJS({ ".
8252
8159
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLStringWriter.js
8253
8160
  var require_XMLStringWriter = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLStringWriter.js": ((exports, module) => {
8254
8161
  (function() {
8255
- var XMLStringWriter, XMLWriterBase;
8256
- XMLWriterBase = require_XMLWriterBase();
8257
- module.exports = XMLStringWriter = class XMLStringWriter$1 extends XMLWriterBase {
8162
+ var XMLWriterBase = require_XMLWriterBase();
8163
+ module.exports = class XMLStringWriter extends XMLWriterBase {
8258
8164
  constructor(options) {
8259
8165
  super(options);
8260
8166
  }
@@ -8278,7 +8184,7 @@ var require_XMLStringWriter = /* @__PURE__ */ require_picocolors$1.__commonJS({
8278
8184
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDocument.js
8279
8185
  var require_XMLDocument = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDocument.js": ((exports, module) => {
8280
8186
  (function() {
8281
- var NodeType$1, XMLDOMConfiguration, XMLDOMImplementation, XMLDocument, XMLNode, XMLStringWriter, XMLStringifier, isPlainObject;
8187
+ var NodeType$1, XMLDOMConfiguration, XMLDOMImplementation, XMLNode, XMLStringWriter, XMLStringifier, isPlainObject;
8282
8188
  ({isPlainObject} = require_Utility());
8283
8189
  XMLDOMImplementation = require_XMLDOMImplementation();
8284
8190
  XMLDOMConfiguration = require_XMLDOMConfiguration();
@@ -8286,8 +8192,8 @@ var require_XMLDocument = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../
8286
8192
  NodeType$1 = require_NodeType();
8287
8193
  XMLStringifier = require_XMLStringifier();
8288
8194
  XMLStringWriter = require_XMLStringWriter();
8289
- module.exports = XMLDocument = (function() {
8290
- class XMLDocument$1 extends XMLNode {
8195
+ module.exports = (function() {
8196
+ class XMLDocument extends XMLNode {
8291
8197
  constructor(options) {
8292
8198
  super(null);
8293
8199
  this.name = "#document";
@@ -8300,8 +8206,7 @@ var require_XMLDocument = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../
8300
8206
  this.stringify = new XMLStringifier(options);
8301
8207
  }
8302
8208
  end(writer) {
8303
- var writerOptions;
8304
- writerOptions = {};
8209
+ var writerOptions = {};
8305
8210
  if (!writer) writer = this.options.writer;
8306
8211
  else if (isPlainObject(writer)) {
8307
8212
  writerOptions = writer;
@@ -8379,53 +8284,52 @@ var require_XMLDocument = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../
8379
8284
  throw new Error("This DOM method is not implemented." + this.debugInfo());
8380
8285
  }
8381
8286
  }
8382
- Object.defineProperty(XMLDocument$1.prototype, "implementation", { value: new XMLDOMImplementation() });
8383
- Object.defineProperty(XMLDocument$1.prototype, "doctype", { get: function() {
8384
- var child, i$1, len$1, ref;
8385
- ref = this.children;
8287
+ Object.defineProperty(XMLDocument.prototype, "implementation", { value: new XMLDOMImplementation() });
8288
+ Object.defineProperty(XMLDocument.prototype, "doctype", { get: function() {
8289
+ var child, i$1, len$1, ref = this.children;
8386
8290
  for (i$1 = 0, len$1 = ref.length; i$1 < len$1; i$1++) {
8387
8291
  child = ref[i$1];
8388
8292
  if (child.type === NodeType$1.DocType) return child;
8389
8293
  }
8390
8294
  return null;
8391
8295
  } });
8392
- Object.defineProperty(XMLDocument$1.prototype, "documentElement", { get: function() {
8296
+ Object.defineProperty(XMLDocument.prototype, "documentElement", { get: function() {
8393
8297
  return this.rootObject || null;
8394
8298
  } });
8395
- Object.defineProperty(XMLDocument$1.prototype, "inputEncoding", { get: function() {
8299
+ Object.defineProperty(XMLDocument.prototype, "inputEncoding", { get: function() {
8396
8300
  return null;
8397
8301
  } });
8398
- Object.defineProperty(XMLDocument$1.prototype, "strictErrorChecking", { get: function() {
8302
+ Object.defineProperty(XMLDocument.prototype, "strictErrorChecking", { get: function() {
8399
8303
  return false;
8400
8304
  } });
8401
- Object.defineProperty(XMLDocument$1.prototype, "xmlEncoding", { get: function() {
8305
+ Object.defineProperty(XMLDocument.prototype, "xmlEncoding", { get: function() {
8402
8306
  if (this.children.length !== 0 && this.children[0].type === NodeType$1.Declaration) return this.children[0].encoding;
8403
8307
  else return null;
8404
8308
  } });
8405
- Object.defineProperty(XMLDocument$1.prototype, "xmlStandalone", { get: function() {
8309
+ Object.defineProperty(XMLDocument.prototype, "xmlStandalone", { get: function() {
8406
8310
  if (this.children.length !== 0 && this.children[0].type === NodeType$1.Declaration) return this.children[0].standalone === "yes";
8407
8311
  else return false;
8408
8312
  } });
8409
- Object.defineProperty(XMLDocument$1.prototype, "xmlVersion", { get: function() {
8313
+ Object.defineProperty(XMLDocument.prototype, "xmlVersion", { get: function() {
8410
8314
  if (this.children.length !== 0 && this.children[0].type === NodeType$1.Declaration) return this.children[0].version;
8411
8315
  else return "1.0";
8412
8316
  } });
8413
- Object.defineProperty(XMLDocument$1.prototype, "URL", { get: function() {
8317
+ Object.defineProperty(XMLDocument.prototype, "URL", { get: function() {
8414
8318
  return this.documentURI;
8415
8319
  } });
8416
- Object.defineProperty(XMLDocument$1.prototype, "origin", { get: function() {
8320
+ Object.defineProperty(XMLDocument.prototype, "origin", { get: function() {
8417
8321
  return null;
8418
8322
  } });
8419
- Object.defineProperty(XMLDocument$1.prototype, "compatMode", { get: function() {
8323
+ Object.defineProperty(XMLDocument.prototype, "compatMode", { get: function() {
8420
8324
  return null;
8421
8325
  } });
8422
- Object.defineProperty(XMLDocument$1.prototype, "characterSet", { get: function() {
8326
+ Object.defineProperty(XMLDocument.prototype, "characterSet", { get: function() {
8423
8327
  return null;
8424
8328
  } });
8425
- Object.defineProperty(XMLDocument$1.prototype, "contentType", { get: function() {
8329
+ Object.defineProperty(XMLDocument.prototype, "contentType", { get: function() {
8426
8330
  return null;
8427
8331
  } });
8428
- return XMLDocument$1;
8332
+ return XMLDocument;
8429
8333
  }).call(this);
8430
8334
  }).call(exports);
8431
8335
  }) });
@@ -8434,7 +8338,7 @@ var require_XMLDocument = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../
8434
8338
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDocumentCB.js
8435
8339
  var require_XMLDocumentCB = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDocumentCB.js": ((exports, module) => {
8436
8340
  (function() {
8437
- var NodeType$1, WriterState, XMLAttribute, XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDocument, XMLDocumentCB, XMLElement, XMLProcessingInstruction, XMLRaw, XMLStringWriter, XMLStringifier, XMLText, getValue, isFunction, isObject$2, isPlainObject, hasProp = {}.hasOwnProperty;
8341
+ var NodeType$1, WriterState, XMLAttribute, XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDocument, XMLElement, XMLProcessingInstruction, XMLRaw, XMLStringWriter, XMLStringifier, XMLText, getValue, isFunction, isObject$2, isPlainObject, hasProp = {}.hasOwnProperty;
8438
8342
  ({isObject: isObject$2, isFunction, isPlainObject, getValue} = require_Utility());
8439
8343
  NodeType$1 = require_NodeType();
8440
8344
  XMLDocument = require_XMLDocument();
@@ -8454,7 +8358,7 @@ var require_XMLDocumentCB = /* @__PURE__ */ require_picocolors$1.__commonJS({ ".
8454
8358
  XMLStringifier = require_XMLStringifier();
8455
8359
  XMLStringWriter = require_XMLStringWriter();
8456
8360
  WriterState = require_WriterState();
8457
- module.exports = XMLDocumentCB = class XMLDocumentCB$1 {
8361
+ module.exports = class XMLDocumentCB {
8458
8362
  constructor(options, onData, onEnd) {
8459
8363
  var writerOptions;
8460
8364
  this.name = "?xml";
@@ -8824,11 +8728,11 @@ var require_XMLDocumentCB = /* @__PURE__ */ require_picocolors$1.__commonJS({ ".
8824
8728
  //#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLStreamWriter.js
8825
8729
  var require_XMLStreamWriter = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLStreamWriter.js": ((exports, module) => {
8826
8730
  (function() {
8827
- var NodeType$1, WriterState, XMLStreamWriter, XMLWriterBase, hasProp = {}.hasOwnProperty;
8731
+ var NodeType$1, WriterState, XMLWriterBase, hasProp = {}.hasOwnProperty;
8828
8732
  NodeType$1 = require_NodeType();
8829
8733
  XMLWriterBase = require_XMLWriterBase();
8830
8734
  WriterState = require_WriterState();
8831
- module.exports = XMLStreamWriter = class XMLStreamWriter$1 extends XMLWriterBase {
8735
+ module.exports = class XMLStreamWriter extends XMLWriterBase {
8832
8736
  constructor(stream$1, options) {
8833
8737
  super(options);
8834
8738
  this.stream = stream$1;
@@ -8838,8 +8742,7 @@ var require_XMLStreamWriter = /* @__PURE__ */ require_picocolors$1.__commonJS({
8838
8742
  else return super.endline(node, options, level);
8839
8743
  }
8840
8744
  document(doc, options) {
8841
- var child, i$1, j, k, len1, len2, ref, ref1, results;
8842
- ref = doc.children;
8745
+ var child, i$1, j, k, len1, len2, ref = doc.children, ref1, results;
8843
8746
  for (i$1 = j = 0, len1 = ref.length; j < len1; i$1 = ++j) {
8844
8747
  child = ref[i$1];
8845
8748
  child.isLastRootNode = i$1 === doc.children.length - 1;
@@ -8890,7 +8793,7 @@ var require_XMLStreamWriter = /* @__PURE__ */ require_picocolors$1.__commonJS({
8890
8793
  return this.closeNode(node, options, level);
8891
8794
  }
8892
8795
  element(node, options, level) {
8893
- var att, attLen, child, childNodeCount, firstChildNode, j, len$1, len1, name, prettySuppressed, r, ratt, ref, ref1, ref2, rline;
8796
+ var att, attLen, child, childNodeCount, firstChildNode, j, len$1, len1, name, r, ratt, ref, ref1, ref2, rline;
8894
8797
  level || (level = 0);
8895
8798
  this.openNode(node, options, level);
8896
8799
  options.state = WriterState.OpenTag;
@@ -8938,10 +8841,8 @@ var require_XMLStreamWriter = /* @__PURE__ */ require_picocolors$1.__commonJS({
8938
8841
  this.stream.write(">");
8939
8842
  options.state = WriterState.InsideTag;
8940
8843
  options.suppressPrettyCount++;
8941
- prettySuppressed = true;
8942
8844
  this.writeChildNode(firstChildNode, options, level + 1);
8943
8845
  options.suppressPrettyCount--;
8944
- prettySuppressed = false;
8945
8846
  options.state = WriterState.CloseTag;
8946
8847
  this.stream.write("</" + node.name + ">");
8947
8848
  } else {
@@ -9157,8 +9058,7 @@ var IosConfigParser = class {
9157
9058
  return this.plistPaths.map((p) => path.default.isAbsolute(p) ? p : path.default.join((0, __hot_updater_plugin_core.getCwd)(), p)).filter((p) => fs.default.existsSync(p));
9158
9059
  }
9159
9060
  async exists() {
9160
- const paths = this.getPlistPaths();
9161
- return paths.length > 0;
9061
+ return this.getPlistPaths().length > 0;
9162
9062
  }
9163
9063
  async get(key) {
9164
9064
  const plistPaths = this.getPlistPaths();
@@ -9175,9 +9075,8 @@ var IosConfigParser = class {
9175
9075
  if (key in plistObject) {
9176
9076
  const value = plistObject[key];
9177
9077
  if (value === null || value === void 0) continue;
9178
- const stringValue = typeof value === "string" ? value : String(value);
9179
9078
  return {
9180
- value: stringValue,
9079
+ value: typeof value === "string" ? value : String(value),
9181
9080
  paths: searchedPaths
9182
9081
  };
9183
9082
  }
@@ -9219,16 +9118,12 @@ var IosConfigParser = class {
9219
9118
  //#endregion
9220
9119
  //#region src/utils/setFingerprintHash.ts
9221
9120
  const setAndroidFingerprintHash = async (hash) => {
9222
- const config = await (0, __hot_updater_plugin_core.loadConfig)(null);
9223
- const customPaths = config.platform.android.stringResourcePaths;
9224
- const androidParser = new AndroidConfigParser(customPaths);
9225
- return await androidParser.set("hot_updater_fingerprint_hash", hash);
9121
+ const customPaths = (await (0, __hot_updater_plugin_core.loadConfig)(null)).platform.android.stringResourcePaths;
9122
+ return await new AndroidConfigParser(customPaths).set("hot_updater_fingerprint_hash", hash);
9226
9123
  };
9227
9124
  const setIosFingerprintHash = async (hash) => {
9228
- const config = await (0, __hot_updater_plugin_core.loadConfig)(null);
9229
- const customPaths = config.platform.ios.infoPlistPaths;
9230
- const iosParser = new IosConfigParser(customPaths);
9231
- return await iosParser.set("HOT_UPDATER_FINGERPRINT_HASH", hash);
9125
+ const customPaths = (await (0, __hot_updater_plugin_core.loadConfig)(null)).platform.ios.infoPlistPaths;
9126
+ return await new IosConfigParser(customPaths).set("HOT_UPDATER_FINGERPRINT_HASH", hash);
9232
9127
  };
9233
9128
  const setFingerprintHash = async (platform, hash) => {
9234
9129
  switch (platform) {
@@ -9241,7 +9136,6 @@ const setFingerprintHash = async (platform, hash) => {
9241
9136
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js
9242
9137
  var require_array = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js": ((exports) => {
9243
9138
  Object.defineProperty(exports, "__esModule", { value: true });
9244
- exports.splitWhen = exports.flatten = void 0;
9245
9139
  function flatten(items) {
9246
9140
  return items.reduce((collection, item) => [].concat(collection, item), []);
9247
9141
  }
@@ -9262,7 +9156,6 @@ var require_array = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../nod
9262
9156
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js
9263
9157
  var require_errno = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js": ((exports) => {
9264
9158
  Object.defineProperty(exports, "__esModule", { value: true });
9265
- exports.isEnoentCodeError = void 0;
9266
9159
  function isEnoentCodeError(error) {
9267
9160
  return error.code === "ENOENT";
9268
9161
  }
@@ -9273,7 +9166,6 @@ var require_errno = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../nod
9273
9166
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js
9274
9167
  var require_fs$3 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js": ((exports) => {
9275
9168
  Object.defineProperty(exports, "__esModule", { value: true });
9276
- exports.createDirentFromStats = void 0;
9277
9169
  var DirentFromStats$1 = class {
9278
9170
  constructor(name, stats) {
9279
9171
  this.name = name;
@@ -9296,7 +9188,6 @@ var require_fs$3 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node
9296
9188
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js
9297
9189
  var require_path = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js": ((exports) => {
9298
9190
  Object.defineProperty(exports, "__esModule", { value: true });
9299
- exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
9300
9191
  const os$1 = require("os");
9301
9192
  const path$11 = require("path");
9302
9193
  const IS_WINDOWS_PLATFORM = os$1.platform() === "win32";
@@ -9494,8 +9385,7 @@ var require_glob_parent = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../
9494
9385
  * @returns {string}
9495
9386
  */
9496
9387
  module.exports = function globParent$1(str, opts) {
9497
- var options = Object.assign({ flipBackslashes: true }, opts);
9498
- if (options.flipBackslashes && isWin32 && str.indexOf(slash) < 0) str = str.replace(backslash, slash);
9388
+ if (Object.assign({ flipBackslashes: true }, opts).flipBackslashes && isWin32 && str.indexOf(slash) < 0) str = str.replace(backslash, slash);
9499
9389
  if (enclosure.test(str)) str += slash;
9500
9390
  str += "a";
9501
9391
  do
@@ -9673,8 +9563,7 @@ var require_to_regex_range = /* @__PURE__ */ require_picocolors$1.__commonJS({ "
9673
9563
  state.maxLen = String(state.max).length;
9674
9564
  }
9675
9565
  if (a < 0) {
9676
- let newMin = b < 0 ? Math.abs(b) : 1;
9677
- negatives = splitToPatterns(newMin, Math.abs(a), state, opts);
9566
+ negatives = splitToPatterns(b < 0 ? Math.abs(b) : 1, Math.abs(a), state, opts);
9678
9567
  a = state.a = 0;
9679
9568
  }
9680
9569
  if (b >= 0) positives = splitToPatterns(a, b, state, opts);
@@ -9690,8 +9579,7 @@ var require_to_regex_range = /* @__PURE__ */ require_picocolors$1.__commonJS({ "
9690
9579
  let onlyNegative = filterPatterns(neg, pos, "-", false, options) || [];
9691
9580
  let onlyPositive = filterPatterns(pos, neg, "", false, options) || [];
9692
9581
  let intersected = filterPatterns(neg, pos, "-?", true, options) || [];
9693
- let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive);
9694
- return subpatterns.join("|");
9582
+ return onlyNegative.concat(intersected).concat(onlyPositive).join("|");
9695
9583
  }
9696
9584
  function splitToRanges(min, max) {
9697
9585
  let nines = 1;
@@ -9892,8 +9780,7 @@ var require_fill_range = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../.
9892
9780
  });
9893
9781
  let start = String.fromCharCode(a);
9894
9782
  if (a === b) return start;
9895
- let stop = String.fromCharCode(b);
9896
- return `[${start}-${stop}]`;
9783
+ return `[${start}-${String.fromCharCode(b)}]`;
9897
9784
  };
9898
9785
  const toRegex = (start, end, options) => {
9899
9786
  if (Array.isArray(start)) {
@@ -10320,18 +10207,16 @@ var require_parse$1 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
10320
10207
  */
10321
10208
  if (value === CHAR_LEFT_CURLY_BRACE$1) {
10322
10209
  depth$1++;
10323
- const dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true;
10324
- const brace = {
10210
+ block = push({
10325
10211
  type: "brace",
10326
10212
  open: true,
10327
10213
  close: false,
10328
- dollar,
10214
+ dollar: prev.value && prev.value.slice(-1) === "$" || block.dollar === true,
10329
10215
  depth: depth$1,
10330
10216
  commas: 0,
10331
10217
  ranges: 0,
10332
10218
  nodes: []
10333
- };
10334
- block = push(brace);
10219
+ });
10335
10220
  stack.push(block);
10336
10221
  push({
10337
10222
  type: "open",
@@ -10367,8 +10252,7 @@ var require_parse$1 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
10367
10252
  if (value === CHAR_COMMA$1 && depth$1 > 0) {
10368
10253
  if (block.ranges > 0) {
10369
10254
  block.ranges = 0;
10370
- const open = block.nodes.shift();
10371
- block.nodes = [open, {
10255
+ block.nodes = [block.nodes.shift(), {
10372
10256
  type: "text",
10373
10257
  value: stringify$1(block)
10374
10258
  }];
@@ -10596,12 +10480,6 @@ var require_constants$1 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../
10596
10480
  const END_ANCHOR = `(?:${SLASH_LITERAL}|$)`;
10597
10481
  const START_ANCHOR = `(?:^|${SLASH_LITERAL})`;
10598
10482
  const DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`;
10599
- const NO_DOT = `(?!${DOT_LITERAL})`;
10600
- const NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`;
10601
- const NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`;
10602
- const NO_DOTS_SLASH = `(?!${DOTS_SLASH})`;
10603
- const QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`;
10604
- const STAR = `${QMARK}*?`;
10605
10483
  const POSIX_CHARS = {
10606
10484
  DOT_LITERAL,
10607
10485
  PLUS_LITERAL,
@@ -10611,12 +10489,12 @@ var require_constants$1 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../
10611
10489
  QMARK,
10612
10490
  END_ANCHOR,
10613
10491
  DOTS_SLASH,
10614
- NO_DOT,
10615
- NO_DOTS,
10616
- NO_DOT_SLASH,
10617
- NO_DOTS_SLASH,
10618
- QMARK_NO_DOT,
10619
- STAR,
10492
+ NO_DOT: `(?!${DOT_LITERAL})`,
10493
+ NO_DOTS: `(?!${START_ANCHOR}${DOTS_SLASH})`,
10494
+ NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`,
10495
+ NO_DOTS_SLASH: `(?!${DOTS_SLASH})`,
10496
+ QMARK_NO_DOT: `[^.${SLASH_LITERAL}]`,
10497
+ STAR: `${QMARK}*?`,
10620
10498
  START_ANCHOR
10621
10499
  };
10622
10500
  /**
@@ -10788,9 +10666,7 @@ var require_utils$2 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
10788
10666
  return output;
10789
10667
  };
10790
10668
  exports.wrapOutput = (input, state = {}, options = {}) => {
10791
- const prepend = options.contains ? "" : "^";
10792
- const append$1 = options.contains ? "" : "$";
10793
- let output = `${prepend}(?:${input})${append$1}`;
10669
+ let output = `${options.contains ? "" : "^"}(?:${input})${options.contains ? "" : "$"}`;
10794
10670
  if (state.negated === true) output = `(?:^(?!${output}).*$)`;
10795
10671
  return output;
10796
10672
  };
@@ -10923,8 +10799,7 @@ var require_scan = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node
10923
10799
  continue;
10924
10800
  }
10925
10801
  if (opts.noext !== true) {
10926
- const isExtglobChar = code$1 === CHAR_PLUS || code$1 === CHAR_AT || code$1 === CHAR_ASTERISK || code$1 === CHAR_QUESTION_MARK || code$1 === CHAR_EXCLAMATION_MARK;
10927
- if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
10802
+ if ((code$1 === CHAR_PLUS || code$1 === CHAR_AT || code$1 === CHAR_ASTERISK || code$1 === CHAR_QUESTION_MARK || code$1 === CHAR_EXCLAMATION_MARK) === true && peek() === CHAR_LEFT_PARENTHESES) {
10928
10803
  isGlob$1 = token.isGlob = true;
10929
10804
  isExtglob$1 = token.isExtglob = true;
10930
10805
  finished = true;
@@ -11137,13 +11012,13 @@ var require_parse = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../nod
11137
11012
  const win32$1 = utils$12.isWindows(options);
11138
11013
  const PLATFORM_CHARS = constants$1.globChars(win32$1);
11139
11014
  const EXTGLOB_CHARS = constants$1.extglobChars(PLATFORM_CHARS);
11140
- const { DOT_LITERAL: DOT_LITERAL$1, PLUS_LITERAL: PLUS_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT: NO_DOT$1, NO_DOT_SLASH: NO_DOT_SLASH$1, NO_DOTS_SLASH: NO_DOTS_SLASH$1, QMARK: QMARK$1, QMARK_NO_DOT: QMARK_NO_DOT$1, STAR: STAR$1, START_ANCHOR: START_ANCHOR$1 } = PLATFORM_CHARS;
11015
+ const { DOT_LITERAL: DOT_LITERAL$1, PLUS_LITERAL: PLUS_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT, NO_DOT_SLASH, NO_DOTS_SLASH, QMARK: QMARK$1, QMARK_NO_DOT, STAR, START_ANCHOR: START_ANCHOR$1 } = PLATFORM_CHARS;
11141
11016
  const globstar = (opts$1) => {
11142
11017
  return `(${capture}(?:(?!${START_ANCHOR$1}${opts$1.dot ? DOTS_SLASH$1 : DOT_LITERAL$1}).)*?)`;
11143
11018
  };
11144
- const nodot = opts.dot ? "" : NO_DOT$1;
11145
- const qmarkNoDot = opts.dot ? QMARK$1 : QMARK_NO_DOT$1;
11146
- let star = opts.bash === true ? globstar(opts) : STAR$1;
11019
+ const nodot = opts.dot ? "" : NO_DOT;
11020
+ const qmarkNoDot = opts.dot ? QMARK$1 : QMARK_NO_DOT;
11021
+ let star = opts.bash === true ? globstar(opts) : STAR;
11147
11022
  if (opts.capture) star = `(${star})`;
11148
11023
  if (typeof opts.noext === "boolean") opts.noextglob = opts.noext;
11149
11024
  const state = {
@@ -11266,13 +11141,10 @@ var require_parse = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../nod
11266
11141
  let extglobStar = star;
11267
11142
  if (token.inner && token.inner.length > 1 && token.inner.includes("/")) extglobStar = globstar(opts);
11268
11143
  if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) output = token.close = `)$))${extglobStar}`;
11269
- if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
11270
- const expression = parse$1(rest, {
11271
- ...options,
11272
- fastpaths: false
11273
- }).output;
11274
- output = token.close = `)${expression})${extglobStar})`;
11275
- }
11144
+ if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) output = token.close = `)${parse$1(rest, {
11145
+ ...options,
11146
+ fastpaths: false
11147
+ }).output})${extglobStar})`;
11276
11148
  if (token.prev.type === "bos") state.negatedExtglob = true;
11277
11149
  }
11278
11150
  push({
@@ -11366,8 +11238,7 @@ var require_parse = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../nod
11366
11238
  if (inner.includes(":")) {
11367
11239
  const idx = prev.value.lastIndexOf("[");
11368
11240
  const pre = prev.value.slice(0, idx);
11369
- const rest$1 = prev.value.slice(idx + 2);
11370
- const posix = POSIX_REGEX_SOURCE[rest$1];
11241
+ const posix = POSIX_REGEX_SOURCE[prev.value.slice(idx + 2)];
11371
11242
  if (posix) {
11372
11243
  prev.value = pre + posix;
11373
11244
  state.backtrack = true;
@@ -11615,8 +11486,7 @@ var require_parse = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../nod
11615
11486
  * Question marks
11616
11487
  */
11617
11488
  if (value === "?") {
11618
- const isGroup = prev && prev.value === "(";
11619
- if (!isGroup && opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
11489
+ if (!(prev && prev.value === "(") && opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
11620
11490
  extglobOpen("qmark", value);
11621
11491
  continue;
11622
11492
  }
@@ -11636,7 +11506,7 @@ var require_parse = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../nod
11636
11506
  push({
11637
11507
  type: "qmark",
11638
11508
  value,
11639
- output: QMARK_NO_DOT$1
11509
+ output: QMARK_NO_DOT
11640
11510
  });
11641
11511
  continue;
11642
11512
  }
@@ -11855,11 +11725,11 @@ var require_parse = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../nod
11855
11725
  }
11856
11726
  if (state.index === state.start || prev.type === "slash" || prev.type === "dot") {
11857
11727
  if (prev.type === "dot") {
11858
- state.output += NO_DOT_SLASH$1;
11859
- prev.output += NO_DOT_SLASH$1;
11728
+ state.output += NO_DOT_SLASH;
11729
+ prev.output += NO_DOT_SLASH;
11860
11730
  } else if (opts.dot === true) {
11861
- state.output += NO_DOTS_SLASH$1;
11862
- prev.output += NO_DOTS_SLASH$1;
11731
+ state.output += NO_DOTS_SLASH;
11732
+ prev.output += NO_DOTS_SLASH;
11863
11733
  } else {
11864
11734
  state.output += nodot;
11865
11735
  prev.output += nodot;
@@ -11912,15 +11782,15 @@ var require_parse = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../nod
11912
11782
  if (len$1 > max) throw new SyntaxError(`Input length: ${len$1}, exceeds maximum allowed length: ${max}`);
11913
11783
  input = REPLACEMENTS[input] || input;
11914
11784
  const win32$1 = utils$12.isWindows(options);
11915
- const { DOT_LITERAL: DOT_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT: NO_DOT$1, NO_DOTS: NO_DOTS$1, NO_DOTS_SLASH: NO_DOTS_SLASH$1, STAR: STAR$1, START_ANCHOR: START_ANCHOR$1 } = constants$1.globChars(win32$1);
11916
- const nodot = opts.dot ? NO_DOTS$1 : NO_DOT$1;
11917
- const slashDot = opts.dot ? NO_DOTS_SLASH$1 : NO_DOT$1;
11785
+ const { DOT_LITERAL: DOT_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT, NO_DOTS, NO_DOTS_SLASH, STAR, START_ANCHOR: START_ANCHOR$1 } = constants$1.globChars(win32$1);
11786
+ const nodot = opts.dot ? NO_DOTS : NO_DOT;
11787
+ const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
11918
11788
  const capture = opts.capture ? "" : "?:";
11919
11789
  const state = {
11920
11790
  negated: false,
11921
11791
  prefix: ""
11922
11792
  };
11923
- let star = opts.bash === true ? ".*?" : STAR$1;
11793
+ let star = opts.bash === true ? ".*?" : STAR;
11924
11794
  if (opts.capture) star = `(${star})`;
11925
11795
  const globstar = (opts$1) => {
11926
11796
  if (opts$1.noglobstar === true) return star;
@@ -11945,8 +11815,7 @@ var require_parse = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../nod
11945
11815
  }
11946
11816
  }
11947
11817
  };
11948
- const output = utils$12.removePrefix(input, state);
11949
- let source = create(output);
11818
+ let source = create(utils$12.removePrefix(input, state));
11950
11819
  if (source && opts.strictSlashes !== true) source += `${SLASH_LITERAL$1}?`;
11951
11820
  return source;
11952
11821
  };
@@ -12095,8 +11964,7 @@ var require_picomatch$1 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../
12095
11964
  * @api public
12096
11965
  */
12097
11966
  picomatch$1.matchBase = (input, glob, options, posix = utils$11.isWindows(options)) => {
12098
- const regex = glob instanceof RegExp ? glob : picomatch$1.makeRe(glob, options);
12099
- return regex.test(path$8.basename(input));
11967
+ return (glob instanceof RegExp ? glob : picomatch$1.makeRe(glob, options)).test(path$8.basename(input));
12100
11968
  };
12101
11969
  /**
12102
11970
  * Returns true if **any** of the given glob `patterns` match the specified `string`.
@@ -12303,8 +12171,7 @@ var require_micromatch = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../.
12303
12171
  if (negated) negatives++;
12304
12172
  for (let item of list) {
12305
12173
  let matched = isMatch(item, true);
12306
- let match = negated ? !matched.isMatch : matched.isMatch;
12307
- if (!match) continue;
12174
+ if (!(negated ? !matched.isMatch : matched.isMatch)) continue;
12308
12175
  if (negated) omit.add(matched.output);
12309
12176
  else {
12310
12177
  omit.delete(matched.output);
@@ -12312,8 +12179,7 @@ var require_micromatch = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../.
12312
12179
  }
12313
12180
  }
12314
12181
  }
12315
- let result = negatives === patterns.length ? [...items] : [...keep];
12316
- let matches = result.filter((item) => !omit.has(item));
12182
+ let matches = (negatives === patterns.length ? [...items] : [...keep]).filter((item) => !omit.has(item));
12317
12183
  if (options && matches.length === 0) {
12318
12184
  if (options.failglob === true) throw new Error(`No matches found for "${patterns.join(", ")}"`);
12319
12185
  if (options.nonull === true || options.nullglob === true) return options.unescape ? patterns.map((p) => p.replace(/\\/g, "")) : patterns;
@@ -12559,11 +12425,10 @@ var require_micromatch = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../.
12559
12425
  */
12560
12426
  micromatch$1.capture = (glob, input, options) => {
12561
12427
  let posix = utils$10.isWindows(options);
12562
- let regex = picomatch.makeRe(String(glob), {
12428
+ let match = picomatch.makeRe(String(glob), {
12563
12429
  ...options,
12564
12430
  capture: true
12565
- });
12566
- let match = regex.exec(posix ? utils$10.toPosixSlashes(input) : input);
12431
+ }).exec(posix ? utils$10.toPosixSlashes(input) : input);
12567
12432
  if (match) return match.slice(1).map((v) => v === void 0 ? "" : v);
12568
12433
  };
12569
12434
  /**
@@ -12656,7 +12521,6 @@ var require_micromatch = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../.
12656
12521
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js
12657
12522
  var require_pattern = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js": ((exports) => {
12658
12523
  Object.defineProperty(exports, "__esModule", { value: true });
12659
- exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
12660
12524
  const path$7 = require("path");
12661
12525
  const globParent = require_glob_parent();
12662
12526
  const micromatch = require_micromatch();
@@ -12847,8 +12711,7 @@ var require_pattern = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
12847
12711
  //#endregion
12848
12712
  //#region ../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js
12849
12713
  var require_merge2 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js": ((exports, module) => {
12850
- const Stream = require("stream");
12851
- const PassThrough = Stream.PassThrough;
12714
+ const PassThrough = require("stream").PassThrough;
12852
12715
  const slice = Array.prototype.slice;
12853
12716
  module.exports = merge2$1;
12854
12717
  function merge2$1() {
@@ -12930,7 +12793,6 @@ var require_merge2 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../no
12930
12793
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js
12931
12794
  var require_stream$3 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js": ((exports) => {
12932
12795
  Object.defineProperty(exports, "__esModule", { value: true });
12933
- exports.merge = void 0;
12934
12796
  const merge2 = require_merge2();
12935
12797
  function merge(streams) {
12936
12798
  const mergedStream = merge2(streams);
@@ -12951,7 +12813,6 @@ var require_stream$3 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../
12951
12813
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js
12952
12814
  var require_string = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js": ((exports) => {
12953
12815
  Object.defineProperty(exports, "__esModule", { value: true });
12954
- exports.isEmpty = exports.isString = void 0;
12955
12816
  function isString(input) {
12956
12817
  return typeof input === "string";
12957
12818
  }
@@ -12966,7 +12827,6 @@ var require_string = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../no
12966
12827
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js
12967
12828
  var require_utils$1 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js": ((exports) => {
12968
12829
  Object.defineProperty(exports, "__esModule", { value: true });
12969
- exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
12970
12830
  const array = require_array();
12971
12831
  exports.array = array;
12972
12832
  const errno = require_errno();
@@ -12987,7 +12847,6 @@ var require_utils$1 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
12987
12847
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js
12988
12848
  var require_tasks = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js": ((exports) => {
12989
12849
  Object.defineProperty(exports, "__esModule", { value: true });
12990
- exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
12991
12850
  const utils$9 = require_utils$1();
12992
12851
  function generate(input, settings) {
12993
12852
  const patterns = processPatterns(input, settings);
@@ -13048,19 +12907,16 @@ var require_tasks = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../nod
13048
12907
  }
13049
12908
  exports.getPositivePatterns = getPositivePatterns;
13050
12909
  function getNegativePatternsAsPositive(patterns, ignore) {
13051
- const negative = utils$9.pattern.getNegativePatterns(patterns).concat(ignore);
13052
- const positive = negative.map(utils$9.pattern.convertToPositivePattern);
13053
- return positive;
12910
+ return utils$9.pattern.getNegativePatterns(patterns).concat(ignore).map(utils$9.pattern.convertToPositivePattern);
13054
12911
  }
13055
12912
  exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
13056
12913
  function groupPatternsByBaseDirectory(patterns) {
13057
- const group = {};
13058
12914
  return patterns.reduce((collection, pattern$1) => {
13059
12915
  const base = utils$9.pattern.getBaseDirectory(pattern$1);
13060
12916
  if (base in collection) collection[base].push(pattern$1);
13061
12917
  else collection[base] = [pattern$1];
13062
12918
  return collection;
13063
- }, group);
12919
+ }, {});
13064
12920
  }
13065
12921
  exports.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory;
13066
12922
  function convertPatternGroupsToTasks(positive, negative, dynamic) {
@@ -13085,7 +12941,6 @@ var require_tasks = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../nod
13085
12941
  //#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js
13086
12942
  var require_async$5 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js": ((exports) => {
13087
12943
  Object.defineProperty(exports, "__esModule", { value: true });
13088
- exports.read = void 0;
13089
12944
  function read$3(path$14, settings, callback) {
13090
12945
  settings.fs.lstat(path$14, (lstatError, lstat) => {
13091
12946
  if (lstatError !== null) {
@@ -13123,7 +12978,6 @@ var require_async$5 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
13123
12978
  //#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js
13124
12979
  var require_sync$5 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js": ((exports) => {
13125
12980
  Object.defineProperty(exports, "__esModule", { value: true });
13126
- exports.read = void 0;
13127
12981
  function read$2(path$14, settings) {
13128
12982
  const lstat = settings.fs.lstatSync(path$14);
13129
12983
  if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) return lstat;
@@ -13182,7 +13036,6 @@ var require_settings$3 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../.
13182
13036
  //#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js
13183
13037
  var require_out$3 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js": ((exports) => {
13184
13038
  Object.defineProperty(exports, "__esModule", { value: true });
13185
- exports.statSync = exports.stat = exports.Settings = void 0;
13186
13039
  const async$1 = require_async$5();
13187
13040
  const sync$1 = require_sync$5();
13188
13041
  const settings_1$3 = require_settings$3();
@@ -13264,7 +13117,6 @@ var require_run_parallel = /* @__PURE__ */ require_picocolors$1.__commonJS({ "..
13264
13117
  //#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js
13265
13118
  var require_constants = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js": ((exports) => {
13266
13119
  Object.defineProperty(exports, "__esModule", { value: true });
13267
- exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
13268
13120
  const NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
13269
13121
  if (NODE_PROCESS_VERSION_PARTS[0] === void 0 || NODE_PROCESS_VERSION_PARTS[1] === void 0) throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
13270
13122
  const MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10);
@@ -13283,7 +13135,6 @@ var require_constants = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../..
13283
13135
  //#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js
13284
13136
  var require_fs$1 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js": ((exports) => {
13285
13137
  Object.defineProperty(exports, "__esModule", { value: true });
13286
- exports.createDirentFromStats = void 0;
13287
13138
  var DirentFromStats = class {
13288
13139
  constructor(name, stats) {
13289
13140
  this.name = name;
@@ -13306,7 +13157,6 @@ var require_fs$1 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node
13306
13157
  //#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js
13307
13158
  var require_utils = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js": ((exports) => {
13308
13159
  Object.defineProperty(exports, "__esModule", { value: true });
13309
- exports.fs = void 0;
13310
13160
  const fs$6 = require_fs$1();
13311
13161
  exports.fs = fs$6;
13312
13162
  }) });
@@ -13315,7 +13165,6 @@ var require_utils = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../nod
13315
13165
  //#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js
13316
13166
  var require_common$1 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js": ((exports) => {
13317
13167
  Object.defineProperty(exports, "__esModule", { value: true });
13318
- exports.joinPathSegments = void 0;
13319
13168
  function joinPathSegments$1(a, b, separator) {
13320
13169
  /**
13321
13170
  * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`).
@@ -13330,7 +13179,6 @@ var require_common$1 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../
13330
13179
  //#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js
13331
13180
  var require_async$4 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js": ((exports) => {
13332
13181
  Object.defineProperty(exports, "__esModule", { value: true });
13333
- exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
13334
13182
  const fsStat$5 = require_out$3();
13335
13183
  const rpl = require_run_parallel();
13336
13184
  const constants_1$1 = require_constants();
@@ -13359,8 +13207,7 @@ var require_async$4 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
13359
13207
  callSuccessCallback$1(callback, entries);
13360
13208
  return;
13361
13209
  }
13362
- const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings));
13363
- rpl(tasks, (rplError, rplEntries) => {
13210
+ rpl(entries.map((entry) => makeRplTaskEntry(entry, settings)), (rplError, rplEntries) => {
13364
13211
  if (rplError !== null) {
13365
13212
  callFailureCallback$1(callback, rplError);
13366
13213
  return;
@@ -13396,7 +13243,7 @@ var require_async$4 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
13396
13243
  callFailureCallback$1(callback, readdirError);
13397
13244
  return;
13398
13245
  }
13399
- const tasks = names.map((name) => {
13246
+ rpl(names.map((name) => {
13400
13247
  const path$14 = common$4.joinPathSegments(directory, name, settings.pathSegmentSeparator);
13401
13248
  return (done) => {
13402
13249
  fsStat$5.stat(path$14, settings.fsStatSettings, (error, stats) => {
@@ -13413,8 +13260,7 @@ var require_async$4 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
13413
13260
  done(null, entry);
13414
13261
  });
13415
13262
  };
13416
- });
13417
- rpl(tasks, (rplError, entries) => {
13263
+ }), (rplError, entries) => {
13418
13264
  if (rplError !== null) {
13419
13265
  callFailureCallback$1(callback, rplError);
13420
13266
  return;
@@ -13436,7 +13282,6 @@ var require_async$4 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
13436
13282
  //#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js
13437
13283
  var require_sync$4 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js": ((exports) => {
13438
13284
  Object.defineProperty(exports, "__esModule", { value: true });
13439
- exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
13440
13285
  const fsStat$4 = require_out$3();
13441
13286
  const constants_1 = require_constants();
13442
13287
  const utils$7 = require_utils();
@@ -13447,8 +13292,7 @@ var require_sync$4 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../no
13447
13292
  }
13448
13293
  exports.read = read;
13449
13294
  function readdirWithFileTypes(directory, settings) {
13450
- const dirents = settings.fs.readdirSync(directory, { withFileTypes: true });
13451
- return dirents.map((dirent) => {
13295
+ return settings.fs.readdirSync(directory, { withFileTypes: true }).map((dirent) => {
13452
13296
  const entry = {
13453
13297
  dirent,
13454
13298
  name: dirent.name,
@@ -13465,8 +13309,7 @@ var require_sync$4 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../no
13465
13309
  }
13466
13310
  exports.readdirWithFileTypes = readdirWithFileTypes;
13467
13311
  function readdir(directory, settings) {
13468
- const names = settings.fs.readdirSync(directory);
13469
- return names.map((name) => {
13312
+ return settings.fs.readdirSync(directory).map((name) => {
13470
13313
  const entryPath = common$3.joinPathSegments(directory, name, settings.pathSegmentSeparator);
13471
13314
  const stats = fsStat$4.statSync(entryPath, settings.fsStatSettings);
13472
13315
  const entry = {
@@ -13534,7 +13377,6 @@ var require_settings$2 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../.
13534
13377
  //#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js
13535
13378
  var require_out$2 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js": ((exports) => {
13536
13379
  Object.defineProperty(exports, "__esModule", { value: true });
13537
- exports.Settings = exports.scandirSync = exports.scandir = void 0;
13538
13380
  const async = require_async$4();
13539
13381
  const sync = require_sync$4();
13540
13382
  const settings_1$2 = require_settings$2();
@@ -13808,13 +13650,12 @@ var require_queue = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../nod
13808
13650
  resolve();
13809
13651
  });
13810
13652
  var previousDrain = queue.drain;
13811
- var p = new Promise(function(resolve) {
13653
+ return new Promise(function(resolve) {
13812
13654
  queue.drain = function() {
13813
13655
  previousDrain();
13814
13656
  resolve();
13815
13657
  };
13816
13658
  });
13817
- return p;
13818
13659
  }
13819
13660
  }
13820
13661
  module.exports = fastqueue;
@@ -13825,7 +13666,6 @@ var require_queue = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../nod
13825
13666
  //#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js
13826
13667
  var require_common = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js": ((exports) => {
13827
13668
  Object.defineProperty(exports, "__esModule", { value: true });
13828
- exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
13829
13669
  function isFatalError(settings, error) {
13830
13670
  if (settings.errorFilter === null) return true;
13831
13671
  return !settings.errorFilter(error);
@@ -14126,7 +13966,6 @@ var require_settings$1 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../.
14126
13966
  //#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js
14127
13967
  var require_out$1 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js": ((exports) => {
14128
13968
  Object.defineProperty(exports, "__esModule", { value: true });
14129
- exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
14130
13969
  const async_1$2 = require_async$2();
14131
13970
  const stream_1$4 = require_stream$2();
14132
13971
  const sync_1$2 = require_sync$2();
@@ -14142,14 +13981,12 @@ var require_out$1 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../nod
14142
13981
  exports.walk = walk;
14143
13982
  function walkSync(directory, optionsOrSettings) {
14144
13983
  const settings = getSettings(optionsOrSettings);
14145
- const provider = new sync_1$2.default(directory, settings);
14146
- return provider.read();
13984
+ return new sync_1$2.default(directory, settings).read();
14147
13985
  }
14148
13986
  exports.walkSync = walkSync;
14149
13987
  function walkStream(directory, optionsOrSettings) {
14150
13988
  const settings = getSettings(optionsOrSettings);
14151
- const provider = new stream_1$4.default(directory, settings);
14152
- return provider.read();
13989
+ return new stream_1$4.default(directory, settings).read();
14153
13990
  }
14154
13991
  exports.walkStream = walkStream;
14155
13992
  function getSettings(settingsOrOptions = {}) {
@@ -14300,10 +14137,8 @@ var require_matcher = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
14300
14137
  }
14301
14138
  }
14302
14139
  _getPatternSegments(pattern$1) {
14303
- const parts = utils$5.pattern.getPatternParts(pattern$1, this._micromatchOptions);
14304
- return parts.map((part) => {
14305
- const dynamic = utils$5.pattern.isDynamicPattern(part, this._settings);
14306
- if (!dynamic) return {
14140
+ return utils$5.pattern.getPatternParts(pattern$1, this._micromatchOptions).map((part) => {
14141
+ if (!utils$5.pattern.isDynamicPattern(part, this._settings)) return {
14307
14142
  dynamic: false,
14308
14143
  pattern: part
14309
14144
  };
@@ -14341,13 +14176,12 @@ var require_partial = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
14341
14176
  * ^ true/false ^ always true
14342
14177
  */
14343
14178
  if (!pattern$1.complete && levels > section.length) return true;
14344
- const match = parts.every((part, index) => {
14179
+ if (parts.every((part, index) => {
14345
14180
  const segment = pattern$1.segments[index];
14346
14181
  if (segment.dynamic && segment.patternRe.test(part)) return true;
14347
14182
  if (!segment.dynamic && segment.pattern === part) return true;
14348
14183
  return false;
14349
- });
14350
- if (match) return true;
14184
+ })) return true;
14351
14185
  }
14352
14186
  return false;
14353
14187
  }
@@ -14395,8 +14229,7 @@ var require_deep = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node
14395
14229
  _getEntryLevel(basePath, entryPath) {
14396
14230
  const entryPathDepth = entryPath.split("/").length;
14397
14231
  if (basePath === "") return entryPathDepth;
14398
- const basePathDepth = basePath.split("/").length;
14399
- return entryPathDepth - basePathDepth;
14232
+ return entryPathDepth - basePath.split("/").length;
14400
14233
  }
14401
14234
  _isSkippedSymbolicLink(entry) {
14402
14235
  return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink();
@@ -14454,12 +14287,9 @@ var require_entry$1 = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../n
14454
14287
  return this._settings.onlyDirectories && !entry.dirent.isDirectory();
14455
14288
  }
14456
14289
  _isMatchToPatternsSet(filepath, patterns, isDirectory) {
14457
- const isMatched = this._isMatchToPatterns(filepath, patterns.positive.all, isDirectory);
14458
- if (!isMatched) return false;
14459
- const isMatchedByRelativeNegative = this._isMatchToPatterns(filepath, patterns.negative.relative, isDirectory);
14460
- if (isMatchedByRelativeNegative) return false;
14461
- const isMatchedByAbsoluteNegative = this._isMatchToAbsoluteNegative(filepath, patterns.negative.absolute, isDirectory);
14462
- if (isMatchedByAbsoluteNegative) return false;
14290
+ if (!this._isMatchToPatterns(filepath, patterns.positive.all, isDirectory)) return false;
14291
+ if (this._isMatchToPatterns(filepath, patterns.negative.relative, isDirectory)) return false;
14292
+ if (this._isMatchToAbsoluteNegative(filepath, patterns.negative.absolute, isDirectory)) return false;
14463
14293
  return true;
14464
14294
  }
14465
14295
  _isMatchToAbsoluteNegative(filepath, patternsRe, isDirectory) {
@@ -14588,8 +14418,7 @@ var require_async = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../nod
14588
14418
  async read(task) {
14589
14419
  const root = this._getRootDirectory(task);
14590
14420
  const options = this._getReaderOptions(task);
14591
- const entries = await this.api(root, task, options);
14592
- return entries.map((entry) => options.transform(entry));
14421
+ return (await this.api(root, task, options)).map((entry) => options.transform(entry));
14593
14422
  }
14594
14423
  api(root, task, options) {
14595
14424
  if (task.dynamic) return this._reader.dynamic(root, options);
@@ -14687,8 +14516,7 @@ var require_sync = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node
14687
14516
  read(task) {
14688
14517
  const root = this._getRootDirectory(task);
14689
14518
  const options = this._getReaderOptions(task);
14690
- const entries = this.api(root, task, options);
14691
- return entries.map(options.transform);
14519
+ return this.api(root, task, options).map(options.transform);
14692
14520
  }
14693
14521
  api(root, task, options) {
14694
14522
  if (task.dynamic) return this._reader.dynamic(root, options);
@@ -14849,9 +14677,7 @@ var require_out = /* @__PURE__ */ require_picocolors$1.__commonJS({ "../../node_
14849
14677
  return tasks.map(provider.read, provider);
14850
14678
  }
14851
14679
  function assertPatternsInput(input) {
14852
- const source = [].concat(input);
14853
- const isValidSource = source.every((item) => utils.string.isString(item) && !utils.string.isEmpty(item));
14854
- if (!isValidSource) throw new TypeError("Patterns must be a string (non empty) or an array of strings");
14680
+ if (![].concat(input).every((item) => utils.string.isString(item) && !utils.string.isEmpty(item))) throw new TypeError("Patterns must be a string (non empty) or an array of strings");
14855
14681
  }
14856
14682
  module.exports = FastGlob;
14857
14683
  }) });
@@ -14874,20 +14700,17 @@ function processExtraSources(extraSources, cwd) {
14874
14700
  absolute: true,
14875
14701
  onlyFiles: false
14876
14702
  });
14877
- for (const absolutePath of matches) if (fs.default.existsSync(absolutePath)) {
14878
- const stats = fs.default.statSync(absolutePath);
14879
- if (stats.isDirectory()) processedSources.push({
14880
- type: "dir",
14881
- filePath: absolutePath,
14882
- reasons: ["custom-user-config"]
14883
- });
14884
- else processedSources.push({
14885
- type: "contents",
14886
- id: absolutePath,
14887
- contents: fs.default.readFileSync(absolutePath, "utf-8"),
14888
- reasons: ["custom-user-config"]
14889
- });
14890
- }
14703
+ for (const absolutePath of matches) if (fs.default.existsSync(absolutePath)) if (fs.default.statSync(absolutePath).isDirectory()) processedSources.push({
14704
+ type: "dir",
14705
+ filePath: absolutePath,
14706
+ reasons: ["custom-user-config"]
14707
+ });
14708
+ else processedSources.push({
14709
+ type: "contents",
14710
+ id: absolutePath,
14711
+ contents: fs.default.readFileSync(absolutePath, "utf-8"),
14712
+ reasons: ["custom-user-config"]
14713
+ });
14891
14714
  } catch (error) {
14892
14715
  console.warn(`Error processing extra source "${source}": ${error}`);
14893
14716
  }
@@ -15043,12 +14866,11 @@ const createAndInjectFingerprintFiles = async ({ platform } = {}) => {
15043
14866
  const { paths: _iosPaths } = await setFingerprintHash("ios", newFingerprint.ios.hash);
15044
14867
  iosPaths.push(..._iosPaths);
15045
14868
  } else {
15046
- const nextFingerprints = {
14869
+ await createFingerprintJSON({
15047
14870
  android: localFingerprint.android || newFingerprint.android,
15048
14871
  ios: localFingerprint.ios || newFingerprint.ios,
15049
14872
  [platform]: newFingerprint[platform]
15050
- };
15051
- await createFingerprintJSON(nextFingerprints);
14873
+ });
15052
14874
  const { paths: _platformPaths } = await setFingerprintHash(platform, newFingerprint[platform].hash);
15053
14875
  switch (platform) {
15054
14876
  case "android":