camunda-bpmn-js 0.13.0-alpha.0 → 0.13.0-alpha.1

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.
@@ -8153,6 +8153,20 @@
8153
8153
  * @param {Object} options
8154
8154
  */
8155
8155
  Properties.prototype.define = function(target, name, options) {
8156
+
8157
+ if (!options.writable) {
8158
+
8159
+ var value = options.value;
8160
+
8161
+ // use getters for read-only variables to support ES6 proxies
8162
+ // cf. https://github.com/bpmn-io/internal-docs/issues/386
8163
+ options = assign({}, options, {
8164
+ get: function() { return value; }
8165
+ });
8166
+
8167
+ delete options.value;
8168
+ }
8169
+
8156
8170
  Object.defineProperty(target, name, options);
8157
8171
  };
8158
8172
 
@@ -25555,14 +25569,23 @@
25555
25569
  // the touch recognizer
25556
25570
  var recognizer;
25557
25571
 
25558
- function handler(type) {
25572
+ function handler(type, buttonType) {
25559
25573
 
25560
25574
  return function(event) {
25561
25575
 
25562
- interactionEvents.fire(type, event);
25576
+ var gfx = getGfx(event.target),
25577
+ element = gfx && elementRegistry.get(gfx);
25578
+
25579
+ // translate into an actual mouse click event
25580
+ if (buttonType) {
25581
+ event.srcEvent.button = buttonType;
25582
+ }
25583
+
25584
+ return interactionEvents.fire(type, event, element);
25563
25585
  };
25564
25586
  }
25565
25587
 
25588
+
25566
25589
  function getGfx(target) {
25567
25590
  var node = closest(target, 'svg, .djs-element', true);
25568
25591
  return node;
@@ -25573,10 +25596,6 @@
25573
25596
  // touch recognizer
25574
25597
  recognizer = createTouchRecognizer(svg);
25575
25598
 
25576
- recognizer.on('doubletap', handler('element.dblclick'));
25577
-
25578
- recognizer.on('tap', handler('element.click'));
25579
-
25580
25599
  function startGrabCanvas(event) {
25581
25600
 
25582
25601
  var lx = 0, ly = 0;
@@ -25644,6 +25663,9 @@
25644
25663
  recognizer.on('pinchcancel', end);
25645
25664
  }
25646
25665
 
25666
+ recognizer.on('tap', handler('element.click'));
25667
+ recognizer.on('doubletap', handler('element.dblclick', 1));
25668
+
25647
25669
  recognizer.on('panstart', startGrab);
25648
25670
  recognizer.on('press', startGrab);
25649
25671
 
@@ -35767,7 +35789,7 @@
35767
35789
  return this._createEntries(element, DATA_OBJECT_REFERENCE);
35768
35790
  }
35769
35791
 
35770
- if (is$1(businessObject, 'bpmn:DataStoreReference')) {
35792
+ if (is$1(businessObject, 'bpmn:DataStoreReference') && !is$1(element.parent, 'bpmn:Collaboration')) {
35771
35793
  return this._createEntries(element, DATA_STORE_REFERENCE);
35772
35794
  }
35773
35795
 
@@ -39768,7 +39790,7 @@
39768
39790
 
39769
39791
  function activateDirectEdit(element, force) {
39770
39792
  if (force ||
39771
- isAny(element, [ 'bpmn:Task', 'bpmn:TextAnnotation', 'bpmn:Group' ]) ||
39793
+ isAny(element, [ 'bpmn:Task', 'bpmn:TextAnnotation' ]) ||
39772
39794
  isCollapsedSubProcess(element)) {
39773
39795
 
39774
39796
  directEditing.activate(element);
@@ -41110,122 +41132,97 @@
41110
41132
  }
41111
41133
  });
41112
41134
 
41113
- function ensureCollaboration(context) {
41114
- var parent = context.parent,
41115
- collaboration;
41116
-
41135
+ // turn process into collaboration when creating first participant
41136
+ function getOrCreateCollaboration() {
41117
41137
  var rootElement = canvas.getRootElement();
41118
41138
 
41119
41139
  if (is$1(rootElement, 'bpmn:Collaboration')) {
41120
- collaboration = rootElement;
41121
- } else {
41122
-
41123
- // update root element by making collaboration
41124
- collaboration = modeling.makeCollaboration();
41125
-
41126
- // re-use process when creating first participant
41127
- context.process = parent;
41140
+ return rootElement;
41128
41141
  }
41129
41142
 
41130
- context.parent = collaboration;
41143
+ return modeling.makeCollaboration();
41131
41144
  }
41132
41145
 
41133
- // turn process into collaboration before adding participant
41134
- this.preExecute('shape.create', function(context) {
41135
- var parent = context.parent,
41136
- shape = context.shape;
41137
-
41138
- if (is$1(shape, 'bpmn:Participant') && is$1(parent, 'bpmn:Process')) {
41139
- ensureCollaboration(context);
41140
- }
41141
- }, true);
41142
-
41143
- this.execute('shape.create', function(context) {
41144
- var process = context.process,
41145
- shape = context.shape;
41146
-
41147
- if (process) {
41148
- context.oldProcessRef = shape.businessObject.processRef;
41149
-
41150
- // re-use process when creating first participant
41151
- shape.businessObject.processRef = process.businessObject;
41152
- }
41153
- }, true);
41146
+ // when creating mutliple elements through `elements.create` parent must be set to collaboration
41147
+ // and passed to `shape.create` as hint
41148
+ this.preExecute('elements.create', HIGH_PRIORITY$9, function(context) {
41149
+ var elements = context.elements,
41150
+ parent = context.parent,
41151
+ participant = findParticipant(elements),
41152
+ hints;
41154
41153
 
41155
- this.revert('shape.create', function(context) {
41156
- var process = context.process,
41157
- shape = context.shape;
41154
+ if (participant && is$1(parent, 'bpmn:Process')) {
41155
+ context.parent = getOrCreateCollaboration();
41158
41156
 
41159
- if (process) {
41157
+ hints = context.hints = context.hints || {};
41160
41158
 
41161
- // re-use process when creating first participant
41162
- shape.businessObject.processRef = context.oldProcessRef;
41159
+ hints.participant = participant;
41160
+ hints.process = parent;
41161
+ hints.processRef = getBusinessObject(participant).get('processRef');
41163
41162
  }
41164
41163
  }, true);
41165
41164
 
41166
- this.postExecute('shape.create', function(context) {
41167
- var process = context.process,
41165
+ // when creating single shape through `shape.create` parent must be set to collaboration
41166
+ // unless it was already set through `elements.create`
41167
+ this.preExecute('shape.create', function(context) {
41168
+ var parent = context.parent,
41168
41169
  shape = context.shape;
41169
41170
 
41170
- if (process) {
41171
-
41172
- // move children from process to participant
41173
- var processChildren = process.children.slice();
41171
+ if (is$1(shape, 'bpmn:Participant') && is$1(parent, 'bpmn:Process')) {
41172
+ context.parent = getOrCreateCollaboration();
41174
41173
 
41175
- modeling.moveElements(processChildren, { x: 0, y: 0 }, shape);
41174
+ context.process = parent;
41175
+ context.processRef = getBusinessObject(shape).get('processRef');
41176
41176
  }
41177
-
41178
41177
  }, true);
41179
41178
 
41180
- // turn process into collaboration when creating participants
41181
- this.preExecute('elements.create', HIGH_PRIORITY$9, function(context) {
41182
- var elements = context.elements,
41183
- parent = context.parent,
41184
- participant;
41185
-
41186
- var hasParticipants = findParticipant(elements);
41187
-
41188
- if (hasParticipants && is$1(parent, 'bpmn:Process')) {
41189
- ensureCollaboration(context);
41190
-
41191
- participant = findParticipant(elements);
41179
+ // #execute necessary because #preExecute not called on CommandStack#redo
41180
+ this.execute('shape.create', function(context) {
41181
+ var hints = context.hints || {},
41182
+ process = context.process || hints.process,
41183
+ shape = context.shape,
41184
+ participant = hints.participant;
41192
41185
 
41193
- context.oldProcessRef = participant.businessObject.processRef;
41186
+ // both shape.create and elements.create must be handled
41187
+ if (process && (!participant || shape === participant)) {
41194
41188
 
41195
- // re-use process when creating first participant
41196
- participant.businessObject.processRef = parent.businessObject;
41189
+ // monkey-patch process ref
41190
+ getBusinessObject(shape).set('processRef', getBusinessObject(process));
41197
41191
  }
41198
41192
  }, true);
41199
41193
 
41200
- this.revert('elements.create', function(context) {
41201
- var elements = context.elements,
41202
- process = context.process,
41203
- participant;
41194
+ this.revert('shape.create', function(context) {
41195
+ var hints = context.hints || {},
41196
+ process = context.process || hints.process,
41197
+ processRef = context.processRef || hints.processRef,
41198
+ shape = context.shape,
41199
+ participant = hints.participant;
41204
41200
 
41205
- if (process) {
41206
- participant = findParticipant(elements);
41201
+ // both shape.create and elements.create must be handled
41202
+ if (process && (!participant || shape === participant)) {
41207
41203
 
41208
- // re-use process when creating first participant
41209
- participant.businessObject.processRef = context.oldProcessRef;
41204
+ // monkey-patch process ref
41205
+ getBusinessObject(shape).set('processRef', processRef);
41210
41206
  }
41211
41207
  }, true);
41212
41208
 
41213
- this.postExecute('elements.create', function(context) {
41214
- var elements = context.elements,
41215
- process = context.process,
41216
- participant;
41209
+ this.postExecute('shape.create', function(context) {
41210
+ var hints = context.hints || {},
41211
+ process = context.process || context.hints.process,
41212
+ shape = context.shape,
41213
+ participant = hints.participant;
41217
41214
 
41218
41215
  if (process) {
41219
- participant = findParticipant(elements);
41220
-
41221
- // move children from process to first participant
41222
- var processChildren = process.children.slice();
41216
+ var children = process.children.slice();
41223
41217
 
41224
- modeling.moveElements(processChildren, { x: 0, y: 0 }, participant);
41218
+ // both shape.create and elements.create must be handled
41219
+ if (!participant) {
41220
+ modeling.moveElements(children, { x: 0, y: 0 }, shape);
41221
+ } else if (shape === participant) {
41222
+ modeling.moveElements(children, { x: 0, y: 0 }, participant);
41223
+ }
41225
41224
  }
41226
-
41227
41225
  }, true);
41228
-
41229
41226
  }
41230
41227
 
41231
41228
  CreateParticipantBehavior$1.$inject = [
@@ -44646,7 +44643,9 @@
44646
44643
  var rootElement = canvas.getRootElement(),
44647
44644
  rootElementBo = rootElement.businessObject;
44648
44645
 
44649
- moddle.ids.unclaim(rootElementBo.id);
44646
+ if (is$1(rootElement, 'bpmn:Collaboration')) {
44647
+ moddle.ids.unclaim(rootElementBo.id);
44648
+ }
44650
44649
  });
44651
44650
  }
44652
44651
 
@@ -48594,6 +48593,10 @@
48594
48593
  };
48595
48594
 
48596
48595
  BpmnFactory.prototype._ensureId = function(element) {
48596
+ if (element.id) {
48597
+ this._model.ids.claim(element.id, element);
48598
+ return;
48599
+ }
48597
48600
 
48598
48601
  // generate semantic ids for elements
48599
48602
  // bpmn:SequenceFlow -> SequenceFlow_ID
@@ -48664,7 +48667,8 @@
48664
48667
 
48665
48668
  BpmnFactory.prototype.createDiEdge = function(semantic, waypoints, attrs) {
48666
48669
  return this.create('bpmndi:BPMNEdge', assign({
48667
- bpmnElement: semantic
48670
+ bpmnElement: semantic,
48671
+ waypoint: this.createDiWaypoints(waypoints)
48668
48672
  }, attrs));
48669
48673
  };
48670
48674
 
@@ -52849,12 +52853,26 @@
52849
52853
  // TODO @barmac: remove once we drop bpmn.io properties
52850
52854
  ensureLegacySupport(assignedDi);
52851
52855
 
52852
- self._commandStack.execute('element.updateProperties', {
52853
- element: element,
52854
- properties: {
52855
- di: assignedDi
52856
- }
52857
- });
52856
+ if (element.labelTarget) {
52857
+
52858
+ // set label colors as bpmndi:BPMNLabel#color
52859
+ self._commandStack.execute('element.updateModdleProperties', {
52860
+ element: element,
52861
+ moddleElement: element.businessObject.di.label,
52862
+ properties: {
52863
+ color: di['background-color']
52864
+ }
52865
+ });
52866
+ } else {
52867
+
52868
+ // set colors bpmndi:BPMNEdge or bpmndi:BPMNShape
52869
+ self._commandStack.execute('element.updateProperties', {
52870
+ element: element,
52871
+ properties: {
52872
+ di: assignedDi
52873
+ }
52874
+ });
52875
+ }
52858
52876
  });
52859
52877
 
52860
52878
  };
@@ -56064,7 +56082,7 @@
56064
56082
 
56065
56083
  create.start(event, [ subProcess, startEvent ], {
56066
56084
  hints: {
56067
- autoSelect: [ startEvent ]
56085
+ autoSelect: [ subProcess ]
56068
56086
  }
56069
56087
  });
56070
56088
  }
@@ -61073,7 +61091,7 @@
61073
61091
  descriptionLoaded
61074
61092
  } = props; // set-up layout context
61075
61093
 
61076
- const [layout, setLayout] = l(createLayoutContext(layoutConfig));
61094
+ const [layout, setLayout] = l(createLayout(layoutConfig));
61077
61095
  y$1(() => {
61078
61096
  if (typeof layoutChanged === 'function') {
61079
61097
  layoutChanged(layout);
@@ -61085,7 +61103,9 @@
61085
61103
  };
61086
61104
 
61087
61105
  const setLayoutForKey = (key, config) => {
61088
- setLayout(set(layout, key, config));
61106
+ const newLayout = assign({}, layout);
61107
+ set(newLayout, key, config);
61108
+ setLayout(newLayout);
61089
61109
  };
61090
61110
 
61091
61111
  const layoutContext = {
@@ -61144,7 +61164,7 @@
61144
61164
  });
61145
61165
  } // helpers //////////////////
61146
61166
 
61147
- function createLayoutContext(overrides) {
61167
+ function createLayout(overrides) {
61148
61168
  return { ...DEFAULT_LAYOUT,
61149
61169
  ...overrides
61150
61170
  };
@@ -65601,7 +65621,20 @@
65601
65621
  return () => {
65602
65622
  eventBus.off('elements.changed', onElementsChanged);
65603
65623
  };
65604
- }, [selectedElement]); // (2c) provided entries changed
65624
+ }, [selectedElement]); // (2c) root element changed
65625
+
65626
+ y$1(() => {
65627
+ const onRootAdded = e => {
65628
+ const element = e.element;
65629
+
65630
+ _update(element);
65631
+ };
65632
+
65633
+ eventBus.on('root.added', onRootAdded);
65634
+ return () => {
65635
+ eventBus.off('root.added', onRootAdded);
65636
+ };
65637
+ }, [selectedElement]); // (2d) provided entries changed
65605
65638
 
65606
65639
  y$1(() => {
65607
65640
  const onProvidersChanged = () => {
@@ -65612,7 +65645,7 @@
65612
65645
  return () => {
65613
65646
  eventBus.off('propertiesPanel.providersChanged', onProvidersChanged);
65614
65647
  };
65615
- }, [selectedElement]); // (2d) element templates changed
65648
+ }, [selectedElement]); // (2e) element templates changed
65616
65649
 
65617
65650
  y$1(() => {
65618
65651
  const onTemplatesChanged = () => {
@@ -65702,23 +65735,20 @@
65702
65735
  this._layoutConfig = layoutConfig;
65703
65736
  this._descriptionConfig = descriptionConfig;
65704
65737
  this._container = domify('<div style="height: 100%" class="bio-properties-panel-container" input-handle-modified-keys="y,z"></div>');
65705
-
65706
- this._eventBus.on('root.added', event => {
65707
- const {
65708
- element
65709
- } = event;
65710
-
65711
- this._render(element);
65712
-
65738
+ eventBus.on('diagram.init', () => {
65713
65739
  if (parent) {
65714
65740
  this.attachTo(parent);
65715
65741
  }
65716
-
65717
- return;
65718
65742
  });
65743
+ eventBus.on('diagram.destroy', () => {
65744
+ this.detach();
65745
+ });
65746
+ eventBus.on('root.added', event => {
65747
+ const {
65748
+ element
65749
+ } = event;
65719
65750
 
65720
- eventBus.on('root.removed', () => {
65721
- this._destroy();
65751
+ this._render(element);
65722
65752
  });
65723
65753
  }
65724
65754
  /**
@@ -67448,7 +67478,7 @@
67448
67478
  isEdited: isEdited$1
67449
67479
  }, {
67450
67480
  id: 'completionCondition',
67451
- component: o$2(CompletionCondition, {
67481
+ component: o$2(CompletionCondition$1, {
67452
67482
  element: element
67453
67483
  }),
67454
67484
  isEdited: isEdited$1
@@ -67483,7 +67513,7 @@
67483
67513
  });
67484
67514
  }
67485
67515
 
67486
- function CompletionCondition(props) {
67516
+ function CompletionCondition$1(props) {
67487
67517
  const {
67488
67518
  element
67489
67519
  } = props;
@@ -67657,7 +67687,7 @@
67657
67687
  */
67658
67688
 
67659
67689
 
67660
- function getCompletionCondition(element) {
67690
+ function getCompletionCondition$1(element) {
67661
67691
  return getProperty$2(element, 'completionCondition');
67662
67692
  }
67663
67693
  /**
@@ -67670,7 +67700,7 @@
67670
67700
 
67671
67701
 
67672
67702
  function getCompletionConditionValue(element) {
67673
- const completionCondition = getCompletionCondition(element);
67703
+ const completionCondition = getCompletionCondition$1(element);
67674
67704
  return getBody(completionCondition);
67675
67705
  }
67676
67706
 
@@ -68485,6 +68515,155 @@
68485
68515
  bpmnPropertiesProvider: ['type', BpmnPropertiesProvider]
68486
68516
  };
68487
68517
 
68518
+ var e$2,
68519
+ o$3 = {};
68520
+
68521
+ function n$1(r, t, e) {
68522
+ if (3 === r.nodeType) {
68523
+ var o = "textContent" in r ? r.textContent : r.nodeValue || "";
68524
+
68525
+ if (!1 !== n$1.options.trim) {
68526
+ var a = 0 === t || t === e.length - 1;
68527
+ if ((!(o = o.match(/^[\s\n]+$/g) && "all" !== n$1.options.trim ? " " : o.replace(/(^[\s\n]+|[\s\n]+$)/g, "all" === n$1.options.trim || a ? "" : " ")) || " " === o) && e.length > 1 && a) return null;
68528
+ }
68529
+
68530
+ return o;
68531
+ }
68532
+
68533
+ if (1 !== r.nodeType) return null;
68534
+ var p = String(r.nodeName).toLowerCase();
68535
+ if ("script" === p && !n$1.options.allowScripts) return null;
68536
+ var l,
68537
+ s,
68538
+ u = n$1.h(p, function (r) {
68539
+ var t = r && r.length;
68540
+ if (!t) return null;
68541
+
68542
+ for (var e = {}, o = 0; o < t; o++) {
68543
+ var a = r[o],
68544
+ i = a.name,
68545
+ p = a.value;
68546
+ "on" === i.substring(0, 2) && n$1.options.allowEvents && (p = new Function(p)), e[i] = p;
68547
+ }
68548
+
68549
+ return e;
68550
+ }(r.attributes), (s = (l = r.childNodes) && Array.prototype.map.call(l, n$1).filter(i$2)) && s.length ? s : null);
68551
+ return n$1.visitor && n$1.visitor(u), u;
68552
+ }
68553
+
68554
+ var a$2,
68555
+ i$2 = function (r) {
68556
+ return r;
68557
+ },
68558
+ p$2 = {};
68559
+
68560
+ function l$1(r) {
68561
+ var t = (r.type || "").toLowerCase(),
68562
+ e = l$1.map;
68563
+ e && e.hasOwnProperty(t) ? (r.type = e[t], r.props = Object.keys(r.props || {}).reduce(function (t, e) {
68564
+ var o;
68565
+ return t[(o = e, o.replace(/-(.)/g, function (r, t) {
68566
+ return t.toUpperCase();
68567
+ }))] = r.props[e], t;
68568
+ }, {})) : r.type = t.replace(/[^a-z0-9-]/i, "");
68569
+ }
68570
+
68571
+ ((function (t) {
68572
+ function i() {
68573
+ t.apply(this, arguments);
68574
+ }
68575
+
68576
+ return t && (i.__proto__ = t), (i.prototype = Object.create(t && t.prototype)).constructor = i, i.setReviver = function (r) {
68577
+ a$2 = r;
68578
+ }, i.prototype.shouldComponentUpdate = function (r) {
68579
+ var t = this.props;
68580
+ return r.wrap !== t.wrap || r.type !== t.type || r.markup !== t.markup;
68581
+ }, i.prototype.setComponents = function (r) {
68582
+ if (this.map = {}, r) for (var t in r) if (r.hasOwnProperty(t)) {
68583
+ var e = t.replace(/([A-Z]+)([A-Z][a-z0-9])|([a-z0-9]+)([A-Z])/g, "$1$3-$2$4").toLowerCase();
68584
+ this.map[e] = r[t];
68585
+ }
68586
+ }, i.prototype.render = function (t) {
68587
+ var i = t.wrap;
68588
+ void 0 === i && (i = !0);
68589
+
68590
+ var s,
68591
+ u = t.type,
68592
+ c = t.markup,
68593
+ m = t.components,
68594
+ v = t.reviver,
68595
+ f = t.onError,
68596
+ d = t["allow-scripts"],
68597
+ h$1 = t["allow-events"],
68598
+ y = t.trim,
68599
+ w = function (r, t) {
68600
+ var e = {};
68601
+
68602
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && -1 === t.indexOf(o) && (e[o] = r[o]);
68603
+
68604
+ return e;
68605
+ }(t, ["wrap", "type", "markup", "components", "reviver", "onError", "allow-scripts", "allow-events", "trim"]),
68606
+ C = v || this.reviver || this.constructor.prototype.reviver || a$2 || a;
68607
+
68608
+ this.setComponents(m);
68609
+ var g = {
68610
+ allowScripts: d,
68611
+ allowEvents: h$1,
68612
+ trim: y
68613
+ };
68614
+
68615
+ try {
68616
+ s = function (r, t, a, i, s) {
68617
+ var u = function (r, t) {
68618
+ var o,
68619
+ n,
68620
+ a,
68621
+ i,
68622
+ p = "html" === t ? "text/html" : "application/xml";
68623
+ "html" === t ? (i = "body", a = "<!DOCTYPE html>\n<html><body>" + r + "</body></html>") : (i = "xml", a = '<?xml version="1.0" encoding="UTF-8"?>\n<xml>' + r + "</xml>");
68624
+
68625
+ try {
68626
+ o = new DOMParser().parseFromString(a, p);
68627
+ } catch (r) {
68628
+ n = r;
68629
+ }
68630
+
68631
+ if (o || "html" !== t || ((o = e$2 || (e$2 = function () {
68632
+ if (document.implementation && document.implementation.createHTMLDocument) return document.implementation.createHTMLDocument("");
68633
+ var r = document.createElement("iframe");
68634
+ return r.style.cssText = "position:absolute; left:0; top:-999em; width:1px; height:1px; overflow:hidden;", r.setAttribute("sandbox", "allow-forms"), document.body.appendChild(r), r.contentWindow.document;
68635
+ }())).open(), o.write(a), o.close()), o) {
68636
+ var l = o.getElementsByTagName(i)[0],
68637
+ s = l.firstChild;
68638
+ return r && !s && (l.error = "Document parse failed."), s && "parsererror" === String(s.nodeName).toLowerCase() && (s.removeChild(s.firstChild), s.removeChild(s.lastChild), l.error = s.textContent || s.nodeValue || n || "Unknown error", l.removeChild(s)), l;
68639
+ }
68640
+ }(r, t);
68641
+
68642
+ if (u && u.error) throw new Error(u.error);
68643
+ var c = u && u.body || u;
68644
+ l$1.map = i || p$2;
68645
+
68646
+ var m = c && function (r, t, e, a) {
68647
+ return n$1.visitor = t, n$1.h = e, n$1.options = a || o$3, n$1(r);
68648
+ }(c, l$1, a, s);
68649
+
68650
+ return l$1.map = null, m && m.props && m.props.children || null;
68651
+ }(c, u, C, this.map, g);
68652
+ } catch (r) {
68653
+ f ? f({
68654
+ error: r
68655
+ }) : "undefined" != typeof console && console.error && console.error("preact-markup: " + r);
68656
+ }
68657
+
68658
+ if (!1 === i) return s || null;
68659
+ var x = w.hasOwnProperty("className") ? "className" : "class",
68660
+ b = w[x];
68661
+ return b ? b.splice ? b.splice(0, 0, "markup") : "string" == typeof b ? w[x] += " markup" : "object" == typeof b && (b.markup = !0) : w[x] = "markup", C("div", w, s || null);
68662
+ }, i;
68663
+ })(p));
68664
+
68665
+ document.createElement('form');
68666
+
68488
68667
  /**
68489
68668
  *
68490
68669
  * @param {Object} options