babylon.nodeEditor.js 495 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babylonjs")):"function"==typeof define&&define.amd?define("babylonjs-node-editor",["babylonjs"],t):"object"==typeof exports?exports["babylonjs-node-editor"]=t(require("babylonjs")):e.NODEEDITOR=t(e.BABYLON)}("undefined"!=typeof self?self:"undefined"!=typeof global?global:this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=127)}([function(e,t,n){"use strict";e.exports=n(128)},function(t,n){t.exports=e},function(e,t,n){e.exports=n(136)()},function(e,t,n){var r;try{r={cloneDeep:n(259),constant:n(63),defaults:n(260),each:n(92),filter:n(95),find:n(261),flatten:n(122),forEach:n(93),forIn:n(266),has:n(106),isUndefined:n(107),last:n(267),map:n(108),mapValues:n(268),max:n(269),merge:n(271),min:n(277),minBy:n(278),now:n(279),pick:n(280),range:n(285),reduce:n(110),sortBy:n(288),uniqueId:n(293),values:n(115),zipObject:n(294)}}catch(e){}r||(r=window._),e.exports=r},function(e,t,n){var r;window,r=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=45)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports={Always:1,Never:2,IfAtMostOneObstacle:3,OnlyWhenNoObstacles:4}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(t,n){var r=e.call(this,n)||this;return r.className=t,r}return o(t,e),t.prototype.bem=function(e){return(this.props.baseClass||this.className)+e+" "},t.prototype.getClassName=function(){return(this.props.baseClass||this.className)+" "+(this.props.className?this.props.className+" ":"")},t.prototype.getProps=function(){return i({},this.props.extraProps||{},{className:this.getClassName()})},t}(n(1).Component);t.BaseWidget=a},function(e,t){function n(e){for(var t=[[e.x,e.y]];e.parent;)e=e.parent,t.push([e.x,e.y]);return t.reverse()}function r(e,t,n,r){var o,i,a,s,u,l,c=Math.abs,f=[];for(o=e<n?1:-1,i=t<r?1:-1,u=(a=c(n-e))-(s=c(r-t));f.push([e,t]),e!==n||t!==r;)(l=2*u)>-s&&(u-=s,e+=o),l<a&&(u+=a,t+=i);return f}t.backtrace=n,t.biBacktrace=function(e,t){var r=n(e),o=n(t);return r.concat(o.reverse())},t.pathLength=function(e){var t,n,r,o,i,a=0;for(t=1;t<e.length;++t)n=e[t-1],r=e[t],o=n[0]-r[0],i=n[1]-r[1],a+=Math.sqrt(o*o+i*i);return a},t.interpolate=r,t.expandPath=function(e){var t,n,o,i,a,s,u=[],l=e.length;if(l<2)return u;for(a=0;a<l-1;++a)for(t=e[a],n=e[a+1],i=(o=r(t[0],t[1],n[0],n[1])).length,s=0;s<i-1;++s)u.push(o[s]);return u.push(e[l-1]),u},t.smoothenPath=function(e,t){var n,o,i,a,s,u,l,c,f,p=t.length,d=t[0][0],h=t[0][1],g=t[p-1][0],v=t[p-1][1];for(i=[[n=d,o=h]],a=2;a<p;++a){for(l=r(n,o,(u=t[a])[0],u[1]),f=!1,s=1;s<l.length;++s)if(c=l[s],!e.isWalkableAt(c[0],c[1])){f=!0;break}f&&(lastValidCoord=t[a-1],i.push(lastValidCoord),n=lastValidCoord[0],o=lastValidCoord[1])}return i.push([g,v]),i},t.compressPath=function(e){if(e.length<3)return e;var t,n,r,o,i,a,s=[],u=e[0][0],l=e[0][1],c=e[1][0],f=e[1][1],p=c-u,d=f-l;for(p/=i=Math.sqrt(p*p+d*d),d/=i,s.push([u,l]),a=2;a<e.length;a++)t=c,n=f,r=p,o=d,p=(c=e[a][0])-t,d=(f=e[a][1])-n,d/=i=Math.sqrt(p*p+d*d),(p/=i)===r&&d===o||s.push([t,n]);return s.push([c,f]),s}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),a=n(0),s=function(e){function t(t,n){var r=e.call(this)||this;return r.x=n.x,r.y=n.y,r.parent=t,r}return o(t,e),t.prototype.getSelectedEntities=function(){return e.prototype.isSelected.call(this)&&!this.isConnectedToPort()?[this]:[]},t.prototype.isConnectedToPort=function(){return null!==this.parent.getPortForPoint(this)},t.prototype.getLink=function(){return this.getParent()},t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.x=t.x,this.y=t.y},t.prototype.serialize=function(){return a.merge(e.prototype.serialize.call(this),{x:this.x,y:this.y})},t.prototype.remove=function(){this.parent&&this.parent.removePoint(this),e.prototype.remove.call(this)},t.prototype.updateLocation=function(e){this.x=e.x,this.y=e.y},t.prototype.getX=function(){return this.x},t.prototype.getY=function(){return this.y},t.prototype.isLocked=function(){return e.prototype.isLocked.call(this)||this.getParent().isLocked()},t}(i.BaseModel);t.PointModel=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(13),s=n(0),u=function(e){function t(t,n){var r=e.call(this,n)||this;return r.type=t,r.selected=!1,r}return o(t,e),t.prototype.getParent=function(){return this.parent},t.prototype.setParent=function(e){this.parent=e},t.prototype.getSelectedEntities=function(){return this.isSelected()?[this]:[]},t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.type=t.type,this.selected=t.selected},t.prototype.serialize=function(){return s.merge(e.prototype.serialize.call(this),{type:this.type,selected:this.selected})},t.prototype.getType=function(){return this.type},t.prototype.getID=function(){return this.id},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e){void 0===e&&(e=!0),this.selected=e,this.iterateListeners(function(t,n){t.selectionChanged&&t.selectionChanged(i({},n,{isSelected:e}))})},t.prototype.remove=function(){this.iterateListeners(function(e,t){e.entityRemoved&&e.entityRemoved(t)})},t}(a.BaseEntity);t.BaseModel=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(70),o=n(16),i=n(51),a=function(){function e(){}return e.UID=function(){return e.TESTING?(e.TESTING_UID++,""+e.TESTING_UID):"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},e.closest=function(e,t){return document.body.closest?e.closest(t):r(e,t)},e.generateLinePath=function(e,t){return"M"+e.x+","+e.y+" L "+t.x+","+t.y},e.generateCurvePath=function(e,t,n){void 0===n&&(n=0);var r=Math.abs(e.x-t.x)>Math.abs(e.y-t.y),o=r?n:0,i=r?0:n;return"M"+e.x+","+e.y+" C "+(e.x+o)+","+(e.y+i)+"\n "+(t.x-o)+","+(t.y-i)+" "+t.x+","+t.y},e.generateDynamicPath=function(e){var t=i();return t=t.moveto(e[0][0]*o.ROUTING_SCALING_FACTOR,e[0][1]*o.ROUTING_SCALING_FACTOR),e.slice(1).forEach(function(e){t=t.lineto(e[0]*o.ROUTING_SCALING_FACTOR,e[1]*o.ROUTING_SCALING_FACTOR)}),t.print()},e.TESTING=!1,e.TESTING_UID=0,e}();t.Toolkit=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.type=e}return e.prototype.getType=function(){return this.type},e}();t.AbstractFactory=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),a=n(0),s=function(e){function t(t,n){void 0===t&&(t="default");var r=e.call(this,t,n)||this;return r.x=0,r.y=0,r.extras={},r.ports={},r}return o(t,e),t.prototype.setPosition=function(e,t){var n=this.x,r=this.y;a.forEach(this.ports,function(o){a.forEach(o.getLinks(),function(i){var a=i.getPointForPort(o);a.x=a.x+e-n,a.y=a.y+t-r})}),this.x=e,this.y=t},t.prototype.getSelectedEntities=function(){var t=e.prototype.getSelectedEntities.call(this);return this.isSelected()&&a.forEach(this.ports,function(e){t=t.concat(a.map(e.getLinks(),function(t){return t.getPointForPort(e)}))}),t},t.prototype.deSerialize=function(t,n){var r=this;e.prototype.deSerialize.call(this,t,n),this.x=t.x,this.y=t.y,this.extras=t.extras,a.forEach(t.ports,function(e){var t=n.getPortFactory(e.type).getNewInstance();t.deSerialize(e,n),r.addPort(t)})},t.prototype.serialize=function(){return a.merge(e.prototype.serialize.call(this),{x:this.x,y:this.y,extras:this.extras,ports:a.map(this.ports,function(e){return e.serialize()})})},t.prototype.doClone=function(e,t){void 0===e&&(e={}),t.ports={},a.forEach(this.ports,function(n){t.addPort(n.clone(e))})},t.prototype.remove=function(){e.prototype.remove.call(this),a.forEach(this.ports,function(e){a.forEach(e.getLinks(),function(e){e.remove()})})},t.prototype.getPortFromID=function(e){for(var t in this.ports)if(this.ports[t].id===e)return this.ports[t];return null},t.prototype.getPort=function(e){return this.ports[e]},t.prototype.getPorts=function(){return this.ports},t.prototype.removePort=function(e){this.ports[e.name]&&(this.ports[e.name].setParent(null),delete this.ports[e.name])},t.prototype.addPort=function(e){return e.setParent(this),this.ports[e.name]=e,e},t.prototype.updateDimensions=function(e){var t=e.width,n=e.height;this.width=t,this.height=n},t}(i.BaseModel);t.NodeModel=s},function(e,t){e.exports={manhattan:function(e,t){return e+t},euclidean:function(e,t){return Math.sqrt(e*e+t*t)},octile:function(e,t){var n=Math.SQRT2-1;return e<t?n*e+t:n*t+e},chebyshev:function(e,t){return Math.max(e,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.mouseX=e,this.mouseY=t,this.ms=(new Date).getTime()};t.BaseAction=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),a=n(0),s=function(e){function t(t,n,r,o){var i=e.call(this,n,r)||this;return i.name=t,i.links={},i.maximumLinks=o,i}return o(t,e),t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.name=t.name,this.maximumLinks=t.maximumLinks},t.prototype.serialize=function(){return a.merge(e.prototype.serialize.call(this),{name:this.name,parentNode:this.parent.id,links:a.map(this.links,function(e){return e.id}),maximumLinks:this.maximumLinks})},t.prototype.doClone=function(e,t){void 0===e&&(e={}),t.links={},t.parentNode=this.getParent().clone(e)},t.prototype.getNode=function(){return this.getParent()},t.prototype.getName=function(){return this.name},t.prototype.getMaximumLinks=function(){return this.maximumLinks},t.prototype.setMaximumLinks=function(e){this.maximumLinks=e},t.prototype.removeLink=function(e){delete this.links[e.getID()]},t.prototype.addLink=function(e){this.links[e.getID()]=e},t.prototype.getLinks=function(){return this.links},t.prototype.createLinkModel=function(){if(a.isFinite(this.maximumLinks)){var e=a.size(this.links);if(1===this.maximumLinks&&e>=1)return a.values(this.links)[0];if(e>=this.maximumLinks)return null}return null},t.prototype.updateCoords=function(e){var t=e.x,n=e.y,r=e.width,o=e.height;this.x=t,this.y=n,this.width=r,this.height=o},t.prototype.canLinkToPort=function(e){return!0},t.prototype.isLocked=function(){return e.prototype.isLocked.call(this)||this.getParent().isLocked()},t}(i.BaseModel);t.PortModel=s},function(e,t,n){"use strict";var r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),i=n(0),a=function(){function e(e){this.listeners={},this.id=e||o.Toolkit.UID(),this.locked=!1}return e.prototype.getID=function(){return this.id},e.prototype.doClone=function(e,t){void 0===e&&(e={})},e.prototype.clone=function(e){if(void 0===e&&(e={}),e[this.id])return e[this.id];var t=i.clone(this);return t.id=o.Toolkit.UID(),t.clearListeners(),e[this.id]=t,this.doClone(e,t),t},e.prototype.clearListeners=function(){this.listeners={}},e.prototype.deSerialize=function(e,t){this.id=e.id},e.prototype.serialize=function(){return{id:this.id}},e.prototype.iterateListeners=function(e){var t={id:o.Toolkit.UID(),firing:!0,entity:this,stopPropagation:function(){t.firing=!1}};for(var n in this.listeners)if(this.listeners.hasOwnProperty(n)){if(!t.firing)return;e(this.listeners[n],t)}},e.prototype.removeListener=function(e){return!!this.listeners[e]&&(delete this.listeners[e],!0)},e.prototype.addListener=function(e){var t=o.Toolkit.UID();return this.listeners[t]=e,t},e.prototype.isLocked=function(){return this.locked},e.prototype.setLocked=function(e){void 0===e&&(e=!0),this.locked=e,this.iterateListeners(function(t,n){t.lockChanged&&t.lockChanged(r({},n,{locked:e}))})},e}();t.BaseEntity=a},function(e,t,n){var r=n(15),o=n(4),i=n(10);n(2);function a(e){e=e||{},this.heuristic=e.heuristic||i.manhattan,this.trackJumpRecursion=e.trackJumpRecursion||!1}a.prototype.findPath=function(e,t,n,i,a){var s,u=this.openList=new r(function(e,t){return e.f-t.f}),l=this.startNode=a.getNodeAt(e,t),c=this.endNode=a.getNodeAt(n,i);for(this.grid=a,l.g=0,l.f=0,u.push(l),l.opened=!0;!u.empty();){if((s=u.pop()).closed=!0,s===c)return o.expandPath(o.backtrace(c));this._identifySuccessors(s)}return[]},a.prototype._identifySuccessors=function(e){var t,n,r,o,a,s,u,l,c,f,p=this.grid,d=this.heuristic,h=this.openList,g=this.endNode.x,v=this.endNode.y,m=e.x,y=e.y,b=Math.abs;Math.max;for(o=0,a=(t=this._findNeighbors(e)).length;o<a;++o)if(n=t[o],r=this._jump(n[0],n[1],m,y)){if(s=r[0],u=r[1],(f=p.getNodeAt(s,u)).closed)continue;l=i.octile(b(s-m),b(u-y)),c=e.g+l,(!f.opened||c<f.g)&&(f.g=c,f.h=f.h||d(b(s-g),b(u-v)),f.f=f.g+f.h,f.parent=e,f.opened?h.updateItem(f):(h.push(f),f.opened=!0))}},e.exports=a},function(e,t,n){e.exports=n(66)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(68);t.ROUTING_SCALING_FACTOR=5;var o=new r.JumpPointFinder({heuristic:r.Heuristic.manhattan,diagonalMovement:r.DiagonalMovement.Never}),i=function(){function e(e){this.instance=o,this.diagramEngine=e}return e.prototype.calculateDirectPath=function(e,n){var i=this.diagramEngine.getCanvasMatrix(),a=new r.Grid(i);return o.findPath(this.diagramEngine.translateRoutingX(Math.floor(e.x/t.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingY(Math.floor(e.y/t.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingX(Math.floor(n.x/t.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingY(Math.floor(n.y/t.ROUTING_SCALING_FACTOR)),a)},e.prototype.calculateLinkStartEndCoords=function(e,t){var n=t.findIndex(function(t){return 0===e[t[1]][t[0]]}),r=t.length-1-t.slice().reverse().findIndex(function(t){return 0===e[t[1]][t[0]]});if(-1!==n&&-1!==r){var o=t.slice(0,n),i=t.slice(r);return{start:{x:t[n][0],y:t[n][1]},end:{x:t[r][0],y:t[r][1]},pathToStart:o,pathToEnd:i}}},e.prototype.calculateDynamicPath=function(e,t,n,i,a){var s=this,u=new r.Grid(e),l=o.findPath(t.x,t.y,n.x,n.y,u),c=i.concat(l,a).map(function(e){return[s.diagramEngine.translateRoutingX(e[0],!0),s.diagramEngine.translateRoutingY(e[1],!0)]});return r.Util.compressPath(c)},e}();t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),a=n(0),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.offsetX=0,r.offsetY=0,r}return o(t,e),t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.offsetX=t.offsetX,this.offsetY=t.offsetY},t.prototype.serialize=function(){return a.merge(e.prototype.serialize.call(this),{offsetX:this.offsetX,offsetY:this.offsetY})},t}(i.BaseModel);t.LabelModel=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(0),s=function(e){function t(){var t=e.call(this,"default")||this;return t.offsetY=-23,t}return o(t,e),t.prototype.setLabel=function(e){this.label=e},t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.label=t.label},t.prototype.serialize=function(){return a.merge(e.prototype.serialize.call(this),{label:this.label})},t}(i.LabelModel);t.DefaultLabelModel=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(21),s=n(0),u=n(18),l=n(17),c=function(e){function t(t){void 0===t&&(t="default");var n=e.call(this,t)||this;return n.color="rgba(255,255,255,0.5)",n.width=3,n.curvyness=50,n}return o(t,e),t.prototype.serialize=function(){return s.merge(e.prototype.serialize.call(this),{width:this.width,color:this.color,curvyness:this.curvyness})},t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.color=t.color,this.width=t.width,this.curvyness=t.curvyness},t.prototype.addLabel=function(t){if(t instanceof l.LabelModel)return e.prototype.addLabel.call(this,t);var n=new u.DefaultLabelModel;return n.setLabel(t),e.prototype.addLabel.call(this,n)},t.prototype.setWidth=function(e){this.width=e,this.iterateListeners(function(t,n){t.widthChanged&&t.widthChanged(i({},n,{width:e}))})},t.prototype.setColor=function(e){this.color=e,this.iterateListeners(function(t,n){t.colorChanged&&t.colorChanged(i({},n,{color:e}))})},t}(a.LinkModel);t.DefaultLinkModel=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(12),s=n(19),u=function(e){function t(t,n,r,o){void 0===r&&(r=null);var i=e.call(this,n,"default",o)||this;return i.in=t,i.label=r||n,i}return o(t,e),t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.in=t.in,this.label=t.label},t.prototype.serialize=function(){return i.merge(e.prototype.serialize.call(this),{in:this.in,label:this.label})},t.prototype.link=function(e){var t=this.createLinkModel();return t.setSourcePort(this),t.setTargetPort(e),t},t.prototype.canLinkToPort=function(e){return!(e instanceof t)||this.in!==e.in},t.prototype.createLinkModel=function(){return e.prototype.createLinkModel.call(this)||new s.DefaultLinkModel},t}(a.PortModel);t.DefaultPortModel=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(6),s=n(5),u=n(0),l=function(e){function t(t,n){void 0===t&&(t="default");var r=e.call(this,t,n)||this;return r.points=[new s.PointModel(r,{x:0,y:0}),new s.PointModel(r,{x:0,y:0})],r.extras={},r.sourcePort=null,r.targetPort=null,r.labels=[],r}return o(t,e),t.prototype.deSerialize=function(t,n){var r=this;e.prototype.deSerialize.call(this,t,n),this.extras=t.extras,this.points=u.map(t.points||[],function(e){var t=new s.PointModel(r,{x:e.x,y:e.y});return t.deSerialize(e,n),t}),u.forEach(t.labels||[],function(e){var t=n.getLabelFactory(e.type).getNewInstance();t.deSerialize(e,n),r.addLabel(t)}),t.target&&this.setTargetPort(this.getParent().getNode(t.target).getPortFromID(t.targetPort)),t.source&&this.setSourcePort(this.getParent().getNode(t.source).getPortFromID(t.sourcePort))},t.prototype.serialize=function(){return u.merge(e.prototype.serialize.call(this),{source:this.sourcePort?this.sourcePort.getParent().id:null,sourcePort:this.sourcePort?this.sourcePort.id:null,target:this.targetPort?this.targetPort.getParent().id:null,targetPort:this.targetPort?this.targetPort.id:null,points:u.map(this.points,function(e){return e.serialize()}),extras:this.extras,labels:u.map(this.labels,function(e){return e.serialize()})})},t.prototype.doClone=function(e,t){void 0===e&&(e={}),t.setPoints(u.map(this.getPoints(),function(t){return t.clone(e)})),this.sourcePort&&t.setSourcePort(this.sourcePort.clone(e)),this.targetPort&&t.setTargetPort(this.targetPort.clone(e))},t.prototype.remove=function(){this.sourcePort&&this.sourcePort.removeLink(this),this.targetPort&&this.targetPort.removeLink(this),e.prototype.remove.call(this)},t.prototype.isLastPoint=function(e){return this.getPointIndex(e)===this.points.length-1},t.prototype.getPointIndex=function(e){return this.points.indexOf(e)},t.prototype.getPointModel=function(e){for(var t=0;t<this.points.length;t++)if(this.points[t].id===e)return this.points[t];return null},t.prototype.getPortForPoint=function(e){return null!==this.sourcePort&&this.getFirstPoint().getID()===e.getID()?this.sourcePort:null!==this.targetPort&&this.getLastPoint().getID()===e.getID()?this.targetPort:null},t.prototype.getPointForPort=function(e){return null!==this.sourcePort&&this.sourcePort.getID()===e.getID()?this.getFirstPoint():null!==this.targetPort&&this.targetPort.getID()===e.getID()?this.getLastPoint():null},t.prototype.getFirstPoint=function(){return this.points[0]},t.prototype.getLastPoint=function(){return this.points[this.points.length-1]},t.prototype.setSourcePort=function(e){null!==e&&e.addLink(this),null!==this.sourcePort&&this.sourcePort.removeLink(this),this.sourcePort=e,this.iterateListeners(function(t,n){t.sourcePortChanged&&t.sourcePortChanged(i({},n,{port:e}))})},t.prototype.getSourcePort=function(){return this.sourcePort},t.prototype.getTargetPort=function(){return this.targetPort},t.prototype.setTargetPort=function(e){null!==e&&e.addLink(this),null!==this.targetPort&&this.targetPort.removeLink(this),this.targetPort=e,this.iterateListeners(function(t,n){t.targetPortChanged&&t.targetPortChanged(i({},n,{port:e}))})},t.prototype.point=function(e,t){return this.addPoint(this.generatePoint(e,t))},t.prototype.addLabel=function(e){e.setParent(this),this.labels.push(e)},t.prototype.getPoints=function(){return this.points},t.prototype.setPoints=function(e){var t=this;u.forEach(e,function(e){e.setParent(t)}),this.points=e},t.prototype.removePoint=function(e){this.points.splice(this.getPointIndex(e),1)},t.prototype.removePointsBefore=function(e){this.points.splice(0,this.getPointIndex(e))},t.prototype.removePointsAfter=function(e){this.points.splice(this.getPointIndex(e)+1)},t.prototype.removeMiddlePoints=function(){this.points.length>2&&this.points.splice(0,this.points.length-2)},t.prototype.addPoint=function(e,t){return void 0===t&&(t=1),e.setParent(this),this.points.splice(t,0,e),e},t.prototype.generatePoint=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),new s.PointModel(this,{x:e,y:t})},t}(a.BaseModel);t.LinkModel=l},function(e,t,n){var r=n(15),o=n(4),i=n(10),a=n(2);function s(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.diagonalMovement=e.diagonalMovement,this.heuristic=e.heuristic||i.manhattan,this.weight=e.weight||1,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=a.OnlyWhenNoObstacles:this.diagonalMovement=a.IfAtMostOneObstacle:this.diagonalMovement=a.Never),this.diagonalMovement===a.Never?this.heuristic=e.heuristic||i.manhattan:this.heuristic=e.heuristic||i.octile}s.prototype.findPath=function(e,t,n,i,a){var s,u,l,c,f,p,d,h,g=function(e,t){return e.f-t.f},v=new r(g),m=new r(g),y=a.getNodeAt(e,t),b=a.getNodeAt(n,i),_=this.heuristic,x=this.diagonalMovement,w=this.weight,k=Math.abs,E=Math.SQRT2;for(y.g=0,y.f=0,v.push(y),y.opened=1,b.g=0,b.f=0,m.push(b),b.opened=2;!v.empty()&&!m.empty();){for((s=v.pop()).closed=!0,c=0,f=(u=a.getNeighbors(s,x)).length;c<f;++c)if(!(l=u[c]).closed){if(2===l.opened)return o.biBacktrace(s,l);p=l.x,d=l.y,h=s.g+(p-s.x==0||d-s.y==0?1:E),(!l.opened||h<l.g)&&(l.g=h,l.h=l.h||w*_(k(p-n),k(d-i)),l.f=l.g+l.h,l.parent=s,l.opened?v.updateItem(l):(v.push(l),l.opened=1))}for((s=m.pop()).closed=!0,c=0,f=(u=a.getNeighbors(s,x)).length;c<f;++c)if(!(l=u[c]).closed){if(1===l.opened)return o.biBacktrace(l,s);p=l.x,d=l.y,h=s.g+(p-s.x==0||d-s.y==0?1:E),(!l.opened||h<l.g)&&(l.g=h,l.h=l.h||w*_(k(p-e),k(d-t)),l.f=l.g+l.h,l.parent=s,l.opened?m.updateItem(l):(m.push(l),l.opened=2))}}return[]},e.exports=s},function(e,t,n){var r=n(15),o=n(4),i=n(10),a=n(2);function s(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.heuristic=e.heuristic||i.manhattan,this.weight=e.weight||1,this.diagonalMovement=e.diagonalMovement,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=a.OnlyWhenNoObstacles:this.diagonalMovement=a.IfAtMostOneObstacle:this.diagonalMovement=a.Never),this.diagonalMovement===a.Never?this.heuristic=e.heuristic||i.manhattan:this.heuristic=e.heuristic||i.octile}s.prototype.findPath=function(e,t,n,i,a){var s,u,l,c,f,p,d,h,g=new r(function(e,t){return e.f-t.f}),v=a.getNodeAt(e,t),m=a.getNodeAt(n,i),y=this.heuristic,b=this.diagonalMovement,_=this.weight,x=Math.abs,w=Math.SQRT2;for(v.g=0,v.f=0,g.push(v),v.opened=!0;!g.empty();){if((s=g.pop()).closed=!0,s===m)return o.backtrace(m);for(c=0,f=(u=a.getNeighbors(s,b)).length;c<f;++c)(l=u[c]).closed||(p=l.x,d=l.y,h=s.g+(p-s.x==0||d-s.y==0?1:w),(!l.opened||h<l.g)&&(l.g=h,l.h=l.h||_*y(x(p-n),x(d-i)),l.f=l.g+l.h,l.parent=s,l.opened?g.updateItem(l):(g.push(l),l.opened=!0)))}return[]},e.exports=s},function(e,t){e.exports=function(e,t,n){this.x=e,this.y=t,this.walkable=void 0===n||n}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=function(e){function t(t){var n=e.call(this,"srd-node",t)||this;return n.state={},n}return o(t,e),t.prototype.shouldComponentUpdate=function(){return this.props.diagramEngine.canEntityRepaint(this.props.node)},t.prototype.getClassName=function(){return"node "+e.prototype.getClassName.call(this)+(this.props.node.isSelected()?this.bem("--selected"):"")},t.prototype.render=function(){return a.createElement("div",i({},this.getProps(),{"data-nodeid":this.props.node.id,style:{top:this.props.node.y,left:this.props.node.x}}),this.props.children)},t}(n(3).BaseWidget);t.NodeWidget=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),u=n(25),l=function(e){function t(t){var n=e.call(this,"srd-node-layer",t)||this;return n.updateNodeDimensions=function(){if(!n.props.diagramEngine.nodesRendered){var e=n.props.diagramEngine.getDiagramModel();s.map(e.getNodes(),function(e){e.updateDimensions(n.props.diagramEngine.getNodeDimensions(e))})}},n.state={},n}return o(t,e),t.prototype.componentDidUpdate=function(){this.updateNodeDimensions(),this.props.diagramEngine.nodesRendered=!0},t.prototype.render=function(){var e=this,t=this.props.diagramEngine.getDiagramModel();return a.createElement("div",i({},this.getProps(),{style:{transform:"translate("+t.getOffsetX()+"px,"+t.getOffsetY()+"px) scale("+t.getZoomLevel()/100+")"}}),s.map(t.getNodes(),function(t){return a.createElement(u.NodeWidget,{diagramEngine:e.props.diagramEngine,key:t.id,node:t},e.props.diagramEngine.generateWidgetForNode(t))}))},t}(n(3).BaseWidget);t.NodeLayerWidget=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=e.call(this,"srd-link",t)||this;return n.state={},n}return o(t,e),t.prototype.shouldComponentUpdate=function(){return this.props.diagramEngine.canEntityRepaint(this.props.link)},t.prototype.render=function(){return this.props.children},t}(n(3).BaseWidget);t.LinkWidget=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(27),u=n(0),l=function(e){function t(t){var n=e.call(this,"srd-link-layer",t)||this;return n.state={},n}return o(t,e),t.prototype.render=function(){var e=this,t=this.props.diagramEngine.getDiagramModel();return a.createElement("svg",i({},this.getProps(),{style:{transform:"translate("+t.getOffsetX()+"px,"+t.getOffsetY()+"px) scale("+t.getZoomLevel()/100+")"}}),this.props.diagramEngine.canvas&&u.map(t.getLinks(),function(t){if(e.props.diagramEngine.nodesRendered&&!e.props.diagramEngine.linksThatHaveInitiallyRendered[t.id]){if(null!==t.sourcePort)try{var n=e.props.diagramEngine.getPortCenter(t.sourcePort);t.points[0].updateLocation(n);var r=e.props.diagramEngine.getPortCoords(t.sourcePort);t.sourcePort.updateCoords(r),e.props.diagramEngine.linksThatHaveInitiallyRendered[t.id]=!0}catch(e){}if(null!==t.targetPort)try{n=e.props.diagramEngine.getPortCenter(t.targetPort);u.last(t.points).updateLocation(n);r=e.props.diagramEngine.getPortCoords(t.targetPort);t.targetPort.updateCoords(r),e.props.diagramEngine.linksThatHaveInitiallyRendered[t.id]=!0}catch(e){}}var o=e.props.diagramEngine.generateWidgetForLink(t);if(!o)throw new Error("no link generated for type: "+t.getType());return a.createElement(s.LinkWidget,{key:t.getID(),link:t,diagramEngine:e.props.diagramEngine},a.cloneElement(o,{pointAdded:e.props.pointAdded}))}))},t}(n(3).BaseWidget);t.LinkLayerWidget=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.mouseX2=t,r.mouseY2=n,r}return o(t,e),t.prototype.getBoxDimensions=function(){return{left:this.mouseX2>this.mouseX?this.mouseX:this.mouseX2,top:this.mouseY2>this.mouseY?this.mouseY:this.mouseY2,width:Math.abs(this.mouseX2-this.mouseX),height:Math.abs(this.mouseY2-this.mouseY),right:this.mouseX2<this.mouseX?this.mouseX:this.mouseX2,bottom:this.mouseY2<this.mouseY?this.mouseY:this.mouseY2}},t.prototype.containsElement=function(e,t,n){var r=n.getZoomLevel()/100,o=this.getBoxDimensions();return e*r+n.getOffsetX()>o.left&&e*r+n.getOffsetX()<o.right&&t*r+n.getOffsetY()>o.top&&t*r+n.getOffsetY()<o.bottom},t}(n(11).BaseAction);t.SelectingAction=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;o.moved=!1,r.enableRepaintEntities(r.getDiagramModel().getSelectedItems());var i=r.getDiagramModel().getSelectedItems();return i=i.filter(function(e){return!r.isModelLocked(e)}),o.selectionModels=i.map(function(e){return{model:e,initialX:e.x,initialY:e.y}}),o}return o(t,e),t}(n(11).BaseAction);t.MoveItemsAction=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.initialOffsetX=r.getOffsetX(),o.initialOffsetY=r.getOffsetY(),o}return o(t,e),t}(n(11).BaseAction);t.MoveCanvasAction=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(8).AbstractFactory);t.AbstractNodeFactory=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=function(e){function t(t){var n=e.call(this,"srd-port",t)||this;return n.state={selected:!1},n}return o(t,e),t.prototype.getClassName=function(){return"port "+e.prototype.getClassName.call(this)+(this.state.selected?this.bem("--selected"):"")},t.prototype.render=function(){var e=this;return a.createElement("div",i({},this.getProps(),{onMouseEnter:function(){e.setState({selected:!0})},onMouseLeave:function(){e.setState({selected:!1})},"data-name":this.props.name,"data-nodeid":this.props.node.getID()}))},t}(n(3).BaseWidget);t.PortWidget=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(33),u=function(e){function t(t){return e.call(this,"srd-default-port",t)||this}return o(t,e),t.prototype.getClassName=function(){return e.prototype.getClassName.call(this)+(this.props.model.in?this.bem("--in"):this.bem("--out"))},t.prototype.render=function(){var e=a.createElement(s.PortWidget,{node:this.props.model.getParent(),name:this.props.model.name}),t=a.createElement("div",{className:"name"},this.props.model.label);return a.createElement("div",i({},this.getProps()),this.props.model.in?e:t,this.props.model.in?t:e)},t}(n(3).BaseWidget);t.DefaultPortLabel=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),u=n(34),l=function(e){function t(t){var n=e.call(this,"srd-default-node",t)||this;return n.state={},n}return o(t,e),t.prototype.generatePort=function(e){return a.createElement(u.DefaultPortLabel,{model:e,key:e.id})},t.prototype.render=function(){return a.createElement("div",i({},this.getProps(),{style:{background:this.props.node.color}}),a.createElement("div",{className:this.bem("__title")},a.createElement("div",{className:this.bem("__name")},this.props.node.name)),a.createElement("div",{className:this.bem("__ports")},a.createElement("div",{className:this.bem("__in")},s.map(this.props.node.getInPorts(),this.generatePort.bind(this))),a.createElement("div",{className:this.bem("__out")},s.map(this.props.node.getOutPorts(),this.generatePort.bind(this)))))},t}(n(3).BaseWidget);t.DefaultNodeWidget=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(8).AbstractFactory);t.AbstractLinkFactory=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(5),u=n(7),l=n(16),c=n(0),f=function(e){function t(t){var n=e.call(this,"srd-default-link",t)||this;return n.addPointToLink=function(e,t){if(!e.shiftKey&&!n.props.diagramEngine.isModelLocked(n.props.link)&&n.props.link.points.length-1<=n.props.diagramEngine.getMaxNumberPointsPerLink()){var r=new s.PointModel(n.props.link,n.props.diagramEngine.getRelativeMousePoint(e));r.setSelected(!0),n.forceUpdate(),n.props.link.addPoint(r,t),n.props.pointAdded(r,e)}},n.findPathAndRelativePositionToRenderLabel=function(e){for(var t=n.refPaths.map(function(e){return e.getTotalLength()}),r=t.reduce(function(e,t){return e+t},0)*(e/(n.props.link.labels.length+1)),o=0;o<n.refPaths.length;){if(r-t[o]<0)return{path:n.refPaths[o],position:r};r-=t[o],o++}},n.calculateLabelPosition=function(e,t){if(n.refLabels[e.id]){var r=n.findPathAndRelativePositionToRenderLabel(t),o=r.path,i=r.position,a=n.refLabels[e.id].offsetWidth,s=n.refLabels[e.id].offsetHeight,u=o.getPointAtLength(i),l=u.x-a/2+e.offsetX,c=u.y-s/2+e.offsetY;n.refLabels[e.id].setAttribute("style","transform: translate("+l+"px, "+c+"px);")}},n.refLabels={},n.refPaths=[],n.state={selected:!1},t.diagramEngine.isSmartRoutingEnabled()&&(n.pathFinding=new l.default(n.props.diagramEngine)),n}return o(t,e),t.prototype.calculateAllLabelPosition=function(){var e=this;c.forEach(this.props.link.labels,function(t,n){e.calculateLabelPosition(t,n+1)})},t.prototype.componentDidUpdate=function(){this.props.link.labels.length>0&&window.requestAnimationFrame(this.calculateAllLabelPosition.bind(this))},t.prototype.componentDidMount=function(){this.props.link.labels.length>0&&window.requestAnimationFrame(this.calculateAllLabelPosition.bind(this))},t.prototype.generatePoint=function(e){var t=this,n=this.props.link.points[e].x,r=this.props.link.points[e].y;return a.createElement("g",{key:"point-"+this.props.link.points[e].id},a.createElement("circle",{cx:n,cy:r,r:5,className:"point "+this.bem("__point")+(this.props.link.points[e].isSelected()?this.bem("--point-selected"):"")}),a.createElement("circle",{onMouseLeave:function(){t.setState({selected:!1})},onMouseEnter:function(){t.setState({selected:!0})},"data-id":this.props.link.points[e].id,"data-linkid":this.props.link.id,cx:n,cy:r,r:15,opacity:0,className:"point "+this.bem("__point")}))},t.prototype.generateLabel=function(e){var t=this,n=this.props.diagramEngine.canvas;return a.createElement("foreignObject",{key:e.id,className:this.bem("__label"),width:n.offsetWidth,height:n.offsetHeight},a.createElement("div",{ref:function(n){return t.refLabels[e.id]=n}},this.props.diagramEngine.getFactoryForLabel(e).generateReactWidget(this.props.diagramEngine,e)))},t.prototype.generateLink=function(e,t,n){var r=this,o=this.props,s=a.cloneElement(o.diagramEngine.getFactoryForLink(this.props.link).generateLinkSegment(this.props.link,this,this.state.selected||this.props.link.isSelected(),e),{ref:function(e){return e&&r.refPaths.push(e)}}),u=a.cloneElement(s,i({},t,{strokeLinecap:"round",onMouseLeave:function(){r.setState({selected:!1})},onMouseEnter:function(){r.setState({selected:!0})},ref:null,"data-linkid":this.props.link.getID(),strokeOpacity:this.state.selected?.1:0,strokeWidth:20,onContextMenu:function(){r.props.diagramEngine.isModelLocked(r.props.link)||(event.preventDefault(),r.props.link.remove())}}));return a.createElement("g",{key:"link-"+n},s,u)},t.prototype.isSmartRoutingApplicable=function(){var e=this.props,t=e.diagramEngine,n=e.link;return!!t.isSmartRoutingEnabled()&&(2===n.points.length&&(null!==n.sourcePort&&null!==n.targetPort))},t.prototype.render=function(){var e=this,t=this.props.diagramEngine;if(!t.nodesRendered)return null;var n=this.props.link.points,r=[];if(this.isSmartRoutingApplicable()){var o=this.pathFinding.calculateDirectPath(c.first(n),c.last(n)),s=t.getRoutingMatrix(),l=this.pathFinding.calculateLinkStartEndCoords(s,o);if(l){var f=l.start,p=l.end,d=l.pathToStart,h=l.pathToEnd,g=this.pathFinding.calculateDynamicPath(s,f,p,d,h);r.push(this.generateLink(u.Toolkit.generateDynamicPath(g),{onMouseDown:function(t){e.addPointToLink(t,1)}},"0"))}}if(0===r.length)if(2===n.length){var v=Math.abs(n[0].x-n[1].x)>Math.abs(n[0].y-n[1].y)?"x":"y";Math.abs(n[0][v]-n[1][v])<50&&5;var m=n[0],y=n[1];m[v]>y[v]&&(m=n[1],y=n[0]),r.push(this.generateLink(u.Toolkit.generateCurvePath(m,y,this.props.link.curvyness),{onMouseDown:function(t){e.addPointToLink(t,1)}},"0")),null===this.props.link.targetPort&&r.push(this.generatePoint(1))}else{for(var b=function(t){r.push(_.generateLink(u.Toolkit.generateLinePath(n[t],n[t+1]),{"data-linkid":_.props.link.id,"data-point":t,onMouseDown:function(n){e.addPointToLink(n,t+1)}},t))},_=this,x=0;x<n.length-1;x++)b(x);for(var w=1;w<n.length-1;w++)r.push(this.generatePoint(w));null===this.props.link.targetPort&&r.push(this.generatePoint(n.length-1))}return this.refPaths=[],a.createElement("g",i({},this.getProps()),r,c.map(this.props.link.labels,function(t){return e.generateLabel(t)}))},t.defaultProps={color:"black",width:3,link:null,engine:null,smooth:!1,diagramEngine:null},t}(n(3).BaseWidget);t.DefaultLinkWidget=f},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(20),a=n(0),s=n(9),u=n(7),l=function(e){function t(t,n){void 0===t&&(t="Untitled"),void 0===n&&(n="rgb(0,192,255)");var r=e.call(this,"default")||this;return r.name=t,r.color=n,r}return o(t,e),t.prototype.addInPort=function(e){return this.addPort(new i.DefaultPortModel(!0,u.Toolkit.UID(),e))},t.prototype.addOutPort=function(e){return this.addPort(new i.DefaultPortModel(!1,u.Toolkit.UID(),e))},t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.name=t.name,this.color=t.color},t.prototype.serialize=function(){return a.merge(e.prototype.serialize.call(this),{name:this.name,color:this.color})},t.prototype.getInPorts=function(){return a.filter(this.ports,function(e){return e.in})},t.prototype.getOutPorts=function(){return a.filter(this.ports,function(e){return!e.in})},t}(s.NodeModel);t.DefaultNodeModel=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=function(e){function t(t){return e.call(this,"srd-default-label",t)||this}return o(t,e),t.prototype.render=function(){return a.createElement("div",i({},this.getProps()),this.props.model.label)},t}(n(3).BaseWidget);t.DefaultLabelWidget=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(8).AbstractFactory);t.AbstractLabelFactory=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(40),s=n(18),u=n(39),l=function(e){function t(){return e.call(this,"default")||this}return o(t,e),t.prototype.generateReactWidget=function(e,t){return i.createElement(u.DefaultLabelWidget,{model:t})},t.prototype.getNewInstance=function(e){return new s.DefaultLabelModel},t}(a.AbstractLabelFactory);t.DefaultLabelFactory=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(8).AbstractFactory);t.AbstractPortFactory=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(20),a=function(e){function t(){return e.call(this,"default")||this}return o(t,e),t.prototype.getNewInstance=function(e){return new i.DefaultPortModel(!0,"unknown")},t}(n(42).AbstractPortFactory);t.DefaultPortFactory=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(13),s=n(0),u=n(21),l=n(9),c=n(12),f=n(5),p=function(e){function t(){var t=e.call(this)||this;return t.links={},t.nodes={},t.offsetX=0,t.offsetY=0,t.zoom=100,t.rendered=!1,t.gridSize=0,t}return o(t,e),t.prototype.setGridSize=function(e){void 0===e&&(e=0),this.gridSize=e,this.iterateListeners(function(t,n){t.gridUpdated&&t.gridUpdated(i({},n,{size:e}))})},t.prototype.getGridPosition=function(e){return 0===this.gridSize?e:this.gridSize*Math.floor((e+this.gridSize/2)/this.gridSize)},t.prototype.deSerializeDiagram=function(e,t){var n=this;this.deSerialize(e,t),this.offsetX=e.offsetX,this.offsetY=e.offsetY,this.zoom=e.zoom,this.gridSize=e.gridSize,s.forEach(e.nodes,function(e){var r=t.getNodeFactory(e.type).getNewInstance(e);r.setParent(n),r.deSerialize(e,t),n.addNode(r)}),s.forEach(e.links,function(e){var r=t.getLinkFactory(e.type).getNewInstance();r.setParent(n),r.deSerialize(e,t),n.addLink(r)})},t.prototype.serializeDiagram=function(){return s.merge(this.serialize(),{offsetX:this.offsetX,offsetY:this.offsetY,zoom:this.zoom,gridSize:this.gridSize,links:s.map(this.links,function(e){return e.serialize()}),nodes:s.map(this.nodes,function(e){return e.serialize()})})},t.prototype.clearSelection=function(e){void 0===e&&(e=null),s.forEach(this.getSelectedItems(),function(t){e&&e.getID()===t.getID()||t.setSelected(!1)})},t.prototype.getSelectedItems=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];Array.isArray(e)||(e=[e]);var n=[];return n=(n=(n=n.concat(s.flatMap(this.nodes,function(e){return e.getSelectedEntities()}))).concat(s.flatMap(this.links,function(e){return e.getSelectedEntities()}))).concat(s.flatMap(this.links,function(e){return s.flatMap(e.points,function(e){return e.getSelectedEntities()})})),n=s.uniq(n),e.length>0&&(n=s.filter(s.uniq(n),function(t){return!!(s.includes(e,"node")&&t instanceof l.NodeModel)||(!!(s.includes(e,"link")&&t instanceof u.LinkModel)||(!!(s.includes(e,"port")&&t instanceof c.PortModel)||!!(s.includes(e,"point")&&t instanceof f.PointModel)))})),n},t.prototype.setZoomLevel=function(e){this.zoom=e,this.iterateListeners(function(t,n){t.zoomUpdated&&t.zoomUpdated(i({},n,{zoom:e}))})},t.prototype.setOffset=function(e,t){this.offsetX=e,this.offsetY=t,this.iterateListeners(function(n,r){n.offsetUpdated&&n.offsetUpdated(i({},r,{offsetX:e,offsetY:t}))})},t.prototype.setOffsetX=function(e){var t=this;this.offsetX=e,this.iterateListeners(function(n,r){n.offsetUpdated&&n.offsetUpdated(i({},r,{offsetX:e,offsetY:t.offsetY}))})},t.prototype.setOffsetY=function(e){var t=this;this.offsetY=e,this.iterateListeners(function(e,n){e.offsetUpdated&&e.offsetUpdated(i({},n,{offsetX:t.offsetX,offsetY:t.offsetY}))})},t.prototype.getOffsetY=function(){return this.offsetY},t.prototype.getOffsetX=function(){return this.offsetX},t.prototype.getZoomLevel=function(){return this.zoom},t.prototype.getNode=function(e){return e instanceof l.NodeModel?e:this.nodes[e]?this.nodes[e]:null},t.prototype.getLink=function(e){return e instanceof u.LinkModel?e:this.links[e]?this.links[e]:null},t.prototype.addAll=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return s.forEach(t,function(t){t instanceof u.LinkModel?e.addLink(t):t instanceof l.NodeModel&&e.addNode(t)}),t},t.prototype.addLink=function(e){var t=this;return e.addListener({entityRemoved:function(){t.removeLink(e)}}),this.links[e.getID()]=e,this.iterateListeners(function(t,n){t.linksUpdated&&t.linksUpdated(i({},n,{link:e,isCreated:!0}))}),e},t.prototype.addNode=function(e){var t=this;return e.addListener({entityRemoved:function(){t.removeNode(e)}}),this.nodes[e.getID()]=e,this.iterateListeners(function(t,n){t.nodesUpdated&&t.nodesUpdated(i({},n,{node:e,isCreated:!0}))}),e},t.prototype.removeLink=function(e){e=this.getLink(e),delete this.links[e.getID()],this.iterateListeners(function(t,n){t.linksUpdated&&t.linksUpdated(i({},n,{link:e,isCreated:!1}))})},t.prototype.removeNode=function(e){e=this.getNode(e),delete this.nodes[e.getID()],this.iterateListeners(function(t,n){t.nodesUpdated&&t.nodesUpdated(i({},n,{node:e,isCreated:!1}))})},t.prototype.getLinks=function(){return this.links},t.prototype.getNodes=function(){return this.nodes},t}(a.BaseEntity);t.DiagramModel=p},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(7)),r(n(13)),r(n(49)),r(n(38)),r(n(20)),r(n(19)),r(n(18)),r(n(48)),r(n(47)),r(n(43)),r(n(41)),r(n(37)),r(n(39)),r(n(35)),r(n(34)),r(n(8)),r(n(40)),r(n(36)),r(n(32)),r(n(42)),r(n(16)),r(n(11)),r(n(31)),r(n(30)),r(n(29)),r(n(6)),r(n(44)),r(n(21)),r(n(9)),r(n(5)),r(n(12)),r(n(17)),r(n(46)),r(n(27)),r(n(25)),r(n(33)),r(n(3)),r(n(28)),r(n(26))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),u=n(28),l=n(26),c=n(7),f=n(31),p=n(30),d=n(29),h=n(9),g=n(5),v=n(12),m=function(e){function t(t){var n=e.call(this,"srd-diagram",t)||this;return n.onKeyUpPointer=null,n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n.state={action:null,wasMoved:!1,renderedNodes:!1,windowListener:null,diagramEngineListener:null,document:null},n}return o(t,e),t.prototype.componentWillUnmount=function(){this.props.diagramEngine.removeListener(this.state.diagramEngineListener),this.props.diagramEngine.setCanvas(null),window.removeEventListener("keyup",this.onKeyUpPointer),window.removeEventListener("mouseUp",this.onMouseUp),window.removeEventListener("mouseMove",this.onMouseMove)},t.prototype.componentWillReceiveProps=function(e){var t=this;if(this.props.diagramEngine!==e.diagramEngine){this.props.diagramEngine.removeListener(this.state.diagramEngineListener);var n=e.diagramEngine.addListener({repaintCanvas:function(){return t.forceUpdate()}});this.setState({diagramEngineListener:n})}},t.prototype.componentWillUpdate=function(e){this.props.diagramEngine.diagramModel.id!==e.diagramEngine.diagramModel.id&&(this.setState({renderedNodes:!1}),e.diagramEngine.diagramModel.rendered=!0),e.diagramEngine.diagramModel.rendered||(this.setState({renderedNodes:!1}),e.diagramEngine.diagramModel.rendered=!0)},t.prototype.componentDidUpdate=function(){this.state.renderedNodes||this.setState({renderedNodes:!0})},t.prototype.componentDidMount=function(){var e=this;this.onKeyUpPointer=this.onKeyUp.bind(this),this.setState({document:document,renderedNodes:!0,diagramEngineListener:this.props.diagramEngine.addListener({repaintCanvas:function(){e.forceUpdate()}})}),window.addEventListener("keyup",this.onKeyUpPointer,!1),window.focus()},t.prototype.getMouseElement=function(e){var t=e.target,n=this.props.diagramEngine.diagramModel,r=c.Toolkit.closest(t,".port[data-name]");if(r){var o=c.Toolkit.closest(t,".node[data-nodeid]");return{model:n.getNode(o.getAttribute("data-nodeid")).getPort(r.getAttribute("data-name")),element:r}}return(r=c.Toolkit.closest(t,".point[data-id]"))?{model:n.getLink(r.getAttribute("data-linkid")).getPointModel(r.getAttribute("data-id")),element:r}:(r=c.Toolkit.closest(t,"[data-linkid]"))?{model:n.getLink(r.getAttribute("data-linkid")),element:r}:(r=c.Toolkit.closest(t,".node[data-nodeid]"))?{model:n.getNode(r.getAttribute("data-nodeid")),element:r}:null},t.prototype.fireAction=function(){this.state.action&&this.props.actionStillFiring&&this.props.actionStillFiring(this.state.action)},t.prototype.stopFiringAction=function(e){this.props.actionStoppedFiring&&!e&&this.props.actionStoppedFiring(this.state.action),this.setState({action:null})},t.prototype.startFiringAction=function(e){var t=!0;this.props.actionStartedFiring&&(t=this.props.actionStartedFiring(e)),t&&this.setState({action:e})},t.prototype.onMouseMove=function(e){var t=this,n=this.props.diagramEngine,r=n.getDiagramModel();if(this.state.action instanceof d.SelectingAction){var o=n.getRelativePoint(e.clientX,e.clientY);return s.forEach(r.getNodes(),function(e){t.state.action.containsElement(e.x,e.y,r)&&e.setSelected(!0)}),s.forEach(r.getLinks(),function(e){var n=!0;s.forEach(e.points,function(e){t.state.action.containsElement(e.x,e.y,r)?e.setSelected(!0):n=!1}),n&&e.setSelected(!0)}),this.state.action.mouseX2=o.x,this.state.action.mouseY2=o.y,this.fireAction(),void this.setState({action:this.state.action})}if(this.state.action instanceof p.MoveItemsAction){var i=e.clientX-this.state.action.mouseX,a=e.clientY-this.state.action.mouseY,u=r.getZoomLevel()/100;s.forEach(this.state.action.selectionModels,function(e){e.model instanceof h.NodeModel||e.model instanceof g.PointModel&&!e.model.isConnectedToPort()?(e.model.x=r.getGridPosition(e.initialX+i/u),e.model.y=r.getGridPosition(e.initialY+a/u),e.model instanceof h.NodeModel&&s.forEach(e.model.getPorts(),function(e){var n=t.props.diagramEngine.getPortCoords(e);e.updateCoords(n)}),n.isSmartRoutingEnabled()&&n.calculateRoutingMatrix()):e.model instanceof g.PointModel&&(e.model.x=e.initialX+r.getGridPosition(i/u),e.model.y=e.initialY+r.getGridPosition(a/u))}),n.isSmartRoutingEnabled()&&n.calculateCanvasMatrix(),this.fireAction(),this.state.wasMoved?this.forceUpdate():this.setState({wasMoved:!0})}else this.state.action instanceof f.MoveCanvasAction&&this.props.allowCanvasTranslation&&(r.setOffset(this.state.action.initialOffsetX+(e.clientX-this.state.action.mouseX),this.state.action.initialOffsetY+(e.clientY-this.state.action.mouseY)),this.fireAction(),this.forceUpdate())},t.prototype.onKeyUp=function(e){var t=this;-1!==this.props.deleteKeys.indexOf(e.keyCode)&&(s.forEach(this.props.diagramEngine.getDiagramModel().getSelectedItems(),function(e){t.props.diagramEngine.isModelLocked(e)||e.remove()}),this.forceUpdate())},t.prototype.onMouseUp=function(e){var t=this,n=this.props.diagramEngine;if(this.state.action instanceof p.MoveItemsAction){var r=this.getMouseElement(e);s.forEach(this.state.action.selectionModels,function(e){if(e.model instanceof g.PointModel&&r&&r.model instanceof v.PortModel&&!n.isModelLocked(r.model)){var o=e.model.getLink();if(null!==o.getTargetPort())if(o.getTargetPort()!==r.model&&o.getSourcePort()!==r.model){var i=o.getTargetPort(),a=o.clone({});a.setSourcePort(r.model),a.setTargetPort(i),o.setTargetPort(r.model),i.removeLink(o),a.removePointsBefore(a.getPoints()[o.getPointIndex(e.model)]),o.removePointsAfter(e.model),n.getDiagramModel().addLink(a)}else o.getTargetPort()===r.model?o.removePointsAfter(e.model):o.getSourcePort()===r.model&&o.removePointsBefore(e.model);else o.setTargetPort(r.model);delete t.props.diagramEngine.linksThatHaveInitiallyRendered[o.getID()]}}),!this.props.allowLooseLinks&&this.state.wasMoved&&s.forEach(this.state.action.selectionModels,function(e){if(e.model instanceof g.PointModel){var t=e.model.getLink();null!==t.getSourcePort()&&null!==t.getTargetPort()||t.remove()}}),s.forEach(this.state.action.selectionModels,function(e){if(e.model instanceof g.PointModel){var t=e.model.getLink(),n=t.getSourcePort(),r=t.getTargetPort();null!==n&&null!==r&&(n.canLinkToPort(r)?s.some(s.values(r.getLinks()),function(e){return e!==t&&(e.getSourcePort()===n||e.getTargetPort()===n)})&&t.remove():t.remove())}}),n.clearRepaintEntities(),this.stopFiringAction(!this.state.wasMoved)}else n.clearRepaintEntities(),this.stopFiringAction();this.state.document.removeEventListener("mousemove",this.onMouseMove),this.state.document.removeEventListener("mouseup",this.onMouseUp)},t.prototype.drawSelectionBox=function(){var e=this.state.action.getBoxDimensions();return a.createElement("div",{className:this.bem("__selector"),style:{top:e.top,left:e.left,width:e.width,height:e.height}})},t.prototype.render=function(){var e=this,t=this.props.diagramEngine;t.setMaxNumberPointsPerLink(this.props.maxNumberPointsPerLink),t.setSmartRoutingStatus(this.props.smartRouting);var n=t.getDiagramModel();return a.createElement("div",i({},this.getProps(),{ref:function(t){t&&e.props.diagramEngine.setCanvas(t)},onWheel:function(r){if(e.props.allowCanvasZoom){r.preventDefault(),r.stopPropagation();var o=n.getZoomLevel()/100,i=e.props.inverseZoom?-r.deltaY:r.deltaY;r.ctrlKey&&i%1!=0?i/=3:i/=60,n.getZoomLevel()+i>10&&n.setZoomLevel(n.getZoomLevel()+i);var a=n.getZoomLevel()/100,s=r.currentTarget.getBoundingClientRect(),u=s.width,l=s.height,c=u*a-u*o,f=l*a-l*o,p=r.clientX-s.left,d=r.clientY-s.top,h=(p-n.getOffsetX())/o/u,g=(d-n.getOffsetY())/o/l;n.setOffset(n.getOffsetX()-c*h,n.getOffsetY()-f*g),t.enableRepaintEntities([]),e.forceUpdate()}},onMouseDown:function(r){e.setState(i({},e.state,{wasMoved:!1})),t.clearRepaintEntities();var o=e.getMouseElement(r);if(null===o)if(r.shiftKey){var a=t.getRelativePoint(r.clientX,r.clientY);e.startFiringAction(new d.SelectingAction(a.x,a.y))}else n.clearSelection(),e.startFiringAction(new f.MoveCanvasAction(r.clientX,r.clientY,n));else if(o.model instanceof v.PortModel)if(e.props.diagramEngine.isModelLocked(o.model))n.clearSelection();else{a=t.getRelativeMousePoint(r);var s=o.model,u=s.createLinkModel();u.setSourcePort(s),u&&(u.removeMiddlePoints(),u.getSourcePort()!==s&&u.setSourcePort(s),u.setTargetPort(null),u.getFirstPoint().updateLocation(a),u.getLastPoint().updateLocation(a),n.clearSelection(),u.getLastPoint().setSelected(!0),n.addLink(u),e.startFiringAction(new p.MoveItemsAction(r.clientX,r.clientY,t)))}else r.shiftKey||o.model.isSelected()||n.clearSelection(),o.model.setSelected(!0),e.startFiringAction(new p.MoveItemsAction(r.clientX,r.clientY,t));e.state.document.addEventListener("mousemove",e.onMouseMove),e.state.document.addEventListener("mouseup",e.onMouseUp)}}),this.state.renderedNodes&&a.createElement(u.LinkLayerWidget,{diagramEngine:t,pointAdded:function(r,o){e.state.document.addEventListener("mousemove",e.onMouseMove),e.state.document.addEventListener("mouseup",e.onMouseUp),o.stopPropagation(),n.clearSelection(r),e.setState({action:new p.MoveItemsAction(o.clientX,o.clientY,t)})}}),a.createElement(l.NodeLayerWidget,{diagramEngine:t}),this.state.action instanceof d.SelectingAction&&this.drawSelectionBox())},t.defaultProps={diagramEngine:null,allowLooseLinks:!0,allowCanvasTranslation:!0,allowCanvasZoom:!0,inverseZoom:!1,maxNumberPointsPerLink:1/0,smartRouting:!1,deleteKeys:[46,8]},t}(n(3).BaseWidget);t.DiagramWidget=m},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(38),a=n(1),s=n(35),u=function(e){function t(){return e.call(this,"default")||this}return o(t,e),t.prototype.generateReactWidget=function(e,t){return a.createElement(s.DefaultNodeWidget,{node:t,diagramEngine:e})},t.prototype.getNewInstance=function(e){return new i.DefaultNodeModel},t}(n(32).AbstractNodeFactory);t.DefaultNodeFactory=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(37),s=n(36),u=n(19),l=function(e){function t(){return e.call(this,"default")||this}return o(t,e),t.prototype.generateReactWidget=function(e,t){return i.createElement(a.DefaultLinkWidget,{link:t,diagramEngine:e})},t.prototype.getNewInstance=function(e){return new u.DefaultLinkModel},t.prototype.generateLinkSegment=function(e,t,n,r){return i.createElement("path",{className:n?t.bem("--path-selected"):"",strokeWidth:e.width,stroke:e.color,d:r})},t}(s.AbstractLinkFactory);t.DefaultLinkFactory=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),a=n(44),s=n(0),u=n(9),l=n(5),c=n(45),f=n(16),p=n(43),d=n(41),h=n(7),g=function(e){function t(){var t=e.call(this)||this;return t.canvasMatrix=[],t.routingMatrix=[],t.hAdjustmentFactor=0,t.vAdjustmentFactor=0,t.calculateMatrixDimensions=function(){var e=s.values(t.diagramModel.nodes).map(function(e){return{x:e.x,width:e.width,y:e.y,height:e.height}}),n=s.values(t.diagramModel.links),r=s.flatMap(n.map(function(e){return[e.sourcePort,e.targetPort]})).filter(function(e){return null!==e}).map(function(e){return{x:e.x,width:e.width,y:e.y,height:e.height}}),o=s.flatMap(n.map(function(e){return e.points})).map(function(e){return{x:e.x,width:0,y:e.y,height:0}}),i=t.canvas,a=Math.floor(Math.min(s.minBy(s.concat(e,r,o),function(e){return e.x}).x,0)/f.ROUTING_SCALING_FACTOR)*f.ROUTING_SCALING_FACTOR,u=s.maxBy(s.concat(e,r,o),function(e){return e.x+e.width}),l=Math.max(u.x+u.width,i.offsetWidth),c=Math.floor(Math.min(s.minBy(s.concat(e,r,o),function(e){return e.y}).y,0)/f.ROUTING_SCALING_FACTOR)*f.ROUTING_SCALING_FACTOR,p=s.maxBy(s.concat(e,r,o),function(e){return e.y+e.height}),d=Math.max(p.y+p.height,i.offsetHeight);return{width:Math.ceil(Math.abs(a)+l),hAdjustmentFactor:Math.abs(a)/f.ROUTING_SCALING_FACTOR+1,height:Math.ceil(Math.abs(c)+d),vAdjustmentFactor:Math.abs(c)/f.ROUTING_SCALING_FACTOR+1}},t.markNodes=function(e){s.values(t.diagramModel.nodes).forEach(function(n){for(var r=Math.floor(n.x/f.ROUTING_SCALING_FACTOR),o=Math.ceil((n.x+n.width)/f.ROUTING_SCALING_FACTOR),i=Math.floor(n.y/f.ROUTING_SCALING_FACTOR),a=Math.ceil((n.y+n.height)/f.ROUTING_SCALING_FACTOR),s=r-1;s<=o+1;s++)for(var u=i-1;u<a+1;u++)t.markMatrixPoint(e,t.translateRoutingX(s),t.translateRoutingY(u))})},t.markPorts=function(e){s.flatMap(s.values(t.diagramModel.links).map(function(e){return[].concat(e.sourcePort,e.targetPort)})).filter(function(e){return null!==e}).forEach(function(n){for(var r=Math.floor(n.x/f.ROUTING_SCALING_FACTOR),o=Math.ceil((n.x+n.width)/f.ROUTING_SCALING_FACTOR),i=Math.floor(n.y/f.ROUTING_SCALING_FACTOR),a=Math.ceil((n.y+n.height)/f.ROUTING_SCALING_FACTOR),s=r-1;s<=o+1;s++)for(var u=i-1;u<a+1;u++)t.markMatrixPoint(e,t.translateRoutingX(s),t.translateRoutingY(u))})},t.markMatrixPoint=function(e,t,n){void 0!==e[n]&&void 0!==e[n][t]&&(e[n][t]=1)},t.diagramModel=new a.DiagramModel,t.nodeFactories={},t.linkFactories={},t.portFactories={},t.labelFactories={},t.canvas=null,t.paintableWidgets=null,t.linksThatHaveInitiallyRendered={},h.Toolkit.TESTING&&(h.Toolkit.TESTING_UID=0,window&&(window.diagram_instance=t)),t}return o(t,e),t.prototype.installDefaultFactories=function(){this.registerNodeFactory(new c.DefaultNodeFactory),this.registerLinkFactory(new c.DefaultLinkFactory),this.registerPortFactory(new p.DefaultPortFactory),this.registerLabelFactory(new d.DefaultLabelFactory)},t.prototype.repaintCanvas=function(){this.iterateListeners(function(e){e.repaintCanvas&&e.repaintCanvas()})},t.prototype.clearRepaintEntities=function(){this.paintableWidgets=null},t.prototype.enableRepaintEntities=function(e){var t=this;this.paintableWidgets={},e.forEach(function(e){e instanceof u.NodeModel&&s.forEach(e.getPorts(),function(e){s.forEach(e.getLinks(),function(e){t.paintableWidgets[e.getID()]=!0})}),e instanceof l.PointModel&&(t.paintableWidgets[e.getLink().getID()]=!0),t.paintableWidgets[e.getID()]=!0})},t.prototype.isModelLocked=function(e){return!!this.diagramModel.isLocked()||e.isLocked()},t.prototype.recalculatePortsVisually=function(){this.nodesRendered=!1,this.linksThatHaveInitiallyRendered={}},t.prototype.canEntityRepaint=function(e){return null===this.paintableWidgets||void 0!==this.paintableWidgets[e.getID()]},t.prototype.setCanvas=function(e){this.canvas=e},t.prototype.setDiagramModel=function(e){this.diagramModel=e,this.recalculatePortsVisually()},t.prototype.getDiagramModel=function(){return this.diagramModel},
  2. //!-------------- FACTORIES ------------
  3. t.prototype.getNodeFactories=function(){return this.nodeFactories},t.prototype.getLinkFactories=function(){return this.linkFactories},t.prototype.getLabelFactories=function(){return this.labelFactories},t.prototype.registerLabelFactory=function(e){this.labelFactories[e.getType()]=e,this.iterateListeners(function(e){e.labelFactoriesUpdated&&e.labelFactoriesUpdated()})},t.prototype.registerPortFactory=function(e){this.portFactories[e.getType()]=e,this.iterateListeners(function(e){e.portFactoriesUpdated&&e.portFactoriesUpdated()})},t.prototype.registerNodeFactory=function(e){this.nodeFactories[e.getType()]=e,this.iterateListeners(function(e){e.nodeFactoriesUpdated&&e.nodeFactoriesUpdated()})},t.prototype.registerLinkFactory=function(e){this.linkFactories[e.getType()]=e,this.iterateListeners(function(e){e.linkFactoriesUpdated&&e.linkFactoriesUpdated()})},t.prototype.getPortFactory=function(e){if(this.portFactories[e])return this.portFactories[e];throw new Error("cannot find factory for port of type: ["+e+"]")},t.prototype.getNodeFactory=function(e){if(this.nodeFactories[e])return this.nodeFactories[e];throw new Error("cannot find factory for node of type: ["+e+"]")},t.prototype.getLinkFactory=function(e){if(this.linkFactories[e])return this.linkFactories[e];throw new Error("cannot find factory for link of type: ["+e+"]")},t.prototype.getLabelFactory=function(e){if(this.labelFactories[e])return this.labelFactories[e];throw new Error("cannot find factory for label of type: ["+e+"]")},t.prototype.getFactoryForNode=function(e){return this.getNodeFactory(e.getType())},t.prototype.getFactoryForLink=function(e){return this.getLinkFactory(e.getType())},t.prototype.getFactoryForLabel=function(e){return this.getLabelFactory(e.getType())},t.prototype.generateWidgetForLink=function(e){var t=this.getFactoryForLink(e);if(!t)throw new Error("Cannot find link factory for link: "+e.getType());return t.generateReactWidget(this,e)},t.prototype.generateWidgetForNode=function(e){var t=this.getFactoryForNode(e);if(!t)throw new Error("Cannot find widget factory for node: "+e.getType());return t.generateReactWidget(this,e)},t.prototype.getRelativeMousePoint=function(e){var t=this.getRelativePoint(e.clientX,e.clientY);return{x:(t.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100),y:(t.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)}},t.prototype.getRelativePoint=function(e,t){var n=this.canvas.getBoundingClientRect();return{x:e-n.left,y:t-n.top}},t.prototype.getNodeElement=function(e){var t=this.canvas.querySelector('.node[data-nodeid="'+e.getID()+'"]');if(null===t)throw new Error("Cannot find Node element with nodeID: ["+e.getID()+"]");return t},t.prototype.getNodePortElement=function(e){var t=this.canvas.querySelector('.port[data-name="'+e.getName()+'"][data-nodeid="'+e.getParent().getID()+'"]');if(null===t)throw new Error("Cannot find Node Port element with nodeID: ["+e.getParent().getID()+"] and name: ["+e.getName()+"]");return t},t.prototype.getPortCenter=function(e){var t=this.getNodePortElement(e),n=t.getBoundingClientRect(),r=this.getRelativePoint(n.left,n.top);return{x:t.offsetWidth/2+(r.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100),y:t.offsetHeight/2+(r.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)}},t.prototype.getPortCoords=function(e){var t=this.getNodePortElement(e).getBoundingClientRect(),n=this.canvas.getBoundingClientRect();return{x:(t.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100)-n.left,y:(t.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)-n.top,width:t.width,height:t.height}},t.prototype.getNodeDimensions=function(e){if(!this.canvas)return{width:0,height:0};var t=this.getNodeElement(e).getBoundingClientRect();return{width:t.width,height:t.height}},t.prototype.getMaxNumberPointsPerLink=function(){return this.maxNumberPointsPerLink},t.prototype.setMaxNumberPointsPerLink=function(e){this.maxNumberPointsPerLink=e},t.prototype.isSmartRoutingEnabled=function(){return!!this.smartRouting},t.prototype.setSmartRoutingStatus=function(e){this.smartRouting=e},t.prototype.getCanvasMatrix=function(){return 0===this.canvasMatrix.length&&this.calculateCanvasMatrix(),this.canvasMatrix},t.prototype.calculateCanvasMatrix=function(){var e=this.calculateMatrixDimensions(),t=e.width,n=e.hAdjustmentFactor,r=e.height,o=e.vAdjustmentFactor;this.hAdjustmentFactor=n,this.vAdjustmentFactor=o;var i=Math.ceil(t/f.ROUTING_SCALING_FACTOR),a=Math.ceil(r/f.ROUTING_SCALING_FACTOR);this.canvasMatrix=s.range(0,a).map(function(){return new Array(i).fill(0)})},t.prototype.getRoutingMatrix=function(){return 0===this.routingMatrix.length&&this.calculateRoutingMatrix(),this.routingMatrix},t.prototype.calculateRoutingMatrix=function(){var e=s.cloneDeep(this.getCanvasMatrix());this.markNodes(e),this.markPorts(e),this.routingMatrix=e},t.prototype.translateRoutingX=function(e,t){return void 0===t&&(t=!1),e+this.hAdjustmentFactor*(t?-1:1)},t.prototype.translateRoutingY=function(e,t){return void 0===t&&(t=!1),e+this.vAdjustmentFactor*(t?-1:1)},t.prototype.zoomToFit=function(){var e=this.canvas.clientWidth/this.canvas.scrollWidth,t=this.canvas.clientHeight/this.canvas.scrollHeight,n=e<t?e:t;this.diagramModel.setZoomLevel(this.diagramModel.getZoomLevel()*n),this.diagramModel.setOffset(0,0),this.repaintCanvas()},t}(i.BaseEntity);t.DiagramEngine=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(e){return e*e},i=function(e,t){var n=r(e,2),i=n[0],a=n[1],s=r(t,2),u=s[0],l=s[1];return Math.sqrt(o(i-u)+o(a-l))};t.default={distPointToPoint:i,distPointToParabol:function(e,t){var n=i(e,t);return 0==n?1/0:o(n)/(2*Math.abs(e[1]-t[1]))},circumCenter:function(e,t,n){var r=(e[0]-n[0])*(t[1]-n[1])-(t[0]-n[0])*(e[1]-n[1]);return 0==r?[1/0,1/0]:[(((e[0]-n[0])*(e[0]+n[0])+(e[1]-n[1])*(e[1]+n[1]))/2*(t[1]-n[1])-((t[0]-n[0])*(t[0]+n[0])+(t[1]-n[1])*(t[1]+n[1]))/2*(e[1]-n[1]))/r,(((t[0]-n[0])*(t[0]+n[0])+(t[1]-n[1])*(t[1]+n[1]))/2*(e[0]-n[0])-((e[0]-n[0])*(e[0]+n[0])+(e[1]-n[1])*(e[1]+n[1]))/2*(t[0]-n[0]))/r]},parabolsCrossX:function(e,t,n){if(e[1]===t[1])return[(e[0]+t[0])/2,(e[0]+t[0])/2];var r=(e[1]*t[0]-e[0]*t[1]+e[0]*n-t[0]*n+Math.sqrt((e[0]*e[0]+e[1]*e[1]-2*e[0]*t[0]+t[0]*t[0]-2*e[1]*t[1]+t[1]*t[1])*(e[1]*t[1]-e[1]*n-t[1]*n+n*n)))/(e[1]-t[1]),o=(e[1]*t[0]-e[0]*t[1]+e[0]*n-t[0]*n-Math.sqrt((e[0]*e[0]+e[1]*e[1]-2*e[0]*t[0]+t[0]*t[0]-2*e[1]*t[1]+t[1]*t[1])*(e[1]*t[1]-e[1]*n-t[1]*n+n*n)))/(e[1]-t[1]);return r<o?[r,o]:[o,r]},doHalflinesCross:function(e,t){var n=arguments.length<=2||void 0===arguments[2]?1e-10:arguments[2],r=t.ps[0]-e.ps[0],o=t.ps[1]-e.ps[1];if(e.m==1/0)return e.hp*(t.m*r-o)<=n&&t.vec[0]*r<=n;if(t.m==1/0)return t.hp*(e.m*r-o)>=-n&&e.vec[0]*r>=-n;var i=t.vec[0]*e.vec[1]-t.vec[1]*e.vec[0];if(0===i)return!1;var a=(o*t.vec[0]-r*t.vec[1])/i,s=(o*e.vec[0]-r*e.vec[1])/i;return a>=-n&&s>=n||a>=n&&s>=-n},matrixTransform:function(e,t){return e.map(function(e){return{x:e.x*t[0]+e.y*t[2]+t[4],y:e.x*t[1]+e.y*t[3]+t[5]}})},transformEllipse:function(e,t,n,r){var o=Math.PI/180,i=Math.cos(n*o),a=Math.sin(n*o),s=[e*(r[0]*i+r[2]*a),e*(r[1]*i+r[3]*a),t*(-r[0]*a+r[2]*i),t*(-r[1]*a+r[3]*i)],u=s[0]*s[0]+s[2]*s[2],l=s[1]*s[1]+s[3]*s[3],c=((s[0]-s[3])*(s[0]-s[3])+(s[2]+s[1])*(s[2]+s[1]))*((s[0]+s[3])*(s[0]+s[3])+(s[2]-s[1])*(s[2]-s[1])),f=(u+l)/2;if(c<1e-10*f)return{rx:Math.sqrt(f),ry:Math.sqrt(f),ax:0,isDegenerate:!1};var p=s[0]*s[1]+s[2]*s[3],d=f+(c=Math.sqrt(c))/2,h=f-c/2,g=void 0,v=void 0,m=void 0;return(g=Math.abs(p)<1e-10&&Math.abs(d-l)<1e-10?90:180*Math.atan(Math.abs(p)>Math.abs(d-l)?(d-u)/p:p/(d-l))/Math.PI)>=0?(v=Math.sqrt(d),m=Math.sqrt(h)):(g+=90,v=Math.sqrt(h),m=Math.sqrt(d)),{rx:v,ry:m,ax:g,isDegenerate:v<1e-10*m||m<1e-10*v}}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(50),i=function e(t){var n=t||[],i=function(e){return e.command+" "+e.params.map(function(e){return t=6,function(e,t){for(var n=e.length;"0"===e.charAt(n-1);)n-=1;return"."===e.charAt(n-1)&&(n-=1),e.substr(0,n)}(e.toFixed(t));var t}).join(" ")},a=function(e,t){var n=e.command,r=e.params;switch(n){case"M":case"L":return[r[0],r[1]];case"H":return[r[0],t[1]];case"V":return[t[0],r[0]];case"Z":return null;case"C":return[r[4],r[5]];case"S":case"Q":return[r[2],r[3]];case"T":return[r[0],r[1]];case"A":return[r[5],r[6]]}},s=function(e,t,n){var r=e.params,i={V:function(e,t,n){var i=[{x:n[0],y:r[1]}],a=(0,o.matrixTransform)(i,t);return a[0].x===(0,o.matrixTransform)([{x:n[0],y:n[1]}])[0].x?{command:"V",params:[a[0].y]}:{command:"L",params:[a[0].x,a[0].y]}},H:function(e,t,n){var i=[{x:r[0],y:n[1]}],a=(0,o.matrixTransform)(i,t);return a[0].y===(0,o.matrixTransform)([{x:n[0],y:n[1]}])[0].y?{command:"H",params:[a[0].x]}:{command:"L",params:[a[0].x,a[0].y]}},A:function(e,t,n){var i=(0,o.transformEllipse)(r[0],r[1],r[2],t),a=r[4];t[0]*t[3]-t[1]*t[2]<0&&(a=a?"0":"1");var s=[{x:r[5],y:r[6]}],u=(0,o.matrixTransform)(s,t);return i.isDegenerate?{command:"L",params:[u[0].x,u[0].y]}:{command:"A",params:[i.rx,i.ry,i.ax,r[3],a,u[0].x,u[0].y]}},C:function(e,t,n){var i=[{x:r[0],y:r[1]},{x:r[2],y:r[3]},{x:r[4],y:r[5]}],a=(0,o.matrixTransform)(i,t);return{command:"C",params:[a[0].x,a[0].y,a[1].x,a[1].y,a[2].x,a[2].y]}},Z:function(e,t,n){return{command:"Z",params:[]}},default:function(e,t,n){var i=[{x:r[0],y:r[1]}],a=(0,o.matrixTransform)(i,t),s=e.params.slice(0,e.params.length);return s.splice(0,2,a[0].x,a[0].y),{command:e.command,params:s}}};return i[e.command]?i[e.command](e,t,n):i.default(e,t,n)},u=function(e,t){return function(n){var r="object"==typeof n?e.map(function(e){return n[e]}):arguments;return t.apply(null,r)}},l=function(t){return e((o=t,(i=(r=n).slice(0,r.length)).push(o),i));var r,o,i};return{moveto:u(["x","y"],function(e,t){return l({command:"M",params:[e,t]})}),lineto:u(["x","y"],function(e,t){return l({command:"L",params:[e,t]})}),hlineto:u(["x"],function(e){return l({command:"H",params:[e]})}),vlineto:u(["y"],function(e){return l({command:"V",params:[e]})}),closepath:function(){return l({command:"Z",params:[]})},curveto:u(["x1","y1","x2","y2","x","y"],function(e,t,n,r,o,i){return l({command:"C",params:[e,t,n,r,o,i]})}),smoothcurveto:u(["x2","y2","x","y"],function(e,t,n,r){return l({command:"S",params:[e,t,n,r]})}),qcurveto:u(["x1","y1","x","y"],function(e,t,n,r){return l({command:"Q",params:[e,t,n,r]})}),smoothqcurveto:u(["x","y"],function(e,t){return l({command:"T",params:[e,t]})}),arc:u(["rx","ry","xrot","largeArcFlag","sweepFlag","x","y"],function(e,t,n,r,o,i,a){return l({command:"A",params:[e,t,n,r,o,i,a]})}),translate:u(["dx","dy"],function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0],r=arguments.length<=1||void 0===arguments[1]?0:arguments[1];if(0===t&&0===t)return e(n);var o,i,u,l=(o=[0,0],i=[1,0,0,1,t,r],u=n.map(function(e){var t=s(e,i,o);return o=a(e,o),t}),{v:e(u)});return"object"==typeof l?l.v:void 0}),rotate:u(["angle","rx","ry"],function(t){var r=arguments.length<=1||void 0===arguments[1]?0:arguments[1],o=arguments.length<=2||void 0===arguments[2]?0:arguments[2];if(0===t)return e(n);var i=function(){var i=void 0,u=void 0,l=n;0!==r&&0!==o&&(i=[0,0],u=[1,0,0,1,-r,-o],l=l.map(function(e){var t=s(e,u,i);return i=a(e,i),t}));var c=t*Math.PI/180,f=Math.cos(c),p=Math.sin(c);return i=[0,0],u=[f,p,-p,f,0,0],l=l.map(function(e){var t=s(e,u,i);return i=a(e,i),t}),0!==r&&0!==o&&(i=[0,0],u=[1,0,0,1,r,o],l=l.map(function(e){var t=s(e,u,i);return i=a(e,i),t})),{v:e(l)}}();return"object"==typeof i?i.v:void 0}),scale:u(["sx","sy"],function(){var t=arguments.length<=0||void 0===arguments[0]?1:arguments[0],r=arguments.length<=1||void 0===arguments[1]?t:arguments[1];return function(){if(1===t&&1===r)return e(n);var o,i,u,l=(o=[0,0],i=[t,0,0,r,0,0],u=n.map(function(e){var t=s(e,i,o);return o=a(e,o),t}),{v:e(u)});return"object"==typeof l?l.v:void 0}()}),shearX:u(["angle"],function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0];if(0===t)return e(n);var r,o,i,u=(r=[0,0],o=[1,0,Math.tan(t*Math.PI/180),1,0,0],i=n.map(function(e){var t=s(e,o,r);return r=a(e,r),t}),{v:e(i)});return"object"==typeof u?u.v:void 0}),shearY:u(["angle"],function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0];if(0===t)return e(n);var r,o,i,u=(r=[0,0],o=[1,Math.tan(t*Math.PI/180),0,1,0,0],i=n.map(function(e){var t=s(e,o,r);return r=a(e,r),t}),{v:e(i)});return"object"==typeof u?u.v:void 0}),print:function(){return n.map(i).join(" ")},toString:function(){return(void 0).print()},points:function(){var e=[],t=[0,0],r=!0,o=!1,i=void 0;try{for(var s,u=n[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var l=s.value,c=a(l,t);t=c,c&&e.push(c)}}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return e},instructions:function(){return n.slice(0,n.length)},connect:function(t){var o,i,a,s,u,l,c,f=this.points(),p=f[f.length-1],d=t.points()[0],h=void 0;return"Z"!==n[n.length-1].command?(h=t.instructions().slice(1),o=d,i=r(p,2),a=i[0],s=i[1],u=r(o,2),l=u[0],c=u[1],(a!==l||s!==c)&&h.unshift({command:"L",params:d})):h=t.instructions(),e(this.instructions().concat(h))}}};t.default=function(){return i()},e.exports=t.default},function(e,t,n){var r=n(14),o=n(2);function i(e){r.call(this,e)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(e,t,n,r){var o=this.grid,i=e-n,a=t-r;if(!o.isWalkableAt(e,t))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(e,t).tested=!0),o.getNodeAt(e,t)===this.endNode)return[e,t];if(0!==i&&0!==a){if(o.isWalkableAt(e-i,t+a)&&!o.isWalkableAt(e-i,t)||o.isWalkableAt(e+i,t-a)&&!o.isWalkableAt(e,t-a))return[e,t];if(this._jump(e+i,t,e,t)||this._jump(e,t+a,e,t))return[e,t]}else if(0!==i){if(o.isWalkableAt(e+i,t+1)&&!o.isWalkableAt(e,t+1)||o.isWalkableAt(e+i,t-1)&&!o.isWalkableAt(e,t-1))return[e,t]}else if(o.isWalkableAt(e+1,t+a)&&!o.isWalkableAt(e+1,t)||o.isWalkableAt(e-1,t+a)&&!o.isWalkableAt(e-1,t))return[e,t];return o.isWalkableAt(e+i,t)||o.isWalkableAt(e,t+a)?this._jump(e+i,t+a,e,t):null},i.prototype._findNeighbors=function(e){var t,n,r,i,a,s,u,l,c=e.parent,f=e.x,p=e.y,d=this.grid,h=[];if(c)t=c.x,n=c.y,r=(f-t)/Math.max(Math.abs(f-t),1),i=(p-n)/Math.max(Math.abs(p-n),1),0!==r&&0!==i?(d.isWalkableAt(f,p+i)&&h.push([f,p+i]),d.isWalkableAt(f+r,p)&&h.push([f+r,p]),(d.isWalkableAt(f,p+i)||d.isWalkableAt(f+r,p))&&h.push([f+r,p+i]),!d.isWalkableAt(f-r,p)&&d.isWalkableAt(f,p+i)&&h.push([f-r,p+i]),!d.isWalkableAt(f,p-i)&&d.isWalkableAt(f+r,p)&&h.push([f+r,p-i])):0===r?d.isWalkableAt(f,p+i)&&(h.push([f,p+i]),d.isWalkableAt(f+1,p)||h.push([f+1,p+i]),d.isWalkableAt(f-1,p)||h.push([f-1,p+i])):d.isWalkableAt(f+r,p)&&(h.push([f+r,p]),d.isWalkableAt(f,p+1)||h.push([f+r,p+1]),d.isWalkableAt(f,p-1)||h.push([f+r,p-1]));else for(u=0,l=(a=d.getNeighbors(e,o.IfAtMostOneObstacle)).length;u<l;++u)s=a[u],h.push([s.x,s.y]);return h},e.exports=i},function(e,t,n){var r=n(14),o=n(2);function i(e){r.call(this,e)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(e,t,n,r){var o=this.grid,i=e-n,a=t-r;if(!o.isWalkableAt(e,t))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(e,t).tested=!0),o.getNodeAt(e,t)===this.endNode)return[e,t];if(0!==i&&0!==a){if(this._jump(e+i,t,e,t)||this._jump(e,t+a,e,t))return[e,t]}else if(0!==i){if(o.isWalkableAt(e,t-1)&&!o.isWalkableAt(e-i,t-1)||o.isWalkableAt(e,t+1)&&!o.isWalkableAt(e-i,t+1))return[e,t]}else if(0!==a&&(o.isWalkableAt(e-1,t)&&!o.isWalkableAt(e-1,t-a)||o.isWalkableAt(e+1,t)&&!o.isWalkableAt(e+1,t-a)))return[e,t];return o.isWalkableAt(e+i,t)&&o.isWalkableAt(e,t+a)?this._jump(e+i,t+a,e,t):null},i.prototype._findNeighbors=function(e){var t,n,r,i,a,s,u,l,c,f=e.parent,p=e.x,d=e.y,h=this.grid,g=[];if(f){if(t=f.x,n=f.y,r=(p-t)/Math.max(Math.abs(p-t),1),i=(d-n)/Math.max(Math.abs(d-n),1),0!==r&&0!==i)h.isWalkableAt(p,d+i)&&g.push([p,d+i]),h.isWalkableAt(p+r,d)&&g.push([p+r,d]),h.isWalkableAt(p,d+i)&&h.isWalkableAt(p+r,d)&&g.push([p+r,d+i]);else if(0!==r){c=h.isWalkableAt(p+r,d);var v=h.isWalkableAt(p,d+1),m=h.isWalkableAt(p,d-1);c&&(g.push([p+r,d]),v&&g.push([p+r,d+1]),m&&g.push([p+r,d-1])),v&&g.push([p,d+1]),m&&g.push([p,d-1])}else if(0!==i){c=h.isWalkableAt(p,d+i);var y=h.isWalkableAt(p+1,d),b=h.isWalkableAt(p-1,d);c&&(g.push([p,d+i]),y&&g.push([p+1,d+i]),b&&g.push([p-1,d+i])),y&&g.push([p+1,d]),b&&g.push([p-1,d])}}else for(u=0,l=(a=h.getNeighbors(e,o.OnlyWhenNoObstacles)).length;u<l;++u)s=a[u],g.push([s.x,s.y]);return g},e.exports=i},function(e,t,n){var r=n(14),o=n(2);function i(e){r.call(this,e)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(e,t,n,r){var o=this.grid,i=e-n,a=t-r;if(!o.isWalkableAt(e,t))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(e,t).tested=!0),o.getNodeAt(e,t)===this.endNode)return[e,t];if(0!==i&&0!==a){if(o.isWalkableAt(e-i,t+a)&&!o.isWalkableAt(e-i,t)||o.isWalkableAt(e+i,t-a)&&!o.isWalkableAt(e,t-a))return[e,t];if(this._jump(e+i,t,e,t)||this._jump(e,t+a,e,t))return[e,t]}else if(0!==i){if(o.isWalkableAt(e+i,t+1)&&!o.isWalkableAt(e,t+1)||o.isWalkableAt(e+i,t-1)&&!o.isWalkableAt(e,t-1))return[e,t]}else if(o.isWalkableAt(e+1,t+a)&&!o.isWalkableAt(e+1,t)||o.isWalkableAt(e-1,t+a)&&!o.isWalkableAt(e-1,t))return[e,t];return this._jump(e+i,t+a,e,t)},i.prototype._findNeighbors=function(e){var t,n,r,i,a,s,u,l,c=e.parent,f=e.x,p=e.y,d=this.grid,h=[];if(c)t=c.x,n=c.y,r=(f-t)/Math.max(Math.abs(f-t),1),i=(p-n)/Math.max(Math.abs(p-n),1),0!==r&&0!==i?(d.isWalkableAt(f,p+i)&&h.push([f,p+i]),d.isWalkableAt(f+r,p)&&h.push([f+r,p]),d.isWalkableAt(f+r,p+i)&&h.push([f+r,p+i]),d.isWalkableAt(f-r,p)||h.push([f-r,p+i]),d.isWalkableAt(f,p-i)||h.push([f+r,p-i])):0===r?(d.isWalkableAt(f,p+i)&&h.push([f,p+i]),d.isWalkableAt(f+1,p)||h.push([f+1,p+i]),d.isWalkableAt(f-1,p)||h.push([f-1,p+i])):(d.isWalkableAt(f+r,p)&&h.push([f+r,p]),d.isWalkableAt(f,p+1)||h.push([f+r,p+1]),d.isWalkableAt(f,p-1)||h.push([f+r,p-1]));else for(u=0,l=(a=d.getNeighbors(e,o.Always)).length;u<l;++u)s=a[u],h.push([s.x,s.y]);return h},e.exports=i},function(e,t,n){var r=n(14),o=n(2);function i(e){r.call(this,e)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(e,t,n,r){var o=this.grid,i=e-n,a=t-r;if(!o.isWalkableAt(e,t))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(e,t).tested=!0),o.getNodeAt(e,t)===this.endNode)return[e,t];if(0!==i){if(o.isWalkableAt(e,t-1)&&!o.isWalkableAt(e-i,t-1)||o.isWalkableAt(e,t+1)&&!o.isWalkableAt(e-i,t+1))return[e,t]}else{if(0===a)throw new Error("Only horizontal and vertical movements are allowed");if(o.isWalkableAt(e-1,t)&&!o.isWalkableAt(e-1,t-a)||o.isWalkableAt(e+1,t)&&!o.isWalkableAt(e+1,t-a))return[e,t];if(this._jump(e+1,t,e,t)||this._jump(e-1,t,e,t))return[e,t]}return this._jump(e+i,t+a,e,t)},i.prototype._findNeighbors=function(e){var t,n,r,i,a,s,u,l,c=e.parent,f=e.x,p=e.y,d=this.grid,h=[];if(c)t=c.x,n=c.y,r=(f-t)/Math.max(Math.abs(f-t),1),i=(p-n)/Math.max(Math.abs(p-n),1),0!==r?(d.isWalkableAt(f,p-1)&&h.push([f,p-1]),d.isWalkableAt(f,p+1)&&h.push([f,p+1]),d.isWalkableAt(f+r,p)&&h.push([f+r,p])):0!==i&&(d.isWalkableAt(f-1,p)&&h.push([f-1,p]),d.isWalkableAt(f+1,p)&&h.push([f+1,p]),d.isWalkableAt(f,p+i)&&h.push([f,p+i]));else for(u=0,l=(a=d.getNeighbors(e,o.Never)).length;u<l;++u)s=a[u],h.push([s.x,s.y]);return h},e.exports=i},function(e,t,n){var r=n(2),o=n(55),i=n(54),a=n(53),s=n(52);e.exports=function(e){return(e=e||{}).diagonalMovement===r.Never?new o(e):e.diagonalMovement===r.Always?new i(e):e.diagonalMovement===r.OnlyWhenNoObstacles?new a(e):new s(e)}},function(e,t,n){n(4);var r=n(10),o=n(24),i=n(2);function a(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.diagonalMovement=e.diagonalMovement,this.heuristic=e.heuristic||r.manhattan,this.weight=e.weight||1,this.trackRecursion=e.trackRecursion||!1,this.timeLimit=e.timeLimit||1/0,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=i.OnlyWhenNoObstacles:this.diagonalMovement=i.IfAtMostOneObstacle:this.diagonalMovement=i.Never),this.diagonalMovement===i.Never?this.heuristic=e.heuristic||r.manhattan:this.heuristic=e.heuristic||r.octile}a.prototype.findPath=function(e,t,n,r,i){var a,s,u,l=(new Date).getTime(),c=function(e,t){return this.heuristic(Math.abs(t.x-e.x),Math.abs(t.y-e.y))}.bind(this),f=function(e,t,n,r,a){if(0,this.timeLimit>0&&(new Date).getTime()-l>1e3*this.timeLimit)return 1/0;var s,u,p,h,g=t+c(e,d)*this.weight;if(g>n)return g;if(e==d)return r[a]=[e.x,e.y],e;var v,m,y=i.getNeighbors(e,this.diagonalMovement);for(p=0,s=1/0;h=y[p];++p){if(this.trackRecursion&&(h.retainCount=h.retainCount+1||1,!0!==h.tested&&(h.tested=!0)),(u=f(h,t+(m=h,(v=e).x===m.x||v.y===m.y?1:Math.SQRT2),n,r,a+1))instanceof o)return r[a]=[e.x,e.y],u;this.trackRecursion&&0==--h.retainCount&&(h.tested=!1),u<s&&(s=u)}return s}.bind(this),p=i.getNodeAt(e,t),d=i.getNodeAt(n,r),h=c(p,d);for(a=0;;++a){if((u=f(p,0,h,s=[],0))===1/0)return[];if(u instanceof o)return s;h=u}return[]},e.exports=a},function(e,t,n){var r=n(22);function o(e){r.call(this,e),this.heuristic=function(e,t){return 0}}o.prototype=new r,o.prototype.constructor=o,e.exports=o},function(e,t,n){var r=n(4),o=n(2);function i(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.diagonalMovement=e.diagonalMovement,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=o.OnlyWhenNoObstacles:this.diagonalMovement=o.IfAtMostOneObstacle:this.diagonalMovement=o.Never)}i.prototype.findPath=function(e,t,n,o,i){var a,s,u,l,c,f=i.getNodeAt(e,t),p=i.getNodeAt(n,o),d=[],h=[],g=this.diagonalMovement;for(d.push(f),f.opened=!0,f.by=0,h.push(p),p.opened=!0,p.by=1;d.length&&h.length;){for((u=d.shift()).closed=!0,l=0,c=(a=i.getNeighbors(u,g)).length;l<c;++l)if(!(s=a[l]).closed)if(s.opened){if(1===s.by)return r.biBacktrace(u,s)}else d.push(s),s.parent=u,s.opened=!0,s.by=0;for((u=h.shift()).closed=!0,l=0,c=(a=i.getNeighbors(u,g)).length;l<c;++l)if(!(s=a[l]).closed)if(s.opened){if(0===s.by)return r.biBacktrace(s,u)}else h.push(s),s.parent=u,s.opened=!0,s.by=1}return[]},e.exports=i},function(e,t,n){var r=n(22);function o(e){r.call(this,e);var t=this.heuristic;this.heuristic=function(e,n){return 1e6*t(e,n)}}o.prototype=new r,o.prototype.constructor=o,e.exports=o},function(e,t,n){var r=n(23);function o(e){r.call(this,e),this.heuristic=function(e,t){return 0}}o.prototype=new r,o.prototype.constructor=o,e.exports=o},function(e,t,n){var r=n(4),o=n(2);function i(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.diagonalMovement=e.diagonalMovement,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=o.OnlyWhenNoObstacles:this.diagonalMovement=o.IfAtMostOneObstacle:this.diagonalMovement=o.Never)}i.prototype.findPath=function(e,t,n,o,i){var a,s,u,l,c,f=[],p=this.diagonalMovement,d=i.getNodeAt(e,t),h=i.getNodeAt(n,o);for(f.push(d),d.opened=!0;f.length;){if((u=f.shift()).closed=!0,u===h)return r.backtrace(h);for(l=0,c=(a=i.getNeighbors(u,p)).length;l<c;++l)(s=a[l]).closed||s.opened||(f.push(s),s.opened=!0,s.parent=u)}return[]},e.exports=i},function(e,t,n){var r=n(23);function o(e){r.call(this,e);var t=this.heuristic;this.heuristic=function(e,n){return 1e6*t(e,n)}}o.prototype=new r,o.prototype.constructor=o,e.exports=o},function(e,t,n){var r=n(24),o=n(2);function i(e,t,n){var r;"object"!=typeof e?r=e:(t=e.length,r=e[0].length,n=e),this.width=r,this.height=t,this.nodes=this._buildNodes(r,t,n)}i.prototype._buildNodes=function(e,t,n){var o,i,a=new Array(t);for(o=0;o<t;++o)for(a[o]=new Array(e),i=0;i<e;++i)a[o][i]=new r(i,o);if(void 0===n)return a;if(n.length!==t||n[0].length!==e)throw new Error("Matrix size does not fit");for(o=0;o<t;++o)for(i=0;i<e;++i)n[o][i]&&(a[o][i].walkable=!1);return a},i.prototype.getNodeAt=function(e,t){return this.nodes[t][e]},i.prototype.isWalkableAt=function(e,t){return this.isInside(e,t)&&this.nodes[t][e].walkable},i.prototype.isInside=function(e,t){return e>=0&&e<this.width&&t>=0&&t<this.height},i.prototype.setWalkableAt=function(e,t,n){this.nodes[t][e].walkable=n},i.prototype.getNeighbors=function(e,t){var n=e.x,r=e.y,i=[],a=!1,s=!1,u=!1,l=!1,c=!1,f=!1,p=!1,d=!1,h=this.nodes;if(this.isWalkableAt(n,r-1)&&(i.push(h[r-1][n]),a=!0),this.isWalkableAt(n+1,r)&&(i.push(h[r][n+1]),u=!0),this.isWalkableAt(n,r+1)&&(i.push(h[r+1][n]),c=!0),this.isWalkableAt(n-1,r)&&(i.push(h[r][n-1]),p=!0),t===o.Never)return i;if(t===o.OnlyWhenNoObstacles)s=p&&a,l=a&&u,f=u&&c,d=c&&p;else if(t===o.IfAtMostOneObstacle)s=p||a,l=a||u,f=u||c,d=c||p;else{if(t!==o.Always)throw new Error("Incorrect value of diagonalMovement");s=!0,l=!0,f=!0,d=!0}return s&&this.isWalkableAt(n-1,r-1)&&i.push(h[r-1][n-1]),l&&this.isWalkableAt(n+1,r-1)&&i.push(h[r-1][n+1]),f&&this.isWalkableAt(n+1,r+1)&&i.push(h[r+1][n+1]),d&&this.isWalkableAt(n-1,r+1)&&i.push(h[r+1][n-1]),i},i.prototype.clone=function(){var e,t,n=this.width,o=this.height,a=this.nodes,s=new i(n,o),u=new Array(o);for(e=0;e<o;++e)for(u[e]=new Array(n),t=0;t<n;++t)u[e][t]=new r(t,e,a[e][t].walkable);return s.nodes=u,s},e.exports=i},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){(function(e){(function(){var t,n,r,o,i,a,s,u,l,c,f,p,d,h,g;r=Math.floor,c=Math.min,n=function(e,t){return e<t?-1:e>t?1:0},l=function(e,t,o,i,a){var s;if(null==o&&(o=0),null==a&&(a=n),o<0)throw new Error("lo must be non-negative");for(null==i&&(i=e.length);o<i;)a(t,e[s=r((o+i)/2)])<0?i=s:o=s+1;return[].splice.apply(e,[o,o-o].concat(t)),t},a=function(e,t,r){return null==r&&(r=n),e.push(t),h(e,0,e.length-1,r)},i=function(e,t){var r,o;return null==t&&(t=n),r=e.pop(),e.length?(o=e[0],e[0]=r,g(e,0,t)):o=r,o},u=function(e,t,r){var o;return null==r&&(r=n),o=e[0],e[0]=t,g(e,0,r),o},s=function(e,t,r){var o;return null==r&&(r=n),e.length&&r(e[0],t)<0&&(t=(o=[e[0],t])[0],e[0]=o[1],g(e,0,r)),t},o=function(e,t){var o,i,a,s,u,l;for(null==t&&(t=n),u=[],i=0,a=(s=function(){l=[];for(var t=0,n=r(e.length/2);0<=n?t<n:t>n;0<=n?t++:t--)l.push(t);return l}.apply(this).reverse()).length;i<a;i++)o=s[i],u.push(g(e,o,t));return u},d=function(e,t,r){var o;if(null==r&&(r=n),-1!==(o=e.indexOf(t)))return h(e,0,o,r),g(e,o,r)},f=function(e,t,r){var i,a,u,l,c;if(null==r&&(r=n),!(a=e.slice(0,t)).length)return a;for(o(a,r),u=0,l=(c=e.slice(t)).length;u<l;u++)i=c[u],s(a,i,r);return a.sort(r).reverse()},p=function(e,t,r){var a,s,u,f,p,d,h,g,v;if(null==r&&(r=n),10*t<=e.length){if(!(u=e.slice(0,t).sort(r)).length)return u;for(s=u[u.length-1],f=0,d=(h=e.slice(t)).length;f<d;f++)r(a=h[f],s)<0&&(l(u,a,0,null,r),u.pop(),s=u[u.length-1]);return u}for(o(e,r),v=[],p=0,g=c(t,e.length);0<=g?p<g:p>g;0<=g?++p:--p)v.push(i(e,r));return v},h=function(e,t,r,o){var i,a,s;for(null==o&&(o=n),i=e[r];r>t&&o(i,a=e[s=r-1>>1])<0;)e[r]=a,r=s;return e[r]=i},g=function(e,t,r){var o,i,a,s,u;for(null==r&&(r=n),i=e.length,u=t,a=e[t],o=2*t+1;o<i;)(s=o+1)<i&&!(r(e[o],e[s])<0)&&(o=s),e[t]=e[o],o=2*(t=o)+1;return e[t]=a,h(e,u,t,r)},t=function(){function e(e){this.cmp=null!=e?e:n,this.nodes=[]}return e.push=a,e.pop=i,e.replace=u,e.pushpop=s,e.heapify=o,e.updateItem=d,e.nlargest=f,e.nsmallest=p,e.prototype.push=function(e){return a(this.nodes,e,this.cmp)},e.prototype.pop=function(){return i(this.nodes,this.cmp)},e.prototype.peek=function(){return this.nodes[0]},e.prototype.contains=function(e){return-1!==this.nodes.indexOf(e)},e.prototype.replace=function(e){return u(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return s(this.nodes,e,this.cmp)},e.prototype.heapify=function(){return o(this.nodes,this.cmp)},e.prototype.updateItem=function(e){return d(this.nodes,e,this.cmp)},e.prototype.clear=function(){return this.nodes=[]},e.prototype.empty=function(){return 0===this.nodes.length},e.prototype.size=function(){return this.nodes.length},e.prototype.clone=function(){var t;return(t=new e).nodes=this.nodes.slice(0),t},e.prototype.toArray=function(){return this.nodes.slice(0)},e.prototype.insert=e.prototype.push,e.prototype.top=e.prototype.peek,e.prototype.front=e.prototype.peek,e.prototype.has=e.prototype.contains,e.prototype.copy=e.prototype.clone,e}(),(null!=e?e.exports:void 0)?e.exports=t:window.Heap=t}).call(this)}).call(this,n(65)(e))},function(e,t,n){e.exports={Heap:n(15),Node:n(24),Grid:n(64),Util:n(4),DiagonalMovement:n(2),Heuristic:n(10),AStarFinder:n(23),BestFirstFinder:n(63),BreadthFirstFinder:n(62),DijkstraFinder:n(61),BiAStarFinder:n(22),BiBestFirstFinder:n(60),BiBreadthFirstFinder:n(59),BiDijkstraFinder:n(58),IDAStarFinder:n(57),JumpPointFinder:n(56)}},function(e,t,n){e.exports=n(67)},function(e,t){var n=Element.prototype,r=n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector;e.exports=function(e,t){if(r)return r.call(e,t);for(var n=e.parentNode.querySelectorAll(t),o=0;o<n.length;++o)if(n[o]==e)return!0;return!1}},function(e,t,n){var r=n(69);e.exports=function(e,t,n){for(var o=n?e:e.parentNode;o&&o!==document;){if(r(o,t))return o;o=o.parentNode}}}])},e.exports=r(n(132),n(0))},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return y});var r=n(71),o=n(2),i=n.n(o),a=n(0),s=n.n(a);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var d="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};var h=function(e,t){return e(t={exports:{}},t.exports),t.exports}(function(e){!function(t){var n=function(e,t,r){if(!u(t)||c(t)||f(t)||p(t)||s(t))return t;var o,i=0,a=0;if(l(t))for(o=[],a=t.length;i<a;i++)o.push(n(e,t[i],r));else for(var d in o={},t)Object.prototype.hasOwnProperty.call(t,d)&&(o[e(d,r)]=n(e,t[d],r));return o},r=function(e){return d(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""})).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=r(e);return t.substr(0,1).toUpperCase()+t.substr(1)},i=function(e,t){return function(e,t){var n=(t=t||{}).separator||"_",r=t.split||/(?=[A-Z])/;return e.split(r).join(n)}(e,t).toLowerCase()},a=Object.prototype.toString,s=function(e){return"function"==typeof e},u=function(e){return e===Object(e)},l=function(e){return"[object Array]"==a.call(e)},c=function(e){return"[object Date]"==a.call(e)},f=function(e){return"[object RegExp]"==a.call(e)},p=function(e){return"[object Boolean]"==a.call(e)},d=function(e){return(e-=0)==e},h=function(e,t){var n=t&&"process"in t?t.process:t;return"function"!=typeof n?e:function(t,r){return n(t,e,r)}},g={camelize:r,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(e,t){return n(h(r,t),e)},decamelizeKeys:function(e,t){return n(h(i,t),e,t)},pascalizeKeys:function(e,t){return n(h(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=g:t.humps=g}(d)});var g=!1;try{g=!0}catch(e){}function v(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?l({},e,t):{}}function m(e){return null===e?null:"object"===u(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function y(e){var t=e.icon,n=e.mask,o=e.symbol,i=e.className,a=e.title,s=m(t),u=v("classes",[].concat(p(function(e){var t,n=(l(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-inverse":e.inverse,"fa-border":e.border,"fa-li":e.listItem,"fa-flip-horizontal":"horizontal"===e.flip||"both"===e.flip,"fa-flip-vertical":"vertical"===e.flip||"both"===e.flip},"fa-".concat(e.size),null!==e.size),l(t,"fa-rotate-".concat(e.rotation),null!==e.rotation),l(t,"fa-pull-".concat(e.pull),null!==e.pull),t);return Object.keys(n).map(function(e){return n[e]?e:null}).filter(function(e){return e})}(e)),p(i.split(" ")))),f=v("transform","string"==typeof e.transform?r.b.transform(e.transform):e.transform),d=v("mask",m(n)),h=Object(r.a)(s,c({},u,f,d,{symbol:o,title:a}));if(!h)return function(){var e;!g&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",s),null;var _=h.abstract,x={};return Object.keys(e).forEach(function(t){y.defaultProps.hasOwnProperty(t)||(x[t]=e[t])}),b(_[0],x)}y.displayName="FontAwesomeIcon",y.propTypes={border:i.a.bool,className:i.a.string,mask:i.a.oneOfType([i.a.object,i.a.array,i.a.string]),fixedWidth:i.a.bool,inverse:i.a.bool,flip:i.a.oneOf(["horizontal","vertical","both"]),icon:i.a.oneOfType([i.a.object,i.a.array,i.a.string]),listItem:i.a.bool,pull:i.a.oneOf(["right","left"]),pulse:i.a.bool,rotation:i.a.oneOf([90,180,270]),size:i.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:i.a.bool,symbol:i.a.oneOfType([i.a.bool,i.a.string]),title:i.a.string,transform:i.a.oneOfType([i.a.string,i.a.object])},y.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null};var b=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var o=(n.children||[]).map(function(n){return e(t,n)}),i=Object.keys(n.attributes||{}).reduce(function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var n,r=t.indexOf(":"),o=h.camelize(t.slice(0,r)),i=t.slice(r+1).trim();return o.startsWith("webkit")?e[(n=o,n.charAt(0).toUpperCase()+n.slice(1))]=i:e[o]=i,e},{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[h.camelize(t)]=r}return e},{attrs:{}}),a=r.style,s=void 0===a?{}:a,u=f(r,["style"]);return i.attrs.style=c({},i.attrs.style,s),t.apply(void 0,[n.tag,c({},i.attrs,u)].concat(p(o)))}.bind(null,s.a.createElement)}).call(this,n(15))},function(e,t,n){"use strict";var r=n(3),o=n(10).Graph;function i(e,t,n,o){var i;do{i=r.uniqueId(o)}while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function a(e){return r.max(r.map(e.nodes(),function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n}))}e.exports={addDummyNode:i,simplify:function(e){var t=(new o).setGraph(e.graph());return r.forEach(e.nodes(),function(n){t.setNode(n,e.node(n))}),r.forEach(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},o=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})}),t},asNonCompoundGraph:function(e){var t=new o({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),r.forEach(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t},successorWeights:function(e){var t=r.map(e.nodes(),function(t){var n={};return r.forEach(e.outEdges(t),function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight}),n});return r.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=r.map(e.nodes(),function(t){var n={};return r.forEach(e.inEdges(t),function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight}),n});return r.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,r,o=e.x,i=e.y,a=t.x-o,s=t.y-i,u=e.width/2,l=e.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(s)*u>Math.abs(a)*l?(s<0&&(l=-l),n=l*a/s,r=l):(a<0&&(u=-u),n=u,r=u*s/a);return{x:o+n,y:i+r}},buildLayerMatrix:function(e){var t=r.map(r.range(a(e)+1),function(){return[]});return r.forEach(e.nodes(),function(n){var o=e.node(n),i=o.rank;r.isUndefined(i)||(t[i][o.order]=n)}),t},normalizeRanks:function(e){var t=r.min(r.map(e.nodes(),function(t){return e.node(t).rank}));r.forEach(e.nodes(),function(n){var o=e.node(n);r.has(o,"rank")&&(o.rank-=t)})},removeEmptyRanks:function(e){var t=r.min(r.map(e.nodes(),function(t){return e.node(t).rank})),n=[];r.forEach(e.nodes(),function(r){var o=e.node(r).rank-t;n[o]||(n[o]=[]),n[o].push(r)});var o=0,i=e.graph().nodeRankFactor;r.forEach(n,function(t,n){r.isUndefined(t)&&n%i!=0?--o:o&&r.forEach(t,function(t){e.node(t).rank+=o})})},addBorderNode:function(e,t,n,r){var o={width:0,height:0};arguments.length>=4&&(o.rank=n,o.order=r);return i(e,"border",o,t)},maxRank:a,partition:function(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n},time:function(e,t){var n=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-n)+"ms")}},notime:function(e,t){return t()}}},function(e,t,n){var r;try{r={clone:n(147),constant:n(63),each:n(92),filter:n(95),has:n(106),isArray:n(5),isEmpty:n(223),isFunction:n(29),isUndefined:n(107),keys:n(16),map:n(108),reduce:n(110),size:n(226),transform:n(232),union:n(233),values:n(115)}}catch(e){}r||(r=window._),e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r;try{r=n(145)}catch(e){}r||(r=window.graphlib),e.exports=r},function(e,t,n){var r=n(75),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(29),o=n(57);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(203),o=n(213),i=n(19),a=n(5),s=n(220);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(78),o=n(59),i=n(13);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(158),o=n(163);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(23),o=n(159),i=n(160),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:u&&u in Object(e)?o(e):i(e)}},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),s=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=function(e){return document.querySelector(e)}.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),u=null,l=0,c=[],f=n(140);function p(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(y(r.parts[a],t))}else{var s=[];for(a=0;a<r.parts.length;a++)s.push(y(r.parts[a],t));i[r.id]={id:r.id,refs:1,parts:s}}}}function d(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function h(e,t){var n=s(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=c[c.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),c.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=s(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,o)}}function g(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=c.indexOf(e);t>=0&&c.splice(t,1)}function v(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),m(t,e.attrs),h(e,t),t}function m(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function y(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var a=l++;n=u||(u=v(t)),r=x.bind(null,n,a,!1),o=x.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",m(t,e.attrs),h(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=f(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),o=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){g(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=d(e,t);return p(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var a=n[o];(s=i[a.id]).refs--,r.push(s)}e&&p(d(e,t),t);for(o=0;o<r.length;o++){var s;if(0===(s=r[o]).refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete i[s.id]}}}};var b,_=(b=[],function(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function x(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(11).Symbol;e.exports=r},function(e,t,n){(function(e){var r=n(11),o=n(179),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||o;e.exports=u}).call(this,n(34)(e))},function(e,t,n){var r=n(78),o=n(183),i=n(13);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t,n){var r=n(188),o=n(54),i=n(189),a=n(87),s=n(190),u=n(18),l=n(76),c=l(r),f=l(o),p=l(i),d=l(a),h=l(s),g=u;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=g(new o)||i&&"[object Promise]"!=g(i.resolve())||a&&"[object Set]"!=g(new a)||s&&"[object WeakMap]"!=g(new s))&&(g=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case c:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=g},function(e,t,n){var r=n(18),o=n(12),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(129)},function(e,t,n){var r=n(18),o=n(9),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==s||t==i||t==u}},function(e,t,n){var r=n(40),o=n(41);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var l=t[s],c=i?i(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),a?o(n,l,c):r(n,l,c)}return n}},function(e,t,n){var r=n(178),o=n(12),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,n){var r=n(180),o=n(43),i=n(58),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(27),o=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(36),o=n(153),i=n(154),a=n(155),s=n(156),u=n(157);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,e.exports=l},function(e,t,n){var r=n(148),o=n(149),i=n(150),a=n(151),s=n(152);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(22);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(17)(Object,"create");e.exports=r},function(e,t,n){var r=n(172);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(41),o=n(22),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(77);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(79)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(64),o=n(201)(r);e.exports=o},function(e,t,n){var r=n(5),o=n(68),i=n(215),a=n(102);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(19),o=n(111),i=n(112);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){var r=n(22),o=n(13),i=n(42),a=n(9);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t,n){"use strict";var r=n(3);e.exports={longestPath:function(e){var t={};r.forEach(e.sources(),function n(o){var i=e.node(o);if(r.has(t,o))return i.rank;t[o]=!0;var a=r.min(r.map(e.outEdges(o),function(t){return n(t.w)-e.edge(t).minlen}));a!==Number.POSITIVE_INFINITY&&null!=a||(a=0);return i.rank=a})},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},function(e,t,n){"use strict";var r,o=n(0),i=n(28),a=n(1);!function(e){e[e.Sphere=0]="Sphere",e[e.Box=1]="Box",e[e.Torus=2]="Torus",e[e.Cylinder=3]="Cylinder"}(r||(r={}));var s=function(){function e(){}return e.ReadBoolean=function(e,t){try{return this._InMemoryStorage&&void 0!==this._InMemoryStorage[e]?this._InMemoryStorage[e]:"undefined"!=typeof Storage&&null!==localStorage.getItem(e)?"true"===localStorage.getItem(e):t}catch(n){return this._InMemoryStorage={},this._InMemoryStorage[e]=t,t}},e.StoreBoolean=function(e,t){try{this._InMemoryStorage?this._InMemoryStorage[e]=t:"undefined"!=typeof Storage&&localStorage.setItem(e,t?"true":"false")}catch(n){this._InMemoryStorage={},this._InMemoryStorage[e]=t}},e.ReadNumber=function(e,t){try{return this._InMemoryStorage&&void 0!==this._InMemoryStorage[e]?this._InMemoryStorage[e]:"undefined"!=typeof Storage&&null!==localStorage.getItem(e)?parseFloat(localStorage.getItem(e)):t}catch(n){return this._InMemoryStorage={},this._InMemoryStorage[e]=t,t}},e.StoreNumber=function(e,t){try{this._InMemoryStorage?this._InMemoryStorage[e]=t:"undefined"!=typeof Storage&&localStorage.setItem(e,t.toString())}catch(n){this._InMemoryStorage={},this._InMemoryStorage[e]=t}},e}(),u=function(){this.onSelectionChangedObservable=new a.Observable,this.onRebuildRequiredObservable=new a.Observable,this.onResetRequiredObservable=new a.Observable,this.onUpdateRequiredObservable=new a.Observable,this.onZoomToFitRequiredObservable=new a.Observable,this.onReOrganizedRequiredObservable=new a.Observable,this.onLogRequiredObservable=new a.Observable,this.onErrorMessageDialogRequiredObservable=new a.Observable,this.onPreviewMeshTypeChanged=new a.Observable,this.previewMeshType=s.ReadNumber("PreviewMeshType",r.Box)},l=function(e,t){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function c(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var p=n(4),d=function(e){function t(t){var n=e.call(this,"srd-port",t)||this;return n.state={selected:!1},n}return c(t,e),t.prototype.getClassName=function(){return"port "+e.prototype.getClassName.call(this)+(this.state.selected?this.bem("--selected"):"")},t.prototype.render=function(){var e=this;return o.createElement("div",f({style:this.props.style},this.getProps(),{onMouseEnter:function(){e.setState({selected:!0})},onMouseLeave:function(){e.setState({selected:!1})},"data-name":this.props.name,"data-nodeid":this.props.node.getID()}))},t}(p.BaseWidget),h=function(){function e(){}return e.GetBlockFromString=function(e){switch(e){case"BonesBlock":return new a.BonesBlock("Bones");case"InstancesBlock":return new a.InstancesBlock("Instances");case"MorphTargetsBlock":return new a.MorphTargetsBlock("MorphTargets");case"AlphaTestBlock":return new a.AlphaTestBlock("AlphaTest");case"ImageProcessingBlock":return new a.ImageProcessingBlock("ImageProcessing");case"ColorMergerBlock":return new a.ColorMergerBlock("ColorMerger");case"VectorMergerBlock":return new a.VectorMergerBlock("VectorMerger");case"ColorSplitterBlock":return new a.ColorSplitterBlock("ColorSplitter");case"VectorSplitterBlock":return new a.VectorSplitterBlock("VectorSplitter");case"TextureBlock":return new a.TextureBlock("Texture");case"ReflectionTextureBlock":return new a.ReflectionTextureBlock("Texture");case"LightBlock":return new a.LightBlock("Lights");case"FogBlock":return new a.FogBlock("Fog");case"VertexOutputBlock":return new a.VertexOutputBlock("VertexOutput");case"FragmentOutputBlock":return new a.FragmentOutputBlock("FragmentOutput");case"AddBlock":return new a.AddBlock("Add");case"ClampBlock":return new a.ClampBlock("Clamp");case"CrossBlock":return new a.CrossBlock("Dot");case"DotBlock":return new a.DotBlock("Dot");case"MultiplyBlock":return new a.MultiplyBlock("Multiply");case"TransformBlock":return new a.TransformBlock("Transform");case"RemapBlock":return new a.RemapBlock("Remap");case"NormalizeBlock":return new a.NormalizeBlock("Normalize")}return null},e.GetColorFromConnectionNodeType=function(e){var t="Red";switch(e){case a.NodeMaterialBlockConnectionPointTypes.Float:t="#ca9e27";break;case a.NodeMaterialBlockConnectionPointTypes.Vector2:t="#16bcb1";break;case a.NodeMaterialBlockConnectionPointTypes.Vector3:case a.NodeMaterialBlockConnectionPointTypes.Color3:t="#b786cb";break;case a.NodeMaterialBlockConnectionPointTypes.Vector4:case a.NodeMaterialBlockConnectionPointTypes.Color4:t="#be5126";break;case a.NodeMaterialBlockConnectionPointTypes.Matrix:t="#591990"}return t},e.GetConnectionNodeTypeFromString=function(e){switch(e){case"Float":return a.NodeMaterialBlockConnectionPointTypes.Float;case"Vector2":return a.NodeMaterialBlockConnectionPointTypes.Vector2;case"Vector3":return a.NodeMaterialBlockConnectionPointTypes.Vector3;case"Vector4":return a.NodeMaterialBlockConnectionPointTypes.Vector4;case"Matrix":return a.NodeMaterialBlockConnectionPointTypes.Matrix;case"Color3":return a.NodeMaterialBlockConnectionPointTypes.Color3;case"Color4":return a.NodeMaterialBlockConnectionPointTypes.Color4}return a.NodeMaterialBlockConnectionPointTypes.AutoDetect},e.GetStringFromConnectionNodeType=function(e){switch(e){case a.NodeMaterialBlockConnectionPointTypes.Float:return"Float";case a.NodeMaterialBlockConnectionPointTypes.Vector2:return"Vector2";case a.NodeMaterialBlockConnectionPointTypes.Vector3:return"Vector3";case a.NodeMaterialBlockConnectionPointTypes.Vector4:return"Vector4";case a.NodeMaterialBlockConnectionPointTypes.Color3:return"Color3";case a.NodeMaterialBlockConnectionPointTypes.Color4:return"Color4";case a.NodeMaterialBlockConnectionPointTypes.Matrix:return"Matrix"}return""},e}(),g=function(){function e(){}return e._GetPortTypeIndicator=function(e){switch(e.type){case a.NodeMaterialBlockConnectionPointTypes.Float:case a.NodeMaterialBlockConnectionPointTypes.Int:return o.createElement("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABESURBVDhPY/z//z8DJYAJSpMNRg3Ab4APEL+GYhAbK8AXjSCNIhAmwxsgFoUwUQFNvZAJxCCbQRjExgpGU+LAG8DAAAA+ghAthzG18wAAAABJRU5ErkJggg=="});case a.NodeMaterialBlockConnectionPointTypes.Vector2:return o.createElement("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABHSURBVDhPY/z//z8DJYAJSpMN8BngA8SvoRjExgrweQGkUQTCZHgDxKIQJiqgqRcygRhkMwiD2FjB4I4FosBoNA6DaGRgAABqpx09dHGG2QAAAABJRU5ErkJggg=="});case a.NodeMaterialBlockConnectionPointTypes.Vector3:case a.NodeMaterialBlockConnectionPointTypes.Color3:return o.createElement("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABHSURBVDhPY/z//z8DJYAJSmMDPkD8GopBbKwAnwtAGkUgTIY3QCwKYaICfC4gCuAzIBOIQTaDMIiNFYwG4mgggsCQD0QGBgD0QypNGzDYqQAAAABJRU5ErkJggg=="});case a.NodeMaterialBlockConnectionPointTypes.Vector4:case a.NodeMaterialBlockConnectionPointTypes.Color4:return o.createElement("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABRSURBVDhPY/z//z8DJYAJSpMN0A3wAeLXUAxiwwAucQYGkBeQ8GsghgEQm5A45V6AmwTFIUAMsgGEQWxC4gyDLxZIBqPpAAiQTQPiIZcOGBgAyCDrTTmX3gcAAAAASUVORK5CYII="});case a.NodeMaterialBlockConnectionPointTypes.Matrix:return o.createElement("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAABuSURBVDhPY/z//z8DJYAJSpMN0A3wAeLXUAxiwwAucQZ0L4AUiECYOMEbIBaFMGnghUwoDQKhQMwIxSA2DCCrwfACCMAEQBqRAVZxqnuBZEB1A9DjHgZwsQdpOgDZAMLo6QAmTjAdkAQo9AIDAwD62SHFU/Hk8QAAAABJRU5ErkJggg=="})}return null},e._GetPortStyle=function(e){return{background:h.GetColorFromConnectionNodeType(e)}},e.GenerateOutputPorts=function(e,t){if(!e)return new Array;var n=[];for(var r in e.ports){var i=e.ports[r];if("output"===i.position){var a=this._GetPortTypeIndicator(i.connection),s=this._GetPortStyle(i.connection.type);n.push(o.createElement("div",{key:r,className:"output-port"},!t&&o.createElement("div",{className:"output-port-label"},i.connection.name),o.createElement("div",{className:"output-port-plug"},o.createElement("div",{className:"output-port-border"}),o.createElement(d,{key:r,name:i.name,node:e,style:s}),o.createElement("div",{className:"output-port-type"},a))))}}return n},e.GenerateInputPorts=function(e,t,n){if(void 0===n&&(n=!1),!e)return new Array;var r=[];for(var i in e.ports){var a=e.ports[i];if("input"===a.position){var s=this._GetPortTypeIndicator(a.connection),u=this._GetPortStyle(a.connection.type);t&&-1===t.indexOf(a.name)||r.push(o.createElement("div",{key:i,className:"input-port"},o.createElement("div",{className:"input-port-plug"},o.createElement("div",{className:"input-port-border"}),o.createElement(d,{key:i,name:a.name,node:e,style:u}),o.createElement("div",{className:"input-port-type"},s)),!n&&o.createElement("div",{className:"input-port-label"},a.connection.name)))}}return r},e}(),v=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var e=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(e?n.props.node:null)}}),n}return c(t,e),t.prototype.render=function(){var e="";this.props.node&&this.props.node.block&&(e=this.props.node.block.name);var t=g.GenerateOutputPorts(this.props.node,!1),n=g.GenerateInputPorts(this.props.node);return o.createElement("div",{className:"diagramBlock"+(0===t.length?" output":"")},o.createElement("div",{className:"header"},e),o.createElement("div",{className:"inputs"},n),o.createElement("div",{className:"outputs"},t))},t}(o.Component),m=function(e){function t(){return e.call(this,"advanced")||this}return c(t,e),t}(p.DefaultLinkModel),y=function(e){function t(n,r){void 0===r&&(r="input");var o=e.call(this,n,"generic")||this;return o.connection=null,o.position=r,t.idCounter++,o}return c(t,e),t.prototype.canLinkToPort=function(e){return!this.connection||!e.connection||this.connection.canConnectTo(e.connection)},t.prototype.syncWithNodeMaterialConnectionPoint=function(e){this.connection=e,this.name=e.name},t.prototype.getNodeModel=function(){return this.parent},t.prototype.link=function(e){var t=this.createLinkModel();return t.setSourcePort(this),t.setTargetPort(e),t},t.prototype.createLinkModel=function(){return new m},t.SortInputOutput=function(e,t){return e&&t?"output"==e.position&&"input"==t.position?{input:t,output:e}:"output"==t.position&&"input"==e.position?{input:e,output:t}:null:null},t.idCounter=0,t}(p.PortModel),b=function(e){function t(t){var n=e.call(this,t)||this;return n.block=null,n}return c(t,e),t.prototype.prepare=function(e,t,n,r){var o=this;this.block=e.nodeMaterialBlock||null,e.nodeMaterialBlock&&(e.nodeMaterialBlock._outputs.forEach(function(e){var t=new y(e.name,"output");t.syncWithNodeMaterialConnectionPoint(e),o.addPort(t)}),e.nodeMaterialBlock._inputs.forEach(function(e){var i=new y(e.name,"input");if(i.connection=e,o.addPort(i),e.connectedPoint){var a=t.filter(function(t){return t.block===e._connectedPoint._ownerBlock}),s=(0==a.length?r.createNodeFromObject({nodeMaterialBlock:e.connectedPoint._ownerBlock}):a[0]).ports[e.connectedPoint.name].link(i);r._toAdd?r._toAdd.push(s):n.addAll(s)}}))},t.prototype.renderProperties=function(e){return null},t}(p.NodeModel),_=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.onLink=function(){this.props.onLink&&this.props.onLink()},t.prototype.renderContent=function(){var e=this;return this.props.onLink?o.createElement("div",{className:"link-value",title:this.props.value,onClick:function(){return e.onLink()}},this.props.value||"no name"):o.createElement("div",{className:"value",title:this.props.value,style:{color:this.props.color?this.props.color:""}},this.props.value||"no name")},t.prototype.render=function(){return o.createElement("div",{className:this.props.underline?"textLine underline":"textLine"},o.createElement("div",{className:"label"},this.props.label),this.renderContent())},t}(o.Component),x=n(6),w={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"]},k={prefix:"fas",iconName:"circle",icon:[512,512,[],"f111","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"]},E={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"]},C={prefix:"fas",iconName:"cube",icon:[512,512,[],"f1b2","M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"]},P={prefix:"fas",iconName:"hockey-puck",icon:[512,512,[],"f453","M0 160c0-53 114.6-96 256-96s256 43 256 96-114.6 96-256 96S0 213 0 160zm0 82.2V352c0 53 114.6 96 256 96s256-43 256-96V242.2c-113.4 82.3-398.5 82.4-512 0z"]},O={prefix:"fas",iconName:"minus",icon:[448,512,[],"f068","M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},S={prefix:"fas",iconName:"plus",icon:[448,512,[],"f067","M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},N={prefix:"fas",iconName:"ring",icon:[512,512,[],"f70b","M256 64C110.06 64 0 125.91 0 208v98.13C0 384.48 114.62 448 256 448s256-63.52 256-141.87V208c0-82.09-110.06-144-256-144zm0 64c106.04 0 192 35.82 192 80 0 9.26-3.97 18.12-10.91 26.39C392.15 208.21 328.23 192 256 192s-136.15 16.21-181.09 42.39C67.97 226.12 64 217.26 64 208c0-44.18 85.96-80 192-80zM120.43 264.64C155.04 249.93 201.64 240 256 240s100.96 9.93 135.57 24.64C356.84 279.07 308.93 288 256 288s-100.84-8.93-135.57-23.36z"]},T=function(e){function t(t){var n=e.call(this,t)||this,r=s.ReadBoolean(n.props.title,!n.props.closed);return n.state={isExpanded:r},n}return c(t,e),t.prototype.switchExpandedState=function(){var e=!this.state.isExpanded;s.StoreBoolean(this.props.title,e),this.setState({isExpanded:e})},t.prototype.renderHeader=function(){var e=this,t=this.state.isExpanded?"collapse":"collapse closed";return o.createElement("div",{className:"header",onClick:function(){return e.switchExpandedState()}},o.createElement("div",{className:"title"},this.props.title),o.createElement("div",{className:t},o.createElement(x.a,{icon:w})))},t.prototype.render=function(){return this.state.isExpanded?o.createElement("div",{className:"paneContainer"},o.createElement("div",{className:"paneContainer-content"},this.renderHeader(),o.createElement("div",{className:"paneList"},this.props.children))):o.createElement("div",{className:"paneContainer"},o.createElement("div",{className:"paneContainer-content"},this.renderHeader()))},t}(o.Component),A=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={value:n.props.value||n.props.target[n.props.propertyName]||""},n}return c(t,e),t.prototype.shouldComponentUpdate=function(e,t){if(this._localChange)return this._localChange=!1,!0;var n=e.value||e.target[e.propertyName];return n!==t.value&&(t.value=n||"",!0)},t.prototype.raiseOnPropertyChanged=function(e,t){this.props.onChange?this.props.onChange(e):this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:e,initialValue:t})},t.prototype.updateValue=function(e){this._localChange=!0;var t=this.props.value||this.props.target[this.props.propertyName];this.setState({value:e}),this.raiseOnPropertyChanged(e,t),this.props.propertyName&&(this.props.target[this.props.propertyName]=e)},t.prototype.render=function(){var e=this;return o.createElement("div",{className:"textInputLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"value"},o.createElement("input",{value:this.state.value,onChange:function(t){return e.updateValue(t.target.value)}})))},t}(o.Component),M=function(e){function t(n){var r=e.call(this,n)||this;return r._localChange=!1,r._uniqueId=t._UniqueIdSeed++,r.props.isSelected?r.state={isSelected:r.props.isSelected()}:r.state={isSelected:!0===r.props.target[r.props.propertyName]},r}return c(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n;return!((n=this.props.isSelected?e.isSelected():!0===e.target[e.propertyName])===t.isSelected&&!this._localChange)&&(t.isSelected=n,this._localChange=!1,!0)},t.prototype.onChange=function(){this._localChange=!0,this.props.onSelect?this.props.onSelect(!this.state.isSelected):(this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:!this.state.isSelected,initialValue:this.state.isSelected}),this.props.target[this.props.propertyName]=!this.state.isSelected),this.props.onValueChanged&&this.props.onValueChanged(),this.setState({isSelected:!this.state.isSelected})},t.prototype.render=function(){var e=this;return o.createElement("div",{className:"checkBoxLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"checkBox"},o.createElement("input",{type:"checkbox",id:"checkbox"+this._uniqueId,className:"cbx hidden",checked:this.state.isSelected,onChange:function(){return e.onChange()}}),o.createElement("label",{htmlFor:"checkbox"+this._uniqueId,className:"lbl"})))},t._UniqueIdSeed=0,t}(o.Component),L=function(e){function t(){var t=e.call(this,"generic")||this;return t.vector2=null,t.vector3=null,t.vector4=null,t.matrix=null,t}return c(t,e),t.prototype.prepare=function(t,n,r,o){e.prototype.prepare.call(this,t,n,r,o)},t.prototype.renderProperties=function(e){var t=this;return o.createElement("div",null,o.createElement(T,{title:"GENERAL"},o.createElement(A,{label:"Name",propertyName:"name",target:this.block,onChange:function(){return e.onUpdateRequiredObservable.notifyObservers()}}),o.createElement(_,{label:"Type",value:this.block.getClassName()})),"TransformBlock"===this.block.getClassName()&&o.createElement(T,{title:"PROPERTIES"},o.createElement(M,{label:"Transform as direction",onSelect:function(n){var r=t.block;r.complementW=n?0:1,e.onRebuildRequiredObservable.notifyObservers()},isSelected:function(){return 0===t.block.complementW}})))},t}(b),j=function(e){function t(t){var n=e.call(this,"generic")||this;return n._globalState=t,n}return c(t,e),t.prototype.generateReactWidget=function(e,t){return o.createElement(v,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new L},t}(p.AbstractNodeFactory),I=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.render=function(){var e=this;return o.createElement("div",{className:"draggableLine",draggable:!0,onDragStart:function(t){t.dataTransfer.setData("babylonjs-material-node",e.props.data)}},this.props.data.replace("Block",""))},t}(o.Component);n(138);var R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e={Vertex:["BonesBlock","InstancesBlock","MorphTargetsBlock"],Fragment:["AlphaTestBlock","ImageProcessingBlock","TextureBlock","ReflectionTextureBlock","LightBlock","FogBlock"],Outputs:["VertexOutputBlock","FragmentOutputBlock"],Math:["AddBlock","ClampBlock","CrossBlock","DotBlock","MultiplyBlock","RemapBlock","NormalizeBlock","TransformBlock","ColorMergerBlock","ColorSplitterBlock","VectorMergerBlock","VectorSplitterBlock"],Inputs:["Float","Vector2","Vector3","Vector4","Color3","Color4","Matrix"]},t=[];for(var n in e){var r=e[n].map(function(e,t){return o.createElement(I,{key:e,data:e})});t.push(o.createElement(T,{key:n+" blocks",title:n+" blocks",closed:!1},r))}return o.createElement("div",{id:"nodeList",style:{borderRightStyle:"solid",borderColor:"grey",borderWidth:"1px"}},o.createElement("div",{className:"panes"},o.createElement("div",{className:"pane"},t)))},t}(o.Component),B=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.render=function(){var e=this;return o.createElement("div",{className:"buttonLine"},o.createElement("button",{onClick:function(){return e.props.onClick()}},this.props.label))},t}(o.Component),F=function(){function e(){}return e.GetBaseType=function(e){return a.NodeMaterialBlockConnectionPointTypes[e]},e.DownloadAsFile=function(e,t){var n=new Blob([e],{type:"application/octet-stream"});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(n,t);else{var r=new Blob([e],{type:"application/octet-stream"}),o=new FileReader;o.onload=function(e){var n="data:text/plain;base64,"+btoa(o.result);setTimeout(function(){var e=document.createElement("a");e.setAttribute("href",n),e.setAttribute("download",t),e.target="_self",e.style.visibility="hidden",document.body.appendChild(e),e.click(),setTimeout(function(){document.body.removeChild(e)},0)},10)},o.readAsBinaryString(r)}},e}(),D=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.onChange=function(e){var t=e.target.files;t&&t.length&&this.props.onClick(t[0]),e.target.value=""},t.prototype.render=function(){var e=this;return o.createElement("div",{className:"buttonLine"},o.createElement("label",{htmlFor:"file-upload",className:"file-upload"},this.props.label),o.createElement("input",{ref:"upload",id:"file-upload",type:"file",accept:this.props.accept,onChange:function(t){return e.onChange(t)}}))},t}(o.Component);n(141);var z=function(e){function t(t){var n=e.call(this,t)||this;return n.state={currentNode:null},n}return c(t,e),t.prototype.componentWillMount=function(){var e=this;this.props.globalState.onSelectionChangedObservable.add(function(t){e.setState({currentNode:t})})},t.prototype.load=function(e){var t=this;a.Tools.ReadFile(e,function(e){var n=new TextDecoder("utf-8"),r=JSON.parse(n.decode(e));if(t.props.globalState.nodeMaterial.loadFromSerialization(r,""),r.locations&&r.map)for(var o=r.map,i=0,a=r.locations;i<a.length;i++){var s=a[i];s.blockId=o[s.blockId]}t.props.globalState.onResetRequiredObservable.notifyObservers(r.locations)},void 0,!0)},t.prototype.save=function(){for(var e=this.props.globalState.nodeMaterial,t=e.serialize(),n=0,r=e.attachedBlocks;n<r.length;n++){var o=r[n],i=this.props.globalState.onGetNodeFromBlock(o);t.locations||(t.locations=[]),t.locations.push({blockId:o.uniqueId,x:i.x,y:i.y})}var a=JSON.stringify(t,void 0,2);F.DownloadAsFile(a,"nodeMaterial.json")},t.prototype.render=function(){var e=this;return this.state.currentNode?o.createElement("div",{id:"propertyTab"},o.createElement("div",{id:"header"},o.createElement("img",{id:"logo",src:"https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png"}),o.createElement("div",{id:"title"},"NODE MATERIAL EDITOR")),this.state.currentNode.renderProperties(this.props.globalState)):o.createElement("div",{id:"propertyTab"},o.createElement("div",{id:"header"},o.createElement("img",{id:"logo",src:"https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png"}),o.createElement("div",{id:"title"},"NODE MATERIAL EDITOR")),o.createElement("div",null,o.createElement(T,{title:"GENERAL"},o.createElement(B,{label:"Reset to default",onClick:function(){e.props.globalState.nodeMaterial.setToDefault(),e.props.globalState.onResetRequiredObservable.notifyObservers(null)}})),o.createElement(T,{title:"UI"},o.createElement(B,{label:"Zoom to fit",onClick:function(){e.props.globalState.onZoomToFitRequiredObservable.notifyObservers()}}),o.createElement(B,{label:"Reorganize",onClick:function(){e.props.globalState.onReOrganizedRequiredObservable.notifyObservers()}})),o.createElement(T,{title:"FILE"},o.createElement(D,{label:"Load",onClick:function(t){return e.load(t)},accept:".json"}),o.createElement(B,{label:"Save",onClick:function(){e.save()}}),o.createElement(B,{label:"Export shaders",onClick:function(){F.DownloadAsFile(e.props.globalState.nodeMaterial.compiledShaders,"shaders.txt")}}))))},t}(o.Component),U=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){return i.createPortal(this.props.children,this.props.globalState.hostElement)},t}(o.Component),W=function(e){function t(t){var n=e.call(this,t)||this;return n.state={displayRed:!0,displayGreen:!0,displayBlue:!0,displayAlpha:!0,face:0},n}return c(t,e),t.prototype.shouldComponentUpdate=function(e,t){return!0},t.prototype.componentDidMount=function(){this.updatePreview()},t.prototype.componentDidUpdate=function(){this.updatePreview()},t.prototype.updatePreview=function(){var e=this,t=this.props.texture;!t.isReady()&&t._texture&&t._texture.onLoadedObservable.addOnce(function(){e.updatePreview()});var n,r=t.getScene(),o=r.getEngine(),i=t.getSize(),s=i.width/i.height,u=this.props.width,l=u/s|1;if(t.isCube){var c=new a.PassCubePostProcess("pass",1,null,a.Texture.NEAREST_SAMPLINGMODE,o,!1,a.Constants.TEXTURETYPE_UNSIGNED_INT);c.face=this.state.face,n=c}else n=new a.PassPostProcess("pass",1,null,a.Texture.NEAREST_SAMPLINGMODE,o,!1,a.Constants.TEXTURETYPE_UNSIGNED_INT);if(!n.getEffect().isReady())return n.dispose(),void setTimeout(function(){return e.updatePreview()},250);var f=this.refs.canvas;this.props.globalState&&(this.props.globalState.blockMutationUpdates=!0);var p=new a.RenderTargetTexture("temp",{width:u,height:l},r,!1);n.onApply=function(e){e.setTexture("textureSampler",t)};var d=p.getInternalTexture();if(d){r.postProcessManager.directRender([n],d);var h=4*u,g=l/2,v=o.readPixels(0,0,u,l);if(!(t.isCube||this.state.displayRed&&this.state.displayGreen&&this.state.displayBlue))for(var m=0;m<u*l*4;m+=4)if(this.state.displayRed||(v[m]=0),this.state.displayGreen||(v[m+1]=0),this.state.displayBlue||(v[m+2]=0),this.state.displayAlpha){var y=v[m+2];v[m]=y,v[m+1]=y,v[m+2]=y,v[m+2]=0}if(t.invertY||t.isCube)for(m=0;m<g;m++)for(var b=0;b<h;b++){var _=b+m*h,x=b+(l-m-1)*h,w=v[_];v[_]=v[x],v[x]=w}f.width=u,f.height=l;var k=f.getContext("2d");if(k){var E=k.createImageData(u,l);E.data.set(v),k.putImageData(E,0,0)}o.unBindFramebuffer(d)}p.dispose(),n.dispose(),f.style.height=l+"px",this.props.globalState&&(this.props.globalState.blockMutationUpdates=!1)},t.prototype.render=function(){var e=this,t=this.props.texture;return o.createElement("div",{className:"textureLine"},!this.props.hideChannelSelect&&t.isCube&&o.createElement("div",{className:"control3D"},o.createElement("button",{className:0===this.state.face?"px command selected":"px command",onClick:function(){return e.setState({face:0})}},"PX"),o.createElement("button",{className:1===this.state.face?"nx command selected":"nx command",onClick:function(){return e.setState({face:1})}},"NX"),o.createElement("button",{className:2===this.state.face?"py command selected":"py command",onClick:function(){return e.setState({face:2})}},"PY"),o.createElement("button",{className:3===this.state.face?"ny command selected":"ny command",onClick:function(){return e.setState({face:3})}},"NY"),o.createElement("button",{className:4===this.state.face?"pz command selected":"pz command",onClick:function(){return e.setState({face:4})}},"PZ"),o.createElement("button",{className:5===this.state.face?"nz command selected":"nz command",onClick:function(){return e.setState({face:5})}},"NZ")),!this.props.hideChannelSelect&&!t.isCube&&o.createElement("div",{className:"control"},o.createElement("button",{className:this.state.displayRed&&!this.state.displayGreen?"red command selected":"red command",onClick:function(){return e.setState({displayRed:!0,displayGreen:!1,displayBlue:!1,displayAlpha:!1})}},"R"),o.createElement("button",{className:this.state.displayGreen&&!this.state.displayBlue?"green command selected":"green command",onClick:function(){return e.setState({displayRed:!1,displayGreen:!0,displayBlue:!1,displayAlpha:!1})}},"G"),o.createElement("button",{className:this.state.displayBlue&&!this.state.displayAlpha?"blue command selected":"blue command",onClick:function(){return e.setState({displayRed:!1,displayGreen:!1,displayBlue:!0,displayAlpha:!1})}},"B"),o.createElement("button",{className:this.state.displayAlpha&&!this.state.displayRed?"alpha command selected":"alpha command",onClick:function(){return e.setState({displayRed:!1,displayGreen:!1,displayBlue:!1,displayAlpha:!0})}},"A"),o.createElement("button",{className:this.state.displayRed&&this.state.displayGreen?"all command selected":"all command",onClick:function(){return e.setState({displayRed:!0,displayGreen:!0,displayBlue:!0,displayAlpha:!0})}},"ALL")),o.createElement("canvas",{ref:"canvas",className:"preview"}))},t}(o.Component),V=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var e=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(e?n.props.node:null)}}),n}return c(t,e),t.prototype.render=function(){var e=g.GenerateOutputPorts(this.props.node,!1),t=g.GenerateInputPorts(this.props.node,["uv"]);return o.createElement("div",{className:"diagramBlock texture-block"},o.createElement("div",{className:"header"},this.props.node.block.name),o.createElement("div",{className:"inputs"},t),o.createElement("div",{className:"outputs"},e),this.props.node&&this.props.node.texture&&o.createElement(W,{ref:"textureView",width:140,height:140,texture:this.props.node.texture,hideChannelSelect:!0}))},t}(o.Component),G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.updateAftertextureLoad=function(){this.props.globalState.onUpdateRequiredObservable.notifyObservers(),this.props.globalState.onRebuildRequiredObservable.notifyObservers()},t.prototype.replaceTexture=function(e){var t=this;if(this.props.node){var n=this.props.node.texture;n||(this.props.node.texture=new a.Texture(null,a.Engine.LastCreatedScene),n=this.props.node.texture),a.Tools.ReadFile(e,function(r){var o=new Blob([r],{type:"octet/stream"}),i=new FileReader;i.readAsDataURL(o),i.onloadend=function(){var r=i.result;if(n.isCube){var o=void 0;e.name.toLowerCase().indexOf(".dds")>0?o=".dds":e.name.toLowerCase().indexOf(".env")>0&&(o=".env"),n.updateURL(r,o,function(){return t.updateAftertextureLoad()})}else n.updateURL(r,null,function(){return t.updateAftertextureLoad()})}},void 0,!0)}},t.prototype.render=function(){var e=this;return o.createElement("div",null,o.createElement(T,{title:"GENERAL"},o.createElement(_,{label:"Type",value:"Texture"}),o.createElement(A,{label:"Name",propertyName:"name",target:this.props.node.block,onChange:function(){return e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})),o.createElement(T,{title:"PROPERTIES"},o.createElement(M,{label:"Auto select UV",propertyName:"autoSelectUV",target:this.props.node.block}),o.createElement(D,{label:"Replace texture",onClick:function(t){return e.replaceTexture(t)},accept:".jpg, .png, .tga, .dds, .env"})))},t}(o.Component),Y=function(e){function t(){return e.call(this,"texture")||this}return c(t,e),Object.defineProperty(t.prototype,"texture",{get:function(){return this._block.texture},set:function(e){this._block.texture=e},enumerable:!0,configurable:!0}),t.prototype.renderProperties=function(e){return o.createElement(G,{globalState:e,node:this})},t.prototype.prepare=function(t,n,r,o){this._block=t.nodeMaterialBlock,e.prototype.prepare.call(this,t,n,r,o)},t}(b),q=function(e){function t(t){var n=e.call(this,"texture")||this;return n._globalState=t,n}return c(t,e),t.prototype.generateReactWidget=function(e,t){return o.createElement(V,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new Y},t}(p.AbstractNodeFactory),X=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={value:n.props.value.toFixed(3)},n}return c(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this._localChange?(this._localChange=!1,!0):e.value.toString()!==t.value&&(t.value=e.value.toFixed(3),!0)},t.prototype.updateValue=function(e){var t=e.target.value;if(!/[^0-9\.\-]/g.test(t)){var n=parseFloat(t);this._localChange=!0,this.setState({value:t}),isNaN(n)||this.props.onChange(n)}},t.prototype.render=function(){var e=this;return o.createElement("div",{className:"numeric"},this.props.label&&o.createElement("div",{className:"numeric-label"},this.props.label+": "),o.createElement("input",{type:"number",step:this.props.step,className:"numeric-input",value:this.state.value,onChange:function(t){return e.updateValue(t)}}))},t.defaultProps={step:1},t}(o.Component),H=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={isExpanded:!1,value:n.props.target[n.props.propertyName].clone()},n}return c(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e.target[e.propertyName];return!(n.equals(t.value)&&!this._localChange)&&(t.value=n.clone(),this._localChange=!1,!0)},t.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},t.prototype.raiseOnPropertyChanged=function(e){this.props.onChange&&this.props.onChange(this.state.value),this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.value,initialValue:e})},t.prototype.updateStateX=function(e){this._localChange=!0;var t=this.state.value.clone();this.props.target[this.props.propertyName].x=e,this.state.value.x=e,this.setState({value:this.state.value}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateY=function(e){this._localChange=!0;var t=this.state.value.clone();this.props.target[this.props.propertyName].y=e,this.state.value.y=e,this.setState({value:this.state.value}),this.raiseOnPropertyChanged(t)},t.prototype.render=function(){var e=this,t=this.state.isExpanded?o.createElement(x.a,{icon:O}):o.createElement(x.a,{icon:S});return o.createElement("div",{className:"vector3Line"},o.createElement("div",{className:"firstLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"vector"},"X: "+this.state.value.x.toFixed(2)+", Y: "+this.state.value.y.toFixed(2)),o.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&o.createElement("div",{className:"secondLine"},o.createElement(X,{label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),o.createElement(X,{label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}})))},t.defaultProps={step:.001},t}(o.Component),K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this;return o.createElement(H,{label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),$=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={isExpanded:!1,value:n.props.target[n.props.propertyName].clone()},n}return c(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e.target[e.propertyName];return!(n.equals(t.value)&&!this._localChange)&&(t.value=n.clone(),this._localChange=!1,!0)},t.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},t.prototype.raiseOnPropertyChanged=function(e){this.props.onChange&&this.props.onChange(this.state.value),this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.value,initialValue:e})},t.prototype.updateVector3=function(){var e=this.props.target[this.props.propertyName].clone();this.props.target[this.props.propertyName]=this.state.value,this.setState({value:e}),this.raiseOnPropertyChanged(e)},t.prototype.updateStateX=function(e){this._localChange=!0,this.state.value.x=e,this.updateVector3()},t.prototype.updateStateY=function(e){this._localChange=!0,this.state.value.y=e,this.updateVector3()},t.prototype.updateStateZ=function(e){this._localChange=!0,this.state.value.z=e,this.updateVector3()},t.prototype.render=function(){var e=this,t=this.state.isExpanded?o.createElement(x.a,{icon:O}):o.createElement(x.a,{icon:S});return o.createElement("div",{className:"vector3Line"},o.createElement("div",{className:"firstLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"vector"},"X: "+this.state.value.x.toFixed(2)+", Y: "+this.state.value.y.toFixed(2)+", Z: "+this.state.value.z.toFixed(2)),o.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&o.createElement("div",{className:"secondLine"},o.createElement(X,{label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),o.createElement(X,{label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}}),o.createElement(X,{label:"z",step:this.props.step,value:this.state.value.z,onChange:function(t){return e.updateStateZ(t)}})))},t.defaultProps={step:.001},t}(o.Component),Q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this;return o.createElement($,{label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),Z=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={value:n._getValue(t)},n}return c(t,e),t.prototype._getValue=function(e){return e.target?e.target[e.propertyName]:e.options[e.defaultIfNull||0]},t.prototype.shouldComponentUpdate=function(e,t){if(this._localChange)return this._localChange=!1,!0;var n=this._getValue(e);return null!=n&&n!==t.value&&(t.value=n,!0)},t.prototype.raiseOnPropertyChanged=function(e,t){this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:e,initialValue:t})},t.prototype.updateValue=function(e){var t=this.props.valuesAreStrings?e:parseInt(e);this._localChange=!0;var n=this.state.value;this.props.noDirectUpdate||(this.props.target[this.props.propertyName]=t),this.setState({value:t}),this.raiseOnPropertyChanged(t,n),this.props.onSelect&&this.props.onSelect(t)},t.prototype.render=function(){var e=this;return o.createElement("div",{className:"listLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"options"},o.createElement("select",{onChange:function(t){return e.updateValue(t.target.value)},value:this.state.value},this.props.options.map(function(e){return o.createElement("option",{key:e.label,value:e.value},e.label)}))))},t}(o.Component),J=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={isExpanded:!1,color:n.props.target[n.props.propertyName].clone()},n}return c(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e.target[e.propertyName];return!(n.equals(t.color)&&!this._localChange)&&(t.color=n.clone(),this._localChange=!1,!0)},t.prototype.onChange=function(e){this._localChange=!0;var t=a.Color3.FromHexString(e);this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:t,initialValue:this.state.color}),this.props.target[this.props.propertyName]=t,this.setState({color:t}),this.props.onChange&&this.props.onChange()},t.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},t.prototype.raiseOnPropertyChanged=function(e){this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.color,initialValue:e})},t.prototype.updateStateR=function(e){this._localChange=!0;var t=this.state.color.clone();this.props.target[this.props.propertyName].x=e,this.state.color.r=e,this.props.target[this.props.propertyName]=this.state.color,this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateG=function(e){this._localChange=!0;var t=this.state.color.clone();this.props.target[this.props.propertyName].g=e,this.state.color.g=e,this.props.target[this.props.propertyName]=this.state.color,this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateB=function(e){this._localChange=!0;var t=this.state.color.clone();this.props.target[this.props.propertyName].b=e,this.state.color.b=e,this.props.target[this.props.propertyName]=this.state.color,this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.copyToClipboard=function(){var e=document.createElement("div");if(e.textContent=this.state.color.toHexString(),document.body.appendChild(e),window.getSelection){var t=document.createRange();t.selectNode(e),window.getSelection().removeAllRanges(),window.getSelection().addRange(t)}document.execCommand("copy"),e.remove()},t.prototype.render=function(){var e=this,t=this.state.isExpanded?o.createElement(x.a,{icon:O}):o.createElement(x.a,{icon:S}),n="Color3"===this.state.color.getClassName()?this.state.color:new a.Color3(this.state.color.r,this.state.color.g,this.state.color.b);return o.createElement("div",{className:"color3Line"},o.createElement("div",{className:"firstLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"color3"},o.createElement("input",{type:"color",value:n.toHexString(),onChange:function(t){return e.onChange(t.target.value)}})),o.createElement("div",{className:"copy hoverIcon",onClick:function(){return e.copyToClipboard()},title:"Copy to clipboard"},o.createElement(x.a,{icon:E})),o.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&o.createElement("div",{className:"secondLine"},o.createElement(X,{label:"r",value:this.state.color.r,onChange:function(t){return e.updateStateR(t)}}),o.createElement(X,{label:"g",value:this.state.color.g,onChange:function(t){return e.updateStateG(t)}}),o.createElement(X,{label:"b",value:this.state.color.b,onChange:function(t){return e.updateStateB(t)}})))},t}(o.Component),ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this;return o.createElement(J,{label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),te=function(e){function t(t){var n=e.call(this,t)||this;n._localChange=!1;var r=n.props.target[n.props.propertyName];return n.state={value:r?n.props.isInteger?r.toFixed(0):r.toFixed(n.props.digits||3):"0"},n._store=r,n}return c(t,e),t.prototype.shouldComponentUpdate=function(e,t){if(this._localChange)return this._localChange=!1,!0;var n=e.target[e.propertyName],r=n?this.props.isInteger?n.toFixed(0):n.toFixed(this.props.digits||3):"0";return r!==t.value&&(t.value=r,!0)},t.prototype.raiseOnPropertyChanged=function(e,t){this.props.onChange&&this.props.onChange(e),this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:e,initialValue:t})},t.prototype.updateValue=function(e){var t;/[^0-9\.\-]/g.test(e)||(t=this.props.isInteger?parseInt(e):parseFloat(e),this._localChange=!0,this.setState({value:e}),isNaN(t)||(this.props.target[this.props.propertyName]=t,this.raiseOnPropertyChanged(t,this._store),this._store=t))},t.prototype.render=function(){var e=this;return o.createElement("div",null,o.createElement("div",{className:this.props.additionalClass?this.props.additionalClass+" floatLine":"floatLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"value"},o.createElement("input",{type:"number",step:this.props.step||"0.01",className:"numeric-input",value:this.state.value,onChange:function(t){return e.updateValue(t.target.value)}}))))},t}(o.Component),ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this;return o.createElement(te,{label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),re=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.renderValue=function(e){var t=this.props.inputNode.inputBlock;switch(t.type){case a.NodeMaterialBlockConnectionPointTypes.Float:return o.createElement(ne,{globalState:e,inputBlock:t});case a.NodeMaterialBlockConnectionPointTypes.Vector2:return o.createElement(K,{globalState:e,inputBlock:t});case a.NodeMaterialBlockConnectionPointTypes.Color3:case a.NodeMaterialBlockConnectionPointTypes.Color4:return o.createElement(ee,{globalState:e,inputBlock:t});case a.NodeMaterialBlockConnectionPointTypes.Vector3:return o.createElement(Q,{globalState:e,inputBlock:t})}return null},t.prototype.setDefaultValue=function(){this.props.inputNode.inputBlock.setDefaultValue()},t.prototype.render=function(){var e=this,t=this.props.inputNode.inputBlock,n=[],r=[];switch(t.type){case a.NodeMaterialBlockConnectionPointTypes.Matrix:n=[{label:"World",value:a.NodeMaterialWellKnownValues.World},{label:"WorldxView",value:a.NodeMaterialWellKnownValues.WorldView},{label:"WorldxViewxProjection",value:a.NodeMaterialWellKnownValues.WorldViewProjection},{label:"View",value:a.NodeMaterialWellKnownValues.View},{label:"ViewxProjection",value:a.NodeMaterialWellKnownValues.ViewProjection},{label:"Projection",value:a.NodeMaterialWellKnownValues.Projection}];break;case a.NodeMaterialBlockConnectionPointTypes.Color3:n=[{label:"Fog color",value:a.NodeMaterialWellKnownValues.FogColor}];break;case a.NodeMaterialBlockConnectionPointTypes.Color3:r=[{label:"color",value:"color"}];break;case a.NodeMaterialBlockConnectionPointTypes.Vector2:r=[{label:"uv",value:"uv"},{label:"uv2",value:"uv2"}];break;case a.NodeMaterialBlockConnectionPointTypes.Vector3:n=[{label:"Camera position",value:a.NodeMaterialWellKnownValues.CameraPosition}],r=[{label:"position",value:"position"},{label:"normal",value:"normal"},{label:"tangent",value:"tangent"}];break;case a.NodeMaterialBlockConnectionPointTypes.Vector4:r=[{label:"matricesIndices",value:"matricesIndices"},{label:"matricesWeights",value:"matricesWeights"}]}return o.createElement("div",null,o.createElement(T,{title:"GENERAL"},o.createElement(_,{label:"Type",value:F.GetBaseType(t.type)})),o.createElement(T,{title:"PROPERTIES"},r.length>0&&o.createElement(M,{label:"Is mesh attribute",onSelect:function(n){n?t.setAsAttribute(r[0].value):(t.isUniform=!0,e.setDefaultValue()),e.props.globalState.onRebuildRequiredObservable.notifyObservers(),e.forceUpdate()},isSelected:function(){return t.isAttribute}}),t.isAttribute&&o.createElement(Z,{label:"Attribute",valuesAreStrings:!0,options:r,target:t,propertyName:"name",onSelect:function(n){t.setAsAttribute(n),e.forceUpdate(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}}),t.isUniform&&n.length>0&&o.createElement(M,{label:"Is well known value",onSelect:function(r){r?t.setAsWellKnownValue(n[0].value):(t.setAsWellKnownValue(null),e.setDefaultValue()),e.props.globalState.onRebuildRequiredObservable.notifyObservers(),e.forceUpdate()},isSelected:function(){return t.isWellKnownValue}}),t.isUniform&&!t.isWellKnownValue&&this.renderValue(this.props.globalState),t.isUniform&&t.isWellKnownValue&&o.createElement(Z,{label:"Well known value",options:n,target:t,propertyName:"wellKnownValue",onSelect:function(n){t.setAsWellKnownValue(n),e.forceUpdate(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}})))},t}(o.Component),oe=function(e){function t(){return e.call(this,"input")||this}return c(t,e),Object.defineProperty(t.prototype,"inputBlock",{get:function(){return this.block},enumerable:!0,configurable:!0}),t.prototype.renderProperties=function(e){return o.createElement(re,{globalState:e,inputNode:this})},t}(b),ie=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var e=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(e?n.props.node:null)}}),n}return c(t,e),t.prototype.renderValue=function(e){return""!==e?o.createElement("div",{className:"value-text"},e):null},t.prototype.render=function(){var e=g.GenerateOutputPorts(this.props.node,!0),t=this.props.node.inputBlock,n="",r=F.GetBaseType(t.output.type),i="";if(t)if(t.isAttribute)n="mesh."+t.name;else if(t.isWellKnownValue)switch(t.wellKnownValue){case a.NodeMaterialWellKnownValues.World:n="World";break;case a.NodeMaterialWellKnownValues.WorldView:n="World x View";break;case a.NodeMaterialWellKnownValues.WorldViewProjection:n="World x View x Projection";break;case a.NodeMaterialWellKnownValues.View:n="View";break;case a.NodeMaterialWellKnownValues.ViewProjection:n="View x Projection";break;case a.NodeMaterialWellKnownValues.Projection:n="Projection";break;case a.NodeMaterialWellKnownValues.CameraPosition:n="Camera position";break;case a.NodeMaterialWellKnownValues.FogColor:n="Fog color"}else{if(!t||!t.isUniform)return null;switch(t.type){case a.NodeMaterialBlockConnectionPointTypes.Float:n=t.value;break;case a.NodeMaterialBlockConnectionPointTypes.Vector2:var s=t.value;n="("+s.x+", "+s.y+")";break;case a.NodeMaterialBlockConnectionPointTypes.Vector3:var u=t.value;n="("+u.x+", "+u.y+", "+u.z+")";break;case a.NodeMaterialBlockConnectionPointTypes.Vector4:var l=t.value;n="("+l.x+", "+l.y+", "+l.z+", "+l.w+")";break;case a.NodeMaterialBlockConnectionPointTypes.Color3:case a.NodeMaterialBlockConnectionPointTypes.Color4:i=t.value.toHexString()}}else r="Not connected input";return o.createElement("div",{className:"diagramBlock input"+(t&&t.isAttribute?" attribute":""),style:{background:i}},o.createElement("div",{className:"header"},r),o.createElement("div",{className:"outputs"},e),o.createElement("div",{className:"value"},this.renderValue(n)))},t}(o.Component),ae=function(e){function t(t){var n=e.call(this,"input")||this;return n._globalState=t,n}return c(t,e),t.prototype.generateReactWidget=function(e,t){return o.createElement(ie,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new oe},t}(p.AbstractNodeFactory);n(143);var se=function(e,t){this.message=e,this.isError=t},ue=function(e){function t(t){var n=e.call(this,t)||this;return n.state={logs:[]},n}return c(t,e),t.prototype.componentWillMount=function(){var e=this;this.props.globalState.onLogRequiredObservable.add(function(t){var n=e.state.logs;n.push(t),e.setState({logs:n})})},t.prototype.componentDidUpdate=function(){var e=i.findDOMNode(this.refs["log-console"]);e&&(e.scrollTop=e.scrollHeight)},t.prototype.render=function(){return o.createElement("div",{id:"log-console",ref:"log-console"},this.state.logs.map(function(e,t){return o.createElement("div",{key:t,className:"log"+(e.isError?" error":"")},e.message)}))},t}(o.Component),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this,t=this.props.globalState.nodeMaterial.getScene(),n=t.lights.map(function(e){return{label:e.name,value:e.name}});return n.splice(0,0,{label:"All",value:""}),o.createElement("div",null,o.createElement(T,{title:"GENERAL"},o.createElement(_,{label:"Type",value:"Light"}),o.createElement(A,{label:"Name",propertyName:"name",target:this.props.node.block,onChange:function(){return e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})),o.createElement(T,{title:"PROPERTIES"},o.createElement(Z,{label:"Light",defaultIfNull:0,noDirectUpdate:!0,valuesAreStrings:!0,options:n,target:this.props.node.light,propertyName:"name",onSelect:function(n){e.props.node.light=""===n?null:t.getLightByName(n),e.forceUpdate(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}})))},t}(o.Component),ce=function(e){function t(){return e.call(this,"light")||this}return c(t,e),Object.defineProperty(t.prototype,"light",{get:function(){return this._block.light},set:function(e){this._block.light=e},enumerable:!0,configurable:!0}),t.prototype.renderProperties=function(e){return o.createElement(le,{globalState:e,node:this})},t.prototype.prepare=function(t,n,r,o){this._block=t.nodeMaterialBlock,e.prototype.prepare.call(this,t,n,r,o)},t}(b),fe=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var e=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(e?n.props.node:null)}}),n}return c(t,e),t.prototype.render=function(){var e=g.GenerateOutputPorts(this.props.node,!1),t=g.GenerateInputPorts(this.props.node);return o.createElement("div",{className:"diagramBlock"},o.createElement("div",{className:"header"},this.props.node.block.name),o.createElement("div",{className:"inputs"},t),o.createElement("div",{className:"outputs"},e))},t}(o.Component),pe=function(e){function t(t){var n=e.call(this,"light")||this;return n._globalState=t,n}return c(t,e),t.prototype.generateReactWidget=function(e,t){return o.createElement(fe,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new ce},t}(p.AbstractNodeFactory),de=function(e){function t(t){var n=e.call(this,t)||this;return n.state={message:"",isError:!1},n.props.globalState.onErrorMessageDialogRequiredObservable.add(function(e){n.setState({message:e,isError:!0})}),n}return c(t,e),t.prototype.render=function(){var e=this;return this.state.message?o.createElement("div",{className:"dialog-container"},o.createElement("div",{className:"dialog"},o.createElement("div",{className:"dialog-message"},this.state.message),o.createElement("div",{className:"dialog-buttons"},o.createElement("div",{className:"dialog-button-ok"+(this.state.isError?" error":""),onClick:function(){return e.setState({message:""})}},"OK")))):null},t}(o.Component),he=function(e){function t(){var t=e.call(this)||this;return t.type="advanced",t}return c(t,e),t.prototype.getNewInstance=function(e){return new m},t.prototype.generateLinkSegment=function(e,t,n,r){var i=(e.getTargetPort()||e.getSourcePort()).connection.type,a=h.GetColorFromConnectionNodeType(i);return o.createElement("path",{className:n?t.bem("--path-selected"):"",strokeWidth:3,stroke:a,d:r})},t}(p.DefaultLinkFactory),ge=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.forceRebuild=function(){this.props.globalState.onUpdateRequiredObservable.notifyObservers(),this.props.globalState.onRebuildRequiredObservable.notifyObservers()},t.prototype.render=function(){var e=this,t=this.props.remapNode.remapBlock;return o.createElement("div",null,o.createElement(T,{title:"GENERAL"},o.createElement(A,{label:"Name",propertyName:"name",target:t,onChange:function(){return e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),o.createElement(_,{label:"Type",value:t.getClassName()})),o.createElement(T,{title:"PROPERTIES"},o.createElement(H,{label:"From",propertyName:"sourceRange",target:t,onChange:function(){return e.forceRebuild()}}),o.createElement(H,{label:"To",propertyName:"targetRange",target:t,onChange:function(){return e.forceRebuild()}})))},t}(o.Component),ve=function(e){function t(){return e.call(this,"remap")||this}return c(t,e),Object.defineProperty(t.prototype,"remapBlock",{get:function(){return this.block},enumerable:!0,configurable:!0}),t.prototype.renderProperties=function(e){return o.createElement(ge,{globalState:e,remapNode:this})},t}(b),me=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var e=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(e?n.props.node:null)}}),n}return c(t,e),t.prototype.renderValue=function(e){return e?o.createElement("div",{className:"value-text"},e):null},t.prototype.render=function(){var e=g.GenerateInputPorts(this.props.node,void 0,!0),t=g.GenerateOutputPorts(this.props.node,!0),n=this.props.node.block;return o.createElement("div",{className:"diagramBlock remap"},o.createElement("div",{className:"header"},n.name),o.createElement("div",{className:"inputs"},e),o.createElement("div",{className:"outputs"},t),o.createElement("div",{className:"value"},"["+n.sourceRange.x+", "+n.sourceRange.y+"] -> ["+n.targetRange.x+", "+n.targetRange.y+"]"))},t}(o.Component),ye=function(e){function t(t){var n=e.call(this,"remap")||this;return n._globalState=t,n}return c(t,e),t.prototype.generateReactWidget=function(e,t){return o.createElement(me,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new ve},t}(p.AbstractNodeFactory),be=n(72),_e=function(){function e(){}return e.DistributeGraph=function(e){var t=this._MapElements(e),n=this._MapEdges(e),r=new be.graphlib.Graph;return r.setGraph({}),r.setDefaultEdgeLabel(function(){return{}}),r.graph().rankdir="LR",t.forEach(function(e){r.setNode(e.id,e.metadata)}),n.forEach(function(e){e.from&&e.to&&r.setEdge(e.from.id,e.to.id)}),be.layout(r),r.nodes().map(function(e){return r.node(e)})},e._MapElements=function(e){var t=[];for(var n in e.nodes){var r=e.nodes[n],o={width:200|r.width,height:100|r.height};t.push({id:r.id,metadata:f({},o,{id:r.id})})}return t},e._MapEdges=function(e){var t=[];for(var n in e.links){var r=e.links[n];t.push({from:r.sourcePort.parent,to:r.targetPort.parent})}return t},e}(),xe=function(){function e(e,t){var n=this;this._nodeMaterial=t.nodeMaterial,this._globalState=t,this._onBuildObserver=this._nodeMaterial.onBuildObservable.add(function(e){var t=e.serialize();n._updatePreview(t)}),this._onPreviewMeshTypeChangedObserver=t.onPreviewMeshTypeChanged.add(function(){n._refreshPreviewMesh()}),this._onUpdateRequiredObserver=t.onUpdateRequiredObservable.add(function(){var e=n._nodeMaterial.serialize();n._updatePreview(e)}),this._engine=new a.Engine(e,!0),this._scene=new a.Scene(this._engine),this._camera=new a.ArcRotateCamera("Camera",0,.8,4,a.Vector3.Zero(),this._scene),this._light=new a.HemisphericLight("light",new a.Vector3(0,1,0),this._scene),this._camera.lowerRadiusLimit=3,this._camera.upperRadiusLimit=10,this._camera.wheelPrecision=20,this._camera.attachControl(e,!1),this._refreshPreviewMesh(),this._engine.runRenderLoop(function(){n._engine.resize(),n._scene.render()});var r=this._nodeMaterial.serialize();this._updatePreview(r)}return e.prototype._refreshPreviewMesh=function(){switch(this._dummy&&this._dummy.dispose(),this._globalState.previewMeshType){case r.Box:this._dummy=a.Mesh.CreateBox("dummy",2,this._scene);break;case r.Sphere:this._dummy=a.Mesh.CreateSphere("dummy",32,2,this._scene);break;case r.Torus:this._dummy=a.Mesh.CreateTorus("dummy",2,.5,32,this._scene);break;case r.Cylinder:this._dummy=a.Mesh.CreateCylinder("dummy",2,1,1.2,32,1,this._scene)}this._dummy.material=this._material},e.prototype._updatePreview=function(e){this._material&&this._material.dispose(),this._material=a.NodeMaterial.Parse(e,this._scene),this._material.build(!0),this._dummy.material=this._material},e.prototype.dispose=function(){this._nodeMaterial.onBuildObservable.remove(this._onBuildObserver),this._globalState.onPreviewMeshTypeChanged.remove(this._onPreviewMeshTypeChangedObserver),this._globalState.onUpdateRequiredObservable.remove(this._onUpdateRequiredObserver),this._material&&this._material.dispose(),this._camera.dispose(),this._dummy.dispose(),this._light.dispose(),this._engine.dispose()},e}(),we=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.changeMeshType=function(e){this.props.globalState.previewMeshType!==e&&(this.props.globalState.previewMeshType=e,this.props.globalState.onPreviewMeshTypeChanged.notifyObservers(),s.StoreNumber("PreviewMeshType",e),this.forceUpdate())},t.prototype.render=function(){var e=this;return o.createElement("div",{id:"preview-mesh-bar"},o.createElement("div",{onClick:function(){return e.changeMeshType(r.Box)},className:"button"+(this.props.globalState.previewMeshType===r.Box?" selected":"")},o.createElement(x.a,{icon:C})),o.createElement("div",{onClick:function(){return e.changeMeshType(r.Sphere)},className:"button"+(this.props.globalState.previewMeshType===r.Sphere?" selected":"")},o.createElement(x.a,{icon:k})),o.createElement("div",{onClick:function(){return e.changeMeshType(r.Torus)},className:"button"+(this.props.globalState.previewMeshType===r.Torus?" selected":"")},o.createElement(x.a,{icon:N})),o.createElement("div",{onClick:function(){return e.changeMeshType(r.Cylinder)},className:"button"+(this.props.globalState.previewMeshType===r.Cylinder?" selected":"")},o.createElement(x.a,{icon:P})))},t}(o.Component);n(319),n(321),n(323);var ke=function(e){function t(t){var n=e.call(this,t)||this;return n.NodeWidth=100,n._leftWidth=s.ReadNumber("LeftWidth",200),n._rightWidth=s.ReadNumber("RightWidth",300),n._nodes=new Array,n._blocks=new Array,n._copiedNode=null,n._toAdd=[],n._engine=new p.DiagramEngine,n._engine.installDefaultFactories(),n._engine.registerNodeFactory(new j(n.props.globalState)),n._engine.registerNodeFactory(new q(n.props.globalState)),n._engine.registerNodeFactory(new pe(n.props.globalState)),n._engine.registerNodeFactory(new ae(n.props.globalState)),n._engine.registerNodeFactory(new ye(n.props.globalState)),n._engine.registerLinkFactory(new he),n.props.globalState.onRebuildRequiredObservable.add(function(){n.props.globalState.nodeMaterial&&n.buildMaterial(),n.forceUpdate()}),n.props.globalState.onResetRequiredObservable.add(function(e){n.build(!1,e),n.props.globalState.nodeMaterial&&n.buildMaterial()}),n.props.globalState.onUpdateRequiredObservable.add(function(){n.forceUpdate()}),n.props.globalState.onZoomToFitRequiredObservable.add(function(){n.zoomToFit()}),n.props.globalState.onReOrganizedRequiredObservable.add(function(){n.reOrganize()}),n.props.globalState.onGetNodeFromBlock=function(e){return n._nodes.filter(function(t){return t.block===e})[0]},n.props.globalState.hostDocument.addEventListener("keyup",function(e){if(e.ctrlKey)if("c"===e.key){var t=n._engine.diagramModel.getSelectedItems();if(!t.length)return;var r=t[0];if(!r.block)return;n._copiedNode=r}else if("v"===e.key){if(!n._copiedNode)return;var o=n._copiedNode.block.clone(n.props.globalState.nodeMaterial.getScene());if(!o)return;var i=n.createNodeFromObject({nodeMaterialBlock:o});i.x=n._copiedNode.x,i.y=n._copiedNode.y+n._copiedNode.height+10,n._engine.repaintCanvas()}},!1),n.build(!0),n}return c(t,e),t.prototype.createNodeFromObject=function(e){return-1!==this._blocks.indexOf(e.nodeMaterialBlock)?this._nodes.filter(function(t){return t.block===e.nodeMaterialBlock})[0]:(this._blocks.push(e.nodeMaterialBlock),-1===this.props.globalState.nodeMaterial.attachedBlocks.indexOf(e.nodeMaterialBlock)&&this.props.globalState.nodeMaterial.attachedBlocks.push(e.nodeMaterialBlock),t=e.nodeMaterialBlock instanceof a.TextureBlock?new Y:e.nodeMaterialBlock instanceof a.LightBlock?new ce:e.nodeMaterialBlock instanceof a.InputBlock?new oe:e.nodeMaterialBlock instanceof a.RemapBlock?new ve:new L,e.nodeMaterialBlock.isFinalMerger&&this.props.globalState.nodeMaterial.addOutputNode(e.nodeMaterialBlock),this._nodes.push(t),this._model.addAll(t),e.nodeMaterialBlock&&t.prepare(e,this._nodes,this._model,this),t);var t},t.prototype.addValueNode=function(e){var t=h.GetConnectionNodeTypeFromString(e),n=new a.InputBlock(e,void 0,t);return this.createNodeFromObject({type:e,nodeMaterialBlock:n})},t.prototype.componentDidMount=function(){if(this.props.globalState.hostDocument){var e=this.refs.test;e.setState({document:this.props.globalState.hostDocument}),this.props.globalState.hostDocument.addEventListener("keyup",e.onKeyUpPointer,!1),this._previewManager=new xe(this.props.globalState.hostDocument.getElementById("preview-canvas"),this.props.globalState)}},t.prototype.componentWillUnmount=function(){if(this.props.globalState.hostDocument){var e=this.refs.test;this.props.globalState.hostDocument.removeEventListener("keyup",e.onKeyUpPointer,!1)}this._previewManager.dispose()},t.prototype.zoomToFit=function(e){var t=this;void 0===e&&(e=0);var n=this._engine.canvas.clientWidth/this._engine.canvas.scrollWidth,r=this._engine.canvas.clientHeight/this._engine.canvas.scrollHeight,o=n<r?n:r;1!==o&&(this._engine.diagramModel.setZoomLevel(this._engine.diagramModel.getZoomLevel()*o),this._engine.diagramModel.setOffset(0,0),this._engine.repaintCanvas(),++e<4&&setTimeout(function(){return t.zoomToFit(e)},1))},t.prototype.buildMaterial=function(){if(this.props.globalState.nodeMaterial)try{this.props.globalState.nodeMaterial.build(),this.props.globalState.onLogRequiredObservable.notifyObservers(new se("Node material build successful",!1))}catch(e){this.props.globalState.onLogRequiredObservable.notifyObservers(new se(e,!0))}},t.prototype.build=function(e,t){var n=this;if(void 0===e&&(e=!1),void 0===t&&(t=null),this._model=new p.DiagramModel,this._nodes=[],this._blocks=[],this._model.addListener({nodesUpdated:function(e){if(!e.isCreated){var t=e.node.block;if(t){var r=n.props.globalState.nodeMaterial.attachedBlocks.indexOf(t);r>-1&&n.props.globalState.nodeMaterial.attachedBlocks.splice(r,1),t.isFinalMerger&&n.props.globalState.nodeMaterial.removeOutputNode(t);var o=n._blocks.indexOf(t);o>-1&&n._blocks.splice(o,1)}n.props.globalState.onSelectionChangedObservable.notifyObservers(null)}},linksUpdated:function(e){if(e.isCreated)e.link.addListener({sourcePortChanged:function(){},targetPortChanged:function(){var t=y.SortInputOutput(e.link.sourcePort,e.link.targetPort);if(t){if(t.output.connection&&t.input.connection){for(var r in t.input.links){var o=t.input.links[r];o.getSourcePort().connection!==t.output.connection&&o.getTargetPort().connection!==t.output.connection&&o.remove()}try{t.output.connection.connectTo(t.input.connection)}catch(e){t.output.remove(),n.props.globalState.onLogRequiredObservable.notifyObservers(new se(e,!0)),n.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers(e)}n.forceUpdate()}n.props.globalState.nodeMaterial&&n.buildMaterial()}}});else{n.props.globalState.onSelectionChangedObservable.notifyObservers(null);var t=e.link.sourcePort,r=y.SortInputOutput(t,e.link.targetPort);if(r)r.input.connection&&r.output.connection&&r.input.connection.connectedPoint&&(r.output.connection.disconnectFrom(r.input.connection),r.input.syncWithNodeMaterialConnectionPoint(r.input.connection),r.output.syncWithNodeMaterialConnectionPoint(r.output.connection));else if(!e.link.targetPort&&e.link.sourcePort&&"input"===e.link.sourcePort.position){var o=e.link.sourcePort,i=n.addValueNode(h.GetStringFromConnectionNodeType(o.connection.type)),a=i.ports.output.link(o);i.x=e.link.points[1].x-n.NodeWidth,i.y=e.link.points[1].y,setTimeout(function(){n._model.addLink(a),o.syncWithNodeMaterialConnectionPoint(o.connection),i.ports.output.syncWithNodeMaterialConnectionPoint(i.ports.output.connection),n.forceUpdate()},1),i.ports.output.connection.connectTo(o.connection),n.props.globalState.onRebuildRequiredObservable.notifyObservers()}n.forceUpdate()}}}),this.props.globalState.nodeMaterial){var r=this.props.globalState.nodeMaterial;r._vertexOutputNodes.forEach(function(e){n.createNodeFromObject({nodeMaterialBlock:e})}),r._fragmentOutputNodes.forEach(function(e){n.createNodeFromObject({nodeMaterialBlock:e})}),r.attachedBlocks.forEach(function(e){n.createNodeFromObject({nodeMaterialBlock:e})})}setTimeout(function(){var e;n._toAdd&&(e=n._model).addAll.apply(e,n._toAdd),n._toAdd=null,n._engine.setDiagramModel(n._model),n.forceUpdate(),n.reOrganize(t)},e?500:1)},t.prototype.reOrganize=function(e){var t=this;if(void 0===e&&(e=null),e)for(var n=0,r=e;n<r.length;n++)for(var o=r[n],i=0,a=this._nodes;i<a.length;i++){var s=a[i];if(s.block&&s.block.uniqueId===o.blockId){s.setPosition(o.x,o.y);break}}else _e.DistributeGraph(this._model).forEach(function(e){for(var n in t._model.nodes){var r=t._model.nodes[n];if(r.id===e.id)return void r.setPosition(e.x-e.width/2,e.y-e.height/2)}});this._engine.repaintCanvas()},t.prototype.onPointerDown=function(e){this._startX=e.clientX,this._moveInProgress=!0,e.currentTarget.setPointerCapture(e.pointerId)},t.prototype.onPointerUp=function(e){this._moveInProgress=!1,e.currentTarget.releasePointerCapture(e.pointerId)},t.prototype.resizeColumns=function(e,t){if(void 0===t&&(t=!0),this._moveInProgress){var n=e.clientX-this._startX,r=e.currentTarget.ownerDocument.getElementById("node-editor-graph-root");t?(this._leftWidth+=n,this._leftWidth=Math.max(150,Math.min(400,this._leftWidth)),s.StoreNumber("LeftWidth",this._leftWidth)):(this._rightWidth-=n,this._rightWidth=Math.max(250,Math.min(500,this._rightWidth)),s.StoreNumber("RightWidth",this._rightWidth),r.ownerDocument.getElementById("preview").style.height=this._rightWidth+"px"),r.style.gridTemplateColumns=this.buildColumnLayout(),this._startX=e.clientX}},t.prototype.buildColumnLayout=function(){return this._leftWidth+"px 4px calc(100% - "+(this._leftWidth+8+this._rightWidth)+"px) 4px "+this._rightWidth+"px"},t.prototype.emitNewBlock=function(e){var t=e.dataTransfer.getData("babylonjs-material-node"),n=null;if(-1===t.indexOf("Block"))n=this.addValueNode(t);else{var r=h.GetBlockFromString(t);r&&(n=this.createNodeFromObject({nodeMaterialBlock:r}))}if(n){var o=this._engine.diagramModel.getZoomLevel()/100,i=(e.clientX-e.currentTarget.offsetLeft-this._engine.diagramModel.getOffsetX()-this.NodeWidth)/o,a=(e.clientY-e.currentTarget.offsetTop-this._engine.diagramModel.getOffsetY()-20)/o;n.setPosition(i,a)}this.forceUpdate()},t.prototype.render=function(){var e=this;return o.createElement(U,{globalState:this.props.globalState},o.createElement("div",{id:"node-editor-graph-root",style:{gridTemplateColumns:this.buildColumnLayout()}},o.createElement(R,{globalState:this.props.globalState}),o.createElement("div",{id:"leftGrab",onPointerDown:function(t){return e.onPointerDown(t)},onPointerUp:function(t){return e.onPointerUp(t)},onPointerMove:function(t){return e.resizeColumns(t)}}),o.createElement("div",{className:"diagram-container",onDrop:function(t){e.emitNewBlock(t)},onDragOver:function(e){e.preventDefault()}},o.createElement(p.DiagramWidget,{className:"diagram",deleteKeys:[46],ref:"test",allowLooseLinks:!1,inverseZoom:!0,diagramEngine:this._engine,maxNumberPointsPerLink:0})),o.createElement("div",{id:"rightGrab",onPointerDown:function(t){return e.onPointerDown(t)},onPointerUp:function(t){return e.onPointerUp(t)},onPointerMove:function(t){return e.resizeColumns(t,!1)}}),o.createElement("div",{className:"right-panel"},o.createElement(z,{globalState:this.props.globalState}),o.createElement(we,{globalState:this.props.globalState}),o.createElement("div",{id:"preview",style:{height:this._rightWidth+"px"}},o.createElement("canvas",{id:"preview-canvas"}))),o.createElement(ue,{globalState:this.props.globalState})),o.createElement(de,{globalState:this.props.globalState}))},t}(o.Component),Ee=function(){function e(){}return e.CreatePopup=function(e,t,n,r){var o=this;void 0===n&&(n=300),void 0===r&&(r=800);var i={width:n,height:r,top:(window.innerHeight-n)/2+window.screenY,left:(window.innerWidth-r)/2+window.screenX},a=Object.keys(i).map(function(e){return e+"="+i[e]}).join(","),s=window.open("",e,a);if(!s)return null;var u=s.document,l=u.createElement("link");l.rel="stylesheet",l.href="https://use.typekit.net/cta4xsb.css",u.head.appendChild(l),u.title=e,u.body.style.width="100%",u.body.style.height="100%",u.body.style.margin="0",u.body.style.padding="0";var c=u.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.margin="0",c.style.padding="0",s.document.body.appendChild(c),this._CopyStyles(window.document,u),setTimeout(function(){o._CopyStyles(window.document,u)},0),this[t]=s,c},e._CopyStyles=function(e,t){for(var n=0;n<e.styleSheets.length;n++){var r=e.styleSheets[n];try{if(r.cssRules){for(var o=e.createElement("style"),i=0,a=r.cssRules;i<a.length;i++){var s=a[i];o.appendChild(e.createTextNode(s.cssText))}t.head.appendChild(o)}else if(r.href){var u=e.createElement("link");u.rel="stylesheet",u.href=r.href,t.head.appendChild(u)}}catch(e){console.log(e)}}},e}(),Ce=function(){function e(){}return e.Show=function(e){var t=Ee.CreatePopup("BABYLON.JS NODE EDITOR","node-editor",1e3,800),n=new u;n.nodeMaterial=e.nodeMaterial,n.hostElement=t,n.hostDocument=t.ownerDocument;var r=o.createElement(ke,{globalState:n});i.render(r,t);var a=Ee["node-editor"];n.nodeMaterial&&a&&(n.nodeMaterial.getScene().onDisposeObservable.addOnce(function(){a&&a.close()}),window.onbeforeunload=function(e){var t=Ee["node-editor"];t&&t.close()})},e}();n.d(t,"a",function(){return Ce})},function(e,t,n){"use strict";var r=n(8);e.exports=s;var o="\0",i="\0",a="";function s(e){this._isDirected=!r.has(e,"directed")||e.directed,this._isMultigraph=!!r.has(e,"multigraph")&&e.multigraph,this._isCompound=!!r.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[i]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function u(e,t){e[t]?e[t]++:e[t]=1}function l(e,t){--e[t]||delete e[t]}function c(e,t,n,i){var s=""+t,u=""+n;if(!e&&s>u){var l=s;s=u,u=l}return s+a+u+a+(r.isUndefined(i)?o:i)}function f(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}var s={v:o,w:i};return r&&(s.name=r),s}function p(e,t){return c(e,t.v,t.w,t.name)}s.prototype._nodeCount=0,s.prototype._edgeCount=0,s.prototype.isDirected=function(){return this._isDirected},s.prototype.isMultigraph=function(){return this._isMultigraph},s.prototype.isCompound=function(){return this._isCompound},s.prototype.setGraph=function(e){return this._label=e,this},s.prototype.graph=function(){return this._label},s.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},s.prototype.nodeCount=function(){return this._nodeCount},s.prototype.nodes=function(){return r.keys(this._nodes)},s.prototype.sources=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._in[t])})},s.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._out[t])})},s.prototype.setNodes=function(e,t){var n=arguments,o=this;return r.each(e,function(e){n.length>1?o.setNode(e,t):o.setNode(e)}),this},s.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=i,this._children[e]={},this._children[i][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},s.prototype.node=function(e){return this._nodes[e]},s.prototype.hasNode=function(e){return r.has(this._nodes,e)},s.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),function(e){t.setParent(e)}),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},s.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t=i;else{for(var n=t+="";!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},s.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},s.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==i)return t}},s.prototype.children=function(e){if(r.isUndefined(e)&&(e=i),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if(e===i)return this.nodes();if(this.hasNode(e))return[]}},s.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},s.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},s.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},s.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},s.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),r.each(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var o={};return this._isCompound&&r.each(t.nodes(),function(e){t.setParent(e,function e(r){var i=n.parent(r);return void 0===i||t.hasNode(i)?(o[r]=i,i):i in o?o[i]:e(i)}(e))}),t},s.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},s.prototype.edgeCount=function(){return this._edgeCount},s.prototype.edges=function(){return r.values(this._edgeObjs)},s.prototype.setPath=function(e,t){var n=this,o=arguments;return r.reduce(e,function(e,r){return o.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r}),this},s.prototype.setEdge=function(){var e,t,n,o,i=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(e=a.v,t=a.w,n=a.name,2===arguments.length&&(o=arguments[1],i=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var s=c(this._isDirected,e,t,n);if(r.has(this._edgeLabels,s))return i&&(this._edgeLabels[s]=o),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[s]=i?o:this._defaultEdgeLabelFn(e,t,n);var l=f(this._isDirected,e,t,n);return e=l.v,t=l.w,Object.freeze(l),this._edgeObjs[s]=l,u(this._preds[t],e),u(this._sucs[e],t),this._in[t][s]=l,this._out[e][s]=l,this._edgeCount++,this},s.prototype.edge=function(e,t,n){var r=1===arguments.length?p(this._isDirected,arguments[0]):c(this._isDirected,e,t,n);return this._edgeLabels[r]},s.prototype.hasEdge=function(e,t,n){var o=1===arguments.length?p(this._isDirected,arguments[0]):c(this._isDirected,e,t,n);return r.has(this._edgeLabels,o)},s.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?p(this._isDirected,arguments[0]):c(this._isDirected,e,t,n),o=this._edgeObjs[r];return o&&(e=o.v,t=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],l(this._preds[t],e),l(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},s.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var o=r.values(n);return t?r.filter(o,function(e){return e.v===t}):o}},s.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var o=r.values(n);return t?r.filter(o,function(e){return e.w===t}):o}},s.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},function(e,t,n){var r=n(17)(n(11),"Map");e.exports=r},function(e,t,n){var r=n(164),o=n(171),i=n(173),a=n(174),s=n(175);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){(function(e){var r=n(75),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(34)(e))},function(e,t,n){var r=n(44),o=n(181),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(82),o=n(83),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(88);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var r=n(65),o=n(16);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(200)();e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t,n){var r=n(47),o=n(33);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(5),o=n(27),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},function(e,t,n){var r=n(61),o=n(234);e.exports=function e(t,n,i,a,s){var u=-1,l=t.length;for(i||(i=o),s||(s=[]);++u<l;){var c=t[u];n>0&&i(c)?n>1?e(c,n-1,i,a,s):r(s,c):a||(s[s.length]=c)}return s}},function(e,t,n){var r=n(27);e.exports=function(e,t,n){for(var o=-1,i=e.length;++o<i;){var a=e[o],s=t(a);if(null!=s&&(void 0===u?s==s&&!r(s):n(s,u)))var u=s,l=a}return l}},function(e,t,n){"use strict";(function(e,r){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){a(e,t,n[t])})}return e}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(t,"a",function(){return Ae}),n.d(t,"b",function(){return Te});var l=function(){},c={},f={},p={mark:l,measure:l};try{"undefined"!=typeof window&&(c=window),"undefined"!=typeof document&&(f=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(p=performance)}catch(e){}var d=(c.navigator||{}).userAgent,h=void 0===d?"":d,g=c,v=f,m=p,y=(g.document,!!v.documentElement&&!!v.head&&"function"==typeof v.addEventListener&&"function"==typeof v.createElement),b=(~h.indexOf("MSIE")||h.indexOf("Trident/"),"fa"),_="svg-inline--fa",x="data-fa-i2svg",w=(function(){try{}catch(e){return!1}}(),[1,2,3,4,5,6,7,8,9,10]),k=w.concat([11,12,13,14,15,16,17,18,19,20]),E=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter"].concat(w.map(function(e){return"".concat(e,"x")})).concat(k.map(function(e){return"w-".concat(e)})),g.FontAwesomeConfig||{});if(v&&"function"==typeof v.querySelector){[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(e){var t=u(e,2),n=t[0],r=t[1],o=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=v.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=o&&(E[r]=o)})}var C=s({},{familyPrefix:b,replacementClass:_,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},E);C.autoReplaceSvg||(C.observeMutations=!1);var P=s({},C);g.FontAwesomeConfig=P;var O=g||{};O.___FONT_AWESOME___||(O.___FONT_AWESOME___={}),O.___FONT_AWESOME___.styles||(O.___FONT_AWESOME___.styles={}),O.___FONT_AWESOME___.hooks||(O.___FONT_AWESOME___.hooks={}),O.___FONT_AWESOME___.shims||(O.___FONT_AWESOME___.shims=[]);var S=O.___FONT_AWESOME___,N=[];y&&((v.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(v.readyState)||v.addEventListener("DOMContentLoaded",function e(){v.removeEventListener("DOMContentLoaded",e),1,N.map(function(e){return e()})}));var T,A="pending",M="settled",L="fulfilled",j="rejected",I=function(){},R=void 0!==e&&void 0!==e.process&&"function"==typeof e.process.emit,B=void 0===r?setTimeout:r,F=[];function D(){for(var e=0;e<F.length;e++)F[e][0](F[e][1]);F=[],T=!1}function z(e,t){F.push([e,t]),T||(T=!0,B(D,0))}function U(e){var t=e.owner,n=t._state,r=t._data,o=e[n],i=e.then;if("function"==typeof o){n=L;try{r=o(r)}catch(e){Y(i,e)}}W(i,r)||(n===L&&V(i,r),n===j&&Y(i,r))}function W(e,t){var n;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"===o(t))){var r=t.then;if("function"==typeof r)return r.call(t,function(r){n||(n=!0,t===r?G(e,r):V(e,r))},function(t){n||(n=!0,Y(e,t))}),!0}}catch(t){return n||Y(e,t),!0}return!1}function V(e,t){e!==t&&W(e,t)||G(e,t)}function G(e,t){e._state===A&&(e._state=M,e._data=t,z(X,e))}function Y(e,t){e._state===A&&(e._state=M,e._data=t,z(H,e))}function q(e){e._then=e._then.forEach(U)}function X(e){e._state=L,q(e)}function H(t){t._state=j,q(t),!t._handled&&R&&e.process.emit("unhandledRejection",t._data,t)}function K(t){e.process.emit("rejectionHandled",t)}function $(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof $==!1)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(e,t){function n(e){Y(t,e)}try{e(function(e){V(t,e)},n)}catch(e){n(e)}}(e,this)}$.prototype={constructor:$,_state:A,_then:null,_data:void 0,_handled:!1,then:function(e,t){var n={owner:this,then:new this.constructor(I),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,this._state===j&&R&&z(K,this)),this._state===L||this._state===j?z(U,n):this._then.push(n),n.then},catch:function(e){return this.then(null,e)}},$.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new $(function(t,n){var r=[],o=0;function i(e){return o++,function(n){r[e]=n,--o||t(r)}}for(var a,s=0;s<e.length;s++)(a=e[s])&&"function"==typeof a.then?a.then(i(s),n):r[s]=a;o||t(r)})},$.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new $(function(t,n){for(var r,o=0;o<e.length;o++)(r=e[o])&&"function"==typeof r.then?r.then(t,n):t(r)})},$.resolve=function(e){return e&&"object"===o(e)&&e.constructor===$?e:new $(function(t){t(e)})},$.reject=function(e){return new $(function(t,n){n(e)})};"function"==typeof Promise&&Promise;var Q={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Z(e){if(e&&y){var t=v.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=v.head.childNodes,r=null,o=n.length-1;o>-1;o--){var i=n[o],a=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=i)}return v.head.insertBefore(t,r),e}}var J="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ee(){for(var e=12,t="";e-- >0;)t+=J[62*Math.random()|0];return t}function te(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ne(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n],";")},"")}function re(e){return e.size!==Q.size||e.x!==Q.x||e.y!==Q.y||e.rotate!==Q.rotate||e.flipX||e.flipY}function oe(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var ie={x:0,y:0,width:"100%",height:"100%"};function ae(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,i=e.iconName,a=e.transform,u=e.symbol,l=e.title,c=e.extra,f=e.watchable,p=void 0!==f&&f,d=r.found?r:n,h=d.width,g=d.height,v="fa-w-".concat(Math.ceil(h/g*16)),m=[P.replacementClass,i?"".concat(P.familyPrefix,"-").concat(i):"",v].filter(function(e){return-1===c.classes.indexOf(e)}).concat(c.classes).join(" "),y={children:[],attributes:s({},c.attributes,{"data-prefix":o,"data-icon":i,class:m,role:c.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(h," ").concat(g)})};p&&(y.attributes[x]=""),l&&y.children.push({tag:"title",attributes:{id:y.attributes["aria-labelledby"]||"title-".concat(ee())},children:[l]});var b=s({},y,{prefix:o,iconName:i,main:n,mask:r,transform:a,symbol:u,styles:c.styles}),_=r.found&&n.found?function(e){var t=e.children,n=e.attributes,r=e.main,o=e.mask,i=e.transform,a=r.width,u=r.icon,l=o.width,c=o.icon,f=oe({transform:i,containerWidth:l,iconWidth:a}),p={tag:"rect",attributes:s({},ie,{fill:"white"})},d={tag:"g",attributes:s({},f.inner),children:[{tag:"path",attributes:s({},u.attributes,f.path,{fill:"black"})}]},h={tag:"g",attributes:s({},f.outer),children:[d]},g="mask-".concat(ee()),v="clip-".concat(ee()),m={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:[c]},{tag:"mask",attributes:s({},ie,{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,h]}]};return t.push(m,{tag:"rect",attributes:s({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(g,")")},ie)}),{children:t,attributes:n}}(b):function(e){var t=e.children,n=e.attributes,r=e.main,o=e.transform,i=ne(e.styles);if(i.length>0&&(n.style=i),re(o)){var a=oe({transform:o,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:s({},a.outer),children:[{tag:"g",attributes:s({},a.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:s({},r.icon.attributes,a.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(b),w=_.children,k=_.attributes;return b.children=w,b.attributes=k,u?function(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,i=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:s({},o,{id:!0===i?"".concat(t,"-").concat(P.familyPrefix,"-").concat(n):i}),children:r}]}]}(b):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,i=e.styles,a=e.transform;if(re(a)&&n.found&&!r.found){var u={x:n.width/n.height/2,y:.5};o.style=ne(s({},i,{"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(b)}var se=function(){},ue=(P.measurePerformance&&m&&m.mark&&m.measure,function(e,t,n,r){var o,i,a,s=Object.keys(e),u=s.length,l=void 0!==r?function(e,t){return function(n,r,o,i){return e.call(t,n,r,o,i)}}(t,r):t;for(void 0===n?(o=1,a=e[s[0]]):(o=0,a=n);o<u;o++)a=l(a,e[i=s[o]],i,e);return a});function le(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,o=Object.keys(t).reduce(function(e,n){var r=t[n];return!!r.icon?e[r.iconName]=r.icon:e[n]=r,e},{});"function"!=typeof S.hooks.addPack||r?S.styles[e]=s({},S.styles[e]||{},o):S.hooks.addPack(e,o),"fas"===e&&le("fa",t)}var ce=S.styles,fe=S.shims,pe=function(){var e=function(e){return ue(ce,function(t,n,r){return t[r]=ue(n,e,{}),t},{})};e(function(e,t,n){return t[3]&&(e[t[3]]=n),e}),e(function(e,t,n){var r=t[2];return e[n]=n,r.forEach(function(t){e[t]=n}),e});var t="far"in ce;ue(fe,function(e,n){var r=n[0],o=n[1],i=n[2];return"far"!==o||t||(o="fas"),e[r]={prefix:o,iconName:i},e},{})};pe();S.styles;function de(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function he(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,o=e.children,i=void 0===o?[]:o;return"string"==typeof e?te(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(te(e[n]),'" ')},"").trim()}(r),">").concat(i.map(he).join(""),"</").concat(t,">")}var ge=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce(function(e,t){var n=t.toLowerCase().split("-"),r=n[0],o=n.slice(1).join("-");if(r&&"h"===o)return e.flipX=!0,e;if(r&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(r){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e},t):t};function ve(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}ve.prototype=Object.create(Error.prototype),ve.prototype.constructor=ve;var me={fill:"currentColor"},ye={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},be={tag:"path",attributes:s({},me,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},_e=s({},ye,{attributeName:"opacity"});s({},me,{cx:"256",cy:"364",r:"28"}),s({},ye,{attributeName:"r",values:"28;14;28;28;14;28;"}),s({},_e,{values:"1;0;1;1;0;1;"}),s({},me,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),s({},_e,{values:"1;0;0;0;0;1;"}),s({},me,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),s({},_e,{values:"0;0;1;1;0;0;"}),S.styles;S.styles;var xe='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}';function we(){var e=b,t=_,n=P.familyPrefix,r=P.replacementClass,o=xe;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(a,".".concat(r))}return o}function ke(e){return{found:!0,width:e[0],height:e[1],icon:{tag:"path",attributes:{fill:"currentColor",d:e.slice(4)[0]}}}}function Ee(){P.autoAddCss&&!Ne&&(Z(we()),Ne=!0)}function Ce(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return he(e)})}}),Object.defineProperty(e,"node",{get:function(){if(y){var t=v.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function Pe(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return de(Se.definitions,n,r)||de(S.styles,n,r)}var Oe,Se=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n,r;return t=e,(n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(t){e.definitions[t]=s({},e.definitions[t]||{},o[t]),le(t,o[t]),pe()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map(function(t){var r=n[t],o=r.prefix,i=r.iconName,a=r.icon;e[o]||(e[o]={}),e[o][i]=a}),e}}])&&i(t.prototype,n),r&&i(t,r),e}()),Ne=!1,Te={transform:function(e){return ge(e)}},Ae=(Oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Q:n,o=t.symbol,i=void 0!==o&&o,a=t.mask,u=void 0===a?null:a,l=t.title,c=void 0===l?null:l,f=t.classes,p=void 0===f?[]:f,d=t.attributes,h=void 0===d?{}:d,g=t.styles,v=void 0===g?{}:g;if(e){var m=e.prefix,y=e.iconName,b=e.icon;return Ce(s({type:"icon"},e),function(){return Ee(),P.autoA11y&&(c?h["aria-labelledby"]="".concat(P.replacementClass,"-title-").concat(ee()):(h["aria-hidden"]="true",h.focusable="false")),ae({icons:{main:ke(b),mask:u?ke(u.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:y,transform:s({},Q,r),symbol:i,title:c,extra:{attributes:h,styles:v,classes:p}})})}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:Pe(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:Pe(r||{})),Oe(n,s({},t,{mask:r}))})}).call(this,n(15),n(133).setImmediate)},function(e,t,n){e.exports={graphlib:n(10),layout:n(258),debug:n(317),util:{time:n(7).time,notime:n(7).notime},version:n(318)}},function(e,t,n){"use strict";
  4. /*
  5. object-assign
  6. (c) Sindre Sorhus
  7. @license MIT
  8. */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=a(e),l=1;l<arguments.length;l++){for(var c in n=Object(arguments[l]))o.call(n,c)&&(u[c]=n[c]);if(r){s=r(n);for(var f=0;f<s.length;f++)i.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},function(e,t,n){var r=n(35),o=n(56),i=n(40),a=n(176),s=n(182),u=n(80),l=n(81),c=n(185),f=n(186),p=n(85),d=n(187),h=n(26),g=n(191),v=n(192),m=n(90),y=n(5),b=n(24),_=n(196),x=n(9),w=n(198),k=n(16),E=1,C=2,P=4,O="[object Arguments]",S="[object Function]",N="[object GeneratorFunction]",T="[object Object]",A={};A[O]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[T]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[S]=A["[object WeakMap]"]=!1,e.exports=function e(t,n,M,L,j,I){var R,B=n&E,F=n&C,D=n&P;if(M&&(R=j?M(t,L,j,I):M(t)),void 0!==R)return R;if(!x(t))return t;var z=y(t);if(z){if(R=g(t),!B)return l(t,R)}else{var U=h(t),W=U==S||U==N;if(b(t))return u(t,B);if(U==T||U==O||W&&!j){if(R=F||W?{}:m(t),!B)return F?f(t,s(R,t)):c(t,a(R,t))}else{if(!A[U])return j?t:{};R=v(t,U,B)}}I||(I=new r);var V=I.get(t);if(V)return V;I.set(t,R),w(t)?t.forEach(function(r){R.add(e(r,n,M,r,t,I))}):_(t)&&t.forEach(function(r,o){R.set(o,e(r,n,M,o,t,I))});var G=D?F?d:p:F?keysIn:k,Y=z?void 0:G(t);return o(Y||t,function(r,o){Y&&(r=t[o=r]),i(R,o,e(r,n,M,o,t,I))}),R}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(15))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(17),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(177),o=n(31),i=n(5),a=n(24),s=n(42),u=n(32),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),f=!n&&!c&&a(e),p=!n&&!c&&!f&&u(e),d=n||c||f||p,h=d?r(e.length,String):[],g=h.length;for(var v in e)!t&&!l.call(e,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g))||h.push(v);return h}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){(function(e){var r=n(11),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(34)(e))},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(61),o=n(45),i=n(60),a=n(83),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},function(e,t,n){var r=n(86),o=n(60),i=n(16);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(61),o=n(5);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(17)(n(11),"Set");e.exports=r},function(e,t,n){var r=n(11).Uint8Array;e.exports=r},function(e,t,n){var r=n(62);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(91),o=n(45),i=n(44);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){var r=n(9),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){e.exports=n(93)},function(e,t,n){var r=n(56),o=n(46),i=n(94),a=n(5);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},function(e,t,n){var r=n(19);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(82),o=n(202),i=n(14),a=n(5);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},function(e,t,n){var r=n(205),o=n(12);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},function(e,t,n){var r=n(98),o=n(208),i=n(99),a=1,s=2;e.exports=function(e,t,n,u,l,c){var f=n&a,p=e.length,d=t.length;if(p!=d&&!(f&&d>p))return!1;var h=c.get(e);if(h&&c.get(t))return h==t;var g=-1,v=!0,m=n&s?new r:void 0;for(c.set(e,t),c.set(t,e);++g<p;){var y=e[g],b=t[g];if(u)var _=f?u(b,y,g,t,e,c):u(y,b,g,e,t,c);if(void 0!==_){if(_)continue;v=!1;break}if(m){if(!o(t,function(e,t){if(!i(m,t)&&(y===e||l(y,e,n,u,c)))return m.push(t)})){v=!1;break}}else if(y!==b&&!l(y,b,n,u,c)){v=!1;break}}return c.delete(e),c.delete(t),v}},function(e,t,n){var r=n(55),o=n(206),i=n(207);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(9);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},function(e,t,n){var r=n(218);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(219),o=n(104);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){var r=n(47),o=n(31),i=n(5),a=n(42),s=n(57),u=n(33);e.exports=function(e,t,n){for(var l=-1,c=(t=r(t,e)).length,f=!1;++l<c;){var p=u(t[l]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++l!=c?f:!!(c=null==e?0:e.length)&&s(c)&&a(p,c)&&(i(e)||o(e))}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(222),o=n(104);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){var r=n(48),o=n(14),i=n(109),a=n(5);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},function(e,t,n){var r=n(46),o=n(13);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++n]=t(e,r,o)}),i}},function(e,t,n){var r=n(224),o=n(46),i=n(14),a=n(225),s=n(5);e.exports=function(e,t,n){var u=s(e)?r:a,l=arguments.length<3;return u(e,i(t,4),n,l,o)}},function(e,t,n){var r=n(235),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),u=Array(s);++a<s;)u[a]=i[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=i[a];return l[t]=n(u),r(e,this,l)}}},function(e,t,n){var r=n(236),o=n(237)(r);e.exports=o},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},function(e,t,n){var r=n(13),o=n(12);e.exports=function(e){return o(e)&&r(e)}},function(e,t,n){var r=n(246),o=n(16);e.exports=function(e){return null==e?[]:r(e,o(e))}},function(e,t,n){var r=n(8),o=n(117);e.exports=function(e,t,n,r){return function(e,t,n,r){var i,a,s={},u=new o,l=function(e){var t=e.v!==i?e.v:e.w,r=s[t],o=n(e),l=a.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+o);l<r.distance&&(r.distance=l,r.predecessor=i,u.decrease(t,l))};e.nodes().forEach(function(e){var n=e===t?0:Number.POSITIVE_INFINITY;s[e]={distance:n},u.add(e,n)});for(;u.size()>0&&(i=u.removeMin(),(a=s[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(l);return s}(e,String(t),n||i,r||function(t){return e.outEdges(t)})};var i=r.constant(1)},function(e,t,n){var r=n(8);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(e){return e.key})},o.prototype.has=function(e){return r.has(this._keyIndices,e)},o.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var o=this._arr,i=o.length;return n[e]=i,o.push({key:e,priority:t}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},o.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},o.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,o=e;n<t.length&&(o=t[n].priority<t[o].priority?n:o,r<t.length&&(o=t[r].priority<t[o].priority?r:o),o!==e&&(this._swap(e,o),this._heapify(o)))},o.prototype._decrease=function(e){for(var t,n=this._arr,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this._swap(e,t),e=t},o.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,o=n[e],i=n[t];n[e]=i,n[t]=o,r[i.key]=e,r[o.key]=t}},function(e,t,n){var r=n(8);e.exports=function(e){var t=0,n=[],o={},i=[];return e.nodes().forEach(function(a){r.has(o,a)||function a(s){var u=o[s]={onStack:!0,lowlink:t,index:t++};if(n.push(s),e.successors(s).forEach(function(e){r.has(o,e)?o[e].onStack&&(u.lowlink=Math.min(u.lowlink,o[e].index)):(a(e),u.lowlink=Math.min(u.lowlink,o[e].lowlink))}),u.lowlink===u.index){var l,c=[];do{l=n.pop(),o[l].onStack=!1,c.push(l)}while(s!==l);i.push(c)}}(a)}),i}},function(e,t,n){var r=n(8);function o(e){var t={},n={},o=[];if(r.each(e.sinks(),function a(s){if(r.has(n,s))throw new i;r.has(t,s)||(n[s]=!0,t[s]=!0,r.each(e.predecessors(s),a),delete n[s],o.push(s))}),r.size(t)!==e.nodeCount())throw new i;return o}function i(){}e.exports=o,o.CycleException=i,i.prototype=new Error},function(e,t,n){var r=n(8);e.exports=function(e,t,n){r.isArray(t)||(t=[t]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return r.each(t,function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);!function e(t,n,o,i,a,s){r.has(i,n)||(i[n]=!0,o||s.push(n),r.each(a(n),function(n){e(t,n,o,i,a,s)}),o&&s.push(n))}(e,t,"post"===n,a,o,i)}),i}},function(e,t,n){var r=n(265),o=1/0,i=17976931348623157e292;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*i:e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(69);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},function(e,t,n){var r=n(41),o=n(22);e.exports=function(e,t,n){(void 0===n||o(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t){e.exports=function(e,t){return e<t}},function(e,t,n){"use strict";var r=n(3),o=n(10).Graph,i=n(51).slack;function a(e,t){return r.forEach(e.nodes(),function n(o){r.forEach(t.nodeEdges(o),function(r){var a=r.v,s=o===a?r.w:a;e.hasNode(s)||i(t,r)||(e.setNode(s,{}),e.setEdge(o,s,{}),n(s))})}),e.nodeCount()}function s(e,t){return r.minBy(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return i(t,n)})}function u(e,t,n){r.forEach(e.nodes(),function(e){t.node(e).rank+=n})}e.exports=function(e){var t,n,r=new o({directed:!1}),l=e.nodes()[0],c=e.nodeCount();r.setNode(l,{});for(;a(r,e)<c;)t=s(r,e),n=r.hasNode(t.v)?i(e,t):-i(e,t),u(r,e,n);return r}},function(e,t,n){"use strict";n.r(t),function(e){var r=n(52);n.d(t,"NodeEditor",function(){return r.a});var o=void 0!==e?e:"undefined"!=typeof window?window:void 0;void 0!==o&&(o.BABYLON=o.BABYLON||{},o.BABYLON.NodeEditor=r.a)}.call(this,n(15))},function(e,t,n){"use strict";
  9. /** @license React v16.6.1
  10. * react.production.min.js
  11. *
  12. * Copyright (c) Facebook, Inc. and its affiliates.
  13. *
  14. * This source code is licensed under the MIT license found in the
  15. * LICENSE file in the root directory of this source tree.
  16. */var r=n(73),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,u=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,g=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,o,i,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],l=0;(e=Error(t.replace(/%s/g,function(){return u[l++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function x(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||b}function w(){}function k(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||b}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&y("85"),this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=x.prototype;var E=k.prototype=new w;E.constructor=k,r(E,x.prototype),E.isPureReactComponent=!0;var C={current:null,currentDispatcher:null},P=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r=void 0,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)P.call(t,r)&&!O.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:C.current}}function N(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var T=/\/+/g,A=[];function M(e,t,n,r){if(A.length){var o=A.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function L(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>A.length&&A.push(e)}function j(e,t,n){return null==e?0:function e(t,n,r,o){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u=!1;if(null===t)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case a:u=!0}}if(u)return r(o,t,""===n?"."+I(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l<t.length;l++){var c=n+I(s=t[l],l);u+=e(s,c,r,o)}else if(c=null===t||"object"!=typeof t?null:"function"==typeof(c=m&&t[m]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),l=0;!(s=t.next()).done;)u+=e(s=s.value,c=n+I(s,l++),r,o);else"object"===s&&y("31","[object Object]"==(r=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":r,"");return u}(e,"",t,n)}function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function R(e,t){e.func.call(e.context,t,e.count++)}function B(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?F(e,r,n,function(e){return e}):null!=e&&(N(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(T,"$&/")+"/")+n)),r.push(e))}function F(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(T,"$&/")+"/"),j(e,B,t=M(t,i,r,o)),L(t)}var D={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return F(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;j(e,R,t=M(null,null,t,n)),L(t)},count:function(e){return j(e,function(){return null},null)},toArray:function(e){var t=[];return F(e,t,null,function(e){return e}),t},only:function(e){return N(e)||y("143"),e}},createRef:function(){return{current:null}},Component:x,PureComponent:k,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:d,render:e}},lazy:function(e){return{$$typeof:v,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:g,type:e,compare:void 0===t?null:t}},Fragment:s,StrictMode:u,Suspense:h,createElement:S,cloneElement:function(e,t,n){null==e&&y("267",e);var o=void 0,a=r({},e.props),s=e.key,u=e.ref,l=e._owner;if(null!=t){void 0!==t.ref&&(u=t.ref,l=C.current),void 0!==t.key&&(s=""+t.key);var c=void 0;for(o in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)P.call(t,o)&&!O.hasOwnProperty(o)&&(a[o]=void 0===t[o]&&void 0!==c?c[o]:t[o])}if(1===(o=arguments.length-2))a.children=n;else if(1<o){c=Array(o);for(var f=0;f<o;f++)c[f]=arguments[f+2];a.children=c}return{$$typeof:i,type:e.type,key:s,ref:u,props:a,_owner:l}},createFactory:function(e){var t=S.bind(null,e);return t.type=e,t},isValidElement:N,version:"16.6.3",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:C,assign:r}};D.unstable_ConcurrentMode=p,D.unstable_Profiler=l;var z={default:D},U=z&&D||z;e.exports=U.default||U},function(e,t,n){"use strict";
  17. /** @license React v16.6.1
  18. * react-dom.production.min.js
  19. *
  20. * Copyright (c) Facebook, Inc. and its affiliates.
  21. *
  22. * This source code is licensed under the MIT license found in the
  23. * LICENSE file in the root directory of this source tree.
  24. */var r=n(0),o=n(73),i=n(130);function a(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,o,i,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],l=0;(e=Error(t.replace(/%s/g,function(){return u[l++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}r||a("227");var s=!1,u=null,l=!1,c=null,f={onError:function(e){s=!0,u=e}};function p(e,t,n,r,o,i,a,l,c){s=!1,u=null,function(e,t,n,r,o,i,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}.apply(f,arguments)}var d=null,h={};function g(){if(d)for(var e in h){var t=h[e],n=d.indexOf(e);if(-1<n||a("96",e),!m[n])for(var r in t.extractEvents||a("97",e),m[n]=t,n=t.eventTypes){var o=void 0,i=n[r],s=t,u=r;y.hasOwnProperty(u)&&a("99",u),y[u]=i;var l=i.phasedRegistrationNames;if(l){for(o in l)l.hasOwnProperty(o)&&v(l[o],s,u);o=!0}else i.registrationName?(v(i.registrationName,s,u),o=!0):o=!1;o||a("98",r,e)}}}function v(e,t,n){b[e]&&a("100",e),b[e]=t,_[e]=t.eventTypes[n].dependencies}var m=[],y={},b={},_={},x=null,w=null,k=null;function E(e,t,n){var r=e.type||"unknown-event";e.currentTarget=k(n),function(e,t,n,r,o,i,f,d,h){if(p.apply(this,arguments),s){if(s){var g=u;s=!1,u=null}else a("198"),g=void 0;l||(l=!0,c=g)}}(r,t,void 0,e),e.currentTarget=null}function C(e,t){return null==t&&a("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function P(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var O=null;function S(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)E(e,t[r],n[r]);else t&&E(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var N={injectEventPluginOrder:function(e){d&&a("101"),d=Array.prototype.slice.call(e),g()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];h.hasOwnProperty(t)&&h[t]===r||(h[t]&&a("102",t),h[t]=r,n=!0)}n&&g()}};function T(e,t){var n=e.stateNode;if(!n)return null;var r=x(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&a("231",t,typeof n),n)}function A(e){if(null!==e&&(O=C(O,e)),e=O,O=null,e&&(P(e,S),O&&a("95"),l))throw e=c,l=!1,c=null,e}var M=Math.random().toString(36).slice(2),L="__reactInternalInstance$"+M,j="__reactEventHandlers$"+M;function I(e){if(e[L])return e[L];for(;!e[L];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[L]).tag||6===e.tag?e:null}function R(e){return!(e=e[L])||5!==e.tag&&6!==e.tag?null:e}function B(e){if(5===e.tag||6===e.tag)return e.stateNode;a("33")}function F(e){return e[j]||null}function D(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function z(e,t,n){(t=T(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=C(n._dispatchListeners,t),n._dispatchInstances=C(n._dispatchInstances,e))}function U(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=D(t);for(t=n.length;0<t--;)z(n[t],"captured",e);for(t=0;t<n.length;t++)z(n[t],"bubbled",e)}}function W(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=T(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=C(n._dispatchListeners,t),n._dispatchInstances=C(n._dispatchInstances,e))}function V(e){e&&e.dispatchConfig.registrationName&&W(e._targetInst,null,e)}function G(e){P(e,U)}var Y=!("undefined"==typeof window||!window.document||!window.document.createElement);function q(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var X={animationend:q("Animation","AnimationEnd"),animationiteration:q("Animation","AnimationIteration"),animationstart:q("Animation","AnimationStart"),transitionend:q("Transition","TransitionEnd")},H={},K={};function $(e){if(H[e])return H[e];if(!X[e])return e;var t,n=X[e];for(t in n)if(n.hasOwnProperty(t)&&t in K)return H[e]=n[t];return e}Y&&(K=document.createElement("div").style,"AnimationEvent"in window||(delete X.animationend.animation,delete X.animationiteration.animation,delete X.animationstart.animation),"TransitionEvent"in window||delete X.transitionend.transition);var Q=$("animationend"),Z=$("animationiteration"),J=$("animationstart"),ee=$("transitionend"),te="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ne=null,re=null,oe=null;function ie(){if(oe)return oe;var e,t,n=re,r=n.length,o="value"in ne?ne.value:ne.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return oe=o.slice(e,1<t?1-t:void 0)}function ae(){return!0}function se(){return!1}function ue(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?ae:se,this.isPropagationStopped=se,this}function le(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function ce(e){e instanceof this||a("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function fe(e){e.eventPool=[],e.getPooled=le,e.release=ce}o(ue.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:se,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=se,this._dispatchInstances=this._dispatchListeners=null}}),ue.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ue.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,fe(n),n},fe(ue);var pe=ue.extend({data:null}),de=ue.extend({data:null}),he=[9,13,27,32],ge=Y&&"CompositionEvent"in window,ve=null;Y&&"documentMode"in document&&(ve=document.documentMode);var me=Y&&"TextEvent"in window&&!ve,ye=Y&&(!ge||ve&&8<ve&&11>=ve),be=String.fromCharCode(32),_e={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},xe=!1;function we(e,t){switch(e){case"keyup":return-1!==he.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ke(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ee=!1;var Ce={eventTypes:_e,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(ge)e:{switch(e){case"compositionstart":o=_e.compositionStart;break e;case"compositionend":o=_e.compositionEnd;break e;case"compositionupdate":o=_e.compositionUpdate;break e}o=void 0}else Ee?we(e,n)&&(o=_e.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=_e.compositionStart);return o?(ye&&"ko"!==n.locale&&(Ee||o!==_e.compositionStart?o===_e.compositionEnd&&Ee&&(i=ie()):(re="value"in(ne=r)?ne.value:ne.textContent,Ee=!0)),o=pe.getPooled(o,t,n,r),i?o.data=i:null!==(i=ke(n))&&(o.data=i),G(o),i=o):i=null,(e=me?function(e,t){switch(e){case"compositionend":return ke(t);case"keypress":return 32!==t.which?null:(xe=!0,be);case"textInput":return(e=t.data)===be&&xe?null:e;default:return null}}(e,n):function(e,t){if(Ee)return"compositionend"===e||!ge&&we(e,t)?(e=ie(),oe=re=ne=null,Ee=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ye&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=de.getPooled(_e.beforeInput,t,n,r)).data=e,G(t)):t=null,null===i?t:null===t?i:[i,t]}},Pe=null,Oe=null,Se=null;function Ne(e){if(e=w(e)){"function"!=typeof Pe&&a("280");var t=x(e.stateNode);Pe(e.stateNode,e.type,t)}}function Te(e){Oe?Se?Se.push(e):Se=[e]:Oe=e}function Ae(){if(Oe){var e=Oe,t=Se;if(Se=Oe=null,Ne(e),t)for(e=0;e<t.length;e++)Ne(t[e])}}function Me(e,t){return e(t)}function Le(e,t,n){return e(t,n)}function je(){}var Ie=!1;function Re(e,t){if(Ie)return e(t);Ie=!0;try{return Me(e,t)}finally{Ie=!1,(null!==Oe||null!==Se)&&(je(),Ae())}}var Be={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fe(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Be[e.type]:"textarea"===t}function De(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ze(e){if(!Y)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function Ue(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function We(e){e._valueTracker||(e._valueTracker=function(e){var t=Ue(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ve(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ue(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var Ge=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ye=/^(.*)[\\\/]/,qe="function"==typeof Symbol&&Symbol.for,Xe=qe?Symbol.for("react.element"):60103,He=qe?Symbol.for("react.portal"):60106,Ke=qe?Symbol.for("react.fragment"):60107,$e=qe?Symbol.for("react.strict_mode"):60108,Qe=qe?Symbol.for("react.profiler"):60114,Ze=qe?Symbol.for("react.provider"):60109,Je=qe?Symbol.for("react.context"):60110,et=qe?Symbol.for("react.concurrent_mode"):60111,tt=qe?Symbol.for("react.forward_ref"):60112,nt=qe?Symbol.for("react.suspense"):60113,rt=qe?Symbol.for("react.memo"):60115,ot=qe?Symbol.for("react.lazy"):60116,it="function"==typeof Symbol&&Symbol.iterator;function at(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=it&&e[it]||e["@@iterator"])?e:null}function st(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case et:return"ConcurrentMode";case Ke:return"Fragment";case He:return"Portal";case Qe:return"Profiler";case $e:return"StrictMode";case nt:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case Je:return"Context.Consumer";case Ze:return"Context.Provider";case tt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case rt:return st(e.type);case ot:if(e=1===e._status?e._result:null)return st(e)}return null}function ut(e){var t="";do{e:switch(e.tag){case 2:case 16:case 0:case 1:case 5:case 8:case 13:var n=e._debugOwner,r=e._debugSource,o=st(e.type),i=null;n&&(i=st(n.type)),n=o,o="",r?o=" (at "+r.fileName.replace(Ye,"")+":"+r.lineNumber+")":i&&(o=" (created by "+i+")"),i="\n in "+(n||"Unknown")+o;break e;default:i=""}t+=i,e=e.return}while(e);return t}var lt=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ct=Object.prototype.hasOwnProperty,ft={},pt={};function dt(e,t,n,r,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t}var ht={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ht[e]=new dt(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ht[t]=new dt(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ht[e]=new dt(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ht[e]=new dt(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ht[e]=new dt(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){ht[e]=new dt(e,3,!0,e,null)}),["capture","download"].forEach(function(e){ht[e]=new dt(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){ht[e]=new dt(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){ht[e]=new dt(e,5,!1,e.toLowerCase(),null)});var gt=/[\-:]([a-z])/g;function vt(e){return e[1].toUpperCase()}function mt(e,t,n,r){var o=ht.hasOwnProperty(t)?ht[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!ct.call(pt,e)||!ct.call(ft,e)&&(lt.test(e)?pt[e]=!0:(ft[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function yt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function bt(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function _t(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=yt(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function xt(e,t){null!=(t=t.checked)&&mt(e,"checked",t,!1)}function wt(e,t){xt(e,t);var n=yt(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Et(e,t.type,n):t.hasOwnProperty("defaultValue")&&Et(e,t.type,yt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function kt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Et(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(gt,vt);ht[t]=new dt(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(gt,vt);ht[t]=new dt(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(gt,vt);ht[t]=new dt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),ht.tabIndex=new dt("tabIndex",1,!1,"tabindex",null);var Ct={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Pt(e,t,n){return(e=ue.getPooled(Ct.change,e,t,n)).type="change",Te(n),G(e),e}var Ot=null,St=null;function Nt(e){A(e)}function Tt(e){if(Ve(B(e)))return e}function At(e,t){if("change"===e)return t}var Mt=!1;function Lt(){Ot&&(Ot.detachEvent("onpropertychange",jt),St=Ot=null)}function jt(e){"value"===e.propertyName&&Tt(St)&&Re(Nt,e=Pt(St,e,De(e)))}function It(e,t,n){"focus"===e?(Lt(),St=n,(Ot=t).attachEvent("onpropertychange",jt)):"blur"===e&&Lt()}function Rt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Tt(St)}function Bt(e,t){if("click"===e)return Tt(t)}function Ft(e,t){if("input"===e||"change"===e)return Tt(t)}Y&&(Mt=ze("input")&&(!document.documentMode||9<document.documentMode));var Dt={eventTypes:Ct,_isInputEventSupported:Mt,extractEvents:function(e,t,n,r){var o=t?B(t):window,i=void 0,a=void 0,s=o.nodeName&&o.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===o.type?i=At:Fe(o)?Mt?i=Ft:(i=Rt,a=It):(s=o.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(i=Bt),i&&(i=i(e,t)))return Pt(i,n,r);a&&a(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Et(o,"number",o.value)}},zt=ue.extend({view:null,detail:null}),Ut={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ut[e])&&!!t[e]}function Vt(){return Wt}var Gt=0,Yt=0,qt=!1,Xt=!1,Ht=zt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Vt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Gt;return Gt=e.screenX,qt?"mousemove"===e.type?e.screenX-t:0:(qt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Yt;return Yt=e.screenY,Xt?"mousemove"===e.type?e.screenY-t:0:(Xt=!0,0)}}),Kt=Ht.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),$t={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Qt={eventTypes:$t,extractEvents:function(e,t,n,r){var o="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(o&&(n.relatedTarget||n.fromElement)||!i&&!o)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,i?(i=t,t=(t=n.relatedTarget||n.toElement)?I(t):null):i=null,i===t)return null;var a=void 0,s=void 0,u=void 0,l=void 0;"mouseout"===e||"mouseover"===e?(a=Ht,s=$t.mouseLeave,u=$t.mouseEnter,l="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=Kt,s=$t.pointerLeave,u=$t.pointerEnter,l="pointer");var c=null==i?o:B(i);if(o=null==t?o:B(t),(e=a.getPooled(s,i,n,r)).type=l+"leave",e.target=c,e.relatedTarget=o,(n=a.getPooled(u,t,n,r)).type=l+"enter",n.target=o,n.relatedTarget=c,r=t,i&&r)e:{for(o=r,l=0,a=t=i;a;a=D(a))l++;for(a=0,u=o;u;u=D(u))a++;for(;0<l-a;)t=D(t),l--;for(;0<a-l;)o=D(o),a--;for(;l--;){if(t===o||t===o.alternate)break e;t=D(t),o=D(o)}t=null}else t=null;for(o=t,t=[];i&&i!==o&&(null===(l=i.alternate)||l!==o);)t.push(i),i=D(i);for(i=[];r&&r!==o&&(null===(l=r.alternate)||l!==o);)i.push(r),r=D(r);for(r=0;r<t.length;r++)W(t[r],"bubbled",e);for(r=i.length;0<r--;)W(i[r],"captured",n);return[e,n]}},Zt=Object.prototype.hasOwnProperty;function Jt(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function en(e,t){if(Jt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Zt.call(t,n[r])||!Jt(e[n[r]],t[n[r]]))return!1;return!0}function tn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function nn(e){2!==tn(e)&&a("188")}function rn(e){if(!(e=function(e){var t=e.alternate;if(!t)return 3===(t=tn(e))&&a("188"),1===t?null:e;for(var n=e,r=t;;){var o=n.return,i=o?o.alternate:null;if(!o||!i)break;if(o.child===i.child){for(var s=o.child;s;){if(s===n)return nn(o),e;if(s===r)return nn(o),t;s=s.sibling}a("188")}if(n.return!==r.return)n=o,r=i;else{s=!1;for(var u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s){for(u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}s||a("189")}}n.alternate!==r&&a("190")}return 3!==n.tag&&a("188"),n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var on=ue.extend({animationName:null,elapsedTime:null,pseudoElement:null}),an=ue.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sn=zt.extend({relatedTarget:null});function un(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var ln={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fn=zt.extend({key:function(e){if(e.key){var t=ln[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=un(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?cn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Vt,charCode:function(e){return"keypress"===e.type?un(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?un(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),pn=Ht.extend({dataTransfer:null}),dn=zt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Vt}),hn=ue.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),gn=Ht.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),vn=[["abort","abort"],[Q,"animationEnd"],[Z,"animationIteration"],[J,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[ee,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],mn={},yn={};function bn(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},mn[e]=t,yn[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(e){bn(e,!0)}),vn.forEach(function(e){bn(e,!1)});var _n={eventTypes:mn,isInteractiveTopLevelEventType:function(e){return void 0!==(e=yn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var o=yn[e];if(!o)return null;switch(e){case"keypress":if(0===un(n))return null;case"keydown":case"keyup":e=fn;break;case"blur":case"focus":e=sn;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Ht;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=pn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=dn;break;case Q:case Z:case J:e=on;break;case ee:e=hn;break;case"scroll":e=zt;break;case"wheel":e=gn;break;case"copy":case"cut":case"paste":e=an;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Kt;break;default:e=ue}return G(t=e.getPooled(o,t,n,r)),t}},xn=_n.isInteractiveTopLevelEventType,wn=[];function kn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=I(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=De(e.nativeEvent);r=e.topLevelType;for(var i=e.nativeEvent,a=null,s=0;s<m.length;s++){var u=m[s];u&&(u=u.extractEvents(r,t,i,o))&&(a=C(a,u))}A(a)}}var En=!0;function Cn(e,t){if(!t)return null;var n=(xn(e)?On:Sn).bind(null,e);t.addEventListener(e,n,!1)}function Pn(e,t){if(!t)return null;var n=(xn(e)?On:Sn).bind(null,e);t.addEventListener(e,n,!0)}function On(e,t){Le(Sn,e,t)}function Sn(e,t){if(En){var n=De(t);if(null===(n=I(n))||"number"!=typeof n.tag||2===tn(n)||(n=null),wn.length){var r=wn.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Re(kn,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>wn.length&&wn.push(e)}}}var Nn={},Tn=0,An="_reactListenersID"+(""+Math.random()).slice(2);function Mn(e){return Object.prototype.hasOwnProperty.call(e,An)||(e[An]=Tn++,Nn[e[An]]={}),Nn[e[An]]}function Ln(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function jn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function In(e,t){var n,r=jn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=jn(r)}}function Rn(){for(var e=window,t=Ln();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=Ln(e.document)}return t}function Bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Fn=Y&&"documentMode"in document&&11>=document.documentMode,Dn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},zn=null,Un=null,Wn=null,Vn=!1;function Gn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Vn||null==zn||zn!==Ln(n)?null:("selectionStart"in(n=zn)&&Bn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Wn&&en(Wn,n)?null:(Wn=n,(e=ue.getPooled(Dn.select,Un,e,t)).type="select",e.target=zn,G(e),e))}var Yn={eventTypes:Dn,extractEvents:function(e,t,n,r){var o,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!i)){e:{i=Mn(i),o=_.onSelect;for(var a=0;a<o.length;a++){var s=o[a];if(!i.hasOwnProperty(s)||!i[s]){i=!1;break e}}i=!0}o=!i}if(o)return null;switch(i=t?B(t):window,e){case"focus":(Fe(i)||"true"===i.contentEditable)&&(zn=i,Un=t,Wn=null);break;case"blur":Wn=Un=zn=null;break;case"mousedown":Vn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Vn=!1,Gn(n,r);case"selectionchange":if(Fn)break;case"keydown":case"keyup":return Gn(n,r)}return null}};function qn(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function Xn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+yt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Hn(e,t){return null!=t.dangerouslySetInnerHTML&&a("91"),o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Kn(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&a("92"),Array.isArray(t)&&(1>=t.length||a("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:yt(n)}}function $n(e,t){var n=yt(t.value),r=yt(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Qn(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}N.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),x=F,w=R,k=B,N.injectEventPluginsByName({SimpleEventPlugin:_n,EnterLeaveEventPlugin:Qt,ChangeEventPlugin:Dt,SelectEventPlugin:Yn,BeforeInputEventPlugin:Ce});var Zn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Jn(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function er(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Jn(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var tr=void 0,nr=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==Zn.svg||"innerHTML"in e)e.innerHTML=t;else{for((tr=tr||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=tr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var or={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ir=["Webkit","ms","Moz","O"];function ar(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||or.hasOwnProperty(e)&&or[e]?(""+t).trim():t+"px"}function sr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ar(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(or).forEach(function(e){ir.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),or[t]=or[e]})});var ur=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function lr(e,t){t&&(ur[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&a("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&a("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||a("61")),null!=t.style&&"object"!=typeof t.style&&a("62",""))}function cr(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function fr(e,t){var n=Mn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=_[t];for(var r=0;r<t.length;r++){var o=t[r];if(!n.hasOwnProperty(o)||!n[o]){switch(o){case"scroll":Pn("scroll",e);break;case"focus":case"blur":Pn("focus",e),Pn("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":ze(o)&&Pn(o,e);break;case"invalid":case"submit":case"reset":break;default:-1===te.indexOf(o)&&Cn(o,e)}n[o]=!0}}}function pr(){}var dr=null,hr=null;function gr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function vr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var mr="function"==typeof setTimeout?setTimeout:void 0,yr="function"==typeof clearTimeout?clearTimeout:void 0;function br(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function _r(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var xr=[],wr=-1;function kr(e){0>wr||(e.current=xr[wr],xr[wr]=null,wr--)}function Er(e,t){xr[++wr]=e.current,e.current=t}var Cr={},Pr={current:Cr},Or={current:!1},Sr=Cr;function Nr(e,t){var n=e.type.contextTypes;if(!n)return Cr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Tr(e){return null!=(e=e.childContextTypes)}function Ar(e){kr(Or),kr(Pr)}function Mr(e){kr(Or),kr(Pr)}function Lr(e,t,n){Pr.current!==Cr&&a("168"),Er(Pr,t),Er(Or,n)}function jr(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())i in e||a("108",st(t)||"Unknown",i);return o({},n,r)}function Ir(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Cr,Sr=Pr.current,Er(Pr,t),Er(Or,Or.current),!0}function Rr(e,t,n){var r=e.stateNode;r||a("169"),n?(t=jr(e,t,Sr),r.__reactInternalMemoizedMergedChildContext=t,kr(Or),kr(Pr),Er(Pr,t)):kr(Or),Er(Or,n)}var Br=null,Fr=null;function Dr(e){return function(t){try{return e(t)}catch(e){}}}function zr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.firstContextDependency=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ur(e,t,n,r){return new zr(e,t,n,r)}function Wr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vr(e,t){var n=e.alternate;return null===n?((n=Ur(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.firstContextDependency=e.firstContextDependency,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gr(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)Wr(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case Ke:return Yr(n.children,o,i,t);case et:return qr(n,3|o,i,t);case $e:return qr(n,2|o,i,t);case Qe:return(e=Ur(12,n,t,4|o)).elementType=Qe,e.type=Qe,e.expirationTime=i,e;case nt:return(e=Ur(13,n,t,o)).elementType=nt,e.type=nt,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Ze:s=10;break e;case Je:s=9;break e;case tt:s=11;break e;case rt:s=14;break e;case ot:s=16,r=null;break e}a("130",null==e?e:typeof e,"")}return(t=Ur(s,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function Yr(e,t,n,r){return(e=Ur(7,e,r,t)).expirationTime=n,e}function qr(e,t,n,r){return e=Ur(8,e,r,t),t=0==(1&t)?$e:et,e.elementType=t,e.type=t,e.expirationTime=n,e}function Xr(e,t,n){return(e=Ur(6,e,null,t)).expirationTime=n,e}function Hr(e,t,n){return(t=Ur(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kr(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),Zr(t,e)}function $r(e,t){e.didError=!1;var n=e.latestPingedTime;0!==n&&n>=t&&(e.latestPingedTime=0),n=e.earliestPendingTime;var r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:n<t?e.earliestSuspendedTime=t:r>t&&(e.latestSuspendedTime=t),Zr(t,e)}function Qr(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function Zr(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,o=t.earliestPendingTime,i=t.latestPingedTime;0===(o=0!==o?o:i)&&(0===e||r<e)&&(o=r),0!==(e=o)&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=o,t.expirationTime=e}var Jr=!1;function eo(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function to(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function no(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function ro(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function oo(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=eo(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=eo(e.memoizedState),o=n.updateQueue=eo(n.memoizedState)):r=e.updateQueue=to(o):null===o&&(o=n.updateQueue=to(r));null===o||r===o?ro(r,t):null===r.lastUpdate||null===o.lastUpdate?(ro(r,t),ro(o,t)):(ro(r,t),o.lastUpdate=t)}function io(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=eo(e.memoizedState):ao(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function ao(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=to(t)),t}function so(e,t,n,r,i,a){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(a,r,i):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(i="function"==typeof(e=n.payload)?e.call(a,r,i):e))break;return o({},r,i);case 2:Jr=!0}return r}function uo(e,t,n,r,o){Jr=!1;for(var i=(t=ao(e,t)).baseState,a=null,s=0,u=t.firstUpdate,l=i;null!==u;){var c=u.expirationTime;c<o?(null===a&&(a=u,i=l),s<c&&(s=c)):(l=so(e,0,u,l,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=u:(t.lastEffect.nextEffect=u,t.lastEffect=u))),u=u.next}for(c=null,u=t.firstCapturedUpdate;null!==u;){var f=u.expirationTime;f<o?(null===c&&(c=u,null===a&&(i=l)),s<f&&(s=f)):(l=so(e,0,u,l,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=u:(t.lastCapturedEffect.nextEffect=u,t.lastCapturedEffect=u))),u=u.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(i=l),t.baseState=i,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=s,e.memoizedState=l}function lo(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),co(t.firstEffect,n),t.firstEffect=t.lastEffect=null,co(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function co(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&a("191",n),n.call(r)}e=e.nextEffect}}function fo(e,t){return{value:e,source:t,stack:ut(t)}}var po={current:null},ho=null,go=null,vo=null;function mo(e,t){var n=e.type._context;Er(po,n._currentValue),n._currentValue=t}function yo(e){var t=po.current;kr(po),e.type._context._currentValue=t}function bo(e){ho=e,vo=go=null,e.firstContextDependency=null}function _o(e,t){return vo!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(vo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===go?(null===ho&&a("293"),ho.firstContextDependency=go=t):go=go.next=t),e._currentValue}var xo={},wo={current:xo},ko={current:xo},Eo={current:xo};function Co(e){return e===xo&&a("174"),e}function Po(e,t){Er(Eo,t),Er(ko,e),Er(wo,xo);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:er(null,"");break;default:t=er(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}kr(wo),Er(wo,t)}function Oo(e){kr(wo),kr(ko),kr(Eo)}function So(e){Co(Eo.current);var t=Co(wo.current),n=er(t,e.type);t!==n&&(Er(ko,e),Er(wo,n))}function No(e){ko.current===e&&(kr(wo),kr(ko))}function To(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Ao=Ge.ReactCurrentOwner,Mo=(new r.Component).refs;function Lo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var jo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===tn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=ka(),o=no(r=Ki(r,e));o.payload=t,null!=n&&(o.callback=n),Gi(),oo(e,o),Zi(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=ka(),o=no(r=Ki(r,e));o.tag=1,o.payload=t,null!=n&&(o.callback=n),Gi(),oo(e,o),Zi(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=ka(),r=no(n=Ki(n,e));r.tag=2,null!=t&&(r.callback=t),Gi(),oo(e,r),Zi(e,n)}};function Io(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!en(n,r)||!en(o,i))}function Ro(e,t,n){var r=!1,o=Cr,i=t.contextType;return"object"==typeof i&&null!==i?i=Ao.currentDispatcher.readContext(i):(o=Tr(t)?Sr:Pr.current,i=(r=null!=(r=t.contextTypes))?Nr(e,o):Cr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=jo,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Bo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&jo.enqueueReplaceState(t,t.state,null)}function Fo(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Mo;var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ao.currentDispatcher.readContext(i):(i=Tr(t)?Sr:Pr.current,o.context=Nr(e,i)),null!==(i=e.updateQueue)&&(uo(e,i,n,o,r),o.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(Lo(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&jo.enqueueReplaceState(o,o.state,null),null!==(i=e.updateQueue)&&(uo(e,i,n,o,r),o.state=e.memoizedState)),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var Do=Array.isArray;function zo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&a("289"),r=n.stateNode),r||a("147",e);var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===Mo&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}"string"!=typeof e&&a("284"),n._owner||a("290",e)}return e}function Uo(e,t){"textarea"!==e.type&&a("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Wo(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t,n){return(e=Vr(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Xr(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=zo(e,t,n),r.return=e,r):((r=Gr(n.type,n.key,n.props,null,e.mode,r)).ref=zo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Hr(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Yr(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Xr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Xe:return(n=Gr(t.type,t.key,t.props,null,e.mode,n)).ref=zo(e,null,t),n.return=e,n;case He:return(t=Hr(t,e.mode,n)).return=e,t}if(Do(t)||at(t))return(t=Yr(t,e.mode,n,null)).return=e,t;Uo(e,t)}return null}function d(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Xe:return n.key===o?n.type===Ke?f(e,t,n.props.children,r,o):l(e,t,n,r):null;case He:return n.key===o?c(e,t,n,r):null}if(Do(n)||at(n))return null!==o?null:f(e,t,n,r,null);Uo(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Xe:return e=e.get(null===r.key?n:r.key)||null,r.type===Ke?f(t,e,r.props.children,o,r.key):l(t,e,r,o);case He:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Do(r)||at(r))return f(t,e=e.get(n)||null,r,o,null);Uo(t,r)}return null}function g(o,a,s,u){for(var l=null,c=null,f=a,g=a=0,v=null;null!==f&&g<s.length;g++){f.index>g?(v=f,f=null):v=f.sibling;var m=d(o,f,s[g],u);if(null===m){null===f&&(f=v);break}e&&f&&null===m.alternate&&t(o,f),a=i(m,a,g),null===c?l=m:c.sibling=m,c=m,f=v}if(g===s.length)return n(o,f),l;if(null===f){for(;g<s.length;g++)(f=p(o,s[g],u))&&(a=i(f,a,g),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(o,f);g<s.length;g++)(v=h(f,o,g,s[g],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?g:v.key),a=i(v,a,g),null===c?l=v:c.sibling=v,c=v);return e&&f.forEach(function(e){return t(o,e)}),l}function v(o,s,u,l){var c=at(u);"function"!=typeof c&&a("150"),null==(u=c.call(u))&&a("151");for(var f=c=null,g=s,v=s=0,m=null,y=u.next();null!==g&&!y.done;v++,y=u.next()){g.index>v?(m=g,g=null):m=g.sibling;var b=d(o,g,y.value,l);if(null===b){g||(g=m);break}e&&g&&null===b.alternate&&t(o,g),s=i(b,s,v),null===f?c=b:f.sibling=b,f=b,g=m}if(y.done)return n(o,g),c;if(null===g){for(;!y.done;v++,y=u.next())null!==(y=p(o,y.value,l))&&(s=i(y,s,v),null===f?c=y:f.sibling=y,f=y);return c}for(g=r(o,g);!y.done;v++,y=u.next())null!==(y=h(g,o,v,y.value,l))&&(e&&null!==y.alternate&&g.delete(null===y.key?v:y.key),s=i(y,s,v),null===f?c=y:f.sibling=y,f=y);return e&&g.forEach(function(e){return t(o,e)}),c}return function(e,r,i,u){var l="object"==typeof i&&null!==i&&i.type===Ke&&null===i.key;l&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case Xe:e:{for(c=i.key,l=r;null!==l;){if(l.key===c){if(7===l.tag?i.type===Ke:l.elementType===i.type){n(e,l.sibling),(r=o(l,i.type===Ke?i.props.children:i.props)).ref=zo(e,l,i),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}i.type===Ke?((r=Yr(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Gr(i.type,i.key,i.props,null,e.mode,u)).ref=zo(e,r,i),u.return=e,e=u)}return s(e);case He:e:{for(l=i.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Hr(i,e.mode,u)).return=e,e=r}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Xr(i,e.mode,u)).return=e,e=r),s(e);if(Do(i))return g(e,r,i,u);if(at(i))return v(e,r,i,u);if(c&&Uo(e,i),void 0===i&&!l)switch(e.tag){case 1:case 0:a("152",(u=e.type).displayName||u.name||"Component")}return n(e,r)}}var Vo=Wo(!0),Go=Wo(!1),Yo=null,qo=null,Xo=!1;function Ho(e,t){var n=Ur(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ko(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function $o(e){if(Xo){var t=qo;if(t){var n=t;if(!Ko(e,t)){if(!(t=br(n))||!Ko(e,t))return e.effectTag|=2,Xo=!1,void(Yo=e);Ho(Yo,n)}Yo=e,qo=_r(t)}else e.effectTag|=2,Xo=!1,Yo=e}}function Qo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;Yo=e}function Zo(e){if(e!==Yo)return!1;if(!Xo)return Qo(e),Xo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!vr(t,e.memoizedProps))for(t=qo;t;)Ho(e,t),t=br(t);return Qo(e),qo=Yo?br(e.stateNode):null,!0}function Jo(){qo=Yo=null,Xo=!1}var ei=Ge.ReactCurrentOwner;function ti(e,t,n,r){t.child=null===e?Go(t,null,n,r):Vo(t,e.child,n,r)}function ni(e,t,n,r,o){n=n.render;var i=t.ref;return bo(t),r=n(r,i),t.effectTag|=1,ti(e,t,r,o),t.child}function ri(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Wr(a)||void 0!==a.defaultProps||null!==n.compare?((e=Gr(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,oi(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:en)(o,r)&&e.ref===t.ref)?fi(e,t,i):(t.effectTag|=1,(e=Vr(a,r)).ref=t.ref,e.return=t,t.child=e)}function oi(e,t,n,r,o,i){return null!==e&&o<i&&en(e.memoizedProps,r)&&e.ref===t.ref?fi(e,t,i):ai(e,t,n,r,i)}function ii(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function ai(e,t,n,r,o){var i=Tr(n)?Sr:Pr.current;return i=Nr(t,i),bo(t),n=n(r,i),t.effectTag|=1,ti(e,t,n,o),t.child}function si(e,t,n,r,o){if(Tr(n)){var i=!0;Ir(t)}else i=!1;if(bo(t),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Ro(t,n,r),Fo(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;"object"==typeof l&&null!==l?l=Ao.currentDispatcher.readContext(l):l=Nr(t,l=Tr(n)?Sr:Pr.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==l)&&Bo(t,a,r,l),Jr=!1;var p=t.memoizedState;u=a.state=p;var d=t.updateQueue;null!==d&&(uo(t,d,r,a,o),u=t.memoizedState),s!==r||p!==u||Or.current||Jr?("function"==typeof c&&(Lo(t,n,c,r),u=t.memoizedState),(s=Jr||Io(t,n,s,r,p,u,l))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,s=t.memoizedProps,a.props=t.type===t.elementType?s:To(t.type,s),u=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ao.currentDispatcher.readContext(l):l=Nr(t,l=Tr(n)?Sr:Pr.current),(f="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==l)&&Bo(t,a,r,l),Jr=!1,u=t.memoizedState,p=a.state=u,null!==(d=t.updateQueue)&&(uo(t,d,r,a,o),p=t.memoizedState),s!==r||u!==p||Or.current||Jr?("function"==typeof c&&(Lo(t,n,c,r),p=t.memoizedState),(c=Jr||Io(t,n,s,r,u,p,l))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return ui(e,t,n,r,i,o)}function ui(e,t,n,r,o,i){ii(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&Rr(t,n,!1),fi(e,t,i);r=t.stateNode,ei.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Vo(t,e.child,null,i),t.child=Vo(t,null,s,i)):ti(e,t,s,i),t.memoizedState=r.state,o&&Rr(t,n,!0),t.child}function li(e){var t=e.stateNode;t.pendingContext?Lr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Lr(0,t.context,!1),Po(e,t.containerInfo)}function ci(e,t,n){var r=t.mode,o=t.pendingProps,i=t.memoizedState;if(0==(64&t.effectTag)){i=null;var a=!1}else i={timedOutAt:null!==i?i.timedOutAt:0},a=!0,t.effectTag&=-65;return null===e?a?(a=o.fallback,o=Yr(null,r,0,null),0==(1&t.mode)&&(o.child=null!==t.memoizedState?t.child.child:t.child),r=Yr(a,r,n,null),o.sibling=r,(n=o).return=r.return=t):n=r=Go(t,null,o.children,n):null!==e.memoizedState?(e=(r=e.child).sibling,a?(n=o.fallback,o=Vr(r,r.pendingProps),0==(1&t.mode)&&((a=null!==t.memoizedState?t.child.child:t.child)!==r.child&&(o.child=a)),r=o.sibling=Vr(e,n,e.expirationTime),n=o,o.childExpirationTime=0,n.return=r.return=t):n=r=Vo(t,r.child,o.children,n)):(e=e.child,a?(a=o.fallback,(o=Yr(null,r,0,null)).child=e,0==(1&t.mode)&&(o.child=null!==t.memoizedState?t.child.child:t.child),(r=o.sibling=Yr(a,r,n,null)).effectTag|=2,n=o,o.childExpirationTime=0,n.return=r.return=t):r=n=Vo(t,e,o.children,n)),t.memoizedState=i,t.child=n,r}function fi(e,t,n){if(null!==e&&(t.firstContextDependency=e.firstContextDependency),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&a("153"),null!==t.child){for(n=Vr(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Vr(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function pi(e,t,n){var r=t.expirationTime;if(null!==e&&e.memoizedProps===t.pendingProps&&!Or.current&&r<n){switch(t.tag){case 3:li(t),Jo();break;case 5:So(t);break;case 1:Tr(t.type)&&Ir(t);break;case 4:Po(t,t.stateNode.containerInfo);break;case 10:mo(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?ci(e,t,n):null!==(t=fi(e,t,n))?t.sibling:null}return fi(e,t,n)}switch(t.expirationTime=0,t.tag){case 2:r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var o=Nr(t,Pr.current);if(bo(t),o=r(e,o),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,Tr(r)){var i=!0;Ir(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var s=r.getDerivedStateFromProps;"function"==typeof s&&Lo(t,r,s,e),o.updater=jo,t.stateNode=o,o._reactInternalFiber=t,Fo(t,r,e,n),t=ui(null,t,r,!0,i,n)}else t.tag=0,ti(null,t,o,n),t=t.child;return t;case 16:switch(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),i=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:throw e._status=0,(t=(t=e._ctor)()).then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)}),e._result=t,t}}(o),t.type=e,o=t.tag=function(e){if("function"==typeof e)return Wr(e)?1:0;if(null!=e){if((e=e.$$typeof)===tt)return 11;if(e===rt)return 14}return 2}(e),i=To(e,i),s=void 0,o){case 0:s=ai(null,t,e,i,n);break;case 1:s=si(null,t,e,i,n);break;case 11:s=ni(null,t,e,i,n);break;case 14:s=ri(null,t,e,To(e.type,i),r,n);break;default:a("283",e)}return s;case 0:return r=t.type,o=t.pendingProps,ai(e,t,r,o=t.elementType===r?o:To(r,o),n);case 1:return r=t.type,o=t.pendingProps,si(e,t,r,o=t.elementType===r?o:To(r,o),n);case 3:return li(t),null===(r=t.updateQueue)&&a("282"),o=null!==(o=t.memoizedState)?o.element:null,uo(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===o?(Jo(),t=fi(e,t,n)):(o=t.stateNode,(o=(null===e||null===e.child)&&o.hydrate)&&(qo=_r(t.stateNode.containerInfo),Yo=t,o=Xo=!0),o?(t.effectTag|=2,t.child=Go(t,null,r,n)):(ti(e,t,r,n),Jo()),t=t.child),t;case 5:return So(t),null===e&&$o(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,vr(r,o)?s=null:null!==i&&vr(r,i)&&(t.effectTag|=16),ii(e,t),1!==n&&1&t.mode&&o.hidden?(t.expirationTime=1,t=null):(ti(e,t,s,n),t=t.child),t;case 6:return null===e&&$o(t),null;case 13:return ci(e,t,n);case 4:return Po(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Vo(t,null,r,n):ti(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,ni(e,t,r,o=t.elementType===r?o:To(r,o),n);case 7:return ti(e,t,t.pendingProps,n),t.child;case 8:case 12:return ti(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,mo(t,i=o.value),null!==s){var u=s.value;if(0===(i=u===i&&(0!==u||1/u==1/i)||u!=u&&i!=i?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(s.children===o.children&&!Or.current){t=fi(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){if(null!==(u=s.firstContextDependency))do{if(u.context===r&&0!=(u.observedBits&i)){if(1===s.tag){var l=no(n);l.tag=2,oo(s,l)}s.expirationTime<n&&(s.expirationTime=n),null!==(l=s.alternate)&&l.expirationTime<n&&(l.expirationTime=n);for(var c=s.return;null!==c;){if(l=c.alternate,c.childExpirationTime<n)c.childExpirationTime=n,null!==l&&l.childExpirationTime<n&&(l.childExpirationTime=n);else{if(!(null!==l&&l.childExpirationTime<n))break;l.childExpirationTime=n}c=c.return}}l=s.child,u=u.next}while(null!==u);else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}}ti(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,bo(t),r=r(o=_o(o,i.unstable_observedBits)),t.effectTag|=1,ti(e,t,r,n),t.child;case 14:return ri(e,t,o=t.type,i=To(o.type,t.pendingProps),r,n);case 15:return oi(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:To(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Tr(r)?(e=!0,Ir(t)):e=!1,bo(t),Ro(t,r,o),Fo(t,r,o,n),ui(null,t,r,!0,e,n);default:a("156")}}function di(e){e.effectTag|=4}var hi=void 0,gi=void 0,vi=void 0,mi=void 0;function yi(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ut(n)),null!==n&&st(n.type),t=t.value,null!==e&&1===e.tag&&st(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function bi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Hi(e,t)}else t.current=null}function _i(e){switch("function"==typeof Fr&&Fr(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var n=t=t.next;do{var r=n.destroy;if(null!==r){var o=e;try{r()}catch(e){Hi(o,e)}}n=n.next}while(n!==t)}break;case 1:if(bi(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Hi(e,t)}break;case 5:bi(e);break;case 4:ki(e)}}function xi(e){return 5===e.tag||3===e.tag||4===e.tag}function wi(e){e:{for(var t=e.return;null!==t;){if(xi(t)){var n=t;break e}t=t.return}a("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:a("161")}16&n.effectTag&&(rr(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||xi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var o=e;;){if(5===o.tag||6===o.tag)if(n)if(r){var i=t,s=o.stateNode,u=n;8===i.nodeType?i.parentNode.insertBefore(s,u):i.insertBefore(s,u)}else t.insertBefore(o.stateNode,n);else r?(s=t,u=o.stateNode,8===s.nodeType?(i=s.parentNode).insertBefore(u,s):(i=s).appendChild(u),null!=(s=s._reactRootContainer)||null!==i.onclick||(i.onclick=pr)):t.appendChild(o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function ki(e){for(var t=e,n=!1,r=void 0,o=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&a("160"),n.tag){case 5:r=n.stateNode,o=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,o=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var i=t,s=i;;)if(_i(s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===i)break;for(;null===s.sibling;){if(null===s.return||s.return===i)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}o?(i=r,s=t.stateNode,8===i.nodeType?i.parentNode.removeChild(s):i.removeChild(s)):r.removeChild(t.stateNode)}else if(4===t.tag?(r=t.stateNode.containerInfo,o=!0):_i(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Ei(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[j]=r,"input"===e&&"radio"===r.type&&null!=r.name&&xt(n,r),cr(e,o),t=cr(e,r),o=0;o<i.length;o+=2){var s=i[o],u=i[o+1];"style"===s?sr(n,u):"dangerouslySetInnerHTML"===s?nr(n,u):"children"===s?rr(n,u):mt(n,s,u,t)}switch(e){case"input":wt(n,r);break;case"textarea":$n(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Xn(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Xn(n,!!r.multiple,r.defaultValue,!0):Xn(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 6:null===t.stateNode&&a("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(e=t,null===(n=t.memoizedState)?r=!1:(r=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=ka())),null!==e)e:for(t=n=e;;){if(5===t.tag)e=t.stateNode,r?e.style.display="none":(e=t.stateNode,i=null!=(i=t.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,e.style.display=ar("display",i));else if(6===t.tag)t.stateNode.nodeValue=r?"":t.memoizedProps;else{if(13===t.tag&&null!==t.memoizedState){(e=t.child.sibling).return=t,t=e;continue}if(null!==t.child){t.child.return=t,t=t.child;continue}}if(t===n)break e;for(;null===t.sibling;){if(null===t.return||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}break;case 17:break;default:a("163")}}function Ci(e,t,n){(n=no(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){La(r),yi(e,t)},n}function Pi(e,t,n){(n=no(n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Wi?Wi=new Set([this]):Wi.add(this));var n=t.value,o=t.stack;yi(e,t),this.componentDidCatch(n,{componentStack:null!==o?o:""})}),n}function Oi(e){switch(e.tag){case 1:Tr(e.type)&&Ar();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return Oo(),Mr(),0!=(64&(t=e.effectTag))&&a("285"),e.effectTag=-2049&t|64,e;case 5:return No(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 4:return Oo(),null;case 10:return yo(e),null;default:return null}}hi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},gi=function(){},vi=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var s=t.stateNode;switch(Co(wo.current),e=null,n){case"input":a=bt(s,a),r=bt(s,r),e=[];break;case"option":a=qn(s,a),r=qn(s,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Hn(s,a),r=Hn(s,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(s.onclick=pr)}lr(n,r),s=n=void 0;var u=null;for(n in a)if(!r.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var l=a[n];for(s in l)l.hasOwnProperty(s)&&(u||(u={}),u[s]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(b.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var c=r[n];if(l=null!=a?a[n]:void 0,r.hasOwnProperty(n)&&c!==l&&(null!=c||null!=l))if("style"===n)if(l){for(s in l)!l.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(u||(u={}),u[s]="");for(s in c)c.hasOwnProperty(s)&&l[s]!==c[s]&&(u||(u={}),u[s]=c[s])}else u||(e||(e=[]),e.push(n,u)),u=c;else"dangerouslySetInnerHTML"===n?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(e=e||[]).push(n,""+c)):"children"===n?l===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(n,""+c):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(b.hasOwnProperty(n)?(null!=c&&fr(i,n),e||l===c||(e=[])):(e=e||[]).push(n,c))}u&&(e=e||[]).push("style",u),i=e,(t.updateQueue=i)&&di(t)}},mi=function(e,t,n,r){n!==r&&di(t)};var Si={readContext:_o},Ni=Ge.ReactCurrentOwner,Ti=1073741822,Ai=0,Mi=!1,Li=null,ji=null,Ii=0,Ri=-1,Bi=!1,Fi=null,Di=!1,zi=null,Ui=null,Wi=null;function Vi(){if(null!==Li)for(var e=Li.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!=n&&Ar();break;case 3:Oo(),Mr();break;case 5:No(t);break;case 4:Oo();break;case 10:yo(t)}e=e.return}ji=null,Ii=0,Ri=-1,Bi=!1,Li=null}function Gi(){null!==Ui&&(i.unstable_cancelCallback(zi),Ui())}function Yi(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(1024&e.effectTag)){Li=e;e:{var i=t,s=Ii,u=(t=e).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Tr(t.type)&&Ar();break;case 3:Oo(),Mr(),(u=t.stateNode).pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),null!==i&&null!==i.child||(Zo(t),t.effectTag&=-3),gi(t);break;case 5:No(t);var l=Co(Eo.current);if(s=t.type,null!==i&&null!=t.stateNode)vi(i,t,s,u,l),i.ref!==t.ref&&(t.effectTag|=128);else if(u){var c=Co(wo.current);if(Zo(t)){i=(u=t).stateNode;var f=u.type,p=u.memoizedProps,d=l;switch(i[L]=u,i[j]=p,s=void 0,l=f){case"iframe":case"object":Cn("load",i);break;case"video":case"audio":for(f=0;f<te.length;f++)Cn(te[f],i);break;case"source":Cn("error",i);break;case"img":case"image":case"link":Cn("error",i),Cn("load",i);break;case"form":Cn("reset",i),Cn("submit",i);break;case"details":Cn("toggle",i);break;case"input":_t(i,p),Cn("invalid",i),fr(d,"onChange");break;case"select":i._wrapperState={wasMultiple:!!p.multiple},Cn("invalid",i),fr(d,"onChange");break;case"textarea":Kn(i,p),Cn("invalid",i),fr(d,"onChange")}for(s in lr(l,p),f=null,p)p.hasOwnProperty(s)&&(c=p[s],"children"===s?"string"==typeof c?i.textContent!==c&&(f=["children",c]):"number"==typeof c&&i.textContent!==""+c&&(f=["children",""+c]):b.hasOwnProperty(s)&&null!=c&&fr(d,s));switch(l){case"input":We(i),kt(i,p,!0);break;case"textarea":We(i),Qn(i);break;case"select":case"option":break;default:"function"==typeof p.onClick&&(i.onclick=pr)}s=f,u.updateQueue=s,(u=null!==s)&&di(t)}else{p=t,i=s,d=u,f=9===l.nodeType?l:l.ownerDocument,c===Zn.html&&(c=Jn(i)),c===Zn.html?"script"===i?((i=f.createElement("div")).innerHTML="<script><\/script>",f=i.removeChild(i.firstChild)):"string"==typeof d.is?f=f.createElement(i,{is:d.is}):(f=f.createElement(i),"select"===i&&d.multiple&&(f.multiple=!0)):f=f.createElementNS(c,i),(i=f)[L]=p,i[j]=u,hi(i,t,!1,!1),d=i;var h=l,g=cr(f=s,p=u);switch(f){case"iframe":case"object":Cn("load",d),l=p;break;case"video":case"audio":for(l=0;l<te.length;l++)Cn(te[l],d);l=p;break;case"source":Cn("error",d),l=p;break;case"img":case"image":case"link":Cn("error",d),Cn("load",d),l=p;break;case"form":Cn("reset",d),Cn("submit",d),l=p;break;case"details":Cn("toggle",d),l=p;break;case"input":_t(d,p),l=bt(d,p),Cn("invalid",d),fr(h,"onChange");break;case"option":l=qn(d,p);break;case"select":d._wrapperState={wasMultiple:!!p.multiple},l=o({},p,{value:void 0}),Cn("invalid",d),fr(h,"onChange");break;case"textarea":Kn(d,p),l=Hn(d,p),Cn("invalid",d),fr(h,"onChange");break;default:l=p}lr(f,l),c=void 0;var v=f,m=d,y=l;for(c in y)if(y.hasOwnProperty(c)){var _=y[c];"style"===c?sr(m,_):"dangerouslySetInnerHTML"===c?null!=(_=_?_.__html:void 0)&&nr(m,_):"children"===c?"string"==typeof _?("textarea"!==v||""!==_)&&rr(m,_):"number"==typeof _&&rr(m,""+_):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(b.hasOwnProperty(c)?null!=_&&fr(h,c):null!=_&&mt(m,c,_,g))}switch(f){case"input":We(d),kt(d,p,!1);break;case"textarea":We(d),Qn(d);break;case"option":null!=p.value&&d.setAttribute("value",""+yt(p.value));break;case"select":(l=d).multiple=!!p.multiple,null!=(d=p.value)?Xn(l,!!p.multiple,d,!1):null!=p.defaultValue&&Xn(l,!!p.multiple,p.defaultValue,!0);break;default:"function"==typeof l.onClick&&(d.onclick=pr)}(u=gr(s,u))&&di(t),t.stateNode=i}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&a("166");break;case 6:i&&null!=t.stateNode?mi(i,t,i.memoizedProps,u):("string"!=typeof u&&(null===t.stateNode&&a("166")),i=Co(Eo.current),Co(wo.current),Zo(t)?(s=(u=t).stateNode,i=u.memoizedProps,s[L]=u,(u=s.nodeValue!==i)&&di(t)):(s=t,(u=(9===i.nodeType?i:i.ownerDocument).createTextNode(u))[L]=t,s.stateNode=u));break;case 11:break;case 13:if(u=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=s,Li=t;break e}u=null!==u,s=null!==i&&null!==i.memoizedState,null!==i&&!u&&s&&(null!==(i=i.child.sibling)&&(null!==(l=t.firstEffect)?(t.firstEffect=i,i.nextEffect=l):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),(u!==s||0==(1&t.effectTag)&&u)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:Oo(),gi(t);break;case 10:yo(t);break;case 9:case 14:break;case 17:Tr(t.type)&&Ar();break;default:a("156")}Li=null}if(t=e,1===Ii||1!==t.childExpirationTime){for(u=0,s=t.child;null!==s;)(i=s.expirationTime)>u&&(u=i),(l=s.childExpirationTime)>u&&(u=l),s=s.sibling;t.childExpirationTime=u}if(null!==Li)return Li;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=Oi(e)))return e.effectTag&=1023,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==r)return r;if(null===n)break;e=n}return null}function qi(e){var t=pi(e.alternate,e,Ii);return e.memoizedProps=e.pendingProps,null===t&&(t=Yi(e)),Ni.current=null,t}function Xi(e,t){Mi&&a("243"),Gi(),Mi=!0,Ni.currentDispatcher=Si;var n=e.nextExpirationTimeToWorkOn;n===Ii&&e===ji&&null!==Li||(Vi(),Ii=n,Li=Vr((ji=e).current,null),e.pendingCommitExpirationTime=0);for(var r=!1;;){try{if(t)for(;null!==Li&&!Oa();)Li=qi(Li);else for(;null!==Li;)Li=qi(Li)}catch(t){if(vo=go=ho=null,null===Li)r=!0,La(t);else{null===Li&&a("271");var o=Li,i=o.return;if(null!==i){e:{var s=e,u=i,l=o,c=t;if(i=Ii,l.effectTag|=1024,l.firstEffect=l.lastEffect=null,null!==c&&"object"==typeof c&&"function"==typeof c.then){var f=c;c=u;var p=-1,d=-1;do{if(13===c.tag){var h=c.alternate;if(null!==h&&null!==(h=h.memoizedState)){d=10*(1073741822-h.timedOutAt);break}"number"==typeof(h=c.pendingProps.maxDuration)&&(0>=h?p=0:(-1===p||h<p)&&(p=h))}c=c.return}while(null!==c);c=u;do{if((h=13===c.tag)&&(h=void 0!==c.memoizedProps.fallback&&null===c.memoizedState),h){if(u=$i.bind(null,s,c,l,0==(1&c.mode)?1073741823:i),f.then(u,u),0==(1&c.mode)){c.effectTag|=64,l.effectTag&=-1957,1===l.tag&&null===l.alternate&&(l.tag=17),l.expirationTime=i;break e}-1===p?s=1073741823:(-1===d&&(d=10*(1073741822-Qr(s,i))-5e3),s=d+p),0<=s&&Ri<s&&(Ri=s),c.effectTag|=2048,c.expirationTime=i;break e}c=c.return}while(null!==c);c=Error((st(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ut(l))}Bi=!0,c=fo(c,l),s=u;do{switch(s.tag){case 3:l=c,s.effectTag|=2048,s.expirationTime=i,io(s,i=Ci(s,l,i));break e;case 1:if(l=c,u=s.type,f=s.stateNode,0==(64&s.effectTag)&&("function"==typeof u.getDerivedStateFromError||null!==f&&"function"==typeof f.componentDidCatch&&(null===Wi||!Wi.has(f)))){s.effectTag|=2048,s.expirationTime=i,io(s,i=Pi(s,l,i));break e}}s=s.return}while(null!==s)}Li=Yi(o);continue}r=!0,La(t)}}break}if(Mi=!1,vo=go=ho=Ni.currentDispatcher=null,r)ji=null,e.finishedWork=null;else if(null!==Li)e.finishedWork=null;else{if(null===(r=e.current.alternate)&&a("281"),ji=null,Bi){if(o=e.latestPendingTime,i=e.latestSuspendedTime,s=e.latestPingedTime,0!==o&&o<n||0!==i&&i<n||0!==s&&s<n)return $r(e,n),void wa(e,r,n,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,n=e.nextExpirationTimeToWorkOn=n,t=e.expirationTime=1073741823,void wa(e,r,n,t,-1)}t&&-1!==Ri?($r(e,n),(t=10*(1073741822-Qr(e,n)))<Ri&&(Ri=t),t=10*(1073741822-ka()),t=Ri-t,wa(e,r,n,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=n,e.finishedWork=r)}}function Hi(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wi||!Wi.has(r)))return oo(n,e=Pi(n,e=fo(t,e),1073741823)),void Zi(n,1073741823);break;case 3:return oo(n,e=Ci(n,e=fo(t,e),1073741823)),void Zi(n,1073741823)}n=n.return}3===e.tag&&(oo(e,n=Ci(e,n=fo(t,e),1073741823)),Zi(e,1073741823))}function Ki(e,t){return 0!==Ai?e=Ai:Mi?e=Di?1073741823:Ii:1&t.mode?(e=pa?1073741822-10*(1+((1073741822-e+15)/10|0)):1073741822-25*(1+((1073741822-e+500)/25|0)),null!==ji&&e===Ii&&--e):e=1073741823,pa&&(0===sa||e<sa)&&(sa=e),e}function $i(e,t,n,r){var o=e.earliestSuspendedTime,i=e.latestSuspendedTime;if(0!==o&&r<=o&&r>=i){i=o=r,e.didError=!1;var a=e.latestPingedTime;(0===a||a>i)&&(e.latestPingedTime=i),Zr(i,e)}else Kr(e,o=Ki(o=ka(),t));0!=(1&t.mode)&&e===ji&&Ii===r&&(ji=null),Qi(t,o),0==(1&t.mode)&&(Qi(n,o),1===n.tag&&null!==n.stateNode&&((t=no(o)).tag=2,oo(n,t))),0!==(n=e.expirationTime)&&Ea(e,n)}function Qi(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return o}function Zi(e,t){null!==(e=Qi(e,t))&&(!Mi&&0!==Ii&&t>Ii&&Vi(),Kr(e,t),Mi&&!Di&&ji===e||Ea(e,e.expirationTime),ya>ma&&(ya=0,a("185")))}function Ji(e,t,n,r,o){var i=Ai;Ai=1073741823;try{return e(t,n,r,o)}finally{Ai=i}}var ea=null,ta=null,na=0,ra=void 0,oa=!1,ia=null,aa=0,sa=0,ua=!1,la=null,ca=!1,fa=!1,pa=!1,da=null,ha=i.unstable_now(),ga=1073741822-(ha/10|0),va=ga,ma=50,ya=0,ba=null;function _a(){ga=1073741822-((i.unstable_now()-ha)/10|0)}function xa(e,t){if(0!==na){if(t<na)return;null!==ra&&i.unstable_cancelCallback(ra)}na=t,e=i.unstable_now()-ha,ra=i.unstable_scheduleCallback(Sa,{timeout:10*(1073741822-t)-e})}function wa(e,t,n,r,o){e.expirationTime=r,0!==o||Oa()?0<o&&(e.timeoutHandle=mr(function(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,_a(),va=ga,Ta(e,n)}.bind(null,e,t,n),o)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function ka(){return oa?va:(Ca(),0!==aa&&1!==aa||(_a(),va=ga),va)}function Ea(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===ta?(ea=ta=e,e.nextScheduledRoot=e):(ta=ta.nextScheduledRoot=e).nextScheduledRoot=ea):t>e.expirationTime&&(e.expirationTime=t),oa||(ca?fa&&(ia=e,aa=1073741823,Aa(e,1073741823,!1)):1073741823===t?Na(1073741823,!1):xa(e,t))}function Ca(){var e=0,t=null;if(null!==ta)for(var n=ta,r=ea;null!==r;){var o=r.expirationTime;if(0===o){if((null===n||null===ta)&&a("244"),r===r.nextScheduledRoot){ea=ta=r.nextScheduledRoot=null;break}if(r===ea)ea=o=r.nextScheduledRoot,ta.nextScheduledRoot=o,r.nextScheduledRoot=null;else{if(r===ta){(ta=n).nextScheduledRoot=ea,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(o>e&&(e=o,t=r),r===ta)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}ia=t,aa=e}var Pa=!1;function Oa(){return!!Pa||!!i.unstable_shouldYield()&&(Pa=!0)}function Sa(){try{if(!Oa()&&null!==ea){_a();var e=ea;do{var t=e.expirationTime;0!==t&&ga<=t&&(e.nextExpirationTimeToWorkOn=ga),e=e.nextScheduledRoot}while(e!==ea)}Na(0,!0)}finally{Pa=!1}}function Na(e,t){if(Ca(),t)for(_a(),va=ga;null!==ia&&0!==aa&&e<=aa&&!(Pa&&ga>aa);)Aa(ia,aa,ga>aa),Ca(),_a(),va=ga;else for(;null!==ia&&0!==aa&&e<=aa;)Aa(ia,aa,!1),Ca();if(t&&(na=0,ra=null),0!==aa&&xa(ia,aa),ya=0,ba=null,null!==da)for(e=da,da=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){ua||(ua=!0,la=e)}}if(ua)throw e=la,la=null,ua=!1,e}function Ta(e,t){oa&&a("253"),ia=e,aa=t,Aa(e,t,!1),Na(1073741823,!1)}function Aa(e,t,n){if(oa&&a("245"),oa=!0,n){var r=e.finishedWork;null!==r?Ma(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,yr(r)),Xi(e,n),null!==(r=e.finishedWork)&&(Oa()?e.finishedWork=r:Ma(e,r,t)))}else null!==(r=e.finishedWork)?Ma(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,yr(r)),Xi(e,n),null!==(r=e.finishedWork)&&Ma(e,r,t));oa=!1}function Ma(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===da?da=[r]:da.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===ba?ya++:(ba=e,ya=0),Di=Mi=!0,e.current===t&&a("177"),0===(n=e.pendingCommitExpirationTime)&&a("261"),e.pendingCommitExpirationTime=0,r=t.expirationTime;var o=t.childExpirationTime;if(r=o>r?o:r,e.didError=!1,0===r?(e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0):(0!==(o=e.latestPendingTime)&&(o>r?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>r&&(e.earliestPendingTime=e.latestPendingTime)),0===(o=e.earliestSuspendedTime)?Kr(e,r):r<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,Kr(e,r)):r>o&&Kr(e,r)),Zr(0,e),Ni.current=null,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,dr=En,Bn(o=Rn())){if("selectionStart"in o)var i={start:o.selectionStart,end:o.selectionEnd};else e:{var s=(i=(i=o.ownerDocument)&&i.defaultView||window).getSelection&&i.getSelection();if(s&&0!==s.rangeCount){i=s.anchorNode;var u=s.anchorOffset,l=s.focusNode;s=s.focusOffset;try{i.nodeType,l.nodeType}catch(e){i=null;break e}var c=0,f=-1,p=-1,d=0,h=0,g=o,v=null;t:for(;;){for(var m;g!==i||0!==u&&3!==g.nodeType||(f=c+u),g!==l||0!==s&&3!==g.nodeType||(p=c+s),3===g.nodeType&&(c+=g.nodeValue.length),null!==(m=g.firstChild);)v=g,g=m;for(;;){if(g===o)break t;if(v===i&&++d===u&&(f=c),v===l&&++h===s&&(p=c),null!==(m=g.nextSibling))break;v=(g=v).parentNode}g=m}i=-1===f||-1===p?null:{start:f,end:p}}else i=null}i=i||{start:0,end:0}}else i=null;for(hr={focusedElem:o,selectionRange:i},En=!1,Fi=r;null!==Fi;){o=!1,i=void 0;try{for(;null!==Fi;){if(256&Fi.effectTag)e:{var y=Fi.alternate;switch((u=Fi).tag){case 0:case 11:case 15:break e;case 1:if(256&u.effectTag&&null!==y){var b=y.memoizedProps,_=y.memoizedState,x=u.stateNode,w=x.getSnapshotBeforeUpdate(u.elementType===u.type?b:To(u.type,b),_);x.__reactInternalSnapshotBeforeUpdate=w}break e;case 3:case 5:case 6:case 4:case 17:break e;default:a("163")}}Fi=Fi.nextEffect}}catch(e){o=!0,i=e}o&&(null===Fi&&a("178"),Hi(Fi,i),null!==Fi&&(Fi=Fi.nextEffect))}for(Fi=r;null!==Fi;){y=!1,b=void 0;try{for(;null!==Fi;){var k=Fi.effectTag;if(16&k&&rr(Fi.stateNode,""),128&k){var E=Fi.alternate;if(null!==E){var C=E.ref;null!==C&&("function"==typeof C?C(null):C.current=null)}}switch(14&k){case 2:wi(Fi),Fi.effectTag&=-3;break;case 6:wi(Fi),Fi.effectTag&=-3,Ei(Fi.alternate,Fi);break;case 4:Ei(Fi.alternate,Fi);break;case 8:ki(_=Fi),_.return=null,_.child=null,_.alternate&&(_.alternate.child=null,_.alternate.return=null)}Fi=Fi.nextEffect}}catch(e){y=!0,b=e}y&&(null===Fi&&a("178"),Hi(Fi,b),null!==Fi&&(Fi=Fi.nextEffect))}if(C=hr,E=Rn(),k=C.focusedElem,b=C.selectionRange,E!==k&&k&&k.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(k.ownerDocument.documentElement,k)){null!==b&&Bn(k)&&(E=b.start,void 0===(C=b.end)&&(C=E),"selectionStart"in k?(k.selectionStart=E,k.selectionEnd=Math.min(C,k.value.length)):(C=(E=k.ownerDocument||document)&&E.defaultView||window).getSelection&&(C=C.getSelection(),_=k.textContent.length,y=Math.min(b.start,_),b=void 0===b.end?y:Math.min(b.end,_),!C.extend&&y>b&&(_=b,b=y,y=_),_=In(k,y),x=In(k,b),_&&x&&(1!==C.rangeCount||C.anchorNode!==_.node||C.anchorOffset!==_.offset||C.focusNode!==x.node||C.focusOffset!==x.offset)&&((E=E.createRange()).setStart(_.node,_.offset),C.removeAllRanges(),y>b?(C.addRange(E),C.extend(x.node,x.offset)):(E.setEnd(x.node,x.offset),C.addRange(E))))),E=[];for(C=k;C=C.parentNode;)1===C.nodeType&&E.push({element:C,left:C.scrollLeft,top:C.scrollTop});for("function"==typeof k.focus&&k.focus(),k=0;k<E.length;k++)(C=E[k]).element.scrollLeft=C.left,C.element.scrollTop=C.top}for(hr=null,En=!!dr,dr=null,e.current=t,Fi=r;null!==Fi;){r=!1,k=void 0;try{for(E=n;null!==Fi;){var P=Fi.effectTag;if(36&P){var O=Fi.alternate;switch(y=E,(C=Fi).tag){case 0:case 11:case 15:break;case 1:var S=C.stateNode;if(4&C.effectTag)if(null===O)S.componentDidMount();else{var N=C.elementType===C.type?O.memoizedProps:To(C.type,O.memoizedProps);S.componentDidUpdate(N,O.memoizedState,S.__reactInternalSnapshotBeforeUpdate)}var T=C.updateQueue;null!==T&&lo(0,T,S);break;case 3:var A=C.updateQueue;if(null!==A){if(b=null,null!==C.child)switch(C.child.tag){case 5:b=C.child.stateNode;break;case 1:b=C.child.stateNode}lo(0,A,b)}break;case 5:var M=C.stateNode;null===O&&4&C.effectTag&&gr(C.type,C.memoizedProps)&&M.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:a("163")}}if(128&P){var L=Fi.ref;if(null!==L){var j=Fi.stateNode;switch(Fi.tag){case 5:var I=j;break;default:I=j}"function"==typeof L?L(I):L.current=I}}Fi=Fi.nextEffect}}catch(e){r=!0,k=e}r&&(null===Fi&&a("178"),Hi(Fi,k),null!==Fi&&(Fi=Fi.nextEffect))}Mi=Di=!1,"function"==typeof Br&&Br(t.stateNode),P=t.expirationTime,0===(t=(t=t.childExpirationTime)>P?t:P)&&(Wi=null),e.expirationTime=t,e.finishedWork=null}function La(e){null===ia&&a("246"),ia.expirationTime=0,ua||(ua=!0,la=e)}function ja(e,t){var n=ca;ca=!0;try{return e(t)}finally{(ca=n)||oa||Na(1073741823,!1)}}function Ia(e,t){if(ca&&!fa){fa=!0;try{return e(t)}finally{fa=!1}}return e(t)}function Ra(e,t,n){if(pa)return e(t,n);ca||oa||0===sa||(Na(sa,!1),sa=0);var r=pa,o=ca;ca=pa=!0;try{return e(t,n)}finally{pa=r,(ca=o)||oa||Na(1073741823,!1)}}function Ba(e,t,n,r,o){var i=t.current;e:if(n){t:{2===tn(n=n._reactInternalFiber)&&1===n.tag||a("170");var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(Tr(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);a("171"),s=void 0}if(1===n.tag){var u=n.type;if(Tr(u)){n=jr(n,u,s);break e}}n=s}else n=Cr;return null===t.context?t.context=n:t.pendingContext=n,t=o,(o=no(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(o.callback=t),Gi(),oo(i,o),Zi(i,r),r}function Fa(e,t,n,r){var o=t.current;return Ba(e,t,n,o=Ki(ka(),o),r)}function Da(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function za(e){var t=1073741822-25*(1+((1073741822-ka()+500)/25|0));t>=Ti&&(t=Ti-1),this._expirationTime=Ti=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Ua(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Wa(e,t,n){e={current:t=Ur(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function Va(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ga(e,t,n,r,o){Va(n)||a("200");var i=n._reactRootContainer;if(i){if("function"==typeof o){var s=o;o=function(){var e=Da(i._internalRoot);s.call(e)}}null!=e?i.legacy_renderSubtreeIntoContainer(e,t,o):i.render(t,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Wa(e,!1,t)}(n,r),"function"==typeof o){var u=o;o=function(){var e=Da(i._internalRoot);u.call(e)}}Ia(function(){null!=e?i.legacy_renderSubtreeIntoContainer(e,t,o):i.render(t,o)})}return Da(i._internalRoot)}function Ya(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Va(t)||a("200"),function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:He,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Pe=function(e,t,n){switch(t){case"input":if(wt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=F(r);o||a("90"),Ve(r),wt(r,o)}}}break;case"textarea":$n(e,n);break;case"select":null!=(t=n.value)&&Xn(e,!!n.multiple,t,!1)}},za.prototype.render=function(e){this._defer||a("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new Ua;return Ba(e,t,null,n,r._onCommit),r},za.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},za.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||a("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,o=t;o!==this;)r=o,o=o._next;null===r&&a("251"),r._next=o._next,this._next=t,e.firstBatch=this}this._defer=!1,Ta(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},za.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},Ua.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Ua.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&a("191",n),n()}}},Wa.prototype.render=function(e,t){var n=this._internalRoot,r=new Ua;return null!==(t=void 0===t?null:t)&&r.then(t),Fa(e,n,null,r._onCommit),r},Wa.prototype.unmount=function(e){var t=this._internalRoot,n=new Ua;return null!==(e=void 0===e?null:e)&&n.then(e),Fa(null,t,null,n._onCommit),n},Wa.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,o=new Ua;return null!==(n=void 0===n?null:n)&&o.then(n),Fa(t,r,e,o._onCommit),o},Wa.prototype.createBatch=function(){var e=new za(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Me=ja,Le=Ra,je=function(){oa||0===sa||(Na(sa,!1),sa=0)};var qa,Xa,Ha={createPortal:Ya,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?a("188"):a("268",Object.keys(e))),e=null===(e=rn(t))?null:e.stateNode},hydrate:function(e,t,n){return Ga(null,e,t,!0,n)},render:function(e,t,n){return Ga(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return(null==e||void 0===e._reactInternalFiber)&&a("38"),Ga(e,t,n,!1,r)},unmountComponentAtNode:function(e){return Va(e)||a("40"),!!e._reactRootContainer&&(Ia(function(){Ga(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Ya.apply(void 0,arguments)},unstable_batchedUpdates:ja,unstable_interactiveUpdates:Ra,flushSync:function(e,t){oa&&a("187");var n=ca;ca=!0;try{return Ji(e,t)}finally{ca=n,Na(1073741823,!1)}},unstable_flushControlled:function(e){var t=ca;ca=!0;try{Ji(e)}finally{(ca=t)||oa||Na(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[R,B,F,N.injectEventPluginsByName,y,G,function(e){P(e,V)},Te,Ae,Sn,A]},unstable_createRoot:function(e,t){return Va(e)||a("299","unstable_createRoot"),new Wa(e,!0,null!=t&&!0===t.hydrate)}};Xa=(qa={findFiberByHostInstance:I,bundleType:0,version:"16.6.3",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Br=Dr(function(e){return t.onCommitFiberRoot(n,e)}),Fr=Dr(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}}(o({},qa,{findHostInstanceByFiber:function(e){return null===(e=rn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Xa?Xa(e):null}}));var Ka={default:Ha},$a=Ka&&Ha||Ka;e.exports=$a.default||$a},function(e,t,n){"use strict";e.exports=n(131)},function(e,t,n){"use strict";(function(e){
  25. /** @license React v0.11.3
  26. * scheduler.production.min.js
  27. *
  28. * Copyright (c) Facebook, Inc. and its affiliates.
  29. *
  30. * This source code is licensed under the MIT license found in the
  31. * LICENSE file in the root directory of this source tree.
  32. */
  33. Object.defineProperty(t,"__esModule",{value:!0});var n=null,r=!1,o=3,i=-1,a=-1,s=!1,u=!1;function l(){if(!s){var e=n.expirationTime;u?k():u=!0,w(p,e)}}function c(){var e=n,t=n.next;if(n===t)n=null;else{var r=n.previous;n=r.next=t,t.previous=r}e.next=e.previous=null,r=e.callback,t=e.expirationTime,e=e.priorityLevel;var i=o,s=a;o=e,a=t;try{var u=r()}finally{o=i,a=s}if("function"==typeof u)if(u={callback:u,priorityLevel:e,expirationTime:t,next:null,previous:null},null===n)n=u.next=u.previous=u;else{r=null,e=n;do{if(e.expirationTime>=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=u,l()),(t=r.previous).next=r.previous=u,u.next=r,u.previous=t}}function f(){if(-1===i&&null!==n&&1===n.priorityLevel){s=!0;try{do{c()}while(null!==n&&1===n.priorityLevel)}finally{s=!1,null!==n?l():u=!1}}}function p(e){s=!0;var o=r;r=e;try{if(e)for(;null!==n;){var i=t.unstable_now();if(!(n.expirationTime<=i))break;do{c()}while(null!==n&&n.expirationTime<=i)}else if(null!==n)do{c()}while(null!==n&&!E())}finally{s=!1,r=o,null!==n?l():u=!1,f()}}var d,h,g=Date,v="function"==typeof setTimeout?setTimeout:void 0,m="function"==typeof clearTimeout?clearTimeout:void 0,y="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,b="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function _(e){d=y(function(t){m(h),e(t)}),h=v(function(){b(d),e(t.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var x=performance;t.unstable_now=function(){return x.now()}}else t.unstable_now=function(){return g.now()};var w,k,E,C=null;if("undefined"!=typeof window?C=window:void 0!==e&&(C=e),C&&C._schedMock){var P=C._schedMock;w=P[0],k=P[1],E=P[2],t.unstable_now=P[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var O=null,S=function(e){if(null!==O)try{O(e)}finally{O=null}};w=function(e){null!==O?setTimeout(w,0,e):(O=e,setTimeout(S,0,!1))},k=function(){O=null},E=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof y&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var N=null,T=!1,A=-1,M=!1,L=!1,j=0,I=33,R=33;E=function(){return j<=t.unstable_now()};var B=new MessageChannel,F=B.port2;B.port1.onmessage=function(){T=!1;var e=N,n=A;N=null,A=-1;var r=t.unstable_now(),o=!1;if(0>=j-r){if(!(-1!==n&&n<=r))return M||(M=!0,_(D)),N=e,void(A=n);o=!0}if(null!==e){L=!0;try{e(o)}finally{L=!1}}};var D=function(e){if(null!==N){_(D);var t=e-j+R;t<R&&I<R?(8>t&&(t=8),R=t<I?I:t):I=t,j=e+R,T||(T=!0,F.postMessage(void 0))}else M=!1};w=function(e,t){N=e,A=t,L||0>t?F.postMessage(void 0):M||(M=!0,_(D))},k=function(){N=null,T=!1,A=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=o,a=i;o=e,i=t.unstable_now();try{return n()}finally{o=r,i=a,f()}},t.unstable_scheduleCallback=function(e,r){var a=-1!==i?i:t.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=a+r.timeout;else switch(o){case 1:r=a+-1;break;case 2:r=a+250;break;case 5:r=a+1073741823;break;case 4:r=a+1e4;break;default:r=a+5e3}if(e={callback:e,priorityLevel:o,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,l();else{a=null;var s=n;do{if(s.expirationTime>r){a=s;break}s=s.next}while(s!==n);null===a?a=n:a===n&&(n=e,l()),(r=a.previous).next=a.previous=e,e.next=a,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=o;return function(){var r=o,a=i;o=n,i=t.unstable_now();try{return e.apply(this,arguments)}finally{o=r,i=a,f()}}},t.unstable_getCurrentPriorityLevel=function(){return o},t.unstable_shouldYield=function(){return!r&&(null!==n&&n.expirationTime<a||E())}}).call(this,n(15))},function(e,t,n){(function(e,r){var o;
  34. /**
  35. * @license
  36. * Lodash <https://lodash.com/>
  37. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  38. * Released under MIT license <https://lodash.com/license>
  39. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  40. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  41. */(function(){var i,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="__lodash_hash_undefined__",c=500,f="__lodash_placeholder__",p=1,d=2,h=4,g=1,v=2,m=1,y=2,b=4,_=8,x=16,w=32,k=64,E=128,C=256,P=512,O=30,S="...",N=800,T=16,A=1,M=2,L=1/0,j=9007199254740991,I=17976931348623157e292,R=NaN,B=4294967295,F=B-1,D=B>>>1,z=[["ary",E],["bind",m],["bindKey",y],["curry",_],["curryRight",x],["flip",P],["partial",w],["partialRight",k],["rearg",C]],U="[object Arguments]",W="[object Array]",V="[object AsyncFunction]",G="[object Boolean]",Y="[object Date]",q="[object DOMException]",X="[object Error]",H="[object Function]",K="[object GeneratorFunction]",$="[object Map]",Q="[object Number]",Z="[object Null]",J="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object Symbol]",ie="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",le="[object DataView]",ce="[object Float32Array]",fe="[object Float64Array]",pe="[object Int8Array]",de="[object Int16Array]",he="[object Int32Array]",ge="[object Uint8Array]",ve="[object Uint8ClampedArray]",me="[object Uint16Array]",ye="[object Uint32Array]",be=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,we=/&(?:amp|lt|gt|quot|#39);/g,ke=/[&<>"']/g,Ee=RegExp(we.source),Ce=RegExp(ke.source),Pe=/<%-([\s\S]+?)%>/g,Oe=/<%([\s\S]+?)%>/g,Se=/<%=([\s\S]+?)%>/g,Ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Te=/^\w*$/,Ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Me=/[\\^$.*+?()[\]{}|]/g,Le=RegExp(Me.source),je=/^\s+|\s+$/g,Ie=/^\s+/,Re=/\s+$/,Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fe=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ve=/\w*$/,Ge=/^[-+]0x[0-9a-f]+$/i,Ye=/^0b[01]+$/i,qe=/^\[object .+?Constructor\]$/,Xe=/^0o[0-7]+$/i,He=/^(?:0|[1-9]\d*)$/,Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$e=/($^)/,Qe=/['\n\r\u2028\u2029\\]/g,Ze="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Je="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Je+"]",nt="["+Ze+"]",rt="\\d+",ot="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Je+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",lt="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",ft="[A-Z\\xc0-\\xd6\\xd8-\\xde]",pt="(?:"+it+"|"+at+")",dt="(?:"+ft+"|"+at+")",ht="(?:"+nt+"|"+st+")"+"?",gt="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[ut,lt,ct].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),vt="(?:"+[ot,lt,ct].join("|")+")"+gt,mt="(?:"+[ut+nt+"?",nt,lt,ct,et].join("|")+")",yt=RegExp("['’]","g"),bt=RegExp(nt,"g"),_t=RegExp(st+"(?="+st+")|"+mt+gt,"g"),xt=RegExp([ft+"?"+it+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ft,"$"].join("|")+")",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ft+pt,"$"].join("|")+")",ft+"?"+pt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ft+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,vt].join("|"),"g"),wt=RegExp("[\\u200d\\ud800-\\udfff"+Ze+"\\ufe0e\\ufe0f]"),kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Et=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ct=-1,Pt={};Pt[ce]=Pt[fe]=Pt[pe]=Pt[de]=Pt[he]=Pt[ge]=Pt[ve]=Pt[me]=Pt[ye]=!0,Pt[U]=Pt[W]=Pt[ue]=Pt[G]=Pt[le]=Pt[Y]=Pt[X]=Pt[H]=Pt[$]=Pt[Q]=Pt[J]=Pt[te]=Pt[ne]=Pt[re]=Pt[ae]=!1;var Ot={};Ot[U]=Ot[W]=Ot[ue]=Ot[le]=Ot[G]=Ot[Y]=Ot[ce]=Ot[fe]=Ot[pe]=Ot[de]=Ot[he]=Ot[$]=Ot[Q]=Ot[J]=Ot[te]=Ot[ne]=Ot[re]=Ot[oe]=Ot[ge]=Ot[ve]=Ot[me]=Ot[ye]=!0,Ot[X]=Ot[H]=Ot[ae]=!1;var St={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Nt=parseFloat,Tt=parseInt,At="object"==typeof e&&e&&e.Object===Object&&e,Mt="object"==typeof self&&self&&self.Object===Object&&self,Lt=At||Mt||Function("return this")(),jt=t&&!t.nodeType&&t,It=jt&&"object"==typeof r&&r&&!r.nodeType&&r,Rt=It&&It.exports===jt,Bt=Rt&&At.process,Ft=function(){try{var e=It&&It.require&&It.require("util").types;return e||Bt&&Bt.binding&&Bt.binding("util")}catch(e){}}(),Dt=Ft&&Ft.isArrayBuffer,zt=Ft&&Ft.isDate,Ut=Ft&&Ft.isMap,Wt=Ft&&Ft.isRegExp,Vt=Ft&&Ft.isSet,Gt=Ft&&Ft.isTypedArray;function Yt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function qt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Xt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ht(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Kt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function $t(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Qt(e,t){return!!(null==e?0:e.length)&&un(e,t,0)>-1}function Zt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Jt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function en(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function tn(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function nn(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function rn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var on=pn("length");function an(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function sn(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function un(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):sn(e,cn,n)}function ln(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function cn(e){return e!=e}function fn(e,t){var n=null==e?0:e.length;return n?gn(e,t)/n:R}function pn(e){return function(t){return null==t?i:t[e]}}function dn(e){return function(t){return null==e?i:e[t]}}function hn(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function gn(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function vn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function mn(e){return function(t){return e(t)}}function yn(e,t){return Jt(t,function(t){return e[t]})}function bn(e,t){return e.has(t)}function _n(e,t){for(var n=-1,r=e.length;++n<r&&un(t,e[n],0)>-1;);return n}function xn(e,t){for(var n=e.length;n--&&un(t,e[n],0)>-1;);return n}var wn=dn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),kn=dn({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function En(e){return"\\"+St[e]}function Cn(e){return wt.test(e)}function Pn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function On(e,t){return function(n){return e(t(n))}}function Sn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==f||(e[n]=f,i[o++]=n)}return i}function Nn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function Tn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function An(e){return Cn(e)?function(e){var t=_t.lastIndex=0;for(;_t.test(e);)++t;return t}(e):on(e)}function Mn(e){return Cn(e)?function(e){return e.match(_t)||[]}(e):function(e){return e.split("")}(e)}var Ln=dn({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var jn=function e(t){var n,r=(t=null==t?Lt:jn.defaults(Lt.Object(),t,jn.pick(Lt,Et))).Array,o=t.Date,Ze=t.Error,Je=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,ot=t.TypeError,it=r.prototype,at=Je.prototype,st=tt.prototype,ut=t["__core-js_shared__"],lt=at.toString,ct=st.hasOwnProperty,ft=0,pt=(n=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",dt=st.toString,ht=lt.call(tt),gt=Lt._,vt=nt("^"+lt.call(ct).replace(Me,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=Rt?t.Buffer:i,_t=t.Symbol,wt=t.Uint8Array,St=mt?mt.allocUnsafe:i,At=On(tt.getPrototypeOf,tt),Mt=tt.create,jt=st.propertyIsEnumerable,It=it.splice,Bt=_t?_t.isConcatSpreadable:i,Ft=_t?_t.iterator:i,on=_t?_t.toStringTag:i,dn=function(){try{var e=Di(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),In=t.clearTimeout!==Lt.clearTimeout&&t.clearTimeout,Rn=o&&o.now!==Lt.Date.now&&o.now,Bn=t.setTimeout!==Lt.setTimeout&&t.setTimeout,Fn=et.ceil,Dn=et.floor,zn=tt.getOwnPropertySymbols,Un=mt?mt.isBuffer:i,Wn=t.isFinite,Vn=it.join,Gn=On(tt.keys,tt),Yn=et.max,qn=et.min,Xn=o.now,Hn=t.parseInt,Kn=et.random,$n=it.reverse,Qn=Di(t,"DataView"),Zn=Di(t,"Map"),Jn=Di(t,"Promise"),er=Di(t,"Set"),tr=Di(t,"WeakMap"),nr=Di(tt,"create"),rr=tr&&new tr,or={},ir=fa(Qn),ar=fa(Zn),sr=fa(Jn),ur=fa(er),lr=fa(tr),cr=_t?_t.prototype:i,fr=cr?cr.valueOf:i,pr=cr?cr.toString:i;function dr(e){if(Ss(e)&&!ms(e)&&!(e instanceof mr)){if(e instanceof vr)return e;if(ct.call(e,"__wrapped__"))return pa(e)}return new vr(e)}var hr=function(){function e(){}return function(t){if(!Os(t))return{};if(Mt)return Mt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function gr(){}function vr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function mr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=B,this.__views__=[]}function yr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function br(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new _r;++t<n;)this.add(e[t])}function wr(e){var t=this.__data__=new br(e);this.size=t.size}function kr(e,t){var n=ms(e),r=!n&&vs(e),o=!n&&!r&&xs(e),i=!n&&!r&&!o&&Rs(e),a=n||r||o||i,s=a?vn(e.length,rt):[],u=s.length;for(var l in e)!t&&!ct.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||qi(l,u))||s.push(l);return s}function Er(e){var t=e.length;return t?e[wo(0,t-1)]:i}function Cr(e,t){return ua(ri(e),jr(t,0,e.length))}function Pr(e){return ua(ri(e))}function Or(e,t,n){(n===i||ds(e[t],n))&&(n!==i||t in e)||Mr(e,t,n)}function Sr(e,t,n){var r=e[t];ct.call(e,t)&&ds(r,n)&&(n!==i||t in e)||Mr(e,t,n)}function Nr(e,t){for(var n=e.length;n--;)if(ds(e[n][0],t))return n;return-1}function Tr(e,t,n,r){return Dr(e,function(e,o,i){t(r,e,n(e),i)}),r}function Ar(e,t){return e&&oi(t,ou(t),e)}function Mr(e,t,n){"__proto__"==t&&dn?dn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Lr(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:Js(e,t[n]);return a}function jr(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function Ir(e,t,n,r,o,a){var s,u=t&p,l=t&d,c=t&h;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!Os(e))return e;var f=ms(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return ri(e,s)}else{var g=Wi(e),v=g==H||g==K;if(xs(e))return Qo(e,u);if(g==J||g==U||v&&!o){if(s=l||v?{}:Gi(e),!u)return l?function(e,t){return oi(e,Ui(e),t)}(e,function(e,t){return e&&oi(t,iu(t),e)}(s,e)):function(e,t){return oi(e,zi(e),t)}(e,Ar(s,e))}else{if(!Ot[g])return o?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case ue:return Zo(e);case G:case Y:return new o(+e);case le:return function(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case ce:case fe:case pe:case de:case he:case ge:case ve:case me:case ye:return Jo(e,n);case $:return new o;case Q:case re:return new o(e);case te:return function(e){var t=new e.constructor(e.source,Ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ne:return new o;case oe:return r=e,fr?tt(fr.call(r)):{}}}(e,g,u)}}a||(a=new wr);var m=a.get(e);if(m)return m;a.set(e,s),Ls(e)?e.forEach(function(r){s.add(Ir(r,t,n,r,e,a))}):Ns(e)&&e.forEach(function(r,o){s.set(o,Ir(r,t,n,o,e,a))});var y=f?i:(c?l?Mi:Ai:l?iu:ou)(e);return Xt(y||e,function(r,o){y&&(r=e[o=r]),Sr(s,o,Ir(r,t,n,o,e,a))}),s}function Rr(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function Br(e,t,n){if("function"!=typeof e)throw new ot(u);return oa(function(){e.apply(i,n)},t)}function Fr(e,t,n,r){var o=-1,i=Qt,s=!0,u=e.length,l=[],c=t.length;if(!u)return l;n&&(t=Jt(t,mn(n))),r?(i=Zt,s=!1):t.length>=a&&(i=bn,s=!1,t=new xr(t));e:for(;++o<u;){var f=e[o],p=null==n?f:n(f);if(f=r||0!==f?f:0,s&&p==p){for(var d=c;d--;)if(t[d]===p)continue e;l.push(f)}else i(t,p,r)||l.push(f)}return l}dr.templateSettings={escape:Pe,evaluate:Oe,interpolate:Se,variable:"",imports:{_:dr}},dr.prototype=gr.prototype,dr.prototype.constructor=dr,vr.prototype=hr(gr.prototype),vr.prototype.constructor=vr,mr.prototype=hr(gr.prototype),mr.prototype.constructor=mr,yr.prototype.clear=function(){this.__data__=nr?nr(null):{},this.size=0},yr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},yr.prototype.get=function(e){var t=this.__data__;if(nr){var n=t[e];return n===l?i:n}return ct.call(t,e)?t[e]:i},yr.prototype.has=function(e){var t=this.__data__;return nr?t[e]!==i:ct.call(t,e)},yr.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nr&&t===i?l:t,this},br.prototype.clear=function(){this.__data__=[],this.size=0},br.prototype.delete=function(e){var t=this.__data__,n=Nr(t,e);return!(n<0||(n==t.length-1?t.pop():It.call(t,n,1),--this.size,0))},br.prototype.get=function(e){var t=this.__data__,n=Nr(t,e);return n<0?i:t[n][1]},br.prototype.has=function(e){return Nr(this.__data__,e)>-1},br.prototype.set=function(e,t){var n=this.__data__,r=Nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},_r.prototype.clear=function(){this.size=0,this.__data__={hash:new yr,map:new(Zn||br),string:new yr}},_r.prototype.delete=function(e){var t=Bi(this,e).delete(e);return this.size-=t?1:0,t},_r.prototype.get=function(e){return Bi(this,e).get(e)},_r.prototype.has=function(e){return Bi(this,e).has(e)},_r.prototype.set=function(e,t){var n=Bi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},xr.prototype.add=xr.prototype.push=function(e){return this.__data__.set(e,l),this},xr.prototype.has=function(e){return this.__data__.has(e)},wr.prototype.clear=function(){this.__data__=new br,this.size=0},wr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},wr.prototype.get=function(e){return this.__data__.get(e)},wr.prototype.has=function(e){return this.__data__.has(e)},wr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!Zn||r.length<a-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new _r(r)}return n.set(e,t),this.size=n.size,this};var Dr=si(Xr),zr=si(Hr,!0);function Ur(e,t){var n=!0;return Dr(e,function(e,r,o){return n=!!t(e,r,o)}),n}function Wr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(u===i?s==s&&!Is(s):n(s,u)))var u=s,l=a}return l}function Vr(e,t){var n=[];return Dr(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function Gr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Yi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?Gr(s,t-1,n,r,o):en(o,s):r||(o[o.length]=s)}return o}var Yr=ui(),qr=ui(!0);function Xr(e,t){return e&&Yr(e,t,ou)}function Hr(e,t){return e&&qr(e,t,ou)}function Kr(e,t){return $t(t,function(t){return Es(e[t])})}function $r(e,t){for(var n=0,r=(t=Xo(t,e)).length;null!=e&&n<r;)e=e[ca(t[n++])];return n&&n==r?e:i}function Qr(e,t,n){var r=t(e);return ms(e)?r:en(r,n(e))}function Zr(e){return null==e?e===i?ie:Z:on&&on in tt(e)?function(e){var t=ct.call(e,on),n=e[on];try{e[on]=i;var r=!0}catch(e){}var o=dt.call(e);return r&&(t?e[on]=n:delete e[on]),o}(e):function(e){return dt.call(e)}(e)}function Jr(e,t){return e>t}function eo(e,t){return null!=e&&ct.call(e,t)}function to(e,t){return null!=e&&t in tt(e)}function no(e,t,n){for(var o=n?Zt:Qt,a=e[0].length,s=e.length,u=s,l=r(s),c=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Jt(p,mn(t))),c=qn(p.length,c),l[u]=!n&&(t||a>=120&&p.length>=120)?new xr(u&&p):i}p=e[0];var d=-1,h=l[0];e:for(;++d<a&&f.length<c;){var g=p[d],v=t?t(g):g;if(g=n||0!==g?g:0,!(h?bn(h,v):o(f,v,n))){for(u=s;--u;){var m=l[u];if(!(m?bn(m,v):o(e[u],v,n)))continue e}h&&h.push(v),f.push(g)}}return f}function ro(e,t,n){var r=null==(e=ta(e,t=Xo(t,e)))?e:e[ca(ka(t))];return null==r?i:Yt(r,e,n)}function oo(e){return Ss(e)&&Zr(e)==U}function io(e,t,n,r,o){return e===t||(null==e||null==t||!Ss(e)&&!Ss(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var s=ms(e),u=ms(t),l=s?W:Wi(e),c=u?W:Wi(t),f=(l=l==U?J:l)==J,p=(c=c==U?J:c)==J,d=l==c;if(d&&xs(e)){if(!xs(t))return!1;s=!0,f=!1}if(d&&!f)return a||(a=new wr),s||Rs(e)?Ni(e,t,n,r,o,a):function(e,t,n,r,o,i,a){switch(n){case le:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ue:return!(e.byteLength!=t.byteLength||!i(new wt(e),new wt(t)));case G:case Y:case Q:return ds(+e,+t);case X:return e.name==t.name&&e.message==t.message;case te:case re:return e==t+"";case $:var s=Pn;case ne:var u=r&g;if(s||(s=Nn),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=v,a.set(e,t);var c=Ni(s(e),s(t),r,o,i,a);return a.delete(e),c;case oe:if(fr)return fr.call(e)==fr.call(t)}return!1}(e,t,l,n,r,o,a);if(!(n&g)){var h=f&&ct.call(e,"__wrapped__"),m=p&&ct.call(t,"__wrapped__");if(h||m){var y=h?e.value():e,b=m?t.value():t;return a||(a=new wr),o(y,b,n,r,a)}}return!!d&&(a||(a=new wr),function(e,t,n,r,o,a){var s=n&g,u=Ai(e),l=u.length,c=Ai(t).length;if(l!=c&&!s)return!1;for(var f=l;f--;){var p=u[f];if(!(s?p in t:ct.call(t,p)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var h=!0;a.set(e,t),a.set(t,e);for(var v=s;++f<l;){p=u[f];var m=e[p],y=t[p];if(r)var b=s?r(y,m,p,t,e,a):r(m,y,p,e,t,a);if(!(b===i?m===y||o(m,y,n,r,a):b)){h=!1;break}v||(v="constructor"==p)}if(h&&!v){var _=e.constructor,x=t.constructor;_!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x)&&(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,o,a))}(e,t,n,r,io,o))}function ao(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=tt(e);o--;){var u=n[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var l=(u=n[o])[0],c=e[l],f=u[1];if(s&&u[2]){if(c===i&&!(l in e))return!1}else{var p=new wr;if(r)var d=r(c,f,l,e,t,p);if(!(d===i?io(f,c,g|v,r,p):d))return!1}}return!0}function so(e){return!(!Os(e)||(t=e,pt&&pt in t))&&(Es(e)?vt:qe).test(fa(e));var t}function uo(e){return"function"==typeof e?e:null==e?Tu:"object"==typeof e?ms(e)?go(e[0],e[1]):ho(e):Du(e)}function lo(e){if(!Qi(e))return Gn(e);var t=[];for(var n in tt(e))ct.call(e,n)&&"constructor"!=n&&t.push(n);return t}function co(e){if(!Os(e))return function(e){var t=[];if(null!=e)for(var n in tt(e))t.push(n);return t}(e);var t=Qi(e),n=[];for(var r in e)("constructor"!=r||!t&&ct.call(e,r))&&n.push(r);return n}function fo(e,t){return e<t}function po(e,t){var n=-1,o=bs(e)?r(e.length):[];return Dr(e,function(e,r,i){o[++n]=t(e,r,i)}),o}function ho(e){var t=Fi(e);return 1==t.length&&t[0][2]?Ji(t[0][0],t[0][1]):function(n){return n===e||ao(n,e,t)}}function go(e,t){return Hi(e)&&Zi(t)?Ji(ca(e),t):function(n){var r=Js(n,e);return r===i&&r===t?eu(n,e):io(t,r,g|v)}}function vo(e,t,n,r,o){e!==t&&Yr(t,function(a,s){if(o||(o=new wr),Os(a))!function(e,t,n,r,o,a,s){var u=na(e,n),l=na(t,n),c=s.get(l);if(c)Or(e,n,c);else{var f=a?a(u,l,n+"",e,t,s):i,p=f===i;if(p){var d=ms(l),h=!d&&xs(l),g=!d&&!h&&Rs(l);f=l,d||h||g?ms(u)?f=u:_s(u)?f=ri(u):h?(p=!1,f=Qo(l,!0)):g?(p=!1,f=Jo(l,!0)):f=[]:As(l)||vs(l)?(f=u,vs(u)?f=Gs(u):Os(u)&&!Es(u)||(f=Gi(l))):p=!1}p&&(s.set(l,f),o(f,l,r,a,s),s.delete(l)),Or(e,n,f)}}(e,t,s,n,vo,r,o);else{var u=r?r(na(e,s),a,s+"",e,t,o):i;u===i&&(u=a),Or(e,s,u)}},iu)}function mo(e,t){var n=e.length;if(n)return qi(t+=t<0?n:0,n)?e[t]:i}function yo(e,t,n){var r=-1;return t=Jt(t.length?t:[Tu],mn(Ri())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(po(e,function(e,n,o){return{criteria:Jt(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var u=ei(o[r],i[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)})}function bo(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=$r(e,a);n(s,a)&&Oo(i,Xo(a,e),s)}return i}function _o(e,t,n,r){var o=r?ln:un,i=-1,a=t.length,s=e;for(e===t&&(t=ri(t)),n&&(s=Jt(e,mn(n)));++i<a;)for(var u=0,l=t[i],c=n?n(l):l;(u=o(s,c,u,r))>-1;)s!==e&&It.call(s,u,1),It.call(e,u,1);return e}function xo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;qi(o)?It.call(e,o,1):Do(e,o)}}return e}function wo(e,t){return e+Dn(Kn()*(t-e+1))}function ko(e,t){var n="";if(!e||t<1||t>j)return n;do{t%2&&(n+=e),(t=Dn(t/2))&&(e+=e)}while(t);return n}function Eo(e,t){return ia(ea(e,t,Tu),e+"")}function Co(e){return Er(du(e))}function Po(e,t){var n=du(e);return ua(n,jr(t,0,n.length))}function Oo(e,t,n,r){if(!Os(e))return e;for(var o=-1,a=(t=Xo(t,e)).length,s=a-1,u=e;null!=u&&++o<a;){var l=ca(t[o]),c=n;if(o!=s){var f=u[l];(c=r?r(f,l,u):i)===i&&(c=Os(f)?f:qi(t[o+1])?[]:{})}Sr(u,l,c),u=u[l]}return e}var So=rr?function(e,t){return rr.set(e,t),e}:Tu,No=dn?function(e,t){return dn(e,"toString",{configurable:!0,enumerable:!1,value:Ou(t),writable:!0})}:Tu;function To(e){return ua(du(e))}function Ao(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function Mo(e,t){var n;return Dr(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function Lo(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=D){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!Is(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return jo(e,t,Tu,n)}function jo(e,t,n,r){t=n(t);for(var o=0,a=null==e?0:e.length,s=t!=t,u=null===t,l=Is(t),c=t===i;o<a;){var f=Dn((o+a)/2),p=n(e[f]),d=p!==i,h=null===p,g=p==p,v=Is(p);if(s)var m=r||g;else m=c?g&&(r||d):u?g&&d&&(r||!h):l?g&&d&&!h&&(r||!v):!h&&!v&&(r?p<=t:p<t);m?o=f+1:a=f}return qn(a,F)}function Io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!ds(s,u)){var u=s;i[o++]=0===a?0:a}}return i}function Ro(e){return"number"==typeof e?e:Is(e)?R:+e}function Bo(e){if("string"==typeof e)return e;if(ms(e))return Jt(e,Bo)+"";if(Is(e))return pr?pr.call(e):"";var t=e+"";return"0"==t&&1/e==-L?"-0":t}function Fo(e,t,n){var r=-1,o=Qt,i=e.length,s=!0,u=[],l=u;if(n)s=!1,o=Zt;else if(i>=a){var c=t?null:ki(e);if(c)return Nn(c);s=!1,o=bn,l=new xr}else l=t?[]:u;e:for(;++r<i;){var f=e[r],p=t?t(f):f;if(f=n||0!==f?f:0,s&&p==p){for(var d=l.length;d--;)if(l[d]===p)continue e;t&&l.push(p),u.push(f)}else o(l,p,n)||(l!==u&&l.push(p),u.push(f))}return u}function Do(e,t){return null==(e=ta(e,t=Xo(t,e)))||delete e[ca(ka(t))]}function zo(e,t,n,r){return Oo(e,t,n($r(e,t)),r)}function Uo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Ao(e,r?0:i,r?i+1:o):Ao(e,r?i+1:0,r?o:i)}function Wo(e,t){var n=e;return n instanceof mr&&(n=n.value()),tn(t,function(e,t){return t.func.apply(t.thisArg,en([e],t.args))},n)}function Vo(e,t,n){var o=e.length;if(o<2)return o?Fo(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],u=-1;++u<o;)u!=i&&(a[i]=Fr(a[i]||s,e[u],t,n));return Fo(Gr(a,1),t,n)}function Go(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var u=r<a?t[r]:i;n(s,e[r],u)}return s}function Yo(e){return _s(e)?e:[]}function qo(e){return"function"==typeof e?e:Tu}function Xo(e,t){return ms(e)?e:Hi(e,t)?[e]:la(Ys(e))}var Ho=Eo;function Ko(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:Ao(e,t,n)}var $o=In||function(e){return Lt.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var n=e.length,r=St?St(n):new e.constructor(n);return e.copy(r),r}function Zo(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function Jo(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ei(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=Is(e),s=t!==i,u=null===t,l=t==t,c=Is(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!o)return 1;if(!r&&!a&&!c&&e<t||c&&n&&o&&!r&&!a||u&&n&&o||!s&&o||!l)return-1}return 0}function ti(e,t,n,o){for(var i=-1,a=e.length,s=n.length,u=-1,l=t.length,c=Yn(a-s,0),f=r(l+c),p=!o;++u<l;)f[u]=t[u];for(;++i<s;)(p||i<a)&&(f[n[i]]=e[i]);for(;c--;)f[u++]=e[i++];return f}function ni(e,t,n,o){for(var i=-1,a=e.length,s=-1,u=n.length,l=-1,c=t.length,f=Yn(a-u,0),p=r(f+c),d=!o;++i<f;)p[i]=e[i];for(var h=i;++l<c;)p[h+l]=t[l];for(;++s<u;)(d||i<a)&&(p[h+n[s]]=e[i++]);return p}function ri(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function oi(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],l=r?r(n[u],e[u],u,n,e):i;l===i&&(l=e[u]),o?Mr(n,u,l):Sr(n,u,l)}return n}function ii(e,t){return function(n,r){var o=ms(n)?qt:Tr,i=t?t():{};return o(n,e,Ri(r,2),i)}}function ai(e){return Eo(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&Xi(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=tt(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t})}function si(e,t){return function(n,r){if(null==n)return n;if(!bs(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=tt(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function ui(e){return function(t,n,r){for(var o=-1,i=tt(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}function li(e){return function(t){var n=Cn(t=Ys(t))?Mn(t):i,r=n?n[0]:t.charAt(0),o=n?Ko(n,1).join(""):t.slice(1);return r[e]()+o}}function ci(e){return function(t){return tn(Eu(vu(t).replace(yt,"")),e,"")}}function fi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=hr(e.prototype),r=e.apply(n,t);return Os(r)?r:n}}function pi(e){return function(t,n,r){var o=tt(t);if(!bs(t)){var a=Ri(n,3);t=ou(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function di(e){return Ti(function(t){var n=t.length,r=n,o=vr.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ot(u);if(o&&!s&&"wrapper"==ji(a))var s=new vr([],!0)}for(r=s?r:n;++r<n;){var l=ji(a=t[r]),c="wrapper"==l?Li(a):i;s=c&&Ki(c[0])&&c[1]==(E|_|w|C)&&!c[4].length&&1==c[9]?s[ji(c[0])].apply(s,c[3]):1==a.length&&Ki(a)?s[l]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&ms(r))return s.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}function hi(e,t,n,o,a,s,u,l,c,f){var p=t&E,d=t&m,h=t&y,g=t&(_|x),v=t&P,b=h?i:fi(e);return function m(){for(var y=arguments.length,_=r(y),x=y;x--;)_[x]=arguments[x];if(g)var w=Ii(m),k=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(_,w);if(o&&(_=ti(_,o,a,g)),s&&(_=ni(_,s,u,g)),y-=k,g&&y<f){var E=Sn(_,w);return xi(e,t,hi,m.placeholder,n,_,E,l,c,f-y)}var C=d?n:this,P=h?C[e]:e;return y=_.length,l?_=function(e,t){for(var n=e.length,r=qn(t.length,n),o=ri(e);r--;){var a=t[r];e[r]=qi(a,n)?o[a]:i}return e}(_,l):v&&y>1&&_.reverse(),p&&c<y&&(_.length=c),this&&this!==Lt&&this instanceof m&&(P=b||fi(P)),P.apply(C,_)}}function gi(e,t){return function(n,r){return function(e,t,n,r){return Xr(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}function vi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=Bo(n),r=Bo(r)):(n=Ro(n),r=Ro(r)),o=e(n,r)}return o}}function mi(e){return Ti(function(t){return t=Jt(t,mn(Ri())),Eo(function(n){var r=this;return e(t,function(e){return Yt(e,r,n)})})})}function yi(e,t){var n=(t=t===i?" ":Bo(t)).length;if(n<2)return n?ko(t,e):t;var r=ko(t,Fn(e/An(t)));return Cn(t)?Ko(Mn(r),0,e).join(""):r.slice(0,e)}function bi(e){return function(t,n,o){return o&&"number"!=typeof o&&Xi(t,n,o)&&(n=o=i),t=zs(t),n===i?(n=t,t=0):n=zs(n),function(e,t,n,o){for(var i=-1,a=Yn(Fn((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:zs(o),e)}}function _i(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Vs(t),n=Vs(n)),e(t,n)}}function xi(e,t,n,r,o,a,s,u,l,c){var f=t&_;t|=f?w:k,(t&=~(f?k:w))&b||(t&=~(m|y));var p=[e,t,o,f?a:i,f?s:i,f?i:a,f?i:s,u,l,c],d=n.apply(i,p);return Ki(e)&&ra(d,p),d.placeholder=r,aa(d,e,t)}function wi(e){var t=et[e];return function(e,n){if(e=Vs(e),(n=null==n?0:qn(Us(n),292))&&Wn(e)){var r=(Ys(e)+"e").split("e");return+((r=(Ys(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var ki=er&&1/Nn(new er([,-0]))[1]==L?function(e){return new er(e)}:Iu;function Ei(e){return function(t){var n=Wi(t);return n==$?Pn(t):n==ne?Tn(t):function(e,t){return Jt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Ci(e,t,n,o,a,s,l,c){var p=t&y;if(!p&&"function"!=typeof e)throw new ot(u);var d=o?o.length:0;if(d||(t&=~(w|k),o=a=i),l=l===i?l:Yn(Us(l),0),c=c===i?c:Us(c),d-=a?a.length:0,t&k){var h=o,g=a;o=a=i}var v=p?i:Li(e),P=[e,t,n,o,a,h,g,s,l,c];if(v&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<(m|y|E),a=r==E&&n==_||r==E&&n==C&&e[7].length<=t[8]||r==(E|C)&&t[7].length<=t[8]&&n==_;if(!i&&!a)return e;r&m&&(e[2]=t[2],o|=n&m?0:b);var s=t[3];if(s){var u=e[3];e[3]=u?ti(u,s,t[4]):s,e[4]=u?Sn(e[3],f):t[4]}(s=t[5])&&(u=e[5],e[5]=u?ni(u,s,t[6]):s,e[6]=u?Sn(e[5],f):t[6]),(s=t[7])&&(e[7]=s),r&E&&(e[8]=null==e[8]?t[8]:qn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(P,v),e=P[0],t=P[1],n=P[2],o=P[3],a=P[4],!(c=P[9]=P[9]===i?p?0:e.length:Yn(P[9]-d,0))&&t&(_|x)&&(t&=~(_|x)),t&&t!=m)O=t==_||t==x?function(e,t,n){var o=fi(e);return function a(){for(var s=arguments.length,u=r(s),l=s,c=Ii(a);l--;)u[l]=arguments[l];var f=s<3&&u[0]!==c&&u[s-1]!==c?[]:Sn(u,c);return(s-=f.length)<n?xi(e,t,hi,a.placeholder,i,u,f,i,i,n-s):Yt(this&&this!==Lt&&this instanceof a?o:e,this,u)}}(e,t,c):t!=w&&t!=(m|w)||a.length?hi.apply(i,P):function(e,t,n,o){var i=t&m,a=fi(e);return function t(){for(var s=-1,u=arguments.length,l=-1,c=o.length,f=r(c+u),p=this&&this!==Lt&&this instanceof t?a:e;++l<c;)f[l]=o[l];for(;u--;)f[l++]=arguments[++s];return Yt(p,i?n:this,f)}}(e,t,n,o);else var O=function(e,t,n){var r=t&m,o=fi(e);return function t(){return(this&&this!==Lt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return aa((v?So:ra)(O,P),e,t)}function Pi(e,t,n,r){return e===i||ds(e,st[n])&&!ct.call(r,n)?t:e}function Oi(e,t,n,r,o,a){return Os(e)&&Os(t)&&(a.set(t,e),vo(e,t,i,Oi,a),a.delete(t)),e}function Si(e){return As(e)?i:e}function Ni(e,t,n,r,o,a){var s=n&g,u=e.length,l=t.length;if(u!=l&&!(s&&l>u))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var f=-1,p=!0,d=n&v?new xr:i;for(a.set(e,t),a.set(t,e);++f<u;){var h=e[f],m=t[f];if(r)var y=s?r(m,h,f,t,e,a):r(h,m,f,e,t,a);if(y!==i){if(y)continue;p=!1;break}if(d){if(!rn(t,function(e,t){if(!bn(d,t)&&(h===e||o(h,e,n,r,a)))return d.push(t)})){p=!1;break}}else if(h!==m&&!o(h,m,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function Ti(e){return ia(ea(e,i,ya),e+"")}function Ai(e){return Qr(e,ou,zi)}function Mi(e){return Qr(e,iu,Ui)}var Li=rr?function(e){return rr.get(e)}:Iu;function ji(e){for(var t=e.name+"",n=or[t],r=ct.call(or,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Ii(e){return(ct.call(dr,"placeholder")?dr:e).placeholder}function Ri(){var e=dr.iteratee||Au;return e=e===Au?uo:e,arguments.length?e(arguments[0],arguments[1]):e}function Bi(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Fi(e){for(var t=ou(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Zi(o)]}return t}function Di(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return so(n)?n:i}var zi=zn?function(e){return null==e?[]:(e=tt(e),$t(zn(e),function(t){return jt.call(e,t)}))}:Wu,Ui=zn?function(e){for(var t=[];e;)en(t,zi(e)),e=At(e);return t}:Wu,Wi=Zr;function Vi(e,t,n){for(var r=-1,o=(t=Xo(t,e)).length,i=!1;++r<o;){var a=ca(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Ps(o)&&qi(a,o)&&(ms(e)||vs(e))}function Gi(e){return"function"!=typeof e.constructor||Qi(e)?{}:hr(At(e))}function Yi(e){return ms(e)||vs(e)||!!(Bt&&e&&e[Bt])}function qi(e,t){var n=typeof e;return!!(t=null==t?j:t)&&("number"==n||"symbol"!=n&&He.test(e))&&e>-1&&e%1==0&&e<t}function Xi(e,t,n){if(!Os(n))return!1;var r=typeof t;return!!("number"==r?bs(n)&&qi(t,n.length):"string"==r&&t in n)&&ds(n[t],e)}function Hi(e,t){if(ms(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Is(e))||Te.test(e)||!Ne.test(e)||null!=t&&e in tt(t)}function Ki(e){var t=ji(e),n=dr[t];if("function"!=typeof n||!(t in mr.prototype))return!1;if(e===n)return!0;var r=Li(n);return!!r&&e===r[0]}(Qn&&Wi(new Qn(new ArrayBuffer(1)))!=le||Zn&&Wi(new Zn)!=$||Jn&&"[object Promise]"!=Wi(Jn.resolve())||er&&Wi(new er)!=ne||tr&&Wi(new tr)!=ae)&&(Wi=function(e){var t=Zr(e),n=t==J?e.constructor:i,r=n?fa(n):"";if(r)switch(r){case ir:return le;case ar:return $;case sr:return"[object Promise]";case ur:return ne;case lr:return ae}return t});var $i=ut?Es:Vu;function Qi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||st)}function Zi(e){return e==e&&!Os(e)}function Ji(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in tt(n))}}function ea(e,t,n){return t=Yn(t===i?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=Yn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var u=r(t+1);++i<t;)u[i]=o[i];return u[t]=n(s),Yt(e,this,u)}}function ta(e,t){return t.length<2?e:$r(e,Ao(t,0,-1))}function na(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ra=sa(So),oa=Bn||function(e,t){return Lt.setTimeout(e,t)},ia=sa(No);function aa(e,t,n){var r=t+"";return ia(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Be,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Xt(z,function(n){var r="_."+n[0];t&n[1]&&!Qt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Fe);return t?t[1].split(De):[]}(r),n)))}function sa(e){var t=0,n=0;return function(){var r=Xn(),o=T-(r-n);if(n=r,o>0){if(++t>=N)return arguments[0]}else t=0;return e.apply(i,arguments)}}function ua(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=wo(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var la=function(e){var t=ss(e,function(e){return n.size===c&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ae,function(e,n,r,o){t.push(r?o.replace(Ue,"$1"):n||e)}),t});function ca(e){if("string"==typeof e||Is(e))return e;var t=e+"";return"0"==t&&1/e==-L?"-0":t}function fa(e){if(null!=e){try{return lt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function pa(e){if(e instanceof mr)return e.clone();var t=new vr(e.__wrapped__,e.__chain__);return t.__actions__=ri(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var da=Eo(function(e,t){return _s(e)?Fr(e,Gr(t,1,_s,!0)):[]}),ha=Eo(function(e,t){var n=ka(t);return _s(n)&&(n=i),_s(e)?Fr(e,Gr(t,1,_s,!0),Ri(n,2)):[]}),ga=Eo(function(e,t){var n=ka(t);return _s(n)&&(n=i),_s(e)?Fr(e,Gr(t,1,_s,!0),i,n):[]});function va(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Us(n);return o<0&&(o=Yn(r+o,0)),sn(e,Ri(t,3),o)}function ma(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=Us(n),o=n<0?Yn(r+o,0):qn(o,r-1)),sn(e,Ri(t,3),o,!0)}function ya(e){return null!=e&&e.length?Gr(e,1):[]}function ba(e){return e&&e.length?e[0]:i}var _a=Eo(function(e){var t=Jt(e,Yo);return t.length&&t[0]===e[0]?no(t):[]}),xa=Eo(function(e){var t=ka(e),n=Jt(e,Yo);return t===ka(n)?t=i:n.pop(),n.length&&n[0]===e[0]?no(n,Ri(t,2)):[]}),wa=Eo(function(e){var t=ka(e),n=Jt(e,Yo);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?no(n,i,t):[]});function ka(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Ea=Eo(Ca);function Ca(e,t){return e&&e.length&&t&&t.length?_o(e,t):e}var Pa=Ti(function(e,t){var n=null==e?0:e.length,r=Lr(e,t);return xo(e,Jt(t,function(e){return qi(e,n)?+e:e}).sort(ei)),r});function Oa(e){return null==e?e:$n.call(e)}var Sa=Eo(function(e){return Fo(Gr(e,1,_s,!0))}),Na=Eo(function(e){var t=ka(e);return _s(t)&&(t=i),Fo(Gr(e,1,_s,!0),Ri(t,2))}),Ta=Eo(function(e){var t=ka(e);return t="function"==typeof t?t:i,Fo(Gr(e,1,_s,!0),i,t)});function Aa(e){if(!e||!e.length)return[];var t=0;return e=$t(e,function(e){if(_s(e))return t=Yn(e.length,t),!0}),vn(t,function(t){return Jt(e,pn(t))})}function Ma(e,t){if(!e||!e.length)return[];var n=Aa(e);return null==t?n:Jt(n,function(e){return Yt(t,i,e)})}var La=Eo(function(e,t){return _s(e)?Fr(e,t):[]}),ja=Eo(function(e){return Vo($t(e,_s))}),Ia=Eo(function(e){var t=ka(e);return _s(t)&&(t=i),Vo($t(e,_s),Ri(t,2))}),Ra=Eo(function(e){var t=ka(e);return t="function"==typeof t?t:i,Vo($t(e,_s),i,t)}),Ba=Eo(Aa);var Fa=Eo(function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,Ma(e,n)});function Da(e){var t=dr(e);return t.__chain__=!0,t}function za(e,t){return t(e)}var Ua=Ti(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Lr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof mr&&qi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:za,args:[o],thisArg:i}),new vr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var Wa=ii(function(e,t,n){ct.call(e,n)?++e[n]:Mr(e,n,1)});var Va=pi(va),Ga=pi(ma);function Ya(e,t){return(ms(e)?Xt:Dr)(e,Ri(t,3))}function qa(e,t){return(ms(e)?Ht:zr)(e,Ri(t,3))}var Xa=ii(function(e,t,n){ct.call(e,n)?e[n].push(t):Mr(e,n,[t])});var Ha=Eo(function(e,t,n){var o=-1,i="function"==typeof t,a=bs(e)?r(e.length):[];return Dr(e,function(e){a[++o]=i?Yt(t,e,n):ro(e,t,n)}),a}),Ka=ii(function(e,t,n){Mr(e,n,t)});function $a(e,t){return(ms(e)?Jt:po)(e,Ri(t,3))}var Qa=ii(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Za=Eo(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Xi(e,t[0],t[1])?t=[]:n>2&&Xi(t[0],t[1],t[2])&&(t=[t[0]]),yo(e,Gr(t,1),[])}),Ja=Rn||function(){return Lt.Date.now()};function es(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ci(e,E,i,i,i,i,t)}function ts(e,t){var n;if("function"!=typeof t)throw new ot(u);return e=Us(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ns=Eo(function(e,t,n){var r=m;if(n.length){var o=Sn(n,Ii(ns));r|=w}return Ci(e,r,t,n,o)}),rs=Eo(function(e,t,n){var r=m|y;if(n.length){var o=Sn(n,Ii(rs));r|=w}return Ci(t,r,e,n,o)});function os(e,t,n){var r,o,a,s,l,c,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new ot(u);function g(t){var n=r,a=o;return r=o=i,f=t,s=e.apply(a,n)}function v(e){var n=e-c;return c===i||n>=t||n<0||d&&e-f>=a}function m(){var e=Ja();if(v(e))return y(e);l=oa(m,function(e){var n=t-(e-c);return d?qn(n,a-(e-f)):n}(e))}function y(e){return l=i,h&&r?g(e):(r=o=i,s)}function b(){var e=Ja(),n=v(e);if(r=arguments,o=this,c=e,n){if(l===i)return function(e){return f=e,l=oa(m,t),p?g(e):s}(c);if(d)return $o(l),l=oa(m,t),g(c)}return l===i&&(l=oa(m,t)),s}return t=Vs(t)||0,Os(n)&&(p=!!n.leading,a=(d="maxWait"in n)?Yn(Vs(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),b.cancel=function(){l!==i&&$o(l),f=0,r=c=o=l=i},b.flush=function(){return l===i?s:y(Ja())},b}var is=Eo(function(e,t){return Br(e,1,t)}),as=Eo(function(e,t,n){return Br(e,Vs(t)||0,n)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(u);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ss.Cache||_r),n}function us(e){if("function"!=typeof e)throw new ot(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ss.Cache=_r;var ls=Ho(function(e,t){var n=(t=1==t.length&&ms(t[0])?Jt(t[0],mn(Ri())):Jt(Gr(t,1),mn(Ri()))).length;return Eo(function(r){for(var o=-1,i=qn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Yt(e,this,r)})}),cs=Eo(function(e,t){var n=Sn(t,Ii(cs));return Ci(e,w,i,t,n)}),fs=Eo(function(e,t){var n=Sn(t,Ii(fs));return Ci(e,k,i,t,n)}),ps=Ti(function(e,t){return Ci(e,C,i,i,i,t)});function ds(e,t){return e===t||e!=e&&t!=t}var hs=_i(Jr),gs=_i(function(e,t){return e>=t}),vs=oo(function(){return arguments}())?oo:function(e){return Ss(e)&&ct.call(e,"callee")&&!jt.call(e,"callee")},ms=r.isArray,ys=Dt?mn(Dt):function(e){return Ss(e)&&Zr(e)==ue};function bs(e){return null!=e&&Ps(e.length)&&!Es(e)}function _s(e){return Ss(e)&&bs(e)}var xs=Un||Vu,ws=zt?mn(zt):function(e){return Ss(e)&&Zr(e)==Y};function ks(e){if(!Ss(e))return!1;var t=Zr(e);return t==X||t==q||"string"==typeof e.message&&"string"==typeof e.name&&!As(e)}function Es(e){if(!Os(e))return!1;var t=Zr(e);return t==H||t==K||t==V||t==ee}function Cs(e){return"number"==typeof e&&e==Us(e)}function Ps(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=j}function Os(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ss(e){return null!=e&&"object"==typeof e}var Ns=Ut?mn(Ut):function(e){return Ss(e)&&Wi(e)==$};function Ts(e){return"number"==typeof e||Ss(e)&&Zr(e)==Q}function As(e){if(!Ss(e)||Zr(e)!=J)return!1;var t=At(e);if(null===t)return!0;var n=ct.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&lt.call(n)==ht}var Ms=Wt?mn(Wt):function(e){return Ss(e)&&Zr(e)==te};var Ls=Vt?mn(Vt):function(e){return Ss(e)&&Wi(e)==ne};function js(e){return"string"==typeof e||!ms(e)&&Ss(e)&&Zr(e)==re}function Is(e){return"symbol"==typeof e||Ss(e)&&Zr(e)==oe}var Rs=Gt?mn(Gt):function(e){return Ss(e)&&Ps(e.length)&&!!Pt[Zr(e)]};var Bs=_i(fo),Fs=_i(function(e,t){return e<=t});function Ds(e){if(!e)return[];if(bs(e))return js(e)?Mn(e):ri(e);if(Ft&&e[Ft])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ft]());var t=Wi(e);return(t==$?Pn:t==ne?Nn:du)(e)}function zs(e){return e?(e=Vs(e))===L||e===-L?(e<0?-1:1)*I:e==e?e:0:0===e?e:0}function Us(e){var t=zs(e),n=t%1;return t==t?n?t-n:t:0}function Ws(e){return e?jr(Us(e),0,B):0}function Vs(e){if("number"==typeof e)return e;if(Is(e))return R;if(Os(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Os(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(je,"");var n=Ye.test(e);return n||Xe.test(e)?Tt(e.slice(2),n?2:8):Ge.test(e)?R:+e}function Gs(e){return oi(e,iu(e))}function Ys(e){return null==e?"":Bo(e)}var qs=ai(function(e,t){if(Qi(t)||bs(t))oi(t,ou(t),e);else for(var n in t)ct.call(t,n)&&Sr(e,n,t[n])}),Xs=ai(function(e,t){oi(t,iu(t),e)}),Hs=ai(function(e,t,n,r){oi(t,iu(t),e,r)}),Ks=ai(function(e,t,n,r){oi(t,ou(t),e,r)}),$s=Ti(Lr);var Qs=Eo(function(e,t){e=tt(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Xi(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=iu(a),u=-1,l=s.length;++u<l;){var c=s[u],f=e[c];(f===i||ds(f,st[c])&&!ct.call(e,c))&&(e[c]=a[c])}return e}),Zs=Eo(function(e){return e.push(i,Oi),Yt(su,i,e)});function Js(e,t,n){var r=null==e?i:$r(e,t);return r===i?n:r}function eu(e,t){return null!=e&&Vi(e,t,to)}var tu=gi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=dt.call(t)),e[t]=n},Ou(Tu)),nu=gi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=dt.call(t)),ct.call(e,t)?e[t].push(n):e[t]=[n]},Ri),ru=Eo(ro);function ou(e){return bs(e)?kr(e):lo(e)}function iu(e){return bs(e)?kr(e,!0):co(e)}var au=ai(function(e,t,n){vo(e,t,n)}),su=ai(function(e,t,n,r){vo(e,t,n,r)}),uu=Ti(function(e,t){var n={};if(null==e)return n;var r=!1;t=Jt(t,function(t){return t=Xo(t,e),r||(r=t.length>1),t}),oi(e,Mi(e),n),r&&(n=Ir(n,p|d|h,Si));for(var o=t.length;o--;)Do(n,t[o]);return n});var lu=Ti(function(e,t){return null==e?{}:function(e,t){return bo(e,t,function(t,n){return eu(e,n)})}(e,t)});function cu(e,t){if(null==e)return{};var n=Jt(Mi(e),function(e){return[e]});return t=Ri(t),bo(e,n,function(e,n){return t(e,n[0])})}var fu=Ei(ou),pu=Ei(iu);function du(e){return null==e?[]:yn(e,ou(e))}var hu=ci(function(e,t,n){return t=t.toLowerCase(),e+(n?gu(t):t)});function gu(e){return ku(Ys(e).toLowerCase())}function vu(e){return(e=Ys(e))&&e.replace(Ke,wn).replace(bt,"")}var mu=ci(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),yu=ci(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bu=li("toLowerCase");var _u=ci(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var xu=ci(function(e,t,n){return e+(n?" ":"")+ku(t)});var wu=ci(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ku=li("toUpperCase");function Eu(e,t,n){return e=Ys(e),(t=n?i:t)===i?function(e){return kt.test(e)}(e)?function(e){return e.match(xt)||[]}(e):function(e){return e.match(ze)||[]}(e):e.match(t)||[]}var Cu=Eo(function(e,t){try{return Yt(e,i,t)}catch(e){return ks(e)?e:new Ze(e)}}),Pu=Ti(function(e,t){return Xt(t,function(t){t=ca(t),Mr(e,t,ns(e[t],e))}),e});function Ou(e){return function(){return e}}var Su=di(),Nu=di(!0);function Tu(e){return e}function Au(e){return uo("function"==typeof e?e:Ir(e,p))}var Mu=Eo(function(e,t){return function(n){return ro(n,e,t)}}),Lu=Eo(function(e,t){return function(n){return ro(e,n,t)}});function ju(e,t,n){var r=ou(t),o=Kr(t,r);null!=n||Os(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Kr(t,ou(t)));var i=!(Os(n)&&"chain"in n&&!n.chain),a=Es(e);return Xt(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=ri(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Iu(){}var Ru=mi(Jt),Bu=mi(Kt),Fu=mi(rn);function Du(e){return Hi(e)?pn(ca(e)):function(e){return function(t){return $r(t,e)}}(e)}var zu=bi(),Uu=bi(!0);function Wu(){return[]}function Vu(){return!1}var Gu=vi(function(e,t){return e+t},0),Yu=wi("ceil"),qu=vi(function(e,t){return e/t},1),Xu=wi("floor");var Hu,Ku=vi(function(e,t){return e*t},1),$u=wi("round"),Qu=vi(function(e,t){return e-t},0);return dr.after=function(e,t){if("function"!=typeof t)throw new ot(u);return e=Us(e),function(){if(--e<1)return t.apply(this,arguments)}},dr.ary=es,dr.assign=qs,dr.assignIn=Xs,dr.assignInWith=Hs,dr.assignWith=Ks,dr.at=$s,dr.before=ts,dr.bind=ns,dr.bindAll=Pu,dr.bindKey=rs,dr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ms(e)?e:[e]},dr.chain=Da,dr.chunk=function(e,t,n){t=(n?Xi(e,t,n):t===i)?1:Yn(Us(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=r(Fn(o/t));a<o;)u[s++]=Ao(e,a,a+=t);return u},dr.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},dr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return en(ms(n)?ri(n):[n],Gr(t,1))},dr.cond=function(e){var t=null==e?0:e.length,n=Ri();return e=t?Jt(e,function(e){if("function"!=typeof e[1])throw new ot(u);return[n(e[0]),e[1]]}):[],Eo(function(n){for(var r=-1;++r<t;){var o=e[r];if(Yt(o[0],this,n))return Yt(o[1],this,n)}})},dr.conforms=function(e){return function(e){var t=ou(e);return function(n){return Rr(n,e,t)}}(Ir(e,p))},dr.constant=Ou,dr.countBy=Wa,dr.create=function(e,t){var n=hr(e);return null==t?n:Ar(n,t)},dr.curry=function e(t,n,r){var o=Ci(t,_,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},dr.curryRight=function e(t,n,r){var o=Ci(t,x,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},dr.debounce=os,dr.defaults=Qs,dr.defaultsDeep=Zs,dr.defer=is,dr.delay=as,dr.difference=da,dr.differenceBy=ha,dr.differenceWith=ga,dr.drop=function(e,t,n){var r=null==e?0:e.length;return r?Ao(e,(t=n||t===i?1:Us(t))<0?0:t,r):[]},dr.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Ao(e,0,(t=r-(t=n||t===i?1:Us(t)))<0?0:t):[]},dr.dropRightWhile=function(e,t){return e&&e.length?Uo(e,Ri(t,3),!0,!0):[]},dr.dropWhile=function(e,t){return e&&e.length?Uo(e,Ri(t,3),!0):[]},dr.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Xi(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Us(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:Us(r))<0&&(r+=o),r=n>r?0:Ws(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},dr.filter=function(e,t){return(ms(e)?$t:Vr)(e,Ri(t,3))},dr.flatMap=function(e,t){return Gr($a(e,t),1)},dr.flatMapDeep=function(e,t){return Gr($a(e,t),L)},dr.flatMapDepth=function(e,t,n){return n=n===i?1:Us(n),Gr($a(e,t),n)},dr.flatten=ya,dr.flattenDeep=function(e){return null!=e&&e.length?Gr(e,L):[]},dr.flattenDepth=function(e,t){return null!=e&&e.length?Gr(e,t=t===i?1:Us(t)):[]},dr.flip=function(e){return Ci(e,P)},dr.flow=Su,dr.flowRight=Nu,dr.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},dr.functions=function(e){return null==e?[]:Kr(e,ou(e))},dr.functionsIn=function(e){return null==e?[]:Kr(e,iu(e))},dr.groupBy=Xa,dr.initial=function(e){return null!=e&&e.length?Ao(e,0,-1):[]},dr.intersection=_a,dr.intersectionBy=xa,dr.intersectionWith=wa,dr.invert=tu,dr.invertBy=nu,dr.invokeMap=Ha,dr.iteratee=Au,dr.keyBy=Ka,dr.keys=ou,dr.keysIn=iu,dr.map=$a,dr.mapKeys=function(e,t){var n={};return t=Ri(t,3),Xr(e,function(e,r,o){Mr(n,t(e,r,o),e)}),n},dr.mapValues=function(e,t){var n={};return t=Ri(t,3),Xr(e,function(e,r,o){Mr(n,r,t(e,r,o))}),n},dr.matches=function(e){return ho(Ir(e,p))},dr.matchesProperty=function(e,t){return go(e,Ir(t,p))},dr.memoize=ss,dr.merge=au,dr.mergeWith=su,dr.method=Mu,dr.methodOf=Lu,dr.mixin=ju,dr.negate=us,dr.nthArg=function(e){return e=Us(e),Eo(function(t){return mo(t,e)})},dr.omit=uu,dr.omitBy=function(e,t){return cu(e,us(Ri(t)))},dr.once=function(e){return ts(2,e)},dr.orderBy=function(e,t,n,r){return null==e?[]:(ms(t)||(t=null==t?[]:[t]),ms(n=r?i:n)||(n=null==n?[]:[n]),yo(e,t,n))},dr.over=Ru,dr.overArgs=ls,dr.overEvery=Bu,dr.overSome=Fu,dr.partial=cs,dr.partialRight=fs,dr.partition=Qa,dr.pick=lu,dr.pickBy=cu,dr.property=Du,dr.propertyOf=function(e){return function(t){return null==e?i:$r(e,t)}},dr.pull=Ea,dr.pullAll=Ca,dr.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?_o(e,t,Ri(n,2)):e},dr.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?_o(e,t,i,n):e},dr.pullAt=Pa,dr.range=zu,dr.rangeRight=Uu,dr.rearg=ps,dr.reject=function(e,t){return(ms(e)?$t:Vr)(e,us(Ri(t,3)))},dr.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Ri(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return xo(e,o),n},dr.rest=function(e,t){if("function"!=typeof e)throw new ot(u);return Eo(e,t=t===i?t:Us(t))},dr.reverse=Oa,dr.sampleSize=function(e,t,n){return t=(n?Xi(e,t,n):t===i)?1:Us(t),(ms(e)?Cr:Po)(e,t)},dr.set=function(e,t,n){return null==e?e:Oo(e,t,n)},dr.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Oo(e,t,n,r)},dr.shuffle=function(e){return(ms(e)?Pr:To)(e)},dr.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Xi(e,t,n)?(t=0,n=r):(t=null==t?0:Us(t),n=n===i?r:Us(n)),Ao(e,t,n)):[]},dr.sortBy=Za,dr.sortedUniq=function(e){return e&&e.length?Io(e):[]},dr.sortedUniqBy=function(e,t){return e&&e.length?Io(e,Ri(t,2)):[]},dr.split=function(e,t,n){return n&&"number"!=typeof n&&Xi(e,t,n)&&(t=n=i),(n=n===i?B:n>>>0)?(e=Ys(e))&&("string"==typeof t||null!=t&&!Ms(t))&&!(t=Bo(t))&&Cn(e)?Ko(Mn(e),0,n):e.split(t,n):[]},dr.spread=function(e,t){if("function"!=typeof e)throw new ot(u);return t=null==t?0:Yn(Us(t),0),Eo(function(n){var r=n[t],o=Ko(n,0,t);return r&&en(o,r),Yt(e,this,o)})},dr.tail=function(e){var t=null==e?0:e.length;return t?Ao(e,1,t):[]},dr.take=function(e,t,n){return e&&e.length?Ao(e,0,(t=n||t===i?1:Us(t))<0?0:t):[]},dr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Ao(e,(t=r-(t=n||t===i?1:Us(t)))<0?0:t,r):[]},dr.takeRightWhile=function(e,t){return e&&e.length?Uo(e,Ri(t,3),!1,!0):[]},dr.takeWhile=function(e,t){return e&&e.length?Uo(e,Ri(t,3)):[]},dr.tap=function(e,t){return t(e),e},dr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ot(u);return Os(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),os(e,t,{leading:r,maxWait:t,trailing:o})},dr.thru=za,dr.toArray=Ds,dr.toPairs=fu,dr.toPairsIn=pu,dr.toPath=function(e){return ms(e)?Jt(e,ca):Is(e)?[e]:ri(la(Ys(e)))},dr.toPlainObject=Gs,dr.transform=function(e,t,n){var r=ms(e),o=r||xs(e)||Rs(e);if(t=Ri(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Os(e)&&Es(i)?hr(At(e)):{}}return(o?Xt:Xr)(e,function(e,r,o){return t(n,e,r,o)}),n},dr.unary=function(e){return es(e,1)},dr.union=Sa,dr.unionBy=Na,dr.unionWith=Ta,dr.uniq=function(e){return e&&e.length?Fo(e):[]},dr.uniqBy=function(e,t){return e&&e.length?Fo(e,Ri(t,2)):[]},dr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Fo(e,i,t):[]},dr.unset=function(e,t){return null==e||Do(e,t)},dr.unzip=Aa,dr.unzipWith=Ma,dr.update=function(e,t,n){return null==e?e:zo(e,t,qo(n))},dr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:zo(e,t,qo(n),r)},dr.values=du,dr.valuesIn=function(e){return null==e?[]:yn(e,iu(e))},dr.without=La,dr.words=Eu,dr.wrap=function(e,t){return cs(qo(t),e)},dr.xor=ja,dr.xorBy=Ia,dr.xorWith=Ra,dr.zip=Ba,dr.zipObject=function(e,t){return Go(e||[],t||[],Sr)},dr.zipObjectDeep=function(e,t){return Go(e||[],t||[],Oo)},dr.zipWith=Fa,dr.entries=fu,dr.entriesIn=pu,dr.extend=Xs,dr.extendWith=Hs,ju(dr,dr),dr.add=Gu,dr.attempt=Cu,dr.camelCase=hu,dr.capitalize=gu,dr.ceil=Yu,dr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Vs(n))==n?n:0),t!==i&&(t=(t=Vs(t))==t?t:0),jr(Vs(e),t,n)},dr.clone=function(e){return Ir(e,h)},dr.cloneDeep=function(e){return Ir(e,p|h)},dr.cloneDeepWith=function(e,t){return Ir(e,p|h,t="function"==typeof t?t:i)},dr.cloneWith=function(e,t){return Ir(e,h,t="function"==typeof t?t:i)},dr.conformsTo=function(e,t){return null==t||Rr(e,t,ou(t))},dr.deburr=vu,dr.defaultTo=function(e,t){return null==e||e!=e?t:e},dr.divide=qu,dr.endsWith=function(e,t,n){e=Ys(e),t=Bo(t);var r=e.length,o=n=n===i?r:jr(Us(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},dr.eq=ds,dr.escape=function(e){return(e=Ys(e))&&Ce.test(e)?e.replace(ke,kn):e},dr.escapeRegExp=function(e){return(e=Ys(e))&&Le.test(e)?e.replace(Me,"\\$&"):e},dr.every=function(e,t,n){var r=ms(e)?Kt:Ur;return n&&Xi(e,t,n)&&(t=i),r(e,Ri(t,3))},dr.find=Va,dr.findIndex=va,dr.findKey=function(e,t){return an(e,Ri(t,3),Xr)},dr.findLast=Ga,dr.findLastIndex=ma,dr.findLastKey=function(e,t){return an(e,Ri(t,3),Hr)},dr.floor=Xu,dr.forEach=Ya,dr.forEachRight=qa,dr.forIn=function(e,t){return null==e?e:Yr(e,Ri(t,3),iu)},dr.forInRight=function(e,t){return null==e?e:qr(e,Ri(t,3),iu)},dr.forOwn=function(e,t){return e&&Xr(e,Ri(t,3))},dr.forOwnRight=function(e,t){return e&&Hr(e,Ri(t,3))},dr.get=Js,dr.gt=hs,dr.gte=gs,dr.has=function(e,t){return null!=e&&Vi(e,t,eo)},dr.hasIn=eu,dr.head=ba,dr.identity=Tu,dr.includes=function(e,t,n,r){e=bs(e)?e:du(e),n=n&&!r?Us(n):0;var o=e.length;return n<0&&(n=Yn(o+n,0)),js(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&un(e,t,n)>-1},dr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Us(n);return o<0&&(o=Yn(r+o,0)),un(e,t,o)},dr.inRange=function(e,t,n){return t=zs(t),n===i?(n=t,t=0):n=zs(n),function(e,t,n){return e>=qn(t,n)&&e<Yn(t,n)}(e=Vs(e),t,n)},dr.invoke=ru,dr.isArguments=vs,dr.isArray=ms,dr.isArrayBuffer=ys,dr.isArrayLike=bs,dr.isArrayLikeObject=_s,dr.isBoolean=function(e){return!0===e||!1===e||Ss(e)&&Zr(e)==G},dr.isBuffer=xs,dr.isDate=ws,dr.isElement=function(e){return Ss(e)&&1===e.nodeType&&!As(e)},dr.isEmpty=function(e){if(null==e)return!0;if(bs(e)&&(ms(e)||"string"==typeof e||"function"==typeof e.splice||xs(e)||Rs(e)||vs(e)))return!e.length;var t=Wi(e);if(t==$||t==ne)return!e.size;if(Qi(e))return!lo(e).length;for(var n in e)if(ct.call(e,n))return!1;return!0},dr.isEqual=function(e,t){return io(e,t)},dr.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?io(e,t,i,n):!!r},dr.isError=ks,dr.isFinite=function(e){return"number"==typeof e&&Wn(e)},dr.isFunction=Es,dr.isInteger=Cs,dr.isLength=Ps,dr.isMap=Ns,dr.isMatch=function(e,t){return e===t||ao(e,t,Fi(t))},dr.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,ao(e,t,Fi(t),n)},dr.isNaN=function(e){return Ts(e)&&e!=+e},dr.isNative=function(e){if($i(e))throw new Ze(s);return so(e)},dr.isNil=function(e){return null==e},dr.isNull=function(e){return null===e},dr.isNumber=Ts,dr.isObject=Os,dr.isObjectLike=Ss,dr.isPlainObject=As,dr.isRegExp=Ms,dr.isSafeInteger=function(e){return Cs(e)&&e>=-j&&e<=j},dr.isSet=Ls,dr.isString=js,dr.isSymbol=Is,dr.isTypedArray=Rs,dr.isUndefined=function(e){return e===i},dr.isWeakMap=function(e){return Ss(e)&&Wi(e)==ae},dr.isWeakSet=function(e){return Ss(e)&&Zr(e)==se},dr.join=function(e,t){return null==e?"":Vn.call(e,t)},dr.kebabCase=mu,dr.last=ka,dr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Us(n))<0?Yn(r+o,0):qn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):sn(e,cn,o,!0)},dr.lowerCase=yu,dr.lowerFirst=bu,dr.lt=Bs,dr.lte=Fs,dr.max=function(e){return e&&e.length?Wr(e,Tu,Jr):i},dr.maxBy=function(e,t){return e&&e.length?Wr(e,Ri(t,2),Jr):i},dr.mean=function(e){return fn(e,Tu)},dr.meanBy=function(e,t){return fn(e,Ri(t,2))},dr.min=function(e){return e&&e.length?Wr(e,Tu,fo):i},dr.minBy=function(e,t){return e&&e.length?Wr(e,Ri(t,2),fo):i},dr.stubArray=Wu,dr.stubFalse=Vu,dr.stubObject=function(){return{}},dr.stubString=function(){return""},dr.stubTrue=function(){return!0},dr.multiply=Ku,dr.nth=function(e,t){return e&&e.length?mo(e,Us(t)):i},dr.noConflict=function(){return Lt._===this&&(Lt._=gt),this},dr.noop=Iu,dr.now=Ja,dr.pad=function(e,t,n){e=Ys(e);var r=(t=Us(t))?An(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return yi(Dn(o),n)+e+yi(Fn(o),n)},dr.padEnd=function(e,t,n){e=Ys(e);var r=(t=Us(t))?An(e):0;return t&&r<t?e+yi(t-r,n):e},dr.padStart=function(e,t,n){e=Ys(e);var r=(t=Us(t))?An(e):0;return t&&r<t?yi(t-r,n)+e:e},dr.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Hn(Ys(e).replace(Ie,""),t||0)},dr.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Xi(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=zs(e),t===i?(t=e,e=0):t=zs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Kn();return qn(e+o*(t-e+Nt("1e-"+((o+"").length-1))),t)}return wo(e,t)},dr.reduce=function(e,t,n){var r=ms(e)?tn:hn,o=arguments.length<3;return r(e,Ri(t,4),n,o,Dr)},dr.reduceRight=function(e,t,n){var r=ms(e)?nn:hn,o=arguments.length<3;return r(e,Ri(t,4),n,o,zr)},dr.repeat=function(e,t,n){return t=(n?Xi(e,t,n):t===i)?1:Us(t),ko(Ys(e),t)},dr.replace=function(){var e=arguments,t=Ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},dr.result=function(e,t,n){var r=-1,o=(t=Xo(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[ca(t[r])];a===i&&(r=o,a=n),e=Es(a)?a.call(e):a}return e},dr.round=$u,dr.runInContext=e,dr.sample=function(e){return(ms(e)?Er:Co)(e)},dr.size=function(e){if(null==e)return 0;if(bs(e))return js(e)?An(e):e.length;var t=Wi(e);return t==$||t==ne?e.size:lo(e).length},dr.snakeCase=_u,dr.some=function(e,t,n){var r=ms(e)?rn:Mo;return n&&Xi(e,t,n)&&(t=i),r(e,Ri(t,3))},dr.sortedIndex=function(e,t){return Lo(e,t)},dr.sortedIndexBy=function(e,t,n){return jo(e,t,Ri(n,2))},dr.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Lo(e,t);if(r<n&&ds(e[r],t))return r}return-1},dr.sortedLastIndex=function(e,t){return Lo(e,t,!0)},dr.sortedLastIndexBy=function(e,t,n){return jo(e,t,Ri(n,2),!0)},dr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Lo(e,t,!0)-1;if(ds(e[n],t))return n}return-1},dr.startCase=xu,dr.startsWith=function(e,t,n){return e=Ys(e),n=null==n?0:jr(Us(n),0,e.length),t=Bo(t),e.slice(n,n+t.length)==t},dr.subtract=Qu,dr.sum=function(e){return e&&e.length?gn(e,Tu):0},dr.sumBy=function(e,t){return e&&e.length?gn(e,Ri(t,2)):0},dr.template=function(e,t,n){var r=dr.templateSettings;n&&Xi(e,t,n)&&(t=i),e=Ys(e),t=Hs({},t,r,Pi);var o,a,s=Hs({},t.imports,r.imports,Pi),u=ou(s),l=yn(s,u),c=0,f=t.interpolate||$e,p="__p += '",d=nt((t.escape||$e).source+"|"+f.source+"|"+(f===Se?We:$e).source+"|"+(t.evaluate||$e).source+"|$","g"),h="//# sourceURL="+(ct.call(t,"sourceURL")?(t.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++Ct+"]")+"\n";e.replace(d,function(t,n,r,i,s,u){return r||(r=i),p+=e.slice(c,u).replace(Qe,En),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t}),p+="';\n";var g=ct.call(t,"variable")&&t.variable;g||(p="with (obj) {\n"+p+"\n}\n"),p=(a?p.replace(be,""):p).replace(_e,"$1").replace(xe,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=Cu(function(){return Je(u,h+"return "+p).apply(i,l)});if(v.source=p,ks(v))throw v;return v},dr.times=function(e,t){if((e=Us(e))<1||e>j)return[];var n=B,r=qn(e,B);t=Ri(t),e-=B;for(var o=vn(r,t);++n<e;)t(n);return o},dr.toFinite=zs,dr.toInteger=Us,dr.toLength=Ws,dr.toLower=function(e){return Ys(e).toLowerCase()},dr.toNumber=Vs,dr.toSafeInteger=function(e){return e?jr(Us(e),-j,j):0===e?e:0},dr.toString=Ys,dr.toUpper=function(e){return Ys(e).toUpperCase()},dr.trim=function(e,t,n){if((e=Ys(e))&&(n||t===i))return e.replace(je,"");if(!e||!(t=Bo(t)))return e;var r=Mn(e),o=Mn(t);return Ko(r,_n(r,o),xn(r,o)+1).join("")},dr.trimEnd=function(e,t,n){if((e=Ys(e))&&(n||t===i))return e.replace(Re,"");if(!e||!(t=Bo(t)))return e;var r=Mn(e);return Ko(r,0,xn(r,Mn(t))+1).join("")},dr.trimStart=function(e,t,n){if((e=Ys(e))&&(n||t===i))return e.replace(Ie,"");if(!e||!(t=Bo(t)))return e;var r=Mn(e);return Ko(r,_n(r,Mn(t))).join("")},dr.truncate=function(e,t){var n=O,r=S;if(Os(t)){var o="separator"in t?t.separator:o;n="length"in t?Us(t.length):n,r="omission"in t?Bo(t.omission):r}var a=(e=Ys(e)).length;if(Cn(e)){var s=Mn(e);a=s.length}if(n>=a)return e;var u=n-An(r);if(u<1)return r;var l=s?Ko(s,0,u).join(""):e.slice(0,u);if(o===i)return l+r;if(s&&(u+=l.length-u),Ms(o)){if(e.slice(u).search(o)){var c,f=l;for(o.global||(o=nt(o.source,Ys(Ve.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var p=c.index;l=l.slice(0,p===i?u:p)}}else if(e.indexOf(Bo(o),u)!=u){var d=l.lastIndexOf(o);d>-1&&(l=l.slice(0,d))}return l+r},dr.unescape=function(e){return(e=Ys(e))&&Ee.test(e)?e.replace(we,Ln):e},dr.uniqueId=function(e){var t=++ft;return Ys(e)+t},dr.upperCase=wu,dr.upperFirst=ku,dr.each=Ya,dr.eachRight=qa,dr.first=ba,ju(dr,(Hu={},Xr(dr,function(e,t){ct.call(dr.prototype,t)||(Hu[t]=e)}),Hu),{chain:!1}),dr.VERSION="4.17.14",Xt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){dr[e].placeholder=dr}),Xt(["drop","take"],function(e,t){mr.prototype[e]=function(n){n=n===i?1:Yn(Us(n),0);var r=this.__filtered__&&!t?new mr(this):this.clone();return r.__filtered__?r.__takeCount__=qn(n,r.__takeCount__):r.__views__.push({size:qn(n,B),type:e+(r.__dir__<0?"Right":"")}),r},mr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Xt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==A||3==n;mr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ri(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Xt(["head","last"],function(e,t){var n="take"+(t?"Right":"");mr.prototype[e]=function(){return this[n](1).value()[0]}}),Xt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");mr.prototype[e]=function(){return this.__filtered__?new mr(this):this[n](1)}}),mr.prototype.compact=function(){return this.filter(Tu)},mr.prototype.find=function(e){return this.filter(e).head()},mr.prototype.findLast=function(e){return this.reverse().find(e)},mr.prototype.invokeMap=Eo(function(e,t){return"function"==typeof e?new mr(this):this.map(function(n){return ro(n,e,t)})}),mr.prototype.reject=function(e){return this.filter(us(Ri(e)))},mr.prototype.slice=function(e,t){e=Us(e);var n=this;return n.__filtered__&&(e>0||t<0)?new mr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Us(t))<0?n.dropRight(-t):n.take(t-e)),n)},mr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},mr.prototype.toArray=function(){return this.take(B)},Xr(mr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=dr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(dr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof mr,l=s[0],c=u||ms(t),f=function(e){var t=o.apply(dr,en([e],s));return r&&p?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(u=c=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,g=u&&!d;if(!a&&c){t=g?t:new mr(this);var v=e.apply(t,s);return v.__actions__.push({func:za,args:[f],thisArg:i}),new vr(v,p)}return h&&g?e.apply(this,s):(v=this.thru(f),h?r?v.value()[0]:v.value():v)})}),Xt(["pop","push","shift","sort","splice","unshift"],function(e){var t=it[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);dr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(ms(o)?o:[],e)}return this[n](function(n){return t.apply(ms(n)?n:[],e)})}}),Xr(mr.prototype,function(e,t){var n=dr[t];if(n){var r=n.name+"";ct.call(or,r)||(or[r]=[]),or[r].push({name:t,func:n})}}),or[hi(i,y).name]=[{name:"wrapper",func:i}],mr.prototype.clone=function(){var e=new mr(this.__wrapped__);return e.__actions__=ri(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ri(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ri(this.__views__),e},mr.prototype.reverse=function(){if(this.__filtered__){var e=new mr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},mr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ms(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=qn(t,e+a);break;case"takeRight":e=Yn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,p=0,d=qn(u,this.__takeCount__);if(!n||!r&&o==u&&d==u)return Wo(e,this.__actions__);var h=[];e:for(;u--&&p<d;){for(var g=-1,v=e[l+=t];++g<f;){var m=c[g],y=m.iteratee,b=m.type,_=y(v);if(b==M)v=_;else if(!_){if(b==A)continue e;break e}}h[p++]=v}return h},dr.prototype.at=Ua,dr.prototype.chain=function(){return Da(this)},dr.prototype.commit=function(){return new vr(this.value(),this.__chain__)},dr.prototype.next=function(){this.__values__===i&&(this.__values__=Ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},dr.prototype.plant=function(e){for(var t,n=this;n instanceof gr;){var r=pa(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},dr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof mr){var t=e;return this.__actions__.length&&(t=new mr(this)),(t=t.reverse()).__actions__.push({func:za,args:[Oa],thisArg:i}),new vr(t,this.__chain__)}return this.thru(Oa)},dr.prototype.toJSON=dr.prototype.valueOf=dr.prototype.value=function(){return Wo(this.__wrapped__,this.__actions__)},dr.prototype.first=dr.prototype.head,Ft&&(dr.prototype[Ft]=function(){return this}),dr}();Lt._=jn,(o=function(){return jn}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(this,n(15),n(34)(e))},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(134),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(15))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,s,u=1,l={},c=!1,f=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){h(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return l[u]=o,r(u),u++},p.clearImmediate=d}function d(e){delete l[e]}function h(e){if(c)setTimeout(h,0,e);else{var t=l[e];if(t){c=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}(t)}finally{d(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(15),n(135))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,l=[],c=!1,f=-1;function p(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&d())}function d(){if(!c){var e=s(p);c=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-1,t=l.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||c||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(137);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(139);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(21)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(20)(!1)).push([e.i,"#nodeList {\n background: #333333;\n height: 100%;\n margin: 0;\n padding: 0;\n display: grid;\n width: 100%;\n overflow: hidden; }\n #nodeList .pane {\n color: white;\n overflow-x: hidden;\n overflow-y: auto;\n height: 100%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n #nodeList .pane .underline {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.5); }\n #nodeList .pane .draggableLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch;\n background: #222222;\n cursor: grab;\n text-align: center;\n margin: 0;\n box-sizing: border-box; }\n #nodeList .pane .draggableLine:hover {\n background: #337ab7;\n color: white; }\n #nodeList .pane .buttonLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch; }\n #nodeList .pane .buttonLine button {\n background: #222222;\n margin: 5px 10px 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9; }\n #nodeList .pane .buttonLine button:hover {\n opacity: 1.0; }\n #nodeList .pane .buttonLine button:active {\n background: #282828; }\n #nodeList .pane .buttonLine button:focus {\n outline: 0px; }\n #nodeList .pane .paneContainer {\n margin-top: 3px;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%; }\n #nodeList .pane .paneContainer .paneContainer-content {\n grid-row: 1;\n grid-column: 1; }\n #nodeList .pane .paneContainer .paneContainer-content .header {\n display: grid;\n grid-template-columns: 1fr auto;\n background: #555555;\n height: 30px;\n padding-right: 5px;\n cursor: pointer; }\n #nodeList .pane .paneContainer .paneContainer-content .header .title {\n border-left: 3px solid transparent;\n padding-left: 5px;\n grid-column: 1;\n display: flex;\n align-items: center; }\n #nodeList .pane .paneContainer .paneContainer-content .header .collapse {\n grid-column: 2;\n display: flex;\n align-items: center;\n justify-items: center;\n transform-origin: center; }\n #nodeList .pane .paneContainer .paneContainer-content .header .collapse.closed {\n transform: rotate(180deg); }\n #nodeList .pane .paneContainer .paneContainer-content .paneList > div:not(:last-child) {\n border-bottom: 1px solid rgba(255, 255, 255, 0.3); }\n",""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(e,t,n){var r=n(142);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(21)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(20)(!1)).push([e.i,'#propertyTab {\n color: white;\n background: #333333; }\n #propertyTab #header {\n height: 30px;\n font-size: 16px;\n color: white;\n background: #222222;\n grid-row: 1;\n text-align: center;\n display: grid;\n grid-template-columns: 30px 1fr 20px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n #propertyTab #header #logo {\n position: relative;\n grid-column: 1;\n width: 24px;\n height: 24px;\n left: 0;\n display: flex;\n align-self: center;\n justify-self: center; }\n #propertyTab #header #title {\n grid-column: 2;\n display: grid;\n align-items: center;\n text-align: center; }\n #propertyTab .textInputLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr 120px; }\n #propertyTab .textInputLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .textInputLine .value {\n display: flex;\n align-items: center;\n grid-column: 2; }\n #propertyTab .textInputLine .value input {\n width: calc(100% - 5px); }\n #propertyTab .paneContainer {\n margin-top: 3px;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%; }\n #propertyTab .paneContainer .paneList {\n border-left: 3px solid transparent; }\n #propertyTab .paneContainer:hover .paneList {\n border-left: 3px solid rgba(51, 122, 183, 0.8); }\n #propertyTab .paneContainer:hover .paneContainer-content .header .title {\n border-left: 3px solid #337ab7; }\n #propertyTab .paneContainer .paneContainer-highlight-border {\n grid-row: 1;\n grid-column: 1;\n opacity: 1;\n border: 3px solid red;\n transition: opacity 250ms;\n pointer-events: none; }\n #propertyTab .paneContainer .paneContainer-highlight-border.transparent {\n opacity: 0; }\n #propertyTab .paneContainer .paneContainer-content {\n grid-row: 1;\n grid-column: 1; }\n #propertyTab .paneContainer .paneContainer-content .header {\n display: grid;\n grid-template-columns: 1fr auto;\n background: #555555;\n height: 30px;\n padding-right: 5px;\n cursor: pointer; }\n #propertyTab .paneContainer .paneContainer-content .header .title {\n border-left: 3px solid transparent;\n padding-left: 5px;\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .paneContainer .paneContainer-content .header .collapse {\n grid-column: 2;\n display: flex;\n align-items: center;\n justify-items: center;\n transform-origin: center; }\n #propertyTab .paneContainer .paneContainer-content .header .collapse.closed {\n transform: rotate(180deg); }\n #propertyTab .paneContainer .paneContainer-content .paneList > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n #propertyTab .paneContainer .paneContainer-content .fragment > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n #propertyTab .floatLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr 120px; }\n #propertyTab .floatLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .floatLine .value {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .floatLine .value input {\n width: 110px; }\n #propertyTab .vector3Line {\n padding-left: 5px;\n display: grid; }\n #propertyTab .vector3Line .firstLine {\n display: grid;\n grid-template-columns: 1fr auto 20px;\n height: 30px; }\n #propertyTab .vector3Line .firstLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .vector3Line .firstLine .vector {\n grid-column: 2;\n display: flex;\n align-items: center;\n text-align: right;\n opacity: 0.8; }\n #propertyTab .vector3Line .firstLine .expand {\n grid-column: 3;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .vector3Line .secondLine {\n display: grid;\n padding-right: 5px;\n border-left: 1px solid #337ab7; }\n #propertyTab .vector3Line .secondLine .numeric {\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .vector3Line .secondLine .numeric-label {\n text-align: right;\n grid-column: 1;\n display: flex;\n align-items: center;\n justify-self: right;\n margin-right: 10px; }\n #propertyTab .vector3Line .secondLine .numeric-value {\n width: 120px;\n grid-column: 2;\n display: flex;\n align-items: center;\n border: 1px solid #337ab7; }\n #propertyTab .buttonLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch;\n padding-bottom: 5px; }\n #propertyTab .buttonLine input[type="file"] {\n display: none; }\n #propertyTab .buttonLine .file-upload {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px;\n color: white;\n padding: 4px 5px;\n padding-top: 0px;\n opacity: 0.9;\n cursor: pointer;\n text-align: center; }\n #propertyTab .buttonLine .file-upload:hover {\n opacity: 1.0; }\n #propertyTab .buttonLine .file-upload:active {\n transform: scale(0.98);\n transform-origin: 0.5 0.5; }\n #propertyTab .buttonLine button {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9; }\n #propertyTab .buttonLine button:hover {\n opacity: 1.0; }\n #propertyTab .buttonLine button:active {\n background: #282828; }\n #propertyTab .buttonLine button:focus {\n border: 1px solid #337ab7;\n outline: 0px; }\n #propertyTab .checkBoxLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .checkBoxLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .checkBoxLine .checkBox {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .checkBoxLine .checkBox .lbl {\n position: relative;\n display: block;\n height: 14px;\n width: 34px;\n margin-right: 5px;\n background: #898989;\n border-radius: 100px;\n cursor: pointer;\n transition: all 0.3s ease; }\n #propertyTab .checkBoxLine .checkBox .lbl:after {\n position: absolute;\n left: 3px;\n top: 2px;\n display: block;\n width: 10px;\n height: 10px;\n border-radius: 100px;\n background: #fff;\n box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.05);\n content: \'\';\n transition: all 0.15s ease; }\n #propertyTab .checkBoxLine .checkBox .lbl:active:after {\n transform: scale(1.15, 0.85); }\n #propertyTab .checkBoxLine .checkBox .cbx:checked ~ label {\n background: #337ab7; }\n #propertyTab .checkBoxLine .checkBox .cbx:checked ~ label:after {\n left: 20px;\n background: #164975; }\n #propertyTab .checkBoxLine .checkBox .hidden {\n display: none; }\n #propertyTab .listLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .listLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .listLine .options {\n grid-column: 2;\n display: flex;\n align-items: center;\n margin-right: 5px; }\n #propertyTab .listLine .options select {\n width: 115px; }\n #propertyTab .color3Line {\n padding-left: 5px;\n display: grid; }\n #propertyTab .color3Line .firstLine {\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto 20px 20px; }\n #propertyTab .color3Line .firstLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .color3Line .firstLine .color3 {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .color3Line .firstLine .color3 input[type="color"] {\n -webkit-appearance: none;\n border: 1px solid rgba(255, 255, 255, 0.5);\n padding: 0;\n width: 30px;\n height: 20px; }\n #propertyTab .color3Line .firstLine .color3 input[type="color"]::-webkit-color-swatch-wrapper {\n padding: 0; }\n #propertyTab .color3Line .firstLine .color3 input[type="color"]::-webkit-color-swatch {\n border: none; }\n #propertyTab .color3Line .firstLine .color3 input {\n margin-right: 5px; }\n #propertyTab .color3Line .firstLine .copy {\n grid-column: 3;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .color3Line .firstLine .expand {\n grid-column: 4;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .color3Line .secondLine {\n display: grid;\n padding-right: 5px;\n border-left: 1px solid #337ab7; }\n #propertyTab .color3Line .secondLine .numeric {\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .color3Line .secondLine .numeric-label {\n text-align: right;\n grid-column: 1;\n display: flex;\n align-items: center;\n justify-self: right;\n margin-right: 10px; }\n #propertyTab .color3Line .secondLine .numeric-value {\n width: 120px;\n grid-column: 2;\n display: flex;\n align-items: center;\n border: 1px solid #337ab7; }\n #propertyTab .textLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .textLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .textLine .link-value {\n grid-column: 2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-align: end;\n opacity: 0.8;\n margin: 5px;\n margin-top: 6px;\n max-width: 140px;\n text-decoration: underline;\n cursor: pointer; }\n #propertyTab .textLine .value {\n grid-column: 2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-align: end;\n opacity: 0.8;\n margin: 5px;\n margin-top: 6px;\n max-width: 200px;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text; }\n #propertyTab .textLine .value.check {\n color: green; }\n #propertyTab .textLine .value.uncheck {\n color: red; }\n',""])},function(e,t,n){var r=n(144);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(21)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(20)(!1)).push([e.i,"#log-console {\n background: #333333;\n border: #555555 solid 1px;\n height: 120px;\n box-sizing: border-box;\n margin: 0;\n padding: 10px;\n width: 100%;\n overflow: hidden;\n overflow-y: auto; }\n #log-console .log {\n color: white;\n font-size: 14px;\n font-family: 'Courier New', Courier, monospace; }\n #log-console .log.error {\n color: red; }\n",""])},function(e,t,n){var r=n(146);e.exports={Graph:r.Graph,json:n(248),alg:n(249),version:r.version}},function(e,t,n){e.exports={Graph:n(53),version:n(247)}},function(e,t,n){var r=n(74),o=4;e.exports=function(e){return r(e,o)}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(37),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},function(e,t,n){var r=n(37);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(37);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(37);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(36);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(36),o=n(54),i=n(55),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(29),o=n(161),i=n(9),a=n(76),s=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,f=l.hasOwnProperty,p=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:s).test(a(e))}},function(e,t,n){var r=n(23),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,o=n(162),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(11)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(165),o=n(36),i=n(54);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(166),o=n(167),i=n(168),a=n(169),s=n(170);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(38);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(38),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(38),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(38),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t,n){var r=n(39);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(39);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(39);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(39);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(30),o=n(16);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(18),o=n(12),i="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(18),o=n(57),i=n(12),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(79)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(30),o=n(25);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(9),o=n(44),i=n(184),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(30),o=n(60);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(30),o=n(84);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(86),o=n(84),i=n(25);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(17)(n(11),"DataView");e.exports=r},function(e,t,n){var r=n(17)(n(11),"Promise");e.exports=r},function(e,t,n){var r=n(17)(n(11),"WeakMap");e.exports=r},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(62),o=n(193),i=n(194),a=n(195),s=n(89),u="[object Boolean]",l="[object Date]",c="[object Map]",f="[object Number]",p="[object RegExp]",d="[object Set]",h="[object String]",g="[object Symbol]",v="[object ArrayBuffer]",m="[object DataView]",y="[object Float32Array]",b="[object Float64Array]",_="[object Int8Array]",x="[object Int16Array]",w="[object Int32Array]",k="[object Uint8Array]",E="[object Uint8ClampedArray]",C="[object Uint16Array]",P="[object Uint32Array]";e.exports=function(e,t,n){var O=e.constructor;switch(t){case v:return r(e);case u:case l:return new O(+e);case m:return o(e,n);case y:case b:case _:case x:case w:case k:case E:case C:case P:return s(e,n);case c:return new O;case f:case h:return new O(e);case p:return i(e);case d:return new O;case g:return a(e)}}},function(e,t,n){var r=n(62);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(23),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},function(e,t,n){var r=n(197),o=n(43),i=n(58),a=i&&i.isMap,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(26),o=n(12),i="[object Map]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t,n){var r=n(199),o=n(43),i=n(58),a=i&&i.isSet,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(26),o=n(12),i="[object Set]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}},function(e,t,n){var r=n(13);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},function(e,t,n){var r=n(46);e.exports=function(e,t){var n=[];return r(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}},function(e,t,n){var r=n(204),o=n(212),i=n(101);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(35),o=n(96),i=1,a=2;e.exports=function(e,t,n,s){var u=n.length,l=u,c=!s;if(null==e)return!l;for(e=Object(e);u--;){var f=n[u];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++u<l;){var p=(f=n[u])[0],d=e[p],h=f[1];if(c&&f[2]){if(void 0===d&&!(p in e))return!1}else{var g=new r;if(s)var v=s(d,h,p,e,t,g);if(!(void 0===v?o(h,d,i|a,s,g):v))return!1}}return!0}},function(e,t,n){var r=n(35),o=n(97),i=n(209),a=n(211),s=n(26),u=n(5),l=n(24),c=n(32),f=1,p="[object Arguments]",d="[object Array]",h="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,m,y){var b=u(e),_=u(t),x=b?d:s(e),w=_?d:s(t),k=(x=x==p?h:x)==h,E=(w=w==p?h:w)==h,C=x==w;if(C&&l(e)){if(!l(t))return!1;b=!0,k=!1}if(C&&!k)return y||(y=new r),b||c(e)?o(e,t,n,v,m,y):i(e,t,x,n,v,m,y);if(!(n&f)){var P=k&&g.call(e,"__wrapped__"),O=E&&g.call(t,"__wrapped__");if(P||O){var S=P?e.value():e,N=O?t.value():t;return y||(y=new r),m(S,N,n,v,y)}}return!!C&&(y||(y=new r),a(e,t,n,v,m,y))}},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(23),o=n(88),i=n(22),a=n(97),s=n(210),u=n(66),l=1,c=2,f="[object Boolean]",p="[object Date]",d="[object Error]",h="[object Map]",g="[object Number]",v="[object RegExp]",m="[object Set]",y="[object String]",b="[object Symbol]",_="[object ArrayBuffer]",x="[object DataView]",w=r?r.prototype:void 0,k=w?w.valueOf:void 0;e.exports=function(e,t,n,r,w,E,C){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!E(new o(e),new o(t)));case f:case p:case g:return i(+e,+t);case d:return e.name==t.name&&e.message==t.message;case v:case y:return e==t+"";case h:var P=s;case m:var O=r&l;if(P||(P=u),e.size!=t.size&&!O)return!1;var S=C.get(e);if(S)return S==t;r|=c,C.set(e,t);var N=a(P(e),P(t),r,w,E,C);return C.delete(e),N;case b:if(k)return k.call(e)==k.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t,n){var r=n(85),o=1,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,u){var l=n&o,c=r(e),f=c.length;if(f!=r(t).length&&!l)return!1;for(var p=f;p--;){var d=c[p];if(!(l?d in t:i.call(t,d)))return!1}var h=u.get(e);if(h&&u.get(t))return h==t;var g=!0;u.set(e,t),u.set(t,e);for(var v=l;++p<f;){var m=e[d=c[p]],y=t[d];if(a)var b=l?a(y,m,d,t,e,u):a(m,y,d,e,t,u);if(!(void 0===b?m===y||s(m,y,n,a,u):b)){g=!1;break}v||(v="constructor"==d)}if(g&&!v){var _=e.constructor,x=t.constructor;_!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x)&&(g=!1)}return u.delete(e),u.delete(t),g}},function(e,t,n){var r=n(100),o=n(16);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},function(e,t,n){var r=n(96),o=n(214),i=n(103),a=n(68),s=n(100),u=n(101),l=n(33),c=1,f=2;e.exports=function(e,t){return a(e)&&s(t)?u(l(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,c|f)}}},function(e,t,n){var r=n(67);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(216),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=a},function(e,t,n){var r=n(217),o=500;e.exports=function(e){var t=r(e,function(e){return n.size===o&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){var r=n(55),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(23),o=n(48),i=n(5),a=n(27),s=1/0,u=r?r.prototype:void 0,l=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(105),o=n(221),i=n(68),a=n(33);e.exports=function(e){return i(e)?r(a(e)):o(e)}},function(e,t,n){var r=n(67);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t,n){var r=n(59),o=n(26),i=n(31),a=n(5),s=n(13),u=n(24),l=n(44),c=n(32),f="[object Map]",p="[object Set]",d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||c(e)||i(e)))return!e.length;var t=o(e);if(t==f||t==p)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},function(e,t){e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}},function(e,t){e.exports=function(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}},function(e,t,n){var r=n(59),o=n(26),i=n(13),a=n(227),s=n(228),u="[object Map]",l="[object Set]";e.exports=function(e){if(null==e)return 0;if(i(e))return a(e)?s(e):e.length;var t=o(e);return t==u||t==l?e.size:r(e).length}},function(e,t,n){var r=n(18),o=n(5),i=n(12),a="[object String]";e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&r(e)==a}},function(e,t,n){var r=n(229),o=n(230),i=n(231);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t,n){var r=n(105)("length");e.exports=r},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+o+")"+"?",l="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[i,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),c="(?:"+[i+r+"?",r,a,s,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+c+l,"g");e.exports=function(e){for(var t=f.lastIndex=0;f.test(e);)++t;return t}},function(e,t,n){var r=n(56),o=n(91),i=n(64),a=n(14),s=n(45),u=n(5),l=n(24),c=n(29),f=n(9),p=n(32);e.exports=function(e,t,n){var d=u(e),h=d||l(e)||p(e);if(t=a(t,4),null==n){var g=e&&e.constructor;n=h?d?new g:[]:f(e)&&c(g)?o(s(e)):{}}return(h?r:i)(e,function(e,r,o){return t(n,e,r,o)}),n}},function(e,t,n){var r=n(69),o=n(49),i=n(238),a=n(114),s=o(function(e){return i(r(e,1,a,!0))});e.exports=s},function(e,t,n){var r=n(23),o=n(31),i=n(5),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(63),o=n(77),i=n(19),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},function(e,t){var n=800,r=16,o=Date.now;e.exports=function(e){var t=0,i=0;return function(){var a=o(),s=r-(a-i);if(i=a,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(98),o=n(239),i=n(243),a=n(99),s=n(244),u=n(66),l=200;e.exports=function(e,t,n){var c=-1,f=o,p=e.length,d=!0,h=[],g=h;if(n)d=!1,f=i;else if(p>=l){var v=t?null:s(e);if(v)return u(v);d=!1,f=a,g=new r}else g=t?[]:h;e:for(;++c<p;){var m=e[c],y=t?t(m):m;if(m=n||0!==m?m:0,d&&y==y){for(var b=g.length;b--;)if(g[b]===y)continue e;t&&g.push(y),h.push(m)}else f(g,y,n)||(g!==h&&g.push(y),h.push(m))}return h}},function(e,t,n){var r=n(240);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},function(e,t,n){var r=n(113),o=n(241),i=n(242);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(87),o=n(245),i=n(66),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(48);e.exports=function(e,t){return r(t,function(t){return e[t]})}},function(e,t){e.exports="2.1.7"},function(e,t,n){var r=n(8),o=n(53);function i(e){return r.map(e.nodes(),function(t){var n=e.node(t),o=e.parent(t),i={v:t};return r.isUndefined(n)||(i.value=n),r.isUndefined(o)||(i.parent=o),i})}function a(e){return r.map(e.edges(),function(t){var n=e.edge(t),o={v:t.v,w:t.w};return r.isUndefined(t.name)||(o.name=t.name),r.isUndefined(n)||(o.value=n),o})}e.exports={write:function(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:i(e),edges:a(e)};r.isUndefined(e.graph())||(t.value=r.clone(e.graph()));return t},read:function(e){var t=new o(e.options).setGraph(e.value);return r.each(e.nodes,function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)}),r.each(e.edges,function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),t}}},function(e,t,n){e.exports={components:n(250),dijkstra:n(116),dijkstraAll:n(251),findCycles:n(252),floydWarshall:n(253),isAcyclic:n(254),postorder:n(255),preorder:n(256),prim:n(257),tarjan:n(118),topsort:n(119)}},function(e,t,n){var r=n(8);e.exports=function(e){var t,n={},o=[];function i(o){r.has(n,o)||(n[o]=!0,t.push(o),r.each(e.successors(o),i),r.each(e.predecessors(o),i))}return r.each(e.nodes(),function(e){t=[],i(e),t.length&&o.push(t)}),o}},function(e,t,n){var r=n(116),o=n(8);e.exports=function(e,t,n){return o.transform(e.nodes(),function(o,i){o[i]=r(e,i,t,n)},{})}},function(e,t,n){var r=n(8),o=n(118);e.exports=function(e){return r.filter(o(e),function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])})}},function(e,t,n){var r=n(8);e.exports=function(e,t,n){return function(e,t,n){var r={},o=e.nodes();return o.forEach(function(e){r[e]={},r[e][e]={distance:0},o.forEach(function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})}),n(e).forEach(function(n){var o=n.v===e?n.w:n.v,i=t(n);r[e][o]={distance:i,predecessor:e}})}),o.forEach(function(e){var t=r[e];o.forEach(function(n){var i=r[n];o.forEach(function(n){var r=i[e],o=t[n],a=i[n],s=r.distance+o.distance;s<a.distance&&(a.distance=s,a.predecessor=o.predecessor)})})}),r}(e,t||o,n||function(t){return e.outEdges(t)})};var o=r.constant(1)},function(e,t,n){var r=n(119);e.exports=function(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},function(e,t,n){var r=n(120);e.exports=function(e,t){return r(e,t,"post")}},function(e,t,n){var r=n(120);e.exports=function(e,t){return r(e,t,"pre")}},function(e,t,n){var r=n(8),o=n(53),i=n(117);e.exports=function(e,t){var n,a=new o,s={},u=new i;function l(e){var r=e.v===n?e.w:e.v,o=u.priority(r);if(void 0!==o){var i=t(e);i<o&&(s[r]=n,u.decrease(r,i))}}if(0===e.nodeCount())return a;r.each(e.nodes(),function(e){u.add(e,Number.POSITIVE_INFINITY),a.setNode(e)}),u.decrease(e.nodes()[0],0);var c=!1;for(;u.size()>0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(c)throw new Error("Input graph is not connected: "+e);c=!0}e.nodeEdges(n).forEach(l)}return a}},function(e,t,n){"use strict";var r=n(3),o=n(296),i=n(299),a=n(300),s=n(7).normalizeRanks,u=n(302),l=n(7).removeEmptyRanks,c=n(303),f=n(304),p=n(305),d=n(306),h=n(315),g=n(7),v=n(10).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?g.time:g.notime;n("layout",function(){var t=n(" buildLayoutGraph",function(){return function(e){var t=new v({multigraph:!0,compound:!0}),n=P(e.graph());return t.setGraph(r.merge({},y,C(n,m),r.pick(n,b))),r.forEach(e.nodes(),function(n){var o=P(e.node(n));t.setNode(n,r.defaults(C(o,_),x)),t.setParent(n,e.parent(n))}),r.forEach(e.edges(),function(n){var o=P(e.edge(n));t.setEdge(n,r.merge({},k,C(o,w),r.pick(o,E)))}),t}(e)});n(" runLayout",function(){!function(e,t){t(" makeSpaceForEdgeLabels",function(){!function(e){var t=e.graph();t.ranksep/=2,r.forEach(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(e)}),t(" removeSelfEdges",function(){!function(e){r.forEach(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}(e)}),t(" acyclic",function(){o.run(e)}),t(" nestingGraph.run",function(){c.run(e)}),t(" rank",function(){a(g.asNonCompoundGraph(e))}),t(" injectEdgeLabelProxies",function(){!function(e){r.forEach(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),o=e.node(t.w),i={rank:(o.rank-r.rank)/2+r.rank,e:t};g.addDummyNode(e,"edge-proxy",i,"_ep")}})}(e)}),t(" removeEmptyRanks",function(){l(e)}),t(" nestingGraph.cleanup",function(){c.cleanup(e)}),t(" normalizeRanks",function(){s(e)}),t(" assignRankMinMax",function(){!function(e){var t=0;r.forEach(e.nodes(),function(n){var o=e.node(n);o.borderTop&&(o.minRank=e.node(o.borderTop).rank,o.maxRank=e.node(o.borderBottom).rank,t=r.max(t,o.maxRank))}),e.graph().maxRank=t}(e)}),t(" removeEdgeLabelProxies",function(){!function(e){r.forEach(e.nodes(),function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}(e)}),t(" normalize.run",function(){i.run(e)}),t(" parentDummyChains",function(){u(e)}),t(" addBorderSegments",function(){f(e)}),t(" order",function(){d(e)}),t(" insertSelfEdges",function(){!function(e){var t=g.buildLayerMatrix(e);r.forEach(t,function(t){var n=0;r.forEach(t,function(t,o){var i=e.node(t);i.order=o+n,r.forEach(i.selfEdges,function(t){g.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:i.rank,order:o+ ++n,e:t.e,label:t.label},"_se")}),delete i.selfEdges})})}(e)}),t(" adjustCoordinateSystem",function(){p.adjust(e)}),t(" position",function(){h(e)}),t(" positionSelfEdges",function(){!function(e){r.forEach(e.nodes(),function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),o=r.x+r.width/2,i=r.y,a=n.x-o,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:o+2*a/3,y:i-s},{x:o+5*a/6,y:i-s},{x:o+a,y:i},{x:o+5*a/6,y:i+s},{x:o+2*a/3,y:i+s}],n.label.x=n.x,n.label.y=n.y}})}(e)}),t(" removeBorderNodes",function(){!function(e){r.forEach(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),o=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(r.last(n.borderLeft)),s=e.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(i.y-o.y),n.x=a.x+n.width/2,n.y=o.y+n.height/2}}),r.forEach(e.nodes(),function(t){"border"===e.node(t).dummy&&e.removeNode(t)})}(e)}),t(" normalize.undo",function(){i.undo(e)}),t(" fixupEdgeLabelCoords",function(){!function(e){r.forEach(e.edges(),function(t){var n=e.edge(t);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}(e)}),t(" undoCoordinateSystem",function(){p.undo(e)}),t(" translateGraph",function(){!function(e){var t=Number.POSITIVE_INFINITY,n=0,o=Number.POSITIVE_INFINITY,i=0,a=e.graph(),s=a.marginx||0,u=a.marginy||0;function l(e){var r=e.x,a=e.y,s=e.width,u=e.height;t=Math.min(t,r-s/2),n=Math.max(n,r+s/2),o=Math.min(o,a-u/2),i=Math.max(i,a+u/2)}r.forEach(e.nodes(),function(t){l(e.node(t))}),r.forEach(e.edges(),function(t){var n=e.edge(t);r.has(n,"x")&&l(n)}),t-=s,o-=u,r.forEach(e.nodes(),function(n){var r=e.node(n);r.x-=t,r.y-=o}),r.forEach(e.edges(),function(n){var i=e.edge(n);r.forEach(i.points,function(e){e.x-=t,e.y-=o}),r.has(i,"x")&&(i.x-=t),r.has(i,"y")&&(i.y-=o)}),a.width=n-t+s,a.height=i-o+u}(e)}),t(" assignNodeIntersects",function(){!function(e){r.forEach(e.edges(),function(t){var n,r,o=e.edge(t),i=e.node(t.v),a=e.node(t.w);o.points?(n=o.points[0],r=o.points[o.points.length-1]):(o.points=[],n=a,r=i),o.points.unshift(g.intersectRect(i,n)),o.points.push(g.intersectRect(a,r))})}(e)}),t(" reversePoints",function(){!function(e){r.forEach(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}(e)}),t(" acyclic.undo",function(){o.undo(e)})}(t,n)}),n(" updateInputGraph",function(){!function(e,t){r.forEach(e.nodes(),function(n){var r=e.node(n),o=t.node(n);r&&(r.x=o.x,r.y=o.y,t.children(n).length&&(r.width=o.width,r.height=o.height))}),r.forEach(e.edges(),function(n){var o=e.edge(n),i=t.edge(n);o.points=i.points,r.has(i,"x")&&(o.x=i.x,o.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)})})};var m=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],_=["width","height"],x={width:0,height:0},w=["minlen","weight","width","height","labeloffset"],k={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},E=["labelpos"];function C(e,t){return r.mapValues(r.pick(e,t),Number)}function P(e){var t={};return r.forEach(e,function(e,n){t[n.toLowerCase()]=e}),t}},function(e,t,n){var r=n(74),o=1,i=4;e.exports=function(e){return r(e,o|i)}},function(e,t,n){var r=n(49),o=n(22),i=n(50),a=n(25),s=Object.prototype,u=s.hasOwnProperty,l=r(function(e,t){e=Object(e);var n=-1,r=t.length,l=r>2?t[2]:void 0;for(l&&i(t[0],t[1],l)&&(r=1);++n<r;)for(var c=t[n],f=a(c),p=-1,d=f.length;++p<d;){var h=f[p],g=e[h];(void 0===g||o(g,s[h])&&!u.call(e,h))&&(e[h]=c[h])}return e});e.exports=l},function(e,t,n){var r=n(262)(n(263));e.exports=r},function(e,t,n){var r=n(14),o=n(13),i=n(16);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!o(t)){var u=r(n,3);t=i(t),n=function(e){return u(s[e],e,s)}}var l=e(t,n,a);return l>-1?s[u?t[l]:l]:void 0}}},function(e,t,n){var r=n(113),o=n(14),i=n(264),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var u=null==n?0:i(n);return u<0&&(u=a(s+u,0)),r(e,o(t,3),u)}},function(e,t,n){var r=n(121);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(9),o=n(27),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?i:+e}},function(e,t,n){var r=n(65),o=n(94),i=n(25);e.exports=function(e,t){return null==e?e:r(e,o(t),i)}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var r=n(41),o=n(64),i=n(14);e.exports=function(e,t){var n={};return t=i(t,3),o(e,function(e,o,i){r(n,o,t(e,o,i))}),n}},function(e,t,n){var r=n(70),o=n(270),i=n(19);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t){e.exports=function(e,t){return e>t}},function(e,t,n){var r=n(272),o=n(276)(function(e,t,n){r(e,t,n)});e.exports=o},function(e,t,n){var r=n(35),o=n(123),i=n(65),a=n(273),s=n(9),u=n(25),l=n(124);e.exports=function e(t,n,c,f,p){t!==n&&i(n,function(i,u){if(p||(p=new r),s(i))a(t,n,u,c,e,f,p);else{var d=f?f(l(t,u),i,u+"",t,n,p):void 0;void 0===d&&(d=i),o(t,u,d)}},u)}},function(e,t,n){var r=n(123),o=n(80),i=n(89),a=n(81),s=n(90),u=n(31),l=n(5),c=n(114),f=n(24),p=n(29),d=n(9),h=n(274),g=n(32),v=n(124),m=n(275);e.exports=function(e,t,n,y,b,_,x){var w=v(e,n),k=v(t,n),E=x.get(k);if(E)r(e,n,E);else{var C=_?_(w,k,n+"",e,t,x):void 0,P=void 0===C;if(P){var O=l(k),S=!O&&f(k),N=!O&&!S&&g(k);C=k,O||S||N?l(w)?C=w:c(w)?C=a(w):S?(P=!1,C=o(k,!0)):N?(P=!1,C=i(k,!0)):C=[]:h(k)||u(k)?(C=w,u(w)?C=m(w):d(w)&&!p(w)||(C=s(k))):P=!1}P&&(x.set(k,C),b(C,k,y,_,x),x.delete(k)),r(e,n,C)}}},function(e,t,n){var r=n(18),o=n(45),i=n(12),a="[object Object]",s=Function.prototype,u=Object.prototype,l=s.toString,c=u.hasOwnProperty,f=l.call(Object);e.exports=function(e){if(!i(e)||r(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==f}},function(e,t,n){var r=n(30),o=n(25);e.exports=function(e){return r(e,o(e))}},function(e,t,n){var r=n(49),o=n(50);e.exports=function(e){return r(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t})}},function(e,t,n){var r=n(70),o=n(125),i=n(19);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t,n){var r=n(70),o=n(14),i=n(125);e.exports=function(e,t){return e&&e.length?r(e,o(t,2),i):void 0}},function(e,t,n){var r=n(11);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(281),o=n(284)(function(e,t){return null==e?{}:r(e,t)});e.exports=o},function(e,t,n){var r=n(282),o=n(103);e.exports=function(e,t){return r(e,t,function(t,n){return o(e,n)})}},function(e,t,n){var r=n(67),o=n(283),i=n(47);e.exports=function(e,t,n){for(var a=-1,s=t.length,u={};++a<s;){var l=t[a],c=r(e,l);n(c,l)&&o(u,i(l,e),c)}return u}},function(e,t,n){var r=n(40),o=n(47),i=n(42),a=n(9),s=n(33);e.exports=function(e,t,n,u){if(!a(e))return e;for(var l=-1,c=(t=o(t,e)).length,f=c-1,p=e;null!=p&&++l<c;){var d=s(t[l]),h=n;if(l!=f){var g=p[d];void 0===(h=u?u(g,d,p):void 0)&&(h=a(g)?g:i(t[l+1])?[]:{})}r(p,d,h),p=p[d]}return e}},function(e,t,n){var r=n(122),o=n(111),i=n(112);e.exports=function(e){return i(o(e,void 0,r),e+"")}},function(e,t,n){var r=n(286)();e.exports=r},function(e,t,n){var r=n(287),o=n(50),i=n(121);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},function(e,t){var n=Math.ceil,r=Math.max;e.exports=function(e,t,o,i){for(var a=-1,s=r(n((t-e)/(o||1)),0),u=Array(s);s--;)u[i?s:++a]=e,e+=o;return u}},function(e,t,n){var r=n(69),o=n(289),i=n(49),a=n(50),s=i(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])});e.exports=s},function(e,t,n){var r=n(48),o=n(14),i=n(109),a=n(290),s=n(43),u=n(291),l=n(19);e.exports=function(e,t,n){var c=-1;t=r(t.length?t:[l],s(o));var f=i(e,function(e,n,o){return{criteria:r(t,function(t){return t(e)}),index:++c,value:e}});return a(f,function(e,t){return u(e,t,n)})}},function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t,n){var r=n(292);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,a=t.criteria,s=i.length,u=n.length;++o<s;){var l=r(i[o],a[o]);if(l)return o>=u?l:l*("desc"==n[o]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(27);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,a=r(e),s=void 0!==t,u=null===t,l=t==t,c=r(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||o&&s&&l||!n&&l||!i)return 1;if(!o&&!a&&!c&&e<t||c&&n&&i&&!o&&!a||u&&n&&i||!s&&i||!l)return-1}return 0}},function(e,t,n){var r=n(102),o=0;e.exports=function(e){var t=++o;return r(e)+t}},function(e,t,n){var r=n(40),o=n(295);e.exports=function(e,t){return o(e||[],t||[],r)}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var s=r<i?t[r]:void 0;n(a,e[r],s)}return a}},function(e,t,n){"use strict";var r=n(3),o=n(297);e.exports={run:function(e){var t="greedy"===e.graph().acyclicer?o(e,function(e){return function(t){return e.edge(t).weight}}(e)):function(e){var t=[],n={},o={};return r.forEach(e.nodes(),function i(a){r.has(o,a)||(o[a]=!0,n[a]=!0,r.forEach(e.outEdges(a),function(e){r.has(n,e.w)?t.push(e):i(e.w)}),delete n[a])}),t}(e);r.forEach(t,function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,r.uniqueId("rev"))})},undo:function(e){r.forEach(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}}},function(e,t,n){var r=n(3),o=n(10).Graph,i=n(298);e.exports=function(e,t){if(e.nodeCount()<=1)return[];var n=function(e,t){var n=new o,a=0,s=0;r.forEach(e.nodes(),function(e){n.setNode(e,{v:e,in:0,out:0})}),r.forEach(e.edges(),function(e){var r=n.edge(e.v,e.w)||0,o=t(e),i=r+o;n.setEdge(e.v,e.w,i),s=Math.max(s,n.node(e.v).out+=o),a=Math.max(a,n.node(e.w).in+=o)});var l=r.range(s+a+3).map(function(){return new i}),c=a+1;return r.forEach(n.nodes(),function(e){u(l,c,n.node(e))}),{graph:n,buckets:l,zeroIdx:c}}(e,t||a),l=function(e,t,n){var r,o=[],i=t[t.length-1],a=t[0];for(;e.nodeCount();){for(;r=a.dequeue();)s(e,t,n,r);for(;r=i.dequeue();)s(e,t,n,r);if(e.nodeCount())for(var u=t.length-2;u>0;--u)if(r=t[u].dequeue()){o=o.concat(s(e,t,n,r,!0));break}}return o}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(l,function(t){return e.outEdges(t.v,t.w)}),!0)};var a=r.constant(1);function s(e,t,n,o,i){var a=i?[]:void 0;return r.forEach(e.inEdges(o.v),function(r){var o=e.edge(r),s=e.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,u(t,n,s)}),r.forEach(e.outEdges(o.v),function(r){var o=e.edge(r),i=r.w,a=e.node(i);a.in-=o,u(t,n,a)}),e.removeNode(o.v),a}function u(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},function(e,t){function n(){var e={};e._next=e._prev=e,this._sentinel=e}function r(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function o(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=n,n.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return r(t),t},n.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&r(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},n.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,o)),n=n._prev;return"["+e.join(", ")+"]"}},function(e,t,n){"use strict";var r=n(3),o=n(7);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),function(t){!function(e,t){var n,r,i,a=t.v,s=e.node(a).rank,u=t.w,l=e.node(u).rank,c=t.name,f=e.edge(t),p=f.labelRank;if(l===s+1)return;for(e.removeEdge(t),i=0,++s;s<l;++i,++s)f.points=[],r={width:0,height:0,edgeLabel:f,edgeObj:t,rank:s},n=o.addDummyNode(e,"edge",r,"_d"),s===p&&(r.width=f.width,r.height=f.height,r.dummy="edge-label",r.labelpos=f.labelpos),e.setEdge(a,n,{weight:f.weight},c),0===i&&e.graph().dummyChains.push(n),a=n;e.setEdge(a,u,{weight:f.weight},c)}(e,t)})},undo:function(e){r.forEach(e.graph().dummyChains,function(t){var n,r=e.node(t),o=r.edgeLabel;for(e.setEdge(r.edgeObj,o);r.dummy;)n=e.successors(t)[0],e.removeNode(t),o.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(o.x=r.x,o.y=r.y,o.width=r.width,o.height=r.height),t=n,r=e.node(t)})}}},function(e,t,n){"use strict";var r=n(51).longestPath,o=n(126),i=n(301);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":s(e);break;case"tight-tree":!function(e){r(e),o(e)}(e);break;case"longest-path":a(e);break;default:s(e)}};var a=r;function s(e){i(e)}},function(e,t,n){"use strict";var r=n(3),o=n(126),i=n(51).slack,a=n(51).longestPath,s=n(10).alg.preorder,u=n(10).alg.postorder,l=n(7).simplify;function c(e){e=l(e),a(e);var t,n=o(e);for(d(n),f(n,e);t=h(n);)v(n,e,t,g(n,e,t))}function f(e,t){var n=u(e,e.nodes());n=n.slice(0,n.length-1),r.forEach(n,function(n){!function(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=p(e,t,n)}(e,t,n)})}function p(e,t,n){var o=e.node(n).parent,i=!0,a=t.edge(n,o),s=0;return a||(i=!1,a=t.edge(o,n)),s=a.weight,r.forEach(t.nodeEdges(n),function(r){var a,u,l=r.v===n,c=l?r.w:r.v;if(c!==o){var f=l===i,p=t.edge(r).weight;if(s+=f?p:-p,a=n,u=c,e.hasEdge(a,u)){var d=e.edge(n,c).cutvalue;s+=f?-d:d}}}),s}function d(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,n,o,i,a){var s=o,u=t.node(i);n[i]=!0;r.forEach(t.neighbors(i),function(a){r.has(n,a)||(o=e(t,n,o,a,i))});u.low=s;u.lim=o++;a?u.parent=a:delete u.parent;return o}(e,{},1,t)}function h(e){return r.find(e.edges(),function(t){return e.edge(t).cutvalue<0})}function g(e,t,n){var o=n.v,a=n.w;t.hasEdge(o,a)||(o=n.w,a=n.v);var s=e.node(o),u=e.node(a),l=s,c=!1;s.lim>u.lim&&(l=u,c=!0);var f=r.filter(t.edges(),function(t){return c===m(e,e.node(t.v),l)&&c!==m(e,e.node(t.w),l)});return r.minBy(f,function(e){return i(t,e)})}function v(e,t,n,o){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(o.v,o.w,{}),d(e),f(e,t),function(e,t){var n=r.find(e.nodes(),function(e){return!t.node(e).parent}),o=s(e,n);o=o.slice(1),r.forEach(o,function(n){var r=e.node(n).parent,o=t.edge(n,r),i=!1;o||(o=t.edge(r,n),i=!0),t.node(n).rank=t.node(r).rank+(i?o.minlen:-o.minlen)})}(e,t)}function m(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=c,c.initLowLimValues=d,c.initCutValues=f,c.calcCutValue=p,c.leaveEdge=h,c.enterEdge=g,c.exchangeEdges=v},function(e,t,n){var r=n(3);e.exports=function(e){var t=function(e){var t={},n=0;return r.forEach(e.children(),function o(i){var a=n;r.forEach(e.children(i),o),t[i]={low:a,lim:n++}}),t}(e);r.forEach(e.graph().dummyChains,function(n){for(var r=e.node(n),o=r.edgeObj,i=function(e,t,n,r){var o,i,a=[],s=[],u=Math.min(t[n].low,t[r].low),l=Math.max(t[n].lim,t[r].lim);o=n;do{o=e.parent(o),a.push(o)}while(o&&(t[o].low>u||l>t[o].lim));i=o,o=r;for(;(o=e.parent(o))!==i;)s.push(o);return{path:a.concat(s.reverse()),lca:i}}(e,t,o.v,o.w),a=i.path,s=i.lca,u=0,l=a[u],c=!0;n!==o.w;){if(r=e.node(n),c){for(;(l=a[u])!==s&&e.node(l).maxRank<r.rank;)u++;l===s&&(c=!1)}if(!c){for(;u<a.length-1&&e.node(l=a[u+1]).minRank<=r.rank;)u++;l=a[u]}e.setParent(n,l),n=e.successors(n)[0]}})}},function(e,t,n){var r=n(3),o=n(7);e.exports={run:function(e){var t=o.addDummyNode(e,"root",{},"_root"),n=function(e){var t={};return r.forEach(e.children(),function(n){!function n(o,i){var a=e.children(o);a&&a.length&&r.forEach(a,function(e){n(e,i+1)}),t[o]=i}(n,1)}),t}(e),i=r.max(r.values(n))-1,a=2*i+1;e.graph().nestingRoot=t,r.forEach(e.edges(),function(t){e.edge(t).minlen*=a});var s=function(e){return r.reduce(e.edges(),function(t,n){return t+e.edge(n).weight},0)}(e)+1;r.forEach(e.children(),function(u){!function e(t,n,i,a,s,u,l){var c=t.children(l);if(!c.length)return void(l!==n&&t.setEdge(n,l,{weight:0,minlen:i}));var f=o.addBorderNode(t,"_bt"),p=o.addBorderNode(t,"_bb"),d=t.node(l);t.setParent(f,l);d.borderTop=f;t.setParent(p,l);d.borderBottom=p;r.forEach(c,function(r){e(t,n,i,a,s,u,r);var o=t.node(r),c=o.borderTop?o.borderTop:r,d=o.borderBottom?o.borderBottom:r,h=o.borderTop?a:2*a,g=c!==d?1:s-u[l]+1;t.setEdge(f,c,{weight:h,minlen:g,nestingEdge:!0}),t.setEdge(d,p,{weight:h,minlen:g,nestingEdge:!0})});t.parent(l)||t.setEdge(n,f,{weight:0,minlen:s+u[l]})}(e,t,a,s,i,n,u)}),e.graph().nodeRankFactor=a},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.forEach(e.edges(),function(t){var n=e.edge(t);n.nestingEdge&&e.removeEdge(t)})}}},function(e,t,n){var r=n(3),o=n(7);function i(e,t,n,r,i,a){var s={width:0,height:0,rank:a,borderType:t},u=i[t][a-1],l=o.addDummyNode(e,"border",s,n);i[t][a]=l,e.setParent(l,r),u&&e.setEdge(u,l,{weight:1})}e.exports=function(e){r.forEach(e.children(),function t(n){var o=e.children(n),a=e.node(n);o.length&&r.forEach(o,t);if(r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var s=a.minRank,u=a.maxRank+1;s<u;++s)i(e,"borderLeft","_bl",n,a,s),i(e,"borderRight","_br",n,a,s)}})}},function(e,t,n){"use strict";var r=n(3);function o(e){r.forEach(e.nodes(),function(t){i(e.node(t))}),r.forEach(e.edges(),function(t){i(e.edge(t))})}function i(e){var t=e.width;e.width=e.height,e.height=t}function a(e){e.y=-e.y}function s(e){var t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){var t=e.graph().rankdir.toLowerCase();"lr"!==t&&"rl"!==t||o(e)},undo:function(e){var t=e.graph().rankdir.toLowerCase();"bt"!==t&&"rl"!==t||function(e){r.forEach(e.nodes(),function(t){a(e.node(t))}),r.forEach(e.edges(),function(t){var n=e.edge(t);r.forEach(n.points,a),r.has(n,"y")&&a(n)})}(e);"lr"!==t&&"rl"!==t||(!function(e){r.forEach(e.nodes(),function(t){s(e.node(t))}),r.forEach(e.edges(),function(t){var n=e.edge(t);r.forEach(n.points,s),r.has(n,"x")&&s(n)})}(e),o(e))}}},function(e,t,n){"use strict";var r=n(3),o=n(307),i=n(308),a=n(309),s=n(313),u=n(314),l=n(10).Graph,c=n(7);function f(e,t,n){return r.map(t,function(t){return s(e,t,n)})}function p(e,t){var n=new l;r.forEach(e,function(e){var o=e.graph().root,i=a(e,o,n,t);r.forEach(i.vs,function(t,n){e.node(t).order=n}),u(e,n,i.vs)})}function d(e,t){r.forEach(t,function(t){r.forEach(t,function(t,n){e.node(t).order=n})})}e.exports=function(e){var t=c.maxRank(e),n=f(e,r.range(1,t+1),"inEdges"),a=f(e,r.range(t-1,-1,-1),"outEdges"),s=o(e);d(e,s);for(var u,l=Number.POSITIVE_INFINITY,h=0,g=0;g<4;++h,++g){p(h%2?n:a,h%4>=2),s=c.buildLayerMatrix(e);var v=i(e,s);v<l&&(g=0,u=r.cloneDeep(s),l=v)}d(e,u)}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e){var t={},n=r.filter(e.nodes(),function(t){return!e.children(t).length}),o=r.max(r.map(n,function(t){return e.node(t).rank})),i=r.map(r.range(o+1),function(){return[]});var a=r.sortBy(n,function(t){return e.node(t).rank});return r.forEach(a,function n(o){if(!r.has(t,o)){t[o]=!0;var a=e.node(o);i[a.rank].push(o),r.forEach(e.successors(o),n)}}),i}},function(e,t,n){"use strict";var r=n(3);function o(e,t,n){for(var o=r.zipObject(n,r.map(n,function(e,t){return t})),i=r.flatten(r.map(t,function(t){return r.sortBy(r.map(e.outEdges(t),function(t){return{pos:o[t.w],weight:e.edge(t).weight}}),"pos")}),!0),a=1;a<n.length;)a<<=1;var s=2*a-1;a-=1;var u=r.map(new Array(s),function(){return 0}),l=0;return r.forEach(i.forEach(function(e){var t=e.pos+a;u[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=u[t+1]),u[t=t-1>>1]+=e.weight;l+=e.weight*n})),l}e.exports=function(e,t){for(var n=0,r=1;r<t.length;++r)n+=o(e,t[r-1],t[r]);return n}},function(e,t,n){var r=n(3),o=n(310),i=n(311),a=n(312);e.exports=function e(t,n,s,u){var l=t.children(n),c=t.node(n),f=c?c.borderLeft:void 0,p=c?c.borderRight:void 0,d={};f&&(l=r.filter(l,function(e){return e!==f&&e!==p}));var h=o(t,l);r.forEach(h,function(n){if(t.children(n.v).length){var o=e(t,n.v,s,u);d[n.v]=o,r.has(o,"barycenter")&&(i=n,a=o,r.isUndefined(i.barycenter)?(i.barycenter=a.barycenter,i.weight=a.weight):(i.barycenter=(i.barycenter*i.weight+a.barycenter*a.weight)/(i.weight+a.weight),i.weight+=a.weight))}var i,a});var g=i(h,s);!function(e,t){r.forEach(e,function(e){e.vs=r.flatten(e.vs.map(function(e){return t[e]?t[e].vs:e}),!0)})}(g,d);var v=a(g,u);if(f&&(v.vs=r.flatten([f,v.vs,p],!0),t.predecessors(f).length)){var m=t.node(t.predecessors(f)[0]),y=t.node(t.predecessors(p)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+m.order+y.order)/(v.weight+2),v.weight+=2}return v}},function(e,t,n){var r=n(3);e.exports=function(e,t){return r.map(t,function(t){var n=e.inEdges(t);if(n.length){var o=r.reduce(n,function(t,n){var r=e.edge(n),o=e.node(n.v);return{sum:t.sum+r.weight*o.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:o.sum/o.weight,weight:o.weight}}return{v:t}})}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){var n={};return r.forEach(e,function(e,t){var o=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};r.isUndefined(e.barycenter)||(o.barycenter=e.barycenter,o.weight=e.weight)}),r.forEach(t.edges(),function(e){var t=n[e.v],o=n[e.w];r.isUndefined(t)||r.isUndefined(o)||(o.indegree++,t.out.push(n[e.w]))}),function(e){var t=[];function n(e){return function(t){var n,o,i,a;t.merged||(r.isUndefined(t.barycenter)||r.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&(o=t,i=0,a=0,(n=e).weight&&(i+=n.barycenter*n.weight,a+=n.weight),o.weight&&(i+=o.barycenter*o.weight,a+=o.weight),n.vs=o.vs.concat(n.vs),n.barycenter=i/a,n.weight=a,n.i=Math.min(o.i,n.i),o.merged=!0)}}function o(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}for(;e.length;){var i=e.pop();t.push(i),r.forEach(i.in.reverse(),n(i)),r.forEach(i.out,o(i))}return r.map(r.filter(t,function(e){return!e.merged}),function(e){return r.pick(e,["vs","i","barycenter","weight"])})}(r.filter(n,function(e){return!e.indegree}))}},function(e,t,n){var r=n(3),o=n(7);function i(e,t,n){for(var o;t.length&&(o=r.last(t)).i<=n;)t.pop(),e.push(o.vs),n++;return n}e.exports=function(e,t){var n=o.partition(e,function(e){return r.has(e,"barycenter")}),a=n.lhs,s=r.sortBy(n.rhs,function(e){return-e.i}),u=[],l=0,c=0,f=0;a.sort((p=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:p?t.i-e.i:e.i-t.i})),f=i(u,s,f),r.forEach(a,function(e){f+=e.vs.length,u.push(e.vs),l+=e.barycenter*e.weight,c+=e.weight,f=i(u,s,f)});var p;var d={vs:r.flatten(u,!0)};c&&(d.barycenter=l/c,d.weight=c);return d}},function(e,t,n){var r=n(3),o=n(10).Graph;e.exports=function(e,t,n){var i=function(e){var t;for(;e.hasNode(t=r.uniqueId("_root")););return t}(e),a=new o({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(t){return e.node(t)});return r.forEach(e.nodes(),function(o){var s=e.node(o),u=e.parent(o);(s.rank===t||s.minRank<=t&&t<=s.maxRank)&&(a.setNode(o),a.setParent(o,u||i),r.forEach(e[n](o),function(t){var n=t.v===o?t.w:t.v,i=a.edge(n,o),s=r.isUndefined(i)?0:i.weight;a.setEdge(n,o,{weight:e.edge(t).weight+s})}),r.has(s,"minRank")&&a.setNode(o,{borderLeft:s.borderLeft[t],borderRight:s.borderRight[t]}))}),a}},function(e,t,n){var r=n(3);e.exports=function(e,t,n){var o,i={};r.forEach(n,function(n){for(var r,a,s=e.parent(n);s;){if((r=e.parent(s))?(a=i[r],i[r]=s):(a=o,o=s),a&&a!==s)return void t.setEdge(a,s);s=r}})}},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(316).positionX;e.exports=function(e){(function(e){var t=o.buildLayerMatrix(e),n=e.graph().ranksep,i=0;r.forEach(t,function(t){var o=r.max(r.map(t,function(t){return e.node(t).height}));r.forEach(t,function(t){e.node(t).y=i+o/2}),i+=o+n})})(e=o.asNonCompoundGraph(e)),r.forEach(i(e),function(t,n){e.node(n).x=t})}},function(e,t,n){"use strict";var r=n(3),o=n(10).Graph,i=n(7);function a(e,t){var n={};return r.reduce(t,function(t,o){var i=0,a=0,s=t.length,l=r.last(o);return r.forEach(o,function(t,c){var f=function(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),function(t){return e.node(t).dummy})}(e,t),p=f?e.node(f).order:s;(f||t===l)&&(r.forEach(o.slice(a,c+1),function(t){r.forEach(e.predecessors(t),function(r){var o=e.node(r),a=o.order;!(a<i||p<a)||o.dummy&&e.node(t).dummy||u(n,r,t)})}),a=c+1,i=p)}),o}),n}function s(e,t){var n={};function o(t,o,i,a,s){var l;r.forEach(r.range(o,i),function(o){l=t[o],e.node(l).dummy&&r.forEach(e.predecessors(l),function(t){var r=e.node(t);r.dummy&&(r.order<a||r.order>s)&&u(n,t,l)})})}return r.reduce(t,function(t,n){var i,a=-1,s=0;return r.forEach(n,function(r,u){if("border"===e.node(r).dummy){var l=e.predecessors(r);l.length&&(i=e.node(l[0]).order,o(n,s,u,a,i),s=u,a=i)}o(n,s,n.length,i,t.length)}),n}),n}function u(e,t,n){if(t>n){var r=t;t=n,n=r}var o=e[t];o||(e[t]=o={}),o[n]=!0}function l(e,t,n){if(t>n){var o=t;t=n,n=o}return r.has(e[t],n)}function c(e,t,n,o){var i={},a={},s={};return r.forEach(t,function(e){r.forEach(e,function(e,t){i[e]=e,a[e]=e,s[e]=t})}),r.forEach(t,function(e){var t=-1;r.forEach(e,function(e){var u=o(e);if(u.length)for(var c=((u=r.sortBy(u,function(e){return s[e]})).length-1)/2,f=Math.floor(c),p=Math.ceil(c);f<=p;++f){var d=u[f];a[e]===e&&t<s[d]&&!l(n,e,d)&&(a[d]=e,a[e]=i[e]=i[d],t=s[d])}})}),{root:i,align:a}}function f(e,t,n,i,a){var s={},u=function(e,t,n,i){var a=new o,s=e.graph(),u=function(e,t,n){return function(o,i,a){var s,u=o.node(i),l=o.node(a),c=0;if(c+=u.width/2,r.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":s=-u.width/2;break;case"r":s=u.width/2}if(s&&(c+=n?s:-s),s=0,c+=(u.dummy?t:e)/2,c+=(l.dummy?t:e)/2,c+=l.width/2,r.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":s=l.width/2;break;case"r":s=-l.width/2}return s&&(c+=n?s:-s),s=0,c}}(s.nodesep,s.edgesep,i);return r.forEach(t,function(t){var o;r.forEach(t,function(t){var r=n[t];if(a.setNode(r),o){var i=n[o],s=a.edge(i,r);a.setEdge(i,r,Math.max(u(e,t,o),s||0))}o=t})}),a}(e,t,n,a),l=a?"borderLeft":"borderRight";function c(e,t){for(var n=u.nodes(),r=n.pop(),o={};r;)o[r]?e(r):(o[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}return c(function(e){s[e]=u.inEdges(e).reduce(function(e,t){return Math.max(e,s[t.v]+u.edge(t))},0)},u.predecessors.bind(u)),c(function(t){var n=u.outEdges(t).reduce(function(e,t){return Math.min(e,s[t.w]-u.edge(t))},Number.POSITIVE_INFINITY),r=e.node(t);n!==Number.POSITIVE_INFINITY&&r.borderType!==l&&(s[t]=Math.max(s[t],n))},u.successors.bind(u)),r.forEach(i,function(e){s[e]=s[n[e]]}),s}function p(e,t){return r.minBy(r.values(t),function(t){var n=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return r.forIn(t,function(t,r){var i=function(e,t){return e.node(t).width}(e,r)/2;n=Math.max(t+i,n),o=Math.min(t-i,o)}),n-o})}function d(e,t){var n=r.values(t),o=r.min(n),i=r.max(n);r.forEach(["u","d"],function(n){r.forEach(["l","r"],function(a){var s,u=n+a,l=e[u];if(l!==t){var c=r.values(l);(s="l"===a?o-r.min(c):i-r.max(c))&&(e[u]=r.mapValues(l,function(e){return e+s}))}})})}function h(e,t){return r.mapValues(e.ul,function(n,o){if(t)return e[t.toLowerCase()][o];var i=r.sortBy(r.map(e,o));return(i[1]+i[2])/2})}e.exports={positionX:function(e){var t,n=i.buildLayerMatrix(e),o=r.merge(a(e,n),s(e,n)),u={};r.forEach(["u","d"],function(i){t="u"===i?n:r.values(n).reverse(),r.forEach(["l","r"],function(n){"r"===n&&(t=r.map(t,function(e){return r.values(e).reverse()}));var a=("u"===i?e.predecessors:e.successors).bind(e),s=c(e,t,o,a),l=f(e,t,s.root,s.align,"r"===n);"r"===n&&(l=r.mapValues(l,function(e){return-e})),u[i+n]=l})});var l=p(e,u);return d(u,l),h(u,e.graph().align)},findType1Conflicts:a,findType2Conflicts:s,addConflict:u,hasConflict:l,verticalAlignment:c,horizontalCompaction:f,alignCoordinates:d,findSmallestWidthAlignment:p,balance:h}},function(e,t,n){var r=n(3),o=n(7),i=n(10).Graph;e.exports={debugOrdering:function(e){var t=o.buildLayerMatrix(e),n=new i({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),function(t){n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)}),r.forEach(e.edges(),function(e){n.setEdge(e.v,e.w,{},e.name)}),r.forEach(t,function(e,t){var o="layer"+t;n.setNode(o,{rank:"same"}),r.reduce(e,function(e,t){return n.setEdge(e,t,{style:"invis"}),t})}),n}}},function(e,t){e.exports="0.8.4"},function(e,t,n){var r=n(320);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(21)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(20)(!1)).push([e.i,".srd-diagram{position:relative;flex-grow:1;display:flex;cursor:move;overflow:hidden}.srd-diagram__selector{position:absolute;background-color:rgba(0,192,255,0.2);border:solid 2px #00c0ff}.srd-link-layer{position:absolute;height:100%;width:100%;transform-origin:0 0;overflow:visible !important;top:0;bottom:0;left:0;right:0}.srd-node-layer{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;transform-origin:0 0;width:100%;height:100%}.srd-node{position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;cursor:move;pointer-events:all}.srd-node--selected>*{border-color:#00c0ff !important}.srd-port{width:15px;height:15px;background:rgba(255,255,255,0.1)}.srd-port:hover,.srd-port.selected{background:#c0ff00}.srd-default-node{background-color:#1e1e1e;border-radius:5px;font-family:sans-serif;color:white;border:solid 2px black;overflow:visible;font-size:11px}.srd-default-node__title{background:rgba(0,0,0,0.3);display:flex;white-space:nowrap}.srd-default-node__title>*{align-self:center}.srd-default-node__title .fa{padding:5px;opacity:0.2;cursor:pointer}.srd-default-node__title .fa:hover{opacity:1.0}.srd-default-node__name{flex-grow:1;padding:5px 5px}.srd-default-node__ports{display:flex;background-image:linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.2))}.srd-default-node__in,.srd-default-node__out{flex-grow:1;display:flex;flex-direction:column}.srd-default-port{display:flex;margin-top:1px}.srd-default-port>*{align-self:center}.srd-default-port__name{padding:0 5px}.srd-default-port--out{justify-content:flex-end}.srd-default-port--out .srd-default-port__name{justify-content:flex-end;text-align:right}.srd-default-label{background:rgba(70,70,70,0.8);border:1px solid #333;border-radius:4px;color:#fff;display:inline-block;font-size:smaller;padding:5px}@keyframes dash{from{stroke-dashoffset:24}to{stroke-dashoffset:0}}.srd-default-link path{fill:none;pointer-events:all}.srd-default-link--path-selected{stroke:#00c0ff !important;stroke-dasharray:10,2;animation:dash 1s linear infinite}.srd-default-link__label{pointer-events:none}.srd-default-link__label>div{display:inline-block;position:absolute}.srd-default-link__point{fill:rgba(255,255,255,0.5)}.srd-default-link--point-selected{fill:#00c0ff}\n",""])},function(e,t,n){var r=n(322);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(21)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(20)(!1)).push([e.i,'#node-editor-graph-root {\n display: grid;\n grid-template-rows: calc(100% - 120px) 120px;\n height: 100%;\n width: 100%;\n background: #464646;\n font: 14px "acumin-pro"; }\n\n#nodeList {\n grid-row: 1 / span 2;\n grid-column: 1; }\n\n#leftGrab {\n grid-row: 1 / span 2;\n grid-column: 2;\n cursor: ew-resize; }\n\n#rightGrab {\n grid-row: 1 / span 2;\n grid-column: 4;\n cursor: ew-resize; }\n\n.diagram-container {\n grid-row: 1;\n grid-column: 3;\n background: #5f5b60;\n width: 100%;\n height: 100%; }\n .diagram-container .diagram {\n width: 100%;\n height: 100%; }\n\n.right-panel {\n grid-row: 1 / span 2;\n grid-column: 5;\n display: grid;\n grid-template-rows: 1fr 30px auto;\n grid-template-columns: 100%; }\n .right-panel #propertyTab {\n grid-row: 1;\n grid-column: 1; }\n .right-panel #preview-mesh-bar {\n grid-row: 2;\n grid-column: 1;\n display: flex;\n color: white;\n align-items: center;\n font-size: 18px; }\n .right-panel #preview-mesh-bar .button {\n display: grid;\n justify-content: center;\n align-content: center;\n height: 30px;\n width: calc(100% / 4);\n cursor: pointer; }\n .right-panel #preview-mesh-bar .button:hover {\n background: #337ab7;\n color: white;\n opacity: 0.8; }\n .right-panel #preview-mesh-bar .button.selected {\n background: #337ab7;\n color: white; }\n .right-panel #preview {\n border-top: 1px solid #555555;\n grid-row: 3;\n grid-column: 1;\n width: 100%;\n display: grid;\n outline: 0 !important; }\n .right-panel #preview #preview-canvas {\n width: 100%;\n height: 100%;\n outline: 0 !important; }\n\n#log-console {\n grid-row: 2;\n grid-column: 3; }\n\n.dialog-container {\n position: absolute;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.6);\n display: grid;\n font-family: "acumin-pro";\n top: 0; }\n .dialog-container .dialog {\n align-self: center;\n justify-self: center;\n min-height: 140px;\n max-width: 400px;\n border-radius: 10px;\n background: white;\n display: grid;\n grid-template-columns: 100%;\n grid-template-rows: calc(100% - 50px) 50px; }\n .dialog-container .dialog .dialog-message {\n grid-row: 1;\n grid-column: 1;\n margin-top: 20px;\n padding: 10px;\n font-size: 18px;\n color: black; }\n .dialog-container .dialog .dialog-buttons {\n grid-row: 2;\n grid-column: 1;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%;\n color: white; }\n .dialog-container .dialog .dialog-buttons .dialog-button-ok {\n cursor: pointer;\n justify-self: center;\n background: green;\n min-width: 80px;\n justify-content: center;\n display: grid;\n align-content: center;\n align-self: center;\n height: 35px;\n border-radius: 10px; }\n .dialog-container .dialog .dialog-buttons .dialog-button-ok:hover {\n opacity: 0.8; }\n .dialog-container .dialog .dialog-buttons .dialog-button-ok.error {\n background: red; }\n',""])},function(e,t,n){var r=n(324);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(21)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(20)(!1)).push([e.i,".srd-node {\n width: 200px; }\n\n.srd-node--selected .input-port-border {\n border-color: #00c0ff !important; }\n\n.srd-node--selected .output-port-border {\n border-color: #00c0ff !important; }\n\n.srd-default-link--path-selected {\n animation: 0s !important; }\n\n.srd-port {\n grid-column: 1;\n grid-row: 1;\n background: #2796B2;\n border-radius: 10px;\n transform: scale(1); }\n .srd-port.connected {\n background: #CAB422; }\n .srd-port:hover {\n background: greenyellow !important; }\n\n.diagramBlock {\n background: white;\n width: 100%;\n border: 4px solid black;\n border-radius: 20px;\n display: grid;\n grid-template-rows: 30px auto;\n grid-template-columns: 50% 50%; }\n .diagramBlock.input {\n background: #40866E;\n color: white; }\n .diagramBlock.input .value {\n grid-row: 2; }\n .diagramBlock.input .outputs {\n transform: translateY(5px); }\n .diagramBlock.remap {\n color: white;\n background: #4086BB; }\n .diagramBlock.remap .value {\n grid-row: 2; }\n .diagramBlock.remap .outputs, .diagramBlock.remap .inputs {\n transform: translateY(5px); }\n .diagramBlock.attribute {\n background: #40866E; }\n .diagramBlock.output {\n background: #6a2c83;\n color: white; }\n .diagramBlock.output .inputs {\n color: white; }\n .diagramBlock .header {\n grid-row: 1;\n grid-column: 1 / span 2;\n border: 4px solid black;\n border-top-right-radius: 16px;\n border-top-left-radius: 16px;\n font-size: 16px;\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n background: black;\n color: white; }\n .diagramBlock .value {\n grid-row: 3;\n grid-column: 1 / span 2;\n height: 34px;\n text-align: center;\n font-size: 18px;\n font-weight: bold;\n margin: 0 10px; }\n .diagramBlock .value .value-text {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden; }\n .diagramBlock .inputs {\n grid-row: 2;\n grid-column: 1;\n padding-bottom: 8px; }\n .diagramBlock .inputs .input-port {\n display: grid;\n grid-template-columns: 10px calc(100% - 10px);\n grid-template-rows: 100%; }\n .diagramBlock .inputs .input-port .input-port-plug {\n grid-column: 1;\n grid-row: 1;\n display: grid;\n align-content: center;\n margin-left: -8px;\n position: relative; }\n .diagramBlock .inputs .input-port .input-port-plug:hover .input-port-connection {\n background: greenyellow !important; }\n .diagramBlock .inputs .input-port .input-port-plug .input-port-type {\n width: 15px;\n pointer-events: none;\n grid-column: 1;\n grid-row: 1;\n display: grid;\n align-items: center;\n justify-items: center;\n transform: scale(1); }\n .diagramBlock .inputs .input-port .input-port-plug .input-port-type img {\n width: 12px; }\n .diagramBlock .inputs .input-port .input-port-plug .input-port-border {\n pointer-events: none;\n grid-column: 1;\n grid-row: 1;\n border: 4px solid black;\n width: 4px;\n height: 7px;\n border-right: 0;\n position: absolute;\n border-bottom-left-radius: 10px;\n border-top-left-radius: 10px;\n transform: translateX(-2px) scale(1.2); }\n .diagramBlock .inputs .input-port .input-port-label {\n grid-column: 2;\n grid-row: 1;\n margin-bottom: 2px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis; }\n .diagramBlock .outputs {\n grid-row: 2;\n grid-column: 2;\n padding-bottom: 8px; }\n .diagramBlock .outputs .output-port {\n display: grid;\n grid-template-columns: calc(100% - 10px) 10px;\n grid-template-rows: 100%; }\n .diagramBlock .outputs .output-port .output-port-plug {\n grid-column: 2;\n grid-row: 1;\n display: grid;\n align-content: center;\n position: relative;\n margin-left: 3px; }\n .diagramBlock .outputs .output-port .output-port-plug:hover .output-port-connection {\n background: greenyellow !important; }\n .diagramBlock .outputs .output-port .output-port-plug .output-port-type {\n pointer-events: none;\n grid-column: 1;\n grid-row: 1;\n display: grid;\n align-items: center;\n justify-items: center;\n transform: scale(1); }\n .diagramBlock .outputs .output-port .output-port-plug .output-port-type img {\n width: 12px; }\n .diagramBlock .outputs .output-port .output-port-plug .output-port-border {\n pointer-events: none;\n grid-column: 1;\n grid-row: 1;\n border: 4px solid black;\n width: 4px;\n border-left: 0;\n border-left: 0;\n transform: translateX(9px) scale(1.2);\n border-bottom-right-radius: 10px;\n border-top-right-radius: 10px; }\n .diagramBlock .outputs .output-port .output-port-label {\n text-align: right;\n grid-column: 1;\n grid-row: 1;\n margin-bottom: 2px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis; }\n .diagramBlock.texture-block {\n display: grid;\n grid-template-rows: 30px auto 1fr;\n grid-template-columns: calc(100% - 60px) 60px; }\n .diagramBlock.texture-block .inputs {\n grid-column: 1;\n grid-row: 2; }\n .diagramBlock.texture-block .outputs {\n grid-column: 2;\n grid-row: 2 / span 2; }\n .diagramBlock.texture-block .textureLine {\n height: 140px;\n grid-column: 1;\n grid-row: 3;\n overflow: hidden;\n border-bottom-left-radius: 16px;\n border: black 4px solid;\n border-left: 0px;\n border-bottom: 0px; }\n .diagramBlock.texture-block .textureLine canvas {\n width: 100%;\n height: 100%; }\n",""])}])});