-
Notifications
You must be signed in to change notification settings - Fork 34
/
bundle.js
1 lines (1 loc) · 98.9 KB
/
bundle.js
1
window.ReactAnnotation=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=27)}([function(t,e){t.exports=window.React},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arcBuilder=e.pathBuilder=e.lineBuilder=void 0;var r=n(26);e.lineBuilder=function(t){var e=t.data,n=t.curve,o=void 0===n?r.curveLinear:n,i=t.canvasContext,a=t.className,u=t.classID,l=(0,r.line)().curve(o),s={type:"path",className:a,classID:u,data:e};return i?(l.context(i),s.pathMethods=l):s.attrs={d:l(e)},s},e.pathBuilder=function(t){var e=t.d,n=t.curve,o=void 0===n?r.curveLinear:n,i=t.canvasContext,a=t.className,u=t.classID,l=(0,r.line)().curve(o),s={type:"path",className:a,classID:u};return i?l.context(i):s.attrs={d:e},s},e.arcBuilder=function(t){var e=t.data,n=t.canvasContext,o={type:"path",className:t.className,classID:t.classID,data:e},i=(0,r.arc)().innerRadius(e.innerRadius||0).outerRadius(e.outerRadius||e.radius||2).startAngle(e.startAngle||0).endAngle(e.endAngle||2*Math.PI);return n?i.context(n):o.attrs={d:i()},o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter((function(t){return t})).join(" ").trim()}},function(t,e,n){t.exports=n(28)()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.default,b=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},v=arguments.length>5&&void 0!==arguments[5]?arguments[5]:h.default,m=t.disable,g=void 0===m?[]:m,x=t.connector,O=t.note,w=t.subject,j=t.x,P=t.y,S=t.dx,M=t.dy,T=t.nx,E=t.ny,k=t.color,N=t.className,C=t.onDrag,R=t.onDragStart,D=t.onDragEnd,A=t.editMode,B=t.events,q={type:{curve:l.default,line:a.default,elbow:u.default},end:{dot:s.default,arrow:c.default}};-1===g.indexOf("connector")&&(n=x&&q.type[x.type]||e,o=x&&q.end[x.end]);var X=_(t.editMode);return r.default.createElement(X,y({x:j,y:P,dx:S,dy:M,nx:T,ny:E,color:k,className:N,onDrag:C,onDragStart:R,onDragEnd:D,editMode:A},b,w,{events:B}),n&&r.default.createElement(n,x,o&&r.default.createElement(o,null)),p&&-1===g.indexOf("subject")&&r.default.createElement(p,null),O&&-1===g.indexOf("note")&&(r.default.isValidElement(O)||"function"==typeof O?r.default.createElement(d.default,{noteDefaultProps:i,note:O}):r.default.createElement(v,y({},i,O))))};var r=p(n(0)),o=p(n(13)),i=p(n(25)),a=p(n(9)),u=p(n(6)),l=p(n(10)),s=p(n(15)),c=p(n(17)),f=p(n(5)),h=p(n(11)),d=p(n(42));function p(t){return t&&t.__esModule?t:{default:t}}function y(){return(y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var _=function(t){return t?i.default:o.default}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n(0)),o=i(n(7));function i(t){return t&&t.__esModule?t:{default:t}}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(){return(u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var h=["SubjectCircle","SubjectRect"],d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,c(e).apply(this,arguments))}var n,i,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,t),n=e,(i=[{key:"getComponents",value:function(){}},{key:"render",value:function(){var t,e=this,n=this.props,i=n.editMode,a=n.color,l=n.fill,s=void 0===l?"none":l,c=n.fillOpacity,f=void 0===c?1:c,d=this.getComponents(this.props)||{};i&&(t=[r.default.createElement(o.default,{key:"subject-handle",handleStart:this.props.dragStart,handleStop:this.props.dragEnd,handleDrag:this.props.dragSubject})],d.handles&&(t=t.concat(d.handles.map((function(t,n){return r.default.createElement(o.default,{key:"subjecthandle-".concat(n),handleStart:e.props.dragStart,handleStop:e.props.dragEnd,x:t.x,y:t.y,offsetParent:t.offsetParent&&e.subject,handleDrag:function(n,r){e.props.dragSubjectSettings(n,d.handleFunction(t,r))}})})))));var p=-1!==h.indexOf(this.name);return r.default.createElement("g",u({className:"annotation-subject"},this.props.gAttrs,{ref:function(t){e.subject=t}}),d.components&&d.components.map((function(t,e){var n={};return t?(Object.keys(t.attrs).forEach((function(e){t.attrs[e]&&"text"!==e&&(n[e.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))]=t.attrs[e])})),r.default.createElement(t.type,u({key:e,className:t.className,fill:p&&s||"none",fillOpacity:p&&f,stroke:a},n),t.attrs.text)):null})),t)}}])&&l(n.prototype,i),a&&l(n,a),e}(r.default.Component);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;o(n(0));var r=o(n(31));function o(t){return t&&t.__esModule?t:{default:t}}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,l(e).apply(this,arguments))}var n,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,t),n=e,(o=[{key:"getComponents",value:function(t){var e=t.x,n=t.y,o=t.dy,i=t.dx,a=t.radius,u=t.radiusPadding,l=t.outerRadius,s=t.width,c=t.height;return(0,r.default)({x:e,y:n,dx:i,dy:o,radius:a,radiusPadding:u,outerRadius:l,width:s,height:c})}}])&&a(n.prototype,o),i&&a(n,i),e}(o(n(8)).default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=i(n(0)),o=i(n(3));function i(t){return t&&t.__esModule?t:{default:t}}var a={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchemove",stop:"touchend"}},u={passive:!1},l=function(t,e,n,r){return function(o){o.preventDefault();var i="clientX",l="clientY",s=o.nativeEvent[i],c=o.nativeEvent[l],f=s,h=c;e&&e();var d=function(t){t.preventDefault(),r&&r(t,{deltaX:t[i]-f,deltaY:t[l]-h,oDeltaX:t[i]-s,oDeltaY:t[l]-c}),f=t[i],h=t[l]};document.addEventListener(a[t].move,d,u),document.addEventListener(a[t].stop,(function e(r){r.preventDefault(),document.removeEventListener(a[t].move,d,u),document.removeEventListener(a[t].stop,e,u),n&&n()}),u)}};function s(t){var e=t.x,n=void 0===e?0:e,o=t.y,i=void 0===o?0:o,a=t.r,u=void 0===a?10:a,s=t.handleStart,c=t.handleStop,f=t.handleDrag;return r.default.createElement("circle",{className:"handle",cx:n,cy:i,r:u,onMouseDown:l("mouse",s,c,f),onTouchStart:l("touch",s,c,f),strokeDasharray:"5",stroke:"grey",fill:"white",fillOpacity:0})}s.propTypes={x:o.default.number,y:o.default.number,r:o.default.number,handleStart:o.default.func,handleStop:o.default.func,handleDrag:o.default.func}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n(0)),o=i(n(7));function i(t){return t&&t.__esModule?t:{default:t}}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(){return(u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,f(e).apply(this,arguments))}var n,i,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(e,t),n=e,(i=[{key:"getComponents",value:function(){}},{key:"render",value:function(){var t=this,e=this.props,n=e.color,i=e.dx,a=e.dy,s=e.customID,c=e.editMode;if(0===i&&0===a)return r.default.createElement("g",{className:"annotation-connector"});var f=this.getComponents(this.props)||[],h=Object.assign({},this.props);delete h.children;var d,p=r.default.Children.map(this.props.children,(function(t){return r.default.cloneElement(t,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}({},h,t.props,{scale:h.endScale||t.props.endScale,lineData:f.components[0].data}))}));return c&&f.handles&&f.handles.length>0&&(d=f.handles.map((function(e,n){return r.default.createElement(o.default,{key:"connectorhandle-".concat(n),handleStart:t.props.dragStart,handleStop:t.props.dragEnd,x:e.x,y:e.y,offsetParent:e.offsetParent&&t.connector,handleDrag:function(n,r){t.props.dragConnectorSettings(n,f.handleFunction(e,r))}})}))),r.default.createElement("g",u({className:"annotation-connector"},this.props.gAttrs),f.components&&f.components.map((function(t,e){var o={};return t?(Object.keys(t.attrs).forEach((function(e){t.attrs[e]&&"text"!==e&&(o[e.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))]=t.attrs[e])})),r.default.createElement(t.type,u({mask:s?"url(#".concat(s,")"):void 0,key:e,className:t.className,fill:"none",stroke:n},o),t.attrs.text)):null})),p,d)}}])&&s(n.prototype,i),a&&s(n,a),e}(r.default.Component);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;o(n(0));var r=o(n(14));function o(t){return t&&t.__esModule?t:{default:t}}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,l(e).apply(this,arguments))}var n,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,t),n=e,(o=[{key:"getComponents",value:function(t){var e=t.x,n=t.y,o=t.dy,i=t.dx,a=t.radius,u=t.outerRadius,l=t.width,s=t.height;return(0,r.default)({x:e,y:n,dx:i,dy:o,radius:a,outerRadius:u,width:l,height:s})}}])&&a(n.prototype,o),i&&a(n,i),e}(o(n(8)).default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n(30));function o(t){return t&&t.__esModule?t:{default:t}}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,l(e).apply(this,arguments))}var n,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,t),n=e,(o=[{key:"getComponents",value:function(t){var e=t.curve,n=t.points,o=t.x,i=t.y,a=t.dx,u=t.dy,l=t.radius,s=t.outerRadius,c=t.width,f=t.height,h=t.editMode,d=(0,r.default)({curve:e,points:n,x:o,y:i,dx:a,dy:u,radius:l,outerRadius:s,width:c,height:f,editMode:h});return d.handleKeys={points:d.handles},d.handleFunction=function(t,e){var n=d.points.slice(0);return n[t.index]=[t.x+e.oDeltaX,t.y+e.oDeltaY],{points:n}},d}}])&&a(n.prototype,o),i&&a(n,i),e}(o(n(8)).default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=s(n(0)),o=s(n(12)),i=s(n(7)),a=s(n(39)),u=s(n(40)),l=s(n(3));function s(t){return t&&t.__esModule?t:{default:t}}function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(){return(f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var _=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.concat().reduce((function(t,e){if(e){var n=e.getBBox();t.x=Math.min(t.x,n.x),t.y=Math.min(t.y,n.y),t.width=Math.max(t.width,n.width);var r=e&&e.attributes&&e.attributes.y;t.height=Math.max(t.height,(r&&parseFloat(r.value)||0)+n.height)}return t}),{x:0,y:0,width:0,height:0})},b=function(t){function e(t){var n,r,o,i,a,u;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r=this,n=!(o=d(e).call(this,t))||"object"!==c(o)&&"function"!=typeof o?y(r):o,i=y(y(n)),u={translateX:0,translateY:0,labelOffset:0,changed:0,bbox:{width:0,height:0,x:0,y:0}},(a="state")in i?Object.defineProperty(i,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[a]=u,n.updateText=n.updateText.bind(y(y(n))),n}var n,l,s;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(e,t),n=e,(l=[{key:"componentDidMount",value:function(){this.updateText(this.props)}},{key:"componentWillReceiveProps",value:function(t){t.title===this.props.title&&t.label===this.props.label&&t.wrap===this.props.wrap||this.updateText(t),!t.editMode||"dynamic"!==t.align&&t.align||this.updateText(t)}},{key:"updateText",value:function(t){var e=this,n=t.orientation,r=t.padding,i=t.align,a=t.lineType,u=t.label,l=t.title,s=t.wrap,c=t.wrapSplitter,f=t.dx,h=t.dy,d={titleWrapped:null,labelWrapped:null};d.changed=this.state.changed+1,l&&(d.titleWrapped=this.title&&this.wrapText(this.title,d.changed,l,s,c)),u&&(d.labelWrapped=this.label&&this.wrapText(this.label,d.changed,u,s,c)),this.setState(d,(function(){e.setState({labelOffset:l&&e.title.getBBox().height||0},(function(){var t=_(e.title,e.label),u={padding:r,bbox:t,offset:{x:f,y:h},orientation:n,align:i};"vertical"===a?u.orientation="leftRight":"horizontal"===a&&(u.orientation="topBottom");var l=(0,o.default)(u),s=l.x,c=l.y;e.setState({translateX:s,translateY:c,bbox:t})}))}))}},{key:"wrapText",value:function(t,e,n,o,i){for(var a,u={x:0,dy:"1.2em"},l=n.split(i||/[ \t\r\n]+/).reverse().filter((function(t){return""!==t})),s=[],c=[];a=l.pop();){s.push(a),t.lastChild.textContent=s.join(" ");var h=t.lastChild.getComputedTextLength();t.lastChild.textContent="",h>o&&s.length>1&&(s.pop(),c.push(r.default.createElement("tspan",f({key:c.length+n},u),s.join(" "))),s=[a])}return 0!==s.length&&c.push(r.default.createElement("tspan",f({key:c.length+n},u),s.join(" "))),r.default.createElement("tspan",f({},u,{key:e+n}),c)}},{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.orientation,r=e.padding,i=e.align,a=e.dx,u=e.dy,l=e.lineType;if(!this.state.bbox.width||t.dx===this.props.dx&&t.dy===this.props.dy||!this.title&&!this.label){if(this.state.align!==t.align||this.props.orientation!==t.orientation||this.props.padding!==t.padding){var s={padding:r,bbox:this.state.bbox,offset:{x:a,y:u},orientation:n,align:i};"vertical"===l?s.orientation="leftRight":"horizontal"===l&&(s.orientation="topBottom");var c=(0,o.default)(s),f=c.x,h=c.y,d={};this.state.translateX!==f&&(d.translateX=f),this.state.translateY!==h&&(d.translateY=h),void 0===d.translateX&&void 0===d.translateY||this.setState(d)}}else{var p=_(this.title,this.label),y={padding:r,bbox:p,offset:{x:a,y:u},orientation:n,align:i};"vertical"===l?y.orientation="leftRight":"horizontal"===l&&(y.orientation="topBottom");var b=(0,o.default)(y),v=b.x,m=b.y,g={bbox:p};this.state.translateX!==v&&(g.translateX=v),this.state.translateY!==m&&(g.translateY=m),void 0===g.translateX&&void 0===g.translateY||this.setState(g)}}},{key:"render",value:function(){var t,e,n,o,l=this,s=this.props,h=s.dx,d=s.dy,p=s.title,y=s.label,_=s.align,b=s.editMode,v=s.lineType,m=s.color,g=s.titleColor,x=s.labelColor,O=s.bgPadding,w={top:0,bottom:0,left:0,right:0};if("number"==typeof O?w={top:O,bottom:O,left:O,right:O}:O&&"object"===c(O)&&(w=Object.assign(w,O)),p&&(t=r.default.createElement("text",{ref:function(t){return l.title=t},className:"annotation-note-title",fontWeight:"bold",key:"title",fill:g||m},this.state.titleWrapped||r.default.createElement("tspan",{x:0,dy:".8em"},p))),y&&(e=r.default.createElement("text",{ref:function(t){return l.label=t},className:"annotation-note-label",y:1.1*this.state.labelOffset,key:"label",fill:x||m},this.state.labelWrapped||r.default.createElement("tspan",{x:0,dy:".8em"},y))),v&&this.state.bbox.width){var j={bbox:this.state.bbox,align:_,offset:{x:h,y:d}},P=("vertical"===v&&(0,a.default)(j)||"horizontal"===v&&(0,u.default)(j)).components[0];n=r.default.createElement(P.type,f({className:P.className},P.attrs,{stroke:m}))}return b&&(o=r.default.createElement(i.default,{handleStart:this.props.dragStart,handleStop:this.props.dragEnd,handleDrag:this.props.dragNote})),r.default.createElement("g",f({transform:"translate(".concat(h,", ").concat(d,")"),className:"annotation-note"},this.props.gProps),r.default.createElement("g",{className:"annotation-note-content",transform:"translate(".concat(this.state.translateX,",\n ").concat(this.state.translateY,")"),ref:function(t){return l.note=t}},r.default.createElement("rect",{className:"annotation-note-bg",width:this.state.bbox.width+w.left+w.right,x:-w.left,y:-w.top,height:this.state.bbox.height+w.top+w.bottom,stroke:"none",fill:"white",fillOpacity:"0"}),t,e),n,o)}}])&&h(n.prototype,l),s&&h(n,s),e}(r.default.Component);e.default=b,b.defaultProps={wrap:120,align:"dynamic",orientation:"topBottom",padding:3},b.propTypes={dx:l.default.number,dy:l.default.number,title:l.default.string,label:l.default.string,orientation:l.default.oneOf(["leftRight","topBottom"]),padding:l.default.number,bgPadding:l.default.oneOfType([l.default.number,l.default.object]),align:l.default.oneOf(["left","right","middle","top","bottom","dynamic"]),editMode:l.default.bool,lineType:l.default.oneOf(["vertical","horizontal"]),color:l.default.string,titleColor:l.default.string,labelColor:l.default.string}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=e.leftRightDynamic=function(t,e){return t&&"dynamic"!==t&&"left"!==t&&"right"!==t||(t=e<0?"top":"bottom"),t},o=e.topBottomDynamic=function(t,e){return t&&"dynamic"!==t&&"top"!==t&&"bottom"!==t||(t=e<0?"right":"left"),t},i=["topBottom","top","bottom"],a=["leftRight","left","right"];e.default=function(t){var e=t.padding,n=void 0===e?0:e,u=t.bbox,l=void 0===u?{x:0,y:0,width:0,height:0}:u,s=t.align,c=t.orientation,f=t.offset,h=void 0===f?{x:0,y:0}:f,d=-l.x,p=-l.y;return-1!==i.indexOf(c)?(s=o(s,h.x),h.y<0&&"topBottom"===c||"top"===c?p-=l.height+n:p+=n,"middle"===s?d-=l.width/2:"right"===s&&(d-=l.width)):-1!==a.indexOf(c)&&(s=r(s,h.y),h.x<0&&"leftRight"===c||"left"===c?d-=l.width+n:d+=n,"middle"===s?p-=l.height/2:"top"===s&&(p-=l.height)),{x:d,y:p}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n(0)),o=a(n(2)),i=a(n(3));function a(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,h(e).apply(this,arguments))}var n,i,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,t),n=e,(i=[{key:"render",value:function(){var t=this,e=this.props,n=e.x,i=e.y,a=e.nx,u=e.ny,c=e.events,f=Object.assign({},this.props);delete f.children;var h=Object.assign({},f);delete h.events,void 0!==a&&(f.dx=a-n),void 0!==u&&(f.dy=u-i);var d=r.default.Children.toArray(this.props.children).map((function(t){return r.default.cloneElement(t,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){s(t,e,n[e])}))}return t}({},"string"==typeof t.type?h:f,t.props))})),p={};return Object.keys(c).forEach((function(e){p[e]=function(n){c[e](t.props,t.state,n)}})),r.default.createElement("g",l({className:(0,o.default)("annotation",this.props.className),transform:"translate(".concat(n,", ").concat(i,")")},p),d)}}])&&c(n.prototype,i),a&&c(n,a),e}(r.default.Component);e.default=p,p.defaultProps={x:0,y:0,dx:0,dy:0,color:"grey",events:{}},p.propTypes={x:i.default.number,y:i.default.number,dx:i.default.number,dy:i.default.number,color:i.default.string,editMode:i.default.bool,events:i.default.object}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lineSetup=void 0;var r=n(1),o=e.lineSetup=function(t){var e=t.dx,n=t.dy,r=t.radius,o=t.outerRadius,i=t.radiusPadding,a=t.width,u=t.height,l=0,s=e,c=0,f=n;if(o||r){var h=Math.sqrt((l-s)*(l-s)+(c-f)*(c-f)),d=Math.asin(-f/h),p=(o||r)+(i||0);l=Math.abs(Math.cos(d)*p)*(s<0?-1:1),c=Math.abs(Math.sin(d)*p)*(f<0?-1:1)}return a&&u&&((a>0&&e>0||a<0&&e<0)&&(l=Math.abs(a)>Math.abs(e)?a/2:a),(u>0&&n>0||u<0&&n<0)&&(c=Math.abs(u)>Math.abs(n)?u/2:u),l===a/2&&c===u/2&&(l=s,c=f)),[[l,c],[s,f]]};e.default=function(t){var e=o(t);return{components:[(0,r.lineBuilder)({data:e,className:"connector"})]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;a(n(0));var r=a(n(32)),o=a(n(16)),i=a(n(3));function a(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,c(e).apply(this,arguments))}var n,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,t),n=e,(o=[{key:"getComponents",value:function(t){var e=t.x,n=t.y,o=t.dy,i=t.dx,a=t.lineData,u=t.scale;return(0,r.default)({x:e,y:n,dx:i,dy:o,lineData:a,scale:u})}}])&&l(n.prototype,o),i&&l(n,i),e}(o.default);e.default=h,h.propTypes={x:i.default.number,y:i.default.number,dx:i.default.number,dy:i.default.number,scale:i.default.number,lineData:i.default.array}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,s(e).apply(this,arguments))}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,t),n=e,(r=[{key:"getComponents",value:function(){}},{key:"render",value:function(){var t=this.props.color,e=(this.getComponents(this.props)||[]).components[0];return o.default.createElement(e.type,a({className:e.className},e.attrs,{fill:t}))}}])&&u(n.prototype,r),i&&u(n,i),e}(o.default.Component);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;a(n(0));var r=a(n(33)),o=a(n(16)),i=a(n(3));function a(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,c(e).apply(this,arguments))}var n,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,t),n=e,(o=[{key:"getComponents",value:function(t){var e=t.x,n=t.y,o=t.dy,i=t.dx,a=t.lineData,u=t.scale,l=a[1],s=a[0];return Math.sqrt(Math.pow(l[0]-s[0],2)+Math.pow(l[1]-s[1],2))<5&&a[2]&&(l=a[2]),(0,r.default)({x:e,y:n,dx:i,dy:o,start:l,end:s,scale:u})}}])&&l(n.prototype,o),i&&l(n,i),e}(o.default);e.default=h,h.propTypes={x:i.default.number,y:i.default.number,dx:i.default.number,dy:i.default.number,scale:i.default.number,lineData:i.default.array}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;a(n(0));var r=a(n(34)),o=a(n(5)),i=a(n(3));function a(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,c(e).apply(this,arguments))}var n,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,t),n=e,(o=[{key:"getComponents",value:function(t){var e=t.leftRight,n=t.topBottom,o=t.text,i=t.editMode,a=t.color,u=t.radius,l=(0,r.default)({leftRight:e,topBottom:n,text:o,editMode:i,color:a,radius:u});return l.handleKeys={leftRight:e,topBottom:n},l.handleFunction=function(t,e){return{leftRight:e.oDeltaX<2*-u?"left":e.oDeltaX>2*u?"right":void 0,topBottom:e.oDeltaY<2*-u?"top":e.oDeltaY>2*u?"bottom":void 0}},l}}])&&l(n.prototype,o),i&&l(n,i),e}(o.default);e.default=h,h.propTypes={leftRight:i.default.oneOf(["left","right"]),topBottom:i.default.oneOf(["top","bottom"]),text:i.default.oneOfType([i.default.string,i.default.number]),color:i.default.string,editMode:i.default.bool}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;a(n(0));var r=a(n(35)),o=a(n(5)),i=a(n(3));function a(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d=function(t){function e(){var t,n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return r=this,n=!(o=(t=s(e)).call.apply(t,[this].concat(a)))||"object"!==u(o)&&"function"!=typeof o?f(r):o,h(f(f(n)),"name","SubjectCircle"),n}var n,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,t),n=e,(o=[{key:"getComponents",value:function(t){var e=t.radius,n=void 0===e?20:e,o=t.innerRadius,i=t.outerRadius,a=t.radiusPadding,u=t.editMode,l=(0,r.default)({radius:n,radiusPadding:a,innerRadius:o,outerRadius:i,editMode:u});return l.handleKeys={radius:n,innerRadius:o,outerRadius:i},l.handleFunction=function(t,e){return h({},t.key,l.handleKeys[t.key]+e.oDeltaX*Math.sqrt(2))},l}}])&&l(n.prototype,o),i&&l(n,i),e}(o.default);e.default=d,d.propTypes={radius:i.default.number,innerRadius:i.default.number,outerRadius:i.default.number,radiusPadding:i.default.number,editMode:i.default.bool}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;a(n(0));var r=a(n(36)),o=a(n(5)),i=a(n(3));function a(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d=function(t){function e(){var t,n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return r=this,n=!(o=(t=s(e)).call.apply(t,[this].concat(a)))||"object"!==u(o)&&"function"!=typeof o?f(r):o,h(f(f(n)),"name","SubjectRect"),n}var n,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,t),n=e,(o=[{key:"getComponents",value:function(t){var e=t.width,n=void 0===e?100:e,o=t.height,i=void 0===o?100:o,a=t.editMode,u=(0,r.default)({width:n,height:i,editMode:a});return u.handleKeys={width:n,height:i},u.handleFunction=function(t,e){return h({},t.key,"width"===t.key?n+e.oDeltaX:i+e.oDeltaY)},u}}])&&l(n.prototype,o),i&&l(n,i),e}(o.default);e.default=d,d.propTypes={width:i.default.number,height:i.default.number,editMode:i.default.bool}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;a(n(0));var r=a(n(37)),o=a(n(5)),i=a(n(3));function a(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=function(t){function e(){var t,n,r,o,i,a,l;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var c=arguments.length,h=new Array(c),d=0;d<c;d++)h[d]=arguments[d];return r=this,n=!(o=(t=s(e)).call.apply(t,[this].concat(h)))||"object"!==u(o)&&"function"!=typeof o?f(r):o,i=f(f(n)),l="SubjectThreshold",(a="name")in i?Object.defineProperty(i,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[a]=l,n}var n,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,t),n=e,(o=[{key:"getComponents",value:function(t){var e=t.x1,n=t.x2,o=t.y1,i=t.y2,a=t.x,u=t.y,l=t.editMode;return(0,r.default)({x1:e,x2:n,y1:o,y2:i,x:a,y:u,editMode:l})}}])&&l(n.prototype,o),i&&l(n,i),e}(o.default);e.default=h,h.propTypes={x:i.default.number,x1:i.default.number,x2:i.default.number,y:i.default.number,y1:i.default.number,y2:i.default.number,editMode:i.default.bool}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;a(n(0));var r=a(n(38)),o=a(n(5)),i=a(n(3));function a(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d=function(t){function e(){var t,n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return r=this,n=!(o=(t=s(e)).call.apply(t,[this].concat(a)))||"object"!==u(o)&&"function"!=typeof o?f(r):o,h(f(f(n)),"name","SubjectBracket"),n}var n,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,t),n=e,(o=[{key:"getComponents",value:function(t){var e=t.height,n=t.width,o=t.depth,i=void 0===o?20:o,a=t.type,u=void 0===a?"square":a,l=t.editMode,s=(0,r.default)({height:e,width:n,depth:i,type:u,editMode:l}),c={height:e,width:n,depth:i};return s.handleFunction=function(t,e){return"depth"===t.key?{depth:i+e["oDelta".concat(t.type)]}:h({},t.key,c[t.key]+e["width"===t.key?"oDeltaX":"oDeltaY"])},s}}])&&l(n.prototype,o),i&&l(n,i),e}(o.default);e.default=d,d.propTypes={width:i.default.number,height:i.default.number,depth:i.default.number,editMode:i.default.bool}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(n(0)),o=u(n(5)),i=u(n(3)),a=u(n(7));function u(t){return t&&t.__esModule?t:{default:t}}function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,f(e).apply(this,arguments))}var n,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(e,t),n=e,(o=[{key:"render",value:function(){var t,e=this.props,n=e.custom,o=void 0===n?"M0,0":n,i=e.editMode,u=e.transform;return i&&(t=r.default.createElement(a.default,{handleStart:this.props.dragStart,handleStop:this.props.dragEnd,handleDrag:this.props.dragSubject})),r.default.createElement("g",{className:"annotation-subject"},r.default.createElement("g",{transform:u},"string"==typeof o?r.default.createElement("path",{d:o,pointerEvents:"none"}):r.default.createElement("g",{pointerEvents:"none"},o)),t)}}])&&s(n.prototype,o),i&&s(n,i),e}(o.default);e.default=d,d.propTypes={editMode:i.default.bool}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,n=t.width,i=t.height,u=t.depth,l=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,["width","height","depth"]),s=l.dx,c=l.dy;i?(c||(c=i/2),s||(s=u),e="leftRight"):n&&(s||(s=n/2),c||(c=u),e="topBottom");return r.default.createElement(o.default,a({align:"middle",orientation:e,padding:10},l,{editMode:!1,dx:s,dy:c}))};var r=i(n(0)),o=i(n(11));function i(t){return t&&t.__esModule?t:{default:t}}function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n(0)),o=a(n(13)),i=a(n(2));function a(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d=function(t){function e(){var t,n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return r=this,n=!(o=(t=s(e)).call.apply(t,[this].concat(a)))||"object"!==u(o)&&"function"!=typeof o?f(r):o,h(f(f(n)),"state",{x:0,y:0,dx:0,dy:0}),n}var n,a,d;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,t),n=e,(a=[{key:"componentWillMount",value:function(){this.setState({x:this.props.x,y:this.props.y,dx:this.props.dx,dy:this.props.dy})}},{key:"componentWillReceiveProps",value:function(t){this.setState({x:t.x,y:t.y,dx:t.dx,dy:t.dy})}},{key:"getData",value:function(){return Object.assign({},this.props,this.state)}},{key:"dragEnd",value:function(){this.props.onDragEnd&&this.props.onDragEnd(this.getData())}},{key:"dragStart",value:function(){this.props.onDragStart&&this.props.onDragStart(this.getData())}},{key:"dragSubject",value:function(t,e){var n=this;this.setState({x:this.state.x+e.deltaX,y:this.state.y+e.deltaY},(function(){n.props.onDrag&&n.props.onDrag(n.getData())}))}},{key:"dragConnectorSettings",value:function(t,e){var n=this;this.setState(e,(function(){n.props.onDrag&&n.props.onDrag(n.getData())}))}},{key:"dragSubjectSettings",value:function(t,e){var n=this;this.setState(e,(function(){n.props.onDrag&&n.props.onDrag(n.getData())}))}},{key:"dragNote",value:function(t,e){var n=this;this.setState({dx:this.state.dx+e.deltaX,dy:this.state.dy+e.deltaY},(function(){n.props.onDrag&&n.props.onDrag(n.getData())}))}},{key:"render",value:function(){var t=Object.assign({},this.props,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){h(t,e,n[e])}))}return t}({},this.state,{dragSubject:this.dragSubject.bind(this),dragNote:this.dragNote.bind(this),dragSubjectSettings:this.dragSubjectSettings.bind(this),dragConnectorSettings:this.dragConnectorSettings.bind(this),dragEnd:this.dragEnd.bind(this),dragStart:this.dragStart.bind(this),editMode:!0,className:(0,i.default)(this.props.className,"editable")}));return r.default.createElement(o.default,t)}}])&&l(n.prototype,a),d&&l(n,d),e}(r.default.Component);e.default=d},function(t,e,n){"use strict";n.r(e);var r=Math.PI,o=2*r,i=o-1e-6;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function u(){return new a}a.prototype=u.prototype={constructor:a,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,o,i){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(t,e,n,o,i){t=+t,e=+e,n=+n,o=+o,i=+i;var a=this._x1,u=this._y1,l=n-t,s=o-e,c=a-t,f=u-e,h=c*c+f*f;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>1e-6)if(Math.abs(f*l-s*c)>1e-6&&i){var d=n-a,p=o-u,y=l*l+s*s,_=d*d+p*p,b=Math.sqrt(y),v=Math.sqrt(h),m=i*Math.tan((r-Math.acos((y+h-_)/(2*b*v)))/2),g=m/v,x=m/b;Math.abs(g-1)>1e-6&&(this._+="L"+(t+g*c)+","+(e+g*f)),this._+="A"+i+","+i+",0,0,"+ +(f*d>c*p)+","+(this._x1=t+x*l)+","+(this._y1=e+x*s)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,a,u,l){t=+t,e=+e,l=!!l;var s=(n=+n)*Math.cos(a),c=n*Math.sin(a),f=t+s,h=e+c,d=1^l,p=l?a-u:u-a;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+h:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+f+","+h),n&&(p<0&&(p=p%o+o),p>i?this._+="A"+n+","+n+",0,1,"+d+","+(t-s)+","+(e-c)+"A"+n+","+n+",0,1,"+d+","+(this._x1=f)+","+(this._y1=h):p>1e-6&&(this._+="A"+n+","+n+",0,"+ +(p>=r)+","+d+","+(this._x1=t+n*Math.cos(u))+","+(this._y1=e+n*Math.sin(u))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var l=u,s=function(t){return function(){return t}},c=Math.abs,f=Math.atan2,h=Math.cos,d=Math.max,p=Math.min,y=Math.sin,_=Math.sqrt,b=1e-12,v=Math.PI,m=v/2,g=2*v;function x(t){return t>=1?m:t<=-1?-m:Math.asin(t)}function O(t){return t.innerRadius}function w(t){return t.outerRadius}function j(t){return t.startAngle}function P(t){return t.endAngle}function S(t){return t&&t.padAngle}function M(t,e,n,r,o,i,a){var u=t-n,l=e-r,s=(a?i:-i)/_(u*u+l*l),c=s*l,f=-s*u,h=t+c,p=e+f,y=n+c,b=r+f,v=(h+y)/2,m=(p+b)/2,g=y-h,x=b-p,O=g*g+x*x,w=o-i,j=h*b-y*p,P=(x<0?-1:1)*_(d(0,w*w*O-j*j)),S=(j*x-g*P)/O,M=(-j*g-x*P)/O,T=(j*x+g*P)/O,E=(-j*g+x*P)/O,k=S-v,N=M-m,C=T-v,R=E-m;return k*k+N*N>C*C+R*R&&(S=T,M=E),{cx:S,cy:M,x01:-c,y01:-f,x11:S*(o/w-1),y11:M*(o/w-1)}}var T=function(){var t=O,e=w,n=s(0),r=null,o=j,i=P,a=S,u=null;function d(){var s,d,O,w=+t.apply(this,arguments),j=+e.apply(this,arguments),P=o.apply(this,arguments)-m,S=i.apply(this,arguments)-m,T=c(S-P),E=S>P;if(u||(u=s=l()),j<w&&(d=j,j=w,w=d),j>b)if(T>g-b)u.moveTo(j*h(P),j*y(P)),u.arc(0,0,j,P,S,!E),w>b&&(u.moveTo(w*h(S),w*y(S)),u.arc(0,0,w,S,P,E));else{var k,N,C=P,R=S,D=P,A=S,B=T,q=T,X=a.apply(this,arguments)/2,Y=X>b&&(r?+r.apply(this,arguments):_(w*w+j*j)),z=p(c(j-w)/2,+n.apply(this,arguments)),I=z,L=z;if(Y>b){var W=x(Y/w*y(X)),F=x(Y/j*y(X));(B-=2*W)>b?(D+=W*=E?1:-1,A-=W):(B=0,D=A=(P+S)/2),(q-=2*F)>b?(C+=F*=E?1:-1,R-=F):(q=0,C=R=(P+S)/2)}var K=j*h(C),U=j*y(C),H=w*h(A),Q=w*y(A);if(z>b){var V=j*h(R),Z=j*y(R),G=w*h(D),J=w*y(D);if(T<v){var $=B>b?function(t,e,n,r,o,i,a,u){var l=n-t,s=r-e,c=a-o,f=u-i,h=(c*(e-i)-f*(t-o))/(f*l-c*s);return[t+h*l,e+h*s]}(K,U,G,J,V,Z,H,Q):[H,Q],tt=K-$[0],et=U-$[1],nt=V-$[0],rt=Z-$[1],ot=1/y(((O=(tt*nt+et*rt)/(_(tt*tt+et*et)*_(nt*nt+rt*rt)))>1?0:O<-1?v:Math.acos(O))/2),it=_($[0]*$[0]+$[1]*$[1]);I=p(z,(w-it)/(ot-1)),L=p(z,(j-it)/(ot+1))}}q>b?L>b?(k=M(G,J,K,U,j,L,E),N=M(V,Z,H,Q,j,L,E),u.moveTo(k.cx+k.x01,k.cy+k.y01),L<z?u.arc(k.cx,k.cy,L,f(k.y01,k.x01),f(N.y01,N.x01),!E):(u.arc(k.cx,k.cy,L,f(k.y01,k.x01),f(k.y11,k.x11),!E),u.arc(0,0,j,f(k.cy+k.y11,k.cx+k.x11),f(N.cy+N.y11,N.cx+N.x11),!E),u.arc(N.cx,N.cy,L,f(N.y11,N.x11),f(N.y01,N.x01),!E))):(u.moveTo(K,U),u.arc(0,0,j,C,R,!E)):u.moveTo(K,U),w>b&&B>b?I>b?(k=M(H,Q,V,Z,w,-I,E),N=M(K,U,G,J,w,-I,E),u.lineTo(k.cx+k.x01,k.cy+k.y01),I<z?u.arc(k.cx,k.cy,I,f(k.y01,k.x01),f(N.y01,N.x01),!E):(u.arc(k.cx,k.cy,I,f(k.y01,k.x01),f(k.y11,k.x11),!E),u.arc(0,0,w,f(k.cy+k.y11,k.cx+k.x11),f(N.cy+N.y11,N.cx+N.x11),E),u.arc(N.cx,N.cy,I,f(N.y11,N.x11),f(N.y01,N.x01),!E))):u.arc(0,0,w,A,D,E):u.lineTo(H,Q)}else u.moveTo(0,0);if(u.closePath(),s)return u=null,s+""||null}return d.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +i.apply(this,arguments))/2-v/2;return[h(r)*n,y(r)*n]},d.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:s(+e),d):t},d.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:s(+t),d):e},d.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:s(+t),d):n},d.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:s(+t),d):r},d.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:s(+t),d):o},d.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:s(+t),d):i},d.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:s(+t),d):a},d.context=function(t){return arguments.length?(u=null==t?null:t,d):u},d};function E(t){this._context=t}E.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var k=function(t){return new E(t)};function N(t){return t[0]}function C(t){return t[1]}var R=function(){var t=N,e=C,n=s(!0),r=null,o=k,i=null;function a(a){var u,s,c,f=a.length,h=!1;for(null==r&&(i=o(c=l())),u=0;u<=f;++u)!(u<f&&n(s=a[u],u,a))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+t(s,u,a),+e(s,u,a));if(c)return i=null,c+""||null}return a.x=function(e){return arguments.length?(t="function"==typeof e?e:s(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:s(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:s(!!t),a):n},a.curve=function(t){return arguments.length?(o=t,null!=r&&(i=o(r)),a):o},a.context=function(t){return arguments.length?(null==t?r=i=null:i=o(r=t),a):r},a},D=function(){var t=N,e=null,n=s(0),r=C,o=s(!0),i=null,a=k,u=null;function c(s){var c,f,h,d,p,y=s.length,_=!1,b=new Array(y),v=new Array(y);for(null==i&&(u=a(p=l())),c=0;c<=y;++c){if(!(c<y&&o(d=s[c],c,s))===_)if(_=!_)f=c,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=c-1;h>=f;--h)u.point(b[h],v[h]);u.lineEnd(),u.areaEnd()}_&&(b[c]=+t(d,c,s),v[c]=+n(d,c,s),u.point(e?+e(d,c,s):b[c],r?+r(d,c,s):v[c]))}if(p)return u=null,p+""||null}function f(){return R().defined(o).curve(a).context(i)}return c.x=function(n){return arguments.length?(t="function"==typeof n?n:s(+n),e=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:s(+e),c):t},c.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:s(+t),c):e},c.y=function(t){return arguments.length?(n="function"==typeof t?t:s(+t),r=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:s(+t),c):n},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:s(+t),c):r},c.lineX0=c.lineY0=function(){return f().x(t).y(n)},c.lineY1=function(){return f().x(t).y(r)},c.lineX1=function(){return f().x(e).y(n)},c.defined=function(t){return arguments.length?(o="function"==typeof t?t:s(!!t),c):o},c.curve=function(t){return arguments.length?(a=t,null!=i&&(u=a(i)),c):a},c.context=function(t){return arguments.length?(null==t?i=u=null:u=a(i=t),c):i},c},A=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},B=function(t){return t},q=function(){var t=B,e=A,n=null,r=s(0),o=s(g),i=s(0);function a(a){var u,l,s,c,f,h=a.length,d=0,p=new Array(h),y=new Array(h),_=+r.apply(this,arguments),b=Math.min(g,Math.max(-g,o.apply(this,arguments)-_)),v=Math.min(Math.abs(b)/h,i.apply(this,arguments)),m=v*(b<0?-1:1);for(u=0;u<h;++u)(f=y[p[u]=u]=+t(a[u],u,a))>0&&(d+=f);for(null!=e?p.sort((function(t,n){return e(y[t],y[n])})):null!=n&&p.sort((function(t,e){return n(a[t],a[e])})),u=0,s=d?(b-h*m)/d:0;u<h;++u,_=c)l=p[u],c=_+((f=y[l])>0?f*s:0)+m,y[l]={data:a[l],index:u,value:f,startAngle:_,endAngle:c,padAngle:v};return y}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:s(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:s(+t),a):r},a.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:s(+t),a):o},a.padAngle=function(t){return arguments.length?(i="function"==typeof t?t:s(+t),a):i},a},X=z(k);function Y(t){this._curve=t}function z(t){function e(e){return new Y(t(e))}return e._curve=t,e}function I(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(z(t)):e()._curve},t}Y.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var L=function(){return I(R().curve(X))},W=function(){var t=D().curve(X),e=t.curve,n=t.lineX0,r=t.lineX1,o=t.lineY0,i=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return I(n())},delete t.lineX0,t.lineEndAngle=function(){return I(r())},delete t.lineX1,t.lineInnerRadius=function(){return I(o())},delete t.lineY0,t.lineOuterRadius=function(){return I(i())},delete t.lineY1,t.curve=function(t){return arguments.length?e(z(t)):e()._curve},t},F={draw:function(t,e){var n=Math.sqrt(e/v);t.moveTo(n,0),t.arc(0,0,n,0,g)}},K={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},U=Math.sqrt(1/3),H=2*U,Q={draw:function(t,e){var n=Math.sqrt(e/H),r=n*U;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},V=Math.sin(v/10)/Math.sin(7*v/10),Z=Math.sin(g/10)*V,G=-Math.cos(g/10)*V,J={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=Z*n,o=G*n;t.moveTo(0,-n),t.lineTo(r,o);for(var i=1;i<5;++i){var a=g*i/5,u=Math.cos(a),l=Math.sin(a);t.lineTo(l*n,-u*n),t.lineTo(u*r-l*o,l*r+u*o)}t.closePath()}},$={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},tt=Math.sqrt(3),et={draw:function(t,e){var n=-Math.sqrt(e/(3*tt));t.moveTo(0,2*n),t.lineTo(-tt*n,-n),t.lineTo(tt*n,-n),t.closePath()}},nt=Math.sqrt(3)/2,rt=1/Math.sqrt(12),ot=3*(rt/2+1),it={draw:function(t,e){var n=Math.sqrt(e/ot),r=n/2,o=n*rt,i=r,a=n*rt+n,u=-i,l=a;t.moveTo(r,o),t.lineTo(i,a),t.lineTo(u,l),t.lineTo(-.5*r-nt*o,nt*r+-.5*o),t.lineTo(-.5*i-nt*a,nt*i+-.5*a),t.lineTo(-.5*u-nt*l,nt*u+-.5*l),t.lineTo(-.5*r+nt*o,-.5*o-nt*r),t.lineTo(-.5*i+nt*a,-.5*a-nt*i),t.lineTo(-.5*u+nt*l,-.5*l-nt*u),t.closePath()}},at=[F,K,Q,$,J,et,it],ut=function(){var t=s(F),e=s(64),n=null;function r(){var r;if(n||(n=r=l()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:s(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:s(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r},lt=function(){};function st(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function ct(t){this._context=t}ct.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:st(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:st(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var ft=function(t){return new ct(t)};function ht(t){this._context=t}ht.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:st(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var dt=function(t){return new ht(t)};function pt(t){this._context=t}pt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:st(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var yt=function(t){return new pt(t)};function _t(t,e){this._basis=new ct(t),this._beta=e}_t.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,o=t[0],i=e[0],a=t[n]-o,u=e[n]-i,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*t[l]+(1-this._beta)*(o+r*a),this._beta*e[l]+(1-this._beta)*(i+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var bt=function t(e){function n(t){return 1===e?new ct(t):new _t(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function vt(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function mt(t,e){this._context=t,this._k=(1-e)/6}mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:vt(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:vt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var gt=function t(e){function n(t){return new mt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function xt(t,e){this._context=t,this._k=(1-e)/6}xt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:vt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ot=function t(e){function n(t){return new xt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function wt(t,e){this._context=t,this._k=(1-e)/6}wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:vt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var jt=function t(e){function n(t){return new wt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Pt(t,e,n){var r=t._x1,o=t._y1,i=t._x2,a=t._y2;if(t._l01_a>b){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,o=(o*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>b){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);i=(i*s+t._x1*t._l23_2a-e*t._l12_2a)/c,a=(a*s+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,o,i,a,t._x2,t._y2)}function St(t,e){this._context=t,this._alpha=e}St.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Pt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Mt=function t(e){function n(t){return e?new St(t,e):new mt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Tt(t,e){this._context=t,this._alpha=e}Tt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Pt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Et=function t(e){function n(t){return e?new Tt(t,e):new xt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function kt(t,e){this._context=t,this._alpha=e}kt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Pt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Nt=function t(e){function n(t){return e?new kt(t,e):new wt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Ct(t){this._context=t}Ct.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var Rt=function(t){return new Ct(t)};function Dt(t){return t<0?-1:1}function At(t,e,n){var r=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(r||o<0&&-0),a=(n-t._y1)/(o||r<0&&-0),u=(i*o+a*r)/(r+o);return(Dt(i)+Dt(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(u))||0}function Bt(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function qt(t,e,n){var r=t._x0,o=t._y0,i=t._x1,a=t._y1,u=(i-r)/3;t._context.bezierCurveTo(r+u,o+u*e,i-u,a-u*n,i,a)}function Xt(t){this._context=t}function Yt(t){this._context=new zt(t)}function zt(t){this._context=t}function It(t){return new Xt(t)}function Lt(t){return new Yt(t)}function Wt(t){this._context=t}function Ft(t){var e,n,r=t.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=o[e]/i[e-1],i[e]-=n,a[e]-=n*a[e-1];for(o[r-1]=a[r-1]/i[r-1],e=r-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[r-1]=(t[r]+o[r-1])/2,e=0;e<r-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}Xt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:qt(this,this._t0,Bt(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,qt(this,Bt(this,n=At(this,t,e)),n);break;default:qt(this,this._t0,n=At(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Yt.prototype=Object.create(Xt.prototype)).point=function(t,e){Xt.prototype.point.call(this,e,t)},zt.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,o,i){this._context.bezierCurveTo(e,t,r,n,i,o)}},Wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Ft(t),o=Ft(e),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Kt=function(t){return new Wt(t)};function Ut(t,e){this._context=t,this._t=e}Ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var Ht=function(t){return new Ut(t,.5)};function Qt(t){return new Ut(t,0)}function Vt(t){return new Ut(t,1)}var Zt=Array.prototype.slice,Gt=function(t,e){if((r=t.length)>1)for(var n,r,o=1,i=t[e[0]],a=i.length;o<r;++o){n=i,i=t[e[o]];for(var u=0;u<a;++u)i[u][1]+=i[u][0]=isNaN(n[u][1])?n[u][0]:n[u][1]}},Jt=function(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n};function $t(t,e){return t[e]}var te=function(){var t=s([]),e=Jt,n=Gt,r=$t;function o(o){var i,a,u=t.apply(this,arguments),l=o.length,s=u.length,c=new Array(s);for(i=0;i<s;++i){for(var f,h=u[i],d=c[i]=new Array(l),p=0;p<l;++p)d[p]=f=[0,+r(o[p],h,p,o)],f.data=o[p];d.key=h}for(i=0,a=e(c);i<s;++i)c[a[i]].index=i;return n(c,a),c}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:s(Zt.call(e)),o):t},o.value=function(t){return arguments.length?(r="function"==typeof t?t:s(+t),o):r},o.order=function(t){return arguments.length?(e=null==t?Jt:"function"==typeof t?t:s(Zt.call(t)),o):e},o.offset=function(t){return arguments.length?(n=null==t?Gt:t,o):n},o},ee=function(t,e){if((r=t.length)>0){for(var n,r,o,i=0,a=t[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=t[n][i][1]||0;if(o)for(n=0;n<r;++n)t[n][i][1]/=o}Gt(t,e)}},ne=function(t,e){if((n=t.length)>0){for(var n,r=0,o=t[e[0]],i=o.length;r<i;++r){for(var a=0,u=0;a<n;++a)u+=t[a][r][1]||0;o[r][1]+=o[r][0]=-u/2}Gt(t,e)}},re=function(t,e){if((o=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var u=0,l=0,s=0;u<o;++u){for(var c=t[e[u]],f=c[a][1]||0,h=(f-(c[a-1][1]||0))/2,d=0;d<u;++d){var p=t[e[d]];h+=(p[a][1]||0)-(p[a-1][1]||0)}l+=f,s+=h*f}n[a-1][1]+=n[a-1][0]=i,l&&(i-=s/l)}n[a-1][1]+=n[a-1][0]=i,Gt(t,e)}},oe=function(t){var e=t.map(ie);return Jt(t).sort((function(t,n){return e[t]-e[n]}))};function ie(t){for(var e,n=0,r=-1,o=t.length;++r<o;)(e=+t[r][1])&&(n+=e);return n}var ae=function(t){return oe(t).reverse()},ue=function(t){var e,n,r=t.length,o=t.map(ie),i=Jt(t).sort((function(t,e){return o[e]-o[t]})),a=0,u=0,l=[],s=[];for(e=0;e<r;++e)n=i[e],a<u?(a+=o[n],l.push(n)):(u+=o[n],s.push(n));return s.reverse().concat(l)},le=function(t){return Jt(t).reverse()};n.d(e,"arc",(function(){return T})),n.d(e,"area",(function(){return D})),n.d(e,"line",(function(){return R})),n.d(e,"pie",(function(){return q})),n.d(e,"radialArea",(function(){return W})),n.d(e,"radialLine",(function(){return L})),n.d(e,"symbol",(function(){return ut})),n.d(e,"symbols",(function(){return at})),n.d(e,"symbolCircle",(function(){return F})),n.d(e,"symbolCross",(function(){return K})),n.d(e,"symbolDiamond",(function(){return Q})),n.d(e,"symbolSquare",(function(){return $})),n.d(e,"symbolStar",(function(){return J})),n.d(e,"symbolTriangle",(function(){return et})),n.d(e,"symbolWye",(function(){return it})),n.d(e,"curveBasisClosed",(function(){return dt})),n.d(e,"curveBasisOpen",(function(){return yt})),n.d(e,"curveBasis",(function(){return ft})),n.d(e,"curveBundle",(function(){return bt})),n.d(e,"curveCardinalClosed",(function(){return Ot})),n.d(e,"curveCardinalOpen",(function(){return jt})),n.d(e,"curveCardinal",(function(){return gt})),n.d(e,"curveCatmullRomClosed",(function(){return Et})),n.d(e,"curveCatmullRomOpen",(function(){return Nt})),n.d(e,"curveCatmullRom",(function(){return Mt})),n.d(e,"curveLinearClosed",(function(){return Rt})),n.d(e,"curveLinear",(function(){return k})),n.d(e,"curveMonotoneX",(function(){return It})),n.d(e,"curveMonotoneY",(function(){return Lt})),n.d(e,"curveNatural",(function(){return Kt})),n.d(e,"curveStep",(function(){return Ht})),n.d(e,"curveStepAfter",(function(){return Vt})),n.d(e,"curveStepBefore",(function(){return Qt})),n.d(e,"stack",(function(){return te})),n.d(e,"stackOffsetExpand",(function(){return ee})),n.d(e,"stackOffsetNone",(function(){return Gt})),n.d(e,"stackOffsetSilhouette",(function(){return ne})),n.d(e,"stackOffsetWiggle",(function(){return re})),n.d(e,"stackOrderAscending",(function(){return oe})),n.d(e,"stackOrderDescending",(function(){return ae})),n.d(e,"stackOrderInsideOut",(function(){return ue})),n.d(e,"stackOrderNone",(function(){return Jt})),n.d(e,"stackOrderReverse",(function(){return le}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Connector",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"ConnectorCurve",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"ConnectorElbow",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"ConnectorLine",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"ConnectorEndDot",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"ConnectorEndArrow",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Subject",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"SubjectBadge",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"SubjectCircle",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"SubjectRect",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"SubjectThreshold",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"SubjectBracket",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"SubjectCustom",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"Note",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"BracketNote",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"Annotation",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"EditableAnnotation",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"AnnotationLabel",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"AnnotationCallout",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"AnnotationCalloutElbow",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"AnnotationCalloutCurve",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"AnnotationCalloutCircle",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"AnnotationCalloutRect",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"AnnotationXYThreshold",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"AnnotationBadge",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"AnnotationBracket",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"AnnotationCalloutCustom",{enumerable:!0,get:function(){return E.default}}),e.default=void 0;var r=k(n(8)),o=k(n(10)),i=k(n(6)),a=k(n(9)),u=k(n(15)),l=k(n(17)),s=k(n(5)),c=k(n(18)),f=k(n(19)),h=k(n(20)),d=k(n(21)),p=k(n(22)),y=k(n(23)),_=k(n(11)),b=k(n(24)),v=k(n(13)),m=k(n(25)),g=k(n(41)),x=k(n(43)),O=k(n(44)),w=k(n(45)),j=k(n(46)),P=k(n(47)),S=k(n(48)),M=k(n(49)),T=k(n(50)),E=k(n(51));function k(t){return t&&t.__esModule?t:{default:t}}var N={Connector:r.default,ConnectorCurve:o.default,ConnectorElbow:i.default,ConnectorLine:a.default,ConnectorEndDot:u.default,ConnectorEndArrow:l.default,Subject:s.default,SubjectBadge:c.default,SubjectCircle:f.default,SubjectRect:h.default,SubjectThreshold:d.default,SubjectBracket:p.default,SubjectCustom:y.default,Note:_.default,BracketNote:b.default,Annotation:v.default,EditableAnnotation:m.default,AnnotationLabel:g.default,AnnotationCallout:x.default,AnnotationCalloutCircle:j.default,AnnotationCalloutCurve:w.default,AnnotationCalloutElbow:O.default,AnnotationCalloutRect:P.default,AnnotationXYThreshold:S.default,AnnotationBadge:M.default,AnnotationBracket:T.default,AnnotationCalloutCustom:E.default};e.default=N},function(t,e,n){"use strict";var r=n(29);function o(){}t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var u=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 u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=o,n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=n(14),i=n(26);e.default=function(t){var e=t.curve,n=t.points,a=t.x,u=t.y,l=t.dx,s=t.dy,c=t.radius,f=t.outerRadius,h=t.width,d=t.height,p=t.editMode;n&&"number"!=typeof n||(n=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n={x:t.x/(e+1),y:t.y/(e+1)},r=[],o=1;o<=e;o++)r.push([n.x*o+o%2*20,n.y*o-o%2*20]);return r}({x:l,y:s},n)),e||(e=i.curveCatmullRom);var y=[];p&&(y=n.map((function(t,e){return{index:e,x:t[0],y:t[1]}})));var _=(0,o.lineSetup)({x:a,y:u,dx:l,dy:s,radius:c,outerRadius:f,width:h,height:d});return _=[_[0]].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(n),[_[1]]),{components:[(0,r.lineBuilder)({data:_,curve:e,className:"connector"})],handles:y,points:n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t){var e=t.dx,n=t.dy,o=t.radius,i=t.outerRadius,a=t.radiusPadding,u=t.width,l=t.height,s=0,c=e,f=0,h=n;u&&l&&((u>0&&e>0||u<0&&e<0)&&(s=Math.abs(u)>Math.abs(e)?u/2:u),(l>0&&n>0||l<0&&n<0)&&(f=Math.abs(l)>Math.abs(n)?l/2:l),s===u/2&&f===l/2&&(s=c,f=h));var d=[[s,f],[c,h]],p=h-f,y=c-s,_=c,b=h,v=h<f&&c>s||c<s&&h>f?-1:1;if(Math.abs(y)<Math.abs(p)?(_=c,b=f+y*v):(b=h,_=s+p*v),i||o){var m=(i||o)+(a||0),g=m/Math.sqrt(2);if(Math.abs(y)>g&&Math.abs(p)>g)d=[[s=g*(c<0?-1:1),f=g*(h<0?-1:1)],[_,b],[c,h]];else if(Math.abs(y)>Math.abs(p)){var x=Math.asin(-h/m);d=[[s=Math.abs(Math.cos(x)*m)*(c<0?-1:1),h],[c,h]]}else{var O=Math.acos(c/m);d=[[c,f=Math.abs(Math.sin(O)*m)*(h<0?-1:1)],[c,h]]}}else d=[[s,f],[_,b],[c,h]];return{components:[(0,r.lineBuilder)({data:d,className:"connector"})]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t){var e=t.lineData,n=t.scale,o=void 0===n?1:n,i=(0,r.arcBuilder)({className:"connector-end connector-dot",classID:"connector-end",data:{radius:3*Math.sqrt(o)}});return i.attrs.transform="translate("+e[0][0]+", "+e[0][1]+")",{components:[i]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t){var e=t.dx,n=t.dy,o=t.start,i=t.end,a=t.scale,u=void 0===a?1:a;o=o?[-i[0]+o[0],-i[1]+o[1]]:[e,n],i||(i=[0,0]);var l=i[0],s=i[1],c=10*u,f=16/180*Math.PI,h=Math.atan(o[1]/o[0]);o[0]<0&&(h+=Math.PI);var d=[[l,s],[Math.cos(h+f)*c+l,Math.sin(h+f)*c+s],[Math.cos(h-f)*c+l,Math.sin(h-f)*c+s],[l,s]];return{components:[(0,r.lineBuilder)({data:d,className:"connector-end connector-arrow",classID:"connector-end"})]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t){var e=t.radius,n=void 0===e?14:e,o=t.leftRight,i=t.topBottom,a=t.text,u=t.color,l=t.editMode,s=[],c=[],f=.7*n,h=0,d=0,p=Math.sqrt(2)*n,y={xleftcorner:-n,xrightcorner:n,ytopcorner:-n,ybottomcorner:n,xleft:-p,xright:p,ytop:-p,ybottom:p};o&&!i?h=y["x"+o]:i&&!o?d=y["y"+i]:o&&i&&(h=y["x"+o+"corner"],d=y["y"+i+"corner"]);var _="translate("+h+", "+d+")",b=(0,r.arcBuilder)({className:"subject",data:{radius:n}});b.attrs.transform=_,b.attrs.fill=u,b.attrs["stroke-linecap"]="round",b.attrs["stroke-width"]="3px";var v=(0,r.arcBuilder)({className:"subject-ring",data:{outerRadius:n,innerRadius:f}});v.attrs.transform=_,v.attrs["stroke-width"]="3px",v.attrs.fill="white";var m=void 0;if(h&&d||!h&&!d)m=(0,r.lineBuilder)({className:"subject-pointer",data:[[0,0],[h||0,0],[0,d||0],[0,0]]});else if(h||d){var g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t&&t/Math.sqrt(2)/Math.sqrt(2)||e*n/Math.sqrt(2)};m=(0,r.lineBuilder)({className:"subject-pointer",data:[[0,0],[g(h),g(d)],[g(h,-1),g(d,-1)],[0,0]]})}if(m&&(m.attrs.fill=u,m.attrs["stroke-linecap"]="round",m.attrs["stroke-width"]="3px",c.push(m)),l){var x={x:2*h,y:2*d,offsetParent:!0};x.x||x.y||(x.y=-n),s=[x]}var O=void 0;return a&&(O={type:"text",className:"badge-text",attrs:{fill:"white",stroke:"none","font-size":".7em",text:a,"text-anchor":"middle",dy:".25em",x:h,y:d}}),c.push(b),c.push(v),c.push(O),{components:c,handles:s}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.circleHandles=void 0;var r=n(1),o=e.circleHandles=function(t){var e=t.cx,n=void 0===e?0:e,r=t.cy,o=void 0===r?0:r,i=t.r1,a=t.r2,u=t.padding,l={move:{x:n,y:o}};return void 0!==i&&(l.r1={x:n+i/Math.sqrt(2),y:o+i/Math.sqrt(2)}),void 0!==a&&(l.r2={x:n+a/Math.sqrt(2),y:o+a/Math.sqrt(2)}),void 0!==u&&(l.padding={x:n+i+u,y:o}),l};e.default=function(t){var e=t.radius,n=t.radiusPadding,i=t.outerRadius,a=t.innerRadius,u=t.editMode,l=[],s=(0,r.arcBuilder)({data:{radius:e,outerRadius:i,innerRadius:a},className:"subject"});if(u){var c=o({r1:s.data.outerRadius||s.data.radius,r2:s.data.innerRadius,padding:n}),f=[{x:c.r1.x,y:c.r1.y,key:s.data.outerRadius?"outerRadius":"radius"}];a&&f.push({x:c.r2.x,y:c.r2.y,key:"innerRadius"}),l=f}return s.attrs["fill-opacity"]=0,{components:[s],handles:l}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t){var e=t.width,n=void 0===e?100:e,o=t.height,i=void 0===o?100:o,a=t.editMode,u=[],l=[[0,0],[n,0],[n,i],[0,i],[0,0]],s=(0,r.lineBuilder)({data:l,className:"subject"});return a&&(u=[{x:n,y:i/2,key:"width"},{x:n/2,y:i,key:"height"}]),s.attrs["fill-opacity"]=.1,{components:[s],handles:u}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t){var e=t.x1,n=t.x2,o=t.y1,i=t.y2,a=t.x,u=t.y,l=[[e=(void 0!==e?e:a)-a,o=(void 0!==o?o:u)-u],[n=(void 0!==n?n:a)-a,i=(void 0!==i?i:u)-u]];return{components:[(0,r.lineBuilder)({data:l,className:"subject"})]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);function o(t,e,n,r,o,i){var a=t-n,u=e-r,l=Math.sqrt(a*a+u*u),s=t-.5*l*(a/=l)+o*(u/=l),c=e-.5*l*u-o*a;return"M "+t+" "+e+" Q "+(t+i*o*u)+" "+(e-i*o*a)+" "+(t-.25*l*a+(1-i)*o*u)+" "+(e-.25*l*u-(1-i)*o*a)+" T "+s+" "+c+" M "+n+" "+r+" Q "+(n+i*o*u)+" "+(r-i*o*a)+" "+(t-.75*l*a+(1-i)*o*u)+" "+(e-.75*l*u-(1-i)*o*a)+" T "+s+" "+c}e.default=function(t){var e=t.height,n=t.width,i=t.depth,a=t.type,u=t.editMode,l=[],s=void 0,c=void 0,f=0,h=0;return e&&e>0?h=e:n&&n>0&&(f=n),"square"===a?(h?s=[[0,0],[i,0],[i,h],[0,h]]:f&&(s=[[0,0],[0,i],[f,i],[f,0]]),c=(0,r.lineBuilder)({data:s,className:"subject"})):"curly"===a&&(c=(0,r.pathBuilder)({d:o(0,0,f,h,h>0||f<0?-i:i,.55),className:"subject"})),u&&(l=[{x:h?i:f/2,y:h?h/2:i,key:"depth",type:h?"X":"Y"},{x:f||0,y:h||0,key:h?"height":"width"}]),c.attrs["fill-opacity"]=.1,{components:[c],handles:l}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=n(12);e.default=function(t){var e=t.align,n=t.x,i=void 0===n?0:n,a=t.y,u=void 0===a?0:a,l=t.bbox,s=t.offset;"top"===(e=(0,o.leftRightDynamic)(e,s.y))?u-=l.height:"middle"===e&&(u-=l.height/2);var c=[[i,u],[i,u+l.height]];return{components:[(0,r.lineBuilder)({data:c,className:"note-line"})]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=n(12);e.default=function(t){var e=t.align,n=t.x,i=void 0===n?0:n,a=t.y,u=void 0===a?0:a,l=t.offset,s=t.bbox;"right"===(e=(0,o.topBottomDynamic)(e,l.x))?i-=s.width:"middle"===e&&(i-=s.width/2);var c=[[i,u],[i+s.width,u]];return{components:[(0,r.lineBuilder)({data:c,className:"note-line"})]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,r.default)("label",t.className);return(0,o.default)(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){u(t,e,n[e])}))}return t}({},t,{className:e}),i.default,{align:"middle"})};var r=a(n(2)),o=a(n(4)),i=a(n(9));function a(t){return t&&t.__esModule?t:{default:t}}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,n=t.note,i=t.dx,a=t.dy,u=t.editMode,l=t.dragStart,s=t.dragEnd,c=t.dragNote;u&&(e=r.default.createElement(o.default,{handleStart:l,handleStop:s,handleDrag:c}));return r.default.createElement("g",{className:"annotation-note",transform:"translate(".concat(i,", ").concat(a,")")},"function"==typeof n?n(t):n,e)};var r=i(n(0)),o=i(n(7));function i(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,r.default)("callout",t.className);return(0,o.default)(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){u(t,e,n[e])}))}return t}({},t,{className:e}),i.default,{lineType:"horizontal"})};var r=a(n(2)),o=a(n(4)),i=a(n(9));function a(t){return t&&t.__esModule?t:{default:t}}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,o.default)("callout elbow",t.className);return(0,i.default)(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){u(t,e,n[e])}))}return t}({},t,{className:e}),r.default,{lineType:"horizontal"})};var r=a(n(6)),o=a(n(2)),i=a(n(4));function a(t){return t&&t.__esModule?t:{default:t}}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,o.default)("callout curve",t.className);return(0,i.default)(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){u(t,e,n[e])}))}return t}({},t,{className:e}),r.default,{lineType:"horizontal"})};var r=a(n(10)),o=a(n(2)),i=a(n(4));function a(t){return t&&t.__esModule?t:{default:t}}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,i.default)("callout circle",t.className);return(0,a.default)(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}({},t,{className:e}),o.default,{lineType:"horizontal"},r.default,{radius:20})};var r=u(n(19)),o=u(n(6)),i=u(n(2)),a=u(n(4));function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,i.default)("callout rect",t.className);return(0,a.default)(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}({},t,{className:e}),o.default,{lineType:"horizontal"},r.default,{width:100,height:100})};var r=u(n(20)),o=u(n(6)),i=u(n(2)),a=u(n(4));function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,i.default)("callout xythreshold",t.className);return(0,a.default)(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}({},t,{className:e}),o.default,{lineType:"horizontal"},r.default)};var r=u(n(21)),o=u(n(6)),i=u(n(2)),a=u(n(4));function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,o.default)("badge",t.className);return(0,i.default)(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){u(t,e,n[e])}))}return t}({},t,{disable:["connector","note"],className:e}),null,null,r.default)};var r=a(n(18)),o=a(n(2)),i=a(n(4));function a(t){return t&&t.__esModule?t:{default:t}}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,i.default)("bracket",t.className);return(0,a.default)(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}({},t,{disable:["connector"],className:e}),null,null,r.default,{depth:20},o.default)};var r=u(n(22)),o=u(n(24)),i=u(n(2)),a=u(n(4));function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,i.default)("callout custom",t.className);return(0,a.default)(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}({},t,{className:e}),o.default,{lineType:"horizontal"},r.default)};var r=u(n(23)),o=u(n(6)),i=u(n(2)),a=u(n(4));function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}}]);