UNPKG

react-network-diagrams-hso

Version:
1 lines 338 kB
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/react-network-diagrams/",t(t.s=75)}([function(e,t,n){"use strict";e.exports=n(83)},function(e,t,n){e.exports=n(84)()},function(e,t,n){"use strict";function r(e,t,n,a){function s(t){return e(t=new Date(+t)),t}return s.floor=s,s.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t<n-e?t:n},s.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},s.range=function(n,r,o){var i,a=[];if(n=s.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return a;do{a.push(i=new Date(+n)),t(n,o),e(n)}while(i<n&&n<r);return a},s.filter=function(n){return r(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(s.count=function(t,r){return o.setTime(+t),i.setTime(+r),e(o),e(i),Math.floor(n(o,i))},s.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?s.filter(a?function(t){return a(t)%e===0}:function(t){return s.count(0,t)%e===0}):s:null}),s}t.a=r;var o=new Date,i=new Date},function(e,t,n){var r,o;(function(){function n(e){function t(t,n,r,o,i,a){for(;i>=0&&i<a;i+=e){var s=o?o[i]:i;r=n(r,t[s],s,t)}return r}return function(n,r,o,i){r=C(r,i,4);var a=!_(n)&&x.keys(n),s=(a||n).length,u=e>0?0:s-1;return arguments.length<3&&(o=n[a?a[u]:u],u+=e),t(n,r,o,a,u,s)}}function i(e){return function(t,n,r){n=O(n,r);for(var o=M(t),i=e>0?0:o-1;i>=0&&i<o;i+=e)if(n(t[i],i,t))return i;return-1}}function a(e,t,n){return function(r,o,i){var a=0,s=M(r);if("number"==typeof i)e>0?a=i>=0?i:Math.max(i+s,a):s=i>=0?Math.min(i+1,s):i+s+1;else if(n&&i&&s)return i=n(r,o),r[i]===o?i:-1;if(o!==o)return i=t(d.call(r,a,s),x.isNaN),i>=0?i+a:-1;for(i=e>0?a:s-1;i>=0&&i<s;i+=e)if(r[i]===o)return i;return-1}}function s(e,t){var n=j.length,r=e.constructor,o=x.isFunction(r)&&r.prototype||p,i="constructor";for(x.has(e,i)&&!x.contains(t,i)&&t.push(i);n--;)(i=j[n])in e&&e[i]!==o[i]&&!x.contains(t,i)&&t.push(i)}var u=this,l=u._,c=Array.prototype,p=Object.prototype,f=Function.prototype,h=c.push,d=c.slice,y=p.toString,g=p.hasOwnProperty,b=Array.isArray,m=Object.keys,v=f.bind,w=Object.create,E=function(){},x=function(e){return e instanceof x?e:this instanceof x?void(this._wrapped=e):new x(e)};"undefined"!==typeof e&&e.exports&&(t=e.exports=x),t._=x,x.VERSION="1.8.3";var C=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)}}return function(){return e.apply(t,arguments)}},O=function(e,t,n){return null==e?x.identity:x.isFunction(e)?C(e,t,n):x.isObject(e)?x.matcher(e):x.property(e)};x.iteratee=function(e,t){return O(e,t,1/0)};var k=function(e,t){return function(n){var r=arguments.length;if(r<2||null==n)return n;for(var o=1;o<r;o++)for(var i=arguments[o],a=e(i),s=a.length,u=0;u<s;u++){var l=a[u];t&&void 0!==n[l]||(n[l]=i[l])}return n}},S=function(e){if(!x.isObject(e))return{};if(w)return w(e);E.prototype=e;var t=new E;return E.prototype=null,t},T=function(e){return function(t){return null==t?void 0:t[e]}},P=Math.pow(2,53)-1,M=T("length"),_=function(e){var t=M(e);return"number"==typeof t&&t>=0&&t<=P};x.each=x.forEach=function(e,t,n){t=C(t,n);var r,o;if(_(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else{var i=x.keys(e);for(r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e)}return e},x.map=x.collect=function(e,t,n){t=O(t,n);for(var r=!_(e)&&x.keys(e),o=(r||e).length,i=Array(o),a=0;a<o;a++){var s=r?r[a]:a;i[a]=t(e[s],s,e)}return i},x.reduce=x.foldl=x.inject=n(1),x.reduceRight=x.foldr=n(-1),x.find=x.detect=function(e,t,n){var r;if(void 0!==(r=_(e)?x.findIndex(e,t,n):x.findKey(e,t,n))&&-1!==r)return e[r]},x.filter=x.select=function(e,t,n){var r=[];return t=O(t,n),x.each(e,function(e,n,o){t(e,n,o)&&r.push(e)}),r},x.reject=function(e,t,n){return x.filter(e,x.negate(O(t)),n)},x.every=x.all=function(e,t,n){t=O(t,n);for(var r=!_(e)&&x.keys(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(!t(e[a],a,e))return!1}return!0},x.some=x.any=function(e,t,n){t=O(t,n);for(var r=!_(e)&&x.keys(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(t(e[a],a,e))return!0}return!1},x.contains=x.includes=x.include=function(e,t,n,r){return _(e)||(e=x.values(e)),("number"!=typeof n||r)&&(n=0),x.indexOf(e,t,n)>=0},x.invoke=function(e,t){var n=d.call(arguments,2),r=x.isFunction(t);return x.map(e,function(e){var o=r?t:e[t];return null==o?o:o.apply(e,n)})},x.pluck=function(e,t){return x.map(e,x.property(t))},x.where=function(e,t){return x.filter(e,x.matcher(t))},x.findWhere=function(e,t){return x.find(e,x.matcher(t))},x.max=function(e,t,n){var r,o,i=-1/0,a=-1/0;if(null==t&&null!=e){e=_(e)?e:x.values(e);for(var s=0,u=e.length;s<u;s++)(r=e[s])>i&&(i=r)}else t=O(t,n),x.each(e,function(e,n,r){((o=t(e,n,r))>a||o===-1/0&&i===-1/0)&&(i=e,a=o)});return i},x.min=function(e,t,n){var r,o,i=1/0,a=1/0;if(null==t&&null!=e){e=_(e)?e:x.values(e);for(var s=0,u=e.length;s<u;s++)(r=e[s])<i&&(i=r)}else t=O(t,n),x.each(e,function(e,n,r){((o=t(e,n,r))<a||o===1/0&&i===1/0)&&(i=e,a=o)});return i},x.shuffle=function(e){for(var t,n=_(e)?e:x.values(e),r=n.length,o=Array(r),i=0;i<r;i++)t=x.random(0,i),t!==i&&(o[i]=o[t]),o[t]=n[i];return o},x.sample=function(e,t,n){return null==t||n?(_(e)||(e=x.values(e)),e[x.random(e.length-1)]):x.shuffle(e).slice(0,Math.max(0,t))},x.sortBy=function(e,t,n){return t=O(t,n),x.pluck(x.map(e,function(e,n,r){return{value:e,index:n,criteria:t(e,n,r)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index}),"value")};var A=function(e){return function(t,n,r){var o={};return n=O(n,r),x.each(t,function(r,i){var a=n(r,i,t);e(o,r,a)}),o}};x.groupBy=A(function(e,t,n){x.has(e,n)?e[n].push(t):e[n]=[t]}),x.indexBy=A(function(e,t,n){e[n]=t}),x.countBy=A(function(e,t,n){x.has(e,n)?e[n]++:e[n]=1}),x.toArray=function(e){return e?x.isArray(e)?d.call(e):_(e)?x.map(e,x.identity):x.values(e):[]},x.size=function(e){return null==e?0:_(e)?e.length:x.keys(e).length},x.partition=function(e,t,n){t=O(t,n);var r=[],o=[];return x.each(e,function(e,n,i){(t(e,n,i)?r:o).push(e)}),[r,o]},x.first=x.head=x.take=function(e,t,n){if(null!=e)return null==t||n?e[0]:x.initial(e,e.length-t)},x.initial=function(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},x.last=function(e,t,n){if(null!=e)return null==t||n?e[e.length-1]:x.rest(e,Math.max(0,e.length-t))},x.rest=x.tail=x.drop=function(e,t,n){return d.call(e,null==t||n?1:t)},x.compact=function(e){return x.filter(e,x.identity)};var D=function(e,t,n,r){for(var o=[],i=0,a=r||0,s=M(e);a<s;a++){var u=e[a];if(_(u)&&(x.isArray(u)||x.isArguments(u))){t||(u=D(u,t,n));var l=0,c=u.length;for(o.length+=c;l<c;)o[i++]=u[l++]}else n||(o[i++]=u)}return o};x.flatten=function(e,t){return D(e,t,!1)},x.without=function(e){return x.difference(e,d.call(arguments,1))},x.uniq=x.unique=function(e,t,n,r){x.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=O(n,r));for(var o=[],i=[],a=0,s=M(e);a<s;a++){var u=e[a],l=n?n(u,a,e):u;t?(a&&i===l||o.push(u),i=l):n?x.contains(i,l)||(i.push(l),o.push(u)):x.contains(o,u)||o.push(u)}return o},x.union=function(){return x.uniq(D(arguments,!0,!0))},x.intersection=function(e){for(var t=[],n=arguments.length,r=0,o=M(e);r<o;r++){var i=e[r];if(!x.contains(t,i)){for(var a=1;a<n&&x.contains(arguments[a],i);a++);a===n&&t.push(i)}}return t},x.difference=function(e){var t=D(arguments,!0,!0,1);return x.filter(e,function(e){return!x.contains(t,e)})},x.zip=function(){return x.unzip(arguments)},x.unzip=function(e){for(var t=e&&x.max(e,M).length||0,n=Array(t),r=0;r<t;r++)n[r]=x.pluck(e,r);return n},x.object=function(e,t){for(var n={},r=0,o=M(e);r<o;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n},x.findIndex=i(1),x.findLastIndex=i(-1),x.sortedIndex=function(e,t,n,r){n=O(n,r,1);for(var o=n(t),i=0,a=M(e);i<a;){var s=Math.floor((i+a)/2);n(e[s])<o?i=s+1:a=s}return i},x.indexOf=a(1,x.findIndex,x.sortedIndex),x.lastIndexOf=a(-1,x.findLastIndex),x.range=function(e,t,n){null==t&&(t=e||0,e=0),n=n||1;for(var r=Math.max(Math.ceil((t-e)/n),0),o=Array(r),i=0;i<r;i++,e+=n)o[i]=e;return o};var F=function(e,t,n,r,o){if(!(r instanceof t))return e.apply(n,o);var i=S(e.prototype),a=e.apply(i,o);return x.isObject(a)?a:i};x.bind=function(e,t){if(v&&e.bind===v)return v.apply(e,d.call(arguments,1));if(!x.isFunction(e))throw new TypeError("Bind must be called on a function");var n=d.call(arguments,2),r=function(){return F(e,r,t,this,n.concat(d.call(arguments)))};return r},x.partial=function(e){var t=d.call(arguments,1),n=function(){for(var r=0,o=t.length,i=Array(o),a=0;a<o;a++)i[a]=t[a]===x?arguments[r++]:t[a];for(;r<arguments.length;)i.push(arguments[r++]);return F(e,n,this,this,i)};return n},x.bindAll=function(e){var t,n,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(t=1;t<r;t++)n=arguments[t],e[n]=x.bind(e[n],e);return e},x.memoize=function(e,t){var n=function(r){var o=n.cache,i=""+(t?t.apply(this,arguments):r);return x.has(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return n.cache={},n},x.delay=function(e,t){var n=d.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},x.defer=x.partial(x.delay,x,1),x.throttle=function(e,t,n){var r,o,i,a=null,s=0;n||(n={});var u=function(){s=!1===n.leading?0:x.now(),a=null,i=e.apply(r,o),a||(r=o=null)};return function(){var l=x.now();s||!1!==n.leading||(s=l);var c=t-(l-s);return r=this,o=arguments,c<=0||c>t?(a&&(clearTimeout(a),a=null),s=l,i=e.apply(r,o),a||(r=o=null)):a||!1===n.trailing||(a=setTimeout(u,c)),i}},x.debounce=function(e,t,n){var r,o,i,a,s,u=function(){var l=x.now()-a;l<t&&l>=0?r=setTimeout(u,t-l):(r=null,n||(s=e.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,a=x.now();var l=n&&!r;return r||(r=setTimeout(u,t)),l&&(s=e.apply(i,o),i=o=null),s}},x.wrap=function(e,t){return x.partial(t,e)},x.negate=function(e){return function(){return!e.apply(this,arguments)}},x.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},x.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},x.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},x.once=x.partial(x.before,2);var N=!{toString:null}.propertyIsEnumerable("toString"),j=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];x.keys=function(e){if(!x.isObject(e))return[];if(m)return m(e);var t=[];for(var n in e)x.has(e,n)&&t.push(n);return N&&s(e,t),t},x.allKeys=function(e){if(!x.isObject(e))return[];var t=[];for(var n in e)t.push(n);return N&&s(e,t),t},x.values=function(e){for(var t=x.keys(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=e[t[o]];return r},x.mapObject=function(e,t,n){t=O(t,n);for(var r,o=x.keys(e),i=o.length,a={},s=0;s<i;s++)r=o[s],a[r]=t(e[r],r,e);return a},x.pairs=function(e){for(var t=x.keys(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=[t[o],e[t[o]]];return r},x.invert=function(e){for(var t={},n=x.keys(e),r=0,o=n.length;r<o;r++)t[e[n[r]]]=n[r];return t},x.functions=x.methods=function(e){var t=[];for(var n in e)x.isFunction(e[n])&&t.push(n);return t.sort()},x.extend=k(x.allKeys),x.extendOwn=x.assign=k(x.keys),x.findKey=function(e,t,n){t=O(t,n);for(var r,o=x.keys(e),i=0,a=o.length;i<a;i++)if(r=o[i],t(e[r],r,e))return r},x.pick=function(e,t,n){var r,o,i={},a=e;if(null==a)return i;x.isFunction(t)?(o=x.allKeys(a),r=C(t,n)):(o=D(arguments,!1,!1,1),r=function(e,t,n){return t in n},a=Object(a));for(var s=0,u=o.length;s<u;s++){var l=o[s],c=a[l];r(c,l,a)&&(i[l]=c)}return i},x.omit=function(e,t,n){if(x.isFunction(t))t=x.negate(t);else{var r=x.map(D(arguments,!1,!1,1),String);t=function(e,t){return!x.contains(r,t)}}return x.pick(e,t,n)},x.defaults=k(x.allKeys,!0),x.create=function(e,t){var n=S(e);return t&&x.extendOwn(n,t),n},x.clone=function(e){return x.isObject(e)?x.isArray(e)?e.slice():x.extend({},e):e},x.tap=function(e,t){return t(e),e},x.isMatch=function(e,t){var n=x.keys(t),r=n.length;if(null==e)return!r;for(var o=Object(e),i=0;i<r;i++){var a=n[i];if(t[a]!==o[a]||!(a in o))return!1}return!0};var I=function(e,t,n,r){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return e===t;e instanceof x&&(e=e._wrapped),t instanceof x&&(t=t._wrapped);var o=y.call(e);if(o!==y.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e===""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t}var i="[object Array]"===o;if(!i){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(x.isFunction(a)&&a instanceof a&&x.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[],r=r||[];for(var u=n.length;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),i){if((u=e.length)!==t.length)return!1;for(;u--;)if(!I(e[u],t[u],n,r))return!1}else{var l,c=x.keys(e);if(u=c.length,x.keys(t).length!==u)return!1;for(;u--;)if(l=c[u],!x.has(t,l)||!I(e[l],t[l],n,r))return!1}return n.pop(),r.pop(),!0};x.isEqual=function(e,t){return I(e,t)},x.isEmpty=function(e){return null==e||(_(e)&&(x.isArray(e)||x.isString(e)||x.isArguments(e))?0===e.length:0===x.keys(e).length)},x.isElement=function(e){return!(!e||1!==e.nodeType)},x.isArray=b||function(e){return"[object Array]"===y.call(e)},x.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},x.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){x["is"+e]=function(t){return y.call(t)==="[object "+e+"]"}}),x.isArguments(arguments)||(x.isArguments=function(e){return x.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(x.isFunction=function(e){return"function"==typeof e||!1}),x.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},x.isNaN=function(e){return x.isNumber(e)&&e!==+e},x.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===y.call(e)},x.isNull=function(e){return null===e},x.isUndefined=function(e){return void 0===e},x.has=function(e,t){return null!=e&&g.call(e,t)},x.noConflict=function(){return u._=l,this},x.identity=function(e){return e},x.constant=function(e){return function(){return e}},x.noop=function(){},x.property=T,x.propertyOf=function(e){return null==e?function(){}:function(t){return e[t]}},x.matcher=x.matches=function(e){return e=x.extendOwn({},e),function(t){return x.isMatch(t,e)}},x.times=function(e,t,n){var r=Array(Math.max(0,e));t=C(t,n,1);for(var o=0;o<e;o++)r[o]=t(o);return r},x.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},x.now=Date.now||function(){return(new Date).getTime()};var R={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},L=x.invert(R),U=function(e){var t=function(t){return e[t]},n="(?:"+x.keys(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}};x.escape=U(R),x.unescape=U(L),x.result=function(e,t,n){var r=null==e?void 0:e[t];return void 0===r&&(r=n),x.isFunction(r)?r.call(e):r};var B=0;x.uniqueId=function(e){var t=++B+"";return e?e+t:t},x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var V=/(.)^/,z={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},H=/\\|'|\r|\n|\u2028|\u2029/g,W=function(e){return"\\"+z[e]};x.template=function(e,t,n){!t&&n&&(t=n),t=x.defaults({},t,x.templateSettings);var r=RegExp([(t.escape||V).source,(t.interpolate||V).source,(t.evaluate||V).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,function(t,n,r,a,s){return i+=e.slice(o,s).replace(H,W),o=s+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var a=new Function(t.variable||"obj","_",i)}catch(e){throw e.source=i,e}var s=function(e){return a.call(this,e,x)};return s.source="function("+(t.variable||"obj")+"){\n"+i+"}",s},x.chain=function(e){var t=x(e);return t._chain=!0,t};var Y=function(e,t){return e._chain?x(t).chain():t};x.mixin=function(e){x.each(x.functions(e),function(t){var n=x[t]=e[t];x.prototype[t]=function(){var e=[this._wrapped];return h.apply(e,arguments),Y(this,n.apply(x,e))}})},x.mixin(x),x.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=c[e];x.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],Y(this,n)}}),x.each(["concat","join","slice"],function(e){var t=c[e];x.prototype[e]=function(){return Y(this,t.apply(this._wrapped,arguments))}}),x.prototype.value=function(){return this._wrapped},x.prototype.valueOf=x.prototype.toJSON=x.prototype.value,x.prototype.toString=function(){return""+this._wrapped},r=[],void 0!==(o=function(){return x}.apply(t,r))&&(e.exports=o)}).call(this)},function(e,t,n){"use strict";var r=n(39);n.d(t,"b",function(){return r.a});var o=n(7);n.d(t,"a",function(){return o.a});var i=n(40);n.d(t,"c",function(){return i.a});var a=(n(89),n(90),n(42),n(44),n(91),n(94),n(95),n(48),n(96),n(97),n(98),n(99),n(49),n(41),n(100),n(22));n.d(t,"d",function(){return a.a});var s=n(46);n.d(t,"e",function(){return s.a});var u=(n(101),n(102),n(103),n(47));n.d(t,"h",function(){return u.a}),n.d(t,"f",function(){return u.b}),n.d(t,"g",function(){return u.c});n(50),n(43),n(104)},function(e,t,n){"use strict";n.d(t,"d",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a}),n.d(t,"e",function(){return s});var r=1e3,o=6e4,i=36e5,a=864e5,s=6048e5},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i});var r=Array.prototype,o=r.map,i=r.slice},function(e,t,n){"use strict";t.a=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}},function(e,t,n){"use strict";var r=n(26);n.d(t,"a",function(){return r.e}),n.d(t,"f",function(){return r.g}),n.d(t,"d",function(){return r.f});var o=n(112);n.d(t,"e",function(){return o.a}),n.d(t,"c",function(){return o.b});var i=n(113);n.d(t,"b",function(){return i.a})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return f});var a=n(0),s=n.n(a),u=n(1),l=n.n(u),c=n(34),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),p(t,[{key:"render",value:function(){return s.a.createElement("g",null,s.a.createElement(c.a,{x:this.props.x,y:this.props.y,key:this.props.label,style:this.props.style.node,labelStyle:this.props.style.label,labelPosition:this.props.labelPosition,label:this.props.label,radius:this.props.radius,rx:this.props.roundedX,ry:this.props.roundedY,offset:this.props.offset,shape:this.props.shape,muted:this.props.muted,selected:this.props.selected,highlighted:this.props.highlighted}))}}]),t}(s.a.Component);f.propTypes={label:l.a.string,labelPosition:l.a.oneOf(["left","right","top","topright","topleft","bottom","bottomright","bottomleft","bottomleftangled","bottomrightangled","topleftangled","toprightangled"]),offset:l.a.number,shape:l.a.oneOf(["circle","square","cloud"]),radius:l.a.number,roundedX:l.a.number,roundedY:l.a.number,style:l.a.object,muted:l.a.bool,selected:l.a.bool,highlighted:l.a.bool},f.defaultProps={radius:7,shape:"circle",offset:0,labelPosition:"top",muted:!1,selected:!1,highlighted:!1}},function(e,t,n){"use strict";t.a=function(e){return null===e?NaN:+e}},function(e,t,n){"use strict";function r(e){var t=e.domain;return e.ticks=function(e){var n=t();return Object(i.h)(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return Object(u.a)(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),a=0,s=o.length-1,u=o[a],l=o[s];return l<u&&(r=u,u=l,l=r,r=a,a=s,s=r),r=Object(i.f)(u,l,n),r>0?(u=Math.floor(u/r)*r,l=Math.ceil(l/r)*r,r=Object(i.f)(u,l,n)):r<0&&(u=Math.ceil(u*r)/r,l=Math.floor(l*r)/r,r=Object(i.f)(u,l,n)),r>0?(o[a]=Math.floor(u/r)*r,o[s]=Math.ceil(l/r)*r,t(o)):r<0&&(o[a]=Math.ceil(u*r)/r,o[s]=Math.floor(l*r)/r,t(o)),e},e}function o(){var e=Object(s.b)(s.c,a.b);return e.copy=function(){return Object(s.a)(e,o())},r(e)}t.b=r,t.a=o;var i=n(4),a=n(24),s=n(17),u=n(124)},function(e,t,n){"use strict";function r(e,t){return function(n){return e+n*t}}function o(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function i(e,t){var n=t-e;return n?r(e,n>180||n<-180?n-360*Math.round(n/360):n):Object(u.a)(isNaN(e)?t:e)}function a(e){return 1===(e=+e)?s:function(t,n){return n-t?o(t,n,e):Object(u.a)(isNaN(t)?n:t)}}function s(e,t){var n=t-e;return n?r(e,n):Object(u.a)(isNaN(e)?t:e)}t.c=i,t.b=a,t.a=s;var u=n(55)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return h});var a=n(0),s=n.n(a),u=n(1),l=n.n(u),c=n(3),p=n.n(c),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),f(t,[{key:"render",value:function(){var e=this,t=[];p.a.isArray(this.props.label)?t=p.a.clone(this.props.label):t.push(this.props.label);var n=[],r=this.props.x,o=this.props.y,i=this.props.r,a=this.props.textAnchor?this.props.textAnchor:"middle",u="rotate("+i+" "+r+", "+o+")",l=this.props.style.fontSize?this.props.style.fontSize:10,c=this.props.yOffset,f=this.props.xOffset;"top"!==this.props.labelPosition&&"center"!==this.props.labelPosition||t.reverse();var h=void 0,d=void 0,y=void 0;return"center"===this.props.labelPosition&&(y=o+t.length/2*l),p.a.each(t,function(t,i){switch(h=r+f,e.props.labelPosition){case"top":d=o-c-i*l;break;case"bottom":d=o+c+l+i*l;break;case"center":d=y-c-i*l}n.push(s.a.createElement("tspan",{x:h,y:d,key:"label-line-"+i},t))}),s.a.createElement("g",null,s.a.createElement("text",{textAnchor:a,style:this.props.style,key:"connection-label",transform:u,className:this.props.labelClassed},n))}}]),t}(s.a.Component);h.propTypes={r:l.a.number,xOffset:l.a.number,yOffset:l.a.number},h.defaultProps={r:0,xOffset:0,yOffset:0}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return h});var a=n(0),s=n.n(a),u=n(1),l=n.n(u),c=n(9),p=n(74),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={highlighted:!1},n.handleMouseOut=n.handleMouseOut.bind(n),n.handleMouseOver=n.handleMouseOver.bind(n),n.handleSelectionChanged=n.handleSelectionChanged.bind(n),n}return i(t,e),f(t,[{key:"handleMouseOver",value:function(){this.props.noNavigate||this.setState({highlighted:!0})}},{key:"handleMouseOut",value:function(){this.props.noNavigate||this.setState({highlighted:!1})}},{key:"handleSelectionChanged",value:function(e,t){this.props.noNavigate||this.props.onSelectionChange(e,t)}},{key:"renderEndpoints",value:function(){return this.props.arrow?s.a.createElement("g",null):s.a.createElement("g",null,s.a.createElement(c.a,{x:this.props.x1,y:this.props.y1,key:"line-begin",style:this.props.style,radius:this.props.radius,shape:this.props.endpointShape,roundedX:this.props.endPointRoundedX,roundedY:this.props.endPointRoundedY,highlighted:this.state.highlighted,muted:this.props.muted,selected:this.props.selected}),s.a.createElement(c.a,{x:this.props.x2,y:this.props.y2,key:"line-end",style:this.props.style,radius:this.props.radius,shape:this.props.endpointShape,roundedX:this.props.endPointRoundedX,roundedY:this.props.endPointRoundedY,highlighted:this.state.highlighted,muted:this.props.muted,selected:this.props.selected}))}},{key:"render",value:function(){var e=void 0,t=void 0;e=void 0===this.props.labelOffsetX?1.33*this.props.radius:this.props.labelOffsetX,t=void 0===this.props.labelOffsetY?1.33*this.props.radius:this.props.labelOffsetY;var n={cursor:this.props.noNavigate?"default":"pointer",stroke:"#FFF",strokeWidth:8},r=this.props.navTo,o=void 0,i=void 0,a=void 0,u=void 0;return u="angled"===this.props.lineShape?this.props.bendOffset:this.props.curveOffset,this.state.highlighted?(o=this.props.style.line.highlighted.strokeWidth,i=this.props.style.line.highlighted.stroke,a=this.props.style.line.highlighted.fill):(o=this.props.style.line.normal.strokeWidth,i=this.props.style.line.normal.stroke,a=this.props.style.line.normal.fill),s.a.createElement("g",null,s.a.createElement("g",null,s.a.createElement(p.a,{x1:this.props.x1,x2:this.props.x2,y1:this.props.y1,y2:this.props.y2,shape:this.props.lineShape,key:"line-path",label:this.props.label,labelPosition:this.props.labelPosition,labelStyle:this.props.style.label,labelOffsetX:e,labelOffsetY:t,textAnchor:this.props.textAnchor,color:i,width:o,muted:this.props.muted,selected:this.props.selected,classed:this.props.classed,roundedX:this.props.roundedX,roundedY:this.props.roundedY,fillColor:a,size:this.props.size,centerLine:this.props.centerLine,arrow:this.props.arrow,arrowWidth:this.props.arrowWidth,arrowHeight:this.props.arrowHeight,position:this.props.position,offset:u,curveDirection:this.props.curveDirection,name:r})),s.a.createElement("g",{onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut},s.a.createElement(p.a,{x1:this.props.x1,x2:this.props.x2,y1:this.props.y1,y2:this.props.y2,shape:this.props.lineShape,key:"line-path-hit",label:this.props.label,labelPosition:this.props.labelPosition,labelStyle:this.props.style.label,labelOffsetX:e,labelOffsetY:t,textAnchor:this.props.textAnchor,color:n.stroke,width:n.strokeWidth,muted:this.props.muted,selected:this.props.selected,classed:this.props.classed,roundedX:this.props.roundedX,roundedY:this.props.roundedY,fillColor:a,size:this.props.size,centerLine:this.props.centerLine,arrow:this.props.arrow,arrowWidth:this.props.arrowWidth,arrowHeight:this.props.arrowHeight,position:this.props.position,offset:u,curveDirection:this.props.curveDirection,name:r,onSelectionChange:this.handleSelectionChanged,invisible:!0})),s.a.createElement("g",null,this.renderEndpoints()))}}]),t}(s.a.Component);h.propTypes={lineShape:l.a.oneOf(["linear","square","angled","arc"]),x1:l.a.number,x2:l.a.number,y1:l.a.number,y2:l.a.number,label:l.a.oneOfType([l.a.string,l.a.arrayOf(l.a.string)]),labelPosition:l.a.oneOf(["top","bottom","center"]),labelOffsetX:l.a.number,labelOffsetY:l.a.number,textAnchor:l.a.oneOf(["begin","middle","end"]),style:l.a.object,muted:l.a.bool,selected:l.a.bool,roundedX:l.a.number,roundedY:l.a.number,size:l.a.number,centerLine:l.a.bool,position:l.a.number,curveOffset:l.a.number,bendOffset:l.a.number,curveDirection:l.a.oneOf(["left","right"]),radius:l.a.number,endpointShape:l.a.oneOf(["circle","square","cloud"]),endPointRoundedX:l.a.number,endPointRoundedY:l.a.number,arrow:l.a.bool,arrowWidth:l.a.number,arrowHeight:l.a.number,noNavigate:l.a.bool,onSelectionChange:l.a.func,navTo:l.a.oneOfType([l.a.string,l.a.number])},h.defaultProps={noNavigate:!1,labelPosition:"top",radius:2,endpointShape:"circle",classed:"circuit",lineShape:"linear",selected:!1,muted:!1,position:0,arrow:!1,arrowWidth:10,arrowHeight:10,curveDirection:"right",curveOffset:20,size:40}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";t.a=function(e,t){return e=+e,t-=e,function(n){return e+t*n}}},function(e,t,n){"use strict";function r(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Object(h.a)(t)}function o(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}function i(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}function a(e,t,n,r){var o=e[0],i=e[1],a=t[0],s=t[1];return i<o?(o=n(i,o),a=r(s,a)):(o=n(o,i),a=r(a,s)),function(e){return a(o(e))}}function s(e,t,n,r){var o=Math.min(e.length,t.length)-1,i=new Array(o),a=new Array(o),s=-1;for(e[o]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<o;)i[s]=n(e[s],e[s+1]),a[s]=r(t[s],t[s+1]);return function(t){var n=Object(c.b)(e,t,1,o)-1;return a[n](i[n](t))}}function u(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function l(e,t){function n(){return l=Math.min(g.length,b.length)>2?s:a,c=h=null,u}function u(t){return(c||(c=l(g,b,v?o(e):e,m)))(+t)}var l,c,h,g=y,b=y,m=p.a,v=!1;return u.invert=function(e){return(h||(h=l(b,g,r,v?i(t):t)))(+e)},u.domain=function(e){return arguments.length?(g=f.a.call(e,d.a),n()):g.slice()},u.range=function(e){return arguments.length?(b=f.b.call(e),n()):b.slice()},u.rangeRound=function(e){return b=f.b.call(e),m=p.c,n()},u.clamp=function(e){return arguments.length?(v=!!e,n()):v},u.interpolate=function(e){return arguments.length?(m=e,n()):m},n()}t.c=r,t.a=u,t.b=l;var c=n(4),p=n(24),f=n(6),h=n(29),d=n(60),y=[0,1]},function(e,t,n){"use strict";var r=n(30);t.a=function(e){return e=Object(r.a)(Math.abs(e)),e?e[1]:NaN}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(162),o=n.n(r),i=(o()({TOP:null,BOTTOM:null,LEFT:null,RIGHT:null}),o()({NORTH:null,SOUTH:null,EAST:null,WEST:null}));o()({BASIC_CIRCUIT:null,CONCATENATED_CIRCUIT:null,PARALLEL_CIRCUIT:null}),o()({PARENT_BEGIN:null,PARENT_END:null,PREVIOUS_END:null,NEXT_BEGIN:null}),o()({CIRCUIT:null,ENDPOINT:null})},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=r(e),l=1;l<arguments.length;l++){n=Object(arguments[l]);for(var c in n)i.call(n,c)&&(u[c]=n[c]);if(o){s=o(n);for(var p=0;p<s.length;p++)a.call(n,s[p])&&(u[s[p]]=n[s[p]])}}return u}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t=document.documentElement,n=e.getBoundingClientRect();return{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}}n.d(t,"a",function(){return E});var u=n(3),l=n.n(u),c=n(0),p=n.n(c),f=n(1),h=n.n(f),d=n(87),y=n(156),g=n(157),b=n(73),m=n(34),v=n(74),w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={dragging:null},n}return a(t,e),w(t,[{key:"handleNodeMouseDown",value:function(e,t){var n=this.scale(),r=n.xScale,o=n.yScale,i=this.getOffsetMousePosition(t),a=i.x,s=i.y,u={id:e,x0:r.invert(a),y0:o.invert(s)};this.setState({dragging:u})}},{key:"handleSelectionChange",value:function(e,t){this.props.onNodeSelected?"node"===e&&this.props.onNodeSelected(t):this.props.onEdgeSelected?"edge"===e&&this.props.onEdgeSelected(t):this.props.onSelectionChange&&this.props.onSelectionChange(e,t)}},{key:"handleMouseMove",value:function(e){if(e.preventDefault(),this.state.dragging){var t=this.state.dragging.id,n=this.scale(),r=n.xScale,o=n.yScale,i=this.getOffsetMousePosition(e),a=i.x,s=i.y;this.props.onNodeDrag&&this.props.onNodeDrag(t,r.invert(a),o.invert(s))}}},{key:"handleMouseUp",value:function(e){e.stopPropagation(),this.setState({dragging:null})}},{key:"handleClick",value:function(e){if(!this.props.onNodeSelected&&!this.props.onEdgeSelected){if(this.props.onPositionSelected){var t=this.scale(),n=t.xScale,r=t.yScale,o=this.getOffsetMousePosition(e),i=o.x,a=o.y;this.props.onPositionSelected(n.invert(i),r.invert(a))}this.props.onSelectionChange&&this.props.onSelectionChange(null)}}},{key:"getOffsetMousePosition",value:function(e){var t=this.map,n=s(t),r=e.pageX-n.left,o=e.pageY-n.top;return{x:Math.round(r),y:Math.round(o)}}},{key:"scale",value:function(){return{xScale:Object(d.a)().domain([this.props.bounds.x1,this.props.bounds.x2]).range([this.props.margin,this.props.width-2*this.props.margin]),yScale:Object(d.a)().domain([this.props.bounds.y1,this.props.bounds.y2]).range([this.props.margin,this.props.height-2*this.props.margin])}}},{key:"render",value:function(){var e=this,t=this.scale(),n=t.xScale,o=t.yScale,i=this.props.selection.nodes.length,a=this.props.selection.edges.length,s={};l.a.each(this.props.topology.edges,function(e){s[e.source+"--"+e.target]=e,s[e.target+"--"+e.source]=e});var u=[];l.a.each(this.props.selection.edges,function(e){var t=s[e];t&&(u.push(t.source),u.push(t.target))});var c={},f=l.a.map(this.props.topology.nodes,function(t){var s=t.name,f=t.id,h=t.label,d=r(t,["name","id","label"]);d.id=f||s,d.x=n(t.x),d.y=o(t.y),d.label=h||s;var y=l.a.contains(e.props.selection.nodes,d.id),g=l.a.contains(u,t.name);return d.selected=y||g,d.muted=i&&!d.selected||a&&!d.selected,c[t.name]={x:d.x,y:d.y},p.a.createElement(m.a,Object.assign({key:d.id},d,{onSelectionChange:function(t,n){return e.handleSelectionChange(t,n)},onMouseDown:function(t,n){return e.handleNodeMouseDown(t,n)},onMouseMove:function(t,n,r,o){return e.props.onNodeMouseMove(n,r,o)},onMouseUp:function(t,n,r){return e.props.onNodeMouseUp(n,r)}}))}),h={};l.a.each(this.props.paths,function(e){for(var t=e.name,n=e.steps,r=0;r<n.length-1;r++){var o=n[r],i=n[r+1],a=void 0,s=void 0;if(l.a.has(c,o)&&l.a.has(c,i))c[o].x<c[i].x||c[o].y<c[i].y?(a=o,s=i):(a=i,s=o),l.a.has(h,a)||(h[a]={targetMap:{}}),l.a.has(h[a].targetMap,s)||(h[a].targetMap[s]=[]),h[a].targetMap[s].push(t);else{if(!l.a.has(c,o))throw new Error("Missing node in path '"+t+"': "+o);if(!l.a.has(c,i))throw new Error("Missing node in path '"+t+"': "+i)}}});var d={};l.a.each(this.props.paths,function(e){var t=e.steps;if(t.length>1)for(var n=0;n<t.length-1;n++){var r=t[n],o=t[n+1],i=r+"--"+o,a=o+"--"+r;d[i]=e,d[a]=e}});var w=l.a.map(this.props.topology.edges,function(t){var n=l.a.contains(e.props.selection.edges,t.name);if(l.a.has(c,t.source)&&l.a.has(c,t.target)){var r=e.props.edgeDrawingMethod,o="linear";l.a.isUndefined(t.shape)||l.a.isNull(t.shape)||(o=t.shape);var s="left";l.a.isUndefined(t.curveDirection)||l.a.isNull(t.curveDirection)||(s=t.curveDirection);var u=a&&!n||i,f=0!==u;return"simple"===r?p.a.createElement(v.a,{x1:c[t.source].x,x2:c[t.target].x,y1:c[t.source].y,y2:c[t.target].y,source:t.source,target:t.target,shape:o,curveDirection:s,color:t.stroke,width:t.width,classed:t.classed,key:t.name,name:t.name,selected:n,muted:f,onSelectionChange:function(t,n){return e.handleSelectionChange(t,n)}}):"bidirectionalArrow"===r?p.a.createElement(y.a,{x1:c[t.source].x,x2:c[t.target].x,y1:c[t.source].y,y2:c[t.target].y,source:t.source,target:t.target,shape:o,curveDirection:s,offset:t.offset,sourceTargetColor:t.sourceTargetColor,targetSourceColor:t.targetSourceColor,width:t.width,classed:t.classed,key:t.name,name:t.name,selected:n,muted:f,onSelectionChange:function(t,n){return e.handleSelectionChange(t,n)}}):"pathBidirectionalArrow"===r?l.a.has(d,t.name)?p.a.createElement(y.a,{x1:c[t.source].x,x2:c[t.target].x,y1:c[t.source].y,y2:c[t.target].y,source:t.source,target:t.target,shape:o,curveDirection:s,sourceTargetColor:t.sourceTargetColor,targetSourceColor:t.targetSourceColor,width:t.width,classed:t.classed,key:t.name,name:t.name,selected:n,muted:f,onSelectionChange:function(t,n){return e.handleSelectionChange(t,n)}}):p.a.createElement(v.a,{x1:c[t.source].x,x2:c[t.target].x,y1:c[t.source].y,y2:c[t.target].y,source:t.source,target:t.target,shape:o,curveDirection:s,color:t.stroke,width:1,classed:t.classed,key:t.name,name:t.name,selected:n,muted:f,onSelectionChange:function(t,n){return e.handleSelectionChange(t,n)}}):void 0}}),E=l.a.map(this.props.paths,function(t){var n=t.name,r=t.steps,o=[],i=t.color||"steelblue",a=t.width||1;if(r.length>1)for(var u=0;u<r.length-1;u++){var f=void 0,d=void 0,y=void 0,g=r[u],b=r[u+1];c[g].x<c[b].x||c[g].y<c[b].y?(f=g,d=b,y=1):(f=b,d=g,y=-1);var m=h[f].targetMap[d],w=l.a.indexOf(m,n),E=(w-(m.length-1)/2)*y,x=g+"--"+b,C=s[x],O="linear";!C||l.a.isUndefined(C.shape)||l.a.isNull(C.shape)||(O=C.shape);var k="left";!C||l.a.isUndefined(C.curveDirection)||l.a.isNull(C.curveDirection)||(k=C.curveDirection),"simple"===e.props.edgeDrawingMethod&&o.push(p.a.createElement(v.a,{x1:c[g].x,y1:c[g].y,x2:c[b].x,y2:c[b].y,position:6*E,source:g,color:i,target:b,shape:O,curveDirection:k,width:a,classed:"path-"+n,key:n+"--"+x,name:n+"--"+x}))}return p.a.createElement("g",{key:n},o)}),x=l.a.map(this.props.topology.labels,function(e){var t=n(e.x),r=o(e.y);return p.a.createElement(g.a,{x:t,y:r,label:e.label,labelPosition:e.labelPosition,key:e.label})}),C=null;l.a.isNull(this.props.legendItems)||(C=p.a.createElement(b.a,{x:this.props.legendItems.x,y:this.props.legendItems.y,edgeTypes:this.props.legendItems.edgeTypes,nodeTypes:this.props.legendItems.nodeTypes,colorSwatches:this.props.legendItems.colorSwatches}));var O=void 0;return O=this.state.dragging?{cursor:"pointer"}:this.props.onPositionSelected||this.props.onNodeSelected||this.props.onEdgeSelected?{cursor:"crosshair"}:{cursor:"default"},p.a.createElement("svg",{style:O,ref:function(t){e.map=t},width:this.props.width,height:this.props.height,className:"noselect map-container",onClick:function(t){return e.handleClick(t)},onMouseMove:function(t){return e.handleMouseMove(t)},onMouseUp:function(t){return e.handleMouseUp(t)}},p.a.createElement("g",null,w,E,f,x,C))}}]),t}(p.a.Component);E.propTypes={topology:h.a.object.isRequired,width:h.a.number,height:h.a.number,margin:h.a.number,bounds:h.a.shape({x1:h.a.number,y1:h.a.number,x2:h.a.number,y2:h.a.number}),edgeDrawingMethod:h.a.oneOf(["simple","bidirectionalArrow","pathBidirectionalArrow"]),legendItems:h.a.shape({x:h.a.number,y:h.a.number,edgeTypes:h.a.object,nodeTypes:h.a.object,colorSwatches:h.a.object}),selection:h.a.object,paths:h.a.array,pathWidth:h.a.number},E.defaultProps={width:800,height:600,margin:20,bounds:{x1:0,y1:0,x2:1,y2:1},edgeDrawingMethod:"simple",legendItems:null,selection:{nodes:{},edges:{}},paths:[],pathWidth:5}},function(e,t,n){"use strict";var r=n(10);t.a=function(e,t,n){if(null==n&&(n=r.a),o=e.length){if((t=+t)<=0||o<2)return+n(e[0],0,e);if(t>=1)return+n(e[o-1],o-1,e);var o,i=(o-1)*t,a=Math.floor(i),s=+n(e[a],a,e);return s+(+n(e[a+1],a+1,e)-s)*(i-a)}}},function(e,t,n){"use strict";function r(){}function o(e,t){var n=new r;if(e instanceof r)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var o,i=-1,a=e.length;if(null==t)for(;++i<a;)n.set(i,e[i]);else for(;++i<a;)n.set(t(o=e[i],i,e),o)}else if(e)for(var s in e)n.set(s,e[s]);return n}n.d(t,"b",function(){return i});var i="$";r.prototype=o.prototype={constructor:r,has:function(e){return i+e in this},get:function(e){return this[i+e]},set:function(e,t){return this[i+e]=t,this},remove:function(e){var t=i+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===i&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===i&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===i&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===i&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===i&&++e;return e},empty:function(){for(var e in this)if(e[0]===i)return!1;return!0},each:function(e){for(var t in this)t[0]===i&&e(this[t],t.slice(1),this)}},t.a=o},function(e,t,n){"use strict";var r=n(25);n.d(t,"a",function(){return r.a});var o=(n(56),n(28),n(54),n(57),n(16));n.d(t,"b",function(){return o.a});var i=(n(58),n(114));n.d(t,"c",function(){return i.a});n(59),n(115),n(118),n(53),n(119),n(120),n(121),n(122),n(123)},function(e,t,n){"use strict";var r=n(8),o=n(53),i=n(56),a=n(57),s=n(16),u=n(58),l=n(59),c=n(55);t.a=function(e,t){var n,p=typeof t;return null==t||"boolean"===p?Object(c.a)(t):("number"===p?s.a:"string"===p?(n=Object(r.a)(t))?(t=n,o.a):l.a:t instanceof r.a?o.a:t instanceof Date?a.a:Array.isArray(t)?i.a:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?u.a:s.a)(e,t)}},function(e,t,n){"use strict";function r(){}function o(e){var t;return e=(e+"").trim().toLowerCase(),(t=E.exec(e))?(t=parseInt(t[1],16),new l(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1)):(t=x.exec(e))?i(parseInt(t[1],16)):(t=C.exec(e))?new l(t[1],t[2],t[3],1):(t=O.exec(e))?new l(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=k.exec(e))?a(t[1],t[2],t[3],t[4]):(t=S.exec(e))?a(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=T.exec(e))?c(t[1],t[2]/100,t[3]/100,1):(t=P.exec(e))?c(t[1],t[2]/100,t[3]/100,t[4]):M.hasOwnProperty(e)?i(M[e]):"transparent"===e?new l(NaN,NaN,NaN,0):null}function i(e){return new l(e>>16&255,e>>8&255,255&e,1)}function a(e,t,n,r){return r<=0&&(e=t=n=NaN),new l(e,t,n,r)}function s(e){return e instanceof r||(e=o(e)),e?(e=e.rgb(),new l(e.r,e.g,e.b,e.opacity)):new l}function u(e,t,n,r){return 1===arguments.length?s(e):new l(e,t,n,null==r?1:r)}function l(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function c(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new h(e,t,n,r)}function p(e){if(e instanceof h)return new h(e.h,e.s,e.l,e.opacity);if(e instanceof r||(e=o(e)),!e)return new h;if(e instanceof h)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,a=Math.min(t,n,i),s=Math.max(t,n,i),u=NaN,l=s-a,c=(s+a)/2;return l?(u=t===s?(n-i)/l+6*(n<i):n===s?(i-t)/l+2:(t-n)/l+4,l/=c<.5?s+a:2-s-a,u*=60):l=c>0&&c<1?0:u,new h(u,l,c,e.opacity)}function f(e,t,n,r){return 1===arguments.length?p(e):new h(e,t,n,null==r?1:r)}function h(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function d(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}t.a=r,n.d(t,"d",function(){return g}),n.d(t,"c",function(){return b}),t.e=o,t.h=s,t.g=u,t.b=l,t.f=f;var y=n(27),g=.7,b=1/g,m="\\s*([+-]?\\d+)\\s*",v="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",w="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",E=/^#([0-9a-f]{3})$/,x=/^#([0-9a-f]{6})$/,C=new RegExp("^rgb\\("+[m,m,m]+"\\)$"),O=new RegExp("^rgb\\("+[w,w,w]+"\\)$"),k=new RegExp("^rgba\\("+[m,m,m,v]+"\\)$"),S=new RegExp("^rgba\\("+[w,w,w,v]+"\\)$"),T=new RegExp("^hsl\\("+[v,w,w]+"\\)$"),P=new RegExp("^hsla\\("+[v,w,w,v]+"\\)$"),M={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object(y.a)(r,o,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Object(y.a)(l,u,Object(y.b)(r,{brighter:function(e){return e=null==e?b:Math.pow(b,e),new l(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?g:Math.pow(g,e),new l(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(1===e?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Object(y.a)(h,f,Object(y.b)(r,{brighter:function(e){return e=null==e?b:Math.pow(b,e),new h(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=