@player-ui/player 0.7.0 → 0.7.1-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -358,19 +358,19 @@ class BindingInstance {
358
358
  }
359
359
  }
360
360
 
361
- var __defProp$e = Object.defineProperty;
362
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
363
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
364
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
365
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
366
- var __spreadValues$e = (a, b) => {
361
+ var __defProp$d = Object.defineProperty;
362
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
363
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
364
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
365
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
366
+ var __spreadValues$d = (a, b) => {
367
367
  for (var prop in b || (b = {}))
368
- if (__hasOwnProp$f.call(b, prop))
369
- __defNormalProp$e(a, prop, b[prop]);
370
- if (__getOwnPropSymbols$f)
371
- for (var prop of __getOwnPropSymbols$f(b)) {
372
- if (__propIsEnum$f.call(b, prop))
373
- __defNormalProp$e(a, prop, b[prop]);
368
+ if (__hasOwnProp$e.call(b, prop))
369
+ __defNormalProp$d(a, prop, b[prop]);
370
+ if (__getOwnPropSymbols$e)
371
+ for (var prop of __getOwnPropSymbols$e(b)) {
372
+ if (__propIsEnum$e.call(b, prop))
373
+ __defNormalProp$d(a, prop, b[prop]);
374
374
  }
375
375
  return a;
376
376
  };
@@ -387,7 +387,7 @@ function resolveBindingAST(bindingPathNode, options, hooks) {
387
387
  if (node.name === "PathNode") {
388
388
  const nestedResolvedValue = resolveBindingAST(node, options);
389
389
  if (nestedResolvedValue.updates) {
390
- context.updates = __spreadValues$e(__spreadValues$e({}, context.updates), nestedResolvedValue.updates);
390
+ context.updates = __spreadValues$d(__spreadValues$d({}, context.updates), nestedResolvedValue.updates);
391
391
  }
392
392
  try {
393
393
  return options.convertToPath(options.getValue(nestedResolvedValue.path));
@@ -416,7 +416,7 @@ function resolveBindingAST(bindingPathNode, options, hooks) {
416
416
  }
417
417
  function resolveNode(_node) {
418
418
  var _a2, _b;
419
- const resolvedNode = (_a2 = hooks == null ? void 0 : hooks.beforeResolveNode.call(_node, __spreadValues$e(__spreadValues$e({}, context), options))) != null ? _a2 : _node;
419
+ const resolvedNode = (_a2 = hooks == null ? void 0 : hooks.beforeResolveNode.call(_node, __spreadValues$d(__spreadValues$d({}, context), options))) != null ? _a2 : _node;
420
420
  switch (resolvedNode.name) {
421
421
  case "Expression":
422
422
  case "PathNode":
@@ -453,19 +453,19 @@ function resolveBindingAST(bindingPathNode, options, hooks) {
453
453
  };
454
454
  }
455
455
 
456
- var __defProp$d = Object.defineProperty;
457
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
458
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
459
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
460
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
461
- var __spreadValues$d = (a, b) => {
456
+ var __defProp$c = Object.defineProperty;
457
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
458
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
459
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
460
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
461
+ var __spreadValues$c = (a, b) => {
462
462
  for (var prop in b || (b = {}))
463
- if (__hasOwnProp$e.call(b, prop))
464
- __defNormalProp$d(a, prop, b[prop]);
465
- if (__getOwnPropSymbols$e)
466
- for (var prop of __getOwnPropSymbols$e(b)) {
467
- if (__propIsEnum$e.call(b, prop))
468
- __defNormalProp$d(a, prop, b[prop]);
463
+ if (__hasOwnProp$d.call(b, prop))
464
+ __defNormalProp$c(a, prop, b[prop]);
465
+ if (__getOwnPropSymbols$d)
466
+ for (var prop of __getOwnPropSymbols$d(b)) {
467
+ if (__propIsEnum$d.call(b, prop))
468
+ __defNormalProp$c(a, prop, b[prop]);
469
469
  }
470
470
  return a;
471
471
  };
@@ -489,7 +489,7 @@ class BindingParser {
489
489
  skipOptimization: new tapableTs.SyncBailHook(),
490
490
  beforeResolveNode: new tapableTs.SyncWaterfallHook()
491
491
  };
492
- this.parserOptions = __spreadValues$d(__spreadValues$d({}, DEFAULT_OPTIONS), options);
492
+ this.parserOptions = __spreadValues$c(__spreadValues$c({}, DEFAULT_OPTIONS), options);
493
493
  this.cache = {};
494
494
  this.parseCache = {};
495
495
  this.parse = this.parse.bind(this);
@@ -523,7 +523,7 @@ class BindingParser {
523
523
  if (isBinding(rawBinding)) {
524
524
  return rawBinding;
525
525
  }
526
- const options = __spreadValues$d(__spreadValues$d({}, this.parserOptions), overrides);
526
+ const options = __spreadValues$c(__spreadValues$c({}, this.parserOptions), overrides);
527
527
  let updates = {};
528
528
  const joined = Array.isArray(rawBinding) ? rawBinding.join(".") : String(rawBinding);
529
529
  const normalizeConfig = {
@@ -543,7 +543,7 @@ class BindingParser {
543
543
  }
544
544
  const normalized2 = this.normalizePath(String(path), normalizeConfig);
545
545
  if (normalized2.updates) {
546
- updates = __spreadValues$d(__spreadValues$d({}, updates), normalized2.updates);
546
+ updates = __spreadValues$c(__spreadValues$c({}, updates), normalized2.updates);
547
547
  }
548
548
  const joinedNormalizedPath = normalized2.path.join(".");
549
549
  if (joinedNormalizedPath === "") {
@@ -554,7 +554,7 @@ class BindingParser {
554
554
  };
555
555
  const normalized = this.normalizePath(joined, normalizeConfig);
556
556
  if (normalized.updates) {
557
- updates = __spreadValues$d(__spreadValues$d({}, updates), normalized.updates);
557
+ updates = __spreadValues$c(__spreadValues$c({}, updates), normalized.updates);
558
558
  }
559
559
  const updateKeys = Object.keys(updates);
560
560
  if (!options.readOnly && updateKeys.length > 0) {
@@ -1579,25 +1579,25 @@ function isObjectExpression(expr) {
1579
1579
  return typeof expr === "object" && expr !== null && !Array.isArray(expr) && "value" in expr;
1580
1580
  }
1581
1581
 
1582
- var __defProp$c = Object.defineProperty;
1583
- var __defProps$a = Object.defineProperties;
1584
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
1585
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
1586
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
1587
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
1588
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1589
- var __spreadValues$c = (a, b) => {
1582
+ var __defProp$b = Object.defineProperty;
1583
+ var __defProps$9 = Object.defineProperties;
1584
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
1585
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
1586
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
1587
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
1588
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1589
+ var __spreadValues$b = (a, b) => {
1590
1590
  for (var prop in b || (b = {}))
1591
- if (__hasOwnProp$d.call(b, prop))
1592
- __defNormalProp$c(a, prop, b[prop]);
1593
- if (__getOwnPropSymbols$d)
1594
- for (var prop of __getOwnPropSymbols$d(b)) {
1595
- if (__propIsEnum$d.call(b, prop))
1596
- __defNormalProp$c(a, prop, b[prop]);
1591
+ if (__hasOwnProp$c.call(b, prop))
1592
+ __defNormalProp$b(a, prop, b[prop]);
1593
+ if (__getOwnPropSymbols$c)
1594
+ for (var prop of __getOwnPropSymbols$c(b)) {
1595
+ if (__propIsEnum$c.call(b, prop))
1596
+ __defNormalProp$b(a, prop, b[prop]);
1597
1597
  }
1598
1598
  return a;
1599
1599
  };
1600
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
1600
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
1601
1601
  const andandOperator = (ctx, a, b) => {
1602
1602
  return ctx.evaluate(a) && ctx.evaluate(b);
1603
1603
  };
@@ -1649,7 +1649,7 @@ class ExpressionEvaluator {
1649
1649
  unary: new Map(Object.entries(DEFAULT_UNARY_OPERATORS)),
1650
1650
  expressions: new Map(Object.entries(DEFAULT_EXPRESSION_HANDLERS))
1651
1651
  };
1652
- this.defaultHookOptions = __spreadProps$a(__spreadValues$c({}, defaultOptions), {
1652
+ this.defaultHookOptions = __spreadProps$9(__spreadValues$b({}, defaultOptions), {
1653
1653
  evaluate: (expr) => this.evaluate(expr, this.defaultHookOptions),
1654
1654
  resolveNode: (node) => this._execAST(node, this.defaultHookOptions)
1655
1655
  });
@@ -1661,7 +1661,7 @@ class ExpressionEvaluator {
1661
1661
  }
1662
1662
  evaluate(expr, options) {
1663
1663
  var _a;
1664
- const resolvedOpts = this.hooks.resolveOptions.call(__spreadProps$a(__spreadValues$c(__spreadValues$c({}, this.defaultHookOptions), options), {
1664
+ const resolvedOpts = this.hooks.resolveOptions.call(__spreadProps$9(__spreadValues$b(__spreadValues$b({}, this.defaultHookOptions), options), {
1665
1665
  resolveNode: (node) => this._execAST(node, resolvedOpts)
1666
1666
  }));
1667
1667
  let expression = (_a = this.hooks.beforeEvaluate.call(expr, resolvedOpts)) != null ? _a : expr;
@@ -1727,7 +1727,7 @@ class ExpressionEvaluator {
1727
1727
  }
1728
1728
  _resolveNode(_currentValue, node, options) {
1729
1729
  const { resolveNode, model } = options;
1730
- const expressionContext = __spreadProps$a(__spreadValues$c({}, options), {
1730
+ const expressionContext = __spreadProps$9(__spreadValues$b({}, options), {
1731
1731
  evaluate: (expr) => this.evaluate(expr, options)
1732
1732
  });
1733
1733
  if (node.type === "Literal") {
@@ -1936,33 +1936,33 @@ class ProxyLogger {
1936
1936
  }
1937
1937
  }
1938
1938
 
1939
- var __defProp$b = Object.defineProperty;
1940
- var __defProps$9 = Object.defineProperties;
1941
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
1942
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
1943
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
1944
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
1945
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1946
- var __spreadValues$b = (a, b) => {
1939
+ var __defProp$a = Object.defineProperty;
1940
+ var __defProps$8 = Object.defineProperties;
1941
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
1942
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
1943
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
1944
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
1945
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1946
+ var __spreadValues$a = (a, b) => {
1947
1947
  for (var prop in b || (b = {}))
1948
- if (__hasOwnProp$c.call(b, prop))
1949
- __defNormalProp$b(a, prop, b[prop]);
1950
- if (__getOwnPropSymbols$c)
1951
- for (var prop of __getOwnPropSymbols$c(b)) {
1952
- if (__propIsEnum$c.call(b, prop))
1953
- __defNormalProp$b(a, prop, b[prop]);
1948
+ if (__hasOwnProp$b.call(b, prop))
1949
+ __defNormalProp$a(a, prop, b[prop]);
1950
+ if (__getOwnPropSymbols$b)
1951
+ for (var prop of __getOwnPropSymbols$b(b)) {
1952
+ if (__propIsEnum$b.call(b, prop))
1953
+ __defNormalProp$a(a, prop, b[prop]);
1954
1954
  }
1955
1955
  return a;
1956
1956
  };
1957
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
1957
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
1958
1958
  var __objRest$2 = (source, exclude) => {
1959
1959
  var target = {};
1960
1960
  for (var prop in source)
1961
- if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
1961
+ if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
1962
1962
  target[prop] = source[prop];
1963
- if (source != null && __getOwnPropSymbols$c)
1964
- for (var prop of __getOwnPropSymbols$c(source)) {
1965
- if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
1963
+ if (source != null && __getOwnPropSymbols$b)
1964
+ for (var prop of __getOwnPropSymbols$b(source)) {
1965
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
1966
1966
  target[prop] = source[prop];
1967
1967
  }
1968
1968
  return target;
@@ -2034,7 +2034,7 @@ class SchemaController {
2034
2034
  if (!((_a = typeDef == null ? void 0 : typeDef.validation) == null ? void 0 : _a.length)) {
2035
2035
  return void 0;
2036
2036
  }
2037
- return typeDef.validation.map((vRef) => __spreadValues$b({
2037
+ return typeDef.validation.map((vRef) => __spreadValues$a({
2038
2038
  severity: "error",
2039
2039
  trigger: "change"
2040
2040
  }, vRef));
@@ -2073,7 +2073,7 @@ class SchemaController {
2073
2073
  if (baseType === void 0) {
2074
2074
  return schemaType;
2075
2075
  }
2076
- return __spreadProps$9(__spreadValues$b(__spreadValues$b({}, baseType), schemaType), {
2076
+ return __spreadProps$8(__spreadValues$a(__spreadValues$a({}, baseType), schemaType), {
2077
2077
  validation: [
2078
2078
  ...(_a = schemaType.validation) != null ? _a : [],
2079
2079
  ...(_b = baseType.validation) != null ? _b : []
@@ -2239,25 +2239,25 @@ function removeBindingAndChildrenFromMap(sourceMap, binding) {
2239
2239
  return targetMap;
2240
2240
  }
2241
2241
 
2242
- var __defProp$a = Object.defineProperty;
2243
- var __defProps$8 = Object.defineProperties;
2244
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
2245
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
2246
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
2247
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
2248
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2249
- var __spreadValues$a = (a, b) => {
2242
+ var __defProp$9 = Object.defineProperty;
2243
+ var __defProps$7 = Object.defineProperties;
2244
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
2245
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
2246
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
2247
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
2248
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2249
+ var __spreadValues$9 = (a, b) => {
2250
2250
  for (var prop in b || (b = {}))
2251
- if (__hasOwnProp$b.call(b, prop))
2252
- __defNormalProp$a(a, prop, b[prop]);
2253
- if (__getOwnPropSymbols$b)
2254
- for (var prop of __getOwnPropSymbols$b(b)) {
2255
- if (__propIsEnum$b.call(b, prop))
2256
- __defNormalProp$a(a, prop, b[prop]);
2251
+ if (__hasOwnProp$a.call(b, prop))
2252
+ __defNormalProp$9(a, prop, b[prop]);
2253
+ if (__getOwnPropSymbols$a)
2254
+ for (var prop of __getOwnPropSymbols$a(b)) {
2255
+ if (__propIsEnum$a.call(b, prop))
2256
+ __defNormalProp$9(a, prop, b[prop]);
2257
2257
  }
2258
2258
  return a;
2259
2259
  };
2260
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
2260
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
2261
2261
  class ValidationMiddleware {
2262
2262
  constructor(validator, options) {
2263
2263
  this.validator = validator;
@@ -2266,7 +2266,7 @@ class ValidationMiddleware {
2266
2266
  this.shouldIncludeInvalid = options == null ? void 0 : options.shouldIncludeInvalid;
2267
2267
  }
2268
2268
  set(transaction, options, next) {
2269
- const asModel = toModel(this, __spreadProps$8(__spreadValues$a({}, options), { includeInvalid: true }), next);
2269
+ const asModel = toModel(this, __spreadProps$7(__spreadValues$9({}, options), { includeInvalid: true }), next);
2270
2270
  const nextTransaction = [];
2271
2271
  const includedBindings = new Set();
2272
2272
  transaction.forEach(([binding, value]) => {
@@ -2371,33 +2371,33 @@ function getNodeID(node) {
2371
2371
  }
2372
2372
  }
2373
2373
 
2374
- var __defProp$9 = Object.defineProperty;
2375
- var __defProps$7 = Object.defineProperties;
2376
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
2377
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
2378
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
2379
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
2380
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2381
- var __spreadValues$9 = (a, b) => {
2374
+ var __defProp$8 = Object.defineProperty;
2375
+ var __defProps$6 = Object.defineProperties;
2376
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
2377
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
2378
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
2379
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
2380
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2381
+ var __spreadValues$8 = (a, b) => {
2382
2382
  for (var prop in b || (b = {}))
2383
- if (__hasOwnProp$a.call(b, prop))
2384
- __defNormalProp$9(a, prop, b[prop]);
2385
- if (__getOwnPropSymbols$a)
2386
- for (var prop of __getOwnPropSymbols$a(b)) {
2387
- if (__propIsEnum$a.call(b, prop))
2388
- __defNormalProp$9(a, prop, b[prop]);
2383
+ if (__hasOwnProp$9.call(b, prop))
2384
+ __defNormalProp$8(a, prop, b[prop]);
2385
+ if (__getOwnPropSymbols$9)
2386
+ for (var prop of __getOwnPropSymbols$9(b)) {
2387
+ if (__propIsEnum$9.call(b, prop))
2388
+ __defNormalProp$8(a, prop, b[prop]);
2389
2389
  }
2390
2390
  return a;
2391
2391
  };
2392
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
2392
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
2393
2393
  var __objRest$1 = (source, exclude) => {
2394
2394
  var target = {};
2395
2395
  for (var prop in source)
2396
- if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
2396
+ if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
2397
2397
  target[prop] = source[prop];
2398
- if (source != null && __getOwnPropSymbols$a)
2399
- for (var prop of __getOwnPropSymbols$a(source)) {
2400
- if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
2398
+ if (source != null && __getOwnPropSymbols$9)
2399
+ for (var prop of __getOwnPropSymbols$9(source)) {
2400
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
2401
2401
  target[prop] = source[prop];
2402
2402
  }
2403
2403
  return target;
@@ -2478,7 +2478,7 @@ class Parser {
2478
2478
  if (localKey === "asset" && typeof localValue === "object") {
2479
2479
  const assetAST = this.parseObject(localValue, exports.NodeType.Asset, options);
2480
2480
  if (assetAST) {
2481
- return __spreadProps$7(__spreadValues$9({}, rest), {
2481
+ return __spreadProps$6(__spreadValues$8({}, rest), {
2482
2482
  children: [
2483
2483
  ...children2,
2484
2484
  {
@@ -2511,14 +2511,14 @@ class Parser {
2511
2511
  }
2512
2512
  return;
2513
2513
  }).filter((element) => !!element);
2514
- return __spreadProps$7(__spreadValues$9({}, rest), {
2514
+ return __spreadProps$6(__spreadValues$8({}, rest), {
2515
2515
  children: [...children2, ...templateChildren]
2516
2516
  });
2517
2517
  } else if (localValue && this.hooks.determineNodeType.call(localValue) === exports.NodeType.Switch) {
2518
2518
  const localSwitch = this.hooks.parseNode.call(localValue, exports.NodeType.Value, options, exports.NodeType.Switch);
2519
2519
  if (localSwitch && localSwitch.type === exports.NodeType.Value && ((_b = localSwitch.children) == null ? void 0 : _b.length) === 1 && localSwitch.value === void 0) {
2520
2520
  const firstChild = localSwitch.children[0];
2521
- return __spreadProps$7(__spreadValues$9({}, rest), {
2521
+ return __spreadProps$6(__spreadValues$8({}, rest), {
2522
2522
  children: [
2523
2523
  ...children2,
2524
2524
  {
@@ -2529,7 +2529,7 @@ class Parser {
2529
2529
  });
2530
2530
  }
2531
2531
  if (localSwitch) {
2532
- return __spreadProps$7(__spreadValues$9({}, rest), {
2532
+ return __spreadProps$6(__spreadValues$8({}, rest), {
2533
2533
  children: [
2534
2534
  ...children2,
2535
2535
  {
@@ -2561,7 +2561,7 @@ class Parser {
2561
2561
  });
2562
2562
  }
2563
2563
  if (multiNode) {
2564
- return __spreadProps$7(__spreadValues$9({}, rest), {
2564
+ return __spreadProps$6(__spreadValues$8({}, rest), {
2565
2565
  children: [
2566
2566
  ...children2,
2567
2567
  {
@@ -2577,7 +2577,7 @@ class Parser {
2577
2577
  if (determineNodeType === exports.NodeType.Applicability) {
2578
2578
  const parsedNode = this.hooks.parseNode.call(localValue, exports.NodeType.Value, options, determineNodeType);
2579
2579
  if (parsedNode) {
2580
- return __spreadProps$7(__spreadValues$9({}, rest), {
2580
+ return __spreadProps$6(__spreadValues$8({}, rest), {
2581
2581
  children: [
2582
2582
  ...children2,
2583
2583
  {
@@ -2624,25 +2624,25 @@ class Parser {
2624
2624
  }
2625
2625
  }
2626
2626
 
2627
- var __defProp$8 = Object.defineProperty;
2628
- var __defProps$6 = Object.defineProperties;
2629
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
2630
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
2631
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
2632
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
2633
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2634
- var __spreadValues$8 = (a, b) => {
2627
+ var __defProp$7 = Object.defineProperty;
2628
+ var __defProps$5 = Object.defineProperties;
2629
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
2630
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
2631
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
2632
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
2633
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2634
+ var __spreadValues$7 = (a, b) => {
2635
2635
  for (var prop in b || (b = {}))
2636
- if (__hasOwnProp$9.call(b, prop))
2637
- __defNormalProp$8(a, prop, b[prop]);
2638
- if (__getOwnPropSymbols$9)
2639
- for (var prop of __getOwnPropSymbols$9(b)) {
2640
- if (__propIsEnum$9.call(b, prop))
2641
- __defNormalProp$8(a, prop, b[prop]);
2636
+ if (__hasOwnProp$8.call(b, prop))
2637
+ __defNormalProp$7(a, prop, b[prop]);
2638
+ if (__getOwnPropSymbols$8)
2639
+ for (var prop of __getOwnPropSymbols$8(b)) {
2640
+ if (__propIsEnum$8.call(b, prop))
2641
+ __defNormalProp$7(a, prop, b[prop]);
2642
2642
  }
2643
2643
  return a;
2644
2644
  };
2645
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
2645
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
2646
2646
  function caresAboutDataChanges(dataChanges, dependencies) {
2647
2647
  if (!dataChanges || !dependencies) {
2648
2648
  return true;
@@ -2652,7 +2652,7 @@ function caresAboutDataChanges(dataChanges, dependencies) {
2652
2652
  return depArray.find((dep) => !!dataChangeArray.find((change) => change === dep || change.contains(dep) || dep.contains(change))) !== void 0;
2653
2653
  }
2654
2654
  function toNodeResolveOptions(resolverOptions) {
2655
- return __spreadProps$6(__spreadValues$8({}, resolverOptions), {
2655
+ return __spreadProps$5(__spreadValues$7({}, resolverOptions), {
2656
2656
  data: {
2657
2657
  model: resolverOptions.model,
2658
2658
  formatValue: (ref, value) => {
@@ -2676,39 +2676,39 @@ function unpackAndPush(item, initial) {
2676
2676
  }
2677
2677
  }
2678
2678
 
2679
- var __defProp$7 = Object.defineProperty;
2680
- var __defProps$5 = Object.defineProperties;
2681
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
2682
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
2683
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
2684
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
2685
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2686
- var __spreadValues$7 = (a, b) => {
2679
+ var __defProp$6 = Object.defineProperty;
2680
+ var __defProps$4 = Object.defineProperties;
2681
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
2682
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
2683
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
2684
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
2685
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2686
+ var __spreadValues$6 = (a, b) => {
2687
2687
  for (var prop in b || (b = {}))
2688
- if (__hasOwnProp$8.call(b, prop))
2689
- __defNormalProp$7(a, prop, b[prop]);
2690
- if (__getOwnPropSymbols$8)
2691
- for (var prop of __getOwnPropSymbols$8(b)) {
2692
- if (__propIsEnum$8.call(b, prop))
2693
- __defNormalProp$7(a, prop, b[prop]);
2688
+ if (__hasOwnProp$7.call(b, prop))
2689
+ __defNormalProp$6(a, prop, b[prop]);
2690
+ if (__getOwnPropSymbols$7)
2691
+ for (var prop of __getOwnPropSymbols$7(b)) {
2692
+ if (__propIsEnum$7.call(b, prop))
2693
+ __defNormalProp$6(a, prop, b[prop]);
2694
2694
  }
2695
2695
  return a;
2696
2696
  };
2697
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
2697
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
2698
2698
  const withContext = (model) => {
2699
2699
  return {
2700
2700
  get: (binding, options) => {
2701
- return model.get(binding, __spreadValues$7({
2701
+ return model.get(binding, __spreadValues$6({
2702
2702
  context: { model }
2703
2703
  }, options));
2704
2704
  },
2705
2705
  set: (transaction, options) => {
2706
- return model.set(transaction, __spreadValues$7({
2706
+ return model.set(transaction, __spreadValues$6({
2707
2707
  context: { model }
2708
2708
  }, options));
2709
2709
  },
2710
2710
  delete: (binding, options) => {
2711
- return model.delete(binding, __spreadValues$7({
2711
+ return model.delete(binding, __spreadValues$6({
2712
2712
  context: { model }
2713
2713
  }, options));
2714
2714
  }
@@ -2779,7 +2779,7 @@ class Resolver {
2779
2779
  return;
2780
2780
  const value = clonedNode[key];
2781
2781
  if (typeof value === "object" && value !== null) {
2782
- clonedNode[key] = Array.isArray(value) ? [...value] : __spreadValues$7({}, value);
2782
+ clonedNode[key] = Array.isArray(value) ? [...value] : __spreadValues$6({}, value);
2783
2783
  }
2784
2784
  });
2785
2785
  return clonedNode;
@@ -2789,8 +2789,8 @@ class Resolver {
2789
2789
  const dependencyModel = new DependencyModel(options.data.model);
2790
2790
  dependencyModel.trackSubset("core");
2791
2791
  const depModelWithParser = withContext(withParser(dependencyModel, this.options.parseBinding));
2792
- const resolveOptions = this.hooks.resolveOptions.call(__spreadProps$5(__spreadValues$7({}, options), {
2793
- data: __spreadProps$5(__spreadValues$7({}, options.data), {
2792
+ const resolveOptions = this.hooks.resolveOptions.call(__spreadProps$4(__spreadValues$6({}, options), {
2793
+ data: __spreadProps$4(__spreadValues$6({}, options.data), {
2794
2794
  model: depModelWithParser
2795
2795
  }),
2796
2796
  evaluate: (exp) => this.options.evaluator.evaluate(exp, { model: depModelWithParser }),
@@ -2800,7 +2800,7 @@ class Resolver {
2800
2800
  const previousDeps = previousResult == null ? void 0 : previousResult.dependencies;
2801
2801
  const dataChanged = caresAboutDataChanges(dataChanges, previousDeps);
2802
2802
  const shouldUseLastValue = this.hooks.skipResolve.call(!dataChanged, node, resolveOptions);
2803
- const clonedNode = __spreadProps$5(__spreadValues$7({}, this.cloneNode(node)), {
2803
+ const clonedNode = __spreadProps$4(__spreadValues$6({}, this.cloneNode(node)), {
2804
2804
  parent: partiallyResolvedParent
2805
2805
  });
2806
2806
  const resolvedAST = (_a = this.hooks.beforeResolve.call(clonedNode, resolveOptions)) != null ? _a : {
@@ -2808,14 +2808,14 @@ class Resolver {
2808
2808
  };
2809
2809
  const isNestedMultiNode = resolvedAST.type === exports.NodeType.MultiNode && ((_b = partiallyResolvedParent == null ? void 0 : partiallyResolvedParent.parent) == null ? void 0 : _b.type) === exports.NodeType.MultiNode && partiallyResolvedParent.type === exports.NodeType.Value;
2810
2810
  if (previousResult && shouldUseLastValue) {
2811
- const update2 = __spreadProps$5(__spreadValues$7({}, previousResult), {
2811
+ const update2 = __spreadProps$4(__spreadValues$6({}, previousResult), {
2812
2812
  updated: false
2813
2813
  });
2814
2814
  const repopulateASTMapFromCache = (resolvedNode, AST, ASTParent) => {
2815
2815
  var _a2;
2816
2816
  const { node: resolvedASTLocal } = resolvedNode;
2817
2817
  this.ASTMap.set(resolvedASTLocal, AST);
2818
- const resolvedUpdate = __spreadProps$5(__spreadValues$7({}, resolvedNode), {
2818
+ const resolvedUpdate = __spreadProps$4(__spreadValues$6({}, resolvedNode), {
2819
2819
  updated: false
2820
2820
  });
2821
2821
  cacheUpdate.set(AST, resolvedUpdate);
@@ -2867,7 +2867,7 @@ class Resolver {
2867
2867
  }
2868
2868
  }
2869
2869
  updated = updated || childUpdated;
2870
- return __spreadProps$5(__spreadValues$7({}, child), { value: childNode });
2870
+ return __spreadProps$4(__spreadValues$6({}, child), { value: childNode });
2871
2871
  });
2872
2872
  resolvedAST.children = newChildren;
2873
2873
  } else if (resolvedAST.type === exports.NodeType.MultiNode) {
@@ -2897,7 +2897,7 @@ class Resolver {
2897
2897
  if (previousResult && !updated) {
2898
2898
  resolved = previousResult == null ? void 0 : previousResult.value;
2899
2899
  }
2900
- resolved = this.hooks.afterResolve.call(resolved, resolvedAST, __spreadProps$5(__spreadValues$7({}, resolveOptions), {
2900
+ resolved = this.hooks.afterResolve.call(resolved, resolvedAST, __spreadProps$4(__spreadValues$6({}, resolveOptions), {
2901
2901
  getDependencies: (scope) => dependencyModel.getDependencies(scope)
2902
2902
  }));
2903
2903
  const update = {
@@ -3150,17 +3150,17 @@ class ApplicabilityPlugin {
3150
3150
  }
3151
3151
  }
3152
3152
 
3153
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
3154
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
3155
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
3153
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
3154
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
3155
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
3156
3156
  var __objRest = (source, exclude) => {
3157
3157
  var target = {};
3158
3158
  for (var prop in source)
3159
- if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
3159
+ if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
3160
3160
  target[prop] = source[prop];
3161
- if (source != null && __getOwnPropSymbols$7)
3162
- for (var prop of __getOwnPropSymbols$7(source)) {
3163
- if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
3161
+ if (source != null && __getOwnPropSymbols$6)
3162
+ for (var prop of __getOwnPropSymbols$6(source)) {
3163
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
3164
3164
  target[prop] = source[prop];
3165
3165
  }
3166
3166
  return target;
@@ -3236,25 +3236,25 @@ class SwitchPlugin {
3236
3236
  }
3237
3237
  }
3238
3238
 
3239
- var __defProp$6 = Object.defineProperty;
3240
- var __defProps$4 = Object.defineProperties;
3241
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
3242
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
3243
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
3244
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
3245
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3246
- var __spreadValues$6 = (a, b) => {
3239
+ var __defProp$5 = Object.defineProperty;
3240
+ var __defProps$3 = Object.defineProperties;
3241
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
3242
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
3243
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
3244
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
3245
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3246
+ var __spreadValues$5 = (a, b) => {
3247
3247
  for (var prop in b || (b = {}))
3248
- if (__hasOwnProp$6.call(b, prop))
3249
- __defNormalProp$6(a, prop, b[prop]);
3250
- if (__getOwnPropSymbols$6)
3251
- for (var prop of __getOwnPropSymbols$6(b)) {
3252
- if (__propIsEnum$6.call(b, prop))
3253
- __defNormalProp$6(a, prop, b[prop]);
3248
+ if (__hasOwnProp$5.call(b, prop))
3249
+ __defNormalProp$5(a, prop, b[prop]);
3250
+ if (__getOwnPropSymbols$5)
3251
+ for (var prop of __getOwnPropSymbols$5(b)) {
3252
+ if (__propIsEnum$5.call(b, prop))
3253
+ __defNormalProp$5(a, prop, b[prop]);
3254
3254
  }
3255
3255
  return a;
3256
3256
  };
3257
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
3257
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
3258
3258
  class CrossfieldProvider {
3259
3259
  constructor(initialView, parser, logger) {
3260
3260
  this.allValidations = new Set();
@@ -3274,7 +3274,7 @@ class CrossfieldProvider {
3274
3274
  }
3275
3275
  xfieldRefs.forEach((vRef) => {
3276
3276
  var _a2;
3277
- const withDefaults = __spreadValues$6({
3277
+ const withDefaults = __spreadValues$5({
3278
3278
  trigger: "navigation",
3279
3279
  severity: "error"
3280
3280
  }, vRef);
@@ -3325,7 +3325,7 @@ class ViewInstance {
3325
3325
  const parser = new Parser();
3326
3326
  this.hooks.parser.call(parser);
3327
3327
  this.rootNode = parser.parseView(this.initialView);
3328
- this.resolver = new Resolver(this.rootNode, __spreadProps$4(__spreadValues$6({}, this.resolverOptions), {
3328
+ this.resolver = new Resolver(this.rootNode, __spreadProps$3(__spreadValues$5({}, this.resolverOptions), {
3329
3329
  parseNode: parser.parseObject.bind(parser)
3330
3330
  }));
3331
3331
  this.hooks.resolver.call(this.resolver);
@@ -3380,19 +3380,19 @@ class Builder {
3380
3380
  }
3381
3381
  }
3382
3382
 
3383
- var __defProp$5 = Object.defineProperty;
3384
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
3385
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
3386
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
3387
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3388
- var __spreadValues$5 = (a, b) => {
3383
+ var __defProp$4 = Object.defineProperty;
3384
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
3385
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
3386
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
3387
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3388
+ var __spreadValues$4 = (a, b) => {
3389
3389
  for (var prop in b || (b = {}))
3390
- if (__hasOwnProp$5.call(b, prop))
3391
- __defNormalProp$5(a, prop, b[prop]);
3392
- if (__getOwnPropSymbols$5)
3393
- for (var prop of __getOwnPropSymbols$5(b)) {
3394
- if (__propIsEnum$5.call(b, prop))
3395
- __defNormalProp$5(a, prop, b[prop]);
3390
+ if (__hasOwnProp$4.call(b, prop))
3391
+ __defNormalProp$4(a, prop, b[prop]);
3392
+ if (__getOwnPropSymbols$4)
3393
+ for (var prop of __getOwnPropSymbols$4(b)) {
3394
+ if (__propIsEnum$4.call(b, prop))
3395
+ __defNormalProp$4(a, prop, b[prop]);
3396
3396
  }
3397
3397
  return a;
3398
3398
  };
@@ -3516,7 +3516,7 @@ class FlowInstance {
3516
3516
  if (newCurrentState.value.state_type === "END" && this.flow.onEnd) {
3517
3517
  this.hooks.onEnd.call(this.flow.onEnd);
3518
3518
  }
3519
- this.hooks.transition.call(prevState, __spreadValues$5({}, newCurrentState));
3519
+ this.hooks.transition.call(prevState, __spreadValues$4({}, newCurrentState));
3520
3520
  this.isTransitioning = false;
3521
3521
  this.hooks.afterTransition.call(this);
3522
3522
  }
@@ -3615,25 +3615,25 @@ function replaceParams(message, params) {
3615
3615
  return message.slice().replace(ANY_CHAR_REGEX, (keyExpr) => params[keyExpr.slice(1)] || keyExpr);
3616
3616
  }
3617
3617
 
3618
- var __defProp$4 = Object.defineProperty;
3619
- var __defProps$3 = Object.defineProperties;
3620
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
3621
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
3622
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
3623
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
3624
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3625
- var __spreadValues$4 = (a, b) => {
3618
+ var __defProp$3 = Object.defineProperty;
3619
+ var __defProps$2 = Object.defineProperties;
3620
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
3621
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
3622
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
3623
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
3624
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3625
+ var __spreadValues$3 = (a, b) => {
3626
3626
  for (var prop in b || (b = {}))
3627
- if (__hasOwnProp$4.call(b, prop))
3628
- __defNormalProp$4(a, prop, b[prop]);
3629
- if (__getOwnPropSymbols$4)
3630
- for (var prop of __getOwnPropSymbols$4(b)) {
3631
- if (__propIsEnum$4.call(b, prop))
3632
- __defNormalProp$4(a, prop, b[prop]);
3627
+ if (__hasOwnProp$3.call(b, prop))
3628
+ __defNormalProp$3(a, prop, b[prop]);
3629
+ if (__getOwnPropSymbols$3)
3630
+ for (var prop of __getOwnPropSymbols$3(b)) {
3631
+ if (__propIsEnum$3.call(b, prop))
3632
+ __defNormalProp$3(a, prop, b[prop]);
3633
3633
  }
3634
3634
  return a;
3635
3635
  };
3636
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
3636
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
3637
3637
  const CONTEXT = "validation-binding-tracker";
3638
3638
  class ValidationBindingTrackerViewPlugin {
3639
3639
  constructor(options) {
@@ -3704,8 +3704,8 @@ class ValidationBindingTrackerViewPlugin {
3704
3704
  this.trackedBindings.add(parsed);
3705
3705
  (_d = (_c = this.options.callbacks) == null ? void 0 : _c.onAdd) == null ? void 0 : _d.call(_c, parsed);
3706
3706
  };
3707
- return __spreadProps$3(__spreadValues$4({}, options), {
3708
- validation: __spreadProps$3(__spreadValues$4({}, options.validation), {
3707
+ return __spreadProps$2(__spreadValues$3({}, options), {
3708
+ validation: __spreadProps$2(__spreadValues$3({}, options.validation), {
3709
3709
  get: (binding, getOptions) => {
3710
3710
  var _a, _b;
3711
3711
  if (getOptions == null ? void 0 : getOptions.track) {
@@ -3796,25 +3796,25 @@ class ValidationBindingTrackerViewPlugin {
3796
3796
  }
3797
3797
  }
3798
3798
 
3799
- var __defProp$3 = Object.defineProperty;
3800
- var __defProps$2 = Object.defineProperties;
3801
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
3802
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
3803
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
3804
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
3805
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3806
- var __spreadValues$3 = (a, b) => {
3799
+ var __defProp$2 = Object.defineProperty;
3800
+ var __defProps$1 = Object.defineProperties;
3801
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
3802
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
3803
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
3804
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
3805
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3806
+ var __spreadValues$2 = (a, b) => {
3807
3807
  for (var prop in b || (b = {}))
3808
- if (__hasOwnProp$3.call(b, prop))
3809
- __defNormalProp$3(a, prop, b[prop]);
3810
- if (__getOwnPropSymbols$3)
3811
- for (var prop of __getOwnPropSymbols$3(b)) {
3812
- if (__propIsEnum$3.call(b, prop))
3813
- __defNormalProp$3(a, prop, b[prop]);
3808
+ if (__hasOwnProp$2.call(b, prop))
3809
+ __defNormalProp$2(a, prop, b[prop]);
3810
+ if (__getOwnPropSymbols$2)
3811
+ for (var prop of __getOwnPropSymbols$2(b)) {
3812
+ if (__propIsEnum$2.call(b, prop))
3813
+ __defNormalProp$2(a, prop, b[prop]);
3814
3814
  }
3815
3815
  return a;
3816
3816
  };
3817
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
3817
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
3818
3818
  const SCHEMA_VALIDATION_PROVIDER_NAME = "schema";
3819
3819
  const VIEW_VALIDATION_PROVIDER_NAME = "view";
3820
3820
  const VALIDATION_PROVIDER_NAME_SYMBOL = Symbol.for("validation-provider-name");
@@ -3867,12 +3867,9 @@ class ValidatedBinding {
3867
3867
  getAll() {
3868
3868
  return this.applicableValidations.reduce((all, statefulObj) => {
3869
3869
  if (statefulObj.state === "active" && statefulObj.response) {
3870
- return [
3871
- ...all,
3872
- __spreadProps$2(__spreadValues$3({}, statefulObj.response), {
3873
- blocking: this.checkIfBlocking(statefulObj)
3874
- })
3875
- ];
3870
+ all.push(__spreadProps$1(__spreadValues$2({}, statefulObj.response), {
3871
+ blocking: this.checkIfBlocking(statefulObj)
3872
+ }));
3876
3873
  }
3877
3874
  return all;
3878
3875
  }, []);
@@ -3882,7 +3879,7 @@ class ValidatedBinding {
3882
3879
  return statefulObj.state === "active" && statefulObj.response;
3883
3880
  });
3884
3881
  if ((firstInvalid == null ? void 0 : firstInvalid.state) === "active") {
3885
- return __spreadProps$2(__spreadValues$3({}, firstInvalid.response), {
3882
+ return __spreadProps$1(__spreadValues$2({}, firstInvalid.response), {
3886
3883
  blocking: this.checkIfBlocking(firstInvalid)
3887
3884
  });
3888
3885
  }
@@ -3917,7 +3914,7 @@ class ValidatedBinding {
3917
3914
  state: response ? "active" : "none",
3918
3915
  isBlockingNavigation,
3919
3916
  dismissable: obj.value.severity === "warning" && phase === "navigation",
3920
- response: response ? __spreadProps$2(__spreadValues$3({}, obj.value), {
3917
+ response: response ? __spreadProps$1(__spreadValues$2({}, obj.value), {
3921
3918
  message: (_b = response.message) != null ? _b : "Something is broken",
3922
3919
  severity: obj.value.severity,
3923
3920
  displayTarget: (_c = obj.value.displayTarget) != null ? _c : "field"
@@ -4072,7 +4069,7 @@ class ValidationController {
4072
4069
  if (!this.options) {
4073
4070
  return;
4074
4071
  }
4075
- const bindingTrackerPlugin = new ValidationBindingTrackerViewPlugin(__spreadProps$2(__spreadValues$3({}, this.options), {
4072
+ const bindingTrackerPlugin = new ValidationBindingTrackerViewPlugin(__spreadProps$1(__spreadValues$2({}, this.options), {
4076
4073
  callbacks: {
4077
4074
  onAdd: (binding) => {
4078
4075
  if (!this.options || this.getValidationForBinding(binding) !== void 0) {
@@ -4107,12 +4104,10 @@ class ValidationController {
4107
4104
  if (trigger === "load") {
4108
4105
  const possibleValidations = this.getValidationProviders().reduce((vals, provider) => {
4109
4106
  var _a2, _b, _c, _d;
4110
- return [
4111
- ...vals,
4112
- ...(_d = (_c = (_b = (_a2 = provider.provider).getValidationsForBinding) == null ? void 0 : _b.call(_a2, binding)) == null ? void 0 : _c.map((valObj) => __spreadProps$2(__spreadValues$3({}, valObj), {
4113
- [VALIDATION_PROVIDER_NAME_SYMBOL]: provider.source
4114
- }))) != null ? _d : []
4115
- ];
4107
+ vals.push(...(_d = (_c = (_b = (_a2 = provider.provider).getValidationsForBinding) == null ? void 0 : _b.call(_a2, binding)) == null ? void 0 : _c.map((valObj) => __spreadProps$1(__spreadValues$2({}, valObj), {
4108
+ [VALIDATION_PROVIDER_NAME_SYMBOL]: provider.source
4109
+ }))) != null ? _d : []);
4110
+ return vals;
4116
4111
  }, []);
4117
4112
  if (possibleValidations.length === 0) {
4118
4113
  return;
@@ -4149,12 +4144,12 @@ class ValidationController {
4149
4144
  const model = {
4150
4145
  get(b, options) {
4151
4146
  weakBindings.add(isBinding(b) ? binding : context.parseBinding(b));
4152
- return context.model.get(b, __spreadProps$2(__spreadValues$3({}, options), { includeInvalid: true }));
4147
+ return context.model.get(b, __spreadProps$1(__spreadValues$2({}, options), { includeInvalid: true }));
4153
4148
  },
4154
4149
  set: context.model.set,
4155
4150
  delete: context.model.delete
4156
4151
  };
4157
- const result = handler == null ? void 0 : handler(__spreadProps$2(__spreadValues$3({}, context), {
4152
+ const result = handler == null ? void 0 : handler(__spreadProps$1(__spreadValues$2({}, context), {
4158
4153
  evaluate: (exp, options = { model }) => context.evaluate(exp, options),
4159
4154
  model,
4160
4155
  validation: validationObj,
@@ -4445,25 +4440,6 @@ class AssetTransformCorePlugin {
4445
4440
  }
4446
4441
  }
4447
4442
 
4448
- var __defProp$2 = Object.defineProperty;
4449
- var __defProps$1 = Object.defineProperties;
4450
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
4451
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
4452
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
4453
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
4454
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4455
- var __spreadValues$2 = (a, b) => {
4456
- for (var prop in b || (b = {}))
4457
- if (__hasOwnProp$2.call(b, prop))
4458
- __defNormalProp$2(a, prop, b[prop]);
4459
- if (__getOwnPropSymbols$2)
4460
- for (var prop of __getOwnPropSymbols$2(b)) {
4461
- if (__propIsEnum$2.call(b, prop))
4462
- __defNormalProp$2(a, prop, b[prop]);
4463
- }
4464
- return a;
4465
- };
4466
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
4467
4443
  class ViewController {
4468
4444
  constructor(initialViews, options) {
4469
4445
  this.hooks = {
@@ -4473,9 +4449,10 @@ class ViewController {
4473
4449
  this.transformRegistry = new partialMatchRegistry.Registry();
4474
4450
  this.optimizeUpdates = true;
4475
4451
  this.viewOptions = options;
4476
- this.viewMap = initialViews.reduce((viewMap, view) => __spreadProps$1(__spreadValues$2({}, viewMap), {
4477
- [view.id]: view
4478
- }), {});
4452
+ this.viewMap = initialViews.reduce((viewMap, view) => {
4453
+ viewMap[view.id] = view;
4454
+ return viewMap;
4455
+ }, {});
4479
4456
  new AssetTransformCorePlugin(this.transformRegistry).apply(this);
4480
4457
  options.flowController.hooks.flow.tap("viewController", (flow) => {
4481
4458
  flow.hooks.transition.tap("viewController", (_oldState, newState) => {
@@ -4486,17 +4463,18 @@ class ViewController {
4486
4463
  }
4487
4464
  });
4488
4465
  });
4489
- const update = (updates) => {
4466
+ const update = (updates, silent = false) => {
4490
4467
  if (this.currentView) {
4491
4468
  if (this.optimizeUpdates) {
4492
- this.queueUpdate(updates);
4469
+ this.queueUpdate(updates, silent);
4493
4470
  } else {
4494
4471
  this.currentView.update();
4495
4472
  }
4496
4473
  }
4497
4474
  };
4498
- options.model.hooks.onUpdate.tap("viewController", (updates) => {
4499
- update(new Set(updates.map((t) => t.binding)));
4475
+ options.model.hooks.onUpdate.tap("viewController", (updates, updateOptions) => {
4476
+ var _a;
4477
+ update(new Set(updates.map((t) => t.binding)), (_a = updateOptions == null ? void 0 : updateOptions.silent) != null ? _a : false);
4500
4478
  });
4501
4479
  options.model.hooks.onDelete.tap("viewController", (binding) => {
4502
4480
  const parentBinding = binding.parent();
@@ -4508,7 +4486,7 @@ class ViewController {
4508
4486
  }
4509
4487
  });
4510
4488
  }
4511
- queueUpdate(bindings) {
4489
+ queueUpdate(bindings, silent = false) {
4512
4490
  var _a;
4513
4491
  if ((_a = this.pendingUpdate) == null ? void 0 : _a.changedBindings) {
4514
4492
  this.pendingUpdate.changedBindings = new Set([
@@ -4516,7 +4494,10 @@ class ViewController {
4516
4494
  ...bindings
4517
4495
  ]);
4518
4496
  } else {
4519
- this.pendingUpdate = { changedBindings: bindings };
4497
+ this.pendingUpdate = { changedBindings: bindings, scheduled: false };
4498
+ }
4499
+ if (!this.pendingUpdate.scheduled && !silent) {
4500
+ this.pendingUpdate.scheduled = true;
4520
4501
  queueMicrotask__default["default"](() => {
4521
4502
  var _a2, _b;
4522
4503
  const updates = (_a2 = this.pendingUpdate) == null ? void 0 : _a2.changedBindings;
@@ -4875,8 +4856,8 @@ var __async = (__this, __arguments, generator) => {
4875
4856
  step((generator = generator.apply(__this, __arguments)).next());
4876
4857
  });
4877
4858
  };
4878
- const PLAYER_VERSION = "0.7.0";
4879
- const COMMIT = "00b3c9d34a6983cf364452a8b24b30e0c369a222";
4859
+ const PLAYER_VERSION = "0.7.1-next.0";
4860
+ const COMMIT = "b0282a1b53e7a91069e97814edec091b3de9ec5f";
4880
4861
  const _Player = class {
4881
4862
  constructor(config) {
4882
4863
  this.logger = new TapableLogger();