camunda-bpmn-js 0.13.0-alpha.5 → 0.13.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -2
- package/dist/assets/element-templates.css +4 -0
- package/dist/assets/properties-panel.css +5 -0
- package/dist/base-modeler.development.js +819 -178
- package/dist/base-modeler.production.min.js +4 -4
- package/dist/camunda-cloud-modeler.development.js +2759 -1505
- package/dist/camunda-cloud-modeler.production.min.js +4 -4
- package/dist/camunda-platform-modeler.development.js +1289 -539
- package/dist/camunda-platform-modeler.production.min.js +4 -4
- package/lib/camunda-cloud/Modeler.js +4 -1
- package/lib/camunda-cloud/features/modeling/behavior/CreateZeebeCallActivityBehavior.js +17 -5
- package/package.json +13 -10
|
@@ -61543,31 +61543,130 @@
|
|
|
61543
61543
|
}());
|
|
61544
61544
|
});
|
|
61545
61545
|
|
|
61546
|
+
function C$1(n,t){for(var e in t)n[e]=t[e];return n}function S$1(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function E(n){this.props=n;}function g$2(n,t){function e(n){var e=this.props.ref,r=e==n.ref;return !r&&e&&(e.call?e(null):e.current=null),t?!t(this.props,n)||!r:S$1(this.props,n)}function r(t){return this.shouldComponentUpdate=e,a(n,t)}return r.displayName="Memo("+(n.displayName||n.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(E.prototype=new p).isPureReactComponent=!0,E.prototype.shouldComponentUpdate=function(n,t){return S$1(this.props,n)||S$1(this.state,t)};var w$2=n.__b;n.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),w$2&&w$2(n);};var R="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function x$2(n){function t(t,e){var r=C$1({},t);return delete r.ref,n(r,(e=t.ref||e)&&("object"!=typeof e||"current"in e)?e:null)}return t.$$typeof=R,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var N$1=function(n,t){return null==n?null:w(w(n).map(t))},k$2={map:N$1,forEach:N$1,count:function(n){return n?w(n).length:0},only:function(n){var t=w(n);if(1!==t.length)throw "Children.only";return t[0]},toArray:w},A$2=n.__e;n.__e=function(n,t,e){if(n.then)for(var r,u=t;u=u.__;)if((r=u.__c)&&r.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),r.__c(n,t);A$2(n,t,e);};var O$1=n.unmount;function L$1(){this.__u=0,this.t=null,this.__b=null;}function U(n){var t=n.__.__c;return t&&t.__e&&t.__e(n)}function D(n){var t,e,r;function u(u){if(t||(t=n()).then(function(n){e=n.default||n;},function(n){r=n;}),r)throw r;if(!e)throw t;return a(e,u)}return u.displayName="Lazy",u.__f=!0,u}function F$1(){this.u=null,this.o=null;}n.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),O$1&&O$1(n);},(L$1.prototype=new p).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=U(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l());};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__e){var n=r.state.__e;r.__v.__k[0]=function n(t,e,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return n(t,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate();}},f=!0===t.__h;r.__u++||f||r.setState({__e:r.__b=r.__v.__k[0]}),n.then(i,i);},L$1.prototype.componentWillUnmount=function(){this.t=[];},L$1.prototype.render=function(n,t){if(this.__b){if(this.__v.__k){var e=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function n(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),t.__c.__H=null),null!=(t=C$1({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return n(t,e,r)})),t}(this.__b,e,r.__O=r.__P);}this.__b=null;}var u=t.__e&&a(y,null,n.fallback);return u&&(u.__h=null),[a(y,null,t.__e?null:n.children),u]};var M$1=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2];}};function T$2(n){return this.getChildContext=function(){return n.context},n.children}function j$2(n){var t=this,e=n.i;t.componentWillUnmount=function(){N(null,t.l),t.l=null,t.i=null;},t.i&&t.i!==e&&t.componentWillUnmount(),n.__v?(t.l||(t.i=e,t.l={nodeType:1,parentNode:e,childNodes:[],appendChild:function(n){this.childNodes.push(n),t.i.appendChild(n);},insertBefore:function(n,e){this.childNodes.push(n),t.i.appendChild(n);},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n);}}),N(a(T$2,{context:t.context},n.__v),t.l)):t.l&&t.componentWillUnmount();}function I$1(n,t){return a(j$2,{__v:n,i:t})}(F$1.prototype=new p).__e=function(n){var t=this,e=U(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),M$1(t,n,r)):u();};e?e(o):o();}},F$1.prototype.render=function(n){this.u=null,this.o=new Map;var t=w(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},F$1.prototype.componentDidUpdate=F$1.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){M$1(n,e,t);});};var W="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,P$1=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,V=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};function z$1(n,t,e){return null==t.__k&&(t.textContent=""),N(n,t),"function"==typeof e&&e(),n?n.__c:null}function B(n,t,e){return O(n,t),"function"==typeof e&&e(),n?n.__c:null}p.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(p.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(t){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:t});}});});var H$1=n.event;function Z(){}function Y(){return this.cancelBubble}function $$1(){return this.defaultPrevented}n.event=function(n){return H$1&&(n=H$1(n)),n.persist=Z,n.isPropagationStopped=Y,n.isDefaultPrevented=$$1,n.nativeEvent=n};var q$1,G={configurable:!0,get:function(){return this.class}},J=n.vnode;n.vnode=function(n){var t=n.type,e=n.props,r=e;if("string"==typeof t){for(var u in r={},e){var o=e[u];"value"===u&&"defaultValue"in e&&null==o||("defaultValue"===u&&"value"in e&&null==e.value?u="value":"download"===u&&!0===o?o="":/ondoubleclick/i.test(u)?u="ondblclick":/^onchange(textarea|input)/i.test(u+t)&&!V(e.type)?u="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(u)?u=u.toLowerCase():P$1.test(u)?u=u.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),r[u]=o);}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=w(e.children).forEach(function(n){n.props.selected=-1!=r.value.indexOf(n.props.value);})),"select"==t&&null!=r.defaultValue&&(r.value=w(e.children).forEach(function(n){n.props.selected=r.multiple?-1!=r.defaultValue.indexOf(n.props.value):r.defaultValue==n.props.value;})),n.props=r;}t&&e.class!=e.className&&(G.enumerable="className"in e,null!=e.className&&(r.class=e.className),Object.defineProperty(r,"className",G)),n.$$typeof=W,J&&J(n);};var K=n.__r;n.__r=function(n){K&&K(n),q$1=n.__c;};var Q={ReactCurrentDispatcher:{current:{readContext:function(n){return q$1.__n[n.__c].props.value}}}};"object"==typeof performance&&"function"==typeof performance.now?performance.now.bind(performance):function(){return Date.now()};function fn(n){return a.bind(null,n)}function cn(n){return !!n&&n.$$typeof===W}function an(n){return cn(n)?S.apply(null,arguments):n}function sn(n){return !!n.__k&&(N(null,n),!0)}function hn(n){return n&&(n.base||1===n.nodeType&&n)||null}var pn=function(n,t){return n(t)};var React = {useState:l,useReducer:p$1,useEffect:y$1,useLayoutEffect:h$1,useRef:s$1,useImperativeHandle:_$1,useMemo:d$1,useCallback:A$1,useContext:F,useDebugValue:T$1,version:"16.8.0",Children:k$2,render:z$1,hydrate:B,unmountComponentAtNode:sn,createPortal:I$1,createElement:a,createContext:q,createFactory:fn,cloneElement:an,createRef:h,Fragment:y,isValidElement:cn,findDOMNode:hn,Component:p,PureComponent:E,memo:g$2,forwardRef:x$2,unstable_batchedUpdates:pn,StrictMode:y,Suspense:L$1,SuspenseList:F$1,lazy:D,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Q};
|
|
61547
|
+
|
|
61546
61548
|
function o$2(_,o,e,n$1,t){var f={};for(var l in o)"ref"!=l&&(f[l]=o[l]);var s,u,a={type:_,props:f,key:e,ref:o&&o.ref,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:++n.__v,__source:n$1,__self:t};if("function"==typeof _&&(s=_.defaultProps))for(u in s)void 0===f[u]&&(f[u]=s[u]);return n.vnode&&n.vnode(a),a}
|
|
61547
61549
|
|
|
61548
|
-
|
|
61550
|
+
var ArrowIcon = function ArrowIcon(props) {
|
|
61551
|
+
return o$2("svg", { ...props,
|
|
61552
|
+
children: o$2("path", {
|
|
61553
|
+
fillRule: "evenodd",
|
|
61554
|
+
d: "m11.657 8-4.95 4.95a1 1 0 0 1-1.414-1.414L8.828 8 5.293 4.464A1 1 0 1 1 6.707 3.05L11.657 8z"
|
|
61555
|
+
})
|
|
61556
|
+
});
|
|
61557
|
+
};
|
|
61549
61558
|
|
|
61550
|
-
|
|
61551
|
-
|
|
61552
|
-
|
|
61559
|
+
ArrowIcon.defaultProps = {
|
|
61560
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
61561
|
+
width: "16",
|
|
61562
|
+
height: "16"
|
|
61563
|
+
};
|
|
61564
|
+
|
|
61565
|
+
var CreateIcon = function CreateIcon(props) {
|
|
61566
|
+
return o$2("svg", { ...props,
|
|
61567
|
+
children: o$2("path", {
|
|
61568
|
+
fillRule: "evenodd",
|
|
61569
|
+
d: "M9 13V9h4a1 1 0 0 0 0-2H9V3a1 1 0 1 0-2 0v4H3a1 1 0 1 0 0 2h4v4a1 1 0 0 0 2 0z"
|
|
61570
|
+
})
|
|
61571
|
+
});
|
|
61572
|
+
};
|
|
61573
|
+
|
|
61574
|
+
CreateIcon.defaultProps = {
|
|
61575
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
61576
|
+
width: "16",
|
|
61577
|
+
height: "16"
|
|
61578
|
+
};
|
|
61579
|
+
|
|
61580
|
+
var DeleteIcon = function DeleteIcon(props) {
|
|
61581
|
+
return o$2("svg", { ...props,
|
|
61582
|
+
children: o$2("path", {
|
|
61583
|
+
fillRule: "evenodd",
|
|
61584
|
+
d: "M12 6v7c0 1.1-.4 1.55-1.5 1.55h-5C4.4 14.55 4 14.1 4 13V6h8zm-1.5 1.5h-5v4.3c0 .66.5 1.2 1.111 1.2H9.39c.611 0 1.111-.54 1.111-1.2V7.5zM13 3h-2l-1-1H6L5 3H3v1.5h10V3z"
|
|
61585
|
+
})
|
|
61586
|
+
});
|
|
61587
|
+
};
|
|
61588
|
+
|
|
61589
|
+
DeleteIcon.defaultProps = {
|
|
61590
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
61591
|
+
width: "16",
|
|
61592
|
+
height: "16"
|
|
61593
|
+
};
|
|
61594
|
+
|
|
61595
|
+
var ExternalLinkIcon = function ExternalLinkIcon(props) {
|
|
61596
|
+
return o$2("svg", { ...props,
|
|
61597
|
+
children: o$2("path", {
|
|
61598
|
+
fillRule: "evenodd",
|
|
61599
|
+
clipRule: "evenodd",
|
|
61600
|
+
d: "M12.637 12.637v-4.72h1.362v4.721c0 .36-.137.676-.411.95-.275.275-.591.412-.95.412H3.362c-.38 0-.703-.132-.967-.396A1.315 1.315 0 0 1 2 12.638V3.362c0-.38.132-.703.396-.967S2.982 2 3.363 2h4.553v1.363H3.363v9.274h9.274zM14 2H9.28l-.001 1.362h2.408L5.065 9.984l.95.95 6.622-6.622v2.409H14V2z",
|
|
61601
|
+
fill: "#818798"
|
|
61602
|
+
})
|
|
61603
|
+
});
|
|
61604
|
+
};
|
|
61605
|
+
|
|
61606
|
+
ExternalLinkIcon.defaultProps = {
|
|
61607
|
+
width: "16",
|
|
61608
|
+
height: "16",
|
|
61609
|
+
fill: "none",
|
|
61610
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
61611
|
+
};
|
|
61612
|
+
|
|
61613
|
+
var FeelRequiredIcon = function FeelRequiredIcon(props) {
|
|
61614
|
+
return o$2("svg", { ...props,
|
|
61615
|
+
children: [o$2("path", {
|
|
61616
|
+
d: "M5.8 7.06V5.95h4.307v1.11H5.8zm0 3.071v-1.11h4.307v1.11H5.8z",
|
|
61617
|
+
fill: "#505562"
|
|
61618
|
+
}), o$2("path", {
|
|
61619
|
+
fillRule: "evenodd",
|
|
61620
|
+
clipRule: "evenodd",
|
|
61621
|
+
d: "M8 3.268A4.732 4.732 0 1 0 12.732 8H14a6 6 0 1 1-6-6v1.268z",
|
|
61622
|
+
fill: "#505562"
|
|
61623
|
+
}), o$2("path", {
|
|
61624
|
+
d: "m11.28 6.072-.832-.56 1.016-1.224L10 3.848l.312-.912 1.392.584L11.632 2h1.032l-.072 1.52 1.392-.584.312.912-1.464.44 1.008 1.224-.832.552-.864-1.296-.864 1.304z",
|
|
61625
|
+
fill: "#505562"
|
|
61626
|
+
})]
|
|
61627
|
+
});
|
|
61628
|
+
};
|
|
61629
|
+
|
|
61630
|
+
FeelRequiredIcon.defaultProps = {
|
|
61631
|
+
viewBox: "0 0 16 16",
|
|
61632
|
+
fill: "none",
|
|
61633
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
61634
|
+
};
|
|
61635
|
+
|
|
61636
|
+
var FeelOptionalIcon = function FeelOptionalIcon(props) {
|
|
61637
|
+
return o$2("svg", { ...props,
|
|
61638
|
+
children: [o$2("path", {
|
|
61639
|
+
d: "M5.845 7.04V5.93h4.307v1.11H5.845zm0 3.07V9h4.307v1.11H5.845z",
|
|
61640
|
+
fill: "#505562"
|
|
61641
|
+
}), o$2("path", {
|
|
61642
|
+
fillRule: "evenodd",
|
|
61643
|
+
clipRule: "evenodd",
|
|
61644
|
+
d: "M3.286 8a4.714 4.714 0 1 0 9.428 0 4.714 4.714 0 0 0-9.428 0zM8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2z",
|
|
61645
|
+
fill: "#505562"
|
|
61646
|
+
})]
|
|
61647
|
+
});
|
|
61648
|
+
};
|
|
61649
|
+
|
|
61650
|
+
FeelOptionalIcon.defaultProps = {
|
|
61651
|
+
viewBox: "0 0 16 16",
|
|
61652
|
+
fill: "none",
|
|
61653
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
61654
|
+
};
|
|
61553
61655
|
|
|
61554
|
-
/**
|
|
61555
|
-
* @param {Object} props
|
|
61556
|
-
* @param {Object} props.element,
|
|
61557
|
-
* @param {HeaderProvider} props.headerProvider
|
|
61558
|
-
*/
|
|
61559
61656
|
function Header(props) {
|
|
61560
61657
|
const {
|
|
61561
61658
|
element,
|
|
61562
61659
|
headerProvider
|
|
61563
61660
|
} = props;
|
|
61564
61661
|
const {
|
|
61662
|
+
getElementIcon,
|
|
61663
|
+
getDocumentationRef,
|
|
61565
61664
|
getElementLabel,
|
|
61566
|
-
getTypeLabel
|
|
61567
|
-
getElementIcon
|
|
61665
|
+
getTypeLabel
|
|
61568
61666
|
} = headerProvider;
|
|
61569
61667
|
const label = getElementLabel(element);
|
|
61570
61668
|
const type = getTypeLabel(element);
|
|
61669
|
+
const documentationRef = getDocumentationRef && getDocumentationRef(element);
|
|
61571
61670
|
const ElementIcon = getElementIcon(element);
|
|
61572
61671
|
return o$2("div", {
|
|
61573
61672
|
class: "bio-properties-panel-header",
|
|
@@ -61584,28 +61683,154 @@
|
|
|
61584
61683
|
title: type,
|
|
61585
61684
|
class: "bio-properties-panel-header-type",
|
|
61586
61685
|
children: type
|
|
61587
|
-
}),
|
|
61686
|
+
}), label ? o$2("div", {
|
|
61588
61687
|
title: label,
|
|
61589
61688
|
class: "bio-properties-panel-header-label",
|
|
61590
61689
|
children: label
|
|
61591
61690
|
}) : null]
|
|
61691
|
+
}), o$2("div", {
|
|
61692
|
+
class: "bio-properties-panel-header-actions",
|
|
61693
|
+
children: documentationRef ? o$2("a", {
|
|
61694
|
+
rel: "noopener",
|
|
61695
|
+
class: "bio-properties-panel-header-link",
|
|
61696
|
+
href: documentationRef,
|
|
61697
|
+
title: "Open documentation",
|
|
61698
|
+
target: "_blank",
|
|
61699
|
+
children: o$2(ExternalLinkIcon, {})
|
|
61700
|
+
}) : null
|
|
61592
61701
|
})]
|
|
61593
61702
|
});
|
|
61594
61703
|
}
|
|
61595
61704
|
|
|
61705
|
+
const DescriptionContext = q({
|
|
61706
|
+
description: {},
|
|
61707
|
+
getDescriptionForId: () => {}
|
|
61708
|
+
});
|
|
61709
|
+
|
|
61596
61710
|
/**
|
|
61597
|
-
* @
|
|
61598
|
-
* state on updates.
|
|
61711
|
+
* @typedef {Function} <propertiesPanel.showEntry> callback
|
|
61599
61712
|
*
|
|
61600
|
-
*
|
|
61713
|
+
* @example
|
|
61714
|
+
*
|
|
61715
|
+
* useEvent('propertiesPanel.showEntry', ({ focus = false, ...rest }) => {
|
|
61716
|
+
* // ...
|
|
61717
|
+
* });
|
|
61718
|
+
*
|
|
61719
|
+
* @param {Object} context
|
|
61720
|
+
* @param {boolean} [context.focus]
|
|
61721
|
+
*
|
|
61722
|
+
* @returns void
|
|
61601
61723
|
*/
|
|
61724
|
+
const EventContext = q({
|
|
61725
|
+
eventBus: null
|
|
61726
|
+
});
|
|
61602
61727
|
|
|
61603
|
-
|
|
61604
|
-
|
|
61728
|
+
const LayoutContext = q({
|
|
61729
|
+
layout: {},
|
|
61730
|
+
setLayout: () => {},
|
|
61731
|
+
getLayoutForKey: () => {},
|
|
61732
|
+
setLayoutForKey: () => {}
|
|
61733
|
+
});
|
|
61734
|
+
|
|
61735
|
+
/**
|
|
61736
|
+
* Accesses the global DescriptionContext and returns a description for a given id and element.
|
|
61737
|
+
*
|
|
61738
|
+
* @example
|
|
61739
|
+
* ```jsx
|
|
61740
|
+
* function TextField(props) {
|
|
61741
|
+
* const description = useDescriptionContext('input1', element);
|
|
61742
|
+
* }
|
|
61743
|
+
* ```
|
|
61744
|
+
*
|
|
61745
|
+
* @param {string} id
|
|
61746
|
+
* @param {djs.model.Base} element
|
|
61747
|
+
*
|
|
61748
|
+
* @returns {string}
|
|
61749
|
+
*/
|
|
61750
|
+
|
|
61751
|
+
function useDescriptionContext(id, element) {
|
|
61752
|
+
const {
|
|
61753
|
+
getDescriptionForId
|
|
61754
|
+
} = F(DescriptionContext);
|
|
61755
|
+
return getDescriptionForId(id, element);
|
|
61756
|
+
}
|
|
61757
|
+
|
|
61758
|
+
const DEFAULT_PRIORITY$6 = 1000;
|
|
61759
|
+
/**
|
|
61760
|
+
* Subscribe to an event.
|
|
61761
|
+
*
|
|
61762
|
+
* @param {string} event
|
|
61763
|
+
* @param {Function} callback
|
|
61764
|
+
* @param {number} [priority]
|
|
61765
|
+
*
|
|
61766
|
+
* @returns {import('preact').Ref}
|
|
61767
|
+
*/
|
|
61768
|
+
|
|
61769
|
+
function useEvent(event, callback, priority = DEFAULT_PRIORITY$6) {
|
|
61770
|
+
const {
|
|
61771
|
+
eventBus
|
|
61772
|
+
} = F(EventContext);
|
|
61605
61773
|
y$1(() => {
|
|
61606
|
-
|
|
61774
|
+
if (!eventBus) {
|
|
61775
|
+
return;
|
|
61776
|
+
}
|
|
61777
|
+
|
|
61778
|
+
eventBus.on(event, priority, callback);
|
|
61779
|
+
return () => eventBus.off(event, callback);
|
|
61780
|
+
}, [callback, event, eventBus, priority]);
|
|
61781
|
+
}
|
|
61782
|
+
|
|
61783
|
+
const HIGH_PRIORITY$l = 10000;
|
|
61784
|
+
/**
|
|
61785
|
+
* Buffer events and re-fire during passive effect phase.
|
|
61786
|
+
*
|
|
61787
|
+
* @param {string[]} bufferedEvents
|
|
61788
|
+
* @param {Object} [eventBus]
|
|
61789
|
+
*/
|
|
61790
|
+
|
|
61791
|
+
function useEventBuffer(bufferedEvents, eventBus) {
|
|
61792
|
+
const buffer = s$1([]),
|
|
61793
|
+
buffering = s$1(true);
|
|
61794
|
+
|
|
61795
|
+
const createCallback = event => data => {
|
|
61796
|
+
if (buffering.current === true) {
|
|
61797
|
+
buffer.current.unshift([event, data]);
|
|
61798
|
+
}
|
|
61799
|
+
}; // (1) buffer events
|
|
61800
|
+
|
|
61801
|
+
|
|
61802
|
+
y$1(() => {
|
|
61803
|
+
if (!eventBus) {
|
|
61804
|
+
return;
|
|
61805
|
+
}
|
|
61806
|
+
|
|
61807
|
+
const listeners = bufferedEvents.map(event => {
|
|
61808
|
+
return [event, createCallback(event)];
|
|
61809
|
+
});
|
|
61810
|
+
listeners.forEach(([event, callback]) => {
|
|
61811
|
+
eventBus.on(event, HIGH_PRIORITY$l, callback);
|
|
61812
|
+
});
|
|
61813
|
+
return () => {
|
|
61814
|
+
listeners.forEach(([event, callback]) => {
|
|
61815
|
+
eventBus.off(event, callback);
|
|
61816
|
+
});
|
|
61817
|
+
};
|
|
61818
|
+
}, [bufferedEvents, eventBus]); // (2) re-fire events
|
|
61819
|
+
|
|
61820
|
+
y$1(() => {
|
|
61821
|
+
if (!eventBus) {
|
|
61822
|
+
return;
|
|
61823
|
+
}
|
|
61824
|
+
|
|
61825
|
+
buffering.current = false;
|
|
61826
|
+
|
|
61827
|
+
while (buffer.current.length) {
|
|
61828
|
+
const [event, data] = buffer.current.pop();
|
|
61829
|
+
eventBus.fire(event, data);
|
|
61830
|
+
}
|
|
61831
|
+
|
|
61832
|
+
buffering.current = true;
|
|
61607
61833
|
});
|
|
61608
|
-
return ref.current;
|
|
61609
61834
|
}
|
|
61610
61835
|
|
|
61611
61836
|
const KEY_LENGTH = 6;
|
|
@@ -61646,18 +61871,6 @@
|
|
|
61646
61871
|
return getKey;
|
|
61647
61872
|
}
|
|
61648
61873
|
|
|
61649
|
-
const DescriptionContext = q({
|
|
61650
|
-
description: {},
|
|
61651
|
-
getDescriptionForId: () => {}
|
|
61652
|
-
});
|
|
61653
|
-
|
|
61654
|
-
const LayoutContext = q({
|
|
61655
|
-
layout: {},
|
|
61656
|
-
setLayout: () => {},
|
|
61657
|
-
getLayoutForKey: () => {},
|
|
61658
|
-
setLayoutForKey: () => {}
|
|
61659
|
-
});
|
|
61660
|
-
|
|
61661
61874
|
/**
|
|
61662
61875
|
* Creates a state that persists in the global LayoutContext.
|
|
61663
61876
|
*
|
|
@@ -61693,124 +61906,104 @@
|
|
|
61693
61906
|
}
|
|
61694
61907
|
|
|
61695
61908
|
/**
|
|
61696
|
-
*
|
|
61697
|
-
*
|
|
61698
|
-
* @example
|
|
61699
|
-
* ```jsx
|
|
61700
|
-
* function TextField(props) {
|
|
61701
|
-
* const description = useDescriptionContext('input1', element);
|
|
61702
|
-
* }
|
|
61703
|
-
* ```
|
|
61704
|
-
*
|
|
61705
|
-
* @param {string} id
|
|
61706
|
-
* @param {djs.model.Base} element
|
|
61909
|
+
* @pinussilvestrus: we need to introduce our own hook to persist the previous
|
|
61910
|
+
* state on updates.
|
|
61707
61911
|
*
|
|
61708
|
-
*
|
|
61912
|
+
* cf. https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state
|
|
61709
61913
|
*/
|
|
61710
61914
|
|
|
61711
|
-
function
|
|
61712
|
-
const
|
|
61713
|
-
|
|
61714
|
-
|
|
61715
|
-
return getDescriptionForId(id, element);
|
|
61716
|
-
}
|
|
61717
|
-
|
|
61718
|
-
var ArrowIcon = function ArrowIcon(props) {
|
|
61719
|
-
return o$2("svg", { ...props,
|
|
61720
|
-
children: o$2("path", {
|
|
61721
|
-
fillRule: "evenodd",
|
|
61722
|
-
d: "m11.657 8-4.95 4.95a1 1 0 0 1-1.414-1.414L8.828 8 5.293 4.464A1 1 0 1 1 6.707 3.05L11.657 8z"
|
|
61723
|
-
})
|
|
61915
|
+
function usePrevious(value) {
|
|
61916
|
+
const ref = s$1();
|
|
61917
|
+
y$1(() => {
|
|
61918
|
+
ref.current = value;
|
|
61724
61919
|
});
|
|
61725
|
-
|
|
61920
|
+
return ref.current;
|
|
61921
|
+
}
|
|
61726
61922
|
|
|
61727
|
-
|
|
61728
|
-
|
|
61729
|
-
|
|
61730
|
-
|
|
61731
|
-
|
|
61923
|
+
/**
|
|
61924
|
+
* Subscribe to `propertiesPanel.showEntry`.
|
|
61925
|
+
*
|
|
61926
|
+
* @param {Function} show
|
|
61927
|
+
*
|
|
61928
|
+
* @returns {import('preact').Ref}
|
|
61929
|
+
*/
|
|
61732
61930
|
|
|
61733
|
-
|
|
61734
|
-
|
|
61735
|
-
|
|
61736
|
-
|
|
61737
|
-
|
|
61738
|
-
|
|
61739
|
-
|
|
61740
|
-
|
|
61931
|
+
function useShowEntryEvent(show) {
|
|
61932
|
+
const {
|
|
61933
|
+
onShow
|
|
61934
|
+
} = F(LayoutContext);
|
|
61935
|
+
const ref = s$1();
|
|
61936
|
+
const [focus, setFocus] = l(false);
|
|
61937
|
+
const onShowEntry = A$1(event => {
|
|
61938
|
+
if (show(event)) {
|
|
61939
|
+
if (isFunction(onShow)) {
|
|
61940
|
+
onShow();
|
|
61941
|
+
}
|
|
61741
61942
|
|
|
61742
|
-
|
|
61743
|
-
|
|
61744
|
-
|
|
61745
|
-
|
|
61746
|
-
|
|
61943
|
+
if (event.focus && !focus) {
|
|
61944
|
+
setFocus(true);
|
|
61945
|
+
}
|
|
61946
|
+
}
|
|
61947
|
+
}, [show]);
|
|
61948
|
+
y$1(() => {
|
|
61949
|
+
if (focus && ref.current) {
|
|
61950
|
+
if (isFunction(ref.current.focus)) {
|
|
61951
|
+
ref.current.focus();
|
|
61952
|
+
}
|
|
61747
61953
|
|
|
61748
|
-
|
|
61749
|
-
|
|
61750
|
-
|
|
61751
|
-
fillRule: "evenodd",
|
|
61752
|
-
d: "M12 6v7c0 1.1-.4 1.55-1.5 1.55h-5C4.4 14.55 4 14.1 4 13V6h8zm-1.5 1.5h-5v4.3c0 .66.5 1.2 1.111 1.2H9.39c.611 0 1.111-.54 1.111-1.2V7.5zM13 3h-2l-1-1H6L5 3H3v1.5h10V3z"
|
|
61753
|
-
})
|
|
61754
|
-
});
|
|
61755
|
-
};
|
|
61954
|
+
if (isFunction(ref.current.select)) {
|
|
61955
|
+
ref.current.select();
|
|
61956
|
+
}
|
|
61756
61957
|
|
|
61757
|
-
|
|
61758
|
-
|
|
61759
|
-
|
|
61760
|
-
|
|
61761
|
-
|
|
61958
|
+
setFocus(false);
|
|
61959
|
+
}
|
|
61960
|
+
}, [focus]);
|
|
61961
|
+
useEvent('propertiesPanel.showEntry', onShowEntry);
|
|
61962
|
+
return ref;
|
|
61963
|
+
}
|
|
61762
61964
|
|
|
61763
|
-
|
|
61764
|
-
|
|
61765
|
-
|
|
61766
|
-
|
|
61767
|
-
|
|
61768
|
-
|
|
61769
|
-
|
|
61770
|
-
|
|
61771
|
-
|
|
61772
|
-
fill: "#505562"
|
|
61773
|
-
}), o$2("path", {
|
|
61774
|
-
d: "m11.28 6.072-.832-.56 1.016-1.224L10 3.848l.312-.912 1.392.584L11.632 2h1.032l-.072 1.52 1.392-.584.312.912-1.464.44 1.008 1.224-.832.552-.864-1.296-.864 1.304z",
|
|
61775
|
-
fill: "#505562"
|
|
61776
|
-
})]
|
|
61777
|
-
});
|
|
61778
|
-
};
|
|
61965
|
+
/**
|
|
61966
|
+
* Subscribe to `propertiesPanel.showError`. On `propertiesPanel.showError` set
|
|
61967
|
+
* temporary error. Fire `propertiesPanel.showEntry` for temporary error to be
|
|
61968
|
+
* visible. Unset error on `propertiesPanel.updated`.
|
|
61969
|
+
*
|
|
61970
|
+
* @param {Function} show
|
|
61971
|
+
*
|
|
61972
|
+
* @returns {import('preact').Ref}
|
|
61973
|
+
*/
|
|
61779
61974
|
|
|
61780
|
-
|
|
61781
|
-
|
|
61782
|
-
|
|
61783
|
-
|
|
61784
|
-
|
|
61975
|
+
function useShowErrorEvent(show) {
|
|
61976
|
+
const {
|
|
61977
|
+
eventBus
|
|
61978
|
+
} = F(EventContext);
|
|
61979
|
+
const [temporaryError, setTemporaryError] = l(null);
|
|
61980
|
+
const onPropertiesPanelUpdated = A$1(() => setTemporaryError(null), []);
|
|
61981
|
+
useEvent('propertiesPanel.updated', onPropertiesPanelUpdated);
|
|
61982
|
+
const onShowError = A$1(event => {
|
|
61983
|
+
setTemporaryError(null);
|
|
61785
61984
|
|
|
61786
|
-
|
|
61787
|
-
|
|
61788
|
-
|
|
61789
|
-
|
|
61790
|
-
fill: "#505562"
|
|
61791
|
-
}), o$2("path", {
|
|
61792
|
-
fillRule: "evenodd",
|
|
61793
|
-
clipRule: "evenodd",
|
|
61794
|
-
d: "M3.286 8a4.714 4.714 0 1 0 9.428 0 4.714 4.714 0 0 0-9.428 0zM8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2z",
|
|
61795
|
-
fill: "#505562"
|
|
61796
|
-
})]
|
|
61797
|
-
});
|
|
61798
|
-
};
|
|
61985
|
+
if (show(event)) {
|
|
61986
|
+
if (eventBus) {
|
|
61987
|
+
eventBus.fire('propertiesPanel.showEntry', event);
|
|
61988
|
+
}
|
|
61799
61989
|
|
|
61800
|
-
|
|
61801
|
-
|
|
61802
|
-
|
|
61803
|
-
|
|
61804
|
-
|
|
61990
|
+
setTemporaryError(event.message);
|
|
61991
|
+
}
|
|
61992
|
+
}, [show]);
|
|
61993
|
+
useEvent('propertiesPanel.showError', onShowError);
|
|
61994
|
+
return temporaryError;
|
|
61995
|
+
}
|
|
61805
61996
|
|
|
61806
61997
|
function Group(props) {
|
|
61807
61998
|
const {
|
|
61808
61999
|
element,
|
|
61809
62000
|
entries = [],
|
|
61810
62001
|
id,
|
|
61811
|
-
label
|
|
62002
|
+
label,
|
|
62003
|
+
shouldOpen = false
|
|
61812
62004
|
} = props;
|
|
61813
|
-
const [open, setOpen] = useLayoutState(['groups', id, 'open'],
|
|
62005
|
+
const [open, setOpen] = useLayoutState(['groups', id, 'open'], shouldOpen);
|
|
62006
|
+
const onShow = A$1(() => setOpen(true), [setOpen]);
|
|
61814
62007
|
|
|
61815
62008
|
const toggleOpen = () => setOpen(!open);
|
|
61816
62009
|
|
|
@@ -61833,6 +62026,9 @@
|
|
|
61833
62026
|
});
|
|
61834
62027
|
setEdited(hasOneEditedEntry);
|
|
61835
62028
|
}, [entries]);
|
|
62029
|
+
const propertiesPanelContext = { ...F(LayoutContext),
|
|
62030
|
+
onShow
|
|
62031
|
+
};
|
|
61836
62032
|
return o$2("div", {
|
|
61837
62033
|
class: "bio-properties-panel-group",
|
|
61838
62034
|
"data-group-id": 'group-' + id,
|
|
@@ -61855,15 +62051,18 @@
|
|
|
61855
62051
|
})]
|
|
61856
62052
|
}), o$2("div", {
|
|
61857
62053
|
class: classnames('bio-properties-panel-group-entries', open ? 'open' : ''),
|
|
61858
|
-
children:
|
|
61859
|
-
|
|
61860
|
-
|
|
61861
|
-
|
|
61862
|
-
|
|
61863
|
-
|
|
61864
|
-
|
|
61865
|
-
|
|
61866
|
-
|
|
62054
|
+
children: o$2(LayoutContext.Provider, {
|
|
62055
|
+
value: propertiesPanelContext,
|
|
62056
|
+
children: entries.map(entry => {
|
|
62057
|
+
const {
|
|
62058
|
+
component: Component,
|
|
62059
|
+
id
|
|
62060
|
+
} = entry;
|
|
62061
|
+
return a(Component, { ...entry,
|
|
62062
|
+
element: element,
|
|
62063
|
+
key: id
|
|
62064
|
+
});
|
|
62065
|
+
})
|
|
61867
62066
|
})
|
|
61868
62067
|
})]
|
|
61869
62068
|
});
|
|
@@ -61880,6 +62079,7 @@
|
|
|
61880
62079
|
open: true
|
|
61881
62080
|
};
|
|
61882
62081
|
const DEFAULT_DESCRIPTION = {};
|
|
62082
|
+
const bufferedEvents = ['propertiesPanel.showEntry', 'propertiesPanel.showError'];
|
|
61883
62083
|
/**
|
|
61884
62084
|
* @typedef { {
|
|
61885
62085
|
* component: import('preact').Component,
|
|
@@ -61911,7 +62111,8 @@
|
|
|
61911
62111
|
* component?: import('preact').Component,
|
|
61912
62112
|
* entries: Array<EntryDefinition>,
|
|
61913
62113
|
* id: String,
|
|
61914
|
-
* label: String
|
|
62114
|
+
* label: String,
|
|
62115
|
+
* shouldOpen?: Boolean
|
|
61915
62116
|
* } } GroupDefinition
|
|
61916
62117
|
*
|
|
61917
62118
|
* @typedef { {
|
|
@@ -61938,6 +62139,7 @@
|
|
|
61938
62139
|
* @param {Function} [props.layoutChanged]
|
|
61939
62140
|
* @param {DescriptionConfig} [props.descriptionConfig]
|
|
61940
62141
|
* @param {Function} [props.descriptionLoaded]
|
|
62142
|
+
* @param {Object} [props.eventBus]
|
|
61941
62143
|
*/
|
|
61942
62144
|
|
|
61943
62145
|
function PropertiesPanel(props) {
|
|
@@ -61948,7 +62150,8 @@
|
|
|
61948
62150
|
layoutConfig = {},
|
|
61949
62151
|
layoutChanged,
|
|
61950
62152
|
descriptionConfig = {},
|
|
61951
|
-
descriptionLoaded
|
|
62153
|
+
descriptionLoaded,
|
|
62154
|
+
eventBus
|
|
61952
62155
|
} = props; // set-up layout context
|
|
61953
62156
|
|
|
61954
62157
|
const [layout, setLayout] = l(createLayout(layoutConfig));
|
|
@@ -61989,6 +62192,13 @@
|
|
|
61989
62192
|
description,
|
|
61990
62193
|
getDescriptionForId
|
|
61991
62194
|
};
|
|
62195
|
+
useEventBuffer(bufferedEvents, eventBus);
|
|
62196
|
+
const eventContext = {
|
|
62197
|
+
eventBus
|
|
62198
|
+
};
|
|
62199
|
+
const propertiesPanelContext = {
|
|
62200
|
+
element
|
|
62201
|
+
};
|
|
61992
62202
|
|
|
61993
62203
|
if (!element) {
|
|
61994
62204
|
return o$2("div", {
|
|
@@ -61997,28 +62207,34 @@
|
|
|
61997
62207
|
});
|
|
61998
62208
|
}
|
|
61999
62209
|
|
|
62000
|
-
return o$2(
|
|
62001
|
-
value:
|
|
62002
|
-
children: o$2(
|
|
62003
|
-
value:
|
|
62004
|
-
children: o$2(
|
|
62005
|
-
|
|
62006
|
-
children:
|
|
62007
|
-
|
|
62008
|
-
|
|
62009
|
-
|
|
62010
|
-
|
|
62011
|
-
|
|
62012
|
-
|
|
62013
|
-
|
|
62014
|
-
|
|
62015
|
-
|
|
62016
|
-
|
|
62017
|
-
|
|
62018
|
-
|
|
62019
|
-
|
|
62210
|
+
return o$2(LayoutContext.Provider, {
|
|
62211
|
+
value: propertiesPanelContext,
|
|
62212
|
+
children: o$2(DescriptionContext.Provider, {
|
|
62213
|
+
value: descriptionContext,
|
|
62214
|
+
children: o$2(LayoutContext.Provider, {
|
|
62215
|
+
value: layoutContext,
|
|
62216
|
+
children: o$2(EventContext.Provider, {
|
|
62217
|
+
value: eventContext,
|
|
62218
|
+
children: o$2("div", {
|
|
62219
|
+
class: classnames('bio-properties-panel', layout.open ? 'open' : ''),
|
|
62220
|
+
children: [o$2(Header, {
|
|
62221
|
+
element: element,
|
|
62222
|
+
headerProvider: headerProvider
|
|
62223
|
+
}), o$2("div", {
|
|
62224
|
+
class: "bio-properties-panel-scroll-container",
|
|
62225
|
+
children: groups.map(group => {
|
|
62226
|
+
const {
|
|
62227
|
+
component: Component = Group,
|
|
62228
|
+
id
|
|
62229
|
+
} = group;
|
|
62230
|
+
return a(Component, { ...group,
|
|
62231
|
+
key: id,
|
|
62232
|
+
element: element
|
|
62233
|
+
});
|
|
62234
|
+
})
|
|
62235
|
+
})]
|
|
62020
62236
|
})
|
|
62021
|
-
})
|
|
62237
|
+
})
|
|
62022
62238
|
})
|
|
62023
62239
|
})
|
|
62024
62240
|
});
|
|
@@ -62158,8 +62374,20 @@
|
|
|
62158
62374
|
} = props;
|
|
62159
62375
|
const [open, setOpen] = l(shouldOpen);
|
|
62160
62376
|
|
|
62161
|
-
const toggleOpen = () => setOpen(!open);
|
|
62377
|
+
const toggleOpen = () => setOpen(!open);
|
|
62162
62378
|
|
|
62379
|
+
const {
|
|
62380
|
+
onShow
|
|
62381
|
+
} = F(LayoutContext);
|
|
62382
|
+
const propertiesPanelContext = { ...F(LayoutContext),
|
|
62383
|
+
onShow: A$1(() => {
|
|
62384
|
+
setOpen(true);
|
|
62385
|
+
|
|
62386
|
+
if (isFunction(onShow)) {
|
|
62387
|
+
onShow();
|
|
62388
|
+
}
|
|
62389
|
+
}, [onShow, setOpen])
|
|
62390
|
+
}; // todo(pinussilvestrus): translate once we have a translate mechanism for the core
|
|
62163
62391
|
|
|
62164
62392
|
const placeholderLabel = '<empty>';
|
|
62165
62393
|
return o$2("div", {
|
|
@@ -62186,15 +62414,18 @@
|
|
|
62186
62414
|
}) : null]
|
|
62187
62415
|
}), o$2("div", {
|
|
62188
62416
|
class: classnames('bio-properties-panel-collapsible-entry-entries', open ? 'open' : ''),
|
|
62189
|
-
children:
|
|
62190
|
-
|
|
62191
|
-
|
|
62192
|
-
|
|
62193
|
-
|
|
62194
|
-
|
|
62195
|
-
|
|
62196
|
-
|
|
62197
|
-
|
|
62417
|
+
children: o$2(LayoutContext.Provider, {
|
|
62418
|
+
value: propertiesPanelContext,
|
|
62419
|
+
children: entries.map(entry => {
|
|
62420
|
+
const {
|
|
62421
|
+
component: Component,
|
|
62422
|
+
id
|
|
62423
|
+
} = entry;
|
|
62424
|
+
return a(Component, { ...entry,
|
|
62425
|
+
element: element,
|
|
62426
|
+
key: id
|
|
62427
|
+
});
|
|
62428
|
+
})
|
|
62198
62429
|
})
|
|
62199
62430
|
})]
|
|
62200
62431
|
});
|
|
@@ -62228,7 +62459,7 @@
|
|
|
62228
62459
|
});
|
|
62229
62460
|
}
|
|
62230
62461
|
|
|
62231
|
-
const noop = () => {};
|
|
62462
|
+
const noop$3 = () => {};
|
|
62232
62463
|
/**
|
|
62233
62464
|
* @param {import('../PropertiesPanel').ListGroupDefinition} props
|
|
62234
62465
|
*/
|
|
@@ -62245,6 +62476,7 @@
|
|
|
62245
62476
|
shouldSort = true
|
|
62246
62477
|
} = props;
|
|
62247
62478
|
const [open, setOpen] = useLayoutState(['groups', id, 'open'], false);
|
|
62479
|
+
const onShow = A$1(() => setOpen(true), [setOpen]);
|
|
62248
62480
|
const [ordering, setOrdering] = l([]);
|
|
62249
62481
|
const [newItemAdded, setNewItemAdded] = l(false);
|
|
62250
62482
|
const prevItems = usePrevious(items);
|
|
@@ -62319,12 +62551,15 @@
|
|
|
62319
62551
|
const toggleOpen = () => setOpen(!open);
|
|
62320
62552
|
|
|
62321
62553
|
const hasItems = !!items.length;
|
|
62554
|
+
const propertiesPanelContext = { ...F(LayoutContext),
|
|
62555
|
+
onShow
|
|
62556
|
+
};
|
|
62322
62557
|
return o$2("div", {
|
|
62323
62558
|
class: "bio-properties-panel-group",
|
|
62324
62559
|
"data-group-id": 'group-' + id,
|
|
62325
62560
|
children: [o$2("div", {
|
|
62326
62561
|
class: classnames('bio-properties-panel-group-header', hasItems ? '' : 'empty', hasItems && open ? 'open' : ''),
|
|
62327
|
-
onClick: hasItems ? toggleOpen : noop,
|
|
62562
|
+
onClick: hasItems ? toggleOpen : noop$3,
|
|
62328
62563
|
children: [o$2("div", {
|
|
62329
62564
|
title: label,
|
|
62330
62565
|
class: "bio-properties-panel-group-header-title",
|
|
@@ -62353,23 +62588,27 @@
|
|
|
62353
62588
|
})]
|
|
62354
62589
|
}), o$2("div", {
|
|
62355
62590
|
class: classnames('bio-properties-panel-list', open && hasItems ? 'open' : ''),
|
|
62356
|
-
children:
|
|
62357
|
-
|
|
62591
|
+
children: o$2(LayoutContext.Provider, {
|
|
62592
|
+
value: propertiesPanelContext,
|
|
62593
|
+
children: ordering.map((o, index) => {
|
|
62594
|
+
const item = getItem(items, o);
|
|
62358
62595
|
|
|
62359
|
-
|
|
62360
|
-
|
|
62361
|
-
|
|
62596
|
+
if (!item) {
|
|
62597
|
+
return;
|
|
62598
|
+
}
|
|
62362
62599
|
|
|
62363
|
-
|
|
62364
|
-
|
|
62365
|
-
|
|
62366
|
-
|
|
62367
|
-
|
|
62368
|
-
|
|
62369
|
-
|
|
62370
|
-
|
|
62371
|
-
|
|
62372
|
-
|
|
62600
|
+
const {
|
|
62601
|
+
id
|
|
62602
|
+
} = item; // if item was added, open first or last item based on ordering
|
|
62603
|
+
|
|
62604
|
+
const autoOpen = newItemAdded && (shouldSort ? index === 0 : index === ordering.length - 1);
|
|
62605
|
+
return a(ListItem, { ...item,
|
|
62606
|
+
autoOpen: autoOpen,
|
|
62607
|
+
element: element,
|
|
62608
|
+
index: index,
|
|
62609
|
+
key: id
|
|
62610
|
+
});
|
|
62611
|
+
})
|
|
62373
62612
|
})
|
|
62374
62613
|
})]
|
|
62375
62614
|
});
|
|
@@ -62408,13 +62647,16 @@
|
|
|
62408
62647
|
}
|
|
62409
62648
|
}
|
|
62410
62649
|
|
|
62650
|
+
const noop$2 = () => {};
|
|
62651
|
+
|
|
62411
62652
|
function Checkbox(props) {
|
|
62412
62653
|
const {
|
|
62413
62654
|
id,
|
|
62414
62655
|
label,
|
|
62415
62656
|
onChange,
|
|
62416
62657
|
disabled,
|
|
62417
|
-
value = false
|
|
62658
|
+
value = false,
|
|
62659
|
+
show = noop$2
|
|
62418
62660
|
} = props;
|
|
62419
62661
|
|
|
62420
62662
|
const handleChange = ({
|
|
@@ -62423,9 +62665,11 @@
|
|
|
62423
62665
|
onChange(target.checked);
|
|
62424
62666
|
};
|
|
62425
62667
|
|
|
62668
|
+
const ref = useShowEntryEvent(show);
|
|
62426
62669
|
return o$2("div", {
|
|
62427
62670
|
class: "bio-properties-panel-checkbox",
|
|
62428
62671
|
children: [o$2("input", {
|
|
62672
|
+
ref: ref,
|
|
62429
62673
|
id: prefixId$6(id),
|
|
62430
62674
|
name: id,
|
|
62431
62675
|
type: "checkbox",
|
|
@@ -62460,18 +62704,24 @@
|
|
|
62460
62704
|
label,
|
|
62461
62705
|
getValue,
|
|
62462
62706
|
setValue,
|
|
62463
|
-
disabled
|
|
62707
|
+
disabled,
|
|
62708
|
+
show = noop$2
|
|
62464
62709
|
} = props;
|
|
62465
62710
|
const value = getValue(element);
|
|
62711
|
+
const error = useShowErrorEvent(show);
|
|
62466
62712
|
return o$2("div", {
|
|
62467
62713
|
class: "bio-properties-panel-entry bio-properties-panel-checkbox-entry",
|
|
62468
62714
|
"data-entry-id": id,
|
|
62469
62715
|
children: [o$2(Checkbox, {
|
|
62716
|
+
disabled: disabled,
|
|
62470
62717
|
id: id,
|
|
62471
62718
|
label: label,
|
|
62472
62719
|
onChange: setValue,
|
|
62473
|
-
|
|
62474
|
-
|
|
62720
|
+
show: show,
|
|
62721
|
+
value: value
|
|
62722
|
+
}), error && o$2("div", {
|
|
62723
|
+
class: "bio-properties-panel-error",
|
|
62724
|
+
children: error
|
|
62475
62725
|
}), o$2(Description, {
|
|
62476
62726
|
forId: id,
|
|
62477
62727
|
element: element,
|
|
@@ -62673,6 +62923,25 @@
|
|
|
62673
62923
|
return previousItems ? items.filter(item => !previousItems.includes(item)) : [];
|
|
62674
62924
|
}
|
|
62675
62925
|
|
|
62926
|
+
const noop$1 = () => {};
|
|
62927
|
+
/**
|
|
62928
|
+
* @typedef { { value: string, label: string, disabled: boolean } } Option
|
|
62929
|
+
*/
|
|
62930
|
+
|
|
62931
|
+
/**
|
|
62932
|
+
* Provides basic select input.
|
|
62933
|
+
*
|
|
62934
|
+
* @param {object} props
|
|
62935
|
+
* @param {string} props.id
|
|
62936
|
+
* @param {string[]} props.path
|
|
62937
|
+
* @param {string} props.label
|
|
62938
|
+
* @param {Function} props.onChange
|
|
62939
|
+
* @param {Array<Option>} [props.options]
|
|
62940
|
+
* @param {string} props.value
|
|
62941
|
+
* @param {boolean} [props.disabled]
|
|
62942
|
+
*/
|
|
62943
|
+
|
|
62944
|
+
|
|
62676
62945
|
function Select(props) {
|
|
62677
62946
|
const {
|
|
62678
62947
|
id,
|
|
@@ -62680,8 +62949,10 @@
|
|
|
62680
62949
|
onChange,
|
|
62681
62950
|
options = [],
|
|
62682
62951
|
value,
|
|
62683
|
-
disabled
|
|
62952
|
+
disabled,
|
|
62953
|
+
show = noop$1
|
|
62684
62954
|
} = props;
|
|
62955
|
+
const ref = useShowEntryEvent(show);
|
|
62685
62956
|
|
|
62686
62957
|
const handleChange = ({
|
|
62687
62958
|
target
|
|
@@ -62696,6 +62967,7 @@
|
|
|
62696
62967
|
class: "bio-properties-panel-label",
|
|
62697
62968
|
children: label
|
|
62698
62969
|
}), o$2("select", {
|
|
62970
|
+
ref: ref,
|
|
62699
62971
|
id: prefixId$4(id),
|
|
62700
62972
|
name: id,
|
|
62701
62973
|
class: "bio-properties-panel-input",
|
|
@@ -62734,12 +63006,14 @@
|
|
|
62734
63006
|
getValue,
|
|
62735
63007
|
setValue,
|
|
62736
63008
|
getOptions,
|
|
62737
|
-
disabled
|
|
63009
|
+
disabled,
|
|
63010
|
+
show = noop$1
|
|
62738
63011
|
} = props;
|
|
62739
63012
|
const value = getValue(element);
|
|
62740
63013
|
const options = getOptions(element);
|
|
63014
|
+
const error = useShowErrorEvent(show);
|
|
62741
63015
|
return o$2("div", {
|
|
62742
|
-
class:
|
|
63016
|
+
class: classnames('bio-properties-panel-entry', error ? 'has-error' : ''),
|
|
62743
63017
|
"data-entry-id": id,
|
|
62744
63018
|
children: [o$2(Select, {
|
|
62745
63019
|
id: id,
|
|
@@ -62747,7 +63021,11 @@
|
|
|
62747
63021
|
value: value,
|
|
62748
63022
|
onChange: setValue,
|
|
62749
63023
|
options: options,
|
|
62750
|
-
disabled: disabled
|
|
63024
|
+
disabled: disabled,
|
|
63025
|
+
show: show
|
|
63026
|
+
}), error && o$2("div", {
|
|
63027
|
+
class: "bio-properties-panel-error",
|
|
63028
|
+
children: error
|
|
62751
63029
|
}), o$2(Description, {
|
|
62752
63030
|
forId: id,
|
|
62753
63031
|
element: element,
|
|
@@ -62915,6 +63193,8 @@
|
|
|
62915
63193
|
return `bio-properties-panel-${id}`;
|
|
62916
63194
|
}
|
|
62917
63195
|
|
|
63196
|
+
const noop = () => {};
|
|
63197
|
+
|
|
62918
63198
|
function Textfield(props) {
|
|
62919
63199
|
const {
|
|
62920
63200
|
debounce,
|
|
@@ -62923,8 +63203,10 @@
|
|
|
62923
63203
|
label,
|
|
62924
63204
|
onInput,
|
|
62925
63205
|
feel = false,
|
|
62926
|
-
value = ''
|
|
63206
|
+
value = '',
|
|
63207
|
+
show = noop
|
|
62927
63208
|
} = props;
|
|
63209
|
+
const ref = useShowEntryEvent(show);
|
|
62928
63210
|
const handleInput = d$1(() => {
|
|
62929
63211
|
return debounce(({
|
|
62930
63212
|
target
|
|
@@ -62940,6 +63222,7 @@
|
|
|
62940
63222
|
label: label
|
|
62941
63223
|
})]
|
|
62942
63224
|
}), o$2("input", {
|
|
63225
|
+
ref: ref,
|
|
62943
63226
|
id: prefixId$1(id),
|
|
62944
63227
|
type: "text",
|
|
62945
63228
|
name: id,
|
|
@@ -62979,53 +63262,61 @@
|
|
|
62979
63262
|
label,
|
|
62980
63263
|
getValue,
|
|
62981
63264
|
setValue,
|
|
62982
|
-
validate
|
|
63265
|
+
validate,
|
|
63266
|
+
show = noop
|
|
62983
63267
|
} = props;
|
|
62984
|
-
const [
|
|
62985
|
-
const [
|
|
63268
|
+
const [cachedInvalidValue, setCachedInvalidValue] = l(null);
|
|
63269
|
+
const [validationError, setValidationError] = l(null);
|
|
62986
63270
|
let value = getValue(element);
|
|
62987
|
-
const
|
|
62988
|
-
|
|
63271
|
+
const previousValue = usePrevious(value);
|
|
62989
63272
|
y$1(() => {
|
|
62990
|
-
|
|
62991
|
-
|
|
62992
|
-
|
|
63273
|
+
if (isFunction(validate)) {
|
|
63274
|
+
const newValidationError = validate(value) || null;
|
|
63275
|
+
setValidationError(newValidationError);
|
|
63276
|
+
}
|
|
63277
|
+
}, [value]);
|
|
62993
63278
|
|
|
62994
|
-
const
|
|
62995
|
-
|
|
63279
|
+
const onInput = newValue => {
|
|
63280
|
+
let newValidationError = null;
|
|
62996
63281
|
|
|
62997
|
-
if (
|
|
62998
|
-
|
|
63282
|
+
if (isFunction(validate)) {
|
|
63283
|
+
newValidationError = validate(newValue) || null;
|
|
63284
|
+
}
|
|
63285
|
+
|
|
63286
|
+
if (newValidationError) {
|
|
63287
|
+
setCachedInvalidValue(newValue);
|
|
62999
63288
|
} else {
|
|
63000
63289
|
setValue(newValue);
|
|
63001
63290
|
}
|
|
63002
63291
|
|
|
63003
|
-
|
|
63004
|
-
};
|
|
63005
|
-
|
|
63292
|
+
setValidationError(newValidationError);
|
|
63293
|
+
};
|
|
63006
63294
|
|
|
63007
|
-
if (
|
|
63008
|
-
value =
|
|
63295
|
+
if (previousValue === value && validationError) {
|
|
63296
|
+
value = cachedInvalidValue;
|
|
63009
63297
|
}
|
|
63010
63298
|
|
|
63299
|
+
const temporaryError = useShowErrorEvent(show);
|
|
63300
|
+
const error = temporaryError || validationError;
|
|
63011
63301
|
return o$2("div", {
|
|
63012
63302
|
class: classnames('bio-properties-panel-entry', error ? 'has-error' : ''),
|
|
63013
63303
|
"data-entry-id": id,
|
|
63014
63304
|
children: [o$2(Textfield, {
|
|
63015
|
-
id: id,
|
|
63016
|
-
label: label,
|
|
63017
|
-
value: value,
|
|
63018
|
-
onInput: handleChange,
|
|
63019
63305
|
debounce: debounce,
|
|
63020
63306
|
disabled: disabled,
|
|
63021
|
-
feel: feel
|
|
63307
|
+
feel: feel,
|
|
63308
|
+
id: id,
|
|
63309
|
+
label: label,
|
|
63310
|
+
onInput: onInput,
|
|
63311
|
+
show: show,
|
|
63312
|
+
value: value
|
|
63313
|
+
}), error && o$2("div", {
|
|
63314
|
+
class: "bio-properties-panel-error",
|
|
63315
|
+
children: error
|
|
63022
63316
|
}), o$2(Description, {
|
|
63023
63317
|
forId: id,
|
|
63024
63318
|
element: element,
|
|
63025
63319
|
value: description
|
|
63026
|
-
}), error && o$2("div", {
|
|
63027
|
-
class: "bio-properties-panel-error",
|
|
63028
|
-
children: error
|
|
63029
63320
|
})]
|
|
63030
63321
|
});
|
|
63031
63322
|
}
|
|
@@ -63117,27 +63408,166 @@
|
|
|
63117
63408
|
});
|
|
63118
63409
|
}
|
|
63119
63410
|
|
|
63120
|
-
function prefixId(id) {
|
|
63121
|
-
return `bio-properties-panel-${id}`;
|
|
63122
|
-
}
|
|
63411
|
+
function prefixId(id) {
|
|
63412
|
+
return `bio-properties-panel-${id}`;
|
|
63413
|
+
}
|
|
63414
|
+
|
|
63415
|
+
const DEFAULT_DEBOUNCE_TIME = 300;
|
|
63416
|
+
function debounceInput(debounceDelay) {
|
|
63417
|
+
return function _debounceInput(fn) {
|
|
63418
|
+
if (debounceDelay !== false) {
|
|
63419
|
+
var debounceTime = isNumber(debounceDelay) ? debounceDelay : DEFAULT_DEBOUNCE_TIME;
|
|
63420
|
+
return debounce(fn, debounceTime);
|
|
63421
|
+
} else {
|
|
63422
|
+
return fn;
|
|
63423
|
+
}
|
|
63424
|
+
};
|
|
63425
|
+
}
|
|
63426
|
+
debounceInput.$inject = ['config.debounceInput'];
|
|
63427
|
+
|
|
63428
|
+
var index$2 = {
|
|
63429
|
+
debounceInput: ['factory', debounceInput]
|
|
63430
|
+
};
|
|
63431
|
+
|
|
63432
|
+
var require$$0 = /*@__PURE__*/getAugmentedNamespace(index_esm);
|
|
63433
|
+
|
|
63434
|
+
const {
|
|
63435
|
+
isNil: isNil$1,
|
|
63436
|
+
isString: isString$1,
|
|
63437
|
+
isUndefined: isUndefined$2
|
|
63438
|
+
} = require$$0;
|
|
63439
|
+
|
|
63440
|
+
/**
|
|
63441
|
+
* Get path from model element and optional parent model element. Falls back to
|
|
63442
|
+
* returning null.
|
|
63443
|
+
*
|
|
63444
|
+
* @param {ModdleElement} moddleElement
|
|
63445
|
+
* @param {ModdleElement} [parentModdleElement]
|
|
63446
|
+
*
|
|
63447
|
+
* @returns {string[]|null}
|
|
63448
|
+
*/
|
|
63449
|
+
var getPath = function(moddleElement, parentModdleElement) {
|
|
63450
|
+
if (!moddleElement) {
|
|
63451
|
+
return null;
|
|
63452
|
+
}
|
|
63453
|
+
|
|
63454
|
+
if (moddleElement === parentModdleElement) {
|
|
63455
|
+
return [];
|
|
63456
|
+
}
|
|
63457
|
+
|
|
63458
|
+
let path = [],
|
|
63459
|
+
parent;
|
|
63460
|
+
|
|
63461
|
+
do {
|
|
63462
|
+
parent = moddleElement.$parent;
|
|
63463
|
+
|
|
63464
|
+
if (!parent) {
|
|
63465
|
+
if (moddleElement.$instanceOf('bpmn:Definitions')) {
|
|
63466
|
+
break;
|
|
63467
|
+
} else {
|
|
63468
|
+
return null;
|
|
63469
|
+
}
|
|
63470
|
+
}
|
|
63471
|
+
|
|
63472
|
+
path = [ ...getPropertyName(moddleElement, parent), ...path ];
|
|
63123
63473
|
|
|
63124
|
-
|
|
63125
|
-
|
|
63126
|
-
|
|
63127
|
-
|
|
63128
|
-
|
|
63129
|
-
|
|
63474
|
+
moddleElement = parent;
|
|
63475
|
+
|
|
63476
|
+
if (parentModdleElement && moddleElement === parentModdleElement) {
|
|
63477
|
+
break;
|
|
63478
|
+
}
|
|
63479
|
+
} while (parent);
|
|
63480
|
+
|
|
63481
|
+
return path;
|
|
63482
|
+
};
|
|
63483
|
+
|
|
63484
|
+
/**
|
|
63485
|
+
* Get property name from model element and parent model element.
|
|
63486
|
+
*
|
|
63487
|
+
* @param {ModdleElement} moddleElement
|
|
63488
|
+
* @param {ModdleElement} parentModdleElement
|
|
63489
|
+
*
|
|
63490
|
+
* @returns {string[]}
|
|
63491
|
+
*/
|
|
63492
|
+
function getPropertyName(moddleElement, parentModdleElement) {
|
|
63493
|
+
for (let property of Object.values(parentModdleElement.$descriptor.propertiesByName)) {
|
|
63494
|
+
if (property.isMany) {
|
|
63495
|
+
if (parentModdleElement.get(property.name).includes(moddleElement)) {
|
|
63496
|
+
return [
|
|
63497
|
+
property.name,
|
|
63498
|
+
parentModdleElement.get(property.name).indexOf(moddleElement)
|
|
63499
|
+
];
|
|
63500
|
+
}
|
|
63130
63501
|
} else {
|
|
63131
|
-
|
|
63502
|
+
if (parentModdleElement.get(property.name) === moddleElement) {
|
|
63503
|
+
return [ property.name ];
|
|
63504
|
+
}
|
|
63132
63505
|
}
|
|
63133
|
-
}
|
|
63506
|
+
}
|
|
63507
|
+
|
|
63508
|
+
return [];
|
|
63134
63509
|
}
|
|
63135
|
-
debounceInput.$inject = ['config.debounceInput'];
|
|
63136
63510
|
|
|
63137
|
-
|
|
63138
|
-
|
|
63511
|
+
/**
|
|
63512
|
+
* @param {(string|(number|string)[])[]} paths
|
|
63513
|
+
*
|
|
63514
|
+
* @returns {(number|string)[]}
|
|
63515
|
+
*/
|
|
63516
|
+
var pathConcat = function(...paths) {
|
|
63517
|
+
let concatenatedPaths = [];
|
|
63518
|
+
|
|
63519
|
+
for (let path of paths) {
|
|
63520
|
+
if (isNil$1(path) || isUndefined$2(path)) {
|
|
63521
|
+
return null;
|
|
63522
|
+
}
|
|
63523
|
+
|
|
63524
|
+
if (isString$1(path)) {
|
|
63525
|
+
path = [ path ];
|
|
63526
|
+
}
|
|
63527
|
+
|
|
63528
|
+
concatenatedPaths = concatenatedPaths.concat(path);
|
|
63529
|
+
}
|
|
63530
|
+
|
|
63531
|
+
return concatenatedPaths;
|
|
63532
|
+
};
|
|
63533
|
+
|
|
63534
|
+
/**
|
|
63535
|
+
* @param {string|(number|string)[]} a
|
|
63536
|
+
* @param {string|(number|string)[]} b
|
|
63537
|
+
* @param {string} [separator]
|
|
63538
|
+
*
|
|
63539
|
+
* @returns {boolean}
|
|
63540
|
+
*/
|
|
63541
|
+
var pathEquals = function(a, b, separator = '.') {
|
|
63542
|
+
if (isNil$1(a) || isUndefined$2(a) || isNil$1(b) || isUndefined$2(b)) {
|
|
63543
|
+
return false;
|
|
63544
|
+
}
|
|
63545
|
+
|
|
63546
|
+
if (!isString$1(a)) {
|
|
63547
|
+
a = pathStringify(a, separator);
|
|
63548
|
+
}
|
|
63549
|
+
|
|
63550
|
+
if (!isString$1(b)) {
|
|
63551
|
+
b = pathStringify(b, separator);
|
|
63552
|
+
}
|
|
63553
|
+
|
|
63554
|
+
return a === b;
|
|
63139
63555
|
};
|
|
63140
63556
|
|
|
63557
|
+
/**
|
|
63558
|
+
* @param {(number|string)[]} path
|
|
63559
|
+
* @param {string} [separator]
|
|
63560
|
+
*
|
|
63561
|
+
* @returns {string}
|
|
63562
|
+
*/
|
|
63563
|
+
function pathStringify(path, separator = '.') {
|
|
63564
|
+
if (isNil$1(path) || isUndefined$2(path)) {
|
|
63565
|
+
return null;
|
|
63566
|
+
}
|
|
63567
|
+
|
|
63568
|
+
return path.join(separator);
|
|
63569
|
+
}
|
|
63570
|
+
|
|
63141
63571
|
/**
|
|
63142
63572
|
* Failsafe remove an element from a collection
|
|
63143
63573
|
*
|
|
@@ -63983,7 +64413,7 @@
|
|
|
63983
64413
|
return 0;
|
|
63984
64414
|
};
|
|
63985
64415
|
|
|
63986
|
-
var version$1 = "0.
|
|
64416
|
+
var version$1 = "0.9.1";
|
|
63987
64417
|
|
|
63988
64418
|
// do not edit .js files directly - edit src/index.jst
|
|
63989
64419
|
|
|
@@ -64034,7 +64464,7 @@
|
|
|
64034
64464
|
// https://github.com/ajv-validator/ajv/issues/889
|
|
64035
64465
|
var equal = fastDeepEqual;
|
|
64036
64466
|
|
|
64037
|
-
var standaloneValidator = validate14$1;var _default$1 = 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":"number","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."},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^(.*?:)","errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}]}},"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"],"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}},"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":{"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"],"errorMessage":{"required":{"type":"invalid scope, missing type","properties":"invalid scope ${0/type}, missing properties=[]"}},"allOf":[{"if":{"properties":{"type":{"enum":["bpmn:Error"]}},"required":["type"]},"then":{"required":["id"],"errorMessage":"invalid scope ${0/type}, missing id"}}]}}}};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":{"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."}},"required":["value","name"],"errorMessage":"{ 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."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}},"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\""}}}},{"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"],"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 }","description":"The type of a property binding."},"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)."}}}}}}]};const schema19 = {"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":{"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."}},"required":["value","name"],"errorMessage":"{ 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."}}}};const schema20 = {"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}},"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\""}}}},{"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"],"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 }","description":"The type of a property binding."},"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)."}}}}}};const pattern0$1 = new RegExp("^(.*?:)", "u");const obj0$1 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};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){if(!(typeof data.version == "number")){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "number"},message:"should be number"};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.appliesTo !== undefined){let data5 = data.appliesTo;if(Array.isArray(data5)){const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];if(typeof data6 === "string"){if(!pattern0$1.test(data6)){const err9 = {keyword:"pattern",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern: "^(.*?:)"},message:"should match pattern \""+"^(.*?:)"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err11 of vErrors){if((((((err11.keyword !== "errorMessage") && (!err11.emUsed)) && (err11.dataPath === dataPath+"/appliesTo/" + i0)) && (err11.keyword in emErrors0)) && (err11.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err11.schemaPath.slice(36)))){emErrors0[err11.keyword].push(err11);err11.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err12 = {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 = [err12];}else {vErrors.push(err12);}errors++;}}const emErrs0 = [];for(const err13 of vErrors){if(!err13.emUsed){emErrs0.push(err13);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.metadata !== undefined){let data7 = data.metadata;if(!(data7 && typeof data7 == "object" && !Array.isArray(data7))){const err15 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err16 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data.groups !== undefined){let data9 = data.groups;if(Array.isArray(data9)){const len1 = data9.length;for(let i1=0; i1<len1; i1++){let data10 = data9[i1];if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.id === undefined){const err17 = {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 = [err17];}else {vErrors.push(err17);}errors++;}if(data10.label === undefined){const err18 = {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 = [err18];}else {vErrors.push(err18);}errors++;}if(data10.id !== undefined){if(typeof data10.id !== "string"){const err19 = {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 = [err19];}else {vErrors.push(err19);}errors++;}}if(data10.label !== undefined){if(typeof data10.label !== "string"){const err20 = {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 = [err20];}else {vErrors.push(err20);}errors++;}}}else {const err21 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors1 = {"required":{"id":[],"label":[]}};const templates1 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams0;let emParamsErrors0;for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.dataPath === dataPath+"/groups/" + i1)) && (err22.keyword in emErrors1)) && (err22.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(33)))){emPropParams0 = obj0$1[err22.keyword];emParamsErrors0 = emErrors1[err22.keyword][err22.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err22);err22.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 err23 = {keyword:"errorMessage",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17$1.allOf[0].properties.groups.items.errorMessage[key1][keyProp0]};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+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}}if(errors > 0){const emErrors2 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates2 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.dataPath === dataPath)) && (err26.keyword in emErrors2)) && (err26.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(9)))){emPropParams1 = obj0$1[err26.keyword];emParamsErrors1 = emErrors2[err26.keyword][err26.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err26);err26.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 err27 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17$1.allOf[0].errorMessage[key2][keyProp1]};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 && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data13 = data.properties;if(Array.isArray(data13)){const len2 = data13.length;for(let i2=0; i2<len2; i2++){let data14 = data13[i2];const _errs35 = errors;let valid16 = true;const _errs36 = errors;if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if((data14.type === undefined) && ("type")){const err29 = {};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {if(data14.type !== undefined){if(!equal(data14.type, "Dropdown")){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}}}var _valid0 = _errs36 === errors;errors = _errs35;if(vErrors !== null){if(_errs35){vErrors.length = _errs35;}else {vErrors = null;}}if(_valid0){const _errs38 = errors;if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(data14.choices === undefined){const err31 = {keyword:"required",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(errors > 0){const emErrs3 = [];for(const err32 of vErrors){if(((((err32.keyword !== "errorMessage") && (!err32.emUsed)) && ((err32.dataPath === dataPath+"/properties/" + i2) || ((err32.dataPath.indexOf(dataPath+"/properties/" + i2) === 0) && (err32.dataPath[dataPath+"/properties/" + i2.length] === "/")))) && (err32.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then") === 0)) && (err32.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length] === "/")){emErrs3.push(err32);err32.emUsed = true;}}if(emErrs3.length){const err33 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs3},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}const emErrs4 = [];for(const err34 of vErrors){if(!err34.emUsed){emErrs4.push(err34);}}vErrors = emErrs4;errors = emErrs4.length;}var _valid0 = _errs38 === errors;valid16 = _valid0;}if(!valid16){const err35 = {keyword:"if",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(data14.value !== undefined){let data16 = data14.value;if((typeof data16 !== "string") && (typeof data16 !== "boolean")){const err36 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/value",schemaPath:"#/definitions/properties/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 = [err36];}else {vErrors.push(err36);}errors++;}}if(data14.description !== undefined){if(typeof data14.description !== "string"){const err37 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data14.label !== undefined){if(typeof data14.label !== "string"){const err38 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}if(data14.type !== undefined){if(typeof data14.type !== "string"){const err39 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data14.editable !== undefined){if(typeof data14.editable !== "boolean"){const err40 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data14.choices !== undefined){let data21 = data14.choices;if(Array.isArray(data21)){const len3 = data21.length;for(let i3=0; i3<len3; i3++){let data22 = data21[i3];if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if(data22.value === undefined){const err41 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data22.name === undefined){const err42 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if(data22.name !== undefined){if(typeof data22.name !== "string"){const err43 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data22.value !== undefined){if(typeof data22.value !== "string"){const err44 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}else {const err45 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(errors > 0){const emErrs5 = [];for(const err46 of vErrors){if(((((err46.keyword !== "errorMessage") && (!err46.emUsed)) && ((err46.dataPath === dataPath+"/properties/" + i2+"/choices/" + i3) || ((err46.dataPath.indexOf(dataPath+"/properties/" + i2+"/choices/" + i3) === 0) && (err46.dataPath[dataPath+"/properties/" + i2+"/choices/" + i3.length] === "/")))) && (err46.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items") === 0)) && (err46.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length] === "/")){emErrs5.push(err46);err46.emUsed = true;}}if(emErrs5.length){const err47 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrs5},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}const emErrs6 = [];for(const err48 of vErrors){if(!err48.emUsed){emErrs6.push(err48);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err49 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data14.constraints !== undefined){let data25 = data14.constraints;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.notEmpty !== undefined){if(typeof data25.notEmpty !== "boolean"){const err50 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data25.minLength !== undefined){if(!(typeof data25.minLength == "number")){const err51 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data25.maxLength !== undefined){if(!(typeof data25.maxLength == "number")){const err52 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data25.pattern !== undefined){let data29 = data25.pattern;const _errs66 = errors;let valid24 = false;let passing0 = null;const _errs67 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.value !== undefined){if(typeof data29.value !== "string"){const err53 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}if(data29.message !== undefined){if(typeof data29.message !== "string"){const err54 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}else {const err55 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var _valid1 = _errs67 === errors;if(_valid1){valid24 = true;passing0 = 0;}const _errs73 = errors;if(typeof data29 !== "string"){const err56 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var _valid1 = _errs73 === errors;if(_valid1 && valid24){valid24 = false;passing0 = [passing0, 1];}else {if(_valid1){valid24 = true;passing0 = 1;}}if(!valid24){const err57 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}}}}else {const err58 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data14.group !== undefined){if(typeof data14.group !== "string"){const err59 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}}else {const err60 = {keyword:"type",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}}else {const err61 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(Array.isArray(data13)){const len4 = data13.length;for(let i4=0; i4<len4; i4++){let data33 = data13[i4];const _errs82 = errors;let valid29 = true;const _errs83 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if((data33.binding === undefined) && ("binding")){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {if(data33.binding !== undefined){let data34 = data33.binding;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.type === undefined) && ("type")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}else {if(data34.type !== undefined){if(!equal(data34.type, "property")){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}}}}}}var _valid2 = _errs83 === errors;errors = _errs82;if(vErrors !== null){if(_errs82){vErrors.length = _errs82;}else {vErrors = null;}}if(_valid2){const _errs86 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.type !== undefined){let data36 = data33.type;if(!(((((data36 === "String") || (data36 === "Text")) || (data36 === "Hidden")) || (data36 === "Dropdown")) || (data36 === "Boolean"))){const err65 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err65];}else {vErrors.push(err65);}errors++;}if(errors > 0){const emErrs7 = [];for(const err66 of vErrors){if(((((err66.keyword !== "errorMessage") && (!err66.emUsed)) && ((err66.dataPath === dataPath+"/properties/" + i4+"/type") || ((err66.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err66.dataPath[dataPath+"/properties/" + i4+"/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] === "/")){emErrs7.push(err66);err66.emUsed = true;}}if(emErrs7.length){const err67 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data36) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}const emErrs8 = [];for(const err68 of vErrors){if(!err68.emUsed){emErrs8.push(err68);}}vErrors = emErrs8;errors = emErrs8.length;}}}var _valid2 = _errs86 === errors;valid29 = _valid2;}if(!valid29){const err69 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,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 _errs89 = errors;let valid33 = true;const _errs90 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if((data33.binding === undefined) && ("binding")){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {if(data33.binding !== undefined){let data37 = data33.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}else {if(data37.type !== undefined){if(!equal(data37.type, "camunda:executionListener")){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}}}}}var _valid3 = _errs90 === errors;errors = _errs89;if(vErrors !== null){if(_errs89){vErrors.length = _errs89;}else {vErrors = null;}}if(_valid3){const _errs93 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.type !== undefined){if(!(data33.type === "Hidden")){const err73 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err73];}else {vErrors.push(err73);}errors++;}if(errors > 0){const emErrs9 = [];for(const err74 of vErrors){if(((((err74.keyword !== "errorMessage") && (!err74.emUsed)) && ((err74.dataPath === dataPath+"/properties/" + i4+"/type") || ((err74.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err74.dataPath[dataPath+"/properties/" + i4+"/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] === "/")){emErrs9.push(err74);err74.emUsed = true;}}if(emErrs9.length){const err75 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data33 && data33.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}const emErrs10 = [];for(const err76 of vErrors){if(!err76.emUsed){emErrs10.push(err76);}}vErrors = emErrs10;errors = emErrs10.length;}}}var _valid3 = _errs93 === errors;valid33 = _valid3;}if(!valid33){const err77 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}const _errs96 = errors;let valid37 = true;const _errs97 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if((data33.binding === undefined) && ("binding")){const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {if(data33.binding !== undefined){let data40 = data33.binding;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.type === undefined) && ("type")){const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}else {if(data40.type !== undefined){let data41 = data40.type;if(!((((((data41 === "camunda:property") || (data41 === "camunda:outputParameter")) || (data41 === "camunda:in")) || (data41 === "camunda:in:businessKey")) || (data41 === "camunda:out")) || (data41 === "camunda:errorEventDefinition"))){const err80 = {};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}}}}}}var _valid4 = _errs97 === errors;errors = _errs96;if(vErrors !== null){if(_errs96){vErrors.length = _errs96;}else {vErrors = null;}}if(_valid4){const _errs100 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.type !== undefined){let data42 = data33.type;if(!(((data42 === "String") || (data42 === "Hidden")) || (data42 === "Dropdown"))){const err81 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err81];}else {vErrors.push(err81);}errors++;}if(errors > 0){const emErrs11 = [];for(const err82 of vErrors){if(((((err82.keyword !== "errorMessage") && (!err82.emUsed)) && ((err82.dataPath === dataPath+"/properties/" + i4+"/type") || ((err82.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err82.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err82.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err82.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs11.push(err82);err82.emUsed = true;}}if(emErrs11.length){const err83 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors: emErrs11},message:"invalid property type " + JSON.stringify(data42) + " for binding type " + JSON.stringify(data33 && data33.binding && data33.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}const emErrs12 = [];for(const err84 of vErrors){if(!err84.emUsed){emErrs12.push(err84);}}vErrors = emErrs12;errors = emErrs12.length;}}}var _valid4 = _errs100 === errors;valid37 = _valid4;}if(!valid37){const err85 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}const _errs103 = errors;let valid41 = true;const _errs104 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if((data33.binding === undefined) && ("binding")){const err86 = {};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}else {if(data33.binding !== undefined){let data43 = data33.binding;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.type === undefined) && ("type")){const err87 = {};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {if(data43.type !== undefined){let data44 = data43.type;if(!((data44 === "camunda:inputParameter") || (data44 === "camunda:field"))){const err88 = {};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}}}}}}var _valid5 = _errs104 === errors;errors = _errs103;if(vErrors !== null){if(_errs103){vErrors.length = _errs103;}else {vErrors = null;}}if(_valid5){const _errs107 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.type !== undefined){let data45 = data33.type;if(!((((data45 === "String") || (data45 === "Text")) || (data45 === "Hidden")) || (data45 === "Dropdown"))){const err89 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err89];}else {vErrors.push(err89);}errors++;}if(errors > 0){const emErrs13 = [];for(const err90 of vErrors){if(((((err90.keyword !== "errorMessage") && (!err90.emUsed)) && ((err90.dataPath === dataPath+"/properties/" + i4+"/type") || ((err90.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err90.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err90.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err90.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs13.push(err90);err90.emUsed = true;}}if(emErrs13.length){const err91 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors: emErrs13},message:"invalid property type " + JSON.stringify(data45) + " for binding type " + JSON.stringify(data33 && data33.binding && data33.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}const emErrs14 = [];for(const err92 of vErrors){if(!err92.emUsed){emErrs14.push(err92);}}vErrors = emErrs14;errors = emErrs14.length;}}}var _valid5 = _errs107 === errors;valid41 = _valid5;}if(!valid41){const err93 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.binding === undefined){const err94 = {keyword:"required",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if(data33.binding !== undefined){let data46 = data33.binding;const _errs112 = errors;let valid47 = true;const _errs113 = errors;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 === "property") || (data47 === "camunda:property")) || (data47 === "camunda:inputParameter")) || (data47 === "camunda:field"))){const err96 = {};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}}}var _valid6 = _errs113 === errors;errors = _errs112;if(vErrors !== null){if(_errs112){vErrors.length = _errs112;}else {vErrors = null;}}if(_valid6){const _errs115 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.name === undefined){const err97 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err97];}else {vErrors.push(err97);}errors++;}}if(errors > 0){const emErrs15 = [];for(const err98 of vErrors){if(((((err98.keyword !== "errorMessage") && (!err98.emUsed)) && ((err98.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err98.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err98.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err98.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err98.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs15.push(err98);err98.emUsed = true;}}if(emErrs15.length){const err99 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs15},message:"property.binding " + JSON.stringify(data46 && data46.type) + " requires name"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}const emErrs16 = [];for(const err100 of vErrors){if(!err100.emUsed){emErrs16.push(err100);}}vErrors = emErrs16;errors = emErrs16.length;}var _valid6 = _errs115 === errors;valid47 = _valid6;}if(!valid47){const err101 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}const _errs117 = errors;let valid49 = true;const _errs118 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}else {if(data46.type !== undefined){if(!equal(data46.type, "camunda:outputParameter")){const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}}var _valid7 = _errs118 === errors;errors = _errs117;if(vErrors !== null){if(_errs117){vErrors.length = _errs117;}else {vErrors = null;}}if(_valid7){const _errs120 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.source === undefined){const err104 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err104];}else {vErrors.push(err104);}errors++;}}if(errors > 0){const emErrs17 = [];for(const err105 of vErrors){if(((((err105.keyword !== "errorMessage") && (!err105.emUsed)) && ((err105.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err105.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err105.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err105.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err105.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs17.push(err105);err105.emUsed = true;}}if(emErrs17.length){const err106 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs17},message:"property.binding " + JSON.stringify(data46 && data46.type) + " requires source"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}const emErrs18 = [];for(const err107 of vErrors){if(!err107.emUsed){emErrs18.push(err107);}}vErrors = emErrs18;errors = emErrs18.length;}var _valid7 = _errs120 === errors;valid49 = _valid7;}if(!valid49){const err108 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}const _errs122 = errors;let valid51 = true;const _errs123 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}else {if(data46.type !== undefined){if(!equal(data46.type, "camunda:in")){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}}}var _valid8 = _errs123 === errors;errors = _errs122;if(vErrors !== null){if(_errs122){vErrors.length = _errs122;}else {vErrors = null;}}if(_valid8){const _errs125 = errors;const _errs126 = errors;let valid53 = false;const _errs127 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.variables === undefined){const err111 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err111];}else {vErrors.push(err111);}errors++;}}var _valid9 = _errs127 === errors;valid53 = valid53 || _valid9;if(!valid53){const _errs128 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.target === undefined){const err112 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err112];}else {vErrors.push(err112);}errors++;}}var _valid9 = _errs128 === errors;valid53 = valid53 || _valid9;}if(!valid53){const err113 = {keyword:"anyOf",dataPath:dataPath+"/properties/" + i4+"/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 = [err113];}else {vErrors.push(err113);}errors++;}else {errors = _errs126;if(vErrors !== null){if(_errs126){vErrors.length = _errs126;}else {vErrors = null;}}}if(errors > 0){const emErrs19 = [];for(const err114 of vErrors){if(((((err114.keyword !== "errorMessage") && (!err114.emUsed)) && ((err114.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err114.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err114.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err114.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err114.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs19.push(err114);err114.emUsed = true;}}if(emErrs19.length){const err115 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data46 && data46.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const emErrs20 = [];for(const err116 of vErrors){if(!err116.emUsed){emErrs20.push(err116);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid8 = _errs125 === errors;valid51 = _valid8;}if(!valid51){const err117 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}const _errs130 = errors;let valid54 = true;const _errs131 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {if(data46.type !== undefined){if(!equal(data46.type, "camunda:out")){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}}var _valid10 = _errs131 === errors;errors = _errs130;if(vErrors !== null){if(_errs130){vErrors.length = _errs130;}else {vErrors = null;}}if(_valid10){const _errs133 = errors;const _errs134 = errors;let valid56 = false;let passing1 = null;const _errs135 = errors;const _errs136 = errors;const _errs137 = errors;const _errs138 = errors;let valid58 = false;const _errs139 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.source === undefined) && ("source")){const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}var _valid12 = _errs139 === errors;valid58 = valid58 || _valid12;if(!valid58){const _errs140 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.sourceExpression === undefined) && ("sourceExpression")){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}var _valid12 = _errs140 === errors;valid58 = valid58 || _valid12;}if(!valid58){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {errors = _errs138;if(vErrors !== null){if(_errs138){vErrors.length = _errs138;}else {vErrors = null;}}}var valid57 = _errs137 === errors;if(!valid57){errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}}else {const err123 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err123];}else {vErrors.push(err123);}errors++;}if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.variables === undefined){const err124 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err124];}else {vErrors.push(err124);}errors++;}}var _valid11 = _errs135 === errors;if(_valid11){valid56 = true;passing1 = 0;}const _errs141 = errors;const _errs142 = errors;const _errs143 = errors;const _errs144 = errors;let valid60 = false;const _errs145 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.variables === undefined) && ("variables")){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}var _valid13 = _errs145 === errors;valid60 = valid60 || _valid13;if(!valid60){const _errs146 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.sourceExpression === undefined) && ("sourceExpression")){const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}var _valid13 = _errs146 === errors;valid60 = valid60 || _valid13;}if(!valid60){const err127 = {};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}else {errors = _errs144;if(vErrors !== null){if(_errs144){vErrors.length = _errs144;}else {vErrors = null;}}}var valid59 = _errs143 === errors;if(!valid59){errors = _errs142;if(vErrors !== null){if(_errs142){vErrors.length = _errs142;}else {vErrors = null;}}}else {const err128 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err128];}else {vErrors.push(err128);}errors++;}if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.source === undefined){const err129 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err129];}else {vErrors.push(err129);}errors++;}}var _valid11 = _errs141 === errors;if(_valid11 && valid56){valid56 = false;passing1 = [passing1, 1];}else {if(_valid11){valid56 = true;passing1 = 1;}const _errs147 = errors;const _errs148 = errors;const _errs149 = errors;const _errs150 = errors;let valid62 = false;const _errs151 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.variables === undefined) && ("variables")){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}var _valid14 = _errs151 === errors;valid62 = valid62 || _valid14;if(!valid62){const _errs152 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.source === undefined) && ("source")){const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}var _valid14 = _errs152 === errors;valid62 = valid62 || _valid14;}if(!valid62){const err132 = {};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}else {errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}}var valid61 = _errs149 === errors;if(!valid61){errors = _errs148;if(vErrors !== null){if(_errs148){vErrors.length = _errs148;}else {vErrors = null;}}}else {const err133 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err133];}else {vErrors.push(err133);}errors++;}if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.sourceExpression === undefined){const err134 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err134];}else {vErrors.push(err134);}errors++;}}var _valid11 = _errs147 === errors;if(_valid11 && valid56){valid56 = false;passing1 = [passing1, 2];}else {if(_valid11){valid56 = true;passing1 = 2;}const _errs153 = errors;const _errs154 = errors;const _errs155 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.source === undefined) && ("source")){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}var valid63 = _errs155 === errors;if(!valid63){errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}}else {const err136 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err136];}else {vErrors.push(err136);}errors++;}if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.variables === undefined){const err137 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err137];}else {vErrors.push(err137);}errors++;}if(data46.sourceExpression === undefined){const err138 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err138];}else {vErrors.push(err138);}errors++;}}var _valid11 = _errs153 === errors;if(_valid11 && valid56){valid56 = false;passing1 = [passing1, 3];}else {if(_valid11){valid56 = true;passing1 = 3;}const _errs156 = errors;const _errs157 = errors;const _errs158 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.sourceExpression === undefined) && ("sourceExpression")){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}var valid64 = _errs158 === errors;if(!valid64){errors = _errs157;if(vErrors !== null){if(_errs157){vErrors.length = _errs157;}else {vErrors = null;}}}else {const err140 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err140];}else {vErrors.push(err140);}errors++;}if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.variables === undefined){const err141 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err141];}else {vErrors.push(err141);}errors++;}if(data46.source === undefined){const err142 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err142];}else {vErrors.push(err142);}errors++;}}var _valid11 = _errs156 === errors;if(_valid11 && valid56){valid56 = false;passing1 = [passing1, 4];}else {if(_valid11){valid56 = true;passing1 = 4;}}}}}if(!valid56){const err143 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i4+"/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 = [err143];}else {vErrors.push(err143);}errors++;}else {errors = _errs134;if(vErrors !== null){if(_errs134){vErrors.length = _errs134;}else {vErrors = null;}}}if(errors > 0){const emErrs21 = [];for(const err144 of vErrors){if(((((err144.keyword !== "errorMessage") && (!err144.emUsed)) && ((err144.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err144.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err144.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err144.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err144.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs21.push(err144);err144.emUsed = true;}}if(emErrs21.length){const err145 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data46 && data46.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}const emErrs22 = [];for(const err146 of vErrors){if(!err146.emUsed){emErrs22.push(err146);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid10 = _errs133 === errors;valid54 = _valid10;}if(!valid54){const err147 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}const _errs160 = errors;let valid65 = true;const _errs161 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err148 = {};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}else {if(data46.type !== undefined){if(!equal(data46.type, "camunda:errorEventDefinition")){const err149 = {};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}}}var _valid15 = _errs161 === errors;errors = _errs160;if(vErrors !== null){if(_errs160){vErrors.length = _errs160;}else {vErrors = null;}}if(_valid15){const _errs163 = errors;const _errs164 = errors;let valid67 = false;let passing2 = null;const _errs165 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.errorRef === undefined){const err150 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err150];}else {vErrors.push(err150);}errors++;}}var _valid16 = _errs165 === errors;if(_valid16){valid67 = true;passing2 = 0;}if(!valid67){const err151 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i4+"/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 = [err151];}else {vErrors.push(err151);}errors++;}else {errors = _errs164;if(vErrors !== null){if(_errs164){vErrors.length = _errs164;}else {vErrors = null;}}}if(errors > 0){const emErrs23 = [];for(const err152 of vErrors){if(((((err152.keyword !== "errorMessage") && (!err152.emUsed)) && ((err152.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err152.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err152.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err152.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err152.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs23.push(err152);err152.emUsed = true;}}if(emErrs23.length){const err153 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors: emErrs23},message:"property.binding " + JSON.stringify(data46 && data46.type) + " requires errorRef"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}const emErrs24 = [];for(const err154 of vErrors){if(!err154.emUsed){emErrs24.push(err154);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid15 = _errs163 === errors;valid65 = _valid15;}if(!valid65){const err155 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.type === undefined){const err156 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(data46.type !== undefined){let data52 = data46.type;if(typeof data52 !== "string"){const err157 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}if(!((((((((((data52 === "property") || (data52 === "camunda:property")) || (data52 === "camunda:inputParameter")) || (data52 === "camunda:outputParameter")) || (data52 === "camunda:in")) || (data52 === "camunda:out")) || (data52 === "camunda:in:businessKey")) || (data52 === "camunda:executionListener")) || (data52 === "camunda:field")) || (data52 === "camunda:errorEventDefinition"))){const err158 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/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 = [err158];}else {vErrors.push(err158);}errors++;}if(errors > 0){const emErrs25 = [];for(const err159 of vErrors){if(((((err159.keyword !== "errorMessage") && (!err159.emUsed)) && ((err159.dataPath === dataPath+"/properties/" + i4+"/binding/type") || ((err159.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding/type") === 0) && (err159.dataPath[dataPath+"/properties/" + i4+"/binding/type".length] === "/")))) && (err159.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err159.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs25.push(err159);err159.emUsed = true;}}if(emErrs25.length){const err160 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs25},message:"invalid property.binding type " + JSON.stringify(data52) + "; 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 = [err160];}else {vErrors.push(err160);}errors++;}const emErrs26 = [];for(const err161 of vErrors){if(!err161.emUsed){emErrs26.push(err161);}}vErrors = emErrs26;errors = emErrs26.length;}}if(data46.name !== undefined){if(typeof data46.name !== "string"){const err162 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}if(data46.event !== undefined){if(typeof data46.event !== "string"){const err163 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}if(data46.scriptFormat !== undefined){if(typeof data46.scriptFormat !== "string"){const err164 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data46.source !== undefined){if(typeof data46.source !== "string"){const err165 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}if(data46.target !== undefined){if(typeof data46.target !== "string"){const err166 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}if(data46.expression !== undefined){if(typeof data46.expression !== "boolean"){const err167 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}if(data46.variables !== undefined){let data59 = data46.variables;if(typeof data59 !== "string"){const err168 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}if(!((data59 === "all") || (data59 === "local"))){const err169 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/variables",schemaPath:"#/definitions/properties/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 = [err169];}else {vErrors.push(err169);}errors++;}}if(data46.sourceExpression !== undefined){if(typeof data46.sourceExpression !== "string"){const err170 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}}else {const err171 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}else {const err172 = {keyword:"type",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}if(errors > 0){const emErrors3 = {"required":{"binding":[]}};const templates3 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i4) + "\""}}};let emPropParams2;let emParamsErrors2;for(const err173 of vErrors){if((((((err173.keyword !== "errorMessage") && (!err173.emUsed)) && (err173.dataPath === dataPath+"/properties/" + i4)) && (err173.keyword in emErrors3)) && (err173.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err173.schemaPath.slice(38)))){emPropParams2 = obj0$1[err173.keyword];emParamsErrors2 = emErrors3[err173.keyword][err173.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err173);err173.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 err174 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18$1.allOf[1].items.errorMessage[key3][keyProp2]};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}}const emErrs27 = [];for(const err175 of vErrors){if(!err175.emUsed){emErrs27.push(err175);}}vErrors = emErrs27;errors = emErrs27.length;}}}else {const err176 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data.scopes !== undefined){let data61 = data.scopes;if(Array.isArray(data61)){const len5 = data61.length;for(let i5=0; i5<len5; i5++){let data62 = data61[i5];const _errs189 = errors;let valid73 = true;const _errs190 = errors;if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if((data62.type === undefined) && ("type")){const err177 = {};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}else {if(data62.type !== undefined){if(!(data62.type === "bpmn:Error")){const err178 = {};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}}}var _valid17 = _errs190 === errors;errors = _errs189;if(vErrors !== null){if(_errs189){vErrors.length = _errs189;}else {vErrors = null;}}if(_valid17){const _errs192 = errors;if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if(data62.id === undefined){const err179 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/allOf/0/then/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(errors > 0){const emErrs28 = [];for(const err180 of vErrors){if(((((err180.keyword !== "errorMessage") && (!err180.emUsed)) && ((err180.dataPath === dataPath+"/scopes/" + i5) || ((err180.dataPath.indexOf(dataPath+"/scopes/" + i5) === 0) && (err180.dataPath[dataPath+"/scopes/" + i5.length] === "/")))) && (err180.schemaPath.indexOf("#/properties/scopes/items/allOf/0/then") === 0)) && (err180.schemaPath["#/properties/scopes/items/allOf/0/then".length] === "/")){emErrs28.push(err180);err180.emUsed = true;}}if(emErrs28.length){const err181 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/allOf/0/then/errorMessage",params:{errors: emErrs28},message:"invalid scope " + JSON.stringify(data62 && data62.type) + ", missing id"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}const emErrs29 = [];for(const err182 of vErrors){if(!err182.emUsed){emErrs29.push(err182);}}vErrors = emErrs29;errors = emErrs29.length;}var _valid17 = _errs192 === errors;valid73 = _valid17;}if(!valid73){const err183 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if(data62.type === undefined){const err184 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}if(data62.properties === undefined){const err185 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if(data62.type !== undefined){let data64 = data62.type;if(typeof data64 !== "string"){const err186 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/type",schemaPath:"#/properties/scopes/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if(!((data64 === "camunda:Connector") || (data64 === "bpmn:Error"))){const err187 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/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 = [err187];}else {vErrors.push(err187);}errors++;}if(errors > 0){const emErrs30 = [];for(const err188 of vErrors){if(((((err188.keyword !== "errorMessage") && (!err188.emUsed)) && ((err188.dataPath === dataPath+"/scopes/" + i5+"/type") || ((err188.dataPath.indexOf(dataPath+"/scopes/" + i5+"/type") === 0) && (err188.dataPath[dataPath+"/scopes/" + i5+"/type".length] === "/")))) && (err188.schemaPath.indexOf("#/properties/scopes/items/properties/type") === 0)) && (err188.schemaPath["#/properties/scopes/items/properties/type".length] === "/")){emErrs30.push(err188);err188.emUsed = true;}}if(emErrs30.length){const err189 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/type",schemaPath:"#/properties/scopes/items/properties/type/errorMessage",params:{errors: emErrs30},message:"invalid scope type " + JSON.stringify(data64) + "; must be any of { camunda:Connector, bpmn:Error }"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}const emErrs31 = [];for(const err190 of vErrors){if(!err190.emUsed){emErrs31.push(err190);}}vErrors = emErrs31;errors = emErrs31.length;}}if(data62.properties !== undefined){let data65 = data62.properties;if(Array.isArray(data65)){const len6 = data65.length;for(let i6=0; i6<len6; i6++){let data66 = data65[i6];const _errs202 = errors;let valid82 = true;const _errs203 = errors;if(data66 && typeof data66 == "object" && !Array.isArray(data66)){if((data66.type === undefined) && ("type")){const err191 = {};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}else {if(data66.type !== undefined){if(!equal(data66.type, "Dropdown")){const err192 = {};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}}}var _valid18 = _errs203 === errors;errors = _errs202;if(vErrors !== null){if(_errs202){vErrors.length = _errs202;}else {vErrors = null;}}if(_valid18){const _errs205 = errors;if(data66 && typeof data66 == "object" && !Array.isArray(data66)){if(data66.choices === undefined){const err193 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}if(errors > 0){const emErrs32 = [];for(const err194 of vErrors){if(((((err194.keyword !== "errorMessage") && (!err194.emUsed)) && ((err194.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i6) || ((err194.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i6) === 0) && (err194.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i6.length] === "/")))) && (err194.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then") === 0)) && (err194.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length] === "/")){emErrs32.push(err194);err194.emUsed = true;}}if(emErrs32.length){const err195 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs32},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}const emErrs33 = [];for(const err196 of vErrors){if(!err196.emUsed){emErrs33.push(err196);}}vErrors = emErrs33;errors = emErrs33.length;}var _valid18 = _errs205 === errors;valid82 = _valid18;}if(!valid82){const err197 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}if(data66 && typeof data66 == "object" && !Array.isArray(data66)){if(data66.value !== undefined){let data68 = data66.value;if((typeof data68 !== "string") && (typeof data68 !== "boolean")){const err198 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",params:{type: schema19.items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}if(data66.description !== undefined){if(typeof data66.description !== "string"){const err199 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}if(data66.label !== undefined){if(typeof data66.label !== "string"){const err200 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(data66.type !== undefined){if(typeof data66.type !== "string"){const err201 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}if(data66.editable !== undefined){if(typeof data66.editable !== "boolean"){const err202 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}if(data66.choices !== undefined){let data73 = data66.choices;if(Array.isArray(data73)){const len7 = data73.length;for(let i7=0; i7<len7; i7++){let data74 = data73[i7];if(data74 && typeof data74 == "object" && !Array.isArray(data74)){if(data74.value === undefined){const err203 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}if(data74.name === undefined){const err204 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}if(data74.name !== undefined){if(typeof data74.name !== "string"){const err205 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}if(data74.value !== undefined){if(typeof data74.value !== "string"){const err206 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}}else {const err207 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if(errors > 0){const emErrs34 = [];for(const err208 of vErrors){if(((((err208.keyword !== "errorMessage") && (!err208.emUsed)) && ((err208.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7) || ((err208.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7) === 0) && (err208.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7.length] === "/")))) && (err208.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items") === 0)) && (err208.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length] === "/")){emErrs34.push(err208);err208.emUsed = true;}}if(emErrs34.length){const err209 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrs34},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}const emErrs35 = [];for(const err210 of vErrors){if(!err210.emUsed){emErrs35.push(err210);}}vErrors = emErrs35;errors = emErrs35.length;}}}else {const err211 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}if(data66.constraints !== undefined){let data77 = data66.constraints;if(data77 && typeof data77 == "object" && !Array.isArray(data77)){if(data77.notEmpty !== undefined){if(typeof data77.notEmpty !== "boolean"){const err212 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}if(data77.minLength !== undefined){if(!(typeof data77.minLength == "number")){const err213 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}if(data77.maxLength !== undefined){if(!(typeof data77.maxLength == "number")){const err214 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}if(data77.pattern !== undefined){let data81 = data77.pattern;const _errs233 = errors;let valid90 = false;let passing3 = null;const _errs234 = errors;if(data81 && typeof data81 == "object" && !Array.isArray(data81)){if(data81.value !== undefined){if(typeof data81.value !== "string"){const err215 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}if(data81.message !== undefined){if(typeof data81.message !== "string"){const err216 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}}else {const err217 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}var _valid19 = _errs234 === errors;if(_valid19){valid90 = true;passing3 = 0;}const _errs240 = errors;if(typeof data81 !== "string"){const err218 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}var _valid19 = _errs240 === errors;if(_valid19 && valid90){valid90 = false;passing3 = [passing3, 1];}else {if(_valid19){valid90 = true;passing3 = 1;}}if(!valid90){const err219 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing3},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}else {errors = _errs233;if(vErrors !== null){if(_errs233){vErrors.length = _errs233;}else {vErrors = null;}}}}}else {const err220 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(data66.group !== undefined){if(typeof data66.group !== "string"){const err221 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}}else {const err222 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}}else {const err223 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}if(Array.isArray(data65)){const len8 = data65.length;for(let i8=0; i8<len8; i8++){let data85 = data65[i8];const _errs250 = errors;let valid96 = true;const _errs251 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if((data85.binding === undefined) && ("binding")){const err224 = {};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}else {if(data85.binding !== undefined){let data86 = data85.binding;if(data86 && typeof data86 == "object" && !Array.isArray(data86)){if((data86.type === undefined) && ("type")){const err225 = {};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}else {if(data86.type !== undefined){if(!equal(data86.type, "property")){const err226 = {};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}}}}}}var _valid20 = _errs251 === errors;errors = _errs250;if(vErrors !== null){if(_errs250){vErrors.length = _errs250;}else {vErrors = null;}}if(_valid20){const _errs254 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.type !== undefined){let data88 = data85.type;if(!(((((data88 === "String") || (data88 === "Text")) || (data88 === "Hidden")) || (data88 === "Dropdown")) || (data88 === "Boolean"))){const err227 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}if(errors > 0){const emErrs36 = [];for(const err228 of vErrors){if(((((err228.keyword !== "errorMessage") && (!err228.emUsed)) && ((err228.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err228.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err228.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err228.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err228.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs36.push(err228);err228.emUsed = true;}}if(emErrs36.length){const err229 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs36},message:"invalid property type " + JSON.stringify(data88) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}const emErrs37 = [];for(const err230 of vErrors){if(!err230.emUsed){emErrs37.push(err230);}}vErrors = emErrs37;errors = emErrs37.length;}}}var _valid20 = _errs254 === errors;valid96 = _valid20;}if(!valid96){const err231 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}const _errs257 = errors;let valid100 = true;const _errs258 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if((data85.binding === undefined) && ("binding")){const err232 = {};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}else {if(data85.binding !== undefined){let data89 = data85.binding;if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if((data89.type === undefined) && ("type")){const err233 = {};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}else {if(data89.type !== undefined){if(!equal(data89.type, "camunda:executionListener")){const err234 = {};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}}}}}}}var _valid21 = _errs258 === errors;errors = _errs257;if(vErrors !== null){if(_errs257){vErrors.length = _errs257;}else {vErrors = null;}}if(_valid21){const _errs261 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.type !== undefined){if(!(data85.type === "Hidden")){const err235 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}if(errors > 0){const emErrs38 = [];for(const err236 of vErrors){if(((((err236.keyword !== "errorMessage") && (!err236.emUsed)) && ((err236.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err236.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err236.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err236.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err236.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs38.push(err236);err236.emUsed = true;}}if(emErrs38.length){const err237 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs38},message:"invalid property type " + JSON.stringify(data85 && data85.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}const emErrs39 = [];for(const err238 of vErrors){if(!err238.emUsed){emErrs39.push(err238);}}vErrors = emErrs39;errors = emErrs39.length;}}}var _valid21 = _errs261 === errors;valid100 = _valid21;}if(!valid100){const err239 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}const _errs264 = errors;let valid104 = true;const _errs265 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if((data85.binding === undefined) && ("binding")){const err240 = {};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}else {if(data85.binding !== undefined){let data92 = data85.binding;if(data92 && typeof data92 == "object" && !Array.isArray(data92)){if((data92.type === undefined) && ("type")){const err241 = {};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}else {if(data92.type !== undefined){let data93 = data92.type;if(!((((((data93 === "camunda:property") || (data93 === "camunda:outputParameter")) || (data93 === "camunda:in")) || (data93 === "camunda:in:businessKey")) || (data93 === "camunda:out")) || (data93 === "camunda:errorEventDefinition"))){const err242 = {};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}}}}}}var _valid22 = _errs265 === errors;errors = _errs264;if(vErrors !== null){if(_errs264){vErrors.length = _errs264;}else {vErrors = null;}}if(_valid22){const _errs268 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.type !== undefined){let data94 = data85.type;if(!(((data94 === "String") || (data94 === "Hidden")) || (data94 === "Dropdown"))){const err243 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}if(errors > 0){const emErrs40 = [];for(const err244 of vErrors){if(((((err244.keyword !== "errorMessage") && (!err244.emUsed)) && ((err244.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err244.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err244.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err244.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err244.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs40.push(err244);err244.emUsed = true;}}if(emErrs40.length){const err245 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors: emErrs40},message:"invalid property type " + JSON.stringify(data94) + " for binding type " + JSON.stringify(data85 && data85.binding && data85.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}const emErrs41 = [];for(const err246 of vErrors){if(!err246.emUsed){emErrs41.push(err246);}}vErrors = emErrs41;errors = emErrs41.length;}}}var _valid22 = _errs268 === errors;valid104 = _valid22;}if(!valid104){const err247 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}const _errs271 = errors;let valid108 = true;const _errs272 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if((data85.binding === undefined) && ("binding")){const err248 = {};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}else {if(data85.binding !== undefined){let data95 = data85.binding;if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if((data95.type === undefined) && ("type")){const err249 = {};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}else {if(data95.type !== undefined){let data96 = data95.type;if(!((data96 === "camunda:inputParameter") || (data96 === "camunda:field"))){const err250 = {};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}}}}}}var _valid23 = _errs272 === errors;errors = _errs271;if(vErrors !== null){if(_errs271){vErrors.length = _errs271;}else {vErrors = null;}}if(_valid23){const _errs275 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.type !== undefined){let data97 = data85.type;if(!((((data97 === "String") || (data97 === "Text")) || (data97 === "Hidden")) || (data97 === "Dropdown"))){const err251 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}if(errors > 0){const emErrs42 = [];for(const err252 of vErrors){if(((((err252.keyword !== "errorMessage") && (!err252.emUsed)) && ((err252.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err252.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err252.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err252.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err252.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs42.push(err252);err252.emUsed = true;}}if(emErrs42.length){const err253 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors: emErrs42},message:"invalid property type " + JSON.stringify(data97) + " for binding type " + JSON.stringify(data85 && data85.binding && data85.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}const emErrs43 = [];for(const err254 of vErrors){if(!err254.emUsed){emErrs43.push(err254);}}vErrors = emErrs43;errors = emErrs43.length;}}}var _valid23 = _errs275 === errors;valid108 = _valid23;}if(!valid108){const err255 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.binding === undefined){const err256 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}if(data85.binding !== undefined){let data98 = data85.binding;const _errs280 = errors;let valid114 = true;const _errs281 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.type === undefined) && ("type")){const err257 = {};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}else {if(data98.type !== undefined){let data99 = data98.type;if(!((((data99 === "property") || (data99 === "camunda:property")) || (data99 === "camunda:inputParameter")) || (data99 === "camunda:field"))){const err258 = {};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}}}}var _valid24 = _errs281 === errors;errors = _errs280;if(vErrors !== null){if(_errs280){vErrors.length = _errs280;}else {vErrors = null;}}if(_valid24){const _errs283 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.name === undefined){const err259 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err259];}else {vErrors.push(err259);}errors++;}}if(errors > 0){const emErrs44 = [];for(const err260 of vErrors){if(((((err260.keyword !== "errorMessage") && (!err260.emUsed)) && ((err260.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err260.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err260.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err260.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err260.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs44.push(err260);err260.emUsed = true;}}if(emErrs44.length){const err261 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs44},message:"property.binding " + JSON.stringify(data98 && data98.type) + " requires name"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}const emErrs45 = [];for(const err262 of vErrors){if(!err262.emUsed){emErrs45.push(err262);}}vErrors = emErrs45;errors = emErrs45.length;}var _valid24 = _errs283 === errors;valid114 = _valid24;}if(!valid114){const err263 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}const _errs285 = errors;let valid116 = true;const _errs286 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.type === undefined) && ("type")){const err264 = {};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}else {if(data98.type !== undefined){if(!equal(data98.type, "camunda:outputParameter")){const err265 = {};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}}}}var _valid25 = _errs286 === errors;errors = _errs285;if(vErrors !== null){if(_errs285){vErrors.length = _errs285;}else {vErrors = null;}}if(_valid25){const _errs288 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.source === undefined){const err266 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err266];}else {vErrors.push(err266);}errors++;}}if(errors > 0){const emErrs46 = [];for(const err267 of vErrors){if(((((err267.keyword !== "errorMessage") && (!err267.emUsed)) && ((err267.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err267.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err267.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err267.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err267.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs46.push(err267);err267.emUsed = true;}}if(emErrs46.length){const err268 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs46},message:"property.binding " + JSON.stringify(data98 && data98.type) + " requires source"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}const emErrs47 = [];for(const err269 of vErrors){if(!err269.emUsed){emErrs47.push(err269);}}vErrors = emErrs47;errors = emErrs47.length;}var _valid25 = _errs288 === errors;valid116 = _valid25;}if(!valid116){const err270 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}const _errs290 = errors;let valid118 = true;const _errs291 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.type === undefined) && ("type")){const err271 = {};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}else {if(data98.type !== undefined){if(!equal(data98.type, "camunda:in")){const err272 = {};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}}}var _valid26 = _errs291 === errors;errors = _errs290;if(vErrors !== null){if(_errs290){vErrors.length = _errs290;}else {vErrors = null;}}if(_valid26){const _errs293 = errors;const _errs294 = errors;let valid120 = false;const _errs295 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.variables === undefined){const err273 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err273];}else {vErrors.push(err273);}errors++;}}var _valid27 = _errs295 === errors;valid120 = valid120 || _valid27;if(!valid120){const _errs296 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.target === undefined){const err274 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err274];}else {vErrors.push(err274);}errors++;}}var _valid27 = _errs296 === errors;valid120 = valid120 || _valid27;}if(!valid120){const err275 = {keyword:"anyOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err275];}else {vErrors.push(err275);}errors++;}else {errors = _errs294;if(vErrors !== null){if(_errs294){vErrors.length = _errs294;}else {vErrors = null;}}}if(errors > 0){const emErrs48 = [];for(const err276 of vErrors){if(((((err276.keyword !== "errorMessage") && (!err276.emUsed)) && ((err276.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err276.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err276.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err276.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err276.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs48.push(err276);err276.emUsed = true;}}if(emErrs48.length){const err277 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs48},message:"property.binding " + JSON.stringify(data98 && data98.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}const emErrs49 = [];for(const err278 of vErrors){if(!err278.emUsed){emErrs49.push(err278);}}vErrors = emErrs49;errors = emErrs49.length;}var _valid26 = _errs293 === errors;valid118 = _valid26;}if(!valid118){const err279 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}const _errs298 = errors;let valid121 = true;const _errs299 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.type === undefined) && ("type")){const err280 = {};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}else {if(data98.type !== undefined){if(!equal(data98.type, "camunda:out")){const err281 = {};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}}}}var _valid28 = _errs299 === errors;errors = _errs298;if(vErrors !== null){if(_errs298){vErrors.length = _errs298;}else {vErrors = null;}}if(_valid28){const _errs301 = errors;const _errs302 = errors;let valid123 = false;let passing4 = null;const _errs303 = errors;const _errs304 = errors;const _errs305 = errors;const _errs306 = errors;let valid125 = false;const _errs307 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.source === undefined) && ("source")){const err282 = {};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}}var _valid30 = _errs307 === errors;valid125 = valid125 || _valid30;if(!valid125){const _errs308 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.sourceExpression === undefined) && ("sourceExpression")){const err283 = {};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}}var _valid30 = _errs308 === errors;valid125 = valid125 || _valid30;}if(!valid125){const err284 = {};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}else {errors = _errs306;if(vErrors !== null){if(_errs306){vErrors.length = _errs306;}else {vErrors = null;}}}var valid124 = _errs305 === errors;if(!valid124){errors = _errs304;if(vErrors !== null){if(_errs304){vErrors.length = _errs304;}else {vErrors = null;}}}else {const err285 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err285];}else {vErrors.push(err285);}errors++;}if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.variables === undefined){const err286 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err286];}else {vErrors.push(err286);}errors++;}}var _valid29 = _errs303 === errors;if(_valid29){valid123 = true;passing4 = 0;}const _errs309 = errors;const _errs310 = errors;const _errs311 = errors;const _errs312 = errors;let valid127 = false;const _errs313 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.variables === undefined) && ("variables")){const err287 = {};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}}var _valid31 = _errs313 === errors;valid127 = valid127 || _valid31;if(!valid127){const _errs314 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.sourceExpression === undefined) && ("sourceExpression")){const err288 = {};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}}var _valid31 = _errs314 === errors;valid127 = valid127 || _valid31;}if(!valid127){const err289 = {};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}else {errors = _errs312;if(vErrors !== null){if(_errs312){vErrors.length = _errs312;}else {vErrors = null;}}}var valid126 = _errs311 === errors;if(!valid126){errors = _errs310;if(vErrors !== null){if(_errs310){vErrors.length = _errs310;}else {vErrors = null;}}}else {const err290 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err290];}else {vErrors.push(err290);}errors++;}if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.source === undefined){const err291 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err291];}else {vErrors.push(err291);}errors++;}}var _valid29 = _errs309 === errors;if(_valid29 && valid123){valid123 = false;passing4 = [passing4, 1];}else {if(_valid29){valid123 = true;passing4 = 1;}const _errs315 = errors;const _errs316 = errors;const _errs317 = errors;const _errs318 = errors;let valid129 = false;const _errs319 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.variables === undefined) && ("variables")){const err292 = {};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}}var _valid32 = _errs319 === errors;valid129 = valid129 || _valid32;if(!valid129){const _errs320 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.source === undefined) && ("source")){const err293 = {};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}}var _valid32 = _errs320 === errors;valid129 = valid129 || _valid32;}if(!valid129){const err294 = {};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}else {errors = _errs318;if(vErrors !== null){if(_errs318){vErrors.length = _errs318;}else {vErrors = null;}}}var valid128 = _errs317 === errors;if(!valid128){errors = _errs316;if(vErrors !== null){if(_errs316){vErrors.length = _errs316;}else {vErrors = null;}}}else {const err295 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err295];}else {vErrors.push(err295);}errors++;}if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.sourceExpression === undefined){const err296 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err296];}else {vErrors.push(err296);}errors++;}}var _valid29 = _errs315 === errors;if(_valid29 && valid123){valid123 = false;passing4 = [passing4, 2];}else {if(_valid29){valid123 = true;passing4 = 2;}const _errs321 = errors;const _errs322 = errors;const _errs323 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.source === undefined) && ("source")){const err297 = {};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}}var valid130 = _errs323 === errors;if(!valid130){errors = _errs322;if(vErrors !== null){if(_errs322){vErrors.length = _errs322;}else {vErrors = null;}}}else {const err298 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err298];}else {vErrors.push(err298);}errors++;}if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.variables === undefined){const err299 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err299];}else {vErrors.push(err299);}errors++;}if(data98.sourceExpression === undefined){const err300 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err300];}else {vErrors.push(err300);}errors++;}}var _valid29 = _errs321 === errors;if(_valid29 && valid123){valid123 = false;passing4 = [passing4, 3];}else {if(_valid29){valid123 = true;passing4 = 3;}const _errs324 = errors;const _errs325 = errors;const _errs326 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.sourceExpression === undefined) && ("sourceExpression")){const err301 = {};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}}var valid131 = _errs326 === errors;if(!valid131){errors = _errs325;if(vErrors !== null){if(_errs325){vErrors.length = _errs325;}else {vErrors = null;}}}else {const err302 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err302];}else {vErrors.push(err302);}errors++;}if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.variables === undefined){const err303 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err303];}else {vErrors.push(err303);}errors++;}if(data98.source === undefined){const err304 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err304];}else {vErrors.push(err304);}errors++;}}var _valid29 = _errs324 === errors;if(_valid29 && valid123){valid123 = false;passing4 = [passing4, 4];}else {if(_valid29){valid123 = true;passing4 = 4;}}}}}if(!valid123){const err305 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas: passing4},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}else {errors = _errs302;if(vErrors !== null){if(_errs302){vErrors.length = _errs302;}else {vErrors = null;}}}if(errors > 0){const emErrs50 = [];for(const err306 of vErrors){if(((((err306.keyword !== "errorMessage") && (!err306.emUsed)) && ((err306.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err306.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err306.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err306.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err306.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs50.push(err306);err306.emUsed = true;}}if(emErrs50.length){const err307 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors: emErrs50},message:"property.binding " + JSON.stringify(data98 && data98.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}const emErrs51 = [];for(const err308 of vErrors){if(!err308.emUsed){emErrs51.push(err308);}}vErrors = emErrs51;errors = emErrs51.length;}var _valid28 = _errs301 === errors;valid121 = _valid28;}if(!valid121){const err309 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}const _errs328 = errors;let valid132 = true;const _errs329 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.type === undefined) && ("type")){const err310 = {};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}else {if(data98.type !== undefined){if(!equal(data98.type, "camunda:errorEventDefinition")){const err311 = {};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}}}}var _valid33 = _errs329 === errors;errors = _errs328;if(vErrors !== null){if(_errs328){vErrors.length = _errs328;}else {vErrors = null;}}if(_valid33){const _errs331 = errors;const _errs332 = errors;let valid134 = false;let passing5 = null;const _errs333 = errors;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.errorRef === undefined){const err312 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err312];}else {vErrors.push(err312);}errors++;}}var _valid34 = _errs333 === errors;if(_valid34){valid134 = true;passing5 = 0;}if(!valid134){const err313 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas: passing5},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}else {errors = _errs332;if(vErrors !== null){if(_errs332){vErrors.length = _errs332;}else {vErrors = null;}}}if(errors > 0){const emErrs52 = [];for(const err314 of vErrors){if(((((err314.keyword !== "errorMessage") && (!err314.emUsed)) && ((err314.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err314.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err314.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err314.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err314.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs52.push(err314);err314.emUsed = true;}}if(emErrs52.length){const err315 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors: emErrs52},message:"property.binding " + JSON.stringify(data98 && data98.type) + " requires errorRef"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}const emErrs53 = [];for(const err316 of vErrors){if(!err316.emUsed){emErrs53.push(err316);}}vErrors = emErrs53;errors = emErrs53.length;}var _valid33 = _errs331 === errors;valid132 = _valid33;}if(!valid132){const err317 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if(data98.type === undefined){const err318 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}if(data98.type !== undefined){let data104 = data98.type;if(typeof data104 !== "string"){const err319 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}if(!((((((((((data104 === "property") || (data104 === "camunda:property")) || (data104 === "camunda:inputParameter")) || (data104 === "camunda:outputParameter")) || (data104 === "camunda:in")) || (data104 === "camunda:out")) || (data104 === "camunda:in:businessKey")) || (data104 === "camunda:executionListener")) || (data104 === "camunda:field")) || (data104 === "camunda:errorEventDefinition"))){const err320 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema20.items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}if(errors > 0){const emErrs54 = [];for(const err321 of vErrors){if(((((err321.keyword !== "errorMessage") && (!err321.emUsed)) && ((err321.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type") || ((err321.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type") === 0) && (err321.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type".length] === "/")))) && (err321.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err321.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs54.push(err321);err321.emUsed = true;}}if(emErrs54.length){const err322 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs54},message:"invalid property.binding type " + JSON.stringify(data104) + "; 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 = [err322];}else {vErrors.push(err322);}errors++;}const emErrs55 = [];for(const err323 of vErrors){if(!err323.emUsed){emErrs55.push(err323);}}vErrors = emErrs55;errors = emErrs55.length;}}if(data98.name !== undefined){if(typeof data98.name !== "string"){const err324 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}}if(data98.event !== undefined){if(typeof data98.event !== "string"){const err325 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}}if(data98.scriptFormat !== undefined){if(typeof data98.scriptFormat !== "string"){const err326 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}}if(data98.source !== undefined){if(typeof data98.source !== "string"){const err327 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}}if(data98.target !== undefined){if(typeof data98.target !== "string"){const err328 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}}if(data98.expression !== undefined){if(typeof data98.expression !== "boolean"){const err329 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}}if(data98.variables !== undefined){let data111 = data98.variables;if(typeof data111 !== "string"){const err330 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}if(!((data111 === "all") || (data111 === "local"))){const err331 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/enum",params:{allowedValues: schema20.items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}}if(data98.sourceExpression !== undefined){if(typeof data98.sourceExpression !== "string"){const err332 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}}}else {const err333 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}}}else {const err334 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}if(errors > 0){const emErrors4 = {"required":{"binding":[]}};const templates4 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i8) + "\""}}};let emPropParams3;let emParamsErrors3;for(const err335 of vErrors){if((((((err335.keyword !== "errorMessage") && (!err335.emUsed)) && (err335.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8)) && (err335.keyword in emErrors4)) && (err335.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err335.schemaPath.slice(38)))){emPropParams3 = obj0$1[err335.keyword];emParamsErrors3 = emErrors4[err335.keyword][err335.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err335);err335.emUsed = true;}}}for(const key4 in emErrors4){for(const keyProp3 in emErrors4[key4]){emParamsErrors3 = emErrors4[key4][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates4[key4] && templates4[key4][keyProp3];const err336 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema20.items.errorMessage[key4][keyProp3]};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}}}const emErrs56 = [];for(const err337 of vErrors){if(!err337.emUsed){emErrs56.push(err337);}}vErrors = emErrs56;errors = emErrs56.length;}}}else {const err338 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}}}else {const err339 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}if(errors > 0){const emErrors5 = {"required":{"type":[],"properties":[]}};const templates5 = {required:{properties:function(){return "invalid scope " + JSON.stringify(data62 && data62.type) + ", missing properties=[]"}}};let emPropParams4;let emParamsErrors4;for(const err340 of vErrors){if((((((err340.keyword !== "errorMessage") && (!err340.emUsed)) && (err340.dataPath === dataPath+"/scopes/" + i5)) && (err340.keyword in emErrors5)) && (err340.schemaPath.indexOf("#/properties/scopes/items") === 0)) && (/^\/[^\/]*$/.test(err340.schemaPath.slice(25)))){emPropParams4 = obj0$1[err340.keyword];emParamsErrors4 = emErrors5[err340.keyword][err340.params[emPropParams4]];if(emParamsErrors4){emParamsErrors4.push(err340);err340.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp4 in emErrors5[key5]){emParamsErrors4 = emErrors5[key5][keyProp4];if(emParamsErrors4.length){const tmpl4 = templates5[key5] && templates5[key5][keyProp4];const err341 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/errorMessage",params:{errors: emParamsErrors4},message:tmpl4 ? tmpl4() : schema17$1.properties.scopes.items.errorMessage[key5][keyProp4]};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}}}const emErrs57 = [];for(const err342 of vErrors){if(!err342.emUsed){emErrs57.push(err342);}}vErrors = emErrs57;errors = emErrs57.length;}}}else {const err343 = {keyword:"type",dataPath:dataPath+"/scopes",schemaPath:"#/properties/scopes/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}}}else {const err344 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}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;}
|
|
64467
|
+
var standaloneValidator = validate14$1;var _default$1 = 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":"number","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."},"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]+$","errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}]}},"elementType":{"$id":"#/elementType","type":"object","description":"The BPMN type the element will be transformed into.","default":{},"required":["value"],"errorMessage":{"required":{"value":"missing elementType value"}},"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""},"allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}]}}},"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"],"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}},"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"}}}},"documentationRef":{"$id":"#/documentaionRef","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"],"errorMessage":{"required":{"type":"invalid scope, missing type","properties":"invalid scope ${0/type}, missing properties=[]"}},"allOf":[{"if":{"properties":{"type":{"enum":["bpmn:Error"]}},"required":["type"]},"then":{"required":["id"],"errorMessage":"invalid scope ${0/type}, missing id"}}]}}}};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":{"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."}},"required":["value","name"],"errorMessage":"{ 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."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}},"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\""}}}},{"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"],"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 }","description":"The type of a property binding."},"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)."}}}}}}]};const schema19 = {"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":{"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."}},"required":["value","name"],"errorMessage":"{ 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."}}}};const schema20 = {"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}},"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\""}}}},{"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"],"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 }","description":"The type of a property binding."},"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)."}}}}}};const pattern0$1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern2$1 = new RegExp("^(https|http)://.*", "u");const obj0$1 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};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){if(!(typeof data.version == "number")){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "number"},message:"should be number"};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.appliesTo !== undefined){let data5 = data.appliesTo;if(Array.isArray(data5)){const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];if(typeof data6 === "string"){if(!pattern0$1.test(data6)){const err9 = {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 = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err11 of vErrors){if((((((err11.keyword !== "errorMessage") && (!err11.emUsed)) && (err11.dataPath === dataPath+"/appliesTo/" + i0)) && (err11.keyword in emErrors0)) && (err11.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err11.schemaPath.slice(36)))){emErrors0[err11.keyword].push(err11);err11.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err12 = {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 = [err12];}else {vErrors.push(err12);}errors++;}}const emErrs0 = [];for(const err13 of vErrors){if(!err13.emUsed){emErrs0.push(err13);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.elementType !== undefined){let data7 = data.elementType;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.value === undefined){const err15 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data7.value !== undefined){let data8 = data7.value;if(typeof data8 === "string"){if(!pattern0$1.test(data8)){const err16 = {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 = [err16];}else {vErrors.push(err16);}errors++;}}else {const err17 = {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 = [err17];}else {vErrors.push(err17);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err18 of vErrors){if((((((err18.keyword !== "errorMessage") && (!err18.emUsed)) && (err18.dataPath === dataPath+"/elementType/value")) && (err18.keyword in emErrors1)) && (err18.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err18.schemaPath.slice(49)))){emErrors1[err18.keyword].push(err18);err18.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err19 = {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 = [err19];}else {vErrors.push(err19);}errors++;}}const emErrs1 = [];for(const err20 of vErrors){if(!err20.emUsed){emErrs1.push(err20);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err21 = {keyword:"type",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.dataPath === dataPath+"/elementType")) && (err22.keyword in emErrors2)) && (err22.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(32)))){emPropParams0 = obj0$1[err22.keyword];emParamsErrors0 = emErrors2[err22.keyword][err22.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err22);err22.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 err23 = {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 = [err23];}else {vErrors.push(err23);}errors++;}}}const emErrs2 = [];for(const err24 of vErrors){if(!err24.emUsed){emErrs2.push(err24);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data9 = data.metadata;if(!(data9 && typeof data9 == "object" && !Array.isArray(data9))){const err25 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err26 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data.groups !== undefined){let data11 = data.groups;if(Array.isArray(data11)){const len1 = data11.length;for(let i1=0; i1<len1; i1++){let data12 = data11[i1];if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if(data12.id === undefined){const err27 = {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 = [err27];}else {vErrors.push(err27);}errors++;}if(data12.label === undefined){const err28 = {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 = [err28];}else {vErrors.push(err28);}errors++;}if(data12.id !== undefined){if(typeof data12.id !== "string"){const err29 = {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 = [err29];}else {vErrors.push(err29);}errors++;}}if(data12.label !== undefined){if(typeof data12.label !== "string"){const err30 = {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 = [err30];}else {vErrors.push(err30);}errors++;}}}else {const err31 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}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 err32 of vErrors){if((((((err32.keyword !== "errorMessage") && (!err32.emUsed)) && (err32.dataPath === dataPath+"/groups/" + i1)) && (err32.keyword in emErrors3)) && (err32.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err32.schemaPath.slice(33)))){emPropParams1 = obj0$1[err32.keyword];emParamsErrors1 = emErrors3[err32.keyword][err32.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err32);err32.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 err33 = {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 = [err33];}else {vErrors.push(err33);}errors++;}}}const emErrs3 = [];for(const err34 of vErrors){if(!err34.emUsed){emErrs3.push(err34);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err35 = {keyword:"type",dataPath:dataPath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data.documentationRef !== undefined){let data15 = data.documentationRef;if(typeof data15 === "string"){if(!pattern2$1.test(data15)){const err36 = {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 = [err36];}else {vErrors.push(err36);}errors++;}}else {const err37 = {keyword:"type",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err38 of vErrors){if((((((err38.keyword !== "errorMessage") && (!err38.emUsed)) && (err38.dataPath === dataPath+"/documentationRef")) && (err38.keyword in emErrors4)) && (err38.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err38.schemaPath.slice(37)))){emErrors4[err38.keyword].push(err38);err38.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err39 = {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 = [err39];}else {vErrors.push(err39);}errors++;}}const emErrs4 = [];for(const err40 of vErrors){if(!err40.emUsed){emErrs4.push(err40);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err41 of vErrors){if((((((err41.keyword !== "errorMessage") && (!err41.emUsed)) && (err41.dataPath === dataPath)) && (err41.keyword in emErrors5)) && (err41.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err41.schemaPath.slice(9)))){emPropParams2 = obj0$1[err41.keyword];emParamsErrors2 = emErrors5[err41.keyword][err41.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err41);err41.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 err42 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17$1.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}}const emErrs5 = [];for(const err43 of vErrors){if(!err43.emUsed){emErrs5.push(err43);}}vErrors = emErrs5;errors = emErrs5.length;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data16 = data.properties;if(Array.isArray(data16)){const len2 = data16.length;for(let i2=0; i2<len2; i2++){let data17 = data16[i2];const _errs41 = errors;let valid18 = true;const _errs42 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if((data17.type === undefined) && ("type")){const err44 = {};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}else {if(data17.type !== undefined){if(!equal(data17.type, "Dropdown")){const err45 = {};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}}var _valid0 = _errs42 === errors;errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}if(_valid0){const _errs44 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.choices === undefined){const err46 = {keyword:"required",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}if(errors > 0){const emErrs6 = [];for(const err47 of vErrors){if(((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && ((err47.dataPath === dataPath+"/properties/" + i2) || ((err47.dataPath.indexOf(dataPath+"/properties/" + i2) === 0) && (err47.dataPath[dataPath+"/properties/" + i2.length] === "/")))) && (err47.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then") === 0)) && (err47.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length] === "/")){emErrs6.push(err47);err47.emUsed = true;}}if(emErrs6.length){const err48 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs6},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}const emErrs7 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs7.push(err49);}}vErrors = emErrs7;errors = emErrs7.length;}var _valid0 = _errs44 === errors;valid18 = _valid0;}if(!valid18){const err50 = {keyword:"if",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){let data19 = data17.value;if((typeof data19 !== "string") && (typeof data19 !== "boolean")){const err51 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/value",schemaPath:"#/definitions/properties/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 = [err51];}else {vErrors.push(err51);}errors++;}}if(data17.description !== undefined){if(typeof data17.description !== "string"){const err52 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data17.label !== undefined){if(typeof data17.label !== "string"){const err53 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}if(data17.type !== undefined){if(typeof data17.type !== "string"){const err54 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data17.editable !== undefined){if(typeof data17.editable !== "boolean"){const err55 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data17.choices !== undefined){let data24 = data17.choices;if(Array.isArray(data24)){const len3 = data24.length;for(let i3=0; i3<len3; i3++){let data25 = data24[i3];if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.value === undefined){const err56 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data25.name === undefined){const err57 = {keyword:"required",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(data25.name !== undefined){if(typeof data25.name !== "string"){const err58 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data25.value !== undefined){if(typeof data25.value !== "string"){const err59 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}}else {const err60 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(errors > 0){const emErrs8 = [];for(const err61 of vErrors){if(((((err61.keyword !== "errorMessage") && (!err61.emUsed)) && ((err61.dataPath === dataPath+"/properties/" + i2+"/choices/" + i3) || ((err61.dataPath.indexOf(dataPath+"/properties/" + i2+"/choices/" + i3) === 0) && (err61.dataPath[dataPath+"/properties/" + i2+"/choices/" + i3.length] === "/")))) && (err61.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items") === 0)) && (err61.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length] === "/")){emErrs8.push(err61);err61.emUsed = true;}}if(emErrs8.length){const err62 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i2+"/choices/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrs8},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}const emErrs9 = [];for(const err63 of vErrors){if(!err63.emUsed){emErrs9.push(err63);}}vErrors = emErrs9;errors = emErrs9.length;}}}else {const err64 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data17.constraints !== undefined){let data28 = data17.constraints;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.notEmpty !== undefined){if(typeof data28.notEmpty !== "boolean"){const err65 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data28.minLength !== undefined){if(!(typeof data28.minLength == "number")){const err66 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data28.maxLength !== undefined){if(!(typeof data28.maxLength == "number")){const err67 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data28.pattern !== undefined){let data32 = data28.pattern;const _errs72 = errors;let valid26 = false;let passing0 = null;const _errs73 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.value !== undefined){if(typeof data32.value !== "string"){const err68 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data32.message !== undefined){if(typeof data32.message !== "string"){const err69 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}}else {const err70 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}var _valid1 = _errs73 === errors;if(_valid1){valid26 = true;passing0 = 0;}const _errs79 = errors;if(typeof data32 !== "string"){const err71 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}var _valid1 = _errs79 === errors;if(_valid1 && valid26){valid26 = false;passing0 = [passing0, 1];}else {if(_valid1){valid26 = true;passing0 = 1;}}if(!valid26){const err72 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i2+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}else {errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}}}}else {const err73 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data17.group !== undefined){if(typeof data17.group !== "string"){const err74 = {keyword:"type",dataPath:dataPath+"/properties/" + i2+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}}else {const err75 = {keyword:"type",dataPath:dataPath+"/properties/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}else {const err76 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(Array.isArray(data16)){const len4 = data16.length;for(let i4=0; i4<len4; i4++){let data36 = data16[i4];const _errs88 = errors;let valid31 = true;const _errs89 = 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 data37 = data36.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {if(data37.type !== undefined){if(!equal(data37.type, "property")){const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}}}}}var _valid2 = _errs89 === errors;errors = _errs88;if(vErrors !== null){if(_errs88){vErrors.length = _errs88;}else {vErrors = null;}}if(_valid2){const _errs92 = 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 err80 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err80];}else {vErrors.push(err80);}errors++;}if(errors > 0){const emErrs10 = [];for(const err81 of vErrors){if(((((err81.keyword !== "errorMessage") && (!err81.emUsed)) && ((err81.dataPath === dataPath+"/properties/" + i4+"/type") || ((err81.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err81.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err81.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err81.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs10.push(err81);err81.emUsed = true;}}if(emErrs10.length){const err82 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs10},message:"invalid property type " + JSON.stringify(data39) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}const emErrs11 = [];for(const err83 of vErrors){if(!err83.emUsed){emErrs11.push(err83);}}vErrors = emErrs11;errors = emErrs11.length;}}}var _valid2 = _errs92 === errors;valid31 = _valid2;}if(!valid31){const err84 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}const _errs95 = errors;let valid35 = true;const _errs96 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err85 = {};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}else {if(data36.binding !== undefined){let data40 = data36.binding;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.type === undefined) && ("type")){const err86 = {};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}else {if(data40.type !== undefined){if(!equal(data40.type, "camunda:executionListener")){const err87 = {};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}}}}}}var _valid3 = _errs96 === errors;errors = _errs95;if(vErrors !== null){if(_errs95){vErrors.length = _errs95;}else {vErrors = null;}}if(_valid3){const _errs99 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){if(!(data36.type === "Hidden")){const err88 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err88];}else {vErrors.push(err88);}errors++;}if(errors > 0){const emErrs12 = [];for(const err89 of vErrors){if(((((err89.keyword !== "errorMessage") && (!err89.emUsed)) && ((err89.dataPath === dataPath+"/properties/" + i4+"/type") || ((err89.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err89.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err89.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err89.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs12.push(err89);err89.emUsed = true;}}if(emErrs12.length){const err90 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs12},message:"invalid property type " + JSON.stringify(data36 && data36.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}const emErrs13 = [];for(const err91 of vErrors){if(!err91.emUsed){emErrs13.push(err91);}}vErrors = emErrs13;errors = emErrs13.length;}}}var _valid3 = _errs99 === errors;valid35 = _valid3;}if(!valid35){const err92 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}const _errs102 = errors;let valid39 = true;const _errs103 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {if(data36.binding !== undefined){let data43 = data36.binding;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.type === undefined) && ("type")){const err94 = {};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}else {if(data43.type !== undefined){let data44 = data43.type;if(!((((((data44 === "camunda:property") || (data44 === "camunda:outputParameter")) || (data44 === "camunda:in")) || (data44 === "camunda:in:businessKey")) || (data44 === "camunda:out")) || (data44 === "camunda:errorEventDefinition"))){const err95 = {};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}}}}}}var _valid4 = _errs103 === errors;errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}if(_valid4){const _errs106 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data45 = data36.type;if(!(((data45 === "String") || (data45 === "Hidden")) || (data45 === "Dropdown"))){const err96 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err96];}else {vErrors.push(err96);}errors++;}if(errors > 0){const emErrs14 = [];for(const err97 of vErrors){if(((((err97.keyword !== "errorMessage") && (!err97.emUsed)) && ((err97.dataPath === dataPath+"/properties/" + i4+"/type") || ((err97.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err97.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err97.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err97.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs14.push(err97);err97.emUsed = true;}}if(emErrs14.length){const err98 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors: emErrs14},message:"invalid property type " + JSON.stringify(data45) + " for binding type " + JSON.stringify(data36 && data36.binding && data36.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}const emErrs15 = [];for(const err99 of vErrors){if(!err99.emUsed){emErrs15.push(err99);}}vErrors = emErrs15;errors = emErrs15.length;}}}var _valid4 = _errs106 === errors;valid39 = _valid4;}if(!valid39){const err100 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}const _errs109 = errors;let valid43 = true;const _errs110 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {if(data36.binding !== undefined){let data46 = data36.binding;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}else {if(data46.type !== undefined){let data47 = data46.type;if(!((data47 === "camunda:inputParameter") || (data47 === "camunda:field"))){const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}}}}}var _valid5 = _errs110 === errors;errors = _errs109;if(vErrors !== null){if(_errs109){vErrors.length = _errs109;}else {vErrors = null;}}if(_valid5){const _errs113 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data48 = data36.type;if(!((((data48 === "String") || (data48 === "Text")) || (data48 === "Hidden")) || (data48 === "Dropdown"))){const err104 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/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 = [err104];}else {vErrors.push(err104);}errors++;}if(errors > 0){const emErrs16 = [];for(const err105 of vErrors){if(((((err105.keyword !== "errorMessage") && (!err105.emUsed)) && ((err105.dataPath === dataPath+"/properties/" + i4+"/type") || ((err105.dataPath.indexOf(dataPath+"/properties/" + i4+"/type") === 0) && (err105.dataPath[dataPath+"/properties/" + i4+"/type".length] === "/")))) && (err105.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err105.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs16.push(err105);err105.emUsed = true;}}if(emErrs16.length){const err106 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors: emErrs16},message:"invalid property type " + JSON.stringify(data48) + " for binding type " + JSON.stringify(data36 && data36.binding && data36.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}const emErrs17 = [];for(const err107 of vErrors){if(!err107.emUsed){emErrs17.push(err107);}}vErrors = emErrs17;errors = emErrs17.length;}}}var _valid5 = _errs113 === errors;valid43 = _valid5;}if(!valid43){const err108 = {keyword:"if",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding === undefined){const err109 = {keyword:"required",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(data36.binding !== undefined){let data49 = data36.binding;const _errs118 = errors;let valid49 = true;const _errs119 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.type === undefined) && ("type")){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}else {if(data49.type !== undefined){let data50 = data49.type;if(!((((data50 === "property") || (data50 === "camunda:property")) || (data50 === "camunda:inputParameter")) || (data50 === "camunda:field"))){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}}}var _valid6 = _errs119 === errors;errors = _errs118;if(vErrors !== null){if(_errs118){vErrors.length = _errs118;}else {vErrors = null;}}if(_valid6){const _errs121 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.name === undefined){const err112 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err112];}else {vErrors.push(err112);}errors++;}}if(errors > 0){const emErrs18 = [];for(const err113 of vErrors){if(((((err113.keyword !== "errorMessage") && (!err113.emUsed)) && ((err113.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err113.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err113.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err113.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err113.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs18.push(err113);err113.emUsed = true;}}if(emErrs18.length){const err114 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs18},message:"property.binding " + JSON.stringify(data49 && data49.type) + " requires name"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}const emErrs19 = [];for(const err115 of vErrors){if(!err115.emUsed){emErrs19.push(err115);}}vErrors = emErrs19;errors = emErrs19.length;}var _valid6 = _errs121 === errors;valid49 = _valid6;}if(!valid49){const err116 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}const _errs123 = errors;let valid51 = true;const _errs124 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.type === undefined) && ("type")){const err117 = {};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}else {if(data49.type !== undefined){if(!equal(data49.type, "camunda:outputParameter")){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}}}var _valid7 = _errs124 === errors;errors = _errs123;if(vErrors !== null){if(_errs123){vErrors.length = _errs123;}else {vErrors = null;}}if(_valid7){const _errs126 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.source === undefined){const err119 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err119];}else {vErrors.push(err119);}errors++;}}if(errors > 0){const emErrs20 = [];for(const err120 of vErrors){if(((((err120.keyword !== "errorMessage") && (!err120.emUsed)) && ((err120.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err120.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err120.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err120.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err120.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs20.push(err120);err120.emUsed = true;}}if(emErrs20.length){const err121 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs20},message:"property.binding " + JSON.stringify(data49 && data49.type) + " requires source"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}const emErrs21 = [];for(const err122 of vErrors){if(!err122.emUsed){emErrs21.push(err122);}}vErrors = emErrs21;errors = emErrs21.length;}var _valid7 = _errs126 === errors;valid51 = _valid7;}if(!valid51){const err123 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}const _errs128 = errors;let valid53 = true;const _errs129 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.type === undefined) && ("type")){const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}else {if(data49.type !== undefined){if(!equal(data49.type, "camunda:in")){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}}}var _valid8 = _errs129 === errors;errors = _errs128;if(vErrors !== null){if(_errs128){vErrors.length = _errs128;}else {vErrors = null;}}if(_valid8){const _errs131 = errors;const _errs132 = errors;let valid55 = false;const _errs133 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.variables === undefined){const err126 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err126];}else {vErrors.push(err126);}errors++;}}var _valid9 = _errs133 === errors;valid55 = valid55 || _valid9;if(!valid55){const _errs134 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.target === undefined){const err127 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err127];}else {vErrors.push(err127);}errors++;}}var _valid9 = _errs134 === errors;valid55 = valid55 || _valid9;}if(!valid55){const err128 = {keyword:"anyOf",dataPath:dataPath+"/properties/" + i4+"/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 = [err128];}else {vErrors.push(err128);}errors++;}else {errors = _errs132;if(vErrors !== null){if(_errs132){vErrors.length = _errs132;}else {vErrors = null;}}}if(errors > 0){const emErrs22 = [];for(const err129 of vErrors){if(((((err129.keyword !== "errorMessage") && (!err129.emUsed)) && ((err129.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err129.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err129.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err129.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err129.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs22.push(err129);err129.emUsed = true;}}if(emErrs22.length){const err130 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs22},message:"property.binding " + JSON.stringify(data49 && data49.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}const emErrs23 = [];for(const err131 of vErrors){if(!err131.emUsed){emErrs23.push(err131);}}vErrors = emErrs23;errors = emErrs23.length;}var _valid8 = _errs131 === errors;valid53 = _valid8;}if(!valid53){const err132 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}const _errs136 = errors;let valid56 = true;const _errs137 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.type === undefined) && ("type")){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {if(data49.type !== undefined){if(!equal(data49.type, "camunda:out")){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}}}var _valid10 = _errs137 === errors;errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}if(_valid10){const _errs139 = errors;const _errs140 = errors;let valid58 = false;let passing1 = null;const _errs141 = errors;const _errs142 = errors;const _errs143 = errors;const _errs144 = errors;let valid60 = false;const _errs145 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.source === undefined) && ("source")){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}var _valid12 = _errs145 === errors;valid60 = valid60 || _valid12;if(!valid60){const _errs146 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.sourceExpression === undefined) && ("sourceExpression")){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}var _valid12 = _errs146 === errors;valid60 = valid60 || _valid12;}if(!valid60){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}else {errors = _errs144;if(vErrors !== null){if(_errs144){vErrors.length = _errs144;}else {vErrors = null;}}}var valid59 = _errs143 === errors;if(!valid59){errors = _errs142;if(vErrors !== null){if(_errs142){vErrors.length = _errs142;}else {vErrors = null;}}}else {const err138 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err138];}else {vErrors.push(err138);}errors++;}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.variables === undefined){const err139 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err139];}else {vErrors.push(err139);}errors++;}}var _valid11 = _errs141 === errors;if(_valid11){valid58 = true;passing1 = 0;}const _errs147 = errors;const _errs148 = errors;const _errs149 = errors;const _errs150 = errors;let valid62 = false;const _errs151 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.variables === undefined) && ("variables")){const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}var _valid13 = _errs151 === errors;valid62 = valid62 || _valid13;if(!valid62){const _errs152 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.sourceExpression === undefined) && ("sourceExpression")){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}var _valid13 = _errs152 === errors;valid62 = valid62 || _valid13;}if(!valid62){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}else {errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}}var valid61 = _errs149 === errors;if(!valid61){errors = _errs148;if(vErrors !== null){if(_errs148){vErrors.length = _errs148;}else {vErrors = null;}}}else {const err143 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err143];}else {vErrors.push(err143);}errors++;}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.source === undefined){const err144 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err144];}else {vErrors.push(err144);}errors++;}}var _valid11 = _errs147 === errors;if(_valid11 && valid58){valid58 = false;passing1 = [passing1, 1];}else {if(_valid11){valid58 = true;passing1 = 1;}const _errs153 = errors;const _errs154 = errors;const _errs155 = errors;const _errs156 = errors;let valid64 = false;const _errs157 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.variables === undefined) && ("variables")){const err145 = {};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}var _valid14 = _errs157 === errors;valid64 = valid64 || _valid14;if(!valid64){const _errs158 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.source === undefined) && ("source")){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}var _valid14 = _errs158 === errors;valid64 = valid64 || _valid14;}if(!valid64){const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}else {errors = _errs156;if(vErrors !== null){if(_errs156){vErrors.length = _errs156;}else {vErrors = null;}}}var valid63 = _errs155 === errors;if(!valid63){errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}}else {const err148 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err148];}else {vErrors.push(err148);}errors++;}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.sourceExpression === undefined){const err149 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err149];}else {vErrors.push(err149);}errors++;}}var _valid11 = _errs153 === errors;if(_valid11 && valid58){valid58 = false;passing1 = [passing1, 2];}else {if(_valid11){valid58 = true;passing1 = 2;}const _errs159 = errors;const _errs160 = errors;const _errs161 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.source === undefined) && ("source")){const err150 = {};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}var valid65 = _errs161 === errors;if(!valid65){errors = _errs160;if(vErrors !== null){if(_errs160){vErrors.length = _errs160;}else {vErrors = null;}}}else {const err151 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err151];}else {vErrors.push(err151);}errors++;}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.variables === undefined){const err152 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err152];}else {vErrors.push(err152);}errors++;}if(data49.sourceExpression === undefined){const err153 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err153];}else {vErrors.push(err153);}errors++;}}var _valid11 = _errs159 === errors;if(_valid11 && valid58){valid58 = false;passing1 = [passing1, 3];}else {if(_valid11){valid58 = true;passing1 = 3;}const _errs162 = errors;const _errs163 = errors;const _errs164 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.sourceExpression === undefined) && ("sourceExpression")){const err154 = {};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}var valid66 = _errs164 === errors;if(!valid66){errors = _errs163;if(vErrors !== null){if(_errs163){vErrors.length = _errs163;}else {vErrors = null;}}}else {const err155 = {keyword:"not",dataPath:dataPath+"/properties/" + i4+"/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 = [err155];}else {vErrors.push(err155);}errors++;}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.variables === undefined){const err156 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err156];}else {vErrors.push(err156);}errors++;}if(data49.source === undefined){const err157 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err157];}else {vErrors.push(err157);}errors++;}}var _valid11 = _errs162 === errors;if(_valid11 && valid58){valid58 = false;passing1 = [passing1, 4];}else {if(_valid11){valid58 = true;passing1 = 4;}}}}}if(!valid58){const err158 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i4+"/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 = [err158];}else {vErrors.push(err158);}errors++;}else {errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}}if(errors > 0){const emErrs24 = [];for(const err159 of vErrors){if(((((err159.keyword !== "errorMessage") && (!err159.emUsed)) && ((err159.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err159.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err159.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err159.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err159.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs24.push(err159);err159.emUsed = true;}}if(emErrs24.length){const err160 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors: emErrs24},message:"property.binding " + JSON.stringify(data49 && data49.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}const emErrs25 = [];for(const err161 of vErrors){if(!err161.emUsed){emErrs25.push(err161);}}vErrors = emErrs25;errors = emErrs25.length;}var _valid10 = _errs139 === errors;valid56 = _valid10;}if(!valid56){const err162 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}const _errs166 = errors;let valid67 = true;const _errs167 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.type === undefined) && ("type")){const err163 = {};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}else {if(data49.type !== undefined){if(!equal(data49.type, "camunda:errorEventDefinition")){const err164 = {};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}}}var _valid15 = _errs167 === errors;errors = _errs166;if(vErrors !== null){if(_errs166){vErrors.length = _errs166;}else {vErrors = null;}}if(_valid15){const _errs169 = errors;const _errs170 = errors;let valid69 = false;let passing2 = null;const _errs171 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.errorRef === undefined){const err165 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/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 = [err165];}else {vErrors.push(err165);}errors++;}}var _valid16 = _errs171 === errors;if(_valid16){valid69 = true;passing2 = 0;}if(!valid69){const err166 = {keyword:"oneOf",dataPath:dataPath+"/properties/" + i4+"/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 = [err166];}else {vErrors.push(err166);}errors++;}else {errors = _errs170;if(vErrors !== null){if(_errs170){vErrors.length = _errs170;}else {vErrors = null;}}}if(errors > 0){const emErrs26 = [];for(const err167 of vErrors){if(((((err167.keyword !== "errorMessage") && (!err167.emUsed)) && ((err167.dataPath === dataPath+"/properties/" + i4+"/binding") || ((err167.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding") === 0) && (err167.dataPath[dataPath+"/properties/" + i4+"/binding".length] === "/")))) && (err167.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err167.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs26.push(err167);err167.emUsed = true;}}if(emErrs26.length){const err168 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors: emErrs26},message:"property.binding " + JSON.stringify(data49 && data49.type) + " requires errorRef"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}const emErrs27 = [];for(const err169 of vErrors){if(!err169.emUsed){emErrs27.push(err169);}}vErrors = emErrs27;errors = emErrs27.length;}var _valid15 = _errs169 === errors;valid67 = _valid15;}if(!valid67){const err170 = {keyword:"if",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.type === undefined){const err171 = {keyword:"required",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}if(data49.type !== undefined){let data55 = data49.type;if(typeof data55 !== "string"){const err172 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}if(!((((((((((data55 === "property") || (data55 === "camunda:property")) || (data55 === "camunda:inputParameter")) || (data55 === "camunda:outputParameter")) || (data55 === "camunda:in")) || (data55 === "camunda:out")) || (data55 === "camunda:in:businessKey")) || (data55 === "camunda:executionListener")) || (data55 === "camunda:field")) || (data55 === "camunda:errorEventDefinition"))){const err173 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/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 = [err173];}else {vErrors.push(err173);}errors++;}if(errors > 0){const emErrs28 = [];for(const err174 of vErrors){if(((((err174.keyword !== "errorMessage") && (!err174.emUsed)) && ((err174.dataPath === dataPath+"/properties/" + i4+"/binding/type") || ((err174.dataPath.indexOf(dataPath+"/properties/" + i4+"/binding/type") === 0) && (err174.dataPath[dataPath+"/properties/" + i4+"/binding/type".length] === "/")))) && (err174.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err174.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs28.push(err174);err174.emUsed = true;}}if(emErrs28.length){const err175 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs28},message:"invalid property.binding type " + JSON.stringify(data55) + "; 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 = [err175];}else {vErrors.push(err175);}errors++;}const emErrs29 = [];for(const err176 of vErrors){if(!err176.emUsed){emErrs29.push(err176);}}vErrors = emErrs29;errors = emErrs29.length;}}if(data49.name !== undefined){if(typeof data49.name !== "string"){const err177 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}if(data49.event !== undefined){if(typeof data49.event !== "string"){const err178 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data49.scriptFormat !== undefined){if(typeof data49.scriptFormat !== "string"){const err179 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(data49.source !== undefined){if(typeof data49.source !== "string"){const err180 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(data49.target !== undefined){if(typeof data49.target !== "string"){const err181 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}if(data49.expression !== undefined){if(typeof data49.expression !== "boolean"){const err182 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}if(data49.variables !== undefined){let data62 = data49.variables;if(typeof data62 !== "string"){const err183 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}if(!((data62 === "all") || (data62 === "local"))){const err184 = {keyword:"enum",dataPath:dataPath+"/properties/" + i4+"/binding/variables",schemaPath:"#/definitions/properties/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 = [err184];}else {vErrors.push(err184);}errors++;}}if(data49.sourceExpression !== undefined){if(typeof data49.sourceExpression !== "string"){const err185 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}}else {const err186 = {keyword:"type",dataPath:dataPath+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}}else {const err187 = {keyword:"type",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if(errors > 0){const emErrors6 = {"required":{"binding":[]}};const templates6 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i4) + "\""}}};let emPropParams3;let emParamsErrors3;for(const err188 of vErrors){if((((((err188.keyword !== "errorMessage") && (!err188.emUsed)) && (err188.dataPath === dataPath+"/properties/" + i4)) && (err188.keyword in emErrors6)) && (err188.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err188.schemaPath.slice(38)))){emPropParams3 = obj0$1[err188.keyword];emParamsErrors3 = emErrors6[err188.keyword][err188.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err188);err188.emUsed = true;}}}for(const key6 in emErrors6){for(const keyProp3 in emErrors6[key6]){emParamsErrors3 = emErrors6[key6][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates6[key6] && templates6[key6][keyProp3];const err189 = {keyword:"errorMessage",dataPath:dataPath+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema18$1.allOf[1].items.errorMessage[key6][keyProp3]};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}}const emErrs30 = [];for(const err190 of vErrors){if(!err190.emUsed){emErrs30.push(err190);}}vErrors = emErrs30;errors = emErrs30.length;}}}else {const err191 = {keyword:"type",dataPath:dataPath+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}if(data.scopes !== undefined){let data64 = data.scopes;if(Array.isArray(data64)){const len5 = data64.length;for(let i5=0; i5<len5; i5++){let data65 = data64[i5];const _errs195 = errors;let valid75 = true;const _errs196 = errors;if(data65 && typeof data65 == "object" && !Array.isArray(data65)){if((data65.type === undefined) && ("type")){const err192 = {};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}else {if(data65.type !== undefined){if(!(data65.type === "bpmn:Error")){const err193 = {};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}}}var _valid17 = _errs196 === errors;errors = _errs195;if(vErrors !== null){if(_errs195){vErrors.length = _errs195;}else {vErrors = null;}}if(_valid17){const _errs198 = errors;if(data65 && typeof data65 == "object" && !Array.isArray(data65)){if(data65.id === undefined){const err194 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/allOf/0/then/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}if(errors > 0){const emErrs31 = [];for(const err195 of vErrors){if(((((err195.keyword !== "errorMessage") && (!err195.emUsed)) && ((err195.dataPath === dataPath+"/scopes/" + i5) || ((err195.dataPath.indexOf(dataPath+"/scopes/" + i5) === 0) && (err195.dataPath[dataPath+"/scopes/" + i5.length] === "/")))) && (err195.schemaPath.indexOf("#/properties/scopes/items/allOf/0/then") === 0)) && (err195.schemaPath["#/properties/scopes/items/allOf/0/then".length] === "/")){emErrs31.push(err195);err195.emUsed = true;}}if(emErrs31.length){const err196 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/allOf/0/then/errorMessage",params:{errors: emErrs31},message:"invalid scope " + JSON.stringify(data65 && data65.type) + ", missing id"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}const emErrs32 = [];for(const err197 of vErrors){if(!err197.emUsed){emErrs32.push(err197);}}vErrors = emErrs32;errors = emErrs32.length;}var _valid17 = _errs198 === errors;valid75 = _valid17;}if(!valid75){const err198 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}if(data65 && typeof data65 == "object" && !Array.isArray(data65)){if(data65.type === undefined){const err199 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if(data65.properties === undefined){const err200 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}if(data65.type !== undefined){let data67 = data65.type;if(typeof data67 !== "string"){const err201 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/type",schemaPath:"#/properties/scopes/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}if(!((data67 === "camunda:Connector") || (data67 === "bpmn:Error"))){const err202 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/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 = [err202];}else {vErrors.push(err202);}errors++;}if(errors > 0){const emErrs33 = [];for(const err203 of vErrors){if(((((err203.keyword !== "errorMessage") && (!err203.emUsed)) && ((err203.dataPath === dataPath+"/scopes/" + i5+"/type") || ((err203.dataPath.indexOf(dataPath+"/scopes/" + i5+"/type") === 0) && (err203.dataPath[dataPath+"/scopes/" + i5+"/type".length] === "/")))) && (err203.schemaPath.indexOf("#/properties/scopes/items/properties/type") === 0)) && (err203.schemaPath["#/properties/scopes/items/properties/type".length] === "/")){emErrs33.push(err203);err203.emUsed = true;}}if(emErrs33.length){const err204 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/type",schemaPath:"#/properties/scopes/items/properties/type/errorMessage",params:{errors: emErrs33},message:"invalid scope type " + JSON.stringify(data67) + "; must be any of { camunda:Connector, bpmn:Error }"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}const emErrs34 = [];for(const err205 of vErrors){if(!err205.emUsed){emErrs34.push(err205);}}vErrors = emErrs34;errors = emErrs34.length;}}if(data65.properties !== undefined){let data68 = data65.properties;if(Array.isArray(data68)){const len6 = data68.length;for(let i6=0; i6<len6; i6++){let data69 = data68[i6];const _errs208 = errors;let valid84 = true;const _errs209 = errors;if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if((data69.type === undefined) && ("type")){const err206 = {};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}else {if(data69.type !== undefined){if(!equal(data69.type, "Dropdown")){const err207 = {};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}}}var _valid18 = _errs209 === errors;errors = _errs208;if(vErrors !== null){if(_errs208){vErrors.length = _errs208;}else {vErrors = null;}}if(_valid18){const _errs211 = errors;if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if(data69.choices === undefined){const err208 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}if(errors > 0){const emErrs35 = [];for(const err209 of vErrors){if(((((err209.keyword !== "errorMessage") && (!err209.emUsed)) && ((err209.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i6) || ((err209.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i6) === 0) && (err209.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i6.length] === "/")))) && (err209.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then") === 0)) && (err209.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length] === "/")){emErrs35.push(err209);err209.emUsed = true;}}if(emErrs35.length){const err210 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs35},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}const emErrs36 = [];for(const err211 of vErrors){if(!err211.emUsed){emErrs36.push(err211);}}vErrors = emErrs36;errors = emErrs36.length;}var _valid18 = _errs211 === errors;valid84 = _valid18;}if(!valid84){const err212 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if(data69.value !== undefined){let data71 = data69.value;if((typeof data71 !== "string") && (typeof data71 !== "boolean")){const err213 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",params:{type: schema19.items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}if(data69.description !== undefined){if(typeof data69.description !== "string"){const err214 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}if(data69.label !== undefined){if(typeof data69.label !== "string"){const err215 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}if(data69.type !== undefined){if(typeof data69.type !== "string"){const err216 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}if(data69.editable !== undefined){if(typeof data69.editable !== "boolean"){const err217 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}if(data69.choices !== undefined){let data76 = data69.choices;if(Array.isArray(data76)){const len7 = data76.length;for(let i7=0; i7<len7; i7++){let data77 = data76[i7];if(data77 && typeof data77 == "object" && !Array.isArray(data77)){if(data77.value === undefined){const err218 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}if(data77.name === undefined){const err219 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}if(data77.name !== undefined){if(typeof data77.name !== "string"){const err220 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(data77.value !== undefined){if(typeof data77.value !== "string"){const err221 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}}else {const err222 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}if(errors > 0){const emErrs37 = [];for(const err223 of vErrors){if(((((err223.keyword !== "errorMessage") && (!err223.emUsed)) && ((err223.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7) || ((err223.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7) === 0) && (err223.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7.length] === "/")))) && (err223.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items") === 0)) && (err223.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length] === "/")){emErrs37.push(err223);err223.emUsed = true;}}if(emErrs37.length){const err224 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices/" + i7,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrs37},message:"{ name, value } must be specified for \"Dropdown\" choices"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}const emErrs38 = [];for(const err225 of vErrors){if(!err225.emUsed){emErrs38.push(err225);}}vErrors = emErrs38;errors = emErrs38.length;}}}else {const err226 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}if(data69.constraints !== undefined){let data80 = data69.constraints;if(data80 && typeof data80 == "object" && !Array.isArray(data80)){if(data80.notEmpty !== undefined){if(typeof data80.notEmpty !== "boolean"){const err227 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}if(data80.minLength !== undefined){if(!(typeof data80.minLength == "number")){const err228 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}if(data80.maxLength !== undefined){if(!(typeof data80.maxLength == "number")){const err229 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}if(data80.pattern !== undefined){let data84 = data80.pattern;const _errs239 = errors;let valid92 = false;let passing3 = null;const _errs240 = errors;if(data84 && typeof data84 == "object" && !Array.isArray(data84)){if(data84.value !== undefined){if(typeof data84.value !== "string"){const err230 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}if(data84.message !== undefined){if(typeof data84.message !== "string"){const err231 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}}}else {const err232 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}var _valid19 = _errs240 === errors;if(_valid19){valid92 = true;passing3 = 0;}const _errs246 = errors;if(typeof data84 !== "string"){const err233 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}var _valid19 = _errs246 === errors;if(_valid19 && valid92){valid92 = false;passing3 = [passing3, 1];}else {if(_valid19){valid92 = true;passing3 = 1;}}if(!valid92){const err234 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing3},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}else {errors = _errs239;if(vErrors !== null){if(_errs239){vErrors.length = _errs239;}else {vErrors = null;}}}}}else {const err235 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}}if(data69.group !== undefined){if(typeof data69.group !== "string"){const err236 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}}}else {const err237 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i6,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}}else {const err238 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}if(Array.isArray(data68)){const len8 = data68.length;for(let i8=0; i8<len8; i8++){let data88 = data68[i8];const _errs256 = errors;let valid98 = true;const _errs257 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if((data88.binding === undefined) && ("binding")){const err239 = {};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}else {if(data88.binding !== undefined){let data89 = data88.binding;if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if((data89.type === undefined) && ("type")){const err240 = {};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}else {if(data89.type !== undefined){if(!equal(data89.type, "property")){const err241 = {};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}}}}}}}var _valid20 = _errs257 === errors;errors = _errs256;if(vErrors !== null){if(_errs256){vErrors.length = _errs256;}else {vErrors = null;}}if(_valid20){const _errs260 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.type !== undefined){let data91 = data88.type;if(!(((((data91 === "String") || (data91 === "Text")) || (data91 === "Hidden")) || (data91 === "Dropdown")) || (data91 === "Boolean"))){const err242 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}if(errors > 0){const emErrs39 = [];for(const err243 of vErrors){if(((((err243.keyword !== "errorMessage") && (!err243.emUsed)) && ((err243.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err243.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err243.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err243.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err243.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs39.push(err243);err243.emUsed = true;}}if(emErrs39.length){const err244 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs39},message:"invalid property type " + JSON.stringify(data91) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}const emErrs40 = [];for(const err245 of vErrors){if(!err245.emUsed){emErrs40.push(err245);}}vErrors = emErrs40;errors = emErrs40.length;}}}var _valid20 = _errs260 === errors;valid98 = _valid20;}if(!valid98){const err246 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}const _errs263 = errors;let valid102 = true;const _errs264 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if((data88.binding === undefined) && ("binding")){const err247 = {};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}else {if(data88.binding !== undefined){let data92 = data88.binding;if(data92 && typeof data92 == "object" && !Array.isArray(data92)){if((data92.type === undefined) && ("type")){const err248 = {};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}else {if(data92.type !== undefined){if(!equal(data92.type, "camunda:executionListener")){const err249 = {};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}}}}}}}var _valid21 = _errs264 === errors;errors = _errs263;if(vErrors !== null){if(_errs263){vErrors.length = _errs263;}else {vErrors = null;}}if(_valid21){const _errs267 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.type !== undefined){if(!(data88.type === "Hidden")){const err250 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}if(errors > 0){const emErrs41 = [];for(const err251 of vErrors){if(((((err251.keyword !== "errorMessage") && (!err251.emUsed)) && ((err251.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err251.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err251.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err251.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err251.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs41.push(err251);err251.emUsed = true;}}if(emErrs41.length){const err252 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs41},message:"invalid property type " + JSON.stringify(data88 && data88.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}const emErrs42 = [];for(const err253 of vErrors){if(!err253.emUsed){emErrs42.push(err253);}}vErrors = emErrs42;errors = emErrs42.length;}}}var _valid21 = _errs267 === errors;valid102 = _valid21;}if(!valid102){const err254 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}const _errs270 = errors;let valid106 = true;const _errs271 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if((data88.binding === undefined) && ("binding")){const err255 = {};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}else {if(data88.binding !== undefined){let data95 = data88.binding;if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if((data95.type === undefined) && ("type")){const err256 = {};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}else {if(data95.type !== undefined){let data96 = data95.type;if(!((((((data96 === "camunda:property") || (data96 === "camunda:outputParameter")) || (data96 === "camunda:in")) || (data96 === "camunda:in:businessKey")) || (data96 === "camunda:out")) || (data96 === "camunda:errorEventDefinition"))){const err257 = {};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}}}}}}}var _valid22 = _errs271 === errors;errors = _errs270;if(vErrors !== null){if(_errs270){vErrors.length = _errs270;}else {vErrors = null;}}if(_valid22){const _errs274 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.type !== undefined){let data97 = data88.type;if(!(((data97 === "String") || (data97 === "Hidden")) || (data97 === "Dropdown"))){const err258 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}if(errors > 0){const emErrs43 = [];for(const err259 of vErrors){if(((((err259.keyword !== "errorMessage") && (!err259.emUsed)) && ((err259.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err259.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err259.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err259.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err259.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs43.push(err259);err259.emUsed = true;}}if(emErrs43.length){const err260 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors: emErrs43},message:"invalid property type " + JSON.stringify(data97) + " for binding type " + JSON.stringify(data88 && data88.binding && data88.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}const emErrs44 = [];for(const err261 of vErrors){if(!err261.emUsed){emErrs44.push(err261);}}vErrors = emErrs44;errors = emErrs44.length;}}}var _valid22 = _errs274 === errors;valid106 = _valid22;}if(!valid106){const err262 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}const _errs277 = errors;let valid110 = true;const _errs278 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if((data88.binding === undefined) && ("binding")){const err263 = {};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}else {if(data88.binding !== undefined){let data98 = data88.binding;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.type === undefined) && ("type")){const err264 = {};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}else {if(data98.type !== undefined){let data99 = data98.type;if(!((data99 === "camunda:inputParameter") || (data99 === "camunda:field"))){const err265 = {};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}}}}}}}var _valid23 = _errs278 === errors;errors = _errs277;if(vErrors !== null){if(_errs277){vErrors.length = _errs277;}else {vErrors = null;}}if(_valid23){const _errs281 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.type !== undefined){let data100 = data88.type;if(!((((data100 === "String") || (data100 === "Text")) || (data100 === "Hidden")) || (data100 === "Dropdown"))){const err266 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/enum",params:{allowedValues: schema20.items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}if(errors > 0){const emErrs45 = [];for(const err267 of vErrors){if(((((err267.keyword !== "errorMessage") && (!err267.emUsed)) && ((err267.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") || ((err267.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/type") === 0) && (err267.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/type".length] === "/")))) && (err267.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err267.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs45.push(err267);err267.emUsed = true;}}if(emErrs45.length){const err268 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors: emErrs45},message:"invalid property type " + JSON.stringify(data100) + " for binding type " + JSON.stringify(data88 && data88.binding && data88.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}const emErrs46 = [];for(const err269 of vErrors){if(!err269.emUsed){emErrs46.push(err269);}}vErrors = emErrs46;errors = emErrs46.length;}}}var _valid23 = _errs281 === errors;valid110 = _valid23;}if(!valid110){const err270 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.binding === undefined){const err271 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}if(data88.binding !== undefined){let data101 = data88.binding;const _errs286 = errors;let valid116 = true;const _errs287 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err272 = {};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}else {if(data101.type !== undefined){let data102 = data101.type;if(!((((data102 === "property") || (data102 === "camunda:property")) || (data102 === "camunda:inputParameter")) || (data102 === "camunda:field"))){const err273 = {};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}}}}var _valid24 = _errs287 === errors;errors = _errs286;if(vErrors !== null){if(_errs286){vErrors.length = _errs286;}else {vErrors = null;}}if(_valid24){const _errs289 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.name === undefined){const err274 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err274];}else {vErrors.push(err274);}errors++;}}if(errors > 0){const emErrs47 = [];for(const err275 of vErrors){if(((((err275.keyword !== "errorMessage") && (!err275.emUsed)) && ((err275.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err275.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err275.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err275.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err275.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs47.push(err275);err275.emUsed = true;}}if(emErrs47.length){const err276 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs47},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires name"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}const emErrs48 = [];for(const err277 of vErrors){if(!err277.emUsed){emErrs48.push(err277);}}vErrors = emErrs48;errors = emErrs48.length;}var _valid24 = _errs289 === errors;valid116 = _valid24;}if(!valid116){const err278 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}const _errs291 = errors;let valid118 = true;const _errs292 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err279 = {};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}else {if(data101.type !== undefined){if(!equal(data101.type, "camunda:outputParameter")){const err280 = {};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}}}}var _valid25 = _errs292 === errors;errors = _errs291;if(vErrors !== null){if(_errs291){vErrors.length = _errs291;}else {vErrors = null;}}if(_valid25){const _errs294 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.source === undefined){const err281 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err281];}else {vErrors.push(err281);}errors++;}}if(errors > 0){const emErrs49 = [];for(const err282 of vErrors){if(((((err282.keyword !== "errorMessage") && (!err282.emUsed)) && ((err282.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err282.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err282.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err282.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err282.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs49.push(err282);err282.emUsed = true;}}if(emErrs49.length){const err283 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs49},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires source"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}const emErrs50 = [];for(const err284 of vErrors){if(!err284.emUsed){emErrs50.push(err284);}}vErrors = emErrs50;errors = emErrs50.length;}var _valid25 = _errs294 === errors;valid118 = _valid25;}if(!valid118){const err285 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}const _errs296 = errors;let valid120 = true;const _errs297 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err286 = {};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}else {if(data101.type !== undefined){if(!equal(data101.type, "camunda:in")){const err287 = {};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}}}}var _valid26 = _errs297 === errors;errors = _errs296;if(vErrors !== null){if(_errs296){vErrors.length = _errs296;}else {vErrors = null;}}if(_valid26){const _errs299 = errors;const _errs300 = errors;let valid122 = false;const _errs301 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.variables === undefined){const err288 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err288];}else {vErrors.push(err288);}errors++;}}var _valid27 = _errs301 === errors;valid122 = valid122 || _valid27;if(!valid122){const _errs302 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.target === undefined){const err289 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err289];}else {vErrors.push(err289);}errors++;}}var _valid27 = _errs302 === errors;valid122 = valid122 || _valid27;}if(!valid122){const err290 = {keyword:"anyOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err290];}else {vErrors.push(err290);}errors++;}else {errors = _errs300;if(vErrors !== null){if(_errs300){vErrors.length = _errs300;}else {vErrors = null;}}}if(errors > 0){const emErrs51 = [];for(const err291 of vErrors){if(((((err291.keyword !== "errorMessage") && (!err291.emUsed)) && ((err291.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err291.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err291.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err291.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err291.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs51.push(err291);err291.emUsed = true;}}if(emErrs51.length){const err292 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs51},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}const emErrs52 = [];for(const err293 of vErrors){if(!err293.emUsed){emErrs52.push(err293);}}vErrors = emErrs52;errors = emErrs52.length;}var _valid26 = _errs299 === errors;valid120 = _valid26;}if(!valid120){const err294 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}const _errs304 = errors;let valid123 = true;const _errs305 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err295 = {};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}else {if(data101.type !== undefined){if(!equal(data101.type, "camunda:out")){const err296 = {};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}}}}var _valid28 = _errs305 === errors;errors = _errs304;if(vErrors !== null){if(_errs304){vErrors.length = _errs304;}else {vErrors = null;}}if(_valid28){const _errs307 = errors;const _errs308 = errors;let valid125 = false;let passing4 = null;const _errs309 = errors;const _errs310 = errors;const _errs311 = errors;const _errs312 = errors;let valid127 = false;const _errs313 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.source === undefined) && ("source")){const err297 = {};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}}var _valid30 = _errs313 === errors;valid127 = valid127 || _valid30;if(!valid127){const _errs314 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.sourceExpression === undefined) && ("sourceExpression")){const err298 = {};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}var _valid30 = _errs314 === errors;valid127 = valid127 || _valid30;}if(!valid127){const err299 = {};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}else {errors = _errs312;if(vErrors !== null){if(_errs312){vErrors.length = _errs312;}else {vErrors = null;}}}var valid126 = _errs311 === errors;if(!valid126){errors = _errs310;if(vErrors !== null){if(_errs310){vErrors.length = _errs310;}else {vErrors = null;}}}else {const err300 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err300];}else {vErrors.push(err300);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.variables === undefined){const err301 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err301];}else {vErrors.push(err301);}errors++;}}var _valid29 = _errs309 === errors;if(_valid29){valid125 = true;passing4 = 0;}const _errs315 = errors;const _errs316 = errors;const _errs317 = errors;const _errs318 = errors;let valid129 = false;const _errs319 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.variables === undefined) && ("variables")){const err302 = {};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}}var _valid31 = _errs319 === errors;valid129 = valid129 || _valid31;if(!valid129){const _errs320 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.sourceExpression === undefined) && ("sourceExpression")){const err303 = {};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}}var _valid31 = _errs320 === errors;valid129 = valid129 || _valid31;}if(!valid129){const err304 = {};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}else {errors = _errs318;if(vErrors !== null){if(_errs318){vErrors.length = _errs318;}else {vErrors = null;}}}var valid128 = _errs317 === errors;if(!valid128){errors = _errs316;if(vErrors !== null){if(_errs316){vErrors.length = _errs316;}else {vErrors = null;}}}else {const err305 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err305];}else {vErrors.push(err305);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.source === undefined){const err306 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err306];}else {vErrors.push(err306);}errors++;}}var _valid29 = _errs315 === errors;if(_valid29 && valid125){valid125 = false;passing4 = [passing4, 1];}else {if(_valid29){valid125 = true;passing4 = 1;}const _errs321 = errors;const _errs322 = errors;const _errs323 = errors;const _errs324 = errors;let valid131 = false;const _errs325 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.variables === undefined) && ("variables")){const err307 = {};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}}var _valid32 = _errs325 === errors;valid131 = valid131 || _valid32;if(!valid131){const _errs326 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.source === undefined) && ("source")){const err308 = {};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}var _valid32 = _errs326 === errors;valid131 = valid131 || _valid32;}if(!valid131){const err309 = {};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}else {errors = _errs324;if(vErrors !== null){if(_errs324){vErrors.length = _errs324;}else {vErrors = null;}}}var valid130 = _errs323 === errors;if(!valid130){errors = _errs322;if(vErrors !== null){if(_errs322){vErrors.length = _errs322;}else {vErrors = null;}}}else {const err310 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err310];}else {vErrors.push(err310);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.sourceExpression === undefined){const err311 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err311];}else {vErrors.push(err311);}errors++;}}var _valid29 = _errs321 === errors;if(_valid29 && valid125){valid125 = false;passing4 = [passing4, 2];}else {if(_valid29){valid125 = true;passing4 = 2;}const _errs327 = errors;const _errs328 = errors;const _errs329 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.source === undefined) && ("source")){const err312 = {};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}}var valid132 = _errs329 === errors;if(!valid132){errors = _errs328;if(vErrors !== null){if(_errs328){vErrors.length = _errs328;}else {vErrors = null;}}}else {const err313 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err313];}else {vErrors.push(err313);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.variables === undefined){const err314 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err314];}else {vErrors.push(err314);}errors++;}if(data101.sourceExpression === undefined){const err315 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err315];}else {vErrors.push(err315);}errors++;}}var _valid29 = _errs327 === errors;if(_valid29 && valid125){valid125 = false;passing4 = [passing4, 3];}else {if(_valid29){valid125 = true;passing4 = 3;}const _errs330 = errors;const _errs331 = errors;const _errs332 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.sourceExpression === undefined) && ("sourceExpression")){const err316 = {};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}}var valid133 = _errs332 === errors;if(!valid133){errors = _errs331;if(vErrors !== null){if(_errs331){vErrors.length = _errs331;}else {vErrors = null;}}}else {const err317 = {keyword:"not",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err317];}else {vErrors.push(err317);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.variables === undefined){const err318 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err318];}else {vErrors.push(err318);}errors++;}if(data101.source === undefined){const err319 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err319];}else {vErrors.push(err319);}errors++;}}var _valid29 = _errs330 === errors;if(_valid29 && valid125){valid125 = false;passing4 = [passing4, 4];}else {if(_valid29){valid125 = true;passing4 = 4;}}}}}if(!valid125){const err320 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas: passing4},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}else {errors = _errs308;if(vErrors !== null){if(_errs308){vErrors.length = _errs308;}else {vErrors = null;}}}if(errors > 0){const emErrs53 = [];for(const err321 of vErrors){if(((((err321.keyword !== "errorMessage") && (!err321.emUsed)) && ((err321.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err321.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err321.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err321.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err321.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs53.push(err321);err321.emUsed = true;}}if(emErrs53.length){const err322 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors: emErrs53},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}const emErrs54 = [];for(const err323 of vErrors){if(!err323.emUsed){emErrs54.push(err323);}}vErrors = emErrs54;errors = emErrs54.length;}var _valid28 = _errs307 === errors;valid123 = _valid28;}if(!valid123){const err324 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}const _errs334 = errors;let valid134 = true;const _errs335 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err325 = {};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}else {if(data101.type !== undefined){if(!equal(data101.type, "camunda:errorEventDefinition")){const err326 = {};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}}}}var _valid33 = _errs335 === errors;errors = _errs334;if(vErrors !== null){if(_errs334){vErrors.length = _errs334;}else {vErrors = null;}}if(_valid33){const _errs337 = errors;const _errs338 = errors;let valid136 = false;let passing5 = null;const _errs339 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.errorRef === undefined){const err327 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/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 = [err327];}else {vErrors.push(err327);}errors++;}}var _valid34 = _errs339 === errors;if(_valid34){valid136 = true;passing5 = 0;}if(!valid136){const err328 = {keyword:"oneOf",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas: passing5},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}else {errors = _errs338;if(vErrors !== null){if(_errs338){vErrors.length = _errs338;}else {vErrors = null;}}}if(errors > 0){const emErrs55 = [];for(const err329 of vErrors){if(((((err329.keyword !== "errorMessage") && (!err329.emUsed)) && ((err329.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") || ((err329.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding") === 0) && (err329.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding".length] === "/")))) && (err329.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err329.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs55.push(err329);err329.emUsed = true;}}if(emErrs55.length){const err330 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors: emErrs55},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires errorRef"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}const emErrs56 = [];for(const err331 of vErrors){if(!err331.emUsed){emErrs56.push(err331);}}vErrors = emErrs56;errors = emErrs56.length;}var _valid33 = _errs337 === errors;valid134 = _valid33;}if(!valid134){const err332 = {keyword:"if",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.type === undefined){const err333 = {keyword:"required",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}if(data101.type !== undefined){let data107 = data101.type;if(typeof data107 !== "string"){const err334 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}if(!((((((((((data107 === "property") || (data107 === "camunda:property")) || (data107 === "camunda:inputParameter")) || (data107 === "camunda:outputParameter")) || (data107 === "camunda:in")) || (data107 === "camunda:out")) || (data107 === "camunda:in:businessKey")) || (data107 === "camunda:executionListener")) || (data107 === "camunda:field")) || (data107 === "camunda:errorEventDefinition"))){const err335 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema20.items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}if(errors > 0){const emErrs57 = [];for(const err336 of vErrors){if(((((err336.keyword !== "errorMessage") && (!err336.emUsed)) && ((err336.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type") || ((err336.dataPath.indexOf(dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type") === 0) && (err336.dataPath[dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type".length] === "/")))) && (err336.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err336.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs57.push(err336);err336.emUsed = true;}}if(emErrs57.length){const err337 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs57},message:"invalid property.binding type " + JSON.stringify(data107) + "; 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 = [err337];}else {vErrors.push(err337);}errors++;}const emErrs58 = [];for(const err338 of vErrors){if(!err338.emUsed){emErrs58.push(err338);}}vErrors = emErrs58;errors = emErrs58.length;}}if(data101.name !== undefined){if(typeof data101.name !== "string"){const err339 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}}if(data101.event !== undefined){if(typeof data101.event !== "string"){const err340 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}}if(data101.scriptFormat !== undefined){if(typeof data101.scriptFormat !== "string"){const err341 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}}if(data101.source !== undefined){if(typeof data101.source !== "string"){const err342 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}}if(data101.target !== undefined){if(typeof data101.target !== "string"){const err343 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}}if(data101.expression !== undefined){if(typeof data101.expression !== "boolean"){const err344 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}}if(data101.variables !== undefined){let data114 = data101.variables;if(typeof data114 !== "string"){const err345 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}if(!((data114 === "all") || (data114 === "local"))){const err346 = {keyword:"enum",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/enum",params:{allowedValues: schema20.items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}}if(data101.sourceExpression !== undefined){if(typeof data101.sourceExpression !== "string"){const err347 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}}}else {const err348 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}}}else {const err349 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}if(errors > 0){const emErrors7 = {"required":{"binding":[]}};const templates7 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i8) + "\""}}};let emPropParams4;let emParamsErrors4;for(const err350 of vErrors){if((((((err350.keyword !== "errorMessage") && (!err350.emUsed)) && (err350.dataPath === dataPath+"/scopes/" + i5+"/properties/" + i8)) && (err350.keyword in emErrors7)) && (err350.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err350.schemaPath.slice(38)))){emPropParams4 = obj0$1[err350.keyword];emParamsErrors4 = emErrors7[err350.keyword][err350.params[emPropParams4]];if(emParamsErrors4){emParamsErrors4.push(err350);err350.emUsed = true;}}}for(const key7 in emErrors7){for(const keyProp4 in emErrors7[key7]){emParamsErrors4 = emErrors7[key7][keyProp4];if(emParamsErrors4.length){const tmpl4 = templates7[key7] && templates7[key7][keyProp4];const err351 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5+"/properties/" + i8,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors: emParamsErrors4},message:tmpl4 ? tmpl4() : schema20.items.errorMessage[key7][keyProp4]};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}}}const emErrs59 = [];for(const err352 of vErrors){if(!err352.emUsed){emErrs59.push(err352);}}vErrors = emErrs59;errors = emErrs59.length;}}}else {const err353 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}}}else {const err354 = {keyword:"type",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}if(errors > 0){const emErrors8 = {"required":{"type":[],"properties":[]}};const templates8 = {required:{properties:function(){return "invalid scope " + JSON.stringify(data65 && data65.type) + ", missing properties=[]"}}};let emPropParams5;let emParamsErrors5;for(const err355 of vErrors){if((((((err355.keyword !== "errorMessage") && (!err355.emUsed)) && (err355.dataPath === dataPath+"/scopes/" + i5)) && (err355.keyword in emErrors8)) && (err355.schemaPath.indexOf("#/properties/scopes/items") === 0)) && (/^\/[^\/]*$/.test(err355.schemaPath.slice(25)))){emPropParams5 = obj0$1[err355.keyword];emParamsErrors5 = emErrors8[err355.keyword][err355.params[emPropParams5]];if(emParamsErrors5){emParamsErrors5.push(err355);err355.emUsed = true;}}}for(const key8 in emErrors8){for(const keyProp5 in emErrors8[key8]){emParamsErrors5 = emErrors8[key8][keyProp5];if(emParamsErrors5.length){const tmpl5 = templates8[key8] && templates8[key8][keyProp5];const err356 = {keyword:"errorMessage",dataPath:dataPath+"/scopes/" + i5,schemaPath:"#/properties/scopes/items/errorMessage",params:{errors: emParamsErrors5},message:tmpl5 ? tmpl5() : schema17$1.properties.scopes.items.errorMessage[key8][keyProp5]};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}}}const emErrs60 = [];for(const err357 of vErrors){if(!err357.emUsed){emErrs60.push(err357);}}vErrors = emErrs60;errors = emErrs60.length;}}}else {const err358 = {keyword:"type",dataPath:dataPath+"/scopes",schemaPath:"#/properties/scopes/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}}}else {const err359 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}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;}
|
|
64038
64468
|
standaloneValidator.default = _default$1;
|
|
64039
64469
|
|
|
64040
64470
|
var escapedChars = {
|
|
@@ -64523,101 +64953,292 @@
|
|
|
64523
64953
|
// (1) wrap raw errors in case of custom errorMessage attribute
|
|
64524
64954
|
forEach(errors, wrapRawErrors);
|
|
64525
64955
|
|
|
64526
|
-
// (2) ignore supportive error messages (e.g. "if-then-rules")
|
|
64527
|
-
errors = ignoreSupportiveErrors(errors);
|
|
64956
|
+
// (2) ignore supportive error messages (e.g. "if-then-rules")
|
|
64957
|
+
errors = ignoreSupportiveErrors(errors);
|
|
64958
|
+
|
|
64959
|
+
// (3) set data pointer for each error
|
|
64960
|
+
forEach(errors, function(error) {
|
|
64961
|
+
setDataPointer(error, dataPointerMap);
|
|
64962
|
+
});
|
|
64963
|
+
}
|
|
64964
|
+
|
|
64965
|
+
return {
|
|
64966
|
+
valid: valid,
|
|
64967
|
+
object: object,
|
|
64968
|
+
errors: errors
|
|
64969
|
+
};
|
|
64970
|
+
}
|
|
64971
|
+
|
|
64972
|
+
|
|
64973
|
+
// helper //////////////
|
|
64974
|
+
function wrapRawErrors(error) {
|
|
64975
|
+
const params = error.params;
|
|
64976
|
+
|
|
64977
|
+
if (params && params.errors) {
|
|
64978
|
+
params.rawErrors = params.errors;
|
|
64979
|
+
delete params.errors;
|
|
64980
|
+
}
|
|
64981
|
+
}
|
|
64982
|
+
|
|
64983
|
+
function setDataPointer(error, dataPointerMap) {
|
|
64984
|
+
const dataPath = error.dataPath;
|
|
64985
|
+
|
|
64986
|
+
const pointer = dataPointerMap[dataPath];
|
|
64987
|
+
|
|
64988
|
+
error.dataPointer = pointer;
|
|
64989
|
+
}
|
|
64990
|
+
|
|
64991
|
+
function ignoreSupportiveErrors(errors) {
|
|
64992
|
+
return filter(errors, function(error) {
|
|
64993
|
+
return error.keyword !== 'if';
|
|
64994
|
+
});
|
|
64995
|
+
}
|
|
64996
|
+
|
|
64997
|
+
/**
|
|
64998
|
+
* Generates a key-pointer map for the object.
|
|
64999
|
+
*
|
|
65000
|
+
* Example:
|
|
65001
|
+
*
|
|
65002
|
+
* {
|
|
65003
|
+
* foo: 'bar'
|
|
65004
|
+
* }
|
|
65005
|
+
*
|
|
65006
|
+
* =>
|
|
65007
|
+
*
|
|
65008
|
+
* {
|
|
65009
|
+
* '': {
|
|
65010
|
+
* value: { line: 0, column: 0, pos: 0 },
|
|
65011
|
+
* valueEnd: { line: 2, column: 1, pos: 18 }
|
|
65012
|
+
* },
|
|
65013
|
+
* '/foo': {
|
|
65014
|
+
* key: { line: 1, column: 2, pos: 4 },
|
|
65015
|
+
* keyEnd: { line: 1, column: 7, pos: 9 },
|
|
65016
|
+
* value: { line: 1, column: 9, pos: 11 },
|
|
65017
|
+
* valueEnd: { line: 1, column: 14, pos: 16 }
|
|
65018
|
+
* }
|
|
65019
|
+
* }
|
|
65020
|
+
*
|
|
65021
|
+
* @param {Object} object
|
|
65022
|
+
* @return {Object}
|
|
65023
|
+
*/
|
|
65024
|
+
function generateDataPointerMap(object) {
|
|
65025
|
+
return jsonSourceMap.stringify(object, null, 2).pointers;
|
|
65026
|
+
}
|
|
65027
|
+
|
|
65028
|
+
function getSchemaVersion() {
|
|
65029
|
+
return version$1;
|
|
65030
|
+
}
|
|
65031
|
+
|
|
65032
|
+
/**
|
|
65033
|
+
* Validate a single object.
|
|
65034
|
+
*
|
|
65035
|
+
* @param {Object} object
|
|
65036
|
+
* @return {Object} single object validation result
|
|
65037
|
+
*/
|
|
65038
|
+
function validate(object) {
|
|
65039
|
+
return _validate(object, standaloneValidator);
|
|
65040
|
+
}
|
|
65041
|
+
|
|
65042
|
+
var DEFAULT_PRIORITY$7 = 1000;
|
|
65043
|
+
|
|
65044
|
+
/**
|
|
65045
|
+
* A utility that can be used to plug-in into the command execution for
|
|
65046
|
+
* extension and/or validation.
|
|
65047
|
+
*
|
|
65048
|
+
* @param {EventBus} eventBus
|
|
65049
|
+
*
|
|
65050
|
+
* @example
|
|
65051
|
+
*
|
|
65052
|
+
* import inherits from 'inherits';
|
|
65053
|
+
*
|
|
65054
|
+
* import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
|
65055
|
+
*
|
|
65056
|
+
* function CommandLogger(eventBus) {
|
|
65057
|
+
* CommandInterceptor.call(this, eventBus);
|
|
65058
|
+
*
|
|
65059
|
+
* this.preExecute(function(event) {
|
|
65060
|
+
* console.log('command pre-execute', event);
|
|
65061
|
+
* });
|
|
65062
|
+
* }
|
|
65063
|
+
*
|
|
65064
|
+
* inherits(CommandLogger, CommandInterceptor);
|
|
65065
|
+
*
|
|
65066
|
+
*/
|
|
65067
|
+
function CommandInterceptor$1(eventBus) {
|
|
65068
|
+
this._eventBus = eventBus;
|
|
65069
|
+
}
|
|
65070
|
+
|
|
65071
|
+
CommandInterceptor$1.$inject = [ 'eventBus' ];
|
|
65072
|
+
|
|
65073
|
+
function unwrapEvent$1(fn, that) {
|
|
65074
|
+
return function(event) {
|
|
65075
|
+
return fn.call(that || null, event.context, event.command, event);
|
|
65076
|
+
};
|
|
65077
|
+
}
|
|
65078
|
+
|
|
65079
|
+
/**
|
|
65080
|
+
* Register an interceptor for a command execution
|
|
65081
|
+
*
|
|
65082
|
+
* @param {string|Array<string>} [events] list of commands to register on
|
|
65083
|
+
* @param {string} [hook] command hook, i.e. preExecute, executed to listen on
|
|
65084
|
+
* @param {number} [priority] the priority on which to hook into the execution
|
|
65085
|
+
* @param {Function} handlerFn interceptor to be invoked with (event)
|
|
65086
|
+
* @param {boolean} unwrap if true, unwrap the event and pass (context, command, event) to the
|
|
65087
|
+
* listener instead
|
|
65088
|
+
* @param {Object} [that] Pass context (`this`) to the handler function
|
|
65089
|
+
*/
|
|
65090
|
+
CommandInterceptor$1.prototype.on = function(events, hook, priority, handlerFn, unwrap, that) {
|
|
65091
|
+
|
|
65092
|
+
if (isFunction(hook) || isNumber(hook)) {
|
|
65093
|
+
that = unwrap;
|
|
65094
|
+
unwrap = handlerFn;
|
|
65095
|
+
handlerFn = priority;
|
|
65096
|
+
priority = hook;
|
|
65097
|
+
hook = null;
|
|
65098
|
+
}
|
|
65099
|
+
|
|
65100
|
+
if (isFunction(priority)) {
|
|
65101
|
+
that = unwrap;
|
|
65102
|
+
unwrap = handlerFn;
|
|
65103
|
+
handlerFn = priority;
|
|
65104
|
+
priority = DEFAULT_PRIORITY$7;
|
|
65105
|
+
}
|
|
65106
|
+
|
|
65107
|
+
if (isObject(unwrap)) {
|
|
65108
|
+
that = unwrap;
|
|
65109
|
+
unwrap = false;
|
|
65110
|
+
}
|
|
65111
|
+
|
|
65112
|
+
if (!isFunction(handlerFn)) {
|
|
65113
|
+
throw new Error('handlerFn must be a function');
|
|
65114
|
+
}
|
|
65115
|
+
|
|
65116
|
+
if (!isArray(events)) {
|
|
65117
|
+
events = [ events ];
|
|
65118
|
+
}
|
|
65119
|
+
|
|
65120
|
+
var eventBus = this._eventBus;
|
|
65121
|
+
|
|
65122
|
+
forEach(events, function(event) {
|
|
65123
|
+
|
|
65124
|
+
// concat commandStack(.event)?(.hook)?
|
|
65125
|
+
var fullEvent = [ 'commandStack', event, hook ].filter(function(e) { return e; }).join('.');
|
|
65126
|
+
|
|
65127
|
+
eventBus.on(fullEvent, priority, unwrap ? unwrapEvent$1(handlerFn, that) : handlerFn, that);
|
|
65128
|
+
});
|
|
65129
|
+
};
|
|
65130
|
+
|
|
65131
|
+
|
|
65132
|
+
var hooks$1 = [
|
|
65133
|
+
'canExecute',
|
|
65134
|
+
'preExecute',
|
|
65135
|
+
'preExecuted',
|
|
65136
|
+
'execute',
|
|
65137
|
+
'executed',
|
|
65138
|
+
'postExecute',
|
|
65139
|
+
'postExecuted',
|
|
65140
|
+
'revert',
|
|
65141
|
+
'reverted'
|
|
65142
|
+
];
|
|
65143
|
+
|
|
65144
|
+
/*
|
|
65145
|
+
* Install hook shortcuts
|
|
65146
|
+
*
|
|
65147
|
+
* This will generate the CommandInterceptor#(preExecute|...|reverted) methods
|
|
65148
|
+
* which will in term forward to CommandInterceptor#on.
|
|
65149
|
+
*/
|
|
65150
|
+
forEach(hooks$1, function(hook) {
|
|
65151
|
+
|
|
65152
|
+
/**
|
|
65153
|
+
* {canExecute|preExecute|preExecuted|execute|executed|postExecute|postExecuted|revert|reverted}
|
|
65154
|
+
*
|
|
65155
|
+
* A named hook for plugging into the command execution
|
|
65156
|
+
*
|
|
65157
|
+
* @param {string|Array<string>} [events] list of commands to register on
|
|
65158
|
+
* @param {number} [priority] the priority on which to hook into the execution
|
|
65159
|
+
* @param {Function} handlerFn interceptor to be invoked with (event)
|
|
65160
|
+
* @param {boolean} [unwrap=false] if true, unwrap the event and pass (context, command, event) to the
|
|
65161
|
+
* listener instead
|
|
65162
|
+
* @param {Object} [that] Pass context (`this`) to the handler function
|
|
65163
|
+
*/
|
|
65164
|
+
CommandInterceptor$1.prototype[hook] = function(events, priority, handlerFn, unwrap, that) {
|
|
64528
65165
|
|
|
64529
|
-
|
|
64530
|
-
|
|
64531
|
-
|
|
64532
|
-
|
|
64533
|
-
|
|
65166
|
+
if (isFunction(events) || isNumber(events)) {
|
|
65167
|
+
that = unwrap;
|
|
65168
|
+
unwrap = handlerFn;
|
|
65169
|
+
handlerFn = priority;
|
|
65170
|
+
priority = events;
|
|
65171
|
+
events = null;
|
|
65172
|
+
}
|
|
64534
65173
|
|
|
64535
|
-
|
|
64536
|
-
valid: valid,
|
|
64537
|
-
object: object,
|
|
64538
|
-
errors: errors
|
|
65174
|
+
this.on(events, hook, priority, handlerFn, unwrap, that);
|
|
64539
65175
|
};
|
|
64540
|
-
}
|
|
65176
|
+
});
|
|
64541
65177
|
|
|
65178
|
+
var CommandInterceptor$2 = /*#__PURE__*/Object.freeze({
|
|
65179
|
+
__proto__: null,
|
|
65180
|
+
'default': CommandInterceptor$1
|
|
65181
|
+
});
|
|
64542
65182
|
|
|
64543
|
-
|
|
64544
|
-
|
|
64545
|
-
|
|
65183
|
+
const BpmnPropertiesPanelContext = q({
|
|
65184
|
+
selectedElement: null,
|
|
65185
|
+
injector: null,
|
|
64546
65186
|
|
|
64547
|
-
|
|
64548
|
-
|
|
64549
|
-
delete params.errors;
|
|
65187
|
+
getService() {
|
|
65188
|
+
return null;
|
|
64550
65189
|
}
|
|
64551
|
-
}
|
|
64552
|
-
|
|
64553
|
-
function setDataPointer(error, dataPointerMap) {
|
|
64554
|
-
const dataPath = error.dataPath;
|
|
64555
|
-
|
|
64556
|
-
const pointer = dataPointerMap[dataPath];
|
|
64557
65190
|
|
|
64558
|
-
|
|
64559
|
-
}
|
|
65191
|
+
});
|
|
64560
65192
|
|
|
64561
|
-
function
|
|
64562
|
-
|
|
64563
|
-
|
|
64564
|
-
});
|
|
65193
|
+
function useService(type, strict) {
|
|
65194
|
+
const {
|
|
65195
|
+
getService
|
|
65196
|
+
} = F(BpmnPropertiesPanelContext);
|
|
65197
|
+
return getService(type, strict);
|
|
64565
65198
|
}
|
|
64566
65199
|
|
|
64567
65200
|
/**
|
|
64568
|
-
*
|
|
65201
|
+
* Returns a memoized callback to be passed as `show` prop. Callback returns
|
|
65202
|
+
* true if (1) ID and path match or (2) ID matches and matcher returns true.
|
|
64569
65203
|
*
|
|
64570
|
-
*
|
|
65204
|
+
* @example
|
|
64571
65205
|
*
|
|
64572
|
-
*
|
|
64573
|
-
*
|
|
64574
|
-
* }
|
|
65206
|
+
* // using path
|
|
65207
|
+
* const show = useShowCallback(businessObject, [ 'foo' ]);
|
|
64575
65208
|
*
|
|
64576
|
-
*
|
|
65209
|
+
* @example
|
|
64577
65210
|
*
|
|
64578
|
-
*
|
|
64579
|
-
*
|
|
64580
|
-
* value: { line: 0, column: 0, pos: 0 },
|
|
64581
|
-
* valueEnd: { line: 2, column: 1, pos: 18 }
|
|
64582
|
-
* },
|
|
64583
|
-
* '/foo': {
|
|
64584
|
-
* key: { line: 1, column: 2, pos: 4 },
|
|
64585
|
-
* keyEnd: { line: 1, column: 7, pos: 9 },
|
|
64586
|
-
* value: { line: 1, column: 9, pos: 11 },
|
|
64587
|
-
* valueEnd: { line: 1, column: 14, pos: 16 }
|
|
64588
|
-
* }
|
|
64589
|
-
* }
|
|
65211
|
+
* // using matcher
|
|
65212
|
+
* const show = useShowCallback(businessObject, (event) => event.foo === 'bar');
|
|
64590
65213
|
*
|
|
64591
|
-
* @param {Object}
|
|
64592
|
-
* @
|
|
65214
|
+
* @param {Object} businessObject
|
|
65215
|
+
* @param {string[]|Function} matcher
|
|
65216
|
+
*
|
|
65217
|
+
* @returns {Function}
|
|
64593
65218
|
*/
|
|
64594
|
-
function generateDataPointerMap(object) {
|
|
64595
|
-
return jsonSourceMap.stringify(object, null, 2).pointers;
|
|
64596
|
-
}
|
|
64597
65219
|
|
|
64598
|
-
function
|
|
64599
|
-
return
|
|
64600
|
-
|
|
65220
|
+
function useShowCallback(businessObject, matcher) {
|
|
65221
|
+
return A$1(event => {
|
|
65222
|
+
const {
|
|
65223
|
+
id,
|
|
65224
|
+
path
|
|
65225
|
+
} = event;
|
|
64601
65226
|
|
|
64602
|
-
|
|
64603
|
-
|
|
64604
|
-
|
|
64605
|
-
* @param {Object} object
|
|
64606
|
-
* @return {Object} single object validation result
|
|
64607
|
-
*/
|
|
64608
|
-
function validate(object) {
|
|
64609
|
-
return _validate(object, standaloneValidator);
|
|
64610
|
-
}
|
|
65227
|
+
if (id !== businessObject.get('id')) {
|
|
65228
|
+
return false;
|
|
65229
|
+
}
|
|
64611
65230
|
|
|
64612
|
-
|
|
64613
|
-
|
|
64614
|
-
|
|
65231
|
+
if (isArray(matcher)) {
|
|
65232
|
+
return path && pathEquals(path, matcher);
|
|
65233
|
+
}
|
|
64615
65234
|
|
|
64616
|
-
|
|
64617
|
-
|
|
64618
|
-
|
|
65235
|
+
if (isFunction(matcher)) {
|
|
65236
|
+
return !!matcher(event);
|
|
65237
|
+
}
|
|
64619
65238
|
|
|
64620
|
-
|
|
65239
|
+
return false;
|
|
65240
|
+
}, [businessObject, matcher]);
|
|
65241
|
+
}
|
|
64621
65242
|
|
|
64622
65243
|
function _extends$1m() { _extends$1m = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1m.apply(this, arguments); }
|
|
64623
65244
|
var AssociationIcon = (({
|
|
@@ -65838,6 +66459,13 @@
|
|
|
65838
66459
|
return type;
|
|
65839
66460
|
}
|
|
65840
66461
|
const PanelHeaderProvider = {
|
|
66462
|
+
getDocumentationRef: element => {
|
|
66463
|
+
const elementTemplates = getTemplatesService();
|
|
66464
|
+
|
|
66465
|
+
if (elementTemplates) {
|
|
66466
|
+
return getTemplateDocumentation(element, elementTemplates);
|
|
66467
|
+
}
|
|
66468
|
+
},
|
|
65841
66469
|
getElementLabel: element => {
|
|
65842
66470
|
if (is$1(element, 'bpmn:Process')) {
|
|
65843
66471
|
return getBusinessObject(element).name;
|
|
@@ -65847,9 +66475,34 @@
|
|
|
65847
66475
|
},
|
|
65848
66476
|
getElementIcon: element => {
|
|
65849
66477
|
const concreteType = getConcreteType(element);
|
|
66478
|
+
const elementTemplates = getTemplatesService();
|
|
66479
|
+
|
|
66480
|
+
if (elementTemplates) {
|
|
66481
|
+
const template = getTemplate(element, elementTemplates);
|
|
66482
|
+
|
|
66483
|
+
if (template && template.icon) {
|
|
66484
|
+
return () => o$2("img", {
|
|
66485
|
+
class: "bio-properties-panel-header-template-icon",
|
|
66486
|
+
width: "32",
|
|
66487
|
+
height: "32",
|
|
66488
|
+
src: template.icon.contents
|
|
66489
|
+
});
|
|
66490
|
+
}
|
|
66491
|
+
}
|
|
66492
|
+
|
|
65850
66493
|
return iconsByType[concreteType];
|
|
65851
66494
|
},
|
|
65852
66495
|
getTypeLabel: element => {
|
|
66496
|
+
const elementTemplates = getTemplatesService();
|
|
66497
|
+
|
|
66498
|
+
if (elementTemplates) {
|
|
66499
|
+
const template = getTemplate(element, elementTemplates);
|
|
66500
|
+
|
|
66501
|
+
if (template && template.name) {
|
|
66502
|
+
return template.name;
|
|
66503
|
+
}
|
|
66504
|
+
}
|
|
66505
|
+
|
|
65853
66506
|
const concreteType = getConcreteType(element);
|
|
65854
66507
|
return concreteType.replace(/(\B[A-Z])/g, ' $1').replace(/(\bNon Interrupting)/g, '($1)');
|
|
65855
66508
|
}
|
|
@@ -65895,8 +66548,7 @@
|
|
|
65895
66548
|
}
|
|
65896
66549
|
|
|
65897
66550
|
return businessObject.conditionExpression && is$1(sourceBusinessObject, 'bpmn:Activity');
|
|
65898
|
-
}
|
|
65899
|
-
|
|
66551
|
+
}
|
|
65900
66552
|
|
|
65901
66553
|
function isPlane$1(element) {
|
|
65902
66554
|
// Backwards compatibility for bpmn-js<8
|
|
@@ -65904,6 +66556,22 @@
|
|
|
65904
66556
|
return is$1(di, 'bpmndi:BPMNPlane');
|
|
65905
66557
|
}
|
|
65906
66558
|
|
|
66559
|
+
function getTemplatesService() {
|
|
66560
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
66561
|
+
return useService('elementTemplates', false);
|
|
66562
|
+
}
|
|
66563
|
+
|
|
66564
|
+
function getTemplate(element, elementTemplates) {
|
|
66565
|
+
const templateId = elementTemplates._getTemplateId(element);
|
|
66566
|
+
|
|
66567
|
+
return templateId && elementTemplates.get(templateId);
|
|
66568
|
+
}
|
|
66569
|
+
|
|
66570
|
+
function getTemplateDocumentation(element, elementTemplates) {
|
|
66571
|
+
const template = getTemplate(element, elementTemplates);
|
|
66572
|
+
return template && template.documentationRef;
|
|
66573
|
+
}
|
|
66574
|
+
|
|
65907
66575
|
function BpmnPropertiesPanel(props) {
|
|
65908
66576
|
const {
|
|
65909
66577
|
element,
|
|
@@ -66051,7 +66719,8 @@
|
|
|
66051
66719
|
layoutConfig: layoutConfig,
|
|
66052
66720
|
layoutChanged: onLayoutChanged,
|
|
66053
66721
|
descriptionConfig: descriptionConfig,
|
|
66054
|
-
descriptionLoaded: onDescriptionLoaded
|
|
66722
|
+
descriptionLoaded: onDescriptionLoaded,
|
|
66723
|
+
eventBus: eventBus
|
|
66055
66724
|
})
|
|
66056
66725
|
});
|
|
66057
66726
|
} // helpers //////////////////////////
|
|
@@ -66069,7 +66738,7 @@
|
|
|
66069
66738
|
return element && elementRegistry.get(element.id);
|
|
66070
66739
|
}
|
|
66071
66740
|
|
|
66072
|
-
const DEFAULT_PRIORITY$
|
|
66741
|
+
const DEFAULT_PRIORITY$8 = 1000;
|
|
66073
66742
|
/**
|
|
66074
66743
|
* @typedef { import('@bpmn-io/properties-panel').GroupDefinition } GroupDefinition
|
|
66075
66744
|
* @typedef { import('@bpmn-io/properties-panel').ListGroupDefinition } ListGroupDefinition
|
|
@@ -66152,7 +66821,7 @@
|
|
|
66152
66821
|
registerProvider(priority, provider) {
|
|
66153
66822
|
if (!provider) {
|
|
66154
66823
|
provider = priority;
|
|
66155
|
-
priority = DEFAULT_PRIORITY$
|
|
66824
|
+
priority = DEFAULT_PRIORITY$8;
|
|
66156
66825
|
}
|
|
66157
66826
|
|
|
66158
66827
|
if (typeof provider.getGroups !== 'function') {
|
|
@@ -66264,13 +66933,6 @@
|
|
|
66264
66933
|
propertiesPanel: ['type', BpmnPropertiesPanelRenderer]
|
|
66265
66934
|
};
|
|
66266
66935
|
|
|
66267
|
-
function useService (type, strict) {
|
|
66268
|
-
const {
|
|
66269
|
-
getService
|
|
66270
|
-
} = F(BpmnPropertiesPanelContext);
|
|
66271
|
-
return getService(type, strict);
|
|
66272
|
-
}
|
|
66273
|
-
|
|
66274
66936
|
function ReferenceSelectEntry(props) {
|
|
66275
66937
|
const {
|
|
66276
66938
|
autoFocusEntry,
|
|
@@ -66926,6 +67588,9 @@
|
|
|
66926
67588
|
return options;
|
|
66927
67589
|
};
|
|
66928
67590
|
|
|
67591
|
+
const businessObject = getBusinessObject(element),
|
|
67592
|
+
path = pathConcat(getPath(errorEventDefinition, businessObject), 'errorRef');
|
|
67593
|
+
const show = useShowCallback(businessObject, path);
|
|
66929
67594
|
return ReferenceSelectEntry({
|
|
66930
67595
|
element,
|
|
66931
67596
|
id: 'errorRef',
|
|
@@ -66933,7 +67598,8 @@
|
|
|
66933
67598
|
autoFocusEntry: 'errorName',
|
|
66934
67599
|
getValue,
|
|
66935
67600
|
setValue,
|
|
66936
|
-
getOptions
|
|
67601
|
+
getOptions,
|
|
67602
|
+
show
|
|
66937
67603
|
});
|
|
66938
67604
|
}
|
|
66939
67605
|
|
|
@@ -66993,13 +67659,17 @@
|
|
|
66993
67659
|
});
|
|
66994
67660
|
};
|
|
66995
67661
|
|
|
67662
|
+
const businessObject = getBusinessObject(element),
|
|
67663
|
+
path = pathConcat(getPath(error, businessObject), 'errorCode');
|
|
67664
|
+
const show = useShowCallback(businessObject, path);
|
|
66996
67665
|
return TextfieldEntry({
|
|
66997
67666
|
element,
|
|
66998
67667
|
id: 'errorCode',
|
|
66999
67668
|
label: translate('Code'),
|
|
67000
67669
|
getValue,
|
|
67001
67670
|
setValue,
|
|
67002
|
-
debounce
|
|
67671
|
+
debounce,
|
|
67672
|
+
show
|
|
67003
67673
|
});
|
|
67004
67674
|
} // helper /////////////////////////
|
|
67005
67675
|
|
|
@@ -67545,6 +68215,9 @@
|
|
|
67545
68215
|
return options;
|
|
67546
68216
|
};
|
|
67547
68217
|
|
|
68218
|
+
const businessObject = getBusinessObject(element),
|
|
68219
|
+
path = pathConcat(getPath(messageEventDefinition, businessObject), 'messageRef');
|
|
68220
|
+
const show = useShowCallback(businessObject, path);
|
|
67548
68221
|
return ReferenceSelectEntry({
|
|
67549
68222
|
element,
|
|
67550
68223
|
id: 'messageRef',
|
|
@@ -67552,7 +68225,8 @@
|
|
|
67552
68225
|
autoFocusEntry: 'messageName',
|
|
67553
68226
|
getValue,
|
|
67554
68227
|
setValue,
|
|
67555
|
-
getOptions
|
|
68228
|
+
getOptions,
|
|
68229
|
+
show
|
|
67556
68230
|
});
|
|
67557
68231
|
}
|
|
67558
68232
|
|
|
@@ -67579,13 +68253,17 @@
|
|
|
67579
68253
|
});
|
|
67580
68254
|
};
|
|
67581
68255
|
|
|
68256
|
+
const businessObject = getBusinessObject(element),
|
|
68257
|
+
path = pathConcat(getPath(message, businessObject), 'name');
|
|
68258
|
+
const show = useShowCallback(businessObject, path);
|
|
67582
68259
|
return TextfieldEntry({
|
|
67583
68260
|
element,
|
|
67584
68261
|
id: 'messageName',
|
|
67585
68262
|
label: translate('Name'),
|
|
67586
68263
|
getValue,
|
|
67587
68264
|
setValue,
|
|
67588
|
-
debounce
|
|
68265
|
+
debounce,
|
|
68266
|
+
show
|
|
67589
68267
|
});
|
|
67590
68268
|
} // helper /////////////////////////
|
|
67591
68269
|
|
|
@@ -69857,6 +70535,13 @@
|
|
|
69857
70535
|
}
|
|
69858
70536
|
|
|
69859
70537
|
const entries = [];
|
|
70538
|
+
|
|
70539
|
+
if (getConditionalEventDefinition(element)) {
|
|
70540
|
+
entries.push(...VariableEventProps({
|
|
70541
|
+
element
|
|
70542
|
+
}));
|
|
70543
|
+
}
|
|
70544
|
+
|
|
69860
70545
|
entries.push({
|
|
69861
70546
|
id: 'conditionType',
|
|
69862
70547
|
component: ConditionType,
|
|
@@ -70134,6 +70819,93 @@
|
|
|
70134
70819
|
setValue: setValue,
|
|
70135
70820
|
debounce: debounce
|
|
70136
70821
|
});
|
|
70822
|
+
}
|
|
70823
|
+
|
|
70824
|
+
function VariableEventProps(props) {
|
|
70825
|
+
const {
|
|
70826
|
+
element
|
|
70827
|
+
} = props;
|
|
70828
|
+
const entries = [];
|
|
70829
|
+
entries.push({
|
|
70830
|
+
id: 'conditionVariableName',
|
|
70831
|
+
component: VariableName,
|
|
70832
|
+
isEdited: isEdited$1
|
|
70833
|
+
});
|
|
70834
|
+
|
|
70835
|
+
if (!is$1(element, 'bpmn:StartEvent')) {
|
|
70836
|
+
entries.push({
|
|
70837
|
+
id: 'conditionVariableEvents',
|
|
70838
|
+
component: VariableEvents,
|
|
70839
|
+
isEdited: isEdited$1
|
|
70840
|
+
});
|
|
70841
|
+
}
|
|
70842
|
+
|
|
70843
|
+
return entries;
|
|
70844
|
+
}
|
|
70845
|
+
|
|
70846
|
+
function VariableName(props) {
|
|
70847
|
+
const {
|
|
70848
|
+
element
|
|
70849
|
+
} = props;
|
|
70850
|
+
const commandStack = useService('commandStack');
|
|
70851
|
+
const translate = useService('translate');
|
|
70852
|
+
const debounce = useService('debounceInput');
|
|
70853
|
+
|
|
70854
|
+
const getValue = () => {
|
|
70855
|
+
return getConditionalEventDefinition(element).get('variableName');
|
|
70856
|
+
};
|
|
70857
|
+
|
|
70858
|
+
const setValue = value => {
|
|
70859
|
+
commandStack.execute('element.updateModdleProperties', {
|
|
70860
|
+
element: element,
|
|
70861
|
+
moddleElement: getConditionalEventDefinition(element),
|
|
70862
|
+
properties: {
|
|
70863
|
+
variableName: value || ''
|
|
70864
|
+
}
|
|
70865
|
+
});
|
|
70866
|
+
};
|
|
70867
|
+
|
|
70868
|
+
return o$2(TextfieldEntry, {
|
|
70869
|
+
element: element,
|
|
70870
|
+
id: "conditionVariableName",
|
|
70871
|
+
label: translate('Variable name'),
|
|
70872
|
+
getValue: getValue,
|
|
70873
|
+
setValue: setValue,
|
|
70874
|
+
debounce: debounce
|
|
70875
|
+
});
|
|
70876
|
+
}
|
|
70877
|
+
|
|
70878
|
+
function VariableEvents(props) {
|
|
70879
|
+
const {
|
|
70880
|
+
element
|
|
70881
|
+
} = props;
|
|
70882
|
+
const commandStack = useService('commandStack');
|
|
70883
|
+
const translate = useService('translate');
|
|
70884
|
+
const debounce = useService('debounceInput');
|
|
70885
|
+
|
|
70886
|
+
const getValue = () => {
|
|
70887
|
+
return getConditionalEventDefinition(element).get('variableEvents');
|
|
70888
|
+
};
|
|
70889
|
+
|
|
70890
|
+
const setValue = value => {
|
|
70891
|
+
commandStack.execute('element.updateModdleProperties', {
|
|
70892
|
+
element: element,
|
|
70893
|
+
moddleElement: getConditionalEventDefinition(element),
|
|
70894
|
+
properties: {
|
|
70895
|
+
variableEvents: value || ''
|
|
70896
|
+
}
|
|
70897
|
+
});
|
|
70898
|
+
};
|
|
70899
|
+
|
|
70900
|
+
return o$2(TextfieldEntry, {
|
|
70901
|
+
element: element,
|
|
70902
|
+
id: "conditionVariableEvents",
|
|
70903
|
+
label: translate('Variable events'),
|
|
70904
|
+
description: translate('Specify more than one variable change event as a comma separated list.'),
|
|
70905
|
+
getValue: getValue,
|
|
70906
|
+
setValue: setValue,
|
|
70907
|
+
debounce: debounce
|
|
70908
|
+
});
|
|
70137
70909
|
} // helper ////////////////////
|
|
70138
70910
|
|
|
70139
70911
|
|
|
@@ -74558,7 +75330,7 @@
|
|
|
74558
75330
|
function JavaClass(props) {
|
|
74559
75331
|
const {
|
|
74560
75332
|
element,
|
|
74561
|
-
businessObject =
|
|
75333
|
+
businessObject = getServiceTaskLikeBusinessObject(element),
|
|
74562
75334
|
id = 'javaClass'
|
|
74563
75335
|
} = props;
|
|
74564
75336
|
const commandStack = useService('commandStack');
|
|
@@ -74591,7 +75363,7 @@
|
|
|
74591
75363
|
function Expression$1(props) {
|
|
74592
75364
|
const {
|
|
74593
75365
|
element,
|
|
74594
|
-
businessObject =
|
|
75366
|
+
businessObject = getServiceTaskLikeBusinessObject(element),
|
|
74595
75367
|
id = 'expression'
|
|
74596
75368
|
} = props;
|
|
74597
75369
|
const commandStack = useService('commandStack');
|
|
@@ -74629,7 +75401,7 @@
|
|
|
74629
75401
|
const commandStack = useService('commandStack');
|
|
74630
75402
|
const translate = useService('translate');
|
|
74631
75403
|
const debounce = useService('debounceInput');
|
|
74632
|
-
const businessObject =
|
|
75404
|
+
const businessObject = getServiceTaskLikeBusinessObject(element);
|
|
74633
75405
|
|
|
74634
75406
|
const getValue = () => {
|
|
74635
75407
|
return businessObject.get('camunda:resultVariable');
|
|
@@ -74658,7 +75430,7 @@
|
|
|
74658
75430
|
function DelegateExpression(props) {
|
|
74659
75431
|
const {
|
|
74660
75432
|
element,
|
|
74661
|
-
businessObject =
|
|
75433
|
+
businessObject = getServiceTaskLikeBusinessObject(element),
|
|
74662
75434
|
id = 'delegateExpression'
|
|
74663
75435
|
} = props;
|
|
74664
75436
|
const commandStack = useService('commandStack');
|
|
@@ -74696,7 +75468,7 @@
|
|
|
74696
75468
|
const commandStack = useService('commandStack');
|
|
74697
75469
|
const translate = useService('translate');
|
|
74698
75470
|
const debounce = useService('debounceInput');
|
|
74699
|
-
const businessObject =
|
|
75471
|
+
const businessObject = getServiceTaskLikeBusinessObject(element);
|
|
74700
75472
|
|
|
74701
75473
|
const getValue = () => {
|
|
74702
75474
|
return businessObject.get('camunda:topic');
|
|
@@ -78373,29 +79145,32 @@
|
|
|
78373
79145
|
|
|
78374
79146
|
applyTemplate(element, newTemplate) {
|
|
78375
79147
|
const oldTemplate = this.get(element);
|
|
78376
|
-
|
|
78377
|
-
|
|
78378
|
-
element: element,
|
|
79148
|
+
const context = {
|
|
79149
|
+
element,
|
|
78379
79150
|
newTemplate,
|
|
78380
79151
|
oldTemplate
|
|
78381
|
-
}
|
|
79152
|
+
};
|
|
78382
79153
|
|
|
78383
|
-
|
|
79154
|
+
this._commandStack.execute('propertiesPanel.camunda.changeTemplate', context);
|
|
79155
|
+
|
|
79156
|
+
return context.element;
|
|
78384
79157
|
}
|
|
78385
79158
|
|
|
78386
79159
|
}
|
|
78387
79160
|
ElementTemplates$1.$inject = ['commandStack'];
|
|
78388
79161
|
|
|
78389
79162
|
const SUPPORTED_SCHEMA_VERSION$1 = getSchemaVersion();
|
|
79163
|
+
const MORPHABLE_TYPES = ['bpmn:Activity', 'bpmn:Event', 'bpmn:Gateway'];
|
|
78390
79164
|
/**
|
|
78391
79165
|
* A element template validator.
|
|
78392
79166
|
*/
|
|
78393
79167
|
|
|
78394
79168
|
class Validator$1 {
|
|
78395
|
-
constructor() {
|
|
79169
|
+
constructor(moddle) {
|
|
78396
79170
|
this._templatesById = {};
|
|
78397
79171
|
this._validTemplates = [];
|
|
78398
79172
|
this._errors = [];
|
|
79173
|
+
this._moddle = moddle;
|
|
78399
79174
|
}
|
|
78400
79175
|
/**
|
|
78401
79176
|
* Adds the templates.
|
|
@@ -78470,7 +79245,14 @@
|
|
|
78470
79245
|
} else {
|
|
78471
79246
|
return this._logError(`template id <${id}> and version <${version}> already used`, template);
|
|
78472
79247
|
}
|
|
78473
|
-
} // (3)
|
|
79248
|
+
} // (3) elementType validation
|
|
79249
|
+
|
|
79250
|
+
|
|
79251
|
+
const elementTypeError = this._validateElementType(template);
|
|
79252
|
+
|
|
79253
|
+
if (elementTypeError) {
|
|
79254
|
+
return elementTypeError;
|
|
79255
|
+
} // (4) JSON schema compliance
|
|
78474
79256
|
|
|
78475
79257
|
|
|
78476
79258
|
const validationResult = validate(template);
|
|
@@ -78488,6 +79270,70 @@
|
|
|
78488
79270
|
|
|
78489
79271
|
return err;
|
|
78490
79272
|
}
|
|
79273
|
+
/**
|
|
79274
|
+
* Validate elementType for given template and return error (if any).
|
|
79275
|
+
*
|
|
79276
|
+
* @param {TemplateDescriptor} template
|
|
79277
|
+
*
|
|
79278
|
+
* @return {Error} validation error, if any
|
|
79279
|
+
*/
|
|
79280
|
+
|
|
79281
|
+
|
|
79282
|
+
_validateElementType(template) {
|
|
79283
|
+
if (template.elementType && template.appliesTo) {
|
|
79284
|
+
const elementType = template.elementType.value,
|
|
79285
|
+
appliesTo = template.appliesTo; // (3.1) template can be applied to elementType
|
|
79286
|
+
// prevents cases where the elementType is not part of appliesTo
|
|
79287
|
+
|
|
79288
|
+
if (!appliesTo.find(type => this._isType(elementType, type))) {
|
|
79289
|
+
return this._logError(`template does not apply to requested element type <${elementType}>`, template);
|
|
79290
|
+
} // (3.2) template only applies to same type of element
|
|
79291
|
+
// prevent elementTemplates to morph into incompatible types, e.g. Task -> SequenceFlow
|
|
79292
|
+
|
|
79293
|
+
|
|
79294
|
+
for (const sourceType of appliesTo) {
|
|
79295
|
+
if (!this._canMorph(sourceType, elementType)) {
|
|
79296
|
+
return this._logError(`can not morph <${sourceType}> into <${elementType}>`, template);
|
|
79297
|
+
}
|
|
79298
|
+
}
|
|
79299
|
+
}
|
|
79300
|
+
}
|
|
79301
|
+
/**
|
|
79302
|
+
* Check if given type is a subtype of given base type.
|
|
79303
|
+
*
|
|
79304
|
+
* @param {String} type
|
|
79305
|
+
* @param {String} baseType
|
|
79306
|
+
* @returns {Boolean}
|
|
79307
|
+
*/
|
|
79308
|
+
|
|
79309
|
+
|
|
79310
|
+
_isType(type, baseType) {
|
|
79311
|
+
const moddleType = this._moddle.getType(type);
|
|
79312
|
+
|
|
79313
|
+
return moddleType && baseType in this._moddle.getElementDescriptor(moddleType).allTypesByName;
|
|
79314
|
+
}
|
|
79315
|
+
/**
|
|
79316
|
+
* Checks if a given type can be morphed into another type.
|
|
79317
|
+
*
|
|
79318
|
+
* @param {String} sourceType
|
|
79319
|
+
* @param {String} targetType
|
|
79320
|
+
* @returns {Boolean}
|
|
79321
|
+
*/
|
|
79322
|
+
|
|
79323
|
+
|
|
79324
|
+
_canMorph(sourceType, targetType) {
|
|
79325
|
+
if (sourceType === targetType) {
|
|
79326
|
+
return true;
|
|
79327
|
+
}
|
|
79328
|
+
|
|
79329
|
+
const baseType = MORPHABLE_TYPES.find(type => this._isType(sourceType, type));
|
|
79330
|
+
|
|
79331
|
+
if (!baseType) {
|
|
79332
|
+
return false;
|
|
79333
|
+
}
|
|
79334
|
+
|
|
79335
|
+
return this._isType(targetType, baseType);
|
|
79336
|
+
}
|
|
78491
79337
|
/**
|
|
78492
79338
|
* Log an error for the given template
|
|
78493
79339
|
*
|
|
@@ -78587,13 +79433,15 @@
|
|
|
78587
79433
|
* @param {Array<TemplateDescriptor>|Function} loadTemplates
|
|
78588
79434
|
* @param {EventBus} eventBus
|
|
78589
79435
|
* @param {ElementTemplates} elementTemplates
|
|
79436
|
+
* @param {Moddle} moddle
|
|
78590
79437
|
*/
|
|
78591
79438
|
|
|
78592
79439
|
class ElementTemplatesLoader$1 {
|
|
78593
|
-
constructor(loadTemplates, eventBus, elementTemplates) {
|
|
79440
|
+
constructor(loadTemplates, eventBus, elementTemplates, moddle) {
|
|
78594
79441
|
this._loadTemplates = loadTemplates;
|
|
78595
79442
|
this._eventBus = eventBus;
|
|
78596
79443
|
this._elementTemplates = elementTemplates;
|
|
79444
|
+
this._moddle = moddle;
|
|
78597
79445
|
eventBus.on('diagram.init', () => {
|
|
78598
79446
|
this.reload();
|
|
78599
79447
|
});
|
|
@@ -78624,8 +79472,9 @@
|
|
|
78624
79472
|
}
|
|
78625
79473
|
|
|
78626
79474
|
setTemplates(templates) {
|
|
78627
|
-
const elementTemplates = this._elementTemplates
|
|
78628
|
-
|
|
79475
|
+
const elementTemplates = this._elementTemplates,
|
|
79476
|
+
moddle = this._moddle;
|
|
79477
|
+
const validator = new Validator$1(moddle).addAll(templates);
|
|
78629
79478
|
const errors = validator.getErrors(),
|
|
78630
79479
|
validTemplates = validator.getValidTemplates();
|
|
78631
79480
|
elementTemplates.set(validTemplates);
|
|
@@ -78648,46 +79497,7 @@
|
|
|
78648
79497
|
}
|
|
78649
79498
|
|
|
78650
79499
|
}
|
|
78651
|
-
ElementTemplatesLoader$1.$inject = ['config.elementTemplates', 'eventBus', 'elementTemplates'];
|
|
78652
|
-
|
|
78653
|
-
/**
|
|
78654
|
-
* This function catches the <moddleCopy.canCopyProperty> event
|
|
78655
|
-
* and only allows the copy of the modelerTemplate property
|
|
78656
|
-
* if the element's type or its parent's is in
|
|
78657
|
-
* the list of elements the template applies to.
|
|
78658
|
-
*/
|
|
78659
|
-
|
|
78660
|
-
function ReplaceBehavior(elementTemplates, eventBus) {
|
|
78661
|
-
eventBus.on('moddleCopy.canCopyProperty', function (context) {
|
|
78662
|
-
const {
|
|
78663
|
-
parent,
|
|
78664
|
-
property,
|
|
78665
|
-
propertyName
|
|
78666
|
-
} = context;
|
|
78667
|
-
|
|
78668
|
-
if (propertyName !== 'modelerTemplate') {
|
|
78669
|
-
return;
|
|
78670
|
-
}
|
|
78671
|
-
|
|
78672
|
-
const elementTemplate = elementTemplates.get(property);
|
|
78673
|
-
|
|
78674
|
-
if (!elementTemplate) {
|
|
78675
|
-
return false;
|
|
78676
|
-
}
|
|
78677
|
-
|
|
78678
|
-
const {
|
|
78679
|
-
appliesTo
|
|
78680
|
-
} = elementTemplate;
|
|
78681
|
-
const allowed = appliesTo.reduce((allowed, type) => {
|
|
78682
|
-
return allowed || is$1(parent, type);
|
|
78683
|
-
}, false);
|
|
78684
|
-
|
|
78685
|
-
if (!allowed) {
|
|
78686
|
-
return false;
|
|
78687
|
-
}
|
|
78688
|
-
});
|
|
78689
|
-
}
|
|
78690
|
-
ReplaceBehavior.$inject = ['elementTemplates', 'eventBus'];
|
|
79500
|
+
ElementTemplatesLoader$1.$inject = ['config.elementTemplates', 'eventBus', 'elementTemplates', 'moddle'];
|
|
78691
79501
|
|
|
78692
79502
|
function unlinkTemplate$1(element, injector) {
|
|
78693
79503
|
const modeling = injector.get('modeling');
|
|
@@ -79457,6 +80267,61 @@
|
|
|
79457
80267
|
});
|
|
79458
80268
|
}
|
|
79459
80269
|
|
|
80270
|
+
/**
|
|
80271
|
+
* This Behavior checks if the new element's type is in
|
|
80272
|
+
* the list of elements the template applies to and unlinks
|
|
80273
|
+
* it if not.
|
|
80274
|
+
*/
|
|
80275
|
+
|
|
80276
|
+
class ReplaceBehavior extends CommandInterceptor$1 {
|
|
80277
|
+
constructor(elementTemplates, injector) {
|
|
80278
|
+
super(injector.get('eventBus'));
|
|
80279
|
+
this.postExecuted('shape.replace', function (e) {
|
|
80280
|
+
var context = e.context,
|
|
80281
|
+
oldShape = context.oldShape,
|
|
80282
|
+
oldBo = getBusinessObject(oldShape),
|
|
80283
|
+
newShape = context.newShape,
|
|
80284
|
+
newBo = getBusinessObject(newShape);
|
|
80285
|
+
|
|
80286
|
+
if (!oldBo.modelerTemplate) {
|
|
80287
|
+
return;
|
|
80288
|
+
}
|
|
80289
|
+
|
|
80290
|
+
const template = newBo.modelerTemplate;
|
|
80291
|
+
const version = newBo.modelerTemplateVersion;
|
|
80292
|
+
const elementTemplate = elementTemplates.get(template, version);
|
|
80293
|
+
|
|
80294
|
+
if (!elementTemplate) {
|
|
80295
|
+
unlinkTemplate$1(newShape, injector);
|
|
80296
|
+
return;
|
|
80297
|
+
}
|
|
80298
|
+
|
|
80299
|
+
const {
|
|
80300
|
+
appliesTo,
|
|
80301
|
+
elementType
|
|
80302
|
+
} = elementTemplate;
|
|
80303
|
+
|
|
80304
|
+
if (elementType) {
|
|
80305
|
+
if (!is$1(newShape, elementType.value)) {
|
|
80306
|
+
unlinkTemplate$1(newShape, injector);
|
|
80307
|
+
}
|
|
80308
|
+
|
|
80309
|
+
return;
|
|
80310
|
+
}
|
|
80311
|
+
|
|
80312
|
+
const allowed = appliesTo.reduce((allowed, type) => {
|
|
80313
|
+
return allowed || is$1(newBo, type);
|
|
80314
|
+
}, false);
|
|
80315
|
+
|
|
80316
|
+
if (!allowed) {
|
|
80317
|
+
unlinkTemplate$1(newShape, injector);
|
|
80318
|
+
}
|
|
80319
|
+
});
|
|
80320
|
+
}
|
|
80321
|
+
|
|
80322
|
+
}
|
|
80323
|
+
ReplaceBehavior.$inject = ['elementTemplates', 'injector'];
|
|
80324
|
+
|
|
79460
80325
|
/**
|
|
79461
80326
|
* Converts legacy scopes descriptor to newer supported array structure.
|
|
79462
80327
|
*
|
|
@@ -79804,8 +80669,9 @@
|
|
|
79804
80669
|
*/
|
|
79805
80670
|
|
|
79806
80671
|
class ChangeElementTemplateHandler {
|
|
79807
|
-
constructor(bpmnFactory, commandStack, modeling) {
|
|
80672
|
+
constructor(bpmnFactory, bpmnReplace, commandStack, modeling) {
|
|
79808
80673
|
this._bpmnFactory = bpmnFactory;
|
|
80674
|
+
this._bpmnReplace = bpmnReplace;
|
|
79809
80675
|
this._commandStack = commandStack;
|
|
79810
80676
|
this._modeling = modeling;
|
|
79811
80677
|
}
|
|
@@ -79823,14 +80689,15 @@
|
|
|
79823
80689
|
|
|
79824
80690
|
|
|
79825
80691
|
preExecute(context) {
|
|
79826
|
-
const
|
|
79827
|
-
|
|
79828
|
-
|
|
80692
|
+
const newTemplate = context.newTemplate,
|
|
80693
|
+
oldTemplate = context.oldTemplate;
|
|
80694
|
+
let element = context.element; // update camunda:modelerTemplate attribute
|
|
79829
80695
|
|
|
79830
80696
|
this._updateCamundaModelerTemplate(element, newTemplate);
|
|
79831
80697
|
|
|
79832
80698
|
if (newTemplate) {
|
|
79833
|
-
// update properties
|
|
80699
|
+
element = context.element = this._updateTaskType(element, newTemplate); // update properties
|
|
80700
|
+
|
|
79834
80701
|
this._updateProperties(element, oldTemplate, newTemplate); // update camunda:ExecutionListener properties
|
|
79835
80702
|
|
|
79836
80703
|
|
|
@@ -80551,9 +81418,34 @@
|
|
|
80551
81418
|
}
|
|
80552
81419
|
});
|
|
80553
81420
|
}
|
|
81421
|
+
/**
|
|
81422
|
+
* Replaces the element with the specified elementType
|
|
81423
|
+
*
|
|
81424
|
+
* @param {djs.model.Base} element
|
|
81425
|
+
* @param {Object} newTemplate
|
|
81426
|
+
*/
|
|
81427
|
+
|
|
81428
|
+
|
|
81429
|
+
_updateTaskType(element, newTemplate) {
|
|
81430
|
+
// determine new task type
|
|
81431
|
+
const newType = newTemplate.elementType;
|
|
81432
|
+
|
|
81433
|
+
if (!newType) {
|
|
81434
|
+
return element;
|
|
81435
|
+
} // don't replace Task that is already the correct type
|
|
81436
|
+
|
|
81437
|
+
|
|
81438
|
+
if (element.$type === newType.value) {
|
|
81439
|
+
return element;
|
|
81440
|
+
}
|
|
81441
|
+
|
|
81442
|
+
return this._bpmnReplace.replaceElement(element, {
|
|
81443
|
+
type: newType.value
|
|
81444
|
+
});
|
|
81445
|
+
}
|
|
80554
81446
|
|
|
80555
81447
|
}
|
|
80556
|
-
ChangeElementTemplateHandler.$inject = ['bpmnFactory', 'commandStack', 'modeling']; // helpers //////////
|
|
81448
|
+
ChangeElementTemplateHandler.$inject = ['bpmnFactory', 'bpmnReplace', 'commandStack', 'modeling']; // helpers //////////
|
|
80557
81449
|
|
|
80558
81450
|
/**
|
|
80559
81451
|
* Find old business object matching specified old property.
|
|
@@ -81025,7 +81917,8 @@
|
|
|
81025
81917
|
id,
|
|
81026
81918
|
label,
|
|
81027
81919
|
component: Group,
|
|
81028
|
-
entries: []
|
|
81920
|
+
entries: [],
|
|
81921
|
+
shouldOpen: true
|
|
81029
81922
|
};
|
|
81030
81923
|
properties.forEach((property, index) => {
|
|
81031
81924
|
const entry = createCustomEntry(`custom-entry-${templateId}-${index}`, element, property, scope);
|
|
@@ -82557,147 +83450,6 @@
|
|
|
82557
83450
|
Modeler$1.prototype._extensionModules
|
|
82558
83451
|
);
|
|
82559
83452
|
|
|
82560
|
-
var DEFAULT_PRIORITY$7 = 1000;
|
|
82561
|
-
|
|
82562
|
-
/**
|
|
82563
|
-
* A utility that can be used to plug-in into the command execution for
|
|
82564
|
-
* extension and/or validation.
|
|
82565
|
-
*
|
|
82566
|
-
* @param {EventBus} eventBus
|
|
82567
|
-
*
|
|
82568
|
-
* @example
|
|
82569
|
-
*
|
|
82570
|
-
* import inherits from 'inherits';
|
|
82571
|
-
*
|
|
82572
|
-
* import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
|
82573
|
-
*
|
|
82574
|
-
* function CommandLogger(eventBus) {
|
|
82575
|
-
* CommandInterceptor.call(this, eventBus);
|
|
82576
|
-
*
|
|
82577
|
-
* this.preExecute(function(event) {
|
|
82578
|
-
* console.log('command pre-execute', event);
|
|
82579
|
-
* });
|
|
82580
|
-
* }
|
|
82581
|
-
*
|
|
82582
|
-
* inherits(CommandLogger, CommandInterceptor);
|
|
82583
|
-
*
|
|
82584
|
-
*/
|
|
82585
|
-
function CommandInterceptor$1(eventBus) {
|
|
82586
|
-
this._eventBus = eventBus;
|
|
82587
|
-
}
|
|
82588
|
-
|
|
82589
|
-
CommandInterceptor$1.$inject = [ 'eventBus' ];
|
|
82590
|
-
|
|
82591
|
-
function unwrapEvent$1(fn, that) {
|
|
82592
|
-
return function(event) {
|
|
82593
|
-
return fn.call(that || null, event.context, event.command, event);
|
|
82594
|
-
};
|
|
82595
|
-
}
|
|
82596
|
-
|
|
82597
|
-
/**
|
|
82598
|
-
* Register an interceptor for a command execution
|
|
82599
|
-
*
|
|
82600
|
-
* @param {string|Array<string>} [events] list of commands to register on
|
|
82601
|
-
* @param {string} [hook] command hook, i.e. preExecute, executed to listen on
|
|
82602
|
-
* @param {number} [priority] the priority on which to hook into the execution
|
|
82603
|
-
* @param {Function} handlerFn interceptor to be invoked with (event)
|
|
82604
|
-
* @param {boolean} unwrap if true, unwrap the event and pass (context, command, event) to the
|
|
82605
|
-
* listener instead
|
|
82606
|
-
* @param {Object} [that] Pass context (`this`) to the handler function
|
|
82607
|
-
*/
|
|
82608
|
-
CommandInterceptor$1.prototype.on = function(events, hook, priority, handlerFn, unwrap, that) {
|
|
82609
|
-
|
|
82610
|
-
if (isFunction(hook) || isNumber(hook)) {
|
|
82611
|
-
that = unwrap;
|
|
82612
|
-
unwrap = handlerFn;
|
|
82613
|
-
handlerFn = priority;
|
|
82614
|
-
priority = hook;
|
|
82615
|
-
hook = null;
|
|
82616
|
-
}
|
|
82617
|
-
|
|
82618
|
-
if (isFunction(priority)) {
|
|
82619
|
-
that = unwrap;
|
|
82620
|
-
unwrap = handlerFn;
|
|
82621
|
-
handlerFn = priority;
|
|
82622
|
-
priority = DEFAULT_PRIORITY$7;
|
|
82623
|
-
}
|
|
82624
|
-
|
|
82625
|
-
if (isObject(unwrap)) {
|
|
82626
|
-
that = unwrap;
|
|
82627
|
-
unwrap = false;
|
|
82628
|
-
}
|
|
82629
|
-
|
|
82630
|
-
if (!isFunction(handlerFn)) {
|
|
82631
|
-
throw new Error('handlerFn must be a function');
|
|
82632
|
-
}
|
|
82633
|
-
|
|
82634
|
-
if (!isArray(events)) {
|
|
82635
|
-
events = [ events ];
|
|
82636
|
-
}
|
|
82637
|
-
|
|
82638
|
-
var eventBus = this._eventBus;
|
|
82639
|
-
|
|
82640
|
-
forEach(events, function(event) {
|
|
82641
|
-
|
|
82642
|
-
// concat commandStack(.event)?(.hook)?
|
|
82643
|
-
var fullEvent = [ 'commandStack', event, hook ].filter(function(e) { return e; }).join('.');
|
|
82644
|
-
|
|
82645
|
-
eventBus.on(fullEvent, priority, unwrap ? unwrapEvent$1(handlerFn, that) : handlerFn, that);
|
|
82646
|
-
});
|
|
82647
|
-
};
|
|
82648
|
-
|
|
82649
|
-
|
|
82650
|
-
var hooks$1 = [
|
|
82651
|
-
'canExecute',
|
|
82652
|
-
'preExecute',
|
|
82653
|
-
'preExecuted',
|
|
82654
|
-
'execute',
|
|
82655
|
-
'executed',
|
|
82656
|
-
'postExecute',
|
|
82657
|
-
'postExecuted',
|
|
82658
|
-
'revert',
|
|
82659
|
-
'reverted'
|
|
82660
|
-
];
|
|
82661
|
-
|
|
82662
|
-
/*
|
|
82663
|
-
* Install hook shortcuts
|
|
82664
|
-
*
|
|
82665
|
-
* This will generate the CommandInterceptor#(preExecute|...|reverted) methods
|
|
82666
|
-
* which will in term forward to CommandInterceptor#on.
|
|
82667
|
-
*/
|
|
82668
|
-
forEach(hooks$1, function(hook) {
|
|
82669
|
-
|
|
82670
|
-
/**
|
|
82671
|
-
* {canExecute|preExecute|preExecuted|execute|executed|postExecute|postExecuted|revert|reverted}
|
|
82672
|
-
*
|
|
82673
|
-
* A named hook for plugging into the command execution
|
|
82674
|
-
*
|
|
82675
|
-
* @param {string|Array<string>} [events] list of commands to register on
|
|
82676
|
-
* @param {number} [priority] the priority on which to hook into the execution
|
|
82677
|
-
* @param {Function} handlerFn interceptor to be invoked with (event)
|
|
82678
|
-
* @param {boolean} [unwrap=false] if true, unwrap the event and pass (context, command, event) to the
|
|
82679
|
-
* listener instead
|
|
82680
|
-
* @param {Object} [that] Pass context (`this`) to the handler function
|
|
82681
|
-
*/
|
|
82682
|
-
CommandInterceptor$1.prototype[hook] = function(events, priority, handlerFn, unwrap, that) {
|
|
82683
|
-
|
|
82684
|
-
if (isFunction(events) || isNumber(events)) {
|
|
82685
|
-
that = unwrap;
|
|
82686
|
-
unwrap = handlerFn;
|
|
82687
|
-
handlerFn = priority;
|
|
82688
|
-
priority = events;
|
|
82689
|
-
events = null;
|
|
82690
|
-
}
|
|
82691
|
-
|
|
82692
|
-
this.on(events, hook, priority, handlerFn, unwrap, that);
|
|
82693
|
-
};
|
|
82694
|
-
});
|
|
82695
|
-
|
|
82696
|
-
var CommandInterceptor$2 = /*#__PURE__*/Object.freeze({
|
|
82697
|
-
__proto__: null,
|
|
82698
|
-
'default': CommandInterceptor$1
|
|
82699
|
-
});
|
|
82700
|
-
|
|
82701
83453
|
/**
|
|
82702
83454
|
* Get extension elements of business object. Optionally filter by type.
|
|
82703
83455
|
*
|
|
@@ -82751,7 +83503,7 @@
|
|
|
82751
83503
|
});
|
|
82752
83504
|
}
|
|
82753
83505
|
|
|
82754
|
-
const HIGH_PRIORITY$
|
|
83506
|
+
const HIGH_PRIORITY$m = 5000;
|
|
82755
83507
|
|
|
82756
83508
|
|
|
82757
83509
|
/**
|
|
@@ -82765,7 +83517,7 @@
|
|
|
82765
83517
|
this.postExecute([
|
|
82766
83518
|
'element.updateProperties',
|
|
82767
83519
|
'element.updateModdleProperties'
|
|
82768
|
-
], HIGH_PRIORITY$
|
|
83520
|
+
], HIGH_PRIORITY$m, function(context) {
|
|
82769
83521
|
const {
|
|
82770
83522
|
element,
|
|
82771
83523
|
moddleElement,
|
|
@@ -82794,7 +83546,7 @@
|
|
|
82794
83546
|
'eventBus'
|
|
82795
83547
|
];
|
|
82796
83548
|
|
|
82797
|
-
const HIGH_PRIORITY$
|
|
83549
|
+
const HIGH_PRIORITY$n = 5000;
|
|
82798
83550
|
|
|
82799
83551
|
|
|
82800
83552
|
/**
|
|
@@ -82809,7 +83561,7 @@
|
|
|
82809
83561
|
this.postExecute([
|
|
82810
83562
|
'element.updateProperties',
|
|
82811
83563
|
'element.updateModdleProperties'
|
|
82812
|
-
], HIGH_PRIORITY$
|
|
83564
|
+
], HIGH_PRIORITY$n, function(context) {
|
|
82813
83565
|
const {
|
|
82814
83566
|
element,
|
|
82815
83567
|
moddleElement,
|
|
@@ -82879,7 +83631,7 @@
|
|
|
82879
83631
|
});
|
|
82880
83632
|
}
|
|
82881
83633
|
|
|
82882
|
-
const HIGH_PRIORITY$
|
|
83634
|
+
const HIGH_PRIORITY$o = 5000;
|
|
82883
83635
|
|
|
82884
83636
|
|
|
82885
83637
|
/**
|
|
@@ -82893,7 +83645,7 @@
|
|
|
82893
83645
|
this.preExecute([
|
|
82894
83646
|
'element.updateProperties',
|
|
82895
83647
|
'element.updateModdleProperties',
|
|
82896
|
-
], HIGH_PRIORITY$
|
|
83648
|
+
], HIGH_PRIORITY$o, function(context) {
|
|
82897
83649
|
const {
|
|
82898
83650
|
element,
|
|
82899
83651
|
moddleElement,
|
|
@@ -82988,7 +83740,7 @@
|
|
|
82988
83740
|
'eventBus'
|
|
82989
83741
|
];
|
|
82990
83742
|
|
|
82991
|
-
const HIGH_PRIORITY$
|
|
83743
|
+
const HIGH_PRIORITY$p = 5000;
|
|
82992
83744
|
|
|
82993
83745
|
|
|
82994
83746
|
/**
|
|
@@ -83002,7 +83754,7 @@
|
|
|
83002
83754
|
this.preExecute([
|
|
83003
83755
|
'element.updateProperties',
|
|
83004
83756
|
'element.updateModdleProperties'
|
|
83005
|
-
], HIGH_PRIORITY$
|
|
83757
|
+
], HIGH_PRIORITY$p, function(context) {
|
|
83006
83758
|
const {
|
|
83007
83759
|
element,
|
|
83008
83760
|
moddleElement,
|
|
@@ -84403,8 +85155,6 @@
|
|
|
84403
85155
|
emumerations: emumerations
|
|
84404
85156
|
};
|
|
84405
85157
|
|
|
84406
|
-
var require$$0 = /*@__PURE__*/getAugmentedNamespace(index_esm);
|
|
84407
|
-
|
|
84408
85158
|
var isFunction$1 = require$$0.isFunction,
|
|
84409
85159
|
isObject$1 = require$$0.isObject,
|
|
84410
85160
|
some$1 = require$$0.some;
|