Files
kentekengen/dist/assets/index-C-B8BNDb.js
2026-03-01 13:23:49 +00:00

76 lines
307 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
function ey(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function ty(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ud={exports:{}},Yo={},Wd={exports:{}},O={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ci=Symbol.for("react.element"),ny=Symbol.for("react.portal"),ry=Symbol.for("react.fragment"),iy=Symbol.for("react.strict_mode"),oy=Symbol.for("react.profiler"),sy=Symbol.for("react.provider"),ay=Symbol.for("react.context"),ly=Symbol.for("react.forward_ref"),uy=Symbol.for("react.suspense"),cy=Symbol.for("react.memo"),fy=Symbol.for("react.lazy"),lc=Symbol.iterator;function dy(e){return e===null||typeof e!="object"?null:(e=lc&&e[lc]||e["@@iterator"],typeof e=="function"?e:null)}var Hd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gd=Object.assign,$d={};function hr(e,t,n){this.props=e,this.context=t,this.refs=$d,this.updater=n||Hd}hr.prototype.isReactComponent={};hr.prototype.setState=function(e,t){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,t,"setState")};hr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Yd(){}Yd.prototype=hr.prototype;function xl(e,t,n){this.props=e,this.context=t,this.refs=$d,this.updater=n||Hd}var Sl=xl.prototype=new Yd;Sl.constructor=xl;Gd(Sl,hr.prototype);Sl.isPureReactComponent=!0;var uc=Array.isArray,Qd=Object.prototype.hasOwnProperty,Il={current:null},Xd={key:!0,ref:!0,__self:!0,__source:!0};function bd(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Qd.call(t,r)&&!Xd.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Ci,type:e,key:o,ref:s,props:i,_owner:Il.current}}function hy(e,t){return{$$typeof:Ci,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function El(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ci}function py(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var cc=/\/+/g;function As(e,t){return typeof e=="object"&&e!==null&&e.key!=null?py(""+e.key):t.toString(36)}function eo(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ci:case ny:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+As(s,0):r,uc(i)?(n="",e!=null&&(n=e.replace(cc,"$&/")+"/"),eo(i,t,n,"",function(u){return u})):i!=null&&(El(i)&&(i=hy(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(cc,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",uc(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+As(o,a);s+=eo(o,t,n,l,i)}else if(l=dy(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+As(o,a++),s+=eo(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Ri(e,t,n){if(e==null)return e;var r=[],i=0;return eo(e,r,"","",function(o){return t.call(n,o,i++)}),r}function my(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Me={current:null},to={transition:null},gy={ReactCurrentDispatcher:Me,ReactCurrentBatchConfig:to,ReactCurrentOwner:Il};function Jd(){throw Error("act(...) is not supported in production builds of React.")}O.Children={map:Ri,forEach:function(e,t,n){Ri(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ri(e,function(){t++}),t},toArray:function(e){return Ri(e,function(t){return t})||[]},only:function(e){if(!El(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};O.Component=hr;O.Fragment=ry;O.Profiler=oy;O.PureComponent=xl;O.StrictMode=iy;O.Suspense=uy;O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gy;O.act=Jd;O.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Gd({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Il.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Qd.call(t,l)&&!Xd.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Ci,type:e.type,key:i,ref:o,props:r,_owner:s}};O.createContext=function(e){return e={$$typeof:ay,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:sy,_context:e},e.Consumer=e};O.createElement=bd;O.createFactory=function(e){var t=bd.bind(null,e);return t.type=e,t};O.createRef=function(){return{current:null}};O.forwardRef=function(e){return{$$typeof:ly,render:e}};O.isValidElement=El;O.lazy=function(e){return{$$typeof:fy,_payload:{_status:-1,_result:e},_init:my}};O.memo=function(e,t){return{$$typeof:cy,type:e,compare:t===void 0?null:t}};O.startTransition=function(e){var t=to.transition;to.transition={};try{e()}finally{to.transition=t}};O.unstable_act=Jd;O.useCallback=function(e,t){return Me.current.useCallback(e,t)};O.useContext=function(e){return Me.current.useContext(e)};O.useDebugValue=function(){};O.useDeferredValue=function(e){return Me.current.useDeferredValue(e)};O.useEffect=function(e,t){return Me.current.useEffect(e,t)};O.useId=function(){return Me.current.useId()};O.useImperativeHandle=function(e,t,n){return Me.current.useImperativeHandle(e,t,n)};O.useInsertionEffect=function(e,t){return Me.current.useInsertionEffect(e,t)};O.useLayoutEffect=function(e,t){return Me.current.useLayoutEffect(e,t)};O.useMemo=function(e,t){return Me.current.useMemo(e,t)};O.useReducer=function(e,t,n){return Me.current.useReducer(e,t,n)};O.useRef=function(e){return Me.current.useRef(e)};O.useState=function(e){return Me.current.useState(e)};O.useSyncExternalStore=function(e,t,n){return Me.current.useSyncExternalStore(e,t,n)};O.useTransition=function(){return Me.current.useTransition()};O.version="18.3.1";Wd.exports=O;var C=Wd.exports;const Zd=ty(C),yy=ey({__proto__:null,default:Zd},[C]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ay=C,vy=Symbol.for("react.element"),Cy=Symbol.for("react.fragment"),wy=Object.prototype.hasOwnProperty,xy=Ay.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Sy={key:!0,ref:!0,__self:!0,__source:!0};function qd(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)wy.call(t,r)&&!Sy.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:vy,type:e,key:o,ref:s,props:i,_owner:xy.current}}Yo.Fragment=Cy;Yo.jsx=qd;Yo.jsxs=qd;Ud.exports=Yo;var A=Ud.exports,sa={},eh={exports:{}},He={},th={exports:{}},nh={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(M,D){var R=M.length;M.push(D);e:for(;0<R;){var F=R-1>>>1,V=M[F];if(0<i(V,D))M[F]=D,M[R]=V,R=F;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var D=M[0],R=M.pop();if(R!==D){M[0]=R;e:for(var F=0,V=M.length,Fe=V>>>1;F<Fe;){var de=2*(F+1)-1,_=M[de],G=de+1,$=M[G];if(0>i(_,R))G<V&&0>i($,_)?(M[F]=$,M[G]=R,F=G):(M[F]=_,M[de]=R,F=de);else if(G<V&&0>i($,R))M[F]=$,M[G]=R,F=G;else break e}}return D}function i(M,D){var R=M.sortIndex-D.sortIndex;return R!==0?R:M.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,d=3,g=!1,y=!1,v=!1,I=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(M){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=M)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function w(M){if(v=!1,m(M),!y)if(n(l)!==null)y=!0,Ke(E);else{var D=n(u);D!==null&&W(w,D.startTime-M)}}function E(M,D){y=!1,v&&(v=!1,p(S),S=-1),g=!0;var R=d;try{for(m(D),f=n(l);f!==null&&(!(f.expirationTime>D)||M&&!B());){var F=f.callback;if(typeof F=="function"){f.callback=null,d=f.priorityLevel;var V=F(f.expirationTime<=D);D=e.unstable_now(),typeof V=="function"?f.callback=V:f===n(l)&&r(l),m(D)}else r(l);f=n(l)}if(f!==null)var Fe=!0;else{var de=n(u);de!==null&&W(w,de.startTime-D),Fe=!1}return Fe}finally{f=null,d=R,g=!1}}var T=!1,k=null,S=-1,K=5,x=-1;function B(){return!(e.unstable_now()-x<K)}function L(){if(k!==null){var M=e.unstable_now();x=M;var D=!0;try{D=k(!0,M)}finally{D?z():(T=!1,k=null)}}else T=!1}var z;if(typeof h=="function")z=function(){h(L)};else if(typeof MessageChannel<"u"){var b=new MessageChannel,le=b.port2;b.port1.onmessage=L,z=function(){le.postMessage(null)}}else z=function(){I(L,0)};function Ke(M){k=M,T||(T=!0,z())}function W(M,D){S=I(function(){M(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_continueExecution=function(){y||g||(y=!0,Ke(E))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(M){switch(d){case 1:case 2:case 3:var D=3;break;default:D=d}var R=d;d=D;try{return M()}finally{d=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,D){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var R=d;d=M;try{return D()}finally{d=R}},e.unstable_scheduleCallback=function(M,D,R){var F=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?F+R:F):R=F,M){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=R+V,M={id:c++,callback:D,priorityLevel:M,startTime:R,expirationTime:V,sortIndex:-1},R>F?(M.sortIndex=R,t(u,M),n(l)===null&&M===n(u)&&(v?(p(S),S=-1):v=!0,W(w,R-F))):(M.sortIndex=V,t(l,M),y||g||(y=!0,Ke(E))),M},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(M){var D=d;return function(){var R=d;d=D;try{return M.apply(this,arguments)}finally{d=R}}}})(nh);th.exports=nh;var Iy=th.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ey=C,We=Iy;function P(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var rh=new Set,Xr={};function Tn(e,t){ir(e,t),ir(e+"Capture",t)}function ir(e,t){for(Xr[e]=t,e=0;e<t.length;e++)rh.add(t[e])}var Kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),aa=Object.prototype.hasOwnProperty,Ky=/^[: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]*$/,fc={},dc={};function Ty(e){return aa.call(dc,e)?!0:aa.call(fc,e)?!1:Ky.test(e)?dc[e]=!0:(fc[e]=!0,!1)}function ky(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Py(e,t,n,r){if(t===null||typeof t>"u"||ky(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 De(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new De(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ce[t]=new De(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new De(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new De(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){Ce[e]=new De(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new De(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new De(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new De(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new De(e,5,!1,e.toLowerCase(),null,!1,!1)});var Kl=/[\-:]([a-z])/g;function Tl(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(Kl,Tl);Ce[t]=new De(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(Kl,Tl);Ce[t]=new De(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(Kl,Tl);Ce[t]=new De(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new De(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new De("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new De(e,1,!1,e.toLowerCase(),null,!0,!0)});function kl(e,t,n,r){var i=Ce.hasOwnProperty(t)?Ce[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Py(t,n,i,r)&&(n=null),r||i===null?Ty(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Rt=Ey.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Bi=Symbol.for("react.element"),Bn=Symbol.for("react.portal"),Nn=Symbol.for("react.fragment"),Pl=Symbol.for("react.strict_mode"),la=Symbol.for("react.profiler"),ih=Symbol.for("react.provider"),oh=Symbol.for("react.context"),Ml=Symbol.for("react.forward_ref"),ua=Symbol.for("react.suspense"),ca=Symbol.for("react.suspense_list"),Dl=Symbol.for("react.memo"),jt=Symbol.for("react.lazy"),sh=Symbol.for("react.offscreen"),hc=Symbol.iterator;function wr(e){return e===null||typeof e!="object"?null:(e=hc&&e[hc]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Object.assign,vs;function Mr(e){if(vs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);vs=t&&t[1]||""}return`
`+vs+e}var Cs=!1;function ws(e,t){if(!e||Cs)return"";Cs=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),o=r.stack.split(`
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Cs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mr(e):""}function My(e){switch(e.tag){case 5:return Mr(e.type);case 16:return Mr("Lazy");case 13:return Mr("Suspense");case 19:return Mr("SuspenseList");case 0:case 2:case 15:return e=ws(e.type,!1),e;case 11:return e=ws(e.type.render,!1),e;case 1:return e=ws(e.type,!0),e;default:return""}}function fa(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 Nn:return"Fragment";case Bn:return"Portal";case la:return"Profiler";case Pl:return"StrictMode";case ua:return"Suspense";case ca:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case oh:return(e.displayName||"Context")+".Consumer";case ih:return(e._context.displayName||"Context")+".Provider";case Ml:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Dl:return t=e.displayName||null,t!==null?t:fa(e.type)||"Memo";case jt:t=e._payload,e=e._init;try{return fa(e(t))}catch{}}return null}function Dy(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 fa(t);case 8:return t===Pl?"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 Jt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ah(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ry(e){var t=ah(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ni(e){e._valueTracker||(e._valueTracker=Ry(e))}function lh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ah(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yo(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 da(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function pc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function uh(e,t){t=t.checked,t!=null&&kl(e,"checked",t,!1)}function ha(e,t){uh(e,t);var n=Jt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?pa(e,t.type,n):t.hasOwnProperty("defaultValue")&&pa(e,t.type,Jt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function mc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function pa(e,t,n){(t!=="number"||yo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Dr=Array.isArray;function Jn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Jt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ma(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(P(91));return ne({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function gc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(P(92));if(Dr(n)){if(1<n.length)throw Error(P(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Jt(n)}}function ch(e,t){var n=Jt(t.value),r=Jt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function yc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function fh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ga(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?fh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Li,dh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Li=Li||document.createElement("div"),Li.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Li.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function br(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lr={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},By=["Webkit","ms","Moz","O"];Object.keys(Lr).forEach(function(e){By.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lr[t]=Lr[e]})});function hh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Lr.hasOwnProperty(e)&&Lr[e]?(""+t).trim():t+"px"}function ph(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=hh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Ny=ne({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 ya(e,t){if(t){if(Ny[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function Aa(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 va=null;function Rl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ca=null,Zn=null,qn=null;function Ac(e){if(e=Si(e)){if(typeof Ca!="function")throw Error(P(280));var t=e.stateNode;t&&(t=Zo(t),Ca(e.stateNode,e.type,t))}}function mh(e){Zn?qn?qn.push(e):qn=[e]:Zn=e}function gh(){if(Zn){var e=Zn,t=qn;if(qn=Zn=null,Ac(e),t)for(e=0;e<t.length;e++)Ac(t[e])}}function yh(e,t){return e(t)}function Ah(){}var xs=!1;function vh(e,t,n){if(xs)return e(t,n);xs=!0;try{return yh(e,t,n)}finally{xs=!1,(Zn!==null||qn!==null)&&(Ah(),gh())}}function Jr(e,t){var n=e.stateNode;if(n===null)return null;var r=Zo(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(P(231,t,typeof n));return n}var wa=!1;if(Kt)try{var xr={};Object.defineProperty(xr,"passive",{get:function(){wa=!0}}),window.addEventListener("test",xr,xr),window.removeEventListener("test",xr,xr)}catch{wa=!1}function Ly(e,t,n,r,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var jr=!1,Ao=null,vo=!1,xa=null,jy={onError:function(e){jr=!0,Ao=e}};function Vy(e,t,n,r,i,o,s,a,l){jr=!1,Ao=null,Ly.apply(jy,arguments)}function Oy(e,t,n,r,i,o,s,a,l){if(Vy.apply(this,arguments),jr){if(jr){var u=Ao;jr=!1,Ao=null}else throw Error(P(198));vo||(vo=!0,xa=u)}}function kn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ch(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function vc(e){if(kn(e)!==e)throw Error(P(188))}function Fy(e){var t=e.alternate;if(!t){if(t=kn(e),t===null)throw Error(P(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return vc(i),e;if(o===r)return vc(i),t;o=o.sibling}throw Error(P(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(P(189))}}if(n.alternate!==r)throw Error(P(190))}if(n.tag!==3)throw Error(P(188));return n.stateNode.current===n?e:t}function wh(e){return e=Fy(e),e!==null?xh(e):null}function xh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=xh(e);if(t!==null)return t;e=e.sibling}return null}var Sh=We.unstable_scheduleCallback,Cc=We.unstable_cancelCallback,_y=We.unstable_shouldYield,zy=We.unstable_requestPaint,ae=We.unstable_now,Uy=We.unstable_getCurrentPriorityLevel,Bl=We.unstable_ImmediatePriority,Ih=We.unstable_UserBlockingPriority,Co=We.unstable_NormalPriority,Wy=We.unstable_LowPriority,Eh=We.unstable_IdlePriority,Qo=null,gt=null;function Hy(e){if(gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(Qo,e,void 0,(e.current.flags&128)===128)}catch{}}var ct=Math.clz32?Math.clz32:Yy,Gy=Math.log,$y=Math.LN2;function Yy(e){return e>>>=0,e===0?32:31-(Gy(e)/$y|0)|0}var ji=64,Vi=4194304;function Rr(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 wo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Rr(a):(o&=s,o!==0&&(r=Rr(o)))}else s=n&~i,s!==0?r=Rr(s):o!==0&&(r=Rr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ct(t),i=1<<n,r|=e[n],t&=~i;return r}function Qy(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xy(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-ct(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=Qy(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function Sa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Kh(){var e=ji;return ji<<=1,!(ji&4194240)&&(ji=64),e}function Ss(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function wi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ct(t),e[t]=n}function by(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-ct(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Nl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ct(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var H=0;function Th(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var kh,Ll,Ph,Mh,Dh,Ia=!1,Oi=[],Wt=null,Ht=null,Gt=null,Zr=new Map,qr=new Map,Ot=[],Jy="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function wc(e,t){switch(e){case"focusin":case"focusout":Wt=null;break;case"dragenter":case"dragleave":Ht=null;break;case"mouseover":case"mouseout":Gt=null;break;case"pointerover":case"pointerout":Zr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qr.delete(t.pointerId)}}function Sr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Si(t),t!==null&&Ll(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Zy(e,t,n,r,i){switch(t){case"focusin":return Wt=Sr(Wt,e,t,n,r,i),!0;case"dragenter":return Ht=Sr(Ht,e,t,n,r,i),!0;case"mouseover":return Gt=Sr(Gt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Zr.set(o,Sr(Zr.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,qr.set(o,Sr(qr.get(o)||null,e,t,n,r,i)),!0}return!1}function Rh(e){var t=dn(e.target);if(t!==null){var n=kn(t);if(n!==null){if(t=n.tag,t===13){if(t=Ch(n),t!==null){e.blockedOn=t,Dh(e.priority,function(){Ph(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function no(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ea(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);va=r,n.target.dispatchEvent(r),va=null}else return t=Si(n),t!==null&&Ll(t),e.blockedOn=n,!1;t.shift()}return!0}function xc(e,t,n){no(e)&&n.delete(t)}function qy(){Ia=!1,Wt!==null&&no(Wt)&&(Wt=null),Ht!==null&&no(Ht)&&(Ht=null),Gt!==null&&no(Gt)&&(Gt=null),Zr.forEach(xc),qr.forEach(xc)}function Ir(e,t){e.blockedOn===t&&(e.blockedOn=null,Ia||(Ia=!0,We.unstable_scheduleCallback(We.unstable_NormalPriority,qy)))}function ei(e){function t(i){return Ir(i,e)}if(0<Oi.length){Ir(Oi[0],e);for(var n=1;n<Oi.length;n++){var r=Oi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Wt!==null&&Ir(Wt,e),Ht!==null&&Ir(Ht,e),Gt!==null&&Ir(Gt,e),Zr.forEach(t),qr.forEach(t),n=0;n<Ot.length;n++)r=Ot[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&(n=Ot[0],n.blockedOn===null);)Rh(n),n.blockedOn===null&&Ot.shift()}var er=Rt.ReactCurrentBatchConfig,xo=!0;function eA(e,t,n,r){var i=H,o=er.transition;er.transition=null;try{H=1,jl(e,t,n,r)}finally{H=i,er.transition=o}}function tA(e,t,n,r){var i=H,o=er.transition;er.transition=null;try{H=4,jl(e,t,n,r)}finally{H=i,er.transition=o}}function jl(e,t,n,r){if(xo){var i=Ea(e,t,n,r);if(i===null)Bs(e,t,r,So,n),wc(e,r);else if(Zy(i,e,t,n,r))r.stopPropagation();else if(wc(e,r),t&4&&-1<Jy.indexOf(e)){for(;i!==null;){var o=Si(i);if(o!==null&&kh(o),o=Ea(e,t,n,r),o===null&&Bs(e,t,r,So,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Bs(e,t,r,null,n)}}var So=null;function Ea(e,t,n,r){if(So=null,e=Rl(r),e=dn(e),e!==null)if(t=kn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ch(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return So=e,null}function Bh(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Uy()){case Bl:return 1;case Ih:return 4;case Co:case Wy:return 16;case Eh:return 536870912;default:return 16}default:return 16}}var _t=null,Vl=null,ro=null;function Nh(){if(ro)return ro;var e,t=Vl,n=t.length,r,i="value"in _t?_t.value:_t.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return ro=i.slice(e,1<r?1-r:void 0)}function io(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Fi(){return!0}function Sc(){return!1}function Ge(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Fi:Sc,this.isPropagationStopped=Sc,this}return ne(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Fi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fi)},persist:function(){},isPersistent:Fi}),t}var pr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ol=Ge(pr),xi=ne({},pr,{view:0,detail:0}),nA=Ge(xi),Is,Es,Er,Xo=ne({},xi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fl,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Er&&(Er&&e.type==="mousemove"?(Is=e.screenX-Er.screenX,Es=e.screenY-Er.screenY):Es=Is=0,Er=e),Is)},movementY:function(e){return"movementY"in e?e.movementY:Es}}),Ic=Ge(Xo),rA=ne({},Xo,{dataTransfer:0}),iA=Ge(rA),oA=ne({},xi,{relatedTarget:0}),Ks=Ge(oA),sA=ne({},pr,{animationName:0,elapsedTime:0,pseudoElement:0}),aA=Ge(sA),lA=ne({},pr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),uA=Ge(lA),cA=ne({},pr,{data:0}),Ec=Ge(cA),fA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dA={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pA(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=hA[e])?!!t[e]:!1}function Fl(){return pA}var mA=ne({},xi,{key:function(e){if(e.key){var t=fA[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=io(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?dA[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fl,charCode:function(e){return e.type==="keypress"?io(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?io(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),gA=Ge(mA),yA=ne({},Xo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kc=Ge(yA),AA=ne({},xi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fl}),vA=Ge(AA),CA=ne({},pr,{propertyName:0,elapsedTime:0,pseudoElement:0}),wA=Ge(CA),xA=ne({},Xo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),SA=Ge(xA),IA=[9,13,27,32],_l=Kt&&"CompositionEvent"in window,Vr=null;Kt&&"documentMode"in document&&(Vr=document.documentMode);var EA=Kt&&"TextEvent"in window&&!Vr,Lh=Kt&&(!_l||Vr&&8<Vr&&11>=Vr),Tc=" ",kc=!1;function jh(e,t){switch(e){case"keyup":return IA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ln=!1;function KA(e,t){switch(e){case"compositionend":return Vh(t);case"keypress":return t.which!==32?null:(kc=!0,Tc);case"textInput":return e=t.data,e===Tc&&kc?null:e;default:return null}}function TA(e,t){if(Ln)return e==="compositionend"||!_l&&jh(e,t)?(e=Nh(),ro=Vl=_t=null,Ln=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lh&&t.locale!=="ko"?null:t.data;default:return null}}var kA={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Pc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!kA[e.type]:t==="textarea"}function Oh(e,t,n,r){mh(r),t=Io(t,"onChange"),0<t.length&&(n=new Ol("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Or=null,ti=null;function PA(e){Xh(e,0)}function bo(e){var t=On(e);if(lh(t))return e}function MA(e,t){if(e==="change")return t}var Fh=!1;if(Kt){var Ts;if(Kt){var ks="oninput"in document;if(!ks){var Mc=document.createElement("div");Mc.setAttribute("oninput","return;"),ks=typeof Mc.oninput=="function"}Ts=ks}else Ts=!1;Fh=Ts&&(!document.documentMode||9<document.documentMode)}function Dc(){Or&&(Or.detachEvent("onpropertychange",_h),ti=Or=null)}function _h(e){if(e.propertyName==="value"&&bo(ti)){var t=[];Oh(t,ti,e,Rl(e)),vh(PA,t)}}function DA(e,t,n){e==="focusin"?(Dc(),Or=t,ti=n,Or.attachEvent("onpropertychange",_h)):e==="focusout"&&Dc()}function RA(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return bo(ti)}function BA(e,t){if(e==="click")return bo(t)}function NA(e,t){if(e==="input"||e==="change")return bo(t)}function LA(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dt=typeof Object.is=="function"?Object.is:LA;function ni(e,t){if(dt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!aa.call(t,i)||!dt(e[i],t[i]))return!1}return!0}function Rc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bc(e,t){var n=Rc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Rc(n)}}function zh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uh(){for(var e=window,t=yo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yo(e.document)}return t}function zl(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 jA(e){var t=Uh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&zh(n.ownerDocument.documentElement,n)){if(r!==null&&zl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Bc(n,o);var s=Bc(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var VA=Kt&&"documentMode"in document&&11>=document.documentMode,jn=null,Ka=null,Fr=null,Ta=!1;function Nc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ta||jn==null||jn!==yo(r)||(r=jn,"selectionStart"in r&&zl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fr&&ni(Fr,r)||(Fr=r,r=Io(Ka,"onSelect"),0<r.length&&(t=new Ol("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=jn)))}function _i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vn={animationend:_i("Animation","AnimationEnd"),animationiteration:_i("Animation","AnimationIteration"),animationstart:_i("Animation","AnimationStart"),transitionend:_i("Transition","TransitionEnd")},Ps={},Wh={};Kt&&(Wh=document.createElement("div").style,"AnimationEvent"in window||(delete Vn.animationend.animation,delete Vn.animationiteration.animation,delete Vn.animationstart.animation),"TransitionEvent"in window||delete Vn.transitionend.transition);function Jo(e){if(Ps[e])return Ps[e];if(!Vn[e])return e;var t=Vn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Wh)return Ps[e]=t[n];return e}var Hh=Jo("animationend"),Gh=Jo("animationiteration"),$h=Jo("animationstart"),Yh=Jo("transitionend"),Qh=new Map,Lc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function tn(e,t){Qh.set(e,t),Tn(t,[e])}for(var Ms=0;Ms<Lc.length;Ms++){var Ds=Lc[Ms],OA=Ds.toLowerCase(),FA=Ds[0].toUpperCase()+Ds.slice(1);tn(OA,"on"+FA)}tn(Hh,"onAnimationEnd");tn(Gh,"onAnimationIteration");tn($h,"onAnimationStart");tn("dblclick","onDoubleClick");tn("focusin","onFocus");tn("focusout","onBlur");tn(Yh,"onTransitionEnd");ir("onMouseEnter",["mouseout","mouseover"]);ir("onMouseLeave",["mouseout","mouseover"]);ir("onPointerEnter",["pointerout","pointerover"]);ir("onPointerLeave",["pointerout","pointerover"]);Tn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Br="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_A=new Set("cancel close invalid load scroll toggle".split(" ").concat(Br));function jc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Oy(r,t,void 0,e),e.currentTarget=null}function Xh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;jc(i,a,u),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;jc(i,a,u),o=l}}}if(vo)throw e=xa,vo=!1,xa=null,e}function Q(e,t){var n=t[Ra];n===void 0&&(n=t[Ra]=new Set);var r=e+"__bubble";n.has(r)||(bh(t,e,2,!1),n.add(r))}function Rs(e,t,n){var r=0;t&&(r|=4),bh(n,e,r,t)}var zi="_reactListening"+Math.random().toString(36).slice(2);function ri(e){if(!e[zi]){e[zi]=!0,rh.forEach(function(n){n!=="selectionchange"&&(_A.has(n)||Rs(n,!1,e),Rs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zi]||(t[zi]=!0,Rs("selectionchange",!1,t))}}function bh(e,t,n,r){switch(Bh(t)){case 1:var i=eA;break;case 4:i=tA;break;default:i=jl}n=i.bind(null,t,n,e),i=void 0,!wa||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Bs(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=dn(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}vh(function(){var u=o,c=Rl(n),f=[];e:{var d=Qh.get(e);if(d!==void 0){var g=Ol,y=e;switch(e){case"keypress":if(io(n)===0)break e;case"keydown":case"keyup":g=gA;break;case"focusin":y="focus",g=Ks;break;case"focusout":y="blur",g=Ks;break;case"beforeblur":case"afterblur":g=Ks;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Ic;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=iA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=vA;break;case Hh:case Gh:case $h:g=aA;break;case Yh:g=wA;break;case"scroll":g=nA;break;case"wheel":g=SA;break;case"copy":case"cut":case"paste":g=uA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Kc}var v=(t&4)!==0,I=!v&&e==="scroll",p=v?d!==null?d+"Capture":null:d;v=[];for(var h=u,m;h!==null;){m=h;var w=m.stateNode;if(m.tag===5&&w!==null&&(m=w,p!==null&&(w=Jr(h,p),w!=null&&v.push(ii(h,w,m)))),I)break;h=h.return}0<v.length&&(d=new g(d,y,null,n,c),f.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",d&&n!==va&&(y=n.relatedTarget||n.fromElement)&&(dn(y)||y[Tt]))break e;if((g||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,g?(y=n.relatedTarget||n.toElement,g=u,y=y?dn(y):null,y!==null&&(I=kn(y),y!==I||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=u),g!==y)){if(v=Ic,w="onMouseLeave",p="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(v=Kc,w="onPointerLeave",p="onPointerEnter",h="pointer"),I=g==null?d:On(g),m=y==null?d:On(y),d=new v(w,h+"leave",g,n,c),d.target=I,d.relatedTarget=m,w=null,dn(c)===u&&(v=new v(p,h+"enter",y,n,c),v.target=m,v.relatedTarget=I,w=v),I=w,g&&y)t:{for(v=g,p=y,h=0,m=v;m;m=Dn(m))h++;for(m=0,w=p;w;w=Dn(w))m++;for(;0<h-m;)v=Dn(v),h--;for(;0<m-h;)p=Dn(p),m--;for(;h--;){if(v===p||p!==null&&v===p.alternate)break t;v=Dn(v),p=Dn(p)}v=null}else v=null;g!==null&&Vc(f,d,g,v,!1),y!==null&&I!==null&&Vc(f,I,y,v,!0)}}e:{if(d=u?On(u):window,g=d.nodeName&&d.nodeName.toLowerCase(),g==="select"||g==="input"&&d.type==="file")var E=MA;else if(Pc(d))if(Fh)E=NA;else{E=RA;var T=DA}else(g=d.nodeName)&&g.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(E=BA);if(E&&(E=E(e,u))){Oh(f,E,n,c);break e}T&&T(e,d,u),e==="focusout"&&(T=d._wrapperState)&&T.controlled&&d.type==="number"&&pa(d,"number",d.value)}switch(T=u?On(u):window,e){case"focusin":(Pc(T)||T.contentEditable==="true")&&(jn=T,Ka=u,Fr=null);break;case"focusout":Fr=Ka=jn=null;break;case"mousedown":Ta=!0;break;case"contextmenu":case"mouseup":case"dragend":Ta=!1,Nc(f,n,c);break;case"selectionchange":if(VA)break;case"keydown":case"keyup":Nc(f,n,c)}var k;if(_l)e:{switch(e){case"compositionstart":var S="onCompositionStart";break e;case"compositionend":S="onCompositionEnd";break e;case"compositionupdate":S="onCompositionUpdate";break e}S=void 0}else Ln?jh(e,n)&&(S="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(Lh&&n.locale!=="ko"&&(Ln||S!=="onCompositionStart"?S==="onCompositionEnd"&&Ln&&(k=Nh()):(_t=c,Vl="value"in _t?_t.value:_t.textContent,Ln=!0)),T=Io(u,S),0<T.length&&(S=new Ec(S,e,null,n,c),f.push({event:S,listeners:T}),k?S.data=k:(k=Vh(n),k!==null&&(S.data=k)))),(k=EA?KA(e,n):TA(e,n))&&(u=Io(u,"onBeforeInput"),0<u.length&&(c=new Ec("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=k))}Xh(f,t)})}function ii(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Io(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Jr(e,n),o!=null&&r.unshift(ii(e,o,i)),o=Jr(e,t),o!=null&&r.push(ii(e,o,i))),e=e.return}return r}function Dn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Vc(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=Jr(n,o),l!=null&&s.unshift(ii(n,l,a))):i||(l=Jr(n,o),l!=null&&s.push(ii(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var zA=/\r\n?/g,UA=/\u0000|\uFFFD/g;function Oc(e){return(typeof e=="string"?e:""+e).replace(zA,`
`).replace(UA,"")}function Ui(e,t,n){if(t=Oc(t),Oc(e)!==t&&n)throw Error(P(425))}function Eo(){}var ka=null,Pa=null;function Ma(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Da=typeof setTimeout=="function"?setTimeout:void 0,WA=typeof clearTimeout=="function"?clearTimeout:void 0,Fc=typeof Promise=="function"?Promise:void 0,HA=typeof queueMicrotask=="function"?queueMicrotask:typeof Fc<"u"?function(e){return Fc.resolve(null).then(e).catch(GA)}:Da;function GA(e){setTimeout(function(){throw e})}function Ns(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),ei(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ei(t)}function $t(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function _c(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var mr=Math.random().toString(36).slice(2),mt="__reactFiber$"+mr,oi="__reactProps$"+mr,Tt="__reactContainer$"+mr,Ra="__reactEvents$"+mr,$A="__reactListeners$"+mr,YA="__reactHandles$"+mr;function dn(e){var t=e[mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tt]||n[mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_c(e);e!==null;){if(n=e[mt])return n;e=_c(e)}return t}e=n,n=e.parentNode}return null}function Si(e){return e=e[mt]||e[Tt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function On(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(P(33))}function Zo(e){return e[oi]||null}var Ba=[],Fn=-1;function nn(e){return{current:e}}function X(e){0>Fn||(e.current=Ba[Fn],Ba[Fn]=null,Fn--)}function Y(e,t){Fn++,Ba[Fn]=e.current,e.current=t}var Zt={},Ee=nn(Zt),je=nn(!1),xn=Zt;function or(e,t){var n=e.type.contextTypes;if(!n)return Zt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ve(e){return e=e.childContextTypes,e!=null}function Ko(){X(je),X(Ee)}function zc(e,t,n){if(Ee.current!==Zt)throw Error(P(168));Y(Ee,t),Y(je,n)}function Jh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(P(108,Dy(e)||"Unknown",i));return ne({},n,r)}function To(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zt,xn=Ee.current,Y(Ee,e),Y(je,je.current),!0}function Uc(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=Jh(e,t,xn),r.__reactInternalMemoizedMergedChildContext=e,X(je),X(Ee),Y(Ee,e)):X(je),Y(je,n)}var xt=null,qo=!1,Ls=!1;function Zh(e){xt===null?xt=[e]:xt.push(e)}function QA(e){qo=!0,Zh(e)}function rn(){if(!Ls&&xt!==null){Ls=!0;var e=0,t=H;try{var n=xt;for(H=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}xt=null,qo=!1}catch(i){throw xt!==null&&(xt=xt.slice(e+1)),Sh(Bl,rn),i}finally{H=t,Ls=!1}}return null}var _n=[],zn=0,ko=null,Po=0,be=[],Je=0,Sn=null,St=1,It="";function un(e,t){_n[zn++]=Po,_n[zn++]=ko,ko=e,Po=t}function qh(e,t,n){be[Je++]=St,be[Je++]=It,be[Je++]=Sn,Sn=e;var r=St;e=It;var i=32-ct(r)-1;r&=~(1<<i),n+=1;var o=32-ct(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,St=1<<32-ct(t)+i|n<<i|r,It=o+e}else St=1<<o|n<<i|r,It=e}function Ul(e){e.return!==null&&(un(e,1),qh(e,1,0))}function Wl(e){for(;e===ko;)ko=_n[--zn],_n[zn]=null,Po=_n[--zn],_n[zn]=null;for(;e===Sn;)Sn=be[--Je],be[Je]=null,It=be[--Je],be[Je]=null,St=be[--Je],be[Je]=null}var Ue=null,ze=null,J=!1,lt=null;function ep(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Wc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ue=e,ze=$t(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ue=e,ze=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Sn!==null?{id:St,overflow:It}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ue=e,ze=null,!0):!1;default:return!1}}function Na(e){return(e.mode&1)!==0&&(e.flags&128)===0}function La(e){if(J){var t=ze;if(t){var n=t;if(!Wc(e,t)){if(Na(e))throw Error(P(418));t=$t(n.nextSibling);var r=Ue;t&&Wc(e,t)?ep(r,n):(e.flags=e.flags&-4097|2,J=!1,Ue=e)}}else{if(Na(e))throw Error(P(418));e.flags=e.flags&-4097|2,J=!1,Ue=e}}}function Hc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ue=e}function Wi(e){if(e!==Ue)return!1;if(!J)return Hc(e),J=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ma(e.type,e.memoizedProps)),t&&(t=ze)){if(Na(e))throw tp(),Error(P(418));for(;t;)ep(e,t),t=$t(t.nextSibling)}if(Hc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ze=$t(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ze=null}}else ze=Ue?$t(e.stateNode.nextSibling):null;return!0}function tp(){for(var e=ze;e;)e=$t(e.nextSibling)}function sr(){ze=Ue=null,J=!1}function Hl(e){lt===null?lt=[e]:lt.push(e)}var XA=Rt.ReactCurrentBatchConfig;function Kr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(P(309));var r=n.stateNode}if(!r)throw Error(P(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(P(284));if(!n._owner)throw Error(P(290,e))}return e}function Hi(e,t){throw e=Object.prototype.toString.call(t),Error(P(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gc(e){var t=e._init;return t(e._payload)}function np(e){function t(p,h){if(e){var m=p.deletions;m===null?(p.deletions=[h],p.flags|=16):m.push(h)}}function n(p,h){if(!e)return null;for(;h!==null;)t(p,h),h=h.sibling;return null}function r(p,h){for(p=new Map;h!==null;)h.key!==null?p.set(h.key,h):p.set(h.index,h),h=h.sibling;return p}function i(p,h){return p=bt(p,h),p.index=0,p.sibling=null,p}function o(p,h,m){return p.index=m,e?(m=p.alternate,m!==null?(m=m.index,m<h?(p.flags|=2,h):m):(p.flags|=2,h)):(p.flags|=1048576,h)}function s(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,h,m,w){return h===null||h.tag!==6?(h=Us(m,p.mode,w),h.return=p,h):(h=i(h,m),h.return=p,h)}function l(p,h,m,w){var E=m.type;return E===Nn?c(p,h,m.props.children,w,m.key):h!==null&&(h.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===jt&&Gc(E)===h.type)?(w=i(h,m.props),w.ref=Kr(p,h,m),w.return=p,w):(w=fo(m.type,m.key,m.props,null,p.mode,w),w.ref=Kr(p,h,m),w.return=p,w)}function u(p,h,m,w){return h===null||h.tag!==4||h.stateNode.containerInfo!==m.containerInfo||h.stateNode.implementation!==m.implementation?(h=Ws(m,p.mode,w),h.return=p,h):(h=i(h,m.children||[]),h.return=p,h)}function c(p,h,m,w,E){return h===null||h.tag!==7?(h=An(m,p.mode,w,E),h.return=p,h):(h=i(h,m),h.return=p,h)}function f(p,h,m){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Us(""+h,p.mode,m),h.return=p,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Bi:return m=fo(h.type,h.key,h.props,null,p.mode,m),m.ref=Kr(p,null,h),m.return=p,m;case Bn:return h=Ws(h,p.mode,m),h.return=p,h;case jt:var w=h._init;return f(p,w(h._payload),m)}if(Dr(h)||wr(h))return h=An(h,p.mode,m,null),h.return=p,h;Hi(p,h)}return null}function d(p,h,m,w){var E=h!==null?h.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return E!==null?null:a(p,h,""+m,w);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Bi:return m.key===E?l(p,h,m,w):null;case Bn:return m.key===E?u(p,h,m,w):null;case jt:return E=m._init,d(p,h,E(m._payload),w)}if(Dr(m)||wr(m))return E!==null?null:c(p,h,m,w,null);Hi(p,m)}return null}function g(p,h,m,w,E){if(typeof w=="string"&&w!==""||typeof w=="number")return p=p.get(m)||null,a(h,p,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Bi:return p=p.get(w.key===null?m:w.key)||null,l(h,p,w,E);case Bn:return p=p.get(w.key===null?m:w.key)||null,u(h,p,w,E);case jt:var T=w._init;return g(p,h,m,T(w._payload),E)}if(Dr(w)||wr(w))return p=p.get(m)||null,c(h,p,w,E,null);Hi(h,w)}return null}function y(p,h,m,w){for(var E=null,T=null,k=h,S=h=0,K=null;k!==null&&S<m.length;S++){k.index>S?(K=k,k=null):K=k.sibling;var x=d(p,k,m[S],w);if(x===null){k===null&&(k=K);break}e&&k&&x.alternate===null&&t(p,k),h=o(x,h,S),T===null?E=x:T.sibling=x,T=x,k=K}if(S===m.length)return n(p,k),J&&un(p,S),E;if(k===null){for(;S<m.length;S++)k=f(p,m[S],w),k!==null&&(h=o(k,h,S),T===null?E=k:T.sibling=k,T=k);return J&&un(p,S),E}for(k=r(p,k);S<m.length;S++)K=g(k,p,S,m[S],w),K!==null&&(e&&K.alternate!==null&&k.delete(K.key===null?S:K.key),h=o(K,h,S),T===null?E=K:T.sibling=K,T=K);return e&&k.forEach(function(B){return t(p,B)}),J&&un(p,S),E}function v(p,h,m,w){var E=wr(m);if(typeof E!="function")throw Error(P(150));if(m=E.call(m),m==null)throw Error(P(151));for(var T=E=null,k=h,S=h=0,K=null,x=m.next();k!==null&&!x.done;S++,x=m.next()){k.index>S?(K=k,k=null):K=k.sibling;var B=d(p,k,x.value,w);if(B===null){k===null&&(k=K);break}e&&k&&B.alternate===null&&t(p,k),h=o(B,h,S),T===null?E=B:T.sibling=B,T=B,k=K}if(x.done)return n(p,k),J&&un(p,S),E;if(k===null){for(;!x.done;S++,x=m.next())x=f(p,x.value,w),x!==null&&(h=o(x,h,S),T===null?E=x:T.sibling=x,T=x);return J&&un(p,S),E}for(k=r(p,k);!x.done;S++,x=m.next())x=g(k,p,S,x.value,w),x!==null&&(e&&x.alternate!==null&&k.delete(x.key===null?S:x.key),h=o(x,h,S),T===null?E=x:T.sibling=x,T=x);return e&&k.forEach(function(L){return t(p,L)}),J&&un(p,S),E}function I(p,h,m,w){if(typeof m=="object"&&m!==null&&m.type===Nn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Bi:e:{for(var E=m.key,T=h;T!==null;){if(T.key===E){if(E=m.type,E===Nn){if(T.tag===7){n(p,T.sibling),h=i(T,m.props.children),h.return=p,p=h;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===jt&&Gc(E)===T.type){n(p,T.sibling),h=i(T,m.props),h.ref=Kr(p,T,m),h.return=p,p=h;break e}n(p,T);break}else t(p,T);T=T.sibling}m.type===Nn?(h=An(m.props.children,p.mode,w,m.key),h.return=p,p=h):(w=fo(m.type,m.key,m.props,null,p.mode,w),w.ref=Kr(p,h,m),w.return=p,p=w)}return s(p);case Bn:e:{for(T=m.key;h!==null;){if(h.key===T)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(p,h.sibling),h=i(h,m.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=Ws(m,p.mode,w),h.return=p,p=h}return s(p);case jt:return T=m._init,I(p,h,T(m._payload),w)}if(Dr(m))return y(p,h,m,w);if(wr(m))return v(p,h,m,w);Hi(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,m),h.return=p,p=h):(n(p,h),h=Us(m,p.mode,w),h.return=p,p=h),s(p)):n(p,h)}return I}var ar=np(!0),rp=np(!1),Mo=nn(null),Do=null,Un=null,Gl=null;function $l(){Gl=Un=Do=null}function Yl(e){var t=Mo.current;X(Mo),e._currentValue=t}function ja(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function tr(e,t){Do=e,Gl=Un=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Be=!0),e.firstContext=null)}function tt(e){var t=e._currentValue;if(Gl!==e)if(e={context:e,memoizedValue:t,next:null},Un===null){if(Do===null)throw Error(P(308));Un=e,Do.dependencies={lanes:0,firstContext:e}}else Un=Un.next=e;return t}var hn=null;function Ql(e){hn===null?hn=[e]:hn.push(e)}function ip(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ql(t)):(n.next=i.next,i.next=n),t.interleaved=n,kt(e,r)}function kt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Vt=!1;function Xl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function op(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 Et(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,kt(e,n)}return i=r.interleaved,i===null?(t.next=t,Ql(r)):(t.next=i.next,i.next=t),r.interleaved=t,kt(e,n)}function oo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Nl(e,n)}}function $c(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ro(e,t,n,r){var i=e.updateQueue;Vt=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;s=0,c=u=l=null,a=o;do{var d=a.lane,g=a.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,v=a;switch(d=t,g=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){f=y.call(g,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,d=typeof y=="function"?y.call(g,f,d):y,d==null)break e;f=ne({},f,d);break e;case 2:Vt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else g={eventTime:g,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=g,l=f):c=c.next=g,s|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);En|=s,e.lanes=s,e.memoizedState=f}}function Yc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(P(191,i));i.call(r)}}}var Ii={},yt=nn(Ii),si=nn(Ii),ai=nn(Ii);function pn(e){if(e===Ii)throw Error(P(174));return e}function bl(e,t){switch(Y(ai,t),Y(si,e),Y(yt,Ii),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ga(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ga(t,e)}X(yt),Y(yt,t)}function lr(){X(yt),X(si),X(ai)}function sp(e){pn(ai.current);var t=pn(yt.current),n=ga(t,e.type);t!==n&&(Y(si,e),Y(yt,n))}function Jl(e){si.current===e&&(X(yt),X(si))}var q=nn(0);function Bo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var js=[];function Zl(){for(var e=0;e<js.length;e++)js[e]._workInProgressVersionPrimary=null;js.length=0}var so=Rt.ReactCurrentDispatcher,Vs=Rt.ReactCurrentBatchConfig,In=0,te=null,he=null,me=null,No=!1,_r=!1,li=0,bA=0;function we(){throw Error(P(321))}function ql(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!dt(e[n],t[n]))return!1;return!0}function eu(e,t,n,r,i,o){if(In=o,te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,so.current=e===null||e.memoizedState===null?ev:tv,e=n(r,i),_r){o=0;do{if(_r=!1,li=0,25<=o)throw Error(P(301));o+=1,me=he=null,t.updateQueue=null,so.current=nv,e=n(r,i)}while(_r)}if(so.current=Lo,t=he!==null&&he.next!==null,In=0,me=he=te=null,No=!1,t)throw Error(P(300));return e}function tu(){var e=li!==0;return li=0,e}function pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return me===null?te.memoizedState=me=e:me=me.next=e,me}function nt(){if(he===null){var e=te.alternate;e=e!==null?e.memoizedState:null}else e=he.next;var t=me===null?te.memoizedState:me.next;if(t!==null)me=t,he=e;else{if(e===null)throw Error(P(310));he=e,e={memoizedState:he.memoizedState,baseState:he.baseState,baseQueue:he.baseQueue,queue:he.queue,next:null},me===null?te.memoizedState=me=e:me=me.next=e}return me}function ui(e,t){return typeof t=="function"?t(e):t}function Os(e){var t=nt(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var r=he,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,u=o;do{var c=u.lane;if((In&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,s=r):l=l.next=f,te.lanes|=c,En|=c}u=u.next}while(u!==null&&u!==o);l===null?s=r:l.next=a,dt(r,t.memoizedState)||(Be=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,te.lanes|=o,En|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Fs(e){var t=nt(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);dt(o,t.memoizedState)||(Be=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ap(){}function lp(e,t){var n=te,r=nt(),i=t(),o=!dt(r.memoizedState,i);if(o&&(r.memoizedState=i,Be=!0),r=r.queue,nu(fp.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||me!==null&&me.memoizedState.tag&1){if(n.flags|=2048,ci(9,cp.bind(null,n,r,i,t),void 0,null),ge===null)throw Error(P(349));In&30||up(n,t,i)}return i}function up(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=te.updateQueue,t===null?(t={lastEffect:null,stores:null},te.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function cp(e,t,n,r){t.value=n,t.getSnapshot=r,dp(t)&&hp(e)}function fp(e,t,n){return n(function(){dp(t)&&hp(e)})}function dp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!dt(e,n)}catch{return!0}}function hp(e){var t=kt(e,1);t!==null&&ft(t,e,1,-1)}function Qc(e){var t=pt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ui,lastRenderedState:e},t.queue=e,e=e.dispatch=qA.bind(null,te,e),[t.memoizedState,e]}function ci(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=te.updateQueue,t===null?(t={lastEffect:null,stores:null},te.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function pp(){return nt().memoizedState}function ao(e,t,n,r){var i=pt();te.flags|=e,i.memoizedState=ci(1|t,n,void 0,r===void 0?null:r)}function es(e,t,n,r){var i=nt();r=r===void 0?null:r;var o=void 0;if(he!==null){var s=he.memoizedState;if(o=s.destroy,r!==null&&ql(r,s.deps)){i.memoizedState=ci(t,n,o,r);return}}te.flags|=e,i.memoizedState=ci(1|t,n,o,r)}function Xc(e,t){return ao(8390656,8,e,t)}function nu(e,t){return es(2048,8,e,t)}function mp(e,t){return es(4,2,e,t)}function gp(e,t){return es(4,4,e,t)}function yp(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ap(e,t,n){return n=n!=null?n.concat([e]):null,es(4,4,yp.bind(null,t,e),n)}function ru(){}function vp(e,t){var n=nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ql(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Cp(e,t){var n=nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ql(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function wp(e,t,n){return In&21?(dt(n,t)||(n=Kh(),te.lanes|=n,En|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Be=!0),e.memoizedState=n)}function JA(e,t){var n=H;H=n!==0&&4>n?n:4,e(!0);var r=Vs.transition;Vs.transition={};try{e(!1),t()}finally{H=n,Vs.transition=r}}function xp(){return nt().memoizedState}function ZA(e,t,n){var r=Xt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Sp(e))Ip(t,n);else if(n=ip(e,t,n,r),n!==null){var i=Pe();ft(n,e,r,i),Ep(n,t,r)}}function qA(e,t,n){var r=Xt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Sp(e))Ip(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,dt(a,s)){var l=t.interleaved;l===null?(i.next=i,Ql(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=ip(e,t,i,r),n!==null&&(i=Pe(),ft(n,e,r,i),Ep(n,t,r))}}function Sp(e){var t=e.alternate;return e===te||t!==null&&t===te}function Ip(e,t){_r=No=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ep(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Nl(e,n)}}var Lo={readContext:tt,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},ev={readContext:tt,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:Xc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ao(4194308,4,yp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ao(4194308,4,e,t)},useInsertionEffect:function(e,t){return ao(4,2,e,t)},useMemo:function(e,t){var n=pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ZA.bind(null,te,e),[r.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:Qc,useDebugValue:ru,useDeferredValue:function(e){return pt().memoizedState=e},useTransition:function(){var e=Qc(!1),t=e[0];return e=JA.bind(null,e[1]),pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=te,i=pt();if(J){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),ge===null)throw Error(P(349));In&30||up(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Xc(fp.bind(null,r,o,e),[e]),r.flags|=2048,ci(9,cp.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=pt(),t=ge.identifierPrefix;if(J){var n=It,r=St;n=(r&~(1<<32-ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=li++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=bA++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},tv={readContext:tt,useCallback:vp,useContext:tt,useEffect:nu,useImperativeHandle:Ap,useInsertionEffect:mp,useLayoutEffect:gp,useMemo:Cp,useReducer:Os,useRef:pp,useState:function(){return Os(ui)},useDebugValue:ru,useDeferredValue:function(e){var t=nt();return wp(t,he.memoizedState,e)},useTransition:function(){var e=Os(ui)[0],t=nt().memoizedState;return[e,t]},useMutableSource:ap,useSyncExternalStore:lp,useId:xp,unstable_isNewReconciler:!1},nv={readContext:tt,useCallback:vp,useContext:tt,useEffect:nu,useImperativeHandle:Ap,useInsertionEffect:mp,useLayoutEffect:gp,useMemo:Cp,useReducer:Fs,useRef:pp,useState:function(){return Fs(ui)},useDebugValue:ru,useDeferredValue:function(e){var t=nt();return he===null?t.memoizedState=e:wp(t,he.memoizedState,e)},useTransition:function(){var e=Fs(ui)[0],t=nt().memoizedState;return[e,t]},useMutableSource:ap,useSyncExternalStore:lp,useId:xp,unstable_isNewReconciler:!1};function st(e,t){if(e&&e.defaultProps){t=ne({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Va(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ts={isMounted:function(e){return(e=e._reactInternals)?kn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Pe(),i=Xt(e),o=Et(r,i);o.payload=t,n!=null&&(o.callback=n),t=Yt(e,o,i),t!==null&&(ft(t,e,i,r),oo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Pe(),i=Xt(e),o=Et(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Yt(e,o,i),t!==null&&(ft(t,e,i,r),oo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pe(),r=Xt(e),i=Et(n,r);i.tag=2,t!=null&&(i.callback=t),t=Yt(e,i,r),t!==null&&(ft(t,e,r,n),oo(t,e,r))}};function bc(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!ni(n,r)||!ni(i,o):!0}function Kp(e,t,n){var r=!1,i=Zt,o=t.contextType;return typeof o=="object"&&o!==null?o=tt(o):(i=Ve(t)?xn:Ee.current,r=t.contextTypes,o=(r=r!=null)?or(e,i):Zt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ts,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Jc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ts.enqueueReplaceState(t,t.state,null)}function Oa(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Xl(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=tt(o):(o=Ve(t)?xn:Ee.current,i.context=or(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Va(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&ts.enqueueReplaceState(i,i.state,null),Ro(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ur(e,t){try{var n="",r=t;do n+=My(r),r=r.return;while(r);var i=n}catch(o){i=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function _s(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Fa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rv=typeof WeakMap=="function"?WeakMap:Map;function Tp(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vo||(Vo=!0,Xa=r),Fa(e,t)},n}function kp(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Fa(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Fa(e,t),typeof r!="function"&&(Qt===null?Qt=new Set([this]):Qt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Zc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rv;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=yv.bind(null,e,t,n),t.then(e,e))}function qc(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 ef(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,Yt(n,t,1))),n.lanes|=1),e)}var iv=Rt.ReactCurrentOwner,Be=!1;function Te(e,t,n,r){t.child=e===null?rp(t,null,n,r):ar(t,e.child,n,r)}function tf(e,t,n,r,i){n=n.render;var o=t.ref;return tr(t,i),r=eu(e,t,n,r,o,i),n=tu(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(J&&n&&Ul(t),t.flags|=1,Te(e,t,r,i),t.child)}function nf(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!fu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Pp(e,t,o,r,i)):(e=fo(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:ni,n(s,r)&&e.ref===t.ref)return Pt(e,t,i)}return t.flags|=1,e=bt(o,r),e.ref=t.ref,e.return=t,t.child=e}function Pp(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(ni(o,r)&&e.ref===t.ref)if(Be=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Be=!0);else return t.lanes=e.lanes,Pt(e,t,i)}return _a(e,t,n,r,i)}function Mp(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(Hn,_e),_e|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(Hn,_e),_e|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Y(Hn,_e),_e|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Y(Hn,_e),_e|=r;return Te(e,t,i,n),t.child}function Dp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _a(e,t,n,r,i){var o=Ve(n)?xn:Ee.current;return o=or(t,o),tr(t,i),n=eu(e,t,n,r,o,i),r=tu(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(J&&r&&Ul(t),t.flags|=1,Te(e,t,n,i),t.child)}function rf(e,t,n,r,i){if(Ve(n)){var o=!0;To(t)}else o=!1;if(tr(t,i),t.stateNode===null)lo(e,t),Kp(t,n,r),Oa(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=tt(u):(u=Ve(n)?xn:Ee.current,u=or(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Jc(t,s,r,u),Vt=!1;var d=t.memoizedState;s.state=d,Ro(t,r,s,i),l=t.memoizedState,a!==r||d!==l||je.current||Vt?(typeof c=="function"&&(Va(t,n,c,r),l=t.memoizedState),(a=Vt||bc(t,n,a,r,d,l,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,op(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:st(t.type,a),s.props=u,f=t.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=tt(l):(l=Ve(n)?xn:Ee.current,l=or(t,l));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||d!==l)&&Jc(t,s,r,l),Vt=!1,d=t.memoizedState,s.state=d,Ro(t,r,s,i);var y=t.memoizedState;a!==f||d!==y||je.current||Vt?(typeof g=="function"&&(Va(t,n,g,r),y=t.memoizedState),(u=Vt||bc(t,n,u,r,d,y,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return za(e,t,n,r,o,i)}function za(e,t,n,r,i,o){Dp(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Uc(t,n,!1),Pt(e,t,o);r=t.stateNode,iv.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ar(t,e.child,null,o),t.child=ar(t,null,a,o)):Te(e,t,a,o),t.memoizedState=r.state,i&&Uc(t,n,!0),t.child}function Rp(e){var t=e.stateNode;t.pendingContext?zc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&zc(e,t.context,!1),bl(e,t.containerInfo)}function of(e,t,n,r,i){return sr(),Hl(i),t.flags|=256,Te(e,t,n,r),t.child}var Ua={dehydrated:null,treeContext:null,retryLane:0};function Wa(e){return{baseLanes:e,cachePool:null,transitions:null}}function Bp(e,t,n){var r=t.pendingProps,i=q.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Y(q,i&1),e===null)return La(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):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=is(s,r,0,null),e=An(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Wa(n),t.memoizedState=Ua,e):iu(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return ov(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=bt(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=bt(a,o):(o=An(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Wa(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Ua,r}return o=e.child,e=o.sibling,r=bt(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function iu(e,t){return t=is({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Gi(e,t,n,r){return r!==null&&Hl(r),ar(t,e.child,null,n),e=iu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ov(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=_s(Error(P(422))),Gi(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=is({mode:"visible",children:r.children},i,0,null),o=An(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ar(t,e.child,null,s),t.child.memoizedState=Wa(s),t.memoizedState=Ua,o);if(!(t.mode&1))return Gi(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(P(419)),r=_s(o,r,void 0),Gi(e,t,s,r)}if(a=(s&e.childLanes)!==0,Be||a){if(r=ge,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,kt(e,i),ft(r,e,i,-1))}return cu(),r=_s(Error(P(421))),Gi(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Av.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ze=$t(i.nextSibling),Ue=t,J=!0,lt=null,e!==null&&(be[Je++]=St,be[Je++]=It,be[Je++]=Sn,St=e.id,It=e.overflow,Sn=t),t=iu(t,r.children),t.flags|=4096,t)}function sf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ja(e.return,t,n)}function zs(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Np(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Te(e,t,r.children,n),r=q.current,r&2)r=r&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&&sf(e,n,t);else if(e.tag===19)sf(e,n,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}r&=1}if(Y(q,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Bo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),zs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Bo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}zs(t,!0,n,null,o);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function lo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),En|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(P(153));if(t.child!==null){for(e=t.child,n=bt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=bt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function sv(e,t,n){switch(t.tag){case 3:Rp(t),sr();break;case 5:sp(t);break;case 1:Ve(t.type)&&To(t);break;case 4:bl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Y(Mo,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Y(q,q.current&1),t.flags|=128,null):n&t.child.childLanes?Bp(e,t,n):(Y(q,q.current&1),e=Pt(e,t,n),e!==null?e.sibling:null);Y(q,q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Np(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Y(q,q.current),r)break;return null;case 22:case 23:return t.lanes=0,Mp(e,t,n)}return Pt(e,t,n)}var Lp,Ha,jp,Vp;Lp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ha=function(){};jp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,pn(yt.current);var o=null;switch(n){case"input":i=da(e,i),r=da(e,r),o=[];break;case"select":i=ne({},i,{value:void 0}),r=ne({},r,{value:void 0}),o=[];break;case"textarea":i=ma(e,i),r=ma(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Eo)}ya(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Xr.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Xr.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Q("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Vp=function(e,t,n,r){n!==r&&(t.flags|=4)};function Tr(e,t){if(!J)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function av(e,t,n){var r=t.pendingProps;switch(Wl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xe(t),null;case 1:return Ve(t.type)&&Ko(),xe(t),null;case 3:return r=t.stateNode,lr(),X(je),X(Ee),Zl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Wi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,lt!==null&&(Za(lt),lt=null))),Ha(e,t),xe(t),null;case 5:Jl(t);var i=pn(ai.current);if(n=t.type,e!==null&&t.stateNode!=null)jp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(P(166));return xe(t),null}if(e=pn(yt.current),Wi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[mt]=t,r[oi]=o,e=(t.mode&1)!==0,n){case"dialog":Q("cancel",r),Q("close",r);break;case"iframe":case"object":case"embed":Q("load",r);break;case"video":case"audio":for(i=0;i<Br.length;i++)Q(Br[i],r);break;case"source":Q("error",r);break;case"img":case"image":case"link":Q("error",r),Q("load",r);break;case"details":Q("toggle",r);break;case"input":pc(r,o),Q("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Q("invalid",r);break;case"textarea":gc(r,o),Q("invalid",r)}ya(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&Ui(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Ui(r.textContent,a,e),i=["children",""+a]):Xr.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Q("scroll",r)}switch(n){case"input":Ni(r),mc(r,o,!0);break;case"textarea":Ni(r),yc(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Eo)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=fh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[mt]=t,e[oi]=r,Lp(e,t,!1,!1),t.stateNode=e;e:{switch(s=Aa(n,r),n){case"dialog":Q("cancel",e),Q("close",e),i=r;break;case"iframe":case"object":case"embed":Q("load",e),i=r;break;case"video":case"audio":for(i=0;i<Br.length;i++)Q(Br[i],e);i=r;break;case"source":Q("error",e),i=r;break;case"img":case"image":case"link":Q("error",e),Q("load",e),i=r;break;case"details":Q("toggle",e),i=r;break;case"input":pc(e,r),i=da(e,r),Q("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ne({},r,{value:void 0}),Q("invalid",e);break;case"textarea":gc(e,r),i=ma(e,r),Q("invalid",e);break;default:i=r}ya(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?ph(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&dh(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&br(e,l):typeof l=="number"&&br(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Xr.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Q("scroll",e):l!=null&&kl(e,o,l,s))}switch(n){case"input":Ni(e),mc(e,r,!1);break;case"textarea":Ni(e),yc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Jt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Jn(e,!!r.multiple,o,!1):r.defaultValue!=null&&Jn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Eo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return xe(t),null;case 6:if(e&&t.stateNode!=null)Vp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(P(166));if(n=pn(ai.current),pn(yt.current),Wi(t)){if(r=t.stateNode,n=t.memoizedProps,r[mt]=t,(o=r.nodeValue!==n)&&(e=Ue,e!==null))switch(e.tag){case 3:Ui(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ui(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[mt]=t,t.stateNode=r}return xe(t),null;case 13:if(X(q),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(J&&ze!==null&&t.mode&1&&!(t.flags&128))tp(),sr(),t.flags|=98560,o=!1;else if(o=Wi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(P(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(P(317));o[mt]=t}else sr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xe(t),o=!1}else lt!==null&&(Za(lt),lt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||q.current&1?pe===0&&(pe=3):cu())),t.updateQueue!==null&&(t.flags|=4),xe(t),null);case 4:return lr(),Ha(e,t),e===null&&ri(t.stateNode.containerInfo),xe(t),null;case 10:return Yl(t.type._context),xe(t),null;case 17:return Ve(t.type)&&Ko(),xe(t),null;case 19:if(X(q),o=t.memoizedState,o===null)return xe(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Tr(o,!1);else{if(pe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Bo(e),s!==null){for(t.flags|=128,Tr(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Y(q,q.current&1|2),t.child}e=e.sibling}o.tail!==null&&ae()>cr&&(t.flags|=128,r=!0,Tr(o,!1),t.lanes=4194304)}else{if(!r)if(e=Bo(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Tr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!J)return xe(t),null}else 2*ae()-o.renderingStartTime>cr&&n!==1073741824&&(t.flags|=128,r=!0,Tr(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ae(),t.sibling=null,n=q.current,Y(q,r?n&1|2:n&1),t):(xe(t),null);case 22:case 23:return uu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?_e&1073741824&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function lv(e,t){switch(Wl(t),t.tag){case 1:return Ve(t.type)&&Ko(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return lr(),X(je),X(Ee),Zl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Jl(t),null;case 13:if(X(q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));sr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(q),null;case 4:return lr(),null;case 10:return Yl(t.type._context),null;case 22:case 23:return uu(),null;case 24:return null;default:return null}}var $i=!1,Se=!1,uv=typeof WeakSet=="function"?WeakSet:Set,N=null;function Wn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oe(e,t,r)}else n.current=null}function Ga(e,t,n){try{n()}catch(r){oe(e,t,r)}}var af=!1;function cv(e,t){if(ka=xo,e=Uh(),zl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(a=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)d=f,f=g;for(;;){if(f===e)break t;if(d===n&&++u===i&&(a=s),d===o&&++c===r&&(l=s),(g=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pa={focusedElem:e,selectionRange:n},xo=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;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 v=y.memoizedProps,I=y.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?v:st(t.type,v),I);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(w){oe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return y=af,af=!1,y}function zr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Ga(t,n,o)}i=i.next}while(i!==r)}}function ns(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function $a(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Op(e){var t=e.alternate;t!==null&&(e.alternate=null,Op(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mt],delete t[oi],delete t[Ra],delete t[$A],delete t[YA])),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 Fp(e){return e.tag===5||e.tag===3||e.tag===4}function lf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fp(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 Ya(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Eo));else if(r!==4&&(e=e.child,e!==null))for(Ya(e,t,n),e=e.sibling;e!==null;)Ya(e,t,n),e=e.sibling}function Qa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Qa(e,t,n),e=e.sibling;e!==null;)Qa(e,t,n),e=e.sibling}var ye=null,at=!1;function Nt(e,t,n){for(n=n.child;n!==null;)_p(e,t,n),n=n.sibling}function _p(e,t,n){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(Qo,n)}catch{}switch(n.tag){case 5:Se||Wn(n,t);case 6:var r=ye,i=at;ye=null,Nt(e,t,n),ye=r,at=i,ye!==null&&(at?(e=ye,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ye.removeChild(n.stateNode));break;case 18:ye!==null&&(at?(e=ye,n=n.stateNode,e.nodeType===8?Ns(e.parentNode,n):e.nodeType===1&&Ns(e,n),ei(e)):Ns(ye,n.stateNode));break;case 4:r=ye,i=at,ye=n.stateNode.containerInfo,at=!0,Nt(e,t,n),ye=r,at=i;break;case 0:case 11:case 14:case 15:if(!Se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Ga(n,t,s),i=i.next}while(i!==r)}Nt(e,t,n);break;case 1:if(!Se&&(Wn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){oe(n,t,a)}Nt(e,t,n);break;case 21:Nt(e,t,n);break;case 22:n.mode&1?(Se=(r=Se)||n.memoizedState!==null,Nt(e,t,n),Se=r):Nt(e,t,n);break;default:Nt(e,t,n)}}function uf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new uv),t.forEach(function(r){var i=vv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function rt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:ye=a.stateNode,at=!1;break e;case 3:ye=a.stateNode.containerInfo,at=!0;break e;case 4:ye=a.stateNode.containerInfo,at=!0;break e}a=a.return}if(ye===null)throw Error(P(160));_p(o,s,i),ye=null,at=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){oe(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)zp(t,e),t=t.sibling}function zp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(rt(t,e),ht(e),r&4){try{zr(3,e,e.return),ns(3,e)}catch(v){oe(e,e.return,v)}try{zr(5,e,e.return)}catch(v){oe(e,e.return,v)}}break;case 1:rt(t,e),ht(e),r&512&&n!==null&&Wn(n,n.return);break;case 5:if(rt(t,e),ht(e),r&512&&n!==null&&Wn(n,n.return),e.flags&32){var i=e.stateNode;try{br(i,"")}catch(v){oe(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&uh(i,o),Aa(a,s);var u=Aa(a,o);for(s=0;s<l.length;s+=2){var c=l[s],f=l[s+1];c==="style"?ph(i,f):c==="dangerouslySetInnerHTML"?dh(i,f):c==="children"?br(i,f):kl(i,c,f,u)}switch(a){case"input":ha(i,o);break;case"textarea":ch(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var g=o.value;g!=null?Jn(i,!!o.multiple,g,!1):d!==!!o.multiple&&(o.defaultValue!=null?Jn(i,!!o.multiple,o.defaultValue,!0):Jn(i,!!o.multiple,o.multiple?[]:"",!1))}i[oi]=o}catch(v){oe(e,e.return,v)}}break;case 6:if(rt(t,e),ht(e),r&4){if(e.stateNode===null)throw Error(P(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(v){oe(e,e.return,v)}}break;case 3:if(rt(t,e),ht(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ei(t.containerInfo)}catch(v){oe(e,e.return,v)}break;case 4:rt(t,e),ht(e);break;case 13:rt(t,e),ht(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(au=ae())),r&4&&uf(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Se=(u=Se)||c,rt(t,e),Se=u):rt(t,e),ht(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(N=e,c=e.child;c!==null;){for(f=N=c;N!==null;){switch(d=N,g=d.child,d.tag){case 0:case 11:case 14:case 15:zr(4,d,d.return);break;case 1:Wn(d,d.return);var y=d.stateNode;if(typeof y.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(v){oe(r,n,v)}}break;case 5:Wn(d,d.return);break;case 22:if(d.memoizedState!==null){ff(f);continue}}g!==null?(g.return=d,N=g):ff(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=hh("display",s))}catch(v){oe(e,e.return,v)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){oe(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:rt(t,e),ht(e),r&4&&uf(e);break;case 21:break;default:rt(t,e),ht(e)}}function ht(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Fp(n)){var r=n;break e}n=n.return}throw Error(P(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(br(i,""),r.flags&=-33);var o=lf(e);Qa(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=lf(e);Ya(e,a,s);break;default:throw Error(P(161))}}catch(l){oe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function fv(e,t,n){N=e,Up(e)}function Up(e,t,n){for(var r=(e.mode&1)!==0;N!==null;){var i=N,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||$i;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Se;a=$i;var u=Se;if($i=s,(Se=l)&&!u)for(N=i;N!==null;)s=N,l=s.child,s.tag===22&&s.memoizedState!==null?df(i):l!==null?(l.return=s,N=l):df(i);for(;o!==null;)N=o,Up(o),o=o.sibling;N=i,$i=a,Se=u}cf(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,N=o):cf(e)}}function cf(e){for(;N!==null;){var t=N;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Se||ns(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Se)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:st(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Yc(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Yc(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&ei(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(P(163))}Se||t.flags&512&&$a(t)}catch(d){oe(t,t.return,d)}}if(t===e){N=null;break}if(n=t.sibling,n!==null){n.return=t.return,N=n;break}N=t.return}}function ff(e){for(;N!==null;){var t=N;if(t===e){N=null;break}var n=t.sibling;if(n!==null){n.return=t.return,N=n;break}N=t.return}}function df(e){for(;N!==null;){var t=N;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ns(4,t)}catch(l){oe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){oe(t,i,l)}}var o=t.return;try{$a(t)}catch(l){oe(t,o,l)}break;case 5:var s=t.return;try{$a(t)}catch(l){oe(t,s,l)}}}catch(l){oe(t,t.return,l)}if(t===e){N=null;break}var a=t.sibling;if(a!==null){a.return=t.return,N=a;break}N=t.return}}var dv=Math.ceil,jo=Rt.ReactCurrentDispatcher,ou=Rt.ReactCurrentOwner,qe=Rt.ReactCurrentBatchConfig,U=0,ge=null,ce=null,ve=0,_e=0,Hn=nn(0),pe=0,fi=null,En=0,rs=0,su=0,Ur=null,Re=null,au=0,cr=1/0,wt=null,Vo=!1,Xa=null,Qt=null,Yi=!1,zt=null,Oo=0,Wr=0,ba=null,uo=-1,co=0;function Pe(){return U&6?ae():uo!==-1?uo:uo=ae()}function Xt(e){return e.mode&1?U&2&&ve!==0?ve&-ve:XA.transition!==null?(co===0&&(co=Kh()),co):(e=H,e!==0||(e=window.event,e=e===void 0?16:Bh(e.type)),e):1}function ft(e,t,n,r){if(50<Wr)throw Wr=0,ba=null,Error(P(185));wi(e,n,r),(!(U&2)||e!==ge)&&(e===ge&&(!(U&2)&&(rs|=n),pe===4&&Ft(e,ve)),Oe(e,r),n===1&&U===0&&!(t.mode&1)&&(cr=ae()+500,qo&&rn()))}function Oe(e,t){var n=e.callbackNode;Xy(e,t);var r=wo(e,e===ge?ve:0);if(r===0)n!==null&&Cc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Cc(n),t===1)e.tag===0?QA(hf.bind(null,e)):Zh(hf.bind(null,e)),HA(function(){!(U&6)&&rn()}),n=null;else{switch(Th(r)){case 1:n=Bl;break;case 4:n=Ih;break;case 16:n=Co;break;case 536870912:n=Eh;break;default:n=Co}n=bp(n,Wp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Wp(e,t){if(uo=-1,co=0,U&6)throw Error(P(327));var n=e.callbackNode;if(nr()&&e.callbackNode!==n)return null;var r=wo(e,e===ge?ve:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Fo(e,r);else{t=r;var i=U;U|=2;var o=Gp();(ge!==e||ve!==t)&&(wt=null,cr=ae()+500,yn(e,t));do try{mv();break}catch(a){Hp(e,a)}while(!0);$l(),jo.current=o,U=i,ce!==null?t=0:(ge=null,ve=0,t=pe)}if(t!==0){if(t===2&&(i=Sa(e),i!==0&&(r=i,t=Ja(e,i))),t===1)throw n=fi,yn(e,0),Ft(e,r),Oe(e,ae()),n;if(t===6)Ft(e,r);else{if(i=e.current.alternate,!(r&30)&&!hv(i)&&(t=Fo(e,r),t===2&&(o=Sa(e),o!==0&&(r=o,t=Ja(e,o))),t===1))throw n=fi,yn(e,0),Ft(e,r),Oe(e,ae()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(P(345));case 2:cn(e,Re,wt);break;case 3:if(Ft(e,r),(r&130023424)===r&&(t=au+500-ae(),10<t)){if(wo(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Pe(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Da(cn.bind(null,e,Re,wt),t);break}cn(e,Re,wt);break;case 4:if(Ft(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-ct(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dv(r/1960))-r,10<r){e.timeoutHandle=Da(cn.bind(null,e,Re,wt),r);break}cn(e,Re,wt);break;case 5:cn(e,Re,wt);break;default:throw Error(P(329))}}}return Oe(e,ae()),e.callbackNode===n?Wp.bind(null,e):null}function Ja(e,t){var n=Ur;return e.current.memoizedState.isDehydrated&&(yn(e,t).flags|=256),e=Fo(e,t),e!==2&&(t=Re,Re=n,t!==null&&Za(t)),e}function Za(e){Re===null?Re=e:Re.push.apply(Re,e)}function hv(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!dt(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ft(e,t){for(t&=~su,t&=~rs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ct(t),r=1<<n;e[n]=-1,t&=~r}}function hf(e){if(U&6)throw Error(P(327));nr();var t=wo(e,0);if(!(t&1))return Oe(e,ae()),null;var n=Fo(e,t);if(e.tag!==0&&n===2){var r=Sa(e);r!==0&&(t=r,n=Ja(e,r))}if(n===1)throw n=fi,yn(e,0),Ft(e,t),Oe(e,ae()),n;if(n===6)throw Error(P(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,cn(e,Re,wt),Oe(e,ae()),null}function lu(e,t){var n=U;U|=1;try{return e(t)}finally{U=n,U===0&&(cr=ae()+500,qo&&rn())}}function Kn(e){zt!==null&&zt.tag===0&&!(U&6)&&nr();var t=U;U|=1;var n=qe.transition,r=H;try{if(qe.transition=null,H=1,e)return e()}finally{H=r,qe.transition=n,U=t,!(U&6)&&rn()}}function uu(){_e=Hn.current,X(Hn)}function yn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,WA(n)),ce!==null)for(n=ce.return;n!==null;){var r=n;switch(Wl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ko();break;case 3:lr(),X(je),X(Ee),Zl();break;case 5:Jl(r);break;case 4:lr();break;case 13:X(q);break;case 19:X(q);break;case 10:Yl(r.type._context);break;case 22:case 23:uu()}n=n.return}if(ge=e,ce=e=bt(e.current,null),ve=_e=t,pe=0,fi=null,su=rs=En=0,Re=Ur=null,hn!==null){for(t=0;t<hn.length;t++)if(n=hn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}hn=null}return e}function Hp(e,t){do{var n=ce;try{if($l(),so.current=Lo,No){for(var r=te.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}No=!1}if(In=0,me=he=te=null,_r=!1,li=0,ou.current=null,n===null||n.return===null){pe=1,fi=t,ce=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=ve,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var g=qc(s);if(g!==null){g.flags&=-257,ef(g,s,a,o,t),g.mode&1&&Zc(o,u,t),t=g,l=u;var y=t.updateQueue;if(y===null){var v=new Set;v.add(l),t.updateQueue=v}else y.add(l);break e}else{if(!(t&1)){Zc(o,u,t),cu();break e}l=Error(P(426))}}else if(J&&a.mode&1){var I=qc(s);if(I!==null){!(I.flags&65536)&&(I.flags|=256),ef(I,s,a,o,t),Hl(ur(l,a));break e}}o=l=ur(l,a),pe!==4&&(pe=2),Ur===null?Ur=[o]:Ur.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var p=Tp(o,l,t);$c(o,p);break e;case 1:a=l;var h=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof h.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Qt===null||!Qt.has(m)))){o.flags|=65536,t&=-t,o.lanes|=t;var w=kp(o,a,t);$c(o,w);break e}}o=o.return}while(o!==null)}Yp(n)}catch(E){t=E,ce===n&&n!==null&&(ce=n=n.return);continue}break}while(!0)}function Gp(){var e=jo.current;return jo.current=Lo,e===null?Lo:e}function cu(){(pe===0||pe===3||pe===2)&&(pe=4),ge===null||!(En&268435455)&&!(rs&268435455)||Ft(ge,ve)}function Fo(e,t){var n=U;U|=2;var r=Gp();(ge!==e||ve!==t)&&(wt=null,yn(e,t));do try{pv();break}catch(i){Hp(e,i)}while(!0);if($l(),U=n,jo.current=r,ce!==null)throw Error(P(261));return ge=null,ve=0,pe}function pv(){for(;ce!==null;)$p(ce)}function mv(){for(;ce!==null&&!_y();)$p(ce)}function $p(e){var t=Xp(e.alternate,e,_e);e.memoizedProps=e.pendingProps,t===null?Yp(e):ce=t,ou.current=null}function Yp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=lv(n,t),n!==null){n.flags&=32767,ce=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{pe=6,ce=null;return}}else if(n=av(n,t,_e),n!==null){ce=n;return}if(t=t.sibling,t!==null){ce=t;return}ce=t=e}while(t!==null);pe===0&&(pe=5)}function cn(e,t,n){var r=H,i=qe.transition;try{qe.transition=null,H=1,gv(e,t,n,r)}finally{qe.transition=i,H=r}return null}function gv(e,t,n,r){do nr();while(zt!==null);if(U&6)throw Error(P(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(P(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(by(e,o),e===ge&&(ce=ge=null,ve=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Yi||(Yi=!0,bp(Co,function(){return nr(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=qe.transition,qe.transition=null;var s=H;H=1;var a=U;U|=4,ou.current=null,cv(e,n),zp(n,e),jA(Pa),xo=!!ka,Pa=ka=null,e.current=n,fv(n),zy(),U=a,H=s,qe.transition=o}else e.current=n;if(Yi&&(Yi=!1,zt=e,Oo=i),o=e.pendingLanes,o===0&&(Qt=null),Hy(n.stateNode),Oe(e,ae()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Vo)throw Vo=!1,e=Xa,Xa=null,e;return Oo&1&&e.tag!==0&&nr(),o=e.pendingLanes,o&1?e===ba?Wr++:(Wr=0,ba=e):Wr=0,rn(),null}function nr(){if(zt!==null){var e=Th(Oo),t=qe.transition,n=H;try{if(qe.transition=null,H=16>e?16:e,zt===null)var r=!1;else{if(e=zt,zt=null,Oo=0,U&6)throw Error(P(331));var i=U;for(U|=4,N=e.current;N!==null;){var o=N,s=o.child;if(N.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(N=u;N!==null;){var c=N;switch(c.tag){case 0:case 11:case 15:zr(8,c,o)}var f=c.child;if(f!==null)f.return=c,N=f;else for(;N!==null;){c=N;var d=c.sibling,g=c.return;if(Op(c),c===u){N=null;break}if(d!==null){d.return=g,N=d;break}N=g}}}var y=o.alternate;if(y!==null){var v=y.child;if(v!==null){y.child=null;do{var I=v.sibling;v.sibling=null,v=I}while(v!==null)}}N=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,N=s;else e:for(;N!==null;){if(o=N,o.flags&2048)switch(o.tag){case 0:case 11:case 15:zr(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,N=p;break e}N=o.return}}var h=e.current;for(N=h;N!==null;){s=N;var m=s.child;if(s.subtreeFlags&2064&&m!==null)m.return=s,N=m;else e:for(s=h;N!==null;){if(a=N,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:ns(9,a)}}catch(E){oe(a,a.return,E)}if(a===s){N=null;break e}var w=a.sibling;if(w!==null){w.return=a.return,N=w;break e}N=a.return}}if(U=i,rn(),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(Qo,e)}catch{}r=!0}return r}finally{H=n,qe.transition=t}}return!1}function pf(e,t,n){t=ur(n,t),t=Tp(e,t,1),e=Yt(e,t,1),t=Pe(),e!==null&&(wi(e,1,t),Oe(e,t))}function oe(e,t,n){if(e.tag===3)pf(e,e,n);else for(;t!==null;){if(t.tag===3){pf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Qt===null||!Qt.has(r))){e=ur(n,e),e=kp(t,e,1),t=Yt(t,e,1),e=Pe(),t!==null&&(wi(t,1,e),Oe(t,e));break}}t=t.return}}function yv(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Pe(),e.pingedLanes|=e.suspendedLanes&n,ge===e&&(ve&n)===n&&(pe===4||pe===3&&(ve&130023424)===ve&&500>ae()-au?yn(e,0):su|=n),Oe(e,t)}function Qp(e,t){t===0&&(e.mode&1?(t=Vi,Vi<<=1,!(Vi&130023424)&&(Vi=4194304)):t=1);var n=Pe();e=kt(e,t),e!==null&&(wi(e,t,n),Oe(e,n))}function Av(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qp(e,n)}function vv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(t),Qp(e,n)}var Xp;Xp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||je.current)Be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Be=!1,sv(e,t,n);Be=!!(e.flags&131072)}else Be=!1,J&&t.flags&1048576&&qh(t,Po,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;lo(e,t),e=t.pendingProps;var i=or(t,Ee.current);tr(t,n),i=eu(null,t,r,e,i,n);var o=tu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ve(r)?(o=!0,To(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Xl(t),i.updater=ts,t.stateNode=i,i._reactInternals=t,Oa(t,r,e,n),t=za(null,t,r,!0,o,n)):(t.tag=0,J&&o&&Ul(t),Te(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(lo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=wv(r),e=st(r,e),i){case 0:t=_a(null,t,r,e,n);break e;case 1:t=rf(null,t,r,e,n);break e;case 11:t=tf(null,t,r,e,n);break e;case 14:t=nf(null,t,r,st(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:st(r,i),_a(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:st(r,i),rf(e,t,r,i,n);case 3:e:{if(Rp(t),e===null)throw Error(P(387));r=t.pendingProps,o=t.memoizedState,i=o.element,op(e,t),Ro(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ur(Error(P(423)),t),t=of(e,t,r,n,i);break e}else if(r!==i){i=ur(Error(P(424)),t),t=of(e,t,r,n,i);break e}else for(ze=$t(t.stateNode.containerInfo.firstChild),Ue=t,J=!0,lt=null,n=rp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(sr(),r===i){t=Pt(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return sp(t),e===null&&La(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Ma(r,i)?s=null:o!==null&&Ma(r,o)&&(t.flags|=32),Dp(e,t),Te(e,t,s,n),t.child;case 6:return e===null&&La(t),null;case 13:return Bp(e,t,n);case 4:return bl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ar(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:st(r,i),tf(e,t,r,i,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Y(Mo,r._currentValue),r._currentValue=s,o!==null)if(dt(o.value,s)){if(o.children===i.children&&!je.current){t=Pt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Et(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ja(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(P(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ja(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Te(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,tr(t,n),i=tt(i),r=r(i),t.flags|=1,Te(e,t,r,n),t.child;case 14:return r=t.type,i=st(r,t.pendingProps),i=st(r.type,i),nf(e,t,r,i,n);case 15:return Pp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:st(r,i),lo(e,t),t.tag=1,Ve(r)?(e=!0,To(t)):e=!1,tr(t,n),Kp(t,r,i),Oa(t,r,i,n),za(null,t,r,!0,e,n);case 19:return Np(e,t,n);case 22:return Mp(e,t,n)}throw Error(P(156,t.tag))};function bp(e,t){return Sh(e,t)}function Cv(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ze(e,t,n,r){return new Cv(e,t,n,r)}function fu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wv(e){if(typeof e=="function")return fu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ml)return 11;if(e===Dl)return 14}return 2}function bt(e,t){var n=e.alternate;return n===null?(n=Ze(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function fo(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")fu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Nn:return An(n.children,i,o,t);case Pl:s=8,i|=8;break;case la:return e=Ze(12,n,t,i|2),e.elementType=la,e.lanes=o,e;case ua:return e=Ze(13,n,t,i),e.elementType=ua,e.lanes=o,e;case ca:return e=Ze(19,n,t,i),e.elementType=ca,e.lanes=o,e;case sh:return is(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ih:s=10;break e;case oh:s=9;break e;case Ml:s=11;break e;case Dl:s=14;break e;case jt:s=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=Ze(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function An(e,t,n,r){return e=Ze(7,e,r,t),e.lanes=n,e}function is(e,t,n,r){return e=Ze(22,e,r,t),e.elementType=sh,e.lanes=n,e.stateNode={isHidden:!1},e}function Us(e,t,n){return e=Ze(6,e,null,t),e.lanes=n,e}function Ws(e,t,n){return t=Ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xv(e,t,n,r,i){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=Ss(0),this.expirationTimes=Ss(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ss(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function du(e,t,n,r,i,o,s,a,l){return e=new xv(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ze(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xl(o),e}function Sv(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Bn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Jp(e){if(!e)return Zt;e=e._reactInternals;e:{if(kn(e)!==e||e.tag!==1)throw Error(P(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ve(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(P(171))}if(e.tag===1){var n=e.type;if(Ve(n))return Jh(e,n,t)}return t}function Zp(e,t,n,r,i,o,s,a,l){return e=du(n,r,!0,e,i,o,s,a,l),e.context=Jp(null),n=e.current,r=Pe(),i=Xt(n),o=Et(r,i),o.callback=t??null,Yt(n,o,i),e.current.lanes=i,wi(e,i,r),Oe(e,r),e}function os(e,t,n,r){var i=t.current,o=Pe(),s=Xt(i);return n=Jp(n),t.context===null?t.context=n:t.pendingContext=n,t=Et(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Yt(i,t,s),e!==null&&(ft(e,i,s,o),oo(e,i,s)),s}function _o(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function mf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hu(e,t){mf(e,t),(e=e.alternate)&&mf(e,t)}function Iv(){return null}var qp=typeof reportError=="function"?reportError:function(e){console.error(e)};function pu(e){this._internalRoot=e}ss.prototype.render=pu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(P(409));os(e,t,null,null)};ss.prototype.unmount=pu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Kn(function(){os(null,e,null,null)}),t[Tt]=null}};function ss(e){this._internalRoot=e}ss.prototype.unstable_scheduleHydration=function(e){if(e){var t=Mh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&t!==0&&t<Ot[n].priority;n++);Ot.splice(n,0,e),n===0&&Rh(e)}};function mu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function as(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function gf(){}function Ev(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=_o(s);o.call(u)}}var s=Zp(t,r,e,0,null,!1,!1,"",gf);return e._reactRootContainer=s,e[Tt]=s.current,ri(e.nodeType===8?e.parentNode:e),Kn(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=_o(l);a.call(u)}}var l=du(e,0,!1,null,null,!1,!1,"",gf);return e._reactRootContainer=l,e[Tt]=l.current,ri(e.nodeType===8?e.parentNode:e),Kn(function(){os(t,l,n,r)}),l}function ls(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=_o(s);a.call(l)}}os(t,s,e,i)}else s=Ev(n,t,e,i,r);return _o(s)}kh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Rr(t.pendingLanes);n!==0&&(Nl(t,n|1),Oe(t,ae()),!(U&6)&&(cr=ae()+500,rn()))}break;case 13:Kn(function(){var r=kt(e,1);if(r!==null){var i=Pe();ft(r,e,1,i)}}),hu(e,1)}};Ll=function(e){if(e.tag===13){var t=kt(e,134217728);if(t!==null){var n=Pe();ft(t,e,134217728,n)}hu(e,134217728)}};Ph=function(e){if(e.tag===13){var t=Xt(e),n=kt(e,t);if(n!==null){var r=Pe();ft(n,e,t,r)}hu(e,t)}};Mh=function(){return H};Dh=function(e,t){var n=H;try{return H=e,t()}finally{H=n}};Ca=function(e,t,n){switch(t){case"input":if(ha(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Zo(r);if(!i)throw Error(P(90));lh(r),ha(r,i)}}}break;case"textarea":ch(e,n);break;case"select":t=n.value,t!=null&&Jn(e,!!n.multiple,t,!1)}};yh=lu;Ah=Kn;var Kv={usingClientEntryPoint:!1,Events:[Si,On,Zo,mh,gh,lu]},kr={findFiberByHostInstance:dn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Tv={bundleType:kr.bundleType,version:kr.version,rendererPackageName:kr.rendererPackageName,rendererConfig:kr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Rt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=wh(e),e===null?null:e.stateNode},findFiberByHostInstance:kr.findFiberByHostInstance||Iv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qi.isDisabled&&Qi.supportsFiber)try{Qo=Qi.inject(Tv),gt=Qi}catch{}}He.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kv;He.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mu(t))throw Error(P(200));return Sv(e,t,null,n)};He.createRoot=function(e,t){if(!mu(e))throw Error(P(299));var n=!1,r="",i=qp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=du(e,1,!1,null,null,n,!1,r,i),e[Tt]=t.current,ri(e.nodeType===8?e.parentNode:e),new pu(t)};He.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(P(188)):(e=Object.keys(e).join(","),Error(P(268,e)));return e=wh(t),e=e===null?null:e.stateNode,e};He.flushSync=function(e){return Kn(e)};He.hydrate=function(e,t,n){if(!as(t))throw Error(P(200));return ls(null,e,t,!0,n)};He.hydrateRoot=function(e,t,n){if(!mu(e))throw Error(P(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=qp;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Zp(t,null,e,1,n??null,i,!1,o,s),e[Tt]=t.current,ri(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new ss(t)};He.render=function(e,t,n){if(!as(t))throw Error(P(200));return ls(null,e,t,!1,n)};He.unmountComponentAtNode=function(e){if(!as(e))throw Error(P(40));return e._reactRootContainer?(Kn(function(){ls(null,null,e,!1,function(){e._reactRootContainer=null,e[Tt]=null})}),!0):!1};He.unstable_batchedUpdates=lu;He.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!as(n))throw Error(P(200));if(e==null||e._reactInternals===void 0)throw Error(P(38));return ls(e,t,n,!1,r)};He.version="18.3.1-next-f1338f8080-20240426";function em(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(em)}catch(e){console.error(e)}}em(),eh.exports=He;var kv=eh.exports,yf=kv;sa.createRoot=yf.createRoot,sa.hydrateRoot=yf.hydrateRoot;/**
* @remix-run/router v1.23.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function di(){return di=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},di.apply(this,arguments)}var Ut;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ut||(Ut={}));const Af="popstate";function Pv(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:a}=r.location;return qa("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:nm(i)}return Dv(t,n,null,e)}function fe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function tm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Mv(){return Math.random().toString(36).substr(2,8)}function vf(e,t){return{usr:e.state,key:e.key,idx:t}}function qa(e,t,n,r){return n===void 0&&(n=null),di({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?gr(t):t,{state:n,key:t&&t.key||r||Mv()})}function nm(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function gr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Dv(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=Ut.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(di({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){a=Ut.Pop;let I=c(),p=I==null?null:I-u;u=I,l&&l({action:a,location:v.location,delta:p})}function d(I,p){a=Ut.Push;let h=qa(v.location,I,p);u=c()+1;let m=vf(h,u),w=v.createHref(h);try{s.pushState(m,"",w)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(w)}o&&l&&l({action:a,location:v.location,delta:1})}function g(I,p){a=Ut.Replace;let h=qa(v.location,I,p);u=c();let m=vf(h,u),w=v.createHref(h);s.replaceState(m,"",w),o&&l&&l({action:a,location:v.location,delta:0})}function y(I){let p=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof I=="string"?I:nm(I);return h=h.replace(/ $/,"%20"),fe(p,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,p)}let v={get action(){return a},get location(){return e(i,s)},listen(I){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Af,f),l=I,()=>{i.removeEventListener(Af,f),l=null}},createHref(I){return t(i,I)},createURL:y,encodeLocation(I){let p=y(I);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:d,replace:g,go(I){return s.go(I)}};return v}var Cf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Cf||(Cf={}));function Rv(e,t,n){return n===void 0&&(n="/"),Bv(e,t,n)}function Bv(e,t,n,r){let i=typeof t=="string"?gr(t):t,o=om(i.pathname||"/",n);if(o==null)return null;let s=rm(e);Nv(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let u=$v(o);a=Wv(s[l],u)}return a}function rm(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(fe(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=vn([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(fe(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),rm(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:zv(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of im(o.path))i(o,s,l)}),t}function im(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=im(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Nv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Uv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Lv=/^:[\w-]+$/,jv=3,Vv=2,Ov=1,Fv=10,_v=-2,wf=e=>e==="*";function zv(e,t){let n=e.split("/"),r=n.length;return n.some(wf)&&(r+=_v),t&&(r+=Vv),n.filter(i=>!wf(i)).reduce((i,o)=>i+(Lv.test(o)?jv:o===""?Ov:Fv),r)}function Uv(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Wv(e,t,n){let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=o==="/"?t:t.slice(o.length)||"/",f=Hv({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),d=l.route;if(!f)return null;Object.assign(i,f.params),s.push({params:i,pathname:vn([o,f.pathname]),pathnameBase:bv(vn([o,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(o=vn([o,f.pathnameBase]))}return s}function Hv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Gv(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,c,f)=>{let{paramName:d,isOptional:g}=c;if(d==="*"){let v=a[f]||"";s=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const y=a[f];return g&&!y?u[d]=void 0:u[d]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function Gv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),tm(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function $v(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return tm(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function om(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Yv(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?gr(e):e;return{pathname:n?n.startsWith("/")?n:Qv(n,t):t,search:Jv(r),hash:Zv(i)}}function Qv(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Hs(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Xv(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function sm(e,t){let n=Xv(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function am(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=gr(e):(i=di({},e),fe(!i.pathname||!i.pathname.includes("?"),Hs("?","pathname","search",i)),fe(!i.pathname||!i.pathname.includes("#"),Hs("#","pathname","hash",i)),fe(!i.search||!i.search.includes("#"),Hs("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let d=s.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}a=f>=0?t[f]:"/"}let l=Yv(i,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const vn=e=>e.join("/").replace(/\/\/+/g,"/"),bv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Jv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Zv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function qv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const lm=["post","put","patch","delete"];new Set(lm);const e0=["get",...lm];new Set(e0);/**
* React Router v6.30.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hi.apply(this,arguments)}const gu=C.createContext(null),t0=C.createContext(null),Ei=C.createContext(null),us=C.createContext(null),Pn=C.createContext({outlet:null,matches:[],isDataRoute:!1}),um=C.createContext(null);function Ki(){return C.useContext(us)!=null}function Ti(){return Ki()||fe(!1),C.useContext(us).location}function cm(e){C.useContext(Ei).static||C.useLayoutEffect(e)}function yr(){let{isDataRoute:e}=C.useContext(Pn);return e?p0():n0()}function n0(){Ki()||fe(!1);let e=C.useContext(gu),{basename:t,future:n,navigator:r}=C.useContext(Ei),{matches:i}=C.useContext(Pn),{pathname:o}=Ti(),s=JSON.stringify(sm(i,n.v7_relativeSplatPath)),a=C.useRef(!1);return cm(()=>{a.current=!0}),C.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let f=am(u,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:vn([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,s,o,e])}function r0(e,t){return i0(e,t)}function i0(e,t,n,r){Ki()||fe(!1);let{navigator:i}=C.useContext(Ei),{matches:o}=C.useContext(Pn),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=Ti(),c;if(t){var f;let I=typeof t=="string"?gr(t):t;l==="/"||(f=I.pathname)!=null&&f.startsWith(l)||fe(!1),c=I}else c=u;let d=c.pathname||"/",g=d;if(l!=="/"){let I=l.replace(/^\//,"").split("/");g="/"+d.replace(/^\//,"").split("/").slice(I.length).join("/")}let y=Rv(e,{pathname:g}),v=u0(y&&y.map(I=>Object.assign({},I,{params:Object.assign({},a,I.params),pathname:vn([l,i.encodeLocation?i.encodeLocation(I.pathname).pathname:I.pathname]),pathnameBase:I.pathnameBase==="/"?l:vn([l,i.encodeLocation?i.encodeLocation(I.pathnameBase).pathname:I.pathnameBase])})),o,n,r);return t&&v?C.createElement(us.Provider,{value:{location:hi({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Ut.Pop}},v):v}function o0(){let e=h0(),t=qv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:i},n):null,null)}const s0=C.createElement(o0,null);class a0 extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?C.createElement(Pn.Provider,{value:this.props.routeContext},C.createElement(um.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function l0(e){let{routeContext:t,match:n,children:r}=e,i=C.useContext(gu);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(Pn.Provider,{value:t},r)}function u0(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=s.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);c>=0||fe(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<s.length;c++){let f=s[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=c),f.route.id){let{loaderData:d,errors:g}=n,y=f.route.loader&&d[f.route.id]===void 0&&(!g||g[f.route.id]===void 0);if(f.route.lazy||y){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,f,d)=>{let g,y=!1,v=null,I=null;n&&(g=a&&f.route.id?a[f.route.id]:void 0,v=f.route.errorElement||s0,l&&(u<0&&d===0?(m0("route-fallback"),y=!0,I=null):u===d&&(y=!0,I=f.route.hydrateFallbackElement||null)));let p=t.concat(s.slice(0,d+1)),h=()=>{let m;return g?m=v:y?m=I:f.route.Component?m=C.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=c,C.createElement(l0,{match:f,routeContext:{outlet:c,matches:p,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?C.createElement(a0,{location:n.location,revalidation:n.revalidation,component:v,error:g,children:h(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):h()},null)}var fm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(fm||{}),dm=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(dm||{});function c0(e){let t=C.useContext(gu);return t||fe(!1),t}function f0(e){let t=C.useContext(t0);return t||fe(!1),t}function d0(e){let t=C.useContext(Pn);return t||fe(!1),t}function hm(e){let t=d0(),n=t.matches[t.matches.length-1];return n.route.id||fe(!1),n.route.id}function h0(){var e;let t=C.useContext(um),n=f0(),r=hm();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function p0(){let{router:e}=c0(fm.UseNavigateStable),t=hm(dm.UseNavigateStable),n=C.useRef(!1);return cm(()=>{n.current=!0}),C.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,hi({fromRouteId:t},o)))},[e,t])}const xf={};function m0(e,t,n){xf[e]||(xf[e]=!0)}function g0(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function y0(e){let{to:t,replace:n,state:r,relative:i}=e;Ki()||fe(!1);let{future:o,static:s}=C.useContext(Ei),{matches:a}=C.useContext(Pn),{pathname:l}=Ti(),u=yr(),c=am(t,sm(a,o.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(c);return C.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:i}),[u,f,i,n,r]),null}function Rn(e){fe(!1)}function A0(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ut.Pop,navigator:o,static:s=!1,future:a}=e;Ki()&&fe(!1);let l=t.replace(/^\/*/,"/"),u=C.useMemo(()=>({basename:l,navigator:o,static:s,future:hi({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=gr(r));let{pathname:c="/",search:f="",hash:d="",state:g=null,key:y="default"}=r,v=C.useMemo(()=>{let I=om(c,l);return I==null?null:{location:{pathname:I,search:f,hash:d,state:g,key:y},navigationType:i}},[l,c,f,d,g,y,i]);return v==null?null:C.createElement(Ei.Provider,{value:u},C.createElement(us.Provider,{children:n,value:v}))}function v0(e){let{children:t,location:n}=e;return r0(el(t),n)}new Promise(()=>{});function el(e,t){t===void 0&&(t=[]);let n=[];return C.Children.forEach(e,(r,i)=>{if(!C.isValidElement(r))return;let o=[...t,i];if(r.type===C.Fragment){n.push.apply(n,el(r.props.children,o));return}r.type!==Rn&&fe(!1),!r.props.index||!r.props.children||fe(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=el(r.props.children,o)),n.push(s)}),n}/**
* React Router DOM v6.30.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/const C0="6";try{window.__reactRouterVersion=C0}catch{}const w0="startTransition",Sf=yy[w0];function x0(e){let{basename:t,children:n,future:r,window:i}=e,o=C.useRef();o.current==null&&(o.current=Pv({window:i,v5Compat:!0}));let s=o.current,[a,l]=C.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=C.useCallback(f=>{u&&Sf?Sf(()=>l(f)):l(f)},[l,u]);return C.useLayoutEffect(()=>s.listen(c),[s,c]),C.useEffect(()=>g0(r),[r]),C.createElement(A0,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}var If;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(If||(If={}));var Ef;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ef||(Ef={}));const yu=C.createContext({});function Au(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const vu=typeof window<"u",pm=vu?C.useLayoutEffect:C.useEffect,cs=C.createContext(null);function Cu(e,t){e.indexOf(t)===-1&&e.push(t)}function wu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Mt=(e,t,n)=>n>t?t:n<e?e:n;let xu=()=>{};const Dt={},mm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function gm(e){return typeof e=="object"&&e!==null}const ym=e=>/^0[^.\s]+$/u.test(e);function Su(e){let t;return()=>(t===void 0&&(t=e()),t)}const et=e=>e,S0=(e,t)=>n=>t(e(n)),ki=(...e)=>e.reduce(S0),pi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Iu{constructor(){this.subscriptions=[]}add(t){return Cu(this.subscriptions,t),()=>wu(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const At=e=>e*1e3,vt=e=>e/1e3;function Am(e,t){return t?e*(1e3/t):0}const vm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,I0=1e-7,E0=12;function K0(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=vm(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>I0&&++a<E0);return s}function Pi(e,t,n,r){if(e===t&&n===r)return et;const i=o=>K0(o,0,1,e,n);return o=>o===0||o===1?o:vm(i(o),t,r)}const Cm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,wm=e=>t=>1-e(1-t),xm=Pi(.33,1.53,.69,.99),Eu=wm(xm),Sm=Cm(Eu),Im=e=>(e*=2)<1?.5*Eu(e):.5*(2-Math.pow(2,-10*(e-1))),Ku=e=>1-Math.sin(Math.acos(e)),Em=wm(Ku),Km=Cm(Ku),T0=Pi(.42,0,1,1),k0=Pi(0,0,.58,1),Tm=Pi(.42,0,.58,1),P0=e=>Array.isArray(e)&&typeof e[0]!="number",km=e=>Array.isArray(e)&&typeof e[0]=="number",M0={linear:et,easeIn:T0,easeInOut:Tm,easeOut:k0,circIn:Ku,circInOut:Km,circOut:Em,backIn:Eu,backInOut:Sm,backOut:xm,anticipate:Im},D0=e=>typeof e=="string",Kf=e=>{if(km(e)){xu(e.length===4);const[t,n,r,i]=e;return Pi(t,n,r,i)}else if(D0(e))return M0[e];return e},Xi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function R0(e,t){let n=new Set,r=new Set,i=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){s.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,f=!1,d=!1)=>{const y=d&&i?n:r;return f&&s.add(c),y.has(c)||y.add(c),c},cancel:c=>{r.delete(c),s.delete(c)},process:c=>{if(a=c,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,u.process(c))}};return u}const B0=40;function Pm(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Xi.reduce((m,w)=>(m[w]=R0(o),m),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:d,render:g,postRender:y}=s,v=()=>{const m=Dt.useManualTiming?i.timestamp:performance.now();n=!1,Dt.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,B0),1)),i.timestamp=m,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),f.process(i),d.process(i),g.process(i),y.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},I=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:Xi.reduce((m,w)=>{const E=s[w];return m[w]=(T,k=!1,S=!1)=>(n||I(),E.schedule(T,k,S)),m},{}),cancel:m=>{for(let w=0;w<Xi.length;w++)s[Xi[w]].cancel(m)},state:i,steps:s}}const{schedule:Z,cancel:qt,state:Ae,steps:Gs}=Pm(typeof requestAnimationFrame<"u"?requestAnimationFrame:et,!0);let ho;function N0(){ho=void 0}const Ne={now:()=>(ho===void 0&&Ne.set(Ae.isProcessing||Dt.useManualTiming?Ae.timestamp:performance.now()),ho),set:e=>{ho=e,queueMicrotask(N0)}},Mm=e=>t=>typeof t=="string"&&t.startsWith(e),Tu=Mm("--"),L0=Mm("var(--"),ku=e=>L0(e)?j0.test(e.split("/*")[0].trim()):!1,j0=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ar={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},mi={...Ar,transform:e=>Mt(0,1,e)},bi={...Ar,default:1},Hr=e=>Math.round(e*1e5)/1e5,Pu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function V0(e){return e==null}const O0=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Mu=(e,t)=>n=>!!(typeof n=="string"&&O0.test(n)&&n.startsWith(e)||t&&!V0(n)&&Object.prototype.hasOwnProperty.call(n,t)),Dm=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(Pu);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},F0=e=>Mt(0,255,e),$s={...Ar,transform:e=>Math.round(F0(e))},mn={test:Mu("rgb","red"),parse:Dm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+$s.transform(e)+", "+$s.transform(t)+", "+$s.transform(n)+", "+Hr(mi.transform(r))+")"};function _0(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const tl={test:Mu("#"),parse:_0,transform:mn.transform},Mi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Lt=Mi("deg"),Ct=Mi("%"),j=Mi("px"),z0=Mi("vh"),U0=Mi("vw"),Tf={...Ct,parse:e=>Ct.parse(e)/100,transform:e=>Ct.transform(e*100)},Gn={test:Mu("hsl","hue"),parse:Dm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ct.transform(Hr(t))+", "+Ct.transform(Hr(n))+", "+Hr(mi.transform(r))+")"},ue={test:e=>mn.test(e)||tl.test(e)||Gn.test(e),parse:e=>mn.test(e)?mn.parse(e):Gn.test(e)?Gn.parse(e):tl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?mn.transform(e):Gn.transform(e),getAnimatableNone:e=>{const t=ue.parse(e);return t.alpha=0,ue.transform(t)}},W0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function H0(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Pu))==null?void 0:t.length)||0)+(((n=e.match(W0))==null?void 0:n.length)||0)>0}const Rm="number",Bm="color",G0="var",$0="var(",kf="${}",Y0=/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 gi(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(Y0,l=>(ue.test(l)?(r.color.push(o),i.push(Bm),n.push(ue.parse(l))):l.startsWith($0)?(r.var.push(o),i.push(G0),n.push(l)):(r.number.push(o),i.push(Rm),n.push(parseFloat(l))),++o,kf)).split(kf);return{values:n,split:a,indexes:r,types:i}}function Nm(e){return gi(e).values}function Lm(e){const{split:t,types:n}=gi(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const a=n[s];a===Rm?o+=Hr(i[s]):a===Bm?o+=ue.transform(i[s]):o+=i[s]}return o}}const Q0=e=>typeof e=="number"?0:ue.test(e)?ue.getAnimatableNone(e):e;function X0(e){const t=Nm(e);return Lm(e)(t.map(Q0))}const en={test:H0,parse:Nm,createTransformer:Lm,getAnimatableNone:X0};function Ys(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function b0({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Ys(l,a,e+1/3),o=Ys(l,a,e),s=Ys(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function zo(e,t){return n=>n>0?t:e}const ee=(e,t,n)=>e+(t-e)*n,Qs=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},J0=[tl,mn,Gn],Z0=e=>J0.find(t=>t.test(e));function Pf(e){const t=Z0(e);if(!t)return!1;let n=t.parse(e);return t===Gn&&(n=b0(n)),n}const Mf=(e,t)=>{const n=Pf(e),r=Pf(t);if(!n||!r)return zo(e,t);const i={...n};return o=>(i.red=Qs(n.red,r.red,o),i.green=Qs(n.green,r.green,o),i.blue=Qs(n.blue,r.blue,o),i.alpha=ee(n.alpha,r.alpha,o),mn.transform(i))},nl=new Set(["none","hidden"]);function q0(e,t){return nl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function eC(e,t){return n=>ee(e,t,n)}function Du(e){return typeof e=="number"?eC:typeof e=="string"?ku(e)?zo:ue.test(e)?Mf:rC:Array.isArray(e)?jm:typeof e=="object"?ue.test(e)?Mf:tC:zo}function jm(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>Du(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function tC(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Du(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function nC(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],s=e.indexes[o][r[o]],a=e.values[s]??0;n[i]=a,r[o]++}return n}const rC=(e,t)=>{const n=en.createTransformer(t),r=gi(e),i=gi(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?nl.has(e)&&!i.values.length||nl.has(t)&&!r.values.length?q0(e,t):ki(jm(nC(r,i),i.values),n):zo(e,t)};function Vm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ee(e,t,n):Du(e)(e,t)}const iC=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Z.update(t,n),stop:()=>qt(t),now:()=>Ae.isProcessing?Ae.timestamp:Ne.now()}},Om=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=Math.round(e(o/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Uo=2e4;function Ru(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Uo;)t+=n,r=e.next(t);return t>=Uo?1/0:t}function oC(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Ru(r),Uo);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:vt(i)}}const sC=5;function Fm(e,t,n){const r=Math.max(t-sC,0);return Am(n-e(r),t-r)}const ie={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},Xs=.001;function aC({duration:e=ie.duration,bounce:t=ie.bounce,velocity:n=ie.velocity,mass:r=ie.mass}){let i,o,s=1-t;s=Mt(ie.minDamping,ie.maxDamping,s),e=Mt(ie.minDuration,ie.maxDuration,vt(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,g=rl(u,s),y=Math.exp(-f);return Xs-d/g*y},o=u=>{const f=u*s*e,d=f*n+n,g=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-f),v=rl(Math.pow(u,2),s);return(-i(u)+Xs>0?-1:1)*((d-g)*y)/v}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Xs+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=uC(i,o,a);if(e=At(e),isNaN(l))return{stiffness:ie.stiffness,damping:ie.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const lC=12;function uC(e,t,n){let r=n;for(let i=1;i<lC;i++)r=r-e(r)/t(r);return r}function rl(e,t){return e*Math.sqrt(1-t*t)}const cC=["duration","bounce"],fC=["stiffness","damping","mass"];function Df(e,t){return t.some(n=>e[n]!==void 0)}function dC(e){let t={velocity:ie.velocity,stiffness:ie.stiffness,damping:ie.damping,mass:ie.mass,isResolvedFromDuration:!1,...e};if(!Df(e,fC)&&Df(e,cC))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Mt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ie.mass,stiffness:i,damping:o}}else{const n=aC(e);t={...t,...n,mass:ie.mass},t.isResolvedFromDuration=!0}return t}function Wo(e=ie.visualDuration,t=ie.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:g}=dC({...n,velocity:-vt(n.velocity||0)}),y=d||0,v=u/(2*Math.sqrt(l*c)),I=s-o,p=vt(Math.sqrt(l/c)),h=Math.abs(I)<5;r||(r=h?ie.restSpeed.granular:ie.restSpeed.default),i||(i=h?ie.restDelta.granular:ie.restDelta.default);let m;if(v<1){const E=rl(p,v);m=T=>{const k=Math.exp(-v*p*T);return s-k*((y+v*p*I)/E*Math.sin(E*T)+I*Math.cos(E*T))}}else if(v===1)m=E=>s-Math.exp(-p*E)*(I+(y+p*I)*E);else{const E=p*Math.sqrt(v*v-1);m=T=>{const k=Math.exp(-v*p*T),S=Math.min(E*T,300);return s-k*((y+v*p*I)*Math.sinh(S)+E*I*Math.cosh(S))/E}}const w={calculatedDuration:g&&f||null,next:E=>{const T=m(E);if(g)a.done=E>=f;else{let k=E===0?y:0;v<1&&(k=E===0?At(y):Fm(m,E,T));const S=Math.abs(k)<=r,K=Math.abs(s-T)<=i;a.done=S&&K}return a.value=a.done?s:T,a},toString:()=>{const E=Math.min(Ru(w),Uo),T=Om(k=>w.next(E*k).value,E,30);return E+"ms "+T},toTransition:()=>{}};return w}Wo.applyToOptions=e=>{const t=oC(e,100,Wo);return e.ease=t.ease,e.duration=At(t.duration),e.type="keyframes",e};function il({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},g=S=>a!==void 0&&S<a||l!==void 0&&S>l,y=S=>a===void 0?l:l===void 0||Math.abs(a-S)<Math.abs(l-S)?a:l;let v=n*t;const I=f+v,p=s===void 0?I:s(I);p!==I&&(v=p-f);const h=S=>-v*Math.exp(-S/r),m=S=>p+h(S),w=S=>{const K=h(S),x=m(S);d.done=Math.abs(K)<=u,d.value=d.done?p:x};let E,T;const k=S=>{g(d.value)&&(E=S,T=Wo({keyframes:[d.value,y(d.value)],velocity:Fm(m,S,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return k(0),{calculatedDuration:null,next:S=>{let K=!1;return!T&&E===void 0&&(K=!0,w(S),k(S)),E!==void 0&&S>=E?T.next(S-E):(!K&&w(S),d)}}}function hC(e,t,n){const r=[],i=n||Dt.mix||Vm,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||et:t;a=ki(l,a)}r.push(a)}return r}function pC(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(xu(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=hC(t,r,i),l=a.length,u=c=>{if(s&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=pi(e[f],e[f+1],c);return a[f](d)};return n?c=>u(Mt(e[0],e[o-1],c)):u}function mC(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=pi(0,t,r);e.push(ee(n,1,i))}}function gC(e){const t=[0];return mC(t,e.length-1),t}function yC(e,t){return e.map(n=>n*t)}function AC(e,t){return e.map(()=>t||Tm).splice(0,e.length-1)}function Gr({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=P0(r)?r.map(Kf):Kf(r),o={done:!1,value:t[0]},s=yC(n&&n.length===t.length?n:gC(t),e),a=pC(s,t,{ease:Array.isArray(i)?i:AC(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const vC=e=>e!==null;function Bu(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(vC),a=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const CC={decay:il,inertia:il,tween:Gr,keyframes:Gr,spring:Wo};function _m(e){typeof e.type=="string"&&(e.type=CC[e.type])}class Nu{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const wC=e=>e/100;class Lu extends Nu{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Ne.now()&&this.tick(Ne.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;_m(t);const{type:n=Gr,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Gr;l!==Gr&&typeof a[0]!="number"&&(this.mixKeyframes=ki(wC,Vm(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=Ru(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:f,repeatType:d,repeatDelay:g,type:y,onUpdate:v,finalKeyframe:I}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const p=this.currentTime-u*(this.playbackSpeed>=0?1:-1),h=this.playbackSpeed>=0?p<0:p>i;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let m=this.currentTime,w=r;if(f){const S=Math.min(this.currentTime,i)/a;let K=Math.floor(S),x=S%1;!x&&S>=1&&(x=1),x===1&&K--,K=Math.min(K,f+1),!!(K%2)&&(d==="reverse"?(x=1-x,g&&(x-=g/a)):d==="mirror"&&(w=s)),m=Mt(0,1,x)*a}const E=h?{done:!1,value:c[0]}:w.next(m);o&&(E.value=o(E.value));let{done:T}=E;!h&&l!==null&&(T=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&y!==il&&(E.value=Bu(c,this.options,I,this.speed)),v&&v(E.value),k&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return vt(this.calculatedDuration)}get time(){return vt(this.currentTime)}set time(t){var n;t=At(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ne.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=vt(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:t=iC,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ne.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function xC(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const gn=e=>e*180/Math.PI,ol=e=>{const t=gn(Math.atan2(e[1],e[0]));return sl(t)},SC={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ol,rotateZ:ol,skewX:e=>gn(Math.atan(e[1])),skewY:e=>gn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},sl=e=>(e=e%360,e<0&&(e+=360),e),Rf=ol,Bf=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Nf=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),IC={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Bf,scaleY:Nf,scale:e=>(Bf(e)+Nf(e))/2,rotateX:e=>sl(gn(Math.atan2(e[6],e[5]))),rotateY:e=>sl(gn(Math.atan2(-e[2],e[0]))),rotateZ:Rf,rotate:Rf,skewX:e=>gn(Math.atan(e[4])),skewY:e=>gn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function al(e){return e.includes("scale")?1:0}function ll(e,t){if(!e||e==="none")return al(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=IC,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=SC,i=a}if(!i)return al(t);const o=r[t],s=i[1].split(",").map(KC);return typeof o=="function"?o(s):s[o]}const EC=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ll(n,t)};function KC(e){return parseFloat(e.trim())}const vr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Cr=new Set(vr),Lf=e=>e===Ar||e===j,TC=new Set(["x","y","z"]),kC=vr.filter(e=>!TC.has(e));function PC(e){const t=[];return kC.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Cn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ll(t,"x"),y:(e,{transform:t})=>ll(t,"y")};Cn.translateX=Cn.x;Cn.translateY=Cn.y;const wn=new Set;let ul=!1,cl=!1,fl=!1;function zm(){if(cl){const e=Array.from(wn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=PC(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))==null||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}cl=!1,ul=!1,wn.forEach(e=>e.complete(fl)),wn.clear()}function Um(){wn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(cl=!0)})}function MC(){fl=!0,Um(),zm(),fl=!1}class ju{constructor(t,n,r,i,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(wn.add(this),ul||(ul=!0,Z.read(Um),Z.resolveKeyframes(zm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const o=i==null?void 0:i.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),i&&o===void 0&&i.set(t[0])}xC(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),wn.delete(this)}cancel(){this.state==="scheduled"&&(wn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const DC=e=>e.startsWith("--");function RC(e,t,n){DC(t)?e.style.setProperty(t,n):e.style[t]=n}const BC=Su(()=>window.ScrollTimeline!==void 0),NC={};function LC(e,t){const n=Su(e);return()=>NC[t]??n()}const Wm=LC(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Nr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,jf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Nr([0,.65,.55,1]),circOut:Nr([.55,0,1,.45]),backIn:Nr([.31,.01,.66,-.59]),backOut:Nr([.33,1.53,.69,.99])};function Hm(e,t){if(e)return typeof e=="function"?Wm()?Om(e,t):"ease-out":km(e)?Nr(e):Array.isArray(e)?e.map(n=>Hm(n,t)||jf.easeOut):jf[e]}function jC(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const f=Hm(a,i);Array.isArray(f)&&(c.easing=f);const d={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return u&&(d.pseudoElement=u),e.animate(c,d)}function Gm(e){return typeof e=="function"&&"applyToOptions"in e}function VC({type:e,...t}){return Gm(e)&&Wm()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class OC extends Nu{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=t,xu(typeof t.type!="string");const u=VC(t);this.animation=jC(n,r,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=Bu(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):RC(n,r,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return vt(Number(t))}get time(){return vt(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=At(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&BC()?(this.animation.timeline=t,et):n(this)}}const $m={anticipate:Im,backInOut:Sm,circInOut:Km};function FC(e){return e in $m}function _C(e){typeof e.ease=="string"&&FC(e.ease)&&(e.ease=$m[e.ease])}const Vf=10;class zC extends OC{constructor(t){_C(t),_m(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Lu({...s,autoplay:!1}),l=At(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Vf).value,a.sample(l).value,Vf),a.stop()}}const Of=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(en.test(e)||e==="0")&&!e.startsWith("url("));function UC(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function WC(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=Of(i,t),a=Of(o,t);return!s||!a?!1:UC(e)||(n==="spring"||Gm(n))&&r}function dl(e){e.duration=0,e.type}const HC=new Set(["opacity","clipPath","filter","transform"]),GC=Su(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function $C(e){var c;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=e;if(!(((c=t==null?void 0:t.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return GC()&&n&&HC.has(n)&&(n!=="transform"||!u)&&!l&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const YC=40;class QC extends Nu{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",keyframes:a,name:l,motionValue:u,element:c,...f}){var y;super(),this.stop=()=>{var v,I;this._animation&&(this._animation.stop(),(v=this.stopTimeline)==null||v.call(this)),(I=this.keyframeResolver)==null||I.cancel()},this.createdAt=Ne.now();const d={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,name:l,motionValue:u,element:c,...f},g=(c==null?void 0:c.KeyframeResolver)||ju;this.keyframeResolver=new g(a,(v,I,p)=>this.onKeyframesResolved(v,I,d,!p),l,u,c),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:o,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=Ne.now(),WC(t,o,s,a)||((Dt.instantAnimations||!l)&&(c==null||c(Bu(t,r,n))),t[0]=t[t.length-1],dl(r),r.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>YC?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},g=!u&&$C(d)?new zC({...d,element:d.motionValue.owner.current}):new Lu(d);g.finished.then(()=>this.notifyFinished()).catch(et),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),MC()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const XC=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function bC(e){const t=XC.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Ym(e,t,n=1){const[r,i]=bC(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return mm(s)?parseFloat(s):s}return ku(i)?Ym(i,t,n+1):i}function Vu(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Qm=new Set(["width","height","top","left","right","bottom",...vr]),JC={test:e=>e==="auto",parse:e=>e},Xm=e=>t=>t.test(e),bm=[Ar,j,Ct,Lt,U0,z0,JC],Ff=e=>bm.find(Xm(e));function ZC(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ym(e):!0}const qC=new Set(["brightness","contrast","saturate","opacity"]);function e1(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Pu)||[];if(!r)return e;const i=n.replace(r,"");let o=qC.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const t1=/\b([a-z-]*)\(.*?\)/gu,hl={...en,getAnimatableNone:e=>{const t=e.match(t1);return t?t.map(e1).join(" "):e}},_f={...Ar,transform:Math.round},n1={rotate:Lt,rotateX:Lt,rotateY:Lt,rotateZ:Lt,scale:bi,scaleX:bi,scaleY:bi,scaleZ:bi,skew:Lt,skewX:Lt,skewY:Lt,distance:j,translateX:j,translateY:j,translateZ:j,x:j,y:j,z:j,perspective:j,transformPerspective:j,opacity:mi,originX:Tf,originY:Tf,originZ:j},Ou={borderWidth:j,borderTopWidth:j,borderRightWidth:j,borderBottomWidth:j,borderLeftWidth:j,borderRadius:j,radius:j,borderTopLeftRadius:j,borderTopRightRadius:j,borderBottomRightRadius:j,borderBottomLeftRadius:j,width:j,maxWidth:j,height:j,maxHeight:j,top:j,right:j,bottom:j,left:j,padding:j,paddingTop:j,paddingRight:j,paddingBottom:j,paddingLeft:j,margin:j,marginTop:j,marginRight:j,marginBottom:j,marginLeft:j,backgroundPositionX:j,backgroundPositionY:j,...n1,zIndex:_f,fillOpacity:mi,strokeOpacity:mi,numOctaves:_f},r1={...Ou,color:ue,backgroundColor:ue,outlineColor:ue,fill:ue,stroke:ue,borderColor:ue,borderTopColor:ue,borderRightColor:ue,borderBottomColor:ue,borderLeftColor:ue,filter:hl,WebkitFilter:hl},Jm=e=>r1[e];function Zm(e,t){let n=Jm(e);return n!==hl&&(n=en),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const i1=new Set(["auto","none","0"]);function o1(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!i1.has(o)&&gi(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Zm(n,i)}class s1 extends ju{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),ku(u))){const c=Ym(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Qm.has(r)||t.length!==2)return;const[i,o]=t,s=Ff(i),a=Ff(o);if(s!==a)if(Lf(s)&&Lf(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else Cn[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||ZC(t[i]))&&r.push(i);r.length&&o1(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Cn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,s=r[o];r[o]=Cn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function a1(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const qm=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function eg(e){return gm(e)&&"offsetHeight"in e}const zf=30,l1=e=>!isNaN(parseFloat(e));class u1{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const i=Ne.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ne.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=l1(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Iu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Z.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ne.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>zf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,zf);return Am(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fr(e,t){return new u1(e,t)}const{schedule:Fu}=Pm(queueMicrotask,!1),ot={x:!1,y:!1};function tg(){return ot.x||ot.y}function c1(e){return e==="x"||e==="y"?ot[e]?null:(ot[e]=!0,()=>{ot[e]=!1}):ot.x||ot.y?null:(ot.x=ot.y=!0,()=>{ot.x=ot.y=!1})}function ng(e,t){const n=a1(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Uf(e){return!(e.pointerType==="touch"||tg())}function f1(e,t,n={}){const[r,i,o]=ng(e,n),s=a=>{if(!Uf(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=f=>{Uf(f)&&(u(f),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(a=>{a.addEventListener("pointerenter",s,i)}),o}const rg=(e,t)=>t?e===t?!0:rg(e,t.parentElement):!1,_u=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,d1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function h1(e){return d1.has(e.tagName)||e.tabIndex!==-1}const po=new WeakSet;function Wf(e){return t=>{t.key==="Enter"&&e(t)}}function bs(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const p1=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Wf(()=>{if(po.has(n))return;bs(n,"down");const i=Wf(()=>{bs(n,"up")}),o=()=>bs(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Hf(e){return _u(e)&&!tg()}function m1(e,t,n={}){const[r,i,o]=ng(e,n),s=a=>{const l=a.currentTarget;if(!Hf(a))return;po.add(l);const u=t(l,a),c=(g,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),po.has(l)&&po.delete(l),Hf(g)&&typeof u=="function"&&u(g,{success:y})},f=g=>{c(g,l===window||l===document||n.useGlobalTarget||rg(l,g.target))},d=g=>{c(g,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,i),eg(a)&&(a.addEventListener("focus",u=>p1(u,i)),!h1(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function ig(e){return gm(e)&&"ownerSVGElement"in e}function g1(e){return ig(e)&&e.tagName==="svg"}const Ie=e=>!!(e&&e.getVelocity),y1=[...bm,ue,en],A1=e=>y1.find(Xm(e)),zu=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class v1 extends C.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=eg(r)&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function C1({children:e,isPresent:t,anchorX:n,root:r}){const i=C.useId(),o=C.useRef(null),s=C.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=C.useContext(zu);return C.useInsertionEffect(()=>{const{width:l,height:u,top:c,left:f,right:d}=s.current;if(t||!o.current||!l||!u)return;const g=n==="left"?`left: ${f}`:`right: ${d}`;o.current.dataset.motionPopId=i;const y=document.createElement("style");a&&(y.nonce=a);const v=r??document.head;return v.appendChild(y),y.sheet&&y.sheet.insertRule(`
[data-motion-pop-id="${i}"] {
position: absolute !important;
width: ${l}px !important;
height: ${u}px !important;
${g}px !important;
top: ${c}px !important;
}
`),()=>{v.contains(y)&&v.removeChild(y)}},[t]),A.jsx(v1,{isPresent:t,childRef:o,sizeRef:s,children:C.cloneElement(e,{ref:o})})}const w1=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s,anchorX:a,root:l})=>{const u=Au(x1),c=C.useId();let f=!0,d=C.useMemo(()=>(f=!1,{id:c,initial:t,isPresent:n,custom:i,onExitComplete:g=>{u.set(g,!0);for(const y of u.values())if(!y)return;r&&r()},register:g=>(u.set(g,!1),()=>u.delete(g))}),[n,u,r]);return o&&f&&(d={...d}),C.useMemo(()=>{u.forEach((g,y)=>u.set(y,!1))},[n]),C.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),s==="popLayout"&&(e=A.jsx(C1,{isPresent:n,anchorX:a,root:l,children:e})),A.jsx(cs.Provider,{value:d,children:e})};function x1(){return new Map}function og(e=!0){const t=C.useContext(cs);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=C.useId();C.useEffect(()=>{if(e)return i(o)},[e]);const s=C.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const Ji=e=>e.key||"";function Gf(e){const t=[];return C.Children.forEach(e,n=>{C.isValidElement(n)&&t.push(n)}),t}const S1=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[u,c]=og(s),f=C.useMemo(()=>Gf(e),[e]),d=s&&!u?[]:f.map(Ji),g=C.useRef(!0),y=C.useRef(f),v=Au(()=>new Map),[I,p]=C.useState(f),[h,m]=C.useState(f);pm(()=>{g.current=!1,y.current=f;for(let T=0;T<h.length;T++){const k=Ji(h[T]);d.includes(k)?v.delete(k):v.get(k)!==!0&&v.set(k,!1)}},[h,d.length,d.join("-")]);const w=[];if(f!==I){let T=[...f];for(let k=0;k<h.length;k++){const S=h[k],K=Ji(S);d.includes(K)||(T.splice(k,0,S),w.push(S))}return o==="wait"&&w.length&&(T=w),m(Gf(T)),p(f),null}const{forceRender:E}=C.useContext(yu);return A.jsx(A.Fragment,{children:h.map(T=>{const k=Ji(T),S=s&&!u?!1:f===h||d.includes(k),K=()=>{if(v.has(k))v.set(k,!0);else return;let x=!0;v.forEach(B=>{B||(x=!1)}),x&&(E==null||E(),m(y.current),s&&(c==null||c()),r&&r())};return A.jsx(w1,{isPresent:S,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,root:l,onExitComplete:S?void 0:K,anchorX:a,children:T},k)})})},sg=C.createContext({strict:!1}),$f={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},dr={};for(const e in $f)dr[e]={isEnabled:t=>$f[e].some(n=>!!t[n])};function I1(e){for(const t in e)dr[t]={...dr[t],...e[t]}}const E1=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 Ho(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||E1.has(e)}let ag=e=>!Ho(e);function K1(e){typeof e=="function"&&(ag=t=>t.startsWith("on")?!Ho(t):e(t))}try{K1(require("@emotion/is-prop-valid").default)}catch{}function T1(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(ag(i)||n===!0&&Ho(i)||!t&&!Ho(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const fs=C.createContext({});function ds(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function yi(e){return typeof e=="string"||Array.isArray(e)}const Uu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wu=["initial",...Uu];function hs(e){return ds(e.animate)||Wu.some(t=>yi(e[t]))}function lg(e){return!!(hs(e)||e.variants)}function k1(e,t){if(hs(e)){const{initial:n,animate:r}=e;return{initial:n===!1||yi(n)?n:void 0,animate:yi(r)?r:void 0}}return e.inherit!==!1?t:{}}function P1(e){const{initial:t,animate:n}=k1(e,C.useContext(fs));return C.useMemo(()=>({initial:t,animate:n}),[Yf(t),Yf(n)])}function Yf(e){return Array.isArray(e)?e.join(" "):e}const Ai={};function M1(e){for(const t in e)Ai[t]=e[t],Tu(t)&&(Ai[t].isCSSVariable=!0)}function ug(e,{layout:t,layoutId:n}){return Cr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ai[e]||e==="opacity")}const D1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},R1=vr.length;function B1(e,t,n){let r="",i=!0;for(let o=0;o<R1;o++){const s=vr[o],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=qm(a,Ou[s]);if(!l){i=!1;const c=D1[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Hu(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(Cr.has(l)){s=!0;continue}else if(Tu(l)){i[l]=u;continue}else{const c=qm(u,Ou[l]);l.startsWith("origin")?(a=!0,o[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=B1(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;r.transformOrigin=`${l} ${u} ${c}`}}const Gu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function cg(e,t,n){for(const r in t)!Ie(t[r])&&!ug(r,n)&&(e[r]=t[r])}function N1({transformTemplate:e},t){return C.useMemo(()=>{const n=Gu();return Hu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function L1(e,t){const n=e.style||{},r={};return cg(r,n,e),Object.assign(r,N1(e,t)),r}function j1(e,t){const n={},r=L1(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const V1={offset:"stroke-dashoffset",array:"stroke-dasharray"},O1={offset:"strokeDashoffset",array:"strokeDasharray"};function F1(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?V1:O1;e[o.offset]=j.transform(-r);const s=j.transform(t),a=j.transform(n);e[o.array]=`${s} ${a}`}function fg(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,u,c){if(Hu(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:d}=e;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete f.transformBox),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),i!==void 0&&F1(f,i,o,s,!1)}const dg=()=>({...Gu(),attrs:{}}),hg=e=>typeof e=="string"&&e.toLowerCase()==="svg";function _1(e,t,n,r){const i=C.useMemo(()=>{const o=dg();return fg(o,t,hg(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};cg(o,e.style,e),i.style={...o,...i.style}}return i}const z1=["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 $u(e){return typeof e!="string"||e.includes("-")?!1:!!(z1.indexOf(e)>-1||/[A-Z]/u.test(e))}function U1(e,t,n,{latestValues:r},i,o=!1){const a=($u(e)?_1:j1)(t,r,i,e),l=T1(t,typeof e=="string",o),u=e!==C.Fragment?{...l,...a,ref:n}:{},{children:c}=t,f=C.useMemo(()=>Ie(c)?c.get():c,[c]);return C.createElement(e,{...u,children:f})}function Qf(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Yu(e,t,n,r){if(typeof t=="function"){const[i,o]=Qf(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Qf(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function mo(e){return Ie(e)?e.get():e}function W1({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:H1(n,r,i,e),renderState:t()}}function H1(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=mo(o[d]);let{initial:s,animate:a}=e;const l=hs(e),u=lg(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?a:s;if(f&&typeof f!="boolean"&&!ds(f)){const d=Array.isArray(f)?f:[f];for(let g=0;g<d.length;g++){const y=Yu(e,d[g]);if(y){const{transitionEnd:v,transition:I,...p}=y;for(const h in p){let m=p[h];if(Array.isArray(m)){const w=c?m.length-1:0;m=m[w]}m!==null&&(i[h]=m)}for(const h in v)i[h]=v[h]}}}return i}const pg=e=>(t,n)=>{const r=C.useContext(fs),i=C.useContext(cs),o=()=>W1(e,t,r,i);return n?o():Au(o)};function Qu(e,t,n){var o;const{style:r}=e,i={};for(const s in r)(Ie(r[s])||t.style&&Ie(t.style[s])||ug(s,e)||((o=n==null?void 0:n.getValue(s))==null?void 0:o.liveStyle)!==void 0)&&(i[s]=r[s]);return i}const G1=pg({scrapeMotionValuesFromProps:Qu,createRenderState:Gu});function mg(e,t,n){const r=Qu(e,t,n);for(const i in e)if(Ie(e[i])||Ie(t[i])){const o=vr.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const $1=pg({scrapeMotionValuesFromProps:mg,createRenderState:dg}),Y1=Symbol.for("motionComponentSymbol");function $n(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Q1(e,t,n){return C.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):$n(n)&&(n.current=r))},[t])}const Xu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),X1="framerAppearId",gg="data-"+Xu(X1),yg=C.createContext({});function b1(e,t,n,r,i){var v,I;const{visualElement:o}=C.useContext(fs),s=C.useContext(sg),a=C.useContext(cs),l=C.useContext(zu).reducedMotion,u=C.useRef(null);r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,f=C.useContext(yg);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&J1(u.current,n,i,f);const d=C.useRef(!1);C.useInsertionEffect(()=>{c&&d.current&&c.update(n,a)});const g=n[gg],y=C.useRef(!!g&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,g))&&((I=window.MotionHasOptimisedAnimation)==null?void 0:I.call(window,g)));return pm(()=>{c&&(d.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),y.current&&c.animationState&&c.animationState.animateChanges())}),C.useEffect(()=>{c&&(!y.current&&c.animationState&&c.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)==null||p.call(window,g)}),y.current=!1),c.enteringChildren=void 0)}),c}function J1(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ag(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&$n(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function Ag(e){if(e)return e.options.allowProjection!==!1?e.projection:Ag(e.parent)}function Js(e,{forwardMotionProps:t=!1}={},n,r){n&&I1(n);const i=$u(e)?$1:G1;function o(a,l){let u;const c={...C.useContext(zu),...a,layoutId:Z1(a)},{isStatic:f}=c,d=P1(a),g=i(a,f);if(!f&&vu){q1();const y=ew(c);u=y.MeasureLayout,d.visualElement=b1(e,g,c,r,y.ProjectionNode)}return A.jsxs(fs.Provider,{value:d,children:[u&&d.visualElement?A.jsx(u,{visualElement:d.visualElement,...c}):null,U1(e,a,Q1(g,d.visualElement,l),g,f,t)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=C.forwardRef(o);return s[Y1]=e,s}function Z1({layoutId:e}){const t=C.useContext(yu).id;return t&&e!==void 0?t+"-"+e:e}function q1(e,t){C.useContext(sg).strict}function ew(e){const{drag:t,layout:n}=dr;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function tw(e,t){if(typeof Proxy>"u")return Js;const n=new Map,r=(o,s)=>Js(o,s,e,t),i=(o,s)=>r(o,s);return new Proxy(i,{get:(o,s)=>s==="create"?r:(n.has(s)||n.set(s,Js(s,void 0,e,t)),n.get(s))})}function vg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function nw({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function rw(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Zs(e){return e===void 0||e===1}function pl({scale:e,scaleX:t,scaleY:n}){return!Zs(e)||!Zs(t)||!Zs(n)}function fn(e){return pl(e)||Cg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Cg(e){return Xf(e.x)||Xf(e.y)}function Xf(e){return e&&e!=="0%"}function Go(e,t,n){const r=e-n,i=t*r;return n+i}function bf(e,t,n,r,i){return i!==void 0&&(e=Go(e,i,r)),Go(e,n,r)+t}function ml(e,t=0,n=1,r,i){e.min=bf(e.min,t,n,r,i),e.max=bf(e.max,t,n,r,i)}function wg(e,{x:t,y:n}){ml(e.x,t.translate,t.scale,t.originPoint),ml(e.y,n.translate,n.scale,n.originPoint)}const Jf=.999999999999,Zf=1.0000000000001;function iw(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Qn(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,wg(e,s)),r&&fn(o.latestValues)&&Qn(e,o.latestValues))}t.x<Zf&&t.x>Jf&&(t.x=1),t.y<Zf&&t.y>Jf&&(t.y=1)}function Yn(e,t){e.min=e.min+t,e.max=e.max+t}function qf(e,t,n,r,i=.5){const o=ee(e.min,e.max,i);ml(e,t,n,o,r)}function Qn(e,t){qf(e.x,t.x,t.scaleX,t.scale,t.originX),qf(e.y,t.y,t.scaleY,t.scale,t.originY)}function xg(e,t){return vg(rw(e.getBoundingClientRect(),t))}function ow(e,t,n){const r=xg(e,n),{scroll:i}=t;return i&&(Yn(r.x,i.offset.x),Yn(r.y,i.offset.y)),r}const ed=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xn=()=>({x:ed(),y:ed()}),td=()=>({min:0,max:0}),se=()=>({x:td(),y:td()}),$o={current:null},bu={current:!1};function Sg(){if(bu.current=!0,!!vu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>$o.current=e.matches;e.addEventListener("change",t),t()}else $o.current=!1}const sw=new WeakMap;function aw(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Ie(i))e.addValue(r,i);else if(Ie(o))e.addValue(r,fr(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,fr(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const nd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class lw{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ju,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 d=Ne.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,Z.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=hs(n),this.isVariantNode=lg(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const g=f[d];l[d]!==void 0&&Ie(g)&&g.set(l[d])}}mount(t){var n;this.current=t,sw.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),bu.current||Sg(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:$o.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),qt(this.notifyUpdate),qt(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Cr.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Z.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in dr){const n=dr[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):se()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<nd.length;r++){const i=nd[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=aw(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=fr(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(mm(r)||ym(r))?r=parseFloat(r):!A1(r)&&en.test(n)&&(r=Zm(t,n)),this.setBaseTarget(t,Ie(r)?r.get():r)),Ie(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Yu(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ie(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Iu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Fu.render(this.render)}}class Ig extends lw{constructor(){super(...arguments),this.KeyframeResolver=s1}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ie(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Eg(e,{style:t,vars:n},r,i){const o=e.style;let s;for(s in t)o[s]=t[s];i==null||i.applyProjectionStyles(o,r);for(s in n)o.setProperty(s,n[s])}function uw(e){return window.getComputedStyle(e)}class cw extends Ig{constructor(){super(...arguments),this.type="html",this.renderInstance=Eg}readValueFromInstance(t,n){var r;if(Cr.has(n))return(r=this.projection)!=null&&r.isProjecting?al(n):EC(t,n);{const i=uw(t),o=(Tu(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return xg(t,n)}build(t,n,r){Hu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Qu(t,n,r)}}const Kg=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 fw(e,t,n,r){Eg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Kg.has(i)?i:Xu(i),t.attrs[i])}class dw extends Ig{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=se}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Cr.has(n)){const r=Jm(n);return r&&r.default||0}return n=Kg.has(n)?n:Xu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return mg(t,n,r)}build(t,n,r){fg(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){fw(t,n,r,i)}mount(t){this.isSVGTag=hg(t.tagName),super.mount(t)}}const hw=(e,t)=>$u(e)?new dw(t):new cw(t,{allowProjection:e!==C.Fragment});function rr(e,t,n){const r=e.getProps();return Yu(r,t,n!==void 0?n:r.custom,e)}const gl=e=>Array.isArray(e);function pw(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,fr(n))}function mw(e){return gl(e)?e[e.length-1]||0:e}function gw(e,t){const n=rr(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=mw(o[s]);pw(e,s,a)}}function yw(e){return!!(Ie(e)&&e.add)}function yl(e,t){const n=e.getValue("willChange");if(yw(n))return n.add(t);if(!n&&Dt.WillChange){const r=new Dt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Tg(e){return e.props[gg]}const Aw=e=>e!==null;function vw(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Aw),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[o]}const Cw={type:"spring",stiffness:500,damping:25,restSpeed:10},ww=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),xw={type:"keyframes",duration:.8},Sw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Iw=(e,{keyframes:t})=>t.length>2?xw:Cr.has(e)?e.startsWith("scale")?ww(t[1]):Cw:Sw;function Ew({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Ju=(e,t,n,r={},i,o)=>s=>{const a=Vu(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-At(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};Ew(a)||Object.assign(c,Iw(e,c)),c.duration&&(c.duration=At(c.duration)),c.repeatDelay&&(c.repeatDelay=At(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(dl(c),c.delay===0&&(f=!0)),(Dt.instantAnimations||Dt.skipAnimations)&&(f=!0,dl(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!o&&t.get()!==void 0){const d=vw(c.keyframes,a);if(d!==void 0){Z.update(()=>{c.onUpdate(d),c.onComplete()});return}}return a.isSync?new Lu(c):new QC(c)};function Kw({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function kg(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(o=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const c in a){const f=e.getValue(c,e.latestValues[c]??null),d=a[c];if(d===void 0||u&&Kw(u,c))continue;const g={delay:n,...Vu(o||{},c)},y=f.get();if(y!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===y&&!g.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const p=Tg(e);if(p){const h=window.MotionHandoffAnimation(p,c,Z);h!==null&&(g.startTime=h,v=!0)}}yl(e,c),f.start(Ju(c,f,d,e.shouldReduceMotion&&Qm.has(c)?{type:!1}:g,e,v));const I=f.animation;I&&l.push(I)}return s&&Promise.all(l).then(()=>{Z.update(()=>{s&&gw(e,s)})}),l}function Pg(e,t,n,r=0,i=1){const o=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(o,s):i===1?o*r:a-o*r}function Al(e,t,n={}){var l;const r=rr(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(kg(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=i;return Tw(e,t,u,c,f,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[o,s]:[s,o];return u().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function Tw(e,t,n=0,r=0,i=0,o=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Al(l,t,{...s,delay:n+(typeof r=="function"?0:r)+Pg(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function kw(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Al(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Al(e,t,n);else{const i=typeof t=="function"?rr(e,t,n.custom):t;r=Promise.all(kg(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Mg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Pw=Wu.length;function Dg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Dg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Pw;n++){const r=Wu[n],i=e.props[r];(yi(i)||i===!1)&&(t[r]=i)}return t}const Mw=[...Uu].reverse(),Dw=Uu.length;function Rw(e){return t=>Promise.all(t.map(({animation:n,options:r})=>kw(e,n,r)))}function Bw(e){let t=Rw(e),n=rd(),r=!0;const i=l=>(u,c)=>{var d;const f=rr(e,c,l==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(f){const{transition:g,transitionEnd:y,...v}=f;u={...u,...v,...y}}return u};function o(l){t=l(e)}function s(l){const{props:u}=e,c=Dg(e.parent)||{},f=[],d=new Set;let g={},y=1/0;for(let I=0;I<Dw;I++){const p=Mw[I],h=n[p],m=u[p]!==void 0?u[p]:c[p],w=yi(m),E=p===l?h.isActive:null;E===!1&&(y=I);let T=m===c[p]&&m!==u[p]&&w;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),h.protectedKeys={...g},!h.isActive&&E===null||!m&&!h.prevProp||ds(m)||typeof m=="boolean")continue;const k=Nw(h.prevProp,m);let S=k||p===l&&h.isActive&&!T&&w||I>y&&w,K=!1;const x=Array.isArray(m)?m:[m];let B=x.reduce(i(p),{});E===!1&&(B={});const{prevResolvedValues:L={}}=h,z={...L,...B},b=W=>{S=!0,d.has(W)&&(K=!0,d.delete(W)),h.needsAnimating[W]=!0;const M=e.getValue(W);M&&(M.liveStyle=!1)};for(const W in z){const M=B[W],D=L[W];if(g.hasOwnProperty(W))continue;let R=!1;gl(M)&&gl(D)?R=!Mg(M,D):R=M!==D,R?M!=null?b(W):d.add(W):M!==void 0&&d.has(W)?b(W):h.protectedKeys[W]=!0}h.prevProp=m,h.prevResolvedValues=B,h.isActive&&(g={...g,...B}),r&&e.blockInitialAnimation&&(S=!1);const le=T&&k;S&&(!le||K)&&f.push(...x.map(W=>{const M={type:p};if(typeof W=="string"&&r&&!le&&e.manuallyAnimateOnMount&&e.parent){const{parent:D}=e,R=rr(D,W);if(D.enteringChildren&&R){const{delayChildren:F}=R.transition||{};M.delay=Pg(D.enteringChildren,e,F)}}return{animation:W,options:M}}))}if(d.size){const I={};if(typeof u.initial!="boolean"){const p=rr(e,Array.isArray(u.initial)?u.initial[0]:u.initial);p&&p.transition&&(I.transition=p.transition)}d.forEach(p=>{const h=e.getBaseTarget(p),m=e.getValue(p);m&&(m.liveStyle=!0),I[p]=h??null}),f.push({animation:I})}let v=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(f):Promise.resolve()}function a(l,u){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(d=>{var g;return(g=d.animationState)==null?void 0:g.setActive(l,u)}),n[l].isActive=u;const c=s(l);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=rd(),r=!0}}}function Nw(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Mg(t,e):!1}function ln(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rd(){return{animate:ln(!0),whileInView:ln(),whileHover:ln(),whileTap:ln(),whileDrag:ln(),whileFocus:ln(),exit:ln()}}class on{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Lw extends on{constructor(t){super(t),t.animationState||(t.animationState=Bw(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ds(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let jw=0;class Vw extends on{constructor(){super(...arguments),this.id=jw++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Ow={animation:{Feature:Lw},exit:{Feature:Vw}};function vi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Di(e){return{point:{x:e.pageX,y:e.pageY}}}const Fw=e=>t=>_u(t)&&e(t,Di(t));function $r(e,t,n,r){return vi(e,t,Fw(n),r)}const Rg=1e-4,_w=1-Rg,zw=1+Rg,Bg=.01,Uw=0-Bg,Ww=0+Bg;function ke(e){return e.max-e.min}function Hw(e,t,n){return Math.abs(e-t)<=n}function id(e,t,n,r=.5){e.origin=r,e.originPoint=ee(t.min,t.max,e.origin),e.scale=ke(n)/ke(t),e.translate=ee(n.min,n.max,e.origin)-e.originPoint,(e.scale>=_w&&e.scale<=zw||isNaN(e.scale))&&(e.scale=1),(e.translate>=Uw&&e.translate<=Ww||isNaN(e.translate))&&(e.translate=0)}function Yr(e,t,n,r){id(e.x,t.x,n.x,r?r.originX:void 0),id(e.y,t.y,n.y,r?r.originY:void 0)}function od(e,t,n){e.min=n.min+t.min,e.max=e.min+ke(t)}function Gw(e,t,n){od(e.x,t.x,n.x),od(e.y,t.y,n.y)}function sd(e,t,n){e.min=t.min-n.min,e.max=e.min+ke(t)}function Qr(e,t,n){sd(e.x,t.x,n.x),sd(e.y,t.y,n.y)}function Xe(e){return[e("x"),e("y")]}const Ng=({current:e})=>e?e.ownerDocument.defaultView:null,ad=(e,t)=>Math.abs(e-t);function $w(e,t){const n=ad(e.x,t.x),r=ad(e.y,t.y);return Math.sqrt(n**2+r**2)}class Lg{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=ea(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=$w(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!y)return;const{point:v}=d,{timestamp:I}=Ae;this.history.push({...v,timestamp:I});const{onStart:p,onMove:h}=this.handlers;g||(p&&p(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,d)},this.handlePointerMove=(d,g)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=qs(g,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(d,g)=>{this.end();const{onEnd:y,onSessionEnd:v,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=ea(d.type==="pointercancel"?this.lastMoveEventInfo:qs(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,p),v&&v(d,p)},!_u(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const a=Di(t),l=qs(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=Ae;this.history=[{...u,timestamp:c}];const{onSessionStart:f}=n;f&&f(t,ea(l,this.history)),this.removeListeners=ki($r(this.contextWindow,"pointermove",this.handlePointerMove),$r(this.contextWindow,"pointerup",this.handlePointerUp),$r(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),qt(this.updatePoint)}}function qs(e,t){return t?{point:t(e.point)}:e}function ld(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ea({point:e},t){return{point:e,delta:ld(e,jg(t)),offset:ld(e,Yw(t)),velocity:Qw(t,.1)}}function Yw(e){return e[0]}function jg(e){return e[e.length-1]}function Qw(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=jg(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>At(t)));)n--;if(!r)return{x:0,y:0};const o=vt(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Xw(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ee(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ee(n,e,r.max):Math.min(e,n)),e}function ud(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function bw(e,{top:t,left:n,bottom:r,right:i}){return{x:ud(e.x,n,i),y:ud(e.y,t,r)}}function cd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Jw(e,t){return{x:cd(e.x,t.x),y:cd(e.y,t.y)}}function Zw(e,t){let n=.5;const r=ke(e),i=ke(t);return i>r?n=pi(t.min,t.max-r,e.min):r>i&&(n=pi(e.min,e.max-i,t.min)),Mt(0,1,n)}function qw(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const vl=.35;function ex(e=vl){return e===!1?e=0:e===!0&&(e=vl),{x:fd(e,"left","right"),y:fd(e,"top","bottom")}}function fd(e,t,n){return{min:dd(e,t),max:dd(e,n)}}function dd(e,t){return typeof e=="number"?e:e[t]||0}const tx=new WeakMap;class nx{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=se(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=f=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Di(f).point)},s=(f,d)=>{const{drag:g,dragPropagation:y,onDragStart:v}=this.getProps();if(g&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=c1(g),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Xe(p=>{let h=this.getAxisMotionValue(p).get()||0;if(Ct.test(h)){const{projection:m}=this.visualElement;if(m&&m.layout){const w=m.layout.layoutBox[p];w&&(h=ke(w)*(parseFloat(h)/100))}}this.originPoint[p]=h}),v&&Z.postRender(()=>v(f,d)),yl(this.visualElement,"transform");const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},a=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d;const{dragPropagation:g,dragDirectionLock:y,onDirectionLock:v,onDrag:I}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:p}=d;if(y&&this.currentDirection===null){this.currentDirection=rx(p),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,p),this.updateAxis("y",d.point,p),this.visualElement.render(),I&&I(f,d)},l=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d,this.stop(f,d),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Xe(f=>{var d;return this.getAnimationState(f)==="paused"&&((d=this.getAxisMotionValue(f).animation)==null?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Lg(t,{onSessionStart:o,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:Ng(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&Z.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Zi(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Xw(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;t&&$n(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=bw(r.layoutBox,t):this.constraints=!1,this.elastic=ex(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Xe(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=qw(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!$n(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=ow(r,i.root,this.visualElement.getTransformPagePoint());let s=Jw(i.layout.layoutBox,o);if(n){const a=n(nw(s));this.hasMutatedConstraints=!!a,a&&(s=vg(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Xe(c=>{if(!Zi(c,n,this.currentDirection))return;let f=l&&l[c]||{};s&&(f={min:0,max:0});const d=i?200:1e6,g=i?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return yl(this.visualElement,t),r.start(Ju(t,r,0,n,this.visualElement,!1))}stopAnimation(){Xe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Xe(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Xe(n=>{const{drag:r}=this.getProps();if(!Zi(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-ee(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!$n(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Xe(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=Zw({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Xe(s=>{if(!Zi(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ee(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;tx.set(this.visualElement,this);const t=this.visualElement.current,n=$r(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();$n(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Z.read(r);const s=vi(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Xe(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=vl,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Zi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function rx(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ix extends on{constructor(t){super(t),this.removeGroupControls=et,this.removeListeners=et,this.controls=new nx(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||et}unmount(){this.removeGroupControls(),this.removeListeners()}}const hd=e=>(t,n)=>{e&&Z.postRender(()=>e(t,n))};class ox extends on{constructor(){super(...arguments),this.removePointerDownListener=et}onPointerDown(t){this.session=new Lg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ng(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:hd(t),onStart:hd(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Z.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=$r(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const go={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Pr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(j.test(e))e=parseFloat(e);else return e;const n=pd(e,t.target.x),r=pd(e,t.target.y);return`${n}% ${r}%`}},sx={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=en.parse(e);if(i.length>5)return r;const o=en.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=ee(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};let ta=!1;class ax extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;M1(lx),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),ta&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),go.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:s}=r;return s&&(s.isPresent=o,ta=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Z.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Fu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;ta=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Vg(e){const[t,n]=og(),r=C.useContext(yu);return A.jsx(ax,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(yg),isPresent:t,safeToRemove:n})}const lx={borderRadius:{...Pr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pr,borderTopRightRadius:Pr,borderBottomLeftRadius:Pr,borderBottomRightRadius:Pr,boxShadow:sx};function ux(e,t,n){const r=Ie(e)?e:fr(e);return r.start(Ju("",r,t,n)),r.animation}const cx=(e,t)=>e.depth-t.depth;class fx{constructor(){this.children=[],this.isDirty=!1}add(t){Cu(this.children,t),this.isDirty=!0}remove(t){wu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(cx),this.isDirty=!1,this.children.forEach(t)}}function dx(e,t){const n=Ne.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(qt(r),e(o-t))};return Z.setup(r,!0),()=>qt(r)}const Og=["TopLeft","TopRight","BottomLeft","BottomRight"],hx=Og.length,md=e=>typeof e=="string"?parseFloat(e):e,gd=e=>typeof e=="number"||j.test(e);function px(e,t,n,r,i,o){i?(e.opacity=ee(0,n.opacity??1,mx(r)),e.opacityExit=ee(t.opacity??1,0,gx(r))):o&&(e.opacity=ee(t.opacity??1,n.opacity??1,r));for(let s=0;s<hx;s++){const a=`border${Og[s]}Radius`;let l=yd(t,a),u=yd(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||gd(l)===gd(u)?(e[a]=Math.max(ee(md(l),md(u),r),0),(Ct.test(u)||Ct.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=ee(t.rotate||0,n.rotate||0,r))}function yd(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const mx=Fg(0,.5,Em),gx=Fg(.5,.95,et);function Fg(e,t,n){return r=>r<e?0:r>t?1:n(pi(e,t,r))}function Ad(e,t){e.min=t.min,e.max=t.max}function Qe(e,t){Ad(e.x,t.x),Ad(e.y,t.y)}function vd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Cd(e,t,n,r,i){return e-=t,e=Go(e,1/n,r),i!==void 0&&(e=Go(e,1/i,r)),e}function yx(e,t=0,n=1,r=.5,i,o=e,s=e){if(Ct.test(t)&&(t=parseFloat(t),t=ee(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ee(o.min,o.max,r);e===o&&(a-=t),e.min=Cd(e.min,t,n,a,i),e.max=Cd(e.max,t,n,a,i)}function wd(e,t,[n,r,i],o,s){yx(e,t[n],t[r],t[i],t.scale,o,s)}const Ax=["x","scaleX","originX"],vx=["y","scaleY","originY"];function xd(e,t,n,r){wd(e.x,t,Ax,n?n.x:void 0,r?r.x:void 0),wd(e.y,t,vx,n?n.y:void 0,r?r.y:void 0)}function Sd(e){return e.translate===0&&e.scale===1}function _g(e){return Sd(e.x)&&Sd(e.y)}function Id(e,t){return e.min===t.min&&e.max===t.max}function Cx(e,t){return Id(e.x,t.x)&&Id(e.y,t.y)}function Ed(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function zg(e,t){return Ed(e.x,t.x)&&Ed(e.y,t.y)}function Kd(e){return ke(e.x)/ke(e.y)}function Td(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class wx{constructor(){this.members=[]}add(t){Cu(this.members,t),t.scheduleRender()}remove(t){if(wu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function xx(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:g,skewY:y}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),g&&(r+=`skewX(${g}deg) `),y&&(r+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const na=["","X","Y","Z"],Sx=1e3;let Ix=0;function ra(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ug(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Tg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Z,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ug(r)}function Wg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=Ix++,this.animationId=0,this.animationCommitId=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,this.nodes.forEach(Tx),this.nodes.forEach(Dx),this.nodes.forEach(Rx),this.nodes.forEach(kx)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new fx)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Iu),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=ig(s)&&!g1(s),this.instance=s;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,f=0;const d=()=>this.root.updateBlockedByResize=!1;Z.read(()=>{f=window.innerWidth}),e(s,()=>{const g=window.innerWidth;g!==f&&(f=g,this.root.updateBlockedByResize=!0,c&&c(),c=dx(d,250),go.hasAnimatedSinceResize&&(go.hasAnimatedSinceResize=!1,this.nodes.forEach(Md)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||u.getDefaultTransition()||Vx,{onLayoutAnimationStart:v,onLayoutAnimationComplete:I}=u.getProps(),p=!this.targetLayout||!zg(this.targetLayout,g),h=!f&&d;if(this.options.layoutRoot||this.resumeFrom||h||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const m={...Vu(y,"layout"),onPlay:v,onComplete:I};(u.shouldReduceMotion||this.options.layoutRoot)&&(m.delay=0,m.type=!1),this.startAnimation(m),this.setAnimationOrigin(c,h)}else f||Md(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),qt(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(Bx),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ug(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(kd);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Pd);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Mx),this.nodes.forEach(Ex),this.nodes.forEach(Kx)):this.nodes.forEach(Pd),this.clearAllSnapshots();const a=Ne.now();Ae.delta=Mt(0,1e3/60,a-Ae.timestamp),Ae.timestamp=a,Ae.isProcessing=!0,Gs.update.process(Ae),Gs.preRender.process(Ae),Gs.render.process(Ae),Ae.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Fu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Px),this.sharedNodes.forEach(Nx)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ke(this.snapshot.measuredBox.x)&&!ke(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=se(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!_g(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&this.instance&&(a||fn(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Ox(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:s}=this.options;if(!s)return se();const a=s.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(Fx))){const{scroll:c}=this.root;c&&(Yn(a.x,c.offset.x),Yn(a.y,c.offset.y))}return a}removeElementScroll(s){var l;const a=se();if(Qe(a,s),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:f,options:d}=c;c!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&Qe(a,s),Yn(a.x,f.offset.x),Yn(a.y,f.offset.y))}return a}applyTransform(s,a=!1){const l=se();Qe(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Qn(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),fn(c.latestValues)&&Qn(l,c.latestValues)}return fn(this.latestValues)&&Qn(l,this.latestValues),l}removeTransform(s){const a=se();Qe(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!fn(u.latestValues))continue;pl(u.latestValues)&&u.updateSnapshot();const c=se(),f=u.measurePageBox();Qe(c,f),xd(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return fn(this.latestValues)&&xd(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ae.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var d;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:f}=this.options;if(!(!this.layout||!(c||f))){if(this.resolvedRelativeTargetAt=Ae.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=se(),this.relativeTargetOrigin=se(),Qr(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Qe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=se(),this.targetWithTransforms=se()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Gw(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Qe(this.target,this.layout.layoutBox),wg(this.target,this.targetDelta)):Qe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=se(),this.relativeTargetOrigin=se(),Qr(this.relativeTargetOrigin,this.target,g.target),Qe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||pl(this.parent.latestValues)||Cg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var y;const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Ae.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Qe(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;iw(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=se());const{target:g}=s;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(vd(this.prevProjectionDelta.x,this.projectionDelta.x),vd(this.prevProjectionDelta.y,this.projectionDelta.y)),Yr(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!Td(this.projectionDelta.x,this.prevProjectionDelta.x)||!Td(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Xn(),this.projectionDelta=Xn(),this.projectionDeltaWithTransform=Xn()}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},f=Xn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=se(),g=l?l.source:void 0,y=this.layout?this.layout.source:void 0,v=g!==y,I=this.getStack(),p=!I||I.members.length<=1,h=!!(v&&!p&&this.options.crossfade===!0&&!this.path.some(jx));this.animationProgress=0;let m;this.mixTargetDelta=w=>{const E=w/1e3;Dd(f.x,s.x,E),Dd(f.y,s.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qr(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Lx(this.relativeTarget,this.relativeTargetOrigin,d,E),m&&Cx(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=se()),Qe(m,this.relativeTarget)),v&&(this.animationValues=c,px(c,u,this.latestValues,E,h,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(qt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{go.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=fr(0)),this.currentAnimation=ux(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),s.onUpdate&&s.onUpdate(c)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Sx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Hg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||se();const f=ke(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=ke(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}Qe(a,l),Qn(a,c),Yr(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new wx),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&ra("z",s,u,this.animationValues);for(let c=0;c<na.length;c++)ra(`rotate${na[c]}`,s,u,this.animationValues),ra(`skew${na[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=mo(a==null?void 0:a.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=mo(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!fn(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=xx(this.projectionDeltaWithTransform,this.treeScale,c);l&&(f=l(c,f)),s.transform=f;const{x:d,y:g}=this.projectionDelta;s.transformOrigin=`${d.origin*100}% ${g.origin*100}% 0`,u.animationValues?s.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:s.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const y in Ai){if(c[y]===void 0)continue;const{correct:v,applyTo:I,isCSSVariable:p}=Ai[y],h=f==="none"?c[y]:v(c[y],u);if(I){const m=I.length;for(let w=0;w<m;w++)s[I[w]]=h}else p?this.options.visualElement.renderState.vars[y]=h:s[y]=h}this.options.layoutId&&(s.pointerEvents=u===this?mo(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(kd),this.root.sharedNodes.clear()}}}function Ex(e){e.updateLayout()}function Kx(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;o==="size"?Xe(f=>{const d=s?t.measuredBox[f]:t.layoutBox[f],g=ke(d);d.min=r[f].min,d.max=d.min+g}):Hg(o,t.layoutBox,r)&&Xe(f=>{const d=s?t.measuredBox[f]:t.layoutBox[f],g=ke(r[f]);d.max=d.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const a=Xn();Yr(a,r,t.layoutBox);const l=Xn();s?Yr(l,e.applyTransform(i,!0),t.measuredBox):Yr(l,r,t.layoutBox);const u=!_g(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:g}=f;if(d&&g){const y=se();Qr(y,t.layoutBox,d.layoutBox);const v=se();Qr(v,r,g.layoutBox),zg(y,v)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=y,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Tx(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function kx(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Px(e){e.clearSnapshot()}function kd(e){e.clearMeasurements()}function Pd(e){e.isLayoutDirty=!1}function Mx(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Md(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Dx(e){e.resolveTargetDelta()}function Rx(e){e.calcProjection()}function Bx(e){e.resetSkewAndRotation()}function Nx(e){e.removeLeadSnapshot()}function Dd(e,t,n){e.translate=ee(t.translate,0,n),e.scale=ee(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Rd(e,t,n,r){e.min=ee(t.min,n.min,r),e.max=ee(t.max,n.max,r)}function Lx(e,t,n,r){Rd(e.x,t.x,n.x,r),Rd(e.y,t.y,n.y,r)}function jx(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Vx={duration:.45,ease:[.4,0,.1,1]},Bd=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Nd=Bd("applewebkit/")&&!Bd("chrome/")?Math.round:et;function Ld(e){e.min=Nd(e.min),e.max=Nd(e.max)}function Ox(e){Ld(e.x),Ld(e.y)}function Hg(e,t,n){return e==="position"||e==="preserve-aspect"&&!Hw(Kd(t),Kd(n),.2)}function Fx(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const _x=Wg({attachResizeListener:(e,t)=>vi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ia={current:void 0},Gg=Wg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ia.current){const e=new _x({});e.mount(window),e.setOptions({layoutScroll:!0}),ia.current=e}return ia.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),zx={pan:{Feature:ox},drag:{Feature:ix,ProjectionNode:Gg,MeasureLayout:Vg}};function jd(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Z.postRender(()=>o(t,Di(t)))}class Ux extends on{mount(){const{current:t}=this.node;t&&(this.unmount=f1(t,(n,r)=>(jd(this.node,r,"Start"),i=>jd(this.node,i,"End"))))}unmount(){}}class Wx extends on{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=ki(vi(this.node.current,"focus",()=>this.onFocus()),vi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Vd(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Z.postRender(()=>o(t,Di(t)))}class Hx extends on{mount(){const{current:t}=this.node;t&&(this.unmount=m1(t,(n,r)=>(Vd(this.node,r,"Start"),(i,{success:o})=>Vd(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Cl=new WeakMap,oa=new WeakMap,Gx=e=>{const t=Cl.get(e.target);t&&t(e)},$x=e=>{e.forEach(Gx)};function Yx({root:e,...t}){const n=e||document;oa.has(n)||oa.set(n,{});const r=oa.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver($x,{root:e,...t})),r[i]}function Qx(e,t,n){const r=Yx(t);return Cl.set(e,n),r.observe(e),()=>{Cl.delete(e),r.unobserve(e)}}const Xx={some:0,all:1};class bx extends on{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Xx[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return Qx(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Jx(t,n))&&this.startObserver()}unmount(){}}function Jx({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Zx={inView:{Feature:bx},tap:{Feature:Hx},focus:{Feature:Wx},hover:{Feature:Ux}},qx={layout:{ProjectionNode:Gg,MeasureLayout:Vg}},eS={...Ow,...Zx,...zx,...qx},ut=tw(eS,hw);function ps(){!bu.current&&Sg();const[e]=C.useState($o.current);return e}function tS({value:e}){const[t,n]=C.useState(0);return C.useEffect(()=>{const r=t,i=e,o=600,s=performance.now();let a;const l=u=>{const c=Math.min(1,(u-s)/o);n(Math.round(r+(i-r)*c)),c<1&&(a=requestAnimationFrame(l))};return a=requestAnimationFrame(l),()=>cancelAnimationFrame(a)},[e]),A.jsx("span",{children:t})}function nS({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const rS=C.forwardRef(nS);function iS({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"}))}const oS=C.forwardRef(iS),wl="/assets/logolang-BCk2kEeX.png";function Le({variant:e="primary",className:t="",children:n,...r}){const i=ps(),s=["btn",e==="ghost"?"btn-ghost":e==="primary"?"btn-primary":"",t].filter(Boolean).join(" ");return A.jsx(ut.button,{className:s,whileHover:i?void 0:{y:-1,boxShadow:"0 4px 12px rgba(0,0,0,0.2)"},whileTap:i?void 0:{scale:.98},...r,children:n})}function Zu({count:e,title:t="Kenteken Generator",onRestart:n,onHome:r}){const i=yr(),o=ps();return A.jsx(ut.header,{className:"header",initial:o?{opacity:1}:{y:-20,opacity:0},animate:{y:0,opacity:1},transition:{duration:o?0:.28},children:A.jsxs("div",{className:"header-inner",children:[A.jsxs("div",{className:"flex items-center gap-2 sm:gap-3 cursor-pointer min-w-0",onClick:()=>i("/generate"),children:[A.jsx(ut.img,{src:wl,alt:"CarKiddo",className:"header-logo",whileHover:o?void 0:{rotate:2,y:-1},transition:{type:"spring",stiffness:300,damping:20}}),A.jsx(ut.div,{className:"header-title truncate",initial:o?!1:{opacity:0},animate:{opacity:1},transition:{duration:.3},children:t})]}),A.jsxs("div",{className:"header-right",children:[A.jsxs("div",{className:"header-stat",children:[A.jsx(tS,{value:e})," auto's"]}),r&&A.jsxs(Le,{type:"button",variant:"ghost",className:"header-btn",onClick:r,children:[A.jsx(oS,{className:"w-4 h-4"}),A.jsx("span",{className:"hidden sm:inline",children:"Home"})]}),n&&A.jsxs(Le,{type:"button",variant:"ghost",className:"header-btn",onClick:n,children:[A.jsx(rS,{className:"w-4 h-4"}),A.jsx("span",{className:"hidden sm:inline",children:"Opnieuw"})]})]})]})})}function ms({children:e}){const t=ps();return A.jsx(ut.div,{initial:t?{opacity:1}:{opacity:0,y:8},animate:{opacity:1,y:0},exit:t?{opacity:1}:{opacity:0,y:-8},transition:{duration:t?0:.28},children:e})}const sS="/assets/kentekentv-DF27M8g1.png",aS="/assets/belgischekentekenv2-CDydcV0P.png",lS="/assets/duitskenteken-DtX3fSHu.png",Od="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABQAAAANWBAMAAABTzTwUAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUhRYquHCjbmp/////n6/MhRosjxnvQAAAAAXRSTlNVW+d9HQAAAAFiS0dEAxEMTPIAAAAHdElNRQfpBxIDFhSxq3wdAAAGAUlEQVR42u3SQQ0AIAADsVnAAhawgAX8W8EB34WklXC5DCiKBBgQA4IBMSAYEAOCATEgGBADggExIBgQA4IBMSAYEAOCATEgGBADggExIBgQA4IBMSAYEAOCATEgBgQDYkAwIAYEA2JAMCAGBANiQDAgBgQDYkAwIAYEA2JAMCAGBANiQDAgBgQDYkAwIAYEA2JAMCAGxIBgQAwIBsSAYEAMCAbEgGBADAgGxIBgQAwIBsSAYEAMCAbEgGBADAgGxIBgQAwIBsSAYEAMiAHBgBgQDIgBwYAYEAyIAcGAGBAMiAHBgBgQDIgBwYAYEAyIAcGAGBAMiAHBgBgQDIgBwYAYEAyIATEgGBADggExIBgQA4IBMSAYEAOCATEgGBADggExIBgQA4IBMSAYEAOCATEgGBADggExIBgQA4IBMSAGBANiQDAgBgQDYkAwIAYEA2JAMCAGBANiQDAgBgQDYkAwIAYEA2JAMCAGBANiQDAgBgQDYkAMCAbEgGBADAgGxIBgQAwIBsSAYEAMCAbEgGBADAgGxIBgQAwIBsSAYEAMCAbEgGBADAgGxIBgQAyIAcGAGBAMiAHBgBgQDIgBwYAYEAyIAcGAGBAMiAHBgBgQDIgBwYAYEAyIAcGAGBAMiAHBgBgQA0qAATEgGBADggExIBgQA4IBMSAYEAOCATEgGBADggExIBgQA4IBMSAYEAPCc8AJRVlQZEAMiAHBgBgQDIgBwYAYEAyIAcGAGBAMiAHBgBgQDIgBwYAYEAyIAcGAGBAMiAHBgBgQDIgBwYAYEAOCATEgGBADggExIBgQA4IBMSAYEAOCATEgGBADggExIBgQA4IBMSAYEAOCATEgGBADggExIBgQA2JAMCAGBANiQDAgBgQDYkAwIAYEA2JAMCAGBANiQDAgBgQDYkAwIAYEA2JAMCAGBANiQDAgBsSAEmBADAgGxIBgQAwIBsSAYEAMCAbEgGBADAgGxIBgQAwIBsSAYEAMCAbEgGBADAgGxIBgQAwIBsSAGBAMiAHBgBgQDIgBwYAYEAyIAcGAGBAMiAHBgBgQDIgBwYAYEAyIAcGAGBAMiAHBgBgQDIgBwYAYEAOCATEgGBADggExIBgQA4IBMSAYEAOCATEgGBADggExIBgQA4IBMSAYEAOCATEgGBADggExIAYEA2JAMCAGBANiQDAgBgQDYkAwIAYEA2JAMCAGBANiQDAgBgQDYkAwIAYEA2JAMCAGBANiQDAgBsSAYEAMCAbEgGBADAgGxIBgQAwIBsSAYEAMCAbEgGBADAgGxIBgQAwIBsSAYEAMCAbEgGBADAgGxIAYEAyIAcGAGBAMiAHBgBgQDIgBwYAYEAyIAcGAGBAMiAHBgBgQDMgHA24oyoEiA2JADAgGxIBgQAwIBsSAYEAMCAbEgGBADAgGxIBgQAwIBsSAYEAMCAbEgGBADAgGxIBgQAwIBsSAGBAMiAHBgBgQDIgBwYAYEAyIAcGAGBAMiAHBgBgQDIgBwYAYEAyIAcGAGBAMiAHBgBgQDIgBwYAYEAOCATEgGBADggExIBgQA4IBMSAYEAOCATEgGBADggExIBgQA4IBMSAYEAOCATEgGBADggExIAaUAANiQDAgBgQDYkAwIAYEA2JAMCAGBANiQDAgBgQDYkAwIAYEA2JAMCAGBANiQDAgBgQDYkAwIAbEgGBADAgGxIBgQAwIBsSAYEAMCAbEgGBADAgGxIBgQAwIBsSAYEAMCAbEgGBADAgGxIBgQAwIBsSAGBAMiAHBgBgQDIgBwYAYEAyIAcGAGBAMiAHBgBgQDIgBwYAYEAyIAcGAGBAMiAHBgBgQDIgBMSAYEAOCATEgGBADggExIBgQA4IBMSAYEAOCATEgGBADggExIBgQA4IBMSAYEAOCATEgGBADggExIAYEA2JAMCAGBANiQDAgBgQDYkAwIAYEA2JAMCAGBANiQDAgBgQDYkAwIAYEA2JAMCAGBANiQDAgBsSAYEAMCAbEgGBADAgGxIBgQAwIBsSAYEAMCAbEgGBADAgGxIBgQAwI7wGh6QL7DO5Z2Y/WrwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyNS0wNy0xOFQwMzoyMjoyMCswMDowMFroTDoAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjUtMDctMThUMDM6MjI6MjArMDA6MDArtfSGAAAAAElFTkSuQmCC",Fd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABQAAAARWBAMAAACWagKaAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAIVBMVEWBTxijZR/2ly/zYDjwMz8AAABTSAz92iXzazfvM0D///++ST7kAAAABXRSTlO0p45oVaoe+4cAAAABYktHRApo0PRWAAAAB3RJTUUH6AYMEi4s1ShrhgAADZ9JREFUeNrt0gEVABAQBbDLIAJVVJBBBKpoq8d/W4bVSrRPoPsSlYACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCihgYsBIrQcaM9EHqV8m/uQ9vp0AAAAldEVYdGRhdGU6Y3JlYXRlADIwMjQtMDYtMTJUMTg6NDY6NDMrMDA6MDACjjV4AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDI0LTA2LTEyVDE4OjQ2OjQzKzAwOjAwc9ONxAAAAABJRU5ErkJggg==",_d="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1000'%20height='600'%20viewBox='0%200%205%203'%3e%3cdesc%3eFlag%20of%20Germany%3c/desc%3e%3crect%20id='black_stripe'%20width='5'%20height='3'%20y='0'%20x='0'%20fill='%23000'/%3e%3crect%20id='red_stripe'%20width='5'%20height='2'%20y='1'%20x='0'%20fill='%23D00'/%3e%3crect%20id='gold_stripe'%20width='5'%20height='1'%20y='2'%20x='0'%20fill='%23FFCE00'/%3e%3c/svg%3e",uS="/assets/Kenteken-vRjtByvW.ttf",$g=[{name:"Aprilia",width:10,height:6.5},{name:"AUDI E-TRON",width:15,height:3.3},{name:"AUDI HORCH",width:22.5,height:3.6},{name:"AUDI Q5 GROOT",width:21.1,height:4.7},{name:"AUDI R8",width:12.7,height:2.7},{name:"Audi R8 GROOT",width:14.5,height:3.7},{name:"AUDI RS-GT",width:11,height:2.6},{name:"AUDI RS6",width:13.1,height:2.9},{name:"Audi RSQ8",width:13,height:2.9},{name:"Bentley bentayga",width:16.6,height:3},{name:"BENTLEY BENTAYGA",width:16.3,height:3},{name:"Bentley Continental",width:16.8,height:4.2},{name:"Bentley EXP12",width:14.4,height:3.5},{name:"BMW I4 1 Persoons",width:14.7,height:2},{name:"BMW M5",width:17.2,height:3.5},{name:"BMW M5 Loopauto",width:7.8,height:1.6},{name:"BMW MOTOR",width:13.5,height:6},{name:"BMW POLITIE MOTOR",width:10,height:2.8},{name:"BMW X6 2-persoons",width:19.3,height:4.5},{name:"Brandweer/Politie Loopauto",width:8,height:3},{name:"Brandweerauto",width:10,height:2.5},{name:"BROTHERS JEEP",width:16,height:2.8},{name:"BUGATTI DIVO",width:16.7,height:3.8},{name:"BUGGY ALPHA 24V",width:16,height:4.7},{name:"BUGGY POLTIE/ZWART",width:13.9,height:9},{name:"Camo Buggy Groot",width:14.2,height:3.6},{name:"CAN-AM Maverick",width:14,height:2.5},{name:"CHINO tractor",width:11.5,height:2.5},{name:"DODGE POLITIE",width:11,height:4.5},{name:"Driftkart",width:8,height:2.9},{name:"Ducati crossmotor",width:14.3,height:5.9},{name:"FIAT 500C loopauto",width:9,height:2.5},{name:"FORD LOOPAUTO",width:10,height:2.6},{name:"g",width:14.5,height:3.5},{name:"G63 1-pers XL 24V",width:15.1,height:3.5},{name:"G63 2-persoon CHROOM",width:16.8,height:3.6},{name:"G63 XXL 2-p",width:20.8,height:4.2},{name:"GLADIATOR jeep",width:12.3,height:3.7},{name:"Heftruck",width:17.5,height:3.5},{name:"High SPEED BUGGY",width:22,height:5.2},{name:"Jaguar SVR",width:14.2,height:3},{name:"John Deere Ground Loader",width:12,height:3},{name:"Kleine G650 Nieuw mini",width:13.8,height:3},{name:"KLEINE Maybach G650",width:15.1,height:2.6},{name:"LAMBO Aventador 2-persoons",width:15.2,height:3.9},{name:"Lamborghin Aventador",width:12.5,height:3},{name:"LAMBORGHINI GT",width:8,height:1.8},{name:"LAMBORGHINI HURACAN",width:12,height:3},{name:"Lamborghini Huracan 2-persoons",width:15.2,height:3.1},{name:"Lamborghini Sian",width:9.8,height:2.7},{name:"LAMBORGHINI STO",width:14.5,height:2.6},{name:"Lamborghini SV",width:12.5,height:3},{name:"Lamborghini Urus",width:20.2,height:3.2,rearWidth:15.4,rearHeight:3.6},{name:"Lamborghini Urus KLEIN",width:9.4,height:2.6,rearWidth:12,rearHeight:2.9},{name:"LAMBORGHINI VENENO",width:15,height:2.5},{name:"LOOPAUTO C63",width:6.6,height:1.6},{name:"MACLAREN",width:15.1,height:3.9},{name:"Maseratti",width:13.7,height:2.6},{name:"MCLAREN QUAD",width:10,height:2.5},{name:"Mercedes 300S",width:14,height:4.4},{name:"Mercedes 300s loopauto",width:11,height:2.8},{name:"Mercedes 6x6 klein",width:12,height:2.2},{name:"Mercedes Actros",width:10.8,height:2.3,rearWidth:20,rearHeight:4},{name:"Mercedes C63s",width:13.8,height:2.9},{name:"Mercedes G63 24V 1 Persoons",width:15.3,height:3.5},{name:"Mercedes G63 6X6",width:15.8,height:3.8},{name:"Mercedes G63 6x6 2-Persoons",width:18.7,height:3.8},{name:"Mercedes G63 KLEIN",width:13.3,height:3.2},{name:"Mercedes G650 Maybach BIG",width:23.2,height:4.3},{name:"MERCEDES GLC 2-zits",width:19,height:4.2},{name:"Mercedes GLC63",width:15.6,height:3.2},{name:"Mercedes GTR",width:13.1,height:2.7,rearWidth:13.3,rearHeight:2.9},{name:"Mercedes Loopauto",width:7.35,height:1.65,rearWidth:9.6,rearHeight:1.5},{name:"Mercedes M-CLASS",width:15.6,height:3.2},{name:"Mercedes S klasse",width:16,height:3.35},{name:"Mercedes Unimog",width:15,height:3.5},{name:"Miniquad 6V",width:10,height:3},{name:"Monster truck",width:15,height:3},{name:"NEW HOLLAND TRACTOR",width:16.5,height:4.5,rearWidth:9.5,rearHeight:4.5},{name:"Politie Dodge Charger SRT",width:9.9,height:4.2},{name:"QUAD 1000W",width:8.2,height:2.8},{name:"QUAD 800W ACHTER",width:8.5,height:3.2},{name:"RANGE ROVER 2-PERSOONS",width:17.8,height:5},{name:"Range Rover EVOQUE",width:14.1,height:3.1},{name:"Range Rover Velar",width:15.3,height:3.4},{name:"SIAN 2-P",width:13.4,height:3.4},{name:"Super truck",width:13.7,height:3.5},{name:"TOYOTA HILUX",width:14.8,height:4.1},{name:"Tractor Loopauto",width:9.5,height:2},{name:"TRIKE",width:12,height:7},{name:"UTV",width:14.5,height:3,rearWidth:10,rearHeight:3},{name:"UTV BUGGY",width:13.8,height:3.5,rearWidth:21.5,rearHeight:3.5},{name:"Vespa",width:10.5,height:3},{name:"VOLVO S90",width:17,height:3.9},{name:"WILLY 1-PERSOON",width:15,height:3.5},{name:"Willy's jeep",width:20,height:4}],zd=e=>Array.isArray(e)&&e.length?e:$g,bn=async()=>{try{const e=await fetch("/api/cars");if(!e.ok)throw new Error("Failed to load cars");const t=await e.json();return zd(t)}catch{return zd($g)}},cS=async e=>{const t=await fetch("/api/cars",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw new Error("Failed to add car");return t.json()},fS=async(e,t)=>{const n=await fetch(`/api/cars/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok)throw new Error("Failed to update car");return n.json()},dS=async e=>{const t=await fetch(`/api/cars/${e}`,{method:"DELETE"});if(!t.ok)throw new Error("Failed to delete car");return t.json()},hS=async e=>{const t=await fetch("/api/auth/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:e})});return t.ok?(await t.json()).authenticated:!1},Yg=96;function pS(e,t=Yg){return e/25.4*t}function it(e,t=Yg){return pS(e*10,t)}function mS(){const[e,t]=C.useState([]),[n,r]=C.useState([]),[i,o]=C.useState([]),[s,a]=C.useState(!1),l=C.useRef([]),u=C.useRef([]),c=C.useRef([]),f=C.useRef([]),d=yr(),g=[{code:"NL",label:"Nederland",flag:Od,alt:"Nederlandse vlag"},{code:"BE",label:"België",flag:Fd,alt:"Belgische vlag"},{code:"DE",label:"Duitsland",flag:_d,alt:"Duitse vlag"}];C.useEffect(()=>{bn().then(S=>{var x;const K=[...S].sort((B,L)=>B.name.localeCompare(L.name));t(K),r([{carName:((x=K[0])==null?void 0:x.name)||"",front:"AB-123-CD",rear:"AB-123-CD",country:"NL"}]),o([{front:"",rear:""}])})},[]),C.useEffect(()=>{document.fonts.load("bold 50px KentekenFont").then(()=>a(!0))},[]);const v=document.createElement("canvas").getContext("2d"),I=(S,K,x)=>(v.font=`${x} ${K}px KentekenFont, monospace`,v.measureText(S).width),p=(S,K,x,B)=>{let L=K;const z=S.replace(/ /g," ");for(;I(z,L,B)>x&&L>1;)L-=1;return L},h=async(S,K=null)=>{if(!S)return"";if(await document.fonts.ready,K)try{await document.fonts.load(`${K.fontWeight} ${K.fontSize}px KentekenFont`)}catch{}const x=S.cloneNode(!0),B=x.querySelectorAll("image");await Promise.all(Array.from(B).map(async D=>{const R=D.getAttribute("href"),V=await(await fetch(R)).blob(),Fe=await new Promise(de=>{const _=new FileReader;_.onloadend=()=>de(_.result),_.readAsDataURL(V)});D.setAttribute("href",Fe)}));const z=await(await fetch(uS)).blob(),b=await new Promise(D=>{const R=new FileReader;R.onloadend=()=>D(R.result),R.readAsDataURL(z)}),le=document.createElement("style");le.textContent=`@font-face { font-family: 'KentekenFont'; src: url(${b}) format('truetype'); }`,x.insertBefore(le,x.firstChild);const Ke=new XMLSerializer().serializeToString(x),M=`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(Ke)))}`;return await new Promise(D=>{const R=new Image;R.onload=()=>{const F=document.createElement("canvas");F.width=R.width,F.height=R.height;const V=F.getContext("2d");if(V.drawImage(R,0,0),K){const Fe=K.renderWidth||R.width,de=K.renderHeight||R.height,_=Fe/K.baseWidth,G=de/K.baseHeight,$=Math.min(_,G),sn=(Fe-K.baseWidth*$)/2,$e=(de-K.baseHeight*$)/2,an=K.fontSize*$,Ye=K.x*$+sn,Bt=K.y*$+$e;V.font=`${K.fontWeight} ${an}px KentekenFont, monospace`,V.fillStyle=K.textColor,V.textAlign=K.textAnchor==="middle"?"center":"left",V.textBaseline="middle",K.dropShadow.stdDeviation>0&&(V.shadowOffsetX=K.dropShadow.dx*$,V.shadowOffsetY=K.dropShadow.dy*$,V.shadowBlur=K.dropShadow.stdDeviation*$,V.shadowColor=K.shadowColor),V.fillText(K.text,Ye,Bt)}D(F.toDataURL("image/png"))},R.src=M})},m=async()=>{const S=[],K=[],x=[];for(let _=0;_<n.length;_++){const G=e.find(Bt=>Bt.name===n[_].carName)||e[0],$=G.rearWidth&&G.rearHeight,sn=it(G.width),$e=it(G.height),an=$?it(G.rearWidth):sn,Ye=$?it(G.rearHeight):$e;S.push(await h(l.current[_],c.current[_])),K.push(await h(u.current[_],f.current[_])),x.push({frontWidth:sn,frontHeight:$e,rearWidth:an,rearHeight:Ye})}const B=it(21),L=it(29.7),z=it(1.5),b=15,le=Math.max(...x.map(_=>Math.max(_.frontWidth,_.rearWidth))),Ke=x.reduce((_,G)=>_+G.frontHeight+G.rearHeight,0),W=x.length*2,M=Math.min(1,(B-z)/le,(L-b*(W-1))/Ke),D=document.createElement("canvas");D.width=B,D.height=L;const R=D.getContext("2d"),F=_=>new Promise(G=>{const $=new Image;$.onload=()=>G($),$.src=_});let V=0;for(let _=0;_<n.length;_++){const G=await F(S[_]);R.drawImage(G,z,V,G.width*M,G.height*M),V+=x[_].frontHeight*M+b;const $=await F(K[_]);R.drawImage($,z,V,$.width*M,$.height*M),V+=x[_].rearHeight*M,_<n.length-1&&(V+=b)}const Fe=D.toDataURL("image/png"),de=document.createElement("a");de.download="kentekens.png",de.href=Fe,de.click()},w=async()=>{const S=[];for(let K=0;K<n.length;K++){const x=e.find(M=>M.name===n[K].carName)||e[0],B=x.rearWidth&&x.rearHeight,L=x.width*10,z=x.height*10,b=B?x.rearWidth*10:L,le=B?x.rearHeight*10:z,Ke=await h(l.current[K],c.current[K]),W=await h(u.current[K],f.current[K]);S.push({src:Ke,width:L,height:z}),S.push({src:W,width:b,height:le})}d("/print",{state:{items:S}})};C.useEffect(()=>{if(!s)return;(async()=>{const K=[];for(let x=0;x<n.length;x++){const B=l.current[x]?await h(l.current[x],c.current[x]):"",L=u.current[x]?await h(u.current[x],f.current[x]):"";K.push({front:B,rear:L})}o(K)})()},[n,e,s]);const E=()=>{r(S=>{var K;return[...S,{carName:((K=e[0])==null?void 0:K.name)||"",front:"AB-123-CD",rear:"AB-123-CD",country:"NL"}]}),o(S=>[...S,{front:"",rear:""}])},T=(S,K,x)=>{r(B=>{const L=[...B];return L[S]={...L[S],[K]:x},L})},k=S=>{r(K=>K.filter((x,B)=>B!==S)),o(K=>K.filter((x,B)=>B!==S)),l.current.splice(S,1),u.current.splice(S,1)};return A.jsxs(ms,{children:[A.jsx(Zu,{count:e.length,onRestart:()=>window.location.reload(),onHome:()=>d("/")}),A.jsx("div",{className:"container dashboard",children:A.jsxs("div",{className:"card",children:[n.map((S,K)=>{const x=e.find(re=>re.name===S.carName)||e[0],B=x.rearWidth&&x.rearHeight,L=it(x.width),z=it(x.height),b=B?it(x.rearWidth):L,le=B?it(x.rearHeight):z,Ke=S.country,W={NL:{baseWidth:624,baseHeight:139,plateImage:sS,flag:Od,euWidthRatio:.096,fontWeight:"bold",textColor:"#000",shadowColor:"#ffeb3b",dropShadow:{dx:3,dy:3,stdDeviation:1},hasBottomBar:!0,allowsCentering:!0},BE:{baseWidth:1848,baseHeight:382,plateImage:aS,flag:Fd,euWidthRatio:.098,fontWeight:"normal",textColor:"#a51f1f",shadowColor:"#a51f1f",dropShadow:{dx:.5,dy:.5,stdDeviation:.2},hasBottomBar:!1,allowsCentering:!0},DE:{baseWidth:1668,baseHeight:360,plateImage:lS,flag:_d,euWidthRatio:.11,fontWeight:"bold",textColor:"#000",shadowColor:"transparent",dropShadow:{dx:0,dy:0,stdDeviation:0},hasBottomBar:!1,allowsCentering:!0}},M=W[Ke]||W.NL,{baseWidth:D,baseHeight:R,plateImage:F,euWidthRatio:V,fontWeight:Fe,textColor:de,shadowColor:_,dropShadow:G,hasBottomBar:$,allowsCentering:sn}=M,$e=D*V,an=R*.56,Ye=$?R*.1:0,Bt=Ye*.9,gs=Bt*(1481/240),qu=(D-gs)/2,ec=R-Ye+(Ye-Bt)/2,ys=D-$e-20,Mn=Fe,tc=($?(R-Ye)/2:R/2)+an*.13,nc=ys,rc=p(S.front,an,ys,Mn),ic=p(S.rear,an,ys,Mn),Qg=I(S.front.replace(/ /g," "),rc,Mn),Xg=I(S.rear.replace(/ /g," "),ic,Mn),oc=sn&&Qg<=nc,sc=sn&&Xg<=nc,bg=oc?"middle":"start",Jg=sc?"middle":"start",Zg=oc?$e+(D-$e)/2:$e+10,qg=sc?$e+(D-$e)/2:$e+10,ac=$?.1:0;return c.current[K]={text:S.front.replace(/ /g," "),x:Zg,y:tc,textAnchor:bg,fontSize:rc,fontWeight:Mn,textColor:de,shadowColor:_,dropShadow:G,baseWidth:D,baseHeight:R,renderWidth:L,renderHeight:z,bottomBarRatio:ac},f.current[K]={text:S.rear.replace(/ /g," "),x:qg,y:tc,textAnchor:Jg,fontSize:ic,fontWeight:Mn,textColor:de,shadowColor:_,dropShadow:G,baseWidth:D,baseHeight:R,renderWidth:b,renderHeight:le,bottomBarRatio:ac},A.jsxs("div",{className:"plate-block",children:[A.jsxs("div",{className:"flex-1",children:[A.jsx("div",{className:"flag-selector mb",role:"group","aria-label":"Kies land voor kenteken",children:g.map(re=>A.jsxs("button",{type:"button",onClick:()=>T(K,"country",re.code),className:`flag-option ${Ke===re.code?"selected":""}`,children:[A.jsx("img",{src:re.flag,alt:re.alt}),A.jsx("span",{children:re.label})]},re.code))}),A.jsxs("div",{className:"form-row mb",children:[A.jsx("label",{htmlFor:`car-${K}`,children:"Kinderauto:"}),A.jsx("select",{id:`car-${K}`,value:S.carName,onChange:re=>T(K,"carName",re.target.value),children:e.map(re=>A.jsx("option",{value:re.name,children:re.name},re.name))})]}),A.jsxs("div",{className:"form-row mb",children:[A.jsx("label",{htmlFor:`front-${K}`,children:`Kenteken voor ${K+1}:`}),A.jsx("input",{id:`front-${K}`,value:S.front,onChange:re=>T(K,"front",re.target.value.toUpperCase()),"aria-label":`Plate text front ${K+1}`,className:"font-[KentekenFont] uppercase"})]}),A.jsxs("div",{className:"form-row mb",children:[A.jsx("label",{htmlFor:`rear-${K}`,children:`Kenteken achter ${K+1}:`}),A.jsx("input",{id:`rear-${K}`,value:S.rear,onChange:re=>T(K,"rear",re.target.value.toUpperCase()),"aria-label":`Plate text rear ${K+1}`,className:"font-[KentekenFont] uppercase"})]}),n.length>1&&A.jsx(Le,{type:"button",onClick:()=>k(K),variant:"ghost",className:"mt",children:"Verwijder kenteken"})]}),A.jsxs("div",{className:"flex-1 flex flex-col items-center",children:[A.jsxs("svg",{ref:re=>l.current[K]=re,width:L,height:z,className:"hidden",viewBox:`0 0 ${D} ${R}`,children:[A.jsx("image",{href:F,width:D,height:R}),Ke==="NL"&&A.jsxs(A.Fragment,{children:[A.jsx("rect",{x:"0",y:R-Ye,width:D,height:Ye,fill:"#000"}),A.jsx("image",{href:wl,x:qu,y:ec,width:gs,height:Bt})]})]}),i[K]&&i[K].front&&A.jsx(ut.img,{src:i[K].front,alt:`Kenteken voor ${K+1}`,className:"plate-preview",initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},transition:{duration:.25}}),A.jsxs("svg",{ref:re=>u.current[K]=re,width:b,height:le,className:"hidden",viewBox:`0 0 ${D} ${R}`,children:[A.jsx("image",{href:F,width:D,height:R}),Ke==="NL"&&A.jsxs(A.Fragment,{children:[A.jsx("rect",{x:"0",y:R-Ye,width:D,height:Ye,fill:"#000"}),A.jsx("image",{href:wl,x:qu,y:ec,width:gs,height:Bt})]})]}),i[K]&&i[K].rear&&A.jsx(ut.img,{src:i[K].rear,alt:`Kenteken achter ${K+1}`,className:"plate-preview",initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},transition:{duration:.25}})]})]},K)}),A.jsx(Le,{type:"button",onClick:E,variant:"primary",className:"mt",children:"Nog een kenteken"}),A.jsxs("div",{className:"button-row",children:[A.jsx(Le,{type:"button",onClick:m,variant:"ghost",children:"Download kentekens"}),A.jsx(Le,{type:"button",onClick:w,variant:"ghost",children:"Print kentekens"})]})]})})]})}function qi({title:e,subtitle:t,children:n}){return A.jsxs("div",{className:"card space-y-2",children:[e&&A.jsx("h2",{className:"text-lg font-semibold",children:e}),t&&A.jsx("p",{className:"subtle",children:t}),n]})}function gS(){const e=yr(),[t,n]=C.useState([]),[r,i]=C.useState({name:"",width:"",height:"",hasRear:!1,rearWidth:"",rearHeight:""}),[o,s]=C.useState(""),[a,l]=C.useState({name:"",width:"",height:"",hasRear:!1,rearWidth:"",rearHeight:""}),[u,c]=C.useState(""),[f,d]=C.useState(""),[g,y]=C.useState(!1),[v,I]=C.useState(""),[p,h]=C.useState(!1),m=x=>{var L,z;const B=[...x].sort((b,le)=>b.name.localeCompare(le.name));n(B),s(((L=B[0])==null?void 0:L.name)||""),c(((z=B[0])==null?void 0:z.name)||"")};C.useEffect(()=>{bn().then(x=>{m(x)})},[]),C.useEffect(()=>{const x=t.find(B=>B.name===o);x&&l({name:x.name,width:String(x.width),height:String(x.height),hasRear:!!(x.rearWidth&&x.rearHeight),rearWidth:x.rearWidth?String(x.rearWidth):"",rearHeight:x.rearHeight?String(x.rearHeight):""})},[o,t]),C.useEffect(()=>{c(x=>{var B;return t.find(L=>L.name===x)?x:((B=t[0])==null?void 0:B.name)||""})},[t]),C.useEffect(()=>{if(p){const x=setTimeout(()=>h(!1),2e3);return()=>clearTimeout(x)}},[p]);const w=x=>{const{name:B,value:L,type:z,checked:b}=x.target;i(le=>({...le,[B]:z==="checkbox"?b:L}))},E=x=>{const{name:B,value:L,type:z,checked:b}=x.target;l(le=>({...le,[B]:z==="checkbox"?b:L}))},T=async x=>{x.preventDefault();const B={name:r.name,width:parseFloat(r.width),height:parseFloat(r.height)};r.hasRear&&(B.rearWidth=parseFloat(r.rearWidth),B.rearHeight=parseFloat(r.rearHeight)),await cS(B);const L=await bn();m(L),i({name:"",width:"",height:"",hasRear:!1,rearWidth:"",rearHeight:""}),h(!0)},k=async x=>{x.preventDefault();const B=t.find(b=>b.name===o);if(!B)return;const L={name:a.name,width:parseFloat(a.width),height:parseFloat(a.height)};a.hasRear&&(L.rearWidth=parseFloat(a.rearWidth),L.rearHeight=parseFloat(a.rearHeight)),await fS(B.id,L);const z=await bn();m(z),s(L.name),h(!0)},S=async x=>{x.preventDefault();const B=t.find(z=>z.name===u);if(!B)return;await dS(B.id);const L=await bn();m(L),h(!0)},K=async x=>{x.preventDefault(),await hS(f)?(y(!0),d(""),I("")):I("Onjuist wachtwoord")};return A.jsxs(ms,{children:[A.jsx(Zu,{count:t.length,title:"Kinderauto's beheren",onHome:()=>e("/")}),g?A.jsx("div",{className:"container mt-6",children:A.jsxs("aside",{className:"side-cards",children:[A.jsx(qi,{title:"Kinderauto toevoegen",children:A.jsxs("form",{onSubmit:T,className:"mb-lg",children:[A.jsxs("div",{className:"form-row",children:[A.jsx("label",{htmlFor:"addName",children:"Naam:"}),A.jsx("input",{id:"addName",name:"name",value:r.name,onChange:w,required:!0})]}),A.jsxs("div",{className:"form-row",children:[A.jsx("label",{htmlFor:"addWidth",children:"Breedte (cm):"}),A.jsx("input",{id:"addWidth",type:"number",step:"0.1",min:"0",name:"width",value:r.width,onChange:w,required:!0})]}),A.jsxs("div",{className:"form-row",children:[A.jsx("label",{htmlFor:"addHeight",children:"Hoogte (cm):"}),A.jsx("input",{id:"addHeight",type:"number",step:"0.1",min:"0",name:"height",value:r.height,onChange:w,required:!0})]}),A.jsx("div",{className:"form-row checkbox",children:A.jsxs("label",{children:[A.jsx("input",{type:"checkbox",name:"hasRear",checked:r.hasRear,onChange:w}),"Achter heeft andere maat"]})}),r.hasRear&&A.jsxs(A.Fragment,{children:[A.jsxs("div",{className:"form-row",children:[A.jsx("label",{htmlFor:"addRearWidth",children:"Breedte achter (cm):"}),A.jsx("input",{id:"addRearWidth",type:"number",step:"0.1",min:"0",name:"rearWidth",value:r.rearWidth,onChange:w,required:!0})]}),A.jsxs("div",{className:"form-row",children:[A.jsx("label",{htmlFor:"addRearHeight",children:"Hoogte achter (cm):"}),A.jsx("input",{id:"addRearHeight",type:"number",step:"0.1",min:"0",name:"rearHeight",value:r.rearHeight,onChange:w,required:!0})]})]}),A.jsx(Le,{type:"submit",variant:"primary",className:"mt",children:"Opslaan"})]})}),A.jsx(qi,{title:"Kinderauto bewerken",children:A.jsxs("form",{onSubmit:k,className:"mb-lg",children:[A.jsxs("div",{className:"form-row",children:[A.jsx("label",{htmlFor:"editSelect",children:"Selecteer:"}),A.jsx("select",{id:"editSelect",value:o,onChange:x=>s(x.target.value),children:t.map(x=>A.jsx("option",{value:x.name,children:x.name},x.name))})]}),A.jsxs("div",{className:"form-row",children:[A.jsx("label",{htmlFor:"editName",children:"Naam:"}),A.jsx("input",{id:"editName",name:"name",value:a.name,onChange:E,required:!0})]}),A.jsxs("div",{className:"form-row",children:[A.jsx("label",{htmlFor:"editWidth",children:"Breedte (cm):"}),A.jsx("input",{id:"editWidth",type:"number",step:"0.1",min:"0",name:"width",value:a.width,onChange:E,required:!0})]}),A.jsxs("div",{className:"form-row",children:[A.jsx("label",{htmlFor:"editHeight",children:"Hoogte (cm):"}),A.jsx("input",{id:"editHeight",type:"number",step:"0.1",min:"0",name:"height",value:a.height,onChange:E,required:!0})]}),A.jsx("div",{className:"form-row checkbox",children:A.jsxs("label",{children:[A.jsx("input",{type:"checkbox",name:"hasRear",checked:a.hasRear,onChange:E}),"Achter heeft andere maat"]})}),a.hasRear&&A.jsxs(A.Fragment,{children:[A.jsxs("div",{className:"form-row",children:[A.jsx("label",{htmlFor:"editRearWidth",children:"Breedte achter (cm):"}),A.jsx("input",{id:"editRearWidth",type:"number",step:"0.1",min:"0",name:"rearWidth",value:a.rearWidth,onChange:E,required:!0})]}),A.jsxs("div",{className:"form-row",children:[A.jsx("label",{htmlFor:"editRearHeight",children:"Hoogte achter (cm):"}),A.jsx("input",{id:"editRearHeight",type:"number",step:"0.1",min:"0",name:"rearHeight",value:a.rearHeight,onChange:E,required:!0})]})]}),A.jsx(Le,{type:"submit",variant:"primary",className:"mt",children:"Bijwerken"})]})}),A.jsx(qi,{title:"Kinderauto verwijderen",children:A.jsxs("form",{onSubmit:S,className:"mb-lg",children:[A.jsxs("div",{className:"form-row",children:[A.jsx("label",{htmlFor:"deleteSelect",children:"Selecteer:"}),A.jsx("select",{id:"deleteSelect",value:u,onChange:x=>c(x.target.value),children:t.map(x=>A.jsx("option",{value:x.name,children:x.name},x.name))})]}),A.jsx(Le,{type:"submit",variant:"ghost",className:"mt",children:"Verwijder"})]})})]})}):A.jsx("div",{className:"container mt-6",children:A.jsx(qi,{title:"Toegang vereist",children:A.jsxs("form",{onSubmit:K,className:"mb-lg",children:[A.jsxs("div",{className:"form-row",children:[A.jsx("label",{htmlFor:"managerPassword",children:"Wachtwoord:"}),A.jsx("input",{id:"managerPassword",type:"password",value:f,onChange:x=>d(x.target.value),required:!0})]}),v&&A.jsx("p",{className:"text-sm text-red-500",children:v}),A.jsx(Le,{type:"submit",variant:"primary",className:"mt",children:"Inloggen"})]})})}),p&&A.jsx("div",{className:"toast",children:"Opgeslagen"})]})}const yS="/assets/CarKiddologo-BJqJBuzL.png";function AS(){const e=yr(),[t,n]=C.useState(0),r=ps();return C.useEffect(()=>{bn().then(i=>n(i.length))},[]),A.jsxs(ms,{children:[A.jsx("div",{className:"hero-bg"}),A.jsx(Zu,{count:t}),A.jsx("div",{className:"start-container",children:A.jsxs("div",{className:"start-card",children:[A.jsx(ut.img,{src:yS,alt:"CarKiddo",className:"w-20 h-20 sm:w-24 sm:h-24 mx-auto rounded-2xl",initial:r?!1:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{duration:.4,type:"spring",stiffness:200}}),A.jsx(ut.h1,{className:"text-2xl sm:text-3xl font-bold tracking-tight",initial:r?!1:{y:10,opacity:0},animate:{y:0,opacity:1},transition:{delay:.1,duration:.3},children:"Kenteken Generator"}),A.jsxs(ut.p,{className:"subtle text-sm sm:text-base -mt-1",initial:r?!1:{y:10,opacity:0},animate:{y:0,opacity:1},transition:{delay:.2,duration:.3},children:["Genereer kentekens voor ",t," kinderauto's"]}),A.jsxs(ut.div,{className:"flex flex-col gap-3 mt-2",initial:r?!1:{y:10,opacity:0},animate:{y:0,opacity:1},transition:{delay:.3,duration:.3},children:[A.jsx(Le,{onClick:()=>e("/generate"),variant:"primary",children:"Kentekens genereren"}),A.jsx(Le,{onClick:()=>e("/manage"),variant:"ghost",children:"Kinderauto's beheren"})]})]})})]})}function vS(){const{state:e}=Ti(),t=(e==null?void 0:e.items)||[],n=yr(),r=t.reduce((o,s)=>Math.max(o,s.width),0)||100,i=()=>{const o=document.title;document.title=" ",window.print(),document.title=o};return A.jsx(ms,{children:A.jsxs("div",{className:"container py-4",children:[A.jsxs("div",{className:"no-print mb-4 flex gap-2",children:[A.jsx(Le,{variant:"ghost",onClick:()=>n("/generate"),children:"Terug"}),A.jsx(Le,{variant:"primary",onClick:i,children:"Print"})]}),A.jsx("div",{className:"a4-preview",children:A.jsx("div",{className:"print-grid",style:{"--plate-width":`${r}mm`},children:t.map((o,s)=>A.jsx("img",{src:o.src,alt:`plate-${s}`,className:"plate",style:{width:`${o.width}mm`,height:`${o.height}mm`}},s))})})]})})}function CS(){const e=Ti();return A.jsx(S1,{mode:"wait",children:A.jsxs(v0,{location:e,children:[A.jsx(Rn,{path:"/",element:A.jsx(AS,{})}),A.jsx(Rn,{path:"/generate",element:A.jsx(mS,{})}),A.jsx(Rn,{path:"/manage",element:A.jsx(gS,{})}),A.jsx(Rn,{path:"/print",element:A.jsx(vS,{})}),A.jsx(Rn,{path:"*",element:A.jsx(y0,{to:"/",replace:!0})})]},e.pathname)})}function wS(){return A.jsx(x0,{children:A.jsx(CS,{})})}sa.createRoot(document.getElementById("root")).render(A.jsx(Zd.StrictMode,{children:A.jsx(wS,{})}));