1(self.webpackChunkreact_boilerplate=self.webpackChunkreact_boilerplate||[]).push([[8995],{268947:(t,e,i)=>{"use strict";i.r(e),i.d(e,{rubberbandIfOutOfBounds:()=>s.r});var s=i(988052)},291459:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(385291),n=i(296540),o=i(851385),r=i(268947),a=i(377483);function c(t){return t&&t.__esModule?t:{default:t}}var h=c(n);function u(t,e={},i,s){const n=h.default.useMemo(()=>new o.Controller(t),[]);if(n.applyHandlers(t,s),n.applyConfig(e,i),h.default.useEffect(n.effect.bind(n)),h.default.useEffect(()=>n.clean.bind(n),[]),void 0===e.target)return n.bind.bind(n)}function l(t){return t.forEach(s.registerAction),function(t,e){const{handlers:i,nativeHandlers:s,config:n}=o.parseMergedHandlers(t,e||{});return u(i,n,void 0,s)}}e.createUseGesture=l,e.useDrag=function(t,e){return s.registerAction(s.dragAction),u({drag:t},e||{},"drag")},e.useGesture=function(t,e){return l([s.dragAction,s.pinchAction,s.scrollAction,s.wheelAction,s.moveAction,s.hoverAction])(t,e||{})},e.useHover=function(t,e){return s.registerAction(s.hoverAction),u({hover:t},e||{},"hover")},e.useMove=function(t,e){return s.registerAction(s.moveAction),u({move:t},e||{},"move")},e.usePinch=function(t,e){return s.registerAction(s.pinchAction),u({pinch:t},e||{},"pinch")},e.useScroll=function(t,e){return s.registerAction(s.scrollAction),u({scroll:t},e||{},"scroll")},e.useWheel=function(t,e){return s.registerAction(s.wheelAction),u({wheel:t},e||{},"wheel")},Object.keys(s).forEach(function(t){"default"===t||e.hasOwnProperty(t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}),Object.keys(r).forEach(function(t){"default"===t||e.hasOwnProperty(t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}),Object.keys(a).forEach(function(t){"default"===t||e.hasOwnProperty(t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}})})},377483:()=>{},385291:(t,e,i)=>{"use strict";i.r(e),i.d(e,{ConfigResolverMap:()=>s.C,EngineMap:()=>s.E,dragAction:()=>s.e,hoverAction:()=>s.h,moveAction:()=>s.m,pinchAction:()=>s.f,registerAction:()=>s.r,scrollAction:()=>s.s,wheelAction:()=>s.w});var s=i(655268)},655268:(t,e,i)=>{"use strict";i.d(e,{C:()=>G,E:()=>W,S:()=>j,_:()=>a,a:()=>o,b:()=>b,c:()=>A,d:()=>l,e:()=>N,f:()=>Q,h:()=>F,i:()=>v,m:()=>J,p:()=>p,r:()=>q,s:()=>Z,t:()=>f,w:()=>$});var s=i(988052);function n(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function o(t,e,i){return(e=n(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,s)}return i}function a(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach(function(e){o(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}const c={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function h(t){return t?t[0].toUpperCase()+t.slice(1):""}const u=["enter","leave"];function l(t,e="",i=!1){const s=c[t],n=s&&s[e]||e;return"on"+h(t)+h(n)+(function(t=!1,e){return t&&!u.includes(e)}(i,n)?"Capture":"")}const d=["gotpointercapture","lostpointercapture"];function p(t){let e=t.substring(2).toLowerCase();const i=!!~e.indexOf("passive");i&&(e=e.replace("passive",""));const s=d.includes(e)?"capturecapture":"capture",n=!!~e.indexOf(s);return n&&(e=e.replace("capture","")),{device:e,capture:n,passive:i}}function f(t,e=""){const i=c[t];return t+(i&&i[e]||e)}function v(t){return"touches"in t}function m(t){return v(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function g(t){return v(t)?function(t){return"touchend"===t.type||"touchcancel"===t.type?t.changedTouches:t.targetTouches}(t)[0]:t}function _(t,e){try{const i=e.clientX-t.clientX,s=e.clientY-t.clientY,n=(e.clientX+t.clientX)/2,o=(e.clientY+t.clientY)/2,r=Math.hypot(i,s),a=-180*Math.atan2(i,s)/Math.PI;return{angle:a,distance:r,origin:[n,o]}}catch(t){}return null}function b(t){return function(t){return Array.from(t.touches).filter(e=>{var i,s;return e.target===t.currentTarget||(null===(i=t.currentTarget)||void 0===i||null===(s=i.contains)||void 0===s?void 0:s.call(i,e.target))})}(t).map(t=>
1t.identifier)}function y(t,e){const[i,s]=Array.from(t.touches).filter(t=>e.includes(t.identifier));return _(i,s)}function w(t){const e=g(t);return v(t)?e.identifier:e.pointerId}function S(t){const e=g(t);return[e.clientX,e.clientY]}function k(t){let{deltaX:e,deltaY:i,deltaMode:s}=t;return 1===s?(e*=40,i*=40):2===s&&(e*=800,i*=800),[e,i]}function E(t,...e){return"function"==typeof t?t(...e):t}function O(){}function A(...t){return 0===t.length?O:1===t.length?t[0]:function(){let e;for(const i of t)e=i.apply(this,arguments)||e;return e}}function T(t,e){return Object.assign({},e,t||{})}class x{constructor(t,e,i){this.ctrl=t,this.args=e,this.key=i,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:e,ingKey:i,args:s}=this;e[i]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=s,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const e=this.state,i=this.config;e._active||(this.reset(),this.computeInitial(),e._active=!0,e.target=t.target,e.currentTarget=t.currentTarget,e.lastOffset=i.from?E(i.from,e):e.offset,e.offset=e.lastOffset,e.startTime=e.timeStamp=t.timeStamp)}computeValues(t){const e=this.state;e._values=t,e.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:e,config:i,shared:n}=this;e.args=this.args;let o=0;if(t&&(e.event=t,i.preventDefault&&t.cancelable&&e.event.preventDefault(),e.type=t.type,n.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,n.locked=!!document.pointerLockElement,Object.assign(n,function(t){const e={};if("buttons"in t&&(e.buttons=t.buttons),"shiftKey"in t){const{shiftKey:i,altKey:s,metaKey:n,ctrlKey:o}=t;Object.assign(e,{shiftKey:i,altKey:s,metaKey:n,ctrlKey:o})}return e}(t)),n.down=n.pressed=n.buttons%2==1||n.touches>0,o=t.timeStamp-e.timeStamp,e.timeStamp=t.timeStamp,e.elapsedTime=e.timeStamp-e.startTime),e._active){const t=e._delta.map(Math.abs);s.V.addTo(e._distance,t)}this.axisIntent&&this.axisIntent(t);const[r,a]=e._movement,[c,h]=i.threshold,{_step:u,values:l}=e;if(i.hasCustomTransform?(!1===u[0]&&(u[0]=Math.abs(r)>=c&&l[0]),!1===u[1]&&(u[1]=Math.abs(a)>=h&&l[1])):(!1===u[0]&&(u[0]=Math.abs(r)>=c&&Math.sign(r)*c),!1===u[1]&&(u[1]=Math.abs(a)>=h&&Math.sign(a)*h)),e.intentional=!1!==u[0]||!1!==u[1],!e.intentional)return;const d=[0,0];if(i.hasCustomTransform){const[t,e]=l;d[0]=!1!==u[0]?t-u[0]:0,d[1]=!1!==u[1]?e-u[1]:0}else d[0]=!1!==u[0]?r-u[0]:0,d[1]=!1!==u[1]?a-u[1]:0;this.restrictToAxis&&!e._blocked&&this.restrictToAxis(d);const p=e.offset,f=e._active&&!e._blocked||e.active;f&&(e.first=e._active&&!e.active,e.last=!e._active&&e.active,e.active=n[this.ingKey]=e._active,t&&(e.first&&("bounds"in i&&(e._bounds=E(i.bounds,e)),this.setup&&this.setup()),e.movement=d,this.computeOffset()));const[v,m]=e.offset,[[g,_],[b,y]]=e._bounds;e.overflow=[v<g?-1:v>_?1:0,m<b?-1:m>y?1:0],e._movementBound[0]=!!e.overflow[0]&&(!1===e._movementBound[0]?e._movement[0]:e._movementBound[0]),e._movementBound[1]=!!e.overflow[1]&&(!1===e._movementBound[1]?e._movement[1]:e._movementBound[1]);const w=e._active&&i.rubberband||[0,0];if(e.offset=(0,s.c)(e._bounds,e.offset,w),e.delta=s.V.sub(e.offset,p),this.computeMovement(),f&&(!e.last||o>32)){e.delta=s.V.sub(e.offset,p);const t=e.delta.map(Math.abs);s.V.addTo(e.distance,t),e.direction=e.delta.map(Math.sign),e._direction=e._delta.map(Math.sign),!e.first&&o>0&&(e.velocity=[t[0]/o,t[1]/o],e.timeDelta=o)}}emit(){const t=this.state,e=this.shared,i=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!i.triggerAllEvents)return;const s=this.handler(a(a(a({},e),t),{},{[this.aliasKey]:t.values}));void 0!==s&&(t.memo=s)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class M extends x{constructor(...t){super(...t),o(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=s.V.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=s.V.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const e=this.state,i=this.config;if(!e.axis&&t){const s="object"==typeof i.axisThreshold?i.axisThreshold[m(t)]:i.axisThreshold;e.axis=function([t,e],i){const s=Math.abs(t),n=Math.abs(e);return s>n&&s>i?"x":n>s&&n>i?"y":void 0}(e._movement,s)}e._blocked=(i.lockDirection||!!i.axis)&&!e.axis||!!i.axis&&i.axis!==e.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0}}}const I=t=>t,C={enabled:(t=!0)=>t,eventOptions:(t,e,i)=>a(a({},i.shared.eventOptions),t),preventDefault:(t=!1)=>t,triggerAllEvents:(t=!1)=>t,rubberband(t=0){switch(t){case!0:return[.15,.15];case!1:return[0,0];default:return s.V.toVector(t)}},from:t=>"function"==typeof t?t:null!=t?s.V.toVector(t):void 0,transform(t,e,i){const s=t||i.shared.transform;return this.hasCustomTransform=!!s,s||I},threshold:t=>s.V.toVector(t,0)};const P=a(a({},C),{},{axis(t,e,{axis:i}){if(this.lockDirection="lock"===i,!this.lockDirection)return i},axisThreshold:(t=0)=>t,bounds(t={}){if("function"==typeof t)return e=>P.bounds(t(e));if("current"in t)return()=>t.current;if("function"==typeof HTMLElement&&t instanceof HTMLElement)return t;const{left:e=-1/0,right:i=1/0,top:s=-1/0,bottom:n=1/0}=t;return[[e,i],[s,n]]}}),D={ArrowRight:(t,e=1)=>[t*e,0],ArrowLeft:(t,e=1)=>[-1*t*e,0],ArrowUp:(t,e=1)=>[0,-1*t*e],ArrowDown:(t,e=1)=>[0,t*e]};const V="undefined"!=typeof window&&window.document&&window.document.createElement;function K(){return V&&"ontouchstart"in window}const j={isBrowser:V,gesture:function(){try{return"constructor"in GestureEvent}catch(t){return!1}}(),touch:K(),touchscreen:K()||V&&window.navigator.maxTouchPoints>1,pointer:V&&"onpointerdown"in window,pointerLock:V&&"exitPointerLock"in window.document},B={mouse:0,touch:0,pen:8},L=a(a({},P),{},{device(t,e,{pointer:{touch:i=!1,lock:s=!1,mouse:n=!1}={}}){return this.pointerLock=s&&j.pointerLock,j.touch&&i?"touch":this.pointerLock?"mouse":j.pointer&&!n?"pointer":j.touch?"touch":"mouse"},preventScrollAxis(t,e,{preventScroll:i}){if(this.preventScrollDelay="number"==typeof i?i:i||void 0===i&&t?250:void 0,j.touchscreen&&!1!==i)return t||(void 0!==i?"y":void 0)},pointerCapture(t,e,{pointer:{capture:i=!0,buttons:s=1,keys:n=!0}={}}){return this.pointerButtons=s,this.keys=n,!this.pointerLock&&"pointer"===this.device&&i},threshold(t,e,{filterTaps:i=!1,tapsThreshold:n=3,axis:o}){const r=s.V.toVector(t,i?n:o?1:0);return this.filterTaps=i,this.tapsThreshold=n,r},swipe({velocity:t=.5,distance:e=50,duration:i=250}={}){return{velocity:this.transform(s.V.toVector(t)),distance:this.transform(s.V.toVector(e)),duration:i}},delay(t=0){switch(t){case!0:return 180;case!1:return 0;default:return t}},axisThreshold:t=>t?a(a({},B),t):B,keyboardDisplacement:(t=10)=>t});function H(t){const[e,i]=t.overflow,[s,n]=t._delta,[o,r]=t._direction;(e<0&&s>0&&o<0||e>0&&s<0&&o>0)&&(t._movement[0]=t._movementBound[0]),(i<0&&n>0&&r<0||i>0&&n<0&&r>0)&&(t._movement[1]=t._movementBound[1])}const U=a(a({},C),{},{device(t,e,{shared:i,pointer:{touch:s=!1}={}}){if(i.target&&!j.touch&&j.gesture)return"gesture";if(j.touch&&s)return"touch";if(j.touchscreen){if(j.pointer)return"pointer";if(j.touch)return"touch"}},bounds(t,e,{scaleBounds:i={},angleBounds:s={}}){const n=t=>{const e=T(E(i,t),{min:-1/0,max:1/0});return[e.min,e.max]},o=t=>{const e=T(E(s,t),{min:-1/0,max:1/0});return[e.min,e.max]};return"function"!=typeof i&&"function"!=typeof s?[n(),o()]:t=>[n(t),o(t)]},threshold(t,e,i){this.lockDirection="lock"===i.axis;return s.V.toVector(t,this.lockDirection?[.1,3]:0)},modifierKey:t=>void 0===t?"ctrlKey":t,pinchOnWheel:(t=!0)=>t});const X=a(a({},P),{},{mouseOnly:(t=!0)=>t});const Y=P;const z=P;const R=a(a({},P),{},{mouseOnly:(t=!0)=>t}),W=new Map,G=new Map;function q(t){W.set(t.key,t.engine),G.set(t.key,t.resolver)}const N={key:"drag",engine:class extends M{constructor(...t){super(...t),o(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const e=t._bounds.getBoundingClientRect(),i=t.currentTarget.getBoundingClientRect(),s={left:e.left-i.left+t.offset[0],right:e.right-i.right+t.offset[0],top:e.top-i.top+t.offset[1],bottom:e.bottom-i.bottom+t.offset[1]};t._bounds=P.bounds(s)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>
1{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const e=this.config,i=this.state;if(null!=t.buttons&&(Array.isArray(e.pointerButtons)?!e.pointerButtons.includes(t.buttons):-1!==e.pointerButtons&&e.pointerButtons!==t.buttons))return;const s=this.ctrl.setEventIds(t);e.pointerCapture&&t.target.setPointerCapture(t.pointerId),s&&s.size>1&&i._pointerActive||(this.start(t),this.setupPointer(t),i._pointerId=w(t),i._pointerActive=!0,this.computeValues(S(t)),this.computeInitial(),e.preventScrollAxis&&"mouse"!==m(t)?(i._active=!1,this.setupScrollPrevention(t)):e.delay>0?(this.setupDelayTrigger(t),e.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const e=this.state;e._active=!0,e._preventScroll=!0,e._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const e=this.state,i=this.config;if(!e._pointerActive)return;const n=w(t);if(void 0!==e._pointerId&&n!==e._pointerId)return;const o=S(t);return document.pointerLockElement===t.target?e._delta=[t.movementX,t.movementY]:(e._delta=s.V.sub(o,e._values),this.computeValues(o)),s.V.addTo(e._movement,e._delta),this.compute(t),e._delayed&&e.intentional?(this.timeoutStore.remove("dragDelay"),e.active=!1,void this.startPointerDrag(t)):i.preventScrollAxis&&!e._preventScroll?e.axis?e.axis===i.preventScrollAxis||"xy"===i.preventScrollAxis?(e._active=!1,void this.clean()):(this.timeoutStore.remove("startPointerDrag"),void this.startPointerDrag(t)):void 0:void this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch(t){0}const e=this.state,i=this.config;if(!e._active||!e._pointerActive)return;const s=w(t);if(void 0!==e._pointerId&&s!==e._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[n,o]=e._distance;if(e.tap=n<=i.tapsThreshold&&o<=i.tapsThreshold,e.tap&&i.filterTaps)e._force=!0;else{const[t,s]=e._delta,[n,o]=e._movement,[r,a]=i.swipe.velocity,[c,h]=i.swipe.distance,u=i.swipe.duration;if(e.elapsedTime<u){const i=Math.abs(t/e.timeDelta),u=Math.abs(s/e.timeDelta);i>r&&Math.abs(n)>c&&(e.swipe[0]=Math.sign(t)),u>a&&Math.abs(o)>h&&(e.swipe[1]=Math.sign(s))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const e=this.config,i=e.device;e.pointerLock&&t.currentTarget.requestPointerLock(),e.pointerCapture||(this.eventStore.add(this.sharedConfig.window,i,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,function(t){"persist"in t&&"function"==typeof t.persist&&t.persist()}(t);const e=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",e),this.eventStore.add(this.sharedConfig.window,"touch","cancel",e),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const e=D[t.key];if(e){const i=this.state,n=t.shiftKey?10:t.altKey?.1:1;this.start(t),i._delta=e(this.config.keyboardDisplacement,n),i._keyboardActive=!0,s.V.addTo(i._movement,i._delta),this.compute(t),this.emit()}}keyUp(t){t.key in D&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const e=this.config.device;t(e,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(e,"change",this.pointerMove.bind(this)),t(e,"end",this.pointerUp.bind(this)),t(e,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:L},F={key:"hover",engine:class extends M{constructor(...t){super(...t),o(this,"ingKey","hovering")}enter(t){this.config.mouseOnly&&"mouse"!==t.pointerType||(this.start(t),this.computeValues(S(t)),this.compute(t),this.emit
1())}leave(t){if(this.config.mouseOnly&&"mouse"!==t.pointerType)return;const e=this.state;if(!e._active)return;e._active=!1;const i=S(t);e._movement=e._delta=s.V.sub(i,e._values),this.computeValues(i),this.compute(t),e.delta=e.movement,this.emit()}bind(t){t("pointer","enter",this.enter.bind(this)),t("pointer","leave",this.leave.bind(this))}},resolver:R},J={key:"move",engine:class extends M{constructor(...t){super(...t),o(this,"ingKey","moving")}move(t){this.config.mouseOnly&&"mouse"!==t.pointerType||(this.state._active?this.moveChange(t):this.moveStart(t),this.timeoutStore.add("moveEnd",this.moveEnd.bind(this)))}moveStart(t){this.start(t),this.computeValues(S(t)),this.compute(t),this.computeInitial(),this.emit()}moveChange(t){if(!this.state._active)return;const e=S(t),i=this.state;i._delta=s.V.sub(e,i._values),s.V.addTo(i._movement,i._delta),this.computeValues(e),this.compute(t),this.emit()}moveEnd(t){this.state._active&&(this.state._active=!1,this.compute(t),this.emit())}bind(t){t("pointer","change",this.move.bind(this)),t("pointer","leave",this.moveEnd.bind(this))}},resolver:X},Q={key:"pinch",engine:class extends x{constructor(...t){super(...t),o(this,"ingKey","pinching"),o(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const t=this.state;t._touchIds=[],t.canceled=!1,t.cancel=this.cancel.bind(this),t.turns=0}computeOffset(){const{type:t,movement:e,lastOffset:i}=this.state;this.state.offset="wheel"===t?s.V.add(e,i):[(1+e[0])*i[0],e[1]+i[1]]}computeMovement(){const{offset:t,lastOffset:e}=this.state;this.state.movement=[t[0]/e[0],t[1]-e[1]]}axisIntent(){const t=this.state,[e,i]=t._movement;if(!t.axis){const s=30*Math.abs(e)-Math.abs(i);s<0?t.axis="angle":s>0&&(t.axis="scale")}}restrictToAxis(t){this.config.lockDirection&&("scale"===this.state.axis?t[1]=0:"angle"===this.state.axis&&(t[0]=0))}cancel(){const t=this.state;t.canceled||setTimeout(()=>{t.canceled=!0,t._active=!1,this.compute(),this.emit()},0)}touchStart(t){this.ctrl.setEventIds(t);const e=this.state,i=this.ctrl.touchIds;if(e._active&&e._touchIds.every(t=>i.has(t)))return;if(i.size<2)return;this.start(t),e._touchIds=Array.from(i).slice(0,2);const s=y(t,e._touchIds);s&&this.pinchStart(t,s)}pointerStart(t){if(null!=t.buttons&&t.buttons%2!=1)return;this.ctrl.setEventIds(t),t.target.setPointerCapture(t.pointerId);const e=this.state,i=e._pointerEvents,s=this.ctrl.pointerIds;if(e._active&&Array.from(i.keys()).every(t=>s.has(t)))return;if(i.size<2&&i.set(t.pointerId,t),e._pointerEvents.size<2)return;this.start(t);const n=_(...Array.from(i.values()));n&&this.pinchStart(t,n)}pinchStart(t,e){this.state.origin=e.origin,this.computeValues([e.distance,e.angle]),this.computeInitial(),this.compute(t),this.emit()}touchMove(t){if(!this.state._active)return;const e=y(t,this.state._touchIds);e&&this.pinchMove(t,e)}pointerMove(t){const e=this.state._pointerEvents;if(e.has(t.pointerId)&&e.set(t.pointerId,t),!this.state._active)return;const i=_(...Array.from(e.values()));i&&this.pinchMove(t,i)}pinchMove(t,e){const i=this.state,s=i._values[1],n=e.angle-s;let o=0;Math.abs(n)>270&&(o+=Math.sign(n)),this.computeValues([e.distance,e.angle-360*o]),i.origin=e.origin,i.turns=o,i._movement=[i._values[0]/i._initial[0]-1,i._values[1]-i._initial[1]],this.compute(t),this.emit()}touchEnd(t){this.ctrl.setEventIds(t),this.state._active&&this.state._touchIds.some(t=>!this.ctrl.touchIds.has(t))&&(this.state._active=!1,this.compute(t),this.emit())}pointerEnd(t){const e=this.state;this.ctrl.setEventIds(t);try{t.target.releasePointerCapture(t.pointerId)}catch(t){}e._pointerEvents.has(t.pointerId)&&e._pointerEvents.delete(t.pointerId),e._active&&e._pointerEvents.size<2&&(e._active=!1,this.compute(t),this.emit())}gestureStart(t){t.cancelable&&t.preventDefault();const e=this.state;e._active||(this.start(t),this.computeValues([t.scale,t.rotation]),e.origin=[t.clientX,t.clientY],this.compute(t),this.emit())}gestureMove(t){if(t.cancelable&&t.preventDefault(),!this.state._active)return;const e=this.state;this.computeValues([t.scale,t.rotation]),e.origin=[t.clientX,t.clientY];const i=e._movement;e._movement=[t.scale-1,t.rotation],e._delta=s.V.sub(e._movement,i),this.compute(t),this.emit
1()}gestureEnd(t){this.state._active&&(this.state._active=!1,this.compute(t),this.emit())}wheel(t){const e=this.config.modifierKey;e&&!(Array.isArray(e)?e.find(e=>t[e]):t[e])||(this.state._active?this.wheelChange(t):this.wheelStart(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(t){this.start(t),this.wheelChange(t)}wheelChange(t){"uv"in t||t.cancelable&&t.preventDefault();const e=this.state;e._delta=[-k(t)[1]/100*e.offset[0],0],s.V.addTo(e._movement,e._delta),H(e),this.state.origin=[t.clientX,t.clientY],this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){const e=this.config.device;e&&(t(e,"start",this[e+"Start"].bind(this)),t(e,"change",this[e+"Move"].bind(this)),t(e,"end",this[e+"End"].bind(this)),t(e,"cancel",this[e+"End"].bind(this)),t("lostPointerCapture","",this[e+"End"].bind(this))),this.config.pinchOnWheel&&t("wheel","",this.wheel.bind(this),{passive:!1})}},resolver:U},Z={key:"scroll",engine:class extends M{constructor(...t){super(...t),o(this,"ingKey","scrolling")}scroll(t){this.state._active||this.start(t),this.scrollChange(t),this.timeoutStore.add("scrollEnd",this.scrollEnd.bind(this))}scrollChange(t){t.cancelable&&t.preventDefault();const e=this.state,i=function(t){var e,i;const{scrollX:s,scrollY:n,scrollLeft:o,scrollTop:r}=t.currentTarget;return[null!==(e=null!=s?s:o)&&void 0!==e?e:0,null!==(i=null!=n?n:r)&&void 0!==i?i:0]}(t);e._delta=s.V.sub(i,e._values),s.V.addTo(e._movement,e._delta),this.computeValues(i),this.compute(t),this.emit()}scrollEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){t("scroll","",this.scroll.bind(this))}},resolver:Y},$={key:"wheel",engine:class extends M{constructor(...t){super(...t),o(this,"ingKey","wheeling")}wheel(t){this.state._active||this.start(t),this.wheelChange(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(t){const e=this.state;e._delta=k(t),s.V.addTo(e._movement,e._delta),H(e),this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){t("wheel","",this.wheel.bind(this))}},resolver:z}},851385:(t,e,i)=>{"use strict";i.r(e),i.d(e,{Controller:()=>u,parseMergedHandlers:()=>v});var s=i(655268);function n(t,e){if(null==t)return{};var i,s,n=function(t,e){if(null==t)return{};var i,s,n={},o=Object.keys(t);for(s=0;s<o.length;s++)i=o[s],e.indexOf(i)>=0||(n[i]=t[i]);return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(s=0;s<o.length;s++)i=o[s],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}const o={target(t){if(t)return()=>"current"in t?t.current:t},enabled:(t=!0)=>t,window:(t=(s.S.isBrowser?window:void 0))=>t,eventOptions:({passive:t=!0,capture:e=!1}={})=>({passive:t,capture:e}),transform:t=>t},r=["target","eventOptions","window","enabled","transform"];function a(t={},e){const i={};for(const[s,n]of Object.entries(e))switch(typeof n){case"function":i[s]=n.call(i,t[s],s,t);break;case"object":i[s]=a(t[s],n);break;case"boolean":n&&(i[s]=t[s])}return i}class c{constructor(t,e){(0,s.a)(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=e}add(t,e,i,n,o){const r=this._listeners,a=(0,s.t)(e,i),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},h=(0,s._)((0,s._)({},c),o);t.addEventListener(a,n,h);const u=()=>{t.removeEventListener(a,n,h),r.delete(u)};return r.add(u),u}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class h{constructor(){(0,s.a)(this,"_timeouts",new Map)}add(t,e,i=140,...s){this.remove(t),this._timeouts.set(t,window.setTimeout(e,i,...s))}remove(t){const e=this._timeouts.get(t);e&&window.clearTimeout(e)}clean(){this._timeouts.forEach(t=>{window.clearTimeout(t)}),this._timeouts.clear()}}class u{constructor(t){(0,s.a)(this,"gestures",new Set),(0,s.a)(this,"_targetEventStore",new c(this)),(0,s.a)(this,"gestureEventStores",{}),(0,s.a)(this,"gestureTimeoutStores",{}),(0,s.a)(this,"handlers",{}),(0,s.a)(this,"config",{}),(0,s.a)(this,"pointerIds",new Set),(0,s.a)(this,"touchIds",new Set),(0,s.a)(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(t,e){e.drag&&l(t,"drag");e.wheel&&l(t,"wheel");e.scroll&&l(t,"scroll");e.move&&l(t,"move");e.pinch&&l(t,"pinch");e.hover&&l(t,"hover")}(this,t)}setEventIds(t){return(0,s.i)(t)?(this.touchIds=new Set((0,s.b)(t)),this.touchIds):"pointerId"in t?("pointerup"===t.type||"pointercancel"===t.type?this.pointerIds.delete(t.pointerId):"pointerdown"===t.type&&this.pointerIds.add(t.pointerId),this.pointerIds):void 0}applyHandlers(t,e){this.handlers=t,this.nativeHandlers=e}
1applyConfig(t,e){this.config=function(t,e,i={}){const c=t,{target:h,eventOptions:u,window:l,enabled:d,transform:p}=c,f=n(c,r);if(i.shared=a({target:h,eventOptions:u,window:l,enabled:d,transform:p},o),e){const t=s.C.get(e);i[e]=a((0,s._)({shared:i.shared},f),t)}else for(const t in f){const e=s.C.get(t);e&&(i[t]=a((0,s._)({shared:i.shared},f[t]),e))}return i}(t,e,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const e=this.config.shared,i={};let n;if(!e.target||(n=e.target(),n)){if(e.enabled){for(const e of this.gestures){const o=this.config[e],r=d(i,o.eventOptions,!!n);if(o.enabled){new(s.E.get(e))(this,t,e).bind(r)}}const o=d(i,e.eventOptions,!!n);for(const e in this.nativeHandlers)o(e,"",i=>this.nativeHandlers[e]((0,s._)((0,s._)({},this.state.shared),{},{event:i,args:t})),void 0,!0)}for(const t in i)i[t]=(0,s.c)(...i[t]);if(!n)return i;for(const t in i){const{device:e,capture:o,passive:r}=(0,s.p)(t);this._targetEventStore.add(n,e,"",i[t],{capture:o,passive:r})}}}}function l(t,e){t.gestures.add(e),t.gestureEventStores[e]=new c(t,e),t.gestureTimeoutStores[e]=new h}const d=(t,e,i)=>(n,o,r,a={},c=!1)=>{var h,u;const l=null!==(h=a.capture)&&void 0!==h?h:e.capture,d=null!==(u=a.passive)&&void 0!==u?u:e.passive;let p=c?n:(0,s.d)(n,o,l);i&&d&&(p+="Passive"),t[p]=t[p]||[],t[p].push(r)},p=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function f(t,e,i,n,o,r){if(!t.has(i))return;if(!s.E.has(n))return void 0;const a=i+"Start",c=i+"End";o[n]=t=>{let s;return t.first&&a in e&&e[a](t),i in e&&(s=e[i](t)),t.last&&c in e&&e[c](t),s},r[n]=r[n]||{}}function v(t,e){const[i,s,n]=function(t){const e={},i={},s=new Set;for(let n in t)p.test(n)?(s.add(RegExp.lastMatch),i[n]=t[n]):e[n]=t[n];return[i,e,s]}(t),o={};return f(n,i,"onDrag","drag",o,e),f(n,i,"onWheel","wheel",o,e),f(n,i,"onScroll","scroll",o,e),f(n,i,"onPinch","pinch",o,e),f(n,i,"onMove","move",o,e),f(n,i,"onHover","hover",o,e),{handlers:o,config:e,nativeHandlers:s}}},949370:(t,e,i)=>{"use strict";t.exports=i(291459)},988052:(t,e,i)=>{"use strict";i.d(e,{V:()=>s,c:()=>r,r:()=>o});const s={toVector:(t,e)=>(void 0===t&&(t=e),Array.isArray(t)?t:[t,t]),add:(t,e)=>[t[0]+e[0],t[1]+e[1]],sub:(t,e)=>[t[0]-e[0],t[1]-e[1]],addTo(t,e){t[0]+=e[0],t[1]+=e[1]},subTo(t,e){t[0]-=e[0],t[1]-=e[1]}};function n(t,e,i){return 0===e||Math.abs(e)===1/0?Math.pow(t,5*i):t*e*i/(e+i*t)}function o(t,e,i,s=.15){return 0===s?function(t,e,i){return Math.max(e,Math.min(t,i))}(t,e,i):t<e?-n(e-t,i-e,s)+e:t>i?+n(t-i,i-e,s)+i:t}function r(t,[e,i],[s,n]){const[[r,a],[c,h]]=t;return[o(e,r,a,s),o(i,c,h,n)]}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.