aboutsummaryrefslogtreecommitdiffstats
path: root/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/bower_components/bpmn-js/dist/bpmn-modeler.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/bower_components/bpmn-js/dist/bpmn-modeler.min.js')
-rw-r--r--dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/bower_components/bpmn-js/dist/bpmn-modeler.min.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/bower_components/bpmn-js/dist/bpmn-modeler.min.js b/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/bower_components/bpmn-js/dist/bpmn-modeler.min.js
new file mode 100644
index 0000000..80e1a2f
--- /dev/null
+++ b/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/bower_components/bpmn-js/dist/bpmn-modeler.min.js
@@ -0,0 +1,14 @@
+/*! bpmn-js - bpmn-modeler v0.10.3 | (c) 2014, 2015 camunda Services GmbH | bpmn.io/license */
+!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.BpmnJS=t()}}(function(){var t;return function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var p=n[a]={exports:{}};t[a][0].call(p.exports,function(e){var n=t[a][1][e];return r(n?n:e)},p,p.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(t,e,n){"use strict";function i(t){s.call(this,t)}var r=t(195),o=t(50),a=t(193),s=t(2),c='<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" targetNamespace="http://bpmn.io/schema/bpmn" id="Definitions_1"><bpmn:process id="Process_1" isExecutable="false"><bpmn:startEvent id="StartEvent_1"/></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"><dc:Bounds height="36.0" width="36.0" x="173.0" y="102.0"/></bpmndi:BPMNShape></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>';r(i,s),i.prototype.createDiagram=function(t){return this.importXML(c,t)},i.prototype.createModdle=function(){var t=s.prototype.createModdle.call(this);return o.extend(t,new a([32,36,1])),t},i.prototype._interactionModules=[t(14),t(173),t(170),t(171)],i.prototype._modelingModules=[t(131),t(91),t(144),t(158),t(107),t(10),t(39),t(30),t(8),t(34)],i.prototype._modules=[].concat(i.prototype._modules,i.prototype._interactionModules,i.prototype._modelingModules),e.exports=i},{10:10,107:107,131:131,14:14,144:144,158:158,170:170,171:171,173:173,193:193,195:195,2:2,30:30,34:34,39:39,50:50,8:8,91:91}],2:[function(t,e,n){"use strict";function i(t,e){var n=t.get("eventBus");e.forEach(function(t){n.on(t.event,t.handler)})}function r(t){var e=/unparsable content <([^>]+)> detected([\s\S]*)$/,n=e.exec(t.message);return n&&(t.message="unparsable content <"+n[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+n[2]),t}function o(t){return t+(p(t)?"px":"")}function a(t){this.options=t=s({},v,t||{});var e=t.container;e.get&&(e=e.get(0)),u(e)&&(e=h(e));var n=this.container=l('<div class="bjs-container"></div>');e.appendChild(n),s(n.style,{width:o(t.width),height:o(t.height),position:t.position});var i="iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADBQTFRFiMte9PrwldFwfcZPqtqN0+zEyOe1XLgjvuKncsJAZ70y6fXh3vDT////UrQV////G2zN+AAAABB0Uk5T////////////////////AOAjXRkAAAHDSURBVHjavJZJkoUgDEBJmAX8979tM8u3E6x20VlYJfFFMoL4vBDxATxZcakIOJTWSmxvKWVIkJ8jHvlRv1F2LFrVISCZI+tCtQx+XfewgVTfyY3plPiQEAzI3zWy+kR6NBhFBYeBuscJLOUuA2WVLpCjVIaFzrNQZArxAZKUQm6gsj37L9Cb7dnIBUKxENaaMJQqMpDXvSL+ktxdGRm2IsKgJGGPg7atwUG5CcFUEuSv+CwQqizTrvDTNXdMU2bMiDWZd8d7QIySWVRsb2vBBioxOFt4OinPBapL+neAb5KL5IJ8szOza2/DYoipUCx+CjO0Bpsv0V6mktNZ+k8rlABlWG0FrOpKYVo8DT3dBeLEjUBAj7moDogVii7nSS9QzZnFcOVBp1g2PyBQ3Vr5aIapN91VJy33HTJLC1iX2FY6F8gRdaAeIEfVONgtFCzZTmoLEdOjBDfsIOA6128gw3eu1shAajdZNAORxuQDJN5A5PbEG6gNIu24QJD5iNyRMZIr6bsHbCtCU/OaOaSvgkUyDMdDa1BXGf5HJ1To+/Ym6mCKT02Y+/Sa126ZKyd3jxhzpc1r8zVL6YM1Qy/kR4ABAFJ6iQUnivhAAAAAAElFTkSuQmCC",r='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" style="position: absolute; bottom: 15px; right: 15px; z-index: 100"><img src="data:image/png;base64,'+i+'"></a>';n.appendChild(l(r))}var s=t(325),c=t(329),u=t(322),p=t(319),l=t(343),h=t(346),f=t(347),d=t(73),m=t(48),y=t(42),v={width:"100%",height:"100%",position:"relative",container:"body"};a.prototype.importXML=function(t,e){var n=this;this.moddle=this.createModdle(),this.moddle.fromXML(t,"bpmn:Definitions",function(t,i,o){if(t)return t=r(t),e(t);var a=o.warnings;n.importDefinitions(i,function(t,n){return t?e(t):void e(null,a.concat(n||[]))})})},a.prototype.saveXML=function(t,e){e||(e=t,t={});var n=this.definitions;return n?void this.moddle.toXML(n,t,e):e(new Error("no definitions loaded"))},a.prototype.createModdle=function(){return new m(this.options.moddleExtensions)},a.prototype.saveSVG=function(t,e){e||(e=t,t={});var n=this.get("canvas"),i=n.getDefaultLayer(),r=n._svg.select("defs"),o=i.innerSVG(),a=r&&r.outerSVG()||"",s=i.getBBox(),c='<?xml version="1.0" encoding="utf-8"?>\n<!-- created with bpmn-js / http://bpmn.io -->\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+s.width+'" height="'+s.height+'" viewBox="'+s.x+" "+s.y+" "+s.width+" "+s.height+'" version="1.1">'+a+o+"</svg>";e(null,c)},a.prototype.get=function(t){if(!this.diagram)throw new Error("no diagram loaded");return this.diagram.get(t)},a.prototype.invoke=function(t){if(!this.diagram)throw new Error("no diagram loaded");return this.diagram.invoke(t)},a.prototype.importDefinitions=function(t,e){try{this.diagram&&this.clear(),this.definitions=t;var n=this.diagram=this._createDiagram(this.options);this._init(n),y.importBpmnDiagram(n,t,e)}catch(i){e(i)}},a.prototype._init=function(t){i(t,this.__listeners||[])},a.prototype._createDiagram=function(t){var e=[].concat(t.modules||this.getModules(),t.additionalModules||[]);return e.unshift({bpmnjs:["value",this],moddle:["value",this.moddle]}),t=c(t,"additionalModules"),t=s(t,{canvas:{container:this.container},modules:e}),new d(t)},a.prototype.getModules=function(){return this._modules},a.prototype.clear=function(){var t=this.diagram;t&&t.destroy()},a.prototype.destroy=function(){this.clear(),f(this.container)},a.prototype.on=function(t,e){var n=this.diagram,i=this.__listeners=this.__listeners||[];i.push({event:t,handler:e}),n&&n.get("eventBus").on(t,e)},a.prototype._modules=[t(3),t(151),t(135)],e.exports=a},{135:135,151:151,3:3,319:319,322:322,325:325,329:329,343:343,346:346,347:347,42:42,48:48,73:73}],3:[function(t,e,n){e.exports={__depends__:[t(6),t(44)]}},{44:44,6:6}],4:[function(t,e,n){"use strict";function i(t,e,n){function i(t,e){K[t]=e}function r(t){return K[t]}function y(t){function e(t,e){var n=s({fill:"black",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"none"},e.attrs),r=e.ref||{x:0,y:0},o=e.scale||1;"none"===n.strokeDasharray&&(n.strokeDasharray=[1e4,1]);var a=e.element.attr(n).marker(0,0,20,20,r.x,r.y).attr({markerWidth:20*o,markerHeight:20*o});return i(t,a)}e("sequenceflow-end",{element:t.path("M 1 5 L 11 10 L 1 15 Z"),ref:{x:11,y:10},scale:.5}),e("messageflow-start",{element:t.circle(6,6,3.5),attrs:{fill:"white",stroke:"black"},ref:{x:6,y:6}}),e("messageflow-end",{element:t.path("m 1 5 l 0 -3 l 7 3 l -7 3 z"),attrs:{fill:"white",stroke:"black",strokeLinecap:"butt"},ref:{x:8.5,y:5}}),e("data-association-end",{element:t.path("M 1 5 L 11 10 L 1 15"),attrs:{fill:"white",stroke:"black"},ref:{x:11,y:10},scale:.5}),e("conditional-flow-marker",{element:t.path("M 0 10 L 8 6 L 16 10 L 8 14 Z"),attrs:{fill:"white",stroke:"black"},ref:{x:-1,y:10},scale:.5}),e("conditional-default-flow-marker",{element:t.path("M 1 4 L 5 16"),attrs:{stroke:"black"},ref:{x:-5,y:10},scale:.5})}function v(t,n,i){return o(n)||(i=n,n=[]),e.style(n||[],s(i,t||{}))}function g(t,e,n,i,r){a(i)&&(r=i,i=0),i=i||0,r=v(r,{stroke:"black",strokeWidth:2,fill:"white"});var o=e/2,s=n/2;return t.circle(o,s,Math.round((e+n)/4-i)).attr(r)}function x(t,e,n,i,r,o){return a(r)&&(o=r,r=0),r=r||0,o=v(o,{stroke:"black",strokeWidth:2,fill:"white"}),t.rect(r,r,e-2*r,n-2*r,i).attr(o)}function b(t,e,n,i){var r=e/2,o=n/2,a=[r,0,e,o,r,n,0,o];return i=v(i,{stroke:"black",strokeWidth:2,fill:"white"}),t.polygon(a).attr(i)}function w(t,e,n){return n=v(n,["no-fill"],{stroke:"black",strokeWidth:2,fill:"none"}),m(e,n).appendTo(t)}function E(t,e,n){return n=v(n,["no-fill"],{strokeWidth:2,stroke:"black"}),t.path(e).attr(n)}function _(t){return function(e,n){return Z[t](e,n)}}function S(t){return Z[t]}function T(t,e){var n=L(t),i=F(n);return j(n,"bpmn:MessageEventDefinition")?S("bpmn:MessageEventDefinition")(e,t,i):j(n,"bpmn:TimerEventDefinition")?S("bpmn:TimerEventDefinition")(e,t,i):j(n,"bpmn:ConditionalEventDefinition")?S("bpmn:ConditionalEventDefinition")(e,t):j(n,"bpmn:SignalEventDefinition")?S("bpmn:SignalEventDefinition")(e,t,i):j(n,"bpmn:CancelEventDefinition")&&j(n,"bpmn:TerminateEventDefinition",{parallelMultiple:!1})?S("bpmn:MultipleEventDefinition")(e,t,i):j(n,"bpmn:CancelEventDefinition")&&j(n,"bpmn:TerminateEventDefinition",{parallelMultiple:!0})?S("bpmn:ParallelMultipleEventDefinition")(e,t,i):j(n,"bpmn:EscalationEventDefinition")?S("bpmn:EscalationEventDefinition")(e,t,i):j(n,"bpmn:LinkEventDefinition")?S("bpmn:LinkEventDefinition")(e,t,i):j(n,"bpmn:ErrorEventDefinition")?S("bpmn:ErrorEventDefinition")(e,t,i):j(n,"bpmn:CancelEventDefinition")?S("bpmn:CancelEventDefinition")(e,t,i):j(n,"bpmn:CompensateEventDefinition")?S("bpmn:CompensateEventDefinition")(e,t,i):j(n,"bpmn:TerminateEventDefinition")?S("bpmn:TerminateEventDefinition")(e,t,i):null}function A(t,e,n){return X.createText(t,e||"",n).addClass("djs-label")}function C(t,e,n){var i=L(e);return A(t,i.name,{box:e,align:n,padding:5})}function M(t,e,n){var i=L(e);return i.name||(e.hidden=!0),A(t,i.name,{box:e,align:n,style:{fontSize:"11px"}})}function R(t,e,n){var i=A(t,e,{box:{height:30,width:n.height},align:"center-middle"}),r=-1*n.height;i.transform("rotate(270) translate("+r+",0)")}function N(t){for(var e=t.waypoints,n="m "+e[0].x+","+e[0].y,i=1;i<e.length;i++)n+="L"+e[i].x+","+e[i].y+" ";return n}function P(t,e,n){var i,r=L(e),o=p(n,"SubProcessMarker");return i=o?{seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:{seq:-3,parallel:-6,compensation:-27,loop:0,adhoc:10},c(n,function(n){S(n)(t,e,i)}),"bpmn:AdHocSubProcess"===r.$type&&S("AdhocMarker")(t,e,i),r.loopCharacteristics&&void 0===r.loopCharacteristics.isSequential?void S("LoopMarker")(t,e,i):(r.loopCharacteristics&&void 0!==r.loopCharacteristics.isSequential&&!r.loopCharacteristics.isSequential&&S("ParallelMarker")(t,e,i),r.loopCharacteristics&&r.loopCharacteristics.isSequential&&S("SequentialMarker")(t,e,i),void(r.isForCompensation&&S("CompensationMarker")(t,e,i)))}function k(t,e){var n=e.type,i=Z[n];return i?i(t,e):h.prototype.drawShape.apply(this,[t,e])}function D(t,e){var n=e.type,i=Z[n];return i?i(t,e):h.prototype.drawConnection.apply(this,[t,e])}function O(t,e){var i=(e.height-16)/e.height,r=n.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:.451,my:i}});E(t,r,{strokeWidth:2})}function B(t,e){return t.isCollection||t.elementObjectRef&&t.elementObjectRef.isCollection}function I(t){return t.businessObject.di}function L(t){return t.businessObject}function j(t,e,n){function i(t,e){return u(e,function(e,n){return t[n]==e})}return l(t.eventDefinitions,function(r){return r.$type===e&&i(t,n)})}function F(t){return"bpmn:IntermediateThrowEvent"===t.$type||"bpmn:EndEvent"===t.$type}function $(t){return t.join(",").replace(/,?([A-z]),?/g,"$1")}function V(t){var e=t.x+t.width/2,n=t.y+t.height/2,i=t.width/2,r=[["M",e,n],["m",0,-i],["a",i,i,0,1,1,0,2*i],["a",i,i,0,1,1,0,-2*i],["z"]];return $(r)}function G(t){var e=q,n=t.x,i=t.y,r=t.width,o=t.height,a=[["M",n+e,i],["l",r-2*e,0],["a",e,e,0,0,1,e,e],["l",0,o-2*e],["a",e,e,0,0,1,-e,e],["l",2*e-r,0],["a",e,e,0,0,1,-e,-e],["l",0,2*e-o],["a",e,e,0,0,1,e,-e],["z"]];return $(a)}function z(t){var e=t.width,n=t.height,i=t.x,r=t.y,o=e/2,a=n/2,s=[["M",i+o,r],["l",o,a],["l",-o,a],["l",-o,-a],["z"]];return $(s)}function W(t){var e=t.x,n=t.y,i=t.width,r=t.height,o=[["M",e,n],["l",i,0],["l",0,r],["l",-i,0],["z"]];return $(o)}function U(t){var e=L(t);return e.$instanceOf("bpmn:Event")?V(t):e.$instanceOf("bpmn:Activity")?G(t):e.$instanceOf("bpmn:Gateway")?z(t):W(t)}h.call(this,e);var q=10,H=3,Y={fontFamily:"Arial, sans-serif",fontSize:"12px"},X=new f({style:Y,size:{width:100}}),K={},Z={"bpmn:Event":function(t,e,n){return g(t,e.width,e.height,n)},"bpmn:StartEvent":function(t,e){var n={},i=L(e);i.isInterrupting||(n={strokeDasharray:"6",strokeLinecap:"round"});var r=S("bpmn:Event")(t,e,n);return T(e,t),r},"bpmn:MessageEventDefinition":function(t,e,i){var r=n.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:e.width,containerHeight:e.height,position:{mx:.235,my:.315}}),o=i?"black":"white",a=i?"white":"black",s=E(t,r,{strokeWidth:1,fill:o,stroke:a});return s},"bpmn:TimerEventDefinition":function(t,e){var i=g(t,e.width,e.height,.2*e.height,{strokeWidth:2}),r=n.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:e.width,containerHeight:e.height,position:{mx:.5,my:.5}});E(t,r,{strokeWidth:2,strokeLinecap:"square"});for(var o=0;12>o;o++){var a=n.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:e.width,containerHeight:e.height,position:{mx:.5,my:.5}}),s=e.width/2,c=e.height/2;E(t,a,{strokeWidth:1,strokeLinecap:"square",transform:"rotate("+30*o+","+c+","+s+")"})}return i},"bpmn:EscalationEventDefinition":function(t,e,i){var r=n.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:.5,my:.555}}),o=i?"black":"none";return E(t,r,{strokeWidth:1,fill:o})},"bpmn:ConditionalEventDefinition":function(t,e){var i=n.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:.5,my:.222}});return E(t,i,{strokeWidth:1})},"bpmn:LinkEventDefinition":function(t,e,i){var r=n.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:.57,my:.263}}),o=i?"black":"none";return E(t,r,{strokeWidth:1,fill:o})},"bpmn:ErrorEventDefinition":function(t,e,i){var r=n.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:e.width,containerHeight:e.height,position:{mx:.2,my:.722}}),o=i?"black":"none";return E(t,r,{strokeWidth:1,fill:o})},"bpmn:CancelEventDefinition":function(t,e,i){var r=n.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:.638,my:-.055}}),o=i?"black":"none";return E(t,r,{strokeWidth:1,fill:o}).transform("rotate(45)")},"bpmn:CompensateEventDefinition":function(t,e,i){var r=n.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:.201,my:.472}}),o=i?"black":"none";return E(t,r,{strokeWidth:1,fill:o})},"bpmn:SignalEventDefinition":function(t,e,i){var r=n.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:e.width,containerHeight:e.height,position:{mx:.5,my:.2}}),o=i?"black":"none";return E(t,r,{strokeWidth:1,fill:o})},"bpmn:MultipleEventDefinition":function(t,e,i){var r=n.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:e.width,containerHeight:e.height,position:{mx:.222,my:.36}}),o=i?"black":"none";return E(t,r,{strokeWidth:1,fill:o})},"bpmn:ParallelMultipleEventDefinition":function(t,e){var i=n.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:e.width,containerHeight:e.height,position:{mx:.458,my:.194}});return E(t,i,{strokeWidth:1})},"bpmn:EndEvent":function(t,e){var n=S("bpmn:Event")(t,e,{strokeWidth:4});return T(e,t,!0),n},"bpmn:TerminateEventDefinition":function(t,e){var n=g(t,e.width,e.height,8,{strokeWidth:4,fill:"black"});return n},"bpmn:IntermediateEvent":function(t,e){var n=S("bpmn:Event")(t,e,{strokeWidth:1});return g(t,e.width,e.height,H,{strokeWidth:1,fill:"none"}),T(e,t),n},"bpmn:IntermediateCatchEvent":_("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":_("bpmn:IntermediateEvent"),"bpmn:Activity":function(t,e,n){return x(t,e.width,e.height,q,n)},"bpmn:Task":function(t,e,n){var i=S("bpmn:Activity")(t,e,n);return C(t,e,"center-middle"),P(t,e),i},"bpmn:ServiceTask":function(t,e){var i=S("bpmn:Task")(t,e),r=n.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}});E(t,r,{strokeWidth:1,fill:"none"});var o=n.getScaledPath("TASK_TYPE_SERVICE_FILL",{abspos:{x:17.2,y:18}});E(t,o,{strokeWidth:0,stroke:"none",fill:"white"});var a=n.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}});return E(t,a,{strokeWidth:1,fill:"white"}),i},"bpmn:UserTask":function(t,e){var i=S("bpmn:Task")(t,e),r=15,o=12,a=n.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:r,y:o}});E(t,a,{strokeWidth:.5,fill:"none"});var s=n.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:r,y:o}});E(t,s,{strokeWidth:.5,fill:"none"});var c=n.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:r,y:o}});return E(t,c,{strokeWidth:.5,fill:"black"}),i},"bpmn:ManualTask":function(t,e){var i=S("bpmn:Task")(t,e),r=n.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}});return E(t,r,{strokeWidth:.25,fill:"white",stroke:"black"}),i},"bpmn:SendTask":function(t,e){var i=S("bpmn:Task")(t,e),r=n.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}});return E(t,r,{strokeWidth:1,fill:"black",stroke:"white"}),i},"bpmn:ReceiveTask":function(t,e){var i,r=L(e),o=S("bpmn:Task")(t,e);return r.instantiate?(g(t,28,28,4.4,{strokeWidth:1}),i=n.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):i=n.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),E(t,i,{strokeWidth:1}),o},"bpmn:ScriptTask":function(t,e){var i=S("bpmn:Task")(t,e),r=n.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}});return E(t,r,{strokeWidth:1}),i},"bpmn:BusinessRuleTask":function(t,e){var i=S("bpmn:Task")(t,e),r=n.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}),o=E(t,r);o.attr({strokeWidth:1,fill:"AAA"});var a=n.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}),s=E(t,a);return s.attr({strokeWidth:1}),i},"bpmn:SubProcess":function(t,e,n){var i=S("bpmn:Activity")(t,e,n),r=L(e),o=d.isExpanded(r),a=!!r.triggeredByEvent;return a&&i.attr({strokeDasharray:"1,2"}),C(t,e,o?"center-top":"center-middle"),o?P(t,e):P(t,e,["SubProcessMarker"]),i},"bpmn:AdHocSubProcess":function(t,e){return S("bpmn:SubProcess")(t,e)},"bpmn:Transaction":function(t,n){var i=S("bpmn:SubProcess")(t,n),r=e.style(["no-fill","no-events"]);return x(t,n.width,n.height,q-2,H,r),i},"bpmn:CallActivity":function(t,e){return S("bpmn:Task")(t,e,{strokeWidth:5})},"bpmn:Participant":function(t,e){var n=S("bpmn:Lane")(t,e,{fill:"White"}),i=d.isExpanded(e);if(i){w(t,[{x:30,y:0},{x:30,y:e.height}]);var r=L(e).name;R(t,r,e)}else{var o=L(e).name;A(t,o,{box:e,align:"center-middle"})}var a=!!L(e).participantMultiplicity;return a&&S("ParticipantMultiplicityMarker")(t,e),n},"bpmn:Lane":function(t,e,n){var i=x(t,e.width,e.height,0,n||{fill:"none"}),r=L(e);if("bpmn:Lane"===r.$type){var o=r.name;R(t,o,e)}return i},"bpmn:InclusiveGateway":function(t,e){var n=b(t,e.width,e.height);return g(t,e.width,e.height,.24*e.height,{strokeWidth:2.5,fill:"none"}),n},"bpmn:ExclusiveGateway":function(t,e){var i=b(t,e.width,e.height),r=n.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:e.width,containerHeight:e.height,position:{mx:.32,my:.3}});return I(e).isMarkerVisible&&E(t,r,{strokeWidth:1,fill:"black"}),i},"bpmn:ComplexGateway":function(t,e){var i=b(t,e.width,e.height),r=n.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:e.width,containerHeight:e.height,position:{mx:.46,my:.26}});return E(t,r,{strokeWidth:1,fill:"black"}),i},"bpmn:ParallelGateway":function(t,e){var i=b(t,e.width,e.height),r=n.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:e.width,containerHeight:e.height,position:{mx:.46,my:.2}});return E(t,r,{strokeWidth:1,fill:"black"}),i},"bpmn:EventBasedGateway":function(t,e){function i(){var i=n.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:e.width,containerHeight:e.height,position:{mx:.36,my:.44}});E(t,i,{strokeWidth:2,fill:"none"})}var r=L(e),o=b(t,e.width,e.height);g(t,e.width,e.height,.2*e.height,{strokeWidth:1,fill:"none"});var a=r.eventGatewayType,s=!!r.instantiate;if("Parallel"===a){var c=n.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:e.width,containerHeight:e.height,position:{mx:.474,my:.296}}),u=E(t,c);u.attr({strokeWidth:1,fill:"none"})}else if("Exclusive"===a){if(!s){var p=g(t,e.width,e.height,.26*e.height);p.attr({strokeWidth:1,fill:"none"})}i()}return o},"bpmn:Gateway":function(t,e){return b(t,e.width,e.height)},"bpmn:SequenceFlow":function(t,e){var n=N(e),i=E(t,n,{strokeLinejoin:"round",markerEnd:r("sequenceflow-end")}),o=L(e),a=e.source.businessObject;return o.conditionExpression&&a.$instanceOf("bpmn:Task")&&i.attr({markerStart:r("conditional-flow-marker")}),a["default"]&&a.$instanceOf("bpmn:Gateway")&&a["default"]===o&&i.attr({markerStart:r("conditional-default-flow-marker")}),i},"bpmn:Association":function(t,e,n){return n=s({strokeDasharray:"1,6",strokeLinecap:"round",strokeLinejoin:"round"},n||{}),w(t,e.waypoints,n)},"bpmn:DataInputAssociation":function(t,e){return S("bpmn:Association")(t,e,{markerEnd:r("data-association-end")})},"bpmn:DataOutputAssociation":function(t,e){return S("bpmn:Association")(t,e,{markerEnd:r("data-association-end")})},"bpmn:MessageFlow":function(t,e){var i=L(e),o=I(e),a=N(e),s=E(t,a,{markerEnd:r("messageflow-end"),markerStart:r("messageflow-start"),strokeDasharray:"10, 12",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5px"});if(i.messageRef){var c=s.getPointAtLength(s.getTotalLength()/2),u=n.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:c.x,y:c.y}}),p={strokeWidth:1};"initiating"===o.messageVisibleKind?(p.fill="white",p.stroke="black"):(p.fill="#888",p.stroke="white"),E(t,u,p)}return s},"bpmn:DataObject":function(t,e){var i=n.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:.474,my:.296}}),r=E(t,i,{fill:"white"}),o=L(e);return B(o)&&O(t,e),r},"bpmn:DataObjectReference":_("bpmn:DataObject"),"bpmn:DataInput":function(t,e){var i=n.getRawPath("DATA_ARROW"),r=S("bpmn:DataObject")(t,e);return E(t,i,{strokeWidth:1}),r},"bpmn:DataOutput":function(t,e){var i=n.getRawPath("DATA_ARROW"),r=S("bpmn:DataObject")(t,e);return E(t,i,{strokeWidth:1,fill:"black"}),r},"bpmn:DataStoreReference":function(t,e){var i=n.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:0,my:.133}}),r=E(t,i,{strokeWidth:2,fill:"white"});return r},"bpmn:BoundaryEvent":function(t,e){var n=L(e),i=n.cancelActivity,r={strokeLinecap:"round",strokeWidth:1};i||(r.strokeDasharray="6");var o=S("bpmn:Event")(t,e,r);return g(t,e.width,e.height,H,r),T(e,t),o},"bpmn:Group":function(t,e){return x(t,e.width,e.height,q,{strokeWidth:1,strokeDasharray:"8,3,1,3",fill:"none",pointerEvents:"none"})},label:function(t,e){return M(t,e,"")},"bpmn:TextAnnotation":function(t,e){var i={fill:"none",stroke:"none"},r=x(t,e.width,e.height,0,0,i),o=n.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:0,my:0}});E(t,o);var a=L(e).text||"";return A(t,a,{box:e,align:"left-middle",padding:5}),r},ParticipantMultiplicityMarker:function(t,e){var i=n.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:e.width/2/e.width,my:(e.height-15)/e.height}});E(t,i)},SubProcessMarker:function(t,e){var i=x(t,14,14,0,{strokeWidth:1});i.transform("translate("+(e.width/2-7.5)+","+(e.height-20)+")");var r=n.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:e.width,containerHeight:e.height,position:{mx:(e.width/2-7.5)/e.width,my:(e.height-20)/e.height}});E(t,r)},ParallelMarker:function(t,e,i){var r=n.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:(e.width/2+i.parallel)/e.width,my:(e.height-20)/e.height}});E(t,r)},SequentialMarker:function(t,e,i){var r=n.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:(e.width/2+i.seq)/e.width,my:(e.height-19)/e.height}});E(t,r)},CompensationMarker:function(t,e,i){var r=n.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:(e.width/2+i.compensation)/e.width,my:(e.height-13)/e.height}});E(t,r,{strokeWidth:1})},LoopMarker:function(t,e,i){var r=n.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:(e.width/2+i.loop)/e.width,my:(e.height-7)/e.height}});E(t,r,{strokeWidth:1,fill:"none",strokeLinecap:"round",strokeMiterlimit:.5})},AdhocMarker:function(t,e,i){var r=n.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:(e.width/2+i.adhoc)/e.width,my:(e.height-15)/e.height}});E(t,r,{strokeWidth:1,fill:"black"})}};t.on("canvas.init",function(t){y(t.svg)}),this.drawShape=k,this.drawConnection=D,this.getShapePath=U}var r=t(195),o=t(316),a=t(320),s=t(325),c=t(204),u=t(201),p=t(206),l=t(210),h=t(84),f=t(184),d=t(45),m=h.createLine;r(i,h),i.$inject=["eventBus","styles","pathMap"],e.exports=i},{184:184,195:195,201:201,204:204,206:206,210:210,316:316,320:320,325:325,45:45,84:84}],5:[function(t,e,n){"use strict";function i(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"m {mx},{my} c -{e.x1},{e.y0} -{e.x3},{e.y1} -{e.x5},{e.y4} {e.x1},-{e.y3} {e.x3},-{e.y5} {e.x5},-{e.y6} {e.x0},{e.y3} {e.x2},{e.y5} {e.x4},{e.y6} -{e.x0},-{e.y0} -{e.x2},-{e.y1} -{e.x4},-{e.y4} z",height:36,width:36,heightElements:[2.382,4.764,4.926,6.589333,7.146,13.178667,19.768],widthElements:[2.463,2.808,4.926,5.616,7.389,8.424]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x0},0 {e.x0},-{e.y0} 0,{e.y1} z",height:36,width:36,heightElements:[5,10],widthElements:[10]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m {mx}, {my} m 0 15 l 0 -15 m 4 15 l 0 -15 m 4 15 l 0 -15 ",height:61,width:51,heightElements:[12],widthElements:[1,6,12,15]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 8,-5 0,10 z m 9,0 8,-5 0,10 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",
+height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(t){return this.pathMap[t].d},this.getScaledPath=function(t,e){var n,i,o=this.pathMap[t];e.abspos?(n=e.abspos.x,i=e.abspos.y):(n=e.containerWidth*e.position.mx,i=e.containerHeight*e.position.my);var a={};if(e.position){for(var s=e.containerHeight/o.height*e.yScaleFactor,c=e.containerWidth/o.width*e.xScaleFactor,u=0;u<o.heightElements.length;u++)a["y"+u]=o.heightElements[u]*s;for(var p=0;p<o.widthElements.length;p++)a["x"+p]=o.widthElements[p]*c}var l=r.format(o.d,{mx:n,my:i,e:a});return l}}var r=t(188);e.exports=i},{188:188}],6:[function(t,e,n){e.exports={renderer:["type",t(4)],pathMap:["type",t(5)]}},{4:4,5:5}],7:[function(t,e,n){"use strict";function i(t,e,n,i,r,o,a){t.registerProvider(this),this._contextPad=t,this._modeling=e,this._elementFactory=n,this._connect=i,this._create=r,this._bpmnReplace=o,this._canvas=a}function r(t,e,n){var i=t.$instanceOf(e),r=!1,o=t.eventDefinitions||[];return a(o,function(t){t.$type===n&&(r=!0)}),i&&r}var o=t(325),a=t(204);i.$inject=["contextPad","modeling","elementFactory","connect","create","bpmnReplace","canvas"],i.prototype.getContextPadEntries=function(t){function e(t,e,n){p.start(t,e,n)}function n(e){t.waypoints?c.removeConnection(t):c.removeShape(t)}function i(t){var e=5,n=f.getContainer(),i=s.getPad(t).html,r=n.getBoundingClientRect(),o=i.getBoundingClientRect(),a=o.top-r.top,c=o.left-r.left,u={x:c,y:a+o.height+e};return u}function a(t,e,n){function i(e,i){var r=u.createShape(o({type:t},n));l.start(e,r,i)}var r=t.replace(/^bpmn\:/,"");return{group:"model",className:e,title:"Append "+r,action:{dragstart:i,click:i}}}var s=this._contextPad,c=this._modeling,u=this._elementFactory,p=this._connect,l=this._create,h=this._bpmnReplace,f=this._canvas,d={};if("label"===t.type)return d;var m=t.businessObject;return m.$instanceOf("bpmn:FlowNode")&&(m.$instanceOf("bpmn:EndEvent")||m.$instanceOf("bpmn:EventBasedGateway")||r(m,"bpmn:IntermediateThrowEvent","bpmn:LinkEventDefinition")||o(d,{"append.end-event":a("bpmn:EndEvent","icon-end-event-none"),"append.gateway":a("bpmn:ExclusiveGateway","icon-gateway-xor"),"append.append-task":a("bpmn:Task","icon-task"),"append.intermediate-event":a("bpmn:IntermediateThrowEvent","icon-intermediate-event-none")}),m.$instanceOf("bpmn:EventBasedGateway")&&o(d,{"append.receive-task":a("bpmn:ReceiveTask","icon-receive-task"),"append.message-intermediate-event":a("bpmn:IntermediateCatchEvent","icon-intermediate-event-catch-message",{_eventDefinitionType:"bpmn:MessageEventDefinition"}),"append.timer-intermediate-event":a("bpmn:IntermediateCatchEvent","icon-intermediate-event-catch-timer",{_eventDefinitionType:"bpmn:TimerEventDefinition"}),"append.condtion-intermediate-event":a("bpmn:IntermediateCatchEvent","icon-intermediate-event-catch-condition",{_eventDefinitionType:"bpmn:ConditionalEventDefinition"}),"append.signal-intermediate-event":a("bpmn:IntermediateCatchEvent","icon-intermediate-event-catch-signal",{_eventDefinitionType:"bpmn:SignalEventDefinition"})}),m.$instanceOf("bpmn:SubProcess")||o(d,{replace:{group:"edit",className:"icon-screw-wrench",title:"Change type",action:{click:function(t,e){h.openChooser(i(e),e)}}}})),(m.$instanceOf("bpmn:FlowNode")||m.$instanceOf("bpmn:InteractionNode"))&&o(d,{"append.text-annotation":a("bpmn:TextAnnotation","icon-text-annotation"),connect:{group:"connect",className:"icon-connection-multi",title:"Connect using Sequence/MessageFlow",action:{click:e,dragstart:e}}}),o(d,{"delete":{group:"edit",className:"icon-trash",title:"Remove",action:{click:n,dragstart:n}}}),d},e.exports=i},{204:204,325:325}],8:[function(t,e,n){e.exports={__depends__:[t(70),t(97),t(151),t(95),t(99),t(37)],__init__:["contextPadProvider"],contextPadProvider:["type",t(7)]}},{151:151,37:37,7:7,70:70,95:95,97:97,99:99}],9:[function(t,e,n){"use strict";function i(t,e,n,i,r){t.addListener(function(o,a){if(!t.hasModifier(a)){if(83===o)return e.activateSelection(),!0;if(108===o)return n.activateSelection(),!0;var s=r.get();return 69===o?(s.length&&i.activate(s[0]),!0):void 0}})}i.$inject=["keyboard","spaceTool","lassoTool","directEditing","selection"],e.exports=i},{}],10:[function(t,e,n){e.exports={__depends__:[t(105)],__init__:["bpmnKeyBindings"],bpmnKeyBindings:["type",t(9)]}},{105:105,9:9}],11:[function(t,e,n){"use strict";function i(t,e,n,i,o){n.registerProvider(this),i.registerHandler("element.updateLabel",r),t.on("element.dblclick",function(t){n.activate(t.element)}),t.on(["element.mousedown","drag.activate","canvas.viewbox.changed"],function(t){n.complete()}),t.on(["commandStack.changed"],function(){n.cancel()}),"ontouchstart"in document.documentElement||t.on("create.end",500,function(t){var e=t.shape,i=t.context.canExecute;i&&(a(e,"bpmn:Task")||a(e,"bpmn:TextAnnotation")||a(e,"bpmn:SubProcess")&&!s(e))&&n.activate(e)}),this._canvas=e,this._commandStack=i}var r=t(13),o=t(12),a=t(47).is,s=t(45).isExpanded,c={width:150,height:50};i.$inject=["eventBus","canvas","directEditing","commandStack","injector"],e.exports=i,i.prototype.activate=function(t){var e=o.getLabel(t);if(void 0!==e){var n=this.getEditingBBox(t);return(a(t,"bpmn:Participant")&&s(t)||a(t,"bpmn:Lane"))&&(n.width=c.width,n.height=c.height,n.x=n.x+10-n.width/2,n.y=n.mid.y-n.height/2),a(t,"bpmn:SubProcess")&&s(t)&&(n.height=c.height,n.x=n.mid.x-n.width/2,n.y=n.y+10-n.height/2),{bounds:n,text:e}}},i.prototype.getEditingBBox=function(t,e){var n=t.label||t,i=this._canvas.getAbsoluteBBox(n),r={x:i.x+i.width/2,y:i.y+i.height/2};return n.labelTarget&&(i.width=Math.max(i.width,c.width),i.height=Math.max(i.height,c.height),i.x=r.x-i.width/2),i.mid=r,i},i.prototype.update=function(t,e){this._commandStack.execute("element.updateLabel",{element:t,newLabel:e})}},{12:12,13:13,45:45,47:47}],12:[function(t,e,n){"use strict";function i(t){return t.$instanceOf("bpmn:FlowElement")||t.$instanceOf("bpmn:Participant")||t.$instanceOf("bpmn:Lane")||t.$instanceOf("bpmn:SequenceFlow")||t.$instanceOf("bpmn:MessageFlow")?"name":t.$instanceOf("bpmn:TextAnnotation")?"text":void 0}e.exports.getLabel=function(t){var e=t.businessObject,n=i(e);return n?e[n]||"":void 0},e.exports.setLabel=function(t,e){var n=t.businessObject,r=i(n);r&&(n[r]=e);var o=t.label||t;return o.hidden=!1,o}},{}],13:[function(t,e,n){"use strict";function i(t){function e(e,n){var i=r.setLabel(e,n);t.fire("element.changed",{element:i})}function n(t){return t.oldLabel=r.getLabel(t.element),e(t.element,t.newLabel)}function i(t){return e(t.element,t.oldLabel)}function o(t){return!0}this.execute=n,this.revert=i,this.canExecute=o}var r=t(12);i.$inject=["eventBus"],e.exports=i},{12:12}],14:[function(t,e,n){e.exports={__depends__:[t(77),t(93),t(70)],__init__:["labelEditingProvider"],labelEditingProvider:["type",t(11)]}},{11:11,70:70,77:77,93:93}],15:[function(t,e,n){"use strict";function i(t){this._model=t}var r=t(207),o=t(325),a=t(330);i.$inject=["moddle"],i.prototype._needsId=function(t){return t.$instanceOf("bpmn:RootElement")||t.$instanceOf("bpmn:FlowElement")||t.$instanceOf("bpmn:MessageFlow")||t.$instanceOf("bpmn:Artifact")||t.$instanceOf("bpmn:Participant")||t.$instanceOf("bpmn:Process")||t.$instanceOf("bpmn:Collaboration")||t.$instanceOf("bpmndi:BPMNShape")||t.$instanceOf("bpmndi:BPMNEdge")||t.$instanceOf("bpmndi:BPMNDiagram")||t.$instanceOf("bpmndi:BPMNPlane")},i.prototype._ensureId=function(t){var e=(t.$type||"").replace(/^[^:]*:/g,"")+"_";!t.id&&this._needsId(t)&&(t.id=this._model.ids.nextPrefixed(e,t))},i.prototype.create=function(t,e){var n=this._model.create(t,e||{});return this._ensureId(n),n},i.prototype.createDiLabel=function(){return this.create("bpmndi:BPMNLabel",{bounds:this.createDiBounds()})},i.prototype.createDiShape=function(t,e,n){return this.create("bpmndi:BPMNShape",o({bpmnElement:t,bounds:this.createDiBounds(e)},n))},i.prototype.createDiBounds=function(t){return this.create("dc:Bounds",t)},i.prototype.createDiWaypoints=function(t){return r(t,function(t){return this.createDiWaypoint(t)},this)},i.prototype.createDiWaypoint=function(t){return this.create("dc:Point",a(t,["x","y"]))},i.prototype.createDiEdge=function(t,e,n){return this.create("bpmndi:BPMNEdge",o({bpmnElement:t},n))},i.prototype.createDiPlane=function(t){return this.create("bpmndi:BPMNPlane",{bpmnElement:t})},e.exports=i},{207:207,325:325,330:330}],16:[function(t,e,n){"use strict";function i(){}function r(t,e,n){var i=t&&t[e];return i?i.original||i:c.getMidPoint(n)}var o=t(195),a=t(325),s=t(164),c=t(166),u=t(167),p=t(47).is;o(i,s),e.exports=i,i.prototype.layoutConnection=function(t,e){var n,i,o,s,c=t.source,l=t.target,h=t.waypoints;return n=r(h,0,c),i=r(h,h&&h.length-1,l),p(t,"bpmn:MessageFlow")&&(o={preferStraight:!0,preferVertical:!0}),p(t,"bpmn:SequenceFlow")&&(o={}),o&&(o=a(o,e),s=u.repairConnection(c,l,n,i,h,o)),s||[n,i]}},{164:164,166:166,167:167,195:195,325:325,47:47}],17:[function(t,e,n){"use strict";function i(t,e,n){function i(t){var e,i=t.context;i.cropped||(e=i.connection,e.waypoints=n.getCroppedWaypoints(e),i.cropped=!0)}function r(t){l.updateParent(t.context.shape||t.context.connection)}function o(t){var e=t.context,n=e.oldRoot,i=n.children;a(i,function(t){l.updateParent(t)})}function s(t){l.updateBounds(t.context.shape)}function c(t){l.updateConnection(t.context.connection)}function u(t){l.updateConnectionWaypoints(t.context.connection)}p.call(this,t),this._bpmnFactory=e;var l=this;this.executed(["connection.layout","connection.create","connection.reconnectEnd","connection.reconnectStart"],i),this.reverted(["connection.layout"],function(t){delete t.context.cropped}),this.executed(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],r),this.reverted(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],r),this.executed(["canvas.updateRoot"],o),this.reverted(["canvas.updateRoot"],o),this.executed(["shape.move","shape.create","shape.resize"],s),this.reverted(["shape.move","shape.create","shape.resize"],s),this.executed(["connection.create","connection.move","connection.delete","connection.reconnectEnd","connection.reconnectStart"],c),this.reverted(["connection.create","connection.move","connection.delete","connection.reconnectEnd","connection.reconnectStart"],c),this.executed(["connection.layout","connection.move","connection.updateWaypoints","connection.reconnectEnd","connection.reconnectStart"],u),this.reverted(["connection.layout","connection.move","connection.updateWaypoints","connection.reconnectEnd","connection.reconnectStart"],u)}function r(t){for(;t&&!t.$instanceOf("bpmn:Definitions");)t=t.$parent;return t}var o=t(325),a=t(204),s=t(195),c=t(175),u=t(168),p=t(75);s(i,p),e.exports=i,i.$inject=["eventBus","bpmnFactory","connectionDocking"],i.prototype.updateParent=function(t){if(!(t instanceof u.Label)){var e=t.parent,n=t.businessObject,i=e&&e.businessObject,r=i&&i.di;this.updateSemanticParent(n,i),this.updateDiParent(n.di,r)}},i.prototype.updateBounds=function(t){var e=t.businessObject.di,n=t instanceof u.Label?this._getLabel(e).bounds:e.bounds;o(n,{x:t.x,y:t.y,width:t.width,height:t.height})},i.prototype.updateDiParent=function(t,e){if(e&&!e.$instanceOf("bpmndi:BPMNPlane")&&(e=e.$parent),t.$parent!==e){var n=(e||t.$parent).get("planeElement");e?(n.push(t),t.$parent=e):(c.remove(n,t),t.$parent=null)}},i.prototype.updateSemanticParent=function(t,e){var n;if(t.$parent!==e){if(t.$instanceOf("bpmn:FlowElement"))e&&e.$instanceOf("bpmn:Participant")&&(e=e.processRef),n="flowElements";else if(t.$instanceOf("bpmn:Artifact")){for(;e&&!e.$instanceOf("bpmn:Process")&&!e.$instanceOf("bpmn:SubProcess")&&!e.$instanceOf("bpmn:Collaboration");){if(e.$instanceOf("bpmn:Participant")){e=e.processRef;break}e=e.$parent}n="artifacts"}else if(t.$instanceOf("bpmn:MessageFlow"))n="messageFlows";else if(t.$instanceOf("bpmn:Participant")){n="participants";var i,o=t.processRef;o&&(i=r(t.$parent||e),t.$parent&&(c.remove(i.get("rootElements"),o),o.$parent=null),e&&(c.add(i.get("rootElements"),o),o.$parent=i))}if(!n)throw new Error("no parent for ",t,e);var a;t.$parent&&(a=t.$parent.get(n),c.remove(a,t)),e?(a=e.get(n),a.push(t),t.$parent=e):t.$parent=null}},i.prototype.updateConnectionWaypoints=function(t){t.businessObject.di.set("waypoint",this._bpmnFactory.createDiWaypoints(t.waypoints))},i.prototype.updateConnection=function(t){var e=t.businessObject,n=t.source&&t.source.businessObject,i=t.target&&t.target.businessObject,r=e.$instanceOf("bpmn:SequenceFlow");e.sourceRef!==n&&(r&&(c.remove(e.sourceRef&&e.sourceRef.get("outgoing"),e),n&&n.get("outgoing").push(e)),e.sourceRef=n),e.targetRef!==i&&(r&&(c.remove(e.targetRef&&e.targetRef.get("incoming"),e),i&&i.get("incoming").push(e)),e.targetRef=i),e.di.set("waypoint",this._bpmnFactory.createDiWaypoints(t.waypoints))},i.prototype._getLabel=function(t){return t.label||(t.label=this._bpmnFactory.createDiLabel()),t.label}},{168:168,175:175,195:195,204:204,325:325,75:75}],18:[function(t,e,n){"use strict";function i(t,e){a.call(this),this._bpmnFactory=t,this._moddle=e}var r=t(325),o=t(195),a=t(79),s=t(46);o(i,a),i.$inject=["bpmnFactory","moddle"],e.exports=i,i.prototype.baseCreate=a.prototype.create,i.prototype.create=function(t,e){if("label"===t)return this.baseCreate(t,r({type:"label"},s.DEFAULT_LABEL_SIZE,e));e=e||{};var n,i=e.businessObject;if(!i){if(!e.type)throw new Error("no shape type specified");i=this._bpmnFactory.create(e.type)}if(i.di||("root"===t?i.di=this._bpmnFactory.createDiPlane(i,[],{id:i.id+"_di"}):"connection"===t?i.di=this._bpmnFactory.createDiEdge(i,[],{id:i.id+"_di"}):i.di=this._bpmnFactory.createDiShape(i,{},{id:i.id+"_di"})),e.isExpanded&&(i.di.isExpanded=e.isExpanded),i.$instanceOf("bpmn:ExclusiveGateway")&&(i.di.isMarkerVisible=!0),e._eventDefinitionType){var o=i.get("eventDefinitions")||[],a=this._moddle.create(e._eventDefinitionType);o.push(a),i.eventDefinitions=o}return n=this._getDefaultSize(i),e=r({businessObject:i,id:i.id},n,e),this.baseCreate(t,e)},i.prototype._getDefaultSize=function(t){if(t.$instanceOf("bpmn:SubProcess")){var e=t.di.isExpanded===!0;return e?{width:350,height:200}:{width:100,height:80}}return t.$instanceOf("bpmn:Task")?{width:100,height:80}:t.$instanceOf("bpmn:Gateway")?{width:50,height:50}:t.$instanceOf("bpmn:Event")?{width:36,height:36}:t.$instanceOf("bpmn:Participant")?{width:600,height:250}:{width:100,height:80}},i.prototype.createParticipantShape=function(t){var e=this.createShape({type:"bpmn:Participant"});return t||(e.businessObject.processRef=this._bpmnFactory.create("bpmn:Process")),e}},{195:195,325:325,46:46,79:79}],19:[function(t,e,n){"use strict";function i(t,e,n){t.on(["commandStack.shape.create.postExecute","commandStack.connection.create.postExecute"],function(t){var n,i=t.context,r=i.shape||i.connection,o=r.businessObject;s(o)&&(n=c(r),e.createLabel(r,n,{id:o.id+"_label",businessObject:o}))}),t.on("shape.move.start",function(t){var e=t.context,n=e.shapes,i=[];o(n,function(t){var n=t.label;n&&!n.hidden&&-1===e.shapes.indexOf(n)&&i.push(n)}),o(i,function(t){n.push(t)})}),t.on(["commandStack.shapes.move.postExecute"],function(t){var n=t.context,i=n.closure,r=i.enclosedElements;o(r,function(t){t.label&&!r[t.label.id]&&e.moveShape(t.label,n.delta,t.parent)})}),t.on(["commandStack.label.create.executed","commandStack.shape.moved.executed"],function(t){var e=t.context.shape,i=e.businessObject,o=i.di;e.labelTarget&&(o.label||(o.label=n.create("bpmndi:BPMNLabel",{bounds:n.create("dc:Bounds")})),r(o.label.bounds,{x:e.x,y:e.y,width:e.width,height:e.height}))})}var r=t(325),o=t(204),a=t(46),s=a.hasExternalLabel,c=a.getExternalLabelMid;i.$inject=["eventBus","modeling","bpmnFactory"],e.exports=i},{204:204,325:325,46:46}],20:[function(t,e,n){"use strict";function i(t,e,n,i){o.call(this,t,e,n),this._bpmnRules=i}var r=t(195),o=t(108),a=t(29),s=t(28);r(i,o),i.$inject=["eventBus","elementFactory","commandStack","bpmnRules"],e.exports=i,i.prototype.getHandlers=function(){var t=o.prototype.getHandlers.call(this);return t["element.updateProperties"]=a,t["canvas.updateRoot"]=s,t},i.prototype.updateLabel=function(t,e){this._commandStack.execute("element.updateLabel",{element:t,newLabel:e})};var c=t(21).getSharedParent;i.prototype.connect=function(t,e,n){var i=this._bpmnRules;return n||(n=i.canConnectMessageFlow(t,e)?{type:"bpmn:MessageFlow"}:i.canConnectSequenceFlow(t,e)?{type:"bpmn:SequenceFlow"}:{type:"bpmn:Association"}),this.createConnection(t,e,n,c(t,e))},i.prototype.updateProperties=function(t,e){this._commandStack.execute("element.updateProperties",{element:t,properties:e})},i.prototype.makeCollaboration=function(){var t=this._create("root",{type:"bpmn:Collaboration"}),e={newRoot:t};return this._commandStack.execute("canvas.updateRoot",e),t},i.prototype.makeProcess=function(){var t=this._create("root",{type:"bpmn:Process"}),e={newRoot:t};this._commandStack.execute("canvas.updateRoot",e)}},{108:108,195:195,21:21,28:28,29:29}],21:[function(t,e,n){"use strict";function i(t){for(var e=[];t;)t=t.parent,t&&e.push(t);return e}function r(t,e){var n=i(t),r=i(e);return o(n,function(t){return-1!==r.indexOf(t)})}var o=t(203);e.exports.getParents=i,e.exports.getSharedParent=r},{203:203}],22:[function(t,e,n){"use strict";function i(t,e,n){a.call(this,t),this.preExecute("shape.append",function(t){var e=t.source,n=t.shape;t.position||(o(n,"bpmn:TextAnnotation")?t.position={x:e.x+e.width/2+75,y:e.y-50-n.height/2}:t.position={x:e.x+e.width+80+n.width/2,y:e.y+e.height/2})},!0)}var r=t(195),o=t(47).is,a=t(75);i.$inject=["eventBus","elementFactory","bpmnRules"],r(i,a),e.exports=i},{195:195,47:47,75:75}],23:[function(t,e,n){"use strict";function i(t,e){o.call(this,t),this.preExecute("shape.create",function(t){var n=t.parent,i=t.shape,r=t.position;if(a(n,"bpmn:Process")&&a(i,"bpmn:Participant")){var o=e.makeCollaboration();t.position=r,t.parent=o,t.processRoot=n}},!0),this.execute("shape.create",function(t){var e=t.processRoot,n=t.shape;e&&(t.oldProcessRef=n.businessObject.processRef,n.businessObject.processRef=e.businessObject)},!0),this.revert("shape.create",function(t){var e=t.processRoot,n=t.shape;e&&(n.businessObject.processRef=t.oldProcessRef)},!0),this.postExecute("shape.create",function(t){var n=t.processRoot,i=t.shape;if(n){var r=n.children.slice();e.moveShapes(r,{x:0,y:0},i)}},!0)}var r=t(195),o=t(75),a=t(47).is;i.$inject=["eventBus","modeling"],r(i,o),e.exports=i},{195:195,47:47,75:75}],24:[function(t,e,n){"use strict";function i(t,e,n){a.call(this,t),this.postExecute("shapes.move",function(t){var i=t.closure,o=i.allConnections;r(o,function(t){var i,r,o=t.source,a=t.target;s(t,"bpmn:SequenceFlow")&&(n.canConnectSequenceFlow(o,a)||(r=!0),n.canConnectMessageFlow(o,a)&&(i="bpmn:MessageFlow")),s(t,"bpmn:MessageFlow")&&(n.canConnectMessageFlow(o,a)||(r=!0),n.canConnectSequenceFlow(o,a)&&(i="bpmn:SequenceFlow")),s(t,"bpmn:Association")&&!n.canConnectAssociation(o,a)&&(r=!0),r&&e.removeConnection(t),i&&e.createConnection(o,a,{type:i,waypoints:t.waypoints.slice()},c(o,a))})},!0)}var r=t(204),o=t(195),a=t(75),s=t(47).is,c=t(21).getSharedParent;o(i,a),i.$inject=["eventBus","modeling","bpmnRules"],e.exports=i},{195:195,204:204,21:21,47:47,75:75}],25:[function(t,e,n){"use strict";function i(t,e){function n(t,n){e.add({position:{x:t.x+5,y:t.y+5},type:"error",timeout:2e3,html:"<div>"+n+"</div>"})}t.on(["shape.move.rejected","create.rejected"],function(t){var e=t.context,i=e.shape,o=e.target;r(o,"bpmn:Collaboration")&&r(i,"bpmn:FlowNode")&&n(t,"flow elements must be children of pools/participants")})}var r=t(47).is;i.$inject=["eventBus","tooltips"],e.exports=i},{47:47}],26:[function(t,e,n){"use strict";function i(t,e){o.call(this,t),this.preExecute("shape.delete",function(t){var e=t.shape,n=e.parent;a(e,"bpmn:Participant")&&(t.collaborationRoot=n)},!0),this.postExecute("shape.delete",function(t){var n=t.collaborationRoot;n&&!n.businessObject.participants.length&&e.makeProcess()},!0)}var r=t(195),o=t(75),a=t(47).is;i.$inject=["eventBus","modeling"],r(i,o),e.exports=i},{195:195,47:47,75:75}],27:[function(t,e,n){e.exports={__init__:["appendBehavior","createBehavior","dropBehavior","removeBehavior","modelingFeedback"],appendBehavior:["type",t(22)],dropBehavior:["type",t(24)],createBehavior:["type",t(23)],removeBehavior:["type",t(26)],modelingFeedback:["type",t(25)]}},{22:22,23:23,24:24,25:25,26:26}],28:[function(t,e,n){"use strict";function i(t,e){this._canvas=t,this._modeling=e}var r=t(175);i.$inject=["canvas","modeling"],e.exports=i,i.prototype.execute=function(t){var e=this._canvas,n=t.newRoot,i=n.businessObject,o=e.getRootElement(),a=o.businessObject,s=a.$parent,c=a.di;e.setRootElement(n,!0),r.add(s.rootElements,i),i.$parent=s,r.remove(s.rootElements,a),a.$parent=null,a.di=null,c.bpmnElement=i,i.di=c,t.oldRoot=o},i.prototype.revert=function(t){var e=this._canvas,n=t.newRoot,i=n.businessObject,o=t.oldRoot,a=o.businessObject,s=i.$parent,c=i.di;e.setRootElement(o,!0),r.remove(s.rootElements,i),i.$parent=null,r.add(s.rootElements,a),a.$parent=s,i.di=null,c.bpmnElement=a,a.di=c}},{175:175}],29:[function(t,e,n){"use strict";function i(t){this._elementRegistry=t}var r=t(325),o=t(330),a=t(326),s="default",c="name",u="id";i.$inject=["elementRegistry"],e.exports=i,i.prototype.execute=function(t){var e=t.element,n=[e];if(!e)throw new Error("element required");var i=this._elementRegistry,p=e.businessObject,l=t.properties,h=t.oldProperties||o(p,a(l));return u in l&&i.updateId(e,l[u]),s in l&&(l[s]&&n.push(i.get(l[s].id)),p[s]&&n.push(i.get(p[s].id))),c in l&&e.label&&n.push(e.label),r(p,l),t.oldProperties=h,t.changed=n,n},i.prototype.revert=function(t){var e=t.element,n=t.oldProperties,i=e.businessObject,o=this._elementRegistry;return r(i,t.oldProperties),u in n&&o.updateId(e,n[u]),t.changed}},{325:325,326:326,330:330}],30:[function(t,e,n){e.exports={__init__:["modeling","bpmnUpdater","labelSupport"],__depends__:[t(14),t(32),t(27),t(77),t(160),t(93)],bpmnFactory:["type",t(15)],bpmnUpdater:["type",t(17)],elementFactory:["type",t(18)],modeling:["type",t(20)],labelSupport:["type",t(19)],layouter:["type",t(16)],connectionDocking:["type",t(165)]}},{14:14,15:15,16:16,160:160,165:165,17:17,18:18,19:19,20:20,27:27,32:32,77:77,93:93}],31:[function(t,e,n){"use strict";function i(t){I.call(this,t)}function r(t){return!t||v(t)}function o(t,e){return t===e}function a(t){for(var e=O(t);e&&!D(e,"bpmn:Process");){if(D(e,"bpmn:Participant"))return e.processRef||e;e=e.$parent}return e}function s(t,e){var n=a(t),i=a(e);return n===i}function c(t){return D(t,"bpmn:InteractionNode")&&(!D(t,"bpmn:Event")||D(t,"bpmn:ThrowEvent")&&f(t,"bpmn:MessageEventDefinition"))}function u(t){return D(t,"bpmn:InteractionNode")&&(!D(t,"bpmn:Event")||D(t,"bpmn:CatchEvent")&&f(t,"bpmn:MessageEventDefinition"))}function p(t){var e=O(t);if(D(e,"bpmn:Participant"))return null;for(;e;)if(e=e.$parent,D(e,"bpmn:FlowElementsContainer"))return e;return e}function l(t,e){var n=p(t),i=p(e);return n&&n===i}function h(t,e){var n=O(t);return!!N(n.eventDefinitions||[],function(t){return D(t,e)})}function f(t,e){var n=O(t);return(n.eventDefinitions||[]).every(function(t){return D(t,e)})}function d(t){return D(t,"bpmn:FlowNode")&&!D(t,"bpmn:EndEvent")&&!(D(t,"bpmn:IntermediateThrowEvent")&&h(t,"bpmn:LinkEventDefinition"))}function m(t){return D(t,"bpmn:FlowNode")&&!D(t,"bpmn:StartEvent")&&!(D(t,"bpmn:IntermediateCatchEvent")&&h(t,"bpmn:LinkEventDefinition"))}function y(t){return D(t,"bpmn:ReceiveTask")||D(t,"bpmn:IntermediateCatchEvent")&&(h(t,"bpmn:MessageEventDefinition")||h(t,"bpmn:TimerEventDefinition")||h(t,"bpmn:ConditionalEventDefinition")||h(t,"bpmn:SignalEventDefinition"))}function v(t){return t.labelTarget}function g(t){return t.waypoints}function x(t,e){var n=k(e);return-1!==n.indexOf(t)}function b(t,e,n){return r(t)||r(e)?null:o(t,e)?!1:A(t,e)||C(t,e)?!0:D(n,"bpmn:Association")?T(t,e):!1}function w(t,e){return v(t)&&!g(e)?!0:D(t,"bpmn:Participant")?D(e,"bpmn:Process")||D(e,"bpmn:Collaboration"):D(t,"bpmn:FlowElement")?D(e,"bpmn:FlowElementsContainer")?B(e)!==!1:D(e,"bpmn:Participant"):D(t,"bpmn:Artifact")?D(e,"bpmn:Collaboration")||D(e,"bpmn:Participant")||D(e,"bpmn:Process"):D(t,"bpmn:MessageFlow")?D(e,"bpmn:Collaboration"):!1}function E(t,e){var n=1===R(M(t,function(t){return t.parent&&t.parent.id}));return n?e?t.every(function(t){return w(t,e)}):!0:!1}function _(t,e,n){return e?v(e)?null:o(n,e)?!1:n&&x(n,e)?!1:w(t,e):!1}function S(t,e){return D(t,"bpmn:SubProcess")?B(t)&&(!e||e.width>=100&&e.height>=80):D(t,"bpmn:Participant")?!e||e.width>=100&&e.height>=80:D(t,"bpmn:TextAnnotation")?!0:!1}function T(t,e){return g(t)||g(e)?!1:!x(e,t)&&!x(t,e)}function A(t,e){return c(t)&&u(e)&&!s(t,e)}function C(t,e){return d(t)&&m(e)&&l(t,e)&&!(D(t,"bpmn:EventBasedGateway")&&!y(e))}var M=t(205),R=t(209),N=t(203),P=t(195),k=t(21).getParents,D=t(47).is,O=t(47).getBusinessObject,B=t(45).isExpanded,I=t(145);P(i,I),i.$inject=["eventBus"],e.exports=i,i.prototype.init=function(){this.addRule("connection.create",function(t){var e=t.source,n=t.target;return b(e,n)}),this.addRule("connection.reconnectStart",function(t){var e=t.connection,n=t.hover||t.source,i=e.target;return b(n,i,e)}),this.addRule("connection.reconnectEnd",function(t){var e=t.connection,n=e.source,i=t.hover||t.target;return b(n,i,e)}),this.addRule("connection.updateWaypoints",function(t){return null}),this.addRule("shape.resize",function(t){var e=t.shape,n=t.newBounds;return S(e,n)}),this.addRule("shapes.move",function(t){var e=t.newParent,n=t.shapes;return E(n,e)}),this.addRule(["shape.create","shape.append"],function(t){var e=t.parent,n=t.shape,i=t.source;return _(n,e,i)})},i.prototype.canConnectMessageFlow=A,i.prototype.canConnectSequenceFlow=C,i.prototype.canConnectAssociation=T,i.prototype.canMove=E,i.prototype.canDrop=w,i.prototype.canCreate=_,i.prototype.canConnect=b,i.prototype.canResize=S},{145:145,195:195,203:203,205:205,209:209,21:21,45:45,47:47}],32:[function(t,e,n){e.exports={__depends__:[t(147)],__init__:["bpmnRules"],bpmnRules:["type",t(31)]}},{147:147,31:31}],33:[function(t,e,n){"use strict";function i(t,e,n,i,r){this._create=e,this._elementFactory=n,this._spaceTool=i,this._lassoTool=r,t.registerProvider(this)}var r=t(325);e.exports=i,i.$inject=["palette","create","elementFactory","spaceTool","lassoTool"],i.prototype.getPaletteEntries=function(t){function e(t,e,n,i,s){function c(e){var n=a.createShape(r({type:t},s));s&&(n.businessObject.di.isExpanded=s.isExpanded),o.start(e,n)}var u=t.replace(/^bpmn\:/,"");return{group:e,className:n,title:i||"Create "+u,action:{dragstart:c,click:c}}}function n(t,e){o.start(t,a.createParticipantShape(e))}var i={},o=this._create,a=this._elementFactory,s=this._spaceTool,c=this._lassoTool;return r(i,{"lasso-tool":{group:"tools",className:"icon-lasso-tool",title:"Activate the lasso tool",action:{click:function(t){c.activateSelection(t)}}},"space-tool":{group:"tools",className:"icon-space-tool",title:"Activate the create/remove space tool",action:{click:function(t){s.activateSelection(t)}}},"tool-separator":{group:"tools",separator:!0},"create.start-event":e("bpmn:StartEvent","event","icon-start-event-none"),"create.intermediate-event":e("bpmn:IntermediateThrowEvent","event","icon-intermediate-event-none"),"create.end-event":e("bpmn:EndEvent","event","icon-end-event-none"),"create.exclusive-gateway":e("bpmn:ExclusiveGateway","gateway","icon-gateway-xor"),"create.task":e("bpmn:Task","activity","icon-task"),"create.subprocess-collapsed":e("bpmn:SubProcess","activity","icon-subprocess-collapsed","Create collapsed Sub Process",{isExpanded:!1}),"create.subprocess-expanded":e("bpmn:SubProcess","activity","icon-subprocess-expanded","Create expanded SubProcess",{isExpanded:!0}),"create.participant-expanded":{group:"collaboration",className:"icon-participant",title:"Create Pool/Participant",action:{
+dragstart:n,click:n}}}),i}},{325:325}],34:[function(t,e,n){e.exports={__depends__:[t(137),t(99)],__init__:["paletteProvider"],paletteProvider:["type",t(33)]}},{137:137,33:33,99:99}],35:[function(t,e,n){"use strict";function i(t,e,n,i,a){function h(n,r){var o=r.type,s=n.businessObject,c=t.create(o),u={type:o,businessObject:c};if(r.eventDefinition){var p=c.get("eventDefinitions"),l=e.create(r.eventDefinition);p.push(l)}return void 0!==r.instantiate&&(c.instantiate=r.instantiate),void 0!==r.eventGatewayType&&(c.eventGatewayType=r.eventGatewayType),s.$instanceOf("bpmn:Activity")&&(u.width=n.width,u.height=n.height),c.name=s.name,u=i.replaceElement(n,u),a.select(u),u}function f(t){function e(t){var e=t.target,n=f.eventDefinitions&&f.eventDefinitions[0].$type,i=e.eventDefinition==n,r=f.$type==e.type;return!i&&r||!r||!(i&&r)}function n(t,e){var n=o(t,e);r(n,function(t){var e=i(t);a.push(e)})}function i(e){return{label:e.label,className:e.className,action:{name:e.actionName,handler:function(){h(t,e.target)}}}}var a=[],f=t.businessObject;return f.$instanceOf("bpmn:StartEvent")?n(s,e):f.$instanceOf("bpmn:IntermediateCatchEvent")||f.$instanceOf("bpmn:IntermediateThrowEvent")?n(c,e):f.$instanceOf("bpmn:EndEvent")?n(u,e):f.$instanceOf("bpmn:Gateway")?n(p,function(t){return t.target.type!==f.$type}):f.$instanceOf("bpmn:FlowNode")&&n(l,function(t){return t.target.type!==f.$type}),a}this.openChooser=function(t,e){var i=this.getReplaceOptions(e);n.open("replace-menu",t,i)},this.getReplaceOptions=f,this.replaceElement=h}var r=t(204),o=t(202),a=t(36),s=a.START_EVENT,c=a.INTERMEDIATE_EVENT,u=a.END_EVENT,p=a.GATEWAY,l=a.TASK;i.$inject=["bpmnFactory","moddle","popupMenu","replace","selection"],e.exports=i},{202:202,204:204,36:36}],36:[function(t,e,n){"use strict";e.exports.START_EVENT=[{label:"Start Event",actionName:"replace-with-none-start",className:"icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-intermediate-throwing",className:"icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-message-end",className:"icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message Start Event",actionName:"replace-with-message-start",className:"icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinition:"bpmn:MessageEventDefinition"}},{label:"Timer Start Event",actionName:"replace-with-timer-start",className:"icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinition:"bpmn:TimerEventDefinition"}},{label:"Conditional Start Event",actionName:"replace-with-conditional-start",className:"icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinition:"bpmn:ConditionalEventDefinition"}},{label:"Signal Start Event",actionName:"replace-with-signal-start",className:"icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinition:"bpmn:SignalEventDefinition"}}],e.exports.INTERMEDIATE_EVENT=[{label:"Start Event",actionName:"replace-with-none-start",className:"icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-message-intermediate-throw",className:"icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-message-end",className:"icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message Intermediate Catch Event",actionName:"replace-with-intermediate-catch",className:"icon-intermediate-event-catch-message",target:{type:"bpmn:IntermediateCatchEvent",eventDefinition:"bpmn:MessageEventDefinition"}},{label:"Message Intermediate Throw Event",actionName:"replace-with-intermediate-throw",className:"icon-intermediate-event-throw-message",target:{type:"bpmn:IntermediateThrowEvent",eventDefinition:"bpmn:MessageEventDefinition"}},{label:"Timer Intermediate Catch Event",actionName:"replace-with-timer-intermediate-catch",className:"icon-intermediate-event-catch-timer",target:{type:"bpmn:IntermediateCatchEvent",eventDefinition:"bpmn:TimerEventDefinition"}},{label:"Escalation Intermediate Catch Event",actionName:"replace-with-escalation-catch",className:"icon-intermediate-event-catch-escalation",target:{type:"bpmn:IntermediateCatchEvent",eventDefinition:"bpmn:EscalationEventDefinition"}},{label:"Conditional Intermediate Catch Event",actionName:"replace-with-conditional-intermediate-catch",className:"icon-intermediate-event-catch-condition",target:{type:"bpmn:IntermediateCatchEvent",eventDefinition:"bpmn:ConditionalEventDefinition"}},{label:"Link Intermediate Catch Event",actionName:"replace-with-link-intermediate-catch",className:"icon-intermediate-event-catch-link",target:{type:"bpmn:IntermediateCatchEvent",eventDefinition:"bpmn:LinkEventDefinition"}},{label:"Link Intermediate Throw Event",actionName:"replace-with-link-intermediate-throw",className:"icon-intermediate-event-throw-link",target:{type:"bpmn:IntermediateThrowEvent",eventDefinition:"bpmn:LinkEventDefinition"}},{label:"Compensation Intermediate Throw Event",actionName:"replace-with-compensation-intermediate-throw",className:"icon-intermediate-event-throw-compensation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinition:"bpmn:CompensateEventDefinition"}},{label:"Signal Throw Catch Event",actionName:"replace-with-throw-intermediate-catch",className:"icon-intermediate-event-catch-signal",target:{type:"bpmn:IntermediateCatchEvent",eventDefinition:"bpmn:SignalEventDefinition"}},{label:"Signal Intermediate Throw Event",actionName:"replace-with-signal-intermediate-throw",className:"icon-intermediate-event-throw-signal",target:{type:"bpmn:IntermediateThrowEvent",eventDefinition:"bpmn:SignalEventDefinition"}}],e.exports.END_EVENT=[{label:"Start Event",actionName:"replace-with-none-start",className:"icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-message-intermediate-throw",className:"icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message End Event",actionName:"replace-with-message-end",className:"icon-end-event-message",target:{type:"bpmn:EndEvent",eventDefinition:"bpmn:MessageEventDefinition"}},{label:"Escalation End Event",actionName:"replace-with-escalation-end",className:"icon-end-event-escalation",target:{type:"bpmn:EndEvent",eventDefinition:"bpmn:EscalationEventDefinition"}},{label:"Error End Event",actionName:"replace-with-error-end",className:"icon-end-event-error",target:{type:"bpmn:EndEvent",eventDefinition:"bpmn:ErrorEventDefinition"}},{label:"Cancel End Event",actionName:"replace-with-cancel-end",className:"icon-end-event-cancel",target:{type:"bpmn:EndEvent",eventDefinition:"bpmn:CancelEventDefinition"}},{label:"Compensation End Event",actionName:"replace-with-compensation-end",className:"icon-end-event-compensation",target:{type:"bpmn:EndEvent",eventDefinition:"bpmn:CompensateEventDefinition"}},{label:"Signal End Event",actionName:"replace-with-signal-end",className:"icon-end-event-signal",target:{type:"bpmn:EndEvent",eventDefinition:"bpmn:SignalEventDefinition"}},{label:"Terminate End Event",actionName:"replace-with-terminate-end",className:"icon-end-event-terminate",target:{type:"bpmn:EndEvent",eventDefinition:"bpmn:TerminateEventDefinition"}}],e.exports.GATEWAY=[{label:"Exclusive Gateway",actionName:"replace-with-exclusive-gateway",className:"icon-gateway-xor",target:{type:"bpmn:ExclusiveGateway"}},{label:"Parallel Gateway",actionName:"replace-with-parallel-gateway",className:"icon-gateway-parallel",target:{type:"bpmn:ParallelGateway"}},{label:"Inclusive Gateway",actionName:"replace-with-inclusive-gateway",className:"icon-gateway-or",target:{type:"bpmn:InclusiveGateway"}},{label:"Complex Gateway",actionName:"replace-with-complex-gateway",className:"icon-gateway-complex",target:{type:"bpmn:ComplexGateway"}},{label:"Event based Gateway",actionName:"replace-with-event-based-gateway",className:"icon-gateway-eventbased",target:{type:"bpmn:EventBasedGateway",instantiate:!1,eventGatewayType:"Exclusive"}}],e.exports.TASK=[{label:"Task",actionName:"replace-with-task",className:"icon-task",target:{type:"bpmn:Task"}},{label:"Send Task",actionName:"replace-with-send-task",className:"icon-send",target:{type:"bpmn:SendTask"}},{label:"Receive Task",actionName:"replace-with-receive-task",className:"icon-receive",target:{type:"bpmn:ReceiveTask"}},{label:"User Task",actionName:"replace-with-user-task",className:"icon-user",target:{type:"bpmn:UserTask"}},{label:"Manual Task",actionName:"replace-with-manual-task",className:"icon-manual",target:{type:"bpmn:ManualTask"}},{label:"Business Rule Task",actionName:"replace-with-rule-task",className:"icon-business-rule",target:{type:"bpmn:BusinessRuleTask"}},{label:"Service Task",actionName:"replace-with-service-task",className:"icon-service",target:{type:"bpmn:ServiceTask"}},{label:"Script Task",actionName:"replace-with-script-task",className:"icon-script",target:{type:"bpmn:ScriptTask"}}]},{}],37:[function(t,e,n){e.exports={__depends__:[t(139),t(141),t(151)],bpmnReplace:["type",t(35)]}},{139:139,141:141,151:151,35:35}],38:[function(t,e,n){"use strict";function i(t,e){function n(t,e,n){if(n.length){var i=a(n.filter(function(t){return!t.labelTarget&&!t.waypoints}));i.x-=50,i.y-=20,i.width+=70,i.height+=40,e.width=Math.max(e.width,i.width),e.height=Math.max(e.height,i.height),t.participantSnapBox=i}}function i(t,e,n){var i=e.width/2-30,r=e.height/2,o={x:n.x-i-30,y:n.y-r},a={x:n.x+i+30,y:n.y+r},s=t,c=h(t);o.x>=s.x?(n.x=s.x+30+i,n.snapped=!0):a.x<=c.x&&(n.x=c.x-30-i,n.snapped=!0),o.y>=s.y?(n.y=s.y+r,n.snapped=!0):a.y<=c.y&&(n.y=c.y-r,n.snapped=!0)}c.call(this,t,e),t.on("create.start",function(t){var i=t.context,r=i.shape,o=e.getRootElement();s(r,"bpmn:Participant")&&s(o,"bpmn:Process")&&n(i,r,o.children)}),t.on(["create.move","create.end"],1500,function(t){var e=t.context,n=e.shape,r=e.participantSnapBox;!t.snapped&&r&&i(r,n,t)}),t.on("resize.start",1500,function(t){var e=t.context,n=e.shape;s(n,"bpmn:SubProcess")&&(e.minDimensions={width:140,height:120}),s(n,"bpmn:Participant")&&(e.minDimensions={width:400,height:200}),s(n,"bpmn:TextAnnotation")&&(e.minDimensions={width:50,height:50})})}var r=t(195),o=t(204),a=t(177).getBBox,s=t(21).is,c=t(154),u=t(153),s=t(47).is,p=u.mid,l=u.topLeft,h=u.bottomRight,f=Math.round;r(i,c),i.$inject=["eventBus","canvas"],e.exports=i,i.prototype.initSnap=function(t){var e,n,i,r,a,u=t.context,d=u.shape;a=c.prototype.initSnap.call(this,t),s(d,"bpmn:Participant")&&a.setSnapLocations(["top-left","bottom-right","mid"]),d&&(e=p(d,t),n={width:d.width,height:d.height,x:isNaN(d.x)?f(e.x-d.width/2):d.x,y:isNaN(d.y)?f(e.y-d.height/2):d.y},i=l(n),r=h(n),a.setSnapOrigin("top-left",{x:i.x-t.x,y:i.y-t.y}),a.setSnapOrigin("bottom-right",{x:r.x-t.x,y:r.y-t.y}),o(d.outgoing,function(e){var n=e.waypoints[0];n=n.original||n,a.setSnapOrigin(e.id+"-docking",{x:n.x-t.x,y:n.y-t.y})}),o(d.incoming,function(e){var n=e.waypoints[e.waypoints.length-1];n=n.original||n,a.setSnapOrigin(e.id+"-docking",{x:n.x-t.x,y:n.y-t.y})}));var m=u.source;m&&a.addDefaultSnap("mid",p(m))},i.prototype.addTargetSnaps=function(t,e,n){var i=this.getSiblings(e,n);o(i,function(e){t.add("mid",p(e)),s(e,"bpmn:Participant")&&(t.add("top-left",l(e)),t.add("bottom-right",h(e)))}),o(e.incoming,function(e){if(-1===i.indexOf(e.source)){t.add("mid",p(e.source));var n=e.waypoints[0];t.add(e.id+"-docking",n.original||n)}}),o(e.outgoing,function(e){if(-1===i.indexOf(e.target)){t.add("mid",p(e.target));var n=e.waypoints[e.waypoints.length-1];t.add(e.id+"-docking",n.original||n)}})}},{153:153,154:154,177:177,195:195,204:204,21:21,47:47}],39:[function(t,e,n){e.exports={__init__:["snapping"],snapping:["type",t(38)]}},{38:38}],40:[function(t,e,n){"use strict";function i(t,e){return a({id:t.id,type:t.$type,businessObject:t},e)}function r(t){return s(t,function(t){return{x:t.x,y:t.y}})}function o(t,e,n,i){this._eventBus=t,this._canvas=e,this._elementFactory=n,this._elementRegistry=i}var a=t(325),s=t(207),c=t(46),u=c.hasExternalLabel,p=c.getExternalLabelBounds,l=t(45).isExpanded,h=t(43).elementToString;o.$inject=["eventBus","canvas","elementFactory","elementRegistry"],e.exports=o,o.prototype.add=function(t,e){var n,o=t.di;if(o.$instanceOf("bpmndi:BPMNPlane"))n=this._elementFactory.createRoot(i(t)),this._canvas.setRootElement(n);else if(o.$instanceOf("bpmndi:BPMNShape")){var a=!l(t),s=e&&(e.hidden||e.collapsed),c=t.di.bounds;n=this._elementFactory.createShape(i(t,{collapsed:a,hidden:s,x:Math.round(c.x),y:Math.round(c.y),width:Math.round(c.width),height:Math.round(c.height)})),this._canvas.addShape(n,e)}else{if(!o.$instanceOf("bpmndi:BPMNEdge"))throw new Error("unknown di "+h(o)+" for element "+h(t));var p=this._getSource(t),f=this._getTarget(t);n=this._elementFactory.createConnection(i(t,{source:p,target:f,waypoints:r(t.di.waypoint)})),this._canvas.addConnection(n,e)}return u(t)&&this.addLabel(t,n),this._eventBus.fire("bpmnElement.added",{element:n}),n},o.prototype.addLabel=function(t,e){var n=p(t,e),r=this._elementFactory.createLabel(i(t,{id:t.id+"_label",labelTarget:e,type:"label",hidden:e.hidden,x:Math.round(n.x),y:Math.round(n.y),width:Math.round(n.width),height:Math.round(n.height)}));return this._canvas.addShape(r,e.parent)},o.prototype._getEnd=function(t,e){var n,i,r=t.$type;if(i=t[e+"Ref"],"source"===e&&"bpmn:DataInputAssociation"===r&&(i=i&&i[0]),("source"===e&&"bpmn:DataOutputAssociation"===r||"target"===e&&"bpmn:DataInputAssociation"===r)&&(i=t.$parent),n=i&&this._getElement(i))return n;throw i?new Error("element "+h(i)+" referenced by "+h(t)+"#"+e+"Ref not yet drawn"):new Error(h(t)+"#"+e+"Ref not specified")},o.prototype._getSource=function(t){return this._getEnd(t,"source")},o.prototype._getTarget=function(t){return this._getEnd(t,"target")},o.prototype._getElement=function(t){return this._elementRegistry.get(t.id)}},{207:207,325:325,43:43,45:45,46:46}],41:[function(t,e,n){"use strict";function i(t,e){return t.$instanceOf(e)}function r(t){return s(t.rootElements,function(t){return i(t,"bpmn:Process")||i(t,"bpmn:Collaboration")})}function o(t){function e(t,e){return function(n){t(n,e)}}function n(e,n){var i=e.gfx;if(i)throw new Error("already rendered "+p(e));return t.element(e,n)}function o(e,n){return t.root(e,n)}function s(t,e){try{return t.di&&n(t,e)}catch(i){u(i.message,{element:t,error:i}),console.error("failed to import "+p(t)),console.error(i)}}function u(e,n){t.error(e,n)}function h(t){var e=t.bpmnElement;e?e.di?u("multiple DI elements defined for "+p(e),{element:e}):(l.bind(e,"di"),e.di=t):u("no bpmnElement referenced in "+p(t),{element:t})}function f(t){d(t.plane)}function d(t){h(t),c(t.planeElement,m)}function m(t){h(t)}function y(t,e){var n=t.diagrams;if(e&&-1===n.indexOf(e))throw new Error("diagram not part of bpmn:Definitions");if(!e&&n&&n.length&&(e=n[0]),e){f(e);var a=e.plane;if(!a)throw new Error("no plane for "+p(e));var s=a.bpmnElement;if(!s){if(s=r(t),!s)return u("no process or collaboration present to display");u("correcting missing bpmnElement on "+p(a)+" to "+p(s)),a.bpmnElement=s,h(a)}var c=o(s,a);if(i(s,"bpmn:Process"))g(s,c);else{if(!i(s,"bpmn:Collaboration"))throw new Error("unsupported bpmnElement for "+p(a)+" : "+p(s));$(s,c),x(t.rootElements,c)}v(G)}}function v(t){c(t,function(t){t()})}function g(t,e){I(t,e),C(t.ioSpecification,e),A(t.artifacts,e),V.push(t)}function x(t){var n=a(t,function(t){return i(t,"bpmn:Process")&&t.laneSets&&-1===V.indexOf(t)});n.forEach(e(g))}function b(t,e){s(t,e)}function w(t,n){c(t,e(b,n))}function E(t,e){s(t,e)}function _(t,e){s(t,e)}function S(t,e){s(t,e)}function T(t,e){s(t,e)}function A(t,e){c(t,function(t){i(t,"bpmn:Association")?G.push(function(){T(t,e)}):T(t,e)})}function C(t,n){t&&(c(t.dataInputs,e(_,n)),c(t.dataOutputs,e(S,n)))}function M(t,e){I(t,e),A(t.artifacts,e)}function R(t,e){var n=s(t,e);i(t,"bpmn:SubProcess")&&M(t,n||e)}function N(t,e){s(t,e)}function P(t,e){s(t,e)}function k(t,e){s(t,e)}function D(t,e){var n=s(t,e);if(t.childLaneSet)O(t.childLaneSet,n||e);else{var i=a(t.flowNodeRef,function(t){return"bpmn:BoundaryEvent"!==t.$type});j(i,n||e)}}function O(t,n){c(t.lanes,e(D,n))}function B(t,n){c(t,e(O,n))}function I(t,e){t.laneSets?(B(t.laneSets,e),L(t.flowElements)):j(t.flowElements,e)}function L(t,e){c(t,function(t){i(t,"bpmn:SequenceFlow")?G.push(function(){N(t,e)}):i(t,"bpmn:BoundaryEvent")?G.unshift(function(){k(t,e)}):i(t,"bpmn:DataObject")||(i(t,"bpmn:DataStoreReference")?P(t,e):i(t,"bpmn:DataObjectReference")&&P(t,e))})}function j(t,n){c(t,function(t){i(t,"bpmn:SequenceFlow")?G.push(function(){N(t,n)}):i(t,"bpmn:BoundaryEvent")?G.unshift(function(){k(t,n)}):i(t,"bpmn:FlowNode")?(R(t,n),i(t,"bpmn:Activity")&&(C(t.ioSpecification,n),G.push(function(){c(t.dataInputAssociations,e(E,n)),c(t.dataOutputAssociations,e(E,n))}))):i(t,"bpmn:DataObject")||(i(t,"bpmn:DataStoreReference")?P(t,n):i(t,"bpmn:DataObjectReference")?P(t,n):u("unrecognized flowElement "+p(t)+" in context "+(n?p(n.businessObject):null),{element:t,context:n}))})}function F(t,e){var n=s(t,e),i=t.processRef;i&&g(i,n||e)}function $(t){c(t.participants,e(F)),A(t.artifacts),G.push(function(){w(t.messageFlows)})}var V=[],G=[];return{handleDefinitions:y}}var a=t(202),s=t(203),c=t(204),u=t(356),p=t(43).elementToString,l=new u({name:"bpmnElement",enumerable:!0},{name:"di"});e.exports=o},{202:202,203:203,204:204,356:356,43:43}],42:[function(t,e,n){"use strict";function i(t,e,n){function i(t){var e={root:function(t){return a.add(t)},element:function(t,e){return a.add(t,e)},error:function(t,e){c.push({message:t,context:e})}},n=new r(e);n.handleDefinitions(t)}var o,a=t.get("bpmnImporter"),s=t.get("eventBus"),c=[];s.fire("import.start");try{i(e)}catch(u){o=u}s.fire(o?"import.error":"import.success",{error:o,warnings:c}),n(o,c)}var r=t(41);e.exports.importBpmnDiagram=i},{41:41}],43:[function(t,e,n){"use strict";e.exports.elementToString=function(t){return t?"<"+t.$type+(t.id?' id="'+t.id:"")+'" />':"<null>"}},{}],44:[function(t,e,n){e.exports={bpmnImporter:["type",t(40)]}},{40:40}],45:[function(t,e,n){"use strict";var i=t(47).is,r=t(47).getBusinessObject;e.exports.isExpanded=function(t){return i(t,"bpmn:CallActivity")?!1:i(t,"bpmn:SubProcess")?r(t).di.isExpanded:i(t,"bpmn:Participant")?!!r(t).processRef:!0}},{47:47}],46:[function(t,e,n){"use strict";var i=t(325),r=e.exports.DEFAULT_LABEL_SIZE={width:90,height:20};e.exports.hasExternalLabel=function(t){return t.$instanceOf("bpmn:Event")||t.$instanceOf("bpmn:Gateway")||t.$instanceOf("bpmn:DataStoreReference")||t.$instanceOf("bpmn:DataObjectReference")||t.$instanceOf("bpmn:SequenceFlow")||t.$instanceOf("bpmn:MessageFlow")};var o=e.exports.getWaypointsMid=function(t){var e=t.length/2-1,n=t[Math.floor(e)],i=t[Math.ceil(e+.01)];return{x:n.x+(i.x-n.x)/2,y:n.y+(i.y-n.y)/2}},a=e.exports.getExternalLabelMid=function(t){return t.waypoints?o(t.waypoints):{x:t.x+t.width/2,y:t.y+t.height+r.height/2}};e.exports.getExternalLabelBounds=function(t,e){var n,o,s,c=t.di,u=c.label;return u&&u.bounds?(s=u.bounds,o={width:Math.max(r.width,s.width),height:s.height},n={x:s.x+s.width/2,y:s.y+s.height/2}):(n=a(e),o=r),i({x:n.x-o.width/2,y:n.y-o.height/2},o)}},{325:325}],47:[function(t,e,n){"use strict";function i(t,e){var n=r(t);return n&&n.$instanceOf(e)}function r(t){return t&&t.businessObject||t}e.exports.is=i,e.exports.getBusinessObject=r},{}],48:[function(t,e,n){e.exports=t(51)},{51:51}],49:[function(t,e,n){"use strict";function i(t,e){s.call(this,t,e)}var r=t(322),o=t(317),a=t(325),s=t(57),c=t(53),u=t(54);i.prototype=Object.create(s.prototype),e.exports=i,i.prototype.fromXML=function(t,e,n,i){r(e)||(i=n,n=e,e="bpmn:Definitions"),o(n)&&(i=n,n={});var s=new c(a({model:this,lax:!0},n)),u=s.handler(e);s.fromXML(t,u,i)},i.prototype.toXML=function(t,e,n){o(e)&&(n=e,e={});var i=new u(e);try{var r=i.toXML(t);n(null,r)}catch(a){n(a)}}},{317:317,322:322,325:325,53:53,54:54,57:57}],50:[function(t,e,n){"use strict";var i=/^(.*:)?id$/;e.exports.extend=function(t,e){var n=t.properties.set;return t.ids||(t.properties.set=function(e,r,o){if(i.test(r)){var a=t.ids.assigned(o);if(a&&a!==e)throw new Error("id <"+o+"> already used");t.ids.claim(o,e)}n.call(this,e,r,o)}),t.ids=e,t}},{}],51:[function(t,e,n){"use strict";var i=t(325),r=t(49),o={bpmn:t(66),bpmndi:t(67),dc:t(68),di:t(69)};e.exports=function(t,e){return new r(i({},o,t),e)}},{325:325,49:49,66:66,67:67,68:68,69:69}],52:[function(t,e,n){"use strict";function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}function r(t){return t.charAt(0).toLowerCase()+t.slice(1)}function o(t){return t.xml&&"lowerCase"===t.xml.tagAlias}e.exports.aliasToName=function(t,e){return o(e)?i(t):t},e.exports.nameToAlias=function(t,e){return o(e)?r(t):t},e.exports.DEFAULT_NS_MAP={xsi:"http://www.w3.org/2001/XMLSchema-instance"},e.exports.XSI_TYPE="xsi:type"},{}],53:[function(t,e,n){"use strict";function i(t){var e=t.attributes;return y(e,function(t,e,n){var i,r;return e.local?(r=S(e.name,e.prefix),i=r.name):i=e.prefix,t[i]=e.value,t},{})}function r(t,e,n){var i,r=S(e.value),o=t.ns[r.prefix||""],a=r.localName,s=o&&n.getPackage(o);s&&(i=s.xml&&s.xml.typePrefix,i&&0===a.indexOf(i)&&(a=a.slice(i.length)),e.value=s.prefix+":"+a)}function o(t,e,n){var i,a;if(i=t.uri||n){var s=e.getPackage(i);a=s?s.prefix:t.prefix,t.prefix=a,t.uri=i}v(t.attributes,function(n){n.uri===N&&"type"===n.local&&r(t,n,e),o(n,e,null)})}function a(t){x(this,t);var e=this.elementsById={},n=this.references=[],i=this.warnings=[];this.addReference=function(t){n.push(t)},this.addElement=function(t,n){if(!t||!n)throw new Error("[xml-reader] id or ctx must not be null");e[t]=n},this.addWarning=function(t){i.push(t)}}function s(){}function c(){}function u(){}function p(t,e){this.property=t,this.context=e}function l(t,e){this.element=e,this.propertyDesc=t}function h(){}function f(t,e,n){this.model=t,this.type=t.getType(e),this.context=n}function d(t,e,n){this.model=t,this.context=n}function m(t){t instanceof _&&(t={model:t}),x(this,{lax:!1},t)}var y=t(208),v=t(204),g=t(203),x=t(325),b=t(215),w=t(56),E=t(55).parser,_=t(57),S=t(62).parseName,T=t(65),A=T.coerceType,C=T.isSimple,M=t(52),R=M.XSI_TYPE,N=M.DEFAULT_NS_MAP.xsi,P=M.aliasToName;s.prototype.handleEnd=function(){},s.prototype.handleText=function(){},s.prototype.handleNode=function(){},c.prototype=new s,c.prototype.handleNode=function(){return this},u.prototype=new s,u.prototype.handleText=function(t){this.body=(this.body||"")+t},p.prototype=new u,p.prototype.handleNode=function(t){if(this.element)throw new Error("expected no sub nodes");return this.element=this.createReference(t),this},p.prototype.handleEnd=function(){this.element.id=this.body},p.prototype.createReference=function(){return{property:this.property.ns.name,id:""}},l.prototype=new u,l.prototype.handleEnd=function(){var t=this.body,e=this.element,n=this.propertyDesc;t=A(n.type,t),n.isMany?e.get(n.name).push(t):e.set(n.name,t)},h.prototype=Object.create(u.prototype),h.prototype.handleNode=function(t){var e,n=this,i=this.element;return i?n=this.handleChild(t):(i=this.element=this.createElement(t),e=i.id,e&&this.context.addElement(e,i)),n},f.prototype=new h,f.prototype.addReference=function(t){this.context.addReference(t)},f.prototype.handleEnd=function(){var t=this.body,e=this.element,n=e.$descriptor,i=n.bodyProperty;i&&void 0!==t&&(t=A(i.type,t),e.set(i.name,t))},f.prototype.createElement=function(t){var e=i(t),n=this.type,r=n.$descriptor,o=this.context,a=new n({});return v(e,function(t,e){var n=r.propertiesByName[e];n&&n.isReference?o.addReference({element:a,property:n.ns.name,id:t}):(n&&(t=A(n.type,t)),a.set(e,t))}),a},f.prototype.getPropertyForNode=function(t){var e,n,i,r=S(t.local,t.prefix),o=this.type,a=this.model,s=o.$descriptor,c=r.name,u=s.propertiesByName[c];if(u)return u.serialize===R&&(i=t.attributes[R])?(e=i.value,n=a.getType(e),x({},u,{effectiveType:n.$descriptor.name})):u;var p=a.getPackage(r.prefix);if(p){if(e=r.prefix+":"+P(r.localName,s.$pkg),n=a.getType(e),u=g(s.properties,function(t){return!t.isVirtual&&!t.isReference&&!t.isAttribute&&n.hasType(t.type)}))return x({},u,{effectiveType:n.$descriptor.name})}else if(u=g(s.properties,function(t){return!t.isReference&&!t.isAttribute&&"Element"===t.type}))return u;throw new Error("unrecognized element <"+r.name+">")},f.prototype.toString=function(){return"ElementDescriptor["+this.type.$descriptor.name+"]"},f.prototype.valueHandler=function(t,e){return new l(t,e)},f.prototype.referenceHandler=function(t){return new p(t,this.context)},f.prototype.handler=function(t){return"Element"===t?new d(this.model,t,this.context):new f(this.model,t,this.context)},f.prototype.handleChild=function(t){var e,n,i,r;if(e=this.getPropertyForNode(t),i=this.element,n=e.effectiveType||e.type,C(n))return this.valueHandler(e,i);r=e.isReference?this.referenceHandler(e).handleNode(t):this.handler(n).handleNode(t);var o=r.element;return void 0!==o&&(e.isMany?i.get(e.name).push(o):i.set(e.name,o),e.isReference?(x(o,{element:i}),this.context.addReference(o)):o.$parent=i),r},d.prototype=Object.create(h.prototype),d.prototype.createElement=function(t){var e=t.name,n=t.prefix,i=t.ns[n],r=t.attributes;return this.model.createAny(e,i,r)},d.prototype.handleChild=function(t){var e,n=new d(this.model,"Element",this.context).handleNode(t),i=this.element,r=n.element;return void 0!==r&&(e=i.$children=i.$children||[],e.push(r),r.$parent=i),n},d.prototype.handleText=function(t){this.body=this.body||""+t},d.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)},m.prototype.fromXML=function(t,e,n){function i(){var t,e,n=h.elementsById,i=h.references;for(t=0;e=i[t];t++){var r=e.element,o=n[e.id],a=r.$descriptor.propertiesByName[e.property];if(o||h.addWarning({message:"unresolved reference <"+e.id+">",element:e.element,property:e.property,value:e.id}),a.isMany){var s=r.get(a.name),c=s.indexOf(e);o?s[c]=o:s.splice(c,1)}else r.set(a.name,o)}}function r(t){d.pop().handleEnd()}function s(t){var e=d.peek();o(t,p);try{d.push(e.handleNode(t))}catch(n){var i=this.line,r=this.column,a="unparsable content <"+t.name+"> detected\n line: "+i+"\n column: "+r+"\n nested error: "+n.message;if(!l)throw console.error("could not parse document"),console.error(n),new Error(a);h.addWarning({message:a,error:n}),console.warn("could not parse node"),console.warn(n),d.push(new c)}}function u(t){d.peek().handleText(t)}var p=this.model,l=this.lax,h=new a({parseRoot:e}),f=new E(!0,{xmlns:!0,trim:!0}),d=new w;e.context=h,d.push(e),f.onopentag=s,f.oncdata=f.ontext=u,f.onclosetag=r,f.onend=i,b(function(){var i;try{f.write(t).close()}catch(r){i=r}n(i,i?void 0:e.element,h)})},m.prototype.handler=function(t){return new f(this.model,t)},e.exports=m,e.exports.ElementHandler=f},{203:203,204:204,208:208,215:215,325:325,52:52,55:55,56:56,57:57,62:62,65:65}],54:[function(t,e,n){"use strict";function i(t){return b(t)?t:(t.prefix?t.prefix+":":"")+t.localName}function r(t,e){return e.isGeneric?e.name:E({localName:A(e.ns.localName,e.$pkg)},t)}function o(t,e){return E({localName:e.ns.localName},t)}function a(t){var e=t.$descriptor;return w(e.properties,function(e){var n=e.name;if(!t.hasOwnProperty(n))return!1;var i=t[n];return i===e["default"]?!1:e.isMany?i.length:!0})}function s(t){return t=b(t)?t:""+t,t.replace(M,function(t){return"&#"+P[t]+";"})}function c(t){return w(t,function(t){return t.isAttr})}function u(t){return w(t,function(t){return!t.isAttr})}function p(t,e){this.ns=e}function l(){}function h(t){this.ns=t}function f(t,e){this.body=[],this.attrs=[],this.parent=t,this.ns=e}function d(t,e){f.call(this,t,e)}function m(){this.value="",this.write=function(t){this.value+=t}}function y(t,e){var n=[""];this.append=function(e){return t.write(e),this},this.appendNewLine=function(){return e&&t.write("\n"),this},this.appendIndent=function(){return e&&t.write(n.join(" ")),this},this.indent=function(){return n.push(""),this},this.unindent=function(){return n.pop(),this}}function v(t){function e(e,n){var i=n||new m,r=new y(i,t.format);return t.preamble&&r.append(C),(new f).build(e).serializeTo(r),n?void 0:i.value}return t=E({format:!1,preamble:!0},t||{}),{toXML:e}}var g=t(207),x=t(204),b=t(322),w=t(202),E=t(325),_=t(65),S=t(62).parseName,T=t(52),A=T.nameToAlias,C='<?xml version="1.0" encoding="UTF-8"?>\n',M=/(<|>|'|"|&|\n\r|\n)/g,R=T.DEFAULT_NS_MAP,N=T.XSI_TYPE,P={"\n":"10","\n\r":"10",'"':"34","'":"39","<":"60",">":"62","&":"38"};p.prototype.build=function(t){return this.element=t,this},p.prototype.serializeTo=function(t){t.appendIndent().append("<"+i(this.ns)+">"+this.element.id+"</"+i(this.ns)+">").appendNewLine()},l.prototype.serializeValue=l.prototype.serializeTo=function(t){var e=this.escape;e&&t.append("<![CDATA["),t.append(this.value),e&&t.append("]]>")},l.prototype.build=function(t,e){return this.value=e,"String"===t.type&&M.test(e)&&(this.escape=!0),this},h.prototype=new l,h.prototype.serializeTo=function(t){t.appendIndent().append("<"+i(this.ns)+">"),this.serializeValue(t),t.append("</"+i(this.ns)+">").appendNewLine()},f.prototype.build=function(t){this.element=t;var e=this.parseNsAttributes(t);if(this.ns||(this.ns=this.nsTagName(t.$descriptor)),t.$descriptor.isGeneric)this.parseGeneric(t);else{var n=a(t);this.parseAttributes(c(n)),this.parseContainments(u(n)),this.parseGenericAttributes(t,e)}return this},f.prototype.nsTagName=function(t){var e=this.logNamespaceUsed(t.ns);return r(e,t)},f.prototype.nsPropertyTagName=function(t){var e=this.logNamespaceUsed(t.ns);return o(e,t)},f.prototype.isLocalNs=function(t){return t.uri===this.ns.uri},f.prototype.nsAttributeName=function(t){var e;b(t)?e=S(t):t.ns&&(e=t.ns);var n=this.logNamespaceUsed(e);return this.isLocalNs(n)?{localName:e.localName}:E({localName:e.localName},n)},f.prototype.parseGeneric=function(t){var e=this,n=this.body,i=this.attrs;x(t,function(t,r){"$body"===r?n.push((new l).build({type:"String"},t)):"$children"===r?x(t,function(t){n.push(new f(e).build(t))}):0!==r.indexOf("$")&&i.push({name:r,value:s(t)})})},f.prototype.parseNsAttributes=function(t){var e=this,n=t.$attrs,i=[];return x(n,function(t,n){var r=S(n);"xmlns"===r.prefix?e.logNamespace({prefix:r.localName,uri:t}):r.prefix||"xmlns"!==r.localName?i.push({name:n,value:t}):e.logNamespace({uri:t})}),i},f.prototype.parseGenericAttributes=function(t,e){var n=this;x(e,function(e){if(e.name!==N)try{n.addAttribute(n.nsAttributeName(e.name),e.value)}catch(i){console.warn("[writer] missing namespace information for ",e.name,"=",e.value,"on",t,i)}})},f.prototype.parseContainments=function(t){var e=this,n=this.body,i=this.element;x(t,function(t){var r=i.get(t.name),o=t.isReference,a=t.isMany,s=e.nsPropertyTagName(t);if(a||(r=[r]),t.isBody)n.push((new l).build(t,r[0]));else if(_.isSimple(t.type))x(r,function(e){n.push(new h(s).build(t,e))});else if(o)x(r,function(t){n.push(new p(e,s).build(t))});else{var c=t.serialize===N;x(r,function(t){var i;i=c?new d(e,s):new f(e),n.push(i.build(t))})}})},f.prototype.getNamespaces=function(){return this.parent?this.namespaces=this.parent.getNamespaces():this.namespaces||(this.namespaces={prefixMap:{},uriMap:{},used:{}}),this.namespaces},f.prototype.logNamespace=function(t){var e=this.getNamespaces(),n=e.uriMap[t.uri];return n||(e.uriMap[t.uri]=t),e.prefixMap[t.prefix]=t.uri,t},f.prototype.logNamespaceUsed=function(t){var e=this.element,n=e.$model,i=this.getNamespaces(),r=t.prefix,o=t.uri||R[r]||i.prefixMap[r]||(n?(n.getPackage(r)||{}).uri:null);if(!o)throw new Error("no namespace uri given for prefix <"+t.prefix+">");return t=i.uriMap[o],t||(t=this.logNamespace({prefix:r,uri:o})),i.used[t.uri]||(i.used[t.uri]=t),t},f.prototype.parseAttributes=function(t){var e=this,n=this.element;x(t,function(t){e.logNamespaceUsed(t.ns);var i=n.get(t.name);t.isReference&&(i=i.id),e.addAttribute(e.nsAttributeName(t),i)})},f.prototype.addAttribute=function(t,e){var n=this.attrs;b(e)&&(e=s(e)),
+n.push({name:t,value:e})},f.prototype.serializeAttributes=function(t){function e(){return g(o.used,function(t){var e="xmlns"+(t.prefix?":"+t.prefix:"");return{name:e,value:t.uri}})}var n=this.attrs,r=!this.parent,o=this.namespaces;r&&(n=e().concat(n)),x(n,function(e){t.append(" ").append(i(e.name)).append('="').append(e.value).append('"')})},f.prototype.serializeTo=function(t){var e=this.body.length,n=!(1===this.body.length&&this.body[0]instanceof l);t.appendIndent().append("<"+i(this.ns)),this.serializeAttributes(t),t.append(e?">":" />"),e&&(n&&t.appendNewLine().indent(),x(this.body,function(e){e.serializeTo(t)}),n&&t.unindent().appendIndent(),t.append("</"+i(this.ns)+">")),t.appendNewLine()},d.prototype=new f,d.prototype.build=function(t){var e=t.$descriptor;this.element=t,this.typeNs=this.nsTagName(e);var n=this.typeNs,i=t.$model.getPackage(n.uri),r=i.xml&&i.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(N),(n.prefix?n.prefix+":":"")+r+e.ns.localName),f.prototype.build.call(this,t)},d.prototype.isLocalNs=function(t){return t.uri===this.typeNs.uri},e.exports=v},{202:202,204:204,207:207,322:322,325:325,52:52,62:62,65:65}],55:[function(t,e,n){(function(e){!function(n){function i(t,e){if(!(this instanceof i))return new i(t,e);var r=this;o(r),r.q=r.c="",r.bufferCheckPosition=n.MAX_BUFFER_LENGTH,r.opt=e||{},r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags,r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase",r.tags=[],r.closed=r.closedRoot=r.sawRoot=!1,r.tag=r.error=null,r.strict=!!t,r.noscript=!(!t&&!r.opt.noscript),r.state=W.BEGIN,r.ENTITIES=Object.create(n.ENTITIES),r.attribList=[],r.opt.xmlns&&(r.ns=Object.create(V)),r.trackPosition=r.opt.position!==!1,r.trackPosition&&(r.position=r.line=r.column=0),f(r,"onready")}function r(t){for(var e=Math.max(n.MAX_BUFFER_LENGTH,10),i=0,r=0,o=C.length;o>r;r++){var a=t[C[r]].length;if(a>e)switch(C[r]){case"textNode":m(t);break;case"cdata":d(t,"oncdata",t.cdata),t.cdata="";break;case"script":d(t,"onscript",t.script),t.script="";break;default:v(t,"Max buffer length exceeded: "+C[r])}i=Math.max(i,a)}t.bufferCheckPosition=n.MAX_BUFFER_LENGTH-i+t.position}function o(t){for(var e=0,n=C.length;n>e;e++)t[C[e]]=""}function a(t){m(t),""!==t.cdata&&(d(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(d(t,"onscript",t.script),t.script="")}function s(t,e){return new c(t,e)}function c(t,e){if(!(this instanceof c))return new c(t,e);M.apply(this),this._parser=new i(t,e),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(t){n.emit("error",t),n._parser.error=null},this._decoder=null,N.forEach(function(t){Object.defineProperty(n,"on"+t,{get:function(){return n._parser["on"+t]},set:function(e){return e?void n.on(t,e):(n.removeAllListeners(t),n._parser["on"+t]=e)},enumerable:!0,configurable:!1})})}function u(t){return t.split("").reduce(function(t,e){return t[e]=!0,t},{})}function p(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function l(t,e){return p(t)?!!e.match(t):t[e]}function h(t,e){return!l(t,e)}function f(t,e,n){t[e]&&t[e](n)}function d(t,e,n){t.textNode&&m(t),f(t,e,n)}function m(t){t.textNode=y(t.opt,t.textNode),t.textNode&&f(t,"ontext",t.textNode),t.textNode=""}function y(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function v(t,e){return m(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,f(t,"onerror",e),t}function g(t){return t.closedRoot||x(t,"Unclosed root tag"),t.state!==W.BEGIN&&t.state!==W.TEXT&&v(t,"Unexpected end"),m(t),t.c="",t.closed=!0,f(t,"onend"),i.call(t,t.strict,t.opt),t}function x(t,e){if("object"!=typeof t||!(t instanceof i))throw new Error("bad call to strictFail");t.strict&&v(t,e)}function b(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,n=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(n.ns=e.ns),t.attribList.length=0}function w(t,e){var n=t.indexOf(":"),i=0>n?["",t]:t.split(":"),r=i[0],o=i[1];return e&&"xmlns"===t&&(r="xmlns",o=""),{prefix:r,local:o}}function E(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))return t.attribName=t.attribValue="";if(t.opt.xmlns){var e=w(t.attribName,!0),n=e.prefix,i=e.local;if("xmlns"===n)if("xml"===i&&t.attribValue!==F)x(t,"xml: prefix must be bound to "+F+"\nActual: "+t.attribValue);else if("xmlns"===i&&t.attribValue!==$)x(t,"xmlns: prefix must be bound to "+$+"\nActual: "+t.attribValue);else{var r=t.tag,o=t.tags[t.tags.length-1]||t;r.ns===o.ns&&(r.ns=Object.create(o.ns)),r.ns[i]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,d(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}function _(t,e){if(t.opt.xmlns){var n=t.tag,i=w(t.tagName);n.prefix=i.prefix,n.local=i.local,n.uri=n.ns[i.prefix]||"",n.prefix&&!n.uri&&(x(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),n.uri=i.prefix);var r=t.tags[t.tags.length-1]||t;n.ns&&r.ns!==n.ns&&Object.keys(n.ns).forEach(function(e){d(t,"onopennamespace",{prefix:e,uri:n.ns[e]})});for(var o=0,a=t.attribList.length;a>o;o++){var s=t.attribList[o],c=s[0],u=s[1],p=w(c,!0),l=p.prefix,h=p.local,f=""==l?"":n.ns[l]||"",m={name:c,value:u,prefix:l,local:h,uri:f};l&&"xmlns"!=l&&!f&&(x(t,"Unbound namespace prefix: "+JSON.stringify(l)),m.uri=l),t.tag.attributes[c]=m,d(t,"onattribute",m)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.tags.push(t.tag),d(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=W.TEXT:t.state=W.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function S(t){if(!t.tagName)return x(t,"Weird empty close tag."),t.textNode+="</>",void(t.state=W.TEXT);if(t.script){if("script"!==t.tagName)return t.script+="</"+t.tagName+">",t.tagName="",void(t.state=W.SCRIPT);d(t,"onscript",t.script),t.script=""}var e=t.tags.length,n=t.tagName;t.strict||(n=n[t.looseCase]());for(var i=n;e--;){var r=t.tags[e];if(r.name===i)break;x(t,"Unexpected close tag")}if(0>e)return x(t,"Unmatched closing tag: "+t.tagName),t.textNode+="</"+t.tagName+">",void(t.state=W.TEXT);t.tagName=n;for(var o=t.tags.length;o-->e;){var a=t.tag=t.tags.pop();t.tagName=t.tag.name,d(t,"onclosetag",t.tagName);var s={};for(var c in a.ns)s[c]=a.ns[c];var u=t.tags[t.tags.length-1]||t;t.opt.xmlns&&a.ns!==u.ns&&Object.keys(a.ns).forEach(function(e){var n=a.ns[e];d(t,"onclosenamespace",{prefix:e,uri:n})})}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=W.TEXT}function T(t){var e,n=t.entity,i=n.toLowerCase(),r="";return t.ENTITIES[n]?t.ENTITIES[n]:t.ENTITIES[i]?t.ENTITIES[i]:(n=i,"#"===n.charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),e=parseInt(n,16),r=e.toString(16)):(n=n.slice(1),e=parseInt(n,10),r=e.toString(10))),n=n.replace(/^0+/,""),r.toLowerCase()!==n?(x(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function A(t){var e=this;if(this.error)throw this.error;if(e.closed)return v(e,"Cannot write after close. Assign an onready handler.");if(null===t)return g(e);for(var n=0,i="";e.c=i=t.charAt(n++);)switch(e.trackPosition&&(e.position++,"\n"===i?(e.line++,e.column=0):e.column++),e.state){case W.BEGIN:"<"===i?(e.state=W.OPEN_WAKA,e.startTagPosition=e.position):h(P,i)&&(x(e,"Non-whitespace before first tag."),e.textNode=i,e.state=W.TEXT);continue;case W.TEXT:if(e.sawRoot&&!e.closedRoot){for(var o=n-1;i&&"<"!==i&&"&"!==i;)i=t.charAt(n++),i&&e.trackPosition&&(e.position++,"\n"===i?(e.line++,e.column=0):e.column++);e.textNode+=t.substring(o,n-1)}"<"===i?(e.state=W.OPEN_WAKA,e.startTagPosition=e.position):(!h(P,i)||e.sawRoot&&!e.closedRoot||x(e,"Text data outside of root node."),"&"===i?e.state=W.TEXT_ENTITY:e.textNode+=i);continue;case W.SCRIPT:"<"===i?e.state=W.SCRIPT_ENDING:e.script+=i;continue;case W.SCRIPT_ENDING:"/"===i?e.state=W.CLOSE_TAG:(e.script+="<"+i,e.state=W.SCRIPT);continue;case W.OPEN_WAKA:if("!"===i)e.state=W.SGML_DECL,e.sgmlDecl="";else if(l(P,i));else if(l(G,i))e.state=W.OPEN_TAG,e.tagName=i;else if("/"===i)e.state=W.CLOSE_TAG,e.tagName="";else if("?"===i)e.state=W.PROC_INST,e.procInstName=e.procInstBody="";else{if(x(e,"Unencoded <"),e.startTagPosition+1<e.position){var a=e.position-e.startTagPosition;i=new Array(a).join(" ")+i}e.textNode+="<"+i,e.state=W.TEXT}continue;case W.SGML_DECL:(e.sgmlDecl+i).toUpperCase()===L?(d(e,"onopencdata"),e.state=W.CDATA,e.sgmlDecl="",e.cdata=""):e.sgmlDecl+i==="--"?(e.state=W.COMMENT,e.comment="",e.sgmlDecl=""):(e.sgmlDecl+i).toUpperCase()===j?(e.state=W.DOCTYPE,(e.doctype||e.sawRoot)&&x(e,"Inappropriately located doctype declaration"),e.doctype="",e.sgmlDecl=""):">"===i?(d(e,"onsgmldeclaration",e.sgmlDecl),e.sgmlDecl="",e.state=W.TEXT):l(O,i)?(e.state=W.SGML_DECL_QUOTED,e.sgmlDecl+=i):e.sgmlDecl+=i;continue;case W.SGML_DECL_QUOTED:i===e.q&&(e.state=W.SGML_DECL,e.q=""),e.sgmlDecl+=i;continue;case W.DOCTYPE:">"===i?(e.state=W.TEXT,d(e,"ondoctype",e.doctype),e.doctype=!0):(e.doctype+=i,"["===i?e.state=W.DOCTYPE_DTD:l(O,i)&&(e.state=W.DOCTYPE_QUOTED,e.q=i));continue;case W.DOCTYPE_QUOTED:e.doctype+=i,i===e.q&&(e.q="",e.state=W.DOCTYPE);continue;case W.DOCTYPE_DTD:e.doctype+=i,"]"===i?e.state=W.DOCTYPE:l(O,i)&&(e.state=W.DOCTYPE_DTD_QUOTED,e.q=i);continue;case W.DOCTYPE_DTD_QUOTED:e.doctype+=i,i===e.q&&(e.state=W.DOCTYPE_DTD,e.q="");continue;case W.COMMENT:"-"===i?e.state=W.COMMENT_ENDING:e.comment+=i;continue;case W.COMMENT_ENDING:"-"===i?(e.state=W.COMMENT_ENDED,e.comment=y(e.opt,e.comment),e.comment&&d(e,"oncomment",e.comment),e.comment=""):(e.comment+="-"+i,e.state=W.COMMENT);continue;case W.COMMENT_ENDED:">"!==i?(x(e,"Malformed comment"),e.comment+="--"+i,e.state=W.COMMENT):e.state=W.TEXT;continue;case W.CDATA:"]"===i?e.state=W.CDATA_ENDING:e.cdata+=i;continue;case W.CDATA_ENDING:"]"===i?e.state=W.CDATA_ENDING_2:(e.cdata+="]"+i,e.state=W.CDATA);continue;case W.CDATA_ENDING_2:">"===i?(e.cdata&&d(e,"oncdata",e.cdata),d(e,"onclosecdata"),e.cdata="",e.state=W.TEXT):"]"===i?e.cdata+="]":(e.cdata+="]]"+i,e.state=W.CDATA);continue;case W.PROC_INST:"?"===i?e.state=W.PROC_INST_ENDING:l(P,i)?e.state=W.PROC_INST_BODY:e.procInstName+=i;continue;case W.PROC_INST_BODY:if(!e.procInstBody&&l(P,i))continue;"?"===i?e.state=W.PROC_INST_ENDING:e.procInstBody+=i;continue;case W.PROC_INST_ENDING:">"===i?(d(e,"onprocessinginstruction",{name:e.procInstName,body:e.procInstBody}),e.procInstName=e.procInstBody="",e.state=W.TEXT):(e.procInstBody+="?"+i,e.state=W.PROC_INST_BODY);continue;case W.OPEN_TAG:l(z,i)?e.tagName+=i:(b(e),">"===i?_(e):"/"===i?e.state=W.OPEN_TAG_SLASH:(h(P,i)&&x(e,"Invalid character in tag name"),e.state=W.ATTRIB));continue;case W.OPEN_TAG_SLASH:">"===i?(_(e,!0),S(e)):(x(e,"Forward-slash in opening tag not followed by >"),e.state=W.ATTRIB);continue;case W.ATTRIB:if(l(P,i))continue;">"===i?_(e):"/"===i?e.state=W.OPEN_TAG_SLASH:l(G,i)?(e.attribName=i,e.attribValue="",e.state=W.ATTRIB_NAME):x(e,"Invalid attribute name");continue;case W.ATTRIB_NAME:"="===i?e.state=W.ATTRIB_VALUE:">"===i?(x(e,"Attribute without value"),e.attribValue=e.attribName,E(e),_(e)):l(P,i)?e.state=W.ATTRIB_NAME_SAW_WHITE:l(z,i)?e.attribName+=i:x(e,"Invalid attribute name");continue;case W.ATTRIB_NAME_SAW_WHITE:if("="===i)e.state=W.ATTRIB_VALUE;else{if(l(P,i))continue;x(e,"Attribute without value"),e.tag.attributes[e.attribName]="",e.attribValue="",d(e,"onattribute",{name:e.attribName,value:""}),e.attribName="",">"===i?_(e):l(G,i)?(e.attribName=i,e.state=W.ATTRIB_NAME):(x(e,"Invalid attribute name"),e.state=W.ATTRIB)}continue;case W.ATTRIB_VALUE:if(l(P,i))continue;l(O,i)?(e.q=i,e.state=W.ATTRIB_VALUE_QUOTED):(x(e,"Unquoted attribute value"),e.state=W.ATTRIB_VALUE_UNQUOTED,e.attribValue=i);continue;case W.ATTRIB_VALUE_QUOTED:if(i!==e.q){"&"===i?e.state=W.ATTRIB_VALUE_ENTITY_Q:e.attribValue+=i;continue}E(e),e.q="",e.state=W.ATTRIB_VALUE_CLOSED;continue;case W.ATTRIB_VALUE_CLOSED:l(P,i)?e.state=W.ATTRIB:">"===i?_(e):"/"===i?e.state=W.OPEN_TAG_SLASH:l(G,i)?(x(e,"No whitespace between attributes"),e.attribName=i,e.attribValue="",e.state=W.ATTRIB_NAME):x(e,"Invalid attribute name");continue;case W.ATTRIB_VALUE_UNQUOTED:if(h(I,i)){"&"===i?e.state=W.ATTRIB_VALUE_ENTITY_U:e.attribValue+=i;continue}E(e),">"===i?_(e):e.state=W.ATTRIB;continue;case W.CLOSE_TAG:if(e.tagName)">"===i?S(e):l(z,i)?e.tagName+=i:e.script?(e.script+="</"+e.tagName,e.tagName="",e.state=W.SCRIPT):(h(P,i)&&x(e,"Invalid tagname in closing tag"),e.state=W.CLOSE_TAG_SAW_WHITE);else{if(l(P,i))continue;h(G,i)?e.script?(e.script+="</"+i,e.state=W.SCRIPT):x(e,"Invalid tagname in closing tag."):e.tagName=i}continue;case W.CLOSE_TAG_SAW_WHITE:if(l(P,i))continue;">"===i?S(e):x(e,"Invalid characters in closing tag");continue;case W.TEXT_ENTITY:case W.ATTRIB_VALUE_ENTITY_Q:case W.ATTRIB_VALUE_ENTITY_U:switch(e.state){case W.TEXT_ENTITY:var s=W.TEXT,c="textNode";break;case W.ATTRIB_VALUE_ENTITY_Q:var s=W.ATTRIB_VALUE_QUOTED,c="attribValue";break;case W.ATTRIB_VALUE_ENTITY_U:var s=W.ATTRIB_VALUE_UNQUOTED,c="attribValue"}";"===i?(e[c]+=T(e),e.entity="",e.state=s):l(B,i)?e.entity+=i:(x(e,"Invalid character entity"),e[c]+="&"+e.entity+i,e.entity="",e.state=s);continue;default:throw new Error(e,"Unknown state: "+e.state)}return e.position>=e.bufferCheckPosition&&r(e),e}n.parser=function(t,e){return new i(t,e)},n.SAXParser=i,n.SAXStream=c,n.createStream=s,n.MAX_BUFFER_LENGTH=65536;var C=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];n.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(t){function e(){this.__proto__=t}return e.prototype=t,new e}),Object.getPrototypeOf||(Object.getPrototypeOf=function(t){return t.__proto__}),Object.keys||(Object.keys=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}),i.prototype={end:function(){g(this)},write:A,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};try{var M=t("stream").Stream}catch(R){var M=function(){}}var N=n.EVENTS.filter(function(t){return"error"!==t&&"end"!==t});c.prototype=Object.create(M.prototype,{constructor:{value:c}}),c.prototype.write=function(n){if("function"==typeof e&&"function"==typeof e.isBuffer&&e.isBuffer(n)){if(!this._decoder){var i=t("string_decoder").StringDecoder;this._decoder=new i("utf8")}n=this._decoder.write(n)}return this._parser.write(n.toString()),this.emit("data",n),!0},c.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},c.prototype.on=function(t,e){var n=this;return n._parser["on"+t]||-1===N.indexOf(t)||(n._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),n.emit.apply(n,e)}),M.prototype.on.call(n,t,e)};var P="\r\n ",k="0124356789",D="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",O="'\"",B=k+D+"#",I=P+">",L="[CDATA[",j="DOCTYPE",F="http://www.w3.org/XML/1998/namespace",$="http://www.w3.org/2000/xmlns/",V={xml:F,xmlns:$};P=u(P),k=u(k),D=u(D);var G=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,z=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;O=u(O),B=u(B),I=u(I);var W=0;n.STATE={BEGIN:W++,TEXT:W++,TEXT_ENTITY:W++,OPEN_WAKA:W++,SGML_DECL:W++,SGML_DECL_QUOTED:W++,DOCTYPE:W++,DOCTYPE_QUOTED:W++,DOCTYPE_DTD:W++,DOCTYPE_DTD_QUOTED:W++,COMMENT_STARTING:W++,COMMENT:W++,COMMENT_ENDING:W++,COMMENT_ENDED:W++,CDATA:W++,CDATA_ENDING:W++,CDATA_ENDING_2:W++,PROC_INST:W++,PROC_INST_BODY:W++,PROC_INST_ENDING:W++,OPEN_TAG:W++,OPEN_TAG_SLASH:W++,ATTRIB:W++,ATTRIB_NAME:W++,ATTRIB_NAME_SAW_WHITE:W++,ATTRIB_VALUE:W++,ATTRIB_VALUE_QUOTED:W++,ATTRIB_VALUE_CLOSED:W++,ATTRIB_VALUE_UNQUOTED:W++,ATTRIB_VALUE_ENTITY_Q:W++,ATTRIB_VALUE_ENTITY_U:W++,CLOSE_TAG:W++,CLOSE_TAG_SAW_WHITE:W++,SCRIPT:W++,SCRIPT_ENDING:W++},n.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,"int":8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(n.ENTITIES).forEach(function(t){var e=n.ENTITIES[t],i="number"==typeof e?String.fromCharCode(e):e;n.ENTITIES[t]=i});for(var W in n.STATE)n.STATE[n.STATE[W]]=W;W=n.STATE,String.fromCodePoint||!function(){var t=String.fromCharCode,e=Math.floor,n=function(){var n,i,r=16384,o=[],a=-1,s=arguments.length;if(!s)return"";for(var c="";++a<s;){var u=Number(arguments[a]);if(!isFinite(u)||0>u||u>1114111||e(u)!=u)throw RangeError("Invalid code point: "+u);65535>=u?o.push(u):(u-=65536,n=(u>>10)+55296,i=u%1024+56320,o.push(n,i)),(a+1==s||o.length>r)&&(c+=t.apply(null,o),o.length=0)}return c};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()}("undefined"==typeof n?sax={}:n)}).call(this,void 0)},{undefined:void 0}],56:[function(e,n,i){!function(e){"use strict";function r(){this.data=[null],this.top=0}function o(){return new r}r.prototype.clear=function(){return this.data=[null],this.top=0,this},r.prototype.length=function(){return this.top},r.prototype.peek=function(){return this.data[this.top]},r.prototype.pop=function(){return this.top>0?(this.top--,this.data.pop()):void 0},r.prototype.push=function(t){return this.data[++this.top]=t,this},"undefined"!=typeof i?n.exports=o:"function"==typeof t?t(function(){return o}):e.stack=o}(this)},{}],57:[function(t,e,n){e.exports=t(61)},{61:61}],58:[function(t,e,n){"use strict";function i(){}i.prototype.get=function(t){return this.$model.properties.get(this,t)},i.prototype.set=function(t,e){this.$model.properties.set(this,t,e)},e.exports=i},{}],59:[function(t,e,n){"use strict";function i(t){this.ns=t,this.name=t.name,this.allTypes=[],this.properties=[],this.propertiesByName={}}var r=t(330),o=t(325),a=t(204),s=t(62).parseName;e.exports=i,i.prototype.build=function(){return r(this,["ns","name","allTypes","properties","propertiesByName","bodyProperty"])},i.prototype.addProperty=function(t,e){this.addNamedProperty(t,!0);var n=this.properties;void 0!==e?n.splice(e,0,t):n.push(t)},i.prototype.replaceProperty=function(t,e){var n=t.ns,i=this.properties,r=this.propertiesByName,o=t.name!==e.name;if(t.isBody){if(!e.isBody)throw new Error("property <"+e.ns.name+"> must be body property to refine <"+t.ns.name+">");this.setBodyProperty(e,!1)}this.addNamedProperty(e,o);var a=i.indexOf(t);if(-1===a)throw new Error("property <"+n.name+"> not found in property list");i[a]=e,r[n.name]=r[n.localName]=e},i.prototype.redefineProperty=function(t){var e=t.ns.prefix,n=t.redefines.split("#"),i=s(n[0],e),r=s(n[1],i.prefix).name,o=this.propertiesByName[r];if(!o)throw new Error("refined property <"+r+"> not found");this.replaceProperty(o,t),delete t.redefines},i.prototype.addNamedProperty=function(t,e){var n=t.ns,i=this.propertiesByName;e&&(this.assertNotDefined(t,n.name),this.assertNotDefined(t,n.localName)),i[n.name]=i[n.localName]=t},i.prototype.removeNamedProperty=function(t){var e=t.ns,n=this.propertiesByName;delete n[e.name],delete n[e.localName]},i.prototype.setBodyProperty=function(t,e){if(e&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+t.ns.name+">)");this.bodyProperty=t},i.prototype.addIdProperty=function(t){var e=s(t,this.ns.prefix),n={name:e.localName,type:"String",isAttr:!0,ns:e};this.addProperty(n,0)},i.prototype.assertNotDefined=function(t,e){var n=t.name,i=this.propertiesByName[n];if(i)throw new Error("property <"+n+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+t.definedBy.ns.name+"#"+t.ns.name+"> not allowed without redefines")},i.prototype.hasProperty=function(t){return this.propertiesByName[t]},i.prototype.addTrait=function(t){var e=this.allTypes;-1===e.indexOf(t)&&(a(t.properties,function(e){e=o({},e,{name:e.ns.localName}),Object.defineProperty(e,"definedBy",{value:t}),e.redefines?this.redefineProperty(e):(e.isBody&&this.setBodyProperty(e),this.addProperty(e))},this),e.push(t))}},{204:204,325:325,330:330,62:62}],60:[function(t,e,n){"use strict";function i(t,e){this.model=t,this.properties=e}var r=t(204),o=t(58);e.exports=i,i.prototype.createType=function(t){function e(t){i.define(this,"$type",{value:s,enumerable:!0}),i.define(this,"$attrs",{value:{}}),i.define(this,"$parent",{writable:!0}),r(t,function(t,e){this.set(e,t)},this)}var n=this.model,i=this.properties,a=Object.create(o.prototype);r(t.properties,function(t){t.isMany||void 0===t["default"]||(a[t.name]=t["default"])}),i.defineModel(a,n),i.defineDescriptor(a,t);var s=t.ns.name;return e.prototype=a,e.hasType=a.$instanceOf=this.model.hasType,i.defineModel(e,n),i.defineDescriptor(e,t),e}},{204:204,58:58}],61:[function(t,e,n){"use strict";function i(t,e){e=e||{},this.properties=new p(this),this.factory=new c(this,this.properties),this.registry=new u(t,this.properties,e),this.typeCache={}}var r=t(322),o=t(320),a=t(204),s=t(203),c=t(60),u=t(64),p=t(63),l=t(62).parseName;e.exports=i,i.prototype.create=function(t,e){var n=this.getType(t);if(!n)throw new Error("unknown type <"+t+">");return new n(e)},i.prototype.getType=function(t){var e=this.typeCache,n=r(t)?t:t.ns.name,i=e[n];return i||(t=this.registry.getEffectiveDescriptor(n),i=e[n]=this.factory.createType(t)),i},i.prototype.createAny=function(t,e,n){var i=l(t),r={$type:t},s={name:t,isGeneric:!0,ns:{prefix:i.prefix,localName:i.localName,uri:e}};return this.properties.defineDescriptor(r,s),this.properties.defineModel(r,this),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),a(n,function(t,e){o(t)&&void 0!==t.value?r[t.name]=t.value:r[e]=t}),r},i.prototype.getPackage=function(t){return this.registry.getPackage(t)},i.prototype.getPackages=function(){return this.registry.getPackages()},i.prototype.getElementDescriptor=function(t){return t.$descriptor},i.prototype.hasType=function(t,e){void 0===e&&(e=t,t=this);var n=t.$model.getElementDescriptor(t);return!!s(n.allTypes,function(t){return t.name===e})},i.prototype.getPropertyDescriptor=function(t,e){return this.getElementDescriptor(t).propertiesByName[e]}},{203:203,204:204,320:320,322:322,60:60,62:62,63:63,64:64}],62:[function(t,e,n){"use strict";e.exports.parseName=function(t,e){var n,i,r=t.split(/:/);if(1===r.length)n=t,i=e;else{if(2!==r.length)throw new Error("expected <prefix:localName> or <localName>, got "+t);n=r[1],i=r[0]}return t=(i?i+":":"")+n,{name:t,prefix:i,localName:n}}},{}],63:[function(t,e,n){"use strict";function i(t){this.model=t}e.exports=i,i.prototype.set=function(t,e,n){var i=this.model.getPropertyDescriptor(t,e);i?Object.defineProperty(t,i.name,{enumerable:!i.isReference,writable:!0,value:n}):t.$attrs[e]=n},i.prototype.get=function(t,e){var n=this.model.getPropertyDescriptor(t,e);if(!n)return t.$attrs[e];var i=n.name;return!t[i]&&n.isMany&&Object.defineProperty(t,i,{enumerable:!n.isReference,writable:!0,value:[]}),t[i]},i.prototype.define=function(t,e,n){Object.defineProperty(t,e,n)},i.prototype.defineDescriptor=function(t,e){this.define(t,"$descriptor",{value:e})},i.prototype.defineModel=function(t,e){this.define(t,"$model",{value:e})}},{}],64:[function(t,e,n){"use strict";function i(t,e,n){this.options=r({generateId:"id"},n||{}),this.packageMap={},this.typeMap={},this.packages=[],this.properties=e,o(t,this.registerPackage,this)}var r=t(325),o=t(204),a=t(65),s=t(59),c=t(62).parseName,u=a.isBuiltIn;e.exports=i,i.prototype.getPackage=function(t){return this.packageMap[t]},i.prototype.getPackages=function(){return this.packages},i.prototype.registerPackage=function(t){t=r({},t),o(t.types,function(e){this.registerType(e,t)},this),this.packageMap[t.uri]=this.packageMap[t.prefix]=t,this.packages.push(t)},i.prototype.registerType=function(t,e){t=r({},t,{superClass:(t.superClass||[]).slice(),"extends":(t["extends"]||[]).slice(),properties:(t.properties||[]).slice()});var n=c(t.name,e.prefix),i=n.name,a={};o(t.properties,function(t){var e=c(t.name,n.prefix),i=e.name;u(t.type)||(t.type=c(t.type,e.prefix).name),r(t,{ns:e,name:i}),a[i]=t}),r(t,{ns:n,name:i,propertiesByName:a}),o(t["extends"],function(t){var e=this.typeMap[t];e.traits=e.traits||[],e.traits.push(i)},this),this.definePackage(t,e),this.typeMap[i]=t},i.prototype.mapTypes=function(t,e){function n(n){var i=c(n,u(n)?"":t.prefix);r.mapTypes(i,e)}var i=u(t.name)?{name:t.name}:this.typeMap[t.name],r=this;if(!i)throw new Error("unknown type <"+t.name+">");o(i.superClass,n),e(i),o(i.traits,n)},i.prototype.getEffectiveDescriptor=function(t){var e=c(t),n=new s(e);this.mapTypes(e,function(t){n.addTrait(t)});var i=this.options.generateId;i&&!n.hasProperty(i)&&n.addIdProperty(i);var r=n.build();return this.definePackage(r,r.allTypes[r.allTypes.length-1].$pkg),r},i.prototype.definePackage=function(t,e){this.properties.define(t,"$pkg",{value:e})}},{204:204,325:325,59:59,62:62,65:65}],65:[function(t,e,n){"use strict";var i={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},r={String:function(t){return t},Boolean:function(t){return"true"===t},Integer:function(t){return parseInt(t,10)},Real:function(t){return parseFloat(t,10)}};e.exports.coerceType=function(t,e){var n=r[t];return n?n(e):e},e.exports.isBuiltIn=function(t){return!!i[t]},e.exports.isSimple=function(t){return!!r[t]}},{}],66:[function(t,e,n){e.exports={name:"BPMN20",uri:"http://www.omg.org/spec/BPMN/20100524/MODEL",associations:[],types:[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",type:"String",isAttr:!0}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isAttr:!0,isReference:!0},{name:"outMessageRef",type:"Message",isAttr:!0,isReference:!0},{name:"errorRefs",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",type:"String",isAttr:!0}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"childLaneSet",type:"LaneSet",serialize:"xsi:type"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection","default":"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate","default":!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,"default":"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",serialize:"xsi:type"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String"},{name:"documentation",type:"Documentation",
+isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand","default":!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition"}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference","default":!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat","default":"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting","default":!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"inputSet",type:"InputSet"},{name:"eventDefinitionRefs",type:"EventDefinition",isMany:!0,isReference:!0},{name:"dataInputAssociation",type:"DataInputAssociation",isMany:!0},{name:"dataInputs",type:"DataInput",isMany:!0},{name:"eventDefinitions",type:"EventDefinition",isMany:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean","default":!1},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitionRefs",type:"EventDefinition",isMany:!0,isReference:!0},{name:"dataOutputAssociation",type:"DataOutputAssociation",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"eventDefinitions",type:"EventDefinition",isMany:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity","default":!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean"},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",serialize:"xsi:type"},{name:"timeCycle",type:"Expression",serialize:"xsi:type"},{name:"timeDuration",type:"Expression",serialize:"xsi:type"}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isAttr:!0,isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",serialize:"xsi:type"}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"transformation",type:"FormalExpression"},{name:"assignment",type:"Assignment",isMany:!0},{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection","default":!1,isAttr:!0,type:"Boolean"},{name:"inputSetRefs",type:"InputSet",isVirtual:!0,isMany:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isVirtual:!0,isMany:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isVirtual:!0,isMany:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection","default":!1,isAttr:!0,type:"Boolean"},{name:"outputSetRefs",type:"OutputSet",isVirtual:!0,isMany:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isVirtual:!0,isMany:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isVirtual:!0,isMany:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0},{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection","default":!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",serialize:"xsi:type"},{name:"to",type:"Expression",serialize:"xsi:type"}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited","default":!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRefs",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!0},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"body",type:"String",isBody:!0},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",type:"String",isAttr:!0},{name:"isCollection","default":!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",serialize:"xsi:type"},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification"},{name:"supportedInterfaceRefs",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isVirtual:!0,isMany:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isVirtual:!0,isMany:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isVirtual:!0,isMany:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRefs",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum","default":0,isAttr:!0,type:"Integer"},{name:"maximum","default":1,isAttr:!0,type:"Integer"}]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRefs",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType","default":"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["FlowElementsContainer","Collaboration"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat","default":"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isVirtual:!0,isMany:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation","default":!1,isAttr:!0,type:"Boolean"},{name:"loopCharacteristics",type:"LoopCharacteristics"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"ioSpecification",type:"InputOutputSpecification"},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity","default":1,isAttr:!0,type:"Integer"},{name:"completionQuantity","default":1,isAttr:!0,type:"Integer"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent","default":!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential","default":!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior","default":"All",isAttr:!0},{name:"loopCardinality",type:"Expression",serialize:"xsi:type"},{name:"loopDataInputRef",type:"ItemAwareElement",isAttr:!0,isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isAttr:!0,isReference:!0},{name:"inputDataItem",type:"DataInput"},{name:"outputDataItem",type:"DataOutput"},{name:"completionCondition",type:"Expression",serialize:"xsi:type"},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore","default":!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",serialize:"xsi:type"},{name:"loopMaximum",type:"Expression",serialize:"xsi:type"}]},{name:"CallActivity",superClass:["Activity"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate","default":!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",serialize:"xsi:type"},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances","default":!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",serialize:"xsi:type"},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",serialize:"xsi:type"}]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage","default":"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage","default":"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],emumerations:[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],prefix:"bpmn",xml:{tagAlias:"lowerCase",typePrefix:"t"}}},{}],67:[function(t,e,n){e.exports={name:"BPMNDI",uri:"http://www.omg.org/spec/BPMN/20100524/DI",types:[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,"default":"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],emumerations:[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],associations:[],prefix:"bpmndi"}},{}],68:[function(t,e,n){e.exports={name:"DC",uri:"http://www.omg.org/spec/DD/20100524/DC",types:[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real","default":"0",isAttr:!0},{name:"y",type:"Real","default":"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real","default":"0",isAttr:!0},{name:"y",type:"Real","default":"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],prefix:"dc",associations:[]}},{}],69:[function(t,e,n){e.exports={name:"DI",uri:"http://www.omg.org/spec/DD/20100524/DI",types:[{name:"DiagramElement",isAbstract:!0,properties:[{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isMany:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",serialize:"xsi:type"}]},{name:"Diagram",isAbstract:!0,properties:[{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isVirtual:!0,isMany:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isVirtual:!0,isMany:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isVirtual:!0,isMany:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0},{name:"Extension",properties:[{name:"values",type:"Element",isMany:!0}]}],associations:[],prefix:"di",xml:{tagAlias:"lowerCase"}}},{}],70:[function(t,e,n){e.exports={__depends__:[t(103)],__init__:["directEditing"],directEditing:["type",t(71)]}},{103:103,71:71}],71:[function(t,e,n){"use strict";function i(t,e){this._eventBus=t,this._providers=[],this._textbox=new a({container:e.getContainer(),keyHandler:r(this._handleKey,this)})}var r=t(213),o=t(203),a=t(72);i.$inject=["eventBus","canvas"],i.prototype.registerProvider=function(t){this._providers.push(t)},i.prototype.isActive=function(){return!!this._active},i.prototype.cancel=function(){this._active&&(this._fire("cancel"),this.close())},i.prototype._fire=function(t){this._eventBus.fire("directEditing."+t,{active:this._active})},i.prototype.close=function(){this._textbox.destroy(),this._fire("deactivate"),this._active=null},i.prototype.complete=function(){var t=this._active;if(t){var e=this.getValue();e!==t.context.text&&t.provider.update(t.element,e,t.context.text),this._fire("complete"),this.close()}},i.prototype.getValue=function(){return this._textbox.getValue()},i.prototype._handleKey=function(t){t.stopPropagation();var e=t.keyCode||t.charCode;return 27===e?(t.preventDefault(),this.cancel()):13!==e||t.shiftKey?void 0:(t.preventDefault(),this.complete())},i.prototype.activate=function(t){this.isActive()&&this.cancel();var e,n=o(this._providers,function(n){return(e=n.activate(t))?n:null});return e&&(this._textbox.create(e.bounds,e.style,e.text),this._active={element:t,context:e,provider:n},this._fire("activate")),!!e},e.exports=i},{203:203,213:213,72:72}],72:[function(t,e,n){"use strict";function i(t){t.stopPropagation()}function r(t){this.container=t.container,this.textarea=document.createElement("textarea"),this.keyHandler=t.keyHandler||function(){}}var o=t(325),a=t(344),s=t(347);e.exports=r,r.prototype.create=function(t,e,n){var r=this.textarea,s=this.container;o(r.style,{width:t.width+"px",height:t.height+"px",left:t.x+"px",top:t.y+"px",position:"absolute",textAlign:"center",boxSizing:"border-box"},e||{}),r.value=n,r.title="Press SHIFT+Enter for line feed",a.bind(r,"keydown",this.keyHandler),a.bind(r,"mousedown",i),s.appendChild(r),setTimeout(function(){r.select(),r.focus()},100)},r.prototype.destroy=function(){var t=this.textarea;t.value="",a.unbind(t,"keydown",this.keyHandler),a.unbind(t,"mousedown",i),s(t)},r.prototype.getValue=function(){return this.textarea.value}},{325:325,344:344,347:347}],73:[function(t,e,n){e.exports=t(74)},{74:74}],74:[function(t,e,n){"use strict";function i(t){function e(t){return r.indexOf(t)>=0}function n(t){r.push(t)}function i(t){e(t)||((t.__depends__||[]).forEach(i),e(t)||(n(t),(t.__init__||[]).forEach(function(t){o.push(t)})))}var r=[],o=[];t.forEach(i);var s=new a.Injector(r);return o.forEach(function(t){try{s["string"==typeof t?"get":"invoke"](t)}catch(e){throw console.error("Failed to instantiate component"),
+console.error(e.stack),e}}),s}function r(e){e=e||{};var n={config:["value",e]},r=t(83),o=[n,r].concat(e.modules||[]);return i(o)}function o(t,e){this.injector=e=e||r(t),this.get=e.get,this.invoke=e.invoke,this.get("eventBus").fire("diagram.init")}var a=t(190);e.exports=o,o.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")}},{190:190,83:83}],75:[function(t,e,n){"use strict";function i(t){this._eventBus=t}function r(t){return function(e){return t(e.context,e.command,e)}}var o=t(204),a=t(317),s=t(316);i.$inject=["eventBus"],e.exports=i,i.prototype.on=function(t,e,n,i){if(a(e)&&(i=n,n=e,e=null),!a(n))throw new Error("handlerFn must be a function");s(t)||(t=[t]);var c=this._eventBus;o(t,function(t){var o=["commandStack",t,e].filter(function(t){return t}).join(".");c.on(o,i?r(n):n)})};var c=["canExecute","preExecute","execute","executed","postExecute","revert","reverted"];o(c,function(t){i.prototype[t]=function(e,n,i){a(e)&&(i=n,n=e,e=null),this.on(e,t,n,i)}})},{204:204,316:316,317:317}],76:[function(t,e,n){"use strict";function i(t,e){this._handlerMap={},this._stack=[],this._stackIdx=-1,this._currentExecution={actions:[],dirty:[]},this._injector=e,this._eventBus=t,this._uid=1}var r=t(199),o=t(316),a=t(325),s=t(81).Event;i.$inject=["eventBus","injector"],e.exports=i,i.prototype.execute=function(t,e){if(!t)throw new Error("command required");var n={command:t,context:e};this._pushAction(n),this._internalExecute(n),this._popAction(n)},i.prototype.canExecute=function(t,e){var n={command:t,context:e},i=this._getHandler(t);if(!i)return!1;var r=this._fire(t,"canExecute",n);return void 0===r&&i.canExecute&&(r=i.canExecute(e)),r},i.prototype.clear=function(){this._stack.length=0,this._stackIdx=-1,this._fire("changed")},i.prototype.undo=function(){var t,e=this._getUndoAction();if(e){for(this._pushAction(e);e&&(this._internalUndo(e),t=this._getUndoAction(),t&&t.id===e.id);)e=t;this._popAction()}},i.prototype.redo=function(){var t,e=this._getRedoAction();if(e){for(this._pushAction(e);e&&(this._internalExecute(e,!0),t=this._getRedoAction(),t&&t.id===e.id);)e=t;this._popAction()}},i.prototype.register=function(t,e){this._setHandler(t,e)},i.prototype.registerHandler=function(t,e){if(!t||!e)throw new Error("command and handlerCls must be defined");var n=this._injector.instantiate(e);this.register(t,n)},i.prototype.canUndo=function(){return!!this._getUndoAction()},i.prototype.canRedo=function(){return!!this._getRedoAction()},i.prototype._getRedoAction=function(){return this._stack[this._stackIdx+1]},i.prototype._getUndoAction=function(){return this._stack[this._stackIdx]},i.prototype._internalUndo=function(t){var e=t.command,n=t.context,i=this._getHandler(e);this._fire(e,"revert",t),this._markDirty(i.revert(n)),this._revertedAction(t),this._fire(e,"reverted",t)},i.prototype._fire=function(t,e,n){arguments.length<3&&(n=e,e=null);var i,r,o,c=e?[t+"."+e,e]:[t];for(n=a(new s,n),i=0;(r=c[i])&&(o=this._eventBus.fire("commandStack."+r,n),!n.cancelBubble);i++);return o},i.prototype._createId=function(){return this._uid++},i.prototype._internalExecute=function(t,e){var n=t.command,i=t.context,r=this._getHandler(n);if(!r)throw new Error("no command handler registered for <"+n+">");this._pushAction(t),e||(this._fire(n,"preExecute",t),r.preExecute&&r.preExecute(i)),this._fire(n,"execute",t),this._markDirty(r.execute(i)),this._executedAction(t,e),this._fire(n,"executed",t),e||(r.postExecute&&r.postExecute(i),this._fire(n,"postExecute",t)),this._popAction(t)},i.prototype._pushAction=function(t){var e=this._currentExecution,n=e.actions,i=n[0];t.id||(t.id=i&&i.id||this._createId()),n.push(t)},i.prototype._popAction=function(){var t=this._currentExecution,e=t.actions,n=t.dirty;e.pop(),e.length||(this._eventBus.fire("elements.changed",{elements:r(n)}),n.length=0,this._fire("changed"))},i.prototype._markDirty=function(t){var e=this._currentExecution;t&&(t=o(t)?t:[t],e.dirty=e.dirty.concat(t))},i.prototype._executedAction=function(t,e){var n=++this._stackIdx;e||this._stack.splice(n,this._stack.length,t)},i.prototype._revertedAction=function(t){this._stackIdx--},i.prototype._getHandler=function(t){return this._handlerMap[t]},i.prototype._setHandler=function(t,e){if(!t||!e)throw new Error("command and handler required");if(this._handlerMap[t])throw new Error("overriding handler for command <"+t+">");this._handlerMap[t]=e}},{199:199,316:316,325:325,81:81}],77:[function(t,e,n){e.exports={__depends__:[t(83)],commandStack:["type",t(76)]}},{76:76,83:83}],78:[function(t,e,n){"use strict";function i(t,e){return Math.round(t*e)/e}function r(t){return u(t)?t+"px":t}function o(t){t=p({},{width:"100%",height:"100%"},t);var e=t.container||document.body,n=document.createElement("div");return n.setAttribute("class","djs-container"),p(n.style,{position:"relative",overflow:"hidden",width:r(t.width),height:r(t.height)}),e.appendChild(n),n}function a(t,e){return t.group().attr({"class":e})}function s(t,e,n,i){this._eventBus=e,this._elementRegistry=i,this._graphicsFactory=n,this._init(t||{})}function c(t,e){var n="matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")";t.setAttribute("transform",n)}var u=t(319),p=t(325),l=t(204),h=t(175),f=t(188),d="base";s.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],e.exports=s,s.prototype._init=function(t){var e=this._eventBus,n=o(t),i=f.createSnapAt("100%","100%",n),r=a(i,"viewport"),s=this;this._container=n,this._svg=i,this._viewport=r,this._layers={},e.on("diagram.init",function(t){e.fire("canvas.init",{svg:i,viewport:r})}),e.on("diagram.destroy",function(){var t=s._container.parentNode;t&&t.removeChild(n),e.fire("canvas.destroy",{svg:s._svg,viewport:s._viewport}),s._svg.remove(),s._svg=s._container=s._layers=s._viewport=null})},s.prototype.getDefaultLayer=function(){return this.getLayer(d)},s.prototype.getLayer=function(t){if(!t)throw new Error("must specify a name");var e=this._layers[t];return e||(e=this._layers[t]=a(this._viewport,"layer-"+t)),e},s.prototype.getContainer=function(){return this._container},s.prototype._updateMarker=function(t,e,n){var i;t.id||(t=this._elementRegistry.get(t)),i=this._elementRegistry._elements[t.id],i&&(l([i.gfx,i.secondaryGfx],function(t){t&&t[n?"addClass":"removeClass"](e)}),this._eventBus.fire("element.marker.update",{element:t,gfx:i.gfx,marker:e,add:!!n}))},s.prototype.addMarker=function(t,e){this._updateMarker(t,e,!0)},s.prototype.removeMarker=function(t,e){this._updateMarker(t,e,!1)},s.prototype.hasMarker=function(t,e){t.id||(t=this._elementRegistry.get(t));var n=this.getGraphics(t);return n&&n.hasClass(e)},s.prototype.toggleMarker=function(t,e){this.hasMarker(t,e)?this.removeMarker(t,e):this.addMarker(t,e)},s.prototype.getRootElement=function(){return this._rootElement||this.setRootElement({id:"__implicitroot"}),this._rootElement},s.prototype.setRootElement=function(t,e){this._ensureValidId(t);var n=this._rootElement,i=this._elementRegistry,r=this._eventBus;if(n){if(!e)throw new Error("rootElement already set, need to specify override");r.fire("root.remove",{element:n}),r.fire("root.removed",{element:n}),i.remove(n)}var o=this.getDefaultLayer();return r.fire("root.add",{element:t}),i.add(t,o,this._svg),r.fire("root.added",{element:t,gfx:o}),this._rootElement=t,t},s.prototype._ensureValidId=function(t){if(!t.id)throw new Error("element must have an id");if(this._elementRegistry.get(t.id))throw new Error("element with id "+t.id+" already exists")},s.prototype._setParent=function(t,e){h.add(e.children,t),t.parent=e},s.prototype._addElement=function(t,e,n){n=n||this.getRootElement();var i=this._eventBus,r=this._graphicsFactory;this._ensureValidId(e),i.fire(t+".add",{element:e,parent:n}),this._setParent(e,n);var o=r.create(t,e);return this._elementRegistry.add(e,o),r.update(t,e,o),i.fire(t+".added",{element:e,gfx:o}),e},s.prototype.addShape=function(t,e){return this._addElement("shape",t,e)},s.prototype.addConnection=function(t,e){return this._addElement("connection",t,e)},s.prototype._removeElement=function(t,e){var n=this._elementRegistry,i=this._graphicsFactory,r=this._eventBus;return(t=n.get(t.id||t))?(r.fire(e+".remove",{element:t}),i.remove(t),h.remove(t.parent&&t.parent.children,t),t.parent=null,r.fire(e+".removed",{element:t}),n.remove(t),t):void 0},s.prototype.removeShape=function(t){return this._removeElement(t,"shape")},s.prototype.removeConnection=function(t){return this._removeElement(t,"connection")},s.prototype.sendToFront=function(t,e){e!==!1&&(e=!0),e&&t.parent&&this.sendToFront(t.parent),l(t.children,function(t){this.sendToFront(t,!1)},this);var n=this.getGraphics(t),i=n.parent();n.remove().appendTo(i)},s.prototype.getGraphics=function(t,e){return this._elementRegistry.getGraphics(t,e)},s.prototype._fireViewboxChange=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox(!1)})},s.prototype.viewbox=function(t){if(void 0===t&&this._cachedViewbox)return this._cachedViewbox;var e,n,r,o,a,s=this._viewport,c=this.getSize();return t?(r=Math.min(c.width/t.width,c.height/t.height),n=(new f.Matrix).scale(r).translate(-t.x,-t.y),s.transform(n),this._fireViewboxChange(),t):(e=this.getDefaultLayer().getBBox(!0),n=s.transform().localMatrix,r=i(n.a,1e3),o=i(-n.e||0,1e3),a=i(-n.f||0,1e3),t=this._cachedViewbox={x:o?o/r:0,y:a?a/r:0,width:c.width/r,height:c.height/r,scale:r,inner:{width:e.width,height:e.height,x:e.x,y:e.y},outer:c})},s.prototype.scroll=function(t){var e=this._viewport.node,n=e.getCTM();return t&&(t=p({dx:0,dy:0},t||{}),n=this._svg.node.createSVGMatrix().translate(t.dx,t.dy).multiply(n),c(e,n),this._fireViewboxChange()),{x:n.e,y:n.f}},s.prototype.zoom=function(t,e){if("fit-viewport"===t)return this._fitViewport(e);var n=this.viewbox();if(void 0===t)return n.scale;var r=n.outer;"auto"===e&&(e={x:r.width/2,y:r.height/2});var o=this._setZoom(t,e);return this._fireViewboxChange(),i(o.a,1e3)},s.prototype._fitViewport=function(t){var e,n,i=this.viewbox(),r=i.outer,o=i.inner;return o.x>=0&&o.y>=0&&o.x+o.width<=r.width&&o.y+o.height<=r.height&&!t?n={x:0,y:0,width:Math.max(o.width+o.x,r.width),height:Math.max(o.height+o.y,r.height)}:(e=Math.min(1,r.width/o.width,r.height/o.height),n={x:o.x+(t?o.width/2-r.width/e/2:0),y:o.y+(t?o.height/2-r.height/e/2:0),width:r.width/e,height:r.height/e}),this.viewbox(n),this.viewbox().scale},s.prototype._setZoom=function(t,e){var n,i,r,o,a,s=this._svg.node,u=this._viewport.node,l=s.createSVGMatrix(),h=s.createSVGPoint();r=u.getCTM();var f=r.a;return e?(n=p(h,e),i=n.matrixTransform(r.inverse()),o=l.translate(i.x,i.y).scale(1/f*t).translate(-i.x,-i.y),a=r.multiply(o)):a=l.scale(t),c(this._viewport.node,a),a},s.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},s.prototype.getAbsoluteBBox=function(t){var e,n=this.viewbox();if(t.waypoints){var i=this.getGraphics(t),r=i.getBBox(!0);e=i.getBBox(),e.x-=r.x,e.y-=r.y,e.width+=2*r.x,e.height+=2*r.y}else e=t;var o=e.x*n.scale-n.x*n.scale,a=e.y*n.scale-n.y*n.scale,s=e.width*n.scale,c=e.height*n.scale;return{x:o,y:a,width:s,height:c}}},{175:175,188:188,204:204,319:319,325:325}],79:[function(t,e,n){"use strict";function i(){this._uid=12}var r=t(168);e.exports=i,i.prototype.createRoot=function(t){return this.create("root",t)},i.prototype.createLabel=function(t){return this.create("label",t)},i.prototype.createShape=function(t){return this.create("shape",t)},i.prototype.createConnection=function(t){return this.create("connection",t)},i.prototype.create=function(t,e){return e=e||{},e.id||(e.id=t+"_"+this._uid++),r.create(t,e)}},{168:168}],80:[function(t,e,n){"use strict";function i(){this._elements={}}var r="data-element-id";e.exports=i,i.prototype.add=function(t,e,n){var i=t.id;this._validateId(i),e.attr(r,i),n&&n.attr(r,i),this._elements[i]={element:t,gfx:e,secondaryGfx:n}},i.prototype.remove=function(t){var e=this._elements,n=t.id||t,i=n&&e[n];i&&(i.gfx.attr(r,null),i.secondaryGfx&&i.secondaryGfx.attr(r,null),delete e[n])},i.prototype.updateId=function(t,e){this._validateId(e),"string"==typeof t&&(t=this.get(t));var n=this.getGraphics(t),i=this.getGraphics(t,!0);this.remove(t),t.id=e,this.add(t,n,i)},i.prototype.get=function(t){var e;e="string"==typeof t?t:t&&t.attr(r);var n=this._elements[e];return n&&n.element},i.prototype.filter=function(t){var e=[];return this.forEach(function(n,i){t(n,i)&&e.push(n)}),e},i.prototype.forEach=function(t){var e=this._elements;Object.keys(e).forEach(function(n){var i=e[n],r=i.element,o=i.gfx;return t(r,o)})},i.prototype.getGraphics=function(t,e){var n=t.id||t,i=this._elements[n];return i&&(e?i.secondaryGfx:i.gfx)},i.prototype._validateId=function(t){if(!t)throw new Error("element must have an id");if(this._elements[t])throw new Error("element with id "+t+" already added")}},{}],81:[function(t,e,n){"use strict";function i(){this._listeners={};var t=this;this.on("diagram.destroy",1,function(){t._listeners=null})}function r(){}var o=t(317),a=t(316),s=t(319),c=t(325),u=1e3;e.exports=i,i.prototype.on=function(t,e,n){if(t=a(t)?t:[t],o(e)&&(n=e,e=u),!s(e))throw new Error("priority must be a number");var i=this,r={priority:e,callback:n};t.forEach(function(t){i._addListener(t,r)})},i.prototype.once=function(t,e){function n(){e.apply(i,arguments),i.off(t,n)}var i=this;this.on(t,n)},i.prototype.off=function(t,e){var n,i,r=this._getListeners(t);if(e)for(i=r.length-1;n=r[i];i--)n.callback===e&&r.splice(i,1);else r.length=0},i.prototype.fire=function(t,e){var n,i,o,a,s,c,u;if(u=Array.prototype.slice.call(arguments),"object"==typeof t&&(n=t,t=n.type),!t)throw new Error("no event type specified");if(o=this._listeners[t]){e instanceof r?n=e:(n=new r,n.init(e)),u[0]=n,i=n.type;try{for(t!==i&&(n.type=t),a=0;(s=o[a])&&!n.cancelBubble;a++)try{c=n.returnValue=s.callback.apply(null,u),void 0!==c&&n.stopPropagation(),c===!1&&n.preventDefault()}catch(p){if(!this.handleError(p))throw console.error("unhandled error in event listener"),console.error(p.stack),p}}finally{t!==i&&(n.type=i)}return void 0===c&&n.defaultPrevented&&(c=!1),c}},i.prototype.handleError=function(t){return this.fire("error",{error:t})===!1},i.prototype._addListener=function(t,e){var n,i,r=this._getListeners(t);for(i=0;n=r[i];i++)if(n.priority<e.priority)return void r.splice(i,0,e);r.push(e)},i.prototype._getListeners=function(t){var e=this._listeners[t];return e||(this._listeners[t]=e=[]),e},e.exports.Event=r,r.prototype.stopPropagation=function(){this.cancelBubble=!0},r.prototype.preventDefault=function(){this.defaultPrevented=!0},r.prototype.init=function(t){c(this,t||{})}},{316:316,317:317,319:319,325:325}],82:[function(t,e,n){"use strict";function i(t,e){this._renderer=t,this._elementRegistry=e}var r=t(204),o=t(208),a=t(180),s=t(340);i.$inject=["renderer","elementRegistry"],e.exports=i,i.prototype._getChildren=function(t){var e,n=this._elementRegistry.getGraphics(t);return t.parent?(e=a.getChildren(n),e||(e=n.parent().group().attr("class","djs-children"))):e=n,e},i.prototype._clear=function(t){var e=a.getVisual(t);return s(e.node),e},i.prototype._createContainer=function(t,e){var n=e.group().attr("class","djs-group"),i=n.group().attr("class","djs-element djs-"+t);return i.group().attr("class","djs-visual"),i},i.prototype.create=function(t,e){var n=this._getChildren(e.parent);return this._createContainer(t,n)},i.prototype.updateContainments=function(t){var e,n=this,i=this._elementRegistry;e=o(t,function(t,e){return e.parent&&(t[e.parent.id]=e.parent),t},{}),r(e,function(t){var e=n._getChildren(t),o=t.children;o&&r(o.slice().reverse(),function(t){var n=i.getGraphics(t);n.parent().prependTo(e)})})},i.prototype.update=function(t,e,n){if(e.parent){var i=this._clear(n);if("shape"===t)this._renderer.drawShape(i,e),n.translate(e.x,e.y);else{if("connection"!==t)throw new Error("unknown type: "+t);this._renderer.drawConnection(i,e)}n.attr("display",e.hidden?"none":"block")}},i.prototype.remove=function(t){var e=this._elementRegistry.getGraphics(t);e.parent().remove()}},{180:180,204:204,208:208,340:340}],83:[function(t,e,n){e.exports={__depends__:[t(86)],__init__:["canvas"],canvas:["type",t(78)],elementRegistry:["type",t(80)],elementFactory:["type",t(79)],eventBus:["type",t(81)],graphicsFactory:["type",t(82)]}},{78:78,79:79,80:80,81:81,82:82,86:86}],84:[function(t,e,n){"use strict";function i(t){this.CONNECTION_STYLE=t.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=t.style({fill:"white",stroke:"fuchsia",strokeWidth:2})}function r(t){return t.join(",").replace(/,?([A-z]),?/g,"$1")}function o(t){for(var e,n="",i=0;e=t[i];i++)n+=e.x+","+e.y+" ";return n}function a(t,e){return c.create("polyline",{points:o(t)}).attr(e||{})}function s(t,e){return t.attr({points:o(e)})}var c=t(188);e.exports=i,i.$inject=["styles"],i.prototype.drawShape=function(t,e){return t.rect(0,0,e.width||0,e.height||0).attr(this.SHAPE_STYLE)},i.prototype.drawConnection=function(t,e){return a(e.waypoints,this.CONNECTION_STYLE).appendTo(t)},i.prototype.getShapePath=function(t){var e=t.x,n=t.y,i=t.width,o=t.height,a=[["M",e,n],["l",i,0],["l",0,o],["l",-i,0],["z"]];return r(a)},i.prototype.getConnectionPath=function(t){var e,n,i=t.waypoints,o=[];for(e=0;n=i[e];e++)n=n.original||n,o.push([0===e?"M":"L",n.x,n.y]);return r(o)},e.exports.createLine=a,e.exports.updateLine=s},{188:188}],85:[function(t,e,n){"use strict";function i(){var t={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}};this.cls=function(t,e,n){var i=this.style(e,n);return o(i,{"class":t})},this.style=function(e,n){r(e)||n||(n=e,e=[]);var i=a(e,function(e,n){return o(e,t[n]||{})},{});return n?o(i,n):i}}var r=t(316),o=t(325),a=t(208);e.exports=i},{208:208,316:316,325:325}],86:[function(t,e,n){e.exports={renderer:["type",t(84)],styles:["type",t(85)]}},{84:84,85:85}],87:[function(t,e,n){"use strict";function i(t,e,n,i,d,m,y){function v(t){d.update("connection",t.connection,t.connectionGfx)}function g(t){return t.filter(function(e,n){return!r.pointsOnLine(t[n-1],t[n+1],e)})}var x;try{x=t.get("connectionDocking")}catch(b){}this.start=function(t,e,r,o){var a,s,c=e.waypoints,u=n.getGraphics(e);a=o||0!==r?o||r!==c.length-1?p:h:l,s={connection:e,bendpointIndex:r,insert:o,type:a},i.activate(t,"bendpoint.move",{data:{connection:e,connectionGfx:u,context:s}})},e.on("bendpoint.move.start",function(t){var e=t.context,i=e.connection,r=i.waypoints,a=r.slice(),s=e.insert,c=e.bendpointIndex;e.originalWaypoints=r,s&&a.splice(c,0,null),i.waypoints=a,e.draggerGfx=o.addBendpoint(n.getLayer("overlays")),e.draggerGfx.addClass("djs-dragging"),n.addMarker(i,u)}),e.on("bendpoint.move.hover",function(t){t.context.hover=t.hover,n.addMarker(t.hover,c)}),e.on(["bendpoint.move.out","bendpoint.move.cleanup"],function(t){var e=t.context.hover;e&&(n.removeMarker(e,c),n.removeMarker(e,t.context.target?a:s))}),e.on("bendpoint.move.move",function(t){var e,i,r=t.context,o=r.type,c=t.connection;c.waypoints[r.bendpointIndex]={x:t.x,y:t.y},x&&(r.hover&&(o===l&&(e=r.hover),o===h&&(i=r.hover)),c.waypoints=x.getCroppedWaypoints(c,e,i));var u=r.allowed=m.allowed(r.type,r);u?r.hover&&(n.removeMarker(r.hover,s),n.addMarker(r.hover,a),r.target=r.hover):u===!1&&r.hover&&(n.removeMarker(r.hover,a),n.addMarker(r.hover,s),r.target=null),r.draggerGfx.translate(t.x,t.y),v(t)}),e.on(["bendpoint.move.end","bendpoint.move.cancel"],function(t){var e=t.context,i=e.connection;e.draggerGfx.remove(),e.newWaypoints=i.waypoints.slice(),i.waypoints=e.originalWaypoints,n.removeMarker(i,u)}),e.on("bendpoint.move.end",function(t){var e=t.context,n=e.newWaypoints,i=e.bendpointIndex,r=n[i],o=e.allowed;if(r.x=f(r.x),r.y=f(r.y),o===!0&&e.type===l)y.reconnectStart(e.connection,e.target,r);else if(o===!0&&e.type===h)y.reconnectEnd(e.connection,e.target,r);else{if(o===!1||e.type!==p)return v(t),!1;y.updateWaypoints(e.connection,g(n))}}),e.on("bendpoint.move.cancel",function(t){v(t)})}var r=t(179),o=t(90),a="connect-ok",s="connect-not-ok",c="connect-hover",u="djs-updating",p="connection.updateWaypoints",l="connection.reconnectStart",h="connection.reconnectEnd",f=Math.round;i.$inject=["injector","eventBus","canvas","dragging","graphicsFactory","rules","modeling"],e.exports=i},{179:179,90:90}],88:[function(t,e,n){"use strict";function i(t){function e(t,e){return s.snapTo(t,e)}function n(t){return o(t,["x","y"])}function i(t){return t.width?{x:c(t.width/2+t.x),y:c(t.height/2+t.y)}:void 0}function u(t){var e=t.snapPoints,n=t.connection.waypoints,i=t.bendpointIndex,r=[n[i-1],n[i+1]];return e||(t.snapPoints=e={horizontal:[],vertical:[]},a(r,function(t){t&&(t=t.original||t,e.horizontal.push(t.y),e.vertical.push(t.x))})),e}t.on("bendpoint.move.start",function(t){t.context.snapStart=n(t)}),t.on("bendpoint.move.move",1500,function(t){var n,o,a=t.context,s=u(a),c=a.snapStart,p=a.target,l=p&&i(p),h=c.x+t.dx,f=c.y+t.dy;if(s){n=e(l?s.vertical.concat([l.x]):s.vertical,h),o=e(l?s.horizontal.concat([l.y]):s.horizontal,f);var d=h-n,m=f-o;r(t,{dx:t.dx-d,dy:t.dy-m,x:t.x-d,y:t.y-m})}})}var r=t(325),o=t(330),a=t(204),s=t(188),c=Math.round;i.$inject=["eventBus"],e.exports=i},{188:188,204:204,325:325,330:330}],89:[function(t,e,n){"use strict";function i(t,e,n,i,s){function c(t,e){var i=o.toCanvasCoordinates(n,e);return o.getApproxIntersection(t,i)}function u(t,e){var n=e.waypoints,i=c(n,t);i&&s.start(t,e,i.index,!i.bendpoint)}function p(t,e){var i=n.getLayer("overlays"),o=i.select(".djs-bendpoints[data-element-id="+t.id+"]");return!o&&e&&(o=i.group().addClass("djs-bendpoints").attr("data-element-id",t.id),r.bind(o.node,"mousedown",function(e){u(e,t)})),o}function l(t,e){e.waypoints.forEach(function(e,n){o.addBendpoint(t).translate(e.x,e.y)}),o.addBendpoint(t).addClass("floating")}function h(t){t.selectAll("."+a).forEach(function(t){t.remove()})}function f(t){var e=p(t);return e||(e=p(t,!0),l(e,t)),e}function d(t){var e=p(t);e&&(h(e),l(e,t))}e.on("connection.changed",function(t){d(t.element)}),e.on("connection.remove",function(t){var e=p(t.element);e&&e.remove()}),e.on("element.marker.update",function(t){var e,n=t.element;n.waypoints&&(e=f(n),e[t.add?"addClass":"removeClass"](t.marker))}),e.on("element.mousemove",function(t){var e,n,i,r=t.element,o=r.waypoints;if(o){if(e=p(r,!0),n=e.select(".floating"),!n)return;i=c(o,t.originalEvent),i&&n.translate(i.point.x,i.point.y)}}),e.on("element.mousedown",function(t){var e=t.originalEvent,n=t.element,i=n.waypoints;i&&u(e,n,i)}),e.on("selection.changed",function(t){var e=t.newSelection,n=e[0];n&&n.waypoints&&f(n)}),e.on("element.hover",function(t){var e=t.element;e.waypoints&&(f(e),i.registerEvent(t.gfx.node,"mousemove","element.mousemove"))}),e.on("element.out",function(t){i.unregisterEvent(t.gfx.node,"mousemove","element.mousemove")})}var r=t(344),o=t(90),a=o.BENDPOINT_CLS;i.$inject=["injector","eventBus","canvas","interactionEvents","bendpointMove"],e.exports=i},{344:344,90:90}],90:[function(t,e,n){"use strict";function i(t,e){var n=t.x,i=t.y;return[["M",n,i],["m",0,-e],["a",e,e,0,1,1,0,2*e],["a",e,e,0,1,1,0,-2*e],["z"]]}function r(t){var e=[];return t.forEach(function(t,n){e.push([0===n?"M":"L",t.x,t.y])}),e}function o(t,e){var n,i;for(n=0;i=t[n];n++)if(u.distance(i,e)<=l)return{point:t[n],bendpoint:!0,index:n};return null}function a(t,e){var n,o=s.path.intersection(i(e,l),r(t)),a=o[0],c=o[o.length-1];return a?a!==c?a.segment2!==c.segment2?(n=Math.max(a.segment2,c.segment2)-1,{point:t[n],bendpoint:!0,index:n}):{point:{x:Math.round(a.x+c.x)/2,y:Math.round(a.y+c.y)/2},index:a.segment2}:{point:{x:Math.round(a.x),y:Math.round(a.y)},index:a.segment2}:null}var s=t(188),c=t(178),u=t(179),p=e.exports.BENDPOINT_CLS="djs-bendpoint";e.exports.toCanvasCoordinates=function(t,e){var n,i=c.toPoint(e),r=t._container.getBoundingClientRect();n={x:r.left,y:r.top};var o=t.viewbox();return{x:o.x+(i.x-n.x)/o.scale,y:o.y+(i.y-n.y)/o.scale}},e.exports.addBendpoint=function(t){var e=t.group().addClass(p);return e.circle(0,0,4).addClass("djs-visual"),e.circle(0,0,10).addClass("djs-hit"),e};var l=10;e.exports.getApproxIntersection=function(t,e){return o(t,e)||a(t,e)}},{178:178,179:179,188:188}],91:[function(t,e,n){e.exports={__depends__:[t(101),t(147)],__init__:["bendpoints","bendpointSnapping"],bendpoints:["type",t(89)],bendpointMove:["type",t(87)],bendpointSnapping:["type",t(88)]}},{101:101,147:147,87:87,88:88,89:89}],92:[function(t,e,n){"use strict";function i(t,e,n){t.on("element.changed",function(n){var i=n.element;n.gfx||(n.gfx=e.getGraphics(i)),n.gfx&&(i.waypoints?t.fire("connection.changed",n):t.fire("shape.changed",n))}),t.on("elements.changed",function(e){var i=e.elements;i.forEach(function(e){t.fire("element.changed",{element:e})}),n.updateContainments(i)}),t.on("shape.changed",function(t){n.update("shape",t.element,t.gfx)}),t.on("connection.changed",function(t){n.update("connection",t.element,t.gfx)})}i.$inject=["eventBus","elementRegistry","graphicsFactory"],e.exports=i},{}],93:[function(t,e,n){e.exports={__init__:["changeSupport"],changeSupport:["type",t(92)]}},{92:92}],94:[function(t,e,n){"use strict";function i(t,e,n,i,s,c){function u(t,e){return i.allowed("connection.create",{source:t,target:e})}function p(t,e,n,i){var o=c.getShapePath(n),a=i&&c.getShapePath(i),s=c.getConnectionPath({waypoints:[t,e]});return t=r.getElementLineIntersection(o,s,!0)||t,e=i&&r.getElementLineIntersection(a,s,!1)||e,[t,e]}t.on("connect.move",function(t){var e,n,i,o=t.context,a=o.source,s=o.target,c=o.visual;e=r.getMidPoint(a),n={x:t.x,y:t.y},i=p(e,n,a,s),c.attr("points",[i[0].x,i[0].y,i[1].x,i[1].y])}),t.on("connect.hover",function(t){var e,n=t.context,i=n.source,r=t.hover;e=n.canExecute=u(i,r),null!==e&&(n.target=r,s.addMarker(r,e?o:a))}),t.on(["connect.out","connect.cleanup"],function(t){var e=t.context;e.target&&s.removeMarker(e.target,e.canExecute?o:a),e.target=null}),t.on("connect.cleanup",function(t){var e=t.context;e.visual&&e.visual.remove()}),t.on("connect.start",function(t){var e,n=t.context;e=s.getDefaultLayer().polyline().attr({stroke:"#333",strokeDasharray:[1],strokeWidth:2,"pointer-events":"none"}),n.visual=e}),t.on("connect.end",function(t){var e=t.context,i=e.source,r=e.target,o=e.canExecute||u(i,r);return o?void n.connect(i,r):!1}),this.start=function(t,n,i){e.activate(t,"connect",{autoActivate:i,data:{shape:n,context:{source:n}}})}}var r=t(166),o="connect-ok",a="connect-not-ok";i.$inject=["eventBus","dragging","modeling","rules","canvas","renderer"],e.exports=i},{166:166}],95:[function(t,e,n){e.exports={__depends__:[t(151),t(147),t(101)],connect:["type",t(94)]}},{101:101,147:147,151:151,94:94}],96:[function(t,e,n){"use strict";function i(t,e){this._providers=[],this._eventBus=t,this._overlays=e,this._current=null,this._init()}var r=t(317),o=t(204),a=t(342),s=t(340),c=t(344),u=t(338),p=t(346),l=t(339),h=t(343),f=".entry";i.$inject=["eventBus","overlays"],i.prototype._init=function(){var t=this._eventBus,e=this;t.on("selection.changed",function(t){var n=t.newSelection;1===n.length?e.open(n[0]):e.close()})},i.prototype.registerProvider=function(t){this._providers.push(t)},i.prototype.getEntries=function(t){var e={};return o(this._providers,function(n){var i=n.getContextPadEntries(t);o(i,function(t,n){e[n]=t})}),e},i.prototype.trigger=function(t,e,n){var i,o,a,s=this._current,c=s.element,p=s.entries,l=e.delegateTarget||e.target;if(!l)return e.preventDefault();if(i=p[u(l,"data-action")],o=i.action,a=e.originalEvent||e,r(o)){if("click"===t)return o(a,c,n)}else if(o[t])return o[t](a,c,n);e.preventDefault()},i.prototype.open=function(t){if(this._current&&this._current.open){if(this._current.element===t)return;this.close()}this._updateAndOpen(t)},i.prototype._updateAndOpen=function(t){var e=this.getEntries(t),n=this.getPad(t),i=n.html;s(i),o(e,function(t,e){var n,r=t.group||"default",o=h(t.html||'<div class="entry" draggable="true"></div>');u(o,"data-action",e),n=p("[data-group="+r+"]",i),n||(n=h('<div class="group" data-group="'+r+'"></div>'),i.appendChild(n)),n.appendChild(o),t.className&&l(o).add(t.className),t.title&&u(o,"title",t.title),t.imageUrl&&o.appendChild(h('<img src="'+t.imageUrl+'">'))}),l(i).add("open"),this._current={element:t,pad:n,entries:e,open:!0},this._eventBus.fire("contextPad.open",{current:this._current})},i.prototype.getPad=function(t){var e=this,n=this._overlays,i=n.get({element:t,type:"context-pad"});if(!i.length){var r=h('<div class="djs-context-pad"></div>');a.bind(r,f,"click",function(t){e.trigger("click",t)}),a.bind(r,f,"dragstart",function(t){e.trigger("dragstart",t)}),c.bind(r,"mousedown",function(t){t.stopPropagation()}),n.add(t,"context-pad",{position:{right:-9,top:-6},html:r}),i=n.get({element:t,type:"context-pad"}),this._eventBus.fire("contextPad.create",{element:t,pad:i[0]})}return i[0]},i.prototype.close=function(){var t;this._current&&(this._current.open&&(t=this._current.pad.html,l(t).remove("open")),this._current.open=!1,this._eventBus.fire("contextPad.close",{current:this._current}))},i.prototype.isOpen=function(){return this._current&&this._current.open},e.exports=i},{204:204,317:317,338:338,339:339,340:340,342:342,343:343,344:344,346:346}],97:[function(t,e,n){e.exports={__depends__:[t(103),t(135)],contextPad:["type",t(96)]}},{103:103,135:135,96:96}],98:[function(t,e,n){"use strict";function i(t,e,n,i,a,s,c,u){function p(t,e,i){return i?n.allowed("shape.append",{source:i,shape:t,parent:e}):n.allowed("shape.create",{shape:t,parent:e})}function l(t){var e,n,i;return e=a.getDefaultLayer().group().attr(u.cls("djs-drag-group",["no-events"])),n=e.group().addClass("djs-dragger"),n.translate(t.width/-2,t.height/-2),i=n.group().addClass("djs-visual"),c.drawShape(i,t),e}t.on("create.move",function(t){var e=t.context,n=e.shape,i=e.visual;i||(i=e.visual=l(n)),i.translate(t.x,t.y);var s,c=t.hover;s=e.canExecute=c&&p(e.shape,c,e.source),c&&null!==s&&(e.target=c,a.addMarker(c,s?r:o))}),t.on(["create.end","create.out","create.cleanup"],function(t){var e=t.context;e.target&&a.removeMarker(e.target,e.canExecute?r:o)}),t.on("create.end",function(t){var e=t.context,n=e.source,r=e.shape,o=e.target,a=e.canExecute,s={x:t.x,y:t.y};return a?void(n?i.appendShape(n,r,s,o):i.createShape(r,s,o)):!1}),t.on("create.cleanup",function(t){var e=t.context;e.visual&&e.visual.remove()}),this.start=function(t,n,i){e.activate(t,"create",{cursor:"grabbing",autoActivate:!0,data:{shape:n,context:{shape:n,source:i}}})}}var r="drop-ok",o="drop-not-ok";i.$inject=["eventBus","dragging","rules","modeling","canvas","elementFactory","renderer","styles"],e.exports=i},{}],99:[function(t,e,n){e.exports={__depends__:[t(101),t(151)],create:["type",t(98)]}},{101:101,151:151,98:98}],100:[function(t,e,n){"use strict";function i(t){t instanceof MouseEvent?u.stopEvent(t,!0):u.preventDefault(t)}function r(t){return Math.sqrt(Math.pow(t.x,2)+Math.pow(t.y,2))}function o(t,e){return{x:t.x-e.x,y:t.y-e.y}}function a(e,n,a){function h(n){var i=t(81).Event,r=s(new i,_.payload,_.data);return e.fire("drag."+n,r)===!1?!1:e.fire(_.prefix+"."+n,r)}function f(t,e){var c,p=_.payload,f=_.start,d=u.toPoint(t),m=o(d,f),y=n._container.getBoundingClientRect();c={x:y.left,y:y.top};var v=n.viewbox(),g={x:v.x+(d.x-c.x)/v.scale,y:v.y+(d.y-c.y)/v.scale,dx:m.x/v.scale,dy:m.y/v.scale};if(!_.active&&(e||r(m)>_.threshold)){if(s(p,{x:g.x-g.dx,y:g.y-g.dy,dx:0,dy:0},{originalEvent:t}),!1===h("start"))return b();_.active=!0,_.keepSelection||(_.previousSelection=a.get(),a.select(null)),_.cursor&&l.set(_.cursor)}i(t),_.active&&(s(p,g,{originalEvent:t}),h("move"))}function d(t){var e=!0;_.active&&(t&&(_.payload.originalEvent=t,i(t)),e=h("end")),e===!1&&h("rejected"),w(e!==!0)}function m(t){27===t.which&&(t.preventDefault(),b())}function y(t){var e;_.active&&(e=p.install(),setTimeout(e,400)),d(t)}function v(t){f(t)}function g(t){var e=_.payload;e.hoverGfx=t.gfx,e.hover=t.element,h("hover")}function x(t){h("out");var e=_.payload;e.hoverGfx=null,e.hover=null}function b(t){_&&(_.active&&h("cancel"),w(t))}function w(t){h("cleanup"),l.unset(),c.unbind(document,"mousemove",f),c.unbind(document,"mousedown",y,!0),c.unbind(document,"mouseup",y,!0),
+c.unbind(document,"keyup",m),c.unbind(document,"touchstart",v,!0),c.unbind(document,"touchcancel",b,!0),c.unbind(document,"touchmove",f,!0),c.unbind(document,"touchend",d,!0),e.off("element.hover",g),e.off("element.out",x),t!==!1&&_.previousSelection&&!a.get().length&&a.select(_.previousSelection),_=null}function E(t,n,r){_&&b(!1),r=s({},S,r||{});var o,a,p=r.data||{};t?(o=u.getOriginal(t)||t,a=u.toPoint(t),i(t)):(o=null,a={x:0,y:0}),_=s({prefix:n,data:p,payload:{},start:a},r),r.manual||("undefined"!=typeof TouchEvent&&o instanceof TouchEvent?(c.bind(document,"touchstart",v,!0),c.bind(document,"touchcancel",b,!0),c.bind(document,"touchmove",f,!0),c.bind(document,"touchend",d,!0)):(c.bind(document,"mousemove",f),c.bind(document,"mousedown",y,!0),c.bind(document,"mouseup",y,!0)),c.bind(document,"keyup",m),e.on("element.hover",g),e.on("element.out",x)),h("activate"),r.autoActivate&&f(t,!0)}var _,S={threshold:5};e.on("diagram.destroy",b),this.activate=E,this.move=f,this.hover=g,this.out=x,this.end=d,this.cancel=b,this.active=function(){return _},this.setOptions=function(t){s(S,t)}}var s=t(325),c=t(344),u=t(178),p=t(174),l=t(176);a.$inject=["eventBus","canvas","selection"],e.exports=a},{174:174,176:176,178:178,325:325,344:344,81:81}],101:[function(t,e,n){e.exports={__depends__:[t(151)],dragging:["type",t(100)]}},{100:100,151:151}],102:[function(t,e,n){"use strict";function i(t,e,n){function i(n,i){var r,o=i.delegateTarget||i.target,a=o&&new p(o),s=e.get(a);a&&s&&(r=t.fire(n,{element:s,gfx:a,originalEvent:i}),r===!1&&(i.stopPropagation(),i.preventDefault()))}function a(t){var e=y[t];return e||(e=y[t]=function(e){u(e)&&i(t,e)}),e}function l(t,e,n){var i=a(n);i.$delegate=o.bind(t,g,e,i)}function h(t,e,n){o.unbind(t,e,a(n).$delegate)}function f(t){r(v,function(e,n){l(t.node,n,e)})}function d(t){r(v,function(e,n){h(t.node,n,e)})}var m=n.cls("djs-hit",["no-fill","no-border"],{stroke:"white",strokeWidth:15}),y={},v={mouseover:"element.hover",mouseout:"element.out",click:"element.click",dblclick:"element.dblclick",mousedown:"element.mousedown",mouseup:"element.mouseup"},g="svg, .djs-element";t.on("canvas.destroy",function(t){d(t.svg)}),t.on("canvas.init",function(t){f(t.svg)}),t.on(["shape.added","connection.added"],function(t){var e,n,i=t.element,r=t.gfx;i.waypoints?(e=s(i.waypoints),n="connection"):(e=p.create("rect",{x:0,y:0,width:i.width,height:i.height}),n="shape"),e.attr(m).appendTo(r.node)}),t.on("shape.changed",function(t){var e=t.element,n=t.gfx,i=n.select(".djs-hit");i.attr({width:e.width,height:e.height})}),t.on("connection.changed",function(t){var e=t.element,n=t.gfx,i=n.select(".djs-hit");c(i,e.waypoints)}),this.fire=i,this.mouseHandler=a,this.registerEvent=l,this.unregisterEvent=h}var r=t(204),o=t(342),a=t(84),s=a.createLine,c=a.updateLine,u=t(182).isPrimaryButton,p=t(188);i.$inject=["eventBus","elementRegistry","styles"],e.exports=i},{182:182,188:188,204:204,342:342,84:84}],103:[function(t,e,n){e.exports={__init__:["interactionEvents"],interactionEvents:["type",t(102)]}},{102:102}],104:[function(t,e,n){"use strict";function i(t,e,n,i,r){var o=this;this._commandStack=n,this._modeling=i,this._selection=r,this._eventBus=e,this._listeners=[],this._keyHandler=function(t){var e,n,i=t.target,r=o._listeners,a=t.keyCode||t.charCode||-1;if(!c(i,"input, textarea"))for(e=0;n=r[e];e++)n(a,t)&&t.stopPropagation()},e.on("diagram.destroy",function(){o._fire("destroy"),o.unbind(),o._listeners=null}),e.on("diagram.init",function(){o._fire("init"),t&&t.bindTo&&o.bind(t.bindTo)}),this._init()}function r(t){return t.ctrlKey||t.metaKey||t.shiftKey||t.altKey}function o(t){return t.ctrlKey||t.metaKey}function a(t){return t.shiftKey}var s=t(344),c=t(345);i.$inject=["config.keyboard","eventBus","commandStack","modeling","selection"],e.exports=i,i.prototype.bind=function(t){this._node=t,s.bind(t,"keydown",this._keyHandler,!0),this._fire("bind")},i.prototype.getBinding=function(){return this._node},i.prototype.unbind=function(){var t=this._node;t&&(this._fire("unbind"),s.unbind(t,"keydown",this._keyHandler,!0)),this._node=null},i.prototype._fire=function(t){this._eventBus.fire("keyboard."+t,{node:this._node,listeners:this._listeners})},i.prototype._init=function(){function t(t,e){return o(e)&&!a(e)&&90===t?(r.undo(),!0):void 0}function e(t,e){return o(e)&&(89===t||90===t&&a(e))?(r.redo(),!0):void 0}function n(t,e){if(46===t){var n=c.get();return n.length&&s.removeElements(n.slice()),!0}}var i=this._listeners,r=this._commandStack,s=this._modeling,c=this._selection;i.push(t),i.push(e),i.push(n)},i.prototype.addListener=function(t){this._listeners.push(t)},i.prototype.hasModifier=r,i.prototype.isCmd=o,i.prototype.isShift=a},{344:344,345:345}],105:[function(t,e,n){e.exports={__init__:["keyboard"],keyboard:["type",t(104)]}},{104:104}],106:[function(t,e,n){"use strict";function i(t,e,n,i,o){this._selection=o,this._dragging=n;var a=this,u={create:function(t){var n,i=e.getDefaultLayer();n=t.frame=c.create("rect",{"class":"djs-lasso-overlay",width:1,height:1,x:0,y:0}),n.appendTo(i)},update:function(t){var e=t.frame,n=t.bbox;e.attr({x:n.x,y:n.y,width:n.width,height:n.height})},remove:function(t){t.frame&&t.frame.remove()}};t.on("lasso.selection.end",function(t){setTimeout(function(){a.activateLasso(t.originalEvent,!0)})}),t.on("lasso.end",function(t){var e=r(t),n=i.filter(function(t){return t});a.select(n,e)}),t.on("lasso.start",function(t){var e=t.context;e.bbox=r(t),u.create(e)}),t.on("lasso.move",function(t){var e=t.context;e.bbox=r(t),u.update(e)}),t.on("lasso.end",function(t){var e=t.context;u.remove(e)}),t.on("lasso.cleanup",function(t){var e=t.context;u.remove(e)}),t.on("element.mousedown",1500,function(t){s(t)&&(a.activateLasso(t.originalEvent),t.stopPropagation())})}function r(t){var e,n={x:t.x-t.dx,y:t.y-t.dy},i={x:t.x,y:t.y};return e=n.x<=i.x&&n.y<i.y||n.x<i.x&&n.y<=i.y?{x:n.x,y:n.y,width:i.x-n.x,height:i.y-n.y}:n.x>=i.x&&n.y<i.y||n.x>i.x&&n.y<=i.y?{x:i.x,y:n.y,width:n.x-i.x,height:i.y-n.y}:n.x<=i.x&&n.y>i.y||n.x<i.x&&n.y>=i.y?{x:n.x,y:i.y,width:i.x-n.x,height:n.y-i.y}:n.x>=i.x&&n.y>i.y||n.x>i.x&&n.y>=i.y?{x:i.x,y:i.y,width:n.x-i.x,height:n.y-i.y}:{x:i.x,y:i.y,width:0,height:0}}var o=t(331),a=t(177).getEnclosedElements,s=t(182).hasPrimaryModifier,c=t(188);i.$inject=["eventBus","canvas","dragging","elementRegistry","selection"],e.exports=i,i.prototype.activateLasso=function(t,e){this._dragging.activate(t,"lasso",{autoActivate:e,cursor:"crosshair",data:{context:{}}})},i.prototype.activateSelection=function(t){this._dragging.activate(t,"lasso.selection",{cursor:"crosshair"})},i.prototype.select=function(t,e){var n=a(t,e);this._selection.select(o(n))}},{177:177,182:182,188:188,331:331}],107:[function(t,e,n){"use strict";e.exports={__init__:["lassoTool"],lassoTool:["type",t(106)]}},{106:106}],108:[function(t,e,n){"use strict";function i(t,e,n){this._eventBus=t,this._elementFactory=e,this._commandStack=n;var i=this;t.on("diagram.init",function(){i.registerHandlers(n)})}var r=t(204),o=t(168);i.$inject=["eventBus","elementFactory","commandStack"],e.exports=i,i.prototype.getHandlers=function(){return{"shape.append":t(109),"shape.create":t(112),"shape.delete":t(115),"shape.move":t(118),"shapes.move":t(119),"shape.resize":t(123),"shape.replace":t(122),spaceTool:t(124),"label.create":t(111),"connection.create":t(110),"connection.delete":t(113),"connection.move":t(117),"connection.layout":t(116),"connection.updateWaypoints":t(126),"connection.reconnectStart":t(121),"connection.reconnectEnd":t(121),"elements.delete":t(114),"element.updateAnchors":t(125)}},i.prototype.registerHandlers=function(t){r(this.getHandlers(),function(e,n){t.registerHandler(n,e)})},i.prototype.moveShape=function(t,e,n,i){var r={shape:t,delta:e,newParent:n,hints:i||{}};this._commandStack.execute("shape.move",r)},i.prototype.moveShapes=function(t,e,n,i){var r={shapes:t,delta:e,newParent:n,hints:i||{}};this._commandStack.execute("shapes.move",r)},i.prototype.updateAnchors=function(t,e){var n={element:t,delta:e};this._commandStack.execute("element.updateAnchors",n)},i.prototype.moveConnection=function(t,e,n,i){var r={connection:t,delta:e,newParent:n,hints:i||{}};this._commandStack.execute("connection.move",r)},i.prototype.layoutConnection=function(t,e){var n={connection:t,hints:e||{}};this._commandStack.execute("connection.layout",n)},i.prototype.createConnection=function(t,e,n,i){n=this._create("connection",n);var r={source:t,target:e,parent:i,connection:n};return this._commandStack.execute("connection.create",r),r.connection},i.prototype.createShape=function(t,e,n){t=this._create("shape",t);var i={position:e,parent:n,shape:t};return this._commandStack.execute("shape.create",i),i.shape},i.prototype.createLabel=function(t,e,n,i){n=this._create("label",n);var r={labelTarget:t,position:e,parent:i,shape:n};return this._commandStack.execute("label.create",r),r.shape},i.prototype.appendShape=function(t,e,n,i,r,o){e=this._create("shape",e);var a={source:t,position:n,parent:i,shape:e,connection:r,connectionParent:o};return this._commandStack.execute("shape.append",a),a.shape},i.prototype.removeElements=function(t){var e={elements:t};this._commandStack.execute("elements.delete",e)},i.prototype.removeShape=function(t){var e={shape:t};this._commandStack.execute("shape.delete",e)},i.prototype.removeConnection=function(t){var e={connection:t};this._commandStack.execute("connection.delete",e)},i.prototype.replaceShape=function(t,e,n){var i={oldShape:t,newData:e,options:n};return this._commandStack.execute("shape.replace",i),i.newShape},i.prototype.resizeShape=function(t,e){var n={shape:t,newBounds:e};this._commandStack.execute("shape.resize",n)},i.prototype.createSpace=function(t,e,n,i){var r={movingShapes:t,resizingShapes:e,delta:n,direction:i};this._commandStack.execute("spaceTool",r)},i.prototype.updateWaypoints=function(t,e){var n={connection:t,newWaypoints:e};this._commandStack.execute("connection.updateWaypoints",n)},i.prototype.reconnectStart=function(t,e,n){var i={connection:t,newSource:e,dockingPoint:n};this._commandStack.execute("connection.reconnectStart",i)},i.prototype.reconnectEnd=function(t,e,n){var i={connection:t,newTarget:e,dockingPoint:n};this._commandStack.execute("connection.reconnectEnd",i)},i.prototype.connect=function(t,e,n){return this.createConnection(t,e,n||{},t.parent)},i.prototype._create=function(t,e){return e instanceof o.Base?e:this._elementFactory.create(t,e)}},{109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,121:121,122:122,123:123,124:124,125:125,126:126,168:168,204:204}],109:[function(t,e,n){"use strict";function i(t){this._modeling=t}var r=t(195);r(i,t(120)),i.$inject=["modeling"],e.exports=i,i.prototype.preExecute=function(t){if(!t.source)throw new Error("source required");var e=t.parent||t.source.parent,n=this._modeling.createShape(t.shape,t.position,e);t.shape=n},i.prototype.postExecute=function(t){var e=t.connectionParent||t.shape.parent;this._modeling.connect(t.source,t.shape,t.connection,e)}},{120:120,195:195}],110:[function(t,e,n){"use strict";function i(t,e){this._canvas=t,this._layouter=e}i.$inject=["canvas","layouter"],e.exports=i,i.prototype.execute=function(t){var e=t.source,n=t.target,i=t.parent;if(!e||!n)throw new Error("source and target required");if(!i)throw new Error("parent required");var r=t.connection;return r.source=e,r.target=n,r.waypoints||(r.waypoints=this._layouter.layoutConnection(r)),this._canvas.addConnection(r,i),r},i.prototype.revert=function(t){var e=t.connection;this._canvas.removeConnection(e),e.source=null,e.target=null}},{}],111:[function(t,e,n){"use strict";function i(t){o.call(this,t)}var r=t(195),o=t(112);r(i,o),i.$inject=["canvas"],e.exports=i,i.prototype.revert=function(t){t.shape.labelTarget=null,this._canvas.removeShape(t.shape)},i.prototype.getParent=function(t){return t.parent||t.labelTarget&&t.labelTarget.parent},i.prototype.addElement=function(t,e,n){t.labelTarget=n.labelTarget,this._canvas.addShape(t,e,!0)}},{112:112,195:195}],112:[function(t,e,n){"use strict";function i(t){this._canvas=t}var r=t(325);i.$inject=["canvas"],e.exports=i,i.prototype.execute=function(t){var e=this.getParent(t),n=t.shape;return this.setPosition(n,t),this.addElement(n,e,t),n},i.prototype.revert=function(t){this._canvas.removeShape(t.shape)},i.prototype.getParent=function(t){var e=t.parent;if(!e)throw new Error("parent required");return e},i.prototype.getPosition=function(t){if(!t.position)throw new Error("no position given");return t.position},i.prototype.addElement=function(t,e){this._canvas.addShape(t,e)},i.prototype.setPosition=function(t,e){var n=this.getPosition(e);r(t,{x:n.x-t.width/2,y:n.y-t.height/2})}},{325:325}],113:[function(t,e,n){"use strict";function i(t,e){this._canvas=t,this._modeling=e}var r=t(175);i.$inject=["canvas","modeling"],e.exports=i,i.prototype.preExecute=function(t){var e=t.connection;e.label&&this._modeling.removeShape(e.label)},i.prototype.execute=function(t){var e=t.connection,n=e.parent;t.parent=n,t.parentIndex=r.indexOf(n.children,e),t.source=e.source,t.target=e.target,this._canvas.removeConnection(e),e.source=null,e.target=null,e.label=null},i.prototype.revert=function(t){var e=t.connection,n=t.parent,i=t.parentIndex;e.source=t.source,e.target=t.target,r.add(n.children,e,i),this._canvas.addConnection(e,n)}},{175:175}],114:[function(t,e,n){"use strict";function i(t,e){this._modeling=t,this._elementRegistry=e}var r=t(204),o=t(195);o(i,t(120)),i.$inject=["modeling","elementRegistry"],e.exports=i,i.prototype.postExecute=function(t){var e=this._modeling,n=this._elementRegistry,i=t.elements;r(i,function(t){n.get(t.id)&&(t.waypoints?e.removeConnection(t):e.removeShape(t))})}},{120:120,195:195,204:204}],115:[function(t,e,n){"use strict";function i(t,e){this._canvas=t,this._modeling=e}var r=t(175);i.$inject=["canvas","modeling"],e.exports=i,i.prototype.preExecute=function(t){var e=t.shape,n=e.label,i=this._modeling;e.labelTarget&&(t.labelTarget=e.labelTarget,e.labelTarget=null),n&&this._modeling.removeShape(n),this._saveClear(e.incoming,function(t){i.removeConnection(t)}),this._saveClear(e.outgoing,function(t){i.removeConnection(t)}),this._saveClear(e.children,function(t){i.removeShape(t)})},i.prototype._saveClear=function(t,e){for(var n;n=t[0];)e(n)},i.prototype.execute=function(t){var e=t.shape,n=e.parent;t.parent=n,t.parentIndex=r.indexOf(n.children,e),e.label=null,this._canvas.removeShape(e)},i.prototype.revert=function(t){var e=t.shape,n=t.parent,i=t.parentIndex,o=t.labelTarget;r.add(n.children,e,i),o&&(o.label=e),this._canvas.addShape(e,n)}},{175:175}],116:[function(t,e,n){"use strict";function i(t,e){this._layouter=t,this._canvas=e}function r(t){function e(t,n){var i=t.indexOf(n);if(0>i&&n){var r=n.parent;i=e(t,r)}return i}var n=t.parent.children,i=n.indexOf(t),r=e(n,t.source),o=e(n,t.target),a=Math.max(r+1,o+1,i);return a>i&&(n.splice(a,0,t),n.splice(i,1)),a}var o=t(325);i.$inject=["layouter","canvas"],e.exports=i,i.prototype.execute=function(t){var e=t.connection,n=e.parent,i=n.children,a=i.indexOf(e);return o(t,{oldWaypoints:e.waypoints,oldIndex:a}),r(e),e.waypoints=this._layouter.layoutConnection(e,t.hints),e},i.prototype.revert=function(t){var e=t.connection,n=e.parent,i=n.children,r=i.indexOf(e),o=t.oldIndex;return e.waypoints=t.oldWaypoints,o!==r&&(i.splice(r,1),i.splice(o,0,e)),e}},{325:325}],117:[function(t,e,n){"use strict";function i(){}var r=t(204),o=t(175);e.exports=i,i.prototype.execute=function(t){var e=t.hints.updateAnchors!==!1,n=t.connection,i=t.delta,a=this.getNewParent(n,t),s=n.parent;return t.oldParent=s,t.oldParentIndex=o.indexOf(s.children,n),r(n.waypoints,function(t){t.x+=i.x,t.y+=i.y,e&&t.original&&(t.original.x+=i.x,t.original.y+=i.y)}),n.parent=a,n},i.prototype.revert=function(t){var e=t.hints.updateAnchors!==!1,n=t.connection,i=t.oldParent,a=t.oldParentIndex,s=t.delta;return o.add(i.children,n,a),n.parent=i,r(n.waypoints,function(t){t.x-=s.x,t.y-=s.y,e&&t.original&&(t.original.x-=s.x,t.original.y-=s.y)}),n},i.prototype.getNewParent=function(t,e){return e.newParent||t.parent}},{175:175,204:204}],118:[function(t,e,n){"use strict";function i(t){this._modeling=t,this._helper=new a(t)}var r=t(325),o=t(204),a=t(127),s=t(175);i.$inject=["modeling"],e.exports=i,i.prototype.execute=function(t){var e=t.shape,n=t.delta,i=this.getNewParent(t),o=e.parent;return t.oldParent=o,t.oldParentIndex=s.indexOf(o.children,e),r(e,{parent:i,x:e.x+n.x,y:e.y+n.y}),e},i.prototype.postExecute=function(t){var e=t.shape,n=t.delta,i=this._modeling;t.hints.updateAnchors!==!1&&i.updateAnchors(e,n),t.hints.layout!==!1&&(o(e.incoming,function(t){i.layoutConnection(t,{endChanged:!0})}),o(e.outgoing,function(t){i.layoutConnection(t,{startChanged:!0})})),t.hints.recurse!==!1&&this.moveChildren(t)},i.prototype.revert=function(t){var e=t.shape,n=t.oldParent,i=t.oldParentIndex,o=t.delta;return s.add(n.children,e,i),r(e,{parent:n,x:e.x-o.x,y:e.y-o.y}),e},i.prototype.moveChildren=function(t){var e=t.delta,n=t.shape;this._helper.moveRecursive(n.children,e,null)},i.prototype.getNewParent=function(t){return t.newParent||t.shape.parent}},{127:127,175:175,204:204,325:325}],119:[function(t,e,n){"use strict";function i(t){this._helper=new r(t)}var r=t(127);i.$inject=["modeling"],e.exports=i,i.prototype.preExecute=function(t){t.closure=this._helper.getClosure(t.shapes)},i.prototype.postExecute=function(t){this._helper.moveClosure(t.closure,t.delta,t.newParent)},i.prototype.execute=function(t){},i.prototype.revert=function(t){}},{127:127}],120:[function(t,e,n){"use strict";function i(){}e.exports=i,i.prototype.execute=function(){},i.prototype.revert=function(){}},{}],121:[function(t,e,n){"use strict";function i(t){}i.$inject=["layouter"],e.exports=i,i.prototype.execute=function(t){var e=t.newSource,n=t.newTarget,i=t.connection;if(!e&&!n)throw new Error("newSource or newTarget are required");if(e&&n)throw new Error("must specify either newSource or newTarget");return e&&(t.oldSource=i.source,i.source=e,t.oldDockingPoint=i.waypoints[0],i.waypoints[0]=t.dockingPoint),n&&(t.oldTarget=i.target,i.target=n,t.oldDockingPoint=i.waypoints[i.waypoints.length-1],i.waypoints[i.waypoints.length-1]=t.dockingPoint),i},i.prototype.revert=function(t){var e=t.newSource,n=t.newTarget,i=t.connection;return e&&(i.source=t.oldSource,i.waypoints[0]=t.oldDockingPoint),n&&(i.target=t.oldTarget,i.waypoints[i.waypoints.length-1]=t.oldDockingPoint),i}},{}],122:[function(t,e,n){"use strict";function i(t,e){this._modeling=t,this._rules=e}var r=t(204);i.$inject=["modeling","rules"],e.exports=i,i.prototype.preExecute=function(t){var e,n=this._modeling,i=this._rules,o=t.oldShape,a=t.newData,s={x:a.x,y:a.y};e=t.newShape=t.newShape||n.createShape(a,s,o.parent);var c=o.incoming.slice(),u=o.outgoing.slice();r(c,function(t){var r=t.waypoints,o=r[r.length-1],a=i.allowed("connection.reconnectEnd",{source:t.source,target:e,connection:t});a&&n.reconnectEnd(t,e,o)}),r(u,function(t){var r=t.waypoints,o=r[0],a=i.allowed("connection.reconnectStart",{source:e,target:t.target,connection:t});a&&n.reconnectStart(t,e,o)})},i.prototype.postExecute=function(t){var e=this._modeling,n=t.oldShape;e.removeShape(n)},i.prototype.execute=function(t){},i.prototype.revert=function(t){}},{204:204}],123:[function(t,e,n){"use strict";function i(t){this._modeling=t}var r=t(325),o=t(204);i.$inject=["modeling"],e.exports=i,i.prototype.execute=function(t){var e=t.shape,n=t.newBounds;if(void 0===n.x||void 0===n.y||void 0===n.width||void 0===n.height)throw new Error("newBounds must have {x, y, width, height} properties");if(n.width<10||n.height<10)throw new Error("width and height cannot be less than 10px");return t.oldBounds={width:e.width,height:e.height,x:e.x,y:e.y},r(e,{width:n.width,height:n.height,x:n.x,y:n.y}),e},i.prototype.postExecute=function(t){var e=t.shape,n=this._modeling;o(e.incoming,function(t){n.layoutConnection(t,{endChanged:!0})}),o(e.outgoing,function(t){n.layoutConnection(t,{startChanged:!0})})},i.prototype.revert=function(t){var e=t.shape,n=t.oldBounds;return r(e,{width:n.width,height:n.height,x:n.x,y:n.y}),e}},{204:204,325:325}],124:[function(t,e,n){"use strict";function i(t){this._modeling=t}var r=t(204),o=t(157);i.$inject=["modeling"],e.exports=i,i.prototype.preExecute=function(t){var e=this._modeling,n=t.resizingShapes,i=t.delta,a=t.direction;r(n,function(t){var n=o.resizeBounds(t,a,i);e.resizeShape(t,n)})},i.prototype.postExecute=function(t){var e=this._modeling,n=t.movingShapes,i=t.delta;e.moveShapes(n,i)},i.prototype.execute=function(t){},i.prototype.revert=function(t){}},{157:157,204:204}],125:[function(t,e,n){"use strict";function i(){}var r=t(204),o=t(325);e.exports=i,i.prototype.execute=function(t){return this.updateAnchors(t.element,t.delta)},i.prototype.revert=function(t){var e=t.delta,n={x:-1*e.x,y:-1*e.y};return this.updateAnchors(t.element,n)},i.prototype.updateAnchors=function(t,e){function n(t,e){return{x:t.x+e.x,y:t.y+e.y}}function i(t){var i=t.original;t.original=o(i||{},n(i||t,e))}var a=[];return r(t.incoming,function(t){var e=t.waypoints;i(e[e.length-1]),a.push(t)}),r(t.outgoing,function(t){var e=t.waypoints;i(e[0]),a.push(t)}),a}},{204:204,325:325}],126:[function(t,e,n){"use strict";function i(){}e.exports=i,i.prototype.execute=function(t){var e=t.connection,n=t.newWaypoints;return t.oldWaypoints=e.waypoints,e.waypoints=n,e},i.prototype.revert=function(t){var e=t.connection,n=t.oldWaypoints;return e.waypoints=n,e}},{}],127:[function(t,e,n){"use strict";function i(t){this._modeling=t}var r=t(204),o=t(177);e.exports=i,i.prototype.moveRecursive=function(t,e,n){return this.moveClosure(this.getClosure(t),e,n)},i.prototype.moveClosure=function(t,e,n){var i=this._modeling,o=t.allShapes,a=t.allConnections,s=t.enclosedConnections,c=t.topLevel;r(o,function(t){i.moveShape(t,e,c[t.id]&&n,{recurse:!1,layout:!1})}),r(a,function(t){var r=!!o[t.source.id],a=!!o[t.target.id];s[t.id]&&r&&a?i.moveConnection(t,e,c[t.id]&&n,{updateAnchors:!1}):i.layoutConnection(t,{startChanged:r,endChanged:a})})},i.prototype.getClosure=function(t){return o.getClosure(t)}},{177:177,204:204}],128:[function(t,e,n){e.exports={__depends__:[t(77),t(93),t(147)],__init__:["modeling"],modeling:["type",t(108)],layouter:["type",t(164)]}},{108:108,147:147,164:164,77:77,93:93}],129:[function(t,e,n){"use strict";function i(t){var e=s(t,"id");return a(t,function(t){for(;t=t.parent;)if(e[t.id])return!1;return!0})}function r(t,e,n,r,a){function s(t,e,n){return a.allowed("shapes.move",{shapes:t,delta:e,newParent:n})}function h(t,n,i){!n.waypoints&&n.parent&&e.activate(t,"shape.move",{cursor:"grabbing",autoActivate:i,data:{shape:n,context:{}}})}t.on("shape.move.start",u,function(t){var e=t.context,n=t.shape,a=r.get().slice();return-1===a.indexOf(n)&&(a=[n]),a=i(a),o(e,{shapes:a,shape:n}),s(a)?void 0:(t.stopPropagation(),!1)}),t.on("shape.move.move",c,function(t){var e,n=t.context,i=n.shapes,r=t.hover,o={x:t.dx,y:t.dy};return e=s(i,o,r),n.delta=o,n.canExecute=e,null===e?void(n.target=null):void(n.target=r)}),t.on("shape.move.end",function(t){var e=t.context,i=e.delta,r=e.canExecute;return r?(i.x=l(i.x),i.y=l(i.y),void n.moveShapes(e.shapes,i,e.target)):!1}),t.on("element.mousedown",function(t){var e=p(t);if(!e)throw new Error("must supply DOM mousedown event");h(e,t.element)}),this.start=h}var o=t(325),a=t(202),s=t(205),c=500,u=1500,p=t(178).getOriginal,l=Math.round;r.$inject=["eventBus","dragging","modeling","selection","rules"],e.exports=r},{178:178,202:202,205:205,325:325}],130:[function(t,e,n){"use strict";function i(t,e,n,i){function s(t){return e.getGraphics(t)}function c(t){var e=p.selfAndDirectChildren(t,!0),n=r(e);return n}function m(t){var e=p.selfAndAllChildren(t,!0),n=u(e,function(t){return(t.incoming||[]).concat(t.outgoing||[])});return o(e.concat(n),!0)}function y(t,e){var n=s(t),r=n.clone(),o=n.getBBox();r.attr(i.cls("djs-dragger",[],{x:o.x,y:o.y})),e.add(r)}t.on("shape.move.start",l,function(t){var e=t.context,r=e.shapes,o=n.getDefaultLayer().group().attr(i.cls("djs-drag-group",["no-events"])),s=c(r);s.forEach(function(t){y(t,o)});var u=e.allDraggedElements=m(r);a(u,function(t){n.addMarker(t,h)}),e.dragGroup=o}),t.on("shape.move.move",l,function(t){var e=t.context,i=e.dragGroup,r=e.target;r&&n.addMarker(r,e.canExecute?f:d),i.translate(t.dx,t.dy)}),t.on(["shape.move.out","shape.move.cleanup"],function(t){var e=t.context;e.target&&n.removeMarker(e.target,e.canExecute?f:d)}),t.on("shape.move.cleanup",function(t){var e=t.context,i=e.allDraggedElements,r=e.dragGroup;a(i,function(t){n.removeMarker(t,h)}),r&&r.remove()})}function r(t){var e=s(t,function(e){if(e.waypoints){var n=c(t,e.source),i=c(t,e.target);return n&&i}return!0});return e}var o=t(196),a=t(204),s=t(202),c=t(203),u=t(207),p=t(177),l=500,h="djs-dragging",f="drop-ok",d="drop-not-ok";i.$inject=["eventBus","elementRegistry","canvas","styles"],e.exports=i},{177:177,196:196,202:202,203:203,204:204,207:207}],131:[function(t,e,n){e.exports={__depends__:[t(103),t(151),t(133),t(147),t(101)],__init__:["move","moveVisuals"],move:["type",t(129)],moveVisuals:["type",t(130)]}},{101:101,103:103,129:129,130:130,133:133,147:147,151:151}],132:[function(t,e,n){"use strict";function i(t,e,n){function i(t,e){return r.create("rect",u).prependTo(t)}function a(t,e){t.attr({x:-c,y:-c,width:e.width+2*c,height:e.height+2*c})}function s(t,e){var n=o(e);t.attr({x:n.x-c,y:n.y-c,width:n.width+2*c,height:n.height+2*c})}var c=6,u=e.cls("djs-outline",["no-fill"]);t.on(["shape.added","shape.changed"],function(t){var e=t.element,n=t.gfx,r=n.select(".djs-outline");r||(r=i(n,e)),a(r,e)}),t.on(["connection.added","connection.changed"],function(t){var e=t.element,n=t.gfx,r=n.select(".djs-outline");r||(r=i(n,e)),s(r,e)})}var r=t(188),o=t(177).getBBox;i.$inject=["eventBus","styles","elementRegistry"],e.exports=i},{177:177,188:188}],133:[function(t,e,n){"use strict";e.exports={__init__:["outline"],outline:["type",t(132)]}},{132:132}],134:[function(t,e,n){"use strict";function i(t){var e=d('<div class="djs-overlay-container" style="position: absolute; width: 0; height: 0;" />');return t.insertBefore(e,t.firstChild),e}function r(t,e,n){p(t.style,{left:e+"px",top:n+"px"})}function o(t,e){t.style.display=e===!1?"none":""}function a(t,e,n,r){this._eventBus=e,this._canvas=n,this._elementRegistry=r,this._ids=g,this._overlayDefaults={show:{minZoom:.7,maxZoom:5}},this._overlays={},this._overlayContainers={},this._overlayRoot=i(n.getContainer()),this._init(t)}var s=t(316),c=t(322),u=t(320),p=t(325),l=t(204),h=t(202),f=t(214),d=t(343),m=t(339),y=t(347),v=t(177).getBBox,g=new(t(181))("ov");a.$inject=["config.overlays","eventBus","canvas","elementRegistry"],e.exports=a,a.prototype.get=function(t){if(c(t)&&(t={id:t}),t.element){var e=this._getOverlayContainer(t.element,!0);return e?t.type?h(e.overlays,{type:t.type}):e.overlays.slice():[]}return t.type?h(this._overlays,{type:t.type}):t.id?this._overlays[t.id]:null},a.prototype.add=function(t,e,n){if(u(e)&&(n=e,e=null),t.id||(t=this._elementRegistry.get(t)),!n.position)throw new Error("must specifiy overlay position");if(!n.html)throw new Error("must specifiy overlay html");if(!t)throw new Error("invalid element specified");var i=this._ids.next();return n=p({},this._overlayDefaults,n,{id:i,type:e,element:t,html:n.html}),this._addOverlay(n),i},a.prototype.remove=function(t){var e=this.get(t)||[];s(e)||(e=[e]);var n=this;l(e,function(t){var e=n._getOverlayContainer(t.element,!0);if(t&&(y(t.html),y(t.htmlContainer),delete t.htmlContainer,delete t.element,delete n._overlays[t.id]),e){var i=e.overlays.indexOf(t);-1!==i&&e.overlays.splice(i,1)}})},a.prototype.show=function(){o(this._overlayRoot)},a.prototype.hide=function(){o(this._overlayRoot,!1)},a.prototype._updateOverlayContainer=function(t){var e=t.element,n=t.html,i=e.x,o=e.y;if(e.waypoints){var a=v(e);i=a.x,o=a.y}r(n,i,o)},a.prototype._updateOverlay=function(t){var e=t.position,n=t.htmlContainer,i=t.element,o=e.left,a=e.top;if(void 0!==e.right){var s;s=i.waypoints?v(i).width:i.width,o=-1*e.right+s}if(void 0!==e.bottom){var c;c=i.waypoints?v(i).height:i.height,a=-1*e.bottom+c}r(n,o||0,a||0)},a.prototype._createOverlayContainer=function(t){var e=d('<div class="djs-overlays djs-overlays-'+t.id+'" style="position: absolute" />');this._overlayRoot.appendChild(e);var n={html:e,element:t,overlays:[]};return this._updateOverlayContainer(n),n},a.prototype._updateRoot=function(t){var e=t.scale||1,n=t.scale||1,i="matrix("+e+",0,0,"+n+","+-1*t.x*e+","+-1*t.y*n+")";this._overlayRoot.style.transform=i,this._overlayRoot.style["-ms-transform"]=i},a.prototype._getOverlayContainer=function(t,e){var n=t&&t.id||t,i=this._overlayContainers[n];return i||e||(i=this._overlayContainers[n]=this._createOverlayContainer(t)),i},a.prototype._addOverlay=function(t){var e,n,i=t.id,r=t.element,o=t.html;o.get&&(o=o.get(0)),c(o)&&(o=d(o)),n=this._getOverlayContainer(r),e=d('<div class="djs-overlay" data-overlay-id="'+i+'" style="position: absolute">'),e.appendChild(o),t.type&&m(e).add("djs-overlay-"+t.type),t.htmlContainer=e,n.overlays.push(t),n.html.appendChild(e),this._overlays[i]=t,this._updateOverlay(t)},a.prototype._updateOverlayVisibilty=function(t){l(this._overlays,function(e){var n=e.show,i=e.htmlContainer,r=!0;n&&((n.minZoom>t.scale||n.maxZoom<t.scale)&&(r=!1),o(i,r))})},a.prototype._init=function(t){var e=this._eventBus,n=this,i=function(t){n._updateRoot(t),n._updateOverlayVisibilty(t),n.show()};t&&t.deferUpdate===!1||(i=f(i,300)),e.on("canvas.viewbox.changed",function(t){n.hide(),i(t.viewbox)}),e.on(["shape.remove","connection.remove"],function(t){var e=n.get({element:t.element});l(e,function(t){n.remove(t.id)})}),e.on(["element.changed"],function(t){var e=t.element,i=n._getOverlayContainer(e,!0);i&&(l(i.overlays,function(t){n._updateOverlay(t)}),n._updateOverlayContainer(i))}),e.on("element.marker.update",function(t){var e=n._getOverlayContainer(t.element,!0);e&&m(e.html)[t.add?"add":"remove"](t.marker)})}},{177:177,181:181,202:202,204:204,214:214,316:316,320:320,322:322,325:325,339:339,343:343,347:347}],135:[function(t,e,n){e.exports={__init__:["overlays"],overlays:["type",t(134)]}},{134:134}],136:[function(t,e,n){"use strict";function i(t,e){this._eventBus=t,this._canvas=e,this._providers=[]}var r=t(317),o=t(204),a=t(343),s=t(346),c=t(338),u=t(340),p=t(339),l=t(345),h=t(342),f=t(344),d=".djs-palette-toggle",m=".entry",y=d+", "+m;i.$inject=["eventBus","canvas"],e.exports=i,i.prototype.registerProvider=function(t){this._providers.push(t),this._container||this._init(),this._update()},i.prototype.getEntries=function(){var t={};return o(this._providers,function(e){var n=e.getPaletteEntries();o(n,function(e,n){t[n]=e})}),t},i.prototype._init=function(){var t=this._canvas.getContainer(),e=this._container=a(i.HTML_MARKUP),n=this;t.appendChild(e),h.bind(e,y,"click",function(t){var e=t.delegateTarget;return l(e,d)?n.toggle():void n.trigger("click",t)}),f.bind(e,"mousedown",function(t){t.stopPropagation()}),h.bind(e,m,"dragstart",function(t){n.trigger("dragstart",t)}),this._eventBus.fire("palette.create",{html:e})},i.prototype._update=function(){var t=s(".djs-palette-entries",this._container),e=this._entries=this.getEntries();u(t),o(e,function(e,n){var i=e.group||"default",r=s("[data-group="+i+"]",t);r||(r=a('<div class="group" data-group="'+i+'"></div>'),t.appendChild(r));var o=e.html||(e.separator?'<hr class="separator" />':'<div class="entry" draggable="true"></div>'),u=a(o);r.appendChild(u),e.separator||(c(u,"data-action",n),e.title&&c(u,"title",e.title),e.className&&p(u).add(e.className),e.imageUrl&&u.appendChild(a('<img src="'+e.imageUrl+'">')))}),this.open(!0)},i.prototype.trigger=function(t,e,n){var i,o,a,s=this._entries,u=e.delegateTarget||e.target;if(!u)return e.preventDefault();if(i=s[c(u,"data-action")],o=i.action,a=e.originalEvent||e,r(o)){if("click"===t)return o(a,n)}else if(o[t])return o[t](a,n);e.preventDefault()},i.prototype.close=function(){p(this._container).remove("open")},i.prototype.open=function(){p(this._container).add("open")},i.prototype.toggle=function(t){
+this.isOpen()?this.close():this.open()},i.prototype.isOpen=function(){return this._container&&p(this._container).has("open")},i.HTML_MARKUP='<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>'},{204:204,317:317,338:338,339:339,340:340,342:342,343:343,344:344,345:345,346:346}],137:[function(t,e,n){e.exports={__init__:["palette"],palette:["type",t(136)]}},{136:136}],138:[function(t,e,n){"use strict";function i(t,e){this._eventBus=t,this._canvas=e,this._instances={}}var r=t(204),o=t(325),a=t(344),s=t(343),c=t(339),u=t(338),p=t(347);i.$inject=["eventBus","canvas"],e.exports=i,i.prototype.open=function(t,e,n,i){function l(){var p=this;p._actions={},p.name=t||"popup-menu";var l={entryClassName:"entry"};o(l,i);var h=this._container=s('<div class="djs-popup">');o(h.style,{position:"absolute",left:e.x+"px",top:e.y+"px"}),c(h).add(t),r(n,function(t){var e=s("<div>");c(e).add(t.className||l.entryClassName),c(e).add("djs-popup-entry"),t.style&&u(e,"style",t.style),t.action&&(u(e,"data-action",t.action.name),p._actions[t.action.name]=t.action.handler);var n=s("<span>");n.textContent=t.label,e.appendChild(n),h.appendChild(e)}),a.bind(h,"click",function(t){p.trigger(t)});var d=f.zoom();h.style.transformOrigin="top left",h.style.transform="scale("+d+")",m.appendChild(h),this.bindHandlers()}var h=this,f=this._canvas,d=h._instances;if(d[t])return d[t];var m=f.getContainer();l.prototype.close=function(){this.unbindHandlers(),p(this._container),delete h._instances[this.name]},l.prototype.bindHandlers=function(){var t=this,e=h._eventBus;this._closeHandler=function(){t.close()},e.once("contextPad.close",this._closeHandler),e.once("canvas.viewbox.changed",this._closeHandler)},l.prototype.unbindHandlers=function(){var t=h._eventBus;t.off("contextPad.close",this._closeHandler),t.off("canvas.viewbox.changed",this._closeHandler)},l.prototype.trigger=function(t){var e=t.target,n=e.getAttribute("data-action")||e.parentNode.getAttribute("data-action"),i=this._actions[n];i&&i(),t.preventDefault()};var y=h._instances[t]=new l(e,n,m,i);return y}},{204:204,325:325,338:338,339:339,343:343,344:344,347:347}],139:[function(t,e,n){"use strict";e.exports={__init__:["popupMenu"],popupMenu:["type",t(138)]}},{138:138}],140:[function(t,e,n){"use strict";function i(t){this._modeling=t}e.exports=i,i.$inject=["modeling"],i.prototype.replaceElement=function(t,e,n){var i=this._modeling,r=null;return t.waypoints||(e.x=t.x+(e.width||t.width)/2,e.y=t.y+(e.height||t.height)/2,r=i.replaceShape(t,e,n)),r}},{}],141:[function(t,e,n){"use strict";e.exports={__init__:["replace"],replace:["type",t(140)]}},{140:140}],142:[function(t,e,n){"use strict";function i(t,e,n,i,x,b,w){function E(t){var e=a(t,["newBounds","shape","delta","direction"]);return n.allowed("shape.resize",e)}function _(t){var e,n,i=t.shape,r=t.direction,a=t.minDimensions||{},c=t.childrenBoxPadding||20;return e=o(i.children,function(t){return t.waypoints?!1:"label"===t.type?!1:!0}),e.length?(n=u.getBBox(e),n.width+=2*c,n.height+=2*c,n.x-=c,n.y-=c):n=s.getMinResizeBounds(r,i,{width:a.width||10,height:a.height||10}),n}function S(t,e,n){w.activate(t,"resize",{autoActivate:!0,cursor:"resize-"+(/nw|se/.test(n)?"nwse":"nesw"),data:{shape:e,context:{direction:n,shape:e}}})}function T(t,e,n){function i(e){p(e)&&S(e,t,n)}c.bind(e.node,"mousedown",i),c.bind(e.node,"touchstart",i)}function A(t,e,n,i,r){var o=t.group().addClass(g).addClass(g+"-"+r),a=-d+f;o.rect(a,a,d,d).addClass(g+"-visual"),o.rect(a,a,m,m).addClass(g+"-hit");var s=(new h.Matrix).translate(e,n).rotate(i,0,0);return o.transform(s),o}function C(t,e,n){var i;i="nw"===n?A(e,0,0,0,n):"ne"===n?A(e,t.width,0,90,n):"se"===n?A(e,t.width,t.height,180,n):A(e,0,t.height,270,n),T(t,i,n)}function M(t){if(E({shape:t})){var n=e.getGraphics(t);C(t,n,"nw"),C(t,n,"ne"),C(t,n,"se"),C(t,n,"sw")}}function R(t){var n=e.getGraphics(t),i=n.selectAll("."+g);r(i,function(t){t.remove()})}var N={create:function(t){var e,n=x.getDefaultLayer(),i=t.shape;e=t.frame=h.create("rect",{"class":"djs-resize-overlay",width:i.width+10,height:i.height+10,x:i.x-5,y:i.y-5}),e.appendTo(n)},update:function(t){var e=t.frame,n=t.newBounds;n.width>5&&e.attr({x:n.x,width:n.width}),n.height>5&&e.attr({y:n.y,height:n.height}),e[t.canExecute?"removeClass":"addClass"](v)},remove:function(t){t.frame&&t.frame.remove()}};t.on("resize.start",function(t){var e=t.context,n=e.shape,i=e.minBoundaryBox;void 0===i&&(e.minBoundaryBox=_(e)),x.addMarker(n,y),N.create(e)}),t.on("resize.move",function(t){var e,n=t.context,i=n.shape,r=n.direction,o=n.minBoundaryBox;e={x:t.dx,y:t.dy},n.delta=e,n.newBounds=s.resizeBounds(i,r,e),o&&(n.newBounds=s.ensureMinBounds(n.newBounds,o)),n.canExecute=E(n),N.update(n)}),t.on("resize.end",function(t){var e=t.context,n=e.shape,r=e.newBounds;r.x=l(r.x),r.y=l(r.y),r.width=l(r.width),r.height=l(r.height),e.canExecute&&i.resizeShape(n,e.newBounds)}),t.on("resize.cleanup",function(t){var e=t.context,n=e.shape;x.removeMarker(n,y),N.remove(e)}),t.on("selection.changed",function(t){var e=t.oldSelection,n=t.newSelection;r(e,R),1===n.length&&r(n,M)}),t.on("shape.changed",function(t){var e=t.element;R(e),b.isSelected(e)&&M(e)}),this.activate=S}var r=t(204),o=t(202),a=t(330),s=t(143),c=t(344),u=t(177),p=t(182).isPrimaryButton,l=Math.round,h=t(188),f=-2,d=5,m=20,y="djs-resizing",v="resize-not-ok",g="djs-resizer";i.$inject=["eventBus","elementRegistry","rules","modeling","canvas","selection","dragging"],e.exports=i},{143:143,177:177,182:182,188:188,202:202,204:204,330:330,344:344}],143:[function(t,e,n){"use strict";e.exports.resizeBounds=function(t,e,n){var i=n.x,r=n.y;switch(e){case"nw":return{x:t.x+i,y:t.y+r,width:t.width-i,height:t.height-r};case"sw":return{x:t.x+i,y:t.y,width:t.width-i,height:t.height+r};case"ne":return{x:t.x,y:t.y+r,width:t.width+i,height:t.height-r};case"se":return{x:t.x,y:t.y,width:t.width+i,height:t.height+r};default:throw new Error("unrecognized direction: "+e)}},e.exports.reattachPoint=function(t,e,n){var i=t.width/e.width,r=t.height/e.height;return{x:Math.round(e.x+e.width/2)-Math.floor((t.x+t.width/2-n.x)/i),y:Math.round(e.y+e.height/2)-Math.floor((t.y+t.height/2-n.y)/r)}},e.exports.ensureMinBounds=function(t,e){var n={x:Math.min(t.x,e.x),y:Math.min(t.y,e.y)},i={x:Math.max(t.x+t.width,e.x+e.width),y:Math.max(t.y+t.height,e.y+e.height)};return{x:n.x,y:n.y,width:i.x-n.x,height:i.y-n.y}},e.exports.getMinResizeBounds=function(t,e,n){switch(t){case"nw":return{x:e.x+e.width-n.width,y:e.y+e.height-n.height,width:n.width,height:n.height};case"sw":return{x:e.x+e.width-n.width,y:e.y,width:n.width,height:n.height};case"ne":return{x:e.x,y:e.y+e.height-n.height,width:n.width,height:n.height};case"se":return{x:e.x,y:e.y,width:n.width,height:n.height};default:throw new Error("unrecognized direction: "+t)}}},{}],144:[function(t,e,n){e.exports={__depends__:[t(128),t(147),t(101)],__init__:["resize"],resize:["type",t(142)]}},{101:101,128:128,142:142,147:147}],145:[function(t,e,n){"use strict";function i(t){o.call(this,t),this.init()}var r=t(195),o=t(75);i.$inject=["eventBus"],r(i,o),e.exports=i,i.prototype.addRule=function(t,e){var n=this;"string"==typeof t&&(t=[t]),t.forEach(function(t){n.canExecute(t,function(t,n,i){return e(t)},!0)})}},{195:195,75:75}],146:[function(t,e,n){"use strict";function i(t){this._commandStack=t}i.$inject=["commandStack"],e.exports=i,i.prototype.allowed=function(t,e){var n=this._commandStack.canExecute(t,e);return void 0===n?!0:n}},{}],147:[function(t,e,n){e.exports={__depends__:[t(77)],__init__:["rules"],rules:["type",t(146)]}},{146:146,77:77}],148:[function(t,e,n){"use strict";function i(t){this._eventBus=t,this._selectedElements=[];var e=this;t.on(["shape.remove","connection.remove"],function(t){var n=t.element;e.deselect(n)})}var r=t(316),o=t(204);i.$inject=["eventBus"],e.exports=i,i.prototype.deselect=function(t){var e=this._selectedElements,n=e.indexOf(t);if(-1!==n){var i=e.slice();e.splice(n,1),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:e})}},i.prototype.get=function(){return this._selectedElements},i.prototype.isSelected=function(t){return-1!==this._selectedElements.indexOf(t)},i.prototype.select=function(t,e){var n=this._selectedElements,i=n.slice();r(t)||(t=t?[t]:[]),e?o(t,function(t){-1===n.indexOf(t)&&n.push(t)}):this._selectedElements=n=t.slice(),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:n})}},{204:204,316:316}],149:[function(t,e,n){"use strict";function i(t,e,n){t.on("create.end",500,function(t){t.context.canExecute&&e.select(t.shape)}),t.on("connect.end",500,function(t){t.context.canExecute&&t.context.target&&e.select(t.context.target)}),t.on("shape.move.end",500,function(t){e.select(t.context.shapes)}),t.on("element.click",function(t){var i=t.element;i===n.getRootElement()&&(i=null);var o=e.isSelected(i),a=e.get().length>1,s=r(t);return o&&a?s?e.deselect(i):e.select(i):void(o?e.deselect(i):e.select(i,s))})}var r=t(182).hasPrimaryModifier;i.$inject=["eventBus","selection","canvas"],e.exports=i},{182:182}],150:[function(t,e,n){"use strict";function i(t,e,n,i,s){function c(t,n){e.addMarker(t,n)}function u(t,n){e.removeMarker(t,n)}this._multiSelectionBox=null,t.on("element.hover",function(t){c(t.element,o)}),t.on("element.out",function(t){u(t.element,o)}),t.on("selection.changed",function(t){function e(t){u(t,a)}function n(t){c(t,a)}var i=t.oldSelection,o=t.newSelection;r(i,function(t){-1===o.indexOf(t)&&e(t)}),r(o,function(t){-1===i.indexOf(t)&&n(t)})})}var r=t(204),o="hover",a="selected";i.$inject=["eventBus","canvas","selection","graphicsFactory","styles"],e.exports=i},{204:204}],151:[function(t,e,n){e.exports={__init__:["selectionVisuals","selectionBehavior"],__depends__:[t(103),t(133)],selection:["type",t(148)],selectionVisuals:["type",t(150)],selectionBehavior:["type",t(149)]}},{103:103,133:133,148:148,149:149,150:150}],152:[function(t,e,n){"use strict";function i(){this._targets={},this._snapOrigins={},this._snapLocations=[],this._defaultSnaps={}}function r(t){this._snapValues={}}var o=t(204),a=t(153).snapTo;i.prototype.getSnapOrigin=function(t){return this._snapOrigins[t]},i.prototype.setSnapOrigin=function(t,e){this._snapOrigins[t]=e,-1===this._snapLocations.indexOf(t)&&this._snapLocations.push(t)},i.prototype.addDefaultSnap=function(t,e){var n=this._defaultSnaps[t];n||(n=this._defaultSnaps[t]=[]),n.push(e)},i.prototype.getSnapLocations=function(){return this._snapLocations},i.prototype.setSnapLocations=function(t){this._snapLocations=t},i.prototype.pointsForTarget=function(t){var e=t.id||t,n=this._targets[e];return n||(n=this._targets[e]=new r,n.initDefaults(this._defaultSnaps)),n},e.exports=i,r.prototype.add=function(t,e){var n=this._snapValues[t];n||(n=this._snapValues[t]={x:[],y:[]}),-1===n.x.indexOf(e.x)&&n.x.push(e.x),-1===n.y.indexOf(e.y)&&n.y.push(e.y)},r.prototype.snap=function(t,e,n,i){var r=this._snapValues[e];return r&&a(t[n],r[n],i)},r.prototype.initDefaults=function(t){var e=this;o(t||{},function(t,n){o(t,function(t){e.add(n,t)})})}},{153:153,204:204}],153:[function(t,e,n){"use strict";function i(t,e,n){n=void 0===n?10:n;var i,r;for(i=0;i<e.length;i++)if(r=e[i],s(r-t)<=n)return r}function r(t){return{x:t.x,y:t.y}}function o(t,e){return!t||isNaN(t.x)||isNaN(t.y)?e:{x:c(t.x+t.width/2),y:c(t.y+t.height/2)}}function a(t){return{x:t.x+t.width,y:t.y+t.height}}var s=Math.abs,c=Math.round;e.exports.snapTo=i,e.exports.topLeft=r,e.exports.mid=o,e.exports.bottomRight=a},{}],154:[function(t,e,n){"use strict";function i(t,e){this._canvas=e;var n=this;t.on(["shape.move.start","create.start"],function(t){n.initSnap(t)}),t.on(["shape.move.move","shape.move.end","create.move","create.end"],function(t){t.snapped||n.snap(t)}),t.on(["shape.move.cleanup","create.cleanup"],function(t){n.hide()}),this._asyncHide=a(this.hide,1e3)}var r=t(202),o=t(204),a=t(214),s=t(153).mid,c=t(152);i.$inject=["eventBus","canvas"],e.exports=i,i.prototype.initSnap=function(t){var e=t.context,n=e.shape,i=e.snapContext;i||(i=e.snapContext=new c);var r=s(n,t);return i.setSnapOrigin("mid",{x:r.x-t.x,y:r.y-t.y}),i},i.prototype.snap=function(t){var e=t.context,n=e.snapContext,i=e.shape,r=e.target,a=n.getSnapLocations();if(r){var s=n.pointsForTarget(r);s.initialized||(this.addTargetSnaps(s,i,r),s.initialized=!0);var c={};o(a,function(e){var i=n.getSnapOrigin(e),r={x:t.x+i.x,y:t.y+i.y};return o(["x","y"],function(t){var n;c[t]||(n=s.snap(r,e,t,7),void 0!==n&&(c[t]={value:n,originValue:n-i[t]}))}),c.x&&c.y?!1:void 0}),this.showSnapLine("vertical",c.x&&c.x.value),this.showSnapLine("horizontal",c.y&&c.y.value);var u,p;c.x&&(u=t.x-c.x.originValue,t.x=c.x.originValue,t.dx=t.dx-u,t.snapped=!0),c.y&&(p=t.y-c.y.originValue,t.y=c.y.originValue,t.dy=t.dy-p,t.snapped=!0)}},i.prototype._createLine=function(t){var e=this._canvas.getLayer("snap"),n=e.path("M0,0 L0,0").addClass("djs-snap-line");return{update:function(e){void 0===e?n.attr({display:"none"}):"horizontal"===t?n.attr({path:"M-100000,"+e+" L+100000,"+e,display:""}):n.attr({path:"M "+e+",-100000 L "+e+", +100000",display:""})}}},i.prototype._createSnapLines=function(){this._snapLines={horizontal:this._createLine("horizontal"),vertical:this._createLine("vertical")}},i.prototype.showSnapLine=function(t,e){var n=this.getSnapLine(t);n&&n.update(e),this._asyncHide()},i.prototype.getSnapLine=function(t){return this._snapLines||this._createSnapLines(),this._snapLines[t]},i.prototype.hide=function(){o(this._snapLines,function(t){t.update()})},i.prototype.addTargetSnaps=function(t,e,n){var i=this.getSiblings(e,n);o(i,function(e){t.add("mid",s(e))})},i.prototype.getSiblings=function(t,e){return e&&r(e.children,function(e){return!e.hidden&&!e.labelTarget&&!e.waypoints&&e!==t})}},{152:152,153:153,202:202,204:204,214:214}],155:[function(t,e,n){"use strict";function i(t,e,n,i,p){function l(t){var e={shape:t};return p.allowed("shape.resize",e)}function h(t,n){e.activate(t,"spaceTool.selection",{cursor:"crosshair",autoActivate:n,data:{context:{crosshair:{}}}})}function f(t){e.activate(t,"spaceTool",{autoActivate:!0,cursor:"crosshair",data:{context:{}}})}function d(t,e){var i=s(t.dx)>s(t.dy)?"x":"y",c=t["d"+i],u=t[i]-c,p=[],h=[];return s(c)<5?!1:(a(t)&&(c*=-1),n.forEach(function(t){var e=t[[i]],n=e+t[m[i]];if(t.parent&&!t.waypoints)return c>0&&e>u?p.push(t):0>c&&u>n?p.push(t):u>e&&n>u&&l(t)?h.push(t):void 0}),e.axis=i,e.direction=r.getDirection(i,c),e.movingShapes=p,e.resizingShapes=h,o.set("resize-"+("x"===i?"ew":"ns")),!0)}t.on("spaceTool.selection.end",function(t){setTimeout(function(){f(t.originalEvent)})});var m={x:"width",y:"height"},y={x:"y",y:"x"};t.on("spaceTool.move",u,function(t){var e=t.context;e.initialized||(e.initialized=d(t,e))}),t.on("spaceTool.end",function(t){var e=t.context,n=e.axis,r=e.direction,o=e.movingShapes,a=e.resizingShapes;if(e.initialized){var s={x:c(t.dx),y:c(t.dy)};return s[y[n]]=0,i.createSpace(o,a,s,r)}}),this.activateSelection=h,this.activateMakeSpace=f}var r=t(157),o=t(176),a=t(182).hasPrimaryModifier,s=Math.abs,c=Math.round,u=1500;i.$inject=["eventBus","dragging","elementRegistry","modeling","rules"],e.exports=i},{157:157,176:176,182:182}],156:[function(t,e,n){"use strict";function i(t,e,n,i){function a(t){return e.getGraphics(t)}function s(t,e){var n=a(t),r=n.clone(),o=n.getBBox();r.attr(i.cls("djs-dragger",[],{x:o.x,y:o.y})),e.add(r)}t.on("spaceTool.selection.start",function(t){var e=n.getLayer("space"),r=t.context,o={x:"M 0,-10000 L 0,10000",y:"M -10000,0 L 10000,0"},a=e.group().attr(i.cls("djs-crosshair-group",["no-events"]));a.path(o.x).addClass("djs-crosshair"),a.path(o.y).addClass("djs-crosshair"),r.crosshairGroup=a}),t.on("spaceTool.selection.move",function(t){var e=t.context.crosshairGroup;e.translate(t.x,t.y)}),t.on("spaceTool.selection.cleanup",function(t){var e=t.context,n=e.crosshairGroup;n&&n.remove()}),t.on("spaceTool.move",function(t){var e=t.context,a=e.line,c=e.axis,u=e.movingShapes;if(e.initialized){if(!e.dragGroup){var p=n.getLayer("space");a=p.path("M0,0 L0,0").addClass("djs-crosshair"),e.line=a;var l=n.getDefaultLayer().group().attr(i.cls("djs-drag-group",["no-events"]));r(u,function(t){s(t,l),n.addMarker(t,o)}),e.dragGroup=l}var h={x:"M"+t.x+", -10000 L"+t.x+", 10000",y:"M -10000, "+t.y+" L 10000, "+t.y};a.attr({path:h[c],display:""});var f={x:"y",y:"x"},d={x:t.dx,y:t.dy};d[f[e.axis]]=0,e.dragGroup.translate(d.x,d.y)}}),t.on("spaceTool.cleanup",function(t){var e=t.context,i=e.movingShapes,a=e.line,s=e.dragGroup;r(i,function(t){n.removeMarker(t,o)}),s&&(a.remove(),s.remove())})}var r=t(204),o="djs-dragging";i.$inject=["eventBus","elementRegistry","canvas","styles"],e.exports=i},{204:204}],157:[function(t,e,n){"use strict";function i(t,e){if("x"===t){if(e>0)return"e";if(0>e)return"w"}if("y"===t){if(e>0)return"s";if(0>e)return"n"}return null}e.exports.getDirection=i,e.exports.resizeBounds=function(t,e,n){var i=n.x,r=n.y;switch(e){case"n":return{x:t.x,y:t.y+r,width:t.width,height:t.height-r};case"s":return{x:t.x,y:t.y,width:t.width,height:t.height+r};case"w":return{x:t.x+i,y:t.y,width:t.width-i,height:t.height};case"e":return{x:t.x,y:t.y,width:t.width+i,height:t.height};default:throw new Error("unrecognized direction: "+e)}}},{}],158:[function(t,e,n){e.exports={__init__:["spaceToolVisuals"],__depends__:[t(101),t(128),t(147)],spaceTool:["type",t(155)],spaceToolVisuals:["type",t(156)]}},{101:101,128:128,147:147,155:155,156:156}],159:[function(t,e,n){"use strict";function i(t){var e=l('<div class="djs-tooltip-container" style="position: absolute; width: 0; height: 0;" />');return t.insertBefore(e,t.firstChild),e}function r(t,e,n){c(t.style,{left:e+"px",top:n+"px"})}function o(t,e){t.style.display=e===!1?"none":""}function a(t,e,n){this._eventBus=e,this._canvas=n,this._ids=y,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=i(n.getContainer());var r=this;m.bind(this._tooltipRoot,g,"mousedown",function(t){t.stopPropagation()}),m.bind(this._tooltipRoot,g,"mouseover",function(t){r.trigger("mouseover",t)}),m.bind(this._tooltipRoot,g,"mouseout",function(t){r.trigger("mouseout",t)}),this._init(t)}var s=t(322),c=t(325),u=t(204),p=t(214),l=t(343),h=t(338),f=t(339),d=t(347),m=t(342),y=new(t(181))("tt"),v="djs-tooltip",g="."+v;a.$inject=["config.tooltips","eventBus","canvas"],e.exports=a,a.prototype.add=function(t){if(!t.position)throw new Error("must specifiy tooltip position");if(!t.html)throw new Error("must specifiy tooltip html");var e=this._ids.next();return t=c({},this._tooltipDefaults,t,{id:e}),this._addTooltip(t),t.timeout&&this.setTimeout(t),e},a.prototype.trigger=function(t,e){var n=e.delegateTarget||e.target,i=this.get(h(n,"data-tooltip-id"));i&&("mouseover"===t&&i.timeout&&this.clearTimeout(i),"mouseout"===t&&i.timeout&&(i.timeout=1e3,this.setTimeout(i)),console.log("mouse leave",e))},a.prototype.get=function(t){return"string"!=typeof t&&(t=t.id),this._tooltips[t]},a.prototype.clearTimeout=function(t){if(t=this.get(t)){var e=t.removeTimer;e&&(clearTimeout(e),t.removeTimer=null)}},a.prototype.setTimeout=function(t){if(t=this.get(t)){this.clearTimeout(t);var e=this;t.removeTimer=setTimeout(function(){e.remove(t)},t.timeout)}},a.prototype.remove=function(t){var e=this.get(t);e&&(d(e.html),d(e.htmlContainer),delete e.htmlContainer,delete this._tooltips[e.id])},a.prototype.show=function(){o(this._tooltipRoot)},a.prototype.hide=function(){o(this._tooltipRoot,!1)},a.prototype._updateRoot=function(t){var e=t.scale||1,n=t.scale||1,i="matrix("+e+",0,0,"+n+","+-1*t.x*e+","+-1*t.y*n+")";this._tooltipRoot.style.transform=i,this._tooltipRoot.style["-ms-transform"]=i},a.prototype._addTooltip=function(t){var e,n=t.id,i=t.html,r=this._tooltipRoot;i.get&&(i=i.get(0)),s(i)&&(i=l(i)),e=l('<div data-tooltip-id="'+n+'" class="'+v+'" style="position: absolute">'),e.appendChild(i),t.type&&f(e).add("djs-tooltip-"+t.type),t.className&&f(e).add(t.className),t.htmlContainer=e,r.appendChild(e),this._tooltips[n]=t,this._updateTooltip(t)},a.prototype._updateTooltip=function(t){var e=t.position,n=t.htmlContainer;r(n,e.x,e.y)},a.prototype._updateTooltipVisibilty=function(t){u(this._tooltips,function(e){var n=e.show,i=e.htmlContainer,r=!0;n&&((n.minZoom>t.scale||n.maxZoom<t.scale)&&(r=!1),o(i,r))})},a.prototype._init=function(t){var e=this,n=function(t){e._updateRoot(t),e._updateTooltipVisibilty(t),e.show()};t&&t.deferUpdate===!1||(n=p(n,300)),this._eventBus.on("canvas.viewbox.changed",function(t){e.hide(),n(t.viewbox)})}},{181:181,204:204,214:214,322:322,325:325,338:338,339:339,342:342,343:343,347:347}],160:[function(t,e,n){e.exports={__init__:["tooltips"],tooltips:["type",t(159)]}},{159:159}],161:[function(t,e,n){"use strict";function i(t,e){var n=this;e.on("canvas.init",function(t){n.addBBoxMarker(t.svg)})}i.$inject=["canvas","eventBus"],e.exports=i,i.prototype.addBBoxMarker=function(t){var e={fill:"none","class":"outer-bound-marker"};t.rect(-1e4,-1e4,10,10).attr(e),t.rect(1e4,1e4,10,10).attr(e)}},{}],162:[function(t,e,n){"use strict";function i(){}function r(t,e){try{return e.get(t)}catch(n){return null}}function o(t){function e(t){h.stopEvent(t,!0)}function n(n){s(m,function(n){c.bind(t,n,e,!0)})}function r(n){setTimeout(function(){s(m,function(n){c.unbind(t,n,e,!0)})},500)}c.bind(t,"touchstart",n,!0),c.bind(t,"touchend",r,!0),c.bind(t,"touchcancel",r,!0);var o=new p.Manager(t,{inputClass:p.TouchInput,recognizers:[]}),a=new p.Tap,u=new p.Pan({threshold:10}),l=new p.Press,f=new p.Pinch,d=new p.Tap({event:"doubletap",taps:2});return f.requireFailure(u),f.requireFailure(l),o.add([u,l,f,d,a]),o.reset=function(t){var e=this.recognizers,n=this.session;n.stopped||(i("recognizer","stop"),o.stop(t),setTimeout(function(){var t,r;for(i("recognizer","reset"),t=0;r=e[t];t++)r.reset(),r.state=8;n.curRecognizer=null},0))},o.on("hammer.input",function(t){t.srcEvent.defaultPrevented&&o.reset(!0)}),o}function a(t,e,n,a,s,c){function p(t){return function(e){i("element",t,e),s.fire(t,e)}}function m(t){var e=u(t,"svg, .djs-element",!0);return e&&new l(e)}function y(t){function n(t){function n(t){var n=t.deltaX-o,i=t.deltaY-a;e.scroll({dx:n,dy:i}),o=t.deltaX,a=t.deltaY}function r(t){v.off("panmove",n),v.off("panend",r),v.off("pancancel",r),i("canvas","grab end")}i("canvas","grab start");var o=0,a=0;v.on("panmove",n),v.on("panend",r),v.on("pancancel",r)}function r(t){var r=m(t.target),o=r&&a.get(r);return x&&e.getRootElement()!==o?(i("element","move start",o,t,!0),x.start(t,o,!0)):void n(t)}function s(t){function n(t){var n=1-(1-t.scale)/1.5,i=Math.max(f,Math.min(d,n*o));e.zoom(i,a),h.stopEvent(t,!0)}function r(t){v.off("pinchmove",n),v.off("pinchend",r),v.off("pinchcancel",r),v.reset(!0),i("canvas","zoom end")}i("canvas","zoom start");var o=e.zoom(),a=t.center;v.on("pinchmove",n),v.on("pinchend",r),v.on("pinchcancel",r)}v=o(t),v.on("doubletap",p("element.dblclick")),v.on("tap",p("element.click")),v.on("panstart",r),v.on("press",r),v.on("pinchstart",s)}var v,g=r("dragging",t),x=r("move",t),b=r("contextPad",t),w=r("palette",t);g&&n.on("drag.move",function(t){var e=h.toPoint(t.originalEvent),n=document.elementFromPoint(e.x,e.y),i=m(n),r=i&&a.get(i);r!==t.hover&&(t.hover&&g.out(t),r&&(g.hover({element:r,gfx:i}),t.hover=r,t.hoverGfx=i))}),b&&n.on("contextPad.create",function(t){var e=t.pad.html,n=o(e);n.on("panstart",function(t){i("context-pad","panstart",t),b.trigger("dragstart",t,!0)}),n.on("press",function(t){i("context-pad","press",t),b.trigger("dragstart",t,!0)}),n.on("tap",function(t){i("context-pad","tap",t),b.trigger("click",t)})}),w&&n.on("palette.create",function(t){var e=t.html,n=o(e);n.on("panstart",function(t){i("palette","panstart",t),w.trigger("dragstart",t,!0)}),n.on("press",function(t){i("palette","press",t),w.trigger("dragstart",t,!0)}),n.on("tap",function(t){i("palette","tap",t),w.trigger("click",t)})}),n.on("canvas.init",function(t){y(t.svg.node)})}var s=t(204),c=t(344),u=t(341),p=t(186),l=t(188),h=t(178),f=.2,d=4,m=["mousedown","mouseup","mouseover","mouseout","click","dblclick"];a.$inject=["injector","canvas","eventBus","elementRegistry","interactionEvents","touchFix"],e.exports=a},{178:178,186:186,188:188,204:204,341:341,344:344}],163:[function(t,e,n){e.exports={__depends__:[t(103)],__init__:["touchInteractionEvents"],touchInteractionEvents:["type",t(162)],touchFix:["type",t(161)]}},{103:103,161:161,162:162}],164:[function(t,e,n){"use strict";function i(){}var r=t(166);e.exports=i,i.prototype.layoutConnection=function(t,e){return[r.getMidPoint(t.source),r.getMidPoint(t.target)]}},{166:166}],165:[function(t,e,n){"use strict";function i(t){return o({original:t.point.original||t.point},t.actual)}function r(t,e){this._elementRegistry=t,this._renderer=e}var o=t(325),a=t(166);r.$inject=["elementRegistry","renderer"],e.exports=r,r.prototype.getCroppedWaypoints=function(t,e,n){e=e||t.source,n=n||t.target;var r=this.getDockingPoint(t,e,!0),o=this.getDockingPoint(t,n),a=t.waypoints.slice(r.idx+1,o.idx);return a.unshift(i(r)),a.push(i(o)),a},r.prototype.getDockingPoint=function(t,e,n){var i,r,o,a=t.waypoints;return i=n?0:a.length-1,r=a[i],o=this._getIntersection(e,t,n),{point:r,actual:o||r,idx:i}},r.prototype._getIntersection=function(t,e,n){var i=this._getShapePath(t),r=this._getConnectionPath(e);return a.getElementLineIntersection(i,r,n)},r.prototype._getConnectionPath=function(t){return this._renderer.getConnectionPath(t)},r.prototype._getShapePath=function(t){return this._renderer.getShapePath(t)},r.prototype._getGfx=function(t){return this._elementRegistry.getGraphics(t)}},{166:166,325:325}],166:[function(t,e,n){"use strict";function i(t,e){switch(!0){case t.x===e.x:return"h";case t.y===e.y:return"v"}return!1}function r(t){return{x:Math.round(t.x),y:Math.round(t.y)}}function o(t,e){return t.x===e.x&&t.y===e.y}function a(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function s(t){return{top:t.y,right:t.x+(t.width||0),bottom:t.y+(t.height||0),left:t.x}}function c(t){return r({x:t.x+t.width/2,y:t.y+t.height/2})}function u(t,e,n){n=n||0;var i=s(t),r=s(e),o=i.bottom+n<=r.top,a=i.left-n>=r.right,c=i.top-n>=r.bottom,u=i.right+n<=r.left,p=o?"top":c?"bottom":null,l=u?"left":a?"right":null;return l&&p?p+"-"+l:l||p?l||p:"intersect"}function p(t,e,n,i){f(n)&&(i=n,n=0);var r=u(t,e,n);return-1!==i.indexOf(r)}function l(t,e,n){var i=h(t,e);return 1===i.length?r(i[0]):2===i.length&&a(i[0],i[1])<1?r(i[0]):i.length>1?(i=d(i,function(t){var e=Math.floor(100*t.t2)||1;return e=100-e,e=(10>e?"0":"")+e,t.segment2+"#"+e}),r(i[n?0:i.length-1])):null}function h(t,e){return m.path.intersection(t,e)}var f=t(316),d=t(211),m=t(188);e.exports.pointsAligned=i,e.exports.roundPoint=r,e.exports.pointsEqual=o,e.exports.pointDistance=a,e.exports.asTRBL=s,e.exports.getMidPoint=c,e.exports.getOrientation=u,e.exports.hasAnyOrientation=p,e.exports.getElementLineIntersection=l,e.exports.getIntersections=h},{188:188,211:211,316:316}],167:[function(t,e,n){"use strict";function i(t,e){return Math.max(t,e)}function r(t,e){return Math.min(t,e)}function o(t,e,n){return t>=e&&n>=t}var a=t(316),s=t(203),c=t(166),u=t(179),p=20;e.exports.getMidPoints=function(t,e,n){n=n||"h:h";var i,r;if("h:v"===n)return[{x:e.x,y:t.y}];if("v:h"===n)return[{x:t.x,y:e.y}];if("h:h"===n)return i=Math.round((e.x-t.x)/2+t.x),[{x:i,y:t.y},{x:i,y:e.y}];if("v:v"===n)return r=Math.round((e.y-t.y)/2+t.y),[{x:t.x,y:r},{x:e.x,y:r}];throw new Error("unknown directions: <"+n+">: directions must be specified as {a direction}:{b direction} (direction in h|v)")},e.exports.connectPoints=function(t,e,n){var i=[];return c.pointsAligned(t,e)||(i=this.getMidPoints(t,e,n)),i.unshift(t),i.push(e),i},e.exports.connectRectangles=function(t,e,n,i,r){r=r||{};var o=c.getOrientation(t,e,p),a=this.getDirections(t,e,r.preferVertical);if(n=n||c.getMidPoint(t),i=i||c.getMidPoint(e),a){if("h:h"===a)switch(o){case"top-right":case"right":case"bottom-right":n={original:n,x:t.x,y:n.y},i={original:i,x:e.x+e.width,y:i.y};break;case"top-left":case"left":case"bottom-left":n={original:n,x:t.x+t.width,y:n.y},i={original:i,x:e.x,y:i.y}}if("v:v"===a)switch(o){case"top-left":case"top":case"top-right":n={original:n,x:n.x,y:t.y+t.height},i={original:i,x:i.x,y:e.y};break;case"bottom-left":case"bottom":case"bottom-right":n={original:n,x:n.x,y:t.y},i={original:i,x:i.x,y:e.y+e.height}}return this.connectPoints(n,i,a)}},e.exports.repairConnection=function(t,e,n,i,r,o){a(n)&&(r=n,o=i,n=c.getMidPoint(t),i=c.getMidPoint(e)),o=o||{};var s;return!r||r.length<3?o.preferStraight&&(s=this.layoutStraight(t,e,n,i,o)):o.endChanged?(s=this._repairConnectionSide(e,t,i,r.slice().reverse()),s=s&&s.reverse()):s=o.startChanged?this._repairConnectionSide(t,e,n,r):r,s?s:this.connectRectangles(t,e,n,i,o)},e.exports.layoutStraight=function(t,e,n,a,s){var c,u,p,l,h,f;return c=i(t.x+10,e.x+10),u=r(t.x+t.width-10,e.x+e.width-10),u>c&&(t.width===e.width&&(s.endChanged&&o(a.x,c,u)?p=a.x:o(n.x,c,u)&&(p=n.x)),void 0===p&&(p=t.width<e.width&&o(n.x,c,u)?n.x:t.width>e.width&&o(a.x,c,u)?a.x:(c+u)/2)),l=i(t.y+10,e.y+10),h=r(t.y+t.height-10,e.y+e.height-10),h>l&&(t.height===e.height&&(s.endChanged&&o(a.y,l,h)?f=a.y:o(n.y,l,h)&&(f=n.y)),void 0===f&&(f=t.height<=e.height&&o(n.y,l,h)?n.y:e.height<=t.height&&o(a.y,l,h)?a.y:(l+h)/2)),void 0===p&&void 0===f?null:[{x:void 0!==p?p:n.x,y:void 0!==f?f:n.y},{x:void 0!==p?p:a.x,y:void 0!==f?f:a.y}]},e.exports._repairConnectionSide=function(t,e,n,i){function r(t,e,n){return n.length<3?!0:n.length>4?!1:!!s(n,function(t,e){var i=n[e-1];return i&&u.distance(t,i)<3})}function o(t,e,n){var i=c.pointsAligned(e,t);switch(i){case"v":return{x:t.x,y:n.y};case"h":return{x:n.x,y:t.y}}return{x:t.x,y:t.y}}function a(t,e,n){var i;for(i=t.length-2;0!==i;i--)if(u.pointInRect(t[i],e,p)||u.pointInRect(t[i],n,p))return t.slice(i);return t}if(r(t,e,i))return null;var l,h=i[0],f=i.slice();return f[0]=n,f[1]=o(f[1],h,n),l=a(f,t,e),l!==f?this._repairConnectionSide(t,e,n,l):f},e.exports.getDirections=function(t,e,n){var i=c.getOrientation(t,e,p);switch(i){case"intersect":return null;case"top":case"bottom":return"v:v";case"left":case"right":return"h:h";default:return n?"v:v":"h:h"}}},{166:166,179:179,203:203,316:316}],168:[function(t,e,n){"use strict";function i(){Object.defineProperty(this,"businessObject",{writable:!0}),l.bind(this,"parent"),h.bind(this,"label"),f.bind(this,"outgoing"),d.bind(this,"incoming")}function r(){i.call(this),l.bind(this,"children")}function o(){r.call(this)}function a(){r.call(this),h.bind(this,"labelTarget")}function s(){i.call(this),f.bind(this,"source"),d.bind(this,"target")}var c=t(325),u=t(195),p=t(356),l=new p({name:"children",enumerable:!0,collection:!0},{name:"parent"}),h=new p({name:"label",enumerable:!0},{name:"labelTarget"}),f=new p({name:"outgoing",collection:!0},{name:"source"}),d=new p({name:"incoming",collection:!0},{name:"target"});u(r,i),u(o,r),u(a,r),u(s,i);var m={connection:s,shape:r,label:a,root:o};e.exports.create=function(t,e){var n=m[t];if(!n)throw new Error("unknown type: <"+t+">");return c(new n,e)},e.exports.Base=i,e.exports.Root=o,e.exports.Shape=r,e.exports.Connection=s,e.exports.Label=a},{195:195,325:325,356:356}],169:[function(t,e,n){"use strict";function i(t,e){return{x:t.x-e.x,y:t.y-e.y}}function r(t){return Math.sqrt(Math.pow(t.x,2)+Math.pow(t.y,2))}function o(t,e){function n(t){var n=h.start,o=u.toPoint(t),c=i(o,n);if(!h.dragging&&r(c)>p&&(h.dragging=!0,s.install(),a.set("move")),h.dragging){var l=h.last||h.start;c=i(o,l),e.scroll({dx:c.x,dy:c.y}),h.last=o}t.preventDefault()}function o(t){c.unbind(document,"mousemove",n),c.unbind(document,"mouseup",o),h=null,a.unset(),u.stopEvent(t)}function l(t){t.button||t.ctrlKey||t.shiftKey||t.altKey||(h={start:u.toPoint(t)},c.bind(document,"mousemove",n),c.bind(document,"mouseup",o),u.stopEvent(t))}var h,f=e._container;c.bind(f,"mousedown",l)}var a=t(176),s=t(174),c=t(344),u=t(178),p=15;o.$inject=["eventBus","canvas"],e.exports=o},{174:174,176:176,178:178,344:344}],170:[function(t,e,n){e.exports={__init__:["moveCanvas"],moveCanvas:["type",t(169)]}},{169:169}],171:[function(t,e,n){
+e.exports={__depends__:[t(163)]}},{163:163}],172:[function(t,e,n){"use strict";function i(t,e){function n(t){return Math.max(l.min,Math.min(l.max,t))}function i(){e.zoom("fit-viewport")}function c(t,i){var r=e.zoom(),o=Math.pow(1+Math.abs(t),t>0?1:-1);e.zoom(n(r*o),i)}function u(t){e.scroll(t)}function p(t){r.bind(t,"wheel",function(e){e.preventDefault();var n,i=o(e),r=a(e);if(i||r){n=s?0===e.deltaMode?1.25:50:0===e.deltaMode?.025:.5;var p={};r?p.dx=n*(e.deltaX||e.deltaY):p.dy=n*e.deltaY,u(p)}else{n=0===e.deltaMode?.025:.5;var l=t.getBoundingClientRect(),h={x:e.clientX-l.left,y:e.clientY-l.top};c(e.deltaY*n/-5,h)}})}var l={min:.2,max:4};t.on("canvas.init",function(t){p(e._container)}),this.zoom=c,this.reset=i}var r=t(344),o=t(182).hasPrimaryModifier,a=t(182).hasSecondaryModifier,s=t(183).isMac;i.$inject=["eventBus","canvas"],e.exports=i},{182:182,183:183,344:344}],173:[function(t,e,n){e.exports={__init__:["zoomScroll"],zoomScroll:["type",t(172)]}},{172:172}],174:[function(t,e,n){"use strict";function i(t){s(t),r(!1)}function r(t){a[t?"bind":"unbind"](document.body,"click",i,!0)}function o(){return r(!0),function(){r(!1)}}var a=t(344),s=t(178).stopEvent;e.exports.install=o},{178:178,344:344}],175:[function(t,e,n){"use strict";e.exports.remove=function(t,e){if(t&&e){var n=t.indexOf(e);if(-1!==n)return t.splice(n,1),e}},e.exports.add=function(t,e,n){if(t&&e){isNaN(n)&&(n=-1);var i=t.indexOf(e);if(-1!==i){if(i===n)return;if(-1===n)return;t.splice(i,1)}-1!==n?t.splice(n,0,e):t.push(e)}},e.exports.indexOf=function(t,e){return t&&e?t.indexOf(e):-1}},{}],176:[function(t,e,n){"use strict";var i=t(339),r=/^djs-cursor-.*$/;e.exports.set=function(t){var e=i(document.body);e.removeMatching(r),t&&e.add("djs-cursor-"+t)},e.exports.unset=function(){this.set(null)}},{339:339}],177:[function(t,e,n){"use strict";function i(t,e,n){var i=!n||-1===t.indexOf(e);return i&&t.push(e),i}function r(t,e,n){n=n||0,d(t,function(t,i){var o=e(t,i,n);l(o)&&o.length&&r(o,e,n+1)})}function o(t,e,n){var o=[],a=[];return r(t,function(t,r,s){i(o,t,e);var c=t.children;return(-1===n||n>s)&&c&&i(a,c,e)?c:void 0}),o}function a(t,e){return o(t,!e,1)}function s(t,e){return o(t,!e,-1)}function c(t){function e(t){i[t.source.id]&&i[t.target.id]&&(i[t.id]=t),o[t.source.id]&&o[t.target.id]&&(c[t.id]=s[t.id]=t),a[t.id]=t}function n(t){return s[t.id]=t,t.waypoints?void(c[t.id]=a[t.id]=t):(o[t.id]=t,d(t.incoming,e),d(t.outgoing,e),t.children)}var i=f(t,function(t){return t.id}),o={},a={},s={},c={};return r(t,n),{allShapes:o,allConnections:a,topLevel:i,enclosedConnections:c,enclosedElements:s}}function u(t,e){e=!!e,l(t)||(t=[t]);var n,i,r,o;return d(t,function(t){var a=t;t.waypoints&&!e&&(a=u(t.waypoints,!0));var s=a.x,c=a.y,p=a.height||0,l=a.width||0;(n>s||void 0===n)&&(n=s),(i>c||void 0===i)&&(i=c),(s+l>r||void 0===r)&&(r=s+l),(c+p>o||void 0===o)&&(o=c+p)}),{x:n,y:i,height:o-i,width:r-n}}function p(t,e){var n={};return d(t,function(t){var i=t;i.waypoints&&(i=u(i)),!h(e.y)&&i.x>e.x&&(n[t.id]=t),!h(e.x)&&i.y>e.y&&(n[t.id]=t),i.x>e.x&&i.y>e.y&&(h(e.width)&&h(e.height)&&i.width+i.x<e.width+e.x&&i.height+i.y<e.height+e.y?n[t.id]=t:h(e.width)&&h(e.height)||(n[t.id]=t))}),n}var l=t(316),h=t(319),f=t(205),d=t(204);e.exports.eachElement=r,e.exports.selfAndDirectChildren=a,e.exports.selfAndAllChildren=s,e.exports.getBBox=u,e.exports.getEnclosedElements=p,e.exports.getClosure=c},{204:204,205:205,316:316,319:319}],178:[function(t,e,n){"use strict";function i(t){return t&&t.preventDefault()}function r(t,e){t&&(t.stopPropagation&&t.stopPropagation(),e&&t.stopImmediatePropagation&&t.stopImmediatePropagation())}function o(t){return t.originalEvent||t.srcEvent}function a(t,e){c(t,e),s(t)}function s(t){i(t),i(o(t))}function c(t,e){r(t,e),r(o(t),e)}function u(t){return t.pointers&&t.pointers.length&&(t=t.pointers[0]),t.touches&&t.touches.length&&(t=t.touches[0]),t?{x:t.clientX,y:t.clientY}:null}e.exports.getOriginal=o,e.exports.stopEvent=a,e.exports.preventDefault=s,e.exports.stopPropagation=c,e.exports.toPoint=u},{}],179:[function(t,e,n){"use strict";var i=e.exports.distance=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))};e.exports.pointsOnLine=function(t,e,n){if(!t||!e||!n)return!1;var r=(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x),o=i(t,e);return Math.abs(r/o)<5},e.exports.pointInRect=function(t,e,n){return n=n||0,t.x>e.x-n&&t.y>e.y-n&&t.x<e.x+e.width+n&&t.y<e.y+e.height+n}},{}],180:[function(t,e,n){"use strict";function i(t){return t.select(".djs-visual")}function r(t){return t.parent().children()[1]}function o(t){return i(t).select("*").getBBox()}e.exports.getVisual=i,e.exports.getChildren=r,e.exports.getBBox=o},{}],181:[function(t,e,n){"use strict";function i(t){this._counter=0,this._prefix=(t?t+"-":"")+Math.floor(1e9*Math.random())+"-"}e.exports=i,i.prototype.next=function(){return this._prefix+ ++this._counter}},{}],182:[function(t,e,n){"use strict";function i(t){return!(r(t)||t).button}var r=t(178).getOriginal,o=t(183).isMac;e.exports.isPrimaryButton=i,e.exports.isMac=o,e.exports.hasPrimaryModifier=function(t){var e=r(t)||t;return i(t)?o()?e.altKey:e.ctrlKey:!1},e.exports.hasSecondaryModifier=function(t){var e=r(t)||t;return i(t)&&e.shiftKey}},{178:178,183:183}],183:[function(t,e,n){"use strict";e.exports.isMac=function(){return/mac/i.test(navigator.platform)}},{}],184:[function(t,e,n){"use strict";function i(t){var e=t.split("-");return{horizontal:e[0]||"center",vertical:e[1]||"top"}}function r(t){return l(t)?h({top:0,left:0,right:0,bottom:0},t):{top:t,left:t,right:t,bottom:t}}function o(t,e){return e.textContent=t,e.getBBox()}function a(t,e,n){for(var i,r=t.shift(),a=r;;){if(i=o(a,n),i.width=a?i.width:0," "===a||""===a||i.width<Math.round(e)||a.length<4)return s(t,a,r,i);a=u(a,i.width,e)}}function s(t,e,n,i){if(e.length<n.length){var r=t[0]||"",o=n.slice(e.length).trim();r=/-\s*$/.test(o)?o.replace(/-\s*$/,"")+r.replace(/^\s+/,""):o+" "+r,t[0]=r}return{width:i.width,height:i.height,text:e}}function c(t,e){var n,i=t.split(/(\s|-)/g),r=[],o=0;if(i.length>1)for(;n=i.shift();){if(!(n.length+o<e)){"-"===n&&r.pop();break}r.push(n),o+=n.length}return r.join("")}function u(t,e,n){var i=Math.max(t.length*(n/e),1),r=c(t,i);return r||(r=t.slice(0,Math.max(Math.round(i-1),1))),r}function p(t){this._config=h({},{size:g,padding:v,style:{},align:"center-top"},t||{})}var l=t(320),h=t(325),f=t(204),d=t(208),m=t(328),y=t(188),v=0,g={width:150,height:50};p.prototype.createText=function(t,e,n){for(var o=m({},this._config.size,n.box||{}),s=m({},this._config.style,n.style||{}),c=i(n.align||this._config.align),u=r(void 0!==n.padding?n.padding:this._config.padding),p=e.split(/\r?\n/g),l=[],h=o.width-u.left-u.right,v=t.paper.text(0,0,"").attr(s).node;p.length;)l.push(a(p,h,v));var g,x,b=d(l,function(t,e,n){return t+e.height},0);switch(c.vertical){case"middle":g=(o.height-b)/2-l[0].height/4;break;default:g=u.top}var w=t.text().attr(s);return f(l,function(t){switch(g+=t.height,c.horizontal){case"left":x=u.left;break;case"right":x=h-u.right-t.width;break;default:x=Math.max((h-t.width)/2+u.left,0)}var e=y.create("tspan",{x:x,y:g}).node;e.textContent=t.text,w.append(e)}),v.parentNode.removeChild(v),w},e.exports=p},{188:188,204:204,208:208,320:320,325:325,328:328}],185:[function(e,n,i){!function(e){var i,r,o="0.4.2",a="hasOwnProperty",s=/[\.\/]/,c=/\s*,\s*/,u="*",p=function(t,e){return t-e},l={n:{}},h=function(){for(var t=0,e=this.length;e>t;t++)if("undefined"!=typeof this[t])return this[t]},f=function(){for(var t=this.length;--t;)if("undefined"!=typeof this[t])return this[t]},d=function(t,e){t=String(t);var n,o=r,a=Array.prototype.slice.call(arguments,2),s=d.listeners(t),c=0,u=[],l={},m=[],y=i;m.firstDefined=h,m.lastDefined=f,i=t,r=0;for(var v=0,g=s.length;g>v;v++)"zIndex"in s[v]&&(u.push(s[v].zIndex),s[v].zIndex<0&&(l[s[v].zIndex]=s[v]));for(u.sort(p);u[c]<0;)if(n=l[u[c++]],m.push(n.apply(e,a)),r)return r=o,m;for(v=0;g>v;v++)if(n=s[v],"zIndex"in n)if(n.zIndex==u[c]){if(m.push(n.apply(e,a)),r)break;do if(c++,n=l[u[c]],n&&m.push(n.apply(e,a)),r)break;while(n)}else l[n.zIndex]=n;else if(m.push(n.apply(e,a)),r)break;return r=o,i=y,m};d._events=l,d.listeners=function(t){var e,n,i,r,o,a,c,p,h=t.split(s),f=l,d=[f],m=[];for(r=0,o=h.length;o>r;r++){for(p=[],a=0,c=d.length;c>a;a++)for(f=d[a].n,n=[f[h[r]],f[u]],i=2;i--;)e=n[i],e&&(p.push(e),m=m.concat(e.f||[]));d=p}return m},d.on=function(t,e){if(t=String(t),"function"!=typeof e)return function(){};for(var n=t.split(c),i=0,r=n.length;r>i;i++)!function(t){for(var n,i=t.split(s),r=l,o=0,a=i.length;a>o;o++)r=r.n,r=r.hasOwnProperty(i[o])&&r[i[o]]||(r[i[o]]={n:{}});for(r.f=r.f||[],o=0,a=r.f.length;a>o;o++)if(r.f[o]==e){n=!0;break}!n&&r.f.push(e)}(n[i]);return function(t){+t==+t&&(e.zIndex=+t)}},d.f=function(t){var e=[].slice.call(arguments,1);return function(){d.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},d.stop=function(){r=1},d.nt=function(t){return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(i):i},d.nts=function(){return i.split(s)},d.off=d.unbind=function(t,e){if(!t)return void(d._events=l={n:{}});var n=t.split(c);if(n.length>1)for(var i=0,r=n.length;r>i;i++)d.off(n[i],e);else{n=t.split(s);var o,p,h,i,r,f,m,y=[l];for(i=0,r=n.length;r>i;i++)for(f=0;f<y.length;f+=h.length-2){if(h=[f,1],o=y[f].n,n[i]!=u)o[n[i]]&&h.push(o[n[i]]);else for(p in o)o[a](p)&&h.push(o[p]);y.splice.apply(y,h)}for(i=0,r=y.length;r>i;i++)for(o=y[i];o.n;){if(e){if(o.f){for(f=0,m=o.f.length;m>f;f++)if(o.f[f]==e){o.f.splice(f,1);break}!o.f.length&&delete o.f}for(p in o.n)if(o.n[a](p)&&o.n[p].f){var v=o.n[p].f;for(f=0,m=v.length;m>f;f++)if(v[f]==e){v.splice(f,1);break}!v.length&&delete o.n[p].f}}else{delete o.f;for(p in o.n)o.n[a](p)&&o.n[p].f&&delete o.n[p].f}o=o.n}}},d.once=function(t,e){var n=function(){return d.unbind(t,n),e.apply(this,arguments)};return d.on(t,n)},d.version=o,d.toString=function(){return"You are running Eve "+o},"undefined"!=typeof n&&n.exports?n.exports=d:"function"==typeof t&&t.amd?t("eve",[],function(){return d}):e.eve=d}(this)},{}],186:[function(e,n,i){!function(e,i,r,o){"use strict";function a(t,e,n){return setTimeout(h(t,n),e)}function s(t,e,n){return Array.isArray(t)?(c(t,n[e],n),!0):!1}function c(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==o)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function u(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===o)&&(t[i[r]]=e[i[r]]),r++;return t}function p(t,e){return u(t,e,!0)}function l(t,e,n){var i,r=e.prototype;i=t.prototype=Object.create(r),i.constructor=t,i._super=r,n&&u(i,n)}function h(t,e){return function(){return t.apply(e,arguments)}}function f(t,e){return typeof t==ht?t.apply(e?e[0]||o:o,e):t}function d(t,e){return t===o?e:t}function m(t,e,n){c(x(e),function(e){t.addEventListener(e,n,!1)})}function y(t,e,n){c(x(e),function(e){t.removeEventListener(e,n,!1)})}function v(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function g(t,e){return t.indexOf(e)>-1}function x(t){return t.trim().split(/\s+/g)}function b(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function w(t){return Array.prototype.slice.call(t,0)}function E(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];b(r,a)<0&&i.push(t[o]),r[o]=a,o++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function _(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),a=0;a<pt.length;){if(n=pt[a],i=n?n+r:e,i in t)return i;a++}return o}function S(){return yt++}function T(t){var e=t.ownerDocument;return e.defaultView||e.parentWindow}function A(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){f(t.options.enable,[t])&&n.handler(e)},this.init()}function C(t){var e,n=t.options.inputClass;return new(e=n?n:xt?V:bt?W:gt?q:$)(t,M)}function M(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&At&&i-r===0,a=e&(Mt|Rt)&&i-r===0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,R(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function R(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=k(e)),r>1&&!n.firstMultiple?n.firstMultiple=k(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,c=e.center=D(i);e.timeStamp=mt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=L(s,c),e.distance=I(s,c),N(n,e),e.offsetDirection=B(e.deltaX,e.deltaY),e.scale=a?F(a.pointers,i):1,e.rotation=a?j(a.pointers,i):0,P(n,e);var u=t.element;v(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}function N(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};(e.eventType===At||o.eventType===Mt)&&(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}function P(t,e){var n,i,r,a,s=t.lastInterval||e,c=e.timeStamp-s.timeStamp;if(e.eventType!=Rt&&(c>Tt||s.velocity===o)){var u=s.deltaX-e.deltaX,p=s.deltaY-e.deltaY,l=O(c,u,p);i=l.x,r=l.y,n=dt(l.x)>dt(l.y)?l.x:l.y,a=B(u,p),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,a=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=a}function k(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:ft(t.pointers[n].clientX),clientY:ft(t.pointers[n].clientY)},n++;return{timeStamp:mt(),pointers:e,center:D(e),deltaX:t.deltaX,deltaY:t.deltaY}}function D(t){var e=t.length;if(1===e)return{x:ft(t[0].clientX),y:ft(t[0].clientY)};for(var n=0,i=0,r=0;e>r;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:ft(n/e),y:ft(i/e)}}function O(t,e,n){return{x:e/t||0,y:n/t||0}}function B(t,e){return t===e?Nt:dt(t)>=dt(e)?t>0?Pt:kt:e>0?Dt:Ot}function I(t,e,n){n||(n=jt);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function L(t,e,n){n||(n=jt);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function j(t,e){return L(e[1],e[0],Ft)-L(t[1],t[0],Ft)}function F(t,e){return I(e[0],e[1],Ft)/I(t[0],t[1],Ft)}function $(){this.evEl=Vt,this.evWin=Gt,this.allow=!0,this.pressed=!1,A.apply(this,arguments)}function V(){this.evEl=Ut,this.evWin=qt,A.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function G(){this.evTarget=Yt,this.evWin=Xt,this.started=!1,A.apply(this,arguments)}function z(t,e){var n=w(t.touches),i=w(t.changedTouches);return e&(Mt|Rt)&&(n=E(n.concat(i),"identifier",!0)),[n,i]}function W(){this.evTarget=Zt,this.targetIds={},A.apply(this,arguments)}function U(t,e){var n=w(t.touches),i=this.targetIds;if(e&(At|Ct)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=w(t.changedTouches),s=[],c=this.target;if(o=n.filter(function(t){return v(t.target,c)}),e===At)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<a.length;)i[a[r].identifier]&&s.push(a[r]),e&(Mt|Rt)&&delete i[a[r].identifier],r++;return s.length?[E(o.concat(s),"identifier",!0),s]:void 0}function q(){A.apply(this,arguments);var t=h(this.handler,this);this.touch=new W(this.manager,t),this.mouse=new $(this.manager,t)}function H(t,e){this.manager=t,this.set(e)}function Y(t){if(g(t,ie))return ie;var e=g(t,re),n=g(t,oe);return e&&n?re+" "+oe:e||n?e?re:oe:g(t,ne)?ne:ee}function X(t){this.id=S(),this.manager=null,this.options=p(t||{},this.defaults),this.options.enable=d(this.options.enable,!0),this.state=ae,this.simultaneous={},this.requireFail=[]}function K(t){return t&le?"cancel":t&ue?"end":t&ce?"move":t&se?"start":""}function Z(t){return t==Ot?"down":t==Dt?"up":t==Pt?"left":t==kt?"right":""}function Q(t,e){var n=e.manager;return n?n.get(t):t}function J(){X.apply(this,arguments)}function tt(){J.apply(this,arguments),this.pX=null,this.pY=null}function et(){J.apply(this,arguments)}function nt(){X.apply(this,arguments),this._timer=null,this._input=null}function it(){J.apply(this,arguments)}function rt(){J.apply(this,arguments)}function ot(){X.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function at(t,e){return e=e||{},e.recognizers=d(e.recognizers,at.defaults.preset),new st(t,e)}function st(t,e){e=e||{},this.options=p(e,at.defaults),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=C(this),this.touchAction=new H(this,this.options.touchAction),ct(this,!0),c(e.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function ct(t,e){var n=t.element;c(t.options.cssProps,function(t,i){n.style[_(n.style,i)]=e?t:""})}function ut(t,e){var n=i.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var pt=["","webkit","moz","MS","ms","o"],lt=i.createElement("div"),ht="function",ft=Math.round,dt=Math.abs,mt=Date.now,yt=1,vt=/mobile|tablet|ip(ad|hone|od)|android/i,gt="ontouchstart"in e,xt=_(e,"PointerEvent")!==o,bt=gt&&vt.test(navigator.userAgent),wt="touch",Et="pen",_t="mouse",St="kinect",Tt=25,At=1,Ct=2,Mt=4,Rt=8,Nt=1,Pt=2,kt=4,Dt=8,Ot=16,Bt=Pt|kt,It=Dt|Ot,Lt=Bt|It,jt=["x","y"],Ft=["clientX","clientY"];A.prototype={handler:function(){},init:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(T(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&y(this.element,this.evEl,this.domHandler),this.evTarget&&y(this.target,this.evTarget,this.domHandler),this.evWin&&y(T(this.element),this.evWin,this.domHandler)}};var $t={mousedown:At,mousemove:Ct,mouseup:Mt},Vt="mousedown",Gt="mousemove mouseup";l($,A,{handler:function(t){var e=$t[t.type];e&At&&0===t.button&&(this.pressed=!0),e&Ct&&1!==t.which&&(e=Mt),this.pressed&&this.allow&&(e&Mt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:_t,srcEvent:t}))}});var zt={pointerdown:At,pointermove:Ct,pointerup:Mt,pointercancel:Rt,pointerout:Rt},Wt={2:wt,3:Et,4:_t,5:St},Ut="pointerdown",qt="pointermove pointerup pointercancel";e.MSPointerEvent&&(Ut="MSPointerDown",qt="MSPointerMove MSPointerUp MSPointerCancel"),l(V,A,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=zt[i],o=Wt[t.pointerType]||t.pointerType,a=o==wt,s=b(e,t.pointerId,"pointerId");r&At&&(0===t.button||a)?0>s&&(e.push(t),s=e.length-1):r&(Mt|Rt)&&(n=!0),0>s||(e[s]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var Ht={touchstart:At,touchmove:Ct,touchend:Mt,touchcancel:Rt},Yt="touchstart",Xt="touchstart touchmove touchend touchcancel";l(G,A,{handler:function(t){var e=Ht[t.type];if(e===At&&(this.started=!0),this.started){var n=z.call(this,t,e);e&(Mt|Rt)&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:wt,srcEvent:t})}}});var Kt={touchstart:At,touchmove:Ct,touchend:Mt,touchcancel:Rt},Zt="touchstart touchmove touchend touchcancel";l(W,A,{handler:function(t){var e=Kt[t.type],n=U.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:wt,srcEvent:t})}}),l(q,A,{handler:function(t,e,n){var i=n.pointerType==wt,r=n.pointerType==_t;if(i)this.mouse.allow=!1;else if(r&&!this.mouse.allow)return;e&(Mt|Rt)&&(this.mouse.allow=!0),this.callback(t,e,n)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Qt=_(lt.style,"touchAction"),Jt=Qt!==o,te="compute",ee="auto",ne="manipulation",ie="none",re="pan-x",oe="pan-y";H.prototype={set:function(t){t==te&&(t=this.compute()),Jt&&(this.manager.element.style[Qt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return c(this.manager.recognizers,function(e){f(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),Y(t.join(" "))},preventDefaults:function(t){if(!Jt){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var i=this.actions,r=g(i,ie),o=g(i,oe),a=g(i,re);return r||o&&n&Bt||a&&n&It?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ae=1,se=2,ce=4,ue=8,pe=ue,le=16,he=32;X.prototype={defaults:{},set:function(t){return u(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(s(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=Q(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return s(t,"dropRecognizeWith",this)?this:(t=Q(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(s(t,"requireFailure",this))return this;var e=this.requireFail;return t=Q(t,this),-1===b(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(s(t,"dropRequireFailure",this))return this;t=Q(t,this);var e=b(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(n.options.event+(e?K(i):""),t)}var n=this,i=this.state;ue>i&&e(!0),e(),i>=ue&&e(!0)},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=he)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(he|ae)))return!1;t++}return!0},recognize:function(t){var e=u({},t);return f(this.options.enable,[this,e])?(this.state&(pe|le|he)&&(this.state=ae),this.state=this.process(e),void(this.state&(se|ce|ue|le)&&this.tryEmit(e))):(this.reset(),void(this.state=he))},process:function(t){},getTouchAction:function(){},reset:function(){}},l(J,X,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(se|ce),r=this.attrTest(t);return i&&(n&Rt||!r)?e|le:i||r?n&Mt?e|ue:e&se?e|ce:se:he}}),l(tt,J,{defaults:{event:"pan",threshold:10,pointers:1,direction:Lt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Bt&&e.push(oe),t&It&&e.push(re),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,a=t.deltaY;return r&e.direction||(e.direction&Bt?(r=0===o?Nt:0>o?Pt:kt,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===a?Nt:0>a?Dt:Ot,n=a!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return J.prototype.attrTest.call(this,t)&&(this.state&se||!(this.state&se)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Z(t.direction);e&&this.manager.emit(this.options.event+e,t),this._super.emit.call(this,t)}}),l(et,J,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ie]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&se)},emit:function(t){if(this._super.emit.call(this,t),1!==t.scale){var e=t.scale<1?"in":"out";this.manager.emit(this.options.event+e,t)}}}),l(nt,X,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[ee]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(Mt|Rt)&&!r)this.reset();else if(t.eventType&At)this.reset(),this._timer=a(function(){this.state=pe,this.tryEmit()},e.time,this);else if(t.eventType&Mt)return pe;return he},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===pe&&(t&&t.eventType&Mt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=mt(),this.manager.emit(this.options.event,this._input)))}}),l(it,J,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ie]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&se)}}),l(rt,J,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:Bt|It,pointers:1},getTouchAction:function(){return tt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Bt|It)?e=t.velocity:n&Bt?e=t.velocityX:n&It&&(e=t.velocityY),this._super.attrTest.call(this,t)&&n&t.direction&&t.distance>this.options.threshold&&dt(e)>this.options.velocity&&t.eventType&Mt},emit:function(t){var e=Z(t.direction);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),l(ot,X,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[ne]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&At&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=Mt)return this.failTimeout();var o=this.pTime?t.timeStamp-this.pTime<e.interval:!0,s=!this.pCenter||I(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t;var c=this.count%e.taps;if(0===c)return this.hasRequireFailures()?(this._timer=a(function(){this.state=pe,this.tryEmit()},e.interval,this),se):pe}return he},failTimeout:function(){return this._timer=a(function(){this.state=he},this.options.interval,this),he},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==pe&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),at.VERSION="2.0.4",at.defaults={domEvents:!1,touchAction:te,enable:!0,inputTarget:null,inputClass:null,preset:[[it,{enable:!1}],[et,{enable:!1},["rotate"]],[rt,{direction:Bt}],[tt,{direction:Bt},["swipe"]],[ot],[ot,{event:"doubletap",taps:2},["tap"]],[nt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var fe=1,de=2;st.prototype={set:function(t){return u(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?de:fe},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,i=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&pe)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],e.stopped===de||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(se|ce|ue)&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof X)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(s(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(s(t,"remove",this))return this;var e=this.recognizers;return t=this.get(t),e.splice(b(e,t),1),this.touchAction.update(),this},on:function(t,e){var n=this.handlers;return c(x(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this},off:function(t,e){var n=this.handlers;return c(x(t),function(t){e?n[t].splice(b(n[t],e),1):delete n[t]}),this},emit:function(t,e){this.options.domEvents&&ut(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&ct(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(at,{INPUT_START:At,INPUT_MOVE:Ct,INPUT_END:Mt,INPUT_CANCEL:Rt,STATE_POSSIBLE:ae,STATE_BEGAN:se,STATE_CHANGED:ce,STATE_ENDED:ue,STATE_RECOGNIZED:pe,STATE_CANCELLED:le,STATE_FAILED:he,DIRECTION_NONE:Nt,DIRECTION_LEFT:Pt,DIRECTION_RIGHT:kt,DIRECTION_UP:Dt,DIRECTION_DOWN:Ot,DIRECTION_HORIZONTAL:Bt,DIRECTION_VERTICAL:It,DIRECTION_ALL:Lt,Manager:st,Input:A,TouchAction:H,TouchInput:W,MouseInput:$,PointerEventInput:V,TouchMouseInput:q,SingleTouchInput:G,Recognizer:X,AttrRecognizer:J,Tap:ot,Pan:tt,Swipe:rt,Pinch:et,Rotate:it,Press:nt,on:m,off:y,each:c,merge:p,extend:u,inherit:l,bindFn:h,prefixed:_}),typeof t==ht&&t.amd?t(function(){return at}):"undefined"!=typeof n&&n.exports?n.exports=at:e[r]=at}(window,document,"Hammer")},{}],187:[function(e,n,i){!function(r,o){if("function"==typeof t&&t.amd)t(["eve"],function(t){return o(r,t)});else if("undefined"!=typeof i){var a=e(185);n.exports=o(r,a)}else o(r,r.eve)}(window||this,function(t,e){var n=function(e){var n={},i=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(t){setTimeout(t,16)},r=Array.isArray||function(t){return t instanceof Array||"[object Array]"==Object.prototype.toString.call(t)},o=0,a="M"+(+new Date).toString(36),s=function(){return a+(o++).toString(36)},c=Date.now||function(){return+new Date},u=function(t){var e=this;if(null==t)return e.s;var n=e.s-t;e.b+=e.dur*n,e.B+=e.dur*n,e.s=t},p=function(t){var e=this;return null==t?e.spd:void(e.spd=t)},l=function(t){var e=this;return null==t?e.dur:(e.s=e.s*t/e.dur,void(e.dur=t))},h=function(){var t=this;delete n[t.id],t.update(),e("mina.stop."+t.id,t)},f=function(){var t=this;t.pdif||(delete n[t.id],t.update(),t.pdif=t.get()-t.b)},d=function(){var t=this;t.pdif&&(t.b=t.get()-t.pdif,delete t.pdif,n[t.id]=t)},m=function(){var t,e=this;if(r(e.start)){t=[];for(var n=0,i=e.start.length;i>n;n++)t[n]=+e.start[n]+(e.end[n]-e.start[n])*e.easing(e.s)}else t=+e.start+(e.end-e.start)*e.easing(e.s);e.set(t)},y=function(){var t=0;for(var r in n)if(n.hasOwnProperty(r)){var o=n[r],a=o.get();t++,o.s=(a-o.b)/(o.dur/o.spd),o.s>=1&&(delete n[r],o.s=1,t--,function(t){setTimeout(function(){e("mina.finish."+t.id,t)})}(o)),o.update()}t&&i(y)},v=function(t,e,r,o,a,c,g){var x={id:s(),start:t,end:e,b:r,s:0,dur:o-r,spd:1,get:a,set:c,easing:g||v.linear,status:u,speed:p,duration:l,stop:h,pause:f,resume:d,update:m};n[x.id]=x;var b,w=0;for(b in n)if(n.hasOwnProperty(b)&&(w++,2==w))break;return 1==w&&i(y),x};return v.time=c,v.getById=function(t){return n[t]||null},v.linear=function(t){return t},v.easeout=function(t){return Math.pow(t,1.7)},v.easein=function(t){return Math.pow(t,.48)},v.easeinout=function(t){if(1==t)return 1;if(0==t)return 0;var e=.48-t/1.04,n=Math.sqrt(.1734+e*e),i=n-e,r=Math.pow(Math.abs(i),1/3)*(0>i?-1:1),o=-n-e,a=Math.pow(Math.abs(o),1/3)*(0>o?-1:1),s=r+a+.5;return 3*(1-s)*s*s+s*s*s},v.backin=function(t){if(1==t)return 1;var e=1.70158;return t*t*((e+1)*t-e)},v.backout=function(t){if(0==t)return 0;t-=1;var e=1.70158;return t*t*((e+1)*t+e)+1},v.elastic=function(t){return t==!!t?t:Math.pow(2,-10*t)*Math.sin(2*(t-.075)*Math.PI/.3)+1},v.bounce=function(t){var e,n=7.5625,i=2.75;return 1/i>t?e=n*t*t:2/i>t?(t-=1.5/i,e=n*t*t+.75):2.5/i>t?(t-=2.25/i,e=n*t*t+.9375):(t-=2.625/i,e=n*t*t+.984375),e},t.mina=v,v}("undefined"==typeof e?function(){}:e),i=function(t){function n(t,e){if(t){if(t.tagName)return E(t);if(r(t,"array")&&n.set)return n.set.apply(n,t);if(t instanceof v)return t;if(null==e)return t=_.doc.querySelector(t),E(t)}return t=null==t?"100%":t,e=null==e?"100%":e,new w(t,e)}function i(t,e){if(e){if("#text"==t&&(t=_.doc.createTextNode(e.text||"")),"string"==typeof t&&(t=i(t)),"string"==typeof e)return"xlink:"==e.substring(0,6)?t.getAttributeNS(W,e.substring(6)):"xml:"==e.substring(0,4)?t.getAttributeNS(U,e.substring(4)):t.getAttribute(e);for(var n in e)if(e[S](n)){var r=T(e[n]);r?"xlink:"==n.substring(0,6)?t.setAttributeNS(W,n.substring(6),r):"xml:"==n.substring(0,4)?t.setAttributeNS(U,n.substring(4),r):t.setAttribute(n,r):t.removeAttribute(n)}}else t=_.doc.createElementNS(U,t);return t}function r(t,e){return e=T.prototype.toLowerCase.call(e),"finite"==e?isFinite(t):"array"==e&&(t instanceof Array||Array.isArray&&Array.isArray(t))?!0:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||O.call(t).slice(8,-1).toLowerCase()==e}function o(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var n in t)t[S](n)&&(e[n]=o(t[n]));return e}function a(t,e){
+for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return t.push(t.splice(n,1)[0])}function s(t,e,n){function i(){var r=Array.prototype.slice.call(arguments,0),o=r.join("␀"),s=i.cache=i.cache||{},c=i.count=i.count||[];return s[S](o)?(a(c,o),n?n(s[o]):s[o]):(c.length>=1e3&&delete s[c.shift()],c.push(o),s[o]=t.apply(e,r),n?n(s[o]):s[o])}return i}function c(t,e,n,i,r,o){if(null==r){var a=t-n,s=e-i;return a||s?(180+180*M.atan2(-s,-a)/k+360)%360:0}return c(t,e,r,o)-c(n,i,r,o)}function u(t){return t%360*k/180}function p(t){return 180*t/k%360}function l(t){var e=[];return t=t.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(t,n,i){return i=i.split(/\s*,\s*|\s+/),"rotate"==n&&1==i.length&&i.push(0,0),"scale"==n&&(i.length>2?i=i.slice(0,2):2==i.length&&i.push(0,0),1==i.length&&i.push(i[0],0,0)),"skewX"==n?e.push(["m",1,0,M.tan(u(i[0])),1,0,0]):"skewY"==n?e.push(["m",1,M.tan(u(i[0])),0,1,0,0]):e.push([n.charAt(0)].concat(i)),t}),e}function h(t,e){var i=J(t),r=new n.Matrix;if(i)for(var o=0,a=i.length;a>o;o++){var s,c,u,p,l,h=i[o],f=h.length,d=T(h[0]).toLowerCase(),m=h[0]!=d,y=m?r.invert():0;"t"==d&&2==f?r.translate(h[1],0):"t"==d&&3==f?m?(s=y.x(0,0),c=y.y(0,0),u=y.x(h[1],h[2]),p=y.y(h[1],h[2]),r.translate(u-s,p-c)):r.translate(h[1],h[2]):"r"==d?2==f?(l=l||e,r.rotate(h[1],l.x+l.width/2,l.y+l.height/2)):4==f&&(m?(u=y.x(h[2],h[3]),p=y.y(h[2],h[3]),r.rotate(h[1],u,p)):r.rotate(h[1],h[2],h[3])):"s"==d?2==f||3==f?(l=l||e,r.scale(h[1],h[f-1],l.x+l.width/2,l.y+l.height/2)):4==f?m?(u=y.x(h[2],h[3]),p=y.y(h[2],h[3]),r.scale(h[1],h[1],u,p)):r.scale(h[1],h[1],h[2],h[3]):5==f&&(m?(u=y.x(h[3],h[4]),p=y.y(h[3],h[4]),r.scale(h[1],h[2],u,p)):r.scale(h[1],h[2],h[3],h[4])):"m"==d&&7==f&&r.add(h[1],h[2],h[3],h[4],h[5],h[6])}return r}function f(t){var e=t.node.ownerSVGElement&&E(t.node.ownerSVGElement)||t.node.parentNode&&E(t.node.parentNode)||n.select("svg")||n(0,0),i=e.select("defs"),r=null==i?!1:i.node;return r||(r=b("defs",e.node).node),r}function d(t){return t.node.ownerSVGElement&&E(t.node.ownerSVGElement)||n.select("svg")}function m(t,e,n){function r(t){if(null==t)return D;if(t==+t)return t;i(u,{width:t});try{return u.getBBox().width}catch(e){return 0}}function o(t){if(null==t)return D;if(t==+t)return t;i(u,{height:t});try{return u.getBBox().height}catch(e){return 0}}function a(i,r){null==e?c[i]=r(t.attr(i)||0):i==e&&(c=r(null==n?t.attr(i)||0:n))}var s=d(t).node,c={},u=s.querySelector(".svg---mgr");switch(u||(u=i("rect"),i(u,{x:-9e9,y:-9e9,width:10,height:10,"class":"svg---mgr",fill:"none"}),s.appendChild(u)),t.type){case"rect":a("rx",r),a("ry",o);case"image":a("width",r),a("height",o);case"text":a("x",r),a("y",o);break;case"circle":a("cx",r),a("cy",o),a("r",r);break;case"ellipse":a("cx",r),a("cy",o),a("rx",r),a("ry",o);break;case"line":a("x1",r),a("x2",r),a("y1",o),a("y2",o);break;case"marker":a("refX",r),a("markerWidth",r),a("refY",o),a("markerHeight",o);break;case"radialGradient":a("fx",r),a("fy",o);break;case"tspan":a("dx",r),a("dy",o);break;default:a(e,r)}return s.removeChild(u),c}function y(t){r(t,"array")||(t=Array.prototype.slice.call(arguments,0));for(var e=0,n=0,i=this.node;this[e];)delete this[e++];for(e=0;e<t.length;e++)"set"==t[e].type?t[e].forEach(function(t){i.appendChild(t.node)}):i.appendChild(t[e].node);var o=i.childNodes;for(e=0;e<o.length;e++)this[n++]=E(o[e]);return this}function v(t){if(t.snap in q)return q[t.snap];var e;try{e=t.ownerSVGElement}catch(n){}this.node=t,e&&(this.paper=new w(e)),this.type=t.tagName;var i=this.id=z(this);if(this.anims={},this._={transform:[]},t.snap=i,q[i]=this,"g"==this.type&&(this.add=y),this.type in{g:1,mask:1,pattern:1,symbol:1})for(var r in w.prototype)w.prototype[S](r)&&(this[r]=w.prototype[r])}function x(t){this.node=t}function b(t,e){var n=i(t);e.appendChild(n);var r=E(n);return r}function w(t,e){var n,r,o,a=w.prototype;if(t&&"svg"==t.tagName){if(t.snap in q)return q[t.snap];var s=t.ownerDocument;n=new v(t),r=t.getElementsByTagName("desc")[0],o=t.getElementsByTagName("defs")[0],r||(r=i("desc"),r.appendChild(s.createTextNode("Created with Snap")),n.node.appendChild(r)),o||(o=i("defs"),n.node.appendChild(o)),n.defs=o;for(var c in a)a[S](c)&&(n[c]=a[c]);n.paper=n.root=n}else n=b("svg",_.doc.body),i(n.node,{height:e,version:1.1,width:t,xmlns:U});return n}function E(t){return t?t instanceof v||t instanceof x?t:t.tagName&&"svg"==t.tagName.toLowerCase()?new w(t):t.tagName&&"object"==t.tagName.toLowerCase()&&"image/svg+xml"==t.type?new w(t.contentDocument.getElementsByTagName("svg")[0]):new v(t):t}n.version="0.3.0",n.toString=function(){return"Snap v"+this.version},n._={};var _={win:t.window,doc:t.window.document};n._.glob=_;var S="hasOwnProperty",T=String,A=parseFloat,C=parseInt,M=Math,R=M.max,N=M.min,P=M.abs,k=(M.pow,M.PI),D=(M.round,""),O=Object.prototype.toString,B=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,I=(n._.separator=/[,\s]+/,/[\s]*,[\s]*/),L={hs:1,rg:1},j=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,F=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,$=/(-?\d*\.?\d*(?:e[\-+]?\\d+)?)[\s]*,?[\s]*/gi,V=0,G="S"+(+new Date).toString(36),z=function(t){return(t&&t.type?t.type:D)+G+(V++).toString(36)},W="http://www.w3.org/1999/xlink",U="http://www.w3.org/2000/svg",q={};n.url=function(t){return"url('#"+t+"')"};n._.$=i,n._.id=z,n.format=function(){var t=/\{([^\}]+)\}/g,e=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,n=function(t,n,i){var r=i;return n.replace(e,function(t,e,n,i,o){e=e||i,r&&(e in r&&(r=r[e]),"function"==typeof r&&o&&(r=r()))}),r=(null==r||r==i?t:r)+""};return function(e,i){return T(e).replace(t,function(t,e){return n(t,e,i)})}}(),n._.clone=o,n._.cacher=s,n.rad=u,n.deg=p,n.angle=c,n.is=r,n.snapTo=function(t,e,n){if(n=r(n,"finite")?n:10,r(t,"array")){for(var i=t.length;i--;)if(P(t[i]-e)<=n)return t[i]}else{t=+t;var o=e%t;if(n>o)return e-o;if(o>t-n)return e-o+t}return e},n.getRGB=s(function(t){if(!t||(t=T(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:K};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:K};if(!(L[S](t.toLowerCase().substring(0,2))||"#"==t.charAt())&&(t=H(t)),!t)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:K};var e,i,o,a,s,c,u=t.match(B);return u?(u[2]&&(o=C(u[2].substring(5),16),i=C(u[2].substring(3,5),16),e=C(u[2].substring(1,3),16)),u[3]&&(o=C((s=u[3].charAt(3))+s,16),i=C((s=u[3].charAt(2))+s,16),e=C((s=u[3].charAt(1))+s,16)),u[4]&&(c=u[4].split(I),e=A(c[0]),"%"==c[0].slice(-1)&&(e*=2.55),i=A(c[1]),"%"==c[1].slice(-1)&&(i*=2.55),o=A(c[2]),"%"==c[2].slice(-1)&&(o*=2.55),"rgba"==u[1].toLowerCase().slice(0,4)&&(a=A(c[3])),c[3]&&"%"==c[3].slice(-1)&&(a/=100)),u[5]?(c=u[5].split(I),e=A(c[0]),"%"==c[0].slice(-1)&&(e/=100),i=A(c[1]),"%"==c[1].slice(-1)&&(i/=100),o=A(c[2]),"%"==c[2].slice(-1)&&(o/=100),("deg"==c[0].slice(-3)||"°"==c[0].slice(-1))&&(e/=360),"hsba"==u[1].toLowerCase().slice(0,4)&&(a=A(c[3])),c[3]&&"%"==c[3].slice(-1)&&(a/=100),n.hsb2rgb(e,i,o,a)):u[6]?(c=u[6].split(I),e=A(c[0]),"%"==c[0].slice(-1)&&(e/=100),i=A(c[1]),"%"==c[1].slice(-1)&&(i/=100),o=A(c[2]),"%"==c[2].slice(-1)&&(o/=100),("deg"==c[0].slice(-3)||"°"==c[0].slice(-1))&&(e/=360),"hsla"==u[1].toLowerCase().slice(0,4)&&(a=A(c[3])),c[3]&&"%"==c[3].slice(-1)&&(a/=100),n.hsl2rgb(e,i,o,a)):(e=N(M.round(e),255),i=N(M.round(i),255),o=N(M.round(o),255),a=N(R(a,0),1),u={r:e,g:i,b:o,toString:K},u.hex="#"+(16777216|o|i<<8|e<<16).toString(16).slice(1),u.opacity=r(a,"finite")?a:1,u)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:K}},n),n.hsb=s(function(t,e,i){return n.hsb2rgb(t,e,i).hex}),n.hsl=s(function(t,e,i){return n.hsl2rgb(t,e,i).hex}),n.rgb=s(function(t,e,n,i){if(r(i,"finite")){var o=M.round;return"rgba("+[o(t),o(e),o(n),+i.toFixed(2)]+")"}return"#"+(16777216|n|e<<8|t<<16).toString(16).slice(1)});var H=function(t){var e=_.doc.getElementsByTagName("head")[0]||_.doc.getElementsByTagName("svg")[0],n="rgb(255, 0, 0)";return(H=s(function(t){if("red"==t.toLowerCase())return n;e.style.color=n,e.style.color=t;var i=_.doc.defaultView.getComputedStyle(e,D).getPropertyValue("color");return i==n?null:i}))(t)},Y=function(){return"hsb("+[this.h,this.s,this.b]+")"},X=function(){return"hsl("+[this.h,this.s,this.l]+")"},K=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},Z=function(t,e,i){if(null==e&&r(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(i=t.b,e=t.g,t=t.r),null==e&&r(t,string)){var o=n.getRGB(t);t=o.r,e=o.g,i=o.b}return(t>1||e>1||i>1)&&(t/=255,e/=255,i/=255),[t,e,i]},Q=function(t,e,i,o){t=M.round(255*t),e=M.round(255*e),i=M.round(255*i);var a={r:t,g:e,b:i,opacity:r(o,"finite")?o:1,hex:n.rgb(t,e,i),toString:K};return r(o,"finite")&&(a.opacity=o),a};n.color=function(t){var e;return r(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=n.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):r(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=n.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):(r(t,"string")&&(t=n.getRGB(t)),r(t,"object")&&"r"in t&&"g"in t&&"b"in t&&!("error"in t)?(e=n.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=n.rgb2hsb(t),t.v=e.b):(t={hex:"none"},t.r=t.g=t.b=t.h=t.s=t.v=t.l=-1,t.error=1)),t.toString=K,t},n.hsb2rgb=function(t,e,n,i){r(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,t=t.h,i=t.o),t*=360;var o,a,s,c,u;return t=t%360/60,u=n*e,c=u*(1-P(t%2-1)),o=a=s=n-u,t=~~t,o+=[u,c,0,0,c,u][t],a+=[c,u,u,c,0,0][t],s+=[0,0,c,u,u,c][t],Q(o,a,s,i)},n.hsl2rgb=function(t,e,n,i){r(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(t>1||e>1||n>1)&&(t/=360,e/=100,n/=100),t*=360;var o,a,s,c,u;return t=t%360/60,u=2*e*(.5>n?n:1-n),c=u*(1-P(t%2-1)),o=a=s=n-u/2,t=~~t,o+=[u,c,0,0,c,u][t],a+=[c,u,u,c,0,0][t],s+=[0,0,c,u,u,c][t],Q(o,a,s,i)},n.rgb2hsb=function(t,e,n){n=Z(t,e,n),t=n[0],e=n[1],n=n[2];var i,r,o,a;return o=R(t,e,n),a=o-N(t,e,n),i=0==a?null:o==t?(e-n)/a:o==e?(n-t)/a+2:(t-e)/a+4,i=(i+360)%6*60/360,r=0==a?0:a/o,{h:i,s:r,b:o,toString:Y}},n.rgb2hsl=function(t,e,n){n=Z(t,e,n),t=n[0],e=n[1],n=n[2];var i,r,o,a,s,c;return a=R(t,e,n),s=N(t,e,n),c=a-s,i=0==c?null:a==t?(e-n)/c:a==e?(n-t)/c+2:(t-e)/c+4,i=(i+360)%6*60/360,o=(a+s)/2,r=0==c?0:.5>o?c/(2*o):c/(2-2*o),{h:i,s:r,l:o,toString:X}},n.parsePathString=function(t){if(!t)return null;var e=n.path(t);if(e.arr)return n.path.clone(e.arr);var i={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},o=[];return r(t,"array")&&r(t[0],"array")&&(o=n.path.clone(t)),o.length||T(t).replace(j,function(t,e,n){var r=[],a=e.toLowerCase();if(n.replace($,function(t,e){e&&r.push(+e)}),"m"==a&&r.length>2&&(o.push([e].concat(r.splice(0,2))),a="l",e="m"==e?"l":"L"),"o"==a&&1==r.length&&o.push([e,r[0]]),"r"==a)o.push([e].concat(r));else for(;r.length>=i[a]&&(o.push([e].concat(r.splice(0,i[a]))),i[a]););}),o.toString=n.path.toString,e.arr=n.path.clone(o),o};var J=n.parseTransformString=function(t){if(!t)return null;var e=[];return r(t,"array")&&r(t[0],"array")&&(e=n.path.clone(t)),e.length||T(t).replace(F,function(t,n,i){var r=[];n.toLowerCase();i.replace($,function(t,e){e&&r.push(+e)}),e.push([n].concat(r))}),e.toString=n.path.toString,e};n._.svgTransform2string=l,n._.rgTransform=/^[a-z][\s]*-?\.?\d/i,n._.transform2matrix=h,n._unit2px=m;_.doc.contains||_.doc.compareDocumentPosition?function(t,e){var n=9==t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t==i||!(!i||1!=i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e;)if(e=e.parentNode,e==t)return!0;return!1};n._.getSomeDefs=f,n._.getSomeSVG=d,n.select=function(t){return t=T(t).replace(/([^\\]):/g,"$1\\:"),E(_.doc.querySelector(t))},n.selectAll=function(t){for(var e=_.doc.querySelectorAll(t),i=(n.set||Array)(),r=0;r<e.length;r++)i.push(E(e[r]));return i},setInterval(function(){for(var t in q)if(q[S](t)){var e=q[t],n=e.node;("svg"!=e.type&&!n.ownerSVGElement||"svg"==e.type&&(!n.parentNode||"ownerSVGElement"in n.parentNode&&!n.ownerSVGElement))&&delete q[t]}},1e4),v.prototype.attr=function(t,n){var i=this;i.node;if(!t)return i;if(r(t,"string")){if(!(arguments.length>1))return e("snap.util.getattr."+t,i).firstDefined();var o={};o[t]=n,t=o}for(var a in t)t[S](a)&&e("snap.util.attr."+a,i,t[a]);return i},n.parse=function(t){var e=_.doc.createDocumentFragment(),n=!0,i=_.doc.createElement("div");if(t=T(t),t.match(/^\s*<\s*svg(?:\s|>)/)||(t="<svg>"+t+"</svg>",n=!1),i.innerHTML=t,t=i.getElementsByTagName("svg")[0])if(n)e=t;else{for(;t.firstChild;)e.appendChild(t.firstChild);i.innerHTML=D}return new x(e)},n.fragment=function(){for(var t=Array.prototype.slice.call(arguments,0),e=_.doc.createDocumentFragment(),i=0,r=t.length;r>i;i++){var o=t[i];o.node&&o.node.nodeType&&e.appendChild(o.node),o.nodeType&&e.appendChild(o),"string"==typeof o&&e.appendChild(n.parse(o).node)}return new x(e)},n._.make=b,n._.wrap=E,w.prototype.el=function(t,e){var n=b(t,this.node);return e&&n.attr(e),n},e.on("snap.util.getattr",function(){var t=e.nt();t=t.substring(t.lastIndexOf(".")+1);var n=t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()});return tt[S](n)?this.node.ownerDocument.defaultView.getComputedStyle(this.node,null).getPropertyValue(n):i(this.node,t)});var tt={"alignment-baseline":0,"baseline-shift":0,clip:0,"clip-path":0,"clip-rule":0,color:0,"color-interpolation":0,"color-interpolation-filters":0,"color-profile":0,"color-rendering":0,cursor:0,direction:0,display:0,"dominant-baseline":0,"enable-background":0,fill:0,"fill-opacity":0,"fill-rule":0,filter:0,"flood-color":0,"flood-opacity":0,font:0,"font-family":0,"font-size":0,"font-size-adjust":0,"font-stretch":0,"font-style":0,"font-variant":0,"font-weight":0,"glyph-orientation-horizontal":0,"glyph-orientation-vertical":0,"image-rendering":0,kerning:0,"letter-spacing":0,"lighting-color":0,marker:0,"marker-end":0,"marker-mid":0,"marker-start":0,mask:0,opacity:0,overflow:0,"pointer-events":0,"shape-rendering":0,"stop-color":0,"stop-opacity":0,stroke:0,"stroke-dasharray":0,"stroke-dashoffset":0,"stroke-linecap":0,"stroke-linejoin":0,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":0,"text-decoration":0,"text-rendering":0,"unicode-bidi":0,visibility:0,"word-spacing":0,"writing-mode":0};e.on("snap.util.attr",function(t){var n=e.nt(),r={};n=n.substring(n.lastIndexOf(".")+1),r[n]=t;var o=n.replace(/-(\w)/gi,function(t,e){return e.toUpperCase()}),a=n.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()});tt[S](a)?this.node.style[o]=null==t?D:t:i(this.node,r)}),function(t){}(w.prototype),n.ajax=function(t,n,i,o){var a=new XMLHttpRequest,s=z();if(a){if(r(n,"function"))o=i,i=n,n=null;else if(r(n,"object")){var c=[];for(var u in n)n.hasOwnProperty(u)&&c.push(encodeURIComponent(u)+"="+encodeURIComponent(n[u]));n=c.join("&")}return a.open(n?"POST":"GET",t,!0),n&&(a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.setRequestHeader("Content-type","application/x-www-form-urlencoded")),i&&(e.once("snap.ajax."+s+".0",i),e.once("snap.ajax."+s+".200",i),e.once("snap.ajax."+s+".304",i)),a.onreadystatechange=function(){4==a.readyState&&e("snap.ajax."+s+"."+a.status,o,a)},4==a.readyState?a:(a.send(n),a)}},n.load=function(t,e,i){n.ajax(t,function(t){var r=n.parse(t.responseText);i?e.call(i,r):e(r)})};var et=function(t){var e=t.getBoundingClientRect(),n=t.ownerDocument,i=n.body,r=n.documentElement,o=r.clientTop||i.clientTop||0,a=r.clientLeft||i.clientLeft||0,s=e.top+(g.win.pageYOffset||r.scrollTop||i.scrollTop)-o,c=e.left+(g.win.pageXOffset||r.scrollLeft||i.scrollLeft)-a;return{y:s,x:c}};return n.getElementByPoint=function(t,e){var n=this,i=(n.canvas,_.doc.elementFromPoint(t,e));if(_.win.opera&&"svg"==i.tagName){var r=et(i),o=i.createSVGRect();o.x=t-r.x,o.y=e-r.y,o.width=o.height=1;var a=i.getIntersectionList(o,null);a.length&&(i=a[a.length-1])}return i?E(i):null},n.plugin=function(t){t(n,v,w,_,x)},_.win.Snap=n,n}(t||this);return i.plugin(function(i,r,o,a,s){function c(t,e){if(null==e){var n=!0;if(e="linearGradient"==t.type||"radialGradient"==t.type?t.node.getAttribute("gradientTransform"):"pattern"==t.type?t.node.getAttribute("patternTransform"):t.node.getAttribute("transform"),!e)return new i.Matrix;e=i._.svgTransform2string(e)}else e=i._.rgTransform.test(e)?d(e).replace(/\.{3}|\u2026/g,t._.transform||E):i._.svgTransform2string(e),f(e,"array")&&(e=i.path?i.path.toString.call(e):d(e)),t._.transform=e;var r=i._.transform2matrix(e,t.getBBox(1));return n?r:void(t.matrix=r)}function u(t){function e(t,e){var n=y(t.node,e);n=n&&n.match(o),n=n&&n[2],n&&"#"==n.charAt()&&(n=n.substring(1),n&&(s[n]=(s[n]||[]).concat(function(n){var i={};i[e]=URL(n),y(t.node,i)})))}function n(t){var e=y(t.node,"xlink:href");e&&"#"==e.charAt()&&(e=e.substring(1),e&&(s[e]=(s[e]||[]).concat(function(e){t.attr("xlink:href","#"+e)})))}for(var i,r=t.selectAll("*"),o=/^\s*url\(("|'|)(.*)\1\)\s*$/,a=[],s={},c=0,u=r.length;u>c;c++){i=r[c],e(i,"fill"),e(i,"stroke"),e(i,"filter"),e(i,"mask"),e(i,"clip-path"),n(i);var p=y(i.node,"id");p&&(y(i.node,{id:i.id}),a.push({old:p,id:i.id}))}for(c=0,u=a.length;u>c;c++){var l=s[a[c].old];if(l)for(var h=0,f=l.length;f>h;h++)l[h](a[c].id)}}function p(t,e,n){return function(i){var r=i.slice(t,e);return 1==r.length&&(r=r[0]),n?n(r):r}}function l(t){return function(){var e=t?"<"+this.type:"",n=this.node.attributes,i=this.node.childNodes;if(t)for(var r=0,o=n.length;o>r;r++)e+=" "+n[r].name+'="'+n[r].value.replace(/"/g,'\\"')+'"';if(i.length){for(t&&(e+=">"),r=0,o=i.length;o>r;r++)3==i[r].nodeType?e+=i[r].nodeValue:1==i[r].nodeType&&(e+=b(i[r]).toString());t&&(e+="</"+this.type+">")}else t&&(e+="/>");return e}}var h=r.prototype,f=i.is,d=String,m=i._unit2px,y=i._.$,v=i._.make,g=i._.getSomeDefs,x="hasOwnProperty",b=i._.wrap;h.getBBox=function(t){if(!i.Matrix||!i.path)return this.node.getBBox();var e=this,n=new i.Matrix;if(e.removed)return i._.box();for(;"use"==e.type;)if(t||(n=n.add(e.transform().localMatrix.translate(e.attr("x")||0,e.attr("y")||0))),e.original)e=e.original;else{var r=e.attr("xlink:href");e=e.original=e.node.ownerDocument.getElementById(r.substring(r.indexOf("#")+1))}var o=e._,a=i.path.get[e.type]||i.path.get.deflt;try{return t?(o.bboxwt=a?i.path.getBBox(e.realPath=a(e)):i._.box(e.node.getBBox()),i._.box(o.bboxwt)):(e.realPath=a(e),e.matrix=e.transform().localMatrix,o.bbox=i.path.getBBox(i.path.map(e.realPath,n.add(e.matrix))),i._.box(o.bbox))}catch(s){return i._.box()}};var w=function(){return this.string};h.transform=function(t){var e=this._;if(null==t){for(var n,r=this,o=new i.Matrix(this.node.getCTM()),a=c(this),s=[a],u=new i.Matrix,p=a.toTransformString(),l=d(a)==d(this.matrix)?d(e.transform):p;"svg"!=r.type&&(r=r.parent());)s.push(c(r));for(n=s.length;n--;)u.add(s[n]);return{string:l,globalMatrix:o,totalMatrix:u,localMatrix:a,diffMatrix:o.clone().add(a.invert()),global:o.toTransformString(),total:u.toTransformString(),local:p,toString:w}}return t instanceof i.Matrix?(this.matrix=t,this._.transform=t.toTransformString()):c(this,t),this.node&&("linearGradient"==this.type||"radialGradient"==this.type?y(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?y(this.node,{patternTransform:this.matrix}):y(this.node,{transform:this.matrix})),this},h.parent=function(){return b(this.node.parentNode)},h.append=h.add=function(t){if(t){if("set"==t.type){var e=this;return t.forEach(function(t){e.add(t)}),this}t=b(t),this.node.appendChild(t.node),t.paper=this.paper}return this},h.appendTo=function(t){return t&&(t=b(t),t.append(this)),this},h.prepend=function(t){if(t){if("set"==t.type){var e,n=this;return t.forEach(function(t){e?e.after(t):n.prepend(t),e=t}),this}t=b(t);var i=t.parent();this.node.insertBefore(t.node,this.node.firstChild),this.add&&this.add(),t.paper=this.paper,this.parent()&&this.parent().add(),i&&i.add()}return this},h.prependTo=function(t){return t=b(t),t.prepend(this),this},h.before=function(t){if("set"==t.type){var e=this;return t.forEach(function(t){var n=t.parent();e.node.parentNode.insertBefore(t.node,e.node),n&&n.add()}),this.parent().add(),this}t=b(t);var n=t.parent();return this.node.parentNode.insertBefore(t.node,this.node),this.parent()&&this.parent().add(),n&&n.add(),t.paper=this.paper,this},h.after=function(t){t=b(t);var e=t.parent();return this.node.nextSibling?this.node.parentNode.insertBefore(t.node,this.node.nextSibling):this.node.parentNode.appendChild(t.node),this.parent()&&this.parent().add(),e&&e.add(),t.paper=this.paper,this},h.insertBefore=function(t){t=b(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},h.insertAfter=function(t){t=b(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node.nextSibling),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},h.remove=function(){var t=this.parent();return this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.paper,this.removed=!0,t&&t.add(),this},h.select=function(t){return t=d(t).replace(/([^\\]):/g,"$1\\:"),b(this.node.querySelector(t))},h.selectAll=function(t){for(var e=this.node.querySelectorAll(t),n=(i.set||Array)(),r=0;r<e.length;r++)n.push(b(e[r]));return n},h.asPX=function(t,e){return null==e&&(e=this.attr(t)),+m(this,t,e)},h.use=function(){var t,e=this.node.id;return e||(e=this.id,y(this.node,{id:e})),t="linearGradient"==this.type||"radialGradient"==this.type||"pattern"==this.type?v(this.type,this.node.parentNode):v("use",this.node.parentNode),y(t.node,{"xlink:href":"#"+e}),t.original=this,t},h.clone=function(){var t=b(this.node.cloneNode(!0));return y(t.node,"id")&&y(t.node,{id:t.id}),u(t),t.insertAfter(this),t},h.toDefs=function(){var t=g(this);return t.appendChild(this.node),this},h.pattern=h.toPattern=function(t,e,n,i){var r=v("pattern",g(this));return null==t&&(t=this.getBBox()),f(t,"object")&&"x"in t&&(e=t.y,n=t.width,i=t.height,t=t.x),y(r.node,{x:t,y:e,width:n,height:i,patternUnits:"userSpaceOnUse",id:r.id,viewBox:[t,e,n,i].join(" ")}),r.node.appendChild(this.node),r},h.marker=function(t,e,n,i,r,o){var a=v("marker",g(this));return null==t&&(t=this.getBBox()),f(t,"object")&&"x"in t&&(e=t.y,n=t.width,i=t.height,r=t.refX||t.cx,o=t.refY||t.cy,t=t.x),y(a.node,{viewBox:[t,e,n,i].join(" "),markerWidth:n,markerHeight:i,orient:"auto",refX:r||0,refY:o||0,id:a.id}),a.node.appendChild(this.node),a};var _=function(t,e,i,r){"function"!=typeof i||i.length||(r=i,i=n.linear),this.attr=t,this.dur=e,i&&(this.easing=i),r&&(this.callback=r)};i._.Animation=_,i.animation=function(t,e,n,i){return new _(t,e,n,i)},h.inAnim=function(){var t=this,e=[];for(var n in t.anims)t.anims[x](n)&&!function(t){e.push({anim:new _(t._attrs,t.dur,t.easing,t._callback),mina:t,curStatus:t.status(),status:function(e){return t.status(e)},stop:function(){t.stop()}})}(t.anims[n]);return e},i.animate=function(t,i,r,o,a,s){"function"!=typeof a||a.length||(s=a,a=n.linear);var c=n.time(),u=n(t,i,c,c+o,n.time,r,a);return s&&e.once("mina.finish."+u.id,s),u},h.stop=function(){for(var t=this.inAnim(),e=0,n=t.length;n>e;e++)t[e].stop();return this},h.animate=function(t,i,r,o){"function"!=typeof r||r.length||(o=r,r=n.linear),t instanceof _&&(o=t.callback,r=t.easing,i=r.dur,t=t.attr);var a,s,c,u,l=[],h=[],m={},y=this;for(var v in t)if(t[x](v)){y.equal?(u=y.equal(v,d(t[v])),a=u.from,s=u.to,c=u.f):(a=+y.attr(v),s=+t[v]);var g=f(a,"array")?a.length:1;m[v]=p(l.length,l.length+g,c),l=l.concat(a),h=h.concat(s)}var b=n.time(),w=n(l,h,b,b+i,n.time,function(t){var e={};for(var n in m)m[x](n)&&(e[n]=m[n](t));y.attr(e)},r);return y.anims[w.id]=w,w._attrs=t,w._callback=o,e("snap.animcreated."+y.id,w),e.once("mina.finish."+w.id,function(){delete y.anims[w.id],o&&o.call(y)}),e.once("mina.stop."+w.id,function(){delete y.anims[w.id]}),y};var S={};h.data=function(t,n){var r=S[this.id]=S[this.id]||{};if(0==arguments.length)return e("snap.data.get."+this.id,this,r,null),r;if(1==arguments.length){if(i.is(t,"object")){for(var o in t)t[x](o)&&this.data(o,t[o]);return this}return e("snap.data.get."+this.id,this,r[t],t),r[t]}return r[t]=n,e("snap.data.set."+this.id,this,n,t),this},h.removeData=function(t){return null==t?S[this.id]={}:S[this.id]&&delete S[this.id][t],this},h.outerSVG=h.toString=l(1),h.innerSVG=l(),h.toDataURL=function(){if(t&&t.btoa){var e=this.getBBox(),n=i.format('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="{width}" height="{height}" viewBox="{x} {y} {width} {height}">{contents}</svg>',{x:+e.x.toFixed(3),y:+e.y.toFixed(3),width:+e.width.toFixed(3),height:+e.height.toFixed(3),contents:this.outerSVG()});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(n)))}},s.prototype.select=h.select,s.prototype.selectAll=h.selectAll}),i.plugin(function(t,e,n,i,r){function o(t,e,n,i,r,o){return null==e&&"[object SVGMatrix]"==a.call(t)?(this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.e=t.e,void(this.f=t.f)):void(null!=t?(this.a=+t,this.b=+e,this.c=+n,this.d=+i,this.e=+r,this.f=+o):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0))}var a=Object.prototype.toString,s=String,c=Math,u="";!function(e){function n(t){return t[0]*t[0]+t[1]*t[1]}function i(t){var e=c.sqrt(n(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}e.add=function(t,e,n,i,r,a){var s,c,u,p,l=[[],[],[]],h=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],f=[[t,n,r],[e,i,a],[0,0,1]];for(t&&t instanceof o&&(f=[[t.a,t.c,t.e],[t.b,t.d,t.f],[0,0,1]]),s=0;3>s;s++)for(c=0;3>c;c++){for(p=0,u=0;3>u;u++)p+=h[s][u]*f[u][c];l[s][c]=p}return this.a=l[0][0],this.b=l[1][0],this.c=l[0][1],this.d=l[1][1],this.e=l[0][2],this.f=l[1][2],this},e.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new o(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},e.clone=function(){return new o(this.a,this.b,this.c,this.d,this.e,this.f)},e.translate=function(t,e){return this.add(1,0,0,1,t,e)},e.scale=function(t,e,n,i){return null==e&&(e=t),(n||i)&&this.add(1,0,0,1,n,i),this.add(t,0,0,e,0,0),(n||i)&&this.add(1,0,0,1,-n,-i),this},e.rotate=function(e,n,i){e=t.rad(e),n=n||0,i=i||0;var r=+c.cos(e).toFixed(9),o=+c.sin(e).toFixed(9);return this.add(r,o,-o,r,n,i),this.add(1,0,0,1,-n,-i)},e.x=function(t,e){return t*this.a+e*this.c+this.e},e.y=function(t,e){return t*this.b+e*this.d+this.f},e.get=function(t){return+this[s.fromCharCode(97+t)].toFixed(4)},e.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},e.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},e.determinant=function(){return this.a*this.d-this.b*this.c},e.split=function(){var e={};e.dx=this.e,e.dy=this.f;var r=[[this.a,this.c],[this.b,this.d]];e.scalex=c.sqrt(n(r[0])),i(r[0]),e.shear=r[0][0]*r[1][0]+r[0][1]*r[1][1],r[1]=[r[1][0]-r[0][0]*e.shear,r[1][1]-r[0][1]*e.shear],e.scaley=c.sqrt(n(r[1])),i(r[1]),e.shear/=e.scaley,this.determinant()<0&&(e.scalex=-e.scalex);var o=-r[0][1],a=r[1][1];return 0>a?(e.rotate=t.deg(c.acos(a)),0>o&&(e.rotate=360-e.rotate)):e.rotate=t.deg(c.asin(o)),e.isSimple=!(+e.shear.toFixed(9)||e.scalex.toFixed(9)!=e.scaley.toFixed(9)&&e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e},e.toTransformString=function(t){var e=t||this.split();return+e.shear.toFixed(9)?"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]:(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[+e.dx.toFixed(4),+e.dy.toFixed(4)]:u)+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:u)+(e.rotate?"r"+[+e.rotate.toFixed(4),0,0]:u))}}(o.prototype),t.Matrix=o,t.matrix=function(t,e,n,i,r,a){return new o(t,e,n,i,r,a)}}),i.plugin(function(t,n,i,r,o){function a(i){return function(r){if(e.stop(),r instanceof o&&1==r.node.childNodes.length&&("radialGradient"==r.node.firstChild.tagName||"linearGradient"==r.node.firstChild.tagName||"pattern"==r.node.firstChild.tagName)&&(r=r.node.firstChild,f(this).appendChild(r),r=l(r)),r instanceof n)if("radialGradient"==r.type||"linearGradient"==r.type||"pattern"==r.type){r.node.id||m(r.node,{id:r.id});var a=y(r.node.id)}else a=r.attr(i);else if(a=t.color(r),a.error){var s=t(f(this).ownerSVGElement).gradient(r);s?(s.node.id||m(s.node,{id:s.id}),a=y(s.node.id)):a=r}else a=v(a);var c={};c[i]=a,m(this.node,c),this.node.style[i]=x}}function s(t){e.stop(),t==+t&&(t+="px"),this.node.style.fontSize=t}function c(t){for(var e=[],n=t.childNodes,i=0,r=n.length;r>i;i++){var o=n[i];3==o.nodeType&&e.push(o.nodeValue),"tspan"==o.tagName&&(1==o.childNodes.length&&3==o.firstChild.nodeType?e.push(o.firstChild.nodeValue):e.push(c(o)))}return e}function u(){return e.stop(),this.node.style.fontSize}var p=t._.make,l=t._.wrap,h=t.is,f=t._.getSomeDefs,d=/^url\(#?([^)]+)\)$/,m=t._.$,y=t.url,v=String,g=t._.separator,x="";e.on("snap.util.attr.mask",function(t){if(t instanceof n||t instanceof o){if(e.stop(),t instanceof o&&1==t.node.childNodes.length&&(t=t.node.firstChild,f(this).appendChild(t),t=l(t)),"mask"==t.type)var i=t;else i=p("mask",f(this)),i.node.appendChild(t.node);!i.node.id&&m(i.node,{id:i.id}),m(this.node,{mask:y(i.id)})}}),function(t){e.on("snap.util.attr.clip",t),e.on("snap.util.attr.clip-path",t),e.on("snap.util.attr.clipPath",t)}(function(t){if(t instanceof n||t instanceof o){if(e.stop(),"clipPath"==t.type)var i=t;else i=p("clipPath",f(this)),i.node.appendChild(t.node),!i.node.id&&m(i.node,{id:i.id});m(this.node,{"clip-path":y(i.node.id||i.id)})}}),e.on("snap.util.attr.fill",a("fill")),e.on("snap.util.attr.stroke",a("stroke"));var b=/^([lr])(?:\(([^)]*)\))?(.*)$/i;e.on("snap.util.grad.parse",function(t){t=v(t);var e=t.match(b);if(!e)return null;var n=e[1],i=e[2],r=e[3];return i=i.split(/\s*,\s*/).map(function(t){return+t==t?+t:t}),1==i.length&&0==i[0]&&(i=[]),r=r.split("-"),r=r.map(function(t){t=t.split(":");var e={color:t[0]};return t[1]&&(e.offset=parseFloat(t[1])),e}),{type:n,params:i,stops:r}}),e.on("snap.util.attr.d",function(n){e.stop(),h(n,"array")&&h(n[0],"array")&&(n=t.path.toString.call(n)),n=v(n),n.match(/[ruo]/i)&&(n=t.path.toAbsolute(n)),m(this.node,{d:n})})(-1),e.on("snap.util.attr.#text",function(t){e.stop(),t=v(t);for(var n=r.doc.createTextNode(t);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(n)})(-1),e.on("snap.util.attr.path",function(t){e.stop(),this.attr({d:t})})(-1),e.on("snap.util.attr.class",function(t){e.stop(),this.node.className.baseVal=t})(-1),e.on("snap.util.attr.viewBox",function(t){var n;n=h(t,"object")&&"x"in t?[t.x,t.y,t.width,t.height].join(" "):h(t,"array")?t.join(" "):t,m(this.node,{viewBox:n}),e.stop()})(-1),e.on("snap.util.attr.transform",function(t){this.transform(t),e.stop()})(-1),e.on("snap.util.attr.r",function(t){"rect"==this.type&&(e.stop(),m(this.node,{rx:t,ry:t}))})(-1),e.on("snap.util.attr.textpath",function(t){if(e.stop(),"text"==this.type){var i,r,o;if(!t&&this.textPath){for(r=this.textPath;r.node.firstChild;)this.node.appendChild(r.node.firstChild);return r.remove(),void delete this.textPath}if(h(t,"string")){var a=f(this),s=l(a.parentNode).path(t);a.appendChild(s.node),i=s.id,s.attr({id:i})}else t=l(t),t instanceof n&&(i=t.attr("id"),i||(i=t.id,t.attr({id:i})));if(i)if(r=this.textPath,o=this.node,r)r.attr({"xlink:href":"#"+i});else{for(r=m("textPath",{"xlink:href":"#"+i});o.firstChild;)r.appendChild(o.firstChild);o.appendChild(r),this.textPath=l(r)}}})(-1),e.on("snap.util.attr.text",function(t){if("text"==this.type){for(var n=this.node,i=function(t){var e=m("tspan");if(h(t,"array"))for(var n=0;n<t.length;n++)e.appendChild(i(t[n]));else e.appendChild(r.doc.createTextNode(t));return e.normalize&&e.normalize(),e};n.firstChild;)n.removeChild(n.firstChild);for(var o=i(t);o.firstChild;)n.appendChild(o.firstChild)}e.stop()})(-1),e.on("snap.util.attr.fontSize",s)(-1),e.on("snap.util.attr.font-size",s)(-1),
+e.on("snap.util.getattr.transform",function(){return e.stop(),this.transform()})(-1),e.on("snap.util.getattr.textpath",function(){return e.stop(),this.textPath})(-1),function(){function n(n){return function(){e.stop();var i=r.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue("marker-"+n);return"none"==i?i:t(r.doc.getElementById(i.match(d)[1]))}}function i(t){return function(n){e.stop();var i="marker"+t.charAt(0).toUpperCase()+t.substring(1);if(""==n||!n)return void(this.node.style[i]="none");if("marker"==n.type){var r=n.node.id;return r||m(n.node,{id:n.id}),void(this.node.style[i]=y(r))}}}e.on("snap.util.getattr.marker-end",n("end"))(-1),e.on("snap.util.getattr.markerEnd",n("end"))(-1),e.on("snap.util.getattr.marker-start",n("start"))(-1),e.on("snap.util.getattr.markerStart",n("start"))(-1),e.on("snap.util.getattr.marker-mid",n("mid"))(-1),e.on("snap.util.getattr.markerMid",n("mid"))(-1),e.on("snap.util.attr.marker-end",i("end"))(-1),e.on("snap.util.attr.markerEnd",i("end"))(-1),e.on("snap.util.attr.marker-start",i("start"))(-1),e.on("snap.util.attr.markerStart",i("start"))(-1),e.on("snap.util.attr.marker-mid",i("mid"))(-1),e.on("snap.util.attr.markerMid",i("mid"))(-1)}(),e.on("snap.util.getattr.r",function(){return"rect"==this.type&&m(this.node,"rx")==m(this.node,"ry")?(e.stop(),m(this.node,"rx")):void 0})(-1),e.on("snap.util.getattr.text",function(){if("text"==this.type||"tspan"==this.type){e.stop();var t=c(this.node);return 1==t.length?t[0]:t}})(-1),e.on("snap.util.getattr.#text",function(){return this.node.textContent})(-1),e.on("snap.util.getattr.viewBox",function(){e.stop();var n=m(this.node,"viewBox");return n?(n=n.split(g),t._.box(+n[0],+n[1],+n[2],+n[3])):void 0})(-1),e.on("snap.util.getattr.points",function(){var t=m(this.node,"points");return e.stop(),t?t.split(g):void 0})(-1),e.on("snap.util.getattr.path",function(){var t=m(this.node,"d");return e.stop(),t})(-1),e.on("snap.util.getattr.class",function(){return this.node.className.baseVal})(-1),e.on("snap.util.getattr.fontSize",u)(-1),e.on("snap.util.getattr.font-size",u)(-1)}),i.plugin(function(n,i,r,o,a){var s=r.prototype,c=n.is;s.rect=function(t,e,n,i,r,o){var a;return null==o&&(o=r),c(t,"object")&&"[object Object]"==t?a=t:null!=t&&(a={x:t,y:e,width:n,height:i},null!=r&&(a.rx=r,a.ry=o)),this.el("rect",a)},s.circle=function(t,e,n){var i;return c(t,"object")&&"[object Object]"==t?i=t:null!=t&&(i={cx:t,cy:e,r:n}),this.el("circle",i)};var u=function(){function t(){this.parentNode.removeChild(this)}return function(e,n){var i=o.doc.createElement("img"),r=o.doc.body;i.style.cssText="position:absolute;left:-9999em;top:-9999em",i.onload=function(){n.call(i),i.onload=i.onerror=null,r.removeChild(i)},i.onerror=t,r.appendChild(i),i.src=e}}();s.image=function(t,e,i,r,o){var a=this.el("image");if(c(t,"object")&&"src"in t)a.attr(t);else if(null!=t){var s={"xlink:href":t,preserveAspectRatio:"none"};null!=e&&null!=i&&(s.x=e,s.y=i),null!=r&&null!=o?(s.width=r,s.height=o):u(t,function(){n._.$(a.node,{width:this.offsetWidth,height:this.offsetHeight})}),n._.$(a.node,s)}return a},s.ellipse=function(t,e,n,i){var r;return c(t,"object")&&"[object Object]"==t?r=t:null!=t&&(r={cx:t,cy:e,rx:n,ry:i}),this.el("ellipse",r)},s.path=function(t){var e;return c(t,"object")&&!c(t,"array")?e=t:t&&(e={d:t}),this.el("path",e)},s.group=s.g=function(t){var e=this.el("g");return 1==arguments.length&&t&&!t.type?e.attr(t):arguments.length&&e.add(Array.prototype.slice.call(arguments,0)),e},s.svg=function(t,e,n,i,r,o,a,s){var u={};return c(t,"object")&&null==e?u=t:(null!=t&&(u.x=t),null!=e&&(u.y=e),null!=n&&(u.width=n),null!=i&&(u.height=i),null!=r&&null!=o&&null!=a&&null!=s&&(u.viewBox=[r,o,a,s])),this.el("svg",u)},s.mask=function(t){var e=this.el("mask");return 1==arguments.length&&t&&!t.type?e.attr(t):arguments.length&&e.add(Array.prototype.slice.call(arguments,0)),e},s.ptrn=function(t,e,n,i,r,o,a,s){if(c(t,"object"))var u=t;else u={patternUnits:"userSpaceOnUse"},t&&(u.x=t),e&&(u.y=e),null!=n&&(u.width=n),null!=i&&(u.height=i),null!=r&&null!=o&&null!=a&&null!=s&&(u.viewBox=[r,o,a,s]);return this.el("pattern",u)},s.use=function(t){return null!=t?(t instanceof i&&(t.attr("id")||t.attr({id:n._.id(t)}),t=t.attr("id")),"#"==String(t).charAt()&&(t=t.substring(1)),this.el("use",{"xlink:href":"#"+t})):i.prototype.use.call(this)},s.symbol=function(t,e,n,i){var r={};return null!=t&&null!=e&&null!=n&&null!=i&&(r.viewBox=[t,e,n,i]),this.el("symbol",r)},s.text=function(t,e,n){var i={};return c(t,"object")?i=t:null!=t&&(i={x:t,y:e,text:n||""}),this.el("text",i)},s.line=function(t,e,n,i){var r={};return c(t,"object")?r=t:null!=t&&(r={x1:t,x2:n,y1:e,y2:i}),this.el("line",r)},s.polyline=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e={};return c(t,"object")&&!c(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polyline",e)},s.polygon=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e={};return c(t,"object")&&!c(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polygon",e)},function(){function i(){return this.selectAll("stop")}function r(t,e){var i=p("stop"),r={offset:+e+"%"};return t=n.color(t),r["stop-color"]=t.hex,t.opacity<1&&(r["stop-opacity"]=t.opacity),p(i,r),this.node.appendChild(i),this}function o(){if("linearGradient"==this.type){var t=p(this.node,"x1")||0,e=p(this.node,"x2")||1,i=p(this.node,"y1")||0,r=p(this.node,"y2")||0;return n._.box(t,i,math.abs(e-t),math.abs(r-i))}var o=this.node.cx||.5,a=this.node.cy||.5,s=this.node.r||0;return n._.box(o-s,a-s,2*s,2*s)}function a(t,n){function i(t,e){for(var n=(e-l)/(t-h),i=h;t>i;i++)a[i].offset=+(+l+n*(i-h)).toFixed(2);h=t,l=e}var r,o=e("snap.util.grad.parse",null,n).firstDefined();if(!o)return null;o.params.unshift(t),r="l"==o.type.toLowerCase()?c.apply(0,o.params):u.apply(0,o.params),o.type!=o.type.toLowerCase()&&p(r.node,{gradientUnits:"userSpaceOnUse"});var a=o.stops,s=a.length,l=0,h=0;s--;for(var f=0;s>f;f++)"offset"in a[f]&&i(f,a[f].offset);for(a[s].offset=a[s].offset||100,i(s,a[s].offset),f=0;s>=f;f++){var d=a[f];r.addStop(d.color,d.offset)}return r}function c(t,e,a,s,c){var u=n._.make("linearGradient",t);return u.stops=i,u.addStop=r,u.getBBox=o,null!=e&&p(u.node,{x1:e,y1:a,x2:s,y2:c}),u}function u(t,e,a,s,c,u){var l=n._.make("radialGradient",t);return l.stops=i,l.addStop=r,l.getBBox=o,null!=e&&p(l.node,{cx:e,cy:a,r:s}),null!=c&&null!=u&&p(l.node,{fx:c,fy:u}),l}var p=n._.$;s.gradient=function(t){return a(this.defs,t)},s.gradientLinear=function(t,e,n,i){return c(this.defs,t,e,n,i)},s.gradientRadial=function(t,e,n,i,r){return u(this.defs,t,e,n,i,r)},s.toString=function(){var t,e=this.node.ownerDocument,i=e.createDocumentFragment(),r=e.createElement("div"),o=this.node.cloneNode(!0);return i.appendChild(r),r.appendChild(o),n._.$(o,{xmlns:"http://www.w3.org/2000/svg"}),t=r.innerHTML,i.removeChild(i.firstChild),t},s.toDataURL=function(){return t&&t.btoa?"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(this))):void 0},s.clear=function(){for(var t,e=this.node.firstChild;e;)t=e.nextSibling,"defs"!=e.tagName?e.parentNode.removeChild(e):s.clear.call({node:e}),e=t}}()}),i.plugin(function(t,e,n,i){function r(t){var e=r.ps=r.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var n in e)e[j](n)&&n!=t&&(e[n].sleep--,!e[n].sleep&&delete e[n])}),e[t]}function o(t,e,n,i){return null==t&&(t=e=n=i=0),null==e&&(e=t.y,n=t.width,i=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:i,h:i,x2:t+n,y2:e+i,cx:t+n/2,cy:e+i/2,r1:V.min(n,i)/2,r2:V.max(n,i)/2,r0:V.sqrt(n*n+i*i)/2,path:S(t,e,n,i),vb:[t,e,n,i].join(" ")}}function a(){return this.join(",").replace(F,"$1")}function s(t){var e=L(t);return e.toString=a,e}function c(t,e,n,i,r,o,a,s,c){return null==c?m(t,e,n,i,r,o,a,s):p(t,e,n,i,r,o,a,s,y(t,e,n,i,r,o,a,s,c))}function u(n,i){function r(t){return+(+t).toFixed(3)}return t._.cacher(function(t,o,a){t instanceof e&&(t=t.attr("d")),t=k(t);for(var s,u,l,h,f,d="",m={},y=0,v=0,g=t.length;g>v;v++){if(l=t[v],"M"==l[0])s=+l[1],u=+l[2];else{if(h=c(s,u,l[1],l[2],l[3],l[4],l[5],l[6]),y+h>o){if(i&&!m.start){if(f=c(s,u,l[1],l[2],l[3],l[4],l[5],l[6],o-y),d+=["C"+r(f.start.x),r(f.start.y),r(f.m.x),r(f.m.y),r(f.x),r(f.y)],a)return d;m.start=d,d=["M"+r(f.x),r(f.y)+"C"+r(f.n.x),r(f.n.y),r(f.end.x),r(f.end.y),r(l[5]),r(l[6])].join(),y+=h,s=+l[5],u=+l[6];continue}if(!n&&!i)return f=c(s,u,l[1],l[2],l[3],l[4],l[5],l[6],o-y)}y+=h,s=+l[5],u=+l[6]}d+=l.shift()+l}return m.end=d,f=n?y:i?m:p(s,u,l[0],l[1],l[2],l[3],l[4],l[5],1)},null,t._.clone)}function p(t,e,n,i,r,o,a,s,c){var u=1-c,p=U(u,3),l=U(u,2),h=c*c,f=h*c,d=p*t+3*l*c*n+3*u*c*c*r+f*a,m=p*e+3*l*c*i+3*u*c*c*o+f*s,y=t+2*c*(n-t)+h*(r-2*n+t),v=e+2*c*(i-e)+h*(o-2*i+e),g=n+2*c*(r-n)+h*(a-2*r+n),x=i+2*c*(o-i)+h*(s-2*o+i),b=u*t+c*n,w=u*e+c*i,E=u*r+c*a,_=u*o+c*s,S=90-180*V.atan2(y-g,v-x)/G;return{x:d,y:m,m:{x:y,y:v},n:{x:g,y:x},start:{x:b,y:w},end:{x:E,y:_},alpha:S}}function l(e,n,i,r,a,s,c,u){t.is(e,"array")||(e=[e,n,i,r,a,s,c,u]);var p=P.apply(null,e);return o(p.min.x,p.min.y,p.max.x-p.min.x,p.max.y-p.min.y)}function h(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height}function f(t,e){return t=o(t),e=o(e),h(e,t.x,t.y)||h(e,t.x2,t.y)||h(e,t.x,t.y2)||h(e,t.x2,t.y2)||h(t,e.x,e.y)||h(t,e.x2,e.y)||h(t,e.x,e.y2)||h(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}function d(t,e,n,i,r){var o=-3*e+9*n-9*i+3*r,a=t*o+6*e-12*n+6*i;return t*a-3*e+3*n}function m(t,e,n,i,r,o,a,s,c){null==c&&(c=1),c=c>1?1:0>c?0:c;for(var u=c/2,p=12,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,m=0;p>m;m++){var y=u*l[m]+u,v=d(y,t,n,r,a),g=d(y,e,i,o,s),x=v*v+g*g;f+=h[m]*V.sqrt(x)}return u*f}function y(t,e,n,i,r,o,a,s,c){if(!(0>c||m(t,e,n,i,r,o,a,s)<c)){var u,p=1,l=p/2,h=p-l,f=.01;for(u=m(t,e,n,i,r,o,a,s,h);q(u-c)>f;)l/=2,h+=(c>u?1:-1)*l,u=m(t,e,n,i,r,o,a,s,h);return h}}function v(t,e,n,i,r,o,a,s){if(!(W(t,n)<z(r,a)||z(t,n)>W(r,a)||W(e,i)<z(o,s)||z(e,i)>W(o,s))){var c=(t*i-e*n)*(r-a)-(t-n)*(r*s-o*a),u=(t*i-e*n)*(o-s)-(e-i)*(r*s-o*a),p=(t-n)*(o-s)-(e-i)*(r-a);if(p){var l=c/p,h=u/p,f=+l.toFixed(2),d=+h.toFixed(2);if(!(f<+z(t,n).toFixed(2)||f>+W(t,n).toFixed(2)||f<+z(r,a).toFixed(2)||f>+W(r,a).toFixed(2)||d<+z(e,i).toFixed(2)||d>+W(e,i).toFixed(2)||d<+z(o,s).toFixed(2)||d>+W(o,s).toFixed(2)))return{x:l,y:h}}}}function g(t,e,n){var i=l(t),r=l(e);if(!f(i,r))return n?0:[];for(var o=m.apply(0,t),a=m.apply(0,e),s=~~(o/8),c=~~(a/8),u=[],h=[],d={},y=n?0:[],g=0;s+1>g;g++){var x=p.apply(0,t.concat(g/s));u.push({x:x.x,y:x.y,t:g/s})}for(g=0;c+1>g;g++)x=p.apply(0,e.concat(g/c)),h.push({x:x.x,y:x.y,t:g/c});for(g=0;s>g;g++)for(var b=0;c>b;b++){var w=u[g],E=u[g+1],_=h[b],S=h[b+1],T=q(E.x-w.x)<.001?"y":"x",A=q(S.x-_.x)<.001?"y":"x",C=v(w.x,w.y,E.x,E.y,_.x,_.y,S.x,S.y);if(C){if(d[C.x.toFixed(4)]==C.y.toFixed(4))continue;d[C.x.toFixed(4)]=C.y.toFixed(4);var M=w.t+q((C[T]-w[T])/(E[T]-w[T]))*(E.t-w.t),R=_.t+q((C[A]-_[A])/(S[A]-_[A]))*(S.t-_.t);M>=0&&1>=M&&R>=0&&1>=R&&(n?y++:y.push({x:C.x,y:C.y,t1:M,t2:R}))}}return y}function x(t,e){return w(t,e)}function b(t,e){return w(t,e,1)}function w(t,e,n){t=k(t),e=k(e);for(var i,r,o,a,s,c,u,p,l,h,f=n?0:[],d=0,m=t.length;m>d;d++){var y=t[d];if("M"==y[0])i=s=y[1],r=c=y[2];else{"C"==y[0]?(l=[i,r].concat(y.slice(1)),i=l[6],r=l[7]):(l=[i,r,i,r,s,c,s,c],i=s,r=c);for(var v=0,x=e.length;x>v;v++){var b=e[v];if("M"==b[0])o=u=b[1],a=p=b[2];else{"C"==b[0]?(h=[o,a].concat(b.slice(1)),o=h[6],a=h[7]):(h=[o,a,o,a,u,p,u,p],o=u,a=p);var w=g(l,h,n);if(n)f+=w;else{for(var E=0,_=w.length;_>E;E++)w[E].segment1=d,w[E].segment2=v,w[E].bez1=l,w[E].bez2=h;f=f.concat(w)}}}}}return f}function E(t,e,n){var i=_(t);return h(i,e,n)&&w(t,[["M",e,n],["H",i.x2+10]],1)%2==1}function _(t){var e=r(t);if(e.bbox)return L(e.bbox);if(!t)return o();t=k(t);for(var n,i=0,a=0,s=[],c=[],u=0,p=t.length;p>u;u++)if(n=t[u],"M"==n[0])i=n[1],a=n[2],s.push(i),c.push(a);else{var l=P(i,a,n[1],n[2],n[3],n[4],n[5],n[6]);s=s.concat(l.min.x,l.max.x),c=c.concat(l.min.y,l.max.y),i=n[5],a=n[6]}var h=z.apply(0,s),f=z.apply(0,c),d=W.apply(0,s),m=W.apply(0,c),y=o(h,f,d-h,m-f);return e.bbox=L(y),y}function S(t,e,n,i,r){if(r)return[["M",+t+ +r,e],["l",n-2*r,0],["a",r,r,0,0,1,r,r],["l",0,i-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-n,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-i],["a",r,r,0,0,1,r,-r],["z"]];var o=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return o.toString=a,o}function T(t,e,n,i,r){if(null==r&&null==i&&(i=n),t=+t,e=+e,n=+n,i=+i,null!=r)var o=Math.PI/180,s=t+n*Math.cos(-i*o),c=t+n*Math.cos(-r*o),u=e+n*Math.sin(-i*o),p=e+n*Math.sin(-r*o),l=[["M",s,u],["A",n,n,0,+(r-i>180),0,c,p]];else l=[["M",t,e],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]];return l.toString=a,l}function A(e){var n=r(e),i=String.prototype.toLowerCase;if(n.rel)return s(n.rel);t.is(e,"array")&&t.is(e&&e[0],"array")||(e=t.parsePathString(e));var o=[],c=0,u=0,p=0,l=0,h=0;"M"==e[0][0]&&(c=e[0][1],u=e[0][2],p=c,l=u,h++,o.push(["M",c,u]));for(var f=h,d=e.length;d>f;f++){var m=o[f]=[],y=e[f];if(y[0]!=i.call(y[0]))switch(m[0]=i.call(y[0]),m[0]){case"a":m[1]=y[1],m[2]=y[2],m[3]=y[3],m[4]=y[4],m[5]=y[5],m[6]=+(y[6]-c).toFixed(3),m[7]=+(y[7]-u).toFixed(3);break;case"v":m[1]=+(y[1]-u).toFixed(3);break;case"m":p=y[1],l=y[2];default:for(var v=1,g=y.length;g>v;v++)m[v]=+(y[v]-(v%2?c:u)).toFixed(3)}else{m=o[f]=[],"m"==y[0]&&(p=y[1]+c,l=y[2]+u);for(var x=0,b=y.length;b>x;x++)o[f][x]=y[x]}var w=o[f].length;switch(o[f][0]){case"z":c=p,u=l;break;case"h":c+=+o[f][w-1];break;case"v":u+=+o[f][w-1];break;default:c+=+o[f][w-2],u+=+o[f][w-1]}}return o.toString=a,n.rel=s(o),o}function C(e){var n=r(e);if(n.abs)return s(n.abs);if(I(e,"array")&&I(e&&e[0],"array")||(e=t.parsePathString(e)),!e||!e.length)return[["M",0,0]];var i,o=[],c=0,u=0,p=0,l=0,h=0;"M"==e[0][0]&&(c=+e[0][1],u=+e[0][2],p=c,l=u,h++,o[0]=["M",c,u]);for(var f,d,m=3==e.length&&"M"==e[0][0]&&"R"==e[1][0].toUpperCase()&&"Z"==e[2][0].toUpperCase(),y=h,v=e.length;v>y;y++){if(o.push(f=[]),d=e[y],i=d[0],i!=i.toUpperCase())switch(f[0]=i.toUpperCase(),f[0]){case"A":f[1]=d[1],f[2]=d[2],f[3]=d[3],f[4]=d[4],f[5]=d[5],f[6]=+d[6]+c,f[7]=+d[7]+u;break;case"V":f[1]=+d[1]+u;break;case"H":f[1]=+d[1]+c;break;case"R":for(var g=[c,u].concat(d.slice(1)),x=2,b=g.length;b>x;x++)g[x]=+g[x]+c,g[++x]=+g[x]+u;o.pop(),o=o.concat(O(g,m));break;case"O":o.pop(),g=T(c,u,d[1],d[2]),g.push(g[0]),o=o.concat(g);break;case"U":o.pop(),o=o.concat(T(c,u,d[1],d[2],d[3])),f=["U"].concat(o[o.length-1].slice(-2));break;case"M":p=+d[1]+c,l=+d[2]+u;default:for(x=1,b=d.length;b>x;x++)f[x]=+d[x]+(x%2?c:u)}else if("R"==i)g=[c,u].concat(d.slice(1)),o.pop(),o=o.concat(O(g,m)),f=["R"].concat(d.slice(-2));else if("O"==i)o.pop(),g=T(c,u,d[1],d[2]),g.push(g[0]),o=o.concat(g);else if("U"==i)o.pop(),o=o.concat(T(c,u,d[1],d[2],d[3])),f=["U"].concat(o[o.length-1].slice(-2));else for(var w=0,E=d.length;E>w;w++)f[w]=d[w];if(i=i.toUpperCase(),"O"!=i)switch(f[0]){case"Z":c=+p,u=+l;break;case"H":c=f[1];break;case"V":u=f[1];break;case"M":p=f[f.length-2],l=f[f.length-1];default:c=f[f.length-2],u=f[f.length-1]}}return o.toString=a,n.abs=s(o),o}function M(t,e,n,i){return[t,e,n,i,n,i]}function R(t,e,n,i,r,o){var a=1/3,s=2/3;return[a*t+s*n,a*e+s*i,a*r+s*n,a*o+s*i,r,o]}function N(e,n,i,r,o,a,s,c,u,p){var l,h=120*G/180,f=G/180*(+o||0),d=[],m=t._.cacher(function(t,e,n){var i=t*V.cos(n)-e*V.sin(n),r=t*V.sin(n)+e*V.cos(n);return{x:i,y:r}});if(p)S=p[0],T=p[1],E=p[2],_=p[3];else{l=m(e,n,-f),e=l.x,n=l.y,l=m(c,u,-f),c=l.x,u=l.y;var y=(V.cos(G/180*o),V.sin(G/180*o),(e-c)/2),v=(n-u)/2,g=y*y/(i*i)+v*v/(r*r);g>1&&(g=V.sqrt(g),i=g*i,r=g*r);var x=i*i,b=r*r,w=(a==s?-1:1)*V.sqrt(q((x*b-x*v*v-b*y*y)/(x*v*v+b*y*y))),E=w*i*v/r+(e+c)/2,_=w*-r*y/i+(n+u)/2,S=V.asin(((n-_)/r).toFixed(9)),T=V.asin(((u-_)/r).toFixed(9));S=E>e?G-S:S,T=E>c?G-T:T,0>S&&(S=2*G+S),0>T&&(T=2*G+T),s&&S>T&&(S-=2*G),!s&&T>S&&(T-=2*G)}var A=T-S;if(q(A)>h){var C=T,M=c,R=u;T=S+h*(s&&T>S?1:-1),c=E+i*V.cos(T),u=_+r*V.sin(T),d=N(c,u,i,r,o,0,s,M,R,[T,C,E,_])}A=T-S;var P=V.cos(S),k=V.sin(S),D=V.cos(T),O=V.sin(T),B=V.tan(A/4),I=4/3*i*B,L=4/3*r*B,j=[e,n],F=[e+I*k,n-L*P],$=[c+I*O,u-L*D],z=[c,u];if(F[0]=2*j[0]-F[0],F[1]=2*j[1]-F[1],p)return[F,$,z].concat(d);d=[F,$,z].concat(d).join().split(",");for(var W=[],U=0,H=d.length;H>U;U++)W[U]=U%2?m(d[U-1],d[U],f).y:m(d[U],d[U+1],f).x;return W}function P(t,e,n,i,r,o,a,s){for(var c,u,p,l,h,f,d,m,y=[],v=[[],[]],g=0;2>g;++g)if(0==g?(u=6*t-12*n+6*r,c=-3*t+9*n-9*r+3*a,p=3*n-3*t):(u=6*e-12*i+6*o,c=-3*e+9*i-9*o+3*s,p=3*i-3*e),q(c)<1e-12){if(q(u)<1e-12)continue;l=-p/u,l>0&&1>l&&y.push(l)}else d=u*u-4*p*c,m=V.sqrt(d),0>d||(h=(-u+m)/(2*c),h>0&&1>h&&y.push(h),f=(-u-m)/(2*c),f>0&&1>f&&y.push(f));for(var x,b=y.length,w=b;b--;)l=y[b],x=1-l,v[0][b]=x*x*x*t+3*x*x*l*n+3*x*l*l*r+l*l*l*a,v[1][b]=x*x*x*e+3*x*x*l*i+3*x*l*l*o+l*l*l*s;return v[0][w]=t,v[1][w]=e,v[0][w+1]=a,v[1][w+1]=s,v[0].length=v[1].length=w+2,{min:{x:z.apply(0,v[0]),y:z.apply(0,v[1])},max:{x:W.apply(0,v[0]),y:W.apply(0,v[1])}}}function k(t,e){var n=!e&&r(t);if(!e&&n.curve)return s(n.curve);for(var i=C(t),o=e&&C(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u=(function(t,e,n){var i,r;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(N.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"==n||"S"==n?(i=2*e.x-e.bx,r=2*e.y-e.by):(i=e.x,r=e.y),t=["C",i,r].concat(t.slice(1));break;case"T":"Q"==n||"T"==n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(R(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(R(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(M(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(M(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(M(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(M(e.x,e.y,e.X,e.Y))}return t}),p=function(t,e){if(t[e].length>7){t[e].shift();for(var n=t[e];n.length;)h[e]="A",o&&(f[e]="A"),t.splice(e++,0,["C"].concat(n.splice(0,6)));t.splice(e,1),v=W(i.length,o&&o.length||0)}},l=function(t,e,n,r,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",r.x,r.y]),n.bx=0,n.by=0,n.x=t[a][1],n.y=t[a][2],v=W(i.length,o&&o.length||0))},h=[],f=[],d="",m="",y=0,v=W(i.length,o&&o.length||0);v>y;y++){i[y]&&(d=i[y][0]),"C"!=d&&(h[y]=d,y&&(m=h[y-1])),i[y]=u(i[y],a,m),"A"!=h[y]&&"C"==d&&(h[y]="C"),p(i,y),o&&(o[y]&&(d=o[y][0]),"C"!=d&&(f[y]=d,y&&(m=f[y-1])),o[y]=u(o[y],c,m),"A"!=f[y]&&"C"==d&&(f[y]="C"),p(o,y)),l(i,o,a,c,y),l(o,i,c,a,y);var g=i[y],x=o&&o[y],b=g.length,w=o&&x.length;a.x=g[b-2],a.y=g[b-1],a.bx=$(g[b-4])||a.x,a.by=$(g[b-3])||a.y,c.bx=o&&($(x[w-4])||c.x),c.by=o&&($(x[w-3])||c.y),c.x=o&&x[w-2],c.y=o&&x[w-1]}return o||(n.curve=s(i)),o?[i,o]:i}function D(t,e){if(!e)return t;var n,i,r,o,a,s,c;for(t=k(t),r=0,a=t.length;a>r;r++)for(c=t[r],o=1,s=c.length;s>o;o+=2)n=e.x(c[o],c[o+1]),i=e.y(c[o],c[o+1]),c[o]=n,c[o+1]=i;return t}function O(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var o=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4==i?o[3]={x:+t[0],y:+t[1]}:r-2==i&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4==i?o[3]=o[2]:i||(o[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n}var B=e.prototype,I=t.is,L=t._.clone,j="hasOwnProperty",F=/,?([a-z]),?/gi,$=parseFloat,V=Math,G=V.PI,z=V.min,W=V.max,U=V.pow,q=V.abs,H=u(1),Y=u(),X=u(0,1),K=t._unit2px,Z={path:function(t){return t.attr("path")},circle:function(t){var e=K(t);return T(e.cx,e.cy,e.r)},ellipse:function(t){var e=K(t);return T(e.cx||0,e.cy||0,e.rx,e.ry)},rect:function(t){var e=K(t);return S(e.x||0,e.y||0,e.width,e.height,e.rx,e.ry)},image:function(t){var e=K(t);return S(e.x||0,e.y||0,e.width,e.height)},line:function(t){return"M"+[t.attr("x1")||0,t.attr("y1")||0,t.attr("x2"),t.attr("y2")]},polyline:function(t){return"M"+t.attr("points")},polygon:function(t){return"M"+t.attr("points")+"z"},deflt:function(t){var e=t.node.getBBox();return S(e.x,e.y,e.width,e.height)}};t.path=r,t.path.getTotalLength=H,t.path.getPointAtLength=Y,t.path.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return X(t,e).end;var i=X(t,n,1);return e?X(i,e).end:i},B.getTotalLength=function(){return this.node.getTotalLength?this.node.getTotalLength():void 0},B.getPointAtLength=function(t){return Y(this.attr("d"),t)},B.getSubpath=function(e,n){return t.path.getSubpath(this.attr("d"),e,n)},t._.box=o,t.path.findDotsAtSegment=p,t.path.bezierBBox=l,t.path.isPointInsideBBox=h,t.path.isBBoxIntersect=f,t.path.intersection=x,t.path.intersectionNumber=b,t.path.isPointInside=E,t.path.getBBox=_,t.path.get=Z,t.path.toRelative=A,t.path.toAbsolute=C,t.path.toCubic=k,t.path.map=D,t.path.toString=a,t.path.clone=s}),i.plugin(function(t,n,i,r){for(var o=n.prototype,a="hasOwnProperty",s=("createTouch"in r.doc),c=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","touchstart","touchmove","touchend","touchcancel"],u={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},p=(function(t,e){var n="y"==t?"scrollTop":"scrollLeft",i=e&&e.node?e.node.ownerDocument:r.doc;return i[n in i.documentElement?"documentElement":"body"][n]}),l=function(){this.returnValue=!1},h=function(){return this.originalEvent.preventDefault()},f=function(){this.cancelBubble=!0},d=function(){return this.originalEvent.stopPropagation()},m=function(){return r.doc.addEventListener?function(t,e,n,i){var r=s&&u[e]?u[e]:e,o=function(r){var o=p("y",i),c=p("x",i);if(s&&u[a](e))for(var l=0,f=r.targetTouches&&r.targetTouches.length;f>l;l++)if(r.targetTouches[l].target==t||t.contains(r.targetTouches[l].target)){var m=r;r=r.targetTouches[l],r.originalEvent=m,r.preventDefault=h,r.stopPropagation=d;break}var y=r.clientX+c,v=r.clientY+o;return n.call(i,r,y,v)};return e!==r&&t.addEventListener(e,o,!1),t.addEventListener(r,o,!1),function(){return e!==r&&t.removeEventListener(e,o,!1),t.removeEventListener(r,o,!1),!0}}:r.doc.attachEvent?function(t,e,n,i){var r=function(t){t=t||i.node.ownerDocument.window.event;var e=p("y",i),r=p("x",i),o=t.clientX+r,a=t.clientY+e;return t.preventDefault=t.preventDefault||l,t.stopPropagation=t.stopPropagation||f,n.call(i,t,o,a)};t.attachEvent("on"+e,r);var o=function(){return t.detachEvent("on"+e,r),!0};return o}:void 0}(),y=[],v=function(t){for(var n,i=t.clientX,r=t.clientY,o=p("y"),a=p("x"),c=y.length;c--;){if(n=y[c],s){for(var u,l=t.touches&&t.touches.length;l--;)if(u=t.touches[l],u.identifier==n.el._drag.id||n.el.node.contains(u.target)){i=u.clientX,r=u.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var h=n.el.node;h.nextSibling,h.parentNode,h.style.display;i+=a,r+=o,e("snap.drag.move."+n.el.id,n.move_scope||n.el,i-n.el._drag.x,r-n.el._drag.y,i,r,t)}},g=function(n){t.unmousemove(v).unmouseup(g);for(var i,r=y.length;r--;)i=y[r],i.el._drag={},e("snap.drag.end."+i.el.id,i.end_scope||i.start_scope||i.move_scope||i.el,n);y=[]},x=c.length;x--;)!function(e){t[e]=o[e]=function(n,i){return t.is(n,"function")&&(this.events=this.events||[],this.events.push({name:e,f:n,unbind:m(this.node||document,e,n,i||this)})),this},t["un"+e]=o["un"+e]=function(t){for(var n=this.events||[],i=n.length;i--;)if(n[i].name==e&&(n[i].f==t||!t))return n[i].unbind(),n.splice(i,1),!n.length&&delete this.events,this;return this}}(c[x]);o.hover=function(t,e,n,i){return this.mouseover(t,n).mouseout(e,i||n)},o.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var b=[];o.drag=function(n,i,r,o,a,s){function c(c,u,p){(c.originalEvent||c).preventDefault(),this._drag.x=u,this._drag.y=p,this._drag.id=c.identifier,!y.length&&t.mousemove(v).mouseup(g),y.push({el:this,move_scope:o,start_scope:a,end_scope:s}),i&&e.on("snap.drag.start."+this.id,i),n&&e.on("snap.drag.move."+this.id,n),r&&e.on("snap.drag.end."+this.id,r),e("snap.drag.start."+this.id,a||o||this,u,p,c)}if(!arguments.length){var u;return this.drag(function(t,e){this.attr({transform:u+(u?"T":"t")+[t,e]})},function(){u=this.transform().local})}return this._drag={},b.push({el:this,start:c}),this.mousedown(c),this},o.undrag=function(){for(var n=b.length;n--;)b[n].el==this&&(this.unmousedown(b[n].start),b.splice(n,1),e.unbind("snap.drag.*."+this.id));return!b.length&&t.unmousemove(v).unmouseup(g),this}}),i.plugin(function(t,n,i,r){var o=(n.prototype,i.prototype),a=/^\s*url\((.+)\)/,s=String,c=t._.$;t.filter={},o.filter=function(e){var i=this;"svg"!=i.type&&(i=i.paper);var r=t.parse(s(e)),o=t._.id(),a=(i.node.offsetWidth,i.node.offsetHeight,c("filter"));return c(a,{id:o,filterUnits:"userSpaceOnUse"}),a.appendChild(r.node),i.defs.appendChild(a),new n(a)},e.on("snap.util.getattr.filter",function(){e.stop();var n=c(this.node,"filter");if(n){var i=s(n).match(a);return i&&t.select(i[1])}}),e.on("snap.util.attr.filter",function(i){if(i instanceof n&&"filter"==i.type){e.stop();var r=i.node.id;r||(c(i.node,{id:i.id}),r=i.id),c(this.node,{filter:t.url(r)})}i&&"none"!=i||(e.stop(),this.node.removeAttribute("filter"))}),t.filter.blur=function(e,n){null==e&&(e=2);var i=null==n?e:[e,n];return t.format('<feGaussianBlur stdDeviation="{def}"/>',{def:i})},t.filter.blur.toString=function(){return this()},t.filter.shadow=function(e,n,i,r,o){return"string"==typeof i&&(r=i,o=r,i=4),"string"!=typeof r&&(o=r,r="#000"),r=r||"#000",null==i&&(i=4),null==o&&(o=1),null==e&&(e=0,n=2),null==n&&(n=e),r=t.color(r),t.format('<feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/><feOffset dx="{dx}" dy="{dy}" result="offsetblur"/><feFlood flood-color="{color}"/><feComposite in2="offsetblur" operator="in"/><feComponentTransfer><feFuncA type="linear" slope="{opacity}"/></feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>',{color:r,dx:e,dy:n,blur:i,opacity:o})},t.filter.shadow.toString=function(){return this()},t.filter.grayscale=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/>',{a:.2126+.7874*(1-e),b:.7152-.7152*(1-e),c:.0722-.0722*(1-e),d:.2126-.2126*(1-e),e:.7152+.2848*(1-e),f:.0722-.0722*(1-e),g:.2126-.2126*(1-e),h:.0722+.9278*(1-e)})},t.filter.grayscale.toString=function(){return this()},t.filter.sepia=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/>',{a:.393+.607*(1-e),b:.769-.769*(1-e),c:.189-.189*(1-e),d:.349-.349*(1-e),e:.686+.314*(1-e),f:.168-.168*(1-e),g:.272-.272*(1-e),h:.534-.534*(1-e),i:.131+.869*(1-e)})},t.filter.sepia.toString=function(){return this()},t.filter.saturate=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="saturate" values="{amount}"/>',{amount:1-e})},t.filter.saturate.toString=function(){return this()},t.filter.hueRotate=function(e){return e=e||0,t.format('<feColorMatrix type="hueRotate" values="{angle}"/>',{angle:e})},t.filter.hueRotate.toString=function(){return this()},t.filter.invert=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="table" tableValues="{amount} {amount2}"/><feFuncG type="table" tableValues="{amount} {amount2}"/><feFuncB type="table" tableValues="{amount} {amount2}"/></feComponentTransfer>',{amount:e,amount2:1-e})},t.filter.invert.toString=function(){return this()},t.filter.brightness=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}"/><feFuncG type="linear" slope="{amount}"/><feFuncB type="linear" slope="{amount}"/></feComponentTransfer>',{amount:e})},t.filter.brightness.toString=function(){return this()},t.filter.contrast=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}" intercept="{amount2}"/><feFuncG type="linear" slope="{amount}" intercept="{amount2}"/><feFuncB type="linear" slope="{amount}" intercept="{amount2}"/></feComponentTransfer>',{amount:e,amount2:.5-e/2})},t.filter.contrast.toString=function(){return this()}}),i})},{185:185}],188:[function(t,e,n){"use strict";var i=e.exports=t(187);i.plugin(function(t,e){e.prototype.children=function(){for(var e=[],n=this.node.childNodes,i=0,r=n.length;r>i;i++)e[i]=new t(n[i]);return e}}),i.plugin(function(t,e,n,i){function r(t){return t.split(/\s+/)}function o(t){return t.join(" ")}function a(t){return r(t.attr("class")||"")}function s(t,e){t.attr("class",o(e))}e.prototype.addClass=function(t){var e,n,i=a(this),o=r(t);for(e=0,n;n=o[e];e++)-1===i.indexOf(n)&&i.push(n);return s(this,i),this},e.prototype.hasClass=function(t){if(!t)throw new Error("[snapsvg] syntax: hasClass(clsStr)");return-1!==a(this).indexOf(t)},e.prototype.removeClass=function(t){var e,n,i,o=a(this),c=r(t);for(e=0,n;n=c[e];e++)i=o.indexOf(n),-1!==i&&o.splice(i,1);return s(this,o),this}}),i.plugin(function(t,e,n,i){e.prototype.translate=function(e,n){var i=new t.Matrix;return i.translate(e,n),this.transform(i)}}),i.plugin(function(t){t.create=function(e,n){return t._.wrap(t._.$(e,n))}}),i.plugin(function(t,e,n,i){t.createSnapAt=function(e,n,i){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");return r.setAttribute("width",e),r.setAttribute("height",n),i||(i=document.body),i.appendChild(r),new t(r)}})},{187:187}],189:[function(t,e,n){var i=function(t){return"[object Array]"===Object.prototype.toString.call(t)},r=function(){var t=Array.prototype.slice.call(arguments);1===t.length&&i(t[0])&&(t=t[0]);var e=t.pop();return e.$inject=t,e},o=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,a=/\/\*([^\*]*)\*\//m,s=function(t){if("function"!=typeof t)throw new Error('Cannot annotate "'+t+'". Expected a function!');var e=t.toString().match(o);return e[1]&&e[1].split(",").map(function(t){return e=t.match(a),e?e[1].trim():t.trim()})||[]};n.annotate=r,n.parse=s,n.isArray=i},{}],190:[function(t,e,n){e.exports={annotate:t(189).annotate,Module:t(192),Injector:t(191)}},{189:189,191:191,192:192}],191:[function(t,e,n){var i=t(192),r=t(189).parse,o=t(189).annotate,a=t(189).isArray,s=function(t,e){e=e||{get:function(t){throw n.push(t),l('No provider for "'+t+'"!')}};var n=[],c=this._providers=Object.create(e._providers||null),u=this._instances=Object.create(null),p=u.injector=this,l=function(t){var e=n.join(" -> ");return n.length=0,new Error(e?t+" (Resolving: "+e+")":t)},h=function(t){if(!c[t]&&-1!==t.indexOf(".")){for(var i=t.split("."),r=h(i.shift());i.length;)r=r[i.shift()];return r}if(Object.hasOwnProperty.call(u,t))return u[t];if(Object.hasOwnProperty.call(c,t)){if(-1!==n.indexOf(t))throw n.push(t),l("Cannot resolve circular dependency!");return n.push(t),u[t]=c[t][0](c[t][1]),n.pop(),u[t]}return e.get(t)},f=function(t){var e=Object.create(t.prototype),n=d(t,e);return"object"==typeof n?n:e},d=function(t,e){if("function"!=typeof t){if(!a(t))throw new Error('Cannot invoke "'+t+'". Expected a function!');t=o(t.slice())}var n=t.$inject&&t.$inject||r(t),i=n.map(function(t){return h(t)});return t.apply(e,i)},m=function(t){return o(function(e){return t.get(e)})},y=function(t,e){if(e&&e.length){var n,i,r,o,a=Object.create(null),u=Object.create(null),l=[],h=[],f=[];for(var d in c)n=c[d],-1!==e.indexOf(d)&&("private"===n[2]?(i=l.indexOf(n[3]),-1===i?(r=n[3].createChild([],e),o=m(r),l.push(n[3]),h.push(r),f.push(o),a[d]=[o,d,"private",r]):a[d]=[f[i],d,"private",h[i]]):a[d]=[n[2],n[1]],u[d]=!0),"factory"!==n[2]&&"type"!==n[2]||!n[1].$scope||e.forEach(function(t){-1!==n[1].$scope.indexOf(t)&&(a[d]=[n[2],n[1]],u[t]=!0)});e.forEach(function(t){if(!u[t])throw new Error('No provider for "'+t+'". Cannot use provider from the parent!')}),t.unshift(a)}return new s(t,p)},v={factory:d,type:f,value:function(t){return t}};t.forEach(function(t){function e(t,e){return"value"!==t&&a(e)&&(e=o(e.slice())),e}if(t instanceof i)t.forEach(function(t){var n=t[0],i=t[1],r=t[2];c[n]=[v[i],e(i,r),i]});else if("object"==typeof t)if(t.__exports__){var n=Object.keys(t).reduce(function(e,n){
+return"__"!==n.substring(0,2)&&(e[n]=t[n]),e},Object.create(null)),r=new s((t.__modules__||[]).concat([n]),p),u=o(function(t){return r.get(t)});t.__exports__.forEach(function(t){c[t]=[u,t,"private",r]})}else Object.keys(t).forEach(function(n){if("private"===t[n][2])return void(c[n]=t[n]);var i=t[n][0],r=t[n][1];c[n]=[v[i],e(i,r),i]})}),this.get=h,this.invoke=d,this.instantiate=f,this.createChild=y};e.exports=s},{189:189,192:192}],192:[function(t,e,n){var i=function(){var t=[];this.factory=function(e,n){return t.push([e,"factory",n]),this},this.value=function(e,n){return t.push([e,"value",n]),this},this.type=function(e,n){return t.push([e,"type",n]),this},this.forEach=function(e){t.forEach(e)}};e.exports=i},{}],193:[function(t,e,n){"use strict";function i(t){t=t||[128,36,1],this._seed=t.length?r.rack(t[0],t[1],t[2]):t}var r=t(194);e.exports=i,i.prototype.next=function(t){return this._seed(t||!0)},i.prototype.nextPrefixed=function(t,e){var n;do n=t+this.next(!0);while(this.assigned(n));return this.claim(n,e),n},i.prototype.claim=function(t,e){this._seed.set(t,e||!0)},i.prototype.assigned=function(t){return this._seed.get(t)||!1}},{194:194}],194:[function(t,e,n){var i=e.exports=function(t,e){if(e||(e=16),void 0===t&&(t=128),0>=t)return"0";for(var n=Math.log(Math.pow(2,t))/Math.log(e),r=2;n===1/0;r*=2)n=Math.log(Math.pow(2,t/r))/Math.log(e)*r;for(var o=n-Math.floor(n),a="",r=0;r<Math.floor(n);r++){var s=Math.floor(Math.random()*e).toString(e);a=s+a}if(o){var c=Math.pow(e,o),s=Math.floor(Math.random()*c).toString(e);a=s+a}var u=parseInt(a,e);return u!==1/0&&u>=Math.pow(2,t)?i(t,e):a};i.rack=function(t,e,n){var r=function(r){var a=0;do{if(a++>10){if(!n)throw new Error("too many ID collisions, use more bits");t+=n}var s=i(t,e)}while(Object.hasOwnProperty.call(o,s));return o[s]=r,s},o=r.hats={};return r.get=function(t){return r.hats[t]},r.set=function(t,e){return r.hats[t]=e,r},r.bits=t||128,r.base=e||16,r}},{}],195:[function(t,e,n){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},{}],196:[function(t,e,n){function i(t,e,n){var i=t?t.length:0;return n&&o(t,e,n)&&(e=!1),i?r(t,e):[]}var r=t(240),o=t(295);e.exports=i},{240:240,295:295}],197:[function(t,e,n){function i(t){var e=t?t.length:0;return e?t[e-1]:void 0}e.exports=i},{}],198:[function(t,e,n){function i(t,e,n,i){var c=t?t.length:0;return c?(null!=e&&"boolean"!=typeof e&&(i=n,n=a(t,e,i)?null:e,e=!1),n=null==n?n:r(n,i,3),e?s(t,n):o(t,n)):[]}var r=t(229),o=t(264),a=t(295),s=t(311);e.exports=i},{229:229,264:264,295:295,311:311}],199:[function(t,e,n){e.exports=t(198)},{198:198}],200:[function(t,e,n){function i(t){if(c(t)&&!s(t)&&!(t instanceof r)){if(t instanceof o)return t;if(l.call(t,"__chain__")&&l.call(t,"__wrapped__"))return u(t)}return new o(t)}var r=t(217),o=t(218),a=t(250),s=t(316),c=t(299),u=t(314),p=Object.prototype,l=p.hasOwnProperty;i.prototype=a.prototype,e.exports=i},{217:217,218:218,250:250,299:299,314:314,316:316}],201:[function(t,e,n){function i(t,e,n){var i=s(t)?r:a;return n&&c(t,e,n)&&(e=null),("function"!=typeof e||void 0!==n)&&(e=o(e,n,3)),i(t,e)}var r=t(222),o=t(229),a=t(236),s=t(316),c=t(295);e.exports=i},{222:222,229:229,236:236,295:295,316:316}],202:[function(t,e,n){function i(t,e,n){var i=s(t)?r:a;return e=o(e,n,3),i(t,e)}var r=t(223),o=t(229),a=t(237),s=t(316);e.exports=i},{223:223,229:229,237:237,316:316}],203:[function(t,e,n){var i=t(235),r=t(279),o=r(i);e.exports=o},{235:235,279:279}],204:[function(t,e,n){var i=t(221),r=t(235),o=t(280),a=o(i,r);e.exports=a},{221:221,235:235,280:280}],205:[function(t,e,n){var i=t(272),r=Object.prototype,o=r.hasOwnProperty,a=i(function(t,e,n){o.call(t,n)?t[n].push(e):t[n]=[e]});e.exports=a},{272:272}],206:[function(t,e,n){function i(t,e,n,i){var h=t?o(t):0;return c(h)||(t=p(t),h=t.length),h?(n="number"!=typeof n||i&&s(e,n,i)?0:0>n?l(h+n,0):n||0,"string"==typeof t||!a(t)&&u(t)?h>n&&t.indexOf(e,n)>-1:r(t,e,n)>-1):!1}var r=t(245),o=t(290),a=t(316),s=t(295),c=t(298),u=t(322),p=t(331),l=Math.max;e.exports=i},{245:245,290:290,295:295,298:298,316:316,322:322,331:331}],207:[function(t,e,n){function i(t,e,n){var i=s(t)?r:a;return e=o(e,n,3),i(t,e)}var r=t(224),o=t(229),a=t(251),s=t(316);e.exports=i},{224:224,229:229,251:251,316:316}],208:[function(t,e,n){var i=t(225),r=t(235),o=t(283),a=o(i,r);e.exports=a},{225:225,235:235,283:283}],209:[function(t,e,n){function i(t){var e=t?r(t):0;return o(e)?e:a(t).length}var r=t(290),o=t(298),a=t(326);e.exports=i},{290:290,298:298,326:326}],210:[function(t,e,n){function i(t,e,n){var i=s(t)?r:a;return n&&c(t,e,n)&&(e=null),("function"!=typeof e||void 0!==n)&&(e=o(e,n,3)),i(t,e)}var r=t(226),o=t(229),a=t(261),s=t(316),c=t(295);e.exports=i},{226:226,229:229,261:261,295:295,316:316}],211:[function(t,e,n){function i(t,e,n){if(null==t)return[];n&&c(t,e,n)&&(e=null);var i=-1;e=r(e,n,3);var u=o(t,function(t,n,r){return{criteria:e(t,n,r),index:++i,value:t}});return a(u,s)}var r=t(229),o=t(251),a=t(262),s=t(269),c=t(295);e.exports=i},{229:229,251:251,262:262,269:269,295:295}],212:[function(t,e,n){var i=t(318),r=i(r=Date.now)&&r,o=r||function(){return(new Date).getTime()};e.exports=o},{318:318}],213:[function(t,e,n){var i=t(284),r=t(307),o=t(216),a=1,s=32,c=o(function(t,e,n){var o=a;if(n.length){var u=r(n,c.placeholder);o|=s}return i(t,o,e,n,u)});c.placeholder={},e.exports=c},{216:216,284:284,307:307}],214:[function(t,e,n){function i(t,e,n){function i(){y&&clearTimeout(y),h&&clearTimeout(h),h=y=v=void 0}function c(){var n=e-(o()-d);if(0>=n||n>e){h&&clearTimeout(h);var i=v;h=y=v=void 0,i&&(g=o(),f=t.apply(m,l),y||h||(l=m=null))}else y=setTimeout(c,n)}function u(){y&&clearTimeout(y),h=y=v=void 0,(b||x!==e)&&(g=o(),f=t.apply(m,l),y||h||(l=m=null))}function p(){if(l=arguments,d=o(),m=this,v=b&&(y||!w),x===!1)var n=w&&!y;else{h||w||(g=d);var i=x-(d-g),r=0>=i||i>x;r?(h&&(h=clearTimeout(h)),g=d,f=t.apply(m,l)):h||(h=setTimeout(u,i))}return r&&y?y=clearTimeout(y):y||e===x||(y=setTimeout(c,e)),n&&(r=!0,f=t.apply(m,l)),!r||y||h||(l=m=null),f}var l,h,f,d,m,y,v,g=0,x=!1,b=!0;if("function"!=typeof t)throw new TypeError(a);if(e=0>e?0:+e||0,n===!0){var w=!0;b=!1}else r(n)&&(w=n.leading,x="maxWait"in n&&s(+n.maxWait||0,e),b="trailing"in n?n.trailing:b);return p.cancel=i,p}var r=t(320),o=t(212),a="Expected a function",s=Math.max;e.exports=i},{212:212,320:320}],215:[function(t,e,n){var i=t(233),r=t(216),o=r(function(t,e){return i(t,1,e)});e.exports=o},{216:216,233:233}],216:[function(t,e,n){function i(t,e){if("function"!=typeof t)throw new TypeError(r);return e=o(void 0===e?t.length-1:+e||0,0),function(){for(var n=arguments,i=-1,r=o(n.length-e,0),a=Array(r);++i<r;)a[i]=n[e+i];switch(e){case 0:return t.call(this,a);case 1:return t.call(this,n[0],a);case 2:return t.call(this,n[0],n[1],a)}var s=Array(e+1);for(i=-1;++i<e;)s[i]=n[i];return s[e]=a,t.apply(this,s)}}var r="Expected a function",o=Math.max;e.exports=i},{}],217:[function(t,e,n){function i(t){this.__wrapped__=t,this.__actions__=null,this.__dir__=1,this.__dropCount__=0,this.__filtered__=!1,this.__iteratees__=null,this.__takeCount__=a,this.__views__=null}var r=t(232),o=t(250),a=Number.POSITIVE_INFINITY;i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},{232:232,250:250}],218:[function(t,e,n){function i(t,e,n){this.__wrapped__=t,this.__actions__=n||[],this.__chain__=!!e}var r=t(232),o=t(250);i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},{232:232,250:250}],219:[function(t,e,n){(function(n){function i(t){var e=t?t.length:0;for(this.data={hash:s(null),set:new a};e--;)this.push(t[e])}var r=t(268),o=t(318),a=o(a=n.Set)&&a,s=o(s=Object.create)&&s;i.prototype.push=r,e.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{268:268,318:318}],220:[function(t,e,n){function i(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}e.exports=i},{}],221:[function(t,e,n){function i(t,e){for(var n=-1,i=t.length;++n<i&&e(t[n],n,t)!==!1;);return t}e.exports=i},{}],222:[function(t,e,n){function i(t,e){for(var n=-1,i=t.length;++n<i;)if(!e(t[n],n,t))return!1;return!0}e.exports=i},{}],223:[function(t,e,n){function i(t,e){for(var n=-1,i=t.length,r=-1,o=[];++n<i;){var a=t[n];e(a,n,t)&&(o[++r]=a)}return o}e.exports=i},{}],224:[function(t,e,n){function i(t,e){for(var n=-1,i=t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}e.exports=i},{}],225:[function(t,e,n){function i(t,e,n,i){var r=-1,o=t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}e.exports=i},{}],226:[function(t,e,n){function i(t,e){for(var n=-1,i=t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}e.exports=i},{}],227:[function(t,e,n){function i(t,e,n){var i=o(e);s.apply(i,r(e));for(var a=-1,c=i.length;++a<c;){var u=i[a],p=t[u],l=n(p,e[u],u,t,e);(l===l?l===p:p!==p)&&(void 0!==p||u in t)||(t[u]=l)}return t}var r=t(291),o=t(326),a=Array.prototype,s=a.push;e.exports=i},{291:291,326:326}],228:[function(t,e,n){var i=t(231),r=t(291),o=t(318),a=t(326),s=o(s=Object.preventExtensions)&&s,c=function(){var t=s&&o(t=Object.assign)&&t;try{if(t){var e=s({1:0});e[0]=1}}catch(n){try{t(e,"xo")}catch(n){}return!e[1]&&t}return!1}(),u=c||function(t,e){return null==e?t:i(e,r(e),i(e,a(e),t))};e.exports=u},{231:231,291:291,318:318,326:326}],229:[function(t,e,n){function i(t,e,n){var i=typeof t;return"function"==i?void 0===e?t:a(t,e,n):null==t?s:"object"==i?r(t):void 0===e?c(t):o(t,e)}var r=t(252),o=t(253),a=t(266),s=t(335),c=t(337);e.exports=i},{252:252,253:253,266:266,335:335,337:337}],230:[function(t,e,n){function i(t,e){if(t!==e){var n=t===t,i=e===e;if(t>e||!n||void 0===t&&i)return 1;if(e>t||!i||void 0===e&&n)return-1}return 0}e.exports=i},{}],231:[function(t,e,n){function i(t,e,n){n||(n={});for(var i=-1,r=e.length;++i<r;){var o=e[i];n[o]=t[o]}return n}e.exports=i},{}],232:[function(t,e,n){(function(n){var i=t(320),r=function(){function t(){}return function(e){if(i(e)){t.prototype=e;var r=new t;t.prototype=null}return r||n.Object()}}();e.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{320:320}],233:[function(t,e,n){function i(t,e,n){if("function"!=typeof t)throw new TypeError(r);return setTimeout(function(){t.apply(void 0,n)},e)}var r="Expected a function";e.exports=i},{}],234:[function(t,e,n){function i(t,e){var n=t?t.length:0,i=[];if(!n)return i;var s=-1,c=r,u=!0,p=u&&e.length>=200?a(e):null,l=e.length;p&&(c=o,u=!1,e=p);t:for(;++s<n;){var h=t[s];if(u&&h===h){for(var f=l;f--;)if(e[f]===h)continue t;i.push(h)}else c(e,h,0)<0&&i.push(h)}return i}var r=t(245),o=t(267),a=t(277);e.exports=i},{245:245,267:267,277:277}],235:[function(t,e,n){var i=t(243),r=t(274),o=r(i);e.exports=o},{243:243,274:274}],236:[function(t,e,n){function i(t,e){var n=!0;return r(t,function(t,i,r){return n=!!e(t,i,r)}),n}var r=t(235);e.exports=i},{235:235}],237:[function(t,e,n){function i(t,e){var n=[];return r(t,function(t,i,r){e(t,i,r)&&n.push(t)}),n}var r=t(235);e.exports=i},{235:235}],238:[function(t,e,n){function i(t,e,n,i){var r;return n(t,function(t,n,o){return e(t,n,o)?(r=i?n:t,!1):void 0}),r}e.exports=i},{}],239:[function(t,e,n){function i(t,e,n){for(var i=t.length,r=n?i:-1;n?r--:++r<i;)if(e(t[r],r,t))return r;return-1}e.exports=i},{}],240:[function(t,e,n){function i(t,e,n){for(var c=-1,u=t.length,p=-1,l=[];++c<u;){var h=t[c];if(s(h)&&a(h)&&(n||o(h)||r(h))){e&&(h=i(h,e,n));for(var f=-1,d=h.length;++f<d;)l[++p]=h[f]}else n||(l[++p]=h)}return l}var r=t(315),o=t(316),a=t(293),s=t(299);e.exports=i},{293:293,299:299,315:315,316:316}],241:[function(t,e,n){var i=t(275),r=i();e.exports=r},{275:275}],242:[function(t,e,n){function i(t,e){return r(t,e,o)}var r=t(241),o=t(327);e.exports=i},{241:241,327:327}],243:[function(t,e,n){function i(t,e){return r(t,e,o)}var r=t(241),o=t(326);e.exports=i},{241:241,326:326}],244:[function(t,e,n){function i(t,e,n){if(null!=t){void 0!==n&&n in r(t)&&(e=[n]);for(var i=-1,o=e.length;null!=t&&++i<o;)t=t[e[i]];return i&&i==o?t:void 0}}var r=t(312);e.exports=i},{312:312}],245:[function(t,e,n){function i(t,e,n){if(e!==e)return r(t,n);for(var i=n-1,o=t.length;++i<o;)if(t[i]===e)return i;return-1}var r=t(292);e.exports=i},{292:292}],246:[function(t,e,n){function i(t,e,n,o,a,s){if(t===e)return!0;var c=typeof t,u=typeof e;return"function"!=c&&"object"!=c&&"function"!=u&&"object"!=u||null==t||null==e?t!==t&&e!==e:r(t,e,i,n,o,a,s)}var r=t(247);e.exports=i},{247:247}],247:[function(t,e,n){function i(t,e,n,i,h,m,y){var v=s(t),g=s(e),x=p,b=p;v||(x=d.call(t),x==u?x=l:x!=l&&(v=c(t))),g||(b=d.call(e),b==u?b=l:b!=l&&(g=c(e)));var w=x==l,E=b==l,_=x==b;if(_&&!v&&!w)return o(t,e,x);if(!h){var S=w&&f.call(t,"__wrapped__"),T=E&&f.call(e,"__wrapped__");if(S||T)return n(S?t.value():t,T?e.value():e,i,h,m,y)}if(!_)return!1;m||(m=[]),y||(y=[]);for(var A=m.length;A--;)if(m[A]==t)return y[A]==e;m.push(t),y.push(e);var C=(v?r:a)(t,e,n,i,h,m,y);return m.pop(),y.pop(),C}var r=t(285),o=t(286),a=t(287),s=t(316),c=t(323),u="[object Arguments]",p="[object Array]",l="[object Object]",h=Object.prototype,f=h.hasOwnProperty,d=h.toString;e.exports=i},{285:285,286:286,287:287,316:316,323:323}],248:[function(t,e,n){function i(t){return"function"==typeof t||!1}e.exports=i},{}],249:[function(t,e,n){function i(t,e,n,i,o){for(var a=-1,s=e.length,c=!o;++a<s;)if(c&&i[a]?n[a]!==t[e[a]]:!(e[a]in t))return!1;for(a=-1;++a<s;){var u=e[a],p=t[u],l=n[a];if(c&&i[a])var h=void 0!==p||u in t;else h=o?o(p,l,u):void 0,void 0===h&&(h=r(l,p,o,!0));if(!h)return!1}return!0}var r=t(246);e.exports=i},{246:246}],250:[function(t,e,n){function i(){}e.exports=i},{}],251:[function(t,e,n){function i(t,e){var n=-1,i=o(t)?Array(t.length):[];return r(t,function(t,r,o){i[++n]=e(t,r,o)}),i}var r=t(235),o=t(293);e.exports=i},{235:235,293:293}],252:[function(t,e,n){function i(t){var e=s(t),n=e.length;if(!n)return o(!0);if(1==n){var i=e[0],u=t[i];if(a(u))return function(t){return null==t?!1:t[i]===u&&(void 0!==u||i in c(t))}}for(var p=Array(n),l=Array(n);n--;)u=t[e[n]],p[n]=u,l[n]=a(u);return function(t){return null!=t&&r(c(t),e,p,l)}}var r=t(249),o=t(334),a=t(300),s=t(326),c=t(312);e.exports=i},{249:249,300:300,312:312,326:326,334:334}],253:[function(t,e,n){function i(t,e){var n=s(t),i=c(t)&&u(e),f=t+"";return t=h(t),function(s){if(null==s)return!1;var c=f;if(s=l(s),!(!n&&i||c in s)){if(s=1==t.length?s:r(s,a(t,0,-1)),null==s)return!1;c=p(t),s=l(s)}return s[c]===e?void 0!==e||c in s:o(e,s[c],null,!0)}}var r=t(244),o=t(246),a=t(260),s=t(316),c=t(296),u=t(300),p=t(197),l=t(312),h=t(313);e.exports=i},{197:197,244:244,246:246,260:260,296:296,300:300,312:312,313:313,316:316}],254:[function(t,e,n){function i(t,e,n,f,m){if(!u(t))return t;var y=c(e)&&(s(e)||l(e));if(!y){var v=h(e);d.apply(v,a(e))}return r(v||e,function(r,a){if(v&&(a=r,r=e[a]),p(r))f||(f=[]),m||(m=[]),o(t,e,a,i,n,f,m);else{var s=t[a],c=n?n(s,r,a,t,e):void 0,u=void 0===c;u&&(c=r),!y&&void 0===c||!u&&(c===c?c===s:s!==s)||(t[a]=c)}}),t}var r=t(221),o=t(255),a=t(291),s=t(316),c=t(293),u=t(320),p=t(299),l=t(323),h=t(326),f=Array.prototype,d=f.push;e.exports=i},{221:221,255:255,291:291,293:293,299:299,316:316,320:320,323:323,326:326}],255:[function(t,e,n){function i(t,e,n,i,l,h,f){for(var d=h.length,m=e[n];d--;)if(h[d]==m)return void(t[n]=f[d]);var y=t[n],v=l?l(y,m,n,t,e):void 0,g=void 0===v;g&&(v=m,s(m)&&(a(m)||u(m))?v=a(y)?y:s(y)?r(y):[]:c(m)||o(m)?v=o(y)?p(y):c(y)?y:{}:g=!1),h.push(m),f.push(v),g?t[n]=i(v,m,l,h,f):(v===v?v!==y:y===y)&&(t[n]=v)}var r=t(220),o=t(315),a=t(316),s=t(293),c=t(321),u=t(323),p=t(324);e.exports=i},{220:220,293:293,315:315,316:316,321:321,323:323,324:324}],256:[function(t,e,n){function i(t){return function(e){return null==e?void 0:e[t]}}e.exports=i},{}],257:[function(t,e,n){function i(t){var e=t+"";return t=o(t),function(n){return r(n,t,e)}}var r=t(244),o=t(313);e.exports=i},{244:244,313:313}],258:[function(t,e,n){function i(t,e,n,i,r){return r(t,function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)}),n}e.exports=i},{}],259:[function(t,e,n){var i=t(335),r=t(302),o=r?function(t,e){return r.set(t,e),t}:i;e.exports=o},{302:302,335:335}],260:[function(t,e,n){function i(t,e,n){var i=-1,r=t.length;e=null==e?0:+e||0,0>e&&(e=-e>r?0:r+e),n=void 0===n||n>r?r:+n||0,0>n&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(r);++i<r;)o[i]=t[i+e];return o}e.exports=i},{}],261:[function(t,e,n){function i(t,e){var n;return r(t,function(t,i,r){return n=e(t,i,r),!n}),!!n}var r=t(235);e.exports=i},{235:235}],262:[function(t,e,n){function i(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}e.exports=i},{}],263:[function(t,e,n){function i(t){return"string"==typeof t?t:null==t?"":t+""}e.exports=i},{}],264:[function(t,e,n){function i(t,e){var n=-1,i=r,s=t.length,c=!0,u=c&&s>=200,p=u?a():null,l=[];p?(i=o,c=!1):(u=!1,p=e?[]:l);t:for(;++n<s;){var h=t[n],f=e?e(h,n,t):h;if(c&&h===h){for(var d=p.length;d--;)if(p[d]===f)continue t;e&&p.push(f),l.push(h)}else i(p,f,0)<0&&((e||u)&&p.push(f),l.push(h))}return l}var r=t(245),o=t(267),a=t(277);e.exports=i},{245:245,267:267,277:277}],265:[function(t,e,n){function i(t,e){for(var n=-1,i=e.length,r=Array(i);++n<i;)r[n]=t[e[n]];return r}e.exports=i},{}],266:[function(t,e,n){function i(t,e,n){if("function"!=typeof t)return r;if(void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,i,r){return t.call(e,n,i,r)};case 4:return function(n,i,r,o){return t.call(e,n,i,r,o)};case 5:return function(n,i,r,o,a){return t.call(e,n,i,r,o,a)}}return function(){return t.apply(e,arguments)}}var r=t(335);e.exports=i},{335:335}],267:[function(t,e,n){function i(t,e){var n=t.data,i="string"==typeof e||r(e)?n.set.has(e):n.hash[e];return i?0:-1}var r=t(320);e.exports=i},{320:320}],268:[function(t,e,n){function i(t){var e=this.data;"string"==typeof t||r(t)?e.set.add(t):e.hash[t]=!0}var r=t(320);e.exports=i},{320:320}],269:[function(t,e,n){function i(t,e){return r(t.criteria,e.criteria)||t.index-e.index}var r=t(230);e.exports=i},{230:230}],270:[function(t,e,n){function i(t,e,n){for(var i=n.length,o=-1,a=r(t.length-i,0),s=-1,c=e.length,u=Array(a+c);++s<c;)u[s]=e[s];for(;++o<i;)u[n[o]]=t[o];for(;a--;)u[s++]=t[o++];return u}var r=Math.max;e.exports=i},{}],271:[function(t,e,n){function i(t,e,n){for(var i=-1,o=n.length,a=-1,s=r(t.length-o,0),c=-1,u=e.length,p=Array(s+u);++a<s;)p[a]=t[a];for(var l=a;++c<u;)p[l+c]=e[c];for(;++i<o;)p[l+n[i]]=t[a++];return p}var r=Math.max;e.exports=i},{}],272:[function(t,e,n){function i(t,e){return function(n,i,s){var c=e?e():{};if(i=r(i,s,3),a(n))for(var u=-1,p=n.length;++u<p;){var l=n[u];t(c,l,i(l,u,n),n)}else o(n,function(e,n,r){t(c,e,i(e,n,r),r)});return c}}var r=t(229),o=t(235),a=t(316);e.exports=i},{229:229,235:235,316:316}],273:[function(t,e,n){function i(t){return a(function(e,n){var i=-1,a=null==e?0:n.length,s=a>2&&n[a-2],c=a>2&&n[2],u=a>1&&n[a-1];for("function"==typeof s?(s=r(s,u,5),a-=2):(s="function"==typeof u?u:null,a-=s?1:0),c&&o(n[0],n[1],c)&&(s=3>a?null:s,a=1);++i<a;){var p=n[i];p&&t(e,p,s)}return e})}var r=t(266),o=t(295),a=t(216);e.exports=i},{216:216,266:266,295:295}],274:[function(t,e,n){function i(t,e){return function(n,i){var s=n?r(n):0;if(!o(s))return t(n,i);for(var c=e?s:-1,u=a(n);(e?c--:++c<s)&&i(u[c],c,u)!==!1;);return n}}var r=t(290),o=t(298),a=t(312);e.exports=i},{290:290,298:298,312:312}],275:[function(t,e,n){function i(t){return function(e,n,i){for(var o=r(e),a=i(e),s=a.length,c=t?s:-1;t?c--:++c<s;){var u=a[c];if(n(o[u],u,o)===!1)break}return e}}var r=t(312);e.exports=i},{312:312}],276:[function(t,e,n){(function(n){function i(t,e){function i(){var r=this&&this!==n&&this instanceof i?o:t;return r.apply(e,arguments)}var o=r(t);return i}var r=t(278);e.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{278:278}],277:[function(t,e,n){(function(n){var i=t(219),r=t(334),o=t(318),a=o(a=n.Set)&&a,s=o(s=Object.create)&&s,c=s&&a?function(t){return new i(t)}:r(null);e.exports=c}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{219:219,318:318,334:334}],278:[function(t,e,n){function i(t){return function(){var e=r(t.prototype),n=t.apply(e,arguments);return o(n)?n:e}}var r=t(232),o=t(320);e.exports=i},{232:232,320:320}],279:[function(t,e,n){function i(t,e){return function(n,i,c){if(i=r(i,c,3),s(n)){var u=a(n,i,e);return u>-1?n[u]:void 0}return o(n,i,t)}}var r=t(229),o=t(238),a=t(239),s=t(316);e.exports=i},{229:229,238:238,239:239,316:316}],280:[function(t,e,n){function i(t,e){return function(n,i,a){return"function"==typeof i&&void 0===a&&o(n)?t(n,i):e(n,r(i,a,3))}}var r=t(266),o=t(316);e.exports=i},{266:266,316:316}],281:[function(t,e,n){(function(n){function i(t,e,w,E,_,S,T,A,C,M){function R(){for(var d=arguments.length,m=d,y=Array(d);m--;)y[m]=arguments[m];if(E&&(y=o(y,E,_)),S&&(y=a(y,S,T)),D||B){var x=R.placeholder,j=p(y,x);if(d-=j.length,M>d){var F=A?r(A):null,$=b(M-d,0),V=D?j:null,G=D?null:j,z=D?y:null,W=D?null:y;e|=D?v:g,e&=~(D?g:v),O||(e&=~(h|f));var U=[t,e,w,z,V,W,G,F,C,$],q=i.apply(void 0,U);return c(t)&&l(q,U),q.placeholder=x,q}}var H=P?w:this;k&&(t=H[L]),A&&(y=u(y,A)),N&&C<y.length&&(y.length=C);var Y=this&&this!==n&&this instanceof R?I||s(t):t;return Y.apply(H,y)}var N=e&x,P=e&h,k=e&f,D=e&m,O=e&d,B=e&y,I=!k&&s(t),L=t;return R}var r=t(220),o=t(270),a=t(271),s=t(278),c=t(297),u=t(306),p=t(307),l=t(308),h=1,f=2,d=4,m=8,y=16,v=32,g=64,x=128,b=Math.max;e.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{220:220,270:270,271:271,278:278,297:297,306:306,307:307,308:308}],282:[function(t,e,n){(function(n){function i(t,e,i,a){function s(){for(var e=-1,r=arguments.length,o=-1,p=a.length,l=Array(r+p);++o<p;)l[o]=a[o];for(;r--;)l[o++]=arguments[++e];var h=this&&this!==n&&this instanceof s?u:t;return h.apply(c?i:this,l)}var c=e&o,u=r(t);return s}var r=t(278),o=1;e.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{278:278}],283:[function(t,e,n){function i(t,e){return function(n,i,s,c){var u=arguments.length<3;return"function"==typeof i&&void 0===c&&a(n)?t(n,i,s,u):o(n,r(i,c,4),s,u,e)}}var r=t(229),o=t(258),a=t(316);e.exports=i},{229:229,258:258,316:316}],284:[function(t,e,n){function i(t,e,n,i,v,g,x,b){var w=e&h;if(!w&&"function"!=typeof t)throw new TypeError(m);var E=i?i.length:0;if(E||(e&=~(f|d),i=v=null),E-=v?v.length:0,e&d){var _=i,S=v;i=v=null}var T=w?null:c(t),A=[t,e,n,i,v,_,S,g,x,b];if(T&&(u(A,T),e=A[1],b=A[9]),A[9]=null==b?w?0:t.length:y(b-E,0)||0,e==l)var C=o(A[0],A[2]);else C=e!=f&&e!=(l|f)||A[4].length?a.apply(void 0,A):s.apply(void 0,A);var M=T?r:p;return M(C,A)}var r=t(259),o=t(276),a=t(281),s=t(282),c=t(288),u=t(301),p=t(308),l=1,h=2,f=32,d=64,m="Expected a function",y=Math.max;e.exports=i},{259:259,276:276,281:281,282:282,288:288,301:301,308:308}],285:[function(t,e,n){function i(t,e,n,i,r,o,a){var s=-1,c=t.length,u=e.length,p=!0;if(c!=u&&!(r&&u>c))return!1;for(;p&&++s<c;){var l=t[s],h=e[s];if(p=void 0,i&&(p=r?i(h,l,s):i(l,h,s)),void 0===p)if(r)for(var f=u;f--&&(h=e[f],!(p=l&&l===h||n(l,h,i,r,o,a))););else p=l&&l===h||n(l,h,i,r,o,a)}return!!p}e.exports=i},{}],286:[function(t,e,n){function i(t,e,n){switch(n){case r:case o:return+t==+e;case a:return t.name==e.name&&t.message==e.message;case s:return t!=+t?e!=+e:t==+e;case c:case u:return t==e+""}return!1}var r="[object Boolean]",o="[object Date]",a="[object Error]",s="[object Number]",c="[object RegExp]",u="[object String]";e.exports=i},{}],287:[function(t,e,n){function i(t,e,n,i,o,s,c){var u=r(t),p=u.length,l=r(e),h=l.length;if(p!=h&&!o)return!1;for(var f=o,d=-1;++d<p;){var m=u[d],y=o?m in e:a.call(e,m);if(y){var v=t[m],g=e[m];y=void 0,i&&(y=o?i(g,v,m):i(v,g,m)),void 0===y&&(y=v&&v===g||n(v,g,i,o,s,c))}if(!y)return!1;f||(f="constructor"==m)}if(!f){var x=t.constructor,b=e.constructor;if(x!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof x&&x instanceof x&&"function"==typeof b&&b instanceof b))return!1}return!0}var r=t(326),o=Object.prototype,a=o.hasOwnProperty;e.exports=i},{326:326}],288:[function(t,e,n){var i=t(302),r=t(336),o=i?function(t){return i.get(t)}:r;e.exports=o},{302:302,336:336}],289:[function(t,e,n){var i=t(256),r=t(334),o=t(305),a=t(333),s=function(){return a.funcNames?"constant"==r.name?i("name"):function(t){for(var e=t.name,n=o[e],i=n?n.length:0;i--;){var r=n[i],a=r.func;if(null==a||a==t)return r.name}return e}:r("")}();e.exports=s},{256:256,305:305,333:333,334:334}],290:[function(t,e,n){var i=t(256),r=i("length");e.exports=r},{256:256}],291:[function(t,e,n){var i=t(334),r=t(318),o=t(312),a=r(a=Object.getOwnPropertySymbols)&&a,s=a?function(t){return a(o(t))}:i([]);e.exports=s},{312:312,318:318,334:334}],292:[function(t,e,n){function i(t,e,n){for(var i=t.length,r=e+(n?0:-1);n?r--:++r<i;){var o=t[r];if(o!==o)return r}return-1}e.exports=i},{}],293:[function(t,e,n){function i(t){return null!=t&&o(r(t))}var r=t(290),o=t(298);e.exports=i},{290:290,298:298}],294:[function(t,e,n){function i(t,e){return t=+t,e=null==e?r:e,t>-1&&t%1==0&&e>t}var r=Math.pow(2,53)-1;e.exports=i},{}],295:[function(t,e,n){function i(t,e,n){if(!a(n))return!1;var i=typeof e;if("number"==i?r(n)&&o(e,n.length):"string"==i&&e in n){var s=n[e];return t===t?t===s:s!==s}return!1}var r=t(293),o=t(294),a=t(320);e.exports=i},{293:293,294:294,320:320}],296:[function(t,e,n){function i(t,e){var n=typeof t;if("string"==n&&s.test(t)||"number"==n)return!0;if(r(t))return!1;var i=!a.test(t);return i||null!=e&&t in o(e)}var r=t(316),o=t(312),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=i},{312:312,316:316}],297:[function(t,e,n){function i(t){var e=o(t);return!!e&&t===a[e]&&e in r.prototype}var r=t(217),o=t(289),a=t(200);e.exports=i},{200:200,217:217,289:289}],298:[function(t,e,n){function i(t){return"number"==typeof t&&t>-1&&t%1==0&&r>=t}var r=Math.pow(2,53)-1;e.exports=i},{}],299:[function(t,e,n){function i(t){return!!t&&"object"==typeof t}e.exports=i},{}],300:[function(t,e,n){function i(t){return t===t&&!r(t)}var r=t(320);e.exports=i},{320:320}],301:[function(t,e,n){function i(t,e){var n=t[1],i=e[1],m=n|i,y=l>m,v=i==l&&n==p||i==l&&n==h&&t[7].length<=e[8]||i==(l|h)&&n==p;if(!y&&!v)return t;i&c&&(t[2]=e[2],m|=n&c?0:u);var g=e[3];if(g){var x=t[3];t[3]=x?o(x,g,e[4]):r(g),t[4]=x?s(t[3],f):r(e[4])}return g=e[5],g&&(x=t[5],t[5]=x?a(x,g,e[6]):r(g),t[6]=x?s(t[5],f):r(e[6])),g=e[7],g&&(t[7]=r(g)),i&l&&(t[8]=null==t[8]?e[8]:d(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=m,t}var r=t(220),o=t(270),a=t(271),s=t(307),c=1,u=4,p=8,l=128,h=256,f="__lodash_placeholder__",d=Math.min;e.exports=i},{220:220,270:270,271:271,307:307}],302:[function(t,e,n){(function(n){var i=t(318),r=i(r=n.WeakMap)&&r,o=r&&new r;e.exports=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{318:318}],303:[function(t,e,n){function i(t,e){t=r(t);for(var n=-1,i=e.length,o={};++n<i;){var a=e[n];a in t&&(o[a]=t[a])}return o}var r=t(312);e.exports=i},{312:312}],304:[function(t,e,n){function i(t,e){var n={};return r(t,function(t,i,r){e(t,i,r)&&(n[i]=t)}),n}var r=t(242);e.exports=i},{242:242}],305:[function(t,e,n){var i={};e.exports=i},{}],306:[function(t,e,n){function i(t,e){for(var n=t.length,i=a(e.length,n),s=r(t);i--;){var c=e[i];t[i]=o(c,n)?s[c]:void 0}return t}var r=t(220),o=t(294),a=Math.min;e.exports=i},{220:220,294:294}],307:[function(t,e,n){function i(t,e){for(var n=-1,i=t.length,o=-1,a=[];++n<i;)t[n]===e&&(t[n]=r,a[++o]=n);return a}var r="__lodash_placeholder__";e.exports=i},{}],308:[function(t,e,n){var i=t(259),r=t(212),o=150,a=16,s=function(){var t=0,e=0;return function(n,s){var c=r(),u=a-(c-e);if(e=c,u>0){if(++t>=o)return n}else t=0;return i(n,s)}}();e.exports=s},{212:212,259:259}],309:[function(t,e,n){function i(t){var e;if(!o(t)||u.call(t)!=a||!c.call(t,"constructor")&&(e=t.constructor,"function"==typeof e&&!(e instanceof e)))return!1;var n;return r(t,function(t,e){n=e}),void 0===n||c.call(t,n)}var r=t(242),o=t(299),a="[object Object]",s=Object.prototype,c=s.hasOwnProperty,u=s.toString;e.exports=i},{242:242,299:299}],310:[function(t,e,n){function i(t){for(var e=c(t),n=e.length,i=n&&t.length,p=i&&s(i)&&(o(t)||u.nonEnumArgs&&r(t)),h=-1,f=[];++h<n;){var d=e[h];(p&&a(d,i)||l.call(t,d))&&f.push(d)}return f}var r=t(315),o=t(316),a=t(294),s=t(298),c=t(327),u=t(333),p=Object.prototype,l=p.hasOwnProperty;e.exports=i},{294:294,298:298,315:315,316:316,327:327,333:333}],311:[function(t,e,n){function i(t,e){for(var n,i=-1,r=t.length,o=-1,a=[];++i<r;){var s=t[i],c=e?e(s,i,t):s;i&&n===c||(n=c,a[++o]=s)}return a}e.exports=i},{}],312:[function(t,e,n){function i(t){return r(t)?t:Object(t)}var r=t(320);e.exports=i},{320:320}],313:[function(t,e,n){function i(t){if(o(t))return t;var e=[];return r(t).replace(a,function(t,n,i,r){e.push(i?r.replace(s,"$1"):n||t)}),e}var r=t(263),o=t(316),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,s=/\\(\\)?/g;e.exports=i},{263:263,316:316}],314:[function(t,e,n){function i(t){return t instanceof r?t.clone():new o(t.__wrapped__,t.__chain__,a(t.__actions__))}var r=t(217),o=t(218),a=t(220);e.exports=i},{217:217,218:218,220:220}],315:[function(t,e,n){function i(t){return o(t)&&r(t)&&c.call(t)==a}var r=t(293),o=t(299),a="[object Arguments]",s=Object.prototype,c=s.toString;e.exports=i},{293:293,299:299}],316:[function(t,e,n){var i=t(298),r=t(318),o=t(299),a="[object Array]",s=Object.prototype,c=s.toString,u=r(u=Array.isArray)&&u,p=u||function(t){return o(t)&&i(t.length)&&c.call(t)==a};e.exports=p},{298:298,299:299,318:318}],317:[function(t,e,n){(function(n){var i=t(248),r=t(318),o="[object Function]",a=Object.prototype,s=a.toString,c=r(c=n.Uint8Array)&&c,u=i(/x/)||c&&!i(c)?function(t){return s.call(t)==o}:i;e.exports=u}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{248:248,318:318}],318:[function(t,e,n){function i(t){return null==t?!1:p.call(t)==a?l.test(u.call(t)):o(t)&&s.test(t)}var r=t(332),o=t(299),a="[object Function]",s=/^\[object .+?Constructor\]$/,c=Object.prototype,u=Function.prototype.toString,p=c.toString,l=RegExp("^"+r(p).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=i},{299:299,332:332}],319:[function(t,e,n){function i(t){return"number"==typeof t||r(t)&&s.call(t)==o}var r=t(299),o="[object Number]",a=Object.prototype,s=a.toString;e.exports=i},{299:299}],320:[function(t,e,n){function i(t){var e=typeof t;return"function"==e||!!t&&"object"==e}e.exports=i},{}],321:[function(t,e,n){var i=t(318),r=t(309),o="[object Object]",a=Object.prototype,s=a.toString,c=i(c=Object.getPrototypeOf)&&c,u=c?function(t){if(!t||s.call(t)!=o)return!1;var e=t.valueOf,n=i(e)&&(n=c(e))&&c(n);return n?t==n||c(t)==n:r(t)}:r;e.exports=u},{309:309,318:318}],322:[function(t,e,n){function i(t){return"string"==typeof t||r(t)&&s.call(t)==o}var r=t(299),o="[object String]",a=Object.prototype,s=a.toString;e.exports=i},{299:299}],323:[function(t,e,n){function i(t){return o(t)&&r(t.length)&&!!R[P.call(t)]}var r=t(298),o=t(299),a="[object Arguments]",s="[object Array]",c="[object Boolean]",u="[object Date]",p="[object Error]",l="[object Function]",h="[object Map]",f="[object Number]",d="[object Object]",m="[object RegExp]",y="[object Set]",v="[object String]",g="[object WeakMap]",x="[object ArrayBuffer]",b="[object Float32Array]",w="[object Float64Array]",E="[object Int8Array]",_="[object Int16Array]",S="[object Int32Array]",T="[object Uint8Array]",A="[object Uint8ClampedArray]",C="[object Uint16Array]",M="[object Uint32Array]",R={};R[b]=R[w]=R[E]=R[_]=R[S]=R[T]=R[A]=R[C]=R[M]=!0,R[a]=R[s]=R[x]=R[c]=R[u]=R[p]=R[l]=R[h]=R[f]=R[d]=R[m]=R[y]=R[v]=R[g]=!1;var N=Object.prototype,P=N.toString;e.exports=i;
+},{298:298,299:299}],324:[function(t,e,n){function i(t){return r(t,o(t))}var r=t(231),o=t(327);e.exports=i},{231:231,327:327}],325:[function(t,e,n){var i=t(227),r=t(228),o=t(273),a=o(function(t,e,n){return n?i(t,e,n):r(t,e)});e.exports=a},{227:227,228:228,273:273}],326:[function(t,e,n){var i=t(293),r=t(318),o=t(320),a=t(310),s=r(s=Object.keys)&&s,c=s?function(t){var e=null!=t&&t.constructor;return"function"==typeof e&&e.prototype===t||"function"!=typeof t&&i(t)?a(t):o(t)?s(t):[]}:a;e.exports=c},{293:293,310:310,318:318,320:320}],327:[function(t,e,n){function i(t){if(null==t)return[];c(t)||(t=Object(t));var e=t.length;e=e&&s(e)&&(o(t)||u.nonEnumArgs&&r(t))&&e||0;for(var n=t.constructor,i=-1,p="function"==typeof n&&n.prototype===t,h=Array(e),f=e>0;++i<e;)h[i]=i+"";for(var d in t)f&&a(d,e)||"constructor"==d&&(p||!l.call(t,d))||h.push(d);return h}var r=t(315),o=t(316),a=t(294),s=t(298),c=t(320),u=t(333),p=Object.prototype,l=p.hasOwnProperty;e.exports=i},{294:294,298:298,315:315,316:316,320:320,333:333}],328:[function(t,e,n){var i=t(254),r=t(273),o=r(i);e.exports=o},{254:254,273:273}],329:[function(t,e,n){var i=t(224),r=t(234),o=t(240),a=t(266),s=t(327),c=t(303),u=t(304),p=t(216),l=p(function(t,e){if(null==t)return{};if("function"!=typeof e[0]){var e=i(o(e),String);return c(t,r(s(t),e))}var n=a(e[0],e[1],3);return u(t,function(t,e,i){return!n(t,e,i)})});e.exports=l},{216:216,224:224,234:234,240:240,266:266,303:303,304:304,327:327}],330:[function(t,e,n){var i=t(240),r=t(266),o=t(303),a=t(304),s=t(216),c=s(function(t,e){return null==t?{}:"function"==typeof e[0]?a(t,r(e[0],e[1],3)):o(t,i(e))});e.exports=c},{216:216,240:240,266:266,303:303,304:304}],331:[function(t,e,n){function i(t){return r(t,o(t))}var r=t(265),o=t(326);e.exports=i},{265:265,326:326}],332:[function(t,e,n){function i(t){return t=r(t),t&&a.test(t)?t.replace(o,"\\$&"):t}var r=t(263),o=/[.*+?^${}()|[\]\/\\]/g,a=RegExp(o.source);e.exports=i},{263:263}],333:[function(t,e,n){(function(t){var n=Object.prototype,i=(i=t.window)&&i.document,r=n.propertyIsEnumerable,o={};!function(t){var e=function(){this.x=t},n=arguments,a=[];e.prototype={valueOf:t,y:t};for(var s in new e)a.push(s);o.funcDecomp=/\bthis\b/.test(function(){return this}),o.funcNames="string"==typeof Function.name;try{o.dom=11===i.createDocumentFragment().nodeType}catch(c){o.dom=!1}try{o.nonEnumArgs=!r.call(n,1)}catch(c){o.nonEnumArgs=!0}}(1,0),e.exports=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],334:[function(t,e,n){function i(t){return function(){return t}}e.exports=i},{}],335:[function(t,e,n){function i(t){return t}e.exports=i},{}],336:[function(t,e,n){function i(){}e.exports=i},{}],337:[function(t,e,n){function i(t){return a(t)?r(t):o(t)}var r=t(256),o=t(257),a=t(296);e.exports=i},{256:256,257:257,296:296}],338:[function(t,e,n){e.exports=function(t,e,n){return 2==arguments.length?t.getAttribute(e):null===n?t.removeAttribute(e):(t.setAttribute(e,n),t)}},{}],339:[function(t,e,n){e.exports=t(348)},{348:348}],340:[function(t,e,n){e.exports=function(t){for(var e;t.childNodes.length;)e=t.childNodes[0],t.removeChild(e);return t}},{}],341:[function(t,e,n){e.exports=t(350)},{350:350}],342:[function(t,e,n){e.exports=t(351)},{351:351}],343:[function(t,e,n){e.exports=t(355)},{355:355}],344:[function(t,e,n){e.exports=t(352)},{352:352}],345:[function(t,e,n){e.exports=t(353)},{353:353}],346:[function(t,e,n){e.exports=t(354)},{354:354}],347:[function(t,e,n){e.exports=function(t){t.parentNode&&t.parentNode.removeChild(t)}},{}],348:[function(t,e,n){function i(t){if(!t||!t.nodeType)throw new Error("A DOM element reference is required");this.el=t,this.list=t.classList}var r=t(349),o=/\s+/,a=Object.prototype.toString;e.exports=function(t){return new i(t)},i.prototype.add=function(t){if(this.list)return this.list.add(t),this;var e=this.array(),n=r(e,t);return~n||e.push(t),this.el.className=e.join(" "),this},i.prototype.remove=function(t){if("[object RegExp]"==a.call(t))return this.removeMatching(t);if(this.list)return this.list.remove(t),this;var e=this.array(),n=r(e,t);return~n&&e.splice(n,1),this.el.className=e.join(" "),this},i.prototype.removeMatching=function(t){for(var e=this.array(),n=0;n<e.length;n++)t.test(e[n])&&this.remove(e[n]);return this},i.prototype.toggle=function(t,e){return this.list?("undefined"!=typeof e?e!==this.list.toggle(t,e)&&this.list.toggle(t):this.list.toggle(t),this):("undefined"!=typeof e?e?this.add(t):this.remove(t):this.has(t)?this.remove(t):this.add(t),this)},i.prototype.array=function(){var t=this.el.getAttribute("class")||"",e=t.replace(/^\s+|\s+$/g,""),n=e.split(o);return""===n[0]&&n.shift(),n},i.prototype.has=i.prototype.contains=function(t){return this.list?this.list.contains(t):!!~r(this.array(),t)}},{349:349}],349:[function(t,e,n){e.exports=function(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0;n<t.length;++n)if(t[n]===e)return n;return-1}},{}],350:[function(t,e,n){var i=t(353);e.exports=function(t,e,n,r){for(t=n?{parentNode:t}:t,r=r||document;(t=t.parentNode)&&t!==document;){if(i(t,e))return t;if(t===r)return}}},{353:353}],351:[function(t,e,n){var i=t(350),r=t(352);n.bind=function(t,e,n,o,a){return r.bind(t,n,function(n){var r=n.target||n.srcElement;n.delegateTarget=i(r,e,!0,t),n.delegateTarget&&o.call(t,n)},a)},n.unbind=function(t,e,n,i){r.unbind(t,e,n,i)}},{350:350,352:352}],352:[function(t,e,n){var i=window.addEventListener?"addEventListener":"attachEvent",r=window.removeEventListener?"removeEventListener":"detachEvent",o="addEventListener"!==i?"on":"";n.bind=function(t,e,n,r){return t[i](o+e,n,r||!1),n},n.unbind=function(t,e,n,i){return t[r](o+e,n,i||!1),n}},{}],353:[function(t,e,n){function i(t,e){if(!t||1!==t.nodeType)return!1;if(a)return a.call(t,e);for(var n=r.all(e,t.parentNode),i=0;i<n.length;++i)if(n[i]==t)return!0;return!1}var r=t(354),o=Element.prototype,a=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector;e.exports=i},{354:354}],354:[function(t,e,n){function i(t,e){return e.querySelector(t)}n=e.exports=function(t,e){return e=e||document,i(t,e)},n.all=function(t,e){return e=e||document,e.querySelectorAll(t)},n.engine=function(t){if(!t.one)throw new Error(".one callback required");if(!t.all)throw new Error(".all callback required");return i=t.one,n.all=t.all,n}},{}],355:[function(t,e,n){function i(t,e){if("string"!=typeof t)throw new TypeError("String expected");e||(e=document);var n=/<([\w:]+)/.exec(t);if(!n)return e.createTextNode(t);t=t.replace(/^\s+|\s+$/g,"");var i=n[1];if("body"==i){var r=e.createElement("html");return r.innerHTML=t,r.removeChild(r.lastChild)}var o=a[i]||a._default,s=o[0],c=o[1],u=o[2],r=e.createElement("div");for(r.innerHTML=c+t+u;s--;)r=r.lastChild;if(r.firstChild==r.lastChild)return r.removeChild(r.firstChild);for(var p=e.createDocumentFragment();r.firstChild;)p.appendChild(r.removeChild(r.firstChild));return p}e.exports=i;var r=document.createElement("div");r.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>';var o=!r.getElementsByTagName("link").length;r=void 0;var a={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:o?[1,"X<div>","</div>"]:[0,"",""]};a.td=a.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],a.option=a.optgroup=[1,'<select multiple="multiple">',"</select>"],a.thead=a.tbody=a.colgroup=a.caption=a.tfoot=[1,"<table>","</table>"],a.polyline=a.ellipse=a.polygon=a.circle=a.text=a.line=a.path=a.rect=a.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"]},{}],356:[function(t,e,n){e.exports=t(358),e.exports.Collection=t(357)},{357:357,358:358}],357:[function(t,e,n){"use strict";function i(t,e,n,i){var r=n.inverse;return t.remove=function(t){var n=this.indexOf(t);return-1!==n&&(this.splice(n,1),e.unset(t,r,i)),t},t.contains=function(t){return-1!==this.indexOf(t)},t.add=function(t){this.contains(t)||(this.push(t),e.set(t,r,i))},t}e.exports.extend=i},{}],358:[function(t,e,n){"use strict";function i(t,e){return Object.prototype.hasOwnProperty.call(t,e.name||e)}function r(t,e,n){Object.defineProperty(n,e.name,{enumerable:e.enumerable,value:s.extend(n[e.name]||[],t,e,n)})}function o(t,e,n){var i=e.inverse,r=n[e.name];Object.defineProperty(n,e.name,{enumerable:e.enumerable,get:function(){return r},set:function(e){if(e!==r){var o=r;r=null,o&&t.unset(o,i,n),r=e,t.set(r,i,n)}}})}function a(t,e){return this instanceof a?(t.inverse=e,e.inverse=t,this.props={},this.props[t.name]=t,void(this.props[e.name]=e)):new a(t,e)}var s=t(357);a.prototype.bind=function(t,e){if("string"==typeof e){if(!this.props[e])throw new Error("no property <"+e+"> in ref");e=this.props[e]}e.collection?r(this,e,t):o(this,e,t)},a.prototype.ensureBound=function(t,e){i(t,e)||this.bind(t,e)},a.prototype.unset=function(t,e,n){t&&(this.ensureBound(t,e),e.collection?t[e.name].remove(n):t[e.name]=void 0)},a.prototype.set=function(t,e,n){t&&(this.ensureBound(t,e),e.collection?t[e.name].add(n):t[e.name]=n)},e.exports=a},{357:357}]},{},[1])(1)}); \ No newline at end of file