@squiz/render-runtime-lib 1.2.1-alpha.60 → 1.2.1-alpha.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1,38 +1,10 @@
1
+ "use strict";
1
2
  var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
- var __defProps = Object.defineProperties;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
6
  var __getProtoOf = Object.getPrototypeOf;
9
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
- var __spreadValues = (a, b) => {
13
- for (var prop in b || (b = {}))
14
- if (__hasOwnProp.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- if (__getOwnPropSymbols)
17
- for (var prop of __getOwnPropSymbols(b)) {
18
- if (__propIsEnum.call(b, prop))
19
- __defNormalProp(a, prop, b[prop]);
20
- }
21
- return a;
22
- };
23
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
- var __objRest = (source, exclude) => {
25
- var target = {};
26
- for (var prop in source)
27
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
28
- target[prop] = source[prop];
29
- if (source != null && __getOwnPropSymbols)
30
- for (var prop of __getOwnPropSymbols(source)) {
31
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
32
- target[prop] = source[prop];
33
- }
34
- return target;
35
- };
36
8
  var __commonJS = (cb, mod) => function __require() {
37
9
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
38
10
  };
@@ -6391,7 +6363,7 @@ var require_scope = __commonJS({
6391
6363
  super(opts);
6392
6364
  this._values = {};
6393
6365
  this._scope = opts.scope;
6394
- this.opts = __spreadProps(__spreadValues({}, opts), { _n: opts.lines ? line : code_1.nil });
6366
+ this.opts = { ...opts, _n: opts.lines ? line : code_1.nil };
6395
6367
  }
6396
6368
  get() {
6397
6369
  return this._scope;
@@ -6577,7 +6549,7 @@ var require_codegen = __commonJS({
6577
6549
  return this;
6578
6550
  }
6579
6551
  get names() {
6580
- const names = this.lhs instanceof code_1.Name ? {} : __spreadValues({}, this.lhs.names);
6552
+ const names = this.lhs instanceof code_1.Name ? {} : { ...this.lhs.names };
6581
6553
  return addExprNames(names, this.rhs);
6582
6554
  }
6583
6555
  };
@@ -6871,7 +6843,7 @@ var require_codegen = __commonJS({
6871
6843
  this._values = {};
6872
6844
  this._blockStarts = [];
6873
6845
  this._constants = {};
6874
- this.opts = __spreadProps(__spreadValues({}, opts), { _n: opts.lines ? "\n" : "" });
6846
+ this.opts = { ...opts, _n: opts.lines ? "\n" : "" };
6875
6847
  this._extScope = extScope;
6876
6848
  this._scope = new scope_1.Scope({ parent: extScope });
6877
6849
  this._nodes = [new Root()];
@@ -7271,7 +7243,7 @@ var require_util2 = __commonJS({
7271
7243
  setEvaluated(gen, to, from);
7272
7244
  }
7273
7245
  }),
7274
- mergeValues: (from, to) => from === true ? true : __spreadValues(__spreadValues({}, from), to),
7246
+ mergeValues: (from, to) => from === true ? true : { ...from, ...to },
7275
7247
  resultToName: evaluatedPropsToName
7276
7248
  }),
7277
7249
  items: makeMergeEvaluated({
@@ -7547,7 +7519,7 @@ var require_rules = __commonJS({
7547
7519
  object: { type: "object", rules: [] }
7548
7520
  };
7549
7521
  return {
7550
- types: __spreadProps(__spreadValues({}, groups), { integer: true, boolean: true, null: true }),
7522
+ types: { ...groups, integer: true, boolean: true, null: true },
7551
7523
  rules: [{ rules: [] }, groups.number, groups.string, groups.array, groups.object],
7552
7524
  post: { rules: [] },
7553
7525
  all: {},
@@ -8840,7 +8812,7 @@ var require_validate = __commonJS({
8840
8812
  const subschema = (0, subschema_1.getSubschema)(this.it, appl);
8841
8813
  (0, subschema_1.extendSubschemaData)(subschema, this.it, appl);
8842
8814
  (0, subschema_1.extendSubschemaMode)(subschema, appl);
8843
- const nextContext = __spreadProps(__spreadValues(__spreadValues({}, this.it), subschema), { items: void 0, props: void 0 });
8815
+ const nextContext = { ...this.it, ...subschema, items: void 0, props: void 0 };
8844
8816
  subschemaCode(nextContext, valid);
8845
8817
  return nextContext;
8846
8818
  }
@@ -10309,7 +10281,7 @@ var require_core = __commonJS({
10309
10281
  strictTypes: (_k = (_j = o.strictTypes) !== null && _j !== void 0 ? _j : s) !== null && _k !== void 0 ? _k : "log",
10310
10282
  strictTuples: (_m = (_l = o.strictTuples) !== null && _l !== void 0 ? _l : s) !== null && _m !== void 0 ? _m : "log",
10311
10283
  strictRequired: (_p = (_o = o.strictRequired) !== null && _o !== void 0 ? _o : s) !== null && _p !== void 0 ? _p : false,
10312
- code: o.code ? __spreadProps(__spreadValues({}, o.code), { optimize, regExp }) : { optimize, regExp },
10284
+ code: o.code ? { ...o.code, optimize, regExp } : { optimize, regExp },
10313
10285
  loopRequired: (_q = o.loopRequired) !== null && _q !== void 0 ? _q : MAX_EXPRESSION,
10314
10286
  loopEnum: (_r = o.loopEnum) !== null && _r !== void 0 ? _r : MAX_EXPRESSION,
10315
10287
  meta: (_s = o.meta) !== null && _s !== void 0 ? _s : true,
@@ -10332,7 +10304,7 @@ var require_core = __commonJS({
10332
10304
  this._compilations = /* @__PURE__ */ new Set();
10333
10305
  this._loading = {};
10334
10306
  this._cache = /* @__PURE__ */ new Map();
10335
- opts = this.opts = __spreadValues(__spreadValues({}, opts), requiredOptions(opts));
10307
+ opts = this.opts = { ...opts, ...requiredOptions(opts) };
10336
10308
  const { es5, lines } = this.opts.code;
10337
10309
  this.scope = new codegen_2.ValueScope({ scope: {}, prefixes: EXT_SCOPE_NAMES, es5, lines });
10338
10310
  this.logger = getLogger(opts.logger);
@@ -10360,7 +10332,7 @@ var require_core = __commonJS({
10360
10332
  const { $data, meta, schemaId } = this.opts;
10361
10333
  let _dataRefSchema = $dataRefSchema;
10362
10334
  if (schemaId === "id") {
10363
- _dataRefSchema = __spreadValues({}, $dataRefSchema);
10335
+ _dataRefSchema = { ...$dataRefSchema };
10364
10336
  _dataRefSchema.id = _dataRefSchema.$id;
10365
10337
  delete _dataRefSchema.$id;
10366
10338
  }
@@ -10563,10 +10535,11 @@ var require_core = __commonJS({
10563
10535
  return this;
10564
10536
  }
10565
10537
  keywordMetaschema.call(this, def);
10566
- const definition = __spreadProps(__spreadValues({}, def), {
10538
+ const definition = {
10539
+ ...def,
10567
10540
  type: (0, dataType_1.getJSONTypes)(def.type),
10568
10541
  schemaType: (0, dataType_1.getJSONTypes)(def.schemaType)
10569
- });
10542
+ };
10570
10543
  (0, util_1.eachItem)(keyword, definition.type.length === 0 ? (k) => addRule.call(this, k, definition) : (k) => definition.type.forEach((t) => addRule.call(this, k, definition, t)));
10571
10544
  return this;
10572
10545
  }
@@ -10725,7 +10698,7 @@ var require_core = __commonJS({
10725
10698
  }
10726
10699
  }
10727
10700
  function getMetaSchemaOptions() {
10728
- const metaOpts = __spreadValues({}, this.opts);
10701
+ const metaOpts = { ...this.opts };
10729
10702
  for (const opt of META_IGNORE_OPTIONS)
10730
10703
  delete metaOpts[opt];
10731
10704
  return metaOpts;
@@ -10774,10 +10747,11 @@ var require_core = __commonJS({
10774
10747
  return;
10775
10748
  const rule = {
10776
10749
  keyword,
10777
- definition: __spreadProps(__spreadValues({}, definition), {
10750
+ definition: {
10751
+ ...definition,
10778
10752
  type: (0, dataType_1.getJSONTypes)(definition.type),
10779
10753
  schemaType: (0, dataType_1.getJSONTypes)(definition.schemaType)
10780
- })
10754
+ }
10781
10755
  };
10782
10756
  if (definition.before)
10783
10757
  addBeforeRule.call(this, ruleGroup, rule, definition.before);
@@ -13014,7 +12988,10 @@ var require_api = __commonJS({
13014
12988
  return isDigit(c) || c === "." || c === "-";
13015
12989
  }
13016
12990
  function tokenize(text, options) {
13017
- options = Object.freeze(__spreadValues(__spreadValues({}, DEFAULT_OPTIONS), options));
12991
+ options = Object.freeze({
12992
+ ...DEFAULT_OPTIONS,
12993
+ ...options
12994
+ });
13018
12995
  let offset = -1;
13019
12996
  let line = 1;
13020
12997
  let column = 0;
@@ -13025,7 +13002,7 @@ var require_api = __commonJS({
13025
13002
  let range = options.ranges ? {
13026
13003
  range: [startLoc.offset, endOffset]
13027
13004
  } : void 0;
13028
- return __spreadValues({
13005
+ return {
13029
13006
  type: tokenType,
13030
13007
  value,
13031
13008
  loc: {
@@ -13035,8 +13012,9 @@ var require_api = __commonJS({
13035
13012
  column: startLoc.column + value.length,
13036
13013
  offset: endOffset
13037
13014
  }
13038
- }
13039
- }, range);
13015
+ },
13016
+ ...range
13017
+ };
13040
13018
  }
13041
13019
  function next() {
13042
13020
  let c2 = text.charAt(++offset);
@@ -13231,53 +13209,61 @@ var require_api = __commonJS({
13231
13209
  }
13232
13210
  var types = {
13233
13211
  document(body, parts = {}) {
13234
- return __spreadValues({
13212
+ return {
13235
13213
  type: "Document",
13236
- body
13237
- }, parts);
13214
+ body,
13215
+ ...parts
13216
+ };
13238
13217
  },
13239
13218
  string(value, parts = {}) {
13240
- return __spreadValues({
13219
+ return {
13241
13220
  type: "String",
13242
- value
13243
- }, parts);
13221
+ value,
13222
+ ...parts
13223
+ };
13244
13224
  },
13245
13225
  number(value, parts = {}) {
13246
- return __spreadValues({
13226
+ return {
13247
13227
  type: "Number",
13248
- value
13249
- }, parts);
13228
+ value,
13229
+ ...parts
13230
+ };
13250
13231
  },
13251
13232
  boolean(value, parts = {}) {
13252
- return __spreadValues({
13233
+ return {
13253
13234
  type: "Boolean",
13254
- value
13255
- }, parts);
13235
+ value,
13236
+ ...parts
13237
+ };
13256
13238
  },
13257
13239
  null(parts = {}) {
13258
- return __spreadValues({
13240
+ return {
13259
13241
  type: "Null",
13260
- value: "null"
13261
- }, parts);
13242
+ value: "null",
13243
+ ...parts
13244
+ };
13262
13245
  },
13263
13246
  array(elements, parts = {}) {
13264
- return __spreadValues({
13247
+ return {
13265
13248
  type: "Array",
13266
- elements
13267
- }, parts);
13249
+ elements,
13250
+ ...parts
13251
+ };
13268
13252
  },
13269
13253
  object(members, parts = {}) {
13270
- return __spreadValues({
13254
+ return {
13271
13255
  type: "Object",
13272
- members
13273
- }, parts);
13256
+ members,
13257
+ ...parts
13258
+ };
13274
13259
  },
13275
13260
  member(name, value, parts = {}) {
13276
- return __spreadValues({
13261
+ return {
13277
13262
  type: "Member",
13278
13263
  name,
13279
- value
13280
- }, parts);
13264
+ value,
13265
+ ...parts
13266
+ };
13281
13267
  }
13282
13268
  };
13283
13269
  var DEFAULT_OPTIONS$1 = {
@@ -13332,7 +13318,10 @@ var require_api = __commonJS({
13332
13318
  }
13333
13319
  }
13334
13320
  function parse(text, options) {
13335
- options = Object.freeze(__spreadValues(__spreadValues({}, DEFAULT_OPTIONS$1), options));
13321
+ options = Object.freeze({
13322
+ ...DEFAULT_OPTIONS$1,
13323
+ ...options
13324
+ });
13336
13325
  const tokens = tokenize(text, {
13337
13326
  comments: !!options.comments,
13338
13327
  ranges: !!options.ranges
@@ -13366,14 +13355,19 @@ var require_api = __commonJS({
13366
13355
  }
13367
13356
  function createLiteralNode(token) {
13368
13357
  const range = createRange(token.loc.start, token.loc.end);
13369
- return __spreadValues({
13358
+ return {
13370
13359
  type: token.type,
13371
13360
  value: getLiteralValue(token),
13372
13361
  loc: {
13373
- start: __spreadValues({}, token.loc.start),
13374
- end: __spreadValues({}, token.loc.end)
13375
- }
13376
- }, range);
13362
+ start: {
13363
+ ...token.loc.start
13364
+ },
13365
+ end: {
13366
+ ...token.loc.end
13367
+ }
13368
+ },
13369
+ ...range
13370
+ };
13377
13371
  }
13378
13372
  function parseProperty(token) {
13379
13373
  assertTokenType(token, "String");
@@ -13382,12 +13376,17 @@ var require_api = __commonJS({
13382
13376
  assertTokenValue(token, ":");
13383
13377
  const value = parseValue();
13384
13378
  const range = createRange(name.loc.start, value.loc.end);
13385
- return types.member(name, value, __spreadValues({
13379
+ return types.member(name, value, {
13386
13380
  loc: {
13387
- start: __spreadValues({}, name.loc.start),
13388
- end: __spreadValues({}, value.loc.end)
13389
- }
13390
- }, range));
13381
+ start: {
13382
+ ...name.loc.start
13383
+ },
13384
+ end: {
13385
+ ...value.loc.end
13386
+ }
13387
+ },
13388
+ ...range
13389
+ });
13391
13390
  }
13392
13391
  function parseObject(firstToken) {
13393
13392
  assertTokenValue(firstToken, "{");
@@ -13406,12 +13405,17 @@ var require_api = __commonJS({
13406
13405
  }
13407
13406
  assertTokenValue(token, "}");
13408
13407
  const range = createRange(firstToken.loc.start, token.loc.end);
13409
- return types.object(members, __spreadValues({
13408
+ return types.object(members, {
13410
13409
  loc: {
13411
- start: __spreadValues({}, firstToken.loc.start),
13412
- end: __spreadValues({}, token.loc.end)
13413
- }
13414
- }, range));
13410
+ start: {
13411
+ ...firstToken.loc.start
13412
+ },
13413
+ end: {
13414
+ ...token.loc.end
13415
+ }
13416
+ },
13417
+ ...range
13418
+ });
13415
13419
  }
13416
13420
  function parseArray(firstToken) {
13417
13421
  assertTokenValue(firstToken, "[");
@@ -13430,14 +13434,19 @@ var require_api = __commonJS({
13430
13434
  }
13431
13435
  assertTokenValue(token, "]");
13432
13436
  const range = createRange(firstToken.loc.start, token.loc.end);
13433
- return types.array(elements, __spreadValues({
13437
+ return types.array(elements, {
13434
13438
  type: "Array",
13435
13439
  elements,
13436
13440
  loc: {
13437
- start: __spreadValues({}, firstToken.loc.start),
13438
- end: __spreadValues({}, token.loc.end)
13439
- }
13440
- }, range));
13441
+ start: {
13442
+ ...firstToken.loc.start
13443
+ },
13444
+ end: {
13445
+ ...token.loc.end
13446
+ }
13447
+ },
13448
+ ...range
13449
+ });
13441
13450
  }
13442
13451
  function parseValue(token) {
13443
13452
  token = token || next();
@@ -13469,7 +13478,9 @@ var require_api = __commonJS({
13469
13478
  column: 1,
13470
13479
  offset: 0
13471
13480
  },
13472
- end: __spreadValues({}, docBody.loc.end)
13481
+ end: {
13482
+ ...docBody.loc.end
13483
+ }
13473
13484
  }
13474
13485
  };
13475
13486
  if (options.tokens) {
@@ -13572,26 +13583,26 @@ var require_api = __commonJS({
13572
13583
  var require_utils = __commonJS({
13573
13584
  "../component-lib/node_modules/better-ajv-errors/lib/cjs/utils.js"(exports2, module2) {
13574
13585
  var __defProp2 = Object.defineProperty;
13575
- var __defProps2 = Object.defineProperties;
13586
+ var __defProps = Object.defineProperties;
13576
13587
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
13577
- var __getOwnPropDescs2 = Object.getOwnPropertyDescriptors;
13588
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
13578
13589
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
13579
- var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
13590
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
13580
13591
  var __hasOwnProp2 = Object.prototype.hasOwnProperty;
13581
- var __propIsEnum2 = Object.prototype.propertyIsEnumerable;
13582
- var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13583
- var __spreadValues2 = (a, b) => {
13592
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
13593
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13594
+ var __spreadValues = (a, b) => {
13584
13595
  for (var prop in b || (b = {}))
13585
13596
  if (__hasOwnProp2.call(b, prop))
13586
- __defNormalProp2(a, prop, b[prop]);
13587
- if (__getOwnPropSymbols2)
13588
- for (var prop of __getOwnPropSymbols2(b)) {
13589
- if (__propIsEnum2.call(b, prop))
13590
- __defNormalProp2(a, prop, b[prop]);
13597
+ __defNormalProp(a, prop, b[prop]);
13598
+ if (__getOwnPropSymbols)
13599
+ for (var prop of __getOwnPropSymbols(b)) {
13600
+ if (__propIsEnum.call(b, prop))
13601
+ __defNormalProp(a, prop, b[prop]);
13591
13602
  }
13592
13603
  return a;
13593
13604
  };
13594
- var __spreadProps2 = (a, b) => __defProps2(a, __getOwnPropDescs2(b));
13605
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13595
13606
  var __export2 = (target, all) => {
13596
13607
  for (var name in all)
13597
13608
  __defProp2(target, name, { get: all[name], enumerable: true });
@@ -13625,7 +13636,7 @@ var require_utils = __commonJS({
13625
13636
  var isRequiredError = isXError("required");
13626
13637
  var isAnyOfError = isXError("anyOf");
13627
13638
  var isEnumError = isXError("enum");
13628
- var getErrors = (node) => node && node.errors ? node.errors.map((e) => e.keyword === "errorMessage" ? __spreadProps2(__spreadValues2({}, e.params.errors[0]), { message: e.message }) : e) : [];
13639
+ var getErrors = (node) => node && node.errors ? node.errors.map((e) => e.keyword === "errorMessage" ? __spreadProps(__spreadValues({}, e.params.errors[0]), { message: e.message }) : e) : [];
13629
13640
  var getChildren = (node) => node && getValues(node.children) || [];
13630
13641
  var getSiblings = (parent) => (node) => getChildren(parent).filter(not(eq(node)));
13631
13642
  var concatAll = (xs) => (ys) => ys.reduce((zs, z) => zs.concat(z), xs);
@@ -15082,7 +15093,8 @@ var require_source = __commonJS({
15082
15093
  };
15083
15094
  }
15084
15095
  var proto = Object.defineProperties(() => {
15085
- }, __spreadProps(__spreadValues({}, styles), {
15096
+ }, {
15097
+ ...styles,
15086
15098
  level: {
15087
15099
  enumerable: true,
15088
15100
  get() {
@@ -15092,7 +15104,7 @@ var require_source = __commonJS({
15092
15104
  this._generator.level = level;
15093
15105
  }
15094
15106
  }
15095
- }));
15107
+ });
15096
15108
  var createStyler = (open, close, parent) => {
15097
15109
  let openAll;
15098
15110
  let closeAll;
@@ -17412,27 +17424,27 @@ var require_required2 = __commonJS({
17412
17424
  "../component-lib/node_modules/better-ajv-errors/lib/cjs/validation-errors/required.js"(exports2, module2) {
17413
17425
  var __create2 = Object.create;
17414
17426
  var __defProp2 = Object.defineProperty;
17415
- var __defProps2 = Object.defineProperties;
17427
+ var __defProps = Object.defineProperties;
17416
17428
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
17417
- var __getOwnPropDescs2 = Object.getOwnPropertyDescriptors;
17429
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
17418
17430
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
17419
- var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
17431
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
17420
17432
  var __getProtoOf2 = Object.getPrototypeOf;
17421
17433
  var __hasOwnProp2 = Object.prototype.hasOwnProperty;
17422
- var __propIsEnum2 = Object.prototype.propertyIsEnumerable;
17423
- var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17424
- var __spreadValues2 = (a, b) => {
17434
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
17435
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17436
+ var __spreadValues = (a, b) => {
17425
17437
  for (var prop in b || (b = {}))
17426
17438
  if (__hasOwnProp2.call(b, prop))
17427
- __defNormalProp2(a, prop, b[prop]);
17428
- if (__getOwnPropSymbols2)
17429
- for (var prop of __getOwnPropSymbols2(b)) {
17430
- if (__propIsEnum2.call(b, prop))
17431
- __defNormalProp2(a, prop, b[prop]);
17439
+ __defNormalProp(a, prop, b[prop]);
17440
+ if (__getOwnPropSymbols)
17441
+ for (var prop of __getOwnPropSymbols(b)) {
17442
+ if (__propIsEnum.call(b, prop))
17443
+ __defNormalProp(a, prop, b[prop]);
17432
17444
  }
17433
17445
  return a;
17434
17446
  };
17435
- var __spreadProps2 = (a, b) => __defProps2(a, __getOwnPropDescs2(b));
17447
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
17436
17448
  var __export2 = (target, all) => {
17437
17449
  for (var name in all)
17438
17450
  __defProp2(target, name, { get: all[name], enumerable: true });
@@ -17466,7 +17478,7 @@ var require_required2 = __commonJS({
17466
17478
  }
17467
17479
  getError() {
17468
17480
  const { message: message2 } = this.options;
17469
- return __spreadProps2(__spreadValues2({}, this.getLocation()), {
17481
+ return __spreadProps(__spreadValues({}, this.getLocation()), {
17470
17482
  error: `${this.getDecoratedPath()} ${message2}`,
17471
17483
  path: this.instancePath
17472
17484
  });
@@ -17480,27 +17492,27 @@ var require_additional_prop = __commonJS({
17480
17492
  "../component-lib/node_modules/better-ajv-errors/lib/cjs/validation-errors/additional-prop.js"(exports2, module2) {
17481
17493
  var __create2 = Object.create;
17482
17494
  var __defProp2 = Object.defineProperty;
17483
- var __defProps2 = Object.defineProperties;
17495
+ var __defProps = Object.defineProperties;
17484
17496
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
17485
- var __getOwnPropDescs2 = Object.getOwnPropertyDescriptors;
17497
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
17486
17498
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
17487
- var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
17499
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
17488
17500
  var __getProtoOf2 = Object.getPrototypeOf;
17489
17501
  var __hasOwnProp2 = Object.prototype.hasOwnProperty;
17490
- var __propIsEnum2 = Object.prototype.propertyIsEnumerable;
17491
- var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17492
- var __spreadValues2 = (a, b) => {
17502
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
17503
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17504
+ var __spreadValues = (a, b) => {
17493
17505
  for (var prop in b || (b = {}))
17494
17506
  if (__hasOwnProp2.call(b, prop))
17495
- __defNormalProp2(a, prop, b[prop]);
17496
- if (__getOwnPropSymbols2)
17497
- for (var prop of __getOwnPropSymbols2(b)) {
17498
- if (__propIsEnum2.call(b, prop))
17499
- __defNormalProp2(a, prop, b[prop]);
17507
+ __defNormalProp(a, prop, b[prop]);
17508
+ if (__getOwnPropSymbols)
17509
+ for (var prop of __getOwnPropSymbols(b)) {
17510
+ if (__propIsEnum.call(b, prop))
17511
+ __defNormalProp(a, prop, b[prop]);
17500
17512
  }
17501
17513
  return a;
17502
17514
  };
17503
- var __spreadProps2 = (a, b) => __defProps2(a, __getOwnPropDescs2(b));
17515
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
17504
17516
  var __export2 = (target, all) => {
17505
17517
  for (var name in all)
17506
17518
  __defProp2(target, name, { get: all[name], enumerable: true });
@@ -17534,7 +17546,7 @@ var require_additional_prop = __commonJS({
17534
17546
  }
17535
17547
  getError() {
17536
17548
  const { params } = this.options;
17537
- return __spreadProps2(__spreadValues2({}, this.getLocation(`${this.instancePath}/${params.additionalProperty}`)), {
17549
+ return __spreadProps(__spreadValues({}, this.getLocation(`${this.instancePath}/${params.additionalProperty}`)), {
17538
17550
  error: `${this.getDecoratedPath()} Property ${params.additionalProperty} is not expected to be here`,
17539
17551
  path: this.instancePath
17540
17552
  });
@@ -17710,27 +17722,27 @@ var require_enum2 = __commonJS({
17710
17722
  "../component-lib/node_modules/better-ajv-errors/lib/cjs/validation-errors/enum.js"(exports2, module2) {
17711
17723
  var __create2 = Object.create;
17712
17724
  var __defProp2 = Object.defineProperty;
17713
- var __defProps2 = Object.defineProperties;
17725
+ var __defProps = Object.defineProperties;
17714
17726
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
17715
- var __getOwnPropDescs2 = Object.getOwnPropertyDescriptors;
17727
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
17716
17728
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
17717
- var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
17729
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
17718
17730
  var __getProtoOf2 = Object.getPrototypeOf;
17719
17731
  var __hasOwnProp2 = Object.prototype.hasOwnProperty;
17720
- var __propIsEnum2 = Object.prototype.propertyIsEnumerable;
17721
- var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17722
- var __spreadValues2 = (a, b) => {
17732
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
17733
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17734
+ var __spreadValues = (a, b) => {
17723
17735
  for (var prop in b || (b = {}))
17724
17736
  if (__hasOwnProp2.call(b, prop))
17725
- __defNormalProp2(a, prop, b[prop]);
17726
- if (__getOwnPropSymbols2)
17727
- for (var prop of __getOwnPropSymbols2(b)) {
17728
- if (__propIsEnum2.call(b, prop))
17729
- __defNormalProp2(a, prop, b[prop]);
17737
+ __defNormalProp(a, prop, b[prop]);
17738
+ if (__getOwnPropSymbols)
17739
+ for (var prop of __getOwnPropSymbols(b)) {
17740
+ if (__propIsEnum.call(b, prop))
17741
+ __defNormalProp(a, prop, b[prop]);
17730
17742
  }
17731
17743
  return a;
17732
17744
  };
17733
- var __spreadProps2 = (a, b) => __defProps2(a, __getOwnPropDescs2(b));
17745
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
17734
17746
  var __export2 = (target, all) => {
17735
17747
  for (var name in all)
17736
17748
  __defProp2(target, name, { get: all[name], enumerable: true });
@@ -17771,7 +17783,7 @@ var require_enum2 = __commonJS({
17771
17783
  const { message: message2, params } = this.options;
17772
17784
  const bestMatch = this.findBestMatch();
17773
17785
  const allowedValues = params.allowedValues.join(", ");
17774
- const output = __spreadProps2(__spreadValues2({}, this.getLocation()), {
17786
+ const output = __spreadProps(__spreadValues({}, this.getLocation()), {
17775
17787
  error: `${this.getDecoratedPath()} ${message2}: ${allowedValues}`,
17776
17788
  path: this.instancePath
17777
17789
  });
@@ -17803,27 +17815,27 @@ var require_default = __commonJS({
17803
17815
  "../component-lib/node_modules/better-ajv-errors/lib/cjs/validation-errors/default.js"(exports2, module2) {
17804
17816
  var __create2 = Object.create;
17805
17817
  var __defProp2 = Object.defineProperty;
17806
- var __defProps2 = Object.defineProperties;
17818
+ var __defProps = Object.defineProperties;
17807
17819
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
17808
- var __getOwnPropDescs2 = Object.getOwnPropertyDescriptors;
17820
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
17809
17821
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
17810
- var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
17822
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
17811
17823
  var __getProtoOf2 = Object.getPrototypeOf;
17812
17824
  var __hasOwnProp2 = Object.prototype.hasOwnProperty;
17813
- var __propIsEnum2 = Object.prototype.propertyIsEnumerable;
17814
- var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17815
- var __spreadValues2 = (a, b) => {
17825
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
17826
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17827
+ var __spreadValues = (a, b) => {
17816
17828
  for (var prop in b || (b = {}))
17817
17829
  if (__hasOwnProp2.call(b, prop))
17818
- __defNormalProp2(a, prop, b[prop]);
17819
- if (__getOwnPropSymbols2)
17820
- for (var prop of __getOwnPropSymbols2(b)) {
17821
- if (__propIsEnum2.call(b, prop))
17822
- __defNormalProp2(a, prop, b[prop]);
17830
+ __defNormalProp(a, prop, b[prop]);
17831
+ if (__getOwnPropSymbols)
17832
+ for (var prop of __getOwnPropSymbols(b)) {
17833
+ if (__propIsEnum.call(b, prop))
17834
+ __defNormalProp(a, prop, b[prop]);
17823
17835
  }
17824
17836
  return a;
17825
17837
  };
17826
- var __spreadProps2 = (a, b) => __defProps2(a, __getOwnPropDescs2(b));
17838
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
17827
17839
  var __export2 = (target, all) => {
17828
17840
  for (var name in all)
17829
17841
  __defProp2(target, name, { get: all[name], enumerable: true });
@@ -17853,7 +17865,7 @@ var require_default = __commonJS({
17853
17865
  }
17854
17866
  getError() {
17855
17867
  const { keyword, message: message2 } = this.options;
17856
- return __spreadProps2(__spreadValues2({}, this.getLocation()), {
17868
+ return __spreadProps(__spreadValues({}, this.getLocation()), {
17857
17869
  error: `${this.getDecoratedPath()}: ${keyword} ${message2}`,
17858
17870
  path: this.instancePath
17859
17871
  });
@@ -17904,26 +17916,26 @@ var require_validation_errors = __commonJS({
17904
17916
  var require_helpers = __commonJS({
17905
17917
  "../component-lib/node_modules/better-ajv-errors/lib/cjs/helpers.js"(exports2, module2) {
17906
17918
  var __defProp2 = Object.defineProperty;
17907
- var __defProps2 = Object.defineProperties;
17919
+ var __defProps = Object.defineProperties;
17908
17920
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
17909
- var __getOwnPropDescs2 = Object.getOwnPropertyDescriptors;
17921
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
17910
17922
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
17911
- var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
17923
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
17912
17924
  var __hasOwnProp2 = Object.prototype.hasOwnProperty;
17913
- var __propIsEnum2 = Object.prototype.propertyIsEnumerable;
17914
- var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17915
- var __spreadValues2 = (a, b) => {
17925
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
17926
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17927
+ var __spreadValues = (a, b) => {
17916
17928
  for (var prop in b || (b = {}))
17917
17929
  if (__hasOwnProp2.call(b, prop))
17918
- __defNormalProp2(a, prop, b[prop]);
17919
- if (__getOwnPropSymbols2)
17920
- for (var prop of __getOwnPropSymbols2(b)) {
17921
- if (__propIsEnum2.call(b, prop))
17922
- __defNormalProp2(a, prop, b[prop]);
17930
+ __defNormalProp(a, prop, b[prop]);
17931
+ if (__getOwnPropSymbols)
17932
+ for (var prop of __getOwnPropSymbols(b)) {
17933
+ if (__propIsEnum.call(b, prop))
17934
+ __defNormalProp(a, prop, b[prop]);
17923
17935
  }
17924
17936
  return a;
17925
17937
  };
17926
- var __spreadProps2 = (a, b) => __defProps2(a, __getOwnPropDescs2(b));
17938
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
17927
17939
  var __export2 = (target, all) => {
17928
17940
  for (var name in all)
17929
17941
  __defProp2(target, name, { get: all[name], enumerable: true });
@@ -17989,7 +18001,7 @@ var require_helpers = __commonJS({
17989
18001
  const allowedValues = [...uniqueValues];
17990
18002
  const error = errors[0];
17991
18003
  return [
17992
- new import_validation_errors.EnumValidationError(__spreadProps2(__spreadValues2({}, error), {
18004
+ new import_validation_errors.EnumValidationError(__spreadProps(__spreadValues({}, error), {
17993
18005
  params: { allowedValues }
17994
18006
  }), options)
17995
18007
  ];
@@ -19127,7 +19139,7 @@ var require_make_dir = __commonJS({
19127
19139
  const defaults = { mode: 511 };
19128
19140
  if (typeof options === "number")
19129
19141
  return options;
19130
- return __spreadValues(__spreadValues({}, defaults), options).mode;
19142
+ return { ...defaults, ...options }.mode;
19131
19143
  };
19132
19144
  module2.exports.makeDir = async (dir, options) => {
19133
19145
  checkPath(dir);
@@ -20742,7 +20754,18 @@ var require_move2 = __commonJS({
20742
20754
  var require_lib4 = __commonJS({
20743
20755
  "../component-lib/node_modules/fs-extra/lib/index.js"(exports2, module2) {
20744
20756
  "use strict";
20745
- module2.exports = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, require_fs()), require_copy2()), require_empty()), require_ensure()), require_json2()), require_mkdirs()), require_move2()), require_output_file()), require_path_exists()), require_remove());
20757
+ module2.exports = {
20758
+ ...require_fs(),
20759
+ ...require_copy2(),
20760
+ ...require_empty(),
20761
+ ...require_ensure(),
20762
+ ...require_json2(),
20763
+ ...require_mkdirs(),
20764
+ ...require_move2(),
20765
+ ...require_output_file(),
20766
+ ...require_path_exists(),
20767
+ ...require_remove()
20768
+ };
20746
20769
  }
20747
20770
  });
20748
20771
 
@@ -60900,7 +60923,7 @@ var require_make_dir2 = __commonJS({
60900
60923
  const defaults = { mode: 511 };
60901
60924
  if (typeof options === "number")
60902
60925
  return options;
60903
- return __spreadValues(__spreadValues({}, defaults), options).mode;
60926
+ return { ...defaults, ...options }.mode;
60904
60927
  };
60905
60928
  module2.exports.makeDir = async (dir, options) => {
60906
60929
  checkPath(dir);
@@ -62515,7 +62538,18 @@ var require_move4 = __commonJS({
62515
62538
  var require_lib9 = __commonJS({
62516
62539
  "node_modules/fs-extra/lib/index.js"(exports2, module2) {
62517
62540
  "use strict";
62518
- module2.exports = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, require_fs3()), require_copy4()), require_empty2()), require_ensure2()), require_json5()), require_mkdirs2()), require_move4()), require_output_file2()), require_path_exists2()), require_remove2());
62541
+ module2.exports = {
62542
+ ...require_fs3(),
62543
+ ...require_copy4(),
62544
+ ...require_empty2(),
62545
+ ...require_ensure2(),
62546
+ ...require_json5(),
62547
+ ...require_mkdirs2(),
62548
+ ...require_move4(),
62549
+ ...require_output_file2(),
62550
+ ...require_path_exists2(),
62551
+ ...require_remove2()
62552
+ };
62519
62553
  }
62520
62554
  });
62521
62555
 
@@ -62580,8 +62614,7 @@ var WorkerPool = class extends import_events.EventEmitter {
62580
62614
  this.addNewWorker();
62581
62615
  }
62582
62616
  }
62583
- static start(_a) {
62584
- var _b = _a, { worker: workerConfig } = _b, poolConfig = __objRest(_b, ["worker"]);
62617
+ static start({ worker: workerConfig, ...poolConfig }) {
62585
62618
  return new WorkerPool(poolConfig, workerConfig);
62586
62619
  }
62587
62620
  workerInfo() {
@@ -62704,8 +62737,8 @@ var ComponentRunner = class {
62704
62737
  });
62705
62738
  pool.addListener("error", (...args2) => log_default.info({ area: "application" }, args2));
62706
62739
  pool.addListener("console", (args2) => {
62707
- const _a = args2, { id, message: message2 } = _a, rest = __objRest(_a, ["id", "message"]);
62708
- log_default.info(__spreadProps(__spreadValues({}, rest || {}), { req_id: id }), message2);
62740
+ const { id, message: message2, ...rest } = args2;
62741
+ log_default.info({ ...rest || {}, req_id: id }, message2);
62709
62742
  });
62710
62743
  ComponentRunner.singleton = {
62711
62744
  executeComponent: ComponentRunner.buildExecute(pool, config),
@@ -63285,7 +63318,8 @@ async function getFunctionDefinition(componentName, version, functionName = void
63285
63318
  for (const func of manifest.functions) {
63286
63319
  if (func.name === functionName) {
63287
63320
  if (func.output["response-type"] === "html") {
63288
- func.output["static-files"] = (_a = func.output["static-files"]) == null ? void 0 : _a.map((f) => __spreadProps(__spreadValues({}, f), {
63321
+ func.output["static-files"] = (_a = func.output["static-files"]) == null ? void 0 : _a.map((f) => ({
63322
+ ...f,
63289
63323
  file: convertFunctionStaticFilesToFqdn(f.file, manifest.name, manifest.version)
63290
63324
  }));
63291
63325
  }
@@ -63455,9 +63489,10 @@ var Webserver = class {
63455
63489
  this.singleton = void 0;
63456
63490
  }
63457
63491
  static mergeConfig(config) {
63458
- return __spreadValues({
63459
- port: 3e3
63460
- }, config);
63492
+ return {
63493
+ port: 3e3,
63494
+ ...config
63495
+ };
63461
63496
  }
63462
63497
  };
63463
63498