@digipair/skill-client-mcp 0.117.7 → 0.117.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.esm.js +285 -94
  2. package/package.json +1 -1
package/dist/index.esm.js CHANGED
@@ -1,4 +1,3 @@
1
- import { snakeCase, kebabCase, camelCase } from 'case-anything/dist/index.js';
2
1
  import pkceChallenge from 'pkce-challenge';
3
2
  import require$$0$2 from 'child_process';
4
3
  import require$$0$1 from 'path';
@@ -8200,7 +8199,7 @@ function _create_class$v(Constructor, protoProps, staticProps) {
8200
8199
  if (staticProps) _defineProperties$v(Constructor, staticProps);
8201
8200
  return Constructor;
8202
8201
  }
8203
- function _define_property$4$1(obj, key, value) {
8202
+ function _define_property$5$1(obj, key, value) {
8204
8203
  if (key in obj) {
8205
8204
  Object.defineProperty(obj, key, {
8206
8205
  value: value,
@@ -8275,7 +8274,7 @@ function _non_iterable_rest$5() {
8275
8274
  function _non_iterable_spread$6() {
8276
8275
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8277
8276
  }
8278
- function _object_spread$2$1(target) {
8277
+ function _object_spread$3$1(target) {
8279
8278
  for(var i = 1; i < arguments.length; i++){
8280
8279
  var source = arguments[i] != null ? arguments[i] : {};
8281
8280
  var ownKeys = Object.keys(source);
@@ -8285,12 +8284,12 @@ function _object_spread$2$1(target) {
8285
8284
  }));
8286
8285
  }
8287
8286
  ownKeys.forEach(function(key) {
8288
- _define_property$4$1(target, key, source[key]);
8287
+ _define_property$5$1(target, key, source[key]);
8289
8288
  });
8290
8289
  }
8291
8290
  return target;
8292
8291
  }
8293
- function ownKeys$1$1(object, enumerableOnly) {
8292
+ function ownKeys$2$1(object, enumerableOnly) {
8294
8293
  var keys = Object.keys(object);
8295
8294
  if (Object.getOwnPropertySymbols) {
8296
8295
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8298,12 +8297,12 @@ function ownKeys$1$1(object, enumerableOnly) {
8298
8297
  }
8299
8298
  return keys;
8300
8299
  }
8301
- function _object_spread_props$1$1(target, source) {
8300
+ function _object_spread_props$2$1(target, source) {
8302
8301
  source = source != null ? source : {};
8303
8302
  if (Object.getOwnPropertyDescriptors) {
8304
8303
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8305
8304
  } else {
8306
- ownKeys$1$1(Object(source)).forEach(function(key) {
8305
+ ownKeys$2$1(Object(source)).forEach(function(key) {
8307
8306
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8308
8307
  });
8309
8308
  }
@@ -9174,7 +9173,7 @@ function getCachedWeekInfo(locString) {
9174
9173
  data = "getWeekInfo" in locale ? locale.getWeekInfo() : locale.weekInfo;
9175
9174
  // minimalDays was removed from WeekInfo: https://github.com/tc39/proposal-intl-locale-info/issues/86
9176
9175
  if (!("minimalDays" in data)) {
9177
- data = _object_spread$2$1({}, fallbackWeekSettings, data);
9176
+ data = _object_spread$3$1({}, fallbackWeekSettings, data);
9178
9177
  }
9179
9178
  weekInfoCache.set(locString, data);
9180
9179
  }
@@ -9281,7 +9280,7 @@ function supportsFastNumbers(loc) {
9281
9280
  "floor"
9282
9281
  ]);
9283
9282
  if (!forceSimple || Object.keys(otherOpts).length > 0) {
9284
- var intlOpts = _object_spread$2$1({
9283
+ var intlOpts = _object_spread$3$1({
9285
9284
  useGrouping: false
9286
9285
  }, opts);
9287
9286
  if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;
@@ -9351,7 +9350,7 @@ function supportsFastNumbers(loc) {
9351
9350
  });
9352
9351
  this.originalZone = dt.zone;
9353
9352
  }
9354
- var intlOpts = _object_spread$2$1({}, this.opts);
9353
+ var intlOpts = _object_spread$3$1({}, this.opts);
9355
9354
  intlOpts.timeZone = intlOpts.timeZone || z;
9356
9355
  this.dtf = getCachedDTF(intl, intlOpts);
9357
9356
  }
@@ -9382,7 +9381,7 @@ function supportsFastNumbers(loc) {
9382
9381
  locale: _this.dt.locale,
9383
9382
  format: _this.opts.timeZoneName
9384
9383
  });
9385
- return _object_spread_props$1$1(_object_spread$2$1({}, part), {
9384
+ return _object_spread_props$2$1(_object_spread$3$1({}, part), {
9386
9385
  value: offsetName
9387
9386
  });
9388
9387
  } else {
@@ -9407,7 +9406,7 @@ function supportsFastNumbers(loc) {
9407
9406
  */ var PolyRelFormatter = /*#__PURE__*/ function() {
9408
9407
  function PolyRelFormatter(intl, isEnglish, opts) {
9409
9408
  _class_call_check$A(this, PolyRelFormatter);
9410
- this.opts = _object_spread$2$1({
9409
+ this.opts = _object_spread$3$1({
9411
9410
  style: "long"
9412
9411
  }, opts);
9413
9412
  if (!isEnglish && hasRelative()) {
@@ -9502,7 +9501,7 @@ var fallbackWeekSettings = {
9502
9501
  key: "redefaultToEN",
9503
9502
  value: function redefaultToEN() {
9504
9503
  var alts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
9505
- return this.clone(_object_spread_props$1$1(_object_spread$2$1({}, alts), {
9504
+ return this.clone(_object_spread_props$2$1(_object_spread$3$1({}, alts), {
9506
9505
  defaultToEN: true
9507
9506
  }));
9508
9507
  }
@@ -9511,7 +9510,7 @@ var fallbackWeekSettings = {
9511
9510
  key: "redefaultToSystem",
9512
9511
  value: function redefaultToSystem() {
9513
9512
  var alts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
9514
- return this.clone(_object_spread_props$1$1(_object_spread$2$1({}, alts), {
9513
+ return this.clone(_object_spread_props$2$1(_object_spread$3$1({}, alts), {
9515
9514
  defaultToEN: false
9516
9515
  }));
9517
9516
  }
@@ -10390,7 +10389,7 @@ function isoWeekdayToLocal(isoWeekday, startOfWeek) {
10390
10389
  } else {
10391
10390
  weekYear = year;
10392
10391
  }
10393
- return _object_spread$2$1({
10392
+ return _object_spread$3$1({
10394
10393
  weekYear: weekYear,
10395
10394
  weekNumber: weekNumber,
10396
10395
  weekday: weekday
@@ -10410,7 +10409,7 @@ function weekToGregorian(weekData) {
10410
10409
  year = weekYear;
10411
10410
  }
10412
10411
  var _uncomputeOrdinal = uncomputeOrdinal(year, ordinal), month = _uncomputeOrdinal.month, day = _uncomputeOrdinal.day;
10413
- return _object_spread$2$1({
10412
+ return _object_spread$3$1({
10414
10413
  year: year,
10415
10414
  month: month,
10416
10415
  day: day
@@ -10419,7 +10418,7 @@ function weekToGregorian(weekData) {
10419
10418
  function gregorianToOrdinal(gregData) {
10420
10419
  var year = gregData.year, month = gregData.month, day = gregData.day;
10421
10420
  var ordinal = computeOrdinal(year, month, day);
10422
- return _object_spread$2$1({
10421
+ return _object_spread$3$1({
10423
10422
  year: year,
10424
10423
  ordinal: ordinal
10425
10424
  }, timeObject(gregData));
@@ -10427,7 +10426,7 @@ function gregorianToOrdinal(gregData) {
10427
10426
  function ordinalToGregorian(ordinalData) {
10428
10427
  var year = ordinalData.year, ordinal = ordinalData.ordinal;
10429
10428
  var _uncomputeOrdinal = uncomputeOrdinal(year, ordinal), month = _uncomputeOrdinal.month, day = _uncomputeOrdinal.day;
10430
- return _object_spread$2$1({
10429
+ return _object_spread$3$1({
10431
10430
  year: year,
10432
10431
  month: month,
10433
10432
  day: day
@@ -10723,7 +10722,7 @@ function parseZoneInfo(ts, offsetFormat, locale) {
10723
10722
  if (timeZone) {
10724
10723
  intlOpts.timeZone = timeZone;
10725
10724
  }
10726
- var modified = _object_spread$2$1({
10725
+ var modified = _object_spread$3$1({
10727
10726
  timeZoneName: offsetFormat
10728
10727
  }, intlOpts);
10729
10728
  var parsed = new Intl.DateTimeFormat(locale, modified).formatToParts(date).find(function(m) {
@@ -11082,7 +11081,7 @@ var macroTokenToFormatOpts = {
11082
11081
  if (this.systemLoc === null) {
11083
11082
  this.systemLoc = this.loc.redefaultToSystem();
11084
11083
  }
11085
- var df = this.systemLoc.dtFormatter(dt, _object_spread$2$1({}, this.opts, opts));
11084
+ var df = this.systemLoc.dtFormatter(dt, _object_spread$3$1({}, this.opts, opts));
11086
11085
  return df.format();
11087
11086
  }
11088
11087
  },
@@ -11090,7 +11089,7 @@ var macroTokenToFormatOpts = {
11090
11089
  key: "dtFormatter",
11091
11090
  value: function dtFormatter(dt) {
11092
11091
  var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
11093
- return this.loc.dtFormatter(dt, _object_spread$2$1({}, this.opts, opts));
11092
+ return this.loc.dtFormatter(dt, _object_spread$3$1({}, this.opts, opts));
11094
11093
  }
11095
11094
  },
11096
11095
  {
@@ -11126,7 +11125,7 @@ var macroTokenToFormatOpts = {
11126
11125
  if (this.opts.forceSimple) {
11127
11126
  return padStart(n, p);
11128
11127
  }
11129
- var opts = _object_spread$2$1({}, this.opts);
11128
+ var opts = _object_spread$3$1({}, this.opts);
11130
11129
  if (p > 0) {
11131
11130
  opts.padTo = p;
11132
11131
  }
@@ -11542,7 +11541,7 @@ function combineExtractors() {
11542
11541
  var _param = _sliced_to_array$5(param, 3), mergedVals = _param[0], mergedZone = _param[1], cursor = _param[2];
11543
11542
  var _ex = _sliced_to_array$5(ex(m, cursor), 3), val = _ex[0], zone = _ex[1], next = _ex[2];
11544
11543
  return [
11545
- _object_spread$2$1({}, mergedVals, val),
11544
+ _object_spread$3$1({}, mergedVals, val),
11546
11545
  zone || mergedZone,
11547
11546
  next
11548
11547
  ];
@@ -11853,7 +11852,7 @@ var lowOrderMatrix = {
11853
11852
  seconds: {
11854
11853
  milliseconds: 1000
11855
11854
  }
11856
- }, casualMatrix = _object_spread$2$1({
11855
+ }, casualMatrix = _object_spread$3$1({
11857
11856
  years: {
11858
11857
  quarters: 4,
11859
11858
  months: 12,
@@ -11881,7 +11880,7 @@ var lowOrderMatrix = {
11881
11880
  seconds: 30 * 24 * 60 * 60,
11882
11881
  milliseconds: 30 * 24 * 60 * 60 * 1000
11883
11882
  }
11884
- }, lowOrderMatrix), daysInYearAccurate = 146097.0 / 400, daysInMonthAccurate = 146097.0 / 4800, accurateMatrix = _object_spread$2$1({
11883
+ }, lowOrderMatrix), daysInYearAccurate = 146097.0 / 400, daysInMonthAccurate = 146097.0 / 4800, accurateMatrix = _object_spread$3$1({
11885
11884
  years: {
11886
11885
  quarters: 4,
11887
11886
  months: 12,
@@ -11928,7 +11927,7 @@ function clone$1(dur, alts) {
11928
11927
  var clear = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
11929
11928
  // deep merge for vals
11930
11929
  var conf = {
11931
- values: clear ? alts.values : _object_spread$2$1({}, dur.values, alts.values || {}),
11930
+ values: clear ? alts.values : _object_spread$3$1({}, dur.values, alts.values || {}),
11932
11931
  loc: dur.loc.clone(alts.loc),
11933
11932
  conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy,
11934
11933
  matrix: alts.matrix || dur.matrix
@@ -12127,7 +12126,7 @@ function removeZeroes(vals) {
12127
12126
  value: function toFormat(fmt) {
12128
12127
  var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
12129
12128
  // reverse-compat since 1.2; we always round down now, never up, and we do it by default
12130
- var fmtOpts = _object_spread_props$1$1(_object_spread$2$1({}, opts), {
12129
+ var fmtOpts = _object_spread_props$2$1(_object_spread$3$1({}, opts), {
12131
12130
  floor: opts.round !== false && opts.floor !== false
12132
12131
  });
12133
12132
  return this.isValid ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt) : INVALID$2;
@@ -12160,7 +12159,7 @@ function removeZeroes(vals) {
12160
12159
  if (isUndefined$2(val) || val === 0 && !showZeros) {
12161
12160
  return null;
12162
12161
  }
12163
- return _this.loc.numberFormatter(_object_spread_props$1$1(_object_spread$2$1({
12162
+ return _this.loc.numberFormatter(_object_spread_props$2$1(_object_spread$3$1({
12164
12163
  style: "unit",
12165
12164
  unitDisplay: "long"
12166
12165
  }, opts), {
@@ -12169,7 +12168,7 @@ function removeZeroes(vals) {
12169
12168
  }).filter(function(n) {
12170
12169
  return n;
12171
12170
  });
12172
- return this.loc.listFormatter(_object_spread$2$1({
12171
+ return this.loc.listFormatter(_object_spread$3$1({
12173
12172
  type: "conjunction",
12174
12173
  style: opts.listStyle || "narrow"
12175
12174
  }, opts)).format(l);
@@ -12183,7 +12182,7 @@ function removeZeroes(vals) {
12183
12182
  */ key: "toObject",
12184
12183
  value: function toObject() {
12185
12184
  if (!this.isValid) return {};
12186
- return _object_spread$2$1({}, this.values);
12185
+ return _object_spread$3$1({}, this.values);
12187
12186
  }
12188
12187
  },
12189
12188
  {
@@ -12236,7 +12235,7 @@ function removeZeroes(vals) {
12236
12235
  if (!this.isValid) return null;
12237
12236
  var millis = this.toMillis();
12238
12237
  if (millis < 0 || millis >= 86400000) return null;
12239
- opts = _object_spread_props$1$1(_object_spread$2$1({
12238
+ opts = _object_spread_props$2$1(_object_spread$3$1({
12240
12239
  suppressMilliseconds: false,
12241
12240
  suppressSeconds: false,
12242
12241
  includePrefix: false,
@@ -12407,7 +12406,7 @@ function removeZeroes(vals) {
12407
12406
  */ key: "set",
12408
12407
  value: function set(values) {
12409
12408
  if (!this.isValid) return this;
12410
- var mixed = _object_spread$2$1({}, this.values, normalizeObject(values, Duration.normalizeUnit));
12409
+ var mixed = _object_spread$3$1({}, this.values, normalizeObject(values, Duration.normalizeUnit));
12411
12410
  return clone$1(this, {
12412
12411
  values: mixed
12413
12412
  });
@@ -14018,7 +14017,7 @@ function diff(earlier, later, units, opts) {
14018
14017
  });
14019
14018
  if (lowerOrderUnits.length === 0) {
14020
14019
  if (highWater < later) {
14021
- highWater = cursor.plus(_define_property$4$1({}, lowestOrder, 1));
14020
+ highWater = cursor.plus(_define_property$5$1({}, lowestOrder, 1));
14022
14021
  }
14023
14022
  if (highWater !== cursor) {
14024
14023
  results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor);
@@ -14578,7 +14577,7 @@ function clone$2(inst, alts) {
14578
14577
  loc: inst.loc,
14579
14578
  invalid: inst.invalid
14580
14579
  };
14581
- return new DateTime(_object_spread_props$1$1(_object_spread$2$1({}, current, alts), {
14580
+ return new DateTime(_object_spread_props$2$1(_object_spread$3$1({}, current, alts), {
14582
14581
  old: current
14583
14582
  }));
14584
14583
  }
@@ -14632,7 +14631,7 @@ function objToTS(obj, offset, zone) {
14632
14631
  }
14633
14632
  // create a new DT instance by adding a duration, adjusting for DSTs
14634
14633
  function adjustTime(inst, dur) {
14635
- var oPre = inst.o, year = inst.c.year + Math.trunc(dur.years), month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3, c = _object_spread_props$1$1(_object_spread$2$1({}, inst.c), {
14634
+ var oPre = inst.o, year = inst.c.year + Math.trunc(dur.years), month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3, c = _object_spread_props$2$1(_object_spread$3$1({}, inst.c), {
14636
14635
  year: year,
14637
14636
  month: month,
14638
14637
  day: Math.min(inst.c.day, daysInMonth(year, month)) + Math.trunc(dur.days) + Math.trunc(dur.weeks) * 7
@@ -14663,7 +14662,7 @@ function adjustTime(inst, dur) {
14663
14662
  function parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) {
14664
14663
  var setZone = opts.setZone, zone = opts.zone;
14665
14664
  if (parsed && Object.keys(parsed).length !== 0 || parsedZone) {
14666
- var interpretationZone = parsedZone || zone, inst = DateTime.fromObject(parsed, _object_spread_props$1$1(_object_spread$2$1({}, opts), {
14665
+ var interpretationZone = parsedZone || zone, inst = DateTime.fromObject(parsed, _object_spread_props$2$1(_object_spread$3$1({}, opts), {
14667
14666
  zone: interpretationZone,
14668
14667
  specificOffset: specificOffset
14669
14668
  }));
@@ -15683,11 +15682,11 @@ function lastOpts(argList) {
15683
15682
  }
15684
15683
  var mixed;
15685
15684
  if (settingWeekStuff) {
15686
- mixed = weekToGregorian(_object_spread$2$1({}, gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek), normalized), minDaysInFirstWeek, startOfWeek);
15685
+ mixed = weekToGregorian(_object_spread$3$1({}, gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek), normalized), minDaysInFirstWeek, startOfWeek);
15687
15686
  } else if (!isUndefined$2(normalized.ordinal)) {
15688
- mixed = ordinalToGregorian(_object_spread$2$1({}, gregorianToOrdinal(this.c), normalized));
15687
+ mixed = ordinalToGregorian(_object_spread$3$1({}, gregorianToOrdinal(this.c), normalized));
15689
15688
  } else {
15690
- mixed = _object_spread$2$1({}, this.toObject(), normalized);
15689
+ mixed = _object_spread$3$1({}, this.toObject(), normalized);
15691
15690
  // if we didn't set the day but we ended up on an overflow date,
15692
15691
  // use the last day of the right month
15693
15692
  if (isUndefined$2(normalized.day)) {
@@ -15806,7 +15805,7 @@ function lastOpts(argList) {
15806
15805
  * @return {DateTime}
15807
15806
  */ key: "endOf",
15808
15807
  value: function endOf(unit, opts) {
15809
- return this.isValid ? this.plus(_define_property$4$1({}, unit, 1)).startOf(unit, opts).minus(1) : this;
15808
+ return this.isValid ? this.plus(_define_property$5$1({}, unit, 1)).startOf(unit, opts).minus(1) : this;
15810
15809
  }
15811
15810
  },
15812
15811
  {
@@ -16134,7 +16133,7 @@ function lastOpts(argList) {
16134
16133
  value: function toObject() {
16135
16134
  var opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
16136
16135
  if (!this.isValid) return {};
16137
- var base = _object_spread$2$1({}, this.c);
16136
+ var base = _object_spread$3$1({}, this.c);
16138
16137
  if (opts.includeConfig) {
16139
16138
  base.outputCalendar = this.outputCalendar;
16140
16139
  base.numberingSystem = this.loc.numberingSystem;
@@ -16174,7 +16173,7 @@ function lastOpts(argList) {
16174
16173
  if (!this.isValid || !otherDateTime.isValid) {
16175
16174
  return Duration.invalid("created by diffing an invalid DateTime");
16176
16175
  }
16177
- var durOpts = _object_spread$2$1({
16176
+ var durOpts = _object_spread$3$1({
16178
16177
  locale: this.locale,
16179
16178
  numberingSystem: this.numberingSystem
16180
16179
  }, opts);
@@ -16278,7 +16277,7 @@ function lastOpts(argList) {
16278
16277
  units = options.unit;
16279
16278
  unit = undefined;
16280
16279
  }
16281
- return diffRelative(base, this.plus(padding), _object_spread_props$1$1(_object_spread$2$1({}, options), {
16280
+ return diffRelative(base, this.plus(padding), _object_spread_props$2$1(_object_spread$3$1({}, options), {
16282
16281
  numeric: "always",
16283
16282
  units: units,
16284
16283
  unit: unit
@@ -16304,7 +16303,7 @@ function lastOpts(argList) {
16304
16303
  if (!this.isValid) return null;
16305
16304
  return diffRelative(options.base || DateTime.fromObject({}, {
16306
16305
  zone: this.zone
16307
- }), this, _object_spread_props$1$1(_object_spread$2$1({}, options), {
16306
+ }), this, _object_spread_props$2$1(_object_spread$3$1({}, options), {
16308
16307
  numeric: "auto",
16309
16308
  units: [
16310
16309
  "years",
@@ -22572,7 +22571,7 @@ function _create_class$r(Constructor, protoProps, staticProps) {
22572
22571
  if (staticProps) _defineProperties$r(Constructor, staticProps);
22573
22572
  return Constructor;
22574
22573
  }
22575
- function _define_property$3$1(obj, key, value) {
22574
+ function _define_property$4$1(obj, key, value) {
22576
22575
  if (key in obj) {
22577
22576
  Object.defineProperty(obj, key, {
22578
22577
  value: value,
@@ -22625,7 +22624,7 @@ function _non_iterable_rest$2$1() {
22625
22624
  function _non_iterable_spread$4() {
22626
22625
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
22627
22626
  }
22628
- function _object_spread$1$1(target) {
22627
+ function _object_spread$2$1(target) {
22629
22628
  for(var i = 1; i < arguments.length; i++){
22630
22629
  var source = arguments[i] != null ? arguments[i] : {};
22631
22630
  var ownKeys = Object.keys(source);
@@ -22635,12 +22634,12 @@ function _object_spread$1$1(target) {
22635
22634
  }));
22636
22635
  }
22637
22636
  ownKeys.forEach(function(key) {
22638
- _define_property$3$1(target, key, source[key]);
22637
+ _define_property$4$1(target, key, source[key]);
22639
22638
  });
22640
22639
  }
22641
22640
  return target;
22642
22641
  }
22643
- function ownKeys$4(object, enumerableOnly) {
22642
+ function ownKeys$1$1(object, enumerableOnly) {
22644
22643
  var keys = Object.keys(object);
22645
22644
  if (Object.getOwnPropertySymbols) {
22646
22645
  var symbols = Object.getOwnPropertySymbols(object);
@@ -22648,12 +22647,12 @@ function ownKeys$4(object, enumerableOnly) {
22648
22647
  }
22649
22648
  return keys;
22650
22649
  }
22651
- function _object_spread_props$4(target, source) {
22650
+ function _object_spread_props$1$1(target, source) {
22652
22651
  source = source != null ? source : {};
22653
22652
  if (Object.getOwnPropertyDescriptors) {
22654
22653
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
22655
22654
  } else {
22656
- ownKeys$4(Object(source)).forEach(function(key) {
22655
+ ownKeys$1$1(Object(source)).forEach(function(key) {
22657
22656
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
22658
22657
  });
22659
22658
  }
@@ -22846,14 +22845,14 @@ function indent(str, spaces) {
22846
22845
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
22847
22846
  // match is required
22848
22847
  if (!match) {
22849
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
22848
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
22850
22849
  v: nextMatch1
22851
22850
  };
22852
22851
  }
22853
22852
  var token = match.token, offset = match.offset;
22854
22853
  i1 += offset;
22855
22854
  if (token === ' ') {
22856
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
22855
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22857
22856
  }
22858
22857
  tokens1 = _to_consumable_array$4(tokens1).concat([
22859
22858
  token
@@ -22872,7 +22871,7 @@ function indent(str, spaces) {
22872
22871
  if (contextKeys.some(function(el) {
22873
22872
  return el.startsWith(name);
22874
22873
  })) {
22875
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
22874
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22876
22875
  }
22877
22876
  if (dateTimeIdentifiers.some(function(el) {
22878
22877
  return el === name;
@@ -22891,9 +22890,9 @@ function indent(str, spaces) {
22891
22890
  if (dateTimeIdentifiers.some(function(el) {
22892
22891
  return el.startsWith(name);
22893
22892
  })) {
22894
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
22893
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22895
22894
  }
22896
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
22895
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
22897
22896
  v: nextMatch1
22898
22897
  };
22899
22898
  };
@@ -22905,7 +22904,7 @@ function indent(str, spaces) {
22905
22904
  }
22906
22905
  }
22907
22906
  var _obj$1;
22908
- var identifiersMap = (_obj$1 = {}, _define_property$3$1(_obj$1, identifier, 'identifier'), _define_property$3$1(_obj$1, nameIdentifier, 'nameIdentifier'), _obj$1);
22907
+ var identifiersMap = (_obj$1 = {}, _define_property$4$1(_obj$1, identifier, 'identifier'), _define_property$4$1(_obj$1, nameIdentifier, 'nameIdentifier'), _obj$1);
22909
22908
  var identifiers = new ExternalTokenizer(function(input, stack) {
22910
22909
  LOG_PARSE_DEBUG && console.log('%s: T <identifier | nameIdentifier>', input.pos);
22911
22910
  var nameMatch = parseName(input, stack.context);
@@ -22954,11 +22953,11 @@ var insertSemicolon = new ExternalTokenizer(function(input, stack) {
22954
22953
  }
22955
22954
  });
22956
22955
  var _obj1;
22957
- var prefixedContextStarts = (_obj1 = {}, _define_property$3$1(_obj1, functionInvocationStart, 'FunctionInvocation'), _define_property$3$1(_obj1, filterExpressionStart, 'FilterExpression'), _define_property$3$1(_obj1, pathExpressionStart, 'PathExpression'), _obj1);
22956
+ var prefixedContextStarts = (_obj1 = {}, _define_property$4$1(_obj1, functionInvocationStart, 'FunctionInvocation'), _define_property$4$1(_obj1, filterExpressionStart, 'FilterExpression'), _define_property$4$1(_obj1, pathExpressionStart, 'PathExpression'), _obj1);
22958
22957
  var _obj2;
22959
- var contextStarts = (_obj2 = {}, _define_property$3$1(_obj2, contextStart, 'Context'), _define_property$3$1(_obj2, functionDefinitionStart, 'FunctionDefinition'), _define_property$3$1(_obj2, forExpressionStart, 'ForExpression'), _define_property$3$1(_obj2, listStart, 'List'), _define_property$3$1(_obj2, ifExpressionStart, 'IfExpression'), _define_property$3$1(_obj2, quantifiedExpressionStart, 'QuantifiedExpression'), _obj2);
22958
+ var contextStarts = (_obj2 = {}, _define_property$4$1(_obj2, contextStart, 'Context'), _define_property$4$1(_obj2, functionDefinitionStart, 'FunctionDefinition'), _define_property$4$1(_obj2, forExpressionStart, 'ForExpression'), _define_property$4$1(_obj2, listStart, 'List'), _define_property$4$1(_obj2, ifExpressionStart, 'IfExpression'), _define_property$4$1(_obj2, quantifiedExpressionStart, 'QuantifiedExpression'), _obj2);
22960
22959
  var _obj3;
22961
- var contextEnds = (_obj3 = {}, _define_property$3$1(_obj3, Context, 'Context'), _define_property$3$1(_obj3, FunctionDefinition, 'FunctionDefinition'), _define_property$3$1(_obj3, ForExpression, 'ForExpression'), _define_property$3$1(_obj3, List, 'List'), _define_property$3$1(_obj3, IfExpression, 'IfExpression'), _define_property$3$1(_obj3, QuantifiedExpression, 'QuantifiedExpression'), _define_property$3$1(_obj3, PathExpression, 'PathExpression'), _define_property$3$1(_obj3, FunctionInvocation, 'FunctionInvocation'), _define_property$3$1(_obj3, FilterExpression, 'FilterExpression'), _define_property$3$1(_obj3, ArithmeticExpression, 'ArithmeticExpression'), _obj3);
22960
+ var contextEnds = (_obj3 = {}, _define_property$4$1(_obj3, Context, 'Context'), _define_property$4$1(_obj3, FunctionDefinition, 'FunctionDefinition'), _define_property$4$1(_obj3, ForExpression, 'ForExpression'), _define_property$4$1(_obj3, List, 'List'), _define_property$4$1(_obj3, IfExpression, 'IfExpression'), _define_property$4$1(_obj3, QuantifiedExpression, 'QuantifiedExpression'), _define_property$4$1(_obj3, PathExpression, 'PathExpression'), _define_property$4$1(_obj3, FunctionInvocation, 'FunctionInvocation'), _define_property$4$1(_obj3, FilterExpression, 'FilterExpression'), _define_property$4$1(_obj3, ArithmeticExpression, 'ArithmeticExpression'), _obj3);
22962
22961
  /**
22963
22962
  * A simple producer that retrievs a value from
22964
22963
  * a given context. Used to lazily take things.
@@ -23046,7 +23045,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
23046
23045
  */ key: "set",
23047
23046
  value: function set(key, value) {
23048
23047
  var constructor = /** @type { typeof VariableContext } */ this.constructor;
23049
- return constructor.of(_object_spread_props$4(_object_spread$1$1({}, this.value), _define_property$3$1({}, key, value)));
23048
+ return constructor.of(_object_spread_props$1$1(_object_spread$2$1({}, this.value), _define_property$4$1({}, key, value)));
23050
23049
  }
23051
23050
  },
23052
23051
  {
@@ -23110,7 +23109,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
23110
23109
  if ((typeof context === "undefined" ? "undefined" : _type_of$z(context)) !== 'object') {
23111
23110
  return {};
23112
23111
  }
23113
- return _object_spread$1$1({}, context);
23112
+ return _object_spread$2$1({}, context);
23114
23113
  }
23115
23114
  },
23116
23115
  {
@@ -23128,13 +23127,13 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
23128
23127
  return reduce$1(this.__unwrap(other), function(merged, value, key) {
23129
23128
  if (_instanceof$f(value, ValueProducer)) {
23130
23129
  // keep value producers in tact
23131
- return _object_spread_props$4(_object_spread$1$1({}, merged), _define_property$3$1({}, key, value));
23130
+ return _object_spread_props$1$1(_object_spread$2$1({}, merged), _define_property$4$1({}, key, value));
23132
23131
  }
23133
23132
  value = _this.__unwrap(value);
23134
23133
  if (has$2(merged, key)) {
23135
23134
  value = _this.__merge(_this.__unwrap(merged[key]), value);
23136
23135
  }
23137
- return _object_spread_props$4(_object_spread$1$1({}, merged), _define_property$3$1({}, key, value));
23136
+ return _object_spread_props$1$1(_object_spread$2$1({}, merged), _define_property$4$1({}, key, value));
23138
23137
  }, this.__unwrap(context));
23139
23138
  }
23140
23139
  }
@@ -23353,7 +23352,7 @@ var Variables = /*#__PURE__*/ function() {
23353
23352
  */ key: "assign",
23354
23353
  value: function assign() {
23355
23354
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
23356
- return Variables.of(_object_spread$1$1({}, this, options));
23355
+ return Variables.of(_object_spread$2$1({}, this, options));
23357
23356
  }
23358
23357
  },
23359
23358
  {
@@ -23368,7 +23367,7 @@ var Variables = /*#__PURE__*/ function() {
23368
23367
  context: this.context,
23369
23368
  parent: this.parent
23370
23369
  };
23371
- return Variables.of(_object_spread$1$1({}, defaultOptions, options));
23370
+ return Variables.of(_object_spread$2$1({}, defaultOptions, options));
23372
23371
  }
23373
23372
  }
23374
23373
  ], [
@@ -23851,7 +23850,7 @@ function _create_class$q(Constructor, protoProps, staticProps) {
23851
23850
  if (protoProps) _defineProperties$q(Constructor.prototype, protoProps);
23852
23851
  return Constructor;
23853
23852
  }
23854
- function _define_property$2$1(obj, key, value) {
23853
+ function _define_property$3$1(obj, key, value) {
23855
23854
  if (key in obj) {
23856
23855
  Object.defineProperty(obj, key, {
23857
23856
  value: value,
@@ -25158,7 +25157,7 @@ var builtins = {
25158
25157
  if (key in context) {
25159
25158
  return FALSE;
25160
25159
  }
25161
- return Object.assign(Object.assign({}, context), _define_property$2$1({}, entry.key, entry.value));
25160
+ return Object.assign(Object.assign({}, context), _define_property$3$1({}, entry.key, entry.value));
25162
25161
  }, {});
25163
25162
  if (context === FALSE) {
25164
25163
  return null;
@@ -25211,7 +25210,7 @@ var builtins = {
25211
25210
  return null;
25212
25211
  }
25213
25212
  }
25214
- return Object.assign(Object.assign({}, context), _define_property$2$1({}, key, value));
25213
+ return Object.assign(Object.assign({}, context), _define_property$3$1({}, key, value));
25215
25214
  }
25216
25215
  function matches(a, b) {
25217
25216
  return a === b;
@@ -25938,7 +25937,7 @@ function evalNode(node, input, args) {
25938
25937
  return function(context) {
25939
25938
  return args.slice(1, -1).reduce(function(obj, arg) {
25940
25939
  var _arg = _sliced_to_array$1$1(arg(Object.assign(Object.assign({}, context), obj)), 2), key = _arg[0], value = _arg[1];
25941
- return Object.assign(Object.assign({}, obj), _define_property$2$1({}, key, value));
25940
+ return Object.assign(Object.assign({}, obj), _define_property$3$1({}, key, value));
25942
25941
  }, {});
25943
25942
  };
25944
25943
  case 'FunctionBody':
@@ -26435,7 +26434,7 @@ function extractValue(context, prop, _target) {
26435
26434
  'range'
26436
26435
  ].includes(getType(target))) {
26437
26436
  return target.map(function(t) {
26438
- return _define_property$2$1({}, prop, t);
26437
+ return _define_property$3$1({}, prop, t);
26439
26438
  });
26440
26439
  }
26441
26440
  return null;
@@ -42899,7 +42898,7 @@ function _class_call_check$1$1(instance, Constructor) {
42899
42898
  throw new TypeError("Cannot call a class as a function");
42900
42899
  }
42901
42900
  }
42902
- function _define_property$1$1(obj, key, value) {
42901
+ function _define_property$2$1(obj, key, value) {
42903
42902
  if (key in obj) {
42904
42903
  Object.defineProperty(obj, key, {
42905
42904
  value: value,
@@ -42979,7 +42978,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
42979
42978
  _class_call_check$1$1(this, CelParser);
42980
42979
  var _this;
42981
42980
  _this = _super.call(this, allTokens);
42982
- _define_property$1$1(_assert_this_initialized$1$1(_this), "expr", _this.RULE('expr', function() {
42981
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "expr", _this.RULE('expr', function() {
42983
42982
  _this.SUBRULE(_this.conditionalOr, {
42984
42983
  LABEL: 'conditionalOr'
42985
42984
  });
@@ -42994,7 +42993,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
42994
42993
  });
42995
42994
  });
42996
42995
  }));
42997
- _define_property$1$1(_assert_this_initialized$1$1(_this), "conditionalAnd", _this.RULE('conditionalAnd', function() {
42996
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "conditionalAnd", _this.RULE('conditionalAnd', function() {
42998
42997
  _this.SUBRULE(_this.relation, {
42999
42998
  LABEL: 'lhs'
43000
42999
  });
@@ -43005,7 +43004,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43005
43004
  });
43006
43005
  });
43007
43006
  }));
43008
- _define_property$1$1(_assert_this_initialized$1$1(_this), "conditionalOr", _this.RULE('conditionalOr', function() {
43007
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "conditionalOr", _this.RULE('conditionalOr', function() {
43009
43008
  _this.SUBRULE(_this.conditionalAnd, {
43010
43009
  LABEL: 'lhs'
43011
43010
  });
@@ -43016,7 +43015,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43016
43015
  });
43017
43016
  });
43018
43017
  }));
43019
- _define_property$1$1(_assert_this_initialized$1$1(_this), "relation", _this.RULE('relation', function() {
43018
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "relation", _this.RULE('relation', function() {
43020
43019
  _this.SUBRULE(_this.addition, {
43021
43020
  LABEL: 'lhs'
43022
43021
  });
@@ -43027,7 +43026,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43027
43026
  });
43028
43027
  });
43029
43028
  }));
43030
- _define_property$1$1(_assert_this_initialized$1$1(_this), "addition", _this.RULE('addition', function() {
43029
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "addition", _this.RULE('addition', function() {
43031
43030
  _this.SUBRULE(_this.multiplication, {
43032
43031
  LABEL: 'lhs'
43033
43032
  });
@@ -43038,7 +43037,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43038
43037
  });
43039
43038
  });
43040
43039
  }));
43041
- _define_property$1$1(_assert_this_initialized$1$1(_this), "multiplication", _this.RULE('multiplication', function() {
43040
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "multiplication", _this.RULE('multiplication', function() {
43042
43041
  _this.SUBRULE(_this.unaryExpression, {
43043
43042
  LABEL: 'lhs'
43044
43043
  });
@@ -43049,13 +43048,13 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43049
43048
  });
43050
43049
  });
43051
43050
  }));
43052
- _define_property$1$1(_assert_this_initialized$1$1(_this), "unaryExpression", _this.RULE('unaryExpression', function() {
43051
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "unaryExpression", _this.RULE('unaryExpression', function() {
43053
43052
  _this.MANY(function() {
43054
43053
  _this.CONSUME(UnaryOperator);
43055
43054
  });
43056
43055
  _this.SUBRULE(_this.atomicExpression);
43057
43056
  }));
43058
- _define_property$1$1(_assert_this_initialized$1$1(_this), "parenthesisExpression", _this.RULE('parenthesisExpression', function() {
43057
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "parenthesisExpression", _this.RULE('parenthesisExpression', function() {
43059
43058
  _this.CONSUME(OpenParenthesis, {
43060
43059
  LABEL: 'open'
43061
43060
  });
@@ -43064,7 +43063,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43064
43063
  LABEL: 'close'
43065
43064
  });
43066
43065
  }));
43067
- _define_property$1$1(_assert_this_initialized$1$1(_this), "listExpression", _this.RULE('listExpression', function() {
43066
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "listExpression", _this.RULE('listExpression', function() {
43068
43067
  _this.CONSUME(OpenBracket);
43069
43068
  _this.OPTION(function() {
43070
43069
  _this.SUBRULE(_this.expr, {
@@ -43084,7 +43083,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43084
43083
  });
43085
43084
  });
43086
43085
  }));
43087
- _define_property$1$1(_assert_this_initialized$1$1(_this), "mapExpression", _this.RULE('mapExpression', function() {
43086
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "mapExpression", _this.RULE('mapExpression', function() {
43088
43087
  _this.CONSUME(OpenCurlyBracket);
43089
43088
  _this.MANY(function() {
43090
43089
  _this.SUBRULE(_this.mapKeyValues, {
@@ -43109,7 +43108,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43109
43108
  ]);
43110
43109
  });
43111
43110
  }));
43112
- _define_property$1$1(_assert_this_initialized$1$1(_this), "mapKeyValues", _this.RULE('mapKeyValues', function() {
43111
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "mapKeyValues", _this.RULE('mapKeyValues', function() {
43113
43112
  _this.SUBRULE(_this.expr, {
43114
43113
  LABEL: 'key'
43115
43114
  });
@@ -43121,7 +43120,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43121
43120
  _this.CONSUME(Comma);
43122
43121
  });
43123
43122
  }));
43124
- _define_property$1$1(_assert_this_initialized$1$1(_this), "macrosExpression", _this.RULE('macrosExpression', function() {
43123
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "macrosExpression", _this.RULE('macrosExpression', function() {
43125
43124
  _this.CONSUME(Identifier);
43126
43125
  _this.CONSUME(OpenParenthesis);
43127
43126
  _this.OPTION(function() {
@@ -43137,7 +43136,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43137
43136
  });
43138
43137
  _this.CONSUME(CloseParenthesis);
43139
43138
  }));
43140
- _define_property$1$1(_assert_this_initialized$1$1(_this), "identifierExpression", _this.RULE('identifierExpression', function() {
43139
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "identifierExpression", _this.RULE('identifierExpression', function() {
43141
43140
  _this.CONSUME(Identifier);
43142
43141
  _this.MANY(function() {
43143
43142
  _this.OR([
@@ -43156,7 +43155,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43156
43155
  ]);
43157
43156
  });
43158
43157
  }));
43159
- _define_property$1$1(_assert_this_initialized$1$1(_this), "identifierDotExpression", _this.RULE('identifierDotExpression', function() {
43158
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "identifierDotExpression", _this.RULE('identifierDotExpression', function() {
43160
43159
  _this.CONSUME(Dot);
43161
43160
  _this.CONSUME(Identifier);
43162
43161
  // Optional method call with arguments (for collection macros)
@@ -43176,12 +43175,12 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43176
43175
  _this.CONSUME(CloseParenthesis);
43177
43176
  });
43178
43177
  }));
43179
- _define_property$1$1(_assert_this_initialized$1$1(_this), "indexExpression", _this.RULE('indexExpression', function() {
43178
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "indexExpression", _this.RULE('indexExpression', function() {
43180
43179
  _this.CONSUME(OpenBracket);
43181
43180
  _this.SUBRULE(_this.expr);
43182
43181
  _this.CONSUME(CloseBracket);
43183
43182
  }));
43184
- _define_property$1$1(_assert_this_initialized$1$1(_this), "atomicExpression", _this.RULE('atomicExpression', function() {
43183
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "atomicExpression", _this.RULE('atomicExpression', function() {
43185
43184
  _this.OR([
43186
43185
  {
43187
43186
  ALT: function() {
@@ -43290,7 +43289,7 @@ function _create_class$w(Constructor, protoProps, staticProps) {
43290
43289
  if (protoProps) _defineProperties$w(Constructor.prototype, protoProps);
43291
43290
  return Constructor;
43292
43291
  }
43293
- function _define_property$8(obj, key, value) {
43292
+ function _define_property$1$1(obj, key, value) {
43294
43293
  if (key in obj) {
43295
43294
  Object.defineProperty(obj, key, {
43296
43295
  value: value,
@@ -43362,7 +43361,7 @@ function _non_iterable_rest$6() {
43362
43361
  function _non_iterable_spread$7() {
43363
43362
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
43364
43363
  }
43365
- function _object_spread$7(target) {
43364
+ function _object_spread$1$1(target) {
43366
43365
  for(var i = 1; i < arguments.length; i++){
43367
43366
  var source = arguments[i] != null ? arguments[i] : {};
43368
43367
  var ownKeys = Object.keys(source);
@@ -43372,7 +43371,7 @@ function _object_spread$7(target) {
43372
43371
  }));
43373
43372
  }
43374
43373
  ownKeys.forEach(function(key) {
43375
- _define_property$8(target, key, source[key]);
43374
+ _define_property$1$1(target, key, source[key]);
43376
43375
  });
43377
43376
  }
43378
43377
  return target;
@@ -43458,13 +43457,13 @@ var CelVisitor = /*#__PURE__*/ function(BaseCelVisitor) {
43458
43457
  _class_call_check$B(this, CelVisitor);
43459
43458
  var _this;
43460
43459
  _this = _super.call(this);
43461
- _define_property$8(_assert_this_initialized$l(_this), "context", void 0);
43460
+ _define_property$1$1(_assert_this_initialized$l(_this), "context", void 0);
43462
43461
  /**
43463
43462
  * Tracks the current mode of the visitor to handle special cases.
43464
- */ _define_property$8(_assert_this_initialized$l(_this), "mode", Mode.normal);
43465
- _define_property$8(_assert_this_initialized$l(_this), "functions", void 0);
43463
+ */ _define_property$1$1(_assert_this_initialized$l(_this), "mode", Mode.normal);
43464
+ _define_property$1$1(_assert_this_initialized$l(_this), "functions", void 0);
43466
43465
  _this.context = context || {};
43467
- _this.functions = _object_spread$7({}, defaultFunctions, functions || {});
43466
+ _this.functions = _object_spread$1$1({}, defaultFunctions, functions || {});
43468
43467
  _this.validateVisitor();
43469
43468
  return _this;
43470
43469
  }
@@ -44205,6 +44204,198 @@ function evaluate(expression, context, functions) {
44205
44204
  }
44206
44205
  return toAstVisitorInstance.visit(result.cst);
44207
44206
  }
44207
+ // Latin-1 Supplement
44208
+ // upper case ranges
44209
+ // [À-ÖØ-ß]
44210
+ // lower case ranges
44211
+ // [à-öø-ÿ]
44212
+ var magicSplit = /^[a-zà-öø-ÿа-я]+|[A-ZÀ-ÖØ-ßА-Я][a-zà-öø-ÿа-я]+|[a-zà-öø-ÿа-я]+|[0-9]+|[A-ZÀ-ÖØ-ßА-Я]+(?![a-zà-öø-ÿа-я])/g;
44213
+ var spaceSplit = /\S+/g;
44214
+ /**
44215
+ * A string.matchAll function that will return an array of "string parts" and the indexes at which it split each part
44216
+ */ function getPartsAndIndexes(string, splitRegex) {
44217
+ var result = {
44218
+ parts: [],
44219
+ prefixes: []
44220
+ };
44221
+ var matches = string.matchAll(splitRegex);
44222
+ var lastWordEndIndex = 0;
44223
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
44224
+ try {
44225
+ for(var _iterator = matches[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
44226
+ var match = _step.value;
44227
+ if (typeof match.index !== 'number') continue;
44228
+ var word = match[0];
44229
+ result.parts.push(word);
44230
+ var prefix = string.slice(lastWordEndIndex, match.index).trim();
44231
+ result.prefixes.push(prefix);
44232
+ lastWordEndIndex = match.index + word.length;
44233
+ }
44234
+ } catch (err) {
44235
+ _didIteratorError = true;
44236
+ _iteratorError = err;
44237
+ } finally{
44238
+ try {
44239
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
44240
+ _iterator.return();
44241
+ }
44242
+ } finally{
44243
+ if (_didIteratorError) {
44244
+ throw _iteratorError;
44245
+ }
44246
+ }
44247
+ }
44248
+ var tail = string.slice(lastWordEndIndex).trim();
44249
+ if (tail) {
44250
+ result.parts.push('');
44251
+ result.prefixes.push(tail);
44252
+ }
44253
+ return result;
44254
+ }
44255
+ /**
44256
+ * A function that splits a string on words and returns an array of words.
44257
+ * - It can prefix each word with a given character
44258
+ * - It can strip or keep special characters, this affects the logic for adding a prefix as well
44259
+ */ function splitAndPrefix(string, options) {
44260
+ var _ref = options || {}, _ref_keepSpecialCharacters = _ref.keepSpecialCharacters, keepSpecialCharacters = _ref_keepSpecialCharacters === void 0 ? false : _ref_keepSpecialCharacters, keep = _ref.keep, _ref_prefix = _ref.prefix, prefix = _ref_prefix === void 0 ? '' : _ref_prefix;
44261
+ var normalString = string.trim().normalize('NFC');
44262
+ var hasSpaces = normalString.includes(' ');
44263
+ var split = hasSpaces ? spaceSplit : magicSplit;
44264
+ var partsAndIndexes = getPartsAndIndexes(normalString, split);
44265
+ return partsAndIndexes.parts.map(function(_part, i) {
44266
+ var foundPrefix = partsAndIndexes.prefixes[i] || '';
44267
+ var part = _part;
44268
+ if (keepSpecialCharacters === false) {
44269
+ if (keep) {
44270
+ part = part.normalize('NFD').replace(new RegExp("[^a-zA-Z\xd8\xdf\xf80-9".concat(keep.join(''), "]"), 'g'), '');
44271
+ }
44272
+ if (!keep) {
44273
+ part = part.normalize('NFD').replace(/[^a-zA-ZØßø0-9]/g, '');
44274
+ foundPrefix = '';
44275
+ }
44276
+ }
44277
+ if (keep && foundPrefix) {
44278
+ foundPrefix = foundPrefix.replace(new RegExp("[^".concat(keep.join(''), "]"), 'g'), '');
44279
+ }
44280
+ // the first word doesn't need a prefix, so only return the found prefix
44281
+ if (i === 0) {
44282
+ // console.log(`foundPrefix → `, foundPrefix)
44283
+ return foundPrefix + part;
44284
+ }
44285
+ if (!foundPrefix && !part) return '';
44286
+ if (!hasSpaces) {
44287
+ // return the found prefix OR fall back to a given prefix
44288
+ return (foundPrefix || prefix) + part;
44289
+ }
44290
+ // space based sentence was split on spaces, so only return found prefixes
44291
+ if (!foundPrefix && prefix.match(/\s/)) {
44292
+ // in this case we have no more found prefix, it was trimmed, but we're looking to add a space
44293
+ // so let's return that space
44294
+ return ' ' + part;
44295
+ }
44296
+ return (foundPrefix || prefix) + part;
44297
+ }).filter(Boolean);
44298
+ }
44299
+ /**
44300
+ * Capitalises a single word
44301
+ * @returns the word with the first character in uppercase and the rest in lowercase
44302
+ */ function capitaliseWord(string) {
44303
+ var match = string.matchAll(magicSplit).next().value;
44304
+ var firstLetterIndex = match ? match.index : 0;
44305
+ return string.slice(0, firstLetterIndex + 1).toUpperCase() + string.slice(firstLetterIndex + 1).toLowerCase();
44306
+ }
44307
+ function _define_property$8(obj, key, value) {
44308
+ if (key in obj) {
44309
+ Object.defineProperty(obj, key, {
44310
+ value: value,
44311
+ enumerable: true,
44312
+ configurable: true,
44313
+ writable: true
44314
+ });
44315
+ } else {
44316
+ obj[key] = value;
44317
+ }
44318
+ return obj;
44319
+ }
44320
+ function _object_spread$7(target) {
44321
+ for(var i = 1; i < arguments.length; i++){
44322
+ var source = arguments[i] != null ? arguments[i] : {};
44323
+ var ownKeys = Object.keys(source);
44324
+ if (typeof Object.getOwnPropertySymbols === "function") {
44325
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
44326
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
44327
+ }));
44328
+ }
44329
+ ownKeys.forEach(function(key) {
44330
+ _define_property$8(target, key, source[key]);
44331
+ });
44332
+ }
44333
+ return target;
44334
+ }
44335
+ function ownKeys$4(object, enumerableOnly) {
44336
+ var keys = Object.keys(object);
44337
+ if (Object.getOwnPropertySymbols) {
44338
+ var symbols = Object.getOwnPropertySymbols(object);
44339
+ keys.push.apply(keys, symbols);
44340
+ }
44341
+ return keys;
44342
+ }
44343
+ function _object_spread_props$4(target, source) {
44344
+ source = source != null ? source : {};
44345
+ if (Object.getOwnPropertyDescriptors) {
44346
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
44347
+ } else {
44348
+ ownKeys$4(Object(source)).forEach(function(key) {
44349
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
44350
+ });
44351
+ }
44352
+ return target;
44353
+ }
44354
+ /**
44355
+ * # 🐪 camelCase
44356
+ * converts a string to camelCase
44357
+ * - first lowercase then all capitalised
44358
+ * - *strips away* special characters by default
44359
+ *
44360
+ * @example
44361
+ * camelCase('$catDog') === 'catDog'
44362
+ * @example
44363
+ * camelCase('$catDog', { keepSpecialCharacters: true }) === '$catDog'
44364
+ */ function camelCase(string, options) {
44365
+ return splitAndPrefix(string, options).reduce(function(result, word, index) {
44366
+ return index === 0 || !(word[0] || '').match(magicSplit) ? result + word.toLowerCase() : result + capitaliseWord(word);
44367
+ }, '');
44368
+ }
44369
+ /**
44370
+ * # 🥙 kebab-case
44371
+ * converts a string to kebab-case
44372
+ * - hyphenated lowercase
44373
+ * - *strips away* special characters by default
44374
+ *
44375
+ * @example
44376
+ * kebabCase('$catDog') === 'cat-dog'
44377
+ * @example
44378
+ * kebabCase('$catDog', { keepSpecialCharacters: true }) === '$cat-dog'
44379
+ */ function kebabCase(string, options) {
44380
+ return splitAndPrefix(string, _object_spread_props$4(_object_spread$7({}, options), {
44381
+ prefix: '-'
44382
+ })).join('').toLowerCase();
44383
+ }
44384
+ /**
44385
+ * # 🐍 snake_case
44386
+ * converts a string to snake_case
44387
+ * - underscored lowercase
44388
+ * - *strips away* special characters by default
44389
+ *
44390
+ * @example
44391
+ * snakeCase('$catDog') === 'cat_dog'
44392
+ * @example
44393
+ * snakeCase('$catDog', { keepSpecialCharacters: true }) === '$cat_dog'
44394
+ */ function snakeCase(string, options) {
44395
+ return splitAndPrefix(string, _object_spread_props$4(_object_spread$7({}, options), {
44396
+ prefix: '_'
44397
+ })).join('').toLowerCase();
44398
+ }
44208
44399
  const Handlebars = handlebars_min || HandlebarsNamespace;
44209
44400
  Handlebars.registerHelper('JSONstringify', function(value) {
44210
44401
  return JSON.stringify(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-client-mcp",
3
- "version": "0.117.7",
3
+ "version": "0.117.9",
4
4
  "main": "./index.cjs.js",
5
5
  "module": "./index.esm.js",
6
6
  "types": "./dist/index.d.ts",