From bdf2611d6f18400ee952f556f0d23fd92cc462b9 Mon Sep 17 00:00:00 2001 From: asa9874 Date: Sat, 1 Feb 2025 15:44:33 +0900 Subject: [PATCH] Updates --- .../{index-BRC6n_FL.js => index-BS_nJ9rg.js} | 38 +++++++++---------- index.html | 2 +- 2 files changed, 20 insertions(+), 20 deletions(-) rename assets/{index-BRC6n_FL.js => index-BS_nJ9rg.js} (54%) diff --git a/assets/index-BRC6n_FL.js b/assets/index-BS_nJ9rg.js similarity index 54% rename from assets/index-BRC6n_FL.js rename to assets/index-BS_nJ9rg.js index 90d5b9b..91e9d7c 100644 --- a/assets/index-BRC6n_FL.js +++ b/assets/index-BS_nJ9rg.js @@ -1,4 +1,4 @@ -(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const f of a)if(f.type==="childList")for(const c of f.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function s(a){const f={};return a.integrity&&(f.integrity=a.integrity),a.referrerPolicy&&(f.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?f.credentials="include":a.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(a){if(a.ep)return;a.ep=!0;const f=s(a);fetch(a.href,f)}})();function Ov(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ta={exports:{}},yi={},Ea={exports:{}},ae={};/** +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const f of a)if(f.type==="childList")for(const c of f.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function s(a){const f={};return a.integrity&&(f.integrity=a.integrity),a.referrerPolicy&&(f.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?f.credentials="include":a.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(a){if(a.ep)return;a.ep=!0;const f=s(a);fetch(a.href,f)}})();function jv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ta={exports:{}},yi={},Ea={exports:{}},ae={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Gd;function jv(){if(Gd)return ae;Gd=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function x(E){return E===null||typeof E!="object"?null:(E=v&&E[v]||E["@@iterator"],typeof E=="function"?E:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,k={};function P(E,j,oe){this.props=E,this.context=j,this.refs=k,this.updater=oe||A}P.prototype.isReactComponent={},P.prototype.setState=function(E,j){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,j,"setState")},P.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function M(){}M.prototype=P.prototype;function F(E,j,oe){this.props=E,this.context=j,this.refs=k,this.updater=oe||A}var B=F.prototype=new M;B.constructor=F,R(B,P.prototype),B.isPureReactComponent=!0;var Q=Array.isArray,b=Object.prototype.hasOwnProperty,Z={current:null},se={key:!0,ref:!0,__self:!0,__source:!0};function X(E,j,oe){var ue,fe={},de=null,ye=null;if(j!=null)for(ue in j.ref!==void 0&&(ye=j.ref),j.key!==void 0&&(de=""+j.key),j)b.call(j,ue)&&!se.hasOwnProperty(ue)&&(fe[ue]=j[ue]);var pe=arguments.length-2;if(pe===1)fe.children=oe;else if(1>>1,j=U[E];if(0>>1;Ea(fe,$))dea(ye,fe)?(U[E]=ye,U[de]=$,E=de):(U[E]=fe,U[ue]=$,E=ue);else if(dea(ye,$))U[E]=ye,U[de]=$,E=de;else break e}}return J}function a(U,J){var $=U.sortIndex-J.sortIndex;return $!==0?$:U.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var c=Date,h=c.now();n.unstable_now=function(){return c.now()-h}}var p=[],g=[],y=1,v=null,x=3,A=!1,R=!1,k=!1,P=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function B(U){for(var J=s(g);J!==null;){if(J.callback===null)o(g);else if(J.startTime<=U)o(g),J.sortIndex=J.expirationTime,r(p,J);else break;J=s(g)}}function Q(U){if(k=!1,B(U),!R)if(s(p)!==null)R=!0,Xe(b);else{var J=s(g);J!==null&&le(Q,J.startTime-U)}}function b(U,J){R=!1,k&&(k=!1,M(X),X=-1),A=!0;var $=x;try{for(B(J),v=s(p);v!==null&&(!(v.expirationTime>J)||U&&!tt());){var E=v.callback;if(typeof E=="function"){v.callback=null,x=v.priorityLevel;var j=E(v.expirationTime<=J);J=n.unstable_now(),typeof j=="function"?v.callback=j:v===s(p)&&o(p),B(J)}else o(p);v=s(p)}if(v!==null)var oe=!0;else{var ue=s(g);ue!==null&&le(Q,ue.startTime-J),oe=!1}return oe}finally{v=null,x=$,A=!1}}var Z=!1,se=null,X=-1,ge=5,Re=-1;function tt(){return!(n.unstable_now()-ReU||125E?(U.sortIndex=$,r(g,U),s(p)===null&&U===s(g)&&(k?(M(X),X=-1):k=!0,le(Q,$-E))):(U.sortIndex=j,r(p,U),R||A||(R=!0,Xe(b))),U},n.unstable_shouldYield=tt,n.unstable_wrapCallback=function(U){var J=x;return function(){var $=x;x=J;try{return U.apply(this,arguments)}finally{x=$}}}}(ka)),ka}var Jd;function Bv(){return Jd||(Jd=1,Ca.exports=Iv()),Ca.exports}/** + */var eh;function Iv(){return eh||(eh=1,function(n){function r(U,J){var $=U.length;U.push(J);e:for(;0<$;){var E=$-1>>>1,O=U[E];if(0>>1;Ea(fe,$))dea(ye,fe)?(U[E]=ye,U[de]=$,E=de):(U[E]=fe,U[ue]=$,E=ue);else if(dea(ye,$))U[E]=ye,U[de]=$,E=de;else break e}}return J}function a(U,J){var $=U.sortIndex-J.sortIndex;return $!==0?$:U.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var c=Date,h=c.now();n.unstable_now=function(){return c.now()-h}}var p=[],m=[],y=1,v=null,x=3,N=!1,k=!1,C=!1,P=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function B(U){for(var J=s(m);J!==null;){if(J.callback===null)o(m);else if(J.startTime<=U)o(m),J.sortIndex=J.expirationTime,r(p,J);else break;J=s(m)}}function q(U){if(C=!1,B(U),!k)if(s(p)!==null)k=!0,Xe(b);else{var J=s(m);J!==null&&le(q,J.startTime-U)}}function b(U,J){k=!1,C&&(C=!1,M(X),X=-1),N=!0;var $=x;try{for(B(J),v=s(p);v!==null&&(!(v.expirationTime>J)||U&&!tt());){var E=v.callback;if(typeof E=="function"){v.callback=null,x=v.priorityLevel;var O=E(v.expirationTime<=J);J=n.unstable_now(),typeof O=="function"?v.callback=O:v===s(p)&&o(p),B(J)}else o(p);v=s(p)}if(v!==null)var oe=!0;else{var ue=s(m);ue!==null&&le(q,ue.startTime-J),oe=!1}return oe}finally{v=null,x=$,N=!1}}var Z=!1,se=null,X=-1,ge=5,ke=-1;function tt(){return!(n.unstable_now()-keU||125E?(U.sortIndex=$,r(m,U),s(p)===null&&U===s(m)&&(C?(M(X),X=-1):C=!0,le(q,$-E))):(U.sortIndex=O,r(p,U),k||N||(k=!0,Xe(b))),U},n.unstable_shouldYield=tt,n.unstable_wrapCallback=function(U){var J=x;return function(){var $=x;x=J;try{return U.apply(this,arguments)}finally{x=$}}}}(Ra)),Ra}var th;function Bv(){return th||(th=1,Ca.exports=Iv()),Ca.exports}/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var eh;function zv(){if(eh)return at;eh=1;var n=pu(),r=Bv();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,y={},v={};function x(e){return p.call(v,e)?!0:p.call(y,e)?!1:g.test(e)?v[e]=!0:(y[e]=!0,!1)}function A(e,t,i,l){if(i!==null&&i.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return l?!1:i!==null?!i.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function R(e,t,i,l){if(t===null||typeof t>"u"||A(e,t,i,l))return!0;if(l)return!1;if(i!==null)switch(i.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function k(e,t,i,l,u,d,m){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=l,this.attributeNamespace=u,this.mustUseProperty=i,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=m}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){P[e]=new k(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];P[t]=new k(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){P[e]=new k(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){P[e]=new k(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){P[e]=new k(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){P[e]=new k(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){P[e]=new k(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){P[e]=new k(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){P[e]=new k(e,5,!1,e.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function F(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(M,F);P[t]=new k(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(M,F);P[t]=new k(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(M,F);P[t]=new k(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){P[e]=new k(e,1,!1,e.toLowerCase(),null,!1,!1)}),P.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){P[e]=new k(e,1,!1,e.toLowerCase(),null,!0,!0)});function B(e,t,i,l){var u=P.hasOwnProperty(t)?P[t]:null;(u!==null?u.type!==0:l||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,y={},v={};function x(e){return p.call(v,e)?!0:p.call(y,e)?!1:m.test(e)?v[e]=!0:(y[e]=!0,!1)}function N(e,t,i,l){if(i!==null&&i.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return l?!1:i!==null?!i.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function k(e,t,i,l){if(t===null||typeof t>"u"||N(e,t,i,l))return!0;if(l)return!1;if(i!==null)switch(i.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function C(e,t,i,l,u,d,g){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=l,this.attributeNamespace=u,this.mustUseProperty=i,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=g}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){P[e]=new C(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];P[t]=new C(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){P[e]=new C(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){P[e]=new C(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){P[e]=new C(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){P[e]=new C(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){P[e]=new C(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){P[e]=new C(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){P[e]=new C(e,5,!1,e.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function F(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(M,F);P[t]=new C(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(M,F);P[t]=new C(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(M,F);P[t]=new C(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){P[e]=new C(e,1,!1,e.toLowerCase(),null,!1,!1)}),P.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){P[e]=new C(e,1,!1,e.toLowerCase(),null,!0,!0)});function B(e,t,i,l){var u=P.hasOwnProperty(t)?P[t]:null;(u!==null?u.type!==0:l||!(2w||u[m]!==d[w]){var S=` -`+u[m].replace(" at new "," at ");return e.displayName&&S.includes("")&&(S=S.replace("",e.displayName)),S}while(1<=m&&0<=w);break}}}finally{oe=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?j(e):""}function fe(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return e=ue(e.type,!1),e;case 11:return e=ue(e.type.render,!1),e;case 1:return e=ue(e.type,!0),e;default:return""}}function de(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case se:return"Fragment";case Z:return"Portal";case ge:return"Profiler";case X:return"StrictMode";case Qe:return"Suspense";case nt:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tt:return(e.displayName||"Context")+".Consumer";case Re:return(e._context.displayName||"Context")+".Provider";case ct:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kt:return t=e.displayName||null,t!==null?t:de(e.type)||"Memo";case Xe:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}function ye(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return de(t);case 8:return t===X?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function pe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Te(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ft(e){var t=Te(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,d=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(m){l=""+m,d.call(this,m)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(m){l=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ui(e){e._valueTracker||(e._valueTracker=ft(e))}function Ju(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),l="";return e&&(l=Te(e)?e.checked?"true":"false":e.value),e=l,e!==i?(t.setValue(e),!0):!1}function bi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ao(e,t){var i=t.checked;return $({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}function ec(e,t){var i=t.defaultValue==null?"":t.defaultValue,l=t.checked!=null?t.checked:t.defaultChecked;i=pe(t.value!=null?t.value:i),e._wrapperState={initialChecked:l,initialValue:i,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function tc(e,t){t=t.checked,t!=null&&B(e,"checked",t,!1)}function No(e,t){tc(e,t);var i=pe(t.value),l=t.type;if(i!=null)l==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(l==="submit"||l==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Lo(e,t.type,i):t.hasOwnProperty("defaultValue")&&Lo(e,t.type,pe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function nc(e,t,i){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var l=t.type;if(!(l!=="submit"&&l!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,i||t===e.value||(e.value=t),e.defaultValue=t}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}function Lo(e,t,i){(t!=="number"||bi(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}var _r=Array.isArray;function Yn(e,t,i,l){if(e=e.options,t){t={};for(var u=0;u"+t.valueOf().toString()+"",t=Hi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mr(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Or={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bg=["Webkit","ms","Moz","O"];Object.keys(Or).forEach(function(e){Bg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Or[t]=Or[e]})});function ac(e,t,i){return t==null||typeof t=="boolean"||t===""?"":i||typeof t!="number"||t===0||Or.hasOwnProperty(e)&&Or[e]?(""+t).trim():t+"px"}function uc(e,t){e=e.style;for(var i in t)if(t.hasOwnProperty(i)){var l=i.indexOf("--")===0,u=ac(i,t[i],l);i==="float"&&(i="cssFloat"),l?e.setProperty(i,u):e[i]=u}}var zg=$({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Oo(e,t){if(t){if(zg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function jo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Vo=null;function Fo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Io=null,Gn=null,qn=null;function cc(e){if(e=ni(e)){if(typeof Io!="function")throw Error(s(280));var t=e.stateNode;t&&(t=ds(t),Io(e.stateNode,e.type,t))}}function fc(e){Gn?qn?qn.push(e):qn=[e]:Gn=e}function dc(){if(Gn){var e=Gn,t=qn;if(qn=Gn=null,cc(e),t)for(e=0;e>>=0,e===0?32:31-(Xg(e)/Zg|0)|0}var Gi=64,qi=4194304;function Ir(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Qi(e,t){var i=e.pendingLanes;if(i===0)return 0;var l=0,u=e.suspendedLanes,d=e.pingedLanes,m=i&268435455;if(m!==0){var w=m&~u;w!==0?l=Ir(w):(d&=m,d!==0&&(l=Ir(d)))}else m=i&~u,m!==0?l=Ir(m):d!==0&&(l=Ir(d));if(l===0)return 0;if(t!==0&&t!==l&&!(t&u)&&(u=l&-l,d=t&-t,u>=d||u===16&&(d&4194240)!==0))return t;if(l&4&&(l|=i&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=l;0i;i++)t.push(e);return t}function Br(e,t,i){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Rt(t),e[t]=i}function ny(e,t){var i=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var l=e.eventTimes;for(e=e.expirationTimes;0=Yr),zc=" ",Uc=!1;function bc(e,t){switch(e){case"keyup":return Ny.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zn=!1;function _y(e,t){switch(e){case"compositionend":return Hc(t);case"keypress":return t.which!==32?null:(Uc=!0,zc);case"textInput":return e=t.data,e===zc&&Uc?null:e;default:return null}}function My(e,t){if(Zn)return e==="compositionend"||!nl&&bc(e,t)?(e=Oc(),ts=Qo=on=null,Zn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:i,offset:t-e};e=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Qc(i)}}function Zc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jc(){for(var e=window,t=bi();t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=bi(e.document)}return t}function sl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function by(e){var t=Jc(),i=e.focusedElem,l=e.selectionRange;if(t!==i&&i&&i.ownerDocument&&Zc(i.ownerDocument.documentElement,i)){if(l!==null&&sl(i)){if(t=l.start,e=l.end,e===void 0&&(e=t),"selectionStart"in i)i.selectionStart=t,i.selectionEnd=Math.min(e,i.value.length);else if(e=(t=i.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var u=i.textContent.length,d=Math.min(l.start,u);l=l.end===void 0?d:Math.min(l.end,u),!e.extend&&d>l&&(u=l,l=d,d=u),u=Xc(i,d);var m=Xc(i,l);u&&m&&(e.rangeCount!==1||e.anchorNode!==u.node||e.anchorOffset!==u.offset||e.focusNode!==m.node||e.focusOffset!==m.offset)&&(t=t.createRange(),t.setStart(u.node,u.offset),e.removeAllRanges(),d>l?(e.addRange(t),e.extend(m.node,m.offset)):(t.setEnd(m.node,m.offset),e.addRange(t)))}}for(t=[],e=i;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i=document.documentMode,Jn=null,ol=null,Xr=null,ll=!1;function ef(e,t,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;ll||Jn==null||Jn!==bi(l)||(l=Jn,"selectionStart"in l&&sl(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Xr&&Qr(Xr,l)||(Xr=l,l=us(ol,"onSelect"),0ir||(e.current=wl[ir],wl[ir]=null,ir--)}function ve(e,t){ir++,wl[ir]=e.current,e.current=t}var cn={},He=un(cn),rt=un(!1),Rn=cn;function sr(e,t){var i=e.type.contextTypes;if(!i)return cn;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===t)return l.__reactInternalMemoizedMaskedChildContext;var u={},d;for(d in i)u[d]=t[d];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function it(e){return e=e.childContextTypes,e!=null}function hs(){xe(rt),xe(He)}function gf(e,t,i){if(He.current!==cn)throw Error(s(168));ve(He,t),ve(rt,i)}function yf(e,t,i){var l=e.stateNode;if(t=t.childContextTypes,typeof l.getChildContext!="function")return i;l=l.getChildContext();for(var u in l)if(!(u in t))throw Error(s(108,ye(e)||"Unknown",u));return $({},i,l)}function ps(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cn,Rn=He.current,ve(He,e),ve(rt,rt.current),!0}function vf(e,t,i){var l=e.stateNode;if(!l)throw Error(s(169));i?(e=yf(e,t,Rn),l.__reactInternalMemoizedMergedChildContext=e,xe(rt),xe(He),ve(He,e)):xe(rt),ve(rt,i)}var $t=null,ms=!1,xl=!1;function wf(e){$t===null?$t=[e]:$t.push(e)}function ev(e){ms=!0,wf(e)}function fn(){if(!xl&&$t!==null){xl=!0;var e=0,t=me;try{var i=$t;for(me=1;e>=m,u-=m,Kt=1<<32-Rt(t)+u|i<re?(Be=te,te=null):Be=te.sibling;var he=O(C,te,D[re],z);if(he===null){te===null&&(te=Be);break}e&&te&&he.alternate===null&&t(C,te),T=d(he,T,re),ee===null?q=he:ee.sibling=he,ee=he,te=Be}if(re===D.length)return i(C,te),Ee&&An(C,re),q;if(te===null){for(;rere?(Be=te,te=null):Be=te.sibling;var xn=O(C,te,he.value,z);if(xn===null){te===null&&(te=Be);break}e&&te&&xn.alternate===null&&t(C,te),T=d(xn,T,re),ee===null?q=xn:ee.sibling=xn,ee=xn,te=Be}if(he.done)return i(C,te),Ee&&An(C,re),q;if(te===null){for(;!he.done;re++,he=D.next())he=I(C,he.value,z),he!==null&&(T=d(he,T,re),ee===null?q=he:ee.sibling=he,ee=he);return Ee&&An(C,re),q}for(te=l(C,te);!he.done;re++,he=D.next())he=H(te,C,re,he.value,z),he!==null&&(e&&he.alternate!==null&&te.delete(he.key===null?re:he.key),T=d(he,T,re),ee===null?q=he:ee.sibling=he,ee=he);return e&&te.forEach(function(Mv){return t(C,Mv)}),Ee&&An(C,re),q}function Le(C,T,D,z){if(typeof D=="object"&&D!==null&&D.type===se&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case b:e:{for(var q=D.key,ee=T;ee!==null;){if(ee.key===q){if(q=D.type,q===se){if(ee.tag===7){i(C,ee.sibling),T=u(ee,D.props.children),T.return=C,C=T;break e}}else if(ee.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===Xe&&Cf(q)===ee.type){i(C,ee.sibling),T=u(ee,D.props),T.ref=ri(C,ee,D),T.return=C,C=T;break e}i(C,ee);break}else t(C,ee);ee=ee.sibling}D.type===se?(T=Fn(D.props.children,C.mode,z,D.key),T.return=C,C=T):(z=Hs(D.type,D.key,D.props,null,C.mode,z),z.ref=ri(C,T,D),z.return=C,C=z)}return m(C);case Z:e:{for(ee=D.key;T!==null;){if(T.key===ee)if(T.tag===4&&T.stateNode.containerInfo===D.containerInfo&&T.stateNode.implementation===D.implementation){i(C,T.sibling),T=u(T,D.children||[]),T.return=C,C=T;break e}else{i(C,T);break}else t(C,T);T=T.sibling}T=ya(D,C.mode,z),T.return=C,C=T}return m(C);case Xe:return ee=D._init,Le(C,T,ee(D._payload),z)}if(_r(D))return Y(C,T,D,z);if(J(D))return G(C,T,D,z);ws(C,D)}return typeof D=="string"&&D!==""||typeof D=="number"?(D=""+D,T!==null&&T.tag===6?(i(C,T.sibling),T=u(T,D),T.return=C,C=T):(i(C,T),T=ga(D,C.mode,z),T.return=C,C=T),m(C)):i(C,T)}return Le}var ur=kf(!0),Rf=kf(!1),xs=un(null),Ss=null,cr=null,kl=null;function Rl(){kl=cr=Ss=null}function Dl(e){var t=xs.current;xe(xs),e._currentValue=t}function Al(e,t,i){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===i)break;e=e.return}}function fr(e,t){Ss=e,kl=cr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(st=!0),e.firstContext=null)}function xt(e){var t=e._currentValue;if(kl!==e)if(e={context:e,memoizedValue:t,next:null},cr===null){if(Ss===null)throw Error(s(308));cr=e,Ss.dependencies={lanes:0,firstContext:e}}else cr=cr.next=e;return t}var Nn=null;function Nl(e){Nn===null?Nn=[e]:Nn.push(e)}function Df(e,t,i,l){var u=t.interleaved;return u===null?(i.next=i,Nl(t)):(i.next=u.next,u.next=i),t.interleaved=i,Gt(e,l)}function Gt(e,t){e.lanes|=t;var i=e.alternate;for(i!==null&&(i.lanes|=t),i=e,e=e.return;e!==null;)e.childLanes|=t,i=e.alternate,i!==null&&(i.childLanes|=t),i=e,e=e.return;return i.tag===3?i.stateNode:null}var dn=!1;function Ll(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Af(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function hn(e,t,i){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,ce&2){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,Gt(e,i)}return u=l.interleaved,u===null?(t.next=t,Nl(l)):(t.next=u.next,u.next=t),l.interleaved=t,Gt(e,i)}function Ts(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194240)!==0)){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,$o(e,i)}}function Nf(e,t){var i=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var u=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var m={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};d===null?u=d=m:d=d.next=m,i=i.next}while(i!==null);d===null?u=d=t:d=d.next=t}else u=d=t;i={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:l.shared,effects:l.effects},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}function Es(e,t,i,l){var u=e.updateQueue;dn=!1;var d=u.firstBaseUpdate,m=u.lastBaseUpdate,w=u.shared.pending;if(w!==null){u.shared.pending=null;var S=w,N=S.next;S.next=null,m===null?d=N:m.next=N,m=S;var V=e.alternate;V!==null&&(V=V.updateQueue,w=V.lastBaseUpdate,w!==m&&(w===null?V.firstBaseUpdate=N:w.next=N,V.lastBaseUpdate=S))}if(d!==null){var I=u.baseState;m=0,V=N=S=null,w=d;do{var O=w.lane,H=w.eventTime;if((l&O)===O){V!==null&&(V=V.next={eventTime:H,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var Y=e,G=w;switch(O=t,H=i,G.tag){case 1:if(Y=G.payload,typeof Y=="function"){I=Y.call(H,I,O);break e}I=Y;break e;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=G.payload,O=typeof Y=="function"?Y.call(H,I,O):Y,O==null)break e;I=$({},I,O);break e;case 2:dn=!0}}w.callback!==null&&w.lane!==0&&(e.flags|=64,O=u.effects,O===null?u.effects=[w]:O.push(w))}else H={eventTime:H,lane:O,tag:w.tag,payload:w.payload,callback:w.callback,next:null},V===null?(N=V=H,S=I):V=V.next=H,m|=O;if(w=w.next,w===null){if(w=u.shared.pending,w===null)break;O=w,w=O.next,O.next=null,u.lastBaseUpdate=O,u.shared.pending=null}}while(!0);if(V===null&&(S=I),u.baseState=S,u.firstBaseUpdate=N,u.lastBaseUpdate=V,t=u.shared.interleaved,t!==null){u=t;do m|=u.lane,u=u.next;while(u!==t)}else d===null&&(u.shared.lanes=0);Mn|=m,e.lanes=m,e.memoizedState=I}}function Lf(e,t,i){if(e=t.effects,t.effects=null,e!==null)for(t=0;ti?i:4,e(!0);var l=Vl.transition;Vl.transition={};try{e(!1),t()}finally{me=i,Vl.transition=l}}function Qf(){return St().memoizedState}function iv(e,t,i){var l=yn(e);if(i={lane:l,action:i,hasEagerState:!1,eagerState:null,next:null},Xf(e))Zf(t,i);else if(i=Df(e,t,i,l),i!==null){var u=Je();Mt(i,e,l,u),Jf(i,t,l)}}function sv(e,t,i){var l=yn(e),u={lane:l,action:i,hasEagerState:!1,eagerState:null,next:null};if(Xf(e))Zf(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var m=t.lastRenderedState,w=d(m,i);if(u.hasEagerState=!0,u.eagerState=w,Dt(w,m)){var S=t.interleaved;S===null?(u.next=u,Nl(t)):(u.next=S.next,S.next=u),t.interleaved=u;return}}catch{}finally{}i=Df(e,t,u,l),i!==null&&(u=Je(),Mt(i,e,l,u),Jf(i,t,l))}}function Xf(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Zf(e,t){li=ks=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function Jf(e,t,i){if(i&4194240){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,$o(e,i)}}var As={readContext:xt,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},ov={readContext:xt,useCallback:function(e,t){return Bt().memoizedState=[e,t===void 0?null:t],e},useContext:xt,useEffect:bf,useImperativeHandle:function(e,t,i){return i=i!=null?i.concat([e]):null,Rs(4194308,4,$f.bind(null,t,e),i)},useLayoutEffect:function(e,t){return Rs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Rs(4,2,e,t)},useMemo:function(e,t){var i=Bt();return t=t===void 0?null:t,e=e(),i.memoizedState=[e,t],e},useReducer:function(e,t,i){var l=Bt();return t=i!==void 0?i(t):t,l.memoizedState=l.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},l.queue=e,e=e.dispatch=iv.bind(null,Ce,e),[l.memoizedState,e]},useRef:function(e){var t=Bt();return e={current:e},t.memoizedState=e},useState:zf,useDebugValue:Hl,useDeferredValue:function(e){return Bt().memoizedState=e},useTransition:function(){var e=zf(!1),t=e[0];return e=rv.bind(null,e[1]),Bt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,i){var l=Ce,u=Bt();if(Ee){if(i===void 0)throw Error(s(407));i=i()}else{if(i=t(),Ie===null)throw Error(s(349));_n&30||jf(l,t,i)}u.memoizedState=i;var d={value:i,getSnapshot:t};return u.queue=d,bf(Ff.bind(null,l,d,e),[e]),l.flags|=2048,ci(9,Vf.bind(null,l,d,i,t),void 0,null),i},useId:function(){var e=Bt(),t=Ie.identifierPrefix;if(Ee){var i=Yt,l=Kt;i=(l&~(1<<32-Rt(l)-1)).toString(32)+i,t=":"+t+"R"+i,i=ai++,0w||u[g]!==d[w]){var S=` +`+u[g].replace(" at new "," at ");return e.displayName&&S.includes("")&&(S=S.replace("",e.displayName)),S}while(1<=g&&0<=w);break}}}finally{oe=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?O(e):""}function fe(e){switch(e.tag){case 5:return O(e.type);case 16:return O("Lazy");case 13:return O("Suspense");case 19:return O("SuspenseList");case 0:case 2:case 15:return e=ue(e.type,!1),e;case 11:return e=ue(e.type.render,!1),e;case 1:return e=ue(e.type,!0),e;default:return""}}function de(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case se:return"Fragment";case Z:return"Portal";case ge:return"Profiler";case X:return"StrictMode";case qe:return"Suspense";case nt:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tt:return(e.displayName||"Context")+".Consumer";case ke:return(e._context.displayName||"Context")+".Provider";case ct:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Rt:return t=e.displayName||null,t!==null?t:de(e.type)||"Memo";case Xe:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}function ye(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return de(t);case 8:return t===X?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function pe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Te(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ft(e){var t=Te(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,d=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(g){l=""+g,d.call(this,g)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ui(e){e._valueTracker||(e._valueTracker=ft(e))}function tc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),l="";return e&&(l=Te(e)?e.checked?"true":"false":e.value),e=l,e!==i?(t.setValue(e),!0):!1}function bi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function No(e,t){var i=t.checked;return $({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}function nc(e,t){var i=t.defaultValue==null?"":t.defaultValue,l=t.checked!=null?t.checked:t.defaultChecked;i=pe(t.value!=null?t.value:i),e._wrapperState={initialChecked:l,initialValue:i,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rc(e,t){t=t.checked,t!=null&&B(e,"checked",t,!1)}function Ao(e,t){rc(e,t);var i=pe(t.value),l=t.type;if(i!=null)l==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(l==="submit"||l==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_o(e,t.type,i):t.hasOwnProperty("defaultValue")&&_o(e,t.type,pe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ic(e,t,i){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var l=t.type;if(!(l!=="submit"&&l!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,i||t===e.value||(e.value=t),e.defaultValue=t}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}function _o(e,t,i){(t!=="number"||bi(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}var Lr=Array.isArray;function Yn(e,t,i,l){if(e=e.options,t){t={};for(var u=0;u"+t.valueOf().toString()+"",t=Hi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mr(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var jr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bg=["Webkit","ms","Moz","O"];Object.keys(jr).forEach(function(e){Bg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jr[t]=jr[e]})});function cc(e,t,i){return t==null||typeof t=="boolean"||t===""?"":i||typeof t!="number"||t===0||jr.hasOwnProperty(e)&&jr[e]?(""+t).trim():t+"px"}function fc(e,t){e=e.style;for(var i in t)if(t.hasOwnProperty(i)){var l=i.indexOf("--")===0,u=cc(i,t[i],l);i==="float"&&(i="cssFloat"),l?e.setProperty(i,u):e[i]=u}}var zg=$({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function jo(e,t){if(t){if(zg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function Oo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Vo=null;function Fo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Io=null,Gn=null,Qn=null;function dc(e){if(e=ni(e)){if(typeof Io!="function")throw Error(s(280));var t=e.stateNode;t&&(t=ds(t),Io(e.stateNode,e.type,t))}}function hc(e){Gn?Qn?Qn.push(e):Qn=[e]:Gn=e}function pc(){if(Gn){var e=Gn,t=Qn;if(Qn=Gn=null,dc(e),t)for(e=0;e>>=0,e===0?32:31-(Xg(e)/Zg|0)|0}var Gi=64,Qi=4194304;function Ir(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function qi(e,t){var i=e.pendingLanes;if(i===0)return 0;var l=0,u=e.suspendedLanes,d=e.pingedLanes,g=i&268435455;if(g!==0){var w=g&~u;w!==0?l=Ir(w):(d&=g,d!==0&&(l=Ir(d)))}else g=i&~u,g!==0?l=Ir(g):d!==0&&(l=Ir(d));if(l===0)return 0;if(t!==0&&t!==l&&!(t&u)&&(u=l&-l,d=t&-t,u>=d||u===16&&(d&4194240)!==0))return t;if(l&4&&(l|=i&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=l;0i;i++)t.push(e);return t}function Br(e,t,i){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kt(t),e[t]=i}function ny(e,t){var i=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var l=e.eventTimes;for(e=e.expirationTimes;0=Yr),bc=" ",Hc=!1;function Wc(e,t){switch(e){case"keyup":return Ay.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $c(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zn=!1;function Ly(e,t){switch(e){case"compositionend":return $c(t);case"keypress":return t.which!==32?null:(Hc=!0,bc);case"textInput":return e=t.data,e===bc&&Hc?null:e;default:return null}}function My(e,t){if(Zn)return e==="compositionend"||!nl&&Wc(e,t)?(e=Vc(),ts=qo=on=null,Zn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:i,offset:t-e};e=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Zc(i)}}function ef(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ef(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function tf(){for(var e=window,t=bi();t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=bi(e.document)}return t}function sl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function by(e){var t=tf(),i=e.focusedElem,l=e.selectionRange;if(t!==i&&i&&i.ownerDocument&&ef(i.ownerDocument.documentElement,i)){if(l!==null&&sl(i)){if(t=l.start,e=l.end,e===void 0&&(e=t),"selectionStart"in i)i.selectionStart=t,i.selectionEnd=Math.min(e,i.value.length);else if(e=(t=i.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var u=i.textContent.length,d=Math.min(l.start,u);l=l.end===void 0?d:Math.min(l.end,u),!e.extend&&d>l&&(u=l,l=d,d=u),u=Jc(i,d);var g=Jc(i,l);u&&g&&(e.rangeCount!==1||e.anchorNode!==u.node||e.anchorOffset!==u.offset||e.focusNode!==g.node||e.focusOffset!==g.offset)&&(t=t.createRange(),t.setStart(u.node,u.offset),e.removeAllRanges(),d>l?(e.addRange(t),e.extend(g.node,g.offset)):(t.setEnd(g.node,g.offset),e.addRange(t)))}}for(t=[],e=i;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i=document.documentMode,Jn=null,ol=null,Xr=null,ll=!1;function nf(e,t,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;ll||Jn==null||Jn!==bi(l)||(l=Jn,"selectionStart"in l&&sl(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Xr&&qr(Xr,l)||(Xr=l,l=us(ol,"onSelect"),0ir||(e.current=wl[ir],wl[ir]=null,ir--)}function ve(e,t){ir++,wl[ir]=e.current,e.current=t}var cn={},He=un(cn),rt=un(!1),kn=cn;function sr(e,t){var i=e.type.contextTypes;if(!i)return cn;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===t)return l.__reactInternalMemoizedMaskedChildContext;var u={},d;for(d in i)u[d]=t[d];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function it(e){return e=e.childContextTypes,e!=null}function hs(){xe(rt),xe(He)}function vf(e,t,i){if(He.current!==cn)throw Error(s(168));ve(He,t),ve(rt,i)}function wf(e,t,i){var l=e.stateNode;if(t=t.childContextTypes,typeof l.getChildContext!="function")return i;l=l.getChildContext();for(var u in l)if(!(u in t))throw Error(s(108,ye(e)||"Unknown",u));return $({},i,l)}function ps(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cn,kn=He.current,ve(He,e),ve(rt,rt.current),!0}function xf(e,t,i){var l=e.stateNode;if(!l)throw Error(s(169));i?(e=wf(e,t,kn),l.__reactInternalMemoizedMergedChildContext=e,xe(rt),xe(He),ve(He,e)):xe(rt),ve(rt,i)}var $t=null,ms=!1,xl=!1;function Sf(e){$t===null?$t=[e]:$t.push(e)}function ev(e){ms=!0,Sf(e)}function fn(){if(!xl&&$t!==null){xl=!0;var e=0,t=me;try{var i=$t;for(me=1;e>=g,u-=g,Kt=1<<32-kt(t)+u|i<re?(Be=te,te=null):Be=te.sibling;var he=j(R,te,D[re],z);if(he===null){te===null&&(te=Be);break}e&&te&&he.alternate===null&&t(R,te),T=d(he,T,re),ee===null?Q=he:ee.sibling=he,ee=he,te=Be}if(re===D.length)return i(R,te),Ee&&Nn(R,re),Q;if(te===null){for(;rere?(Be=te,te=null):Be=te.sibling;var xn=j(R,te,he.value,z);if(xn===null){te===null&&(te=Be);break}e&&te&&xn.alternate===null&&t(R,te),T=d(xn,T,re),ee===null?Q=xn:ee.sibling=xn,ee=xn,te=Be}if(he.done)return i(R,te),Ee&&Nn(R,re),Q;if(te===null){for(;!he.done;re++,he=D.next())he=I(R,he.value,z),he!==null&&(T=d(he,T,re),ee===null?Q=he:ee.sibling=he,ee=he);return Ee&&Nn(R,re),Q}for(te=l(R,te);!he.done;re++,he=D.next())he=W(te,R,re,he.value,z),he!==null&&(e&&he.alternate!==null&&te.delete(he.key===null?re:he.key),T=d(he,T,re),ee===null?Q=he:ee.sibling=he,ee=he);return e&&te.forEach(function(Mv){return t(R,Mv)}),Ee&&Nn(R,re),Q}function Le(R,T,D,z){if(typeof D=="object"&&D!==null&&D.type===se&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case b:e:{for(var Q=D.key,ee=T;ee!==null;){if(ee.key===Q){if(Q=D.type,Q===se){if(ee.tag===7){i(R,ee.sibling),T=u(ee,D.props.children),T.return=R,R=T;break e}}else if(ee.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===Xe&&kf(Q)===ee.type){i(R,ee.sibling),T=u(ee,D.props),T.ref=ri(R,ee,D),T.return=R,R=T;break e}i(R,ee);break}else t(R,ee);ee=ee.sibling}D.type===se?(T=Fn(D.props.children,R.mode,z,D.key),T.return=R,R=T):(z=Hs(D.type,D.key,D.props,null,R.mode,z),z.ref=ri(R,T,D),z.return=R,R=z)}return g(R);case Z:e:{for(ee=D.key;T!==null;){if(T.key===ee)if(T.tag===4&&T.stateNode.containerInfo===D.containerInfo&&T.stateNode.implementation===D.implementation){i(R,T.sibling),T=u(T,D.children||[]),T.return=R,R=T;break e}else{i(R,T);break}else t(R,T);T=T.sibling}T=ya(D,R.mode,z),T.return=R,R=T}return g(R);case Xe:return ee=D._init,Le(R,T,ee(D._payload),z)}if(Lr(D))return Y(R,T,D,z);if(J(D))return G(R,T,D,z);ws(R,D)}return typeof D=="string"&&D!==""||typeof D=="number"?(D=""+D,T!==null&&T.tag===6?(i(R,T.sibling),T=u(T,D),T.return=R,R=T):(i(R,T),T=ga(D,R.mode,z),T.return=R,R=T),g(R)):i(R,T)}return Le}var ur=Df(!0),Nf=Df(!1),xs=un(null),Ss=null,cr=null,Rl=null;function kl(){Rl=cr=Ss=null}function Dl(e){var t=xs.current;xe(xs),e._currentValue=t}function Nl(e,t,i){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===i)break;e=e.return}}function fr(e,t){Ss=e,Rl=cr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(st=!0),e.firstContext=null)}function xt(e){var t=e._currentValue;if(Rl!==e)if(e={context:e,memoizedValue:t,next:null},cr===null){if(Ss===null)throw Error(s(308));cr=e,Ss.dependencies={lanes:0,firstContext:e}}else cr=cr.next=e;return t}var An=null;function Al(e){An===null?An=[e]:An.push(e)}function Af(e,t,i,l){var u=t.interleaved;return u===null?(i.next=i,Al(t)):(i.next=u.next,u.next=i),t.interleaved=i,Gt(e,l)}function Gt(e,t){e.lanes|=t;var i=e.alternate;for(i!==null&&(i.lanes|=t),i=e,e=e.return;e!==null;)e.childLanes|=t,i=e.alternate,i!==null&&(i.childLanes|=t),i=e,e=e.return;return i.tag===3?i.stateNode:null}var dn=!1;function _l(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _f(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Qt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function hn(e,t,i){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,ce&2){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,Gt(e,i)}return u=l.interleaved,u===null?(t.next=t,Al(l)):(t.next=u.next,u.next=t),l.interleaved=t,Gt(e,i)}function Ts(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194240)!==0)){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,$o(e,i)}}function Lf(e,t){var i=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var u=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var g={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};d===null?u=d=g:d=d.next=g,i=i.next}while(i!==null);d===null?u=d=t:d=d.next=t}else u=d=t;i={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:l.shared,effects:l.effects},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}function Es(e,t,i,l){var u=e.updateQueue;dn=!1;var d=u.firstBaseUpdate,g=u.lastBaseUpdate,w=u.shared.pending;if(w!==null){u.shared.pending=null;var S=w,_=S.next;S.next=null,g===null?d=_:g.next=_,g=S;var V=e.alternate;V!==null&&(V=V.updateQueue,w=V.lastBaseUpdate,w!==g&&(w===null?V.firstBaseUpdate=_:w.next=_,V.lastBaseUpdate=S))}if(d!==null){var I=u.baseState;g=0,V=_=S=null,w=d;do{var j=w.lane,W=w.eventTime;if((l&j)===j){V!==null&&(V=V.next={eventTime:W,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var Y=e,G=w;switch(j=t,W=i,G.tag){case 1:if(Y=G.payload,typeof Y=="function"){I=Y.call(W,I,j);break e}I=Y;break e;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=G.payload,j=typeof Y=="function"?Y.call(W,I,j):Y,j==null)break e;I=$({},I,j);break e;case 2:dn=!0}}w.callback!==null&&w.lane!==0&&(e.flags|=64,j=u.effects,j===null?u.effects=[w]:j.push(w))}else W={eventTime:W,lane:j,tag:w.tag,payload:w.payload,callback:w.callback,next:null},V===null?(_=V=W,S=I):V=V.next=W,g|=j;if(w=w.next,w===null){if(w=u.shared.pending,w===null)break;j=w,w=j.next,j.next=null,u.lastBaseUpdate=j,u.shared.pending=null}}while(!0);if(V===null&&(S=I),u.baseState=S,u.firstBaseUpdate=_,u.lastBaseUpdate=V,t=u.shared.interleaved,t!==null){u=t;do g|=u.lane,u=u.next;while(u!==t)}else d===null&&(u.shared.lanes=0);Mn|=g,e.lanes=g,e.memoizedState=I}}function Mf(e,t,i){if(e=t.effects,t.effects=null,e!==null)for(t=0;ti?i:4,e(!0);var l=Vl.transition;Vl.transition={};try{e(!1),t()}finally{me=i,Vl.transition=l}}function Zf(){return St().memoizedState}function iv(e,t,i){var l=yn(e);if(i={lane:l,action:i,hasEagerState:!1,eagerState:null,next:null},Jf(e))ed(t,i);else if(i=Af(e,t,i,l),i!==null){var u=Je();Mt(i,e,l,u),td(i,t,l)}}function sv(e,t,i){var l=yn(e),u={lane:l,action:i,hasEagerState:!1,eagerState:null,next:null};if(Jf(e))ed(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var g=t.lastRenderedState,w=d(g,i);if(u.hasEagerState=!0,u.eagerState=w,Dt(w,g)){var S=t.interleaved;S===null?(u.next=u,Al(t)):(u.next=S.next,S.next=u),t.interleaved=u;return}}catch{}finally{}i=Af(e,t,u,l),i!==null&&(u=Je(),Mt(i,e,l,u),td(i,t,l))}}function Jf(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function ed(e,t){li=Rs=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function td(e,t,i){if(i&4194240){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,$o(e,i)}}var Ns={readContext:xt,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},ov={readContext:xt,useCallback:function(e,t){return Bt().memoizedState=[e,t===void 0?null:t],e},useContext:xt,useEffect:Wf,useImperativeHandle:function(e,t,i){return i=i!=null?i.concat([e]):null,ks(4194308,4,Yf.bind(null,t,e),i)},useLayoutEffect:function(e,t){return ks(4194308,4,e,t)},useInsertionEffect:function(e,t){return ks(4,2,e,t)},useMemo:function(e,t){var i=Bt();return t=t===void 0?null:t,e=e(),i.memoizedState=[e,t],e},useReducer:function(e,t,i){var l=Bt();return t=i!==void 0?i(t):t,l.memoizedState=l.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},l.queue=e,e=e.dispatch=iv.bind(null,Ce,e),[l.memoizedState,e]},useRef:function(e){var t=Bt();return e={current:e},t.memoizedState=e},useState:bf,useDebugValue:Hl,useDeferredValue:function(e){return Bt().memoizedState=e},useTransition:function(){var e=bf(!1),t=e[0];return e=rv.bind(null,e[1]),Bt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,i){var l=Ce,u=Bt();if(Ee){if(i===void 0)throw Error(s(407));i=i()}else{if(i=t(),Ie===null)throw Error(s(349));Ln&30||Ff(l,t,i)}u.memoizedState=i;var d={value:i,getSnapshot:t};return u.queue=d,Wf(Bf.bind(null,l,d,e),[e]),l.flags|=2048,ci(9,If.bind(null,l,d,i,t),void 0,null),i},useId:function(){var e=Bt(),t=Ie.identifierPrefix;if(Ee){var i=Yt,l=Kt;i=(l&~(1<<32-kt(l)-1)).toString(32)+i,t=":"+t+"R"+i,i=ai++,0<\/script>",e=e.removeChild(e.firstChild)):typeof l.is=="string"?e=m.createElement(i,{is:l.is}):(e=m.createElement(i),i==="select"&&(m=e,l.multiple?m.multiple=!0:l.size&&(m.size=l.size))):e=m.createElementNS(e,i),e[Ft]=t,e[ti]=l,wd(e,t,!1,!1),t.stateNode=e;e:{switch(m=jo(i,l),i){case"dialog":we("cancel",e),we("close",e),u=l;break;case"iframe":case"object":case"embed":we("load",e),u=l;break;case"video":case"audio":for(u=0;ugr&&(t.flags|=128,l=!0,fi(d,!1),t.lanes=4194304)}else{if(!l)if(e=Ps(m),e!==null){if(t.flags|=128,l=!0,i=e.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),fi(d,!0),d.tail===null&&d.tailMode==="hidden"&&!m.alternate&&!Ee)return $e(t),null}else 2*Ne()-d.renderingStartTime>gr&&i!==1073741824&&(t.flags|=128,l=!0,fi(d,!1),t.lanes=4194304);d.isBackwards?(m.sibling=t.child,t.child=m):(i=d.last,i!==null?i.sibling=m:t.child=m,d.last=m)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=Ne(),t.sibling=null,i=Pe.current,ve(Pe,l?i&1|2:i&1),t):($e(t),null);case 22:case 23:return ha(),l=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(t.flags|=8192),l&&t.mode&1?mt&1073741824&&($e(t),t.subtreeFlags&6&&(t.flags|=8192)):$e(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function pv(e,t){switch(Tl(t),t.tag){case 1:return it(t.type)&&hs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dr(),xe(rt),xe(He),jl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ml(t),null;case 13:if(xe(Pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));ar()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xe(Pe),null;case 4:return dr(),null;case 10:return Dl(t.type._context),null;case 22:case 23:return ha(),null;case 24:return null;default:return null}}var Ms=!1,Ke=!1,mv=typeof WeakSet=="function"?WeakSet:Set,K=null;function pr(e,t){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(l){De(e,t,l)}else i.current=null}function ta(e,t,i){try{i()}catch(l){De(e,t,l)}}var Td=!1;function gv(e,t){if(hl=Ji,e=Jc(),sl(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var u=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var m=0,w=-1,S=-1,N=0,V=0,I=e,O=null;t:for(;;){for(var H;I!==i||u!==0&&I.nodeType!==3||(w=m+u),I!==d||l!==0&&I.nodeType!==3||(S=m+l),I.nodeType===3&&(m+=I.nodeValue.length),(H=I.firstChild)!==null;)O=I,I=H;for(;;){if(I===e)break t;if(O===i&&++N===u&&(w=m),O===d&&++V===l&&(S=m),(H=I.nextSibling)!==null)break;I=O,O=I.parentNode}I=H}i=w===-1||S===-1?null:{start:w,end:S}}else i=null}i=i||{start:0,end:0}}else i=null;for(pl={focusedElem:e,selectionRange:i},Ji=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var Y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(Y!==null){var G=Y.memoizedProps,Le=Y.memoizedState,C=t.stateNode,T=C.getSnapshotBeforeUpdate(t.elementType===t.type?G:Nt(t.type,G),Le);C.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var D=t.stateNode.containerInfo;D.nodeType===1?D.textContent="":D.nodeType===9&&D.documentElement&&D.removeChild(D.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(z){De(t,t.return,z)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return Y=Td,Td=!1,Y}function di(e,t,i){var l=t.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var u=l=l.next;do{if((u.tag&e)===e){var d=u.destroy;u.destroy=void 0,d!==void 0&&ta(t,i,d)}u=u.next}while(u!==l)}}function Os(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var i=t=t.next;do{if((i.tag&e)===e){var l=i.create;i.destroy=l()}i=i.next}while(i!==t)}}function na(e){var t=e.ref;if(t!==null){var i=e.stateNode;switch(e.tag){case 5:e=i;break;default:e=i}typeof t=="function"?t(e):t.current=e}}function Ed(e){var t=e.alternate;t!==null&&(e.alternate=null,Ed(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ft],delete t[ti],delete t[vl],delete t[Zy],delete t[Jy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pd(e){return e.tag===5||e.tag===3||e.tag===4}function Cd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ra(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?i.nodeType===8?i.parentNode.insertBefore(e,t):i.insertBefore(e,t):(i.nodeType===8?(t=i.parentNode,t.insertBefore(e,i)):(t=i,t.appendChild(e)),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=fs));else if(l!==4&&(e=e.child,e!==null))for(ra(e,t,i),e=e.sibling;e!==null;)ra(e,t,i),e=e.sibling}function ia(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(l!==4&&(e=e.child,e!==null))for(ia(e,t,i),e=e.sibling;e!==null;)ia(e,t,i),e=e.sibling}var ze=null,Lt=!1;function pn(e,t,i){for(i=i.child;i!==null;)kd(e,t,i),i=i.sibling}function kd(e,t,i){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(Yi,i)}catch{}switch(i.tag){case 5:Ke||pr(i,t);case 6:var l=ze,u=Lt;ze=null,pn(e,t,i),ze=l,Lt=u,ze!==null&&(Lt?(e=ze,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):ze.removeChild(i.stateNode));break;case 18:ze!==null&&(Lt?(e=ze,i=i.stateNode,e.nodeType===8?yl(e.parentNode,i):e.nodeType===1&&yl(e,i),Wr(e)):yl(ze,i.stateNode));break;case 4:l=ze,u=Lt,ze=i.stateNode.containerInfo,Lt=!0,pn(e,t,i),ze=l,Lt=u;break;case 0:case 11:case 14:case 15:if(!Ke&&(l=i.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){u=l=l.next;do{var d=u,m=d.destroy;d=d.tag,m!==void 0&&(d&2||d&4)&&ta(i,t,m),u=u.next}while(u!==l)}pn(e,t,i);break;case 1:if(!Ke&&(pr(i,t),l=i.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=i.memoizedProps,l.state=i.memoizedState,l.componentWillUnmount()}catch(w){De(i,t,w)}pn(e,t,i);break;case 21:pn(e,t,i);break;case 22:i.mode&1?(Ke=(l=Ke)||i.memoizedState!==null,pn(e,t,i),Ke=l):pn(e,t,i);break;default:pn(e,t,i)}}function Rd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new mv),t.forEach(function(l){var u=Cv.bind(null,e,l);i.has(l)||(i.add(l),l.then(u,u))})}}function _t(e,t){var i=t.deletions;if(i!==null)for(var l=0;lu&&(u=m),l&=~d}if(l=u,l=Ne()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*vv(l/1960))-l,10e?16:e,gn===null)var l=!1;else{if(e=gn,gn=null,Bs=0,ce&6)throw Error(s(331));var u=ce;for(ce|=4,K=e.current;K!==null;){var d=K,m=d.child;if(K.flags&16){var w=d.deletions;if(w!==null){for(var S=0;SNe()-la?jn(e,0):oa|=i),lt(e,t)}function zd(e,t){t===0&&(e.mode&1?(t=qi,qi<<=1,!(qi&130023424)&&(qi=4194304)):t=1);var i=Je();e=Gt(e,t),e!==null&&(Br(e,t,i),lt(e,i))}function Pv(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),zd(e,i)}function Cv(e,t){var i=0;switch(e.tag){case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(i=u.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(s(314))}l!==null&&l.delete(t),zd(e,i)}var Ud;Ud=function(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps||rt.current)st=!0;else{if(!(e.lanes&i)&&!(t.flags&128))return st=!1,dv(e,t,i);st=!!(e.flags&131072)}else st=!1,Ee&&t.flags&1048576&&xf(t,ys,t.index);switch(t.lanes=0,t.tag){case 2:var l=t.type;_s(e,t),e=t.pendingProps;var u=sr(t,He.current);fr(t,i),u=Il(null,t,l,e,u,i);var d=Bl();return t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,it(l)?(d=!0,ps(t)):d=!1,t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,Ll(t),u.updater=Ns,t.stateNode=u,u._reactInternals=t,$l(t,l,e,i),t=ql(null,t,l,!0,d,i)):(t.tag=0,Ee&&d&&Sl(t),Ze(null,t,u,i),t=t.child),t;case 16:l=t.elementType;e:{switch(_s(e,t),e=t.pendingProps,u=l._init,l=u(l._payload),t.type=l,u=t.tag=Rv(l),e=Nt(l,e),u){case 0:t=Gl(null,t,l,e,i);break e;case 1:t=hd(null,t,l,e,i);break e;case 11:t=ad(null,t,l,e,i);break e;case 14:t=ud(null,t,l,Nt(l.type,e),i);break e}throw Error(s(306,l,""))}return t;case 0:return l=t.type,u=t.pendingProps,u=t.elementType===l?u:Nt(l,u),Gl(e,t,l,u,i);case 1:return l=t.type,u=t.pendingProps,u=t.elementType===l?u:Nt(l,u),hd(e,t,l,u,i);case 3:e:{if(pd(t),e===null)throw Error(s(387));l=t.pendingProps,d=t.memoizedState,u=d.element,Af(e,t),Es(t,l,null,i);var m=t.memoizedState;if(l=m.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){u=hr(Error(s(423)),t),t=md(e,t,l,i,u);break e}else if(l!==u){u=hr(Error(s(424)),t),t=md(e,t,l,i,u);break e}else for(pt=an(t.stateNode.containerInfo.firstChild),ht=t,Ee=!0,At=null,i=Rf(t,null,l,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(ar(),l===u){t=Qt(e,t,i);break e}Ze(e,t,l,i)}t=t.child}return t;case 5:return _f(t),e===null&&Pl(t),l=t.type,u=t.pendingProps,d=e!==null?e.memoizedProps:null,m=u.children,ml(l,u)?m=null:d!==null&&ml(l,d)&&(t.flags|=32),dd(e,t),Ze(e,t,m,i),t.child;case 6:return e===null&&Pl(t),null;case 13:return gd(e,t,i);case 4:return _l(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=ur(t,null,l,i):Ze(e,t,l,i),t.child;case 11:return l=t.type,u=t.pendingProps,u=t.elementType===l?u:Nt(l,u),ad(e,t,l,u,i);case 7:return Ze(e,t,t.pendingProps,i),t.child;case 8:return Ze(e,t,t.pendingProps.children,i),t.child;case 12:return Ze(e,t,t.pendingProps.children,i),t.child;case 10:e:{if(l=t.type._context,u=t.pendingProps,d=t.memoizedProps,m=u.value,ve(xs,l._currentValue),l._currentValue=m,d!==null)if(Dt(d.value,m)){if(d.children===u.children&&!rt.current){t=Qt(e,t,i);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var w=d.dependencies;if(w!==null){m=d.child;for(var S=w.firstContext;S!==null;){if(S.context===l){if(d.tag===1){S=qt(-1,i&-i),S.tag=2;var N=d.updateQueue;if(N!==null){N=N.shared;var V=N.pending;V===null?S.next=S:(S.next=V.next,V.next=S),N.pending=S}}d.lanes|=i,S=d.alternate,S!==null&&(S.lanes|=i),Al(d.return,i,t),w.lanes|=i;break}S=S.next}}else if(d.tag===10)m=d.type===t.type?null:d.child;else if(d.tag===18){if(m=d.return,m===null)throw Error(s(341));m.lanes|=i,w=m.alternate,w!==null&&(w.lanes|=i),Al(m,i,t),m=d.sibling}else m=d.child;if(m!==null)m.return=d;else for(m=d;m!==null;){if(m===t){m=null;break}if(d=m.sibling,d!==null){d.return=m.return,m=d;break}m=m.return}d=m}Ze(e,t,u.children,i),t=t.child}return t;case 9:return u=t.type,l=t.pendingProps.children,fr(t,i),u=xt(u),l=l(u),t.flags|=1,Ze(e,t,l,i),t.child;case 14:return l=t.type,u=Nt(l,t.pendingProps),u=Nt(l.type,u),ud(e,t,l,u,i);case 15:return cd(e,t,t.type,t.pendingProps,i);case 17:return l=t.type,u=t.pendingProps,u=t.elementType===l?u:Nt(l,u),_s(e,t),t.tag=1,it(l)?(e=!0,ps(t)):e=!1,fr(t,i),td(t,l,u),$l(t,l,u,i),ql(null,t,l,!0,e,i);case 19:return vd(e,t,i);case 22:return fd(e,t,i)}throw Error(s(156,t.tag))};function bd(e,t){return xc(e,t)}function kv(e,t,i,l){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,t,i,l){return new kv(e,t,i,l)}function ma(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rv(e){if(typeof e=="function")return ma(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ct)return 11;if(e===kt)return 14}return 2}function wn(e,t){var i=e.alternate;return i===null?(i=Et(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function Hs(e,t,i,l,u,d){var m=2;if(l=e,typeof e=="function")ma(e)&&(m=1);else if(typeof e=="string")m=5;else e:switch(e){case se:return Fn(i.children,u,d,t);case X:m=8,u|=8;break;case ge:return e=Et(12,i,t,u|2),e.elementType=ge,e.lanes=d,e;case Qe:return e=Et(13,i,t,u),e.elementType=Qe,e.lanes=d,e;case nt:return e=Et(19,i,t,u),e.elementType=nt,e.lanes=d,e;case le:return Ws(i,u,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Re:m=10;break e;case tt:m=9;break e;case ct:m=11;break e;case kt:m=14;break e;case Xe:m=16,l=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=Et(m,i,t,u),t.elementType=e,t.type=l,t.lanes=d,t}function Fn(e,t,i,l){return e=Et(7,e,l,t),e.lanes=i,e}function Ws(e,t,i,l){return e=Et(22,e,l,t),e.elementType=le,e.lanes=i,e.stateNode={isHidden:!1},e}function ga(e,t,i){return e=Et(6,e,null,t),e.lanes=i,e}function ya(e,t,i){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dv(e,t,i,l,u){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wo(0),this.expirationTimes=Wo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wo(0),this.identifierPrefix=l,this.onRecoverableError=u,this.mutableSourceEagerHydrationData=null}function va(e,t,i,l,u,d,m,w,S){return e=new Dv(e,t,i,w,S),t===1?(t=1,d===!0&&(t|=8)):t=0,d=Et(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:l,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ll(d),e}function Av(e,t,i){var l=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Pa.exports=zv(),Pa.exports}var nh;function bv(){if(nh)return Xs;nh=1;var n=Uv();return Xs.createRoot=n.createRoot,Xs.hydrateRoot=n.hydrateRoot,Xs}var Hv=bv(),W=pu();const vr=Ov(W);function Wv({title:n,titleId:r,...s},o){return W.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":r},s),n?W.createElement("title",{id:r},n):null,W.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"}))}const $v=W.forwardRef(Wv);/*! ***************************************************************************** +`+d.stack}return{value:e,source:t,stack:u,digest:null}}function Kl(e,t,i){return{value:e,source:null,stack:i??null,digest:t??null}}function Yl(e,t){try{console.error(t.value)}catch(i){setTimeout(function(){throw i})}}var uv=typeof WeakMap=="function"?WeakMap:Map;function sd(e,t,i){i=Qt(-1,i),i.tag=3,i.payload={element:null};var l=t.value;return i.callback=function(){Fs||(Fs=!0,aa=l),Yl(e,t)},i}function od(e,t,i){i=Qt(-1,i),i.tag=3;var l=e.type.getDerivedStateFromError;if(typeof l=="function"){var u=t.value;i.payload=function(){return l(u)},i.callback=function(){Yl(e,t)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(i.callback=function(){Yl(e,t),typeof l!="function"&&(mn===null?mn=new Set([this]):mn.add(this));var g=t.stack;this.componentDidCatch(t.value,{componentStack:g!==null?g:""})}),i}function ld(e,t,i){var l=e.pingCache;if(l===null){l=e.pingCache=new uv;var u=new Set;l.set(t,u)}else u=l.get(t),u===void 0&&(u=new Set,l.set(t,u));u.has(i)||(u.add(i),e=Ev.bind(null,e,t,i),t.then(e,e))}function ad(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ud(e,t,i,l,u){return e.mode&1?(e.flags|=65536,e.lanes=u,e):(e===t?e.flags|=65536:(e.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(t=Qt(-1,1),t.tag=2,hn(i,t,1))),i.lanes|=1),e)}var cv=q.ReactCurrentOwner,st=!1;function Ze(e,t,i,l){t.child=e===null?Nf(t,null,i,l):ur(t,e.child,i,l)}function cd(e,t,i,l,u){i=i.render;var d=t.ref;return fr(t,u),l=Il(e,t,i,l,d,u),i=Bl(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,qt(e,t,u)):(Ee&&i&&Sl(t),t.flags|=1,Ze(e,t,l,u),t.child)}function fd(e,t,i,l,u){if(e===null){var d=i.type;return typeof d=="function"&&!ma(d)&&d.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(t.tag=15,t.type=d,dd(e,t,d,l,u)):(e=Hs(i.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!(e.lanes&u)){var g=d.memoizedProps;if(i=i.compare,i=i!==null?i:qr,i(g,l)&&e.ref===t.ref)return qt(e,t,u)}return t.flags|=1,e=wn(d,l),e.ref=t.ref,e.return=t,t.child=e}function dd(e,t,i,l,u){if(e!==null){var d=e.memoizedProps;if(qr(d,l)&&e.ref===t.ref)if(st=!1,t.pendingProps=l=d,(e.lanes&u)!==0)e.flags&131072&&(st=!0);else return t.lanes=e.lanes,qt(e,t,u)}return Gl(e,t,i,l,u)}function hd(e,t,i){var l=t.pendingProps,u=l.children,d=e!==null?e.memoizedState:null;if(l.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ve(mr,mt),mt|=i;else{if(!(i&1073741824))return e=d!==null?d.baseLanes|i:i,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ve(mr,mt),mt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=d!==null?d.baseLanes:i,ve(mr,mt),mt|=l}else d!==null?(l=d.baseLanes|i,t.memoizedState=null):l=i,ve(mr,mt),mt|=l;return Ze(e,t,u,i),t.child}function pd(e,t){var i=t.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(t.flags|=512,t.flags|=2097152)}function Gl(e,t,i,l,u){var d=it(i)?kn:He.current;return d=sr(t,d),fr(t,u),i=Il(e,t,i,l,d,u),l=Bl(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,qt(e,t,u)):(Ee&&l&&Sl(t),t.flags|=1,Ze(e,t,i,u),t.child)}function md(e,t,i,l,u){if(it(i)){var d=!0;ps(t)}else d=!1;if(fr(t,u),t.stateNode===null)Ls(e,t),rd(t,i,l),$l(t,i,l,u),l=!0;else if(e===null){var g=t.stateNode,w=t.memoizedProps;g.props=w;var S=g.context,_=i.contextType;typeof _=="object"&&_!==null?_=xt(_):(_=it(i)?kn:He.current,_=sr(t,_));var V=i.getDerivedStateFromProps,I=typeof V=="function"||typeof g.getSnapshotBeforeUpdate=="function";I||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(w!==l||S!==_)&&id(t,g,l,_),dn=!1;var j=t.memoizedState;g.state=j,Es(t,l,g,u),S=t.memoizedState,w!==l||j!==S||rt.current||dn?(typeof V=="function"&&(Wl(t,i,V,l),S=t.memoizedState),(w=dn||nd(t,i,w,l,j,S,_))?(I||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(t.flags|=4194308)):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=S),g.props=l,g.state=S,g.context=_,l=w):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{g=t.stateNode,_f(e,t),w=t.memoizedProps,_=t.type===t.elementType?w:At(t.type,w),g.props=_,I=t.pendingProps,j=g.context,S=i.contextType,typeof S=="object"&&S!==null?S=xt(S):(S=it(i)?kn:He.current,S=sr(t,S));var W=i.getDerivedStateFromProps;(V=typeof W=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(w!==I||j!==S)&&id(t,g,l,S),dn=!1,j=t.memoizedState,g.state=j,Es(t,l,g,u);var Y=t.memoizedState;w!==I||j!==Y||rt.current||dn?(typeof W=="function"&&(Wl(t,i,W,l),Y=t.memoizedState),(_=dn||nd(t,i,_,l,j,Y,S)||!1)?(V||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(l,Y,S),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(l,Y,S)),typeof g.componentDidUpdate=="function"&&(t.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof g.componentDidUpdate!="function"||w===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=Y),g.props=l,g.state=Y,g.context=S,l=_):(typeof g.componentDidUpdate!="function"||w===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),l=!1)}return Ql(e,t,i,l,d,u)}function Ql(e,t,i,l,u,d){pd(e,t);var g=(t.flags&128)!==0;if(!l&&!g)return u&&xf(t,i,!1),qt(e,t,d);l=t.stateNode,cv.current=t;var w=g&&typeof i.getDerivedStateFromError!="function"?null:l.render();return t.flags|=1,e!==null&&g?(t.child=ur(t,e.child,null,d),t.child=ur(t,null,w,d)):Ze(e,t,w,d),t.memoizedState=l.state,u&&xf(t,i,!0),t.child}function gd(e){var t=e.stateNode;t.pendingContext?vf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&vf(e,t.context,!1),Ll(e,t.containerInfo)}function yd(e,t,i,l,u){return ar(),Cl(u),t.flags|=256,Ze(e,t,i,l),t.child}var ql={dehydrated:null,treeContext:null,retryLane:0};function Xl(e){return{baseLanes:e,cachePool:null,transitions:null}}function vd(e,t,i){var l=t.pendingProps,u=Pe.current,d=!1,g=(t.flags&128)!==0,w;if((w=g)||(w=e!==null&&e.memoizedState===null?!1:(u&2)!==0),w?(d=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(u|=1),ve(Pe,u&1),e===null)return Pl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(g=l.children,e=l.fallback,d?(l=t.mode,d=t.child,g={mode:"hidden",children:g},!(l&1)&&d!==null?(d.childLanes=0,d.pendingProps=g):d=Ws(g,l,0,null),e=Fn(e,l,i,null),d.return=t,e.return=t,d.sibling=e,t.child=d,t.child.memoizedState=Xl(i),t.memoizedState=ql,e):Zl(t,g));if(u=e.memoizedState,u!==null&&(w=u.dehydrated,w!==null))return fv(e,t,g,l,w,u,i);if(d){d=l.fallback,g=t.mode,u=e.child,w=u.sibling;var S={mode:"hidden",children:l.children};return!(g&1)&&t.child!==u?(l=t.child,l.childLanes=0,l.pendingProps=S,t.deletions=null):(l=wn(u,S),l.subtreeFlags=u.subtreeFlags&14680064),w!==null?d=wn(w,d):(d=Fn(d,g,i,null),d.flags|=2),d.return=t,l.return=t,l.sibling=d,t.child=l,l=d,d=t.child,g=e.child.memoizedState,g=g===null?Xl(i):{baseLanes:g.baseLanes|i,cachePool:null,transitions:g.transitions},d.memoizedState=g,d.childLanes=e.childLanes&~i,t.memoizedState=ql,l}return d=e.child,e=d.sibling,l=wn(d,{mode:"visible",children:l.children}),!(t.mode&1)&&(l.lanes=i),l.return=t,l.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=l,t.memoizedState=null,l}function Zl(e,t){return t=Ws({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function _s(e,t,i,l){return l!==null&&Cl(l),ur(t,e.child,null,i),e=Zl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fv(e,t,i,l,u,d,g){if(i)return t.flags&256?(t.flags&=-257,l=Kl(Error(s(422))),_s(e,t,g,l)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(d=l.fallback,u=t.mode,l=Ws({mode:"visible",children:l.children},u,0,null),d=Fn(d,u,g,null),d.flags|=2,l.return=t,d.return=t,l.sibling=d,t.child=l,t.mode&1&&ur(t,e.child,null,g),t.child.memoizedState=Xl(g),t.memoizedState=ql,d);if(!(t.mode&1))return _s(e,t,g,null);if(u.data==="$!"){if(l=u.nextSibling&&u.nextSibling.dataset,l)var w=l.dgst;return l=w,d=Error(s(419)),l=Kl(d,l,void 0),_s(e,t,g,l)}if(w=(g&e.childLanes)!==0,st||w){if(l=Ie,l!==null){switch(g&-g){case 4:u=2;break;case 16:u=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:u=32;break;case 536870912:u=268435456;break;default:u=0}u=u&(l.suspendedLanes|g)?0:u,u!==0&&u!==d.retryLane&&(d.retryLane=u,Gt(e,u),Mt(l,e,u,-1))}return pa(),l=Kl(Error(s(421))),_s(e,t,g,l)}return u.data==="$?"?(t.flags|=128,t.child=e.child,t=Pv.bind(null,e),u._reactRetry=t,null):(e=d.treeContext,pt=an(u.nextSibling),ht=t,Ee=!0,Nt=null,e!==null&&(vt[wt++]=Kt,vt[wt++]=Yt,vt[wt++]=Dn,Kt=e.id,Yt=e.overflow,Dn=t),t=Zl(t,l.children),t.flags|=4096,t)}function wd(e,t,i){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Nl(e.return,t,i)}function Jl(e,t,i,l,u){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:u}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=i,d.tailMode=u)}function xd(e,t,i){var l=t.pendingProps,u=l.revealOrder,d=l.tail;if(Ze(e,t,l.children,i),l=Pe.current,l&2)l=l&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wd(e,i,t);else if(e.tag===19)wd(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}if(ve(Pe,l),!(t.mode&1))t.memoizedState=null;else switch(u){case"forwards":for(i=t.child,u=null;i!==null;)e=i.alternate,e!==null&&Ps(e)===null&&(u=i),i=i.sibling;i=u,i===null?(u=t.child,t.child=null):(u=i.sibling,i.sibling=null),Jl(t,!1,u,i,d);break;case"backwards":for(i=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Ps(e)===null){t.child=u;break}e=u.sibling,u.sibling=i,i=u,u=e}Jl(t,!0,i,null,d);break;case"together":Jl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ls(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qt(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),Mn|=t.lanes,!(i&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,i=wn(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=wn(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function dv(e,t,i){switch(t.tag){case 3:gd(t),ar();break;case 5:jf(t);break;case 1:it(t.type)&&ps(t);break;case 4:Ll(t,t.stateNode.containerInfo);break;case 10:var l=t.type._context,u=t.memoizedProps.value;ve(xs,l._currentValue),l._currentValue=u;break;case 13:if(l=t.memoizedState,l!==null)return l.dehydrated!==null?(ve(Pe,Pe.current&1),t.flags|=128,null):i&t.child.childLanes?vd(e,t,i):(ve(Pe,Pe.current&1),e=qt(e,t,i),e!==null?e.sibling:null);ve(Pe,Pe.current&1);break;case 19:if(l=(i&t.childLanes)!==0,e.flags&128){if(l)return xd(e,t,i);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ve(Pe,Pe.current),l)break;return null;case 22:case 23:return t.lanes=0,hd(e,t,i)}return qt(e,t,i)}var Sd,ea,Td,Ed;Sd=function(e,t){for(var i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},ea=function(){},Td=function(e,t,i,l){var u=e.memoizedProps;if(u!==l){e=t.stateNode,_n(It.current);var d=null;switch(i){case"input":u=No(e,u),l=No(e,l),d=[];break;case"select":u=$({},u,{value:void 0}),l=$({},l,{value:void 0}),d=[];break;case"textarea":u=Lo(e,u),l=Lo(e,l),d=[];break;default:typeof u.onClick!="function"&&typeof l.onClick=="function"&&(e.onclick=fs)}jo(i,l);var g;i=null;for(_ in u)if(!l.hasOwnProperty(_)&&u.hasOwnProperty(_)&&u[_]!=null)if(_==="style"){var w=u[_];for(g in w)w.hasOwnProperty(g)&&(i||(i={}),i[g]="")}else _!=="dangerouslySetInnerHTML"&&_!=="children"&&_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&_!=="autoFocus"&&(a.hasOwnProperty(_)?d||(d=[]):(d=d||[]).push(_,null));for(_ in l){var S=l[_];if(w=u!=null?u[_]:void 0,l.hasOwnProperty(_)&&S!==w&&(S!=null||w!=null))if(_==="style")if(w){for(g in w)!w.hasOwnProperty(g)||S&&S.hasOwnProperty(g)||(i||(i={}),i[g]="");for(g in S)S.hasOwnProperty(g)&&w[g]!==S[g]&&(i||(i={}),i[g]=S[g])}else i||(d||(d=[]),d.push(_,i)),i=S;else _==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,w=w?w.__html:void 0,S!=null&&w!==S&&(d=d||[]).push(_,S)):_==="children"?typeof S!="string"&&typeof S!="number"||(d=d||[]).push(_,""+S):_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&(a.hasOwnProperty(_)?(S!=null&&_==="onScroll"&&we("scroll",e),d||w===S||(d=[])):(d=d||[]).push(_,S))}i&&(d=d||[]).push("style",i);var _=d;(t.updateQueue=_)&&(t.flags|=4)}},Ed=function(e,t,i,l){i!==l&&(t.flags|=4)};function fi(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function $e(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,l=0;if(t)for(var u=e.child;u!==null;)i|=u.lanes|u.childLanes,l|=u.subtreeFlags&14680064,l|=u.flags&14680064,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)i|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=i,t}function hv(e,t,i){var l=t.pendingProps;switch(Tl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $e(t),null;case 1:return it(t.type)&&hs(),$e(t),null;case 3:return l=t.stateNode,dr(),xe(rt),xe(He),Ol(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(vs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Nt!==null&&(fa(Nt),Nt=null))),ea(e,t),$e(t),null;case 5:Ml(t);var u=_n(oi.current);if(i=t.type,e!==null&&t.stateNode!=null)Td(e,t,i,l,u),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(t.stateNode===null)throw Error(s(166));return $e(t),null}if(e=_n(It.current),vs(t)){l=t.stateNode,i=t.type;var d=t.memoizedProps;switch(l[Ft]=t,l[ti]=d,e=(t.mode&1)!==0,i){case"dialog":we("cancel",l),we("close",l);break;case"iframe":case"object":case"embed":we("load",l);break;case"video":case"audio":for(u=0;u<\/script>",e=e.removeChild(e.firstChild)):typeof l.is=="string"?e=g.createElement(i,{is:l.is}):(e=g.createElement(i),i==="select"&&(g=e,l.multiple?g.multiple=!0:l.size&&(g.size=l.size))):e=g.createElementNS(e,i),e[Ft]=t,e[ti]=l,Sd(e,t,!1,!1),t.stateNode=e;e:{switch(g=Oo(i,l),i){case"dialog":we("cancel",e),we("close",e),u=l;break;case"iframe":case"object":case"embed":we("load",e),u=l;break;case"video":case"audio":for(u=0;ugr&&(t.flags|=128,l=!0,fi(d,!1),t.lanes=4194304)}else{if(!l)if(e=Ps(g),e!==null){if(t.flags|=128,l=!0,i=e.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),fi(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!Ee)return $e(t),null}else 2*_e()-d.renderingStartTime>gr&&i!==1073741824&&(t.flags|=128,l=!0,fi(d,!1),t.lanes=4194304);d.isBackwards?(g.sibling=t.child,t.child=g):(i=d.last,i!==null?i.sibling=g:t.child=g,d.last=g)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=_e(),t.sibling=null,i=Pe.current,ve(Pe,l?i&1|2:i&1),t):($e(t),null);case 22:case 23:return ha(),l=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(t.flags|=8192),l&&t.mode&1?mt&1073741824&&($e(t),t.subtreeFlags&6&&(t.flags|=8192)):$e(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function pv(e,t){switch(Tl(t),t.tag){case 1:return it(t.type)&&hs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dr(),xe(rt),xe(He),Ol(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ml(t),null;case 13:if(xe(Pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));ar()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xe(Pe),null;case 4:return dr(),null;case 10:return Dl(t.type._context),null;case 22:case 23:return ha(),null;case 24:return null;default:return null}}var Ms=!1,Ke=!1,mv=typeof WeakSet=="function"?WeakSet:Set,K=null;function pr(e,t){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(l){De(e,t,l)}else i.current=null}function ta(e,t,i){try{i()}catch(l){De(e,t,l)}}var Pd=!1;function gv(e,t){if(hl=Ji,e=tf(),sl(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var u=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var g=0,w=-1,S=-1,_=0,V=0,I=e,j=null;t:for(;;){for(var W;I!==i||u!==0&&I.nodeType!==3||(w=g+u),I!==d||l!==0&&I.nodeType!==3||(S=g+l),I.nodeType===3&&(g+=I.nodeValue.length),(W=I.firstChild)!==null;)j=I,I=W;for(;;){if(I===e)break t;if(j===i&&++_===u&&(w=g),j===d&&++V===l&&(S=g),(W=I.nextSibling)!==null)break;I=j,j=I.parentNode}I=W}i=w===-1||S===-1?null:{start:w,end:S}}else i=null}i=i||{start:0,end:0}}else i=null;for(pl={focusedElem:e,selectionRange:i},Ji=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var Y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(Y!==null){var G=Y.memoizedProps,Le=Y.memoizedState,R=t.stateNode,T=R.getSnapshotBeforeUpdate(t.elementType===t.type?G:At(t.type,G),Le);R.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var D=t.stateNode.containerInfo;D.nodeType===1?D.textContent="":D.nodeType===9&&D.documentElement&&D.removeChild(D.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(z){De(t,t.return,z)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return Y=Pd,Pd=!1,Y}function di(e,t,i){var l=t.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var u=l=l.next;do{if((u.tag&e)===e){var d=u.destroy;u.destroy=void 0,d!==void 0&&ta(t,i,d)}u=u.next}while(u!==l)}}function js(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var i=t=t.next;do{if((i.tag&e)===e){var l=i.create;i.destroy=l()}i=i.next}while(i!==t)}}function na(e){var t=e.ref;if(t!==null){var i=e.stateNode;switch(e.tag){case 5:e=i;break;default:e=i}typeof t=="function"?t(e):t.current=e}}function Cd(e){var t=e.alternate;t!==null&&(e.alternate=null,Cd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ft],delete t[ti],delete t[vl],delete t[Zy],delete t[Jy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Rd(e){return e.tag===5||e.tag===3||e.tag===4}function kd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ra(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?i.nodeType===8?i.parentNode.insertBefore(e,t):i.insertBefore(e,t):(i.nodeType===8?(t=i.parentNode,t.insertBefore(e,i)):(t=i,t.appendChild(e)),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=fs));else if(l!==4&&(e=e.child,e!==null))for(ra(e,t,i),e=e.sibling;e!==null;)ra(e,t,i),e=e.sibling}function ia(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(l!==4&&(e=e.child,e!==null))for(ia(e,t,i),e=e.sibling;e!==null;)ia(e,t,i),e=e.sibling}var ze=null,_t=!1;function pn(e,t,i){for(i=i.child;i!==null;)Dd(e,t,i),i=i.sibling}function Dd(e,t,i){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(Yi,i)}catch{}switch(i.tag){case 5:Ke||pr(i,t);case 6:var l=ze,u=_t;ze=null,pn(e,t,i),ze=l,_t=u,ze!==null&&(_t?(e=ze,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):ze.removeChild(i.stateNode));break;case 18:ze!==null&&(_t?(e=ze,i=i.stateNode,e.nodeType===8?yl(e.parentNode,i):e.nodeType===1&&yl(e,i),Wr(e)):yl(ze,i.stateNode));break;case 4:l=ze,u=_t,ze=i.stateNode.containerInfo,_t=!0,pn(e,t,i),ze=l,_t=u;break;case 0:case 11:case 14:case 15:if(!Ke&&(l=i.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){u=l=l.next;do{var d=u,g=d.destroy;d=d.tag,g!==void 0&&(d&2||d&4)&&ta(i,t,g),u=u.next}while(u!==l)}pn(e,t,i);break;case 1:if(!Ke&&(pr(i,t),l=i.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=i.memoizedProps,l.state=i.memoizedState,l.componentWillUnmount()}catch(w){De(i,t,w)}pn(e,t,i);break;case 21:pn(e,t,i);break;case 22:i.mode&1?(Ke=(l=Ke)||i.memoizedState!==null,pn(e,t,i),Ke=l):pn(e,t,i);break;default:pn(e,t,i)}}function Nd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new mv),t.forEach(function(l){var u=Cv.bind(null,e,l);i.has(l)||(i.add(l),l.then(u,u))})}}function Lt(e,t){var i=t.deletions;if(i!==null)for(var l=0;lu&&(u=g),l&=~d}if(l=u,l=_e()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*vv(l/1960))-l,10e?16:e,gn===null)var l=!1;else{if(e=gn,gn=null,Bs=0,ce&6)throw Error(s(331));var u=ce;for(ce|=4,K=e.current;K!==null;){var d=K,g=d.child;if(K.flags&16){var w=d.deletions;if(w!==null){for(var S=0;S_e()-la?On(e,0):oa|=i),lt(e,t)}function bd(e,t){t===0&&(e.mode&1?(t=Qi,Qi<<=1,!(Qi&130023424)&&(Qi=4194304)):t=1);var i=Je();e=Gt(e,t),e!==null&&(Br(e,t,i),lt(e,i))}function Pv(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),bd(e,i)}function Cv(e,t){var i=0;switch(e.tag){case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(i=u.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(s(314))}l!==null&&l.delete(t),bd(e,i)}var Hd;Hd=function(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps||rt.current)st=!0;else{if(!(e.lanes&i)&&!(t.flags&128))return st=!1,dv(e,t,i);st=!!(e.flags&131072)}else st=!1,Ee&&t.flags&1048576&&Tf(t,ys,t.index);switch(t.lanes=0,t.tag){case 2:var l=t.type;Ls(e,t),e=t.pendingProps;var u=sr(t,He.current);fr(t,i),u=Il(null,t,l,e,u,i);var d=Bl();return t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,it(l)?(d=!0,ps(t)):d=!1,t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,_l(t),u.updater=As,t.stateNode=u,u._reactInternals=t,$l(t,l,e,i),t=Ql(null,t,l,!0,d,i)):(t.tag=0,Ee&&d&&Sl(t),Ze(null,t,u,i),t=t.child),t;case 16:l=t.elementType;e:{switch(Ls(e,t),e=t.pendingProps,u=l._init,l=u(l._payload),t.type=l,u=t.tag=kv(l),e=At(l,e),u){case 0:t=Gl(null,t,l,e,i);break e;case 1:t=md(null,t,l,e,i);break e;case 11:t=cd(null,t,l,e,i);break e;case 14:t=fd(null,t,l,At(l.type,e),i);break e}throw Error(s(306,l,""))}return t;case 0:return l=t.type,u=t.pendingProps,u=t.elementType===l?u:At(l,u),Gl(e,t,l,u,i);case 1:return l=t.type,u=t.pendingProps,u=t.elementType===l?u:At(l,u),md(e,t,l,u,i);case 3:e:{if(gd(t),e===null)throw Error(s(387));l=t.pendingProps,d=t.memoizedState,u=d.element,_f(e,t),Es(t,l,null,i);var g=t.memoizedState;if(l=g.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){u=hr(Error(s(423)),t),t=yd(e,t,l,i,u);break e}else if(l!==u){u=hr(Error(s(424)),t),t=yd(e,t,l,i,u);break e}else for(pt=an(t.stateNode.containerInfo.firstChild),ht=t,Ee=!0,Nt=null,i=Nf(t,null,l,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(ar(),l===u){t=qt(e,t,i);break e}Ze(e,t,l,i)}t=t.child}return t;case 5:return jf(t),e===null&&Pl(t),l=t.type,u=t.pendingProps,d=e!==null?e.memoizedProps:null,g=u.children,ml(l,u)?g=null:d!==null&&ml(l,d)&&(t.flags|=32),pd(e,t),Ze(e,t,g,i),t.child;case 6:return e===null&&Pl(t),null;case 13:return vd(e,t,i);case 4:return Ll(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=ur(t,null,l,i):Ze(e,t,l,i),t.child;case 11:return l=t.type,u=t.pendingProps,u=t.elementType===l?u:At(l,u),cd(e,t,l,u,i);case 7:return Ze(e,t,t.pendingProps,i),t.child;case 8:return Ze(e,t,t.pendingProps.children,i),t.child;case 12:return Ze(e,t,t.pendingProps.children,i),t.child;case 10:e:{if(l=t.type._context,u=t.pendingProps,d=t.memoizedProps,g=u.value,ve(xs,l._currentValue),l._currentValue=g,d!==null)if(Dt(d.value,g)){if(d.children===u.children&&!rt.current){t=qt(e,t,i);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var w=d.dependencies;if(w!==null){g=d.child;for(var S=w.firstContext;S!==null;){if(S.context===l){if(d.tag===1){S=Qt(-1,i&-i),S.tag=2;var _=d.updateQueue;if(_!==null){_=_.shared;var V=_.pending;V===null?S.next=S:(S.next=V.next,V.next=S),_.pending=S}}d.lanes|=i,S=d.alternate,S!==null&&(S.lanes|=i),Nl(d.return,i,t),w.lanes|=i;break}S=S.next}}else if(d.tag===10)g=d.type===t.type?null:d.child;else if(d.tag===18){if(g=d.return,g===null)throw Error(s(341));g.lanes|=i,w=g.alternate,w!==null&&(w.lanes|=i),Nl(g,i,t),g=d.sibling}else g=d.child;if(g!==null)g.return=d;else for(g=d;g!==null;){if(g===t){g=null;break}if(d=g.sibling,d!==null){d.return=g.return,g=d;break}g=g.return}d=g}Ze(e,t,u.children,i),t=t.child}return t;case 9:return u=t.type,l=t.pendingProps.children,fr(t,i),u=xt(u),l=l(u),t.flags|=1,Ze(e,t,l,i),t.child;case 14:return l=t.type,u=At(l,t.pendingProps),u=At(l.type,u),fd(e,t,l,u,i);case 15:return dd(e,t,t.type,t.pendingProps,i);case 17:return l=t.type,u=t.pendingProps,u=t.elementType===l?u:At(l,u),Ls(e,t),t.tag=1,it(l)?(e=!0,ps(t)):e=!1,fr(t,i),rd(t,l,u),$l(t,l,u,i),Ql(null,t,l,!0,e,i);case 19:return xd(e,t,i);case 22:return hd(e,t,i)}throw Error(s(156,t.tag))};function Wd(e,t){return Tc(e,t)}function Rv(e,t,i,l){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,t,i,l){return new Rv(e,t,i,l)}function ma(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kv(e){if(typeof e=="function")return ma(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ct)return 11;if(e===Rt)return 14}return 2}function wn(e,t){var i=e.alternate;return i===null?(i=Et(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function Hs(e,t,i,l,u,d){var g=2;if(l=e,typeof e=="function")ma(e)&&(g=1);else if(typeof e=="string")g=5;else e:switch(e){case se:return Fn(i.children,u,d,t);case X:g=8,u|=8;break;case ge:return e=Et(12,i,t,u|2),e.elementType=ge,e.lanes=d,e;case qe:return e=Et(13,i,t,u),e.elementType=qe,e.lanes=d,e;case nt:return e=Et(19,i,t,u),e.elementType=nt,e.lanes=d,e;case le:return Ws(i,u,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ke:g=10;break e;case tt:g=9;break e;case ct:g=11;break e;case Rt:g=14;break e;case Xe:g=16,l=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=Et(g,i,t,u),t.elementType=e,t.type=l,t.lanes=d,t}function Fn(e,t,i,l){return e=Et(7,e,l,t),e.lanes=i,e}function Ws(e,t,i,l){return e=Et(22,e,l,t),e.elementType=le,e.lanes=i,e.stateNode={isHidden:!1},e}function ga(e,t,i){return e=Et(6,e,null,t),e.lanes=i,e}function ya(e,t,i){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dv(e,t,i,l,u){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wo(0),this.expirationTimes=Wo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wo(0),this.identifierPrefix=l,this.onRecoverableError=u,this.mutableSourceEagerHydrationData=null}function va(e,t,i,l,u,d,g,w,S){return e=new Dv(e,t,i,w,S),t===1?(t=1,d===!0&&(t|=8)):t=0,d=Et(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:l,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},_l(d),e}function Nv(e,t,i){var l=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Pa.exports=zv(),Pa.exports}var ih;function bv(){if(ih)return Xs;ih=1;var n=Uv();return Xs.createRoot=n.createRoot,Xs.hydrateRoot=n.hydrateRoot,Xs}var Hv=bv(),H=pu();const vr=jv(H);function Wv({title:n,titleId:r,...s},o){return H.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":r},s),n?H.createElement("title",{id:r},n):null,H.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"}))}const $v=H.forwardRef(Wv);/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -50,18 +50,18 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. -***************************************************************************** */var Ha=function(n,r){return Ha=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,o){s.__proto__=o}||function(s,o){for(var a in o)o.hasOwnProperty(a)&&(s[a]=o[a])},Ha(n,r)};function Kv(n,r){Ha(n,r);function s(){this.constructor=n}n.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)}var Ei=function(){return Ei=Object.assign||function(r){for(var s,o=1,a=arguments.length;on?A():r!==!0&&(a=setTimeout(o?R:A,o===void 0?n-v:n))}return g.cancel=p,g}var Pr={Pixel:"Pixel",Percent:"Percent"},rh={unit:Pr.Percent,value:.8};function ih(n){return typeof n=="number"?{unit:Pr.Percent,value:n*100}:typeof n=="string"?n.match(/^(\d*(\.\d+)?)px$/)?{unit:Pr.Pixel,value:parseFloat(n)}:n.match(/^(\d*(\.\d+)?)%$/)?{unit:Pr.Percent,value:parseFloat(n)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),rh):(console.warn("scrollThreshold should be string or number"),rh)}var Gv=function(n){Kv(r,n);function r(s){var o=n.call(this,s)||this;return o.lastScrollTop=0,o.actionTriggered=!1,o.startY=0,o.currentY=0,o.dragging=!1,o.maxPullDownDistance=0,o.getScrollableTarget=function(){return o.props.scrollableTarget instanceof HTMLElement?o.props.scrollableTarget:typeof o.props.scrollableTarget=="string"?document.getElementById(o.props.scrollableTarget):(o.props.scrollableTarget===null&&console.warn(`You are trying to pass scrollableTarget but it is null. This might +***************************************************************************** */var Ha=function(n,r){return Ha=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,o){s.__proto__=o}||function(s,o){for(var a in o)o.hasOwnProperty(a)&&(s[a]=o[a])},Ha(n,r)};function Kv(n,r){Ha(n,r);function s(){this.constructor=n}n.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)}var Ei=function(){return Ei=Object.assign||function(r){for(var s,o=1,a=arguments.length;on?N():r!==!0&&(a=setTimeout(o?k:N,o===void 0?n-v:n))}return m.cancel=p,m}var Pr={Pixel:"Pixel",Percent:"Percent"},sh={unit:Pr.Percent,value:.8};function oh(n){return typeof n=="number"?{unit:Pr.Percent,value:n*100}:typeof n=="string"?n.match(/^(\d*(\.\d+)?)px$/)?{unit:Pr.Pixel,value:parseFloat(n)}:n.match(/^(\d*(\.\d+)?)%$/)?{unit:Pr.Percent,value:parseFloat(n)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),sh):(console.warn("scrollThreshold should be string or number"),sh)}var Gv=function(n){Kv(r,n);function r(s){var o=n.call(this,s)||this;return o.lastScrollTop=0,o.actionTriggered=!1,o.startY=0,o.currentY=0,o.dragging=!1,o.maxPullDownDistance=0,o.getScrollableTarget=function(){return o.props.scrollableTarget instanceof HTMLElement?o.props.scrollableTarget:typeof o.props.scrollableTarget=="string"?document.getElementById(o.props.scrollableTarget):(o.props.scrollableTarget===null&&console.warn(`You are trying to pass scrollableTarget but it is null. This might happen because the element may not have been added to DOM yet. See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info. `),null)},o.onStart=function(a){o.lastScrollTop||(o.dragging=!0,a instanceof MouseEvent?o.startY=a.pageY:a instanceof TouchEvent&&(o.startY=a.touches[0].pageY),o.currentY=o.startY,o._infScroll&&(o._infScroll.style.willChange="transform",o._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},o.onMove=function(a){o.dragging&&(a instanceof MouseEvent?o.currentY=a.pageY:a instanceof TouchEvent&&(o.currentY=a.touches[0].pageY),!(o.currentY=Number(o.props.pullDownToRefreshThreshold)&&o.setState({pullToRefreshThresholdBreached:!0}),!(o.currentY-o.startY>o.maxPullDownDistance*1.5)&&o._infScroll&&(o._infScroll.style.overflow="visible",o._infScroll.style.transform="translate3d(0px, "+(o.currentY-o.startY)+"px, 0px)")))},o.onEnd=function(){o.startY=0,o.currentY=0,o.dragging=!1,o.state.pullToRefreshThresholdBreached&&(o.props.refreshFunction&&o.props.refreshFunction(),o.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){o._infScroll&&(o._infScroll.style.overflow="auto",o._infScroll.style.transform="none",o._infScroll.style.willChange="unset")})},o.onScrollListener=function(a){typeof o.props.onScroll=="function"&&setTimeout(function(){return o.props.onScroll&&o.props.onScroll(a)},0);var f=o.props.height||o._scrollableNode?a.target:document.documentElement.scrollTop?document.documentElement:document.body;if(!o.actionTriggered){var c=o.props.inverse?o.isElementAtTop(f,o.props.scrollThreshold):o.isElementAtBottom(f,o.props.scrollThreshold);c&&o.props.hasMore&&(o.actionTriggered=!0,o.setState({showLoader:!0}),o.props.next&&o.props.next()),o.lastScrollTop=f.scrollTop}},o.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:s.dataLength},o.throttledOnScrollListener=Yv(150,o.onScrollListener).bind(o),o.onStart=o.onStart.bind(o),o.onMove=o.onMove.bind(o),o.onEnd=o.onEnd.bind(o),o}return r.prototype.componentDidMount=function(){if(typeof this.props.dataLength>"u")throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),typeof this.props.initialScrollY=="number"&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),typeof this.props.refreshFunction!="function"))throw new Error(`Mandatory prop "refreshFunction" missing. Pull Down To Refresh functionality will not work - as expected. Check README.md for usage'`)},r.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},r.prototype.componentDidUpdate=function(s){this.props.dataLength!==s.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},r.getDerivedStateFromProps=function(s,o){var a=s.dataLength!==o.prevDataLength;return a?Ei(Ei({},o),{prevDataLength:s.dataLength}):null},r.prototype.isElementAtTop=function(s,o){o===void 0&&(o=.8);var a=s===document.body||s===document.documentElement?window.screen.availHeight:s.clientHeight,f=ih(o);return f.unit===Pr.Pixel?s.scrollTop<=f.value+a-s.scrollHeight+1:s.scrollTop<=f.value/100+a-s.scrollHeight+1},r.prototype.isElementAtBottom=function(s,o){o===void 0&&(o=.8);var a=s===document.body||s===document.documentElement?window.screen.availHeight:s.clientHeight,f=ih(o);return f.unit===Pr.Pixel?s.scrollTop+a>=s.scrollHeight-f.value:s.scrollTop+a>=f.value/100*s.scrollHeight},r.prototype.render=function(){var s=this,o=Ei({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),a=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),f=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return vr.createElement("div",{style:f,className:"infinite-scroll-component__outerdiv"},vr.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(c){return s._infScroll=c},style:o},this.props.pullDownToRefresh&&vr.createElement("div",{style:{position:"relative"},ref:function(c){return s._pullDown=c}},vr.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!a&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},r}(W.Component);function zp(n,r){return function(){return n.apply(r,arguments)}}const{toString:qv}=Object.prototype,{getPrototypeOf:mu}=Object,vo=(n=>r=>{const s=qv.call(r);return n[s]||(n[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),jt=n=>(n=n.toLowerCase(),r=>vo(r)===n),wo=n=>r=>typeof r===n,{isArray:Dr}=Array,Di=wo("undefined");function Qv(n){return n!==null&&!Di(n)&&n.constructor!==null&&!Di(n.constructor)&>(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Up=jt("ArrayBuffer");function Xv(n){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(n):r=n&&n.buffer&&Up(n.buffer),r}const Zv=wo("string"),gt=wo("function"),bp=wo("number"),xo=n=>n!==null&&typeof n=="object",Jv=n=>n===!0||n===!1,no=n=>{if(vo(n)!=="object")return!1;const r=mu(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},e0=jt("Date"),t0=jt("File"),n0=jt("Blob"),r0=jt("FileList"),i0=n=>xo(n)&>(n.pipe),s0=n=>{let r;return n&&(typeof FormData=="function"&&n instanceof FormData||gt(n.append)&&((r=vo(n))==="formdata"||r==="object"&>(n.toString)&&n.toString()==="[object FormData]"))},o0=jt("URLSearchParams"),[l0,a0,u0,c0]=["ReadableStream","Request","Response","Headers"].map(jt),f0=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ji(n,r,{allOwnKeys:s=!1}={}){if(n===null||typeof n>"u")return;let o,a;if(typeof n!="object"&&(n=[n]),Dr(n))for(o=0,a=n.length;o0;)if(a=s[o],r===a.toLowerCase())return a;return null}const Un=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wp=n=>!Di(n)&&n!==Un;function Wa(){const{caseless:n}=Wp(this)&&this||{},r={},s=(o,a)=>{const f=n&&Hp(r,a)||a;no(r[f])&&no(o)?r[f]=Wa(r[f],o):no(o)?r[f]=Wa({},o):Dr(o)?r[f]=o.slice():r[f]=o};for(let o=0,a=arguments.length;o(ji(r,(a,f)=>{s&>(a)?n[f]=zp(a,s):n[f]=a},{allOwnKeys:o}),n),h0=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),p0=(n,r,s,o)=>{n.prototype=Object.create(r.prototype,o),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:r.prototype}),s&&Object.assign(n.prototype,s)},m0=(n,r,s,o)=>{let a,f,c;const h={};if(r=r||{},n==null)return r;do{for(a=Object.getOwnPropertyNames(n),f=a.length;f-- >0;)c=a[f],(!o||o(c,n,r))&&!h[c]&&(r[c]=n[c],h[c]=!0);n=s!==!1&&mu(n)}while(n&&(!s||s(n,r))&&n!==Object.prototype);return r},g0=(n,r,s)=>{n=String(n),(s===void 0||s>n.length)&&(s=n.length),s-=r.length;const o=n.indexOf(r,s);return o!==-1&&o===s},y0=n=>{if(!n)return null;if(Dr(n))return n;let r=n.length;if(!bp(r))return null;const s=new Array(r);for(;r-- >0;)s[r]=n[r];return s},v0=(n=>r=>n&&r instanceof n)(typeof Uint8Array<"u"&&mu(Uint8Array)),w0=(n,r)=>{const o=(n&&n[Symbol.iterator]).call(n);let a;for(;(a=o.next())&&!a.done;){const f=a.value;r.call(n,f[0],f[1])}},x0=(n,r)=>{let s;const o=[];for(;(s=n.exec(r))!==null;)o.push(s);return o},S0=jt("HTMLFormElement"),T0=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,o,a){return o.toUpperCase()+a}),sh=(({hasOwnProperty:n})=>(r,s)=>n.call(r,s))(Object.prototype),E0=jt("RegExp"),$p=(n,r)=>{const s=Object.getOwnPropertyDescriptors(n),o={};ji(s,(a,f)=>{let c;(c=r(a,f,n))!==!1&&(o[f]=c||a)}),Object.defineProperties(n,o)},P0=n=>{$p(n,(r,s)=>{if(gt(n)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const o=n[s];if(gt(o)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},C0=(n,r)=>{const s={},o=a=>{a.forEach(f=>{s[f]=!0})};return Dr(n)?o(n):o(String(n).split(r)),s},k0=()=>{},R0=(n,r)=>n!=null&&Number.isFinite(n=+n)?n:r,Ra="abcdefghijklmnopqrstuvwxyz",oh="0123456789",Kp={DIGIT:oh,ALPHA:Ra,ALPHA_DIGIT:Ra+Ra.toUpperCase()+oh},D0=(n=16,r=Kp.ALPHA_DIGIT)=>{let s="";const{length:o}=r;for(;n--;)s+=r[Math.random()*o|0];return s};function A0(n){return!!(n&>(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const N0=n=>{const r=new Array(10),s=(o,a)=>{if(xo(o)){if(r.indexOf(o)>=0)return;if(!("toJSON"in o)){r[a]=o;const f=Dr(o)?[]:{};return ji(o,(c,h)=>{const p=s(c,a+1);!Di(p)&&(f[h]=p)}),r[a]=void 0,f}}return o};return s(n,0)},L0=jt("AsyncFunction"),_0=n=>n&&(xo(n)||gt(n))&>(n.then)&>(n.catch),Yp=((n,r)=>n?setImmediate:r?((s,o)=>(Un.addEventListener("message",({source:a,data:f})=>{a===Un&&f===s&&o.length&&o.shift()()},!1),a=>{o.push(a),Un.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",gt(Un.postMessage)),M0=typeof queueMicrotask<"u"?queueMicrotask.bind(Un):typeof process<"u"&&process.nextTick||Yp,_={isArray:Dr,isArrayBuffer:Up,isBuffer:Qv,isFormData:s0,isArrayBufferView:Xv,isString:Zv,isNumber:bp,isBoolean:Jv,isObject:xo,isPlainObject:no,isReadableStream:l0,isRequest:a0,isResponse:u0,isHeaders:c0,isUndefined:Di,isDate:e0,isFile:t0,isBlob:n0,isRegExp:E0,isFunction:gt,isStream:i0,isURLSearchParams:o0,isTypedArray:v0,isFileList:r0,forEach:ji,merge:Wa,extend:d0,trim:f0,stripBOM:h0,inherits:p0,toFlatObject:m0,kindOf:vo,kindOfTest:jt,endsWith:g0,toArray:y0,forEachEntry:w0,matchAll:x0,isHTMLForm:S0,hasOwnProperty:sh,hasOwnProp:sh,reduceDescriptors:$p,freezeMethods:P0,toObjectSet:C0,toCamelCase:T0,noop:k0,toFiniteNumber:R0,findKey:Hp,global:Un,isContextDefined:Wp,ALPHABET:Kp,generateString:D0,isSpecCompliantForm:A0,toJSONObject:N0,isAsyncFn:L0,isThenable:_0,setImmediate:Yp,asap:M0};function ie(n,r,s,o,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",r&&(this.code=r),s&&(this.config=s),o&&(this.request=o),a&&(this.response=a,this.status=a.status?a.status:null)}_.inherits(ie,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.status}}});const Gp=ie.prototype,qp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{qp[n]={value:n}});Object.defineProperties(ie,qp);Object.defineProperty(Gp,"isAxiosError",{value:!0});ie.from=(n,r,s,o,a,f)=>{const c=Object.create(Gp);return _.toFlatObject(n,c,function(p){return p!==Error.prototype},h=>h!=="isAxiosError"),ie.call(c,n.message,r,s,o,a),c.cause=n,c.name=n.name,f&&Object.assign(c,f),c};const O0=null;function $a(n){return _.isPlainObject(n)||_.isArray(n)}function Qp(n){return _.endsWith(n,"[]")?n.slice(0,-2):n}function lh(n,r,s){return n?n.concat(r).map(function(a,f){return a=Qp(a),!s&&f?"["+a+"]":a}).join(s?".":""):r}function j0(n){return _.isArray(n)&&!n.some($a)}const V0=_.toFlatObject(_,{},null,function(r){return/^is[A-Z]/.test(r)});function So(n,r,s){if(!_.isObject(n))throw new TypeError("target must be an object");r=r||new FormData,s=_.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,P){return!_.isUndefined(P[k])});const o=s.metaTokens,a=s.visitor||y,f=s.dots,c=s.indexes,p=(s.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(r);if(!_.isFunction(a))throw new TypeError("visitor must be a function");function g(R){if(R===null)return"";if(_.isDate(R))return R.toISOString();if(!p&&_.isBlob(R))throw new ie("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(R)||_.isTypedArray(R)?p&&typeof Blob=="function"?new Blob([R]):Buffer.from(R):R}function y(R,k,P){let M=R;if(R&&!P&&typeof R=="object"){if(_.endsWith(k,"{}"))k=o?k:k.slice(0,-2),R=JSON.stringify(R);else if(_.isArray(R)&&j0(R)||(_.isFileList(R)||_.endsWith(k,"[]"))&&(M=_.toArray(R)))return k=Qp(k),M.forEach(function(B,Q){!(_.isUndefined(B)||B===null)&&r.append(c===!0?lh([k],Q,f):c===null?k:k+"[]",g(B))}),!1}return $a(R)?!0:(r.append(lh(P,k,f),g(R)),!1)}const v=[],x=Object.assign(V0,{defaultVisitor:y,convertValue:g,isVisitable:$a});function A(R,k){if(!_.isUndefined(R)){if(v.indexOf(R)!==-1)throw Error("Circular reference detected in "+k.join("."));v.push(R),_.forEach(R,function(M,F){(!(_.isUndefined(M)||M===null)&&a.call(r,M,_.isString(F)?F.trim():F,k,x))===!0&&A(M,k?k.concat(F):[F])}),v.pop()}}if(!_.isObject(n))throw new TypeError("data must be an object");return A(n),r}function ah(n){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(o){return r[o]})}function gu(n,r){this._pairs=[],n&&So(n,this,r)}const Xp=gu.prototype;Xp.append=function(r,s){this._pairs.push([r,s])};Xp.toString=function(r){const s=r?function(o){return r.call(this,o,ah)}:ah;return this._pairs.map(function(a){return s(a[0])+"="+s(a[1])},"").join("&")};function F0(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zp(n,r,s){if(!r)return n;const o=s&&s.encode||F0;_.isFunction(s)&&(s={serialize:s});const a=s&&s.serialize;let f;if(a?f=a(r,s):f=_.isURLSearchParams(r)?r.toString():new gu(r,s).toString(o),f){const c=n.indexOf("#");c!==-1&&(n=n.slice(0,c)),n+=(n.indexOf("?")===-1?"?":"&")+f}return n}class uh{constructor(){this.handlers=[]}use(r,s,o){return this.handlers.push({fulfilled:r,rejected:s,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){_.forEach(this.handlers,function(o){o!==null&&r(o)})}}const Jp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},I0=typeof URLSearchParams<"u"?URLSearchParams:gu,B0=typeof FormData<"u"?FormData:null,z0=typeof Blob<"u"?Blob:null,U0={isBrowser:!0,classes:{URLSearchParams:I0,FormData:B0,Blob:z0},protocols:["http","https","file","blob","url","data"]},yu=typeof window<"u"&&typeof document<"u",Ka=typeof navigator=="object"&&navigator||void 0,b0=yu&&(!Ka||["ReactNative","NativeScript","NS"].indexOf(Ka.product)<0),H0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",W0=yu&&window.location.href||"http://localhost",$0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:yu,hasStandardBrowserEnv:b0,hasStandardBrowserWebWorkerEnv:H0,navigator:Ka,origin:W0},Symbol.toStringTag,{value:"Module"})),Ge={...$0,...U0};function K0(n,r){return So(n,new Ge.classes.URLSearchParams,Object.assign({visitor:function(s,o,a,f){return Ge.isNode&&_.isBuffer(s)?(this.append(o,s.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)}},r))}function Y0(n){return _.matchAll(/\w+|\[(\w*)]/g,n).map(r=>r[0]==="[]"?"":r[1]||r[0])}function G0(n){const r={},s=Object.keys(n);let o;const a=s.length;let f;for(o=0;o=s.length;return c=!c&&_.isArray(a)?a.length:c,p?(_.hasOwnProp(a,c)?a[c]=[a[c],o]:a[c]=o,!h):((!a[c]||!_.isObject(a[c]))&&(a[c]=[]),r(s,o,a[c],f)&&_.isArray(a[c])&&(a[c]=G0(a[c])),!h)}if(_.isFormData(n)&&_.isFunction(n.entries)){const s={};return _.forEachEntry(n,(o,a)=>{r(Y0(o),a,s,0)}),s}return null}function q0(n,r,s){if(_.isString(n))try{return(r||JSON.parse)(n),_.trim(n)}catch(o){if(o.name!=="SyntaxError")throw o}return(0,JSON.stringify)(n)}const Vi={transitional:Jp,adapter:["xhr","http","fetch"],transformRequest:[function(r,s){const o=s.getContentType()||"",a=o.indexOf("application/json")>-1,f=_.isObject(r);if(f&&_.isHTMLForm(r)&&(r=new FormData(r)),_.isFormData(r))return a?JSON.stringify(em(r)):r;if(_.isArrayBuffer(r)||_.isBuffer(r)||_.isStream(r)||_.isFile(r)||_.isBlob(r)||_.isReadableStream(r))return r;if(_.isArrayBufferView(r))return r.buffer;if(_.isURLSearchParams(r))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let h;if(f){if(o.indexOf("application/x-www-form-urlencoded")>-1)return K0(r,this.formSerializer).toString();if((h=_.isFileList(r))||o.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return So(h?{"files[]":r}:r,p&&new p,this.formSerializer)}}return f||a?(s.setContentType("application/json",!1),q0(r)):r}],transformResponse:[function(r){const s=this.transitional||Vi.transitional,o=s&&s.forcedJSONParsing,a=this.responseType==="json";if(_.isResponse(r)||_.isReadableStream(r))return r;if(r&&_.isString(r)&&(o&&!this.responseType||a)){const c=!(s&&s.silentJSONParsing)&&a;try{return JSON.parse(r)}catch(h){if(c)throw h.name==="SyntaxError"?ie.from(h,ie.ERR_BAD_RESPONSE,this,null,this.response):h}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ge.classes.FormData,Blob:Ge.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],n=>{Vi.headers[n]={}});const Q0=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),X0=n=>{const r={};let s,o,a;return n&&n.split(` -`).forEach(function(c){a=c.indexOf(":"),s=c.substring(0,a).trim().toLowerCase(),o=c.substring(a+1).trim(),!(!s||r[s]&&Q0[s])&&(s==="set-cookie"?r[s]?r[s].push(o):r[s]=[o]:r[s]=r[s]?r[s]+", "+o:o)}),r},ch=Symbol("internals");function vi(n){return n&&String(n).trim().toLowerCase()}function ro(n){return n===!1||n==null?n:_.isArray(n)?n.map(ro):String(n)}function Z0(n){const r=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=s.exec(n);)r[o[1]]=o[2];return r}const J0=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Da(n,r,s,o,a){if(_.isFunction(o))return o.call(this,r,s);if(a&&(r=s),!!_.isString(r)){if(_.isString(o))return r.indexOf(o)!==-1;if(_.isRegExp(o))return o.test(r)}}function ew(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,s,o)=>s.toUpperCase()+o)}function tw(n,r){const s=_.toCamelCase(" "+r);["get","set","has"].forEach(o=>{Object.defineProperty(n,o+s,{value:function(a,f,c){return this[o].call(this,r,a,f,c)},configurable:!0})})}class ut{constructor(r){r&&this.set(r)}set(r,s,o){const a=this;function f(h,p,g){const y=vi(p);if(!y)throw new Error("header name must be a non-empty string");const v=_.findKey(a,y);(!v||a[v]===void 0||g===!0||g===void 0&&a[v]!==!1)&&(a[v||p]=ro(h))}const c=(h,p)=>_.forEach(h,(g,y)=>f(g,y,p));if(_.isPlainObject(r)||r instanceof this.constructor)c(r,s);else if(_.isString(r)&&(r=r.trim())&&!J0(r))c(X0(r),s);else if(_.isHeaders(r))for(const[h,p]of r.entries())f(p,h,o);else r!=null&&f(s,r,o);return this}get(r,s){if(r=vi(r),r){const o=_.findKey(this,r);if(o){const a=this[o];if(!s)return a;if(s===!0)return Z0(a);if(_.isFunction(s))return s.call(this,a,o);if(_.isRegExp(s))return s.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,s){if(r=vi(r),r){const o=_.findKey(this,r);return!!(o&&this[o]!==void 0&&(!s||Da(this,this[o],o,s)))}return!1}delete(r,s){const o=this;let a=!1;function f(c){if(c=vi(c),c){const h=_.findKey(o,c);h&&(!s||Da(o,o[h],h,s))&&(delete o[h],a=!0)}}return _.isArray(r)?r.forEach(f):f(r),a}clear(r){const s=Object.keys(this);let o=s.length,a=!1;for(;o--;){const f=s[o];(!r||Da(this,this[f],f,r,!0))&&(delete this[f],a=!0)}return a}normalize(r){const s=this,o={};return _.forEach(this,(a,f)=>{const c=_.findKey(o,f);if(c){s[c]=ro(a),delete s[f];return}const h=r?ew(f):String(f).trim();h!==f&&delete s[f],s[h]=ro(a),o[h]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const s=Object.create(null);return _.forEach(this,(o,a)=>{o!=null&&o!==!1&&(s[a]=r&&_.isArray(o)?o.join(", "):o)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,s])=>r+": "+s).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...s){const o=new this(r);return s.forEach(a=>o.set(a)),o}static accessor(r){const o=(this[ch]=this[ch]={accessors:{}}).accessors,a=this.prototype;function f(c){const h=vi(c);o[h]||(tw(a,c),o[h]=!0)}return _.isArray(r)?r.forEach(f):f(r),this}}ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_.reduceDescriptors(ut.prototype,({value:n},r)=>{let s=r[0].toUpperCase()+r.slice(1);return{get:()=>n,set(o){this[s]=o}}});_.freezeMethods(ut);function Aa(n,r){const s=this||Vi,o=r||s,a=ut.from(o.headers);let f=o.data;return _.forEach(n,function(h){f=h.call(s,f,a.normalize(),r?r.status:void 0)}),a.normalize(),f}function tm(n){return!!(n&&n.__CANCEL__)}function Ar(n,r,s){ie.call(this,n??"canceled",ie.ERR_CANCELED,r,s),this.name="CanceledError"}_.inherits(Ar,ie,{__CANCEL__:!0});function nm(n,r,s){const o=s.config.validateStatus;!s.status||!o||o(s.status)?n(s):r(new ie("Request failed with status code "+s.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function nw(n){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return r&&r[1]||""}function rw(n,r){n=n||10;const s=new Array(n),o=new Array(n);let a=0,f=0,c;return r=r!==void 0?r:1e3,function(p){const g=Date.now(),y=o[f];c||(c=g),s[a]=p,o[a]=g;let v=f,x=0;for(;v!==a;)x+=s[v++],v=v%n;if(a=(a+1)%n,a===f&&(f=(f+1)%n),g-c{s=y,a=null,f&&(clearTimeout(f),f=null),n.apply(null,g)};return[(...g)=>{const y=Date.now(),v=y-s;v>=o?c(g,y):(a=g,f||(f=setTimeout(()=>{f=null,c(a)},o-v)))},()=>a&&c(a)]}const ao=(n,r,s=3)=>{let o=0;const a=rw(50,250);return iw(f=>{const c=f.loaded,h=f.lengthComputable?f.total:void 0,p=c-o,g=a(p),y=c<=h;o=c;const v={loaded:c,total:h,progress:h?c/h:void 0,bytes:p,rate:g||void 0,estimated:g&&h&&y?(h-c)/g:void 0,event:f,lengthComputable:h!=null,[r?"download":"upload"]:!0};n(v)},s)},fh=(n,r)=>{const s=n!=null;return[o=>r[0]({lengthComputable:s,total:n,loaded:o}),r[1]]},dh=n=>(...r)=>_.asap(()=>n(...r)),sw=Ge.hasStandardBrowserEnv?((n,r)=>s=>(s=new URL(s,Ge.origin),n.protocol===s.protocol&&n.host===s.host&&(r||n.port===s.port)))(new URL(Ge.origin),Ge.navigator&&/(msie|trident)/i.test(Ge.navigator.userAgent)):()=>!0,ow=Ge.hasStandardBrowserEnv?{write(n,r,s,o,a,f){const c=[n+"="+encodeURIComponent(r)];_.isNumber(s)&&c.push("expires="+new Date(s).toGMTString()),_.isString(o)&&c.push("path="+o),_.isString(a)&&c.push("domain="+a),f===!0&&c.push("secure"),document.cookie=c.join("; ")},read(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function lw(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function aw(n,r){return r?n.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):n}function rm(n,r){return n&&!lw(r)?aw(n,r):r}const hh=n=>n instanceof ut?{...n}:n;function $n(n,r){r=r||{};const s={};function o(g,y,v,x){return _.isPlainObject(g)&&_.isPlainObject(y)?_.merge.call({caseless:x},g,y):_.isPlainObject(y)?_.merge({},y):_.isArray(y)?y.slice():y}function a(g,y,v,x){if(_.isUndefined(y)){if(!_.isUndefined(g))return o(void 0,g,v,x)}else return o(g,y,v,x)}function f(g,y){if(!_.isUndefined(y))return o(void 0,y)}function c(g,y){if(_.isUndefined(y)){if(!_.isUndefined(g))return o(void 0,g)}else return o(void 0,y)}function h(g,y,v){if(v in r)return o(g,y);if(v in n)return o(void 0,g)}const p={url:f,method:f,data:f,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:h,headers:(g,y,v)=>a(hh(g),hh(y),v,!0)};return _.forEach(Object.keys(Object.assign({},n,r)),function(y){const v=p[y]||a,x=v(n[y],r[y],y);_.isUndefined(x)&&v!==h||(s[y]=x)}),s}const im=n=>{const r=$n({},n);let{data:s,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:f,headers:c,auth:h}=r;r.headers=c=ut.from(c),r.url=Zp(rm(r.baseURL,r.url),n.params,n.paramsSerializer),h&&c.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?unescape(encodeURIComponent(h.password)):"")));let p;if(_.isFormData(s)){if(Ge.hasStandardBrowserEnv||Ge.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((p=c.getContentType())!==!1){const[g,...y]=p?p.split(";").map(v=>v.trim()).filter(Boolean):[];c.setContentType([g||"multipart/form-data",...y].join("; "))}}if(Ge.hasStandardBrowserEnv&&(o&&_.isFunction(o)&&(o=o(r)),o||o!==!1&&sw(r.url))){const g=a&&f&&ow.read(f);g&&c.set(a,g)}return r},uw=typeof XMLHttpRequest<"u",cw=uw&&function(n){return new Promise(function(s,o){const a=im(n);let f=a.data;const c=ut.from(a.headers).normalize();let{responseType:h,onUploadProgress:p,onDownloadProgress:g}=a,y,v,x,A,R;function k(){A&&A(),R&&R(),a.cancelToken&&a.cancelToken.unsubscribe(y),a.signal&&a.signal.removeEventListener("abort",y)}let P=new XMLHttpRequest;P.open(a.method.toUpperCase(),a.url,!0),P.timeout=a.timeout;function M(){if(!P)return;const B=ut.from("getAllResponseHeaders"in P&&P.getAllResponseHeaders()),b={data:!h||h==="text"||h==="json"?P.responseText:P.response,status:P.status,statusText:P.statusText,headers:B,config:n,request:P};nm(function(se){s(se),k()},function(se){o(se),k()},b),P=null}"onloadend"in P?P.onloadend=M:P.onreadystatechange=function(){!P||P.readyState!==4||P.status===0&&!(P.responseURL&&P.responseURL.indexOf("file:")===0)||setTimeout(M)},P.onabort=function(){P&&(o(new ie("Request aborted",ie.ECONNABORTED,n,P)),P=null)},P.onerror=function(){o(new ie("Network Error",ie.ERR_NETWORK,n,P)),P=null},P.ontimeout=function(){let Q=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const b=a.transitional||Jp;a.timeoutErrorMessage&&(Q=a.timeoutErrorMessage),o(new ie(Q,b.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,n,P)),P=null},f===void 0&&c.setContentType(null),"setRequestHeader"in P&&_.forEach(c.toJSON(),function(Q,b){P.setRequestHeader(b,Q)}),_.isUndefined(a.withCredentials)||(P.withCredentials=!!a.withCredentials),h&&h!=="json"&&(P.responseType=a.responseType),g&&([x,R]=ao(g,!0),P.addEventListener("progress",x)),p&&P.upload&&([v,A]=ao(p),P.upload.addEventListener("progress",v),P.upload.addEventListener("loadend",A)),(a.cancelToken||a.signal)&&(y=B=>{P&&(o(!B||B.type?new Ar(null,n,P):B),P.abort(),P=null)},a.cancelToken&&a.cancelToken.subscribe(y),a.signal&&(a.signal.aborted?y():a.signal.addEventListener("abort",y)));const F=nw(a.url);if(F&&Ge.protocols.indexOf(F)===-1){o(new ie("Unsupported protocol "+F+":",ie.ERR_BAD_REQUEST,n));return}P.send(f||null)})},fw=(n,r)=>{const{length:s}=n=n?n.filter(Boolean):[];if(r||s){let o=new AbortController,a;const f=function(g){if(!a){a=!0,h();const y=g instanceof Error?g:this.reason;o.abort(y instanceof ie?y:new Ar(y instanceof Error?y.message:y))}};let c=r&&setTimeout(()=>{c=null,f(new ie(`timeout ${r} of ms exceeded`,ie.ETIMEDOUT))},r);const h=()=>{n&&(c&&clearTimeout(c),c=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(f):g.removeEventListener("abort",f)}),n=null)};n.forEach(g=>g.addEventListener("abort",f));const{signal:p}=o;return p.unsubscribe=()=>_.asap(h),p}},dw=function*(n,r){let s=n.byteLength;if(s{const a=hw(n,r);let f=0,c,h=p=>{c||(c=!0,o&&o(p))};return new ReadableStream({async pull(p){try{const{done:g,value:y}=await a.next();if(g){h(),p.close();return}let v=y.byteLength;if(s){let x=f+=v;s(x)}p.enqueue(new Uint8Array(y))}catch(g){throw h(g),g}},cancel(p){return h(p),a.return()}},{highWaterMark:2})},To=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",sm=To&&typeof ReadableStream=="function",mw=To&&(typeof TextEncoder=="function"?(n=>r=>n.encode(r))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),om=(n,...r)=>{try{return!!n(...r)}catch{return!1}},gw=sm&&om(()=>{let n=!1;const r=new Request(Ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!r}),mh=64*1024,Ya=sm&&om(()=>_.isReadableStream(new Response("").body)),uo={stream:Ya&&(n=>n.body)};To&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!uo[r]&&(uo[r]=_.isFunction(n[r])?s=>s[r]():(s,o)=>{throw new ie(`Response type '${r}' is not supported`,ie.ERR_NOT_SUPPORT,o)})})})(new Response);const yw=async n=>{if(n==null)return 0;if(_.isBlob(n))return n.size;if(_.isSpecCompliantForm(n))return(await new Request(Ge.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(_.isArrayBufferView(n)||_.isArrayBuffer(n))return n.byteLength;if(_.isURLSearchParams(n)&&(n=n+""),_.isString(n))return(await mw(n)).byteLength},vw=async(n,r)=>{const s=_.toFiniteNumber(n.getContentLength());return s??yw(r)},ww=To&&(async n=>{let{url:r,method:s,data:o,signal:a,cancelToken:f,timeout:c,onDownloadProgress:h,onUploadProgress:p,responseType:g,headers:y,withCredentials:v="same-origin",fetchOptions:x}=im(n);g=g?(g+"").toLowerCase():"text";let A=fw([a,f&&f.toAbortSignal()],c),R;const k=A&&A.unsubscribe&&(()=>{A.unsubscribe()});let P;try{if(p&&gw&&s!=="get"&&s!=="head"&&(P=await vw(y,o))!==0){let b=new Request(r,{method:"POST",body:o,duplex:"half"}),Z;if(_.isFormData(o)&&(Z=b.headers.get("content-type"))&&y.setContentType(Z),b.body){const[se,X]=fh(P,ao(dh(p)));o=ph(b.body,mh,se,X)}}_.isString(v)||(v=v?"include":"omit");const M="credentials"in Request.prototype;R=new Request(r,{...x,signal:A,method:s.toUpperCase(),headers:y.normalize().toJSON(),body:o,duplex:"half",credentials:M?v:void 0});let F=await fetch(R);const B=Ya&&(g==="stream"||g==="response");if(Ya&&(h||B&&k)){const b={};["status","statusText","headers"].forEach(ge=>{b[ge]=F[ge]});const Z=_.toFiniteNumber(F.headers.get("content-length")),[se,X]=h&&fh(Z,ao(dh(h),!0))||[];F=new Response(ph(F.body,mh,se,()=>{X&&X(),k&&k()}),b)}g=g||"text";let Q=await uo[_.findKey(uo,g)||"text"](F,n);return!B&&k&&k(),await new Promise((b,Z)=>{nm(b,Z,{data:Q,headers:ut.from(F.headers),status:F.status,statusText:F.statusText,config:n,request:R})})}catch(M){throw k&&k(),M&&M.name==="TypeError"&&/fetch/i.test(M.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,n,R),{cause:M.cause||M}):ie.from(M,M&&M.code,n,R)}}),Ga={http:O0,xhr:cw,fetch:ww};_.forEach(Ga,(n,r)=>{if(n){try{Object.defineProperty(n,"name",{value:r})}catch{}Object.defineProperty(n,"adapterName",{value:r})}});const gh=n=>`- ${n}`,xw=n=>_.isFunction(n)||n===null||n===!1,lm={getAdapter:n=>{n=_.isArray(n)?n:[n];const{length:r}=n;let s,o;const a={};for(let f=0;f`adapter ${h} `+(p===!1?"is not supported by the environment":"is not available in the build"));let c=r?f.length>1?`since : -`+f.map(gh).join(` -`):" "+gh(f[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return o},adapters:Ga};function Na(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Ar(null,n)}function yh(n){return Na(n),n.headers=ut.from(n.headers),n.data=Aa.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),lm.getAdapter(n.adapter||Vi.adapter)(n).then(function(o){return Na(n),o.data=Aa.call(n,n.transformResponse,o),o.headers=ut.from(o.headers),o},function(o){return tm(o)||(Na(n),o&&o.response&&(o.response.data=Aa.call(n,n.transformResponse,o.response),o.response.headers=ut.from(o.response.headers))),Promise.reject(o)})}const am="1.7.9",Eo={};["object","boolean","number","function","string","symbol"].forEach((n,r)=>{Eo[n]=function(o){return typeof o===n||"a"+(r<1?"n ":" ")+n}});const vh={};Eo.transitional=function(r,s,o){function a(f,c){return"[Axios v"+am+"] Transitional option '"+f+"'"+c+(o?". "+o:"")}return(f,c,h)=>{if(r===!1)throw new ie(a(c," has been removed"+(s?" in "+s:"")),ie.ERR_DEPRECATED);return s&&!vh[c]&&(vh[c]=!0,console.warn(a(c," has been deprecated since v"+s+" and will be removed in the near future"))),r?r(f,c,h):!0}};Eo.spelling=function(r){return(s,o)=>(console.warn(`${o} is likely a misspelling of ${r}`),!0)};function Sw(n,r,s){if(typeof n!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const o=Object.keys(n);let a=o.length;for(;a-- >0;){const f=o[a],c=r[f];if(c){const h=n[f],p=h===void 0||c(h,f,n);if(p!==!0)throw new ie("option "+f+" must be "+p,ie.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new ie("Unknown option "+f,ie.ERR_BAD_OPTION)}}const io={assertOptions:Sw,validators:Eo},Ut=io.validators;class Hn{constructor(r){this.defaults=r,this.interceptors={request:new uh,response:new uh}}async request(r,s){try{return await this._request(r,s)}catch(o){if(o instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const f=a.stack?a.stack.replace(/^.+\n/,""):"";try{o.stack?f&&!String(o.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(o.stack+=` -`+f):o.stack=f}catch{}}throw o}}_request(r,s){typeof r=="string"?(s=s||{},s.url=r):s=r||{},s=$n(this.defaults,s);const{transitional:o,paramsSerializer:a,headers:f}=s;o!==void 0&&io.assertOptions(o,{silentJSONParsing:Ut.transitional(Ut.boolean),forcedJSONParsing:Ut.transitional(Ut.boolean),clarifyTimeoutError:Ut.transitional(Ut.boolean)},!1),a!=null&&(_.isFunction(a)?s.paramsSerializer={serialize:a}:io.assertOptions(a,{encode:Ut.function,serialize:Ut.function},!0)),io.assertOptions(s,{baseUrl:Ut.spelling("baseURL"),withXsrfToken:Ut.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let c=f&&_.merge(f.common,f[s.method]);f&&_.forEach(["delete","get","head","post","put","patch","common"],R=>{delete f[R]}),s.headers=ut.concat(c,f);const h=[];let p=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(s)===!1||(p=p&&k.synchronous,h.unshift(k.fulfilled,k.rejected))});const g=[];this.interceptors.response.forEach(function(k){g.push(k.fulfilled,k.rejected)});let y,v=0,x;if(!p){const R=[yh.bind(this),void 0];for(R.unshift.apply(R,h),R.push.apply(R,g),x=R.length,y=Promise.resolve(s);v{if(!o._listeners)return;let f=o._listeners.length;for(;f-- >0;)o._listeners[f](a);o._listeners=null}),this.promise.then=a=>{let f;const c=new Promise(h=>{o.subscribe(h),f=h}).then(a);return c.cancel=function(){o.unsubscribe(f)},c},r(function(f,c,h){o.reason||(o.reason=new Ar(f,c,h),s(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const s=this._listeners.indexOf(r);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const r=new AbortController,s=o=>{r.abort(o)};return this.subscribe(s),r.signal.unsubscribe=()=>this.unsubscribe(s),r.signal}static source(){let r;return{token:new vu(function(a){r=a}),cancel:r}}}function Tw(n){return function(s){return n.apply(null,s)}}function Ew(n){return _.isObject(n)&&n.isAxiosError===!0}const qa={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qa).forEach(([n,r])=>{qa[r]=n});function um(n){const r=new Hn(n),s=zp(Hn.prototype.request,r);return _.extend(s,Hn.prototype,r,{allOwnKeys:!0}),_.extend(s,r,null,{allOwnKeys:!0}),s.create=function(a){return um($n(n,a))},s}const Me=um(Vi);Me.Axios=Hn;Me.CanceledError=Ar;Me.CancelToken=vu;Me.isCancel=tm;Me.VERSION=am;Me.toFormData=So;Me.AxiosError=ie;Me.Cancel=Me.CanceledError;Me.all=function(r){return Promise.all(r)};Me.spread=Tw;Me.isAxiosError=Ew;Me.mergeConfig=$n;Me.AxiosHeaders=ut;Me.formToJSON=n=>em(_.isHTMLForm(n)?new FormData(n):n);Me.getAdapter=lm.getAdapter;Me.HttpStatusCode=qa;Me.default=Me;const wh=30,xh=async(n,r)=>{console.log("음식",n);const s=`https://openapi.foodsafetykorea.go.kr/api/72edab9a6eee4e32bccf/I0490/json/${1+n*wh}/${30+n*wh}`,a=r?"https://openapi.foodsafetykorea.go.kr/api/72edab9a6eee4e32bccf/I0490/json/1/500":s;try{const c=(await Me.get(a)).data.I0490.row;return Array.isArray(c)?c.map(h=>({PRDTNM:h.PRDTNM,RTRVLPRVNS:h.RTRVLPRVNS,BSSHNM:h.BSSHNM,ADDR:h.ADDR,TELNO:h.TELNO,BRCDNO:h.BRCDNO,FRMLCUNIT:h.FRMLCUNIT,MNFDT:h.MNFDT,RTRVLPLANDOC_RTRVLMTHD:h.RTRVLPLANDOC_RTRVLMTHD,DISTBTMLMT:h.DISTBTMLMT,PRDLST_TYPE:h.PRDLST_TYPE,IMG_FILE_PATH:h.IMG_FILE_PATH.split(",")[0],PRDLST_CD:h.PRDLST_CD,CRET_DTM:h.CRET_DTM,RTRVLDSUSE_SEQ:h.RTRVLDSUSE_SEQ,PRDLST_REPORT_NO:h.PRDLST_REPORT_NO,RTRVL_GRDCD_NM:h.RTRVL_GRDCD_NM,PRDLST_CD_NM:h.PRDLST_CD_NM,LCNS_NO:h.LCNS_NO})):[]}catch(f){throw console.error("API 호출 에러:",f),f}},Pw=n=>{let r;const s=new Set,o=(g,y)=>{const v=typeof g=="function"?g(r):g;if(!Object.is(v,r)){const x=r;r=y??(typeof v!="object"||v===null)?v:Object.assign({},r,v),s.forEach(A=>A(r,x))}},a=()=>r,h={setState:o,getState:a,getInitialState:()=>p,subscribe:g=>(s.add(g),()=>s.delete(g))},p=r=n(o,a,h);return h},Cw=n=>Pw(n),kw=n=>n;function Rw(n,r=kw){const s=vr.useSyncExternalStore(n.subscribe,()=>r(n.getState()),()=>r(n.getInitialState()));return vr.useDebugValue(s),s}const Dw=n=>{const r=Cw(n),s=o=>Rw(r,o);return Object.assign(s,r),s},Aw=n=>Dw(n),wu=Aw(n=>({searchString:"",setSearchString:r=>n({searchString:r}),selectedItem:"음식",setSelectedItem:r=>n({selectedItem:r}),page:0,setPage:r=>n({page:r})})),cm=W.createContext({});function Nw(n){const r=W.useRef(null);return r.current===null&&(r.current=n()),r.current}const xu=W.createContext(null),fm=W.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function Lw(n=!0){const r=W.useContext(xu);if(r===null)return[!0,null];const{isPresent:s,onExitComplete:o,register:a}=r,f=W.useId();W.useEffect(()=>{n&&a(f)},[n]);const c=W.useCallback(()=>n&&o&&o(f),[f,o,n]);return!s&&o?[!1,c]:[!0]}const Su=typeof window<"u",_w=Su?W.useLayoutEffect:W.useEffect,yt=n=>n;let Qa=yt;function Tu(n){let r;return()=>(r===void 0&&(r=n()),r)}const Cr=(n,r,s)=>{const o=r-n;return o===0?1:(s-n)/o},Zt=n=>n*1e3,Jt=n=>n/1e3,Mw={skipAnimations:!1,useManualTiming:!1};function Ow(n){let r=new Set,s=new Set,o=!1,a=!1;const f=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function h(g){f.has(g)&&(p.schedule(g),n()),g(c)}const p={schedule:(g,y=!1,v=!1)=>{const A=v&&o?r:s;return y&&f.add(g),A.has(g)||A.add(g),g},cancel:g=>{s.delete(g),f.delete(g)},process:g=>{if(c=g,o){a=!0;return}o=!0,[r,s]=[s,r],r.forEach(h),r.clear(),o=!1,a&&(a=!1,p.process(g))}};return p}const Zs=["read","resolveKeyframes","update","preRender","render","postRender"],jw=40;function dm(n,r){let s=!1,o=!0;const a={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,c=Zs.reduce((M,F)=>(M[F]=Ow(f),M),{}),{read:h,resolveKeyframes:p,update:g,preRender:y,render:v,postRender:x}=c,A=()=>{const M=performance.now();s=!1,a.delta=o?1e3/60:Math.max(Math.min(M-a.timestamp,jw),1),a.timestamp=M,a.isProcessing=!0,h.process(a),p.process(a),g.process(a),y.process(a),v.process(a),x.process(a),a.isProcessing=!1,s&&r&&(o=!1,n(A))},R=()=>{s=!0,o=!0,a.isProcessing||n(A)};return{schedule:Zs.reduce((M,F)=>{const B=c[F];return M[F]=(Q,b=!1,Z=!1)=>(s||R(),B.schedule(Q,b,Z)),M},{}),cancel:M=>{for(let F=0;FSh[n].some(s=>!!r[s])};function Vw(n){for(const r in n)kr[r]={...kr[r],...n[r]}}const Fw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function co(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||Fw.has(n)}let pm=n=>!co(n);function Iw(n){n&&(pm=r=>r.startsWith("on")?!co(r):n(r))}try{Iw(require("@emotion/is-prop-valid").default)}catch{}function Bw(n,r,s){const o={};for(const a in n)a==="values"&&typeof n.values=="object"||(pm(a)||s===!0&&co(a)||!r&&!co(a)||n.draggable&&a.startsWith("onDrag"))&&(o[a]=n[a]);return o}function zw(n){if(typeof Proxy>"u")return n;const r=new Map,s=(...o)=>n(...o);return new Proxy(s,{get:(o,a)=>a==="create"?n:(r.has(a)||r.set(a,n(a)),r.get(a))})}const Po=W.createContext({});function Ai(n){return typeof n=="string"||Array.isArray(n)}function Co(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}const Eu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Pu=["initial",...Eu];function ko(n){return Co(n.animate)||Pu.some(r=>Ai(n[r]))}function mm(n){return!!(ko(n)||n.variants)}function Uw(n,r){if(ko(n)){const{initial:s,animate:o}=n;return{initial:s===!1||Ai(s)?s:void 0,animate:Ai(o)?o:void 0}}return n.inherit!==!1?r:{}}function bw(n){const{initial:r,animate:s}=Uw(n,W.useContext(Po));return W.useMemo(()=>({initial:r,animate:s}),[Th(r),Th(s)])}function Th(n){return Array.isArray(n)?n.join(" "):n}const Hw=Symbol.for("motionComponentSymbol");function wr(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function Ww(n,r,s){return W.useCallback(o=>{o&&n.onMount&&n.onMount(o),r&&(o?r.mount(o):r.unmount()),s&&(typeof s=="function"?s(o):wr(s)&&(s.current=o))},[r])}const Cu=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),$w="framerAppearId",gm="data-"+Cu($w),{schedule:ku,cancel:gE}=dm(queueMicrotask,!1),ym=W.createContext({});function Kw(n,r,s,o,a){var f,c;const{visualElement:h}=W.useContext(Po),p=W.useContext(hm),g=W.useContext(xu),y=W.useContext(fm).reducedMotion,v=W.useRef(null);o=o||p.renderer,!v.current&&o&&(v.current=o(n,{visualState:r,parent:h,props:s,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:y}));const x=v.current,A=W.useContext(ym);x&&!x.projection&&a&&(x.type==="html"||x.type==="svg")&&Yw(v.current,s,a,A);const R=W.useRef(!1);W.useInsertionEffect(()=>{x&&R.current&&x.update(s,g)});const k=s[gm],P=W.useRef(!!k&&!(!((f=window.MotionHandoffIsComplete)===null||f===void 0)&&f.call(window,k))&&((c=window.MotionHasOptimisedAnimation)===null||c===void 0?void 0:c.call(window,k)));return _w(()=>{x&&(R.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),ku.render(x.render),P.current&&x.animationState&&x.animationState.animateChanges())}),W.useEffect(()=>{x&&(!P.current&&x.animationState&&x.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{var M;(M=window.MotionHandoffMarkAsComplete)===null||M===void 0||M.call(window,k)}),P.current=!1))}),x}function Yw(n,r,s,o){const{layoutId:a,layout:f,drag:c,dragConstraints:h,layoutScroll:p,layoutRoot:g}=r;n.projection=new s(n.latestValues,r["data-framer-portal-id"]?void 0:vm(n.parent)),n.projection.setOptions({layoutId:a,layout:f,alwaysMeasureLayout:!!c||h&&wr(h),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:o,layoutScroll:p,layoutRoot:g})}function vm(n){if(n)return n.options.allowProjection!==!1?n.projection:vm(n.parent)}function Gw({preloadedFeatures:n,createVisualElement:r,useRender:s,useVisualState:o,Component:a}){var f,c;n&&Vw(n);function h(g,y){let v;const x={...W.useContext(fm),...g,layoutId:qw(g)},{isStatic:A}=x,R=bw(g),k=o(g,A);if(!A&&Su){Qw();const P=Xw(x);v=P.MeasureLayout,R.visualElement=Kw(a,k,x,r,P.ProjectionNode)}return L.jsxs(Po.Provider,{value:R,children:[v&&R.visualElement?L.jsx(v,{visualElement:R.visualElement,...x}):null,s(a,g,Ww(k,R.visualElement,y),k,A,R.visualElement)]})}h.displayName=`motion.${typeof a=="string"?a:`create(${(c=(f=a.displayName)!==null&&f!==void 0?f:a.name)!==null&&c!==void 0?c:""})`}`;const p=W.forwardRef(h);return p[Hw]=a,p}function qw({layoutId:n}){const r=W.useContext(cm).id;return r&&n!==void 0?r+"-"+n:n}function Qw(n,r){W.useContext(hm).strict}function Xw(n){const{drag:r,layout:s}=kr;if(!r&&!s)return{};const o={...r,...s};return{MeasureLayout:r!=null&&r.isEnabled(n)||s!=null&&s.isEnabled(n)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}const Zw=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ru(n){return typeof n!="string"||n.includes("-")?!1:!!(Zw.indexOf(n)>-1||/[A-Z]/u.test(n))}function Eh(n){const r=[{},{}];return n==null||n.values.forEach((s,o)=>{r[0][o]=s.get(),r[1][o]=s.getVelocity()}),r}function Du(n,r,s,o){if(typeof r=="function"){const[a,f]=Eh(o);r=r(s!==void 0?s:n.custom,a,f)}if(typeof r=="string"&&(r=n.variants&&n.variants[r]),typeof r=="function"){const[a,f]=Eh(o);r=r(s!==void 0?s:n.custom,a,f)}return r}const Xa=n=>Array.isArray(n),Jw=n=>!!(n&&typeof n=="object"&&n.mix&&n.toValue),ex=n=>Xa(n)?n[n.length-1]||0:n,qe=n=>!!(n&&n.getVelocity);function so(n){const r=qe(n)?n.get():n;return Jw(r)?r.toValue():r}function tx({scrapeMotionValuesFromProps:n,createRenderState:r,onUpdate:s},o,a,f){const c={latestValues:nx(o,a,f,n),renderState:r()};return s&&(c.onMount=h=>s({props:o,current:h,...c}),c.onUpdate=h=>s(h)),c}const wm=n=>(r,s)=>{const o=W.useContext(Po),a=W.useContext(xu),f=()=>tx(n,r,o,a);return s?f():Nw(f)};function nx(n,r,s,o){const a={},f=o(n,{});for(const x in f)a[x]=so(f[x]);let{initial:c,animate:h}=n;const p=ko(n),g=mm(n);r&&g&&!p&&n.inherit!==!1&&(c===void 0&&(c=r.initial),h===void 0&&(h=r.animate));let y=s?s.initial===!1:!1;y=y||c===!1;const v=y?h:c;if(v&&typeof v!="boolean"&&!Co(v)){const x=Array.isArray(v)?v:[v];for(let A=0;Ar=>typeof r=="string"&&r.startsWith(n),Au=xm("--"),rx=xm("var(--"),Nu=n=>rx(n)?ix.test(n.split("/*")[0].trim()):!1,ix=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Sm=(n,r)=>r&&typeof n=="number"?r.transform(n):n,en=(n,r,s)=>s>r?r:stypeof n=="number",parse:parseFloat,transform:n=>n},Ni={...Lr,transform:n=>en(0,1,n)},Js={...Lr,default:1},Fi=n=>({test:r=>typeof r=="string"&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}),Sn=Fi("deg"),bt=Fi("%"),ne=Fi("px"),sx=Fi("vh"),ox=Fi("vw"),Ph={...bt,parse:n=>bt.parse(n)/100,transform:n=>bt.transform(n*100)},lx={borderWidth:ne,borderTopWidth:ne,borderRightWidth:ne,borderBottomWidth:ne,borderLeftWidth:ne,borderRadius:ne,radius:ne,borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomRightRadius:ne,borderBottomLeftRadius:ne,width:ne,maxWidth:ne,height:ne,maxHeight:ne,top:ne,right:ne,bottom:ne,left:ne,padding:ne,paddingTop:ne,paddingRight:ne,paddingBottom:ne,paddingLeft:ne,margin:ne,marginTop:ne,marginRight:ne,marginBottom:ne,marginLeft:ne,backgroundPositionX:ne,backgroundPositionY:ne},ax={rotate:Sn,rotateX:Sn,rotateY:Sn,rotateZ:Sn,scale:Js,scaleX:Js,scaleY:Js,scaleZ:Js,skew:Sn,skewX:Sn,skewY:Sn,distance:ne,translateX:ne,translateY:ne,translateZ:ne,x:ne,y:ne,z:ne,perspective:ne,transformPerspective:ne,opacity:Ni,originX:Ph,originY:Ph,originZ:ne},Ch={...Lr,transform:Math.round},Lu={...lx,...ax,zIndex:Ch,size:ne,fillOpacity:Ni,strokeOpacity:Ni,numOctaves:Ch},ux={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},cx=Nr.length;function fx(n,r,s){let o="",a=!0;for(let f=0;f({style:{},transform:{},transformOrigin:{},vars:{}}),Tm=()=>({...Ou(),attrs:{}}),ju=n=>typeof n=="string"&&n.toLowerCase()==="svg";function Em(n,{style:r,vars:s},o,a){Object.assign(n.style,r,a&&a.getProjectionStyles(o));for(const f in s)n.style.setProperty(f,s[f])}const Pm=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Cm(n,r,s,o){Em(n,r,void 0,o);for(const a in r.attrs)n.setAttribute(Pm.has(a)?a:Cu(a),r.attrs[a])}const Li={};function gx(n){for(const r in n)Li[r]=n[r],Au(r)&&(Li[r].isCSSVariable=!0)}function km(n,{layout:r,layoutId:s}){return Kn.has(n)||n.startsWith("origin")||(r||s!==void 0)&&(!!Li[n]||n==="opacity")}function Vu(n,r,s){var o;const{style:a}=n,f={};for(const c in a)(qe(a[c])||r.style&&qe(r.style[c])||km(c,n)||((o=s==null?void 0:s.getValue(c))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(f[c]=a[c]);return f}function Rm(n,r,s){const o=Vu(n,r,s);for(const a in n)if(qe(n[a])||qe(r[a])){const f=Nr.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;o[f]=n[a]}return o}function yx(n,r){try{r.dimensions=typeof n.getBBox=="function"?n.getBBox():n.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}const Rh=["x","y","width","height","cx","cy","r"],vx={useVisualState:wm({scrapeMotionValuesFromProps:Rm,createRenderState:Tm,onUpdate:({props:n,prevProps:r,current:s,renderState:o,latestValues:a})=>{if(!s)return;let f=!!n.drag;if(!f){for(const h in a)if(Kn.has(h)){f=!0;break}}if(!f)return;let c=!r;if(r)for(let h=0;h{yx(s,o),Se.render(()=>{Mu(o,a,ju(s.tagName),n.transformTemplate),Cm(s,o)})})}})},wx={useVisualState:wm({scrapeMotionValuesFromProps:Vu,createRenderState:Ou})};function Dm(n,r,s){for(const o in r)!qe(r[o])&&!km(o,s)&&(n[o]=r[o])}function xx({transformTemplate:n},r){return W.useMemo(()=>{const s=Ou();return _u(s,r,n),Object.assign({},s.vars,s.style)},[r])}function Sx(n,r){const s=n.style||{},o={};return Dm(o,s,n),Object.assign(o,xx(n,r)),o}function Tx(n,r){const s={},o=Sx(n,r);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(s.tabIndex=0),s.style=o,s}function Ex(n,r,s,o){const a=W.useMemo(()=>{const f=Tm();return Mu(f,r,ju(o),n.transformTemplate),{...f.attrs,style:{...f.style}}},[r]);if(n.style){const f={};Dm(f,n.style,n),a.style={...f,...a.style}}return a}function Px(n=!1){return(s,o,a,{latestValues:f},c)=>{const p=(Ru(s)?Ex:Tx)(o,f,c,s),g=Bw(o,typeof s=="string",n),y=s!==W.Fragment?{...g,...p,ref:a}:{},{children:v}=o,x=W.useMemo(()=>qe(v)?v.get():v,[v]);return W.createElement(s,{...y,children:x})}}function Cx(n,r){return function(o,{forwardMotionProps:a}={forwardMotionProps:!1}){const c={...Ru(o)?vx:wx,preloadedFeatures:n,useRender:Px(a),createVisualElement:r,Component:o};return Gw(c)}}function Am(n,r){if(!Array.isArray(r))return!1;const s=r.length;if(s!==n.length)return!1;for(let o=0;owindow.ScrollTimeline!==void 0);class Rx{constructor(r){this.stop=()=>this.runAll("stop"),this.animations=r.filter(Boolean)}get finished(){return Promise.all(this.animations.map(r=>"finished"in r?r.finished:r))}getAll(r){return this.animations[0][r]}setAll(r,s){for(let o=0;o{if(kx()&&a.attachTimeline)return a.attachTimeline(r);if(typeof s=="function")return s(a)});return()=>{o.forEach((a,f)=>{a&&a(),this.animations[f].stop()})}}get time(){return this.getAll("time")}set time(r){this.setAll("time",r)}get speed(){return this.getAll("speed")}set speed(r){this.setAll("speed",r)}get startTime(){return this.getAll("startTime")}get duration(){let r=0;for(let s=0;ss[r]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Dx extends Rx{then(r,s){return Promise.all(this.animations).then(r).catch(s)}}function Fu(n,r){return n?n[r]||n.default||n:void 0}const Za=2e4;function Nm(n){let r=0;const s=50;let o=n.next(r);for(;!o.done&&r=Za?1/0:r}function Iu(n){return typeof n=="function"}function Dh(n,r){n.timeline=r,n.onfinish=null}const Bu=n=>Array.isArray(n)&&typeof n[0]=="number",Ax={linearEasing:void 0};function Nx(n,r){const s=Tu(n);return()=>{var o;return(o=Ax[r])!==null&&o!==void 0?o:s()}}const fo=Nx(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Lm=(n,r,s=10)=>{let o="";const a=Math.max(Math.round(r/s),2);for(let f=0;f`cubic-bezier(${n}, ${r}, ${s}, ${o})`,Ja={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xi([0,.65,.55,1]),circOut:xi([.55,0,1,.45]),backIn:xi([.31,.01,.66,-.59]),backOut:xi([.33,1.53,.69,.99])};function Mm(n,r){if(n)return typeof n=="function"&&fo()?Lm(n,r):Bu(n)?xi(n):Array.isArray(n)?n.map(s=>Mm(s,r)||Ja.easeOut):Ja[n]}const Ot={x:!1,y:!1};function Om(){return Ot.x||Ot.y}function Lx(n,r,s){var o;if(n instanceof Element)return[n];if(typeof n=="string"){let a=document;const f=(o=void 0)!==null&&o!==void 0?o:a.querySelectorAll(n);return f?Array.from(f):[]}return Array.from(n)}function jm(n,r){const s=Lx(n),o=new AbortController,a={passive:!0,...r,signal:o.signal};return[s,a,()=>o.abort()]}function Ah(n){return!(n.pointerType==="touch"||Om())}function _x(n,r,s={}){const[o,a,f]=jm(n,s),c=h=>{if(!Ah(h))return;const{target:p}=h,g=r(p,h);if(typeof g!="function"||!p)return;const y=v=>{Ah(v)&&(g(v),p.removeEventListener("pointerleave",y))};p.addEventListener("pointerleave",y,a)};return o.forEach(h=>{h.addEventListener("pointerenter",c,a)}),f}const Vm=(n,r)=>r?n===r?!0:Vm(n,r.parentElement):!1,zu=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,Mx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ox(n){return Mx.has(n.tagName)||n.tabIndex!==-1}const Si=new WeakSet;function Nh(n){return r=>{r.key==="Enter"&&n(r)}}function _a(n,r){n.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const jx=(n,r)=>{const s=n.currentTarget;if(!s)return;const o=Nh(()=>{if(Si.has(s))return;_a(s,"down");const a=Nh(()=>{_a(s,"up")}),f=()=>_a(s,"cancel");s.addEventListener("keyup",a,r),s.addEventListener("blur",f,r)});s.addEventListener("keydown",o,r),s.addEventListener("blur",()=>s.removeEventListener("keydown",o),r)};function Lh(n){return zu(n)&&!Om()}function Vx(n,r,s={}){const[o,a,f]=jm(n,s),c=h=>{const p=h.currentTarget;if(!Lh(h)||Si.has(p))return;Si.add(p);const g=r(p,h),y=(A,R)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",x),!(!Lh(A)||!Si.has(p))&&(Si.delete(p),typeof g=="function"&&g(A,{success:R}))},v=A=>{y(A,s.useGlobalTarget||Vm(p,A.target))},x=A=>{y(A,!1)};window.addEventListener("pointerup",v,a),window.addEventListener("pointercancel",x,a)};return o.forEach(h=>{!Ox(h)&&h.getAttribute("tabindex")===null&&(h.tabIndex=0),(s.useGlobalTarget?window:h).addEventListener("pointerdown",c,a),h.addEventListener("focus",g=>jx(g,a),a)}),f}function Fx(n){return n==="x"||n==="y"?Ot[n]?null:(Ot[n]=!0,()=>{Ot[n]=!1}):Ot.x||Ot.y?null:(Ot.x=Ot.y=!0,()=>{Ot.x=Ot.y=!1})}const Fm=new Set(["width","height","top","left","right","bottom",...Nr]);let oo;function Ix(){oo=void 0}const Ht={now:()=>(oo===void 0&&Ht.set(be.isProcessing||Mw.useManualTiming?be.timestamp:performance.now()),oo),set:n=>{oo=n,queueMicrotask(Ix)}};function Uu(n,r){n.indexOf(r)===-1&&n.push(r)}function bu(n,r){const s=n.indexOf(r);s>-1&&n.splice(s,1)}class Hu{constructor(){this.subscriptions=[]}add(r){return Uu(this.subscriptions,r),()=>bu(this.subscriptions,r)}notify(r,s,o){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](r,s,o);else for(let f=0;f!isNaN(parseFloat(n));class zx{constructor(r,s={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,a=!0)=>{const f=Ht.now();this.updatedAt!==f&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(r),this.owner=s.owner}setCurrent(r){this.current=r,this.updatedAt=Ht.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=Bx(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on("change",r)}on(r,s){this.events[r]||(this.events[r]=new Hu);const o=this.events[r].add(s);return r==="change"?()=>{o(),Se.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,s){this.passiveEffect=r,this.stopPassiveEffect=s}set(r,s=!0){!s||!this.passiveEffect?this.updateAndNotify(r,s):this.passiveEffect(r,this.updateAndNotify)}setWithVelocity(r,s,o){this.set(s),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-o}jump(r,s=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=Ht.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>_h)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,_h);return Im(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(r){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=r(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function _i(n,r){return new zx(n,r)}function Ux(n,r,s){n.hasValue(r)?n.getValue(r).set(s):n.addValue(r,_i(s))}function bx(n,r){const s=Ro(n,r);let{transitionEnd:o={},transition:a={},...f}=s||{};f={...f,...o};for(const c in f){const h=ex(f[c]);Ux(n,c,h)}}function Hx(n){return!!(qe(n)&&n.add)}function eu(n,r){const s=n.getValue("willChange");if(Hx(s))return s.add(r)}function Bm(n){return n.props[gm]}const zm=(n,r,s)=>(((1-3*s+3*r)*n+(3*s-6*r))*n+3*r)*n,Wx=1e-7,$x=12;function Kx(n,r,s,o,a){let f,c,h=0;do c=r+(s-r)/2,f=zm(c,o,a)-n,f>0?s=c:r=c;while(Math.abs(f)>Wx&&++h<$x);return c}function Ii(n,r,s,o){if(n===r&&s===o)return yt;const a=f=>Kx(f,0,1,n,s);return f=>f===0||f===1?f:zm(a(f),r,o)}const Um=n=>r=>r<=.5?n(2*r)/2:(2-n(2*(1-r)))/2,bm=n=>r=>1-n(1-r),Hm=Ii(.33,1.53,.69,.99),Wu=bm(Hm),Wm=Um(Wu),$m=n=>(n*=2)<1?.5*Wu(n):.5*(2-Math.pow(2,-10*(n-1))),$u=n=>1-Math.sin(Math.acos(n)),Km=bm($u),Ym=Um($u),Gm=n=>/^0[^.\s]+$/u.test(n);function Yx(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||Gm(n):!0}const Pi=n=>Math.round(n*1e5)/1e5,Ku=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Gx(n){return n==null}const qx=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Yu=(n,r)=>s=>!!(typeof s=="string"&&qx.test(s)&&s.startsWith(n)||r&&!Gx(s)&&Object.prototype.hasOwnProperty.call(s,r)),qm=(n,r,s)=>o=>{if(typeof o!="string")return o;const[a,f,c,h]=o.match(Ku);return{[n]:parseFloat(a),[r]:parseFloat(f),[s]:parseFloat(c),alpha:h!==void 0?parseFloat(h):1}},Qx=n=>en(0,255,n),Ma={...Lr,transform:n=>Math.round(Qx(n))},bn={test:Yu("rgb","red"),parse:qm("red","green","blue"),transform:({red:n,green:r,blue:s,alpha:o=1})=>"rgba("+Ma.transform(n)+", "+Ma.transform(r)+", "+Ma.transform(s)+", "+Pi(Ni.transform(o))+")"};function Xx(n){let r="",s="",o="",a="";return n.length>5?(r=n.substring(1,3),s=n.substring(3,5),o=n.substring(5,7),a=n.substring(7,9)):(r=n.substring(1,2),s=n.substring(2,3),o=n.substring(3,4),a=n.substring(4,5),r+=r,s+=s,o+=o,a+=a),{red:parseInt(r,16),green:parseInt(s,16),blue:parseInt(o,16),alpha:a?parseInt(a,16)/255:1}}const tu={test:Yu("#"),parse:Xx,transform:bn.transform},xr={test:Yu("hsl","hue"),parse:qm("hue","saturation","lightness"),transform:({hue:n,saturation:r,lightness:s,alpha:o=1})=>"hsla("+Math.round(n)+", "+bt.transform(Pi(r))+", "+bt.transform(Pi(s))+", "+Pi(Ni.transform(o))+")"},Ye={test:n=>bn.test(n)||tu.test(n)||xr.test(n),parse:n=>bn.test(n)?bn.parse(n):xr.test(n)?xr.parse(n):tu.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?bn.transform(n):xr.transform(n)},Zx=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Jx(n){var r,s;return isNaN(n)&&typeof n=="string"&&(((r=n.match(Ku))===null||r===void 0?void 0:r.length)||0)+(((s=n.match(Zx))===null||s===void 0?void 0:s.length)||0)>0}const Qm="number",Xm="color",e1="var",t1="var(",Mh="${}",n1=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Mi(n){const r=n.toString(),s=[],o={color:[],number:[],var:[]},a=[];let f=0;const h=r.replace(n1,p=>(Ye.test(p)?(o.color.push(f),a.push(Xm),s.push(Ye.parse(p))):p.startsWith(t1)?(o.var.push(f),a.push(e1),s.push(p)):(o.number.push(f),a.push(Qm),s.push(parseFloat(p))),++f,Mh)).split(Mh);return{values:s,split:h,indexes:o,types:a}}function Zm(n){return Mi(n).values}function Jm(n){const{split:r,types:s}=Mi(n),o=r.length;return a=>{let f="";for(let c=0;ctypeof n=="number"?0:n;function i1(n){const r=Zm(n);return Jm(n)(r.map(r1))}const En={test:Jx,parse:Zm,createTransformer:Jm,getAnimatableNone:i1},s1=new Set(["brightness","contrast","saturate","opacity"]);function o1(n){const[r,s]=n.slice(0,-1).split("(");if(r==="drop-shadow")return n;const[o]=s.match(Ku)||[];if(!o)return n;const a=s.replace(o,"");let f=s1.has(r)?1:0;return o!==s&&(f*=100),r+"("+f+a+")"}const l1=/\b([a-z-]*)\(.*?\)/gu,nu={...En,getAnimatableNone:n=>{const r=n.match(l1);return r?r.map(o1).join(" "):n}},a1={...Lu,color:Ye,backgroundColor:Ye,outlineColor:Ye,fill:Ye,stroke:Ye,borderColor:Ye,borderTopColor:Ye,borderRightColor:Ye,borderBottomColor:Ye,borderLeftColor:Ye,filter:nu,WebkitFilter:nu},Gu=n=>a1[n];function eg(n,r){let s=Gu(n);return s!==nu&&(s=En),s.getAnimatableNone?s.getAnimatableNone(r):void 0}const u1=new Set(["auto","none","0"]);function c1(n,r,s){let o=0,a;for(;on===Lr||n===ne,jh=(n,r)=>parseFloat(n.split(", ")[r]),Vh=(n,r)=>(s,{transform:o})=>{if(o==="none"||!o)return 0;const a=o.match(/^matrix3d\((.+)\)$/u);if(a)return jh(a[1],r);{const f=o.match(/^matrix\((.+)\)$/u);return f?jh(f[1],n):0}},f1=new Set(["x","y","z"]),d1=Nr.filter(n=>!f1.has(n));function h1(n){const r=[];return d1.forEach(s=>{const o=n.getValue(s);o!==void 0&&(r.push([s,o.get()]),o.set(s.startsWith("scale")?1:0))}),r}const Rr={width:({x:n},{paddingLeft:r="0",paddingRight:s="0"})=>n.max-n.min-parseFloat(r)-parseFloat(s),height:({y:n},{paddingTop:r="0",paddingBottom:s="0"})=>n.max-n.min-parseFloat(r)-parseFloat(s),top:(n,{top:r})=>parseFloat(r),left:(n,{left:r})=>parseFloat(r),bottom:({y:n},{top:r})=>parseFloat(r)+(n.max-n.min),right:({x:n},{left:r})=>parseFloat(r)+(n.max-n.min),x:Vh(4,13),y:Vh(5,14)};Rr.translateX=Rr.x;Rr.translateY=Rr.y;const Wn=new Set;let ru=!1,iu=!1;function tg(){if(iu){const n=Array.from(Wn).filter(o=>o.needsMeasurement),r=new Set(n.map(o=>o.element)),s=new Map;r.forEach(o=>{const a=h1(o);a.length&&(s.set(o,a),o.render())}),n.forEach(o=>o.measureInitialState()),r.forEach(o=>{o.render();const a=s.get(o);a&&a.forEach(([f,c])=>{var h;(h=o.getValue(f))===null||h===void 0||h.set(c)})}),n.forEach(o=>o.measureEndState()),n.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}iu=!1,ru=!1,Wn.forEach(n=>n.complete()),Wn.clear()}function ng(){Wn.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(iu=!0)})}function p1(){ng(),tg()}class qu{constructor(r,s,o,a,f,c=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...r],this.onComplete=s,this.name=o,this.motionValue=a,this.element=f,this.isAsync=c}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Wn.add(this),ru||(ru=!0,Se.read(ng),Se.resolveKeyframes(tg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:s,element:o,motionValue:a}=this;for(let f=0;f/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n),m1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function g1(n){const r=m1.exec(n);if(!r)return[,];const[,s,o,a]=r;return[`--${s??o}`,a]}function ig(n,r,s=1){const[o,a]=g1(n);if(!o)return;const f=window.getComputedStyle(r).getPropertyValue(o);if(f){const c=f.trim();return rg(c)?parseFloat(c):c}return Nu(a)?ig(a,r,s+1):a}const sg=n=>r=>r.test(n),y1={test:n=>n==="auto",parse:n=>n},og=[Lr,ne,bt,Sn,ox,sx,y1],Fh=n=>og.find(sg(n));class lg extends qu{constructor(r,s,o,a,f){super(r,s,o,a,f,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:s,name:o}=this;if(!s||!s.current)return;super.readKeyframes();for(let p=0;p{s.getValue(p).set(g)}),this.resolveNoneKeyframes()}}const Ih=(n,r)=>r==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(En.test(n)||n==="0")&&!n.startsWith("url("));function v1(n){const r=n[0];if(n.length===1)return!0;for(let s=0;sn!==null;function Do(n,{repeat:r,repeatType:s="loop"},o){const a=n.filter(x1),f=r&&s!=="loop"&&r%2===1?0:a.length-1;return!f||o===void 0?a[f]:o}const S1=40;class ag{constructor({autoplay:r=!0,delay:s=0,type:o="keyframes",repeat:a=0,repeatDelay:f=0,repeatType:c="loop",...h}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ht.now(),this.options={autoplay:r,delay:s,type:o,repeat:a,repeatDelay:f,repeatType:c,...h},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>S1?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&p1(),this._resolved}onKeyframesResolved(r,s){this.resolvedAt=Ht.now(),this.hasAttemptedResolve=!0;const{name:o,type:a,velocity:f,delay:c,onComplete:h,onUpdate:p,isGenerator:g}=this.options;if(!g&&!w1(r,o,a,f))if(c)this.options.duration=0;else{p&&p(Do(r,this.options,s)),h&&h(),this.resolveFinishedPromise();return}const y=this.initPlayback(r,s);y!==!1&&(this._resolved={keyframes:r,finalKeyframe:s,...y},this.onPostResolved())}onPostResolved(){}then(r,s){return this.currentFinishedPromise.then(r,s)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(r=>{this.resolveFinishedPromise=r})}}const ke=(n,r,s)=>n+(r-n)*s;function Oa(n,r,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(r-n)*6*s:s<1/2?r:s<2/3?n+(r-n)*(2/3-s)*6:n}function T1({hue:n,saturation:r,lightness:s,alpha:o}){n/=360,r/=100,s/=100;let a=0,f=0,c=0;if(!r)a=f=c=s;else{const h=s<.5?s*(1+r):s+r-s*r,p=2*s-h;a=Oa(p,h,n+1/3),f=Oa(p,h,n),c=Oa(p,h,n-1/3)}return{red:Math.round(a*255),green:Math.round(f*255),blue:Math.round(c*255),alpha:o}}function ho(n,r){return s=>s>0?r:n}const ja=(n,r,s)=>{const o=n*n,a=s*(r*r-o)+o;return a<0?0:Math.sqrt(a)},E1=[tu,bn,xr],P1=n=>E1.find(r=>r.test(n));function Bh(n){const r=P1(n);if(!r)return!1;let s=r.parse(n);return r===xr&&(s=T1(s)),s}const zh=(n,r)=>{const s=Bh(n),o=Bh(r);if(!s||!o)return ho(n,r);const a={...s};return f=>(a.red=ja(s.red,o.red,f),a.green=ja(s.green,o.green,f),a.blue=ja(s.blue,o.blue,f),a.alpha=ke(s.alpha,o.alpha,f),bn.transform(a))},C1=(n,r)=>s=>r(n(s)),Bi=(...n)=>n.reduce(C1),su=new Set(["none","hidden"]);function k1(n,r){return su.has(n)?s=>s<=0?n:r:s=>s>=1?r:n}function R1(n,r){return s=>ke(n,r,s)}function Qu(n){return typeof n=="number"?R1:typeof n=="string"?Nu(n)?ho:Ye.test(n)?zh:N1:Array.isArray(n)?ug:typeof n=="object"?Ye.test(n)?zh:D1:ho}function ug(n,r){const s=[...n],o=s.length,a=n.map((f,c)=>Qu(f)(f,r[c]));return f=>{for(let c=0;c{for(const f in o)s[f]=o[f](a);return s}}function A1(n,r){var s;const o=[],a={color:0,var:0,number:0};for(let f=0;f{const s=En.createTransformer(r),o=Mi(n),a=Mi(r);return o.indexes.var.length===a.indexes.var.length&&o.indexes.color.length===a.indexes.color.length&&o.indexes.number.length>=a.indexes.number.length?su.has(n)&&!a.values.length||su.has(r)&&!o.values.length?k1(n,r):Bi(ug(A1(o,a),a.values),s):ho(n,r)};function cg(n,r,s){return typeof n=="number"&&typeof r=="number"&&typeof s=="number"?ke(n,r,s):Qu(n)(n,r)}const L1=5;function fg(n,r,s){const o=Math.max(r-L1,0);return Im(s-n(o),r-o)}const Ae={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Uh=.001;function _1({duration:n=Ae.duration,bounce:r=Ae.bounce,velocity:s=Ae.velocity,mass:o=Ae.mass}){let a,f,c=1-r;c=en(Ae.minDamping,Ae.maxDamping,c),n=en(Ae.minDuration,Ae.maxDuration,Jt(n)),c<1?(a=g=>{const y=g*c,v=y*n,x=y-s,A=ou(g,c),R=Math.exp(-v);return Uh-x/A*R},f=g=>{const v=g*c*n,x=v*s+s,A=Math.pow(c,2)*Math.pow(g,2)*n,R=Math.exp(-v),k=ou(Math.pow(g,2),c);return(-a(g)+Uh>0?-1:1)*((x-A)*R)/k}):(a=g=>{const y=Math.exp(-g*n),v=(g-s)*n+1;return-.001+y*v},f=g=>{const y=Math.exp(-g*n),v=(s-g)*(n*n);return y*v});const h=5/n,p=O1(a,f,h);if(n=Zt(n),isNaN(p))return{stiffness:Ae.stiffness,damping:Ae.damping,duration:n};{const g=Math.pow(p,2)*o;return{stiffness:g,damping:c*2*Math.sqrt(o*g),duration:n}}}const M1=12;function O1(n,r,s){let o=s;for(let a=1;an[s]!==void 0)}function F1(n){let r={velocity:Ae.velocity,stiffness:Ae.stiffness,damping:Ae.damping,mass:Ae.mass,isResolvedFromDuration:!1,...n};if(!bh(n,V1)&&bh(n,j1))if(n.visualDuration){const s=n.visualDuration,o=2*Math.PI/(s*1.2),a=o*o,f=2*en(.05,1,1-(n.bounce||0))*Math.sqrt(a);r={...r,mass:Ae.mass,stiffness:a,damping:f}}else{const s=_1(n);r={...r,...s,mass:Ae.mass},r.isResolvedFromDuration=!0}return r}function dg(n=Ae.visualDuration,r=Ae.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:r}:n;let{restSpeed:o,restDelta:a}=s;const f=s.keyframes[0],c=s.keyframes[s.keyframes.length-1],h={done:!1,value:f},{stiffness:p,damping:g,mass:y,duration:v,velocity:x,isResolvedFromDuration:A}=F1({...s,velocity:-Jt(s.velocity||0)}),R=x||0,k=g/(2*Math.sqrt(p*y)),P=c-f,M=Jt(Math.sqrt(p/y)),F=Math.abs(P)<5;o||(o=F?Ae.restSpeed.granular:Ae.restSpeed.default),a||(a=F?Ae.restDelta.granular:Ae.restDelta.default);let B;if(k<1){const b=ou(M,k);B=Z=>{const se=Math.exp(-k*M*Z);return c-se*((R+k*M*P)/b*Math.sin(b*Z)+P*Math.cos(b*Z))}}else if(k===1)B=b=>c-Math.exp(-M*b)*(P+(R+M*P)*b);else{const b=M*Math.sqrt(k*k-1);B=Z=>{const se=Math.exp(-k*M*Z),X=Math.min(b*Z,300);return c-se*((R+k*M*P)*Math.sinh(X)+b*P*Math.cosh(X))/b}}const Q={calculatedDuration:A&&v||null,next:b=>{const Z=B(b);if(A)h.done=b>=v;else{let se=0;k<1&&(se=b===0?Zt(R):fg(B,b,Z));const X=Math.abs(se)<=o,ge=Math.abs(c-Z)<=a;h.done=X&&ge}return h.value=h.done?c:Z,h},toString:()=>{const b=Math.min(Nm(Q),Za),Z=Lm(se=>Q.next(b*se).value,b,30);return b+"ms "+Z}};return Q}function Hh({keyframes:n,velocity:r=0,power:s=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:f=500,modifyTarget:c,min:h,max:p,restDelta:g=.5,restSpeed:y}){const v=n[0],x={done:!1,value:v},A=X=>h!==void 0&&Xp,R=X=>h===void 0?p:p===void 0||Math.abs(h-X)-k*Math.exp(-X/o),B=X=>M+F(X),Q=X=>{const ge=F(X),Re=B(X);x.done=Math.abs(ge)<=g,x.value=x.done?M:Re};let b,Z;const se=X=>{A(x.value)&&(b=X,Z=dg({keyframes:[x.value,R(x.value)],velocity:fg(B,X,x.value),damping:a,stiffness:f,restDelta:g,restSpeed:y}))};return se(0),{calculatedDuration:null,next:X=>{let ge=!1;return!Z&&b===void 0&&(ge=!0,Q(X),se(X)),b!==void 0&&X>=b?Z.next(X-b):(!ge&&Q(X),x)}}}const I1=Ii(.42,0,1,1),B1=Ii(0,0,.58,1),hg=Ii(.42,0,.58,1),z1=n=>Array.isArray(n)&&typeof n[0]!="number",Wh={linear:yt,easeIn:I1,easeInOut:hg,easeOut:B1,circIn:$u,circInOut:Ym,circOut:Km,backIn:Wu,backInOut:Wm,backOut:Hm,anticipate:$m},$h=n=>{if(Bu(n)){Qa(n.length===4);const[r,s,o,a]=n;return Ii(r,s,o,a)}else if(typeof n=="string")return Qa(Wh[n]!==void 0),Wh[n];return n};function U1(n,r,s){const o=[],a=s||cg,f=n.length-1;for(let c=0;cr[0];if(f===2&&r[0]===r[1])return()=>r[1];const c=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),r=[...r].reverse());const h=U1(r,o,a),p=h.length,g=y=>{if(c&&y1)for(;vg(en(n[0],n[f-1],y)):g}function H1(n,r){const s=n[n.length-1];for(let o=1;o<=r;o++){const a=Cr(0,r,o);n.push(ke(s,1,a))}}function W1(n){const r=[0];return H1(r,n.length-1),r}function $1(n,r){return n.map(s=>s*r)}function K1(n,r){return n.map(()=>r||hg).splice(0,n.length-1)}function po({duration:n=300,keyframes:r,times:s,ease:o="easeInOut"}){const a=z1(o)?o.map($h):$h(o),f={done:!1,value:r[0]},c=$1(s&&s.length===r.length?s:W1(r),n),h=b1(c,r,{ease:Array.isArray(a)?a:K1(r,a)});return{calculatedDuration:n,next:p=>(f.value=h(p),f.done=p>=n,f)}}const Y1=n=>{const r=({timestamp:s})=>n(s);return{start:()=>Se.update(r,!0),stop:()=>Tn(r),now:()=>be.isProcessing?be.timestamp:Ht.now()}},G1={decay:Hh,inertia:Hh,tween:po,keyframes:po,spring:dg},q1=n=>n/100;class Xu extends ag{constructor(r){super(r),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:p}=this.options;p&&p()};const{name:s,motionValue:o,element:a,keyframes:f}=this.options,c=(a==null?void 0:a.KeyframeResolver)||qu,h=(p,g)=>this.onKeyframesResolved(p,g);this.resolver=new c(f,h,s,o,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(r){const{type:s="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:f,velocity:c=0}=this.options,h=Iu(s)?s:G1[s]||po;let p,g;h!==po&&typeof r[0]!="number"&&(p=Bi(q1,cg(r[0],r[1])),r=[0,100]);const y=h({...this.options,keyframes:r});f==="mirror"&&(g=h({...this.options,keyframes:[...r].reverse(),velocity:-c})),y.calculatedDuration===null&&(y.calculatedDuration=Nm(y));const{calculatedDuration:v}=y,x=v+a,A=x*(o+1)-a;return{generator:y,mirroredGenerator:g,mapPercentToKeyframes:p,calculatedDuration:v,resolvedDuration:x,totalDuration:A}}onPostResolved(){const{autoplay:r=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!r?this.pause():this.state=this.pendingPlayState}tick(r,s=!1){const{resolved:o}=this;if(!o){const{keyframes:X}=this.options;return{done:!0,value:X[X.length-1]}}const{finalKeyframe:a,generator:f,mirroredGenerator:c,mapPercentToKeyframes:h,keyframes:p,calculatedDuration:g,totalDuration:y,resolvedDuration:v}=o;if(this.startTime===null)return f.next(0);const{delay:x,repeat:A,repeatType:R,repeatDelay:k,onUpdate:P}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-y/this.speed,this.startTime)),s?this.currentTime=r:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(r-this.startTime)*this.speed;const M=this.currentTime-x*(this.speed>=0?1:-1),F=this.speed>=0?M<0:M>y;this.currentTime=Math.max(M,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=y);let B=this.currentTime,Q=f;if(A){const X=Math.min(this.currentTime,y)/v;let ge=Math.floor(X),Re=X%1;!Re&&X>=1&&(Re=1),Re===1&&ge--,ge=Math.min(ge,A+1),!!(ge%2)&&(R==="reverse"?(Re=1-Re,k&&(Re-=k/v)):R==="mirror"&&(Q=c)),B=en(0,1,Re)*v}const b=F?{done:!1,value:p[0]}:Q.next(B);h&&(b.value=h(b.value));let{done:Z}=b;!F&&g!==null&&(Z=this.speed>=0?this.currentTime>=y:this.currentTime<=0);const se=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Z);return se&&a!==void 0&&(b.value=Do(p,this.options,a)),P&&P(b.value),se&&this.finish(),b}get duration(){const{resolved:r}=this;return r?Jt(r.calculatedDuration):0}get time(){return Jt(this.currentTime)}set time(r){r=Zt(r),this.currentTime=r,this.holdTime!==null||this.speed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.speed)}get speed(){return this.playbackSpeed}set speed(r){const s=this.playbackSpeed!==r;this.playbackSpeed=r,s&&(this.time=Jt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:r=Y1,onPlay:s,startTime:o}=this.options;this.driver||(this.driver=r(f=>this.tick(f))),s&&s();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=o??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var r;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(r=this.currentTime)!==null&&r!==void 0?r:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:r}=this.options;r&&r()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}}const Q1=new Set(["opacity","clipPath","filter","transform"]);function X1(n,r,s,{delay:o=0,duration:a=300,repeat:f=0,repeatType:c="loop",ease:h="easeInOut",times:p}={}){const g={[r]:s};p&&(g.offset=p);const y=Mm(h,a);return Array.isArray(y)&&(g.easing=y),n.animate(g,{delay:o,duration:a,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:f+1,direction:c==="reverse"?"alternate":"normal"})}const Z1=Tu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),mo=10,J1=2e4;function eS(n){return Iu(n.type)||n.type==="spring"||!_m(n.ease)}function tS(n,r){const s=new Xu({...r,keyframes:n,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:n[0]};const a=[];let f=0;for(;!o.done&&fthis.onKeyframesResolved(c,h),s,o,a),this.resolver.scheduleResolve()}initPlayback(r,s){let{duration:o=300,times:a,ease:f,type:c,motionValue:h,name:p,startTime:g}=this.options;if(!h.owner||!h.owner.current)return!1;if(typeof f=="string"&&fo()&&nS(f)&&(f=pg[f]),eS(this.options)){const{onComplete:v,onUpdate:x,motionValue:A,element:R,...k}=this.options,P=tS(r,k);r=P.keyframes,r.length===1&&(r[1]=r[0]),o=P.duration,a=P.times,f=P.ease,c="keyframes"}const y=X1(h.owner.current,p,r,{...this.options,duration:o,times:a,ease:f});return y.startTime=g??this.calcStartTime(),this.pendingTimeline?(Dh(y,this.pendingTimeline),this.pendingTimeline=void 0):y.onfinish=()=>{const{onComplete:v}=this.options;h.set(Do(r,this.options,s)),v&&v(),this.cancel(),this.resolveFinishedPromise()},{animation:y,duration:o,times:a,type:c,ease:f,keyframes:r}}get duration(){const{resolved:r}=this;if(!r)return 0;const{duration:s}=r;return Jt(s)}get time(){const{resolved:r}=this;if(!r)return 0;const{animation:s}=r;return Jt(s.currentTime||0)}set time(r){const{resolved:s}=this;if(!s)return;const{animation:o}=s;o.currentTime=Zt(r)}get speed(){const{resolved:r}=this;if(!r)return 1;const{animation:s}=r;return s.playbackRate}set speed(r){const{resolved:s}=this;if(!s)return;const{animation:o}=s;o.playbackRate=r}get state(){const{resolved:r}=this;if(!r)return"idle";const{animation:s}=r;return s.playState}get startTime(){const{resolved:r}=this;if(!r)return null;const{animation:s}=r;return s.startTime}attachTimeline(r){if(!this._resolved)this.pendingTimeline=r;else{const{resolved:s}=this;if(!s)return yt;const{animation:o}=s;Dh(o,r)}return yt}play(){if(this.isStopped)return;const{resolved:r}=this;if(!r)return;const{animation:s}=r;s.playState==="finished"&&this.updateFinishedPromise(),s.play()}pause(){const{resolved:r}=this;if(!r)return;const{animation:s}=r;s.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:r}=this;if(!r)return;const{animation:s,keyframes:o,duration:a,type:f,ease:c,times:h}=r;if(s.playState==="idle"||s.playState==="finished")return;if(this.time){const{motionValue:g,onUpdate:y,onComplete:v,element:x,...A}=this.options,R=new Xu({...A,keyframes:o,duration:a,type:f,ease:c,times:h,isGenerator:!0}),k=Zt(this.time);g.setWithVelocity(R.sample(k-mo).value,R.sample(k).value,mo)}const{onStop:p}=this.options;p&&p(),this.cancel()}complete(){const{resolved:r}=this;r&&r.animation.finish()}cancel(){const{resolved:r}=this;r&&r.animation.cancel()}static supports(r){const{motionValue:s,name:o,repeatDelay:a,repeatType:f,damping:c,type:h}=r;if(!s||!s.owner||!(s.owner.current instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:g}=s.owner.getProps();return Z1()&&o&&Q1.has(o)&&!p&&!g&&!a&&f!=="mirror"&&c!==0&&h!=="inertia"}}const rS={type:"spring",stiffness:500,damping:25,restSpeed:10},iS=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),sS={type:"keyframes",duration:.8},oS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},lS=(n,{keyframes:r})=>r.length>2?sS:Kn.has(n)?n.startsWith("scale")?iS(r[1]):rS:oS;function aS({when:n,delay:r,delayChildren:s,staggerChildren:o,staggerDirection:a,repeat:f,repeatType:c,repeatDelay:h,from:p,elapsed:g,...y}){return!!Object.keys(y).length}const Zu=(n,r,s,o={},a,f)=>c=>{const h=Fu(o,n)||{},p=h.delay||o.delay||0;let{elapsed:g=0}=o;g=g-Zt(p);let y={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:r.getVelocity(),...h,delay:-g,onUpdate:x=>{r.set(x),h.onUpdate&&h.onUpdate(x)},onComplete:()=>{c(),h.onComplete&&h.onComplete()},name:n,motionValue:r,element:f?void 0:a};aS(h)||(y={...y,...lS(n,y)}),y.duration&&(y.duration=Zt(y.duration)),y.repeatDelay&&(y.repeatDelay=Zt(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(y.duration=0,y.delay===0&&(v=!0)),v&&!f&&r.get()!==void 0){const x=Do(y.keyframes,h);if(x!==void 0)return Se.update(()=>{y.onUpdate(x),y.onComplete()}),new Dx([])}return!f&&Kh.supports(y)?new Kh(y):new Xu(y)};function uS({protectedKeys:n,needsAnimating:r},s){const o=n.hasOwnProperty(s)&&r[s]!==!0;return r[s]=!1,o}function mg(n,r,{delay:s=0,transitionOverride:o,type:a}={}){var f;let{transition:c=n.getDefaultTransition(),transitionEnd:h,...p}=r;o&&(c=o);const g=[],y=a&&n.animationState&&n.animationState.getState()[a];for(const v in p){const x=n.getValue(v,(f=n.latestValues[v])!==null&&f!==void 0?f:null),A=p[v];if(A===void 0||y&&uS(y,v))continue;const R={delay:s,...Fu(c||{},v)};let k=!1;if(window.MotionHandoffAnimation){const M=Bm(n);if(M){const F=window.MotionHandoffAnimation(M,v,Se);F!==null&&(R.startTime=F,k=!0)}}eu(n,v),x.start(Zu(v,x,A,n.shouldReduceMotion&&Fm.has(v)?{type:!1}:R,n,k));const P=x.animation;P&&g.push(P)}return h&&Promise.all(g).then(()=>{Se.update(()=>{h&&bx(n,h)})}),g}function lu(n,r,s={}){var o;const a=Ro(n,r,s.type==="exit"?(o=n.presenceContext)===null||o===void 0?void 0:o.custom:void 0);let{transition:f=n.getDefaultTransition()||{}}=a||{};s.transitionOverride&&(f=s.transitionOverride);const c=a?()=>Promise.all(mg(n,a,s)):()=>Promise.resolve(),h=n.variantChildren&&n.variantChildren.size?(g=0)=>{const{delayChildren:y=0,staggerChildren:v,staggerDirection:x}=f;return cS(n,r,y+g,v,x,s)}:()=>Promise.resolve(),{when:p}=f;if(p){const[g,y]=p==="beforeChildren"?[c,h]:[h,c];return g().then(()=>y())}else return Promise.all([c(),h(s.delay)])}function cS(n,r,s=0,o=0,a=1,f){const c=[],h=(n.variantChildren.size-1)*o,p=a===1?(g=0)=>g*o:(g=0)=>h-g*o;return Array.from(n.variantChildren).sort(fS).forEach((g,y)=>{g.notify("AnimationStart",r),c.push(lu(g,r,{...f,delay:s+p(y)}).then(()=>g.notify("AnimationComplete",r)))}),Promise.all(c)}function fS(n,r){return n.sortNodePosition(r)}function dS(n,r,s={}){n.notify("AnimationStart",r);let o;if(Array.isArray(r)){const a=r.map(f=>lu(n,f,s));o=Promise.all(a)}else if(typeof r=="string")o=lu(n,r,s);else{const a=typeof r=="function"?Ro(n,r,s.custom):r;o=Promise.all(mg(n,a,s))}return o.then(()=>{n.notify("AnimationComplete",r)})}const hS=Pu.length;function gg(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?gg(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const r={};for(let s=0;sPromise.all(r.map(({animation:s,options:o})=>dS(n,s,o)))}function yS(n){let r=gS(n),s=Yh(),o=!0;const a=p=>(g,y)=>{var v;const x=Ro(n,y,p==="exit"?(v=n.presenceContext)===null||v===void 0?void 0:v.custom:void 0);if(x){const{transition:A,transitionEnd:R,...k}=x;g={...g,...k,...R}}return g};function f(p){r=p(n)}function c(p){const{props:g}=n,y=gg(n.parent)||{},v=[],x=new Set;let A={},R=1/0;for(let P=0;PR&&Q,ge=!1;const Re=Array.isArray(B)?B:[B];let tt=Re.reduce(a(M),{});b===!1&&(tt={});const{prevResolvedValues:ct={}}=F,Qe={...ct,...tt},nt=le=>{X=!0,x.has(le)&&(ge=!0,x.delete(le)),F.needsAnimating[le]=!0;const U=n.getValue(le);U&&(U.liveStyle=!1)};for(const le in Qe){const U=tt[le],J=ct[le];if(A.hasOwnProperty(le))continue;let $=!1;Xa(U)&&Xa(J)?$=!Am(U,J):$=U!==J,$?U!=null?nt(le):x.add(le):U!==void 0&&x.has(le)?nt(le):F.protectedKeys[le]=!0}F.prevProp=B,F.prevResolvedValues=tt,F.isActive&&(A={...A,...tt}),o&&n.blockInitialAnimation&&(X=!1),X&&(!(Z&&se)||ge)&&v.push(...Re.map(le=>({animation:le,options:{type:M}})))}if(x.size){const P={};x.forEach(M=>{const F=n.getBaseTarget(M),B=n.getValue(M);B&&(B.liveStyle=!0),P[M]=F??null}),v.push({animation:P})}let k=!!v.length;return o&&(g.initial===!1||g.initial===g.animate)&&!n.manuallyAnimateOnMount&&(k=!1),o=!1,k?r(v):Promise.resolve()}function h(p,g){var y;if(s[p].isActive===g)return Promise.resolve();(y=n.variantChildren)===null||y===void 0||y.forEach(x=>{var A;return(A=x.animationState)===null||A===void 0?void 0:A.setActive(p,g)}),s[p].isActive=g;const v=c(p);for(const x in s)s[x].protectedKeys={};return v}return{animateChanges:c,setActive:h,setAnimateFunction:f,getState:()=>s,reset:()=>{s=Yh(),o=!0}}}function vS(n,r){return typeof r=="string"?r!==n:Array.isArray(r)?!Am(r,n):!1}function In(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Yh(){return{animate:In(!0),whileInView:In(),whileHover:In(),whileTap:In(),whileDrag:In(),whileFocus:In(),exit:In()}}class Pn{constructor(r){this.isMounted=!1,this.node=r}update(){}}class wS extends Pn{constructor(r){super(r),r.animationState||(r.animationState=yS(r))}updateAnimationControlsSubscription(){const{animate:r}=this.node.getProps();Co(r)&&(this.unmountControls=r.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.node.getProps(),{animate:s}=this.node.prevProps||{};r!==s&&this.updateAnimationControlsSubscription()}unmount(){var r;this.node.animationState.reset(),(r=this.unmountControls)===null||r===void 0||r.call(this)}}let xS=0;class SS extends Pn{constructor(){super(...arguments),this.id=xS++}update(){if(!this.node.presenceContext)return;const{isPresent:r,onExitComplete:s}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||r===o)return;const a=this.node.animationState.setActive("exit",!r);s&&!r&&a.then(()=>s(this.id))}mount(){const{register:r}=this.node.presenceContext||{};r&&(this.unmount=r(this.id))}unmount(){}}const TS={animation:{Feature:wS},exit:{Feature:SS}};function Oi(n,r,s,o={passive:!0}){return n.addEventListener(r,s,o),()=>n.removeEventListener(r,s)}function zi(n){return{point:{x:n.pageX,y:n.pageY}}}const ES=n=>r=>zu(r)&&n(r,zi(r));function Ci(n,r,s,o){return Oi(n,r,ES(s),o)}const Gh=(n,r)=>Math.abs(n-r);function PS(n,r){const s=Gh(n.x,r.x),o=Gh(n.y,r.y);return Math.sqrt(s**2+o**2)}class yg{constructor(r,s,{transformPagePoint:o,contextWindow:a,dragSnapToOrigin:f=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Fa(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,A=PS(v.offset,{x:0,y:0})>=3;if(!x&&!A)return;const{point:R}=v,{timestamp:k}=be;this.history.push({...R,timestamp:k});const{onStart:P,onMove:M}=this.handlers;x||(P&&P(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),M&&M(this.lastMoveEvent,v)},this.handlePointerMove=(v,x)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=Va(x,this.transformPagePoint),Se.update(this.updatePoint,!0)},this.handlePointerUp=(v,x)=>{this.end();const{onEnd:A,onSessionEnd:R,resumeAnimation:k}=this.handlers;if(this.dragSnapToOrigin&&k&&k(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=Fa(v.type==="pointercancel"?this.lastMoveEventInfo:Va(x,this.transformPagePoint),this.history);this.startEvent&&A&&A(v,P),R&&R(v,P)},!zu(r))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=o,this.contextWindow=a||window;const c=zi(r),h=Va(c,this.transformPagePoint),{point:p}=h,{timestamp:g}=be;this.history=[{...p,timestamp:g}];const{onSessionStart:y}=s;y&&y(r,Fa(h,this.history)),this.removeListeners=Bi(Ci(this.contextWindow,"pointermove",this.handlePointerMove),Ci(this.contextWindow,"pointerup",this.handlePointerUp),Ci(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),Tn(this.updatePoint)}}function Va(n,r){return r?{point:r(n.point)}:n}function qh(n,r){return{x:n.x-r.x,y:n.y-r.y}}function Fa({point:n},r){return{point:n,delta:qh(n,vg(r)),offset:qh(n,CS(r)),velocity:kS(r,.1)}}function CS(n){return n[0]}function vg(n){return n[n.length-1]}function kS(n,r){if(n.length<2)return{x:0,y:0};let s=n.length-1,o=null;const a=vg(n);for(;s>=0&&(o=n[s],!(a.timestamp-o.timestamp>Zt(r)));)s--;if(!o)return{x:0,y:0};const f=Jt(a.timestamp-o.timestamp);if(f===0)return{x:0,y:0};const c={x:(a.x-o.x)/f,y:(a.y-o.y)/f};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}const wg=1e-4,RS=1-wg,DS=1+wg,xg=.01,AS=0-xg,NS=0+xg;function et(n){return n.max-n.min}function LS(n,r,s){return Math.abs(n-r)<=s}function Qh(n,r,s,o=.5){n.origin=o,n.originPoint=ke(r.min,r.max,n.origin),n.scale=et(s)/et(r),n.translate=ke(s.min,s.max,n.origin)-n.originPoint,(n.scale>=RS&&n.scale<=DS||isNaN(n.scale))&&(n.scale=1),(n.translate>=AS&&n.translate<=NS||isNaN(n.translate))&&(n.translate=0)}function ki(n,r,s,o){Qh(n.x,r.x,s.x,o?o.originX:void 0),Qh(n.y,r.y,s.y,o?o.originY:void 0)}function Xh(n,r,s){n.min=s.min+r.min,n.max=n.min+et(r)}function _S(n,r,s){Xh(n.x,r.x,s.x),Xh(n.y,r.y,s.y)}function Zh(n,r,s){n.min=r.min-s.min,n.max=n.min+et(r)}function Ri(n,r,s){Zh(n.x,r.x,s.x),Zh(n.y,r.y,s.y)}function MS(n,{min:r,max:s},o){return r!==void 0&&ns&&(n=o?ke(s,n,o.max):Math.min(n,s)),n}function Jh(n,r,s){return{min:r!==void 0?n.min+r:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function OS(n,{top:r,left:s,bottom:o,right:a}){return{x:Jh(n.x,s,a),y:Jh(n.y,r,o)}}function ep(n,r){let s=r.min-n.min,o=r.max-n.max;return r.max-r.mino?s=Cr(r.min,r.max-o,n.min):o>a&&(s=Cr(n.min,n.max-a,r.min)),en(0,1,s)}function FS(n,r){const s={};return r.min!==void 0&&(s.min=r.min-n.min),r.max!==void 0&&(s.max=r.max-n.min),s}const au=.35;function IS(n=au){return n===!1?n=0:n===!0&&(n=au),{x:tp(n,"left","right"),y:tp(n,"top","bottom")}}function tp(n,r,s){return{min:np(n,r),max:np(n,s)}}function np(n,r){return typeof n=="number"?n:n[r]||0}const rp=()=>({translate:0,scale:1,origin:0,originPoint:0}),Sr=()=>({x:rp(),y:rp()}),ip=()=>({min:0,max:0}),_e=()=>({x:ip(),y:ip()});function Ct(n){return[n("x"),n("y")]}function Sg({top:n,left:r,right:s,bottom:o}){return{x:{min:r,max:s},y:{min:n,max:o}}}function BS({x:n,y:r}){return{top:r.min,right:n.max,bottom:r.max,left:n.min}}function zS(n,r){if(!r)return n;const s=r({x:n.left,y:n.top}),o=r({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:o.y,right:o.x}}function Ia(n){return n===void 0||n===1}function uu({scale:n,scaleX:r,scaleY:s}){return!Ia(n)||!Ia(r)||!Ia(s)}function Bn(n){return uu(n)||Tg(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function Tg(n){return sp(n.x)||sp(n.y)}function sp(n){return n&&n!=="0%"}function go(n,r,s){const o=n-s,a=r*o;return s+a}function op(n,r,s,o,a){return a!==void 0&&(n=go(n,a,o)),go(n,s,o)+r}function cu(n,r=0,s=1,o,a){n.min=op(n.min,r,s,o,a),n.max=op(n.max,r,s,o,a)}function Eg(n,{x:r,y:s}){cu(n.x,r.translate,r.scale,r.originPoint),cu(n.y,s.translate,s.scale,s.originPoint)}const lp=.999999999999,ap=1.0000000000001;function US(n,r,s,o=!1){const a=s.length;if(!a)return;r.x=r.y=1;let f,c;for(let h=0;hlp&&(r.x=1),r.ylp&&(r.y=1)}function Tr(n,r){n.min=n.min+r,n.max=n.max+r}function up(n,r,s,o,a=.5){const f=ke(n.min,n.max,a);cu(n,r,s,f,o)}function Er(n,r){up(n.x,r.x,r.scaleX,r.scale,r.originX),up(n.y,r.y,r.scaleY,r.scale,r.originY)}function Pg(n,r){return Sg(zS(n.getBoundingClientRect(),r))}function bS(n,r,s){const o=Pg(n,s),{scroll:a}=r;return a&&(Tr(o.x,a.offset.x),Tr(o.y,a.offset.y)),o}const Cg=({current:n})=>n?n.ownerDocument.defaultView:null,HS=new WeakMap;class WS{constructor(r){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=_e(),this.visualElement=r}start(r,{snapToCursor:s=!1}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const a=y=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(zi(y).point)},f=(y,v)=>{const{drag:x,dragPropagation:A,onDragStart:R}=this.getProps();if(x&&!A&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Fx(x),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ct(P=>{let M=this.getAxisMotionValue(P).get()||0;if(bt.test(M)){const{projection:F}=this.visualElement;if(F&&F.layout){const B=F.layout.layoutBox[P];B&&(M=et(B)*(parseFloat(M)/100))}}this.originPoint[P]=M}),R&&Se.postRender(()=>R(y,v)),eu(this.visualElement,"transform");const{animationState:k}=this.visualElement;k&&k.setActive("whileDrag",!0)},c=(y,v)=>{const{dragPropagation:x,dragDirectionLock:A,onDirectionLock:R,onDrag:k}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:P}=v;if(A&&this.currentDirection===null){this.currentDirection=$S(P),this.currentDirection!==null&&R&&R(this.currentDirection);return}this.updateAxis("x",v.point,P),this.updateAxis("y",v.point,P),this.visualElement.render(),k&&k(y,v)},h=(y,v)=>this.stop(y,v),p=()=>Ct(y=>{var v;return this.getAnimationState(y)==="paused"&&((v=this.getAxisMotionValue(y).animation)===null||v===void 0?void 0:v.play())}),{dragSnapToOrigin:g}=this.getProps();this.panSession=new yg(r,{onSessionStart:a,onStart:f,onMove:c,onSessionEnd:h,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,contextWindow:Cg(this.visualElement)})}stop(r,s){const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:a}=s;this.startAnimation(a);const{onDragEnd:f}=this.getProps();f&&Se.postRender(()=>f(r,s))}cancel(){this.isDragging=!1;const{projection:r,animationState:s}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(r,s,o){const{drag:a}=this.getProps();if(!o||!eo(r,a,this.currentDirection))return;const f=this.getAxisMotionValue(r);let c=this.originPoint[r]+o[r];this.constraints&&this.constraints[r]&&(c=MS(c,this.constraints[r],this.elastic[r])),f.set(c)}resolveConstraints(){var r;const{dragConstraints:s,dragElastic:o}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(r=this.visualElement.projection)===null||r===void 0?void 0:r.layout,f=this.constraints;s&&wr(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&a?this.constraints=OS(a.layoutBox,s):this.constraints=!1,this.elastic=IS(o),f!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&Ct(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=FS(a.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:s}=this.getProps();if(!r||!wr(r))return!1;const o=r.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const f=bS(o,a.root,this.visualElement.getTransformPagePoint());let c=jS(a.layout.layoutBox,f);if(s){const h=s(BS(c));this.hasMutatedConstraints=!!h,h&&(c=Sg(h))}return c}startAnimation(r){const{drag:s,dragMomentum:o,dragElastic:a,dragTransition:f,dragSnapToOrigin:c,onDragTransitionEnd:h}=this.getProps(),p=this.constraints||{},g=Ct(y=>{if(!eo(y,s,this.currentDirection))return;let v=p[y]||{};c&&(v={min:0,max:0});const x=a?200:1e6,A=a?40:1e7,R={type:"inertia",velocity:o?r[y]:0,bounceStiffness:x,bounceDamping:A,timeConstant:750,restDelta:1,restSpeed:10,...f,...v};return this.startAxisValueAnimation(y,R)});return Promise.all(g).then(h)}startAxisValueAnimation(r,s){const o=this.getAxisMotionValue(r);return eu(this.visualElement,r),o.start(Zu(r,o,0,s,this.visualElement,!1))}stopAnimation(){Ct(r=>this.getAxisMotionValue(r).stop())}pauseAnimation(){Ct(r=>{var s;return(s=this.getAxisMotionValue(r).animation)===null||s===void 0?void 0:s.pause()})}getAnimationState(r){var s;return(s=this.getAxisMotionValue(r).animation)===null||s===void 0?void 0:s.state}getAxisMotionValue(r){const s=`_drag${r.toUpperCase()}`,o=this.visualElement.getProps(),a=o[s];return a||this.visualElement.getValue(r,(o.initial?o.initial[r]:void 0)||0)}snapToCursor(r){Ct(s=>{const{drag:o}=this.getProps();if(!eo(s,o,this.currentDirection))return;const{projection:a}=this.visualElement,f=this.getAxisMotionValue(s);if(a&&a.layout){const{min:c,max:h}=a.layout.layoutBox[s];f.set(r[s]-ke(c,h,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:s}=this.getProps(),{projection:o}=this.visualElement;if(!wr(s)||!o||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Ct(c=>{const h=this.getAxisMotionValue(c);if(h&&this.constraints!==!1){const p=h.get();a[c]=VS({min:p,max:p},this.constraints[c])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Ct(c=>{if(!eo(c,r,null))return;const h=this.getAxisMotionValue(c),{min:p,max:g}=this.constraints[c];h.set(ke(p,g,a[c]))})}addListeners(){if(!this.visualElement.current)return;HS.set(this.visualElement,this);const r=this.visualElement.current,s=Ci(r,"pointerdown",p=>{const{drag:g,dragListener:y=!0}=this.getProps();g&&y&&this.start(p)}),o=()=>{const{dragConstraints:p}=this.getProps();wr(p)&&p.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,f=a.addEventListener("measure",o);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Se.read(o);const c=Oi(window,"resize",()=>this.scalePositionWithinConstraints()),h=a.addEventListener("didUpdate",({delta:p,hasLayoutChanged:g})=>{this.isDragging&&g&&(Ct(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=p[y].translate,v.set(v.get()+p[y].translate))}),this.visualElement.render())});return()=>{c(),s(),f(),h&&h()}}getProps(){const r=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:o=!1,dragPropagation:a=!1,dragConstraints:f=!1,dragElastic:c=au,dragMomentum:h=!0}=r;return{...r,drag:s,dragDirectionLock:o,dragPropagation:a,dragConstraints:f,dragElastic:c,dragMomentum:h}}}function eo(n,r,s){return(r===!0||r===n)&&(s===null||s===n)}function $S(n,r=10){let s=null;return Math.abs(n.y)>r?s="y":Math.abs(n.x)>r&&(s="x"),s}class KS extends Pn{constructor(r){super(r),this.removeGroupControls=yt,this.removeListeners=yt,this.controls=new WS(r)}mount(){const{dragControls:r}=this.node.getProps();r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||yt}unmount(){this.removeGroupControls(),this.removeListeners()}}const cp=n=>(r,s)=>{n&&Se.postRender(()=>n(r,s))};class YS extends Pn{constructor(){super(...arguments),this.removePointerDownListener=yt}onPointerDown(r){this.session=new yg(r,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Cg(this.node)})}createPanHandlers(){const{onPanSessionStart:r,onPanStart:s,onPan:o,onPanEnd:a}=this.node.getProps();return{onSessionStart:cp(r),onStart:cp(s),onMove:o,onEnd:(f,c)=>{delete this.session,a&&Se.postRender(()=>a(f,c))}}}mount(){this.removePointerDownListener=Ci(this.node.current,"pointerdown",r=>this.onPointerDown(r))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const lo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function fp(n,r){return r.max===r.min?0:n/(r.max-r.min)*100}const wi={correct:(n,r)=>{if(!r.target)return n;if(typeof n=="string")if(ne.test(n))n=parseFloat(n);else return n;const s=fp(n,r.target.x),o=fp(n,r.target.y);return`${s}% ${o}%`}},GS={correct:(n,{treeScale:r,projectionDelta:s})=>{const o=n,a=En.parse(n);if(a.length>5)return o;const f=En.createTransformer(n),c=typeof a[0]!="number"?1:0,h=s.x.scale*r.x,p=s.y.scale*r.y;a[0+c]/=h,a[1+c]/=p;const g=ke(h,p,.5);return typeof a[2+c]=="number"&&(a[2+c]/=g),typeof a[3+c]=="number"&&(a[3+c]/=g),f(a)}};class qS extends W.Component{componentDidMount(){const{visualElement:r,layoutGroup:s,switchLayoutGroup:o,layoutId:a}=this.props,{projection:f}=r;gx(QS),f&&(s.group&&s.group.add(f),o&&o.register&&a&&o.register(f),f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,onExitComplete:()=>this.safeToRemove()})),lo.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:s,visualElement:o,drag:a,isPresent:f}=this.props,c=o.projection;return c&&(c.isPresent=f,a||r.layoutDependency!==s||s===void 0?c.willUpdate():this.safeToRemove(),r.isPresent!==f&&(f?c.promote():c.relegate()||Se.postRender(()=>{const h=c.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:r}=this.props.visualElement;r&&(r.root.didUpdate(),ku.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:r,layoutGroup:s,switchLayoutGroup:o}=this.props,{projection:a}=r;a&&(a.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(a),o&&o.deregister&&o.deregister(a))}safeToRemove(){const{safeToRemove:r}=this.props;r&&r()}render(){return null}}function kg(n){const[r,s]=Lw(),o=W.useContext(cm);return L.jsx(qS,{...n,layoutGroup:o,switchLayoutGroup:W.useContext(ym),isPresent:r,safeToRemove:s})}const QS={borderRadius:{...wi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wi,borderTopRightRadius:wi,borderBottomLeftRadius:wi,borderBottomRightRadius:wi,boxShadow:GS};function XS(n,r,s){const o=qe(n)?n:_i(n);return o.start(Zu("",o,r,s)),o.animation}function ZS(n){return n instanceof SVGElement&&n.tagName!=="svg"}const JS=(n,r)=>n.depth-r.depth;class eT{constructor(){this.children=[],this.isDirty=!1}add(r){Uu(this.children,r),this.isDirty=!0}remove(r){bu(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(JS),this.isDirty=!1,this.children.forEach(r)}}function tT(n,r){const s=Ht.now(),o=({timestamp:a})=>{const f=a-s;f>=r&&(Tn(o),n(f-r))};return Se.read(o,!0),()=>Tn(o)}const Rg=["TopLeft","TopRight","BottomLeft","BottomRight"],nT=Rg.length,dp=n=>typeof n=="string"?parseFloat(n):n,hp=n=>typeof n=="number"||ne.test(n);function rT(n,r,s,o,a,f){a?(n.opacity=ke(0,s.opacity!==void 0?s.opacity:1,iT(o)),n.opacityExit=ke(r.opacity!==void 0?r.opacity:1,0,sT(o))):f&&(n.opacity=ke(r.opacity!==void 0?r.opacity:1,s.opacity!==void 0?s.opacity:1,o));for(let c=0;cor?1:s(Cr(n,r,o))}function mp(n,r){n.min=r.min,n.max=r.max}function Pt(n,r){mp(n.x,r.x),mp(n.y,r.y)}function gp(n,r){n.translate=r.translate,n.scale=r.scale,n.originPoint=r.originPoint,n.origin=r.origin}function yp(n,r,s,o,a){return n-=r,n=go(n,1/s,o),a!==void 0&&(n=go(n,1/a,o)),n}function oT(n,r=0,s=1,o=.5,a,f=n,c=n){if(bt.test(r)&&(r=parseFloat(r),r=ke(c.min,c.max,r/100)-c.min),typeof r!="number")return;let h=ke(f.min,f.max,o);n===f&&(h-=r),n.min=yp(n.min,r,s,h,a),n.max=yp(n.max,r,s,h,a)}function vp(n,r,[s,o,a],f,c){oT(n,r[s],r[o],r[a],r.scale,f,c)}const lT=["x","scaleX","originX"],aT=["y","scaleY","originY"];function wp(n,r,s,o){vp(n.x,r,lT,s?s.x:void 0,o?o.x:void 0),vp(n.y,r,aT,s?s.y:void 0,o?o.y:void 0)}function xp(n){return n.translate===0&&n.scale===1}function Ag(n){return xp(n.x)&&xp(n.y)}function Sp(n,r){return n.min===r.min&&n.max===r.max}function uT(n,r){return Sp(n.x,r.x)&&Sp(n.y,r.y)}function Tp(n,r){return Math.round(n.min)===Math.round(r.min)&&Math.round(n.max)===Math.round(r.max)}function Ng(n,r){return Tp(n.x,r.x)&&Tp(n.y,r.y)}function Ep(n){return et(n.x)/et(n.y)}function Pp(n,r){return n.translate===r.translate&&n.scale===r.scale&&n.originPoint===r.originPoint}class cT{constructor(){this.members=[]}add(r){Uu(this.members,r),r.scheduleRender()}remove(r){if(bu(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(r){const s=this.members.findIndex(a=>r===a);if(s===0)return!1;let o;for(let a=s;a>=0;a--){const f=this.members[a];if(f.isPresent!==!1){o=f;break}}return o?(this.promote(o),!0):!1}promote(r,s){const o=this.lead;if(r!==o&&(this.prevLead=o,this.lead=r,r.show(),o)){o.instance&&o.scheduleRender(),r.scheduleRender(),r.resumeFrom=o,s&&(r.resumeFrom.preserveOpacity=!0),o.snapshot&&(r.snapshot=o.snapshot,r.snapshot.latestValues=o.animationValues||o.latestValues),r.root&&r.root.isUpdating&&(r.isLayoutDirty=!0);const{crossfade:a}=r.options;a===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(r=>{const{options:s,resumingFrom:o}=r;s.onExitComplete&&s.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(r=>{r.instance&&r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function fT(n,r,s){let o="";const a=n.x.translate/r.x,f=n.y.translate/r.y,c=(s==null?void 0:s.z)||0;if((a||f||c)&&(o=`translate3d(${a}px, ${f}px, ${c}px) `),(r.x!==1||r.y!==1)&&(o+=`scale(${1/r.x}, ${1/r.y}) `),s){const{transformPerspective:g,rotate:y,rotateX:v,rotateY:x,skewX:A,skewY:R}=s;g&&(o=`perspective(${g}px) ${o}`),y&&(o+=`rotate(${y}deg) `),v&&(o+=`rotateX(${v}deg) `),x&&(o+=`rotateY(${x}deg) `),A&&(o+=`skewX(${A}deg) `),R&&(o+=`skewY(${R}deg) `)}const h=n.x.scale*r.x,p=n.y.scale*r.y;return(h!==1||p!==1)&&(o+=`scale(${h}, ${p})`),o||"none"}const zn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ti=typeof window<"u"&&window.MotionDebug!==void 0,Ba=["","X","Y","Z"],dT={visibility:"hidden"},Cp=1e3;let hT=0;function za(n,r,s,o){const{latestValues:a}=r;a[n]&&(s[n]=a[n],r.setStaticValue(n,0),o&&(o[n]=0))}function Lg(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:r}=n.options;if(!r)return;const s=Bm(r);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:a,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",Se,!(a||f))}const{parent:o}=n;o&&!o.hasCheckedOptimisedAppear&&Lg(o)}function _g({attachResizeListener:n,defaultParent:r,measureScroll:s,checkIsScrollRoot:o,resetTransform:a}){return class{constructor(c={},h=r==null?void 0:r()){this.id=hT++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ti&&(zn.totalNodes=zn.resolvedTargetDeltas=zn.recalculatedProjection=0),this.nodes.forEach(gT),this.nodes.forEach(ST),this.nodes.forEach(TT),this.nodes.forEach(yT),Ti&&window.MotionDebug.record(zn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let p=0;pthis.root.updateBlockedByResize=!1;n(c,()=>{this.root.updateBlockedByResize=!0,v&&v(),v=tT(x,250),lo.hasAnimatedSinceResize&&(lo.hasAnimatedSinceResize=!1,this.nodes.forEach(Rp))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&y&&(p||g)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:x,hasRelativeLayoutChanged:A,layout:R})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const k=this.options.transition||y.getDefaultTransition()||RT,{onLayoutAnimationStart:P,onLayoutAnimationComplete:M}=y.getProps(),F=!this.targetLayout||!Ng(this.targetLayout,R),B=!x&&A;if(this.options.layoutRoot||this.resumeFrom||B||x&&(F||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(v,B);const Q={...Fu(k,"layout"),onPlay:P,onComplete:M};(y.shouldReduceMotion||this.options.layoutRoot)&&(Q.delay=0,Q.type=!1),this.startAnimation(Q)}else x||Rp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=R})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Tn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ET),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Lg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!et(this.snapshot.measuredBox.x)&&!et(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let p=0;p{const b=Q/1e3;Dp(v.x,c.x,b),Dp(v.y,c.y,b),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ri(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),CT(this.relativeTarget,this.relativeTargetOrigin,x,b),B&&uT(this.relativeTarget,B)&&(this.isProjectionDirty=!1),B||(B=_e()),Pt(B,this.relativeTarget)),k&&(this.animationValues=y,rT(y,g,this.latestValues,b,F,M)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Tn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Se.update(()=>{lo.hasAnimatedSinceResize=!0,this.currentAnimation=XS(0,Cp,{...c,onUpdate:h=>{this.mixTargetDelta(h),c.onUpdate&&c.onUpdate(h)},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Cp),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:h,target:p,layout:g,latestValues:y}=c;if(!(!h||!p||!g)){if(this!==c&&this.layout&&g&&Mg(this.options.animationType,this.layout.layoutBox,g.layoutBox)){p=this.target||_e();const v=et(this.layout.layoutBox.x);p.x.min=c.target.x.min,p.x.max=p.x.min+v;const x=et(this.layout.layoutBox.y);p.y.min=c.target.y.min,p.y.max=p.y.min+x}Pt(h,p),Er(h,y),ki(this.projectionDeltaWithTransform,this.layoutCorrected,h,y)}}registerSharedNode(c,h){this.sharedNodes.has(c)||this.sharedNodes.set(c,new cT),this.sharedNodes.get(c).add(h);const g=h.options.initialPromotionConfig;h.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(h):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var c;const{layoutId:h}=this.options;return h?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:h}=this.options;return h?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:h,preserveFollowOpacity:p}={}){const g=this.getStack();g&&g.promote(this,p),c&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let h=!1;const{latestValues:p}=c;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(h=!0),!h)return;const g={};p.z&&za("z",c,g,this.animationValues);for(let y=0;y{var h;return(h=c.currentAnimation)===null||h===void 0?void 0:h.stop()}),this.root.nodes.forEach(kp),this.root.sharedNodes.clear()}}}function pT(n){n.updateLayout()}function mT(n){var r;const s=((r=n.resumeFrom)===null||r===void 0?void 0:r.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&s&&n.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:a}=n.layout,{animationType:f}=n.options,c=s.source!==n.layout.source;f==="size"?Ct(v=>{const x=c?s.measuredBox[v]:s.layoutBox[v],A=et(x);x.min=o[v].min,x.max=x.min+A}):Mg(f,s.layoutBox,o)&&Ct(v=>{const x=c?s.measuredBox[v]:s.layoutBox[v],A=et(o[v]);x.max=x.min+A,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[v].max=n.relativeTarget[v].min+A)});const h=Sr();ki(h,o,s.layoutBox);const p=Sr();c?ki(p,n.applyTransform(a,!0),s.measuredBox):ki(p,o,s.layoutBox);const g=!Ag(h);let y=!1;if(!n.resumeFrom){const v=n.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:x,layout:A}=v;if(x&&A){const R=_e();Ri(R,s.layoutBox,x.layoutBox);const k=_e();Ri(k,o,A.layoutBox),Ng(R,k)||(y=!0),v.options.layoutRoot&&(n.relativeTarget=k,n.relativeTargetOrigin=R,n.relativeParent=v)}}}n.notifyListeners("didUpdate",{layout:o,snapshot:s,delta:p,layoutDelta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:y})}else if(n.isLead()){const{onExitComplete:o}=n.options;o&&o()}n.options.transition=void 0}function gT(n){Ti&&zn.totalNodes++,n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function yT(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function vT(n){n.clearSnapshot()}function kp(n){n.clearMeasurements()}function wT(n){n.isLayoutDirty=!1}function xT(n){const{visualElement:r}=n.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),n.resetTransform()}function Rp(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function ST(n){n.resolveTargetDelta()}function TT(n){n.calcProjection()}function ET(n){n.resetSkewAndRotation()}function PT(n){n.removeLeadSnapshot()}function Dp(n,r,s){n.translate=ke(r.translate,0,s),n.scale=ke(r.scale,1,s),n.origin=r.origin,n.originPoint=r.originPoint}function Ap(n,r,s,o){n.min=ke(r.min,s.min,o),n.max=ke(r.max,s.max,o)}function CT(n,r,s,o){Ap(n.x,r.x,s.x,o),Ap(n.y,r.y,s.y,o)}function kT(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const RT={duration:.45,ease:[.4,0,.1,1]},Np=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),Lp=Np("applewebkit/")&&!Np("chrome/")?Math.round:yt;function _p(n){n.min=Lp(n.min),n.max=Lp(n.max)}function DT(n){_p(n.x),_p(n.y)}function Mg(n,r,s){return n==="position"||n==="preserve-aspect"&&!LS(Ep(r),Ep(s),.2)}function AT(n){var r;return n!==n.root&&((r=n.scroll)===null||r===void 0?void 0:r.wasRoot)}const NT=_g({attachResizeListener:(n,r)=>Oi(n,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ua={current:void 0},Og=_g({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!Ua.current){const n=new NT({});n.mount(window),n.setOptions({layoutScroll:!0}),Ua.current=n}return Ua.current},resetTransform:(n,r)=>{n.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),LT={pan:{Feature:YS},drag:{Feature:KS,ProjectionNode:Og,MeasureLayout:kg}};function Mp(n,r,s){const{props:o}=n;n.animationState&&o.whileHover&&n.animationState.setActive("whileHover",s==="Start");const a="onHover"+s,f=o[a];f&&Se.postRender(()=>f(r,zi(r)))}class _T extends Pn{mount(){const{current:r}=this.node;r&&(this.unmount=_x(r,(s,o)=>(Mp(this.node,o,"Start"),a=>Mp(this.node,a,"End"))))}unmount(){}}class MT extends Pn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.node.current.matches(":focus-visible")}catch{r=!0}!r||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Bi(Oi(this.node.current,"focus",()=>this.onFocus()),Oi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Op(n,r,s){const{props:o}=n;n.animationState&&o.whileTap&&n.animationState.setActive("whileTap",s==="Start");const a="onTap"+(s==="End"?"":s),f=o[a];f&&Se.postRender(()=>f(r,zi(r)))}class OT extends Pn{mount(){const{current:r}=this.node;r&&(this.unmount=Vx(r,(s,o)=>(Op(this.node,o,"Start"),(a,{success:f})=>Op(this.node,a,f?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const fu=new WeakMap,ba=new WeakMap,jT=n=>{const r=fu.get(n.target);r&&r(n)},VT=n=>{n.forEach(jT)};function FT({root:n,...r}){const s=n||document;ba.has(s)||ba.set(s,{});const o=ba.get(s),a=JSON.stringify(r);return o[a]||(o[a]=new IntersectionObserver(VT,{root:n,...r})),o[a]}function IT(n,r,s){const o=FT(r);return fu.set(n,s),o.observe(n),()=>{fu.delete(n),o.unobserve(n)}}const BT={some:0,all:1};class zT extends Pn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:r={}}=this.node.getProps(),{root:s,margin:o,amount:a="some",once:f}=r,c={root:s?s.current:void 0,rootMargin:o,threshold:typeof a=="number"?a:BT[a]},h=p=>{const{isIntersecting:g}=p;if(this.isInView===g||(this.isInView=g,f&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:y,onViewportLeave:v}=this.node.getProps(),x=g?y:v;x&&x(p)};return IT(this.node.current,c,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:r,prevProps:s}=this.node;["amount","margin","root"].some(UT(r,s))&&this.startObserver()}unmount(){}}function UT({viewport:n={}},{viewport:r={}}={}){return s=>n[s]!==r[s]}const bT={inView:{Feature:zT},tap:{Feature:OT},focus:{Feature:MT},hover:{Feature:_T}},HT={layout:{ProjectionNode:Og,MeasureLayout:kg}},du={current:null},jg={current:!1};function WT(){if(jg.current=!0,!!Su)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),r=()=>du.current=n.matches;n.addListener(r),r()}else du.current=!1}const $T=[...og,Ye,En],KT=n=>$T.find(sg(n)),jp=new WeakMap;function YT(n,r,s){for(const o in r){const a=r[o],f=s[o];if(qe(a))n.addValue(o,a);else if(qe(f))n.addValue(o,_i(a,{owner:n}));else if(f!==a)if(n.hasValue(o)){const c=n.getValue(o);c.liveStyle===!0?c.jump(a):c.hasAnimated||c.set(a)}else{const c=n.getStaticValue(o);n.addValue(o,_i(c!==void 0?c:a,{owner:n}))}}for(const o in s)r[o]===void 0&&n.removeValue(o);return r}const Vp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class GT{scrapeMotionValuesFromProps(r,s,o){return{}}constructor({parent:r,props:s,presenceContext:o,reducedMotionConfig:a,blockInitialAnimation:f,visualState:c},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=qu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const A=Ht.now();this.renderScheduledAtthis.bindToMotionValue(o,s)),jg.current||WT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:du.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){jp.delete(this.current),this.projection&&this.projection.unmount(),Tn(this.notifyUpdate),Tn(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const s=this.features[r];s&&(s.unmount(),s.isMounted=!1)}this.current=null}bindToMotionValue(r,s){this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)();const o=Kn.has(r),a=s.on("change",h=>{this.latestValues[r]=h,this.props.onUpdate&&Se.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),f=s.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,r,s)),this.valueSubscriptions.set(r,()=>{a(),f(),c&&c(),s.owner&&s.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in kr){const s=kr[r];if(!s)continue;const{isEnabled:o,Feature:a}=s;if(!this.features[r]&&a&&o(this.props)&&(this.features[r]=new a(this)),this.features[r]){const f=this.features[r];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_e()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,s){this.latestValues[r]=s}update(r,s){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let o=0;os.variantChildren.delete(r)}addValue(r,s){const o=this.values.get(r);s!==o&&(o&&this.removeValue(r),this.bindToMotionValue(r,s),this.values.set(r,s),this.latestValues[r]=s.get())}removeValue(r){this.values.delete(r);const s=this.valueSubscriptions.get(r);s&&(s(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,s){if(this.props.values&&this.props.values[r])return this.props.values[r];let o=this.values.get(r);return o===void 0&&s!==void 0&&(o=_i(s===null?void 0:s,{owner:this}),this.addValue(r,o)),o}readValue(r,s){var o;let a=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:(o=this.getBaseTargetFromProps(this.props,r))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,r,this.options);return a!=null&&(typeof a=="string"&&(rg(a)||Gm(a))?a=parseFloat(a):!KT(a)&&En.test(s)&&(a=eg(r,s)),this.setBaseTarget(r,qe(a)?a.get():a)),qe(a)?a.get():a}setBaseTarget(r,s){this.baseTarget[r]=s}getBaseTarget(r){var s;const{initial:o}=this.props;let a;if(typeof o=="string"||typeof o=="object"){const c=Du(this.props,o,(s=this.presenceContext)===null||s===void 0?void 0:s.custom);c&&(a=c[r])}if(o&&a!==void 0)return a;const f=this.getBaseTargetFromProps(this.props,r);return f!==void 0&&!qe(f)?f:this.initialValues[r]!==void 0&&a===void 0?void 0:this.baseTarget[r]}on(r,s){return this.events[r]||(this.events[r]=new Hu),this.events[r].add(s)}notify(r,...s){this.events[r]&&this.events[r].notify(...s)}}class Vg extends GT{constructor(){super(...arguments),this.KeyframeResolver=lg}sortInstanceNodePosition(r,s){return r.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(r,s){return r.style?r.style[s]:void 0}removeValueFromRenderState(r,{vars:s,style:o}){delete s[r],delete o[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;qe(r)&&(this.childSubscription=r.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function qT(n){return window.getComputedStyle(n)}class QT extends Vg{constructor(){super(...arguments),this.type="html",this.renderInstance=Em}readValueFromInstance(r,s){if(Kn.has(s)){const o=Gu(s);return o&&o.default||0}else{const o=qT(r),a=(Au(s)?o.getPropertyValue(s):o[s])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(r,{transformPagePoint:s}){return Pg(r,s)}build(r,s,o){_u(r,s,o.transformTemplate)}scrapeMotionValuesFromProps(r,s,o){return Vu(r,s,o)}}class XT extends Vg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_e}getBaseTargetFromProps(r,s){return r[s]}readValueFromInstance(r,s){if(Kn.has(s)){const o=Gu(s);return o&&o.default||0}return s=Pm.has(s)?s:Cu(s),r.getAttribute(s)}scrapeMotionValuesFromProps(r,s,o){return Rm(r,s,o)}build(r,s,o){Mu(r,s,this.isSVGTag,o.transformTemplate)}renderInstance(r,s,o,a){Cm(r,s,o,a)}mount(r){this.isSVGTag=ju(r.tagName),super.mount(r)}}const ZT=(n,r)=>Ru(n)?new XT(r):new QT(r,{allowProjection:n!==W.Fragment}),JT=Cx({...TS,...bT,...LT,...HT},ZT),yo=zw(JT);function Fg({onClose:n,children:r}){W.useEffect(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow="auto"}),[]);const s=o=>{o.target===o.currentTarget&&n()};return L.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:s,children:L.jsxs(yo.div,{className:"bg-white w-full max-w-xl p-3 rounded-lg shadow-lg relative space-y-4",onClick:o=>o.stopPropagation(),initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.3},children:[r,L.jsx("button",{className:"mt-4 w-full bg-blue-600 text-white py-2 rounded-lg hover:bg-blue-700 transition",onClick:n,children:"닫기"})]})})}function eE({product:n,onClose:r}){const[s,o]=W.useState(!1),{CRET_DTM:a,RTRVL_GRDCD_NM:f,IMG_FILE_PATH:c,PRDTNM:h,RTRVLPRVNS:p,BSSHNM:g,ADDR:y,TELNO:v,BRCDNO:x,FRMLCUNIT:A,MNFDT:R,RTRVLPLANDOC_RTRVLMTHD:k,DISTBTMLMT:P,PRDLST_TYPE:M,PRDLST_CD:F,RTRVLDSUSE_SEQ:B,PRDLST_REPORT_NO:Q,PRDLST_CD_NM:b,LCNS_NO:Z}=n;return L.jsxs(Fg,{onClose:r,children:[L.jsx("h3",{className:"text-sm font-semibold mb-4 text-center",children:h}),L.jsx("div",{className:"relative w-full h-40 sm:h-48 md:h-56 rounded-md overflow-hidden mb-4",children:s?L.jsx("div",{className:"flex items-center justify-center bg-black h-full text-white text-sm",children:"제품 이미지가 없습니다"}):L.jsx("img",{src:c,alt:h,className:"w-full h-full object-cover rounded-md",onError:()=>o(!0)})}),L.jsxs("div",{className:"space-y-3",children:[L.jsxs("p",{className:"text-xs text-gray-500",children:["등록일: ",a]}),L.jsxs("p",{className:"text-xs font-semibold",children:["회수등급: ",L.jsx("span",{className:"text-red-500",children:f}),L.jsxs("div",{className:"tooltip-container inline-block relative z-100 group",children:[L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-4",children:L.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})}),L.jsxs("div",{className:"tooltip absolute bg-black text-white text-xs rounded py-1 px-2 bottom-full left-1/2 transform -translate-x-1/2 mb-2 opacity-0 transition-opacity duration-300 group-hover:opacity-100 whitespace-nowrap",children:[f==="1등급"&&L.jsx("span",{children:"식품등의 섭취 또는 사용으로 인해 인체건강에 미치는 위해영향이 매우 크거나 중대한 위반행위"}),f==="2등급"&&L.jsx("span",{children:"식품등의 섭취 또는 사용으로 인해 인체건강에 미치는 위해영향이 크거나 일시적인 경우"}),f==="3등급"&&L.jsx("span",{children:"식품등의 섭취 또는 사용으로 인해 인체의 건강에 미치는 위해 영향이 비교적 적은 경우"})]})]})]}),L.jsxs("p",{className:"text-xs text-gray-700",children:["회수 사유: ",p]}),L.jsxs("div",{className:"mt-4 border-t pt-3",children:[L.jsx("h4",{className:"text-xs font-bold",children:"업체 정보"}),L.jsxs("p",{className:"text-xs",children:["제조업체명: ",g]}),L.jsxs("p",{className:"text-xs",children:["업체 주소: ",y]}),L.jsxs("p",{className:"text-xs",children:["전화번호: ",v]})]}),L.jsxs("div",{className:"mt-4 border-t pt-3",children:[L.jsx("h4",{className:"text-xs font-bold",children:"제품 정보"}),L.jsxs("p",{className:"text-xs",children:["바코드 번호: ",x]}),L.jsxs("p",{className:"text-xs",children:["포장 단위: ",A]}),L.jsxs("p",{className:"text-xs",children:["제조일자: ",R]}),L.jsxs("p",{className:"text-xs",children:["유통/소비기한: ",P]}),L.jsxs("p",{className:"text-xs",children:["식품분류: ",M]}),L.jsxs("p",{className:"text-xs",children:["품목코드: ",F]}),L.jsxs("p",{className:"text-xs",children:["품목유형(코드명): ",b]}),L.jsxs("p",{className:"text-xs",children:["품목제조보고번호: ",Q]})]}),L.jsxs("div",{className:"mt-4 border-t pt-3",children:[L.jsx("h4",{className:"text-xs font-bold",children:"회수 정보"}),L.jsxs("p",{className:"text-xs",children:["회수 방법: ",k]}),L.jsxs("p",{className:"text-xs",children:["회수/판매중지 일련번호: ",B]}),L.jsxs("p",{className:"text-xs",children:["업체 인허가 번호: ",Z]})]})]})]})}var hu=new Map,to=new WeakMap,Fp=0,tE=void 0;function nE(n){return n?(to.has(n)||(Fp+=1,to.set(n,Fp.toString())),to.get(n)):"0"}function rE(n){return Object.keys(n).sort().filter(r=>n[r]!==void 0).map(r=>`${r}_${r==="root"?nE(n.root):n[r]}`).toString()}function iE(n){const r=rE(n);let s=hu.get(r);if(!s){const o=new Map;let a;const f=new IntersectionObserver(c=>{c.forEach(h=>{var p;const g=h.isIntersecting&&a.some(y=>h.intersectionRatio>=y);n.trackVisibility&&typeof h.isVisible>"u"&&(h.isVisible=g),(p=o.get(h.target))==null||p.forEach(y=>{y(g,h)})})},n);a=f.thresholds||(Array.isArray(n.threshold)?n.threshold:[n.threshold||0]),s={id:r,observer:f,elements:o},hu.set(r,s)}return s}function sE(n,r,s={},o=tE){if(typeof window.IntersectionObserver>"u"&&o!==void 0){const p=n.getBoundingClientRect();return r(o,{isIntersecting:o,target:n,intersectionRatio:typeof s.threshold=="number"?s.threshold:0,time:0,boundingClientRect:p,intersectionRect:p,rootBounds:p}),()=>{}}const{id:a,observer:f,elements:c}=iE(s),h=c.get(n)||[];return c.has(n)||c.set(n,h),h.push(r),f.observe(n),function(){h.splice(h.indexOf(r),1),h.length===0&&(c.delete(n),f.unobserve(n)),c.size===0&&(f.disconnect(),hu.delete(a))}}function oE({threshold:n,delay:r,trackVisibility:s,rootMargin:o,root:a,triggerOnce:f,skip:c,initialInView:h,fallbackInView:p,onChange:g}={}){var y;const[v,x]=W.useState(null),A=W.useRef(g),[R,k]=W.useState({inView:!!h,entry:void 0});A.current=g,W.useEffect(()=>{if(c||!v)return;let B;return B=sE(v,(Q,b)=>{k({inView:Q,entry:b}),A.current&&A.current(Q,b),b.isIntersecting&&f&&B&&(B(),B=void 0)},{root:a,rootMargin:o,threshold:n,trackVisibility:s,delay:r},p),()=>{B&&B()}},[Array.isArray(n)?n.toString():n,v,a,o,f,c,s,p,r]);const P=(y=R.entry)==null?void 0:y.target,M=W.useRef(void 0);!v&&P&&!f&&!c&&M.current!==P&&(M.current=P,k({inView:!!h,entry:void 0}));const F=[x,R.inView,R.entry];return F.ref=F[0],F.inView=F[1],F.entry=F[2],F}function Ig({setOpenModal:n,children:r,openModal:s,CardDetail:o,product:a}){const{ref:f,inView:c}=oE({triggerOnce:!0,threshold:.5});return L.jsxs(L.Fragment,{children:[L.jsxs(yo.div,{ref:f,className:"bg-zinc-50 w-full h-90 p-4 rounded-lg shadow-md flex justify-center flex-col space-y-2 hover:scale-105 hover:shadow-xl transition-all duration-300 cursor-pointer",onClick:()=>n(!0),initial:{opacity:0,y:10},animate:{opacity:c?1:0,y:c?0:10},transition:{duration:.2},children:[r," "]}),s&&L.jsx(o,{product:a,onClose:()=>n(!1)})]})}function lE({product:n}){const{CRET_DTM:r,RTRVL_GRDCD_NM:s,IMG_FILE_PATH:o,PRDTNM:a,RTRVLPRVNS:f}=n,[c,h]=W.useState(!1),[p,g]=W.useState(!1);return L.jsxs(Ig,{openModal:p,setOpenModal:g,CardDetail:eE,product:n,children:[L.jsx("div",{className:"text-sm text-gray-500",children:r.split(" ")[0]}),L.jsx("div",{className:"relative w-full h-44 rounded-md overflow-hidden",children:c?L.jsx("div",{className:"flex items-center justify-center bg-black h-full text-white text-sm",children:"제품 이미지가 없습니다"}):L.jsx("img",{src:o,alt:a,className:"w-full h-full object-cover rounded-md",onError:()=>h(!0)})}),L.jsxs("div",{className:` + as expected. Check README.md for usage'`)},r.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},r.prototype.componentDidUpdate=function(s){this.props.dataLength!==s.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},r.getDerivedStateFromProps=function(s,o){var a=s.dataLength!==o.prevDataLength;return a?Ei(Ei({},o),{prevDataLength:s.dataLength}):null},r.prototype.isElementAtTop=function(s,o){o===void 0&&(o=.8);var a=s===document.body||s===document.documentElement?window.screen.availHeight:s.clientHeight,f=oh(o);return f.unit===Pr.Pixel?s.scrollTop<=f.value+a-s.scrollHeight+1:s.scrollTop<=f.value/100+a-s.scrollHeight+1},r.prototype.isElementAtBottom=function(s,o){o===void 0&&(o=.8);var a=s===document.body||s===document.documentElement?window.screen.availHeight:s.clientHeight,f=oh(o);return f.unit===Pr.Pixel?s.scrollTop+a>=s.scrollHeight-f.value:s.scrollTop+a>=f.value/100*s.scrollHeight},r.prototype.render=function(){var s=this,o=Ei({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),a=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),f=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return vr.createElement("div",{style:f,className:"infinite-scroll-component__outerdiv"},vr.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(c){return s._infScroll=c},style:o},this.props.pullDownToRefresh&&vr.createElement("div",{style:{position:"relative"},ref:function(c){return s._pullDown=c}},vr.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!a&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},r}(H.Component);function bp(n,r){return function(){return n.apply(r,arguments)}}const{toString:Qv}=Object.prototype,{getPrototypeOf:mu}=Object,vo=(n=>r=>{const s=Qv.call(r);return n[s]||(n[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Ot=n=>(n=n.toLowerCase(),r=>vo(r)===n),wo=n=>r=>typeof r===n,{isArray:Dr}=Array,Di=wo("undefined");function qv(n){return n!==null&&!Di(n)&&n.constructor!==null&&!Di(n.constructor)&>(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Hp=Ot("ArrayBuffer");function Xv(n){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(n):r=n&&n.buffer&&Hp(n.buffer),r}const Zv=wo("string"),gt=wo("function"),Wp=wo("number"),xo=n=>n!==null&&typeof n=="object",Jv=n=>n===!0||n===!1,no=n=>{if(vo(n)!=="object")return!1;const r=mu(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},e0=Ot("Date"),t0=Ot("File"),n0=Ot("Blob"),r0=Ot("FileList"),i0=n=>xo(n)&>(n.pipe),s0=n=>{let r;return n&&(typeof FormData=="function"&&n instanceof FormData||gt(n.append)&&((r=vo(n))==="formdata"||r==="object"&>(n.toString)&&n.toString()==="[object FormData]"))},o0=Ot("URLSearchParams"),[l0,a0,u0,c0]=["ReadableStream","Request","Response","Headers"].map(Ot),f0=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Oi(n,r,{allOwnKeys:s=!1}={}){if(n===null||typeof n>"u")return;let o,a;if(typeof n!="object"&&(n=[n]),Dr(n))for(o=0,a=n.length;o0;)if(a=s[o],r===a.toLowerCase())return a;return null}const Un=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Kp=n=>!Di(n)&&n!==Un;function Wa(){const{caseless:n}=Kp(this)&&this||{},r={},s=(o,a)=>{const f=n&&$p(r,a)||a;no(r[f])&&no(o)?r[f]=Wa(r[f],o):no(o)?r[f]=Wa({},o):Dr(o)?r[f]=o.slice():r[f]=o};for(let o=0,a=arguments.length;o(Oi(r,(a,f)=>{s&>(a)?n[f]=bp(a,s):n[f]=a},{allOwnKeys:o}),n),h0=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),p0=(n,r,s,o)=>{n.prototype=Object.create(r.prototype,o),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:r.prototype}),s&&Object.assign(n.prototype,s)},m0=(n,r,s,o)=>{let a,f,c;const h={};if(r=r||{},n==null)return r;do{for(a=Object.getOwnPropertyNames(n),f=a.length;f-- >0;)c=a[f],(!o||o(c,n,r))&&!h[c]&&(r[c]=n[c],h[c]=!0);n=s!==!1&&mu(n)}while(n&&(!s||s(n,r))&&n!==Object.prototype);return r},g0=(n,r,s)=>{n=String(n),(s===void 0||s>n.length)&&(s=n.length),s-=r.length;const o=n.indexOf(r,s);return o!==-1&&o===s},y0=n=>{if(!n)return null;if(Dr(n))return n;let r=n.length;if(!Wp(r))return null;const s=new Array(r);for(;r-- >0;)s[r]=n[r];return s},v0=(n=>r=>n&&r instanceof n)(typeof Uint8Array<"u"&&mu(Uint8Array)),w0=(n,r)=>{const o=(n&&n[Symbol.iterator]).call(n);let a;for(;(a=o.next())&&!a.done;){const f=a.value;r.call(n,f[0],f[1])}},x0=(n,r)=>{let s;const o=[];for(;(s=n.exec(r))!==null;)o.push(s);return o},S0=Ot("HTMLFormElement"),T0=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,o,a){return o.toUpperCase()+a}),lh=(({hasOwnProperty:n})=>(r,s)=>n.call(r,s))(Object.prototype),E0=Ot("RegExp"),Yp=(n,r)=>{const s=Object.getOwnPropertyDescriptors(n),o={};Oi(s,(a,f)=>{let c;(c=r(a,f,n))!==!1&&(o[f]=c||a)}),Object.defineProperties(n,o)},P0=n=>{Yp(n,(r,s)=>{if(gt(n)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const o=n[s];if(gt(o)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},C0=(n,r)=>{const s={},o=a=>{a.forEach(f=>{s[f]=!0})};return Dr(n)?o(n):o(String(n).split(r)),s},R0=()=>{},k0=(n,r)=>n!=null&&Number.isFinite(n=+n)?n:r,ka="abcdefghijklmnopqrstuvwxyz",ah="0123456789",Gp={DIGIT:ah,ALPHA:ka,ALPHA_DIGIT:ka+ka.toUpperCase()+ah},D0=(n=16,r=Gp.ALPHA_DIGIT)=>{let s="";const{length:o}=r;for(;n--;)s+=r[Math.random()*o|0];return s};function N0(n){return!!(n&>(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const A0=n=>{const r=new Array(10),s=(o,a)=>{if(xo(o)){if(r.indexOf(o)>=0)return;if(!("toJSON"in o)){r[a]=o;const f=Dr(o)?[]:{};return Oi(o,(c,h)=>{const p=s(c,a+1);!Di(p)&&(f[h]=p)}),r[a]=void 0,f}}return o};return s(n,0)},_0=Ot("AsyncFunction"),L0=n=>n&&(xo(n)||gt(n))&>(n.then)&>(n.catch),Qp=((n,r)=>n?setImmediate:r?((s,o)=>(Un.addEventListener("message",({source:a,data:f})=>{a===Un&&f===s&&o.length&&o.shift()()},!1),a=>{o.push(a),Un.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",gt(Un.postMessage)),M0=typeof queueMicrotask<"u"?queueMicrotask.bind(Un):typeof process<"u"&&process.nextTick||Qp,L={isArray:Dr,isArrayBuffer:Hp,isBuffer:qv,isFormData:s0,isArrayBufferView:Xv,isString:Zv,isNumber:Wp,isBoolean:Jv,isObject:xo,isPlainObject:no,isReadableStream:l0,isRequest:a0,isResponse:u0,isHeaders:c0,isUndefined:Di,isDate:e0,isFile:t0,isBlob:n0,isRegExp:E0,isFunction:gt,isStream:i0,isURLSearchParams:o0,isTypedArray:v0,isFileList:r0,forEach:Oi,merge:Wa,extend:d0,trim:f0,stripBOM:h0,inherits:p0,toFlatObject:m0,kindOf:vo,kindOfTest:Ot,endsWith:g0,toArray:y0,forEachEntry:w0,matchAll:x0,isHTMLForm:S0,hasOwnProperty:lh,hasOwnProp:lh,reduceDescriptors:Yp,freezeMethods:P0,toObjectSet:C0,toCamelCase:T0,noop:R0,toFiniteNumber:k0,findKey:$p,global:Un,isContextDefined:Kp,ALPHABET:Gp,generateString:D0,isSpecCompliantForm:N0,toJSONObject:A0,isAsyncFn:_0,isThenable:L0,setImmediate:Qp,asap:M0};function ie(n,r,s,o,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",r&&(this.code=r),s&&(this.config=s),o&&(this.request=o),a&&(this.response=a,this.status=a.status?a.status:null)}L.inherits(ie,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L.toJSONObject(this.config),code:this.code,status:this.status}}});const qp=ie.prototype,Xp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{Xp[n]={value:n}});Object.defineProperties(ie,Xp);Object.defineProperty(qp,"isAxiosError",{value:!0});ie.from=(n,r,s,o,a,f)=>{const c=Object.create(qp);return L.toFlatObject(n,c,function(p){return p!==Error.prototype},h=>h!=="isAxiosError"),ie.call(c,n.message,r,s,o,a),c.cause=n,c.name=n.name,f&&Object.assign(c,f),c};const j0=null;function $a(n){return L.isPlainObject(n)||L.isArray(n)}function Zp(n){return L.endsWith(n,"[]")?n.slice(0,-2):n}function uh(n,r,s){return n?n.concat(r).map(function(a,f){return a=Zp(a),!s&&f?"["+a+"]":a}).join(s?".":""):r}function O0(n){return L.isArray(n)&&!n.some($a)}const V0=L.toFlatObject(L,{},null,function(r){return/^is[A-Z]/.test(r)});function So(n,r,s){if(!L.isObject(n))throw new TypeError("target must be an object");r=r||new FormData,s=L.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,P){return!L.isUndefined(P[C])});const o=s.metaTokens,a=s.visitor||y,f=s.dots,c=s.indexes,p=(s.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(r);if(!L.isFunction(a))throw new TypeError("visitor must be a function");function m(k){if(k===null)return"";if(L.isDate(k))return k.toISOString();if(!p&&L.isBlob(k))throw new ie("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(k)||L.isTypedArray(k)?p&&typeof Blob=="function"?new Blob([k]):Buffer.from(k):k}function y(k,C,P){let M=k;if(k&&!P&&typeof k=="object"){if(L.endsWith(C,"{}"))C=o?C:C.slice(0,-2),k=JSON.stringify(k);else if(L.isArray(k)&&O0(k)||(L.isFileList(k)||L.endsWith(C,"[]"))&&(M=L.toArray(k)))return C=Zp(C),M.forEach(function(B,q){!(L.isUndefined(B)||B===null)&&r.append(c===!0?uh([C],q,f):c===null?C:C+"[]",m(B))}),!1}return $a(k)?!0:(r.append(uh(P,C,f),m(k)),!1)}const v=[],x=Object.assign(V0,{defaultVisitor:y,convertValue:m,isVisitable:$a});function N(k,C){if(!L.isUndefined(k)){if(v.indexOf(k)!==-1)throw Error("Circular reference detected in "+C.join("."));v.push(k),L.forEach(k,function(M,F){(!(L.isUndefined(M)||M===null)&&a.call(r,M,L.isString(F)?F.trim():F,C,x))===!0&&N(M,C?C.concat(F):[F])}),v.pop()}}if(!L.isObject(n))throw new TypeError("data must be an object");return N(n),r}function ch(n){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(o){return r[o]})}function gu(n,r){this._pairs=[],n&&So(n,this,r)}const Jp=gu.prototype;Jp.append=function(r,s){this._pairs.push([r,s])};Jp.toString=function(r){const s=r?function(o){return r.call(this,o,ch)}:ch;return this._pairs.map(function(a){return s(a[0])+"="+s(a[1])},"").join("&")};function F0(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function em(n,r,s){if(!r)return n;const o=s&&s.encode||F0;L.isFunction(s)&&(s={serialize:s});const a=s&&s.serialize;let f;if(a?f=a(r,s):f=L.isURLSearchParams(r)?r.toString():new gu(r,s).toString(o),f){const c=n.indexOf("#");c!==-1&&(n=n.slice(0,c)),n+=(n.indexOf("?")===-1?"?":"&")+f}return n}class fh{constructor(){this.handlers=[]}use(r,s,o){return this.handlers.push({fulfilled:r,rejected:s,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){L.forEach(this.handlers,function(o){o!==null&&r(o)})}}const tm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},I0=typeof URLSearchParams<"u"?URLSearchParams:gu,B0=typeof FormData<"u"?FormData:null,z0=typeof Blob<"u"?Blob:null,U0={isBrowser:!0,classes:{URLSearchParams:I0,FormData:B0,Blob:z0},protocols:["http","https","file","blob","url","data"]},yu=typeof window<"u"&&typeof document<"u",Ka=typeof navigator=="object"&&navigator||void 0,b0=yu&&(!Ka||["ReactNative","NativeScript","NS"].indexOf(Ka.product)<0),H0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",W0=yu&&window.location.href||"http://localhost",$0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:yu,hasStandardBrowserEnv:b0,hasStandardBrowserWebWorkerEnv:H0,navigator:Ka,origin:W0},Symbol.toStringTag,{value:"Module"})),Ge={...$0,...U0};function K0(n,r){return So(n,new Ge.classes.URLSearchParams,Object.assign({visitor:function(s,o,a,f){return Ge.isNode&&L.isBuffer(s)?(this.append(o,s.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)}},r))}function Y0(n){return L.matchAll(/\w+|\[(\w*)]/g,n).map(r=>r[0]==="[]"?"":r[1]||r[0])}function G0(n){const r={},s=Object.keys(n);let o;const a=s.length;let f;for(o=0;o=s.length;return c=!c&&L.isArray(a)?a.length:c,p?(L.hasOwnProp(a,c)?a[c]=[a[c],o]:a[c]=o,!h):((!a[c]||!L.isObject(a[c]))&&(a[c]=[]),r(s,o,a[c],f)&&L.isArray(a[c])&&(a[c]=G0(a[c])),!h)}if(L.isFormData(n)&&L.isFunction(n.entries)){const s={};return L.forEachEntry(n,(o,a)=>{r(Y0(o),a,s,0)}),s}return null}function Q0(n,r,s){if(L.isString(n))try{return(r||JSON.parse)(n),L.trim(n)}catch(o){if(o.name!=="SyntaxError")throw o}return(0,JSON.stringify)(n)}const Vi={transitional:tm,adapter:["xhr","http","fetch"],transformRequest:[function(r,s){const o=s.getContentType()||"",a=o.indexOf("application/json")>-1,f=L.isObject(r);if(f&&L.isHTMLForm(r)&&(r=new FormData(r)),L.isFormData(r))return a?JSON.stringify(nm(r)):r;if(L.isArrayBuffer(r)||L.isBuffer(r)||L.isStream(r)||L.isFile(r)||L.isBlob(r)||L.isReadableStream(r))return r;if(L.isArrayBufferView(r))return r.buffer;if(L.isURLSearchParams(r))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let h;if(f){if(o.indexOf("application/x-www-form-urlencoded")>-1)return K0(r,this.formSerializer).toString();if((h=L.isFileList(r))||o.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return So(h?{"files[]":r}:r,p&&new p,this.formSerializer)}}return f||a?(s.setContentType("application/json",!1),Q0(r)):r}],transformResponse:[function(r){const s=this.transitional||Vi.transitional,o=s&&s.forcedJSONParsing,a=this.responseType==="json";if(L.isResponse(r)||L.isReadableStream(r))return r;if(r&&L.isString(r)&&(o&&!this.responseType||a)){const c=!(s&&s.silentJSONParsing)&&a;try{return JSON.parse(r)}catch(h){if(c)throw h.name==="SyntaxError"?ie.from(h,ie.ERR_BAD_RESPONSE,this,null,this.response):h}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ge.classes.FormData,Blob:Ge.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],n=>{Vi.headers[n]={}});const q0=L.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),X0=n=>{const r={};let s,o,a;return n&&n.split(` +`).forEach(function(c){a=c.indexOf(":"),s=c.substring(0,a).trim().toLowerCase(),o=c.substring(a+1).trim(),!(!s||r[s]&&q0[s])&&(s==="set-cookie"?r[s]?r[s].push(o):r[s]=[o]:r[s]=r[s]?r[s]+", "+o:o)}),r},dh=Symbol("internals");function vi(n){return n&&String(n).trim().toLowerCase()}function ro(n){return n===!1||n==null?n:L.isArray(n)?n.map(ro):String(n)}function Z0(n){const r=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=s.exec(n);)r[o[1]]=o[2];return r}const J0=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Da(n,r,s,o,a){if(L.isFunction(o))return o.call(this,r,s);if(a&&(r=s),!!L.isString(r)){if(L.isString(o))return r.indexOf(o)!==-1;if(L.isRegExp(o))return o.test(r)}}function ew(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,s,o)=>s.toUpperCase()+o)}function tw(n,r){const s=L.toCamelCase(" "+r);["get","set","has"].forEach(o=>{Object.defineProperty(n,o+s,{value:function(a,f,c){return this[o].call(this,r,a,f,c)},configurable:!0})})}class ut{constructor(r){r&&this.set(r)}set(r,s,o){const a=this;function f(h,p,m){const y=vi(p);if(!y)throw new Error("header name must be a non-empty string");const v=L.findKey(a,y);(!v||a[v]===void 0||m===!0||m===void 0&&a[v]!==!1)&&(a[v||p]=ro(h))}const c=(h,p)=>L.forEach(h,(m,y)=>f(m,y,p));if(L.isPlainObject(r)||r instanceof this.constructor)c(r,s);else if(L.isString(r)&&(r=r.trim())&&!J0(r))c(X0(r),s);else if(L.isHeaders(r))for(const[h,p]of r.entries())f(p,h,o);else r!=null&&f(s,r,o);return this}get(r,s){if(r=vi(r),r){const o=L.findKey(this,r);if(o){const a=this[o];if(!s)return a;if(s===!0)return Z0(a);if(L.isFunction(s))return s.call(this,a,o);if(L.isRegExp(s))return s.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,s){if(r=vi(r),r){const o=L.findKey(this,r);return!!(o&&this[o]!==void 0&&(!s||Da(this,this[o],o,s)))}return!1}delete(r,s){const o=this;let a=!1;function f(c){if(c=vi(c),c){const h=L.findKey(o,c);h&&(!s||Da(o,o[h],h,s))&&(delete o[h],a=!0)}}return L.isArray(r)?r.forEach(f):f(r),a}clear(r){const s=Object.keys(this);let o=s.length,a=!1;for(;o--;){const f=s[o];(!r||Da(this,this[f],f,r,!0))&&(delete this[f],a=!0)}return a}normalize(r){const s=this,o={};return L.forEach(this,(a,f)=>{const c=L.findKey(o,f);if(c){s[c]=ro(a),delete s[f];return}const h=r?ew(f):String(f).trim();h!==f&&delete s[f],s[h]=ro(a),o[h]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const s=Object.create(null);return L.forEach(this,(o,a)=>{o!=null&&o!==!1&&(s[a]=r&&L.isArray(o)?o.join(", "):o)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,s])=>r+": "+s).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...s){const o=new this(r);return s.forEach(a=>o.set(a)),o}static accessor(r){const o=(this[dh]=this[dh]={accessors:{}}).accessors,a=this.prototype;function f(c){const h=vi(c);o[h]||(tw(a,c),o[h]=!0)}return L.isArray(r)?r.forEach(f):f(r),this}}ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(ut.prototype,({value:n},r)=>{let s=r[0].toUpperCase()+r.slice(1);return{get:()=>n,set(o){this[s]=o}}});L.freezeMethods(ut);function Na(n,r){const s=this||Vi,o=r||s,a=ut.from(o.headers);let f=o.data;return L.forEach(n,function(h){f=h.call(s,f,a.normalize(),r?r.status:void 0)}),a.normalize(),f}function rm(n){return!!(n&&n.__CANCEL__)}function Nr(n,r,s){ie.call(this,n??"canceled",ie.ERR_CANCELED,r,s),this.name="CanceledError"}L.inherits(Nr,ie,{__CANCEL__:!0});function im(n,r,s){const o=s.config.validateStatus;!s.status||!o||o(s.status)?n(s):r(new ie("Request failed with status code "+s.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function nw(n){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return r&&r[1]||""}function rw(n,r){n=n||10;const s=new Array(n),o=new Array(n);let a=0,f=0,c;return r=r!==void 0?r:1e3,function(p){const m=Date.now(),y=o[f];c||(c=m),s[a]=p,o[a]=m;let v=f,x=0;for(;v!==a;)x+=s[v++],v=v%n;if(a=(a+1)%n,a===f&&(f=(f+1)%n),m-c{s=y,a=null,f&&(clearTimeout(f),f=null),n.apply(null,m)};return[(...m)=>{const y=Date.now(),v=y-s;v>=o?c(m,y):(a=m,f||(f=setTimeout(()=>{f=null,c(a)},o-v)))},()=>a&&c(a)]}const ao=(n,r,s=3)=>{let o=0;const a=rw(50,250);return iw(f=>{const c=f.loaded,h=f.lengthComputable?f.total:void 0,p=c-o,m=a(p),y=c<=h;o=c;const v={loaded:c,total:h,progress:h?c/h:void 0,bytes:p,rate:m||void 0,estimated:m&&h&&y?(h-c)/m:void 0,event:f,lengthComputable:h!=null,[r?"download":"upload"]:!0};n(v)},s)},hh=(n,r)=>{const s=n!=null;return[o=>r[0]({lengthComputable:s,total:n,loaded:o}),r[1]]},ph=n=>(...r)=>L.asap(()=>n(...r)),sw=Ge.hasStandardBrowserEnv?((n,r)=>s=>(s=new URL(s,Ge.origin),n.protocol===s.protocol&&n.host===s.host&&(r||n.port===s.port)))(new URL(Ge.origin),Ge.navigator&&/(msie|trident)/i.test(Ge.navigator.userAgent)):()=>!0,ow=Ge.hasStandardBrowserEnv?{write(n,r,s,o,a,f){const c=[n+"="+encodeURIComponent(r)];L.isNumber(s)&&c.push("expires="+new Date(s).toGMTString()),L.isString(o)&&c.push("path="+o),L.isString(a)&&c.push("domain="+a),f===!0&&c.push("secure"),document.cookie=c.join("; ")},read(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function lw(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function aw(n,r){return r?n.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):n}function sm(n,r){return n&&!lw(r)?aw(n,r):r}const mh=n=>n instanceof ut?{...n}:n;function $n(n,r){r=r||{};const s={};function o(m,y,v,x){return L.isPlainObject(m)&&L.isPlainObject(y)?L.merge.call({caseless:x},m,y):L.isPlainObject(y)?L.merge({},y):L.isArray(y)?y.slice():y}function a(m,y,v,x){if(L.isUndefined(y)){if(!L.isUndefined(m))return o(void 0,m,v,x)}else return o(m,y,v,x)}function f(m,y){if(!L.isUndefined(y))return o(void 0,y)}function c(m,y){if(L.isUndefined(y)){if(!L.isUndefined(m))return o(void 0,m)}else return o(void 0,y)}function h(m,y,v){if(v in r)return o(m,y);if(v in n)return o(void 0,m)}const p={url:f,method:f,data:f,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:h,headers:(m,y,v)=>a(mh(m),mh(y),v,!0)};return L.forEach(Object.keys(Object.assign({},n,r)),function(y){const v=p[y]||a,x=v(n[y],r[y],y);L.isUndefined(x)&&v!==h||(s[y]=x)}),s}const om=n=>{const r=$n({},n);let{data:s,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:f,headers:c,auth:h}=r;r.headers=c=ut.from(c),r.url=em(sm(r.baseURL,r.url),n.params,n.paramsSerializer),h&&c.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?unescape(encodeURIComponent(h.password)):"")));let p;if(L.isFormData(s)){if(Ge.hasStandardBrowserEnv||Ge.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((p=c.getContentType())!==!1){const[m,...y]=p?p.split(";").map(v=>v.trim()).filter(Boolean):[];c.setContentType([m||"multipart/form-data",...y].join("; "))}}if(Ge.hasStandardBrowserEnv&&(o&&L.isFunction(o)&&(o=o(r)),o||o!==!1&&sw(r.url))){const m=a&&f&&ow.read(f);m&&c.set(a,m)}return r},uw=typeof XMLHttpRequest<"u",cw=uw&&function(n){return new Promise(function(s,o){const a=om(n);let f=a.data;const c=ut.from(a.headers).normalize();let{responseType:h,onUploadProgress:p,onDownloadProgress:m}=a,y,v,x,N,k;function C(){N&&N(),k&&k(),a.cancelToken&&a.cancelToken.unsubscribe(y),a.signal&&a.signal.removeEventListener("abort",y)}let P=new XMLHttpRequest;P.open(a.method.toUpperCase(),a.url,!0),P.timeout=a.timeout;function M(){if(!P)return;const B=ut.from("getAllResponseHeaders"in P&&P.getAllResponseHeaders()),b={data:!h||h==="text"||h==="json"?P.responseText:P.response,status:P.status,statusText:P.statusText,headers:B,config:n,request:P};im(function(se){s(se),C()},function(se){o(se),C()},b),P=null}"onloadend"in P?P.onloadend=M:P.onreadystatechange=function(){!P||P.readyState!==4||P.status===0&&!(P.responseURL&&P.responseURL.indexOf("file:")===0)||setTimeout(M)},P.onabort=function(){P&&(o(new ie("Request aborted",ie.ECONNABORTED,n,P)),P=null)},P.onerror=function(){o(new ie("Network Error",ie.ERR_NETWORK,n,P)),P=null},P.ontimeout=function(){let q=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const b=a.transitional||tm;a.timeoutErrorMessage&&(q=a.timeoutErrorMessage),o(new ie(q,b.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,n,P)),P=null},f===void 0&&c.setContentType(null),"setRequestHeader"in P&&L.forEach(c.toJSON(),function(q,b){P.setRequestHeader(b,q)}),L.isUndefined(a.withCredentials)||(P.withCredentials=!!a.withCredentials),h&&h!=="json"&&(P.responseType=a.responseType),m&&([x,k]=ao(m,!0),P.addEventListener("progress",x)),p&&P.upload&&([v,N]=ao(p),P.upload.addEventListener("progress",v),P.upload.addEventListener("loadend",N)),(a.cancelToken||a.signal)&&(y=B=>{P&&(o(!B||B.type?new Nr(null,n,P):B),P.abort(),P=null)},a.cancelToken&&a.cancelToken.subscribe(y),a.signal&&(a.signal.aborted?y():a.signal.addEventListener("abort",y)));const F=nw(a.url);if(F&&Ge.protocols.indexOf(F)===-1){o(new ie("Unsupported protocol "+F+":",ie.ERR_BAD_REQUEST,n));return}P.send(f||null)})},fw=(n,r)=>{const{length:s}=n=n?n.filter(Boolean):[];if(r||s){let o=new AbortController,a;const f=function(m){if(!a){a=!0,h();const y=m instanceof Error?m:this.reason;o.abort(y instanceof ie?y:new Nr(y instanceof Error?y.message:y))}};let c=r&&setTimeout(()=>{c=null,f(new ie(`timeout ${r} of ms exceeded`,ie.ETIMEDOUT))},r);const h=()=>{n&&(c&&clearTimeout(c),c=null,n.forEach(m=>{m.unsubscribe?m.unsubscribe(f):m.removeEventListener("abort",f)}),n=null)};n.forEach(m=>m.addEventListener("abort",f));const{signal:p}=o;return p.unsubscribe=()=>L.asap(h),p}},dw=function*(n,r){let s=n.byteLength;if(s{const a=hw(n,r);let f=0,c,h=p=>{c||(c=!0,o&&o(p))};return new ReadableStream({async pull(p){try{const{done:m,value:y}=await a.next();if(m){h(),p.close();return}let v=y.byteLength;if(s){let x=f+=v;s(x)}p.enqueue(new Uint8Array(y))}catch(m){throw h(m),m}},cancel(p){return h(p),a.return()}},{highWaterMark:2})},To=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",lm=To&&typeof ReadableStream=="function",mw=To&&(typeof TextEncoder=="function"?(n=>r=>n.encode(r))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),am=(n,...r)=>{try{return!!n(...r)}catch{return!1}},gw=lm&&am(()=>{let n=!1;const r=new Request(Ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!r}),yh=64*1024,Ya=lm&&am(()=>L.isReadableStream(new Response("").body)),uo={stream:Ya&&(n=>n.body)};To&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!uo[r]&&(uo[r]=L.isFunction(n[r])?s=>s[r]():(s,o)=>{throw new ie(`Response type '${r}' is not supported`,ie.ERR_NOT_SUPPORT,o)})})})(new Response);const yw=async n=>{if(n==null)return 0;if(L.isBlob(n))return n.size;if(L.isSpecCompliantForm(n))return(await new Request(Ge.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(L.isArrayBufferView(n)||L.isArrayBuffer(n))return n.byteLength;if(L.isURLSearchParams(n)&&(n=n+""),L.isString(n))return(await mw(n)).byteLength},vw=async(n,r)=>{const s=L.toFiniteNumber(n.getContentLength());return s??yw(r)},ww=To&&(async n=>{let{url:r,method:s,data:o,signal:a,cancelToken:f,timeout:c,onDownloadProgress:h,onUploadProgress:p,responseType:m,headers:y,withCredentials:v="same-origin",fetchOptions:x}=om(n);m=m?(m+"").toLowerCase():"text";let N=fw([a,f&&f.toAbortSignal()],c),k;const C=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let P;try{if(p&&gw&&s!=="get"&&s!=="head"&&(P=await vw(y,o))!==0){let b=new Request(r,{method:"POST",body:o,duplex:"half"}),Z;if(L.isFormData(o)&&(Z=b.headers.get("content-type"))&&y.setContentType(Z),b.body){const[se,X]=hh(P,ao(ph(p)));o=gh(b.body,yh,se,X)}}L.isString(v)||(v=v?"include":"omit");const M="credentials"in Request.prototype;k=new Request(r,{...x,signal:N,method:s.toUpperCase(),headers:y.normalize().toJSON(),body:o,duplex:"half",credentials:M?v:void 0});let F=await fetch(k);const B=Ya&&(m==="stream"||m==="response");if(Ya&&(h||B&&C)){const b={};["status","statusText","headers"].forEach(ge=>{b[ge]=F[ge]});const Z=L.toFiniteNumber(F.headers.get("content-length")),[se,X]=h&&hh(Z,ao(ph(h),!0))||[];F=new Response(gh(F.body,yh,se,()=>{X&&X(),C&&C()}),b)}m=m||"text";let q=await uo[L.findKey(uo,m)||"text"](F,n);return!B&&C&&C(),await new Promise((b,Z)=>{im(b,Z,{data:q,headers:ut.from(F.headers),status:F.status,statusText:F.statusText,config:n,request:k})})}catch(M){throw C&&C(),M&&M.name==="TypeError"&&/fetch/i.test(M.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,n,k),{cause:M.cause||M}):ie.from(M,M&&M.code,n,k)}}),Ga={http:j0,xhr:cw,fetch:ww};L.forEach(Ga,(n,r)=>{if(n){try{Object.defineProperty(n,"name",{value:r})}catch{}Object.defineProperty(n,"adapterName",{value:r})}});const vh=n=>`- ${n}`,xw=n=>L.isFunction(n)||n===null||n===!1,um={getAdapter:n=>{n=L.isArray(n)?n:[n];const{length:r}=n;let s,o;const a={};for(let f=0;f`adapter ${h} `+(p===!1?"is not supported by the environment":"is not available in the build"));let c=r?f.length>1?`since : +`+f.map(vh).join(` +`):" "+vh(f[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return o},adapters:Ga};function Aa(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Nr(null,n)}function wh(n){return Aa(n),n.headers=ut.from(n.headers),n.data=Na.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),um.getAdapter(n.adapter||Vi.adapter)(n).then(function(o){return Aa(n),o.data=Na.call(n,n.transformResponse,o),o.headers=ut.from(o.headers),o},function(o){return rm(o)||(Aa(n),o&&o.response&&(o.response.data=Na.call(n,n.transformResponse,o.response),o.response.headers=ut.from(o.response.headers))),Promise.reject(o)})}const cm="1.7.9",Eo={};["object","boolean","number","function","string","symbol"].forEach((n,r)=>{Eo[n]=function(o){return typeof o===n||"a"+(r<1?"n ":" ")+n}});const xh={};Eo.transitional=function(r,s,o){function a(f,c){return"[Axios v"+cm+"] Transitional option '"+f+"'"+c+(o?". "+o:"")}return(f,c,h)=>{if(r===!1)throw new ie(a(c," has been removed"+(s?" in "+s:"")),ie.ERR_DEPRECATED);return s&&!xh[c]&&(xh[c]=!0,console.warn(a(c," has been deprecated since v"+s+" and will be removed in the near future"))),r?r(f,c,h):!0}};Eo.spelling=function(r){return(s,o)=>(console.warn(`${o} is likely a misspelling of ${r}`),!0)};function Sw(n,r,s){if(typeof n!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const o=Object.keys(n);let a=o.length;for(;a-- >0;){const f=o[a],c=r[f];if(c){const h=n[f],p=h===void 0||c(h,f,n);if(p!==!0)throw new ie("option "+f+" must be "+p,ie.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new ie("Unknown option "+f,ie.ERR_BAD_OPTION)}}const io={assertOptions:Sw,validators:Eo},Ut=io.validators;class Hn{constructor(r){this.defaults=r,this.interceptors={request:new fh,response:new fh}}async request(r,s){try{return await this._request(r,s)}catch(o){if(o instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const f=a.stack?a.stack.replace(/^.+\n/,""):"";try{o.stack?f&&!String(o.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(o.stack+=` +`+f):o.stack=f}catch{}}throw o}}_request(r,s){typeof r=="string"?(s=s||{},s.url=r):s=r||{},s=$n(this.defaults,s);const{transitional:o,paramsSerializer:a,headers:f}=s;o!==void 0&&io.assertOptions(o,{silentJSONParsing:Ut.transitional(Ut.boolean),forcedJSONParsing:Ut.transitional(Ut.boolean),clarifyTimeoutError:Ut.transitional(Ut.boolean)},!1),a!=null&&(L.isFunction(a)?s.paramsSerializer={serialize:a}:io.assertOptions(a,{encode:Ut.function,serialize:Ut.function},!0)),io.assertOptions(s,{baseUrl:Ut.spelling("baseURL"),withXsrfToken:Ut.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let c=f&&L.merge(f.common,f[s.method]);f&&L.forEach(["delete","get","head","post","put","patch","common"],k=>{delete f[k]}),s.headers=ut.concat(c,f);const h=[];let p=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(s)===!1||(p=p&&C.synchronous,h.unshift(C.fulfilled,C.rejected))});const m=[];this.interceptors.response.forEach(function(C){m.push(C.fulfilled,C.rejected)});let y,v=0,x;if(!p){const k=[wh.bind(this),void 0];for(k.unshift.apply(k,h),k.push.apply(k,m),x=k.length,y=Promise.resolve(s);v{if(!o._listeners)return;let f=o._listeners.length;for(;f-- >0;)o._listeners[f](a);o._listeners=null}),this.promise.then=a=>{let f;const c=new Promise(h=>{o.subscribe(h),f=h}).then(a);return c.cancel=function(){o.unsubscribe(f)},c},r(function(f,c,h){o.reason||(o.reason=new Nr(f,c,h),s(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const s=this._listeners.indexOf(r);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const r=new AbortController,s=o=>{r.abort(o)};return this.subscribe(s),r.signal.unsubscribe=()=>this.unsubscribe(s),r.signal}static source(){let r;return{token:new vu(function(a){r=a}),cancel:r}}}function Tw(n){return function(s){return n.apply(null,s)}}function Ew(n){return L.isObject(n)&&n.isAxiosError===!0}const Qa={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Qa).forEach(([n,r])=>{Qa[r]=n});function fm(n){const r=new Hn(n),s=bp(Hn.prototype.request,r);return L.extend(s,Hn.prototype,r,{allOwnKeys:!0}),L.extend(s,r,null,{allOwnKeys:!0}),s.create=function(a){return fm($n(n,a))},s}const Ae=fm(Vi);Ae.Axios=Hn;Ae.CanceledError=Nr;Ae.CancelToken=vu;Ae.isCancel=rm;Ae.VERSION=cm;Ae.toFormData=So;Ae.AxiosError=ie;Ae.Cancel=Ae.CanceledError;Ae.all=function(r){return Promise.all(r)};Ae.spread=Tw;Ae.isAxiosError=Ew;Ae.mergeConfig=$n;Ae.AxiosHeaders=ut;Ae.formToJSON=n=>nm(L.isHTMLForm(n)?new FormData(n):n);Ae.getAdapter=um.getAdapter;Ae.HttpStatusCode=Qa;Ae.default=Ae;const Sh=30,Th=async(n,r)=>{console.log("음식",n);const s=`https://openapi.foodsafetykorea.go.kr/api/72edab9a6eee4e32bccf/I0490/json/${1+n*Sh}/${30+n*Sh}`,a=r?"https://openapi.foodsafetykorea.go.kr/api/72edab9a6eee4e32bccf/I0490/json/1/500":s;try{const c=(await Ae.get(a)).data.I0490.row;return Array.isArray(c)?c.map(h=>({PRDTNM:h.PRDTNM,RTRVLPRVNS:h.RTRVLPRVNS,BSSHNM:h.BSSHNM,ADDR:h.ADDR,TELNO:h.TELNO,BRCDNO:h.BRCDNO,FRMLCUNIT:h.FRMLCUNIT,MNFDT:h.MNFDT,RTRVLPLANDOC_RTRVLMTHD:h.RTRVLPLANDOC_RTRVLMTHD,DISTBTMLMT:h.DISTBTMLMT,PRDLST_TYPE:h.PRDLST_TYPE,IMG_FILE_PATH:h.IMG_FILE_PATH.split(",")[0],PRDLST_CD:h.PRDLST_CD,CRET_DTM:h.CRET_DTM,RTRVLDSUSE_SEQ:h.RTRVLDSUSE_SEQ,PRDLST_REPORT_NO:h.PRDLST_REPORT_NO,RTRVL_GRDCD_NM:h.RTRVL_GRDCD_NM,PRDLST_CD_NM:h.PRDLST_CD_NM,LCNS_NO:h.LCNS_NO})):[]}catch(f){throw console.error("API 호출 에러:",f),f}},Pw=n=>{let r;const s=new Set,o=(m,y)=>{const v=typeof m=="function"?m(r):m;if(!Object.is(v,r)){const x=r;r=y??(typeof v!="object"||v===null)?v:Object.assign({},r,v),s.forEach(N=>N(r,x))}},a=()=>r,h={setState:o,getState:a,getInitialState:()=>p,subscribe:m=>(s.add(m),()=>s.delete(m))},p=r=n(o,a,h);return h},Cw=n=>Pw(n),Rw=n=>n;function kw(n,r=Rw){const s=vr.useSyncExternalStore(n.subscribe,()=>r(n.getState()),()=>r(n.getInitialState()));return vr.useDebugValue(s),s}const Dw=n=>{const r=Cw(n),s=o=>kw(r,o);return Object.assign(s,r),s},Nw=n=>Dw(n),wu=Nw(n=>({searchString:"",setSearchString:r=>n({searchString:r}),selectedItem:"음식",setSelectedItem:r=>n({selectedItem:r}),page:0,setPage:r=>n({page:r})})),dm=H.createContext({});function Aw(n){const r=H.useRef(null);return r.current===null&&(r.current=n()),r.current}const xu=H.createContext(null),hm=H.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function _w(n=!0){const r=H.useContext(xu);if(r===null)return[!0,null];const{isPresent:s,onExitComplete:o,register:a}=r,f=H.useId();H.useEffect(()=>{n&&a(f)},[n]);const c=H.useCallback(()=>n&&o&&o(f),[f,o,n]);return!s&&o?[!1,c]:[!0]}const Su=typeof window<"u",Lw=Su?H.useLayoutEffect:H.useEffect,yt=n=>n;let qa=yt;function Tu(n){let r;return()=>(r===void 0&&(r=n()),r)}const Cr=(n,r,s)=>{const o=r-n;return o===0?1:(s-n)/o},Zt=n=>n*1e3,Jt=n=>n/1e3,Mw={skipAnimations:!1,useManualTiming:!1};function jw(n){let r=new Set,s=new Set,o=!1,a=!1;const f=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function h(m){f.has(m)&&(p.schedule(m),n()),m(c)}const p={schedule:(m,y=!1,v=!1)=>{const N=v&&o?r:s;return y&&f.add(m),N.has(m)||N.add(m),m},cancel:m=>{s.delete(m),f.delete(m)},process:m=>{if(c=m,o){a=!0;return}o=!0,[r,s]=[s,r],r.forEach(h),r.clear(),o=!1,a&&(a=!1,p.process(m))}};return p}const Zs=["read","resolveKeyframes","update","preRender","render","postRender"],Ow=40;function pm(n,r){let s=!1,o=!0;const a={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,c=Zs.reduce((M,F)=>(M[F]=jw(f),M),{}),{read:h,resolveKeyframes:p,update:m,preRender:y,render:v,postRender:x}=c,N=()=>{const M=performance.now();s=!1,a.delta=o?1e3/60:Math.max(Math.min(M-a.timestamp,Ow),1),a.timestamp=M,a.isProcessing=!0,h.process(a),p.process(a),m.process(a),y.process(a),v.process(a),x.process(a),a.isProcessing=!1,s&&r&&(o=!1,n(N))},k=()=>{s=!0,o=!0,a.isProcessing||n(N)};return{schedule:Zs.reduce((M,F)=>{const B=c[F];return M[F]=(q,b=!1,Z=!1)=>(s||k(),B.schedule(q,b,Z)),M},{}),cancel:M=>{for(let F=0;FEh[n].some(s=>!!r[s])};function Vw(n){for(const r in n)Rr[r]={...Rr[r],...n[r]}}const Fw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function co(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||Fw.has(n)}let gm=n=>!co(n);function Iw(n){n&&(gm=r=>r.startsWith("on")?!co(r):n(r))}try{Iw(require("@emotion/is-prop-valid").default)}catch{}function Bw(n,r,s){const o={};for(const a in n)a==="values"&&typeof n.values=="object"||(gm(a)||s===!0&&co(a)||!r&&!co(a)||n.draggable&&a.startsWith("onDrag"))&&(o[a]=n[a]);return o}function zw(n){if(typeof Proxy>"u")return n;const r=new Map,s=(...o)=>n(...o);return new Proxy(s,{get:(o,a)=>a==="create"?n:(r.has(a)||r.set(a,n(a)),r.get(a))})}const Po=H.createContext({});function Ni(n){return typeof n=="string"||Array.isArray(n)}function Co(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}const Eu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Pu=["initial",...Eu];function Ro(n){return Co(n.animate)||Pu.some(r=>Ni(n[r]))}function ym(n){return!!(Ro(n)||n.variants)}function Uw(n,r){if(Ro(n)){const{initial:s,animate:o}=n;return{initial:s===!1||Ni(s)?s:void 0,animate:Ni(o)?o:void 0}}return n.inherit!==!1?r:{}}function bw(n){const{initial:r,animate:s}=Uw(n,H.useContext(Po));return H.useMemo(()=>({initial:r,animate:s}),[Ph(r),Ph(s)])}function Ph(n){return Array.isArray(n)?n.join(" "):n}const Hw=Symbol.for("motionComponentSymbol");function wr(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function Ww(n,r,s){return H.useCallback(o=>{o&&n.onMount&&n.onMount(o),r&&(o?r.mount(o):r.unmount()),s&&(typeof s=="function"?s(o):wr(s)&&(s.current=o))},[r])}const Cu=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),$w="framerAppearId",vm="data-"+Cu($w),{schedule:Ru,cancel:wE}=pm(queueMicrotask,!1),wm=H.createContext({});function Kw(n,r,s,o,a){var f,c;const{visualElement:h}=H.useContext(Po),p=H.useContext(mm),m=H.useContext(xu),y=H.useContext(hm).reducedMotion,v=H.useRef(null);o=o||p.renderer,!v.current&&o&&(v.current=o(n,{visualState:r,parent:h,props:s,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:y}));const x=v.current,N=H.useContext(wm);x&&!x.projection&&a&&(x.type==="html"||x.type==="svg")&&Yw(v.current,s,a,N);const k=H.useRef(!1);H.useInsertionEffect(()=>{x&&k.current&&x.update(s,m)});const C=s[vm],P=H.useRef(!!C&&!(!((f=window.MotionHandoffIsComplete)===null||f===void 0)&&f.call(window,C))&&((c=window.MotionHasOptimisedAnimation)===null||c===void 0?void 0:c.call(window,C)));return Lw(()=>{x&&(k.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),Ru.render(x.render),P.current&&x.animationState&&x.animationState.animateChanges())}),H.useEffect(()=>{x&&(!P.current&&x.animationState&&x.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{var M;(M=window.MotionHandoffMarkAsComplete)===null||M===void 0||M.call(window,C)}),P.current=!1))}),x}function Yw(n,r,s,o){const{layoutId:a,layout:f,drag:c,dragConstraints:h,layoutScroll:p,layoutRoot:m}=r;n.projection=new s(n.latestValues,r["data-framer-portal-id"]?void 0:xm(n.parent)),n.projection.setOptions({layoutId:a,layout:f,alwaysMeasureLayout:!!c||h&&wr(h),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:o,layoutScroll:p,layoutRoot:m})}function xm(n){if(n)return n.options.allowProjection!==!1?n.projection:xm(n.parent)}function Gw({preloadedFeatures:n,createVisualElement:r,useRender:s,useVisualState:o,Component:a}){var f,c;n&&Vw(n);function h(m,y){let v;const x={...H.useContext(hm),...m,layoutId:Qw(m)},{isStatic:N}=x,k=bw(m),C=o(m,N);if(!N&&Su){qw();const P=Xw(x);v=P.MeasureLayout,k.visualElement=Kw(a,C,x,r,P.ProjectionNode)}return A.jsxs(Po.Provider,{value:k,children:[v&&k.visualElement?A.jsx(v,{visualElement:k.visualElement,...x}):null,s(a,m,Ww(C,k.visualElement,y),C,N,k.visualElement)]})}h.displayName=`motion.${typeof a=="string"?a:`create(${(c=(f=a.displayName)!==null&&f!==void 0?f:a.name)!==null&&c!==void 0?c:""})`}`;const p=H.forwardRef(h);return p[Hw]=a,p}function Qw({layoutId:n}){const r=H.useContext(dm).id;return r&&n!==void 0?r+"-"+n:n}function qw(n,r){H.useContext(mm).strict}function Xw(n){const{drag:r,layout:s}=Rr;if(!r&&!s)return{};const o={...r,...s};return{MeasureLayout:r!=null&&r.isEnabled(n)||s!=null&&s.isEnabled(n)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}const Zw=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ku(n){return typeof n!="string"||n.includes("-")?!1:!!(Zw.indexOf(n)>-1||/[A-Z]/u.test(n))}function Ch(n){const r=[{},{}];return n==null||n.values.forEach((s,o)=>{r[0][o]=s.get(),r[1][o]=s.getVelocity()}),r}function Du(n,r,s,o){if(typeof r=="function"){const[a,f]=Ch(o);r=r(s!==void 0?s:n.custom,a,f)}if(typeof r=="string"&&(r=n.variants&&n.variants[r]),typeof r=="function"){const[a,f]=Ch(o);r=r(s!==void 0?s:n.custom,a,f)}return r}const Xa=n=>Array.isArray(n),Jw=n=>!!(n&&typeof n=="object"&&n.mix&&n.toValue),ex=n=>Xa(n)?n[n.length-1]||0:n,Qe=n=>!!(n&&n.getVelocity);function so(n){const r=Qe(n)?n.get():n;return Jw(r)?r.toValue():r}function tx({scrapeMotionValuesFromProps:n,createRenderState:r,onUpdate:s},o,a,f){const c={latestValues:nx(o,a,f,n),renderState:r()};return s&&(c.onMount=h=>s({props:o,current:h,...c}),c.onUpdate=h=>s(h)),c}const Sm=n=>(r,s)=>{const o=H.useContext(Po),a=H.useContext(xu),f=()=>tx(n,r,o,a);return s?f():Aw(f)};function nx(n,r,s,o){const a={},f=o(n,{});for(const x in f)a[x]=so(f[x]);let{initial:c,animate:h}=n;const p=Ro(n),m=ym(n);r&&m&&!p&&n.inherit!==!1&&(c===void 0&&(c=r.initial),h===void 0&&(h=r.animate));let y=s?s.initial===!1:!1;y=y||c===!1;const v=y?h:c;if(v&&typeof v!="boolean"&&!Co(v)){const x=Array.isArray(v)?v:[v];for(let N=0;Nr=>typeof r=="string"&&r.startsWith(n),Nu=Tm("--"),rx=Tm("var(--"),Au=n=>rx(n)?ix.test(n.split("/*")[0].trim()):!1,ix=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Em=(n,r)=>r&&typeof n=="number"?r.transform(n):n,en=(n,r,s)=>s>r?r:stypeof n=="number",parse:parseFloat,transform:n=>n},Ai={..._r,transform:n=>en(0,1,n)},Js={..._r,default:1},Fi=n=>({test:r=>typeof r=="string"&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}),Sn=Fi("deg"),bt=Fi("%"),ne=Fi("px"),sx=Fi("vh"),ox=Fi("vw"),Rh={...bt,parse:n=>bt.parse(n)/100,transform:n=>bt.transform(n*100)},lx={borderWidth:ne,borderTopWidth:ne,borderRightWidth:ne,borderBottomWidth:ne,borderLeftWidth:ne,borderRadius:ne,radius:ne,borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomRightRadius:ne,borderBottomLeftRadius:ne,width:ne,maxWidth:ne,height:ne,maxHeight:ne,top:ne,right:ne,bottom:ne,left:ne,padding:ne,paddingTop:ne,paddingRight:ne,paddingBottom:ne,paddingLeft:ne,margin:ne,marginTop:ne,marginRight:ne,marginBottom:ne,marginLeft:ne,backgroundPositionX:ne,backgroundPositionY:ne},ax={rotate:Sn,rotateX:Sn,rotateY:Sn,rotateZ:Sn,scale:Js,scaleX:Js,scaleY:Js,scaleZ:Js,skew:Sn,skewX:Sn,skewY:Sn,distance:ne,translateX:ne,translateY:ne,translateZ:ne,x:ne,y:ne,z:ne,perspective:ne,transformPerspective:ne,opacity:Ai,originX:Rh,originY:Rh,originZ:ne},kh={..._r,transform:Math.round},_u={...lx,...ax,zIndex:kh,size:ne,fillOpacity:Ai,strokeOpacity:Ai,numOctaves:kh},ux={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},cx=Ar.length;function fx(n,r,s){let o="",a=!0;for(let f=0;f({style:{},transform:{},transformOrigin:{},vars:{}}),Pm=()=>({...ju(),attrs:{}}),Ou=n=>typeof n=="string"&&n.toLowerCase()==="svg";function Cm(n,{style:r,vars:s},o,a){Object.assign(n.style,r,a&&a.getProjectionStyles(o));for(const f in s)n.style.setProperty(f,s[f])}const Rm=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function km(n,r,s,o){Cm(n,r,void 0,o);for(const a in r.attrs)n.setAttribute(Rm.has(a)?a:Cu(a),r.attrs[a])}const _i={};function gx(n){for(const r in n)_i[r]=n[r],Nu(r)&&(_i[r].isCSSVariable=!0)}function Dm(n,{layout:r,layoutId:s}){return Kn.has(n)||n.startsWith("origin")||(r||s!==void 0)&&(!!_i[n]||n==="opacity")}function Vu(n,r,s){var o;const{style:a}=n,f={};for(const c in a)(Qe(a[c])||r.style&&Qe(r.style[c])||Dm(c,n)||((o=s==null?void 0:s.getValue(c))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(f[c]=a[c]);return f}function Nm(n,r,s){const o=Vu(n,r,s);for(const a in n)if(Qe(n[a])||Qe(r[a])){const f=Ar.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;o[f]=n[a]}return o}function yx(n,r){try{r.dimensions=typeof n.getBBox=="function"?n.getBBox():n.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}const Nh=["x","y","width","height","cx","cy","r"],vx={useVisualState:Sm({scrapeMotionValuesFromProps:Nm,createRenderState:Pm,onUpdate:({props:n,prevProps:r,current:s,renderState:o,latestValues:a})=>{if(!s)return;let f=!!n.drag;if(!f){for(const h in a)if(Kn.has(h)){f=!0;break}}if(!f)return;let c=!r;if(r)for(let h=0;h{yx(s,o),Se.render(()=>{Mu(o,a,Ou(s.tagName),n.transformTemplate),km(s,o)})})}})},wx={useVisualState:Sm({scrapeMotionValuesFromProps:Vu,createRenderState:ju})};function Am(n,r,s){for(const o in r)!Qe(r[o])&&!Dm(o,s)&&(n[o]=r[o])}function xx({transformTemplate:n},r){return H.useMemo(()=>{const s=ju();return Lu(s,r,n),Object.assign({},s.vars,s.style)},[r])}function Sx(n,r){const s=n.style||{},o={};return Am(o,s,n),Object.assign(o,xx(n,r)),o}function Tx(n,r){const s={},o=Sx(n,r);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(s.tabIndex=0),s.style=o,s}function Ex(n,r,s,o){const a=H.useMemo(()=>{const f=Pm();return Mu(f,r,Ou(o),n.transformTemplate),{...f.attrs,style:{...f.style}}},[r]);if(n.style){const f={};Am(f,n.style,n),a.style={...f,...a.style}}return a}function Px(n=!1){return(s,o,a,{latestValues:f},c)=>{const p=(ku(s)?Ex:Tx)(o,f,c,s),m=Bw(o,typeof s=="string",n),y=s!==H.Fragment?{...m,...p,ref:a}:{},{children:v}=o,x=H.useMemo(()=>Qe(v)?v.get():v,[v]);return H.createElement(s,{...y,children:x})}}function Cx(n,r){return function(o,{forwardMotionProps:a}={forwardMotionProps:!1}){const c={...ku(o)?vx:wx,preloadedFeatures:n,useRender:Px(a),createVisualElement:r,Component:o};return Gw(c)}}function _m(n,r){if(!Array.isArray(r))return!1;const s=r.length;if(s!==n.length)return!1;for(let o=0;owindow.ScrollTimeline!==void 0);class kx{constructor(r){this.stop=()=>this.runAll("stop"),this.animations=r.filter(Boolean)}get finished(){return Promise.all(this.animations.map(r=>"finished"in r?r.finished:r))}getAll(r){return this.animations[0][r]}setAll(r,s){for(let o=0;o{if(Rx()&&a.attachTimeline)return a.attachTimeline(r);if(typeof s=="function")return s(a)});return()=>{o.forEach((a,f)=>{a&&a(),this.animations[f].stop()})}}get time(){return this.getAll("time")}set time(r){this.setAll("time",r)}get speed(){return this.getAll("speed")}set speed(r){this.setAll("speed",r)}get startTime(){return this.getAll("startTime")}get duration(){let r=0;for(let s=0;ss[r]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Dx extends kx{then(r,s){return Promise.all(this.animations).then(r).catch(s)}}function Fu(n,r){return n?n[r]||n.default||n:void 0}const Za=2e4;function Lm(n){let r=0;const s=50;let o=n.next(r);for(;!o.done&&r=Za?1/0:r}function Iu(n){return typeof n=="function"}function Ah(n,r){n.timeline=r,n.onfinish=null}const Bu=n=>Array.isArray(n)&&typeof n[0]=="number",Nx={linearEasing:void 0};function Ax(n,r){const s=Tu(n);return()=>{var o;return(o=Nx[r])!==null&&o!==void 0?o:s()}}const fo=Ax(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Mm=(n,r,s=10)=>{let o="";const a=Math.max(Math.round(r/s),2);for(let f=0;f`cubic-bezier(${n}, ${r}, ${s}, ${o})`,Ja={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xi([0,.65,.55,1]),circOut:xi([.55,0,1,.45]),backIn:xi([.31,.01,.66,-.59]),backOut:xi([.33,1.53,.69,.99])};function Om(n,r){if(n)return typeof n=="function"&&fo()?Mm(n,r):Bu(n)?xi(n):Array.isArray(n)?n.map(s=>Om(s,r)||Ja.easeOut):Ja[n]}const jt={x:!1,y:!1};function Vm(){return jt.x||jt.y}function _x(n,r,s){var o;if(n instanceof Element)return[n];if(typeof n=="string"){let a=document;const f=(o=void 0)!==null&&o!==void 0?o:a.querySelectorAll(n);return f?Array.from(f):[]}return Array.from(n)}function Fm(n,r){const s=_x(n),o=new AbortController,a={passive:!0,...r,signal:o.signal};return[s,a,()=>o.abort()]}function _h(n){return!(n.pointerType==="touch"||Vm())}function Lx(n,r,s={}){const[o,a,f]=Fm(n,s),c=h=>{if(!_h(h))return;const{target:p}=h,m=r(p,h);if(typeof m!="function"||!p)return;const y=v=>{_h(v)&&(m(v),p.removeEventListener("pointerleave",y))};p.addEventListener("pointerleave",y,a)};return o.forEach(h=>{h.addEventListener("pointerenter",c,a)}),f}const Im=(n,r)=>r?n===r?!0:Im(n,r.parentElement):!1,zu=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,Mx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function jx(n){return Mx.has(n.tagName)||n.tabIndex!==-1}const Si=new WeakSet;function Lh(n){return r=>{r.key==="Enter"&&n(r)}}function La(n,r){n.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const Ox=(n,r)=>{const s=n.currentTarget;if(!s)return;const o=Lh(()=>{if(Si.has(s))return;La(s,"down");const a=Lh(()=>{La(s,"up")}),f=()=>La(s,"cancel");s.addEventListener("keyup",a,r),s.addEventListener("blur",f,r)});s.addEventListener("keydown",o,r),s.addEventListener("blur",()=>s.removeEventListener("keydown",o),r)};function Mh(n){return zu(n)&&!Vm()}function Vx(n,r,s={}){const[o,a,f]=Fm(n,s),c=h=>{const p=h.currentTarget;if(!Mh(h)||Si.has(p))return;Si.add(p);const m=r(p,h),y=(N,k)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",x),!(!Mh(N)||!Si.has(p))&&(Si.delete(p),typeof m=="function"&&m(N,{success:k}))},v=N=>{y(N,s.useGlobalTarget||Im(p,N.target))},x=N=>{y(N,!1)};window.addEventListener("pointerup",v,a),window.addEventListener("pointercancel",x,a)};return o.forEach(h=>{!jx(h)&&h.getAttribute("tabindex")===null&&(h.tabIndex=0),(s.useGlobalTarget?window:h).addEventListener("pointerdown",c,a),h.addEventListener("focus",m=>Ox(m,a),a)}),f}function Fx(n){return n==="x"||n==="y"?jt[n]?null:(jt[n]=!0,()=>{jt[n]=!1}):jt.x||jt.y?null:(jt.x=jt.y=!0,()=>{jt.x=jt.y=!1})}const Bm=new Set(["width","height","top","left","right","bottom",...Ar]);let oo;function Ix(){oo=void 0}const Ht={now:()=>(oo===void 0&&Ht.set(be.isProcessing||Mw.useManualTiming?be.timestamp:performance.now()),oo),set:n=>{oo=n,queueMicrotask(Ix)}};function Uu(n,r){n.indexOf(r)===-1&&n.push(r)}function bu(n,r){const s=n.indexOf(r);s>-1&&n.splice(s,1)}class Hu{constructor(){this.subscriptions=[]}add(r){return Uu(this.subscriptions,r),()=>bu(this.subscriptions,r)}notify(r,s,o){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](r,s,o);else for(let f=0;f!isNaN(parseFloat(n));class zx{constructor(r,s={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,a=!0)=>{const f=Ht.now();this.updatedAt!==f&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(r),this.owner=s.owner}setCurrent(r){this.current=r,this.updatedAt=Ht.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=Bx(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on("change",r)}on(r,s){this.events[r]||(this.events[r]=new Hu);const o=this.events[r].add(s);return r==="change"?()=>{o(),Se.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,s){this.passiveEffect=r,this.stopPassiveEffect=s}set(r,s=!0){!s||!this.passiveEffect?this.updateAndNotify(r,s):this.passiveEffect(r,this.updateAndNotify)}setWithVelocity(r,s,o){this.set(s),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-o}jump(r,s=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=Ht.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>jh)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,jh);return zm(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(r){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=r(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Li(n,r){return new zx(n,r)}function Ux(n,r,s){n.hasValue(r)?n.getValue(r).set(s):n.addValue(r,Li(s))}function bx(n,r){const s=ko(n,r);let{transitionEnd:o={},transition:a={},...f}=s||{};f={...f,...o};for(const c in f){const h=ex(f[c]);Ux(n,c,h)}}function Hx(n){return!!(Qe(n)&&n.add)}function eu(n,r){const s=n.getValue("willChange");if(Hx(s))return s.add(r)}function Um(n){return n.props[vm]}const bm=(n,r,s)=>(((1-3*s+3*r)*n+(3*s-6*r))*n+3*r)*n,Wx=1e-7,$x=12;function Kx(n,r,s,o,a){let f,c,h=0;do c=r+(s-r)/2,f=bm(c,o,a)-n,f>0?s=c:r=c;while(Math.abs(f)>Wx&&++h<$x);return c}function Ii(n,r,s,o){if(n===r&&s===o)return yt;const a=f=>Kx(f,0,1,n,s);return f=>f===0||f===1?f:bm(a(f),r,o)}const Hm=n=>r=>r<=.5?n(2*r)/2:(2-n(2*(1-r)))/2,Wm=n=>r=>1-n(1-r),$m=Ii(.33,1.53,.69,.99),Wu=Wm($m),Km=Hm(Wu),Ym=n=>(n*=2)<1?.5*Wu(n):.5*(2-Math.pow(2,-10*(n-1))),$u=n=>1-Math.sin(Math.acos(n)),Gm=Wm($u),Qm=Hm($u),qm=n=>/^0[^.\s]+$/u.test(n);function Yx(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||qm(n):!0}const Pi=n=>Math.round(n*1e5)/1e5,Ku=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Gx(n){return n==null}const Qx=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Yu=(n,r)=>s=>!!(typeof s=="string"&&Qx.test(s)&&s.startsWith(n)||r&&!Gx(s)&&Object.prototype.hasOwnProperty.call(s,r)),Xm=(n,r,s)=>o=>{if(typeof o!="string")return o;const[a,f,c,h]=o.match(Ku);return{[n]:parseFloat(a),[r]:parseFloat(f),[s]:parseFloat(c),alpha:h!==void 0?parseFloat(h):1}},qx=n=>en(0,255,n),Ma={..._r,transform:n=>Math.round(qx(n))},bn={test:Yu("rgb","red"),parse:Xm("red","green","blue"),transform:({red:n,green:r,blue:s,alpha:o=1})=>"rgba("+Ma.transform(n)+", "+Ma.transform(r)+", "+Ma.transform(s)+", "+Pi(Ai.transform(o))+")"};function Xx(n){let r="",s="",o="",a="";return n.length>5?(r=n.substring(1,3),s=n.substring(3,5),o=n.substring(5,7),a=n.substring(7,9)):(r=n.substring(1,2),s=n.substring(2,3),o=n.substring(3,4),a=n.substring(4,5),r+=r,s+=s,o+=o,a+=a),{red:parseInt(r,16),green:parseInt(s,16),blue:parseInt(o,16),alpha:a?parseInt(a,16)/255:1}}const tu={test:Yu("#"),parse:Xx,transform:bn.transform},xr={test:Yu("hsl","hue"),parse:Xm("hue","saturation","lightness"),transform:({hue:n,saturation:r,lightness:s,alpha:o=1})=>"hsla("+Math.round(n)+", "+bt.transform(Pi(r))+", "+bt.transform(Pi(s))+", "+Pi(Ai.transform(o))+")"},Ye={test:n=>bn.test(n)||tu.test(n)||xr.test(n),parse:n=>bn.test(n)?bn.parse(n):xr.test(n)?xr.parse(n):tu.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?bn.transform(n):xr.transform(n)},Zx=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Jx(n){var r,s;return isNaN(n)&&typeof n=="string"&&(((r=n.match(Ku))===null||r===void 0?void 0:r.length)||0)+(((s=n.match(Zx))===null||s===void 0?void 0:s.length)||0)>0}const Zm="number",Jm="color",e1="var",t1="var(",Oh="${}",n1=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Mi(n){const r=n.toString(),s=[],o={color:[],number:[],var:[]},a=[];let f=0;const h=r.replace(n1,p=>(Ye.test(p)?(o.color.push(f),a.push(Jm),s.push(Ye.parse(p))):p.startsWith(t1)?(o.var.push(f),a.push(e1),s.push(p)):(o.number.push(f),a.push(Zm),s.push(parseFloat(p))),++f,Oh)).split(Oh);return{values:s,split:h,indexes:o,types:a}}function eg(n){return Mi(n).values}function tg(n){const{split:r,types:s}=Mi(n),o=r.length;return a=>{let f="";for(let c=0;ctypeof n=="number"?0:n;function i1(n){const r=eg(n);return tg(n)(r.map(r1))}const En={test:Jx,parse:eg,createTransformer:tg,getAnimatableNone:i1},s1=new Set(["brightness","contrast","saturate","opacity"]);function o1(n){const[r,s]=n.slice(0,-1).split("(");if(r==="drop-shadow")return n;const[o]=s.match(Ku)||[];if(!o)return n;const a=s.replace(o,"");let f=s1.has(r)?1:0;return o!==s&&(f*=100),r+"("+f+a+")"}const l1=/\b([a-z-]*)\(.*?\)/gu,nu={...En,getAnimatableNone:n=>{const r=n.match(l1);return r?r.map(o1).join(" "):n}},a1={..._u,color:Ye,backgroundColor:Ye,outlineColor:Ye,fill:Ye,stroke:Ye,borderColor:Ye,borderTopColor:Ye,borderRightColor:Ye,borderBottomColor:Ye,borderLeftColor:Ye,filter:nu,WebkitFilter:nu},Gu=n=>a1[n];function ng(n,r){let s=Gu(n);return s!==nu&&(s=En),s.getAnimatableNone?s.getAnimatableNone(r):void 0}const u1=new Set(["auto","none","0"]);function c1(n,r,s){let o=0,a;for(;on===_r||n===ne,Fh=(n,r)=>parseFloat(n.split(", ")[r]),Ih=(n,r)=>(s,{transform:o})=>{if(o==="none"||!o)return 0;const a=o.match(/^matrix3d\((.+)\)$/u);if(a)return Fh(a[1],r);{const f=o.match(/^matrix\((.+)\)$/u);return f?Fh(f[1],n):0}},f1=new Set(["x","y","z"]),d1=Ar.filter(n=>!f1.has(n));function h1(n){const r=[];return d1.forEach(s=>{const o=n.getValue(s);o!==void 0&&(r.push([s,o.get()]),o.set(s.startsWith("scale")?1:0))}),r}const kr={width:({x:n},{paddingLeft:r="0",paddingRight:s="0"})=>n.max-n.min-parseFloat(r)-parseFloat(s),height:({y:n},{paddingTop:r="0",paddingBottom:s="0"})=>n.max-n.min-parseFloat(r)-parseFloat(s),top:(n,{top:r})=>parseFloat(r),left:(n,{left:r})=>parseFloat(r),bottom:({y:n},{top:r})=>parseFloat(r)+(n.max-n.min),right:({x:n},{left:r})=>parseFloat(r)+(n.max-n.min),x:Ih(4,13),y:Ih(5,14)};kr.translateX=kr.x;kr.translateY=kr.y;const Wn=new Set;let ru=!1,iu=!1;function rg(){if(iu){const n=Array.from(Wn).filter(o=>o.needsMeasurement),r=new Set(n.map(o=>o.element)),s=new Map;r.forEach(o=>{const a=h1(o);a.length&&(s.set(o,a),o.render())}),n.forEach(o=>o.measureInitialState()),r.forEach(o=>{o.render();const a=s.get(o);a&&a.forEach(([f,c])=>{var h;(h=o.getValue(f))===null||h===void 0||h.set(c)})}),n.forEach(o=>o.measureEndState()),n.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}iu=!1,ru=!1,Wn.forEach(n=>n.complete()),Wn.clear()}function ig(){Wn.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(iu=!0)})}function p1(){ig(),rg()}class Qu{constructor(r,s,o,a,f,c=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...r],this.onComplete=s,this.name=o,this.motionValue=a,this.element=f,this.isAsync=c}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Wn.add(this),ru||(ru=!0,Se.read(ig),Se.resolveKeyframes(rg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:s,element:o,motionValue:a}=this;for(let f=0;f/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n),m1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function g1(n){const r=m1.exec(n);if(!r)return[,];const[,s,o,a]=r;return[`--${s??o}`,a]}function og(n,r,s=1){const[o,a]=g1(n);if(!o)return;const f=window.getComputedStyle(r).getPropertyValue(o);if(f){const c=f.trim();return sg(c)?parseFloat(c):c}return Au(a)?og(a,r,s+1):a}const lg=n=>r=>r.test(n),y1={test:n=>n==="auto",parse:n=>n},ag=[_r,ne,bt,Sn,ox,sx,y1],Bh=n=>ag.find(lg(n));class ug extends Qu{constructor(r,s,o,a,f){super(r,s,o,a,f,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:s,name:o}=this;if(!s||!s.current)return;super.readKeyframes();for(let p=0;p{s.getValue(p).set(m)}),this.resolveNoneKeyframes()}}const zh=(n,r)=>r==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(En.test(n)||n==="0")&&!n.startsWith("url("));function v1(n){const r=n[0];if(n.length===1)return!0;for(let s=0;sn!==null;function Do(n,{repeat:r,repeatType:s="loop"},o){const a=n.filter(x1),f=r&&s!=="loop"&&r%2===1?0:a.length-1;return!f||o===void 0?a[f]:o}const S1=40;class cg{constructor({autoplay:r=!0,delay:s=0,type:o="keyframes",repeat:a=0,repeatDelay:f=0,repeatType:c="loop",...h}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ht.now(),this.options={autoplay:r,delay:s,type:o,repeat:a,repeatDelay:f,repeatType:c,...h},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>S1?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&p1(),this._resolved}onKeyframesResolved(r,s){this.resolvedAt=Ht.now(),this.hasAttemptedResolve=!0;const{name:o,type:a,velocity:f,delay:c,onComplete:h,onUpdate:p,isGenerator:m}=this.options;if(!m&&!w1(r,o,a,f))if(c)this.options.duration=0;else{p&&p(Do(r,this.options,s)),h&&h(),this.resolveFinishedPromise();return}const y=this.initPlayback(r,s);y!==!1&&(this._resolved={keyframes:r,finalKeyframe:s,...y},this.onPostResolved())}onPostResolved(){}then(r,s){return this.currentFinishedPromise.then(r,s)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(r=>{this.resolveFinishedPromise=r})}}const Re=(n,r,s)=>n+(r-n)*s;function ja(n,r,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(r-n)*6*s:s<1/2?r:s<2/3?n+(r-n)*(2/3-s)*6:n}function T1({hue:n,saturation:r,lightness:s,alpha:o}){n/=360,r/=100,s/=100;let a=0,f=0,c=0;if(!r)a=f=c=s;else{const h=s<.5?s*(1+r):s+r-s*r,p=2*s-h;a=ja(p,h,n+1/3),f=ja(p,h,n),c=ja(p,h,n-1/3)}return{red:Math.round(a*255),green:Math.round(f*255),blue:Math.round(c*255),alpha:o}}function ho(n,r){return s=>s>0?r:n}const Oa=(n,r,s)=>{const o=n*n,a=s*(r*r-o)+o;return a<0?0:Math.sqrt(a)},E1=[tu,bn,xr],P1=n=>E1.find(r=>r.test(n));function Uh(n){const r=P1(n);if(!r)return!1;let s=r.parse(n);return r===xr&&(s=T1(s)),s}const bh=(n,r)=>{const s=Uh(n),o=Uh(r);if(!s||!o)return ho(n,r);const a={...s};return f=>(a.red=Oa(s.red,o.red,f),a.green=Oa(s.green,o.green,f),a.blue=Oa(s.blue,o.blue,f),a.alpha=Re(s.alpha,o.alpha,f),bn.transform(a))},C1=(n,r)=>s=>r(n(s)),Bi=(...n)=>n.reduce(C1),su=new Set(["none","hidden"]);function R1(n,r){return su.has(n)?s=>s<=0?n:r:s=>s>=1?r:n}function k1(n,r){return s=>Re(n,r,s)}function qu(n){return typeof n=="number"?k1:typeof n=="string"?Au(n)?ho:Ye.test(n)?bh:A1:Array.isArray(n)?fg:typeof n=="object"?Ye.test(n)?bh:D1:ho}function fg(n,r){const s=[...n],o=s.length,a=n.map((f,c)=>qu(f)(f,r[c]));return f=>{for(let c=0;c{for(const f in o)s[f]=o[f](a);return s}}function N1(n,r){var s;const o=[],a={color:0,var:0,number:0};for(let f=0;f{const s=En.createTransformer(r),o=Mi(n),a=Mi(r);return o.indexes.var.length===a.indexes.var.length&&o.indexes.color.length===a.indexes.color.length&&o.indexes.number.length>=a.indexes.number.length?su.has(n)&&!a.values.length||su.has(r)&&!o.values.length?R1(n,r):Bi(fg(N1(o,a),a.values),s):ho(n,r)};function dg(n,r,s){return typeof n=="number"&&typeof r=="number"&&typeof s=="number"?Re(n,r,s):qu(n)(n,r)}const _1=5;function hg(n,r,s){const o=Math.max(r-_1,0);return zm(s-n(o),r-o)}const Ne={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Hh=.001;function L1({duration:n=Ne.duration,bounce:r=Ne.bounce,velocity:s=Ne.velocity,mass:o=Ne.mass}){let a,f,c=1-r;c=en(Ne.minDamping,Ne.maxDamping,c),n=en(Ne.minDuration,Ne.maxDuration,Jt(n)),c<1?(a=m=>{const y=m*c,v=y*n,x=y-s,N=ou(m,c),k=Math.exp(-v);return Hh-x/N*k},f=m=>{const v=m*c*n,x=v*s+s,N=Math.pow(c,2)*Math.pow(m,2)*n,k=Math.exp(-v),C=ou(Math.pow(m,2),c);return(-a(m)+Hh>0?-1:1)*((x-N)*k)/C}):(a=m=>{const y=Math.exp(-m*n),v=(m-s)*n+1;return-.001+y*v},f=m=>{const y=Math.exp(-m*n),v=(s-m)*(n*n);return y*v});const h=5/n,p=j1(a,f,h);if(n=Zt(n),isNaN(p))return{stiffness:Ne.stiffness,damping:Ne.damping,duration:n};{const m=Math.pow(p,2)*o;return{stiffness:m,damping:c*2*Math.sqrt(o*m),duration:n}}}const M1=12;function j1(n,r,s){let o=s;for(let a=1;an[s]!==void 0)}function F1(n){let r={velocity:Ne.velocity,stiffness:Ne.stiffness,damping:Ne.damping,mass:Ne.mass,isResolvedFromDuration:!1,...n};if(!Wh(n,V1)&&Wh(n,O1))if(n.visualDuration){const s=n.visualDuration,o=2*Math.PI/(s*1.2),a=o*o,f=2*en(.05,1,1-(n.bounce||0))*Math.sqrt(a);r={...r,mass:Ne.mass,stiffness:a,damping:f}}else{const s=L1(n);r={...r,...s,mass:Ne.mass},r.isResolvedFromDuration=!0}return r}function pg(n=Ne.visualDuration,r=Ne.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:r}:n;let{restSpeed:o,restDelta:a}=s;const f=s.keyframes[0],c=s.keyframes[s.keyframes.length-1],h={done:!1,value:f},{stiffness:p,damping:m,mass:y,duration:v,velocity:x,isResolvedFromDuration:N}=F1({...s,velocity:-Jt(s.velocity||0)}),k=x||0,C=m/(2*Math.sqrt(p*y)),P=c-f,M=Jt(Math.sqrt(p/y)),F=Math.abs(P)<5;o||(o=F?Ne.restSpeed.granular:Ne.restSpeed.default),a||(a=F?Ne.restDelta.granular:Ne.restDelta.default);let B;if(C<1){const b=ou(M,C);B=Z=>{const se=Math.exp(-C*M*Z);return c-se*((k+C*M*P)/b*Math.sin(b*Z)+P*Math.cos(b*Z))}}else if(C===1)B=b=>c-Math.exp(-M*b)*(P+(k+M*P)*b);else{const b=M*Math.sqrt(C*C-1);B=Z=>{const se=Math.exp(-C*M*Z),X=Math.min(b*Z,300);return c-se*((k+C*M*P)*Math.sinh(X)+b*P*Math.cosh(X))/b}}const q={calculatedDuration:N&&v||null,next:b=>{const Z=B(b);if(N)h.done=b>=v;else{let se=0;C<1&&(se=b===0?Zt(k):hg(B,b,Z));const X=Math.abs(se)<=o,ge=Math.abs(c-Z)<=a;h.done=X&&ge}return h.value=h.done?c:Z,h},toString:()=>{const b=Math.min(Lm(q),Za),Z=Mm(se=>q.next(b*se).value,b,30);return b+"ms "+Z}};return q}function $h({keyframes:n,velocity:r=0,power:s=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:f=500,modifyTarget:c,min:h,max:p,restDelta:m=.5,restSpeed:y}){const v=n[0],x={done:!1,value:v},N=X=>h!==void 0&&Xp,k=X=>h===void 0?p:p===void 0||Math.abs(h-X)-C*Math.exp(-X/o),B=X=>M+F(X),q=X=>{const ge=F(X),ke=B(X);x.done=Math.abs(ge)<=m,x.value=x.done?M:ke};let b,Z;const se=X=>{N(x.value)&&(b=X,Z=pg({keyframes:[x.value,k(x.value)],velocity:hg(B,X,x.value),damping:a,stiffness:f,restDelta:m,restSpeed:y}))};return se(0),{calculatedDuration:null,next:X=>{let ge=!1;return!Z&&b===void 0&&(ge=!0,q(X),se(X)),b!==void 0&&X>=b?Z.next(X-b):(!ge&&q(X),x)}}}const I1=Ii(.42,0,1,1),B1=Ii(0,0,.58,1),mg=Ii(.42,0,.58,1),z1=n=>Array.isArray(n)&&typeof n[0]!="number",Kh={linear:yt,easeIn:I1,easeInOut:mg,easeOut:B1,circIn:$u,circInOut:Qm,circOut:Gm,backIn:Wu,backInOut:Km,backOut:$m,anticipate:Ym},Yh=n=>{if(Bu(n)){qa(n.length===4);const[r,s,o,a]=n;return Ii(r,s,o,a)}else if(typeof n=="string")return qa(Kh[n]!==void 0),Kh[n];return n};function U1(n,r,s){const o=[],a=s||dg,f=n.length-1;for(let c=0;cr[0];if(f===2&&r[0]===r[1])return()=>r[1];const c=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),r=[...r].reverse());const h=U1(r,o,a),p=h.length,m=y=>{if(c&&y1)for(;vm(en(n[0],n[f-1],y)):m}function H1(n,r){const s=n[n.length-1];for(let o=1;o<=r;o++){const a=Cr(0,r,o);n.push(Re(s,1,a))}}function W1(n){const r=[0];return H1(r,n.length-1),r}function $1(n,r){return n.map(s=>s*r)}function K1(n,r){return n.map(()=>r||mg).splice(0,n.length-1)}function po({duration:n=300,keyframes:r,times:s,ease:o="easeInOut"}){const a=z1(o)?o.map(Yh):Yh(o),f={done:!1,value:r[0]},c=$1(s&&s.length===r.length?s:W1(r),n),h=b1(c,r,{ease:Array.isArray(a)?a:K1(r,a)});return{calculatedDuration:n,next:p=>(f.value=h(p),f.done=p>=n,f)}}const Y1=n=>{const r=({timestamp:s})=>n(s);return{start:()=>Se.update(r,!0),stop:()=>Tn(r),now:()=>be.isProcessing?be.timestamp:Ht.now()}},G1={decay:$h,inertia:$h,tween:po,keyframes:po,spring:pg},Q1=n=>n/100;class Xu extends cg{constructor(r){super(r),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:p}=this.options;p&&p()};const{name:s,motionValue:o,element:a,keyframes:f}=this.options,c=(a==null?void 0:a.KeyframeResolver)||Qu,h=(p,m)=>this.onKeyframesResolved(p,m);this.resolver=new c(f,h,s,o,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(r){const{type:s="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:f,velocity:c=0}=this.options,h=Iu(s)?s:G1[s]||po;let p,m;h!==po&&typeof r[0]!="number"&&(p=Bi(Q1,dg(r[0],r[1])),r=[0,100]);const y=h({...this.options,keyframes:r});f==="mirror"&&(m=h({...this.options,keyframes:[...r].reverse(),velocity:-c})),y.calculatedDuration===null&&(y.calculatedDuration=Lm(y));const{calculatedDuration:v}=y,x=v+a,N=x*(o+1)-a;return{generator:y,mirroredGenerator:m,mapPercentToKeyframes:p,calculatedDuration:v,resolvedDuration:x,totalDuration:N}}onPostResolved(){const{autoplay:r=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!r?this.pause():this.state=this.pendingPlayState}tick(r,s=!1){const{resolved:o}=this;if(!o){const{keyframes:X}=this.options;return{done:!0,value:X[X.length-1]}}const{finalKeyframe:a,generator:f,mirroredGenerator:c,mapPercentToKeyframes:h,keyframes:p,calculatedDuration:m,totalDuration:y,resolvedDuration:v}=o;if(this.startTime===null)return f.next(0);const{delay:x,repeat:N,repeatType:k,repeatDelay:C,onUpdate:P}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-y/this.speed,this.startTime)),s?this.currentTime=r:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(r-this.startTime)*this.speed;const M=this.currentTime-x*(this.speed>=0?1:-1),F=this.speed>=0?M<0:M>y;this.currentTime=Math.max(M,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=y);let B=this.currentTime,q=f;if(N){const X=Math.min(this.currentTime,y)/v;let ge=Math.floor(X),ke=X%1;!ke&&X>=1&&(ke=1),ke===1&&ge--,ge=Math.min(ge,N+1),!!(ge%2)&&(k==="reverse"?(ke=1-ke,C&&(ke-=C/v)):k==="mirror"&&(q=c)),B=en(0,1,ke)*v}const b=F?{done:!1,value:p[0]}:q.next(B);h&&(b.value=h(b.value));let{done:Z}=b;!F&&m!==null&&(Z=this.speed>=0?this.currentTime>=y:this.currentTime<=0);const se=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Z);return se&&a!==void 0&&(b.value=Do(p,this.options,a)),P&&P(b.value),se&&this.finish(),b}get duration(){const{resolved:r}=this;return r?Jt(r.calculatedDuration):0}get time(){return Jt(this.currentTime)}set time(r){r=Zt(r),this.currentTime=r,this.holdTime!==null||this.speed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.speed)}get speed(){return this.playbackSpeed}set speed(r){const s=this.playbackSpeed!==r;this.playbackSpeed=r,s&&(this.time=Jt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:r=Y1,onPlay:s,startTime:o}=this.options;this.driver||(this.driver=r(f=>this.tick(f))),s&&s();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=o??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var r;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(r=this.currentTime)!==null&&r!==void 0?r:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:r}=this.options;r&&r()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}}const q1=new Set(["opacity","clipPath","filter","transform"]);function X1(n,r,s,{delay:o=0,duration:a=300,repeat:f=0,repeatType:c="loop",ease:h="easeInOut",times:p}={}){const m={[r]:s};p&&(m.offset=p);const y=Om(h,a);return Array.isArray(y)&&(m.easing=y),n.animate(m,{delay:o,duration:a,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:f+1,direction:c==="reverse"?"alternate":"normal"})}const Z1=Tu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),mo=10,J1=2e4;function eS(n){return Iu(n.type)||n.type==="spring"||!jm(n.ease)}function tS(n,r){const s=new Xu({...r,keyframes:n,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:n[0]};const a=[];let f=0;for(;!o.done&&fthis.onKeyframesResolved(c,h),s,o,a),this.resolver.scheduleResolve()}initPlayback(r,s){let{duration:o=300,times:a,ease:f,type:c,motionValue:h,name:p,startTime:m}=this.options;if(!h.owner||!h.owner.current)return!1;if(typeof f=="string"&&fo()&&nS(f)&&(f=gg[f]),eS(this.options)){const{onComplete:v,onUpdate:x,motionValue:N,element:k,...C}=this.options,P=tS(r,C);r=P.keyframes,r.length===1&&(r[1]=r[0]),o=P.duration,a=P.times,f=P.ease,c="keyframes"}const y=X1(h.owner.current,p,r,{...this.options,duration:o,times:a,ease:f});return y.startTime=m??this.calcStartTime(),this.pendingTimeline?(Ah(y,this.pendingTimeline),this.pendingTimeline=void 0):y.onfinish=()=>{const{onComplete:v}=this.options;h.set(Do(r,this.options,s)),v&&v(),this.cancel(),this.resolveFinishedPromise()},{animation:y,duration:o,times:a,type:c,ease:f,keyframes:r}}get duration(){const{resolved:r}=this;if(!r)return 0;const{duration:s}=r;return Jt(s)}get time(){const{resolved:r}=this;if(!r)return 0;const{animation:s}=r;return Jt(s.currentTime||0)}set time(r){const{resolved:s}=this;if(!s)return;const{animation:o}=s;o.currentTime=Zt(r)}get speed(){const{resolved:r}=this;if(!r)return 1;const{animation:s}=r;return s.playbackRate}set speed(r){const{resolved:s}=this;if(!s)return;const{animation:o}=s;o.playbackRate=r}get state(){const{resolved:r}=this;if(!r)return"idle";const{animation:s}=r;return s.playState}get startTime(){const{resolved:r}=this;if(!r)return null;const{animation:s}=r;return s.startTime}attachTimeline(r){if(!this._resolved)this.pendingTimeline=r;else{const{resolved:s}=this;if(!s)return yt;const{animation:o}=s;Ah(o,r)}return yt}play(){if(this.isStopped)return;const{resolved:r}=this;if(!r)return;const{animation:s}=r;s.playState==="finished"&&this.updateFinishedPromise(),s.play()}pause(){const{resolved:r}=this;if(!r)return;const{animation:s}=r;s.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:r}=this;if(!r)return;const{animation:s,keyframes:o,duration:a,type:f,ease:c,times:h}=r;if(s.playState==="idle"||s.playState==="finished")return;if(this.time){const{motionValue:m,onUpdate:y,onComplete:v,element:x,...N}=this.options,k=new Xu({...N,keyframes:o,duration:a,type:f,ease:c,times:h,isGenerator:!0}),C=Zt(this.time);m.setWithVelocity(k.sample(C-mo).value,k.sample(C).value,mo)}const{onStop:p}=this.options;p&&p(),this.cancel()}complete(){const{resolved:r}=this;r&&r.animation.finish()}cancel(){const{resolved:r}=this;r&&r.animation.cancel()}static supports(r){const{motionValue:s,name:o,repeatDelay:a,repeatType:f,damping:c,type:h}=r;if(!s||!s.owner||!(s.owner.current instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:m}=s.owner.getProps();return Z1()&&o&&q1.has(o)&&!p&&!m&&!a&&f!=="mirror"&&c!==0&&h!=="inertia"}}const rS={type:"spring",stiffness:500,damping:25,restSpeed:10},iS=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),sS={type:"keyframes",duration:.8},oS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},lS=(n,{keyframes:r})=>r.length>2?sS:Kn.has(n)?n.startsWith("scale")?iS(r[1]):rS:oS;function aS({when:n,delay:r,delayChildren:s,staggerChildren:o,staggerDirection:a,repeat:f,repeatType:c,repeatDelay:h,from:p,elapsed:m,...y}){return!!Object.keys(y).length}const Zu=(n,r,s,o={},a,f)=>c=>{const h=Fu(o,n)||{},p=h.delay||o.delay||0;let{elapsed:m=0}=o;m=m-Zt(p);let y={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:r.getVelocity(),...h,delay:-m,onUpdate:x=>{r.set(x),h.onUpdate&&h.onUpdate(x)},onComplete:()=>{c(),h.onComplete&&h.onComplete()},name:n,motionValue:r,element:f?void 0:a};aS(h)||(y={...y,...lS(n,y)}),y.duration&&(y.duration=Zt(y.duration)),y.repeatDelay&&(y.repeatDelay=Zt(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(y.duration=0,y.delay===0&&(v=!0)),v&&!f&&r.get()!==void 0){const x=Do(y.keyframes,h);if(x!==void 0)return Se.update(()=>{y.onUpdate(x),y.onComplete()}),new Dx([])}return!f&&Gh.supports(y)?new Gh(y):new Xu(y)};function uS({protectedKeys:n,needsAnimating:r},s){const o=n.hasOwnProperty(s)&&r[s]!==!0;return r[s]=!1,o}function yg(n,r,{delay:s=0,transitionOverride:o,type:a}={}){var f;let{transition:c=n.getDefaultTransition(),transitionEnd:h,...p}=r;o&&(c=o);const m=[],y=a&&n.animationState&&n.animationState.getState()[a];for(const v in p){const x=n.getValue(v,(f=n.latestValues[v])!==null&&f!==void 0?f:null),N=p[v];if(N===void 0||y&&uS(y,v))continue;const k={delay:s,...Fu(c||{},v)};let C=!1;if(window.MotionHandoffAnimation){const M=Um(n);if(M){const F=window.MotionHandoffAnimation(M,v,Se);F!==null&&(k.startTime=F,C=!0)}}eu(n,v),x.start(Zu(v,x,N,n.shouldReduceMotion&&Bm.has(v)?{type:!1}:k,n,C));const P=x.animation;P&&m.push(P)}return h&&Promise.all(m).then(()=>{Se.update(()=>{h&&bx(n,h)})}),m}function lu(n,r,s={}){var o;const a=ko(n,r,s.type==="exit"?(o=n.presenceContext)===null||o===void 0?void 0:o.custom:void 0);let{transition:f=n.getDefaultTransition()||{}}=a||{};s.transitionOverride&&(f=s.transitionOverride);const c=a?()=>Promise.all(yg(n,a,s)):()=>Promise.resolve(),h=n.variantChildren&&n.variantChildren.size?(m=0)=>{const{delayChildren:y=0,staggerChildren:v,staggerDirection:x}=f;return cS(n,r,y+m,v,x,s)}:()=>Promise.resolve(),{when:p}=f;if(p){const[m,y]=p==="beforeChildren"?[c,h]:[h,c];return m().then(()=>y())}else return Promise.all([c(),h(s.delay)])}function cS(n,r,s=0,o=0,a=1,f){const c=[],h=(n.variantChildren.size-1)*o,p=a===1?(m=0)=>m*o:(m=0)=>h-m*o;return Array.from(n.variantChildren).sort(fS).forEach((m,y)=>{m.notify("AnimationStart",r),c.push(lu(m,r,{...f,delay:s+p(y)}).then(()=>m.notify("AnimationComplete",r)))}),Promise.all(c)}function fS(n,r){return n.sortNodePosition(r)}function dS(n,r,s={}){n.notify("AnimationStart",r);let o;if(Array.isArray(r)){const a=r.map(f=>lu(n,f,s));o=Promise.all(a)}else if(typeof r=="string")o=lu(n,r,s);else{const a=typeof r=="function"?ko(n,r,s.custom):r;o=Promise.all(yg(n,a,s))}return o.then(()=>{n.notify("AnimationComplete",r)})}const hS=Pu.length;function vg(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?vg(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const r={};for(let s=0;sPromise.all(r.map(({animation:s,options:o})=>dS(n,s,o)))}function yS(n){let r=gS(n),s=Qh(),o=!0;const a=p=>(m,y)=>{var v;const x=ko(n,y,p==="exit"?(v=n.presenceContext)===null||v===void 0?void 0:v.custom:void 0);if(x){const{transition:N,transitionEnd:k,...C}=x;m={...m,...C,...k}}return m};function f(p){r=p(n)}function c(p){const{props:m}=n,y=vg(n.parent)||{},v=[],x=new Set;let N={},k=1/0;for(let P=0;Pk&&q,ge=!1;const ke=Array.isArray(B)?B:[B];let tt=ke.reduce(a(M),{});b===!1&&(tt={});const{prevResolvedValues:ct={}}=F,qe={...ct,...tt},nt=le=>{X=!0,x.has(le)&&(ge=!0,x.delete(le)),F.needsAnimating[le]=!0;const U=n.getValue(le);U&&(U.liveStyle=!1)};for(const le in qe){const U=tt[le],J=ct[le];if(N.hasOwnProperty(le))continue;let $=!1;Xa(U)&&Xa(J)?$=!_m(U,J):$=U!==J,$?U!=null?nt(le):x.add(le):U!==void 0&&x.has(le)?nt(le):F.protectedKeys[le]=!0}F.prevProp=B,F.prevResolvedValues=tt,F.isActive&&(N={...N,...tt}),o&&n.blockInitialAnimation&&(X=!1),X&&(!(Z&&se)||ge)&&v.push(...ke.map(le=>({animation:le,options:{type:M}})))}if(x.size){const P={};x.forEach(M=>{const F=n.getBaseTarget(M),B=n.getValue(M);B&&(B.liveStyle=!0),P[M]=F??null}),v.push({animation:P})}let C=!!v.length;return o&&(m.initial===!1||m.initial===m.animate)&&!n.manuallyAnimateOnMount&&(C=!1),o=!1,C?r(v):Promise.resolve()}function h(p,m){var y;if(s[p].isActive===m)return Promise.resolve();(y=n.variantChildren)===null||y===void 0||y.forEach(x=>{var N;return(N=x.animationState)===null||N===void 0?void 0:N.setActive(p,m)}),s[p].isActive=m;const v=c(p);for(const x in s)s[x].protectedKeys={};return v}return{animateChanges:c,setActive:h,setAnimateFunction:f,getState:()=>s,reset:()=>{s=Qh(),o=!0}}}function vS(n,r){return typeof r=="string"?r!==n:Array.isArray(r)?!_m(r,n):!1}function In(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qh(){return{animate:In(!0),whileInView:In(),whileHover:In(),whileTap:In(),whileDrag:In(),whileFocus:In(),exit:In()}}class Pn{constructor(r){this.isMounted=!1,this.node=r}update(){}}class wS extends Pn{constructor(r){super(r),r.animationState||(r.animationState=yS(r))}updateAnimationControlsSubscription(){const{animate:r}=this.node.getProps();Co(r)&&(this.unmountControls=r.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.node.getProps(),{animate:s}=this.node.prevProps||{};r!==s&&this.updateAnimationControlsSubscription()}unmount(){var r;this.node.animationState.reset(),(r=this.unmountControls)===null||r===void 0||r.call(this)}}let xS=0;class SS extends Pn{constructor(){super(...arguments),this.id=xS++}update(){if(!this.node.presenceContext)return;const{isPresent:r,onExitComplete:s}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||r===o)return;const a=this.node.animationState.setActive("exit",!r);s&&!r&&a.then(()=>s(this.id))}mount(){const{register:r}=this.node.presenceContext||{};r&&(this.unmount=r(this.id))}unmount(){}}const TS={animation:{Feature:wS},exit:{Feature:SS}};function ji(n,r,s,o={passive:!0}){return n.addEventListener(r,s,o),()=>n.removeEventListener(r,s)}function zi(n){return{point:{x:n.pageX,y:n.pageY}}}const ES=n=>r=>zu(r)&&n(r,zi(r));function Ci(n,r,s,o){return ji(n,r,ES(s),o)}const qh=(n,r)=>Math.abs(n-r);function PS(n,r){const s=qh(n.x,r.x),o=qh(n.y,r.y);return Math.sqrt(s**2+o**2)}class wg{constructor(r,s,{transformPagePoint:o,contextWindow:a,dragSnapToOrigin:f=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Fa(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,N=PS(v.offset,{x:0,y:0})>=3;if(!x&&!N)return;const{point:k}=v,{timestamp:C}=be;this.history.push({...k,timestamp:C});const{onStart:P,onMove:M}=this.handlers;x||(P&&P(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),M&&M(this.lastMoveEvent,v)},this.handlePointerMove=(v,x)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=Va(x,this.transformPagePoint),Se.update(this.updatePoint,!0)},this.handlePointerUp=(v,x)=>{this.end();const{onEnd:N,onSessionEnd:k,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=Fa(v.type==="pointercancel"?this.lastMoveEventInfo:Va(x,this.transformPagePoint),this.history);this.startEvent&&N&&N(v,P),k&&k(v,P)},!zu(r))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=o,this.contextWindow=a||window;const c=zi(r),h=Va(c,this.transformPagePoint),{point:p}=h,{timestamp:m}=be;this.history=[{...p,timestamp:m}];const{onSessionStart:y}=s;y&&y(r,Fa(h,this.history)),this.removeListeners=Bi(Ci(this.contextWindow,"pointermove",this.handlePointerMove),Ci(this.contextWindow,"pointerup",this.handlePointerUp),Ci(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),Tn(this.updatePoint)}}function Va(n,r){return r?{point:r(n.point)}:n}function Xh(n,r){return{x:n.x-r.x,y:n.y-r.y}}function Fa({point:n},r){return{point:n,delta:Xh(n,xg(r)),offset:Xh(n,CS(r)),velocity:RS(r,.1)}}function CS(n){return n[0]}function xg(n){return n[n.length-1]}function RS(n,r){if(n.length<2)return{x:0,y:0};let s=n.length-1,o=null;const a=xg(n);for(;s>=0&&(o=n[s],!(a.timestamp-o.timestamp>Zt(r)));)s--;if(!o)return{x:0,y:0};const f=Jt(a.timestamp-o.timestamp);if(f===0)return{x:0,y:0};const c={x:(a.x-o.x)/f,y:(a.y-o.y)/f};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}const Sg=1e-4,kS=1-Sg,DS=1+Sg,Tg=.01,NS=0-Tg,AS=0+Tg;function et(n){return n.max-n.min}function _S(n,r,s){return Math.abs(n-r)<=s}function Zh(n,r,s,o=.5){n.origin=o,n.originPoint=Re(r.min,r.max,n.origin),n.scale=et(s)/et(r),n.translate=Re(s.min,s.max,n.origin)-n.originPoint,(n.scale>=kS&&n.scale<=DS||isNaN(n.scale))&&(n.scale=1),(n.translate>=NS&&n.translate<=AS||isNaN(n.translate))&&(n.translate=0)}function Ri(n,r,s,o){Zh(n.x,r.x,s.x,o?o.originX:void 0),Zh(n.y,r.y,s.y,o?o.originY:void 0)}function Jh(n,r,s){n.min=s.min+r.min,n.max=n.min+et(r)}function LS(n,r,s){Jh(n.x,r.x,s.x),Jh(n.y,r.y,s.y)}function ep(n,r,s){n.min=r.min-s.min,n.max=n.min+et(r)}function ki(n,r,s){ep(n.x,r.x,s.x),ep(n.y,r.y,s.y)}function MS(n,{min:r,max:s},o){return r!==void 0&&ns&&(n=o?Re(s,n,o.max):Math.min(n,s)),n}function tp(n,r,s){return{min:r!==void 0?n.min+r:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function jS(n,{top:r,left:s,bottom:o,right:a}){return{x:tp(n.x,s,a),y:tp(n.y,r,o)}}function np(n,r){let s=r.min-n.min,o=r.max-n.max;return r.max-r.mino?s=Cr(r.min,r.max-o,n.min):o>a&&(s=Cr(n.min,n.max-a,r.min)),en(0,1,s)}function FS(n,r){const s={};return r.min!==void 0&&(s.min=r.min-n.min),r.max!==void 0&&(s.max=r.max-n.min),s}const au=.35;function IS(n=au){return n===!1?n=0:n===!0&&(n=au),{x:rp(n,"left","right"),y:rp(n,"top","bottom")}}function rp(n,r,s){return{min:ip(n,r),max:ip(n,s)}}function ip(n,r){return typeof n=="number"?n:n[r]||0}const sp=()=>({translate:0,scale:1,origin:0,originPoint:0}),Sr=()=>({x:sp(),y:sp()}),op=()=>({min:0,max:0}),Me=()=>({x:op(),y:op()});function Ct(n){return[n("x"),n("y")]}function Eg({top:n,left:r,right:s,bottom:o}){return{x:{min:r,max:s},y:{min:n,max:o}}}function BS({x:n,y:r}){return{top:r.min,right:n.max,bottom:r.max,left:n.min}}function zS(n,r){if(!r)return n;const s=r({x:n.left,y:n.top}),o=r({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:o.y,right:o.x}}function Ia(n){return n===void 0||n===1}function uu({scale:n,scaleX:r,scaleY:s}){return!Ia(n)||!Ia(r)||!Ia(s)}function Bn(n){return uu(n)||Pg(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function Pg(n){return lp(n.x)||lp(n.y)}function lp(n){return n&&n!=="0%"}function go(n,r,s){const o=n-s,a=r*o;return s+a}function ap(n,r,s,o,a){return a!==void 0&&(n=go(n,a,o)),go(n,s,o)+r}function cu(n,r=0,s=1,o,a){n.min=ap(n.min,r,s,o,a),n.max=ap(n.max,r,s,o,a)}function Cg(n,{x:r,y:s}){cu(n.x,r.translate,r.scale,r.originPoint),cu(n.y,s.translate,s.scale,s.originPoint)}const up=.999999999999,cp=1.0000000000001;function US(n,r,s,o=!1){const a=s.length;if(!a)return;r.x=r.y=1;let f,c;for(let h=0;hup&&(r.x=1),r.yup&&(r.y=1)}function Tr(n,r){n.min=n.min+r,n.max=n.max+r}function fp(n,r,s,o,a=.5){const f=Re(n.min,n.max,a);cu(n,r,s,f,o)}function Er(n,r){fp(n.x,r.x,r.scaleX,r.scale,r.originX),fp(n.y,r.y,r.scaleY,r.scale,r.originY)}function Rg(n,r){return Eg(zS(n.getBoundingClientRect(),r))}function bS(n,r,s){const o=Rg(n,s),{scroll:a}=r;return a&&(Tr(o.x,a.offset.x),Tr(o.y,a.offset.y)),o}const kg=({current:n})=>n?n.ownerDocument.defaultView:null,HS=new WeakMap;class WS{constructor(r){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Me(),this.visualElement=r}start(r,{snapToCursor:s=!1}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const a=y=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(zi(y).point)},f=(y,v)=>{const{drag:x,dragPropagation:N,onDragStart:k}=this.getProps();if(x&&!N&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Fx(x),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ct(P=>{let M=this.getAxisMotionValue(P).get()||0;if(bt.test(M)){const{projection:F}=this.visualElement;if(F&&F.layout){const B=F.layout.layoutBox[P];B&&(M=et(B)*(parseFloat(M)/100))}}this.originPoint[P]=M}),k&&Se.postRender(()=>k(y,v)),eu(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},c=(y,v)=>{const{dragPropagation:x,dragDirectionLock:N,onDirectionLock:k,onDrag:C}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:P}=v;if(N&&this.currentDirection===null){this.currentDirection=$S(P),this.currentDirection!==null&&k&&k(this.currentDirection);return}this.updateAxis("x",v.point,P),this.updateAxis("y",v.point,P),this.visualElement.render(),C&&C(y,v)},h=(y,v)=>this.stop(y,v),p=()=>Ct(y=>{var v;return this.getAnimationState(y)==="paused"&&((v=this.getAxisMotionValue(y).animation)===null||v===void 0?void 0:v.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new wg(r,{onSessionStart:a,onStart:f,onMove:c,onSessionEnd:h,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,contextWindow:kg(this.visualElement)})}stop(r,s){const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:a}=s;this.startAnimation(a);const{onDragEnd:f}=this.getProps();f&&Se.postRender(()=>f(r,s))}cancel(){this.isDragging=!1;const{projection:r,animationState:s}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(r,s,o){const{drag:a}=this.getProps();if(!o||!eo(r,a,this.currentDirection))return;const f=this.getAxisMotionValue(r);let c=this.originPoint[r]+o[r];this.constraints&&this.constraints[r]&&(c=MS(c,this.constraints[r],this.elastic[r])),f.set(c)}resolveConstraints(){var r;const{dragConstraints:s,dragElastic:o}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(r=this.visualElement.projection)===null||r===void 0?void 0:r.layout,f=this.constraints;s&&wr(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&a?this.constraints=jS(a.layoutBox,s):this.constraints=!1,this.elastic=IS(o),f!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&Ct(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=FS(a.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:s}=this.getProps();if(!r||!wr(r))return!1;const o=r.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const f=bS(o,a.root,this.visualElement.getTransformPagePoint());let c=OS(a.layout.layoutBox,f);if(s){const h=s(BS(c));this.hasMutatedConstraints=!!h,h&&(c=Eg(h))}return c}startAnimation(r){const{drag:s,dragMomentum:o,dragElastic:a,dragTransition:f,dragSnapToOrigin:c,onDragTransitionEnd:h}=this.getProps(),p=this.constraints||{},m=Ct(y=>{if(!eo(y,s,this.currentDirection))return;let v=p[y]||{};c&&(v={min:0,max:0});const x=a?200:1e6,N=a?40:1e7,k={type:"inertia",velocity:o?r[y]:0,bounceStiffness:x,bounceDamping:N,timeConstant:750,restDelta:1,restSpeed:10,...f,...v};return this.startAxisValueAnimation(y,k)});return Promise.all(m).then(h)}startAxisValueAnimation(r,s){const o=this.getAxisMotionValue(r);return eu(this.visualElement,r),o.start(Zu(r,o,0,s,this.visualElement,!1))}stopAnimation(){Ct(r=>this.getAxisMotionValue(r).stop())}pauseAnimation(){Ct(r=>{var s;return(s=this.getAxisMotionValue(r).animation)===null||s===void 0?void 0:s.pause()})}getAnimationState(r){var s;return(s=this.getAxisMotionValue(r).animation)===null||s===void 0?void 0:s.state}getAxisMotionValue(r){const s=`_drag${r.toUpperCase()}`,o=this.visualElement.getProps(),a=o[s];return a||this.visualElement.getValue(r,(o.initial?o.initial[r]:void 0)||0)}snapToCursor(r){Ct(s=>{const{drag:o}=this.getProps();if(!eo(s,o,this.currentDirection))return;const{projection:a}=this.visualElement,f=this.getAxisMotionValue(s);if(a&&a.layout){const{min:c,max:h}=a.layout.layoutBox[s];f.set(r[s]-Re(c,h,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:s}=this.getProps(),{projection:o}=this.visualElement;if(!wr(s)||!o||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Ct(c=>{const h=this.getAxisMotionValue(c);if(h&&this.constraints!==!1){const p=h.get();a[c]=VS({min:p,max:p},this.constraints[c])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Ct(c=>{if(!eo(c,r,null))return;const h=this.getAxisMotionValue(c),{min:p,max:m}=this.constraints[c];h.set(Re(p,m,a[c]))})}addListeners(){if(!this.visualElement.current)return;HS.set(this.visualElement,this);const r=this.visualElement.current,s=Ci(r,"pointerdown",p=>{const{drag:m,dragListener:y=!0}=this.getProps();m&&y&&this.start(p)}),o=()=>{const{dragConstraints:p}=this.getProps();wr(p)&&p.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,f=a.addEventListener("measure",o);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Se.read(o);const c=ji(window,"resize",()=>this.scalePositionWithinConstraints()),h=a.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m})=>{this.isDragging&&m&&(Ct(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=p[y].translate,v.set(v.get()+p[y].translate))}),this.visualElement.render())});return()=>{c(),s(),f(),h&&h()}}getProps(){const r=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:o=!1,dragPropagation:a=!1,dragConstraints:f=!1,dragElastic:c=au,dragMomentum:h=!0}=r;return{...r,drag:s,dragDirectionLock:o,dragPropagation:a,dragConstraints:f,dragElastic:c,dragMomentum:h}}}function eo(n,r,s){return(r===!0||r===n)&&(s===null||s===n)}function $S(n,r=10){let s=null;return Math.abs(n.y)>r?s="y":Math.abs(n.x)>r&&(s="x"),s}class KS extends Pn{constructor(r){super(r),this.removeGroupControls=yt,this.removeListeners=yt,this.controls=new WS(r)}mount(){const{dragControls:r}=this.node.getProps();r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||yt}unmount(){this.removeGroupControls(),this.removeListeners()}}const dp=n=>(r,s)=>{n&&Se.postRender(()=>n(r,s))};class YS extends Pn{constructor(){super(...arguments),this.removePointerDownListener=yt}onPointerDown(r){this.session=new wg(r,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:kg(this.node)})}createPanHandlers(){const{onPanSessionStart:r,onPanStart:s,onPan:o,onPanEnd:a}=this.node.getProps();return{onSessionStart:dp(r),onStart:dp(s),onMove:o,onEnd:(f,c)=>{delete this.session,a&&Se.postRender(()=>a(f,c))}}}mount(){this.removePointerDownListener=Ci(this.node.current,"pointerdown",r=>this.onPointerDown(r))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const lo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function hp(n,r){return r.max===r.min?0:n/(r.max-r.min)*100}const wi={correct:(n,r)=>{if(!r.target)return n;if(typeof n=="string")if(ne.test(n))n=parseFloat(n);else return n;const s=hp(n,r.target.x),o=hp(n,r.target.y);return`${s}% ${o}%`}},GS={correct:(n,{treeScale:r,projectionDelta:s})=>{const o=n,a=En.parse(n);if(a.length>5)return o;const f=En.createTransformer(n),c=typeof a[0]!="number"?1:0,h=s.x.scale*r.x,p=s.y.scale*r.y;a[0+c]/=h,a[1+c]/=p;const m=Re(h,p,.5);return typeof a[2+c]=="number"&&(a[2+c]/=m),typeof a[3+c]=="number"&&(a[3+c]/=m),f(a)}};class QS extends H.Component{componentDidMount(){const{visualElement:r,layoutGroup:s,switchLayoutGroup:o,layoutId:a}=this.props,{projection:f}=r;gx(qS),f&&(s.group&&s.group.add(f),o&&o.register&&a&&o.register(f),f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,onExitComplete:()=>this.safeToRemove()})),lo.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:s,visualElement:o,drag:a,isPresent:f}=this.props,c=o.projection;return c&&(c.isPresent=f,a||r.layoutDependency!==s||s===void 0?c.willUpdate():this.safeToRemove(),r.isPresent!==f&&(f?c.promote():c.relegate()||Se.postRender(()=>{const h=c.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:r}=this.props.visualElement;r&&(r.root.didUpdate(),Ru.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:r,layoutGroup:s,switchLayoutGroup:o}=this.props,{projection:a}=r;a&&(a.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(a),o&&o.deregister&&o.deregister(a))}safeToRemove(){const{safeToRemove:r}=this.props;r&&r()}render(){return null}}function Dg(n){const[r,s]=_w(),o=H.useContext(dm);return A.jsx(QS,{...n,layoutGroup:o,switchLayoutGroup:H.useContext(wm),isPresent:r,safeToRemove:s})}const qS={borderRadius:{...wi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wi,borderTopRightRadius:wi,borderBottomLeftRadius:wi,borderBottomRightRadius:wi,boxShadow:GS};function XS(n,r,s){const o=Qe(n)?n:Li(n);return o.start(Zu("",o,r,s)),o.animation}function ZS(n){return n instanceof SVGElement&&n.tagName!=="svg"}const JS=(n,r)=>n.depth-r.depth;class eT{constructor(){this.children=[],this.isDirty=!1}add(r){Uu(this.children,r),this.isDirty=!0}remove(r){bu(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(JS),this.isDirty=!1,this.children.forEach(r)}}function tT(n,r){const s=Ht.now(),o=({timestamp:a})=>{const f=a-s;f>=r&&(Tn(o),n(f-r))};return Se.read(o,!0),()=>Tn(o)}const Ng=["TopLeft","TopRight","BottomLeft","BottomRight"],nT=Ng.length,pp=n=>typeof n=="string"?parseFloat(n):n,mp=n=>typeof n=="number"||ne.test(n);function rT(n,r,s,o,a,f){a?(n.opacity=Re(0,s.opacity!==void 0?s.opacity:1,iT(o)),n.opacityExit=Re(r.opacity!==void 0?r.opacity:1,0,sT(o))):f&&(n.opacity=Re(r.opacity!==void 0?r.opacity:1,s.opacity!==void 0?s.opacity:1,o));for(let c=0;cor?1:s(Cr(n,r,o))}function yp(n,r){n.min=r.min,n.max=r.max}function Pt(n,r){yp(n.x,r.x),yp(n.y,r.y)}function vp(n,r){n.translate=r.translate,n.scale=r.scale,n.originPoint=r.originPoint,n.origin=r.origin}function wp(n,r,s,o,a){return n-=r,n=go(n,1/s,o),a!==void 0&&(n=go(n,1/a,o)),n}function oT(n,r=0,s=1,o=.5,a,f=n,c=n){if(bt.test(r)&&(r=parseFloat(r),r=Re(c.min,c.max,r/100)-c.min),typeof r!="number")return;let h=Re(f.min,f.max,o);n===f&&(h-=r),n.min=wp(n.min,r,s,h,a),n.max=wp(n.max,r,s,h,a)}function xp(n,r,[s,o,a],f,c){oT(n,r[s],r[o],r[a],r.scale,f,c)}const lT=["x","scaleX","originX"],aT=["y","scaleY","originY"];function Sp(n,r,s,o){xp(n.x,r,lT,s?s.x:void 0,o?o.x:void 0),xp(n.y,r,aT,s?s.y:void 0,o?o.y:void 0)}function Tp(n){return n.translate===0&&n.scale===1}function _g(n){return Tp(n.x)&&Tp(n.y)}function Ep(n,r){return n.min===r.min&&n.max===r.max}function uT(n,r){return Ep(n.x,r.x)&&Ep(n.y,r.y)}function Pp(n,r){return Math.round(n.min)===Math.round(r.min)&&Math.round(n.max)===Math.round(r.max)}function Lg(n,r){return Pp(n.x,r.x)&&Pp(n.y,r.y)}function Cp(n){return et(n.x)/et(n.y)}function Rp(n,r){return n.translate===r.translate&&n.scale===r.scale&&n.originPoint===r.originPoint}class cT{constructor(){this.members=[]}add(r){Uu(this.members,r),r.scheduleRender()}remove(r){if(bu(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(r){const s=this.members.findIndex(a=>r===a);if(s===0)return!1;let o;for(let a=s;a>=0;a--){const f=this.members[a];if(f.isPresent!==!1){o=f;break}}return o?(this.promote(o),!0):!1}promote(r,s){const o=this.lead;if(r!==o&&(this.prevLead=o,this.lead=r,r.show(),o)){o.instance&&o.scheduleRender(),r.scheduleRender(),r.resumeFrom=o,s&&(r.resumeFrom.preserveOpacity=!0),o.snapshot&&(r.snapshot=o.snapshot,r.snapshot.latestValues=o.animationValues||o.latestValues),r.root&&r.root.isUpdating&&(r.isLayoutDirty=!0);const{crossfade:a}=r.options;a===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(r=>{const{options:s,resumingFrom:o}=r;s.onExitComplete&&s.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(r=>{r.instance&&r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function fT(n,r,s){let o="";const a=n.x.translate/r.x,f=n.y.translate/r.y,c=(s==null?void 0:s.z)||0;if((a||f||c)&&(o=`translate3d(${a}px, ${f}px, ${c}px) `),(r.x!==1||r.y!==1)&&(o+=`scale(${1/r.x}, ${1/r.y}) `),s){const{transformPerspective:m,rotate:y,rotateX:v,rotateY:x,skewX:N,skewY:k}=s;m&&(o=`perspective(${m}px) ${o}`),y&&(o+=`rotate(${y}deg) `),v&&(o+=`rotateX(${v}deg) `),x&&(o+=`rotateY(${x}deg) `),N&&(o+=`skewX(${N}deg) `),k&&(o+=`skewY(${k}deg) `)}const h=n.x.scale*r.x,p=n.y.scale*r.y;return(h!==1||p!==1)&&(o+=`scale(${h}, ${p})`),o||"none"}const zn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ti=typeof window<"u"&&window.MotionDebug!==void 0,Ba=["","X","Y","Z"],dT={visibility:"hidden"},kp=1e3;let hT=0;function za(n,r,s,o){const{latestValues:a}=r;a[n]&&(s[n]=a[n],r.setStaticValue(n,0),o&&(o[n]=0))}function Mg(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:r}=n.options;if(!r)return;const s=Um(r);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:a,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",Se,!(a||f))}const{parent:o}=n;o&&!o.hasCheckedOptimisedAppear&&Mg(o)}function jg({attachResizeListener:n,defaultParent:r,measureScroll:s,checkIsScrollRoot:o,resetTransform:a}){return class{constructor(c={},h=r==null?void 0:r()){this.id=hT++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ti&&(zn.totalNodes=zn.resolvedTargetDeltas=zn.recalculatedProjection=0),this.nodes.forEach(gT),this.nodes.forEach(ST),this.nodes.forEach(TT),this.nodes.forEach(yT),Ti&&window.MotionDebug.record(zn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let p=0;pthis.root.updateBlockedByResize=!1;n(c,()=>{this.root.updateBlockedByResize=!0,v&&v(),v=tT(x,250),lo.hasAnimatedSinceResize&&(lo.hasAnimatedSinceResize=!1,this.nodes.forEach(Np))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&y&&(p||m)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:x,hasRelativeLayoutChanged:N,layout:k})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||y.getDefaultTransition()||kT,{onLayoutAnimationStart:P,onLayoutAnimationComplete:M}=y.getProps(),F=!this.targetLayout||!Lg(this.targetLayout,k),B=!x&&N;if(this.options.layoutRoot||this.resumeFrom||B||x&&(F||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(v,B);const q={...Fu(C,"layout"),onPlay:P,onComplete:M};(y.shouldReduceMotion||this.options.layoutRoot)&&(q.delay=0,q.type=!1),this.startAnimation(q)}else x||Np(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=k})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Tn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ET),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Mg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!et(this.snapshot.measuredBox.x)&&!et(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let p=0;p{const b=q/1e3;Ap(v.x,c.x,b),Ap(v.y,c.y,b),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ki(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),CT(this.relativeTarget,this.relativeTargetOrigin,x,b),B&&uT(this.relativeTarget,B)&&(this.isProjectionDirty=!1),B||(B=Me()),Pt(B,this.relativeTarget)),C&&(this.animationValues=y,rT(y,m,this.latestValues,b,F,M)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Tn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Se.update(()=>{lo.hasAnimatedSinceResize=!0,this.currentAnimation=XS(0,kp,{...c,onUpdate:h=>{this.mixTargetDelta(h),c.onUpdate&&c.onUpdate(h)},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(kp),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:h,target:p,layout:m,latestValues:y}=c;if(!(!h||!p||!m)){if(this!==c&&this.layout&&m&&Og(this.options.animationType,this.layout.layoutBox,m.layoutBox)){p=this.target||Me();const v=et(this.layout.layoutBox.x);p.x.min=c.target.x.min,p.x.max=p.x.min+v;const x=et(this.layout.layoutBox.y);p.y.min=c.target.y.min,p.y.max=p.y.min+x}Pt(h,p),Er(h,y),Ri(this.projectionDeltaWithTransform,this.layoutCorrected,h,y)}}registerSharedNode(c,h){this.sharedNodes.has(c)||this.sharedNodes.set(c,new cT),this.sharedNodes.get(c).add(h);const m=h.options.initialPromotionConfig;h.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(h):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var c;const{layoutId:h}=this.options;return h?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:h}=this.options;return h?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:h,preserveFollowOpacity:p}={}){const m=this.getStack();m&&m.promote(this,p),c&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let h=!1;const{latestValues:p}=c;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(h=!0),!h)return;const m={};p.z&&za("z",c,m,this.animationValues);for(let y=0;y{var h;return(h=c.currentAnimation)===null||h===void 0?void 0:h.stop()}),this.root.nodes.forEach(Dp),this.root.sharedNodes.clear()}}}function pT(n){n.updateLayout()}function mT(n){var r;const s=((r=n.resumeFrom)===null||r===void 0?void 0:r.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&s&&n.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:a}=n.layout,{animationType:f}=n.options,c=s.source!==n.layout.source;f==="size"?Ct(v=>{const x=c?s.measuredBox[v]:s.layoutBox[v],N=et(x);x.min=o[v].min,x.max=x.min+N}):Og(f,s.layoutBox,o)&&Ct(v=>{const x=c?s.measuredBox[v]:s.layoutBox[v],N=et(o[v]);x.max=x.min+N,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[v].max=n.relativeTarget[v].min+N)});const h=Sr();Ri(h,o,s.layoutBox);const p=Sr();c?Ri(p,n.applyTransform(a,!0),s.measuredBox):Ri(p,o,s.layoutBox);const m=!_g(h);let y=!1;if(!n.resumeFrom){const v=n.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:x,layout:N}=v;if(x&&N){const k=Me();ki(k,s.layoutBox,x.layoutBox);const C=Me();ki(C,o,N.layoutBox),Lg(k,C)||(y=!0),v.options.layoutRoot&&(n.relativeTarget=C,n.relativeTargetOrigin=k,n.relativeParent=v)}}}n.notifyListeners("didUpdate",{layout:o,snapshot:s,delta:p,layoutDelta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:y})}else if(n.isLead()){const{onExitComplete:o}=n.options;o&&o()}n.options.transition=void 0}function gT(n){Ti&&zn.totalNodes++,n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function yT(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function vT(n){n.clearSnapshot()}function Dp(n){n.clearMeasurements()}function wT(n){n.isLayoutDirty=!1}function xT(n){const{visualElement:r}=n.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),n.resetTransform()}function Np(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function ST(n){n.resolveTargetDelta()}function TT(n){n.calcProjection()}function ET(n){n.resetSkewAndRotation()}function PT(n){n.removeLeadSnapshot()}function Ap(n,r,s){n.translate=Re(r.translate,0,s),n.scale=Re(r.scale,1,s),n.origin=r.origin,n.originPoint=r.originPoint}function _p(n,r,s,o){n.min=Re(r.min,s.min,o),n.max=Re(r.max,s.max,o)}function CT(n,r,s,o){_p(n.x,r.x,s.x,o),_p(n.y,r.y,s.y,o)}function RT(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const kT={duration:.45,ease:[.4,0,.1,1]},Lp=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),Mp=Lp("applewebkit/")&&!Lp("chrome/")?Math.round:yt;function jp(n){n.min=Mp(n.min),n.max=Mp(n.max)}function DT(n){jp(n.x),jp(n.y)}function Og(n,r,s){return n==="position"||n==="preserve-aspect"&&!_S(Cp(r),Cp(s),.2)}function NT(n){var r;return n!==n.root&&((r=n.scroll)===null||r===void 0?void 0:r.wasRoot)}const AT=jg({attachResizeListener:(n,r)=>ji(n,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ua={current:void 0},Vg=jg({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!Ua.current){const n=new AT({});n.mount(window),n.setOptions({layoutScroll:!0}),Ua.current=n}return Ua.current},resetTransform:(n,r)=>{n.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),_T={pan:{Feature:YS},drag:{Feature:KS,ProjectionNode:Vg,MeasureLayout:Dg}};function Op(n,r,s){const{props:o}=n;n.animationState&&o.whileHover&&n.animationState.setActive("whileHover",s==="Start");const a="onHover"+s,f=o[a];f&&Se.postRender(()=>f(r,zi(r)))}class LT extends Pn{mount(){const{current:r}=this.node;r&&(this.unmount=Lx(r,(s,o)=>(Op(this.node,o,"Start"),a=>Op(this.node,a,"End"))))}unmount(){}}class MT extends Pn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.node.current.matches(":focus-visible")}catch{r=!0}!r||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Bi(ji(this.node.current,"focus",()=>this.onFocus()),ji(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Vp(n,r,s){const{props:o}=n;n.animationState&&o.whileTap&&n.animationState.setActive("whileTap",s==="Start");const a="onTap"+(s==="End"?"":s),f=o[a];f&&Se.postRender(()=>f(r,zi(r)))}class jT extends Pn{mount(){const{current:r}=this.node;r&&(this.unmount=Vx(r,(s,o)=>(Vp(this.node,o,"Start"),(a,{success:f})=>Vp(this.node,a,f?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const fu=new WeakMap,ba=new WeakMap,OT=n=>{const r=fu.get(n.target);r&&r(n)},VT=n=>{n.forEach(OT)};function FT({root:n,...r}){const s=n||document;ba.has(s)||ba.set(s,{});const o=ba.get(s),a=JSON.stringify(r);return o[a]||(o[a]=new IntersectionObserver(VT,{root:n,...r})),o[a]}function IT(n,r,s){const o=FT(r);return fu.set(n,s),o.observe(n),()=>{fu.delete(n),o.unobserve(n)}}const BT={some:0,all:1};class zT extends Pn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:r={}}=this.node.getProps(),{root:s,margin:o,amount:a="some",once:f}=r,c={root:s?s.current:void 0,rootMargin:o,threshold:typeof a=="number"?a:BT[a]},h=p=>{const{isIntersecting:m}=p;if(this.isInView===m||(this.isInView=m,f&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:y,onViewportLeave:v}=this.node.getProps(),x=m?y:v;x&&x(p)};return IT(this.node.current,c,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:r,prevProps:s}=this.node;["amount","margin","root"].some(UT(r,s))&&this.startObserver()}unmount(){}}function UT({viewport:n={}},{viewport:r={}}={}){return s=>n[s]!==r[s]}const bT={inView:{Feature:zT},tap:{Feature:jT},focus:{Feature:MT},hover:{Feature:LT}},HT={layout:{ProjectionNode:Vg,MeasureLayout:Dg}},du={current:null},Fg={current:!1};function WT(){if(Fg.current=!0,!!Su)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),r=()=>du.current=n.matches;n.addListener(r),r()}else du.current=!1}const $T=[...ag,Ye,En],KT=n=>$T.find(lg(n)),Fp=new WeakMap;function YT(n,r,s){for(const o in r){const a=r[o],f=s[o];if(Qe(a))n.addValue(o,a);else if(Qe(f))n.addValue(o,Li(a,{owner:n}));else if(f!==a)if(n.hasValue(o)){const c=n.getValue(o);c.liveStyle===!0?c.jump(a):c.hasAnimated||c.set(a)}else{const c=n.getStaticValue(o);n.addValue(o,Li(c!==void 0?c:a,{owner:n}))}}for(const o in s)r[o]===void 0&&n.removeValue(o);return r}const Ip=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class GT{scrapeMotionValuesFromProps(r,s,o){return{}}constructor({parent:r,props:s,presenceContext:o,reducedMotionConfig:a,blockInitialAnimation:f,visualState:c},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Qu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const N=Ht.now();this.renderScheduledAtthis.bindToMotionValue(o,s)),Fg.current||WT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:du.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Fp.delete(this.current),this.projection&&this.projection.unmount(),Tn(this.notifyUpdate),Tn(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const s=this.features[r];s&&(s.unmount(),s.isMounted=!1)}this.current=null}bindToMotionValue(r,s){this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)();const o=Kn.has(r),a=s.on("change",h=>{this.latestValues[r]=h,this.props.onUpdate&&Se.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),f=s.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,r,s)),this.valueSubscriptions.set(r,()=>{a(),f(),c&&c(),s.owner&&s.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in Rr){const s=Rr[r];if(!s)continue;const{isEnabled:o,Feature:a}=s;if(!this.features[r]&&a&&o(this.props)&&(this.features[r]=new a(this)),this.features[r]){const f=this.features[r];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Me()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,s){this.latestValues[r]=s}update(r,s){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let o=0;os.variantChildren.delete(r)}addValue(r,s){const o=this.values.get(r);s!==o&&(o&&this.removeValue(r),this.bindToMotionValue(r,s),this.values.set(r,s),this.latestValues[r]=s.get())}removeValue(r){this.values.delete(r);const s=this.valueSubscriptions.get(r);s&&(s(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,s){if(this.props.values&&this.props.values[r])return this.props.values[r];let o=this.values.get(r);return o===void 0&&s!==void 0&&(o=Li(s===null?void 0:s,{owner:this}),this.addValue(r,o)),o}readValue(r,s){var o;let a=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:(o=this.getBaseTargetFromProps(this.props,r))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,r,this.options);return a!=null&&(typeof a=="string"&&(sg(a)||qm(a))?a=parseFloat(a):!KT(a)&&En.test(s)&&(a=ng(r,s)),this.setBaseTarget(r,Qe(a)?a.get():a)),Qe(a)?a.get():a}setBaseTarget(r,s){this.baseTarget[r]=s}getBaseTarget(r){var s;const{initial:o}=this.props;let a;if(typeof o=="string"||typeof o=="object"){const c=Du(this.props,o,(s=this.presenceContext)===null||s===void 0?void 0:s.custom);c&&(a=c[r])}if(o&&a!==void 0)return a;const f=this.getBaseTargetFromProps(this.props,r);return f!==void 0&&!Qe(f)?f:this.initialValues[r]!==void 0&&a===void 0?void 0:this.baseTarget[r]}on(r,s){return this.events[r]||(this.events[r]=new Hu),this.events[r].add(s)}notify(r,...s){this.events[r]&&this.events[r].notify(...s)}}class Ig extends GT{constructor(){super(...arguments),this.KeyframeResolver=ug}sortInstanceNodePosition(r,s){return r.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(r,s){return r.style?r.style[s]:void 0}removeValueFromRenderState(r,{vars:s,style:o}){delete s[r],delete o[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;Qe(r)&&(this.childSubscription=r.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function QT(n){return window.getComputedStyle(n)}class qT extends Ig{constructor(){super(...arguments),this.type="html",this.renderInstance=Cm}readValueFromInstance(r,s){if(Kn.has(s)){const o=Gu(s);return o&&o.default||0}else{const o=QT(r),a=(Nu(s)?o.getPropertyValue(s):o[s])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(r,{transformPagePoint:s}){return Rg(r,s)}build(r,s,o){Lu(r,s,o.transformTemplate)}scrapeMotionValuesFromProps(r,s,o){return Vu(r,s,o)}}class XT extends Ig{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Me}getBaseTargetFromProps(r,s){return r[s]}readValueFromInstance(r,s){if(Kn.has(s)){const o=Gu(s);return o&&o.default||0}return s=Rm.has(s)?s:Cu(s),r.getAttribute(s)}scrapeMotionValuesFromProps(r,s,o){return Nm(r,s,o)}build(r,s,o){Mu(r,s,this.isSVGTag,o.transformTemplate)}renderInstance(r,s,o,a){km(r,s,o,a)}mount(r){this.isSVGTag=Ou(r.tagName),super.mount(r)}}const ZT=(n,r)=>ku(n)?new XT(r):new qT(r,{allowProjection:n!==H.Fragment}),JT=Cx({...TS,...bT,..._T,...HT},ZT),yo=zw(JT);function Ju({onClose:n,children:r}){H.useEffect(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow="auto"}),[]);const s=o=>{o.target===o.currentTarget&&n()};return A.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:s,children:A.jsxs(yo.div,{className:"bg-white w-full max-w-xl p-3 rounded-lg shadow-lg relative space-y-4",onClick:o=>o.stopPropagation(),initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.3},children:[r,A.jsx("button",{className:"mt-4 w-full bg-blue-600 text-white py-2 rounded-lg hover:bg-blue-700 transition",onClick:n,children:"닫기"})]})})}function eE({product:n,onClose:r}){const[s,o]=H.useState(!1),{CRET_DTM:a,RTRVL_GRDCD_NM:f,IMG_FILE_PATH:c,PRDTNM:h,RTRVLPRVNS:p,BSSHNM:m,ADDR:y,TELNO:v,BRCDNO:x,FRMLCUNIT:N,MNFDT:k,RTRVLPLANDOC_RTRVLMTHD:C,DISTBTMLMT:P,PRDLST_TYPE:M,PRDLST_CD:F,RTRVLDSUSE_SEQ:B,PRDLST_REPORT_NO:q,PRDLST_CD_NM:b,LCNS_NO:Z}=n;return A.jsxs(Ju,{onClose:r,children:[A.jsx("h3",{className:"text-sm font-semibold mb-4 text-center",children:h}),A.jsx("div",{className:"relative w-full h-40 sm:h-48 md:h-56 rounded-md overflow-hidden mb-4",children:s?A.jsx("div",{className:"flex items-center justify-center bg-black h-full text-white text-sm",children:"제품 이미지가 없습니다"}):A.jsx("img",{src:c,alt:h,className:"w-full h-full object-cover rounded-md",onError:()=>o(!0)})}),A.jsxs("div",{className:"space-y-3",children:[A.jsxs("p",{className:"text-xs text-gray-500",children:["등록일: ",a]}),A.jsxs("p",{className:"text-xs font-semibold",children:["회수등급: ",A.jsx("span",{className:"text-red-500",children:f}),A.jsxs("div",{className:"tooltip-container inline-block relative z-100 group",children:[A.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-4",children:A.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})}),A.jsxs("div",{className:"tooltip absolute bg-black text-white text-xs rounded py-1 px-2 bottom-full left-1/2 transform -translate-x-1/2 mb-2 opacity-0 transition-opacity duration-300 group-hover:opacity-100 whitespace-nowrap",children:[f==="1등급"&&A.jsx("span",{children:"식품등의 섭취 또는 사용으로 인해 인체건강에 미치는 위해영향이 매우 크거나 중대한 위반행위"}),f==="2등급"&&A.jsx("span",{children:"식품등의 섭취 또는 사용으로 인해 인체건강에 미치는 위해영향이 크거나 일시적인 경우"}),f==="3등급"&&A.jsx("span",{children:"식품등의 섭취 또는 사용으로 인해 인체의 건강에 미치는 위해 영향이 비교적 적은 경우"})]})]})]}),A.jsxs("p",{className:"text-xs text-gray-700",children:["회수 사유: ",p]}),A.jsxs("div",{className:"mt-4 border-t pt-3",children:[A.jsx("h4",{className:"text-xs font-bold",children:"업체 정보"}),A.jsxs("p",{className:"text-xs",children:["제조업체명: ",m]}),A.jsxs("p",{className:"text-xs",children:["업체 주소: ",y]}),A.jsxs("p",{className:"text-xs",children:["전화번호: ",v]})]}),A.jsxs("div",{className:"mt-4 border-t pt-3",children:[A.jsx("h4",{className:"text-xs font-bold",children:"제품 정보"}),A.jsxs("p",{className:"text-xs",children:["바코드 번호: ",x]}),A.jsxs("p",{className:"text-xs",children:["포장 단위: ",N]}),A.jsxs("p",{className:"text-xs",children:["제조일자: ",k]}),A.jsxs("p",{className:"text-xs",children:["유통/소비기한: ",P]}),A.jsxs("p",{className:"text-xs",children:["식품분류: ",M]}),A.jsxs("p",{className:"text-xs",children:["품목코드: ",F]}),A.jsxs("p",{className:"text-xs",children:["품목유형(코드명): ",b]}),A.jsxs("p",{className:"text-xs",children:["품목제조보고번호: ",q]})]}),A.jsxs("div",{className:"mt-4 border-t pt-3",children:[A.jsx("h4",{className:"text-xs font-bold",children:"회수 정보"}),A.jsxs("p",{className:"text-xs",children:["회수 방법: ",C]}),A.jsxs("p",{className:"text-xs",children:["회수/판매중지 일련번호: ",B]}),A.jsxs("p",{className:"text-xs",children:["업체 인허가 번호: ",Z]})]})]})]})}var hu=new Map,to=new WeakMap,Bp=0,tE=void 0;function nE(n){return n?(to.has(n)||(Bp+=1,to.set(n,Bp.toString())),to.get(n)):"0"}function rE(n){return Object.keys(n).sort().filter(r=>n[r]!==void 0).map(r=>`${r}_${r==="root"?nE(n.root):n[r]}`).toString()}function iE(n){const r=rE(n);let s=hu.get(r);if(!s){const o=new Map;let a;const f=new IntersectionObserver(c=>{c.forEach(h=>{var p;const m=h.isIntersecting&&a.some(y=>h.intersectionRatio>=y);n.trackVisibility&&typeof h.isVisible>"u"&&(h.isVisible=m),(p=o.get(h.target))==null||p.forEach(y=>{y(m,h)})})},n);a=f.thresholds||(Array.isArray(n.threshold)?n.threshold:[n.threshold||0]),s={id:r,observer:f,elements:o},hu.set(r,s)}return s}function sE(n,r,s={},o=tE){if(typeof window.IntersectionObserver>"u"&&o!==void 0){const p=n.getBoundingClientRect();return r(o,{isIntersecting:o,target:n,intersectionRatio:typeof s.threshold=="number"?s.threshold:0,time:0,boundingClientRect:p,intersectionRect:p,rootBounds:p}),()=>{}}const{id:a,observer:f,elements:c}=iE(s),h=c.get(n)||[];return c.has(n)||c.set(n,h),h.push(r),f.observe(n),function(){h.splice(h.indexOf(r),1),h.length===0&&(c.delete(n),f.unobserve(n)),c.size===0&&(f.disconnect(),hu.delete(a))}}function oE({threshold:n,delay:r,trackVisibility:s,rootMargin:o,root:a,triggerOnce:f,skip:c,initialInView:h,fallbackInView:p,onChange:m}={}){var y;const[v,x]=H.useState(null),N=H.useRef(m),[k,C]=H.useState({inView:!!h,entry:void 0});N.current=m,H.useEffect(()=>{if(c||!v)return;let B;return B=sE(v,(q,b)=>{C({inView:q,entry:b}),N.current&&N.current(q,b),b.isIntersecting&&f&&B&&(B(),B=void 0)},{root:a,rootMargin:o,threshold:n,trackVisibility:s,delay:r},p),()=>{B&&B()}},[Array.isArray(n)?n.toString():n,v,a,o,f,c,s,p,r]);const P=(y=k.entry)==null?void 0:y.target,M=H.useRef(void 0);!v&&P&&!f&&!c&&M.current!==P&&(M.current=P,C({inView:!!h,entry:void 0}));const F=[x,k.inView,k.entry];return F.ref=F[0],F.inView=F[1],F.entry=F[2],F}function ec({setOpenModal:n,children:r,openModal:s,CardDetail:o,product:a}){const{ref:f,inView:c}=oE({triggerOnce:!0,threshold:.5});return A.jsxs(A.Fragment,{children:[A.jsxs(yo.div,{ref:f,className:"bg-zinc-50 w-full h-90 p-4 rounded-lg shadow-md flex justify-center flex-col space-y-2 hover:scale-105 hover:shadow-xl transition-all duration-300 cursor-pointer",onClick:()=>n(!0),initial:{opacity:0,y:10},animate:{opacity:c?1:0,y:c?0:10},transition:{duration:.2},children:[r," "]}),s&&A.jsx(o,{product:a,onClose:()=>n(!1)})]})}function lE({product:n}){const{CRET_DTM:r,RTRVL_GRDCD_NM:s,IMG_FILE_PATH:o,PRDTNM:a,RTRVLPRVNS:f}=n,[c,h]=H.useState(!1),[p,m]=H.useState(!1);return A.jsxs(ec,{openModal:p,setOpenModal:m,CardDetail:eE,product:n,children:[A.jsx("div",{className:"text-sm text-gray-500",children:r.split(" ")[0]}),A.jsx("div",{className:"relative w-full h-44 rounded-md overflow-hidden",children:c?A.jsx("div",{className:"flex items-center justify-center bg-black h-full text-white text-sm",children:"제품 이미지가 없습니다"}):A.jsx("img",{src:o,alt:a,className:"w-full h-full object-cover rounded-md",onError:()=>h(!0)})}),A.jsxs("div",{className:` text-sm font-semibold w-full flex justify-center rounded-lg ${s==="1등급"?"bg-red-500 text-white":s==="2등급"?"bg-yellow-500 text-white":"bg-green-500 text-white"} - `,children:[s," 회수대상"]}),L.jsx("div",{className:"font-semibold text-lg truncate",children:a}),L.jsx("div",{className:"text-sm text-gray-700 truncate",children:f})]})}function Ip(){return L.jsxs("div",{className:"bg-zinc-50 w-full h-90 p-4 rounded-lg shadow-md flex justify-center flex-col space-y-2",children:[L.jsx("div",{className:"text-sm text-gray-500",children:L.jsx("div",{className:"h-2 bg-gray-200 rounded-full dark:bg-gray-700 w-1/3 mb-4"})}),L.jsx("div",{className:"relative w-full h-44 rounded-md overflow-hidden",children:L.jsx("div",{className:"flex items-center justify-center bg-gray-300 h-full text-white text-sm animate-pulse rounded-md",children:L.jsx("svg",{className:"w-12 h-12 text-gray-400",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:L.jsx("path",{d:"M18 0H2a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2Zm-5.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm4.376 10.481A1 1 0 0 1 16 15H4a1 1 0 0 1-.895-1.447l3.5-7A1 1 0 0 1 7.468 6a.965.965 0 0 1 .9.5l2.775 4.757 1.546-1.887a1 1 0 0 1 1.618.1l2.541 4a1 1 0 0 1 .028 1.011Z"})})})}),L.jsx("div",{className:"text-sm font-semibold w-full flex justify-center rounded-lg bg-gray-200 animate-pulse h-4 mb-2"}),L.jsx("div",{className:"font-semibold text-lg truncate",children:L.jsx("div",{className:"h-2 bg-gray-200 rounded-full dark:bg-gray-700 w-2/3 mb-2"})}),L.jsxs("div",{className:"text-sm text-gray-700 truncate",children:[L.jsx("div",{className:"h-2 bg-gray-200 rounded-full dark:bg-gray-700 max-w-[440px] mb-2.5"}),L.jsx("div",{className:"h-2 bg-gray-200 rounded-full dark:bg-gray-700 max-w-[460px] mb-2.5"})]})]})}const Bp=30,aE=async(n,r)=>{console.log("해외음식",n);const s=`https://openapi.foodsafetykorea.go.kr/api/72edab9a6eee4e32bccf/I2810/json/${1+n*Bp}/${30+n*Bp}`,a=r?"https://openapi.foodsafetykorea.go.kr/api/72edab9a6eee4e32bccf/I2810/json/1/500":s,f=c=>{let h=c.replace(/]*>/g,"`").replace(/<\/p>/g,"`");return h=h.replace(/ /g," "),h=h.replace(/\s+/g," ").trim(),h=h.replace(/`/g,` -`),h};try{const h=(await Me.get(a)).data.I2810.row;return Array.isArray(h)?h.map(p=>({TITL:p.TITL||"",DETECT_TITL:p.DETECT_TITL||"",CRET_DTM:p.CRET_DTM||"",BDT:f(p.BDT||""),DOWNLOAD_URL:p.DOWNLOAD_URL||"",NTCTXT_NO:p.NTCTXT_NO||""})):[]}catch(c){throw console.error("API 호출 에러:",c),c}};function uE({product:n,onClose:r}){const{TITL:s,DETECT_TITL:o,CRET_DTM:a,BDT:f,DOWNLOAD_URL:c,NTCTXT_NO:h}=n,[p,g]=W.useState(!1);return L.jsxs(Fg,{onClose:r,children:[L.jsx("h3",{className:"text-sm font-semibold mb-4 text-center",children:s}),L.jsx("div",{className:"relative w-full h-40 sm:h-48 md:h-56 rounded-md overflow-hidden mb-4",children:p?L.jsx("div",{className:"flex items-center justify-center bg-black h-full text-white text-sm",children:"제품 이미지가 없습니다"}):L.jsx("img",{src:c,alt:s,className:"w-full h-full object-cover rounded-md",onError:()=>g(!0)})}),L.jsxs("div",{className:"space-y-3",children:[L.jsxs("p",{className:"text-xs text-gray-500",children:["등록일: ",a.split(" ")[0]]}),L.jsxs("p",{className:"text-xs font-semibold",children:["유해물질: ",L.jsx("span",{className:"text-red-500",children:o})]}),L.jsxs("p",{className:"text-xs text-gray-700 whitespace-pre-line",children:["상세 내용: ",f]})]}),L.jsx("div",{className:"mt-4 border-t pt-3",children:L.jsxs("p",{className:"text-xs",children:["게시글 번호: ",h]})})]})}function cE({product:n}){const{TITL:r,DETECT_TITL:s,CRET_DTM:o,BDT:a,DOWNLOAD_URL:f}=n,[c,h]=W.useState(!1),[p,g]=W.useState(!1);return L.jsxs(Ig,{openModal:p,setOpenModal:g,CardDetail:uE,product:n,children:[L.jsx("div",{className:"text-sm text-gray-500",children:o.split(" ")[0]}),L.jsx("div",{className:"relative w-full h-44 rounded-md overflow-hidden",children:c?L.jsx("div",{className:"flex items-center justify-center bg-black h-full text-white text-sm",children:"제품 이미지가 없습니다"}):L.jsx("img",{src:f,alt:r,className:"w-full h-full object-cover rounded-md",onError:()=>h(!0)})}),L.jsxs("div",{className:"text-sm font-semibold w-full flex justify-center rounded-lg bg-red-500 text-white",children:[s," 검출"]}),L.jsx("div",{className:"font-semibold text-lg truncate",children:r}),L.jsx("div",{className:"text-sm text-gray-700 truncate",children:a})]})}function fE(){const[n,r]=W.useState([]),[s,o]=W.useState(!0),[a,f]=W.useState(null),[c,h]=W.useState(!0),{searchString:p,selectedItem:g,page:y,setPage:v}=wu(),[x,A]=W.useState(0);W.useEffect(()=>{window.scrollTo(0,0),v(0),r([]),f(null),o(!0),h(!0),A(0),R(0)},[p,g]),W.useEffect(()=>{y>0&&R(y)},[y]);const R=async k=>{try{let P,M=[];g==="해외식품"?(P=await aE(k,p),M=p?P.filter(F=>F.TITL.includes(p)):P):g==="음식"?(P=await xh(k,p),M=p?P.filter(F=>F.PRDTNM.includes(p)):P):(P=await xh(k,p),M=P),M.length===0?h(!1):r(F=>[...F,...M]),o(!1),A(0)}catch(P){x<3?(console.log("retryCount: ",x),A(x+1),R(k)):(f("데이터를 불러오는 중 오류가 발생했습니다. "+P),o(!1))}};return a?L.jsxs("div",{className:"h-screen flex flex-col items-center justify-center text-2xl text-red-500",children:[L.jsx($v,{className:"h-1/4 w-1/4 sm:h-20 sm:w-20 md:h-24 md:w-24 lg:h-32 lg:w-32"}),L.jsx("a",{className:"text-center px-4",children:a}),L.jsx("button",{className:"mt-20 bg-emerald-50 text-black rounded-3xl w-4/5 h-12 sm:w-3/5 md:w-2/5 lg:w-1/4",onClick:()=>window.location.reload(),children:"재접속"})]}):s?L.jsx("div",{className:"bg-neutral-200 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-10 place-items-center shadow-xl rounded-md p-6 pt-20",children:Array.from({length:20}).map((k,P)=>L.jsx(Ip,{},`loading-card-${P}`))}):L.jsx("div",{className:"flex w-full",children:L.jsx(Gv,{className:"max-w-screen overflow-hidden bg-neutral-200 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-10 place-items-center shadow-xl rounded-md p-6 pt-20",dataLength:n.length,next:()=>v(y+1),hasMore:c&&!p,loader:L.jsx(Ip,{},"loading-card"),endMessage:L.jsx("div",{children:"더 이상 데이터가 없습니다."}),children:n.map(k=>L.jsxs(L.Fragment,{children:[g==="해외식품"&&"NTCTXT_NO"in k&&L.jsx(cE,{product:k},k.NTCTXT_NO),g==="음식"&&"PRDLST_REPORT_NO"in k&&L.jsx(lE,{product:k},k.PRDLST_REPORT_NO)]}))})})}function dE(){return L.jsx("footer",{className:"bg-white shadow-sm dark:bg-gray-900 ",children:L.jsxs("div",{className:"w-full max-w-screen-xl mx-auto p-4 md:py-8",children:[L.jsx("hr",{className:"my-6 border-gray-200 sm:mx-auto dark:border-gray-700 lg:my-8"}),L.jsx("span",{className:"block text-sm text-gray-500 sm:text-center dark:text-gray-400",children:"© 2025 asa9874. All Rights Reserved."}),L.jsx("span",{className:"block text-sm text-gray-500 sm:text-center dark:text-gray-400",children:L.jsx("a",{href:"https://github.com/asa9874",className:"text-blue-500 hover:underline",children:"https://github.com/asa9874"})})]})})}function hE(){const{selectedItem:n,setSelectedItem:r,setSearchString:s}=wu(),[o,a]=W.useState(!0),[f,c]=W.useState(0);return W.useEffect(()=>{const h=()=>{const p=window.scrollY;p>f&&p>50?a(!1):a(!0),c(p)};return window.addEventListener("scroll",h),()=>window.removeEventListener("scroll",h)},[f]),L.jsx(yo.div,{id:"collapseMenu",initial:{y:0,opacity:1},animate:{y:o?86:-100,opacity:o?1:0},transition:{type:"spring",stiffness:200,damping:30},className:"fixed top-0 left-0 w-full bg-amber-50 shadow-md rounded-b-xl z-30 h-14 flex items-center justify-center",children:L.jsx("ul",{className:"flex gap-x-5",children:["음식","해외식품","의약품"].map(h=>L.jsx("li",{className:"py-3 px-3 relative",children:L.jsxs("button",{onClick:()=>{r(h),s("")},className:`relative font-bold text-base ${n===h?"text-blue-500":"text-gray-600"} hover:text-[#007bff]`,children:[h,L.jsx(yo.span,{layoutId:"underline",className:"absolute bottom-0 left-0 w-full h-[2px] bg-blue-500",initial:{scaleX:0},animate:{scaleX:n===h?1:0},transition:{type:"spring",stiffness:300,damping:20}})]})},h))})})}function pE(){const{searchString:n,setSearchString:r}=wu(),[s,o]=W.useState(n),a=f=>{f.preventDefault(),r(s)};return L.jsxs("div",{className:"sticky top-0 z-50",children:[L.jsxs("header",{className:"flex shadow-[0px_10px_16px_rgba(17,_17,_26,_0.1)] py-4 px-4 sm:px-6 bg-white font-sans min-h-[70px] tracking-wide relative z-50",children:[L.jsx("div",{className:"flex items-center hidden sm:flex",children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",className:"size-10",children:L.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.25 9.75 16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0 0 20.25 18V6A2.25 2.25 0 0 0 18 3.75H6A2.25 2.25 0 0 0 3.75 6v12A2.25 2.25 0 0 0 6 20.25Z"})})}),L.jsx("div",{className:"flex flex-col flex-wrap items-center w-full sm:w-full ",children:L.jsx("div",{className:"w-full",children:L.jsx("form",{className:"max-w-md mx-auto",onSubmit:a,children:L.jsxs("div",{className:"relative",children:[L.jsx("div",{className:"absolute inset-y-0 start-0 flex items-center ps-3 pointer-events-none",children:L.jsx("svg",{className:"w-4 h-4 text-gray-500 dark:text-gray-400","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",children:L.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"})})}),L.jsx("input",{type:"search",id:"default-search",value:s,onChange:f=>o(f.target.value),className:"block w-full p-4 ps-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"제품이름을 입력해주세요"}),L.jsx("button",{type:"submit",className:"text-white absolute end-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",children:"검색"})]})})})})]}),L.jsx(hE,{})]})}function mE(){return L.jsxs("div",{className:"bg-neutral-300",children:[L.jsx(pE,{}),L.jsx(fE,{}),L.jsx(dE,{})]})}Hv.createRoot(document.getElementById("root")).render(L.jsx(L.Fragment,{children:L.jsx(mE,{})})); + `,children:[s," 회수대상"]}),A.jsx("div",{className:"font-semibold text-lg truncate",children:a}),A.jsx("div",{className:"text-sm text-gray-700 truncate",children:f})]})}function zp(){return A.jsxs("div",{className:"bg-zinc-50 w-full h-90 p-4 rounded-lg shadow-md flex justify-center flex-col space-y-2",children:[A.jsx("div",{className:"text-sm text-gray-500",children:A.jsx("div",{className:"h-2 bg-gray-200 rounded-full dark:bg-gray-700 w-1/3 mb-4"})}),A.jsx("div",{className:"relative w-full h-44 rounded-md overflow-hidden",children:A.jsx("div",{className:"flex items-center justify-center bg-gray-300 h-full text-white text-sm animate-pulse rounded-md",children:A.jsx("svg",{className:"w-12 h-12 text-gray-400",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{d:"M18 0H2a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2Zm-5.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm4.376 10.481A1 1 0 0 1 16 15H4a1 1 0 0 1-.895-1.447l3.5-7A1 1 0 0 1 7.468 6a.965.965 0 0 1 .9.5l2.775 4.757 1.546-1.887a1 1 0 0 1 1.618.1l2.541 4a1 1 0 0 1 .028 1.011Z"})})})}),A.jsx("div",{className:"text-sm font-semibold w-full flex justify-center rounded-lg bg-gray-200 animate-pulse h-4 mb-2"}),A.jsx("div",{className:"font-semibold text-lg truncate",children:A.jsx("div",{className:"h-2 bg-gray-200 rounded-full dark:bg-gray-700 w-2/3 mb-2"})}),A.jsxs("div",{className:"text-sm text-gray-700 truncate",children:[A.jsx("div",{className:"h-2 bg-gray-200 rounded-full dark:bg-gray-700 max-w-[440px] mb-2.5"}),A.jsx("div",{className:"h-2 bg-gray-200 rounded-full dark:bg-gray-700 max-w-[460px] mb-2.5"})]})]})}const Up=30,aE=async(n,r)=>{console.log("해외음식",n);const s=`https://openapi.foodsafetykorea.go.kr/api/72edab9a6eee4e32bccf/I2810/json/${1+n*Up}/${30+n*Up}`,a=r?"https://openapi.foodsafetykorea.go.kr/api/72edab9a6eee4e32bccf/I2810/json/1/500":s,f=c=>{let h=c.replace(/]*>/g,"`").replace(/<\/p>/g,"`");return h=h.replace(/ /g," "),h=h.replace(/\s+/g," ").trim(),h=h.replace(/`/g,` +`),h};try{const h=(await Ae.get(a)).data.I2810.row;return Array.isArray(h)?h.map(p=>({TITL:p.TITL||"",DETECT_TITL:p.DETECT_TITL||"",CRET_DTM:p.CRET_DTM||"",BDT:f(p.BDT||""),DOWNLOAD_URL:p.DOWNLOAD_URL||"",NTCTXT_NO:p.NTCTXT_NO||""})):[]}catch(c){throw console.error("API 호출 에러:",c),c}};function uE({product:n,onClose:r}){const{TITL:s,DETECT_TITL:o,CRET_DTM:a,BDT:f,DOWNLOAD_URL:c,NTCTXT_NO:h}=n,[p,m]=H.useState(!1);return A.jsxs(Ju,{onClose:r,children:[A.jsx("h3",{className:"text-sm font-semibold mb-4 text-center",children:s}),A.jsx("div",{className:"relative w-full h-40 sm:h-48 md:h-56 rounded-md overflow-hidden mb-4",children:p?A.jsx("div",{className:"flex items-center justify-center bg-black h-full text-white text-sm",children:"제품 이미지가 없습니다"}):A.jsx("img",{src:c,alt:s,className:"w-full h-full object-cover rounded-md",onError:()=>m(!0)})}),A.jsxs("div",{className:"space-y-3",children:[A.jsxs("p",{className:"text-xs text-gray-500",children:["등록일: ",a.split(" ")[0]]}),A.jsxs("p",{className:"text-xs font-semibold",children:["유해물질: ",A.jsx("span",{className:"text-red-500",children:o})]}),A.jsxs("p",{className:"text-xs text-gray-700 whitespace-pre-line",children:["상세 내용: ",f]})]}),A.jsx("div",{className:"mt-4 border-t pt-3",children:A.jsxs("p",{className:"text-xs",children:["게시글 번호: ",h]})})]})}function cE({product:n}){const{TITL:r,DETECT_TITL:s,CRET_DTM:o,BDT:a,DOWNLOAD_URL:f}=n,[c,h]=H.useState(!1),[p,m]=H.useState(!1);return A.jsxs(ec,{openModal:p,setOpenModal:m,CardDetail:uE,product:n,children:[A.jsx("div",{className:"text-sm text-gray-500",children:o.split(" ")[0]}),A.jsx("div",{className:"relative w-full h-44 rounded-md overflow-hidden",children:c?A.jsx("div",{className:"flex items-center justify-center bg-black h-full text-white text-sm",children:"제품 이미지가 없습니다"}):A.jsx("img",{src:f,alt:r,className:"w-full h-full object-cover rounded-md",onError:()=>h(!0)})}),A.jsxs("div",{className:"text-sm font-semibold w-full flex justify-center rounded-lg bg-red-500 text-white",children:[s," 검출"]}),A.jsx("div",{className:"font-semibold text-lg truncate",children:r}),A.jsx("div",{className:"text-sm text-gray-700 truncate",children:a})]})}const fE=async(n,r)=>{console.log("의약품",n);const s="https://apis.data.go.kr/1471000/MdcinRtrvlSleStpgeInfoService03/getMdcinRtrvlSleStpgelList02",o="wIoKh6SIO4dQ7VtOHjvgW+kN3IJ2LjoR2NMpe2W0R45xY23SfzmcaHpW8VLCHjp1cJrrnWupiBlM57y5QrBdzA==",a=new URLSearchParams({serviceKey:o,type:"json",pageNo:String(n+1),numOfRows:String(30)});r.trim().length>0&&a.append("Prduct",r);const f=`${s}?${a.toString()}`;try{const h=(await Ae.get(f)).data.body.items;return console.log(h),Array.isArray(h)?h.map(p=>{const m=p.item;return{PRDUCT:m.PRDUCT||"",ENTRPS:m.ENTRPS||"",RTRVL_RESN:m.RTRVL_RESN||"",ENFRC_YN:m.ENFRC_YN||"N",RTRVL_CMMND_DT:m.RTRVL_CMMND_DT||"",RECALL_COMMAND_DATE:m.RECALL_COMMAND_DATE||"",ITEM_SEQ:m.ITEM_SEQ||""}}):[]}catch(c){throw console.error("API 호출 에러:",c),c}};function dE({product:n,onClose:r}){const[s,o]=H.useState(!1);return A.jsxs(Ju,{onClose:r,children:[A.jsx("h3",{className:"text-sm font-semibold mb-4 text-center",children:n.PRDUCT}),A.jsx("div",{className:"relative w-full h-40 sm:h-48 md:h-56 rounded-md overflow-hidden mb-4",children:s?A.jsx("div",{className:"flex items-center justify-center bg-black h-full text-white text-sm",children:"제품 이미지가 없습니다"}):A.jsx("img",{src:"",alt:n.PRDUCT,className:"w-full h-full object-cover rounded-md",onError:()=>o(!0)})}),A.jsxs("div",{className:"space-y-3",children:[A.jsxs("p",{className:"text-xs text-gray-500",children:["등록일: ",n.RECALL_COMMAND_DATE.split(" ")[0]]}),A.jsxs("p",{className:"text-xs text-gray-700 whitespace-pre-line",children:["상세 내용: ",n.RTRVL_RESN]})]}),A.jsx("div",{className:"mt-4 border-t pt-3",children:A.jsxs("p",{className:"text-xs",children:["게시글 번호: ",n.ITEM_SEQ]})})]})}function hE({product:n}){const{PRDUCT:r,ENTRPS:s,RTRVL_RESN:o,ENFRC_YN:a,RECALL_COMMAND_DATE:f,ITEM_SEQ:c}=n,[h,p]=H.useState(!1),[m,y]=H.useState(!1);return A.jsxs(ec,{openModal:m,setOpenModal:y,CardDetail:dE,product:n,children:[A.jsx("div",{className:"text-sm text-gray-500",children:f}),A.jsx("div",{className:"relative w-full h-44 rounded-md overflow-hidden",children:h?A.jsx("div",{className:"flex items-center justify-center bg-black h-full text-white text-sm",children:"제품 이미지가 없습니다"}):A.jsx("img",{src:`/images/medicine/${c}.jpg`,alt:r,className:"w-full h-full object-cover rounded-md",onError:()=>p(!0)})}),A.jsx("div",{className:`text-sm font-semibold w-full flex justify-center rounded-lg ${a==="Y"?"bg-red-500 text-white":"bg-green-500 text-white"}`,children:a==="Y"?"강제 회수":"자율 회수"}),A.jsx("div",{className:"font-semibold text-lg truncate",children:r}),A.jsx("div",{className:"text-sm text-gray-700 truncate",children:s}),A.jsx("div",{className:"text-xs text-gray-600 truncate",children:o})]})}function pE(){const[n,r]=H.useState([]),[s,o]=H.useState(!0),[a,f]=H.useState(null),[c,h]=H.useState(!0),{searchString:p,selectedItem:m,page:y,setPage:v}=wu(),[x,N]=H.useState(0);H.useEffect(()=>{window.scrollTo(0,0),v(0),r([]),f(null),o(!0),h(!0),N(0),k(0)},[p,m]),H.useEffect(()=>{y>0&&k(y)},[y]);const k=async C=>{try{let P,M=[];m==="해외식품"?(P=await aE(C,p),M=p?P.filter(F=>F.TITL.includes(p)):P):m==="음식"?(P=await Th(C,p),M=p?P.filter(F=>F.PRDTNM.includes(p)):P):m==="의약품"?(P=await fE(C,p),M=P,console.log(P)):(P=await Th(C,p),M=P),M.length===0?h(!1):r(F=>[...F,...M]),o(!1),N(0)}catch(P){x<3?(console.log("retryCount: ",x,P),N(x+1),k(C)):(f("데이터를 불러오는 중 오류가 발생했습니다. "+P),o(!1))}};return a?A.jsxs("div",{className:"h-screen flex flex-col items-center justify-center text-2xl text-red-500",children:[A.jsx($v,{className:"h-1/4 w-1/4 sm:h-20 sm:w-20 md:h-24 md:w-24 lg:h-32 lg:w-32"}),A.jsx("a",{className:"text-center px-4",children:a}),A.jsx("button",{className:"mt-20 bg-emerald-50 text-black rounded-3xl w-4/5 h-12 sm:w-3/5 md:w-2/5 lg:w-1/4",onClick:()=>window.location.reload(),children:"재접속"})]}):s?A.jsx("div",{className:"bg-neutral-200 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-10 place-items-center shadow-xl rounded-md p-6 pt-20",children:Array.from({length:20}).map((C,P)=>A.jsx(zp,{},`loading-card-${P}`))}):A.jsx("div",{className:"flex w-full",children:A.jsx(Gv,{className:"max-w-screen overflow-hidden bg-neutral-200 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-10 place-items-center shadow-xl rounded-md p-6 pt-20",dataLength:n.length,next:()=>v(y+1),hasMore:c&&!p,loader:A.jsx(zp,{},"loading-card"),endMessage:A.jsx("div",{children:"더 이상 데이터가 없습니다."}),children:n.map(C=>A.jsxs(A.Fragment,{children:[m==="해외식품"&&"NTCTXT_NO"in C&&A.jsx(cE,{product:C},C.NTCTXT_NO),m==="음식"&&"PRDLST_REPORT_NO"in C&&A.jsx(lE,{product:C},C.PRDLST_REPORT_NO),m==="의약품"&&"ITEM_SEQ"in C&&A.jsx(hE,{product:C},C.ITEM_SEQ)]}))})})}function mE(){return A.jsx("footer",{className:"bg-white shadow-sm dark:bg-gray-900 ",children:A.jsxs("div",{className:"w-full max-w-screen-xl mx-auto p-4 md:py-8",children:[A.jsx("hr",{className:"my-6 border-gray-200 sm:mx-auto dark:border-gray-700 lg:my-8"}),A.jsx("span",{className:"block text-sm text-gray-500 sm:text-center dark:text-gray-400",children:"© 2025 asa9874. All Rights Reserved."}),A.jsx("span",{className:"block text-sm text-gray-500 sm:text-center dark:text-gray-400",children:A.jsx("a",{href:"https://github.com/asa9874",className:"text-blue-500 hover:underline",children:"https://github.com/asa9874"})})]})})}function gE(){const{selectedItem:n,setSelectedItem:r,setSearchString:s}=wu(),[o,a]=H.useState(!0),[f,c]=H.useState(0);return H.useEffect(()=>{const h=()=>{const p=window.scrollY;p>f&&p>50?a(!1):a(!0),c(p)};return window.addEventListener("scroll",h),()=>window.removeEventListener("scroll",h)},[f]),A.jsx(yo.div,{id:"collapseMenu",initial:{y:0,opacity:1},animate:{y:o?86:-100,opacity:o?1:0},transition:{type:"spring",stiffness:200,damping:30},className:"fixed top-0 left-0 w-full bg-amber-50 shadow-md rounded-b-xl z-30 h-14 flex items-center justify-center",children:A.jsx("ul",{className:"flex gap-x-5",children:["음식","해외식품","의약품"].map(h=>A.jsx("li",{className:"py-3 px-3 relative",children:A.jsxs("button",{onClick:()=>{r(h),s("")},className:`relative font-bold text-base ${n===h?"text-blue-500":"text-gray-600"} hover:text-[#007bff]`,children:[h,A.jsx(yo.span,{layoutId:"underline",className:"absolute bottom-0 left-0 w-full h-[2px] bg-blue-500",initial:{scaleX:0},animate:{scaleX:n===h?1:0},transition:{type:"spring",stiffness:300,damping:20}})]})},h))})})}function yE(){const{searchString:n,setSearchString:r}=wu(),[s,o]=H.useState(n),a=f=>{f.preventDefault(),r(s)};return A.jsxs("div",{className:"sticky top-0 z-50",children:[A.jsxs("header",{className:"flex shadow-[0px_10px_16px_rgba(17,_17,_26,_0.1)] py-4 px-4 sm:px-6 bg-white font-sans min-h-[70px] tracking-wide relative z-50",children:[A.jsx("div",{className:"flex items-center hidden sm:flex",children:A.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",className:"size-10",children:A.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.25 9.75 16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0 0 20.25 18V6A2.25 2.25 0 0 0 18 3.75H6A2.25 2.25 0 0 0 3.75 6v12A2.25 2.25 0 0 0 6 20.25Z"})})}),A.jsx("div",{className:"flex flex-col flex-wrap items-center w-full sm:w-full ",children:A.jsx("div",{className:"w-full",children:A.jsx("form",{className:"max-w-md mx-auto",onSubmit:a,children:A.jsxs("div",{className:"relative",children:[A.jsx("div",{className:"absolute inset-y-0 start-0 flex items-center ps-3 pointer-events-none",children:A.jsx("svg",{className:"w-4 h-4 text-gray-500 dark:text-gray-400","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",children:A.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"})})}),A.jsx("input",{type:"search",id:"default-search",value:s,onChange:f=>o(f.target.value),className:"block w-full p-4 ps-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"제품이름을 입력해주세요"}),A.jsx("button",{type:"submit",className:"text-white absolute end-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",children:"검색"})]})})})})]}),A.jsx(gE,{})]})}function vE(){return A.jsxs("div",{className:"bg-neutral-300",children:[A.jsx(yE,{}),A.jsx(pE,{}),A.jsx(mE,{})]})}Hv.createRoot(document.getElementById("root")).render(A.jsx(A.Fragment,{children:A.jsx(vE,{})})); diff --git a/index.html b/index.html index bb309ae..12f3b0b 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ 회수 음식관리 - +