@digipair/skill-keycloak 0.117.6 → 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 +374 -171
  2. package/package.json +1 -1
package/dist/index.esm.js CHANGED
@@ -8200,7 +8200,7 @@ function _create_class$v(Constructor, protoProps, staticProps) {
8200
8200
  if (staticProps) _defineProperties$v(Constructor, staticProps);
8201
8201
  return Constructor;
8202
8202
  }
8203
- function _define_property$4(obj, key, value) {
8203
+ function _define_property$5(obj, key, value) {
8204
8204
  if (key in obj) {
8205
8205
  Object.defineProperty(obj, key, {
8206
8206
  value: value,
@@ -8275,7 +8275,7 @@ function _non_iterable_rest$5() {
8275
8275
  function _non_iterable_spread$6() {
8276
8276
  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
8277
  }
8278
- function _object_spread$2(target) {
8278
+ function _object_spread$3(target) {
8279
8279
  for(var i = 1; i < arguments.length; i++){
8280
8280
  var source = arguments[i] != null ? arguments[i] : {};
8281
8281
  var ownKeys = Object.keys(source);
@@ -8285,12 +8285,12 @@ function _object_spread$2(target) {
8285
8285
  }));
8286
8286
  }
8287
8287
  ownKeys.forEach(function(key) {
8288
- _define_property$4(target, key, source[key]);
8288
+ _define_property$5(target, key, source[key]);
8289
8289
  });
8290
8290
  }
8291
8291
  return target;
8292
8292
  }
8293
- function ownKeys$1(object, enumerableOnly) {
8293
+ function ownKeys$2(object, enumerableOnly) {
8294
8294
  var keys = Object.keys(object);
8295
8295
  if (Object.getOwnPropertySymbols) {
8296
8296
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8298,12 +8298,12 @@ function ownKeys$1(object, enumerableOnly) {
8298
8298
  }
8299
8299
  return keys;
8300
8300
  }
8301
- function _object_spread_props$1(target, source) {
8301
+ function _object_spread_props$2(target, source) {
8302
8302
  source = source != null ? source : {};
8303
8303
  if (Object.getOwnPropertyDescriptors) {
8304
8304
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8305
8305
  } else {
8306
- ownKeys$1(Object(source)).forEach(function(key) {
8306
+ ownKeys$2(Object(source)).forEach(function(key) {
8307
8307
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8308
8308
  });
8309
8309
  }
@@ -9174,7 +9174,7 @@ function getCachedWeekInfo(locString) {
9174
9174
  data = "getWeekInfo" in locale ? locale.getWeekInfo() : locale.weekInfo;
9175
9175
  // minimalDays was removed from WeekInfo: https://github.com/tc39/proposal-intl-locale-info/issues/86
9176
9176
  if (!("minimalDays" in data)) {
9177
- data = _object_spread$2({}, fallbackWeekSettings, data);
9177
+ data = _object_spread$3({}, fallbackWeekSettings, data);
9178
9178
  }
9179
9179
  weekInfoCache.set(locString, data);
9180
9180
  }
@@ -9281,7 +9281,7 @@ function supportsFastNumbers(loc) {
9281
9281
  "floor"
9282
9282
  ]);
9283
9283
  if (!forceSimple || Object.keys(otherOpts).length > 0) {
9284
- var intlOpts = _object_spread$2({
9284
+ var intlOpts = _object_spread$3({
9285
9285
  useGrouping: false
9286
9286
  }, opts);
9287
9287
  if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;
@@ -9351,7 +9351,7 @@ function supportsFastNumbers(loc) {
9351
9351
  });
9352
9352
  this.originalZone = dt.zone;
9353
9353
  }
9354
- var intlOpts = _object_spread$2({}, this.opts);
9354
+ var intlOpts = _object_spread$3({}, this.opts);
9355
9355
  intlOpts.timeZone = intlOpts.timeZone || z;
9356
9356
  this.dtf = getCachedDTF(intl, intlOpts);
9357
9357
  }
@@ -9382,7 +9382,7 @@ function supportsFastNumbers(loc) {
9382
9382
  locale: _this.dt.locale,
9383
9383
  format: _this.opts.timeZoneName
9384
9384
  });
9385
- return _object_spread_props$1(_object_spread$2({}, part), {
9385
+ return _object_spread_props$2(_object_spread$3({}, part), {
9386
9386
  value: offsetName
9387
9387
  });
9388
9388
  } else {
@@ -9407,7 +9407,7 @@ function supportsFastNumbers(loc) {
9407
9407
  */ var PolyRelFormatter = /*#__PURE__*/ function() {
9408
9408
  function PolyRelFormatter(intl, isEnglish, opts) {
9409
9409
  _class_call_check$A(this, PolyRelFormatter);
9410
- this.opts = _object_spread$2({
9410
+ this.opts = _object_spread$3({
9411
9411
  style: "long"
9412
9412
  }, opts);
9413
9413
  if (!isEnglish && hasRelative()) {
@@ -9502,7 +9502,7 @@ var fallbackWeekSettings = {
9502
9502
  key: "redefaultToEN",
9503
9503
  value: function redefaultToEN() {
9504
9504
  var alts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
9505
- return this.clone(_object_spread_props$1(_object_spread$2({}, alts), {
9505
+ return this.clone(_object_spread_props$2(_object_spread$3({}, alts), {
9506
9506
  defaultToEN: true
9507
9507
  }));
9508
9508
  }
@@ -9511,7 +9511,7 @@ var fallbackWeekSettings = {
9511
9511
  key: "redefaultToSystem",
9512
9512
  value: function redefaultToSystem() {
9513
9513
  var alts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
9514
- return this.clone(_object_spread_props$1(_object_spread$2({}, alts), {
9514
+ return this.clone(_object_spread_props$2(_object_spread$3({}, alts), {
9515
9515
  defaultToEN: false
9516
9516
  }));
9517
9517
  }
@@ -10390,7 +10390,7 @@ function isoWeekdayToLocal(isoWeekday, startOfWeek) {
10390
10390
  } else {
10391
10391
  weekYear = year;
10392
10392
  }
10393
- return _object_spread$2({
10393
+ return _object_spread$3({
10394
10394
  weekYear: weekYear,
10395
10395
  weekNumber: weekNumber,
10396
10396
  weekday: weekday
@@ -10410,7 +10410,7 @@ function weekToGregorian(weekData) {
10410
10410
  year = weekYear;
10411
10411
  }
10412
10412
  var _uncomputeOrdinal = uncomputeOrdinal(year, ordinal), month = _uncomputeOrdinal.month, day = _uncomputeOrdinal.day;
10413
- return _object_spread$2({
10413
+ return _object_spread$3({
10414
10414
  year: year,
10415
10415
  month: month,
10416
10416
  day: day
@@ -10419,7 +10419,7 @@ function weekToGregorian(weekData) {
10419
10419
  function gregorianToOrdinal(gregData) {
10420
10420
  var year = gregData.year, month = gregData.month, day = gregData.day;
10421
10421
  var ordinal = computeOrdinal(year, month, day);
10422
- return _object_spread$2({
10422
+ return _object_spread$3({
10423
10423
  year: year,
10424
10424
  ordinal: ordinal
10425
10425
  }, timeObject(gregData));
@@ -10427,7 +10427,7 @@ function gregorianToOrdinal(gregData) {
10427
10427
  function ordinalToGregorian(ordinalData) {
10428
10428
  var year = ordinalData.year, ordinal = ordinalData.ordinal;
10429
10429
  var _uncomputeOrdinal = uncomputeOrdinal(year, ordinal), month = _uncomputeOrdinal.month, day = _uncomputeOrdinal.day;
10430
- return _object_spread$2({
10430
+ return _object_spread$3({
10431
10431
  year: year,
10432
10432
  month: month,
10433
10433
  day: day
@@ -10723,7 +10723,7 @@ function parseZoneInfo(ts, offsetFormat, locale) {
10723
10723
  if (timeZone) {
10724
10724
  intlOpts.timeZone = timeZone;
10725
10725
  }
10726
- var modified = _object_spread$2({
10726
+ var modified = _object_spread$3({
10727
10727
  timeZoneName: offsetFormat
10728
10728
  }, intlOpts);
10729
10729
  var parsed = new Intl.DateTimeFormat(locale, modified).formatToParts(date).find(function(m) {
@@ -11082,7 +11082,7 @@ var macroTokenToFormatOpts = {
11082
11082
  if (this.systemLoc === null) {
11083
11083
  this.systemLoc = this.loc.redefaultToSystem();
11084
11084
  }
11085
- var df = this.systemLoc.dtFormatter(dt, _object_spread$2({}, this.opts, opts));
11085
+ var df = this.systemLoc.dtFormatter(dt, _object_spread$3({}, this.opts, opts));
11086
11086
  return df.format();
11087
11087
  }
11088
11088
  },
@@ -11090,7 +11090,7 @@ var macroTokenToFormatOpts = {
11090
11090
  key: "dtFormatter",
11091
11091
  value: function dtFormatter(dt) {
11092
11092
  var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
11093
- return this.loc.dtFormatter(dt, _object_spread$2({}, this.opts, opts));
11093
+ return this.loc.dtFormatter(dt, _object_spread$3({}, this.opts, opts));
11094
11094
  }
11095
11095
  },
11096
11096
  {
@@ -11126,7 +11126,7 @@ var macroTokenToFormatOpts = {
11126
11126
  if (this.opts.forceSimple) {
11127
11127
  return padStart(n, p);
11128
11128
  }
11129
- var opts = _object_spread$2({}, this.opts);
11129
+ var opts = _object_spread$3({}, this.opts);
11130
11130
  if (p > 0) {
11131
11131
  opts.padTo = p;
11132
11132
  }
@@ -11542,7 +11542,7 @@ function combineExtractors() {
11542
11542
  var _param = _sliced_to_array$5(param, 3), mergedVals = _param[0], mergedZone = _param[1], cursor = _param[2];
11543
11543
  var _ex = _sliced_to_array$5(ex(m, cursor), 3), val = _ex[0], zone = _ex[1], next = _ex[2];
11544
11544
  return [
11545
- _object_spread$2({}, mergedVals, val),
11545
+ _object_spread$3({}, mergedVals, val),
11546
11546
  zone || mergedZone,
11547
11547
  next
11548
11548
  ];
@@ -11853,7 +11853,7 @@ var lowOrderMatrix = {
11853
11853
  seconds: {
11854
11854
  milliseconds: 1000
11855
11855
  }
11856
- }, casualMatrix = _object_spread$2({
11856
+ }, casualMatrix = _object_spread$3({
11857
11857
  years: {
11858
11858
  quarters: 4,
11859
11859
  months: 12,
@@ -11881,7 +11881,7 @@ var lowOrderMatrix = {
11881
11881
  seconds: 30 * 24 * 60 * 60,
11882
11882
  milliseconds: 30 * 24 * 60 * 60 * 1000
11883
11883
  }
11884
- }, lowOrderMatrix), daysInYearAccurate = 146097.0 / 400, daysInMonthAccurate = 146097.0 / 4800, accurateMatrix = _object_spread$2({
11884
+ }, lowOrderMatrix), daysInYearAccurate = 146097.0 / 400, daysInMonthAccurate = 146097.0 / 4800, accurateMatrix = _object_spread$3({
11885
11885
  years: {
11886
11886
  quarters: 4,
11887
11887
  months: 12,
@@ -11928,7 +11928,7 @@ function clone$1(dur, alts) {
11928
11928
  var clear = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
11929
11929
  // deep merge for vals
11930
11930
  var conf = {
11931
- values: clear ? alts.values : _object_spread$2({}, dur.values, alts.values || {}),
11931
+ values: clear ? alts.values : _object_spread$3({}, dur.values, alts.values || {}),
11932
11932
  loc: dur.loc.clone(alts.loc),
11933
11933
  conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy,
11934
11934
  matrix: alts.matrix || dur.matrix
@@ -12127,7 +12127,7 @@ function removeZeroes(vals) {
12127
12127
  value: function toFormat(fmt) {
12128
12128
  var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
12129
12129
  // 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(_object_spread$2({}, opts), {
12130
+ var fmtOpts = _object_spread_props$2(_object_spread$3({}, opts), {
12131
12131
  floor: opts.round !== false && opts.floor !== false
12132
12132
  });
12133
12133
  return this.isValid ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt) : INVALID$2;
@@ -12160,7 +12160,7 @@ function removeZeroes(vals) {
12160
12160
  if (isUndefined$2(val) || val === 0 && !showZeros) {
12161
12161
  return null;
12162
12162
  }
12163
- return _this.loc.numberFormatter(_object_spread_props$1(_object_spread$2({
12163
+ return _this.loc.numberFormatter(_object_spread_props$2(_object_spread$3({
12164
12164
  style: "unit",
12165
12165
  unitDisplay: "long"
12166
12166
  }, opts), {
@@ -12169,7 +12169,7 @@ function removeZeroes(vals) {
12169
12169
  }).filter(function(n) {
12170
12170
  return n;
12171
12171
  });
12172
- return this.loc.listFormatter(_object_spread$2({
12172
+ return this.loc.listFormatter(_object_spread$3({
12173
12173
  type: "conjunction",
12174
12174
  style: opts.listStyle || "narrow"
12175
12175
  }, opts)).format(l);
@@ -12183,7 +12183,7 @@ function removeZeroes(vals) {
12183
12183
  */ key: "toObject",
12184
12184
  value: function toObject() {
12185
12185
  if (!this.isValid) return {};
12186
- return _object_spread$2({}, this.values);
12186
+ return _object_spread$3({}, this.values);
12187
12187
  }
12188
12188
  },
12189
12189
  {
@@ -12236,7 +12236,7 @@ function removeZeroes(vals) {
12236
12236
  if (!this.isValid) return null;
12237
12237
  var millis = this.toMillis();
12238
12238
  if (millis < 0 || millis >= 86400000) return null;
12239
- opts = _object_spread_props$1(_object_spread$2({
12239
+ opts = _object_spread_props$2(_object_spread$3({
12240
12240
  suppressMilliseconds: false,
12241
12241
  suppressSeconds: false,
12242
12242
  includePrefix: false,
@@ -12407,7 +12407,7 @@ function removeZeroes(vals) {
12407
12407
  */ key: "set",
12408
12408
  value: function set(values) {
12409
12409
  if (!this.isValid) return this;
12410
- var mixed = _object_spread$2({}, this.values, normalizeObject(values, Duration.normalizeUnit));
12410
+ var mixed = _object_spread$3({}, this.values, normalizeObject(values, Duration.normalizeUnit));
12411
12411
  return clone$1(this, {
12412
12412
  values: mixed
12413
12413
  });
@@ -14018,7 +14018,7 @@ function diff$2(earlier, later, units, opts) {
14018
14018
  });
14019
14019
  if (lowerOrderUnits.length === 0) {
14020
14020
  if (highWater < later) {
14021
- highWater = cursor.plus(_define_property$4({}, lowestOrder, 1));
14021
+ highWater = cursor.plus(_define_property$5({}, lowestOrder, 1));
14022
14022
  }
14023
14023
  if (highWater !== cursor) {
14024
14024
  results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor);
@@ -14578,7 +14578,7 @@ function clone$2(inst, alts) {
14578
14578
  loc: inst.loc,
14579
14579
  invalid: inst.invalid
14580
14580
  };
14581
- return new DateTime(_object_spread_props$1(_object_spread$2({}, current, alts), {
14581
+ return new DateTime(_object_spread_props$2(_object_spread$3({}, current, alts), {
14582
14582
  old: current
14583
14583
  }));
14584
14584
  }
@@ -14632,7 +14632,7 @@ function objToTS(obj, offset, zone) {
14632
14632
  }
14633
14633
  // create a new DT instance by adding a duration, adjusting for DSTs
14634
14634
  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(_object_spread$2({}, inst.c), {
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$2(_object_spread$3({}, inst.c), {
14636
14636
  year: year,
14637
14637
  month: month,
14638
14638
  day: Math.min(inst.c.day, daysInMonth(year, month)) + Math.trunc(dur.days) + Math.trunc(dur.weeks) * 7
@@ -14663,7 +14663,7 @@ function adjustTime(inst, dur) {
14663
14663
  function parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) {
14664
14664
  var setZone = opts.setZone, zone = opts.zone;
14665
14665
  if (parsed && Object.keys(parsed).length !== 0 || parsedZone) {
14666
- var interpretationZone = parsedZone || zone, inst = DateTime.fromObject(parsed, _object_spread_props$1(_object_spread$2({}, opts), {
14666
+ var interpretationZone = parsedZone || zone, inst = DateTime.fromObject(parsed, _object_spread_props$2(_object_spread$3({}, opts), {
14667
14667
  zone: interpretationZone,
14668
14668
  specificOffset: specificOffset
14669
14669
  }));
@@ -15683,11 +15683,11 @@ function lastOpts(argList) {
15683
15683
  }
15684
15684
  var mixed;
15685
15685
  if (settingWeekStuff) {
15686
- mixed = weekToGregorian(_object_spread$2({}, gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek), normalized), minDaysInFirstWeek, startOfWeek);
15686
+ mixed = weekToGregorian(_object_spread$3({}, gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek), normalized), minDaysInFirstWeek, startOfWeek);
15687
15687
  } else if (!isUndefined$2(normalized.ordinal)) {
15688
- mixed = ordinalToGregorian(_object_spread$2({}, gregorianToOrdinal(this.c), normalized));
15688
+ mixed = ordinalToGregorian(_object_spread$3({}, gregorianToOrdinal(this.c), normalized));
15689
15689
  } else {
15690
- mixed = _object_spread$2({}, this.toObject(), normalized);
15690
+ mixed = _object_spread$3({}, this.toObject(), normalized);
15691
15691
  // if we didn't set the day but we ended up on an overflow date,
15692
15692
  // use the last day of the right month
15693
15693
  if (isUndefined$2(normalized.day)) {
@@ -15806,7 +15806,7 @@ function lastOpts(argList) {
15806
15806
  * @return {DateTime}
15807
15807
  */ key: "endOf",
15808
15808
  value: function endOf(unit, opts) {
15809
- return this.isValid ? this.plus(_define_property$4({}, unit, 1)).startOf(unit, opts).minus(1) : this;
15809
+ return this.isValid ? this.plus(_define_property$5({}, unit, 1)).startOf(unit, opts).minus(1) : this;
15810
15810
  }
15811
15811
  },
15812
15812
  {
@@ -16134,7 +16134,7 @@ function lastOpts(argList) {
16134
16134
  value: function toObject() {
16135
16135
  var opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
16136
16136
  if (!this.isValid) return {};
16137
- var base = _object_spread$2({}, this.c);
16137
+ var base = _object_spread$3({}, this.c);
16138
16138
  if (opts.includeConfig) {
16139
16139
  base.outputCalendar = this.outputCalendar;
16140
16140
  base.numberingSystem = this.loc.numberingSystem;
@@ -16174,7 +16174,7 @@ function lastOpts(argList) {
16174
16174
  if (!this.isValid || !otherDateTime.isValid) {
16175
16175
  return Duration.invalid("created by diffing an invalid DateTime");
16176
16176
  }
16177
- var durOpts = _object_spread$2({
16177
+ var durOpts = _object_spread$3({
16178
16178
  locale: this.locale,
16179
16179
  numberingSystem: this.numberingSystem
16180
16180
  }, opts);
@@ -16278,7 +16278,7 @@ function lastOpts(argList) {
16278
16278
  units = options.unit;
16279
16279
  unit = undefined;
16280
16280
  }
16281
- return diffRelative(base, this.plus(padding), _object_spread_props$1(_object_spread$2({}, options), {
16281
+ return diffRelative(base, this.plus(padding), _object_spread_props$2(_object_spread$3({}, options), {
16282
16282
  numeric: "always",
16283
16283
  units: units,
16284
16284
  unit: unit
@@ -16304,7 +16304,7 @@ function lastOpts(argList) {
16304
16304
  if (!this.isValid) return null;
16305
16305
  return diffRelative(options.base || DateTime.fromObject({}, {
16306
16306
  zone: this.zone
16307
- }), this, _object_spread_props$1(_object_spread$2({}, options), {
16307
+ }), this, _object_spread_props$2(_object_spread$3({}, options), {
16308
16308
  numeric: "auto",
16309
16309
  units: [
16310
16310
  "years",
@@ -22572,7 +22572,7 @@ function _create_class$r(Constructor, protoProps, staticProps) {
22572
22572
  if (staticProps) _defineProperties$r(Constructor, staticProps);
22573
22573
  return Constructor;
22574
22574
  }
22575
- function _define_property$3(obj, key, value) {
22575
+ function _define_property$4(obj, key, value) {
22576
22576
  if (key in obj) {
22577
22577
  Object.defineProperty(obj, key, {
22578
22578
  value: value,
@@ -22625,7 +22625,7 @@ function _non_iterable_rest$2() {
22625
22625
  function _non_iterable_spread$4() {
22626
22626
  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
22627
  }
22628
- function _object_spread$1(target) {
22628
+ function _object_spread$2(target) {
22629
22629
  for(var i = 1; i < arguments.length; i++){
22630
22630
  var source = arguments[i] != null ? arguments[i] : {};
22631
22631
  var ownKeys = Object.keys(source);
@@ -22635,12 +22635,12 @@ function _object_spread$1(target) {
22635
22635
  }));
22636
22636
  }
22637
22637
  ownKeys.forEach(function(key) {
22638
- _define_property$3(target, key, source[key]);
22638
+ _define_property$4(target, key, source[key]);
22639
22639
  });
22640
22640
  }
22641
22641
  return target;
22642
22642
  }
22643
- function ownKeys(object, enumerableOnly) {
22643
+ function ownKeys$1(object, enumerableOnly) {
22644
22644
  var keys = Object.keys(object);
22645
22645
  if (Object.getOwnPropertySymbols) {
22646
22646
  var symbols = Object.getOwnPropertySymbols(object);
@@ -22648,12 +22648,12 @@ function ownKeys(object, enumerableOnly) {
22648
22648
  }
22649
22649
  return keys;
22650
22650
  }
22651
- function _object_spread_props(target, source) {
22651
+ function _object_spread_props$1(target, source) {
22652
22652
  source = source != null ? source : {};
22653
22653
  if (Object.getOwnPropertyDescriptors) {
22654
22654
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
22655
22655
  } else {
22656
- ownKeys(Object(source)).forEach(function(key) {
22656
+ ownKeys$1(Object(source)).forEach(function(key) {
22657
22657
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
22658
22658
  });
22659
22659
  }
@@ -22846,14 +22846,14 @@ function indent(str, spaces) {
22846
22846
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
22847
22847
  // match is required
22848
22848
  if (!match) {
22849
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
22849
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
22850
22850
  v: nextMatch1
22851
22851
  };
22852
22852
  }
22853
22853
  var token = match.token, offset = match.offset;
22854
22854
  i1 += offset;
22855
22855
  if (token === ' ') {
22856
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
22856
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22857
22857
  }
22858
22858
  tokens1 = _to_consumable_array$4(tokens1).concat([
22859
22859
  token
@@ -22872,7 +22872,7 @@ function indent(str, spaces) {
22872
22872
  if (contextKeys.some(function(el) {
22873
22873
  return el.startsWith(name);
22874
22874
  })) {
22875
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
22875
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22876
22876
  }
22877
22877
  if (dateTimeIdentifiers.some(function(el) {
22878
22878
  return el === name;
@@ -22891,9 +22891,9 @@ function indent(str, spaces) {
22891
22891
  if (dateTimeIdentifiers.some(function(el) {
22892
22892
  return el.startsWith(name);
22893
22893
  })) {
22894
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
22894
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22895
22895
  }
22896
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
22896
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
22897
22897
  v: nextMatch1
22898
22898
  };
22899
22899
  };
@@ -22905,7 +22905,7 @@ function indent(str, spaces) {
22905
22905
  }
22906
22906
  }
22907
22907
  var _obj;
22908
- var identifiersMap = (_obj = {}, _define_property$3(_obj, identifier, 'identifier'), _define_property$3(_obj, nameIdentifier, 'nameIdentifier'), _obj);
22908
+ var identifiersMap = (_obj = {}, _define_property$4(_obj, identifier, 'identifier'), _define_property$4(_obj, nameIdentifier, 'nameIdentifier'), _obj);
22909
22909
  var identifiers$2 = new ExternalTokenizer(function(input, stack) {
22910
22910
  LOG_PARSE_DEBUG && console.log('%s: T <identifier | nameIdentifier>', input.pos);
22911
22911
  var nameMatch = parseName(input, stack.context);
@@ -22954,11 +22954,11 @@ var insertSemicolon = new ExternalTokenizer(function(input, stack) {
22954
22954
  }
22955
22955
  });
22956
22956
  var _obj1;
22957
- var prefixedContextStarts = (_obj1 = {}, _define_property$3(_obj1, functionInvocationStart, 'FunctionInvocation'), _define_property$3(_obj1, filterExpressionStart, 'FilterExpression'), _define_property$3(_obj1, pathExpressionStart, 'PathExpression'), _obj1);
22957
+ var prefixedContextStarts = (_obj1 = {}, _define_property$4(_obj1, functionInvocationStart, 'FunctionInvocation'), _define_property$4(_obj1, filterExpressionStart, 'FilterExpression'), _define_property$4(_obj1, pathExpressionStart, 'PathExpression'), _obj1);
22958
22958
  var _obj2;
22959
- var contextStarts = (_obj2 = {}, _define_property$3(_obj2, contextStart, 'Context'), _define_property$3(_obj2, functionDefinitionStart, 'FunctionDefinition'), _define_property$3(_obj2, forExpressionStart, 'ForExpression'), _define_property$3(_obj2, listStart, 'List'), _define_property$3(_obj2, ifExpressionStart, 'IfExpression'), _define_property$3(_obj2, quantifiedExpressionStart, 'QuantifiedExpression'), _obj2);
22959
+ var contextStarts = (_obj2 = {}, _define_property$4(_obj2, contextStart, 'Context'), _define_property$4(_obj2, functionDefinitionStart, 'FunctionDefinition'), _define_property$4(_obj2, forExpressionStart, 'ForExpression'), _define_property$4(_obj2, listStart, 'List'), _define_property$4(_obj2, ifExpressionStart, 'IfExpression'), _define_property$4(_obj2, quantifiedExpressionStart, 'QuantifiedExpression'), _obj2);
22960
22960
  var _obj3;
22961
- var contextEnds = (_obj3 = {}, _define_property$3(_obj3, Context, 'Context'), _define_property$3(_obj3, FunctionDefinition, 'FunctionDefinition'), _define_property$3(_obj3, ForExpression, 'ForExpression'), _define_property$3(_obj3, List, 'List'), _define_property$3(_obj3, IfExpression, 'IfExpression'), _define_property$3(_obj3, QuantifiedExpression, 'QuantifiedExpression'), _define_property$3(_obj3, PathExpression, 'PathExpression'), _define_property$3(_obj3, FunctionInvocation, 'FunctionInvocation'), _define_property$3(_obj3, FilterExpression, 'FilterExpression'), _define_property$3(_obj3, ArithmeticExpression, 'ArithmeticExpression'), _obj3);
22961
+ var contextEnds = (_obj3 = {}, _define_property$4(_obj3, Context, 'Context'), _define_property$4(_obj3, FunctionDefinition, 'FunctionDefinition'), _define_property$4(_obj3, ForExpression, 'ForExpression'), _define_property$4(_obj3, List, 'List'), _define_property$4(_obj3, IfExpression, 'IfExpression'), _define_property$4(_obj3, QuantifiedExpression, 'QuantifiedExpression'), _define_property$4(_obj3, PathExpression, 'PathExpression'), _define_property$4(_obj3, FunctionInvocation, 'FunctionInvocation'), _define_property$4(_obj3, FilterExpression, 'FilterExpression'), _define_property$4(_obj3, ArithmeticExpression, 'ArithmeticExpression'), _obj3);
22962
22962
  /**
22963
22963
  * A simple producer that retrievs a value from
22964
22964
  * a given context. Used to lazily take things.
@@ -23046,7 +23046,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
23046
23046
  */ key: "set",
23047
23047
  value: function set(key, value) {
23048
23048
  var constructor = /** @type { typeof VariableContext } */ this.constructor;
23049
- return constructor.of(_object_spread_props(_object_spread$1({}, this.value), _define_property$3({}, key, value)));
23049
+ return constructor.of(_object_spread_props$1(_object_spread$2({}, this.value), _define_property$4({}, key, value)));
23050
23050
  }
23051
23051
  },
23052
23052
  {
@@ -23110,7 +23110,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
23110
23110
  if ((typeof context === "undefined" ? "undefined" : _type_of$z(context)) !== 'object') {
23111
23111
  return {};
23112
23112
  }
23113
- return _object_spread$1({}, context);
23113
+ return _object_spread$2({}, context);
23114
23114
  }
23115
23115
  },
23116
23116
  {
@@ -23128,13 +23128,13 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
23128
23128
  return reduce$1(this.__unwrap(other), function(merged, value, key) {
23129
23129
  if (_instanceof$f(value, ValueProducer)) {
23130
23130
  // keep value producers in tact
23131
- return _object_spread_props(_object_spread$1({}, merged), _define_property$3({}, key, value));
23131
+ return _object_spread_props$1(_object_spread$2({}, merged), _define_property$4({}, key, value));
23132
23132
  }
23133
23133
  value = _this.__unwrap(value);
23134
23134
  if (has$2(merged, key)) {
23135
23135
  value = _this.__merge(_this.__unwrap(merged[key]), value);
23136
23136
  }
23137
- return _object_spread_props(_object_spread$1({}, merged), _define_property$3({}, key, value));
23137
+ return _object_spread_props$1(_object_spread$2({}, merged), _define_property$4({}, key, value));
23138
23138
  }, this.__unwrap(context));
23139
23139
  }
23140
23140
  }
@@ -23353,7 +23353,7 @@ var Variables = /*#__PURE__*/ function() {
23353
23353
  */ key: "assign",
23354
23354
  value: function assign() {
23355
23355
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
23356
- return Variables.of(_object_spread$1({}, this, options));
23356
+ return Variables.of(_object_spread$2({}, this, options));
23357
23357
  }
23358
23358
  },
23359
23359
  {
@@ -23368,7 +23368,7 @@ var Variables = /*#__PURE__*/ function() {
23368
23368
  context: this.context,
23369
23369
  parent: this.parent
23370
23370
  };
23371
- return Variables.of(_object_spread$1({}, defaultOptions, options));
23371
+ return Variables.of(_object_spread$2({}, defaultOptions, options));
23372
23372
  }
23373
23373
  }
23374
23374
  ], [
@@ -23851,7 +23851,7 @@ function _create_class$q(Constructor, protoProps, staticProps) {
23851
23851
  if (protoProps) _defineProperties$q(Constructor.prototype, protoProps);
23852
23852
  return Constructor;
23853
23853
  }
23854
- function _define_property$2(obj, key, value) {
23854
+ function _define_property$3(obj, key, value) {
23855
23855
  if (key in obj) {
23856
23856
  Object.defineProperty(obj, key, {
23857
23857
  value: value,
@@ -25158,7 +25158,7 @@ var builtins = {
25158
25158
  if (key in context) {
25159
25159
  return FALSE;
25160
25160
  }
25161
- return Object.assign(Object.assign({}, context), _define_property$2({}, entry.key, entry.value));
25161
+ return Object.assign(Object.assign({}, context), _define_property$3({}, entry.key, entry.value));
25162
25162
  }, {});
25163
25163
  if (context === FALSE) {
25164
25164
  return null;
@@ -25211,7 +25211,7 @@ var builtins = {
25211
25211
  return null;
25212
25212
  }
25213
25213
  }
25214
- return Object.assign(Object.assign({}, context), _define_property$2({}, key, value));
25214
+ return Object.assign(Object.assign({}, context), _define_property$3({}, key, value));
25215
25215
  }
25216
25216
  function matches(a, b) {
25217
25217
  return a === b;
@@ -25938,7 +25938,7 @@ function evalNode(node, input, args) {
25938
25938
  return function(context) {
25939
25939
  return args.slice(1, -1).reduce(function(obj, arg) {
25940
25940
  var _arg = _sliced_to_array$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({}, key, value));
25941
+ return Object.assign(Object.assign({}, obj), _define_property$3({}, key, value));
25942
25942
  }, {});
25943
25943
  };
25944
25944
  case 'FunctionBody':
@@ -26435,7 +26435,7 @@ function extractValue(context, prop, _target) {
26435
26435
  'range'
26436
26436
  ].includes(getType(target))) {
26437
26437
  return target.map(function(t) {
26438
- return _define_property$2({}, prop, t);
26438
+ return _define_property$3({}, prop, t);
26439
26439
  });
26440
26440
  }
26441
26441
  return null;
@@ -41552,7 +41552,7 @@ function _class_call_check$3(instance, Constructor) {
41552
41552
  throw new TypeError("Cannot call a class as a function");
41553
41553
  }
41554
41554
  }
41555
- function _defineProperties$1$1(target, props) {
41555
+ function _defineProperties$1(target, props) {
41556
41556
  for(var i = 0; i < props.length; i++){
41557
41557
  var descriptor = props[i];
41558
41558
  descriptor.enumerable = descriptor.enumerable || false;
@@ -41561,9 +41561,9 @@ function _defineProperties$1$1(target, props) {
41561
41561
  Object.defineProperty(target, descriptor.key, descriptor);
41562
41562
  }
41563
41563
  }
41564
- function _create_class$1$1(Constructor, protoProps, staticProps) {
41565
- if (protoProps) _defineProperties$1$1(Constructor.prototype, protoProps);
41566
- if (staticProps) _defineProperties$1$1(Constructor, staticProps);
41564
+ function _create_class$1(Constructor, protoProps, staticProps) {
41565
+ if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
41566
+ if (staticProps) _defineProperties$1(Constructor, staticProps);
41567
41567
  return Constructor;
41568
41568
  }
41569
41569
  function _get_prototype_of$3(o) {
@@ -41682,7 +41682,7 @@ var Parser = /*#__PURE__*/ function() {
41682
41682
  this.skipValidations = has$1(config, "skipValidations") ? config.skipValidations // casting assumes the end user passing the correct type
41683
41683
  : DEFAULT_PARSER_CONFIG.skipValidations;
41684
41684
  }
41685
- _create_class$1$1(Parser, [
41685
+ _create_class$1(Parser, [
41686
41686
  {
41687
41687
  key: "performSelfAnalysis",
41688
41688
  value: function performSelfAnalysis() {
@@ -42894,12 +42894,12 @@ function _assert_this_initialized$1(self1) {
42894
42894
  }
42895
42895
  return self1;
42896
42896
  }
42897
- function _class_call_check$1$1(instance, Constructor) {
42897
+ function _class_call_check$1(instance, Constructor) {
42898
42898
  if (!(instance instanceof Constructor)) {
42899
42899
  throw new TypeError("Cannot call a class as a function");
42900
42900
  }
42901
42901
  }
42902
- function _define_property$1(obj, key, value) {
42902
+ function _define_property$2(obj, key, value) {
42903
42903
  if (key in obj) {
42904
42904
  Object.defineProperty(obj, key, {
42905
42905
  value: value,
@@ -42976,10 +42976,10 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
42976
42976
  _inherits$1(CelParser, CstParser);
42977
42977
  var _super = _create_super$1(CelParser);
42978
42978
  function CelParser() {
42979
- _class_call_check$1$1(this, CelParser);
42979
+ _class_call_check$1(this, CelParser);
42980
42980
  var _this;
42981
42981
  _this = _super.call(this, allTokens);
42982
- _define_property$1(_assert_this_initialized$1(_this), "expr", _this.RULE('expr', function() {
42982
+ _define_property$2(_assert_this_initialized$1(_this), "expr", _this.RULE('expr', function() {
42983
42983
  _this.SUBRULE(_this.conditionalOr, {
42984
42984
  LABEL: 'conditionalOr'
42985
42985
  });
@@ -42994,7 +42994,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
42994
42994
  });
42995
42995
  });
42996
42996
  }));
42997
- _define_property$1(_assert_this_initialized$1(_this), "conditionalAnd", _this.RULE('conditionalAnd', function() {
42997
+ _define_property$2(_assert_this_initialized$1(_this), "conditionalAnd", _this.RULE('conditionalAnd', function() {
42998
42998
  _this.SUBRULE(_this.relation, {
42999
42999
  LABEL: 'lhs'
43000
43000
  });
@@ -43005,7 +43005,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43005
43005
  });
43006
43006
  });
43007
43007
  }));
43008
- _define_property$1(_assert_this_initialized$1(_this), "conditionalOr", _this.RULE('conditionalOr', function() {
43008
+ _define_property$2(_assert_this_initialized$1(_this), "conditionalOr", _this.RULE('conditionalOr', function() {
43009
43009
  _this.SUBRULE(_this.conditionalAnd, {
43010
43010
  LABEL: 'lhs'
43011
43011
  });
@@ -43016,7 +43016,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43016
43016
  });
43017
43017
  });
43018
43018
  }));
43019
- _define_property$1(_assert_this_initialized$1(_this), "relation", _this.RULE('relation', function() {
43019
+ _define_property$2(_assert_this_initialized$1(_this), "relation", _this.RULE('relation', function() {
43020
43020
  _this.SUBRULE(_this.addition, {
43021
43021
  LABEL: 'lhs'
43022
43022
  });
@@ -43027,7 +43027,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43027
43027
  });
43028
43028
  });
43029
43029
  }));
43030
- _define_property$1(_assert_this_initialized$1(_this), "addition", _this.RULE('addition', function() {
43030
+ _define_property$2(_assert_this_initialized$1(_this), "addition", _this.RULE('addition', function() {
43031
43031
  _this.SUBRULE(_this.multiplication, {
43032
43032
  LABEL: 'lhs'
43033
43033
  });
@@ -43038,7 +43038,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43038
43038
  });
43039
43039
  });
43040
43040
  }));
43041
- _define_property$1(_assert_this_initialized$1(_this), "multiplication", _this.RULE('multiplication', function() {
43041
+ _define_property$2(_assert_this_initialized$1(_this), "multiplication", _this.RULE('multiplication', function() {
43042
43042
  _this.SUBRULE(_this.unaryExpression, {
43043
43043
  LABEL: 'lhs'
43044
43044
  });
@@ -43049,13 +43049,13 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43049
43049
  });
43050
43050
  });
43051
43051
  }));
43052
- _define_property$1(_assert_this_initialized$1(_this), "unaryExpression", _this.RULE('unaryExpression', function() {
43052
+ _define_property$2(_assert_this_initialized$1(_this), "unaryExpression", _this.RULE('unaryExpression', function() {
43053
43053
  _this.MANY(function() {
43054
43054
  _this.CONSUME(UnaryOperator);
43055
43055
  });
43056
43056
  _this.SUBRULE(_this.atomicExpression);
43057
43057
  }));
43058
- _define_property$1(_assert_this_initialized$1(_this), "parenthesisExpression", _this.RULE('parenthesisExpression', function() {
43058
+ _define_property$2(_assert_this_initialized$1(_this), "parenthesisExpression", _this.RULE('parenthesisExpression', function() {
43059
43059
  _this.CONSUME(OpenParenthesis, {
43060
43060
  LABEL: 'open'
43061
43061
  });
@@ -43064,7 +43064,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43064
43064
  LABEL: 'close'
43065
43065
  });
43066
43066
  }));
43067
- _define_property$1(_assert_this_initialized$1(_this), "listExpression", _this.RULE('listExpression', function() {
43067
+ _define_property$2(_assert_this_initialized$1(_this), "listExpression", _this.RULE('listExpression', function() {
43068
43068
  _this.CONSUME(OpenBracket);
43069
43069
  _this.OPTION(function() {
43070
43070
  _this.SUBRULE(_this.expr, {
@@ -43084,7 +43084,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43084
43084
  });
43085
43085
  });
43086
43086
  }));
43087
- _define_property$1(_assert_this_initialized$1(_this), "mapExpression", _this.RULE('mapExpression', function() {
43087
+ _define_property$2(_assert_this_initialized$1(_this), "mapExpression", _this.RULE('mapExpression', function() {
43088
43088
  _this.CONSUME(OpenCurlyBracket);
43089
43089
  _this.MANY(function() {
43090
43090
  _this.SUBRULE(_this.mapKeyValues, {
@@ -43109,7 +43109,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43109
43109
  ]);
43110
43110
  });
43111
43111
  }));
43112
- _define_property$1(_assert_this_initialized$1(_this), "mapKeyValues", _this.RULE('mapKeyValues', function() {
43112
+ _define_property$2(_assert_this_initialized$1(_this), "mapKeyValues", _this.RULE('mapKeyValues', function() {
43113
43113
  _this.SUBRULE(_this.expr, {
43114
43114
  LABEL: 'key'
43115
43115
  });
@@ -43121,7 +43121,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43121
43121
  _this.CONSUME(Comma);
43122
43122
  });
43123
43123
  }));
43124
- _define_property$1(_assert_this_initialized$1(_this), "macrosExpression", _this.RULE('macrosExpression', function() {
43124
+ _define_property$2(_assert_this_initialized$1(_this), "macrosExpression", _this.RULE('macrosExpression', function() {
43125
43125
  _this.CONSUME(Identifier);
43126
43126
  _this.CONSUME(OpenParenthesis);
43127
43127
  _this.OPTION(function() {
@@ -43137,7 +43137,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43137
43137
  });
43138
43138
  _this.CONSUME(CloseParenthesis);
43139
43139
  }));
43140
- _define_property$1(_assert_this_initialized$1(_this), "identifierExpression", _this.RULE('identifierExpression', function() {
43140
+ _define_property$2(_assert_this_initialized$1(_this), "identifierExpression", _this.RULE('identifierExpression', function() {
43141
43141
  _this.CONSUME(Identifier);
43142
43142
  _this.MANY(function() {
43143
43143
  _this.OR([
@@ -43156,7 +43156,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43156
43156
  ]);
43157
43157
  });
43158
43158
  }));
43159
- _define_property$1(_assert_this_initialized$1(_this), "identifierDotExpression", _this.RULE('identifierDotExpression', function() {
43159
+ _define_property$2(_assert_this_initialized$1(_this), "identifierDotExpression", _this.RULE('identifierDotExpression', function() {
43160
43160
  _this.CONSUME(Dot);
43161
43161
  _this.CONSUME(Identifier);
43162
43162
  // Optional method call with arguments (for collection macros)
@@ -43176,12 +43176,12 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43176
43176
  _this.CONSUME(CloseParenthesis);
43177
43177
  });
43178
43178
  }));
43179
- _define_property$1(_assert_this_initialized$1(_this), "indexExpression", _this.RULE('indexExpression', function() {
43179
+ _define_property$2(_assert_this_initialized$1(_this), "indexExpression", _this.RULE('indexExpression', function() {
43180
43180
  _this.CONSUME(OpenBracket);
43181
43181
  _this.SUBRULE(_this.expr);
43182
43182
  _this.CONSUME(CloseBracket);
43183
43183
  }));
43184
- _define_property$1(_assert_this_initialized$1(_this), "atomicExpression", _this.RULE('atomicExpression', function() {
43184
+ _define_property$2(_assert_this_initialized$1(_this), "atomicExpression", _this.RULE('atomicExpression', function() {
43185
43185
  _this.OR([
43186
43186
  {
43187
43187
  ALT: function() {
@@ -43290,7 +43290,7 @@ function _create_class$w(Constructor, protoProps, staticProps) {
43290
43290
  if (protoProps) _defineProperties$w(Constructor.prototype, protoProps);
43291
43291
  return Constructor;
43292
43292
  }
43293
- function _define_property(obj, key, value) {
43293
+ function _define_property$1(obj, key, value) {
43294
43294
  if (key in obj) {
43295
43295
  Object.defineProperty(obj, key, {
43296
43296
  value: value,
@@ -43362,7 +43362,7 @@ function _non_iterable_rest$6() {
43362
43362
  function _non_iterable_spread$7() {
43363
43363
  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
43364
  }
43365
- function _object_spread(target) {
43365
+ function _object_spread$1(target) {
43366
43366
  for(var i = 1; i < arguments.length; i++){
43367
43367
  var source = arguments[i] != null ? arguments[i] : {};
43368
43368
  var ownKeys = Object.keys(source);
@@ -43372,7 +43372,7 @@ function _object_spread(target) {
43372
43372
  }));
43373
43373
  }
43374
43374
  ownKeys.forEach(function(key) {
43375
- _define_property(target, key, source[key]);
43375
+ _define_property$1(target, key, source[key]);
43376
43376
  });
43377
43377
  }
43378
43378
  return target;
@@ -43458,13 +43458,13 @@ var CelVisitor = /*#__PURE__*/ function(BaseCelVisitor) {
43458
43458
  _class_call_check$B(this, CelVisitor);
43459
43459
  var _this;
43460
43460
  _this = _super.call(this);
43461
- _define_property(_assert_this_initialized(_this), "context", void 0);
43461
+ _define_property$1(_assert_this_initialized(_this), "context", void 0);
43462
43462
  /**
43463
43463
  * Tracks the current mode of the visitor to handle special cases.
43464
- */ _define_property(_assert_this_initialized(_this), "mode", Mode.normal);
43465
- _define_property(_assert_this_initialized(_this), "functions", void 0);
43464
+ */ _define_property$1(_assert_this_initialized(_this), "mode", Mode.normal);
43465
+ _define_property$1(_assert_this_initialized(_this), "functions", void 0);
43466
43466
  _this.context = context || {};
43467
- _this.functions = _object_spread({}, defaultFunctions, functions || {});
43467
+ _this.functions = _object_spread$1({}, defaultFunctions, functions || {});
43468
43468
  _this.validateVisitor();
43469
43469
  return _this;
43470
43470
  }
@@ -44205,6 +44205,198 @@ function evaluate(expression, context, functions) {
44205
44205
  }
44206
44206
  return toAstVisitorInstance.visit(result.cst);
44207
44207
  }
44208
+ // Latin-1 Supplement
44209
+ // upper case ranges
44210
+ // [À-ÖØ-ß]
44211
+ // lower case ranges
44212
+ // [à-öø-ÿ]
44213
+ var magicSplit = /^[a-zà-öø-ÿа-я]+|[A-ZÀ-ÖØ-ßА-Я][a-zà-öø-ÿа-я]+|[a-zà-öø-ÿа-я]+|[0-9]+|[A-ZÀ-ÖØ-ßА-Я]+(?![a-zà-öø-ÿа-я])/g;
44214
+ var spaceSplit = /\S+/g;
44215
+ /**
44216
+ * A string.matchAll function that will return an array of "string parts" and the indexes at which it split each part
44217
+ */ function getPartsAndIndexes(string, splitRegex) {
44218
+ var result = {
44219
+ parts: [],
44220
+ prefixes: []
44221
+ };
44222
+ var matches = string.matchAll(splitRegex);
44223
+ var lastWordEndIndex = 0;
44224
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
44225
+ try {
44226
+ for(var _iterator = matches[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
44227
+ var match = _step.value;
44228
+ if (typeof match.index !== 'number') continue;
44229
+ var word = match[0];
44230
+ result.parts.push(word);
44231
+ var prefix = string.slice(lastWordEndIndex, match.index).trim();
44232
+ result.prefixes.push(prefix);
44233
+ lastWordEndIndex = match.index + word.length;
44234
+ }
44235
+ } catch (err) {
44236
+ _didIteratorError = true;
44237
+ _iteratorError = err;
44238
+ } finally{
44239
+ try {
44240
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
44241
+ _iterator.return();
44242
+ }
44243
+ } finally{
44244
+ if (_didIteratorError) {
44245
+ throw _iteratorError;
44246
+ }
44247
+ }
44248
+ }
44249
+ var tail = string.slice(lastWordEndIndex).trim();
44250
+ if (tail) {
44251
+ result.parts.push('');
44252
+ result.prefixes.push(tail);
44253
+ }
44254
+ return result;
44255
+ }
44256
+ /**
44257
+ * A function that splits a string on words and returns an array of words.
44258
+ * - It can prefix each word with a given character
44259
+ * - It can strip or keep special characters, this affects the logic for adding a prefix as well
44260
+ */ function splitAndPrefix(string, options) {
44261
+ 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;
44262
+ var normalString = string.trim().normalize('NFC');
44263
+ var hasSpaces = normalString.includes(' ');
44264
+ var split = hasSpaces ? spaceSplit : magicSplit;
44265
+ var partsAndIndexes = getPartsAndIndexes(normalString, split);
44266
+ return partsAndIndexes.parts.map(function(_part, i) {
44267
+ var foundPrefix = partsAndIndexes.prefixes[i] || '';
44268
+ var part = _part;
44269
+ if (keepSpecialCharacters === false) {
44270
+ if (keep) {
44271
+ part = part.normalize('NFD').replace(new RegExp("[^a-zA-Z\xd8\xdf\xf80-9".concat(keep.join(''), "]"), 'g'), '');
44272
+ }
44273
+ if (!keep) {
44274
+ part = part.normalize('NFD').replace(/[^a-zA-ZØßø0-9]/g, '');
44275
+ foundPrefix = '';
44276
+ }
44277
+ }
44278
+ if (keep && foundPrefix) {
44279
+ foundPrefix = foundPrefix.replace(new RegExp("[^".concat(keep.join(''), "]"), 'g'), '');
44280
+ }
44281
+ // the first word doesn't need a prefix, so only return the found prefix
44282
+ if (i === 0) {
44283
+ // console.log(`foundPrefix → `, foundPrefix)
44284
+ return foundPrefix + part;
44285
+ }
44286
+ if (!foundPrefix && !part) return '';
44287
+ if (!hasSpaces) {
44288
+ // return the found prefix OR fall back to a given prefix
44289
+ return (foundPrefix || prefix) + part;
44290
+ }
44291
+ // space based sentence was split on spaces, so only return found prefixes
44292
+ if (!foundPrefix && prefix.match(/\s/)) {
44293
+ // in this case we have no more found prefix, it was trimmed, but we're looking to add a space
44294
+ // so let's return that space
44295
+ return ' ' + part;
44296
+ }
44297
+ return (foundPrefix || prefix) + part;
44298
+ }).filter(Boolean);
44299
+ }
44300
+ /**
44301
+ * Capitalises a single word
44302
+ * @returns the word with the first character in uppercase and the rest in lowercase
44303
+ */ function capitaliseWord(string) {
44304
+ var match = string.matchAll(magicSplit).next().value;
44305
+ var firstLetterIndex = match ? match.index : 0;
44306
+ return string.slice(0, firstLetterIndex + 1).toUpperCase() + string.slice(firstLetterIndex + 1).toLowerCase();
44307
+ }
44308
+ function _define_property(obj, key, value) {
44309
+ if (key in obj) {
44310
+ Object.defineProperty(obj, key, {
44311
+ value: value,
44312
+ enumerable: true,
44313
+ configurable: true,
44314
+ writable: true
44315
+ });
44316
+ } else {
44317
+ obj[key] = value;
44318
+ }
44319
+ return obj;
44320
+ }
44321
+ function _object_spread(target) {
44322
+ for(var i = 1; i < arguments.length; i++){
44323
+ var source = arguments[i] != null ? arguments[i] : {};
44324
+ var ownKeys = Object.keys(source);
44325
+ if (typeof Object.getOwnPropertySymbols === "function") {
44326
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
44327
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
44328
+ }));
44329
+ }
44330
+ ownKeys.forEach(function(key) {
44331
+ _define_property(target, key, source[key]);
44332
+ });
44333
+ }
44334
+ return target;
44335
+ }
44336
+ function ownKeys(object, enumerableOnly) {
44337
+ var keys = Object.keys(object);
44338
+ if (Object.getOwnPropertySymbols) {
44339
+ var symbols = Object.getOwnPropertySymbols(object);
44340
+ keys.push.apply(keys, symbols);
44341
+ }
44342
+ return keys;
44343
+ }
44344
+ function _object_spread_props(target, source) {
44345
+ source = source != null ? source : {};
44346
+ if (Object.getOwnPropertyDescriptors) {
44347
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
44348
+ } else {
44349
+ ownKeys(Object(source)).forEach(function(key) {
44350
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
44351
+ });
44352
+ }
44353
+ return target;
44354
+ }
44355
+ /**
44356
+ * # 🐪 camelCase
44357
+ * converts a string to camelCase
44358
+ * - first lowercase then all capitalised
44359
+ * - *strips away* special characters by default
44360
+ *
44361
+ * @example
44362
+ * camelCase('$catDog') === 'catDog'
44363
+ * @example
44364
+ * camelCase('$catDog', { keepSpecialCharacters: true }) === '$catDog'
44365
+ */ function camelCase(string, options) {
44366
+ return splitAndPrefix(string, options).reduce(function(result, word, index) {
44367
+ return index === 0 || !(word[0] || '').match(magicSplit) ? result + word.toLowerCase() : result + capitaliseWord(word);
44368
+ }, '');
44369
+ }
44370
+ /**
44371
+ * # 🥙 kebab-case
44372
+ * converts a string to kebab-case
44373
+ * - hyphenated lowercase
44374
+ * - *strips away* special characters by default
44375
+ *
44376
+ * @example
44377
+ * kebabCase('$catDog') === 'cat-dog'
44378
+ * @example
44379
+ * kebabCase('$catDog', { keepSpecialCharacters: true }) === '$cat-dog'
44380
+ */ function kebabCase(string, options) {
44381
+ return splitAndPrefix(string, _object_spread_props(_object_spread({}, options), {
44382
+ prefix: '-'
44383
+ })).join('').toLowerCase();
44384
+ }
44385
+ /**
44386
+ * # 🐍 snake_case
44387
+ * converts a string to snake_case
44388
+ * - underscored lowercase
44389
+ * - *strips away* special characters by default
44390
+ *
44391
+ * @example
44392
+ * snakeCase('$catDog') === 'cat_dog'
44393
+ * @example
44394
+ * snakeCase('$catDog', { keepSpecialCharacters: true }) === '$cat_dog'
44395
+ */ function snakeCase(string, options) {
44396
+ return splitAndPrefix(string, _object_spread_props(_object_spread({}, options), {
44397
+ prefix: '_'
44398
+ })).join('').toLowerCase();
44399
+ }
44208
44400
  const Handlebars = handlebars_min || HandlebarsNamespace;
44209
44401
  Handlebars.registerHelper('JSONstringify', function(value) {
44210
44402
  return JSON.stringify(value);
@@ -44219,7 +44411,10 @@ const DIGIPAIR_FUNCTIONS = {
44219
44411
  encodeUTF8: (value)=>Array.from(new TextEncoder().encode(value)).map((b)=>String.fromCharCode(b)).join(''),
44220
44412
  decodeUTF8: (value)=>new TextDecoder().decode(new Uint8Array(Array.from(value).map((c)=>c.charCodeAt(0)))),
44221
44413
  JSONparse: (value)=>JSON.parse(value),
44222
- JSONstringify: (value)=>JSON.stringify(value)
44414
+ JSONstringify: (value)=>JSON.stringify(value),
44415
+ camelCase: (value)=>camelCase(value),
44416
+ kebabCase: (value)=>kebabCase(value),
44417
+ snakeCase: (value)=>snakeCase(value)
44223
44418
  };
44224
44419
  const globalInstance = typeof window === 'undefined' ? global : window;
44225
44420
  const _config = globalInstance.__DIGIPAIR_CONFIG__ = globalInstance.__DIGIPAIR_CONFIG__ ?? {
@@ -45764,12 +45959,12 @@ var identifiers$1 = {
45764
45959
  rcompareIdentifiers: rcompareIdentifiers
45765
45960
  };
45766
45961
 
45767
- function _class_call_check$1(instance, Constructor) {
45962
+ function _class_call_check(instance, Constructor) {
45768
45963
  if (!(instance instanceof Constructor)) {
45769
45964
  throw new TypeError("Cannot call a class as a function");
45770
45965
  }
45771
45966
  }
45772
- function _defineProperties$1(target, props) {
45967
+ function _defineProperties(target, props) {
45773
45968
  for(var i = 0; i < props.length; i++){
45774
45969
  var descriptor = props[i];
45775
45970
  descriptor.enumerable = descriptor.enumerable || false;
@@ -45778,8 +45973,8 @@ function _defineProperties$1(target, props) {
45778
45973
  Object.defineProperty(target, descriptor.key, descriptor);
45779
45974
  }
45780
45975
  }
45781
- function _create_class$1(Constructor, protoProps, staticProps) {
45782
- if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
45976
+ function _create_class(Constructor, protoProps, staticProps) {
45977
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
45783
45978
  return Constructor;
45784
45979
  }
45785
45980
  function _instanceof$6(left, right) {
@@ -45800,7 +45995,7 @@ var parseOptions = parseOptions_1;
45800
45995
  var compareIdentifiers = identifiers$1.compareIdentifiers;
45801
45996
  var SemVer$d = /*#__PURE__*/ function() {
45802
45997
  function SemVer(version, options) {
45803
- _class_call_check$1(this, SemVer);
45998
+ _class_call_check(this, SemVer);
45804
45999
  options = parseOptions(options);
45805
46000
  if (_instanceof$6(version, SemVer)) {
45806
46001
  if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
@@ -45855,7 +46050,7 @@ var SemVer$d = /*#__PURE__*/ function() {
45855
46050
  this.build = m[5] ? m[5].split('.') : [];
45856
46051
  this.format();
45857
46052
  }
45858
- _create_class$1(SemVer, [
46053
+ _create_class(SemVer, [
45859
46054
  {
45860
46055
  key: "format",
45861
46056
  value: function format() {
@@ -46436,70 +46631,78 @@ var coerce$1 = function(version, options) {
46436
46631
  };
46437
46632
  var coerce_1 = coerce$1;
46438
46633
 
46439
- function _class_call_check(instance, Constructor) {
46440
- if (!(instance instanceof Constructor)) {
46441
- throw new TypeError("Cannot call a class as a function");
46442
- }
46443
- }
46444
- function _defineProperties(target, props) {
46445
- for(var i = 0; i < props.length; i++){
46446
- var descriptor = props[i];
46447
- descriptor.enumerable = descriptor.enumerable || false;
46448
- descriptor.configurable = true;
46449
- if ("value" in descriptor) descriptor.writable = true;
46450
- Object.defineProperty(target, descriptor.key, descriptor);
46451
- }
46452
- }
46453
- function _create_class(Constructor, protoProps, staticProps) {
46454
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
46455
- return Constructor;
46634
+ var lrucache;
46635
+ var hasRequiredLrucache;
46636
+
46637
+ function requireLrucache () {
46638
+ if (hasRequiredLrucache) return lrucache;
46639
+ hasRequiredLrucache = 1;
46640
+ function _class_call_check(instance, Constructor) {
46641
+ if (!(instance instanceof Constructor)) {
46642
+ throw new TypeError("Cannot call a class as a function");
46643
+ }
46644
+ }
46645
+ function _defineProperties(target, props) {
46646
+ for(var i = 0; i < props.length; i++){
46647
+ var descriptor = props[i];
46648
+ descriptor.enumerable = descriptor.enumerable || false;
46649
+ descriptor.configurable = true;
46650
+ if ("value" in descriptor) descriptor.writable = true;
46651
+ Object.defineProperty(target, descriptor.key, descriptor);
46652
+ }
46653
+ }
46654
+ function _create_class(Constructor, protoProps, staticProps) {
46655
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
46656
+ return Constructor;
46657
+ }
46658
+ var LRUCache = /*#__PURE__*/ function() {
46659
+ function LRUCache() {
46660
+ _class_call_check(this, LRUCache);
46661
+ this.max = 1000;
46662
+ this.map = new Map();
46663
+ }
46664
+ _create_class(LRUCache, [
46665
+ {
46666
+ key: "get",
46667
+ value: function get(key) {
46668
+ var value = this.map.get(key);
46669
+ if (value === undefined) {
46670
+ return undefined;
46671
+ } else {
46672
+ // Remove the key from the map and add it to the end
46673
+ this.map.delete(key);
46674
+ this.map.set(key, value);
46675
+ return value;
46676
+ }
46677
+ }
46678
+ },
46679
+ {
46680
+ key: "delete",
46681
+ value: function _delete(key) {
46682
+ return this.map.delete(key);
46683
+ }
46684
+ },
46685
+ {
46686
+ key: "set",
46687
+ value: function set(key, value) {
46688
+ var deleted = this.delete(key);
46689
+ if (!deleted && value !== undefined) {
46690
+ // If cache is full, delete the least recently used item
46691
+ if (this.map.size >= this.max) {
46692
+ var firstKey = this.map.keys().next().value;
46693
+ this.delete(firstKey);
46694
+ }
46695
+ this.map.set(key, value);
46696
+ }
46697
+ return this;
46698
+ }
46699
+ }
46700
+ ]);
46701
+ return LRUCache;
46702
+ }();
46703
+ lrucache = LRUCache;
46704
+ return lrucache;
46456
46705
  }
46457
- var LRUCache = /*#__PURE__*/ function() {
46458
- function LRUCache() {
46459
- _class_call_check(this, LRUCache);
46460
- this.max = 1000;
46461
- this.map = new Map();
46462
- }
46463
- _create_class(LRUCache, [
46464
- {
46465
- key: "get",
46466
- value: function get(key) {
46467
- var value = this.map.get(key);
46468
- if (value === undefined) {
46469
- return undefined;
46470
- } else {
46471
- // Remove the key from the map and add it to the end
46472
- this.map.delete(key);
46473
- this.map.set(key, value);
46474
- return value;
46475
- }
46476
- }
46477
- },
46478
- {
46479
- key: "delete",
46480
- value: function _delete(key) {
46481
- return this.map.delete(key);
46482
- }
46483
- },
46484
- {
46485
- key: "set",
46486
- value: function set(key, value) {
46487
- var deleted = this.delete(key);
46488
- if (!deleted && value !== undefined) {
46489
- // If cache is full, delete the least recently used item
46490
- if (this.map.size >= this.max) {
46491
- var firstKey = this.map.keys().next().value;
46492
- this.delete(firstKey);
46493
- }
46494
- this.map.set(key, value);
46495
- }
46496
- return this;
46497
- }
46498
- }
46499
- ]);
46500
- return LRUCache;
46501
- }();
46502
- var lrucache = LRUCache;
46503
46706
 
46504
46707
  var range;
46505
46708
  var hasRequiredRange;
@@ -46803,7 +47006,7 @@ function requireRange () {
46803
47006
  return Range;
46804
47007
  }();
46805
47008
  range = Range;
46806
- var LRU = lrucache;
47009
+ var LRU = requireLrucache();
46807
47010
  var cache = new LRU();
46808
47011
  var parseOptions = parseOptions_1;
46809
47012
  var Comparator = requireComparator();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-keycloak",
3
- "version": "0.117.6",
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",