mermaid/dist/mermaid.min.js

20 lines
483 KiB
JavaScript
Raw Normal View History

2015-10-19 22:08:17 +02:00
!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.mermaid=t()}}(function(){var define,module,exports;return function t(e,n,r){function i(o,u){if(!n[o]){if(!e[o]){var s="function"==typeof require&&require;if(!u&&s)return s(o,!0);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[o]={exports:{}};e[o][0].call(l.exports,function(t){var n=e[o][1][t];return i(n?n:t)},l,l.exports,t,e,n,r)}return n[o].exports}for(var a="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(){},{}],2:[function(t,e,n){(function(t){function e(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,a=function(t){return i.exec(t).slice(1)};n.resolve=function(){for(var n="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:t.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(n=o+"/"+n,i="/"===o.charAt(0))}return n=e(r(n.split("/"),function(t){return!!t}),!i).join("/"),(i?"/":"")+n||"."},n.normalize=function(t){var i=n.isAbsolute(t),a="/"===o(t,-1);return t=e(r(t.split("/"),function(t){return!!t}),!i).join("/"),t||i||(t="."),t&&a&&(t+="/"),(i?"/":"")+t},n.isAbsolute=function(t){return"/"===t.charAt(0)},n.join=function(){var t=Array.prototype.slice.call(arguments,0);return n.normalize(r(t,function(t){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},n.relative=function(t,e){function r(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=n.resolve(t).substr(1),e=n.resolve(e).substr(1);for(var i=r(t.split("/")),a=r(e.split("/")),o=Math.min(i.length,a.length),u=o,s=0;o>s;s++)if(i[s]!==a[s]){u=s;break}for(var c=[],s=u;s<i.length;s++)c.push("..");return c=c.concat(a.slice(u)),c.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(t){var e=a(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(t,e){var n=a(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},n.extname=function(t){return a(t)[3]};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return 0>e&&(e=t.length+e),t.substr(e,n)}}).call(this,t("_process"))},{_process:3}],3:[function(t,e){function n(){}var r=e.exports={};r.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.MutationObserver,n="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};var r=[];if(e){var i=document.createElement("div"),a=new MutationObserver(function(){var t=r.slice();r.length=0,t.forEach(function(t){t()})});return a.observe(i,{attributes:!0}),function(t){r.length||i.setAttribute("yes","no"),r.push(t)}}return n?(window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),r.length>0)){var n=r.shift();n()}},!0),function(t){r.push(t),window.postMessage("process-tick","*")}):function(t){setTimeout(t,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.on=n,r.addListener=n,r.once=n,r.off=n,r.removeListener=n,r.removeAllListeners=n,r.emit=n,r.binding=function(){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(){throw new Error("process.chdir is not supported")}},{}],4:[function(t,e){!function(){function t(t){return t&&(t.ownerDocument||t.document||t).documentElement}function n(t){return t&&(t.ownerDocument&&t.owne
}return function(u){function s(t){for(var e=0,n=y.length,r=t[1],i=0;n>i;++i)for(var a,o=1,u=y[i],s=u.length,c=u[0];s>o;++o)a=u[o],c[1]<=r?a[1]>r&&tt(c,a,t)>0&&++e:a[1]<=r&&tt(c,a,t)<0&&--e,c=a;return 0!==e}function c(a,u,s,c){var l=0,h=0;if(null==a||(l=i(a,s))!==(h=i(u,s))||o(a,u)<0^s>0){do c.point(0===l||3===l?t:n,l>1?r:e);while((l=(l+s+4)%4)!==h)}else c.point(u[0],u[1])}function l(i,a){return i>=t&&n>=i&&a>=e&&r>=a}function h(t,e){l(t,e)&&u.point(t,e)}function f(){C.point=p,y&&y.push(m=[]),k=!0,A=!1,x=w=0/0}function d(){g&&(p(v,b),_&&A&&M.rejoin(),g.push(M.buffer())),C.point=h,A&&u.lineEnd()}function p(t,e){t=Math.max(-Nu,Math.min(Nu,t)),e=Math.max(-Nu,Math.min(Nu,e));var n=l(t,e);if(y&&m.push([t,e]),k)v=t,b=e,_=n,k=!1,n&&(u.lineStart(),u.point(t,e));else if(n&&A)u.point(t,e);else{var r={a:{x:x,y:w},b:{x:t,y:e}};S(r)?(A||(u.lineStart(),u.point(r.a.x,r.a.y)),u.point(r.b.x,r.b.y),n||u.lineEnd(),E=!1):n&&(u.lineStart(),u.point(t,e),E=!1)}x=t,w=e,A=n}var g,y,m,v,b,_,x,w,A,k,E,D=u,M=Ne(),S=Ye(t,e,n,r),C={point:h,lineStart:f,lineEnd:d,polygonStart:function(){u=M,g=[],y=[],E=!0},polygonEnd:function(){u=D,g=no.merge(g);var e=s([t,r]),n=E&&e,i=g.length;(n||i)&&(u.polygonStart(),n&&(u.lineStart(),c(null,null,1,u),u.lineEnd()),i&&Te(g,a,e,c,u),u.polygonEnd()),g=y=m=null}};return C}}function Ve(t){var e=0,n=Bo/3,r=un(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Bo/180,n=t[1]*Bo/180):[e/Bo*180,n/Bo*180]},i}function He(t,e){function n(t,e){var n=Math.sqrt(a-2*i*Math.sin(e))/i;return[n*Math.sin(t*=i),o-n*Math.cos(t)]}var r=Math.sin(t),i=(r+Math.sin(e))/2,a=1+r*(2*i-r),o=Math.sqrt(a)/i;return n.invert=function(t,e){var n=o-e;return[Math.atan2(t,n)/i,nt((a-(t*t+n*n)*i*i)/(2*i))]},n}function $e(){function t(t,e){Ru+=i*t-r*e,r=t,i=e}var e,n,r,i;Yu.point=function(a,o){Yu.point=t,e=r=a,n=i=o},Yu.lineEnd=function(){t(e,n)}}function Ge(t,e){Pu>t&&(Pu=t),t>ju&&(ju=t),qu>e&&(qu=e),e>Uu&&(Uu=e)}function We(){function t(t,e){o.push("M",t,",",e,a)}function e(t,e){o.push("M",t,",",e),u.point=n}function n(t,e){o.push("L",t,",",e)}function r(){u.point=t}function i(){o.push("Z")}var a=Ze(4.5),o=[],u={point:t,lineStart:function(){u.point=e},lineEnd:r,polygonStart:function(){u.lineEnd=i},polygonEnd:function(){u.lineEnd=r,u.point=t},pointRadius:function(t){return a=Ze(t),u},result:function(){if(o.length){var t=o.join("");return o=[],t}}};return u}function Ze(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Xe(t,e){ku+=t,Eu+=e,++Du}function Ke(){function t(t,r){var i=t-e,a=r-n,o=Math.sqrt(i*i+a*a);Mu+=o*(e+t)/2,Su+=o*(n+r)/2,Cu+=o,Xe(e=t,n=r)}var e,n;Vu.point=function(r,i){Vu.point=t,Xe(e=r,n=i)}}function Je(){Vu.point=Xe}function Qe(){function t(t,e){var n=t-r,a=e-i,o=Math.sqrt(n*n+a*a);Mu+=o*(r+t)/2,Su+=o*(i+e)/2,Cu+=o,o=i*t-r*e,Tu+=o*(r+t),Fu+=o*(i+e),Lu+=3*o,Xe(r=t,i=e)}var e,n,r,i;Vu.point=function(a,o){Vu.point=t,Xe(e=r=a,n=i=o)},Vu.lineEnd=function(){t(e,n)}}function tn(t){function e(e,n){t.moveTo(e+o,n),t.arc(e,n,o,0,Oo)}function n(e,n){t.moveTo(e,n),u.point=r}function r(e,n){t.lineTo(e,n)}function i(){u.point=e}function a(){t.closePath()}var o=4.5,u={point:e,lineStart:function(){u.point=n},lineEnd:i,polygonStart:function(){u.lineEnd=a},polygonEnd:function(){u.lineEnd=i,u.point=e},pointRadius:function(t){return o=t,u},result:w};return u}function en(t){function e(t){return(u?r:n)(t)}function n(e){return an(e,function(n,r){n=t(n,r),e.point(n[0],n[1])})}function r(e){function n(n,r){n=t(n,r),e.point(n[0],n[1])}function r(){b=0/0,k.point=a,e.lineStart()}function a(n,r){var a=ge([n,r]),o=t(n,r);i(b,_,v,x,w,A,b=o[0],_=o[1],v=n,x=a[0],w=a[1],A=a[2],u,e),e.point(b,_)}function o(){k.point=n,e.lineEnd()}function s(){r(),k.point=c,k.lineEnd=l}function c(t,e){a(h=t,f=e),d=b,p=_,g=x,y=w,m=A,k.point=a}function l(){i(b,_,v,x,w,A,d,p,h,g,y,m,u,e),k.lineEnd=o,o()}var h,f,d,p,g,y,m,v,b,_,x,w,A,k={point:n,lineStart:r,lineEnd:o,polygonStart:function(){e.polygonStart(),k.lineStart=s},polygonEnd:function(){e.polygonEnd(),k.lineStart=r}};return k}function i(e,n,r,u,s,c,l,h,f,d,p,g,y,m){var v=l-e,b=h-
e):r},e.defined=function(t){return arguments.length?(i=t,e):i},e.interpolate=function(t){return arguments.length?(o="function"==typeof t?a=t:(a=Ss.get(t)||ga).key,e):o},e.tension=function(t){return arguments.length?(u=t,e):u},e}function ga(t){return t.join("L")}function ya(t){return ga(t)+"Z"}function ma(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r[0]+(r=t[e])[0])/2,"V",r[1]);return n>1&&i.push("H",r[0]),i.join("")}function va(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("V",(r=t[e])[1],"H",r[0]);return i.join("")}function ba(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r=t[e])[0],"V",r[1]);return i.join("")}function _a(t,e){return t.length<4?ga(t):t[1]+Aa(t.slice(1,-1),ka(t,e))}function xa(t,e){return t.length<3?ga(t):t[0]+Aa((t.push(t[0]),t),ka([t[t.length-2]].concat(t,[t[1]]),e))}function wa(t,e){return t.length<3?ga(t):t[0]+Aa(t,ka(t,e))}function Aa(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return ga(t);var n=t.length!=e.length,r="",i=t[0],a=t[1],o=e[0],u=o,s=1;if(n&&(r+="Q"+(a[0]-2*o[0]/3)+","+(a[1]-2*o[1]/3)+","+a[0]+","+a[1],i=t[1],s=2),e.length>1){u=e[1],a=t[s],s++,r+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(a[0]-u[0])+","+(a[1]-u[1])+","+a[0]+","+a[1];for(var c=2;c<e.length;c++,s++)a=t[s],u=e[c],r+="S"+(a[0]-u[0])+","+(a[1]-u[1])+","+a[0]+","+a[1]}if(n){var l=t[s];r+="Q"+(a[0]+2*u[0]/3)+","+(a[1]+2*u[1]/3)+","+l[0]+","+l[1]}return r}function ka(t,e){for(var n,r=[],i=(1-e)/2,a=t[0],o=t[1],u=1,s=t.length;++u<s;)n=a,a=o,o=t[u],r.push([i*(o[0]-n[0]),i*(o[1]-n[1])]);return r}function Ea(t){if(t.length<3)return ga(t);var e=1,n=t.length,r=t[0],i=r[0],a=r[1],o=[i,i,i,(r=t[1])[0]],u=[a,a,a,r[1]],s=[i,",",a,"L",Ca(Fs,o),",",Ca(Fs,u)];for(t.push(t[n-1]);++e<=n;)r=t[e],o.shift(),o.push(r[0]),u.shift(),u.push(r[1]),Ta(s,o,u);return t.pop(),s.push("L",r),s.join("")}function Da(t){if(t.length<4)return ga(t);for(var e,n=[],r=-1,i=t.length,a=[0],o=[0];++r<3;)e=t[r],a.push(e[0]),o.push(e[1]);for(n.push(Ca(Fs,a)+","+Ca(Fs,o)),--r;++r<i;)e=t[r],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),Ta(n,a,o);return n.join("")}function Ma(t){for(var e,n,r=-1,i=t.length,a=i+4,o=[],u=[];++r<4;)n=t[r%i],o.push(n[0]),u.push(n[1]);for(e=[Ca(Fs,o),",",Ca(Fs,u)],--r;++r<a;)n=t[r%i],o.shift(),o.push(n[0]),u.shift(),u.push(n[1]),Ta(e,o,u);return e.join("")}function Sa(t,e){var n=t.length-1;if(n)for(var r,i,a=t[0][0],o=t[0][1],u=t[n][0]-a,s=t[n][1]-o,c=-1;++c<=n;)r=t[c],i=c/n,r[0]=e*r[0]+(1-e)*(a+i*u),r[1]=e*r[1]+(1-e)*(o+i*s);return Ea(t)}function Ca(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function Ta(t,e,n){t.push("C",Ca(Cs,e),",",Ca(Cs,n),",",Ca(Ts,e),",",Ca(Ts,n),",",Ca(Fs,e),",",Ca(Fs,n))}function Fa(t,e){return(e[1]-t[1])/(e[0]-t[0])}function La(t){for(var e=0,n=t.length-1,r=[],i=t[0],a=t[1],o=r[0]=Fa(i,a);++e<n;)r[e]=(o+(o=Fa(i=a,a=t[e+1])))/2;return r[e]=o,r}function Ba(t){for(var e,n,r,i,a=[],o=La(t),u=-1,s=t.length-1;++u<s;)e=Fa(t[u],t[u+1]),go(e)<Fo?o[u]=o[u+1]=0:(n=o[u]/e,r=o[u+1]/e,i=n*n+r*r,i>9&&(i=3*e/Math.sqrt(i),o[u]=i*n,o[u+1]=i*r));for(u=-1;++u<=s;)i=(t[Math.min(s,u+1)][0]-t[Math.max(0,u-1)][0])/(6*(1+o[u]*o[u])),a.push([i||0,o[u]*i||0]);return a}function Oa(t){return t.length<3?ga(t):t[0]+Aa(t,Ba(t))}function Na(t){for(var e,n,r,i=-1,a=t.length;++i<a;)e=t[i],n=e[0],r=e[1]-Io,e[0]=n*Math.cos(r),e[1]=n*Math.sin(r);return t}function Ia(t){function e(e){function s(){g.push("M",u(t(m),h),l,c(t(y.reverse()),h),"Z")}for(var f,d,p,g=[],y=[],m=[],v=-1,b=e.length,_=Mt(n),x=Mt(i),w=n===r?function(){return d}:Mt(r),A=i===a?function(){return p}:Mt(a);++v<b;)o.call(this,f=e[v],v)?(y.push([d=+_.call(this,f,v),p=+x.call(this,f,v)]),m.push([+w.call(this,f,v),+A.call(this,f,v)])):y.length&&(s(),y=[],m=[]);return y.length&&s(),g.length?g.join(""):null}var n=Cn,r=Cn,i=0,a=Tn,o=Ce,u=ga,s=u.key,c=u,l="L",h=.7;return e.x=function(t){return arguments.length?(n=r=t,e):r},e.x0=function(t){return arguments.length?(n=t,e):n},e.x1=function(t){return arguments.length?(r=t,e):r},e.y=function(t){return arguments.length?(i=a=t,e):a},e.y0=function(t){return arguments
eu=a,nu||(ru=clearTimeout(ru),nu=1,au(Lt))},no.timer.flush=function(){Bt(),Ot()},no.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var ou=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(It);no.formatPrefix=function(t,e){var n=0;return t&&(0>t&&(t*=-1),e&&(t=no.round(t,Nt(t,e))),n=1+Math.floor(1e-12+Math.log(t)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),ou[8+n/3]};var uu=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,su=no.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=no.round(t,Nt(t,e))).toFixed(Math.max(0,Math.min(20,Nt(t*(1+1e-15),e))))}}),cu=no.time={},lu=Date;qt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){hu.setUTCDate.apply(this._,arguments)},setDay:function(){hu.setUTCDay.apply(this._,arguments)},setFullYear:function(){hu.setUTCFullYear.apply(this._,arguments)},setHours:function(){hu.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){hu.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){hu.setUTCMinutes.apply(this._,arguments)},setMonth:function(){hu.setUTCMonth.apply(this._,arguments)},setSeconds:function(){hu.setUTCSeconds.apply(this._,arguments)},setTime:function(){hu.setTime.apply(this._,arguments)}};var hu=Date.prototype;cu.year=jt(function(t){return t=cu.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),cu.years=cu.year.range,cu.years.utc=cu.year.utc.range,cu.day=jt(function(t){var e=new lu(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),cu.days=cu.day.range,cu.days.utc=cu.day.utc.range,cu.dayOfYear=function(t){var e=cu.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,e){e=7-e;var n=cu[t]=jt(function(t){return(t=cu.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var n=cu.year(t).getDay();return Math.floor((cu.dayOfYear(t)+(n+e)%7)/7)-(n!==e)});cu[t+"s"]=n.range,cu[t+"s"].utc=n.utc.range,cu[t+"OfYear"]=function(t){var n=cu.year(t).getDay();return Math.floor((cu.dayOfYear(t)+(n+e)%7)/7)}}),cu.week=cu.sunday,cu.weeks=cu.sunday.range,cu.weeks.utc=cu.sunday.utc.range,cu.weekOfYear=cu.sundayOfYear;var fu={"-":"",_:" ",0:"0"},du=/^\s*\d+/,pu=/^%/;no.locale=function(t){return{numberFormat:Rt(t),timeFormat:Yt(t)}};var gu=no.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});no.format=gu.numberFormat,no.geo={},ce.prototype={s:0,t:0,add:function(t){le(t,this.t,yu),le(yu.s,this.s,this),this.s?this.t+=yu.t:this.s=yu.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var yu=
}),ei(u,xi),ei(u,function(t){t.r-=h})}return ki(u,s/2,c/2,e?1:1/Math.max(2*u.r/s,2*u.r/c)),o}var e,n=no.layout.hierarchy().sort(mi),r=0,i=[1,1];return t.size=function(e){return arguments.length?(i=e,t):i},t.radius=function(n){return arguments.length?(e=null==n||"function"==typeof n?n:+n,t):e},t.padding=function(e){return arguments.length?(r=+e,t):r},Qr(t,n)},no.layout.tree=function(){function t(t,i){var l=o.call(this,t,i),h=l[0],f=e(h);if(ei(f,n),f.parent.m=-f.z,ti(f,r),c)ti(h,a);else{var d=h,p=h,g=h;ti(h,function(t){t.x<d.x&&(d=t),t.x>p.x&&(p=t),t.depth>g.depth&&(g=t)});var y=u(d,p)/2-d.x,m=s[0]/(p.x+u(p,d)/2+y),v=s[1]/(g.depth||1);ti(h,function(t){t.x=(t.x+y)*m,t.y=t.depth*v})}return l}function e(t){for(var e,n={A:null,children:[t]},r=[n];null!=(e=r.pop());)for(var i,a=e.children,o=0,u=a.length;u>o;++o)r.push((a[o]=i={_:a[o],parent:e,children:(i=a[o].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return n.children[0]}function n(t){var e=t.children,n=t.parent.children,r=t.i?n[t.i-1]:null;if(e.length){Ti(t);var a=(e[0].z+e[e.length-1].z)/2;r?(t.z=r.z+u(t._,r._),t.m=t.z-a):t.z=a}else r&&(t.z=r.z+u(t._,r._));t.parent.A=i(t,r,t.parent.A||n[0])}function r(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function i(t,e,n){if(e){for(var r,i=t,a=t,o=e,s=i.parent.children[0],c=i.m,l=a.m,h=o.m,f=s.m;o=Si(o),i=Mi(i),o&&i;)s=Mi(s),a=Si(a),a.a=t,r=o.z+h-i.z-c+u(o._,i._),r>0&&(Ci(Fi(o,t,n),t,r),c+=r,l+=r),h+=o.m,c+=i.m,f+=s.m,l+=a.m;o&&!Si(a)&&(a.t=o,a.m+=h-l),i&&!Mi(s)&&(s.t=i,s.m+=c-f,n=t)}return n}function a(t){t.x*=s[0],t.y=t.depth*s[1]}var o=no.layout.hierarchy().sort(null).value(null),u=Di,s=[1,1],c=null;return t.separation=function(e){return arguments.length?(u=e,t):u},t.size=function(e){return arguments.length?(c=null==(s=e)?a:null,t):c?null:s},t.nodeSize=function(e){return arguments.length?(c=null==(s=e)?null:a,t):c?s:null},Qr(t,o)},no.layout.cluster=function(){function t(t,a){var o,u=e.call(this,t,a),s=u[0],c=0;ei(s,function(t){var e=t.children;e&&e.length?(t.x=Bi(e),t.y=Li(e)):(t.x=o?c+=n(t,o):0,t.y=0,o=t)});var l=Oi(s),h=Ni(s),f=l.x-n(l,h)/2,d=h.x+n(h,l)/2;return ei(s,i?function(t){t.x=(t.x-s.x)*r[0],t.y=(s.y-t.y)*r[1]}:function(t){t.x=(t.x-f)/(d-f)*r[0],t.y=(1-(s.y?t.y/s.y:1))*r[1]}),u}var e=no.layout.hierarchy().sort(null).value(null),n=Di,r=[1,1],i=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(i=null==(r=e),t):i?null:r},t.nodeSize=function(e){return arguments.length?(i=null!=(r=e),t):i?r:null},Qr(t,e)},no.layout.treemap=function(){function t(t,e){for(var n,r,i=-1,a=t.length;++i<a;)r=(n=t[i]).value*(0>e?0:e),n.area=isNaN(r)||0>=r?0:r}function e(n){var a=n.children;if(a&&a.length){var o,u,s,c=h(n),l=[],f=a.slice(),p=1/0,g="slice"===d?c.dx:"dice"===d?c.dy:"slice-dice"===d?1&n.depth?c.dy:c.dx:Math.min(c.dx,c.dy);for(t(f,c.dx*c.dy/n.value),l.area=0;(s=f.length)>0;)l.push(o=f[s-1]),l.area+=o.area,"squarify"!==d||(u=r(l,g))<=p?(f.pop(),p=u):(l.area-=l.pop().area,i(l,g,c,!1),g=Math.min(c.dx,c.dy),l.length=l.area=0,p=1/0);l.length&&(i(l,g,c,!0),l.length=l.area=0),a.forEach(e)}}function n(e){var r=e.children;if(r&&r.length){var a,o=h(e),u=r.slice(),s=[];for(t(u,o.dx*o.dy/e.value),s.area=0;a=u.pop();)s.push(a),s.area+=a.area,null!=a.z&&(i(s,a.z?o.dx:o.dy,o,!u.length),s.length=s.area=0);r.forEach(n)}}function r(t,e){for(var n,r=t.area,i=0,a=1/0,o=-1,u=t.length;++o<u;)(n=t[o].area)&&(a>n&&(a=n),n>i&&(i=n));return r*=r,e*=e,r?Math.max(e*i*p/r,r/(e*a*p)):1/0}function i(t,e,n,r){var i,a=-1,o=t.length,u=n.x,c=n.y,l=e?s(t.area/e):0;if(e==n.dx){for((r||l>n.dy)&&(l=n.dy);++a<o;)i=t[a],i.x=u,i.y=c,i.dy=l,u+=i.dx=Math.min(n.x+n.dx-u,l?s(i.area/l):0);i.z=!0,i.dx+=n.x+n.dx-u,n.y+=l,n.dy-=l}else{for((r||l>n.dx)&&(l=n.dx);++a<o;)i=t[a],i.x=u,i.y=c,i.dx=l,c+=i.dy=Math.min(n.y+n.dy-c,l?s(i.area/l):0);i.z=!1,i.dy+=n.y+n.dy-c,n.x+=l,n.dx-=l}}function a(r){var i=o||u(r),a=i[0];return a.x=0,a.y=0,a.dx=c[0],a.dy=c[1],o&&u.revalue(a),t([a],a.dx*a.dy/a.value),(o?n:e)(a),f&&(o=i),i}var o,u=no.layout.hierarchy(),s=Math.round,c=[1,1],l=null,h=Ii,f=!1,d="squarify",p=.5*(1+
function n(t,e,n){var u=e.nodes().filter(function(t){return!a.isSubgraph(e,t)}),s=t.selectAll("g.node").data(u,function(t){return t}).classed("update",!0);return s.selectAll("*").remove(),s.enter().append("g").attr("class","node").style("opacity",0),s.each(function(t){var u=e.node(t),s=o.select(this),c=s.append("g").attr("class","label"),l=i(c,u),h=n[u.shape],f=r.pick(l.node().getBBox(),"width","height");u.elem=this,u.id&&s.attr("id",u.id),u.labelId&&c.attr("id",u.labelId),a.applyClass(s,u["class"],(s.classed("update")?"update ":"")+"node"),r.has(u,"width")&&(f.width=u.width),r.has(u,"height")&&(f.height=u.height),f.width+=u.paddingLeft+u.paddingRight,f.height+=u.paddingTop+u.paddingBottom,c.attr("transform","translate("+(u.paddingLeft-u.paddingRight)/2+","+(u.paddingTop-u.paddingBottom)/2+")");var d=h(o.select(this),f,u);a.applyStyle(d,u.style);var p=d.node().getBBox();u.width=p.width,u.height=p.height}),a.applyTransition(s.exit(),e).style("opacity",0).remove(),s}var r=t("./lodash"),i=t("./label/add-label"),a=t("./util"),o=t("./d3");e.exports=n},{"./d3":11,"./label/add-label":22,"./lodash":25,"./util":31}],11:[function(t,e){e.exports=window.d3},{}],12:[function(t,e){var n;if(t)try{n=t("dagre")}catch(r){}n||(n=window.dagre),e.exports=n},{dagre:33}],13:[function(t,e){var n;if(t)try{n=t("graphlib")}catch(r){}n||(n=window.graphlib),e.exports=n},{graphlib:63}],14:[function(t,e){e.exports={node:t("./intersect-node"),circle:t("./intersect-circle"),ellipse:t("./intersect-ellipse"),polygon:t("./intersect-polygon"),rect:t("./intersect-rect")}},{"./intersect-circle":15,"./intersect-ellipse":16,"./intersect-node":18,"./intersect-polygon":19,"./intersect-rect":20}],15:[function(t,e){function n(t,e,n){return r(t,e,e,n)}var r=t("./intersect-ellipse");e.exports=n},{"./intersect-ellipse":16}],16:[function(t,e){function n(t,e,n,r){var i=t.x,a=t.y,o=i-r.x,u=a-r.y,s=Math.sqrt(e*e*u*u+n*n*o*o),c=Math.abs(e*n*o/s);r.x<i&&(c=-c);var l=Math.abs(e*n*u/s);return r.y<a&&(l=-l),{x:i+c,y:a+l}}e.exports=n},{}],17:[function(t,e){function n(t,e,n,i){var a,o,u,s,c,l,h,f,d,p,g,y,m,v,b;return a=e.y-t.y,u=t.x-e.x,c=e.x*t.y-t.x*e.y,d=a*n.x+u*n.y+c,p=a*i.x+u*i.y+c,0!==d&&0!==p&&r(d,p)||(o=i.y-n.y,s=n.x-i.x,l=i.x*n.y-n.x*i.y,h=o*t.x+s*t.yy+l,f=o*e.x+s*e.y+l,0!==h&&0!==f&&r(h,f)||(g=a*s-o*u,0===g))?void 0:(y=Math.abs(g/2),m=u*l-s*c,v=0>m?(m-y)/g:(m+y)/g,m=o*c-a*l,b=0>m?(m-y)/g:(m+y)/g,{x:v,y:b})}function r(t,e){return t*e>0}e.exports=n},{}],18:[function(t,e){function n(t,e){return t.intersect(e)}e.exports=n},{}],19:[function(t,e){function n(t,e,n){var i=t.x,a=t.y,o=[],u=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;e.forEach(function(t){u=Math.min(u,t.x),s=Math.min(s,t.y)});for(var c=i-t.width/2-u,l=a-t.height/2-s,h=0;h<e.length;h++){var f=e[h],d=e[h<e.length-1?h+1:0],p=r(t,n,{x:c+f.x,y:l+f.y},{x:c+d.x,y:l+d.y});p&&o.push(p)}return o.length?(o.length>1&&o.sort(function(t,e){var r=t.x-n.x,i=t.y-n.y,a=Math.sqrt(r*r+i*i),o=e.x-n.x,u=e.y-n.y,s=Math.sqrt(o*o+u*u);return s>a?-1:a===s?0:1}),o[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",t),t)}var r=t("./intersect-line");e.exports=n},{"./intersect-line":17}],20:[function(t,e){function n(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,u=e.y-a,s=t.width/2,c=t.height/2;return Math.abs(u)*s>Math.abs(o)*c?(0>u&&(c=-c),n=0===u?0:c*o/u,r=c):(0>o&&(s=-s),n=s,r=0===o?0:s*u/o),{x:i+n,y:a+r}}e.exports=n},{}],21:[function(t,e){function n(t,e){var n=t.append("foreignObject").attr("width","100000"),i=n.append("xhtml:div"),a=e.label;switch(typeof a){case"function":i.insert(a);break;case"object":i.insert(function(){return a});break;default:i.html(a)}r.applyStyle(i,e.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var o,u;return i.each(function(){o=this.clientWidth,u=this.clientHeight}),n.attr("width",o).attr("height",u),n}var r=t("../util");e.exports=n},{"../util":31}],22:[function(t,e){function n(t,e,n){var o=e.label,u=t.append("g");"svg"===e.labelType?a(u,e):"string"!=typeof o||"html"===e.labelType?i(u,e):r(u,e);var s,c=u.node().getBBox();switch(n){case"top":s=-e.height/2;break;case"bottom":s=
y.each(e,function(t){var e=-1;y.each(t,function(t){var s=r(t);if(s.length){s=y.sortBy(s,function(t){return u[t]});for(var c=(s.length-1)/2,l=Math.floor(c),h=Math.ceil(c);h>=l;++l){var f=s[l];a[t]===t&&e<u[f]&&!o(n,t,f)&&(a[f]=t,a[t]=i[t]=i[f],e=u[f])}}})}),{root:i,align:a}}function s(t,e,n,r,i){function a(t){y.has(l,t)||(l[t]=!0,u[t]=y.reduce(s.inEdges(t),function(t,e){return a(e.v),Math.max(t,u[e.v]+s.edge(e))},0))}function o(e){if(2!==l[e]){l[e]++;var n=t.node(e),r=y.reduce(s.outEdges(e),function(t,e){return o(e.w),Math.min(t,u[e.w]-s.edge(e))},Number.POSITIVE_INFINITY);r!==Number.POSITIVE_INFINITY&&n.borderType!==h&&(u[e]=Math.max(u[e],r))}}var u={},s=c(t,e,n,i),l={};y.each(s.nodes(),a);var h=i?"borderLeft":"borderRight";return y.each(s.nodes(),o),y.each(r,function(t){u[t]=u[n[t]]}),u}function c(t,e,n,r){var i=new m,a=t.graph(),o=p(a.nodesep,a.edgesep,r);return y.each(e,function(e){var r;y.each(e,function(e){var a=n[e];if(i.setNode(a),r){var u=n[r],s=i.edge(u,a);i.setEdge(u,a,Math.max(o(t,e,r),s||0))}r=e})}),i}function l(t,e){return y.min(e,function(e){var n=y.min(e,function(e,n){return e-g(t,n)/2}),r=y.max(e,function(e,n){return e+g(t,n)/2});return r-n})}function h(t,e){var n=y.min(e),r=y.max(e);y.each(["u","d"],function(i){y.each(["l","r"],function(a){var o,u=i+a,s=t[u];s!==e&&(o="l"===a?n-y.min(s):r-y.max(s),o&&(t[u]=y.mapValues(s,function(t){return t+o})))})})}function f(t,e){return y.mapValues(t.ul,function(n,r){if(e)return t[e.toLowerCase()][r];var i=y.sortBy(y.pluck(t,r));return(i[1]+i[2])/2})}function d(t){var e,i=v.buildLayerMatrix(t),a=y.merge(n(t,i),r(t,i)),o={};y.each(["u","d"],function(n){e="u"===n?i:y.values(i).reverse(),y.each(["l","r"],function(r){"r"===r&&(e=y.map(e,function(t){return y.values(t).reverse()}));var i=y.bind("u"===n?t.predecessors:t.successors,t),c=u(t,e,a,i),l=s(t,e,c.root,c.align,"r"===r);"r"===r&&(l=y.mapValues(l,function(t){return-t})),o[n+r]=l})});var c=l(t,o);return h(o,c),f(o,t.graph().align)}function p(t,e,n){return function(r,i,a){var o,u=r.node(i),s=r.node(a),c=0;if(c+=u.width/2,y.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":o=-u.width/2;break;case"r":o=u.width/2}if(o&&(c+=n?o:-o),o=0,c+=(u.dummy?e:t)/2,c+=(s.dummy?e:t)/2,c+=s.width/2,y.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":o=s.width/2;break;case"r":o=-s.width/2}return o&&(c+=n?o:-o),o=0,c}}function g(t,e){return t.node(e).width}var y=t("../lodash"),m=t("../graphlib").Graph,v=t("../util");e.exports={positionX:d,findType1Conflicts:n,findType2Conflicts:r,addConflict:a,hasConflict:o,verticalAlignment:u,horizontalCompaction:s,alignCoordinates:h,findSmallestWidthAlignment:l,balance:f}},{"../graphlib":39,"../lodash":42,"../util":61}],56:[function(t,e){"use strict";function n(t){t=a.asNonCompoundGraph(t),r(t),i.each(o(t),function(e,n){t.node(n).x=e})}function r(t){var e=a.buildLayerMatrix(t),n=t.graph().ranksep,r=0;i.each(e,function(e){var a=i.max(i.map(e,function(e){return t.node(e).height}));i.each(e,function(e){t.node(e).y=r+a/2}),r+=a+n})}var i=t("../lodash"),a=t("../util"),o=t("./bk").positionX;e.exports=n},{"../lodash":42,"../util":61,"./bk":55}],57:[function(t,e){"use strict";function n(t){var e=new u({directed:!1}),n=t.nodes()[0],o=t.nodeCount();e.setNode(n,{});for(var c,l;r(e,t)<o;)c=i(e,t),l=e.hasNode(c.v)?s(t,c):-s(t,c),a(e,t,l);return e}function r(t,e){function n(r){o.each(e.nodeEdges(r),function(i){var a=i.v,o=r===a?i.w:a;t.hasNode(o)||s(e,i)||(t.setNode(o,{}),t.setEdge(r,o,{}),n(o))})}return o.each(t.nodes(),n),t.nodeCount()}function i(t,e){return o.min(e.edges(),function(n){return t.hasNode(n.v)!==t.hasNode(n.w)?s(e,n):void 0})}function a(t,e,n){o.each(t.nodes(),function(t){e.node(t).rank+=n})}var o=t("../lodash"),u=t("../graphlib").Graph,s=t("./util").slack;e.exports=n},{"../graphlib":39,"../lodash":42,"./util":60}],58:[function(t,e){"use strict";function n(t){switch(t.graph().ranker){case"network-simplex":i(t);break;case"tight-tree":r(t);break;case"longest-path":c(t);break;default:i(t)}}function r(t){o(t),u(t)}function i(t){s(t)}var a=t("./util"),o=a.longestPath,u=t("./feasible-tree
for(var u=a.length,s=e[n];u--;)if(a[u]==s)return void(t[n]=o[u]);var c=t[n],l=i?i(c,s,n,t,e):E,h=l===E;h&&(l=s,Kn(s)&&(Cu(s)||zi(s))?l=Cu(c)?c:Kn(c)?te(c):[]:ji(s)||Ei(s)?l=Ei(c)?Wi(c):ji(c)?c:{}:h=!1),a.push(s),o.push(l),h?t[n]=r(l,s,i,a,o):(l===l?l!==c:c===c)&&(t[n]=l)}function ze(t){return function(e){return null==e?E:e[t]}}function Ve(t){var e=t+"";return t=fr(t),function(n){return Oe(n,t,e)}}function He(t,e){for(var n=t?e.length:0;n--;){var r=e[n];if(r!=i&&Jn(r)){var i=r;fo.call(t,r,1)}}return t}function $e(t,e){return t+vo(Do()*(e-t+1))}function Ge(t,e,n,r,i){return i(t,function(t,i,a){n=r?(r=!1,t):e(n,t,i,a)}),n}function We(t,e,n){var r=-1,i=t.length;e=null==e?0:+e||0,0>e&&(e=-e>i?0:i+e),n=n===E||n>i?i:+n||0,0>n&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=ja(i);++r<i;)a[r]=t[r+e];return a}function Ze(t,e){var n;return Io(t,function(t,r,i){return n=e(t,r,i),!n}),!!n}function Xe(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function Ke(t,e,n){var r=Un(),i=-1;e=se(e,function(t){return r(t)});var a=Pe(t,function(t){var n=se(e,function(e){return e(t)});return{criteria:n,index:++i,value:t}});return Xe(a,function(t,e){return h(t,e,n)})}function Je(t,e){var n=0;return Io(t,function(t,r,i){n+=+e(t,r,i)||0}),n}function Qe(t,e){var n=-1,r=zn(),i=t.length,o=r==a,u=o&&i>=j,s=u?gn():null,c=[];s?(r=Kt,o=!1):(u=!1,s=e?[]:c);t:for(;++n<i;){var l=t[n],h=e?e(l,n,t):l;if(o&&l===l){for(var f=s.length;f--;)if(s[f]===h)continue t;e&&s.push(h),c.push(l)}else r(s,h,0)<0&&((e||u)&&s.push(h),c.push(l))}return c}function tn(t,e){for(var n=-1,r=e.length,i=ja(r);++n<r;)i[n]=t[e[n]];return i}function en(t,e,n,r){for(var i=t.length,a=r?i:-1;(r?a--:++a<i)&&e(t[a],a,t););return n?We(t,r?0:a,r?a+1:i):We(t,r?a+1:0,r?i:a)}function nn(t,e){var n=t;n instanceof K&&(n=n.value());for(var r=-1,i=e.length;++r<i;){var a=e[r];n=a.func.apply(a.thisArg,ce([n],a.args))}return n}function rn(t,e,n){var r=0,i=t?t.length:r;if("number"==typeof e&&e===e&&Fo>=i){for(;i>r;){var a=r+i>>>1,o=t[a];(n?e>=o:e>o)&&null!==o?r=a+1:i=a}return i}return an(t,e,Ma,n)}function an(t,e,n,r){e=n(e);for(var i=0,a=t?t.length:0,o=e!==e,u=null===e,s=e===E;a>i;){var c=vo((i+a)/2),l=n(t[c]),h=l!==E,f=l===l;if(o)var d=f||r;else d=u?f&&h&&(r||null!=l):s?f&&(r||h):null==l?!1:r?e>=l:e>l;d?i=c+1:a=c}return Ao(a,To)}function on(t,e,n){if("function"!=typeof t)return Ma;if(e===E)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,a){return t.call(e,n,r,i,a)};case 5:return function(n,r,i,a,o){return t.call(e,n,r,i,a,o)}}return function(){return t.apply(e,arguments)}}function un(t){var e=new ao(t.byteLength),n=new po(e);return n.set(new po(t)),e}function sn(t,e,n){for(var r=n.length,i=-1,a=wo(t.length-r,0),o=-1,u=e.length,s=ja(u+a);++o<u;)s[o]=e[o];for(;++i<r;)s[n[i]]=t[i];for(;a--;)s[o++]=t[i++];return s}function cn(t,e,n){for(var r=-1,i=n.length,a=-1,o=wo(t.length-i,0),u=-1,s=e.length,c=ja(o+s);++a<o;)c[a]=t[a];for(var l=a;++u<s;)c[l+u]=e[u];for(;++r<i;)c[l+n[r]]=t[a++];return c}function ln(t,e){return function(n,r,i){var a=e?e():{};if(r=Un(r,i,3),Cu(n))for(var o=-1,u=n.length;++o<u;){var s=n[o];t(a,s,r(s,o,n),n)}else Io(n,function(e,n,i){t(a,e,r(e,n,i),i)});return a}}function hn(t){return mi(function(e,n){var r=-1,i=null==e?0:n.length,a=i>2?n[i-2]:E,o=i>2?n[2]:E,u=i>1?n[i-1]:E;for("function"==typeof a?(a=on(a,u,5),i-=2):(a="function"==typeof u?u:E,i-=a?1:0),o&&Qn(n[0],n[1],o)&&(a=3>i?E:a,i=1);++r<i;){var s=n[r];s&&t(e,s,a)}return e})}function fn(t,e){return function(n,r){var i=n?Yo(n):0;if(!nr(i))return t(n,r);for(var a=e?i:-1,o=hr(n);(e?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function dn(t){return function(e,n,r){for(var i=hr(e),a=r(e),o=a.length,u=t?o:-1;t?u--:++u<o;){var s=a[u];if(n(i[s],s,i)===!1)break}return e}}function pn(t,e){function n(){var i=this&&this!==ne&&this instanceof n?r:t;return i.apply(e,arguments)}var r=mn(t);return n}function gn(t){return mo&&lo?new Xt(t):null}function yn(t){return function(e){for(var n=-1,r=ka(la(e)),i=r.length,a="";++n<i;)a=t(a,r[n],n);return a}}f
}}),Qu=mi(function(t,e){return function(n){return Xn(t,n,e)}}),ts=Nn("ceil"),es=Nn("floor"),ns=_n(Ai,Mo),rs=_n(Hi,So),is=Nn("round");return e.prototype=n.prototype,v.prototype=No(n.prototype),v.prototype.constructor=v,K.prototype=No(n.prototype),K.prototype.constructor=K,Ht.prototype["delete"]=$t,Ht.prototype.get=Gt,Ht.prototype.has=Wt,Ht.prototype.set=Zt,Xt.prototype.push=Jt,pi.Cache=Ht,e.after=li,e.ary=hi,e.assign=Fu,e.at=nu,e.before=fi,e.bind=yu,e.bindAll=mu,e.bindKey=vu,e.callback=Ea,e.chain=Ur,e.chunk=pr,e.compact=gr,e.constant=Da,e.countBy=ru,e.create=Zi,e.curry=bu,e.curryRight=_u,e.debounce=di,e.defaults=Lu,e.defaultsDeep=Bu,e.defer=xu,e.delay=wu,e.difference=Vo,e.drop=yr,e.dropRight=mr,e.dropRightWhile=vr,e.dropWhile=br,e.fill=_r,e.filter=Kr,e.flatten=wr,e.flattenDeep=Ar,e.flow=Au,e.flowRight=ku,e.forEach=ou,e.forEachRight=uu,e.forIn=Iu,e.forInRight=Ru,e.forOwn=Pu,e.forOwnRight=qu,e.functions=Xi,e.groupBy=su,e.indexBy=cu,e.initial=Er,e.intersection=Go,e.invert=Qi,e.invoke=lu,e.keys=ju,e.keysIn=ta,e.map=ti,e.mapKeys=Uu,e.mapValues=Yu,e.matches=Sa,e.matchesProperty=Ca,e.memoize=pi,e.merge=Tu,e.method=Ju,e.methodOf=Qu,e.mixin=Ta,e.modArgs=Eu,e.negate=gi,e.omit=zu,e.once=yi,e.pairs=ea,e.partial=Du,e.partialRight=Mu,e.partition=hu,e.pick=Vu,e.pluck=ei,e.property=Ba,e.propertyOf=Oa,e.pull=Sr,e.pullAt=Wo,e.range=Na,e.rearg=Su,e.reject=ni,e.remove=Cr,e.rest=Tr,e.restParam=mi,e.set=ra,e.shuffle=ii,e.slice=Fr,e.sortBy=ui,e.sortByAll=pu,e.sortByOrder=si,e.spread=vi,e.take=Lr,e.takeRight=Br,e.takeRightWhile=Or,e.takeWhile=Nr,e.tap=Yr,e.throttle=bi,e.thru=zr,e.times=Ia,e.toArray=Gi,e.toPlainObject=Wi,e.transform=ia,e.union=Ko,e.uniq=Ir,e.unzip=Rr,e.unzipWith=Pr,e.values=aa,e.valuesIn=oa,e.where=ci,e.without=Jo,e.wrap=_i,e.xor=qr,e.zip=Qo,e.zipObject=jr,e.zipWith=tu,e.backflow=ku,e.collect=ti,e.compose=ku,e.each=ou,e.eachRight=uu,e.extend=Fu,e.iteratee=Ea,e.methods=Xi,e.object=jr,e.select=Kr,e.tail=Tr,e.unique=Ir,Ta(e,e),e.add=Pa,e.attempt=Ku,e.camelCase=Hu,e.capitalize=ca,e.ceil=ts,e.clone=xi,e.cloneDeep=wi,e.deburr=la,e.endsWith=ha,e.escape=fa,e.escapeRegExp=da,e.every=Xr,e.find=iu,e.findIndex=Ho,e.findKey=Ou,e.findLast=au,e.findLastIndex=$o,e.findLastKey=Nu,e.findWhere=Jr,e.first=xr,e.floor=es,e.get=Ki,e.gt=Ai,e.gte=ki,e.has=Ji,e.identity=Ma,e.includes=Qr,e.indexOf=kr,e.inRange=ua,e.isArguments=Ei,e.isArray=Cu,e.isBoolean=Di,e.isDate=Mi,e.isElement=Si,e.isEmpty=Ci,e.isEqual=Ti,e.isError=Fi,e.isFinite=Li,e.isFunction=Bi,e.isMatch=Ni,e.isNaN=Ii,e.isNative=Ri,e.isNull=Pi,e.isNumber=qi,e.isObject=Oi,e.isPlainObject=ji,e.isRegExp=Ui,e.isString=Yi,e.isTypedArray=zi,e.isUndefined=Vi,e.kebabCase=$u,e.last=Dr,e.lastIndexOf=Mr,e.lt=Hi,e.lte=$i,e.max=ns,e.min=rs,e.noConflict=Fa,e.noop=La,e.now=gu,e.pad=pa,e.padLeft=Gu,e.padRight=Wu,e.parseInt=ga,e.random=sa,e.reduce=fu,e.reduceRight=du,e.repeat=ya,e.result=na,e.round=is,e.runInContext=k,e.size=ai,e.snakeCase=Zu,e.some=oi,e.sortedIndex=Zo,e.sortedLastIndex=Xo,e.startCase=Xu,e.startsWith=ma,e.sum=qa,e.template=va,e.trim=ba,e.trimLeft=_a,e.trimRight=xa,e.trunc=wa,e.unescape=Aa,e.uniqueId=Ra,e.words=ka,e.all=Xr,e.any=oi,e.contains=Qr,e.eq=Ti,e.detect=iu,e.foldl=fu,e.foldr=du,e.head=xr,e.include=Qr,e.inject=fu,Ta(e,function(){var t={};return Fe(e,function(n,r){e.prototype[r]||(t[r]=n)}),t}(),!1),e.sample=ri,e.prototype.sample=function(t){return this.__chain__||null!=t?this.thru(function(e){return ri(e,t)}):ri(this.value())},e.VERSION=D,ee(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){e[t].placeholder=e}),ee(["drop","take"],function(t,e){K.prototype[t]=function(n){var r=this.__filtered__;if(r&&!e)return new K(this);n=null==n?1:wo(vo(n)||0,0);var i=this.clone();return r?i.__takeCount__=Ao(i.__takeCount__,n):i.__views__.push({size:n,type:t+(i.__dir__<0?"Right":"")}),i},K.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),ee(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n!=Y;K.prototype[t]=function(t,e){var i=this.clone();return i.__iteratees__.push({iteratee:Un(t,e,1),type:n}),i.__filtered__=i.__filtered__||r,i}}),ee(["first","la
"Ю":"YUcy","ю":"yucy","ÿ":"yuml","Ÿ":"Yuml","Ź":"Zacute","ź":"zacute","Ž":"Zcaron","ž":"zcaron","З":"Zcy","з":"zcy","Ż":"Zdot","ż":"zdot","":"Zfr","Ζ":"Zeta","ζ":"zeta","𝔷":"zfr","Ж":"ZHcy","ж":"zhcy","⇝":"zigrarr","𝕫":"zopf","𝒵":"Zscr","𝓏":"zscr","":"zwj","":"zwnj"},f=/["&'<>`]/g,d={'"':"&quot;","&":"&amp;","'":"&#x27;","<":"&lt;",">":"&gt;","`":"&#x60;"},p=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,g=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,y=/&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+);|&(Aacute|iacute|Uacute|plusmn|otilde|Otilde|Agrave|agrave|yacute|Yacute|oslash|Oslash|Atilde|atilde|brvbar|Ccedil|ccedil|ograve|curren|divide|Eacute|eacute|Ograve|oacute|Egrave|egrave|ugrave|frac12|frac14|frac34|Ugrave|Oacute|Iacute|ntilde|Ntilde|uacute|middot|Igrave|igrave|iquest|aacute|laquo|THORN|micro|iexcl|icirc|Icirc|Acirc|ucirc|ecirc|Ocirc|ocirc|Ecirc|Ucirc|aring|Aring|aelig|AElig|acute|pound|raquo|acirc|times|thorn|szlig|cedil|COPY|Auml|ordf|ordm|uuml|macr|Uuml|auml|Ouml|ouml|para|nbsp|Euml|quot|QUOT|euml|yuml|cent|sect|copy|sup1|sup2|sup3|Iuml|iuml|shy|eth|reg|not|yen|amp|AMP|REG|uml|ETH|deg|gt|GT|LT|lt)([=a-zA-Z0-9])?/g,m={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"",backsim:"∽",backsimeq:"⋍",Backslash:"",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"",Bernoullis:"",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",
var e=c(0/0);return null!=t?s(h(e),t):h(e).userInvalidated=!0,e}function p(t,e){var n,r,i;if("undefined"!=typeof e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),"undefined"!=typeof e._i&&(t._i=e._i),"undefined"!=typeof e._f&&(t._f=e._f),"undefined"!=typeof e._l&&(t._l=e._l),"undefined"!=typeof e._strict&&(t._strict=e._strict),"undefined"!=typeof e._tzm&&(t._tzm=e._tzm),"undefined"!=typeof e._isUTC&&(t._isUTC=e._isUTC),"undefined"!=typeof e._offset&&(t._offset=e._offset),"undefined"!=typeof e._pf&&(t._pf=h(e)),"undefined"!=typeof e._locale&&(t._locale=e._locale),Pn.length>0)for(n in Pn)r=Pn[n],i=e[r],"undefined"!=typeof i&&(t[r]=i);return t}function g(t){p(this,t),this._d=new Date(null!=t._d?t._d.getTime():0/0),qn===!1&&(qn=!0,n.updateOffset(this),qn=!1)}function y(t){return t instanceof g||null!=t&&null!=t._isAMomentObject}function m(t){return 0>t?Math.ceil(t):Math.floor(t)}function v(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=m(e)),n}function b(t,e,n){var r,i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),o=0;for(r=0;i>r;r++)(n&&t[r]!==e[r]||!n&&v(t[r])!==v(e[r]))&&o++;return o+a}function _(){}function x(t){return t?t.toLowerCase().replace("_","-"):t}function w(t){for(var e,n,r,i,a=0;a<t.length;){for(i=x(t[a]).split("-"),e=i.length,n=x(t[a+1]),n=n?n.split("-"):null;e>0;){if(r=A(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&b(i,n,!0)>=e-1)break;e--}a++}return null}function A(n){var r=null;if(!jn[n]&&"undefined"!=typeof e&&e&&e.exports)try{r=Rn._abbr,t("./locale/"+n),k(r)}catch(i){}return jn[n]}function k(t,e){var n;return t&&(n="undefined"==typeof e?D(t):E(t,e),n&&(Rn=n)),Rn._abbr}function E(t,e){return null!==e?(e.abbr=t,jn[t]=jn[t]||new _,jn[t].set(e),k(t),jn[t]):(delete jn[t],null)}function D(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Rn;if(!i(t)){if(e=A(t))return e;t=[t]}return w(t)}function M(t,e){var n=t.toLowerCase();Un[n]=Un[n+"s"]=Un[e]=t}function S(t){return"string"==typeof t?Un[t]||Un[t.toLowerCase()]:void 0}function C(t){var e,n,r={};for(n in t)u(t,n)&&(e=S(n),e&&(r[e]=t[n]));return r}function T(t,e){return function(r){return null!=r?(L(this,t,r),n.updateOffset(this,e),this):F(this,t)}}function F(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function L(t,e,n){return t._d["set"+(t._isUTC?"UTC":"")+e](n)}function B(t,e){var n;if("object"==typeof t)for(n in t)this.set(n,t[n]);else if(t=S(t),"function"==typeof this[t])return this[t](e);return this}function O(t,e,n){var r=""+Math.abs(t),i=e-r.length,a=t>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function N(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(Hn[t]=i),e&&(Hn[e[0]]=function(){return O(i.apply(this,arguments),e[1],e[2])}),n&&(Hn[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function I(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function R(t){var e,n,r=t.match(Yn);for(e=0,n=r.length;n>e;e++)r[e]=Hn[r[e]]?Hn[r[e]]:I(r[e]);return function(i){var a="";for(e=0;n>e;e++)a+=r[e]instanceof Function?r[e].call(i,t):r[e];return a}}function P(t,e){return t.isValid()?(e=q(e,t.localeData()),Vn[e]=Vn[e]||R(e),Vn[e](t)):t.localeData().invalidDate()}function q(t,e){function n(t){return e.longDateFormat(t)||t}var r=5;for(zn.lastIndex=0;r>=0&&zn.test(t);)t=t.replace(zn,n),zn.lastIndex=0,r-=1;return t}function j(t){return"function"==typeof t&&"[object Function]"===Object.prototype.toString.call(t)}function U(t,e,n){or[t]=j(e)?e:function(t){return t&&n?n:e}}function Y(t,e){return u(or,t)?or[t](e._strict,e._locale):new RegExp(z(t))}function z(t){return t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function V(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),"number"==typeof e&&(r=function(t,n){n[e]=v(t)}),n=0;n<t.length;n++)ur[t[n]]=r}function H(t,e){V(t,function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)})}function $(t,e,n){null!=e&&u(ur,t)&&ur[t](e,n._a,n,t)}function G(t,e){return new Date(Date.UTC(t,e+1,
Xr.relativeTime=un,Xr.pastFuture=sn,Xr.set=cn,Xr.months=W,Xr._months=gr,Xr.monthsShort=Z,Xr._monthsShort=yr,Xr.monthsParse=X,Xr.week=ft,Xr._week=Ar,Xr.firstDayOfYear=pt,Xr.firstDayOfWeek=dt,Xr.weekdays=qe,Xr._weekdays=Br,Xr.weekdaysMin=Ue,Xr._weekdaysMin=Nr,Xr.weekdaysShort=je,Xr._weekdaysShort=Or,Xr.weekdaysParse=Ye,Xr.isPM=We,Xr._meridiemParse=Ir,Xr.meridiem=Ze,k("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===v(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),n.lang=nt("moment.lang is deprecated. Use moment.locale instead.",k),n.langData=nt("moment.langData is deprecated. Use moment.localeData instead.",D);var Kr=Math.abs,Jr=Mn("ms"),Qr=Mn("s"),ti=Mn("m"),ei=Mn("h"),ni=Mn("d"),ri=Mn("w"),ii=Mn("M"),ai=Mn("y"),oi=Cn("milliseconds"),ui=Cn("seconds"),si=Cn("minutes"),ci=Cn("hours"),li=Cn("days"),hi=Cn("months"),fi=Cn("years"),di=Math.round,pi={s:45,m:45,h:22,d:26,M:11},gi=Math.abs,yi=Nt.prototype;yi.abs=mn,yi.add=bn,yi.subtract=_n,yi.as=En,yi.asMilliseconds=Jr,yi.asSeconds=Qr,yi.asMinutes=ti,yi.asHours=ei,yi.asDays=ni,yi.asWeeks=ri,yi.asMonths=ii,yi.asYears=ai,yi.valueOf=Dn,yi._bubble=wn,yi.get=Sn,yi.milliseconds=oi,yi.seconds=ui,yi.minutes=si,yi.hours=ci,yi.days=li,yi.weeks=Tn,yi.months=hi,yi.years=fi,yi.humanize=On,yi.toISOString=Nn,yi.toString=Nn,yi.toJSON=Nn,yi.locale=be,yi.localeData=_e,yi.toIsoString=nt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Nn),yi.lang=Fr,N("X",0,0,"unix"),N("x",0,0,"valueOf"),U("x",nr),U("X",ir),V("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),V("x",function(t,e,n){n._d=new Date(v(t))}),n.version="2.10.6",r(Ft),n.fn=zr,n.min=Bt,n.max=Ot,n.utc=c,n.unix=Qe,n.months=fn,n.isDate=a,n.locale=k,n.invalid=d,n.duration=Jt,n.isMoment=y,n.weekdays=pn,n.parseZone=tn,n.localeData=D,n.isDuration=It,n.monthsShort=dn,n.weekdaysMin=yn,n.defineLocale=E,n.weekdaysShort=gn,n.normalizeUnits=S,n.relativeTimeThreshold=Bn;var mi=n;return mi})},{}],86:[function(t,e){e.exports={name:"mermaid",version:"0.5.4",description:"Markdownish syntax for generating flowcharts, sequence diagrams and gantt charts.",main:"src/mermaid.js",keywords:["diagram","markdown","flowchart","sequence diagram","gantt"],bin:{mermaid:"./bin/mermaid.js"},scripts:{live:"live-server ./test/examples",lint:"node node_modules/eslint/bin/eslint.js src",watch:"source ./scripts/watch.sh",doc:"rm -r build;rm -r dist/www;gulp vartree;cp dist/www/all.html ../mermaid-pages/index.html;cp dist/mermaid.js ../mermaid-pages/javascripts/lib;cp dist/mermaid.forest.css ../mermaid-pages/stylesheets",tape:"node node_modules/.bin/tape test/cli_test-*.js",jasmine:"node node_modules/jasmine-es6/bin/jasmine.js",test:"npm run dist && npm run jasmine && npm run tape","dist-slim-mermaid":"node node_modules/browserify/bin/cmd.js src/mermaid.js -t babelify -s mermaid -o dist/mermaid.slim.js -x d3 && cat dist/mermaid.slim.js | node node_modules/uglifyjs/bin/uglifyjs -mc > dist/mermaid.slim.min.js","dist-slim-mermaidAPI":"node node_modules/browserify/bin/cmd.js src/mermaidAPI.js -t babelify -s mermaidAPI -o dist/mermaidAPI.slim.js -x d3 && cat dist/mermaidAPI.slim.js | node node_modules/uglifyjs/bin/uglifyjs -mc > dist/mermaidAPI.slim.min.js","dist-mermaid":"node node_modules/browserify/bin/cmd.js src/mermaid.js -t babelify -s mermaid -o dist/mermaid.js && cat dist/mermaid.js | node node_modules/uglifyjs/bin/uglifyjs -mc > dist/mermaid.min.js","dist-mermaidAPI":"node node_modules/browserify/bin/cmd.js src/mermaidAPI.js -t babelify -s mermaidAPI -o dist/mermaidAPI.js && cat dist/mermaidAPI.js | node node_modules/uglifyjs/bin/uglifyjs -mc > dist/mermaidAPI.min.js",dist:"npm run dist-slim-mermaid;npm run dist-slim-mermaidAPI; npm run dist-mermaid;npm run dist-mermaidAPI"},repository:{type:"git",url:"https://github.com/knsv/mermaid"},author:"Knut Sveidqvist",license:"MIT",dependencies:{chalk:"^0.5.1",d3:"~3.5.6","dagre-d3":"~0.4.8",he:"^0.5.0",minimist:"^1.1.0",mkdirp:"^0.5.0",moment:"^2.9.0",semver:"^4.1.1",which:"^1.0.8"},devDependenc
var o=a.length-1;switch(i){case 1:this.$=a[o-1];break;case 2:this.$=a[o-4];break;case 3:this.$=a[o-5];break;case 4:this.$=a[o-3];break;case 8:case 10:case 11:this.$=a[o];break;case 9:this.$=a[o-1]+""+a[o];break;case 12:case 13:case 14:case 15:case 16:case 18:case 19:case 20:this.$=a[o];break;case 17:this.$="<br>";break;case 39:this.$="oy";break;case 40:r.addLink(a[o-1],a[o].id,a[o].op),this.$="oy";break;case 42:r.addLink(a[o-1],a[o].id,a[o].op),this.$={op:a[o-2],id:a[o-1]};break;case 44:this.$={op:a[o-1],id:a[o]};break;case 48:r.addVertex(a[o-1]),this.$=a[o-1];break;case 49:r.addVertex(a[o]),this.$=a[o];break;case 66:this.$="arrow";break;case 67:this.$="arrow_open"}},table:[{3:1,4:2,6:3,11:[1,4],12:n,13:r},{1:[3]},{5:[1,7]},{7:8,8:[1,9],14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{6:23,12:n,13:r},e(g,[2,5]),e(g,[2,6]),{1:[2,1]},{8:[1,24]},{7:30,8:y,9:25,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},e([8,10,28,32,37,39,40,45,57,58],[2,7],{15:38,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p}),e(x,[2,8]),e(x,[2,10]),e(x,[2,11]),e(x,[2,12]),e(x,[2,13]),e(x,[2,14]),e(x,[2,15]),e(x,[2,16]),e(x,[2,17]),e(x,[2,18]),e(x,[2,19]),e(x,[2,20]),{7:39,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{7:30,8:y,9:40,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{10:[1,41]},{10:[2,21],28:[1,42]},e(w,[2,23]),e(w,[2,24]),e(w,[2,25]),e(A,k,{44:44,32:[1,43],45:E}),e(w,[2,27],{41:46,43:47,57:D,58:M}),e(w,[2,47],{43:47,34:50,41:51,37:S,57:D,58:M}),{34:53,37:S},{34:54,37:S},{34:55,37:S},{7:56,8:[1,57],14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{7:30,8:y,9:58,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},e(x,[2,9]),{8:[1,59]},{10:[1,60]},{5:[2,4]},{7:30,8:y,9:61,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{7:62,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p},e(A,[2,48]),e(A,C,{14:10,15:11,7:63,46:64,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,48:T,49:F,50:L,51:B,52:O,53:N,54:I,55:R,56:P}),e(w,[2,41],{34:74,37:S}),{7:77,8:y,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,33:76,42:75,47:_},e(q,[2,66]),e(q,[2,67]),e(w,[2,46]),e(w,[2,40],{34:78,37:S}),{7:81,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,38:79,39:[1,80]},e(w,[2,28]),e(w,[2,29]),e(w,[2,30]),{8:[1,82]},{7:30,8:y,9:83,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{10:[1,84]},{7:30,8:y,9:85,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{5:[2,2]},{10:[2,22]},e(w,[2,26]),e(A,[2,51],{45:[1,86]}),e(A,[2,52]),e(A,[2,56]),e(A,[2,57]),e(A,[2,58]),e(A,[2,59]),e(A,[2,60]),e(A,[2,61]),e(A,[2,62]),e(A,[2,63]),e(A,[2,64]),e(w,[2,38]),e(j,[2,44],{43:47,41:87,57:D,58:M}),e(j,[2,45],{43:47,41:88,57:D,58:M}),e(A,k,{44:44,45:E}),e(w,[2,39]),{39:[1,89]},e(w,[2,34],{34:90,37:S}),{32:[1,91]},{7:30,8:y,9:92,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{10:[1,93]},e(A,[2,55]),{10:[1,94]},e(A,C,{46:95,48:T,49:F,50:L,51:B,52:O,53:N,54:I,55:R,56:P}),e(j,[2,42]),e(j,[2,43]),e(w,[2,33],{34:96,37:S}),e(w,[2,32]),{7:97,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{10:[1,98]},e(A,[2,54]),{5:[2,3]},e(A,[2,50]),e(w,[2,31]),{28:[1,99],39:[2,37],40:[1,100]},e(A,[2,53]),{7:81,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,38:101},{7:81,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,38:102},{39:[2,35]},{39:[2,36]}],defaultActions:{7:[2,1],41:[2,4],60:[2,2],61:[2,22],94:[2,3],101:[2,35],102:[2,36]},parseError:function(t,e){if(!e.recoverable)throw new Error(t);this.trace(t)},parse
73:X,75:62,76:K,79:_,81:J,83:x,85:w,86:A,88:k,89:E,91:D,92:M,93:S},{10:B,12:O,13:N,15:I,16:R,17:P,18:q,30:j,31:172,32:U,43:69,44:Y,48:z,58:V,64:60,65:H,68:72,69:$,70:G,71:W,72:Z,73:X,75:62,76:K,79:_,81:J,83:x,85:w,86:A,88:k,89:E,91:D,92:M,93:S},{10:B,12:O,13:N,15:I,16:R,17:P,18:q,30:j,32:U,39:[1,173],43:69,44:Y,48:z,58:V,64:122,68:72,69:$,70:G,71:W,72:Z,73:X,75:62,76:K,79:_,81:J,83:x,85:w,86:A,88:k,89:E,91:D,92:M,93:S},{10:B,12:O,13:N,15:I,16:R,17:P,18:q,30:j,32:U,41:[1,174],43:69,44:Y,48:z,58:V,64:122,68:72,69:$,70:G,71:W,72:Z,73:X,75:62,76:K,79:_,81:J,83:x,85:w,86:A,88:k,89:E,91:D,92:M,93:S},{10:B,12:O,13:N,15:I,16:R,17:P,18:q,30:j,32:U,37:[1,175],43:69,44:Y,48:z,58:V,64:122,68:72,69:$,70:G,71:W,72:Z,73:X,75:62,76:K,79:_,81:J,83:x,85:w,86:A,88:k,89:E,91:D,92:M,93:S},e(tt,[2,28]),e(a,[2,23]),{6:10,7:11,8:u,9:s,10:c,11:l,13:h,18:f,23:16,25:17,26:18,27:19,28:20,29:21,30:d,32:[1,176],33:23,35:29,42:30,43:32,44:p,69:g,70:y,71:m,72:v,73:b,79:_,83:x,85:w,86:A,88:k,89:E,91:D,92:M,93:S},e(C,[2,37]),e(st,[2,63]),e(st,[2,62]),{10:B,12:O,13:N,15:I,16:R,17:P,18:q,30:j,32:U,43:69,44:Y,48:z,58:V,63:[1,177],64:122,68:72,69:$,70:G,71:W,72:Z,73:X,75:62,76:K,79:_,81:J,83:x,85:w,86:A,88:k,89:E,91:D,92:M,93:S},e(st,[2,65]),e(st,[2,66]),e(st,[2,67]),e(st,[2,68]),e(st,[2,69]),e(st,[2,70]),e(st,[2,71]),e(st,[2,72]),e(st,[2,73]),e(st,[2,74]),e(st,[2,75]),e(st,[2,76]),{10:lt,44:ht,69:ft,77:178,78:dt,79:pt,81:gt,82:179,84:180,85:yt,86:mt,87:vt,88:bt,89:_t},{10:lt,44:ht,69:ft,77:192,78:dt,79:pt,81:gt,82:179,84:180,85:yt,86:mt,87:vt,88:bt,89:_t},{10:lt,44:ht,69:ft,77:193,78:dt,79:pt,81:gt,82:179,84:180,85:yt,86:mt,87:vt,88:bt,89:_t},{10:lt,44:ht,69:ft,77:194,78:dt,79:pt,81:gt,82:179,84:180,85:yt,86:mt,87:vt,88:bt,89:_t},{10:lt,44:ht,69:ft,77:195,78:dt,79:pt,81:gt,82:179,84:180,85:yt,86:mt,87:vt,88:bt,89:_t},{10:lt,44:ht,69:ft,77:196,78:dt,79:pt,81:gt,82:179,84:180,85:yt,86:mt,87:vt,88:bt,89:_t},{13:h,18:f,35:197,42:30,43:32,44:p,79:_,83:x,85:w,86:A,88:k,89:E,91:D,92:M,93:S},{13:h,18:f,35:198,42:30,43:32,44:p,65:[1,199],79:_,83:x,85:w,86:A,88:k,89:E,91:D,92:M,93:S},e(tt,[2,43],{21:200,10:et}),{10:B,12:O,13:N,15:I,16:R,17:P,18:q,30:j,32:U,39:[1,201],43:69,44:Y,48:z,58:V,64:122,68:72,69:$,70:G,71:W,72:Z,73:X,75:62,76:K,79:_,81:J,83:x,85:w,86:A,88:k,89:E,91:D,92:M,93:S},e(tt,[2,47],{21:202,10:et}),e(tt,[2,49],{21:203,10:et}),e(tt,[2,51],{21:204,10:et}),e(C,[2,36]),e([10,13,18,44,79,83,85,86,88,89,91,92,93],[2,89]),e(Q,[2,115],{83:xt}),e(wt,[2,120],{84:206,10:lt,44:ht,69:ft,78:dt,79:pt,81:gt,85:yt,86:mt,87:vt,88:bt,89:_t}),e(At,[2,122]),e(At,[2,124]),e(At,[2,125]),e(At,[2,126]),e(At,[2,127]),e(At,[2,128]),e(At,[2,129]),e(At,[2,130]),e(At,[2,131]),e(At,[2,132]),e(At,[2,133]),e(At,[2,134]),e(Q,[2,116],{83:xt}),e(Q,[2,117],{83:xt}),e(Q,[2,118],{83:xt}),e(Q,[2,108],{83:xt}),e(Q,[2,109],{83:xt}),e(Q,[2,110],{43:32,42:111,13:h,18:f,44:p,79:_,83:x,85:w,86:A,88:k,89:E,91:D,92:M,93:S}),e(Q,[2,111],{43:32,42:111,10:[1,207],13:h,18:f,44:p,79:_,83:x,85:w,86:A,88:k,89:E,91:D,92:M,93:S}),e(Q,[2,113],{10:[1,208]}),e(tt,[2,44]),{39:[1,209]},e(tt,[2,48]),e(tt,[2,50]),e(tt,[2,52]),{10:lt,44:ht,69:ft,78:dt,79:pt,81:gt,82:210,84:180,85:yt,86:mt,87:vt,88:bt,89:_t},e(At,[2,123]),{65:[1,211]},{65:[1,212]},e(tt,[2,45],{21:213,10:et}),e(wt,[2,121],{84:206,10:lt,44:ht,69:ft,78:dt,79:pt,81:gt,85:yt,86:mt,87:vt,88:bt,89:_t}),e(Q,[2,112]),e(Q,[2,114]),e(tt,[2,46])],defaultActions:{},parseError:function(t,e){if(!e.recoverable)throw new Error(t);this.trace(t)},parse:function(t){var e=this,n=[0],r=[null],i=[],a=this.table,o="",u=0,s=0,c=0,l=2,h=1,f=i.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,"undefined"==typeof d.yylloc&&(d.yylloc={});var y=d.yylloc;i.push(y);var m=d.options&&d.options.ranges;this.parseError="function"==typeof p.yy.parseError?p.yy.parseError:Object.getPrototypeOf(this).parseError;for(var v,b,_,x,w,A,k,E,D,M=function(){var t;return t=d.lex()||h,"number"!=typeof t&&(t=e.symbols_[t]||t),t},S={};;){if(_=n[n.lengt
this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,n,r;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(t=this.test_match(n,i[a]),t!==!1)return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?(t=this.test_match(e,i[r]),t!==!1?t:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return 10;case 1:break;case 2:break;case 3:break;case 4:return 4;case 5:return 11;case 6:return"date";case 7:return 12;case 8:return 13;case 9:return 14;case 10:return 15;case 11:return":";case 12:return 6;case 13:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return t}();return u.lexer=s,t.prototype=u,u.Parser=t,new t}();"undefined"!=typeof t&&"undefined"!=typeof n&&(n.parser=i,n.Parser=i.Parser,n.parse=function(){return i.parse.apply(i,arguments)},n.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),r.exit(1));var i=t("fs").readFileSync(t("path").normalize(e[1]),"utf8");return n.parser.parse(i)},"undefined"!=typeof e&&t.main===e&&n.main(r.argv.slice(1)))}).call(this,t("_process"))},{_process:3,fs:1,path:2}],99:[function(t,e,n){(function(r){"use strict";var i=function(){function t(){this.yy={}}var e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[6,8,10,11,15,17,19,20,22,33],r=[2,2],i=[1,6],a=[1,8],o=[1,9],u=[1,12],s=[1,13],c=[1,14],l=[1,15],h=[1,17],f=[1,18],d=[2,7],p=[6,8,10,11,15,17,18,19,20,21,22,33],g=[6,8,10,11,15,17,18,19,20,22,33],y=[1,46],m=[1,49],v=[1,53],b={trace:function(){},yy:{},symbols_:{error:2,start:3,SD:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,participant:11,actor:12,signal:13,note_statement:14,title:15,text:16,loop:17,end:18,opt:19,alt:20,"else":21,note:22,placement:23,text2:24,over:25,spaceList:26,actor_pair:27,",":28,left_of:29,right_of:30,signaltype:31,actors:32,ACTOR:33,SOLID_OPEN_ARROW:34,DOTTED_OPEN_ARROW:35,SOLID_ARROW:36,DOTTED_ARROW:37,SOLID_CROSS:38,DOTTED_CROSS:39,TXT:40,$accept:0,$end:1},terminals_:{2:"error",4:"SD",6:"EOF",8:"SPACE",10:"NL",11:"participant",15:"title",16:"text",17:"loop",18:"end",19:"opt",20:"alt",21:"else",22:"note",25:"over",28:",",29:"left_of",30:"right_of",33:"ACTOR",34:"SOLID_OPEN_ARROW",35:"DOTTED_OPEN_ARROW",36:"SOLID_ARROW",37:"DOTTED_ARROW",38:"SOLID_CROSS",39:"DOTTED_CROSS",40:"TXT"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,3],[9,2],[9,2],[9,4],[9,4],[9,4],[9,7],[14,4],[14,5],[26,2],[26,1],[27,1],[27,3],[23,1],[23,1],[13,4],[32,2],[32,1],[12,1],[31,1],[31,1],[31,1],[31,1],[31,1],[31,1],[24,1]],performA
t=s.getConfig(),t.startOnLoad&&r.mermaid.init())},"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",function(){n.contentLoaded()},!1)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../package.json":86,"./logger":103,"./mermaidAPI":105,he:84}],105:[function(t,e,n){(function(e){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}var i=t("./logger"),a=r(i),o=new a.Log,u=t("./diagrams/flowchart/graphDb"),s=t("./utils"),c=t("./diagrams/flowchart/flowRenderer"),l=t("./diagrams/sequenceDiagram/sequenceRenderer"),h=t("./diagrams/example/exampleRenderer"),f=t("./diagrams/example/parser/example"),d=t("./diagrams/flowchart/parser/flow"),p=t("./diagrams/flowchart/parser/dot"),g=t("./diagrams/sequenceDiagram/parser/sequenceDiagram"),y=t("./diagrams/sequenceDiagram/sequenceDb"),m=t("./diagrams/example/exampleDb"),v=t("./diagrams/gantt/ganttRenderer"),b=t("./diagrams/gantt/parser/gantt"),_=t("./diagrams/gantt/ganttDb"),x=t("./d3"),w={logLevel:5,cloneCssStyles:!0,startOnLoad:!0,flowchart:{htmlLabels:!0,useMaxWidth:!0},sequenceDiagram:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,sidePadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:3,axisFormatter:[["%I:%M",function(t){return t.getHours()}],["w. %U",function(t){return 1==t.getDay()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%m-%y",function(t){return t.getMonth()}]]}};a.setLogLevel(w.logLevel);var A=function(t){var e,n=s.detectType(t);switch(n){case"graph":e=d,e.parser.yy=u;break;case"dotGraph":e=p,e.parser.yy=u;break;case"sequenceDiagram":e=g,e.parser.yy=y;break;case"info":e=f,e.parser.yy=m;break;case"gantt":e=b,e.parser.yy=_}try{return e.parse(t),!0}catch(r){return!1}};n.parse=A,n.version=function(){return t("../package.json").version},n.encodeEntities=function(t){var e=t;return e=e.replace(/style.*:\S*#.*;/g,function(t){var e=t.substring(0,t.length-1);return e}),e=e.replace(/classDef.*:\S*#.*;/g,function(t){var e=t.substring(0,t.length-1);return e}),e=e.replace(/#\w+\;/g,function(t){var e=t.substring(1,t.length-1),n=/^\+?\d+$/.test(e);return n?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"})},n.decodeEntities=function(t){var e=t;return e=e.replace(/\fl\°\°/g,function(){return"&#"}),e=e.replace(/\fl\°/g,function(){return"&"}),e=e.replace(/¶ß/g,function(){return";"})};var k=function(t,e,r,i){"undefined"!=typeof i?x.select(i).append("div").attr("id","d"+t).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g"):x.select("body").append("div").attr("id","d"+t).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g"),window.txt=e,e=n.encodeEntities(e);var a=x.select("#d"+t).node(),f=s.detectType(e),d={};switch(f){case"graph":c.setConf(w.flowchart),c.draw(e,t,!1),w.cloneCssStyles&&(d=c.getClasses(e,!1),s.cloneCssStyles(a.firstChild,d));break;case"dotGraph":c.setConf(w.flowchart),c.draw(e,t,!0),w.cloneCssStyles&&(d=c.getClasses(e,!0),s.cloneCssStyles(a.firstChild,d));break;case"sequenceDiagram":l.setConf(w.sequenceDiagram),l.draw(e,t),w.cloneCssStyles&&s.cloneCssStyles(a.firstChild,[]);break;case"gantt":v.setConf(w.gantt),v.draw(e,t),w.cloneCssStyles&&s.cloneCssStyles(a.firstChild,[]);break;case"info":h.draw(e,t,n.version()),w.cloneCssStyles&&s.cloneCssStyles(a.firstChild,[])}x.select("#d"+t).selectAll("foreignobject div").attr("xmlns","http://www.w3.org/1999/xhtml");var p=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search;p=p.replace(/\(/g,"\\("),p=p.replace(/\)/g,"\\)");var g=x.select("#d"+t).node().innerHTML.replace(/url\(#arrowhead/g,"