"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[83815],{83815:(t,e,n)=>{n.d(e,{c0:()=>J});var r=n(79477);function i(t,e){return t.map(function(t,n){return t+e[n]})}function o(t,e){return t.map(function(t,n){return t-e[n]})}function a(t){return Math.hypot.apply(Math,t)}function s(t){return Math.sign?Math.sign(t):Number(t>0)-Number(t<0)||+t}function c(t,e,n){return 0===e||Math.abs(e)===1/0?Math.pow(t,5*n):t*e*n/(e+n*t)}function u(t,e,n,r){return(void 0===r&&(r=.15),0===r)?Math.max(e,Math.min(t,n)):tn?+c(t-n,n-e,r)+n:t}function l(){return(l=Object.assign||function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}function h(){}function g(){for(var t=arguments.length,e=Array(t),n=0;n1?e-1:0),r=1;r=0||(i[n]=t[n]);return i}(t,["domTarget","eventOptions","window","enabled"]),c=(e={domTarget:r,eventOptions:i,window:o,enabled:a},w(e,M));return c.drag=(void 0===(n=s)&&(n={}),w(n,C)),c}function K(t){return l({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_threshold:[0,0],_lastEventType:void 0,_dragStarted:!1,_dragPreventScroll:!1,_dragIsTap:!0,_dragDelayed:!1,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:h,canceled:!1,memo:void 0,args:void 0},t)}function j(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1,locked:!1},drag:K({_pointerId:void 0,axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,tap:!1,swipe:[0,0]}),pinch:K({_pointerIds:[],da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:K({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:K({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:K({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var A=new Map,G=function(t){return t},L=function(){function t(t,e){var n=this;void 0===e&&(e=[]),this.controller=t,this.args=e,this.debounced=!0,this.setTimeout=function(t,e){var r;void 0===e&&(e=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var i=arguments.length,o=Array(i>2?i-2:0),a=2;a0||i>0,a=l({},n.controller.state.shared,n.state,n.mapStateValues(n.state),{locked:!!document.pointerLockElement,touches:i,down:o}),s=n.handler(a);return n.state.memo=void 0!==s?s:n.state.memo,a},this.controller=t,this.args=e}var e=t.prototype;return e.updateSharedState=function(t){Object.assign(this.controller.state.shared,t)},e.updateGestureState=function(t){Object.assign(this.state,t)},e.checkIntentionality=function(t,e){return{_intentional:t,_blocked:!1}},e.getMovement=function(t){var e=this.config.rubberband,n=this.state,r=n._bounds,a=n._initial,s=n._active,c=n._intentional,u=n.lastOffset,d=n.movement,f=n._threshold,v=this.getInternalMovement(t,this.state),p=!1===c[0]?V(v[0],f[0]):c[0],h=!1===c[1]?V(v[1],f[1]):c[1],g=this.checkIntentionality([p,h],v);if(g._blocked)return l({},g,{_movement:v,delta:[0,0]});var m=g._intentional,y=[!1!==m[0]?v[0]-m[0]:0,!1!==m[1]?v[1]-m[1]:0],b=i(y,u),w=s?e:[0,0];return y=W(r,i(y,a),w),l({},g,{intentional:!1!==m[0]||!1!==m[1],_initial:a,_movement:v,movement:y,values:t,offset:W(r,b,w),delta:o(y,d)})},e.clean=function(){this.clearTimeout()},function(t,e){for(var n=0;n=e&&s(t)*e}function W(t,e,n){var r=e[0],i=e[1],o=n[0],a=n[1],s=t[0],c=s[0],l=s[1],d=t[1],f=d[0],v=d[1];return[u(r,c,l,o),u(i,f,v,a)]}function Y(t,e,n){var r=t.state,i=e.timeStamp,o=e.type,a=r.values,s=n?0:i-r.startTime;return{_lastEventType:o,event:e,timeStamp:i,elapsedTime:s,previous:a}}var z=function(t){var e=this;this.classes=t,this.pointerIds=new Set,this.touchIds=new Set,this.supportsTouchEvents=_(),this.supportsGestureEvents=function(){try{return"constructor"in GestureEvent}catch(t){return!1}}(),this.bind=function(){for(var t=arguments.length,n=Array(t),r=0;r0?e.setUpDelayedDragTrigger(t):e.startDrag(t,!0))},e.onDragChange=function(t){if(!e.state.canceled&&e.state._active&&e.isValidEvent(t)&&(e.state._lastEventType!==t.type||t.timeStamp!==e.state.timeStamp)){if(document.pointerLockElement){var n,r=t.movementX,o=t.movementY;n=i(e.transform([r,o]),e.state.values)}else n=O(t,e.transform);var s=e.getKinematics(n,t);if(!e.state._dragStarted){if(e.state._dragDelayed){e.startDrag(t);return}if(!e.shouldPreventWindowScrollY||e.state._dragPreventScroll||!s.axis)return;if("x"===s.axis)e.startDrag(t);else{e.state._active=!1;return}}var c=k(t);e.updateSharedState(c);var u=Y(f(e),t),d=a(s._movement),v=e.state._dragIsTap;v&&d>=3&&(v=!1),e.updateGestureState(l({},u,s,{_dragIsTap:v})),e.fireGestureHandler()}},e.onDragEnd=function(t){var n;if(n=e.controller,"pointerId"in t?n.pointerIds.delete(t.pointerId):T(t).forEach(function(t){return n.touchIds.delete(t)}),e.isValidEvent(t)&&(e.clean(),e.state._active)){e.state._active=!1;var r=e.state._dragIsTap,i=e.state.velocities,o=i[0],a=i[1],c=e.state.movement,u=c[0],d=c[1],v=e.state._intentional,p=v[0],h=v[1],g=e.config.swipeVelocity,m=g[0],y=g[1],b=e.config.swipeDistance,w=b[0],_=b[1],S=e.config.swipeDuration,k=l({},Y(f(e),t),e.getMovement(e.state.values)),x=[0,0];k.elapsedTimem&&Math.abs(u)>w&&(x[0]=s(o)),!1!==h&&Math.abs(a)>y&&Math.abs(d)>_&&(x[1]=s(a))),e.updateSharedState({buttons:0}),e.updateGestureState(l({},k,{tap:r,swipe:x})),e.fireGestureHandler(e.config.filterTaps&&!0===r)}},e.clean=function(){var n,r,i,o,a;t.prototype.clean.call(f(e)),e.state._dragStarted=!1,e.releasePointerCapture(),n=e.controller,r=e.stateKey,o=n.config,a=n.windowListeners,void 0===i&&(i=o.eventOptions),o.window&&($(o.window,a[r],i),delete a[r])},e.onCancel=function(){e.state.canceled||(e.updateGestureState({canceled:!0,_active:!1}),e.updateSharedState({buttons:0}),setTimeout(function(){return e.fireGestureHandler()},0))},e.onClick=function(t){e.state._dragIsTap||t.stopPropagation()},e}d(e,t);var n=e.prototype;return n.startDrag=function(t,e){void 0===e&&(e=!1),this.state._active&&!this.state._dragStarted&&(e||this.setStartState(t),this.updateGestureState({_dragStarted:!0,_dragPreventScroll:!0,cancel:this.onCancel}),this.clearTimeout(),this.fireGestureHandler())},n.addBindings=function(t){this.config.useTouch?(H(t,"onTouchStart",this.onDragStart),H(t,"onTouchMove",this.onDragChange),H(t,"onTouchEnd",this.onDragEnd),H(t,"onTouchCancel",this.onDragEnd)):(H(t,"onPointerDown",this.onDragStart),H(t,"onPointerMove",this.onDragChange),H(t,"onPointerUp",this.onDragEnd),H(t,"onPointerCancel",this.onDragEnd)),this.config.filterTaps&&H(t,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},e}(function(t){function e(){return t.apply(this,arguments)||this}d(e,t);var n=e.prototype;return n.getInternalMovement=function(t,e){return o(t,e.initial)},n.checkIntentionality=function(t,e){if(!1===t[0]&&!1===t[1])return{_intentional:t,axis:this.state.axis};var n=e.map(Math.abs),r=n[0],i=n[1],o=this.state.axis||(r>i?"x":r