diff --git a/frontend/src/lib/components/Detail.react.js b/frontend/src/lib/components/Detail.react.js index 09cd5f7c..6b23a2b2 100644 --- a/frontend/src/lib/components/Detail.react.js +++ b/frontend/src/lib/components/Detail.react.js @@ -13,8 +13,8 @@ function DetailSymbolPill(props) { const colorPalette = useColorPalette(); return {make_atoms_string(symbol)} } @@ -97,13 +97,13 @@ export function Detail(props) { } if (data === null) { return

{type}

Loading..
} - return

{type}

{data.map((resp) => diff --git a/frontend/src/lib/components/Edges.react.js b/frontend/src/lib/components/Edges.react.js index 0fbcd257..3716fc57 100644 --- a/frontend/src/lib/components/Edges.react.js +++ b/frontend/src/lib/components/Edges.react.js @@ -4,6 +4,7 @@ import PropTypes, { node } from "prop-types"; import useResizeObserver from "@react-hook/resize-observer"; import {useShownNodes} from "../contexts/ShownNodes"; import {useSettings} from "../contexts/Settings"; +import {useColorPalette} from "../contexts/ColorPalette"; import {useFilters} from "../contexts/Filters"; import { useShownRecursion } from "../contexts/ShownRecursion"; import { useAnimationUpdater } from "../contexts/AnimationUpdater"; @@ -41,6 +42,7 @@ const useResize = (target) => { export function Edges(props) { const { usingClingraph } = props; + const colorPalete = useColorPalette(); const [edges, setEdges] = React.useState([]); const [clingraphEdges, setClingraphEdges] = React.useState([]); const target = React.useRef(null) @@ -87,11 +89,11 @@ export function Edges(props) { return
{edges.map(link => )} + to={link.tgt} zIndex={1} borderColor={colorPalete.seventy.dark} borderStyle={"solid"} borderWidth={1} />)} {!usingClingraph ? null: clingraphEdges.map(link => )} + to={link.tgt} zIndex={1} borderColor={colorPalete.seventy.bright} borderStyle={"dashed"} borderWidth={2} />)}
diff --git a/frontend/src/lib/components/Facts.react.js b/frontend/src/lib/components/Facts.react.js index a7781221..4ef81332 100644 --- a/frontend/src/lib/components/Facts.react.js +++ b/frontend/src/lib/components/Facts.react.js @@ -58,7 +58,7 @@ function FactBanner(props) { }, []) const clazzName = `${fact.uuid} facts_banner noselect` return
Facts
+ style={{"color": colorPalette.sixty.dark, "backgroundColor": colorPalette.ten.dark}}>Facts
} FactBanner.propTypes = { diff --git a/frontend/src/lib/components/Node.react.js b/frontend/src/lib/components/Node.react.js index 3afcaa66..7256ee1c 100644 --- a/frontend/src/lib/components/Node.react.js +++ b/frontend/src/lib/components/Node.react.js @@ -150,7 +150,7 @@ function NodeContent(props) { }) - return
+ return
{renderedSymbols.length > 0 ? renderedSymbols : ""}
} @@ -301,7 +301,7 @@ export function RecursiveSuperNode(props) { }) return
{ e.stopPropagation(); notifyClick(node) }} > diff --git a/frontend/src/lib/components/SearchResult.react.js b/frontend/src/lib/components/SearchResult.react.js index 9d9ff953..c5fd735f 100644 --- a/frontend/src/lib/components/SearchResult.react.js +++ b/frontend/src/lib/components/SearchResult.react.js @@ -30,7 +30,7 @@ function SuggestionContent(props) { } if (value._type === "Signature") { suggestionSymbol = " /" - color = colorPalette.ten.bright; + color = colorPalette.ten.dark; display = `${value.name}/${value.args}` } diff --git a/frontend/src/lib/contexts/ColorPalette.js b/frontend/src/lib/contexts/ColorPalette.js index e414991c..d16d2074 100644 --- a/frontend/src/lib/contexts/ColorPalette.js +++ b/frontend/src/lib/contexts/ColorPalette.js @@ -2,15 +2,25 @@ import React from "react"; import PropTypes from "prop-types"; export const defaultPalette = { - ten: {dark: "#3FA7D1", bright: "#3FA7E1"}, - twenty: { dark: "#b7a4b0" }, - thirty: {dark: "#444", bright: "#454545"}, - fourty: { dark: "#ff7e7e" }, - fifty: { dark: "#c27860"}, - sixty: {dark: "#F6F4F3", bright: "#FEFEFE"}, + // node border colors + ten: {dark: "#3FA7D1", bright: "#3FA7E1"}, + // row background (arbitrary number and names) + twenty: { dark: "#a9a9a94a", bright: "#ffffff" }, + // text color of node, detail sidebar, row header (dark) and detail sidebar atoms (bright) + thirty: { dark: "#444", bright: "#F6F4F3"}, + // recursive node supernode background (dark) and border (bright) + fourty: { dark: "#3FA7D1", bright: "#3FA7D1" }, + // detail sidebar atom background (dark) and border (bright) + fifty: { dark: "#3FA7D1" }, + // background color of node, detail sidebar, row header + sixty: { dark: "#F6F4F3" }, + // edge color (dark) and edge to clingraph color (bright) + seventy: { dark: "#000000", bright: "#000000" }, + // arbitrary number of colors to highlight explanations highlight: { 0: "#d48521", 1: "#9a8298", 2: "#e0e4ac", 3: "#98f4e2", 4: "#21d485" }, - error: {ten: "#EB4A4E", thirty: "#4C191A", sixty: "#FCE8E8"}, - warn: {ten: "#FF9800", thirty: "#653300", sixty: "#FFF1DF"} + // currently not used + error: {ten: "#EB4A4E", thirty: "#4C191A", sixty: "#FCE8E8"}, + warn: {ten: "#FF9800", thirty: "#653300", sixty: "#FFF1DF"} }; const ColorPaletteContext = React.createContext([]); @@ -18,19 +28,40 @@ export const updateColorPalette = (custom_colors) => { if ("ten" in custom_colors) { defaultPalette.ten = custom_colors.ten; } + if ("twenty" in custom_colors) { + defaultPalette.twenty = custom_colors.twenty; + } if ("thirty" in custom_colors) { defaultPalette.thirty = custom_colors.thirty; } + if ("fourty" in custom_colors) { + defaultPalette.fourty = custom_colors.fourty; + } + if ("fifty" in custom_colors) { + defaultPalette.fifty = custom_colors.fifty; + } if ("sixty" in custom_colors) { defaultPalette.sixty = custom_colors.sixty; } + if ("seventy" in custom_colors) { + defaultPalette.seventy = custom_colors.seventy; + } + if ("highlight" in custom_colors) { + defaultPalette.highlight = custom_colors.highlight; + } + if ("error" in custom_colors) { + defaultPalette.error = custom_colors.error; + } + if ("warn" in custom_colors) { + defaultPalette.warn = custom_colors.warn; + } React.useContext(ColorPaletteContext) return defaultPalette; }; export const useColorPalette = () => React.useContext(ColorPaletteContext); export const ColorPaletteProvider = ({children, colorPalette}) => { - const updatedColorPalette = updateColorPalette(colorPalette) + const updatedColorPalette = !colorPalette ? defaultPalette : updateColorPalette(colorPalette) return {children} } @@ -43,9 +74,15 @@ ColorPaletteProvider.propTypes = { * The color palette to update the color palette with */ colorPalette: PropTypes.exact({ - ten: PropTypes.string, - thirty: PropTypes.string, - sixty: PropTypes.string, - background: PropTypes.string + ten: PropTypes.object, + twenty: PropTypes.object, + thirty: PropTypes.object, + fourty: PropTypes.object, + fifty: PropTypes.object, + sixty: PropTypes.object, + seventy: PropTypes.object, + highlight: PropTypes.object, + error: PropTypes.object, + warn: PropTypes.object }) } diff --git a/frontend/src/lib/main/ViaspDash.react.js b/frontend/src/lib/main/ViaspDash.react.js index 949a0026..798d5666 100644 --- a/frontend/src/lib/main/ViaspDash.react.js +++ b/frontend/src/lib/main/ViaspDash.react.js @@ -9,7 +9,7 @@ import { Edges } from "../components/Edges.react"; import { Arrows } from "../components/Arrows.react"; import {initialState, nodeReducer, ShownNodesProvider} from "../contexts/ShownNodes"; import {TransformationProvider, useTransformations} from "../contexts/transformations"; -import { ColorPaletteProvider } from "../contexts/ColorPalette"; +import { ColorPaletteProvider, useColorPalette } from "../contexts/ColorPalette"; import {HighlightedNodeProvider} from "../contexts/HighlightedNode"; import {showError, useMessages, UserMessagesProvider} from "../contexts/UserMessages"; import {Settings} from "../components/settings"; @@ -36,7 +36,8 @@ function GraphContainer(props) { const {setDetail, notifyDash, usingClingraph} = props; const {state: {transformations}} = useTransformations() const lastNodeInGraph = transformations.length - 1; - const background = ["#a9a9a94a", "#ffffff"] + const colorPalette = useColorPalette(); + const background = Object.values(colorPalette.twenty); return
@@ -55,7 +56,7 @@ function GraphContainer(props) { notifyDash(clickedOn) setDetail(clickedOn.uuid) }} - color={background[i%2]} + color={background[i % background.length]} /> } })} diff --git a/frontend/viasp_dash/viasp_dash.min.js b/frontend/viasp_dash/viasp_dash.min.js index ff1c27ed..c6b659a3 100644 --- a/frontend/viasp_dash/viasp_dash.min.js +++ b/frontend/viasp_dash/viasp_dash.min.js @@ -1,4 +1,4 @@ /*! For license information please see viasp_dash.min.js.LICENSE.txt */ -window.viasp_dash=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}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="";var r,o=function(){var t=document.currentScript;if(!t){for(var e=document.getElementsByTagName("script"),n=[],r=0;r=0&&f.splice(e,1)}function m(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=function(){0;return n.nc}();r&&(t.attrs.nonce=r)}return g(e,t.attrs),v(t,e),e}function g(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function b(t,e){var n,r,o,i;if(e.transform&&t.css){if(!(i="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=i}if(e.singleton){var a=l++;n=s||(s=m(e)),r=x.bind(null,n,a,!1),o=x.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),v(t,e),e}(e),r=O.bind(null,n,e),o=function(){y(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(e),r=S.bind(null,n),o=function(){y(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=h(t,e);return p(n,e),function(t){for(var r=[],o=0;o{"use strict";var n={229:e=>{e.exports=t},297:t=>{t.exports=e}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={exports:{}};return n[t](i,i.exports,o),i.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{o.r(i),o.d(i,{default:()=>S,SteppedLineTo:()=>O,Line:()=>E,SteppedLine:()=>A});var t=o(229),e=o.n(t),n=o(297),r=o.n(n);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(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n2)throw new Error('LinkTo anchor format is " "');var n=f(e,2),r=n[0],o=n[1];return Object.assign({},_,r?this.parseAnchorText(r)||{x:this.parseAnchorPercent(r)}:{},o?this.parseAnchorText(o)||{y:this.parseAnchorPercent(o)}:{})}},{key:"findElement",value:function(t){return document.getElementsByClassName(t)[0]}},{key:"detect",value:function(){var t=this.props,e=t.from,n=t.to,r=t.within,o=void 0===r?"":r,i=this.findElement(e),a=this.findElement(n);if(!i||!a)return!1;var u=this.fromAnchor,c=this.toAnchor,s=i.getBoundingClientRect(),l=a.getBoundingClientRect(),f=window.pageXOffset,d=window.pageYOffset;if(o){var p=this.findElement(o),h=p.getBoundingClientRect();f-=h.left+(window.pageXOffset||document.documentElement.scrollLeft)-p.scrollLeft,d-=h.top+(window.pageYOffset||document.documentElement.scrollTop)-p.scrollTop}var v=s.left+s.width*u.x+f,y=l.left+l.width*c.x+f;return{x0:v,y0:s.top+s.height*u.y+d,x1:y,y1:l.top+l.height*c.y+d}}},{key:"render",value:function(){var t=this.detect();return t?r().createElement(E,l({},t,this.props)):null}}]),n}(n.Component);S.propTypes=c({from:e().string.isRequired,to:e().string.isRequired,within:e().string,fromAnchor:e().string,toAnchor:e().string,delay:e().oneOfType([e().number,e().bool])},x);var O=function(t){y(n,t);var e=g(n);function n(){return p(this,n),e.apply(this,arguments)}return v(n,[{key:"render",value:function(){var t=this.detect();return t?r().createElement(A,l({},t,this.props)):null}}]),n}(S),E=function(t){y(n,t);var e=g(n);function n(){return p(this,n),e.apply(this,arguments)}return v(n,[{key:"componentDidMount",value:function(){this.within.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.within.removeChild(this.el)}},{key:"findElement",value:function(t){return document.getElementsByClassName(t)[0]}},{key:"render",value:function(){var t=this,e=this.props,n=e.x0,o=e.y0,i=e.x1,a=e.y1,u=e.within,c=void 0===u?"":u;this.within=c?this.findElement(c):document.body;var s=a-o,f=i-n,d=180*Math.atan2(s,f)/Math.PI,p=Math.sqrt(f*f+s*s),h={position:"absolute",top:"".concat(o,"px"),left:"".concat(n,"px"),width:"".concat(p,"px"),zIndex:Number.isFinite(this.props.zIndex)?String(this.props.zIndex):"1",transform:"rotate(".concat(d,"deg)"),transformOrigin:"0 0"},v={borderTopColor:this.props.borderColor||"#f00",borderTopStyle:this.props.borderStyle||"solid",borderTopWidth:this.props.borderWidth||1},y={className:this.props.className,style:Object.assign({},v,h)};return r().createElement("div",{className:"react-lineto-placeholder"},r().createElement("div",l({ref:function(e){t.el=e}},y)))}}]),n}(n.PureComponent);E.propTypes=c({x0:e().number.isRequired,y0:e().number.isRequired,x1:e().number.isRequired,y1:e().number.isRequired},x);var A=function(t){y(n,t);var e=g(n);function n(){return p(this,n),e.apply(this,arguments)}return v(n,[{key:"render",value:function(){return"h"===this.props.orientation?this.renderHorizontal():this.renderVertical()}},{key:"renderVertical",value:function(){var t=Math.round(this.props.x0),e=Math.round(this.props.y0),n=Math.round(this.props.x1),o=Math.round(this.props.y1),i=n-t;if(Math.abs(i)<=1)return r().createElement(E,l({},this.props,{x0:t,y0:e,x1:t,y1:o}));if(0===i)return r().createElement(E,this.props);var a=this.props.borderWidth||1,u=Math.round((e+o)/2),c=i>0?a:0,s=Math.min(t,n)-c,f=Math.max(t,n);return r().createElement("div",{className:"react-steppedlineto"},r().createElement(E,l({},this.props,{x0:t,y0:e,x1:t,y1:u})),r().createElement(E,l({},this.props,{x0:n,y0:o,x1:n,y1:u})),r().createElement(E,l({},this.props,{x0:s,y0:u,x1:f,y1:u})))}},{key:"renderHorizontal",value:function(){var t=Math.round(this.props.x0),e=Math.round(this.props.y0),n=Math.round(this.props.x1),o=Math.round(this.props.y1),i=o-e;if(Math.abs(i)<=1)return r().createElement(E,l({},this.props,{x0:t,y0:e,x1:n,y1:e}));if(0===i)return r().createElement(E,this.props);var a=this.props.borderWidth||1,u=Math.round((t+n)/2),c=i<0?a:0,s=Math.min(e,o)-c,f=Math.max(e,o);return r().createElement("div",{className:"react-steppedlineto"},r().createElement(E,l({},this.props,{x0:t,y0:e,x1:u,y1:e})),r().createElement(E,l({},this.props,{x0:n,y0:o,x1:u,y1:o})),r().createElement(E,l({},this.props,{x0:u,y0:s,x1:u,y1:f})))}}]),n}(n.PureComponent);A.propTypes=c({x0:e().number.isRequired,y0:e().number.isRequired,x1:e().number.isRequired,y1:e().number.isRequired,orientation:e().oneOf(["h","v"])},x)})(),i})()},t.exports=r(n(1),n(0))},function(t,e,n){"use strict";var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}((function(t){return r.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}));e.a=o},function(t,e,n){"use strict";(function(t){var r=n(4),o=n(0),i=n.n(o),a=n(9),u=n.n(a),c=n(10),s=n(11),l=n(7),f=n(5),d=n.n(f);function p(){return(p=Object.assign||function(t){for(var e=1;e1?e-1:0),r=1;r0?" Args: "+n.join(", "):""))}var E=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}var e=t.prototype;return e.indexOfGroup=function(t){for(var e=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;t>=o;)(o<<=1)<0&&O(16,""+t);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i=this.length||0===this.groupSizes[t])return e;for(var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n,i=r;i=j&&(j=e+1),A.set(t,e),k.set(e,t)},R="style["+_+'][data-styled-version="5.3.3"]',I=new RegExp("^"+_+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),M=function(t,e,n){for(var r,o=n.split(","),i=0,a=o.length;i=0;n--){var r=e[n];if(r&&1===r.nodeType&&r.hasAttribute(_))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(_,"active"),r.setAttribute("data-styled-version","5.3.3");var a=z();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},D=function(){function t(t){var e=this.element=L(t);e.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var e=document.styleSheets,n=0,r=e.length;n=0){var n=document.createTextNode(e),r=this.nodes[t];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},e.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.getRule=function(t){return t0&&(s+=t+",")})),r+=""+u+c+'{content:"'+s+'"}/*!sc*/\n'}}}return r}(this)},t}(),H=/(a)(d)/gi,X=function(t){return String.fromCharCode(t+(t>25?39:97))};function q(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=X(e%52)+n;return(X(e%52)+n).replace(H,"$1-$2")}var G=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},V=function(t){return G(5381,t)};function Y(t){for(var e=0;e>>0);if(!e.hasNameForId(r,a)){var u=n(i,"."+a,void 0,r);e.insertRules(r,a,u)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,s=G(this.baseHash,n.hash),l="",f=0;f>>0);if(!e.hasNameForId(r,v)){var y=n(l,"."+v,void 0,r);e.insertRules(r,v,y)}o.push(v)}}return o.join(" ")},t}(),K=/^\s*\/\/.*$/gm,Q=[":","[",".","#"];function tt(t){var e,n,r,o,i=void 0===t?m:t,a=i.options,u=void 0===a?m:a,s=i.plugins,l=void 0===s?y:s,f=new c.a(u),d=[],p=function(t){function e(e){if(e)try{t(e+"}")}catch(t){}}return function(n,r,o,i,a,u,c,s,l,f){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return t(r+";"),"";break;case 2:if(0===s)return r+"/*|*/";break;case 3:switch(s){case 102:case 112:return t(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(e)}}}((function(t){d.push(t)})),h=function(t,r,i){return 0===r&&-1!==Q.indexOf(i[n.length])||i.match(o)?t:"."+e};function v(t,i,a,u){void 0===u&&(u="&");var c=t.replace(K,""),s=i&&a?a+" "+i+" { "+c+" }":c;return e=u,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),f(a||!i?"":i,s)}return f.use([].concat(l,[function(t,e,o){2===t&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,h))},p,function(t){if(-2===t){var e=d;return d=[],e}}])),v.hash=l.length?l.reduce((function(t,e){return e.name||O(15),G(t,e.name)}),5381).toString():"",v}var et=i.a.createContext(),nt=(et.Consumer,i.a.createContext()),rt=(nt.Consumer,new W),ot=tt();function it(){return Object(o.useContext)(et)||rt}function at(){return Object(o.useContext)(nt)||ot}function ut(t){var e=Object(o.useState)(t.stylisPlugins),n=e[0],r=e[1],a=it(),c=Object(o.useMemo)((function(){var e=a;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target]),s=Object(o.useMemo)((function(){return tt({options:{prefix:!t.disableVendorPrefixes},plugins:n})}),[t.disableVendorPrefixes,n]);return Object(o.useEffect)((function(){u()(n,t.stylisPlugins)||r(t.stylisPlugins)}),[t.stylisPlugins]),i.a.createElement(et.Provider,{value:c},i.a.createElement(nt.Provider,{value:s},t.children))}var ct=function(){function t(t,e){var n=this;this.inject=function(t,e){void 0===e&&(e=ot);var r=n.name+e.hash;t.hasNameForId(n.id,r)||t.insertRules(n.id,r,e(n.rules,r,"@keyframes"))},this.toString=function(){return O(12,String(n.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=e}return t.prototype.getName=function(t){return void 0===t&&(t=ot),this.name+t.hash},t}(),st=/([A-Z])/,lt=/([A-Z])/g,ft=/^ms-/,dt=function(t){return"-"+t.toLowerCase()};function pt(t){return st.test(t)?t.replace(lt,dt).replace(ft,"-ms-"):t}var ht=function(t){return null==t||!1===t||""===t};function vt(t,e,n,r){if(Array.isArray(t)){for(var o,i=[],a=0,u=t.length;a1?e-1:0),r=1;r?@[\\\]^`{|}~-]+/g,wt=/(^-|-$)/g;function _t(t){return t.replace(bt,"-").replace(wt,"")}var xt=function(t){return q(V(t)>>>0)};function St(t){return"string"==typeof t&&!0}var Ot=function(t){return"function"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)},Et=function(t){return"__proto__"!==t&&"constructor"!==t&&"prototype"!==t};function At(t,e,n){var r=t[n];Ot(e)&&Ot(r)?kt(r,e):t[n]=e}function kt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r=0||(o[n]=t[n]);return o}(e,["componentId"]),i=r&&r+"-"+(St(t)?t:_t(b(t)));return Pt(t,p({},o,{attrs:x,componentId:i}),n)},Object.defineProperty(O,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?kt({},t.defaultProps,e):e}}),O.toString=function(){return"."+O.styledComponentId},a&&d()(O,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),O}var Tt=function(t){return function t(e,n,o){if(void 0===o&&(o=m),!Object(r.isValidElementType)(n))return O(1,String(n));var i=function(){return e(n,o,mt.apply(void 0,arguments))};return i.withConfig=function(r){return t(e,n,p({},o,{},r))},i.attrs=function(r){return t(e,n,p({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(Pt,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(t){Tt[t]=Tt(t)}));!function(){function t(t,e){this.rules=t,this.componentId=e,this.isStatic=Y(t),W.registerId(this.componentId+1)}var e=t.prototype;e.createStyles=function(t,e,n,r){var o=r(vt(this.rules,e,n,r).join(""),""),i=this.componentId+t;n.insertRules(i,i,o)},e.removeStyles=function(t,e){e.clearRules(this.componentId+t)},e.renderStyles=function(t,e,n,r){t>2&&W.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,e,n,r)}}();!function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString();if(!e)return"";var n=z();return""},this.getStyleTags=function(){return t.sealed?O(2):t._emitSheetCSS()},this.getStyleElement=function(){var e;if(t.sealed)return O(2);var n=((e={})[_]="",e["data-styled-version"]="5.3.3",e.dangerouslySetInnerHTML={__html:t.instance.toString()},e),r=z();return r&&(n.nonce=r),[i.a.createElement("style",p({},n,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var e=t.prototype;e.collectStyles=function(t){return this.sealed?O(2):i.a.createElement(ut,{sheet:this.instance},t)},e.interleaveWithNodeStream=function(t){return O(3)}}();e.a=Tt}).call(this,n(27))},function(t,e){t.exports=function(t,e,n,r){var o=n?n.call(r,t,e):void 0;if(void 0!==o)return!!o;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(e),c=0;cr&&(r=(e=e.trim()).charCodeAt(0)),r){case 38:return e.replace(v,"$1"+t.trim());case 58:return t.trim()+e.replace(v,"$1"+t.trim());default:if(0<1*n&&0c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102u.charCodeAt(0)&&(u=u.trim()),u=[u],0p)&&(B=($=$.replace(" ",":")).length),00?"translate(-100% , -50%)":"translate(-0% , -50%)",width:"max-content",position:"absolute",left:G.cx0+G.labelEndPos.x,top:G.cy0+G.labelEndPos.y+x+5}},g.end):null,B?s.default.createElement(s.default.Fragment,null,u(u([],G.startPoints),G.endPoints).map((function(t,e){return s.default.createElement("div",{key:e,style:{background:"gray",opacity:.5,borderRadius:"50%",transform:"translate(-50%, -50%)",height:5,width:5,position:"absolute",left:t.x-G.mainDivPos.x,top:t.y-G.mainDivPos.y}})}))):null):null)});h.propTypes=d.default,e.default=h},"./src/Xarrow/anchors.ts":function(t,e,n){t=n.nmd(t),Object.defineProperty(e,"__esModule",{value:!0}),e.calcAnchors=void 0,e.calcAnchors=function(t,e){return t.map((function(t){var n,r,o=(n=e.right-e.x,r=e.bottom-e.y,{middle:{x:.5*n,y:.5*r},left:{x:0,y:.5*r},right:{x:n,y:.5*r},top:{x:.5*n,y:0},bottom:{x:.5*n,y:r}})[t.position],i=o.x,a=o.y;return{x:e.x+i+t.offset.x,y:e.y+a+t.offset.y,anchor:t}}))},n.c[n.s]},"./src/Xarrow/propTypes.ts":function(t,e,n){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(n("prop-types")),i=n("./src/constants.tsx"),a=o.default.oneOf(i.cAnchorEdge),u=o.default.exact({position:a.isRequired,offset:o.default.exact({x:o.default.number,y:o.default.number}).isRequired}),c=o.default.oneOfType([a,u]),s=o.default.oneOfType([c,o.default.arrayOf(c)]),l=o.default.oneOfType([o.default.string,o.default.exact({current:o.default.any})]),f=o.default.oneOfType([o.default.element,o.default.string]),d=o.default.exact({start:f,middle:f,end:f}),p=o.default.oneOf(Object.keys(i.arrowShapes)),h=o.default.any,v=o.default.oneOfType([p,o.default.exact({svgElem:h,offsetForward:o.default.number}).isRequired]),y={start:l.isRequired,end:l.isRequired,startAnchor:s,endAnchor:s,labels:o.default.oneOfType([f,d]),color:o.default.string,lineColor:o.default.string,showHead:o.default.bool,headColor:o.default.string,headSize:o.default.number,tailSize:o.default.number,tailColor:o.default.string,strokeWidth:o.default.number,showTail:o.default.bool,path:o.default.oneOf(i.cPaths),showXarrow:o.default.bool,curveness:o.default.number,gridBreak:o.default.string,dashness:o.default.oneOfType([o.default.bool,o.default.object]),headShape:v,tailShape:v,animateDrawing:o.default.oneOfType([o.default.bool,o.default.number]),zIndex:o.default.number,passProps:o.default.object,arrowBodyProps:o.default.object,arrowHeadProps:o.default.object,arrowTailProps:o.default.object,SVGcanvasProps:o.default.object,divContainerProps:o.default.object,_extendSVGcanvas:o.default.number,_debug:o.default.bool,_cpx1Offset:o.default.number,_cpy1Offset:o.default.number,_cpx2Offset:o.default.number,_cpy2Offset:o.default.number};e.default=y},"./src/Xarrow/useXarrowProps.ts":function(t,e,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&(e=e.filter((function(t){return"auto"!==t.position}))).push.apply(e,n.flatMap((function(t){return["left","right","top","bottom"].map((function(e){return r(r({},t),{position:e})}))}))),e.map((function(t){if("object"==typeof t){var e=t;return e.position||(e.position="auto"),e.offset||(e.offset={x:0,y:0}),e.offset.y||(e.offset.y=0),e.offset.x||(e.offset.x=0),e=e}return t}))},p=function(t){return"string"==typeof t&&(t in f.arrowShapes?t=f.arrowShapes[t]:(console.warn("'"+t+"' is not supported arrow shape. the supported arrow shapes is one of "+f.cArrowShapes+".\n reverting to default shape."),t=f.arrowShapes.arrow1)),void 0===(null==(t=t)?void 0:t.offsetForward)&&(t.offsetForward=.25),void 0===(null==t?void 0:t.svgElem)&&(t.svgElem="path"),t},h=function(t,e){return e&&(e.current=!0),t},v=function(t){return t},y=function(t,e,n){return h(t,n)},m=function(t,e,n){return h(Number(t),n)},g={start:function(t){return s.getElementByPropGiven(t)},end:function(t){return s.getElementByPropGiven(t)},startAnchor:function(t,e,n){return h(d(t),n)},endAnchor:function(t,e,n){return h(d(t),n)},labels:function(t){return function(t){var e={start:null,middle:null,end:null};if(t)if("string"==typeof t||c.default.isValidElement(t))e.middle=t;else for(var n in t)e[n]=t[n];return e}(t)},color:v,lineColor:function(t,e){return t||e.color},headColor:function(t,e){return t||e.color},tailColor:function(t,e){return t||e.color},strokeWidth:m,showHead:y,headSize:m,showTail:y,tailSize:m,path:y,curveness:m,gridBreak:function(t,e,n){return h((r=t,(o=s.xStr2absRelative(r))||(o={relative:.5,abs:0}),o),n);var r,o},dashness:function(t,e){return r=e,i=0,a=0,"object"==typeof(n=t)?(i=n.strokeLen||2*r.strokeWidth,a=n.strokeLen?n.nonStrokeLen:r.strokeWidth,o=n.animation?n.animation:null):"boolean"==typeof n&&n&&(i=2*r.strokeWidth,a=r.strokeWidth,o=null),{strokeLen:i,nonStrokeLen:a,animation:o,animDirection:1};var n,r,o,i,a},headShape:function(t){return p(t)},tailShape:function(t){return p(t)},showXarrow:v,animateDrawing:v,zIndex:function(t){return Number(t)},passProps:v,arrowBodyProps:y,arrowHeadProps:y,arrowTailProps:y,SVGcanvasProps:y,divContainerProps:y,divContainerStyle:y,SVGcanvasStyle:y,_extendSVGcanvas:y,_debug:y,_cpx1Offset:y,_cpy1Offset:y,_cpx2Offset:y,_cpy2Offset:y},b={};for(var w in g)b[w]=[w];for(var _=0,x=["lineColor","headColor","tailColor"];_0?1:-1,tt=J>0?1:-1,et=[S.offsetForward,O.offsetForward],nt=et[0],rt=et[1],ot=m*v,it=b*v,at=0,ut=0,ct=0,st=0,lt=ot*nt,ft=it*rt,dt=Number(_);u.cPaths.includes(w)||(w="smooth"),"straight"===w&&(dt=0,w="smooth");var pt=v+v*(m>b?m:b)/2,ht=pt,vt=pt,yt=pt,mt=pt;vt+=Number(E),ht+=Number(E),yt+=Number(E),mt+=Number(E);var gt=0,bt=Z,wt=0,_t=K;if(Y<0&&(gt=(n=[bt,gt])[0],bt=n[1]),J<0&&(wt=(r=[_t,wt])[0],_t=r[1]),0===dt){var xt=Math.atan(K/Z);y&&(bt-=ot*(1-nt)*Q*Math.cos(xt),_t-=ot*(1-nt)*tt*Math.sin(xt),xt*=tt,Q<0&&(xt=(Math.PI-xt*Q)*Q),at=Math.cos(xt)*lt-Math.sin(xt)*ot/2,ut=Math.cos(xt)*ot/2+Math.sin(xt)*lt,N=180*xt/Math.PI);var St=Math.atan(K/Z);g&&(gt+=it*(1-rt)*Q*Math.cos(St),wt+=it*(1-rt)*tt*Math.sin(St),St*=-tt,Q>0&&(St=(Math.PI-St*Q)*Q),ct=Math.cos(St)*ft-Math.sin(St)*it/2,st=Math.cos(St)*it/2+Math.sin(St)*ft,z=180*St/Math.PI)}else"middle"===W&&(W=Z>K?Q?"left":"right":tt?"top":"bottom"),y&&(["left","right"].includes(W)?(at+=lt*Q,bt-=ot*(1-nt)*Q,ut+=ot*Q/2,"left"===W?(N=0,Q<0&&(N+=180)):(N=180,Q>0&&(N+=180))):["top","bottom"].includes(W)&&(at+=ot*-tt/2,_t-=ot*tt-(ut+=lt*tt),"top"===W?(N=270,tt>0&&(N+=180)):(N=90,tt<0&&(N+=180))));g&&0!==dt&&(["left","right"].includes($)?(gt+=it*Q+(ct+=ft*-Q),st+=-it*Q/2,"left"===$?(z=180,Q<0&&(z+=180)):(z=0,Q>0&&(z+=180))):["top","bottom"].includes($)&&(wt+=it*tt+(st+=ft*-tt),ct+=it*tt/2,"top"===$?(z=90,tt>0&&(z+=180)):(z=270,tt<0&&(z+=180))));var Ot={x:at,y:ut},Et={x:ct,y:st},At=gt,kt=wt,jt=bt,Ct=_t,Pt={};"smooth"===w?Pt={hh:function(){At+=Z*dt*Q,jt-=Z*dt*Q},vv:function(){kt+=K*dt*tt,Ct-=K*dt*tt},hv:function(){At+=Z*dt*Q,Ct-=K*dt*tt},vh:function(){kt+=K*dt*tt,jt-=Z*dt*Q}}:"grid"===w&&(Pt={hh:function(){At+=(Z*x.relative+x.abs)*Q,jt-=(Z*(1-x.relative)-x.abs)*Q,y&&(At-=ot*(1-nt)/2*Q,jt+=ot*(1-nt)/2*Q),g&&(At-=it*(1-rt)/2*Q,jt+=it*(1-rt)/2*Q)},vv:function(){kt+=(K*x.relative+x.abs)*tt,Ct-=(K*(1-x.relative)-x.abs)*tt,y&&(kt-=ot*(1-nt)/2*tt,Ct+=ot*(1-nt)/2*tt),g&&(kt-=it*(1-rt)/2*tt,Ct+=it*(1-rt)/2*tt)},hv:function(){At=bt},vh:function(){kt=_t}});var Tt="";["left","right"].includes($)?Tt+="h":["bottom","top"].includes($)?Tt+="v":"middle"===$&&(Tt+="m"),["left","right"].includes(W)?Tt+="h":["bottom","top"].includes(W)?Tt+="v":"middle"===W&&(Tt+="m"),Pt[Tt=Z>K?Tt.replace(/m/g,"h"):Tt.replace(/m/g,"v")](),At+=A,kt+=k,jt+=j,Ct+=C;var Rt=c.buzzierMinSols(gt,At,jt,bt),It=Rt[0],Mt=Rt[1],Nt=c.buzzierMinSols(wt,kt,Ct,_t),zt=Nt[0],Lt=Nt[1];It<0&&(vt+=-It),Mt>Z&&(ht+=Mt-Z),zt<0&&(yt+=-zt),Lt>K&&(mt+=Lt-K),"grid"===w&&(vt+=pt,ht+=pt,yt+=pt,mt+=pt),gt+=vt,bt+=vt,wt+=yt,_t+=yt,At+=vt,jt+=vt,kt+=yt,Ct+=yt;var Dt=Z+vt+ht,Bt=K+yt+mt;G-=vt,V-=yt;var Ft,Ut=c.bzFunction(gt,At,jt,bt),$t=c.bzFunction(wt,kt,Ct,_t),Wt={x:Ut(.01),y:$t(.01)},Ht={x:Ut(.5),y:$t(.5)},Xt={x:Ut(.99),y:$t(.99)};return"grid"===w?Ft="M "+gt+" "+wt+" L "+At+" "+kt+" L "+jt+" "+Ct+" "+bt+" "+_t:"smooth"===w&&(Ft="M "+gt+" "+wt+" C "+At+" "+kt+", "+jt+" "+Ct+", "+bt+" "+_t),{cx0:G,cy0:V,x1:gt,x2:bt,y1:wt,y2:_t,cw:Dt,ch:Bt,cpx1:At,cpy1:kt,cpx2:jt,cpy2:Ct,dx:Y,dy:J,absDx:Z,absDy:K,headOrient:N,tailOrient:z,labelStartPos:Wt,labelMiddlePos:Ht,labelEndPos:Xt,excLeft:vt,excRight:ht,excUp:yt,excDown:mt,headOffset:lt,arrowHeadOffset:Ot,arrowTailOffset:Et,startPoints:L,endPoints:D,mainDivPos:q,xSign:Q,ySign:tt,lineLength:null!==(l=null===(s=M.current)||void 0===s?void 0:s.getTotalLength())&&void 0!==l?l:0,fHeadSize:ot,fTailSize:it,arrowPath:Ft}}},"./src/Xarrow/utils/index.ts":function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getSvgPos=e.getElemPos=e.getShortestLine=e.xStr2absRelative=e.factorDpathStr=e.getElementByPropGiven=void 0,e.getElementByPropGiven=function(t){return"string"==typeof t?document.getElementById(t):null==t?void 0:t.current},e.factorDpathStr=function(t,e){var n=t.split(/(\d+(?:\.\d+)?)/);return(n=n.map((function(t){return Number(t)?(Number(t)*e).toString():t}))).join("")},e.xStr2absRelative=function(t){if("string"!=typeof t)return{abs:0,relative:.5};var e=t.split("%"),n=0,r=0;if(1==e.length){var o=parseFloat(e[0]);if(!isNaN(o))return{abs:n=o,relative:0}}else if(2==e.length){var i=[parseFloat(e[0]),parseFloat(e[1])],a=i[0],u=i[1];if(isNaN(a)||(r=a/100),isNaN(u)||(n=u),!isNaN(a)||!isNaN(u))return{abs:n,relative:r}}},e.getShortestLine=function(t,e){var n,r=1/0,o=1/0;return t.forEach((function(t){e.forEach((function(e){var i,a;i=t,a=e,(o=Math.sqrt(Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2)))1)for(var n=1;n"']/g,D=RegExp(z.source),B=RegExp(L.source),F=/<%-([\s\S]+?)%>/g,U=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,X=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,G=RegExp(q.source),V=/^\s+/,Y=/\s/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Z=/\{\n\/\* \[wrapped with (.+)\] \*/,K=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,ot=/^[-+]0x[0-9a-f]+$/i,it=/^0b[01]+$/i,at=/^\[object .+?Constructor\]$/,ut=/^0o[0-7]+$/i,ct=/^(?:0|[1-9]\d*)$/,st=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lt=/($^)/,ft=/['\n\r\u2028\u2029\\]/g,dt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ht="[\\ud800-\\udfff]",vt="["+pt+"]",yt="["+dt+"]",mt="\\d+",gt="[\\u2700-\\u27bf]",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",wt="[^\\ud800-\\udfff"+pt+mt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_t="\\ud83c[\\udffb-\\udfff]",xt="[^\\ud800-\\udfff]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",Ot="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",At="(?:"+bt+"|"+wt+")",kt="(?:"+Et+"|"+wt+")",jt="(?:"+yt+"|"+_t+")"+"?",Ct="[\\ufe0e\\ufe0f]?"+jt+("(?:\\u200d(?:"+[xt,St,Ot].join("|")+")[\\ufe0e\\ufe0f]?"+jt+")*"),Pt="(?:"+[gt,St,Ot].join("|")+")"+Ct,Tt="(?:"+[xt+yt+"?",yt,St,Ot,ht].join("|")+")",Rt=RegExp("['’]","g"),It=RegExp(yt,"g"),Mt=RegExp(_t+"(?="+_t+")|"+Tt+Ct,"g"),Nt=RegExp([Et+"?"+bt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[vt,Et,"$"].join("|")+")",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[vt,Et+At,"$"].join("|")+")",Et+"?"+At+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mt,Pt].join("|"),"g"),zt=RegExp("[\\u200d\\ud800-\\udfff"+dt+"\\ufe0e\\ufe0f]"),Lt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Bt=-1,Ft={};Ft[E]=Ft[A]=Ft[k]=Ft[j]=Ft[C]=Ft[P]=Ft["[object Uint8ClampedArray]"]=Ft[T]=Ft[R]=!0,Ft[c]=Ft[s]=Ft[S]=Ft[l]=Ft[O]=Ft[f]=Ft[d]=Ft[p]=Ft[v]=Ft[y]=Ft[m]=Ft[g]=Ft[b]=Ft[w]=Ft[x]=!1;var Ut={};Ut[c]=Ut[s]=Ut[S]=Ut[O]=Ut[l]=Ut[f]=Ut[E]=Ut[A]=Ut[k]=Ut[j]=Ut[C]=Ut[v]=Ut[y]=Ut[m]=Ut[g]=Ut[b]=Ut[w]=Ut[_]=Ut[P]=Ut["[object Uint8ClampedArray]"]=Ut[T]=Ut[R]=!0,Ut[d]=Ut[p]=Ut[x]=!1;var $t={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Wt=parseFloat,Ht=parseInt,Xt="object"==typeof t&&t&&t.Object===Object&&t,qt="object"==typeof self&&self&&self.Object===Object&&self,Gt=Xt||qt||Function("return this")(),Vt=e&&!e.nodeType&&e,Yt=Vt&&"object"==typeof r&&r&&!r.nodeType&&r,Jt=Yt&&Yt.exports===Vt,Zt=Jt&&Xt.process,Kt=function(){try{var t=Yt&&Yt.require&&Yt.require("util").types;return t||Zt&&Zt.binding&&Zt.binding("util")}catch(t){}}(),Qt=Kt&&Kt.isArrayBuffer,te=Kt&&Kt.isDate,ee=Kt&&Kt.isMap,ne=Kt&&Kt.isRegExp,re=Kt&&Kt.isSet,oe=Kt&&Kt.isTypedArray;function ie(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ae(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o-1}function de(t,e,n){for(var r=-1,o=null==t?0:t.length;++r-1;);return n}function Ne(t,e){for(var n=t.length;n--&&_e(e,t[n],0)>-1;);return n}function ze(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var Le=Ae({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),De=Ae({"&":"&","<":"<",">":">",'"':""","'":"'"});function Be(t){return"\\"+$t[t]}function Fe(t){return zt.test(t)}function Ue(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function $e(t,e){return function(n){return t(e(n))}}function We(t,e){for(var n=-1,r=t.length,o=0,i=[];++n",""":'"',"'":"'"});var Je=function t(e){var n,r=(e=null==e?Gt:Je.defaults(Gt.Object(),e,Je.pick(Gt,Dt))).Array,o=e.Date,Y=e.Error,dt=e.Function,pt=e.Math,ht=e.Object,vt=e.RegExp,yt=e.String,mt=e.TypeError,gt=r.prototype,bt=dt.prototype,wt=ht.prototype,_t=e["__core-js_shared__"],xt=bt.toString,St=wt.hasOwnProperty,Ot=0,Et=(n=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",At=wt.toString,kt=xt.call(ht),jt=Gt._,Ct=vt("^"+xt.call(St).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pt=Jt?e.Buffer:void 0,Tt=e.Symbol,Mt=e.Uint8Array,zt=Pt?Pt.allocUnsafe:void 0,$t=$e(ht.getPrototypeOf,ht),Xt=ht.create,qt=wt.propertyIsEnumerable,Vt=gt.splice,Yt=Tt?Tt.isConcatSpreadable:void 0,Zt=Tt?Tt.iterator:void 0,Kt=Tt?Tt.toStringTag:void 0,ge=function(){try{var t=ei(ht,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ae=e.clearTimeout!==Gt.clearTimeout&&e.clearTimeout,Ze=o&&o.now!==Gt.Date.now&&o.now,Ke=e.setTimeout!==Gt.setTimeout&&e.setTimeout,Qe=pt.ceil,tn=pt.floor,en=ht.getOwnPropertySymbols,nn=Pt?Pt.isBuffer:void 0,rn=e.isFinite,on=gt.join,an=$e(ht.keys,ht),un=pt.max,cn=pt.min,sn=o.now,ln=e.parseInt,fn=pt.random,dn=gt.reverse,pn=ei(e,"DataView"),hn=ei(e,"Map"),vn=ei(e,"Promise"),yn=ei(e,"Set"),mn=ei(e,"WeakMap"),gn=ei(ht,"create"),bn=mn&&new mn,wn={},_n=ji(pn),xn=ji(hn),Sn=ji(vn),On=ji(yn),En=ji(mn),An=Tt?Tt.prototype:void 0,kn=An?An.valueOf:void 0,jn=An?An.toString:void 0;function Cn(t){if(Xa(t)&&!Ma(t)&&!(t instanceof In)){if(t instanceof Rn)return t;if(St.call(t,"__wrapped__"))return Ci(t)}return new Rn(t)}var Pn=function(){function t(){}return function(e){if(!Ha(e))return{};if(Xt)return Xt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function Tn(){}function Rn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function In(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Mn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Zn(t,e,n,r,o,i){var a,u=1&e,s=2&e,d=4&e;if(n&&(a=o?n(t,r,o,i):n(t)),void 0!==a)return a;if(!Ha(t))return t;var x=Ma(t);if(x){if(a=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&St.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!u)return bo(t,a)}else{var I=oi(t),M=I==p||I==h;if(Da(t))return po(t,u);if(I==m||I==c||M&&!o){if(a=s||M?{}:ai(t),!u)return s?function(t,e){return wo(t,ri(t),e)}(t,function(t,e){return t&&wo(e,xu(e),t)}(a,t)):function(t,e){return wo(t,ni(t),e)}(t,Gn(a,t))}else{if(!Ut[I])return o?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case S:return ho(t);case l:case f:return new r(+t);case O:return function(t,e){var n=e?ho(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case E:case A:case k:case j:case C:case P:case"[object Uint8ClampedArray]":case T:case R:return vo(t,n);case v:return new r;case y:case w:return new r(t);case g:return function(t){var e=new t.constructor(t.source,rt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case b:return new r;case _:return o=t,kn?ht(kn.call(o)):{}}var o}(t,I,u)}}i||(i=new Dn);var N=i.get(t);if(N)return N;i.set(t,a),Ja(t)?t.forEach((function(r){a.add(Zn(r,e,n,r,t,i))})):qa(t)&&t.forEach((function(r,o){a.set(o,Zn(r,e,n,o,t,i))}));var z=x?void 0:(d?s?Vo:Go:s?xu:_u)(t);return ue(z||t,(function(r,o){z&&(r=t[o=r]),Hn(a,o,Zn(r,e,n,o,t,i))})),a}function Kn(t,e,n){var r=n.length;if(null==t)return!r;for(t=ht(t);r--;){var o=n[r],i=e[o],a=t[o];if(void 0===a&&!(o in t)||!i(a))return!1}return!0}function Qn(t,e,n){if("function"!=typeof t)throw new mt(i);return _i((function(){t.apply(void 0,n)}),e)}function tr(t,e,n,r){var o=-1,i=fe,a=!0,u=t.length,c=[],s=e.length;if(!u)return c;n&&(e=pe(e,Te(n))),r?(i=de,a=!1):e.length>=200&&(i=Ie,a=!1,e=new Ln(e));t:for(;++o-1},Nn.prototype.set=function(t,e){var n=this.__data__,r=Xn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Mn,map:new(hn||Nn),string:new Mn}},zn.prototype.delete=function(t){var e=Qo(this,t).delete(t);return this.size-=e?1:0,e},zn.prototype.get=function(t){return Qo(this,t).get(t)},zn.prototype.has=function(t){return Qo(this,t).has(t)},zn.prototype.set=function(t,e){var n=Qo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Ln.prototype.add=Ln.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Ln.prototype.has=function(t){return this.__data__.has(t)},Dn.prototype.clear=function(){this.__data__=new Nn,this.size=0},Dn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Dn.prototype.get=function(t){return this.__data__.get(t)},Dn.prototype.has=function(t){return this.__data__.has(t)},Dn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Nn){var r=n.__data__;if(!hn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new zn(r)}return n.set(t,e),this.size=n.size,this};var er=So(sr),nr=So(lr,!0);function rr(t,e){var n=!0;return er(t,(function(t,r,o){return n=!!e(t,r,o)})),n}function or(t,e,n){for(var r=-1,o=t.length;++r0&&n(u)?e>1?ar(u,e-1,n,r,o):he(o,u):r||(o[o.length]=u)}return o}var ur=Oo(),cr=Oo(!0);function sr(t,e){return t&&ur(t,e,_u)}function lr(t,e){return t&&cr(t,e,_u)}function fr(t,e){return le(e,(function(e){return Ua(t[e])}))}function dr(t,e){for(var n=0,r=(e=co(e,t)).length;null!=t&&ne}function yr(t,e){return null!=t&&St.call(t,e)}function mr(t,e){return null!=t&&e in ht(t)}function gr(t,e,n){for(var o=n?de:fe,i=t[0].length,a=t.length,u=a,c=r(a),s=1/0,l=[];u--;){var f=t[u];u&&e&&(f=pe(f,Te(e))),s=cn(f.length,s),c[u]=!n&&(e||i>=120&&f.length>=120)?new Ln(u&&f):void 0}f=t[0];var d=-1,p=c[0];t:for(;++d=u)return c;var s=n[r];return c*("desc"==s?-1:1)}}return t.index-e.index}(t,e,n)}))}function Mr(t,e,n){for(var r=-1,o=e.length,i={};++r-1;)u!==t&&Vt.call(u,c,1),Vt.call(t,c,1);return t}function zr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;ci(o)?Vt.call(t,o,1):to(t,o)}}return t}function Lr(t,e){return t+tn(fn()*(e-t+1))}function Dr(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=tn(e/2))&&(t+=t)}while(e);return n}function Br(t,e){return xi(yi(t,e,Gu),t+"")}function Fr(t){return Fn(Pu(t))}function Ur(t,e){var n=Pu(t);return Ei(n,Jn(e,0,n.length))}function $r(t,e,n,r){if(!Ha(t))return t;for(var o=-1,i=(e=co(e,t)).length,a=i-1,u=t;null!=u&&++oi?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=r(i);++o>>1,a=t[i];null!==a&&!Ka(a)&&(n?a<=e:a=200){var s=e?null:Bo(t);if(s)return He(s);a=!1,o=Ie,c=new Ln}else c=e?[]:u;t:for(;++r=r?t:qr(t,e,n)}var fo=Ae||function(t){return Gt.clearTimeout(t)};function po(t,e){if(e)return t.slice();var n=t.length,r=zt?zt(n):new t.constructor(n);return t.copy(r),r}function ho(t){var e=new t.constructor(t.byteLength);return new Mt(e).set(new Mt(t)),e}function vo(t,e){var n=e?ho(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function yo(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t==t,i=Ka(t),a=void 0!==e,u=null===e,c=e==e,s=Ka(e);if(!u&&!s&&!i&&t>e||i&&a&&c&&!u&&!s||r&&a&&c||!n&&c||!o)return 1;if(!r&&!i&&!s&&t1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,a&&si(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),e=ht(e);++r-1?o[i?e[a]:a]:void 0}}function Co(t){return qo((function(e){var n=e.length,r=n,o=Rn.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new mt(i);if(o&&!u&&"wrapper"==Jo(a))var u=new Rn([],!0)}for(r=u?r:n;++r1&&b.reverse(),f&&su))return!1;var s=i.get(t),l=i.get(e);if(s&&l)return s==e&&l==t;var f=-1,d=!0,p=2&n?new Ln:void 0;for(i.set(t,e),i.set(e,t);++f-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(J,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return ue(u,(function(n){var r="_."+n[0];e&n[1]&&!fe(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(Z);return e?e[1].split(K):[]}(r),n)))}function Oi(t){var e=0,n=0;return function(){var r=sn(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Ei(t,e){var n=-1,r=t.length,o=r-1;for(e=void 0===e?r:e;++n1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Yi(t,n)}));function na(t){var e=Cn(t);return e.__chain__=!0,e}function ra(t,e){return e(t)}var oa=qo((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return Yn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof In&&ci(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ra,args:[o],thisArg:void 0}),new Rn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(o)}));var ia=_o((function(t,e,n){St.call(t,n)?++t[n]:Vn(t,n,1)}));var aa=jo(Ii),ua=jo(Mi);function ca(t,e){return(Ma(t)?ue:er)(t,Ko(e,3))}function sa(t,e){return(Ma(t)?ce:nr)(t,Ko(e,3))}var la=_o((function(t,e,n){St.call(t,n)?t[n].push(e):Vn(t,n,[e])}));var fa=Br((function(t,e,n){var o=-1,i="function"==typeof e,a=za(t)?r(t.length):[];return er(t,(function(t){a[++o]=i?ie(e,t,n):br(t,e,n)})),a})),da=_o((function(t,e,n){Vn(t,n,e)}));function pa(t,e){return(Ma(t)?pe:jr)(t,Ko(e,3))}var ha=_o((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var va=Br((function(t,e){if(null==t)return[];var n=e.length;return n>1&&si(t,e[0],e[1])?e=[]:n>2&&si(e[0],e[1],e[2])&&(e=[e[0]]),Ir(t,ar(e,1),[])})),ya=Ze||function(){return Gt.Date.now()};function ma(t,e,n){return e=n?void 0:e,Uo(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function ga(t,e){var n;if("function"!=typeof e)throw new mt(i);return t=ou(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var ba=Br((function(t,e,n){var r=1;if(n.length){var o=We(n,Zo(ba));r|=32}return Uo(t,r,e,n,o)})),wa=Br((function(t,e,n){var r=3;if(n.length){var o=We(n,Zo(wa));r|=32}return Uo(e,r,t,n,o)}));function _a(t,e,n){var r,o,a,u,c,s,l=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw new mt(i);function h(e){var n=r,i=o;return r=o=void 0,l=e,u=t.apply(i,n)}function v(t){return l=t,c=_i(m,e),f?h(t):u}function y(t){var n=t-s;return void 0===s||n>=e||n<0||d&&t-l>=a}function m(){var t=ya();if(y(t))return g(t);c=_i(m,function(t){var n=e-(t-s);return d?cn(n,a-(t-l)):n}(t))}function g(t){return c=void 0,p&&r?h(t):(r=o=void 0,u)}function b(){var t=ya(),n=y(t);if(r=arguments,o=this,s=t,n){if(void 0===c)return v(s);if(d)return fo(c),c=_i(m,e),h(s)}return void 0===c&&(c=_i(m,e)),u}return e=au(e)||0,Ha(n)&&(f=!!n.leading,a=(d="maxWait"in n)?un(au(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){void 0!==c&&fo(c),l=0,r=s=o=c=void 0},b.flush=function(){return void 0===c?u:g(ya())},b}var xa=Br((function(t,e){return Qn(t,1,e)})),Sa=Br((function(t,e,n){return Qn(t,au(e)||0,n)}));function Oa(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new mt(i);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Oa.Cache||zn),n}function Ea(t){if("function"!=typeof t)throw new mt(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Oa.Cache=zn;var Aa=so((function(t,e){var n=(e=1==e.length&&Ma(e[0])?pe(e[0],Te(Ko())):pe(ar(e,1),Te(Ko()))).length;return Br((function(r){for(var o=-1,i=cn(r.length,n);++o=e})),Ia=wr(function(){return arguments}())?wr:function(t){return Xa(t)&&St.call(t,"callee")&&!qt.call(t,"callee")},Ma=r.isArray,Na=Qt?Te(Qt):function(t){return Xa(t)&&hr(t)==S};function za(t){return null!=t&&Wa(t.length)&&!Ua(t)}function La(t){return Xa(t)&&za(t)}var Da=nn||ac,Ba=te?Te(te):function(t){return Xa(t)&&hr(t)==f};function Fa(t){if(!Xa(t))return!1;var e=hr(t);return e==d||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Va(t)}function Ua(t){if(!Ha(t))return!1;var e=hr(t);return e==p||e==h||"[object AsyncFunction]"==e||"[object Proxy]"==e}function $a(t){return"number"==typeof t&&t==ou(t)}function Wa(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Ha(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Xa(t){return null!=t&&"object"==typeof t}var qa=ee?Te(ee):function(t){return Xa(t)&&oi(t)==v};function Ga(t){return"number"==typeof t||Xa(t)&&hr(t)==y}function Va(t){if(!Xa(t)||hr(t)!=m)return!1;var e=$t(t);if(null===e)return!0;var n=St.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&xt.call(n)==kt}var Ya=ne?Te(ne):function(t){return Xa(t)&&hr(t)==g};var Ja=re?Te(re):function(t){return Xa(t)&&oi(t)==b};function Za(t){return"string"==typeof t||!Ma(t)&&Xa(t)&&hr(t)==w}function Ka(t){return"symbol"==typeof t||Xa(t)&&hr(t)==_}var Qa=oe?Te(oe):function(t){return Xa(t)&&Wa(t.length)&&!!Ft[hr(t)]};var tu=zo(kr),eu=zo((function(t,e){return t<=e}));function nu(t){if(!t)return[];if(za(t))return Za(t)?Ge(t):bo(t);if(Zt&&t[Zt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Zt]());var e=oi(t);return(e==v?Ue:e==b?He:Pu)(t)}function ru(t){return t?(t=au(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ou(t){var e=ru(t),n=e%1;return e==e?n?e-n:e:0}function iu(t){return t?Jn(ou(t),0,4294967295):0}function au(t){if("number"==typeof t)return t;if(Ka(t))return NaN;if(Ha(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ha(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Pe(t);var n=it.test(t);return n||ut.test(t)?Ht(t.slice(2),n?2:8):ot.test(t)?NaN:+t}function uu(t){return wo(t,xu(t))}function cu(t){return null==t?"":Kr(t)}var su=xo((function(t,e){if(pi(e)||za(e))wo(e,_u(e),t);else for(var n in e)St.call(e,n)&&Hn(t,n,e[n])})),lu=xo((function(t,e){wo(e,xu(e),t)})),fu=xo((function(t,e,n,r){wo(e,xu(e),t,r)})),du=xo((function(t,e,n,r){wo(e,_u(e),t,r)})),pu=qo(Yn);var hu=Br((function(t,e){t=ht(t);var n=-1,r=e.length,o=r>2?e[2]:void 0;for(o&&si(e[0],e[1],o)&&(r=1);++n1),e})),wo(t,Vo(t),n),r&&(n=Zn(n,7,Ho));for(var o=e.length;o--;)to(n,e[o]);return n}));var Au=qo((function(t,e){return null==t?{}:function(t,e){return Mr(t,e,(function(e,n){return mu(t,n)}))}(t,e)}));function ku(t,e){if(null==t)return{};var n=pe(Vo(t),(function(t){return[t]}));return e=Ko(e),Mr(t,n,(function(t,n){return e(t,n[0])}))}var ju=Fo(_u),Cu=Fo(xu);function Pu(t){return null==t?[]:Re(t,_u(t))}var Tu=Ao((function(t,e,n){return e=e.toLowerCase(),t+(n?Ru(e):e)}));function Ru(t){return Fu(cu(t).toLowerCase())}function Iu(t){return(t=cu(t))&&t.replace(st,Le).replace(It,"")}var Mu=Ao((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Nu=Ao((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),zu=Eo("toLowerCase");var Lu=Ao((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Du=Ao((function(t,e,n){return t+(n?" ":"")+Fu(e)}));var Bu=Ao((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Fu=Eo("toUpperCase");function Uu(t,e,n){return t=cu(t),void 0===(e=n?void 0:e)?function(t){return Lt.test(t)}(t)?function(t){return t.match(Nt)||[]}(t):function(t){return t.match(Q)||[]}(t):t.match(e)||[]}var $u=Br((function(t,e){try{return ie(t,void 0,e)}catch(t){return Fa(t)?t:new Y(t)}})),Wu=qo((function(t,e){return ue(e,(function(e){e=ki(e),Vn(t,e,ba(t[e],t))})),t}));function Hu(t){return function(){return t}}var Xu=Co(),qu=Co(!0);function Gu(t){return t}function Vu(t){return Or("function"==typeof t?t:Zn(t,1))}var Yu=Br((function(t,e){return function(n){return br(n,t,e)}})),Ju=Br((function(t,e){return function(n){return br(t,n,e)}}));function Zu(t,e,n){var r=_u(e),o=fr(e,r);null!=n||Ha(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=fr(e,_u(e)));var i=!(Ha(n)&&"chain"in n&&!n.chain),a=Ua(t);return ue(o,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__),o=n.__actions__=bo(this.__actions__);return o.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,he([this.value()],arguments))})})),t}function Ku(){}var Qu=Io(pe),tc=Io(se),ec=Io(me);function nc(t){return li(t)?Ee(ki(t)):function(t){return function(e){return dr(e,t)}}(t)}var rc=No(),oc=No(!0);function ic(){return[]}function ac(){return!1}var uc=Ro((function(t,e){return t+e}),0),cc=Do("ceil"),sc=Ro((function(t,e){return t/e}),1),lc=Do("floor");var fc,dc=Ro((function(t,e){return t*e}),1),pc=Do("round"),hc=Ro((function(t,e){return t-e}),0);return Cn.after=function(t,e){if("function"!=typeof e)throw new mt(i);return t=ou(t),function(){if(--t<1)return e.apply(this,arguments)}},Cn.ary=ma,Cn.assign=su,Cn.assignIn=lu,Cn.assignInWith=fu,Cn.assignWith=du,Cn.at=pu,Cn.before=ga,Cn.bind=ba,Cn.bindAll=Wu,Cn.bindKey=wa,Cn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ma(t)?t:[t]},Cn.chain=na,Cn.chunk=function(t,e,n){e=(n?si(t,e,n):void 0===e)?1:un(ou(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var i=0,a=0,u=r(Qe(o/e));io?0:o+n),(r=void 0===r||r>o?o:ou(r))<0&&(r+=o),r=n>r?0:iu(r);n>>0)?(t=cu(t))&&("string"==typeof e||null!=e&&!Ya(e))&&!(e=Kr(e))&&Fe(t)?lo(Ge(t),0,n):t.split(e,n):[]},Cn.spread=function(t,e){if("function"!=typeof t)throw new mt(i);return e=null==e?0:un(ou(e),0),Br((function(n){var r=n[e],o=lo(n,0,e);return r&&he(o,r),ie(t,this,o)}))},Cn.tail=function(t){var e=null==t?0:t.length;return e?qr(t,1,e):[]},Cn.take=function(t,e,n){return t&&t.length?qr(t,0,(e=n||void 0===e?1:ou(e))<0?0:e):[]},Cn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?qr(t,(e=r-(e=n||void 0===e?1:ou(e)))<0?0:e,r):[]},Cn.takeRightWhile=function(t,e){return t&&t.length?no(t,Ko(e,3),!1,!0):[]},Cn.takeWhile=function(t,e){return t&&t.length?no(t,Ko(e,3)):[]},Cn.tap=function(t,e){return e(t),t},Cn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new mt(i);return Ha(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),_a(t,e,{leading:r,maxWait:e,trailing:o})},Cn.thru=ra,Cn.toArray=nu,Cn.toPairs=ju,Cn.toPairsIn=Cu,Cn.toPath=function(t){return Ma(t)?pe(t,ki):Ka(t)?[t]:bo(Ai(cu(t)))},Cn.toPlainObject=uu,Cn.transform=function(t,e,n){var r=Ma(t),o=r||Da(t)||Qa(t);if(e=Ko(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:Ha(t)&&Ua(i)?Pn($t(t)):{}}return(o?ue:sr)(t,(function(t,r,o){return e(n,t,r,o)})),n},Cn.unary=function(t){return ma(t,1)},Cn.union=Xi,Cn.unionBy=qi,Cn.unionWith=Gi,Cn.uniq=function(t){return t&&t.length?Qr(t):[]},Cn.uniqBy=function(t,e){return t&&t.length?Qr(t,Ko(e,2)):[]},Cn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Qr(t,void 0,e):[]},Cn.unset=function(t,e){return null==t||to(t,e)},Cn.unzip=Vi,Cn.unzipWith=Yi,Cn.update=function(t,e,n){return null==t?t:eo(t,e,uo(n))},Cn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:eo(t,e,uo(n),r)},Cn.values=Pu,Cn.valuesIn=function(t){return null==t?[]:Re(t,xu(t))},Cn.without=Ji,Cn.words=Uu,Cn.wrap=function(t,e){return ka(uo(e),t)},Cn.xor=Zi,Cn.xorBy=Ki,Cn.xorWith=Qi,Cn.zip=ta,Cn.zipObject=function(t,e){return io(t||[],e||[],Hn)},Cn.zipObjectDeep=function(t,e){return io(t||[],e||[],$r)},Cn.zipWith=ea,Cn.entries=ju,Cn.entriesIn=Cu,Cn.extend=lu,Cn.extendWith=fu,Zu(Cn,Cn),Cn.add=uc,Cn.attempt=$u,Cn.camelCase=Tu,Cn.capitalize=Ru,Cn.ceil=cc,Cn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=au(n))==n?n:0),void 0!==e&&(e=(e=au(e))==e?e:0),Jn(au(t),e,n)},Cn.clone=function(t){return Zn(t,4)},Cn.cloneDeep=function(t){return Zn(t,5)},Cn.cloneDeepWith=function(t,e){return Zn(t,5,e="function"==typeof e?e:void 0)},Cn.cloneWith=function(t,e){return Zn(t,4,e="function"==typeof e?e:void 0)},Cn.conformsTo=function(t,e){return null==e||Kn(t,e,_u(e))},Cn.deburr=Iu,Cn.defaultTo=function(t,e){return null==t||t!=t?e:t},Cn.divide=sc,Cn.endsWith=function(t,e,n){t=cu(t),e=Kr(e);var r=t.length,o=n=void 0===n?r:Jn(ou(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},Cn.eq=Pa,Cn.escape=function(t){return(t=cu(t))&&B.test(t)?t.replace(L,De):t},Cn.escapeRegExp=function(t){return(t=cu(t))&&G.test(t)?t.replace(q,"\\$&"):t},Cn.every=function(t,e,n){var r=Ma(t)?se:rr;return n&&si(t,e,n)&&(e=void 0),r(t,Ko(e,3))},Cn.find=aa,Cn.findIndex=Ii,Cn.findKey=function(t,e){return be(t,Ko(e,3),sr)},Cn.findLast=ua,Cn.findLastIndex=Mi,Cn.findLastKey=function(t,e){return be(t,Ko(e,3),lr)},Cn.floor=lc,Cn.forEach=ca,Cn.forEachRight=sa,Cn.forIn=function(t,e){return null==t?t:ur(t,Ko(e,3),xu)},Cn.forInRight=function(t,e){return null==t?t:cr(t,Ko(e,3),xu)},Cn.forOwn=function(t,e){return t&&sr(t,Ko(e,3))},Cn.forOwnRight=function(t,e){return t&&lr(t,Ko(e,3))},Cn.get=yu,Cn.gt=Ta,Cn.gte=Ra,Cn.has=function(t,e){return null!=t&&ii(t,e,yr)},Cn.hasIn=mu,Cn.head=zi,Cn.identity=Gu,Cn.includes=function(t,e,n,r){t=za(t)?t:Pu(t),n=n&&!r?ou(n):0;var o=t.length;return n<0&&(n=un(o+n,0)),Za(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&_e(t,e,n)>-1},Cn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ou(n);return o<0&&(o=un(r+o,0)),_e(t,e,o)},Cn.inRange=function(t,e,n){return e=ru(e),void 0===n?(n=e,e=0):n=ru(n),function(t,e,n){return t>=cn(e,n)&&t=-9007199254740991&&t<=9007199254740991},Cn.isSet=Ja,Cn.isString=Za,Cn.isSymbol=Ka,Cn.isTypedArray=Qa,Cn.isUndefined=function(t){return void 0===t},Cn.isWeakMap=function(t){return Xa(t)&&oi(t)==x},Cn.isWeakSet=function(t){return Xa(t)&&"[object WeakSet]"==hr(t)},Cn.join=function(t,e){return null==t?"":on.call(t,e)},Cn.kebabCase=Mu,Cn.last=Fi,Cn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=ou(n))<0?un(r+o,0):cn(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):we(t,Se,o,!0)},Cn.lowerCase=Nu,Cn.lowerFirst=zu,Cn.lt=tu,Cn.lte=eu,Cn.max=function(t){return t&&t.length?or(t,Gu,vr):void 0},Cn.maxBy=function(t,e){return t&&t.length?or(t,Ko(e,2),vr):void 0},Cn.mean=function(t){return Oe(t,Gu)},Cn.meanBy=function(t,e){return Oe(t,Ko(e,2))},Cn.min=function(t){return t&&t.length?or(t,Gu,kr):void 0},Cn.minBy=function(t,e){return t&&t.length?or(t,Ko(e,2),kr):void 0},Cn.stubArray=ic,Cn.stubFalse=ac,Cn.stubObject=function(){return{}},Cn.stubString=function(){return""},Cn.stubTrue=function(){return!0},Cn.multiply=dc,Cn.nth=function(t,e){return t&&t.length?Rr(t,ou(e)):void 0},Cn.noConflict=function(){return Gt._===this&&(Gt._=jt),this},Cn.noop=Ku,Cn.now=ya,Cn.pad=function(t,e,n){t=cu(t);var r=(e=ou(e))?qe(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return Mo(tn(o),n)+t+Mo(Qe(o),n)},Cn.padEnd=function(t,e,n){t=cu(t);var r=(e=ou(e))?qe(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var o=fn();return cn(t+o*(e-t+Wt("1e-"+((o+"").length-1))),e)}return Lr(t,e)},Cn.reduce=function(t,e,n){var r=Ma(t)?ve:ke,o=arguments.length<3;return r(t,Ko(e,4),n,o,er)},Cn.reduceRight=function(t,e,n){var r=Ma(t)?ye:ke,o=arguments.length<3;return r(t,Ko(e,4),n,o,nr)},Cn.repeat=function(t,e,n){return e=(n?si(t,e,n):void 0===e)?1:ou(e),Dr(cu(t),e)},Cn.replace=function(){var t=arguments,e=cu(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Cn.result=function(t,e,n){var r=-1,o=(e=co(e,t)).length;for(o||(o=1,t=void 0);++r9007199254740991)return[];var n=4294967295,r=cn(t,4294967295);t-=4294967295;for(var o=Ce(r,e=Ko(e));++n=i)return t;var u=n-qe(r);if(u<1)return r;var c=a?lo(a,0,u).join(""):t.slice(0,u);if(void 0===o)return c+r;if(a&&(u+=c.length-u),Ya(o)){if(t.slice(u).search(o)){var s,l=c;for(o.global||(o=vt(o.source,cu(rt.exec(o))+"g")),o.lastIndex=0;s=o.exec(l);)var f=s.index;c=c.slice(0,void 0===f?u:f)}}else if(t.indexOf(Kr(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+r},Cn.unescape=function(t){return(t=cu(t))&&D.test(t)?t.replace(z,Ye):t},Cn.uniqueId=function(t){var e=++Ot;return cu(t)+e},Cn.upperCase=Bu,Cn.upperFirst=Fu,Cn.each=ca,Cn.eachRight=sa,Cn.first=zi,Zu(Cn,(fc={},sr(Cn,(function(t,e){St.call(Cn.prototype,e)||(fc[e]=t)})),fc),{chain:!1}),Cn.VERSION="4.17.21",ue(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Cn[t].placeholder=Cn})),ue(["drop","take"],(function(t,e){In.prototype[t]=function(n){n=void 0===n?1:un(ou(n),0);var r=this.__filtered__&&!e?new In(this):this.clone();return r.__filtered__?r.__takeCount__=cn(n,r.__takeCount__):r.__views__.push({size:cn(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},In.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),ue(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;In.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Ko(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),ue(["head","last"],(function(t,e){var n="take"+(e?"Right":"");In.prototype[t]=function(){return this[n](1).value()[0]}})),ue(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");In.prototype[t]=function(){return this.__filtered__?new In(this):this[n](1)}})),In.prototype.compact=function(){return this.filter(Gu)},In.prototype.find=function(t){return this.filter(t).head()},In.prototype.findLast=function(t){return this.reverse().find(t)},In.prototype.invokeMap=Br((function(t,e){return"function"==typeof t?new In(this):this.map((function(n){return br(n,t,e)}))})),In.prototype.reject=function(t){return this.filter(Ea(Ko(t)))},In.prototype.slice=function(t,e){t=ou(t);var n=this;return n.__filtered__&&(t>0||e<0)?new In(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=ou(e))<0?n.dropRight(-e):n.take(e-t)),n)},In.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},In.prototype.toArray=function(){return this.take(4294967295)},sr(In.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Cn[r?"take"+("last"==e?"Right":""):e],i=r||/^find/.test(e);o&&(Cn.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,u=e instanceof In,c=a[0],s=u||Ma(e),l=function(t){var e=o.apply(Cn,he([t],a));return r&&f?e[0]:e};s&&n&&"function"==typeof c&&1!=c.length&&(u=s=!1);var f=this.__chain__,d=!!this.__actions__.length,p=i&&!f,h=u&&!d;if(!i&&s){e=h?e:new In(this);var v=t.apply(e,a);return v.__actions__.push({func:ra,args:[l],thisArg:void 0}),new Rn(v,f)}return p&&h?t.apply(this,a):(v=this.thru(l),p?r?v.value()[0]:v.value():v)})})),ue(["pop","push","shift","sort","splice","unshift"],(function(t){var e=gt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Cn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(Ma(o)?o:[],t)}return this[n]((function(n){return e.apply(Ma(n)?n:[],t)}))}})),sr(In.prototype,(function(t,e){var n=Cn[e];if(n){var r=n.name+"";St.call(wn,r)||(wn[r]=[]),wn[r].push({name:e,func:n})}})),wn[Po(void 0,2).name]=[{name:"wrapper",func:void 0}],In.prototype.clone=function(){var t=new In(this.__wrapped__);return t.__actions__=bo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=bo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=bo(this.__views__),t},In.prototype.reverse=function(){if(this.__filtered__){var t=new In(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},In.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ma(t),r=e<0,o=n?t.length:0,i=function(t,e,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Cn.prototype.plant=function(t){for(var e,n=this;n instanceof Tn;){var r=Ci(n);r.__index__=0,r.__values__=void 0,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},Cn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof In){var e=t;return this.__actions__.length&&(e=new In(this)),(e=e.reverse()).__actions__.push({func:ra,args:[Hi],thisArg:void 0}),new Rn(e,this.__chain__)}return this.thru(Hi)},Cn.prototype.toJSON=Cn.prototype.valueOf=Cn.prototype.value=function(){return ro(this.__wrapped__,this.__actions__)},Cn.prototype.first=Cn.prototype.head,Zt&&(Cn.prototype[Zt]=function(){return this}),Cn}();Gt._=Je,void 0===(o=function(){return Je}.call(e,n,e,r))||(r.exports=o)}).call(this)}).call(this,n(32),n(33)(t))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(35);"string"==typeof r&&(r=[[t.i,r,""]]);var o={insertAt:"top",hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(e=n(2)(!1)).push([t.i,"\n.settings {\n white-space: nowrap;\n float: right;\n display: flex;\n position: absolute;\n color: #444;\n z-index: 10;\n right: 0;\n top: 0;\n margin-right: 5px;\n margin-top: 5px;\n}\n\n.fadeOut {\n opacity: 0;\n transition: opacity 0.8s;\n}\n\n.fadeIn {\n opacity: 1;\n transition: opacity 0.8s;\n}\n\n.settings_header {\n margin: 5px;\n padding: 5px;\n}\n\n.drawer_toggle {\n background-color: #333333;\n width: 30px;\n height: 30px;\n overflow: hidden;\n border-radius: 10px 0 0 10px;\n cursor: pointer;\n}\n\n.drawer {\n font-family: sans-serif;\n height: fit-content;\n box-shadow: 0 2px 2px -2px rgba(0, 0, 0, .2);\n}\n\n.drawer_content {\n z-index: 1;\n border-radius: 0 0 0 5px;\n}\n\n\n.toggle_part {\n font-family: monospace;\n border-radius: 3px 3px 3px 3px;\n cursor: pointer;\n}\n\n.toggle_part.selected {\n border: 1px solid #2196F3;\n opacity: .8;\n padding-right: 47px;\n padding-left: 47px;\n}\n\n.toggle_part.unselected {\n border: 1px solid #444;\n padding-right: 20px;\n padding-left: 20px;\n}\n\n.toggle_part.unselected:hover {\n border: 1px solid #2196F3;\n color: #2196F3;\n transition: opacity .8s ease-in-out;\n -moz-transition: opacity .8s ease-in-out;\n -webkit-transition: opacity .8s ease-in-out;\n}\n\n.toggle_part.selected:hover {\n opacity: 1;\n transition: opacity .8s ease-in-out;\n -moz-transition: opacity .8s ease-in-out;\n -webkit-transition: opacity .8s ease-in-out;\n\n}\n\n\n",""]),t.exports=e},function(t,e,n){"use strict";n.r(e);var r=n(0),o=n.n(r),i=n(1),a=n.n(i);function u(t){if(Array.isArray(t))return t.map(u).join(" ");switch(t._type){case"Number":return t.number.toString();case"Function":var e=t.arguments.map(u).join(",");return e.length>0?"".concat(t.name,"(").concat(e,")"):"".concat(t.name);case"SymbolIdentifier":return u(t.symbol);default:throw new TypeError("Unimplemented type ".concat(t._type))}}n(14);function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:p,e=arguments.length>1?arguments[1]:void 0;return"APP/NODES/SHOW"===e.type?f(f({},t),{},{shownNodes:t.shownNodes.concat(e.node)}):"APP/NODES/HIDE"===e.type?f(f({},t),{},{shownNodes:t.shownNodes.filter((function(t){return t!==e.node}))}):f({},t)},m=o.a.createContext([]),g=function(){return o.a.useContext(m)},b=function(t){var e=t.children,n=t.initialState,r=t.reducer,i=c(o.a.useReducer(r,n),2),a=i[0],u=i[1];return o.a.createElement(m.Provider,{value:[a,u]},e)};b.propTypes={children:a.a.array,initialState:a.a.object,reducer:a.a.func};var w={ten:{dark:"#3FA7D1",bright:"#3FA7E1"},twenty:{dark:"#b7a4b0"},thirty:{dark:"#444",bright:"#454545"},fourty:{dark:"#ff7e7e"},fifty:{dark:"#c27860"},sixty:{dark:"#F6F4F3",bright:"#FEFEFE"},highlight:{0:"#d48521",1:"#9a8298",2:"#e0e4ac",3:"#98f4e2",4:"#21d485"},error:{ten:"#EB4A4E",thirty:"#4C191A",sixty:"#FCE8E8"},warn:{ten:"#FF9800",thirty:"#653300",sixty:"#FFF1DF"}},_=o.a.createContext([]),x=function(){return o.a.useContext(_)},S=function(t){var e,n=t.children,r=t.colorPalette,i=("ten"in(e=r)&&(w.ten=e.ten),"thirty"in e&&(w.thirty=e.thirty),"sixty"in e&&(w.sixty=e.sixty),o.a.useContext(_),w);return o.a.createElement(_.Provider,{value:i},n)};function O(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=u.length?r:t(e+1,n)}(new Set(r.map((function(t){return t.src}))).size,n);t.forEach((function(t){var r=JSON.stringify(t),i=e.indexOf(r);-1===i?(e.push(JSON.stringify(t)),n.push(o)):(e.splice(i,1),n.splice(i,1))})),i(e.map((function(t,e){var r=JSON.parse(t);return r.color=JSON.parse(n[e]),r})))},i]},e)};function N(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return z(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:st,e=arguments.length>1?arguments[1]:void 0;return"FILTERS/SIGNATURE/ADD"===e.type?ut(ut({},t),{},{activeFilters:t.activeFilters.concat(e.signature)}):e.type===lt?ut(ut({},t),{},{activeFilters:t.activeFilters.filter((function(t){return t!==e.filter}))}):ut({},t)},dt=o.a.createContext([]),pt=function(){return o.a.useContext(dt)},ht=function(t){var e=t.children,n=ot(o.a.useReducer(ft,st),2),r=n[0],i=n[1];return o.a.createElement(dt.Provider,{value:[r,i]},e)};ht.propTypes={children:a.a.element};var vt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o0&&t.staticHeightSpecific,"auto"===e&&t.staticHeightAuto].filter(t=>t).join(" ")}var wt=t=>{var{animateOpacity:e=!1,animationStateClasses:n={},applyInlineTransitions:i=!0,children:a,className:u="",contentClassName:c,delay:s=0,duration:l=500,easing:f="ease",height:d,onHeightAnimationEnd:p,onHeightAnimationStart:h,style:v}=t,y=vt(t,["animateOpacity","animationStateClasses","applyInlineTransitions","children","className","contentClassName","delay","duration","easing","height","onHeightAnimationEnd","onHeightAnimationStart","style"]);const m=Object(r.useRef)(d),g=Object(r.useRef)(null),b=Object(r.useRef)(),w=Object(r.useRef)(),_=Object(r.useRef)(Object.assign(Object.assign({},gt),n)),x="undefined"!=typeof window,S=Object(r.useRef)(!(!x||!window.matchMedia)&&window.matchMedia("(prefers-reduced-motion)").matches),O=S.current?0:s,E=S.current?0:l;let A=d,k="visible";"number"==typeof A?(A=d<0?0:d,k="hidden"):yt(A)&&(A="0%"===d?0:d,k="hidden");const[j,C]=Object(r.useState)(A),[P,T]=Object(r.useState)(k),[R,I]=Object(r.useState)(!1),[M,N]=Object(r.useState)(bt(_.current,d));Object(r.useEffect)(()=>{mt(g.current,j)},[]),Object(r.useEffect)(()=>{if(d!==m.current&&g.current){!function(t,e){0===e&&(null==t?void 0:t.style)&&(t.style.display="")}(g.current,m.current),g.current.style.overflow="hidden";const t=g.current.offsetHeight;g.current.style.overflow="";const e=E+O;let n,r,o,i="hidden";const a="auto"===m.current;"number"==typeof d?(n=d<0?0:d,r=n):yt(d)?(n="0%"===d?0:d,r=n):(n=t,r="auto",i=void 0),a&&(r=n,n=t);const u=[_.current.animating,("auto"===m.current||dm.current)&&_.current.animatingDown,0===r&&_.current.animatingToHeightZero,"auto"===r&&_.current.animatingToHeightAuto,r>0&&_.current.animatingToHeightSpecific].filter(t=>t).join(" "),c=bt(_.current,r);C(n),T("hidden"),I(!a),N(u),clearTimeout(w.current),clearTimeout(b.current),a?(o=!0,w.current=setTimeout(()=>{C(r),T(i),I(o),null==h||h(r)},50),b.current=setTimeout(()=>{I(!1),N(c),mt(g.current,r),null==p||p(r)},e)):(null==h||h(n),w.current=setTimeout(()=>{C(r),T(i),I(!1),N(c),"auto"!==d&&mt(g.current,n),null==p||p(n)},e))}return m.current=d,()=>{clearTimeout(w.current),clearTimeout(b.current)}},[d]);const z=Object.assign(Object.assign({},v),{height:j,overflow:P||(null==v?void 0:v.overflow)});R&&i&&(z.transition=`height ${E}ms ${f} ${O}ms`,(null==v?void 0:v.transition)&&(z.transition=`${v.transition}, ${z.transition}`),z.WebkitTransition=z.transition);const L={};e&&(L.transition=`opacity ${E}ms ${f} ${O}ms`,L.WebkitTransition=L.transition,0===j&&(L.opacity=0));const D=void 0!==y["aria-hidden"]?y["aria-hidden"]:0===d;return o.a.createElement("div",Object.assign({},y,{"aria-hidden":D,className:`${M} ${u}`,style:z}),o.a.createElement("div",{className:c,style:L,ref:g},a))};function _t(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return xt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xt(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n80})))?i((function(t){Math.max(t,Math.max.apply(Math,kt(n.map((function(t){return t.fittingHeight}))))),c(r>t)})):(i((function(t){return Math.max(t,Math.min(80,r))})),c(r>80))}e=n.show_all?r.atoms:r.diff,o.a.useEffect((function(){var t;b(),t=function(){return b()},setTimeout((function(){requestAnimationFrame(t)}))}),[h,n,s,d]),o.a.useEffect((function(){return window.addEventListener("resize",b),function(t){return window.removeEventListener("resize",b)}}));var w=e.filter((function(t){return g(t)})).map((function(t){var e,n,i,a,c,s,f=jt((e=h,n=t.uuid,i="mouse_over_symbol",a=null,c=e.map((function(t){return t.tgt})).indexOf(n),s=e.map((function(t){return t.src})).indexOf(n),-1!==c?(i="mouse_over_symbol mark_symbol",a={backgroundColor:e[c].color}):-1!==s&&(i="mouse_over_symbol mark_symbol"),[i,a]),2),d=f[0],p=f[1];return o.a.createElement("div",{className:d,style:p,onClick:function(e){return function(t,e){t.stopPropagation();var n=r.reason[u(e.symbol)];n.every((function(t){return null!==t}))||(n=r.recursive._graph.nodes.filter((function(t){return t.id.atoms.filter((function(t){return t.uuid==e.uuid})).length>0}))[0].id.reason[u(e.symbol)],y(r.uuid)),v(n.map((function(t){return{src:e.uuid,tgt:t.uuid}})),h)}(e,t)}},o.a.createElement(Rt,{key:JSON.stringify(t),symbolId:t,isSubnode:l}))}));return o.a.createElement("div",{className:"set_container",style:{color:f.thirty.bright}},o.a.createElement("span",{className:"set_value"},w.length>0?w:""))}function Mt(t){var e=t.node,n=jt(B(),2)[1],r=x();return o.a.createElement("div",{className:"recursion_button",onClick:function(t){t.stopPropagation(),n(e.uuid)}},e.recursive?o.a.createElement("div",{className:"recursion_button_text",style:{backgroundColor:r.ten.dark,color:r.sixty.dark}},o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 64 64"},o.a.createElement("path",{fill:"#4d5357",d:"m39.5 61.1l-6.4-8.7h-.8c-5.6 0-10.2-3.6-10.2-8V25h8l-14-19.2L2 25h8v19.4c0 4.7 2.3 9.1 6.6 12.4c4.2 3.3 9.8 5.2 15.8 5.2c2.4 0 4.8-.3 7.1-.9m-7.8-49.5c5.6 0 10.2 3.6 10.2 8v19.5h-8L48 58.3l14-19.2h-8V19.6c0-4.7-2.3-9.1-6.5-12.4C43.3 3.8 37.7 2 31.7 2c-2.5 0-4.9.3-7.2.9l6.4 8.7h.8"}))):null)}function Nt(t){var e=t.setExpandNode,n=x();return o.a.createElement("div",{style:{backgroundColor:n.ten.dark,color:n.sixty.dark},className:"bauchbinde",onClick:function(t){t.stopPropagation(),e(!0)}},o.a.createElement("div",{className:"bauchbinde_text"},o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"9",viewBox:"0 0 24 24"},o.a.createElement("path",{fill:"currentColor",d:"M18 6.41L16.59 5L12 9.58L7.41 5L6 6.41l6 6z"}),o.a.createElement("path",{fill:"currentColor",d:"m18 13l-1.41-1.41L12 16.17l-4.59-4.58L6 13l6 6z"}))))}function zt(t){var e=jt(k(),1)[0],n="node_border mouse_over_shadow ".concat(t.uuid," ").concat(e===t.uuid?"highlighted_node":null);return o.a.useEffect((function(){n="node_border mouse_over_shadow ".concat(t.uuid," ").concat(e===t.uuid?"highlighted_node":null)}),[t.uuid,e]),n}function Lt(t){var e=t.node,n=t.notifyClick,r=t.showMini,i=t.isSubnode,a=jt(o.a.useState(!1),2),u=a[0],c=a[1],s=x(),l=jt(g(),2)[1],f=zt(e),d=jt(o.a.useState(0),2),p=d[0],y=d[1],m=jt(o.a.useState(!1),2),b=m[0],w=m[1],_=jt(Et(),4),S=_[2],O=_[3];o.a.useEffect((function(){return l(v(e.uuid)),function(){l(h(e.uuid))}}),[]),o.a.useEffect((function(){}));var E="".concat(e.uuid,"_animate_height");return o.a.createElement("div",{className:f,style:{backgroundColor:s.sixty.dark,color:s.ten.dark},id:e.uuid,onClick:function(t){t.stopPropagation(),n(e)}},r?o.a.createElement("div",{style:{backgroundColor:s.ten.dark,color:s.ten.dark},className:"mini"}):o.a.createElement("div",{className:"set_too_high"},o.a.createElement(wt,{id:E,duration:500,height:p,onHeightAnimationStart:S,onHeightAnimationEnd:O},o.a.createElement(It,{node:e,setHeight:y,parentID:E,setIsOverflowV:c,expandNode:b,isSubnode:i}),o.a.createElement(Mt,{node:e}))),!r&&u?o.a.createElement(Nt,{setExpandNode:w}):null)}function Dt(t){var e=t.node,n=t.notifyClick,r=t.showMini,i=x(),a=jt(g(),2)[1],u=zt(e);return o.a.useEffect((function(){return a(v(e.uuid)),function(){a(h(e.uuid))}}),[]),o.a.useEffect((function(){})),o.a.createElement("div",{className:u,style:{backgroundColor:i.ten.dark,color:i.ten.dark},id:e.uuid,onClick:function(t){t.stopPropagation(),n(e)}},o.a.createElement(Mt,{node:e}),e.recursive._graph.nodes.map((function(t){return t.id})).map((function(t){return o.a.createElement(Lt,{key:t,node:t,notifyClick:n,showMini:r,isSubnode:!0})})))}At.propTypes={children:a.a.element},Rt.propTypes={symbolId:K},It.propTypes={node:et,overflowV:a.a.bool},Lt.propTypes={node:et,notifyClick:a.a.func,showMini:a.a.bool},Dt.propTypes={node:et,notifyClick:a.a.func,showMini:a.a.bool};n(17);function Bt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ft(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ft(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ft(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n/g,">").replace(/\n/g,"
")}})})))}function Wt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ht(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ht(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:Vt,e=arguments.length>1?arguments[1]:void 0;return e.type===Yt?qt(qt({},t),{},{activeMessages:t.activeMessages.concat({text:e.text,level:"error"})}):e.type===Jt?qt(qt({},t),{},{activeMessages:t.activeMessages.concat({text:e.text,level:"warn"})}):qt({},t)};var Qt=o.a.createContext([]),te=function(){return o.a.useContext(Qt)},ee=function(t){var e=t.children,n=Wt(o.a.useReducer(Kt,Vt),2),r=n[0],i=n[1],a=Y(),u=a.state,c=a.backendURL;return o.a.useEffect((function(){var t=!0;return function(t){return fetch("".concat(t("control/warnings"))).then((function(t){if(t.ok)return t.json();throw new Error(t.statusText)}))}(c).catch((function(t){Zt("Failed to get transformations: ".concat(t))})).then((function(e){t&&e.map((function(t){return"WARNING"===(e=t).reason.value?{type:Jt,text:"The program contains a rule that is not supported! The graph shown might be faulty! ".concat(e.ast)}:"FAILURE"===e.reason.value?{type:Yt,text:"The program contains a rule that will cause false behaviour! Remove/Rephrase the following rule: ".concat(e.ast)}:void 0;var e})).map((function(t){return i(t)}))})),function(){return t=!1}}),[u.backend_url]),o.a.createElement(Qt.Provider,{value:[r,i]},e)};function ne(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return re(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return re(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function re(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:ue,e=arguments.length>1?arguments[1]:void 0;return"APP/TRANSFORMATIONS/ADD"===e.type?ie(ie({},t),{},{transformations:t.transformations.concat({transformation:e.t,shown:!0})}):"APP/TRANSFORMATIONS/ONLY"===e.type?ie(ie({},t),{},{transformations:t.transformations.map((function(t){return t.transformation.id!==e.t.id?{transformation:t.transformation,shown:!1}:{transformation:t.transformation,shown:!0}}))}):"APP/TRANSFORMATIONS/SHOW"===e.type?ie(ie({},t),{},{transformations:t.transformations.map((function(t){return t.transformation===e.t?{transformation:t.transformation,shown:!0}:t}))}):"APP/TRANSFORMATIONS/HIDE"===e.type?ie(ie({},t),{},{transformations:t.transformations.map((function(t){return t.transformation===e.t?{transformation:t.transformation,shown:!1}:t}))}):"APP/TRANSFORMATIONS/TOGGLE"===e.type?ie(ie({},t),{},{transformations:t.transformations.map((function(t){return t.transformation===e.t?{transformation:t.transformation,shown:!t.shown}:t}))}):ie({},t)},le=function(t){var e=t.children,n=ne(te(),2)[1],r=Y(),i=r.state,a=r.backendURL,u=ne(o.a.useReducer(se,ue),2),c=u[0],s=u[1];return o.a.useEffect((function(){var t=!0;return function(t){return fetch("".concat(t("graph/transformations"))).then((function(t){if(t.ok)return t.json();throw new Error(t.statusText)}))}(a).catch((function(t){n(Zt("Failed to get transformations: ".concat(t)))})).then((function(e){t&&e.map((function(t){return s(function(t){return{type:"APP/TRANSFORMATIONS/ADD",t:t}}(t))}))})),function(){return t=!1}}),[i.backend_url]),o.a.createElement(ce.Provider,{value:{state:c,dispatch:s}},e)},fe=function(){return o.a.useContext(ce)};function de(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return pe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pe(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt?e.activeTargets.push(n):e.skippedTargets.push(n))}))}))},bn=function(){var t,e=0;for(gn(e);Ye.some((function(t){return t.activeTargets.length>0}));)e=mn(),gn(e);return Ye.some((function(t){return t.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:Je}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=Je),window.dispatchEvent(t)),e>0},wn=[],_n=function(t){if(!Ze){var e=0,n=document.createTextNode("");new MutationObserver((function(){return wn.splice(0).forEach((function(t){return t()}))})).observe(n,{characterData:!0}),Ze=function(){n.textContent=""+(e?e--:e++)}}wn.push(t),Ze()},xn=0,Sn={attributes:!0,characterData:!0,childList:!0,subtree:!0},On=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],En=function(t){return void 0===t&&(t=0),Date.now()+t},An=!1,kn=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var e=this;if(void 0===t&&(t=250),!An){An=!0;var n,r=En(t);n=function(){var n=!1;try{n=bn()}finally{if(An=!1,t=r-En(),!xn)return;n?e.run(1e3):t>0?e.run(t):e.start()}},_n((function(){requestAnimationFrame(n)}))}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,Sn)};document.body?e():on.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),On.forEach((function(e){return on.addEventListener(e,t.listener,!0)})))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),On.forEach((function(e){return on.removeEventListener(e,t.listener,!0)})),this.stopped=!0)},t}()),jn=function(t){!xn&&t>0&&kn.start(),!(xn+=t)&&kn.stop()},Cn=function(){function t(t,e){this.target=t,this.observedBox=e||qe.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,e=hn(this.target,this.observedBox,!0);return t=this.target,en(t)||function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),Pn=function(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e},Tn=new WeakMap,Rn=function(t,e){for(var n=0;n=0&&(o&&Ye.splice(Ye.indexOf(n),1),n.observationTargets.splice(r,1),jn(-1))},t.disconnect=function(t){var e=this,n=Tn.get(t);n.observationTargets.slice().forEach((function(n){return e.unobserve(t,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},t}(),Mn=function(){function t(t){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof t)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");In.connect(this,t)}return t.prototype.observe=function(t,e){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!rn(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");In.observe(this,t,e)},t.prototype.unobserve=function(t){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!rn(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");In.unobserve(this,t)},t.prototype.disconnect=function(){In.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();var Nn=o.a["undefined"!=typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"];var zn=t=>{const e=r.useRef(t);return r.useEffect(()=>{e.current=t}),e},Ln=function(t){var e=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;iFn||(Fn=function(){const t=new Map,e=new Dn(Ln((e,n)=>{for(let r=0;rt(e[r],n))}}));return{observer:e,subscribe(n,r){var o;e.observe(n);const i=null!==(o=t.get(n))&&void 0!==o?o:[];i.push(r),t.set(n,i)},unsubscribe(n,r){var o;const i=null!==(o=t.get(n))&&void 0!==o?o:[];if(1===i.length)return e.unobserve(n),void t.delete(n);const a=i.indexOf(r);-1!==a&&i.splice(a,1),t.set(n,i)}}}());var $n=function(t,e){const n=Un(),r=zn(e);return Nn(()=>{let e=!1;const o=t&&"current"in t?t.current:t;if(!o)return Bn;function i(t,n){e||r.current(t,n)}return n.subscribe(o,i),()=>{e=!0,n.unsubscribe(o,i)}},[t,n,r]),n.observer};function Wn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Hn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hn(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?r:null)}Jn.propTypes={id:PropTypes.string};n(34);function Zn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Kn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kn(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0&&f.splice(e,1)}function m(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=function(){0;return n.nc}();r&&(t.attrs.nonce=r)}return g(e,t.attrs),v(t,e),e}function g(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function b(t,e){var n,r,o,i;if(e.transform&&t.css){if(!(i="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=i}if(e.singleton){var a=l++;n=s||(s=m(e)),r=x.bind(null,n,a,!1),o=x.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),v(t,e),e}(e),r=O.bind(null,n,e),o=function(){y(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(e),r=S.bind(null,n),o=function(){y(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=h(t,e);return p(n,e),function(t){for(var r=[],o=0;o{"use strict";var n={229:e=>{e.exports=t},297:t=>{t.exports=e}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={exports:{}};return n[t](i,i.exports,o),i.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{o.r(i),o.d(i,{default:()=>S,SteppedLineTo:()=>O,Line:()=>E,SteppedLine:()=>A});var t=o(229),e=o.n(t),n=o(297),r=o.n(n);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(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n2)throw new Error('LinkTo anchor format is " "');var n=f(e,2),r=n[0],o=n[1];return Object.assign({},_,r?this.parseAnchorText(r)||{x:this.parseAnchorPercent(r)}:{},o?this.parseAnchorText(o)||{y:this.parseAnchorPercent(o)}:{})}},{key:"findElement",value:function(t){return document.getElementsByClassName(t)[0]}},{key:"detect",value:function(){var t=this.props,e=t.from,n=t.to,r=t.within,o=void 0===r?"":r,i=this.findElement(e),a=this.findElement(n);if(!i||!a)return!1;var u=this.fromAnchor,c=this.toAnchor,s=i.getBoundingClientRect(),l=a.getBoundingClientRect(),f=window.pageXOffset,d=window.pageYOffset;if(o){var p=this.findElement(o),h=p.getBoundingClientRect();f-=h.left+(window.pageXOffset||document.documentElement.scrollLeft)-p.scrollLeft,d-=h.top+(window.pageYOffset||document.documentElement.scrollTop)-p.scrollTop}var v=s.left+s.width*u.x+f,y=l.left+l.width*c.x+f;return{x0:v,y0:s.top+s.height*u.y+d,x1:y,y1:l.top+l.height*c.y+d}}},{key:"render",value:function(){var t=this.detect();return t?r().createElement(E,l({},t,this.props)):null}}]),n}(n.Component);S.propTypes=c({from:e().string.isRequired,to:e().string.isRequired,within:e().string,fromAnchor:e().string,toAnchor:e().string,delay:e().oneOfType([e().number,e().bool])},x);var O=function(t){y(n,t);var e=g(n);function n(){return p(this,n),e.apply(this,arguments)}return v(n,[{key:"render",value:function(){var t=this.detect();return t?r().createElement(A,l({},t,this.props)):null}}]),n}(S),E=function(t){y(n,t);var e=g(n);function n(){return p(this,n),e.apply(this,arguments)}return v(n,[{key:"componentDidMount",value:function(){this.within.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.within.removeChild(this.el)}},{key:"findElement",value:function(t){return document.getElementsByClassName(t)[0]}},{key:"render",value:function(){var t=this,e=this.props,n=e.x0,o=e.y0,i=e.x1,a=e.y1,u=e.within,c=void 0===u?"":u;this.within=c?this.findElement(c):document.body;var s=a-o,f=i-n,d=180*Math.atan2(s,f)/Math.PI,p=Math.sqrt(f*f+s*s),h={position:"absolute",top:"".concat(o,"px"),left:"".concat(n,"px"),width:"".concat(p,"px"),zIndex:Number.isFinite(this.props.zIndex)?String(this.props.zIndex):"1",transform:"rotate(".concat(d,"deg)"),transformOrigin:"0 0"},v={borderTopColor:this.props.borderColor||"#f00",borderTopStyle:this.props.borderStyle||"solid",borderTopWidth:this.props.borderWidth||1},y={className:this.props.className,style:Object.assign({},v,h)};return r().createElement("div",{className:"react-lineto-placeholder"},r().createElement("div",l({ref:function(e){t.el=e}},y)))}}]),n}(n.PureComponent);E.propTypes=c({x0:e().number.isRequired,y0:e().number.isRequired,x1:e().number.isRequired,y1:e().number.isRequired},x);var A=function(t){y(n,t);var e=g(n);function n(){return p(this,n),e.apply(this,arguments)}return v(n,[{key:"render",value:function(){return"h"===this.props.orientation?this.renderHorizontal():this.renderVertical()}},{key:"renderVertical",value:function(){var t=Math.round(this.props.x0),e=Math.round(this.props.y0),n=Math.round(this.props.x1),o=Math.round(this.props.y1),i=n-t;if(Math.abs(i)<=1)return r().createElement(E,l({},this.props,{x0:t,y0:e,x1:t,y1:o}));if(0===i)return r().createElement(E,this.props);var a=this.props.borderWidth||1,u=Math.round((e+o)/2),c=i>0?a:0,s=Math.min(t,n)-c,f=Math.max(t,n);return r().createElement("div",{className:"react-steppedlineto"},r().createElement(E,l({},this.props,{x0:t,y0:e,x1:t,y1:u})),r().createElement(E,l({},this.props,{x0:n,y0:o,x1:n,y1:u})),r().createElement(E,l({},this.props,{x0:s,y0:u,x1:f,y1:u})))}},{key:"renderHorizontal",value:function(){var t=Math.round(this.props.x0),e=Math.round(this.props.y0),n=Math.round(this.props.x1),o=Math.round(this.props.y1),i=o-e;if(Math.abs(i)<=1)return r().createElement(E,l({},this.props,{x0:t,y0:e,x1:n,y1:e}));if(0===i)return r().createElement(E,this.props);var a=this.props.borderWidth||1,u=Math.round((t+n)/2),c=i<0?a:0,s=Math.min(e,o)-c,f=Math.max(e,o);return r().createElement("div",{className:"react-steppedlineto"},r().createElement(E,l({},this.props,{x0:t,y0:e,x1:u,y1:e})),r().createElement(E,l({},this.props,{x0:n,y0:o,x1:u,y1:o})),r().createElement(E,l({},this.props,{x0:u,y0:s,x1:u,y1:f})))}}]),n}(n.PureComponent);A.propTypes=c({x0:e().number.isRequired,y0:e().number.isRequired,x1:e().number.isRequired,y1:e().number.isRequired,orientation:e().oneOf(["h","v"])},x)})(),i})()},t.exports=r(n(1),n(0))},function(t,e,n){"use strict";var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}((function(t){return r.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}));e.a=o},function(t,e,n){"use strict";(function(t){var r=n(4),o=n(0),i=n.n(o),a=n(9),u=n.n(a),c=n(10),s=n(11),l=n(7),f=n(5),d=n.n(f);function p(){return(p=Object.assign||function(t){for(var e=1;e1?e-1:0),r=1;r0?" Args: "+n.join(", "):""))}var E=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}var e=t.prototype;return e.indexOfGroup=function(t){for(var e=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;t>=o;)(o<<=1)<0&&O(16,""+t);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i=this.length||0===this.groupSizes[t])return e;for(var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n,i=r;i=j&&(j=e+1),A.set(t,e),k.set(e,t)},R="style["+_+'][data-styled-version="5.3.3"]',I=new RegExp("^"+_+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),M=function(t,e,n){for(var r,o=n.split(","),i=0,a=o.length;i=0;n--){var r=e[n];if(r&&1===r.nodeType&&r.hasAttribute(_))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(_,"active"),r.setAttribute("data-styled-version","5.3.3");var a=z();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},D=function(){function t(t){var e=this.element=L(t);e.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var e=document.styleSheets,n=0,r=e.length;n=0){var n=document.createTextNode(e),r=this.nodes[t];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},e.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.getRule=function(t){return t0&&(s+=t+",")})),r+=""+u+c+'{content:"'+s+'"}/*!sc*/\n'}}}return r}(this)},t}(),H=/(a)(d)/gi,X=function(t){return String.fromCharCode(t+(t>25?39:97))};function q(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=X(e%52)+n;return(X(e%52)+n).replace(H,"$1-$2")}var G=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},V=function(t){return G(5381,t)};function Y(t){for(var e=0;e>>0);if(!e.hasNameForId(r,a)){var u=n(i,"."+a,void 0,r);e.insertRules(r,a,u)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,s=G(this.baseHash,n.hash),l="",f=0;f>>0);if(!e.hasNameForId(r,v)){var y=n(l,"."+v,void 0,r);e.insertRules(r,v,y)}o.push(v)}}return o.join(" ")},t}(),K=/^\s*\/\/.*$/gm,Q=[":","[",".","#"];function tt(t){var e,n,r,o,i=void 0===t?m:t,a=i.options,u=void 0===a?m:a,s=i.plugins,l=void 0===s?y:s,f=new c.a(u),d=[],p=function(t){function e(e){if(e)try{t(e+"}")}catch(t){}}return function(n,r,o,i,a,u,c,s,l,f){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return t(r+";"),"";break;case 2:if(0===s)return r+"/*|*/";break;case 3:switch(s){case 102:case 112:return t(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(e)}}}((function(t){d.push(t)})),h=function(t,r,i){return 0===r&&-1!==Q.indexOf(i[n.length])||i.match(o)?t:"."+e};function v(t,i,a,u){void 0===u&&(u="&");var c=t.replace(K,""),s=i&&a?a+" "+i+" { "+c+" }":c;return e=u,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),f(a||!i?"":i,s)}return f.use([].concat(l,[function(t,e,o){2===t&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,h))},p,function(t){if(-2===t){var e=d;return d=[],e}}])),v.hash=l.length?l.reduce((function(t,e){return e.name||O(15),G(t,e.name)}),5381).toString():"",v}var et=i.a.createContext(),nt=(et.Consumer,i.a.createContext()),rt=(nt.Consumer,new W),ot=tt();function it(){return Object(o.useContext)(et)||rt}function at(){return Object(o.useContext)(nt)||ot}function ut(t){var e=Object(o.useState)(t.stylisPlugins),n=e[0],r=e[1],a=it(),c=Object(o.useMemo)((function(){var e=a;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target]),s=Object(o.useMemo)((function(){return tt({options:{prefix:!t.disableVendorPrefixes},plugins:n})}),[t.disableVendorPrefixes,n]);return Object(o.useEffect)((function(){u()(n,t.stylisPlugins)||r(t.stylisPlugins)}),[t.stylisPlugins]),i.a.createElement(et.Provider,{value:c},i.a.createElement(nt.Provider,{value:s},t.children))}var ct=function(){function t(t,e){var n=this;this.inject=function(t,e){void 0===e&&(e=ot);var r=n.name+e.hash;t.hasNameForId(n.id,r)||t.insertRules(n.id,r,e(n.rules,r,"@keyframes"))},this.toString=function(){return O(12,String(n.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=e}return t.prototype.getName=function(t){return void 0===t&&(t=ot),this.name+t.hash},t}(),st=/([A-Z])/,lt=/([A-Z])/g,ft=/^ms-/,dt=function(t){return"-"+t.toLowerCase()};function pt(t){return st.test(t)?t.replace(lt,dt).replace(ft,"-ms-"):t}var ht=function(t){return null==t||!1===t||""===t};function vt(t,e,n,r){if(Array.isArray(t)){for(var o,i=[],a=0,u=t.length;a1?e-1:0),r=1;r?@[\\\]^`{|}~-]+/g,wt=/(^-|-$)/g;function _t(t){return t.replace(bt,"-").replace(wt,"")}var xt=function(t){return q(V(t)>>>0)};function St(t){return"string"==typeof t&&!0}var Ot=function(t){return"function"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)},Et=function(t){return"__proto__"!==t&&"constructor"!==t&&"prototype"!==t};function At(t,e,n){var r=t[n];Ot(e)&&Ot(r)?kt(r,e):t[n]=e}function kt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r=0||(o[n]=t[n]);return o}(e,["componentId"]),i=r&&r+"-"+(St(t)?t:_t(b(t)));return Pt(t,p({},o,{attrs:x,componentId:i}),n)},Object.defineProperty(O,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?kt({},t.defaultProps,e):e}}),O.toString=function(){return"."+O.styledComponentId},a&&d()(O,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),O}var Tt=function(t){return function t(e,n,o){if(void 0===o&&(o=m),!Object(r.isValidElementType)(n))return O(1,String(n));var i=function(){return e(n,o,mt.apply(void 0,arguments))};return i.withConfig=function(r){return t(e,n,p({},o,{},r))},i.attrs=function(r){return t(e,n,p({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(Pt,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(t){Tt[t]=Tt(t)}));!function(){function t(t,e){this.rules=t,this.componentId=e,this.isStatic=Y(t),W.registerId(this.componentId+1)}var e=t.prototype;e.createStyles=function(t,e,n,r){var o=r(vt(this.rules,e,n,r).join(""),""),i=this.componentId+t;n.insertRules(i,i,o)},e.removeStyles=function(t,e){e.clearRules(this.componentId+t)},e.renderStyles=function(t,e,n,r){t>2&&W.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,e,n,r)}}();!function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString();if(!e)return"";var n=z();return""},this.getStyleTags=function(){return t.sealed?O(2):t._emitSheetCSS()},this.getStyleElement=function(){var e;if(t.sealed)return O(2);var n=((e={})[_]="",e["data-styled-version"]="5.3.3",e.dangerouslySetInnerHTML={__html:t.instance.toString()},e),r=z();return r&&(n.nonce=r),[i.a.createElement("style",p({},n,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var e=t.prototype;e.collectStyles=function(t){return this.sealed?O(2):i.a.createElement(ut,{sheet:this.instance},t)},e.interleaveWithNodeStream=function(t){return O(3)}}();e.a=Tt}).call(this,n(27))},function(t,e){t.exports=function(t,e,n,r){var o=n?n.call(r,t,e):void 0;if(void 0!==o)return!!o;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(e),c=0;cr&&(r=(e=e.trim()).charCodeAt(0)),r){case 38:return e.replace(v,"$1"+t.trim());case 58:return t.trim()+e.replace(v,"$1"+t.trim());default:if(0<1*n&&0c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102u.charCodeAt(0)&&(u=u.trim()),u=[u],0p)&&(B=($=$.replace(" ",":")).length),00?"translate(-100% , -50%)":"translate(-0% , -50%)",width:"max-content",position:"absolute",left:G.cx0+G.labelEndPos.x,top:G.cy0+G.labelEndPos.y+x+5}},g.end):null,B?s.default.createElement(s.default.Fragment,null,u(u([],G.startPoints),G.endPoints).map((function(t,e){return s.default.createElement("div",{key:e,style:{background:"gray",opacity:.5,borderRadius:"50%",transform:"translate(-50%, -50%)",height:5,width:5,position:"absolute",left:t.x-G.mainDivPos.x,top:t.y-G.mainDivPos.y}})}))):null):null)});h.propTypes=d.default,e.default=h},"./src/Xarrow/anchors.ts":function(t,e,n){t=n.nmd(t),Object.defineProperty(e,"__esModule",{value:!0}),e.calcAnchors=void 0,e.calcAnchors=function(t,e){return t.map((function(t){var n,r,o=(n=e.right-e.x,r=e.bottom-e.y,{middle:{x:.5*n,y:.5*r},left:{x:0,y:.5*r},right:{x:n,y:.5*r},top:{x:.5*n,y:0},bottom:{x:.5*n,y:r}})[t.position],i=o.x,a=o.y;return{x:e.x+i+t.offset.x,y:e.y+a+t.offset.y,anchor:t}}))},n.c[n.s]},"./src/Xarrow/propTypes.ts":function(t,e,n){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(n("prop-types")),i=n("./src/constants.tsx"),a=o.default.oneOf(i.cAnchorEdge),u=o.default.exact({position:a.isRequired,offset:o.default.exact({x:o.default.number,y:o.default.number}).isRequired}),c=o.default.oneOfType([a,u]),s=o.default.oneOfType([c,o.default.arrayOf(c)]),l=o.default.oneOfType([o.default.string,o.default.exact({current:o.default.any})]),f=o.default.oneOfType([o.default.element,o.default.string]),d=o.default.exact({start:f,middle:f,end:f}),p=o.default.oneOf(Object.keys(i.arrowShapes)),h=o.default.any,v=o.default.oneOfType([p,o.default.exact({svgElem:h,offsetForward:o.default.number}).isRequired]),y={start:l.isRequired,end:l.isRequired,startAnchor:s,endAnchor:s,labels:o.default.oneOfType([f,d]),color:o.default.string,lineColor:o.default.string,showHead:o.default.bool,headColor:o.default.string,headSize:o.default.number,tailSize:o.default.number,tailColor:o.default.string,strokeWidth:o.default.number,showTail:o.default.bool,path:o.default.oneOf(i.cPaths),showXarrow:o.default.bool,curveness:o.default.number,gridBreak:o.default.string,dashness:o.default.oneOfType([o.default.bool,o.default.object]),headShape:v,tailShape:v,animateDrawing:o.default.oneOfType([o.default.bool,o.default.number]),zIndex:o.default.number,passProps:o.default.object,arrowBodyProps:o.default.object,arrowHeadProps:o.default.object,arrowTailProps:o.default.object,SVGcanvasProps:o.default.object,divContainerProps:o.default.object,_extendSVGcanvas:o.default.number,_debug:o.default.bool,_cpx1Offset:o.default.number,_cpy1Offset:o.default.number,_cpx2Offset:o.default.number,_cpy2Offset:o.default.number};e.default=y},"./src/Xarrow/useXarrowProps.ts":function(t,e,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&(e=e.filter((function(t){return"auto"!==t.position}))).push.apply(e,n.flatMap((function(t){return["left","right","top","bottom"].map((function(e){return r(r({},t),{position:e})}))}))),e.map((function(t){if("object"==typeof t){var e=t;return e.position||(e.position="auto"),e.offset||(e.offset={x:0,y:0}),e.offset.y||(e.offset.y=0),e.offset.x||(e.offset.x=0),e=e}return t}))},p=function(t){return"string"==typeof t&&(t in f.arrowShapes?t=f.arrowShapes[t]:(console.warn("'"+t+"' is not supported arrow shape. the supported arrow shapes is one of "+f.cArrowShapes+".\n reverting to default shape."),t=f.arrowShapes.arrow1)),void 0===(null==(t=t)?void 0:t.offsetForward)&&(t.offsetForward=.25),void 0===(null==t?void 0:t.svgElem)&&(t.svgElem="path"),t},h=function(t,e){return e&&(e.current=!0),t},v=function(t){return t},y=function(t,e,n){return h(t,n)},m=function(t,e,n){return h(Number(t),n)},g={start:function(t){return s.getElementByPropGiven(t)},end:function(t){return s.getElementByPropGiven(t)},startAnchor:function(t,e,n){return h(d(t),n)},endAnchor:function(t,e,n){return h(d(t),n)},labels:function(t){return function(t){var e={start:null,middle:null,end:null};if(t)if("string"==typeof t||c.default.isValidElement(t))e.middle=t;else for(var n in t)e[n]=t[n];return e}(t)},color:v,lineColor:function(t,e){return t||e.color},headColor:function(t,e){return t||e.color},tailColor:function(t,e){return t||e.color},strokeWidth:m,showHead:y,headSize:m,showTail:y,tailSize:m,path:y,curveness:m,gridBreak:function(t,e,n){return h((r=t,(o=s.xStr2absRelative(r))||(o={relative:.5,abs:0}),o),n);var r,o},dashness:function(t,e){return r=e,i=0,a=0,"object"==typeof(n=t)?(i=n.strokeLen||2*r.strokeWidth,a=n.strokeLen?n.nonStrokeLen:r.strokeWidth,o=n.animation?n.animation:null):"boolean"==typeof n&&n&&(i=2*r.strokeWidth,a=r.strokeWidth,o=null),{strokeLen:i,nonStrokeLen:a,animation:o,animDirection:1};var n,r,o,i,a},headShape:function(t){return p(t)},tailShape:function(t){return p(t)},showXarrow:v,animateDrawing:v,zIndex:function(t){return Number(t)},passProps:v,arrowBodyProps:y,arrowHeadProps:y,arrowTailProps:y,SVGcanvasProps:y,divContainerProps:y,divContainerStyle:y,SVGcanvasStyle:y,_extendSVGcanvas:y,_debug:y,_cpx1Offset:y,_cpy1Offset:y,_cpx2Offset:y,_cpy2Offset:y},b={};for(var w in g)b[w]=[w];for(var _=0,x=["lineColor","headColor","tailColor"];_0?1:-1,tt=J>0?1:-1,et=[S.offsetForward,O.offsetForward],nt=et[0],rt=et[1],ot=m*v,it=b*v,at=0,ut=0,ct=0,st=0,lt=ot*nt,ft=it*rt,dt=Number(_);u.cPaths.includes(w)||(w="smooth"),"straight"===w&&(dt=0,w="smooth");var pt=v+v*(m>b?m:b)/2,ht=pt,vt=pt,yt=pt,mt=pt;vt+=Number(E),ht+=Number(E),yt+=Number(E),mt+=Number(E);var gt=0,bt=Z,wt=0,_t=K;if(Y<0&&(gt=(n=[bt,gt])[0],bt=n[1]),J<0&&(wt=(r=[_t,wt])[0],_t=r[1]),0===dt){var xt=Math.atan(K/Z);y&&(bt-=ot*(1-nt)*Q*Math.cos(xt),_t-=ot*(1-nt)*tt*Math.sin(xt),xt*=tt,Q<0&&(xt=(Math.PI-xt*Q)*Q),at=Math.cos(xt)*lt-Math.sin(xt)*ot/2,ut=Math.cos(xt)*ot/2+Math.sin(xt)*lt,N=180*xt/Math.PI);var St=Math.atan(K/Z);g&&(gt+=it*(1-rt)*Q*Math.cos(St),wt+=it*(1-rt)*tt*Math.sin(St),St*=-tt,Q>0&&(St=(Math.PI-St*Q)*Q),ct=Math.cos(St)*ft-Math.sin(St)*it/2,st=Math.cos(St)*it/2+Math.sin(St)*ft,z=180*St/Math.PI)}else"middle"===W&&(W=Z>K?Q?"left":"right":tt?"top":"bottom"),y&&(["left","right"].includes(W)?(at+=lt*Q,bt-=ot*(1-nt)*Q,ut+=ot*Q/2,"left"===W?(N=0,Q<0&&(N+=180)):(N=180,Q>0&&(N+=180))):["top","bottom"].includes(W)&&(at+=ot*-tt/2,_t-=ot*tt-(ut+=lt*tt),"top"===W?(N=270,tt>0&&(N+=180)):(N=90,tt<0&&(N+=180))));g&&0!==dt&&(["left","right"].includes($)?(gt+=it*Q+(ct+=ft*-Q),st+=-it*Q/2,"left"===$?(z=180,Q<0&&(z+=180)):(z=0,Q>0&&(z+=180))):["top","bottom"].includes($)&&(wt+=it*tt+(st+=ft*-tt),ct+=it*tt/2,"top"===$?(z=90,tt>0&&(z+=180)):(z=270,tt<0&&(z+=180))));var Ot={x:at,y:ut},Et={x:ct,y:st},At=gt,kt=wt,jt=bt,Ct=_t,Pt={};"smooth"===w?Pt={hh:function(){At+=Z*dt*Q,jt-=Z*dt*Q},vv:function(){kt+=K*dt*tt,Ct-=K*dt*tt},hv:function(){At+=Z*dt*Q,Ct-=K*dt*tt},vh:function(){kt+=K*dt*tt,jt-=Z*dt*Q}}:"grid"===w&&(Pt={hh:function(){At+=(Z*x.relative+x.abs)*Q,jt-=(Z*(1-x.relative)-x.abs)*Q,y&&(At-=ot*(1-nt)/2*Q,jt+=ot*(1-nt)/2*Q),g&&(At-=it*(1-rt)/2*Q,jt+=it*(1-rt)/2*Q)},vv:function(){kt+=(K*x.relative+x.abs)*tt,Ct-=(K*(1-x.relative)-x.abs)*tt,y&&(kt-=ot*(1-nt)/2*tt,Ct+=ot*(1-nt)/2*tt),g&&(kt-=it*(1-rt)/2*tt,Ct+=it*(1-rt)/2*tt)},hv:function(){At=bt},vh:function(){kt=_t}});var Tt="";["left","right"].includes($)?Tt+="h":["bottom","top"].includes($)?Tt+="v":"middle"===$&&(Tt+="m"),["left","right"].includes(W)?Tt+="h":["bottom","top"].includes(W)?Tt+="v":"middle"===W&&(Tt+="m"),Pt[Tt=Z>K?Tt.replace(/m/g,"h"):Tt.replace(/m/g,"v")](),At+=A,kt+=k,jt+=j,Ct+=C;var Rt=c.buzzierMinSols(gt,At,jt,bt),It=Rt[0],Mt=Rt[1],Nt=c.buzzierMinSols(wt,kt,Ct,_t),zt=Nt[0],Lt=Nt[1];It<0&&(vt+=-It),Mt>Z&&(ht+=Mt-Z),zt<0&&(yt+=-zt),Lt>K&&(mt+=Lt-K),"grid"===w&&(vt+=pt,ht+=pt,yt+=pt,mt+=pt),gt+=vt,bt+=vt,wt+=yt,_t+=yt,At+=vt,jt+=vt,kt+=yt,Ct+=yt;var Dt=Z+vt+ht,Bt=K+yt+mt;G-=vt,V-=yt;var Ft,Ut=c.bzFunction(gt,At,jt,bt),$t=c.bzFunction(wt,kt,Ct,_t),Wt={x:Ut(.01),y:$t(.01)},Ht={x:Ut(.5),y:$t(.5)},Xt={x:Ut(.99),y:$t(.99)};return"grid"===w?Ft="M "+gt+" "+wt+" L "+At+" "+kt+" L "+jt+" "+Ct+" "+bt+" "+_t:"smooth"===w&&(Ft="M "+gt+" "+wt+" C "+At+" "+kt+", "+jt+" "+Ct+", "+bt+" "+_t),{cx0:G,cy0:V,x1:gt,x2:bt,y1:wt,y2:_t,cw:Dt,ch:Bt,cpx1:At,cpy1:kt,cpx2:jt,cpy2:Ct,dx:Y,dy:J,absDx:Z,absDy:K,headOrient:N,tailOrient:z,labelStartPos:Wt,labelMiddlePos:Ht,labelEndPos:Xt,excLeft:vt,excRight:ht,excUp:yt,excDown:mt,headOffset:lt,arrowHeadOffset:Ot,arrowTailOffset:Et,startPoints:L,endPoints:D,mainDivPos:q,xSign:Q,ySign:tt,lineLength:null!==(l=null===(s=M.current)||void 0===s?void 0:s.getTotalLength())&&void 0!==l?l:0,fHeadSize:ot,fTailSize:it,arrowPath:Ft}}},"./src/Xarrow/utils/index.ts":function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getSvgPos=e.getElemPos=e.getShortestLine=e.xStr2absRelative=e.factorDpathStr=e.getElementByPropGiven=void 0,e.getElementByPropGiven=function(t){return"string"==typeof t?document.getElementById(t):null==t?void 0:t.current},e.factorDpathStr=function(t,e){var n=t.split(/(\d+(?:\.\d+)?)/);return(n=n.map((function(t){return Number(t)?(Number(t)*e).toString():t}))).join("")},e.xStr2absRelative=function(t){if("string"!=typeof t)return{abs:0,relative:.5};var e=t.split("%"),n=0,r=0;if(1==e.length){var o=parseFloat(e[0]);if(!isNaN(o))return{abs:n=o,relative:0}}else if(2==e.length){var i=[parseFloat(e[0]),parseFloat(e[1])],a=i[0],u=i[1];if(isNaN(a)||(r=a/100),isNaN(u)||(n=u),!isNaN(a)||!isNaN(u))return{abs:n,relative:r}}},e.getShortestLine=function(t,e){var n,r=1/0,o=1/0;return t.forEach((function(t){e.forEach((function(e){var i,a;i=t,a=e,(o=Math.sqrt(Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2)))1)for(var n=1;n"']/g,D=RegExp(z.source),B=RegExp(L.source),F=/<%-([\s\S]+?)%>/g,U=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,X=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,G=RegExp(q.source),V=/^\s+/,Y=/\s/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Z=/\{\n\/\* \[wrapped with (.+)\] \*/,K=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,ot=/^[-+]0x[0-9a-f]+$/i,it=/^0b[01]+$/i,at=/^\[object .+?Constructor\]$/,ut=/^0o[0-7]+$/i,ct=/^(?:0|[1-9]\d*)$/,st=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lt=/($^)/,ft=/['\n\r\u2028\u2029\\]/g,dt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ht="[\\ud800-\\udfff]",vt="["+pt+"]",yt="["+dt+"]",mt="\\d+",gt="[\\u2700-\\u27bf]",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",wt="[^\\ud800-\\udfff"+pt+mt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_t="\\ud83c[\\udffb-\\udfff]",xt="[^\\ud800-\\udfff]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",Ot="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",At="(?:"+bt+"|"+wt+")",kt="(?:"+Et+"|"+wt+")",jt="(?:"+yt+"|"+_t+")"+"?",Ct="[\\ufe0e\\ufe0f]?"+jt+("(?:\\u200d(?:"+[xt,St,Ot].join("|")+")[\\ufe0e\\ufe0f]?"+jt+")*"),Pt="(?:"+[gt,St,Ot].join("|")+")"+Ct,Tt="(?:"+[xt+yt+"?",yt,St,Ot,ht].join("|")+")",Rt=RegExp("['’]","g"),It=RegExp(yt,"g"),Mt=RegExp(_t+"(?="+_t+")|"+Tt+Ct,"g"),Nt=RegExp([Et+"?"+bt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[vt,Et,"$"].join("|")+")",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[vt,Et+At,"$"].join("|")+")",Et+"?"+At+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mt,Pt].join("|"),"g"),zt=RegExp("[\\u200d\\ud800-\\udfff"+dt+"\\ufe0e\\ufe0f]"),Lt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Bt=-1,Ft={};Ft[E]=Ft[A]=Ft[k]=Ft[j]=Ft[C]=Ft[P]=Ft["[object Uint8ClampedArray]"]=Ft[T]=Ft[R]=!0,Ft[c]=Ft[s]=Ft[S]=Ft[l]=Ft[O]=Ft[f]=Ft[d]=Ft[p]=Ft[v]=Ft[y]=Ft[m]=Ft[g]=Ft[b]=Ft[w]=Ft[x]=!1;var Ut={};Ut[c]=Ut[s]=Ut[S]=Ut[O]=Ut[l]=Ut[f]=Ut[E]=Ut[A]=Ut[k]=Ut[j]=Ut[C]=Ut[v]=Ut[y]=Ut[m]=Ut[g]=Ut[b]=Ut[w]=Ut[_]=Ut[P]=Ut["[object Uint8ClampedArray]"]=Ut[T]=Ut[R]=!0,Ut[d]=Ut[p]=Ut[x]=!1;var $t={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Wt=parseFloat,Ht=parseInt,Xt="object"==typeof t&&t&&t.Object===Object&&t,qt="object"==typeof self&&self&&self.Object===Object&&self,Gt=Xt||qt||Function("return this")(),Vt=e&&!e.nodeType&&e,Yt=Vt&&"object"==typeof r&&r&&!r.nodeType&&r,Jt=Yt&&Yt.exports===Vt,Zt=Jt&&Xt.process,Kt=function(){try{var t=Yt&&Yt.require&&Yt.require("util").types;return t||Zt&&Zt.binding&&Zt.binding("util")}catch(t){}}(),Qt=Kt&&Kt.isArrayBuffer,te=Kt&&Kt.isDate,ee=Kt&&Kt.isMap,ne=Kt&&Kt.isRegExp,re=Kt&&Kt.isSet,oe=Kt&&Kt.isTypedArray;function ie(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ae(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o-1}function de(t,e,n){for(var r=-1,o=null==t?0:t.length;++r-1;);return n}function Ne(t,e){for(var n=t.length;n--&&_e(e,t[n],0)>-1;);return n}function ze(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var Le=Ae({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),De=Ae({"&":"&","<":"<",">":">",'"':""","'":"'"});function Be(t){return"\\"+$t[t]}function Fe(t){return zt.test(t)}function Ue(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function $e(t,e){return function(n){return t(e(n))}}function We(t,e){for(var n=-1,r=t.length,o=0,i=[];++n",""":'"',"'":"'"});var Je=function t(e){var n,r=(e=null==e?Gt:Je.defaults(Gt.Object(),e,Je.pick(Gt,Dt))).Array,o=e.Date,Y=e.Error,dt=e.Function,pt=e.Math,ht=e.Object,vt=e.RegExp,yt=e.String,mt=e.TypeError,gt=r.prototype,bt=dt.prototype,wt=ht.prototype,_t=e["__core-js_shared__"],xt=bt.toString,St=wt.hasOwnProperty,Ot=0,Et=(n=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",At=wt.toString,kt=xt.call(ht),jt=Gt._,Ct=vt("^"+xt.call(St).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pt=Jt?e.Buffer:void 0,Tt=e.Symbol,Mt=e.Uint8Array,zt=Pt?Pt.allocUnsafe:void 0,$t=$e(ht.getPrototypeOf,ht),Xt=ht.create,qt=wt.propertyIsEnumerable,Vt=gt.splice,Yt=Tt?Tt.isConcatSpreadable:void 0,Zt=Tt?Tt.iterator:void 0,Kt=Tt?Tt.toStringTag:void 0,ge=function(){try{var t=ei(ht,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ae=e.clearTimeout!==Gt.clearTimeout&&e.clearTimeout,Ze=o&&o.now!==Gt.Date.now&&o.now,Ke=e.setTimeout!==Gt.setTimeout&&e.setTimeout,Qe=pt.ceil,tn=pt.floor,en=ht.getOwnPropertySymbols,nn=Pt?Pt.isBuffer:void 0,rn=e.isFinite,on=gt.join,an=$e(ht.keys,ht),un=pt.max,cn=pt.min,sn=o.now,ln=e.parseInt,fn=pt.random,dn=gt.reverse,pn=ei(e,"DataView"),hn=ei(e,"Map"),vn=ei(e,"Promise"),yn=ei(e,"Set"),mn=ei(e,"WeakMap"),gn=ei(ht,"create"),bn=mn&&new mn,wn={},_n=ji(pn),xn=ji(hn),Sn=ji(vn),On=ji(yn),En=ji(mn),An=Tt?Tt.prototype:void 0,kn=An?An.valueOf:void 0,jn=An?An.toString:void 0;function Cn(t){if(Xa(t)&&!Ma(t)&&!(t instanceof In)){if(t instanceof Rn)return t;if(St.call(t,"__wrapped__"))return Ci(t)}return new Rn(t)}var Pn=function(){function t(){}return function(e){if(!Ha(e))return{};if(Xt)return Xt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function Tn(){}function Rn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function In(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Mn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Zn(t,e,n,r,o,i){var a,u=1&e,s=2&e,d=4&e;if(n&&(a=o?n(t,r,o,i):n(t)),void 0!==a)return a;if(!Ha(t))return t;var x=Ma(t);if(x){if(a=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&St.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!u)return bo(t,a)}else{var I=oi(t),M=I==p||I==h;if(Da(t))return po(t,u);if(I==m||I==c||M&&!o){if(a=s||M?{}:ai(t),!u)return s?function(t,e){return wo(t,ri(t),e)}(t,function(t,e){return t&&wo(e,xu(e),t)}(a,t)):function(t,e){return wo(t,ni(t),e)}(t,Gn(a,t))}else{if(!Ut[I])return o?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case S:return ho(t);case l:case f:return new r(+t);case O:return function(t,e){var n=e?ho(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case E:case A:case k:case j:case C:case P:case"[object Uint8ClampedArray]":case T:case R:return vo(t,n);case v:return new r;case y:case w:return new r(t);case g:return function(t){var e=new t.constructor(t.source,rt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case b:return new r;case _:return o=t,kn?ht(kn.call(o)):{}}var o}(t,I,u)}}i||(i=new Dn);var N=i.get(t);if(N)return N;i.set(t,a),Ja(t)?t.forEach((function(r){a.add(Zn(r,e,n,r,t,i))})):qa(t)&&t.forEach((function(r,o){a.set(o,Zn(r,e,n,o,t,i))}));var z=x?void 0:(d?s?Vo:Go:s?xu:_u)(t);return ue(z||t,(function(r,o){z&&(r=t[o=r]),Hn(a,o,Zn(r,e,n,o,t,i))})),a}function Kn(t,e,n){var r=n.length;if(null==t)return!r;for(t=ht(t);r--;){var o=n[r],i=e[o],a=t[o];if(void 0===a&&!(o in t)||!i(a))return!1}return!0}function Qn(t,e,n){if("function"!=typeof t)throw new mt(i);return _i((function(){t.apply(void 0,n)}),e)}function tr(t,e,n,r){var o=-1,i=fe,a=!0,u=t.length,c=[],s=e.length;if(!u)return c;n&&(e=pe(e,Te(n))),r?(i=de,a=!1):e.length>=200&&(i=Ie,a=!1,e=new Ln(e));t:for(;++o-1},Nn.prototype.set=function(t,e){var n=this.__data__,r=Xn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Mn,map:new(hn||Nn),string:new Mn}},zn.prototype.delete=function(t){var e=Qo(this,t).delete(t);return this.size-=e?1:0,e},zn.prototype.get=function(t){return Qo(this,t).get(t)},zn.prototype.has=function(t){return Qo(this,t).has(t)},zn.prototype.set=function(t,e){var n=Qo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Ln.prototype.add=Ln.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Ln.prototype.has=function(t){return this.__data__.has(t)},Dn.prototype.clear=function(){this.__data__=new Nn,this.size=0},Dn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Dn.prototype.get=function(t){return this.__data__.get(t)},Dn.prototype.has=function(t){return this.__data__.has(t)},Dn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Nn){var r=n.__data__;if(!hn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new zn(r)}return n.set(t,e),this.size=n.size,this};var er=So(sr),nr=So(lr,!0);function rr(t,e){var n=!0;return er(t,(function(t,r,o){return n=!!e(t,r,o)})),n}function or(t,e,n){for(var r=-1,o=t.length;++r0&&n(u)?e>1?ar(u,e-1,n,r,o):he(o,u):r||(o[o.length]=u)}return o}var ur=Oo(),cr=Oo(!0);function sr(t,e){return t&&ur(t,e,_u)}function lr(t,e){return t&&cr(t,e,_u)}function fr(t,e){return le(e,(function(e){return Ua(t[e])}))}function dr(t,e){for(var n=0,r=(e=co(e,t)).length;null!=t&&ne}function yr(t,e){return null!=t&&St.call(t,e)}function mr(t,e){return null!=t&&e in ht(t)}function gr(t,e,n){for(var o=n?de:fe,i=t[0].length,a=t.length,u=a,c=r(a),s=1/0,l=[];u--;){var f=t[u];u&&e&&(f=pe(f,Te(e))),s=cn(f.length,s),c[u]=!n&&(e||i>=120&&f.length>=120)?new Ln(u&&f):void 0}f=t[0];var d=-1,p=c[0];t:for(;++d=u)return c;var s=n[r];return c*("desc"==s?-1:1)}}return t.index-e.index}(t,e,n)}))}function Mr(t,e,n){for(var r=-1,o=e.length,i={};++r-1;)u!==t&&Vt.call(u,c,1),Vt.call(t,c,1);return t}function zr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;ci(o)?Vt.call(t,o,1):to(t,o)}}return t}function Lr(t,e){return t+tn(fn()*(e-t+1))}function Dr(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=tn(e/2))&&(t+=t)}while(e);return n}function Br(t,e){return xi(yi(t,e,Gu),t+"")}function Fr(t){return Fn(Pu(t))}function Ur(t,e){var n=Pu(t);return Ei(n,Jn(e,0,n.length))}function $r(t,e,n,r){if(!Ha(t))return t;for(var o=-1,i=(e=co(e,t)).length,a=i-1,u=t;null!=u&&++oi?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=r(i);++o>>1,a=t[i];null!==a&&!Ka(a)&&(n?a<=e:a=200){var s=e?null:Bo(t);if(s)return He(s);a=!1,o=Ie,c=new Ln}else c=e?[]:u;t:for(;++r=r?t:qr(t,e,n)}var fo=Ae||function(t){return Gt.clearTimeout(t)};function po(t,e){if(e)return t.slice();var n=t.length,r=zt?zt(n):new t.constructor(n);return t.copy(r),r}function ho(t){var e=new t.constructor(t.byteLength);return new Mt(e).set(new Mt(t)),e}function vo(t,e){var n=e?ho(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function yo(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t==t,i=Ka(t),a=void 0!==e,u=null===e,c=e==e,s=Ka(e);if(!u&&!s&&!i&&t>e||i&&a&&c&&!u&&!s||r&&a&&c||!n&&c||!o)return 1;if(!r&&!i&&!s&&t1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,a&&si(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),e=ht(e);++r-1?o[i?e[a]:a]:void 0}}function Co(t){return qo((function(e){var n=e.length,r=n,o=Rn.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new mt(i);if(o&&!u&&"wrapper"==Jo(a))var u=new Rn([],!0)}for(r=u?r:n;++r1&&b.reverse(),f&&su))return!1;var s=i.get(t),l=i.get(e);if(s&&l)return s==e&&l==t;var f=-1,d=!0,p=2&n?new Ln:void 0;for(i.set(t,e),i.set(e,t);++f-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(J,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return ue(u,(function(n){var r="_."+n[0];e&n[1]&&!fe(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(Z);return e?e[1].split(K):[]}(r),n)))}function Oi(t){var e=0,n=0;return function(){var r=sn(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Ei(t,e){var n=-1,r=t.length,o=r-1;for(e=void 0===e?r:e;++n1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Yi(t,n)}));function na(t){var e=Cn(t);return e.__chain__=!0,e}function ra(t,e){return e(t)}var oa=qo((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return Yn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof In&&ci(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ra,args:[o],thisArg:void 0}),new Rn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(o)}));var ia=_o((function(t,e,n){St.call(t,n)?++t[n]:Vn(t,n,1)}));var aa=jo(Ii),ua=jo(Mi);function ca(t,e){return(Ma(t)?ue:er)(t,Ko(e,3))}function sa(t,e){return(Ma(t)?ce:nr)(t,Ko(e,3))}var la=_o((function(t,e,n){St.call(t,n)?t[n].push(e):Vn(t,n,[e])}));var fa=Br((function(t,e,n){var o=-1,i="function"==typeof e,a=za(t)?r(t.length):[];return er(t,(function(t){a[++o]=i?ie(e,t,n):br(t,e,n)})),a})),da=_o((function(t,e,n){Vn(t,n,e)}));function pa(t,e){return(Ma(t)?pe:jr)(t,Ko(e,3))}var ha=_o((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var va=Br((function(t,e){if(null==t)return[];var n=e.length;return n>1&&si(t,e[0],e[1])?e=[]:n>2&&si(e[0],e[1],e[2])&&(e=[e[0]]),Ir(t,ar(e,1),[])})),ya=Ze||function(){return Gt.Date.now()};function ma(t,e,n){return e=n?void 0:e,Uo(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function ga(t,e){var n;if("function"!=typeof e)throw new mt(i);return t=ou(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var ba=Br((function(t,e,n){var r=1;if(n.length){var o=We(n,Zo(ba));r|=32}return Uo(t,r,e,n,o)})),wa=Br((function(t,e,n){var r=3;if(n.length){var o=We(n,Zo(wa));r|=32}return Uo(e,r,t,n,o)}));function _a(t,e,n){var r,o,a,u,c,s,l=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw new mt(i);function h(e){var n=r,i=o;return r=o=void 0,l=e,u=t.apply(i,n)}function v(t){return l=t,c=_i(m,e),f?h(t):u}function y(t){var n=t-s;return void 0===s||n>=e||n<0||d&&t-l>=a}function m(){var t=ya();if(y(t))return g(t);c=_i(m,function(t){var n=e-(t-s);return d?cn(n,a-(t-l)):n}(t))}function g(t){return c=void 0,p&&r?h(t):(r=o=void 0,u)}function b(){var t=ya(),n=y(t);if(r=arguments,o=this,s=t,n){if(void 0===c)return v(s);if(d)return fo(c),c=_i(m,e),h(s)}return void 0===c&&(c=_i(m,e)),u}return e=au(e)||0,Ha(n)&&(f=!!n.leading,a=(d="maxWait"in n)?un(au(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){void 0!==c&&fo(c),l=0,r=s=o=c=void 0},b.flush=function(){return void 0===c?u:g(ya())},b}var xa=Br((function(t,e){return Qn(t,1,e)})),Sa=Br((function(t,e,n){return Qn(t,au(e)||0,n)}));function Oa(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new mt(i);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Oa.Cache||zn),n}function Ea(t){if("function"!=typeof t)throw new mt(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Oa.Cache=zn;var Aa=so((function(t,e){var n=(e=1==e.length&&Ma(e[0])?pe(e[0],Te(Ko())):pe(ar(e,1),Te(Ko()))).length;return Br((function(r){for(var o=-1,i=cn(r.length,n);++o=e})),Ia=wr(function(){return arguments}())?wr:function(t){return Xa(t)&&St.call(t,"callee")&&!qt.call(t,"callee")},Ma=r.isArray,Na=Qt?Te(Qt):function(t){return Xa(t)&&hr(t)==S};function za(t){return null!=t&&Wa(t.length)&&!Ua(t)}function La(t){return Xa(t)&&za(t)}var Da=nn||ac,Ba=te?Te(te):function(t){return Xa(t)&&hr(t)==f};function Fa(t){if(!Xa(t))return!1;var e=hr(t);return e==d||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Va(t)}function Ua(t){if(!Ha(t))return!1;var e=hr(t);return e==p||e==h||"[object AsyncFunction]"==e||"[object Proxy]"==e}function $a(t){return"number"==typeof t&&t==ou(t)}function Wa(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Ha(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Xa(t){return null!=t&&"object"==typeof t}var qa=ee?Te(ee):function(t){return Xa(t)&&oi(t)==v};function Ga(t){return"number"==typeof t||Xa(t)&&hr(t)==y}function Va(t){if(!Xa(t)||hr(t)!=m)return!1;var e=$t(t);if(null===e)return!0;var n=St.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&xt.call(n)==kt}var Ya=ne?Te(ne):function(t){return Xa(t)&&hr(t)==g};var Ja=re?Te(re):function(t){return Xa(t)&&oi(t)==b};function Za(t){return"string"==typeof t||!Ma(t)&&Xa(t)&&hr(t)==w}function Ka(t){return"symbol"==typeof t||Xa(t)&&hr(t)==_}var Qa=oe?Te(oe):function(t){return Xa(t)&&Wa(t.length)&&!!Ft[hr(t)]};var tu=zo(kr),eu=zo((function(t,e){return t<=e}));function nu(t){if(!t)return[];if(za(t))return Za(t)?Ge(t):bo(t);if(Zt&&t[Zt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Zt]());var e=oi(t);return(e==v?Ue:e==b?He:Pu)(t)}function ru(t){return t?(t=au(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ou(t){var e=ru(t),n=e%1;return e==e?n?e-n:e:0}function iu(t){return t?Jn(ou(t),0,4294967295):0}function au(t){if("number"==typeof t)return t;if(Ka(t))return NaN;if(Ha(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ha(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Pe(t);var n=it.test(t);return n||ut.test(t)?Ht(t.slice(2),n?2:8):ot.test(t)?NaN:+t}function uu(t){return wo(t,xu(t))}function cu(t){return null==t?"":Kr(t)}var su=xo((function(t,e){if(pi(e)||za(e))wo(e,_u(e),t);else for(var n in e)St.call(e,n)&&Hn(t,n,e[n])})),lu=xo((function(t,e){wo(e,xu(e),t)})),fu=xo((function(t,e,n,r){wo(e,xu(e),t,r)})),du=xo((function(t,e,n,r){wo(e,_u(e),t,r)})),pu=qo(Yn);var hu=Br((function(t,e){t=ht(t);var n=-1,r=e.length,o=r>2?e[2]:void 0;for(o&&si(e[0],e[1],o)&&(r=1);++n1),e})),wo(t,Vo(t),n),r&&(n=Zn(n,7,Ho));for(var o=e.length;o--;)to(n,e[o]);return n}));var Au=qo((function(t,e){return null==t?{}:function(t,e){return Mr(t,e,(function(e,n){return mu(t,n)}))}(t,e)}));function ku(t,e){if(null==t)return{};var n=pe(Vo(t),(function(t){return[t]}));return e=Ko(e),Mr(t,n,(function(t,n){return e(t,n[0])}))}var ju=Fo(_u),Cu=Fo(xu);function Pu(t){return null==t?[]:Re(t,_u(t))}var Tu=Ao((function(t,e,n){return e=e.toLowerCase(),t+(n?Ru(e):e)}));function Ru(t){return Fu(cu(t).toLowerCase())}function Iu(t){return(t=cu(t))&&t.replace(st,Le).replace(It,"")}var Mu=Ao((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Nu=Ao((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),zu=Eo("toLowerCase");var Lu=Ao((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Du=Ao((function(t,e,n){return t+(n?" ":"")+Fu(e)}));var Bu=Ao((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Fu=Eo("toUpperCase");function Uu(t,e,n){return t=cu(t),void 0===(e=n?void 0:e)?function(t){return Lt.test(t)}(t)?function(t){return t.match(Nt)||[]}(t):function(t){return t.match(Q)||[]}(t):t.match(e)||[]}var $u=Br((function(t,e){try{return ie(t,void 0,e)}catch(t){return Fa(t)?t:new Y(t)}})),Wu=qo((function(t,e){return ue(e,(function(e){e=ki(e),Vn(t,e,ba(t[e],t))})),t}));function Hu(t){return function(){return t}}var Xu=Co(),qu=Co(!0);function Gu(t){return t}function Vu(t){return Or("function"==typeof t?t:Zn(t,1))}var Yu=Br((function(t,e){return function(n){return br(n,t,e)}})),Ju=Br((function(t,e){return function(n){return br(t,n,e)}}));function Zu(t,e,n){var r=_u(e),o=fr(e,r);null!=n||Ha(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=fr(e,_u(e)));var i=!(Ha(n)&&"chain"in n&&!n.chain),a=Ua(t);return ue(o,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__),o=n.__actions__=bo(this.__actions__);return o.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,he([this.value()],arguments))})})),t}function Ku(){}var Qu=Io(pe),tc=Io(se),ec=Io(me);function nc(t){return li(t)?Ee(ki(t)):function(t){return function(e){return dr(e,t)}}(t)}var rc=No(),oc=No(!0);function ic(){return[]}function ac(){return!1}var uc=Ro((function(t,e){return t+e}),0),cc=Do("ceil"),sc=Ro((function(t,e){return t/e}),1),lc=Do("floor");var fc,dc=Ro((function(t,e){return t*e}),1),pc=Do("round"),hc=Ro((function(t,e){return t-e}),0);return Cn.after=function(t,e){if("function"!=typeof e)throw new mt(i);return t=ou(t),function(){if(--t<1)return e.apply(this,arguments)}},Cn.ary=ma,Cn.assign=su,Cn.assignIn=lu,Cn.assignInWith=fu,Cn.assignWith=du,Cn.at=pu,Cn.before=ga,Cn.bind=ba,Cn.bindAll=Wu,Cn.bindKey=wa,Cn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ma(t)?t:[t]},Cn.chain=na,Cn.chunk=function(t,e,n){e=(n?si(t,e,n):void 0===e)?1:un(ou(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var i=0,a=0,u=r(Qe(o/e));io?0:o+n),(r=void 0===r||r>o?o:ou(r))<0&&(r+=o),r=n>r?0:iu(r);n>>0)?(t=cu(t))&&("string"==typeof e||null!=e&&!Ya(e))&&!(e=Kr(e))&&Fe(t)?lo(Ge(t),0,n):t.split(e,n):[]},Cn.spread=function(t,e){if("function"!=typeof t)throw new mt(i);return e=null==e?0:un(ou(e),0),Br((function(n){var r=n[e],o=lo(n,0,e);return r&&he(o,r),ie(t,this,o)}))},Cn.tail=function(t){var e=null==t?0:t.length;return e?qr(t,1,e):[]},Cn.take=function(t,e,n){return t&&t.length?qr(t,0,(e=n||void 0===e?1:ou(e))<0?0:e):[]},Cn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?qr(t,(e=r-(e=n||void 0===e?1:ou(e)))<0?0:e,r):[]},Cn.takeRightWhile=function(t,e){return t&&t.length?no(t,Ko(e,3),!1,!0):[]},Cn.takeWhile=function(t,e){return t&&t.length?no(t,Ko(e,3)):[]},Cn.tap=function(t,e){return e(t),t},Cn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new mt(i);return Ha(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),_a(t,e,{leading:r,maxWait:e,trailing:o})},Cn.thru=ra,Cn.toArray=nu,Cn.toPairs=ju,Cn.toPairsIn=Cu,Cn.toPath=function(t){return Ma(t)?pe(t,ki):Ka(t)?[t]:bo(Ai(cu(t)))},Cn.toPlainObject=uu,Cn.transform=function(t,e,n){var r=Ma(t),o=r||Da(t)||Qa(t);if(e=Ko(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:Ha(t)&&Ua(i)?Pn($t(t)):{}}return(o?ue:sr)(t,(function(t,r,o){return e(n,t,r,o)})),n},Cn.unary=function(t){return ma(t,1)},Cn.union=Xi,Cn.unionBy=qi,Cn.unionWith=Gi,Cn.uniq=function(t){return t&&t.length?Qr(t):[]},Cn.uniqBy=function(t,e){return t&&t.length?Qr(t,Ko(e,2)):[]},Cn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Qr(t,void 0,e):[]},Cn.unset=function(t,e){return null==t||to(t,e)},Cn.unzip=Vi,Cn.unzipWith=Yi,Cn.update=function(t,e,n){return null==t?t:eo(t,e,uo(n))},Cn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:eo(t,e,uo(n),r)},Cn.values=Pu,Cn.valuesIn=function(t){return null==t?[]:Re(t,xu(t))},Cn.without=Ji,Cn.words=Uu,Cn.wrap=function(t,e){return ka(uo(e),t)},Cn.xor=Zi,Cn.xorBy=Ki,Cn.xorWith=Qi,Cn.zip=ta,Cn.zipObject=function(t,e){return io(t||[],e||[],Hn)},Cn.zipObjectDeep=function(t,e){return io(t||[],e||[],$r)},Cn.zipWith=ea,Cn.entries=ju,Cn.entriesIn=Cu,Cn.extend=lu,Cn.extendWith=fu,Zu(Cn,Cn),Cn.add=uc,Cn.attempt=$u,Cn.camelCase=Tu,Cn.capitalize=Ru,Cn.ceil=cc,Cn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=au(n))==n?n:0),void 0!==e&&(e=(e=au(e))==e?e:0),Jn(au(t),e,n)},Cn.clone=function(t){return Zn(t,4)},Cn.cloneDeep=function(t){return Zn(t,5)},Cn.cloneDeepWith=function(t,e){return Zn(t,5,e="function"==typeof e?e:void 0)},Cn.cloneWith=function(t,e){return Zn(t,4,e="function"==typeof e?e:void 0)},Cn.conformsTo=function(t,e){return null==e||Kn(t,e,_u(e))},Cn.deburr=Iu,Cn.defaultTo=function(t,e){return null==t||t!=t?e:t},Cn.divide=sc,Cn.endsWith=function(t,e,n){t=cu(t),e=Kr(e);var r=t.length,o=n=void 0===n?r:Jn(ou(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},Cn.eq=Pa,Cn.escape=function(t){return(t=cu(t))&&B.test(t)?t.replace(L,De):t},Cn.escapeRegExp=function(t){return(t=cu(t))&&G.test(t)?t.replace(q,"\\$&"):t},Cn.every=function(t,e,n){var r=Ma(t)?se:rr;return n&&si(t,e,n)&&(e=void 0),r(t,Ko(e,3))},Cn.find=aa,Cn.findIndex=Ii,Cn.findKey=function(t,e){return be(t,Ko(e,3),sr)},Cn.findLast=ua,Cn.findLastIndex=Mi,Cn.findLastKey=function(t,e){return be(t,Ko(e,3),lr)},Cn.floor=lc,Cn.forEach=ca,Cn.forEachRight=sa,Cn.forIn=function(t,e){return null==t?t:ur(t,Ko(e,3),xu)},Cn.forInRight=function(t,e){return null==t?t:cr(t,Ko(e,3),xu)},Cn.forOwn=function(t,e){return t&&sr(t,Ko(e,3))},Cn.forOwnRight=function(t,e){return t&&lr(t,Ko(e,3))},Cn.get=yu,Cn.gt=Ta,Cn.gte=Ra,Cn.has=function(t,e){return null!=t&&ii(t,e,yr)},Cn.hasIn=mu,Cn.head=zi,Cn.identity=Gu,Cn.includes=function(t,e,n,r){t=za(t)?t:Pu(t),n=n&&!r?ou(n):0;var o=t.length;return n<0&&(n=un(o+n,0)),Za(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&_e(t,e,n)>-1},Cn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ou(n);return o<0&&(o=un(r+o,0)),_e(t,e,o)},Cn.inRange=function(t,e,n){return e=ru(e),void 0===n?(n=e,e=0):n=ru(n),function(t,e,n){return t>=cn(e,n)&&t=-9007199254740991&&t<=9007199254740991},Cn.isSet=Ja,Cn.isString=Za,Cn.isSymbol=Ka,Cn.isTypedArray=Qa,Cn.isUndefined=function(t){return void 0===t},Cn.isWeakMap=function(t){return Xa(t)&&oi(t)==x},Cn.isWeakSet=function(t){return Xa(t)&&"[object WeakSet]"==hr(t)},Cn.join=function(t,e){return null==t?"":on.call(t,e)},Cn.kebabCase=Mu,Cn.last=Fi,Cn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=ou(n))<0?un(r+o,0):cn(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):we(t,Se,o,!0)},Cn.lowerCase=Nu,Cn.lowerFirst=zu,Cn.lt=tu,Cn.lte=eu,Cn.max=function(t){return t&&t.length?or(t,Gu,vr):void 0},Cn.maxBy=function(t,e){return t&&t.length?or(t,Ko(e,2),vr):void 0},Cn.mean=function(t){return Oe(t,Gu)},Cn.meanBy=function(t,e){return Oe(t,Ko(e,2))},Cn.min=function(t){return t&&t.length?or(t,Gu,kr):void 0},Cn.minBy=function(t,e){return t&&t.length?or(t,Ko(e,2),kr):void 0},Cn.stubArray=ic,Cn.stubFalse=ac,Cn.stubObject=function(){return{}},Cn.stubString=function(){return""},Cn.stubTrue=function(){return!0},Cn.multiply=dc,Cn.nth=function(t,e){return t&&t.length?Rr(t,ou(e)):void 0},Cn.noConflict=function(){return Gt._===this&&(Gt._=jt),this},Cn.noop=Ku,Cn.now=ya,Cn.pad=function(t,e,n){t=cu(t);var r=(e=ou(e))?qe(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return Mo(tn(o),n)+t+Mo(Qe(o),n)},Cn.padEnd=function(t,e,n){t=cu(t);var r=(e=ou(e))?qe(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var o=fn();return cn(t+o*(e-t+Wt("1e-"+((o+"").length-1))),e)}return Lr(t,e)},Cn.reduce=function(t,e,n){var r=Ma(t)?ve:ke,o=arguments.length<3;return r(t,Ko(e,4),n,o,er)},Cn.reduceRight=function(t,e,n){var r=Ma(t)?ye:ke,o=arguments.length<3;return r(t,Ko(e,4),n,o,nr)},Cn.repeat=function(t,e,n){return e=(n?si(t,e,n):void 0===e)?1:ou(e),Dr(cu(t),e)},Cn.replace=function(){var t=arguments,e=cu(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Cn.result=function(t,e,n){var r=-1,o=(e=co(e,t)).length;for(o||(o=1,t=void 0);++r9007199254740991)return[];var n=4294967295,r=cn(t,4294967295);t-=4294967295;for(var o=Ce(r,e=Ko(e));++n=i)return t;var u=n-qe(r);if(u<1)return r;var c=a?lo(a,0,u).join(""):t.slice(0,u);if(void 0===o)return c+r;if(a&&(u+=c.length-u),Ya(o)){if(t.slice(u).search(o)){var s,l=c;for(o.global||(o=vt(o.source,cu(rt.exec(o))+"g")),o.lastIndex=0;s=o.exec(l);)var f=s.index;c=c.slice(0,void 0===f?u:f)}}else if(t.indexOf(Kr(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+r},Cn.unescape=function(t){return(t=cu(t))&&D.test(t)?t.replace(z,Ye):t},Cn.uniqueId=function(t){var e=++Ot;return cu(t)+e},Cn.upperCase=Bu,Cn.upperFirst=Fu,Cn.each=ca,Cn.eachRight=sa,Cn.first=zi,Zu(Cn,(fc={},sr(Cn,(function(t,e){St.call(Cn.prototype,e)||(fc[e]=t)})),fc),{chain:!1}),Cn.VERSION="4.17.21",ue(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Cn[t].placeholder=Cn})),ue(["drop","take"],(function(t,e){In.prototype[t]=function(n){n=void 0===n?1:un(ou(n),0);var r=this.__filtered__&&!e?new In(this):this.clone();return r.__filtered__?r.__takeCount__=cn(n,r.__takeCount__):r.__views__.push({size:cn(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},In.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),ue(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;In.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Ko(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),ue(["head","last"],(function(t,e){var n="take"+(e?"Right":"");In.prototype[t]=function(){return this[n](1).value()[0]}})),ue(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");In.prototype[t]=function(){return this.__filtered__?new In(this):this[n](1)}})),In.prototype.compact=function(){return this.filter(Gu)},In.prototype.find=function(t){return this.filter(t).head()},In.prototype.findLast=function(t){return this.reverse().find(t)},In.prototype.invokeMap=Br((function(t,e){return"function"==typeof t?new In(this):this.map((function(n){return br(n,t,e)}))})),In.prototype.reject=function(t){return this.filter(Ea(Ko(t)))},In.prototype.slice=function(t,e){t=ou(t);var n=this;return n.__filtered__&&(t>0||e<0)?new In(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=ou(e))<0?n.dropRight(-e):n.take(e-t)),n)},In.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},In.prototype.toArray=function(){return this.take(4294967295)},sr(In.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Cn[r?"take"+("last"==e?"Right":""):e],i=r||/^find/.test(e);o&&(Cn.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,u=e instanceof In,c=a[0],s=u||Ma(e),l=function(t){var e=o.apply(Cn,he([t],a));return r&&f?e[0]:e};s&&n&&"function"==typeof c&&1!=c.length&&(u=s=!1);var f=this.__chain__,d=!!this.__actions__.length,p=i&&!f,h=u&&!d;if(!i&&s){e=h?e:new In(this);var v=t.apply(e,a);return v.__actions__.push({func:ra,args:[l],thisArg:void 0}),new Rn(v,f)}return p&&h?t.apply(this,a):(v=this.thru(l),p?r?v.value()[0]:v.value():v)})})),ue(["pop","push","shift","sort","splice","unshift"],(function(t){var e=gt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Cn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(Ma(o)?o:[],t)}return this[n]((function(n){return e.apply(Ma(n)?n:[],t)}))}})),sr(In.prototype,(function(t,e){var n=Cn[e];if(n){var r=n.name+"";St.call(wn,r)||(wn[r]=[]),wn[r].push({name:e,func:n})}})),wn[Po(void 0,2).name]=[{name:"wrapper",func:void 0}],In.prototype.clone=function(){var t=new In(this.__wrapped__);return t.__actions__=bo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=bo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=bo(this.__views__),t},In.prototype.reverse=function(){if(this.__filtered__){var t=new In(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},In.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ma(t),r=e<0,o=n?t.length:0,i=function(t,e,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Cn.prototype.plant=function(t){for(var e,n=this;n instanceof Tn;){var r=Ci(n);r.__index__=0,r.__values__=void 0,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},Cn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof In){var e=t;return this.__actions__.length&&(e=new In(this)),(e=e.reverse()).__actions__.push({func:ra,args:[Hi],thisArg:void 0}),new Rn(e,this.__chain__)}return this.thru(Hi)},Cn.prototype.toJSON=Cn.prototype.valueOf=Cn.prototype.value=function(){return ro(this.__wrapped__,this.__actions__)},Cn.prototype.first=Cn.prototype.head,Zt&&(Cn.prototype[Zt]=function(){return this}),Cn}();Gt._=Je,void 0===(o=function(){return Je}.call(e,n,e,r))||(r.exports=o)}).call(this)}).call(this,n(32),n(33)(t))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(35);"string"==typeof r&&(r=[[t.i,r,""]]);var o={insertAt:"top",hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(e=n(2)(!1)).push([t.i,"\n.settings {\n white-space: nowrap;\n float: right;\n display: flex;\n position: absolute;\n color: #444;\n z-index: 10;\n right: 0;\n top: 0;\n margin-right: 5px;\n margin-top: 5px;\n}\n\n.fadeOut {\n opacity: 0;\n transition: opacity 0.8s;\n}\n\n.fadeIn {\n opacity: 1;\n transition: opacity 0.8s;\n}\n\n.settings_header {\n margin: 5px;\n padding: 5px;\n}\n\n.drawer_toggle {\n background-color: #333333;\n width: 30px;\n height: 30px;\n overflow: hidden;\n border-radius: 10px 0 0 10px;\n cursor: pointer;\n}\n\n.drawer {\n font-family: sans-serif;\n height: fit-content;\n box-shadow: 0 2px 2px -2px rgba(0, 0, 0, .2);\n}\n\n.drawer_content {\n z-index: 1;\n border-radius: 0 0 0 5px;\n}\n\n\n.toggle_part {\n font-family: monospace;\n border-radius: 3px 3px 3px 3px;\n cursor: pointer;\n}\n\n.toggle_part.selected {\n border: 1px solid #2196F3;\n opacity: .8;\n padding-right: 47px;\n padding-left: 47px;\n}\n\n.toggle_part.unselected {\n border: 1px solid #444;\n padding-right: 20px;\n padding-left: 20px;\n}\n\n.toggle_part.unselected:hover {\n border: 1px solid #2196F3;\n color: #2196F3;\n transition: opacity .8s ease-in-out;\n -moz-transition: opacity .8s ease-in-out;\n -webkit-transition: opacity .8s ease-in-out;\n}\n\n.toggle_part.selected:hover {\n opacity: 1;\n transition: opacity .8s ease-in-out;\n -moz-transition: opacity .8s ease-in-out;\n -webkit-transition: opacity .8s ease-in-out;\n\n}\n\n\n",""]),t.exports=e},function(t,e,n){"use strict";n.r(e);var r=n(0),o=n.n(r),i=n(1),a=n.n(i);function u(t){if(Array.isArray(t))return t.map(u).join(" ");switch(t._type){case"Number":return t.number.toString();case"Function":var e=t.arguments.map(u).join(",");return e.length>0?"".concat(t.name,"(").concat(e,")"):"".concat(t.name);case"SymbolIdentifier":return u(t.symbol);default:throw new TypeError("Unimplemented type ".concat(t._type))}}n(14);function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:p,e=arguments.length>1?arguments[1]:void 0;return"APP/NODES/SHOW"===e.type?f(f({},t),{},{shownNodes:t.shownNodes.concat(e.node)}):"APP/NODES/HIDE"===e.type?f(f({},t),{},{shownNodes:t.shownNodes.filter((function(t){return t!==e.node}))}):f({},t)},m=o.a.createContext([]),g=function(){return o.a.useContext(m)},b=function(t){var e=t.children,n=t.initialState,r=t.reducer,i=c(o.a.useReducer(r,n),2),a=i[0],u=i[1];return o.a.createElement(m.Provider,{value:[a,u]},e)};b.propTypes={children:a.a.array,initialState:a.a.object,reducer:a.a.func};var w={ten:{dark:"#3FA7D1",bright:"#3FA7E1"},twenty:{dark:"#a9a9a94a",bright:"#ffffff"},thirty:{dark:"#444",bright:"#F6F4F3"},fourty:{dark:"#3FA7D1",bright:"#3FA7D1"},fifty:{dark:"#3FA7D1"},sixty:{dark:"#F6F4F3"},seventy:{dark:"#000000",bright:"#000000"},highlight:{0:"#d48521",1:"#9a8298",2:"#e0e4ac",3:"#98f4e2",4:"#21d485"},error:{ten:"#EB4A4E",thirty:"#4C191A",sixty:"#FCE8E8"},warn:{ten:"#FF9800",thirty:"#653300",sixty:"#FFF1DF"}},_=o.a.createContext([]),x=function(){return o.a.useContext(_)},S=function(t){var e,n=t.children,r=t.colorPalette,i=r?("ten"in(e=r)&&(w.ten=e.ten),"twenty"in e&&(w.twenty=e.twenty),"thirty"in e&&(w.thirty=e.thirty),"fourty"in e&&(w.fourty=e.fourty),"fifty"in e&&(w.fifty=e.fifty),"sixty"in e&&(w.sixty=e.sixty),"seventy"in e&&(w.seventy=e.seventy),"highlight"in e&&(w.highlight=e.highlight),"error"in e&&(w.error=e.error),"warn"in e&&(w.warn=e.warn),o.a.useContext(_),w):w;return o.a.createElement(_.Provider,{value:i},n)};function O(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=u.length?r:t(e+1,n)}(new Set(r.map((function(t){return t.src}))).size,n);t.forEach((function(t){var r=JSON.stringify(t),i=e.indexOf(r);-1===i?(e.push(JSON.stringify(t)),n.push(o)):(e.splice(i,1),n.splice(i,1))})),i(e.map((function(t,e){var r=JSON.parse(t);return r.color=JSON.parse(n[e]),r})))},i]},e)};function N(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return z(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:st,e=arguments.length>1?arguments[1]:void 0;return"FILTERS/SIGNATURE/ADD"===e.type?ut(ut({},t),{},{activeFilters:t.activeFilters.concat(e.signature)}):e.type===lt?ut(ut({},t),{},{activeFilters:t.activeFilters.filter((function(t){return t!==e.filter}))}):ut({},t)},dt=o.a.createContext([]),pt=function(){return o.a.useContext(dt)},ht=function(t){var e=t.children,n=ot(o.a.useReducer(ft,st),2),r=n[0],i=n[1];return o.a.createElement(dt.Provider,{value:[r,i]},e)};ht.propTypes={children:a.a.element};var vt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o0&&t.staticHeightSpecific,"auto"===e&&t.staticHeightAuto].filter(t=>t).join(" ")}var wt=t=>{var{animateOpacity:e=!1,animationStateClasses:n={},applyInlineTransitions:i=!0,children:a,className:u="",contentClassName:c,delay:s=0,duration:l=500,easing:f="ease",height:d,onHeightAnimationEnd:p,onHeightAnimationStart:h,style:v}=t,y=vt(t,["animateOpacity","animationStateClasses","applyInlineTransitions","children","className","contentClassName","delay","duration","easing","height","onHeightAnimationEnd","onHeightAnimationStart","style"]);const m=Object(r.useRef)(d),g=Object(r.useRef)(null),b=Object(r.useRef)(),w=Object(r.useRef)(),_=Object(r.useRef)(Object.assign(Object.assign({},gt),n)),x="undefined"!=typeof window,S=Object(r.useRef)(!(!x||!window.matchMedia)&&window.matchMedia("(prefers-reduced-motion)").matches),O=S.current?0:s,E=S.current?0:l;let A=d,k="visible";"number"==typeof A?(A=d<0?0:d,k="hidden"):yt(A)&&(A="0%"===d?0:d,k="hidden");const[j,C]=Object(r.useState)(A),[P,T]=Object(r.useState)(k),[R,I]=Object(r.useState)(!1),[M,N]=Object(r.useState)(bt(_.current,d));Object(r.useEffect)(()=>{mt(g.current,j)},[]),Object(r.useEffect)(()=>{if(d!==m.current&&g.current){!function(t,e){0===e&&(null==t?void 0:t.style)&&(t.style.display="")}(g.current,m.current),g.current.style.overflow="hidden";const t=g.current.offsetHeight;g.current.style.overflow="";const e=E+O;let n,r,o,i="hidden";const a="auto"===m.current;"number"==typeof d?(n=d<0?0:d,r=n):yt(d)?(n="0%"===d?0:d,r=n):(n=t,r="auto",i=void 0),a&&(r=n,n=t);const u=[_.current.animating,("auto"===m.current||dm.current)&&_.current.animatingDown,0===r&&_.current.animatingToHeightZero,"auto"===r&&_.current.animatingToHeightAuto,r>0&&_.current.animatingToHeightSpecific].filter(t=>t).join(" "),c=bt(_.current,r);C(n),T("hidden"),I(!a),N(u),clearTimeout(w.current),clearTimeout(b.current),a?(o=!0,w.current=setTimeout(()=>{C(r),T(i),I(o),null==h||h(r)},50),b.current=setTimeout(()=>{I(!1),N(c),mt(g.current,r),null==p||p(r)},e)):(null==h||h(n),w.current=setTimeout(()=>{C(r),T(i),I(!1),N(c),"auto"!==d&&mt(g.current,n),null==p||p(n)},e))}return m.current=d,()=>{clearTimeout(w.current),clearTimeout(b.current)}},[d]);const z=Object.assign(Object.assign({},v),{height:j,overflow:P||(null==v?void 0:v.overflow)});R&&i&&(z.transition=`height ${E}ms ${f} ${O}ms`,(null==v?void 0:v.transition)&&(z.transition=`${v.transition}, ${z.transition}`),z.WebkitTransition=z.transition);const L={};e&&(L.transition=`opacity ${E}ms ${f} ${O}ms`,L.WebkitTransition=L.transition,0===j&&(L.opacity=0));const D=void 0!==y["aria-hidden"]?y["aria-hidden"]:0===d;return o.a.createElement("div",Object.assign({},y,{"aria-hidden":D,className:`${M} ${u}`,style:z}),o.a.createElement("div",{className:c,style:L,ref:g},a))};function _t(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return xt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xt(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n80})))?i((function(t){Math.max(t,Math.max.apply(Math,kt(n.map((function(t){return t.fittingHeight}))))),c(r>t)})):(i((function(t){return Math.max(t,Math.min(80,r))})),c(r>80))}e=n.show_all?r.atoms:r.diff,o.a.useEffect((function(){var t;b(),t=function(){return b()},setTimeout((function(){requestAnimationFrame(t)}))}),[h,n,s,d]),o.a.useEffect((function(){return window.addEventListener("resize",b),function(t){return window.removeEventListener("resize",b)}}));var w=e.filter((function(t){return g(t)})).map((function(t){var e,n,i,a,c,s,f=jt((e=h,n=t.uuid,i="mouse_over_symbol",a=null,c=e.map((function(t){return t.tgt})).indexOf(n),s=e.map((function(t){return t.src})).indexOf(n),-1!==c?(i="mouse_over_symbol mark_symbol",a={backgroundColor:e[c].color}):-1!==s&&(i="mouse_over_symbol mark_symbol"),[i,a]),2),d=f[0],p=f[1];return o.a.createElement("div",{className:d,style:p,onClick:function(e){return function(t,e){t.stopPropagation();var n=r.reason[u(e.symbol)];n.every((function(t){return null!==t}))||(n=r.recursive._graph.nodes.filter((function(t){return t.id.atoms.filter((function(t){return t.uuid==e.uuid})).length>0}))[0].id.reason[u(e.symbol)],y(r.uuid)),v(n.map((function(t){return{src:e.uuid,tgt:t.uuid}})),h)}(e,t)}},o.a.createElement(Rt,{key:JSON.stringify(t),symbolId:t,isSubnode:l}))}));return o.a.createElement("div",{className:"set_container",style:{color:f.thirty.dark}},o.a.createElement("span",{className:"set_value"},w.length>0?w:""))}function Mt(t){var e=t.node,n=jt(B(),2)[1],r=x();return o.a.createElement("div",{className:"recursion_button",onClick:function(t){t.stopPropagation(),n(e.uuid)}},e.recursive?o.a.createElement("div",{className:"recursion_button_text",style:{backgroundColor:r.ten.dark,color:r.sixty.dark}},o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 64 64"},o.a.createElement("path",{fill:"#4d5357",d:"m39.5 61.1l-6.4-8.7h-.8c-5.6 0-10.2-3.6-10.2-8V25h8l-14-19.2L2 25h8v19.4c0 4.7 2.3 9.1 6.6 12.4c4.2 3.3 9.8 5.2 15.8 5.2c2.4 0 4.8-.3 7.1-.9m-7.8-49.5c5.6 0 10.2 3.6 10.2 8v19.5h-8L48 58.3l14-19.2h-8V19.6c0-4.7-2.3-9.1-6.5-12.4C43.3 3.8 37.7 2 31.7 2c-2.5 0-4.9.3-7.2.9l6.4 8.7h.8"}))):null)}function Nt(t){var e=t.setExpandNode,n=x();return o.a.createElement("div",{style:{backgroundColor:n.ten.dark,color:n.sixty.dark},className:"bauchbinde",onClick:function(t){t.stopPropagation(),e(!0)}},o.a.createElement("div",{className:"bauchbinde_text"},o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"9",viewBox:"0 0 24 24"},o.a.createElement("path",{fill:"currentColor",d:"M18 6.41L16.59 5L12 9.58L7.41 5L6 6.41l6 6z"}),o.a.createElement("path",{fill:"currentColor",d:"m18 13l-1.41-1.41L12 16.17l-4.59-4.58L6 13l6 6z"}))))}function zt(t){var e=jt(k(),1)[0],n="node_border mouse_over_shadow ".concat(t.uuid," ").concat(e===t.uuid?"highlighted_node":null);return o.a.useEffect((function(){n="node_border mouse_over_shadow ".concat(t.uuid," ").concat(e===t.uuid?"highlighted_node":null)}),[t.uuid,e]),n}function Lt(t){var e=t.node,n=t.notifyClick,r=t.showMini,i=t.isSubnode,a=jt(o.a.useState(!1),2),u=a[0],c=a[1],s=x(),l=jt(g(),2)[1],f=zt(e),d=jt(o.a.useState(0),2),p=d[0],y=d[1],m=jt(o.a.useState(!1),2),b=m[0],w=m[1],_=jt(Et(),4),S=_[2],O=_[3];o.a.useEffect((function(){return l(v(e.uuid)),function(){l(h(e.uuid))}}),[]),o.a.useEffect((function(){}));var E="".concat(e.uuid,"_animate_height");return o.a.createElement("div",{className:f,style:{backgroundColor:s.sixty.dark,color:s.ten.dark},id:e.uuid,onClick:function(t){t.stopPropagation(),n(e)}},r?o.a.createElement("div",{style:{backgroundColor:s.ten.dark,color:s.ten.dark},className:"mini"}):o.a.createElement("div",{className:"set_too_high"},o.a.createElement(wt,{id:E,duration:500,height:p,onHeightAnimationStart:S,onHeightAnimationEnd:O},o.a.createElement(It,{node:e,setHeight:y,parentID:E,setIsOverflowV:c,expandNode:b,isSubnode:i}),o.a.createElement(Mt,{node:e}))),!r&&u?o.a.createElement(Nt,{setExpandNode:w}):null)}function Dt(t){var e=t.node,n=t.notifyClick,r=t.showMini,i=x(),a=jt(g(),2)[1],u=zt(e);return o.a.useEffect((function(){return a(v(e.uuid)),function(){a(h(e.uuid))}}),[]),o.a.useEffect((function(){})),o.a.createElement("div",{className:u,style:{backgroundColor:i.fourty.dark,color:i.fourty.bright},id:e.uuid,onClick:function(t){t.stopPropagation(),n(e)}},o.a.createElement(Mt,{node:e}),e.recursive._graph.nodes.map((function(t){return t.id})).map((function(t){return o.a.createElement(Lt,{key:t,node:t,notifyClick:n,showMini:r,isSubnode:!0})})))}At.propTypes={children:a.a.element},Rt.propTypes={symbolId:K},It.propTypes={node:et,overflowV:a.a.bool},Lt.propTypes={node:et,notifyClick:a.a.func,showMini:a.a.bool},Dt.propTypes={node:et,notifyClick:a.a.func,showMini:a.a.bool};n(17);function Bt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ft(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ft(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ft(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n/g,">").replace(/\n/g,"
")}})})))}function Wt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ht(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ht(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:Vt,e=arguments.length>1?arguments[1]:void 0;return e.type===Yt?qt(qt({},t),{},{activeMessages:t.activeMessages.concat({text:e.text,level:"error"})}):e.type===Jt?qt(qt({},t),{},{activeMessages:t.activeMessages.concat({text:e.text,level:"warn"})}):qt({},t)};var Qt=o.a.createContext([]),te=function(){return o.a.useContext(Qt)},ee=function(t){var e=t.children,n=Wt(o.a.useReducer(Kt,Vt),2),r=n[0],i=n[1],a=Y(),u=a.state,c=a.backendURL;return o.a.useEffect((function(){var t=!0;return function(t){return fetch("".concat(t("control/warnings"))).then((function(t){if(t.ok)return t.json();throw new Error(t.statusText)}))}(c).catch((function(t){Zt("Failed to get transformations: ".concat(t))})).then((function(e){t&&e.map((function(t){return"WARNING"===(e=t).reason.value?{type:Jt,text:"The program contains a rule that is not supported! The graph shown might be faulty! ".concat(e.ast)}:"FAILURE"===e.reason.value?{type:Yt,text:"The program contains a rule that will cause false behaviour! Remove/Rephrase the following rule: ".concat(e.ast)}:void 0;var e})).map((function(t){return i(t)}))})),function(){return t=!1}}),[u.backend_url]),o.a.createElement(Qt.Provider,{value:[r,i]},e)};function ne(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return re(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return re(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function re(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:ue,e=arguments.length>1?arguments[1]:void 0;return"APP/TRANSFORMATIONS/ADD"===e.type?ie(ie({},t),{},{transformations:t.transformations.concat({transformation:e.t,shown:!0})}):"APP/TRANSFORMATIONS/ONLY"===e.type?ie(ie({},t),{},{transformations:t.transformations.map((function(t){return t.transformation.id!==e.t.id?{transformation:t.transformation,shown:!1}:{transformation:t.transformation,shown:!0}}))}):"APP/TRANSFORMATIONS/SHOW"===e.type?ie(ie({},t),{},{transformations:t.transformations.map((function(t){return t.transformation===e.t?{transformation:t.transformation,shown:!0}:t}))}):"APP/TRANSFORMATIONS/HIDE"===e.type?ie(ie({},t),{},{transformations:t.transformations.map((function(t){return t.transformation===e.t?{transformation:t.transformation,shown:!1}:t}))}):"APP/TRANSFORMATIONS/TOGGLE"===e.type?ie(ie({},t),{},{transformations:t.transformations.map((function(t){return t.transformation===e.t?{transformation:t.transformation,shown:!t.shown}:t}))}):ie({},t)},le=function(t){var e=t.children,n=ne(te(),2)[1],r=Y(),i=r.state,a=r.backendURL,u=ne(o.a.useReducer(se,ue),2),c=u[0],s=u[1];return o.a.useEffect((function(){var t=!0;return function(t){return fetch("".concat(t("graph/transformations"))).then((function(t){if(t.ok)return t.json();throw new Error(t.statusText)}))}(a).catch((function(t){n(Zt("Failed to get transformations: ".concat(t)))})).then((function(e){t&&e.map((function(t){return s(function(t){return{type:"APP/TRANSFORMATIONS/ADD",t:t}}(t))}))})),function(){return t=!1}}),[i.backend_url]),o.a.createElement(ce.Provider,{value:{state:c,dispatch:s}},e)},fe=function(){return o.a.useContext(ce)};function de(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return pe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pe(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt?e.activeTargets.push(n):e.skippedTargets.push(n))}))}))},bn=function(){var t,e=0;for(gn(e);Ye.some((function(t){return t.activeTargets.length>0}));)e=mn(),gn(e);return Ye.some((function(t){return t.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:Je}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=Je),window.dispatchEvent(t)),e>0},wn=[],_n=function(t){if(!Ze){var e=0,n=document.createTextNode("");new MutationObserver((function(){return wn.splice(0).forEach((function(t){return t()}))})).observe(n,{characterData:!0}),Ze=function(){n.textContent=""+(e?e--:e++)}}wn.push(t),Ze()},xn=0,Sn={attributes:!0,characterData:!0,childList:!0,subtree:!0},On=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],En=function(t){return void 0===t&&(t=0),Date.now()+t},An=!1,kn=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var e=this;if(void 0===t&&(t=250),!An){An=!0;var n,r=En(t);n=function(){var n=!1;try{n=bn()}finally{if(An=!1,t=r-En(),!xn)return;n?e.run(1e3):t>0?e.run(t):e.start()}},_n((function(){requestAnimationFrame(n)}))}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,Sn)};document.body?e():on.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),On.forEach((function(e){return on.addEventListener(e,t.listener,!0)})))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),On.forEach((function(e){return on.removeEventListener(e,t.listener,!0)})),this.stopped=!0)},t}()),jn=function(t){!xn&&t>0&&kn.start(),!(xn+=t)&&kn.stop()},Cn=function(){function t(t,e){this.target=t,this.observedBox=e||qe.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,e=hn(this.target,this.observedBox,!0);return t=this.target,en(t)||function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),Pn=function(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e},Tn=new WeakMap,Rn=function(t,e){for(var n=0;n=0&&(o&&Ye.splice(Ye.indexOf(n),1),n.observationTargets.splice(r,1),jn(-1))},t.disconnect=function(t){var e=this,n=Tn.get(t);n.observationTargets.slice().forEach((function(n){return e.unobserve(t,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},t}(),Mn=function(){function t(t){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof t)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");In.connect(this,t)}return t.prototype.observe=function(t,e){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!rn(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");In.observe(this,t,e)},t.prototype.unobserve=function(t){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!rn(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");In.unobserve(this,t)},t.prototype.disconnect=function(){In.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();var Nn=o.a["undefined"!=typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"];var zn=t=>{const e=r.useRef(t);return r.useEffect(()=>{e.current=t}),e},Ln=function(t){var e=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;iFn||(Fn=function(){const t=new Map,e=new Dn(Ln((e,n)=>{for(let r=0;rt(e[r],n))}}));return{observer:e,subscribe(n,r){var o;e.observe(n);const i=null!==(o=t.get(n))&&void 0!==o?o:[];i.push(r),t.set(n,i)},unsubscribe(n,r){var o;const i=null!==(o=t.get(n))&&void 0!==o?o:[];if(1===i.length)return e.unobserve(n),void t.delete(n);const a=i.indexOf(r);-1!==a&&i.splice(a,1),t.set(n,i)}}}());var $n=function(t,e){const n=Un(),r=zn(e);return Nn(()=>{let e=!1;const o=t&&"current"in t?t.current:t;if(!o)return Bn;function i(t,n){e||r.current(t,n)}return n.subscribe(o,i),()=>{e=!0,n.unsubscribe(o,i)}},[t,n,r]),n.observer};function Wn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Hn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hn(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?r:null)}Jn.propTypes={id:PropTypes.string};n(34);function Zn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Kn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kn(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n