forked from fkling/JSNetworkX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jsnetworkx.js
8 lines (8 loc) · 248 KB
/
jsnetworkx.js
1
2
3
4
5
6
7
8
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.jsnx=e()}}(function(){return function e(t,r,n){function a(o,u){if(!r[o]){if(!t[o]){var s="function"==typeof require&&require;if(!u&&s)return s(o,!0);if(i)return i(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[o]={exports:{}};t[o][0].call(c.exports,function(e){var r=t[o][1][e];return a(r||e)},c,c.exports,e,t,r,n)}return r[o].exports}for(var i="function"==typeof require&&require,o=0;o<n.length;o++)a(n[o]);return a}({1:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={workerPath:"jsnetworkx.js"},t.exports=r.default},{}],2:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0});var a=e("lodash/collection/shuffle"),i=n(a),o=e("lodash/collection/sample"),u=n(o);r.default={shuffle:i.default,sample:u.default},t.exports=r.default},{"babel-runtime/helpers/interop-require-default":109,"lodash/collection/sample":203,"lodash/collection/shuffle":204}],3:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/create-class").default,a=e("babel-runtime/helpers/class-call-check").default,i=e("babel-runtime/helpers/sliced-to-array").default,o=e("babel-runtime/core-js/object/create").default,u=e("babel-runtime/core-js/get-iterator").default,s=e("babel-runtime/regenerator").default,l=e("babel-runtime/core-js/symbol/iterator").default,c=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0});var f=e("./clear"),d=c(f),h=e("./isIterable"),p=c(h),v=e("lodash/lang/isFunction"),b=c(v),g=e("lodash/lang/isObject"),y=c(g),m=e("./isArrayLike"),w=c(m),x=e("lodash/collection/size"),j=c(x),k=function(){function e(t){if(a(this,e),this._stringValues=o(null),this._numberValues=o(null),this._values=o(null),this._keys=o(null),null!=t)if((0,p.default)(t)){var r=!0,n=!1,s=void 0;try{for(var l,c=u(t);!(r=(l=c.next()).done);r=!0){var f=i(l.value,2),d=f[0],h=f[1];this.set(d,h)}}catch(e){n=!0,s=e}finally{try{!r&&c.return&&c.return()}finally{if(n)throw s}}}else if((0,w.default)(t))for(var v=0;v<t.length;v++){var b=i(t[v],2),d=b[0],h=b[1];this.set(d,h)}else if((0,y.default)(t))for(var d in t)this.set(isNaN(+d)?d:+d,t[d])}return n(e,[{key:"_getStorage",value:function(e){switch(typeof e){case"number":return this._numberValues;case"string":return this._stringValues;default:return this._values}}},{key:"get",value:function(e,t){var r=this._getStorage(e);return e in r?r[e]:t}},{key:"has",value:function(e){return e in this._getStorage(e)}},{key:"set",value:function(e,t){var r=this._getStorage(e);return r[e]=t,r===this._values&&(this._keys[e]=e),this}},{key:"delete",value:function(e){var t=this._getStorage(e);return e in t&&(delete t[e],t===this._values&&delete this._keys[e],!0)}},{key:"entries",value:s.mark(function e(){var t;return s.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=s.keys(this._numberValues);case 1:if((e.t1=e.t0()).done){e.next=7;break}return t=e.t1.value,e.next=5,[+t,this._numberValues[t]];case 5:e.next=1;break;case 7:e.t2=s.keys(this._stringValues);case 8:if((e.t3=e.t2()).done){e.next=14;break}return t=e.t3.value,e.next=12,[t,this._stringValues[t]];case 12:e.next=8;break;case 14:e.t4=s.keys(this._values);case 15:if((e.t5=e.t4()).done){e.next=21;break}return t=e.t5.value,e.next=19,[this._keys[t],this._values[t]];case 19:e.next=15;break;case 21:case"end":return e.stop()}},e,this)})},{key:"keys",value:s.mark(function e(){var t;return s.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=s.keys(this._numberValues);case 1:if((e.t1=e.t0()).done){e.next=7;break}return t=e.t1.value,e.next=5,+t;case 5:e.next=1;break;case 7:e.t2=s.keys(this._stringValues);case 8:if((e.t3=e.t2()).done){e.next=14;break}return t=e.t3.value,e.next=12,t;case 12:e.next=8;break;case 14:e.t4=s.keys(this._values);case 15:if((e.t5=e.t4()).done){e.next=21;break}return t=e.t5.value,e.next=19,this._keys[t];case 19:e.next=15;break;case 21:case"end":return e.stop()}},e,this)})},{key:"values",value:s.mark(function e(){var t;return s.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=s.keys(this._numberValues);case 1:if((e.t1=e.t0()).done){e.next=7;break}return t=e.t1.value,e.next=5,this._numberValues[t];case 5:e.next=1;break;case 7:e.t2=s.keys(this._stringValues);case 8:if((e.t3=e.t2()).done){e.next=14;break}return t=e.t3.value,e.next=12,this._stringValues[t];case 12:e.next=8;break;case 14:e.t4=s.keys(this._values);case 15:if((e.t5=e.t4()).done){e.next=21;break}return t=e.t5.value,e.next=19,this._values[t];case 19:e.next=15;break;case 21:case"end":return e.stop()}},e,this)})},{key:"clear",value:function(){(0,d.default)(this._stringValues),(0,d.default)(this._numberValues),(0,d.default)(this._values),(0,d.default)(this._keys)}},{key:"forEach",value:function(e,t){if(!(0,b.default)(e))throw new TypeError("callback must be a function");var r=!0,n=!1,a=void 0;try{for(var i,o=u(this.entries());!(r=(i=o.next()).done);r=!0){var s=i.value;e.call(t,s[1],s[0],this)}}catch(e){n=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw a}}}},{key:l,value:function(){return this.entries()}},{key:"size",get:function(){return(0,j.default)(this._values)+(0,j.default)(this._numberValues)+(0,j.default)(this._stringValues)}}]),e}();r.default=k,t.exports=r.default},{"./clear":7,"./isArrayLike":21,"./isIterable":24,"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/object/create":93,"babel-runtime/core-js/symbol/iterator":101,"babel-runtime/helpers/class-call-check":102,"babel-runtime/helpers/create-class":103,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/sliced-to-array":111,"babel-runtime/regenerator":112,"lodash/collection/size":205,"lodash/lang/isFunction":260,"lodash/lang/isObject":262}],4:[function(e,t,r){"use strict";function n(e,t){return t[0]-e[0]}var a=e("babel-runtime/helpers/create-class").default,i=e("babel-runtime/helpers/class-call-check").default,o=e("babel-runtime/helpers/sliced-to-array").default,u=e("babel-runtime/core-js/get-iterator").default;Object.defineProperty(r,"__esModule",{value:!0});var s=function(){function e(t){if(i(this,e),this._values=[],null!=t){var r=!0,a=!1,s=void 0;try{for(var l,c=u(t);!(r=(l=c.next()).done);r=!0){var f=o(l.value,2),d=f[0],h=f[1];this._values.push([d,h])}}catch(e){a=!0,s=e}finally{try{!r&&c.return&&c.return()}finally{if(a)throw s}}this._values.sort(n)}}return a(e,[{key:"enqueue",value:function(e,t){this._values.push([e,t]),this._values.sort(n)}},{key:"dequeue",value:function(){return this._values.pop()}},{key:"size",get:function(){return this._values.length}}]),e}();r.default=s,t.exports=r.default},{"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/class-call-check":102,"babel-runtime/helpers/create-class":103,"babel-runtime/helpers/sliced-to-array":111}],5:[function(e,t,r){"use strict";function n(e,t){var r=new v(e),n=!0,a=!1,i=void 0;try{for(var o,s=u(t);!(n=(o=s.next()).done);n=!0){var l=o.value;e.has(l)?r.delete(l):r.add(l)}}catch(e){a=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw i}}return r}function a(e,t){var r=new v(e),n=!0,a=!1,i=void 0;try{for(var o,s=u(t);!(n=(o=s.next()).done);n=!0){var l=o.value;r.add(l)}}catch(e){a=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw i}}return r}var i=e("babel-runtime/helpers/create-class").default,o=e("babel-runtime/helpers/class-call-check").default,u=e("babel-runtime/core-js/get-iterator").default,s=e("babel-runtime/regenerator").default,l=e("babel-runtime/core-js/symbol/iterator").default,c=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.symmetricDifference=n,r.union=a;var f=e("./Map"),d=c(f),h=e("./toIterator"),p=c(h),v=function(){function e(t){if(o(this,e),this._map=new d.default,null!=t){var r=!0,n=!1,a=void 0;try{for(var i,s=u((0,p.default)(t));!(r=(i=s.next()).done);r=!0){var l=i.value;this.add(l)}}catch(e){n=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(n)throw a}}}}return i(e,[{key:"has",value:function(e){return this._map.has(e)}},{key:"add",value:function(e){this._map.set(e,!0)}},{key:"delete",value:function(e){return this._map.delete(e)}},{key:"values",value:function(){return this._map.keys()}},{key:"keys",value:function(){return this.values()}},{key:"entries",value:s.mark(function e(){var t,r,n,a,i,o;return s.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=!0,r=!1,n=void 0,e.prev=3,a=u(this.values());case 5:if(t=(i=a.next()).done){e.next=12;break}return o=i.value,e.next=9,[o,o];case 9:t=!0,e.next=5;break;case 12:e.next=18;break;case 14:e.prev=14,e.t0=e.catch(3),r=!0,n=e.t0;case 18:e.prev=18,e.prev=19,!t&&a.return&&a.return();case 21:if(e.prev=21,!r){e.next=24;break}throw n;case 24:return e.finish(21);case 25:return e.finish(18);case 26:case"end":return e.stop()}},e,this,[[3,14,18,26],[19,,21,25]])})},{key:"clear",value:function(){this._map.clear()}},{key:"forEach",value:function(e,t){var r=!0,n=!1,a=void 0;try{for(var i,o=u(this.values());!(r=(i=o.next()).done);r=!0){var s=i.value;e.call(t,s,s,this)}}catch(e){n=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw a}}}},{key:"difference",value:function(){for(var t=new e(this),r=arguments.length,n=Array(r),a=0;a<r;a++)n[a]=arguments[a];for(var i=0,o=n.length;i<o;i++){var s=!0,l=!1,c=void 0;try{for(var f,d=u(n[i]);!(s=(f=d.next()).done);s=!0){var h=f.value;t.delete(h)}}catch(e){l=!0,c=e}finally{try{!s&&d.return&&d.return()}finally{if(l)throw c}}}return t}},{key:"intersection",value:function(){var t=new e,r=!0,n=!1,a=void 0;try{for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];for(var l,c=u(this);!(r=(l=c.next()).done);r=!0){var f=l.value;o.every(function(e){return e.has(f)})&&t.add(f)}}catch(e){n=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(n)throw a}}return t}},{key:"pop",value:function(){try{var e=this.values().next().value;return this.delete(e),e}catch(e){}}},{key:l,value:function(){return this.values()}},{key:"size",get:function(){return this._map.size}}]),e}();r.default=v},{"./Map":3,"./toIterator":39,"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/symbol/iterator":101,"babel-runtime/helpers/class-call-check":102,"babel-runtime/helpers/create-class":103,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/regenerator":112}],6:[function(e,t,r){(function(e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=e.Worker,t.exports=r.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(e,t,r){"use strict";function n(e){for(var t in e)delete e[t]}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n,t.exports=r.default},{}],8:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0});var a=e("lodash/lang/clone"),i=n(a);r.default=i.default,t.exports=r.default},{"babel-runtime/helpers/interop-require-default":109,"lodash/lang/clone":256}],9:[function(e,t,r){"use strict";function n(e,t,r){var n=function(){};n.prototype=e.constructor.prototype;var i,o,u={};for(i in e)e.hasOwnProperty(i)&&(u[i]=e[i]);u=a(u,t,r),o=new n;for(i in u)o[i]=u[i];return o}function a(e,t,r){return(0,s.default)(e,!0,function(e){if((0,d.default)(e)||(0,p.default)(e)||(0,c.default)(e)){var a=n(e,t,r);return t.push(e),r.push(a),a}},null,null,t,r)}function i(e){return a(e,[],[])}var o=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;var u=e("lodash/internal/baseClone"),s=o(u),l=e("./isGraph"),c=o(l),f=e("./isMap"),d=o(f),h=e("./isSet"),p=o(h);t.exports=r.default},{"./isGraph":23,"./isMap":26,"./isSet":28,"babel-runtime/helpers/interop-require-default":109,"lodash/internal/baseClone":212}],10:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0});var a=e("lodash/object/merge"),i=n(a);r.default=i.default,t.exports=r.default},{"babel-runtime/helpers/interop-require-default":109,"lodash/object/merge":271}],11:[function(e,t,r){"use strict";function n(e,t){return new a(function(r,n){try{var a=s.default.methodLookupFunction(e).apply(null,t);(0,c.default)(a)&&(a=i(a)),r(a)}catch(e){n(e)}})}var a=e("babel-runtime/core-js/promise").default,i=e("babel-runtime/core-js/array/from").default,o=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var u=e("../WorkerSettings"),s=o(u),l=e("./isIterator"),c=o(l);t.exports=r.default},{"../WorkerSettings":1,"./isIterator":25,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/promise":99,"babel-runtime/helpers/interop-require-default":109}],12:[function(e,t,r){"use strict";function n(e,t){return o(e,t)}var a=e("babel-runtime/core-js/promise").default,i=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var o,u=e("./Worker"),s=i(u),l=e("../WorkerSettings"),c=i(l),f=e("./delegateSync"),d=i(f),h=e("./message");o="function"==typeof s.default?function(e,t){var r=(0,h.serializeAll)(t),n=r.serializable,i=r.serializedValues;return n?new a(function(t,r){var n=new s.default(c.default.workerPath);n.addEventListener("message",function(e){return t((0,h.deserialize)(e.data))},!1),n.addEventListener("error",r,!1),n.postMessage({method:e,args:i})}):(console.info("At least one argument can't be serialized and sent to the worker. We will run "+e+" in the same thread instead."),(0,d.default)(e,t))}:function(e,t){return console.info('Workers are not supported in this environment, so "'+e+'" will run in the same thread instead. This might block the environment.'),(0,d.default)(e,t)},t.exports=r.default},{"../WorkerSettings":1,"./Worker":6,"./delegateSync":11,"./message":32,"babel-runtime/core-js/promise":99,"babel-runtime/helpers/interop-require-default":109}],13:[function(e,t,r){"use strict";function n(e,t){for(var r=new Array(e),n=0;n<e;n++)r[n]=t;return r}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n,t.exports=r.default},{}],14:[function(e,t,r){"use strict";function n(e,t,r){if(Array.isArray(e)){var n=0,i=e.length;if(r)for(;n<i;n++)t.call(r,e[n],n);else for(;n<i;n++)t(e[n],n)}else if((0,u.default)(e)&&(e=a(e)),(0,l.default)(e)){var o,s;if(void 0!==r){var c=!0,f=!1,d=void 0;try{for(var h,p=a(e);!(c=(h=p.next()).done);c=!0)o=h.value,s+=1,t.call(r,o,s)}catch(e){f=!0,d=e}finally{try{!c&&p.return&&p.return()}finally{if(f)throw d}}}else{var v=!0,b=!1,g=void 0;try{for(var y,m=a(e);!(v=(y=m.next()).done);v=!0)o=y.value,s+=1,t(o,s)}catch(e){b=!0,g=e}finally{try{!v&&m.return&&m.return()}finally{if(b)throw g}}}}else if(e&&"object"==typeof e)if(r)for(var w in e)t.call(r,e[w],w);else for(var w in e)t(e[w],w)}var a=e("babel-runtime/core-js/get-iterator").default,i=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var o=e("./isIterable"),u=i(o),s=e("./isIterator"),l=i(s);t.exports=r.default},{"./isIterable":24,"./isIterator":25,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":109}],15:[function(e,t,r){"use strict";function n(e,t){for(;0!==t;){var r=e;e=t,t=r%t}return e}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n,t.exports=r.default},{}],16:[function(e,t,r){"use strict";function n(e){return e.slice().reverse()}function a(e,t){var r,a,u,l,f,d,h;return i.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(r=o(e),a=r.length,!(t>a)){i.next=4;break}return i.abrupt("return");case 4:return u=(0,c.default)(t),l=n(u),i.next=8,u.map(function(e){return r[e]});case 8:f=void 0,d=0;case 11:if(!(d<l.length)){i.next=18;break}if(f=l[d],u[f]===f+a-t){i.next=15;break}return i.abrupt("break",18);case 15:d++,i.next=11;break;case 18:if(l.length!==d){i.next=20;break}return i.abrupt("return");case 20:for(u[f]+=1,h=f+1;h<t;h++)u[h]=u[h-1]+1;return i.next=24,u.map(function(e){return r[e]});case 24:i.next=8;break;case 26:case"end":return i.stop()}},s[0],this)}var i=e("babel-runtime/regenerator").default,o=e("babel-runtime/core-js/array/from").default,u=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=a;var s=[a].map(i.mark),l=e("./range"),c=u(l);t.exports=r.default},{"./range":35,"babel-runtime/core-js/array/from":88,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/regenerator":112}],17:[function(e,t,r){"use strict";function n(e,t){var r,n,o,s,c,f,d,h,p;return a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(r=i(e),n=r.length,!((t=null==t?n:t)>n)){a.next=5;break}return a.abrupt("return");case 5:return o=(0,l.default)(n),s=(0,l.default)(n,n-t,-1),c=(0,l.default)(t-1,-1,-1),a.next=10,o.slice(0,t).map(function(e){return r[e]});case 10:f=0;case 12:if(!(f<c.length)){a.next=31;break}if(d=c[f],s[d]-=1,h=o[d],0!==s[d]){a.next=22;break}o.splice(d,1),o.push(h),s[d]=n-d,a.next=28;break;case 22:return p=s[d],o[d]=o[o.length-p],o[o.length-p]=h,a.next=27,o.slice(0,t).map(function(e){return r[e]});case 27:return a.abrupt("break",31);case 28:f++,a.next=12;break;case 31:if(c.length!==f){a.next=33;break}return a.abrupt("return");case 33:a.next=10;break;case 35:case"end":return a.stop()}},u[0],this)}var a=e("babel-runtime/regenerator").default,i=e("babel-runtime/core-js/array/from").default,o=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var u=[n].map(a.mark),s=e("./range"),l=o(s);t.exports=r.default},{"./range":35,"babel-runtime/core-js/array/from":88,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/regenerator":112}],18:[function(e,t,r){"use strict";function n(e,t,r){var n,o;return a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(null!=e){a.next=4;break}return a.abrupt("return");case 4:if(null!=t){a.next=10;break}t=e,e=0,r=1,a.next=16;break;case 10:if(null!=r){a.next=14;break}r=1,a.next=16;break;case 14:if(0!==r){a.next=16;break}throw new RangeError("opt_step can't be 0");case 16:n=r<0,o=e;case 18:if(!(n&&o>t||!n&&o<t)){a.next=24;break}return a.next=21,o;case 21:o+=r,a.next=18;break;case 24:case"end":return a.stop()}},i[0],this)}var a=e("babel-runtime/regenerator").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var i=[n].map(a.mark);t.exports=r.default},{"babel-runtime/regenerator":112}],19:[function(e,t,r){"use strict";function n(e,t){return null==e?t:e}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n,t.exports=r.default},{}],20:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default").default,a=e("babel-runtime/helpers/interop-require-wildcard").default,i=e("babel-runtime/helpers/defaults").default,o=e("babel-runtime/helpers/interop-export-wildcard").default;Object.defineProperty(r,"__esModule",{value:!0});var u=e("./Arrays"),s=n(u),l=e("./Map"),c=n(l),f=e("./PriorityQueue"),d=n(f),h=e("./Set"),p=n(h),v=e("./clone"),b=n(v),g=e("./clear"),y=n(g),m=e("./deepcopy"),w=n(m),x=e("./deepmerge"),j=n(x),k=e("./gcd"),E=n(k),_=e("./genCombinations"),$=n(_),S=e("./genPermutations"),M=n(S),O=e("./genRange"),P=n(O),I=e("./getDefault"),N=n(I),A=e("./fillArray"),q=n(A),D=e("./forEach"),L=n(D),F=e("./isArrayLike"),G=n(F),T=e("./isBoolean"),C=n(T),z=e("./isGraph"),J=n(z),R=e("./isIterable"),X=n(R),B=e("./isIterator"),U=n(B),V=e("./isMap"),H=n(V),K=e("./isPlainObject"),W=n(K),Y=e("./mapIterator"),Q=n(Y),Z=e("./mapSequence"),ee=n(Z),te=e("./max"),re=n(te),ne=e("./next"),ae=n(ne),ie=e("./nodesAreEqual"),oe=n(ie),ue=e("./range"),se=n(ue),le=e("./someIterator"),ce=n(le),fe=e("./toIterator"),de=n(fe),he=e("./tuple"),pe=a(he),ve=e("./size"),be=n(ve),ge=e("./sprintf"),ye=n(ge),me=e("./zipIterator"),we=n(me),xe=e("./zipSequence"),je=n(xe);r.Arrays=s.default,r.Map=c.default,r.PriorityQueue=d.default,r.Set=p.default,r.clone=b.default,r.clear=y.default,r.deepcopy=w.default,r.deepmerge=j.default,r.gcd=E.default,r.genCombinations=$.default,r.genPermutations=M.default,r.genRange=P.default,r.getDefault=N.default,r.fillArray=q.default,r.forEach=L.default,r.isArrayLike=G.default,r.isBoolean=C.default,r.isGraph=J.default,r.isIterable=X.default,r.isIterator=U.default,r.isMap=H.default,r.isPlainObject=W.default,r.mapIterator=Q.default,r.mapSequence=ee.default,r.max=re.default,r.next=ae.default,r.nodesAreEqual=oe.default,r.range=se.default,r.someIterator=ce.default,r.toIterator=de.default,r.tuple=pe,r.size=be.default,r.sprintf=ye.default,r.zipIterator=we.default,r.zipSequence=je.default,i(r,o(he,i))},{"./Arrays":2,"./Map":3,"./PriorityQueue":4,"./Set":5,"./clear":7,"./clone":8,"./deepcopy":9,"./deepmerge":10,"./fillArray":13,"./forEach":14,"./gcd":15,"./genCombinations":16,"./genPermutations":17,"./genRange":18,"./getDefault":19,"./isArrayLike":21,"./isBoolean":22,"./isGraph":23,"./isIterable":24,"./isIterator":25,"./isMap":26,"./isPlainObject":27,"./mapIterator":29,"./mapSequence":30,"./max":31,"./next":33,"./nodesAreEqual":34,"./range":35,"./size":36,"./someIterator":37,"./sprintf":38,"./toIterator":39,"./tuple":40,"./zipIterator":41,"./zipSequence":42,"babel-runtime/helpers/defaults":104,"babel-runtime/helpers/interop-export-wildcard":108,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/interop-require-wildcard":110}],21:[function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"number"==typeof e.length&&"function"!=typeof e}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n,t.exports=r.default},{}],22:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0});var a=e("lodash/lang/isBoolean"),i=n(a);r.default=i.default,t.exports=r.default},{"babel-runtime/helpers/interop-require-default":109,"lodash/lang/isBoolean":259}],23:[function(e,t,r){"use strict";function n(e){return e&&"function"==typeof e.addNode}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n,t.exports=r.default},{}],24:[function(e,t,r){"use strict";function n(e){return"function"==typeof e[a]}var a=e("babel-runtime/core-js/symbol/iterator").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=n,t.exports=r.default},{"babel-runtime/core-js/symbol/iterator":101}],25:[function(e,t,r){"use strict";function n(e){return e&&"function"==typeof e.next}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n,t.exports=r.default},{}],26:[function(e,t,r){"use strict";function n(e){return e instanceof o.default}var a=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var i=e("./Map"),o=a(i);t.exports=r.default},{"./Map":3,"babel-runtime/helpers/interop-require-default":109}],27:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0});var a=e("lodash/lang/isPlainObject"),i=n(a);r.default=i.default,t.exports=r.default},{"babel-runtime/helpers/interop-require-default":109,"lodash/lang/isPlainObject":263}],28:[function(e,t,r){"use strict";function n(e){return e instanceof o.default}var a=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var i=e("./Set"),o=a(i);t.exports=r.default},{"./Set":5,"babel-runtime/helpers/interop-require-default":109}],29:[function(e,t,r){"use strict";function n(e,t,r){var n,u,s,l,c,f;return a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:n=!0,u=!1,s=void 0,a.prev=3,l=i(e);case 5:if(n=(c=l.next()).done){a.next=12;break}return f=c.value,a.next=9,t.call(r,f);case 9:n=!0,a.next=5;break;case 12:a.next=18;break;case 14:a.prev=14,a.t0=a.catch(3),u=!0,s=a.t0;case 18:a.prev=18,a.prev=19,!n&&l.return&&l.return();case 21:if(a.prev=21,!u){a.next=24;break}throw s;case 24:return a.finish(21);case 25:return a.finish(18);case 26:case"end":return a.stop()}},o[0],this,[[3,14,18,26],[19,,21,25]])}var a=e("babel-runtime/regenerator").default,i=e("babel-runtime/core-js/get-iterator").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var o=[n].map(a.mark);t.exports=r.default},{"babel-runtime/core-js/get-iterator":89,"babel-runtime/regenerator":112}],30:[function(e,t,r){"use strict";function n(e,t,r){if((0,f.default)(e))return y.call(e,t,r);if((0,h.default)(e)&&(e=a(e)),(0,v.default)(e))return(0,g.default)(e,t,r);if((0,u.default)(e))return(0,l.default)(e,t,r);throw new TypeError("Can't map value of type %s",typeof e)}var a=e("babel-runtime/core-js/get-iterator").default,i=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var o=e("lodash/lang/isPlainObject"),u=i(o),s=e("lodash/object/mapValues"),l=i(s),c=e("./isArrayLike"),f=i(c),d=e("./isIterable"),h=i(d),p=e("./isIterator"),v=i(p),b=e("./mapIterator"),g=i(b),y=Array.prototype.map;t.exports=r.default},{"./isArrayLike":21,"./isIterable":24,"./isIterator":25,"./mapIterator":29,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":109,"lodash/lang/isPlainObject":263,"lodash/object/mapValues":270}],31:[function(e,t,r){"use strict";function n(e,t){var r,n=-1/0;return(0,o.default)(e,function(e){var a=t?t(e):e;a>n&&(n=a,r=e)}),r}var a=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var i=e("./forEach"),o=a(i);t.exports=r.default},{"./forEach":14,"babel-runtime/helpers/interop-require-default":109}],32:[function(e,t,r){"use strict";function n(e){var t;return t={},h(t,O,"Set"),h(t,"data",v(e.values())),t}function a(e){return new $.default(e.data)}function i(e){var t;return t={},h(t,O,"Map"),h(t,"data",function(){var t=[],r=!0,n=!1,a=void 0;try{for(var i,o=b(e);!(r=(i=o.next()).done);r=!0){var u=p(i.value,2),s=u[0],l=u[1];t.push([s,c(l)])}}catch(e){n=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw a}}return t}()),t}function o(e){return new E.default(e.data.map(function(e){return e[1]=f(e[1]),e}))}function u(e){var t;return t={},h(t,O,e.constructor.__name__),h(t,"data",e.graph),h(t,"nodes",v(e.node)),h(t,"edges",e.edges(null,!0)),t}function s(e){var t=new M[e[O]](e.edges,e.data);return t.addNodesFrom(e.nodes),t}function l(e){var t=typeof e;return null==e||"string"===t||"number"===t||"boolean"===t||(0,j.default)(e)||Array.isArray(e)||e instanceof E.default||e instanceof $.default||"Graph"===e.constructor.__name__||"DiGraph"===e.constructor.__name__||(0,w.default)(e)}function c(e){var t=typeof e;return e&&"string"!==t&&"number"!==t&&"boolean"!==t?e instanceof $.default?n(e):e instanceof E.default?i(e):"Graph"===e.constructor.__name__||"DiGraph"===e.constructor.__name__?u(e):(0,w.default)(e)?v(e):e:e}function f(e){var t=typeof e;if(!e||"string"===t||"number"===t||"boolean"===t)return e;if(e[O])switch(e[O]){case"Map":return o(e);case"Set":return a(e);case"Graph":case"DiGraph":return s(e)}return e}function d(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=new Array(e.length);return{serializable:e.every(function(e,r){var n=l(e);return n&&(t[r]=c(e)),n}),serializedValues:t}}var h=e("babel-runtime/helpers/define-property").default,p=e("babel-runtime/helpers/sliced-to-array").default,v=e("babel-runtime/core-js/array/from").default,b=e("babel-runtime/core-js/get-iterator").default,g=e("babel-runtime/helpers/interop-require-default").default,y=e("babel-runtime/helpers/interop-require-wildcard").default;Object.defineProperty(r,"__esModule",{value:!0}),r.isSupported=l,r.serialize=c,r.deserialize=f,r.serializeAll=d;var m=e("./isIterable"),w=g(m),x=e("./isPlainObject"),j=g(x),k=e("./Map"),E=g(k),_=e("./Set"),$=g(_),S=e("../classes"),M=y(S),O="__type-jsnx__"},{"../classes":65,"./Map":3,"./Set":5,"./isIterable":24,"./isPlainObject":27,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/define-property":105,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/interop-require-wildcard":110,"babel-runtime/helpers/sliced-to-array":111}],33:[function(e,t,r){"use strict";function n(e){var t=e.next();if(t.done)throw new Error("Iterator is already exhausted");return t.value}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n,t.exports=r.default},{}],34:[function(e,t,r){"use strict";function n(e,t){return e===t||"object"==typeof e&&e.toString()===t.toString()}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n,t.exports=r.default},{}],35:[function(e,t,r){"use strict";function n(e,t,r){return a((0,u.default)(e,t,r))}var a=e("babel-runtime/core-js/array/from").default,i=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var o=e("./genRange"),u=i(o);t.exports=r.default},{"./genRange":18,"babel-runtime/core-js/array/from":88,"babel-runtime/helpers/interop-require-default":109}],36:[function(e,t,r){"use strict";function n(e){if((0,s.default)(e))return e.numberOfNodes();if("string"==typeof e||(0,o.default)(e))return e.length;if((0,c.default)(e))return(0,d.default)(e);throw new TypeError("Expected a graph object, array, string or object, but got %s instead",typeof e)}var a=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var i=e("./isArrayLike"),o=a(i),u=e("./isGraph"),s=a(u),l=e("lodash/lang/isPlainObject"),c=a(l),f=e("lodash/collection/size"),d=a(f);t.exports=r.default},{"./isArrayLike":21,"./isGraph":23,"babel-runtime/helpers/interop-require-default":109,"lodash/collection/size":205,"lodash/lang/isPlainObject":263}],37:[function(e,t,r){"use strict";function n(e,t){var r=!0,n=!1,i=void 0;try{for(var o,u=a(e);!(r=(o=u.next()).done);r=!0){if(t(o.value))return!0}}catch(e){n=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(n)throw i}}return!1}var a=e("babel-runtime/core-js/get-iterator").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=n,t.exports=r.default},{"babel-runtime/core-js/get-iterator":89}],38:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0});var a=e("tiny-sprintf"),i=n(a);i.default.j=function(e){if(void 0===e)return void 0+"";try{return JSON.stringify(e)}catch(t){return e+""}},r.default=i.default,t.exports=r.default},{"babel-runtime/helpers/interop-require-default":109,"tiny-sprintf":277}],39:[function(e,t,r){"use strict";function n(e){if((0,c.default)(e))return e;if((0,d.default)(e))return a(e);if(Array.isArray(e)||(0,s.default)(e))return i.mark(function e(t){var r,n;return i.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=0,n=t.length;case 1:if(!(r<n)){e.next=7;break}return e.next=4,t[r];case 4:r++,e.next=1;break;case 7:case"end":return e.stop()}},e,this)})(e);throw new TypeError("Unable to convert "+e+" to an iterator")}var a=e("babel-runtime/core-js/get-iterator").default,i=e("babel-runtime/regenerator").default,o=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var u=e("./isArrayLike"),s=o(u),l=e("./isIterator"),c=o(l),f=e("./isIterable"),d=o(f);t.exports=r.default},{"./isArrayLike":21,"./isIterable":24,"./isIterator":25,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/regenerator":112}],40:[function(e,t,r){"use strict";function n(e,t){return c[0]=e,c[1]=t,c}function a(e,t,r){return f[0]=e,f[1]=t,f[2]=r,f}function i(e,t,r,n){return d[0]=e,d[1]=t,
d[2]=r,d[3]=n,d}function o(e,t,r){return r.length=2,r[0]=e,r[1]=t,r}function u(e,t,r,n){return n.length=3,n[0]=e,n[1]=t,n[2]=r,n}function s(e,t,r,n,a){return a.length=4,a[0]=e,a[1]=t,a[2]=r,a[3]=n,a}function l(e){var t=new Array(e);switch(e){case 2:return function(e,r){return t[0]=e,t[1]=r,t};case 3:return function(e,r,n){return t[0]=e,t[1]=r,t[2]=n,t};default:throw new Error("Typle size not supported.")}}Object.defineProperty(r,"__esModule",{value:!0}),r.tuple2=n,r.tuple3=a,r.tuple4=i,r.tuple2c=o,r.tuple3c=u,r.tuple4c=s,r.createTupleFactory=l;var c=new Array(2),f=new Array(3),d=new Array(4)},{}],41:[function(e,t,r){"use strict";function n(){var e,t,r,n,o,u,s=arguments;return a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:e=s,t=e.length;case 2:r=!1,n=new Array(t),o=0;case 6:if(!(o<t)){a.next=15;break}if(u=e[o].next(),!u.done){a.next=11;break}return r=!0,a.abrupt("break",15);case 11:n[o]=u.value;case 12:o++,a.next=6;break;case 15:if(!r){a.next=17;break}return a.abrupt("break",21);case 17:return a.next=19,n;case 19:a.next=2;break;case 21:case"end":return a.stop()}},i[0],this)}var a=e("babel-runtime/regenerator").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var i=[n].map(a.mark);t.exports=r.default},{"babel-runtime/regenerator":112}],42:[function(e,t,r){"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,a,i=t.length,o=1/0,u=new Array(i);for(n=0;n<i;n++){var s=t[n],l=s.length;if(l<o&&0===(o=l))return[];u[n]=s[0]}for(a=new Array(o),a[0]=u,n=1;n<o;n++){u=new Array(i);for(var c=0;c<i;c++)u[c]=t[c][n];a[n]=u}return a}function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var a=t[0];if((0,u.default)(a))return n.apply(null,t);if((0,l.default)(a))return f.default.apply(null,t);throw new TypeError("Expected an iterator, array-like object or object, but got %s instead",a)}var i=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=a;var o=e("./isArrayLike"),u=i(o),s=e("./isIterator"),l=i(s),c=e("./zipIterator"),f=i(c);t.exports=r.default},{"./isArrayLike":21,"./isIterator":25,"./zipIterator":41,"babel-runtime/helpers/interop-require-default":109}],43:[function(e,t,r){"use strict";function n(e){var t=this,r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=r.k,a=r.normalized,i=r.weight,o=r.endpoints;a=null==a||a,o=null!=o&&o;var f=new w.Map(v.mark(function r(){var n,a,i,o,u,s;return v.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!0,a=!1,i=void 0,t.prev=3,o=b(e);case 5:if(n=(u=o.next()).done){t.next=12;break}return s=u.value,t.next=9,(0,w.tuple2)(s,0);case 9:n=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),a=!0,i=t.t0;case 18:t.prev=18,t.prev=19,!n&&o.return&&o.return();case 21:if(t.prev=21,!a){t.next=24;break}throw i;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},r,t,[[3,14,18,26],[19,,21,25]])})()),h=e.nodes();return null!=n&&(h=w.Arrays.sample(h,n)),h.forEach(function(t){var r=null==i?u(e,t):s(e,t,i),n=p(r,3),a=n[0],d=n[1],h=n[2];f=o?c(f,a,d,h,t):l(f,a,d,h,t)}),d(f,e.order(),a,e.isDirected(),n)}function a(e,t){return(0,m.default)("betweennessCentrality",[e,t])}function i(e){var t=this,r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=r.normalized,a=r.weight;n=null==n||n;var i=new w.Map(v.mark(function r(){var n,a,i,o,u,s;return v.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!0,a=!1,i=void 0,t.prev=3,o=b(e);case 5:if(n=(u=o.next()).done){t.next=12;break}return s=u.value,t.next=9,(0,w.tuple2)(s,0);case 9:n=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),a=!0,i=t.t0;case 18:t.prev=18,t.prev=19,!n&&o.return&&o.return();case 21:if(t.prev=21,!a){t.next=24;break}throw i;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},r,t,[[3,14,18,26],[19,,21,25]])})()),o=!0,l=!1,c=void 0;try{for(var d,g=b(e.edgesIter());!(o=(d=g.next()).done);o=!0){var y=d.value;i.set(y,0)}}catch(e){l=!0,c=e}finally{try{!o&&g.return&&g.return()}finally{if(l)throw c}}var m=!0,x=!1,j=void 0;try{for(var k,E=b(e);!(m=(k=E.next()).done);m=!0){var _=k.value,$=null==a?u(e,_):s(e,_,a),S=p($,3);i=f(i,S[0],S[1],S[2],_)}}catch(e){x=!0,j=e}finally{try{!m&&E.return&&E.return()}finally{if(x)throw j}}var M=!0,O=!1,P=void 0;try{for(var I,N=b(e);!(M=(I=N.next()).done);M=!0){var A=I.value;i.delete(A)}}catch(e){O=!0,P=e}finally{try{!M&&N.return&&N.return()}finally{if(O)throw P}}return h(i,e.order(),n,e.isDirected())}function o(e,t){return(0,m.default)("edgeBetweennessCentrality",[e,t])}function u(e,t){var r=this,n=[],a=new w.Map(v.mark(function t(){var n,a,i,o,u,s;return v.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!0,a=!1,i=void 0,t.prev=3,o=b(e);case 5:if(n=(u=o.next()).done){t.next=12;break}return s=u.value,t.next=9,(0,w.tuple2)(s,[]);case 9:n=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),a=!0,i=t.t0;case 18:t.prev=18,t.prev=19,!n&&o.return&&o.return();case 21:if(t.prev=21,!a){t.next=24;break}throw i;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},t,r,[[3,14,18,26],[19,,21,25]])})()),i=new w.Map(v.mark(function t(){var n,a,i,o,u,s;return v.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!0,a=!1,i=void 0,t.prev=3,o=b(e);case 5:if(n=(u=o.next()).done){t.next=12;break}return s=u.value,t.next=9,(0,w.tuple2)(s,0);case 9:n=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),a=!0,i=t.t0;case 18:t.prev=18,t.prev=19,!n&&o.return&&o.return();case 21:if(t.prev=21,!a){t.next=24;break}throw i;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},t,r,[[3,14,18,26],[19,,21,25]])})()),o=new w.Map;i.set(t,1),o.set(t,0);for(var u=[t];u.length>0;){var s=u.shift();n.push(s);var l=o.get(s),c=i.get(s);e.neighbors(s).forEach(function(e){o.has(e)||(u.push(e),o.set(e,l+1)),o.get(e)===l+1&&(i.set(e,i.get(e)+c),a.get(e).push(s))})}return[n,a,i]}function s(e,t){var r=this,n=arguments.length<=2||void 0===arguments[2]?"weight":arguments[2],a=[],i=new w.Map(v.mark(function t(){var n,a,i,o,u,s;return v.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!0,a=!1,i=void 0,t.prev=3,o=b(e);case 5:if(n=(u=o.next()).done){t.next=12;break}return s=u.value,t.next=9,(0,w.tuple2)(s,[]);case 9:n=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),a=!0,i=t.t0;case 18:t.prev=18,t.prev=19,!n&&o.return&&o.return();case 21:if(t.prev=21,!a){t.next=24;break}throw i;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},t,r,[[3,14,18,26],[19,,21,25]])})()),o=new w.Map(v.mark(function t(){var n,a,i,o,u,s;return v.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!0,a=!1,i=void 0,t.prev=3,o=b(e);case 5:if(n=(u=o.next()).done){t.next=12;break}return s=u.value,t.next=9,(0,w.tuple2)(s,0);case 9:n=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),a=!0,i=t.t0;case 18:t.prev=18,t.prev=19,!n&&o.return&&o.return();case 21:if(t.prev=21,!a){t.next=24;break}throw i;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},t,r,[[3,14,18,26],[19,,21,25]])})()),u=new w.Map;o.set(t,1);var s=new w.Map([(0,w.tuple2)(t,0)]),l=new w.PriorityQueue;for(l.enqueue(0,[t,t]);l.size>0;){var c=l.dequeue(),f=p(c,2),d=f[0],h=p(f[1],2),g=h[0],y=h[1];if(!u.has(y)){o.set(y,o.get(y)+o.get(g)),a.push(y),u.set(y,d);var m=!0,x=!1,j=void 0;try{for(var k,E=b(e.get(y));!(m=(k=E.next()).done);m=!0){var _=p(k.value,2),$=_[0],S=_[1],M=d+(0,w.getDefault)(S[n],1);u.has($)||s.has($)&&!(M<s.get($))?M===s.get($)&&(o.set($,o.get($)+o.get(y)),i.get($).push(y)):(s.set($,M),l.enqueue(M,[y,$]),o.set($,0),i.set($,[y]))}}catch(e){x=!0,j=e}finally{try{!m&&E.return&&E.return()}finally{if(x)throw j}}}}return[a,i,o]}function l(e,t,r,n,a){for(var i=this,o=new w.Map(v.mark(function e(){var r,n,a,o,u,s;return v.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=!0,n=!1,a=void 0,e.prev=3,o=b(t);case 5:if(r=(u=o.next()).done){e.next=12;break}return s=u.value,e.next=9,(0,w.tuple2)(s,0);case 9:r=!0,e.next=5;break;case 12:e.next=18;break;case 14:e.prev=14,e.t0=e.catch(3),n=!0,a=e.t0;case 18:e.prev=18,e.prev=19,!r&&o.return&&o.return();case 21:if(e.prev=21,!n){e.next=24;break}throw a;case 24:return e.finish(21);case 25:return e.finish(18);case 26:case"end":return e.stop()}},e,i,[[3,14,18,26],[19,,21,25]])})());t.length>0;){var u=t.pop(),s=(1+o.get(u))/n.get(u);r.get(u).forEach(function(e){o.set(e,o.get(e)+n.get(e)*s)}),(u!==a||"object"==typeof u&&u.toString()!==a.toString())&&e.set(u,e.get(u)+o.get(u))}return e}function c(e,t,r,n,a){var i=this;e.set(a,e.get(a)+t.length-1);for(var o=new w.Map(v.mark(function e(){var r,n,a,o,u,s;return v.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=!0,n=!1,a=void 0,e.prev=3,o=b(t);case 5:if(r=(u=o.next()).done){e.next=12;break}return s=u.value,e.next=9,(0,w.tuple2)(s,0);case 9:r=!0,e.next=5;break;case 12:e.next=18;break;case 14:e.prev=14,e.t0=e.catch(3),n=!0,a=e.t0;case 18:e.prev=18,e.prev=19,!r&&o.return&&o.return();case 21:if(e.prev=21,!n){e.next=24;break}throw a;case 24:return e.finish(21);case 25:return e.finish(18);case 26:case"end":return e.stop()}},e,i,[[3,14,18,26],[19,,21,25]])})());t.length>0;){var u=t.pop(),s=(1+o.get(u))/n.get(u);r.get(u).forEach(function(e){o.set(e,o.get(e)+n.get(e)*s)}),(u!==a||"object"==typeof u&&u.toString()!==a.toString())&&e.set(u,e.get(u)+o.get(u)+1)}return e}function f(e,t,r,n,a){for(var i=this,o=new w.Map(v.mark(function e(){var r,n,a,o,u,s;return v.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=!0,n=!1,a=void 0,e.prev=3,o=b(t);case 5:if(r=(u=o.next()).done){e.next=12;break}return s=u.value,e.next=9,(0,w.tuple2)(s,0);case 9:r=!0,e.next=5;break;case 12:e.next=18;break;case 14:e.prev=14,e.t0=e.catch(3),n=!0,a=e.t0;case 18:e.prev=18,e.prev=19,!r&&o.return&&o.return();case 21:if(e.prev=21,!n){e.next=24;break}throw a;case 24:return e.finish(21);case 25:return e.finish(18);case 26:case"end":return e.stop()}},e,i,[[3,14,18,26],[19,,21,25]])})());t.length>0;){var u=t.pop(),s=(1+o.get(u))/n.get(u);r.get(u).forEach(function(t){var r=n.get(t)*s,a=[t,u];e.has(a)||(a=[u,t]),e.set(a,e.get(a)+r),o.set(t,o.get(t)+r)}),(u!==a||"object"==typeof u&&u.toString()!==a.toString())&&e.set(u,e.get(u)+o.get(u))}return e}function d(e,t,r,n,a){void 0===n&&(n=!1);var i;return i=r?t<=2?null:1/((t-1)*(t-2)):n?null:.5,null!=i&&(null!=a&&(i=i*t/a),e.forEach(function(t,r){return e.set(r,t*i)})),e}function h(e,t,r,n){var a;return a=r?t<=1?null:1/(t*(t-1)):n?null:.5,null!=a&&e.forEach(function(t,r){return e.set(r,t*a)}),e}var p=e("babel-runtime/helpers/sliced-to-array").default,v=e("babel-runtime/regenerator").default,b=e("babel-runtime/core-js/get-iterator").default,g=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.betweennessCentrality=n,r.genBetweennessCentrality=a,r.edgeBetweennessCentrality=i,r.genEdgeBetweennessCentrality=o;var y=e("../../_internals/delegate"),m=g(y),w=e("../../_internals")},{"../../_internals":20,"../../_internals/delegate":12,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/sliced-to-array":111,"babel-runtime/regenerator":112}],44:[function(e,t,r){"use strict";function n(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=t.maxIter,n=void 0===r?100:r,a=t.tolerance,u=void 0===a?1e-6:a,s=t.nstart,l=t.weight,d=Math.sqrt,h=Math.pow,p=Math.abs;if(e.isMultigraph())throw new c.JSNetworkXException("Not defined for multigraphs.");if(0===e.order())throw new c.JSNetworkXException("Empty graph.");var v=void 0,b=new f.Map;if(s){v=s;var g=!0,y=!1,m=void 0;try{for(var w,x=o(v.keys());!(g=(w=x.next()).done);g=!0){var j=w.value;b.set(j,0)}}catch(e){y=!0,m=e}finally{try{!g&&x.return&&x.return()}finally{if(y)throw m}}}else{var k=1/e.order();v=new f.Map;var E=!0,_=!1,$=void 0;try{for(var S,M=o(e);!(E=(S=M.next()).done);E=!0){var j=S.value;v.set(j,k),b.set(j,0)}}catch(e){_=!0,$=e}finally{try{!E&&M.return&&M.return()}finally{if(_)throw $}}}var O=0,P=!0,I=!1,N=void 0;try{for(var A,q=o(v.values());!(P=(A=q.next()).done);P=!0){var D=A.value;O+=D}}catch(e){I=!0,N=e}finally{try{!P&&q.return&&q.return()}finally{if(I)throw N}}O=1/O;var L=!0,F=!1,G=void 0;try{for(var T,C=o(v);!(L=(T=C.next()).done);L=!0){var z=i(T.value,2),J=z[0],D=z[1];v.set(J,D*O)}}catch(e){F=!0,G=e}finally{try{!L&&C.return&&C.return()}finally{if(F)throw G}}u=e.order()*u;for(var R=0;R<n;R++){var X=v;v=new f.Map(b);var B=!0,U=!1,V=void 0;try{for(var H,K=o(v);!(B=(H=K.next()).done);B=!0){var W=i(H.value,2),j=W[0],D=W[1],Y=!0,Q=!1,Z=void 0;try{for(var ee,te=o(e.get(j));!(Y=(ee=te.next()).done);Y=!0){var re=i(ee.value,2),ne=re[0],ae=re[1];v.set(ne,v.get(ne)+X.get(j)*(0,f.getDefault)(l&&ae[l],1))}}catch(e){Q=!0,Z=e}finally{try{!Y&&te.return&&te.return()}finally{if(Q)throw Z}}}}catch(e){U=!0,V=e}finally{try{!B&&K.return&&K.return()}finally{if(U)throw V}}var ie=0,oe=!0,ue=!1,se=void 0;try{for(var le,ce=o(v.values());!(oe=(le=ce.next()).done);oe=!0){var D=le.value;ie+=h(D,2)}}catch(e){ue=!0,se=e}finally{try{!oe&&ce.return&&ce.return()}finally{if(ue)throw se}}ie=d(ie),ie=0===ie?1:1/ie;var fe=0,de=!0,he=!1,pe=void 0;try{for(var ve,be=o(v);!(de=(ve=be.next()).done);de=!0){var ge=i(ve.value,2),j=ge[0],D=ge[1];D*=ie,v.set(j,D),fe+=p(D-X.get(j))}}catch(e){he=!0,pe=e}finally{try{!de&&be.return&&be.return()}finally{if(he)throw pe}}if(fe<u)return v}throw new c.JSNetworkXError("eigenvectorCentrality(): power iteration failed to converge in "+n+" iterations.")}function a(e,t){return(0,l.default)("eigenvectorCentrality",[e,t])}var i=e("babel-runtime/helpers/sliced-to-array").default,o=e("babel-runtime/core-js/get-iterator").default,u=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.eigenvectorCentrality=n,r.genEigenvectorCentrality=a;var s=e("../../_internals/delegate"),l=u(s),c=e("../../exceptions"),f=e("../../_internals")},{"../../_internals":20,"../../_internals/delegate":12,"../../exceptions":78,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/sliced-to-array":111}],45:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-wildcard").default,a=e("babel-runtime/helpers/defaults").default,i=e("babel-runtime/helpers/interop-export-wildcard").default;Object.defineProperty(r,"__esModule",{value:!0});var o=e("./betweenness"),u=n(o),s=e("./eigenvector"),l=n(s);r.betweenness=u,r.eigenvector=l,a(r,i(o,a)),a(r,i(s,a))},{"./betweenness":43,"./eigenvector":44,"babel-runtime/helpers/defaults":104,"babel-runtime/helpers/interop-export-wildcard":108,"babel-runtime/helpers/interop-require-wildcard":110}],46:[function(e,t,r){"use strict";function n(e){var t,r,n,a,i,o,u,s,l,c,f,d,v;return p.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(0!==e.numberOfNodes()){p.next=2;break}return p.abrupt("return",[]);case 2:t=new x.Map((0,x.mapIterator)(e,function(t){var r=new x.Set(e.neighborsIter(t));return r.delete(t),(0,x.tuple2)(t,r)})),r=new x.Set(e),n=new x.Set(e),a=[null],i=(0,x.max)(r,function(e){return n.intersection(t.get(e)).size}),o=n.difference(t.get(i)),u=[];case 9:if(!(o.size>0)){p.next=25;break}if(s=o.pop(),n.delete(s),a[a.length-1]=s,l=t.get(s),c=r.intersection(l),0!==c.size){p.next=21;break}return p.next=19,a.slice();case 19:p.next=23;break;case 21:f=n.intersection(l),f.size>0&&(u.push([r,n,o]),a.push(null),r=c,n=f,i=(0,x.max)(r,function(e){return n.intersection(t.get(e)).size}),o=n.difference(t.get(i)));case 23:p.next=33;break;case 25:if(0!==a.length&&0!==u.length){p.next=27;break}return p.abrupt("break",35);case 27:a.pop(),d=u.pop(),v=h(d,3),r=v[0],n=v[1],o=v[2];case 33:p.next=9;break;case 35:case"end":return p.stop()}},y[0],this)}function a(e){return(0,w.default)("findCliques",[e])}function i(e){var t,r,n,a;return p.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(a=function e(a,i){var o,u,s,l,c,f,d,h,b,g;return p.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:o=(0,x.max)(a,function(e){return i.intersection(r.get(e)).size}),u=!0,s=!1,l=void 0,t.prev=4,c=v(i.difference(r.get(o)));case 6:if(u=(f=c.next()).done){t.next=24;break}if(d=f.value,i.delete(d),n.push(d),h=r.get(d),b=a.intersection(h),0!==b.size){t.next=17;break}return t.next=15,n.slice();case 15:t.next=20;break;case 17:if(g=i.intersection(h),!(g.size>0)){t.next=20;break}return t.delegateYield(e(b,g),"t0",20);case 20:n.pop();case 21:u=!0,t.next=6;break;case 24:t.next=30;break;case 26:t.prev=26,t.t1=t.catch(4),s=!0,l=t.t1;case 30:t.prev=30,t.prev=31,!u&&c.return&&c.return();case 33:if(t.prev=33,!s){t.next=36;break}throw l;case 36:return t.finish(33);case 37:return t.finish(30);case 38:case"end":return t.stop()}},t[0],this,[[4,26,30,38],[31,,33,37]])},t=[a].map(p.mark),0!==e.size){i.next=5;break}return i.next=5,[];case 5:return r=new x.Map((0,x.mapIterator)(e,function(t){var r=new x.Set(e.neighborsIter(t));return r.delete(t),(0,x.tuple2)(t,r)})),n=[],i.delegateYield(a(new x.Set(e),new x.Set(e)),"t0",8);case 8:case"end":return i.stop()}},y[1],this)}function o(e){return(0,w.default)("findCliquesRecursive",[e])}function u(e,t){return null==t&&(t=n(e)),(0,x.max)(t,function(e){return e.length}).length}function s(e,t){return(0,w.default)("graphCliqueNumber",[e,t])}function l(e,t){return null==t&&(t=n(e)),b(t).length}function c(e,t){return(0,w.default)("graphNumberOfCliques",[e,t])}function f(e,t,r){r=b(r||n(e)),null==t&&(t=e.nodes());var a;if(Array.isArray(t))r=r.map(function(e){return new x.Set(e)}),a=new x.Map,t.forEach(function(e){a.set(e,r.filter(function(t){return t.has(e)}).length)});else{var i=t;a=r.filter(function(e){return new x.Set(e).has(i)}).length}return a}function d(e,t,r){return(0,w.default)("numberOfCliques",[e,t,r])}var h=e("babel-runtime/helpers/sliced-to-array").default,p=e("babel-runtime/regenerator").default,v=e("babel-runtime/core-js/get-iterator").default,b=e("babel-runtime/core-js/array/from").default,g=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.findCliques=n,r.genFindCliques=a,r.findCliquesRecursive=i,r.genFindCliquesRecursive=o,r.graphCliqueNumber=u,r.genGraphCliqueNumber=s,r.graphNumberOfCliques=l,r.genGraphNumberOfCliques=c,r.numberOfCliques=f,r.genNumberOfCliques=d;var y=[n,i].map(p.mark),m=e("../_internals/delegate"),w=g(m),x=e("../_internals")},{"../_internals":20,"../_internals/delegate":12,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/sliced-to-array":111,"babel-runtime/regenerator":112}],47:[function(e,t,r){"use strict";function n(e,t){if(e.isDirected())throw new E.default("triangles() is not defined for directed graphs.");return null!=t&&e.hasNode(t)?Math.floor((0,_.next)(i(e,t))[2]/2):new _.Map((0,_.mapIterator)(i(e,t),function(e){var t=v(e,3),r=t[0],n=(t[1],t[2]);return(0,_.tuple2)(r,Math.floor(n/2),r)}))}function a(e,t){return(0,j.default)("triangles",[e,t])}function i(e,t){var r,n,a,i,o,u,s,l,c,f,d,h,p,y,m,x,j,k;return b.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!e.isMultigraph()){b.next=2;break}throw new E.default("Not defined for multigraphs.");case 2:r=(0,_.mapIterator)(null==t?e:e.nbunchIter(t),function(t){return(0,_.tuple2)(t,e.get(t))}),n=!0,a=!1,i=void 0,b.prev=6,o=g(r);case 8:if(n=(u=o.next()).done){b.next=39;break}for(s=v(u.value,2),l=s[0],c=s[1],f=new _.Set(c.keys()),f.delete(l),d=0,h=!0,p=!1,y=void 0,b.prev=18,m=g(f);!(h=(x=m.next()).done);h=!0)j=x.value,k=new _.Set(e.get(j).keys()),k.delete(j),d+=f.intersection(k).size;b.next=26;break;case 22:b.prev=22,b.t0=b.catch(18),p=!0,y=b.t0;case 26:b.prev=26,b.prev=27,!h&&m.return&&m.return();case 29:if(b.prev=29,!p){b.next=32;break}throw y;case 32:return b.finish(29);case 33:return b.finish(26);case 34:return b.next=36,(0,_.tuple3)(l,f.size,d);case 36:n=!0,b.next=8;break;case 39:b.next=45;break;case 41:b.prev=41,b.t1=b.catch(6),a=!0,i=b.t1;case 45:b.prev=45,b.prev=46,!n&&o.return&&o.return();case 48:if(b.prev=48,!a){b.next=51;break}throw i;case 51:return b.finish(48);case 52:return b.finish(45);case 53:case"end":return b.stop()}},w[0],this,[[6,41,45,53],[18,22,26,34],[27,,29,33],[46,,48,52]])}function o(e,t){var r,n,a,i,o,u,s,l,c,f,d,h,p,y,m,x,j,k,$,S,M,O,P,I,N,A,q,D,L,F=arguments.length<=2||void 0===arguments[2]?"weight":arguments[2];return b.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!e.isMultigraph()){b.next=2;break}throw new E.default("Not defined for multigraphs.");case 2:r=null==F||0===e.edges().length?1:(0,_.max)((0,_.mapIterator)(e.edgesIter(!0),function(e){var t=v(e,3),r=(t[0],t[1],t[2]);return(0,_.getDefault)(r[F],1)})),n=(0,_.mapIterator)(null==t?e:e.nbunchIter(t),function(t){return(0,_.tuple2)(t,e.get(t))}),a=!0,i=!1,o=void 0,b.prev=7,u=g(n);case 9:if(a=(s=u.next()).done){b.next=67;break}l=v(s.value,2),c=l[0],f=l[1],d=new _.Set(f.keys()).difference([c]),h=0,p=new _.Set,y=!0,m=!1,x=void 0,b.prev=19,j=g(d);case 21:if(y=(k=j.next()).done){b.next=48;break}for($=k.value,S=(0,_.getDefault)(f.get($)[F],1)/r,p.add($),M=new _.Set(e.get($).keys()).difference(p),O=!0,P=!1,I=void 0,b.prev=29,N=g(d.intersection(M));!(O=(A=N.next()).done);O=!0)q=A.value,D=(0,_.getDefault)(e.get($).get(q)[F],1)/r,L=(0,_.getDefault)(f.get(q)[F],1)/r,h+=Math.pow(S*D*L,1/3);b.next=37;break;case 33:b.prev=33,b.t0=b.catch(29),P=!0,I=b.t0;case 37:b.prev=37,b.prev=38,!O&&N.return&&N.return();case 40:if(b.prev=40,!P){b.next=43;break}throw I;case 43:return b.finish(40);case 44:return b.finish(37);case 45:y=!0,b.next=21;break;case 48:b.next=54;break;case 50:b.prev=50,b.t1=b.catch(19),m=!0,x=b.t1;case 54:b.prev=54,b.prev=55,!y&&j.return&&j.return();case 57:if(b.prev=57,!m){b.next=60;break}throw x;case 60:return b.finish(57);case 61:return b.finish(54);case 62:return b.next=64,(0,_.tuple3)(c,d.size,2*h);case 64:a=!0,b.next=9;break;case 67:b.next=73;break;case 69:b.prev=69,b.t2=b.catch(7),i=!0,o=b.t2;case 73:b.prev=73,b.prev=74,!a&&u.return&&u.return();case 76:if(b.prev=76,!i){b.next=79;break}throw o;case 79:return b.finish(76);case 80:return b.finish(73);case 81:case"end":return b.stop()}},w[1],this,[[7,69,73,81],[19,50,54,62],[29,33,37,45],[38,,40,44],[55,,57,61],[74,,76,80]])}function u(e,t,r){var n=arguments.length<=3||void 0===arguments[3]||arguments[3],a=y(l(e,t,r).values());return n||(a=a.filter(function(e){return e>0})),a.reduce(function(e,t){return e+t},0)/a.length}function s(e,t,r,n){return(0,j.default)("averageClustering",[e,t,r,n])}function l(e,t,r){if(e.isDirected())throw new E.default("Clustering algorithms are not defined for directed graphs.");var n=null==r?i(e,t):o(e,t,r),a=new _.Map((0,_.mapIterator)(n,function(e){var t=v(e,3),r=t[0],n=t[1],a=t[2];return(0,_.tuple2)(r,0===a?0:a/(n*(n-1)))}));return e.hasNode(t)?(0,_.next)(a.values()):a}function c(e,t,r){return(0,j.default)("clustering",[e,t,r])}function f(e){var t=0,r=0,n=!0,a=!1,o=void 0;try{for(var u,s=g(i(e));!(n=(u=s.next()).done);n=!0){var l=v(u.value,3),c=(l[0],l[1]),f=l[2];r+=c*(c-1),t+=f}}catch(e){a=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw o}}return 0===t?0:t/r}function d(e){return(0,j.default)("transitivity",[e])}function h(e,t){var r=null==t?e:e.nbunchIter(t),n=new _.Map,a=!0,i=!1,o=void 0;try{for(var u,s=g(r);!(a=(u=s.next()).done);a=!0){var l=u.value;n.set(l,0);var c=0,f=!0,d=!1,h=void 0;try{for(var p,b=g((0,_.genCombinations)(e.get(l).keys(),2));!(f=(p=b.next()).done);f=!0){var y=v(p.value,2),m=y[0],w=y[1],x=new _.Set(e.get(m).keys()).intersection(new _.Set(e.get(w).keys()));x.delete(l),x=x.size,n.set(l,n.get(l)+x);var j=x+1;e.get(m).has(w)&&(j+=1),c+=(e.get(m).size-j)*(e.get(w).size-j)+x}}catch(e){d=!0,h=e}finally{try{!f&&b.return&&b.return()}finally{if(d)throw h}}c>0&&n.set(l,n.get(l)/c)}}catch(e){i=!0,o=e}finally{try{!a&&s.return&&s.return()}finally{if(i)throw o}}return e.hasNode(t)?(0,_.next)(n.values()):n}function p(e,t){return(0,j.default)("squareClustering",[e,t])}var v=e("babel-runtime/helpers/sliced-to-array").default,b=e("babel-runtime/regenerator").default,g=e("babel-runtime/core-js/get-iterator").default,y=e("babel-runtime/core-js/array/from").default,m=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.triangles=n,r.genTriangles=a,r.averageClustering=u,r.genAverageClustering=s,r.clustering=l,r.genClustering=c,r.transitivity=f,r.genTransitivity=d,r.squareClustering=h,r.genSquareClustering=p;var w=[i,o].map(b.mark),x=e("../_internals/delegate"),j=m(x),k=e("../exceptions/JSNetworkXError"),E=m(k),_=e("../_internals")},{"../_internals":20,"../_internals/delegate":12,"../exceptions/JSNetworkXError":73,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/sliced-to-array":111,"babel-runtime/regenerator":112}],48:[function(e,t,r){"use strict";function n(e){try{return i(e),!0}catch(e){if(e instanceof g.default)return!1;throw e}}function a(e){return(0,h.default)("isDirectedAcyclicGraph",[e])}function i(e,t){if(!e.isDirected())throw new v.default("Topological sort not defined on undirected graphs.");var r=new y.Set,n=[],a=new y.Set;return null==t&&(t=e.nodesIter()),(0,y.forEach)(t,function(t){if(!a.has(t))for(var i=[t];i.length>0;){var o=i[i.length-1];if(a.has(o))i.pop();else{r.add(o);var u=[];e.get(o).forEach(function(e,t){if(!a.has(t)){if(r.has(t))throw new g.default("Graph contains a cycle.");u.push(t)}}),u.length>0?i.push.apply(i,u):(a.add(o),n.unshift(o))}}}),n}function o(e,t){return(0,h.default)("topologicalSort",[e,t])}function u(e,t){function r(e,t,n,a){return t.add(a),e.get(a).forEach(function(a,i){if(t.has(i)){if(t.has(i)&&-1===n.indexOf(i))throw new g.default("Graph contains a cycle.")}else if(!r(e,t,n,i))return!1}),n.unshift(a),!0}if(!e.isDirected())throw new v.default("Topological sort not defined on undirected graphs.");var n=new y.Set,a=[];return null==t&&(t=e.nodesIter()),(0,y.forEach)(t,function(t){if(-1===a.indexOf(t)&&!r(e,n,a,t))throw new g.default("Graph contains a cycle.")}),a}function s(e,t){return(0,h.default)("topologicalSortRecursive",[e,t])}function l(e){for(var t,r=!0;r;){var n=e;if(r=!1,!n.isDirected())throw new v.default("is_aperiodic not defined for undirected graphs.");var a=n.nodesIter().next();if(a.done)return!0;var i=new y.Map;i.set(a.value,0);for(var o=[a.value],u=0,s=1;o.length>0;){for(var l=[],c=0;c<o.length;c++){var f=o[c];n.get(f).forEach(function(e,t){i.has(t)?u=(0,y.gcd)(u,i.get(f)-i.get(t)+1):(l.push(t),i.set(t,s))})}o=l,s+=1}if(i.size===n.numberOfNodes())return 1===u;if(!(t=1===u))return t;e=n.subgraph(new y.Set(n.nodes()).difference(i.keys())),r=!0,a=i=o=u=s=l=c=f=void 0}}function c(e){return(0,h.default)("isAperiodic",[e])}var f=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.isDirectedAcyclicGraph=n,r.genIsDirectedAcyclicGraph=a,r.topologicalSort=i,r.genTopologicalSort=o,r.topologicalSortRecursive=u,r.genTopologicalSortRecursive=s,r.isAperiodic=l,r.genIsAperiodic=c;var d=e("../_internals/delegate"),h=f(d),p=e("../exceptions/JSNetworkXError"),v=f(p),b=e("../exceptions/JSNetworkXUnfeasible"),g=f(b),y=e("../_internals")},{"../_internals":20,"../_internals/delegate":12,"../exceptions/JSNetworkXError":73,"../exceptions/JSNetworkXUnfeasible":76,"babel-runtime/helpers/interop-require-default":109}],49:[function(e,t,r){"use strict";function n(e){switch(arguments.length<=1||void 0===arguments[1]?"hh":arguments[1]){case"eg":return c(h(e));case"hh":return s(h(e));default:throw new g.JSNetworkXException("`opt_method` must be 'eg' or 'hh'")}}function a(e,t){return(0,b.default)("isGraphical",[e,t])}function i(e,t){return n(e,t)}function o(e,t){return(0,b.default)("isValidDegreeSequence",[e,t])}function u(e){if(!e.every(function(e){return Math.floor(e)===e}))throw new g.JSNetworkXUnfeasible;for(var t=e.length,r=(0,m.default)(t,0),n=0,a=t,i=0,o=0,u=0;u<t;u++){var s=e[u];if(s<0||s>=t)throw new g.JSNetworkXUnfeasible;s>0&&(n=Math.max(n,s),a=Math.min(a,s),i+=s,o+=1,r[s]+=1)}if(i%2==1||i>o*(o-1))throw new g.JSNetworkXUnfeasible;return[n,a,i,o,r]}function s(e){var t,r,n,a;try{var i=u(e),o=d(i,5);t=o[0],r=o[1],o[2],n=o[3],a=o[4]}catch(e){if(e instanceof g.JSNetworkXUnfeasible)return!1;throw e}if(0===n||4*r*n>=Math.pow(t+r+1,2))return!0;for(var s=(0,m.default)(t+1,0);n>0;){for(;0===a[t];)t-=1;if(t>n-1)return!1;a[t]-=1,n-=1;for(var l=0,c=t,f=0;f<t;f++){for(;0===a[c];)c-=1;a[c]-=1,n-=1,c>1&&(s[l]=c-1,l+=1)}for(f=0;f<l;f++){a[s[f]]+=1,n+=1}}return!0}function l(e){return(0,b.default)("isValidDegreeSequenceHavelHakimi",[e])}function c(e){var t,r,n,a;try{var i=u(e),o=d(i,5);t=o[0],r=o[1],o[2],n=o[3],a=o[4]}catch(e){if(e instanceof g.JSNetworkXUnfeasible)return!1;throw e}if(0===n||4*r*n>=Math.pow(t+r+1,2))return!0;for(var s=0,l=0,c=0,f=0,h=t;h>=r;h-=1){if(h<s+1)return!0;if(a[h]>0){var p=a[h];h<s+p&&(p=h-s),l+=p*h;for(var v=0;v<p;v++)c+=a[s+v],f+=(s+v)*a[s+v];if(s+=p,l>s*(n-1)-s*c+f)return!1}}return!0}function f(e){return(0,b.default)("isValidDegreeSequenceErdosGallai",[e])}var d=e("babel-runtime/helpers/sliced-to-array").default,h=e("babel-runtime/core-js/array/from").default,p=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.isGraphical=n,r.genIsGraphical=a,r.isValidDegreeSequence=i,r.genIsValidDegreeSequence=o,r.isValidDegreeSequenceHavelHakimi=s,r.genIsValidDegreeSequenceHavelHakimi=l,r.isValidDegreeSequenceErdosGallai=c,r.genIsValidDegreeSequenceErdosGallai=f;var v=e("../_internals/delegate"),b=p(v),g=e("../exceptions"),y=e("../_internals/fillArray"),m=p(y)},{"../_internals/delegate":12,"../_internals/fillArray":13,"../exceptions":78,"babel-runtime/core-js/array/from":88,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/sliced-to-array":111}],50:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-wildcard").default,a=e("babel-runtime/helpers/defaults").default,i=e("babel-runtime/helpers/interop-export-wildcard").default;Object.defineProperty(r,"__esModule",{value:!0});var o=e("./centrality"),u=n(o),s=e("./clique"),l=n(s),c=e("./cluster"),f=n(c),d=e("./dag"),h=n(d),p=e("./graphical"),v=n(p),b=e("./isomorphism"),g=n(b),y=e("./operators"),m=n(y),w=e("./shortestPaths"),x=n(w);r.centrality=u,r.clique=l,r.cluster=f,r.dag=h,r.graphical=v,r.isomorphism=g,r.operators=m,r.shortestPaths=x,a(r,i(o,a)),a(r,i(s,a)),a(r,i(c,a)),a(r,i(d,a)),a(r,i(p,a)),a(r,i(b,a)),a(r,i(y,a)),a(r,i(w,a))},{"./centrality":45,"./clique":46,"./cluster":47,"./dag":48,"./graphical":49,"./isomorphism":51,"./operators":54,"./shortestPaths":56,"babel-runtime/helpers/defaults":104,"babel-runtime/helpers/interop-export-wildcard":108,"babel-runtime/helpers/interop-require-wildcard":110}],51:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-wildcard").default,a=e("babel-runtime/helpers/defaults").default,i=e("babel-runtime/helpers/interop-export-wildcard").default;Object.defineProperty(r,"__esModule",{value:!0});var o=e("./isomorph"),u=n(o);r.isomorph=u,a(r,i(o,a))},{"./isomorph":52,"babel-runtime/helpers/defaults":104,"babel-runtime/helpers/interop-export-wildcard":108,"babel-runtime/helpers/interop-require-wildcard":110}],52:[function(e,t,r){"use strict";function n(e,t){if(e.order()!==t.order())return!1;var r=e.degree(),n=(0,p.triangles)(e),a=(0,h.numberOfCliques)(e),i=[];r.forEach(function(e,t){i.push([r.get(t),n.get(t),a.get(t)])}),i.sort(function(e,t){return e[0]-t[0]||e[1]-t[1]||e[2]-t[2]});var o=t.degree(),u=(0,p.triangles)(t),s=(0,h.numberOfCliques)(t),l=[];return o.forEach(function(e,t){l.push([o.get(t),u.get(t),s.get(t)])}),l.sort(function(e,t){return e[0]-t[0]||e[1]-t[1]||e[2]-t[2]
}),i.every(function(e,t){var r=l[t];return e[0]===r[0]&&e[1]===r[1]&&e[2]===r[2]})}function a(e,t){return(0,d.default)("couldBeIsomorphic",[e,t])}function i(e,t){if(e.order()!==t.order())return!1;var r=e.degree(),n=(0,p.triangles)(e),a=[];r.forEach(function(e,t){a.push([r.get(t),n.get(t)])}),a.sort(function(e,t){return e[0]-t[0]||e[1]-t[1]});var i=t.degree(),o=(0,p.triangles)(t),u=[];return i.forEach(function(e,t){u.push([i.get(t),o.get(t)])}),u.sort(function(e,t){return e[0]-t[0]||e[1]-t[1]}),a.every(function(e,t){var r=u[t];return e[0]===r[0]&&e[1]===r[1]})}function o(e,t){return(0,d.default)("fastCouldBeIsomorphic",[e,t])}function u(e,t){if(e.order()!==t.order())return!1;var r=l(e.degree().values());r.sort(function(e,t){return e-t});var n=l(t.degree().values());return n.sort(function(e,t){return e-t}),r.every(function(e,t){return e===n[t]})}function s(e,t){return(0,d.default)("fasterCouldBeIsomorphic",[e,t])}var l=e("babel-runtime/core-js/array/from").default,c=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.couldBeIsomorphic=n,r.genCouldBeIsomorphic=a,r.fastCouldBeIsomorphic=i,r.genFastCouldBeIsomorphic=o,r.fasterCouldBeIsomorphic=u,r.genFasterCouldBeIsomorphic=s;var f=e("../../_internals/delegate"),d=c(f),h=e("../clique"),p=e("../cluster")},{"../../_internals/delegate":12,"../clique":46,"../cluster":47,"babel-runtime/core-js/array/from":88,"babel-runtime/helpers/interop-require-default":109}],53:[function(e,t,r){"use strict";function n(e,t){var r=new $.default(t),n=new $.default(e);if(r.size!==n.size||(0,S.someIterator)(n.values(),function(e){return!r.has(e)}))throw new j.default("Node sets of graphs are not equal.")}function a(e,t){function r(e,t){return t?(0,k.relabelNodes)(e,function(e){return t+e.toString()}):e}var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],a=n.rename,i=void 0===a?[null,null]:a;if(e.isMultigraph()!==t.isMultigraph())throw new j.default("G and H must both be graphs or multigraphs");var o=new e.constructor;if(o.name="union("+e.name+", "+t.name+")",e=r(e,i[0]),t=r(t,i[1]),new $.default(e).intersection(new $.default(t)).size>0)throw new j.default("The node sets of G and H are not disjoint. Use appropriate {rename: [Gprefix, Hprefix]} or use disjointUnion({G, H})");return o.addNodesFrom(e.nodesIter(!0)),o.addNodesFrom(t.nodesIter(!0)),o.addEdgesFrom(e.isMultigraph()?e.edgesIter(!0,!0):e.edgesIter(!0)),o.addEdgesFrom(t.isMultigraph()?t.edgesIter(!0,!0):t.edgesIter(!0)),b(o.graph,e.graph,t.graph),o}function i(e,t,r){return(0,w.default)("union",[e,t,r])}function o(e,t){var r=(0,k.convertNodeLabelsToIntegers)(e),n=(0,k.convertNodeLabelsToIntegers)(t,r.order()),i=a(r,n);return i.name="disjointUnion("+e.name+", "+t.name+")",b(i.graph,e.graph,t.graph),i}function u(e,t){return(0,w.default)("disjointUnion",[e,t])}function s(e,t){if(e.isMultigraph()!==t.isMultigraph())throw new j.default("G and H must both be graphs or multigraphs");var r=(0,E.createEmptyCopy)(e);r.name="Intersection of ("+e.name+" and "+t.name+")",n(e,t);var a=e.numberOfEdges()<t.numberOfEdges()?e:t,i=a===e?t:e,o=a.isMultigraph()?a.edgesIter(!1,!0):a.edgesIter(),u=i.hasEdge,s=r.addEdge,l=!0,c=!1,f=void 0;try{for(var d,h=g(o);!(l=(d=h.next()).done);l=!0){var p=d.value;u.apply(i,p)&&s.apply(r,p)}}catch(e){c=!0,f=e}finally{try{!l&&h.return&&h.return()}finally{if(c)throw f}}return r}function l(e,t){return(0,w.default)("intersection",[e,t])}function c(e,t){if(e.isMultigraph()!==t.isMultigraph())throw new j.default("G and H must both be graphs or multigraphs");var r=(0,E.createEmptyCopy)(e);e.name="Difference of ("+e.name+" and "+t.name+")",n(e,t);var a=e.isMultigraph()?e.edgesIter(!1,!0):e.edgesIter(),i=t.hasEdge,o=r.addEdge,u=!0,s=!1,l=void 0;try{for(var c,f=g(a);!(u=(c=f.next()).done);u=!0){var d=c.value;i.apply(t,d)||o.apply(r,d)}}catch(e){s=!0,l=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}return r}function f(e,t){return(0,w.default)("difference",[e,t])}function d(e,t){if(e.isMultigraph()!==t.isMultigraph())throw new j.default("G and H must both be graphs or multigraphs");var r=(0,E.createEmptyCopy)(e);r.name="Symmetric difference of ("+e.name+" and "+t.name+")",n(e,t),r.addNodesFrom((0,_.symmetricDifference)(new $.default(e),new $.default(t)));var a=e.isMultigraph()?e.edgesIter(!1,!0):e.edgesIter(),i=r.addEdge,o=t.hasEdge,u=!0,s=!1,l=void 0;try{for(var c,f=g(a);!(u=(c=f.next()).done);u=!0){var d=c.value;o.apply(t,d)||i.apply(r,d)}}catch(e){s=!0,l=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}a=t.isMultigraph()?t.edgesIter(!1,!0):t.edgesIter(),o=t.hasEdge;var h=!0,p=!1,v=void 0;try{for(var b,y=g(a);!(h=(b=y.next()).done);h=!0){var d=b.value;o.apply(e,d)||i.apply(r,d)}}catch(e){p=!0,v=e}finally{try{!h&&y.return&&y.return()}finally{if(p)throw v}}return r}function h(e,t){return(0,w.default)("symmetricDifference",[e,t])}function p(e,t){if(e.isMultigraph()!==t.isMultigraph())throw new j.default("G and H must both be graphs or multigraphs");var r=new e.constructor;return r.name="compose("+e.name+", "+t.name+")",r.addNodesFrom(e.nodesIter(!0)),r.addNodesFrom(t.nodesIter(!0)),r.addEdgesFrom(e.isMultigraph()?e.edgesIter(!0,!0):e.edgesIter(!0)),r.addEdgesFrom(t.isMultigraph()?t.edgesIter(!0,!0):t.edgesIter(!0)),b(r.graph,e.graph,t.graph),r}function v(e,t){return(0,w.default)("compose",[e,t])}var b=e("babel-runtime/core-js/object/assign").default,g=e("babel-runtime/core-js/get-iterator").default,y=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.union=a,r.genUnion=i,r.disjointUnion=o,r.genDisjointUnion=u,r.intersection=s,r.genIntersection=l,r.difference=c,r.genDifference=f,r.symmetricDifference=d,r.genSymmetricDifference=h,r.compose=p,r.genCompose=v;var m=e("../../_internals/delegate"),w=y(m),x=e("../../exceptions/JSNetworkXError"),j=y(x),k=e("../../relabel"),E=e("../../classes/functions"),_=e("../../_internals/Set"),$=y(_),S=e("../../_internals")},{"../../_internals":20,"../../_internals/Set":5,"../../_internals/delegate":12,"../../classes/functions":64,"../../exceptions/JSNetworkXError":73,"../../relabel":87,"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/object/assign":92,"babel-runtime/helpers/interop-require-default":109}],54:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-wildcard").default,a=e("babel-runtime/helpers/defaults").default,i=e("babel-runtime/helpers/interop-export-wildcard").default;Object.defineProperty(r,"__esModule",{value:!0});var o=e("./binary"),u=n(o);r.binary=u,a(r,i(o,a))},{"./binary":53,"babel-runtime/helpers/defaults":104,"babel-runtime/helpers/interop-export-wildcard":108,"babel-runtime/helpers/interop-require-wildcard":110}],55:[function(e,t,r){"use strict";function n(e,t){var r=t.source,n=t.target;try{i(e,{source:r,target:n})}catch(e){if(e instanceof p.JSNetworkXNoPath)return!1;throw e}return!0}function a(e,t){return(0,h.default)("hasPath",[e,t])}function i(e){var t,r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=r.source,a=r.target,i=r.weight;if(null==n)if(null==a)t=null==i?(0,v.allPairsShortestPath)(e):(0,b.allPairsDijkstraPath)(e,{weight:i});else{var o=e.isDirected();try{o&&e.reverse(!1),t=null==i?(0,v.singleSourceShortestPath)(e,a):(0,b.singleSourceDijkstraPath)(e,{target:a,weight:i});var u=!0,s=!1,f=void 0;try{for(var d,h=c(t);!(u=(d=h.next()).done);u=!0){var p=l(d.value,2),g=p[0],y=p[1];t.set(g,y.reverse())}}catch(e){s=!0,f=e}finally{try{!u&&h.return&&h.return()}finally{if(s)throw f}}}finally{o&&e.reverse(!1)}}else t=null==a?null==i?(0,v.singleSourceShortestPath)(e,n):(0,b.singleSourceDijkstraPath)(e,{source:n,weight:i}):null==i?(0,v.bidirectionalShortestPath)(e,n,a):(0,b.dijkstraPath)(e,{source:n,target:a,weight:i});return t}function o(e,t){return(0,h.default)("shortestPath",[e,t])}function u(e){var t,r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=r.source,a=r.target,i=r.weight;if(null==n)if(null==a)t=null==i?(0,v.allPairsShortestPathLength)(e):(0,b.allPairsDijkstraPathLength)(e,{weight:i});else{var o=e.isDirected();try{o&&e.reverse(!1),t=null==i?(0,v.singleSourceShortestPathLength)(e,a):(0,b.singleSourceDijkstraPathLength)(e,{target:a,weight:i})}finally{o&&e.reverse(!1)}}else null==a?t=null==i?(0,v.singleSourceShortestPathLength)(e,n):(0,b.singleSourceDijkstraPathLength)(e,{source:n,weight:i}):null==i?(t=(0,v.bidirectionalShortestPath)(e,n,a),t=t.length-1):t=(0,b.dijkstraPathLength)(e,{source:n,target:a,weight:i});return t}function s(e,t){return(0,h.default)("shortestPathLength",[e,t])}var l=e("babel-runtime/helpers/sliced-to-array").default,c=e("babel-runtime/core-js/get-iterator").default,f=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.hasPath=n,r.genHasPath=a,r.shortestPath=i,r.genShortestPath=o,r.shortestPathLength=u,r.genShortestPathLength=s;var d=e("../../_internals/delegate"),h=f(d),p=e("../../exceptions"),v=e("./unweighted"),b=e("./weighted")},{"../../_internals/delegate":12,"../../exceptions":78,"./unweighted":57,"./weighted":58,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/sliced-to-array":111}],56:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-wildcard").default,a=e("babel-runtime/helpers/defaults").default,i=e("babel-runtime/helpers/interop-export-wildcard").default;Object.defineProperty(r,"__esModule",{value:!0});var o=e("./generic"),u=n(o),s=e("./unweighted"),l=n(s),c=e("./weighted"),f=n(c);r.generic=u,r.unweighted=l,r.weighted=f,a(r,i(o,a)),a(r,i(s,a)),a(r,i(c,a))},{"./generic":55,"./unweighted":57,"./weighted":58,"babel-runtime/helpers/defaults":104,"babel-runtime/helpers/interop-export-wildcard":108,"babel-runtime/helpers/interop-require-wildcard":110}],57:[function(e,t,r){"use strict";function n(e,t,r){for(var n=new j.Map,a=0,i=new j.Map([[t,1]]);i.size>0;){var o=i;i=new j.Map;var u=!0,s=!1,l=void 0;try{for(var c,f=g(o.keys());!(u=(c=f.next()).done);u=!0){var d=c.value;n.has(d)||(n.set(d,a),e.get(d).forEach(function(e,t){return i.set(t,1)}))}}catch(e){s=!0,l=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}if(null!=r&&r<=a)break;a+=1}return n}function a(e,t,r){return(0,w.default)("singleSourceShortestPathLength",[e,t,r])}function i(e,t){var r=new j.Map,a=!0,i=!1,o=void 0;try{for(var u,s=g(e);!(a=(u=s.next()).done);a=!0){var l=u.value;r.set(l,n(e,l,t))}}catch(e){i=!0,o=e}finally{try{!a&&s.return&&s.return()}finally{if(i)throw o}}return r}function o(e,t){return(0,w.default)("allPairsShortestPathLength",[e,t])}function u(e,t,r){for(var n=l(e,t,r),a=b(n,3),i=a[0],o=a[1],u=a[2],s=[];null!=u;)s.push(u),u=i.get(u);for(u=o.get(s[0]),s.reverse();null!=u;)s.push(u),u=o.get(u);return s}function s(e,t,r){return(0,w.default)("bidirectionalShortestPath",[e,t,r])}function l(e,t,r){if((0,j.nodesAreEqual)(t,r))return[new j.Map([[t,null]]),new j.Map([[r,null]]),t];var n,a;e.isDirected()?(n=e.predecessorsIter.bind(e),a=e.successorsIter.bind(e)):(n=e.neighborsIter.bind(e),a=e.neighborsIter.bind(e));for(var i,o=new j.Map([[t,null]]),u=new j.Map([[r,null]]),s=[t],l=[r];s.length>0&&l.length>0;)if(s.length<=l.length){i=s,s=[];var c=!0,f=!1,d=void 0;try{for(var h,p=g(i);!(c=(h=p.next()).done);c=!0){var v=h.value,b=!0,y=!1,m=void 0;try{for(var w,k=g(a(v));!(b=(w=k.next()).done);b=!0){var E=w.value;if(o.has(E)||(s.push(E),o.set(E,v)),u.has(E))return[o,u,E]}}catch(e){y=!0,m=e}finally{try{!b&&k.return&&k.return()}finally{if(y)throw m}}}}catch(e){f=!0,d=e}finally{try{!c&&p.return&&p.return()}finally{if(f)throw d}}}else{i=l,l=[];var _=!0,$=!1,S=void 0;try{for(var M,O=g(i);!(_=(M=O.next()).done);_=!0){var v=M.value,P=!0,I=!1,N=void 0;try{for(var A,q=g(n(v));!(P=(A=q.next()).done);P=!0){var E=A.value;if(u.has(E)||(l.push(E),u.set(E,v)),o.has(E))return[o,u,E]}}catch(e){I=!0,N=e}finally{try{!P&&q.return&&q.return()}finally{if(I)throw N}}}}catch(e){$=!0,S=e}finally{try{!_&&O.return&&O.return()}finally{if($)throw S}}}throw new x.JSNetworkXNoPath((0,j.sprintf)("No path between `%j` and `%j`.",t,r))}function c(e,t,r){var n=0,a=new j.Map([[t,1]]),i=new j.Map([[t,[t]]]);if(0===r)return i;for(;a.size>0;){var o=a;a=new j.Map;var u=!0,s=!1,l=void 0;try{for(var c,f=g(o.keys());!(u=(c=f.next()).done);u=!0){var d=c.value,h=!0,p=!1,v=void 0;try{for(var b,y=g(e.get(d).keys());!(h=(b=y.next()).done);h=!0){var m=b.value;i.has(m)||(i.set(m,i.get(d).concat([m])),a.set(m,1))}}catch(e){p=!0,v=e}finally{try{!h&&y.return&&y.return()}finally{if(p)throw v}}}}catch(e){s=!0,l=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}if(n+=1,null!=r&&r<=n)break}return i}function f(e,t,r){return(0,w.default)("singleSourceShortestPath",[e,t,r])}function d(e,t){var r=new j.Map,n=!0,a=!1,i=void 0;try{for(var o,u=g(e);!(n=(o=u.next()).done);n=!0){var s=o.value;r.set(s,c(e,s,t))}}catch(e){a=!0,i=e}finally{try{!n&&u.return&&u.return()}finally{if(a)throw i}}return r}function h(e,t){return(0,w.default)("allPairsShortestPath",[e,t])}function p(e,t){for(var r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],n=r.target,a=r.cutoff,i=r.returnSeen,o=0,u=[t],s=new j.Map([[t,o]]),l=new j.Map([[t,[]]]);u.length>0;){o+=1;var c=u;if(u=[],c.forEach(function(t){e.get(t).forEach(function(e,r){s.has(r)?s.get(r)===o&&l.get(r).push(t):(l.set(r,[t]),s.set(r,o),u.push(r))})}),null!=a&&a<=o)break}return null!=n?i?l.has(n)?[l.get(n),s.get(n)]:[[],-1]:(0,j.getDefault)(l.get(n),[]):i?[l,s]:l}function v(e,t,r){return(0,w.default)("predecessor",[e,t,r])}var b=e("babel-runtime/helpers/sliced-to-array").default,g=e("babel-runtime/core-js/get-iterator").default,y=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.singleSourceShortestPathLength=n,r.genSingleSourceShortestPathLength=a,r.allPairsShortestPathLength=i,r.genAllPairsShortestPathLength=o,r.bidirectionalShortestPath=u,r.genBidirectionalShortestPath=s,r.singleSourceShortestPath=c,r.genSingleSourceShortestPath=f,r.allPairsShortestPath=d,r.genAllPairsShortestPath=h,r.predecessor=p,r.genPredecessor=v;var m=e("../../_internals/delegate"),w=y(m),x=e("../../exceptions"),j=e("../../_internals")},{"../../_internals":20,"../../_internals/delegate":12,"../../exceptions":78,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/sliced-to-array":111}],58:[function(e,t,r){"use strict";function n(e,t){var r=t.source,n=t.target,a=t.weight,i=void 0===a?"weight":a,o=d(e,{source:r,target:n,weight:i}),u=m(o,2),s=(u[0],u[1]),l=s.get(n);if(!l)throw new $.default((0,E.sprintf)("Node %j is not reachable from %j",r,n));return l}function a(e,t){return(0,k.default)("dijkstraPath",[e,t])}function i(e,t){var r=t.source,n=t.target,a=t.weight,i=void 0===a?"weight":a,o=c(e,{source:r,weight:i}),u=o.get(n);if(null==u)throw new $.default((0,E.sprintf)("Node %j is not reachable from %j",r,n));return u}function o(e,t){return(0,k.default)("dijkstraPathLength",[e,t])}function u(e,t){var r=1/0;for(var n in e){var a=(0,E.getDefault)(e[n][t],1);a<r&&(r=a)}return r}function s(e,t){var r=t.source,n=t.cutoff,a=t.weight,i=void 0===a?"weight":a,o=d(e,{source:r,cutoff:n,weight:i}),u=m(o,2);u[0];return u[1]}function l(e,t){return(0,k.default)("singleSourceDijkstraPath",[e,t])}function c(e,t){var r=t.source,n=t.cutoff,a=t.weight,i=void 0===a?"weight":a,o=new E.Map,s=new E.Map([[r,0]]),l=new E.PriorityQueue,c=0;for(l.enqueue(0,[c++,r]);l.size>0;){var f=l.dequeue(),d=m(f,2),h=d[0],p=m(d[1],2),v=(p[0],p[1]);if(!o.has(v)){o.set(v,h);var b=void 0;b=e.isMultigraph()?(0,E.mapIterator)(e.get(v),function(e){var t=m(e,2),r=t[0],n=t[1];return[r,y({},i,u(n,i))]}):e.get(v);var g=!0,x=!1,j=void 0;try{for(var k,_=w(b);!(g=(k=_.next()).done);g=!0){var $=m(k.value,2),S=$[0],M=$[1],O=h+(0,E.getDefault)(M[i],1);if(!(null!=n&&O>n))if(o.has(S)){if(O<o.get(S))throw new Error("Contradictory paths found: negative weights?")}else(!s.has(S)||O<s.get(S))&&(s.set(S,O),l.enqueue(O,[c++,S]))}}catch(e){x=!0,j=e}finally{try{!g&&_.return&&_.return()}finally{if(x)throw j}}}}return o}function f(e,t){return(0,k.default)("singleSourceDijkstraPathLength",[e,t])}function d(e,t){var r=t.source,n=t.target,a=t.cutoff,i=t.weight,o=void 0===i?"weight":i;if((0,E.nodesAreEqual)(r,n))return[new E.Map([[r,0]]),new E.Map([[r,n]])];var s=new E.Map,l=new E.Map([[r,[r]]]),c=new E.Map([[r,0]]),f=new E.PriorityQueue,d=0;for(f.enqueue(0,[d++,r]);f.size>0;){var h=f.dequeue(),p=m(h,2),v=p[0],b=m(p[1],2),g=(b[0],b[1]);if(!s.has(g)){if(s.set(g,v),(0,E.nodesAreEqual)(g,n))break;var x=void 0;x=e.isMultigraph()?(0,E.mapIterator)(e.get(g),function(e){var t=m(e,2),r=t[0],n=t[1];return[r,y({},o,u(n,o))]}):e.get(g);var j=!0,k=!1,_=void 0;try{for(var $,S=w(x);!(j=($=S.next()).done);j=!0){var M=m($.value,2),O=M[0],P=M[1],I=v+(0,E.getDefault)(P[o],1);if(!(null!=a&&I>a))if(s.has(O)){if(I<s.get(O))throw new Error("Contradictory paths found: negative weights?")}else(!c.has(O)||I<c.get(O))&&(c.set(O,I),f.enqueue(I,[d++,O]),l.set(O,l.get(g).concat([O])))}}catch(e){k=!0,_=e}finally{try{!j&&S.return&&S.return()}finally{if(k)throw _}}}}return[s,l]}function h(e,t){return(0,k.default)("singleSourceDijkstra",[e,t])}function p(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=t.cutoff,n=t.weight,a=void 0===n?"weight":n,i=new E.Map,o={weight:a,cutoff:r},u=!0,s=!1,l=void 0;try{for(var f,d=w(e);!(u=(f=d.next()).done);u=!0){var h=f.value;o.source=h,i.set(h,c(e,o))}}catch(e){s=!0,l=e}finally{try{!u&&d.return&&d.return()}finally{if(s)throw l}}return i}function v(e,t){return(0,k.default)("allPairsDijkstraPathLength",[e,t])}function b(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=t.cutoff,n=t.weight,a=void 0===n?"weight":n,i=new E.Map,o={weight:a,cutoff:r},u=!0,l=!1,c=void 0;try{for(var f,d=w(e);!(u=(f=d.next()).done);u=!0){var h=f.value;o.source=h,i.set(h,s(e,o))}}catch(e){l=!0,c=e}finally{try{!u&&d.return&&d.return()}finally{if(l)throw c}}return i}function g(e,t){return(0,k.default)("allPairsDijkstraPath",[e,t])}var y=e("babel-runtime/helpers/define-property").default,m=e("babel-runtime/helpers/sliced-to-array").default,w=e("babel-runtime/core-js/get-iterator").default,x=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.dijkstraPath=n,r.genDijkstraPath=a,r.dijkstraPathLength=i,r.genDijkstraPathLength=o,r.singleSourceDijkstraPath=s,r.genSingleSourceDijkstraPath=l,r.singleSourceDijkstraPathLength=c,r.genSingleSourceDijkstraPathLength=f,r.singleSourceDijkstra=d,r.genSingleSourceDijkstra=h,r.allPairsDijkstraPathLength=p,r.genAllPairsDijkstraPathLength=v,r.allPairsDijkstraPath=b,r.genAllPairsDijkstraPath=g;var j=e("../../_internals/delegate"),k=x(j),E=e("../../_internals"),_=e("../../exceptions/JSNetworkXNoPath"),$=x(_)},{"../../_internals":20,"../../_internals/delegate":12,"../../exceptions/JSNetworkXNoPath":75,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/define-property":105,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/sliced-to-array":111}],59:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default").default,a=e("babel-runtime/helpers/interop-require-wildcard").default;Object.defineProperty(r,"__esModule",{value:!0});var i=e("./WorkerSettings"),o=n(i),u=e("./initializeBrowserWorker"),s=n(u),l=e("./"),c=a(l);Object.defineProperty(c,"workerPath",{set:function(e){o.default.workerPath=e},get:function(){return o.default.workerPath}}),o.default.methodLookupFunction=function(e){return c[e]},(0,s.default)(),r.default=c,t.exports=r.default},{"./":85,"./WorkerSettings":1,"./initializeBrowserWorker":86,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/interop-require-wildcard":110}],60:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/get").default,a=e("babel-runtime/helpers/inherits").default,i=e("babel-runtime/helpers/create-class").default,o=e("babel-runtime/helpers/class-call-check").default,u=e("babel-runtime/helpers/sliced-to-array").default,s=e("babel-runtime/core-js/object/assign").default,l=e("babel-runtime/core-js/array/from").default,c=e("babel-runtime/regenerator").default,f=e("babel-runtime/core-js/get-iterator").default,d=e("babel-runtime/helpers/interop-require-default").default,h=e("babel-runtime/helpers/interop-require-wildcard").default;Object.defineProperty(r,"__esModule",{value:!0});var p=e("./Graph"),v=d(p),b=e("../_internals/Map"),g=d(b),y=e("../exceptions/JSNetworkXError"),m=d(y),w=e("../convert"),x=h(w),j=e("../_internals"),k=function(e){function t(e,r){o(this,t),n(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.graph={},this.node=new g.default,this.adj=new g.default,this.pred=new g.default,this.succ=this.adj,null!=e&&x.toNetworkxGraph(e,this),s(this.graph,r||{}),this.edge=this.adj}return a(t,e),i(t,[{key:"addNode",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(!(0,j.isPlainObject)(t))throw new m.default("The opt_attr_dict argument must be an object.");this.succ.has(e)?s(this.node.get(e),t):(this.succ.set(e,new g.default),this.pred.set(e,new g.default),this.node.set(e,t))}},{key:"addNodesFrom",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];(0,j.forEach)(e,function(e){var r=!this.succ.has(e);if(Array.isArray(e)&&2===e.length&&(0,j.isPlainObject)(e[1])){var n=e[0],a=e[1];if(this.succ.has(n)){var i=this.node.get(n);s(i,t,a)}else{this.succ.set(n,new g.default),this.pred.set(n,new g.default);var o=(0,j.clone)(t);s(o,a),this.node.set(n,o)}}else r?(this.succ.set(e,new g.default),this.pred.set(e,new g.default),this.node.set(e,(0,j.clone)(t))):s(this.node.get(e),t)},this)}},{key:"removeNode",value:function(e){if(!this.node.delete(e))throw new m.default((0,j.sprintf)('The node "%j" is not in the graph',e));this.succ.get(e).forEach(function(t,r){this.pred.get(r).delete(e)},this),this.succ.delete(e),this.pred.get(e).forEach(function(t,r){this.succ.get(r).delete(e)},this),this.pred.delete(e)}},{key:"removeNodesFrom",value:function(e){(0,j.forEach)(e,function(e){if(this.succ.has(e)){var t=this.succ.get(e);this.node.delete(e),t.forEach(function(t,r){this.pred.get(r).delete(e)},this),this.succ.delete(e),this.pred.get(e).forEach(function(t,r){this.succ.get(r).delete(e)},this),this.pred.delete(e)}},this)}},{key:"addEdge",value:function(e,t){var r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];if(!(0,j.isPlainObject)(r))throw new m.default("The optAttrDict argument must be a plain object.");this.succ.has(e)||(this.succ.set(e,new g.default),this.pred.set(e,new g.default),this.node.set(e,{})),this.succ.has(t)||(this.succ.set(t,new g.default),this.pred.set(t,new g.default),this.node.set(t,{}));var n=this.adj.get(e).get(t)||{};s(n,r),this.succ.get(e).set(t,n),this.pred.get(t).set(e,n)}},{key:"addEdgesFrom",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(!(0,j.isPlainObject)(t))throw new m.default("The opt_attr_dict argument must be an object.");(0,j.forEach)(e,function(e){var r,n,a,i=(0,j.size)(e);if(3===i)r=e[0],n=e[1],a=e[2];else{if(2!==i)throw new m.default((0,j.sprintf)('Edge tuple "%j" must be a 2-tuple or 3-tuple.',e));r=e[0],n=e[1],a={}}this.succ.has(r)||(this.succ.set(r,new g.default),this.pred.set(r,new g.default),this.node.set(r,{})),this.succ.has(n)||(this.succ.set(n,new g.default),this.pred.set(n,new g.default),this.node.set(n,{}));var o=this.adj.get(r).get(n)||{};s(o,t,a),this.succ.get(r).set(n,o),this.pred.get(n).set(r,o)},this)}},{key:"removeEdge",value:function(e,t){var r=this.succ.get(e);if(void 0===r||!r.delete(t))throw new m.default((0,j.sprintf)('The edge "%j-%j" is not in the graph',e,t));this.pred.get(t).delete(e)}},{key:"removeEdgesFrom",value:function(e){(0,j.forEach)(e,function(e){var t=e[0],r=e[1];try{this.succ.get(t).delete(r),this.pred.get(r).delete(t)}catch(e){}},this)}},{key:"hasSuccessor",value:function(e,t){return this.succ.has(e)&&this.succ.get(e).has(t)}},{key:"hasPredecessor",value:function(e,t){return this.pred.has(e)&&this.pred.get(e).has(t)}},{key:"successorsIter",value:function(e){var t=this.succ.get(e);if(void 0!==t)return t.keys();throw new m.default((0,j.sprintf)('The node "%j" is not in the digraph.',e))}},{key:"predecessorsIter",value:function(e){var t=this.pred.get(e);if(void 0!==t)return t.keys();throw new m.default((0,j.sprintf)('The node "%j" is not in the digraph.',e))}},{key:"successors",value:function(e){return l(this.successorsIter(e))}},{key:"predecessors",value:function(e){return l(this.predecessorsIter(e))}},{key:"neighbors",value:function(e){return this.successors(e)}},{key:"neighborsIter",value:function(e){return this.successorsIter(e)}},{key:"edgesIter",value:c.mark(function e(t){var r,n,a,i,o,u,s,l,d,h,p,v,b,g,y=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return c.wrap(function(e){for(var c=this;;)switch(e.prev=e.next){case 0:(0,j.isBoolean)(t)&&(y=t,t=void 0),r=void 0===t?this.adj:(0,j.mapIterator)(this.nbunchIter(t),function(e){return(0,j.tuple2)(e,c.adj.get(e))}),n=!0,a=!1,i=void 0,e.prev=5,o=f(r);case 7:if(n=(u=o.next()).done){e.next=40;break}s=u.value,l=!0,d=!1,h=void 0,e.prev=12,p=f(s[1]);case 14:if(l=(v=p.next()).done){e.next=23;break}return b=v.value,g=[s[0],b[0]],y&&(g[2]=b[1]),e.next=20,g;case 20:l=!0,e.next=14;break;case 23:e.next=29;break;case 25:e.prev=25,e.t0=e.catch(12),d=!0,h=e.t0;case 29:e.prev=29,e.prev=30,!l&&p.return&&p.return();case 32:if(e.prev=32,!d){e.next=35;break}throw h;case 35:return e.finish(32);case 36:return e.finish(29);case 37:n=!0,e.next=7;break;case 40:e.next=46;break;case 42:e.prev=42,e.t1=e.catch(5),a=!0,i=e.t1;case 46:e.prev=46,e.prev=47,!n&&o.return&&o.return();case 49:if(e.prev=49,!a){e.next=52;break}throw i;case 52:return e.finish(49);case 53:return e.finish(46);case 54:case"end":return e.stop()}},e,this,[[5,42,46,54],[12,25,29,37],[30,,32,36],[47,,49,53]])})},{key:"outEdgesIter",value:function(e,t){return this.edgesIter(e,t)}},{key:"outEdges",value:function(e,t){return this.edges(e,t)}},{key:"inEdgesIter",value:c.mark(function e(t){var r,n,a,i,o,u,s,l,d,h,p,v,b,g,y=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return c.wrap(function(e){for(var c=this;;)switch(e.prev=e.next){case 0:(0,j.isBoolean)(t)&&(y=t,t=void 0),r=void 0===t?this.pred:(0,j.mapIterator)(this.nbunchIter(t),function(e){return(0,j.tuple2)(e,c.pred.get(e))}),n=!0,a=!1,i=void 0,e.prev=5,o=f(r);case 7:if(n=(u=o.next()).done){e.next=40;break}s=u.value,l=!0,d=!1,h=void 0,e.prev=12,p=f(s[1]);case 14:if(l=(v=p.next()).done){e.next=23;break}return b=v.value,g=[b[0],s[0]],y&&(g[2]=b[1]),e.next=20,g;case 20:l=!0,e.next=14;break;case 23:e.next=29;break;case 25:e.prev=25,e.t0=e.catch(12),d=!0,h=e.t0;case 29:e.prev=29,e.prev=30,!l&&p.return&&p.return();case 32:if(e.prev=32,!d){e.next=35;break}throw h;case 35:return e.finish(32);case 36:return e.finish(29);case 37:n=!0,e.next=7;break;case 40:e.next=46;break;case 42:e.prev=42,e.t1=e.catch(5),a=!0,i=e.t1;case 46:e.prev=46,e.prev=47,!n&&o.return&&o.return();case 49:if(e.prev=49,!a){e.next=52;break}throw i;case 52:return e.finish(49);case 53:return e.finish(46);case 54:case"end":return e.stop()}},e,this,[[5,42,46,54],[12,25,29,37],[30,,32,36],[47,,49,53]])})},{key:"inEdges",value:function(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return l(this.inEdgesIter(e,t))}},{key:"degreeIter",value:function(e,t){var r,n=this;if(null==e)r=(0,j.zipIterator)(this.succ.entries(),this.pred.entries());else{var a=(0,j.createTupleFactory)(2),i=(0,j.createTupleFactory)(2);r=(0,j.zipIterator)((0,j.mapIterator)(this.nbunchIter(e),function(e){return a(e,n.succ.get(e))}),(0,j.mapIterator)(this.nbunchIter(e),function(e){return i(e,n.pred.get(e))}))}return null==t?(0,j.mapIterator)(r,function(e){var t=u(e,2),r=u(t[0],2),n=r[0],a=r[1],i=u(t[1],2);i[0];return[n,i[1].size+a.size]}):(0,j.mapIterator)(r,function(e){function r(e){var r=e[t];c+=null!=r?+r:1}var n=u(e,2),a=u(n[0],2),i=a[0],o=a[1],s=u(n[1],2),l=(s[0],s[1]),c=0;return o.forEach(r),l.forEach(r),[i,c]})}},{key:"inDegreeIter",value:function(e,t){var r,n=this;return r=null==e?this.pred:(0,j.mapIterator)(this.nbunchIter(e),function(e){return(0,j.tuple2)(e,n.pred.get(e))}),null==t?(0,j.mapIterator)(r,function(e){var t=u(e,2);return[t[0],t[1].size]}):(0,j.mapIterator)(r,function(e){var r=u(e,2),n=r[0],a=r[1],i=0;return a.forEach(function(e){var r=e[t];i+=null!=r?+r:1}),[n,i]})}},{key:"outDegreeIter",value:function(e,t){var r,n=this;return r=null==e?this.succ:(0,j.mapIterator)(this.nbunchIter(e),function(e){return(0,j.tuple2)(e,n.succ.get(e))}),null==t?(0,j.mapIterator)(r,function(e){var t=u(e,2);return[t[0],t[1].size]}):(0,j.mapIterator)(r,function(e){var r=u(e,2),n=r[0],a=r[1],i=0;return a.forEach(function(e){var r=e[t];i+=null!=r?+r:1}),[n,i]})}},{key:"inDegree",value:function(e,t){return null!=e&&this.hasNode(e)?(0,j.next)(this.inDegreeIter(e,t))[1]:new g.default(this.inDegreeIter(e,t))}},{key:"outDegree",value:function(e,t){return null!=e&&this.hasNode(e)?(0,j.next)(this.outDegreeIter(e,t))[1]:new g.default(this.outDegreeIter(e,t))}},{key:"clear",value:function(){this.succ.clear(),this.pred.clear(),this.node.clear(),(0,j.clear)(this.graph)}},{key:"isMultigraph",value:function(){return!1}},{key:"isDirected",value:function(){return!0}},{key:"toDirected",value:function(){return(0,j.deepcopy)(this)}},{key:"toUndirected",value:function(e){var t=new v.default;t.name=this.name,t.addNodesFrom(this);var r=this.pred;return e?t.addEdgesFrom(c.mark(function e(){var t,n,a,i,o,u,s,l,d,h,p,v,b,g;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=!0,n=!1,a=void 0,e.prev=3,i=f(this.adjacencyIter());case 5:if(t=(o=i.next()).done){e.next=39;break}u=o.value,s=u[0],l=r.get(s),d=!0,h=!1,p=void 0,e.prev=12,v=f(u[1]);case 14:if(d=(b=v.next()).done){e.next=22;break}if(g=b.value,!l.has(g[0])){e.next=19;break}return e.next=19,(0,j.tuple3)(s,g[0],(0,j.deepcopy)(g[1]));case 19:d=!0,e.next=14;break;case 22:e.next=28;break;case 24:e.prev=24,e.t0=e.catch(12),h=!0,p=e.t0;case 28:e.prev=28,e.prev=29,!d&&v.return&&v.return();case 31:if(e.prev=31,!h){e.next=34;break}throw p;case 34:return e.finish(31);case 35:return e.finish(28);case 36:t=!0,e.next=5;break;case 39:e.next=45;break;case 41:e.prev=41,e.t1=e.catch(3),n=!0,a=e.t1;case 45:e.prev=45,e.prev=46,!t&&i.return&&i.return();case 48:if(e.prev=48,!n){e.next=51;break}throw a;case 51:return e.finish(48);case 52:return e.finish(45);case 53:case"end":return e.stop()}},e,this,[[3,41,45,53],[12,24,28,36],[29,,31,35],[46,,48,52]])}).call(this)):t.addEdgesFrom(c.mark(function e(){var t,r,n,a,i,o,u,s,l,d,h,p;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=!0,r=!1,n=void 0,e.prev=3,a=f(this.adjacencyIter());case 5:if(t=(i=a.next()).done){e.next=36;break}o=i.value,u=!0,s=!1,l=void 0,e.prev=10,d=f(o[1]);case 12:if(u=(h=d.next()).done){e.next=19;break}return p=h.value,e.next=16,(0,j.tuple3)(o[0],p[0],(0,j.deepcopy)(p[1]));case 16:u=!0,e.next=12;break;case 19:e.next=25;break;case 21:e.prev=21,e.t0=e.catch(10),s=!0,l=e.t0;case 25:e.prev=25,e.prev=26,!u&&d.return&&d.return();case 28:if(e.prev=28,!s){e.next=31;break}throw l;case 31:return e.finish(28);case 32:return e.finish(25);case 33:t=!0,e.next=5;break;case 36:e.next=42;break;case 38:e.prev=38,e.t1=e.catch(3),r=!0,n=e.t1;case 42:e.prev=42,e.prev=43,!t&&a.return&&a.return();case 45:if(e.prev=45,!r){e.next=48;break}throw n;case 48:return e.finish(45);case 49:return e.finish(42);case 50:case"end":return e.stop()}},e,this,[[3,38,42,50],[10,21,25,33],[26,,28,32],[43,,45,49]])}).call(this)),t.graph=(0,j.deepcopy)(this.graph),t.node=(0,j.deepcopy)(this.node),t}},{key:"reverse",value:function(){var e,t=arguments.length<=0||void 0===arguments[0]||arguments[0];if(t)e=new this.constructor(null,{name:"Reverse of ("+this.name+")"}),e.addNodesFrom(this),e.addEdgesFrom((0,
j.mapIterator)(this.edgesIter(null,!0),function(e){return(0,j.tuple3c)(e[1],e[0],(0,j.deepcopy)(e[2]),e)})),e.graph=(0,j.deepcopy)(this.graph),e.node=(0,j.deepcopy)(this.node);else{var r=this.pred,n=this.succ;this.succ=r,this.pred=n,this.adj=this.succ,e=this}return e}},{key:"subgraph",value:function(e){var t,r=this.nbunchIter(e),n=new this.constructor,a=!0,i=!1,o=void 0;try{for(var s,l=f(r);!(a=(s=l.next()).done);a=!0)t=s.value,n.node.set(t,this.node.get(t))}catch(e){i=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(i)throw o}}var c=n.succ,d=n.pred,h=!0,p=!1,v=void 0;try{for(var b,y=f(n);!(h=(b=y.next()).done);h=!0)t=b.value,c.set(t,new g.default),d.set(t,new g.default)}catch(e){p=!0,v=e}finally{try{!h&&y.return&&y.return()}finally{if(p)throw v}}var m=!0,w=!1,x=void 0;try{for(var j,k=f(c);!(m=(j=k.next()).done);m=!0){var E=j.value,_=u(E,2),$=_[0],S=_[1],M=!0,O=!1,P=void 0;try{for(var I,N=f(this.succ.get($));!(M=(I=N.next()).done);M=!0){var A=I.value,q=u(A,2),D=q[0],L=q[1];c.has(D)&&(S.set(D,L),d.get(D).set($,L))}}catch(e){O=!0,P=e}finally{try{!M&&N.return&&N.return()}finally{if(O)throw P}}}}catch(e){w=!0,x=e}finally{try{!m&&k.return&&k.return()}finally{if(w)throw x}}return n.graph=this.graph,n}}],[{key:"__name__",get:function(){return"DiGraph"}}]),t}(v.default);r.default=k,t.exports=r.default},{"../_internals":20,"../_internals/Map":3,"../convert":69,"../exceptions/JSNetworkXError":73,"./Graph":61,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/object/assign":92,"babel-runtime/helpers/class-call-check":102,"babel-runtime/helpers/create-class":103,"babel-runtime/helpers/get":106,"babel-runtime/helpers/inherits":107,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/interop-require-wildcard":110,"babel-runtime/helpers/sliced-to-array":111,"babel-runtime/regenerator":112}],61:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/create-class").default,a=e("babel-runtime/helpers/class-call-check").default,i=e("babel-runtime/helpers/sliced-to-array").default,o=e("babel-runtime/core-js/object/assign").default,u=e("babel-runtime/core-js/array/from").default,s=e("babel-runtime/core-js/get-iterator").default,l=e("babel-runtime/regenerator").default,c=e("babel-runtime/core-js/symbol/iterator").default,f=e("babel-runtime/helpers/interop-require-default").default,d=e("babel-runtime/helpers/interop-require-wildcard").default;Object.defineProperty(r,"__esModule",{value:!0});var h=e("../exceptions/KeyError"),p=f(h),v=e("../_internals/Map"),b=f(v),g=e("../_internals/Set"),y=f(g),m=e("../exceptions/JSNetworkXError"),w=f(m),x=e("lodash/lang/isBoolean"),j=f(x),k=e("lodash/lang/isString"),E=f(k),_=e("../convert"),$=d(_),S=e("../_internals"),M=function(){function t(e,r){if(a(this,t),!(this instanceof t))return new t(e,r);this.graph={},this.node=new b.default,this.adj=new b.default,null!=e&&$.toNetworkxGraph(e,this),r&&o(this.graph,r),this.edge=this.adj}return n(t,[{key:"toString",value:function(){return this.name}},{key:"get",value:function(e){var t=this.adj.get(e);if(void 0===t)throw new p.default("Graph does not contain node "+e+".");return t}},{key:"addNode",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(!(0,S.isPlainObject)(t))throw new w.default("The attr_dict argument must be an object.");this.node.has(e)?o(this.node.get(e),t):(this.adj.set(e,new b.default),this.node.set(e,t))}},{key:"addNodesFrom",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];(0,S.forEach)(e,function(e){if(Array.isArray(e)&&2===e.length&&(0,S.isPlainObject)(e[1])){var r=i(e,2),n=r[0],a=r[1];if(this.adj.has(n)){var u=this.node.get(n);o(u,t,a)}else{this.adj.set(n,new b.default);var s=(0,S.clone)(t);this.node.set(n,o(s,a))}}else{!this.node.has(e)?(this.adj.set(e,new b.default),this.node.set(e,(0,S.clone)(t))):o(this.node.get(e),t)}},this)}},{key:"removeNode",value:function(e){var t=this.adj;if(!this.node.delete(e))throw new w.default("The node %s is not in the graph",e);t.get(e).forEach(function(r,n){return t.get(n).delete(e)}),t.delete(e)}},{key:"removeNodesFrom",value:function(e){var t=this.adj,r=this.node;(0,S.forEach)(e,function(e){r.delete(e)&&(t.get(e).forEach(function(r,n){return t.get(n).delete(e)}),t.delete(e))})}},{key:"nodesIter",value:function(){return arguments.length<=0||void 0===arguments[0]||!arguments[0]?this.node.keys():(0,S.toIterator)(this.node)}},{key:"nodes",value:function(){var e=!(arguments.length<=0||void 0===arguments[0])&&arguments[0];return u(e?this.node.entries():this.node.keys())}},{key:"numberOfNodes",value:function(){return this.node.size}},{key:"order",value:function(){return this.node.size}},{key:"hasNode",value:function(e){return this.node.has(e)}},{key:"addEdge",value:function(e,t,r){if(r&&!(0,S.isPlainObject)(r))throw new w.default("The attr_dict argument must be an object.");this.node.has(e)||(this.adj.set(e,new b.default),this.node.set(e,{})),this.node.has(t)||(this.adj.set(t,new b.default),this.node.set(t,{}));var n=this.adj.get(e).get(t)||{};o(n,r),this.adj.get(e).set(t,n),this.adj.get(t).set(e,n)}},{key:"addEdgesFrom",value:function(e,t){if(t&&!(0,S.isPlainObject)(t))throw new w.default("The attr_dict argument must be an object.");var r=!0,n=!1,a=void 0;try{for(var u,l=s(e);!(r=(u=l.next()).done);r=!0){var c=u.value;if(null==c.length)throw new w.default((0,S.sprintf)("Edge tuple %j must be a 2-tuple or 3-tuple.",c));var f=i(c,3),d=f[0],h=f[1],p=f[2];if((0,S.isPlainObject)(p)||(p={}),null==d||null==h||null!=c[3])throw new w.default((0,S.sprintf)("Edge tuple %j must be a 2-tuple or 3-tuple.",c));this.node.has(d)||(this.adj.set(d,new b.default),this.node.set(d,{})),this.node.has(h)||(this.adj.set(h,new b.default),this.node.set(h,{}));var v=this.adj.get(d).get(h)||{};o(v,t,p),this.adj.get(d).set(h,v),this.adj.get(h).set(d,v)}}catch(e){n=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(n)throw a}}}},{key:"addWeightedEdgesFrom",value:function(e,t,r){r=r||{},(0,E.default)(t)||(r=t,t="weight"),this.addEdgesFrom((0,S.mapSequence)(e,function(e){var r={};if(r[t]=e[2],null==r[t])throw new TypeError("Values must consist of three elements: %s.",e);return[e[0],e[1],r]}),r)}},{key:"removeEdge",value:function(e,t){var r=this.adj.get(e);if(null==r)throw new w.default("The edge %s-%s is not in the graph",e,t);r.delete(t);var n=this.adj.get(t);n!==r&&n.delete(e)}},{key:"removeEdgesFrom",value:function(e){var t=this.adj;(0,S.forEach)(e,function(e){var r=i(e,2),n=r[0],a=r[1],o=t.get(n);if(null!=o&&o.has(a)){o.delete(a);var u=t.get(a);u!==o&&u.delete(n)}})}},{key:"hasEdge",value:function(e,t){var r=this.adj.get(e);return r&&r.has(t)}},{key:"neighbors",value:function(e){return u(this.neighborsIter(e))}},{key:"neighborsIter",value:function(e){var t=this.adj.get(e);if(null!=t)return t.keys();throw new w.default("The node %s is not in the graph.",e)}},{key:"edges",value:function(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return u(this.edgesIter(e,t))}},{key:"edgesIter",value:l.mark(function e(t){var r,n,a,i,o,u,c,f,d,h,p,v,b,g,m,w,x=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(0,j.default)(t)&&(x=t,t=null),r=new y.default,null==t?n=this.adj.entries():(a=this.adj,n=(0,S.mapIterator)(this.nbunchIter(t),function(e){return(0,S.tuple2)(e,a.get(e))})),i=!0,o=!1,u=void 0,e.prev=6,c=s(n);case 8:if(i=(f=c.next()).done){e.next=49;break}d=f.value,h=d[0],p=!0,v=!1,b=void 0,e.prev=14,g=s(d[1].entries());case 16:if(p=(m=g.next()).done){e.next=30;break}if(w=m.value,r.has(w[0])){e.next=27;break}if(!x){e.next=25;break}return w.unshift(h),e.next=23,w;case 23:e.next=27;break;case 25:return e.next=27,[h,w[0]];case 27:p=!0,e.next=16;break;case 30:e.next=36;break;case 32:e.prev=32,e.t0=e.catch(14),v=!0,b=e.t0;case 36:e.prev=36,e.prev=37,!p&&g.return&&g.return();case 39:if(e.prev=39,!v){e.next=42;break}throw b;case 42:return e.finish(39);case 43:return e.finish(36);case 44:r.add(h),d.length=0;case 46:i=!0,e.next=8;break;case 49:e.next=55;break;case 51:e.prev=51,e.t1=e.catch(6),o=!0,u=e.t1;case 55:e.prev=55,e.prev=56,!i&&c.return&&c.return();case 58:if(e.prev=58,!o){e.next=61;break}throw u;case 61:return e.finish(58);case 62:return e.finish(55);case 63:case"end":return e.stop()}},e,this,[[6,51,55,63],[14,32,36,44],[37,,39,43],[56,,58,62]])})},{key:"getEdgeData",value:function(e,t){var r=arguments.length<=2||void 0===arguments[2]?null:arguments[2],n=this.adj.get(e);if(null!=n){var a=n.get(t);if(null!=a)return a}return r}},{key:"adjacencyList",value:function(){return u((0,S.mapIterator)(this.adjacencyIter(),function(e){var t=i(e,2),r=(t[0],t[1]);return u(r.keys())}))}},{key:"adjacencyIter",value:function(){return this.adj.entries()}},{key:"degree",value:function(e,t){return null!=e&&this.hasNode(e)?this.degreeIter(e,t).next().value[1]:new b.default(this.degreeIter(e,t))}},{key:"degreeIter",value:function(e,t){var r,n=this;return null==e?r=this.adj.entries():function(){var t=n.adj;r=(0,S.mapIterator)(n.nbunchIter(e),function(e){return(0,S.tuple2)(e,t.get(e))})}(),t?(0,S.mapIterator)(r,function(e){var r=i(e,2),n=r[0],a=r[1],o=0;if(a.forEach(function(e){var r=e[t];o+=+(null!=r?r:1)}),a.has(n)){var u=a.get(n)[t];o+=+(null!=u?u:1)}return[n,o]}):(0,S.mapIterator)(r,function(e){var t=i(e,2),r=t[0],n=t[1];return[r,n.size+ +n.has(r)]})}},{key:"clear",value:function(){this.name="",this.adj.clear(),this.node.clear(),(0,S.clear)(this.graph)}},{key:"copy",value:function(){return(0,S.deepcopy)(this)}},{key:"isMultigraph",value:function(){return!1}},{key:"isDirected",value:function(){return!1}},{key:"toDirected",value:function(){var t=new(e("./DiGraph"));return t.name=this.name,t.addNodesFrom(this),t.addEdgesFrom(l.mark(function e(){var t,r,n,a,i,o,u,c,f,d,h,p,v;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=!0,r=!1,n=void 0,e.prev=3,a=s(this.adjacencyIter());case 5:if(t=(i=a.next()).done){e.next=37;break}o=i.value,u=o[0],c=!0,f=!1,d=void 0,e.prev=11,h=s(o[1]);case 13:if(c=(p=h.next()).done){e.next=20;break}return v=p.value,e.next=17,(0,S.tuple3)(u,v[0],(0,S.deepcopy)(v[1]));case 17:c=!0,e.next=13;break;case 20:e.next=26;break;case 22:e.prev=22,e.t0=e.catch(11),f=!0,d=e.t0;case 26:e.prev=26,e.prev=27,!c&&h.return&&h.return();case 29:if(e.prev=29,!f){e.next=32;break}throw d;case 32:return e.finish(29);case 33:return e.finish(26);case 34:t=!0,e.next=5;break;case 37:e.next=43;break;case 39:e.prev=39,e.t1=e.catch(3),r=!0,n=e.t1;case 43:e.prev=43,e.prev=44,!t&&a.return&&a.return();case 46:if(e.prev=46,!r){e.next=49;break}throw n;case 49:return e.finish(46);case 50:return e.finish(43);case 51:case"end":return e.stop()}},e,this,[[3,39,43,51],[11,22,26,34],[27,,29,33],[44,,46,50]])}).call(this)),t.graph=(0,S.deepcopy)(this.graph),t.node=(0,S.deepcopy)(this.node),t}},{key:"toUndirected",value:function(){return(0,S.deepcopy)(this)}},{key:"subgraph",value:function(e){var t,r=this.nbunchIter(e),n=new this.constructor,a=!0,i=!1,o=void 0;try{for(var u,l=s(r);!(a=(u=l.next()).done);a=!0)t=u.value,n.node.set(t,this.node.get(t))}catch(e){i=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(i)throw o}}var c=n.adj,f=this.adj,d=!0,h=!1,p=void 0;try{for(var v,g=s(n);!(d=(v=g.next()).done);d=!0){t=v.value;var y=new b.default;c.set(t,y);var m=!0,w=!1,x=void 0;try{for(var j,k=s(f.get(t));!(m=(j=k.next()).done);m=!0){var E=j.value,_=E[0],$=E[1];c.has(_)&&(y.set(_,$),c.get(_).set(t,$))}}catch(e){w=!0,x=e}finally{try{!m&&k.return&&k.return()}finally{if(w)throw x}}}}catch(e){h=!0,p=e}finally{try{!d&&g.return&&g.return()}finally{if(h)throw p}}return n.graph=this.graph,n}},{key:"nodesWithSelfloops",value:function(){var e=[],t=!0,r=!1,n=void 0;try{for(var a,i=s(this.adj.entries());!(t=(a=i.next()).done);t=!0){var o=a.value;o[1].has(o[0])&&e.push(o[0])}}catch(e){r=!0,n=e}finally{try{!t&&i.return&&i.return()}finally{if(r)throw n}}return e}},{key:"selfloopEdges",value:function(){var e=!(arguments.length<=0||void 0===arguments[0])&&arguments[0],t=[],r=!0,n=!1,a=void 0;try{for(var o,u=s(this.adj.entries());!(r=(o=u.next()).done);r=!0){var l=o.value,c=i(l,2),f=c[0],d=c[1];d.has(f)&&(e?t.push((0,S.tuple3c)(f,f,d.get(f),l)):t.push((0,S.tuple2c)(f,f,l)))}}catch(e){n=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(n)throw a}}return t}},{key:"numberOfSelfloops",value:function(){return this.selfloopEdges().length}},{key:"size",value:function(e){var t=0,r=!0,n=!1,a=void 0;try{for(var i,o=s(this.degree(null,e).values());!(r=(i=o.next()).done);r=!0){t+=i.value}}catch(e){n=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw a}}return t/=2,null==e?Math.floor(t):t}},{key:"numberOfEdges",value:function(e,t){return null==e?Math.floor(this.size()):this.adj.get(e).has(t)?1:0}},{key:"addStar",value:function(e,t){var r=(0,S.toIterator)(e),n=r.next().value,a=(0,S.mapIterator)(r,function(e){return(0,S.tuple2)(n,e)});this.addEdgesFrom(a,t)}},{key:"addPath",value:function(e,t){var r=u(e),n=(0,S.zipSequence)(r.slice(0,r.length-1),r.slice(1));this.addEdgesFrom(n,t)}},{key:"addCycle",value:function(e,t){var r=u(e),n=(0,S.zipSequence)(r,r.slice(1).concat([r[0]]));this.addEdgesFrom(n,t)}},{key:"nbunchIter",value:l.mark(function e(t){var r,n,a,i,o,u,c;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t){e.next=4;break}return e.delegateYield(this.adj.keys(),"t0",2);case 2:e.next=44;break;case 4:if(!this.hasNode(t)){e.next=9;break}return e.next=7,t;case 7:e.next=44;break;case 9:r=this.adj,e.prev=10,n=!0,a=!1,i=void 0,e.prev=14,o=s((0,S.toIterator)(t));case 16:if(n=(u=o.next()).done){e.next=24;break}if(c=u.value,!r.has(c)){e.next=21;break}return e.next=21,c;case 21:n=!0,e.next=16;break;case 24:e.next=30;break;case 26:e.prev=26,e.t1=e.catch(14),a=!0,i=e.t1;case 30:e.prev=30,e.prev=31,!n&&o.return&&o.return();case 33:if(e.prev=33,!a){e.next=36;break}throw i;case 36:return e.finish(33);case 37:return e.finish(30);case 38:e.next=44;break;case 40:if(e.prev=40,e.t2=e.catch(10),!(e.t2 instanceof TypeError)){e.next=44;break}throw new w.default("nbunch is not a node or a sequence of nodes");case 44:case"end":return e.stop()}},e,this,[[10,40],[14,26,30,38],[31,,33,37]])})},{key:c,value:function(){return this.node.keys()}},{key:"name",get:function(){return this.graph.name||""},set:function(e){this.graph.name=e}}],[{key:"__name__",get:function(){return"Graph"}}]),t}();r.default=M,t.exports=r.default},{"../_internals":20,"../_internals/Map":3,"../_internals/Set":5,"../convert":69,"../exceptions/JSNetworkXError":73,"../exceptions/KeyError":77,"./DiGraph":60,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/object/assign":92,"babel-runtime/core-js/symbol/iterator":101,"babel-runtime/helpers/class-call-check":102,"babel-runtime/helpers/create-class":103,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/interop-require-wildcard":110,"babel-runtime/helpers/sliced-to-array":111,"babel-runtime/regenerator":112,"lodash/lang/isBoolean":259,"lodash/lang/isString":264}],62:[function(e,t,r){"use strict";function n(e,t,r,n){var a,i,o,u,s,l,c,h,p,v,g,y,w,x,j,k,E,_;return d.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:a=!0,i=!1,o=void 0,m.prev=3,u=b(e);case 5:if(a=(s=u.next()).done){m.next=48;break}l=f(s.value,2),c=l[0],h=l[1],p=!0,v=!1,g=void 0,m.prev=12,y=b(h);case 14:if(p=(w=y.next()).done){m.next=31;break}x=f(w.value,2),j=x[0],k=x[1],m.t0=d.keys(k);case 19:if((m.t1=m.t0()).done){m.next=28;break}return E=m.t1.value,_="out"===n?[c,j]:[j,c],r&&(_[2]=isNaN(E)?E:+E),t&&_.push(k[E]),m.next=26,_;case 26:m.next=19;break;case 28:p=!0,m.next=14;break;case 31:m.next=37;break;case 33:m.prev=33,m.t2=m.catch(12),v=!0,g=m.t2;case 37:m.prev=37,m.prev=38,!p&&y.return&&y.return();case 40:if(m.prev=40,!v){m.next=43;break}throw g;case 43:return m.finish(40);case 44:return m.finish(37);case 45:a=!0,m.next=5;break;case 48:m.next=54;break;case 50:m.prev=50,m.t3=m.catch(3),i=!0,o=m.t3;case 54:m.prev=54,m.prev=55,!a&&u.return&&u.return();case 57:if(m.prev=57,!i){m.next=60;break}throw o;case 60:return m.finish(57);case 61:return m.finish(54);case 62:case"end":return m.stop()}},m[0],this,[[3,50,54,62],[12,33,37,45],[38,,40,44],[55,,57,61]])}function a(e,t,r){var n=0,a=!0,i=!1,o=void 0;try{for(var u,s=b(e.values());!(a=(u=s.next()).done);a=!0){var l=u.value;for(var c in l)n+=(0,$.getDefault)(l[c][t],r)}}catch(e){i=!0,o=e}finally{try{!a&&s.return&&s.return()}finally{if(i)throw o}}return n}function i(e,t,r,n){var i,o,u,s,l,c,p,v,g,y,w,x,j,k,E,_,S,M,O,P,I,N;return d.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(i=null==r?t:(0,$.mapIterator)(e.nbunchIter(r),function(e){return(0,$.tuple2)(e,t.get(e))}),null!=n){d.next=52;break}o=!0,u=!1,s=void 0,d.prev=5,l=b(i);case 7:if(o=(c=l.next()).done){d.next=36;break}for(p=f(c.value,2),v=p[0],g=p[1],y=0,w=!0,x=!1,j=void 0,d.prev=15,k=b(g.values());!(w=(E=k.next()).done);w=!0)_=E.value,y+=h(_).length;d.next=23;break;case 19:d.prev=19,d.t0=d.catch(15),x=!0,j=d.t0;case 23:d.prev=23,d.prev=24,!w&&k.return&&k.return();case 26:if(d.prev=26,!x){d.next=29;break}throw j;case 29:return d.finish(26);case 30:return d.finish(23);case 31:return d.next=33,[v,y];case 33:o=!0,d.next=7;break;case 36:d.next=42;break;case 38:d.prev=38,d.t1=d.catch(5),u=!0,s=d.t1;case 42:d.prev=42,d.prev=43,!o&&l.return&&l.return();case 45:if(d.prev=45,!u){d.next=48;break}throw s;case 48:return d.finish(45);case 49:return d.finish(42);case 50:d.next=80;break;case 52:S=!0,M=!1,O=void 0,d.prev=55,P=b(i);case 57:if(S=(I=P.next()).done){d.next=66;break}return N=f(I.value,2),v=N[0],g=N[1],d.next=63,[v,a(g,n,1)];case 63:S=!0,d.next=57;break;case 66:d.next=72;break;case 68:d.prev=68,d.t2=d.catch(55),M=!0,O=d.t2;case 72:d.prev=72,d.prev=73,!S&&P.return&&P.return();case 75:if(d.prev=75,!M){d.next=78;break}throw O;case 78:return d.finish(75);case 79:return d.finish(72);case 80:case"end":return d.stop()}},m[1],this,[[5,38,42,50],[15,19,23,31],[24,,26,30],[43,,45,49],[55,68,72,80],[73,,75,79]])}var o=e("babel-runtime/helpers/get").default,u=e("babel-runtime/helpers/inherits").default,s=e("babel-runtime/helpers/create-class").default,l=e("babel-runtime/helpers/class-call-check").default,c=e("babel-runtime/helpers/define-property").default,f=e("babel-runtime/helpers/sliced-to-array").default,d=e("babel-runtime/regenerator").default,h=e("babel-runtime/core-js/object/keys").default,p=e("babel-runtime/core-js/object/assign").default,v=e("babel-runtime/core-js/array/from").default,b=e("babel-runtime/core-js/get-iterator").default,g=e("babel-runtime/core-js/object/get-own-property-names").default,y=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0});var m=[n,i].map(d.mark),w=e("./DiGraph"),x=y(w),j=e("./MultiGraph"),k=y(j),E=e("../exceptions/JSNetworkXError"),_=y(E),$=e("../_internals"),S=function(e){function t(e,r){l(this,t),o(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,r)}return u(t,e),s(t,[{key:"addEdge",value:function(e,t,r,n){if(r&&"object"==typeof r&&(n=r,r=null),n&&!(0,$.isPlainObject)(n))throw new _.default("The optAttrDict argument must be a plain object.");var a;if(this.succ.has(e)||(this.succ.set(e,new $.Map),this.pred.set(e,new $.Map),this.node.set(e,{})),this.succ.has(t)||(this.succ.set(t,new $.Map),this.pred.set(t,new $.Map),this.node.set(t,{})),this.succ.get(e).has(t)){if(a=this.get(e).get(t),null==r)for(r=h(a).length;a[r];)r+=1;a[r]=p((0,$.getDefault)(a[r],{}),n)}else null==r&&(r=0),a=c({},r,p({},n)),this.succ.get(e).set(t,a),this.pred.get(t).set(e,a)}},{key:"removeEdge",value:function(e,t,r){var n,a=this.adj.get(e);if(a&&(n=a.get(t)),null==n)throw new _.default((0,$.sprintf)("The edge %j-%j is not in the graph",e,t));if(null==r)for(var i in n){delete n[i];break}else{if(!n[r])throw new _.default((0,$.sprintf)("The edge %j-%j with key %j is not in the graph",e,t,r));delete n[r]}0===h(n).length&&(this.succ.get(e).delete(t),this.pred.get(t).delete(e))}},{key:"edgesIter",value:d.mark(function e(t){var r,a=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],i=!(arguments.length<=2||void 0===arguments[2])&&arguments[2];return d.wrap(function(e){for(var o=this;;)switch(e.prev=e.next){case 0:return"boolean"==typeof t&&(i=a,a=t,t=null),r=null==t?this.adj:(0,$.mapIterator)(this.nbunchIter(t),function(e){return(0,$.tuple2)(e,o.adj.get(e))}),e.delegateYield(n(r,a,i,"out"),"t0",3);case 3:case"end":return e.stop()}},e,this)})},{key:"outEdgesIter",value:function(e,t,r){return this.edgesIter(e,t,r)}},{key:"outEdges",value:function(e,t,r){return v(this.outEdgesIter(e,t,r))}},{key:"inEdgesIter",value:d.mark(function e(t){var r,a=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],i=!(arguments.length<=2||void 0===arguments[2])&&arguments[2];return d.wrap(function(e){for(var o=this;;)switch(e.prev=e.next){case 0:return"boolean"==typeof t&&(i=a,a=t,t=null),r=null==t?this.pred:(0,$.mapIterator)(this.nbunchIter(t),function(e){return(0,$.tuple2)(e,o.pred.get(e))}),e.delegateYield(n(r,a,i,"in"),"t0",3);case 3:case"end":return e.stop()}},e,this)})},{key:"inEdges",value:function(e,t,r){return v(this.inEdgesIter(e,t,r))}},{key:"degreeIter",value:d.mark(function e(t,r){var n,i,o,u,s,l,c,p,v,g,y,m,w,x,j,k,E,_,S,M,O,P,I,N,A,q,D,L,F,G,T,C,z,J,R,X;return d.wrap(function(e){for(var d=this;;)switch(e.prev=e.next){case 0:if(n=(0,$.createTupleFactory)(2),i=(0,$.createTupleFactory)(2),o=null==t?(0,$.zipIterator)(this.succ.entries(),this.pred.entries()):(0,$.zipIterator)((0,$.mapIterator)(this.nbunchIter(t),function(e){return n(e,d.succ.get(e))}),(0,$.mapIterator)(this.nbunchIter(t),function(e){return i(e,d.pred.get(e))})),null!=r){e.next=78;break}u=!0,s=!1,l=void 0,e.prev=7,c=b(o);case 9:if(u=(p=c.next()).done){e.next=62;break}for(v=f(p.value,2),g=f(v[0],2),y=g[0],m=g[1],w=f(v[1],2),x=w[0],j=w[1],E=0,_=!0,S=!1,M=void 0,e.prev=21,O=b(j.values());!(_=(P=O.next()).done);_=!0)k=P.value,E+=h(k).length;e.next=29;break;case 25:e.prev=25,e.t0=e.catch(21),S=!0,M=e.t0;case 29:e.prev=29,e.prev=30,!_&&O.return&&O.return();case 32:if(e.prev=32,!S){e.next=35;break}throw M;case 35:return e.finish(32);case 36:return e.finish(29);case 37:for(I=0,N=!0,A=!1,q=void 0,e.prev=41,D=b(m.values());!(N=(L=D.next()).done);N=!0)k=L.value,E+=h(k).length;e.next=49;break;case 45:e.prev=45,e.t1=e.catch(41),A=!0,q=e.t1;case 49:e.prev=49,e.prev=50,!N&&D.return&&D.return();case 52:if(e.prev=52,!A){e.next=55;break}throw q;case 55:return e.finish(52);case 56:return e.finish(49);case 57:return e.next=59,[y,E+I];case 59:u=!0,e.next=9;break;case 62:e.next=68;break;case 64:e.prev=64,e.t2=e.catch(7),s=!0,l=e.t2;case 68:e.prev=68,e.prev=69,!u&&c.return&&c.return();case 71:if(e.prev=71,!s){e.next=74;break}throw l;case 74:return e.finish(71);case 75:return e.finish(68);case 76:e.next=110;break;case 78:F=!0,G=!1,T=void 0,e.prev=81,C=b(o);case 83:if(F=(z=C.next()).done){e.next=96;break}return J=f(z.value,2),R=f(J[0],2),y=R[0],m=R[1],X=f(J[1],2),x=X[0],j=X[1],e.next=93,[y,a(j,r,1)+a(m,r,1)];case 93:F=!0,e.next=83;break;case 96:e.next=102;break;case 98:e.prev=98,e.t3=e.catch(81),G=!0,T=e.t3;case 102:e.prev=102,e.prev=103,!F&&C.return&&C.return();case 105:if(e.prev=105,!G){e.next=108;break}throw T;case 108:return e.finish(105);case 109:return e.finish(102);case 110:case"end":return e.stop()}},e,this,[[7,64,68,76],[21,25,29,37],[30,,32,36],[41,45,49,57],[50,,52,56],[69,,71,75],[81,98,102,110],[103,,105,109]])})},{key:"inDegreeIter",value:d.mark(function e(t,r){return d.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(i(this,this.pred,t,r),"t0",1);case 1:case"end":return e.stop()}},e,this)})},{key:"outDegreeIter",value:d.mark(function e(t,r){return d.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(i(this,this.succ,t,r),"t0",1);case 1:case"end":return e.stop()}},e,this)})},{key:"isMultigraph",value:function(){return!0}},{key:"isDirected",value:function(){return!0}},{key:"toDirected",value:function(){return(0,$.deepcopy)(this)}},{key:"toUndirected",value:function(e){var t=new k.default;t.name=this.name,t.addNodesFrom(this);var r=!0,n=!1,a=void 0;try{for(var i,o=b(this.adjacencyIter());!(r=(i=o.next()).done);r=!0){var u=f(i.value,2),s=u[0],l=u[1],c=!0,d=!1,h=void 0;try{for(var p,v=b(l);!(c=(p=v.next()).done);c=!0){var g=f(p.value,2),y=g[0],m=g[1];for(var w in m)e&&!this.hasEdge(y,s,w)||t.addEdge(s,y,w,(0,$.deepcopy)(m[w]))}}catch(e){d=!0,h=e}finally{try{!c&&v.return&&v.return()}finally{if(d)throw h}}}}catch(e){n=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw a}}return t.graph=(0,$.deepcopy)(this.graph),t.node=(0,$.deepcopy)(this.node),t}},{key:"subgraph",value:function(e){var t=this.nbunchIter(e),r=new this.constructor,n=!0,a=!1,i=void 0;try{for(var o,u=b(t);!(n=(o=u.next()).done);n=!0){var s=o.value;r.node.set(s,this.node.get(s))}}catch(e){a=!0,i=e}finally{try{!n&&u.return&&u.return()}finally{if(a)throw i}}var l=r.succ,c=r.pred,d=this.succ,h=!0,p=!1,v=void 0;try{for(var g,y=b(r);!(h=(g=y.next()).done);h=!0){var s=g.value;l.set(s,new $.Map),c.set(s,new $.Map)}}catch(e){p=!0,v=e}finally{try{!h&&y.return&&y.return()}finally{if(p)throw v}}var m=!0,w=!1,x=void 0;try{for(var j,k=b(l);!(m=(j=k.next()).done);m=!0){var E=f(j.value,2),_=E[0],S=E[1],M=!0,O=!1,P=void 0;try{for(var I,N=b(d.get(_));!(M=(I=N.next()).done);M=!0){var A=f(I.value,2),q=A[0],D=A[1];if(l.has(q)){var L=(0,$.clone)(D);S.set(q,L),c.get(q).set(_,L)}}}catch(e){O=!0,P=e}finally{try{!M&&N.return&&N.return()}finally{if(O)throw P}}}}catch(e){w=!0,x=e}finally{try{!m&&k.return&&k.return()}finally{if(w)throw x}}return r.graph=this.graph,r}},{key:"reverse",value:function(){var e,t=arguments.length<=0||void 0===arguments[0]||arguments[0];if(t)e=new this.constructor(null,{name:(0,$.sprintf)("Reverse of (%s)",this.name)}),e.addNodesFrom(this),e.addEdgesFrom((0,$.mapIterator)(this.edges(!0,!0),function(e){var t=f(e,4),r=t[0],n=t[1],a=t[2],i=t[3];return(0,$.tuple4)(n,r,a,(0,$.deepcopy)(i))})),e.graph=(0,$.deepcopy)(this.graph),e.node=(0,$.deepcopy)(this.node);else{var r=[this.succ,this.pred];this.pred=r[0],this.succ=r[1],this.adj=this.succ,e=this}return e}}],[{key:"__name__",get:function(){return"MultiDiGraph"}}]),t}(x.default);r.default=S,g(k.default.prototype).forEach(function(e){S.prototype.hasOwnProperty(e)||(S.prototype[e]=k.default.prototype[e])}),t.exports=r.default},{"../_internals":20,"../exceptions/JSNetworkXError":73,"./DiGraph":60,"./MultiGraph":63,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/object/assign":92,"babel-runtime/core-js/object/get-own-property-names":96,"babel-runtime/core-js/object/keys":97,"babel-runtime/helpers/class-call-check":102,"babel-runtime/helpers/create-class":103,"babel-runtime/helpers/define-property":105,"babel-runtime/helpers/get":106,"babel-runtime/helpers/inherits":107,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/sliced-to-array":111,"babel-runtime/regenerator":112}],63:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/get").default,a=e("babel-runtime/helpers/inherits").default,i=e("babel-runtime/helpers/create-class").default,o=e("babel-runtime/helpers/class-call-check").default,u=e("babel-runtime/helpers/sliced-to-array").default,s=e("babel-runtime/core-js/object/keys").default,l=e("babel-runtime/core-js/object/assign").default,c=e("babel-runtime/core-js/object/create").default,f=e("babel-runtime/core-js/array/from").default,d=e("babel-runtime/regenerator").default,h=e("babel-runtime/core-js/get-iterator").default,p=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0});var v=e("./Graph"),b=p(v),g=e("../exceptions/JSNetworkXError"),y=p(g),m=e("../_internals"),w=function(t){function r(e,t){o(this,r),n(Object.getPrototypeOf(r.prototype),"constructor",this).call(this,e,t)}return a(r,t),i(r,[{key:"addEdge",value:function(e,t,r,n){var a=typeof r;if(null!=r&&"number"!==a&&"string"!==a&&(n=r,r=null),n&&!(0,m.isPlainObject)(n))throw new y.default("The optAttrDict argument must be an object.");this.adj.has(e)||(this.adj.set(e,new m.Map),this.node.set(e,{})),this.adj.has(t)||(this.adj.set(t,new m.Map),this.node.set(t,{}));var i;if(this.adj.get(e).has(t)){if(i=this.adj.get(e).get(t),null==r)for(r=s(i).length;i[r];)r+=1;var o=i[r]||{};i[r]=l(o,n)}else null==r&&(r=0),i=c(null),i[r]=l({},n),this.adj.get(e).set(t,i),this.adj.get(t).set(e,i)}},{key:"addEdgesFrom",value:function(e,t){var r=this;if(t&&!(0,m.isPlainObject)(t))throw new y.default("The optAttrDict argument must be an object.");(0,m.forEach)(e,function(e){var n,a,i,o;switch(e.length){case 4:n=e[0],a=e[1],i=e[2],o=e[3];break;case 3:n=e[0],a=e[1],o=e[2];break;case 2:n=e[0],a=e[1];break;default:if(!(0,m.isArrayLike)(e))throw new TypeError("Elements in edgelists must be tuples.");throw new y.default((0,m.sprintf)("Edge tuple %j must be a 2-tuple, 3-tuple or 4-tuple.",e))}var u=r.adj.has(n)?r.adj.get(n).get(a)||c(null):c(null);if(null==i)for(i=s(u).length;u[i];)i+=1;var f=u[i]||{};l(f,t,o),r.addEdge(n,a,i,f)})}},{key:"removeEdge",value:function(e,t,r){var n,a=this.adj.get(e);if(a&&(n=a.get(t)),null==n)throw new y.default((0,m.sprintf)("The edge %j-%j is not in the graph",e,t));if(null==r)for(var i in n){delete n[i];break}else{if(!n[r])throw new y.default((0,m.sprintf)("The edge %j-%j with key %j is not in the graph",e,t,r));delete n[r]}0===s(n).length&&(a.delete(t),(0,m.nodesAreEqual)(e,t)||this.adj.get(t).delete(e))}},{key:"removeEdgesFrom",value:function(e){var t=this;(0,m.forEach)(e,function(e){try{t.removeEdge(e[0],e[1],e[2])}catch(e){if(!(e instanceof y.default))throw e}})}},{key:"hasEdge",value:function(e,t,r){var n=this.adj.get(e);return!!n&&(n.has(t)&&(null==r||!!n.get(t)[r]))}},{key:"edges",value:function(e,t,r){return f(this.edgesIter(e,t,r))}},{key:"edgesIter",value:d.mark(function e(t){var r,n,a,i,o,s,l,c,f,p,v,b,g,y,w,x,j,k,E,_,$=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],S=!(arguments.length<=2||void 0===arguments[2])&&arguments[2];return d.wrap(function(e){for(var M=this;;)switch(e.prev=e.next){case 0:"boolean"==typeof t&&(S=$,$=t,t=null),r=new m.Set,n=null==t?this.adj:(0,m.mapIterator)(this.nbunchIter(t),function(e){return(0,m.tuple2)(e,M.adj.get(e))}),a=!0,i=!1,o=void 0,e.prev=6,s=h(n);case 8:if(a=(l=s.next()).done){e.next=53;break}c=u(l.value,2),f=c[0],p=c[1],v=!0,b=!1,g=void 0,e.prev=15,y=h(p);case 17:if(v=(w=y.next()).done){e.next=36;break}if(x=u(w.value,2),j=x[0],k=x[1],r.has(j)){e.next=33;break}e.t0=d.keys(k);case 23:if((e.t1=e.t0()).done){e.next=32;break}return E=e.t1.value,_=[f,j],S&&(_[2]=E),$&&_.push(k[E]),e.next=30,_;case 30:e.next=23;break;case 32:r.add(f);case 33:v=!0,e.next=17;break;case 36:e.next=42;break;case 38:e.prev=38,e.t2=e.catch(15),b=!0,g=e.t2;case 42:e.prev=42,e.prev=43,!v&&y.return&&y.return();case 45:if(e.prev=45,!b){e.next=48;break}throw g;case 48:return e.finish(45);case 49:return e.finish(42);case 50:a=!0,e.next=8;break;case 53:e.next=59;break;case 55:e.prev=55,e.t3=e.catch(6),i=!0,o=e.t3;case 59:e.prev=59,e.prev=60,!a&&s.return&&s.return();case 62:if(e.prev=62,!i){e.next=65;break}throw o;case 65:return e.finish(62);case 66:return e.finish(59);case 67:case"end":return e.stop()}},e,this,[[6,55,59,67],[15,38,42,50],[43,,45,49],[60,,62,66]])})},{key:"getEdgeData",value:function(e,t,r,n){var a=this.adj.get(e);if(a)return null==r?a.get(t)||n:a.has(t)&&a.get(t)[r]||n}},{key:"degreeIter",value:d.mark(function e(t,r){var n,a,i,o,l,c,f,p,v,b,g,y;return d.wrap(function(e){for(var d=this;;)switch(e.prev=e.next){case 0:"string"==typeof t&&(r=t,t=null),n=null==t?this.adj:(0,m.mapIterator)(this.nbunchIter(t),function(e){return(0,m.tuple2)(e,d.adj.get(e))}),a=!0,i=!1,o=void 0,e.prev=5,l=h(n);case 7:if(a=(c=l.next()).done){e.next=25;break}if(f=u(c.value,2),p=f[0],v=f[1],b=0,null!=r){e.next=18;break}return v.forEach(function(e){return b+=s(e).length}),
e.next=16,[p,b+ +(v.has(p)&&s(v.get(p)).length)];case 16:e.next=22;break;case 18:if(v.forEach(function(e){for(var t in e)b+=(0,m.getDefault)(e[t][r],1)}),v.has(p)){g=v.get(p);for(y in g)b+=(0,m.getDefault)(g[y][r],1)}return e.next=22,[p,b];case 22:a=!0,e.next=7;break;case 25:e.next=31;break;case 27:e.prev=27,e.t0=e.catch(5),i=!0,o=e.t0;case 31:e.prev=31,e.prev=32,!a&&l.return&&l.return();case 34:if(e.prev=34,!i){e.next=37;break}throw o;case 37:return e.finish(34);case 38:return e.finish(31);case 39:case"end":return e.stop()}},e,this,[[5,27,31,39],[32,,34,38]])})},{key:"isMultigraph",value:function(){return!0}},{key:"isDirected",value:function(){return!1}},{key:"toDirected",value:function(){var t=new(e("./MultiDiGraph"));t.addNodesFrom(this);var r=!0,n=!1,a=void 0;try{for(var i,o=h(this.adjacencyIter());!(r=(i=o.next()).done);r=!0){var s=u(i.value,2),l=s[0],c=s[1],f=!0,d=!1,p=void 0;try{for(var v,b=h(c);!(f=(v=b.next()).done);f=!0){var g=u(v.value,2),y=g[0],w=g[1];for(var x in w)t.addEdge(l,y,x,(0,m.deepcopy)(w[x]))}}catch(e){d=!0,p=e}finally{try{!f&&b.return&&b.return()}finally{if(d)throw p}}}}catch(e){n=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw a}}return t.graph=(0,m.deepcopy)(this.graph),t.node=(0,m.deepcopy)(this.node),t}},{key:"selfloopEdges",value:function(){var e=!(arguments.length<=0||void 0===arguments[0])&&arguments[0],t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],r=[],n=!0,a=!1,i=void 0;try{for(var o,s=h(this.adj);!(n=(o=s.next()).done);n=!0){var l=u(o.value,2),c=l[0],f=l[1];if(f.has(c)){var d=f.get(c);for(var p in d){var v=[c,c];t&&(v[2]=p),e&&v.push(d[p]),r.push(v)}}}}catch(e){a=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw i}}return r}},{key:"numberOfEdges",value:function(e,t){if(null==e||null==t)return this.size();var r=this.get(e);return r&&r.has(t)?s(r.get(t)).length:0}},{key:"subgraph",value:function(e){var t=this.nbunchIter(e),r=new this.constructor;this.node.forEach(function(e,t){return r.node.set(t,e)});var n=r.adj,a=this.adj,i=!0,o=!1,s=void 0;try{for(var l,c=h(t);!(i=(l=c.next()).done);i=!0){var f=l.value,d=new m.Map;n.set(f,d);var p=!0,v=!1,b=void 0;try{for(var g,y=h(a.get(f));!(p=(g=y.next()).done);p=!0){var w=u(g.value,2),x=w[0],j=w[1];if(n.has(x)){var k=(0,m.clone)(j);d.set(x,k),n.get(x).set(f,k)}}}catch(e){v=!0,b=e}finally{try{!p&&y.return&&y.return()}finally{if(v)throw b}}}}catch(e){o=!0,s=e}finally{try{!i&&c.return&&c.return()}finally{if(o)throw s}}return r.graph=this.graph,r}}],[{key:"__name__",get:function(){return"MultiGraph"}}]),r}(b.default);r.default=w,t.exports=r.default},{"../_internals":20,"../exceptions/JSNetworkXError":73,"./Graph":61,"./MultiDiGraph":62,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/object/assign":92,"babel-runtime/core-js/object/create":93,"babel-runtime/core-js/object/keys":97,"babel-runtime/helpers/class-call-check":102,"babel-runtime/helpers/create-class":103,"babel-runtime/helpers/get":106,"babel-runtime/helpers/inherits":107,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/sliced-to-array":111,"babel-runtime/regenerator":112}],64:[function(e,t,r){"use strict";function n(e){return e.nodes()}function a(e){return e.nodesIter()}function i(e,t){return e.edges(t)}function o(e,t){return e.edgesIter(t)}function u(e,t,r){return e.degree(t,r)}function s(e,t){return e.neighbors(t)}function l(e){return e.numberOfNodes()}function c(e){return e.numberOfEdges()}function f(e){var t=e.numberOfNodes(),r=e.numberOfEdges();return 0===r?0:e.isDirected()?r/(t*(t-1)):2*r/(t*(t-1))}function d(e){var t=k(e.degree().values()),r=Math.max.apply(Math,t)+1,n=(0,O.fillArray)(r,0);return t.forEach(function(e){n[e]+=1}),n}function h(e){return e.isDirected()}function p(e){function t(){throw new M.default("Frozen graph can't be modified")}return e.addNode=t,e.addNodesFrom=t,e.removeNode=t,e.removeNodesFrom=t,e.addEdge=t,e.addEdgesFrom=t,e.removeEdge=t,e.removeEdgesFrom=t,e.clear=t,e.frozen=!0,e}function v(e){return!!e.frozen}function b(e,t){return e.subgraph(t)}function g(e){var t=arguments.length<=1||void 0===arguments[1]||arguments[1],r=new e.constructor;return t&&r.addNodesFrom(e),r}function y(e,t){var r="";if(null==t){var n=e.numberOfNodes();if(r=(0,O.sprintf)("Name: %s\nType: %s\nNumber of nodes: %s\nNumber of edges: %s\n",e.name,e.constructor.__name__,n,e.numberOfEdges()),n>0)if(e.isDirected()){var a=0,i=0,o=!0,u=!1,s=void 0;try{for(var l,c=E(e.inDegree().values());!(o=(l=c.next()).done);o=!0){var f=l.value;a+=f}}catch(e){u=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(u)throw s}}var d=!0,h=!1,p=void 0;try{for(var v,b=E(e.outDegree().values());!(d=(v=b.next()).done);d=!0){var g=v.value;i+=g}}catch(e){h=!0,p=e}finally{try{!d&&b.return&&b.return()}finally{if(h)throw p}}r+=(0,O.sprintf)("Average in degree: %s\nAverage out degree: %s",(a/n).toFixed(4),(i/n).toFixed(4))}else{var y=0,m=!0,w=!1,x=void 0;try{for(var j,k=E(e.degree().values());!(m=(j=k.next()).done);m=!0){var _=j.value;y+=_}}catch(e){w=!0,x=e}finally{try{!m&&k.return&&k.return()}finally{if(w)throw x}}r+=(0,O.sprintf)("Average degree: %s",(y/n).toFixed(4))}}else{if(!e.hasNode(t))throw new M.default((0,O.sprintf)("Node %j not in graph.",t));r=(0,O.sprintf)("Node %j has the following properties:\nDegree: %s\nNeighbors: %s",t,e.degree(t),e.neighbors(t).map(function(e){return JSON.stringify(e)}).join(" "))}return r}function m(e,t,r){if((0,O.isMap)(r))r.forEach(function(r,n){return e.node.get(n)[t]=r});else{if(!(0,O.isPlainObject)(r))throw new TypeError("Attributes must be a Map or a plain object");for(var n in r)n=isNaN(n)?n:+n,e.node.get(n)[t]=r[n]}}function w(e,t){var r=new _;return e.node.forEach(function(e,n){n.hasOwnProperty(t)&&r.set(e,n[t])}),r}function x(e,t,r){r.forEach(function(r,n){e.get(r[0]).get(r[1])[t]=n})}function j(e,t){var r=new _;return e.edges(null,!0).forEach(function(e){if(e[2].hasOwnProperty(t)){var n=e[2][t];e.length=2,r.set(e,n)}}),r}var k=e("babel-runtime/core-js/array/from").default,E=e("babel-runtime/core-js/get-iterator").default,_=e("babel-runtime/core-js/map").default,$=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.nodes=n,r.nodesIter=a,r.edges=i,r.edgesIter=o,r.degree=u,r.neighbors=s,r.numberOfNodes=l,r.numberOfEdges=c,r.density=f,r.degreeHistogram=d,r.isDirected=h,r.freeze=p,r.isFrozen=v,r.subgraph=b,r.createEmptyCopy=g,r.info=y,r.setNodeAttributes=m,r.getNodeAttributes=w,r.setEdgeAttributes=x,r.getEdgeAttributes=j;var S=e("../exceptions/JSNetworkXError"),M=$(S),O=e("../_internals")},{"../_internals":20,"../exceptions/JSNetworkXError":73,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/map":91,"babel-runtime/helpers/interop-require-default":109}],65:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default").default,a=e("babel-runtime/helpers/interop-require-wildcard").default,i=e("babel-runtime/helpers/defaults").default,o=e("babel-runtime/helpers/interop-export-wildcard").default;Object.defineProperty(r,"__esModule",{value:!0});var u=e("./Graph"),s=n(u),l=e("./DiGraph"),c=n(l),f=e("./MultiGraph"),d=n(f),h=e("./MultiDiGraph"),p=n(h),v=e("./functions"),b=a(v);r.Graph=s.default,r.DiGraph=c.default,r.MultiGraph=d.default,r.MultiDiGraph=p.default,r.functions=b,i(r,o(v,i))},{"./DiGraph":60,"./Graph":61,"./MultiDiGraph":62,"./MultiGraph":63,"./functions":64,"babel-runtime/helpers/defaults":104,"babel-runtime/helpers/interop-export-wildcard":108,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/interop-require-wildcard":110}],66:[function(e,t,r){"use strict";function n(e,t){var r=new h.Map;if(null!=t)s(t).forEach(function(n){return r.set(n,e.neighbors(n).filter(function(e){return t.indexOf(e)>-1}))});else{var n=!0,a=!1,i=void 0;try{for(var o,u=l(e);!(n=(o=u.next()).done);n=!0){var c=o.value;r.set(c,e.neighbors(c))}}catch(e){a=!0,i=e}finally{try{!n&&u.return&&u.return()}finally{if(a)throw i}}}return r}function a(e,t){var r=(0,d.default)(t);if(r.addNodesFrom(e.keys()),r.isMultigraph()&&!r.isDirected()){var n=new h.Set;e.forEach(function(e,t){e.forEach(function(e){n.has(e)||r.addEdge(t,e)}),n.add(t)})}else e.forEach(function(e,t){e.forEach(function(e){return r.addEdge(t,e)})});return r}function i(e,t,r){var n=new h.Map;if(null!=t)t=s(t),t.forEach(function(a){var i=n.set(a,new h.Map);e.get(a).forEach(function(e,n){t.indexOf(e)>-1&&i.set(e,null==r?n:r)})});else{var a=!0,i=!1,o=void 0;try{for(var c,f=l(e.adjacencyIter());!(a=(c=f.next()).done);a=!0)!function(){var e=u(c.value,2),t=e[0],a=e[1],i=n.set(a,new h.Map);t.forEach(function(e,t){i.set(t,null==r?e:r)})}()}catch(e){i=!0,o=e}finally{try{!a&&f.return&&f.return()}finally{if(i)throw o}}}return n}function o(e,t,r){var n=(0,d.default)(t),a=new h.Set;if(n.addNodesFrom(e.keys()),r)if(n.isDirected())e.forEach(function(e,t){if((0,h.isArrayLike)(e))throw new TypeError("Value is not a map.");e.forEach(function(e,r){for(var a in e){var i=e[a];n.isMultigraph()?n.addEdge(t,r,a,i):n.addEdge(t,r,i)}})});else{var i=n.isMultigraph();e.forEach(function(e,t){if((0,h.isArrayLike)(e))throw new TypeError("Not a map");e.forEach(function(e,r){if(!a.has((0,h.tuple2)(t,r))){for(var o in e){var u=e[o];i?n.addEdge(t,r,o,u):n.addEdge(t,r,u)}a.add((0,h.tuple2)(r,t))}})})}else n.isMultigraph()&&!n.isDirected()?e.forEach(function(e,t){if((0,h.isArrayLike)(e))throw new TypeError("Value is not a map");e.forEach(function(e,r){a.has((0,h.tuple2)(t,r))||(n.addEdge(t,r,e),a.add((0,h.tuple2)(r,t)))})}):e.forEach(function(e,t){if((0,h.isArrayLike)(e))throw new TypeError("Value is not a map");e.forEach(function(e,r){n.addEdge(t,r,e)})});return n}var u=e("babel-runtime/helpers/sliced-to-array").default,s=e("babel-runtime/core-js/array/from").default,l=e("babel-runtime/core-js/get-iterator").default,c=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.toMapOfLists=n,r.fromMapOfLists=a,r.toMapOfMaps=i,r.fromMapOfMaps=o;var f=e("./prepCreateUsing"),d=c(f),h=e("../_internals")},{"../_internals":20,"./prepCreateUsing":68,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/sliced-to-array":111}],67:[function(e,t,r){"use strict";function n(e){function t(e,t,a,i){var o=r[e.type];if(o){for(var u=0,s=o.length;u<s&&!e.isPropgationStopped();u+=3)o[u+2]&&o[u].call(o[u+1]||t,e);if(!e.isDefaultPrevented()&&(i?n[a].apply(t,i):n[a].call(t),!e.isPropgationStopped()))for(u=0,s=o.length;u<s&&!e.isPropgationStopped();u+=3)o[u+2]||o[u].call(o[u+1]||t,e)}}if("function"==typeof e.on)return e;var r={addNodes:[],removeNodes:[],addEdges:[],removeEdges:[],clear:[]},n=e.constructor.prototype;return e.on=function(e,t,n,a){if(!r[e])throw new Error('Event "'+e+'" is not supported.');r[e].push(t,n,!!a)},e.off=function(e,t,n){var a,i,o;if(1===arguments.length)r[e].length=0;else if(2===arguments.length)for(a=r[e],i=a.length-2,"function"!=typeof t&&(i+=1),o=i;o>0;o-=2)a[o]===t&&a.splice(o,3);else for(a=r[e],i=a.length-2,o=i;o>0;o-=2)a[o]===t&&a[o+1]===n&&a.splice(o,2)},e.addNode=function(r){var n=e.hasNode(r)?[]:[r],a=new c("addNodes",this);a.nodes=[r],a.newNodes=n,t(a,this,"addNode",arguments)},e.addNodesFrom=function(r){var n=[],a=[],i=!0,o=!1,u=void 0;try{for(var f,d=s(r);!(i=(f=d.next()).done);i=!0){var h=f.value,p=Array.isArray(h)?h[0]:h;n.push(Array.isArray(h)?h.slice():h),e.hasNode(p)||a.push(p)}}catch(e){o=!0,u=e}finally{try{!i&&d.return&&d.return()}finally{if(o)throw u}}var v=new c("addNodes",this);v.nodes=n.filter(function(e){return Array.isArray(e)?e[0]:e}),v.newNodes=a;var b=l(arguments);b[0]=n,t(v,this,"addNodesFrom",b)},e.addEdge=function(e,r){var n=[[e,r]],a=this.hasEdge(e,r)?[]:n,i=new c("addEdges",this);i.edges=n,i.newEdges=a,t(i,this,"addEdge",arguments)},e.addEdgesFrom=function(e){var r=[],n=[],a=!0,i=!1,o=void 0;try{for(var u,f=s(e);!(a=(u=f.next()).done);a=!0){var d=u.value;r.push(d.slice()),this.hasEdge(d[0],d[1])||n.push(d.slice(0,2))}}catch(e){i=!0,o=e}finally{try{!a&&f.return&&f.return()}finally{if(i)throw o}}var h=new c("addEdges",this);h.edges=r,h.newEdges=n;var p=l(arguments);p[0]=r,t(h,this,"addEdgesFrom",p)},e.removeNode=function(e){var r=new c("removeNodes",this);r.nodes=[e],t(r,this,"removeNode",arguments)},e.removeNodesFrom=function(e){var r=[],n=!0,a=!1,i=void 0;try{for(var o,u=s(e);!(n=(o=u.next()).done);n=!0){var f=o.value;r.push(Array.isArray(f)?f.slice():f)}}catch(e){a=!0,i=e}finally{try{!n&&u.return&&u.return()}finally{if(a)throw i}}var d=new c("removeNodes",this);d.nodes=r;var h=l(arguments);h[0]=r,t(d,this,"removeNodesFrom",h)},e.removeEdge=function(e,r){var n=new c("removeEdges",this);n.edges=[[e,r]],t(n,this,"removeEdge",arguments)},e.removeEdgesFrom=function(e){var r=[],n=!0,a=!1,i=void 0;try{for(var o,u=s(e);!(n=(o=u.next()).done);n=!0){var f=o.value;r.push(f.slice())}}catch(e){a=!0,i=e}finally{try{!n&&u.return&&u.return()}finally{if(a)throw i}}var d=new c("removeEdges");d.edges=r;var h=l(arguments);h[0]=r,t(d,this,"removeEdgesFrom",h)},e.clear=function(){t(new c("clear",this),this,"clear")},e}function a(e){var t=e.constructor.prototype;return"function"!=typeof e.on?e:(e.addNode=t.addNode,e.addNodesFrome=t.addNodesFrom,e.addEdge=t.addEdge,e.addEdgesFrome=t.addEdgesFrom,e.removeNode=t.removeNode,e.removeEdge=t.removeEdge,e.removeNodesFrom=t.removeNodesFrom,e.removeEdgesFrom=t.removeEdgesFrom,e.clear=t.clear,delete e.on,delete e.off,e)}function i(e){return"function"==typeof e.on&&"function"==typeof e.off}var o=e("babel-runtime/helpers/create-class").default,u=e("babel-runtime/helpers/class-call-check").default,s=e("babel-runtime/core-js/get-iterator").default,l=e("babel-runtime/core-js/array/from").default;Object.defineProperty(r,"__esModule",{value:!0}),r.observe=n,r.unobserve=a,r.isObservable=i;var c=function(){function e(t,r){u(this,e),this.type=t,this.target=r,this._defaultAction=!0,this._propagate=!0}return o(e,[{key:"stopPropagation",value:function(){this._propagate=!1}},{key:"isPropgationStopped",value:function(){return!this._propagate}},{key:"preventDefault",value:function(){this._defaultAction=!1}},{key:"isDefaultPrevented",value:function(){return!this._defaultAction}}]),e}()},{"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/class-call-check":102,"babel-runtime/helpers/create-class":103}],68:[function(e,t,r){"use strict";function n(t){var r,n=e("../classes/Graph");if(null==t)r=new n;else{r=t;try{r.clear()}catch(e){throw new TypeError("Input graph is not a jsnx graph type")}}return r}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n,t.exports=r.default},{"../classes/Graph":61}],69:[function(e,t,r){"use strict";function n(e,t){var r=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],n=null;if($.call(e,"adj"))try{return n=w.fromMapOfMaps(e.adj,t,e.isMultigraph()),$.call(e,"graph")&&"object"==typeof e.graph&&(n.graph=(0,_.clone)(e.graph)),$.call(e,"node")&&(0,_.isMap)(e.node)&&(n.node=new _.Map,e.node.forEach(function(e,t){return n.node.set(t,(0,_.clone)(e))})),n}catch(e){throw e}if((0,_.isMap)(e))try{return w.fromMapOfMaps(e,t,r)}catch(r){try{return w.fromMapOfLists(e,t)}catch(e){throw new Error("Map data structure cannot be converted to a graph.")}}if((0,_.isPlainObject)(e))try{return l(e,t,r)}catch(r){try{return u(e,t)}catch(e){throw new Error("Object data structure cannot be converted to a graph.")}}if((0,_.isArrayLike)(e))try{return f(e,t)}catch(e){throw new Error("Input is not a valid edge list")}return n}function a(e){return e.toUndirected()}function i(e){return e.toDirected()}function o(e,t){var r=function(e){return t.indexOf(e)>-1},n=h(null);null==t?(t=e,r=function(e){return t.hasNode(e)}):t=p(t);var a=!0,i=!1,o=void 0;try{for(var u,s=v(t);!(a=(u=s.next()).done);a=!0){var l=u.value;n[l]=e.neighbors(l).filter(r)}}catch(e){i=!0,o=e}finally{try{!a&&s.return&&s.return()}finally{if(i)throw o}}return n}function u(e,t){var r=(0,j.default)(t);r.addNodesFrom(b.mark(function t(){var r;return b.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=b.keys(e);case 1:if((t.t1=t.t0()).done){t.next=7;break}return r=t.t1.value,t.next=5,isNaN(r)?r:+r;case 5:t.next=1;break;case 7:case"end":return t.stop()}},t,this)})());var n,a;if(r.isMultigraph()&&!r.isDirected()){var i=new _.Set;for(n in e)a=e[n],n=isNaN(n)?n:+n,(0,_.forEach)(a,function(e){i.has(e)||r.addEdge(n,e)}),i.add(n)}else{var o=[];for(n in e)a=e[n],n=isNaN(n)?n:+n,(0,_.forEach)(a,function(e){o.push([n,e])});r.addEdgesFrom(o)}return r}function s(e,t,r){var n={};if(null!=t)t=p(t),null!=r?t.forEach(function(a){n[a]={},e.get(a).forEach(function(e,i){t.indexOf(i)>-1&&(n[a][i]=r)})}):t.forEach(function(r){n[r]={},e.get(r).forEach(function(e,a){t.indexOf(a)>-1&&(n[r][a]=e)})});else if(null!=r){var a=!0,i=!1,o=void 0;try{for(var u,s=v(e.adjacencyIter());!(a=(u=s.next()).done);a=!0){var l=d(u.value,2),c=l[0],f=l[1];n[f]=(0,E.default)(c,function(){return r})}}catch(e){i=!0,o=e}finally{try{!a&&s.return&&s.return()}finally{if(i)throw o}}}else{var h=!0,b=!1,g=void 0;try{for(var y,m=v(e.adjacencyIter());!(h=(y=m.next()).done);h=!0){var w=d(y.value,2),c=w[0],f=w[1];n[f]=(0,_.clone)(c)}}catch(e){b=!0,g=e}finally{try{!h&&m.return&&m.return()}finally{if(b)throw g}}}return n}function l(e,t){var r=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],n=(0,j.default)(t),a=new _.Set;if(n.addNodesFrom(b.mark(function t(){var r;return b.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=b.keys(e);case 1:if((t.t1=t.t0()).done){t.next=7;break}return r=t.t1.value,t.next=5,isNaN(r)?r:+r;case 5:t.next=1;break;case 7:case"end":return t.stop()}},t,this)})()),r)if(n.isDirected())for(var i in e){var o=e[i];if((0,_.isArrayLike)(o))throw new TypeError("Inner object seems to be an array");i=isNaN(i)?i:+i;for(var u in o){var s=o[u];u=isNaN(u)?u:+u;for(var l in s)n.isMultigraph()?n.addEdge(i,u,l,s[l]):n.addEdge(i,u,s[l])}}else for(var i in e){var o=e[i];if((0,_.isArrayLike)(o))throw new TypeError("Inner object seems to be an array");i=isNaN(i)?i:+i;for(var u in o){var s=o[u];if(u=isNaN(u)?u:+u,!a.has([i,u])){for(var l in s)n.isMultigraph()?n.addEdge(i,u,l,s[l]):n.addEdge(i,u,s[l]);a.add([u,i])}}}else if(n.isMultigraph()&&!n.isDirected())for(var i in e){var o=e[i];if((0,_.isArrayLike)(o))throw new TypeError("Inner object seems to be an array");i=isNaN(i)?i:+i;for(var u in o){var c=o[u];u=isNaN(u)?u:+u,a.has([i,u])||(n.addEdge(i,u,c),a.add([u,i]))}}else for(var i in e){var o=e[i];if((0,_.isArrayLike)(o))throw new TypeError("Inner object seems to be an array");i=isNaN(i)?i:+i;for(var u in o){var c=o[u];u=isNaN(u)?u:+u,n.addEdge(i,u,c)}}return n}function c(e,t){return null!=t?e.edges(t,!0):e.edges(null,!0)}function f(e,t){var r=(0,j.default)(t);return r.addEdgesFrom(e),r}var d=e("babel-runtime/helpers/sliced-to-array").default,h=e("babel-runtime/core-js/object/create").default,p=e("babel-runtime/core-js/array/from").default,v=e("babel-runtime/core-js/get-iterator").default,b=e("babel-runtime/regenerator").default,g=e("babel-runtime/helpers/interop-require-wildcard").default,y=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.toNetworkxGraph=n,r.convertToUndirected=a,r.convertToDirected=i,r.toDictOfLists=o,r.fromDictOfLists=u,r.toDictOfDicts=s,r.fromDictOfDicts=l,r.toEdgelist=c,r.fromEdgelist=f;var m=e("./contrib/convert"),w=g(m),x=e("./contrib/prepCreateUsing"),j=y(x),k=e("lodash/object/mapValues"),E=y(k),_=e("./_internals"),$=Object.prototype.hasOwnProperty},{"./_internals":20,"./contrib/convert":66,"./contrib/prepCreateUsing":68,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/object/create":93,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/interop-require-wildcard":110,"babel-runtime/helpers/sliced-to-array":111,"babel-runtime/regenerator":112,"lodash/object/mapValues":270}],70:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default").default,a=e("babel-runtime/helpers/defaults").default,i=e("babel-runtime/helpers/interop-export-wildcard").default;Object.defineProperty(r,"__esModule",{value:!0});var o=e("./svg"),u=n(o);r.svg=u.default,a(r,i(o,a))},{"./svg":71,"babel-runtime/helpers/defaults":104,"babel-runtime/helpers/interop-export-wildcard":108,"babel-runtime/helpers/interop-require-default":109}],71:[function(e,t,r){(function(t){"use strict";function n(e,t,r,n){return 180*Math.atan2(n-t,r-e)/Math.PI}function a(e){if(Array.isArray(e))return e;var t=[],r=0,n=!0,a=!1,i=void 0;try{for(var o,u=m(e);!(n=(o=u.next()).done);n=!0){var s=o.value;t[r++]=Array.isArray(s)?w(s):s}}catch(e){a=!0,i=e}finally{try{!n&&u.return&&u.return()}finally{if(a)throw i}}return t}function i(e,t,r){if("boolean"==typeof t&&(r=t,t=null),t=t||_||{},_=t,t.d3&&(M=t.d3),t=(0,j.deepmerge)({},O,t),!M)throw new Error("D3 requried for draw()");if(null==t.element&&null==E)throw new Error("Output element required for draw()");E=t.element||E,M.select(E).select("svg.jsnx").remove();var a,i,c,f=M.select(E),d=[],h=[],y=f.append("svg").classed("jsnx",!0).attr("pointer-events","all"),w=y.append("g"),x=w.append("g").classed("edges",!0).selectAll("g.edge"),$=w.append("g").classed("nodes",!0).selectAll("g.node"),S=M.layout.force(),P=t.width||parseInt(f.style("width"),10),I=t.height||parseInt(f.style("height"),10),N=t.layoutAttr,A=t.nodelist||null,q=e.isDirected(),D=t.weighted,L={nodeSelection:$,edgeSelection:x};if(t.withLabels){var F=t.labels;switch(typeof F){case"object":a=function(e){return(0,j.getDefault)(F[e.node],"")};break;case"function":a=F;break;case"string":a=function(e){return e.data[F]};break;default:a=function(e){return e.node}}}if(t.labels=a,D){var G=t.weights;switch(typeof weigths){case"object":c=function(e){return(0,j.getDefault)(G[e.node],1)};break;case"function":c=G;break;case"string":c=function(e){return(0,j.getDefault)(e.data[G],1)};break;default:c=function(e){return 1}}}if(t.withEdgeLabels){var T=t.edgeLabels;if(D&&null==T)i=c;else switch(typeof T){case"object":i=function(e){return(0,j.getDefault)(F[e.node],"")};break;case"function":i=T;break;case"string":i=function(e){return e.data[T]};break;default:i=function(e){return e.edge}}t.edgeLabels=i}if(D&&t.weightedStroke){var C=1,z=!0,J=!1,R=void 0;try{for(var X,B=m(e.edgesIter(null,!0));!(z=(X=B.next()).done);z=!0){var U=X.value,V=(U.u,U.v,U.data),H=c({data:V});H>C&&(C=H)}}catch(e){J=!0,R=e}finally{try{!z&&B.return&&B.return()}finally{if(J)throw R}}var K=M.scale.linear().range([2,t.edgeStyle["stroke-width"]]).domain([0,C]);t.edgeStyle["stroke-width"]=function(e){return K(c.call(this,e))}}y.select("svg.jsnx").remove(),y.attr("width",P+"px").attr("height",I+"px").style("opacity",1e-6).transition().duration(1e3).style("opacity",1);var W={size:!0,nodes:!0,links:!0,start:!0};for(var Y in N)!0!==W[Y]&&S[Y](N[Y]);S.nodes(d).links(h).size([P,I]);var Q=1,Z=1;t.panZoom.enabled&&function(){var e=t.panZoom.scale,r=!1,n=1,a=Q;y.call(M.behavior.zoom().on("zoom",function(){if(M.event.sourceEvent){var t=M.event.sourceEvent.shiftKey,i=e&&t||!(e||t);i&&!r?(n=M.event.scale,a=Q,r=!0):!i&&r&&(r=!1),Q=i?a*(M.event.scale/n):Q,Z=i?Z:Q/M.event.scale;var o=M.event.translate;w.attr("transform","translate("+o[0]+","+o[1]+")scale("+M.event.scale+")"),oe()}}))}();var ee=k,te=t.edgeOffset,re=t.nodeAttr.r,ne=t.nodeStyle["stroke-width"];"circle"===t.nodeShape?("function"!=typeof re&&(re=function(){return t.nodeAttr.r}),"function"!=typeof ne&&(ne=function(){return t.nodeStyle["stroke-width"]}),te=function(e){return[re(e.source)+ne(e.source),re(e.target)+ne(e.target)]}):Array.isArray(te)?te=function(){return t.edgeOffset}:"number"==typeof te&&(te=function(){return[t.edgeOffset,t.edgeOffset]});var ae=t.edgeStyle["stroke-width"];"function"!=typeof ae&&(ae=function(){return t.edgeStyle["stroke-width"]});var ie=t.edgeLabelOffset;ee=q?function(){L.edgeSelection.each(function(e){if(e.source!==e.target){var t=M.select(this),r=e.source.x,a=e.source.y,i=e.target.x,o=e.target.y,u=n(r,a,i,o),s=Math.sqrt(Math.pow(i-r,2)+Math.pow(o-a,2)),l=te(e);l=[l[0]*Z,l[1]*Z],t.attr("transform",["translate(",r,",",a,")","rotate(",u,")"].join(""));var c=ae(e)*Z,f=s-l[1]-2*c,d=c/2;t.select(".line").attr("d",["M",l[0],0,"L",l[0],-d,"L",f,-d,"L",f,-c,"L",s-l[1],0,"z"].join(" "));var h=1/Z;t.select("text").attr("x",ie.x*h+l[0]+(s*h-l[0]-l[1])/2).attr("y",-ae(e)/2+-ie.y*h).attr("transform","scale("+Z+")")}})}:function(){L.edgeSelection.each(function(e){if(e.source!==e.target){var r=M.select(this),a=e.source.x,i=e.source.y,o=e.target.x,u=e.target.y,s=n(a,i,o,u),l=Math.sqrt(Math.pow(o-a,2)+Math.pow(u-i,2)),c=l/2,f=te(e);f=[f[0]*Z,f[1]*Z];var d=1/Z,h=ae(e)*Z,p=s>90&&s<279;r.attr("transform",["translate(",a,",",i,")","rotate(",s,")"].join("")),r.select(".line").attr("d",["M",f[0],h/4,"L",f[0],-h/4,"L",l-f[1],-h/4,"L",l-f[1],h/4,"z"].join(" ")),t.withEdgeLabels&&r.select("text").attr("x",(p?1:-1)*ie.x*d+f[0]+(l*d-f[0]-f[1])/2).attr("y",-ae(e)/4+-ie.y*d).attr("transform","scale("+Z+")"+(p?"rotate(180,"+c*(1/Z)+",0)":""))}})};var oe=function(){L.nodeSelection.attr("transform",function(e){return["translate(",e.x,",",e.y,")","scale(",Z,")"].join("")}),ee()};S.on("tick",oe);var ue=e.nodesIter(),se=e.edgesIter();return A&&(r=!1,ue=e.nbunch_iter(A),se=e.edges_iter(A)),L.nodeSelection=o(e,ue,S,$,t),L.edgeSelection=u(e,se,S,x,i),s(L.nodeSelection,t),l(L.edgeSelection,t,null,q),r?p(e,S,t,L):v(e)?b(e):g(e),S.start(),S}function o(e,t,r,n,a){var i=r.nodes(),o=!0,u=!1,s=void 0;try{for(var l,f=m(t);!(o=(l=f.next()).done);o=!0){var d=l.value,h=e.node.get(d),p={node:d,data:h,G:e};i.push(p),h[S]=p}}catch(e){u=!0,s=e}finally{try{!o&&f.return&&f.return()}finally{if(u)throw s}}n=n.data(i,c);var v=r.drag().on("dragstart",function(e){M.event.sourceEvent.stopPropagation(),a.stickyDrag&&(e.fixed=!0,M.select(this).classed("fixed",!0))}),b=n.enter().append("g").classed("node",!0).call(v);return b.append(a.nodeShape).classed("node-shape",!0),a.labels&&b.append("text").text(a.labels),n}function u(e,t,r,n,a){var i=r.links(),o=!0,u=!1,s=void 0;try{for(var l,c=m(t);!(o=(l=c.next()).done);o=!0){var d=y(l.value,3),h=d[0],p=d[1],v=d[2];v=v||e.getEdgeData(h,p);var b={edge:[h,p],source:e.node.get(h)[S],target:e.node.get(p)[S],data:v,G:e};i.push(b),v[S]=b}}catch(e){u=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(u)throw s}}n=n.data(i,f);var g=n.enter().append("g").classed("edge",!0);return g.append("path").classed("line",!0),a&&g.append("text").text(a),n}function s(e,t,r){if(null!=r){var n=new j.Set,a=!0,i=!1,o=void 0;try{for(var u,s=m(r);!(a=(u=s.next()).done);a=!0){var l=u.value;n.add((0,j.isArrayLike)(l)?l[0]:l)}}catch(e){i=!0,o=e}finally{try{!a&&s.return&&s.return()}finally{if(i)throw o}}e=e.filter(function(e){return n.has(e.node)})}e.selectAll(".node-shape").attr(t.nodeAttr).style(t.nodeStyle),t.withLabels&&e.selectAll("text").attr(t.labelAttr).style(t.labelStyle)}function l(e,t,r,n){if(null!=r){var a=new j.Map,i=!0,o=!1,u=void 0;try{for(var s,l=m(r);!(i=(s=l.next()).done);i=!0){var c=y(s.value,2),f=c[0],d=c[1];a.set(f,d)}}catch(e){o=!0,u=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw u}}e=e.filter(function(e){var t=e.edge;return a.get(t[0])===t[1]||n||a.get(t[1])===t[0]})}e.selectAll(".line").attr(t.edgeAttr).style(t.edgeStyle).style("stroke-width",0),t.withEdgeLabels&&e.selectAll("text").attr(t.edgeLabelAttr).style(t.edgeLabelStyle).text(t.edgeLabels)}function c(e){return e.node}function f(e){return e.edge}function d(e,t,r,n){var a=r.nodes(),i=!0,o=!1,u=void 0;try{for(var s,l=m(e.nbunchIter(t));!(i=(s=l.next()).done);i=!0){var f=s.value,d=a.indexOf(e.node.get(f)[S]);d>-1&&a.splice(d,1)}}catch(e){o=!0,u=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw u}}return n=n.data(a,c),n.exit().remove(),n}function h(e,t,r,n){var a=r.links(),i=!0,o=!1,u=void 0;try{for(var s,l=m(t);!(i=(s=l.next()).done);i=!0){var c=y(s.value,2),d=c[0],h=c[1],p=a.indexOf(e.getEdgeData(d,h,{})[S]);p>-1&&a.splice(p,1)}}catch(e){o=!0,u=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw u}}return n=n.data(a,f),n.exit().remove(),n}function p(e,t,r,n){b(e,!1);var i=e.constructor.prototype,p=r.edgeLabels,v=e.isDirected();e.addNode=function(e,a){var u=!this.hasNode(e);i.addNode.call(this,e,a),u&&(n.nodeSelection=o(this,[e],t,n.nodeSelection,r)),s(n.nodeSelection,r,[e]),t.start()},e.addNodesFrom=function(e,u){var l=this;e=a(e);var c=e.filter(function(e){return!l.hasNode((0,j.isArrayLike)(e)?e[0]:e)});i.addNodesFrom.call(this,e,u),c.length>0&&(n.nodeSelection=o(this,c,t,n.nodeSelection,r)),s(n.nodeSelection,r,e),t.start()},e.addEdge=function(a,c,f){var d=this,h=!this.hasEdge(a,c),b=[[a,c]],g=h?(a===c?[a]:b[0]).filter(function(e){return!d.hasNode(e)}):[];i.addEdge.call(e,a,c,f),g.length>0&&(n.nodeSelection=o(this,g,t,n.nodeSelection,r),s(n.nodeSelection,r,g)),h&&(n.edgeSelection=u(this,b,t,n.edgeSelection,p)),l(n.edgeSelection,r,b,v),t.start()},e.addEdgesFrom=function(c,f){var d=[],h=[],b=new j.Map,g=new j.Set;c=a(c);var w=!0,x=!1,k=void 0;try{for(var E,_=m(c);!(w=(E=_.next()).done);w=!0){var $=y(E.value,2),S=$[0],M=$[1];this.hasEdge(S,M)||b.get(S)===M||!v&&b.get(M)!==S||(d.push([S,M]),b.set(S,M),this.hasNode(S)||g.has(S)||(h.push(S),g.add(S)),this.hasNode(M)||g.has(M)||(h.push(M),g.add(M)))}}catch(e){x=!0,k=e}finally{try{!w&&_.return&&_.return()}finally{if(x)throw k}}i.addEdgesFrom.call(e,c,f),h.length>0&&(n.nodeSelection=o(this,h,t,n.nodeSelection,r),s(n.nodeSelection,r,h)),d.length>0&&(n.edgeSelection=u(this,d,t,n.edgeSelection,p)),l(n.edgeSelection,r,d,v),t.start()},e.removeNode=function(e){if(this.hasNode(e)){n.nodeSelection=d(this,[e],t,n.nodeSelection);var r=this.edgesIter([e]);this.isDirected()&&(r=x.mark(function t(r,n){return x.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(n,"t0",1);case 1:return t.delegateYield(r.inEdgesIter([e]),"t1",2);case 2:case"end":return t.stop()}},t,this)})(this,r)),n.edgeSelection=h(this,r,t,n.edgeSelection),t.resume()}i.removeNode.call(this,e)},e.removeNodesFrom=function(e){e=a(e),n.nodeSelection=d(this,e,t,n.nodeSelection);var r=this.edgesIter(e);this.isDirected()&&(r=x.mark(function t(r,n){return x.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(n,"t0",1);case 1:return t.delegateYield(r.inEdgesIter(e),"t1",2);case 2:case"end":return t.stop()}},t,this)})(this,r)),n.edgeSelection=h(this,r,t,n.edgeSelection),t.resume(),i.removeNodesFrom.call(this,e)},e.removeEdge=function(e,r){n.edgeSelection=h(this,[[e,r]],t,n.edgeSelection),t.resume(),i.removeEdge.call(this,e,r)},e.removeEdgesFrom=function(r){r=a(r),n.edgeSelection=h(this,r,t,n.edgeSelection),t.resume(),i.removeEdgesFrom.call(e,r)},e.clear=function(){n.nodeSelection=n.nodeSelection.data([],c),n.nodeSelection.exit().remove(),n.edgeSelection=n.edgeSelection.data([],f),n.edgeSelection.exit().remove(),t.nodes([]).links([]).resume(),i.clear.call(this)},e.bound=!0}function v(e){return e.bound}function b(e){var t=arguments.length<=1||void 0===arguments[1]||arguments[1];if(v(e)){var r=e.constructor.prototype;$.forEach(function(t){return e[t]=r[t]}),delete e.bound,t&&g(e)}}function g(e){var t=!0,r=!1,n=void 0;try{for(var a,i=m(e.nodesIter(!0));!(t=(a=i.next()).done);t=!0){var o=y(a.value,2),u=(o[0],o[1]);delete u[S]}}catch(e){r=!0,n=e}finally{try{!t&&i.return&&i.return()}finally{if(r)throw n}}var s=!0,l=!1,c=void 0;try{for(var f,d=m(e.edgesIter(null,!0));!(s=(f=d.next()).done);s=!0){var h=y(f.value,3),u=(h[0],h[1],h[2]);delete u[S]}}catch(e){l=!0,c=e}finally{try{!s&&d.return&&d.return()}finally{if(l)throw c}}}var y=e("babel-runtime/helpers/sliced-to-array").default,m=e("babel-runtime/core-js/get-iterator").default,w=e("babel-runtime/core-js/array/from").default,x=e("babel-runtime/regenerator").default;Object.defineProperty(r,"__esModule",{value:!0}),r.draw=i
;var j=e("../_internals"),k=function(){},E=null,_=null,$=["addNode","addNodesFrom","addEdge","addEdgesFrom","removeNode","removeNodesFrom","removeEdge","removeEdgesFrom","clear"],S="__d3datum__",M=t.d3,O={layoutAttr:{charge:-120,linkDistance:60},nodeShape:"circle",nodeAttr:{r:10},nodeStyle:{"stroke-width":2,stroke:"#333",fill:"#999",cursor:"pointer"},edgeAttr:{},edgeStyle:{fill:"#000","stroke-width":3},labelAttr:{},labelStyle:{"text-anchor":"middle","dominant-baseline":"central",cursor:"pointer","-webkit-user-select":"none",fill:"#000"},edgeLabelAttr:{},edgeLabelStyle:{"font-size":"0.8em","text-anchor":"middle","-webkit-user-select":"none"},edgeLabelOffset:{x:0,y:.5},withLabels:!1,withEdgeLabels:!1,edgeOffset:10,weighted:!1,weights:"weight",weightedStroke:!0,panZoom:{enabled:!0,scale:!0}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../_internals":20,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/sliced-to-array":111,"babel-runtime/regenerator":112}],72:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/get").default,a=e("babel-runtime/helpers/inherits").default,i=e("babel-runtime/helpers/class-call-check").default,o=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0});var u=e("./JSNetworkXException"),s=o(u),l=function(e){function t(e){i(this,t),n(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.name="JSNetworkXAlgorithmError"}return a(t,e),t}(s.default);r.default=l,t.exports=r.default},{"./JSNetworkXException":74,"babel-runtime/helpers/class-call-check":102,"babel-runtime/helpers/get":106,"babel-runtime/helpers/inherits":107,"babel-runtime/helpers/interop-require-default":109}],73:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/get").default,a=e("babel-runtime/helpers/inherits").default,i=e("babel-runtime/helpers/class-call-check").default,o=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0});var u=e("./JSNetworkXException"),s=o(u),l=function(e){function t(e){i(this,t),n(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.name="JSNetworkXError"}return a(t,e),t}(s.default);r.default=l,t.exports=r.default},{"./JSNetworkXException":74,"babel-runtime/helpers/class-call-check":102,"babel-runtime/helpers/get":106,"babel-runtime/helpers/inherits":107,"babel-runtime/helpers/interop-require-default":109}],74:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/class-call-check").default;Object.defineProperty(r,"__esModule",{value:!0});var a=function e(t){n(this,e),this.name="JSNetworkXException",this.message=t};r.default=a,t.exports=r.default},{"babel-runtime/helpers/class-call-check":102}],75:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/get").default,a=e("babel-runtime/helpers/inherits").default,i=e("babel-runtime/helpers/class-call-check").default,o=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0});var u=e("./JSNetworkXUnfeasible"),s=o(u),l=function(e){function t(e){i(this,t),n(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.name="JSNetworkXNoPath"}return a(t,e),t}(s.default);r.default=l,t.exports=r.default},{"./JSNetworkXUnfeasible":76,"babel-runtime/helpers/class-call-check":102,"babel-runtime/helpers/get":106,"babel-runtime/helpers/inherits":107,"babel-runtime/helpers/interop-require-default":109}],76:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/get").default,a=e("babel-runtime/helpers/inherits").default,i=e("babel-runtime/helpers/class-call-check").default,o=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0});var u=e("./JSNetworkXAlgorithmError"),s=o(u),l=function(e){function t(e){i(this,t),n(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.name="JSNetworkXUnfeasible"}return a(t,e),t}(s.default);r.default=l,t.exports=r.default},{"./JSNetworkXAlgorithmError":72,"babel-runtime/helpers/class-call-check":102,"babel-runtime/helpers/get":106,"babel-runtime/helpers/inherits":107,"babel-runtime/helpers/interop-require-default":109}],77:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/get").default,a=e("babel-runtime/helpers/inherits").default,i=e("babel-runtime/helpers/class-call-check").default;Object.defineProperty(r,"__esModule",{value:!0});var o=function(e){function t(e){i(this,t),n(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.name="KeyError",this.message=e}return a(t,e),t}(Error);r.default=o,t.exports=r.default},{"babel-runtime/helpers/class-call-check":102,"babel-runtime/helpers/get":106,"babel-runtime/helpers/inherits":107}],78:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0});var a=e("./KeyError"),i=n(a),o=e("./JSNetworkXAlgorithmError"),u=n(o),s=e("./JSNetworkXError"),l=n(s),c=e("./JSNetworkXException"),f=n(c),d=e("./JSNetworkXNoPath"),h=n(d),p=e("./JSNetworkXUnfeasible"),v=n(p);r.KeyError=i.default,r.JSNetworkXAlgorithmError=u.default,r.JSNetworkXError=l.default,r.JSNetworkXException=f.default,r.JSNetworkXNoPath=h.default,r.JSNetworkXUnfeasible=v.default},{"./JSNetworkXAlgorithmError":72,"./JSNetworkXError":73,"./JSNetworkXException":74,"./JSNetworkXNoPath":75,"./JSNetworkXUnfeasible":76,"./KeyError":77,"babel-runtime/helpers/interop-require-default":109}],79:[function(e,t,r){"use strict";function n(e,t){var r,n,a,i,o;return h.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(r=(0,y.genRange)(e),0!==e){u.next=3;break}return u.abrupt("return");case 3:n=[(0,y.next)(r)];case 4:if(!(n.length>0)){u.next=20;break}a=n.shift(),i=0;case 7:if(!(i<t)){u.next=18;break}if(o=r.next(),!o.done){u.next=11;break}return u.abrupt("return");case 11:return o=o.value,n.push(o),u.next=15,(0,y.tuple2)(a,o);case 15:i++,u.next=7;break;case 18:u.next=4;break;case 20:case"end":return u.stop()}},v[0],this)}function a(e,t,r){var a=s(t,r);return a.addEdgesFrom(n(t,e)),a}function i(e,t,r){var a=1===e?t:Math.floor((1-Math.pow(e,t+1))/(1-e)),i=s(a,r);return i.addEdgesFrom(n(a,e)),i}function o(e,t){var r=s(e,t);return r.name="complete_graph("+e+")",e>1&&r.addEdgesFrom(r.isDirected()?(0,y.genPermutations)((0,y.range)(e),2):(0,y.genCombinations)((0,y.range)(e),2)),r}function u(e,t){var r=f(e,t);return r.name="cycle_graph("+e+")",e>1&&r.addEdge(e-1,0),r}function s(e,t){(0,y.isGraph)(e)&&(t=e,e=null),null==e&&(e=0);var r;return null==t?r=new g.default:(r=t,r.clear()),r.addNodesFrom((0,y.genRange)(e)),r.name="emptyGraph("+e+")",r}function l(e,t){var r=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],n=arguments.length<=3||void 0===arguments[3]?null:arguments[3],a=s(0,n);a.name="grid2dGraph";var i,o;for(i=0;i<e;i++)for(o=0;o<t;o++)a.addNode([i,o]);for(i=1;i<e;i++)for(o=0;o<t;o++)a.addEdge([i,o],[i-1,o]);for(i=0;i<e;i++)for(o=1;o<t;o++)a.addEdge([i,o],[i,o-1]);if(a.isDirected()){for(i=0;i<e-1;i++)for(o=0;o<t;o++)a.addEdge([i,o],[i+1,o]);for(i=0;i<e;i++)for(o=0;o<t-1;o++)a.addEdge([i,o],[i,o+1])}if(r){if(t>2){for(i=0;i<e;i++)a.addEdge([i,0],[i,t-1]);if(a.isDirected())for(i=0;i<e;i++)a.addEdge([i,t-1],[i,0])}if(e>2){for(o=0;o<t;o++)a.addEdge([0,o],[e-1,o]);if(a.isDirected())for(o=0;o<t;o++)a.addEdge([e-1,o],[0,o])}a.name="periodicGrid2dGraph("+e+", "+t+")"}return a}function c(e){var t=s(0,e);return t.name="nullGraph()",t}function f(e,t){var r=s(e,t);return r.name="pathGraph("+e+")",r.addEdgesFrom((0,y.mapIterator)((0,y.genRange)(e-1),function(e){return(0,y.tuple2)(e,e+1)})),r}function d(e){var t=s(1,e);return t.name="nullGraph()",t}var h=e("babel-runtime/regenerator").default,p=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.fullRaryTree=a,r.balancedTree=i,r.completeGraph=o,r.cycleGraph=u,r.emptyGraph=s,r.grid2dGraph=l,r.nullGraph=c,r.pathGraph=f,r.trivialGraph=d;var v=[n].map(h.mark),b=e("../classes/Graph"),g=p(b),y=e("../_internals")},{"../_internals":20,"../classes/Graph":61,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/regenerator":112}],80:[function(e,t,r){"use strict";function n(e,t){if(e=o(e),!(0,d.isValidDegreeSequence)(e))throw new f.default("Invalid degree sequence");if(null!=t&&t.isDirected())throw new f.default("Directed Graph not supported");for(var r=e.length,n=(0,h.emptyGraph)(r,t),a=new Array(r),u=0;u<r;u++)a[u]=[];var s=0,l=0,c=0;for(u=0;u<r;u++){var p=e[u];p>0&&(a[p].push(c),s=Math.max(s,p),l+=p,c+=1)}if(0===c)return n;var b=new Array(s+1);for(u=0;u<s+1;u++)b[u]=[0,0];for(;c>0;){for(;0===a[s].length;)s-=1;if(s>c-1)throw new f.default("Non-graphical integer sequence");var g=a[s].pop();c-=1;var y=0,m=s;for(u=0;u<s;u++){for(;0===a[m].length;)m-=1;var w=a[m].pop();n.addEdge(g,w),c-=1,m>1&&(b[y]=[m-1,w],y+=1)}for(u=0;u<y;u++){var x=i(b[u],2),j=x[0],k=x[1];a[j].push(k),c+=1}}return n.name=(0,v.default)("havelHakimiGraph %s nodes %d edges",n.order(),n.size()),n}function a(e,t){return(0,l.default)("havelHakimiGraph",[e,t])}var i=e("babel-runtime/helpers/sliced-to-array").default,o=e("babel-runtime/core-js/array/from").default,u=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.havelHakimiGraph=n,r.genHavelHakimiGraph=a;var s=e("../_internals/delegate"),l=u(s),c=e("../exceptions/JSNetworkXError"),f=u(c),d=e("../algorithms/graphical"),h=e("./classic"),p=e("../_internals/sprintf"),v=u(p)},{"../_internals/delegate":12,"../_internals/sprintf":38,"../algorithms/graphical":49,"../exceptions/JSNetworkXError":73,"./classic":79,"babel-runtime/core-js/array/from":88,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/sliced-to-array":111}],81:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-wildcard").default,a=e("babel-runtime/helpers/defaults").default,i=e("babel-runtime/helpers/interop-export-wildcard").default;Object.defineProperty(r,"__esModule",{value:!0});var o=e("./classic"),u=n(o),s=e("./degreeSequence"),l=n(s),c=e("./randomGraphs"),f=n(c),d=e("./small"),h=n(d),p=e("./social"),v=n(p);r.classic=u,r.degreeSequence=l,r.randomGraphs=f,r.small=h,r.social=v,a(r,i(o,a)),a(r,i(s,a)),a(r,i(c,a)),a(r,i(d,a)),a(r,i(p,a))},{"./classic":79,"./degreeSequence":80,"./randomGraphs":82,"./small":83,"./social":84,"babel-runtime/helpers/defaults":104,"babel-runtime/helpers/interop-export-wildcard":108,"babel-runtime/helpers/interop-require-wildcard":110}],82:[function(e,t,r){"use strict";function n(e,t){var r=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],n=(0,m.emptyGraph)(e);if(n.name=(0,w.sprintf)("fastGnpRandomGraph(%s, %s)",e,t),t<=0||t>=1)return i(e,t,r);var a,o,u=-1,s=Math.log(1-t);if(r)for(a=0,n=new b.default(n);a<e;){for(o=Math.log(1-Math.random()),u=u+1+Math.floor(o/s),a===u&&(u+=1);u>=e&&a<e;)u-=e,(a+=1)===u&&(u+=1);a<e&&n.addEdge(a,u)}else for(a=1;a<e;){for(o=Math.log(1-Math.random()),u=u+1+Math.floor(o/s);u>=a&&a<e;)u-=a,a+=1;a<e&&n.addEdge(a,u)}return n}function a(e,t,r){return(0,p.default)("fastGnpRandomGraph",[e,t,r])}function i(e,t){var r,n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],a=n?new b.default:new y.default,i=(0,w.range)(e);if(a.addNodesFrom(i),a.name=(0,w.sprintf)("gnpRandomGraph(%s, %s)",e,t),t<=0)return a;if(t>=1)return(0,m.completeGraph)(e,a);r=a.isDirected()?(0,w.genPermutations)(i,2):(0,w.genCombinations)(i,2);var o=!0,u=!1,s=void 0;try{for(var l,c=f(r);!(o=(l=c.next()).done);o=!0){var d=l.value;Math.random()<t&&a.addEdge(d[0],d[1])}}catch(e){u=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(u)throw s}}return a}function o(e,t,r){return(0,p.default)("gnpRandomGraph",[e,t,r])}function u(e,t,r){return i(e,t,r)}function s(e,t,r){return(0,p.default)("binomialGraph",[e,t,r])}function l(e,t,r){return i(e,t,r)}function c(e,t,r){return(0,p.default)("erdosRenyiGraph",[e,t,r])}var f=e("babel-runtime/core-js/get-iterator").default,d=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.fastGnpRandomGraph=n,r.genFastGnpRandomGraph=a,r.gnpRandomGraph=i,r.genGnpRandomGraph=o,r.binomialGraph=u,r.genBinomialGraph=s,r.erdosRenyiGraph=l,r.genErdosRenyiGraph=c;var h=e("../_internals/delegate"),p=d(h),v=e("../classes/DiGraph"),b=d(v),g=e("../classes/Graph"),y=d(g),m=e("./classic"),w=e("../_internals")},{"../_internals":20,"../_internals/delegate":12,"../classes/DiGraph":60,"../classes/Graph":61,"./classic":79,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":109}],83:[function(e,t,r){"use strict";function n(e,t){if(null!=t&&t.isDirected())throw new c.default("Directed Graph not supported");return a(e,t)}function a(e,t){var r=e.type,n=e.name,a=e.n,i=e.list,o=(0,f.emptyGraph)(a,t),s=o.nodes();if("adjacencylist"===r){if(i.length!==a)throw new c.default("invalid graphDescription");s.forEach(function(e){(0,d.forEach)(i[e],function(t){return o.addEdge(t-1,e)})})}else"edgelist"===r&&(0,d.forEach)(i,function(e){var t=u(e,2),r=t[0],n=t[1];if(r-=1,n-=1,r<0||r>a-1||n<0||n>a-1)throw new c.default("invalid graphDescription");o.addEdge(r,n)});return o.name=n,o}function i(e){return n({type:"adjacencylist",name:"Bull Graph",n:5,list:[[2,3],[1,3,4],[1,2,5],[2],[3]]},e)}function o(e){return n({type:"adjacencylist",name:"Krackhardt Kite Social Network",n:10,list:[[2,3,4,6],[1,4,5,7],[1,4,6],[1,2,3,5,6,7],[2,4,7],[1,3,4,7,8],[2,4,5,6,8],[6,7,9],[8,10],[9]]},e)}var u=e("babel-runtime/helpers/sliced-to-array").default,s=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.makeSmallUndirectedGraph=n,r.makeSmallGraph=a,r.bullGraph=i,r.krackhardtKiteGraph=o;var l=e("../exceptions/JSNetworkXError"),c=s(l),f=e("./classic"),d=e("../_internals")},{"../_internals":20,"../exceptions/JSNetworkXError":73,"./classic":79,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/sliced-to-array":111}],84:[function(e,t,r){"use strict";function n(){var e=new s.default;return e.addNodesFrom((0,c.default)(34)),e.name="Zachary's Karate Club",["0 1 1 1 1 1 1 1 1 0 1 1 1 1 0 0 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0","1 0 1 1 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0","1 1 0 1 0 0 0 1 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1 0","1 1 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1","0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1","1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1","0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1","1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1","1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 1","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0 0","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1","0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1","0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 1","0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1","1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 1 1","0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 1 0 1 0 1 1 0 0 0 0 0 1 1 1 0 1","0 0 0 0 0 0 0 0 1 1 0 0 0 1 1 1 0 0 1 1 1 0 1 1 0 0 1 1 1 1 1 1 1 0"].forEach(function(t,r){t.split(" ").forEach(function(t,n){"1"===t&&e.addEdge(r,n)})}),e.addNodesFrom([0,1,2,3,4,5,6,7,8,10,11,12,13,16,17,19,21],{club:"Mr. Hi"}),e.addNodesFrom([9,14,15,18,20,22,23,24,25,26,27,28,29,30,31,32,33],{club:"Officer"}),e}function a(){var e=new s.default;return e.addNodesFrom(["Evelyn Jefferson","Laura Mandeville","Theresa Anderson","Brenda Rogers","Charlotte McDowd","Frances Anderson","Eleanor Nye","Pearl Oglethorpe","Ruth DeSand","Verne Sanderson","Myra Liddel","Katherina Rogers","Sylvia Avondale","Nora Fayette","Helen Lloyd","Dorothy Murchison","Olivia Carleton","Flora Price"],{bipartite:0}),e.addNodesFrom(["E1","E2","E3","E4","E5","E6","E7","E8","E9","E10","E11","E12","E13","E14"],{bipartite:1}),e.add_edges_from([["Evelyn Jefferson","E1"],["Evelyn Jefferson","E2"],["Evelyn Jefferson","E3"],["Evelyn Jefferson","E4"],["Evelyn Jefferson","E5"],["Evelyn Jefferson","E6"],["Evelyn Jefferson","E8"],["Evelyn Jefferson","E9"],["Laura Mandeville","E1"],["Laura Mandeville","E2"],["Laura Mandeville","E3"],["Laura Mandeville","E5"],["Laura Mandeville","E6"],["Laura Mandeville","E7"],["Laura Mandeville","E8"],["Theresa Anderson","E2"],["Theresa Anderson","E3"],["Theresa Anderson","E4"],["Theresa Anderson","E5"],["Theresa Anderson","E6"],["Theresa Anderson","E7"],["Theresa Anderson","E8"],["Theresa Anderson","E9"],["Brenda Rogers","E1"],["Brenda Rogers","E3"],["Brenda Rogers","E4"],["Brenda Rogers","E5"],["Brenda Rogers","E6"],["Brenda Rogers","E7"],["Brenda Rogers","E8"],["Charlotte McDowd","E3"],["Charlotte McDowd","E4"],["Charlotte McDowd","E5"],["Charlotte McDowd","E7"],["Frances Anderson","E3"],["Frances Anderson","E5"],["Frances Anderson","E6"],["Frances Anderson","E8"],["Eleanor Nye","E5"],["Eleanor Nye","E6"],["Eleanor Nye","E7"],["Eleanor Nye","E8"],["Pearl Oglethorpe","E6"],["Pearl Oglethorpe","E8"],["Pearl Oglethorpe","E9"],["Ruth DeSand","E5"],["Ruth DeSand","E7"],["Ruth DeSand","E8"],["Ruth DeSand","E9"],["Verne Sanderson","E7"],["Verne Sanderson","E8"],["Verne Sanderson","E9"],["Verne Sanderson","E12"],["Myra Liddel","E8"],["Myra Liddel","E9"],["Myra Liddel","E10"],["Myra Liddel","E12"],["Katherina Rogers","E8"],["Katherina Rogers","E9"],["Katherina Rogers","E10"],["Katherina Rogers","E12"],["Katherina Rogers","E13"],["Katherina Rogers","E14"],["Sylvia Avondale","E7"],["Sylvia Avondale","E8"],["Sylvia Avondale","E9"],["Sylvia Avondale","E10"],["Sylvia Avondale","E12"],["Sylvia Avondale","E13"],["Sylvia Avondale","E14"],["Nora Fayette","E6"],["Nora Fayette","E7"],["Nora Fayette","E9"],["Nora Fayette","E10"],["Nora Fayette","E11"],["Nora Fayette","E12"],["Nora Fayette","E13"],["Nora Fayette","E14"],["Helen Lloyd","E7"],["Helen Lloyd","E8"],["Helen Lloyd","E10"],["Helen Lloyd","E11"],["Helen Lloyd","E12"],["Dorothy Murchison","E8"],["Dorothy Murchison","E9"],["Olivia Carleton","E9"],["Olivia Carleton","E11"],["Flora Price","E9"],["Flora Price","E11"]]),e}function i(){var e=new s.default;return e.addEdge("Acciaiuoli","Medici"),e.addEdge("Castellani","Peruzzi"),e.addEdge("Castellani","Strozzi"),e.addEdge("Castellani","Barbadori"),e.addEdge("Medici","Barbadori"),e.addEdge("Medici","Ridolfi"),e.addEdge("Medici","Tornabuoni"),e.addEdge("Medici","Albizzi"),e.addEdge("Medici","Salviati"),e.addEdge("Salviati","Pazzi"),e.addEdge("Peruzzi","Strozzi"),e.addEdge("Peruzzi","Bischeri"),e.addEdge("Strozzi","Ridolfi"),e.addEdge("Strozzi","Bischeri"),e.addEdge("Ridolfi","Tornabuoni"),e.addEdge("Tornabuoni","Guadagni"),e.addEdge("Albizzi","Ginori"),e.addEdge("Albizzi","Guadagni"),e.addEdge("Bischeri","Guadagni"),e.addEdge("Guadagni","Lamberteschi"),e}var o=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.karateClubGraph=n,r.davisSouthernWomenGraph=a,r.florentineFamiliesGraph=i;var u=e("../classes/Graph"),s=o(u),l=e("../_internals/range"),c=o(l)},{"../_internals/range":35,"../classes/Graph":61,"babel-runtime/helpers/interop-require-default":109}],85:[function(e,t,r){"use strict";var n=e("babel-runtime/core-js/array/from").default,a=e("babel-runtime/helpers/interop-require-wildcard").default,i=e("babel-runtime/helpers/interop-require-default").default,o=e("babel-runtime/helpers/defaults").default,u=e("babel-runtime/helpers/interop-export-wildcard").default;Object.defineProperty(r,"__esModule",{value:!0});var s=e("./algorithms"),l=a(s),c=e("./classes"),f=a(c),d=e("./convert"),h=a(d),p=e("./drawing"),v=a(p),b=e("./exceptions"),g=a(b),y=e("./generators"),m=a(y),w=e("./relabel"),x=a(w),j=e("./_internals/Map"),k=i(j),E=e("./_internals/Set"),_=i(E),$=e("./_internals/forEach"),S=i($);r.Map=k.default,r.Set=_.default,r.forEach=S.default,r.algorithms=l,r.classes=f,r.convert=h,r.drawing=v,r.exceptions=g,r.generators=m,r.relabel=x;var M=n;r.toArray=M,o(r,u(s,o)),o(r,u(c,o)),o(r,u(d,o)),o(r,u(p,o)),o(r,u(e("./contrib/observer"),o)),o(r,u(b,o)),o(r,u(y,o)),o(r,u(w,o))},{"./_internals/Map":3,"./_internals/Set":5,"./_internals/forEach":14,"./algorithms":50,"./classes":65,"./contrib/observer":67,"./convert":69,"./drawing":70,"./exceptions":78,"./generators":81,"./relabel":87,"babel-runtime/core-js/array/from":88,"babel-runtime/helpers/defaults":104,"babel-runtime/helpers/interop-export-wildcard":108,"babel-runtime/helpers/interop-require-default":109,"babel-runtime/helpers/interop-require-wildcard":110}],86:[function(e,t,r){(function(n){"use strict";function a(){n.document||(n.onmessage=function(e){var t=e.data.args.map(o.deserialize),r=s.default.methodLookupFunction(e.data.method).apply(null,t);n.postMessage((0,o.serialize)(r)),n.close()})}var i=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=a;var o=e("./_internals/message"),u=e("./WorkerSettings"),s=i(u);t.exports=r.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./WorkerSettings":1,"./_internals/message":32,"babel-runtime/helpers/interop-require-default":109}],87:[function(e,t,r){"use strict";function n(e,t){var r=arguments.length<=2||void 0===arguments[2]||arguments[2],n=t;return"function"!=typeof t?(0,h.isMap)(n)||(n=new h.Map(n)):n=new h.Map((0,h.mapIterator)(e.nodesIter(),function(e){return(0,h.tuple2)(e,t(e))})),r?i(e,n):a(e,n)}function a(e,t){var r,n=new h.Set(t.keys());if((0,h.someIterator)(t.values(),function(e){return n.has(e)})){var a=new f.default(t);a.removeEdgesFrom(a.selfloopEdges());try{r=(0,h.topologicalSort)(a)}catch(e){if(e instanceof d.JSNetworkXUnfeasible)throw new d.JSNetworkXUnfeasible("The node label sets are overlapping and no ordering can resolve the mapping. Use copy=True.")}r.reverse()}else r=n.values();var i,o=e.isMultigraph(),u=e.isDirected();return(0,h.forEach)(r,function(r){var n;if(t.has(r)){if(n=t.get(r),!e.hasNode(r))throw new d.JSNetworkXError((0,h.sprintf)("Node %j is not in the graph.",r));e.addNode(n,e.node.get(r)),o?(i=e.edges(r,!0,!0).map(function(e){return(0,h.tuple4c)(n,e[1],e[2],e[3],e)}),u&&(i=i.concat(e.inEdges(r,!0,!0).map(function(e){return(0,h.tuple4c)(e[0],n,e[2],e[3],e)})))):(i=e.edges(r,!0).map(function(e){return(0,h.tuple3c)(n,e[1],e[2],e)}),u&&(i=i.concat(e.inEdges(r,!0).map(function(e){return(0,h.tuple3c)(e[0],n,e[2],e)})))),e.removeNode(r),e.addEdgesFrom(i)}}),e}function i(e,t){var r=new e.constructor;return r.name="("+e.name+")",e.isMultigraph()?r.addEdgesFrom((0,h.mapIterator)(e.edgesIter(null,!0,!0),function(e){return(0,h.tuple4c)(t.has(e[0])?t.get(e[0]):e[0],t.has(e[1])?t.get(e[1]):e[1],e[2],(0,h.clone)(e[3]),e)})):r.addEdgesFrom((0,h.mapIterator)(e.edgesIter(null,!0),function(e){return(0,h.tuple3c)(t.has(e[0])?t.get(e[0]):e[0],t.has(e[1])?t.get(e[1]):e[1],(0,h.clone)(e[3]),e)})),e.node.forEach(function(e,n){return r.addNode(t.has(n)?t.get(n):n,(0,h.clone)(e))}),u(r.graph,(0,h.clone)(e.graph)),r}function o(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1],r=arguments.length<=2||void 0===arguments[2]?"default":arguments[2],a=arguments.length<=3||void 0===arguments[3]||arguments[3];switch("boolean"==typeof r&&(a=r,r="default"),typeof t){case"string":r=t,t=0;break;case"boolean":a=t,t=0}var i,o,u,l,c,f=new h.Map;switch(r){case"default":for(i=e.nodes(),u=0,l=t,c=i.length;u<c;u++,l++)f.set(i[u],l);break;case"sorted":for(i=e.nodes(),i.sort(),u=0,l=t,c=i.length;u<c;u++,l++)f.set(i[u],l);break;case"increasing degree":for(o=s(e.degreeIter()),o.sort(function(e,t){return e[1]-t[1]}),u=0,l=t,c=o.length;u<c;u++,l++)f.set(o[u][0],l);break;case"decreasing degree":for(o=s(e.degreeIter()),o.sort(function(e,t){return t[1]-e[1]}),u=0,l=t,c=o.length;u<c;u++,l++)f.set(o[u][0],l);break;default:throw new d.JSNetworkXError((0,h.sprintf)('Unkown node ordering: "%s"',r))}var p=n(e,f);return p.name="("+e.name+")WithIntLabels",a||(p.nodeLabels=f),p}var u=e("babel-runtime/core-js/object/assign").default,s=e("babel-runtime/core-js/array/from").default,l=e("babel-runtime/helpers/interop-require-default").default;Object.defineProperty(r,"__esModule",{value:!0}),r.relabelNodes=n,r.convertNodeLabelsToIntegers=o;var c=e("./classes/DiGraph"),f=l(c),d=e("./exceptions"),h=e("./_internals")},{"./_internals":20,"./classes/DiGraph":60,"./exceptions":78,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/object/assign":92,"babel-runtime/helpers/interop-require-default":109}],88:[function(e,t,r){t.exports={default:e("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":114}],89:[function(e,t,r){t.exports={default:e("core-js/library/fn/get-iterator"),__esModule:!0}},{"core-js/library/fn/get-iterator":115}],90:[function(e,t,r){t.exports={default:e("core-js/library/fn/is-iterable"),__esModule:!0}},{"core-js/library/fn/is-iterable":116}],91:[function(e,t,r){t.exports={default:e("core-js/library/fn/map"),__esModule:!0}},{"core-js/library/fn/map":117}],92:[function(e,t,r){t.exports={default:e("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":118}],93:[function(e,t,r){t.exports={default:e("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":119}],94:[function(e,t,r){t.exports={default:e("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":120}],95:[function(e,t,r){t.exports={default:e("core-js/library/fn/object/get-own-property-descriptor"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-descriptor":121}],96:[function(e,t,r){t.exports={default:e("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":122}],97:[function(e,t,r){t.exports={default:e("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":123}],98:[function(e,t,r){t.exports={default:e("core-js/library/fn/object/set-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/set-prototype-of":124}],99:[function(e,t,r){t.exports={default:e("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":125}],100:[function(e,t,r){t.exports={default:e("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":126}],101:[function(e,t,r){t.exports={default:e("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":127}],102:[function(e,t,r){"use strict";r.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},r.__esModule=!0},{}],103:[function(e,t,r){"use strict";var n=e("babel-runtime/core-js/object/define-property").default;r.default=function(){function e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),n(e,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),r.__esModule=!0},{"babel-runtime/core-js/object/define-property":94}],104:[function(e,t,r){"use strict";var n=e("babel-runtime/core-js/object/get-own-property-names").default,a=e("babel-runtime/core-js/object/get-own-property-descriptor").default,i=e("babel-runtime/core-js/object/define-property").default;r.default=function(e,t){for(var r=n(t),o=0;o<r.length;o++){var u=r[o],s=a(t,u);s&&s.configurable&&void 0===e[u]&&i(e,u,s)}return e},r.__esModule=!0},{"babel-runtime/core-js/object/define-property":94,"babel-runtime/core-js/object/get-own-property-descriptor":95,"babel-runtime/core-js/object/get-own-property-names":96}],105:[function(e,t,r){"use strict";var n=e("babel-runtime/core-js/object/define-property").default;r.default=function(e,t,r){return t in e?n(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},r.__esModule=!0},{"babel-runtime/core-js/object/define-property":94}],106:[function(e,t,r){"use strict";var n=e("babel-runtime/core-js/object/get-own-property-descriptor").default;r.default=function(e,t,r){for(var a=!0;a;){var i=e,o=t,u=r;a=!1,null===i&&(i=Function.prototype);var s=n(i,o);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(u)}var c=Object.getPrototypeOf(i);if(null===c)return;e=c,t=o,r=u,a=!0,s=c=void 0}},r.__esModule=!0},{"babel-runtime/core-js/object/get-own-property-descriptor":95}],107:[function(e,t,r){"use strict";var n=e("babel-runtime/core-js/object/create").default,a=e("babel-runtime/core-js/object/set-prototype-of").default;r.default=function(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=n(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(a?a(e,t):e.__proto__=t)},r.__esModule=!0},{"babel-runtime/core-js/object/create":93,"babel-runtime/core-js/object/set-prototype-of":98}],108:[function(e,t,r){"use strict";r.default=function(e,t){var r=t({},e);return delete r.default,r},r.__esModule=!0},{}],109:[function(e,t,r){"use strict";r.default=function(e){return e&&e.__esModule?e:{default:e}},r.__esModule=!0},{}],110:[function(e,t,r){"use strict";r.default=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},r.__esModule=!0},{}],111:[function(e,t,r){"use strict";var n=e("babel-runtime/core-js/get-iterator").default,a=e("babel-runtime/core-js/is-iterable").default;r.default=function(){function e(e,t){var r=[],a=!0,i=!1,o=void 0;try{for(var u,s=n(e);!(a=(u=s.next()).done)&&(r.push(u.value),!t||r.length!==t);a=!0);}catch(e){i=!0,o=e}finally{try{!a&&s.return&&s.return()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t))return t;if(a(Object(t)))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r.__esModule=!0},{"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/is-iterable":90}],112:[function(e,t,r){(function(r){var n="object"==typeof r?r:"object"==typeof window?window:"object"==typeof self?self:this,a=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=a&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=e("./runtime"),a)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(e){n.regeneratorRuntime=void 0}t.exports={default:t.exports,__esModule:!0}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./runtime":113}],
113:[function(e,t,r){(function(r,n){"use strict";var a=e("babel-runtime/core-js/symbol").default,i=e("babel-runtime/core-js/object/create").default,o=e("babel-runtime/core-js/object/set-prototype-of").default,u=e("babel-runtime/core-js/promise").default;!function(e){function n(e,t,r,n){var a=i((t||l).prototype),o=new y(n||[]);return a._invoke=v(e,r,o),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function l(){}function c(){}function f(){}function d(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function h(e){this.arg=e}function p(e){function t(r,n,a,i){var o=s(e[r],e,n);if("throw"!==o.type){var l=o.arg,c=l.value;return c instanceof h?u.resolve(c.arg).then(function(e){t("next",e,a,i)},function(e){t("throw",e,a,i)}):u.resolve(c).then(function(e){l.value=e,a(l)},i)}i(o.arg)}function n(e,r){function n(){return new u(function(n,a){t(e,r,n,a)})}return a=a?a.then(n,n):n()}"object"==typeof r&&r.domain&&(t=r.domain.bind(t));var a;this._invoke=n}function v(e,t,r){var n=M;return function(a,i){if(n===P)throw new Error("Generator is already running");if(n===I){if("throw"===a)throw i;return w()}for(;;){var o=r.delegate;if(o){if("return"===a||"throw"===a&&o.iterator[a]===x){r.delegate=null;var u=o.iterator.return;if(u){var l=s(u,o.iterator,i);if("throw"===l.type){a="throw",i=l.arg;continue}}if("return"===a)continue}var l=s(o.iterator[a],o.iterator,i);if("throw"===l.type){r.delegate=null,a="throw",i=l.arg;continue}a="next",i=x;var c=l.arg;if(!c.done)return n=O,c;r[o.resultName]=c.value,r.next=o.nextLoc,r.delegate=null}if("next"===a)r.sent=n===O?i:x;else if("throw"===a){if(n===M)throw n=I,i;r.dispatchException(i)&&(a="next",i=x)}else"return"===a&&r.abrupt("return",i);n=P;var l=s(e,t,r);if("normal"===l.type){n=r.done?I:O;var c={value:l.arg,done:r.done};if(l.arg!==N)return c;r.delegate&&"next"===a&&(i=x)}else"throw"===l.type&&(n=I,a="throw",i=l.arg)}}}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function g(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function y(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function m(e){if(e){var t=e[E];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(j.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=x,t.done=!0,t};return n.next=n}}return{next:w}}function w(){return{value:x,done:!0}}var x,j=Object.prototype.hasOwnProperty,k="function"==typeof a?a:{},E=k.iterator||"@@iterator",_=k.toStringTag||"@@toStringTag",$="object"==typeof t,S=e.regeneratorRuntime;if(S)return void($&&(t.exports=S));S=e.regeneratorRuntime=$?t.exports:{},S.wrap=n;var M="suspendedStart",O="suspendedYield",P="executing",I="completed",N={},A=f.prototype=l.prototype;c.prototype=A.constructor=f,f.constructor=c,f[_]=c.displayName="GeneratorFunction",S.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===c||"GeneratorFunction"===(t.displayName||t.name))},S.mark=function(e){return o?o(e,f):(e.__proto__=f,_ in e||(e[_]="GeneratorFunction")),e.prototype=i(A),e},S.awrap=function(e){return new h(e)},d(p.prototype),S.async=function(e,t,r,a){var i=new p(n(e,t,r,a));return S.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},d(A),A[E]=function(){return this},A[_]="Generator",A.toString=function(){return"[object Generator]"},S.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},S.values=m,y.prototype={constructor:y,reset:function(e){if(this.prev=0,this.next=0,this.sent=x,this.done=!1,this.delegate=null,this.tryEntries.forEach(g),!e)for(var t in this)"t"===t.charAt(0)&&j.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=x)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,n){return i.type="throw",i.arg=e,r.next=t,!!n}if(this.done)throw e;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n],i=a.completion;if("root"===a.tryLoc)return t("end");if(a.tryLoc<=this.prev){var o=j.call(a,"catchLoc"),u=j.call(a,"finallyLoc");if(o&&u){if(this.prev<a.catchLoc)return t(a.catchLoc,!0);if(this.prev<a.finallyLoc)return t(a.finallyLoc)}else if(o){if(this.prev<a.catchLoc)return t(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return t(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&j.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?this.next=a.finallyLoc:this.complete(i),N},complete:function(e,t){if("throw"===e.type)throw e.arg;"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=e.arg,this.next="end"):"normal"===e.type&&t&&(this.next=t)},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),g(r),N}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;g(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:m(e),resultName:t,nextLoc:r},N}}}("object"==typeof n?n:"object"==typeof window?window:"object"==typeof self?self:void 0)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:276,"babel-runtime/core-js/object/create":93,"babel-runtime/core-js/object/set-prototype-of":98,"babel-runtime/core-js/promise":99,"babel-runtime/core-js/symbol":100}],114:[function(e,t,r){e("../../modules/es6.string.iterator"),e("../../modules/es6.array.from"),t.exports=e("../../modules/$.core").Array.from},{"../../modules/$.core":136,"../../modules/es6.array.from":188,"../../modules/es6.string.iterator":198}],115:[function(e,t,r){e("../modules/web.dom.iterable"),e("../modules/es6.string.iterator"),t.exports=e("../modules/core.get-iterator")},{"../modules/core.get-iterator":186,"../modules/es6.string.iterator":198,"../modules/web.dom.iterable":201}],116:[function(e,t,r){e("../modules/web.dom.iterable"),e("../modules/es6.string.iterator"),t.exports=e("../modules/core.is-iterable")},{"../modules/core.is-iterable":187,"../modules/es6.string.iterator":198,"../modules/web.dom.iterable":201}],117:[function(e,t,r){e("../modules/es6.object.to-string"),e("../modules/es6.string.iterator"),e("../modules/web.dom.iterable"),e("../modules/es6.map"),e("../modules/es7.map.to-json"),t.exports=e("../modules/$.core").Map},{"../modules/$.core":136,"../modules/es6.map":190,"../modules/es6.object.to-string":196,"../modules/es6.string.iterator":198,"../modules/es7.map.to-json":200,"../modules/web.dom.iterable":201}],118:[function(e,t,r){e("../../modules/es6.object.assign"),t.exports=e("../../modules/$.core").Object.assign},{"../../modules/$.core":136,"../../modules/es6.object.assign":191}],119:[function(e,t,r){var n=e("../../modules/$");t.exports=function(e,t){return n.create(e,t)}},{"../../modules/$":161}],120:[function(e,t,r){var n=e("../../modules/$");t.exports=function(e,t,r){return n.setDesc(e,t,r)}},{"../../modules/$":161}],121:[function(e,t,r){var n=e("../../modules/$");e("../../modules/es6.object.get-own-property-descriptor"),t.exports=function(e,t){return n.getDesc(e,t)}},{"../../modules/$":161,"../../modules/es6.object.get-own-property-descriptor":192}],122:[function(e,t,r){var n=e("../../modules/$");e("../../modules/es6.object.get-own-property-names"),t.exports=function(e){return n.getNames(e)}},{"../../modules/$":161,"../../modules/es6.object.get-own-property-names":193}],123:[function(e,t,r){e("../../modules/es6.object.keys"),t.exports=e("../../modules/$.core").Object.keys},{"../../modules/$.core":136,"../../modules/es6.object.keys":194}],124:[function(e,t,r){e("../../modules/es6.object.set-prototype-of"),t.exports=e("../../modules/$.core").Object.setPrototypeOf},{"../../modules/$.core":136,"../../modules/es6.object.set-prototype-of":195}],125:[function(e,t,r){e("../modules/es6.object.to-string"),e("../modules/es6.string.iterator"),e("../modules/web.dom.iterable"),e("../modules/es6.promise"),t.exports=e("../modules/$.core").Promise},{"../modules/$.core":136,"../modules/es6.object.to-string":196,"../modules/es6.promise":197,"../modules/es6.string.iterator":198,"../modules/web.dom.iterable":201}],126:[function(e,t,r){e("../../modules/es6.symbol"),e("../../modules/es6.object.to-string"),t.exports=e("../../modules/$.core").Symbol},{"../../modules/$.core":136,"../../modules/es6.object.to-string":196,"../../modules/es6.symbol":199}],127:[function(e,t,r){e("../../modules/es6.string.iterator"),e("../../modules/web.dom.iterable"),t.exports=e("../../modules/$.wks")("iterator")},{"../../modules/$.wks":184,"../../modules/es6.string.iterator":198,"../../modules/web.dom.iterable":201}],128:[function(e,t,r){t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],129:[function(e,t,r){t.exports=function(){}},{}],130:[function(e,t,r){var n=e("./$.is-object");t.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},{"./$.is-object":154}],131:[function(e,t,r){var n=e("./$.cof"),a=e("./$.wks")("toStringTag"),i="Arguments"==n(function(){return arguments}());t.exports=function(e){var t,r,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=(t=Object(e))[a])?r:i?n(t):"Object"==(o=n(t))&&"function"==typeof t.callee?"Arguments":o}},{"./$.cof":132,"./$.wks":184}],132:[function(e,t,r){var n={}.toString;t.exports=function(e){return n.call(e).slice(8,-1)}},{}],133:[function(e,t,r){"use strict";var n=e("./$"),a=e("./$.hide"),i=e("./$.redefine-all"),o=e("./$.ctx"),u=e("./$.strict-new"),s=e("./$.defined"),l=e("./$.for-of"),c=e("./$.iter-define"),f=e("./$.iter-step"),d=e("./$.uid")("id"),h=e("./$.has"),p=e("./$.is-object"),v=e("./$.set-species"),b=e("./$.descriptors"),g=Object.isExtensible||p,y=b?"_s":"size",m=0,w=function(e,t){if(!p(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!h(e,d)){if(!g(e))return"F";if(!t)return"E";a(e,d,++m)}return"O"+e[d]},x=function(e,t){var r,n=w(t);if("F"!==n)return e._i[n];for(r=e._f;r;r=r.n)if(r.k==t)return r};t.exports={getConstructor:function(e,t,r,a){var c=e(function(e,i){u(e,c,t),e._i=n.create(null),e._f=void 0,e._l=void 0,e[y]=0,void 0!=i&&l(i,r,e[a],e)});return i(c.prototype,{clear:function(){for(var e=this,t=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete t[r.i];e._f=e._l=void 0,e[y]=0},delete:function(e){var t=this,r=x(t,e);if(r){var n=r.n,a=r.p;delete t._i[r.i],r.r=!0,a&&(a.n=n),n&&(n.p=a),t._f==r&&(t._f=n),t._l==r&&(t._l=a),t[y]--}return!!r},forEach:function(e){for(var t,r=o(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(r(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!x(this,e)}}),b&&n.setDesc(c.prototype,"size",{get:function(){return s(this[y])}}),c},def:function(e,t,r){var n,a,i=x(e,t);return i?i.v=r:(e._l=i={i:a=w(t,!0),k:t,v:r,p:n=e._l,n:void 0,r:!1},e._f||(e._f=i),n&&(n.n=i),e[y]++,"F"!==a&&(e._i[a]=i)),e},getEntry:x,setStrong:function(e,t,r){c(e,t,function(e,t){this._t=e,this._k=t,this._l=void 0},function(){for(var e=this,t=e._k,r=e._l;r&&r.r;)r=r.p;return e._t&&(e._l=r=r?r.n:e._t._f)?"keys"==t?f(0,r.k):"values"==t?f(0,r.v):f(0,[r.k,r.v]):(e._t=void 0,f(1))},r?"entries":"values",!r,!0),v(t)}}},{"./$":161,"./$.ctx":137,"./$.defined":138,"./$.descriptors":139,"./$.for-of":144,"./$.has":147,"./$.hide":148,"./$.is-object":154,"./$.iter-define":157,"./$.iter-step":159,"./$.redefine-all":168,"./$.set-species":172,"./$.strict-new":176,"./$.uid":183}],134:[function(e,t,r){var n=e("./$.for-of"),a=e("./$.classof");t.exports=function(e){return function(){if(a(this)!=e)throw TypeError(e+"#toJSON isn't generic");var t=[];return n(this,!1,t.push,t),t}}},{"./$.classof":131,"./$.for-of":144}],135:[function(e,t,r){"use strict";var n=e("./$"),a=e("./$.global"),i=e("./$.export"),o=e("./$.fails"),u=e("./$.hide"),s=e("./$.redefine-all"),l=e("./$.for-of"),c=e("./$.strict-new"),f=e("./$.is-object"),d=e("./$.set-to-string-tag"),h=e("./$.descriptors");t.exports=function(e,t,r,p,v,b){var g=a[e],y=g,m=v?"set":"add",w=y&&y.prototype,x={};return h&&"function"==typeof y&&(b||w.forEach&&!o(function(){(new y).entries().next()}))?(y=t(function(t,r){c(t,y,e),t._c=new g,void 0!=r&&l(r,v,t[m],t)}),n.each.call("add,clear,delete,forEach,get,has,set,keys,values,entries".split(","),function(e){var t="add"==e||"set"==e;e in w&&(!b||"clear"!=e)&&u(y.prototype,e,function(r,n){if(!t&&b&&!f(r))return"get"==e&&void 0;var a=this._c[e](0===r?0:r,n);return t?this:a})}),"size"in w&&n.setDesc(y.prototype,"size",{get:function(){return this._c.size}})):(y=p.getConstructor(t,e,v,m),s(y.prototype,r)),d(y,e),x[e]=y,i(i.G+i.W+i.F,x),b||p.setStrong(y,e,v),y}},{"./$":161,"./$.descriptors":139,"./$.export":142,"./$.fails":143,"./$.for-of":144,"./$.global":146,"./$.hide":148,"./$.is-object":154,"./$.redefine-all":168,"./$.set-to-string-tag":173,"./$.strict-new":176}],136:[function(e,t,r){var n=t.exports={version:"1.2.6"};"number"==typeof __e&&(__e=n)},{}],137:[function(e,t,r){var n=e("./$.a-function");t.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}}},{"./$.a-function":128}],138:[function(e,t,r){t.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},{}],139:[function(e,t,r){t.exports=!e("./$.fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./$.fails":143}],140:[function(e,t,r){var n=e("./$.is-object"),a=e("./$.global").document,i=n(a)&&n(a.createElement);t.exports=function(e){return i?a.createElement(e):{}}},{"./$.global":146,"./$.is-object":154}],141:[function(e,t,r){var n=e("./$");t.exports=function(e){var t=n.getKeys(e),r=n.getSymbols;if(r)for(var a,i=r(e),o=n.isEnum,u=0;i.length>u;)o.call(e,a=i[u++])&&t.push(a);return t}},{"./$":161}],142:[function(e,t,r){var n=e("./$.global"),a=e("./$.core"),i=e("./$.ctx"),o=function(e,t,r){var u,s,l,c=e&o.F,f=e&o.G,d=e&o.S,h=e&o.P,p=e&o.B,v=e&o.W,b=f?a:a[t]||(a[t]={}),g=f?n:d?n[t]:(n[t]||{}).prototype;f&&(r=t);for(u in r)(s=!c&&g&&u in g)&&u in b||(l=s?g[u]:r[u],b[u]=f&&"function"!=typeof g[u]?r[u]:p&&s?i(l,n):v&&g[u]==l?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t.prototype=e.prototype,t}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((b.prototype||(b.prototype={}))[u]=l))};o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,t.exports=o},{"./$.core":136,"./$.ctx":137,"./$.global":146}],143:[function(e,t,r){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],144:[function(e,t,r){var n=e("./$.ctx"),a=e("./$.iter-call"),i=e("./$.is-array-iter"),o=e("./$.an-object"),u=e("./$.to-length"),s=e("./core.get-iterator-method");t.exports=function(e,t,r,l){var c,f,d,h=s(e),p=n(r,l,t?2:1),v=0;if("function"!=typeof h)throw TypeError(e+" is not iterable!");if(i(h))for(c=u(e.length);c>v;v++)t?p(o(f=e[v])[0],f[1]):p(e[v]);else for(d=h.call(e);!(f=d.next()).done;)a(d,p,f.value,t)}},{"./$.an-object":130,"./$.ctx":137,"./$.is-array-iter":152,"./$.iter-call":155,"./$.to-length":181,"./core.get-iterator-method":185}],145:[function(e,t,r){var n=e("./$.to-iobject"),a=e("./$").getNames,i={}.toString,o="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return a(e)}catch(e){return o.slice()}};t.exports.get=function(e){return o&&"[object Window]"==i.call(e)?u(e):a(n(e))}},{"./$":161,"./$.to-iobject":180}],146:[function(e,t,r){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],147:[function(e,t,r){var n={}.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}},{}],148:[function(e,t,r){var n=e("./$"),a=e("./$.property-desc");t.exports=e("./$.descriptors")?function(e,t,r){return n.setDesc(e,t,a(1,r))}:function(e,t,r){return e[t]=r,e}},{"./$":161,"./$.descriptors":139,"./$.property-desc":167}],149:[function(e,t,r){t.exports=e("./$.global").document&&document.documentElement},{"./$.global":146}],150:[function(e,t,r){t.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},{}],151:[function(e,t,r){var n=e("./$.cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},{"./$.cof":132}],152:[function(e,t,r){var n=e("./$.iterators"),a=e("./$.wks")("iterator"),i=Array.prototype;t.exports=function(e){return void 0!==e&&(n.Array===e||i[a]===e)}},{"./$.iterators":160,"./$.wks":184}],153:[function(e,t,r){var n=e("./$.cof");t.exports=Array.isArray||function(e){return"Array"==n(e)}},{"./$.cof":132}],154:[function(e,t,r){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],155:[function(e,t,r){var n=e("./$.an-object");t.exports=function(e,t,r,a){try{return a?t(n(r)[0],r[1]):t(r)}catch(t){var i=e.return;throw void 0!==i&&n(i.call(e)),t}}},{"./$.an-object":130}],156:[function(e,t,r){"use strict";var n=e("./$"),a=e("./$.property-desc"),i=e("./$.set-to-string-tag"),o={};e("./$.hide")(o,e("./$.wks")("iterator"),function(){return this}),t.exports=function(e,t,r){e.prototype=n.create(o,{next:a(1,r)}),i(e,t+" Iterator")}},{"./$":161,"./$.hide":148,"./$.property-desc":167,"./$.set-to-string-tag":173,"./$.wks":184}],157:[function(e,t,r){"use strict";var n=e("./$.library"),a=e("./$.export"),i=e("./$.redefine"),o=e("./$.hide"),u=e("./$.has"),s=e("./$.iterators"),l=e("./$.iter-create"),c=e("./$.set-to-string-tag"),f=e("./$").getProto,d=e("./$.wks")("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(e,t,r,v,b,g,y){l(r,t,v);var m,w,x=function(e){if(!h&&e in _)return _[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},j=t+" Iterator",k="values"==b,E=!1,_=e.prototype,$=_[d]||_["@@iterator"]||b&&_[b],S=$||x(b);if($){var M=f(S.call(new e));c(M,j,!0),!n&&u(_,"@@iterator")&&o(M,d,p),k&&"values"!==$.name&&(E=!0,S=function(){return $.call(this)})}if(n&&!y||!h&&!E&&_[d]||o(_,d,S),s[t]=S,s[j]=p,b)if(m={values:k?S:x("values"),keys:g?S:x("keys"),entries:k?x("entries"):S},y)for(w in m)w in _||i(_,w,m[w]);else a(a.P+a.F*(h||E),t,m);return m}},{"./$":161,"./$.export":142,"./$.has":147,"./$.hide":148,"./$.iter-create":156,"./$.iterators":160,"./$.library":163,"./$.redefine":169,"./$.set-to-string-tag":173,"./$.wks":184}],158:[function(e,t,r){var n=e("./$.wks")("iterator"),a=!1;try{var i=[7][n]();i.return=function(){a=!0},Array.from(i,function(){throw 2})}catch(e){}t.exports=function(e,t){if(!t&&!a)return!1;var r=!1;try{var i=[7],o=i[n]();o.next=function(){return{done:r=!0}},i[n]=function(){return o},e(i)}catch(e){}return r}},{"./$.wks":184}],159:[function(e,t,r){t.exports=function(e,t){return{value:t,done:!!e}}},{}],160:[function(e,t,r){t.exports={}},{}],161:[function(e,t,r){var n=Object;t.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},{}],162:[function(e,t,r){var n=e("./$"),a=e("./$.to-iobject");t.exports=function(e,t){for(var r,i=a(e),o=n.getKeys(i),u=o.length,s=0;u>s;)if(i[r=o[s++]]===t)return r}},{"./$":161,"./$.to-iobject":180}],163:[function(e,t,r){t.exports=!0},{}],164:[function(e,t,r){var n,a,i,o=e("./$.global"),u=e("./$.task").set,s=o.MutationObserver||o.WebKitMutationObserver,l=o.process,c=o.Promise,f="process"==e("./$.cof")(l),d=function(){var e,t,r;for(f&&(e=l.domain)&&(l.domain=null,e.exit());n;)t=n.domain,r=n.fn,t&&t.enter(),r(),t&&t.exit(),n=n.next;a=void 0,e&&e.enter()};if(f)i=function(){l.nextTick(d)};else if(s){var h=1,p=document.createTextNode("");new s(d).observe(p,{characterData:!0}),i=function(){p.data=h=-h}}else i=c&&c.resolve?function(){c.resolve().then(d)}:function(){u.call(o,d)};t.exports=function(e){var t={fn:e,next:void 0,domain:f&&l.domain};a&&(a.next=t),n||(n=t,i()),a=t}},{"./$.cof":132,"./$.global":146,"./$.task":178}],165:[function(e,t,r){var n=e("./$"),a=e("./$.to-object"),i=e("./$.iobject");t.exports=e("./$.fails")(function(){var e=Object.assign,t={},r={},n=Symbol(),a="abcdefghijklmnopqrst";return t[n]=7,a.split("").forEach(function(e){r[e]=e}),7!=e({},t)[n]||Object.keys(e({},r)).join("")!=a})?function(e,t){for(var r=a(e),o=arguments,u=o.length,s=1,l=n.getKeys,c=n.getSymbols,f=n.isEnum;u>s;)for(var d,h=i(o[s++]),p=c?l(h).concat(c(h)):l(h),v=p.length,b=0;v>b;)f.call(h,d=p[b++])&&(r[d]=h[d]);return r}:Object.assign},{"./$":161,"./$.fails":143,"./$.iobject":151,"./$.to-object":182}],166:[function(e,t,r){var n=e("./$.export"),a=e("./$.core"),i=e("./$.fails");t.exports=function(e,t){var r=(a.Object||{})[e]||Object[e],o={};o[e]=t(r),n(n.S+n.F*i(function(){r(1)}),"Object",o)}},{"./$.core":136,"./$.export":142,"./$.fails":143}],167:[function(e,t,r){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],168:[function(e,t,r){var n=e("./$.redefine");t.exports=function(e,t){for(var r in t)n(e,r,t[r]);return e}},{"./$.redefine":169}],169:[function(e,t,r){t.exports=e("./$.hide")},{"./$.hide":148}],170:[function(e,t,r){t.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},{}],171:[function(e,t,r){var n=e("./$").getDesc,a=e("./$.is-object"),i=e("./$.an-object"),o=function(e,t){if(i(e),!a(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,r,a){try{a=e("./$.ctx")(Function.call,n(Object.prototype,"__proto__").set,2),a(t,[]),r=!(t instanceof Array)}catch(e){r=!0}return function(e,t){return o(e,t),r?e.__proto__=t:a(e,t),e}}({},!1):void 0),check:o}},{"./$":161,"./$.an-object":130,"./$.ctx":137,"./$.is-object":154}],172:[function(e,t,r){"use strict";var n=e("./$.core"),a=e("./$"),i=e("./$.descriptors"),o=e("./$.wks")("species");t.exports=function(e){var t=n[e];i&&t&&!t[o]&&a.setDesc(t,o,{configurable:!0,get:function(){return this}})}},{"./$":161,"./$.core":136,"./$.descriptors":139,"./$.wks":184}],173:[function(e,t,r){var n=e("./$").setDesc,a=e("./$.has"),i=e("./$.wks")("toStringTag");t.exports=function(e,t,r){e&&!a(e=r?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},{"./$":161,"./$.has":147,"./$.wks":184}],174:[function(e,t,r){var n=e("./$.global"),a=n["__core-js_shared__"]||(n["__core-js_shared__"]={});t.exports=function(e){return a[e]||(a[e]={})}},{"./$.global":146}],175:[function(e,t,r){var n=e("./$.an-object"),a=e("./$.a-function"),i=e("./$.wks")("species");t.exports=function(e,t){var r,o=n(e).constructor;return void 0===o||void 0==(r=n(o)[i])?t:a(r)}},{"./$.a-function":128,"./$.an-object":130,"./$.wks":184}],176:[function(e,t,r){t.exports=function(e,t,r){if(!(e instanceof t))throw TypeError(r+": use the 'new' operator!");return e}},{}],177:[function(e,t,r){var n=e("./$.to-integer"),a=e("./$.defined");t.exports=function(e){return function(t,r){var i,o,u=String(a(t)),s=n(r),l=u.length;return s<0||s>=l?e?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===l||(o=u.charCodeAt(s+1))<56320||o>57343?e?u.charAt(s):i:e?u.slice(s,s+2):o-56320+(i-55296<<10)+65536)}}},{"./$.defined":138,"./$.to-integer":179}],178:[function(e,t,r){var n,a,i,o=e("./$.ctx"),u=e("./$.invoke"),s=e("./$.html"),l=e("./$.dom-create"),c=e("./$.global"),f=c.process,d=c.setImmediate,h=c.clearImmediate,p=c.MessageChannel,v=0,b={},g=function(){var e=+this;if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},y=function(e){g.call(e.data)};d&&h||(d=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return b[++v]=function(){u("function"==typeof e?e:Function(e),t)},n(v),v},h=function(e){delete b[e]},"process"==e("./$.cof")(f)?n=function(e){f.nextTick(o(g,e,1))}:p?(a=new p,i=a.port2,a.port1.onmessage=y,n=o(i.postMessage,i,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(e){c.postMessage(e+"","*")},c.addEventListener("message",y,!1)):n="onreadystatechange"in l("script")?function(e){s.appendChild(l("script")).onreadystatechange=function(){s.removeChild(this),g.call(e)}}:function(e){setTimeout(o(g,e,1),0)}),t.exports={set:d,clear:h}},{"./$.cof":132,"./$.ctx":137,"./$.dom-create":140,"./$.global":146,"./$.html":149,"./$.invoke":150}],179:[function(e,t,r){var n=Math.ceil,a=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?a:n)(e)}},{}],180:[function(e,t,r){var n=e("./$.iobject"),a=e("./$.defined");t.exports=function(e){return n(a(e))}},{"./$.defined":138,"./$.iobject":151}],181:[function(e,t,r){var n=e("./$.to-integer"),a=Math.min;t.exports=function(e){return e>0?a(n(e),9007199254740991):0}},{"./$.to-integer":179}],182:[function(e,t,r){var n=e("./$.defined");t.exports=function(e){return Object(n(e))}},{"./$.defined":138}],183:[function(e,t,r){var n=0,a=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+a).toString(36))}},{}],184:[function(e,t,r){var n=e("./$.shared")("wks"),a=e("./$.uid"),i=e("./$.global").Symbol;t.exports=function(e){return n[e]||(n[e]=i&&i[e]||(i||a)("Symbol."+e))}},{"./$.global":146,"./$.shared":174,"./$.uid":183}],185:[function(e,t,r){var n=e("./$.classof"),a=e("./$.wks")("iterator"),i=e("./$.iterators");t.exports=e("./$.core").getIteratorMethod=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||i[n(e)]}},{"./$.classof":131,"./$.core":136,"./$.iterators":160,"./$.wks":184}],186:[function(e,t,r){var n=e("./$.an-object"),a=e("./core.get-iterator-method");t.exports=e("./$.core").getIterator=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return n(t.call(e))}},{"./$.an-object":130,"./$.core":136,"./core.get-iterator-method":185}],187:[function(e,t,r){var n=e("./$.classof"),a=e("./$.wks")("iterator"),i=e("./$.iterators");t.exports=e("./$.core").isIterable=function(e){var t=Object(e);return void 0!==t[a]||"@@iterator"in t||i.hasOwnProperty(n(t))}},{"./$.classof":131,"./$.core":136,"./$.iterators":160,"./$.wks":184}],188:[function(e,t,r){"use strict";var n=e("./$.ctx"),a=e("./$.export"),i=e("./$.to-object"),o=e("./$.iter-call"),u=e("./$.is-array-iter"),s=e("./$.to-length"),l=e("./core.get-iterator-method");a(a.S+a.F*!e("./$.iter-detect")(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,a,c,f=i(e),d="function"==typeof this?this:Array,h=arguments,p=h.length,v=p>1?h[1]:void 0,b=void 0!==v,g=0,y=l(f);if(b&&(v=n(v,p>2?h[2]:void 0,2)),void 0==y||d==Array&&u(y))for(t=s(f.length),r=new d(t);t>g;g++)r[g]=b?v(f[g],g):f[g];else for(c=y.call(f),r=new d;!(a=c.next()).done;g++)r[g]=b?o(c,v,[a.value,g],!0):a.value;return r.length=g,r}})},{"./$.ctx":137,"./$.export":142,"./$.is-array-iter":152,"./$.iter-call":155,"./$.iter-detect":158,"./$.to-length":181,"./$.to-object":182,"./core.get-iterator-method":185}],189:[function(e,t,r){"use strict";var n=e("./$.add-to-unscopables"),a=e("./$.iter-step"),i=e("./$.iterators"),o=e("./$.to-iobject");t.exports=e("./$.iter-define")(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,a(1)):"keys"==t?a(0,r):"values"==t?a(0,e[r]):a(0,[r,e[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},{"./$.add-to-unscopables":129,"./$.iter-define":157,"./$.iter-step":159,"./$.iterators":160,"./$.to-iobject":180}],190:[function(e,t,r){"use strict";var n=e("./$.collection-strong");e("./$.collection")("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=n.getEntry(this,e);return t&&t.v},set:function(e,t){return n.def(this,0===e?0:e,t)}},n,!0)},{"./$.collection":135,"./$.collection-strong":133}],191:[function(e,t,r){var n=e("./$.export");n(n.S+n.F,"Object",{assign:e("./$.object-assign")})},{"./$.export":142,"./$.object-assign":165}],192:[function(e,t,r){var n=e("./$.to-iobject");e("./$.object-sap")("getOwnPropertyDescriptor",function(e){return function(t,r){return e(n(t),r)}})},{"./$.object-sap":166,"./$.to-iobject":180}],193:[function(e,t,r){e("./$.object-sap")("getOwnPropertyNames",function(){return e("./$.get-names").get})},{"./$.get-names":145,"./$.object-sap":166}],194:[function(e,t,r){var n=e("./$.to-object");e("./$.object-sap")("keys",function(e){return function(t){return e(n(t))}})},{"./$.object-sap":166,"./$.to-object":182}],195:[function(e,t,r){var n=e("./$.export");n(n.S,"Object",{setPrototypeOf:e("./$.set-proto").set})},{"./$.export":142,"./$.set-proto":171}],196:[function(e,t,r){},{}],197:[function(e,t,r){"use strict";var n,a=e("./$"),i=e("./$.library"),o=e("./$.global"),u=e("./$.ctx"),s=e("./$.classof"),l=e("./$.export"),c=e("./$.is-object"),f=e("./$.an-object"),d=e("./$.a-function"),h=e("./$.strict-new"),p=e("./$.for-of"),v=e("./$.set-proto").set,b=e("./$.same-value"),g=e("./$.wks")("species"),y=e("./$.species-constructor"),m=e("./$.microtask"),w=o.process,x="process"==s(w),j=o.Promise,k=function(){},E=function(e){var t,r=new j(k);return e&&(r.constructor=function(e){e(k,k)}),(t=j.resolve(r)).catch(k),t===r},_=function(){function t(e){var r=new j(e);return v(r,t.prototype),r}var r=!1;try{if(r=j&&j.resolve&&E(),v(t,j),t.prototype=a.create(j.prototype,{constructor:{value:t}}),t.resolve(5).then(function(){})instanceof t||(r=!1),r&&e("./$.descriptors")){var n=!1;j.resolve(a.setDesc({},"then",{get:function(){n=!0}})),r=n}}catch(e){r=!1}return r}(),$=function(e,t){return!(!i||e!==j||t!==n)||b(e,t)},S=function(e){var t=f(e)[g];return void 0!=t?t:e},M=function(e){var t;return!(!c(e)||"function"!=typeof(t=e.then))&&t},O=function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=d(t),this.reject=d(r)},P=function(e){try{e()}catch(e){return{error:e}}},I=function(e,t){if(!e.n){e.n=!0;var r=e.c;m(function(){for(var n=e.v,a=1==e.s,i=0;r.length>i;)!function(t){var r,i,o=a?t.ok:t.fail,u=t.resolve,s=t.reject;try{o?(a||(e.h=!0),r=!0===o?n:o(n),r===t.promise?s(TypeError("Promise-chain cycle")):(i=M(r))?i.call(r,u,s):u(r)):s(n)}catch(e){s(e)}}(r[i++]);r.length=0,e.n=!1,t&&setTimeout(function(){var t,r,a=e.p;N(a)&&(x?w.emit("unhandledRejection",n,a):(t=o.onunhandledrejection)?t({promise:a,reason:n}):(r=o.console)&&r.error&&r.error("Unhandled promise rejection",n)),e.a=void 0},1)})}},N=function(e){var t,r=e._d,n=r.a||r.c,a=0;if(r.h)return!1;for(;n.length>a;)if(t=n[a++],t.fail||!N(t.promise))return!1;return!0},A=function(e){var t=this;t.d||(t.d=!0,t=t.r||t,t.v=e,t.s=2,t.a=t.c.slice(),I(t,!0))},q=function(e){var t,r=this;if(!r.d){r.d=!0,r=r.r||r;try{if(r.p===e)throw TypeError("Promise can't be resolved itself");(t=M(e))?m(function(){var n={r:r,d:!1};try{t.call(e,u(q,n,1),u(A,n,1))}catch(e){A.call(n,e)}}):(r.v=e,r.s=1,I(r,!1))}catch(e){A.call({r:r,d:!1},e)}}};_||(j=function(e){d(e);var t=this._d={p:h(this,j,"Promise"),c:[],a:void 0,s:0,d:!1,v:void 0,h:!1,n:!1};try{e(u(q,t,1),u(A,t,1))}catch(e){A.call(t,e)}},
e("./$.redefine-all")(j.prototype,{then:function(e,t){var r=new O(y(this,j)),n=r.promise,a=this._d;return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,a.c.push(r),a.a&&a.a.push(r),a.s&&I(a,!1),n},catch:function(e){return this.then(void 0,e)}})),l(l.G+l.W+l.F*!_,{Promise:j}),e("./$.set-to-string-tag")(j,"Promise"),e("./$.set-species")("Promise"),n=e("./$.core").Promise,l(l.S+l.F*!_,"Promise",{reject:function(e){var t=new O(this);return(0,t.reject)(e),t.promise}}),l(l.S+l.F*(!_||E(!0)),"Promise",{resolve:function(e){if(e instanceof j&&$(e.constructor,this))return e;var t=new O(this);return(0,t.resolve)(e),t.promise}}),l(l.S+l.F*!(_&&e("./$.iter-detect")(function(e){j.all(e).catch(function(){})})),"Promise",{all:function(e){var t=S(this),r=new O(t),n=r.resolve,i=r.reject,o=[],u=P(function(){p(e,!1,o.push,o);var r=o.length,u=Array(r);r?a.each.call(o,function(e,a){var o=!1;t.resolve(e).then(function(e){o||(o=!0,u[a]=e,--r||n(u))},i)}):n(u)});return u&&i(u.error),r.promise},race:function(e){var t=S(this),r=new O(t),n=r.reject,a=P(function(){p(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return a&&n(a.error),r.promise}})},{"./$":161,"./$.a-function":128,"./$.an-object":130,"./$.classof":131,"./$.core":136,"./$.ctx":137,"./$.descriptors":139,"./$.export":142,"./$.for-of":144,"./$.global":146,"./$.is-object":154,"./$.iter-detect":158,"./$.library":163,"./$.microtask":164,"./$.redefine-all":168,"./$.same-value":170,"./$.set-proto":171,"./$.set-species":172,"./$.set-to-string-tag":173,"./$.species-constructor":175,"./$.strict-new":176,"./$.wks":184}],198:[function(e,t,r){"use strict";var n=e("./$.string-at")(!0);e("./$.iter-define")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},{"./$.iter-define":157,"./$.string-at":177}],199:[function(e,t,r){"use strict";var n=e("./$"),a=e("./$.global"),i=e("./$.has"),o=e("./$.descriptors"),u=e("./$.export"),s=e("./$.redefine"),l=e("./$.fails"),c=e("./$.shared"),f=e("./$.set-to-string-tag"),d=e("./$.uid"),h=e("./$.wks"),p=e("./$.keyof"),v=e("./$.get-names"),b=e("./$.enum-keys"),g=e("./$.is-array"),y=e("./$.an-object"),m=e("./$.to-iobject"),w=e("./$.property-desc"),x=n.getDesc,j=n.setDesc,k=n.create,E=v.get,_=a.Symbol,$=a.JSON,S=$&&$.stringify,M=!1,O=h("_hidden"),P=n.isEnum,I=c("symbol-registry"),N=c("symbols"),A="function"==typeof _,q=Object.prototype,D=o&&l(function(){return 7!=k(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=x(q,t);n&&delete q[t],j(e,t,r),n&&e!==q&&j(q,t,n)}:j,L=function(e){var t=N[e]=k(_.prototype);return t._k=e,o&&M&&D(q,e,{configurable:!0,set:function(t){i(this,O)&&i(this[O],e)&&(this[O][e]=!1),D(this,e,w(1,t))}}),t},F=function(e){return"symbol"==typeof e},G=function(e,t,r){return r&&i(N,t)?(r.enumerable?(i(e,O)&&e[O][t]&&(e[O][t]=!1),r=k(r,{enumerable:w(0,!1)})):(i(e,O)||j(e,O,w(1,{})),e[O][t]=!0),D(e,t,r)):j(e,t,r)},T=function(e,t){y(e);for(var r,n=b(t=m(t)),a=0,i=n.length;i>a;)G(e,r=n[a++],t[r]);return e},C=function(e,t){return void 0===t?k(e):T(k(e),t)},z=function(e){var t=P.call(this,e);return!(t||!i(this,e)||!i(N,e)||i(this,O)&&this[O][e])||t},J=function(e,t){var r=x(e=m(e),t);return!r||!i(N,t)||i(e,O)&&e[O][t]||(r.enumerable=!0),r},R=function(e){for(var t,r=E(m(e)),n=[],a=0;r.length>a;)i(N,t=r[a++])||t==O||n.push(t);return n},X=function(e){for(var t,r=E(m(e)),n=[],a=0;r.length>a;)i(N,t=r[a++])&&n.push(N[t]);return n},B=function(e){if(void 0!==e&&!F(e)){for(var t,r,n=[e],a=1,i=arguments;i.length>a;)n.push(i[a++]);return t=n[1],"function"==typeof t&&(r=t),!r&&g(t)||(t=function(e,t){if(r&&(t=r.call(this,e,t)),!F(t))return t}),n[1]=t,S.apply($,n)}},U=l(function(){var e=_();return"[null]"!=S([e])||"{}"!=S({a:e})||"{}"!=S(Object(e))});A||(_=function(){if(F(this))throw TypeError("Symbol is not a constructor");return L(d(arguments.length>0?arguments[0]:void 0))},s(_.prototype,"toString",function(){return this._k}),F=function(e){return e instanceof _},n.create=C,n.isEnum=z,n.getDesc=J,n.setDesc=G,n.setDescs=T,n.getNames=v.get=R,n.getSymbols=X,o&&!e("./$.library")&&s(q,"propertyIsEnumerable",z,!0));var V={for:function(e){return i(I,e+="")?I[e]:I[e]=_(e)},keyFor:function(e){return p(I,e)},useSetter:function(){M=!0},useSimple:function(){M=!1}};n.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(e){var t=h(e);V[e]=A?t:L(t)}),M=!0,u(u.G+u.W,{Symbol:_}),u(u.S,"Symbol",V),u(u.S+u.F*!A,"Object",{create:C,defineProperty:G,defineProperties:T,getOwnPropertyDescriptor:J,getOwnPropertyNames:R,getOwnPropertySymbols:X}),$&&u(u.S+u.F*(!A||U),"JSON",{stringify:B}),f(_,"Symbol"),f(Math,"Math",!0),f(a.JSON,"JSON",!0)},{"./$":161,"./$.an-object":130,"./$.descriptors":139,"./$.enum-keys":141,"./$.export":142,"./$.fails":143,"./$.get-names":145,"./$.global":146,"./$.has":147,"./$.is-array":153,"./$.keyof":162,"./$.library":163,"./$.property-desc":167,"./$.redefine":169,"./$.set-to-string-tag":173,"./$.shared":174,"./$.to-iobject":180,"./$.uid":183,"./$.wks":184}],200:[function(e,t,r){var n=e("./$.export");n(n.P,"Map",{toJSON:e("./$.collection-to-json")("Map")})},{"./$.collection-to-json":134,"./$.export":142}],201:[function(e,t,r){e("./es6.array.iterator");var n=e("./$.iterators");n.NodeList=n.HTMLCollection=n.Array},{"./$.iterators":160,"./es6.array.iterator":189}],202:[function(e,t,r){function n(e){var t=e?e.length:0;return t?e[t-1]:void 0}t.exports=n},{}],203:[function(e,t,r){function n(e,t,r){if(r?i(e,t,r):null==t){e=u(e);var n=e.length;return n>0?e[a(0,n-1)]:void 0}var l=-1,c=o(e),n=c.length,f=n-1;for(t=s(t<0?0:+t||0,n);++l<t;){var d=a(l,f),h=c[d];c[d]=c[l],c[l]=h}return c.length=t,c}var a=e("../internal/baseRandom"),i=e("../internal/isIterateeCall"),o=e("../lang/toArray"),u=e("../internal/toIterable"),s=Math.min;t.exports=n},{"../internal/baseRandom":227,"../internal/isIterateeCall":247,"../internal/toIterable":253,"../lang/toArray":266}],204:[function(e,t,r){function n(e){return a(e,i)}var a=e("./sample"),i=Number.POSITIVE_INFINITY;t.exports=n},{"./sample":203}],205:[function(e,t,r){function n(e){var t=e?a(e):0;return i(t)?t:o(e).length}var a=e("../internal/getLength"),i=e("../internal/isLength"),o=e("../object/keys");t.exports=n},{"../internal/getLength":239,"../internal/isLength":249,"../object/keys":268}],206:[function(e,t,r){function n(e,t){if("function"!=typeof e)throw new TypeError(a);return t=i(void 0===t?e.length-1:+t||0,0),function(){for(var r=arguments,n=-1,a=i(r.length-t,0),o=Array(a);++n<a;)o[n]=r[t+n];switch(t){case 0:return e.call(this,o);case 1:return e.call(this,r[0],o);case 2:return e.call(this,r[0],r[1],o)}var u=Array(t+1);for(n=-1;++n<t;)u[n]=r[n];return u[t]=o,e.apply(this,u)}}var a="Expected a function",i=Math.max;t.exports=n},{}],207:[function(e,t,r){function n(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}t.exports=n},{}],208:[function(e,t,r){function n(e,t){for(var r=-1,n=e.length;++r<n&&!1!==t(e[r],r,e););return e}t.exports=n},{}],209:[function(e,t,r){function n(e,t){for(var r=-1,n=e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}t.exports=n},{}],210:[function(e,t,r){function n(e,t){return null==t?e:a(t,i(t),e)}var a=e("./baseCopy"),i=e("../object/keys");t.exports=n},{"../object/keys":268,"./baseCopy":213}],211:[function(e,t,r){function n(e,t,r){var n=typeof e;return"function"==n?void 0===t?e:o(e,t,r):null==e?u:"object"==n?a(e):void 0===t?s(e):i(e,t)}var a=e("./baseMatches"),i=e("./baseMatchesProperty"),o=e("./bindCallback"),u=e("../utility/identity"),s=e("../utility/property");t.exports=n},{"../utility/identity":274,"../utility/property":275,"./baseMatches":221,"./baseMatchesProperty":222,"./bindCallback":231}],212:[function(e,t,r){function n(e,t,r,g,m,w,x){var j;if(r&&(j=m?r(e,g,m):r(e)),void 0!==j)return j;if(!d(e))return e;var k=f(e);if(k){if(j=s(e),!t)return a(e,j)}else{var E=y.call(e),_=E==p;if(E!=v&&E!=h&&(!_||m))return b[E]?l(e,E,t):m?e:{};if(j=c(_?{}:e),!t)return o(j,e)}w||(w=[]),x||(x=[]);for(var $=w.length;$--;)if(w[$]==e)return x[$];return w.push(e),x.push(j),(k?i:u)(e,function(a,i){j[i]=n(a,t,r,i,e,w,x)}),j}var a=e("./arrayCopy"),i=e("./arrayEach"),o=e("./baseAssign"),u=e("./baseForOwn"),s=e("./initCloneArray"),l=e("./initCloneByTag"),c=e("./initCloneObject"),f=e("../lang/isArray"),d=e("../lang/isObject"),h="[object Arguments]",p="[object Function]",v="[object Object]",b={};b[h]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object Date]"]=b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Number]"]=b[v]=b["[object RegExp]"]=b["[object String]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b["[object Error]"]=b[p]=b["[object Map]"]=b["[object Set]"]=b["[object WeakMap]"]=!1;var g=Object.prototype,y=g.toString;t.exports=n},{"../lang/isArray":258,"../lang/isObject":262,"./arrayCopy":207,"./arrayEach":208,"./baseAssign":210,"./baseForOwn":216,"./initCloneArray":242,"./initCloneByTag":243,"./initCloneObject":244}],213:[function(e,t,r){function n(e,t,r){r||(r={});for(var n=-1,a=t.length;++n<a;){var i=t[n];r[i]=e[i]}return r}t.exports=n},{}],214:[function(e,t,r){var n=e("./createBaseFor"),a=n();t.exports=a},{"./createBaseFor":234}],215:[function(e,t,r){function n(e,t){return a(e,t,i)}var a=e("./baseFor"),i=e("../object/keysIn");t.exports=n},{"../object/keysIn":269,"./baseFor":214}],216:[function(e,t,r){function n(e,t){return a(e,t,i)}var a=e("./baseFor"),i=e("../object/keys");t.exports=n},{"../object/keys":268,"./baseFor":214}],217:[function(e,t,r){function n(e,t,r){if(null!=e){void 0!==r&&r in a(e)&&(t=[r]);for(var n=0,i=t.length;null!=e&&n<i;)e=e[t[n++]];return n&&n==i?e:void 0}}var a=e("./toObject");t.exports=n},{"./toObject":254}],218:[function(e,t,r){function n(e,t,r,u,s,l){return e===t||(null==e||null==t||!i(e)&&!o(t)?e!==e&&t!==t:a(e,t,n,r,u,s,l))}var a=e("./baseIsEqualDeep"),i=e("../lang/isObject"),o=e("./isObjectLike");t.exports=n},{"../lang/isObject":262,"./baseIsEqualDeep":219,"./isObjectLike":250}],219:[function(e,t,r){function n(e,t,r,n,d,v,b){var g=u(e),y=u(t),m=c,w=c;g||(m=p.call(e),m==l?m=f:m!=f&&(g=s(e))),y||(w=p.call(t),w==l?w=f:w!=f&&(y=s(t)));var x=m==f,j=w==f,k=m==w;if(k&&!g&&!x)return i(e,t,m);if(!d){var E=x&&h.call(e,"__wrapped__"),_=j&&h.call(t,"__wrapped__");if(E||_)return r(E?e.value():e,_?t.value():t,n,d,v,b)}if(!k)return!1;v||(v=[]),b||(b=[]);for(var $=v.length;$--;)if(v[$]==e)return b[$]==t;v.push(e),b.push(t);var S=(g?a:o)(e,t,r,n,d,v,b);return v.pop(),b.pop(),S}var a=e("./equalArrays"),i=e("./equalByTag"),o=e("./equalObjects"),u=e("../lang/isArray"),s=e("../lang/isTypedArray"),l="[object Arguments]",c="[object Array]",f="[object Object]",d=Object.prototype,h=d.hasOwnProperty,p=d.toString;t.exports=n},{"../lang/isArray":258,"../lang/isTypedArray":265,"./equalArrays":236,"./equalByTag":237,"./equalObjects":238}],220:[function(e,t,r){function n(e,t,r){var n=t.length,o=n,u=!r;if(null==e)return!o;for(e=i(e);n--;){var s=t[n];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++n<o;){s=t[n];var l=s[0],c=e[l],f=s[1];if(u&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=r?r(c,f,l):void 0;if(!(void 0===d?a(f,c,r,!0):d))return!1}}return!0}var a=e("./baseIsEqual"),i=e("./toObject");t.exports=n},{"./baseIsEqual":218,"./toObject":254}],221:[function(e,t,r){function n(e){var t=i(e);if(1==t.length&&t[0][2]){var r=t[0][0],n=t[0][1];return function(e){return null!=e&&(e[r]===n&&(void 0!==n||r in o(e)))}}return function(e){return a(e,t)}}var a=e("./baseIsMatch"),i=e("./getMatchData"),o=e("./toObject");t.exports=n},{"./baseIsMatch":220,"./getMatchData":240,"./toObject":254}],222:[function(e,t,r){function n(e,t){var r=u(e),n=s(e)&&l(t),h=e+"";return e=d(e),function(u){if(null==u)return!1;var s=h;if(u=f(u),(r||!n)&&!(s in u)){if(null==(u=1==e.length?u:a(u,o(e,0,-1))))return!1;s=c(e),u=f(u)}return u[s]===t?void 0!==t||s in u:i(t,u[s],void 0,!0)}}var a=e("./baseGet"),i=e("./baseIsEqual"),o=e("./baseSlice"),u=e("../lang/isArray"),s=e("./isKey"),l=e("./isStrictComparable"),c=e("../array/last"),f=e("./toObject"),d=e("./toPath");t.exports=n},{"../array/last":202,"../lang/isArray":258,"./baseGet":217,"./baseIsEqual":218,"./baseSlice":228,"./isKey":248,"./isStrictComparable":251,"./toObject":254,"./toPath":255}],223:[function(e,t,r){function n(e,t,r,d,h){if(!s(e))return e;var p=u(t)&&(o(t)||c(t)),v=p?void 0:f(t);return a(v||t,function(a,o){if(v&&(o=a,a=t[o]),l(a))d||(d=[]),h||(h=[]),i(e,t,o,n,r,d,h);else{var u=e[o],s=r?r(u,a,o,e,t):void 0,c=void 0===s;c&&(s=a),void 0===s&&(!p||o in e)||!c&&(s===s?s===u:u!==u)||(e[o]=s)}}),e}var a=e("./arrayEach"),i=e("./baseMergeDeep"),o=e("../lang/isArray"),u=e("./isArrayLike"),s=e("../lang/isObject"),l=e("./isObjectLike"),c=e("../lang/isTypedArray"),f=e("../object/keys");t.exports=n},{"../lang/isArray":258,"../lang/isObject":262,"../lang/isTypedArray":265,"../object/keys":268,"./arrayEach":208,"./baseMergeDeep":224,"./isArrayLike":245,"./isObjectLike":250}],224:[function(e,t,r){function n(e,t,r,n,f,d,h){for(var p=d.length,v=t[r];p--;)if(d[p]==v)return void(e[r]=h[p]);var b=e[r],g=f?f(b,v,r,e,t):void 0,y=void 0===g;y&&(g=v,u(v)&&(o(v)||l(v))?g=o(b)?b:u(b)?a(b):[]:s(v)||i(v)?g=i(b)?c(b):s(b)?b:{}:y=!1),d.push(v),h.push(g),y?e[r]=n(g,v,f,d,h):(g===g?g!==b:b===b)&&(e[r]=g)}var a=e("./arrayCopy"),i=e("../lang/isArguments"),o=e("../lang/isArray"),u=e("./isArrayLike"),s=e("../lang/isPlainObject"),l=e("../lang/isTypedArray"),c=e("../lang/toPlainObject");t.exports=n},{"../lang/isArguments":257,"../lang/isArray":258,"../lang/isPlainObject":263,"../lang/isTypedArray":265,"../lang/toPlainObject":267,"./arrayCopy":207,"./isArrayLike":245}],225:[function(e,t,r){function n(e){return function(t){return null==t?void 0:t[e]}}t.exports=n},{}],226:[function(e,t,r){function n(e){var t=e+"";return e=i(e),function(r){return a(r,e,t)}}var a=e("./baseGet"),i=e("./toPath");t.exports=n},{"./baseGet":217,"./toPath":255}],227:[function(e,t,r){function n(e,t){return e+a(i()*(t-e+1))}var a=Math.floor,i=Math.random;t.exports=n},{}],228:[function(e,t,r){function n(e,t,r){var n=-1,a=e.length;t=null==t?0:+t||0,t<0&&(t=-t>a?0:a+t),r=void 0===r||r>a?a:+r||0,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n<a;)i[n]=e[n+t];return i}t.exports=n},{}],229:[function(e,t,r){function n(e){return null==e?"":e+""}t.exports=n},{}],230:[function(e,t,r){function n(e,t){for(var r=-1,n=t.length,a=Array(n);++r<n;)a[r]=e[t[r]];return a}t.exports=n},{}],231:[function(e,t,r){function n(e,t,r){if("function"!=typeof e)return a;if(void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 3:return function(r,n,a){return e.call(t,r,n,a)};case 4:return function(r,n,a,i){return e.call(t,r,n,a,i)};case 5:return function(r,n,a,i,o){return e.call(t,r,n,a,i,o)}}return function(){return e.apply(t,arguments)}}var a=e("../utility/identity");t.exports=n},{"../utility/identity":274}],232:[function(e,t,r){(function(e){function r(e){var t=new n(e.byteLength);return new a(t).set(new a(e)),t}var n=e.ArrayBuffer,a=e.Uint8Array;t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],233:[function(e,t,r){function n(e){return o(function(t,r){var n=-1,o=null==t?0:r.length,u=o>2?r[o-2]:void 0,s=o>2?r[2]:void 0,l=o>1?r[o-1]:void 0;for("function"==typeof u?(u=a(u,l,5),o-=2):(u="function"==typeof l?l:void 0,o-=u?1:0),s&&i(r[0],r[1],s)&&(u=o<3?void 0:u,o=1);++n<o;){var c=r[n];c&&e(t,c,u)}return t})}var a=e("./bindCallback"),i=e("./isIterateeCall"),o=e("../function/restParam");t.exports=n},{"../function/restParam":206,"./bindCallback":231,"./isIterateeCall":247}],234:[function(e,t,r){function n(e){return function(t,r,n){for(var i=a(t),o=n(t),u=o.length,s=e?u:-1;e?s--:++s<u;){var l=o[s];if(!1===r(i[l],l,i))break}return t}}var a=e("./toObject");t.exports=n},{"./toObject":254}],235:[function(e,t,r){function n(e){return function(t,r,n){var o={};return r=a(r,n,3),i(t,function(t,n,a){var i=r(t,n,a);n=e?i:n,t=e?t:i,o[n]=t}),o}}var a=e("./baseCallback"),i=e("./baseForOwn");t.exports=n},{"./baseCallback":211,"./baseForOwn":216}],236:[function(e,t,r){function n(e,t,r,n,i,o,u){var s=-1,l=e.length,c=t.length;if(l!=c&&!(i&&c>l))return!1;for(;++s<l;){var f=e[s],d=t[s],h=n?n(i?d:f,i?f:d,s):void 0;if(void 0!==h){if(h)continue;return!1}if(i){if(!a(t,function(e){return f===e||r(f,e,n,i,o,u)}))return!1}else if(f!==d&&!r(f,d,n,i,o,u))return!1}return!0}var a=e("./arraySome");t.exports=n},{"./arraySome":209}],237:[function(e,t,r){function n(e,t,r){switch(r){case a:case i:return+e==+t;case o:return e.name==t.name&&e.message==t.message;case u:return e!=+e?t!=+t:e==+t;case s:case l:return e==t+""}return!1}var a="[object Boolean]",i="[object Date]",o="[object Error]",u="[object Number]",s="[object RegExp]",l="[object String]";t.exports=n},{}],238:[function(e,t,r){function n(e,t,r,n,i,u,s){var l=a(e),c=l.length;if(c!=a(t).length&&!i)return!1;for(var f=c;f--;){var d=l[f];if(!(i?d in t:o.call(t,d)))return!1}for(var h=i;++f<c;){d=l[f];var p=e[d],v=t[d],b=n?n(i?v:p,i?p:v,d):void 0;if(!(void 0===b?r(p,v,n,i,u,s):b))return!1;h||(h="constructor"==d)}if(!h){var g=e.constructor,y=t.constructor;if(g!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof g&&g instanceof g&&"function"==typeof y&&y instanceof y))return!1}return!0}var a=e("../object/keys"),i=Object.prototype,o=i.hasOwnProperty;t.exports=n},{"../object/keys":268}],239:[function(e,t,r){var n=e("./baseProperty"),a=n("length");t.exports=a},{"./baseProperty":225}],240:[function(e,t,r){function n(e){for(var t=i(e),r=t.length;r--;)t[r][2]=a(t[r][1]);return t}var a=e("./isStrictComparable"),i=e("../object/pairs");t.exports=n},{"../object/pairs":272,"./isStrictComparable":251}],241:[function(e,t,r){function n(e,t){var r=null==e?void 0:e[t];return a(r)?r:void 0}var a=e("../lang/isNative");t.exports=n},{"../lang/isNative":261}],242:[function(e,t,r){function n(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&i.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var a=Object.prototype,i=a.hasOwnProperty;t.exports=n},{}],243:[function(e,t,r){function n(e,t,r){var n=e.constructor;switch(t){case c:return a(e);case i:case o:return new n(+e);case f:case d:case h:case p:case v:case b:case g:case y:case m:var x=e.buffer;return new n(r?a(x):x,e.byteOffset,e.length);case u:case l:return new n(e);case s:var j=new n(e.source,w.exec(e));j.lastIndex=e.lastIndex}return j}var a=e("./bufferClone"),i="[object Boolean]",o="[object Date]",u="[object Number]",s="[object RegExp]",l="[object String]",c="[object ArrayBuffer]",f="[object Float32Array]",d="[object Float64Array]",h="[object Int8Array]",p="[object Int16Array]",v="[object Int32Array]",b="[object Uint8Array]",g="[object Uint8ClampedArray]",y="[object Uint16Array]",m="[object Uint32Array]",w=/\w*$/;t.exports=n},{"./bufferClone":232}],244:[function(e,t,r){function n(e){var t=e.constructor;return"function"==typeof t&&t instanceof t||(t=Object),new t}t.exports=n},{}],245:[function(e,t,r){function n(e){return null!=e&&i(a(e))}var a=e("./getLength"),i=e("./isLength");t.exports=n},{"./getLength":239,"./isLength":249}],246:[function(e,t,r){function n(e,t){return e="number"==typeof e||a.test(e)?+e:-1,t=null==t?i:t,e>-1&&e%1==0&&e<t}var a=/^\d+$/,i=9007199254740991;t.exports=n},{}],247:[function(e,t,r){function n(e,t,r){if(!o(r))return!1;var n=typeof t;if("number"==n?a(r)&&i(t,r.length):"string"==n&&t in r){var u=r[t];return e===e?e===u:u!==u}return!1}var a=e("./isArrayLike"),i=e("./isIndex"),o=e("../lang/isObject");t.exports=n},{"../lang/isObject":262,"./isArrayLike":245,"./isIndex":246}],248:[function(e,t,r){function n(e,t){var r=typeof e;return!!("string"==r&&u.test(e)||"number"==r)||!a(e)&&(!o.test(e)||null!=t&&e in i(t))}var a=e("../lang/isArray"),i=e("./toObject"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=n},{"../lang/isArray":258,"./toObject":254}],249:[function(e,t,r){function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}var a=9007199254740991;t.exports=n},{}],250:[function(e,t,r){function n(e){return!!e&&"object"==typeof e}t.exports=n},{}],251:[function(e,t,r){function n(e){return e===e&&!a(e)}var a=e("../lang/isObject");t.exports=n},{"../lang/isObject":262}],252:[function(e,t,r){function n(e){for(var t=s(e),r=t.length,n=r&&e.length,l=!!n&&u(n)&&(i(e)||a(e)),f=-1,d=[];++f<r;){var h=t[f];(l&&o(h,n)||c.call(e,h))&&d.push(h)}return d}var a=e("../lang/isArguments"),i=e("../lang/isArray"),o=e("./isIndex"),u=e("./isLength"),s=e("../object/keysIn"),l=Object.prototype,c=l.hasOwnProperty;t.exports=n},{"../lang/isArguments":257,"../lang/isArray":258,"../object/keysIn":269,"./isIndex":246,"./isLength":249}],253:[function(e,t,r){function n(e){return null==e?[]:a(e)?i(e)?e:Object(e):o(e)}var a=e("./isArrayLike"),i=e("../lang/isObject"),o=e("../object/values");t.exports=n},{"../lang/isObject":262,"../object/values":273,"./isArrayLike":245}],254:[function(e,t,r){function n(e){return a(e)?e:Object(e)}var a=e("../lang/isObject");t.exports=n},{"../lang/isObject":262}],255:[function(e,t,r){function n(e){if(i(e))return e;var t=[];return a(e).replace(o,function(e,r,n,a){t.push(n?a.replace(u,"$1"):r||e)}),t}var a=e("./baseToString"),i=e("../lang/isArray"),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,u=/\\(\\)?/g;t.exports=n},{"../lang/isArray":258,"./baseToString":229}],256:[function(e,t,r){function n(e,t,r,n){return t&&"boolean"!=typeof t&&o(e,t,r)?t=!1:"function"==typeof t&&(n=r,r=t,t=!1),"function"==typeof r?a(e,t,i(r,n,3)):a(e,t)}var a=e("../internal/baseClone"),i=e("../internal/bindCallback"),o=e("../internal/isIterateeCall");t.exports=n},{"../internal/baseClone":212,"../internal/bindCallback":231,"../internal/isIterateeCall":247}],257:[function(e,t,r){function n(e){return i(e)&&a(e)&&u.call(e,"callee")&&!s.call(e,"callee")}var a=e("../internal/isArrayLike"),i=e("../internal/isObjectLike"),o=Object.prototype,u=o.hasOwnProperty,s=o.propertyIsEnumerable;t.exports=n},{"../internal/isArrayLike":245,"../internal/isObjectLike":250}],258:[function(e,t,r){var n=e("../internal/getNative"),a=e("../internal/isLength"),i=e("../internal/isObjectLike"),o=Object.prototype,u=o.toString,s=n(Array,"isArray"),l=s||function(e){return i(e)&&a(e.length)&&"[object Array]"==u.call(e)};t.exports=l},{"../internal/getNative":241,"../internal/isLength":249,"../internal/isObjectLike":250}],259:[function(e,t,r){function n(e){return!0===e||!1===e||a(e)&&u.call(e)==i}var a=e("../internal/isObjectLike"),i="[object Boolean]",o=Object.prototype,u=o.toString;t.exports=n},{"../internal/isObjectLike":250}],260:[function(e,t,r){function n(e){return a(e)&&u.call(e)==i}var a=e("./isObject"),i="[object Function]",o=Object.prototype,u=o.toString;t.exports=n},{"./isObject":262}],261:[function(e,t,r){function n(e){return null!=e&&(a(e)?c.test(s.call(e)):i(e)&&o.test(e))}var a=e("./isFunction"),i=e("../internal/isObjectLike"),o=/^\[object .+?Constructor\]$/,u=Object.prototype,s=Function.prototype.toString,l=u.hasOwnProperty,c=RegExp("^"+s.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=n},{"../internal/isObjectLike":250,"./isFunction":260}],262:[function(e,t,r){function n(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=n},{}],263:[function(e,t,r){function n(e){var t;if(!o(e)||c.call(e)!=u||i(e)||!l.call(e,"constructor")&&"function"==typeof(t=e.constructor)&&!(t instanceof t))return!1;var r;return a(e,function(e,t){r=t}),void 0===r||l.call(e,r)}var a=e("../internal/baseForIn"),i=e("./isArguments"),o=e("../internal/isObjectLike"),u="[object Object]",s=Object.prototype,l=s.hasOwnProperty,c=s.toString;t.exports=n},{"../internal/baseForIn":215,"../internal/isObjectLike":250,"./isArguments":257}],264:[function(e,t,r){function n(e){return"string"==typeof e||a(e)&&u.call(e)==i}var a=e("../internal/isObjectLike"),i="[object String]",o=Object.prototype,u=o.toString;t.exports=n},{"../internal/isObjectLike":250}],265:[function(e,t,r){function n(e){return i(e)&&a(e.length)&&!!o[s.call(e)]}var a=e("../internal/isLength"),i=e("../internal/isObjectLike"),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1;var u=Object.prototype,s=u.toString;t.exports=n},{"../internal/isLength":249,"../internal/isObjectLike":250}],266:[function(e,t,r){function n(e){var t=e?i(e):0;return o(t)?t?a(e):[]:u(e)}var a=e("../internal/arrayCopy"),i=e("../internal/getLength"),o=e("../internal/isLength"),u=e("../object/values");t.exports=n},{"../internal/arrayCopy":207,"../internal/getLength":239,"../internal/isLength":249,"../object/values":273}],267:[function(e,t,r){function n(e){return a(e,i(e))}var a=e("../internal/baseCopy"),i=e("../object/keysIn");t.exports=n},{"../internal/baseCopy":213,"../object/keysIn":269}],268:[function(e,t,r){var n=e("../internal/getNative"),a=e("../internal/isArrayLike"),i=e("../lang/isObject"),o=e("../internal/shimKeys"),u=n(Object,"keys"),s=u?function(e){var t=null==e?void 0:e.constructor;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&a(e)?o(e):i(e)?u(e):[]}:o;t.exports=s},{"../internal/getNative":241,"../internal/isArrayLike":245,"../internal/shimKeys":252,"../lang/isObject":262}],269:[function(e,t,r){function n(e){if(null==e)return[];s(e)||(e=Object(e));var t=e.length;t=t&&u(t)&&(i(e)||a(e))&&t||0;for(var r=e.constructor,n=-1,l="function"==typeof r&&r.prototype===e,f=Array(t),d=t>0;++n<t;)f[n]=n+"";for(var h in e)d&&o(h,t)||"constructor"==h&&(l||!c.call(e,h))||f.push(h);return f}var a=e("../lang/isArguments"),i=e("../lang/isArray"),o=e("../internal/isIndex"),u=e("../internal/isLength"),s=e("../lang/isObject"),l=Object.prototype,c=l.hasOwnProperty;t.exports=n},{"../internal/isIndex":246,"../internal/isLength":249,"../lang/isArguments":257,"../lang/isArray":258,"../lang/isObject":262}],270:[function(e,t,r){var n=e("../internal/createObjectMapper"),a=n();t.exports=a},{"../internal/createObjectMapper":235}],271:[function(e,t,r){var n=e("../internal/baseMerge"),a=e("../internal/createAssigner"),i=a(n);t.exports=i},{"../internal/baseMerge":223,"../internal/createAssigner":233}],272:[function(e,t,r){function n(e){e=i(e);for(var t=-1,r=a(e),n=r.length,o=Array(n);++t<n;){var u=r[t];o[t]=[u,e[u]]}return o}var a=e("./keys"),i=e("../internal/toObject");t.exports=n},{"../internal/toObject":254,"./keys":268}],273:[function(e,t,r){function n(e){return a(e,i(e))}var a=e("../internal/baseValues"),i=e("./keys");t.exports=n},{"../internal/baseValues":230,"./keys":268}],274:[function(e,t,r){function n(e){return e}t.exports=n},{}],275:[function(e,t,r){function n(e){return o(e)?a(e):i(e)}var a=e("../internal/baseProperty"),i=e("../internal/basePropertyDeep"),o=e("../internal/isKey");t.exports=n},{"../internal/baseProperty":225,"../internal/basePropertyDeep":226,"../internal/isKey":248}],276:[function(e,t,r){function n(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(f===setTimeout)return setTimeout(e,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function o(e){if(d===clearTimeout)return clearTimeout(e);if((d===a||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function u(){b&&p&&(b=!1,p.length?v=p.concat(v):g=-1,v.length&&s())}function s(){if(!b){var e=i(u);b=!0;for(var t=v.length;t;){for(p=v,v=[];++g<t;)p&&p[g].run();g=-1,t=v.length}p=null,b=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function c(){}var f,d,h=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(e){f=n}try{d="function"==typeof clearTimeout?clearTimeout:a}catch(e){d=a}}();var p,v=[],b=!1,g=-1;h.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];v.push(new l(e,t)),1!==v.length||b||i(s)},l.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,h.prependListener=c,h.prependOnceListener=c,h.listeners=function(e){return[]},h.binding=function(e){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(e){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},{}],277:[function(e,t,r){var n=/%(\+)?(\d+\$)?(0|'.)?(-)?(\d+)?(\.\d+)?(.)/g,a=function(e){for(var t,r,i,o,u,s=1;r=n.exec(e);){if(t=r[7],(o=r[2])&&"$"==o[i=o.length-1]&&(o=o.substr(0,i)),a[i=t.toLowerCase()]&&void 0!==(u=a[i](arguments[o||s],/[A-Z]/.test(t),r[1]))){if(t=""+u,(i=r[3])?"'"==i[0]&&(i=i[1]):i=" ",o=r[5])for(;t.length<o;)t=r[4]?t+i:i+t;(i=r[6]&&r[6].substr(1))&&t.length>i&&(t=r[4]?t.substr(0,i):t.substr(t.length-i)),s++}e=e.substr(0,i=r.index)+t+e.substr(n.lastIndex),n.lastIndex=t.length+i}return e};a.s=function(e,t){return t?void 0:e+""},t.exports=a},{}]},{},[59])(59)});