UNPKG

mume-with-litvis

Version:

Fork of mume with added http://litvis.org/

7 lines 269 kB
(function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="5a74")})({"01f9":function(t,e,n){"use strict";var r=n("2d00"),o=n("5ca1"),i=n("2aba"),s=n("32e9"),a=n("84f2"),c=n("41a0"),u=n("7f20"),p=n("38fd"),l=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",d="keys",y="values",g=function(){return this};t.exports=function(t,e,n,x,m,v,_){c(n,e,x);var E,T,S,C=function(t){if(!h&&t in O)return O[t];switch(t){case d:return function(){return new n(this,t)};case y:return function(){return new n(this,t)}}return function(){return new n(this,t)}},A=e+" Iterator",R=m==y,b=!1,O=t.prototype,L=O[l]||O[f]||m&&O[m],N=L||C(m),k=m?R?C("entries"):N:void 0,I="Array"==e&&O.entries||L;if(I&&(S=p(I.call(new t)),S!==Object.prototype&&S.next&&(u(S,A,!0),r||"function"==typeof S[l]||s(S,l,g))),R&&L&&L.name!==y&&(b=!0,N=function(){return L.call(this)}),r&&!_||!h&&!b&&O[l]||s(O,l,N),a[e]=N,a[A]=g,m)if(E={values:R?N:C(y),keys:v?N:C(d),entries:k},_)for(T in E)T in O||i(O,T,E[T]);else o(o.P+o.F*(h||b),e,E);return E}},"068a":function(t,e,n){"use strict";n.r(e);var r=n("b1d6"),o=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},"078e":function(t,e,n){var r=n("ff7e");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("35d6").default;t.exports.__inject__=function(t){o("fe7baf26",r,t)}},"0a28":function(t,e,n){e=t.exports=n("c356")(!1),e.push([t.i,".occurrence{margin-top:-2px}",""])},"0c7c":function(t,e,n){"use strict";function r(t,e,n,r,o,i,s,a){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var p=u.render;u.render=function(t,e){return c.call(e),p(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,c):[c]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},"0d31":function(t,e,n){var r=n("9508");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("35d6").default;t.exports.__inject__=function(t){o("2dc03c4f",r,t)}},"0d58":function(t,e,n){var r=n("ce10"),o=n("e11e");t.exports=Object.keys||function(t){return r(t,o)}},1169:function(t,e,n){var r=n("2d95");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"11e9":function(t,e,n){var r=n("52a7"),o=n("4630"),i=n("6821"),s=n("6a99"),a=n("69a8"),c=n("c69a"),u=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?u:function(t,e){if(t=i(t),e=s(e,!0),c)try{return u(t,e)}catch(n){}if(a(t,e))return o(!r.f.call(t,e),t[e])}},"11f4":function(t,e,n){e=t.exports=n("c356")(!1),e.push([t.i,".self>.comments{-webkit-transform:translateY(-4px);transform:translateY(-4px)}",""])},1217:function(t,e,n){e=t.exports=n("c356")(!1),e.push([t.i,".comments{position:relative;text-align:left;border:1px solid transparent;background:#fff;padding:5px;width:500px;font-size:.8em;font-style:italic;line-height:1em;opacity:.5}.comments:hover{color:#000}.fragment>.comments{width:100%;border-bottom:1px solid grey;border-top:none;border-left:none;border-right:none}",""])},1495:function(t,e,n){var r=n("86cc"),o=n("cb7c"),i=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){o(t);var n,s=i(e),a=s.length,c=0;while(a>c)r.f(t,n=s[c++],e[n]);return t}},"14df":function(t,e,n){e=t.exports=n("c356")(!1),e.push([t.i,".divider{border-bottom-width:1px;margin:10px 4px}",""])},"15b5":function(t,e,n){var r=n("11f4");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("35d6").default;t.exports.__inject__=function(t){o("443282c9",r,t)}},"161b":function(t,e,n){"use strict";n.r(e);var r=n("5c47"),o=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},"201e":function(t,e,n){"use strict";n.r(e);var r=n("ef2e"),o=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},2083:function(t,e,n){"use strict";n.r(e);var r=n("9491"),o=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},"214f":function(t,e,n){"use strict";var r=n("32e9"),o=n("2aba"),i=n("79e5"),s=n("be13"),a=n("2b4c");t.exports=function(t,e,n){var c=a(t),u=n(s,c,""[t]),p=u[0],l=u[1];i((function(){var e={};return e[c]=function(){return 7},7!=""[t](e)}))&&(o(String.prototype,t,p),r(RegExp.prototype,c,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)}))}},"230e":function(t,e,n){var r=n("d3f4"),o=n("7726").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"24cb":function(t,e,n){var r=n("5157");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("35d6").default;t.exports.__inject__=function(t){o("4bc27ab8",r,t)}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,n){var r=n("7726"),o=n("32e9"),i=n("69a8"),s=n("ca5a")("src"),a="toString",c=Function[a],u=(""+c).split(a);n("8378").inspectSource=function(t){return c.call(t)},(t.exports=function(t,e,n,a){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,s)||o(n,s,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,a,(function(){return"function"==typeof this&&this[s]||c.call(this)}))},"2aeb":function(t,e,n){var r=n("cb7c"),o=n("1495"),i=n("e11e"),s=n("613b")("IE_PROTO"),a=function(){},c="prototype",u=function(){var t,e=n("230e")("iframe"),r=i.length,o="<",s=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+s+"document.F=Object"+o+"/script"+s),t.close(),u=t.F;while(r--)delete u[c][i[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[c]=r(t),n=new a,a[c]=null,n[s]=t):n=u(),void 0===e?n:o(n,e)}},"2b4c":function(t,e,n){var r=n("5537")("wks"),o=n("ca5a"),i=n("7726").Symbol,s="function"==typeof i,a=t.exports=function(t){return r[t]||(r[t]=s&&i[t]||(s?i:o)("Symbol."+t))};a.store=r},"2d00":function(t,e){t.exports=!1},"2d65":function(t,e,n){"use strict";n.r(e);var r=n("b22a"),o=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2efe":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",t._l(t.statements,(function(e,r){return n("div",{key:r},[n("statement",{attrs:{context:e,from:t.from,offset:t.offset}})],1)})))},o=[],i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.subStatement,{tag:"component",attrs:{context:t.context,from:t.from,comment:t.comment,offset:t.offset}})},s=[],a=(n("ac6a"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"interaction creation sync",class:{"right-to-left":t.rightToLeft},style:{width:Math.abs(t.interactionWidth)+"px"},attrs:{signature:t.signature}},[t.comment?n("comment",{attrs:{comment:t.comment}}):t._e(),n("message",{staticClass:"invocation",style:{width:t.invocationWidth+"px"},attrs:{content:t.signature,rtl:t.rightToLeft,type:"creation"}}),n("div",{staticClass:"participant place-holder"},[n("label",{staticClass:"name"},[t._v(t._s(t.to))])]),n("occurrence",{attrs:{context:t.creation,participant:t.to}}),t.assignee?n("message",{staticClass:"return",attrs:{content:t.assignee,rtl:!t.rightToLeft,type:"return"}}):t._e()],1)}),c=[],u=n("c93e"),p=n("2f62"),l=n("4ea3"),h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"message",style:{"border-bottom-style":t.borderStyle}},[n("div",{staticClass:"name"},[t._v(t._s(t.content))]),n("point",{attrs:{fill:"true",rtl:t.rtl}})],1)},f=[],d=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"point",class:{fill:t.fill,"right-to-left":t.rtl}},[n("svg",{staticClass:"arrow",attrs:{height:"20"}},[n("polyline",{staticClass:"right",attrs:{points:"0,7 10,13 0,19"}}),n("polyline",{staticClass:"left",attrs:{points:"10,7 0,13 10,19"}})])])},y=[],g={name:"point",props:["fill","rtl"]},x=g,m=n("0c7c");function v(t){var e=n("3fc2");e.__inject__&&e.__inject__(t)}var _=Object(m["a"])(x,d,y,!1,v,null,null,!0),E=_.exports,T={name:"message",props:["content","rtl","type"],computed:{borderStyle(){switch(this.type){case"sync":case"async":case"creation":return"solid";case"return":return"dashed"}}},components:{Point:E}},S=T;function C(t){var e=n("f87e");e.__inject__&&e.__inject__(t)}var A=Object(m["a"])(S,h,f,!1,C,null,null,!0),R=A.exports,b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"occurrence"},[this.context.block()?n("block",{attrs:{context:t.context.block(),from:t.participant,offset:t.offset}}):t._e()],1)},O=[],L={name:"occurrence",props:["context","participant","offset"],beforeCreate:function(){this.$options.components.Block=n("2efe").default}},N=L;function k(t){var e=n("6f08");e.__inject__&&e.__inject__(t)}var I=Object(m["a"])(N,b,O,!1,k,null,null,!0),P=I.exports,w={name:"creation",props:["from","context","comment","offset"],computed:Object(u["a"])({},Object(p["b"])(["distance","centerOf","rightOf","leftOf","widthOf"]),{creation:function(){return this.context.creation()},interactionWidth:function(){var t=this.$store.getters.distance(this.to,this.from),e=this.offset||0;return Math.abs(t)-e},invocationWidth:function(){var t=this.offset||0;return this.rightToLeft?this.centerOf(this.from)-this.rightOf(this.to)-t+8:this.leftOf(this.to)-this.centerOf(this.from)-t-8},rightToLeft:function(){return this.distance(this.to,this.from)<0},signature:function(){var t=this.creation.parameters(),e=t&&t.parameter()&&t.parameter().length>0?t.getCode():"create";return"«"+e+"»"},assignee:function(){function t(t){return t&&t.getCode()||""}var e=this.creation.assignment();if(!e)return"";var n=t(e.assignee()),r=t(e.type());return n+(r?":"+r:"")},to:function(){var t=this.creation.assignment()&&this.creation.assignment().assignee().getText(),e=this.creation.constructor().getText();return t?t+":"+e:e}}),components:{Comment:l["default"],Occurrence:P,Message:R}},D=w;function M(t){var e=n("52d2");e.__inject__&&e.__inject__(t)}var F=Object(m["a"])(D,a,c,!1,M,null,null,!0),j=F.exports,U=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"interaction sync",class:{"right-to-left":t.rightToLeft},style:{width:t.interactionWidth+"px"},attrs:{signature:t.signature}},[t.comment?n("comment",{attrs:{comment:t.comment}}):t._e(),n("message",{attrs:{content:t.signature,rtl:t.rightToLeft,type:"sync"}}),n("occurrence",{attrs:{context:t.message,participant:t.to,offset:0}}),t.assignee?n("message",{staticClass:"return",attrs:{content:t.assignee,rtl:!t.rightToLeft,type:"return"}}):t._e()],1)},B=[],H={name:"interaction",props:["from","context","comment","offset"],computed:{message:function(){return this.context.message()},interactionWidth:function(){var t=this.$store.getters.distance(this.to,this.from),e=this.offset||0;return t<0?Math.abs(t)+e:Math.abs(t)-e},occurrenceLeft:function(){return this.rightToLeft?-14:this.interactionWidth-14},rightToLeft:function(){return this.$store.getters.distance(this.to,this.from)<0},signature:function(){return this.message.func().signature().getCode()},assignee:function(){function t(t){return t&&t.getCode()||""}var e=this.message.assignment();if(!e)return"";var n=t(e.assignee()),r=t(e.type());return n+(r?":"+r:"")},to:function(){return this.message.func().to().getCode()}},components:{Message:R,Comment:l["default"],Occurrence:P}},$=H;function V(t){var e=n("9456");e.__inject__&&e.__inject__(t)}var q=Object(m["a"])($,U,B,!1,V,null,null,!0),z=q.exports,W=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"interaction async",class:{"right-to-left":t.rightToLeft},style:{width:Math.abs(t.interactionWidth)+"px",left:t.left+"px"},attrs:{signature:t.signature}},[t.comment?n("comment",{attrs:{comment:t.comment}}):t._e(),n("message",{attrs:{content:t.signature,rtl:t.rightToLeft,type:"async"}}),n("div",{staticClass:"invisible-occurrence"})],1)},G=[],Y=(n("a481"),{name:"interaction-async",props:["from","context","comment"],computed:{asyncMessage:function(){return this.context.asyncMessage()},interactionWidth:function(){return this.$store.getters.distance(this.target,this.source)},left:function(){return this.rightToLeft?this.$store.getters.distance(this.target,this.from):this.$store.getters.distance(this.source,this.from)},rightToLeft:function(){return this.$store.getters.distance(this.target,this.source)<0},signature:function(){return this.asyncMessage.content().getCode().replace(/^:+/g,"")},source:function(){return this.asyncMessage.source().getCode()},target:function(){return this.asyncMessage.target().getCode()}},components:{Comment:l["default"],Message:R}}),K=Y;function Q(t){var e=n("77ae");e.__inject__&&e.__inject__(t)}var X=Object(m["a"])(K,W,G,!1,Q,null,null,!0),J=X.exports,Z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"interaction self sync",attrs:{signature:t.signature}},[t.comment?n("comment",{attrs:{comment:t.comment}}):t._e(),n("self-invocation",{attrs:{signature:t.signature,assignee:t.assignee}}),n("occurrence",{attrs:{context:t.message,participant:t.from,offset:(t.offset||0)+6}})],1)},tt=[],et=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"message self"},[n("svg",{staticClass:"arrow",attrs:{width:"44",height:"34"}},[n("polyline",{attrs:{points:"0,2 28,2 28,25 14,25"}}),n("polyline",{staticClass:"head",attrs:{points:"18,19 8,25 18,31"}})]),n("div",{staticClass:"name"},[t.assignee?n("span",[t._v(t._s(t.assignee)+" = ")]):t._e(),t._v(" "+t._s(t.signature))])])},nt=[],rt={name:"self-invocation",props:["signature","assignee"]},ot=rt;function it(t){var e=n("201e");e.__inject__&&e.__inject__(t)}var st=Object(m["a"])(ot,et,nt,!1,it,null,null,!0),at=st.exports,ct={name:"self-interaction",props:["from","context","comment","offset"],computed:{message:function(){return this.context.message()},assignee:function(){function t(t){return t&&t.getCode()||""}var e=this.message.assignment();if(!e)return"";var n=t(e.assignee()),r=t(e.type());return n+(r?":"+r:"")},signature:function(){return this.message.func().signature().getCode()}},components:{Comment:l["default"],SelfInvocation:at,Occurrence:P}},ut=ct;function pt(t){}var lt=Object(m["a"])(ut,Z,tt,!1,pt,null,null,!0),ht=lt.exports,ft=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"interaction self async",style:{left:t.left+"px"},attrs:{signature:t.signature}},[t.comment?n("comment",{attrs:{comment:t.comment}}):t._e(),n("self-invocation-async",{attrs:{signature:t.signature}})],1)},dt=[],yt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"message self"},[n("svg",{staticClass:"arrow",attrs:{width:"44",height:"34"}},[n("polyline",{attrs:{points:"0,2 28,2 28,25 1,25"}}),n("polyline",{staticClass:"head",attrs:{points:"11,19 1,25 11,31"}})]),n("div",{staticClass:"name"},[t.assignee?n("span",[t._v(t._s(t.assignee)+" = ")]):t._e(),t._v(" "+t._s(t.signature))])])},gt=[],xt={name:"self-invocation-async",props:["signature","assignee"]},mt=xt;function vt(t){var e=n("9964");e.__inject__&&e.__inject__(t)}var _t=Object(m["a"])(mt,yt,gt,!1,vt,null,null,!0),Et=_t.exports,Tt={name:"self-interaction-async",props:["from","context","comment"],computed:{asyncMessage:function(){return this.context.asyncMessage()},left:function(){return this.$store.getters.distance(this.to,this.from)},signature:function(){return this.asyncMessage.content().getCode().replace(/^:+/g,"")},to:function(){return this.asyncMessage.target().getCode()}},components:{Comment:l["default"],SelfInvocationAsync:Et,Occurrence:P}},St=Tt;function Ct(t){var e=n("8b89");e.__inject__&&e.__inject__(t)}var At=Object(m["a"])(St,ft,dt,!1,Ct,null,null,!0),Rt=At.exports,bt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fragment alt",style:t.fragmentStyle},[t.comment?n("comment",{attrs:{comment:t.comment}}):t._e(),n("div",{staticClass:"header"},[t._m(0),n("label",{staticClass:"condition"},[t._v("["+t._s(t.condition)+"]")])]),n("block",{style:t.blockStyle,attrs:{context:t.alt.ifBlock().braceBlock().block(),from:t.from,offset:t.offset}}),t._l(t.alt.elseIfBlock(),(function(e,r){return[n("div",{key:r,staticClass:"divider"}),n("div",{key:r+100,staticClass:"name"},[t._v("else if ["+t._s(e.parExpr().expr().getCode())+"]")]),n("block",{key:r+1e3,style:t.blockStyle,attrs:{context:e.braceBlock().block(),from:t.from,offset:t.offset}})]})),t.alt.elseBlock()?[n("div",{staticClass:"divider"}),n("div",{staticClass:"name"},[t._v("else")]),n("block",{style:t.blockStyle,attrs:{context:t.alt.elseBlock().braceBlock().block(),from:t.from,offset:t.offset}})]:t._e()],2)},Ot=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"name"},[n("label",[t._v("Alt")])])}],Lt=n("d57e"),Nt=n.n(Lt),kt={computed:{boundary:function(){var t=this,e=[this.from,...Nt.a.Participants(this.context)].map((function(e){return t.$store.getters.leftOf(e)})),n=[this.from,...Nt.a.Participants(this.context)].map((function(e){return t.$store.getters.rightOf(e)})),r=Math.max(20,Math.min(...e)),o=Math.max(...n);return{min:r,max:o,width:Math.max(o-r,100)}},depth:function(){return Nt.a.Depth(this.context)},centerOfFrom:function(){return this.$store.getters.centerOf(this.from)},offsetX:function(){var t=10*this.depth;return this.centerOfFrom-this.boundary.min+t},fragmentStyle:function(){return{transform:"translateX("+-1*this.offsetX+"px)",width:this.boundary.width+20*this.depth+50+"px"}},blockStyle:function(){return{marginLeft:this.offsetX-1+"px"}}}},It={name:"fragment-alt",props:["from","context","comment","offset"],mixins:[kt],computed:{alt:function(){return this.context.alt()},condition:function(){return this.alt.ifBlock().parExpr().expr().getCode()}},beforeCreate:function(){this.$options.components.Block=n("2efe").default,this.$options.components.Comment=n("4ea3").default}},Pt=It;function wt(t){var e=n("2d65");e.__inject__&&e.__inject__(t)}var Dt=Object(m["a"])(Pt,bt,Ot,!1,wt,null,null,!0),Mt=Dt.exports,Ft=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fragment loop",style:t.fragmentStyle},[t.comment?n("comment",{attrs:{comment:t.comment}}):t._e(),n("div",{staticClass:"header"},[t._m(0),n("label",{staticClass:"condition"},[t._v("["+t._s(t.condition)+"]")])]),n("block",{style:t.blockStyle,attrs:{context:t.loop.braceBlock().block(),from:t.from,offset:t.offset}})],1)},jt=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"name"},[n("label",[t._v("Loop")])])}],Ut={name:"fragment-loop",props:["from","context","comment","offset"],mixins:[kt],computed:{loop:function(){return this.context.loop()},condition:function(){return this.loop.parExpr().expr().getCode()}},beforeCreate:function(){this.$options.components.Block=n("2efe").default,this.$options.components.Comment=n("4ea3").default}},Bt=Ut,Ht=Object(m["a"])(Bt,Ft,jt,!1,null,null,null,!0),$t=Ht.exports,Vt={name:"statement",props:["from","context","offset"],computed:{comment:function(){return this.context.comment()?this.context.comment().COMMENT().join("<br/>"):""},subStatement:function(){var t=this,e={loop:"FragmentLoop",alt:"FragmentAlt",creation:"Creation",message:function(){var e=!t.context.message().func().to()||t.context.message().func().to().getCode()===t.from;return e?"SelfInteraction":"Interaction"},asyncMessage:function(){var e=t.context.asyncMessage().source().getCode()===t.context.asyncMessage().target().getCode();return e?"SelfInteractionAsync":"InteractionAsync"}},n=Object.keys(e).find(e=>null!==t.context[e]()),r=e[n];return"function"===typeof r?r():r}},components:{Creation:j,Interaction:z,InteractionAsync:J,SelfInteraction:ht,SelfInteractionAsync:Rt,FragmentAlt:Mt,FragmentLoop:$t}},qt=Vt;function zt(t){var e=n("538b");e.__inject__&&e.__inject__(t)}var Wt=Object(m["a"])(qt,i,s,!1,zt,null,null,!0),Gt=Wt.exports,Yt={name:"block",props:["from","context","offset"],computed:{statements:function(){return this.context&&this.context.stat()}},components:{Statement:Gt}},Kt=Yt,Qt=Object(m["a"])(Kt,r,o,!1,null,null,null,!0);e["default"]=Qt.exports},"2f62":function(t,e,n){"use strict";n.d(e,"b",(function(){return k})); /** * vuex v3.0.1 * (c) 2017 Evan You * @license MIT */ var r=function(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}},o="undefined"!==typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(t){o&&(t._devtoolHook=o,o.emit("vuex:init",t),o.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){o.emit("vuex:mutation",t,e)})))}function s(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function a(t){return null!==t&&"object"===typeof t}function c(t){return t&&"function"===typeof t.then}var u=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},u.prototype.addChild=function(t,e){this._children[t]=e},u.prototype.removeChild=function(t){delete this._children[t]},u.prototype.getChild=function(t){return this._children[t]},u.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},u.prototype.forEachChild=function(t){s(this._children,t)},u.prototype.forEachGetter=function(t){this._rawModule.getters&&s(this._rawModule.getters,t)},u.prototype.forEachAction=function(t){this._rawModule.actions&&s(this._rawModule.actions,t)},u.prototype.forEachMutation=function(t){this._rawModule.mutations&&s(this._rawModule.mutations,t)},Object.defineProperties(u.prototype,p);var l=function(t){this.register([],t,!1)};function h(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;h(t.concat(r),e.getChild(r),n.modules[r])}}l.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},l.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},l.prototype.update=function(t){h([],this.root,t)},l.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var o=new u(e,n);if(0===t.length)this.root=o;else{var i=this.get(t.slice(0,-1));i.addChild(t[t.length-1],o)}e.modules&&s(e.modules,(function(e,o){r.register(t.concat(o),e,n)}))},l.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var f;var d=function(t){var e=this;void 0===t&&(t={}),!f&&"undefined"!==typeof window&&window.Vue&&O(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1);var o=t.state;void 0===o&&(o={}),"function"===typeof o&&(o=o()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new l(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new f;var s=this,a=this,c=a.dispatch,u=a.commit;this.dispatch=function(t,e){return c.call(s,t,e)},this.commit=function(t,e,n){return u.call(s,t,e,n)},this.strict=r,v(this,o,[],this._modules.root),m(this,o),n.forEach((function(t){return t(e)})),f.config.devtools&&i(this)},y={state:{configurable:!0}};function g(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function x(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;v(t,n,[],t._modules.root,!0),m(t,n,e)}function m(t,e,n){var r=t._vm;t.getters={};var o=t._wrappedGetters,i={};s(o,(function(e,n){i[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var a=f.config.silent;f.config.silent=!0,t._vm=new f({data:{$$state:e},computed:i}),f.config.silent=a,t.strict&&A(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),f.nextTick((function(){return r.$destroy()})))}function v(t,e,n,r,o){var i=!n.length,s=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[s]=r),!i&&!o){var a=R(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit((function(){f.set(a,c,r.state)}))}var u=r.context=_(t,s,n);r.forEachMutation((function(e,n){var r=s+n;T(t,r,e,u)})),r.forEachAction((function(e,n){var r=e.root?n:s+n,o=e.handler||e;S(t,r,o,u)})),r.forEachGetter((function(e,n){var r=s+n;C(t,r,e,u)})),r.forEachChild((function(r,i){v(t,e,n.concat(i),r,o)}))}function _(t,e,n){var r=""===e,o={dispatch:r?t.dispatch:function(n,r,o){var i=b(n,r,o),s=i.payload,a=i.options,c=i.type;return a&&a.root||(c=e+c),t.dispatch(c,s)},commit:r?t.commit:function(n,r,o){var i=b(n,r,o),s=i.payload,a=i.options,c=i.type;a&&a.root||(c=e+c),t.commit(c,s,a)}};return Object.defineProperties(o,{getters:{get:r?function(){return t.getters}:function(){return E(t,e)}},state:{get:function(){return R(t.state,n)}}}),o}function E(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach((function(o){if(o.slice(0,r)===e){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return t.getters[o]},enumerable:!0})}})),n}function T(t,e,n,r){var o=t._mutations[e]||(t._mutations[e]=[]);o.push((function(e){n.call(t,r.state,e)}))}function S(t,e,n,r){var o=t._actions[e]||(t._actions[e]=[]);o.push((function(e,o){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,o);return c(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}function C(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function A(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function R(t,e){return e.length?e.reduce((function(t,e){return t[e]}),t):t}function b(t,e,n){return a(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function O(t){f&&t===f||(f=t,r(f))}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(t){0},d.prototype.commit=function(t,e,n){var r=this,o=b(t,e,n),i=o.type,s=o.payload,a=(o.options,{type:i,payload:s}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(t){t(s)}))})),this._subscribers.forEach((function(t){return t(a,r.state)})))},d.prototype.dispatch=function(t,e){var n=this,r=b(t,e),o=r.type,i=r.payload,s={type:o,payload:i},a=this._actions[o];if(a)return this._actionSubscribers.forEach((function(t){return t(s,n.state)})),a.length>1?Promise.all(a.map((function(t){return t(i)}))):a[0](i)},d.prototype.subscribe=function(t){return g(t,this._subscribers)},d.prototype.subscribeAction=function(t){return g(t,this._actionSubscribers)},d.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},d.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},d.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),n.preserveState),m(this,this.state)},d.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=R(e.state,t.slice(0,-1));f.delete(n,t[t.length-1])})),x(this)},d.prototype.hotUpdate=function(t){this._modules.update(t),x(this,!0)},d.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(d.prototype,y);var L=D((function(t,e){var n={};return w(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=M(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof o?o.call(this,e,n):e[o]},n[r].vuex=!0})),n})),N=D((function(t,e){var n={};return w(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var i=M(this.$store,"mapMutations",t);if(!i)return;r=i.context.commit}return"function"===typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n})),k=D((function(t,e){var n={};return w(e).forEach((function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){if(!t||M(this.$store,"mapGetters",t))return this.$store.getters[o]},n[r].vuex=!0})),n})),I=D((function(t,e){var n={};return w(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var i=M(this.$store,"mapActions",t);if(!i)return;r=i.context.dispatch}return"function"===typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n})),P=function(t){return{mapState:L.bind(null,t),mapGetters:k.bind(null,t),mapMutations:N.bind(null,t),mapActions:I.bind(null,t)}};function w(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}}))}function D(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function M(t,e,n){var r=t._modulesNamespaceMap[n];return r}var F={Store:d,install:O,version:"3.0.1",mapState:L,mapMutations:N,mapGetters:k,mapActions:I,createNamespacedHelpers:P};e["a"]=F},"32e9":function(t,e,n){var r=n("86cc"),o=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},3378:function(t,e,n){var r=n("92e3");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("35d6").default;t.exports.__inject__=function(t){o("4c38e0b7",r,t)}},"35d6":function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],s=i[0],a=i[1],c=i[2],u=i[3],p={id:t+":"+o,css:a,media:c,sourceMap:u};r[s]?r[s].parts.push(p):n.push(r[s]={id:s,parts:[p]})}return n}function o(t,e,n){var o=r(t,e);i(o,n)}function i(t,e){const n=e._injectedStyles||(e._injectedStyles={});for(var r=0;r<t.length;r++){var o=t[r],i=n[o.id];if(!i){for(var s=0;s<o.parts.length;s++)a(o.parts[s],e);n[o.id]=!0}}}function s(t){var e=document.createElement("style");return e.type="text/css",t.appendChild(e),e}function a(t,e){var n=s(e),r=t.css,o=t.media,i=t.sourceMap;if(o&&n.setAttribute("media",o),i&&(r+="\n/*# sourceURL="+i.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),n.styleSheet)n.styleSheet.cssText=r;else{while(n.firstChild)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(r))}}n.r(e),n.d(e,"default",(function(){return o}))},"37c8":function(t,e,n){e.f=n("2b4c")},"38fd":function(t,e,n){var r=n("69a8"),o=n("4bf8"),i=n("613b")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"3a72":function(t,e,n){var r=n("7726"),o=n("8378"),i=n("2d00"),s=n("37c8"),a=n("86cc").f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},"3fc2":function(t,e,n){"use strict";n.r(e);var r=n("dc66"),o=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),o=n("4630"),i=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(s,{next:o(1,n)}),i(t,e+" Iterator")}},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4ae9":function(t,e,n){e=t.exports=n("c356")(!1),e.push([t.i,".life-line-layer{display:-webkit-box;display:-ms-flexbox;display:flex;white-space:nowrap;position:absolute;height:100%}.lifeline.starter{-webkit-transform:translateX(6px);transform:translateX(6px)}.lifeline.starter.hidden{visibility:hidden;margin-left:-40px}.starter>>>.participant{border-radius:50%}",""])},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},"4ea3":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"comments",domProps:{innerHTML:t._s(t.comment)}})},o=[],i={name:"comment",props:["comment"]},s=i,a=n("0c7c"),c=Object(a["a"])(s,r,o,!1,null,null,null,!0);e["default"]=c.exports},5157:function(t,e,n){e=t.exports=n("c356")(!1),e.push([t.i,".interaction{margin-top:10px;margin-bottom:5px}.interaction,.message{position:relative}.message.return{position:absolute;bottom:0}.message>.name{font-size:13px;text-align:center}.message svg{position:absolute;width:10px}.message.self svg{width:40px}.message svg.arrow polyline{stroke:grey;fill:none;stroke-width:1.5;stroke-linejoin:round}.occurrence{position:relative;width:16px;left:calc(100% - 8px);padding:16px 0;padding-left:6px;border-width:2px}.interaction.right-to-left>.occurrence{left:-8px}.interaction.self>.occurrence{left:-8px;margin-top:-10px;margin-left:6px}.fragment{border-width:1px;margin:2px 0}.fragment .header label{padding:0 10px}.fragment .header .name label{padding:0 10px;background:hsla(0,0%,66.7%,.1)}",""])},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"52d2":function(t,e,n){"use strict";n.r(e);var r=n("e9cc"),o=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},"538b":function(t,e,n){"use strict";n.r(e);var r=n("7255"),o=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},5537:function(t,e,n){var r=n("8378"),o=n("7726"),i="__core-js_shared__",s=o[i]||(o[i]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"5a74":function(t,e,n){"use strict";var r;(n.r(e),"undefined"!==typeof window)&&(Object({NODE_ENV:"production",BASE_URL:"/"}).NEED_CURRENTSCRIPT_POLYFILL&&n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));var o=n("8bbf"),i=n.n(o);const s=/-(\w)/g,a=t=>{return t.replace(s,(t,e)=>e?e.toUpperCase():"")},c=/\B([A-Z])/g,u=t=>{return t.replace(c,"-$1").toLowerCase()};function p(t){const e={};return t.forEach(t=>{e[t]=void 0}),e}function l(t,e,n){t[e]=[].concat(t[e]||[]),t[e].unshift(n)}function h(t,e){if(t){const n=t.$options[e]||[];n.forEach(e=>{e.call(t)})}}function f(t,e){return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:e})}const d=t=>/function Boolean/.test(String(t)),y=t=>/function Number/.test(String(t));function g(t,e,{type:n}={}){if(d(n))return"true"===t||"false"===t?"true"===t:""===t||t===e||null!=t;if(y(n)){const e=parseFloat(t,10);return isNaN(e)?t:e}return t}function x(t,e){const n=[];for(let r=0,o=e.length;r<o;r++)n.push(m(t,e[r]));return n}function m(t,e){if(3===e.nodeType)return e.data.trim()?e.data:null;if(1===e.nodeType){const n={attrs:v(e),domProps:{innerHTML:e.innerHTML}};return n.attrs.slot&&(n.slot=n.attrs.slot,delete n.attrs.slot),t(e.tagName,n)}return null}function v(t){const e={};for(let n=0,r=t.attributes.length;n<r;n++){const r=t.attributes[n];e[r.nodeName]=r.nodeValue}return e}function _(t,e){const n="function"===typeof e&&!e.cid;let r,o,i,s=!1;function c(t){if(s)return;const e="function"===typeof t?t.options:t,n=Array.isArray(e.props)?e.props:Object.keys(e.props||{});r=n.map(u),o=n.map(a);const c=Array.isArray(e.props)?{}:e.props||{};i=o.reduce((t,e,r)=>{return t[e]=c[n[r]],t},{}),l(e,"beforeCreate",(function(){const t=this.$emit;this.$emit=(e,...n)=>{return this.$root.$options.customElement.dispatchEvent(f(e,n)),t.call(this,e,...n)}})),l(e,"created",(function(){o.forEach(t=>{this.$root.props[t]=this[t]})})),o.forEach(t=>{Object.defineProperty(y.prototype,t,{get(){return this._wrapper.props[t]},set(e){this._wrapper.props[t]=e},enumerable:!1,configurable:!0})}),s=!0}function d(t,e){const n=a(e),r=t.hasAttribute(e)?t.getAttribute(e):void 0;t._wrapper.props[n]=g(r,e,i[n])}class y extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const n=this._wrapper=new t({name:"shadow-root",customElement:this,shadowRoot:this.shadowRoot,data(){return{props:{},slotChildren:[]}},render(t){return t(e,{ref:"inner",props:this.props},this.slotChildren)}}),r=new MutationObserver(t=>{let e=!1;for(let n=0;n<t.length;n++){const r=t[n];s&&"attributes"===r.type&&r.target===this?d(this,r.attributeName):e=!0}e&&(n.slotChildren=Object.freeze(x(n.$createElement,this.childNodes)))});r.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0})}get vueComponent(){return this._wrapper.$refs.inner}connectedCallback(){const t=this._wrapper;if(t._isMounted)h(this.vueComponent,"activated");else{const n=()=>{t.props=p(o),r.forEach(t=>{d(this,t)})};s?n():e().then(t=>{(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t),n()}),t.slotChildren=Object.freeze(x(t.$createElement,this.childNodes)),t.$mount(),this.shadowRoot.appendChild(t.$el)}}disconnectedCallback(){h(this.vueComponent,"deactivated")}}return n||c(e),y}var E=_;n("c356");var T=n("0c7c"),S=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sequence-diagram-container"},[n("div",{staticClass:"zenuml-dsl"},[t._t("default")],2),n("SeqDiagram")],1)},C=[],A=n("2f62"),R={install:function(t,e){t.mixin({beforeCreate(){},created(){},beforeMount(){console.log("Before mounting a component",this.$options.name)},mounted(){console.log("A component has been mounted",this.$options.name,this)},beforeUpdate(){console.log("Before updating a component",this.$options.name)},updated(){console.log("A component has been updated",this.$options.name,this)},destroyed(){}})}},b=R;function O(t){if(null==t||"object"!==typeof t)return t;var e=new t.constructor;for(var n in t)t.hasOwnProperty(n)&&(e[n]=O(t[n]));return e}var L=O,N=n("d57e"),k=n.n(N),I=n("b054"),P=n.n(I),w={state:{lifeLineDimensions:{},firstInvocations:{},code:"",events:[]},getters:{firstInvocations:t=>t.firstInvocations,starter:(t,e)=>{var n=e.rootContext.starterExp();return n&&n.starter()&&n.starter().getCode()||"Starter"},rootContext:t=>{return k.a.RootContext(t.code)},participants:(t,e)=>{return k.a.Participants(e.rootContext)},centerOf:t=>e=>{return t.lifeLineDimensions[e]&&t.lifeLineDimensions[e].left+t.lifeLineDimensions[e].width/2},leftOf:t=>e=>{return t.lifeLineDimensions[e]&&t.lifeLineDimensions[e].left},rightOf:t=>e=>{return t.lifeLineDimensions[e]&&t.lifeLineDimensions[e].left+t.lifeLineDimensions[e].width},widthOf:t=>e=>{return t.lifeLineDimensions[e]&&t.lifeLineDimensions[e].width},distance:(t,e)=>(t,n)=>{return e.centerOf(t)-e.centerOf(n)}},mutations:{code:function(t,e){t.code=e},event:function(t,e){t.events.push(e)},onLifeLineLayerMountedOrUpdated:function(t,e){t.lifeLineDimensions=e},onMessageLayerMountedOrUpdated:function(t,e){t.firstInvocations=e}},actions:{updateCode:function(t,e){t.commit("code",e.code)}},strict:!1,plugins:[P()()]},D=w,M=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sequence-diagram"},[t._t("default"),n("life-line-layer"),n("message-layer")],2)},F=[],j=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"life-line-layer"},[n("life-line",{ref:t.starter,staticClass:"starter",class:{hidden:t.lifeLineHidden},attrs:{entity:t.starter}}),t._l(t.entities,(function(t){return n("life-line",{key:t,ref:t,refInFor:!0,attrs:{entity:t}})}))],2)},U=[],B=(n("ac6a"),n("c93e")),H=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"lifeline",style:{paddingTop:t.top+"px"},attrs:{id:t.entity}},[n("div",{staticClass:"participant"},[n("label",{staticClass:"name"},[t._v(t._s(t.entity))])]),n("div",{staticClass:"line"})])},$=[],V={name:"life-line",props:["entity"],computed:Object(B["a"])({},Object(A["b"])(["firstInvocations"]),{top(){return this.firstInvocationIsCreation?this.firstInvocations[this.entity].top-3:0},firstInvocationIsCreation(){return this.firstInvocations[this.entity]&&"creation"===this.firstInvocations[this.entity].type}})},q=V;function z(t){var e=n("161b");e.__inject__&&e.__inject__(t)}var W=Object(T["a"])(q,H,$,!1,z,null,null,!0),G=W.exports,Y={name:"life-line-layer",computed:Object(B["a"])({},Object(A["b"])(["starter"]),Object(A["b"])({entities:"participants"}),{lifeLineHidden(){return"Starter"===this.starter},entities(){return this.$store.getters.participants.filter(t=>t!==this.starter)}}),mounted(){this.emitDimensions()},updated(){this.emitDimensions()},methods:{emitDimensions(){var t={},e=this.$refs[this.starter].$el;t[this.starter]={left:e.offsetLeft,width:e.offsetWidth},this.entities.forEach(e=>{var n=this.$refs[e][0].$el;t[e]={left:n.offsetLeft,width:n.offsetWidth}}),this.$store.commit("onLifeLineLayerMountedOrUpdated",t)}},components:{LifeLine:G}},K=Y;function Q(t){var e=n("be32");e.__inject__&&e.__inject__(t)}var X=Object(T["a"])(K,j,U,!1,Q,null,null,!0),J=X.exports,Z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"message-layer"},[n("block",{style:{"padding-left":t.paddingLeft+"px"},attrs:{context:t.rootContext.block(),from:t.starter}})],1)},tt=[],et=(n("ac4d"),n("8a81"),n("2efe")),nt={name:"message-layer",computed:Object(B["a"])({},Object(A["b"])(["rootContext","starter","centerOf"]),{paddingLeft(){return this.centerOf(this.starter)}}),mounted(){},updated(){this.emitFirstInvocations()},methods:{emitFirstInvocations(){var t={};this.$store.getters.participants.forEach(e=>{t[e]=this.firstInvocation(e)}),this.$store.commit("onMessageLayerMountedOrUpdated",t)},firstInvocation(t){var e=this.$el.getBoundingClientRect();function n(r){var o=r.$options.name;if("message"===o||"self-invocation"===o){var i=r.$parent;if((i.to||i.source||i.target)===t){var s=r.$el.getBoundingClientRect();return{type:r.$parent.$options.name,top:s.y-e.y}}}var a=!0,c=!1,u=void 0;try{for(var p,l=r.$children[Symbol.iterator]();!(a=(p=l.next()).done);a=!0){var h=p.value,f=n(h);if(f)return f}}catch(d){c=!0,u=d}finally{try{a||null==l.return||l.return()}finally{if(c)throw u}}return null}return n(this)}},components:{Block:et["default"]}},rt=nt;function ot(t){var e=n("fb01");e.__inject__&&e.__inject__(t);var r=n("91fd");r.__inject__&&r.__inject__(t)}var it=Object(T["a"])(rt,Z,tt,!1,ot,null,null,!0),st=it.exports,at={name:"seq-diagram",mounted(){console.log(this.$slots)},components:{LifeLineLayer:J,MessageLayer:st}},ct=at;function ut(t){var e=n("068a");e.__inject__&&e.__inject__(t)}var pt=Object(T["a"])(ct,M,F,!1,ut,null,null,!0),lt=pt.exports;n("0d31");i.a.use(A["a"]),i.a.use(b),i.a.config.productionTip=!1;var ht={name:"app",beforeCreate(){this.$store=new A["a"].Store(L({modules:{Store:D}}))},mounted(){var t=this;setTimeout((function(){t.$store.commit("code",t.$slots.default[0].text||"A.method")}))},components:{SeqDiagram:lt}},ft=ht;function dt(t){var e=n("2083");e.__inject__&&e.__inject__(t)}var yt=Object(T["a"])(ft,S,C,!1,dt,null,null,!0),gt=yt.exports;window.customElements.define("sequence-diagram",E(i.a,gt))},"5c47":function(t,e,n){var r=n("79c5");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("35d6").default;t.exports.__inject__=function(t){o("b9f8a212",r,t)}},"5ca1":function(t,e,n){var r=n("7726"),o=n("8378"),i=n("32e9"),s=n("2aba"),a=n("9b43"),c="prototype",u=function(t,e,n){var p,l,h,f,d=t&u.F,y=t&u.G,g=t&u.S,x=t&u.P,m=t&u.B,v=y?r:g?r[e]||(r[e]={}):(r[e]||{})[c],_=y?o:o[e]||(o[e]={}),E=_[c]||(_[c]={});for(p in y&&(n=e),n)l=!d&&v&&void 0!==v[p],h=(l?v:n)[p],f=m&&l?a(h,r):x&&"function"==typeof h?a(Function.call,h):h,v&&s(v,p,h,t&u.U),_[p]!=h&&i(_,p,f),x&&E[p]!=h&&(E[p]=h)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"5e81":function(t,e,n){var r=n("0a28");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("35d6").default;t.exports.__inject__=function(t){o("0a1a6717",r,t)}},"613b":function(t,e,n){var r=n("5537")("keys"),o=n("ca5a");t.exports=function(t){return r[t]||(r[t]=o(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"67ab":function(t,e,n){var r=n("ca5a")("meta"),o=n("d3f4"),i=n("69a8"),s=n("86cc").f,a=0,c=Object.isExtensible||function(){return!0},u=!n("79e5")((function(){return c(Object.preventExtensions({}))})),p=function(t){s(t,r,{value:{i:"O"+ ++a,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";p(t)}return t[r].i},h=function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;p(t)}return t[r].w},f=function(t){return u&&d.NEED&&c(t)&&!i(t,r)&&p(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:h,onFreeze:f}},6821:function(t,e,n){var r=n("626a"),o=n("be13");t.exports=function(t){return r(o(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"6f08":function(t,e,n){"use strict";n.r(e);var r=n("5e81"),o=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},7255:function(t,e,n){var r=n("1217");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("35d6").default;t.exports.__inject__=function(t){o("da814a06",r,t)}},7408:function(t,e,n){e=t.exports=n("c356")(!1),e.push([t.i,".interaction .invisible-occurrence{height:20px}",""])},7499:function(t,e,n){var r=n("7408");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("35d6").default;t.exports.__inject__=function(t){o("f36effbe",r,t)}},7715:function(t,e,n){e=t.exports=n("c356")(!1),e.push([t.i,".sequence-diagram-container{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50;margin-top:60px}.sequence-diagram-container>.zenuml-dsl{display:none}.sequence-diagram{font-family:Helvetica,Verdana,serif;font-size:16px}.sequence-diagram .participant{font-weight:700;background:#fff;border-radius:4px}.sequence-diagram .occurrence,.sequence-diagram .participant{border:2px solid rgba(3,3,3,.05)}.sequence-diagram .message{border-bottom-color:grey}.sequence-diagram .occurrence{background-color:#d3d3d3;border-radius:2px}.sequence-diagram .fragment{border-style:solid;border-color:#aaa;border-radius:2px;background:hsla(0,0%,100%,.2);opacity:.9}.sequence-diagram .fragment .header .name label{color:#555;font-weight:700}.sequence-diagram .fragment.alt div.divider{border-bottom-style:dashed;border-bottom-color:#555}.sequence-diagram .lifeline .line{border-left-style:dashed;border-left-color:grey}",""])},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77ae":function(t,e,n){"use strict";n.r(e);var r=n("7499"),o=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},"77f1":function(t,e,n){var r=n("4588"),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},"79c5":function(t,e,n){e=t.exports=n("c356")(!1),e.push([t.i,".lifeline{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin:0 20px}.lifeline .line{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-left:50%;border-left-width:1px}.lifeline>.participant{z-index:100}",""])},"79e5":function(t,e