PageSourceSearch

https://www.flikflak.com/on/demandware.static/Sites-swarp-AM-Site/…/v1790237062766/react.3575.d1b7d6.bundle.js

js flikflak.com collected 2026-09-24 20:07:49 UTC 31,437 bytes, 1 lines download raw bytes

1(self.webpackChunkapp_react_swatch=self.webpackChunkapp_react_swatch||[]).push([[3575],{181:(t,e,i)=>{var s=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,r=/^0o[0-7]+$/i,a=parseInt,c="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,h="object"==typeof self&&self&&self.Object===Object&&self,u=c||h||Function("return this")(),l=Object.prototype.toString,d=Math.max,p=Math.min,f=function(){return u.Date.now()};function v(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function m(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==l.call(t)}(t))return NaN;if(v(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=v(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var i=o.test(t);return i||r.test(t)?a(t.slice(2),i?2:8):n.test(t)?NaN:+t}t.exports=function(t,e,i){var s,n,o,r,a,c,h=0,u=!1,l=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(e){var i=s,o=n;return s=n=void 0,h=e,r=t.apply(o,i)}function _(t){var i=t-c;return void 0===c||i>=e||i<0||l&&t-h>=o}function y(){var t=f();if(_(t))return w(t);a=setTimeout(y,function(t){var i=e-(t-c);return l?p(i,o-(t-h)):i}(t))}function w(t){return a=void 0,g&&s?b(t):(s=n=void 0,r)}function S(){var t=f(),i=_(t);if(s=arguments,n=this,c=t,i){if(void 0===a)return function(t){return h=t,a=setTimeout(y,e),u?b(t):r}(c);if(l)return a=setTimeout(y,e),b(c)}return void 0===a&&(a=setTimeout(y,e)),r}return e=m(e)||0,v(i)&&(u=!!i.leading,o=(l="maxWait"in i)?d(m(i.maxWait)||0,e):o,g="trailing"in i?!!i.trailing:g),S.cancel=function(){void 0!==a&&clearTimeout(a),h=0,s=c=n=a=void 0},S.flush=function(){return void 0===a?r:w(f())},S}},4164:(t,e,i)=>{"use strict";function s(t){var e,i,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(i=s(t[e]))&&(n&&(n+=" "),n+=i)}else for(i in t)t[i]&&(n&&(n+=" "),n+=i);return n}i.d(e,{A:()=>n});const n=function(){for(var t,e,i=0,n="",o=arguments.length;i<o;i++)(t=arguments[i])&&(e=s(t))&&(n&&(n+=" "),n+=e);return n}},5197:(t,e,i)=>{"use strict";i.d(e,{useGesture:()=>ht});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){return(e=function(t){var e=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function a(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 c(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach(function(e){r(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}const h={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 u(t){return t?t[0].toUpperCase()+t.slice(1):""}const l=["enter","leave"];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){return"touches"in t}function v(t){return f(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function m(t){return f(t)?function(t){return"touchend"===t.type||"touchcancel"===t.type?t.changedTouches:t.targetTouches}(t)[0]:t}function g(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);return{angle:-180*Math.atan2(i,s)/Math.PI,distance:r,origin:[n,o]}}catch(t){}return null}function b(t,e){const[i,s]=Array.from(t.touches).filter(t=>e.includes(t.identifier));return g(i,s)}function _(t){const e=m(t);return f(t)?e.identifier:e.pointerId}function y(t){const e=m(t);return[e.clientX,e.clientY]}function w(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 S(t,...e){return"function"==typeof t?t(...e):t}function x(){}function k(...t){return 0===t.length?x: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 E{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())}
1get 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?S(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 r=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,r=t.timeStamp-e.timeStamp,e.timeStamp=t.timeStamp,e.elapsedTime=e.timeStamp-e.startTime),e._active){const t=e._delta.map(Math.abs);s.addTo(e._distance,t)}this.axisIntent&&this.axisIntent(t);const[a,c]=e._movement,[h,u]=i.threshold,{_step:l,values:d}=e;if(i.hasCustomTransform?(!1===l[0]&&(l[0]=Math.abs(a)>=h&&d[0]),!1===l[1]&&(l[1]=Math.abs(c)>=u&&d[1])):(!1===l[0]&&(l[0]=Math.abs(a)>=h&&Math.sign(a)*h),!1===l[1]&&(l[1]=Math.abs(c)>=u&&Math.sign(c)*u)),e.intentional=!1!==l[0]||!1!==l[1],!e.intentional)return;const p=[0,0];if(i.hasCustomTransform){const[t,e]=d;p[0]=!1!==l[0]?t-l[0]:0,p[1]=!1!==l[1]?e-l[1]:0}else p[0]=!1!==l[0]?a-l[0]:0,p[1]=!1!==l[1]?c-l[1]:0;this.restrictToAxis&&!e._blocked&&this.restrictToAxis(p);const f=e.offset,v=e._active&&!e._blocked||e.active;v&&(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=S(i.bounds,e)),this.setup&&this.setup()),e.movement=p,this.computeOffset()));const[m,g]=e.offset,[[b,_],[y,w]]=e._bounds;e.overflow=[m<b?-1:m>_?1:0,g<y?-1:g>w?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 x=e._active&&i.rubberband||[0,0];if(e.offset=function(t,[e,i],[s,n]){const[[r,a],[c,h]]=t;return[o(e,r,a,s),o(i,c,h,n)]}(e._bounds,e.offset,x),e.delta=s.sub(e.offset,f),this.computeMovement(),v&&(!e.last||r>32)){e.delta=s.sub(e.offset,f);const t=e.delta.map(Math.abs);s.addTo(e.distance,t),e.direction=e.delta.map(Math.sign),e._direction=e._delta.map(Math.sign),!e.first&&r>0&&(e.velocity=[t[0]/r,t[1]/r],e.timeDelta=r)}}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(c(c(c({},e),t),{},{[this.aliasKey]:t.values}));void 0!==s&&(t.memo=s)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class O extends E{constructor(...t){super(...t),r(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.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=s.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[v(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,M={enabled:(t=!0)=>t,eventOptions:(t,e,i)=>c(c({},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.toVector(t)}},from:t=>"function"==typeof t?t:null!=t?s.toVector(t):void 0,transform(t,e,i){const s=t||i.shared.transform;return this.hasCustomTransform=!!s,s||I},threshold:t=>s.toVector(t,0)},A=c(c({},M),{},{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=>A.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]},C="undefined"!=typeof window&&window.document&&window.document.createElement;function P(){return C&&"ontouchstart"in window}const j={isBrowser:C,gesture:function(){try{return"constructor"in GestureEvent}catch(t){return!1}}(),touch:P(),touchscreen:P()||C&&window.navigator.maxTouchPoints>1,pointer:C&&"onpointerdown"in window,pointerLock:C&&"exitPointerLock"in window.document},K={mouse:0,touch:0,pen:8},B=c(c({},A),{},{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.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.toVector(t)),distance:this.transform(s.toVector(e)),duration:i}},delay(t=0){switch(t){case!0:return 180;case!1:return 0;default:return t}},axisThreshold:t=>t?c(c({},K),t):K,keyboardDisplacement:(t=10)=>t});function L(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 V=c(c({},M),{},{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(S(i,t),{min:-1/0,max:1/0});return[e.min,e.max]},o=t=>{const e=T(S(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){return this.lockDirection="lock"===i.axis,s.toVector(t,this.lockDirection?[.1,3]:0)},modifierKey:t=>void 0===t?"ctrlKey":t,pinchOnWheel:(t=!0)=>t}),z=c(c({},A),{},{mouseOnly:(t=!0)=>t}),H=A,Y=A,R=c(c({},A),{},{mouseOnly:(t=!0)=>t}),X=new Map,U=new Map;function W(t){X.set(t.key,t.engine),U.set(t.key,t.resolver)}const N={key:"drag",engine:class extends O{constructor(...t){super(...t),r(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=A.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=_(t),i._pointerActive=!0,this.computeValues(y(t)),this.computeInitial(),e.preventScrollAxis&&"mouse"!==v(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=_(t);if(void 0!==e._pointerId&&n!==e._pointerId)return;const o=y(t);return document.pointerLockElement===t.target?e._delta=[t.movementX,t.movementY]:(e._delta=s.sub(o,e._values),this.computeValues(o)),s.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){}const e=this.state,i=this.config;if(!e._active||!e._pointerActive)return;const s=_(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.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:B},$={key:"hover",engine:class extends O{constructor(...t){super(...t),r(this,"ingKey","hovering")}enter(t){this.config.mouseOnly&&"mouse"!==t.pointerType||(this.start(t),this.computeValues(y(t)),this.compute(t),this.emit
vendor: 4,250 bytes, line 1
1())}leave(t){if(this.config.mouseOnly&&"mouse"!==t.pointerType)return;const e=this.state;if(!e._active)return;e._active=!1;const i=y(t);e._movement=e._delta=s.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},G={key:"move",engine:class extends O{constructor(...t){super(...t),r(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(y(t)),this.compute(t),this.computeInitial(),this.emit()}moveChange(t){if(!this.state._active)return;const e=y(t),i=this.state;i._delta=s.sub(e,i._values),s.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:z},q={key:"pinch",engine:class extends E{constructor(...t){super(...t),r(this,"ingKey","pinching"),r(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.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=b(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=g(...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=b(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=g(...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.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=[-w(t)[1]/100*e.offset[0],0],s.addTo(e._movement,e._delta),L(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:V},F={key:"scroll",engine:class extends O{constructor(...t){super(...t),r(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.sub(i,e._values),s.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:H},J={key:"wheel",engine:class extends O{constructor(...t){super(...t),r(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=w(t),s.addTo(e._movement,e._delta),L(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:Y};var Q=i(6540);const Z={target(t){if(t)return()=>"current"in t?t.current:t},enabled:(t=!0)=>t,window:(t=(j.isBrowser?window:void 0))=>t,eventOptions:({passive:t=!0,capture:e=!1}={})=>({passive:t,capture:e}),transform:t=>t},tt=["target","eventOptions","window","enabled","transform"];function et(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]=et(t[s],n);break;case"boolean":n&&(i[s]=t[s])}return i}class it{constructor(t,e){r(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=e}add(t,e,i,s,n){const o=this._listeners,r=function(t,e=""){const i=h[t];return t+(i&&i[e]||e)}(e,i),a=c(c({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),n);t.addEventListener(r,s,a);const u=()=>{t.removeEventListener(r,s,a),o.delete(u)};return o.add(u),u}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class st{constructor(){r(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 nt{constructor(t){var e,i;r(this,"gestures",new Set),r(this,"_targetEventStore",new it(this)),r(this,"gestureEventStores",{}),r(this,"gestureTimeoutStores",{}),r(this,"handlers",{}),r(this,"config",{}),r(this,"pointerIds",new Set),r(this,"touchIds",new Set),r(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),e=this,(i=t).drag&&ot(e,"drag"),i.wheel&&ot(e,"wheel"),i.scroll&&ot(e,"scroll"),i.move&&ot(e,"move"),i.pinch&&ot(e,"pinch"),i.hover&&ot(e,"hover")}setEventIds(t){return f(t)?(this.touchIds=new Set(function(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)}(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}applyConfig(t,e){this.config=function(t,e,i={}){const s=t,{target:n,eventOptions:o,window:r,enabled:a,transform:h}=s,u=function(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}(s,tt);if(i.shared=et({target:n,eventOptions:o,window:r,enabled:a,transform:h},Z),e){const t=U.get(e);i[e]=et(c({shared:i.shared},u),t)}else for(const t in u){const e=U.get(t);e&&(i[t]=et(c({shared:i.shared},u[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 s;if(!e.target||(s=e.target(),s)){if(e.enabled){for(const e of this.gestures){const n=this.config[e],o=rt(i,n.eventOptions,!!s);n.enabled&&new(X.get(e))(this,t,e).bind(o)}const n=rt(i,e.eventOptions,!!s);for(const e in this.nativeHandlers)n(e,"",i=>this.nativeHandlers[e](c(c({},this.state.shared),{},{event:i,args:t})),void 0,!0)}for(const t in i)i[t]=k(...i[t]);if(!s)return i;for(const t in i){const{device:e,capture:n,passive:o}=p(t);this._targetEventStore.add(s,e,"",i[t],{capture:n,passive:o})}}}}function ot(t,e){t.gestures.add(e),t.gestureEventStores[e]=new it(t,e),t.gestureTimeoutStores[e]=new st}const rt=(t,e,i)=>(s,n,o,r={},a=!1)=>{var c,d;const p=null!==(c=r.capture)&&void 0!==c?c:e.capture,f=null!==(d=r.passive)&&void 0!==d?d:e.passive;let v=a?s:function(t,e="",i=!1){const s=h[t],n=s&&s[e]||e;return"on"+u(t)+u(n)+(function(t=!1,e){return t&&!l.includes(e)}(i,n)?"Capture":"")}(s,n,p);i&&f&&(v+="Passive"),t[v]=t[v]||[],t[v].push(o)},at=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function ct(t,e,i,s,n,o){if(!t.has(i))return;if(!X.has(s))return;const r=i+"Start",a=i+"End";n[s]=t=>{let s;return t.first&&r in e&&e[r](t),i in e&&(s=e[i](t)),t.last&&a in e&&e[a](t),s},o[s]=o[s]||{}}function ht(t,e){const i=([N,q,F,J,G,$].forEach(W),function(t,e){const{handlers:i,nativeHandlers:s,config:n}=function(t,e){const[i,s,n]=function(t){const e={},i={},s=new Set;for(let n in t)at.test(n)?(s.add(RegExp.lastMatch),i[n]=t[n]):e[n]=t[n];return[i,e,s]}(t),o={};return ct(n,i,"onDrag","drag",o,e),ct(n,i,"onWheel","wheel",o,e),ct(n,i,"onScroll","scroll",o,e),ct(n,i,"onPinch","pinch",o,e),ct(n,i,"onMove","move",o,e),ct(n,i,"onHover","hover",o,e),{handlers:o,config:e,nativeHandlers:s}}(t,e||{});return function(t,e={},i,s){const n=Q.useMemo(()=>new nt(t),[]);if(n.applyHandlers(t,s),n.applyConfig(e,i),Q.useEffect(n.effect.bind(n)),Q.useEffect(()=>n.clean.bind(n),[]),void 0===e.target)return n.bind.bind(n)}(i,n,void 0,s)});return i(t,e||{})}},8486:(t,e,i)=>{"use strict";i.d(e,{wY:()=>o});var s=i(6540);i(181),"undefined"!=typeof window?s.useLayoutEffect:s.useEffect;var n={width:void 0,height:void 0};function o(t){const{ref:e,box:i="content-box"}=t,[{width:o,height:a},c]=(0,s.useState)(n),h=function(){const t=(0,s.useRef)(!1);return(0,s.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),(0,s.useCallback)(()=>t.current,[])}(),u=(0,s.useRef)({...n}),l=(0,s.useRef)(void 0);return l.current=t.onResize,(0,s.useEffect)(()=>{if(!e.current)return;if("undefined"==typeof window||!("ResizeObserver"in window))return;const t=new ResizeObserver(([t])=>{const e="border-box"===i?"borderBoxSize":"device-pixel-content-box"===i?"devicePixelContentBoxSize":"contentBoxSize",s=r(t,e,"inlineSize"),n=r(t,e,"blockSize");if(u.current.width!==s||u.current.height!==n){const t={width:s,height:n};u.current.width=s,u.current.height=n,l.current?l.current(t):h()&&c(t)}});return t.observe(e.current,{box:i}),()=>{t.disconnect()}},[i,e,h]),{width:o,height:a}}function r(t,e,i){return t[e]?Array.isArray(t[e])?t[e][0][i]:t[e][i]:"contentBoxSize"===e?t.contentRect["inlineSize"===i?"width":"height"]:void 0}}}]);

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.