@base44-preview/cli 0.2.3-pr.679.4033119 → 0.2.3-pr.679.8a2af8d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js CHANGED
@@ -29726,6 +29726,389 @@ var require_kebabCase = __commonJS(function(exports, module) {
29726
29726
  module.exports = kebabCase;
29727
29727
  });
29728
29728
 
29729
+ // ../../node_modules/tmp/lib/tmp.js
29730
+ var require_tmp = __commonJS(function(exports, module) {
29731
+ /*!
29732
+ * Tmp
29733
+ *
29734
+ * Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
29735
+ *
29736
+ * MIT Licensed
29737
+ */
29738
+ var fs = __require("fs");
29739
+ var os = __require("os");
29740
+ var path = __require("path");
29741
+ var crypto = __require("crypto");
29742
+ var _c = { fs: fs.constants, os: os.constants };
29743
+ var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
29744
+ var TEMPLATE_PATTERN = /XXXXXX/;
29745
+ var DEFAULT_TRIES = 3;
29746
+ var CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR);
29747
+ var IS_WIN32 = os.platform() === "win32";
29748
+ var EBADF = _c.EBADF || _c.os.errno.EBADF;
29749
+ var ENOENT = _c.ENOENT || _c.os.errno.ENOENT;
29750
+ var DIR_MODE = 448;
29751
+ var FILE_MODE = 384;
29752
+ var EXIT = "exit";
29753
+ var _removeObjects = [];
29754
+ var FN_RMDIR_SYNC = fs.rmdirSync.bind(fs);
29755
+ var _gracefulCleanup = false;
29756
+ function rimraf(dirPath, callback) {
29757
+ return fs.rm(dirPath, { recursive: true }, callback);
29758
+ }
29759
+ function FN_RIMRAF_SYNC(dirPath) {
29760
+ return fs.rmSync(dirPath, { recursive: true });
29761
+ }
29762
+ function tmpName(options, callback) {
29763
+ const args = _parseArguments(options, callback), opts = args[0], cb = args[1];
29764
+ _assertAndSanitizeOptions(opts, function(err, sanitizedOptions) {
29765
+ if (err)
29766
+ return cb(err);
29767
+ let tries = sanitizedOptions.tries;
29768
+ (function _getUniqueName() {
29769
+ try {
29770
+ const name = _generateTmpName(sanitizedOptions);
29771
+ fs.stat(name, function(err) {
29772
+ if (!err) {
29773
+ if (tries-- > 0)
29774
+ return _getUniqueName();
29775
+ return cb(new Error("Could not get a unique tmp filename, max tries reached " + name));
29776
+ }
29777
+ cb(null, name);
29778
+ });
29779
+ } catch (err) {
29780
+ cb(err);
29781
+ }
29782
+ })();
29783
+ });
29784
+ }
29785
+ function tmpNameSync(options) {
29786
+ const args = _parseArguments(options), opts = args[0];
29787
+ const sanitizedOptions = _assertAndSanitizeOptionsSync(opts);
29788
+ let tries = sanitizedOptions.tries;
29789
+ do {
29790
+ const name = _generateTmpName(sanitizedOptions);
29791
+ try {
29792
+ fs.statSync(name);
29793
+ } catch (e) {
29794
+ return name;
29795
+ }
29796
+ } while (tries-- > 0);
29797
+ throw new Error("Could not get a unique tmp filename, max tries reached");
29798
+ }
29799
+ function file(options, callback) {
29800
+ const args = _parseArguments(options, callback), opts = args[0], cb = args[1];
29801
+ tmpName(opts, function _tmpNameCreated(err, name) {
29802
+ if (err)
29803
+ return cb(err);
29804
+ fs.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err, fd) {
29805
+ if (err)
29806
+ return cb(err);
29807
+ if (opts.discardDescriptor) {
29808
+ return fs.close(fd, function _discardCallback(possibleErr) {
29809
+ return cb(possibleErr, name, undefined, _prepareTmpFileRemoveCallback(name, -1, opts, false));
29810
+ });
29811
+ } else {
29812
+ const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
29813
+ cb(null, name, fd, _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts, false));
29814
+ }
29815
+ });
29816
+ });
29817
+ }
29818
+ function fileSync(options) {
29819
+ const args = _parseArguments(options), opts = args[0];
29820
+ const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
29821
+ const name = tmpNameSync(opts);
29822
+ let fd = fs.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
29823
+ if (opts.discardDescriptor) {
29824
+ fs.closeSync(fd);
29825
+ fd = undefined;
29826
+ }
29827
+ return {
29828
+ name,
29829
+ fd,
29830
+ removeCallback: _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts, true)
29831
+ };
29832
+ }
29833
+ function dir(options, callback) {
29834
+ const args = _parseArguments(options, callback), opts = args[0], cb = args[1];
29835
+ tmpName(opts, function _tmpNameCreated(err, name) {
29836
+ if (err)
29837
+ return cb(err);
29838
+ fs.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err) {
29839
+ if (err)
29840
+ return cb(err);
29841
+ cb(null, name, _prepareTmpDirRemoveCallback(name, opts, false));
29842
+ });
29843
+ });
29844
+ }
29845
+ function dirSync(options) {
29846
+ const args = _parseArguments(options), opts = args[0];
29847
+ const name = tmpNameSync(opts);
29848
+ fs.mkdirSync(name, opts.mode || DIR_MODE);
29849
+ return {
29850
+ name,
29851
+ removeCallback: _prepareTmpDirRemoveCallback(name, opts, true)
29852
+ };
29853
+ }
29854
+ function _removeFileAsync(fdPath, next) {
29855
+ const _handler = function(err) {
29856
+ if (err && !_isENOENT(err)) {
29857
+ return next(err);
29858
+ }
29859
+ next();
29860
+ };
29861
+ if (0 <= fdPath[0])
29862
+ fs.close(fdPath[0], function() {
29863
+ fs.unlink(fdPath[1], _handler);
29864
+ });
29865
+ else
29866
+ fs.unlink(fdPath[1], _handler);
29867
+ }
29868
+ function _removeFileSync(fdPath) {
29869
+ let rethrownException = null;
29870
+ try {
29871
+ if (0 <= fdPath[0])
29872
+ fs.closeSync(fdPath[0]);
29873
+ } catch (e) {
29874
+ if (!_isEBADF(e) && !_isENOENT(e))
29875
+ throw e;
29876
+ } finally {
29877
+ try {
29878
+ fs.unlinkSync(fdPath[1]);
29879
+ } catch (e) {
29880
+ if (!_isENOENT(e))
29881
+ rethrownException = e;
29882
+ }
29883
+ }
29884
+ if (rethrownException !== null) {
29885
+ throw rethrownException;
29886
+ }
29887
+ }
29888
+ function _prepareTmpFileRemoveCallback(name, fd, opts, sync) {
29889
+ const removeCallbackSync = _prepareRemoveCallback(_removeFileSync, [fd, name], sync);
29890
+ const removeCallback = _prepareRemoveCallback(_removeFileAsync, [fd, name], sync, removeCallbackSync);
29891
+ if (!opts.keep)
29892
+ _removeObjects.unshift(removeCallbackSync);
29893
+ return sync ? removeCallbackSync : removeCallback;
29894
+ }
29895
+ function _prepareTmpDirRemoveCallback(name, opts, sync) {
29896
+ const removeFunction = opts.unsafeCleanup ? rimraf : fs.rmdir.bind(fs);
29897
+ const removeFunctionSync = opts.unsafeCleanup ? FN_RIMRAF_SYNC : FN_RMDIR_SYNC;
29898
+ const removeCallbackSync = _prepareRemoveCallback(removeFunctionSync, name, sync);
29899
+ const removeCallback = _prepareRemoveCallback(removeFunction, name, sync, removeCallbackSync);
29900
+ if (!opts.keep)
29901
+ _removeObjects.unshift(removeCallbackSync);
29902
+ return sync ? removeCallbackSync : removeCallback;
29903
+ }
29904
+ function _prepareRemoveCallback(removeFunction, fileOrDirName, sync, cleanupCallbackSync) {
29905
+ let called = false;
29906
+ return function _cleanupCallback(next) {
29907
+ if (!called) {
29908
+ const toRemove = cleanupCallbackSync || _cleanupCallback;
29909
+ const index = _removeObjects.indexOf(toRemove);
29910
+ if (index >= 0)
29911
+ _removeObjects.splice(index, 1);
29912
+ called = true;
29913
+ if (sync || removeFunction === FN_RMDIR_SYNC || removeFunction === FN_RIMRAF_SYNC) {
29914
+ return removeFunction(fileOrDirName);
29915
+ } else {
29916
+ return removeFunction(fileOrDirName, next || function() {});
29917
+ }
29918
+ }
29919
+ };
29920
+ }
29921
+ function _garbageCollector() {
29922
+ if (!_gracefulCleanup)
29923
+ return;
29924
+ while (_removeObjects.length) {
29925
+ try {
29926
+ _removeObjects[0]();
29927
+ } catch (e) {}
29928
+ }
29929
+ }
29930
+ function _randomChars(howMany) {
29931
+ let value = [], rnd = null;
29932
+ try {
29933
+ rnd = crypto.randomBytes(howMany);
29934
+ } catch (e) {
29935
+ rnd = crypto.pseudoRandomBytes(howMany);
29936
+ }
29937
+ for (let i = 0;i < howMany; i++) {
29938
+ value.push(RANDOM_CHARS[rnd[i] % RANDOM_CHARS.length]);
29939
+ }
29940
+ return value.join("");
29941
+ }
29942
+ function _isUndefined(obj) {
29943
+ return typeof obj === "undefined";
29944
+ }
29945
+ function _parseArguments(options, callback) {
29946
+ if (typeof options === "function") {
29947
+ return [{}, options];
29948
+ }
29949
+ if (_isUndefined(options)) {
29950
+ return [{}, callback];
29951
+ }
29952
+ const actualOptions = {};
29953
+ for (const key of Object.getOwnPropertyNames(options)) {
29954
+ actualOptions[key] = options[key];
29955
+ }
29956
+ return [actualOptions, callback];
29957
+ }
29958
+ function _resolvePath(name, tmpDir, cb) {
29959
+ const pathToResolve = path.isAbsolute(name) ? name : path.join(tmpDir, name);
29960
+ fs.stat(pathToResolve, function(err) {
29961
+ if (err) {
29962
+ fs.realpath(path.dirname(pathToResolve), function(err, parentDir) {
29963
+ if (err)
29964
+ return cb(err);
29965
+ cb(null, path.join(parentDir, path.basename(pathToResolve)));
29966
+ });
29967
+ } else {
29968
+ fs.realpath(pathToResolve, cb);
29969
+ }
29970
+ });
29971
+ }
29972
+ function _resolvePathSync(name, tmpDir) {
29973
+ const pathToResolve = path.isAbsolute(name) ? name : path.join(tmpDir, name);
29974
+ try {
29975
+ fs.statSync(pathToResolve);
29976
+ return fs.realpathSync(pathToResolve);
29977
+ } catch (_err) {
29978
+ const parentDir = fs.realpathSync(path.dirname(pathToResolve));
29979
+ return path.join(parentDir, path.basename(pathToResolve));
29980
+ }
29981
+ }
29982
+ function _generateTmpName(opts) {
29983
+ const tmpDir = opts.tmpdir;
29984
+ if (!_isUndefined(opts.name)) {
29985
+ return path.join(tmpDir, opts.dir, opts.name);
29986
+ }
29987
+ if (!_isUndefined(opts.template)) {
29988
+ return path.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
29989
+ }
29990
+ const name = [
29991
+ opts.prefix ? opts.prefix : "tmp",
29992
+ "-",
29993
+ process.pid,
29994
+ "-",
29995
+ _randomChars(12),
29996
+ opts.postfix ? "-" + opts.postfix : ""
29997
+ ].join("");
29998
+ return path.join(tmpDir, opts.dir, name);
29999
+ }
30000
+ function _assertOptionsBase(options) {
30001
+ if (!_isUndefined(options.name)) {
30002
+ const name = options.name;
30003
+ if (path.isAbsolute(name))
30004
+ throw new Error(`name option must not contain an absolute path, found "${name}".`);
30005
+ const basename2 = path.basename(name);
30006
+ if (basename2 === ".." || basename2 === "." || basename2 !== name)
30007
+ throw new Error(`name option must not contain a path, found "${name}".`);
30008
+ }
30009
+ if (!_isUndefined(options.template) && !options.template.match(TEMPLATE_PATTERN)) {
30010
+ throw new Error(`Invalid template, found "${options.template}".`);
30011
+ }
30012
+ if (!_isUndefined(options.tries) && isNaN(options.tries) || options.tries < 0) {
30013
+ throw new Error(`Invalid tries, found "${options.tries}".`);
30014
+ }
30015
+ options.tries = _isUndefined(options.name) ? options.tries || DEFAULT_TRIES : 1;
30016
+ options.keep = !!options.keep;
30017
+ options.detachDescriptor = !!options.detachDescriptor;
30018
+ options.discardDescriptor = !!options.discardDescriptor;
30019
+ options.unsafeCleanup = !!options.unsafeCleanup;
30020
+ options.prefix = _isUndefined(options.prefix) ? "" : options.prefix;
30021
+ options.postfix = _isUndefined(options.postfix) ? "" : options.postfix;
30022
+ }
30023
+ function _getRelativePath(option, name, tmpDir, cb) {
30024
+ if (_isUndefined(name))
30025
+ return cb(null);
30026
+ _resolvePath(name, tmpDir, function(err, resolvedPath) {
30027
+ if (err)
30028
+ return cb(err);
30029
+ const relativePath = path.relative(tmpDir, resolvedPath);
30030
+ if (!resolvedPath.startsWith(tmpDir)) {
30031
+ return cb(new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath}".`));
30032
+ }
30033
+ cb(null, relativePath);
30034
+ });
30035
+ }
30036
+ function _getRelativePathSync(option, name, tmpDir) {
30037
+ if (_isUndefined(name))
30038
+ return;
30039
+ const resolvedPath = _resolvePathSync(name, tmpDir);
30040
+ const relativePath = path.relative(tmpDir, resolvedPath);
30041
+ if (!resolvedPath.startsWith(tmpDir)) {
30042
+ throw new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath}".`);
30043
+ }
30044
+ return relativePath;
30045
+ }
30046
+ function _assertAndSanitizeOptions(options, cb) {
30047
+ _getTmpDir(options, function(err, tmpDir) {
30048
+ if (err)
30049
+ return cb(err);
30050
+ options.tmpdir = tmpDir;
30051
+ try {
30052
+ _assertOptionsBase(options, tmpDir);
30053
+ } catch (err) {
30054
+ return cb(err);
30055
+ }
30056
+ _getRelativePath("dir", options.dir, tmpDir, function(err, dir) {
30057
+ if (err)
30058
+ return cb(err);
30059
+ options.dir = _isUndefined(dir) ? "" : dir;
30060
+ _getRelativePath("template", options.template, tmpDir, function(err, template) {
30061
+ if (err)
30062
+ return cb(err);
30063
+ options.template = template;
30064
+ cb(null, options);
30065
+ });
30066
+ });
30067
+ });
30068
+ }
30069
+ function _assertAndSanitizeOptionsSync(options) {
30070
+ const tmpDir = options.tmpdir = _getTmpDirSync(options);
30071
+ _assertOptionsBase(options, tmpDir);
30072
+ const dir = _getRelativePathSync("dir", options.dir, tmpDir);
30073
+ options.dir = _isUndefined(dir) ? "" : dir;
30074
+ options.template = _getRelativePathSync("template", options.template, tmpDir);
30075
+ return options;
30076
+ }
30077
+ function _isEBADF(error) {
30078
+ return _isExpectedError(error, -EBADF, "EBADF");
30079
+ }
30080
+ function _isENOENT(error) {
30081
+ return _isExpectedError(error, -ENOENT, "ENOENT");
30082
+ }
30083
+ function _isExpectedError(error, errno, code) {
30084
+ return IS_WIN32 ? error.code === code : error.code === code && error.errno === errno;
30085
+ }
30086
+ function setGracefulCleanup() {
30087
+ _gracefulCleanup = true;
30088
+ }
30089
+ function _getTmpDir(options, cb) {
30090
+ return fs.realpath(options && options.tmpdir || os.tmpdir(), cb);
30091
+ }
30092
+ function _getTmpDirSync(options) {
30093
+ return fs.realpathSync(options && options.tmpdir || os.tmpdir());
30094
+ }
30095
+ process.addListener(EXIT, _garbageCollector);
30096
+ Object.defineProperty(exports, "tmpdir", {
30097
+ enumerable: true,
30098
+ configurable: false,
30099
+ get: function() {
30100
+ return _getTmpDirSync();
30101
+ }
30102
+ });
30103
+ exports.dir = dir;
30104
+ exports.dirSync = dirSync;
30105
+ exports.file = file;
30106
+ exports.fileSync = fileSync;
30107
+ exports.tmpName = tmpName;
30108
+ exports.tmpNameSync = tmpNameSync;
30109
+ exports.setGracefulCleanup = setGracefulCleanup;
30110
+ });
30111
+
29729
30112
  // ../../node_modules/common-tags/lib/TemplateTag/TemplateTag.js
29730
30113
  var require_TemplateTag = __commonJS(function(exports, module) {
29731
30114
  Object.defineProperty(exports, "__esModule", {
@@ -31177,7 +31560,7 @@ function cleanDoc(doc) {
31177
31560
  return mapDoc(doc, (currentDoc) => cleanDocFn(currentDoc));
31178
31561
  }
31179
31562
  function replaceEndOfLine(doc, replacement = literalline) {
31180
- return mapDoc(doc, (currentDoc) => typeof currentDoc === "string" ? join31(replacement, currentDoc.split(`
31563
+ return mapDoc(doc, (currentDoc) => typeof currentDoc === "string" ? join32(replacement, currentDoc.split(`
31181
31564
  `)) : currentDoc);
31182
31565
  }
31183
31566
  function canBreakFn(doc) {
@@ -31257,7 +31640,7 @@ function indentIfBreak(contents, options) {
31257
31640
  negate: options.negate
31258
31641
  };
31259
31642
  }
31260
- function join31(separator, docs) {
31643
+ function join32(separator, docs) {
31261
31644
  assertDoc(separator);
31262
31645
  assertDocArray(docs);
31263
31646
  const parts = [];
@@ -31968,7 +32351,7 @@ var init_doc = __esm(() => {
31968
32351
  MODE_FLAT = Symbol("MODE_FLAT");
31969
32352
  DOC_FILL_PRINTED_LENGTH = Symbol("DOC_FILL_PRINTED_LENGTH");
31970
32353
  builders = {
31971
- join: join31,
32354
+ join: join32,
31972
32355
  line,
31973
32356
  softline,
31974
32357
  hardline,
@@ -37494,7 +37877,7 @@ function Qt2(e) {
37494
37877
  return ft3(e, (t) => Dc(t));
37495
37878
  }
37496
37879
  function qe(e, t = $r2) {
37497
- return ft3(e, (r) => typeof r == "string" ? L2(t, r.split(`
37880
+ return ft3(e, (r) => typeof r == "string" ? L3(t, r.split(`
37498
37881
  `)) : r);
37499
37882
  }
37500
37883
  function fc(e) {
@@ -37559,7 +37942,7 @@ function P2(e, t = "", r = {}) {
37559
37942
  function yt4(e, t) {
37560
37943
  return de2(e), { type: Ve3, contents: e, groupId: t.groupId, negate: t.negate };
37561
37944
  }
37562
- function L2(e, t) {
37945
+ function L3(e, t) {
37563
37946
  de2(e), Kr(t);
37564
37947
  let r = [];
37565
37948
  for (let n = 0;n < t.length; n++)
@@ -37908,7 +38291,7 @@ function bc(e, t, r) {
37908
38291
  for (let { cells: D } of y.filter((F) => !F.hasLineBreak))
37909
38292
  for (let [F, C] of D.entries())
37910
38293
  c[F] = Math.max(c[F], ot3(C));
37911
- return [je2, "`", m([E, L2(E, y.map((D) => L2(" | ", D.cells.map((F, C) => D.hasLineBreak ? F : F + " ".repeat(c[C] - ot3(F))))))]), E, "`"];
38294
+ return [je2, "`", m([E, L3(E, y.map((D) => L3(" | ", D.cells.map((F, C) => D.hasLineBreak ? F : F + " ".repeat(c[C] - ot3(F))))))]), E, "`"];
37912
38295
  }
37913
38296
  }
37914
38297
  function Pc(e, t) {
@@ -37919,9 +38302,9 @@ function zt3(e, t) {
37919
38302
  return e.map(() => Pc(e, t), "expressions");
37920
38303
  }
37921
38304
  function tn2(e, t) {
37922
- return ft3(e, (r) => typeof r == "string" ? t ? W4(0, r, /(\\*)`/gu, "$1$1\\`") : ms2(r) : r);
38305
+ return ft3(e, (r) => typeof r == "string" ? t ? W4(0, r, /(\\*)`/gu, "$1$1\\`") : ms3(r) : r);
37923
38306
  }
37924
- function ms2(e) {
38307
+ function ms3(e) {
37925
38308
  return W4(0, e, /([\\`]|\$\{)/gu, "\\$1");
37926
38309
  }
37927
38310
  function kc({ node: e, parent: t }) {
@@ -37998,13 +38381,13 @@ async function co2(e, t, r) {
37998
38381
  let h = null;
37999
38382
  O ? h = Mc(F) : h = await e(D, { parser: "graphql" }), h ? (h = tn2(h, false), !c && b && o.push(""), o.push(h), !y && B && o.push("")) : !c && !y && b && o.push(""), d && o.push(d);
38000
38383
  }
38001
- return ["`", m([E, L2(E, o)]), E, "`"];
38384
+ return ["`", m([E, L3(E, o)]), E, "`"];
38002
38385
  }
38003
38386
  function Mc(e) {
38004
38387
  let t = [], r = false, n = e.map((s) => s.trim());
38005
38388
  for (let [s, i] of n.entries())
38006
38389
  i !== "" && (n[s - 1] === "" && r ? t.push([E, i]) : t.push(i), r = true);
38007
- return t.length === 0 ? null : L2(E, t);
38390
+ return t.length === 0 ? null : L3(E, t);
38008
38391
  }
38009
38392
  function lo2({ node: e, parent: t }) {
38010
38393
  return rn2({ node: e, parent: t }, "GraphQL") || t && (t.type === "TaggedTemplateExpression" && (t.tag.type === "MemberExpression" && t.tag.object.name === "graphql" && t.tag.property.name === "experimental" || t.tag.type === "Identifier" && (t.tag.name === "gql" || t.tag.name === "graphql")) || t.type === "CallExpression" && t.callee.type === "Identifier" && t.callee.name === "graphql");
@@ -38021,7 +38404,7 @@ async function mo(e, t, r, n, s) {
38021
38404
  for (let S = 0;S < g.length; S++) {
38022
38405
  let j = g[S];
38023
38406
  if (S % 2 === 0) {
38024
- j && (j = ms2(j), s.__embeddedInHtml && (j = W4(0, j, /<\/(?=script\b)/giu, "<\\/")), h.push(j));
38407
+ j && (j = ms3(j), s.__embeddedInHtml && (j = W4(0, j, /<\/(?=script\b)/giu, "<\\/")), h.push(j));
38025
38408
  continue;
38026
38409
  }
38027
38410
  let U = Number(j);
@@ -38158,7 +38541,7 @@ function wo(e, t) {
38158
38541
  function Kc(e) {
38159
38542
  let t = e.value.split(`
38160
38543
  `);
38161
- return ["/*", L2(E, t.map((r, n) => n === 0 ? r.trimEnd() : " " + (n < t.length - 1 ? r.trim() : r.trimStart()))), "*/"];
38544
+ return ["/*", L3(E, t.map((r, n) => n === 0 ? r.trimEnd() : " " + (n < t.length - 1 ? r.trim() : r.trimStart()))), "*/"];
38162
38545
  }
38163
38546
  function ds(e, t) {
38164
38547
  if (e.isRoot)
@@ -38636,7 +39019,7 @@ function v2(e, t, r = {}) {
38636
39019
  c.leading || c.trailing || c.marker !== i || !o(c) || u.push(As(e, t));
38637
39020
  }, "comments"), u.length === 0)
38638
39021
  return "";
38639
- let p = L2(E, u);
39022
+ let p = L3(E, u);
38640
39023
  return s ? m([E, p]) : p;
38641
39024
  }
38642
39025
  function Mt3(e, t) {
@@ -38768,7 +39151,7 @@ function Ts(e, t, r, n, s) {
38768
39151
  return [l(r())];
38769
39152
  let o = [];
38770
39153
  dr2(i.operator, i.left.operator) ? o = e.call(() => Ts(e, t, r, true, s), "left") : o.push(l(r("left")));
38771
- let u = er2(i), p = i.right.type === "ChainExpression" ? i.right.expression : i.right, c = (i.operator === "|>" || i.type === "NGPipeExpression" || yl(e, t)) && !Ee2(t.originalText, p), D = !T2(p, x3.Leading, Hr) && Ee2(t.originalText, p), F = i.type === "NGPipeExpression" ? "|" : i.operator, C = i.type === "NGPipeExpression" && i.arguments.length > 0 ? l(m([f, ": ", L2([A, ": "], e.map(() => xe(2, l(r())), "arguments"))])) : "", d;
39154
+ let u = er2(i), p = i.right.type === "ChainExpression" ? i.right.expression : i.right, c = (i.operator === "|>" || i.type === "NGPipeExpression" || yl(e, t)) && !Ee2(t.originalText, p), D = !T2(p, x3.Leading, Hr) && Ee2(t.originalText, p), F = i.type === "NGPipeExpression" ? "|" : i.operator, C = i.type === "NGPipeExpression" && i.arguments.length > 0 ? l(m([f, ": ", L3([A, ": "], e.map(() => xe(2, l(r())), "arguments"))])) : "", d;
38772
39155
  if (u)
38773
39156
  d = [F, Ee2(t.originalText, p) ? m([A, r("right"), C]) : [" ", r("right"), C]];
38774
39157
  else {
@@ -38816,8 +39199,8 @@ function un2(e, t, r) {
38816
39199
  return o || (C = xe(2, C)), De2(e, C, t);
38817
39200
  }, "types"), p = "", c = "";
38818
39201
  if (Yr2(e) && ({ leading: p, trailing: c } = Mt3(e, t)), o)
38819
- return [p, L2(" | ", u), c];
38820
- let y = i && !Ee2(t.originalText, n), D = [P2([y ? A : "", "| "]), L2([A, "| "], u)];
39202
+ return [p, L3(" | ", u), c];
39203
+ let y = i && !Ee2(t.originalText, n), D = [P2([y ? A : "", "| "]), L3([A, "| "], u)];
38821
39204
  if (ge2(e, t))
38822
39205
  return [p, l([m(D), f]), c];
38823
39206
  let F = [p, l(D)];
@@ -39079,7 +39462,7 @@ function Xo(e, t, r) {
39079
39462
  return _.length > 0 && N4(0, _, -1).needsParens ? ["(", ...re, ")"] : re;
39080
39463
  }
39081
39464
  function O(_) {
39082
- return _.length === 0 ? "" : m([E, L2(E, _.map(B))]);
39465
+ return _.length === 0 ? "" : m([E, L3(E, _.map(B))]);
39083
39466
  }
39084
39467
  let h = p.map(B), g = h, S = b ? 3 : 2, j = p.flat(), U = j.slice(1, -1).some((_) => T2(_.node, x3.Leading)) || j.slice(0, -1).some((_) => T2(_.node, x3.Trailing)) || p[S] && T2(p[S][0].node, x3.Leading);
39085
39468
  if (p.length <= S && !U && !p.some((_) => N4(0, _, -1).hasTrailingEmptyLine))
@@ -39099,7 +39482,7 @@ function vt4(e, t, r) {
39099
39482
  if ($t3(e, () => {
39100
39483
  D.push(r());
39101
39484
  }), !(p && D[0].label?.embed))
39102
- return [s ? "new " : "", $o(e, r), i, u, "(", L2(", ", D), ")"];
39485
+ return [s ? "new " : "", $o(e, r), i, u, "(", L3(", ", D), ")"];
39103
39486
  }
39104
39487
  let c = n.type === "ImportExpression" || n.type === "TSImportType" || n.type === "TSExternalModuleReference";
39105
39488
  if (!c && !s && Tt4(n.callee) && !e.call(() => ge2(e, t), "callee", ...n.callee.type === "ChainExpression" ? ["expression"] : []))
@@ -39570,9 +39953,9 @@ function tm(e, t, r) {
39570
39953
  return l(["<", r("name"), r("typeArguments"), " ", ...e.map(r, "attributes"), n.selfClosing ? " />" : ">"]);
39571
39954
  let i = n.attributes?.some((u) => V3(u.value) && u.value.value.includes(`
39572
39955
  `)), o = t.singleAttributePerLine && n.attributes.length > 1 ? E : A;
39573
- return l(["<", r("name"), r("typeArguments"), m(e.map(() => [o, r()], "attributes")), ...rm3(n, t, s)], { shouldBreak: i });
39956
+ return l(["<", r("name"), r("typeArguments"), m(e.map(() => [o, r()], "attributes")), ...rm4(n, t, s)], { shouldBreak: i });
39574
39957
  }
39575
- function rm3(e, t, r) {
39958
+ function rm4(e, t, r) {
39576
39959
  return e.selfClosing ? [A, "/>"] : nm(e, t, r) ? [">"] : [f, ">"];
39577
39960
  }
39578
39961
  function nm(e, t, r) {
@@ -39611,9 +39994,9 @@ function mu(e, t, r) {
39611
39994
  case "JSXIdentifier":
39612
39995
  return n.name;
39613
39996
  case "JSXNamespacedName":
39614
- return L2(":", [r("namespace"), r("name")]);
39997
+ return L3(":", [r("namespace"), r("name")]);
39615
39998
  case "JSXMemberExpression":
39616
- return L2(".", [r("object"), r("property")]);
39999
+ return L3(".", [r("object"), r("property")]);
39617
40000
  case "JSXSpreadAttribute":
39618
40001
  case "JSXSpreadChild":
39619
40002
  return am(e, t, r);
@@ -39677,7 +40060,7 @@ function yu(e, t, r) {
39677
40060
  case "NGPipeExpression":
39678
40061
  return on7(e, t, r);
39679
40062
  case "NGChainedExpression":
39680
- return l(L2([";", A], e.map(() => fm(e) ? r() : ["(", r(), ")"], "expressions")));
40063
+ return l(L3([";", A], e.map(() => fm(e) ? r() : ["(", r(), ")"], "expressions")));
39681
40064
  case "NGEmptyExpression":
39682
40065
  return "";
39683
40066
  case "NGMicrosyntax":
@@ -39710,17 +40093,17 @@ function fm({ node: e }) {
39710
40093
  }
39711
40094
  function Ms2(e, t, r) {
39712
40095
  let { node: n } = e;
39713
- return l([L2(A, e.map(r, "decorators")), du(n, t) ? E : A]);
40096
+ return l([L3(A, e.map(r, "decorators")), du(n, t) ? E : A]);
39714
40097
  }
39715
40098
  function Eu(e, t, r) {
39716
- return Cu(e.node) ? [L2(E, e.map(r, "declaration", "decorators")), E] : "";
40099
+ return Cu(e.node) ? [L3(E, e.map(r, "declaration", "decorators")), E] : "";
39717
40100
  }
39718
40101
  function Fu(e, t, r) {
39719
40102
  let { node: n, parent: s } = e, { decorators: i } = n;
39720
40103
  if (!R3(i) || Cu(s) || nr2(e))
39721
40104
  return "";
39722
40105
  let o = n.type === "ClassExpression" || n.type === "ClassDeclaration" || du(n, t);
39723
- return [e.key === "declaration" && Di2(s) ? E : o ? ke3 : "", L2(A, e.map(r, "decorators")), A];
40106
+ return [e.key === "declaration" && Di2(s) ? E : o ? ke3 : "", L3(A, e.map(r, "decorators")), A];
39724
40107
  }
39725
40108
  function du(e, t) {
39726
40109
  return e.decorators.some((r) => Z3(t.originalText, I3(r)));
@@ -39775,7 +40158,7 @@ function dm(e, t, { signatureDocs: r, shouldBreak: n }) {
39775
40158
  if (r.length === 1)
39776
40159
  return r[0];
39777
40160
  let { parent: s, key: i } = e;
39778
- return i !== "callee" && Dt2(s) || Te2(s) ? l([r[0], " =>", m([A, L2([" =>", A], r.slice(1))])], { shouldBreak: n }) : i === "callee" && Dt2(s) || t.assignmentLayout ? l(L2([" =>", A], r), { shouldBreak: n }) : l(m(L2([" =>", A], r)), { shouldBreak: n });
40161
+ return i !== "callee" && Dt2(s) || Te2(s) ? l([r[0], " =>", m([A, L3([" =>", A], r.slice(1))])], { shouldBreak: n }) : i === "callee" && Dt2(s) || t.assignmentLayout ? l(L3([" =>", A], r), { shouldBreak: n }) : l(m(L3([" =>", A], r)), { shouldBreak: n });
39779
40162
  }
39780
40163
  function Cm(e, t, r, { bodyDoc: n, bodyComments: s, functionBody: i, shouldPutBodyOnSameLine: o }) {
39781
40164
  let { node: u, parent: p } = e, c = r.expandLastArg && ie(t, "all") ? P2(",") : "", y = (r.expandLastArg || p.type === "JSXExpressionContainer") && !T2(u) ? f : "";
@@ -39957,7 +40340,7 @@ function vs2(e, t, r, n) {
39957
40340
  let { node: s } = e;
39958
40341
  if (!R3(s[n]))
39959
40342
  return "";
39960
- let i = v2(e, t, { marker: n }), o = L2([",", A], e.map(r, n));
40343
+ let i = v2(e, t, { marker: n }), o = L3([",", A], e.map(r, n));
39961
40344
  if (!Pu(s)) {
39962
40345
  let u = [`${n} `, i, o];
39963
40346
  return ku(e) ? [A, l(u)] : [" ", u];
@@ -39999,12 +40382,12 @@ function wu(e, t, r) {
39999
40382
  let n = e.map(r, "program", "body", 0, "params");
40000
40383
  if (n.length === 1)
40001
40384
  return n[0];
40002
- let s = L2([",", A], n);
40385
+ let s = L3([",", A], n);
40003
40386
  return t.__isVueForBindingLeft ? ["(", m([f, l(s)]), f, ")"] : s;
40004
40387
  }
40005
40388
  if (t.__isEmbeddedTypescriptGenericParameters) {
40006
40389
  let n = e.map(r, "program", "body", 0, "typeParameters", "params");
40007
- return L2([",", A], n);
40390
+ return L3([",", A], n);
40008
40391
  }
40009
40392
  }
40010
40393
  function Nu(e, t) {
@@ -40140,7 +40523,7 @@ function Gu(e, t, r) {
40140
40523
  o.push(r());
40141
40524
  else
40142
40525
  throw new Qe2(n, "specifier");
40143
- }, "specifiers"), s.push(L2(", ", i)), o.length > 0 && (i.length > 0 && s.push(", "), o.length > 1 || i.length > 0 || n.specifiers.some((p) => T2(p)) ? s.push(l(["{", m([t.bracketSpacing ? A : f, L2([",", A], o)]), P2(ie(t) ? "," : ""), t.bracketSpacing ? A : f, "}"])) : s.push(["{", t.bracketSpacing ? " " : "", ...o, t.bracketSpacing ? " " : "", "}"]));
40526
+ }, "specifiers"), s.push(L3(", ", i)), o.length > 0 && (i.length > 0 && s.push(", "), o.length > 1 || i.length > 0 || n.specifiers.some((p) => T2(p)) ? s.push(l(["{", m([t.bracketSpacing ? A : f, L3([",", A], o)]), P2(ie(t) ? "," : ""), t.bracketSpacing ? A : f, "}"])) : s.push(["{", t.bracketSpacing ? " " : "", ...o, t.bracketSpacing ? " " : "", "}"]));
40144
40527
  } else
40145
40528
  s.push("{}");
40146
40529
  return s;
@@ -40390,7 +40773,7 @@ function Hu(e, t, r, n) {
40390
40773
  p ? u.push(r()) : u.push(",", m([A, r()]));
40391
40774
  }, "expressions"), l(u);
40392
40775
  }
40393
- let o = L2([",", A], e.map(r, "expressions"));
40776
+ let o = L3([",", A], e.map(r, "expressions"));
40394
40777
  return (i.type === "ReturnStatement" || i.type === "ThrowStatement") && e.key === "argument" || i.type === "ArrowFunctionExpression" && e.key === "body" ? l(P2([m([f, o]), f], o)) : l(o);
40395
40778
  }
40396
40779
  case "ThisExpression":
@@ -40451,7 +40834,7 @@ function Hu(e, t, r, n) {
40451
40834
  }
40452
40835
  return ["catch ", r("body")];
40453
40836
  case "SwitchStatement":
40454
- return [l(["switch (", m([f, r("discriminant")]), f, ")"]), " {", s.cases.length > 0 ? m([E, L2(E, e.map(({ node: i, isLast: o }) => [r(), !o && oe(i, t) ? E : ""], "cases"))]) : "", E, "}"];
40837
+ return [l(["switch (", m([f, r("discriminant")]), f, ")"]), " {", s.cases.length > 0 ? m([E, L3(E, e.map(({ node: i, isLast: o }) => [r(), !o && oe(i, t) ? E : ""], "cases"))]) : "", E, "}"];
40455
40838
  case "SwitchCase": {
40456
40839
  let i = [];
40457
40840
  s.test ? i.push("case ", r("test"), ":") : i.push("default:"), T2(s, x3.Dangling) && i.push(" ", v2(e, t));
@@ -40631,7 +41014,7 @@ function na(e, t, r) {
40631
41014
  }
40632
41015
  function sa(e, t, r) {
40633
41016
  let { node: n } = e;
40634
- return [l(["match (", m([f, r("argument")]), f, ")"]), " {", n.cases.length > 0 ? m([E, L2(E, e.map(({ node: s, isLast: i }) => [r(), !i && oe(s, t) ? E : ""], "cases"))]) : "", E, "}"];
41017
+ return [l(["match (", m([f, r("argument")]), f, ")"]), " {", n.cases.length > 0 ? m([E, L3(E, e.map(({ node: s, isLast: i }) => [r(), !i && oe(s, t) ? E : ""], "cases"))]) : "", E, "}"];
40635
41018
  }
40636
41019
  function ia(e, t, r) {
40637
41020
  let { node: n } = e, s = T2(n, x3.Dangling) ? [" ", v2(e, t)] : [], i = n.type === "MatchStatementCase" ? [" ", r("body")] : m([A, r("body"), ","]);
@@ -40660,11 +41043,11 @@ function oa(e, t, r) {
40660
41043
  return [n.kind, " ", r("id")];
40661
41044
  case "MatchObjectPattern": {
40662
41045
  let s = e.map(r, "properties");
40663
- return n.rest && s.push(r("rest")), l(["{", m([f, L2([",", A], s)]), n.rest ? "" : P2(","), f, "}"]);
41046
+ return n.rest && s.push(r("rest")), l(["{", m([f, L3([",", A], s)]), n.rest ? "" : P2(","), f, "}"]);
40664
41047
  }
40665
41048
  case "MatchArrayPattern": {
40666
41049
  let s = e.map(r, "elements");
40667
- return n.rest && s.push(r("rest")), l(["[", m([f, L2([",", A], s)]), n.rest ? "" : P2(","), f, "]"]);
41050
+ return n.rest && s.push(r("rest")), l(["[", m([f, L3([",", A], s)]), n.rest ? "" : P2(","), f, "]"]);
40668
41051
  }
40669
41052
  case "MatchObjectPatternProperty":
40670
41053
  return n.shorthand ? r("pattern") : l([r("key"), ":", m([A, r("pattern")])]);
@@ -40690,8 +41073,8 @@ function uD(e, t, r) {
40690
41073
  return o || (c = xe(2, c)), De2(e, c, t);
40691
41074
  }, "patterns");
40692
41075
  if (o)
40693
- return L2(" | ", u);
40694
- let p = [P2(["| "]), L2([A, "| "], u)];
41076
+ return L3(" | ", u);
41077
+ let p = [P2(["| "]), L3([A, "| "], u)];
40695
41078
  return ge2(e, t) ? l([m([P2([f]), p]), f]) : s.type === "MatchArrayPattern" && s.elements.length > 1 ? l([m([P2(["(", f]), p]), f, P2(")")]) : l(i ? m(p) : p);
40696
41079
  }
40697
41080
  function aa(e, t, r) {
@@ -40726,9 +41109,9 @@ function Gt2(e, t, r, n) {
40726
41109
  return r(n);
40727
41110
  let i = It3(e.grandparent), o = e.match((c) => !(c[n].length === 1 && Je3(c[n][0])), undefined, (c, y) => y === "typeAnnotation", (c) => c.type === "Identifier", Bs2);
40728
41111
  if (s[n].length === 0 || !o && (i || s[n].length === 1 && (s[n][0].type === "NullableTypeAnnotation" || Jo(s[n][0]))))
40729
- return ["<", L2(", ", e.map(r, n)), pD(e, t), ">"];
41112
+ return ["<", L3(", ", e.map(r, n)), pD(e, t), ">"];
40730
41113
  let p = s.type === "TSTypeParameterInstantiation" ? "" : aD(e, t, n) ? "," : ie(t) ? P2(",") : "";
40731
- return l(["<", m([f, L2([",", A], e.map(r, n))]), p, f, ">"]);
41114
+ return l(["<", m([f, L3([",", A], e.map(r, n))]), p, f, ">"]);
40732
41115
  }
40733
41116
  function pD(e, t) {
40734
41117
  let { node: r } = e;
@@ -40928,7 +41311,7 @@ function pa(e, t, r) {
40928
41311
  }
40929
41312
  }
40930
41313
  function ca(e, t, r) {
40931
- let { node: n } = e, s = n.parameters.length > 1 ? P2(ie(t) ? "," : "") : "", i = l([m([f, L2([", ", f], e.map(r, "parameters"))]), s, f]);
41314
+ let { node: n } = e, s = n.parameters.length > 1 ? P2(ie(t) ? "," : "") : "", i = l([m([f, L3([", ", f], e.map(r, "parameters"))]), s, f]);
40932
41315
  return [e.key === "body" && e.parent.type === "ClassBody" && n.static ? "static " : "", n.readonly ? "readonly " : "", "[", n.parameters ? i : "", "]", G2(e, r), he2(e, t)];
40933
41316
  }
40934
41317
  function Us2(e, t, r) {
@@ -41104,10 +41487,10 @@ function yD(e, t, r) {
41104
41487
  if (n.elements.length === 0)
41105
41488
  return "[]";
41106
41489
  let s = e.map(() => e.node === null ? "null" : r(), "elements");
41107
- return ["[", m([E, L2([",", E], s)]), E, "]"];
41490
+ return ["[", m([E, L3([",", E], s)]), E, "]"];
41108
41491
  }
41109
41492
  case "ObjectExpression":
41110
- return n.properties.length === 0 ? "{}" : ["{", m([E, L2([",", E], e.map(r, "properties"))]), E, "}"];
41493
+ return n.properties.length === 0 ? "{}" : ["{", m([E, L3([",", E], e.map(r, "properties"))]), E, "}"];
41111
41494
  case "ObjectProperty":
41112
41495
  return [r("key"), ": ", r("value")];
41113
41496
  case "UnaryExpression":
@@ -41615,7 +41998,7 @@ function ds2(e) {
41615
41998
  function qt2(e) {
41616
41999
  return Ut3(e) || e === 95;
41617
42000
  }
41618
- function ms3(e) {
42001
+ function ms4(e) {
41619
42002
  return qt2(e) || Ee3(e);
41620
42003
  }
41621
42004
  function xs3(e) {
@@ -41954,7 +42337,7 @@ var Ii3, Be2, Ni3, Li3, Ri3, Vi3, ot4 = (e, t) => () => (t || e((t = { exports:
41954
42337
  return e;
41955
42338
  }, ut2 = (e, t, i) => (i = e != null ? Ii3(Ri3(e)) : {}, Bi3(t || !e || !e.__esModule ? Be2(i, "default", { value: e, enumerable: true }) : i, e)), Qt3, $e2, Pi3, Di3, dt5, Mi2 = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", mt5 = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", De3, Me3 = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", Fi3, ji3, Ui3, Gi3, C2 = function(t, i) {
41956
42339
  i === undefined && (i = {}), this.label = t, this.keyword = i.keyword, this.beforeExpr = !!i.beforeExpr, this.startsExpr = !!i.startsExpr, this.isLoop = !!i.isLoop, this.isAssign = !!i.isAssign, this.prefix = !!i.prefix, this.postfix = !!i.postfix, this.binop = i.binop || null, this.updateContext = null;
41957
- }, O2, N5, Je4, a3, L3, qi3, yt5, k4, gt5, Ji3, Ki3, $3, ht5, pt5, Hi3, ne3 = function(t, i) {
42340
+ }, O2, N5, Je4, a3, L4, qi3, yt5, k4, gt5, Ji3, Ki3, $3, ht5, pt5, Hi3, ne3 = function(t, i) {
41958
42341
  this.line = t, this.column = i;
41959
42342
  }, be3 = function(t, i, s) {
41960
42343
  this.start = i, this.end = s, t.sourceFile !== null && (this.source = t.sourceFile);
@@ -41964,7 +42347,7 @@ var Ii3, Be2, Ni3, Li3, Ri3, Vi3, ot4 = (e, t) => () => (t || e((t = { exports:
41964
42347
  t.allowReserved !== true && (r = De3[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (r += " await")), this.reservedWords = H4(r);
41965
42348
  var o = (r ? r + " " : "") + De3.strict;
41966
42349
  this.reservedWordsStrict = H4(o), this.reservedWordsStrictBind = H4(o + " " + De3.strictBind), this.input = String(i), this.containsEsc = false, s ? (this.pos = s, this.lineStart = this.input.lastIndexOf(`
41967
- `, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(L3).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = a3.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = true, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = false, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(oe2), this.regexpState = null, this.privateNameStack = [];
42350
+ `, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(L4).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = a3.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = true, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = false, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(oe2), this.regexpState = null, this.privateNameStack = [];
41968
42351
  }, U4, w2, zi3, Ce4 = function() {
41969
42352
  this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
41970
42353
  }, d2, ze3, Qi3, Yi3, ae2 = 1, Ge4 = 2, At5 = 4, D3, F2 = function(t, i, s, r, o) {
@@ -42288,8 +42671,8 @@ var init_acorn = __esm(() => {
42288
42671
  N5 = { startsExpr: true };
42289
42672
  Je4 = {};
42290
42673
  a3 = { num: new C2("num", N5), regexp: new C2("regexp", N5), string: new C2("string", N5), name: new C2("name", N5), privateId: new C2("privateId", N5), eof: new C2("eof"), bracketL: new C2("[", { beforeExpr: true, startsExpr: true }), bracketR: new C2("]"), braceL: new C2("{", { beforeExpr: true, startsExpr: true }), braceR: new C2("}"), parenL: new C2("(", { beforeExpr: true, startsExpr: true }), parenR: new C2(")"), comma: new C2(",", O2), semi: new C2(";", O2), colon: new C2(":", O2), dot: new C2("."), question: new C2("?", O2), questionDot: new C2("?."), arrow: new C2("=>", O2), template: new C2("template"), invalidTemplate: new C2("invalidTemplate"), ellipsis: new C2("...", O2), backQuote: new C2("`", N5), dollarBraceL: new C2("${", { beforeExpr: true, startsExpr: true }), eq: new C2("=", { beforeExpr: true, isAssign: true }), assign: new C2("_=", { beforeExpr: true, isAssign: true }), incDec: new C2("++/--", { prefix: true, postfix: true, startsExpr: true }), prefix: new C2("!/~", { beforeExpr: true, prefix: true, startsExpr: true }), logicalOR: V4("||", 1), logicalAND: V4("&&", 2), bitwiseOR: V4("|", 3), bitwiseXOR: V4("^", 4), bitwiseAND: V4("&", 5), equality: V4("==/!=/===/!==", 6), relational: V4("</>/<=/>=", 7), bitShift: V4("<</>>/>>>", 8), plusMin: new C2("+/-", { beforeExpr: true, binop: 9, prefix: true, startsExpr: true }), modulo: V4("%", 10), star: V4("*", 10), slash: V4("/", 10), starstar: new C2("**", { beforeExpr: true }), coalesce: V4("??", 1), _break: _3("break"), _case: _3("case", O2), _catch: _3("catch"), _continue: _3("continue"), _debugger: _3("debugger"), _default: _3("default", O2), _do: _3("do", { isLoop: true, beforeExpr: true }), _else: _3("else", O2), _finally: _3("finally"), _for: _3("for", { isLoop: true }), _function: _3("function", N5), _if: _3("if"), _return: _3("return", O2), _switch: _3("switch"), _throw: _3("throw", O2), _try: _3("try"), _var: _3("var"), _const: _3("const"), _while: _3("while", { isLoop: true }), _with: _3("with"), _new: _3("new", { beforeExpr: true, startsExpr: true }), _this: _3("this", N5), _super: _3("super", N5), _class: _3("class", N5), _extends: _3("extends", O2), _export: _3("export"), _import: _3("import", N5), _null: _3("null", N5), _true: _3("true", N5), _false: _3("false", N5), _in: _3("in", { beforeExpr: true, binop: 7 }), _instanceof: _3("instanceof", { beforeExpr: true, binop: 7 }), _typeof: _3("typeof", { beforeExpr: true, prefix: true, startsExpr: true }), _void: _3("void", { beforeExpr: true, prefix: true, startsExpr: true }), _delete: _3("delete", { beforeExpr: true, prefix: true, startsExpr: true }) };
42291
- L3 = /\r\n?|\n|\u2028|\u2029/;
42292
- qi3 = new RegExp(L3.source, "g");
42674
+ L4 = /\r\n?|\n|\u2028|\u2029/;
42675
+ qi3 = new RegExp(L4.source, "g");
42293
42676
  yt5 = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
42294
42677
  k4 = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
42295
42678
  gt5 = Object.prototype;
@@ -42384,7 +42767,7 @@ var init_acorn = __esm(() => {
42384
42767
  if ((t[1] || t[2]) === "use strict") {
42385
42768
  k4.lastIndex = e + t[0].length;
42386
42769
  var i = k4.exec(this.input), s = i.index + i[0].length, r = this.input.charAt(s);
42387
- return r === ";" || r === "}" || L3.test(i[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(r) || r === "!" && this.input.charAt(s + 1) === "=");
42770
+ return r === ";" || r === "}" || L4.test(i[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(r) || r === "!" && this.input.charAt(s + 1) === "=");
42388
42771
  }
42389
42772
  e += t[0].length, k4.lastIndex = e, e += k4.exec(this.input)[0].length, this.input[e] === ";" && e++;
42390
42773
  }
@@ -42402,7 +42785,7 @@ var init_acorn = __esm(() => {
42402
42785
  this.eatContextual(e) || this.unexpected();
42403
42786
  };
42404
42787
  w2.canInsertSemicolon = function() {
42405
- return this.type === a3.eof || this.type === a3.braceR || L3.test(this.input.slice(this.lastTokEnd, this.start));
42788
+ return this.type === a3.eof || this.type === a3.braceR || L4.test(this.input.slice(this.lastTokEnd, this.start));
42406
42789
  };
42407
42790
  w2.insertSemicolon = function() {
42408
42791
  if (this.canInsertSemicolon())
@@ -42485,14 +42868,14 @@ var init_acorn = __esm(() => {
42485
42868
  return false;
42486
42869
  k4.lastIndex = this.pos;
42487
42870
  var e = k4.exec(this.input), t = this.pos + e[0].length, i;
42488
- return !L3.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(X5(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
42871
+ return !L4.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(X5(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
42489
42872
  };
42490
42873
  d2.isUsingKeyword = function(e, t) {
42491
42874
  if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using"))
42492
42875
  return false;
42493
42876
  k4.lastIndex = this.pos;
42494
42877
  var i = k4.exec(this.input), s = this.pos + i[0].length;
42495
- if (L3.test(this.input.slice(this.pos, s)))
42878
+ if (L4.test(this.input.slice(this.pos, s)))
42496
42879
  return false;
42497
42880
  if (e) {
42498
42881
  var r = s + 5, o;
@@ -42500,7 +42883,7 @@ var init_acorn = __esm(() => {
42500
42883
  return false;
42501
42884
  k4.lastIndex = r;
42502
42885
  var u = k4.exec(this.input);
42503
- if (u && L3.test(this.input.slice(r, r + u[0].length)))
42886
+ if (u && L4.test(this.input.slice(r, r + u[0].length)))
42504
42887
  return false;
42505
42888
  }
42506
42889
  if (t) {
@@ -42630,7 +43013,7 @@ var init_acorn = __esm(() => {
42630
43013
  return this.exitScope(), t && this.finishNode(t, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e, "SwitchStatement");
42631
43014
  };
42632
43015
  d2.parseThrowStatement = function(e) {
42633
- return this.next(), L3.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
43016
+ return this.next(), L4.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
42634
43017
  };
42635
43018
  Yi3 = [];
42636
43019
  d2.parseCatchClauseParam = function() {
@@ -43097,7 +43480,7 @@ var init_acorn = __esm(() => {
43097
43480
  };
43098
43481
  ee.braceIsBlock = function(e) {
43099
43482
  var t = this.curContext();
43100
- return t === T3.f_expr || t === T3.f_stat ? true : e === a3.colon && (t === T3.b_stat || t === T3.b_expr) ? !t.isExpr : e === a3._return || e === a3.name && this.exprAllowed ? L3.test(this.input.slice(this.lastTokEnd, this.start)) : e === a3._else || e === a3.semi || e === a3.eof || e === a3.parenR || e === a3.arrow ? true : e === a3.braceL ? t === T3.b_stat : e === a3._var || e === a3._const || e === a3.name ? false : !this.exprAllowed;
43483
+ return t === T3.f_expr || t === T3.f_stat ? true : e === a3.colon && (t === T3.b_stat || t === T3.b_expr) ? !t.isExpr : e === a3._return || e === a3.name && this.exprAllowed ? L4.test(this.input.slice(this.lastTokEnd, this.start)) : e === a3._else || e === a3.semi || e === a3.eof || e === a3.parenR || e === a3.arrow ? true : e === a3.braceL ? t === T3.b_stat : e === a3._var || e === a3._const || e === a3.name ? false : !this.exprAllowed;
43101
43484
  };
43102
43485
  ee.inGeneratorContext = function() {
43103
43486
  for (var e = this.context.length - 1;e >= 1; e--) {
@@ -43134,7 +43517,7 @@ var init_acorn = __esm(() => {
43134
43517
  };
43135
43518
  a3.incDec.updateContext = function() {};
43136
43519
  a3._function.updateContext = a3._class.updateContext = function(e) {
43137
- e.beforeExpr && e !== a3._else && !(e === a3.semi && this.curContext() !== T3.p_stat) && !(e === a3._return && L3.test(this.input.slice(this.lastTokEnd, this.start))) && !((e === a3.colon || e === a3.braceL) && this.curContext() === T3.b_stat) ? this.context.push(T3.f_expr) : this.context.push(T3.f_stat), this.exprAllowed = false;
43520
+ e.beforeExpr && e !== a3._else && !(e === a3.semi && this.curContext() !== T3.p_stat) && !(e === a3._return && L4.test(this.input.slice(this.lastTokEnd, this.start))) && !((e === a3.colon || e === a3.braceL) && this.curContext() === T3.b_stat) ? this.context.push(T3.f_expr) : this.context.push(T3.f_stat), this.exprAllowed = false;
43138
43521
  };
43139
43522
  a3.colon.updateContext = function() {
43140
43523
  this.curContext().token === "function" && this.context.pop(), this.exprAllowed = true;
@@ -43467,7 +43850,7 @@ var init_acorn = __esm(() => {
43467
43850
  return this.next(), this.finishNode(i, "TemplateLiteral");
43468
43851
  };
43469
43852
  g.isAsyncProp = function(e) {
43470
- return !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === a3.name || this.type === a3.num || this.type === a3.string || this.type === a3.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === a3.star) && !L3.test(this.input.slice(this.lastTokEnd, this.start));
43853
+ return !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === a3.name || this.type === a3.num || this.type === a3.string || this.type === a3.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === a3.star) && !L4.test(this.input.slice(this.lastTokEnd, this.start));
43471
43854
  };
43472
43855
  g.parseObj = function(e, t) {
43473
43856
  var i = this.startNode(), s = true, r = {};
@@ -44055,7 +44438,7 @@ var init_acorn = __esm(() => {
44055
44438
  };
44056
44439
  f2.regexp_eatUnicodePropertyValue = function(e) {
44057
44440
  var t = 0;
44058
- for (e.lastStringValue = "";ms3(t = e.current()); )
44441
+ for (e.lastStringValue = "";ms4(t = e.current()); )
44059
44442
  e.lastStringValue += q5(t), e.advance();
44060
44443
  return e.lastStringValue !== "";
44061
44444
  };
@@ -44370,7 +44753,7 @@ var init_acorn = __esm(() => {
44370
44753
  };
44371
44754
  b2.readToken_plus_min = function(e) {
44372
44755
  var t = this.input.charCodeAt(this.pos + 1);
44373
- return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || L3.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(a3.incDec, 2) : t === 61 ? this.finishOp(a3.assign, 2) : this.finishOp(a3.plusMin, 1);
44756
+ return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || L4.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(a3.incDec, 2) : t === 61 ? this.finishOp(a3.assign, 2) : this.finishOp(a3.plusMin, 1);
44374
44757
  };
44375
44758
  b2.readToken_lt_gt = function(e) {
44376
44759
  var t = this.input.charCodeAt(this.pos + 1), i = 1;
@@ -44491,7 +44874,7 @@ var init_acorn = __esm(() => {
44491
44874
  for (var e, t, i = this.pos;; ) {
44492
44875
  this.pos >= this.input.length && this.raise(i, "Unterminated regular expression");
44493
44876
  var s = this.input.charAt(this.pos);
44494
- if (L3.test(s) && this.raise(i, "Unterminated regular expression"), e)
44877
+ if (L4.test(s) && this.raise(i, "Unterminated regular expression"), e)
44495
44878
  e = false;
44496
44879
  else {
44497
44880
  if (s === "[")
@@ -44699,7 +45082,7 @@ var init_acorn = __esm(() => {
44699
45082
  var e = this.readWord1(), t = a3.name;
44700
45083
  return this.keywords.test(e) && (t = Je4[e]), this.finishToken(t, e);
44701
45084
  };
44702
- A2.acorn = { Parser: A2, version: bs2, defaultOptions: Ue2, Position: ne3, SourceLocation: be3, getLineInfo: vt5, Node: Te3, TokenType: C2, tokTypes: a3, keywordTypes: Je4, TokContext: F2, tokContexts: T3, isIdentifierChar: X5, isIdentifierStart: j2, Token: Qe3, isNewLine: Y, lineBreak: L3, lineBreakG: qi3, nonASCIIwhitespace: yt5 };
45085
+ A2.acorn = { Parser: A2, version: bs2, defaultOptions: Ue2, Position: ne3, SourceLocation: be3, getLineInfo: vt5, Node: Te3, TokenType: C2, tokTypes: a3, keywordTypes: Je4, TokContext: F2, tokContexts: T3, isIdentifierChar: X5, isIdentifierStart: j2, Token: Qe3, isNewLine: Y, lineBreak: L4, lineBreakG: qi3, nonASCIIwhitespace: yt5 };
44703
45086
  Si3 = ut2($e2(), 1);
44704
45087
  Ae4 = As2;
44705
45088
  ks2 = Array.prototype.findLast ?? function(e) {
@@ -45290,7 +45673,7 @@ var Ci4, _i4, Ti4, an3 = (t) => {
45290
45673
  for (let s of e)
45291
45674
  this.visit(s, n);
45292
45675
  }
45293
- }, kn2, bn2, L4, An2, pe3 = 0, os6 = 9, Ie4 = 10, Ni4 = 11, Pi4 = 12, Li4 = 13, as3 = 32, Mi3 = 33, ls3 = 34, Ri4 = 35, Wt5 = 36, $i4 = 37, In2 = 38, cs3 = 39, ve5 = 40, q6 = 41, Nn = 42, us3 = 43, Q5 = 44, ps3 = 45, H5 = 46, Fe4 = 47, j3 = 58, fe3 = 59, Di4 = 60, k5 = 61, Bi4 = 62, Pn2 = 63, Oi4 = 48, Fi4 = 57, qt3 = 65, Vi4 = 69, jt4 = 90, te4 = 91, it4 = 92, G4 = 93, Ui4 = 94, Xe4 = 95, hs3 = 97, Hi4 = 101, Wi4 = 102, qi4 = 110, ji4 = 114, zi4 = 116, Gi4 = 117, Xi4 = 118, fs22 = 122, Ve5 = 123, Ln2 = 124, K5 = 125, ds3 = 160, $t4 = 96, Ue3 = class t {
45676
+ }, kn2, bn2, L5, An2, pe3 = 0, os6 = 9, Ie4 = 10, Ni4 = 11, Pi4 = 12, Li4 = 13, as3 = 32, Mi3 = 33, ls3 = 34, Ri4 = 35, Wt5 = 36, $i4 = 37, In2 = 38, cs3 = 39, ve5 = 40, q6 = 41, Nn = 42, us3 = 43, Q5 = 44, ps3 = 45, H5 = 46, Fe4 = 47, j3 = 58, fe3 = 59, Di4 = 60, k5 = 61, Bi4 = 62, Pn2 = 63, Oi4 = 48, Fi4 = 57, qt3 = 65, Vi4 = 69, jt4 = 90, te4 = 91, it4 = 92, G4 = 93, Ui4 = 94, Xe4 = 95, hs3 = 97, Hi4 = 101, Wi4 = 102, qi4 = 110, ji4 = 114, zi4 = 116, Gi4 = 117, Xi4 = 118, fs22 = 122, Ve5 = 123, Ln2 = 124, K5 = 125, ds3 = 160, $t4 = 96, Ue3 = class t {
45294
45677
  file;
45295
45678
  offset;
45296
45679
  line;
@@ -45348,7 +45731,7 @@ var Ci4, _i4, Ti4, an3 = (t) => {
45348
45731
  toString() {
45349
45732
  return this.start.file.content.substring(this.start.offset, this.end.offset);
45350
45733
  }
45351
- }, qe3, Ce5, Rn2, $n2, Dn2, Yi4 = "(:(where|is)\\()?", ms4 = "-shadowcsshost", Qi4 = "-shadowcsscontext", Bt3 = "[^)(]*", Ki4, Zi4, zt4, Yr3, Qr3, er4, Kr2, tr4, Zr2, gs3 = "%COMMENT%", eo3, to3, nr4 = "%COMMA_IN_PLACEHOLDER%", sr4 = "%SEMI_IN_PLACEHOLDER%", ir4 = "%COLON_IN_PLACEHOLDER%", no3, so3, io3, f3, ie3, Bn2, On2, Fn2, M5, Vn2, Un2, Hn3, Wn2, R5, qn3, jn2, rr4, vs4, Te4, Gt4, ro3, oo3, ao3, je4 = class {
45734
+ }, qe3, Ce5, Rn2, $n2, Dn2, Yi4 = "(:(where|is)\\()?", ms5 = "-shadowcsshost", Qi4 = "-shadowcsscontext", Bt3 = "[^)(]*", Ki4, Zi4, zt4, Yr3, Qr3, er4, Kr2, tr4, Zr2, gs3 = "%COMMENT%", eo3, to3, nr4 = "%COMMA_IN_PLACEHOLDER%", sr4 = "%SEMI_IN_PLACEHOLDER%", ir4 = "%COLON_IN_PLACEHOLDER%", no3, so3, io3, f3, ie3, Bn2, On2, Fn2, M5, Vn2, Un2, Hn3, Wn2, R5, qn3, jn2, rr4, vs4, Te4, Gt4, ro3, oo3, ao3, je4 = class {
45352
45735
  strings;
45353
45736
  expressions;
45354
45737
  i18nPlaceholders;
@@ -47400,7 +47783,7 @@ var init_angular = __esm(() => {
47400
47783
  })(bn2 || (bn2 = {}));
47401
47784
  (function(t) {
47402
47785
  t[t.Property = 0] = "Property", t[t.Attribute = 1] = "Attribute", t[t.Class = 2] = "Class", t[t.Style = 3] = "Style", t[t.LegacyAnimation = 4] = "LegacyAnimation", t[t.TwoWay = 5] = "TwoWay", t[t.Animation = 6] = "Animation";
47403
- })(L4 || (L4 = {}));
47786
+ })(L5 || (L5 = {}));
47404
47787
  (function(t) {
47405
47788
  t[t.RAW_TEXT = 0] = "RAW_TEXT", t[t.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", t[t.PARSABLE_DATA = 2] = "PARSABLE_DATA";
47406
47789
  })(An2 || (An2 = {}));
@@ -47437,10 +47820,10 @@ var init_angular = __esm(() => {
47437
47820
  Zi4 = `(?:\\(${Ki4}\\)|${Bt3})+?`;
47438
47821
  zt4 = `(?:\\((${Zi4})\\))`;
47439
47822
  Yr3 = new RegExp("(:nth-[-\\w]+)" + zt4, "g");
47440
- Qr3 = new RegExp(ms4 + zt4 + "?([^,{]*)", "gim");
47823
+ Qr3 = new RegExp(ms5 + zt4 + "?([^,{]*)", "gim");
47441
47824
  er4 = Qi4 + zt4 + "?([^{]*)";
47442
47825
  Kr2 = new RegExp(`${Yi4}(${er4})`, "gim");
47443
- tr4 = ms4 + "-no-combinator";
47826
+ tr4 = ms5 + "-no-combinator";
47444
47827
  Zr2 = new RegExp(`${tr4}(?![^(]*\\))`, "g");
47445
47828
  eo3 = new RegExp(gs3, "g");
47446
47829
  to3 = new RegExp(`(\\s*(?:${gs3}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`, "g");
@@ -47558,7 +47941,7 @@ var init_angular = __esm(() => {
47558
47941
  (function(t) {
47559
47942
  t[t.None = 0] = "None", t[t.ViewContextRead = 1] = "ViewContextRead", t[t.ViewContextWrite = 2] = "ViewContextWrite", t[t.SideEffectful = 4] = "SideEffectful";
47560
47943
  })(ns3 || (ns3 = {}));
47561
- Ao2 = new Map([[L4.Property, M5.Property], [L4.TwoWay, M5.TwoWayProperty], [L4.Attribute, M5.Attribute], [L4.Class, M5.ClassName], [L4.Style, M5.StyleProperty], [L4.LegacyAnimation, M5.LegacyAnimation], [L4.Animation, M5.Animation]]);
47944
+ Ao2 = new Map([[L5.Property, M5.Property], [L5.TwoWay, M5.TwoWayProperty], [L5.Attribute, M5.Attribute], [L5.Class, M5.ClassName], [L5.Style, M5.StyleProperty], [L5.LegacyAnimation, M5.LegacyAnimation], [L5.Animation, M5.Animation]]);
47562
47945
  Io2 = Symbol("queryAdvancePlaceholder");
47563
47946
  (function(t) {
47564
47947
  t[t.NG_CONTENT = 0] = "NG_CONTENT", t[t.STYLE = 1] = "STYLE", t[t.STYLESHEET = 2] = "STYLESHEET", t[t.SCRIPT = 3] = "SCRIPT", t[t.OTHER = 4] = "OTHER";
@@ -48430,7 +48813,7 @@ function M6(a) {
48430
48813
  let t = a.range?.[0] ?? a.start, e = (a.declaration?.decorators ?? a.decorators)?.[0];
48431
48814
  return e ? Math.min(M6(e), t) : t;
48432
48815
  }
48433
- function L5(a) {
48816
+ function L6(a) {
48434
48817
  return a.range?.[1] ?? a.end;
48435
48818
  }
48436
48819
  function yr4(a) {
@@ -48456,7 +48839,7 @@ function Ar4(a) {
48456
48839
  let t;
48457
48840
  for (let e = a.length - 1;e >= 0; e--) {
48458
48841
  let s = a[e];
48459
- if (t && L5(s) === M6(t) && Ct7(s) && Ct7(t) && (a.splice(e + 1, 1), s.value += "*//*" + t.value, s.range = [M6(s), L5(t)]), !gs4(s) && !se5(s))
48842
+ if (t && L6(s) === M6(t) && Ct7(s) && Ct7(t) && (a.splice(e + 1, 1), s.value += "*//*" + t.value, s.range = [M6(s), L6(t)]), !gs4(s) && !se5(s))
48460
48843
  throw new TypeError(`Unknown comment type: "${s.type}".`);
48461
48844
  t = s;
48462
48845
  }
@@ -48514,13 +48897,13 @@ function Ir3(a, t) {
48514
48897
  case "ParenthesizedExpression": {
48515
48898
  let { expression: l } = h, u = M6(h);
48516
48899
  if (l.type === "TypeCastExpression")
48517
- return l.range = [u, L5(h)], l;
48900
+ return l.range = [u, L6(h)], l;
48518
48901
  let f = false;
48519
48902
  if (!r) {
48520
48903
  if (!o) {
48521
48904
  o = [];
48522
48905
  for (let x of i)
48523
- Ts3(x) && o.push(L5(x));
48906
+ Ts3(x) && o.push(L6(x));
48524
48907
  }
48525
48908
  let d = xs5(0, o, (x) => x <= u);
48526
48909
  f = d && s.slice(d, u).trim().length === 0;
@@ -48533,13 +48916,13 @@ function Ir3(a, t) {
48533
48916
  break;
48534
48917
  case "TemplateElement":
48535
48918
  if (e === "flow" || e === "hermes" || e === "espree" || e === "typescript" || r) {
48536
- let l = M6(h) + 1, u = L5(h) - (h.tail ? 1 : 2);
48919
+ let l = M6(h) + 1, u = L6(h) - (h.tail ? 1 : 2);
48537
48920
  h.range = [l, u];
48538
48921
  }
48539
48922
  break;
48540
48923
  case "VariableDeclaration": {
48541
48924
  let l = Ps5(0, h.declarations, -1);
48542
- l?.init && s[L5(l)] !== ";" && (h.range = [M6(h), L5(l)]);
48925
+ l?.init && s[L6(l)] !== ";" && (h.range = [M6(h), L6(l)]);
48543
48926
  break;
48544
48927
  }
48545
48928
  case "TSParenthesizedType":
@@ -48572,7 +48955,7 @@ function Is5(a) {
48572
48955
  return a.type === "LogicalExpression" && a.right.type === "LogicalExpression" && a.operator === a.right.operator;
48573
48956
  }
48574
48957
  function It6(a) {
48575
- return Is5(a) ? It6({ type: "LogicalExpression", operator: a.operator, left: It6({ type: "LogicalExpression", operator: a.operator, left: a.left, right: a.right.left, range: [M6(a.left), L5(a.right.left)] }), right: a.right.right, range: [M6(a), L5(a)] }) : a;
48958
+ return Is5(a) ? It6({ type: "LogicalExpression", operator: a.operator, left: It6({ type: "LogicalExpression", operator: a.operator, left: a.left, right: a.right.left, range: [M6(a.left), L6(a.right.left)] }), right: a.right.right, range: [M6(a), L6(a)] }) : a;
48576
48959
  }
48577
48960
  function Nr4(a, t) {
48578
48961
  let e = new SyntaxError(a + " (" + t.loc.start.line + ":" + t.loc.start.column + ")");
@@ -48625,7 +49008,7 @@ function Us5(a) {
48625
49008
  return Os4.some((e) => Object.prototype.hasOwnProperty.call(t, e));
48626
49009
  }
48627
49010
  function _r4(a) {
48628
- return a = typeof a == "function" ? { parse: a } : a, { astFormat: "estree", hasPragma: Rs5, hasIgnorePragma: Us5, locStart: M6, locEnd: L5, ...a };
49011
+ return a = typeof a == "function" ? { parse: a } : a, { astFormat: "estree", hasPragma: Rs5, hasIgnorePragma: Us5, locStart: M6, locEnd: L6, ...a };
48629
49012
  }
48630
49013
  function _s4(a) {
48631
49014
  if (typeof a == "string") {
@@ -48644,7 +49027,7 @@ function qr3(a, t) {
48644
49027
  return true;
48645
49028
  let e = ve6(a);
48646
49029
  e && (a = a.slice(e.length));
48647
- let s = ms5(a, 0);
49030
+ let s = ms6(a, 0);
48648
49031
  return s !== false && (a = a.slice(0, s)), zr3.test(a);
48649
49032
  }
48650
49033
  function $r4(a, t, e) {
@@ -52298,7 +52681,7 @@ var Hs5, Re5 = (a, t) => {
52298
52681
  return this.parseV8Intrinsic() || super.parseExprAtom(e);
52299
52682
  }
52300
52683
  }, Kt5, Ht6, hs4, tr5, pt7, ze5, sr5, ir5, qe4, ut4, Ee5, ua2, Wt6, da2, cs4, ma2, ls4, ps4, us4 = (a) => a === `
52301
- ` || a === "\r" || a === "\u2028" || a === "\u2029", fs23, ds4, ms5, ve6, ee3 = (a, t) => (e, s, ...i) => e | 1 && s == null ? undefined : (t.call(s) ?? s[a]).apply(s, i), ur5, fr5, xs5, mr3, Ps5, te5, xr4, se5, Pr3, gs4, St6, Ts3, wt6, Ct7, bs4, As4, me6 = null, wr4 = 10, Ss3, c4, ws4, Er4, Cs3, Es3, fn4, Ns4, De5, ks4 = "Unexpected parseExpression() input: ", Me5, vr4, Lr4, xe4, Dr4, Mr4, Or4, Fr4, vs5, Br4, Ls5, Rr4, Ur4, Os4, Fs5, H6, Oe5 = "module", Nt6 = "commonjs", Fe5, ie4 = (a) => H6(Kr3(a)), Vr4, js5 = "v8intrinsic", Vs4, _4 = (a, t = Vr4) => ({ ...t, plugins: [...t.plugins, ...a] }), zr3, Hr3, zs5, Wr2, Jr2, Gr3, Xr2, qs5, Yr4, Lt7, vt7, $s4, ea2, ta2, sa2, ia2, ra2;
52684
+ ` || a === "\r" || a === "\u2028" || a === "\u2029", fs23, ds4, ms6, ve6, ee3 = (a, t) => (e, s, ...i) => e | 1 && s == null ? undefined : (t.call(s) ?? s[a]).apply(s, i), ur5, fr5, xs5, mr3, Ps5, te5, xr4, se5, Pr3, gs4, St6, Ts3, wt6, Ct7, bs4, As4, me6 = null, wr4 = 10, Ss3, c4, ws4, Er4, Cs3, Es3, fn4, Ns4, De5, ks4 = "Unexpected parseExpression() input: ", Me5, vr4, Lr4, xe4, Dr4, Mr4, Or4, Fr4, vs5, Br4, Ls5, Rr4, Ur4, Os4, Fs5, H6, Oe5 = "module", Nt6 = "commonjs", Fe5, ie4 = (a) => H6(Kr3(a)), Vr4, js5 = "v8intrinsic", Vs4, _4 = (a, t = Vr4) => ({ ...t, plugins: [...t.plugins, ...a] }), zr3, Hr3, zs5, Wr2, Jr2, Gr3, Xr2, qs5, Yr4, Lt7, vt7, $s4, ea2, ta2, sa2, ia2, ra2;
52302
52685
  var init_babel = __esm(() => {
52303
52686
  Hs5 = Object.defineProperty;
52304
52687
  Ks4 = {};
@@ -55433,7 +55816,7 @@ var init_babel = __esm(() => {
55433
55816
  ps4 = or5;
55434
55817
  fs23 = hr5;
55435
55818
  ds4 = cr4;
55436
- ms5 = lr4;
55819
+ ms6 = lr4;
55437
55820
  ve6 = pr5;
55438
55821
  ur5 = Array.prototype.findLast ?? function(a) {
55439
55822
  for (let t = this.length - 1;t >= 0; t--) {
@@ -85877,7 +86260,7 @@ function ps5(e) {
85877
86260
  function fs24(e, t) {
85878
86261
  return { open: e.charAt(2) === "~", close: t.charAt(t.length - 3) === "~" };
85879
86262
  }
85880
- function ms6(e) {
86263
+ function ms7(e) {
85881
86264
  return e.replace(/^\{\{~?!-?-?/, "").replace(/-?-?~?\}\}$/, "");
85882
86265
  }
85883
86266
  function ds5(e, t, r, s) {
@@ -87725,7 +88108,7 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
87725
88108
  };
87726
88109
  jr3 = G6;
87727
88110
  Ft7 = {};
87728
- Oe6(Ft7, { SourceLocation: () => Qe6, id: () => ps5, prepareBlock: () => ys5, prepareMustache: () => gs5, preparePartialBlock: () => ks5, preparePath: () => ds5, prepareProgram: () => Ss4, prepareRawBlock: () => bs5, stripComment: () => ms6, stripFlags: () => fs24 });
88111
+ Oe6(Ft7, { SourceLocation: () => Qe6, id: () => ps5, prepareBlock: () => ys5, prepareMustache: () => gs5, preparePartialBlock: () => ks5, preparePath: () => ds5, prepareProgram: () => Ss4, prepareRawBlock: () => bs5, stripComment: () => ms7, stripFlags: () => fs24 });
87729
88112
  Qr5 = {};
87730
88113
  for (ue5 in Ft7)
87731
88114
  Object.prototype.hasOwnProperty.call(Ft7, ue5) && (Qr5[ue5] = Ft7[ue5]);
@@ -88962,7 +89345,7 @@ function Pt8(e) {
88962
89345
  function tt8(e) {
88963
89346
  return e === o3.BANG || e === o3.DOLLAR || e === o3.AMP || e === o3.PAREN_L || e === o3.PAREN_R || e === o3.DOT || e === o3.SPREAD || e === o3.COLON || e === o3.EQUALS || e === o3.AT || e === o3.BRACKET_L || e === o3.BRACKET_R || e === o3.BRACE_L || e === o3.PIPE || e === o3.BRACE_R;
88964
89347
  }
88965
- function L6(e) {
89348
+ function L7(e) {
88966
89349
  return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
88967
89350
  }
88968
89351
  function K8(e, t) {
@@ -89044,7 +89427,7 @@ function wt8(e, t) {
89044
89427
  return Mt8(e, r, s);
89045
89428
  if (pe6(s))
89046
89429
  return jt6(e, r);
89047
- throw h3(e.source, r, s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : L6(s) || K8(n, r) ? `Unexpected character: ${R8(e, r)}.` : `Invalid character: ${R8(e, r)}.`);
89430
+ throw h3(e.source, r, s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : L7(s) || K8(n, r) ? `Unexpected character: ${R8(e, r)}.` : `Invalid character: ${R8(e, r)}.`);
89048
89431
  }
89049
89432
  return m4(e, o3.EOF, i, i);
89050
89433
  }
@@ -89054,7 +89437,7 @@ function Ft8(e, t) {
89054
89437
  let s = n.charCodeAt(r);
89055
89438
  if (s === 10 || s === 13)
89056
89439
  break;
89057
- if (L6(s))
89440
+ if (L7(s))
89058
89441
  ++r;
89059
89442
  else if (K8(n, r))
89060
89443
  r += 2;
@@ -89096,7 +89479,7 @@ function Vt8(e, t) {
89096
89479
  }
89097
89480
  if (u === 10 || u === 13)
89098
89481
  break;
89099
- if (L6(u))
89482
+ if (L7(u))
89100
89483
  ++r;
89101
89484
  else if (K8(n, r))
89102
89485
  r += 2;
@@ -89110,7 +89493,7 @@ function Bt6(e, t) {
89110
89493
  for (;r < 12; ) {
89111
89494
  let s = n.charCodeAt(t + r++);
89112
89495
  if (s === 125) {
89113
- if (r < 5 || !L6(i))
89496
+ if (r < 5 || !L7(i))
89114
89497
  break;
89115
89498
  return { value: String.fromCodePoint(i), size: r };
89116
89499
  }
@@ -89121,7 +89504,7 @@ function Bt6(e, t) {
89121
89504
  }
89122
89505
  function Ut7(e, t) {
89123
89506
  let n = e.source.body, i = et9(n, t + 2);
89124
- if (L6(i))
89507
+ if (L7(i))
89125
89508
  return { value: String.fromCodePoint(i), size: 6 };
89126
89509
  if (nt9(i) && n.charCodeAt(t + 6) === 92 && n.charCodeAt(t + 7) === 117) {
89127
89510
  let r = et9(n, t + 8);
@@ -89177,7 +89560,7 @@ function Yt5(e, t) {
89177
89560
  u += n.slice(a, s), p.push(u), T === 13 && n.charCodeAt(s + 1) === 10 ? s += 2 : ++s, u = "", a = s, r = s;
89178
89561
  continue;
89179
89562
  }
89180
- if (L6(T))
89563
+ if (L7(T))
89181
89564
  ++s;
89182
89565
  else if (K8(n, s))
89183
89566
  s += 2;
@@ -89973,7 +90356,7 @@ spurious results.`);
89973
90356
  var exports_html = {};
89974
90357
  __export(exports_html, {
89975
90358
  default: () => ws6,
89976
- languages: () => ms7,
90359
+ languages: () => ms8,
89977
90360
  options: () => ds6,
89978
90361
  parsers: () => Qr6,
89979
90362
  printers: () => Ll2
@@ -90047,7 +90430,7 @@ function ar7(e, t) {
90047
90430
  }
90048
90431
  }
90049
90432
  }
90050
- function L7(e, t = nn6) {
90433
+ function L8(e, t = nn6) {
90051
90434
  return ar7(e, (r) => typeof r == "string" ? q9(t, r.split(`
90052
90435
  `)) : r);
90053
90436
  }
@@ -90425,7 +90808,7 @@ function Hn4(e, t) {
90425
90808
  return n === "script" && i === "setup" || n === "style" && i === "vars";
90426
90809
  }
90427
90810
  function Dt8(e, t = e.value) {
90428
- return e.parent.isWhitespaceSensitive ? e.parent.isIndentationSensitive ? L7(t) : L7(y4.dedentString(fr7(t)), v7) : q9(_7, y4.split(t));
90811
+ return e.parent.isWhitespaceSensitive ? e.parent.isIndentationSensitive ? L8(t) : L8(y4.dedentString(fr7(t)), v7) : q9(_7, y4.split(t));
90429
90812
  }
90430
90813
  function It9(e, t) {
90431
90814
  return me9(e, t) && e.name === "script";
@@ -90444,12 +90827,12 @@ async function Wn4(e, t, r) {
90444
90827
  let n = b6(r.node), i = [];
90445
90828
  for (let [s, a] of n.split(Vn3).entries())
90446
90829
  if (s % 2 === 0)
90447
- i.push(L7(a));
90830
+ i.push(L8(a));
90448
90831
  else
90449
90832
  try {
90450
90833
  i.push(C5(["{{", A6([_7, await x6(a, e, { parser: "__ng_interpolation", __isInHtmlInterpolation: true })]), _7, "}}"]));
90451
90834
  } catch {
90452
- i.push("{{", L7(a), "}}");
90835
+ i.push("{{", L8(a), "}}");
90453
90836
  }
90454
90837
  return i;
90455
90838
  }
@@ -90683,7 +91066,7 @@ function Ga3(e, t, r) {
90683
91066
  let { node: n } = e;
90684
91067
  if (!Ie8(n.attrs))
90685
91068
  return n.isSelfClosing ? " " : "";
90686
- let i = n.prev?.kind === "comment" && Wa3(n.prev.value), s = typeof i == "boolean" ? () => i : Array.isArray(i) ? (d) => i.includes(d.rawName) : () => false, a = e.map(({ node: d }) => s(d) ? L7(t.originalText.slice(Q9(d), te8(d))) : r(), "attrs"), o = n.kind === "element" && n.fullName === "script" && n.attrs.length === 1 && n.attrs[0].fullName === "src" && n.children.length === 0, u = t.singleAttributePerLine && n.attrs.length > 1 && !me9(n, t) ? v7 : _7, p = [A6([o ? " " : _7, q9(u, a)])];
91069
+ let i = n.prev?.kind === "comment" && Wa3(n.prev.value), s = typeof i == "boolean" ? () => i : Array.isArray(i) ? (d) => i.includes(d.rawName) : () => false, a = e.map(({ node: d }) => s(d) ? L8(t.originalText.slice(Q9(d), te8(d))) : r(), "attrs"), o = n.kind === "element" && n.fullName === "script" && n.attrs.length === 1 && n.attrs[0].fullName === "src" && n.children.length === 0, u = t.singleAttributePerLine && n.attrs.length > 1 && !me9(n, t) ? v7 : _7, p = [A6([o ? " " : _7, q9(u, a)])];
90687
91070
  return n.firstChild && tt9(n.firstChild) || n.isSelfClosing && ge8(n.parent) || o ? p.push(n.isSelfClosing ? " " : "") : p.push(t.bracketSameLine ? n.isSelfClosing ? " " : "" : n.isSelfClosing ? _7 : k8), p;
90688
91071
  }
90689
91072
  function $a4(e) {
@@ -90813,7 +91196,7 @@ function st8(e, t, r) {
90813
91196
  let n = e.node;
90814
91197
  if (he8(n)) {
90815
91198
  let i = ki7(n);
90816
- return [U8(n, t), L7(y4.trimEnd(t.originalText.slice(Q9(n) + (n.prev && et10(n.prev) ? Bt7(n).length : 0), i - (n.next && $8(n.next) ? de7(n, t).length : 0)))), V8(n, t)];
91199
+ return [U8(n, t), L8(y4.trimEnd(t.originalText.slice(Q9(n) + (n.prev && et10(n.prev) ? Bt7(n).length : 0), i - (n.next && $8(n.next) ? de7(n, t).length : 0)))), V8(n, t)];
90817
91200
  }
90818
91201
  return r();
90819
91202
  }
@@ -90877,7 +91260,7 @@ function Li6(e, t, r) {
90877
91260
  function Pi6(e, t, r) {
90878
91261
  let { node: n } = e;
90879
91262
  if (Nt9(n, t))
90880
- return [U8(n, t), C5(rt10(e, t, r)), L7(qt7(n, t)), ...Ze9(n, t), V8(n, t)];
91263
+ return [U8(n, t), C5(rt10(e, t, r)), L8(qt7(n, t)), ...Ze9(n, t), V8(n, t)];
90881
91264
  let i = n.children.length === 1 && (n.firstChild.kind === "interpolation" || n.firstChild.kind === "angularIcuExpression") && n.firstChild.isLeadingSpaceSensitive && !n.firstChild.hasLeadingSpaces && n.lastChild.isTrailingSpaceSensitive && !n.lastChild.hasTrailingSpaces, s = Symbol("element-attr-group-id"), a = (p) => C5([C5(rt10(e, t, r), { id: s }), p, Ze9(n, t)]), o = (p) => i ? ln5(p, { groupId: s }) : (H9(n, t) || Je9(n, t)) && n.parent.kind === "root" && t.parser === "vue" && !t.vueIndentScriptAndStyle ? p : A6(p), c = () => i ? X9(k8, "", { groupId: s }) : n.firstChild.hasLeadingSpaces && n.firstChild.isLeadingSpaceSensitive ? _7 : n.firstChild.kind === "text" && n.isWhitespaceSensitive && n.isIndentationSensitive ? on9(k8) : k8, u = () => (n.next ? $8(n.next) : ge8(n.parent)) ? n.lastChild.hasTrailingSpaces && n.lastChild.isTrailingSpaceSensitive ? " " : "" : i ? X9(k8, "", { groupId: s }) : n.lastChild.hasTrailingSpaces && n.lastChild.isTrailingSpaceSensitive ? _7 : (n.lastChild.kind === "comment" || n.lastChild.kind === "text" && n.isWhitespaceSensitive && n.isIndentationSensitive) && new RegExp(`\\n[\\t ]{${t.tabWidth * (e.ancestors.length - 1)}}$`, "u").test(n.lastChild.value) ? "" : k8;
90882
91265
  return n.children.length === 0 ? a(n.hasDanglingSpaces && n.isDanglingSpaceSensitive ? _7 : "") : a([Pn4(n) ? j6 : "", o([c(), Re8(e, t, r)]), u()]);
90883
91266
  }
@@ -91215,7 +91598,7 @@ function sl3(e, t, r) {
91215
91598
  case "text": {
91216
91599
  if (n.parent.kind === "interpolation") {
91217
91600
  let o = /\n[^\S\n]*$/u, c = o.test(n.value), u = c ? n.value.replace(o, "") : n.value;
91218
- return [L7(u), c ? v7 : ""];
91601
+ return [L8(u), c ? v7 : ""];
91219
91602
  }
91220
91603
  let i = U8(n, t), s = Dt8(n), a = V8(n, t);
91221
91604
  return s[0] = [i, s[0]], s.push([s.pop(), a]), xt8(s);
@@ -91223,12 +91606,12 @@ function sl3(e, t, r) {
91223
91606
  case "docType":
91224
91607
  return [C5([Se8(n, t), " ", w5(0, n.value.replace(/^html\b/iu, "html"), /\s+/gu, " ")]), fe7(n, t)];
91225
91608
  case "comment":
91226
- return [U8(n, t), L7(t.originalText.slice(Q9(n), te8(n))), V8(n, t)];
91609
+ return [U8(n, t), L8(t.originalText.slice(Q9(n), te8(n))), V8(n, t)];
91227
91610
  case "attribute": {
91228
91611
  if (n.value === null)
91229
91612
  return n.rawName;
91230
91613
  let i = Sr5(n.value), s = Rt8(n, t) ? "" : pn5(i, '"');
91231
- return [n.rawName, "=", s, L7(s === '"' ? w5(0, i, '"', "&quot;") : w5(0, i, "'", "&apos;")), s];
91614
+ return [n.rawName, "=", s, L8(s === '"' ? w5(0, i, '"', "&quot;") : w5(0, i, "'", "&apos;")), s];
91232
91615
  }
91233
91616
  case "frontMatter":
91234
91617
  case "cdata":
@@ -92502,7 +92885,7 @@ ${e}`, wi7, Ja3 = (e) => e?.kind === "angularControlFlowBlock" && (e.name === "c
92502
92885
  }
92503
92886
  return i;
92504
92887
  }
92505
- }, us6, Ur6 = null, $o2 = () => (Ur6 || (Ur6 = new us6), Ur6), zo2, ps6, al2, hs6, ms7, Wr4, fs25 = "HTML", ol3, ds6, Qr6, gs6, cl2, Zt8, _s6, er7, Ss5, oe7, $r6, zr5, We9 = class We {
92888
+ }, us6, Ur6 = null, $o2 = () => (Ur6 || (Ur6 = new us6), Ur6), zo2, ps6, al2, hs6, ms8, Wr4, fs25 = "HTML", ol3, ds6, Qr6, gs6, cl2, Zt8, _s6, er7, Ss5, oe7, $r6, zr5, We9 = class We {
92506
92889
  constructor(t = {}) {
92507
92890
  tn6(this, oe7);
92508
92891
  ir7(this, "kind");
@@ -92597,7 +92980,7 @@ ${e}`, wi7, Ja3 = (e) => e?.kind === "angularControlFlowBlock" && (e.name === "c
92597
92980
  var init_html = __esm(() => {
92598
92981
  Jr4 = Object.defineProperty;
92599
92982
  ws6 = {};
92600
- en6(ws6, { languages: () => ms7, options: () => ds6, parsers: () => Qr6, printers: () => Ll2 });
92983
+ en6(ws6, { languages: () => ms8, options: () => ds6, parsers: () => Qr6, printers: () => Ll2 });
92601
92984
  As6 = String.prototype.replaceAll ?? function(e, t) {
92602
92985
  return e.global ? this.replace(e, t) : this.split(e).join(t);
92603
92986
  };
@@ -92998,7 +93381,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
92998
93381
  ps6 = Yo2;
92999
93382
  al2 = { features: { experimental_frontMatterSupport: { massageAstNode: true, embed: true, print: true } }, preprocess: ps6, print: sl3, insertPragma: bi7, massageAstNode: dn5, embed: fi7, getVisitorKeys: _i6 };
93000
93383
  hs6 = al2;
93001
- ms7 = [{ name: "Angular", type: "markup", aceMode: "html", extensions: [".component.html"], tmScope: "text.html.basic", aliases: ["xhtml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["angular"], vscodeLanguageIds: ["html"], filenames: [], linguistLanguageId: 146 }, { name: "HTML", type: "markup", aceMode: "html", extensions: [".html", ".hta", ".htm", ".html.hl", ".inc", ".xht", ".xhtml"], tmScope: "text.html.basic", aliases: ["xhtml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["html"], vscodeLanguageIds: ["html"], linguistLanguageId: 146 }, { name: "Lightning Web Components", type: "markup", aceMode: "html", extensions: [], tmScope: "text.html.basic", aliases: ["xhtml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["lwc"], vscodeLanguageIds: ["html"], filenames: [], linguistLanguageId: 146 }, { name: "MJML", type: "markup", aceMode: "html", extensions: [".mjml"], tmScope: "text.mjml.basic", aliases: ["MJML", "mjml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["mjml"], filenames: [], vscodeLanguageIds: ["mjml"], linguistLanguageId: 146 }, { name: "Vue", type: "markup", aceMode: "vue", extensions: [".vue"], tmScope: "source.vue", codemirrorMode: "vue", codemirrorMimeType: "text/x-vue", parsers: ["vue"], vscodeLanguageIds: ["vue"], linguistLanguageId: 391 }];
93384
+ ms8 = [{ name: "Angular", type: "markup", aceMode: "html", extensions: [".component.html"], tmScope: "text.html.basic", aliases: ["xhtml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["angular"], vscodeLanguageIds: ["html"], filenames: [], linguistLanguageId: 146 }, { name: "HTML", type: "markup", aceMode: "html", extensions: [".html", ".hta", ".htm", ".html.hl", ".inc", ".xht", ".xhtml"], tmScope: "text.html.basic", aliases: ["xhtml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["html"], vscodeLanguageIds: ["html"], linguistLanguageId: 146 }, { name: "Lightning Web Components", type: "markup", aceMode: "html", extensions: [], tmScope: "text.html.basic", aliases: ["xhtml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["lwc"], vscodeLanguageIds: ["html"], filenames: [], linguistLanguageId: 146 }, { name: "MJML", type: "markup", aceMode: "html", extensions: [".mjml"], tmScope: "text.mjml.basic", aliases: ["MJML", "mjml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["mjml"], filenames: [], vscodeLanguageIds: ["mjml"], linguistLanguageId: 146 }, { name: "Vue", type: "markup", aceMode: "vue", extensions: [".vue"], tmScope: "source.vue", codemirrorMode: "vue", codemirrorMimeType: "text/x-vue", parsers: ["vue"], vscodeLanguageIds: ["vue"], linguistLanguageId: 391 }];
93002
93385
  Wr4 = { bracketSpacing: { category: "Common", type: "boolean", default: true, description: "Print spaces between brackets.", oppositeDescription: "Do not print spaces between brackets." }, objectWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap object literals.", choices: [{ value: "preserve", description: "Keep as multi-line, if there is a newline between the opening brace and first property." }, { value: "collapse", description: "Fit to a single line when possible." }] }, singleQuote: { category: "Common", type: "boolean", default: false, description: "Use single quotes instead of double quotes." }, proseWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap prose.", choices: [{ value: "always", description: "Wrap prose if it exceeds the print width." }, { value: "never", description: "Do not wrap prose." }, { value: "preserve", description: "Wrap prose as-is." }] }, bracketSameLine: { category: "Common", type: "boolean", default: false, description: "Put > of opening tags on the last line instead of on a new line." }, singleAttributePerLine: { category: "Common", type: "boolean", default: false, description: "Enforce single attribute per line in HTML, Vue and JSX." } };
93003
93386
  ol3 = { bracketSameLine: Wr4.bracketSameLine, htmlWhitespaceSensitivity: { category: fs25, type: "choice", default: "css", description: "How to handle whitespaces in HTML.", choices: [{ value: "css", description: "Respect the default value of CSS display property." }, { value: "strict", description: "Whitespaces are considered sensitive." }, { value: "ignore", description: "Whitespaces are considered insensitive." }] }, singleAttributePerLine: Wr4.singleAttributePerLine, vueIndentScriptAndStyle: { category: fs25, type: "boolean", default: false, description: "Indent script and style tags in Vue files." } };
93004
93387
  ds6 = ol3;
@@ -94224,7 +94607,7 @@ var El3, Ft10, Cl3, vl3, Al3, bl3, x7 = (e, r) => () => (r || e((r = { exports:
94224
94607
  for (let i of vl3(r))
94225
94608
  !bl3.call(e, i) && i !== t && Ft10(e, i, { get: () => r[i], enumerable: !(n = Cl3(r, i)) || n.enumerable });
94226
94609
  return e;
94227
- }, Re9 = (e, r, t) => (t = e != null ? El3(Al3(e)) : {}, xl3(r || !e || !e.__esModule ? Ft10(t, "default", { value: e, enumerable: true }) : t, e)), Tr6, Qi7, Mt10, uu2, lu2, Du2, Ie9, hu2, Fu2, Eu2, vu2, bu2, xu2, yu2, Se9, Tu2, $e8, Ou2, qu2, Iu2, mr6, Ju2, ea4, na3, ua4, Kt8, sa4, fa3, pa3, Fa4, Ea3, va3, xa3, wa3, Zr6, Qt8, Oa3, Pa3, Le9, rt11, Ua4, za3, ja4, nn7, Ja4, no5, oo5, cn6, po5, se8, ln6, bo3, wo4, Bo3, Oo3, Io4, hn6, Yo3, zo3, jo3, Jo3, rs6, us7, ss7, yn6, ms8, Es6, vs8, ys7, ks7, Bs8, Ps8, Ss6, Ys8, zs8, js8, Hs8, Js8, Zs8, nc2, oc2, cc2, Pn5, Ec2, vc2, bc2, Tc2, qc2, Ic2, Sc2, Rc2, Yc2, zc2, Vc2, el3, gl3, Me9 = (e, r) => (t, n, ...i) => t | 1 && n == null ? undefined : (r.call(n) ?? n[e]).apply(n, i), wl3, U9, kl3, Tl3, R10, $i7, _l3 = () => {}, tr8, V9 = "string", j7 = "array", be9 = "cursor", ee6 = "indent", re6 = "align", De8 = "trim", X10 = "group", J11 = "fill", Q10 = "if-break", pe8 = "indent-if-break", he9 = "line-suffix", de8 = "line-suffix-boundary", $9 = "line", me10 = "label", te9 = "break-parent", Br6, W10, ql2 = (e) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e), gt10, Be8, $n5, Hn5, ne9, Or6, Jn4, Qn5, Ue7, qr5, Nr6, ar8, M9, Sl3, nr7, Ll3 = "cr", Rl2 = "crlf", Ml2 = "\r", Ul2 = `\r
94610
+ }, Re9 = (e, r, t) => (t = e != null ? El3(Al3(e)) : {}, xl3(r || !e || !e.__esModule ? Ft10(t, "default", { value: e, enumerable: true }) : t, e)), Tr6, Qi7, Mt10, uu2, lu2, Du2, Ie9, hu2, Fu2, Eu2, vu2, bu2, xu2, yu2, Se9, Tu2, $e8, Ou2, qu2, Iu2, mr6, Ju2, ea4, na3, ua4, Kt8, sa4, fa3, pa3, Fa4, Ea3, va3, xa3, wa3, Zr6, Qt8, Oa3, Pa3, Le9, rt11, Ua4, za3, ja4, nn7, Ja4, no5, oo5, cn6, po5, se8, ln6, bo3, wo4, Bo3, Oo3, Io4, hn6, Yo3, zo3, jo3, Jo3, rs6, us7, ss7, yn6, ms9, Es6, vs8, ys7, ks7, Bs8, Ps8, Ss6, Ys8, zs8, js8, Hs8, Js8, Zs8, nc2, oc2, cc2, Pn5, Ec2, vc2, bc2, Tc2, qc2, Ic2, Sc2, Rc2, Yc2, zc2, Vc2, el3, gl3, Me9 = (e, r) => (t, n, ...i) => t | 1 && n == null ? undefined : (r.call(n) ?? n[e]).apply(n, i), wl3, U9, kl3, Tl3, R10, $i7, _l3 = () => {}, tr8, V9 = "string", j7 = "array", be9 = "cursor", ee6 = "indent", re6 = "align", De8 = "trim", X10 = "group", J11 = "fill", Q10 = "if-break", pe8 = "indent-if-break", he9 = "line-suffix", de8 = "line-suffix-boundary", $9 = "line", me10 = "label", te9 = "break-parent", Br6, W10, ql2 = (e) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e), gt10, Be8, $n5, Hn5, ne9, Or6, Jn4, Qn5, Ue7, qr5, Nr6, ar8, M9, Sl3, nr7, Ll3 = "cr", Rl2 = "crlf", Ml2 = "\r", Ul2 = `\r
94228
94611
  `, Yl2 = `
94229
94612
  `, Gl2, ri8 = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g, ti8 = "©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇", zl2, Wl2, or8, jl2, $l2, vt11, H10, ue8, bt11, Ir5, oi8, si8, ci8, Jl2, Ql2, li8, xt9, fi8, bi8, ef, rf, Di7, nf, hi8 = (e) => String(e).split(/[/\\]/u).pop(), di8 = (e) => String(e).startsWith("file:"), sf = undefined, wt10, Sr6, kt11, sr8 = 3, _e8, gi8 = "format", Ei8, Ci7, Lr7 = (e) => _e8(e).content.trimStart().match(Ci7)?.index === 0, vi8 = (e) => _e8(e).content.trimStart().match(Ei8)?.index === 0, Ai8 = (e) => {
94230
94613
  let { frontMatter: r } = _e8(e), t = `<!-- @${gi8} -->`;
@@ -95901,7 +96284,7 @@ $$`;
95901
96284
  return n === -1 || t < n ? t : n;
95902
96285
  }
95903
96286
  });
95904
- ms8 = x7((i2, ds) => {
96287
+ ms9 = x7((i2, ds) => {
95905
96288
  var br = se8(), T0 = yn6();
95906
96289
  ds.exports = hs;
95907
96290
  hs.locator = T0;
@@ -96210,7 +96593,7 @@ $$`;
96210
96593
  Y.interruptList = [["atxHeading", { pedantic: false }], ["fencedCode", { pedantic: false }], ["thematicBreak", { pedantic: false }], ["definition", { commonmark: false }]];
96211
96594
  Y.interruptBlockquote = [["indentedCode", { commonmark: true }], ["fencedCode", { commonmark: true }], ["atxHeading", { commonmark: true }], ["setextHeading", { commonmark: true }], ["thematicBreak", { commonmark: true }], ["html", { commonmark: true }], ["list", { commonmark: true }], ["definition", { commonmark: false }]];
96212
96595
  Y.blockTokenizers = { blankLine: wa3(), indentedCode: Oa3(), fencedCode: Pa3(), blockquote: Ua4(), atxHeading: za3(), thematicBreak: ja4(), list: no5(), setextHeading: oo5(), html: po5(), definition: bo3(), table: wo4(), paragraph: Bo3() };
96213
- Y.inlineTokenizers = { escape: Io4(), autoLink: Yo3(), url: Jo3(), email: us7(), html: ss7(), link: ms8(), reference: Es6(), strong: ys7(), emphasis: Ps8(), deletion: Ys8(), code: js8(), break: Js8(), text: Zs8() };
96596
+ Y.inlineTokenizers = { escape: Io4(), autoLink: Yo3(), url: Jo3(), email: us7(), html: ss7(), link: ms9(), reference: Es6(), strong: ys7(), emphasis: Ps8(), deletion: Ys8(), code: js8(), break: Js8(), text: Zs8() };
96214
96597
  Y.blockMethods = rc(Y.blockTokenizers);
96215
96598
  Y.inlineMethods = rc(Y.inlineTokenizers);
96216
96599
  Y.tokenizeBlock = Nn("block");
@@ -98043,7 +98426,7 @@ function ue9(e, t, n, u, o, i) {
98043
98426
  function At12(e, t, n, u, o, i) {
98044
98427
  let { tokenStart: l } = e, f = e.getToken(), c = null, g = Zt9(e, t, n, u, o, i);
98045
98428
  if (e.getToken() === 1077936155) {
98046
- if (r(e, t | 32), c = L8(e, t, u, 1, 0, e.tokenStart), (i & 32 || (f & 2097152) === 0) && (e.getToken() === 471156 || e.getToken() === 8673330 && (f & 2097152 || (o & 4) === 0 || t & 1)))
98429
+ if (r(e, t | 32), c = L9(e, t, u, 1, 0, e.tokenStart), (i & 32 || (f & 2097152) === 0) && (e.getToken() === 471156 || e.getToken() === 8673330 && (f & 2097152 || (o & 4) === 0 || t & 1)))
98047
98430
  throw new q11(l, e.currentLocation, 60, e.getToken() === 471156 ? "of" : "in");
98048
98431
  } else
98049
98432
  (o & 16 || (f & 2097152) > 0) && (e.getToken() & 262144) !== 262144 && e.report(59, o & 16 ? "const" : "destructuring");
@@ -98066,7 +98449,7 @@ function Ln5(e, t, n, u, o) {
98066
98449
  d = _8(e, t | 131072, u, 1, 0, 1);
98067
98450
  if ((e.getToken() & 262144) === 262144) {
98068
98451
  if (e.getToken() === 471156) {
98069
- e.assignable & 2 && e.report(80, l ? "await" : "of"), K10(e, d), r(e, t | 32), h = L8(e, t, u, 1, 0, e.tokenStart), y5(e, t | 32, 16);
98452
+ e.assignable & 2 && e.report(80, l ? "await" : "of"), K10(e, d), r(e, t | 32), h = L9(e, t, u, 1, 0, e.tokenStart), y5(e, t | 32, 16);
98070
98453
  let D = de9(e, t, n, u, o);
98071
98454
  return e.finishNode({ type: "ForOfStatement", left: d, right: h, body: D, await: l }, i);
98072
98455
  }
@@ -98167,7 +98550,7 @@ function Pn6(e, t, n) {
98167
98550
  break;
98168
98551
  }
98169
98552
  default:
98170
- i = L8(e, t, undefined, 1, 0, e.tokenStart), M10(e, t | 32);
98553
+ i = L9(e, t, undefined, 1, 0, e.tokenStart), M10(e, t | 32);
98171
98554
  }
98172
98555
  return n && e.declareUnboundVariable("default"), e.finishNode({ type: "ExportDefaultDeclaration", declaration: i }, u);
98173
98556
  }
@@ -98220,25 +98603,25 @@ function Pn6(e, t, n) {
98220
98603
  let c = { type: "ExportNamedDeclaration", declaration: i, specifiers: o, source: l, attributes: f };
98221
98604
  return e.finishNode(c, u);
98222
98605
  }
98223
- function L8(e, t, n, u, o, i) {
98606
+ function L9(e, t, n, u, o, i) {
98224
98607
  let l = U10(e, t, n, 2, 0, u, o, 1, i);
98225
98608
  return l = F8(e, t, n, l, o, 0, i), I8(e, t, n, o, 0, i, l);
98226
98609
  }
98227
98610
  function W11(e, t, n, u, o, i) {
98228
98611
  let l = [i];
98229
98612
  for (;C6(e, t | 32, 18); )
98230
- l.push(L8(e, t, n, 1, u, e.tokenStart));
98613
+ l.push(L9(e, t, n, 1, u, e.tokenStart));
98231
98614
  return e.finishNode({ type: "SequenceExpression", expressions: l }, o);
98232
98615
  }
98233
98616
  function V10(e, t, n, u, o, i) {
98234
- let l = L8(e, t, n, o, u, i);
98617
+ let l = L9(e, t, n, o, u, i);
98235
98618
  return e.getToken() === 18 ? W11(e, t, n, u, i, l) : l;
98236
98619
  }
98237
98620
  function I8(e, t, n, u, o, i, l) {
98238
98621
  let f = e.getToken();
98239
98622
  if ((f & 4194304) === 4194304) {
98240
98623
  e.assignable & 2 && e.report(26), (!o && f === 1077936155 && l.type === "ArrayExpression" || l.type === "ObjectExpression") && K10(e, l), r(e, t | 32);
98241
- let c = L8(e, t, n, 1, u, e.tokenStart);
98624
+ let c = L9(e, t, n, 1, u, e.tokenStart);
98242
98625
  return e.assignable = 2, e.finishNode(o ? { type: "AssignmentPattern", left: l, right: c } : { type: "AssignmentExpression", left: l, operator: B6[f & 255], right: c }, i);
98243
98626
  }
98244
98627
  return (f & 8388608) === 8388608 && (l = G9(e, t, n, u, i, 4, f, l)), C6(e, t | 32, 22) && (l = ee7(e, t, n, l, i)), l;
@@ -98246,13 +98629,13 @@ function I8(e, t, n, u, o, i, l) {
98246
98629
  function be10(e, t, n, u, o, i, l) {
98247
98630
  let f = e.getToken();
98248
98631
  r(e, t | 32);
98249
- let c = L8(e, t, n, 1, u, e.tokenStart);
98632
+ let c = L9(e, t, n, 1, u, e.tokenStart);
98250
98633
  return l = e.finishNode(o ? { type: "AssignmentPattern", left: l, right: c } : { type: "AssignmentExpression", left: l, operator: B6[f & 255], right: c }, i), e.assignable = 2, l;
98251
98634
  }
98252
98635
  function ee7(e, t, n, u, o) {
98253
- let i = L8(e, (t | 131072) ^ 131072, n, 1, 0, e.tokenStart);
98636
+ let i = L9(e, (t | 131072) ^ 131072, n, 1, 0, e.tokenStart);
98254
98637
  y5(e, t | 32, 21), e.assignable = 1;
98255
- let l = L8(e, t, n, 1, 0, e.tokenStart);
98638
+ let l = L9(e, t, n, 1, 0, e.tokenStart);
98256
98639
  return e.assignable = 2, e.finishNode({ type: "ConditionalExpression", test: u, consequent: i, alternate: l }, o);
98257
98640
  }
98258
98641
  function G9(e, t, n, u, o, i, l, f) {
@@ -98282,7 +98665,7 @@ function Rn4(e, t, n, u, o, i) {
98282
98665
  if (u && (e.destructible |= 256), t & 1024) {
98283
98666
  r(e, t | 32), t & 8192 && e.report(32), o || e.report(26), e.getToken() === 22 && e.report(124);
98284
98667
  let l = null, f = false;
98285
- return (e.flags & 1) === 0 ? (f = C6(e, t | 32, 8391476), (e.getToken() & 77824 || f) && (l = L8(e, t, n, 1, 0, e.tokenStart))) : e.getToken() === 8391476 && e.report(30, B6[e.getToken() & 255]), e.assignable = 2, e.finishNode({ type: "YieldExpression", argument: l, delegate: f }, i);
98668
+ return (e.flags & 1) === 0 ? (f = C6(e, t | 32, 8391476), (e.getToken() & 77824 || f) && (l = L9(e, t, n, 1, 0, e.tokenStart))) : e.getToken() === 8391476 && e.report(30, B6[e.getToken() & 255]), e.assignable = 2, e.finishNode({ type: "YieldExpression", argument: l, delegate: f }, i);
98286
98669
  }
98287
98670
  return t & 1 && e.report(97, "yield"), nt11(e, t, n);
98288
98671
  }
@@ -98505,11 +98888,11 @@ function Xt8(e, t, n, u) {
98505
98888
  }
98506
98889
  function jt7(e, t, n, u, o) {
98507
98890
  y5(e, t | 32, 67174411), e.getToken() === 14 && e.report(143);
98508
- let i = L8(e, t, n, 1, u, e.tokenStart), l = null;
98891
+ let i = L9(e, t, n, 1, u, e.tokenStart), l = null;
98509
98892
  if (e.getToken() === 18) {
98510
98893
  if (y5(e, t, 18), e.getToken() !== 16) {
98511
98894
  let c = (t | 131072) ^ 131072;
98512
- l = L8(e, c, n, 1, u, e.tokenStart);
98895
+ l = L9(e, c, n, 1, u, e.tokenStart);
98513
98896
  }
98514
98897
  C6(e, t, 18);
98515
98898
  }
@@ -98586,7 +98969,7 @@ function Ee9(e, t, n, u, o) {
98586
98969
  function zn6(e, t, n) {
98587
98970
  let u = e.tokenStart;
98588
98971
  t = (t | 131072) ^ 131072, y5(e, t | 32, 14);
98589
- let o = L8(e, t, n, 1, 0, e.tokenStart);
98972
+ let o = L9(e, t, n, 1, 0, e.tokenStart);
98590
98973
  return e.assignable = 1, e.finishNode({ type: "SpreadElement", argument: o }, u);
98591
98974
  }
98592
98975
  function tt10(e, t, n, u) {
@@ -98594,7 +98977,7 @@ function tt10(e, t, n, u) {
98594
98977
  let o = [];
98595
98978
  if (e.getToken() === 16)
98596
98979
  return r(e, t | 64), o;
98597
- for (;e.getToken() !== 16 && (e.getToken() === 14 ? o.push(zn6(e, t, n)) : o.push(L8(e, t, n, 1, u, e.tokenStart)), !(e.getToken() !== 18 || (r(e, t | 32), e.getToken() === 16))); )
98980
+ for (;e.getToken() !== 16 && (e.getToken() === 14 ? o.push(zn6(e, t, n)) : o.push(L9(e, t, n, 1, u, e.tokenStart)), !(e.getToken() !== 18 || (r(e, t | 32), e.getToken() === 16))); )
98598
98981
  ;
98599
98982
  return y5(e, t | 64, 16), o;
98600
98983
  }
@@ -98653,7 +99036,7 @@ function X11(e, t, n, u, o, i, l, f, c) {
98653
99036
  if (T & 143360)
98654
99037
  if (A = U10(e, t, u, f, 0, 1, i, 1, b), e.getToken() === 1077936155) {
98655
99038
  e.assignable & 2 && e.report(26), r(e, t | 32), n?.addVarOrBlock(t, w, f, c);
98656
- let D = L8(e, t, u, 1, i, e.tokenStart);
99039
+ let D = L9(e, t, u, 1, i, e.tokenStart);
98657
99040
  A = e.finishNode(l ? { type: "AssignmentPattern", left: A, right: D } : { type: "AssignmentExpression", operator: "=", left: A, right: D }, b), a |= e.destructible & 256 ? 256 : 0 | e.destructible & 128 ? 128 : 0;
98658
99041
  } else
98659
99042
  e.getToken() === 18 || e.getToken() === 20 ? (e.assignable & 2 ? a |= 16 : n?.addVarOrBlock(t, w, f, c), a |= e.destructible & 256 ? 256 : 0 | e.destructible & 128 ? 128 : 0) : (a |= f & 1 ? 32 : (f & 2) === 0 ? 16 : 0, A = F8(e, t, u, A, i, 0, b), e.getToken() !== 18 && e.getToken() !== 20 ? (e.getToken() !== 1077936155 && (a |= 16), A = I8(e, t, u, i, l, b, A)) : e.getToken() !== 1077936155 && (a |= e.assignable & 2 ? 16 : 32));
@@ -98671,7 +99054,7 @@ function X11(e, t, n, u, o, i, l, f, c) {
98671
99054
  }
98672
99055
  function Kt9(e, t, n, u, o, i, l, f) {
98673
99056
  e.getToken() !== 1077936155 && e.report(26), r(e, t | 32), u & 16 && e.report(26), i || K10(e, f);
98674
- let { tokenStart: c } = e, g = L8(e, t, n, 1, o, c);
99057
+ let { tokenStart: c } = e, g = L9(e, t, n, 1, o, c);
98675
99058
  return e.destructible = (u | 64 | 8) ^ 72 | (e.destructible & 128 ? 128 : 0) | (e.destructible & 256 ? 256 : 0), e.finishNode(i ? { type: "AssignmentPattern", left: f, right: g } : { type: "AssignmentExpression", left: f, operator: "=", right: g }, l);
98676
99059
  }
98677
99060
  function oe8(e, t, n, u, o, i, l, f, c, g) {
@@ -98692,7 +99075,7 @@ function oe8(e, t, n, u, o, i, l, f, c, g) {
98692
99075
  if (e.getToken() !== o)
98693
99076
  if (i & 1 && (h |= f ? 16 : 32), C6(e, t | 32, 1077936155)) {
98694
99077
  h & 16 && e.report(26), K10(e, a);
98695
- let T = L8(e, t, u, 1, c, e.tokenStart);
99078
+ let T = L9(e, t, u, 1, c, e.tokenStart);
98696
99079
  a = e.finishNode(g ? { type: "AssignmentPattern", left: a, right: T } : { type: "AssignmentExpression", left: a, operator: "=", right: T }, b), h = 16;
98697
99080
  } else
98698
99081
  h |= 16;
@@ -98724,7 +99107,7 @@ function j8(e, t, n, u, o, i, l, f, c) {
98724
99107
  if (e.getToken() === -2147483527 && (a |= 16), R = N9(e, t), e.getToken() === 18 || e.getToken() === 1074790415 || e.getToken() === 1077936155)
98725
99108
  if (D |= 4, t & 1 && (T & 537079808) === 537079808 ? a |= 16 : Be9(e, t, f, T, 0), n?.addVarOrBlock(t, b, f, c), C6(e, t | 32, 1077936155)) {
98726
99109
  a |= 8;
98727
- let E = L8(e, t, u, 1, i, e.tokenStart);
99110
+ let E = L9(e, t, u, 1, i, e.tokenStart);
98728
99111
  a |= e.destructible & 256 ? 256 : 0 | e.destructible & 128 ? 128 : 0, k = e.finishNode({ type: "AssignmentPattern", left: e.cloneIdentifier(R), right: E }, w);
98729
99112
  } else
98730
99113
  a |= (T === 209006 ? 128 : 0) | (T === -2147483528 ? 16 : 0), k = e.cloneIdentifier(R);
@@ -98795,7 +99178,7 @@ function Qn6(e, t, n, u, o, i, l) {
98795
99178
  let d = null, { tokenStart: a } = e;
98796
99179
  if (e.getToken() & 143360 ? ((t & 1) === 0 && ((e.getToken() & 36864) === 36864 && (e.flags |= 256), (e.getToken() & 537079808) === 537079808 && (e.flags |= 512)), d = it9(e, t, n, o | 1, 0)) : (e.getToken() === 2162700 ? d = j8(e, t, n, u, 1, l, 1, i, 0) : e.getToken() === 69271571 ? d = X11(e, t, n, u, 1, l, 1, i, 0) : e.getToken() === 14 && (d = oe8(e, t, n, u, 16, i, 0, 0, l, 1)), g = 1, e.destructible & 48 && e.report(50)), e.getToken() === 1077936155) {
98797
99180
  r(e, t | 32), g = 1;
98798
- let h = L8(e, t, u, 1, 0, e.tokenStart);
99181
+ let h = L9(e, t, u, 1, 0, e.tokenStart);
98799
99182
  d = e.finishNode({ type: "AssignmentPattern", left: d, right: h }, a);
98800
99183
  }
98801
99184
  if (c++, f.push(d), !C6(e, t, 18) || e.getToken() === 16)
@@ -98805,7 +99188,7 @@ function Qn6(e, t, n, u, o, i, l) {
98805
99188
  }
98806
99189
  function ne10(e, t, n, u) {
98807
99190
  r(e, t | 32);
98808
- let o = L8(e, (t | 131072) ^ 131072, n, 1, u, e.tokenStart);
99191
+ let o = L9(e, (t | 131072) ^ 131072, n, 1, u, e.tokenStart);
98809
99192
  return y5(e, t, 20), o;
98810
99193
  }
98811
99194
  function Zn7(e, t, n, u, o, i, l) {
@@ -98828,9 +99211,9 @@ function Zn7(e, t, n, u, o, i, l) {
98828
99211
  d = oe8(e, t, c, n, 16, o, i, 0, 1, 0), e.destructible & 16 && e.report(74), A = 1, h && (e.getToken() === 16 || e.getToken() === 18) && a.push(d), g |= 8;
98829
99212
  break;
98830
99213
  } else {
98831
- if (g |= 16, d = L8(e, t, n, 1, 1, T), h && (e.getToken() === 16 || e.getToken() === 18) && a.push(d), e.getToken() === 18 && (h || (h = 1, a = [d])), h) {
99214
+ if (g |= 16, d = L9(e, t, n, 1, 1, T), h && (e.getToken() === 16 || e.getToken() === 18) && a.push(d), e.getToken() === 18 && (h || (h = 1, a = [d])), h) {
98832
99215
  for (;C6(e, t | 32, 18); )
98833
- a.push(L8(e, t, n, 1, 1, e.tokenStart));
99216
+ a.push(L9(e, t, n, 1, 1, e.tokenStart));
98834
99217
  e.assignable = 2, d = e.finishNode({ type: "SequenceExpression", expressions: a }, w);
98835
99218
  }
98836
99219
  return y5(e, t, 16), e.destructible = g, e.options.preserveParens ? e.finishNode({ type: "ParenthesizedExpression", expression: d }, f) : d;
@@ -98871,7 +99254,7 @@ function ke9(e, t, n, u, o, i, l) {
98871
99254
  t = (t | f) ^ f | (i ? 2048 : 0);
98872
99255
  let c = e.getToken() !== 2162700, g;
98873
99256
  if (n?.reportScopeError(), c)
98874
- e.flags = (e.flags | 512 | 256 | 64 | 4096) ^ 4928, g = L8(e, t, u, 1, 0, e.tokenStart);
99257
+ e.flags = (e.flags | 512 | 256 | 64 | 4096) ^ 4928, g = L9(e, t, u, 1, 0, e.tokenStart);
98875
99258
  else {
98876
99259
  n = n?.createChildScope(64);
98877
99260
  let d = 131084;
@@ -98902,7 +99285,7 @@ function $t8(e, t, n, u, o, i) {
98902
99285
  let c, { tokenStart: g } = e, d = e.getToken();
98903
99286
  if (d & 143360 ? ((t & 1) === 0 && ((d & 36864) === 36864 && (e.flags |= 256), (d & 537079808) === 537079808 && (e.flags |= 512)), c = it9(e, t, n, i | 1, 0)) : (d === 2162700 ? c = j8(e, t, n, u, 1, o, 1, i, 0) : d === 69271571 ? c = X11(e, t, n, u, 1, o, 1, i, 0) : d === 14 ? c = oe8(e, t, n, u, 16, i, 0, 0, o, 1) : e.report(30, B6[d & 255]), f = 1, e.destructible & 48 && e.report(50)), e.getToken() === 1077936155) {
98904
99287
  r(e, t | 32), f = 1;
98905
- let a = L8(e, t, u, 1, o, e.tokenStart);
99288
+ let a = L9(e, t, u, 1, o, e.tokenStart);
98906
99289
  c = e.finishNode({ type: "AssignmentPattern", left: c, right: a }, g);
98907
99290
  }
98908
99291
  if (l.push(c), !C6(e, t, 18) || e.getToken() === 16)
@@ -98963,8 +99346,8 @@ function ut8(e, t, n, u, o, i, l, f, c) {
98963
99346
  else if (w === 14)
98964
99347
  a = oe8(e, t, g, n, 16, i, l, 1, 1, 0), d |= (e.getToken() === 16 ? 0 : 16) | e.destructible, h = 1;
98965
99348
  else {
98966
- for (a = L8(e, t, n, 1, 0, b), d = e.assignable, A.push(a);C6(e, t | 32, 18); )
98967
- A.push(L8(e, t, n, 1, 0, b));
99349
+ for (a = L9(e, t, n, 1, 0, b), d = e.assignable, A.push(a);C6(e, t | 32, 18); )
99350
+ A.push(L9(e, t, n, 1, 0, b));
98968
99351
  return d |= e.assignable, y5(e, t, 16), e.destructible = d | 16, e.assignable = 2, e.finishNode({ type: "CallExpression", callee: u, arguments: A, optional: false }, c);
98969
99352
  }
98970
99353
  if (A.push(a), !C6(e, t | 32, 18))
@@ -99213,7 +99596,7 @@ function au2(e, t, n) {
99213
99596
  function gu2(e, t, n) {
99214
99597
  let u = e.tokenStart;
99215
99598
  r(e, t), y5(e, t, 14);
99216
- let o = L8(e, t, n, 1, 0, e.tokenStart);
99599
+ let o = L9(e, t, n, 1, 0, e.tokenStart);
99217
99600
  return y5(e, t, 1074790415), e.finishNode({ type: "JSXSpreadAttribute", argument: o }, u);
99218
99601
  }
99219
99602
  function mu2(e, t, n) {
@@ -99250,11 +99633,11 @@ function ot9(e, t, n, u, o) {
99250
99633
  if (e.getToken() === 14)
99251
99634
  return ru2(e, t, n, i);
99252
99635
  let f = null;
99253
- return e.getToken() === 1074790415 ? (o && e.report(157), f = hu3(e, { index: e.startIndex, line: e.startLine, column: e.startColumn })) : f = L8(e, t, n, 1, 0, l), e.getToken() !== 1074790415 && e.report(25, B6[15]), u ? me11(e) : r(e, t), e.finishNode({ type: "JSXExpressionContainer", expression: f }, i);
99636
+ return e.getToken() === 1074790415 ? (o && e.report(157), f = hu3(e, { index: e.startIndex, line: e.startLine, column: e.startColumn })) : f = L9(e, t, n, 1, 0, l), e.getToken() !== 1074790415 && e.report(25, B6[15]), u ? me11(e) : r(e, t), e.finishNode({ type: "JSXExpressionContainer", expression: f }, i);
99254
99637
  }
99255
99638
  function ru2(e, t, n, u) {
99256
99639
  y5(e, t, 14);
99257
- let o = L8(e, t, n, 1, 0, e.tokenStart);
99640
+ let o = L9(e, t, n, 1, 0, e.tokenStart);
99258
99641
  return y5(e, t, 1074790415), e.finishNode({ type: "JSXSpreadChild", expression: o }, u);
99259
99642
  }
99260
99643
  function hu3(e, t) {
@@ -99871,7 +100254,7 @@ function Ml3(t) {
99871
100254
  function on11(t) {
99872
100255
  return Dl3(t, Ml3);
99873
100256
  }
99874
- function L9(t) {
100257
+ function L10(t) {
99875
100258
  return $10(t), { type: ie9, contents: t };
99876
100259
  }
99877
100260
  function Bl2(t, e) {
@@ -100449,7 +100832,7 @@ function hc2(t, e, s) {
100449
100832
  }
100450
100833
  }
100451
100834
  }
100452
- return f && c.push([c.pop(), Ne10]), d && c.unshift("", T6), l ? D6(L9(c)) : Qn7(t) ? D6(Pe9(c)) : D6(L9(Pe9(c)));
100835
+ return f && c.push([c.pop(), Ne10]), d && c.unshift("", T6), l ? D6(L10(c)) : Qn7(t) ? D6(Pe9(c)) : D6(L10(Pe9(c)));
100453
100836
  }
100454
100837
  function hi9(t) {
100455
100838
  if (t?.type === "value-number")
@@ -100539,7 +100922,7 @@ function bi9(t, e, s) {
100539
100922
  let g = is7(t);
100540
100923
  ye11(i);
100541
100924
  let b = Ac2(Y6(",", i), 2), d = Y6(g ? T6 : C7, b);
100542
- return L9(g ? [T6, d] : D6([Tc3(t) ? M11 : "", Pe9(d)]));
100925
+ return L10(g ? [T6, d] : D6([Tc3(t) ? M11 : "", Pe9(d)]));
100543
100926
  }
100544
100927
  let o = t.map(({ node: g, isLast: b, index: d }) => {
100545
100928
  let p = i[d];
@@ -100550,7 +100933,7 @@ function bi9(t, e, s) {
100550
100933
  !y.source && y.close && (y = y.close), y.source && Vt11(e.originalText, R11(y)) && m.push(T6);
100551
100934
  }
100552
100935
  return m;
100553
- }, "groups"), u = li9(r, n), a = pi9(r, n), l = ts7(t, e), f = a || l && !u, h = a || u, c = D6([r.open ? s("open") : "", L9([M11, Y6(C7, o)]), M11, r.close ? s("close") : ""], { shouldBreak: f });
100936
+ }, "groups"), u = li9(r, n), a = pi9(r, n), l = ts7(t, e), f = a || l && !u, h = a || u, c = D6([r.open ? s("open") : "", L10([M11, Y6(C7, o)]), M11, r.close ? s("close") : ""], { shouldBreak: f });
100554
100937
  return h ? le8(c) : c;
100555
100938
  }
100556
100939
  function is7(t) {
@@ -100587,10 +100970,10 @@ function Cc2(t, e, s) {
100587
100970
  return n ? i.trimEnd() : i;
100588
100971
  }
100589
100972
  case "css-rule":
100590
- return [s("selector"), r.important ? " !important" : "", r.nodes ? [r.selector?.type === "selector-unknown" && Le11(r.selector.value) ? C7 : r.selector ? " " : "", "{", r.nodes.length > 0 ? L9([T6, De10(t, e, s)]) : "", T6, "}", Zn8(r) ? ";" : ""] : ";"];
100973
+ return [s("selector"), r.important ? " !important" : "", r.nodes ? [r.selector?.type === "selector-unknown" && Le11(r.selector.value) ? C7 : r.selector ? " " : "", "{", r.nodes.length > 0 ? L10([T6, De10(t, e, s)]) : "", T6, "}", Zn8(r) ? ";" : ""] : ";"];
100591
100974
  case "css-decl": {
100592
100975
  let n = t.parent, { between: i } = r.raws, o = i.trim(), u = o === ":", a = typeof r.value == "string" && /^ *$/u.test(r.value), l = typeof r.value == "string" ? r.value : s("value");
100593
- return l = ai9(r) ? on11(l) : l, !u && Le11(o) && !t.call(() => is7(t), "value", "group", "group") && (l = L9([T6, le8(l)])), [E5(0, r.raws.before, /[\s;]/gu, ""), n.type === "css-atrule" && n.variable || Kn8(t) ? r.prop : Ie11(r.prop), o.startsWith("//") ? " " : "", o, r.extend || a ? "" : " ", e.parser === "less" && r.extend && r.selector ? ["extend(", s("selector"), ")"] : "", l, r.raws.important ? r.raws.important.replace(/\s*!\s*important/iu, " !important") : r.important ? " !important" : "", r.raws.scssDefault ? r.raws.scssDefault.replace(/\s*!default/iu, " !default") : r.scssDefault ? " !default" : "", r.raws.scssGlobal ? r.raws.scssGlobal.replace(/\s*!global/iu, " !global") : r.scssGlobal ? " !global" : "", r.nodes ? [" {", L9([M11, De10(t, e, s)]), M11, "}"] : ii9(r) && !n.raws.semicolon && e.originalText[R11(r) - 1] !== ";" ? "" : e.__isHTMLStyleAttribute && t.isLast ? Ct13(";") : ";"];
100976
+ return l = ai9(r) ? on11(l) : l, !u && Le11(o) && !t.call(() => is7(t), "value", "group", "group") && (l = L10([T6, le8(l)])), [E5(0, r.raws.before, /[\s;]/gu, ""), n.type === "css-atrule" && n.variable || Kn8(t) ? r.prop : Ie11(r.prop), o.startsWith("//") ? " " : "", o, r.extend || a ? "" : " ", e.parser === "less" && r.extend && r.selector ? ["extend(", s("selector"), ")"] : "", l, r.raws.important ? r.raws.important.replace(/\s*!\s*important/iu, " !important") : r.important ? " !important" : "", r.raws.scssDefault ? r.raws.scssDefault.replace(/\s*!default/iu, " !default") : r.scssDefault ? " !default" : "", r.raws.scssGlobal ? r.raws.scssGlobal.replace(/\s*!global/iu, " !global") : r.scssGlobal ? " !global" : "", r.nodes ? [" {", L10([M11, De10(t, e, s)]), M11, "}"] : ii9(r) && !n.raws.semicolon && e.originalText[R11(r) - 1] !== ";" ? "" : e.__isHTMLStyleAttribute && t.isLast ? Ct13(";") : ";"];
100594
100977
  }
100595
100978
  case "css-atrule": {
100596
100979
  let n = t.parent, i = Mt12(r) && !n.raws.semicolon && e.originalText[R11(r) - 1] !== ";";
@@ -100600,16 +100983,16 @@ function Cc2(t, e, s) {
100600
100983
  if (r.function)
100601
100984
  return [r.name, typeof r.params == "string" ? r.params : s("params"), i ? "" : ";"];
100602
100985
  if (r.variable)
100603
- return ["@", r.name, ": ", r.value ? s("value") : "", r.raws.between.trim() ? r.raws.between.trim() + " " : "", r.nodes ? ["{", L9([r.nodes.length > 0 ? M11 : "", De10(t, e, s)]), M11, "}"] : "", i ? "" : ";"];
100986
+ return ["@", r.name, ": ", r.value ? s("value") : "", r.raws.between.trim() ? r.raws.between.trim() + " " : "", r.nodes ? ["{", L10([r.nodes.length > 0 ? M11 : "", De10(t, e, s)]), M11, "}"] : "", i ? "" : ";"];
100604
100987
  }
100605
100988
  let o = r.name === "import" && r.params?.type === "value-unknown" && r.params.value.endsWith(";");
100606
- return ["@", es7(r) || r.name.endsWith(":") || Mt12(r) ? r.name : Ie11(r.name), r.params ? [es7(r) ? "" : Mt12(r) ? r.raws.afterName === "" ? "" : r.name.endsWith(":") ? " " : /^\s*\n\s*\n/u.test(r.raws.afterName) ? [T6, T6] : /^\s*\n/u.test(r.raws.afterName) ? T6 : " " : " ", typeof r.params == "string" ? r.params : s("params")] : "", r.selector ? L9([" ", s("selector")]) : "", r.value ? D6([" ", s("value"), Je11(r, e) ? ui9(r) ? " " : C7 : ""]) : r.name === "else" ? " " : "", r.nodes ? [Je11(r, e) ? "" : r.selector && !r.selector.nodes && typeof r.selector.value == "string" && Le11(r.selector.value) || !r.selector && typeof r.params == "string" && Le11(r.params) ? C7 : " ", "{", L9([r.nodes.length > 0 ? M11 : "", De10(t, e, s)]), M11, "}"] : i || o ? "" : ";"];
100989
+ return ["@", es7(r) || r.name.endsWith(":") || Mt12(r) ? r.name : Ie11(r.name), r.params ? [es7(r) ? "" : Mt12(r) ? r.raws.afterName === "" ? "" : r.name.endsWith(":") ? " " : /^\s*\n\s*\n/u.test(r.raws.afterName) ? [T6, T6] : /^\s*\n/u.test(r.raws.afterName) ? T6 : " " : " ", typeof r.params == "string" ? r.params : s("params")] : "", r.selector ? L10([" ", s("selector")]) : "", r.value ? D6([" ", s("value"), Je11(r, e) ? ui9(r) ? " " : C7 : ""]) : r.name === "else" ? " " : "", r.nodes ? [Je11(r, e) ? "" : r.selector && !r.selector.nodes && typeof r.selector.value == "string" && Le11(r.selector.value) || !r.selector && typeof r.params == "string" && Le11(r.params) ? C7 : " ", "{", L10([r.nodes.length > 0 ? M11 : "", De10(t, e, s)]), M11, "}"] : i || o ? "" : ";"];
100607
100990
  }
100608
100991
  case "media-query-list": {
100609
100992
  let n = [];
100610
100993
  return t.each(({ node: i }) => {
100611
100994
  i.type === "media-query" && i.value === "" || n.push(s());
100612
- }, "nodes"), D6(L9(Y6(C7, n)));
100995
+ }, "nodes"), D6(L10(Y6(C7, n)));
100613
100996
  }
100614
100997
  case "media-query":
100615
100998
  return [Y6(" ", t.map(s, "nodes")), t.isLast ? "" : ","];
@@ -100633,7 +101016,7 @@ function Cc2(t, e, s) {
100633
101016
  return D6([we9(t, "custom-selector") ? [t.findAncestor((n) => n.type === "css-atrule").customSelector, C7] : "", Y6([",", we9(t, ["extend", "custom-selector", "nest"]) ? C7 : T6], t.map(s, "nodes"))]);
100634
101017
  case "selector-selector": {
100635
101018
  let n = r.nodes.length > 2;
100636
- return D6((n ? L9 : (i) => i)(t.map(s, "nodes")));
101019
+ return D6((n ? L10 : (i) => i)(t.map(s, "nodes")));
100637
101020
  }
100638
101021
  case "selector-comment":
100639
101022
  return r.value;
@@ -100658,7 +101041,7 @@ function Cc2(t, e, s) {
100658
101041
  case "selector-universal":
100659
101042
  return [r.namespace ? [r.namespace === true ? "" : r.namespace.trim(), "|"] : "", r.value];
100660
101043
  case "selector-pseudo":
100661
- return [Ie11(r.value), ce8(r.nodes) ? D6(["(", L9([M11, Y6([",", C7], t.map(s, "nodes"))]), M11, ")"]) : ""];
101044
+ return [Ie11(r.value), ce8(r.nodes) ? D6(["(", L10([M11, Y6([",", C7], t.map(s, "nodes"))]), M11, ")"]) : ""];
100662
101045
  case "selector-nesting":
100663
101046
  return r.value;
100664
101047
  case "selector-unknown": {
@@ -111521,7 +111904,7 @@ function N62(e) {
111521
111904
  function nm2(e, t, a) {
111522
111905
  return ie10(t, a, e.typeParameters) || ie10(t, a, e.parameters) || S7(t, e.type);
111523
111906
  }
111524
- function rm4(e, t, a) {
111907
+ function rm5(e, t, a) {
111525
111908
  return ie10(t, a, e.types);
111526
111909
  }
111527
111910
  function im2(e, t, a) {
@@ -114489,7 +114872,7 @@ ${Me.join(`
114489
114872
  return S7(a, t.elementType);
114490
114873
  }, 190: function(t, a, _) {
114491
114874
  return ie10(a, _, t.elements);
114492
- }, 193: rm4, 194: rm4, 195: function(t, a, _) {
114875
+ }, 193: rm5, 194: rm5, 195: function(t, a, _) {
114493
114876
  return S7(a, t.checkType) || S7(a, t.extendsType) || S7(a, t.trueType) || S7(a, t.falseType);
114494
114877
  }, 196: function(t, a, _) {
114495
114878
  return S7(a, t.typeParameter);
@@ -124807,7 +125190,7 @@ var require2, __filename2, __dirname3, __create2, __defProp3, __getOwnPropDesc2,
124807
125190
  }
124808
125191
  }
124809
125192
  }, ast_path_default, is_object_default, skipWhitespace, skipSpaces, skipToLineEnd, skipEverythingButNewLine, isNewlineCharacter = (character) => character === `
124810
- ` || character === "\r" || character === "\u2028" || character === "\u2029", skip_newline_default, has_newline_default, is_non_empty_array_default, get_sorted_child_nodes_default, childNodesCache, returnFalse = () => false, isAllEmptyAndNoLineBreak = (text) => !/[\S\n\u2028\u2029]/u.test(text), is_previous_line_empty_default, breakParent2, hardline2, indent2, join33, line22, lineSuffix2, create_print_pre_check_function_default = () => noop_default2, core_options_evaluate_default, arrayToReversed, toReversed, method_to_reversed_default, import_n_readlines, get_interpreter_default, getFileBasename = (file) => {
125193
+ ` || character === "\r" || character === "\u2028" || character === "\u2029", skip_newline_default, has_newline_default, is_non_empty_array_default, get_sorted_child_nodes_default, childNodesCache, returnFalse = () => false, isAllEmptyAndNoLineBreak = (text) => !/[\S\n\u2028\u2029]/u.test(text), is_previous_line_empty_default, breakParent2, hardline2, indent2, join34, line22, lineSuffix2, create_print_pre_check_function_default = () => noop_default2, core_options_evaluate_default, arrayToReversed, toReversed, method_to_reversed_default, import_n_readlines, get_interpreter_default, getFileBasename = (file) => {
124811
125194
  try {
124812
125195
  return path112.basename(toPath3(file));
124813
125196
  } catch {
@@ -134836,7 +135219,7 @@ ${codeblock}`, options8);
134836
135219
  breakParent: breakParent2,
134837
135220
  hardline: hardline2,
134838
135221
  indent: indent2,
134839
- join: join33,
135222
+ join: join34,
134840
135223
  line: line22,
134841
135224
  lineSuffix: lineSuffix2
134842
135225
  } = builders);
@@ -171037,389 +171420,6 @@ var require_dist2 = __commonJS(function(exports) {
171037
171420
  __exportStar(require_legacy(), exports);
171038
171421
  });
171039
171422
 
171040
- // ../../node_modules/tmp/lib/tmp.js
171041
- var require_tmp = __commonJS(function(exports, module) {
171042
- /*!
171043
- * Tmp
171044
- *
171045
- * Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
171046
- *
171047
- * MIT Licensed
171048
- */
171049
- var fs = __require("fs");
171050
- var os = __require("os");
171051
- var path = __require("path");
171052
- var crypto = __require("crypto");
171053
- var _c = { fs: fs.constants, os: os.constants };
171054
- var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
171055
- var TEMPLATE_PATTERN = /XXXXXX/;
171056
- var DEFAULT_TRIES = 3;
171057
- var CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR);
171058
- var IS_WIN32 = os.platform() === "win32";
171059
- var EBADF = _c.EBADF || _c.os.errno.EBADF;
171060
- var ENOENT = _c.ENOENT || _c.os.errno.ENOENT;
171061
- var DIR_MODE = 448;
171062
- var FILE_MODE = 384;
171063
- var EXIT = "exit";
171064
- var _removeObjects = [];
171065
- var FN_RMDIR_SYNC = fs.rmdirSync.bind(fs);
171066
- var _gracefulCleanup = false;
171067
- function rimraf(dirPath, callback) {
171068
- return fs.rm(dirPath, { recursive: true }, callback);
171069
- }
171070
- function FN_RIMRAF_SYNC(dirPath) {
171071
- return fs.rmSync(dirPath, { recursive: true });
171072
- }
171073
- function tmpName(options, callback) {
171074
- const args = _parseArguments(options, callback), opts = args[0], cb = args[1];
171075
- _assertAndSanitizeOptions(opts, function(err, sanitizedOptions) {
171076
- if (err)
171077
- return cb(err);
171078
- let tries = sanitizedOptions.tries;
171079
- (function _getUniqueName() {
171080
- try {
171081
- const name = _generateTmpName(sanitizedOptions);
171082
- fs.stat(name, function(err) {
171083
- if (!err) {
171084
- if (tries-- > 0)
171085
- return _getUniqueName();
171086
- return cb(new Error("Could not get a unique tmp filename, max tries reached " + name));
171087
- }
171088
- cb(null, name);
171089
- });
171090
- } catch (err) {
171091
- cb(err);
171092
- }
171093
- })();
171094
- });
171095
- }
171096
- function tmpNameSync(options) {
171097
- const args = _parseArguments(options), opts = args[0];
171098
- const sanitizedOptions = _assertAndSanitizeOptionsSync(opts);
171099
- let tries = sanitizedOptions.tries;
171100
- do {
171101
- const name = _generateTmpName(sanitizedOptions);
171102
- try {
171103
- fs.statSync(name);
171104
- } catch (e) {
171105
- return name;
171106
- }
171107
- } while (tries-- > 0);
171108
- throw new Error("Could not get a unique tmp filename, max tries reached");
171109
- }
171110
- function file(options, callback) {
171111
- const args = _parseArguments(options, callback), opts = args[0], cb = args[1];
171112
- tmpName(opts, function _tmpNameCreated(err, name) {
171113
- if (err)
171114
- return cb(err);
171115
- fs.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err, fd) {
171116
- if (err)
171117
- return cb(err);
171118
- if (opts.discardDescriptor) {
171119
- return fs.close(fd, function _discardCallback(possibleErr) {
171120
- return cb(possibleErr, name, undefined, _prepareTmpFileRemoveCallback(name, -1, opts, false));
171121
- });
171122
- } else {
171123
- const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
171124
- cb(null, name, fd, _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts, false));
171125
- }
171126
- });
171127
- });
171128
- }
171129
- function fileSync(options) {
171130
- const args = _parseArguments(options), opts = args[0];
171131
- const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
171132
- const name = tmpNameSync(opts);
171133
- let fd = fs.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
171134
- if (opts.discardDescriptor) {
171135
- fs.closeSync(fd);
171136
- fd = undefined;
171137
- }
171138
- return {
171139
- name,
171140
- fd,
171141
- removeCallback: _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts, true)
171142
- };
171143
- }
171144
- function dir(options, callback) {
171145
- const args = _parseArguments(options, callback), opts = args[0], cb = args[1];
171146
- tmpName(opts, function _tmpNameCreated(err, name) {
171147
- if (err)
171148
- return cb(err);
171149
- fs.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err) {
171150
- if (err)
171151
- return cb(err);
171152
- cb(null, name, _prepareTmpDirRemoveCallback(name, opts, false));
171153
- });
171154
- });
171155
- }
171156
- function dirSync(options) {
171157
- const args = _parseArguments(options), opts = args[0];
171158
- const name = tmpNameSync(opts);
171159
- fs.mkdirSync(name, opts.mode || DIR_MODE);
171160
- return {
171161
- name,
171162
- removeCallback: _prepareTmpDirRemoveCallback(name, opts, true)
171163
- };
171164
- }
171165
- function _removeFileAsync(fdPath, next) {
171166
- const _handler = function(err) {
171167
- if (err && !_isENOENT(err)) {
171168
- return next(err);
171169
- }
171170
- next();
171171
- };
171172
- if (0 <= fdPath[0])
171173
- fs.close(fdPath[0], function() {
171174
- fs.unlink(fdPath[1], _handler);
171175
- });
171176
- else
171177
- fs.unlink(fdPath[1], _handler);
171178
- }
171179
- function _removeFileSync(fdPath) {
171180
- let rethrownException = null;
171181
- try {
171182
- if (0 <= fdPath[0])
171183
- fs.closeSync(fdPath[0]);
171184
- } catch (e) {
171185
- if (!_isEBADF(e) && !_isENOENT(e))
171186
- throw e;
171187
- } finally {
171188
- try {
171189
- fs.unlinkSync(fdPath[1]);
171190
- } catch (e) {
171191
- if (!_isENOENT(e))
171192
- rethrownException = e;
171193
- }
171194
- }
171195
- if (rethrownException !== null) {
171196
- throw rethrownException;
171197
- }
171198
- }
171199
- function _prepareTmpFileRemoveCallback(name, fd, opts, sync) {
171200
- const removeCallbackSync = _prepareRemoveCallback(_removeFileSync, [fd, name], sync);
171201
- const removeCallback = _prepareRemoveCallback(_removeFileAsync, [fd, name], sync, removeCallbackSync);
171202
- if (!opts.keep)
171203
- _removeObjects.unshift(removeCallbackSync);
171204
- return sync ? removeCallbackSync : removeCallback;
171205
- }
171206
- function _prepareTmpDirRemoveCallback(name, opts, sync) {
171207
- const removeFunction = opts.unsafeCleanup ? rimraf : fs.rmdir.bind(fs);
171208
- const removeFunctionSync = opts.unsafeCleanup ? FN_RIMRAF_SYNC : FN_RMDIR_SYNC;
171209
- const removeCallbackSync = _prepareRemoveCallback(removeFunctionSync, name, sync);
171210
- const removeCallback = _prepareRemoveCallback(removeFunction, name, sync, removeCallbackSync);
171211
- if (!opts.keep)
171212
- _removeObjects.unshift(removeCallbackSync);
171213
- return sync ? removeCallbackSync : removeCallback;
171214
- }
171215
- function _prepareRemoveCallback(removeFunction, fileOrDirName, sync, cleanupCallbackSync) {
171216
- let called = false;
171217
- return function _cleanupCallback(next) {
171218
- if (!called) {
171219
- const toRemove = cleanupCallbackSync || _cleanupCallback;
171220
- const index = _removeObjects.indexOf(toRemove);
171221
- if (index >= 0)
171222
- _removeObjects.splice(index, 1);
171223
- called = true;
171224
- if (sync || removeFunction === FN_RMDIR_SYNC || removeFunction === FN_RIMRAF_SYNC) {
171225
- return removeFunction(fileOrDirName);
171226
- } else {
171227
- return removeFunction(fileOrDirName, next || function() {});
171228
- }
171229
- }
171230
- };
171231
- }
171232
- function _garbageCollector() {
171233
- if (!_gracefulCleanup)
171234
- return;
171235
- while (_removeObjects.length) {
171236
- try {
171237
- _removeObjects[0]();
171238
- } catch (e) {}
171239
- }
171240
- }
171241
- function _randomChars(howMany) {
171242
- let value = [], rnd = null;
171243
- try {
171244
- rnd = crypto.randomBytes(howMany);
171245
- } catch (e) {
171246
- rnd = crypto.pseudoRandomBytes(howMany);
171247
- }
171248
- for (let i = 0;i < howMany; i++) {
171249
- value.push(RANDOM_CHARS[rnd[i] % RANDOM_CHARS.length]);
171250
- }
171251
- return value.join("");
171252
- }
171253
- function _isUndefined(obj) {
171254
- return typeof obj === "undefined";
171255
- }
171256
- function _parseArguments(options, callback) {
171257
- if (typeof options === "function") {
171258
- return [{}, options];
171259
- }
171260
- if (_isUndefined(options)) {
171261
- return [{}, callback];
171262
- }
171263
- const actualOptions = {};
171264
- for (const key of Object.getOwnPropertyNames(options)) {
171265
- actualOptions[key] = options[key];
171266
- }
171267
- return [actualOptions, callback];
171268
- }
171269
- function _resolvePath(name, tmpDir, cb) {
171270
- const pathToResolve = path.isAbsolute(name) ? name : path.join(tmpDir, name);
171271
- fs.stat(pathToResolve, function(err) {
171272
- if (err) {
171273
- fs.realpath(path.dirname(pathToResolve), function(err, parentDir) {
171274
- if (err)
171275
- return cb(err);
171276
- cb(null, path.join(parentDir, path.basename(pathToResolve)));
171277
- });
171278
- } else {
171279
- fs.realpath(pathToResolve, cb);
171280
- }
171281
- });
171282
- }
171283
- function _resolvePathSync(name, tmpDir) {
171284
- const pathToResolve = path.isAbsolute(name) ? name : path.join(tmpDir, name);
171285
- try {
171286
- fs.statSync(pathToResolve);
171287
- return fs.realpathSync(pathToResolve);
171288
- } catch (_err) {
171289
- const parentDir = fs.realpathSync(path.dirname(pathToResolve));
171290
- return path.join(parentDir, path.basename(pathToResolve));
171291
- }
171292
- }
171293
- function _generateTmpName(opts) {
171294
- const tmpDir = opts.tmpdir;
171295
- if (!_isUndefined(opts.name)) {
171296
- return path.join(tmpDir, opts.dir, opts.name);
171297
- }
171298
- if (!_isUndefined(opts.template)) {
171299
- return path.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
171300
- }
171301
- const name = [
171302
- opts.prefix ? opts.prefix : "tmp",
171303
- "-",
171304
- process.pid,
171305
- "-",
171306
- _randomChars(12),
171307
- opts.postfix ? "-" + opts.postfix : ""
171308
- ].join("");
171309
- return path.join(tmpDir, opts.dir, name);
171310
- }
171311
- function _assertOptionsBase(options) {
171312
- if (!_isUndefined(options.name)) {
171313
- const name = options.name;
171314
- if (path.isAbsolute(name))
171315
- throw new Error(`name option must not contain an absolute path, found "${name}".`);
171316
- const basename2 = path.basename(name);
171317
- if (basename2 === ".." || basename2 === "." || basename2 !== name)
171318
- throw new Error(`name option must not contain a path, found "${name}".`);
171319
- }
171320
- if (!_isUndefined(options.template) && !options.template.match(TEMPLATE_PATTERN)) {
171321
- throw new Error(`Invalid template, found "${options.template}".`);
171322
- }
171323
- if (!_isUndefined(options.tries) && isNaN(options.tries) || options.tries < 0) {
171324
- throw new Error(`Invalid tries, found "${options.tries}".`);
171325
- }
171326
- options.tries = _isUndefined(options.name) ? options.tries || DEFAULT_TRIES : 1;
171327
- options.keep = !!options.keep;
171328
- options.detachDescriptor = !!options.detachDescriptor;
171329
- options.discardDescriptor = !!options.discardDescriptor;
171330
- options.unsafeCleanup = !!options.unsafeCleanup;
171331
- options.prefix = _isUndefined(options.prefix) ? "" : options.prefix;
171332
- options.postfix = _isUndefined(options.postfix) ? "" : options.postfix;
171333
- }
171334
- function _getRelativePath(option, name, tmpDir, cb) {
171335
- if (_isUndefined(name))
171336
- return cb(null);
171337
- _resolvePath(name, tmpDir, function(err, resolvedPath) {
171338
- if (err)
171339
- return cb(err);
171340
- const relativePath = path.relative(tmpDir, resolvedPath);
171341
- if (!resolvedPath.startsWith(tmpDir)) {
171342
- return cb(new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath}".`));
171343
- }
171344
- cb(null, relativePath);
171345
- });
171346
- }
171347
- function _getRelativePathSync(option, name, tmpDir) {
171348
- if (_isUndefined(name))
171349
- return;
171350
- const resolvedPath = _resolvePathSync(name, tmpDir);
171351
- const relativePath = path.relative(tmpDir, resolvedPath);
171352
- if (!resolvedPath.startsWith(tmpDir)) {
171353
- throw new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath}".`);
171354
- }
171355
- return relativePath;
171356
- }
171357
- function _assertAndSanitizeOptions(options, cb) {
171358
- _getTmpDir(options, function(err, tmpDir) {
171359
- if (err)
171360
- return cb(err);
171361
- options.tmpdir = tmpDir;
171362
- try {
171363
- _assertOptionsBase(options, tmpDir);
171364
- } catch (err) {
171365
- return cb(err);
171366
- }
171367
- _getRelativePath("dir", options.dir, tmpDir, function(err, dir) {
171368
- if (err)
171369
- return cb(err);
171370
- options.dir = _isUndefined(dir) ? "" : dir;
171371
- _getRelativePath("template", options.template, tmpDir, function(err, template) {
171372
- if (err)
171373
- return cb(err);
171374
- options.template = template;
171375
- cb(null, options);
171376
- });
171377
- });
171378
- });
171379
- }
171380
- function _assertAndSanitizeOptionsSync(options) {
171381
- const tmpDir = options.tmpdir = _getTmpDirSync(options);
171382
- _assertOptionsBase(options, tmpDir);
171383
- const dir = _getRelativePathSync("dir", options.dir, tmpDir);
171384
- options.dir = _isUndefined(dir) ? "" : dir;
171385
- options.template = _getRelativePathSync("template", options.template, tmpDir);
171386
- return options;
171387
- }
171388
- function _isEBADF(error) {
171389
- return _isExpectedError(error, -EBADF, "EBADF");
171390
- }
171391
- function _isENOENT(error) {
171392
- return _isExpectedError(error, -ENOENT, "ENOENT");
171393
- }
171394
- function _isExpectedError(error, errno, code) {
171395
- return IS_WIN32 ? error.code === code : error.code === code && error.errno === errno;
171396
- }
171397
- function setGracefulCleanup() {
171398
- _gracefulCleanup = true;
171399
- }
171400
- function _getTmpDir(options, cb) {
171401
- return fs.realpath(options && options.tmpdir || os.tmpdir(), cb);
171402
- }
171403
- function _getTmpDirSync(options) {
171404
- return fs.realpathSync(options && options.tmpdir || os.tmpdir());
171405
- }
171406
- process.addListener(EXIT, _garbageCollector);
171407
- Object.defineProperty(exports, "tmpdir", {
171408
- enumerable: true,
171409
- configurable: false,
171410
- get: function() {
171411
- return _getTmpDirSync();
171412
- }
171413
- });
171414
- exports.dir = dir;
171415
- exports.dirSync = dirSync;
171416
- exports.file = file;
171417
- exports.fileSync = fileSync;
171418
- exports.tmpName = tmpName;
171419
- exports.tmpNameSync = tmpNameSync;
171420
- exports.setGracefulCleanup = setGracefulCleanup;
171421
- });
171422
-
171423
171423
  // ../../node_modules/@seald-io/nedb/lib/utils.js
171424
171424
  var require_utils11 = __commonJS(function(exports, module) {
171425
171425
  var uniq = (array, iteratee) => {
@@ -258239,6 +258239,150 @@ function asset(name) {
258239
258239
  // ../functions-compiler/src/esbuild/private-data-sources-virtual.ts
258240
258240
  import path19 from "node:path";
258241
258241
 
258242
+ // ../functions-compiler/src/error-records.ts
258243
+ var FEED_CONTEXT_HEADER = "x-b44-feed-context";
258244
+ var ERROR_RECORD_LIMITS = {
258245
+ bodyBytes: 2048,
258246
+ bodyDeadlineMs: 50,
258247
+ nameChars: 64,
258248
+ messageBytes: 500,
258249
+ stackBytes: 4096,
258250
+ minSecretChars: 8,
258251
+ loggedErrors: 8
258252
+ };
258253
+ var L2 = ERROR_RECORD_LIMITS;
258254
+ var ERROR_RECORDS_PATCH = [
258255
+ `const _b44ErrorStore = (request) => request.headers.has(${JSON.stringify(FEED_CONTEXT_HEADER)}) ? { errorRecord: { logged: [] } } : {};`,
258256
+ "const _b44NoteError = (a) => {",
258257
+ " const c = _b44Context();",
258258
+ " if (!c || !c.errorRecord) return;",
258259
+ " for (const x of a) {",
258260
+ " if (!(x instanceof Error)) continue;",
258261
+ " const r = (k) => { try { const v = x[k]; return typeof v === 'string' ? v : undefined; } catch (e) { return undefined; } };",
258262
+ " const logged = c.errorRecord.logged;",
258263
+ " logged.push({ name: r('name'), message: r('message'), stack: r('stack') });",
258264
+ ` if (logged.length > ${L2.loggedErrors}) logged.shift();`,
258265
+ " }",
258266
+ "};",
258267
+ "for (const _l of ['log', 'info', 'warn', 'error', 'debug']) { const _f = console[_l]; console[_l] = (...a) => { try { _b44NoteError(a); } catch (e) {} return _f(...a); }; }",
258268
+ "const _b44ReadJson = async (res) => {",
258269
+ " if (!res.body) return undefined;",
258270
+ " const reader = res.body.getReader();",
258271
+ " const chunks = [];",
258272
+ " let size = 0;",
258273
+ " let timer;",
258274
+ ` const deadline = new Promise((r) => { timer = setTimeout(() => r(null), ${L2.bodyDeadlineMs}); });`,
258275
+ " try {",
258276
+ " for (;;) {",
258277
+ " const step = await Promise.race([reader.read(), deadline]);",
258278
+ " if (step === null) return undefined;",
258279
+ " if (step.done) break;",
258280
+ " size += step.value.byteLength;",
258281
+ ` if (size > ${L2.bodyBytes}) return undefined;`,
258282
+ " chunks.push(step.value);",
258283
+ " }",
258284
+ " } finally {",
258285
+ " clearTimeout(timer);",
258286
+ " try { reader.cancel().catch(() => {}); } catch (e) {}",
258287
+ " }",
258288
+ " const buf = new Uint8Array(size);",
258289
+ " let o = 0;",
258290
+ " for (const ch of chunks) { buf.set(ch, o); o += ch.byteLength; }",
258291
+ " try { return JSON.parse(new TextDecoder().decode(buf)); } catch (e) { return undefined; }",
258292
+ "};",
258293
+ "const _b44HasString = (v, s, d = 0) => {",
258294
+ " if (v === s) return true;",
258295
+ " if (d > 16 || !v || typeof v !== 'object') return false;",
258296
+ " for (const k of Object.keys(v)) if (_b44HasString(v[k], s, d + 1)) return true;",
258297
+ " return false;",
258298
+ "};",
258299
+ "const _b44BodyMessage = (b) => {",
258300
+ " if (!b || typeof b !== 'object' || Array.isArray(b)) return undefined;",
258301
+ " const s = (v) => (typeof v === 'string' && v.trim() !== '' ? v : undefined);",
258302
+ " const skipError = Object.prototype.hasOwnProperty.call(b, 'details') && b.error === 'Internal server error';",
258303
+ " const nested = b.error && typeof b.error === 'object' ? b.error.message : undefined;",
258304
+ " return (skipError ? undefined : s(b.error)) ?? s(b.message) ?? s(b.detail) ?? s(b.details) ?? s(nested);",
258305
+ "};",
258306
+ "const _b44SecretValues = (c) => {",
258307
+ " const out = new Set();",
258308
+ " let budget = 10000;",
258309
+ " const add = (v, d) => {",
258310
+ " if (--budget < 0) return;",
258311
+ " if (typeof v === 'string') {",
258312
+ ` if (v.length >= ${L2.minSecretChars}) out.add(v);`,
258313
+ " const t = v.trimStart();",
258314
+ " if (d < 2 && (t[0] === '{' || t[0] === '[')) { try { add(JSON.parse(v), d + 1); } catch (e) {} }",
258315
+ " } else if (d > 0 && d < 16 && v && typeof v === 'object') {",
258316
+ " for (const k of Object.keys(v)) add(v[k], d + 1);",
258317
+ " }",
258318
+ " };",
258319
+ " for (const src of [c.secrets, c.workerEnv]) {",
258320
+ " if (!src || typeof src !== 'object') continue;",
258321
+ " for (const k of Object.keys(src)) { try { add(src[k], 0); } catch (e) {} }",
258322
+ " }",
258323
+ " return [...out].sort((x, y) => y.length - x.length);",
258324
+ "};",
258325
+ "const _b44Scrub = (s, secrets) => { let out = s; for (const v of secrets) if (out.includes(v)) out = out.split(v).join('[redacted]'); return out; };",
258326
+ "const _b44Well = (s) => (typeof s.toWellFormed === 'function' ? s.toWellFormed() : s);",
258327
+ "const _b44Bytes = (s) => new TextEncoder().encode(s).length;",
258328
+ "const _b44CutBytes = (s, max) => {",
258329
+ " if (_b44Bytes(s) <= max) return s;",
258330
+ " let n = 0;",
258331
+ " let out = '';",
258332
+ " for (const ch of s) {",
258333
+ " const cp = ch.codePointAt(0);",
258334
+ " const b = cp < 0x80 ? 1 : cp < 0x800 ? 2 : cp < 0x10000 ? 3 : 4;",
258335
+ " if (n + b > max) break;",
258336
+ " n += b;",
258337
+ " out += ch;",
258338
+ " }",
258339
+ " return out;",
258340
+ "};",
258341
+ "const _b44CutLines = (s, max) => {",
258342
+ " if (_b44Bytes(s) <= max) return s;",
258343
+ " let n = 0;",
258344
+ " let out = '';",
258345
+ " for (const line of s.split('\\n')) {",
258346
+ " const b = _b44Bytes(line) + (out ? 1 : 0);",
258347
+ " if (n + b > max) break;",
258348
+ " out += (out ? '\\n' : '') + line;",
258349
+ " n += b;",
258350
+ " }",
258351
+ " return out;",
258352
+ "};",
258353
+ "const _b44WriteErrorRecord = async (c, status, copy, logged) => {",
258354
+ " try {",
258355
+ " const body = await _b44ReadJson(copy);",
258356
+ " const usable = logged.filter((e) => e.message);",
258357
+ " let chosen;",
258358
+ " if (body !== undefined) {",
258359
+ " for (let i = usable.length - 1; i >= 0; i--) if (_b44HasString(body, usable[i].message)) { chosen = usable[i]; break; }",
258360
+ " }",
258361
+ " let message = chosen ? chosen.message : _b44BodyMessage(body);",
258362
+ " if (message === undefined && usable.length > 0) { chosen = usable[usable.length - 1]; message = chosen.message; }",
258363
+ " if (message === undefined) return;",
258364
+ " const secrets = _b44SecretValues(c);",
258365
+ " const clean = (s) => _b44Well(_b44Scrub(s, secrets));",
258366
+ " const rec = { v: 1, kind: 'response', status };",
258367
+ ` const name = chosen && chosen.name ? Array.from(clean(chosen.name)).slice(0, ${L2.nameChars}).join('') : '';`,
258368
+ " if (name) rec.name = name;",
258369
+ ` rec.message = _b44CutBytes(clean(message), ${L2.messageBytes});`,
258370
+ ` const stack = chosen && chosen.stack ? _b44CutLines(clean(chosen.stack), ${L2.stackBytes}) : '';`,
258371
+ " if (stack) rec.stack = stack;",
258372
+ " console.error({ _b44_error: rec });",
258373
+ " } catch (e) {}",
258374
+ "};",
258375
+ "const _b44RecordError = (res) => {",
258376
+ " try {",
258377
+ " const c = _b44Context();",
258378
+ " if (!c || !c.errorRecord || !c.waitUntil || !(res instanceof Response) || !(res.status >= 500)) return res;",
258379
+ " c.waitUntil(_b44WriteErrorRecord(c, res.status, res.clone(), c.errorRecord.logged.slice()));",
258380
+ " } catch (e) {}",
258381
+ " return res;",
258382
+ "};"
258383
+ ].join(`
258384
+ `);
258385
+
258242
258386
  // ../functions-compiler/src/errors.ts
258243
258387
  class DenoCompatError extends Error {
258244
258388
  file;
@@ -258333,7 +258477,7 @@ var TELEMETRY_PATCH = [
258333
258477
  var TELEMETRY_STORE_FIELDS = "reqId: crypto.randomUUID(), respondedAt: null, inflight: new Map(), inflightTotal: 0, hadRejection: false, hadNonOk: false, logBudget: 5";
258334
258478
 
258335
258479
  // ../functions-compiler/src/version.ts
258336
- var COMPILER_VERSION = "0.1.9";
258480
+ var COMPILER_VERSION = "0.2.0";
258337
258481
 
258338
258482
  // ../functions-compiler/src/worker-entry.ts
258339
258483
  function denoShimSource() {
@@ -258435,13 +258579,14 @@ var ACTIVATION_TAKE = ` const _b44Taken = takeActivationChallenge(request); r
258435
258579
  function activationGuard(runtimeSecrets) {
258436
258580
  return (expr) => runtimeSecrets ? `withoutActivationHeaders(${expr}, _b44Activation)` : expr;
258437
258581
  }
258582
+ var HANDLER_CALL = "_b44RecordError(await handler(request, info))";
258438
258583
  function activationImport(runtimeSecrets) {
258439
258584
  return runtimeSecrets ? `
258440
258585
  import { ensureActivation, takeActivationChallenge, withoutActivationHeaders } from "./${ACTIVATION_FILENAME}";` : "";
258441
258586
  }
258442
258587
  function buildEntrySource(userEntry, telemetry, runtimeSecrets = false) {
258443
258588
  const userImport = `./${userEntry.replace(/^\.\//, "")}`;
258444
- const handlerExpr = telemetry ? "_b44AttachTelemetry(await handler(request, info))" : runtimeSecrets ? "await handler(request, info)" : "handler(request, info)";
258589
+ const handlerExpr = telemetry ? `_b44AttachTelemetry(${HANDLER_CALL})` : HANDLER_CALL;
258445
258590
  const guard = activationGuard(runtimeSecrets);
258446
258591
  const returnExpr = guard(handlerExpr);
258447
258592
  return `// Auto-generated by the base44 bundler. Do not edit.
@@ -258450,6 +258595,7 @@ import { currentWorkerRuntimeContext as _b44Context, runWithWorkerEnvironment as
258450
258595
  import { getRegisteredHandler, installStaticEgressFetch } from "./${SHIM_FILENAME}";${activationImport(runtimeSecrets)}
258451
258596
 
258452
258597
  ${consolePatch(runtimeSecrets)}
258598
+ ${ERROR_RECORDS_PATCH}
258453
258599
  // Static egress reads workerEnv from the active request store. Install it
258454
258600
  // before telemetry so telemetry remains the outermost fetch wrapper.
258455
258601
  installStaticEgressFetch();
@@ -258459,7 +258605,7 @@ let _b44Init = null;
258459
258605
  export default {
258460
258606
  async fetch(request, env, ctx) {
258461
258607
  ${runtimeSecrets ? ACTIVATION_TAKE : ""} const _b44Env = (request.headers.get('base44-functions-version') ?? '') === 'prod' ? 'prod' : 'preview';
258462
- return _b44Run({ env: _b44Env, secrets: ${runtimeSecrets ? "process.env" : "env"}, workerEnv: env, waitUntil: (p) => ctx.waitUntil(p)${telemetry ? `, ${TELEMETRY_STORE_FIELDS}` : ""} }, async () => {
258608
+ return _b44Run({ env: _b44Env, secrets: ${runtimeSecrets ? "process.env" : "env"}, workerEnv: env, waitUntil: (p) => ctx.waitUntil(p), ..._b44ErrorStore(request)${telemetry ? `, ${TELEMETRY_STORE_FIELDS}` : ""} }, async () => {
258463
258609
  ${runtimeSecrets ? ACTIVATION_GATE : ""} if (!_b44Init) _b44Init = import(${JSON.stringify(userImport)}).catch(e => { _b44Init = null; throw e; });
258464
258610
  const _b44Mod = await _b44Init;
258465
258611
  // Deno.serve capture wins (legacy contract, zero behavior change);
@@ -258494,7 +258640,7 @@ registerLazy(${JSON.stringify(functionName)}, () => import(${JSON.stringify(user
258494
258640
  function buildAppEntrySource(functionModules, telemetry, runtimeSecrets = false) {
258495
258641
  const moduleImports = functionModules.map((file) => `import "./${file}";`).join(`
258496
258642
  `);
258497
- const handlerExpr = `_b44AttachInvocationLogs(${telemetry ? "_b44AttachTelemetry(await handler(request, info))" : "await handler(request, info)"})`;
258643
+ const handlerExpr = `_b44AttachInvocationLogs(${telemetry ? `_b44AttachTelemetry(${HANDLER_CALL})` : HANDLER_CALL})`;
258498
258644
  const guard = activationGuard(runtimeSecrets);
258499
258645
  const returnExpr = guard(handlerExpr);
258500
258646
  return `// Auto-generated by the base44 bundler. Do not edit.
@@ -258505,6 +258651,7 @@ ${moduleImports}
258505
258651
 
258506
258652
  ${consolePatch(runtimeSecrets)}
258507
258653
  ${INVOCATION_LOGS_PATCH}
258654
+ ${ERROR_RECORDS_PATCH}
258508
258655
  // Static egress reads workerEnv from the active request store. Install it
258509
258656
  // before telemetry so telemetry remains the outermost fetch wrapper.
258510
258657
  installStaticEgressFetch();
@@ -258514,7 +258661,7 @@ export default {
258514
258661
  async fetch(request, env, ctx) {
258515
258662
  ${runtimeSecrets ? ACTIVATION_TAKE : ""} const _b44Env = (request.headers.get('base44-functions-version') ?? '') === 'prod' ? 'prod' : 'preview';
258516
258663
  const functionName = request.headers.get("Base44-Function-Name");
258517
- return _b44Run({ env: _b44Env, fn: functionName ?? '', secrets: ${runtimeSecrets ? "process.env" : "env"}, workerEnv: env, waitUntil: (p) => ctx.waitUntil(p), ..._b44CaptureStore(request)${telemetry ? `, ${TELEMETRY_STORE_FIELDS}` : ""} }, async () => {
258664
+ return _b44Run({ env: _b44Env, fn: functionName ?? '', secrets: ${runtimeSecrets ? "process.env" : "env"}, workerEnv: env, waitUntil: (p) => ctx.waitUntil(p), ..._b44CaptureStore(request), ..._b44ErrorStore(request)${telemetry ? `, ${TELEMETRY_STORE_FIELDS}` : ""} }, async () => {
258518
258665
  ${runtimeSecrets ? ACTIVATION_GATE : ""} // Each early return below logs through the patch first: per-function log
258519
258666
  // queries on per-app scripts keep only stamped lines, so a bare return
258520
258667
  // would leave the failing invocation with no trace in its own logs.
@@ -262877,25 +263024,30 @@ var pipelineType = ZodPipeline.create;
262877
263024
  var fileMapSchema = recordType(stringType().min(1), stringType()).refine((files) => Object.keys(files).length > 0, {
262878
263025
  message: "must contain at least one file"
262879
263026
  });
263027
+ var entryPathSchema = stringType().min(1).max(200);
262880
263028
  var bundleRequestSchema = objectType({
262881
263029
  entry: stringType().min(1),
262882
263030
  files: fileMapSchema,
263031
+ entryPath: entryPathSchema.optional(),
262883
263032
  postResponseTelemetry: booleanType().optional(),
262884
- runtimeSecrets: booleanType().optional()
263033
+ runtimeSecrets: booleanType().optional(),
263034
+ sourceMap: booleanType().optional()
262885
263035
  }).refine((body) => (body.entry in body.files), {
262886
263036
  message: "`entry` must be a key in `files`"
262887
263037
  });
262888
263038
  var appFunctionSchema = objectType({
262889
263039
  name: stringType().min(1),
262890
263040
  entry: stringType().min(1),
262891
- files: fileMapSchema
263041
+ files: fileMapSchema,
263042
+ entryPath: entryPathSchema.optional()
262892
263043
  }).refine((fn) => (fn.entry in fn.files), {
262893
263044
  message: "`entry` must be a key in `files`"
262894
263045
  });
262895
263046
  var bundleAppRequestSchema = objectType({
262896
263047
  functions: arrayType(appFunctionSchema).min(1),
262897
263048
  postResponseTelemetry: booleanType().optional(),
262898
- runtimeSecrets: booleanType().optional()
263049
+ runtimeSecrets: booleanType().optional(),
263050
+ sourceMap: booleanType().optional()
262899
263051
  }).refine((body) => new Set(body.functions.map((fn) => fn.name)).size === body.functions.length, { message: "function names must be unique" });
262900
263052
  var ACTIVATION_MODE = "pull";
262901
263053
 
@@ -263460,7 +263612,8 @@ function wsNativeVirtualPlugin() {
263460
263612
  }
263461
263613
 
263462
263614
  // ../functions-compiler/src/deno-bundle.ts
263463
- async function bundleToModule(prepared, nodeModulesDir = "none") {
263615
+ var MAIN_MODULE = "_bundled.mjs";
263616
+ async function bundleToModule(prepared, nodeModulesDir = "none", sourceMap = false) {
263464
263617
  const dir = await mkdtemp(path21.join(tmpdir2(), "b44-bundle-"));
263465
263618
  try {
263466
263619
  await writeFile2(path21.join(dir, "deno.json"), JSON.stringify({ nodeModulesDir }));
@@ -263479,7 +263632,7 @@ async function bundleToModule(prepared, nodeModulesDir = "none") {
263479
263632
  define: { __dirname: '"/"', __filename: '"/index.js"' },
263480
263633
  minify: true,
263481
263634
  ...prepared.banner ? { banner: { js: prepared.banner } } : {},
263482
- sourcemap: false,
263635
+ ...sourceMap ? { sourcemap: "linked", sourcesContent: false, outfile: MAIN_MODULE } : { sourcemap: false },
263483
263636
  logLevel: "silent",
263484
263637
  plugins: [
263485
263638
  wsNativeVirtualPlugin(),
@@ -263498,14 +263651,19 @@ async function bundleToModule(prepared, nodeModulesDir = "none") {
263498
263651
  throw e;
263499
263652
  }
263500
263653
  const outputs = result.outputFiles ?? [];
263501
- if (outputs.length !== 1) {
263502
- throw new Error(`expected single-module output, got ${outputs.length} file(s)`);
263654
+ const warnings = result.warnings.map((w) => w.text);
263655
+ if (!sourceMap) {
263656
+ if (outputs.length !== 1) {
263657
+ throw new Error(`expected single-module output, got ${outputs.length} file(s)`);
263658
+ }
263659
+ return { ok: true, module: outputs[0].text, warnings };
263503
263660
  }
263504
- return {
263505
- ok: true,
263506
- module: outputs[0].text,
263507
- warnings: result.warnings.map((w) => w.text)
263508
- };
263661
+ const module = outputs.find((o) => o.path.endsWith(".mjs"));
263662
+ const map = outputs.find((o) => o.path.endsWith(".map"));
263663
+ if (outputs.length !== 2 || !module || !map) {
263664
+ throw new Error(`expected a module and its source map, got ${outputs.map((o) => path21.basename(o.path)).join(", ") || "no files"}`);
263665
+ }
263666
+ return { ok: true, module: module.text, map: map.text, warnings };
263509
263667
  } finally {
263510
263668
  await rm2(dir, { recursive: true, force: true });
263511
263669
  }
@@ -263551,6 +263709,36 @@ function relativizeFile(file, dir) {
263551
263709
  return file.startsWith(prefix) ? file.slice(prefix.length) : file;
263552
263710
  }
263553
263711
 
263712
+ // ../functions-compiler/src/source-map.ts
263713
+ var INTERNAL_SOURCE_PREFIX = "base44-internal:";
263714
+ var USER_PREFIX = `${USER_NAMESPACE}:`;
263715
+ var APP_FUNCTION_PATH = /^fn_(\d+)\/(.*)$/;
263716
+ function functionSourceMap(raw, fn) {
263717
+ return rewriteSources(raw, (key) => appPath(fn, key));
263718
+ }
263719
+ function appSourceMap(raw, functions) {
263720
+ return rewriteSources(raw, (key) => {
263721
+ const match = key.match(APP_FUNCTION_PATH);
263722
+ const fn = match ? functions[Number(match[1])] : undefined;
263723
+ return fn && match ? appPath(fn, match[2]) : undefined;
263724
+ });
263725
+ }
263726
+ function appPath(fn, key) {
263727
+ if (!Object.hasOwn(fn.files, key))
263728
+ return;
263729
+ return key === fn.entry && fn.entryPath ? fn.entryPath : key;
263730
+ }
263731
+ function rewriteSources(raw, appPathOf) {
263732
+ const map = JSON.parse(raw);
263733
+ map.sources = (map.sources ?? []).map((source) => {
263734
+ const app = source.startsWith(USER_PREFIX) ? appPathOf(source.slice(USER_PREFIX.length)) : undefined;
263735
+ return app ?? `${INTERNAL_SOURCE_PREFIX}${source}`;
263736
+ });
263737
+ delete map.sourceRoot;
263738
+ delete map.sourcesContent;
263739
+ return JSON.stringify(map);
263740
+ }
263741
+
263554
263742
  // ../functions-compiler/src/tracing.ts
263555
263743
  var noopTracer = {
263556
263744
  withSpan: (_name, fn) => fn(),
@@ -263565,7 +263753,6 @@ function setSpanTags(tags) {
263565
263753
  }
263566
263754
 
263567
263755
  // ../functions-compiler/src/bundler.ts
263568
- var NORMALIZED_MAIN_MODULE = "_bundled.mjs";
263569
263756
  var MAX_PARALLEL_COMPILES = 4;
263570
263757
  async function bundle(req) {
263571
263758
  let actor;
@@ -263586,7 +263773,7 @@ async function bundle(req) {
263586
263773
  return {
263587
263774
  ok: true,
263588
263775
  module: outcome.module,
263589
- main_module: NORMALIZED_MAIN_MODULE,
263776
+ main_module: MAIN_MODULE,
263590
263777
  warnings: outcome.warnings,
263591
263778
  handler_name: actor.handlerName,
263592
263779
  do_class_name: actor.doClassName
@@ -263600,12 +263787,13 @@ async function bundle(req) {
263600
263787
  } catch (e) {
263601
263788
  return denoCompatErrorOrThrow(e);
263602
263789
  }
263603
- const outcome = await installAndCompile(prepared);
263790
+ const outcome = await installAndCompile(prepared, req.sourceMap ?? false);
263604
263791
  if (outcome.ok) {
263605
263792
  return {
263606
263793
  ok: true,
263607
263794
  module: outcome.module,
263608
- main_module: NORMALIZED_MAIN_MODULE,
263795
+ ...outcome.map ? { source_map: functionSourceMap(outcome.map, req) } : {},
263796
+ main_module: MAIN_MODULE,
263609
263797
  warnings: outcome.warnings,
263610
263798
  ...activationField(req.runtimeSecrets ?? false)
263611
263799
  };
@@ -263620,26 +263808,29 @@ async function bundleApp(req) {
263620
263808
  return result.ok ? { ...result, ...activationField(req.runtimeSecrets ?? false) } : result;
263621
263809
  }
263622
263810
  async function assembleApp(req) {
263623
- const telemetry = req.postResponseTelemetry ?? false;
263624
- const runtimeSecrets = req.runtimeSecrets ?? false;
263811
+ const build = {
263812
+ telemetry: req.postResponseTelemetry ?? false,
263813
+ runtimeSecrets: req.runtimeSecrets ?? false,
263814
+ sourceMap: req.sourceMap ?? false
263815
+ };
263625
263816
  const entries = req.functions.map((fn, index) => ({
263626
263817
  index,
263627
263818
  fn
263628
263819
  }));
263629
263820
  let combined;
263630
263821
  try {
263631
- combined = await compileApp(entries, telemetry, runtimeSecrets);
263822
+ combined = await compileApp(entries, build);
263632
263823
  } catch (e) {
263633
263824
  if (e instanceof DenoCompatError)
263634
- return bundleAppPerFunction(entries, telemetry, runtimeSecrets);
263825
+ return bundleAppPerFunction(entries, build);
263635
263826
  throw e;
263636
263827
  }
263637
263828
  if (combined.ok) {
263638
- return appResponse(combined.module, allOk(entries));
263829
+ return appResponse(combined, allOk(entries));
263639
263830
  }
263640
263831
  const { byIndex, unattributable } = classifyAppErrors(combined.errors);
263641
263832
  if (unattributable.length > 0) {
263642
- return bundleAppPerFunction(entries, telemetry, runtimeSecrets);
263833
+ return bundleAppPerFunction(entries, build);
263643
263834
  }
263644
263835
  const functions = entries.map((e) => byIndex.has(e.index) ? { name: e.fn.name, ok: false, errors: byIndex.get(e.index) } : { name: e.fn.name, ok: true });
263645
263836
  const survivors = entries.filter((e) => !byIndex.has(e.index));
@@ -263648,25 +263839,42 @@ async function assembleApp(req) {
263648
263839
  }
263649
263840
  let rebuilt;
263650
263841
  try {
263651
- rebuilt = await compileApp(survivors, telemetry, runtimeSecrets);
263842
+ rebuilt = await compileApp(survivors, build);
263652
263843
  } catch (e) {
263653
263844
  if (e instanceof DenoCompatError)
263654
- return bundleAppPerFunction(entries, telemetry, runtimeSecrets);
263845
+ return bundleAppPerFunction(entries, build);
263655
263846
  throw e;
263656
263847
  }
263657
263848
  if (rebuilt.ok)
263658
- return appResponse(rebuilt.module, functions);
263659
- return bundleAppPerFunction(entries, telemetry, runtimeSecrets);
263660
- }
263661
- async function compileApp(entries, telemetry = false, runtimeSecrets = false) {
263662
- const outcome = await installAndCompile(prepareApp(entries, telemetry, runtimeSecrets));
263663
- return outcome.ok ? { ok: true, module: outcome.module } : { ok: false, errors: outcome.errors };
263849
+ return appResponse(rebuilt, functions);
263850
+ return bundleAppPerFunction(entries, build);
263851
+ }
263852
+ async function compileApp(entries, build) {
263853
+ const outcome = await installAndCompile(prepareApp(entries, build.telemetry, build.runtimeSecrets), build.sourceMap);
263854
+ if (!outcome.ok)
263855
+ return { ok: false, errors: outcome.errors };
263856
+ if (!outcome.map)
263857
+ return { ok: true, module: outcome.module };
263858
+ const functions = [];
263859
+ for (const { index, fn } of entries)
263860
+ functions[index] = fn;
263861
+ return {
263862
+ ok: true,
263863
+ module: outcome.module,
263864
+ map: appSourceMap(outcome.map, functions)
263865
+ };
263664
263866
  }
263665
263867
  function allOk(entries) {
263666
263868
  return entries.map((e) => ({ name: e.fn.name, ok: true }));
263667
263869
  }
263668
- function appResponse(module, functions) {
263669
- return { ok: true, module, main_module: NORMALIZED_MAIN_MODULE, functions };
263870
+ function appResponse(built, functions) {
263871
+ return {
263872
+ ok: true,
263873
+ module: built.module,
263874
+ ...built.map ? { source_map: built.map } : {},
263875
+ main_module: MAIN_MODULE,
263876
+ functions
263877
+ };
263670
263878
  }
263671
263879
  function classifyAppErrors(errors) {
263672
263880
  const byIndex = new Map;
@@ -263684,19 +263892,19 @@ function classifyAppErrors(errors) {
263684
263892
  }
263685
263893
  return { byIndex, unattributable };
263686
263894
  }
263687
- async function bundleAppPerFunction(entries, telemetry = false, runtimeSecrets = false) {
263688
- const probes = await mapWithConcurrency(entries, MAX_PARALLEL_COMPILES, (entry) => probeFunction(entry, runtimeSecrets));
263895
+ async function bundleAppPerFunction(entries, build) {
263896
+ const probes = await mapWithConcurrency(entries, MAX_PARALLEL_COMPILES, (entry) => probeFunction(entry, build.runtimeSecrets));
263689
263897
  const functions = probes.map((p) => p.ok ? { name: p.entry.fn.name, ok: true } : { name: p.entry.fn.name, ok: false, errors: p.errors });
263690
263898
  const survivors = probes.filter((p) => p.ok).map((p) => p.entry);
263691
263899
  if (survivors.length === 0) {
263692
263900
  return { ok: false, module: null, functions };
263693
263901
  }
263694
- const combined = await compileApp(survivors, telemetry, runtimeSecrets);
263902
+ const combined = await compileApp(survivors, build);
263695
263903
  if (combined.ok)
263696
- return appResponse(combined.module, functions);
263697
- return assembleWithoutConflicting(survivors, functions, combined.errors, telemetry, runtimeSecrets);
263904
+ return appResponse(combined, functions);
263905
+ return assembleWithoutConflicting(survivors, functions, combined.errors, build);
263698
263906
  }
263699
- async function assembleWithoutConflicting(survivors, functions, errors, telemetry, runtimeSecrets = false) {
263907
+ async function assembleWithoutConflicting(survivors, functions, errors, build) {
263700
263908
  const failWith = (entries, items) => {
263701
263909
  for (const e of entries) {
263702
263910
  functions[e.index] = { name: e.fn.name, ok: false, errors: items };
@@ -263711,10 +263919,10 @@ async function assembleWithoutConflicting(survivors, functions, errors, telemetr
263711
263919
  const blamed = survivors.filter((e) => importsConflictingPackage(e, errors));
263712
263920
  const rest = survivors.filter((e) => !blamed.includes(e));
263713
263921
  if (blamed.length > 0 && rest.length > 0) {
263714
- const rebuilt = await compileApp(rest, telemetry, runtimeSecrets);
263922
+ const rebuilt = await compileApp(rest, build);
263715
263923
  if (rebuilt.ok) {
263716
263924
  failWith(blamed, conflictErrors);
263717
- return appResponse(rebuilt.module, functions);
263925
+ return appResponse(rebuilt, functions);
263718
263926
  }
263719
263927
  failWith(blamed, conflictErrors);
263720
263928
  failWith(rest, [conflictErrors[0], ...rebuilt.errors]);
@@ -263751,7 +263959,11 @@ function escapeRegExp(s) {
263751
263959
  async function probeFunction(entry, runtimeSecrets = false) {
263752
263960
  let outcome;
263753
263961
  try {
263754
- outcome = await compileApp([entry], false, runtimeSecrets);
263962
+ outcome = await compileApp([entry], {
263963
+ telemetry: false,
263964
+ runtimeSecrets,
263965
+ sourceMap: false
263966
+ });
263755
263967
  } catch (e) {
263756
263968
  if (e instanceof DenoCompatError) {
263757
263969
  return { ok: false, entry, errors: [denoCompatErrorItem(e)] };
@@ -263781,20 +263993,25 @@ async function mapWithConcurrency(items, limit, fn) {
263781
263993
  return results;
263782
263994
  }
263783
263995
  var NODE_MODULES_FALLBACK = /ERR_MODULE_NOT_FOUND|Could not find referrer npm package/;
263784
- async function installAndCompile(prepared) {
263996
+ async function installAndCompile(prepared, sourceMap = false) {
263785
263997
  return withSpan("base44.bundler.compile", async () => {
263786
263998
  let mode = "none";
263787
- let result = await bundleToModule(prepared, mode);
263999
+ let result = await bundleToModule(prepared, mode, sourceMap);
263788
264000
  if (!result.ok && result.errors.some((e) => NODE_MODULES_FALLBACK.test(e.message))) {
263789
264001
  mode = "auto";
263790
- result = await bundleToModule(prepared, mode);
264002
+ result = await bundleToModule(prepared, mode, sourceMap);
263791
264003
  }
263792
264004
  await setSpanTags({
263793
264005
  node_modules_mode: mode,
263794
264006
  outcome: result.ok ? "ok" : "failed"
263795
264007
  });
263796
264008
  if (result.ok) {
263797
- return { ok: true, module: result.module, warnings: result.warnings };
264009
+ return {
264010
+ ok: true,
264011
+ module: result.module,
264012
+ ...result.map ? { map: result.map } : {},
264013
+ warnings: result.warnings
264014
+ };
263798
264015
  }
263799
264016
  return { ok: false, stage: "esbuild", errors: result.errors };
263800
264017
  });
@@ -264787,6 +265004,418 @@ function getSecretsCommand() {
264787
265004
  return new Command2("secrets").description("Manage project secrets (environment variables)").addCommand(getSecretsListCommand()).addCommand(getSecretsSetCommand()).addCommand(getSecretsDeleteCommand());
264788
265005
  }
264789
265006
 
265007
+ // src/cli/commands/sessions/import.ts
265008
+ var import_ms2 = __toESM(require_ms(), 1);
265009
+
265010
+ // src/core/session-import/api.ts
265011
+ var MAX_SESSION_BYTES = 25 * 1024 * 1024;
265012
+ var SessionImportResponseSchema = object({
265013
+ branch_id: string2(),
265014
+ branch_name: string2(),
265015
+ source: _enum(["claude_code", "codex"]),
265016
+ turn_count: number2(),
265017
+ branch_url: string2(),
265018
+ continued: boolean2(),
265019
+ source_ref: string2()
265020
+ }).transform((data) => ({
265021
+ branchId: data.branch_id,
265022
+ branchName: data.branch_name,
265023
+ source: data.source,
265024
+ turnCount: data.turn_count,
265025
+ branchUrl: data.branch_url,
265026
+ continued: data.continued,
265027
+ sourceRef: data.source_ref
265028
+ }));
265029
+ var ErrorEnvelopeSchema = object({
265030
+ error: object({
265031
+ code: string2().optional(),
265032
+ details: object({ branch_name: string2(), branch_url: string2() }).partial().optional()
265033
+ })
265034
+ });
265035
+ var NETWORK_BLOCKED = "Your Claude cloud environment can't reach Base44 yet. In the environment's settings, open Network access, add `app.base44.com` to Allowed domains, and try again.";
265036
+ function messageFor(status, code, details, viaToken) {
265037
+ if (code === "branch_exists" && details?.branch_url) {
265038
+ return `Base Code already has ${details.branch_name ?? "a branch for this session"}. Open it: ${new URL(details.branch_url, getBase44ApiUrl())}`;
265039
+ }
265040
+ if (code === "repository_not_connected") {
265041
+ return "Connect this app to its GitHub repository in Base Code first.";
265042
+ }
265043
+ if (status === 401 && viaToken) {
265044
+ return "This import key expired or was already used. In Base Code, open Import session and copy a new prompt.";
265045
+ }
265046
+ if (status === 403) {
265047
+ return "You don't have edit access to this app, or this key was made for a different app.";
265048
+ }
265049
+ if (status === 404)
265050
+ return "Session import isn't available for this app.";
265051
+ if (status === 413)
265052
+ return "This session is over 25 MB and can't be imported.";
265053
+ if (code === "unsupported_file") {
265054
+ return "That file isn't a Claude Code or Codex session.";
265055
+ }
265056
+ if (code === "repository_mismatch") {
265057
+ return "This session is from a different repository than the app.";
265058
+ }
265059
+ if (status === 429)
265060
+ return "Too many imports. Wait a minute and try again.";
265061
+ return;
265062
+ }
265063
+ async function toImportError(error, viaToken) {
265064
+ if (!(error instanceof HTTPError)) {
265065
+ const reason = error instanceof Error ? error.message : String(error);
265066
+ return new ApiError(process.env.CLAUDE_CODE_REMOTE ? NETWORK_BLOCKED : `Couldn't reach Base44: ${reason}`, { hints: [] });
265067
+ }
265068
+ const { status } = error.response;
265069
+ const fallback = await ApiError.fromHttpError(error, "importing session");
265070
+ const envelope = ErrorEnvelopeSchema.safeParse(fallback.responseBody);
265071
+ const { code, details } = envelope.success ? envelope.data.error : {};
265072
+ const blocked = process.env.CLAUDE_CODE_REMOTE && status === 403 && typeof fallback.responseBody !== "object";
265073
+ const known = blocked ? NETWORK_BLOCKED : messageFor(status, code, details, viaToken);
265074
+ return new ApiError(known ?? fallback.message, {
265075
+ statusCode: status,
265076
+ requestUrl: error.request.url,
265077
+ requestMethod: error.request.method,
265078
+ requestId: fallback.requestId,
265079
+ hints: known ? [] : fallback.hints
265080
+ });
265081
+ }
265082
+ async function uploadSession(appId, content, { token, sourceBranch } = {}) {
265083
+ const form = new FormData;
265084
+ form.append("file", new Blob([content]), "session.jsonl");
265085
+ if (sourceBranch)
265086
+ form.append("source_branch", sourceBranch);
265087
+ let response;
265088
+ try {
265089
+ response = token ? await distribution_default.post(new URL(`/api/apps/${appId}/imported/session-imports`, getBase44ApiUrl()), {
265090
+ body: form,
265091
+ headers: {
265092
+ Authorization: `Bearer ${token}`,
265093
+ "User-Agent": "Base44 CLI"
265094
+ },
265095
+ timeout: 180000
265096
+ }) : await getAppClient().post("imported/session-imports", {
265097
+ body: form,
265098
+ timeout: 180000
265099
+ });
265100
+ } catch (error) {
265101
+ throw await toImportError(error, Boolean(token));
265102
+ }
265103
+ const result = SessionImportResponseSchema.safeParse(await response.json());
265104
+ if (!result.success) {
265105
+ throw new SchemaValidationError("Invalid session import response from server", result.error);
265106
+ }
265107
+ return result.data;
265108
+ }
265109
+
265110
+ // src/core/session-import/sessions.ts
265111
+ import { createReadStream as createReadStream3 } from "node:fs";
265112
+ import { realpath, rm as rm3, stat as stat4 } from "node:fs/promises";
265113
+ import { homedir as homedir4 } from "node:os";
265114
+ import { dirname as dirname23, join as join31 } from "node:path";
265115
+ import { createInterface as createInterface2 } from "node:readline";
265116
+
265117
+ // ../../node_modules/tmp-promise/index.js
265118
+ var { promisify: promisify12 } = __require("util");
265119
+ var tmp = require_tmp();
265120
+ var fileWithOptions = promisify12((options, cb) => tmp.file(options, (err, path, fd, cleanup) => err ? cb(err) : cb(undefined, { path, fd, cleanup: promisify12(cleanup) })));
265121
+ var $file = async (options) => fileWithOptions(options);
265122
+ var dirWithOptions = promisify12((options, cb) => tmp.dir(options, (err, path, cleanup) => err ? cb(err) : cb(undefined, { path, cleanup: promisify12(cleanup) })));
265123
+ var $dir = async (options) => dirWithOptions(options);
265124
+ var $tmpName = promisify12(tmp.tmpName);
265125
+
265126
+ // src/core/session-import/sessions.ts
265127
+ var claudeDir = () => process.env.CLAUDE_CONFIG_DIR || join31(homedir4(), ".claude");
265128
+ var codexDir = () => process.env.CODEX_HOME || join31(homedir4(), ".codex");
265129
+ async function scanLines(path, pick, maxLines = Number.POSITIVE_INFINITY) {
265130
+ const lines = createInterface2({ input: createReadStream3(path) });
265131
+ let count = 0;
265132
+ try {
265133
+ for await (const line of lines) {
265134
+ if (++count > maxLines)
265135
+ return;
265136
+ try {
265137
+ const found = pick(JSON.parse(line));
265138
+ if (found !== undefined)
265139
+ return found;
265140
+ } catch {}
265141
+ }
265142
+ } finally {
265143
+ lines.close();
265144
+ }
265145
+ return;
265146
+ }
265147
+ var asRecord = (value) => value && typeof value === "object" ? value : {};
265148
+ var codexCwd = (entry) => entry.type === "session_meta" ? String(asRecord(entry.payload).cwd ?? "") : undefined;
265149
+ async function newest(paths) {
265150
+ let best;
265151
+ for (const path of paths) {
265152
+ const { mtimeMs } = await stat4(path);
265153
+ if (!best || mtimeMs > best.mtime)
265154
+ best = { path, mtime: mtimeMs };
265155
+ }
265156
+ return best?.path;
265157
+ }
265158
+ async function sameDir(a, b) {
265159
+ if (a === b)
265160
+ return true;
265161
+ const [ra, rb] = await Promise.all([
265162
+ realpath(a).catch(() => a),
265163
+ realpath(b).catch(() => b)
265164
+ ]);
265165
+ return ra === rb;
265166
+ }
265167
+ var codexRollouts = () => globby("sessions/*/*/*/rollout-*.jsonl", {
265168
+ cwd: codexDir(),
265169
+ absolute: true
265170
+ });
265171
+ async function codexRolloutsIn(cwd) {
265172
+ const matches = [];
265173
+ for (const path of await codexRollouts()) {
265174
+ const recorded = await scanLines(path, codexCwd, 1);
265175
+ if (recorded && await sameDir(recorded, cwd))
265176
+ matches.push(path);
265177
+ }
265178
+ return matches;
265179
+ }
265180
+ async function findCurrentSession(cwd) {
265181
+ const claudeId = process.env.CLAUDE_CODE_SESSION_ID;
265182
+ if (claudeId) {
265183
+ const [path] = await globby(`projects/*/${claudeId}.jsonl`, {
265184
+ cwd: claudeDir(),
265185
+ absolute: true
265186
+ });
265187
+ return path;
265188
+ }
265189
+ const codexId = process.env.CODEX_THREAD_ID;
265190
+ if (codexId) {
265191
+ const rollouts = await codexRollouts();
265192
+ const rollout = rollouts.find((path) => path.endsWith(`-${codexId}.jsonl`));
265193
+ if (!rollout) {
265194
+ throw new InvalidInputError("Codex cloud sessions can't be imported yet. Run this from the Codex app or CLI on your computer.", { hints: [] });
265195
+ }
265196
+ return rollout;
265197
+ }
265198
+ return newest(await codexRolloutsIn(cwd));
265199
+ }
265200
+ function claudeUserText(entry) {
265201
+ if (entry.type !== "user" || entry.isMeta || entry.isSidechain)
265202
+ return;
265203
+ const content = asRecord(entry.message).content;
265204
+ return typeof content === "string" && !content.startsWith("<") ? content : undefined;
265205
+ }
265206
+ function codexUserText(entry) {
265207
+ const payload = asRecord(entry.payload);
265208
+ return entry.type === "event_msg" && payload.type === "user_message" ? String(payload.message ?? "") : undefined;
265209
+ }
265210
+ var PICKER_LIMIT = 20;
265211
+ async function listSessions(cwd) {
265212
+ const claudeFolder = cwd.replace(/[^a-zA-Z0-9]/g, "-");
265213
+ const claude = await globby(`projects/${claudeFolder}/*.jsonl`, {
265214
+ cwd: claudeDir(),
265215
+ absolute: true
265216
+ });
265217
+ const candidates = [
265218
+ ...claude.map((path) => ({ tool: "claude_code", path })),
265219
+ ...(await codexRolloutsIn(cwd)).map((path) => ({
265220
+ tool: "codex",
265221
+ path
265222
+ }))
265223
+ ];
265224
+ const dated = await Promise.all(candidates.map(async (c) => ({
265225
+ ...c,
265226
+ updatedAt: (await stat4(c.path)).mtime
265227
+ })));
265228
+ dated.sort((a, b) => b.updatedAt.getTime() - a.updatedAt.getTime());
265229
+ const sessions = [];
265230
+ for (const candidate of dated.slice(0, PICKER_LIMIT)) {
265231
+ const firstMessage = await scanLines(candidate.path, candidate.tool === "claude_code" ? claudeUserText : codexUserText);
265232
+ if (firstMessage)
265233
+ sessions.push({ ...candidate, firstMessage });
265234
+ }
265235
+ return sessions;
265236
+ }
265237
+ var SESSION_ID = /session_[A-Za-z0-9]+/;
265238
+ function parseSessionLink(link) {
265239
+ if (/cshk_/.test(link) || !SESSION_ID.test(link)) {
265240
+ throw new InvalidInputError(`That isn't a claude.ai session address. Copy it from your browser's address bar (not "Copy link").`, { hints: [] });
265241
+ }
265242
+ return link.match(SESSION_ID)[0];
265243
+ }
265244
+ var TELEPORT_PROMPT = "Reply with OK.";
265245
+ var TELEPORT_NOTE = "This session is being continued from another machine";
265246
+ function parseLine(line) {
265247
+ try {
265248
+ return asRecord(JSON.parse(line));
265249
+ } catch {
265250
+ return {};
265251
+ }
265252
+ }
265253
+ function stripTeleportExchange(content) {
265254
+ const lines = content.split(`
265255
+ `);
265256
+ const entries = lines.map(parseLine);
265257
+ const userText = (entry) => entry.type === "user" ? asRecord(entry.message).content : undefined;
265258
+ let end = lines.length;
265259
+ for (let i = lines.length - 1;i >= 0; i--) {
265260
+ if (userText(entries[i] ?? {}) === TELEPORT_PROMPT) {
265261
+ end = i;
265262
+ break;
265263
+ }
265264
+ }
265265
+ return lines.slice(0, end).filter((_, i) => {
265266
+ const entry = entries[i] ?? {};
265267
+ const text = userText(entry);
265268
+ const queued = entry.type === "queue-operation" && entry.content === TELEPORT_PROMPT;
265269
+ const note = typeof text === "string" && text.startsWith(TELEPORT_NOTE);
265270
+ return !queued && !note;
265271
+ }).join(`
265272
+ `);
265273
+ }
265274
+ var NEEDS_CLAUDE = "Claude Code must be installed and signed in to the same claude.ai account to import a claude.ai session.";
265275
+ async function teleportSession(sessionId, cwd) {
265276
+ const origin = await execa("git", ["remote", "get-url", "origin"], {
265277
+ cwd,
265278
+ reject: false
265279
+ });
265280
+ if (origin.exitCode !== 0 || !origin.stdout) {
265281
+ throw new InvalidInputError("Run this from a folder with the app's GitHub repository, so the session can be checked out.");
265282
+ }
265283
+ const tmp = await $dir({ unsafeCleanup: true });
265284
+ const repo = join31(tmp.path, "repo");
265285
+ let projectFolder;
265286
+ try {
265287
+ await execa("git", ["clone", "--quiet", origin.stdout, repo]);
265288
+ const repoReal = await realpath(repo);
265289
+ const startedAt = Date.now();
265290
+ const claudeBin = getTestOverrides()?.claudeBin ?? "claude";
265291
+ try {
265292
+ await execa(claudeBin, ["--teleport", sessionId, "-p", TELEPORT_PROMPT], {
265293
+ cwd: repo,
265294
+ stdin: "ignore"
265295
+ });
265296
+ } catch {
265297
+ throw new DependencyNotFoundError(NEEDS_CLAUDE, { hints: [] });
265298
+ }
265299
+ const fresh = [];
265300
+ for (const path of await globby("projects/*/*.jsonl", {
265301
+ cwd: claudeDir(),
265302
+ absolute: true
265303
+ })) {
265304
+ if ((await stat4(path)).mtimeMs < startedAt)
265305
+ continue;
265306
+ const sessionCwd = await scanLines(path, (entry) => typeof entry.cwd === "string" ? entry.cwd : undefined, 50);
265307
+ if (sessionCwd === repo || sessionCwd === repoReal)
265308
+ fresh.push(path);
265309
+ }
265310
+ const file = await newest(fresh);
265311
+ if (!file)
265312
+ throw new DependencyNotFoundError(NEEDS_CLAUDE, { hints: [] });
265313
+ projectFolder = dirname23(file);
265314
+ return stripTeleportExchange((await readFile(file)).toString("utf8"));
265315
+ } finally {
265316
+ if (projectFolder)
265317
+ await rm3(projectFolder, { recursive: true, force: true });
265318
+ await tmp.cleanup();
265319
+ }
265320
+ }
265321
+
265322
+ // src/cli/commands/sessions/import.ts
265323
+ var TOOL_LABELS = {
265324
+ claude_code: "Claude Code",
265325
+ codex: "Codex"
265326
+ };
265327
+ async function pickSession(cwd) {
265328
+ const sessions = await listSessions(cwd);
265329
+ if (sessions.length === 0) {
265330
+ throw new InvalidInputError("No Claude Code or Codex sessions found in this folder. Pass --file <path>.");
265331
+ }
265332
+ const choice = await Je({
265333
+ message: "Which session do you want to continue in Base Code?",
265334
+ options: sessions.map((session) => ({
265335
+ value: session.path,
265336
+ label: session.firstMessage.replace(/\s+/g, " ").slice(0, 70),
265337
+ hint: `${TOOL_LABELS[session.tool]}, ${import_ms2.default(Date.now() - session.updatedAt.getTime())} ago`
265338
+ }))
265339
+ });
265340
+ if (Ct(choice)) {
265341
+ Ne("Operation cancelled.");
265342
+ throw new CLIExitError(0);
265343
+ }
265344
+ return choice;
265345
+ }
265346
+ async function readSession(ctx, link, options) {
265347
+ const cwd = process.cwd();
265348
+ if (options.file)
265349
+ return readFile(options.file);
265350
+ if (link) {
265351
+ const sessionId = parseSessionLink(link);
265352
+ const content = await ctx.runTask("Downloading the claude.ai session", () => teleportSession(sessionId, cwd));
265353
+ return Buffer.from(content);
265354
+ }
265355
+ if (options.current) {
265356
+ const path = await findCurrentSession(cwd);
265357
+ if (!path) {
265358
+ throw new InvalidInputError("Couldn't find the current session. Run this from inside Claude Code or Codex, or pass --file <path>.", { hints: [] });
265359
+ }
265360
+ return readFile(path);
265361
+ }
265362
+ if (ctx.isNonInteractive || ctx.jsonMode) {
265363
+ throw new InvalidInputError("Choose a session: pass --current, a claude.ai session link, or --file <path>.");
265364
+ }
265365
+ return readFile(await pickSession(cwd));
265366
+ }
265367
+ async function importAction(ctx, link, options, command) {
265368
+ ctx.errorReporter.setContext({
265369
+ command: {
265370
+ name: "sessions import",
265371
+ args: link ? ["[not reported]"] : [],
265372
+ options: {
265373
+ ...command.opts(),
265374
+ ...options.token ? { token: "[not reported]" } : {}
265375
+ }
265376
+ }
265377
+ });
265378
+ const chosen = [link, options.current, options.file].filter(Boolean).length;
265379
+ if (chosen > 1) {
265380
+ throw new InvalidInputError("Pass only one of: a session link, --current, or --file.");
265381
+ }
265382
+ const appId = requireApp(ctx).id;
265383
+ const content = await readSession(ctx, link, options);
265384
+ if (content.length > MAX_SESSION_BYTES) {
265385
+ throw new InvalidInputError("This session is over 25 MB and can't be imported.", { hints: [] });
265386
+ }
265387
+ const git = link || options.file ? undefined : await readGitState(process.cwd());
265388
+ if (git?.unpushed && !options.skipPushCheck) {
265389
+ throw new InvalidInputError("Your changes aren't on GitHub yet. Ask the user whether to commit and push them (to a new branch if on main or master), then run this again. If they don't want to, run it again with --skip-push-check.", { hints: [] });
265390
+ }
265391
+ const note = git?.unpushed ? "Base Code started from what's on GitHub; your local changes aren't included." : undefined;
265392
+ if (!options.token)
265393
+ await ensureAuth(ctx);
265394
+ ctx.log.info("This uploads the full conversation to Base Code.");
265395
+ const imported = await ctx.runTask("Importing session", () => uploadSession(appId, content, {
265396
+ token: options.token,
265397
+ sourceBranch: git?.branch
265398
+ }));
265399
+ const url = `${getBase44ApiUrl()}${imported.branchUrl}`;
265400
+ return {
265401
+ outroMessage: [
265402
+ imported.continued ? `✓ Imported ${imported.turnCount} messages from ${TOOL_LABELS[imported.source]}. Continued on "${imported.branchName}".` : `✓ Imported ${imported.turnCount} messages from ${TOOL_LABELS[imported.source]} into branch "${imported.branchName}".`,
265403
+ ...note ? [note] : [],
265404
+ `Open it: ${url}`
265405
+ ].join(`
265406
+ `),
265407
+ stdout: ctx.jsonMode ? toJsonStdout({ ...imported, url, ...note ? { note } : {} }) : undefined
265408
+ };
265409
+ }
265410
+ function getSessionsImportCommand() {
265411
+ return new Base44Command("import", { requireAuth: false }).description("Continue a Claude Code or Codex session in Base Code").argument("[session-link]", "A claude.ai session address (https://claude.ai/code/session_…)").option("--current", "Import the session this command runs inside").option("--file <path>", "Import this session file as is").option("--skip-push-check", "Import even though local changes aren't on GitHub (they won't be included)").option("--token <key>", "One-time import key from Base Code (no login needed)").action(importAction);
265412
+ }
265413
+
265414
+ // src/cli/commands/sessions/index.ts
265415
+ function getSessionsCommand() {
265416
+ return new Command2("sessions").description("Move Claude Code and Codex sessions to Base Code").addCommand(getSessionsImportCommand());
265417
+ }
265418
+
264790
265419
  // src/cli/commands/site/deploy.ts
264791
265420
  import { resolve as resolve16 } from "node:path";
264792
265421
  async function deployAction2(ctx, options) {
@@ -265206,10 +265835,10 @@ function toPascalCase(name) {
265206
265835
  return name.split(/[-_\s]+/).map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join("");
265207
265836
  }
265208
265837
  // src/core/types/update-project.ts
265209
- import { join as join34 } from "node:path";
265838
+ import { join as join35 } from "node:path";
265210
265839
  var TYPES_INCLUDE_PATH = `${PROJECT_SUBDIR}/${TYPES_OUTPUT_SUBDIR}/*.d.ts`;
265211
265840
  async function updateProjectConfig(projectRoot) {
265212
- const tsconfigPath = join34(projectRoot, "tsconfig.json");
265841
+ const tsconfigPath = join35(projectRoot, "tsconfig.json");
265213
265842
  if (!await pathExists(tsconfigPath)) {
265214
265843
  return false;
265215
265844
  }
@@ -265690,7 +266319,7 @@ function getWorkspaceCommand() {
265690
266319
  // src/cli/dev/dev-server/main.ts
265691
266320
  var import_cors = __toESM(require_lib4(), 1);
265692
266321
  var import_express6 = __toESM(require_express(), 1);
265693
- import { dirname as dirname28, join as join39 } from "node:path";
266322
+ import { dirname as dirname29, join as join40 } from "node:path";
265694
266323
 
265695
266324
  // ../../node_modules/get-port/index.js
265696
266325
  import net from "node:net";
@@ -265809,18 +266438,9 @@ async function getPorts(options) {
265809
266438
  // src/cli/dev/dev-server/main.ts
265810
266439
  var import_http_proxy_middleware2 = __toESM(require_dist2(), 1);
265811
266440
 
265812
- // ../../node_modules/tmp-promise/index.js
265813
- var { promisify: promisify12 } = __require("util");
265814
- var tmp = require_tmp();
265815
- var fileWithOptions = promisify12((options, cb) => tmp.file(options, (err, path, fd, cleanup) => err ? cb(err) : cb(undefined, { path, fd, cleanup: promisify12(cleanup) })));
265816
- var $file = async (options) => fileWithOptions(options);
265817
- var dirWithOptions = promisify12((options, cb) => tmp.dir(options, (err, path, cleanup) => err ? cb(err) : cb(undefined, { path, cleanup: promisify12(cleanup) })));
265818
- var $dir = async (options) => dirWithOptions(options);
265819
- var $tmpName = promisify12(tmp.tmpName);
265820
-
265821
266441
  // src/cli/dev/dev-server/function-manager.ts
265822
266442
  import { spawn as spawn3 } from "node:child_process";
265823
- import { dirname as dirname25, join as join35 } from "node:path";
266443
+ import { dirname as dirname26, join as join36 } from "node:path";
265824
266444
  import { pathToFileURL as pathToFileURL6 } from "node:url";
265825
266445
 
265826
266446
  // src/cli/dev/dev-server/base-function-manager.ts
@@ -265925,7 +266545,7 @@ class FunctionManager extends BaseFunctionManager {
265925
266545
  }
265926
266546
  spawnFunction(func, port) {
265927
266547
  this.logger.log(`Spawning function "${func.name}" on port ${port}`);
265928
- const importMapPath = join35(dirname25(this.wrapperPath), "import-map.json");
266548
+ const importMapPath = join36(dirname26(this.wrapperPath), "import-map.json");
265929
266549
  const process2 = spawn3("deno", ["run", "--allow-all", "--import-map", importMapPath, this.wrapperPath], {
265930
266550
  env: {
265931
266551
  ...globalThis.process.env,
@@ -265998,8 +266618,8 @@ class FunctionManager extends BaseFunctionManager {
265998
266618
  // src/cli/dev/dev-server/function-bundler.ts
265999
266619
  import { mkdirSync as mkdirSync2, writeFileSync as writeFileSync2 } from "node:fs";
266000
266620
  import { isBuiltin as isBuiltin3 } from "node:module";
266001
- import { homedir as homedir4 } from "node:os";
266002
- import { join as join36 } from "node:path";
266621
+ import { homedir as homedir5 } from "node:os";
266622
+ import { join as join37 } from "node:path";
266003
266623
  import { pathToFileURL as pathToFileURL7 } from "node:url";
266004
266624
  var depsPromise;
266005
266625
  function loadDeps() {
@@ -266120,9 +266740,9 @@ export default {
266120
266740
  };
266121
266741
  `;
266122
266742
  function ensureBundlerConfig() {
266123
- const dir = join36(homedir4(), ".base44", "function-bundler");
266743
+ const dir = join37(homedir5(), ".base44", "function-bundler");
266124
266744
  mkdirSync2(dir, { recursive: true });
266125
- const configPath = join36(dir, "deno.json");
266745
+ const configPath = join37(dir, "deno.json");
266126
266746
  writeFileSync2(configPath, `${JSON.stringify({ nodeModulesDir: "auto" }, null, 2)}
266127
266747
  `);
266128
266748
  return configPath;
@@ -267659,11 +268279,11 @@ import { relative as relative11 } from "node:path";
267659
268279
  // ../../node_modules/chokidar/index.js
267660
268280
  import { EventEmitter as EventEmitter3 } from "node:events";
267661
268281
  import { stat as statcb, Stats } from "node:fs";
267662
- import { readdir as readdir3, stat as stat7 } from "node:fs/promises";
268282
+ import { readdir as readdir3, stat as stat8 } from "node:fs/promises";
267663
268283
  import * as sp3 from "node:path";
267664
268284
 
267665
268285
  // ../../node_modules/readdirp/index.js
267666
- import { lstat as lstat2, readdir as readdir2, realpath, stat as stat5 } from "node:fs/promises";
268286
+ import { lstat as lstat2, readdir as readdir2, realpath as realpath2, stat as stat6 } from "node:fs/promises";
267667
268287
  import { join as pjoin, relative as prelative, resolve as presolve, sep as psep } from "node:path";
267668
268288
  import { Readable as Readable6 } from "node:stream";
267669
268289
  var EntryTypes = {
@@ -267745,7 +268365,7 @@ class ReaddirpStream extends Readable6 {
267745
268365
  const { root, type } = opts;
267746
268366
  this._fileFilter = normalizeFilter(opts.fileFilter);
267747
268367
  this._directoryFilter = normalizeFilter(opts.directoryFilter);
267748
- const statMethod = opts.lstat ? lstat2 : stat5;
268368
+ const statMethod = opts.lstat ? lstat2 : stat6;
267749
268369
  if (wantBigintFsStats) {
267750
268370
  this._stat = (path) => statMethod(path, { bigint: true });
267751
268371
  } else {
@@ -267854,7 +268474,7 @@ class ReaddirpStream extends Readable6 {
267854
268474
  if (stats && stats.isSymbolicLink()) {
267855
268475
  const full = entry.fullPath;
267856
268476
  try {
267857
- const entryRealPath = await realpath(full);
268477
+ const entryRealPath = await realpath2(full);
267858
268478
  const entryRealPathStats = await lstat2(entryRealPath);
267859
268479
  if (entryRealPathStats.isFile()) {
267860
268480
  return "file";
@@ -267898,7 +268518,7 @@ function readdirp(root, options = {}) {
267898
268518
 
267899
268519
  // ../../node_modules/chokidar/handler.js
267900
268520
  import { watch as fs_watch, unwatchFile, watchFile } from "node:fs";
267901
- import { realpath as fsrealpath, lstat as lstat3, open as open2, stat as stat6 } from "node:fs/promises";
268521
+ import { realpath as fsrealpath, lstat as lstat3, open as open2, stat as stat7 } from "node:fs/promises";
267902
268522
  import { type as osType } from "node:os";
267903
268523
  import * as sp2 from "node:path";
267904
268524
  var STR_DATA = "data";
@@ -267924,7 +268544,7 @@ var EVENTS = {
267924
268544
  };
267925
268545
  var EV = EVENTS;
267926
268546
  var THROTTLE_MODE_WATCH = "watch";
267927
- var statMethods = { lstat: lstat3, stat: stat6 };
268547
+ var statMethods = { lstat: lstat3, stat: stat7 };
267928
268548
  var KEY_LISTENERS = "listeners";
267929
268549
  var KEY_ERR = "errHandlers";
267930
268550
  var KEY_RAW = "rawEmitters";
@@ -268395,7 +269015,7 @@ class NodeFsHandler {
268395
269015
  return;
268396
269016
  if (!newStats || newStats.mtimeMs === 0) {
268397
269017
  try {
268398
- const newStats = await stat6(file);
269018
+ const newStats = await stat7(file);
268399
269019
  if (this.fsw.closed)
268400
269020
  return;
268401
269021
  const at = newStats.atimeMs;
@@ -269067,7 +269687,7 @@ class FSWatcher extends EventEmitter3 {
269067
269687
  const fullPath = opts.cwd ? sp3.join(opts.cwd, path) : path;
269068
269688
  let stats;
269069
269689
  try {
269070
- stats = await stat7(fullPath);
269690
+ stats = await stat8(fullPath);
269071
269691
  } catch (err) {}
269072
269692
  if (!stats || this.closed)
269073
269693
  return;
@@ -269451,8 +270071,8 @@ async function createDevServer(options) {
269451
270071
  broadcastEntityEvent(io, appId, entityName, event);
269452
270072
  };
269453
270073
  const base44ConfigWatcher = new WatchBase44({
269454
- functions: join39(dirname28(project.configPath), project.functionsDir),
269455
- entities: join39(dirname28(project.configPath), project.entitiesDir)
270074
+ functions: join40(dirname29(project.configPath), project.functionsDir),
270075
+ entities: join40(dirname29(project.configPath), project.entitiesDir)
269456
270076
  }, devLogger);
269457
270077
  base44ConfigWatcher.on("change", async (name) => {
269458
270078
  try {
@@ -269655,7 +270275,7 @@ function readExecEnvTarget(env = process.env) {
269655
270275
  // src/core/exec/run-script.ts
269656
270276
  import { spawn as spawn4 } from "node:child_process";
269657
270277
  import { readFileSync as readFileSync4, writeFileSync as writeFileSync3 } from "node:fs";
269658
- import { join as join40 } from "node:path";
270278
+ import { join as join41 } from "node:path";
269659
270279
  var SDK_SPECIFIER = '"npm:@base44/sdk"';
269660
270280
  function wrapperSource(sdkVersion) {
269661
270281
  const source = readFileSync4(getExecWrapperPath(), "utf-8");
@@ -269691,7 +270311,7 @@ async function runScript(options) {
269691
270311
  writeFileSync3(tempWrapper.path, wrapperSource(sdkVersion), "utf-8");
269692
270312
  const configDir = await $dir({ unsafeCleanup: true });
269693
270313
  cleanupFns.push(configDir.cleanup);
269694
- const configPath = join40(configDir.path, "deno.json");
270314
+ const configPath = join41(configDir.path, "deno.json");
269695
270315
  writeFileSync3(configPath, JSON.stringify(DENO_CONFIG), "utf-8");
269696
270316
  try {
269697
270317
  const exitCode = await new Promise((resolvePromise) => {
@@ -269811,402 +270431,6 @@ Examples:
269811
270431
  $ echo "const all = await base44.entities.Task.list()" | base44 exec --privileged`).action(execAction);
269812
270432
  }
269813
270433
 
269814
- // src/cli/commands/import.ts
269815
- var import_ms2 = __toESM(require_ms(), 1);
269816
-
269817
- // src/core/session-import/api.ts
269818
- var MAX_SESSION_BYTES = 25 * 1024 * 1024;
269819
- var SessionImportResponseSchema = object({
269820
- branch_id: string2(),
269821
- branch_name: string2(),
269822
- source: _enum(["claude_code", "codex"]),
269823
- turn_count: number2(),
269824
- branch_url: string2(),
269825
- continued: boolean2(),
269826
- source_ref: string2()
269827
- }).transform((data) => ({
269828
- branchId: data.branch_id,
269829
- branchName: data.branch_name,
269830
- source: data.source,
269831
- turnCount: data.turn_count,
269832
- branchUrl: data.branch_url,
269833
- continued: data.continued,
269834
- sourceRef: data.source_ref
269835
- }));
269836
- var ErrorEnvelopeSchema = object({
269837
- error: object({
269838
- code: string2().optional(),
269839
- details: object({ branch_name: string2(), branch_url: string2() }).partial().optional()
269840
- })
269841
- });
269842
- var NETWORK_BLOCKED = "Your Claude cloud environment can't reach Base44 yet. In the environment's settings, open Network access, add `app.base44.com` to Allowed domains, and try again.";
269843
- function messageFor(status, code, details, viaToken) {
269844
- if (code === "branch_exists" && details?.branch_url) {
269845
- return `Base Code already has ${details.branch_name ?? "a branch for this session"}. Open it: ${new URL(details.branch_url, getBase44ApiUrl())}`;
269846
- }
269847
- if (code === "repository_not_connected") {
269848
- return "Connect this app to its GitHub repository in Base Code first.";
269849
- }
269850
- if (status === 401 && viaToken) {
269851
- return "This import key expired or was already used. In Base Code, open Import session and copy a new prompt.";
269852
- }
269853
- if (status === 403) {
269854
- return "You don't have edit access to this app, or this key was made for a different app.";
269855
- }
269856
- if (status === 404)
269857
- return "Session import isn't available for this app.";
269858
- if (status === 413)
269859
- return "This session is over 25 MB and can't be imported.";
269860
- if (code === "unsupported_file") {
269861
- return "That file isn't a Claude Code or Codex session.";
269862
- }
269863
- if (code === "repository_mismatch") {
269864
- return "This session is from a different repository than the app.";
269865
- }
269866
- if (status === 429)
269867
- return "Too many imports. Wait a minute and try again.";
269868
- return;
269869
- }
269870
- async function toImportError(error, viaToken) {
269871
- if (!(error instanceof HTTPError)) {
269872
- const reason = error instanceof Error ? error.message : String(error);
269873
- return new ApiError(process.env.CLAUDE_CODE_REMOTE ? NETWORK_BLOCKED : `Couldn't reach Base44: ${reason}`, { hints: [] });
269874
- }
269875
- const { status } = error.response;
269876
- const fallback = await ApiError.fromHttpError(error, "importing session");
269877
- const envelope = ErrorEnvelopeSchema.safeParse(fallback.responseBody);
269878
- const { code, details } = envelope.success ? envelope.data.error : {};
269879
- const blocked = process.env.CLAUDE_CODE_REMOTE && status === 403 && typeof fallback.responseBody !== "object";
269880
- const known = blocked ? NETWORK_BLOCKED : messageFor(status, code, details, viaToken);
269881
- return new ApiError(known ?? fallback.message, {
269882
- statusCode: status,
269883
- requestUrl: error.request.url,
269884
- requestMethod: error.request.method,
269885
- requestId: fallback.requestId,
269886
- hints: known ? [] : fallback.hints
269887
- });
269888
- }
269889
- async function uploadSession(appId, content, { token, sourceBranch } = {}) {
269890
- const form = new FormData;
269891
- form.append("file", new Blob([content]), "session.jsonl");
269892
- if (sourceBranch)
269893
- form.append("source_branch", sourceBranch);
269894
- let response;
269895
- try {
269896
- response = token ? await distribution_default.post(new URL(`/api/apps/${appId}/imported/session-imports`, getBase44ApiUrl()), {
269897
- body: form,
269898
- headers: {
269899
- Authorization: `Bearer ${token}`,
269900
- "User-Agent": "Base44 CLI"
269901
- },
269902
- timeout: 180000
269903
- }) : await getAppClient().post("imported/session-imports", {
269904
- body: form,
269905
- timeout: 180000
269906
- });
269907
- } catch (error) {
269908
- throw await toImportError(error, Boolean(token));
269909
- }
269910
- const result = SessionImportResponseSchema.safeParse(await response.json());
269911
- if (!result.success) {
269912
- throw new SchemaValidationError("Invalid session import response from server", result.error);
269913
- }
269914
- return result.data;
269915
- }
269916
-
269917
- // src/core/session-import/sessions.ts
269918
- import { createReadStream as createReadStream3 } from "node:fs";
269919
- import { realpath as realpath2, rm as rm5, stat as stat8 } from "node:fs/promises";
269920
- import { homedir as homedir5 } from "node:os";
269921
- import { dirname as dirname29, join as join41 } from "node:path";
269922
- import { createInterface as createInterface2 } from "node:readline";
269923
- var claudeDir = () => process.env.CLAUDE_CONFIG_DIR || join41(homedir5(), ".claude");
269924
- var codexDir = () => process.env.CODEX_HOME || join41(homedir5(), ".codex");
269925
- async function scanLines(path, pick, maxLines = Number.POSITIVE_INFINITY) {
269926
- const lines = createInterface2({ input: createReadStream3(path) });
269927
- let count = 0;
269928
- try {
269929
- for await (const line of lines) {
269930
- if (++count > maxLines)
269931
- return;
269932
- try {
269933
- const found = pick(JSON.parse(line));
269934
- if (found !== undefined)
269935
- return found;
269936
- } catch {}
269937
- }
269938
- } finally {
269939
- lines.close();
269940
- }
269941
- return;
269942
- }
269943
- var asRecord = (value) => value && typeof value === "object" ? value : {};
269944
- var codexCwd = (entry) => entry.type === "session_meta" ? String(asRecord(entry.payload).cwd ?? "") : undefined;
269945
- async function newest(paths) {
269946
- let best;
269947
- for (const path of paths) {
269948
- const { mtimeMs } = await stat8(path);
269949
- if (!best || mtimeMs > best.mtime)
269950
- best = { path, mtime: mtimeMs };
269951
- }
269952
- return best?.path;
269953
- }
269954
- async function sameDir(a, b) {
269955
- if (a === b)
269956
- return true;
269957
- const [ra, rb] = await Promise.all([
269958
- realpath2(a).catch(() => a),
269959
- realpath2(b).catch(() => b)
269960
- ]);
269961
- return ra === rb;
269962
- }
269963
- var codexRollouts = () => globby("sessions/*/*/*/rollout-*.jsonl", {
269964
- cwd: codexDir(),
269965
- absolute: true
269966
- });
269967
- async function codexRolloutsIn(cwd) {
269968
- const matches = [];
269969
- for (const path of await codexRollouts()) {
269970
- const recorded = await scanLines(path, codexCwd, 1);
269971
- if (recorded && await sameDir(recorded, cwd))
269972
- matches.push(path);
269973
- }
269974
- return matches;
269975
- }
269976
- async function findCurrentSession(cwd) {
269977
- const claudeId = process.env.CLAUDE_CODE_SESSION_ID;
269978
- if (claudeId) {
269979
- const [path] = await globby(`projects/*/${claudeId}.jsonl`, {
269980
- cwd: claudeDir(),
269981
- absolute: true
269982
- });
269983
- return path;
269984
- }
269985
- const codexId = process.env.CODEX_THREAD_ID;
269986
- if (codexId) {
269987
- const rollouts = await codexRollouts();
269988
- const rollout = rollouts.find((path) => path.endsWith(`-${codexId}.jsonl`));
269989
- if (!rollout) {
269990
- throw new InvalidInputError("Codex cloud sessions can't be imported yet. Run this from the Codex app or CLI on your computer.", { hints: [] });
269991
- }
269992
- return rollout;
269993
- }
269994
- return newest(await codexRolloutsIn(cwd));
269995
- }
269996
- function claudeUserText(entry) {
269997
- if (entry.type !== "user" || entry.isMeta || entry.isSidechain)
269998
- return;
269999
- const content = asRecord(entry.message).content;
270000
- return typeof content === "string" && !content.startsWith("<") ? content : undefined;
270001
- }
270002
- function codexUserText(entry) {
270003
- const payload = asRecord(entry.payload);
270004
- return entry.type === "event_msg" && payload.type === "user_message" ? String(payload.message ?? "") : undefined;
270005
- }
270006
- var PICKER_LIMIT = 20;
270007
- async function listSessions(cwd) {
270008
- const claudeFolder = cwd.replace(/[^a-zA-Z0-9]/g, "-");
270009
- const claude = await globby(`projects/${claudeFolder}/*.jsonl`, {
270010
- cwd: claudeDir(),
270011
- absolute: true
270012
- });
270013
- const candidates = [
270014
- ...claude.map((path) => ({ tool: "claude_code", path })),
270015
- ...(await codexRolloutsIn(cwd)).map((path) => ({
270016
- tool: "codex",
270017
- path
270018
- }))
270019
- ];
270020
- const dated = await Promise.all(candidates.map(async (c) => ({
270021
- ...c,
270022
- updatedAt: (await stat8(c.path)).mtime
270023
- })));
270024
- dated.sort((a, b) => b.updatedAt.getTime() - a.updatedAt.getTime());
270025
- const sessions = [];
270026
- for (const candidate of dated.slice(0, PICKER_LIMIT)) {
270027
- const firstMessage = await scanLines(candidate.path, candidate.tool === "claude_code" ? claudeUserText : codexUserText);
270028
- if (firstMessage)
270029
- sessions.push({ ...candidate, firstMessage });
270030
- }
270031
- return sessions;
270032
- }
270033
- var SESSION_ID = /session_[A-Za-z0-9]+/;
270034
- function parseSessionLink(link) {
270035
- if (/cshk_/.test(link) || !SESSION_ID.test(link)) {
270036
- throw new InvalidInputError(`That isn't a claude.ai session address. Copy it from your browser's address bar (not "Copy link").`, { hints: [] });
270037
- }
270038
- return link.match(SESSION_ID)[0];
270039
- }
270040
- var TELEPORT_PROMPT = "Reply with OK.";
270041
- var TELEPORT_NOTE = "This session is being continued from another machine";
270042
- function parseLine(line) {
270043
- try {
270044
- return asRecord(JSON.parse(line));
270045
- } catch {
270046
- return {};
270047
- }
270048
- }
270049
- function stripTeleportExchange(content) {
270050
- const lines = content.split(`
270051
- `);
270052
- const entries = lines.map(parseLine);
270053
- const userText = (entry) => entry.type === "user" ? asRecord(entry.message).content : undefined;
270054
- let end = lines.length;
270055
- for (let i = lines.length - 1;i >= 0; i--) {
270056
- if (userText(entries[i] ?? {}) === TELEPORT_PROMPT) {
270057
- end = i;
270058
- break;
270059
- }
270060
- }
270061
- return lines.slice(0, end).filter((_, i) => {
270062
- const entry = entries[i] ?? {};
270063
- const text = userText(entry);
270064
- const queued = entry.type === "queue-operation" && entry.content === TELEPORT_PROMPT;
270065
- const note = typeof text === "string" && text.startsWith(TELEPORT_NOTE);
270066
- return !queued && !note;
270067
- }).join(`
270068
- `);
270069
- }
270070
- var NEEDS_CLAUDE = "Claude Code must be installed and signed in to the same claude.ai account to import a claude.ai session.";
270071
- async function teleportSession(sessionId, cwd) {
270072
- const origin = await execa("git", ["remote", "get-url", "origin"], {
270073
- cwd,
270074
- reject: false
270075
- });
270076
- if (origin.exitCode !== 0 || !origin.stdout) {
270077
- throw new InvalidInputError("Run this from a folder with the app's GitHub repository, so the session can be checked out.");
270078
- }
270079
- const tmp = await $dir({ unsafeCleanup: true });
270080
- const repo = join41(tmp.path, "repo");
270081
- let projectFolder;
270082
- try {
270083
- await execa("git", ["clone", "--quiet", origin.stdout, repo]);
270084
- const repoReal = await realpath2(repo);
270085
- const startedAt = Date.now();
270086
- const claudeBin = getTestOverrides()?.claudeBin ?? "claude";
270087
- try {
270088
- await execa(claudeBin, ["--teleport", sessionId, "-p", TELEPORT_PROMPT], {
270089
- cwd: repo,
270090
- stdin: "ignore"
270091
- });
270092
- } catch {
270093
- throw new DependencyNotFoundError(NEEDS_CLAUDE, { hints: [] });
270094
- }
270095
- const fresh = [];
270096
- for (const path of await globby("projects/*/*.jsonl", {
270097
- cwd: claudeDir(),
270098
- absolute: true
270099
- })) {
270100
- if ((await stat8(path)).mtimeMs < startedAt)
270101
- continue;
270102
- const sessionCwd = await scanLines(path, (entry) => typeof entry.cwd === "string" ? entry.cwd : undefined, 50);
270103
- if (sessionCwd === repo || sessionCwd === repoReal)
270104
- fresh.push(path);
270105
- }
270106
- const file = await newest(fresh);
270107
- if (!file)
270108
- throw new DependencyNotFoundError(NEEDS_CLAUDE, { hints: [] });
270109
- projectFolder = dirname29(file);
270110
- return stripTeleportExchange((await readFile(file)).toString("utf8"));
270111
- } finally {
270112
- if (projectFolder)
270113
- await rm5(projectFolder, { recursive: true, force: true });
270114
- await tmp.cleanup();
270115
- }
270116
- }
270117
-
270118
- // src/cli/commands/import.ts
270119
- var TOOL_LABELS = {
270120
- claude_code: "Claude Code",
270121
- codex: "Codex"
270122
- };
270123
- async function pickSession(cwd) {
270124
- const sessions = await listSessions(cwd);
270125
- if (sessions.length === 0) {
270126
- throw new InvalidInputError("No Claude Code or Codex sessions found in this folder. Pass --file <path>.");
270127
- }
270128
- const choice = await Je({
270129
- message: "Which session do you want to continue in Base Code?",
270130
- options: sessions.map((session) => ({
270131
- value: session.path,
270132
- label: session.firstMessage.replace(/\s+/g, " ").slice(0, 70),
270133
- hint: `${TOOL_LABELS[session.tool]}, ${import_ms2.default(Date.now() - session.updatedAt.getTime())} ago`
270134
- }))
270135
- });
270136
- if (Ct(choice)) {
270137
- Ne("Operation cancelled.");
270138
- throw new CLIExitError(0);
270139
- }
270140
- return choice;
270141
- }
270142
- async function readSession(ctx, link, options) {
270143
- const cwd = process.cwd();
270144
- if (options.file)
270145
- return readFile(options.file);
270146
- if (link) {
270147
- const sessionId = parseSessionLink(link);
270148
- const content = await ctx.runTask("Downloading the claude.ai session", () => teleportSession(sessionId, cwd));
270149
- return Buffer.from(content);
270150
- }
270151
- if (options.current) {
270152
- const path = await findCurrentSession(cwd);
270153
- if (!path) {
270154
- throw new InvalidInputError("Couldn't find the current session. Run this from inside Claude Code or Codex, or pass --file <path>.", { hints: [] });
270155
- }
270156
- return readFile(path);
270157
- }
270158
- if (ctx.isNonInteractive || ctx.jsonMode) {
270159
- throw new InvalidInputError("Choose a session: pass --current, a claude.ai session link, or --file <path>.");
270160
- }
270161
- return readFile(await pickSession(cwd));
270162
- }
270163
- async function importAction(ctx, link, options, command) {
270164
- ctx.errorReporter.setContext({
270165
- command: {
270166
- name: "import",
270167
- args: link ? ["[not reported]"] : [],
270168
- options: {
270169
- ...command.opts(),
270170
- ...options.token ? { token: "[not reported]" } : {}
270171
- }
270172
- }
270173
- });
270174
- const chosen = [link, options.current, options.file].filter(Boolean).length;
270175
- if (chosen > 1) {
270176
- throw new InvalidInputError("Pass only one of: a session link, --current, or --file.");
270177
- }
270178
- const appId = requireApp(ctx).id;
270179
- const content = await readSession(ctx, link, options);
270180
- if (content.length > MAX_SESSION_BYTES) {
270181
- throw new InvalidInputError("This session is over 25 MB and can't be imported.", { hints: [] });
270182
- }
270183
- const git = link || options.file ? undefined : await readGitState(process.cwd());
270184
- if (git?.unpushed && !options.skipPushCheck) {
270185
- throw new InvalidInputError("Your changes aren't on GitHub yet. Ask the user whether to commit and push them (to a new branch if on main or master), then run this again. If they don't want to, run it again with --skip-push-check.", { hints: [] });
270186
- }
270187
- const note = git?.unpushed ? "Base Code started from what's on GitHub; your local changes aren't included." : undefined;
270188
- if (!options.token)
270189
- await ensureAuth(ctx);
270190
- ctx.log.info("This uploads the full conversation to Base Code.");
270191
- const imported = await ctx.runTask("Importing session", () => uploadSession(appId, content, {
270192
- token: options.token,
270193
- sourceBranch: git?.branch
270194
- }));
270195
- const url = `${getBase44ApiUrl()}${imported.branchUrl}`;
270196
- return {
270197
- outroMessage: [
270198
- imported.continued ? `✓ Imported ${imported.turnCount} messages from ${TOOL_LABELS[imported.source]}. Continued on "${imported.branchName}".` : `✓ Imported ${imported.turnCount} messages from ${TOOL_LABELS[imported.source]} into branch "${imported.branchName}".`,
270199
- ...note ? [note] : [],
270200
- `Open it: ${url}`
270201
- ].join(`
270202
- `),
270203
- stdout: ctx.jsonMode ? toJsonStdout({ ...imported, url, ...note ? { note } : {} }) : undefined
270204
- };
270205
- }
270206
- function getImportCommand() {
270207
- return new Base44Command("import", { requireAuth: false }).description("Continue a Claude Code or Codex session in a new Base Code branch").argument("[session-link]", "A claude.ai session address (https://claude.ai/code/session_…)").option("--current", "Import the session this command runs inside").option("--file <path>", "Import this session file as is").option("--skip-push-check", "Import even though local changes aren't on GitHub (they won't be included)").option("--token <key>", "One-time import key from Base Code (no login needed)").action(importAction);
270208
- }
270209
-
270210
270434
  // src/cli/commands/project/eject.ts
270211
270435
  import { resolve as resolve20 } from "node:path";
270212
270436
  var import_kebabCase2 = __toESM(require_kebabCase(), 1);
@@ -270370,7 +270594,7 @@ function createProgram(context) {
270370
270594
  program.addCommand(getExecCommand());
270371
270595
  program.addCommand(getDevCommand());
270372
270596
  program.addCommand(getLogsCommand());
270373
- program.addCommand(getImportCommand());
270597
+ program.addCommand(getSessionsCommand());
270374
270598
  return program;
270375
270599
  }
270376
270600
 
@@ -274418,4 +274642,4 @@ export {
274418
274642
  runCLI
274419
274643
  };
274420
274644
 
274421
- //# debugId=65DB0D456B90226B64756E2164756E21
274645
+ //# debugId=C39BE2B609F11FD064756E2164756E21