(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4820],{58887:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(94184),o=n.n(r),i=n(86322),u=n(91118),c=n(48118),a=n(85893);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=e.keyPositions;return(0,a.jsx)(i.i,{bindings:[],renderKey:function(e){var n,r=e.index;return(0,a.jsx)(u.Z,{selectable:!1,themeClass:o()((n={},s(n,c.Z.key,!0),s(n,c.Z.highlight,t.includes(r)),n),c.Z.keyMini)})}})}},15023:function(e,t,n){"use strict";n.d(t,{Z:function(){return he}});var r=n(67294),o=n(45697),i=n.n(o),u=n(86322),c=n(91118),a=n(94184),l=n.n(a),s=n(93379),f=n.n(s),y=n(7795),b=n.n(y),p=n(90569),d=n.n(p),m=n(3565),v=n.n(m),h=n(19216),g=n.n(h),A=n(44589),j=n.n(A),O=n(57141),w={};w.styleTagTransform=j(),w.setAttributes=v(),w.insert=d().bind(null,"head"),w.domAPI=b(),w.insertStyleElement=g(),f()(O.Z,w);var S=O.Z&&O.Z.locals?O.Z.locals:void 0,C=n(74691),E=n.n(C),x=n(39316);function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,u,c=[],a=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{if(!a&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(e,t)||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 k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n3||Math.abs(s[0][1]-s[1][1])>3)}),[s]),h=(0,r.useMemo)((function(){return e.map(x.VW).reduce(x.FP)}),[e]),g=(0,r.useMemo)((function(){return v?c===q?function(e,t){var n=B(function(e){var t=P(e,2),n=P(t[0],2),r=n[0],o=n[1],i=P(t[1],2),u=i[0],c=i[1];return[{x:r,y:o},{x:r,y:c},{x:u,y:c},{x:u,y:o}]}(e));return t.reduce((function(t,r,o){return(r.some((function(t){return n=e,o=(r=t).x,i=r.y,n[0][0]e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n3,showDeSelectTip:!n.usedDragDeSelection&&n.manualDeSelectionCount>3,actions:{manualSelection:i,manualDeSelection:a,dragSelection:s,dragDeSelection:f}}),g=h.showSelectTip,A=h.showDeSelectTip,j=h.actions,O=(0,r.useCallback)((function(e){var t=e.mode,n=e.intersections,r=t===U;r?j.dragDeSelection():j.dragSelection(),m(r?p.filter((function(e){return!n.includes(e)})):[].concat(ye(p),ye(n)))}),[p,m,j]),w=(0,r.useCallback)((function(e){var t=p.includes(e);t?j.manualDeSelection():j.manualSelection(),m(t?p.filter((function(t){return t!==e})):[].concat(ye(p),[e]))}),[p,m,j]),S=X(v,O),C=S.intersections,E=S.mode,x=p,P=E===U?[]:C.filter((function(e){return!x.includes(e)})),k=E===U?C.filter((function(e){return x.includes(e)})):[];return(0,$.jsxs)(ie,pe(pe({},S),{},{children:[(0,$.jsx)(u.i,{bindings:[],renderKey:function(e){var t,n=e.index;return(0,$.jsx)(c.Z,{onClick:function(){return w(n)},themeClass:l()(ae.Z.key,ae.Z.keyMini,(t={},de(t,ae.Z.highlight,x.includes(n)),de(t,ae.Z.previewAdd,P.includes(n)),de(t,ae.Z.previewRemove,k.includes(n)),t))})}}),d&&(0,$.jsx)("prompt",{}),g&&(0,$.jsx)(le.Z,{className:ae.Z.tip,children:(0,$.jsx)("span",{children:"Drag to select a region"})}),A&&(0,$.jsx)(le.Z,{className:ae.Z.tip,children:(0,$.jsx)("span",{children:"Shift+Drag to de-select a region"})})]}))}he.propTypes={onUpdate:i().func.isRequired,value:i().arrayOf(i().number).isRequired,prompt:i().node}},77593:function(e,t,n){"use strict";n.d(t,{Z:function(){return j},l:function(){return O}});var r=n(78718),o=n.n(r),i=n(45697),u=n.n(i),c=n(67294),a=n(39316),l=n(95872),s=n(94995),f=n(85893);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}var b=["keyLayout","renderOptions","children"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,b),i=v(t),u=h(t),s=g(t),y=(0,a.Pi)(i,s,u,n),p=(0,c.useRef)();return(0,f.jsx)("div",d(d({ref:p,className:l.Z.placer,style:y,"data-u":s.u,"data-h":s.h},o),{},{children:(0,f.jsx)(A.Provider,{value:{position:i,rotation:u,size:s,ref:p},children:r})}))}function O(){return(0,c.useContext)(A)}j.propTypes={scale:u().number,keyLayout:s.v.isRequired},j.defaultProps={scale:1}},86322:function(e,t,n){"use strict";n.d(t,{Z:function(){return m},i:function(){return v}});var r=n(45697),o=n.n(r),i=n(67294),u=n(77593),c=n(94995),a=n(20817),l=n(39316),s=n(85893);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?e:t)),e}},57406:function(e,t,n){var r=n(71811),o=n(10928),i=n(40292),u=n(40327);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[u(o(t))]}},60696:function(e,t,n){var r=n(68630);e.exports=function(e){return r(e)?void 0:e}},40292:function(e,t,n){var r=n(97786),o=n(14259);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},74691:function(e,t,n){var r=n(29750),o=n(14841);e.exports=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=o(n))==n?n:0),void 0!==t&&(t=(t=o(t))==t?t:0),r(o(e),t,n)}},68630:function(e,t,n){var r=n(44239),o=n(85924),i=n(37005),u=Function.prototype,c=Object.prototype,a=u.toString,l=c.hasOwnProperty,s=a.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==s}},10928:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},57557:function(e,t,n){var r=n(29932),o=n(85990),i=n(57406),u=n(71811),c=n(98363),a=n(60696),l=n(99021),s=n(46904),f=l((function(e,t){var n={};if(null==e)return n;var l=!1;t=r(t,(function(t){return t=u(t,e),l||(l=t.length>1),t})),c(e,s(e),n),l&&(n=o(n,7,a));for(var f=t.length;f--;)i(n,t[f]);return n}));e.exports=f},48118:function(e,t,n){"use strict";var r=n(93379),o=n.n(r),i=n(7795),u=n.n(i),c=n(90569),a=n.n(c),l=n(3565),s=n.n(l),f=n(19216),y=n.n(f),b=n(44589),p=n.n(b),d=n(49040),m={};m.styleTagTransform=p(),m.setAttributes=s(),m.insert=a().bind(null,"head"),m.domAPI=u(),m.insertStyleElement=y(),o()(d.Z,m),t.Z=d.Z&&d.Z.locals?d.Z.locals:void 0}}]); //# sourceMappingURL=4820.b6c55aee1c4cd8c91d2c.js.map