@digipair/skill-mcp 0.117.7 → 0.117.8

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 require$$0$2 from 'path';
3
2
  import require$$0$3 from 'buffer';
4
3
  import require$$1$1 from 'string_decoder';
@@ -8198,7 +8197,7 @@ function _create_class$v(Constructor, protoProps, staticProps) {
8198
8197
  if (staticProps) _defineProperties$v(Constructor, staticProps);
8199
8198
  return Constructor;
8200
8199
  }
8201
- function _define_property$4$1(obj, key, value) {
8200
+ function _define_property$5$1(obj, key, value) {
8202
8201
  if (key in obj) {
8203
8202
  Object.defineProperty(obj, key, {
8204
8203
  value: value,
@@ -8273,7 +8272,7 @@ function _non_iterable_rest$5$1() {
8273
8272
  function _non_iterable_spread$6$1() {
8274
8273
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8275
8274
  }
8276
- function _object_spread$2$1(target) {
8275
+ function _object_spread$3$1(target) {
8277
8276
  for(var i = 1; i < arguments.length; i++){
8278
8277
  var source = arguments[i] != null ? arguments[i] : {};
8279
8278
  var ownKeys = Object.keys(source);
@@ -8283,12 +8282,12 @@ function _object_spread$2$1(target) {
8283
8282
  }));
8284
8283
  }
8285
8284
  ownKeys.forEach(function(key) {
8286
- _define_property$4$1(target, key, source[key]);
8285
+ _define_property$5$1(target, key, source[key]);
8287
8286
  });
8288
8287
  }
8289
8288
  return target;
8290
8289
  }
8291
- function ownKeys$1$1(object, enumerableOnly) {
8290
+ function ownKeys$2$1(object, enumerableOnly) {
8292
8291
  var keys = Object.keys(object);
8293
8292
  if (Object.getOwnPropertySymbols) {
8294
8293
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8296,12 +8295,12 @@ function ownKeys$1$1(object, enumerableOnly) {
8296
8295
  }
8297
8296
  return keys;
8298
8297
  }
8299
- function _object_spread_props$1$1(target, source) {
8298
+ function _object_spread_props$2$1(target, source) {
8300
8299
  source = source != null ? source : {};
8301
8300
  if (Object.getOwnPropertyDescriptors) {
8302
8301
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8303
8302
  } else {
8304
- ownKeys$1$1(Object(source)).forEach(function(key) {
8303
+ ownKeys$2$1(Object(source)).forEach(function(key) {
8305
8304
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8306
8305
  });
8307
8306
  }
@@ -9172,7 +9171,7 @@ function getCachedWeekInfo(locString) {
9172
9171
  data = "getWeekInfo" in locale ? locale.getWeekInfo() : locale.weekInfo;
9173
9172
  // minimalDays was removed from WeekInfo: https://github.com/tc39/proposal-intl-locale-info/issues/86
9174
9173
  if (!("minimalDays" in data)) {
9175
- data = _object_spread$2$1({}, fallbackWeekSettings, data);
9174
+ data = _object_spread$3$1({}, fallbackWeekSettings, data);
9176
9175
  }
9177
9176
  weekInfoCache.set(locString, data);
9178
9177
  }
@@ -9279,7 +9278,7 @@ function supportsFastNumbers(loc) {
9279
9278
  "floor"
9280
9279
  ]);
9281
9280
  if (!forceSimple || Object.keys(otherOpts).length > 0) {
9282
- var intlOpts = _object_spread$2$1({
9281
+ var intlOpts = _object_spread$3$1({
9283
9282
  useGrouping: false
9284
9283
  }, opts);
9285
9284
  if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;
@@ -9349,7 +9348,7 @@ function supportsFastNumbers(loc) {
9349
9348
  });
9350
9349
  this.originalZone = dt.zone;
9351
9350
  }
9352
- var intlOpts = _object_spread$2$1({}, this.opts);
9351
+ var intlOpts = _object_spread$3$1({}, this.opts);
9353
9352
  intlOpts.timeZone = intlOpts.timeZone || z;
9354
9353
  this.dtf = getCachedDTF(intl, intlOpts);
9355
9354
  }
@@ -9380,7 +9379,7 @@ function supportsFastNumbers(loc) {
9380
9379
  locale: _this.dt.locale,
9381
9380
  format: _this.opts.timeZoneName
9382
9381
  });
9383
- return _object_spread_props$1$1(_object_spread$2$1({}, part), {
9382
+ return _object_spread_props$2$1(_object_spread$3$1({}, part), {
9384
9383
  value: offsetName
9385
9384
  });
9386
9385
  } else {
@@ -9405,7 +9404,7 @@ function supportsFastNumbers(loc) {
9405
9404
  */ var PolyRelFormatter = /*#__PURE__*/ function() {
9406
9405
  function PolyRelFormatter(intl, isEnglish, opts) {
9407
9406
  _class_call_check$A(this, PolyRelFormatter);
9408
- this.opts = _object_spread$2$1({
9407
+ this.opts = _object_spread$3$1({
9409
9408
  style: "long"
9410
9409
  }, opts);
9411
9410
  if (!isEnglish && hasRelative()) {
@@ -9500,7 +9499,7 @@ var fallbackWeekSettings = {
9500
9499
  key: "redefaultToEN",
9501
9500
  value: function redefaultToEN() {
9502
9501
  var alts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
9503
- return this.clone(_object_spread_props$1$1(_object_spread$2$1({}, alts), {
9502
+ return this.clone(_object_spread_props$2$1(_object_spread$3$1({}, alts), {
9504
9503
  defaultToEN: true
9505
9504
  }));
9506
9505
  }
@@ -9509,7 +9508,7 @@ var fallbackWeekSettings = {
9509
9508
  key: "redefaultToSystem",
9510
9509
  value: function redefaultToSystem() {
9511
9510
  var alts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
9512
- return this.clone(_object_spread_props$1$1(_object_spread$2$1({}, alts), {
9511
+ return this.clone(_object_spread_props$2$1(_object_spread$3$1({}, alts), {
9513
9512
  defaultToEN: false
9514
9513
  }));
9515
9514
  }
@@ -10388,7 +10387,7 @@ function isoWeekdayToLocal(isoWeekday, startOfWeek) {
10388
10387
  } else {
10389
10388
  weekYear = year;
10390
10389
  }
10391
- return _object_spread$2$1({
10390
+ return _object_spread$3$1({
10392
10391
  weekYear: weekYear,
10393
10392
  weekNumber: weekNumber,
10394
10393
  weekday: weekday
@@ -10408,7 +10407,7 @@ function weekToGregorian(weekData) {
10408
10407
  year = weekYear;
10409
10408
  }
10410
10409
  var _uncomputeOrdinal = uncomputeOrdinal(year, ordinal), month = _uncomputeOrdinal.month, day = _uncomputeOrdinal.day;
10411
- return _object_spread$2$1({
10410
+ return _object_spread$3$1({
10412
10411
  year: year,
10413
10412
  month: month,
10414
10413
  day: day
@@ -10417,7 +10416,7 @@ function weekToGregorian(weekData) {
10417
10416
  function gregorianToOrdinal(gregData) {
10418
10417
  var year = gregData.year, month = gregData.month, day = gregData.day;
10419
10418
  var ordinal = computeOrdinal(year, month, day);
10420
- return _object_spread$2$1({
10419
+ return _object_spread$3$1({
10421
10420
  year: year,
10422
10421
  ordinal: ordinal
10423
10422
  }, timeObject(gregData));
@@ -10425,7 +10424,7 @@ function gregorianToOrdinal(gregData) {
10425
10424
  function ordinalToGregorian(ordinalData) {
10426
10425
  var year = ordinalData.year, ordinal = ordinalData.ordinal;
10427
10426
  var _uncomputeOrdinal = uncomputeOrdinal(year, ordinal), month = _uncomputeOrdinal.month, day = _uncomputeOrdinal.day;
10428
- return _object_spread$2$1({
10427
+ return _object_spread$3$1({
10429
10428
  year: year,
10430
10429
  month: month,
10431
10430
  day: day
@@ -10721,7 +10720,7 @@ function parseZoneInfo(ts, offsetFormat, locale) {
10721
10720
  if (timeZone) {
10722
10721
  intlOpts.timeZone = timeZone;
10723
10722
  }
10724
- var modified = _object_spread$2$1({
10723
+ var modified = _object_spread$3$1({
10725
10724
  timeZoneName: offsetFormat
10726
10725
  }, intlOpts);
10727
10726
  var parsed = new Intl.DateTimeFormat(locale, modified).formatToParts(date).find(function(m) {
@@ -11080,7 +11079,7 @@ var macroTokenToFormatOpts = {
11080
11079
  if (this.systemLoc === null) {
11081
11080
  this.systemLoc = this.loc.redefaultToSystem();
11082
11081
  }
11083
- var df = this.systemLoc.dtFormatter(dt, _object_spread$2$1({}, this.opts, opts));
11082
+ var df = this.systemLoc.dtFormatter(dt, _object_spread$3$1({}, this.opts, opts));
11084
11083
  return df.format();
11085
11084
  }
11086
11085
  },
@@ -11088,7 +11087,7 @@ var macroTokenToFormatOpts = {
11088
11087
  key: "dtFormatter",
11089
11088
  value: function dtFormatter(dt) {
11090
11089
  var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
11091
- return this.loc.dtFormatter(dt, _object_spread$2$1({}, this.opts, opts));
11090
+ return this.loc.dtFormatter(dt, _object_spread$3$1({}, this.opts, opts));
11092
11091
  }
11093
11092
  },
11094
11093
  {
@@ -11124,7 +11123,7 @@ var macroTokenToFormatOpts = {
11124
11123
  if (this.opts.forceSimple) {
11125
11124
  return padStart(n, p);
11126
11125
  }
11127
- var opts = _object_spread$2$1({}, this.opts);
11126
+ var opts = _object_spread$3$1({}, this.opts);
11128
11127
  if (p > 0) {
11129
11128
  opts.padTo = p;
11130
11129
  }
@@ -11540,7 +11539,7 @@ function combineExtractors() {
11540
11539
  var _param = _sliced_to_array$5$1(param, 3), mergedVals = _param[0], mergedZone = _param[1], cursor = _param[2];
11541
11540
  var _ex = _sliced_to_array$5$1(ex(m, cursor), 3), val = _ex[0], zone = _ex[1], next = _ex[2];
11542
11541
  return [
11543
- _object_spread$2$1({}, mergedVals, val),
11542
+ _object_spread$3$1({}, mergedVals, val),
11544
11543
  zone || mergedZone,
11545
11544
  next
11546
11545
  ];
@@ -11851,7 +11850,7 @@ var lowOrderMatrix = {
11851
11850
  seconds: {
11852
11851
  milliseconds: 1000
11853
11852
  }
11854
- }, casualMatrix = _object_spread$2$1({
11853
+ }, casualMatrix = _object_spread$3$1({
11855
11854
  years: {
11856
11855
  quarters: 4,
11857
11856
  months: 12,
@@ -11879,7 +11878,7 @@ var lowOrderMatrix = {
11879
11878
  seconds: 30 * 24 * 60 * 60,
11880
11879
  milliseconds: 30 * 24 * 60 * 60 * 1000
11881
11880
  }
11882
- }, lowOrderMatrix), daysInYearAccurate = 146097.0 / 400, daysInMonthAccurate = 146097.0 / 4800, accurateMatrix = _object_spread$2$1({
11881
+ }, lowOrderMatrix), daysInYearAccurate = 146097.0 / 400, daysInMonthAccurate = 146097.0 / 4800, accurateMatrix = _object_spread$3$1({
11883
11882
  years: {
11884
11883
  quarters: 4,
11885
11884
  months: 12,
@@ -11926,7 +11925,7 @@ function clone$1(dur, alts) {
11926
11925
  var clear = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
11927
11926
  // deep merge for vals
11928
11927
  var conf = {
11929
- values: clear ? alts.values : _object_spread$2$1({}, dur.values, alts.values || {}),
11928
+ values: clear ? alts.values : _object_spread$3$1({}, dur.values, alts.values || {}),
11930
11929
  loc: dur.loc.clone(alts.loc),
11931
11930
  conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy,
11932
11931
  matrix: alts.matrix || dur.matrix
@@ -12125,7 +12124,7 @@ function removeZeroes(vals) {
12125
12124
  value: function toFormat(fmt) {
12126
12125
  var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
12127
12126
  // reverse-compat since 1.2; we always round down now, never up, and we do it by default
12128
- var fmtOpts = _object_spread_props$1$1(_object_spread$2$1({}, opts), {
12127
+ var fmtOpts = _object_spread_props$2$1(_object_spread$3$1({}, opts), {
12129
12128
  floor: opts.round !== false && opts.floor !== false
12130
12129
  });
12131
12130
  return this.isValid ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt) : INVALID$2;
@@ -12158,7 +12157,7 @@ function removeZeroes(vals) {
12158
12157
  if (isUndefined$2(val) || val === 0 && !showZeros) {
12159
12158
  return null;
12160
12159
  }
12161
- return _this.loc.numberFormatter(_object_spread_props$1$1(_object_spread$2$1({
12160
+ return _this.loc.numberFormatter(_object_spread_props$2$1(_object_spread$3$1({
12162
12161
  style: "unit",
12163
12162
  unitDisplay: "long"
12164
12163
  }, opts), {
@@ -12167,7 +12166,7 @@ function removeZeroes(vals) {
12167
12166
  }).filter(function(n) {
12168
12167
  return n;
12169
12168
  });
12170
- return this.loc.listFormatter(_object_spread$2$1({
12169
+ return this.loc.listFormatter(_object_spread$3$1({
12171
12170
  type: "conjunction",
12172
12171
  style: opts.listStyle || "narrow"
12173
12172
  }, opts)).format(l);
@@ -12181,7 +12180,7 @@ function removeZeroes(vals) {
12181
12180
  */ key: "toObject",
12182
12181
  value: function toObject() {
12183
12182
  if (!this.isValid) return {};
12184
- return _object_spread$2$1({}, this.values);
12183
+ return _object_spread$3$1({}, this.values);
12185
12184
  }
12186
12185
  },
12187
12186
  {
@@ -12234,7 +12233,7 @@ function removeZeroes(vals) {
12234
12233
  if (!this.isValid) return null;
12235
12234
  var millis = this.toMillis();
12236
12235
  if (millis < 0 || millis >= 86400000) return null;
12237
- opts = _object_spread_props$1$1(_object_spread$2$1({
12236
+ opts = _object_spread_props$2$1(_object_spread$3$1({
12238
12237
  suppressMilliseconds: false,
12239
12238
  suppressSeconds: false,
12240
12239
  includePrefix: false,
@@ -12405,7 +12404,7 @@ function removeZeroes(vals) {
12405
12404
  */ key: "set",
12406
12405
  value: function set(values) {
12407
12406
  if (!this.isValid) return this;
12408
- var mixed = _object_spread$2$1({}, this.values, normalizeObject(values, Duration.normalizeUnit));
12407
+ var mixed = _object_spread$3$1({}, this.values, normalizeObject(values, Duration.normalizeUnit));
12409
12408
  return clone$1(this, {
12410
12409
  values: mixed
12411
12410
  });
@@ -14016,7 +14015,7 @@ function diff(earlier, later, units, opts) {
14016
14015
  });
14017
14016
  if (lowerOrderUnits.length === 0) {
14018
14017
  if (highWater < later) {
14019
- highWater = cursor.plus(_define_property$4$1({}, lowestOrder, 1));
14018
+ highWater = cursor.plus(_define_property$5$1({}, lowestOrder, 1));
14020
14019
  }
14021
14020
  if (highWater !== cursor) {
14022
14021
  results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor);
@@ -14576,7 +14575,7 @@ function clone$2(inst, alts) {
14576
14575
  loc: inst.loc,
14577
14576
  invalid: inst.invalid
14578
14577
  };
14579
- return new DateTime(_object_spread_props$1$1(_object_spread$2$1({}, current, alts), {
14578
+ return new DateTime(_object_spread_props$2$1(_object_spread$3$1({}, current, alts), {
14580
14579
  old: current
14581
14580
  }));
14582
14581
  }
@@ -14630,7 +14629,7 @@ function objToTS(obj, offset, zone) {
14630
14629
  }
14631
14630
  // create a new DT instance by adding a duration, adjusting for DSTs
14632
14631
  function adjustTime(inst, dur) {
14633
- 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), {
14632
+ 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), {
14634
14633
  year: year,
14635
14634
  month: month,
14636
14635
  day: Math.min(inst.c.day, daysInMonth(year, month)) + Math.trunc(dur.days) + Math.trunc(dur.weeks) * 7
@@ -14661,7 +14660,7 @@ function adjustTime(inst, dur) {
14661
14660
  function parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) {
14662
14661
  var setZone = opts.setZone, zone = opts.zone;
14663
14662
  if (parsed && Object.keys(parsed).length !== 0 || parsedZone) {
14664
- var interpretationZone = parsedZone || zone, inst = DateTime.fromObject(parsed, _object_spread_props$1$1(_object_spread$2$1({}, opts), {
14663
+ var interpretationZone = parsedZone || zone, inst = DateTime.fromObject(parsed, _object_spread_props$2$1(_object_spread$3$1({}, opts), {
14665
14664
  zone: interpretationZone,
14666
14665
  specificOffset: specificOffset
14667
14666
  }));
@@ -15681,11 +15680,11 @@ function lastOpts(argList) {
15681
15680
  }
15682
15681
  var mixed;
15683
15682
  if (settingWeekStuff) {
15684
- mixed = weekToGregorian(_object_spread$2$1({}, gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek), normalized), minDaysInFirstWeek, startOfWeek);
15683
+ mixed = weekToGregorian(_object_spread$3$1({}, gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek), normalized), minDaysInFirstWeek, startOfWeek);
15685
15684
  } else if (!isUndefined$2(normalized.ordinal)) {
15686
- mixed = ordinalToGregorian(_object_spread$2$1({}, gregorianToOrdinal(this.c), normalized));
15685
+ mixed = ordinalToGregorian(_object_spread$3$1({}, gregorianToOrdinal(this.c), normalized));
15687
15686
  } else {
15688
- mixed = _object_spread$2$1({}, this.toObject(), normalized);
15687
+ mixed = _object_spread$3$1({}, this.toObject(), normalized);
15689
15688
  // if we didn't set the day but we ended up on an overflow date,
15690
15689
  // use the last day of the right month
15691
15690
  if (isUndefined$2(normalized.day)) {
@@ -15804,7 +15803,7 @@ function lastOpts(argList) {
15804
15803
  * @return {DateTime}
15805
15804
  */ key: "endOf",
15806
15805
  value: function endOf(unit, opts) {
15807
- return this.isValid ? this.plus(_define_property$4$1({}, unit, 1)).startOf(unit, opts).minus(1) : this;
15806
+ return this.isValid ? this.plus(_define_property$5$1({}, unit, 1)).startOf(unit, opts).minus(1) : this;
15808
15807
  }
15809
15808
  },
15810
15809
  {
@@ -16132,7 +16131,7 @@ function lastOpts(argList) {
16132
16131
  value: function toObject() {
16133
16132
  var opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
16134
16133
  if (!this.isValid) return {};
16135
- var base = _object_spread$2$1({}, this.c);
16134
+ var base = _object_spread$3$1({}, this.c);
16136
16135
  if (opts.includeConfig) {
16137
16136
  base.outputCalendar = this.outputCalendar;
16138
16137
  base.numberingSystem = this.loc.numberingSystem;
@@ -16172,7 +16171,7 @@ function lastOpts(argList) {
16172
16171
  if (!this.isValid || !otherDateTime.isValid) {
16173
16172
  return Duration.invalid("created by diffing an invalid DateTime");
16174
16173
  }
16175
- var durOpts = _object_spread$2$1({
16174
+ var durOpts = _object_spread$3$1({
16176
16175
  locale: this.locale,
16177
16176
  numberingSystem: this.numberingSystem
16178
16177
  }, opts);
@@ -16276,7 +16275,7 @@ function lastOpts(argList) {
16276
16275
  units = options.unit;
16277
16276
  unit = undefined;
16278
16277
  }
16279
- return diffRelative(base, this.plus(padding), _object_spread_props$1$1(_object_spread$2$1({}, options), {
16278
+ return diffRelative(base, this.plus(padding), _object_spread_props$2$1(_object_spread$3$1({}, options), {
16280
16279
  numeric: "always",
16281
16280
  units: units,
16282
16281
  unit: unit
@@ -16302,7 +16301,7 @@ function lastOpts(argList) {
16302
16301
  if (!this.isValid) return null;
16303
16302
  return diffRelative(options.base || DateTime.fromObject({}, {
16304
16303
  zone: this.zone
16305
- }), this, _object_spread_props$1$1(_object_spread$2$1({}, options), {
16304
+ }), this, _object_spread_props$2$1(_object_spread$3$1({}, options), {
16306
16305
  numeric: "auto",
16307
16306
  units: [
16308
16307
  "years",
@@ -22570,7 +22569,7 @@ function _create_class$r(Constructor, protoProps, staticProps) {
22570
22569
  if (staticProps) _defineProperties$r(Constructor, staticProps);
22571
22570
  return Constructor;
22572
22571
  }
22573
- function _define_property$3$1(obj, key, value) {
22572
+ function _define_property$4$1(obj, key, value) {
22574
22573
  if (key in obj) {
22575
22574
  Object.defineProperty(obj, key, {
22576
22575
  value: value,
@@ -22623,7 +22622,7 @@ function _non_iterable_rest$2$1() {
22623
22622
  function _non_iterable_spread$4$1() {
22624
22623
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
22625
22624
  }
22626
- function _object_spread$1$1(target) {
22625
+ function _object_spread$2$1(target) {
22627
22626
  for(var i = 1; i < arguments.length; i++){
22628
22627
  var source = arguments[i] != null ? arguments[i] : {};
22629
22628
  var ownKeys = Object.keys(source);
@@ -22633,12 +22632,12 @@ function _object_spread$1$1(target) {
22633
22632
  }));
22634
22633
  }
22635
22634
  ownKeys.forEach(function(key) {
22636
- _define_property$3$1(target, key, source[key]);
22635
+ _define_property$4$1(target, key, source[key]);
22637
22636
  });
22638
22637
  }
22639
22638
  return target;
22640
22639
  }
22641
- function ownKeys$k(object, enumerableOnly) {
22640
+ function ownKeys$1$1(object, enumerableOnly) {
22642
22641
  var keys = Object.keys(object);
22643
22642
  if (Object.getOwnPropertySymbols) {
22644
22643
  var symbols = Object.getOwnPropertySymbols(object);
@@ -22646,12 +22645,12 @@ function ownKeys$k(object, enumerableOnly) {
22646
22645
  }
22647
22646
  return keys;
22648
22647
  }
22649
- function _object_spread_props$k(target, source) {
22648
+ function _object_spread_props$1$1(target, source) {
22650
22649
  source = source != null ? source : {};
22651
22650
  if (Object.getOwnPropertyDescriptors) {
22652
22651
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
22653
22652
  } else {
22654
- ownKeys$k(Object(source)).forEach(function(key) {
22653
+ ownKeys$1$1(Object(source)).forEach(function(key) {
22655
22654
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
22656
22655
  });
22657
22656
  }
@@ -22844,14 +22843,14 @@ function indent(str, spaces) {
22844
22843
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
22845
22844
  // match is required
22846
22845
  if (!match) {
22847
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
22846
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
22848
22847
  v: nextMatch1
22849
22848
  };
22850
22849
  }
22851
22850
  var token = match.token, offset = match.offset;
22852
22851
  i1 += offset;
22853
22852
  if (token === ' ') {
22854
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
22853
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22855
22854
  }
22856
22855
  tokens1 = _to_consumable_array$4$1(tokens1).concat([
22857
22856
  token
@@ -22870,7 +22869,7 @@ function indent(str, spaces) {
22870
22869
  if (contextKeys.some(function(el) {
22871
22870
  return el.startsWith(name);
22872
22871
  })) {
22873
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
22872
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22874
22873
  }
22875
22874
  if (dateTimeIdentifiers.some(function(el) {
22876
22875
  return el === name;
@@ -22889,9 +22888,9 @@ function indent(str, spaces) {
22889
22888
  if (dateTimeIdentifiers.some(function(el) {
22890
22889
  return el.startsWith(name);
22891
22890
  })) {
22892
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
22891
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22893
22892
  }
22894
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
22893
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
22895
22894
  v: nextMatch1
22896
22895
  };
22897
22896
  };
@@ -22903,7 +22902,7 @@ function indent(str, spaces) {
22903
22902
  }
22904
22903
  }
22905
22904
  var _obj;
22906
- var identifiersMap = (_obj = {}, _define_property$3$1(_obj, identifier, 'identifier'), _define_property$3$1(_obj, nameIdentifier, 'nameIdentifier'), _obj);
22905
+ var identifiersMap = (_obj = {}, _define_property$4$1(_obj, identifier, 'identifier'), _define_property$4$1(_obj, nameIdentifier, 'nameIdentifier'), _obj);
22907
22906
  var identifiers = new ExternalTokenizer(function(input, stack) {
22908
22907
  LOG_PARSE_DEBUG && console.log('%s: T <identifier | nameIdentifier>', input.pos);
22909
22908
  var nameMatch = parseName(input, stack.context);
@@ -22952,11 +22951,11 @@ var insertSemicolon = new ExternalTokenizer(function(input, stack) {
22952
22951
  }
22953
22952
  });
22954
22953
  var _obj1;
22955
- 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);
22954
+ 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);
22956
22955
  var _obj2;
22957
- 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);
22956
+ 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);
22958
22957
  var _obj3;
22959
- 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);
22958
+ 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);
22960
22959
  /**
22961
22960
  * A simple producer that retrievs a value from
22962
22961
  * a given context. Used to lazily take things.
@@ -23044,7 +23043,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
23044
23043
  */ key: "set",
23045
23044
  value: function set(key, value) {
23046
23045
  var constructor = /** @type { typeof VariableContext } */ this.constructor;
23047
- return constructor.of(_object_spread_props$k(_object_spread$1$1({}, this.value), _define_property$3$1({}, key, value)));
23046
+ return constructor.of(_object_spread_props$1$1(_object_spread$2$1({}, this.value), _define_property$4$1({}, key, value)));
23048
23047
  }
23049
23048
  },
23050
23049
  {
@@ -23108,7 +23107,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
23108
23107
  if ((typeof context === "undefined" ? "undefined" : _type_of$z$1(context)) !== 'object') {
23109
23108
  return {};
23110
23109
  }
23111
- return _object_spread$1$1({}, context);
23110
+ return _object_spread$2$1({}, context);
23112
23111
  }
23113
23112
  },
23114
23113
  {
@@ -23126,13 +23125,13 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
23126
23125
  return reduce$1(this.__unwrap(other), function(merged, value, key) {
23127
23126
  if (_instanceof$f(value, ValueProducer)) {
23128
23127
  // keep value producers in tact
23129
- return _object_spread_props$k(_object_spread$1$1({}, merged), _define_property$3$1({}, key, value));
23128
+ return _object_spread_props$1$1(_object_spread$2$1({}, merged), _define_property$4$1({}, key, value));
23130
23129
  }
23131
23130
  value = _this.__unwrap(value);
23132
23131
  if (has$2(merged, key)) {
23133
23132
  value = _this.__merge(_this.__unwrap(merged[key]), value);
23134
23133
  }
23135
- return _object_spread_props$k(_object_spread$1$1({}, merged), _define_property$3$1({}, key, value));
23134
+ return _object_spread_props$1$1(_object_spread$2$1({}, merged), _define_property$4$1({}, key, value));
23136
23135
  }, this.__unwrap(context));
23137
23136
  }
23138
23137
  }
@@ -23351,7 +23350,7 @@ var Variables = /*#__PURE__*/ function() {
23351
23350
  */ key: "assign",
23352
23351
  value: function assign() {
23353
23352
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
23354
- return Variables.of(_object_spread$1$1({}, this, options));
23353
+ return Variables.of(_object_spread$2$1({}, this, options));
23355
23354
  }
23356
23355
  },
23357
23356
  {
@@ -23366,7 +23365,7 @@ var Variables = /*#__PURE__*/ function() {
23366
23365
  context: this.context,
23367
23366
  parent: this.parent
23368
23367
  };
23369
- return Variables.of(_object_spread$1$1({}, defaultOptions, options));
23368
+ return Variables.of(_object_spread$2$1({}, defaultOptions, options));
23370
23369
  }
23371
23370
  }
23372
23371
  ], [
@@ -23849,7 +23848,7 @@ function _create_class$q(Constructor, protoProps, staticProps) {
23849
23848
  if (protoProps) _defineProperties$q(Constructor.prototype, protoProps);
23850
23849
  return Constructor;
23851
23850
  }
23852
- function _define_property$2$1(obj, key, value) {
23851
+ function _define_property$3$1(obj, key, value) {
23853
23852
  if (key in obj) {
23854
23853
  Object.defineProperty(obj, key, {
23855
23854
  value: value,
@@ -25156,7 +25155,7 @@ var builtins = {
25156
25155
  if (key in context) {
25157
25156
  return FALSE;
25158
25157
  }
25159
- return Object.assign(Object.assign({}, context), _define_property$2$1({}, entry.key, entry.value));
25158
+ return Object.assign(Object.assign({}, context), _define_property$3$1({}, entry.key, entry.value));
25160
25159
  }, {});
25161
25160
  if (context === FALSE) {
25162
25161
  return null;
@@ -25209,7 +25208,7 @@ var builtins = {
25209
25208
  return null;
25210
25209
  }
25211
25210
  }
25212
- return Object.assign(Object.assign({}, context), _define_property$2$1({}, key, value));
25211
+ return Object.assign(Object.assign({}, context), _define_property$3$1({}, key, value));
25213
25212
  }
25214
25213
  function matches(a, b) {
25215
25214
  return a === b;
@@ -25936,7 +25935,7 @@ function evalNode(node, input, args) {
25936
25935
  return function(context) {
25937
25936
  return args.slice(1, -1).reduce(function(obj, arg) {
25938
25937
  var _arg = _sliced_to_array$1$1(arg(Object.assign(Object.assign({}, context), obj)), 2), key = _arg[0], value = _arg[1];
25939
- return Object.assign(Object.assign({}, obj), _define_property$2$1({}, key, value));
25938
+ return Object.assign(Object.assign({}, obj), _define_property$3$1({}, key, value));
25940
25939
  }, {});
25941
25940
  };
25942
25941
  case 'FunctionBody':
@@ -26433,7 +26432,7 @@ function extractValue(context, prop, _target) {
26433
26432
  'range'
26434
26433
  ].includes(getType(target))) {
26435
26434
  return target.map(function(t) {
26436
- return _define_property$2$1({}, prop, t);
26435
+ return _define_property$3$1({}, prop, t);
26437
26436
  });
26438
26437
  }
26439
26438
  return null;
@@ -42897,7 +42896,7 @@ function _class_call_check$1$1(instance, Constructor) {
42897
42896
  throw new TypeError("Cannot call a class as a function");
42898
42897
  }
42899
42898
  }
42900
- function _define_property$1$1(obj, key, value) {
42899
+ function _define_property$2$1(obj, key, value) {
42901
42900
  if (key in obj) {
42902
42901
  Object.defineProperty(obj, key, {
42903
42902
  value: value,
@@ -42977,7 +42976,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
42977
42976
  _class_call_check$1$1(this, CelParser);
42978
42977
  var _this;
42979
42978
  _this = _super.call(this, allTokens);
42980
- _define_property$1$1(_assert_this_initialized$1$1(_this), "expr", _this.RULE('expr', function() {
42979
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "expr", _this.RULE('expr', function() {
42981
42980
  _this.SUBRULE(_this.conditionalOr, {
42982
42981
  LABEL: 'conditionalOr'
42983
42982
  });
@@ -42992,7 +42991,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
42992
42991
  });
42993
42992
  });
42994
42993
  }));
42995
- _define_property$1$1(_assert_this_initialized$1$1(_this), "conditionalAnd", _this.RULE('conditionalAnd', function() {
42994
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "conditionalAnd", _this.RULE('conditionalAnd', function() {
42996
42995
  _this.SUBRULE(_this.relation, {
42997
42996
  LABEL: 'lhs'
42998
42997
  });
@@ -43003,7 +43002,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43003
43002
  });
43004
43003
  });
43005
43004
  }));
43006
- _define_property$1$1(_assert_this_initialized$1$1(_this), "conditionalOr", _this.RULE('conditionalOr', function() {
43005
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "conditionalOr", _this.RULE('conditionalOr', function() {
43007
43006
  _this.SUBRULE(_this.conditionalAnd, {
43008
43007
  LABEL: 'lhs'
43009
43008
  });
@@ -43014,7 +43013,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43014
43013
  });
43015
43014
  });
43016
43015
  }));
43017
- _define_property$1$1(_assert_this_initialized$1$1(_this), "relation", _this.RULE('relation', function() {
43016
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "relation", _this.RULE('relation', function() {
43018
43017
  _this.SUBRULE(_this.addition, {
43019
43018
  LABEL: 'lhs'
43020
43019
  });
@@ -43025,7 +43024,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43025
43024
  });
43026
43025
  });
43027
43026
  }));
43028
- _define_property$1$1(_assert_this_initialized$1$1(_this), "addition", _this.RULE('addition', function() {
43027
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "addition", _this.RULE('addition', function() {
43029
43028
  _this.SUBRULE(_this.multiplication, {
43030
43029
  LABEL: 'lhs'
43031
43030
  });
@@ -43036,7 +43035,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43036
43035
  });
43037
43036
  });
43038
43037
  }));
43039
- _define_property$1$1(_assert_this_initialized$1$1(_this), "multiplication", _this.RULE('multiplication', function() {
43038
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "multiplication", _this.RULE('multiplication', function() {
43040
43039
  _this.SUBRULE(_this.unaryExpression, {
43041
43040
  LABEL: 'lhs'
43042
43041
  });
@@ -43047,13 +43046,13 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43047
43046
  });
43048
43047
  });
43049
43048
  }));
43050
- _define_property$1$1(_assert_this_initialized$1$1(_this), "unaryExpression", _this.RULE('unaryExpression', function() {
43049
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "unaryExpression", _this.RULE('unaryExpression', function() {
43051
43050
  _this.MANY(function() {
43052
43051
  _this.CONSUME(UnaryOperator);
43053
43052
  });
43054
43053
  _this.SUBRULE(_this.atomicExpression);
43055
43054
  }));
43056
- _define_property$1$1(_assert_this_initialized$1$1(_this), "parenthesisExpression", _this.RULE('parenthesisExpression', function() {
43055
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "parenthesisExpression", _this.RULE('parenthesisExpression', function() {
43057
43056
  _this.CONSUME(OpenParenthesis, {
43058
43057
  LABEL: 'open'
43059
43058
  });
@@ -43062,7 +43061,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43062
43061
  LABEL: 'close'
43063
43062
  });
43064
43063
  }));
43065
- _define_property$1$1(_assert_this_initialized$1$1(_this), "listExpression", _this.RULE('listExpression', function() {
43064
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "listExpression", _this.RULE('listExpression', function() {
43066
43065
  _this.CONSUME(OpenBracket);
43067
43066
  _this.OPTION(function() {
43068
43067
  _this.SUBRULE(_this.expr, {
@@ -43082,7 +43081,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43082
43081
  });
43083
43082
  });
43084
43083
  }));
43085
- _define_property$1$1(_assert_this_initialized$1$1(_this), "mapExpression", _this.RULE('mapExpression', function() {
43084
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "mapExpression", _this.RULE('mapExpression', function() {
43086
43085
  _this.CONSUME(OpenCurlyBracket);
43087
43086
  _this.MANY(function() {
43088
43087
  _this.SUBRULE(_this.mapKeyValues, {
@@ -43107,7 +43106,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43107
43106
  ]);
43108
43107
  });
43109
43108
  }));
43110
- _define_property$1$1(_assert_this_initialized$1$1(_this), "mapKeyValues", _this.RULE('mapKeyValues', function() {
43109
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "mapKeyValues", _this.RULE('mapKeyValues', function() {
43111
43110
  _this.SUBRULE(_this.expr, {
43112
43111
  LABEL: 'key'
43113
43112
  });
@@ -43119,7 +43118,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43119
43118
  _this.CONSUME(Comma);
43120
43119
  });
43121
43120
  }));
43122
- _define_property$1$1(_assert_this_initialized$1$1(_this), "macrosExpression", _this.RULE('macrosExpression', function() {
43121
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "macrosExpression", _this.RULE('macrosExpression', function() {
43123
43122
  _this.CONSUME(Identifier);
43124
43123
  _this.CONSUME(OpenParenthesis);
43125
43124
  _this.OPTION(function() {
@@ -43135,7 +43134,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43135
43134
  });
43136
43135
  _this.CONSUME(CloseParenthesis);
43137
43136
  }));
43138
- _define_property$1$1(_assert_this_initialized$1$1(_this), "identifierExpression", _this.RULE('identifierExpression', function() {
43137
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "identifierExpression", _this.RULE('identifierExpression', function() {
43139
43138
  _this.CONSUME(Identifier);
43140
43139
  _this.MANY(function() {
43141
43140
  _this.OR([
@@ -43154,7 +43153,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43154
43153
  ]);
43155
43154
  });
43156
43155
  }));
43157
- _define_property$1$1(_assert_this_initialized$1$1(_this), "identifierDotExpression", _this.RULE('identifierDotExpression', function() {
43156
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "identifierDotExpression", _this.RULE('identifierDotExpression', function() {
43158
43157
  _this.CONSUME(Dot);
43159
43158
  _this.CONSUME(Identifier);
43160
43159
  // Optional method call with arguments (for collection macros)
@@ -43174,12 +43173,12 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43174
43173
  _this.CONSUME(CloseParenthesis);
43175
43174
  });
43176
43175
  }));
43177
- _define_property$1$1(_assert_this_initialized$1$1(_this), "indexExpression", _this.RULE('indexExpression', function() {
43176
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "indexExpression", _this.RULE('indexExpression', function() {
43178
43177
  _this.CONSUME(OpenBracket);
43179
43178
  _this.SUBRULE(_this.expr);
43180
43179
  _this.CONSUME(CloseBracket);
43181
43180
  }));
43182
- _define_property$1$1(_assert_this_initialized$1$1(_this), "atomicExpression", _this.RULE('atomicExpression', function() {
43181
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "atomicExpression", _this.RULE('atomicExpression', function() {
43183
43182
  _this.OR([
43184
43183
  {
43185
43184
  ALT: function() {
@@ -43288,7 +43287,7 @@ function _create_class$w(Constructor, protoProps, staticProps) {
43288
43287
  if (protoProps) _defineProperties$w(Constructor.prototype, protoProps);
43289
43288
  return Constructor;
43290
43289
  }
43291
- function _define_property$p(obj, key, value) {
43290
+ function _define_property$1$1(obj, key, value) {
43292
43291
  if (key in obj) {
43293
43292
  Object.defineProperty(obj, key, {
43294
43293
  value: value,
@@ -43360,7 +43359,7 @@ function _non_iterable_rest$6() {
43360
43359
  function _non_iterable_spread$k() {
43361
43360
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
43362
43361
  }
43363
- function _object_spread$p(target) {
43362
+ function _object_spread$1$1(target) {
43364
43363
  for(var i = 1; i < arguments.length; i++){
43365
43364
  var source = arguments[i] != null ? arguments[i] : {};
43366
43365
  var ownKeys = Object.keys(source);
@@ -43370,7 +43369,7 @@ function _object_spread$p(target) {
43370
43369
  }));
43371
43370
  }
43372
43371
  ownKeys.forEach(function(key) {
43373
- _define_property$p(target, key, source[key]);
43372
+ _define_property$1$1(target, key, source[key]);
43374
43373
  });
43375
43374
  }
43376
43375
  return target;
@@ -43456,13 +43455,13 @@ var CelVisitor = /*#__PURE__*/ function(BaseCelVisitor) {
43456
43455
  _class_call_check$B(this, CelVisitor);
43457
43456
  var _this;
43458
43457
  _this = _super.call(this);
43459
- _define_property$p(_assert_this_initialized$l(_this), "context", void 0);
43458
+ _define_property$1$1(_assert_this_initialized$l(_this), "context", void 0);
43460
43459
  /**
43461
43460
  * Tracks the current mode of the visitor to handle special cases.
43462
- */ _define_property$p(_assert_this_initialized$l(_this), "mode", Mode.normal);
43463
- _define_property$p(_assert_this_initialized$l(_this), "functions", void 0);
43461
+ */ _define_property$1$1(_assert_this_initialized$l(_this), "mode", Mode.normal);
43462
+ _define_property$1$1(_assert_this_initialized$l(_this), "functions", void 0);
43464
43463
  _this.context = context || {};
43465
- _this.functions = _object_spread$p({}, defaultFunctions, functions || {});
43464
+ _this.functions = _object_spread$1$1({}, defaultFunctions, functions || {});
43466
43465
  _this.validateVisitor();
43467
43466
  return _this;
43468
43467
  }
@@ -44203,6 +44202,198 @@ function evaluate(expression, context, functions) {
44203
44202
  }
44204
44203
  return toAstVisitorInstance.visit(result.cst);
44205
44204
  }
44205
+ // Latin-1 Supplement
44206
+ // upper case ranges
44207
+ // [À-ÖØ-ß]
44208
+ // lower case ranges
44209
+ // [à-öø-ÿ]
44210
+ var magicSplit = /^[a-zà-öø-ÿа-я]+|[A-ZÀ-ÖØ-ßА-Я][a-zà-öø-ÿа-я]+|[a-zà-öø-ÿа-я]+|[0-9]+|[A-ZÀ-ÖØ-ßА-Я]+(?![a-zà-öø-ÿа-я])/g;
44211
+ var spaceSplit = /\S+/g;
44212
+ /**
44213
+ * A string.matchAll function that will return an array of "string parts" and the indexes at which it split each part
44214
+ */ function getPartsAndIndexes(string, splitRegex) {
44215
+ var result = {
44216
+ parts: [],
44217
+ prefixes: []
44218
+ };
44219
+ var matches = string.matchAll(splitRegex);
44220
+ var lastWordEndIndex = 0;
44221
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
44222
+ try {
44223
+ for(var _iterator = matches[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
44224
+ var match = _step.value;
44225
+ if (typeof match.index !== 'number') continue;
44226
+ var word = match[0];
44227
+ result.parts.push(word);
44228
+ var prefix = string.slice(lastWordEndIndex, match.index).trim();
44229
+ result.prefixes.push(prefix);
44230
+ lastWordEndIndex = match.index + word.length;
44231
+ }
44232
+ } catch (err) {
44233
+ _didIteratorError = true;
44234
+ _iteratorError = err;
44235
+ } finally{
44236
+ try {
44237
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
44238
+ _iterator.return();
44239
+ }
44240
+ } finally{
44241
+ if (_didIteratorError) {
44242
+ throw _iteratorError;
44243
+ }
44244
+ }
44245
+ }
44246
+ var tail = string.slice(lastWordEndIndex).trim();
44247
+ if (tail) {
44248
+ result.parts.push('');
44249
+ result.prefixes.push(tail);
44250
+ }
44251
+ return result;
44252
+ }
44253
+ /**
44254
+ * A function that splits a string on words and returns an array of words.
44255
+ * - It can prefix each word with a given character
44256
+ * - It can strip or keep special characters, this affects the logic for adding a prefix as well
44257
+ */ function splitAndPrefix(string, options) {
44258
+ 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;
44259
+ var normalString = string.trim().normalize('NFC');
44260
+ var hasSpaces = normalString.includes(' ');
44261
+ var split = hasSpaces ? spaceSplit : magicSplit;
44262
+ var partsAndIndexes = getPartsAndIndexes(normalString, split);
44263
+ return partsAndIndexes.parts.map(function(_part, i) {
44264
+ var foundPrefix = partsAndIndexes.prefixes[i] || '';
44265
+ var part = _part;
44266
+ if (keepSpecialCharacters === false) {
44267
+ if (keep) {
44268
+ part = part.normalize('NFD').replace(new RegExp("[^a-zA-Z\xd8\xdf\xf80-9".concat(keep.join(''), "]"), 'g'), '');
44269
+ }
44270
+ if (!keep) {
44271
+ part = part.normalize('NFD').replace(/[^a-zA-ZØßø0-9]/g, '');
44272
+ foundPrefix = '';
44273
+ }
44274
+ }
44275
+ if (keep && foundPrefix) {
44276
+ foundPrefix = foundPrefix.replace(new RegExp("[^".concat(keep.join(''), "]"), 'g'), '');
44277
+ }
44278
+ // the first word doesn't need a prefix, so only return the found prefix
44279
+ if (i === 0) {
44280
+ // console.log(`foundPrefix → `, foundPrefix)
44281
+ return foundPrefix + part;
44282
+ }
44283
+ if (!foundPrefix && !part) return '';
44284
+ if (!hasSpaces) {
44285
+ // return the found prefix OR fall back to a given prefix
44286
+ return (foundPrefix || prefix) + part;
44287
+ }
44288
+ // space based sentence was split on spaces, so only return found prefixes
44289
+ if (!foundPrefix && prefix.match(/\s/)) {
44290
+ // in this case we have no more found prefix, it was trimmed, but we're looking to add a space
44291
+ // so let's return that space
44292
+ return ' ' + part;
44293
+ }
44294
+ return (foundPrefix || prefix) + part;
44295
+ }).filter(Boolean);
44296
+ }
44297
+ /**
44298
+ * Capitalises a single word
44299
+ * @returns the word with the first character in uppercase and the rest in lowercase
44300
+ */ function capitaliseWord(string) {
44301
+ var match = string.matchAll(magicSplit).next().value;
44302
+ var firstLetterIndex = match ? match.index : 0;
44303
+ return string.slice(0, firstLetterIndex + 1).toUpperCase() + string.slice(firstLetterIndex + 1).toLowerCase();
44304
+ }
44305
+ function _define_property$p(obj, key, value) {
44306
+ if (key in obj) {
44307
+ Object.defineProperty(obj, key, {
44308
+ value: value,
44309
+ enumerable: true,
44310
+ configurable: true,
44311
+ writable: true
44312
+ });
44313
+ } else {
44314
+ obj[key] = value;
44315
+ }
44316
+ return obj;
44317
+ }
44318
+ function _object_spread$p(target) {
44319
+ for(var i = 1; i < arguments.length; i++){
44320
+ var source = arguments[i] != null ? arguments[i] : {};
44321
+ var ownKeys = Object.keys(source);
44322
+ if (typeof Object.getOwnPropertySymbols === "function") {
44323
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
44324
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
44325
+ }));
44326
+ }
44327
+ ownKeys.forEach(function(key) {
44328
+ _define_property$p(target, key, source[key]);
44329
+ });
44330
+ }
44331
+ return target;
44332
+ }
44333
+ function ownKeys$k(object, enumerableOnly) {
44334
+ var keys = Object.keys(object);
44335
+ if (Object.getOwnPropertySymbols) {
44336
+ var symbols = Object.getOwnPropertySymbols(object);
44337
+ keys.push.apply(keys, symbols);
44338
+ }
44339
+ return keys;
44340
+ }
44341
+ function _object_spread_props$k(target, source) {
44342
+ source = source != null ? source : {};
44343
+ if (Object.getOwnPropertyDescriptors) {
44344
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
44345
+ } else {
44346
+ ownKeys$k(Object(source)).forEach(function(key) {
44347
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
44348
+ });
44349
+ }
44350
+ return target;
44351
+ }
44352
+ /**
44353
+ * # 🐪 camelCase
44354
+ * converts a string to camelCase
44355
+ * - first lowercase then all capitalised
44356
+ * - *strips away* special characters by default
44357
+ *
44358
+ * @example
44359
+ * camelCase('$catDog') === 'catDog'
44360
+ * @example
44361
+ * camelCase('$catDog', { keepSpecialCharacters: true }) === '$catDog'
44362
+ */ function camelCase(string, options) {
44363
+ return splitAndPrefix(string, options).reduce(function(result, word, index) {
44364
+ return index === 0 || !(word[0] || '').match(magicSplit) ? result + word.toLowerCase() : result + capitaliseWord(word);
44365
+ }, '');
44366
+ }
44367
+ /**
44368
+ * # 🥙 kebab-case
44369
+ * converts a string to kebab-case
44370
+ * - hyphenated lowercase
44371
+ * - *strips away* special characters by default
44372
+ *
44373
+ * @example
44374
+ * kebabCase('$catDog') === 'cat-dog'
44375
+ * @example
44376
+ * kebabCase('$catDog', { keepSpecialCharacters: true }) === '$cat-dog'
44377
+ */ function kebabCase(string, options) {
44378
+ return splitAndPrefix(string, _object_spread_props$k(_object_spread$p({}, options), {
44379
+ prefix: '-'
44380
+ })).join('').toLowerCase();
44381
+ }
44382
+ /**
44383
+ * # 🐍 snake_case
44384
+ * converts a string to snake_case
44385
+ * - underscored lowercase
44386
+ * - *strips away* special characters by default
44387
+ *
44388
+ * @example
44389
+ * snakeCase('$catDog') === 'cat_dog'
44390
+ * @example
44391
+ * snakeCase('$catDog', { keepSpecialCharacters: true }) === '$cat_dog'
44392
+ */ function snakeCase(string, options) {
44393
+ return splitAndPrefix(string, _object_spread_props$k(_object_spread$p({}, options), {
44394
+ prefix: '_'
44395
+ })).join('').toLowerCase();
44396
+ }
44206
44397
  const Handlebars = handlebars_min || HandlebarsNamespace;
44207
44398
  Handlebars.registerHelper('JSONstringify', function(value) {
44208
44399
  return JSON.stringify(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-mcp",
3
- "version": "0.117.7",
3
+ "version": "0.117.8",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",