PageSourceSearch

https://smartdriver.ai/c629cd1f-afe5d93556dcdc1bd276.js

js smartdriver.ai collected 2026-10-05 15:05:51 UTC 77,483 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_template_autopted=self.webpackChunk_template_autopted||[]).push([[43],{60934:function(t,n,e){e.r(n),e.d(n,{AnimateLayoutFeature:function(){return dr},AnimatePresence:function(){return Vr},AnimateSharedLayout:function(){return kr},AnimationControls:function(){return Ne},AnimationFeature:function(){return ir},DragControls:function(){return ui},DragFeature:function(){return Oe},ExitFeature:function(){return Qe},FramerTreeLayoutContext:function(){return _n},GesturesFeature:function(){return $e},HTMLVisualElement:function(){return en},MotionConfig:function(){return Dn},MotionConfigContext:function(){return Mn},MotionValue:function(){return f},PresenceContext:function(){return yn},SharedLayoutContext:function(){return Xn},VisibilityAction:function(){return Rn},addScaleCorrection:function(){return Pt},animate:function(){return oi},animationControls:function(){return qe},createBatcher:function(){return In},createDomMotionComponent:function(){return Er},createMotionComponent:function(){return Qn},isValidMotionProp:function(){return wn},m:function(){return Cr},motion:function(){return br},motionValue:function(){return p},resolveMotionValue:function(){return Ur},startAnimation:function(){return S},startVisualElementAnimation:function(){return z},transform:function(){return Yr},useAnimatedState:function(){return pi},useAnimation:function(){return ii},useCycle:function(){return ai},useDomEvent:function(){return ie},useDragControls:function(){return ci},useElementScroll:function(){return Nr},useExternalRef:function(){return li},useGestures:function(){return je},useInvertedScale:function(){return Wr},useIsPresent:function(){return Wn},useMotionTemplate:function(){return Fr},useMotionValue:function(){return Mr},usePanGesture:function(){return Ue},usePresence:function(){return Zn},useReducedMotion:function(){return ri},useSpring:function(){return jr},useTapGesture:function(){return He},useTransform:function(){return Xr},useViewportScroll:function(){return Jr}});var r=e(16227),i=e(22310),o=e(66644),a=e(19306),u=e(57816),s=e(52406),c=function(t){return"object"==typeof t&&t.hasOwnProperty("current")},l=function(){function t(){this.subscriptions=new Set}return t.prototype.add=function(t){var n=this;return this.subscriptions.add(t),function(){n.subscriptions.delete(t)}},t.prototype.notify=function(t,n,e){var i,o;if(this.subscriptions.size)try{for(var a=(0,r.XA)(this.subscriptions),u=a.next();!u.done;u=a.next()){(0,u.value)(t,n,e)}}catch(s){i={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}},t.prototype.clear=function(){this.subscriptions.clear()},t}(),f=function(){function t(t){var n,e=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new l,this.renderSubscribers=new l,this.canTrackVelocity=!1,this.updateAndNotify=function(t,n){void 0===n&&(n=!0),e.prev=e.current,e.current=t,e.prev!==e.current&&e.updateSubscribers.notify(e.current),n&&e.renderSubscribers.notify(e.current);var r=(0,i.$B)(),o=r.delta,a=r.timestamp;e.lastUpdated!==a&&(e.timeDelta=o,e.lastUpdated=a,i.ZP.postRender(e.scheduleVelocityCheck))},this.scheduleVelocityCheck=function(){return i.ZP.postRender(e.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==e.lastUpdated&&(e.prev=e.current)},this.set(t,!1),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n)))}return t.prototype.onChange=function(t){return this.updateSubscribers.add(t)},t.prototype.clearListeners=function(){this.updateSubscribers.clear()},t.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},t.prototype.attach=function(t){this.passiveEffect=t},t.prototype.set=function(t,n){void 0===n&&(n=!0),n&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,n)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?(0,o.Rv)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(t){var n=this;return this.stop(),new Promise((function(e){n.stopAnimation=t(e)})).then((function(){return n.clearAnimation()}))},t.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},t.prototype.isAnimating=function(){return!!this.stopAnimation},t.prototype.clearAnimation=function(){this.stopAnimation=null},t.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},t}();function p(t){return new f(t)}var d=function(t){return 1e3*t},h={linear:o.GE,easeIn:o.YQ,easeInOut:o.mZ,easeOut:o.Vv,circIn:o.Z7,circInOut:o.X7,circOut:o.Bn,backIn:o.G2,backInOut:o.XL,backOut:o.CG,anticipate:o.LU,bounceIn:o.h9,bounceInOut:o.yD,bounceOut:o.gJ},v=function(t){if(Array.isArray(t)){(0,a.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");var n=(0,r.CR)(t,4),e=n[0],i=n[1],u=n[2],s=n[3];return(0,o._s)(e,i,u,s)}return"string"==typeof t?((0,a.k)(void 0!==h[t],"Invalid easing type '"+t+"'"),h[t]):t},m=function(t,n){return"zIndex"!==t&&(!("number"!=typeof n&&!Array.isArray(n))||!("string"!=typeof n||!u.PY.test(n)||n.startsWith("url(")))},g=function(t){return Array.isArray(t)},y=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},x=function(t){return{type:"spring",stiffness:550,damping:0===t?100:30,restDelta:.01,restSpeed:10}},b=function(){return{type:"keyframes",ease:"linear",duration:.3}},E=function(t){return{type:"keyframes",duration:.8,values:t}},C={x:y,y:y,z:y,rotate:y,rotateX:y,rotateY:y,rotateZ:y,scaleX:x,scaleY:x,scale:x,opacity:b,backgroundColor:b,color:b,default:x};function w(t){var n=t.yoyo,e=t.loop,i=t.flip,o=t.ease,a=t.times,u=(0,r._T)(t,["yoyo","loop","flip","ease","times"]),s=(0,r.pi)({},u);return a&&(s.offset=a),u.duration&&(s.duration=d(u.duration)),u.repeatDelay&&(s.repeatDelay=d(u.repeatDelay)),o&&(s.ease=function(t){return Array.isArray(t)&&"number"!=typeof t[0]}(o)?o.map(v):v(o)),"tween"===u.type&&(s.type="keyframes"),n?s.repeatType="reverse":e?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=e||n||i||u.repeat,"spring"!==u.type&&(s.type="keyframes"),s}function P(t,n,e){var i,o,a,u;return Array.isArray(n.to)&&(null!==(i=t.duration)&&void 0!==i||(t.duration=.8)),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=(0,r.fl)(t.to),t.to[0]=t.from)}(n),function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var n=(0,r._T)(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(n).length}(t)||(t=(0,r.pi)((0,r.pi)({},t),(o=e,a=n.to,u=g(a)?E:C[o]||C.default,(0,r.pi)({to:a},u(a))))),(0,r.pi)((0,r.pi)({},n),w(t))}function S(t,n,e,i){return void 0===i&&(i={}),n.start((function(s){var c,l,f=function(t,n,e,i,s){var c,l=function(t,n){return t[n]||t.default||t}(i,t),f=null!==(c=l.from)&&void 0!==c?c:n.get(),p=m(t,e);"none"===f&&p&&"string"==typeof e&&(f=u.PY.getAnimatableNone(e));var d=m(t,f);return(0,a.K)(d===p,"You are trying to animate "+t+' from "'+f+'" to "'+e+'". '+f+" is not an animatable value - to enable this animation set "+f+" to a value animatable to "+e+" via the `style` property."),d&&p&&!1!==l.type?function(){var i={from:f,to:e,velocity:n.getVelocity(),onComplete:s,onUpdate:function(t){return n.set(t)}};return"inertia"===l.type||"decay"===l.type?(0,o.II)((0,r.pi)((0,r.pi)({},i),l)):(0,o.jt)((0,r.pi)((0,r.pi)({},P(l,i,t)),{onUpdate:function(t){var n;i.onUpdate(t),null===(n=l.onUpdate)||void 0===n||n.call(l,t)},onComplete:function(){var t;i.onComplete(),null===(t=l.onComplete)||void 0===t||t.call(l)}}))}:function(){var t;return n.set(e),s(),null===(t=null==l?void 0:l.onComplete)||void 0===t||t.call(l),{stop:function(){}}}}(t,n,e,i,s),p=function(t,n){var e,r,i,o,a;return null!==(a=null!==(o=null!==(r=null===(e=t[n])||void 0===e?void 0:e.delay)&&void 0!==r?r:null===(i=t.default)||void 0===i?void 0:i.delay)&&void 0!==o?o:t.delay)&&void 0!==a?a:0}(i,t),h=function(){return l=f()};return p?c=setTimeout(h,d(p)):h(),function(){clearTimeout(c),null==l||l.stop()}}))}var A=function(t){return g(t)?t[t.length-1]||0:t},T=(0,r.pi)((0,r.pi)({},u.Rx),{transform:Math.round}),V={color:u.$_,backgroundColor:u.$_,outlineColor:u.$_,fill:u.$_,stroke:u.$_,borderColor:u.$_,borderTopColor:u.$_,borderRightColor:u.$_,borderBottomColor:u.$_,borderLeftColor:u.$_,borderWidth:u.px,borderTopWidth:u.px,borderRightWidth:u.px,borderBottomWidth:u.px,borderLeftWidth:u.px,borderRadius:u.px,radius:u.px,borderTopLeftRadius:u.px,borderTopRightRadius:u.px,borderBottomRightRadius:u.px,borderBottomLeftRadius:u.px,width:u.px,maxWidth:u.px,height:u.px,maxHeight:u.px,size:u.px,top:u.px,right:u.px,bottom:u.px,left:u.px,padding:u.px,paddingTop:u.px,paddingRight:u.px,paddingBottom:u.px,paddingLeft:u.px,margin:u.px,marginTop:u.px,marginRight:u.px,marginBottom:u.px,marginLeft:u.px,rotate:u.RW,rotateX:u.RW,rotateY:u.RW,rotateZ:u.RW,scale:u.bA,scaleX:u.bA,scaleY:u.bA,scaleZ:u.bA,skew:u.RW,skewX:u.RW,skewY:u.RW,distance:u.px,translateX:u.px,translateY:u.px,translateZ:u.px,x:u.px,y:u.px,z:u.px,perspective:u.px,transformPerspective:u.px,opacity:u.Fq,originX:u.$C,originY:u.$C,originZ:u.px,zIndex:T,fillOpacity:u.Fq,strokeOpacity:u.Fq,numOctaves:T},L=[u.Rx,u.px,u.aQ,u.RW,u.vw,u.vh,{test:function(t){return"auto"===t},parse:function(t){return t}}],R=function(t){return function(n){return n.test(t)}},B=function(t){return L.find(R(t))},k=(0,r.fl)(L,[u.$_,u.PY]),M=function(t){return k.find(R(t))},D=function(t){return V[t]},O=function(t,n){return n&&"number"==typeof t?n.transform(t):t};function F(t){return Array.isArray(t)}function U(t){return"string"==typeof t||F(t)}function I(t,n,e){var i={};return n?(i=function(t){return"function"==typeof t}(n)?n(null!=e?e:t.getVariantPayload(),function(t){var n={};return t.forEachValue((function(t,e){return n[e]=t.get()})),n}(t),function(t){var n={};return t.forEachValue((function(t,e){return n[e]=t.getVelocity()})),n}(t)):n,(0,r.pi)({transition:t.getDefaultTransition()},i)):i}function Y(t,n,e){t.hasValue(n)?t.getValue(n).set(e):t.addValue(n,p(e))}function X(t,n,e){var i=(void 0===e?{}:e).priority,o=t.makeTargetAnimatable(I(t,n),!1),a=o.transitionEnd,u=void 0===a?{}:a,s=(o.transition,(0,r._T)(o,["transitionEnd","transition"]));for(var c in s=(0,r.pi)((0,r.pi)({},s),u)){var l=A(s[c]);Y(t,c,l),i||(t.baseTarget[c]=l)}}
1function _(t,n){(0,r.fl)(n).reverse().forEach((function(e){var r;X(t,t.getVariant(e)),null===(r=t.variantChildren)||void 0===r||r.forEach((function(t){_(t,n)}))}))}function H(t,n){return Array.isArray(n)?_(t,n):"string"==typeof n?_(t,[n]):void X(t,n)}function Z(t,n,e){var r,i,o,s=Object.keys(n).filter((function(n){return!t.hasValue(n)})),c=s.length;if(c)for(var l=0;l<c;l++){var f=s[l],d=n[f],h=null;if(Array.isArray(d)&&(h=d[0]),null===h){var v=null!==(r=e[f])&&void 0!==r?r:t.readNativeValue(f);h=void 0!==v?v:n[f],(0,a.k)(null!==h,'No initial value for "'+f+'" can be inferred. Ensure an initial value for "'+f+'" is defined on the component.')}"string"==typeof h&&/^\-?\d*\.?\d+$/.test(h)?h=parseFloat(h):!M(h)&&u.PY.test(d)&&(h=u.PY.getAnimatableNone(d)),t.addValue(f,p(h)),null!==(i=(o=e)[f])&&void 0!==i||(o[f]=h),t.baseTarget[f]=h}}function W(t,n){if(n)return(n[t]||n.default||n).from}function j(t,n,e){var r,i,o={};for(var a in t)o[a]=null!==(r=W(a,n))&&void 0!==r?r:null===(i=e.getValue(a))||void 0===i?void 0:i.get();return o}function z(t,n,e){var i;return void 0===e&&(e={}),e.priority&&t.activeOverrides.add(e.priority),t.resetIsAnimating(e.priority),i=F(n)?function(t,n,e){var i=(0,r.fl)(n).reverse().map((function(n){return G(t,n,e)}));return Promise.all(i)}(t,n,e):U(n)?G(t,n,e):$(t,n,e),t.onAnimationStart(),i.then((function(){return t.onAnimationComplete()}))}function G(t,n,e){var i,o=e&&e.priority||0,a=t.getVariant(n),u=I(t,a,e&&e.custom),s=u.transition||{},c=a?function(){return $(t,u,e)}:function(){return Promise.resolve()},l=(null===(i=t.variantChildrenOrder)||void 0===i?void 0:i.size)?function(r){void 0===r&&(r=0);var i=s.delayChildren;return function(t,n,e,r,i,o,a){void 0===e&&(e=0);void 0===r&&(r=0);void 0===i&&(i=1);void 0===o&&(o=0);var u=[],s=(t.variantChildrenOrder.size-1)*r,c=1===i?function(t){return t*r}:function(t){return s-t*r};return Array.from(t.variantChildrenOrder).forEach((function(t,r){var i=G(t,n,{priority:o,delay:e+c(r),custom:a});u.push(i)})),Promise.all(u)}(t,n,(void 0===i?0:i)+r,s.staggerChildren,s.staggerDirection,o,null==e?void 0:e.custom)}:function(){return Promise.resolve()},f=s.when;if(f){var p=(0,r.CR)("beforeChildren"===f?[c,l]:[l,c],2),d=p[0],h=p[1];return d().then(h)}return Promise.all([c(),l(null==e?void 0:e.delay)])}function $(t,n,e){var i=void 0===e?{}:e,o=i.delay,a=void 0===o?0:o,u=i.priority,s=void 0===u?0:u,c=i.transitionOverride,l=i.custom,f=I(t,n,l);c&&(f.transition=c);var p=t.makeTargetAnimatable(f),d=p.transitionEnd,h=p.transition,v=(0,r._T)(p,["transitionEnd","transition"]);s&&(t.resolvedOverrides[s]=v);var m=[];for(var g in v){var y=t.getValue(g);if(y&&v&&void 0!==v[g]){var x=v[g];s||(t.baseTarget[g]=A(x)),t.isAnimating.has(g)||(t.isAnimating.add(g),m.push(S(g,y,x,(0,r.pi)({delay:a},h))))}}var b=Promise.all(m);return d?b.then((function(){return X(t,d,{priority:s})})):b}function N(t,n,e){var r;t.overrides[e]=n,null===(r=t.variantChildren)||void 0===r||r.forEach((function(t){N(t,n,e)}))}function q(t,n){var e=t.overrides[n];if(e)return z(t,e,{priority:n})}function K(t,n){var e;if(null===(e=t.variantChildrenOrder)||void 0===e||e.forEach((function(t){K(t,n)})),t.overrides[n]){t.activeOverrides.delete(n);var r=Q(t);if(t.resetIsAnimating(),r)t.overrides[r]&&q(t,r);var i=t.resolvedOverrides[n];if(i){var o={};for(var a in t.baseTarget)void 0!==i[a]&&(o[a]=t.baseTarget[a]);t.onAnimationStart(),$(t,o).then((function(){t.onAnimationComplete()}))}}}function Q(t){return t.activeOverrides.size?Math.max.apply(Math,(0,r.fl)(Array.from(t.activeOverrides))):0}var J=function(){function t(t,n){var e=this;this.children=new Set,this.baseTarget={},this.overrides=[],this.resolvedOverrides=[],this.activeOverrides=new Set,this.isAnimating=new Set,this.latest={},this.values=new Map,this.valueSubscriptions=new Map,this.config={},this.isMounted=!1,this.update=function(){return e.config.onUpdate(e.latest)},this.triggerRender=function(){return e.render()},this.ref=function(t){t?e.mount(t):e.unmount(),e.externalRef&&("function"==typeof e.externalRef?e.externalRef(t):c(e.externalRef)&&(e.externalRef.current=t))},this.parent=t,this.rootParent=t?t.rootParent:this,this.treePath=t?(0,r.fl)(t.treePath,[t]):[],this.depth=t?t.depth+1:0,this.externalRef=n}return t.prototype.getVariantPayload=function(){return this.config.custom},t.prototype.getVariant=function(t){var n;return null===(n=this.config.variants)||void 0===n?void 0:n[t]},t.prototype.addVariantChild=function(t){this.variantChildren||(this.variantChildren=new Set),this.variantChildren.add(t)},t.prototype.addVariantChildOrder=function(t){this.variantChildrenOrder||(this.variantChildrenOrder=new Set),this.variantChildrenOrder.add(t)},t.prototype.onAnimationStart=function(){var t,n;null===(n=(t=this.config).onAnimationStart)||void 0===n||n.call(t)},t.prototype.onAnimationComplete=function(){var t,n;this.isMounted&&(null===(n=(t=this.config).onAnimationComplete)||void 0===n||n.call(t))},t.prototype.getDefaultTransition=function(){return this.config.transition},t.prototype.resetIsAnimating=function(t){var n;void 0===t&&(t=0),this.isAnimating.clear(),t<Q(this)&&this.checkOverrideIsAnimating(t),null===(n=this.variantChildren)||void 0===n||n.forEac
1h((function(n){return n.resetIsAnimating(t)}))},t.prototype.checkOverrideIsAnimating=function(t){for(var n=this.overrides.length,e=t+1;e<n;e++){var r=this.resolvedOverrides[e];if(r)for(var i in r)this.isAnimating.add(i)}},t.prototype.subscribe=function(t){var n=this;return this.children.add(t),function(){return n.children.delete(t)}},t.prototype.hasValue=function(t){return this.values.has(t)},t.prototype.addValue=function(t,n){this.hasValue(t)&&this.removeValue(t),this.values.set(t,n),this.setSingleStaticValue(t,n.get()),this.subscribeToValue(t,n)},t.prototype.removeValue=function(t){var n;null===(n=this.valueSubscriptions.get(t))||void 0===n||n(),this.valueSubscriptions.delete(t),this.values.delete(t),delete this.latest[t]},t.prototype.getValue=function(t,n){var e=this.values.get(t);return void 0===e&&void 0!==n&&(e=new f(n),this.addValue(t,e)),e},t.prototype.forEachValue=function(t){this.values.forEach(t)},t.prototype.getInstance=function(){return this.element},t.prototype.updateConfig=function(t){void 0===t&&(t={}),this.config=(0,r.pi)({},t)},t.prototype.setSingleStaticValue=function(t,n){this.latest[t]=n},t.prototype.setStaticValues=function(t,n){if("string"==typeof t)this.setSingleStaticValue(t,n);else for(var e in t)this.setSingleStaticValue(e,t[e])},t.prototype.scheduleRender=function(){i.ZP.render(this.triggerRender,!1,!0)},t.prototype.scheduleUpdateLayoutDelta=function(){i.ZP.preRender(this.rootParent.updateLayoutDelta,!1,!0)},t.prototype.subscribeToValue=function(t,n){var e=this,r=n.onChange((function(n){e.setSingleStaticValue(t,n),e.element&&e.config.onUpdate&&i.ZP.update(e.update,!1,!0)})),o=n.onRenderRequest((function(){e.element&&e.scheduleRender()}));this.valueSubscriptions.set(t,(function(){r(),o()}))},t.prototype.mount=function(t){(0,a.k)(!!t,"No ref found. Ensure components created with motion.custom forward refs using React.forwardRef"),this.parent&&(this.removeFromParent=this.parent.subscribe(this)),this.element=this.current=t},t.prototype.unmount=function(){var t=this;this.forEachValue((function(n,e){return t.removeValue(e)})),i.qY.update(this.update),i.qY.render(this.render),this.removeFromParent&&this.removeFromParent()},t}();function tt(t){return t}function nt(t){var n=t.top;return{x:{min:t.left,max:t.right},y:{min:n,max:t.bottom}}}function et(t){return{x:(0,r.pi)({},t.x),y:(0,r.pi)({},t.y)}}var rt={translate:0,scale:1,origin:0,originPoint:0};function it(){return{x:(0,r.pi)({},rt),y:(0,r.pi)({},rt)}}var ot=["","X","Y","Z"],at=new Set,ut=["transformPerspective","x","y","z"];function st(t,n){return ut.indexOf(t)-ut.indexOf(n)}["perspective","translate","scale","rotate","skew"].forEach((function(t){var n=new Set(["rotate","skew"]).has(t);ot.forEach((function(e){var r=t+e;ut.push(r),n&&at.add(r)}))}));var ct=new Set(ut);function lt(t){return ct.has(t)}var ft=new Set(["originX","originY","originZ"]);function pt(t){return ft.has(t)}var dt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function ht(t,n){var e=t.x,r=t.y;return"translate3d("+e.translate/n.x+"px, "+r.translate/n.y+"px, 0) scale("+e.scale+", "+r.scale+")"}var vt=ht(it(),{x:1,y:1});function mt(t){return t.startsWith("--")}function gt(t){return"string"==typeof t&&t.startsWith("var(--")}var yt=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function xt(t,n,e){void 0===e&&(e=1),(0,a.k)(e<=4,'Max CSS variable fallback depth detected in property "'+t+'". This may indicate a circular fallback dependency.');var i=(0,r.CR)(function(t){var n=yt.exec(t);if(!n)return[,];var e=(0,r.CR)(n,3);return[e[1],e[2]]}(t),2),o=i[0],u=i[1];if(o){var s=window.getComputedStyle(n).getPropertyValue(o);return s?s.trim():gt(u)?xt(u,n,e+1):u}}function bt(t,n){return t/(n.max-n.min)*100}var Et="_$css";var Ct={process:function(t,n){if("string"==typeof t){if(!u.px.test(t))return t;t=parseFloat(t)}return bt(t,n.x)+"% "+bt(t,n.y)+"%"}},wt={borderRadius:(0,r.pi)((0,r.pi)({},Ct),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ct,borderTopRightRadius:Ct,borderBottomLeftRadius:Ct,borderBottomRightRadius:Ct,boxShadow:{process:function(t,n,e,r){var i=t,a=t.includes("var("),s=[];a&&(t=t.replace(yt,(function(t){return s.push(t),Et})));var c=u.PY.parse(t);if(c.length>5)return i;var l=u.PY.createTransformer(t),f="number"!=typeof c[0]?1:0,p=e.x.scale*r.x,d=e.y.scale*r.y;c[0+f]/=p,c[1+f]/=d;var h=(0,o.CD)(p,d,.5);"number"==typeof c[2+f]&&(c[2+f]/=h),"number"==typeof c[3+f]&&(c[3+f]/=h);var v=l(c);if(a){var m=0;v=v.replace(Et,(function(){var t=s[m];return m++,t}))}return v}}};function Pt(t){for(var n in t)wt[n]=t[n]}function St(t,n,e,r,i,o,a,u,s,c,l,f){var p=a.enableHardwareAcceleration,d=a.transformTemplate,h=a.allowTransformNone;o.length=0;var v=!1,m=!1,g=!0;for(var y in t){var x=t[y],b=D(y),E=O(x,b);
1if(lt(y)){if(v=!0,r[y]=E,o.push(y),!g)continue;x!==(void 0!==b.default?b.default:0)&&(g=!1)}else if(pt(y))i[y]=E,m=!0;else if("transform"!==y||"function"!=typeof x){var C=mt(y)?e:n;if(u&&wt[y]){var w=wt[y].process(x,f,s,l),P=wt[y].applyTo;if(P)for(var S=P.length,A=0;A<S;A++)C[P[A]]=w;else C[y]=w}else C[y]=E}}u?(n.transform=ht(c,l),n.transform===vt&&(n.transform=""),v&&(n.transform+=" "+function(t,n){var e="";n.sort(st);for(var r=n.length,i=0;i<r;i++){var o=n[i];at.has(o)&&(e+=o+"("+t[o]+") ")}return e}(r,o),n.transform=n.transform.trim()),d&&(n.transform=d(r,n.transform)),n.transformOrigin=function(t){var n=t.x,e=t.y;return 100*n.origin+"% "+100*e.origin+"% 0"}(c)):(v&&(n.transform=function(t,n,e,r,i,o){void 0===i&&(i=!0),void 0===o&&(o=!0);var a="";n.sort(st);for(var u=!1,s=n.length,c=0;c<s;c++){var l=n[c];a+=(dt[l]||l)+"("+t[l]+") ","z"===l&&(u=!0)}return!u&&i?a+="translateZ(0)":a=a.trim(),e?a=e(t,r?"":a):o&&r&&(a="none"),a}(r,o,d,g,p,h)),m&&(n.transformOrigin=function(t){var n=t.originX,e=void 0===n?"50%":n,r=t.originY,i=void 0===r?"50%":r,o=t.originZ;return e+" "+i+" "+(void 0===o?0:o)}(i)))}function At(t,n){t.min=n.min,t.max=n.max}function Tt(t,n,e){return e+n*(t-e)}function Vt(t,n,e,r,i){return void 0!==i&&(t=Tt(t,i,r)),Tt(t,e,r)+n}function Lt(t,n,e,r,i){void 0===n&&(n=0),void 0===e&&(e=1),t.min=Vt(t.min,n,e,r,i),t.max=Vt(t.max,n,e,r,i)}function Rt(t,n){var e=n.x,r=n.y;Lt(t.x,e.translate,e.scale,e.originPoint),Lt(t.y,r.translate,r.scale,r.originPoint)}function Bt(t,n,e,i){var a=(0,r.CR)(i,3),u=a[0],s=a[1],c=a[2];t.min=n.min,t.max=n.max;var l=void 0!==e[c]?e[c]:.5,f=(0,o.CD)(n.min,n.max,l);Lt(t,e[u],e[s],f,e.scale)}var kt=["x","scaleX","originX"],Mt=["y","scaleY","originY"];function Dt(t,n,e,r,i){return t=Tt(t-=n,1/e,r),void 0!==i&&(t=Tt(t,1/i,r)),t}function Ot(t,n,e){var i=(0,r.CR)(e,3),a=i[0],u=i[1],s=i[2];!function(t,n,e,r,i){void 0===n&&(n=0),void 0===e&&(e=1),void 0===r&&(r=.5);var a=(0,o.CD)(t.min,t.max,r)-n;t.min=Dt(t.min,n,e,a,i),t.max=Dt(t.max,n,e,a,i)}(t,n[a],n[u],n[s],n.scale)}function Ft(t,n,e){return void 0===n&&(n=0),void 0===e&&(e=.01),(0,o.TE)(t,n)<e}function Ut(t){return t.max-t.min}function It(t,n){var e,r=.5,i=Ut(t),a=Ut(n);return a>i?r=(0,o.YD)(n.min,n.max-i,t.min):i>a&&(r=(0,o.YD)(t.min,t.max-a,n.min)),e=r,(0,o.uZ)(0,1,e)}function Yt(t,n,e,r){t.origin=void 0===r?It(n,e):r,t.originPoint=(0,o.CD)(n.min,n.max,t.origin),t.scale=Ut(e)/Ut(n),Ft(t.scale,1,1e-4)&&(t.scale=1),t.translate=(0,o.CD)(e.min,e.max,t.origin)-t.originPoint,Ft(t.translate)&&(t.translate=0)}function Xt(t,n,e,r){Yt(t.x,n.x,e.x,r),Yt(t.y,n.y,e.y,r)}function _t(t){return[t("x"),t("y")]}function Ht(t,n){return nt(function(t,n){var e=t.top,r=t.left,i=t.bottom,o=t.right;void 0===n&&(n=tt);var a=n({x:r,y:e}),u=n({x:o,y:i});return{top:a.y,left:a.x,bottom:u.y,right:u.x}}(t.getBoundingClientRect(),n))}var Zt,Wt=new Set(["width","height","top","left","right","bottom","x","y"]),jt=function(t){return Wt.has(t)},zt=function(t,n){t.set(n,!1),t.set(n)},Gt=function(t){return t===u.Rx||t===u.px};!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Zt||(Zt={}));var $t=function(t,n){return parseFloat(t.split(", ")[n])},Nt=function(t,n){return function(e,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return $t(o[1],n);var a=i.match(/^matrix\((.+)\)$/);return a?$t(a[1],t):0}},qt=new Set(["x","y","z"]),Kt=ut.filter((function(t){return!qt.has(t)}));var Qt={width:function(t){var n=t.x;return n.max-n.min},height:function(t){var n=t.y;return n.max-n.min},top:function(t,n){var e=n.top;return parseFloat(e)},left:function(t,n){var e=n.left;return parseFloat(e)},bottom:function(t,n){var e=t.y,r=n.top;return parseFloat(r)+(e.max-e.min)},right:function(t,n){var e=t.x,r=n.left;return parseFloat(r)+(e.max-e.min)},x:Nt(4,13),y:Nt(5,14)},Jt=function(t,n,e,i){void 0===e&&(e={}),void 0===i&&(i={}),n=(0,r.pi)({},n),i=(0,r.pi)({},i);var o=Object.keys(n).filter(jt),s=[],c=!1,l=[];if(o.forEach((function(r){var o=t.getValue(r);if(t.hasValue(r)){var f,p=e[r],d=n[r],h=B(p);if(g(d))for(var v=d.length,m=null===d[0]?1:0;
1m<v;m++)f?(0,a.k)(B(d[m])===f,"All keyframes must be of the same type"):(f=B(d[m]),(0,a.k)(f===h||Gt(h)&&Gt(f),"Keyframes must be of the same dimension as the current value"));else f=B(d);if(h!==f)if(Gt(h)&&Gt(f)){var y=o.get();"string"==typeof y&&o.set(parseFloat(y)),"string"==typeof d?n[r]=parseFloat(d):Array.isArray(d)&&f===u.px&&(n[r]=d.map(parseFloat))}else(null==h?void 0:h.transform)&&(null==f?void 0:f.transform)&&(0===p||0===d)?0===p?o.set(f.transform(p)):n[r]=h.transform(d):(c||(s=function(t){var n=[];return Kt.forEach((function(e){var r=t.getValue(e);void 0!==r&&(n.push([e,r.get()]),r.set(e.startsWith("scale")?1:0))})),n.length&&t.render(),n}(t),c=!0),l.push(r),i[r]=void 0!==i[r]?i[r]:n[r],zt(o,d))}})),l.length){var f=function(t,n,e){var r=n.getBoundingBox(),i=n.getComputedStyle(),o=i.display,a={top:i.top,left:i.left,bottom:i.bottom,right:i.right,transform:i.transform};"none"===o&&n.setStaticValues("display",t.display||"block"),n.render();var u=n.getBoundingBox();return e.forEach((function(e){var o=n.getValue(e);zt(o,Qt[e](r,a)),t[e]=Qt[e](u,i)})),t}(n,t,l);return s.length&&s.forEach((function(n){var e=(0,r.CR)(n,2),i=e[0],o=e[1];t.getValue(i).set(o)})),t.render(),{target:f,transitionEnd:i}}return{target:n,transitionEnd:i}};function tn(t,n,e,r){return function(t){return Object.keys(t).some(jt)}(n)?Jt(t,n,e,r):{target:n,transitionEnd:r}}var nn=function(t,n,e,i){var o=function(t,n,e){var i,o=(0,r._T)(n,[]),a=t.getInstance();if(!(a instanceof HTMLElement))return{target:o,transitionEnd:e};for(var u in e&&(e=(0,r.pi)({},e)),t.forEachValue((function(t){var n=t.get();if(gt(n)){var e=xt(n,a);e&&t.set(e)}})),o){var s=o[u];if(gt(s)){var c=xt(s,a);c&&(o[u]=c,e&&(null!==(i=e[u])&&void 0!==i||(e[u]=s)))}}return{target:o,transitionEnd:e}}(t,n,i);return tn(t,n=o.target,e,i=o.transitionEnd)},en=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.defaultConfig={enableHardwareAcceleration:!0,allowTransformNone:!0},n.style={},n.reactStyle={},n.vars={},n.transform={},n.transformOrigin={},n.transformKeys=[],n.config=n.defaultConfig,n.isLayoutProjectionEnabled=!1,n.layoutUpdateListeners=new l,n.layoutMeasureListeners=new l,n.viewportBoxUpdateListeners=new l,n.hasViewportBoxUpdated=!1,n.targetBoxFinal={x:{min:0,max:1},y:{min:0,max:1}},n.treeScale={x:1,y:1},n.prevTreeScale={x:1,y:1},n.delta=it(),n.deltaFinal=it(),n.deltaTransform=vt,n.stopLayoutAxisAnimation={x:function(){},y:function(){}},n.isTargetBoxLocked=!1,n.axisProgress={x:p(0),y:p(0)},n.updateLayoutDelta=function(){n.isLayoutProjectionEnabled&&n.box&&n.updateLayoutDeltas(),n.children.forEach(rn)},n}return(0,r.ZT)(n,t),n.prototype.removeValue=function(n){t.prototype.removeValue.call(this,n),delete this.vars[n],delete this.style[n]},n.prototype.clean=function(){this.style={},this.vars={},this.transform={}},n.prototype.updateConfig=function(t){void 0===t&&(t={}),this.config=(0,r.pi)((0,r.pi)({},this.defaultConfig),t)},n.prototype.read=function(t){return this.getComputedStyle()[t]||0},n.prototype.addValue=function(n,e){t.prototype.addValue.call(this,n,e),n.startsWith("rotate")&&(this.layoutOrigin=.5)},n.prototype.readNativeValue=function(t){if(lt(t)){var n=D(t);return n&&n.default||0}return this.read(t)},n.prototype.makeTargetAnimatable=function(t,n){void 0===n&&(n=!0);var e=t.transition,i=t.transitionEnd,o=(0,r._T)(t,["transition","transitionEnd"]),a=this.config.transformValues,u=j(o,e||{},this);if(a&&(i&&(i=a(i)),o&&(o=a(o)),u&&(u=a(u))),n){Z(this,o,u);var s=nn(this,o,u,i);i=s.transitionEnd,o=s.target}return(0,r.pi)({transition:e,transitionEnd:i},o)},n.prototype.enableLayoutProjection=function(){this.isLayoutProjectionEnabled=!0},n.prototype.hide=function(){!1!==this.isVisible&&(this.isVisible=!1,this.scheduleRender())},n.prototype.show=function(){!0!==this.isVisible&&(this.isVisible=!0,this.scheduleRender())},n.prototype.onLayoutUpdate=function(t){return this.layoutUpdateListeners.add(t)},n.prototype.onLayoutMeasure=function(t){return this.layoutMeasureListeners.add(t)},n.prototype.onViewportBoxUpdate=function(t){return this.viewportBoxUpdateListeners.add(t)},n.prototype.layoutReady=function(t){this.layoutUpdateListeners.notify(this.box,this.prevViewportBox||this.box,t)},n.prototype.getBoundingBox=function(){var t=this.config.transformPagePoint;return Ht(this.element,t)},n.prototype.getBoundingBoxWithoutTransforms=function(){var t,n,e=this.getBoundingBox();return t=e,n=this.latest,Ot(t.x,n,kt),Ot(t.y,n,Mt),e},n.prototype.getComputedStyle=function(){return window.getComputedStyle(this.element)},n.prototype.snapshotBoundingBox=function(){this.prevViewportBox=this.getBoundingBoxWithoutTransforms(),this.rebaseTargetBox(!1,this.prevViewportBox)},n.prototype.rebaseTargetBox=function(t,n){var e=this;void 0===t&&(t=!1),void 0===n&&(n=this.box);
1var r=this.axisProgress,i=r.x,o=r.y,a=this.box&&!this.isTargetBoxLocked&&!i.isAnimating()&&!o.isAnimating();(t||a)&&_t((function(t){var r=n[t],i=r.min,o=r.max;e.setAxisTarget(t,i,o)}))},n.prototype.measureLayout=function(){var t=this;this.box=this.getBoundingBox(),this.boxCorrected=et(this.box),this.targetBox||(this.targetBox=et(this.box)),this.layoutMeasureListeners.notify(this.box,this.prevViewportBox||this.box),i.ZP.update((function(){return t.rebaseTargetBox()}))},n.prototype.lockTargetBox=function(){this.isTargetBoxLocked=!0},n.prototype.unlockTargetBox=function(){this.stopLayoutAnimation(),this.isTargetBoxLocked=!1},n.prototype.resetTransform=function(){var t=this.config.transformTemplate;this.element.style.transform=t?t({},""):"none",this.scheduleRender()},n.prototype.setAxisTarget=function(t,n,e){var r=this.targetBox[t];r.min=n,r.max=e,this.hasViewportBoxUpdated=!0,this.rootParent.scheduleUpdateLayoutDelta()},n.prototype.startLayoutAxisAnimation=function(t,n){var e,r=this,i=this.axisProgress[t],o=this.targetBox[t],a=o.min,u=o.max-a;return i.clearListeners(),i.set(a),i.set(a),i.onChange((function(n){return r.setAxisTarget(t,n,n+u)})),null===(e=this.animateMotionValue)||void 0===e?void 0:e.call(this,t,i,0,n)},n.prototype.stopLayoutAnimation=function(){var t=this;_t((function(n){return t.axisProgress[n].stop()}))},n.prototype.updateLayoutDeltas=function(){var t,n,e,r,i;t=this.boxCorrected,n=this.box,At(t.x,n.x),At(t.y,n.y),this.parent&&(this.prevTreeScale.x=this.treeScale.x,this.prevTreeScale.y=this.treeScale.y,e=this.treeScale,r=this.parent.treeScale,i=this.parent.delta,e.x=r.x*i.x.scale,e.y=r.y*i.y.scale),function(t,n){for(var e=n.length,r=0;r<e;r++)Rt(t,n[r].delta)}(this.boxCorrected,this.treePath),Xt(this.delta,this.boxCorrected,this.targetBox,this.layoutOrigin),this.hasViewportBoxUpdated&&this.viewportBoxUpdateListeners.notify(this.targetBox,this.delta),this.hasViewportBoxUpdated=!1;var o=ht(this.delta,this.treeScale);o===this.deltaTransform&&this.prevTreeScale.x===this.treeScale.x&&this.prevTreeScale.y===this.treeScale.y||this.scheduleRender(),this.deltaTransform=o},n.prototype.updateTransformDeltas=function(){var t,n,e;this.isLayoutProjectionEnabled&&this.box&&(t=this.targetBoxFinal,n=this.targetBox,e=this.latest,Bt(t.x,n.x,e,kt),Bt(t.y,n.y,e,Mt),Xt(this.deltaFinal,this.boxCorrected,this.targetBoxFinal,this.layoutOrigin))},n.prototype.build=function(){this.updateTransformDeltas(),void 0!==this.isVisible&&(this.style.visibility=this.isVisible?"visible":"hidden"),St(this.latest,this.style,this.vars,this.transform,this.transformOrigin,this.transformKeys,this.config,this.isLayoutProjectionEnabled&&!!this.box,this.delta,this.deltaFinal,this.treeScale,this.targetBoxFinal)},n.prototype.render=function(){for(var t in this.build(),Object.assign(this.element.style,this.style),this.vars)this.element.style.setProperty(t,this.vars[t])},n}(J),rn=function(t){return t.updateLayoutDelta()};function on(t){var n=(0,s.useRef)(null);return null===n.current&&(n.current=t()),n.current}function an(t,n,e){return"string"==typeof t?t:u.px.transform(n+e*t)}var un=function(t,n){return u.px.transform(t*n)},sn={offset:"stroke-dashoffset",array:"stroke-dasharray"},cn={offset:"strokeDashoffset",array:"strokeDasharray"};var ln={x:0,y:0,width:0,height:0};function fn(t,n,e,i,o,a,u,s,c,l,f,p,d,h,v){var m=t.attrX,g=t.attrY,y=t.originX,x=t.originY,b=t.pathLength,E=t.pathSpacing,C=void 0===E?1:E,w=t.pathOffset,P=void 0===w?0:w;return St((0,r._T)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),i,e,o,a,u,s,f,p,d,h,v),i.transform&&(n.transform=i.transform,delete i.transform),(void 0!==y||void 0!==x||n.transform)&&(n.transformOrigin=function(t,n,e){return an(n,t.x,t.width)+" "+an(e,t.y,t.height)}(c||ln,void 0!==y?y:.5,void 0!==x?x:.5)),void 0!==m&&(i.x=m),void 0!==g&&(i.y=g),void 0!==l&&void 0!==b&&function(t,n,e,r,i,o){void 0===r&&(r=1),void 0===i&&(i=0),void 0===o&&(o=!0);var a=o?sn:cn;t[a.offset]=un(-i,n);var u=un(e,n),s=un(r,n);t[a.array]=u+" "+s}(i,l,b,C,P,!1),i}var pn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox"]),dn=/([a-z])([A-Z])/g,hn=function(t){return t.replace(dn,"$1-$2").toLowerCase()},vn=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.attrs={},n.defaultConfig={enableHardwareAcceleration:!1},n.config=n.defaultConfig,n}return(0,r.ZT)(n,t),n.prototype.mount=function(n){t.prototype.mount.call(this,n),this.measure()},n.prototype.measure=function(){try{this.dimensions="function"==typeof this.element.getBBox?this.element.getBBox():this.element.getBoundingClientRect()}catch(t){this.dimensions={x:0,y:0,width:0,height:0}}"path"===this.element.tagName&&(this.totalPathLength=this.element.getTotalLength())}
1,n.prototype.clean=function(){t.prototype.clean.call(this),this.attrs={}},n.prototype.read=function(t){return t=pn.has(t)?t:hn(t),this.element.getAttribute(t)},n.prototype.build=function(){this.updateTransformDeltas(),fn(this.latest,this.style,this.vars,this.attrs,this.transform,this.transformOrigin,this.transformKeys,this.config,this.dimensions,this.totalPathLength,this.isLayoutProjectionEnabled&&!!this.box,this.delta,this.deltaFinal,this.treeScale,this.targetBoxFinal)},n.prototype.render=function(){for(var n in t.prototype.render.call(this),this.attrs)this.element.setAttribute(pn.has(n)?n:hn(n),this.attrs[n])},n}(en);var mn=new Set(["animate","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use","view"]);function gn(t){return"string"==typeof t&&mn.has(t)}var yn=(0,s.createContext)(null),xn=(0,s.createContext)({variantContext:{}});function bn(){return(0,s.useContext)(xn).variantContext}function En(){return(0,s.useContext)(xn).visualElement}var Cn=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","onLayoutAnimationComplete","onViewportBoxUpdate","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileHover","whileTap","onHoverEnd","onHoverStart"]);function wn(t){return Cn.has(t)}var Pn=function(t){return!wn(t)};try{var Sn=e(24930).Z;Pn=function(t){return t.startsWith("on")?!wn(t):Sn(t)}}catch(di){}var An=function(t){return t instanceof f};function Tn(t,n){var e=n.layout,r=n.layoutId;return lt(t)||pt(t)||(e||void 0!==r)&&!!wt[t]}function Vn(t,n,e,r,i){for(var o in void 0===r&&(r=!1),r&&(t.reactStyle={}),e){var a=e[o],u=!1;if(An(a))Bn.has(o)||(t.addValue(o,a),u=!0);else if(Tn(o,i)){if(t.hasValue(o)){if(a!==n[o]){if(An(n[o]))t.addValue(o,p(a));else t.getValue(o).set(a)}}else t.addValue(o,p(a));u=!0}else r&&(t.reactStyle[o]=a);u&&(n[o]=a)}}var Ln,Rn,Bn=new Set([]),kn=function(){return{}},Mn=(0,s.createContext)({transformPagePoint:function(t){return t},features:[],isStatic:!1});function Dn(t){var n=t.children,e=t.features,i=void 0===e?[]:e,o=(0,r._T)(t,["children","features"]),a=(0,s.useContext)(Mn),u=(0,r.fl)(a.features,i),c=(0,s.useMemo)((function(){return{features:u}}),[u.length]);for(var l in o)c[l]=o[l];return(0,s.createElement)(Mn.Provider,{value:c},n)}function On(t){var n=t.animate,e=t.variants,r=t.inherit;return void 0===r?!!e&&!n:r}!function(t){t[t.Entering=0]="Entering",t[t.Present=1]="Present",t[t.Exiting=2]="Exiting"}(Ln||(Ln={})),function(t){t[t.Hide=0]="Hide",t[t.Show=1]="Show"}(Rn||(Rn={}));var Fn={measureLayout:function(t){return t.measureLayout()},layoutReady:function(t){return t.layoutReady()}},Un=function(t,n){return t.depth-n.depth};function In(){var t=new Set;return{add:function(n){return t.add(n)},flush:function(n){var e=void 0===n?Fn:n,r=e.measureLayout,i=e.layoutReady,o=Array.from(t).sort(Un);o.forEach((function(t){return t.resetTransform()})),o.forEach(r),o.forEach(i),o.forEach((function(t){t.isPresent&&(t.presence=Ln.Present)})),t.clear()}}}function Yn(t){return!!t.forceUpdate}var Xn=(0,s.createContext)(In()),_n=(0,s.createContext)(In()),Hn="undefined"!=typeof window?s.useLayoutEffect:s.useEffect;function Zn(){var t=(0,s.useContext)(yn);if(null===t)return[!0,null];var n=t.isPresent,e=t.onExitComplete,r=t.register,i=$n();(0,s.useEffect)((function(){return r(i)}),[]);return!n&&e?[!1,function(){return null==e?void 0:e(i)}]:[!0]}function Wn(){return jn((0,s.useContext)(yn))}function jn(t){return null===t||t.isPresent}var zn=0,Gn=function(){return zn++},$n=function(){return on(Gn)};function Nn(t,n){void 0===n&&(n=!1);var e=(0,s.useRef)(!0);(!n||n&&e.current)&&t(),e.current=!1}function qn(t){return"string"==typeof t||Array.isArray(t)}function Kn(t){return"object"==typeof t&&"function"==typeof t.start}function Qn(t,n){var e=n.defaultFeatures,i=n.useVisualElement,o=n.render;return(0,s.forwardRef)((function(n,a){var u=(0,s.useContext)(Mn).isStatic,c=i(t,n,u,a);!function(t,n){var e=on(kn);for(var r in e){var i=Tn(r,n),o=void 0!==n[r],a=n.style&&void 0!==n.style[r],u=o&&An(n[r]),s=a&&An(n.style[r]);(i&&!o&&!a||!i&&!u&&!s)&&(t.removeValue(r),delete e[r])}Vn(t,e,n,!1,n),n.style&&Vn(t,e,n.style,!0,n),n.transformValues&&(t.reactStyle=n.transformValues(t.reactStyle))}(c,n);var l=function(t,n,e){var r,i,o=n.variants,a=n.initial,u=n.animate,c=n.whileTap,l=n.whileHover,f=bn(),p=f.parent,d=f.initial,h=f.animate,v=(0,s.useContext)(yn),m=qn(u)||qn(c)||qn(l)||Kn(u),g=o||m;!1!==(a=null!==(r=null==v?void 0:v.initial)&&void 0!==r?r:a)||Kn(u)||(a=u);var y=(0,s.useMemo)((function(){return{parent:g?t:p,initial:qn(a)?a:d,animate:qn(u)?u:h}}),[e?a:null]);return Nn((function(){var n=a||d;n&&H(t,n)}),!e),g&&!m&&(null==p||p.addVariantChild(t)),jn(v)&&(null===(i=t.variantChildrenOrder)||void 0===i||i.clear()),(0,s.useEffect)((function(){g&&(null==p||p.addVariantChildOrder(t))})),(0,s.useEffect)((function(){return t.isMounted=!0,function(){var n;t.isMounted=!1,null===(n=null==p?void 0:p.variantChildren)||void 0===n||n.delete(t)}}),[]),Nn((function(){t.forEachValue((function(n,e){t.baseTarget[e]=n.get()}))}),!0),y}(c,n,u),f=function(t,n,e,i){var o=(0,s.useContext)(Mn);if(n||"undefined"==typeof window)return null;for(var a=(0,r.fl)(t,o.features),u=a.length,c=[],l=0;l<u;l++){var f=a[l],p=f.shouldRender,d=f.key,h=f.getComponent;if(p(i)){var v=h(i);v&&c.push((0,s.createElement)(v,(0,r.pi)({key:d},i,{visualElement:e,inherit:On(i)})))}}return c}(e,u,c,n),p=(0,s.useMemo)((function(){return{visualElement:c,variantContext:l}}),[c,l]),d=o(t,n,c);return function(t){var n=(0,s.useContext)(Xn),e=(0,s.useContext)(_n);Hn((function(){return function(){Yn(n)&&n.remove(t),Yn(e)&&e.remove(t)}}),[])}(c),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(xn.Provider,{value:p},d),f)}))}function Jn(t){var n=null;return function(){return null===n&&(n=t,function(){n=null})}}var te=Jn("dragHorizontal"),ne=Jn("dragVertical");function ee(t){var n=!1;if("y"===t)n=ne();else if("x"===t)n=te();else{var e=te(),r=ne();e&&r?n=function(){e(),r()}
1:(e&&e(),r&&r())}return n}function re(t,n,e,r){return t.addEventListener(n,e,r),function(){return t.removeEventListener(n,e,r)}}function ie(t,n,e,r){(0,s.useEffect)((function(){var i=t.current;if(e&&i)return re(i,n,e,r)}),[t,n,e,r])}function oe(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function ae(t){return!!t.touches}var ue={pageX:0,pageY:0};function se(t,n){void 0===n&&(n="page");var e=t.touches[0]||t.changedTouches[0]||ue;return{x:e[n+"X"],y:e[n+"Y"]}}function ce(t,n){return void 0===n&&(n="page"),{x:t[n+"X"],y:t[n+"Y"]}}function le(t,n){return void 0===n&&(n="page"),{point:ae(t)?se(t,n):ce(t,n)}}function fe(t){return le(t,"client")}var pe=function(t,n){void 0===n&&(n=!1);var e,r=function(n){return t(n,le(n))};return n?(e=r,function(t){var n=t instanceof MouseEvent;(!n||n&&0===t.button)&&e(t)}):r},de="undefined"!=typeof window,he={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},ve={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function me(t){return de&&null===window.onpointerdown?t:de&&null===window.ontouchstart?ve[t]:de&&null===window.onmousedown?he[t]:t}function ge(t,n,e,r){return re(t,me(n),pe(e,"pointerdown"===n),r)}function ye(t,n,e,r){return ie(t,me(n),e&&pe(e,"pointerdown"===n),r)}var xe=function(){function t(t,n,e){var a=this,u=(void 0===e?{}:e).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(a.lastMoveEvent&&a.lastMoveEventInfo){var t=Ce(a.lastMoveEventInfo,a.history),n=null!==a.startEvent,e=(0,o.TE)(t.offset,{x:0,y:0})>=3;if(n||e){var u=t.point,s=(0,i.$B)().timestamp;a.history.push((0,r.pi)((0,r.pi)({},u),{timestamp:s}));var c=a.handlers,l=c.onStart,f=c.onMove;n||(l&&l(a.lastMoveEvent,t),a.startEvent=a.lastMoveEvent),f&&f(a.lastMoveEvent,t)}}},this.handlePointerMove=function(t,n){a.lastMoveEvent=t,a.lastMoveEventInfo=be(n,a.transformPagePoint),oe(t)&&0===t.buttons?a.handlePointerUp(t,n):i.ZP.update(a.updatePoint,!0)},this.handlePointerUp=function(t,n){a.end();var e=a.handlers.onEnd;if(e){var r=Ce(be(n,a.transformPagePoint),a.history);e&&e(t,r)}},!(ae(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=u;var s=be(le(t),this.transformPagePoint),c=s.point,l=(0,i.$B)().timestamp;this.history=[(0,r.pi)((0,r.pi)({},c),{timestamp:l})];var f=n.onSessionStart;f&&f(t,Ce(s,this.history)),this.removeListeners=(0,o.zG)(ge(window,"pointermove",this.handlePointerMove),ge(window,"pointerup",this.handlePointerUp),ge(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),i.qY.update(this.updatePoint)},t}();function be(t,n){return n?{point:n(t.point)}:t}function Ee(t,n){return{x:t.x-n.x,y:t.y-n.y}}function Ce(t,n){var e=t.point;return{point:e,delta:Ee(e,Pe(n)),offset:Ee(e,we(n)),velocity:Se(n,.1)}}function we(t){return t[0]}function Pe(t){return t[t.length-1]}function Se(t,n){if(t.length<2)return{x:0,y:0};for(var e=t.length-1,r=null,i=Pe(t);e>=0&&(r=t[e],!(i.timestamp-r.timestamp>d(n)));)e--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Ae(t,n,e){var r=n.min,i=n.max;return void 0!==r&&t<r?t=e?(0,o.CD)(r,t,e):Math.max(t,r):void 0!==i&&t>i&&(t=e?(0,o.CD)(i,t,e):Math.min(t,i)),t}function Te(t,n,e){return{min:void 0!==n?t.min+n:void 0,max:void 0!==e?t.max+e-(t.max-t.min):void 0}}function Ve(t,n){var e,i=n.min-t.min,o=n.max-t.max;return n.max-n.min<t.max-t.min&&(i=(e=(0,r.CR)([o,i],2))[0],o=e[1]),{min:t.min+i,max:t.min+o}}var Le,Re=new WeakMap,Be=function(){function t(t){var n=t.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=n,this.visualElement.enableLayoutProjection(),Re.set(n,this)}return t.prototype.start=function(t,n){var e=this,r=void 0===n?{}:n,i=r.snapToCursor,a=void 0!==i&&i,u=r.cursorProgress;a&&this.snapToCursor(t);var s=this.props.transformPagePoint;this.panSession=new xe(t,{onSessionStart:function(){e.stopMotion()},onStart:function(t,n){var r,i,a=e.props,s=a.drag,c=a.dragPropagation;if(!s||c||(e.openGlobalLock&&e.openGlobalLock(),e.openGlobalLock=ee(s),e.openGlobalLock)){e.prepareBoundingBox(),e.visualElement.lockTargetBox(),e.resolveDragConstraints();var l=fe(t).point;_t((function(t){var n=e.visualElement.targetBox[t],r=n.min,i=n.max;e.cursorProgress[t]=u?u[t]:(0,o.YD)(r,i,l[t]);var a=e.getAxisMotionValue(t);a&&(e.originPoint[t]=a.get())})),e.isDragging=!0,e.currentDirection=null,null===(i=(r=e.props).onDragStart)||void 0===i||i.call(r,t,n)}},onMove:function(t,n){var r,i,o,a,u=e.props,s=u.dragPropagation,c=u.dragDirectionLock;if(s||e.openGlobalLock){var l=n.offset;if(c&&null===e.currentDirection)return e.currentDirection=function(t,n){void 0===n&&(n=10);var e=null;Math.abs(t.y)>n?e="y":Math.abs(t.x)>n&&(e="x");return e}(l),void(null!==e.currentDirection&&(null===(i=(r=e.props).onDirectionLock)||void 0===i||i.call(r,e.currentDirection)));e.updateAxis("x",t,l),e.updateAxis("y",t,l),null===(a=(o=e.props).onDrag)||void 0===a||a.call(o,t,n),Le=t}},onEnd:function(t,n){return e.stop(t,n)}},{transformPagePoint:s})},t.prototype.prepareBoundingBox=function(){var t=this.visualElement.getInstance(),n=t.style.transform;this.visualElement.resetTransform(),this.visualElement.measureLayout(),t.style.transform=n,this.visualElement.rebaseTargetBox(!0,this.visualElement.getBoundingBoxWithoutTransforms())},t.prototype.resolveDragConstraints=function(){var t,n,e,r,i,o,a=this,u=this.props.dragConstraints;this.constraints=!!u&&(c(u)?this.resolveRefConstraints(this.visualElement.box,u):(t=this.visualElement.box,e=(n=u).top,r=n.left,i=n.bottom,o=n.right,{x:Te(t.x,r,o),y:Te(t.y,e,i)}
1)),this.constraints&&!this.hasMutatedConstraints&&_t((function(t){var n,e,r;a.getAxisMotionValue(t)&&(a.constraints[t]=(n=a.visualElement.box[t],e=a.constraints[t],r={},void 0!==e.min&&(r.min=e.min-n.min),void 0!==e.max&&(r.max=e.max-n.min),r))}))},t.prototype.resolveRefConstraints=function(t,n){var e=this.props,r=e.onMeasureDragConstraints,i=e.transformPagePoint,o=n.current;(0,a.k)(null!==o,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop."),this.constraintsBox=Ht(o,i);var u=function(t,n){return{x:Ve(t.x,n.x),y:Ve(t.y,n.y)}}(t,this.constraintsBox);if(r){var s=r(function(t){var n=t.x,e=t.y;return{top:e.min,bottom:e.max,left:n.min,right:n.max}}(u));this.hasMutatedConstraints=!!s,s&&(u=nt(s))}return u},t.prototype.cancelDrag=function(){this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null)},t.prototype.stop=function(t,n){var e;this.visualElement.unlockTargetBox(),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=null;var r=this.isDragging;if(this.cancelDrag(),r){var i=this.props,o=i.dragMomentum,a=i.dragElastic,u=i.onDragEnd;if(o||a){var s=n.velocity;this.animateDragEnd(s)}null==u||u(t,n)}},t.prototype.snapToCursor=function(t){var n=this;this.prepareBoundingBox(),_t((function(e){var r=n.getAxisMotionValue(e);if(r){var i=fe(t).point,o=n.visualElement.box,a=o[e].max-o[e].min,u=o[e].min+a/2,s=i[e]-u;n.originPoint[e]=i[e],r.set(s)}else n.cursorProgress[e]=.5,n.updateVisualElementAxis(e,t)}))},t.prototype.updateAxis=function(t,n,e){if(ke(t,this.props.drag,this.currentDirection))return this.getAxisMotionValue(t)?this.updateAxisMotionValue(t,e):this.updateVisualElementAxis(t,n)},t.prototype.updateAxisMotionValue=function(t,n){var e=this.getAxisMotionValue(t);if(n&&e){var r=this.props.dragElastic,i=this.originPoint[t]+n[t],o=this.constraints?Ae(i,this.constraints[t],r):i;e.set(o)}},t.prototype.updateVisualElementAxis=function(t,n){var e,r=this.props.dragElastic,i=this.visualElement.box[t],o=i.max-i.min,a=this.cursorProgress[t],u=function(t,n,e,r,i){var o=t-n*e;return r?Ae(o,r,i):o}(fe(n).point[t],o,a,null===(e=this.constraints)||void 0===e?void 0:e[t],r);this.visualElement.setAxisTarget(t,u,u+o)},t.prototype.updateProps=function(t){var n=t.drag,e=void 0!==n&&n,i=t.dragDirectionLock,o=void 0!==i&&i,a=t.dragPropagation,u=void 0!==a&&a,s=t.dragConstraints,c=void 0!==s&&s,l=t.dragElastic,f=void 0===l?.35:l,p=t.dragMomentum,d=void 0===p||p,h=(0,r._T)(t,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=(0,r.pi)({drag:e,dragDirectionLock:o,dragPropagation:u,dragConstraints:c,dragElastic:f,dragMomentum:d},h)},t.prototype.getAxisMotionValue=function(t){var n=this.props,e=n.layout,r=n.layoutId,i="_drag"+t.toUpperCase();return this.props[i]?this.props[i]:e||void 0!==r?void 0:this.visualElement.getValue(t,0)},t.prototype.animateDragEnd=function(t){var n=this,e=this.props,i=e.drag,o=e.dragMomentum,a=e.dragElastic,u=e.dragTransition,s=_t((function(e){if(ke(e,i,n.currentDirection)){var s=n.constraints?n.constraints[e]:{},c=a?200:1e6,l=a?40:1e7,f=(0,r.pi)((0,r.pi)({type:"inertia",velocity:o?t[e]:0,bounceStiffness:c,bounceDamping:l,timeConstant:750,restDelta:1,restSpeed:10},u),s);return n.getAxisMotionValue(e)?n.startAxisValueAnimation(e,f):n.visualElement.startLayoutAxisAnimation(e,f)}}));return Promise.all(s).then((function(){var t,e;null===(e=(t=n.props).onDragTransitionEnd)||void 0===e||e.call(t)}))},t.prototype.stopMotion=function(){var t=this;_t((function(n){var e=t.getAxisMotionValue(n);e?e.stop():t.visualElement.stopLayoutAnimation()}))},t.prototype.startAxisValueAnimation=function(t,n){var e=this.getAxisMotionValue(t);if(e){var r=e.get();return e.set(r),e.set(r),S(t,e,0,n)}},t.prototype.scalePoint=function(){var t=this,n=this.props,e=n.drag,r=n.dragConstraints;if(c(r)&&this.constraintsBox){this.stopMotion();var i={x:0,y:0};_t((function(n){i[n]=It(t.visualElement.targetBox[n],t.constraintsBox[n])})),this.prepareBoundingBox(),this.resolveDragConstraints(),_t((function(n){if(ke(n,e,null)){var r=function(t,n,e){var r=t.max-t.min,i=(0,o.CD)(n.min,n.max-r,e);return{min:i,max:i+r}}(t.visualElement.targetBox[n],t.constraintsBox[n],i[n]),a=r.min,u=r.max;t.visualElement.setAxisTarget(n,a,u)}}
1))}},t.prototype.mount=function(t){var n=this,e=ge(t.getInstance(),"pointerdown",(function(t){var e=n.props,r=e.drag,i=e.dragListener;r&&(void 0===i||i)&&n.start(t)})),r=re(window,"resize",(function(){n.scalePoint()})),i=t.onLayoutUpdate((function(){n.isDragging&&n.resolveDragConstraints()})),o=t.prevSnapshot;return(null==o?void 0:o.isDragging)&&this.start(Le,{cursorProgress:o.cursorProgress}),function(){null==e||e(),null==r||r(),null==i||i(),n.cancelDrag()}},t}();function ke(t,n,e){return!(!0!==n&&n!==t||null!==e&&e!==t)}var Me=function(t){return function(n){return t(n),null}},De=Me((function(t){var n=t.visualElement;return function(t,n){var e=t.dragControls,i=(0,s.useContext)(Mn).transformPagePoint,o=on((function(){return new Be({visualElement:n})}));o.updateProps((0,r.pi)((0,r.pi)({},t),{transformPagePoint:i})),(0,s.useEffect)((function(){return e&&e.subscribe(o)}),[o]),(0,s.useEffect)((function(){return o.mount(n)}),[])}((0,r._T)(t,["visualElement"]),n)})),Oe={key:"drag",shouldRender:function(t){return!!t.drag||!!t.dragControls},getComponent:function(){return De}};function Fe(t){return(0,s.useEffect)((function(){return function(){return t()}}),[])}function Ue(t,n){var e=t.onPan,r=t.onPanStart,i=t.onPanEnd,o=t.onPanSessionStart,a=e||r||i||o,u=(0,s.useRef)(null),c=(0,s.useContext)(Mn).transformPagePoint,l={onSessionStart:o,onStart:r,onMove:e,onEnd:function(t,n){u.current=null,i&&i(t,n)}};(0,s.useEffect)((function(){null!==u.current&&u.current.updateHandlers(l)})),ye(n,"pointerdown",a&&function(t){u.current=new xe(t,l,{transformPagePoint:c})}),Fe((function(){return u.current&&u.current.end()}))}var Ie=function(t,n){return!!n&&(t===n||Ie(t,n.parentElement))},Ye=["whileHover","whileTap","whileDrag"],Xe=function(t){return Ye.indexOf(t)+1},_e=Xe("whileTap");function He(t,n){var e=t.onTap,r=t.onTapStart,i=t.onTapCancel,a=t.whileTap,u=e||r||i||a,c=(0,s.useRef)(!1),l=(0,s.useRef)(null);function f(){var t;null===(t=l.current)||void 0===t||t.call(l),l.current=null}a&&N(n,a,_e);var p=(0,s.useRef)(null);p.current=function(t,r){var o=n.getInstance();if(f(),c.current&&o){c.current=!1,a&&K(n,_e);var u=ee(!0);u&&(u(),Ie(o,t.target)?null==e||e(t,r):null==i||i(t,r))}},ye(n,"pointerdown",u?function(t,e){f(),l.current=(0,o.zG)(ge(window,"pointerup",(function(t,n){var e;return null===(e=p.current)||void 0===e?void 0:e.call(p,t,n)})),ge(window,"pointercancel",(function(t,n){var e;return null===(e=p.current)||void 0===e?void 0:e.call(p,t,n)}))),n.getInstance()&&!c.current&&(c.current=!0,null==r||r(t,e),a&&q(n,_e))}:void 0),Fe(f)}var Ze=Xe("whileHover"),We=function(t){return function(n,e){oe(n)&&t(n,e)}};function je(t,n){Ue(t,n),He(t,n),function(t,n){var e=t.whileHover,r=t.onHoverStart,i=t.onHoverEnd;e&&N(n,e,Ze),ye(n,"pointerenter",We((function(t,i){null==r||r(t,i),e&&q(n,Ze)}))),ye(n,"pointerleave",We((function(t,r){null==i||i(t,r),e&&K(n,Ze)})))}(t,n)}var ze=["onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileTap","whileHover","onHoverStart","onHoverEnd"],Ge=Me((function(t){var n=t.visualElement;je((0,r._T)(t,["visualElement"]),n)})),$e={key:"gestures",shouldRender:function(t){return ze.some((function(n){return t.hasOwnProperty(n)}))},getComponent:function(){return Ge}},Ne=function(){function t(){this.hasMounted=!1,this.pendingAnimations=[],this.subscribers=new Set}return t.prototype.subscribe=function(t){var n=this;return this.subscribers.add(t),function(){return n.subscribers.delete(t)}},t.prototype.start=function(t,n){var e=this;if(this.hasMounted){var r=[];return this.subscribers.forEach((function(e){var i=z(e,t,{transitionOverride:n});r.push(i)})),Promise.all(r)}return new Promise((function(r){e.pendingAnimations.push({animation:[t,n],resolve:r})}))},t.prototype.set=function(t){return(0,a.k)(this.hasMounted,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),this.subscribers.forEach((function(n){H(n,t)}))},t.prototype.stop=function(){this.subscribers.forEach((function(t){!function(t){t.forEachValue((function(t){return t.stop()}))}(t)}))},t.prototype.mount=function(){var t=this;this.hasMounted=!0,this.pendingAnimations.forEach((function(n){var e=n.animation,i=n.resolve;t.start.apply(t,(0,r.fl)(e)).then(i)}))},t.prototype.unmount=function(){this.hasMounted=!1,this.stop()},t}(),qe=function(){return new Ne},Ke=Me((function(t){var n=t.animate,e=t.exit,i=t.visualElement,o=(0,r.CR)(Zn(),2),a=o[0],u=o[1],c=(0,s.useContext)(yn),l=(0,s.useRef)(!1),f=void 0!==(null==c?void 0:c.custom)?c.custom:t.custom;(0,s.useEffect)((function(){a?!l.current||!n||"boolean"==typeof n||n instanceof Ne||z(i,n):(!l.current&&e&&z(i,e,{custom:f}).then(u),l.current=!0),a&&(l.current=!1)}),[n,f,e,a,u,t])})),Qe={key:"exit",shouldRender:function(t){return!!t.exit&&!On(t)},getComponent:function(){return Ke}};function Je(t,n){void 0===n&&(n=!1);t.transition;var e=t.transitionEnd,i=(0,r._T)(t,["transition","transitionEnd"]);return n?(0,r.pi)((0,r.pi)({},i),e):i}var tr=function(t){var n,e=t instanceof f?t.get():t;return Array.from(new Set((n=e)?Array.isArray(n)?n:[n]:[]))};var nr={shouldRender:function(t){return void 0!==t.animate&&!U(t.animate)&&!Kn(t.animate)},Component:Me((function(t){var n=t.animate;return function(t,n,e){var i=(0,s.useRef)(!0),o=(0,s.useRef)(null);o.current||(o.current=Je(n,!0)),(0,s.useEffect)((function(){var a,u,s={}
1,c=Je(n),l=Je(n,!0);for(var f in c){var p=i.current&&(!t.hasValue(f)||t.getValue(f).get()!==l[f]),d=null!==l[f],h=(a=o.current[f],void 0!==(u=l[f])&&(Array.isArray(a)&&Array.isArray(u)?!function(t,n){if(null===n)return!1;var e=n.length;if(e!==t.length)return!1;for(var r=0;r<e;r++)if(n[r]!==t[r])return!1;return!0}(u,a):a!==u));d&&(h||p)&&(s[f]=c[f])}i.current=!1,o.current=(0,r.pi)((0,r.pi)({},o.current),l),Object.keys(s).length&&z(t,(0,r.pi)((0,r.pi)({},s),{transition:n.transition||e,transitionEnd:n.transitionEnd}))}),[n])}(t.visualElement,n,t.transition)}))},er={shouldRender:function(t){return t.variants&&!Kn(t.animate)||U(t.animate)},Component:Me((function(t){var n=t.animate,e=t.inherit,r=void 0===e||e;return function(t,n,e,r){var i,o=tr(e),a=bn(),u=null===(i=a.parent)||void 0===i?void 0:i.isMounted,c=(0,s.useRef)(!1);(0,s.useEffect)((function(){var e,i,s=!1;r?(s=!!u,o=tr(a.animate)):s=c.current||(e=tr(n),i=o,e.join(",")!==i.join(",")),s&&z(t,o),c.current=!0}),[o.join(",")])}(t.visualElement,t.initial,n,r)}))},rr={shouldRender:function(t){return Kn(t.animate)},Component:Me((function(t){var n=t.animate;return function(t,n){var e=(0,s.useMemo)((function(){return n.subscribe(t)}),[n]);Fe((function(){return null==e?void 0:e()}))}(t.visualElement,n)}))},ir={key:"animation",shouldRender:function(){return!0},getComponent:function(t){return nr.shouldRender(t)?nr.Component:er.shouldRender(t)?er.Component:rr.shouldRender(t)?rr.Component:void 0}};var or=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.frameTarget={x:{min:0,max:0},y:{min:0,max:0}},n.stopAxisAnimation={x:void 0,y:void 0},n.animate=function(t,e,i){void 0===i&&(i={});var o=i.originBox,a=i.targetBox,u=i.visibilityAction,s=i.shouldStackAnimate,c=(0,r._T)(i,["originBox","targetBox","visibilityAction","shouldStackAnimate"]),l=n.props,f=l.visualElement,p=l.layout;if(!1===s)return n.safeToRemove();var d=ur(e=o||e,t=a||t),h=_t((function(r){if("position"===p){var i=t[r].max-t[r].min;e[r].max=e[r].min+i}if(!f.isTargetBoxLocked)return void 0===u?d?n.animateAxis(r,t[r],e[r],c):f.setAxisTarget(r,t[r].min,t[r].max):void(u===Rn.Hide?f.hide():f.show())}));return f.render(),Promise.all(h).then((function(){var t,e;null===(e=(t=n.props).onLayoutAnimationComplete)||void 0===e||e.call(t),f.isPresent?f.presence=Ln.Present:n.safeToRemove()}))},n}return(0,r.ZT)(n,t),n.prototype.componentDidMount=function(){var t=this,n=this.props.visualElement;n.animateMotionValue=S,n.enableLayoutProjection(),this.unsubLayoutReady=n.onLayoutUpdate(this.animate),n.updateConfig((0,r.pi)((0,r.pi)({},n.config),{safeToRemove:function(){return t.safeToRemove()}}))},n.prototype.componentWillUnmount=function(){var t=this;this.unsubLayoutReady(),_t((function(n){var e,r;return null===(r=(e=t.stopAxisAnimation)[n])||void 0===r?void 0:r.call(e)}))},n.prototype.animateAxis=function(t,n,e,r){var i,a,u=void 0===r?{}:r,s=u.transition,c=u.crossfadeOpacity;null===(a=(i=this.stopAxisAnimation)[t])||void 0===a||a.call(i);var l,f=this.props.visualElement,p=this.frameTarget[t],d=f.axisProgress[t];d.clearListeners(),d.set(0),d.set(0),c&&(l=this.createCrossfadeAnimation(c),f.show());var h=function(){var r=d.get()/1e3;!function(t,n,e,r){t.min=(0,o.CD)(n.min,e.min,r),t.max=(0,o.CD)(n.max,e.max,r)}(p,e,n,r),f.setAxisTarget(t,p.min,p.max),null==l||l(r)};h(),f.updateLayoutDelta();var v=d.onChange(h),m=S("x"===t?"layoutX":"layoutY",d,1e3,s||this.props.transition||cr).then(v);return this.stopAxisAnimation[t]=function(){d.stop(),v()},m},n.prototype.createCrossfadeAnimation=function(t){var n=this.props.visualElement.getValue("opacity",0);return function(e){n.set(fr((0,o.CD)(0,1,e))),t.set(pr((0,o.CD)(1,0,e)))}},n.prototype.safeToRemove=function(){var t,n;null===(n=(t=this.props).safeToRemove)||void 0===n||n.call(t)},n.prototype.render=function(){return null},n}(s.Component);function ar(t){var n=(0,r.CR)(Zn(),2)[1];return(0,s.createElement)(or,(0,r.pi)({},t,{safeToRemove:n}))}function ur(t,n){return sr(t.x,n.x)||sr(t.y,n.y)}function sr(t,n){return t.min!==n.min||t.max!==n.max}var cr={duration:.45,ease:[.4,0,.1,1]};function lr(t,n,e){return function(r){return r<t?0:r>n?1:e((0,o.YD)(t,n,r))}}var fr=lr(0,.5,o.Bn),pr=lr(.5,.95,o.GE),dr={key:"animate-layout",shouldRender:function(t){return!!t.layout||!!t.layoutId},getComponent:function(){return ar}},hr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(n,t),n.prototype.componentDidMount=function(){var t=this.props,n=t.syncLayout,e=t.framerSyncLayout,r=t.visualElement;Yn(n)&&n.register(r),Yn(e)&&e.register(r)},n.prototype.getSnapshotBeforeUpdate=function(){var t=this.props,n=t.syncLayout,e=t.visualElement;return Yn(n)?n.syncUpdate():(e.snapshotBoundingBox(),n.add(e)),null},n.prototype.componentDidUpdate=function(){var t=this.props,n=t.syncLayout,e=t.visualElement;Yn(n)||n.flush(),e.rebaseTargetBox()},n.prototype.render=function(){return null},n}(s.Component);function vr(t){var n=(0,s.useContext)(Xn),e=(0,s.useContext)(_n);return s.createElement(hr,(0,r.pi)({},t,{syncLayout:n,framerSyncLayout:e}))}var mr={key:"measure-layout",shouldRender:function(t){return!!t.drag||!!t.layout||!!t.layoutId},getComponent:function(){return vr}},gr=[mr,ir,Oe,$e,Qe,dr],yr={useVisualElement:function(t,n,e,i){var o=En(),a=on((function(){return new(gn(t)?vn:en)(o,i)}));a.updateConfig((0,r.pi)((0,r.pi)((0,r.pi)({},a.config),{enableHardwareAcceleration:!e}),n)),a.layoutId=n.layoutId;var u=(0,s.useContext)(yn),c=null===u||u.isPresent;a.isPresent=void 0!==n.isPresent?n.isPresent:c;var l=null==u?void 0:u.id;return a.isPresenceRoot=!o||o.presenceId!==l,(0,s.useEffect)((function(){if(n.onViewportBoxUpdate)return a.onViewportBoxUpdate(n.onViewportBoxUpdate)}),[n.onViewportBoxUpdate]),a},render:function(t,n,e){var i="string"==typeof t?function(t){var n={};for(var e in t)Pn(e)&&(n[e]=t[e]);return n}(n):n;e.clean(),e.build();var o=gn(t)?function(t){return(0,r.pi)((0,r.pi)({},t.attrs),{style:(0,r.pi)({},t.reactStyle)})}(e):function(t,n){var e=n.drag,i={style:(0,r.pi)((0,r.pi)((0,r.pi)({},t.reactStyle),t.style),t.vars)};return e&&(i.draggable=!1,i.style.userSelect="none",i.style.touchAction=!0===e?"none":"pan-"+("x"===e?"y":"x")),i}(e,n);return(0,s.createElement)(t,(0,r.pi)((0,r.pi)((0,r.pi)({},i),{ref:e.ref}),o))}};function xr(t){var n=(0,r.pi)((0,r.pi)({},yr),{defaultFeatures:t});var e=new Map;return new Proxy({custom:function(t){return Qn(t,n)}},{get:function(t,r){return"custom"===r?t.custom:(e.has(r)||e.set(r,Qn(r,n)),e.get(r))}})}var br=xr(gr);function Er(t){return Qn(t,(0,r.pi)((0,r.pi)({},yr),{defaultFeatures:gr}))}var Cr=xr([mr]);var wr=0;function Pr(){var t=wr;return wr++,t}var Sr=function(t){var n=t.children,e=t.initial,r=t.isPresent,i=t.onExitComplete,o=t.custom,a=t.presenceAffectsLayout,u=on(Ar),c=on(Pr),l=(0,s.useMemo)((function(){return{id:c,initial:e,isPresent:r,custom:o,onExitComplete:function(t){u.set(t,!0);var n=!0;u.forEach((function(t){t||(n=!1)})),n&&(null==i||i())},register:function(t){return u.set(t,!1),function(){return u.delete(t)}}}}),a?void 0:[r]);return(0,s.useMemo)((function(){u.forEach((function(t,n){return u.set(n,!1)}))}),[r]),(0,s.createElement)(yn.Provider,{value:l},n)};function Ar(){return new Map}function Tr(t){return t.key||""}var Vr=function(t){var n=t.children,e=t.custom,i=t.initial,o=void 0===i||i,a=t.onExitComplete,u=t.exitBeforeEnter,c=t.presenceAffectsLayout,l=void 0===c||c,f=function(){var t=(0,s.useRef)(!1),n=(0,r.CR)((0,s.use
1State)(0),2),e=n[0],i=n[1];return Fe((function(){return t.current=!0})),(0,s.useCallback)((function(){!t.current&&i(e+1)}),[e])}(),p=(0,s.useContext)(Xn);Yn(p)&&(f=p.forceUpdate);var d=(0,s.useRef)(!0),h=function(t){var n=[];return s.Children.forEach(t,(function(t){(0,s.isValidElement)(t)&&n.push(t)})),n}(n),v=(0,s.useRef)(h),m=(0,s.useRef)(new Map).current,g=(0,s.useRef)(new Set).current;if(function(t,n){t.forEach((function(t){var e=Tr(t);n.set(e,t)}))}(h,m),d.current)return d.current=!1,(0,s.createElement)(s.Fragment,null,h.map((function(t){return(0,s.createElement)(Sr,{key:Tr(t),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:l},t)})));for(var y=(0,r.fl)(h),x=v.current.map(Tr),b=h.map(Tr),E=x.length,C=0;C<E;C++){var w=x[C];-1===b.indexOf(w)?g.add(w):g.delete(w)}return u&&g.size&&(y=[]),g.forEach((function(t){if(-1===b.indexOf(t)){var n=m.get(t);if(n){var r=x.indexOf(t);y.splice(r,0,(0,s.createElement)(Sr,{key:Tr(n),isPresent:!1,onExitComplete:function(){m.delete(t),g.delete(t);var n=v.current.findIndex((function(n){return n.key===t}));v.current.splice(n,1),g.size||(v.current=h,f(),a&&a())},custom:e,presenceAffectsLayout:l},n))}}})),y=y.map((function(t){var n=t.key;return g.has(n)?t:(0,s.createElement)(Sr,{key:Tr(t),isPresent:!0,presenceAffectsLayout:l},t)})),v.current=y,(0,s.createElement)(s.Fragment,null,g.size?y:y.map((function(t){return(0,s.cloneElement)(t)})))};function Lr(t,n){return n&&t!==n.lead?{visibilityAction:Rn.Hide}:n&&t.presence!==Ln.Entering&&t===n.lead&&n.lead!==n.prevLead?{visibilityAction:Rn.Show}:(t.presence===Ln.Entering?e=null==n?void 0:n.getFollowOrigin():t.presence===Ln.Exiting&&(r=null==n?void 0:n.getFollowTarget()),{originBox:e,targetBox:r});var e,r}function Rr(t,n){var e,r,i,o={},a=n&&n.lead,u=null==a?void 0:a.presence;return n&&t===a?t.presence===Ln.Entering?o.originBox=n.getFollowOrigin():t.presence===Ln.Exiting&&(o.targetBox=n.getFollowTarget()):n&&t===n.follow&&(o.transition=n.getLeadTransition(),u===Ln.Entering?o.targetBox=n.getLeadTarget():u===Ln.Exiting&&(o.originBox=n.getLeadOrigin())),(null===(e=null==n?void 0:n.follow)||void 0===e?void 0:e.isPresenceRoot)||(null==a?void 0:a.isPresenceRoot)?(n&&t!==a?n&&t===n.follow?a&&u!==Ln.Entering&&u===Ln.Exiting&&(o.crossfadeOpacity=null===(i=null==n?void 0:n.lead)||void 0===i?void 0:i.getValue("opacity",1)):o.visibilityAction=Rn.Hide:t.presence===Ln.Entering&&(o.crossfadeOpacity=null===(r=null==n?void 0:n.follow)||void 0===r?void 0:r.getValue("opacity",0)),o):o}var Br=function(){function t(){this.order=[],this.hasChildren=!1}return t.prototype.add=function(t){var n;if(this.order.push(t),this.snapshot){t.prevSnapshot=this.snapshot,t.prevViewportBox=this.snapshot.boundingBox;var e=this.snapshot.latestMotionValues;for(var r in e)t.hasValue(r)?null===(n=t.getValue(r))||void 0===n||n.set(e[r]):t.addValue(r,p(e[r]))}this.hasChildren=!0},t.prototype.remove=function(t){var n=this.order.findIndex((function(n){return t===n}));-1!==n&&this.order.splice(n,1)},t.prototype.updateLeadAndFollow=function(){this.prevLead=this.lead,this.prevFollow=this.follow;var t=(0,r.CR)(function(t,n){for(var e=(0,r.CR)(n,2),i=e[0],o=e[1],a=void 0,u=0,s=void 0,c=t.length,l=!1,f=c-1;f>=0;f--){var p=t[f];if(f===c-1&&(l=p.isPresent),l)a=p;else{var d=t[f-1];d&&d.isPresent&&(a=p)}if(a){u=f;break}}if(a||(a=t[0]),s=t[u-1],a)for(f=u-1;f>=0;f--)if((p=t[f]).isPresent){s=p;break}return a!==i&&!l&&s===o&&t.find((function(t){return t===i}))&&(a=i),[a,s]}(this.order,[this.lead,this.follow]),2),n=t[0],e=t[1];this.lead=n,this.follow=e},t.prototype.updateSnapshot=function(){if(this.lead){var t={boun
1dingBox:this.lead.prevViewportBox,latestMotionValues:{}};this.lead.forEachValue((function(n,e){var r=n.get();lt(r)||(t.latestMotionValues[e]=r)}));var n=Re.get(this.lead);n&&n.isDragging&&(t.isDragging=!0,t.cursorProgress=n.cursorProgress),this.snapshot=t}},t.prototype.isLeadPresent=function(){var t;return this.lead&&(null===(t=this.lead)||void 0===t?void 0:t.presence)!==Ln.Exiting},t.prototype.getFollowOrigin=function(){var t;return this.follow?this.follow.prevViewportBox:null===(t=this.snapshot)||void 0===t?void 0:t.boundingBox},t.prototype.getFollowTarget=function(){var t;return null===(t=this.follow)||void 0===t?void 0:t.box},t.prototype.getLeadOrigin=function(){var t;return null===(t=this.lead)||void 0===t?void 0:t.prevViewportBox},t.prototype.getLeadTarget=function(){var t;return null===(t=this.lead)||void 0===t?void 0:t.box},t.prototype.getLeadTransition=function(){var t;return null===(t=this.lead)||void 0===t?void 0:t.config.transition},t}(),kr=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.children=new Set,n.stacks=new Map,n.hasMounted=!1,n.updateScheduled=!1,n.renderScheduled=!1,n.syncContext=(0,r.pi)((0,r.pi)({},In()),{syncUpdate:function(t){return n.scheduleUpdate(t)},forceUpdate:function(){n.syncContext=(0,r.pi)({},n.syncContext),n.scheduleUpdate(!0)},register:function(t){return n.addChild(t)},remove:function(t){return n.removeChild(t)}}),n}return(0,r.ZT)(n,t),n.prototype.componentDidMount=function(){this.hasMounted=!0,this.updateStacks()},n.prototype.componentDidUpdate=function(){this.startLayoutAnimation()},n.prototype.shouldComponentUpdate=function(){return this.renderScheduled=!0,!0},n.prototype.startLayoutAnimation=function(){var t=this;this.renderScheduled=this.updateScheduled=!1;var n=this.props.type;this.children.forEach((function(t){t.isPresent?t.presence!==Ln.Entering&&(t.presence=t.presence===Ln.Exiting?Ln.Entering:Ln.Present):t.presence=Ln.Exiting})),this.updateStacks();var e="crossfade"===n?Rr:Lr,r={measureLayout:function(t){return t.measureLayout()},layoutReady:function(n){var r=n.layoutId;n.layoutReady(e(n,t.getStack(r)))}};this.children.forEach((function(n){return t.syncContext.add(n)})),this.syncContext.flush(r),this.stacks.forEach((function(t){return t.snapshot=void 0}))},n.prototype.updateStacks=function(){this.stacks.forEach((function(t){return t.updateLeadAndFollow()}))},n.prototype.scheduleUpdate=function(t){void 0===t&&(t=!1),!t&&this.updateScheduled||(this.updateScheduled=!0,this.children.forEach((function(t){return t.snapshotBoundingBox()})),this.stacks.forEach((function(t){return t.updateSnapshot()})),!t&&this.renderScheduled||(this.renderScheduled=!0,this.forceUpdate()))},n.prototype.addChild=function(t){this.children.add(t),this.addToStack(t),t.presence=this.hasMounted?Ln.Entering:Ln.Present},n.prototype.removeChild=function(t){this.scheduleUpdate(),this.children.delete(t),this.removeFromStack(t)},n.prototype.addToStack=function(t){var n=this.getStack(t.layoutId);null==n||n.add(t)},n.prototype.removeFromStack=function(t){var n=this.getStack(t.layoutId);null==n||n.remove(t)},n.prototype.getStack=function(t){if(void 0!==t)return!this.stacks.has(t)&&this.stacks.set(t,new Br),this.stacks.get(t)},n.prototype.render=function(){return(0,s.createElement)(Xn.Provider,{value:this.syncContext},this.props.children)},n}(s.Component);function Mr(t){return on((function(){return p(t)}))}function Dr(t,n){(0,s.useEffect)((function(){return An(t)?t.onChange(n):void 0}))}function Or(t,n){var e=Mr(n()),r=function(){return e.set(n())};return r(),function(t,n){(0,s.useEffect)((function(){var e=t.map((function(t){return t.onChange(n)}));return function(){return e.forEach((function(t){return t()}))}}))}(t,(function(){return i.ZP.update(r,!1,!0)})),e}function Fr(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];var r=t.length;function i(){for(var e="",i=0;i<r;i++){e+=t[i],n[i]&&(e+=n[i].get())}return e}return Or(n,i)}function Ur(t){var n,e=t instanceof f?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e}var Ir=function(t){return function(t){return"object"==typeof t&&t.mix}(t)?t.mix:void 0};function Yr(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=!Array.isArray(t[0]),i=e?0:-1,a=t[0+i],u=t[1+i],s=t[2+i],c=t[3+i],l=(0,o.sX)(u,s,(0,r.pi)({mixer:Ir(s[0])},c));return e?l(a):l}function Xr(t,n,e,i){var o="function"==typeof n?n:Yr(n,e,i);return Array.isArray(t)?_r(t,o):_r([t],(function(t){var n=(0,r.CR)(t,1)[0];return o(n)}))}function _r(t,n){var e=on((function(){return[]}));return Or(t,(function(){e.length=0;for(var r=t.length,i=0;i<r;i++)e[i]=t[i].get();return n(e)}))}var Hr=function(t){return t>.001?1/t:1e5},Zr=!1;function Wr(t){var n=Mr(1),e=Mr(1),r=En();return(0,a.k)(!(!t&&!r),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),(0,a.K)(Zr,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),Zr=!0,t?(n=t.scaleX||n,e=t.scaleY||e):r&&(n=r.getValue("scaleX",1),e=r.getValue("scaleY",1)),{scaleX:Xr(n,Hr),scaleY:Xr(e,Hr)}}function jr(t,n){void 0===n&&(n={});var e=(0,s.useRef)(null),i=Mr(An(t)?t.get():t);return(0,s.useMemo)((function(){return i.attach((function(t,a){return e.current&&e.current.stop(),e.current=(0,o.jt)((0,r.pi)((0,r.pi)({from:i.get(),to:t,velocity:i.getVelocity()},n),{onUpdate:a})),i.get()}))}),Object.values(n)),Dr(t,(function(t){return i.set(parseFloat(t))})),i}function zr(){return{scrollX:p(0),scrollY:p(0),scrollXProgress:p(0),scrollYProgress:p(0)}}function Gr(t,n,e){e.set(t&&n?t/n:0)}function $r(t,n){var e=function(){var e=n(),r=e.xOffset,i=e.yOffset,o=e.xMaxOffset,a=e.yMaxOffset;t.scrollX.set(r),t.scrollY.set(i),Gr(r,o,t.scrollXProgress),Gr(i,a,t.scrollYProgress)};return e(),e}function Nr(t){var n=on(zr);return Hn((function(){var e=t.current;if((0,a.k)(!!e,"ref provided to useScroll must be passed into a HTML element."),e){var r=$r(n,function(t){return function(){return{xOffset:t.scrollLeft,yOffset:t.scrollTop,xMaxOffset:t.scrollWidth-t.offsetWidth,yMaxOffset:t.scrollHeight-t.offsetHeight}}}(e)),i=re(e,"scroll",r,{passive:!0}),o=re(e,"resize",r);return function(){i&&i(),o&&o()}}}),[]),n}var qr=zr();function Kr(){return{xOffset:window.pageXOffset,yOffset:window.pageYOffset,xMaxOffset:document.body.clientWidth-window.innerWidth,yMaxOffset:document.body.clientHeight-window.innerHeight}}var Qr=!1;function Jr(){return Hn((function(){!Qr&&function(){if(Qr=!0,"undefined"!=typeof window){var t=$r(qr,Kr);re(window,"scroll",t,{passive:!0}),re(window,"resize",t)}}()}),[]),qr}var ti=p(null);if("undefined"!=typeof window)if(window.matchMedia){var ni=window.matchMedia("(prefers-reduced-motion)"),ei=function(){return ti.set(ni.matches)};
1ni.addListener(ei),ei()}else ti.set(!1);function ri(){var t=(0,r.CR)((0,s.useState)(ti.get()),2),n=t[0],e=t[1];return Dr(ti,e),n}function ii(){var t=on((function(){return new Ne}));return(0,s.useEffect)((function(){return t.mount(),function(){return t.unmount()}}),[]),t}function oi(t,n,e){void 0===e&&(e={});var r=An(t)?t:p(t);return S("",r,n,e),{stop:function(){return r.stop()}}}function ai(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(0,a.K)(t.length>1,"useCycle syntax has changed. `useCycle([0, 1, 2])` becomes `useCycle(0, 1, 2)`");var e=(0,s.useRef)(0),i=(0,r.CR)((0,s.useState)(t[e.current]),2),u=i[0],c=i[1];return[u,function(n){e.current="number"!=typeof n?(0,o.re)(0,t.length,e.current+1):n,c(t[e.current])}]}var ui=function(){function t(){this.componentControls=new Set}return t.prototype.subscribe=function(t){var n=this;return this.componentControls.add(t),function(){return n.componentControls.delete(t)}},t.prototype.start=function(t,n){this.componentControls.forEach((function(e){e.start(t.nativeEvent||t,n)}))},t.prototype.updateConstraints=function(){this.componentControls.forEach((function(t){t.prepareBoundingBox(),t.resolveDragConstraints()}))},t}(),si=function(){return new ui};function ci(){return on(si)}function li(t){var n=t&&"function"!=typeof t?t:(0,s.useRef)(null);return t&&"function"==typeof t&&(0,s.useEffect)((function(){return t(n.current),function(){return t(null)}}),[]),n}var fi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.initialState={},n}return(0,r.ZT)(n,t),n.prototype.updateLayoutDelta=function(){},n.prototype.build=function(){},n.prototype.clean=function(){},n.prototype.makeTargetAnimatable=function(t){var n=t.transition,e=t.transitionEnd,i=(0,r._T)(t,["transition","transitionEnd"]);return Z(this,i,j(i,n||{},this)),(0,r.pi)({transition:n,transitionEnd:e},i)},n.prototype.getBoundingBox=function(){return{x:{min:0,max:0},y:{min:0,max:0}}},n.prototype.readNativeValue=function(t){return this.initialState[t]||0},n.prototype.render=function(){this.build()},n}(J);function pi(t){var n=(0,r.CR)((0,s.useState)(t),2),e=n[0],i=n[1],o=on((function(){return new fi}));return o.updateConfig({onUpdate:function(t){return i((0,r.pi)({},t))}}),o.initialState=t,(0,s.useEffect)((function(){return o.mount({}),function(){return o.unmount()}}),[]),[e,on((function(){return function(t){return z(o,t)}}))]}}}]);

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.