camunda-bpmn-js 3.9.0 → 3.10.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.
@@ -16743,7 +16743,7 @@
16743
16743
  * @return {boolean}
16744
16744
  */
16745
16745
  function is$6(element, type) {
16746
- var bo = getBusinessObject$3(element);
16746
+ var bo = getBusinessObject$2(element);
16747
16747
 
16748
16748
  return bo && (typeof bo.$instanceOf === 'function') && bo.$instanceOf(type);
16749
16749
  }
@@ -16770,7 +16770,7 @@
16770
16770
  *
16771
16771
  * @return {ModdleElement}
16772
16772
  */
16773
- function getBusinessObject$3(element) {
16773
+ function getBusinessObject$2(element) {
16774
16774
  return (element && element.businessObject) || element;
16775
16775
  }
16776
16776
 
@@ -17960,7 +17960,7 @@
17960
17960
  }
17961
17961
 
17962
17962
  if (is$6(element, 'bpmn:Participant')) {
17963
- return !!getBusinessObject$3(element).processRef;
17963
+ return !!getBusinessObject$2(element).processRef;
17964
17964
  }
17965
17965
 
17966
17966
  return true;
@@ -17972,7 +17972,7 @@
17972
17972
  * @return {boolean}
17973
17973
  */
17974
17974
  function isInterrupting$2(element) {
17975
- return element && getBusinessObject$3(element).isInterrupting !== false;
17975
+ return element && getBusinessObject$2(element).isInterrupting !== false;
17976
17976
  }
17977
17977
 
17978
17978
  /**
@@ -17981,7 +17981,7 @@
17981
17981
  * @return {boolean}
17982
17982
  */
17983
17983
  function isEventSubProcess(element) {
17984
- return element && !!getBusinessObject$3(element).triggeredByEvent;
17984
+ return element && !!getBusinessObject$2(element).triggeredByEvent;
17985
17985
  }
17986
17986
 
17987
17987
  /**
@@ -17991,7 +17991,7 @@
17991
17991
  * @return {boolean}
17992
17992
  */
17993
17993
  function hasEventDefinition$3(element, eventType) {
17994
- var eventDefinitions = getBusinessObject$3(element).eventDefinitions;
17994
+ var eventDefinitions = getBusinessObject$2(element).eventDefinitions;
17995
17995
 
17996
17996
  return some$1(eventDefinitions, function(event) {
17997
17997
  return is$6(event, eventType);
@@ -18469,7 +18469,7 @@
18469
18469
  /**
18470
18470
  * Get width and height from element or overrides.
18471
18471
  *
18472
- * @param {Dimensions|Rect|Shape} bounds
18472
+ * @param {Dimensions|Rect|ShapeLike} bounds
18473
18473
  * @param {Object} overrides
18474
18474
  *
18475
18475
  * @returns {Dimensions}
@@ -18484,7 +18484,7 @@
18484
18484
  /**
18485
18485
  * Get width from element or overrides.
18486
18486
  *
18487
- * @param {Dimensions|Rect|Shape} bounds
18487
+ * @param {Dimensions|Rect|ShapeLike} bounds
18488
18488
  * @param {Object} overrides
18489
18489
  *
18490
18490
  * @returns {number}
@@ -18496,7 +18496,7 @@
18496
18496
  /**
18497
18497
  * Get height from element or overrides.
18498
18498
  *
18499
- * @param {Dimensions|Rect|Shape} bounds
18499
+ * @param {Dimensions|Rect|ShapeLike} bounds
18500
18500
  * @param {Object} overrides
18501
18501
  *
18502
18502
  * @returns {number}
@@ -19177,7 +19177,7 @@
19177
19177
  };
19178
19178
 
19179
19179
  function renderEventIcon(element, parentGfx, attrs = {}) {
19180
- var semantic = getBusinessObject$3(element),
19180
+ var semantic = getBusinessObject$2(element),
19181
19181
  isThrowing = isThrowEvent(semantic);
19182
19182
 
19183
19183
  if (semantic.get('eventDefinitions') && semantic.get('eventDefinitions').length > 1) {
@@ -19391,7 +19391,7 @@
19391
19391
  height: getHeight(element, attrs)
19392
19392
  };
19393
19393
 
19394
- var semantic = getBusinessObject$3(element);
19394
+ var semantic = getBusinessObject$2(element);
19395
19395
 
19396
19396
  var subprocess = taskMarkers && taskMarkers.includes('SubProcessMarker');
19397
19397
 
@@ -19463,7 +19463,7 @@
19463
19463
  }
19464
19464
 
19465
19465
  function renderEmbeddedLabel(parentGfx, element, align, attrs = {}) {
19466
- var semantic = getBusinessObject$3(element);
19466
+ var semantic = getBusinessObject$2(element);
19467
19467
 
19468
19468
  var box = getBounds$1({
19469
19469
  x: element.x,
@@ -19535,7 +19535,7 @@
19535
19535
  }
19536
19536
 
19537
19537
  function renderAssociation(parentGfx, element, attrs = {}) {
19538
- var semantic = getBusinessObject$3(element);
19538
+ var semantic = getBusinessObject$2(element);
19539
19539
 
19540
19540
  var fill = getFillColor(element, defaultFillColor, attrs.fill),
19541
19541
  stroke = getStrokeColor$1(element, defaultStrokeColor, attrs.stroke);
@@ -19582,7 +19582,7 @@
19582
19582
  stroke
19583
19583
  });
19584
19584
 
19585
- var semantic = getBusinessObject$3(element);
19585
+ var semantic = getBusinessObject$2(element);
19586
19586
 
19587
19587
  if (isCollection(semantic)) {
19588
19588
  var collectionPathData = pathMap.getScaledPath('DATA_OBJECT_COLLECTION_PATH', {
@@ -19631,7 +19631,7 @@
19631
19631
  strokeWidth: 1.5
19632
19632
  });
19633
19633
 
19634
- var semantic = getBusinessObject$3(element);
19634
+ var semantic = getBusinessObject$2(element);
19635
19635
 
19636
19636
  if (is$6(semantic, 'bpmn:Lane')) {
19637
19637
  var text = semantic.get('name');
@@ -19709,7 +19709,7 @@
19709
19709
  'stroke'
19710
19710
  ]);
19711
19711
 
19712
- var semantic = getBusinessObject$3(element),
19712
+ var semantic = getBusinessObject$2(element),
19713
19713
  cancelActivity = semantic.get('cancelActivity');
19714
19714
 
19715
19715
  attrs = {
@@ -19930,7 +19930,7 @@
19930
19930
  'stroke'
19931
19931
  ]);
19932
19932
 
19933
- var semantic = getBusinessObject$3(element);
19933
+ var semantic = getBusinessObject$2(element);
19934
19934
 
19935
19935
  var diamond = renderGateway(parentGfx, element, attrs);
19936
19936
 
@@ -20137,7 +20137,7 @@
20137
20137
  'stroke'
20138
20138
  ]);
20139
20139
 
20140
- var semantic = getBusinessObject$3(element),
20140
+ var semantic = getBusinessObject$2(element),
20141
20141
  di = getDi$1(element);
20142
20142
 
20143
20143
  var fill = getFillColor(element, defaultFillColor, attrs.fill),
@@ -20236,7 +20236,7 @@
20236
20236
 
20237
20237
  var expandedParticipant = isExpanded$1(element);
20238
20238
 
20239
- var semantic = getBusinessObject$3(element),
20239
+ var semantic = getBusinessObject$2(element),
20240
20240
  name = semantic.get('name');
20241
20241
 
20242
20242
  if (expandedParticipant) {
@@ -20277,7 +20277,7 @@
20277
20277
  'stroke'
20278
20278
  ]);
20279
20279
 
20280
- var semantic = getBusinessObject$3(element);
20280
+ var semantic = getBusinessObject$2(element);
20281
20281
 
20282
20282
  var task = renderTask(parentGfx, element, attrs);
20283
20283
 
@@ -20381,12 +20381,12 @@
20381
20381
  stroke
20382
20382
  });
20383
20383
 
20384
- var semantic = getBusinessObject$3(element);
20384
+ var semantic = getBusinessObject$2(element);
20385
20385
 
20386
20386
  var { source } = element;
20387
20387
 
20388
20388
  if (source) {
20389
- var sourceSemantic = getBusinessObject$3(source);
20389
+ var sourceSemantic = getBusinessObject$2(source);
20390
20390
 
20391
20391
  // conditional flow marker
20392
20392
  if (semantic.get('conditionExpression') && is$6(sourceSemantic, 'bpmn:Activity')) {
@@ -20462,7 +20462,7 @@
20462
20462
  'stroke'
20463
20463
  ]);
20464
20464
 
20465
- var semantic = getBusinessObject$3(element);
20465
+ var semantic = getBusinessObject$2(element);
20466
20466
 
20467
20467
  if (!semantic.get('isInterrupting')) {
20468
20468
  attrs = {
@@ -20537,7 +20537,7 @@
20537
20537
  stroke: getStrokeColor$1(element, defaultStrokeColor, attrs.stroke)
20538
20538
  });
20539
20539
 
20540
- var semantic = getBusinessObject$3(element),
20540
+ var semantic = getBusinessObject$2(element),
20541
20541
  text = semantic.get('text') || '';
20542
20542
 
20543
20543
  renderLabel(parentGfx, text, {
@@ -22863,15 +22863,20 @@
22863
22863
 
22864
22864
  var self = this;
22865
22865
 
22866
- function createOutline(gfx, element) {
22866
+ /**
22867
+ * @param {SVGElement} gfx
22868
+ *
22869
+ * @return {SVGElement} outline
22870
+ */
22871
+ function createOutline(gfx) {
22867
22872
  var outline = create$1('rect');
22868
22873
 
22869
22874
  attr(outline, assign$2({
22870
- x: - self.offset,
22871
- y: - self.offset,
22875
+ x: 0,
22876
+ y: 0,
22872
22877
  rx: 4,
22873
- width: element.width + self.offset * 2,
22874
- height: element.height + self.offset * 2
22878
+ width: 100,
22879
+ height: 100
22875
22880
  }, OUTLINE_STYLE));
22876
22881
 
22877
22882
  return outline;
@@ -22886,12 +22891,11 @@
22886
22891
  var outline = query$1('.djs-outline', gfx);
22887
22892
 
22888
22893
  if (!outline) {
22889
- outline = self.getOutline(element) || createOutline(gfx, element);
22894
+ outline = self.getOutline(element) || createOutline();
22890
22895
  append(gfx, outline);
22891
-
22892
- } else {
22893
- self.updateShapeOutline(outline, element);
22894
22896
  }
22897
+
22898
+ self.updateShapeOutline(outline, element);
22895
22899
  });
22896
22900
 
22897
22901
  eventBus.on([ 'connection.added', 'connection.changed' ], function(event) {
@@ -22901,7 +22905,7 @@
22901
22905
  var outline = query$1('.djs-outline', gfx);
22902
22906
 
22903
22907
  if (!outline) {
22904
- outline = createOutline(gfx, element);
22908
+ outline = createOutline();
22905
22909
  append(gfx, outline);
22906
22910
  }
22907
22911
 
@@ -22945,7 +22949,7 @@
22945
22949
  *
22946
22950
  * @param {SVGElement} outline
22947
22951
  * @param {Element} connection
22948
- **/
22952
+ */
22949
22953
  Outline.prototype.updateConnectionOutline = function(outline, connection) {
22950
22954
  var bbox = getBBox(connection);
22951
22955
 
@@ -24645,7 +24649,7 @@
24645
24649
  // update breadcrumbs if name or ID of the primary shape changes
24646
24650
  eventBus.on('element.changed', function(event) {
24647
24651
  var shape = event.element,
24648
- businessObject = getBusinessObject$3(shape);
24652
+ businessObject = getBusinessObject$2(shape);
24649
24653
 
24650
24654
  var isPresent = find$2(businessObjectParents, function(element) {
24651
24655
  return element === businessObject;
@@ -24679,7 +24683,7 @@
24679
24683
  // element in the elementRegisty. Instead, we search for the corresponding participant
24680
24684
  if (!parentPlane && is$6(parent, 'bpmn:Process')) {
24681
24685
  var participant = elementRegistry.find(function(element) {
24682
- var businessObject = getBusinessObject$3(element);
24686
+ var businessObject = getBusinessObject$2(element);
24683
24687
 
24684
24688
  return businessObject && businessObject.get('processRef') && businessObject.get('processRef') === parent;
24685
24689
  });
@@ -24726,7 +24730,7 @@
24726
24730
  * @return {Shape}
24727
24731
  */
24728
24732
  function getBusinessObjectParentChain(child) {
24729
- var businessObject = getBusinessObject$3(child);
24733
+ var businessObject = getBusinessObject$2(child);
24730
24734
 
24731
24735
  var parents = [];
24732
24736
 
@@ -25267,7 +25271,7 @@
25267
25271
  DrilldownOverlayBehavior.prototype._updateOverlayVisibility = function(element) {
25268
25272
  var overlays = this._overlays;
25269
25273
 
25270
- var businessObject = getBusinessObject$3(element);
25274
+ var businessObject = getBusinessObject$2(element);
25271
25275
 
25272
25276
  var overlay = overlays.get({ element: businessObject.id, type: 'drilldown' })[0];
25273
25277
 
@@ -30262,12 +30266,20 @@
30262
30266
  /**
30263
30267
  * Get contex pad position.
30264
30268
  *
30269
+ * If target is a connection, the context pad will be placed according to the
30270
+ * connection's last waypoint.
30271
+ *
30272
+ * If multiple targets, the context pad will be placed according to the bounding
30273
+ * box containing all targets.
30274
+ *
30265
30275
  * @param {ContextPadTarget} target
30266
30276
  *
30267
30277
  * @return {Rect}
30268
30278
  */
30269
30279
  ContextPad.prototype._getPosition = function(target) {
30270
30280
 
30281
+ target = isConnection$2(target) ? getLastWaypoint(target) : target;
30282
+
30271
30283
  var elements = isArray$5(target) ? target : [ target ];
30272
30284
  var bBox = getBBox(elements);
30273
30285
 
@@ -30302,6 +30314,10 @@
30302
30314
  return array.indexOf(item) !== -1;
30303
30315
  }
30304
30316
 
30317
+ function getLastWaypoint(connection) {
30318
+ return connection.waypoints[connection.waypoints.length - 1];
30319
+ }
30320
+
30305
30321
  /**
30306
30322
  * @type { import('didi').ModuleDeclaration }
30307
30323
  */
@@ -31140,6 +31156,11 @@
31140
31156
  top = position.y - containerBounds.height;
31141
31157
  }
31142
31158
 
31159
+ // underAxis
31160
+ if (position.y < documentBounds.top) {
31161
+ top = position.y + containerBounds.height;
31162
+ }
31163
+
31143
31164
  return {
31144
31165
  x: left,
31145
31166
  y: top
@@ -37294,7 +37315,7 @@
37294
37315
  // helpers //////////
37295
37316
 
37296
37317
  function getEventDefinition$5(element) {
37297
- var businessObject = getBusinessObject$3(element),
37318
+ var businessObject = getBusinessObject$2(element),
37298
37319
  eventDefinitions = businessObject.eventDefinitions;
37299
37320
 
37300
37321
  return eventDefinitions && eventDefinitions[0];
@@ -37545,7 +37566,7 @@
37545
37566
 
37546
37567
  hints.participant = participant;
37547
37568
  hints.process = parent;
37548
- hints.processRef = getBusinessObject$3(participant).get('processRef');
37569
+ hints.processRef = getBusinessObject$2(participant).get('processRef');
37549
37570
  }
37550
37571
  }, true);
37551
37572
 
@@ -37559,7 +37580,7 @@
37559
37580
  context.parent = getOrCreateCollaboration();
37560
37581
 
37561
37582
  context.process = parent;
37562
- context.processRef = getBusinessObject$3(shape).get('processRef');
37583
+ context.processRef = getBusinessObject$2(shape).get('processRef');
37563
37584
  }
37564
37585
  }, true);
37565
37586
 
@@ -37574,7 +37595,7 @@
37574
37595
  if (process && (!participant || shape === participant)) {
37575
37596
 
37576
37597
  // monkey-patch process ref
37577
- getBusinessObject$3(shape).set('processRef', getBusinessObject$3(process));
37598
+ getBusinessObject$2(shape).set('processRef', getBusinessObject$2(process));
37578
37599
  }
37579
37600
  }, true);
37580
37601
 
@@ -37589,7 +37610,7 @@
37589
37610
  if (process && (!participant || shape === participant)) {
37590
37611
 
37591
37612
  // monkey-patch process ref
37592
- getBusinessObject$3(shape).set('processRef', processRef);
37613
+ getBusinessObject$2(shape).set('processRef', processRef);
37593
37614
  }
37594
37615
  }, true);
37595
37616
 
@@ -37879,7 +37900,7 @@
37879
37900
 
37880
37901
  function getFirstParticipantWithProcessRef() {
37881
37902
  return elementRegistry.filter(function(element) {
37882
- return is$6(element, 'bpmn:Participant') && getBusinessObject$3(element).processRef;
37903
+ return is$6(element, 'bpmn:Participant') && getBusinessObject$2(element).processRef;
37883
37904
  })[0];
37884
37905
  }
37885
37906
 
@@ -38624,7 +38645,7 @@
38624
38645
  // helpers //////////
38625
38646
 
38626
38647
  function getEventDefinition$4(element) {
38627
- var businessObject = getBusinessObject$3(element),
38648
+ var businessObject = getBusinessObject$2(element),
38628
38649
  eventDefinitions = businessObject.eventDefinitions;
38629
38650
 
38630
38651
  return eventDefinitions && eventDefinitions[0];
@@ -39217,7 +39238,7 @@
39217
39238
  */
39218
39239
  function isReferencedCategory(elements, category) {
39219
39240
  return elements.some(function(element) {
39220
- var businessObject = getBusinessObject$3(element);
39241
+ var businessObject = getBusinessObject$2(element);
39221
39242
 
39222
39243
  var _category = businessObject.categoryValueRef && businessObject.categoryValueRef.$parent;
39223
39244
 
@@ -39235,7 +39256,7 @@
39235
39256
  */
39236
39257
  function isReferencedCategoryValue(elements, categoryValue) {
39237
39258
  return elements.some(function(element) {
39238
- var businessObject = getBusinessObject$3(element);
39259
+ var businessObject = getBusinessObject$2(element);
39239
39260
 
39240
39261
  return businessObject.categoryValueRef === categoryValue;
39241
39262
  });
@@ -39276,7 +39297,7 @@
39276
39297
  }
39277
39298
 
39278
39299
  function setCategoryValue(element, context) {
39279
- var businessObject = getBusinessObject$3(element),
39300
+ var businessObject = getBusinessObject$2(element),
39280
39301
  categoryValue = businessObject.categoryValueRef;
39281
39302
 
39282
39303
  if (!categoryValue) {
@@ -39303,7 +39324,7 @@
39303
39324
  function unsetCategoryValue(element, context) {
39304
39325
  var category = context.category,
39305
39326
  categoryValue = context.categoryValue,
39306
- businessObject = getBusinessObject$3(element);
39327
+ businessObject = getBusinessObject$2(element);
39307
39328
 
39308
39329
  if (categoryValue) {
39309
39330
  businessObject.categoryValueRef = null;
@@ -39346,7 +39367,7 @@
39346
39367
 
39347
39368
  var context = event.context,
39348
39369
  shape = context.shape,
39349
- businessObject = getBusinessObject$3(shape);
39370
+ businessObject = getBusinessObject$2(shape);
39350
39371
 
39351
39372
  if (!is$6(shape, 'bpmn:Group') || shape.labelTarget) {
39352
39373
  return;
@@ -39375,7 +39396,7 @@
39375
39396
 
39376
39397
  var category = context.category,
39377
39398
  categoryValue = context.categoryValue,
39378
- businessObject = getBusinessObject$3(shape);
39399
+ businessObject = getBusinessObject$2(shape);
39379
39400
 
39380
39401
  if (categoryValue) {
39381
39402
  businessObject.categoryValueRef = categoryValue;
@@ -39395,7 +39416,7 @@
39395
39416
  return;
39396
39417
  }
39397
39418
 
39398
- if (getBusinessObject$3(shape).categoryValueRef) {
39419
+ if (getBusinessObject$2(shape).categoryValueRef) {
39399
39420
  setCategoryValue(shape, context);
39400
39421
  }
39401
39422
  });
@@ -39409,7 +39430,7 @@
39409
39430
  return;
39410
39431
  }
39411
39432
 
39412
- if (getBusinessObject$3(shape).categoryValueRef) {
39433
+ if (getBusinessObject$2(shape).categoryValueRef) {
39413
39434
  unsetCategoryValue(shape, context);
39414
39435
  }
39415
39436
  });
@@ -39431,7 +39452,7 @@
39431
39452
  return;
39432
39453
  }
39433
39454
 
39434
- var groupBo = getBusinessObject$3(element);
39455
+ var groupBo = getBusinessObject$2(element);
39435
39456
 
39436
39457
  if (groupBo.categoryValueRef) {
39437
39458
 
@@ -39617,7 +39638,7 @@
39617
39638
 
39618
39639
  this.executed([ 'shape.move', 'shape.create', 'shape.resize' ], function(event) {
39619
39640
  var shape = event.context.shape,
39620
- bo = getBusinessObject$3(shape),
39641
+ bo = getBusinessObject$2(shape),
39621
39642
  di = getDi$1(shape);
39622
39643
 
39623
39644
  if (isAny$1(bo, elementTypesToUpdate) && !di.get('isHorizontal')) {
@@ -40310,7 +40331,7 @@
40310
40331
  // update label if name property was updated
40311
40332
  this.postExecute('element.updateProperties', onPropertyUpdate);
40312
40333
  this.postExecute('element.updateModdleProperties', e => {
40313
- const elementBo = getBusinessObject$3(e.context.element);
40334
+ const elementBo = getBusinessObject$2(e.context.element);
40314
40335
 
40315
40336
  if (elementBo === e.context.moddleElement) {
40316
40337
  onPropertyUpdate(e);
@@ -40435,7 +40456,7 @@
40435
40456
  newShape = context.newShape,
40436
40457
  oldShape = context.oldShape;
40437
40458
 
40438
- var businessObject = getBusinessObject$3(newShape);
40459
+ var businessObject = getBusinessObject$2(newShape);
40439
40460
 
40440
40461
  if (businessObject
40441
40462
  && isLabelExternal(businessObject)
@@ -40936,7 +40957,7 @@
40936
40957
 
40937
40958
  function canBeNonInterrupting(shape) {
40938
40959
 
40939
- const businessObject = getBusinessObject$3(shape);
40960
+ const businessObject = getBusinessObject$2(shape);
40940
40961
 
40941
40962
  if (
40942
40963
  !is$6(businessObject, 'bpmn:BoundaryEvent') &&
@@ -40976,8 +40997,8 @@
40976
40997
  return;
40977
40998
  }
40978
40999
 
40979
- const isOldInterrupting = getBusinessObject$3(oldShape).get(property);
40980
- const isNewInterruptingDefault = getBusinessObject$3(newShape).get(property);
41000
+ const isOldInterrupting = getBusinessObject$2(oldShape).get(property);
41001
+ const isNewInterruptingDefault = getBusinessObject$2(newShape).get(property);
40981
41002
 
40982
41003
  if (isOldInterrupting === isNewInterruptingDefault) {
40983
41004
  return;
@@ -41841,7 +41862,7 @@
41841
41862
  return;
41842
41863
  }
41843
41864
 
41844
- var businessObject = getBusinessObject$3(shape),
41865
+ var businessObject = getBusinessObject$2(shape),
41845
41866
  rootElement = getRootElement(businessObject),
41846
41867
  rootElements;
41847
41868
 
@@ -41880,7 +41901,7 @@
41880
41901
  return;
41881
41902
  }
41882
41903
 
41883
- var businessObject = getBusinessObject$3(element),
41904
+ var businessObject = getBusinessObject$2(element),
41884
41905
  rootElement = getRootElement(businessObject);
41885
41906
 
41886
41907
  if (rootElement) {
@@ -42116,7 +42137,7 @@
42116
42137
  var shape = context.shape,
42117
42138
  rootElement = context.newRootElement;
42118
42139
 
42119
- var businessObject = getBusinessObject$3(shape);
42140
+ var businessObject = getBusinessObject$2(shape);
42120
42141
 
42121
42142
  rootElement = self._addDiagram(rootElement || businessObject);
42122
42143
 
@@ -42126,7 +42147,7 @@
42126
42147
  function removeRoot(context) {
42127
42148
  var shape = context.shape;
42128
42149
 
42129
- var businessObject = getBusinessObject$3(shape);
42150
+ var businessObject = getBusinessObject$2(shape);
42130
42151
  self._removeDiagram(businessObject);
42131
42152
 
42132
42153
  var rootElement = context.newRootElement = elementRegistry.get(getPlaneIdFromShape(businessObject));
@@ -42995,8 +43016,8 @@
42995
43016
  return false;
42996
43017
  }
42997
43018
 
42998
- var sourceBo = getBusinessObject$3(source),
42999
- sequenceFlow = getBusinessObject$3(connection);
43019
+ var sourceBo = getBusinessObject$2(source),
43020
+ sequenceFlow = getBusinessObject$2(connection);
43000
43021
 
43001
43022
  return sourceBo.get('default') === sequenceFlow;
43002
43023
  }
@@ -43494,13 +43515,13 @@
43494
43515
 
43495
43516
  do {
43496
43517
  if (is$6(element, 'bpmn:Process')) {
43497
- return getBusinessObject$3(element);
43518
+ return getBusinessObject$2(element);
43498
43519
  }
43499
43520
 
43500
43521
  if (is$6(element, 'bpmn:Participant')) {
43501
43522
  return (
43502
- getBusinessObject$3(element).processRef ||
43503
- getBusinessObject$3(element)
43523
+ getBusinessObject$2(element).processRef ||
43524
+ getBusinessObject$2(element)
43504
43525
  );
43505
43526
  }
43506
43527
  } while ((element = element.parent));
@@ -43541,7 +43562,7 @@
43541
43562
  * @return {boolean}
43542
43563
  */
43543
43564
  function isForCompensation(element) {
43544
- return getBusinessObject$3(element).isForCompensation;
43565
+ return getBusinessObject$2(element).isForCompensation;
43545
43566
  }
43546
43567
 
43547
43568
  /**
@@ -43606,11 +43627,11 @@
43606
43627
  while ((parent = parent.parent)) {
43607
43628
 
43608
43629
  if (is$6(parent, 'bpmn:FlowElementsContainer')) {
43609
- return getBusinessObject$3(parent);
43630
+ return getBusinessObject$2(parent);
43610
43631
  }
43611
43632
 
43612
43633
  if (is$6(parent, 'bpmn:Participant')) {
43613
- return getBusinessObject$3(parent).processRef;
43634
+ return getBusinessObject$2(parent).processRef;
43614
43635
  }
43615
43636
  }
43616
43637
 
@@ -43637,7 +43658,7 @@
43637
43658
  * @return {boolean}
43638
43659
  */
43639
43660
  function hasEventDefinition$2(element, eventDefinition) {
43640
- var businessObject = getBusinessObject$3(element);
43661
+ var businessObject = getBusinessObject$2(element);
43641
43662
 
43642
43663
  return !!find$2(businessObject.eventDefinitions || [], function(definition) {
43643
43664
  return is$6(definition, eventDefinition);
@@ -43651,7 +43672,7 @@
43651
43672
  * @return {boolean}
43652
43673
  */
43653
43674
  function hasEventDefinitionOrNone(element, eventDefinition) {
43654
- var businessObject = getBusinessObject$3(element);
43675
+ var businessObject = getBusinessObject$2(element);
43655
43676
 
43656
43677
  return (businessObject.eventDefinitions || []).every(function(definition) {
43657
43678
  return is$6(definition, eventDefinition);
@@ -43848,7 +43869,7 @@
43848
43869
 
43849
43870
  // disallow dropping data store reference if there is no process to append to
43850
43871
  if (is$6(element, 'bpmn:DataStoreReference') && is$6(target, 'bpmn:Collaboration')) {
43851
- return some$1(getBusinessObject$3(target).get('participants'), function(participant) {
43872
+ return some$1(getBusinessObject$2(target).get('participants'), function(participant) {
43852
43873
  return !!participant.get('processRef');
43853
43874
  });
43854
43875
  }
@@ -43881,7 +43902,7 @@
43881
43902
  * @return {boolean}
43882
43903
  */
43883
43904
  function isDroppableBoundaryEvent(event) {
43884
- return getBusinessObject$3(event).cancelActivity && (
43905
+ return getBusinessObject$2(event).cancelActivity && (
43885
43906
  hasNoEventDefinition(event) || hasCommonBoundaryIntermediateEventDefinition(event)
43886
43907
  );
43887
43908
  }
@@ -43932,7 +43953,7 @@
43932
43953
  * @return {boolean}
43933
43954
  */
43934
43955
  function hasNoEventDefinition(element) {
43935
- var businessObject = getBusinessObject$3(element);
43956
+ var businessObject = getBusinessObject$2(element);
43936
43957
 
43937
43958
  return businessObject && !(businessObject.eventDefinitions && businessObject.eventDefinitions.length);
43938
43959
  }
@@ -45964,7 +45985,7 @@
45964
45985
  eventBus.on('copyPaste.copyElement', LOW_PRIORITY$d, function(context) {
45965
45986
  var descriptor = context.descriptor,
45966
45987
  element = context.element,
45967
- businessObject = getBusinessObject$3(element);
45988
+ businessObject = getBusinessObject$2(element);
45968
45989
 
45969
45990
  // do not copy business object + di for labels;
45970
45991
  // will be pulled from the referenced label target
@@ -45996,7 +46017,7 @@
45996
46017
  }
45997
46018
 
45998
46019
  function resolveReferences(descriptor, cache, references) {
45999
- var businessObject = getBusinessObject$3(descriptor);
46020
+ var businessObject = getBusinessObject$2(descriptor);
46000
46021
 
46001
46022
  // default sequence flows
46002
46023
  if (descriptor.default) {
@@ -46012,7 +46033,7 @@
46012
46033
  if (descriptor.host) {
46013
46034
 
46014
46035
  // relationship can be resolved immediately
46015
- getBusinessObject$3(descriptor).attachedToRef = getBusinessObject$3(cache[ descriptor.host ]);
46036
+ getBusinessObject$2(descriptor).attachedToRef = getBusinessObject$2(cache[ descriptor.host ]);
46016
46037
  }
46017
46038
 
46018
46039
  return omit(references, reduce(references, function(array, reference, key) {
@@ -46037,7 +46058,7 @@
46037
46058
 
46038
46059
  // wire existing di + businessObject for external label
46039
46060
  if (isLabel$2(descriptor)) {
46040
- descriptor.businessObject = getBusinessObject$3(cache[ descriptor.labelTarget ]);
46061
+ descriptor.businessObject = getBusinessObject$2(cache[ descriptor.labelTarget ]);
46041
46062
  descriptor.di = getDi$1(cache[ descriptor.labelTarget ]);
46042
46063
 
46043
46064
  return;
@@ -46066,7 +46087,7 @@
46066
46087
  return;
46067
46088
  }
46068
46089
 
46069
- var participantBo = getBusinessObject$3(element);
46090
+ var participantBo = getBusinessObject$2(element);
46070
46091
 
46071
46092
  if (participantBo.processRef) {
46072
46093
  descriptor.processRef = copy(participantBo.processRef, true);
@@ -46819,7 +46840,7 @@
46819
46840
  * @return {boolean}
46820
46841
  */
46821
46842
  function hasEventDefinition$1(element, type) {
46822
- var businessObject = getBusinessObject$3(element);
46843
+ var businessObject = getBusinessObject$2(element);
46823
46844
 
46824
46845
  return type && businessObject.get('eventDefinitions').some(function(definition) {
46825
46846
  return is$6(definition, type);
@@ -48089,7 +48110,7 @@
48089
48110
  // helpers ///////////
48090
48111
 
48091
48112
  function isCollapsedPool$1(shape) {
48092
- return is$6(shape, 'bpmn:Participant') && !getBusinessObject$3(shape).processRef;
48113
+ return is$6(shape, 'bpmn:Participant') && !getBusinessObject$2(shape).processRef;
48093
48114
  }
48094
48115
 
48095
48116
  var SpaceToolModule = {
@@ -49575,9 +49596,9 @@
49575
49596
  connection = context.connection,
49576
49597
  oldSource = context.oldSource,
49577
49598
  newSource = context.newSource,
49578
- connectionBo = getBusinessObject$3(connection),
49579
- oldSourceBo = getBusinessObject$3(oldSource),
49580
- newSourceBo = getBusinessObject$3(newSource);
49599
+ connectionBo = getBusinessObject$2(connection),
49600
+ oldSourceBo = getBusinessObject$2(oldSource),
49601
+ newSourceBo = getBusinessObject$2(newSource);
49581
49602
 
49582
49603
  // remove condition from connection on reconnect to new source
49583
49604
  // if new source can NOT have condional sequence flow
@@ -49605,9 +49626,9 @@
49605
49626
  connection = context.connection,
49606
49627
  oldSource = context.oldSource,
49607
49628
  newSource = context.newSource,
49608
- connectionBo = getBusinessObject$3(connection),
49609
- oldSourceBo = getBusinessObject$3(oldSource),
49610
- newSourceBo = getBusinessObject$3(newSource);
49629
+ connectionBo = getBusinessObject$2(connection),
49630
+ oldSourceBo = getBusinessObject$2(oldSource),
49631
+ newSourceBo = getBusinessObject$2(newSource);
49611
49632
 
49612
49633
  // add condition to connection on revert reconnect to new source
49613
49634
  if (context.oldConditionExpression) {
@@ -49803,11 +49824,11 @@
49803
49824
  newSourceDi = getDi$1(newSource),
49804
49825
  newTargetDi = getDi$1(newTarget);
49805
49826
 
49806
- if (connectionDi.sourceElement && connectionDi.sourceElement.bpmnElement !== getBusinessObject$3(newSource)) {
49827
+ if (connectionDi.sourceElement && connectionDi.sourceElement.bpmnElement !== getBusinessObject$2(newSource)) {
49807
49828
  connectionDi.sourceElement = newSource && newSourceDi;
49808
49829
  }
49809
49830
 
49810
- if (connectionDi.targetElement && connectionDi.targetElement.bpmnElement !== getBusinessObject$3(newTarget)) {
49831
+ if (connectionDi.targetElement && connectionDi.targetElement.bpmnElement !== getBusinessObject$2(newTarget)) {
49811
49832
  connectionDi.targetElement = newTarget && newTargetDi;
49812
49833
  }
49813
49834
 
@@ -50067,11 +50088,11 @@
50067
50088
  */
50068
50089
  BpmnUpdater.prototype.updateConnection = function(context) {
50069
50090
  var connection = context.connection,
50070
- businessObject = getBusinessObject$3(connection),
50091
+ businessObject = getBusinessObject$2(connection),
50071
50092
  newSource = connection.source,
50072
- newSourceBo = getBusinessObject$3(newSource),
50093
+ newSourceBo = getBusinessObject$2(newSource),
50073
50094
  newTarget = connection.target,
50074
- newTargetBo = getBusinessObject$3(connection.target),
50095
+ newTargetBo = getBusinessObject$2(connection.target),
50075
50096
  visualParent;
50076
50097
 
50077
50098
  if (!is$6(businessObject, 'bpmn:DataAssociation')) {
@@ -50419,7 +50440,7 @@
50419
50440
  */
50420
50441
  ElementFactory.prototype.getDefaultSize = function(element, di) {
50421
50442
 
50422
- var bo = getBusinessObject$3(element);
50443
+ var bo = getBusinessObject$2(element);
50423
50444
  di = di || getDi$1(element);
50424
50445
 
50425
50446
  if (is$6(bo, 'bpmn:SubProcess')) {
@@ -53397,7 +53418,7 @@
53397
53418
  return elementRegistry.filter(function(element) {
53398
53419
  return (
53399
53420
  is$6(element, 'bpmn:DataObjectReference') &&
53400
- getBusinessObject$3(element).dataObjectRef === dataObject
53421
+ getBusinessObject$2(element).dataObjectRef === dataObject
53401
53422
  );
53402
53423
  });
53403
53424
  }
@@ -53526,7 +53547,7 @@
53526
53547
  var element = context.element,
53527
53548
  label = element.label;
53528
53549
 
53529
- var text = label && getBusinessObject$3(label).name;
53550
+ var text = label && getBusinessObject$2(label).name;
53530
53551
 
53531
53552
  if (!text) {
53532
53553
  return;
@@ -53650,7 +53671,7 @@
53650
53671
 
53651
53672
  referencePropertyNames.forEach(function(name) {
53652
53673
  if (name in properties) {
53653
- unwrappedProps[name] = getBusinessObject$3(unwrappedProps[name]);
53674
+ unwrappedProps[name] = getBusinessObject$2(unwrappedProps[name]);
53654
53675
  }
53655
53676
  });
53656
53677
 
@@ -56966,7 +56987,7 @@
56966
56987
  return function(entry) {
56967
56988
  var target = entry.target;
56968
56989
 
56969
- var businessObject = getBusinessObject$3(element),
56990
+ var businessObject = getBusinessObject$2(element),
56970
56991
  eventDefinition = businessObject.eventDefinitions && businessObject.eventDefinitions[0];
56971
56992
 
56972
56993
  var isTypeEqual = businessObject.$type === target.type;
@@ -58262,7 +58283,7 @@
58262
58283
  */
58263
58284
  ReplaceMenuProvider.prototype._createSequenceFlowEntries = function(target, replaceOptions) {
58264
58285
 
58265
- var businessObject = getBusinessObject$3(target);
58286
+ var businessObject = getBusinessObject$2(target);
58266
58287
 
58267
58288
  var entries = {};
58268
58289
 
@@ -58398,7 +58419,7 @@
58398
58419
  self._modeling.updateProperties(target, { loopCharacteristics: newLoopCharacteristics });
58399
58420
  }
58400
58421
 
58401
- var businessObject = getBusinessObject$3(target),
58422
+ var businessObject = getBusinessObject$2(target),
58402
58423
  loopCharacteristics = businessObject.loopCharacteristics;
58403
58424
 
58404
58425
  var isSequential,
@@ -58529,7 +58550,7 @@
58529
58550
  */
58530
58551
  ReplaceMenuProvider.prototype._getAdHocHeaderEntries = function(element) {
58531
58552
  var translate = this._translate;
58532
- var businessObject = getBusinessObject$3(element);
58553
+ var businessObject = getBusinessObject$2(element);
58533
58554
 
58534
58555
  var isAdHoc = is$6(businessObject, 'bpmn:AdHocSubProcess');
58535
58556
 
@@ -58560,7 +58581,7 @@
58560
58581
 
58561
58582
  ReplaceMenuProvider.prototype._getNonInterruptingHeaderEntries = function(element) {
58562
58583
  const translate = this._translate;
58563
- const businessObject = getBusinessObject$3(element);
58584
+ const businessObject = getBusinessObject$2(element);
58564
58585
  const self = this;
58565
58586
 
58566
58587
  const interruptingProperty = getInterruptingProperty(element);
@@ -63650,6 +63671,19 @@
63650
63671
  height: element.height + DEFAULT_OFFSET * 2
63651
63672
  }, OUTLINE_STYLE));
63652
63673
 
63674
+ } else if (is$6(element, 'bpmn:EndEvent')) {
63675
+
63676
+ outline = create$1('circle');
63677
+
63678
+ // Extra 1px offset needed due to increased stroke-width of end event
63679
+ // which makes it bigger than other events.
63680
+
63681
+ attr(outline, assign$2({
63682
+ cx: element.width / 2,
63683
+ cy: element.height / 2,
63684
+ r: element.width / 2 + DEFAULT_OFFSET + 1
63685
+ }, OUTLINE_STYLE));
63686
+
63653
63687
  } else if (is$6(element, 'bpmn:Event')) {
63654
63688
  outline = create$1('circle');
63655
63689
 
@@ -68753,7 +68787,7 @@
68753
68787
  return;
68754
68788
  }
68755
68789
 
68756
- var bo = getBusinessObject$3(element);
68790
+ var bo = getBusinessObject$2(element);
68757
68791
 
68758
68792
  if (is$6(bo, 'bpmn:Participant')) {
68759
68793
  bo = bo.processRef;
@@ -111312,14 +111346,14 @@
111312
111346
 
111313
111347
  var scopedParent = minDash$1.find(parents, function(parent) {
111314
111348
  return (
111315
- is$1$2(parent, 'bpmn:SubProcess') && hasInputParameter$2(parent, variableName)
111349
+ is$1$1(parent, 'bpmn:SubProcess') && hasInputParameter$2(parent, variableName)
111316
111350
  );
111317
111351
  });
111318
111352
 
111319
111353
  return scopedParent ? scopedParent : globalScope;
111320
111354
  }
111321
111355
 
111322
- function is$1$2(element, type) {
111356
+ function is$1$1(element, type) {
111323
111357
  return (
111324
111358
  element &&
111325
111359
  typeof element.$instanceOf === 'function' &&
@@ -111649,7 +111683,7 @@
111649
111683
  }
111650
111684
 
111651
111685
  function getScope$2(element) {
111652
- const bo = getBusinessObject$2(element);
111686
+ const bo = getBusinessObject$1(element);
111653
111687
 
111654
111688
  if (is$4(element, 'bpmn:Participant')) {
111655
111689
  return bo.processRef.id;
@@ -111659,7 +111693,7 @@
111659
111693
  }
111660
111694
 
111661
111695
  function getRootElement$2(element) {
111662
- const businessObject = getBusinessObject$2(element);
111696
+ const businessObject = getBusinessObject$1(element);
111663
111697
 
111664
111698
  if (is$4(businessObject, 'bpmn:Participant')) {
111665
111699
  return businessObject.processRef;
@@ -111686,13 +111720,13 @@
111686
111720
  }
111687
111721
 
111688
111722
 
111689
- function getBusinessObject$2(element) {
111723
+ function getBusinessObject$1(element) {
111690
111724
  return (element && element.businessObject) || element;
111691
111725
  }
111692
111726
 
111693
111727
 
111694
111728
  function is$4(element, type) {
111695
- var bo = getBusinessObject$2(element);
111729
+ var bo = getBusinessObject$1(element);
111696
111730
 
111697
111731
  return bo && (typeof bo.$instanceOf === 'function') && bo.$instanceOf(type);
111698
111732
  }
@@ -112011,14 +112045,14 @@
112011
112045
 
112012
112046
  var scopedParent = minDash.find(parents, function(parent) {
112013
112047
  return (
112014
- is$1$1(parent, 'bpmn:SubProcess') && hasInputParameter$1(parent, variableName)
112048
+ is$1(parent, 'bpmn:SubProcess') && hasInputParameter$1(parent, variableName)
112015
112049
  );
112016
112050
  });
112017
112051
 
112018
112052
  return scopedParent ? scopedParent : globalScope;
112019
112053
  }
112020
112054
 
112021
- function is$1$1(element, type) {
112055
+ function is$1(element, type) {
112022
112056
  return (
112023
112057
  element &&
112024
112058
  typeof element.$instanceOf === 'function' &&
@@ -113677,7 +113711,7 @@
113677
113711
  },
113678
113712
  getElementLabel: element => {
113679
113713
  if (is$6(element, 'bpmn:Process')) {
113680
- return getBusinessObject$3(element).name;
113714
+ return getBusinessObject$2(element).name;
113681
113715
  }
113682
113716
  return getLabel(element);
113683
113717
  },
@@ -113713,11 +113747,11 @@
113713
113747
  // helpers ///////////////////////
113714
113748
 
113715
113749
  function isCancelActivity(element) {
113716
- const businessObject = getBusinessObject$3(element);
113750
+ const businessObject = getBusinessObject$2(element);
113717
113751
  return businessObject && businessObject.cancelActivity !== false;
113718
113752
  }
113719
113753
  function getEventDefinition$2(element) {
113720
- const businessObject = getBusinessObject$3(element),
113754
+ const businessObject = getBusinessObject$2(element),
113721
113755
  eventDefinitions = businessObject.eventDefinitions;
113722
113756
  return eventDefinitions && eventDefinitions[0];
113723
113757
  }
@@ -113729,16 +113763,16 @@
113729
113763
  return rawType.replace('EventDefinition', '');
113730
113764
  }
113731
113765
  function isDefaultFlow(element) {
113732
- const businessObject = getBusinessObject$3(element);
113733
- const sourceBusinessObject = getBusinessObject$3(element.source);
113766
+ const businessObject = getBusinessObject$2(element);
113767
+ const sourceBusinessObject = getBusinessObject$2(element.source);
113734
113768
  if (!is$6(element, 'bpmn:SequenceFlow') || !sourceBusinessObject) {
113735
113769
  return false;
113736
113770
  }
113737
113771
  return sourceBusinessObject.default && sourceBusinessObject.default === businessObject && (is$6(sourceBusinessObject, 'bpmn:Gateway') || is$6(sourceBusinessObject, 'bpmn:Activity'));
113738
113772
  }
113739
113773
  function isConditionalFlow(element) {
113740
- const businessObject = getBusinessObject$3(element);
113741
- const sourceBusinessObject = getBusinessObject$3(element.source);
113774
+ const businessObject = getBusinessObject$2(element);
113775
+ const sourceBusinessObject = getBusinessObject$2(element.source);
113742
113776
  if (!is$6(element, 'bpmn:SequenceFlow') || !sourceBusinessObject) {
113743
113777
  return false;
113744
113778
  }
@@ -113746,7 +113780,7 @@
113746
113780
  }
113747
113781
  function isPlane(element) {
113748
113782
  // Backwards compatibility for bpmn-js<8
113749
- const di = element && (element.di || getBusinessObject$3(element).di);
113783
+ const di = element && (element.di || getBusinessObject$2(element).di);
113750
113784
  return is$6(di, 'bpmndi:BPMNPlane');
113751
113785
  }
113752
113786
  function getTemplatesService() {
@@ -114343,7 +114377,7 @@
114343
114377
  return errorEventDefinition && errorEventDefinition.get('errorRef');
114344
114378
  }
114345
114379
  function getEventDefinition$1(element, eventType) {
114346
- const businessObject = getBusinessObject$3(element);
114380
+ const businessObject = getBusinessObject$2(element);
114347
114381
  const eventDefinitions = businessObject.get('eventDefinitions') || [];
114348
114382
  return find$2(eventDefinitions, function (definition) {
114349
114383
  return is$6(definition, eventType);
@@ -114354,7 +114388,7 @@
114354
114388
  }
114355
114389
  function getMessageEventDefinition$2(element) {
114356
114390
  if (is$6(element, 'bpmn:ReceiveTask')) {
114357
- return getBusinessObject$3(element);
114391
+ return getBusinessObject$2(element);
114358
114392
  }
114359
114393
  return getEventDefinition$1(element, 'bpmn:MessageEventDefinition');
114360
114394
  }
@@ -114464,7 +114498,7 @@
114464
114498
  };
114465
114499
  const setValue = value => {
114466
114500
  // update (or remove) activityRef
114467
- const activityRef = value ? getBusinessObject$3(elementRegistry.get(value)) : undefined;
114501
+ const activityRef = value ? getBusinessObject$2(elementRegistry.get(value)) : undefined;
114468
114502
  commandStack.execute('element.updateModdleProperties', {
114469
114503
  element,
114470
114504
  moddleElement: compensateEventDefinition,
@@ -114562,7 +114596,7 @@
114562
114596
  * @returns {Array<ModdleElement>}
114563
114597
  */
114564
114598
  function findActivityRefs(element) {
114565
- const businessObject = getBusinessObject$3(element);
114599
+ const businessObject = getBusinessObject$2(element);
114566
114600
  let parent = businessObject.$parent;
114567
114601
 
114568
114602
  // (1) get all activities in parent container
@@ -114633,8 +114667,8 @@
114633
114667
  const commandStack = useService('commandStack');
114634
114668
  const translate = useService('translate');
114635
114669
  const debounce = useService('debounceInput');
114636
- const getValue = getDocumentation(getBusinessObject$3(element));
114637
- const setValue = setDocumentation(element, getBusinessObject$3(element), bpmnFactory, commandStack);
114670
+ const getValue = getDocumentation(getBusinessObject$2(element));
114671
+ const setValue = setDocumentation(element, getBusinessObject$2(element), bpmnFactory, commandStack);
114638
114672
  return TextAreaEntry({
114639
114673
  element,
114640
114674
  id: 'documentation',
@@ -114652,7 +114686,7 @@
114652
114686
  const commandStack = useService('commandStack');
114653
114687
  const translate = useService('translate');
114654
114688
  const debounce = useService('debounceInput');
114655
- const processRef = getBusinessObject$3(element).processRef;
114689
+ const processRef = getBusinessObject$2(element).processRef;
114656
114690
  const getValue = getDocumentation(processRef);
114657
114691
  const setValue = setDocumentation(element, processRef, bpmnFactory, commandStack);
114658
114692
  return TextAreaEntry({
@@ -114879,7 +114913,7 @@
114879
114913
  value: CREATE_NEW_OPTION$4,
114880
114914
  label: translate('Create new ...')
114881
114915
  }];
114882
- const errors = findRootElementsByType$1(getBusinessObject$3(element), 'bpmn:Error');
114916
+ const errors = findRootElementsByType$1(getBusinessObject$2(element), 'bpmn:Error');
114883
114917
  sortByName$5(errors).forEach(error => {
114884
114918
  options.push({
114885
114919
  value: error.get('id'),
@@ -115059,7 +115093,7 @@
115059
115093
  value: CREATE_NEW_OPTION$3,
115060
115094
  label: translate('Create new ...')
115061
115095
  }];
115062
- const escalations = findRootElementsByType$1(getBusinessObject$3(element), 'bpmn:Escalation');
115096
+ const escalations = findRootElementsByType$1(getBusinessObject$2(element), 'bpmn:Escalation');
115063
115097
  sortByName$4(escalations).forEach(escalation => {
115064
115098
  options.push({
115065
115099
  value: escalation.get('id'),
@@ -115287,7 +115321,7 @@
115287
115321
  return element.businessObject.id;
115288
115322
  };
115289
115323
  const validate = value => {
115290
- const businessObject = getBusinessObject$3(element);
115324
+ const businessObject = getBusinessObject$2(element);
115291
115325
  return isIdValid(businessObject, value, translate);
115292
115326
  };
115293
115327
  return TextfieldEntry({
@@ -115447,7 +115481,7 @@
115447
115481
  value: CREATE_NEW_OPTION$2,
115448
115482
  label: translate('Create new ...')
115449
115483
  }];
115450
- const messages = findRootElementsByType$1(getBusinessObject$3(element), 'bpmn:Message');
115484
+ const messages = findRootElementsByType$1(getBusinessObject$2(element), 'bpmn:Message');
115451
115485
  sortByName$3(messages).forEach(message => {
115452
115486
  options.push({
115453
115487
  value: message.get('id'),
@@ -115619,7 +115653,7 @@
115619
115653
  * @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
115620
115654
  */
115621
115655
  function getLoopCharacteristics$2(element) {
115622
- const bo = getBusinessObject$3(element);
115656
+ const bo = getBusinessObject$2(element);
115623
115657
  return bo.loopCharacteristics;
115624
115658
  }
115625
115659
 
@@ -115796,7 +115830,7 @@
115796
115830
  options = {
115797
115831
  ...options,
115798
115832
  setValue: value => {
115799
- const businessObject = getBusinessObject$3(element),
115833
+ const businessObject = getBusinessObject$2(element),
115800
115834
  categoryValueRef = businessObject.categoryValueRef;
115801
115835
  if (!categoryValueRef) {
115802
115836
  initializeCategory(businessObject, canvas.getRootElement(), bpmnFactory);
@@ -115804,7 +115838,7 @@
115804
115838
  modeling.updateLabel(element, value);
115805
115839
  },
115806
115840
  getValue: element => {
115807
- const businessObject = getBusinessObject$3(element),
115841
+ const businessObject = getBusinessObject$2(element),
115808
115842
  categoryValueRef = businessObject.categoryValueRef;
115809
115843
  return categoryValueRef && categoryValueRef.value;
115810
115844
  }
@@ -115821,7 +115855,7 @@
115821
115855
  // helpers ////////////////////////
115822
115856
 
115823
115857
  function initializeCategory(businessObject, rootElement, bpmnFactory) {
115824
- const definitions = getBusinessObject$3(rootElement).$parent;
115858
+ const definitions = getBusinessObject$2(rootElement).$parent;
115825
115859
  const categoryValue = createCategoryValue(definitions, bpmnFactory);
115826
115860
  businessObject.categoryValueRef = categoryValue;
115827
115861
  }
@@ -115833,8 +115867,8 @@
115833
115867
 
115834
115868
  // add to correct place
115835
115869
  add$3(definitions.get('rootElements'), category);
115836
- getBusinessObject$3(category).$parent = definitions;
115837
- getBusinessObject$3(categoryValue).$parent = category;
115870
+ getBusinessObject$2(category).$parent = definitions;
115871
+ getBusinessObject$2(categoryValue).$parent = category;
115838
115872
  return categoryValue;
115839
115873
  }
115840
115874
 
@@ -116030,7 +116064,7 @@
116030
116064
  value: CREATE_NEW_OPTION$1,
116031
116065
  label: translate('Create new ...')
116032
116066
  }];
116033
- const signals = findRootElementsByType$1(getBusinessObject$3(element), 'bpmn:Signal');
116067
+ const signals = findRootElementsByType$1(getBusinessObject$2(element), 'bpmn:Signal');
116034
116068
  sortByName$2(signals).forEach(signal => {
116035
116069
  options.push({
116036
116070
  value: signal.get('id'),
@@ -116117,7 +116151,7 @@
116117
116151
  return getEventDefinition$3(element, 'bpmn:TimerEventDefinition');
116118
116152
  }
116119
116153
  function getEventDefinition$3(element, eventType) {
116120
- const businessObject = getBusinessObject$3(element);
116154
+ const businessObject = getBusinessObject$2(element);
116121
116155
  const eventDefinitions = businessObject.get('eventDefinitions') || [];
116122
116156
  return find$2(eventDefinitions, function (definition) {
116123
116157
  return is$6(definition, eventType);
@@ -116143,7 +116177,7 @@
116143
116177
  timerEventDefinition
116144
116178
  } = props;
116145
116179
  if (!timerEventDefinition) {
116146
- const businessObject = getBusinessObject$3(element);
116180
+ const businessObject = getBusinessObject$2(element);
116147
116181
  timerEventDefinition = getTimerEventDefinition$1(businessObject);
116148
116182
  }
116149
116183
  const timerEventDefinitionType = getTimerDefinitionType(timerEventDefinition);
@@ -116685,7 +116719,7 @@
116685
116719
  };
116686
116720
  const setValue = value => {
116687
116721
  const commands = [];
116688
- const businessObject = getBusinessObject$3(element);
116722
+ const businessObject = getBusinessObject$2(element);
116689
116723
  let extensionElements = businessObject.get('extensionElements');
116690
116724
 
116691
116725
  // (1) ensure extension elements
@@ -116759,7 +116793,7 @@
116759
116793
  };
116760
116794
  const setValue = value => {
116761
116795
  let commands = [];
116762
- const businessObject = getBusinessObject$3(element);
116796
+ const businessObject = getBusinessObject$2(element);
116763
116797
  let extensionElements = businessObject.get('extensionElements');
116764
116798
 
116765
116799
  // (1) ensure extension elements
@@ -116831,7 +116865,7 @@
116831
116865
  };
116832
116866
  const setValue = value => {
116833
116867
  let commands = [];
116834
- const businessObject = getBusinessObject$3(element);
116868
+ const businessObject = getBusinessObject$2(element);
116835
116869
  let extensionElements = businessObject.get('extensionElements');
116836
116870
 
116837
116871
  // (1) ensure extension elements
@@ -116894,7 +116928,7 @@
116894
116928
  // helper ///////////////////////
116895
116929
 
116896
116930
  function getAssignmentDefinition(element) {
116897
- const businessObject = getBusinessObject$3(element);
116931
+ const businessObject = getBusinessObject$2(element);
116898
116932
  return getExtensionElementsList$2(businessObject, 'zeebe:AssignmentDefinition')[0];
116899
116933
  }
116900
116934
 
@@ -116921,7 +116955,7 @@
116921
116955
  // helper ////////////////
116922
116956
 
116923
116957
  function getTaskDefinition$3(element) {
116924
- const businessObject = getBusinessObject$3(element);
116958
+ const businessObject = getBusinessObject$2(element);
116925
116959
  return getExtensionElementsList$2(businessObject, 'zeebe:TaskDefinition')[0];
116926
116960
  }
116927
116961
 
@@ -116937,7 +116971,7 @@
116937
116971
  * @return {ModdleElement} a zeebe:TaskHeader element
116938
116972
  */
116939
116973
  function getTaskHeaders$1(element) {
116940
- const businessObject = getBusinessObject$3(element);
116974
+ const businessObject = getBusinessObject$2(element);
116941
116975
  return getExtensionElementsList$2(businessObject, 'zeebe:TaskHeaders')[0];
116942
116976
  }
116943
116977
 
@@ -117034,23 +117068,23 @@
117034
117068
  // helper ///////////////////////
117035
117069
 
117036
117070
  function getTaskDefinition$2(element) {
117037
- const businessObject = getBusinessObject$3(element);
117071
+ const businessObject = getBusinessObject$2(element);
117038
117072
  return getExtensionElementsList$2(businessObject, 'zeebe:TaskDefinition')[0];
117039
117073
  }
117040
117074
  function getCalledDecision$1(element) {
117041
- const businessObject = getBusinessObject$3(element);
117075
+ const businessObject = getBusinessObject$2(element);
117042
117076
  return getExtensionElementsList$2(businessObject, 'zeebe:CalledDecision')[0];
117043
117077
  }
117044
117078
  function isBusinessRuleImplementationEdited(element) {
117045
117079
  return getTaskDefinition$2(element);
117046
117080
  }
117047
117081
  function resetElement$1(element, commandStack) {
117048
- const businessObject = getBusinessObject$3(element);
117082
+ const businessObject = getBusinessObject$2(element);
117049
117083
  const toRemove = [getTaskDefinition$2(element), getTaskHeaders$1(element), getCalledDecision$1(element)].filter(Boolean);
117050
117084
  removeExtensionElements$1(element, businessObject, toRemove, commandStack);
117051
117085
  }
117052
117086
  function updateExtensionElements$1(element, extensionElementToAdd, bpmnFactory, commandStack) {
117053
- const businessObject = getBusinessObject$3(element);
117087
+ const businessObject = getBusinessObject$2(element);
117054
117088
  const commands = [];
117055
117089
  let extensionElements = businessObject.get('extensionElements');
117056
117090
  let extensionElementValues;
@@ -117125,7 +117159,7 @@
117125
117159
  };
117126
117160
  const setValue = value => {
117127
117161
  const commands = [];
117128
- const businessObject = getBusinessObject$3(element);
117162
+ const businessObject = getBusinessObject$2(element);
117129
117163
  let extensionElements = businessObject.get('extensionElements');
117130
117164
 
117131
117165
  // (1) ensure extension elements
@@ -117200,7 +117234,7 @@
117200
117234
  };
117201
117235
  const setValue = value => {
117202
117236
  const commands = [];
117203
- const businessObject = getBusinessObject$3(element);
117237
+ const businessObject = getBusinessObject$2(element);
117204
117238
  let extensionElements = businessObject.get('extensionElements');
117205
117239
 
117206
117240
  // (1) ensure extension elements
@@ -117264,7 +117298,7 @@
117264
117298
  // helper ///////////////////////
117265
117299
 
117266
117300
  function getCalledDecision$2(element) {
117267
- const businessObject = getBusinessObject$3(element);
117301
+ const businessObject = getBusinessObject$2(element);
117268
117302
  return getExtensionElementsList$2(businessObject, 'zeebe:CalledDecision')[0];
117269
117303
  }
117270
117304
 
@@ -117298,7 +117332,7 @@
117298
117332
  };
117299
117333
  const setValue = value => {
117300
117334
  const commands = [];
117301
- const businessObject = getBusinessObject$3(element);
117335
+ const businessObject = getBusinessObject$2(element);
117302
117336
 
117303
117337
  // (1) If we set value to a default flow, make it a non-default flow
117304
117338
  // by updating the element source
@@ -117359,7 +117393,7 @@
117359
117393
  * @return {string|undefined}
117360
117394
  */
117361
117395
  function getConditionExpression$1(element) {
117362
- const businessObject = getBusinessObject$3(element);
117396
+ const businessObject = getBusinessObject$2(element);
117363
117397
  const conditionExpression = businessObject.conditionExpression;
117364
117398
  if (conditionExpression) {
117365
117399
  return conditionExpression.get('body');
@@ -117478,7 +117512,7 @@
117478
117512
  CUSTOM_FORM: 'custom-form'
117479
117513
  };
117480
117514
  function getFormDefinition$1(element) {
117481
- const businessObject = getBusinessObject$3(element);
117515
+ const businessObject = getBusinessObject$2(element);
117482
117516
  const formDefinitions = getExtensionElementsList$2(businessObject, 'zeebe:FormDefinition');
117483
117517
  return formDefinitions[0];
117484
117518
  }
@@ -117501,7 +117535,7 @@
117501
117535
  return nextId$1(USER_TASK_FORM_ID_PREFIX$1);
117502
117536
  }
117503
117537
  function getRootElement$1$1(element) {
117504
- const businessObject = getBusinessObject$3(element);
117538
+ const businessObject = getBusinessObject$2(element);
117505
117539
  let parent = businessObject;
117506
117540
  while (parent.$parent && !is$6(parent, 'bpmn:Process')) {
117507
117541
  parent = parent.$parent;
@@ -117694,7 +117728,7 @@
117694
117728
  * } }
117695
117729
  */
117696
117730
  function getOrCreateExtensionElements(injector, element, moddleElement) {
117697
- const businessObject = moddleElement || getBusinessObject$3(element);
117731
+ const businessObject = moddleElement || getBusinessObject$2(element);
117698
117732
  let extensionElements = businessObject.get('extensionElements');
117699
117733
  if (extensionElements) {
117700
117734
  return {
@@ -117824,7 +117858,7 @@
117824
117858
  */
117825
117859
  const modeling = injector.get('modeling');
117826
117860
  if (formDefinition) {
117827
- const businessObject = getBusinessObject$3(element),
117861
+ const businessObject = getBusinessObject$2(element),
117828
117862
  extensionElements = businessObject.get('extensionElements');
117829
117863
  modeling.updateModdleProperties(element, extensionElements, {
117830
117864
  values: without(extensionElements.get('values'), formDefinition)
@@ -118017,7 +118051,7 @@
118017
118051
 
118018
118052
  // remove zeebe:TaskHeaders if there are no headers anymore
118019
118053
  if (!newTaskHeaders.length) {
118020
- const businessObject = getBusinessObject$3(element),
118054
+ const businessObject = getBusinessObject$2(element),
118021
118055
  extensionElements = businessObject.get('extensionElements');
118022
118056
  commands.push({
118023
118057
  cmd: 'element.updateModdleProperties',
@@ -118041,7 +118075,7 @@
118041
118075
  return function (event) {
118042
118076
  event.stopPropagation();
118043
118077
  let commands = [];
118044
- const businessObject = getBusinessObject$3(element);
118078
+ const businessObject = getBusinessObject$2(element);
118045
118079
  let extensionElements = businessObject.get('extensionElements');
118046
118080
 
118047
118081
  // (1) ensure extension elements
@@ -118107,7 +118141,7 @@
118107
118141
  return calledElements[0];
118108
118142
  }
118109
118143
  function getCalledElements$1(element) {
118110
- const bo = getBusinessObject$3(element);
118144
+ const bo = getBusinessObject$2(element);
118111
118145
  const extElements = getExtensionElementsList$2(bo, 'zeebe:CalledElement');
118112
118146
  return extElements;
118113
118147
  }
@@ -118138,7 +118172,7 @@
118138
118172
  };
118139
118173
  const setValue = value => {
118140
118174
  const commands = [];
118141
- const businessObject = getBusinessObject$3(element);
118175
+ const businessObject = getBusinessObject$2(element);
118142
118176
 
118143
118177
  // (1) ensure extension elements
118144
118178
  let extensionElements = businessObject.get('extensionElements');
@@ -118217,7 +118251,7 @@
118217
118251
  if (!is$6(element, 'bpmn:CallActivity')) {
118218
118252
  return undefined;
118219
118253
  }
118220
- const bo = getBusinessObject$3(element),
118254
+ const bo = getBusinessObject$2(element),
118221
118255
  calledElement = getCalledElement$1(bo);
118222
118256
  return calledElement && has$2(calledElement, 'propagateAllParentVariables') ? calledElement.get('propagateAllParentVariables') : /* default value */true;
118223
118257
  }
@@ -118320,7 +118354,7 @@
118320
118354
  * @return {ModdleElement} the ioMapping object
118321
118355
  */
118322
118356
  function getIoMapping$2(element) {
118323
- const bo = getBusinessObject$3(element);
118357
+ const bo = getBusinessObject$2(element);
118324
118358
  return (getElements$1(bo, 'zeebe:IoMapping') || [])[0];
118325
118359
  }
118326
118360
 
@@ -118427,7 +118461,7 @@
118427
118461
  }
118428
118462
  }
118429
118463
  });
118430
- const businessObject = getBusinessObject$3(element),
118464
+ const businessObject = getBusinessObject$2(element),
118431
118465
  extensionElements = businessObject.get('extensionElements'),
118432
118466
  values = without(extensionElements.get('values'), ioMapping);
118433
118467
 
@@ -118455,7 +118489,7 @@
118455
118489
  return function (event) {
118456
118490
  event.stopPropagation();
118457
118491
  const commands = [];
118458
- const businessObject = getBusinessObject$3(element);
118492
+ const businessObject = getBusinessObject$2(element);
118459
118493
  let extensionElements = businessObject.get('extensionElements');
118460
118494
 
118461
118495
  // (1) ensure extension elements
@@ -118835,7 +118869,7 @@
118835
118869
  // helper ///////////////////////
118836
118870
 
118837
118871
  function getLoopCharacteristics$1(element) {
118838
- const businessObject = getBusinessObject$3(element);
118872
+ const businessObject = getBusinessObject$2(element);
118839
118873
  return businessObject.get('loopCharacteristics');
118840
118874
  }
118841
118875
  function getZeebeLoopCharacteristics(loopCharacteristics) {
@@ -118942,7 +118976,7 @@
118942
118976
  };
118943
118977
  const setValue = value => {
118944
118978
  const commands = [];
118945
- const businessObject = getBusinessObject$3(element);
118979
+ const businessObject = getBusinessObject$2(element);
118946
118980
 
118947
118981
  // (1) ensure extension elements
118948
118982
  let extensionElements = businessObject.get('extensionElements');
@@ -119035,7 +119069,7 @@
119035
119069
  if (!is$6(element, 'bpmn:CallActivity')) {
119036
119070
  return undefined;
119037
119071
  }
119038
- const bo = getBusinessObject$3(element),
119072
+ const bo = getBusinessObject$2(element),
119039
119073
  calledElement = getCalledElement$1(bo);
119040
119074
  return calledElement && has$2(calledElement, 'propagateAllChildVariables') ? calledElement.get('propagateAllChildVariables') : determinePropAllChildVariablesDefault(element);
119041
119075
  }
@@ -119104,7 +119138,7 @@
119104
119138
 
119105
119139
  // remove ioMapping if there are no input/output parameters anymore
119106
119140
  if (!ioMapping.get('inputParameters').length && !outputParameters.length) {
119107
- const businessObject = getBusinessObject$3(element),
119141
+ const businessObject = getBusinessObject$2(element),
119108
119142
  extensionElements = businessObject.get('extensionElements'),
119109
119143
  values = without(extensionElements.get('values'), ioMapping);
119110
119144
  commands.push({
@@ -119129,7 +119163,7 @@
119129
119163
  return function (event) {
119130
119164
  event.stopPropagation();
119131
119165
  let commands = [];
119132
- const businessObject = getBusinessObject$3(element);
119166
+ const businessObject = getBusinessObject$2(element);
119133
119167
  let extensionElements = businessObject.get('extensionElements');
119134
119168
 
119135
119169
  // (1) ensure extension elements
@@ -119270,22 +119304,22 @@
119270
119304
  // helper ///////////////////////
119271
119305
 
119272
119306
  function getTaskDefinition$1(element) {
119273
- const businessObject = getBusinessObject$3(element);
119307
+ const businessObject = getBusinessObject$2(element);
119274
119308
  return getExtensionElementsList$2(businessObject, 'zeebe:TaskDefinition')[0];
119275
119309
  }
119276
119310
  function getScript$1(element) {
119277
- const businessObject = getBusinessObject$3(element);
119311
+ const businessObject = getBusinessObject$2(element);
119278
119312
  return getExtensionElementsList$2(businessObject, 'zeebe:Script')[0];
119279
119313
  }
119280
119314
  function getTaskHeaders$2(element) {
119281
- const businessObject = getBusinessObject$3(element);
119315
+ const businessObject = getBusinessObject$2(element);
119282
119316
  return getExtensionElementsList$2(businessObject, 'zeebe:TaskHeaders');
119283
119317
  }
119284
119318
  function isScriptImplementationEdited(element) {
119285
119319
  return getTaskDefinition$1(element) || getScript$1(element);
119286
119320
  }
119287
119321
  function resetElement(element, commandStack) {
119288
- const businessObject = getBusinessObject$3(element);
119322
+ const businessObject = getBusinessObject$2(element);
119289
119323
  const taskDefinition = getTaskDefinition$1(element);
119290
119324
  const taskHeaders = getTaskHeaders$2(element);
119291
119325
  const script = getScript$1(element);
@@ -119299,7 +119333,7 @@
119299
119333
  }
119300
119334
  }
119301
119335
  function updateExtensionElements(element, extensionElementToAdd, bpmnFactory, commandStack) {
119302
- const businessObject = getBusinessObject$3(element);
119336
+ const businessObject = getBusinessObject$2(element);
119303
119337
  const commands = [];
119304
119338
  let extensionElements = businessObject.get('extensionElements');
119305
119339
  let extensionElementValues;
@@ -119375,7 +119409,7 @@
119375
119409
  };
119376
119410
  const setValue = value => {
119377
119411
  const commands = [];
119378
- const businessObject = getBusinessObject$3(element);
119412
+ const businessObject = getBusinessObject$2(element);
119379
119413
  let extensionElements = businessObject.get('extensionElements');
119380
119414
 
119381
119415
  // (1) ensure extension elements
@@ -119450,7 +119484,7 @@
119450
119484
  };
119451
119485
  const setValue = value => {
119452
119486
  const commands = [];
119453
- const businessObject = getBusinessObject$3(element);
119487
+ const businessObject = getBusinessObject$2(element);
119454
119488
  let extensionElements = businessObject.get('extensionElements');
119455
119489
 
119456
119490
  // (1) ensure extension elements
@@ -119514,7 +119548,7 @@
119514
119548
  // helper ///////////////////////
119515
119549
 
119516
119550
  function getScript(element) {
119517
- const businessObject = getBusinessObject$3(element);
119551
+ const businessObject = getBusinessObject$2(element);
119518
119552
  return getExtensionElementsList$2(businessObject, 'zeebe:Script')[0];
119519
119553
  }
119520
119554
 
@@ -119597,7 +119631,7 @@
119597
119631
  };
119598
119632
  const setValue = value => {
119599
119633
  const commands = [];
119600
- const businessObject = getBusinessObject$3(element);
119634
+ const businessObject = getBusinessObject$2(element);
119601
119635
 
119602
119636
  // (1) ensure extension elements
119603
119637
  let extensionElements = businessObject.get('extensionElements');
@@ -119690,7 +119724,7 @@
119690
119724
  };
119691
119725
  const setValue = value => {
119692
119726
  const commands = [];
119693
- const businessObject = getBusinessObject$3(element);
119727
+ const businessObject = getBusinessObject$2(element);
119694
119728
  let extensionElements = businessObject.get('extensionElements');
119695
119729
 
119696
119730
  // (1) ensure extension elements
@@ -119765,7 +119799,7 @@
119765
119799
  };
119766
119800
  const setValue = value => {
119767
119801
  let commands = [];
119768
- const businessObject = getBusinessObject$3(element);
119802
+ const businessObject = getBusinessObject$2(element);
119769
119803
  let extensionElements = businessObject.get('extensionElements');
119770
119804
 
119771
119805
  // (1) ensure extension elements
@@ -119829,7 +119863,7 @@
119829
119863
  // helper ///////////////////////
119830
119864
 
119831
119865
  function getTaskDefinition$4(element) {
119832
- const businessObject = getBusinessObject$3(element);
119866
+ const businessObject = getBusinessObject$2(element);
119833
119867
  return getExtensionElementsList$2(businessObject, 'zeebe:TaskDefinition')[0];
119834
119868
  }
119835
119869
 
@@ -119867,7 +119901,7 @@
119867
119901
  };
119868
119902
  const setValue = value => {
119869
119903
  let commands = [];
119870
- const businessObject = getBusinessObject$3(element);
119904
+ const businessObject = getBusinessObject$2(element);
119871
119905
  let extensionElements = businessObject.get('extensionElements');
119872
119906
 
119873
119907
  // (1) ensure extension elements
@@ -119943,7 +119977,7 @@
119943
119977
  };
119944
119978
  const setValue = value => {
119945
119979
  let commands = [];
119946
- const businessObject = getBusinessObject$3(element);
119980
+ const businessObject = getBusinessObject$2(element);
119947
119981
  let extensionElements = businessObject.get('extensionElements');
119948
119982
 
119949
119983
  // (1) ensure extension elements
@@ -120006,7 +120040,7 @@
120006
120040
  // helper ///////////////////////
120007
120041
 
120008
120042
  function getTaskSchedule(element) {
120009
- const businessObject = getBusinessObject$3(element);
120043
+ const businessObject = getBusinessObject$2(element);
120010
120044
  return getExtensionElementsList$2(businessObject, 'zeebe:TaskSchedule')[0];
120011
120045
  }
120012
120046
 
@@ -120019,7 +120053,7 @@
120019
120053
  * @return {boolean}
120020
120054
  */
120021
120055
  function isTimerExpressionTypeSupported$1(type, element) {
120022
- const businessObject = getBusinessObject$3(element);
120056
+ const businessObject = getBusinessObject$2(element);
120023
120057
  switch (type) {
120024
120058
  case 'timeDate':
120025
120059
  return isAny$1(element, ['bpmn:BoundaryEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:StartEvent']);
@@ -120060,7 +120094,7 @@
120060
120094
  injector
120061
120095
  } = props;
120062
120096
  const translate = injector.get('translate');
120063
- const businessObject = getBusinessObject$3(element),
120097
+ const businessObject = getBusinessObject$2(element),
120064
120098
  timerEventDefinition = getTimerEventDefinition$1(businessObject),
120065
120099
  timerEventDefinitionType = getTimerDefinitionType(timerEventDefinition);
120066
120100
 
@@ -120124,7 +120158,7 @@
120124
120158
  const commandStack = useService('commandStack'),
120125
120159
  bpmnFactory = useService('bpmnFactory'),
120126
120160
  translate = useService('translate');
120127
- const businessObject = getBusinessObject$3(element),
120161
+ const businessObject = getBusinessObject$2(element),
120128
120162
  timerEventDefinition = getTimerEventDefinition$1(businessObject),
120129
120163
  timerEventDefinitionType = getTimerDefinitionType(timerEventDefinition);
120130
120164
  const getValue = () => {
@@ -120193,7 +120227,7 @@
120193
120227
  translate = useService('translate'),
120194
120228
  debounce = useService('debounceInput'),
120195
120229
  bpmnFactory = useService('bpmnFactory');
120196
- const businessObject = getBusinessObject$3(element),
120230
+ const businessObject = getBusinessObject$2(element),
120197
120231
  timerEventDefinition = getTimerEventDefinition$1(businessObject),
120198
120232
  timerEventFormalExpression = timerEventDefinition.get(timerEventDefinitionType);
120199
120233
  const getValue = () => {
@@ -120559,7 +120593,7 @@
120559
120593
  // helper //////////////////
120560
120594
 
120561
120595
  function getRelevantBusinessObject(element) {
120562
- let businessObject = getBusinessObject$3(element);
120596
+ let businessObject = getBusinessObject$2(element);
120563
120597
  if (is$6(element, 'bpmn:Participant')) {
120564
120598
  return businessObject.get('processRef');
120565
120599
  }
@@ -121180,7 +121214,7 @@
121180
121214
  * @returns {Array<ModdleElement>}
121181
121215
  */
121182
121216
  function getExtensionElementsList$1(element, type = undefined) {
121183
- const businessObject = getBusinessObject$3(element),
121217
+ const businessObject = getBusinessObject$2(element),
121184
121218
  extensionElements = businessObject.get('extensionElements');
121185
121219
 
121186
121220
  if (!extensionElements) {
@@ -121313,19 +121347,19 @@
121313
121347
  // helpers //////////
121314
121348
 
121315
121349
  function getCalledDecision(element) {
121316
- const businessObject = getBusinessObject$3(element);
121350
+ const businessObject = getBusinessObject$2(element);
121317
121351
 
121318
121352
  return getExtensionElementsList$1(businessObject, 'zeebe:CalledDecision')[ 0 ];
121319
121353
  }
121320
121354
 
121321
121355
  function getTaskDefinition(element) {
121322
- const businessObject = getBusinessObject$3(element);
121356
+ const businessObject = getBusinessObject$2(element);
121323
121357
 
121324
121358
  return getExtensionElementsList$1(businessObject, 'zeebe:TaskDefinition')[ 0 ];
121325
121359
  }
121326
121360
 
121327
121361
  function getTaskHeaders(element) {
121328
- const businessObject = getBusinessObject$3(element);
121362
+ const businessObject = getBusinessObject$2(element);
121329
121363
 
121330
121364
  return getExtensionElementsList$1(businessObject, 'zeebe:TaskHeaders')[ 0 ];
121331
121365
  }
@@ -121354,7 +121388,7 @@
121354
121388
  return;
121355
121389
  }
121356
121390
 
121357
- const businessObject = getBusinessObject$3(newShape),
121391
+ const businessObject = getBusinessObject$2(newShape),
121358
121392
  extensionElements = businessObject.get('extensionElements'),
121359
121393
  values = without(extensionElements.get('values'), ioMapping);
121360
121394
 
@@ -121371,7 +121405,7 @@
121371
121405
  // helpers //////////
121372
121406
 
121373
121407
  function getErrorEventDefinition(element) {
121374
- const businessObject = getBusinessObject$3(element);
121408
+ const businessObject = getBusinessObject$2(element);
121375
121409
 
121376
121410
  const eventDefinitions = businessObject.get('eventDefinitions') || [];
121377
121411
 
@@ -121381,7 +121415,7 @@
121381
121415
  }
121382
121416
 
121383
121417
  function getIoMapping$1(element) {
121384
- const bo = getBusinessObject$3(element);
121418
+ const bo = getBusinessObject$2(element);
121385
121419
 
121386
121420
  const extensionElements = bo.get('extensionElements');
121387
121421
 
@@ -121456,7 +121490,7 @@
121456
121490
  // helpers //////////
121457
121491
 
121458
121492
  function getMessageEventDefinition$1(event) {
121459
- const businessObject = getBusinessObject$3(event);
121493
+ const businessObject = getBusinessObject$2(event);
121460
121494
 
121461
121495
  return businessObject.get('eventDefinitions').find(eventDefinition => {
121462
121496
  return is$6(eventDefinition, 'bpmn:MessageEventDefinition');
@@ -121476,7 +121510,7 @@
121476
121510
  }
121477
121511
 
121478
121512
  function getTimerEventDefinition(element) {
121479
- const businessObject = getBusinessObject$3(element);
121513
+ const businessObject = getBusinessObject$2(element);
121480
121514
 
121481
121515
  return businessObject.get('eventDefinitions').find(eventDefinition => {
121482
121516
  return is$6(eventDefinition, 'bpmn:TimerEventDefinition');
@@ -121492,7 +121526,7 @@
121492
121526
  * @return {boolean}
121493
121527
  */
121494
121528
  function isTimerExpressionTypeSupported(type, element) {
121495
- const businessObject = getBusinessObject$3(element);
121529
+ const businessObject = getBusinessObject$2(element);
121496
121530
 
121497
121531
  switch (type) {
121498
121532
  case 'timeDate':
@@ -121758,7 +121792,7 @@
121758
121792
  * @return {ModdleElement}
121759
121793
  */
121760
121794
  function getIoMapping(element) {
121761
- const businessObject = getBusinessObject$3(element);
121795
+ const businessObject = getBusinessObject$2(element);
121762
121796
 
121763
121797
  const extensionElements = businessObject.get('extensionElements');
121764
121798
 
@@ -121838,7 +121872,7 @@
121838
121872
  }
121839
121873
 
121840
121874
  function getCalledElements(element) {
121841
- const businessObject = getBusinessObject$3(element);
121875
+ const businessObject = getBusinessObject$2(element);
121842
121876
 
121843
121877
  return getExtensionElementsList$1(businessObject, 'zeebe:CalledElement');
121844
121878
  }
@@ -121856,7 +121890,7 @@
121856
121890
  return false;
121857
121891
  }
121858
121892
 
121859
- const businessObject = getBusinessObject$3(element),
121893
+ const businessObject = getBusinessObject$2(element),
121860
121894
  calledElement = getCalledElement(businessObject);
121861
121895
 
121862
121896
  if (calledElement && has$2(calledElement, 'propagateAllChildVariables')) {
@@ -121887,7 +121921,7 @@
121887
121921
  return;
121888
121922
  }
121889
121923
 
121890
- const businessObject = getBusinessObject$3(shape);
121924
+ const businessObject = getBusinessObject$2(shape);
121891
121925
 
121892
121926
  let calledElement = getCalledElement(businessObject);
121893
121927
 
@@ -121995,7 +122029,7 @@
121995
122029
  USER_TASK_FORM_ID_PREFIX = 'UserTaskForm_';
121996
122030
 
121997
122031
  function getFormDefinition(element) {
121998
- const businessObject = getBusinessObject$3(element);
122032
+ const businessObject = getBusinessObject$2(element);
121999
122033
 
122000
122034
  const formDefinitions = getExtensionElementsList$1(businessObject, 'zeebe:FormDefinition');
122001
122035
 
@@ -122040,7 +122074,7 @@
122040
122074
  }
122041
122075
 
122042
122076
  function getRootElement$1(element) {
122043
- const businessObject = getBusinessObject$3(element);
122077
+ const businessObject = getBusinessObject$2(element);
122044
122078
 
122045
122079
  let parent = businessObject;
122046
122080
 
@@ -122111,7 +122145,7 @@
122111
122145
 
122112
122146
  const rootElement = getRootElement$1(shape);
122113
122147
 
122114
- const businessObject = getBusinessObject$3(shape);
122148
+ const businessObject = getBusinessObject$2(shape);
122115
122149
 
122116
122150
  const extensionElements = businessObject.get('extensionElements');
122117
122151
 
@@ -122272,7 +122306,7 @@
122272
122306
  && isUndefined$5(assignmentDefinition.get('zeebe:candidateGroups'))
122273
122307
  && isUndefined$5(assignmentDefinition.get('zeebe:candidateUsers'))
122274
122308
  ) {
122275
- const businessObject = getBusinessObject$3(element);
122309
+ const businessObject = getBusinessObject$2(element);
122276
122310
 
122277
122311
  removeExtensionElements(element, businessObject, assignmentDefinition, commandStack);
122278
122312
  }
@@ -122314,7 +122348,7 @@
122314
122348
  && isUndefined$5(taskSchedule.get('zeebe:dueDate'))
122315
122349
  && isUndefined$5(taskSchedule.get('zeebe:followUpDate'))
122316
122350
  ) {
122317
- const businessObject = getBusinessObject$3(element);
122351
+ const businessObject = getBusinessObject$2(element);
122318
122352
 
122319
122353
  removeExtensionElements(element, businessObject, taskSchedule, commandStack);
122320
122354
  }
@@ -122377,7 +122411,7 @@
122377
122411
  });
122378
122412
 
122379
122413
  if (!inputParameters || !inputParameters.length) {
122380
- removeExtensionElements(element, getBusinessObject$3(element), ioMapping, commandStack);
122414
+ removeExtensionElements(element, getBusinessObject$2(element), ioMapping, commandStack);
122381
122415
  }
122382
122416
  }, true);
122383
122417
 
@@ -122400,7 +122434,7 @@
122400
122434
  return;
122401
122435
  }
122402
122436
 
122403
- const businessObject = getBusinessObject$3(element),
122437
+ const businessObject = getBusinessObject$2(element),
122404
122438
  calledElement = getCalledElement(businessObject);
122405
122439
 
122406
122440
  // (1) zeebe:IoMapping extension element with zeebe:Output added
@@ -122540,7 +122574,7 @@
122540
122574
  }
122541
122575
 
122542
122576
  function isForCompensation(e) {
122543
- return getBusinessObject$3(e).isForCompensation;
122577
+ return getBusinessObject$2(e).isForCompensation;
122544
122578
  }
122545
122579
 
122546
122580
  function isReceiveTaskAfterEventBasedGateway(element) {
@@ -122694,7 +122728,7 @@
122694
122728
 
122695
122729
  var semverCompare$1 = /*@__PURE__*/getDefaultExportFromCjs(semverCompare);
122696
122730
 
122697
- var version$1 = "0.15.0";
122731
+ var version$1 = "0.16.0";
122698
122732
 
122699
122733
  var standaloneValidator = {exports: {}};
122700
122734
 
@@ -122752,7 +122786,7 @@
122752
122786
 
122753
122787
  } (equal));
122754
122788
 
122755
- standaloneValidator.exports = validate14$1;standaloneValidator.exports.default = validate14$1;const schema17$1 = {"type":"object","allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"name":{"$id":"#/name","type":"string","description":"The name of the element template."},"id":{"$id":"#/id","type":"string","description":"The identifier of the element template."},"description":{"$id":"#/description","type":"string","description":"The description of the element template."},"version":{"$id":"#/version","type":"integer","description":"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"deprecated":{"$id":"#/deprecated","type":["boolean","object"],"description":"Indicates whether the element template is deprecated.","properties":{"message":{"$id":"#/deprecated/message","type":"string","description":"Optional message to describe migration path."},"documentationRef":{"$id":"#/deprecated/documentationRef","type":"string","pattern":"^(https|http)://.*","description":"Optional link to migration documentation."}}},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}],"errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""}}},"elementType":{"$id":"#/elementType","type":"object","description":"The BPMN type the element will be transformed into.","default":{},"required":["value"],"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}],"errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""}}},"errorMessage":{"required":{"value":"missing elementType value"}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","description":"Select whether non-template entries are visible in the properties panel."},"groups":{"$id":"#/groups","type":"array","description":"Custom fields can be ordered together via groups.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"The id of the custom group"},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the custom group"}},"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}}}},"documentationRef":{"$id":"#/documentationRef","type":"string","pattern":"^(https|http)://.*","errorMessage":{"pattern":"Malformed documentation URL, must match \"^(https|http)://.*\""}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"},"scopes":{"$id":"#/scopes","type":"array","description":"Special scoped bindings that allow you to configure nested elements.","allOf":[{"examples":[[{"type":"bpmn:Error","id":"Error_1","properties":[{"value":"error-code","binding":{"type":"property","name":"errorCode"}},{"value":"error-message","binding":{"type":"property","name":"camunda:errorMessage"}},{"value":"error-name","binding":{"type":"property","name":"name"}}]}]]}],"items":{"$id":"#/scopes/item","type":"object","default":{},"properties":{"type":{"$id":"#scopes/item/type","type":"string","description":"The type of a scope.","enum":["camunda:Connector","bpmn:Error"],"errorMessage":"invalid scope type ${0}; must be any of { camunda:Connector, bpmn:Error }"},"properties":{"$id":"#/scopes/properties","description":"List of properties of a scope.","default":[],"allOf":[{"$ref":"#/definitions/properties/allOf/0"},{"$ref":"#/definitions/properties/allOf/1"}]}},"required":["type","properties"],"allOf":[{"if":{"properties":{"type":{"enum":["bpmn:Error"]}},"required":["type"]},"then":{"required":["id"],"errorMessage":"invalid scope ${0/type}, missing id"}}],"errorMessage":{"required":{"type":"invalid scope, missing type","properties":"invalid scope ${0/type}, missing properties=[]"}}}}}};const schema27 = {"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"camunda:executionListener"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["Hidden"],"errorMessage":"invalid property type ${1/type} for binding type \"camunda:executionListener\"; must be \"Hidden\""},"binding":{"properties":{"implementationType":{"enum":["class","delegateExpression","expression","script"]}},"oneOf":[{"not":{"properties":{"implementationType":{"const":"script"}}}},{"required":["scriptFormat"]},{"allOf":[{"not":{"required":["implementationType"]}},{"not":{"required":["scriptFormat"]}}]}]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:inputParameter","camunda:field"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Camunda extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","camunda:property","camunda:inputParameter","camunda:field"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"camunda:outputParameter"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"camunda:in"}},"required":["type"]},"then":{"anyOf":[{"required":["variables"]},{"required":["target"]}],"errorMessage":"property.binding ${0/type} requires variables, target, or both"}},{"if":{"properties":{"type":{"const":"camunda:out"}},"required":["type"]},"then":{"oneOf":[{"required":["variables"],"not":{"anyOf":[{"required":["source"]},{"required":["sourceExpression"]}]}},{"required":["source"],"not":{"anyOf":[{"required":["variables"]},{"required":["sourceExpression"]}]}},{"required":["sourceExpression"],"not":{"anyOf":[{"required":["variables"]},{"required":["source"]}]}},{"required":["variables","sourceExpression"],"not":{"required":["source"]}},{"required":["variables","source"],"not":{"required":["sourceExpression"]}}],"errorMessage":"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{"if":{"properties":{"type":{"const":"camunda:errorEventDefinition"}},"required":["type"]},"then":{"oneOf":[{"required":["errorRef"]}],"errorMessage":"property.binding ${0/type} requires errorRef"}},{"examples":[{"type":"property","name":"name"},{"type":"camunda:property","name":"property"},{"type":"camunda:inputParameter","name":"input"},{"type":"camunda:outputParameter","source":"output"},{"type":"camunda:in","target":"target"},{"type":"camunda:in:businessKey"},{"type":"camunda:out","source":"output"},{"type":"camunda:executionListener","event":"start"},{"type":"camunda:field","name":"field"},{"type":"camunda:errorEventDefinition","errorRef":"error"},{"type":"camunda:errorEventDefinition","errorRef":"error"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","enum":["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],"description":"The type of a property binding.","errorMessage":"invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"event":{"$id":"#/properties/property/binding/event","type":"string","description":"The event type of a property binding (camunda:executionListener)."},"scriptFormat":{"$id":"#/properties/property/binding/scriptFormat","type":"string","description":"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (camunda:outputParameter, camunda:out)."},"target":{"$id":"#/properties/property/binding/target","type":"string","description":"The target value of a property binding (camunda:in)."},"expression":{"$id":"#/properties/property/binding/expression","type":"boolean","description":"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},"variables":{"$id":"#/properties/property/binding/variables","type":"string","enum":["all","local"],"description":"The variable mapping of a property binding (camunda:in)."},"sourceExpression":{"$id":"#/properties/property/binding/sourceExpression","type":"string","description":"The string containing the expression for the source attribute (camunda:out)."}}}},"errorMessage":{"required":"missing binding for property \"${0#}\""}}};const pattern0$1 = new RegExp("^(https|http)://.*", "u");const pattern1$1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const obj0$1 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const schema18$1 = {"allOf":[{"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property."},"value":{"$id":"#/properties/property/value","type":["string","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."},"condition":{"$id":"#/condition","type":"object","description":"Condition(s) to activate the binding.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}}},"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},"minItems":1}},"required":["allMatch"]}]}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"camunda:executionListener"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["Hidden"],"errorMessage":"invalid property type ${1/type} for binding type \"camunda:executionListener\"; must be \"Hidden\""},"binding":{"properties":{"implementationType":{"enum":["class","delegateExpression","expression","script"]}},"oneOf":[{"not":{"properties":{"implementationType":{"const":"script"}}}},{"required":["scriptFormat"]},{"allOf":[{"not":{"required":["implementationType"]}},{"not":{"required":["scriptFormat"]}}]}]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:inputParameter","camunda:field"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Camunda extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","camunda:property","camunda:inputParameter","camunda:field"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"camunda:outputParameter"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"camunda:in"}},"required":["type"]},"then":{"anyOf":[{"required":["variables"]},{"required":["target"]}],"errorMessage":"property.binding ${0/type} requires variables, target, or both"}},{"if":{"properties":{"type":{"const":"camunda:out"}},"required":["type"]},"then":{"oneOf":[{"required":["variables"],"not":{"anyOf":[{"required":["source"]},{"required":["sourceExpression"]}]}},{"required":["source"],"not":{"anyOf":[{"required":["variables"]},{"required":["sourceExpression"]}]}},{"required":["sourceExpression"],"not":{"anyOf":[{"required":["variables"]},{"required":["source"]}]}},{"required":["variables","sourceExpression"],"not":{"required":["source"]}},{"required":["variables","source"],"not":{"required":["sourceExpression"]}}],"errorMessage":"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{"if":{"properties":{"type":{"const":"camunda:errorEventDefinition"}},"required":["type"]},"then":{"oneOf":[{"required":["errorRef"]}],"errorMessage":"property.binding ${0/type} requires errorRef"}},{"examples":[{"type":"property","name":"name"},{"type":"camunda:property","name":"property"},{"type":"camunda:inputParameter","name":"input"},{"type":"camunda:outputParameter","source":"output"},{"type":"camunda:in","target":"target"},{"type":"camunda:in:businessKey"},{"type":"camunda:out","source":"output"},{"type":"camunda:executionListener","event":"start"},{"type":"camunda:field","name":"field"},{"type":"camunda:errorEventDefinition","errorRef":"error"},{"type":"camunda:errorEventDefinition","errorRef":"error"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","enum":["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],"description":"The type of a property binding.","errorMessage":"invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"event":{"$id":"#/properties/property/binding/event","type":"string","description":"The event type of a property binding (camunda:executionListener)."},"scriptFormat":{"$id":"#/properties/property/binding/scriptFormat","type":"string","description":"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (camunda:outputParameter, camunda:out)."},"target":{"$id":"#/properties/property/binding/target","type":"string","description":"The target value of a property binding (camunda:in)."},"expression":{"$id":"#/properties/property/binding/expression","type":"boolean","description":"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},"variables":{"$id":"#/properties/property/binding/variables","type":"string","enum":["all","local"],"description":"The variable mapping of a property binding (camunda:in)."},"sourceExpression":{"$id":"#/properties/property/binding/sourceExpression","type":"string","description":"The string containing the expression for the source attribute (camunda:out)."}}}},"errorMessage":{"required":"missing binding for property \"${0#}\""}}}]};const schema20$1 = {"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}};const func0$1 = equal.exports;function validate17$1(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {keyword:"type",dataPath:dataPath+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {keyword:"type",dataPath:dataPath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {keyword:"type",dataPath:dataPath+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}}if(!valid2){const err6 = {keyword:"oneOf",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.property === undefined){const err7 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data.type !== undefined){if(!func0$1(data.type, "simple")){const err8 = {keyword:"const",dataPath:dataPath+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err9 = {keyword:"type",dataPath:dataPath+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}else {const err10 = {keyword:"type",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err11 of vErrors){if((((((err11.keyword !== "errorMessage") && (!err11.emUsed)) && (err11.dataPath === dataPath)) && (err11.keyword in emErrors0)) && (err11.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err11.schemaPath.slice(81)))){emPropParams0 = obj0$1[err11.keyword];emParamsErrors0 = emErrors0[err11.keyword][err11.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err11);err11.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err12 = {keyword:"errorMessage",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20$1.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}const emErrs0 = [];for(const err13 of vErrors){if(!err13.emUsed){emErrs0.push(err13);}}vErrors = emErrs0;errors = emErrs0.length;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs17 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err14 = {keyword:"required",dataPath,schemaPath:"#/oneOf/1/required",params:{missingProperty: "allMatch"},message:"should have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data.allMatch !== undefined){let data5 = data.allMatch;if(Array.isArray(data5)){if(data5.length < 1){const err15 = {keyword:"minItems",dataPath:dataPath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",params:{limit: 1},message:"should NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}const len1 = data5.length;for(let i1=0; i1<len1; i1++){let data6 = data5[i1];const _errs23 = errors;let valid12 = false;let passing2 = null;const _errs24 = errors;if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.equals === undefined){const err16 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data6.equals !== undefined){let data7 = data6.equals;if(((typeof data7 !== "string") && (!(typeof data7 == "number"))) && (typeof data7 !== "boolean")){const err17 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}var _valid2 = _errs24 === errors;if(_valid2){valid12 = true;passing2 = 0;}const _errs27 = errors;if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.oneOf === undefined){const err18 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data6.oneOf !== undefined){let data8 = data6.oneOf;if(Array.isArray(data8)){const len2 = data8.length;for(let i2=0; i2<len2; i2++){let data9 = data8[i2];if((typeof data9 !== "string") && (!(typeof data9 == "number"))){const err19 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}else {const err20 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}var _valid2 = _errs27 === errors;if(_valid2 && valid12){valid12 = false;passing2 = [passing2, 1];}else {if(_valid2){valid12 = true;passing2 = 1;}}if(!valid12){const err21 = {keyword:"oneOf",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}else {errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}}if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.property === undefined){const err22 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data6.type !== undefined){if(!func0$1(data6.type, "simple")){const err23 = {keyword:"const",dataPath:dataPath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data6.property !== undefined){if(typeof data6.property !== "string"){const err24 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}else {const err25 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.dataPath === dataPath+"/allMatch/" + i1)) && (err26.keyword in emErrors1)) && (err26.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(81)))){emPropParams1 = obj0$1[err26.keyword];emParamsErrors1 = emErrors1[err26.keyword][err26.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err26);err26.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err27 = {keyword:"errorMessage",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20$1.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}const emErrs1 = [];for(const err28 of vErrors){if(!err28.emUsed){emErrs1.push(err28);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err29 = {keyword:"type",dataPath:dataPath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}var _valid0 = _errs17 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err30 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate17$1.errors = vErrors;return errors === 0;}function validate16$1(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs5 = errors;let valid5 = true;const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if(!func0$1(data0.type, "Dropdown")){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs6 === errors;errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}if(_valid0){const _errs8 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {keyword:"required",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.dataPath === dataPath+"/" + i0) || ((err3.dataPath.indexOf(dataPath+"/" + i0) === 0) && (err3.dataPath[dataPath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/allOf/0/items/allOf/0/then") === 0)) && (err3.schemaPath["#/allOf/0/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs8 === errors;valid5 = _valid0;}if(!valid5){const err6 = {keyword:"if",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err7 = {keyword:"type",dataPath:dataPath+"/" + i0+"/id",schemaPath:"#/allOf/0/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data0.value !== undefined){let data3 = data0.value;if((typeof data3 !== "string") && (typeof data3 !== "boolean")){const err8 = {keyword:"type",dataPath:dataPath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",params:{type: schema18$1.allOf[0].items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err9 = {keyword:"type",dataPath:dataPath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err10 = {keyword:"type",dataPath:dataPath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err11 = {keyword:"type",dataPath:dataPath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err12 = {keyword:"type",dataPath:dataPath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data0.choices !== undefined){let data8 = data0.choices;if(Array.isArray(data8)){const len1 = data8.length;for(let i1=0; i1<len1; i1++){let data9 = data8[i1];if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.value === undefined){const err13 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data9.name === undefined){const err14 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data9.name !== undefined){if(typeof data9.name !== "string"){const err15 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data9.value !== undefined){if(typeof data9.value !== "string"){const err16 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data9.condition !== undefined){if(!(validate17$1(data9.condition, {dataPath:dataPath+"/" + i0+"/choices/" + i1+"/condition",parentData:data9,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17$1.errors : vErrors.concat(validate17$1.errors);errors = vErrors.length;}}}else {const err17 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(errors > 0){const emErrors0 = {"required":[]};const templates0 = {};for(const err18 of vErrors){if((((((err18.keyword !== "errorMessage") && (!err18.emUsed)) && (err18.dataPath === dataPath+"/" + i0+"/choices/" + i1)) && (err18.keyword in emErrors0)) && (err18.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err18.schemaPath.slice(40)))){emErrors0[err18.keyword].push(err18);err18.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err19 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema18$1.allOf[0].items.properties.choices.items.errorMessage[key0]};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}const emErrs2 = [];for(const err20 of vErrors){if(!err20.emUsed){emErrs2.push(err20);}}vErrors = emErrs2;errors = emErrs2.length;}}}else {const err21 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data0.constraints !== undefined){let data13 = data0.constraints;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.notEmpty !== undefined){if(typeof data13.notEmpty !== "boolean"){const err22 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data13.minLength !== undefined){if(!(typeof data13.minLength == "number")){const err23 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data13.maxLength !== undefined){if(!(typeof data13.maxLength == "number")){const err24 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data13.pattern !== undefined){let data17 = data13.pattern;const _errs39 = errors;let valid13 = false;let passing0 = null;const _errs40 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){if(typeof data17.value !== "string"){const err25 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data17.message !== undefined){if(typeof data17.message !== "string"){const err26 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid1 = _errs40 === errors;if(_valid1){valid13 = true;passing0 = 0;}const _errs46 = errors;if(typeof data17 !== "string"){const err28 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid1 = _errs46 === errors;if(_valid1 && valid13){valid13 = false;passing0 = [passing0, 1];}else {if(_valid1){valid13 = true;passing0 = 1;}}if(!valid13){const err29 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs39;if(vErrors !== null){if(_errs39){vErrors.length = _errs39;}else {vErrors = null;}}}}}else {const err30 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err31 = {keyword:"type",dataPath:dataPath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data0.condition !== undefined){let data21 = data0.condition;if(!(data21 && typeof data21 == "object" && !Array.isArray(data21))){const err32 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}const _errs52 = errors;let valid15 = false;let passing1 = null;const _errs53 = errors;const _errs56 = errors;let valid17 = false;let passing2 = null;const _errs57 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.equals === undefined){const err33 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data21.equals !== undefined){let data22 = data21.equals;if(((typeof data22 !== "string") && (!(typeof data22 == "number"))) && (typeof data22 !== "boolean")){const err34 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}var _valid3 = _errs57 === errors;if(_valid3){valid17 = true;passing2 = 0;}const _errs60 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.oneOf === undefined){const err35 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data21.oneOf !== undefined){let data23 = data21.oneOf;if(Array.isArray(data23)){const len2 = data23.length;for(let i2=0; i2<len2; i2++){let data24 = data23[i2];if((typeof data24 !== "string") && (!(typeof data24 == "number"))){const err36 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}var _valid3 = _errs60 === errors;if(_valid3 && valid17){valid17 = false;passing2 = [passing2, 1];}else {if(_valid3){valid17 = true;passing2 = 1;}}if(!valid17){const err38 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}}if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.property === undefined){const err39 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if(data21.type !== undefined){if(!func0$1(data21.type, "simple")){const err40 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data21.property !== undefined){if(typeof data21.property !== "string"){const err41 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}else {const err42 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err43 of vErrors){if((((((err43.keyword !== "errorMessage") && (!err43.emUsed)) && (err43.dataPath === dataPath+"/" + i0+"/condition")) && (err43.keyword in emErrors1)) && (err43.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err43.schemaPath.slice(81)))){emPropParams0 = obj0$1[err43.keyword];emParamsErrors0 = emErrors1[err43.keyword][err43.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err43);err43.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp0 in emErrors1[key1]){emParamsErrors0 = emErrors1[key1][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates1[key1] && templates1[key1][keyProp0];const err44 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20$1.errorMessage[key1][keyProp0]};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}const emErrs3 = [];for(const err45 of vErrors){if(!err45.emUsed){emErrs3.push(err45);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid2 = _errs53 === errors;if(_valid2){valid15 = true;passing1 = 0;}const _errs68 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.allMatch === undefined){const err46 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/required",params:{missingProperty: "allMatch"},message:"should have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data21.allMatch !== undefined){let data27 = data21.allMatch;if(Array.isArray(data27)){if(data27.length < 1){const err47 = {keyword:"minItems",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/minItems",params:{limit: 1},message:"should NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}const len3 = data27.length;for(let i3=0; i3<len3; i3++){let data28 = data27[i3];const _errs74 = errors;let valid27 = false;let passing3 = null;const _errs75 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.equals === undefined){const err48 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if(data28.equals !== undefined){let data29 = data28.equals;if(((typeof data29 !== "string") && (!(typeof data29 == "number"))) && (typeof data29 !== "boolean")){const err49 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}var _valid4 = _errs75 === errors;if(_valid4){valid27 = true;passing3 = 0;}const _errs78 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.oneOf === undefined){const err50 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(data28.oneOf !== undefined){let data30 = data28.oneOf;if(Array.isArray(data30)){const len4 = data30.length;for(let i4=0; i4<len4; i4++){let data31 = data30[i4];if((typeof data31 !== "string") && (!(typeof data31 == "number"))){const err51 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf/" + i4,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}else {const err52 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}var _valid4 = _errs78 === errors;if(_valid4 && valid27){valid27 = false;passing3 = [passing3, 1];}else {if(_valid4){valid27 = true;passing3 = 1;}}if(!valid27){const err53 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing3},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {errors = _errs74;if(vErrors !== null){if(_errs74){vErrors.length = _errs74;}else {vErrors = null;}}}if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.property === undefined){const err54 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(data28.type !== undefined){if(!func0$1(data28.type, "simple")){const err55 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data28.property !== undefined){if(typeof data28.property !== "string"){const err56 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}else {const err57 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(errors > 0){const emErrors2 = {"required":{"property":[]}};const templates2 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err58 of vErrors){if((((((err58.keyword !== "errorMessage") && (!err58.emUsed)) && (err58.dataPath === dataPath+"/" + i0+"/condition/allMatch/" + i3)) && (err58.keyword in emErrors2)) && (err58.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err58.schemaPath.slice(81)))){emPropParams1 = obj0$1[err58.keyword];emParamsErrors1 = emErrors2[err58.keyword][err58.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err58);err58.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp1 in emErrors2[key2]){emParamsErrors1 = emErrors2[key2][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates2[key2] && templates2[key2][keyProp1];const err59 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20$1.errorMessage[key2][keyProp1]};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}}const emErrs4 = [];for(const err60 of vErrors){if(!err60.emUsed){emErrs4.push(err60);}}vErrors = emErrs4;errors = emErrs4.length;}}}else {const err61 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}}var _valid2 = _errs68 === errors;if(_valid2 && valid15){valid15 = false;passing1 = [passing1, 1];}else {if(_valid2){valid15 = true;passing1 = 1;}}if(!valid15){const err62 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}}}}else {const err63 = {keyword:"type",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}else {const err64 = {keyword:"type",dataPath,schemaPath:"#/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}if(Array.isArray(data)){const len5 = data.length;for(let i5=0; i5<len5; i5++){let data34 = data[i5];const _errs91 = errors;let valid37 = true;const _errs92 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.binding === undefined) && ("binding")){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}else {if(data34.binding !== undefined){let data35 = data34.binding;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if((data35.type === undefined) && ("type")){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {if(data35.type !== undefined){if(!func0$1(data35.type, "property")){const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}}}}}var _valid5 = _errs92 === errors;errors = _errs91;if(vErrors !== null){if(_errs91){vErrors.length = _errs91;}else {vErrors = null;}}if(_valid5){const _errs95 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.type !== undefined){let data37 = data34.type;if(!(((((data37 === "String") || (data37 === "Text")) || (data37 === "Hidden")) || (data37 === "Dropdown")) || (data37 === "Boolean"))){const err68 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(errors > 0){const emErrs5 = [];for(const err69 of vErrors){if(((((err69.keyword !== "errorMessage") && (!err69.emUsed)) && ((err69.dataPath === dataPath+"/" + i5+"/type") || ((err69.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err69.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err69.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err69.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs5.push(err69);err69.emUsed = true;}}if(emErrs5.length){const err70 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs5},message:"invalid property type " + JSON.stringify(data37) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}const emErrs6 = [];for(const err71 of vErrors){if(!err71.emUsed){emErrs6.push(err71);}}vErrors = emErrs6;errors = emErrs6.length;}}}var _valid5 = _errs95 === errors;valid37 = _valid5;}if(!valid37){const err72 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}const _errs98 = errors;let valid41 = true;const _errs99 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.binding === undefined) && ("binding")){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {if(data34.binding !== undefined){let data38 = data34.binding;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if((data38.type === undefined) && ("type")){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}else {if(data38.type !== undefined){if(!func0$1(data38.type, "camunda:executionListener")){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}}}}}var _valid6 = _errs99 === errors;errors = _errs98;if(vErrors !== null){if(_errs98){vErrors.length = _errs98;}else {vErrors = null;}}if(_valid6){const _errs102 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.type !== undefined){if(!(data34.type === "Hidden")){const err76 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(errors > 0){const emErrs7 = [];for(const err77 of vErrors){if(((((err77.keyword !== "errorMessage") && (!err77.emUsed)) && ((err77.dataPath === dataPath+"/" + i5+"/type") || ((err77.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err77.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err77.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err77.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs7.push(err77);err77.emUsed = true;}}if(emErrs7.length){const err78 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data34 && data34.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}const emErrs8 = [];for(const err79 of vErrors){if(!err79.emUsed){emErrs8.push(err79);}}vErrors = emErrs8;errors = emErrs8.length;}}if(data34.binding !== undefined){let data41 = data34.binding;const _errs105 = errors;let valid45 = false;let passing4 = null;const _errs106 = errors;const _errs107 = errors;const _errs108 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.implementationType !== undefined){if(!func0$1(data41.implementationType, "script")){const err80 = {};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}}var valid46 = _errs108 === errors;if(!valid46){errors = _errs107;if(vErrors !== null){if(_errs107){vErrors.length = _errs107;}else {vErrors = null;}}}else {const err81 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}var _valid7 = _errs106 === errors;if(_valid7){valid45 = true;passing4 = 0;}const _errs110 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.scriptFormat === undefined){const err82 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/1/required",params:{missingProperty: "scriptFormat"},message:"should have required property '"+"scriptFormat"+"'"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}var _valid7 = _errs110 === errors;if(_valid7 && valid45){valid45 = false;passing4 = [passing4, 1];}else {if(_valid7){valid45 = true;passing4 = 1;}const _errs111 = errors;const _errs113 = errors;const _errs114 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.implementationType === undefined) && ("implementationType")){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}var valid49 = _errs114 === errors;if(!valid49){errors = _errs113;if(vErrors !== null){if(_errs113){vErrors.length = _errs113;}else {vErrors = null;}}}else {const err84 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}const _errs116 = errors;const _errs117 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.scriptFormat === undefined) && ("scriptFormat")){const err85 = {};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}var valid50 = _errs117 === errors;if(!valid50){errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}}else {const err86 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/1/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var _valid7 = _errs111 === errors;if(_valid7 && valid45){valid45 = false;passing4 = [passing4, 2];}else {if(_valid7){valid45 = true;passing4 = 2;}}}if(!valid45){const err87 = {keyword:"oneOf",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf",params:{passingSchemas: passing4},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {errors = _errs105;if(vErrors !== null){if(_errs105){vErrors.length = _errs105;}else {vErrors = null;}}}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.implementationType !== undefined){let data43 = data41.implementationType;if(!((((data43 === "class") || (data43 === "delegateExpression")) || (data43 === "expression")) || (data43 === "script"))){const err88 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/implementationType",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/properties/implementationType/enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[1].then.properties.binding.properties.implementationType.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}}}}var _valid6 = _errs102 === errors;valid41 = _valid6;}if(!valid41){const err89 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}const _errs120 = errors;let valid52 = true;const _errs121 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.binding === undefined) && ("binding")){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}else {if(data34.binding !== undefined){let data44 = data34.binding;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if((data44.type === undefined) && ("type")){const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}else {if(data44.type !== undefined){let data45 = data44.type;if(!((((((data45 === "camunda:property") || (data45 === "camunda:outputParameter")) || (data45 === "camunda:in")) || (data45 === "camunda:in:businessKey")) || (data45 === "camunda:out")) || (data45 === "camunda:errorEventDefinition"))){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}}}}}}var _valid8 = _errs121 === errors;errors = _errs120;if(vErrors !== null){if(_errs120){vErrors.length = _errs120;}else {vErrors = null;}}if(_valid8){const _errs124 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.type !== undefined){let data46 = data34.type;if(!(((data46 === "String") || (data46 === "Hidden")) || (data46 === "Dropdown"))){const err93 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if(errors > 0){const emErrs9 = [];for(const err94 of vErrors){if(((((err94.keyword !== "errorMessage") && (!err94.emUsed)) && ((err94.dataPath === dataPath+"/" + i5+"/type") || ((err94.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err94.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err94.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err94.schemaPath["#/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs9.push(err94);err94.emUsed = true;}}if(emErrs9.length){const err95 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data46) + " for binding type " + JSON.stringify(data34 && data34.binding && data34.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}const emErrs10 = [];for(const err96 of vErrors){if(!err96.emUsed){emErrs10.push(err96);}}vErrors = emErrs10;errors = emErrs10.length;}}}var _valid8 = _errs124 === errors;valid52 = _valid8;}if(!valid52){const err97 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const _errs127 = errors;let valid56 = true;const _errs128 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.binding === undefined) && ("binding")){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}else {if(data34.binding !== undefined){let data47 = data34.binding;if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if((data47.type === undefined) && ("type")){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}else {if(data47.type !== undefined){let data48 = data47.type;if(!((data48 === "camunda:inputParameter") || (data48 === "camunda:field"))){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}}}}}}var _valid9 = _errs128 === errors;errors = _errs127;if(vErrors !== null){if(_errs127){vErrors.length = _errs127;}else {vErrors = null;}}if(_valid9){const _errs131 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.type !== undefined){let data49 = data34.type;if(!((((data49 === "String") || (data49 === "Text")) || (data49 === "Hidden")) || (data49 === "Dropdown"))){const err101 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/3/then/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if(errors > 0){const emErrs11 = [];for(const err102 of vErrors){if(((((err102.keyword !== "errorMessage") && (!err102.emUsed)) && ((err102.dataPath === dataPath+"/" + i5+"/type") || ((err102.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err102.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err102.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err102.schemaPath["#/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs11.push(err102);err102.emUsed = true;}}if(emErrs11.length){const err103 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors: emErrs11},message:"invalid property type " + JSON.stringify(data49) + " for binding type " + JSON.stringify(data34 && data34.binding && data34.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}const emErrs12 = [];for(const err104 of vErrors){if(!err104.emUsed){emErrs12.push(err104);}}vErrors = emErrs12;errors = emErrs12.length;}}}var _valid9 = _errs131 === errors;valid56 = _valid9;}if(!valid56){const err105 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.binding === undefined){const err106 = {keyword:"required",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if(data34.binding !== undefined){let data50 = data34.binding;const _errs136 = errors;let valid62 = true;const _errs137 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.type === undefined) && ("type")){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}else {if(data50.type !== undefined){let data51 = data50.type;if(!((((data51 === "property") || (data51 === "camunda:property")) || (data51 === "camunda:inputParameter")) || (data51 === "camunda:field"))){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}}var _valid10 = _errs137 === errors;errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}if(_valid10){const _errs139 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.name === undefined){const err109 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(errors > 0){const emErrs13 = [];for(const err110 of vErrors){if(((((err110.keyword !== "errorMessage") && (!err110.emUsed)) && ((err110.dataPath === dataPath+"/" + i5+"/binding") || ((err110.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err110.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err110.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err110.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs13.push(err110);err110.emUsed = true;}}if(emErrs13.length){const err111 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs13},message:"property.binding " + JSON.stringify(data50 && data50.type) + " requires name"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}const emErrs14 = [];for(const err112 of vErrors){if(!err112.emUsed){emErrs14.push(err112);}}vErrors = emErrs14;errors = emErrs14.length;}var _valid10 = _errs139 === errors;valid62 = _valid10;}if(!valid62){const err113 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}const _errs141 = errors;let valid64 = true;const _errs142 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.type === undefined) && ("type")){const err114 = {};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}else {if(data50.type !== undefined){if(!func0$1(data50.type, "camunda:outputParameter")){const err115 = {};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}}}var _valid11 = _errs142 === errors;errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}if(_valid11){const _errs144 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.source === undefined){const err116 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(errors > 0){const emErrs15 = [];for(const err117 of vErrors){if(((((err117.keyword !== "errorMessage") && (!err117.emUsed)) && ((err117.dataPath === dataPath+"/" + i5+"/binding") || ((err117.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err117.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err117.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err117.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs15.push(err117);err117.emUsed = true;}}if(emErrs15.length){const err118 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs15},message:"property.binding " + JSON.stringify(data50 && data50.type) + " requires source"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}const emErrs16 = [];for(const err119 of vErrors){if(!err119.emUsed){emErrs16.push(err119);}}vErrors = emErrs16;errors = emErrs16.length;}var _valid11 = _errs144 === errors;valid64 = _valid11;}if(!valid64){const err120 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}const _errs146 = errors;let valid66 = true;const _errs147 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.type === undefined) && ("type")){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}else {if(data50.type !== undefined){if(!func0$1(data50.type, "camunda:in")){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}}}var _valid12 = _errs147 === errors;errors = _errs146;if(vErrors !== null){if(_errs146){vErrors.length = _errs146;}else {vErrors = null;}}if(_valid12){const _errs149 = errors;const _errs150 = errors;let valid68 = false;const _errs151 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.variables === undefined){const err123 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}var _valid13 = _errs151 === errors;valid68 = valid68 || _valid13;if(!valid68){const _errs152 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.target === undefined){const err124 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",params:{missingProperty: "target"},message:"should have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}var _valid13 = _errs152 === errors;valid68 = valid68 || _valid13;}if(!valid68){const err125 = {keyword:"anyOf",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf",params:{},message:"should match some schema in anyOf"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}else {errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}}if(errors > 0){const emErrs17 = [];for(const err126 of vErrors){if(((((err126.keyword !== "errorMessage") && (!err126.emUsed)) && ((err126.dataPath === dataPath+"/" + i5+"/binding") || ((err126.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err126.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err126.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err126.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs17.push(err126);err126.emUsed = true;}}if(emErrs17.length){const err127 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs17},message:"property.binding " + JSON.stringify(data50 && data50.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}const emErrs18 = [];for(const err128 of vErrors){if(!err128.emUsed){emErrs18.push(err128);}}vErrors = emErrs18;errors = emErrs18.length;}var _valid12 = _errs149 === errors;valid66 = _valid12;}if(!valid66){const err129 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}const _errs154 = errors;let valid69 = true;const _errs155 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.type === undefined) && ("type")){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}else {if(data50.type !== undefined){if(!func0$1(data50.type, "camunda:out")){const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}}}var _valid14 = _errs155 === errors;errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}if(_valid14){const _errs157 = errors;const _errs158 = errors;let valid71 = false;let passing5 = null;const _errs159 = errors;const _errs160 = errors;const _errs161 = errors;const _errs162 = errors;let valid73 = false;const _errs163 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.source === undefined) && ("source")){const err132 = {};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}var _valid16 = _errs163 === errors;valid73 = valid73 || _valid16;if(!valid73){const _errs164 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.sourceExpression === undefined) && ("sourceExpression")){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}var _valid16 = _errs164 === errors;valid73 = valid73 || _valid16;}if(!valid73){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}else {errors = _errs162;if(vErrors !== null){if(_errs162){vErrors.length = _errs162;}else {vErrors = null;}}}var valid72 = _errs161 === errors;if(!valid72){errors = _errs160;if(vErrors !== null){if(_errs160){vErrors.length = _errs160;}else {vErrors = null;}}}else {const err135 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.variables === undefined){const err136 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}var _valid15 = _errs159 === errors;if(_valid15){valid71 = true;passing5 = 0;}const _errs165 = errors;const _errs166 = errors;const _errs167 = errors;const _errs168 = errors;let valid75 = false;const _errs169 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.variables === undefined) && ("variables")){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}var _valid17 = _errs169 === errors;valid75 = valid75 || _valid17;if(!valid75){const _errs170 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.sourceExpression === undefined) && ("sourceExpression")){const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}var _valid17 = _errs170 === errors;valid75 = valid75 || _valid17;}if(!valid75){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}else {errors = _errs168;if(vErrors !== null){if(_errs168){vErrors.length = _errs168;}else {vErrors = null;}}}var valid74 = _errs167 === errors;if(!valid74){errors = _errs166;if(vErrors !== null){if(_errs166){vErrors.length = _errs166;}else {vErrors = null;}}}else {const err140 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.source === undefined){const err141 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}var _valid15 = _errs165 === errors;if(_valid15 && valid71){valid71 = false;passing5 = [passing5, 1];}else {if(_valid15){valid71 = true;passing5 = 1;}const _errs171 = errors;const _errs172 = errors;const _errs173 = errors;const _errs174 = errors;let valid77 = false;const _errs175 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.variables === undefined) && ("variables")){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var _valid18 = _errs175 === errors;valid77 = valid77 || _valid18;if(!valid77){const _errs176 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.source === undefined) && ("source")){const err143 = {};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}var _valid18 = _errs176 === errors;valid77 = valid77 || _valid18;}if(!valid77){const err144 = {};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}else {errors = _errs174;if(vErrors !== null){if(_errs174){vErrors.length = _errs174;}else {vErrors = null;}}}var valid76 = _errs173 === errors;if(!valid76){errors = _errs172;if(vErrors !== null){if(_errs172){vErrors.length = _errs172;}else {vErrors = null;}}}else {const err145 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.sourceExpression === undefined){const err146 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",params:{missingProperty: "sourceExpression"},message:"should have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}var _valid15 = _errs171 === errors;if(_valid15 && valid71){valid71 = false;passing5 = [passing5, 2];}else {if(_valid15){valid71 = true;passing5 = 2;}const _errs177 = errors;const _errs178 = errors;const _errs179 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.source === undefined) && ("source")){const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}var valid78 = _errs179 === errors;if(!valid78){errors = _errs178;if(vErrors !== null){if(_errs178){vErrors.length = _errs178;}else {vErrors = null;}}}else {const err148 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.variables === undefined){const err149 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(data50.sourceExpression === undefined){const err150 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty: "sourceExpression"},message:"should have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}var _valid15 = _errs177 === errors;if(_valid15 && valid71){valid71 = false;passing5 = [passing5, 3];}else {if(_valid15){valid71 = true;passing5 = 3;}const _errs180 = errors;const _errs181 = errors;const _errs182 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.sourceExpression === undefined) && ("sourceExpression")){const err151 = {};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}var valid79 = _errs182 === errors;if(!valid79){errors = _errs181;if(vErrors !== null){if(_errs181){vErrors.length = _errs181;}else {vErrors = null;}}}else {const err152 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.variables === undefined){const err153 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if(data50.source === undefined){const err154 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}var _valid15 = _errs180 === errors;if(_valid15 && valid71){valid71 = false;passing5 = [passing5, 4];}else {if(_valid15){valid71 = true;passing5 = 4;}}}}}if(!valid71){const err155 = {keyword:"oneOf",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas: passing5},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}else {errors = _errs158;if(vErrors !== null){if(_errs158){vErrors.length = _errs158;}else {vErrors = null;}}}if(errors > 0){const emErrs19 = [];for(const err156 of vErrors){if(((((err156.keyword !== "errorMessage") && (!err156.emUsed)) && ((err156.dataPath === dataPath+"/" + i5+"/binding") || ((err156.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err156.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err156.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err156.schemaPath["#/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs19.push(err156);err156.emUsed = true;}}if(emErrs19.length){const err157 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data50 && data50.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}const emErrs20 = [];for(const err158 of vErrors){if(!err158.emUsed){emErrs20.push(err158);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid14 = _errs157 === errors;valid69 = _valid14;}if(!valid69){const err159 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}const _errs184 = errors;let valid80 = true;const _errs185 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.type === undefined) && ("type")){const err160 = {};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}else {if(data50.type !== undefined){if(!func0$1(data50.type, "camunda:errorEventDefinition")){const err161 = {};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}}}var _valid19 = _errs185 === errors;errors = _errs184;if(vErrors !== null){if(_errs184){vErrors.length = _errs184;}else {vErrors = null;}}if(_valid19){const _errs187 = errors;const _errs188 = errors;let valid82 = false;let passing6 = null;const _errs189 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.errorRef === undefined){const err162 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",params:{missingProperty: "errorRef"},message:"should have required property '"+"errorRef"+"'"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}var _valid20 = _errs189 === errors;if(_valid20){valid82 = true;passing6 = 0;}if(!valid82){const err163 = {keyword:"oneOf",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas: passing6},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}else {errors = _errs188;if(vErrors !== null){if(_errs188){vErrors.length = _errs188;}else {vErrors = null;}}}if(errors > 0){const emErrs21 = [];for(const err164 of vErrors){if(((((err164.keyword !== "errorMessage") && (!err164.emUsed)) && ((err164.dataPath === dataPath+"/" + i5+"/binding") || ((err164.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err164.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err164.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err164.schemaPath["#/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs21.push(err164);err164.emUsed = true;}}if(emErrs21.length){const err165 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data50 && data50.type) + " requires errorRef"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}const emErrs22 = [];for(const err166 of vErrors){if(!err166.emUsed){emErrs22.push(err166);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid19 = _errs187 === errors;valid80 = _valid19;}if(!valid80){const err167 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.type === undefined){const err168 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}if(data50.type !== undefined){let data56 = data50.type;if(typeof data56 !== "string"){const err169 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if(!((((((((((data56 === "property") || (data56 === "camunda:property")) || (data56 === "camunda:inputParameter")) || (data56 === "camunda:outputParameter")) || (data56 === "camunda:in")) || (data56 === "camunda:out")) || (data56 === "camunda:in:businessKey")) || (data56 === "camunda:executionListener")) || (data56 === "camunda:field")) || (data56 === "camunda:errorEventDefinition"))){const err170 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}if(errors > 0){const emErrs23 = [];for(const err171 of vErrors){if(((((err171.keyword !== "errorMessage") && (!err171.emUsed)) && ((err171.dataPath === dataPath+"/" + i5+"/binding/type") || ((err171.dataPath.indexOf(dataPath+"/" + i5+"/binding/type") === 0) && (err171.dataPath[dataPath+"/" + i5+"/binding/type".length] === "/")))) && (err171.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err171.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs23.push(err171);err171.emUsed = true;}}if(emErrs23.length){const err172 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs23},message:"invalid property.binding type " + JSON.stringify(data56) + "; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}const emErrs24 = [];for(const err173 of vErrors){if(!err173.emUsed){emErrs24.push(err173);}}vErrors = emErrs24;errors = emErrs24.length;}}if(data50.name !== undefined){if(typeof data50.name !== "string"){const err174 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}if(data50.event !== undefined){if(typeof data50.event !== "string"){const err175 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/event",schemaPath:"#/allOf/1/items/properties/binding/properties/event/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(data50.scriptFormat !== undefined){if(typeof data50.scriptFormat !== "string"){const err176 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/scriptFormat",schemaPath:"#/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data50.source !== undefined){if(typeof data50.source !== "string"){const err177 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}if(data50.target !== undefined){if(typeof data50.target !== "string"){const err178 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/target",schemaPath:"#/allOf/1/items/properties/binding/properties/target/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data50.expression !== undefined){if(typeof data50.expression !== "boolean"){const err179 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/expression",schemaPath:"#/allOf/1/items/properties/binding/properties/expression/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(data50.variables !== undefined){let data63 = data50.variables;if(typeof data63 !== "string"){const err180 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/variables",schemaPath:"#/allOf/1/items/properties/binding/properties/variables/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}if(!((data63 === "all") || (data63 === "local"))){const err181 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/variables",schemaPath:"#/allOf/1/items/properties/binding/properties/variables/enum",params:{allowedValues: schema18$1.allOf[1].items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}if(data50.sourceExpression !== undefined){if(typeof data50.sourceExpression !== "string"){const err182 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/sourceExpression",schemaPath:"#/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}}else {const err183 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}}else {const err184 = {keyword:"type",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}if(errors > 0){const emErrors3 = {"required":[]};const templates3 = {required:function(){return "missing binding for property \"" + JSON.stringify(i5) + "\""}};for(const err185 of vErrors){if((((((err185.keyword !== "errorMessage") && (!err185.emUsed)) && (err185.dataPath === dataPath+"/" + i5)) && (err185.keyword in emErrors3)) && (err185.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err185.schemaPath.slice(15)))){emErrors3[err185.keyword].push(err185);err185.emUsed = true;}}for(const key3 in emErrors3){if(emErrors3[key3].length){const err186 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",params:{errors: emErrors3[key3]},message:key3 in templates3 ? templates3[key3]() : schema18$1.allOf[1].items.errorMessage[key3]};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}const emErrs25 = [];for(const err187 of vErrors){if(!err187.emUsed){emErrs25.push(err187);}}vErrors = emErrs25;errors = emErrs25.length;}}}else {const err188 = {keyword:"type",dataPath,schemaPath:"#/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}validate16$1.errors = vErrors;return errors === 0;}const schema24 = {"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property."},"value":{"$id":"#/properties/property/value","type":["string","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."},"condition":{"$id":"#/condition","type":"object","description":"Condition(s) to activate the binding.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}}},"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},"minItems":1}},"required":["allMatch"]}]}}}};function validate20(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs4 = errors;let valid4 = true;const _errs5 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if(!func0$1(data0.type, "Dropdown")){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs5 === errors;errors = _errs4;if(vErrors !== null){if(_errs4){vErrors.length = _errs4;}else {vErrors = null;}}if(_valid0){const _errs7 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {keyword:"required",dataPath:dataPath+"/" + i0,schemaPath:"#/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.dataPath === dataPath+"/" + i0) || ((err3.dataPath.indexOf(dataPath+"/" + i0) === 0) && (err3.dataPath[dataPath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/items/allOf/0/then") === 0)) && (err3.schemaPath["#/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0,schemaPath:"#/items/allOf/0/then/errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs7 === errors;valid4 = _valid0;}if(!valid4){const err6 = {keyword:"if",dataPath:dataPath+"/" + i0,schemaPath:"#/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err7 = {keyword:"type",dataPath:dataPath+"/" + i0+"/id",schemaPath:"#/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data0.value !== undefined){let data3 = data0.value;if((typeof data3 !== "string") && (typeof data3 !== "boolean")){const err8 = {keyword:"type",dataPath:dataPath+"/" + i0+"/value",schemaPath:"#/items/properties/value/type",params:{type: schema24.items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err9 = {keyword:"type",dataPath:dataPath+"/" + i0+"/description",schemaPath:"#/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err10 = {keyword:"type",dataPath:dataPath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err11 = {keyword:"type",dataPath:dataPath+"/" + i0+"/type",schemaPath:"#/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err12 = {keyword:"type",dataPath:dataPath+"/" + i0+"/editable",schemaPath:"#/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data0.choices !== undefined){let data8 = data0.choices;if(Array.isArray(data8)){const len1 = data8.length;for(let i1=0; i1<len1; i1++){let data9 = data8[i1];if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.value === undefined){const err13 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data9.name === undefined){const err14 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data9.name !== undefined){if(typeof data9.name !== "string"){const err15 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/name",schemaPath:"#/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data9.value !== undefined){if(typeof data9.value !== "string"){const err16 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/value",schemaPath:"#/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data9.condition !== undefined){if(!(validate17$1(data9.condition, {dataPath:dataPath+"/" + i0+"/choices/" + i1+"/condition",parentData:data9,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17$1.errors : vErrors.concat(validate17$1.errors);errors = vErrors.length;}}}else {const err17 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(errors > 0){const emErrors0 = {"required":[]};const templates0 = {};for(const err18 of vErrors){if((((((err18.keyword !== "errorMessage") && (!err18.emUsed)) && (err18.dataPath === dataPath+"/" + i0+"/choices/" + i1)) && (err18.keyword in emErrors0)) && (err18.schemaPath.indexOf("#/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err18.schemaPath.slice(32)))){emErrors0[err18.keyword].push(err18);err18.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err19 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/items/properties/choices/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema24.items.properties.choices.items.errorMessage[key0]};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}const emErrs2 = [];for(const err20 of vErrors){if(!err20.emUsed){emErrs2.push(err20);}}vErrors = emErrs2;errors = emErrs2.length;}}}else {const err21 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices",schemaPath:"#/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data0.constraints !== undefined){let data13 = data0.constraints;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.notEmpty !== undefined){if(typeof data13.notEmpty !== "boolean"){const err22 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data13.minLength !== undefined){if(!(typeof data13.minLength == "number")){const err23 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/minLength",schemaPath:"#/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data13.maxLength !== undefined){if(!(typeof data13.maxLength == "number")){const err24 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/maxLength",schemaPath:"#/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data13.pattern !== undefined){let data17 = data13.pattern;const _errs38 = errors;let valid12 = false;let passing0 = null;const _errs39 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){if(typeof data17.value !== "string"){const err25 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data17.message !== undefined){if(typeof data17.message !== "string"){const err26 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid1 = _errs39 === errors;if(_valid1){valid12 = true;passing0 = 0;}const _errs45 = errors;if(typeof data17 !== "string"){const err28 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid1 = _errs45 === errors;if(_valid1 && valid12){valid12 = false;passing0 = [passing0, 1];}else {if(_valid1){valid12 = true;passing0 = 1;}}if(!valid12){const err29 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}}}else {const err30 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints",schemaPath:"#/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err31 = {keyword:"type",dataPath:dataPath+"/" + i0+"/group",schemaPath:"#/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data0.condition !== undefined){let data21 = data0.condition;if(!(data21 && typeof data21 == "object" && !Array.isArray(data21))){const err32 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/items/properties/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}const _errs51 = errors;let valid14 = false;let passing1 = null;const _errs52 = errors;const _errs55 = errors;let valid16 = false;let passing2 = null;const _errs56 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.equals === undefined){const err33 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data21.equals !== undefined){let data22 = data21.equals;if(((typeof data22 !== "string") && (!(typeof data22 == "number"))) && (typeof data22 !== "boolean")){const err34 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}var _valid3 = _errs56 === errors;if(_valid3){valid16 = true;passing2 = 0;}const _errs59 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.oneOf === undefined){const err35 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data21.oneOf !== undefined){let data23 = data21.oneOf;if(Array.isArray(data23)){const len2 = data23.length;for(let i2=0; i2<len2; i2++){let data24 = data23[i2];if((typeof data24 !== "string") && (!(typeof data24 == "number"))){const err36 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}var _valid3 = _errs59 === errors;if(_valid3 && valid16){valid16 = false;passing2 = [passing2, 1];}else {if(_valid3){valid16 = true;passing2 = 1;}}if(!valid16){const err38 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs55;if(vErrors !== null){if(_errs55){vErrors.length = _errs55;}else {vErrors = null;}}}if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.property === undefined){const err39 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if(data21.type !== undefined){if(!func0$1(data21.type, "simple")){const err40 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data21.property !== undefined){if(typeof data21.property !== "string"){const err41 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}else {const err42 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err43 of vErrors){if((((((err43.keyword !== "errorMessage") && (!err43.emUsed)) && (err43.dataPath === dataPath+"/" + i0+"/condition")) && (err43.keyword in emErrors1)) && (err43.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err43.schemaPath.slice(81)))){emPropParams0 = obj0$1[err43.keyword];emParamsErrors0 = emErrors1[err43.keyword][err43.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err43);err43.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp0 in emErrors1[key1]){emParamsErrors0 = emErrors1[key1][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates1[key1] && templates1[key1][keyProp0];const err44 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20$1.errorMessage[key1][keyProp0]};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}const emErrs3 = [];for(const err45 of vErrors){if(!err45.emUsed){emErrs3.push(err45);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid2 = _errs52 === errors;if(_valid2){valid14 = true;passing1 = 0;}const _errs67 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.allMatch === undefined){const err46 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/items/properties/condition/oneOf/1/required",params:{missingProperty: "allMatch"},message:"should have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data21.allMatch !== undefined){let data27 = data21.allMatch;if(Array.isArray(data27)){if(data27.length < 1){const err47 = {keyword:"minItems",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/items/properties/condition/oneOf/1/properties/allMatch/minItems",params:{limit: 1},message:"should NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}const len3 = data27.length;for(let i3=0; i3<len3; i3++){let data28 = data27[i3];const _errs73 = errors;let valid26 = false;let passing3 = null;const _errs74 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.equals === undefined){const err48 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if(data28.equals !== undefined){let data29 = data28.equals;if(((typeof data29 !== "string") && (!(typeof data29 == "number"))) && (typeof data29 !== "boolean")){const err49 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}var _valid4 = _errs74 === errors;if(_valid4){valid26 = true;passing3 = 0;}const _errs77 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.oneOf === undefined){const err50 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(data28.oneOf !== undefined){let data30 = data28.oneOf;if(Array.isArray(data30)){const len4 = data30.length;for(let i4=0; i4<len4; i4++){let data31 = data30[i4];if((typeof data31 !== "string") && (!(typeof data31 == "number"))){const err51 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf/" + i4,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}else {const err52 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}var _valid4 = _errs77 === errors;if(_valid4 && valid26){valid26 = false;passing3 = [passing3, 1];}else {if(_valid4){valid26 = true;passing3 = 1;}}if(!valid26){const err53 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing3},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {errors = _errs73;if(vErrors !== null){if(_errs73){vErrors.length = _errs73;}else {vErrors = null;}}}if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.property === undefined){const err54 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(data28.type !== undefined){if(!func0$1(data28.type, "simple")){const err55 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data28.property !== undefined){if(typeof data28.property !== "string"){const err56 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}else {const err57 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(errors > 0){const emErrors2 = {"required":{"property":[]}};const templates2 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err58 of vErrors){if((((((err58.keyword !== "errorMessage") && (!err58.emUsed)) && (err58.dataPath === dataPath+"/" + i0+"/condition/allMatch/" + i3)) && (err58.keyword in emErrors2)) && (err58.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err58.schemaPath.slice(81)))){emPropParams1 = obj0$1[err58.keyword];emParamsErrors1 = emErrors2[err58.keyword][err58.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err58);err58.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp1 in emErrors2[key2]){emParamsErrors1 = emErrors2[key2][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates2[key2] && templates2[key2][keyProp1];const err59 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20$1.errorMessage[key2][keyProp1]};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}}const emErrs4 = [];for(const err60 of vErrors){if(!err60.emUsed){emErrs4.push(err60);}}vErrors = emErrs4;errors = emErrs4.length;}}}else {const err61 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/items/properties/condition/oneOf/1/properties/allMatch/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}}var _valid2 = _errs67 === errors;if(_valid2 && valid14){valid14 = false;passing1 = [passing1, 1];}else {if(_valid2){valid14 = true;passing1 = 1;}}if(!valid14){const err62 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/items/properties/condition/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {errors = _errs51;if(vErrors !== null){if(_errs51){vErrors.length = _errs51;}else {vErrors = null;}}}}}else {const err63 = {keyword:"type",dataPath:dataPath+"/" + i0,schemaPath:"#/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}else {const err64 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}validate20.errors = vErrors;return errors === 0;}function validate15$1(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "appliesTo"},message:"should have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.name !== undefined){if(typeof data.name !== "string"){const err4 = {keyword:"type",dataPath:dataPath+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {keyword:"type",dataPath:dataPath+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {keyword:"type",dataPath:dataPath+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){let data3 = data.version;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "integer"},message:"should be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {keyword:"type",dataPath:dataPath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.deprecated !== undefined){let data5 = data.deprecated;if((typeof data5 !== "boolean") && (!(data5 && typeof data5 == "object" && !Array.isArray(data5)))){const err9 = {keyword:"type",dataPath:dataPath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",params:{type: schema17$1.allOf[0].properties.deprecated.type},message:"should be boolean,object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.message !== undefined){if(typeof data5.message !== "string"){const err10 = {keyword:"type",dataPath:dataPath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data5.documentationRef !== undefined){let data7 = data5.documentationRef;if(typeof data7 === "string"){if(!pattern0$1.test(data7)){const err11 = {keyword:"pattern",dataPath:dataPath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {keyword:"type",dataPath:dataPath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}}if(data.appliesTo !== undefined){let data8 = data.appliesTo;if(Array.isArray(data8)){const len0 = data8.length;for(let i0=0; i0<len0; i0++){let data9 = data8[i0];if(typeof data9 === "string"){if(!pattern1$1.test(data9)){const err13 = {keyword:"pattern",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err15 of vErrors){if((((((err15.keyword !== "errorMessage") && (!err15.emUsed)) && (err15.dataPath === dataPath+"/appliesTo/" + i0)) && (err15.keyword in emErrors0)) && (err15.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err15.schemaPath.slice(36)))){emErrors0[err15.keyword].push(err15);err15.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err16 = {keyword:"errorMessage",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17$1.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}const emErrs0 = [];for(const err17 of vErrors){if(!err17.emUsed){emErrs0.push(err17);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err18 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.elementType !== undefined){let data10 = data.elementType;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.value === undefined){const err19 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data10.value !== undefined){let data11 = data10.value;if(typeof data11 === "string"){if(!pattern1$1.test(data11)){const err20 = {keyword:"pattern",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {keyword:"type",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.dataPath === dataPath+"/elementType/value")) && (err22.keyword in emErrors1)) && (err22.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(49)))){emErrors1[err22.keyword].push(err22);err22.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err23 = {keyword:"errorMessage",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17$1.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}const emErrs1 = [];for(const err24 of vErrors){if(!err24.emUsed){emErrs1.push(err24);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err25 = {keyword:"type",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.dataPath === dataPath+"/elementType")) && (err26.keyword in emErrors2)) && (err26.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(32)))){emPropParams0 = obj0$1[err26.keyword];emParamsErrors0 = emErrors2[err26.keyword][err26.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err26);err26.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err27 = {keyword:"errorMessage",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17$1.allOf[0].properties.elementType.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}const emErrs2 = [];for(const err28 of vErrors){if(!err28.emUsed){emErrs2.push(err28);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data12 = data.metadata;if(!(data12 && typeof data12 == "object" && !Array.isArray(data12))){const err29 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err30 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.groups !== undefined){let data14 = data.groups;if(Array.isArray(data14)){const len1 = data14.length;for(let i1=0; i1<len1; i1++){let data15 = data14[i1];if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.id === undefined){const err31 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data15.label === undefined){const err32 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "label"},message:"should have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(data15.id !== undefined){if(typeof data15.id !== "string"){const err33 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data15.label !== undefined){if(typeof data15.label !== "string"){const err34 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(errors > 0){const emErrors3 = {"required":{"id":[],"label":[]}};const templates3 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams1;let emParamsErrors1;for(const err36 of vErrors){if((((((err36.keyword !== "errorMessage") && (!err36.emUsed)) && (err36.dataPath === dataPath+"/groups/" + i1)) && (err36.keyword in emErrors3)) && (err36.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err36.schemaPath.slice(33)))){emPropParams1 = obj0$1[err36.keyword];emParamsErrors1 = emErrors3[err36.keyword][err36.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err36);err36.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp1 in emErrors3[key3]){emParamsErrors1 = emErrors3[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates3[key3] && templates3[key3][keyProp1];const err37 = {keyword:"errorMessage",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17$1.allOf[0].properties.groups.items.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}const emErrs3 = [];for(const err38 of vErrors){if(!err38.emUsed){emErrs3.push(err38);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err39 = {keyword:"type",dataPath:dataPath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data.documentationRef !== undefined){let data18 = data.documentationRef;if(typeof data18 === "string"){if(!pattern0$1.test(data18)){const err40 = {keyword:"pattern",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {keyword:"type",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err42 of vErrors){if((((((err42.keyword !== "errorMessage") && (!err42.emUsed)) && (err42.dataPath === dataPath+"/documentationRef")) && (err42.keyword in emErrors4)) && (err42.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err42.schemaPath.slice(37)))){emErrors4[err42.keyword].push(err42);err42.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err43 = {keyword:"errorMessage",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",params:{errors: emErrors4[key4]},message:key4 in templates4 ? templates4[key4]() : schema17$1.allOf[0].properties.documentationRef.errorMessage[key4]};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}const emErrs4 = [];for(const err44 of vErrors){if(!err44.emUsed){emErrs4.push(err44);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err45 of vErrors){if((((((err45.keyword !== "errorMessage") && (!err45.emUsed)) && (err45.dataPath === dataPath)) && (err45.keyword in emErrors5)) && (err45.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err45.schemaPath.slice(9)))){emPropParams2 = obj0$1[err45.keyword];emParamsErrors2 = emErrors5[err45.keyword][err45.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err45);err45.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err46 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17$1.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}const emErrs5 = [];for(const err47 of vErrors){if(!err47.emUsed){emErrs5.push(err47);}}vErrors = emErrs5;errors = emErrs5.length;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){if(!(validate16$1(data.properties, {dataPath:dataPath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16$1.errors : vErrors.concat(validate16$1.errors);errors = vErrors.length;}}if(data.scopes !== undefined){let data20 = data.scopes;if(Array.isArray(data20)){const len2 = data20.length;for(let i2=0; i2<len2; i2++){let data21 = data20[i2];const _errs46 = errors;let valid17 = true;const _errs47 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if((data21.type === undefined) && ("type")){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {if(data21.type !== undefined){if(!(data21.type === "bpmn:Error")){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}}var _valid0 = _errs47 === errors;errors = _errs46;if(vErrors !== null){if(_errs46){vErrors.length = _errs46;}else {vErrors = null;}}if(_valid0){const _errs49 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.id === undefined){const err50 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/allOf/0/then/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(errors > 0){const emErrs6 = [];for(const err51 of vErrors){if(((((err51.keyword !== "errorMessage") && (!err51.emUsed)) && ((err51.dataPath === dataPath+"/scopes/" + i2) || ((err51.dataPath.indexOf(dataPath+"/scopes/" + i2) === 0) && (err51.dataPath[dataPath+"/scopes/" + i2.length] === "/")))) && (err51.schemaPath.indexOf("#/properties/scopes/items/allOf/0/then") === 0)) && (err51.schemaPath["#/properties/scopes/items/allOf/0/then".length] === "/")){emErrs6.push(err51);err51.emUsed = true;}}if(emErrs6.length){const err52 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/allOf/0/then/errorMessage",params:{errors: emErrs6},message:"invalid scope " + JSON.stringify(data21 && data21.type) + ", missing id"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}const emErrs7 = [];for(const err53 of vErrors){if(!err53.emUsed){emErrs7.push(err53);}}vErrors = emErrs7;errors = emErrs7.length;}var _valid0 = _errs49 === errors;valid17 = _valid0;}if(!valid17){const err54 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.type === undefined){const err55 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data21.properties === undefined){const err56 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data21.type !== undefined){let data23 = data21.type;if(typeof data23 !== "string"){const err57 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/type",schemaPath:"#/properties/scopes/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(!((data23 === "camunda:Connector") || (data23 === "bpmn:Error"))){const err58 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/type",schemaPath:"#/properties/scopes/items/properties/type/enum",params:{allowedValues: schema17$1.properties.scopes.items.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(errors > 0){const emErrs8 = [];for(const err59 of vErrors){if(((((err59.keyword !== "errorMessage") && (!err59.emUsed)) && ((err59.dataPath === dataPath+"/scopes/" + i2+"/type") || ((err59.dataPath.indexOf(dataPath+"/scopes/" + i2+"/type") === 0) && (err59.dataPath[dataPath+"/scopes/" + i2+"/type".length] === "/")))) && (err59.schemaPath.indexOf("#/properties/scopes/items/properties/type") === 0)) && (err59.schemaPath["#/properties/scopes/items/properties/type".length] === "/")){emErrs8.push(err59);err59.emUsed = true;}}if(emErrs8.length){const err60 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/type",schemaPath:"#/properties/scopes/items/properties/type/errorMessage",params:{errors: emErrs8},message:"invalid scope type " + JSON.stringify(data23) + "; must be any of { camunda:Connector, bpmn:Error }"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}const emErrs9 = [];for(const err61 of vErrors){if(!err61.emUsed){emErrs9.push(err61);}}vErrors = emErrs9;errors = emErrs9.length;}}if(data21.properties !== undefined){let data24 = data21.properties;if(!(validate20(data24, {dataPath:dataPath+"/scopes/" + i2+"/properties",parentData:data21,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate20.errors : vErrors.concat(validate20.errors);errors = vErrors.length;}if(Array.isArray(data24)){const len3 = data24.length;for(let i3=0; i3<len3; i3++){let data25 = data24[i3];const _errs60 = errors;let valid25 = true;const _errs61 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {if(data25.binding !== undefined){let data26 = data25.binding;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if((data26.type === undefined) && ("type")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}else {if(data26.type !== undefined){if(!func0$1(data26.type, "property")){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}}}}}}var _valid1 = _errs61 === errors;errors = _errs60;if(vErrors !== null){if(_errs60){vErrors.length = _errs60;}else {vErrors = null;}}if(_valid1){const _errs64 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){let data28 = data25.type;if(!(((((data28 === "String") || (data28 === "Text")) || (data28 === "Hidden")) || (data28 === "Dropdown")) || (data28 === "Boolean"))){const err65 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema27.items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(errors > 0){const emErrs10 = [];for(const err66 of vErrors){if(((((err66.keyword !== "errorMessage") && (!err66.emUsed)) && ((err66.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err66.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err66.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err66.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err66.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs10.push(err66);err66.emUsed = true;}}if(emErrs10.length){const err67 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs10},message:"invalid property type " + JSON.stringify(data28) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}const emErrs11 = [];for(const err68 of vErrors){if(!err68.emUsed){emErrs11.push(err68);}}vErrors = emErrs11;errors = emErrs11.length;}}}var _valid1 = _errs64 === errors;valid25 = _valid1;}if(!valid25){const err69 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}const _errs67 = errors;let valid29 = true;const _errs68 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {if(data25.binding !== undefined){let data29 = data25.binding;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if((data29.type === undefined) && ("type")){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}else {if(data29.type !== undefined){if(!func0$1(data29.type, "camunda:executionListener")){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}}}}}var _valid2 = _errs68 === errors;errors = _errs67;if(vErrors !== null){if(_errs67){vErrors.length = _errs67;}else {vErrors = null;}}if(_valid2){const _errs71 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){if(!(data25.type === "Hidden")){const err73 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema27.items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if(errors > 0){const emErrs12 = [];for(const err74 of vErrors){if(((((err74.keyword !== "errorMessage") && (!err74.emUsed)) && ((err74.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err74.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err74.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err74.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err74.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs12.push(err74);err74.emUsed = true;}}if(emErrs12.length){const err75 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs12},message:"invalid property type " + JSON.stringify(data25 && data25.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}const emErrs13 = [];for(const err76 of vErrors){if(!err76.emUsed){emErrs13.push(err76);}}vErrors = emErrs13;errors = emErrs13.length;}}if(data25.binding !== undefined){let data32 = data25.binding;const _errs74 = errors;let valid33 = false;let passing0 = null;const _errs75 = errors;const _errs76 = errors;const _errs77 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.implementationType !== undefined){if(!func0$1(data32.implementationType, "script")){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}}var valid34 = _errs77 === errors;if(!valid34){errors = _errs76;if(vErrors !== null){if(_errs76){vErrors.length = _errs76;}else {vErrors = null;}}}else {const err78 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}var _valid3 = _errs75 === errors;if(_valid3){valid33 = true;passing0 = 0;}const _errs79 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.scriptFormat === undefined){const err79 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/1/required",params:{missingProperty: "scriptFormat"},message:"should have required property '"+"scriptFormat"+"'"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}var _valid3 = _errs79 === errors;if(_valid3 && valid33){valid33 = false;passing0 = [passing0, 1];}else {if(_valid3){valid33 = true;passing0 = 1;}const _errs80 = errors;const _errs82 = errors;const _errs83 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if((data32.implementationType === undefined) && ("implementationType")){const err80 = {};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}var valid37 = _errs83 === errors;if(!valid37){errors = _errs82;if(vErrors !== null){if(_errs82){vErrors.length = _errs82;}else {vErrors = null;}}}else {const err81 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}const _errs85 = errors;const _errs86 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if((data32.scriptFormat === undefined) && ("scriptFormat")){const err82 = {};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}var valid38 = _errs86 === errors;if(!valid38){errors = _errs85;if(vErrors !== null){if(_errs85){vErrors.length = _errs85;}else {vErrors = null;}}}else {const err83 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/1/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}var _valid3 = _errs80 === errors;if(_valid3 && valid33){valid33 = false;passing0 = [passing0, 2];}else {if(_valid3){valid33 = true;passing0 = 2;}}}if(!valid33){const err84 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}else {errors = _errs74;if(vErrors !== null){if(_errs74){vErrors.length = _errs74;}else {vErrors = null;}}}if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.implementationType !== undefined){let data34 = data32.implementationType;if(!((((data34 === "class") || (data34 === "delegateExpression")) || (data34 === "expression")) || (data34 === "script"))){const err85 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/implementationType",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/properties/implementationType/enum",params:{allowedValues: schema27.items.allOf[1].then.properties.binding.properties.implementationType.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}}}var _valid2 = _errs71 === errors;valid29 = _valid2;}if(!valid29){const err86 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const _errs89 = errors;let valid40 = true;const _errs90 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err87 = {};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {if(data25.binding !== undefined){let data35 = data25.binding;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if((data35.type === undefined) && ("type")){const err88 = {};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}else {if(data35.type !== undefined){let data36 = data35.type;if(!((((((data36 === "camunda:property") || (data36 === "camunda:outputParameter")) || (data36 === "camunda:in")) || (data36 === "camunda:in:businessKey")) || (data36 === "camunda:out")) || (data36 === "camunda:errorEventDefinition"))){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}}}}}var _valid4 = _errs90 === errors;errors = _errs89;if(vErrors !== null){if(_errs89){vErrors.length = _errs89;}else {vErrors = null;}}if(_valid4){const _errs93 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){let data37 = data25.type;if(!(((data37 === "String") || (data37 === "Hidden")) || (data37 === "Dropdown"))){const err90 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/enum",params:{allowedValues: schema27.items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(errors > 0){const emErrs14 = [];for(const err91 of vErrors){if(((((err91.keyword !== "errorMessage") && (!err91.emUsed)) && ((err91.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err91.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err91.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err91.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err91.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs14.push(err91);err91.emUsed = true;}}if(emErrs14.length){const err92 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors: emErrs14},message:"invalid property type " + JSON.stringify(data37) + " for binding type " + JSON.stringify(data25 && data25.binding && data25.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}const emErrs15 = [];for(const err93 of vErrors){if(!err93.emUsed){emErrs15.push(err93);}}vErrors = emErrs15;errors = emErrs15.length;}}}var _valid4 = _errs93 === errors;valid40 = _valid4;}if(!valid40){const err94 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const _errs96 = errors;let valid44 = true;const _errs97 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err95 = {};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}else {if(data25.binding !== undefined){let data38 = data25.binding;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if((data38.type === undefined) && ("type")){const err96 = {};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}else {if(data38.type !== undefined){let data39 = data38.type;if(!((data39 === "camunda:inputParameter") || (data39 === "camunda:field"))){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}}}}}var _valid5 = _errs97 === errors;errors = _errs96;if(vErrors !== null){if(_errs96){vErrors.length = _errs96;}else {vErrors = null;}}if(_valid5){const _errs100 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){let data40 = data25.type;if(!((((data40 === "String") || (data40 === "Text")) || (data40 === "Hidden")) || (data40 === "Dropdown"))){const err98 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/enum",params:{allowedValues: schema27.items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(errors > 0){const emErrs16 = [];for(const err99 of vErrors){if(((((err99.keyword !== "errorMessage") && (!err99.emUsed)) && ((err99.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err99.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err99.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err99.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err99.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs16.push(err99);err99.emUsed = true;}}if(emErrs16.length){const err100 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors: emErrs16},message:"invalid property type " + JSON.stringify(data40) + " for binding type " + JSON.stringify(data25 && data25.binding && data25.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}const emErrs17 = [];for(const err101 of vErrors){if(!err101.emUsed){emErrs17.push(err101);}}vErrors = emErrs17;errors = emErrs17.length;}}}var _valid5 = _errs100 === errors;valid44 = _valid5;}if(!valid44){const err102 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.binding === undefined){const err103 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(data25.binding !== undefined){let data41 = data25.binding;const _errs105 = errors;let valid50 = true;const _errs106 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}else {if(data41.type !== undefined){let data42 = data41.type;if(!((((data42 === "property") || (data42 === "camunda:property")) || (data42 === "camunda:inputParameter")) || (data42 === "camunda:field"))){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}}}var _valid6 = _errs106 === errors;errors = _errs105;if(vErrors !== null){if(_errs105){vErrors.length = _errs105;}else {vErrors = null;}}if(_valid6){const _errs108 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.name === undefined){const err106 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}if(errors > 0){const emErrs18 = [];for(const err107 of vErrors){if(((((err107.keyword !== "errorMessage") && (!err107.emUsed)) && ((err107.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err107.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err107.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err107.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err107.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs18.push(err107);err107.emUsed = true;}}if(emErrs18.length){const err108 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs18},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires name"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}const emErrs19 = [];for(const err109 of vErrors){if(!err109.emUsed){emErrs19.push(err109);}}vErrors = emErrs19;errors = emErrs19.length;}var _valid6 = _errs108 === errors;valid50 = _valid6;}if(!valid50){const err110 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}const _errs110 = errors;let valid52 = true;const _errs111 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}else {if(data41.type !== undefined){if(!func0$1(data41.type, "camunda:outputParameter")){const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}}var _valid7 = _errs111 === errors;errors = _errs110;if(vErrors !== null){if(_errs110){vErrors.length = _errs110;}else {vErrors = null;}}if(_valid7){const _errs113 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.source === undefined){const err113 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(errors > 0){const emErrs20 = [];for(const err114 of vErrors){if(((((err114.keyword !== "errorMessage") && (!err114.emUsed)) && ((err114.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err114.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err114.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err114.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err114.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs20.push(err114);err114.emUsed = true;}}if(emErrs20.length){const err115 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs20},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires source"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const emErrs21 = [];for(const err116 of vErrors){if(!err116.emUsed){emErrs21.push(err116);}}vErrors = emErrs21;errors = emErrs21.length;}var _valid7 = _errs113 === errors;valid52 = _valid7;}if(!valid52){const err117 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}const _errs115 = errors;let valid54 = true;const _errs116 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {if(data41.type !== undefined){if(!func0$1(data41.type, "camunda:in")){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}}var _valid8 = _errs116 === errors;errors = _errs115;if(vErrors !== null){if(_errs115){vErrors.length = _errs115;}else {vErrors = null;}}if(_valid8){const _errs118 = errors;const _errs119 = errors;let valid56 = false;const _errs120 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err120 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}var _valid9 = _errs120 === errors;valid56 = valid56 || _valid9;if(!valid56){const _errs121 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.target === undefined){const err121 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",params:{missingProperty: "target"},message:"should have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}var _valid9 = _errs121 === errors;valid56 = valid56 || _valid9;}if(!valid56){const err122 = {keyword:"anyOf",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf",params:{},message:"should match some schema in anyOf"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}if(errors > 0){const emErrs22 = [];for(const err123 of vErrors){if(((((err123.keyword !== "errorMessage") && (!err123.emUsed)) && ((err123.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err123.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err123.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err123.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err123.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs22.push(err123);err123.emUsed = true;}}if(emErrs22.length){const err124 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs22},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}const emErrs23 = [];for(const err125 of vErrors){if(!err125.emUsed){emErrs23.push(err125);}}vErrors = emErrs23;errors = emErrs23.length;}var _valid8 = _errs118 === errors;valid54 = _valid8;}if(!valid54){const err126 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}const _errs123 = errors;let valid57 = true;const _errs124 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err127 = {};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}else {if(data41.type !== undefined){if(!func0$1(data41.type, "camunda:out")){const err128 = {};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}}}var _valid10 = _errs124 === errors;errors = _errs123;if(vErrors !== null){if(_errs123){vErrors.length = _errs123;}else {vErrors = null;}}if(_valid10){const _errs126 = errors;const _errs127 = errors;let valid59 = false;let passing1 = null;const _errs128 = errors;const _errs129 = errors;const _errs130 = errors;const _errs131 = errors;let valid61 = false;const _errs132 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.source === undefined) && ("source")){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}var _valid12 = _errs132 === errors;valid61 = valid61 || _valid12;if(!valid61){const _errs133 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.sourceExpression === undefined) && ("sourceExpression")){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}var _valid12 = _errs133 === errors;valid61 = valid61 || _valid12;}if(!valid61){const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}else {errors = _errs131;if(vErrors !== null){if(_errs131){vErrors.length = _errs131;}else {vErrors = null;}}}var valid60 = _errs130 === errors;if(!valid60){errors = _errs129;if(vErrors !== null){if(_errs129){vErrors.length = _errs129;}else {vErrors = null;}}}else {const err132 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err133 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}var _valid11 = _errs128 === errors;if(_valid11){valid59 = true;passing1 = 0;}const _errs134 = errors;const _errs135 = errors;const _errs136 = errors;const _errs137 = errors;let valid63 = false;const _errs138 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.variables === undefined) && ("variables")){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}var _valid13 = _errs138 === errors;valid63 = valid63 || _valid13;if(!valid63){const _errs139 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.sourceExpression === undefined) && ("sourceExpression")){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}var _valid13 = _errs139 === errors;valid63 = valid63 || _valid13;}if(!valid63){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}else {errors = _errs137;if(vErrors !== null){if(_errs137){vErrors.length = _errs137;}else {vErrors = null;}}}var valid62 = _errs136 === errors;if(!valid62){errors = _errs135;if(vErrors !== null){if(_errs135){vErrors.length = _errs135;}else {vErrors = null;}}}else {const err137 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.source === undefined){const err138 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}var _valid11 = _errs134 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 1];}else {if(_valid11){valid59 = true;passing1 = 1;}const _errs140 = errors;const _errs141 = errors;const _errs142 = errors;const _errs143 = errors;let valid65 = false;const _errs144 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.variables === undefined) && ("variables")){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}var _valid14 = _errs144 === errors;valid65 = valid65 || _valid14;if(!valid65){const _errs145 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.source === undefined) && ("source")){const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}var _valid14 = _errs145 === errors;valid65 = valid65 || _valid14;}if(!valid65){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}else {errors = _errs143;if(vErrors !== null){if(_errs143){vErrors.length = _errs143;}else {vErrors = null;}}}var valid64 = _errs142 === errors;if(!valid64){errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}}else {const err142 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.sourceExpression === undefined){const err143 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",params:{missingProperty: "sourceExpression"},message:"should have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}var _valid11 = _errs140 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 2];}else {if(_valid11){valid59 = true;passing1 = 2;}const _errs146 = errors;const _errs147 = errors;const _errs148 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.source === undefined) && ("source")){const err144 = {};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}var valid66 = _errs148 === errors;if(!valid66){errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}}else {const err145 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err146 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}if(data41.sourceExpression === undefined){const err147 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty: "sourceExpression"},message:"should have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}var _valid11 = _errs146 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 3];}else {if(_valid11){valid59 = true;passing1 = 3;}const _errs149 = errors;const _errs150 = errors;const _errs151 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.sourceExpression === undefined) && ("sourceExpression")){const err148 = {};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}var valid67 = _errs151 === errors;if(!valid67){errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}}else {const err149 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err150 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(data41.source === undefined){const err151 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}var _valid11 = _errs149 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 4];}else {if(_valid11){valid59 = true;passing1 = 4;}}}}}if(!valid59){const err152 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}else {errors = _errs127;if(vErrors !== null){if(_errs127){vErrors.length = _errs127;}else {vErrors = null;}}}if(errors > 0){const emErrs24 = [];for(const err153 of vErrors){if(((((err153.keyword !== "errorMessage") && (!err153.emUsed)) && ((err153.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err153.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err153.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err153.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err153.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs24.push(err153);err153.emUsed = true;}}if(emErrs24.length){const err154 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors: emErrs24},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}const emErrs25 = [];for(const err155 of vErrors){if(!err155.emUsed){emErrs25.push(err155);}}vErrors = emErrs25;errors = emErrs25.length;}var _valid10 = _errs126 === errors;valid57 = _valid10;}if(!valid57){const err156 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}const _errs153 = errors;let valid68 = true;const _errs154 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err157 = {};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {if(data41.type !== undefined){if(!func0$1(data41.type, "camunda:errorEventDefinition")){const err158 = {};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}}}var _valid15 = _errs154 === errors;errors = _errs153;if(vErrors !== null){if(_errs153){vErrors.length = _errs153;}else {vErrors = null;}}if(_valid15){const _errs156 = errors;const _errs157 = errors;let valid70 = false;let passing2 = null;const _errs158 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.errorRef === undefined){const err159 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",params:{missingProperty: "errorRef"},message:"should have required property '"+"errorRef"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}var _valid16 = _errs158 === errors;if(_valid16){valid70 = true;passing2 = 0;}if(!valid70){const err160 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}else {errors = _errs157;if(vErrors !== null){if(_errs157){vErrors.length = _errs157;}else {vErrors = null;}}}if(errors > 0){const emErrs26 = [];for(const err161 of vErrors){if(((((err161.keyword !== "errorMessage") && (!err161.emUsed)) && ((err161.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err161.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err161.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err161.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err161.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs26.push(err161);err161.emUsed = true;}}if(emErrs26.length){const err162 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors: emErrs26},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires errorRef"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}const emErrs27 = [];for(const err163 of vErrors){if(!err163.emUsed){emErrs27.push(err163);}}vErrors = emErrs27;errors = emErrs27.length;}var _valid15 = _errs156 === errors;valid68 = _valid15;}if(!valid68){const err164 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.type === undefined){const err165 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(data41.type !== undefined){let data47 = data41.type;if(typeof data47 !== "string"){const err166 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(!((((((((((data47 === "property") || (data47 === "camunda:property")) || (data47 === "camunda:inputParameter")) || (data47 === "camunda:outputParameter")) || (data47 === "camunda:in")) || (data47 === "camunda:out")) || (data47 === "camunda:in:businessKey")) || (data47 === "camunda:executionListener")) || (data47 === "camunda:field")) || (data47 === "camunda:errorEventDefinition"))){const err167 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema27.items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if(errors > 0){const emErrs28 = [];for(const err168 of vErrors){if(((((err168.keyword !== "errorMessage") && (!err168.emUsed)) && ((err168.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/type") || ((err168.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/type") === 0) && (err168.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/type".length] === "/")))) && (err168.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err168.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs28.push(err168);err168.emUsed = true;}}if(emErrs28.length){const err169 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs28},message:"invalid property.binding type " + JSON.stringify(data47) + "; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}const emErrs29 = [];for(const err170 of vErrors){if(!err170.emUsed){emErrs29.push(err170);}}vErrors = emErrs29;errors = emErrs29.length;}}if(data41.name !== undefined){if(typeof data41.name !== "string"){const err171 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}if(data41.event !== undefined){if(typeof data41.event !== "string"){const err172 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}if(data41.scriptFormat !== undefined){if(typeof data41.scriptFormat !== "string"){const err173 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}if(data41.source !== undefined){if(typeof data41.source !== "string"){const err174 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}if(data41.target !== undefined){if(typeof data41.target !== "string"){const err175 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(data41.expression !== undefined){if(typeof data41.expression !== "boolean"){const err176 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data41.variables !== undefined){let data54 = data41.variables;if(typeof data54 !== "string"){const err177 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if(!((data54 === "all") || (data54 === "local"))){const err178 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/enum",params:{allowedValues: schema27.items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data41.sourceExpression !== undefined){if(typeof data41.sourceExpression !== "string"){const err179 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}}else {const err180 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}}else {const err181 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}if(errors > 0){const emErrors6 = {"required":[]};const templates6 = {required:function(){return "missing binding for property \"" + JSON.stringify(i3) + "\""}};for(const err182 of vErrors){if((((((err182.keyword !== "errorMessage") && (!err182.emUsed)) && (err182.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3)) && (err182.keyword in emErrors6)) && (err182.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err182.schemaPath.slice(38)))){emErrors6[err182.keyword].push(err182);err182.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err183 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema27.items.errorMessage[key6]};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}const emErrs30 = [];for(const err184 of vErrors){if(!err184.emUsed){emErrs30.push(err184);}}vErrors = emErrs30;errors = emErrs30.length;}}}else {const err185 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}}else {const err186 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if(errors > 0){const emErrors7 = {"required":{"type":[],"properties":[]}};const templates7 = {required:{properties:function(){return "invalid scope " + JSON.stringify(data21 && data21.type) + ", missing properties=[]"}}};let emPropParams3;let emParamsErrors3;for(const err187 of vErrors){if((((((err187.keyword !== "errorMessage") && (!err187.emUsed)) && (err187.dataPath === dataPath+"/scopes/" + i2)) && (err187.keyword in emErrors7)) && (err187.schemaPath.indexOf("#/properties/scopes/items") === 0)) && (/^\/[^\/]*$/.test(err187.schemaPath.slice(25)))){emPropParams3 = obj0$1[err187.keyword];emParamsErrors3 = emErrors7[err187.keyword][err187.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err187);err187.emUsed = true;}}}for(const key7 in emErrors7){for(const keyProp3 in emErrors7[key7]){emParamsErrors3 = emErrors7[key7][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates7[key7] && templates7[key7][keyProp3];const err188 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17$1.properties.scopes.items.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}}const emErrs31 = [];for(const err189 of vErrors){if(!err189.emUsed){emErrs31.push(err189);}}vErrors = emErrs31;errors = emErrs31.length;}}}else {const err190 = {keyword:"type",dataPath:dataPath+"/scopes",schemaPath:"#/properties/scopes/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}}else {const err191 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}validate15$1.errors = vErrors;return errors === 0;}function validate14$1(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15$1(data, {dataPath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15$1.errors : vErrors.concat(validate15$1.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs2 = errors;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate15$1(data[i0], {dataPath:dataPath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15$1.errors : vErrors.concat(validate15$1.errors);errors = vErrors.length;}}}else {const err0 = {keyword:"type",dataPath,schemaPath:"#/oneOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14$1.errors = vErrors;return errors === 0;}
122789
+ standaloneValidator.exports = validate14$1;standaloneValidator.exports.default = validate14$1;const schema17$1 = {"type":"object","allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"name":{"$id":"#/name","type":"string","description":"The name of the element template."},"id":{"$id":"#/id","type":"string","description":"The identifier of the element template."},"description":{"$id":"#/description","type":"string","description":"The description of the element template."},"version":{"$id":"#/version","type":"integer","description":"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"deprecated":{"$id":"#/deprecated","type":["boolean","object"],"description":"Indicates whether the element template is deprecated.","properties":{"message":{"$id":"#/deprecated/message","type":"string","description":"Optional message to describe migration path."},"documentationRef":{"$id":"#/deprecated/documentationRef","type":"string","pattern":"^(https|http)://.*","description":"Optional link to migration documentation."}}},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}],"errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""}}},"elementType":{"$id":"#/elementType","type":"object","description":"The BPMN type the element will be transformed into.","default":{},"required":["value"],"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}],"errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""}}},"errorMessage":{"required":{"value":"missing elementType value"}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","description":"Select whether non-template entries are visible in the properties panel."},"groups":{"$id":"#/groups","type":"array","description":"Custom fields can be ordered together via groups.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"The id of the custom group"},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the custom group"}},"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}}}},"documentationRef":{"$id":"#/documentationRef","type":"string","pattern":"^(https|http)://.*","errorMessage":{"pattern":"Malformed documentation URL, must match \"^(https|http)://.*\""}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"},"scopes":{"$id":"#/scopes","type":"array","description":"Special scoped bindings that allow you to configure nested elements.","allOf":[{"examples":[[{"type":"bpmn:Error","id":"Error_1","properties":[{"value":"error-code","binding":{"type":"property","name":"errorCode"}},{"value":"error-message","binding":{"type":"property","name":"camunda:errorMessage"}},{"value":"error-name","binding":{"type":"property","name":"name"}}]}]]}],"items":{"$id":"#/scopes/item","type":"object","default":{},"properties":{"type":{"$id":"#scopes/item/type","type":"string","description":"The type of a scope.","enum":["camunda:Connector","bpmn:Error"],"errorMessage":"invalid scope type ${0}; must be any of { camunda:Connector, bpmn:Error }"},"properties":{"$id":"#/scopes/properties","description":"List of properties of a scope.","default":[],"allOf":[{"$ref":"#/definitions/properties/allOf/0"},{"$ref":"#/definitions/properties/allOf/1"}]}},"required":["type","properties"],"allOf":[{"if":{"properties":{"type":{"enum":["bpmn:Error"]}},"required":["type"]},"then":{"required":["id"],"errorMessage":"invalid scope ${0/type}, missing id"}}],"errorMessage":{"required":{"type":"invalid scope, missing type","properties":"invalid scope ${0/type}, missing properties=[]"}}}}}};const schema27 = {"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"camunda:executionListener"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["Hidden"],"errorMessage":"invalid property type ${1/type} for binding type \"camunda:executionListener\"; must be \"Hidden\""},"binding":{"properties":{"implementationType":{"enum":["class","delegateExpression","expression","script"]}},"oneOf":[{"not":{"properties":{"implementationType":{"const":"script"}}}},{"required":["scriptFormat"]},{"allOf":[{"not":{"required":["implementationType"]}},{"not":{"required":["scriptFormat"]}}]}]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:inputParameter","camunda:field"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Camunda extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","camunda:property","camunda:inputParameter","camunda:field"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"camunda:outputParameter"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"camunda:in"}},"required":["type"]},"then":{"anyOf":[{"required":["variables"]},{"required":["target"]}],"errorMessage":"property.binding ${0/type} requires variables, target, or both"}},{"if":{"properties":{"type":{"const":"camunda:out"}},"required":["type"]},"then":{"oneOf":[{"required":["variables"],"not":{"anyOf":[{"required":["source"]},{"required":["sourceExpression"]}]}},{"required":["source"],"not":{"anyOf":[{"required":["variables"]},{"required":["sourceExpression"]}]}},{"required":["sourceExpression"],"not":{"anyOf":[{"required":["variables"]},{"required":["source"]}]}},{"required":["variables","sourceExpression"],"not":{"required":["source"]}},{"required":["variables","source"],"not":{"required":["sourceExpression"]}}],"errorMessage":"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{"if":{"properties":{"type":{"const":"camunda:errorEventDefinition"}},"required":["type"]},"then":{"oneOf":[{"required":["errorRef"]}],"errorMessage":"property.binding ${0/type} requires errorRef"}},{"examples":[{"type":"property","name":"name"},{"type":"camunda:property","name":"property"},{"type":"camunda:inputParameter","name":"input"},{"type":"camunda:outputParameter","source":"output"},{"type":"camunda:in","target":"target"},{"type":"camunda:in:businessKey"},{"type":"camunda:out","source":"output"},{"type":"camunda:executionListener","event":"start"},{"type":"camunda:field","name":"field"},{"type":"camunda:errorEventDefinition","errorRef":"error"},{"type":"camunda:errorEventDefinition","errorRef":"error"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","enum":["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],"description":"The type of a property binding.","errorMessage":"invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"event":{"$id":"#/properties/property/binding/event","type":"string","description":"The event type of a property binding (camunda:executionListener)."},"scriptFormat":{"$id":"#/properties/property/binding/scriptFormat","type":"string","description":"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (camunda:outputParameter, camunda:out)."},"target":{"$id":"#/properties/property/binding/target","type":"string","description":"The target value of a property binding (camunda:in)."},"expression":{"$id":"#/properties/property/binding/expression","type":"boolean","description":"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},"variables":{"$id":"#/properties/property/binding/variables","type":"string","enum":["all","local"],"description":"The variable mapping of a property binding (camunda:in)."},"sourceExpression":{"$id":"#/properties/property/binding/sourceExpression","type":"string","description":"The string containing the expression for the source attribute (camunda:out)."}}}},"errorMessage":{"required":"missing binding for property \"${0#}\""}}};const pattern0$1 = new RegExp("^(https|http)://.*", "u");const pattern1$1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const obj0$1 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const schema18$1 = {"allOf":[{"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property."},"value":{"$id":"#/properties/property/value","type":["string","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."},"condition":{"$id":"#/condition","type":"object","description":"Condition(s) to activate the binding.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}}},"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},"minItems":1}},"required":["allMatch"]}]}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"camunda:executionListener"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["Hidden"],"errorMessage":"invalid property type ${1/type} for binding type \"camunda:executionListener\"; must be \"Hidden\""},"binding":{"properties":{"implementationType":{"enum":["class","delegateExpression","expression","script"]}},"oneOf":[{"not":{"properties":{"implementationType":{"const":"script"}}}},{"required":["scriptFormat"]},{"allOf":[{"not":{"required":["implementationType"]}},{"not":{"required":["scriptFormat"]}}]}]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:inputParameter","camunda:field"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Camunda extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","camunda:property","camunda:inputParameter","camunda:field"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"camunda:outputParameter"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"camunda:in"}},"required":["type"]},"then":{"anyOf":[{"required":["variables"]},{"required":["target"]}],"errorMessage":"property.binding ${0/type} requires variables, target, or both"}},{"if":{"properties":{"type":{"const":"camunda:out"}},"required":["type"]},"then":{"oneOf":[{"required":["variables"],"not":{"anyOf":[{"required":["source"]},{"required":["sourceExpression"]}]}},{"required":["source"],"not":{"anyOf":[{"required":["variables"]},{"required":["sourceExpression"]}]}},{"required":["sourceExpression"],"not":{"anyOf":[{"required":["variables"]},{"required":["source"]}]}},{"required":["variables","sourceExpression"],"not":{"required":["source"]}},{"required":["variables","source"],"not":{"required":["sourceExpression"]}}],"errorMessage":"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{"if":{"properties":{"type":{"const":"camunda:errorEventDefinition"}},"required":["type"]},"then":{"oneOf":[{"required":["errorRef"]}],"errorMessage":"property.binding ${0/type} requires errorRef"}},{"examples":[{"type":"property","name":"name"},{"type":"camunda:property","name":"property"},{"type":"camunda:inputParameter","name":"input"},{"type":"camunda:outputParameter","source":"output"},{"type":"camunda:in","target":"target"},{"type":"camunda:in:businessKey"},{"type":"camunda:out","source":"output"},{"type":"camunda:executionListener","event":"start"},{"type":"camunda:field","name":"field"},{"type":"camunda:errorEventDefinition","errorRef":"error"},{"type":"camunda:errorEventDefinition","errorRef":"error"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","enum":["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],"description":"The type of a property binding.","errorMessage":"invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"event":{"$id":"#/properties/property/binding/event","type":"string","description":"The event type of a property binding (camunda:executionListener)."},"scriptFormat":{"$id":"#/properties/property/binding/scriptFormat","type":"string","description":"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (camunda:outputParameter, camunda:out)."},"target":{"$id":"#/properties/property/binding/target","type":"string","description":"The target value of a property binding (camunda:in)."},"expression":{"$id":"#/properties/property/binding/expression","type":"boolean","description":"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},"variables":{"$id":"#/properties/property/binding/variables","type":"string","enum":["all","local"],"description":"The variable mapping of a property binding (camunda:in)."},"sourceExpression":{"$id":"#/properties/property/binding/sourceExpression","type":"string","description":"The string containing the expression for the source attribute (camunda:out)."}}}},"errorMessage":{"required":"missing binding for property \"${0#}\""}}}]};const schema20$1 = {"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}};const func0$1 = equal.exports;function validate17$1(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {keyword:"type",dataPath:dataPath+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {keyword:"type",dataPath:dataPath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {keyword:"type",dataPath:dataPath+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isActive === undefined){const err6 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/required",params:{missingProperty: "isActive"},message:"should have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.isActive !== undefined){if(typeof data.isActive !== "boolean"){const err7 = {keyword:"type",dataPath:dataPath+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/properties/isActive/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}var _valid1 = _errs14 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 2];}else {if(_valid1){valid2 = true;passing1 = 2;}}}if(!valid2){const err8 = {keyword:"oneOf",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.property === undefined){const err9 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.type !== undefined){if(!func0$1(data.type, "simple")){const err10 = {keyword:"const",dataPath:dataPath+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err11 = {keyword:"type",dataPath:dataPath+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {keyword:"type",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err13 of vErrors){if((((((err13.keyword !== "errorMessage") && (!err13.emUsed)) && (err13.dataPath === dataPath)) && (err13.keyword in emErrors0)) && (err13.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err13.schemaPath.slice(81)))){emPropParams0 = obj0$1[err13.keyword];emParamsErrors0 = emErrors0[err13.keyword][err13.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err13);err13.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err14 = {keyword:"errorMessage",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20$1.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}const emErrs0 = [];for(const err15 of vErrors){if(!err15.emUsed){emErrs0.push(err15);}}vErrors = emErrs0;errors = emErrs0.length;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs20 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err16 = {keyword:"required",dataPath,schemaPath:"#/oneOf/1/required",params:{missingProperty: "allMatch"},message:"should have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.allMatch !== undefined){let data6 = data.allMatch;if(Array.isArray(data6)){if(data6.length < 1){const err17 = {keyword:"minItems",dataPath:dataPath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",params:{limit: 1},message:"should NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const len1 = data6.length;for(let i1=0; i1<len1; i1++){let data7 = data6[i1];const _errs26 = errors;let valid13 = false;let passing2 = null;const _errs27 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.equals === undefined){const err18 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data7.equals !== undefined){let data8 = data7.equals;if(((typeof data8 !== "string") && (!(typeof data8 == "number"))) && (typeof data8 !== "boolean")){const err19 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid2 = _errs27 === errors;if(_valid2){valid13 = true;passing2 = 0;}const _errs30 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.oneOf === undefined){const err20 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data7.oneOf !== undefined){let data9 = data7.oneOf;if(Array.isArray(data9)){const len2 = data9.length;for(let i2=0; i2<len2; i2++){let data10 = data9[i2];if((typeof data10 !== "string") && (!(typeof data10 == "number"))){const err21 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid2 = _errs30 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 1];}else {if(_valid2){valid13 = true;passing2 = 1;}const _errs35 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.isActive === undefined){const err23 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/required",params:{missingProperty: "isActive"},message:"should have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data7.isActive !== undefined){if(typeof data7.isActive !== "boolean"){const err24 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/properties/isActive/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid2 = _errs35 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 2];}else {if(_valid2){valid13 = true;passing2 = 2;}}}if(!valid13){const err25 = {keyword:"oneOf",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.property === undefined){const err26 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data7.type !== undefined){if(!func0$1(data7.type, "simple")){const err27 = {keyword:"const",dataPath:dataPath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data7.property !== undefined){if(typeof data7.property !== "string"){const err28 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.dataPath === dataPath+"/allMatch/" + i1)) && (err30.keyword in emErrors1)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(81)))){emPropParams1 = obj0$1[err30.keyword];emParamsErrors1 = emErrors1[err30.keyword][err30.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err30);err30.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err31 = {keyword:"errorMessage",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20$1.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs1 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs1.push(err32);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err33 = {keyword:"type",dataPath:dataPath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}var _valid0 = _errs20 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err34 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate17$1.errors = vErrors;return errors === 0;}function validate16$1(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs5 = errors;let valid5 = true;const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if(!func0$1(data0.type, "Dropdown")){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs6 === errors;errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}if(_valid0){const _errs8 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {keyword:"required",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.dataPath === dataPath+"/" + i0) || ((err3.dataPath.indexOf(dataPath+"/" + i0) === 0) && (err3.dataPath[dataPath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/allOf/0/items/allOf/0/then") === 0)) && (err3.schemaPath["#/allOf/0/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs8 === errors;valid5 = _valid0;}if(!valid5){const err6 = {keyword:"if",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err7 = {keyword:"type",dataPath:dataPath+"/" + i0+"/id",schemaPath:"#/allOf/0/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data0.value !== undefined){let data3 = data0.value;if((typeof data3 !== "string") && (typeof data3 !== "boolean")){const err8 = {keyword:"type",dataPath:dataPath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",params:{type: schema18$1.allOf[0].items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err9 = {keyword:"type",dataPath:dataPath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err10 = {keyword:"type",dataPath:dataPath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err11 = {keyword:"type",dataPath:dataPath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err12 = {keyword:"type",dataPath:dataPath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data0.choices !== undefined){let data8 = data0.choices;if(Array.isArray(data8)){const len1 = data8.length;for(let i1=0; i1<len1; i1++){let data9 = data8[i1];if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.value === undefined){const err13 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data9.name === undefined){const err14 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data9.name !== undefined){if(typeof data9.name !== "string"){const err15 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data9.value !== undefined){if(typeof data9.value !== "string"){const err16 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data9.condition !== undefined){if(!(validate17$1(data9.condition, {dataPath:dataPath+"/" + i0+"/choices/" + i1+"/condition",parentData:data9,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17$1.errors : vErrors.concat(validate17$1.errors);errors = vErrors.length;}}}else {const err17 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(errors > 0){const emErrors0 = {"required":[]};const templates0 = {};for(const err18 of vErrors){if((((((err18.keyword !== "errorMessage") && (!err18.emUsed)) && (err18.dataPath === dataPath+"/" + i0+"/choices/" + i1)) && (err18.keyword in emErrors0)) && (err18.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err18.schemaPath.slice(40)))){emErrors0[err18.keyword].push(err18);err18.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err19 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema18$1.allOf[0].items.properties.choices.items.errorMessage[key0]};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}const emErrs2 = [];for(const err20 of vErrors){if(!err20.emUsed){emErrs2.push(err20);}}vErrors = emErrs2;errors = emErrs2.length;}}}else {const err21 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data0.constraints !== undefined){let data13 = data0.constraints;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.notEmpty !== undefined){if(typeof data13.notEmpty !== "boolean"){const err22 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data13.minLength !== undefined){if(!(typeof data13.minLength == "number")){const err23 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data13.maxLength !== undefined){if(!(typeof data13.maxLength == "number")){const err24 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data13.pattern !== undefined){let data17 = data13.pattern;const _errs39 = errors;let valid13 = false;let passing0 = null;const _errs40 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){if(typeof data17.value !== "string"){const err25 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data17.message !== undefined){if(typeof data17.message !== "string"){const err26 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid1 = _errs40 === errors;if(_valid1){valid13 = true;passing0 = 0;}const _errs46 = errors;if(typeof data17 !== "string"){const err28 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid1 = _errs46 === errors;if(_valid1 && valid13){valid13 = false;passing0 = [passing0, 1];}else {if(_valid1){valid13 = true;passing0 = 1;}}if(!valid13){const err29 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs39;if(vErrors !== null){if(_errs39){vErrors.length = _errs39;}else {vErrors = null;}}}}}else {const err30 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err31 = {keyword:"type",dataPath:dataPath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data0.condition !== undefined){let data21 = data0.condition;if(!(data21 && typeof data21 == "object" && !Array.isArray(data21))){const err32 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}const _errs52 = errors;let valid15 = false;let passing1 = null;const _errs53 = errors;const _errs56 = errors;let valid17 = false;let passing2 = null;const _errs57 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.equals === undefined){const err33 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data21.equals !== undefined){let data22 = data21.equals;if(((typeof data22 !== "string") && (!(typeof data22 == "number"))) && (typeof data22 !== "boolean")){const err34 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}var _valid3 = _errs57 === errors;if(_valid3){valid17 = true;passing2 = 0;}const _errs60 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.oneOf === undefined){const err35 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data21.oneOf !== undefined){let data23 = data21.oneOf;if(Array.isArray(data23)){const len2 = data23.length;for(let i2=0; i2<len2; i2++){let data24 = data23[i2];if((typeof data24 !== "string") && (!(typeof data24 == "number"))){const err36 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}var _valid3 = _errs60 === errors;if(_valid3 && valid17){valid17 = false;passing2 = [passing2, 1];}else {if(_valid3){valid17 = true;passing2 = 1;}const _errs65 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.isActive === undefined){const err38 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/required",params:{missingProperty: "isActive"},message:"should have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(data21.isActive !== undefined){if(typeof data21.isActive !== "boolean"){const err39 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/properties/isActive/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid3 = _errs65 === errors;if(_valid3 && valid17){valid17 = false;passing2 = [passing2, 2];}else {if(_valid3){valid17 = true;passing2 = 2;}}}if(!valid17){const err40 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}else {errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}}if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.property === undefined){const err41 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data21.type !== undefined){if(!func0$1(data21.type, "simple")){const err42 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data21.property !== undefined){if(typeof data21.property !== "string"){const err43 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}else {const err44 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err45 of vErrors){if((((((err45.keyword !== "errorMessage") && (!err45.emUsed)) && (err45.dataPath === dataPath+"/" + i0+"/condition")) && (err45.keyword in emErrors1)) && (err45.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err45.schemaPath.slice(81)))){emPropParams0 = obj0$1[err45.keyword];emParamsErrors0 = emErrors1[err45.keyword][err45.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err45);err45.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp0 in emErrors1[key1]){emParamsErrors0 = emErrors1[key1][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates1[key1] && templates1[key1][keyProp0];const err46 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20$1.errorMessage[key1][keyProp0]};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}const emErrs3 = [];for(const err47 of vErrors){if(!err47.emUsed){emErrs3.push(err47);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid2 = _errs53 === errors;if(_valid2){valid15 = true;passing1 = 0;}const _errs71 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.allMatch === undefined){const err48 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/required",params:{missingProperty: "allMatch"},message:"should have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if(data21.allMatch !== undefined){let data28 = data21.allMatch;if(Array.isArray(data28)){if(data28.length < 1){const err49 = {keyword:"minItems",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/minItems",params:{limit: 1},message:"should NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}const len3 = data28.length;for(let i3=0; i3<len3; i3++){let data29 = data28[i3];const _errs77 = errors;let valid28 = false;let passing3 = null;const _errs78 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.equals === undefined){const err50 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(data29.equals !== undefined){let data30 = data29.equals;if(((typeof data30 !== "string") && (!(typeof data30 == "number"))) && (typeof data30 !== "boolean")){const err51 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}var _valid4 = _errs78 === errors;if(_valid4){valid28 = true;passing3 = 0;}const _errs81 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.oneOf === undefined){const err52 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(data29.oneOf !== undefined){let data31 = data29.oneOf;if(Array.isArray(data31)){const len4 = data31.length;for(let i4=0; i4<len4; i4++){let data32 = data31[i4];if((typeof data32 !== "string") && (!(typeof data32 == "number"))){const err53 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf/" + i4,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}else {const err54 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}var _valid4 = _errs81 === errors;if(_valid4 && valid28){valid28 = false;passing3 = [passing3, 1];}else {if(_valid4){valid28 = true;passing3 = 1;}const _errs86 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.isActive === undefined){const err55 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/required",params:{missingProperty: "isActive"},message:"should have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data29.isActive !== undefined){if(typeof data29.isActive !== "boolean"){const err56 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/properties/isActive/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}var _valid4 = _errs86 === errors;if(_valid4 && valid28){valid28 = false;passing3 = [passing3, 2];}else {if(_valid4){valid28 = true;passing3 = 2;}}}if(!valid28){const err57 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing3},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {errors = _errs77;if(vErrors !== null){if(_errs77){vErrors.length = _errs77;}else {vErrors = null;}}}if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.property === undefined){const err58 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(data29.type !== undefined){if(!func0$1(data29.type, "simple")){const err59 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}if(data29.property !== undefined){if(typeof data29.property !== "string"){const err60 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}}else {const err61 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(errors > 0){const emErrors2 = {"required":{"property":[]}};const templates2 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err62 of vErrors){if((((((err62.keyword !== "errorMessage") && (!err62.emUsed)) && (err62.dataPath === dataPath+"/" + i0+"/condition/allMatch/" + i3)) && (err62.keyword in emErrors2)) && (err62.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err62.schemaPath.slice(81)))){emPropParams1 = obj0$1[err62.keyword];emParamsErrors1 = emErrors2[err62.keyword][err62.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err62);err62.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp1 in emErrors2[key2]){emParamsErrors1 = emErrors2[key2][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates2[key2] && templates2[key2][keyProp1];const err63 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20$1.errorMessage[key2][keyProp1]};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}const emErrs4 = [];for(const err64 of vErrors){if(!err64.emUsed){emErrs4.push(err64);}}vErrors = emErrs4;errors = emErrs4.length;}}}else {const err65 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}var _valid2 = _errs71 === errors;if(_valid2 && valid15){valid15 = false;passing1 = [passing1, 1];}else {if(_valid2){valid15 = true;passing1 = 1;}}if(!valid15){const err66 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}}}}else {const err67 = {keyword:"type",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}else {const err68 = {keyword:"type",dataPath,schemaPath:"#/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(Array.isArray(data)){const len5 = data.length;for(let i5=0; i5<len5; i5++){let data36 = data[i5];const _errs97 = errors;let valid39 = true;const _errs98 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err69 = {};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}else {if(data36.binding !== undefined){let data37 = data36.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {if(data37.type !== undefined){if(!func0$1(data37.type, "property")){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}}}}}var _valid5 = _errs98 === errors;errors = _errs97;if(vErrors !== null){if(_errs97){vErrors.length = _errs97;}else {vErrors = null;}}if(_valid5){const _errs101 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data39 = data36.type;if(!(((((data39 === "String") || (data39 === "Text")) || (data39 === "Hidden")) || (data39 === "Dropdown")) || (data39 === "Boolean"))){const err72 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(errors > 0){const emErrs5 = [];for(const err73 of vErrors){if(((((err73.keyword !== "errorMessage") && (!err73.emUsed)) && ((err73.dataPath === dataPath+"/" + i5+"/type") || ((err73.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err73.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err73.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err73.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs5.push(err73);err73.emUsed = true;}}if(emErrs5.length){const err74 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs5},message:"invalid property type " + JSON.stringify(data39) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}const emErrs6 = [];for(const err75 of vErrors){if(!err75.emUsed){emErrs6.push(err75);}}vErrors = emErrs6;errors = emErrs6.length;}}}var _valid5 = _errs101 === errors;valid39 = _valid5;}if(!valid39){const err76 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}const _errs104 = errors;let valid43 = true;const _errs105 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}else {if(data36.binding !== undefined){let data40 = data36.binding;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.type === undefined) && ("type")){const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {if(data40.type !== undefined){if(!func0$1(data40.type, "camunda:executionListener")){const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}}}}}var _valid6 = _errs105 === errors;errors = _errs104;if(vErrors !== null){if(_errs104){vErrors.length = _errs104;}else {vErrors = null;}}if(_valid6){const _errs108 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){if(!(data36.type === "Hidden")){const err80 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(errors > 0){const emErrs7 = [];for(const err81 of vErrors){if(((((err81.keyword !== "errorMessage") && (!err81.emUsed)) && ((err81.dataPath === dataPath+"/" + i5+"/type") || ((err81.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err81.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err81.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err81.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs7.push(err81);err81.emUsed = true;}}if(emErrs7.length){const err82 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data36 && data36.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}const emErrs8 = [];for(const err83 of vErrors){if(!err83.emUsed){emErrs8.push(err83);}}vErrors = emErrs8;errors = emErrs8.length;}}if(data36.binding !== undefined){let data43 = data36.binding;const _errs111 = errors;let valid47 = false;let passing4 = null;const _errs112 = errors;const _errs113 = errors;const _errs114 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.implementationType !== undefined){if(!func0$1(data43.implementationType, "script")){const err84 = {};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}var valid48 = _errs114 === errors;if(!valid48){errors = _errs113;if(vErrors !== null){if(_errs113){vErrors.length = _errs113;}else {vErrors = null;}}}else {const err85 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}var _valid7 = _errs112 === errors;if(_valid7){valid47 = true;passing4 = 0;}const _errs116 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.scriptFormat === undefined){const err86 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/1/required",params:{missingProperty: "scriptFormat"},message:"should have required property '"+"scriptFormat"+"'"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}var _valid7 = _errs116 === errors;if(_valid7 && valid47){valid47 = false;passing4 = [passing4, 1];}else {if(_valid7){valid47 = true;passing4 = 1;}const _errs117 = errors;const _errs119 = errors;const _errs120 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.implementationType === undefined) && ("implementationType")){const err87 = {};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}var valid51 = _errs120 === errors;if(!valid51){errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}else {const err88 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}const _errs122 = errors;const _errs123 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.scriptFormat === undefined) && ("scriptFormat")){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}var valid52 = _errs123 === errors;if(!valid52){errors = _errs122;if(vErrors !== null){if(_errs122){vErrors.length = _errs122;}else {vErrors = null;}}}else {const err90 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/1/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}var _valid7 = _errs117 === errors;if(_valid7 && valid47){valid47 = false;passing4 = [passing4, 2];}else {if(_valid7){valid47 = true;passing4 = 2;}}}if(!valid47){const err91 = {keyword:"oneOf",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf",params:{passingSchemas: passing4},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}else {errors = _errs111;if(vErrors !== null){if(_errs111){vErrors.length = _errs111;}else {vErrors = null;}}}if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.implementationType !== undefined){let data45 = data43.implementationType;if(!((((data45 === "class") || (data45 === "delegateExpression")) || (data45 === "expression")) || (data45 === "script"))){const err92 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/implementationType",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/properties/implementationType/enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[1].then.properties.binding.properties.implementationType.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}}}}var _valid6 = _errs108 === errors;valid43 = _valid6;}if(!valid43){const err93 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}const _errs126 = errors;let valid54 = true;const _errs127 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err94 = {};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}else {if(data36.binding !== undefined){let data46 = data36.binding;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err95 = {};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}else {if(data46.type !== undefined){let data47 = data46.type;if(!((((((data47 === "camunda:property") || (data47 === "camunda:outputParameter")) || (data47 === "camunda:in")) || (data47 === "camunda:in:businessKey")) || (data47 === "camunda:out")) || (data47 === "camunda:errorEventDefinition"))){const err96 = {};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}}}}}}var _valid8 = _errs127 === errors;errors = _errs126;if(vErrors !== null){if(_errs126){vErrors.length = _errs126;}else {vErrors = null;}}if(_valid8){const _errs130 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data48 = data36.type;if(!(((data48 === "String") || (data48 === "Hidden")) || (data48 === "Dropdown"))){const err97 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}if(errors > 0){const emErrs9 = [];for(const err98 of vErrors){if(((((err98.keyword !== "errorMessage") && (!err98.emUsed)) && ((err98.dataPath === dataPath+"/" + i5+"/type") || ((err98.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err98.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err98.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err98.schemaPath["#/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs9.push(err98);err98.emUsed = true;}}if(emErrs9.length){const err99 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data48) + " for binding type " + JSON.stringify(data36 && data36.binding && data36.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}const emErrs10 = [];for(const err100 of vErrors){if(!err100.emUsed){emErrs10.push(err100);}}vErrors = emErrs10;errors = emErrs10.length;}}}var _valid8 = _errs130 === errors;valid54 = _valid8;}if(!valid54){const err101 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}const _errs133 = errors;let valid58 = true;const _errs134 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}else {if(data36.binding !== undefined){let data49 = data36.binding;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.type === undefined) && ("type")){const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}else {if(data49.type !== undefined){let data50 = data49.type;if(!((data50 === "camunda:inputParameter") || (data50 === "camunda:field"))){const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}}}}}}var _valid9 = _errs134 === errors;errors = _errs133;if(vErrors !== null){if(_errs133){vErrors.length = _errs133;}else {vErrors = null;}}if(_valid9){const _errs137 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data51 = data36.type;if(!((((data51 === "String") || (data51 === "Text")) || (data51 === "Hidden")) || (data51 === "Dropdown"))){const err105 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/3/then/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(errors > 0){const emErrs11 = [];for(const err106 of vErrors){if(((((err106.keyword !== "errorMessage") && (!err106.emUsed)) && ((err106.dataPath === dataPath+"/" + i5+"/type") || ((err106.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err106.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err106.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err106.schemaPath["#/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs11.push(err106);err106.emUsed = true;}}if(emErrs11.length){const err107 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors: emErrs11},message:"invalid property type " + JSON.stringify(data51) + " for binding type " + JSON.stringify(data36 && data36.binding && data36.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}const emErrs12 = [];for(const err108 of vErrors){if(!err108.emUsed){emErrs12.push(err108);}}vErrors = emErrs12;errors = emErrs12.length;}}}var _valid9 = _errs137 === errors;valid58 = _valid9;}if(!valid58){const err109 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding === undefined){const err110 = {keyword:"required",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data36.binding !== undefined){let data52 = data36.binding;const _errs142 = errors;let valid64 = true;const _errs143 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.type === undefined) && ("type")){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}else {if(data52.type !== undefined){let data53 = data52.type;if(!((((data53 === "property") || (data53 === "camunda:property")) || (data53 === "camunda:inputParameter")) || (data53 === "camunda:field"))){const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}}var _valid10 = _errs143 === errors;errors = _errs142;if(vErrors !== null){if(_errs142){vErrors.length = _errs142;}else {vErrors = null;}}if(_valid10){const _errs145 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.name === undefined){const err113 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(errors > 0){const emErrs13 = [];for(const err114 of vErrors){if(((((err114.keyword !== "errorMessage") && (!err114.emUsed)) && ((err114.dataPath === dataPath+"/" + i5+"/binding") || ((err114.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err114.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err114.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err114.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs13.push(err114);err114.emUsed = true;}}if(emErrs13.length){const err115 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs13},message:"property.binding " + JSON.stringify(data52 && data52.type) + " requires name"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const emErrs14 = [];for(const err116 of vErrors){if(!err116.emUsed){emErrs14.push(err116);}}vErrors = emErrs14;errors = emErrs14.length;}var _valid10 = _errs145 === errors;valid64 = _valid10;}if(!valid64){const err117 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}const _errs147 = errors;let valid66 = true;const _errs148 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.type === undefined) && ("type")){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {if(data52.type !== undefined){if(!func0$1(data52.type, "camunda:outputParameter")){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}}var _valid11 = _errs148 === errors;errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}if(_valid11){const _errs150 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.source === undefined){const err120 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(errors > 0){const emErrs15 = [];for(const err121 of vErrors){if(((((err121.keyword !== "errorMessage") && (!err121.emUsed)) && ((err121.dataPath === dataPath+"/" + i5+"/binding") || ((err121.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err121.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err121.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err121.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs15.push(err121);err121.emUsed = true;}}if(emErrs15.length){const err122 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs15},message:"property.binding " + JSON.stringify(data52 && data52.type) + " requires source"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}const emErrs16 = [];for(const err123 of vErrors){if(!err123.emUsed){emErrs16.push(err123);}}vErrors = emErrs16;errors = emErrs16.length;}var _valid11 = _errs150 === errors;valid66 = _valid11;}if(!valid66){const err124 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}const _errs152 = errors;let valid68 = true;const _errs153 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.type === undefined) && ("type")){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}else {if(data52.type !== undefined){if(!func0$1(data52.type, "camunda:in")){const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}}}var _valid12 = _errs153 === errors;errors = _errs152;if(vErrors !== null){if(_errs152){vErrors.length = _errs152;}else {vErrors = null;}}if(_valid12){const _errs155 = errors;const _errs156 = errors;let valid70 = false;const _errs157 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.variables === undefined){const err127 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}var _valid13 = _errs157 === errors;valid70 = valid70 || _valid13;if(!valid70){const _errs158 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.target === undefined){const err128 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",params:{missingProperty: "target"},message:"should have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}var _valid13 = _errs158 === errors;valid70 = valid70 || _valid13;}if(!valid70){const err129 = {keyword:"anyOf",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf",params:{},message:"should match some schema in anyOf"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}else {errors = _errs156;if(vErrors !== null){if(_errs156){vErrors.length = _errs156;}else {vErrors = null;}}}if(errors > 0){const emErrs17 = [];for(const err130 of vErrors){if(((((err130.keyword !== "errorMessage") && (!err130.emUsed)) && ((err130.dataPath === dataPath+"/" + i5+"/binding") || ((err130.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err130.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err130.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err130.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs17.push(err130);err130.emUsed = true;}}if(emErrs17.length){const err131 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs17},message:"property.binding " + JSON.stringify(data52 && data52.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}const emErrs18 = [];for(const err132 of vErrors){if(!err132.emUsed){emErrs18.push(err132);}}vErrors = emErrs18;errors = emErrs18.length;}var _valid12 = _errs155 === errors;valid68 = _valid12;}if(!valid68){const err133 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}const _errs160 = errors;let valid71 = true;const _errs161 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.type === undefined) && ("type")){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}else {if(data52.type !== undefined){if(!func0$1(data52.type, "camunda:out")){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}}}var _valid14 = _errs161 === errors;errors = _errs160;if(vErrors !== null){if(_errs160){vErrors.length = _errs160;}else {vErrors = null;}}if(_valid14){const _errs163 = errors;const _errs164 = errors;let valid73 = false;let passing5 = null;const _errs165 = errors;const _errs166 = errors;const _errs167 = errors;const _errs168 = errors;let valid75 = false;const _errs169 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.source === undefined) && ("source")){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}var _valid16 = _errs169 === errors;valid75 = valid75 || _valid16;if(!valid75){const _errs170 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.sourceExpression === undefined) && ("sourceExpression")){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}var _valid16 = _errs170 === errors;valid75 = valid75 || _valid16;}if(!valid75){const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}else {errors = _errs168;if(vErrors !== null){if(_errs168){vErrors.length = _errs168;}else {vErrors = null;}}}var valid74 = _errs167 === errors;if(!valid74){errors = _errs166;if(vErrors !== null){if(_errs166){vErrors.length = _errs166;}else {vErrors = null;}}}else {const err139 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.variables === undefined){const err140 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}var _valid15 = _errs165 === errors;if(_valid15){valid73 = true;passing5 = 0;}const _errs171 = errors;const _errs172 = errors;const _errs173 = errors;const _errs174 = errors;let valid77 = false;const _errs175 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.variables === undefined) && ("variables")){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}var _valid17 = _errs175 === errors;valid77 = valid77 || _valid17;if(!valid77){const _errs176 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.sourceExpression === undefined) && ("sourceExpression")){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var _valid17 = _errs176 === errors;valid77 = valid77 || _valid17;}if(!valid77){const err143 = {};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}else {errors = _errs174;if(vErrors !== null){if(_errs174){vErrors.length = _errs174;}else {vErrors = null;}}}var valid76 = _errs173 === errors;if(!valid76){errors = _errs172;if(vErrors !== null){if(_errs172){vErrors.length = _errs172;}else {vErrors = null;}}}else {const err144 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.source === undefined){const err145 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}var _valid15 = _errs171 === errors;if(_valid15 && valid73){valid73 = false;passing5 = [passing5, 1];}else {if(_valid15){valid73 = true;passing5 = 1;}const _errs177 = errors;const _errs178 = errors;const _errs179 = errors;const _errs180 = errors;let valid79 = false;const _errs181 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.variables === undefined) && ("variables")){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}var _valid18 = _errs181 === errors;valid79 = valid79 || _valid18;if(!valid79){const _errs182 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.source === undefined) && ("source")){const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}var _valid18 = _errs182 === errors;valid79 = valid79 || _valid18;}if(!valid79){const err148 = {};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}else {errors = _errs180;if(vErrors !== null){if(_errs180){vErrors.length = _errs180;}else {vErrors = null;}}}var valid78 = _errs179 === errors;if(!valid78){errors = _errs178;if(vErrors !== null){if(_errs178){vErrors.length = _errs178;}else {vErrors = null;}}}else {const err149 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.sourceExpression === undefined){const err150 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",params:{missingProperty: "sourceExpression"},message:"should have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}var _valid15 = _errs177 === errors;if(_valid15 && valid73){valid73 = false;passing5 = [passing5, 2];}else {if(_valid15){valid73 = true;passing5 = 2;}const _errs183 = errors;const _errs184 = errors;const _errs185 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.source === undefined) && ("source")){const err151 = {};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}var valid80 = _errs185 === errors;if(!valid80){errors = _errs184;if(vErrors !== null){if(_errs184){vErrors.length = _errs184;}else {vErrors = null;}}}else {const err152 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.variables === undefined){const err153 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if(data52.sourceExpression === undefined){const err154 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty: "sourceExpression"},message:"should have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}var _valid15 = _errs183 === errors;if(_valid15 && valid73){valid73 = false;passing5 = [passing5, 3];}else {if(_valid15){valid73 = true;passing5 = 3;}const _errs186 = errors;const _errs187 = errors;const _errs188 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.sourceExpression === undefined) && ("sourceExpression")){const err155 = {};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}var valid81 = _errs188 === errors;if(!valid81){errors = _errs187;if(vErrors !== null){if(_errs187){vErrors.length = _errs187;}else {vErrors = null;}}}else {const err156 = {keyword:"not",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.variables === undefined){const err157 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}if(data52.source === undefined){const err158 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}var _valid15 = _errs186 === errors;if(_valid15 && valid73){valid73 = false;passing5 = [passing5, 4];}else {if(_valid15){valid73 = true;passing5 = 4;}}}}}if(!valid73){const err159 = {keyword:"oneOf",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas: passing5},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}else {errors = _errs164;if(vErrors !== null){if(_errs164){vErrors.length = _errs164;}else {vErrors = null;}}}if(errors > 0){const emErrs19 = [];for(const err160 of vErrors){if(((((err160.keyword !== "errorMessage") && (!err160.emUsed)) && ((err160.dataPath === dataPath+"/" + i5+"/binding") || ((err160.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err160.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err160.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err160.schemaPath["#/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs19.push(err160);err160.emUsed = true;}}if(emErrs19.length){const err161 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data52 && data52.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}const emErrs20 = [];for(const err162 of vErrors){if(!err162.emUsed){emErrs20.push(err162);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid14 = _errs163 === errors;valid71 = _valid14;}if(!valid71){const err163 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}const _errs190 = errors;let valid82 = true;const _errs191 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.type === undefined) && ("type")){const err164 = {};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}else {if(data52.type !== undefined){if(!func0$1(data52.type, "camunda:errorEventDefinition")){const err165 = {};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}}}var _valid19 = _errs191 === errors;errors = _errs190;if(vErrors !== null){if(_errs190){vErrors.length = _errs190;}else {vErrors = null;}}if(_valid19){const _errs193 = errors;const _errs194 = errors;let valid84 = false;let passing6 = null;const _errs195 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.errorRef === undefined){const err166 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",params:{missingProperty: "errorRef"},message:"should have required property '"+"errorRef"+"'"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}var _valid20 = _errs195 === errors;if(_valid20){valid84 = true;passing6 = 0;}if(!valid84){const err167 = {keyword:"oneOf",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas: passing6},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}else {errors = _errs194;if(vErrors !== null){if(_errs194){vErrors.length = _errs194;}else {vErrors = null;}}}if(errors > 0){const emErrs21 = [];for(const err168 of vErrors){if(((((err168.keyword !== "errorMessage") && (!err168.emUsed)) && ((err168.dataPath === dataPath+"/" + i5+"/binding") || ((err168.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err168.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err168.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err168.schemaPath["#/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs21.push(err168);err168.emUsed = true;}}if(emErrs21.length){const err169 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data52 && data52.type) + " requires errorRef"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}const emErrs22 = [];for(const err170 of vErrors){if(!err170.emUsed){emErrs22.push(err170);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid19 = _errs193 === errors;valid82 = _valid19;}if(!valid82){const err171 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.type === undefined){const err172 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}if(data52.type !== undefined){let data58 = data52.type;if(typeof data58 !== "string"){const err173 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}if(!((((((((((data58 === "property") || (data58 === "camunda:property")) || (data58 === "camunda:inputParameter")) || (data58 === "camunda:outputParameter")) || (data58 === "camunda:in")) || (data58 === "camunda:out")) || (data58 === "camunda:in:businessKey")) || (data58 === "camunda:executionListener")) || (data58 === "camunda:field")) || (data58 === "camunda:errorEventDefinition"))){const err174 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema18$1.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}if(errors > 0){const emErrs23 = [];for(const err175 of vErrors){if(((((err175.keyword !== "errorMessage") && (!err175.emUsed)) && ((err175.dataPath === dataPath+"/" + i5+"/binding/type") || ((err175.dataPath.indexOf(dataPath+"/" + i5+"/binding/type") === 0) && (err175.dataPath[dataPath+"/" + i5+"/binding/type".length] === "/")))) && (err175.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err175.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs23.push(err175);err175.emUsed = true;}}if(emErrs23.length){const err176 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs23},message:"invalid property.binding type " + JSON.stringify(data58) + "; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}const emErrs24 = [];for(const err177 of vErrors){if(!err177.emUsed){emErrs24.push(err177);}}vErrors = emErrs24;errors = emErrs24.length;}}if(data52.name !== undefined){if(typeof data52.name !== "string"){const err178 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data52.event !== undefined){if(typeof data52.event !== "string"){const err179 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/event",schemaPath:"#/allOf/1/items/properties/binding/properties/event/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(data52.scriptFormat !== undefined){if(typeof data52.scriptFormat !== "string"){const err180 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/scriptFormat",schemaPath:"#/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(data52.source !== undefined){if(typeof data52.source !== "string"){const err181 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}if(data52.target !== undefined){if(typeof data52.target !== "string"){const err182 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/target",schemaPath:"#/allOf/1/items/properties/binding/properties/target/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}if(data52.expression !== undefined){if(typeof data52.expression !== "boolean"){const err183 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/expression",schemaPath:"#/allOf/1/items/properties/binding/properties/expression/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}if(data52.variables !== undefined){let data65 = data52.variables;if(typeof data65 !== "string"){const err184 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/variables",schemaPath:"#/allOf/1/items/properties/binding/properties/variables/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}if(!((data65 === "all") || (data65 === "local"))){const err185 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/variables",schemaPath:"#/allOf/1/items/properties/binding/properties/variables/enum",params:{allowedValues: schema18$1.allOf[1].items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}if(data52.sourceExpression !== undefined){if(typeof data52.sourceExpression !== "string"){const err186 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/sourceExpression",schemaPath:"#/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}}else {const err187 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}}else {const err188 = {keyword:"type",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}if(errors > 0){const emErrors3 = {"required":[]};const templates3 = {required:function(){return "missing binding for property \"" + JSON.stringify(i5) + "\""}};for(const err189 of vErrors){if((((((err189.keyword !== "errorMessage") && (!err189.emUsed)) && (err189.dataPath === dataPath+"/" + i5)) && (err189.keyword in emErrors3)) && (err189.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err189.schemaPath.slice(15)))){emErrors3[err189.keyword].push(err189);err189.emUsed = true;}}for(const key3 in emErrors3){if(emErrors3[key3].length){const err190 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",params:{errors: emErrors3[key3]},message:key3 in templates3 ? templates3[key3]() : schema18$1.allOf[1].items.errorMessage[key3]};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}const emErrs25 = [];for(const err191 of vErrors){if(!err191.emUsed){emErrs25.push(err191);}}vErrors = emErrs25;errors = emErrs25.length;}}}else {const err192 = {keyword:"type",dataPath,schemaPath:"#/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}validate16$1.errors = vErrors;return errors === 0;}const schema24 = {"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property."},"value":{"$id":"#/properties/property/value","type":["string","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."},"condition":{"$id":"#/condition","type":"object","description":"Condition(s) to activate the binding.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}}},"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},"minItems":1}},"required":["allMatch"]}]}}}};function validate20(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs4 = errors;let valid4 = true;const _errs5 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if(!func0$1(data0.type, "Dropdown")){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs5 === errors;errors = _errs4;if(vErrors !== null){if(_errs4){vErrors.length = _errs4;}else {vErrors = null;}}if(_valid0){const _errs7 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {keyword:"required",dataPath:dataPath+"/" + i0,schemaPath:"#/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.dataPath === dataPath+"/" + i0) || ((err3.dataPath.indexOf(dataPath+"/" + i0) === 0) && (err3.dataPath[dataPath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/items/allOf/0/then") === 0)) && (err3.schemaPath["#/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0,schemaPath:"#/items/allOf/0/then/errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs7 === errors;valid4 = _valid0;}if(!valid4){const err6 = {keyword:"if",dataPath:dataPath+"/" + i0,schemaPath:"#/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err7 = {keyword:"type",dataPath:dataPath+"/" + i0+"/id",schemaPath:"#/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data0.value !== undefined){let data3 = data0.value;if((typeof data3 !== "string") && (typeof data3 !== "boolean")){const err8 = {keyword:"type",dataPath:dataPath+"/" + i0+"/value",schemaPath:"#/items/properties/value/type",params:{type: schema24.items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err9 = {keyword:"type",dataPath:dataPath+"/" + i0+"/description",schemaPath:"#/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err10 = {keyword:"type",dataPath:dataPath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err11 = {keyword:"type",dataPath:dataPath+"/" + i0+"/type",schemaPath:"#/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err12 = {keyword:"type",dataPath:dataPath+"/" + i0+"/editable",schemaPath:"#/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data0.choices !== undefined){let data8 = data0.choices;if(Array.isArray(data8)){const len1 = data8.length;for(let i1=0; i1<len1; i1++){let data9 = data8[i1];if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.value === undefined){const err13 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data9.name === undefined){const err14 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data9.name !== undefined){if(typeof data9.name !== "string"){const err15 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/name",schemaPath:"#/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data9.value !== undefined){if(typeof data9.value !== "string"){const err16 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/value",schemaPath:"#/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data9.condition !== undefined){if(!(validate17$1(data9.condition, {dataPath:dataPath+"/" + i0+"/choices/" + i1+"/condition",parentData:data9,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17$1.errors : vErrors.concat(validate17$1.errors);errors = vErrors.length;}}}else {const err17 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(errors > 0){const emErrors0 = {"required":[]};const templates0 = {};for(const err18 of vErrors){if((((((err18.keyword !== "errorMessage") && (!err18.emUsed)) && (err18.dataPath === dataPath+"/" + i0+"/choices/" + i1)) && (err18.keyword in emErrors0)) && (err18.schemaPath.indexOf("#/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err18.schemaPath.slice(32)))){emErrors0[err18.keyword].push(err18);err18.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err19 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/items/properties/choices/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema24.items.properties.choices.items.errorMessage[key0]};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}const emErrs2 = [];for(const err20 of vErrors){if(!err20.emUsed){emErrs2.push(err20);}}vErrors = emErrs2;errors = emErrs2.length;}}}else {const err21 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices",schemaPath:"#/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data0.constraints !== undefined){let data13 = data0.constraints;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.notEmpty !== undefined){if(typeof data13.notEmpty !== "boolean"){const err22 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data13.minLength !== undefined){if(!(typeof data13.minLength == "number")){const err23 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/minLength",schemaPath:"#/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data13.maxLength !== undefined){if(!(typeof data13.maxLength == "number")){const err24 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/maxLength",schemaPath:"#/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data13.pattern !== undefined){let data17 = data13.pattern;const _errs38 = errors;let valid12 = false;let passing0 = null;const _errs39 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){if(typeof data17.value !== "string"){const err25 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data17.message !== undefined){if(typeof data17.message !== "string"){const err26 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid1 = _errs39 === errors;if(_valid1){valid12 = true;passing0 = 0;}const _errs45 = errors;if(typeof data17 !== "string"){const err28 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid1 = _errs45 === errors;if(_valid1 && valid12){valid12 = false;passing0 = [passing0, 1];}else {if(_valid1){valid12 = true;passing0 = 1;}}if(!valid12){const err29 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}}}else {const err30 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints",schemaPath:"#/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err31 = {keyword:"type",dataPath:dataPath+"/" + i0+"/group",schemaPath:"#/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data0.condition !== undefined){let data21 = data0.condition;if(!(data21 && typeof data21 == "object" && !Array.isArray(data21))){const err32 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/items/properties/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}const _errs51 = errors;let valid14 = false;let passing1 = null;const _errs52 = errors;const _errs55 = errors;let valid16 = false;let passing2 = null;const _errs56 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.equals === undefined){const err33 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data21.equals !== undefined){let data22 = data21.equals;if(((typeof data22 !== "string") && (!(typeof data22 == "number"))) && (typeof data22 !== "boolean")){const err34 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}var _valid3 = _errs56 === errors;if(_valid3){valid16 = true;passing2 = 0;}const _errs59 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.oneOf === undefined){const err35 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data21.oneOf !== undefined){let data23 = data21.oneOf;if(Array.isArray(data23)){const len2 = data23.length;for(let i2=0; i2<len2; i2++){let data24 = data23[i2];if((typeof data24 !== "string") && (!(typeof data24 == "number"))){const err36 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}var _valid3 = _errs59 === errors;if(_valid3 && valid16){valid16 = false;passing2 = [passing2, 1];}else {if(_valid3){valid16 = true;passing2 = 1;}const _errs64 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.isActive === undefined){const err38 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/required",params:{missingProperty: "isActive"},message:"should have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(data21.isActive !== undefined){if(typeof data21.isActive !== "boolean"){const err39 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/properties/isActive/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid3 = _errs64 === errors;if(_valid3 && valid16){valid16 = false;passing2 = [passing2, 2];}else {if(_valid3){valid16 = true;passing2 = 2;}}}if(!valid16){const err40 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}else {errors = _errs55;if(vErrors !== null){if(_errs55){vErrors.length = _errs55;}else {vErrors = null;}}}if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.property === undefined){const err41 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data21.type !== undefined){if(!func0$1(data21.type, "simple")){const err42 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data21.property !== undefined){if(typeof data21.property !== "string"){const err43 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}else {const err44 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err45 of vErrors){if((((((err45.keyword !== "errorMessage") && (!err45.emUsed)) && (err45.dataPath === dataPath+"/" + i0+"/condition")) && (err45.keyword in emErrors1)) && (err45.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err45.schemaPath.slice(81)))){emPropParams0 = obj0$1[err45.keyword];emParamsErrors0 = emErrors1[err45.keyword][err45.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err45);err45.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp0 in emErrors1[key1]){emParamsErrors0 = emErrors1[key1][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates1[key1] && templates1[key1][keyProp0];const err46 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20$1.errorMessage[key1][keyProp0]};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}const emErrs3 = [];for(const err47 of vErrors){if(!err47.emUsed){emErrs3.push(err47);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid2 = _errs52 === errors;if(_valid2){valid14 = true;passing1 = 0;}const _errs70 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.allMatch === undefined){const err48 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/items/properties/condition/oneOf/1/required",params:{missingProperty: "allMatch"},message:"should have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if(data21.allMatch !== undefined){let data28 = data21.allMatch;if(Array.isArray(data28)){if(data28.length < 1){const err49 = {keyword:"minItems",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/items/properties/condition/oneOf/1/properties/allMatch/minItems",params:{limit: 1},message:"should NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}const len3 = data28.length;for(let i3=0; i3<len3; i3++){let data29 = data28[i3];const _errs76 = errors;let valid27 = false;let passing3 = null;const _errs77 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.equals === undefined){const err50 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(data29.equals !== undefined){let data30 = data29.equals;if(((typeof data30 !== "string") && (!(typeof data30 == "number"))) && (typeof data30 !== "boolean")){const err51 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20$1.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}var _valid4 = _errs77 === errors;if(_valid4){valid27 = true;passing3 = 0;}const _errs80 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.oneOf === undefined){const err52 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(data29.oneOf !== undefined){let data31 = data29.oneOf;if(Array.isArray(data31)){const len4 = data31.length;for(let i4=0; i4<len4; i4++){let data32 = data31[i4];if((typeof data32 !== "string") && (!(typeof data32 == "number"))){const err53 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf/" + i4,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20$1.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}else {const err54 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}var _valid4 = _errs80 === errors;if(_valid4 && valid27){valid27 = false;passing3 = [passing3, 1];}else {if(_valid4){valid27 = true;passing3 = 1;}const _errs85 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.isActive === undefined){const err55 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/required",params:{missingProperty: "isActive"},message:"should have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data29.isActive !== undefined){if(typeof data29.isActive !== "boolean"){const err56 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/properties/isActive/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}var _valid4 = _errs85 === errors;if(_valid4 && valid27){valid27 = false;passing3 = [passing3, 2];}else {if(_valid4){valid27 = true;passing3 = 2;}}}if(!valid27){const err57 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing3},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {errors = _errs76;if(vErrors !== null){if(_errs76){vErrors.length = _errs76;}else {vErrors = null;}}}if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.property === undefined){const err58 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(data29.type !== undefined){if(!func0$1(data29.type, "simple")){const err59 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}if(data29.property !== undefined){if(typeof data29.property !== "string"){const err60 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}}else {const err61 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(errors > 0){const emErrors2 = {"required":{"property":[]}};const templates2 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err62 of vErrors){if((((((err62.keyword !== "errorMessage") && (!err62.emUsed)) && (err62.dataPath === dataPath+"/" + i0+"/condition/allMatch/" + i3)) && (err62.keyword in emErrors2)) && (err62.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err62.schemaPath.slice(81)))){emPropParams1 = obj0$1[err62.keyword];emParamsErrors1 = emErrors2[err62.keyword][err62.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err62);err62.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp1 in emErrors2[key2]){emParamsErrors1 = emErrors2[key2][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates2[key2] && templates2[key2][keyProp1];const err63 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20$1.errorMessage[key2][keyProp1]};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}const emErrs4 = [];for(const err64 of vErrors){if(!err64.emUsed){emErrs4.push(err64);}}vErrors = emErrs4;errors = emErrs4.length;}}}else {const err65 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/items/properties/condition/oneOf/1/properties/allMatch/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}var _valid2 = _errs70 === errors;if(_valid2 && valid14){valid14 = false;passing1 = [passing1, 1];}else {if(_valid2){valid14 = true;passing1 = 1;}}if(!valid14){const err66 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/items/properties/condition/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {errors = _errs51;if(vErrors !== null){if(_errs51){vErrors.length = _errs51;}else {vErrors = null;}}}}}else {const err67 = {keyword:"type",dataPath:dataPath+"/" + i0,schemaPath:"#/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}else {const err68 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}validate20.errors = vErrors;return errors === 0;}function validate15$1(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "appliesTo"},message:"should have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.name !== undefined){if(typeof data.name !== "string"){const err4 = {keyword:"type",dataPath:dataPath+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {keyword:"type",dataPath:dataPath+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {keyword:"type",dataPath:dataPath+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){let data3 = data.version;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "integer"},message:"should be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {keyword:"type",dataPath:dataPath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.deprecated !== undefined){let data5 = data.deprecated;if((typeof data5 !== "boolean") && (!(data5 && typeof data5 == "object" && !Array.isArray(data5)))){const err9 = {keyword:"type",dataPath:dataPath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",params:{type: schema17$1.allOf[0].properties.deprecated.type},message:"should be boolean,object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.message !== undefined){if(typeof data5.message !== "string"){const err10 = {keyword:"type",dataPath:dataPath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data5.documentationRef !== undefined){let data7 = data5.documentationRef;if(typeof data7 === "string"){if(!pattern0$1.test(data7)){const err11 = {keyword:"pattern",dataPath:dataPath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {keyword:"type",dataPath:dataPath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}}if(data.appliesTo !== undefined){let data8 = data.appliesTo;if(Array.isArray(data8)){const len0 = data8.length;for(let i0=0; i0<len0; i0++){let data9 = data8[i0];if(typeof data9 === "string"){if(!pattern1$1.test(data9)){const err13 = {keyword:"pattern",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err15 of vErrors){if((((((err15.keyword !== "errorMessage") && (!err15.emUsed)) && (err15.dataPath === dataPath+"/appliesTo/" + i0)) && (err15.keyword in emErrors0)) && (err15.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err15.schemaPath.slice(36)))){emErrors0[err15.keyword].push(err15);err15.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err16 = {keyword:"errorMessage",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17$1.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}const emErrs0 = [];for(const err17 of vErrors){if(!err17.emUsed){emErrs0.push(err17);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err18 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.elementType !== undefined){let data10 = data.elementType;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.value === undefined){const err19 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data10.value !== undefined){let data11 = data10.value;if(typeof data11 === "string"){if(!pattern1$1.test(data11)){const err20 = {keyword:"pattern",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {keyword:"type",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.dataPath === dataPath+"/elementType/value")) && (err22.keyword in emErrors1)) && (err22.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(49)))){emErrors1[err22.keyword].push(err22);err22.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err23 = {keyword:"errorMessage",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17$1.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}const emErrs1 = [];for(const err24 of vErrors){if(!err24.emUsed){emErrs1.push(err24);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err25 = {keyword:"type",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.dataPath === dataPath+"/elementType")) && (err26.keyword in emErrors2)) && (err26.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(32)))){emPropParams0 = obj0$1[err26.keyword];emParamsErrors0 = emErrors2[err26.keyword][err26.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err26);err26.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err27 = {keyword:"errorMessage",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17$1.allOf[0].properties.elementType.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}const emErrs2 = [];for(const err28 of vErrors){if(!err28.emUsed){emErrs2.push(err28);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data12 = data.metadata;if(!(data12 && typeof data12 == "object" && !Array.isArray(data12))){const err29 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err30 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.groups !== undefined){let data14 = data.groups;if(Array.isArray(data14)){const len1 = data14.length;for(let i1=0; i1<len1; i1++){let data15 = data14[i1];if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.id === undefined){const err31 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data15.label === undefined){const err32 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "label"},message:"should have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(data15.id !== undefined){if(typeof data15.id !== "string"){const err33 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data15.label !== undefined){if(typeof data15.label !== "string"){const err34 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(errors > 0){const emErrors3 = {"required":{"id":[],"label":[]}};const templates3 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams1;let emParamsErrors1;for(const err36 of vErrors){if((((((err36.keyword !== "errorMessage") && (!err36.emUsed)) && (err36.dataPath === dataPath+"/groups/" + i1)) && (err36.keyword in emErrors3)) && (err36.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err36.schemaPath.slice(33)))){emPropParams1 = obj0$1[err36.keyword];emParamsErrors1 = emErrors3[err36.keyword][err36.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err36);err36.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp1 in emErrors3[key3]){emParamsErrors1 = emErrors3[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates3[key3] && templates3[key3][keyProp1];const err37 = {keyword:"errorMessage",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17$1.allOf[0].properties.groups.items.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}const emErrs3 = [];for(const err38 of vErrors){if(!err38.emUsed){emErrs3.push(err38);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err39 = {keyword:"type",dataPath:dataPath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data.documentationRef !== undefined){let data18 = data.documentationRef;if(typeof data18 === "string"){if(!pattern0$1.test(data18)){const err40 = {keyword:"pattern",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {keyword:"type",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err42 of vErrors){if((((((err42.keyword !== "errorMessage") && (!err42.emUsed)) && (err42.dataPath === dataPath+"/documentationRef")) && (err42.keyword in emErrors4)) && (err42.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err42.schemaPath.slice(37)))){emErrors4[err42.keyword].push(err42);err42.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err43 = {keyword:"errorMessage",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",params:{errors: emErrors4[key4]},message:key4 in templates4 ? templates4[key4]() : schema17$1.allOf[0].properties.documentationRef.errorMessage[key4]};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}const emErrs4 = [];for(const err44 of vErrors){if(!err44.emUsed){emErrs4.push(err44);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err45 of vErrors){if((((((err45.keyword !== "errorMessage") && (!err45.emUsed)) && (err45.dataPath === dataPath)) && (err45.keyword in emErrors5)) && (err45.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err45.schemaPath.slice(9)))){emPropParams2 = obj0$1[err45.keyword];emParamsErrors2 = emErrors5[err45.keyword][err45.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err45);err45.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err46 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17$1.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}const emErrs5 = [];for(const err47 of vErrors){if(!err47.emUsed){emErrs5.push(err47);}}vErrors = emErrs5;errors = emErrs5.length;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){if(!(validate16$1(data.properties, {dataPath:dataPath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16$1.errors : vErrors.concat(validate16$1.errors);errors = vErrors.length;}}if(data.scopes !== undefined){let data20 = data.scopes;if(Array.isArray(data20)){const len2 = data20.length;for(let i2=0; i2<len2; i2++){let data21 = data20[i2];const _errs46 = errors;let valid17 = true;const _errs47 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if((data21.type === undefined) && ("type")){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {if(data21.type !== undefined){if(!(data21.type === "bpmn:Error")){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}}var _valid0 = _errs47 === errors;errors = _errs46;if(vErrors !== null){if(_errs46){vErrors.length = _errs46;}else {vErrors = null;}}if(_valid0){const _errs49 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.id === undefined){const err50 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/allOf/0/then/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(errors > 0){const emErrs6 = [];for(const err51 of vErrors){if(((((err51.keyword !== "errorMessage") && (!err51.emUsed)) && ((err51.dataPath === dataPath+"/scopes/" + i2) || ((err51.dataPath.indexOf(dataPath+"/scopes/" + i2) === 0) && (err51.dataPath[dataPath+"/scopes/" + i2.length] === "/")))) && (err51.schemaPath.indexOf("#/properties/scopes/items/allOf/0/then") === 0)) && (err51.schemaPath["#/properties/scopes/items/allOf/0/then".length] === "/")){emErrs6.push(err51);err51.emUsed = true;}}if(emErrs6.length){const err52 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/allOf/0/then/errorMessage",params:{errors: emErrs6},message:"invalid scope " + JSON.stringify(data21 && data21.type) + ", missing id"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}const emErrs7 = [];for(const err53 of vErrors){if(!err53.emUsed){emErrs7.push(err53);}}vErrors = emErrs7;errors = emErrs7.length;}var _valid0 = _errs49 === errors;valid17 = _valid0;}if(!valid17){const err54 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.type === undefined){const err55 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data21.properties === undefined){const err56 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data21.type !== undefined){let data23 = data21.type;if(typeof data23 !== "string"){const err57 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/type",schemaPath:"#/properties/scopes/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(!((data23 === "camunda:Connector") || (data23 === "bpmn:Error"))){const err58 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/type",schemaPath:"#/properties/scopes/items/properties/type/enum",params:{allowedValues: schema17$1.properties.scopes.items.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(errors > 0){const emErrs8 = [];for(const err59 of vErrors){if(((((err59.keyword !== "errorMessage") && (!err59.emUsed)) && ((err59.dataPath === dataPath+"/scopes/" + i2+"/type") || ((err59.dataPath.indexOf(dataPath+"/scopes/" + i2+"/type") === 0) && (err59.dataPath[dataPath+"/scopes/" + i2+"/type".length] === "/")))) && (err59.schemaPath.indexOf("#/properties/scopes/items/properties/type") === 0)) && (err59.schemaPath["#/properties/scopes/items/properties/type".length] === "/")){emErrs8.push(err59);err59.emUsed = true;}}if(emErrs8.length){const err60 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/type",schemaPath:"#/properties/scopes/items/properties/type/errorMessage",params:{errors: emErrs8},message:"invalid scope type " + JSON.stringify(data23) + "; must be any of { camunda:Connector, bpmn:Error }"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}const emErrs9 = [];for(const err61 of vErrors){if(!err61.emUsed){emErrs9.push(err61);}}vErrors = emErrs9;errors = emErrs9.length;}}if(data21.properties !== undefined){let data24 = data21.properties;if(!(validate20(data24, {dataPath:dataPath+"/scopes/" + i2+"/properties",parentData:data21,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate20.errors : vErrors.concat(validate20.errors);errors = vErrors.length;}if(Array.isArray(data24)){const len3 = data24.length;for(let i3=0; i3<len3; i3++){let data25 = data24[i3];const _errs60 = errors;let valid25 = true;const _errs61 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {if(data25.binding !== undefined){let data26 = data25.binding;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if((data26.type === undefined) && ("type")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}else {if(data26.type !== undefined){if(!func0$1(data26.type, "property")){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}}}}}}var _valid1 = _errs61 === errors;errors = _errs60;if(vErrors !== null){if(_errs60){vErrors.length = _errs60;}else {vErrors = null;}}if(_valid1){const _errs64 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){let data28 = data25.type;if(!(((((data28 === "String") || (data28 === "Text")) || (data28 === "Hidden")) || (data28 === "Dropdown")) || (data28 === "Boolean"))){const err65 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema27.items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(errors > 0){const emErrs10 = [];for(const err66 of vErrors){if(((((err66.keyword !== "errorMessage") && (!err66.emUsed)) && ((err66.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err66.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err66.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err66.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err66.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs10.push(err66);err66.emUsed = true;}}if(emErrs10.length){const err67 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs10},message:"invalid property type " + JSON.stringify(data28) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}const emErrs11 = [];for(const err68 of vErrors){if(!err68.emUsed){emErrs11.push(err68);}}vErrors = emErrs11;errors = emErrs11.length;}}}var _valid1 = _errs64 === errors;valid25 = _valid1;}if(!valid25){const err69 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}const _errs67 = errors;let valid29 = true;const _errs68 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {if(data25.binding !== undefined){let data29 = data25.binding;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if((data29.type === undefined) && ("type")){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}else {if(data29.type !== undefined){if(!func0$1(data29.type, "camunda:executionListener")){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}}}}}var _valid2 = _errs68 === errors;errors = _errs67;if(vErrors !== null){if(_errs67){vErrors.length = _errs67;}else {vErrors = null;}}if(_valid2){const _errs71 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){if(!(data25.type === "Hidden")){const err73 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema27.items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if(errors > 0){const emErrs12 = [];for(const err74 of vErrors){if(((((err74.keyword !== "errorMessage") && (!err74.emUsed)) && ((err74.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err74.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err74.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err74.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err74.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs12.push(err74);err74.emUsed = true;}}if(emErrs12.length){const err75 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs12},message:"invalid property type " + JSON.stringify(data25 && data25.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}const emErrs13 = [];for(const err76 of vErrors){if(!err76.emUsed){emErrs13.push(err76);}}vErrors = emErrs13;errors = emErrs13.length;}}if(data25.binding !== undefined){let data32 = data25.binding;const _errs74 = errors;let valid33 = false;let passing0 = null;const _errs75 = errors;const _errs76 = errors;const _errs77 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.implementationType !== undefined){if(!func0$1(data32.implementationType, "script")){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}}var valid34 = _errs77 === errors;if(!valid34){errors = _errs76;if(vErrors !== null){if(_errs76){vErrors.length = _errs76;}else {vErrors = null;}}}else {const err78 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}var _valid3 = _errs75 === errors;if(_valid3){valid33 = true;passing0 = 0;}const _errs79 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.scriptFormat === undefined){const err79 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/1/required",params:{missingProperty: "scriptFormat"},message:"should have required property '"+"scriptFormat"+"'"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}var _valid3 = _errs79 === errors;if(_valid3 && valid33){valid33 = false;passing0 = [passing0, 1];}else {if(_valid3){valid33 = true;passing0 = 1;}const _errs80 = errors;const _errs82 = errors;const _errs83 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if((data32.implementationType === undefined) && ("implementationType")){const err80 = {};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}var valid37 = _errs83 === errors;if(!valid37){errors = _errs82;if(vErrors !== null){if(_errs82){vErrors.length = _errs82;}else {vErrors = null;}}}else {const err81 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}const _errs85 = errors;const _errs86 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if((data32.scriptFormat === undefined) && ("scriptFormat")){const err82 = {};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}var valid38 = _errs86 === errors;if(!valid38){errors = _errs85;if(vErrors !== null){if(_errs85){vErrors.length = _errs85;}else {vErrors = null;}}}else {const err83 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/1/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}var _valid3 = _errs80 === errors;if(_valid3 && valid33){valid33 = false;passing0 = [passing0, 2];}else {if(_valid3){valid33 = true;passing0 = 2;}}}if(!valid33){const err84 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}else {errors = _errs74;if(vErrors !== null){if(_errs74){vErrors.length = _errs74;}else {vErrors = null;}}}if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.implementationType !== undefined){let data34 = data32.implementationType;if(!((((data34 === "class") || (data34 === "delegateExpression")) || (data34 === "expression")) || (data34 === "script"))){const err85 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/implementationType",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/properties/implementationType/enum",params:{allowedValues: schema27.items.allOf[1].then.properties.binding.properties.implementationType.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}}}var _valid2 = _errs71 === errors;valid29 = _valid2;}if(!valid29){const err86 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const _errs89 = errors;let valid40 = true;const _errs90 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err87 = {};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {if(data25.binding !== undefined){let data35 = data25.binding;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if((data35.type === undefined) && ("type")){const err88 = {};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}else {if(data35.type !== undefined){let data36 = data35.type;if(!((((((data36 === "camunda:property") || (data36 === "camunda:outputParameter")) || (data36 === "camunda:in")) || (data36 === "camunda:in:businessKey")) || (data36 === "camunda:out")) || (data36 === "camunda:errorEventDefinition"))){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}}}}}var _valid4 = _errs90 === errors;errors = _errs89;if(vErrors !== null){if(_errs89){vErrors.length = _errs89;}else {vErrors = null;}}if(_valid4){const _errs93 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){let data37 = data25.type;if(!(((data37 === "String") || (data37 === "Hidden")) || (data37 === "Dropdown"))){const err90 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/enum",params:{allowedValues: schema27.items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(errors > 0){const emErrs14 = [];for(const err91 of vErrors){if(((((err91.keyword !== "errorMessage") && (!err91.emUsed)) && ((err91.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err91.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err91.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err91.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err91.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs14.push(err91);err91.emUsed = true;}}if(emErrs14.length){const err92 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors: emErrs14},message:"invalid property type " + JSON.stringify(data37) + " for binding type " + JSON.stringify(data25 && data25.binding && data25.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}const emErrs15 = [];for(const err93 of vErrors){if(!err93.emUsed){emErrs15.push(err93);}}vErrors = emErrs15;errors = emErrs15.length;}}}var _valid4 = _errs93 === errors;valid40 = _valid4;}if(!valid40){const err94 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const _errs96 = errors;let valid44 = true;const _errs97 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if((data25.binding === undefined) && ("binding")){const err95 = {};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}else {if(data25.binding !== undefined){let data38 = data25.binding;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if((data38.type === undefined) && ("type")){const err96 = {};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}else {if(data38.type !== undefined){let data39 = data38.type;if(!((data39 === "camunda:inputParameter") || (data39 === "camunda:field"))){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}}}}}var _valid5 = _errs97 === errors;errors = _errs96;if(vErrors !== null){if(_errs96){vErrors.length = _errs96;}else {vErrors = null;}}if(_valid5){const _errs100 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.type !== undefined){let data40 = data25.type;if(!((((data40 === "String") || (data40 === "Text")) || (data40 === "Hidden")) || (data40 === "Dropdown"))){const err98 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/enum",params:{allowedValues: schema27.items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(errors > 0){const emErrs16 = [];for(const err99 of vErrors){if(((((err99.keyword !== "errorMessage") && (!err99.emUsed)) && ((err99.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") || ((err99.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/type") === 0) && (err99.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/type".length] === "/")))) && (err99.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err99.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs16.push(err99);err99.emUsed = true;}}if(emErrs16.length){const err100 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors: emErrs16},message:"invalid property type " + JSON.stringify(data40) + " for binding type " + JSON.stringify(data25 && data25.binding && data25.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}const emErrs17 = [];for(const err101 of vErrors){if(!err101.emUsed){emErrs17.push(err101);}}vErrors = emErrs17;errors = emErrs17.length;}}}var _valid5 = _errs100 === errors;valid44 = _valid5;}if(!valid44){const err102 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.binding === undefined){const err103 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(data25.binding !== undefined){let data41 = data25.binding;const _errs105 = errors;let valid50 = true;const _errs106 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}else {if(data41.type !== undefined){let data42 = data41.type;if(!((((data42 === "property") || (data42 === "camunda:property")) || (data42 === "camunda:inputParameter")) || (data42 === "camunda:field"))){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}}}var _valid6 = _errs106 === errors;errors = _errs105;if(vErrors !== null){if(_errs105){vErrors.length = _errs105;}else {vErrors = null;}}if(_valid6){const _errs108 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.name === undefined){const err106 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}if(errors > 0){const emErrs18 = [];for(const err107 of vErrors){if(((((err107.keyword !== "errorMessage") && (!err107.emUsed)) && ((err107.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err107.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err107.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err107.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err107.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs18.push(err107);err107.emUsed = true;}}if(emErrs18.length){const err108 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs18},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires name"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}const emErrs19 = [];for(const err109 of vErrors){if(!err109.emUsed){emErrs19.push(err109);}}vErrors = emErrs19;errors = emErrs19.length;}var _valid6 = _errs108 === errors;valid50 = _valid6;}if(!valid50){const err110 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}const _errs110 = errors;let valid52 = true;const _errs111 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}else {if(data41.type !== undefined){if(!func0$1(data41.type, "camunda:outputParameter")){const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}}var _valid7 = _errs111 === errors;errors = _errs110;if(vErrors !== null){if(_errs110){vErrors.length = _errs110;}else {vErrors = null;}}if(_valid7){const _errs113 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.source === undefined){const err113 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(errors > 0){const emErrs20 = [];for(const err114 of vErrors){if(((((err114.keyword !== "errorMessage") && (!err114.emUsed)) && ((err114.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err114.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err114.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err114.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err114.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs20.push(err114);err114.emUsed = true;}}if(emErrs20.length){const err115 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs20},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires source"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const emErrs21 = [];for(const err116 of vErrors){if(!err116.emUsed){emErrs21.push(err116);}}vErrors = emErrs21;errors = emErrs21.length;}var _valid7 = _errs113 === errors;valid52 = _valid7;}if(!valid52){const err117 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}const _errs115 = errors;let valid54 = true;const _errs116 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {if(data41.type !== undefined){if(!func0$1(data41.type, "camunda:in")){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}}var _valid8 = _errs116 === errors;errors = _errs115;if(vErrors !== null){if(_errs115){vErrors.length = _errs115;}else {vErrors = null;}}if(_valid8){const _errs118 = errors;const _errs119 = errors;let valid56 = false;const _errs120 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err120 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}var _valid9 = _errs120 === errors;valid56 = valid56 || _valid9;if(!valid56){const _errs121 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.target === undefined){const err121 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",params:{missingProperty: "target"},message:"should have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}var _valid9 = _errs121 === errors;valid56 = valid56 || _valid9;}if(!valid56){const err122 = {keyword:"anyOf",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf",params:{},message:"should match some schema in anyOf"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}if(errors > 0){const emErrs22 = [];for(const err123 of vErrors){if(((((err123.keyword !== "errorMessage") && (!err123.emUsed)) && ((err123.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err123.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err123.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err123.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err123.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs22.push(err123);err123.emUsed = true;}}if(emErrs22.length){const err124 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs22},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}const emErrs23 = [];for(const err125 of vErrors){if(!err125.emUsed){emErrs23.push(err125);}}vErrors = emErrs23;errors = emErrs23.length;}var _valid8 = _errs118 === errors;valid54 = _valid8;}if(!valid54){const err126 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}const _errs123 = errors;let valid57 = true;const _errs124 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err127 = {};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}else {if(data41.type !== undefined){if(!func0$1(data41.type, "camunda:out")){const err128 = {};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}}}var _valid10 = _errs124 === errors;errors = _errs123;if(vErrors !== null){if(_errs123){vErrors.length = _errs123;}else {vErrors = null;}}if(_valid10){const _errs126 = errors;const _errs127 = errors;let valid59 = false;let passing1 = null;const _errs128 = errors;const _errs129 = errors;const _errs130 = errors;const _errs131 = errors;let valid61 = false;const _errs132 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.source === undefined) && ("source")){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}var _valid12 = _errs132 === errors;valid61 = valid61 || _valid12;if(!valid61){const _errs133 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.sourceExpression === undefined) && ("sourceExpression")){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}var _valid12 = _errs133 === errors;valid61 = valid61 || _valid12;}if(!valid61){const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}else {errors = _errs131;if(vErrors !== null){if(_errs131){vErrors.length = _errs131;}else {vErrors = null;}}}var valid60 = _errs130 === errors;if(!valid60){errors = _errs129;if(vErrors !== null){if(_errs129){vErrors.length = _errs129;}else {vErrors = null;}}}else {const err132 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err133 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}var _valid11 = _errs128 === errors;if(_valid11){valid59 = true;passing1 = 0;}const _errs134 = errors;const _errs135 = errors;const _errs136 = errors;const _errs137 = errors;let valid63 = false;const _errs138 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.variables === undefined) && ("variables")){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}var _valid13 = _errs138 === errors;valid63 = valid63 || _valid13;if(!valid63){const _errs139 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.sourceExpression === undefined) && ("sourceExpression")){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}var _valid13 = _errs139 === errors;valid63 = valid63 || _valid13;}if(!valid63){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}else {errors = _errs137;if(vErrors !== null){if(_errs137){vErrors.length = _errs137;}else {vErrors = null;}}}var valid62 = _errs136 === errors;if(!valid62){errors = _errs135;if(vErrors !== null){if(_errs135){vErrors.length = _errs135;}else {vErrors = null;}}}else {const err137 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.source === undefined){const err138 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}var _valid11 = _errs134 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 1];}else {if(_valid11){valid59 = true;passing1 = 1;}const _errs140 = errors;const _errs141 = errors;const _errs142 = errors;const _errs143 = errors;let valid65 = false;const _errs144 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.variables === undefined) && ("variables")){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}var _valid14 = _errs144 === errors;valid65 = valid65 || _valid14;if(!valid65){const _errs145 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.source === undefined) && ("source")){const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}var _valid14 = _errs145 === errors;valid65 = valid65 || _valid14;}if(!valid65){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}else {errors = _errs143;if(vErrors !== null){if(_errs143){vErrors.length = _errs143;}else {vErrors = null;}}}var valid64 = _errs142 === errors;if(!valid64){errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}}else {const err142 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.sourceExpression === undefined){const err143 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",params:{missingProperty: "sourceExpression"},message:"should have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}var _valid11 = _errs140 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 2];}else {if(_valid11){valid59 = true;passing1 = 2;}const _errs146 = errors;const _errs147 = errors;const _errs148 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.source === undefined) && ("source")){const err144 = {};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}var valid66 = _errs148 === errors;if(!valid66){errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}}else {const err145 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err146 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}if(data41.sourceExpression === undefined){const err147 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty: "sourceExpression"},message:"should have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}var _valid11 = _errs146 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 3];}else {if(_valid11){valid59 = true;passing1 = 3;}const _errs149 = errors;const _errs150 = errors;const _errs151 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.sourceExpression === undefined) && ("sourceExpression")){const err148 = {};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}var valid67 = _errs151 === errors;if(!valid67){errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}}else {const err149 = {keyword:"not",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.variables === undefined){const err150 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty: "variables"},message:"should have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(data41.source === undefined){const err151 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}var _valid11 = _errs149 === errors;if(_valid11 && valid59){valid59 = false;passing1 = [passing1, 4];}else {if(_valid11){valid59 = true;passing1 = 4;}}}}}if(!valid59){const err152 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}else {errors = _errs127;if(vErrors !== null){if(_errs127){vErrors.length = _errs127;}else {vErrors = null;}}}if(errors > 0){const emErrs24 = [];for(const err153 of vErrors){if(((((err153.keyword !== "errorMessage") && (!err153.emUsed)) && ((err153.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err153.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err153.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err153.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err153.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs24.push(err153);err153.emUsed = true;}}if(emErrs24.length){const err154 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors: emErrs24},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}const emErrs25 = [];for(const err155 of vErrors){if(!err155.emUsed){emErrs25.push(err155);}}vErrors = emErrs25;errors = emErrs25.length;}var _valid10 = _errs126 === errors;valid57 = _valid10;}if(!valid57){const err156 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}const _errs153 = errors;let valid68 = true;const _errs154 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err157 = {};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {if(data41.type !== undefined){if(!func0$1(data41.type, "camunda:errorEventDefinition")){const err158 = {};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}}}var _valid15 = _errs154 === errors;errors = _errs153;if(vErrors !== null){if(_errs153){vErrors.length = _errs153;}else {vErrors = null;}}if(_valid15){const _errs156 = errors;const _errs157 = errors;let valid70 = false;let passing2 = null;const _errs158 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.errorRef === undefined){const err159 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",params:{missingProperty: "errorRef"},message:"should have required property '"+"errorRef"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}var _valid16 = _errs158 === errors;if(_valid16){valid70 = true;passing2 = 0;}if(!valid70){const err160 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}else {errors = _errs157;if(vErrors !== null){if(_errs157){vErrors.length = _errs157;}else {vErrors = null;}}}if(errors > 0){const emErrs26 = [];for(const err161 of vErrors){if(((((err161.keyword !== "errorMessage") && (!err161.emUsed)) && ((err161.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") || ((err161.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding") === 0) && (err161.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding".length] === "/")))) && (err161.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err161.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs26.push(err161);err161.emUsed = true;}}if(emErrs26.length){const err162 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors: emErrs26},message:"property.binding " + JSON.stringify(data41 && data41.type) + " requires errorRef"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}const emErrs27 = [];for(const err163 of vErrors){if(!err163.emUsed){emErrs27.push(err163);}}vErrors = emErrs27;errors = emErrs27.length;}var _valid15 = _errs156 === errors;valid68 = _valid15;}if(!valid68){const err164 = {keyword:"if",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.type === undefined){const err165 = {keyword:"required",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(data41.type !== undefined){let data47 = data41.type;if(typeof data47 !== "string"){const err166 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(!((((((((((data47 === "property") || (data47 === "camunda:property")) || (data47 === "camunda:inputParameter")) || (data47 === "camunda:outputParameter")) || (data47 === "camunda:in")) || (data47 === "camunda:out")) || (data47 === "camunda:in:businessKey")) || (data47 === "camunda:executionListener")) || (data47 === "camunda:field")) || (data47 === "camunda:errorEventDefinition"))){const err167 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema27.items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if(errors > 0){const emErrs28 = [];for(const err168 of vErrors){if(((((err168.keyword !== "errorMessage") && (!err168.emUsed)) && ((err168.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/type") || ((err168.dataPath.indexOf(dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/type") === 0) && (err168.dataPath[dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/type".length] === "/")))) && (err168.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err168.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs28.push(err168);err168.emUsed = true;}}if(emErrs28.length){const err169 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs28},message:"invalid property.binding type " + JSON.stringify(data47) + "; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}const emErrs29 = [];for(const err170 of vErrors){if(!err170.emUsed){emErrs29.push(err170);}}vErrors = emErrs29;errors = emErrs29.length;}}if(data41.name !== undefined){if(typeof data41.name !== "string"){const err171 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}if(data41.event !== undefined){if(typeof data41.event !== "string"){const err172 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}if(data41.scriptFormat !== undefined){if(typeof data41.scriptFormat !== "string"){const err173 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}if(data41.source !== undefined){if(typeof data41.source !== "string"){const err174 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}if(data41.target !== undefined){if(typeof data41.target !== "string"){const err175 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(data41.expression !== undefined){if(typeof data41.expression !== "boolean"){const err176 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data41.variables !== undefined){let data54 = data41.variables;if(typeof data54 !== "string"){const err177 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if(!((data54 === "all") || (data54 === "local"))){const err178 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/enum",params:{allowedValues: schema27.items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data41.sourceExpression !== undefined){if(typeof data41.sourceExpression !== "string"){const err179 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}}else {const err180 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}}else {const err181 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}if(errors > 0){const emErrors6 = {"required":[]};const templates6 = {required:function(){return "missing binding for property \"" + JSON.stringify(i3) + "\""}};for(const err182 of vErrors){if((((((err182.keyword !== "errorMessage") && (!err182.emUsed)) && (err182.dataPath === dataPath+"/scopes/" + i2+"/properties/" + i3)) && (err182.keyword in emErrors6)) && (err182.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err182.schemaPath.slice(38)))){emErrors6[err182.keyword].push(err182);err182.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err183 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2+"/properties/" + i3,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema27.items.errorMessage[key6]};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}const emErrs30 = [];for(const err184 of vErrors){if(!err184.emUsed){emErrs30.push(err184);}}vErrors = emErrs30;errors = emErrs30.length;}}}else {const err185 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}}else {const err186 = {keyword:"type",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if(errors > 0){const emErrors7 = {"required":{"type":[],"properties":[]}};const templates7 = {required:{properties:function(){return "invalid scope " + JSON.stringify(data21 && data21.type) + ", missing properties=[]"}}};let emPropParams3;let emParamsErrors3;for(const err187 of vErrors){if((((((err187.keyword !== "errorMessage") && (!err187.emUsed)) && (err187.dataPath === dataPath+"/scopes/" + i2)) && (err187.keyword in emErrors7)) && (err187.schemaPath.indexOf("#/properties/scopes/items") === 0)) && (/^\/[^\/]*$/.test(err187.schemaPath.slice(25)))){emPropParams3 = obj0$1[err187.keyword];emParamsErrors3 = emErrors7[err187.keyword][err187.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err187);err187.emUsed = true;}}}for(const key7 in emErrors7){for(const keyProp3 in emErrors7[key7]){emParamsErrors3 = emErrors7[key7][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates7[key7] && templates7[key7][keyProp3];const err188 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i2,schemaPath:"#/properties/scopes/items/errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17$1.properties.scopes.items.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}}const emErrs31 = [];for(const err189 of vErrors){if(!err189.emUsed){emErrs31.push(err189);}}vErrors = emErrs31;errors = emErrs31.length;}}}else {const err190 = {keyword:"type",dataPath:dataPath+"/scopes",schemaPath:"#/properties/scopes/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}}else {const err191 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}validate15$1.errors = vErrors;return errors === 0;}function validate14$1(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15$1(data, {dataPath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15$1.errors : vErrors.concat(validate15$1.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs2 = errors;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate15$1(data[i0], {dataPath:dataPath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15$1.errors : vErrors.concat(validate15$1.errors);errors = vErrors.length;}}}else {const err0 = {keyword:"type",dataPath,schemaPath:"#/oneOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14$1.errors = vErrors;return errors === 0;}
122756
122790
 
122757
122791
  var jsonSourceMap = {};
122758
122792
 
@@ -123324,11 +123358,11 @@
123324
123358
  }
123325
123359
 
123326
123360
  var name$1 = "@camunda/zeebe-element-templates-json-schema";
123327
- var version = "0.15.0";
123361
+ var version = "0.16.1";
123328
123362
 
123329
123363
  var standaloneZeebeValidator = {exports: {}};
123330
123364
 
123331
- standaloneZeebeValidator.exports = validate14;standaloneZeebeValidator.exports.default = validate14;const schema17 = {"type":"object","allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"name":{"$id":"#/name","type":"string","description":"The name of the element template."},"id":{"$id":"#/id","type":"string","description":"The identifier of the element template."},"description":{"$id":"#/description","type":"string","description":"The description of the element template."},"version":{"$id":"#/version","type":"integer","description":"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"deprecated":{"$id":"#/deprecated","type":["boolean","object"],"description":"Indicates whether the element template is deprecated.","properties":{"message":{"$id":"#/deprecated/message","type":"string","description":"Optional message to describe migration path."},"documentationRef":{"$id":"#/deprecated/documentationRef","type":"string","pattern":"^(https|http)://.*","description":"Optional link to migration documentation."}}},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}],"errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""}}},"elementType":{"$id":"#/elementType","type":"object","description":"The BPMN type the element will be transformed into.","default":{},"required":["value"],"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}],"errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""}}},"errorMessage":{"required":{"value":"missing elementType value"}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","description":"Select whether non-template entries are visible in the properties panel."},"groups":{"$id":"#/groups","type":"array","description":"Custom fields can be ordered together via groups.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"The id of the custom group"},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the custom group"}},"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}}}},"documentationRef":{"$id":"#/documentationRef","type":"string","pattern":"^(https|http)://.*","errorMessage":{"pattern":"Malformed documentation URL, must match \"^(https|http)://.*\""}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["bpmn:Message#property","bpmn:Message#zeebe:subscription#property"]}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ReceiveTask","bpmn:SendTask","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}}},"then":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"},"required":["eventDefinition"]}}]}}}}]}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"},"icon":{"$id":"#/icon","type":"object","description":"Custom icon to be shown on the element","default":{},"properties":{"contents":{"$id":"#/icon/contents","type":"string","description":"The URL of an icon.","pattern":"^(https?|data):.*","errorMessage":{"pattern":"Malformed icon source, must be a valid HTTP(s) or data URL"}}},"required":["contents"],"errorMessage":{"required":{"contents":"missing icon contents"}}},"elementType":{"allOf":[{"allOf":[{"properties":{"eventDefinition":{"$id":"#/elementType/eventDefinition","enum":["bpmn:MessageEventDefinition"]}}},{"if":{"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"required":["value"]}}]}]},"groups":{"items":{"properties":{"tooltip":{"$id":"#/groups/group/tooltip","type":"string"},"openByDefault":{"$id":"#/groups/group/openByDefault","type":"boolean","description":"Specifies whether the Group should be opened when first viewed. Defaults to true.","default":true}}}}}};const pattern0 = new RegExp("^(https|http)://.*", "u");const pattern1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern4 = new RegExp("^(https?|data):.*", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const func0 = equal.exports;const schema18 = {"allOf":[{"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property."},"value":{"$id":"#/properties/property/value","type":["string","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."},"condition":{"$id":"#/condition","type":"object","description":"Condition(s) to activate the binding.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}}},"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},"minItems":1}},"required":["allMatch"]}]}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","zeebe:taskDefinition:type","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader"],"errorMessage":"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"}},"required":["type"]}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"constraints":{"properties":{"notEmpty":{"const":false,"errorMessage":"optional is not allowed for truthy \"notEmpty\" constraint"}},"required":["notEmpty"]}}}},{"if":{"properties":{"feel":{"not":{"const":null}}},"required":["feel"]},"then":{"properties":{"type":{"enum":["String","Text"],"errorMessage":"feel is only supported for \"String\" and \"Text\" type"}},"required":["type"]}},{"if":{"properties":{"language":{"not":{"const":null}}},"required":["language"]},"then":{"properties":{"type":{"enum":["Text"],"errorMessage":"language is only supported for \"Text\" type"}}}},{"if":{"required":["value"]},"then":{"not":{"required":["generatedValue"]}}},{"if":{"properties":{"type":{"enum":["Boolean","Dropdown"]}},"required":["type"]},"then":{"not":{"required":["generatedValue"]}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Zeebe extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","zeebe:property","zeebe:input","bpmn:Message#property","bpmn:Message#zeebe:subscription#property"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"zeebe:output"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"zeebe:taskHeader"}},"required":["type"]},"then":{"required":["key"],"errorMessage":"property.binding ${0/type} requires key"}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition"}},"required":["type"]},"then":{"properties":{"property":{"enum":["type","retries"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition:type"}},"required":["type"]},"then":{"deprecated":true}},{"examples":[{"type":"property","name":"name"},{"type":"zeebe:input","name":"input"},{"type":"zeebe:output","source":"output"},{"type":"zeebe:property","name":"property"},{"type":"zeebe:taskHeader","key":"key"},{"type":"zeebe:taskDefinition","property":"retries"},{"type":"zeebe:taskDefinition","property":"type"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","description":"The type of a property binding.","enum":["property","zeebe:taskDefinition:type","zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition"],"errorMessage":"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (zeebe:output)."},"key":{"$id":"#/properties/property/binding/key","type":"string","description":"The key value of a property binding (zeebe:taskHeader)."},"property":{"$id":"#/properties/property/binding/property","type":"string","description":"The name of the property defined in the binding."}}},"optional":{"$id":"#/optional","type":"boolean","description":"Indicates whether a property is optional. Optional bindings do not persist empty values in the underlying BPMN 2.0 XML."},"feel":{"$id":"#/properties/property/feel","type":"string","default":null,"description":"Indicates whether the property can be a feel expression","enum":[null,"optional","required"]},"language":{"$id":"#/properties/property/language","type":"string","description":"Indicates that the field is a custom language editor"},"generatedValue":{"$id":"#/properties/property/generatedValue","type":"object","required":["type"],"properties":{"type":{"const":"uuid"}},"description":"Sets property to a generated value according to given scheme."},"tooltip":{"$id":"#/properties/property/tooltip","type":"string","description":"Hints for the control field."}},"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}}}}]};const schema20 = {"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}};function validate17(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {keyword:"type",dataPath:dataPath+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {keyword:"type",dataPath:dataPath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {keyword:"type",dataPath:dataPath+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}}if(!valid2){const err6 = {keyword:"oneOf",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.property === undefined){const err7 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data.type !== undefined){if(!func0(data.type, "simple")){const err8 = {keyword:"const",dataPath:dataPath+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err9 = {keyword:"type",dataPath:dataPath+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}else {const err10 = {keyword:"type",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err11 of vErrors){if((((((err11.keyword !== "errorMessage") && (!err11.emUsed)) && (err11.dataPath === dataPath)) && (err11.keyword in emErrors0)) && (err11.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err11.schemaPath.slice(81)))){emPropParams0 = obj0[err11.keyword];emParamsErrors0 = emErrors0[err11.keyword][err11.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err11);err11.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err12 = {keyword:"errorMessage",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}const emErrs0 = [];for(const err13 of vErrors){if(!err13.emUsed){emErrs0.push(err13);}}vErrors = emErrs0;errors = emErrs0.length;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs17 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err14 = {keyword:"required",dataPath,schemaPath:"#/oneOf/1/required",params:{missingProperty: "allMatch"},message:"should have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data.allMatch !== undefined){let data5 = data.allMatch;if(Array.isArray(data5)){if(data5.length < 1){const err15 = {keyword:"minItems",dataPath:dataPath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",params:{limit: 1},message:"should NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}const len1 = data5.length;for(let i1=0; i1<len1; i1++){let data6 = data5[i1];const _errs23 = errors;let valid12 = false;let passing2 = null;const _errs24 = errors;if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.equals === undefined){const err16 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data6.equals !== undefined){let data7 = data6.equals;if(((typeof data7 !== "string") && (!(typeof data7 == "number"))) && (typeof data7 !== "boolean")){const err17 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}var _valid2 = _errs24 === errors;if(_valid2){valid12 = true;passing2 = 0;}const _errs27 = errors;if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.oneOf === undefined){const err18 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data6.oneOf !== undefined){let data8 = data6.oneOf;if(Array.isArray(data8)){const len2 = data8.length;for(let i2=0; i2<len2; i2++){let data9 = data8[i2];if((typeof data9 !== "string") && (!(typeof data9 == "number"))){const err19 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}else {const err20 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}var _valid2 = _errs27 === errors;if(_valid2 && valid12){valid12 = false;passing2 = [passing2, 1];}else {if(_valid2){valid12 = true;passing2 = 1;}}if(!valid12){const err21 = {keyword:"oneOf",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}else {errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}}if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.property === undefined){const err22 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data6.type !== undefined){if(!func0(data6.type, "simple")){const err23 = {keyword:"const",dataPath:dataPath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data6.property !== undefined){if(typeof data6.property !== "string"){const err24 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}else {const err25 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.dataPath === dataPath+"/allMatch/" + i1)) && (err26.keyword in emErrors1)) && (err26.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(81)))){emPropParams1 = obj0[err26.keyword];emParamsErrors1 = emErrors1[err26.keyword][err26.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err26);err26.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err27 = {keyword:"errorMessage",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}const emErrs1 = [];for(const err28 of vErrors){if(!err28.emUsed){emErrs1.push(err28);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err29 = {keyword:"type",dataPath:dataPath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}var _valid0 = _errs17 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err30 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate17.errors = vErrors;return errors === 0;}function validate16(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs5 = errors;let valid5 = true;const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if(!func0(data0.type, "Dropdown")){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs6 === errors;errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}if(_valid0){const _errs8 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {keyword:"required",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.dataPath === dataPath+"/" + i0) || ((err3.dataPath.indexOf(dataPath+"/" + i0) === 0) && (err3.dataPath[dataPath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/allOf/0/items/allOf/0/then") === 0)) && (err3.schemaPath["#/allOf/0/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs8 === errors;valid5 = _valid0;}if(!valid5){const err6 = {keyword:"if",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err7 = {keyword:"type",dataPath:dataPath+"/" + i0+"/id",schemaPath:"#/allOf/0/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data0.value !== undefined){let data3 = data0.value;if((typeof data3 !== "string") && (typeof data3 !== "boolean")){const err8 = {keyword:"type",dataPath:dataPath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",params:{type: schema18.allOf[0].items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err9 = {keyword:"type",dataPath:dataPath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err10 = {keyword:"type",dataPath:dataPath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err11 = {keyword:"type",dataPath:dataPath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err12 = {keyword:"type",dataPath:dataPath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data0.choices !== undefined){let data8 = data0.choices;if(Array.isArray(data8)){const len1 = data8.length;for(let i1=0; i1<len1; i1++){let data9 = data8[i1];if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.value === undefined){const err13 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data9.name === undefined){const err14 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data9.name !== undefined){if(typeof data9.name !== "string"){const err15 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data9.value !== undefined){if(typeof data9.value !== "string"){const err16 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data9.condition !== undefined){if(!(validate17(data9.condition, {dataPath:dataPath+"/" + i0+"/choices/" + i1+"/condition",parentData:data9,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}else {const err17 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(errors > 0){const emErrors0 = {"required":[]};const templates0 = {};for(const err18 of vErrors){if((((((err18.keyword !== "errorMessage") && (!err18.emUsed)) && (err18.dataPath === dataPath+"/" + i0+"/choices/" + i1)) && (err18.keyword in emErrors0)) && (err18.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err18.schemaPath.slice(40)))){emErrors0[err18.keyword].push(err18);err18.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err19 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema18.allOf[0].items.properties.choices.items.errorMessage[key0]};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}const emErrs2 = [];for(const err20 of vErrors){if(!err20.emUsed){emErrs2.push(err20);}}vErrors = emErrs2;errors = emErrs2.length;}}}else {const err21 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data0.constraints !== undefined){let data13 = data0.constraints;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.notEmpty !== undefined){if(typeof data13.notEmpty !== "boolean"){const err22 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data13.minLength !== undefined){if(!(typeof data13.minLength == "number")){const err23 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data13.maxLength !== undefined){if(!(typeof data13.maxLength == "number")){const err24 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data13.pattern !== undefined){let data17 = data13.pattern;const _errs39 = errors;let valid13 = false;let passing0 = null;const _errs40 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){if(typeof data17.value !== "string"){const err25 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data17.message !== undefined){if(typeof data17.message !== "string"){const err26 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid1 = _errs40 === errors;if(_valid1){valid13 = true;passing0 = 0;}const _errs46 = errors;if(typeof data17 !== "string"){const err28 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid1 = _errs46 === errors;if(_valid1 && valid13){valid13 = false;passing0 = [passing0, 1];}else {if(_valid1){valid13 = true;passing0 = 1;}}if(!valid13){const err29 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs39;if(vErrors !== null){if(_errs39){vErrors.length = _errs39;}else {vErrors = null;}}}}}else {const err30 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err31 = {keyword:"type",dataPath:dataPath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data0.condition !== undefined){let data21 = data0.condition;if(!(data21 && typeof data21 == "object" && !Array.isArray(data21))){const err32 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}const _errs52 = errors;let valid15 = false;let passing1 = null;const _errs53 = errors;const _errs56 = errors;let valid17 = false;let passing2 = null;const _errs57 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.equals === undefined){const err33 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data21.equals !== undefined){let data22 = data21.equals;if(((typeof data22 !== "string") && (!(typeof data22 == "number"))) && (typeof data22 !== "boolean")){const err34 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}var _valid3 = _errs57 === errors;if(_valid3){valid17 = true;passing2 = 0;}const _errs60 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.oneOf === undefined){const err35 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data21.oneOf !== undefined){let data23 = data21.oneOf;if(Array.isArray(data23)){const len2 = data23.length;for(let i2=0; i2<len2; i2++){let data24 = data23[i2];if((typeof data24 !== "string") && (!(typeof data24 == "number"))){const err36 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}var _valid3 = _errs60 === errors;if(_valid3 && valid17){valid17 = false;passing2 = [passing2, 1];}else {if(_valid3){valid17 = true;passing2 = 1;}}if(!valid17){const err38 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}}if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.property === undefined){const err39 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if(data21.type !== undefined){if(!func0(data21.type, "simple")){const err40 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data21.property !== undefined){if(typeof data21.property !== "string"){const err41 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}else {const err42 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err43 of vErrors){if((((((err43.keyword !== "errorMessage") && (!err43.emUsed)) && (err43.dataPath === dataPath+"/" + i0+"/condition")) && (err43.keyword in emErrors1)) && (err43.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err43.schemaPath.slice(81)))){emPropParams0 = obj0[err43.keyword];emParamsErrors0 = emErrors1[err43.keyword][err43.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err43);err43.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp0 in emErrors1[key1]){emParamsErrors0 = emErrors1[key1][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates1[key1] && templates1[key1][keyProp0];const err44 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key1][keyProp0]};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}const emErrs3 = [];for(const err45 of vErrors){if(!err45.emUsed){emErrs3.push(err45);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid2 = _errs53 === errors;if(_valid2){valid15 = true;passing1 = 0;}const _errs68 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.allMatch === undefined){const err46 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/required",params:{missingProperty: "allMatch"},message:"should have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data21.allMatch !== undefined){let data27 = data21.allMatch;if(Array.isArray(data27)){if(data27.length < 1){const err47 = {keyword:"minItems",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/minItems",params:{limit: 1},message:"should NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}const len3 = data27.length;for(let i3=0; i3<len3; i3++){let data28 = data27[i3];const _errs74 = errors;let valid27 = false;let passing3 = null;const _errs75 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.equals === undefined){const err48 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if(data28.equals !== undefined){let data29 = data28.equals;if(((typeof data29 !== "string") && (!(typeof data29 == "number"))) && (typeof data29 !== "boolean")){const err49 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}var _valid4 = _errs75 === errors;if(_valid4){valid27 = true;passing3 = 0;}const _errs78 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.oneOf === undefined){const err50 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(data28.oneOf !== undefined){let data30 = data28.oneOf;if(Array.isArray(data30)){const len4 = data30.length;for(let i4=0; i4<len4; i4++){let data31 = data30[i4];if((typeof data31 !== "string") && (!(typeof data31 == "number"))){const err51 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf/" + i4,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}else {const err52 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}var _valid4 = _errs78 === errors;if(_valid4 && valid27){valid27 = false;passing3 = [passing3, 1];}else {if(_valid4){valid27 = true;passing3 = 1;}}if(!valid27){const err53 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing3},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {errors = _errs74;if(vErrors !== null){if(_errs74){vErrors.length = _errs74;}else {vErrors = null;}}}if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.property === undefined){const err54 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(data28.type !== undefined){if(!func0(data28.type, "simple")){const err55 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data28.property !== undefined){if(typeof data28.property !== "string"){const err56 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}else {const err57 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(errors > 0){const emErrors2 = {"required":{"property":[]}};const templates2 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err58 of vErrors){if((((((err58.keyword !== "errorMessage") && (!err58.emUsed)) && (err58.dataPath === dataPath+"/" + i0+"/condition/allMatch/" + i3)) && (err58.keyword in emErrors2)) && (err58.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err58.schemaPath.slice(81)))){emPropParams1 = obj0[err58.keyword];emParamsErrors1 = emErrors2[err58.keyword][err58.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err58);err58.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp1 in emErrors2[key2]){emParamsErrors1 = emErrors2[key2][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates2[key2] && templates2[key2][keyProp1];const err59 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key2][keyProp1]};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}}const emErrs4 = [];for(const err60 of vErrors){if(!err60.emUsed){emErrs4.push(err60);}}vErrors = emErrs4;errors = emErrs4.length;}}}else {const err61 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}}var _valid2 = _errs68 === errors;if(_valid2 && valid15){valid15 = false;passing1 = [passing1, 1];}else {if(_valid2){valid15 = true;passing1 = 1;}}if(!valid15){const err62 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}}}}else {const err63 = {keyword:"type",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}else {const err64 = {keyword:"type",dataPath,schemaPath:"#/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}if(Array.isArray(data)){const len5 = data.length;for(let i5=0; i5<len5; i5++){let data34 = data[i5];const _errs91 = errors;let valid37 = true;const _errs92 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.binding === undefined) && ("binding")){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}else {if(data34.binding !== undefined){let data35 = data34.binding;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if((data35.type === undefined) && ("type")){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {if(data35.type !== undefined){if(!func0(data35.type, "property")){const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}}}}}var _valid5 = _errs92 === errors;errors = _errs91;if(vErrors !== null){if(_errs91){vErrors.length = _errs91;}else {vErrors = null;}}if(_valid5){const _errs95 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.type !== undefined){let data37 = data34.type;if(!(((((data37 === "String") || (data37 === "Text")) || (data37 === "Hidden")) || (data37 === "Dropdown")) || (data37 === "Boolean"))){const err68 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(errors > 0){const emErrs5 = [];for(const err69 of vErrors){if(((((err69.keyword !== "errorMessage") && (!err69.emUsed)) && ((err69.dataPath === dataPath+"/" + i5+"/type") || ((err69.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err69.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err69.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err69.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs5.push(err69);err69.emUsed = true;}}if(emErrs5.length){const err70 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs5},message:"invalid property type " + JSON.stringify(data37) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}const emErrs6 = [];for(const err71 of vErrors){if(!err71.emUsed){emErrs6.push(err71);}}vErrors = emErrs6;errors = emErrs6.length;}}}var _valid5 = _errs95 === errors;valid37 = _valid5;}if(!valid37){const err72 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}const _errs98 = errors;let valid41 = true;const _errs99 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.binding === undefined) && ("binding")){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {if(data34.binding !== undefined){let data38 = data34.binding;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if((data38.type === undefined) && ("type")){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}else {if(data38.type !== undefined){let data39 = data38.type;if(!((((((((data39 === "zeebe:input") || (data39 === "zeebe:output")) || (data39 === "zeebe:property")) || (data39 === "zeebe:taskHeader")) || (data39 === "zeebe:taskDefinition:type")) || (data39 === "bpmn:Message#property")) || (data39 === "bpmn:Message#zeebe:subscription#property")) || (data39 === "zeebe:taskDefinition"))){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}}}}}var _valid6 = _errs99 === errors;errors = _errs98;if(vErrors !== null){if(_errs98){vErrors.length = _errs98;}else {vErrors = null;}}if(_valid6){const _errs102 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.type !== undefined){let data40 = data34.type;if(!((((data40 === "String") || (data40 === "Text")) || (data40 === "Hidden")) || (data40 === "Dropdown"))){const err76 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(errors > 0){const emErrs7 = [];for(const err77 of vErrors){if(((((err77.keyword !== "errorMessage") && (!err77.emUsed)) && ((err77.dataPath === dataPath+"/" + i5+"/type") || ((err77.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err77.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err77.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err77.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs7.push(err77);err77.emUsed = true;}}if(emErrs7.length){const err78 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data40) + " for binding type " + JSON.stringify(data34 && data34.binding && data34.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}const emErrs8 = [];for(const err79 of vErrors){if(!err79.emUsed){emErrs8.push(err79);}}vErrors = emErrs8;errors = emErrs8.length;}}}var _valid6 = _errs102 === errors;valid41 = _valid6;}if(!valid41){const err80 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}const _errs105 = errors;let valid45 = true;const _errs106 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.optional === undefined) && ("optional")){const err81 = {};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {if(data34.optional !== undefined){if(!func0(data34.optional, true)){const err82 = {};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}}}var _valid7 = _errs106 === errors;errors = _errs105;if(vErrors !== null){if(_errs105){vErrors.length = _errs105;}else {vErrors = null;}}if(_valid7){const _errs108 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.binding !== undefined){let data42 = data34.binding;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err83 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if(data42.type !== undefined){let data43 = data42.type;if(!((((data43 === "zeebe:input") || (data43 === "zeebe:output")) || (data43 === "zeebe:property")) || (data43 === "zeebe:taskHeader"))){const err84 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if(errors > 0){const emErrs9 = [];for(const err85 of vErrors){if(((((err85.keyword !== "errorMessage") && (!err85.emUsed)) && ((err85.dataPath === dataPath+"/" + i5+"/binding/type") || ((err85.dataPath.indexOf(dataPath+"/" + i5+"/binding/type") === 0) && (err85.dataPath[dataPath+"/" + i5+"/binding/type".length] === "/")))) && (err85.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err85.schemaPath["#/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs9.push(err85);err85.emUsed = true;}}if(emErrs9.length){const err86 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",params:{errors: emErrs9},message:"optional is not supported for binding type " + JSON.stringify(data43) + "; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const emErrs10 = [];for(const err87 of vErrors){if(!err87.emUsed){emErrs10.push(err87);}}vErrors = emErrs10;errors = emErrs10.length;}}}}}var _valid7 = _errs108 === errors;valid45 = _valid7;}if(!valid45){const err88 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}const _errs112 = errors;let valid49 = true;const _errs113 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.optional === undefined) && ("optional")){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}else {if(data34.optional !== undefined){if(!func0(data34.optional, true)){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}}var _valid8 = _errs113 === errors;errors = _errs112;if(vErrors !== null){if(_errs112){vErrors.length = _errs112;}else {vErrors = null;}}if(_valid8){const _errs115 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.constraints !== undefined){let data45 = data34.constraints;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.notEmpty === undefined){const err91 = {keyword:"required",dataPath:dataPath+"/" + i5+"/constraints",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/required",params:{missingProperty: "notEmpty"},message:"should have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(data45.notEmpty !== undefined){if(!func0(data45.notEmpty, false)){const err92 = {keyword:"const",dataPath:dataPath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",params:{allowedValue: false},message:"should be equal to constant"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(errors > 0){const emErrs11 = [];for(const err93 of vErrors){if(((((err93.keyword !== "errorMessage") && (!err93.emUsed)) && ((err93.dataPath === dataPath+"/" + i5+"/constraints/notEmpty") || ((err93.dataPath.indexOf(dataPath+"/" + i5+"/constraints/notEmpty") === 0) && (err93.dataPath[dataPath+"/" + i5+"/constraints/notEmpty".length] === "/")))) && (err93.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err93.schemaPath["#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs11.push(err93);err93.emUsed = true;}}if(emErrs11.length){const err94 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",params:{errors: emErrs11},message:"optional is not allowed for truthy \"notEmpty\" constraint"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const emErrs12 = [];for(const err95 of vErrors){if(!err95.emUsed){emErrs12.push(err95);}}vErrors = emErrs12;errors = emErrs12.length;}}}}}var _valid8 = _errs115 === errors;valid49 = _valid8;}if(!valid49){const err96 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}const _errs119 = errors;let valid53 = true;const _errs120 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.feel === undefined) && ("feel")){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {if(data34.feel !== undefined){const _errs122 = errors;const _errs123 = errors;if(!func0(data34.feel, schema18.allOf[1].items.allOf[4].if.properties.feel.not.const)){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}var valid55 = _errs123 === errors;if(!valid55){errors = _errs122;if(vErrors !== null){if(_errs122){vErrors.length = _errs122;}else {vErrors = null;}}}else {const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}}var _valid9 = _errs120 === errors;errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}if(_valid9){const _errs124 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.type === undefined){const err100 = {keyword:"required",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/then/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if(data34.type !== undefined){let data48 = data34.type;if(!((data48 === "String") || (data48 === "Text"))){const err101 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[4].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if(errors > 0){const emErrs13 = [];for(const err102 of vErrors){if(((((err102.keyword !== "errorMessage") && (!err102.emUsed)) && ((err102.dataPath === dataPath+"/" + i5+"/type") || ((err102.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err102.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err102.schemaPath.indexOf("#/allOf/1/items/allOf/4/then/properties/type") === 0)) && (err102.schemaPath["#/allOf/1/items/allOf/4/then/properties/type".length] === "/")){emErrs13.push(err102);err102.emUsed = true;}}if(emErrs13.length){const err103 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/errorMessage",params:{errors: emErrs13},message:"feel is only supported for \"String\" and \"Text\" type"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}const emErrs14 = [];for(const err104 of vErrors){if(!err104.emUsed){emErrs14.push(err104);}}vErrors = emErrs14;errors = emErrs14.length;}}}var _valid9 = _errs124 === errors;valid53 = _valid9;}if(!valid53){const err105 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}const _errs127 = errors;let valid57 = true;const _errs128 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.language === undefined) && ("language")){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}else {if(data34.language !== undefined){const _errs130 = errors;const _errs131 = errors;if(!func0(data34.language, schema18.allOf[1].items.allOf[5].if.properties.language.not.const)){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}var valid59 = _errs131 === errors;if(!valid59){errors = _errs130;if(vErrors !== null){if(_errs130){vErrors.length = _errs130;}else {vErrors = null;}}}else {const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}}var _valid10 = _errs128 === errors;errors = _errs127;if(vErrors !== null){if(_errs127){vErrors.length = _errs127;}else {vErrors = null;}}if(_valid10){const _errs132 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.type !== undefined){if(!(data34.type === "Text")){const err109 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[5].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(errors > 0){const emErrs15 = [];for(const err110 of vErrors){if(((((err110.keyword !== "errorMessage") && (!err110.emUsed)) && ((err110.dataPath === dataPath+"/" + i5+"/type") || ((err110.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err110.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err110.schemaPath.indexOf("#/allOf/1/items/allOf/5/then/properties/type") === 0)) && (err110.schemaPath["#/allOf/1/items/allOf/5/then/properties/type".length] === "/")){emErrs15.push(err110);err110.emUsed = true;}}if(emErrs15.length){const err111 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/errorMessage",params:{errors: emErrs15},message:"language is only supported for \"Text\" type"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}const emErrs16 = [];for(const err112 of vErrors){if(!err112.emUsed){emErrs16.push(err112);}}vErrors = emErrs16;errors = emErrs16.length;}}}var _valid10 = _errs132 === errors;valid57 = _valid10;}if(!valid57){const err113 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/5/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}const _errs135 = errors;let valid61 = true;const _errs136 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.value === undefined) && ("value")){const err114 = {};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}var _valid11 = _errs136 === errors;errors = _errs135;if(vErrors !== null){if(_errs135){vErrors.length = _errs135;}else {vErrors = null;}}if(_valid11){const _errs137 = errors;const _errs138 = errors;const _errs139 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.generatedValue === undefined) && ("generatedValue")){const err115 = {};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}var valid62 = _errs139 === errors;if(!valid62){errors = _errs138;if(vErrors !== null){if(_errs138){vErrors.length = _errs138;}else {vErrors = null;}}}else {const err116 = {keyword:"not",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/then/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}var _valid11 = _errs137 === errors;valid61 = _valid11;}if(!valid61){const err117 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}const _errs141 = errors;let valid63 = true;const _errs142 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.type === undefined) && ("type")){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {if(data34.type !== undefined){let data51 = data34.type;if(!((data51 === "Boolean") || (data51 === "Dropdown"))){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}}var _valid12 = _errs142 === errors;errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}if(_valid12){const _errs144 = errors;const _errs145 = errors;const _errs146 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.generatedValue === undefined) && ("generatedValue")){const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}var valid65 = _errs146 === errors;if(!valid65){errors = _errs145;if(vErrors !== null){if(_errs145){vErrors.length = _errs145;}else {vErrors = null;}}}else {const err121 = {keyword:"not",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/then/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var _valid12 = _errs144 === errors;valid63 = _valid12;}if(!valid63){const err122 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.binding === undefined){const err123 = {keyword:"required",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if(data34.binding !== undefined){let data52 = data34.binding;const _errs150 = errors;let valid68 = true;const _errs151 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.type === undefined) && ("type")){const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}else {if(data52.type !== undefined){let data53 = data52.type;if(!(((((data53 === "property") || (data53 === "zeebe:property")) || (data53 === "zeebe:input")) || (data53 === "bpmn:Message#property")) || (data53 === "bpmn:Message#zeebe:subscription#property"))){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}}}var _valid13 = _errs151 === errors;errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}if(_valid13){const _errs153 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.name === undefined){const err126 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}if(errors > 0){const emErrs17 = [];for(const err127 of vErrors){if(((((err127.keyword !== "errorMessage") && (!err127.emUsed)) && ((err127.dataPath === dataPath+"/" + i5+"/binding") || ((err127.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err127.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err127.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err127.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs17.push(err127);err127.emUsed = true;}}if(emErrs17.length){const err128 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs17},message:"property.binding " + JSON.stringify(data52 && data52.type) + " requires name"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}const emErrs18 = [];for(const err129 of vErrors){if(!err129.emUsed){emErrs18.push(err129);}}vErrors = emErrs18;errors = emErrs18.length;}var _valid13 = _errs153 === errors;valid68 = _valid13;}if(!valid68){const err130 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}const _errs155 = errors;let valid70 = true;const _errs156 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.type === undefined) && ("type")){const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}else {if(data52.type !== undefined){if(!func0(data52.type, "zeebe:output")){const err132 = {};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}}}var _valid14 = _errs156 === errors;errors = _errs155;if(vErrors !== null){if(_errs155){vErrors.length = _errs155;}else {vErrors = null;}}if(_valid14){const _errs158 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.source === undefined){const err133 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}if(errors > 0){const emErrs19 = [];for(const err134 of vErrors){if(((((err134.keyword !== "errorMessage") && (!err134.emUsed)) && ((err134.dataPath === dataPath+"/" + i5+"/binding") || ((err134.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err134.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err134.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err134.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs19.push(err134);err134.emUsed = true;}}if(emErrs19.length){const err135 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data52 && data52.type) + " requires source"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}const emErrs20 = [];for(const err136 of vErrors){if(!err136.emUsed){emErrs20.push(err136);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid14 = _errs158 === errors;valid70 = _valid14;}if(!valid70){const err137 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}const _errs160 = errors;let valid72 = true;const _errs161 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.type === undefined) && ("type")){const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}else {if(data52.type !== undefined){if(!func0(data52.type, "zeebe:taskHeader")){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}}}var _valid15 = _errs161 === errors;errors = _errs160;if(vErrors !== null){if(_errs160){vErrors.length = _errs160;}else {vErrors = null;}}if(_valid15){const _errs163 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.key === undefined){const err140 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/required",params:{missingProperty: "key"},message:"should have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}if(errors > 0){const emErrs21 = [];for(const err141 of vErrors){if(((((err141.keyword !== "errorMessage") && (!err141.emUsed)) && ((err141.dataPath === dataPath+"/" + i5+"/binding") || ((err141.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err141.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err141.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err141.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs21.push(err141);err141.emUsed = true;}}if(emErrs21.length){const err142 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data52 && data52.type) + " requires key"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}const emErrs22 = [];for(const err143 of vErrors){if(!err143.emUsed){emErrs22.push(err143);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid15 = _errs163 === errors;valid72 = _valid15;}if(!valid72){const err144 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}const _errs165 = errors;let valid74 = true;const _errs166 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.type === undefined) && ("type")){const err145 = {};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {if(data52.type !== undefined){if(!func0(data52.type, "zeebe:taskDefinition")){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}}var _valid16 = _errs166 === errors;errors = _errs165;if(vErrors !== null){if(_errs165){vErrors.length = _errs165;}else {vErrors = null;}}if(_valid16){const _errs168 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.property === undefined){const err147 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if(data52.property !== undefined){let data57 = data52.property;if(!((data57 === "type") || (data57 === "retries"))){const err148 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/properties/property/enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.allOf[3].then.properties.property.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}var _valid16 = _errs168 === errors;valid74 = _valid16;}if(!valid74){const err149 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.type === undefined){const err150 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(data52.type !== undefined){let data58 = data52.type;if(typeof data58 !== "string"){const err151 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if(!(((((((((data58 === "property") || (data58 === "zeebe:taskDefinition:type")) || (data58 === "zeebe:input")) || (data58 === "zeebe:output")) || (data58 === "zeebe:property")) || (data58 === "zeebe:taskHeader")) || (data58 === "bpmn:Message#property")) || (data58 === "bpmn:Message#zeebe:subscription#property")) || (data58 === "zeebe:taskDefinition"))){const err152 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(errors > 0){const emErrs23 = [];for(const err153 of vErrors){if(((((err153.keyword !== "errorMessage") && (!err153.emUsed)) && ((err153.dataPath === dataPath+"/" + i5+"/binding/type") || ((err153.dataPath.indexOf(dataPath+"/" + i5+"/binding/type") === 0) && (err153.dataPath[dataPath+"/" + i5+"/binding/type".length] === "/")))) && (err153.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err153.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs23.push(err153);err153.emUsed = true;}}if(emErrs23.length){const err154 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs23},message:"invalid property.binding type " + JSON.stringify(data58) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property }"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}const emErrs24 = [];for(const err155 of vErrors){if(!err155.emUsed){emErrs24.push(err155);}}vErrors = emErrs24;errors = emErrs24.length;}}if(data52.name !== undefined){if(typeof data52.name !== "string"){const err156 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}if(data52.source !== undefined){if(typeof data52.source !== "string"){const err157 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}if(data52.key !== undefined){if(typeof data52.key !== "string"){const err158 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/key",schemaPath:"#/allOf/1/items/properties/binding/properties/key/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}if(data52.property !== undefined){if(typeof data52.property !== "string"){const err159 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}}else {const err160 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}if(data34.optional !== undefined){if(typeof data34.optional !== "boolean"){const err161 = {keyword:"type",dataPath:dataPath+"/" + i5+"/optional",schemaPath:"#/allOf/1/items/properties/optional/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}if(data34.feel !== undefined){let data64 = data34.feel;if(typeof data64 !== "string"){const err162 = {keyword:"type",dataPath:dataPath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if(!(((data64 === null) || (data64 === "optional")) || (data64 === "required"))){const err163 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/enum",params:{allowedValues: schema18.allOf[1].items.properties.feel.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}if(data34.language !== undefined){if(typeof data34.language !== "string"){const err164 = {keyword:"type",dataPath:dataPath+"/" + i5+"/language",schemaPath:"#/allOf/1/items/properties/language/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data34.generatedValue !== undefined){let data66 = data34.generatedValue;if(data66 && typeof data66 == "object" && !Array.isArray(data66)){if(data66.type === undefined){const err165 = {keyword:"required",dataPath:dataPath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(data66.type !== undefined){if(!func0(data66.type, "uuid")){const err166 = {keyword:"const",dataPath:dataPath+"/" + i5+"/generatedValue/type",schemaPath:"#/allOf/1/items/properties/generatedValue/properties/type/const",params:{allowedValue: "uuid"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}}else {const err167 = {keyword:"type",dataPath:dataPath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}if(data34.tooltip !== undefined){if(typeof data34.tooltip !== "string"){const err168 = {keyword:"type",dataPath:dataPath+"/" + i5+"/tooltip",schemaPath:"#/allOf/1/items/properties/tooltip/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}}else {const err169 = {keyword:"type",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if(errors > 0){const emErrors3 = {"required":{"binding":[]}};const templates3 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i5) + "\""}}};let emPropParams2;let emParamsErrors2;for(const err170 of vErrors){if((((((err170.keyword !== "errorMessage") && (!err170.emUsed)) && (err170.dataPath === dataPath+"/" + i5)) && (err170.keyword in emErrors3)) && (err170.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err170.schemaPath.slice(15)))){emPropParams2 = obj0[err170.keyword];emParamsErrors2 = emErrors3[err170.keyword][err170.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err170);err170.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp2 in emErrors3[key3]){emParamsErrors2 = emErrors3[key3][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates3[key3] && templates3[key3][keyProp2];const err171 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18.allOf[1].items.errorMessage[key3][keyProp2]};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}const emErrs25 = [];for(const err172 of vErrors){if(!err172.emUsed){emErrs25.push(err172);}}vErrors = emErrs25;errors = emErrs25.length;}}}else {const err173 = {keyword:"type",dataPath,schemaPath:"#/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}validate16.errors = vErrors;return errors === 0;}function validate15(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "appliesTo"},message:"should have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.name !== undefined){if(typeof data.name !== "string"){const err4 = {keyword:"type",dataPath:dataPath+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {keyword:"type",dataPath:dataPath+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {keyword:"type",dataPath:dataPath+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){let data3 = data.version;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "integer"},message:"should be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {keyword:"type",dataPath:dataPath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.deprecated !== undefined){let data5 = data.deprecated;if((typeof data5 !== "boolean") && (!(data5 && typeof data5 == "object" && !Array.isArray(data5)))){const err9 = {keyword:"type",dataPath:dataPath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",params:{type: schema17.allOf[0].properties.deprecated.type},message:"should be boolean,object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.message !== undefined){if(typeof data5.message !== "string"){const err10 = {keyword:"type",dataPath:dataPath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data5.documentationRef !== undefined){let data7 = data5.documentationRef;if(typeof data7 === "string"){if(!pattern0.test(data7)){const err11 = {keyword:"pattern",dataPath:dataPath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {keyword:"type",dataPath:dataPath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}}if(data.appliesTo !== undefined){let data8 = data.appliesTo;if(Array.isArray(data8)){const len0 = data8.length;for(let i0=0; i0<len0; i0++){let data9 = data8[i0];if(typeof data9 === "string"){if(!pattern1.test(data9)){const err13 = {keyword:"pattern",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err15 of vErrors){if((((((err15.keyword !== "errorMessage") && (!err15.emUsed)) && (err15.dataPath === dataPath+"/appliesTo/" + i0)) && (err15.keyword in emErrors0)) && (err15.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err15.schemaPath.slice(36)))){emErrors0[err15.keyword].push(err15);err15.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err16 = {keyword:"errorMessage",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}const emErrs0 = [];for(const err17 of vErrors){if(!err17.emUsed){emErrs0.push(err17);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err18 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.elementType !== undefined){let data10 = data.elementType;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.value === undefined){const err19 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data10.value !== undefined){let data11 = data10.value;if(typeof data11 === "string"){if(!pattern1.test(data11)){const err20 = {keyword:"pattern",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {keyword:"type",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.dataPath === dataPath+"/elementType/value")) && (err22.keyword in emErrors1)) && (err22.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(49)))){emErrors1[err22.keyword].push(err22);err22.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err23 = {keyword:"errorMessage",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}const emErrs1 = [];for(const err24 of vErrors){if(!err24.emUsed){emErrs1.push(err24);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err25 = {keyword:"type",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.dataPath === dataPath+"/elementType")) && (err26.keyword in emErrors2)) && (err26.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(32)))){emPropParams0 = obj0[err26.keyword];emParamsErrors0 = emErrors2[err26.keyword][err26.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err26);err26.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err27 = {keyword:"errorMessage",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.elementType.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}const emErrs2 = [];for(const err28 of vErrors){if(!err28.emUsed){emErrs2.push(err28);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data12 = data.metadata;if(!(data12 && typeof data12 == "object" && !Array.isArray(data12))){const err29 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err30 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.groups !== undefined){let data14 = data.groups;if(Array.isArray(data14)){const len1 = data14.length;for(let i1=0; i1<len1; i1++){let data15 = data14[i1];if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.id === undefined){const err31 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data15.label === undefined){const err32 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "label"},message:"should have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(data15.id !== undefined){if(typeof data15.id !== "string"){const err33 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data15.label !== undefined){if(typeof data15.label !== "string"){const err34 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(errors > 0){const emErrors3 = {"required":{"id":[],"label":[]}};const templates3 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams1;let emParamsErrors1;for(const err36 of vErrors){if((((((err36.keyword !== "errorMessage") && (!err36.emUsed)) && (err36.dataPath === dataPath+"/groups/" + i1)) && (err36.keyword in emErrors3)) && (err36.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err36.schemaPath.slice(33)))){emPropParams1 = obj0[err36.keyword];emParamsErrors1 = emErrors3[err36.keyword][err36.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err36);err36.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp1 in emErrors3[key3]){emParamsErrors1 = emErrors3[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates3[key3] && templates3[key3][keyProp1];const err37 = {keyword:"errorMessage",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].properties.groups.items.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}const emErrs3 = [];for(const err38 of vErrors){if(!err38.emUsed){emErrs3.push(err38);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err39 = {keyword:"type",dataPath:dataPath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data.documentationRef !== undefined){let data18 = data.documentationRef;if(typeof data18 === "string"){if(!pattern0.test(data18)){const err40 = {keyword:"pattern",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {keyword:"type",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err42 of vErrors){if((((((err42.keyword !== "errorMessage") && (!err42.emUsed)) && (err42.dataPath === dataPath+"/documentationRef")) && (err42.keyword in emErrors4)) && (err42.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err42.schemaPath.slice(37)))){emErrors4[err42.keyword].push(err42);err42.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err43 = {keyword:"errorMessage",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",params:{errors: emErrors4[key4]},message:key4 in templates4 ? templates4[key4]() : schema17.allOf[0].properties.documentationRef.errorMessage[key4]};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}const emErrs4 = [];for(const err44 of vErrors){if(!err44.emUsed){emErrs4.push(err44);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err45 of vErrors){if((((((err45.keyword !== "errorMessage") && (!err45.emUsed)) && (err45.dataPath === dataPath)) && (err45.keyword in emErrors5)) && (err45.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err45.schemaPath.slice(9)))){emPropParams2 = obj0[err45.keyword];emParamsErrors2 = emErrors5[err45.keyword][err45.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err45);err45.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err46 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}const emErrs5 = [];for(const err47 of vErrors){if(!err47.emUsed){emErrs5.push(err47);}}vErrors = emErrs5;errors = emErrs5.length;}const _errs42 = errors;let valid13 = true;const _errs43 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {if(data.properties !== undefined){let data19 = data.properties;if(Array.isArray(data19)){const _errs45 = errors;const len2 = data19.length;for(let i2=0; i2<len2; i2++){let data20 = data19[i2];const _errs46 = errors;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if((data20.binding === undefined) && ("binding")){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}else {if(data20.binding !== undefined){let data21 = data20.binding;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if((data21.type === undefined) && ("type")){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}else {if(data21.type !== undefined){let data22 = data21.type;if(!((data22 === "bpmn:Message#property") || (data22 === "bpmn:Message#zeebe:subscription#property"))){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}}}}}var valid15 = _errs46 === errors;if(valid15){break;}}if(!valid15){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {errors = _errs45;if(vErrors !== null){if(_errs45){vErrors.length = _errs45;}else {vErrors = null;}}}}}}}var _valid0 = _errs43 === errors;errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}if(_valid0){const _errs49 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err53 = {keyword:"required",dataPath,schemaPath:"#/allOf/1/allOf/0/then/required",params:{missingProperty: "elementType"},message:"should have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(data.elementType !== undefined){let data23 = data.elementType;const _errs52 = errors;let valid20 = true;const _errs53 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.value !== undefined){let data24 = data23.value;if(!(((((data24 === "bpmn:StartEvent") || (data24 === "bpmn:IntermediateCatchEvent")) || (data24 === "bpmn:IntermediateThrowEvent")) || (data24 === "bpmn:BoundaryEvent")) || (data24 === "bpmn:EndEvent"))){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}var _valid1 = _errs53 === errors;errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}if(_valid1){const _errs55 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.eventDefinition === undefined){const err55 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/then/required",params:{missingProperty: "eventDefinition"},message:"should have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}var _valid1 = _errs55 === errors;valid20 = _valid1;}if(!valid20){const err56 = {keyword:"if",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.value === undefined){const err57 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(data23.value !== undefined){let data25 = data23.value;if(!(((((((data25 === "bpmn:ReceiveTask") || (data25 === "bpmn:SendTask")) || (data25 === "bpmn:StartEvent")) || (data25 === "bpmn:IntermediateCatchEvent")) || (data25 === "bpmn:IntermediateThrowEvent")) || (data25 === "bpmn:BoundaryEvent")) || (data25 === "bpmn:EndEvent"))){const err58 = {keyword:"enum",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/properties/value/enum",params:{allowedValues: schema17.allOf[1].allOf[0].then.properties.elementType.properties.value.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}}}var _valid0 = _errs49 === errors;valid13 = _valid0;}if(!valid13){const err59 = {keyword:"if",dataPath,schemaPath:"#/allOf/1/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){if(!(validate16(data.properties, {dataPath:dataPath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);errors = vErrors.length;}}if(data.icon !== undefined){let data27 = data.icon;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.contents === undefined){const err60 = {keyword:"required",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/required",params:{missingProperty: "contents"},message:"should have required property '"+"contents"+"'"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(data27.contents !== undefined){let data28 = data27.contents;if(typeof data28 === "string"){if(!pattern4.test(data28)){const err61 = {keyword:"pattern",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/pattern",params:{pattern: "^(https?|data):.*"},message:"should match pattern \""+"^(https?|data):.*"+"\""};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}else {const err62 = {keyword:"type",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(errors > 0){const emErrors6 = {"pattern":[]};const templates6 = {};for(const err63 of vErrors){if((((((err63.keyword !== "errorMessage") && (!err63.emUsed)) && (err63.dataPath === dataPath+"/icon/contents")) && (err63.keyword in emErrors6)) && (err63.schemaPath.indexOf("#/properties/icon/properties/contents") === 0)) && (/^\/[^\/]*$/.test(err63.schemaPath.slice(37)))){emErrors6[err63.keyword].push(err63);err63.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err64 = {keyword:"errorMessage",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema17.properties.icon.properties.contents.errorMessage[key6]};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}const emErrs6 = [];for(const err65 of vErrors){if(!err65.emUsed){emErrs6.push(err65);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err66 = {keyword:"type",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}if(errors > 0){const emErrors7 = {"required":{"contents":[]}};const templates7 = {required:{}};let emPropParams3;let emParamsErrors3;for(const err67 of vErrors){if((((((err67.keyword !== "errorMessage") && (!err67.emUsed)) && (err67.dataPath === dataPath+"/icon")) && (err67.keyword in emErrors7)) && (err67.schemaPath.indexOf("#/properties/icon") === 0)) && (/^\/[^\/]*$/.test(err67.schemaPath.slice(17)))){emPropParams3 = obj0[err67.keyword];emParamsErrors3 = emErrors7[err67.keyword][err67.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err67);err67.emUsed = true;}}}for(const key7 in emErrors7){for(const keyProp3 in emErrors7[key7]){emParamsErrors3 = emErrors7[key7][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates7[key7] && templates7[key7][keyProp3];const err68 = {keyword:"errorMessage",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.properties.icon.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}}const emErrs7 = [];for(const err69 of vErrors){if(!err69.emUsed){emErrs7.push(err69);}}vErrors = emErrs7;errors = emErrs7.length;}}if(data.elementType !== undefined){let data29 = data.elementType;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.eventDefinition !== undefined){if(!(data29.eventDefinition === "bpmn:MessageEventDefinition")){const err70 = {keyword:"enum",dataPath:dataPath+"/elementType/eventDefinition",schemaPath:"#/properties/elementType/allOf/0/allOf/0/properties/eventDefinition/enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[0].properties.eventDefinition.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}const _errs67 = errors;let valid28 = true;const _errs68 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if((data29.eventDefinition === undefined) && ("eventDefinition")){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}var _valid2 = _errs68 === errors;errors = _errs67;if(vErrors !== null){if(_errs67){vErrors.length = _errs67;}else {vErrors = null;}}if(_valid2){const _errs69 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.value === undefined){const err72 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(data29.value !== undefined){let data31 = data29.value;if(!(((((data31 === "bpmn:StartEvent") || (data31 === "bpmn:IntermediateCatchEvent")) || (data31 === "bpmn:IntermediateThrowEvent")) || (data31 === "bpmn:BoundaryEvent")) || (data31 === "bpmn:EndEvent"))){const err73 = {keyword:"enum",dataPath:dataPath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/properties/value/enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[1].then.properties.value.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}}var _valid2 = _errs69 === errors;valid28 = _valid2;}if(!valid28){const err74 = {keyword:"if",dataPath:dataPath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data.groups !== undefined){let data32 = data.groups;if(Array.isArray(data32)){const len3 = data32.length;for(let i3=0; i3<len3; i3++){let data33 = data32[i3];if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.tooltip !== undefined){if(typeof data33.tooltip !== "string"){const err75 = {keyword:"type",dataPath:dataPath+"/groups/" + i3+"/tooltip",schemaPath:"#/properties/groups/items/properties/tooltip/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}if(data33.openByDefault !== undefined){if(typeof data33.openByDefault !== "boolean"){const err76 = {keyword:"type",dataPath:dataPath+"/groups/" + i3+"/openByDefault",schemaPath:"#/properties/groups/items/properties/openByDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}}}}}}else {const err77 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15(data, {dataPath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs2 = errors;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate15(data[i0], {dataPath:dataPath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {keyword:"type",dataPath,schemaPath:"#/oneOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}
123365
+ standaloneZeebeValidator.exports = validate14;standaloneZeebeValidator.exports.default = validate14;const schema17 = {"type":"object","allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"name":{"$id":"#/name","type":"string","description":"The name of the element template."},"id":{"$id":"#/id","type":"string","description":"The identifier of the element template."},"description":{"$id":"#/description","type":"string","description":"The description of the element template."},"version":{"$id":"#/version","type":"integer","description":"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"deprecated":{"$id":"#/deprecated","type":["boolean","object"],"description":"Indicates whether the element template is deprecated.","properties":{"message":{"$id":"#/deprecated/message","type":"string","description":"Optional message to describe migration path."},"documentationRef":{"$id":"#/deprecated/documentationRef","type":"string","pattern":"^(https|http)://.*","description":"Optional link to migration documentation."}}},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}],"errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""}}},"elementType":{"$id":"#/elementType","type":"object","description":"The BPMN type the element will be transformed into.","default":{},"required":["value"],"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}],"errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""}}},"errorMessage":{"required":{"value":"missing elementType value"}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","description":"Select whether non-template entries are visible in the properties panel."},"groups":{"$id":"#/groups","type":"array","description":"Custom fields can be ordered together via groups.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"The id of the custom group"},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the custom group"}},"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}}}},"documentationRef":{"$id":"#/documentationRef","type":"string","pattern":"^(https|http)://.*","errorMessage":{"pattern":"Malformed documentation URL, must match \"^(https|http)://.*\""}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Message#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ReceiveTask","bpmn:SendTask","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}}},"then":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"},"required":["eventDefinition"]}}]}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Message#zeebe:subscription#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ReceiveTask","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}}},"then":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"},"required":["eventDefinition"]}}]}}}}]}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"},"icon":{"$id":"#/icon","type":"object","description":"Custom icon to be shown on the element","default":{},"properties":{"contents":{"$id":"#/icon/contents","type":"string","description":"The URL of an icon.","pattern":"^(https?|data):.*","errorMessage":{"pattern":"Malformed icon source, must be a valid HTTP(s) or data URL"}}},"required":["contents"],"errorMessage":{"required":{"contents":"missing icon contents"}}},"elementType":{"allOf":[{"allOf":[{"properties":{"eventDefinition":{"$id":"#/elementType/eventDefinition","enum":["bpmn:MessageEventDefinition"]}}},{"if":{"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"required":["value"]}}]}]},"groups":{"items":{"properties":{"tooltip":{"$id":"#/groups/group/tooltip","type":"string"},"openByDefault":{"$id":"#/groups/group/openByDefault","type":"boolean","description":"Specifies whether the Group should be opened when first viewed. Defaults to true.","default":true}}}}}};const pattern0 = new RegExp("^(https|http)://.*", "u");const pattern1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern4 = new RegExp("^(https?|data):.*", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const func0 = equal.exports;const schema18 = {"allOf":[{"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property."},"value":{"$id":"#/properties/property/value","type":["string","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."},"condition":{"$id":"#/condition","type":"object","description":"Condition(s) to activate the binding.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}}},"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},"minItems":1}},"required":["allMatch"]}]}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","zeebe:taskDefinition:type","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader"],"errorMessage":"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"}},"required":["type"]}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"constraints":{"properties":{"notEmpty":{"const":false,"errorMessage":"optional is not allowed for truthy \"notEmpty\" constraint"}},"required":["notEmpty"]}}}},{"if":{"properties":{"feel":{"not":{"const":null}}},"required":["feel"]},"then":{"properties":{"type":{"enum":["String","Text"],"errorMessage":"feel is only supported for \"String\" and \"Text\" type"}},"required":["type"]}},{"if":{"properties":{"language":{"not":{"const":null}}},"required":["language"]},"then":{"properties":{"type":{"enum":["Text"],"errorMessage":"language is only supported for \"Text\" type"}}}},{"if":{"required":["value"]},"then":{"not":{"required":["generatedValue"]}}},{"if":{"properties":{"type":{"enum":["Boolean","Dropdown"]}},"required":["type"]},"then":{"not":{"required":["generatedValue"]}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Zeebe extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","zeebe:property","zeebe:input","bpmn:Message#property","bpmn:Message#zeebe:subscription#property"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"zeebe:output"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"zeebe:taskHeader"}},"required":["type"]},"then":{"required":["key"],"errorMessage":"property.binding ${0/type} requires key"}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition"}},"required":["type"]},"then":{"properties":{"property":{"enum":["type","retries"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition:type"}},"required":["type"]},"then":{"deprecated":true}},{"examples":[{"type":"property","name":"name"},{"type":"zeebe:input","name":"input"},{"type":"zeebe:output","source":"output"},{"type":"zeebe:property","name":"property"},{"type":"zeebe:taskHeader","key":"key"},{"type":"zeebe:taskDefinition","property":"retries"},{"type":"zeebe:taskDefinition","property":"type"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","description":"The type of a property binding.","enum":["property","zeebe:taskDefinition:type","zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition"],"errorMessage":"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (zeebe:output)."},"key":{"$id":"#/properties/property/binding/key","type":"string","description":"The key value of a property binding (zeebe:taskHeader)."},"property":{"$id":"#/properties/property/binding/property","type":"string","description":"The name of the property defined in the binding."}}},"optional":{"$id":"#/optional","type":"boolean","description":"Indicates whether a property is optional. Optional bindings do not persist empty values in the underlying BPMN 2.0 XML."},"feel":{"$id":"#/properties/property/feel","type":"string","default":null,"description":"Indicates whether the property can be a feel expression","enum":[null,"optional","required"]},"language":{"$id":"#/properties/property/language","type":"string","description":"Indicates that the field is a custom language editor"},"generatedValue":{"$id":"#/properties/property/generatedValue","type":"object","required":["type"],"properties":{"type":{"const":"uuid"}},"description":"Sets property to a generated value according to given scheme."},"tooltip":{"$id":"#/properties/property/tooltip","type":"string","description":"Hints for the control field."}},"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}}}}]};const schema20 = {"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}};function validate17(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {keyword:"type",dataPath:dataPath+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {keyword:"type",dataPath:dataPath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {keyword:"type",dataPath:dataPath+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isActive === undefined){const err6 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/required",params:{missingProperty: "isActive"},message:"should have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.isActive !== undefined){if(typeof data.isActive !== "boolean"){const err7 = {keyword:"type",dataPath:dataPath+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/properties/isActive/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}var _valid1 = _errs14 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 2];}else {if(_valid1){valid2 = true;passing1 = 2;}}}if(!valid2){const err8 = {keyword:"oneOf",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.property === undefined){const err9 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.type !== undefined){if(!func0(data.type, "simple")){const err10 = {keyword:"const",dataPath:dataPath+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err11 = {keyword:"type",dataPath:dataPath+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {keyword:"type",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err13 of vErrors){if((((((err13.keyword !== "errorMessage") && (!err13.emUsed)) && (err13.dataPath === dataPath)) && (err13.keyword in emErrors0)) && (err13.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err13.schemaPath.slice(81)))){emPropParams0 = obj0[err13.keyword];emParamsErrors0 = emErrors0[err13.keyword][err13.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err13);err13.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err14 = {keyword:"errorMessage",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}const emErrs0 = [];for(const err15 of vErrors){if(!err15.emUsed){emErrs0.push(err15);}}vErrors = emErrs0;errors = emErrs0.length;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs20 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err16 = {keyword:"required",dataPath,schemaPath:"#/oneOf/1/required",params:{missingProperty: "allMatch"},message:"should have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.allMatch !== undefined){let data6 = data.allMatch;if(Array.isArray(data6)){if(data6.length < 1){const err17 = {keyword:"minItems",dataPath:dataPath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",params:{limit: 1},message:"should NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const len1 = data6.length;for(let i1=0; i1<len1; i1++){let data7 = data6[i1];const _errs26 = errors;let valid13 = false;let passing2 = null;const _errs27 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.equals === undefined){const err18 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data7.equals !== undefined){let data8 = data7.equals;if(((typeof data8 !== "string") && (!(typeof data8 == "number"))) && (typeof data8 !== "boolean")){const err19 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid2 = _errs27 === errors;if(_valid2){valid13 = true;passing2 = 0;}const _errs30 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.oneOf === undefined){const err20 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data7.oneOf !== undefined){let data9 = data7.oneOf;if(Array.isArray(data9)){const len2 = data9.length;for(let i2=0; i2<len2; i2++){let data10 = data9[i2];if((typeof data10 !== "string") && (!(typeof data10 == "number"))){const err21 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid2 = _errs30 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 1];}else {if(_valid2){valid13 = true;passing2 = 1;}const _errs35 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.isActive === undefined){const err23 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/required",params:{missingProperty: "isActive"},message:"should have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data7.isActive !== undefined){if(typeof data7.isActive !== "boolean"){const err24 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/properties/isActive/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid2 = _errs35 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 2];}else {if(_valid2){valid13 = true;passing2 = 2;}}}if(!valid13){const err25 = {keyword:"oneOf",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.property === undefined){const err26 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data7.type !== undefined){if(!func0(data7.type, "simple")){const err27 = {keyword:"const",dataPath:dataPath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data7.property !== undefined){if(typeof data7.property !== "string"){const err28 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.dataPath === dataPath+"/allMatch/" + i1)) && (err30.keyword in emErrors1)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(81)))){emPropParams1 = obj0[err30.keyword];emParamsErrors1 = emErrors1[err30.keyword][err30.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err30);err30.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err31 = {keyword:"errorMessage",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs1 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs1.push(err32);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err33 = {keyword:"type",dataPath:dataPath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}var _valid0 = _errs20 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err34 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate17.errors = vErrors;return errors === 0;}function validate16(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs5 = errors;let valid5 = true;const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if(!func0(data0.type, "Dropdown")){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs6 === errors;errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}if(_valid0){const _errs8 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {keyword:"required",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.dataPath === dataPath+"/" + i0) || ((err3.dataPath.indexOf(dataPath+"/" + i0) === 0) && (err3.dataPath[dataPath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/allOf/0/items/allOf/0/then") === 0)) && (err3.schemaPath["#/allOf/0/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs8 === errors;valid5 = _valid0;}if(!valid5){const err6 = {keyword:"if",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err7 = {keyword:"type",dataPath:dataPath+"/" + i0+"/id",schemaPath:"#/allOf/0/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data0.value !== undefined){let data3 = data0.value;if((typeof data3 !== "string") && (typeof data3 !== "boolean")){const err8 = {keyword:"type",dataPath:dataPath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",params:{type: schema18.allOf[0].items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err9 = {keyword:"type",dataPath:dataPath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err10 = {keyword:"type",dataPath:dataPath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err11 = {keyword:"type",dataPath:dataPath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err12 = {keyword:"type",dataPath:dataPath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data0.choices !== undefined){let data8 = data0.choices;if(Array.isArray(data8)){const len1 = data8.length;for(let i1=0; i1<len1; i1++){let data9 = data8[i1];if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.value === undefined){const err13 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data9.name === undefined){const err14 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data9.name !== undefined){if(typeof data9.name !== "string"){const err15 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data9.value !== undefined){if(typeof data9.value !== "string"){const err16 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data9.condition !== undefined){if(!(validate17(data9.condition, {dataPath:dataPath+"/" + i0+"/choices/" + i1+"/condition",parentData:data9,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}else {const err17 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(errors > 0){const emErrors0 = {"required":[]};const templates0 = {};for(const err18 of vErrors){if((((((err18.keyword !== "errorMessage") && (!err18.emUsed)) && (err18.dataPath === dataPath+"/" + i0+"/choices/" + i1)) && (err18.keyword in emErrors0)) && (err18.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err18.schemaPath.slice(40)))){emErrors0[err18.keyword].push(err18);err18.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err19 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema18.allOf[0].items.properties.choices.items.errorMessage[key0]};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}const emErrs2 = [];for(const err20 of vErrors){if(!err20.emUsed){emErrs2.push(err20);}}vErrors = emErrs2;errors = emErrs2.length;}}}else {const err21 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data0.constraints !== undefined){let data13 = data0.constraints;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.notEmpty !== undefined){if(typeof data13.notEmpty !== "boolean"){const err22 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data13.minLength !== undefined){if(!(typeof data13.minLength == "number")){const err23 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data13.maxLength !== undefined){if(!(typeof data13.maxLength == "number")){const err24 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data13.pattern !== undefined){let data17 = data13.pattern;const _errs39 = errors;let valid13 = false;let passing0 = null;const _errs40 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){if(typeof data17.value !== "string"){const err25 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data17.message !== undefined){if(typeof data17.message !== "string"){const err26 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid1 = _errs40 === errors;if(_valid1){valid13 = true;passing0 = 0;}const _errs46 = errors;if(typeof data17 !== "string"){const err28 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid1 = _errs46 === errors;if(_valid1 && valid13){valid13 = false;passing0 = [passing0, 1];}else {if(_valid1){valid13 = true;passing0 = 1;}}if(!valid13){const err29 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs39;if(vErrors !== null){if(_errs39){vErrors.length = _errs39;}else {vErrors = null;}}}}}else {const err30 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err31 = {keyword:"type",dataPath:dataPath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data0.condition !== undefined){let data21 = data0.condition;if(!(data21 && typeof data21 == "object" && !Array.isArray(data21))){const err32 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}const _errs52 = errors;let valid15 = false;let passing1 = null;const _errs53 = errors;const _errs56 = errors;let valid17 = false;let passing2 = null;const _errs57 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.equals === undefined){const err33 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data21.equals !== undefined){let data22 = data21.equals;if(((typeof data22 !== "string") && (!(typeof data22 == "number"))) && (typeof data22 !== "boolean")){const err34 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}var _valid3 = _errs57 === errors;if(_valid3){valid17 = true;passing2 = 0;}const _errs60 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.oneOf === undefined){const err35 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data21.oneOf !== undefined){let data23 = data21.oneOf;if(Array.isArray(data23)){const len2 = data23.length;for(let i2=0; i2<len2; i2++){let data24 = data23[i2];if((typeof data24 !== "string") && (!(typeof data24 == "number"))){const err36 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}var _valid3 = _errs60 === errors;if(_valid3 && valid17){valid17 = false;passing2 = [passing2, 1];}else {if(_valid3){valid17 = true;passing2 = 1;}const _errs65 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.isActive === undefined){const err38 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/required",params:{missingProperty: "isActive"},message:"should have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(data21.isActive !== undefined){if(typeof data21.isActive !== "boolean"){const err39 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/properties/isActive/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid3 = _errs65 === errors;if(_valid3 && valid17){valid17 = false;passing2 = [passing2, 2];}else {if(_valid3){valid17 = true;passing2 = 2;}}}if(!valid17){const err40 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}else {errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}}if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.property === undefined){const err41 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data21.type !== undefined){if(!func0(data21.type, "simple")){const err42 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data21.property !== undefined){if(typeof data21.property !== "string"){const err43 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}else {const err44 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err45 of vErrors){if((((((err45.keyword !== "errorMessage") && (!err45.emUsed)) && (err45.dataPath === dataPath+"/" + i0+"/condition")) && (err45.keyword in emErrors1)) && (err45.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err45.schemaPath.slice(81)))){emPropParams0 = obj0[err45.keyword];emParamsErrors0 = emErrors1[err45.keyword][err45.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err45);err45.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp0 in emErrors1[key1]){emParamsErrors0 = emErrors1[key1][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates1[key1] && templates1[key1][keyProp0];const err46 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key1][keyProp0]};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}const emErrs3 = [];for(const err47 of vErrors){if(!err47.emUsed){emErrs3.push(err47);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid2 = _errs53 === errors;if(_valid2){valid15 = true;passing1 = 0;}const _errs71 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.allMatch === undefined){const err48 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/required",params:{missingProperty: "allMatch"},message:"should have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if(data21.allMatch !== undefined){let data28 = data21.allMatch;if(Array.isArray(data28)){if(data28.length < 1){const err49 = {keyword:"minItems",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/minItems",params:{limit: 1},message:"should NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}const len3 = data28.length;for(let i3=0; i3<len3; i3++){let data29 = data28[i3];const _errs77 = errors;let valid28 = false;let passing3 = null;const _errs78 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.equals === undefined){const err50 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(data29.equals !== undefined){let data30 = data29.equals;if(((typeof data30 !== "string") && (!(typeof data30 == "number"))) && (typeof data30 !== "boolean")){const err51 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}var _valid4 = _errs78 === errors;if(_valid4){valid28 = true;passing3 = 0;}const _errs81 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.oneOf === undefined){const err52 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(data29.oneOf !== undefined){let data31 = data29.oneOf;if(Array.isArray(data31)){const len4 = data31.length;for(let i4=0; i4<len4; i4++){let data32 = data31[i4];if((typeof data32 !== "string") && (!(typeof data32 == "number"))){const err53 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf/" + i4,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}else {const err54 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}var _valid4 = _errs81 === errors;if(_valid4 && valid28){valid28 = false;passing3 = [passing3, 1];}else {if(_valid4){valid28 = true;passing3 = 1;}const _errs86 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.isActive === undefined){const err55 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/required",params:{missingProperty: "isActive"},message:"should have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data29.isActive !== undefined){if(typeof data29.isActive !== "boolean"){const err56 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/properties/isActive/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}var _valid4 = _errs86 === errors;if(_valid4 && valid28){valid28 = false;passing3 = [passing3, 2];}else {if(_valid4){valid28 = true;passing3 = 2;}}}if(!valid28){const err57 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing3},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {errors = _errs77;if(vErrors !== null){if(_errs77){vErrors.length = _errs77;}else {vErrors = null;}}}if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.property === undefined){const err58 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(data29.type !== undefined){if(!func0(data29.type, "simple")){const err59 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}if(data29.property !== undefined){if(typeof data29.property !== "string"){const err60 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}}else {const err61 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(errors > 0){const emErrors2 = {"required":{"property":[]}};const templates2 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err62 of vErrors){if((((((err62.keyword !== "errorMessage") && (!err62.emUsed)) && (err62.dataPath === dataPath+"/" + i0+"/condition/allMatch/" + i3)) && (err62.keyword in emErrors2)) && (err62.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err62.schemaPath.slice(81)))){emPropParams1 = obj0[err62.keyword];emParamsErrors1 = emErrors2[err62.keyword][err62.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err62);err62.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp1 in emErrors2[key2]){emParamsErrors1 = emErrors2[key2][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates2[key2] && templates2[key2][keyProp1];const err63 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key2][keyProp1]};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}const emErrs4 = [];for(const err64 of vErrors){if(!err64.emUsed){emErrs4.push(err64);}}vErrors = emErrs4;errors = emErrs4.length;}}}else {const err65 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}var _valid2 = _errs71 === errors;if(_valid2 && valid15){valid15 = false;passing1 = [passing1, 1];}else {if(_valid2){valid15 = true;passing1 = 1;}}if(!valid15){const err66 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}}}}else {const err67 = {keyword:"type",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}else {const err68 = {keyword:"type",dataPath,schemaPath:"#/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(Array.isArray(data)){const len5 = data.length;for(let i5=0; i5<len5; i5++){let data36 = data[i5];const _errs97 = errors;let valid39 = true;const _errs98 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err69 = {};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}else {if(data36.binding !== undefined){let data37 = data36.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {if(data37.type !== undefined){if(!func0(data37.type, "property")){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}}}}}var _valid5 = _errs98 === errors;errors = _errs97;if(vErrors !== null){if(_errs97){vErrors.length = _errs97;}else {vErrors = null;}}if(_valid5){const _errs101 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data39 = data36.type;if(!(((((data39 === "String") || (data39 === "Text")) || (data39 === "Hidden")) || (data39 === "Dropdown")) || (data39 === "Boolean"))){const err72 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(errors > 0){const emErrs5 = [];for(const err73 of vErrors){if(((((err73.keyword !== "errorMessage") && (!err73.emUsed)) && ((err73.dataPath === dataPath+"/" + i5+"/type") || ((err73.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err73.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err73.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err73.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs5.push(err73);err73.emUsed = true;}}if(emErrs5.length){const err74 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs5},message:"invalid property type " + JSON.stringify(data39) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}const emErrs6 = [];for(const err75 of vErrors){if(!err75.emUsed){emErrs6.push(err75);}}vErrors = emErrs6;errors = emErrs6.length;}}}var _valid5 = _errs101 === errors;valid39 = _valid5;}if(!valid39){const err76 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}const _errs104 = errors;let valid43 = true;const _errs105 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}else {if(data36.binding !== undefined){let data40 = data36.binding;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.type === undefined) && ("type")){const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {if(data40.type !== undefined){let data41 = data40.type;if(!((((((((data41 === "zeebe:input") || (data41 === "zeebe:output")) || (data41 === "zeebe:property")) || (data41 === "zeebe:taskHeader")) || (data41 === "zeebe:taskDefinition:type")) || (data41 === "bpmn:Message#property")) || (data41 === "bpmn:Message#zeebe:subscription#property")) || (data41 === "zeebe:taskDefinition"))){const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}}}}}var _valid6 = _errs105 === errors;errors = _errs104;if(vErrors !== null){if(_errs104){vErrors.length = _errs104;}else {vErrors = null;}}if(_valid6){const _errs108 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data42 = data36.type;if(!((((data42 === "String") || (data42 === "Text")) || (data42 === "Hidden")) || (data42 === "Dropdown"))){const err80 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(errors > 0){const emErrs7 = [];for(const err81 of vErrors){if(((((err81.keyword !== "errorMessage") && (!err81.emUsed)) && ((err81.dataPath === dataPath+"/" + i5+"/type") || ((err81.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err81.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err81.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err81.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs7.push(err81);err81.emUsed = true;}}if(emErrs7.length){const err82 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data42) + " for binding type " + JSON.stringify(data36 && data36.binding && data36.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}const emErrs8 = [];for(const err83 of vErrors){if(!err83.emUsed){emErrs8.push(err83);}}vErrors = emErrs8;errors = emErrs8.length;}}}var _valid6 = _errs108 === errors;valid43 = _valid6;}if(!valid43){const err84 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}const _errs111 = errors;let valid47 = true;const _errs112 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.optional === undefined) && ("optional")){const err85 = {};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}else {if(data36.optional !== undefined){if(!func0(data36.optional, true)){const err86 = {};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}}}var _valid7 = _errs112 === errors;errors = _errs111;if(vErrors !== null){if(_errs111){vErrors.length = _errs111;}else {vErrors = null;}}if(_valid7){const _errs114 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding !== undefined){let data44 = data36.binding;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.type === undefined){const err87 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if(data44.type !== undefined){let data45 = data44.type;if(!((((data45 === "zeebe:input") || (data45 === "zeebe:output")) || (data45 === "zeebe:property")) || (data45 === "zeebe:taskHeader"))){const err88 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(errors > 0){const emErrs9 = [];for(const err89 of vErrors){if(((((err89.keyword !== "errorMessage") && (!err89.emUsed)) && ((err89.dataPath === dataPath+"/" + i5+"/binding/type") || ((err89.dataPath.indexOf(dataPath+"/" + i5+"/binding/type") === 0) && (err89.dataPath[dataPath+"/" + i5+"/binding/type".length] === "/")))) && (err89.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err89.schemaPath["#/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs9.push(err89);err89.emUsed = true;}}if(emErrs9.length){const err90 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",params:{errors: emErrs9},message:"optional is not supported for binding type " + JSON.stringify(data45) + "; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}const emErrs10 = [];for(const err91 of vErrors){if(!err91.emUsed){emErrs10.push(err91);}}vErrors = emErrs10;errors = emErrs10.length;}}}}}var _valid7 = _errs114 === errors;valid47 = _valid7;}if(!valid47){const err92 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}const _errs118 = errors;let valid51 = true;const _errs119 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.optional === undefined) && ("optional")){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {if(data36.optional !== undefined){if(!func0(data36.optional, true)){const err94 = {};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}}var _valid8 = _errs119 === errors;errors = _errs118;if(vErrors !== null){if(_errs118){vErrors.length = _errs118;}else {vErrors = null;}}if(_valid8){const _errs121 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.constraints !== undefined){let data47 = data36.constraints;if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.notEmpty === undefined){const err95 = {keyword:"required",dataPath:dataPath+"/" + i5+"/constraints",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/required",params:{missingProperty: "notEmpty"},message:"should have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(data47.notEmpty !== undefined){if(!func0(data47.notEmpty, false)){const err96 = {keyword:"const",dataPath:dataPath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",params:{allowedValue: false},message:"should be equal to constant"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(errors > 0){const emErrs11 = [];for(const err97 of vErrors){if(((((err97.keyword !== "errorMessage") && (!err97.emUsed)) && ((err97.dataPath === dataPath+"/" + i5+"/constraints/notEmpty") || ((err97.dataPath.indexOf(dataPath+"/" + i5+"/constraints/notEmpty") === 0) && (err97.dataPath[dataPath+"/" + i5+"/constraints/notEmpty".length] === "/")))) && (err97.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err97.schemaPath["#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs11.push(err97);err97.emUsed = true;}}if(emErrs11.length){const err98 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",params:{errors: emErrs11},message:"optional is not allowed for truthy \"notEmpty\" constraint"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}const emErrs12 = [];for(const err99 of vErrors){if(!err99.emUsed){emErrs12.push(err99);}}vErrors = emErrs12;errors = emErrs12.length;}}}}}var _valid8 = _errs121 === errors;valid51 = _valid8;}if(!valid51){const err100 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}const _errs125 = errors;let valid55 = true;const _errs126 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.feel === undefined) && ("feel")){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {if(data36.feel !== undefined){const _errs128 = errors;const _errs129 = errors;if(!func0(data36.feel, schema18.allOf[1].items.allOf[4].if.properties.feel.not.const)){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}var valid57 = _errs129 === errors;if(!valid57){errors = _errs128;if(vErrors !== null){if(_errs128){vErrors.length = _errs128;}else {vErrors = null;}}}else {const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}}var _valid9 = _errs126 === errors;errors = _errs125;if(vErrors !== null){if(_errs125){vErrors.length = _errs125;}else {vErrors = null;}}if(_valid9){const _errs130 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type === undefined){const err104 = {keyword:"required",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/then/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if(data36.type !== undefined){let data50 = data36.type;if(!((data50 === "String") || (data50 === "Text"))){const err105 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[4].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(errors > 0){const emErrs13 = [];for(const err106 of vErrors){if(((((err106.keyword !== "errorMessage") && (!err106.emUsed)) && ((err106.dataPath === dataPath+"/" + i5+"/type") || ((err106.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err106.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err106.schemaPath.indexOf("#/allOf/1/items/allOf/4/then/properties/type") === 0)) && (err106.schemaPath["#/allOf/1/items/allOf/4/then/properties/type".length] === "/")){emErrs13.push(err106);err106.emUsed = true;}}if(emErrs13.length){const err107 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/errorMessage",params:{errors: emErrs13},message:"feel is only supported for \"String\" and \"Text\" type"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}const emErrs14 = [];for(const err108 of vErrors){if(!err108.emUsed){emErrs14.push(err108);}}vErrors = emErrs14;errors = emErrs14.length;}}}var _valid9 = _errs130 === errors;valid55 = _valid9;}if(!valid55){const err109 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}const _errs133 = errors;let valid59 = true;const _errs134 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.language === undefined) && ("language")){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}else {if(data36.language !== undefined){const _errs136 = errors;const _errs137 = errors;if(!func0(data36.language, schema18.allOf[1].items.allOf[5].if.properties.language.not.const)){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}var valid61 = _errs137 === errors;if(!valid61){errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}}else {const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}}var _valid10 = _errs134 === errors;errors = _errs133;if(vErrors !== null){if(_errs133){vErrors.length = _errs133;}else {vErrors = null;}}if(_valid10){const _errs138 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){if(!(data36.type === "Text")){const err113 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[5].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}if(errors > 0){const emErrs15 = [];for(const err114 of vErrors){if(((((err114.keyword !== "errorMessage") && (!err114.emUsed)) && ((err114.dataPath === dataPath+"/" + i5+"/type") || ((err114.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err114.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err114.schemaPath.indexOf("#/allOf/1/items/allOf/5/then/properties/type") === 0)) && (err114.schemaPath["#/allOf/1/items/allOf/5/then/properties/type".length] === "/")){emErrs15.push(err114);err114.emUsed = true;}}if(emErrs15.length){const err115 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/errorMessage",params:{errors: emErrs15},message:"language is only supported for \"Text\" type"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const emErrs16 = [];for(const err116 of vErrors){if(!err116.emUsed){emErrs16.push(err116);}}vErrors = emErrs16;errors = emErrs16.length;}}}var _valid10 = _errs138 === errors;valid59 = _valid10;}if(!valid59){const err117 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/5/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}const _errs141 = errors;let valid63 = true;const _errs142 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.value === undefined) && ("value")){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}var _valid11 = _errs142 === errors;errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}if(_valid11){const _errs143 = errors;const _errs144 = errors;const _errs145 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.generatedValue === undefined) && ("generatedValue")){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}var valid64 = _errs145 === errors;if(!valid64){errors = _errs144;if(vErrors !== null){if(_errs144){vErrors.length = _errs144;}else {vErrors = null;}}}else {const err120 = {keyword:"not",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/then/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}var _valid11 = _errs143 === errors;valid63 = _valid11;}if(!valid63){const err121 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}const _errs147 = errors;let valid65 = true;const _errs148 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.type === undefined) && ("type")){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {if(data36.type !== undefined){let data53 = data36.type;if(!((data53 === "Boolean") || (data53 === "Dropdown"))){const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}}}var _valid12 = _errs148 === errors;errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}if(_valid12){const _errs150 = errors;const _errs151 = errors;const _errs152 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.generatedValue === undefined) && ("generatedValue")){const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}var valid67 = _errs152 === errors;if(!valid67){errors = _errs151;if(vErrors !== null){if(_errs151){vErrors.length = _errs151;}else {vErrors = null;}}}else {const err125 = {keyword:"not",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/then/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}var _valid12 = _errs150 === errors;valid65 = _valid12;}if(!valid65){const err126 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding === undefined){const err127 = {keyword:"required",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if(data36.binding !== undefined){let data54 = data36.binding;const _errs156 = errors;let valid70 = true;const _errs157 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if((data54.type === undefined) && ("type")){const err128 = {};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}else {if(data54.type !== undefined){let data55 = data54.type;if(!(((((data55 === "property") || (data55 === "zeebe:property")) || (data55 === "zeebe:input")) || (data55 === "bpmn:Message#property")) || (data55 === "bpmn:Message#zeebe:subscription#property"))){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}}}var _valid13 = _errs157 === errors;errors = _errs156;if(vErrors !== null){if(_errs156){vErrors.length = _errs156;}else {vErrors = null;}}if(_valid13){const _errs159 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.name === undefined){const err130 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}if(errors > 0){const emErrs17 = [];for(const err131 of vErrors){if(((((err131.keyword !== "errorMessage") && (!err131.emUsed)) && ((err131.dataPath === dataPath+"/" + i5+"/binding") || ((err131.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err131.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err131.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err131.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs17.push(err131);err131.emUsed = true;}}if(emErrs17.length){const err132 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs17},message:"property.binding " + JSON.stringify(data54 && data54.type) + " requires name"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}const emErrs18 = [];for(const err133 of vErrors){if(!err133.emUsed){emErrs18.push(err133);}}vErrors = emErrs18;errors = emErrs18.length;}var _valid13 = _errs159 === errors;valid70 = _valid13;}if(!valid70){const err134 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}const _errs161 = errors;let valid72 = true;const _errs162 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if((data54.type === undefined) && ("type")){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}else {if(data54.type !== undefined){if(!func0(data54.type, "zeebe:output")){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}}}var _valid14 = _errs162 === errors;errors = _errs161;if(vErrors !== null){if(_errs161){vErrors.length = _errs161;}else {vErrors = null;}}if(_valid14){const _errs164 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.source === undefined){const err137 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}if(errors > 0){const emErrs19 = [];for(const err138 of vErrors){if(((((err138.keyword !== "errorMessage") && (!err138.emUsed)) && ((err138.dataPath === dataPath+"/" + i5+"/binding") || ((err138.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err138.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err138.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err138.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs19.push(err138);err138.emUsed = true;}}if(emErrs19.length){const err139 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data54 && data54.type) + " requires source"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}const emErrs20 = [];for(const err140 of vErrors){if(!err140.emUsed){emErrs20.push(err140);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid14 = _errs164 === errors;valid72 = _valid14;}if(!valid72){const err141 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}const _errs166 = errors;let valid74 = true;const _errs167 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if((data54.type === undefined) && ("type")){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}else {if(data54.type !== undefined){if(!func0(data54.type, "zeebe:taskHeader")){const err143 = {};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}}}var _valid15 = _errs167 === errors;errors = _errs166;if(vErrors !== null){if(_errs166){vErrors.length = _errs166;}else {vErrors = null;}}if(_valid15){const _errs169 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.key === undefined){const err144 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/required",params:{missingProperty: "key"},message:"should have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}if(errors > 0){const emErrs21 = [];for(const err145 of vErrors){if(((((err145.keyword !== "errorMessage") && (!err145.emUsed)) && ((err145.dataPath === dataPath+"/" + i5+"/binding") || ((err145.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err145.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err145.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err145.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs21.push(err145);err145.emUsed = true;}}if(emErrs21.length){const err146 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data54 && data54.type) + " requires key"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}const emErrs22 = [];for(const err147 of vErrors){if(!err147.emUsed){emErrs22.push(err147);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid15 = _errs169 === errors;valid74 = _valid15;}if(!valid74){const err148 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}const _errs171 = errors;let valid76 = true;const _errs172 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if((data54.type === undefined) && ("type")){const err149 = {};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}else {if(data54.type !== undefined){if(!func0(data54.type, "zeebe:taskDefinition")){const err150 = {};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}}}var _valid16 = _errs172 === errors;errors = _errs171;if(vErrors !== null){if(_errs171){vErrors.length = _errs171;}else {vErrors = null;}}if(_valid16){const _errs174 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.property === undefined){const err151 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if(data54.property !== undefined){let data59 = data54.property;if(!((data59 === "type") || (data59 === "retries"))){const err152 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/properties/property/enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.allOf[3].then.properties.property.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}}var _valid16 = _errs174 === errors;valid76 = _valid16;}if(!valid76){const err153 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.type === undefined){const err154 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}if(data54.type !== undefined){let data60 = data54.type;if(typeof data60 !== "string"){const err155 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if(!(((((((((data60 === "property") || (data60 === "zeebe:taskDefinition:type")) || (data60 === "zeebe:input")) || (data60 === "zeebe:output")) || (data60 === "zeebe:property")) || (data60 === "zeebe:taskHeader")) || (data60 === "bpmn:Message#property")) || (data60 === "bpmn:Message#zeebe:subscription#property")) || (data60 === "zeebe:taskDefinition"))){const err156 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(errors > 0){const emErrs23 = [];for(const err157 of vErrors){if(((((err157.keyword !== "errorMessage") && (!err157.emUsed)) && ((err157.dataPath === dataPath+"/" + i5+"/binding/type") || ((err157.dataPath.indexOf(dataPath+"/" + i5+"/binding/type") === 0) && (err157.dataPath[dataPath+"/" + i5+"/binding/type".length] === "/")))) && (err157.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err157.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs23.push(err157);err157.emUsed = true;}}if(emErrs23.length){const err158 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs23},message:"invalid property.binding type " + JSON.stringify(data60) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property }"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}const emErrs24 = [];for(const err159 of vErrors){if(!err159.emUsed){emErrs24.push(err159);}}vErrors = emErrs24;errors = emErrs24.length;}}if(data54.name !== undefined){if(typeof data54.name !== "string"){const err160 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}if(data54.source !== undefined){if(typeof data54.source !== "string"){const err161 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}if(data54.key !== undefined){if(typeof data54.key !== "string"){const err162 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/key",schemaPath:"#/allOf/1/items/properties/binding/properties/key/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}if(data54.property !== undefined){if(typeof data54.property !== "string"){const err163 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}}else {const err164 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data36.optional !== undefined){if(typeof data36.optional !== "boolean"){const err165 = {keyword:"type",dataPath:dataPath+"/" + i5+"/optional",schemaPath:"#/allOf/1/items/properties/optional/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}if(data36.feel !== undefined){let data66 = data36.feel;if(typeof data66 !== "string"){const err166 = {keyword:"type",dataPath:dataPath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(!(((data66 === null) || (data66 === "optional")) || (data66 === "required"))){const err167 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/enum",params:{allowedValues: schema18.allOf[1].items.properties.feel.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}if(data36.language !== undefined){if(typeof data36.language !== "string"){const err168 = {keyword:"type",dataPath:dataPath+"/" + i5+"/language",schemaPath:"#/allOf/1/items/properties/language/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(data36.generatedValue !== undefined){let data68 = data36.generatedValue;if(data68 && typeof data68 == "object" && !Array.isArray(data68)){if(data68.type === undefined){const err169 = {keyword:"required",dataPath:dataPath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if(data68.type !== undefined){if(!func0(data68.type, "uuid")){const err170 = {keyword:"const",dataPath:dataPath+"/" + i5+"/generatedValue/type",schemaPath:"#/allOf/1/items/properties/generatedValue/properties/type/const",params:{allowedValue: "uuid"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}}else {const err171 = {keyword:"type",dataPath:dataPath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}if(data36.tooltip !== undefined){if(typeof data36.tooltip !== "string"){const err172 = {keyword:"type",dataPath:dataPath+"/" + i5+"/tooltip",schemaPath:"#/allOf/1/items/properties/tooltip/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}}else {const err173 = {keyword:"type",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}if(errors > 0){const emErrors3 = {"required":{"binding":[]}};const templates3 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i5) + "\""}}};let emPropParams2;let emParamsErrors2;for(const err174 of vErrors){if((((((err174.keyword !== "errorMessage") && (!err174.emUsed)) && (err174.dataPath === dataPath+"/" + i5)) && (err174.keyword in emErrors3)) && (err174.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err174.schemaPath.slice(15)))){emPropParams2 = obj0[err174.keyword];emParamsErrors2 = emErrors3[err174.keyword][err174.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err174);err174.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp2 in emErrors3[key3]){emParamsErrors2 = emErrors3[key3][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates3[key3] && templates3[key3][keyProp2];const err175 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18.allOf[1].items.errorMessage[key3][keyProp2]};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}}const emErrs25 = [];for(const err176 of vErrors){if(!err176.emUsed){emErrs25.push(err176);}}vErrors = emErrs25;errors = emErrs25.length;}}}else {const err177 = {keyword:"type",dataPath,schemaPath:"#/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}validate16.errors = vErrors;return errors === 0;}function validate15(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "appliesTo"},message:"should have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.name !== undefined){if(typeof data.name !== "string"){const err4 = {keyword:"type",dataPath:dataPath+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {keyword:"type",dataPath:dataPath+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {keyword:"type",dataPath:dataPath+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){let data3 = data.version;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "integer"},message:"should be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {keyword:"type",dataPath:dataPath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.deprecated !== undefined){let data5 = data.deprecated;if((typeof data5 !== "boolean") && (!(data5 && typeof data5 == "object" && !Array.isArray(data5)))){const err9 = {keyword:"type",dataPath:dataPath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",params:{type: schema17.allOf[0].properties.deprecated.type},message:"should be boolean,object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.message !== undefined){if(typeof data5.message !== "string"){const err10 = {keyword:"type",dataPath:dataPath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data5.documentationRef !== undefined){let data7 = data5.documentationRef;if(typeof data7 === "string"){if(!pattern0.test(data7)){const err11 = {keyword:"pattern",dataPath:dataPath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {keyword:"type",dataPath:dataPath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}}if(data.appliesTo !== undefined){let data8 = data.appliesTo;if(Array.isArray(data8)){const len0 = data8.length;for(let i0=0; i0<len0; i0++){let data9 = data8[i0];if(typeof data9 === "string"){if(!pattern1.test(data9)){const err13 = {keyword:"pattern",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err15 of vErrors){if((((((err15.keyword !== "errorMessage") && (!err15.emUsed)) && (err15.dataPath === dataPath+"/appliesTo/" + i0)) && (err15.keyword in emErrors0)) && (err15.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err15.schemaPath.slice(36)))){emErrors0[err15.keyword].push(err15);err15.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err16 = {keyword:"errorMessage",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}const emErrs0 = [];for(const err17 of vErrors){if(!err17.emUsed){emErrs0.push(err17);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err18 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.elementType !== undefined){let data10 = data.elementType;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.value === undefined){const err19 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data10.value !== undefined){let data11 = data10.value;if(typeof data11 === "string"){if(!pattern1.test(data11)){const err20 = {keyword:"pattern",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {keyword:"type",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.dataPath === dataPath+"/elementType/value")) && (err22.keyword in emErrors1)) && (err22.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(49)))){emErrors1[err22.keyword].push(err22);err22.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err23 = {keyword:"errorMessage",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}const emErrs1 = [];for(const err24 of vErrors){if(!err24.emUsed){emErrs1.push(err24);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err25 = {keyword:"type",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.dataPath === dataPath+"/elementType")) && (err26.keyword in emErrors2)) && (err26.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(32)))){emPropParams0 = obj0[err26.keyword];emParamsErrors0 = emErrors2[err26.keyword][err26.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err26);err26.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err27 = {keyword:"errorMessage",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.elementType.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}const emErrs2 = [];for(const err28 of vErrors){if(!err28.emUsed){emErrs2.push(err28);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data12 = data.metadata;if(!(data12 && typeof data12 == "object" && !Array.isArray(data12))){const err29 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err30 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.groups !== undefined){let data14 = data.groups;if(Array.isArray(data14)){const len1 = data14.length;for(let i1=0; i1<len1; i1++){let data15 = data14[i1];if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.id === undefined){const err31 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data15.label === undefined){const err32 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "label"},message:"should have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(data15.id !== undefined){if(typeof data15.id !== "string"){const err33 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data15.label !== undefined){if(typeof data15.label !== "string"){const err34 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(errors > 0){const emErrors3 = {"required":{"id":[],"label":[]}};const templates3 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams1;let emParamsErrors1;for(const err36 of vErrors){if((((((err36.keyword !== "errorMessage") && (!err36.emUsed)) && (err36.dataPath === dataPath+"/groups/" + i1)) && (err36.keyword in emErrors3)) && (err36.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err36.schemaPath.slice(33)))){emPropParams1 = obj0[err36.keyword];emParamsErrors1 = emErrors3[err36.keyword][err36.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err36);err36.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp1 in emErrors3[key3]){emParamsErrors1 = emErrors3[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates3[key3] && templates3[key3][keyProp1];const err37 = {keyword:"errorMessage",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].properties.groups.items.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}const emErrs3 = [];for(const err38 of vErrors){if(!err38.emUsed){emErrs3.push(err38);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err39 = {keyword:"type",dataPath:dataPath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data.documentationRef !== undefined){let data18 = data.documentationRef;if(typeof data18 === "string"){if(!pattern0.test(data18)){const err40 = {keyword:"pattern",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {keyword:"type",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err42 of vErrors){if((((((err42.keyword !== "errorMessage") && (!err42.emUsed)) && (err42.dataPath === dataPath+"/documentationRef")) && (err42.keyword in emErrors4)) && (err42.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err42.schemaPath.slice(37)))){emErrors4[err42.keyword].push(err42);err42.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err43 = {keyword:"errorMessage",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",params:{errors: emErrors4[key4]},message:key4 in templates4 ? templates4[key4]() : schema17.allOf[0].properties.documentationRef.errorMessage[key4]};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}const emErrs4 = [];for(const err44 of vErrors){if(!err44.emUsed){emErrs4.push(err44);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err45 of vErrors){if((((((err45.keyword !== "errorMessage") && (!err45.emUsed)) && (err45.dataPath === dataPath)) && (err45.keyword in emErrors5)) && (err45.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err45.schemaPath.slice(9)))){emPropParams2 = obj0[err45.keyword];emParamsErrors2 = emErrors5[err45.keyword][err45.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err45);err45.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err46 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}const emErrs5 = [];for(const err47 of vErrors){if(!err47.emUsed){emErrs5.push(err47);}}vErrors = emErrs5;errors = emErrs5.length;}const _errs42 = errors;let valid13 = true;const _errs43 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {if(data.properties !== undefined){let data19 = data.properties;if(Array.isArray(data19)){const _errs45 = errors;const len2 = data19.length;for(let i2=0; i2<len2; i2++){let data20 = data19[i2];const _errs46 = errors;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if((data20.binding === undefined) && ("binding")){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}else {if(data20.binding !== undefined){let data21 = data20.binding;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if((data21.type === undefined) && ("type")){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}else {if(data21.type !== undefined){if(!func0(data21.type, "bpmn:Message#property")){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}}}}}var valid15 = _errs46 === errors;if(valid15){break;}}if(!valid15){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {errors = _errs45;if(vErrors !== null){if(_errs45){vErrors.length = _errs45;}else {vErrors = null;}}}}}}}var _valid0 = _errs43 === errors;errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}if(_valid0){const _errs49 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err53 = {keyword:"required",dataPath,schemaPath:"#/allOf/1/allOf/0/then/required",params:{missingProperty: "elementType"},message:"should have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(data.elementType !== undefined){let data23 = data.elementType;const _errs52 = errors;let valid20 = true;const _errs53 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.value !== undefined){let data24 = data23.value;if(!(((((data24 === "bpmn:StartEvent") || (data24 === "bpmn:IntermediateCatchEvent")) || (data24 === "bpmn:IntermediateThrowEvent")) || (data24 === "bpmn:BoundaryEvent")) || (data24 === "bpmn:EndEvent"))){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}var _valid1 = _errs53 === errors;errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}if(_valid1){const _errs55 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.eventDefinition === undefined){const err55 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/then/required",params:{missingProperty: "eventDefinition"},message:"should have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}var _valid1 = _errs55 === errors;valid20 = _valid1;}if(!valid20){const err56 = {keyword:"if",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.value === undefined){const err57 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(data23.value !== undefined){let data25 = data23.value;if(!(((((((data25 === "bpmn:ReceiveTask") || (data25 === "bpmn:SendTask")) || (data25 === "bpmn:StartEvent")) || (data25 === "bpmn:IntermediateCatchEvent")) || (data25 === "bpmn:IntermediateThrowEvent")) || (data25 === "bpmn:BoundaryEvent")) || (data25 === "bpmn:EndEvent"))){const err58 = {keyword:"enum",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/properties/value/enum",params:{allowedValues: schema17.allOf[1].allOf[0].then.properties.elementType.properties.value.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}}}var _valid0 = _errs49 === errors;valid13 = _valid0;}if(!valid13){const err59 = {keyword:"if",dataPath,schemaPath:"#/allOf/1/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}const _errs58 = errors;let valid23 = true;const _errs59 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(data.properties !== undefined){let data26 = data.properties;if(Array.isArray(data26)){const _errs61 = errors;const len3 = data26.length;for(let i3=0; i3<len3; i3++){let data27 = data26[i3];const _errs62 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if((data27.binding === undefined) && ("binding")){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {if(data27.binding !== undefined){let data28 = data27.binding;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if((data28.type === undefined) && ("type")){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {if(data28.type !== undefined){if(!func0(data28.type, "bpmn:Message#zeebe:subscription#property")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}}}}}var valid25 = _errs62 === errors;if(valid25){break;}}if(!valid25){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {errors = _errs61;if(vErrors !== null){if(_errs61){vErrors.length = _errs61;}else {vErrors = null;}}}}}}}var _valid2 = _errs59 === errors;errors = _errs58;if(vErrors !== null){if(_errs58){vErrors.length = _errs58;}else {vErrors = null;}}if(_valid2){const _errs65 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err65 = {keyword:"required",dataPath,schemaPath:"#/allOf/1/allOf/1/then/required",params:{missingProperty: "elementType"},message:"should have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(data.elementType !== undefined){let data30 = data.elementType;const _errs68 = errors;let valid30 = true;const _errs69 = errors;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value !== undefined){let data31 = data30.value;if(!(((((data31 === "bpmn:StartEvent") || (data31 === "bpmn:IntermediateCatchEvent")) || (data31 === "bpmn:IntermediateThrowEvent")) || (data31 === "bpmn:BoundaryEvent")) || (data31 === "bpmn:EndEvent"))){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}var _valid3 = _errs69 === errors;errors = _errs68;if(vErrors !== null){if(_errs68){vErrors.length = _errs68;}else {vErrors = null;}}if(_valid3){const _errs71 = errors;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.eventDefinition === undefined){const err67 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/then/required",params:{missingProperty: "eventDefinition"},message:"should have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}var _valid3 = _errs71 === errors;valid30 = _valid3;}if(!valid30){const err68 = {keyword:"if",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value === undefined){const err69 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(data30.value !== undefined){let data32 = data30.value;if(!((((((data32 === "bpmn:ReceiveTask") || (data32 === "bpmn:StartEvent")) || (data32 === "bpmn:IntermediateCatchEvent")) || (data32 === "bpmn:IntermediateThrowEvent")) || (data32 === "bpmn:BoundaryEvent")) || (data32 === "bpmn:EndEvent"))){const err70 = {keyword:"enum",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/properties/value/enum",params:{allowedValues: schema17.allOf[1].allOf[1].then.properties.elementType.properties.value.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}}}var _valid2 = _errs65 === errors;valid23 = _valid2;}if(!valid23){const err71 = {keyword:"if",dataPath,schemaPath:"#/allOf/1/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){if(!(validate16(data.properties, {dataPath:dataPath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);errors = vErrors.length;}}if(data.icon !== undefined){let data34 = data.icon;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.contents === undefined){const err72 = {keyword:"required",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/required",params:{missingProperty: "contents"},message:"should have required property '"+"contents"+"'"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(data34.contents !== undefined){let data35 = data34.contents;if(typeof data35 === "string"){if(!pattern4.test(data35)){const err73 = {keyword:"pattern",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/pattern",params:{pattern: "^(https?|data):.*"},message:"should match pattern \""+"^(https?|data):.*"+"\""};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}else {const err74 = {keyword:"type",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if(errors > 0){const emErrors6 = {"pattern":[]};const templates6 = {};for(const err75 of vErrors){if((((((err75.keyword !== "errorMessage") && (!err75.emUsed)) && (err75.dataPath === dataPath+"/icon/contents")) && (err75.keyword in emErrors6)) && (err75.schemaPath.indexOf("#/properties/icon/properties/contents") === 0)) && (/^\/[^\/]*$/.test(err75.schemaPath.slice(37)))){emErrors6[err75.keyword].push(err75);err75.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err76 = {keyword:"errorMessage",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema17.properties.icon.properties.contents.errorMessage[key6]};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}const emErrs6 = [];for(const err77 of vErrors){if(!err77.emUsed){emErrs6.push(err77);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err78 = {keyword:"type",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if(errors > 0){const emErrors7 = {"required":{"contents":[]}};const templates7 = {required:{}};let emPropParams3;let emParamsErrors3;for(const err79 of vErrors){if((((((err79.keyword !== "errorMessage") && (!err79.emUsed)) && (err79.dataPath === dataPath+"/icon")) && (err79.keyword in emErrors7)) && (err79.schemaPath.indexOf("#/properties/icon") === 0)) && (/^\/[^\/]*$/.test(err79.schemaPath.slice(17)))){emPropParams3 = obj0[err79.keyword];emParamsErrors3 = emErrors7[err79.keyword][err79.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err79);err79.emUsed = true;}}}for(const key7 in emErrors7){for(const keyProp3 in emErrors7[key7]){emParamsErrors3 = emErrors7[key7][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates7[key7] && templates7[key7][keyProp3];const err80 = {keyword:"errorMessage",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.properties.icon.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}}const emErrs7 = [];for(const err81 of vErrors){if(!err81.emUsed){emErrs7.push(err81);}}vErrors = emErrs7;errors = emErrs7.length;}}if(data.elementType !== undefined){let data36 = data.elementType;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.eventDefinition !== undefined){if(!(data36.eventDefinition === "bpmn:MessageEventDefinition")){const err82 = {keyword:"enum",dataPath:dataPath+"/elementType/eventDefinition",schemaPath:"#/properties/elementType/allOf/0/allOf/0/properties/eventDefinition/enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[0].properties.eventDefinition.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}}const _errs83 = errors;let valid38 = true;const _errs84 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.eventDefinition === undefined) && ("eventDefinition")){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}var _valid4 = _errs84 === errors;errors = _errs83;if(vErrors !== null){if(_errs83){vErrors.length = _errs83;}else {vErrors = null;}}if(_valid4){const _errs85 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.value === undefined){const err84 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if(data36.value !== undefined){let data38 = data36.value;if(!(((((data38 === "bpmn:StartEvent") || (data38 === "bpmn:IntermediateCatchEvent")) || (data38 === "bpmn:IntermediateThrowEvent")) || (data38 === "bpmn:BoundaryEvent")) || (data38 === "bpmn:EndEvent"))){const err85 = {keyword:"enum",dataPath:dataPath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/properties/value/enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[1].then.properties.value.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}var _valid4 = _errs85 === errors;valid38 = _valid4;}if(!valid38){const err86 = {keyword:"if",dataPath:dataPath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}if(data.groups !== undefined){let data39 = data.groups;if(Array.isArray(data39)){const len4 = data39.length;for(let i4=0; i4<len4; i4++){let data40 = data39[i4];if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.tooltip !== undefined){if(typeof data40.tooltip !== "string"){const err87 = {keyword:"type",dataPath:dataPath+"/groups/" + i4+"/tooltip",schemaPath:"#/properties/groups/items/properties/tooltip/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}if(data40.openByDefault !== undefined){if(typeof data40.openByDefault !== "boolean"){const err88 = {keyword:"type",dataPath:dataPath+"/groups/" + i4+"/openByDefault",schemaPath:"#/properties/groups/items/properties/openByDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}}}}}}else {const err89 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15(data, {dataPath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs2 = errors;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate15(data[i0], {dataPath:dataPath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {keyword:"type",dataPath,schemaPath:"#/oneOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}
123332
123366
 
123333
123367
  function getZeebeSchemaPackage() {
123334
123368
  return name$1;
@@ -123417,7 +123451,7 @@
123417
123451
  * @return {String}
123418
123452
  */
123419
123453
  function getTemplateId$1(element) {
123420
- const businessObject = getBusinessObject$3(element);
123454
+ const businessObject = getBusinessObject$2(element);
123421
123455
  if (businessObject) {
123422
123456
  return businessObject.get(TEMPLATE_ID_ATTR$1);
123423
123457
  }
@@ -123431,7 +123465,7 @@
123431
123465
  * @return {String}
123432
123466
  */
123433
123467
  function getTemplateVersion$1(element) {
123434
- const businessObject = getBusinessObject$3(element);
123468
+ const businessObject = getBusinessObject$2(element);
123435
123469
  if (businessObject) {
123436
123470
  return businessObject.get(TEMPLATE_VERSION_ATTR$1);
123437
123471
  }
@@ -123447,7 +123481,7 @@
123447
123481
  * @return {ModdleElement} the extension
123448
123482
  */
123449
123483
  function findExtension$1(element, type) {
123450
- const businessObject = getBusinessObject$3(element);
123484
+ const businessObject = getBusinessObject$2(element);
123451
123485
  let extensionElements;
123452
123486
  if (is$6(businessObject, 'bpmn:ExtensionElements')) {
123453
123487
  extensionElements = businessObject;
@@ -123674,7 +123708,7 @@
123674
123708
  * @returns {ModdleElement}
123675
123709
  */
123676
123710
  function ensureExtension(element, type, bpmnFactory) {
123677
- const businessObject = getBusinessObject$3(element);
123711
+ const businessObject = getBusinessObject$2(element);
123678
123712
  let extensionElements = businessObject.get('extensionElements');
123679
123713
  if (!extensionElements) {
123680
123714
  extensionElements = createElement$1('bpmn:ExtensionElements', {}, businessObject, bpmnFactory);
@@ -123691,7 +123725,7 @@
123691
123725
 
123692
123726
  const PRIMITIVE_MODDLE_TYPES$1 = ['Boolean', 'Integer', 'String'];
123693
123727
  function getPropertyValue$1(element, property, scope) {
123694
- let businessObject = getBusinessObject$3(element);
123728
+ let businessObject = getBusinessObject$2(element);
123695
123729
  const defaultValue = '';
123696
123730
  const {
123697
123731
  binding
@@ -123801,7 +123835,7 @@
123801
123835
  }
123802
123836
  const NO_OP = null;
123803
123837
  function setPropertyValue(bpmnFactory, commandStack, element, property, value) {
123804
- let businessObject = getBusinessObject$3(element);
123838
+ let businessObject = getBusinessObject$2(element);
123805
123839
  const {
123806
123840
  binding
123807
123841
  } = property;
@@ -124119,7 +124153,7 @@
124119
124153
  throw unknownBindingError$1(element, property);
124120
124154
  }
124121
124155
  function unsetProperty(commandStack, element, property) {
124122
- let businessObject = getBusinessObject$3(element);
124156
+ let businessObject = getBusinessObject$2(element);
124123
124157
  const {
124124
124158
  binding
124125
124159
  } = property;
@@ -124138,6 +124172,23 @@
124138
124172
  return;
124139
124173
  }
124140
124174
  }
124175
+
124176
+ // property
124177
+ if (PROPERTY_BINDING_TYPES.includes(type)) {
124178
+ const {
124179
+ name
124180
+ } = binding;
124181
+ commands.push({
124182
+ cmd: 'element.updateModdleProperties',
124183
+ context: {
124184
+ ...context,
124185
+ moddleElement: businessObject,
124186
+ properties: {
124187
+ [name]: undefined
124188
+ }
124189
+ }
124190
+ });
124191
+ }
124141
124192
  if (EXTENSION_BINDING_TYPES$1.includes(type)) {
124142
124193
  extensionElements = businessObject.get('extensionElements');
124143
124194
  if (!extensionElements) return;
@@ -124382,7 +124433,7 @@
124382
124433
 
124383
124434
  // helpers
124384
124435
  function unknownBindingError$1(element, property) {
124385
- const businessObject = getBusinessObject$3(element);
124436
+ const businessObject = getBusinessObject$2(element);
124386
124437
  const id = businessObject.get('id');
124387
124438
  const {
124388
124439
  binding
@@ -124418,7 +124469,7 @@
124418
124469
  properties
124419
124470
  } = elementTemplate;
124420
124471
  const filteredProperties = properties.filter(property => {
124421
- return isConditionMet(element, properties, property);
124472
+ return isPropertyAllowed(element, property) && isConditionMet(element, properties, property);
124422
124473
  });
124423
124474
  return {
124424
124475
  ...elementTemplate,
@@ -124448,8 +124499,16 @@
124448
124499
  const {
124449
124500
  property,
124450
124501
  equals,
124451
- oneOf
124502
+ oneOf,
124503
+ isActive
124452
124504
  } = condition;
124505
+ if (typeof isActive !== 'undefined') {
124506
+ const relatedCondition = properties.find(p => p.id === property);
124507
+ if (!relatedCondition) {
124508
+ return !isActive;
124509
+ }
124510
+ return isActive ? isConditionMet(element, properties, relatedCondition) : !isConditionMet(element, properties, relatedCondition);
124511
+ }
124453
124512
  const propertyValue = getValue(element, properties, property);
124454
124513
  if (equals) {
124455
124514
  return propertyValue === equals;
@@ -124466,6 +124525,18 @@
124466
124525
  }
124467
124526
  return getPropertyValue$1(element, property);
124468
124527
  }
124528
+ function isPropertyAllowed(element, property) {
124529
+ const {
124530
+ binding
124531
+ } = property;
124532
+ const {
124533
+ type
124534
+ } = binding;
124535
+ if (type === 'bpmn:Message#zeebe:subscription#property' && binding.name === 'correlationKey' && is$6(element, 'bpmn:StartEvent') && !isEventSubProcess(element.parent)) {
124536
+ return false;
124537
+ }
124538
+ return true;
124539
+ }
124469
124540
 
124470
124541
  function removeRootElement(rootElement, injector) {
124471
124542
  const modeling = injector.get('modeling'),
@@ -124504,7 +124575,7 @@
124504
124575
  removeRootElement(message, injector);
124505
124576
  }
124506
124577
  function getReferringElement(element) {
124507
- const bo = getBusinessObject$3(element);
124578
+ const bo = getBusinessObject$2(element);
124508
124579
  if (is$6(bo, 'bpmn:Event')) {
124509
124580
  return bo.get('eventDefinitions')[0];
124510
124581
  }
@@ -124524,7 +124595,7 @@
124524
124595
  this._bpmnFactory = bpmnFactory;
124525
124596
  this._injector = injector;
124526
124597
  this.preExecute(['element.updateProperties', 'element.updateModdleProperties'], this._saveConditionalState, true, this);
124527
- this.postExecute(['element.updateProperties', 'element.updateModdleProperties', 'propertiesPanel.zeebe.changeTemplate'], this._applyConditions, true, this);
124598
+ this.postExecute(['element.updateProperties', 'element.updateModdleProperties', 'propertiesPanel.zeebe.changeTemplate', 'element.move'], this._applyConditions, true, this);
124528
124599
  }
124529
124600
  _saveConditionalState(context) {
124530
124601
  const {
@@ -124639,7 +124710,7 @@
124639
124710
  * @return {String}
124640
124711
  */
124641
124712
  function getTemplateId(element) {
124642
- const businessObject = getBusinessObject$3(element);
124713
+ const businessObject = getBusinessObject$2(element);
124643
124714
  if (businessObject) {
124644
124715
  return businessObject.get(TEMPLATE_ID_ATTR);
124645
124716
  }
@@ -124653,7 +124724,7 @@
124653
124724
  * @return {String}
124654
124725
  */
124655
124726
  function getTemplateVersion(element) {
124656
- const businessObject = getBusinessObject$3(element);
124727
+ const businessObject = getBusinessObject$2(element);
124657
124728
  if (businessObject) {
124658
124729
  return businessObject.get(TEMPLATE_VERSION_ATTR);
124659
124730
  }
@@ -125345,9 +125416,9 @@
125345
125416
  this.postExecuted('shape.replace', function (e) {
125346
125417
  var context = e.context,
125347
125418
  oldShape = context.oldShape,
125348
- oldBo = getBusinessObject$3(oldShape),
125419
+ oldBo = getBusinessObject$2(oldShape),
125349
125420
  newShape = context.newShape,
125350
- newBo = getBusinessObject$3(newShape);
125421
+ newBo = getBusinessObject$2(newShape);
125351
125422
  if (!oldBo.modelerTemplate) {
125352
125423
  return;
125353
125424
  }
@@ -125385,7 +125456,7 @@
125385
125456
  const {
125386
125457
  eventDefinition
125387
125458
  } = elementType,
125388
- bo = getBusinessObject$3(newShape),
125459
+ bo = getBusinessObject$2(newShape),
125389
125460
  eventDefinitions = bo.get('eventDefinitions');
125390
125461
  if (!eventDefinition) {
125391
125462
  return eventDefinitions.length !== 0;
@@ -125456,7 +125527,7 @@
125456
125527
  this._updateZeebeModelerTemplateOnReferencedElement(element, oldTemplate, newTemplate);
125457
125528
  }
125458
125529
  }
125459
- _getOrCreateExtensionElements(element, businessObject = getBusinessObject$3(element)) {
125530
+ _getOrCreateExtensionElements(element, businessObject = getBusinessObject$2(element)) {
125460
125531
  const bpmnFactory = this._bpmnFactory,
125461
125532
  modeling = this._modeling;
125462
125533
  let extensionElements = businessObject.get('extensionElements');
@@ -125495,7 +125566,7 @@
125495
125566
  if (!newProperties.length) {
125496
125567
  return;
125497
125568
  }
125498
- const businessObject = getBusinessObject$3(element);
125569
+ const businessObject = getBusinessObject$2(element);
125499
125570
  newProperties.forEach(newProperty => {
125500
125571
  const oldProperty = findOldProperty$1(oldTemplate, newProperty),
125501
125572
  newBinding = newProperty.binding,
@@ -125950,7 +126021,7 @@
125950
126021
  });
125951
126022
  }
125952
126023
  _updateZeebeModelerTemplateOnReferencedElement(element, oldTemplate, newTemplate) {
125953
- const businessObject = getBusinessObject$3(element);
126024
+ const businessObject = getBusinessObject$2(element);
125954
126025
  const message = findMessage(businessObject);
125955
126026
  if (!message) {
125956
126027
  return;
@@ -125975,7 +126046,7 @@
125975
126046
  return newExtension;
125976
126047
  }
125977
126048
  _getOrCreateMessage(element, template) {
125978
- let bo = getBusinessObject$3(element);
126049
+ let bo = getBusinessObject$2(element);
125979
126050
  if (is$6(bo, 'bpmn:Event')) {
125980
126051
  bo = bo.get('eventDefinitions')[0];
125981
126052
  }
@@ -126028,7 +126099,7 @@
126028
126099
  * @returns {ModdleElement}
126029
126100
  */
126030
126101
  function findBusinessObject(element, property) {
126031
- const businessObject = getBusinessObject$3(element);
126102
+ const businessObject = getBusinessObject$2(element);
126032
126103
  const binding = property.binding,
126033
126104
  bindingType = binding.type;
126034
126105
  if (TASK_DEFINITION_TYPES.includes(bindingType)) {
@@ -126213,7 +126284,7 @@
126213
126284
  return getPropertyValue(element, oldProperty) !== oldPropertyValue;
126214
126285
  }
126215
126286
  function getPropertyValue(element, property) {
126216
- const businessObject = getBusinessObject$3(element);
126287
+ const businessObject = getBusinessObject$2(element);
126217
126288
  const binding = property.binding,
126218
126289
  bindingName = binding.name,
126219
126290
  bindingType = binding.type;
@@ -126273,7 +126344,7 @@
126273
126344
  }
126274
126345
  _removeTemplate(element) {
126275
126346
  const replace = this._replace;
126276
- const businessObject = getBusinessObject$3(element);
126347
+ const businessObject = getBusinessObject$2(element);
126277
126348
  const type = businessObject.$type,
126278
126349
  eventDefinitionType = this._getEventDefinitionType(businessObject);
126279
126350
  const newBusinessObject = this._createBlankBusinessObject(element);
@@ -126308,7 +126379,7 @@
126308
126379
  return this._removeTemplate(shape);
126309
126380
  }
126310
126381
  }
126311
- const businessObject = getBusinessObject$3(element);
126382
+ const businessObject = getBusinessObject$2(element);
126312
126383
  const type = businessObject.$type;
126313
126384
  const newBusinessObject = this._createBlankBusinessObject(element);
126314
126385
  const newRoot = elementFactory.create('root', {
@@ -126337,7 +126408,7 @@
126337
126408
  }
126338
126409
  _createBlankBusinessObject(element) {
126339
126410
  const bpmnFactory = this._bpmnFactory;
126340
- const bo = getBusinessObject$3(element),
126411
+ const bo = getBusinessObject$2(element),
126341
126412
  newBo = bpmnFactory.create(bo.$type),
126342
126413
  label = getLabel(element);
126343
126414
  if (!label) {
@@ -126411,7 +126482,7 @@
126411
126482
  name
126412
126483
  } = binding;
126413
126484
  const value = getDefaultValue(property);
126414
- const businessObject = getBusinessObject$3(element);
126485
+ const businessObject = getBusinessObject$2(element);
126415
126486
  businessObject[name] = value;
126416
126487
  }
126417
126488
  }
@@ -126519,7 +126590,7 @@
126519
126590
  name
126520
126591
  } = binding;
126521
126592
  const value = getDefaultValue(property);
126522
- let businessObject = getBusinessObject$3(element);
126593
+ let businessObject = getBusinessObject$2(element);
126523
126594
  if (is$6(businessObject, 'bpmn:Event')) {
126524
126595
  businessObject = businessObject.get('eventDefinitions')[0];
126525
126596
  }
@@ -126547,7 +126618,7 @@
126547
126618
  name
126548
126619
  } = binding;
126549
126620
  const value = getDefaultValue(property);
126550
- let businessObject = getBusinessObject$3(element);
126621
+ let businessObject = getBusinessObject$2(element);
126551
126622
  if (is$6(businessObject, 'bpmn:Event')) {
126552
126623
  businessObject = businessObject.get('eventDefinitions')[0];
126553
126624
  }
@@ -126628,7 +126699,7 @@
126628
126699
  }
126629
126700
  _ensureExtensionElements(element) {
126630
126701
  const bpmnFactory = this._bpmnFactory;
126631
- const businessObject = getBusinessObject$3(element);
126702
+ const businessObject = getBusinessObject$2(element);
126632
126703
  let extensionElements = businessObject.get('extensionElements');
126633
126704
  if (!extensionElements) {
126634
126705
  extensionElements = bpmnFactory.create('bpmn:ExtensionElements', {
@@ -126644,7 +126715,7 @@
126644
126715
  id,
126645
126716
  version
126646
126717
  } = template;
126647
- const businessObject = getBusinessObject$3(element);
126718
+ const businessObject = getBusinessObject$2(element);
126648
126719
  businessObject.set('zeebe:modelerTemplate', id);
126649
126720
  businessObject.set('zeebe:modelerTemplateVersion', version);
126650
126721
  }
@@ -126655,7 +126726,7 @@
126655
126726
  const {
126656
126727
  contents
126657
126728
  } = icon;
126658
- const businessObject = getBusinessObject$3(element);
126729
+ const businessObject = getBusinessObject$2(element);
126659
126730
  businessObject.set('zeebe:modelerTemplateIcon', contents);
126660
126731
  }
126661
126732
 
@@ -127983,7 +128054,7 @@
127983
128054
  }
127984
128055
 
127985
128056
  function getEventDefinition(element, eventType) {
127986
- const businessObject = getBusinessObject$3(element);
128057
+ const businessObject = getBusinessObject$2(element);
127987
128058
  const eventDefinitions = businessObject.get('eventDefinitions') || [];
127988
128059
  return find$2(eventDefinitions, function (definition) {
127989
128060
  return is$6(definition, eventType);
@@ -127994,7 +128065,7 @@
127994
128065
  }
127995
128066
  function getMessageEventDefinition(element) {
127996
128067
  if (is$6(element, 'bpmn:ReceiveTask')) {
127997
- return getBusinessObject$3(element);
128068
+ return getBusinessObject$2(element);
127998
128069
  }
127999
128070
  return getEventDefinition(element, 'bpmn:MessageEventDefinition');
128000
128071
  }
@@ -128071,7 +128142,7 @@
128071
128142
  value: CREATE_NEW_OPTION,
128072
128143
  label: translate('Create new ...')
128073
128144
  }];
128074
- const messages = findRootElementsByType(getBusinessObject$3(element), 'bpmn:Message');
128145
+ const messages = findRootElementsByType(getBusinessObject$2(element), 'bpmn:Message');
128075
128146
  const filteredMessages = withoutTemplatedMessages(messages);
128076
128147
  sortByName(filteredMessages).forEach(message => {
128077
128148
  options.push({
@@ -128408,7 +128479,7 @@
128408
128479
  if (!(TEMPLATE_ID_ATTR$1 in properties) || isString$2(properties[TEMPLATE_ID_ATTR$1])) {
128409
128480
  return;
128410
128481
  }
128411
- const bo = getBusinessObject$3(element);
128482
+ const bo = getBusinessObject$2(element);
128412
128483
  const message = findMessage(bo);
128413
128484
  if (message && getTemplateId$1(message)) {
128414
128485
  this._modeling.updateModdleProperties(element, message, {
@@ -128431,7 +128502,7 @@
128431
128502
  if (!canHaveReferencedElement(oldShape) || !oldTemplate) {
128432
128503
  return;
128433
128504
  }
128434
- const bo = getBusinessObject$3(oldShape);
128505
+ const bo = getBusinessObject$2(oldShape);
128435
128506
  const message = findMessage(bo);
128436
128507
  if (!message || !getTemplateId$1(message)) {
128437
128508
  return;
@@ -128455,7 +128526,7 @@
128455
128526
  if (!getTemplateId$1(shape)) {
128456
128527
  return;
128457
128528
  }
128458
- const bo = getBusinessObject$3(shape);
128529
+ const bo = getBusinessObject$2(shape);
128459
128530
  const message = findMessage(bo);
128460
128531
  if (message && getTemplateId$1(message)) {
128461
128532
  removeRootElement(message, this._injector);
@@ -128528,9 +128599,9 @@
128528
128599
  this.postExecuted('shape.replace', function (e) {
128529
128600
  var context = e.context,
128530
128601
  oldShape = context.oldShape,
128531
- oldBo = getBusinessObject$3(oldShape),
128602
+ oldBo = getBusinessObject$2(oldShape),
128532
128603
  newShape = context.newShape,
128533
- newBo = getBusinessObject$3(newShape);
128604
+ newBo = getBusinessObject$2(newShape);
128534
128605
  if (!oldBo.modelerTemplate) {
128535
128606
  return;
128536
128607
  }
@@ -132238,7 +132309,7 @@
132238
132309
  * @returns {Array<ProcessVariable>} variables
132239
132310
  */
132240
132311
  async getProcessVariables(element) {
132241
- const bo = getBusinessObject$3(element);
132312
+ const bo = getBusinessObject$2(element);
132242
132313
 
132243
132314
  const allVariables = await this.getVariables();
132244
132315
  return allVariables[bo.id] || [];
@@ -132252,7 +132323,7 @@
132252
132323
  * @returns {Array<ProcessVariable>} variables
132253
132324
  */
132254
132325
  async getVariablesForElement(element) {
132255
- const bo = getBusinessObject$3(element);
132326
+ const bo = getBusinessObject$2(element);
132256
132327
 
132257
132328
  const root = getRootElement(bo);
132258
132329
  const allVariables = await this.getProcessVariables(root);
@@ -132281,7 +132352,7 @@
132281
132352
  // helpers //////////////////////
132282
132353
 
132283
132354
  function getRootElement(element) {
132284
- const businessObject = getBusinessObject$3(element);
132355
+ const businessObject = getBusinessObject$2(element);
132285
132356
 
132286
132357
  if (is$6(businessObject, 'bpmn:Participant')) {
132287
132358
  return businessObject.processRef;
@@ -132807,7 +132878,7 @@
132807
132878
  async getVariablesForElement(element, moddleElement) {
132808
132879
  const variables = await super.getVariablesForElement(element);
132809
132880
 
132810
- const bo = getBusinessObject$3(element);
132881
+ const bo = getBusinessObject$2(element);
132811
132882
 
132812
132883
  if (!moddleElement) {
132813
132884
  return variables;
@@ -133041,7 +133112,7 @@
133041
133112
  }
133042
133113
 
133043
133114
  function getExtensionElements$1(element, type) {
133044
- const bo = getBusinessObject$3(element);
133115
+ const bo = getBusinessObject$2(element);
133045
133116
 
133046
133117
  let elements = [];
133047
133118
  const extensionElements = bo.get('extensionElements');
@@ -133276,7 +133347,7 @@
133276
133347
  const ensureZeebeProperties = (element, injector) => {
133277
133348
  const commands = [];
133278
133349
 
133279
- const bo = getBusinessObject$3(element);
133350
+ const bo = getBusinessObject$2(element);
133280
133351
 
133281
133352
  const bpmnFactory = injector.get('bpmnFactory');
133282
133353
 
@@ -143533,36 +143604,6 @@
143533
143604
 
143534
143605
  new Ids([32, 36, 1]);
143535
143606
 
143536
- /**
143537
- * @typedef { import('../model/Types').Element } Element
143538
- * @typedef { import('../model/Types').ModdleElement } ModdleElement
143539
- */
143540
-
143541
- /**
143542
- * Is an element of the given BPMN type?
143543
- *
143544
- * @param {Element|ModdleElement} element
143545
- * @param {string} type
143546
- *
143547
- * @return {boolean}
143548
- */
143549
- function is$1(element, type) {
143550
- var bo = getBusinessObject$1(element);
143551
-
143552
- return bo && (typeof bo.$instanceOf === 'function') && bo.$instanceOf(type);
143553
- }
143554
-
143555
- /**
143556
- * Return the business object for a given element.
143557
- *
143558
- * @param {Element|ModdleElement} element
143559
- *
143560
- * @return {ModdleElement}
143561
- */
143562
- function getBusinessObject$1(element) {
143563
- return (element && element.businessObject) || element;
143564
- }
143565
-
143566
143607
  /**
143567
143608
  * Variable Provider that parses example JSON from a specific Zeebe property
143568
143609
  */
@@ -143573,13 +143614,13 @@
143573
143614
  this._eventBus = eventBus;
143574
143615
  }
143575
143616
 
143576
- getVariables(element) {
143617
+ async getVariables(element) {
143577
143618
 
143578
143619
  /**
143579
143620
  * Use the eventBus to collect form schemas. We currently only support locally defined forms,
143580
143621
  * but plan to have linked forms on a project level soon.
143581
143622
  */
143582
- const formSchema = this._eventBus.fire('formVariableProvider.getFormSchema', { element });
143623
+ const formSchema = await this._eventBus.fire('formVariableProvider.getFormSchema', { element });
143583
143624
 
143584
143625
  if (!formSchema) {
143585
143626
  return;
@@ -143610,7 +143651,7 @@
143610
143651
  }
143611
143652
 
143612
143653
  function getExtensionElements(element, type) {
143613
- const bo = getBusinessObject$1(element);
143654
+ const bo = getBusinessObject$2(element);
143614
143655
 
143615
143656
  let elements = [];
143616
143657
  const extensionElements = bo.get('extensionElements');
@@ -143619,7 +143660,7 @@
143619
143660
  const extensionValues = extensionElements.get('values');
143620
143661
 
143621
143662
  if (typeof extensionValues !== 'undefined') {
143622
- elements = extensionValues.filter(e => is$1(e, type));
143663
+ elements = extensionValues.filter(e => is$6(e, type));
143623
143664
  }
143624
143665
  }
143625
143666
 
@@ -143668,7 +143709,7 @@
143668
143709
  function getProcess(element) {
143669
143710
  let parent = element.$parent;
143670
143711
 
143671
- while (parent && !is$1(parent, 'bpmn:Process')) {
143712
+ while (parent && !is$6(parent, 'bpmn:Process')) {
143672
143713
  parent = parent.$parent;
143673
143714
  }
143674
143715
 
@@ -144037,7 +144078,7 @@
144037
144078
  // helpers ////////////
144038
144079
 
144039
144080
  function isTemplateApplied$1(element, template) {
144040
- const businessObject = getBusinessObject$3(element);
144081
+ const businessObject = getBusinessObject$2(element);
144041
144082
 
144042
144083
  if (businessObject) {
144043
144084
  return businessObject.get('modelerTemplate') === template.id;
@@ -144066,7 +144107,7 @@
144066
144107
  function getModelerTemplateIcon(element, iconProperty) {
144067
144108
  iconProperty = iconProperty || 'zeebe:modelerTemplateIcon';
144068
144109
 
144069
- return getBusinessObject$3(element).get(iconProperty);
144110
+ return getBusinessObject$2(element).get(iconProperty);
144070
144111
  }
144071
144112
 
144072
144113
  var HIGH_PRIORITY = 1250;