PageSourceSearch

https://fledge-and-thread-little-gift-guide.lovable.app/assets/index-QtT8wBy2.js

js fledge-and-thread-little-gift-guide.lovable.app collected 2026-10-03 03:31:24 UTC 560,826 bytes, 234 lines download raw bytes

vendor: 8,210 bytes, lines 1-9
1var Vh=e=>{throw TypeError(e)};var Jl=(e,t,n)=>t.has(e)||Vh("Cannot "+n);var A=(e,t,n)=>(Jl(e,t,"read from private field"),n?n.call(e):t.get(e)),ee=(e,t,n)=>t.has(e)?Vh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),H=(e,t,n,r)=>(Jl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ie=(e,t,n)=>(Jl(e,t,"access private method"),n);var Os=(e,t,n,r)=>({set _(o){H(e,t,o,n)},get _(){return A(e,t,r)}});function xx(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function sy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ay={exports:{}},pl={},ly={exports:{}},X={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var gs=Symbol.for("react.element"),Sx=Symbol.for("react.portal"),kx=Symbol.for("react.fragment"),Cx=Symbol.for("react.strict_mode"),Ex=Symbol.for("react.profiler"),Px=Symbol.for("react.provider"),Tx=Symbol.for("react.context"),Rx=Symbol.for("react.forward_ref"),Ax=Symbol.for("react.suspense"),Dx=Symbol.for("react.memo"),Nx=Symbol.for("react.lazy"),Uh=Symbol.iterator;function Mx(e){return e===null||typeof e!="object"?null:(e=Uh&&e[Uh]||e["@@iterator"],typeof e=="function"?e:null)}var cy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},uy=Object.assign,dy={};function Qo(e,t,n){this.props=e,this.context=t,this.refs=dy,this.updater=n||cy}Qo.prototype.isReactComponent={};Qo.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")};Qo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function fy(){}fy.prototype=Qo.prototype;function jd(e,t,n){this.props=e,this.context=t,this.refs=dy,this.updater=n||cy}var Ld=jd.prototype=new fy;Ld.constructor=jd;uy(Ld,Qo.prototype);Ld.isPureReactComponent=!0;var $h=Array.isArray,hy=Object.prototype.hasOwnProperty,_d={current:null},py={key:!0,ref:!0,__self:!0,__source:!0};function my(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)hy.call(t,r)&&!py.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:gs,type:e,key:i,ref:s,props:o,_owner:_d.current}}function jx(e,t){return{$$typeof:gs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Od(e){return typeof e=="object"&&e!==null&&e.$$typeof===gs}function Lx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var zh=/\/+/g;function ec(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Lx(""+e.key):t.toString(36)}function ua(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case gs:case Sx:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+ec(s,0):r,$h(o)?(n="",e!=null&&(n=e.replace(zh,"$&/")+"/"),ua(o,t,n,"",function(c){return c})):o!=null&&(Od(o)&&(o=jx(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(zh,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",$h(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+ec(i,a);s+=ua(i,t,n,l,o)}else if(l=Mx(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+ec(i,a++),s+=ua(i,t,n,l,o);else if(i==="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 Is(e,t,n){if(e==null)return e;var r=[],o=0;return ua(e,r,"","",function(i){return t.call(n,i,o++)}),r}function _x(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 qe={current:null},da={transition:null},Ox={ReactCurrentDispatcher:qe,ReactCurrentBatchConfig:da,ReactCurrentOwner:_d};function gy(){throw Error("act(...) is not supported in production builds of React.")}X.Children={map:Is,forEach:function(e,t,n){Is(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Is(e,function(){t++}),t},toArray:function(e){return Is(e,function(t){return t})||[]},only:function(e){if(!Od(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};X.Component=Qo;X.Fragment=kx;X.Profiler=Ex;X.PureComponent=jd;X.StrictMode=Cx;X.Suspense=Ax;X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ox;X.act=gy;X.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=uy({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=_d.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)hy.call(t,l)&&!py.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 c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:gs,type:e.type,key:o,ref:i,props:r,_owner:s}};X.createContext=function(e){return e={$$typeof:Tx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Px,_context:e},e.Consumer=e};X.createElement=my;X.createFactory=function(e){var t=my.bind(null,e);return t.type=e,t};X.createRef=function(){return{current:null}};X.forwardRef=function(e){return{$$typeof:Rx,render:e}};X.isValidElement=Od;X.lazy=function(e){return{$$typeof:Nx,_payload:{_status:-1,_result:e},_init:_x}};X.memo=function(e,t){return{$$typeof:Dx,type:e,compare:t===void 0?null:t}};X.startTransition=function(e){var t=da.transition;da.transition={};try{e()}finally{da.transition=t}};X.unstable_act=gy;X.useCallback=function(e,t){return qe.current.useCallback(e,t)};X.useContext=function(e){return qe.current.useContext(e)};X.useDebugValue=function(){};X.useDeferredValue=function(e){return qe.current.useDeferredValue(e)};X.useEffect=function(e,t){return qe.current.useEffect(e,t)};X.useId=function(){return qe.current.useId()};X.useImperativeHandle=function(e,t,n){return qe.current.useImperativeHandle(e,t,n)};X.useInsertionEffect=function(e,t){return qe.current.useInsertionEffect(e,t)};X.useLayoutEffect=function(e,t){return qe.current.useLayoutEffect(e,t)};X.useMemo=function(e,t){return qe.current.useMemo(e,t)};X.useReducer=function(e,t,n){return qe.current.useReducer(e,t,n)};X.useRef=function(e){return qe.current.useRef(e)};
vendor: 6,876 bytes, lines 9-33
9X.useState=function(e){return qe.current.useState(e)};X.useSyncExternalStore=function(e,t,n){return qe.current.useSyncExternalStore(e,t,n)};X.useTransition=function(){return qe.current.useTransition()};X.version="18.3.1";ly.exports=X;var v=ly.exports;const L=sy(v),Ix=xx({__proto__:null,default:L},[v]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var Fx=v,Bx=Symbol.for("react.element"),Vx=Symbol.for("react.fragment"),Ux=Object.prototype.hasOwnProperty,$x=Fx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,zx={key:!0,ref:!0,__self:!0,__source:!0};function yy(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Ux.call(t,r)&&!zx.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Bx,type:e,key:i,ref:s,props:o,_owner:$x.current}}pl.Fragment=Vx;pl.jsx=yy;pl.jsxs=yy;ay.exports=pl;var S=ay.exports,vy={exports:{}},ft={},wy={exports:{}},by={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(P,R){var M=P.length;P.push(R);e:for(;0<M;){var U=M-1>>>1,$=P[U];if(0<o($,R))P[U]=R,P[M]=$,M=U;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var R=P[0],M=P.pop();if(M!==R){P[0]=M;e:for(var U=0,$=P.length,Y=$>>>1;U<Y;){var q=2*(U+1)-1,ye=P[q],be=q+1,Z=P[be];if(0>o(ye,M))be<$&&0>o(Z,ye)?(P[U]=Z,P[be]=M,U=be):(P[U]=ye,P[q]=M,U=q);else if(be<$&&0>o(Z,M))P[U]=Z,P[be]=M,U=be;else break e}}return R}function o(P,R){var M=P.sortIndex-R.sortIndex;return M!==0?M:P.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,f=3,h=!1,x=!1,p=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(P){for(var R=n(c);R!==null;){if(R.callback===null)r(c);else if(R.startTime<=P)r(c),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(c)}}function b(P){if(p=!1,y(P),!x)if(n(l)!==null)x=!0,z(k);else{var R=n(c);R!==null&&V(b,R.startTime-P)}}function k(P,R){x=!1,p&&(p=!1,m(T),T=-1),h=!0;var M=f;try{for(y(R),d=n(l);d!==null&&(!(d.expirationTime>R)||P&&!B());){var U=d.callback;if(typeof U=="function"){d.callback=null,f=d.priorityLevel;var $=U(d.expirationTime<=R);R=e.unstable_now(),typeof $=="function"?d.callback=$:d===n(l)&&r(l),y(R)}else r(l);d=n(l)}if(d!==null)var Y=!0;else{var q=n(c);q!==null&&V(b,q.startTime-R),Y=!1}return Y}finally{d=null,f=M,h=!1}}var C=!1,E=null,T=-1,D=5,N=-1;function B(){return!(e.unstable_now()-N<D)}function O(){if(E!==null){var P=e.unstable_now();N=P;var R=!0;try{R=E(!0,P)}finally{R?G():(C=!1,E=null)}}else C=!1}var G;if(typeof g=="function")G=function(){g(O)};else if(typeof MessageChannel<"u"){var _=new MessageChannel,K=_.port2;_.port1.onmessage=O,G=function(){K.postMessage(null)}}else G=function(){w(O,0)};function z(P){E=P,C||(C=!0,G())}function V(P,R){T=w(function(){P(e.unstable_now())},R)}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(P){P.callback=null},e.unstable_continueExecution=function(){x||h||(x=!0,z(k))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(P){switch(f){case 1:case 2:case 3:var R=3;break;default:R=f}var M=f;f=R;try{return P()}finally{f=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,R){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var M=f;f=P;try{return R()}finally{f=M}},e.unstable_scheduleCallback=function(P,R,M){var U=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?U+M:U):M=U,P){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=M+$,P={id:u++,callback:R,priorityLevel:P,startTime:M,expirationTime:$,sortIndex:-1},M>U?(P.sortIndex=M,t(c,P),n(l)===null&&P===n(c)&&(p?(m(T),T=-1):p=!0,V(b,M-U))):(P.sortIndex=$,t(l,P),x||h||(x=!0,z(k))),P},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(P){var R=f;return function(){var M=f;f=R;try{return P.apply(this,arguments)}finally{f=M}}}})(by);wy.exports=by;var Wx=wy.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var Hx=v,ut=Wx;function j(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 xy=new Set,Bi={};function Qr(e,t){Oo(e,t),Oo(e+"Capture",t)}function Oo(e,t){for(Bi[e]=t,e=0;e<t.length;e++)xy.add(t[e])}var bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nu=Object.prototype.hasOwnProperty,Gx=/^[: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]*$/,Wh={},Hh={};function Kx(e){return nu.call(Hh,e)?!0:nu.call(Wh,e)?!1:Gx.test(e)?Hh[e]=!0:(Wh[e]=!0,!1)}function Qx(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 Yx(e,t,n,r){if(t===null||typeof t>"u"||Qx(e,t,n,r))return!0;
vendor: 5,200 bytes, lines 33-34
33if(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 Xe(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new Xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new Xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new Xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new Xe(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){Le[e]=new Xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new Xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new Xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new Xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new Xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Id=/[\-:]([a-z])/g;function Fd(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(Id,Fd);Le[t]=new Xe(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(Id,Fd);Le[t]=new Xe(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(Id,Fd);Le[t]=new Xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new Xe(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new Xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new Xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Bd(e,t,n,r){var o=Le.hasOwnProperty(t)?Le[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Yx(t,n,o,r)&&(n=null),r||o===null?Kx(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Rn=Hx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Fs=Symbol.for("react.element"),no=Symbol.for("react.portal"),ro=Symbol.for("react.fragment"),Vd=Symbol.for("react.strict_mode"),ru=Symbol.for("react.profiler"),Sy=Symbol.for("react.provider"),ky=Symbol.for("react.context"),Ud=Symbol.for("react.forward_ref"),ou=Symbol.for("react.suspense"),iu=Symbol.for("react.suspense_list"),$d=Symbol.for("react.memo"),Vn=Symbol.for("react.lazy"),Cy=Symbol.for("react.offscreen"),Gh=Symbol.iterator;function ai(e){return e===null||typeof e!="object"?null:(e=Gh&&e[Gh]||e["@@iterator"],typeof e=="function"?e:null)}var ge=Object.assign,tc;function wi(e){if(tc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);tc=t&&t[1]||""}return`
34`+tc+e}var nc=!1;function rc(e,t){if(!e||nc)return"";nc=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}
vendor: 4,200 bytes, lines 34-37
34catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
35`),i=r.stack.split(`
36`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=`
37`+o[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{nc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wi(e):""}function qx(e){switch(e.tag){case 5:return wi(e.type);case 16:return wi("Lazy");case 13:return wi("Suspense");case 19:return wi("SuspenseList");case 0:case 2:case 15:return e=rc(e.type,!1),e;case 11:return e=rc(e.type.render,!1),e;case 1:return e=rc(e.type,!0),e;default:return""}}function su(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 ro:return"Fragment";case no:return"Portal";case ru:return"Profiler";case Vd:return"StrictMode";case ou:return"Suspense";case iu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ky:return(e.displayName||"Context")+".Consumer";case Sy:return(e._context.displayName||"Context")+".Provider";case Ud:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $d:return t=e.displayName||null,t!==null?t:su(e.type)||"Memo";case Vn:t=e._payload,e=e._init;try{return su(e(t))}catch{}}return null}function Xx(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 su(t);case 8:return t===Vd?"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 ar(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ey(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zx(e){var t=Ey(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.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 Bs(e){e._valueTracker||(e._valueTracker=Zx(e))}function Py(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ey(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Na(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 au(e,t){var n=t.checked;return ge({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Kh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ar(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 Ty(e,t){t=t.checked,t!=null&&Bd(e,"checked",t,!1)}function lu(e,t){Ty(e,t);var n=ar(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")?cu(e,t.type,n):t.hasOwnProperty("defaultValue")&&cu(e,t.type,ar
vendor: 4,277 bytes, line 37
37(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qh(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 cu(e,t,n){(t!=="number"||Na(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bi=Array.isArray;function wo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ar(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function uu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(j(91));return ge({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(j(92));if(bi(n)){if(1<n.length)throw Error(j(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ar(n)}}function Ry(e,t){var n=ar(t.value),r=ar(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 qh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ay(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 du(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ay(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Vs,Dy=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Vs=Vs||document.createElement("div"),Vs.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Vs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ei={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},Jx=["Webkit","ms","Moz","O"];Object.keys(Ei).forEach(function(e){Jx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ei[t]=Ei[e]})});function Ny(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ei.hasOwnProperty(e)&&Ei[e]?(""+t).trim():t+"px"}function My(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Ny(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var eS=ge({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 fu(e,t){if(t){if(eS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function hu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
37ing";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 pu=null;function zd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mu=null,bo=null,xo=null;function Xh(e){if(e=ws(e)){if(typeof mu!="function")throw Error(j(280));var t=e.stateNode;t&&(t=wl(t),mu(e.stateNode,e.type,t))}}function jy(e){bo?xo?xo.push(e):xo=[e]:bo=e}function Ly(){if(bo){var e=bo,t=xo;if(xo=bo=null,Xh(e),t)for(e=0;e<t.length;e++)Xh(t[e])}}function _y(e,t){return e(t)}function Oy(){}var oc=!1;function Iy(e,t,n){if(oc)return e(t,n);oc=!0;try{return _y(e,t,n)}finally{oc=!1,(bo!==null||xo!==null)&&(Oy(),Ly())}}function Ui(e,t){var n=e.stateNode;if(n===null)return null;var r=wl(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(j(231,t,typeof n));return n}var gu=!1;if(bn)try{var li={};Object.defineProperty(li,"passive",{get:function(){gu=!0}}),window.addEventListener("test",li,li),window.removeEventListener("test",li,li)}catch{gu=!1}function tS(e,t,n,r,o,i,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Pi=!1,Ma=null,ja=!1,yu=null,nS={onError:function(e){Pi=!0,Ma=e}};function rS(e,t,n,r,o,i,s,a,l){Pi=!1,Ma=null,tS.apply(nS,arguments)}function oS(e,t,n,r,o,i,s,a,l){if(rS.apply(this,arguments),Pi){if(Pi){var c=Ma;Pi=!1,Ma=null}else throw Error(j(198));ja||(ja=!0,yu=c)}}function Yr(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 Fy(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 Zh(e){if(Yr(e)!==e)throw Error(j(188))}function iS(e){var t=e.alternate;if(!t){if(t=Yr(e),t===null)throw Error(j(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Zh(o),e;if(i===r)return Zh(o),t;i=i.sibling}throw Error(j(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,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){for(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)throw Error(j(189))}}if(n.alternate!==r)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function By(e){return e=iS(e),e!==null?Vy(e):null}function Vy(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Vy(e);if(t!==null)return t;e=e.sibling}return null}var Uy=ut.unstable_scheduleCallback,Jh=ut.unstable_cancelCallback,sS=ut.unstable_shouldYield,aS=ut.unstable_requestPaint,xe=ut.unstable_now,lS=ut.unstable_getCurrentPriorityLevel,Wd=ut.unstable_ImmediatePriority,$y=ut.unstable_UserBlockingPriority,La=ut.unstable_NormalPriority,cS=ut.unstable_LowPriority,zy=ut.unstable_IdlePriority,ml=null,nn=null;function uS(e){if(nn&&typeof nn.onCommitFiberRoot=="function")try{nn.onCommitFiberRoot(ml,e,void 0,(e.current.flags&128)===128)}catch{}}var $t=Math.clz32?Math.clz32:hS,dS=Math.log,fS=Math.LN2;function hS(e){return e>>>=0,e===0?32:31-(dS(e)/fS|0)|0}var Us=64,$s=4194304;function xi(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 _a(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;
vendor: 4,152 bytes, line 37
37a!==0?r=xi(a):(i&=s,i!==0&&(r=xi(i)))}else s=n&~o,s!==0?r=xi(s):i!==0&&(r=xi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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-$t(t),o=1<<n,r|=e[n],t&=~o;return r}function pS(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 mS(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-$t(i),a=1<<s,l=o[s];l===-1?(!(a&n)||a&r)&&(o[s]=pS(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function vu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Wy(){var e=Us;return Us<<=1,!(Us&4194240)&&(Us=64),e}function ic(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ys(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$t(t),e[t]=n}function gS(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 o=31-$t(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Hd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-$t(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ne=0;function Hy(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Gy,Gd,Ky,Qy,Yy,wu=!1,zs=[],Zn=null,Jn=null,er=null,$i=new Map,zi=new Map,$n=[],yS="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 ep(e,t){switch(e){case"focusin":case"focusout":Zn=null;break;case"dragenter":case"dragleave":Jn=null;break;case"mouseover":case"mouseout":er=null;break;case"pointerover":case"pointerout":$i.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zi.delete(t.pointerId)}}function ci(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=ws(t),t!==null&&Gd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function vS(e,t,n,r,o){switch(t){case"focusin":return Zn=ci(Zn,e,t,n,r,o),!0;case"dragenter":return Jn=ci(Jn,e,t,n,r,o),!0;case"mouseover":return er=ci(er,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return $i.set(i,ci($i.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,zi.set(i,ci(zi.get(i)||null,e,t,n,r,o)),!0}return!1}function qy(e){var t=Tr(e.target);if(t!==null){var n=Yr(t);if(n!==null){if(t=n.tag,t===13){if(t=Fy(n),t!==null){e.blockedOn=t,Yy(e.priority,function(){Ky(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 fa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);pu=r,n.target.dispatchEvent(r),pu=null}else return t=ws(n),t!==null&&Gd(t),e.blockedOn=n,!1;t.shift()}return!0}function tp(e,t,n){fa(e)&&n.delete(t)}function wS(){wu=!1,Zn!==null&&fa(Zn)&&(Zn=null),Jn!==null&&fa(Jn)&&(Jn=null),er!==null&&fa(er)&&(er=null),$i.forEach(tp),zi.forEach(tp)}function ui(e,t){e.blockedOn===t&&(e.blockedOn=null,wu||(wu=!0,ut.unstable_scheduleCallback(ut.unstable_NormalPriority,wS)))}function Wi(e){function t(o){return ui(o,e)}if(0<zs.length){ui(zs[0],e);for(var n=1;n<zs.length;n++){var r=zs[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Zn!==null&&ui(Zn,e),Jn!==null&&ui(Jn,e),er!==null&&ui(er,e),$i.forEac
vendor: 11,472 bytes, line 37
37h(t),zi.forEach(t),n=0;n<$n.length;n++)r=$n[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<$n.length&&(n=$n[0],n.blockedOn===null);)qy(n),n.blockedOn===null&&$n.shift()}var So=Rn.ReactCurrentBatchConfig,Oa=!0;function bS(e,t,n,r){var o=ne,i=So.transition;So.transition=null;try{ne=1,Kd(e,t,n,r)}finally{ne=o,So.transition=i}}function xS(e,t,n,r){var o=ne,i=So.transition;So.transition=null;try{ne=4,Kd(e,t,n,r)}finally{ne=o,So.transition=i}}function Kd(e,t,n,r){if(Oa){var o=bu(e,t,n,r);if(o===null)mc(e,t,r,Ia,n),ep(e,r);else if(vS(o,e,t,n,r))r.stopPropagation();else if(ep(e,r),t&4&&-1<yS.indexOf(e)){for(;o!==null;){var i=ws(o);if(i!==null&&Gy(i),i=bu(e,t,n,r),i===null&&mc(e,t,r,Ia,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else mc(e,t,r,null,n)}}var Ia=null;function bu(e,t,n,r){if(Ia=null,e=zd(r),e=Tr(e),e!==null)if(t=Yr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Fy(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 Ia=e,null}function Xy(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(lS()){case Wd:return 1;case $y:return 4;case La:case cS:return 16;case zy:return 536870912;default:return 16}default:return 16}}var Yn=null,Qd=null,ha=null;function Zy(){if(ha)return ha;var e,t=Qd,n=t.length,r,o="value"in Yn?Yn.value:Yn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return ha=o.slice(e,1<r?1-r:void 0)}function pa(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 Ws(){return!0}function np(){return!1}function ht(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ws:np,this.isPropagationStopped=np,this}return ge(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=Ws)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ws)},persist:function(){},isPersistent:Ws}),t}var Yo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yd=ht(Yo),vs=ge({},Yo,{view:0,detail:0}),SS=ht(vs),sc,ac,di,gl=ge({},vs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qd,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!==di&&(di&&e.type==="mousemove"?(sc=e.screenX-di.screenX,ac=e.screenY-di.screenY):ac=sc=0,di=e),sc)},movementY:function(e){return"movementY"in e?e.movementY:ac}}),rp=ht(gl),kS=ge({},gl,{dataTransfer:0}),CS=ht(kS),ES=ge({},vs,{relatedTarget:0}),lc=ht(ES),PS=ge({},Yo,{animationName:0,elapsedTime:0,pseudoElement:0}),TS=ht(PS),RS=ge({},Yo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),AS=ht(RS),DS=ge({},Yo,{data:0}),op=ht(DS),NS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},MS={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"},jS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function LS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jS[e])?!!t[e]:!1}function qd(){return LS}var _S=ge({},vs,{key:function(e){if(e.key){var t=NS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=pa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?MS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qd,charCode:function(e){return e.type==="keypress"?pa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?pa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),OS=ht(_S),IS=ge({},gl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ip=ht(IS),FS=ge({},vs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qd}),BS=ht(FS),VS=ge({},Yo,{propertyName:0,elapsedTime:0,pseudoElement:0}),US=ht(VS),$S=ge({},gl,{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}),zS=ht($S),WS=[9,13,27,32],Xd=bn&&"CompositionEvent"in window,Ti=null;bn&&"documentMode"in document&&(Ti=document.documentMode);var HS=bn&&"TextEvent"in window&&!Ti,Jy=bn&&(!Xd||Ti&&8<Ti&&11>=Ti),sp=" ",ap=!1;function e0(e,t){switch(e){case"keyup":return WS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function t0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oo=!1;function GS(e,t){switch(e){case"compositionend":return t0(t);case"keypress":return t.which!==32?null:(ap=!0,sp);case"textInput":return e=t.data,e===sp&&ap?null:e;default:return null}}function KS(e,t){if(oo)return e==="compositionend"||!Xd&&e0(e,t)?(e=Zy(),ha=Qd=Yn=null,oo=!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 Jy&&t.locale!=="ko"?null:t.data;default:return null}}var QS={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 lp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!QS[e.type]:t==="textarea"}function n0(e,t,n,r){jy(r),t=Fa(t,"onChange"),0<t.length&&(n=new Yd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ri=null,Hi=null;function YS(e){h0(e,0)}function yl(e){var t=ao(e);if(Py(t))return e}function qS(e,t){if(e==="change")return t}var r0=!1;if(bn){var cc;if(bn){var uc="oninput"in document;if(!uc){var cp=document.createElement("div");cp.setAttribute("oninput","return;"),uc=typeof cp.oninput=="function"}cc=uc}else cc=!1;r0=cc&&(!document.documentMode||9<document.documentMode)}function up(){Ri&&(Ri.detachEvent("onpropertychange",o0),Hi=Ri=null)}function o0(e){if(e.propertyName==="value"&&yl(Hi)){var t=[];n0(t,Hi,e,zd(e)),Iy(YS,t)}}function XS(e,t,n){e==="focusin"?(up(),Ri=t,Hi=n,Ri.attachEvent("onpropertychange",o0)):e==="focusout"&&up()}function ZS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yl(Hi)}function JS(e,t){if(e==="click")return yl(t)}function ek(e,t){if(e==="input"||e==="change")return yl(t)}function tk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wt=typeof Object.is=="function"?Object.is:tk;function Gi(e,t){if(Wt(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 o=n[r];if(!nu.call(t,o)||!Wt(e[o],t[o]))return!1}return!0}function dp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fp(e,t){var n=dp(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=dp(n)}}function i0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?i0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function s0(){for(var e=window,t=Na();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Na(e.document)}return t}function Zd(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 nk(e){var t=s0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&i0(n.ownerDocument.documentElement,n)){if(r!==null&&Zd(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=fp(n,i);var s=fp(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>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 rk=bn&&"documentMode"in document&&11>=document.documentMode,io=null,xu=null,Ai=null,Su=!1;function hp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Su||io==null||io!==Na(r)||(r=io,"selectionStart"in r&&Zd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),Ai&&Gi(Ai,r)||(Ai=r,r=Fa(xu,"onSelect"),0<r.length&&(t=new Yd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=io)))}function Hs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var so={animationend:Hs("Animation","AnimationEnd"),animationiteration:Hs("Animation","AnimationIteration"),animationstart:Hs("Animation","AnimationStart"),transitionend:Hs("Transition","TransitionEnd")},dc={},a0={};bn&&(a0=document.createElement("div").style,"AnimationEvent"in window||(delete so.animationend.animation,delete so.animationiteration.animation,delete so.animationstart.animation),"TransitionEvent"in window||delete so.transitionend.transition);function vl(e){if(dc[e])return dc[e];if(!so[e])return e;var t=so[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in a0)return dc[e]=t[n];return e}var l0=vl("animationend"),c0=vl("animationiteration"),u0=vl("animationstart"),d0=vl("transitionend"),f0=new Map,pp="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 mr(e,t){f0.set(e,t),Qr(t,[e])}for(var fc=0;fc<pp.length;fc++){var hc=pp[fc],ok=hc.toLowerCase(),ik=hc[0].toUpperCase()+hc.slice(1);mr(ok,"on"+ik)}mr(l0,"onAnimationEnd");mr(c0,"onAnimationIteration");mr(u0,"onAnimationStart");mr("dblclick","onDoubleClick");mr("focusin","onFocus");mr("focusout","onBlur");mr(d0,"onTransitionEnd");Oo("onMouseEnter",["mouseout","mouseover"]);Oo("onMouseLeave",["mouseout","mouseover"]);Oo("onPointerEnter",["pointerout","pointerover"]);Oo("onPointerLeave",["pointerout","pointerover"]);Qr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Qr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Qr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Qr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Qr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Qr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Si="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(" "),sk=new Set("cancel close invalid load scroll toggle".split(" ").concat(Si));function mp(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,oS(r,t,void 0,e),e.currentTarget=null}function h0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;mp(o,a,c),i=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;mp(o,a,c),i=l}}}if(ja)throw e=yu,ja=!1,yu=null,e}function se(e,t){var n=t[Tu];n===void 0&&(n=t[Tu]=new Set);var r=e+"__bubble";n.has(r)||(p0(t,e,2,!1),n.add(r))}function pc(e,t,n){var r=0;t&&(r|=4),p0(n,e,r,t)}var Gs="_reactListening"+Math.random().toString(36).slice(2);function Ki(e){if(!e[Gs]){e[Gs]=!0,xy.forEach(function(n){n!=="selectionchange"&&(sk.has(n)||pc(n,!1,e),pc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gs]||(t[Gs]=!0,pc("selectionchange",!1,t))}}function p0(e,t,n,r){switch(Xy(t)){case 1:var o=bS;break;case 4:o=xS;break;default:o=Kd}n=o.bind(null,t,n,e),o=void 0,!gu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function mc(e,t,n,r,o){var i=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;
vendor: 3,426 bytes, line 37
37if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=Tr(a),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}a=a.parentNode}}r=r.return}Iy(function(){var c=i,u=zd(n),d=[];e:{var f=f0.get(e);if(f!==void 0){var h=Yd,x=e;switch(e){case"keypress":if(pa(n)===0)break e;case"keydown":case"keyup":h=OS;break;case"focusin":x="focus",h=lc;break;case"focusout":x="blur",h=lc;break;case"beforeblur":case"afterblur":h=lc;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":h=rp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=CS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=BS;break;case l0:case c0:case u0:h=TS;break;case d0:h=US;break;case"scroll":h=SS;break;case"wheel":h=zS;break;case"copy":case"cut":case"paste":h=AS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=ip}var p=(t&4)!==0,w=!p&&e==="scroll",m=p?f!==null?f+"Capture":null:f;p=[];for(var g=c,y;g!==null;){y=g;var b=y.stateNode;if(y.tag===5&&b!==null&&(y=b,m!==null&&(b=Ui(g,m),b!=null&&p.push(Qi(g,b,y)))),w)break;g=g.return}0<p.length&&(f=new h(f,x,null,n,u),d.push({event:f,listeners:p}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==pu&&(x=n.relatedTarget||n.fromElement)&&(Tr(x)||x[xn]))break e;if((h||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,h?(x=n.relatedTarget||n.toElement,h=c,x=x?Tr(x):null,x!==null&&(w=Yr(x),x!==w||x.tag!==5&&x.tag!==6)&&(x=null)):(h=null,x=c),h!==x)){if(p=rp,b="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(p=ip,b="onPointerLeave",m="onPointerEnter",g="pointer"),w=h==null?f:ao(h),y=x==null?f:ao(x),f=new p(b,g+"leave",h,n,u),f.target=w,f.relatedTarget=y,b=null,Tr(u)===c&&(p=new p(m,g+"enter",x,n,u),p.target=y,p.relatedTarget=w,b=p),w=b,h&&x)t:{for(p=h,m=x,g=0,y=p;y;y=to(y))g++;for(y=0,b=m;b;b=to(b))y++;for(;0<g-y;)p=to(p),g--;for(;0<y-g;)m=to(m),y--;for(;g--;){if(p===m||m!==null&&p===m.alternate)break t;p=to(p),m=to(m)}p=null}else p=null;h!==null&&gp(d,f,h,p,!1),x!==null&&w!==null&&gp(d,w,x,p,!0)}}e:{if(f=c?ao(c):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var k=qS;else if(lp(f))if(r0)k=ek;else{k=ZS;var C=XS}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(k=JS);if(k&&(k=k(e,c))){n0(d,k,n,u);break e}C&&C(e,f,c),e==="focusout"&&(C=f._wrapperState)&&C.controlled&&f.type==="number"&&cu(f,"number",f.value)}switch(C=c?ao(c):window,e){case"focusin":(lp(C)||C.contentEditable==="true")&&(io=C,xu=c,Ai=null);break;case"focusout":Ai=xu=io=null;break;case"mousedown":Su=!0;break;case"contextmenu":case"mouseup":case"dragend":Su=!1,hp(d,n,u);break;case"selectionchange":if(rk)break;case"keydown":case"keyup":hp(d,n,u)}var E;if(Xd)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}
vendor: 4,641 bytes, lines 37-38
37else oo?e0(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(Jy&&n.locale!=="ko"&&(oo||T!=="onCompositionStart"?T==="onCompositionEnd"&&oo&&(E=Zy()):(Yn=u,Qd="value"in Yn?Yn.value:Yn.textContent,oo=!0)),C=Fa(c,T),0<C.length&&(T=new op(T,e,null,n,u),d.push({event:T,listeners:C}),E?T.data=E:(E=t0(n),E!==null&&(T.data=E)))),(E=HS?GS(e,n):KS(e,n))&&(c=Fa(c,"onBeforeInput"),0<c.length&&(u=new op("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=E))}h0(d,t)})}function Qi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fa(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Ui(e,n),i!=null&&r.unshift(Qi(e,i,o)),i=Ui(e,t),i!=null&&r.push(Qi(e,i,o))),e=e.return}return r}function to(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function gp(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,o?(l=Ui(n,i),l!=null&&s.unshift(Qi(n,l,a))):o||(l=Ui(n,i),l!=null&&s.push(Qi(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var ak=/\r\n?/g,lk=/\u0000|\uFFFD/g;function yp(e){return(typeof e=="string"?e:""+e).replace(ak,`
38`).replace(lk,"")}function Ks(e,t,n){if(t=yp(t),yp(e)!==t&&n)throw Error(j(425))}function Ba(){}var ku=null,Cu=null;function Eu(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 Pu=typeof setTimeout=="function"?setTimeout:void 0,ck=typeof clearTimeout=="function"?clearTimeout:void 0,vp=typeof Promise=="function"?Promise:void 0,uk=typeof queueMicrotask=="function"?queueMicrotask:typeof vp<"u"?function(e){return vp.resolve(null).then(e).catch(dk)}:Pu;function dk(e){setTimeout(function(){throw e})}function gc(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Wi(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Wi(t)}function tr(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 wp(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 qo=Math.random().toString(36).slice(2),en="__reactFiber$"+qo,Yi="__reactProps$"+qo,xn="__reactContainer$"+qo,Tu="__reactEvents$"+qo,fk="__reactListeners$"+qo,hk="__reactHandles$"+qo;function Tr(e){var t=e[en];if(t)return t;for(var n=e.parentNode;n;){if(t=n[xn]||n[en]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wp(e);e!==null;){if(n=e[en])return n;e=wp(e)}return t}e=n,n=e.parentNode}return null}function ws(e){return e=e[en]||e[xn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ao(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(j(33))}function wl(e){return e[Yi]||null}var Ru=[],lo=-1;function gr(e){return{current:e}}function ae(e){0>lo||(e.current=Ru[lo],Ru[lo]=null,lo--)}function oe(e,t){lo++,Ru[lo]=e.current,e.current=t}var lr={},ze=gr(lr),tt=gr(!1),Ur=lr;function Io(e,t){var n=e.type.contextTypes;if(!n)return lr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function nt(e){return e=e.childContextTypes,e!=null}function Va(){ae(tt),ae(ze)}function bp(e,t,n){if(ze.current!==lr)throw Error(j(168));oe(ze,t),oe(tt,n)}function m0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(j(108,Xx(e)||"Unknown",o));return ge({},n,r)}function Ua(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lr,Ur=ze.current,oe(ze,e),oe(tt,tt.current),!0}function xp(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=m0(e,t,Ur),r.__reactInternalMemoizedMergedChildContext=e,ae(tt),ae(ze),oe(ze,e)):ae(tt),oe(tt,n)}var pn=null,bl=!1,yc=!1;function g0(e){pn===null?pn=[e]:pn.push(e)}function pk(e){bl=!0,g0(e)}function yr(){if(!yc&&pn!==null){yc=!0;var e=0,t=ne;try{var n=pn;for(ne=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}pn=null,bl=!1}catch(o){throw pn!==null&&(pn=pn.slice(e+1)),Uy(Wd,yr),o}
vendor: 13,490 bytes, line 38
38finally{ne=t,yc=!1}}return null}var co=[],uo=0,$a=null,za=0,yt=[],vt=0,$r=null,gn=1,yn="";function kr(e,t){co[uo++]=za,co[uo++]=$a,$a=e,za=t}function y0(e,t,n){yt[vt++]=gn,yt[vt++]=yn,yt[vt++]=$r,$r=e;var r=gn;e=yn;var o=32-$t(r)-1;r&=~(1<<o),n+=1;var i=32-$t(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,gn=1<<32-$t(t)+o|n<<o|r,yn=i+e}else gn=1<<i|n<<o|r,yn=e}function Jd(e){e.return!==null&&(kr(e,1),y0(e,1,0))}function ef(e){for(;e===$a;)$a=co[--uo],co[uo]=null,za=co[--uo],co[uo]=null;for(;e===$r;)$r=yt[--vt],yt[vt]=null,yn=yt[--vt],yt[vt]=null,gn=yt[--vt],yt[vt]=null}var lt=null,st=null,ue=!1,Ut=null;function v0(e,t){var n=wt(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 Sp(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,lt=e,st=tr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,lt=e,st=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=$r!==null?{id:gn,overflow:yn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=wt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,lt=e,st=null,!0):!1;default:return!1}}function Au(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Du(e){if(ue){var t=st;if(t){var n=t;if(!Sp(e,t)){if(Au(e))throw Error(j(418));t=tr(n.nextSibling);var r=lt;t&&Sp(e,t)?v0(r,n):(e.flags=e.flags&-4097|2,ue=!1,lt=e)}}else{if(Au(e))throw Error(j(418));e.flags=e.flags&-4097|2,ue=!1,lt=e}}}function kp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;lt=e}function Qs(e){if(e!==lt)return!1;if(!ue)return kp(e),ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Eu(e.type,e.memoizedProps)),t&&(t=st)){if(Au(e))throw w0(),Error(j(418));for(;t;)v0(e,t),t=tr(t.nextSibling)}if(kp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){st=tr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}st=null}}else st=lt?tr(e.stateNode.nextSibling):null;return!0}function w0(){for(var e=st;e;)e=tr(e.nextSibling)}function Fo(){st=lt=null,ue=!1}function tf(e){Ut===null?Ut=[e]:Ut.push(e)}var mk=Rn.ReactCurrentBatchConfig;function fi(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(j(309));var r=n.stateNode}if(!r)throw Error(j(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(j(284));if(!n._owner)throw Error(j(290,e))}return e}function Ys(e,t){throw e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Cp(e){var t=e._init;return t(e._payload)}function b0(e){function t(m,g){if(e){var y=m.deletions;y===null?(m.deletions=[g],m.flags|=16):y.push(g)}}function n(m,g){if(!e)return null;for(;g!==null;)t(m,g),g=g.sibling;return null}function r(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function o(m,g){return m=ir(m,g),m.index=0,m.sibling=null,m}function i(m,g,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<g?(m.flags|=2,g):y):(m.flags|=2,g)):(m.flags|=1048576,g)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,g,y,b){return g===null||g.tag!==6?(g=Cc(y,m.mode,b),g.return=m,g):(g=o(g,y),g.return=m,g)}function l(m,g,y,b){var k=y.type;return k===ro?u(m,g,y.props.children,b,y.key):g!==null&&(g.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Vn&&Cp(k)===g.type)?(b=o(g,y.props),b.ref=fi(m,g,y),b.return=m,b):(b=xa(y.type,y.key,y.props,null,m.mode,b),b.ref=fi(m,g,y),b.return=m,b)}function c(m,g,y,b){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=Ec(y,m.mode,b),g.return=m,g):(g=o(g,y.children||[]),g.return=m,g)}function u(m,g,y,b,k){return g===null||g.tag!==7?(g=Br(y,m.mode,b,k),g.return=m,g):(g=o(g,y),g.return=m,g)}function d(m,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Cc(""+g,m.mode,y),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Fs:return y=xa(g.type,g.key,g.props,null,m.mode,y),y.ref=fi(m,null,g),y.return=m,y;case no:return g=Ec(g,m.mode,y),g.return=m,g;case Vn:var b=g._init;return d(m,b(g._payload),y)}if(bi(g)||ai(g))return g=Br(g,m.mode,y,null),g.return=m,g;Ys(m,g)}return null}function f(m,g,y,b){var k=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return k!==null?null:a(m,g,""+y,b);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Fs:return y.key===k?l(m,g,y,b):null;case no:return y.key===k?c(m,g,y,b):null;case Vn:return k=y._init,f(m,g,k(y._payload),b)}if(bi(y)||ai(y))return k!==null?null:u(m,g,y,b,null);Ys(m,y)}return null}function h(m,g,y,b,k){if(typeof b=="string"&&b!==""||typeof b=="number")return m=m.get(y)||null,a(g,m,""+b,k);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Fs:return m=m.get(b.key===null?y:b.key)||null,l(g,m,b,k);case no:return m=m.get(b.key===null?y:b.key)||null,c(g,m,b,k);case Vn:var C=b._init;return h(m,g,y,C(b._payload),k)}if(bi(b)||ai(b))return m=m.get(y)||null,u(g,m,b,k,null);Ys(g,b)}return null}function x(m,g,y,b){for(var k=null,C=null,E=g,T=g=0,D=null;E!==null&&T<y.length;T++){E.index>T?(D=E,E=null):D=E.sibling;var N=f(m,E,y[T],b);if(N===null){E===null&&(E=D);break}e&&E&&N.alternate===null&&t(m,E),g=i(N,g,T),C===null?k=N:C.sibling=N,C=N,E=D}if(T===y.length)return n(m,E),ue&&kr(m,T),k;if(E===null){for(;T<y.length;T++)E=d(m,y[T],b),E!==null&&(g=i(E,g,T),C===null?k=E:C.sibling=E,C=E);return ue&&kr(m,T),k}for(E=r(m,E);T<y.length;T++)D=h(E,m,T,y[T],b),D!==null&&(e&&D.alternate!==null&&E.delete(D.key===null?T:D.key),g=i(D,g,T),C===null?k=D:C.sibling=D,C=D);return e&&E.forEach(function(B){return t(m,B)}),ue&&kr(m,T),k}function p(m,g,y,b){var k=ai(y);if(typeof k!="function")throw Error(j(150));if(y=k.call(y),y==null)throw Error(j(151));for(var C=k=null,E=g,T=g=0,D=null,N=y.next();E!==null&&!N.done;T++,N=y.next()){E.index>T?(D=E,E=null):D=E.sibling;var B=f(m,E,N.value,b);if(B===null){E===null&&(E=D);break}e&&E&&B.alternate===null&&t(m,E),g=i(B,g,T),C===null?k=B:C.sibling=B,C=B,E=D}if(N.done)return n(m,E),ue&&kr(m,T),k;if(E===null){for(;!N.done;T++,N=y.next())N=d(m,N.value,b),N!==null&&(g=i(N,g,T),C===null?k=N:C.sibling=N,C=N);return ue&&kr(m,T),k}for(E=r(m,E);!N.done;T++,N=y.next())N=h(E,m,T,N.value,b),N!==null&&(e&&N.alternate!==null&&E.delete(N.key===null?T:N.key),g=i(N,g,T),C===null?k=N:C.sibling=N,C=N);return e&&E.forEach(function(O){return t(m,O)}),ue&&kr(m,T),k}function w(m,g,y,b){if(typeof y=="object"&&y!==null&&y.type===ro&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Fs:e:{for(var k=y.key,C=g;C!==null;){if(C.key===k){if(k=y.type,k===ro){if(C.tag===7){n(m,C.sibling),g=o(C,y.props.children),g.return=m,m=g;break e}}else if(C.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Vn&&Cp(k)===C.type){n(m,C.sibling),g=o(C,y.props),g.ref=fi(m,C,y),g.return=m,m=g;break e}n(m,C);break}else t(m,C);C=C.sibling}y.type===ro?(g=Br(y.props.children,m.mode,b,y.key),g.return=m,m=g):(b=xa(y.type,y.key,y.props,null,m.mode,b),b.ref=fi(m,g,y),b.return=m,m=b)}return s(m);case no:e:{for(C=y.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){n(m,g.sibling),g=o(g,y.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=Ec(y,m.mode,b),g.return=m,m=g}return s(m);case Vn:return C=y._init,w(m,g,C(y._payload),b)}if(bi(y))return x(m,g,y,b);if(ai(y))return p(m,g,y,b);Ys(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(n(m,g.sibling),g=o(g,y),g.return=m,m=g):(n(m,g),g=Cc(y,m.mode,b),g.return=m,m=g),s(m)):n(m,g)}return w}var Bo=b0(!0),x0=b0(!1),Wa=gr(null),Ha=null,fo=null,nf=null;function rf(){nf=fo=Ha=null}function of(e){var t=Wa.current;ae(Wa),e._currentValue=t}function Nu(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 ko(e,t){Ha=e,nf=fo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(et=!0),e.firstContext=null)}function kt(e){var t=e._currentValue;if(nf!==e)if(e={context:e,memoizedValue:t,next:null},fo===null){if(Ha===null)throw Error(j(308));fo=e,Ha.dependencies={lanes:0,firstContext:e}}else fo=fo.next=e;return t}var Rr=null;function sf(e){Rr===null?Rr=[e]:Rr.push(e)}function S0(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,sf(t)):(n.next=o.next,o.next=n),t.interleaved=n,Sn(e,r)}function Sn(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 Un=!1;function af(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function k0(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 vn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function nr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Sn(e,n)}return o=r.interleaved,o===null?(t.next=t,sf(r)):(t.next=o.next,o.next=t),r.interleaved=t,Sn(e,n)}function ma(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,Hd(e,n)}}function Ep(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=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};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 Ga(e,t,n,r){var o=e.updateQueue;Un=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,u=c=l=null,a=i;do{var f=a.lane,h=a.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,p=a;switch(f=t,h=n,p.tag){case 1:if(x=p.payload,typeof x=="function"){d=x.call(h,d,f);break e}d=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=p.payload,f=typeof x=="function"?x.call(h,d,f):x,f==null)break e;d=ge({},d,f);break e;case 2:Un=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=h,l=d):u=u.next=h,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Wr|=s,e.lanes=s,e.memoizedState=d}}function Pp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(j(191,o));o.call(r)}}}var bs={},rn=gr(bs),qi=gr(bs),Xi=gr(bs);function Ar(e){if(e===bs)throw Error(j(174));return e}function lf(e,t){switch(oe(Xi,t),oe(qi,e),oe(rn,bs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:du(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=du(t,e)}ae(rn),oe(rn,t)}function Vo(){ae(rn),ae(qi),ae(Xi)}function C0(e){Ar(Xi.current);var t=Ar(rn.current),n=du(t,e.type);t!==n&&(oe(qi,e),oe(rn,n))}function cf(e){qi.current===e&&(ae(rn),ae(qi))}var fe=gr(0);function Ka(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 vc=[];function uf(){for(var e=0;e<vc.length;e++)vc[e]._workInProgressVersionPrimary=null;vc.length=0}var ga=Rn.ReactCurrentDispatcher,wc=Rn.ReactCurrentBatchConfig,zr=0,pe=null,Pe=null,Re=null,Qa=!1,Di=!1,Zi=0,gk=0;function Fe(){throw Error(j(321))}function df(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Wt(e[n],t[n]))return!1;return!0}
vendor: 8,365 bytes, line 38
38function ff(e,t,n,r,o,i){if(zr=i,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ga.current=e===null||e.memoizedState===null?bk:xk,e=n(r,o),Di){i=0;do{if(Di=!1,Zi=0,25<=i)throw Error(j(301));i+=1,Re=Pe=null,t.updateQueue=null,ga.current=Sk,e=n(r,o)}while(Di)}if(ga.current=Ya,t=Pe!==null&&Pe.next!==null,zr=0,Re=Pe=pe=null,Qa=!1,t)throw Error(j(300));return e}function hf(){var e=Zi!==0;return Zi=0,e}function qt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?pe.memoizedState=Re=e:Re=Re.next=e,Re}function Ct(){if(Pe===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=Re===null?pe.memoizedState:Re.next;if(t!==null)Re=t,Pe=e;else{if(e===null)throw Error(j(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},Re===null?pe.memoizedState=Re=e:Re=Re.next=e}return Re}function Ji(e,t){return typeof t=="function"?t(e):t}function bc(e){var t=Ct(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=Pe,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,l=null,c=i;do{var u=c.lane;if((zr&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=d,s=r):l=l.next=d,pe.lanes|=u,Wr|=u}c=c.next}while(c!==null&&c!==i);l===null?s=r:l.next=a,Wt(r,t.memoizedState)||(et=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,pe.lanes|=i,Wr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xc(e){var t=Ct(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Wt(i,t.memoizedState)||(et=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function E0(){}function P0(e,t){var n=pe,r=Ct(),o=t(),i=!Wt(r.memoizedState,o);if(i&&(r.memoizedState=o,et=!0),r=r.queue,pf(A0.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Re!==null&&Re.memoizedState.tag&1){if(n.flags|=2048,es(9,R0.bind(null,n,r,o,t),void 0,null),Ae===null)throw Error(j(349));zr&30||T0(n,t,o)}return o}function T0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=pe.updateQueue,t===null?(t={lastEffect:null,stores:null},pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function R0(e,t,n,r){t.value=n,t.getSnapshot=r,D0(t)&&N0(e)}function A0(e,t,n){return n(function(){D0(t)&&N0(e)})}function D0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wt(e,n)}catch{return!0}}function N0(e){var t=Sn(e,1);t!==null&&zt(t,e,1,-1)}function Tp(e){var t=qt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ji,lastRenderedState:e},t.queue=e,e=e.dispatch=wk.bind(null,pe,e),[t.memoizedState,e]}function es(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=pe.updateQueue,t===null?(t={lastEffect:null,stores:null},pe.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 M0(){return Ct().memoizedState}function ya(e,t,n,r){var o=qt();pe.flags|=e,o.memoizedState=es(1|t,n,void 0,r===void 0?null:r)}function xl(e,t,n,r){var o=Ct();r=r===void 0?null:r;var i=void 0;if(Pe!==null){var s=Pe.memoizedState;if(i=s.destroy,r!==null&&df(r,s.deps)){o.memoizedState=es(t,n,i,r);return}}pe.flags|=e,o.memoizedState=es(1|t,n,i,r)}function Rp(e,t){return ya(8390656,8,e,t)}function pf(e,t){return xl(2048,8,e,t)}function j0(e,t){return xl(4,2,e,t)}function L0(e,t){return xl(4,4,e,t)}function _0(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 O0(e,t,n){return n=n!=null?n.concat([e]):null,xl(4,4,_0.bind(null,t,e),n)}function mf(){}function I0(e,t){var n=Ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&df(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function F0(e,t){var n=Ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&df(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function B0(e,t,n){return zr&21?(Wt(n,t)||(n=Wy(),pe.lanes|=n,Wr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,et=!0),e.memoizedState=n)}function yk(e,t){var n=ne;ne=n!==0&&4>n?n:4,e(!0);var r=wc.transition;wc.transition={};try{e(!1),t()}finally{ne=n,wc.transition=r}}function V0(){return Ct().memoizedState}function vk(e,t,n){var r=or(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},U0(e))$0(t,n);else if(n=S0(e,t,n,r),n!==null){var o=Ye();zt(n,e,r,o),z0(n,t,r)}}function wk(e,t,n){var r=or(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(U0(e))$0(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Wt(a,s)){var l=t.interleaved;l===null?(o.next=o,sf(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=S0(e,t,o,r),n!==null&&(o=Ye(),zt(n,e,r,o),z0(n,t,r))}}function U0(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function $0(e,t){Di=Qa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function z0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hd(e,n)}}var Ya={readContext:kt,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},bk={readContext:kt,useCallback:function(e,t){return qt().memoizedState=[e,t===void 0?null:t],e},useContext:kt,useEffect:Rp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ya(4194308,4,_0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ya(4194308,4,e,t)},useInsertionEffect:function(e,t){return ya(4,2,e,t)},useMemo:function(e,t){var n=qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qt();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=vk.bind(null,pe,e),[r.memoizedState,e]},useRef:function(e){var t=qt();return e={current:e},t.memoizedState=e},useState:Tp,useDebugValue:mf,useDeferredValue:function(e){return qt().memoizedState=e},useTransition:function(){var e=Tp(!1),t=e[0];return e=yk.bind(null,e[1]),qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pe,o=qt();if(ue){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),Ae===null)throw Error(j(349));zr&30||T0(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Rp(A0.bind(null,r,i,e),[e]),r.flags|=2048,es(9,R0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=qt(),t=Ae.identifierPrefix;if(ue){var n=yn,r=gn;n=(r&~(1<<32-$t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=gk++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},xk={readContext:kt,useCallback:I0,useContext:kt,useEffect:pf,useImperativeHandle:O0,useInsertionEffect:j0,useLayoutEffect:L0,useMemo:F0,useReducer:bc,useRef:M0,useState:function(){return bc(Ji)},useDebugValue:mf,useDeferredValue:function(e){var t=Ct();return B0(t,Pe.memoizedState,e)},useTransition:function(){var e=bc(Ji)[0],t=Ct().memoizedState;return[e,t]},useMutableSource:E0,useSyncExternalStore:P0,useId:V0,unstable_isNewReconciler:!1},Sk={readContext:kt,useCallback:I0,useContext:kt,useEffect:pf,useImperativeHandle:O0,useInsertionEffect:j0,useLayoutEffect:L0,useMemo:F0,useReducer:xc,useRef:M0,useState:function(){return xc(Ji)},useDebugValue:mf,useDeferredValue:function(e){var t=Ct();return Pe===null?t.memoizedState=e:B0(t,Pe.memoizedState,e)}
vendor: 4,662 bytes, lines 38-40
38,useTransition:function(){var e=xc(Ji)[0],t=Ct().memoizedState;return[e,t]},useMutableSource:E0,useSyncExternalStore:P0,useId:V0,unstable_isNewReconciler:!1};function Ot(e,t){if(e&&e.defaultProps){t=ge({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Mu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ge({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Sl={isMounted:function(e){return(e=e._reactInternals)?Yr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ye(),o=or(e),i=vn(r,o);i.payload=t,n!=null&&(i.callback=n),t=nr(e,i,o),t!==null&&(zt(t,e,o,r),ma(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ye(),o=or(e),i=vn(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=nr(e,i,o),t!==null&&(zt(t,e,o,r),ma(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ye(),r=or(e),o=vn(n,r);o.tag=2,t!=null&&(o.callback=t),t=nr(e,o,r),t!==null&&(zt(t,e,r,n),ma(t,e,r))}};function Ap(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Gi(n,r)||!Gi(o,i):!0}function W0(e,t,n){var r=!1,o=lr,i=t.contextType;return typeof i=="object"&&i!==null?i=kt(i):(o=nt(t)?Ur:ze.current,r=t.contextTypes,i=(r=r!=null)?Io(e,o):lr),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Sl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Dp(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&&Sl.enqueueReplaceState(t,t.state,null)}function ju(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},af(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=kt(i):(i=nt(t)?Ur:ze.current,o.context=Io(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Mu(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Sl.enqueueReplaceState(o,o.state,null),Ga(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Uo(e,t){try{var n="",r=t;do n+=qx(r),r=r.return;while(r);var o=n}catch(i){o=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Sc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Lu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var kk=typeof WeakMap=="function"?WeakMap:Map;function H0(e,t,n){n=vn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xa||(Xa=!0,Wu=r),Lu(e,t)},n}function G0(e,t,n){n=vn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Lu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Lu(e,t),typeof r!="function"&&(rr===null?rr=new Set([this]):rr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Np(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new kk;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ik.bind(null,e,t,n),t.then(e,e))}function Mp(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 jp(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=vn(-1,1),t.tag=2,nr(n,t,1))),n.lanes|=1),e)}var Ck=Rn.ReactCurrentOwner,et=!1;function He(e,t,n,r){t.child=e===null?x0(t,null,n,r):Bo(t,e.child,n,r)}function Lp(e,t,n,r,o){n=n.render;var i=t.ref;return ko(t,o),r=ff(e,t,n,r,i,o),n=hf(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,kn(e,t,o)):(ue&&n&&Jd(t),t.flags|=1,He(e,t,r,o),t.child)}function _p(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!kf(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,K0(e,t,i,r,o)):(e=x
vendor: 5,722 bytes, line 40
40a(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Gi,n(s,r)&&e.ref===t.ref)return kn(e,t,o)}return t.flags|=1,e=ir(i,r),e.ref=t.ref,e.return=t,t.child=e}function K0(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Gi(i,r)&&e.ref===t.ref)if(et=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(et=!0);else return t.lanes=e.lanes,kn(e,t,o)}return _u(e,t,n,r,o)}function Q0(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},oe(po,ot),ot|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,oe(po,ot),ot|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,oe(po,ot),ot|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,oe(po,ot),ot|=r;return He(e,t,o,n),t.child}function Y0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _u(e,t,n,r,o){var i=nt(n)?Ur:ze.current;return i=Io(t,i),ko(t,o),n=ff(e,t,n,r,i,o),r=hf(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,kn(e,t,o)):(ue&&r&&Jd(t),t.flags|=1,He(e,t,n,o),t.child)}function Op(e,t,n,r,o){if(nt(n)){var i=!0;Ua(t)}else i=!1;if(ko(t,o),t.stateNode===null)va(e,t),W0(t,n,r),ju(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=kt(c):(c=nt(n)?Ur:ze.current,c=Io(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==c)&&Dp(t,s,r,c),Un=!1;var f=t.memoizedState;s.state=f,Ga(t,r,s,o),l=t.memoizedState,a!==r||f!==l||tt.current||Un?(typeof u=="function"&&(Mu(t,n,u,r),l=t.memoizedState),(a=Un||Ap(t,n,a,r,f,l,c))?(d||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=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,k0(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Ot(t.type,a),s.props=c,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=kt(l):(l=nt(n)?Ur:ze.current,l=Io(t,l));var h=n.getDerivedStateFromProps;(u=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||f!==l)&&Dp(t,s,r,l),Un=!1,f=t.memoizedState,s.state=f,Ga(t,r,s,o);var x=t.memoizedState;a!==d||f!==x||tt.current||Un?(typeof h=="function"&&(Mu(t,n,h,r),x=t.memoizedState),(c=Un||Ap(t,n,c,r,f,x,l)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=l,r=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ou(e,t,n,r,i,o)}function Ou(e,t,n,r,o,i){Y0(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&xp(t,n,!1),kn(e,t,i);r=t.stateNode,Ck.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Bo(t,e.child,null,i),t.child=Bo(t,null,a,i)):He(e,t,a,i),t.memoizedState=r.state,o&&xp(t,n,!0),t.child}function q0(e){var t=e.stateNode;t.pendingContext?bp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bp(e,t.context,!1),lf(e,t.containerInfo)}function Ip(e,t,n,r,o){return Fo(),tf(o),t.flags|=256,He(e,t,n,r),t.child}var Iu={dehydrated:null,treeContext:null,retryLane:0};function Fu(e){return{baseLanes:e,cachePool:null,transitions:null}}function X0(e,t,n){var r=t.pendingProps,o=fe.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),oe(fe,o&1),e===null)return Du(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,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=El(s,r,0,null),e=Br(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Fu(n),t.memoizedState=Iu,e):gf(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return Ek(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ir(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=ir
vendor: 8,353 bytes, line 40
40(a,i):(i=Br(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Fu(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Iu,r}return i=e.child,e=i.sibling,r=ir(i,{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 gf(e,t){return t=El({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qs(e,t,n,r){return r!==null&&tf(r),Bo(t,e.child,null,n),e=gf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ek(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=Sc(Error(j(422))),qs(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=El({mode:"visible",children:r.children},o,0,null),i=Br(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Bo(t,e.child,null,s),t.child.memoizedState=Fu(s),t.memoizedState=Iu,i);if(!(t.mode&1))return qs(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(j(419)),r=Sc(i,r,void 0),qs(e,t,s,r)}if(a=(s&e.childLanes)!==0,et||a){if(r=Ae,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Sn(e,o),zt(r,e,o,-1))}return Sf(),r=Sc(Error(j(421))),qs(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Fk.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,st=tr(o.nextSibling),lt=t,ue=!0,Ut=null,e!==null&&(yt[vt++]=gn,yt[vt++]=yn,yt[vt++]=$r,gn=e.id,yn=e.overflow,$r=t),t=gf(t,r.children),t.flags|=4096,t)}function Fp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Nu(e.return,t,n)}function kc(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Z0(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(He(e,t,r.children,n),r=fe.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&&Fp(e,n,t);else if(e.tag===19)Fp(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(oe(fe,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Ka(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),kc(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ka(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}kc(t,!0,n,null,i);break;case"together":kc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function va(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function kn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=ir(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ir(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Pk(e,t,n){switch(t.tag){case 3:q0(t),Fo();break;case 5:C0(t);break;case 1:nt(t.type)&&Ua(t);break;case 4:lf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;oe(Wa,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(oe(fe,fe.current&1),t.flags|=128,null):n&t.child.childLanes?X0(e,t,n):(oe(fe,fe.current&1),e=kn(e,t,n),e!==null?e.sibling:null);oe(fe,fe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Z0(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),oe(fe,fe.current),r)break;return null;case 22:case 23:return t.lanes=0,Q0(e,t,n)}return kn(e,t,n)}var J0,Bu,ev,tv;J0=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}};Bu=function(){};ev=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ar(rn.current);var i=null;switch(n){case"input":o=au(e,o),r=au(e,r),i=[];break;case"select":o=ge({},o,{value:void 0}),r=ge({},r,{value:void 0}),i=[];break;case"textarea":o=uu(e,o),r=uu(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ba)}fu(n,r);var s;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var a=o[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Bi.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(a=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="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||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Bi.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&se("scroll",e),i||a===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};tv=function(e,t,n,r){n!==r&&(t.flags|=4)};function hi(e,t){if(!ue)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 Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Tk(e,t,n){var r=t.pendingProps;switch(ef(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return nt(t.type)&&Va(),Be(t),null;case 3:return r=t.stateNode,Vo(),ae(tt),ae(ze),uf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Qs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ut!==null&&(Ku(Ut),Ut=null))),Bu(e,t),Be(t),null;case 5:cf(t);var o=Ar(Xi.current);if(n=t.type,e!==null&&t.stateNode!=null)ev(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(j(166));return Be(t),null}if(e=Ar(rn.current),Qs(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[en]=t,r[Yi]=i,e=(t.mode&1)!==0,n){case"dialog":se("cancel",r),se("close",r);break;case"iframe":case"object":case"embed":se("load",r);break;case"video":case"audio":for(o=0;o<Si.length;o++)se(Si[o],r);break;case"source":se("error",r);break;case"img":case"image":case"link":se("error",r),se("load",r);break;case"details":se("toggle",r);break;case"input":Kh(r,i),se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},se("invalid",r);break;case"textarea":Yh(r,i),se("invalid",r)}fu(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];
vendor: 4,512 bytes, line 40
40s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Ks(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Ks(r.textContent,a,e),o=["children",""+a]):Bi.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&se("scroll",r)}switch(n){case"input":Bs(r),Qh(r,i,!0);break;case"textarea":Bs(r),qh(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Ba)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ay(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[en]=t,e[Yi]=r,J0(e,t,!1,!1),t.stateNode=e;e:{switch(s=hu(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;o<Si.length;o++)se(Si[o],e);o=r;break;case"source":se("error",e),o=r;break;case"img":case"image":case"link":se("error",e),se("load",e),o=r;break;case"details":se("toggle",e),o=r;break;case"input":Kh(e,r),o=au(e,r),se("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=ge({},r,{value:void 0}),se("invalid",e);break;case"textarea":Yh(e,r),o=uu(e,r),se("invalid",e);break;default:o=r}fu(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?My(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Dy(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Vi(e,l):typeof l=="number"&&Vi(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Bi.hasOwnProperty(i)?l!=null&&i==="onScroll"&&se("scroll",e):l!=null&&Bd(e,i,l,s))}switch(n){case"input":Bs(e),Qh(e,r,!1);break;case"textarea":Bs(e),qh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ar(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?wo(e,!!r.multiple,i,!1):r.defaultValue!=null&&wo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ba)}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 Be(t),null;case 6:if(e&&t.stateNode!=null)tv(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(j(166));if(n=Ar(Xi.current),Ar(rn.current),Qs(t)){if(r=t.stateNode,n=t.memoizedProps,r[en]=t,(i=r.nodeValue!==n)&&(e=lt,e!==null))switch(e.tag){case 3:Ks(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ks(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[en]=t,t.stateNode=r}return Be(t),null;case 13:if(ae(fe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ue&&st!==null&&t.mode&1&&!(t.flags&128))w0(),Fo(),t.flags|=98560,i=!1;else if(i=Qs(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(j(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(j(317));i[en]=t}else Fo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Be(t),i=!1}else Ut!==null&&(Ku(Ut),Ut=null),i=!0;if(!i)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||fe.current&1?Te===0&&(Te=3):Sf())),t.updateQueue!==null&&(t.flags|=4),Be(t),null);case 4:return Vo(),Bu(e,t),e===null&&Ki(t.stateNode.containerInfo),Be(t),null;case 10:return of(t.type._context),Be(t),null;case 17:return nt(t.type)&&Va(),Be(t),null;case 19:if(ae(fe),i=t.memoizedState,i===null)return Be(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)hi(i,!1);else{if(Te!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ka(e),s!==null){for(t.flags|=128,hi(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deleti
vendor: 24,352 bytes, line 40
40ons=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return oe(fe,fe.current&1|2),t.child}e=e.sibling}i.tail!==null&&xe()>$o&&(t.flags|=128,r=!0,hi(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ka(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),hi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ue)return Be(t),null}else 2*xe()-i.renderingStartTime>$o&&n!==1073741824&&(t.flags|=128,r=!0,hi(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=xe(),t.sibling=null,n=fe.current,oe(fe,r?n&1|2:n&1),t):(Be(t),null);case 22:case 23:return xf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ot&1073741824&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function Rk(e,t){switch(ef(t),t.tag){case 1:return nt(t.type)&&Va(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vo(),ae(tt),ae(ze),uf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return cf(t),null;case 13:if(ae(fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Fo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(fe),null;case 4:return Vo(),null;case 10:return of(t.type._context),null;case 22:case 23:return xf(),null;case 24:return null;default:return null}}var Xs=!1,Ue=!1,Ak=typeof WeakSet=="function"?WeakSet:Set,F=null;function ho(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){we(e,t,r)}else n.current=null}function Vu(e,t,n){try{n()}catch(r){we(e,t,r)}}var Bp=!1;function Dk(e,t){if(ku=Oa,e=s0(),Zd(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===o&&(a=s),f===i&&++u===r&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Cu={focusedElem:e,selectionRange:n},Oa=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var p=x.memoizedProps,w=x.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?p:Ot(t.type,p),w);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(b){we(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return x=Bp,Bp=!1,x}function Ni(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Vu(t,n,i)}o=o.next}while(o!==r)}}function kl(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 Uu(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 nv(e){var t=e.alternate;t!==null&&(e.alternate=null,nv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[en],delete t[Yi],delete t[Tu],delete t[fk],delete t[hk])),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 rv(e){return e.tag===5||e.tag===3||e.tag===4}function Vp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rv(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 $u(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=Ba));else if(r!==4&&(e=e.child,e!==null))for($u(e,t,n),e=e.sibling;e!==null;)$u(e,t,n),e=e.sibling}function zu(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(zu(e,t,n),e=e.sibling;e!==null;)zu(e,t,n),e=e.sibling}var De=null,Vt=!1;function _n(e,t,n){for(n=n.child;n!==null;)ov(e,t,n),n=n.sibling}function ov(e,t,n){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(ml,n)}catch{}switch(n.tag){case 5:Ue||ho(n,t);case 6:var r=De,o=Vt;De=null,_n(e,t,n),De=r,Vt=o,De!==null&&(Vt?(e=De,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):De.removeChild(n.stateNode));break;case 18:De!==null&&(Vt?(e=De,n=n.stateNode,e.nodeType===8?gc(e.parentNode,n):e.nodeType===1&&gc(e,n),Wi(e)):gc(De,n.stateNode));break;case 4:r=De,o=Vt,De=n.stateNode.containerInfo,Vt=!0,_n(e,t,n),De=r,Vt=o;break;case 0:case 11:case 14:case 15:if(!Ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Vu(n,t,s),o=o.next}while(o!==r)}_n(e,t,n);break;case 1:if(!Ue&&(ho(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){we(n,t,a)}_n(e,t,n);break;case 21:_n(e,t,n);break;case 22:n.mode&1?(Ue=(r=Ue)||n.memoizedState!==null,_n(e,t,n),Ue=r):_n(e,t,n);break;default:_n(e,t,n)}}function Up(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ak),t.forEach(function(r){var o=Bk.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Mt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:De=a.stateNode,Vt=!1;break e;case 3:De=a.stateNode.containerInfo,Vt=!0;break e;case 4:De=a.stateNode.containerInfo,Vt=!0;break e}a=a.return}if(De===null)throw Error(j(160));ov(i,s,o),De=null,Vt=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(c){we(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)iv(t,e),t=t.sibling}function iv(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Mt(t,e),Yt(e),r&4){try{Ni(3,e,e.return),kl(3,e)}catch(p){we(e,e.return,p)}try{Ni(5,e,e.return)}catch(p){we(e,e.return,p)}}break;case 1:Mt(t,e),Yt(e),r&512&&n!==null&&ho(n,n.return);break;case 5:if(Mt(t,e),Yt(e),r&512&&n!==null&&ho(n,n.return),e.flags&32){var o=e.stateNode;try{Vi(o,"")}catch(p){we(e,e.return,p)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Ty(o,i),hu(a,s);var c=hu(a,i);for(s=0;s<l.length;s+=2){var u=l[s],d=l[s+1];u==="style"?My(o,d):u==="dangerouslySetInnerHTML"?Dy(o,d):u==="children"?Vi(o,d):Bd(o,u,d,c)}switch(a){case"input":lu(o,i);break;case"textarea":Ry(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?wo(o,!!i.multiple,h,!1):f!==!!i.multiple&&(i.defaultValue!=null?wo(o,!!i.multiple,i.defaultValue,!0):wo(o,!!i.multiple,i.multiple?[]:"",!1))}o[Yi]=i}catch(p){we(e,e.return,p)}}break;case 6:if(Mt(t,e),Yt(e),r&4){if(e.stateNode===null)throw Error(j(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(p){we(e,e.return,p)}}break;case 3:if(Mt(t,e),Yt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Wi(t.containerInfo)}catch(p){we(e,e.return,p)}break;case 4:Mt(t,e),Yt(e);break;case 13:Mt(t,e),Yt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(wf=xe())),r&4&&Up(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(Ue=(c=Ue)||u,Mt(t,e),Ue=c):Mt(t,e),Yt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(F=e,u=e.child;u!==null;){for(d=F=u;F!==null;){switch(f=F,h=f.child,f.tag){case 0:case 11:case 14:case 15:Ni(4,f,f.return);break;case 1:ho(f,f.return);var x=f.stateNode;if(typeof x.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(p){we(r,n,p)}}break;case 5:ho(f,f.return);break;case 22:if(f.memoizedState!==null){zp(d);continue}}h!==null?(h.return=f,F=h):zp(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{o=d.stateNode,c?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Ny("display",s))}catch(p){we(e,e.return,p)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(p){we(e,e.return,p)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Mt(t,e),Yt(e),r&4&&Up(e);break;case 21:break;default:Mt(t,e),Yt(e)}}function Yt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(rv(n)){var r=n;break e}n=n.return}throw Error(j(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Vi(o,""),r.flags&=-33);var i=Vp(e);zu(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Vp(e);$u(e,a,s);break;default:throw Error(j(161))}}catch(l){we(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nk(e,t,n){F=e,sv(e)}function sv(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var o=F,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Xs;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||Ue;a=Xs;var c=Ue;if(Xs=s,(Ue=l)&&!c)for(F=o;F!==null;)s=F,l=s.child,s.tag===22&&s.memoizedState!==null?Wp(o):l!==null?(l.return=s,F=l):Wp(o);for(;i!==null;)F=i,sv(i),i=i.sibling;F=o,Xs=a,Ue=c}$p(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,F=i):$p(e)}}function $p(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ue||kl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ue)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ot(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Pp(t,i,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}Pp(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 c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&Wi(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(j(163))}Ue||t.flags&512&&Uu(t)}catch(f){we(t,t.return,f)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function zp(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function Wp(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{kl(4,t)}catch(l){we(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){we(t,o,l)}}var i=t.return;try{Uu(t)}catch(l){we(t,i,l)}break;case 5:var s=t.return;try{Uu(t)}catch(l){we(t,s,l)}}}catch(l){we(t,t.return,l)}if(t===e){F=null;break}var a=t.sibling;if(a!==null){a.return=t.return,F=a;break}F=t.return}}var Mk=Math.ceil,qa=Rn.ReactCurrentDispatcher,yf=Rn.ReactCurrentOwner,xt=Rn.ReactCurrentBatchConfig,J=0,Ae=null,Ce=null,je=0,ot=0,po=gr(0),Te=0,ts=null,Wr=0,Cl=0,vf=0,Mi=null,Je=null,wf=0,$o=1/0,hn=null,Xa=!1,Wu=null,rr=null,Zs=!1,qn=null,Za=0,ji=0,Hu=null,wa=-1,ba=0;function Ye(){return J&6?xe():wa!==-1?wa:wa=xe()}function or(e){return e.mode&1?J&2&&je!==0?je&-je:mk.transition!==null?(ba===0&&(ba=Wy()),ba):(e=ne,e!==0||(e=window.event,e=e===void 0?16:Xy(e.type)),e):1}function zt(e,t,n,r){if(50<ji)throw ji=0,Hu=null,Error(j(185));ys(e,n,r),(!(J&2)||e!==Ae)&&(e===Ae&&(!(J&2)&&(Cl|=n),Te===4&&zn(e,je)),rt(e,r),n===1&&J===0&&!(t.mode&1)&&($o=xe()+500,bl&&yr()))}function rt(e,t){var n=e.callbackNode;mS(e,t);var r=_a(e,e===Ae?je:0);if(r===0)n!==null&&Jh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Jh(n),t===1)e.tag===0?pk(Hp.bind(null,e)):g0(Hp.bind(null,e)),uk(function(){!(J&6)&&yr()}),n=null;else{switch(Hy(r)){case 1:n=Wd;break;case 4:n=$y;break;case 16:n=La;break;case 536870912:n=zy;break;default:n=La}n=pv(n,av.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function av(e,t){if(wa=-1,ba=0,J&6)throw Error(j(327));var n=e.callbackNode;if(Co()&&e.callbackNode!==n)return null;var r=_a(e,e===Ae?je:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ja(e,r);else{t=r;var o=J;J|=2;var i=cv();(Ae!==e||je!==t)&&(hn=null,$o=xe()+500,Fr(e,t));do try{_k();break}catch(a){lv(e,a)}while(!0);rf(),qa.current=i,J=o,Ce!==null?t=0:(Ae=null,je=0,t=Te)}if(t!==0){if(t===2&&(o=vu(e),o!==0&&(r=o,t=Gu(e,o))),t===1)throw n=ts,Fr(e,0),zn(e,r),rt(e,xe()),n;if(t===6)zn(e,r);else{if(o=e.current.alternate,!(r&30)&&!jk(o)&&(t=Ja(e,r),t===2&&(i=vu(e),i!==0&&(r=i,t=Gu(e,i))),t===1))throw n=ts,Fr(e,0),zn(e,r),rt(e,xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(j(345));case 2:Cr(e,Je,hn);break;case 3:if(zn(e,r),(r&130023424)===r&&(t=wf+500-xe(),10<t)){if(_a(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Ye(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Pu(Cr.bind(null,e,Je,hn),t);break}Cr(e,Je,hn);break;case 4:if(zn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-$t(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Mk(r/1960))-r,10<r){e.timeoutHandle=Pu(Cr.bind(null,e,Je,hn),r);break}Cr(e,Je,hn);break;case 5:Cr(e,Je,hn);break;default:throw Error(j(329))}}}return rt(e,xe()),e.callbackNode===n?av.bind(null,e):null}function Gu(e,t){var n=Mi;return e.current.memoizedState.isDehydrated&&(Fr(e,t).flags|=256),e=Ja(e,t),e!==2&&(t=Je,Je=n,t!==null&&Ku(t)),e}function Ku(e){Je===null?Je=e:Je.push.apply(Je,e)}function jk(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 o=n[r],i=o.getSnapshot;o=o.value;try{if(!Wt(i(),o))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 zn(e,t){for(t&=~vf,t&=~Cl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$t(t),r=1<<n;e[n]=-1,t&=~r}}function Hp(e){if(J&6)throw Error(j(327));Co();var t=_a(e,0);if(!(t&1))return rt(e,xe()),null;var n=Ja(e,t);if(e.tag!==0&&n===2){var r=vu(e);r!==0&&(t=r,n=Gu(e,r))}if(n===1)throw n=ts,Fr(e,0),zn(e,t),rt(e,xe()),n;if(n===6)throw Error(j(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cr(e,Je,hn),rt(e,xe()),null}function bf(e,t){var n=J;J|=1;try{return e(t)}finally{J=n,J===0&&($o=xe()+500,bl&&yr())}}function Hr(e){qn!==null&&qn.tag===0&&!(J&6)&&Co();var t=J;J|=1;var n=xt.transition,r=ne;try{if(xt.transition=null,ne=1,e)return e()}finally{ne=r,xt.transition=n,J=t,!(J&6)&&yr()}}function xf(){ot=po.current,ae(po)}function Fr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ck(n)),Ce!==null)for(n=Ce.return;n!==null;){var r=n;switch(ef(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Va();break;case 3:Vo(),ae(tt),ae(ze),uf();break;case 5:cf(r);break;case 4:Vo();break;case 13:ae(fe);break;case 19:ae(fe);break;case 10:of(r.type._context);break;case 22:case 23:xf()}n=n.return}if(Ae=e,Ce=e=ir(e.current,null),je=ot=t,Te=0,ts=null,vf=Cl=Wr=0,Je=Mi=null,Rr!==null){for(t=0;t<Rr.length;t++)if(n=Rr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Rr=null}return e}function lv(e,t){do{var n=Ce;try{if(rf(),ga.current=Ya,Qa){for(var r=pe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Qa=!1}if(zr=0,Re=Pe=pe=null,Di=!1,Zi=0,yf.current=null,n===null||n.return===null){Te=1,ts=t,Ce=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=je,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=Mp(s);if(h!==null){h.flags&=-257,jp(h,s,a,i,t),h.mode&1&&Np(i,c,t),t=h,l=c;var x=t.updateQueue;if(x===null){var p=new Set;p.add(l),t.updateQueue=p}else x.add(l);break e}else{if(!(t&1)){Np(i,c,t),Sf();break e}l=Error(j(426))}}else if(ue&&a.mode&1){var w=Mp(s);if(w!==null){!(w.flags&65536)&&(w.flags|=256),jp(w,s,a,i,t),tf(Uo(l,a));break e}}i=l=Uo(l,a),Te!==4&&(Te=2),Mi===null?Mi=[i]:Mi.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=H0(i,l,t);Ep(i,m);break e;case 1:a=l;var g=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(rr===null||!rr.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=G0(i,a,t);Ep(i,b);break e}}i=i.return}while(i!==null)}dv(n)}catch(k){t=k,Ce===n&&n!==null&&(Ce=n=n.return);continue}break}while(!0)}function cv(){var e=qa.current;return qa.current=Ya,e===null?Ya:e}function Sf(){(Te===0||Te===3||Te===2)&&(Te=4),Ae===null||!(Wr&268435455)&&!(Cl&268435455)||zn(Ae,je)}function Ja(e,t){var n=J;J|=2;var r=cv();(Ae!==e||je!==t)&&(hn=null,Fr(e,t));do try{Lk();break}catch(o){lv(e,o)}while(!0);if(rf(),J=n,qa.current=r,Ce!==null)throw Error(j(261));return Ae=null,je=0,Te}function Lk(){for(;Ce!==null;)uv(Ce)}function _k(){for(;Ce!==null&&!sS();)uv(Ce)}function uv(e){var t=hv(e.alternate,e,ot);e.memoizedProps=e.pendingProps,t===null?dv(e):Ce=t,yf.current=null}function dv(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Rk(n,t),n!==null){n.flags&=32767,Ce=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Te=6,Ce=null;return}}else if(n=Tk(n,t,ot),n!==null){Ce=n;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);Te===0&&(Te=5)}function Cr(e,t,n){var r=ne,o=xt.transition;try{xt.transition=null,ne=1,Ok(e,t,n,r)}finally{xt.transition=o,ne=r}return null}function Ok(e,t,n,r){do Co();while(qn!==null);if(J&6)throw Error(j(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(j(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(gS(e,i),e===Ae&&(Ce=Ae=null,je=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Zs||(Zs=!0,pv(La,function(){return Co(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=xt.transition,xt.transition=null;var s=ne;ne=1;var a=J;J|=4,yf.current=null,Dk(e,n),iv(n,e),nk(Cu),Oa=!!ku,Cu=ku=null,e.current=n,Nk(n),aS(),J=a,ne=s,xt.transition=i}else e.current=n;if(Zs&&(Zs=!1,qn=e,Za=o),i=e.pendingLanes,i===0&&(rr=null),uS(n.stateNode),rt(e,xe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Xa)throw Xa=!1,e=Wu,Wu=null,e;return Za&1&&e.tag!==0&&Co(),i=e.pendingLanes,i&1?e===Hu?ji++:(ji=0,Hu=e):ji=0,yr(),null}function Co(){if(qn!==null){var e=Hy(Za),t=xt.transition,n=ne;try{if(xt.transition=null,ne=16>e?16:e,qn===null)var r=!1;else{if(e=qn,qn=null,Za=0,J&6)throw Error(j(331));var o=J;for(J|=4,F=e.current;F!==null;){var i=F,s=i.child;if(F.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(F=c;F!==null;){var u=F;switch(u.tag){case 0:case 11:case 15:Ni(8,u,i)}var d=u.child;if(d!==null)d.return=u,F=d;else for(;F!==null;){u=F;var f=u.sibling,h=u.return;if(nv(u),u===c){F=null;break}if(f!==null){f.return=h,F=f;break}F=h}}}var x=i.alternate;if(x!==null){var p=x.child;if(p!==null){x.child=null;do{var w=p.sibling;p.sibling=null,p=w}while(p!==null)}}F=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,F=s;else e:for(;F!==null;){if(i=F,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ni(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,F=m;break e}F=i.return}}var g=e.current;for(F=g;F!==null;){s=F;var y=s.child;if(s.subtreeFlags&2064&&y!==null)y.return=s,F=y;else e:for(s=g;F!==null;){if(a=F,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:kl(9,a)}}catch(k){we(a,a.return,k)}if(a===s){F=null;break e}var b=a.sibling;if(b!==null){b.return=a.return,F=b;break e}F=a.return}}if(J=o,yr(),nn&&typeof nn.onPostCommitFiberRoot=="function")try{nn.onPostCommitFiberRoot(ml,e)}catch{}r=!0}return r}finally{ne=n,xt.transition=t}}return!1}function Gp(e,t,n){t=Uo(n,t),t=H0(e,t,1),e=nr(e,t,1),t=Ye(),e!==null&&(ys(e,1,t),rt(e,t))}function we(e,t,n){if(e.tag===3)Gp(e,e,n);else for(;t!==null;){if(t.tag===3){Gp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(rr===null||!rr.has(r))){e=Uo(n,e),e=G0(t,e,1),t=nr(t,e,1),e=Ye(),t!==null&&(ys(t,1,e),rt(t,e));break}}t=t.return}}function Ik(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ye(),e.pingedLanes|=e.suspendedLanes&n,Ae===e&&(je&n)===n&&(Te===4||Te===3&&(je&130023424)===je&&500>xe()-wf?Fr(e,0):vf|=n),rt(e,t)}function fv(e,t){t===0&&(e.mode&1?(t=$s,$s<<=1,!($s&130023424)&&($s=4194304)):t=1);var n=Ye();e=Sn(e,t),e!==null&&(ys(e,t,n),rt(e,n))}function Fk(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),fv(e,n)}function Bk(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),fv(e,n)}var hv;hv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||tt.current)et=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return et=!1,Pk(e,t,n);et=!!(e.flags&131072)}else et=!1,ue&&t.flags&1048576&&y0(t,za,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;va(e,t),e=t.pendingProps;var o=Io(t,ze.current);ko(t,n),o=ff(null,t,r,e,o,n);var i=hf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,nt(r)?(i=!0,Ua(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,af(t),o.updater=Sl,t.stateNode=o,o._reactInternals=t,ju(t,r,e,n),t=Ou(null,t,r,!0,i,n)):(t.tag=0,ue&&i&&Jd(t),He(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(va(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Uk(r),e=Ot(r,e),o){case 0:t=_u(null,t,r,e,n);break e;case 1:t=Op(null,t,r,e,n);break e;case 11:t=Lp(null,t,r,e,n);break e;case 14:t=_p(null,t,r,Ot(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),_u(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),Op(e,t,r,o,n);case 3:e:{if(q0(t),e===null)throw Error(j(387));
vendor: 4,107 bytes, line 40
40r=t.pendingProps,i=t.memoizedState,o=i.element,k0(e,t),Ga(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Uo(Error(j(423)),t),t=Ip(e,t,r,n,o);break e}else if(r!==o){o=Uo(Error(j(424)),t),t=Ip(e,t,r,n,o);break e}else for(st=tr(t.stateNode.containerInfo.firstChild),lt=t,ue=!0,Ut=null,n=x0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fo(),r===o){t=kn(e,t,n);break e}He(e,t,r,n)}t=t.child}return t;case 5:return C0(t),e===null&&Du(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Eu(r,o)?s=null:i!==null&&Eu(r,i)&&(t.flags|=32),Y0(e,t),He(e,t,s,n),t.child;case 6:return e===null&&Du(t),null;case 13:return X0(e,t,n);case 4:return lf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bo(t,null,r,n):He(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),Lp(e,t,r,o,n);case 7:return He(e,t,t.pendingProps,n),t.child;case 8:return He(e,t,t.pendingProps.children,n),t.child;case 12:return He(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,oe(Wa,r._currentValue),r._currentValue=s,i!==null)if(Wt(i.value,s)){if(i.children===o.children&&!tt.current){t=kn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=vn(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Nu(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(j(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Nu(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}He(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ko(t,n),o=kt(o),r=r(o),t.flags|=1,He(e,t,r,n),t.child;case 14:return r=t.type,o=Ot(r,t.pendingProps),o=Ot(r.type,o),_p(e,t,r,o,n);case 15:return K0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),va(e,t),t.tag=1,nt(r)?(e=!0,Ua(t)):e=!1,ko(t,n),W0(t,r,o),ju(t,r,o,n),Ou(null,t,r,!0,e,n);case 19:return Z0(e,t,n);case 22:return Q0(e,t,n)}throw Error(j(156,t.tag))};function pv(e,t){return Uy(e,t)}function Vk(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 wt(e,t,n,r){return new Vk(e,t,n,r)}function kf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Uk(e){if(typeof e=="function")return kf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ud)return 11;if(e===$d)return 14}return 2}function ir(e,t){var n=e.alternate;return n===null?(n=wt(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 xa(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")kf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ro:return Br(n.children,o,i,t);case Vd:s=8,o|=8;break;case ru:return e=wt(12,n,t,o|2),e.elementType=ru,e.lanes=i,e;
vendor: 6,257 bytes, line 40
40case ou:return e=wt(13,n,t,o),e.elementType=ou,e.lanes=i,e;case iu:return e=wt(19,n,t,o),e.elementType=iu,e.lanes=i,e;case Cy:return El(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Sy:s=10;break e;case ky:s=9;break e;case Ud:s=11;break e;case $d:s=14;break e;case Vn:s=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=wt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Br(e,t,n,r){return e=wt(7,e,r,t),e.lanes=n,e}function El(e,t,n,r){return e=wt(22,e,r,t),e.elementType=Cy,e.lanes=n,e.stateNode={isHidden:!1},e}function Cc(e,t,n){return e=wt(6,e,null,t),e.lanes=n,e}function Ec(e,t,n){return t=wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $k(e,t,n,r,o){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=ic(0),this.expirationTimes=ic(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ic(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Cf(e,t,n,r,o,i,s,a,l){return e=new $k(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=wt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},af(i),e}function zk(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:no,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function mv(e){if(!e)return lr;e=e._reactInternals;e:{if(Yr(e)!==e||e.tag!==1)throw Error(j(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(nt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(j(171))}if(e.tag===1){var n=e.type;if(nt(n))return m0(e,n,t)}return t}function gv(e,t,n,r,o,i,s,a,l){return e=Cf(n,r,!0,e,o,i,s,a,l),e.context=mv(null),n=e.current,r=Ye(),o=or(n),i=vn(r,o),i.callback=t??null,nr(n,i,o),e.current.lanes=o,ys(e,o,r),rt(e,r),e}function Pl(e,t,n,r){var o=t.current,i=Ye(),s=or(o);return n=mv(n),t.context===null?t.context=n:t.pendingContext=n,t=vn(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=nr(o,t,s),e!==null&&(zt(e,o,s,i),ma(e,o,s)),s}function el(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 Kp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ef(e,t){Kp(e,t),(e=e.alternate)&&Kp(e,t)}function Wk(){return null}var yv=typeof reportError=="function"?reportError:function(e){console.error(e)};function Pf(e){this._internalRoot=e}Tl.prototype.render=Pf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));Pl(e,t,null,null)};Tl.prototype.unmount=Pf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Hr(function(){Pl(null,e,null,null)}),t[xn]=null}};function Tl(e){this._internalRoot=e}Tl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qy();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$n.length&&t!==0&&t<$n[n].priority;n++);$n.splice(n,0,e),n===0&&qy(e)}};function Tf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Rl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Qp(){}function Hk(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var c=el(s);i.call(c)}}var s=gv(t,r,e,0,null,!1,!1,"",Qp);return e._reactRootContainer=s,e[xn]=s.current,Ki(e.nodeType===8?e.parentNode:e),Hr(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var c=el(l);a.call(c)}}var l=Cf(e,0,!1,null,null,!1,!1,"",Qp);return e._reactRootContainer=l,e[xn]=l.current,Ki(e.nodeType===8?e.parentNode:e),Hr(function(){Pl(t,l,n,r)}),l}function Al(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=el(s);a.call(l)}}Pl(t,s,e,o)}else s=Hk(n,t,e,o,r);return el(s)}Gy=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=xi(t.pendingLanes);n!==0&&(Hd(t,n|1),rt(t,xe()),!(J&6)&&($o=xe()+500,yr()))}break;case 13:Hr(function(){var r=Sn(e,1);if(r!==null){var o=Ye();zt(r,e,1,o)}}),Ef(e,1)}};Gd=function(e){if(e.tag===13){var t=Sn(e,134217728);if(t!==null){var n=Ye();zt(t,e,134217728,n)}Ef(e,134217728)}};Ky=function(e){if(e.tag===13){var t=or(e),n=Sn(e,t);if(n!==null){var r=Ye();zt(n,e,t,r)}Ef(e,t)}};Qy=function(){return ne};Yy=function(e,t){var n=ne;try{return ne=e,t()}finally{ne=n}};mu=function(e,t,n){switch(t){case"input":if(lu(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 o=wl(r);if(!o)throw Error(j(90));Py(r),lu(r,o)}}}break;case"textarea":Ry(e,n);break;case"select":t=n.value,t!=null&&wo(e,!!n.multiple,t,!1)}};_y=bf;Oy=Hr;var Gk={usingClientEntryPoint:!1,Events:[ws,ao,wl,jy,Ly,bf]},pi={findFiberByHostInstance:Tr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Kk={bundleType:pi.bundleType,version:pi.version,rendererPackageName:pi.rendererPackageName,rendererConfig:pi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Rn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=By(e),e===null?null:e.stateNode},findFiberByHostInstance:pi.findFiberByHostInstance||Wk,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Js=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Js.isDisabled&&Js.supportsFiber)try{ml=Js.inject(Kk),nn=Js}catch{}}ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gk;ft.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Tf(t))throw Error(j(200));return zk(e,t,null,n)};ft.createRoot=function(e,t){if(!Tf(e))throw Error(j(299));var n=!1,r="",o=yv;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Cf(e,1,!1,null,null,n,!1,r,o),e[xn]=t.current,Ki(e.nodeType===8?e.parentNode:e),new Pf(t)};ft.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(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=By(t),e=e===null?null:e.stateNode,e};ft.flushSync=function(e){return Hr(e)};ft.hydrate=function(e,t,n){if(!Rl(t))throw Error(j(200));return Al(null,e,t,!0,n)};ft.hydrateRoot=function(e,t,n){if(!Tf(e))throw Error(j(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=yv;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=gv(t,null,e,1,n??null,o,!1,i,s),e[xn]=t.current,Ki(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Tl(t)};ft.render=function(e,t,n){if(!Rl(t))throw Error(j(200));return Al(null,e,t,!1,n)};ft.unmountComponentAtNode=function(e){if(!Rl(e))throw Error(j(40));return e._reactRootContainer?(Hr(function(){Al(null,null,e,!1,function(){e._reactRootContainer=null,e[xn]=null})}),!0):!1};ft.unstable_batchedUpdates=bf;ft.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Rl(n))throw Error(j(200));if(e==null||e._reactInternals===void 0)throw Error(j(38));return Al(e,t,n,!1,r)};ft.version="18.3.1-next-f1338f8080-20240426";function vv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vv)}catch(e){console.error(e)}}vv(),vy.exports=ft;var xs=vy.exports;const wv=sy(xs);var bv,Yp=xs;bv=Yp.createRoot,Yp.hydrateRoot;const Qk=1,Yk=1e6;let Pc=0;function qk(){return Pc=(Pc+1)%Number.MAX_SAFE_INTEGER,Pc.toString()}const Tc=new Map,qp=e=>{if(Tc.has(e))return;const t=setTimeout(()=>{Tc.delete(e),Li({type:"REMOVE_TOAST",toastId:e})},Yk);Tc.set(e,t)},Xk=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Qk)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?qp(n):e.toasts.forEach(r=>{qp(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Sa=[];let ka={toasts:[]};function Li(e){ka=Xk(ka,e),Sa.forEach(t=>{t(ka)})}function Me({...e}){const t=qk(),n=o=>Li({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Li({type:"DISMISS_TOAST",toastId:t});return Li({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Zk(){const[e,t]=v.useState(ka);return v.useEffect(()=>(Sa.push(t),()=>{const n=Sa.indexOf(t);n>-1&&Sa.splice(n,1)}),[e]),{...e,toast:Me,dismiss:n=>Li({type:"DISMISS_TOAST",toastId:n})}}function Se(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Xp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function xv(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Xp(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Xp(e[o],null)}}}}function dt(...e){return v.useCallback(xv(...e),e)}function Ss(e,t=[]){let n=[];function r(i,s){const a=v.createContext(s),l=n.length;n=[...n,s];const c=d=>{var m;const{scope:f,children:h,...x}=d,p=((m=f==null?void 0:f[e])==null?void 0:m[l])||a,w=v.useMemo(()=>x,Object.values(x));return S.jsx(p.Provider,{value:w,children:h})};c.displayName=i+"Provider";function u(d,f){var p;const h=((p=f==null?void 0:f[e])==null?void 0:p[l])||a,x=v.useContext(h);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const o=()=>{const i=n.map(s=>v.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Jk(o,...t)]}function Jk(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:c}
vendor: 10,635 bytes, line 40
40)=>{const d=l(i)[`__scope${c}`];return{...a,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function tl(e){const t=tC(e),n=v.forwardRef((r,o)=>{const{children:i,...s}=r,a=v.Children.toArray(i),l=a.find(rC);if(l){const c=l.props.children,u=a.map(d=>d===l?v.Children.count(c)>1?v.Children.only(null):v.isValidElement(c)?c.props.children:null:d);return S.jsx(t,{...s,ref:o,children:v.isValidElement(c)?v.cloneElement(c,void 0,u):null})}return S.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var eC=tl("Slot");function tC(e){const t=v.forwardRef((n,r)=>{const{children:o,...i}=n;if(v.isValidElement(o)){const s=iC(o),a=oC(i,o.props);return o.type!==v.Fragment&&(a.ref=r?xv(r,s):s),v.cloneElement(o,a)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Sv=Symbol("radix.slottable");function nC(e){const t=({children:n})=>S.jsx(S.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Sv,t}function rC(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Sv}function oC(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function iC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function sC(e){const t=e+"CollectionProvider",[n,r]=Ss(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:w,children:m}=p,g=L.useRef(null),y=L.useRef(new Map).current;return S.jsx(o,{scope:w,itemMap:y,collectionRef:g,children:m})};s.displayName=t;const a=e+"CollectionSlot",l=tl(a),c=L.forwardRef((p,w)=>{const{scope:m,children:g}=p,y=i(a,m),b=dt(w,y.collectionRef);return S.jsx(l,{ref:b,children:g})});c.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=tl(u),h=L.forwardRef((p,w)=>{const{scope:m,children:g,...y}=p,b=L.useRef(null),k=dt(w,b),C=i(u,m);return L.useEffect(()=>(C.itemMap.set(b,{ref:b,...y}),()=>void C.itemMap.delete(b))),S.jsx(f,{[d]:"",ref:k,children:g})});h.displayName=u;function x(p){const w=i(e+"CollectionConsumer",p);return L.useCallback(()=>{const g=w.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${d}]`));return Array.from(w.itemMap.values()).sort((C,E)=>y.indexOf(C.ref.current)-y.indexOf(E.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:c,ItemSlot:h},x,r]}var aC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_e=aC.reduce((e,t)=>{const n=tl(`Primitive.${t}`),r=v.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function kv(e,t){e&&xs.flushSync(()=>e.dispatchEvent(t))}function cr(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function lC(e,t=globalThis==null?void 0:globalThis.document){const n=cr(e);v.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var cC="DismissableLayer",Qu="dismissableLayer.update",uC="dismissableLayer.pointerDownOutside",dC="dismissableLayer.focusOutside",Zp,Cv=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rf=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,c=v.useContext(Cv),[u,d]=v.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=v.useState({}),x=dt(t,E=>d(E)),p=Array.from(c.layers),[w]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=p.indexOf(w),g=u?p.indexOf(u):-1,y=c.layersWithOutsidePointerEventsDisabled.size>0,b=g>=m,k=hC(E=>{const T=E.target,D=[...c.branches].some(N=>N.contains(T));!b||D||(o==null||o(E),s==null||s(E),E.defaultPrevented||a==null||a())},f),C=pC(E=>{const T=E.target;[...c.branches].some(N=>N.contains(T))||(i==null||i(E),s==null||s(E),E.defaultPrevented||a==null||a())},f);return lC(E=>{g===c.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},f),v.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Zp=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Jp(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Zp)}},[u,f,n,c]),v.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Jp())},[u,c]),v.useEffect(()=>{const E=()=>h({});return document.addEventListener(Qu,E),()=>document.removeEventListener(Qu,E)},[]),S.jsx(_e.div,{...l,ref:x,style:{pointerEvents:y?b?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,k.onPointerDownCapture)})});Rf.displayName=cC;var fC="DismissableLayerBranch",Ev=v.forwardRef((e,t)=>{const n=v.useContext(Cv),r=v.useRef(null),o=dt(t,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),S.jsx(_e.div,{...e,ref:o})});Ev.displayName=fC;function hC(e,t=globalThis==null?void 0:globalThis.document){const n=cr(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Pv(uC,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function pC(e,t=globalThis==null?void 0:globalThis.document){const n=cr(e),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&Pv(dC,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Jp(){const e=new CustomEvent(Qu);document.dispatchEvent(e)}function Pv(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?kv(o,i):o.dispatchEvent(i)}var mC=Rf,gC=Ev,ur=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},yC="Portal",Tv=v.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=v.useState(!1);ur(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?wv.createPortal(S.jsx(_e.div,{...r,ref:t}),s):null});Tv.displayName=yC;function vC(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var Dl=e=>{const{present:t,children:n}=e,r=wC(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=dt(r.ref,bC(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};Dl.displayName="Presence";function wC(e){const[t,n]=v.useState(),r=v.useRef(null),o=v.useRef(e),i=v.useRef("none"),s=e?"mounted":"unmounted",[a,l]=vC(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const c=ea(r.current);i.current=a==="mounted"?c:"none"},[a]),ur(()=>{const c=r.current,u=o.current;if(u!==e){const f=i.current,h=ea(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&f!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ur(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=h=>{const p=ea(r.current).includes(h.animationName);if(h.target===t&&p&&(l("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},f=h=>{h.target===t&&(i.current=ea(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function ea(e){return(e==null?void 0:e.animationName)||"none"}function bC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var xC=Ix[" useInsertionEffect ".trim().toString()]||ur;function Rv({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=SC({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const u=v.useRef(e!==void 0);v.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,r])}const c=v.useCallback(u=>{var d;if(a){const f=kC(u)?u(e):u;f!==e&&((d=s.current)==null||d.call(s,f))}else i(u)},[a,e,i,s]);return[l,c]}function SC({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),o=v.useRef(n),i=v.useRef(t);return xC(()=>{i.current=t},[t]),v.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function kC(e){return typeof e=="function"}var CC=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),EC="VisuallyHidden",Nl=v.forwardRef((e,t)=>
40S.jsx(_e.span,{...e,ref:t,style:{...CC,...e.style}}));Nl.displayName=EC;var PC=Nl,Af="ToastProvider",[Df,TC,RC]=sC("Toast"),[Av,wj]=Ss("Toast",[RC]),[AC,Ml]=Av(Af),Dv=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=v.useState(null),[c,u]=v.useState(0),d=v.useRef(!1),f=v.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Af}\`. Expected non-empty \`string\`.`),S.jsx(Df.Provider,{scope:t,children:S.jsx(AC,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:v.useCallback(()=>u(h=>h+1),[]),onToastRemove:v.useCallback(()=>u(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:s})})};Dv.displayName=Af;var Nv="ToastViewport",DC=["F8"],Yu="toast.viewportPause",qu="toast.viewportResume",Mv=v.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=DC,label:o="Notifications ({hotkey})",...i}=e,s=Ml(Nv,n),a=TC(n),l=v.useRef(null),c=v.useRef(null),u=v.useRef(null),d=v.useRef(null),f=dt(t,d,s.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=s.toastCount>0;v.useEffect(()=>{const w=m=>{var y;r.length!==0&&r.every(b=>m[b]||m.code===b)&&((y=d.current)==null||y.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),v.useEffect(()=>{const w=l.current,m=d.current;if(x&&w&&m){const g=()=>{if(!s.isClosePausedRef.current){const C=new CustomEvent(Yu);m.dispatchEvent(C),s.isClosePausedRef.current=!0}},y=()=>{if(s.isClosePausedRef.current){const C=new CustomEvent(qu);m.dispatchEvent(C),s.isClosePausedRef.current=!1}},b=C=>{!w.contains(C.relatedTarget)&&y()},k=()=>{w.contains(document.activeElement)||y()};return w.addEventListener("focusin",g),w.addEventListener("focusout",b),w.addEventListener("pointermove",g),w.addEventListener("pointerleave",k),window.addEventListener("blur",g),window.addEventListener("focus",y),()=>{w.removeEventListener("focusin",g),w.removeEventListener("focusout",b),w.removeEventListener("pointermove",g),w.removeEventListener("pointerleave",k),window.removeEventListener("blur",g),window.removeEventListener("focus",y)}}},[x,s.isClosePausedRef]);const p=v.useCallback(({tabbingDirection:w})=>{const g=a().map(y=>{const b=y.ref.current,k=[b,...zC(b)];return w==="forwards"?k:k.reverse()});return(w==="forwards"?g.reverse():g).flat()},[a]);return v.useEffect(()=>{const w=d.current;if(w){const m=g=>{var k,C,E;const y=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!y){const T=document.activeElement,D=g.shiftKey;if(g.target===w&&D){(k=c.current)==null||k.focus();return}const O=p({tabbingDirection:D?"backwards":"forwards"}),G=O.findIndex(_=>_===T);Rc(O.slice(G+1))?g.preventDefault():D?(C=c.current)==null||C.focus():(E=u.current)==null||E.focus()}};return w.addEventListener("keydown",m),()=>w.removeEventListener("keydown",m)}},[a,p]),S.jsxs(gC,{ref:l,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&S.jsx(Xu,{ref:c,onFocusFromOutsideViewport:()=>{const w=p({tabbingDirection:"forwards"});Rc(w)}}),S.jsx(Df.Slot,{scope:n,children:S.jsx(_e.ol,{tabIndex:-1,...i,ref:f})}),x&&S.jsx(Xu,{ref:u,onFocusFromOutsideViewport:()=>{const w=p({tabbingDirection:"backwards"});Rc(w)}})]})});Mv.displayName=Nv;var jv="ToastFocusProxy",Xu=v.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Ml(jv,n);return S.jsx(Nl,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var c;const a=s.relatedTarget;!((c=i.viewport)!=null&&c.contains(a))&&r()}})});Xu.displayName=jv;var ks="Toast",NC="toast.swipeStart",MC="toast.swipeMove",jC="toast.swipeCancel",LC="toast.swipeEnd",Lv=v.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,l]=Rv({prop:r,defaultProp:o??!0,onChange:i,caller:ks});return S.jsx(Dl,{present:n||a,children:S.jsx(IC,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:cr(e.onPause),onResume:cr(e.onResume),onSwipeStart:Se(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Se(e.onSwipeMove,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:Se(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Se(e.onSwipeEnd,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});
40Lv.displayName=ks;var[_C,OC]=Av(ks,{onClose(){}}),IC=v.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:h,...x}=e,p=Ml(ks,n),[w,m]=v.useState(null),g=dt(t,_=>m(_)),y=v.useRef(null),b=v.useRef(null),k=o||p.duration,C=v.useRef(0),E=v.useRef(k),T=v.useRef(0),{onToastAdd:D,onToastRemove:N}=p,B=cr(()=>{var K;(w==null?void 0:w.contains(document.activeElement))&&((K=p.viewport)==null||K.focus()),s()}),O=v.useCallback(_=>{!_||_===1/0||(window.clearTimeout(T.current),C.current=new Date().getTime(),T.current=window.setTimeout(B,_))},[B]);v.useEffect(()=>{const _=p.viewport;if(_){const K=()=>{O(E.current),c==null||c()},z=()=>{const V=new Date().getTime()-C.current;E.current=E.current-V,window.clearTimeout(T.current),l==null||l()};return _.addEventListener(Yu,z),_.addEventListener(qu,K),()=>{_.removeEventListener(Yu,z),_.removeEventListener(qu,K)}}},[p.viewport,k,l,c,O]),v.useEffect(()=>{i&&!p.isClosePausedRef.current&&O(k)},[i,k,p.isClosePausedRef,O]),v.useEffect(()=>(D(),()=>N()),[D,N]);const G=v.useMemo(()=>w?Uv(w):null,[w]);return p.viewport?S.jsxs(S.Fragment,{children:[G&&S.jsx(FC,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:G}),S.jsx(_C,{scope:n,onClose:B,children:xs.createPortal(S.jsx(Df.ItemSlot,{scope:n,children:S.jsx(mC,{asChild:!0,onEscapeKeyDown:Se(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||B(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:S.jsx(_e.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":p.swipeDirection,...x,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Se(e.onKeyDown,_=>{_.key==="Escape"&&(a==null||a(_.nativeEvent),_.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,B()))}),onPointerDown:Se(e.onPointerDown,_=>{_.button===0&&(y.current={x:_.clientX,y:_.clientY})}),onPointerMove:Se(e.onPointerMove,_=>{if(!y.current)return;const K=_.clientX-y.current.x,z=_.clientY-y.current.y,V=!!b.current,P=["left","right"].includes(p.swipeDirection),R=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,M=P?R(0,K):0,U=P?0:R(0,z),$=_.pointerType==="touch"?10:2,Y={x:M,y:U},q={originalEvent:_,delta:Y};V?(b.current=Y,ta(MC,d,q,{discrete:!1})):em(Y,p.swipeDirection,$)?(b.current=Y,ta(NC,u,q,{discrete:!1}),_.target.setPointerCapture(_.pointerId)):(Math.abs(K)>$||Math.abs(z)>$)&&(y.current=null)}),onPointerUp:Se(e.onPointerUp,_=>{const K=b.current,z=_.target;if(z.hasPointerCapture(_.pointerId)&&z.releasePointerCapture(_.pointerId),b.current=null,y.current=null,K){const V=_.currentTarget,P={originalEvent:_,delta:K};em(K,p.swipeDirection,p.swipeThreshold)?ta(LC,h,P,{discrete:!0}):ta(jC,f,P,{discrete:!0}),V.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),FC=e=>{const{__scopeToast:t,children:n,...r}=e,o=Ml(ks,t),[i,s]=v.useState(!1),[a,l]=v.useState(!1);return UC(()=>s(!0)),v.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:S.jsx(Tv,{asChild:!0,children:S.jsx(Nl,{...r,children:i&&S.jsxs(S.Fragment,{children:[o.label," ",n]})})})},BC="ToastTitle",_v=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(_e.div,{...r,ref:t})});_v.displayName=BC;var VC="ToastDescription",Ov=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(_e.div,{...r,ref:t})});Ov.displayName=VC;var Iv="ToastAction",Fv=v.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?S.jsx(Vv,{altText:n,asChild:!0,children:S.jsx(Nf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Iv}\`. Expected non-empty \`string\`.`),null)});Fv.displayName=Iv;var Bv="ToastClose",Nf=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=OC(Bv,n);return S.jsx(Vv,{asChild:!0,children:S.jsx(_e.button,{type:"button",...r,ref:t,onClick:Se(e.onClick,o.onClose)})})});Nf.displayName=Bv;var Vv=v.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return S.jsx(_e.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Uv(e){const t=[];
vendor: 7,113 bytes, lines 40-110
40return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),$C(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Uv(r))}}),t}function ta(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?kv(o,i):o.dispatchEvent(i)}var em=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function UC(e=()=>{}){const t=cr(e);ur(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function $C(e){return e.nodeType===e.ELEMENT_NODE}function zC(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Rc(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var WC=Dv,$v=Mv,zv=Lv,Wv=_v,Hv=Ov,Gv=Fv,Kv=Nf;function Qv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Qv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Yv(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Qv(e))&&(r&&(r+=" "),r+=t);return r}const tm=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,nm=Yv,qv=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return nm(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const f=tm(u)||tm(d);return o[c][f]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:f,...h}=u;return Object.entries(h).every(x=>{let[p,w]=x;return Array.isArray(w)?w.includes({...i,...a}[p]):{...i,...a}[p]===w})?[...c,d,f]:c},[]);return nm(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.462.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const HC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Xv=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.462.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var GC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51 * @license lucide-react v0.462.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const KC=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>v.createElement("svg",{ref:l,...GC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Xv("lucide",o),...a},[...s.map(([c,u])=>v.createElement(c,u)),...Array.isArray(i)?i:[i]]));/**
56 * @license lucide-react v0.462.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const Pt=(e,t)=>{const n=v.forwardRef(({className:r,...o},i)=>v.createElement(KC,{ref:i,iconNode:t,className:Xv(`lucide-${HC(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.462.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const Mf=Pt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
66 * @license lucide-react v0.462.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const QC=Pt("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
71 * @license lucide-react v0.462.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const YC=Pt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
76 * @license lucide-react v0.462.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const Zv=Pt("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
81 * @license lucide-react v0.462.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const Ac=Pt("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/**
86 * @license lucide-react v0.462.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const Gr=Pt("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
91 * @license lucide-react v0.462.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const qC=Pt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
96 * @license lucide-react v0.462.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const XC=Pt("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
101 * @license lucide-react v0.462.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const Jv=Pt("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/**
106 * @license lucide-react v0.462.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const rm=Pt("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}
vendor: 8,975 bytes, lines 110-120
110],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
111 * @license lucide-react v0.462.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const om=Pt("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
116 * @license lucide-react v0.462.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const jl=Pt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),jf="-",ZC=e=>{const t=eE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(jf);return a[0]===""&&a.length!==1&&a.shift(),ew(a,t)||JC(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},ew=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?ew(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(jf);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},im=/^\[(.+)\]$/,JC=e=>{if(im.test(e)){const t=im.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},eE=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return nE(Object.entries(e.classGroups),n).forEach(([i,s])=>{Zu(s,r,i,t)}),r},Zu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:sm(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(tE(o)){Zu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Zu(s,sm(t,i),n,r)})})},sm=(e,t)=>{let n=e;return t.split(jf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},tE=e=>e.isThemeGetter,nE=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[n,o]}):e,rE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},tw="!",oE=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=a=>{const l=[];let c=0,u=0,d;for(let w=0;w<a.length;w++){let m=a[w];if(c===0){if(m===o&&(r||a.slice(w,w+i)===t)){l.push(a.slice(u,w)),u=w+i;continue}if(m==="/"){d=w;continue}}m==="["?c++:m==="]"&&c--}const f=l.length===0?a:a.substring(u),h=f.startsWith(tw),x=h?f.substring(1):f,p=d&&d>u?d-u:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:x,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:s}):s},iE=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},sE=e=>({cache:rE(e.cacheSize),parseClassName:oE(e),...ZC(e)}),aE=/\s+/,lE=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(aE);let a="";for(let l=s.length-1;l>=0;l-=1){const c=s[l],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=n(c);let x=!!h,p=r(x?f.substring(0,h):f);if(!p){if(!x){a=c+(a.length>0?" "+a:a);continue}if(p=r(f),!p){a=c+(a.length>0?" "+a:a);continue}x=!1}const w=iE(u).join(":"),m=d?w+tw:w,g=m+p;if(i.includes(g))continue;i.push(g);const y=o(p,x);for(let b=0;b<y.length;++b){const k=y[b];i.push(m+k)}a=c+(a.length>0?" "+a:a)}return a};function cE(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=nw(t))&&(r&&(r+=" "),r+=n);return r}const nw=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=nw(e[r]))&&(n&&(n+=" "),n+=t);return n};function uE(e,...t){let n,r,o,i=s;function s(l){const c=t.reduce((u,d)=>d(u),e());return n=sE(c),r=n.cache.get,o=n.cache.set,i=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=lE(l,n);return o(l,u),u}return function(){return i(cE.apply(null,arguments))}}const ie=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},rw=/^\[(?:([a-z-]+):)?(.+)\]$/i,dE=/^\d+\/\d+$/,fE=new Set(["px","full","screen"]),hE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,gE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dn=e=>Eo(e)||fE.has(e)||dE.test(e),On=e=>Xo(e,"length",EE),Eo=e=>!!e&&!Number.isNaN(Number(e)),Dc=e=>Xo(e,"number",Eo),mi=e=>!!e&&Number.isInteger(Number(e)),vE=e=>e.endsWith("%")&&Eo(e.slice(0,-1)),Q=e=>rw.test(e),In=e=>hE.test(e),wE=new Set(["length","size","percentage"]),bE=e=>Xo(e,wE,ow),xE=e=>Xo(e,"position",ow),SE=new Set(["image","url"]),kE=e=>Xo(e,SE,TE),CE=e=>Xo(e,"",PE),gi=()=>!0,Xo=(e,t,n)=>{const r=rw.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},EE=e=>pE.test(e)&&!mE.test(e),ow=()=>!1,PE=e=>gE.test(e),TE=e=>yE.test(e),RE=()=>{const e=ie("colors"),t=ie("spacing"),n=ie("blur"),r=ie("brightness"),o=ie("borderColor"),i=ie("borderRadius"),s=ie("borderSpacing"),a=ie("borderWidth"),l=ie("contrast"),c=ie("grayscale"),u=ie("hueRotate"),d=ie("invert"),f=ie("gap"),h=ie("gradientColorStops"),x=ie("gradientColorStopPositions"),p=ie("inset"),w=ie("margin"),m=ie("opacity"),g=ie("padding"),y=ie("saturate"),b=ie("scale"),k=ie("sepia"),C=ie("skew"),E=ie("space"),T=ie("translate"),D=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",Q,t],O=()=>[Q,t],G=()=>["",dn,On],_=()=>["auto",Eo,Q],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",Q],M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[Eo,Q];return{cacheSize:500,separator:":",theme:{colors:[gi],spacing:[dn,On],blur:["none","",In,Q],brightness:U(),borderColor:[e],borderRadius:["none","","full",In,Q],borderSpacing:O(),borderWidth:G(),contrast:U(),grayscale:R(),hueRotate:U(),invert:R(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[vE,On],inset:B(),margin:B(),opacity:U(),padding:O(),saturate:U(),scale:U(),sepia:R(),skew:U(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",Q]}],container:["container"],columns:[{columns:[In]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...K(),Q]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",mi,Q]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Q]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",mi,Q]}],"grid-cols":[{"grid-cols":[gi]}],"col-start-end":[{col:["auto",{span:["full",mi,Q]},Q]}],"col-start":[{"col-start":_()}
vendor: 9,099 bytes, line 120
120],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[gi]}],"row-start-end":[{row:["auto",{span:[mi,Q]},Q]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Q]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Q,t]}],"min-w":[{"min-w":[Q,t,"min","max","fit"]}],"max-w":[{"max-w":[Q,t,"none","full","min","max","fit","prose",{screen:[In]},In]}],h:[{h:[Q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",In,On]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Dc]}],"font-family":[{font:[gi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Q]}],"line-clamp":[{"line-clamp":["none",Eo,Dc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",dn,Q]}],"list-image":[{"list-image":["none",Q]}],"list-style-type":[{list:["none","disc","decimal",Q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",dn,On]}],"underline-offset":[{"underline-offset":["auto",dn,Q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),xE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",bE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},kE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:z()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[dn,Q]}],"outline-w":[{outline:[dn,On]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[dn,On]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",In,CE]}],"shadow-color":[{shadow:[gi]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",In,Q]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Q]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",Q]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",Q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[mi,Q]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Q]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}
vendor: 4,941 bytes, line 120
120],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[dn,On,Dc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},AE=uE(RE);function Et(...e){return AE(Yv(e))}const DE=WC,iw=v.forwardRef(({className:e,...t},n)=>S.jsx($v,{ref:n,className:Et("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));iw.displayName=$v.displayName;const NE=qv("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),sw=v.forwardRef(({className:e,variant:t,...n},r)=>S.jsx(zv,{ref:r,className:Et(NE({variant:t}),e),...n}));sw.displayName=zv.displayName;const ME=v.forwardRef(({className:e,...t},n)=>S.jsx(Gv,{ref:n,className:Et("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));ME.displayName=Gv.displayName;const aw=v.forwardRef(({className:e,...t},n)=>S.jsx(Kv,{ref:n,className:Et("absolute right-2 top-2 rounded-md p-1 text-foreground
120/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:S.jsx(jl,{className:"h-4 w-4"})}));aw.displayName=Kv.displayName;const lw=v.forwardRef(({className:e,...t},n)=>S.jsx(Wv,{ref:n,className:Et("text-sm font-semibold",e),...t}));lw.displayName=Wv.displayName;const cw=v.forwardRef(({className:e,...t},n)=>S.jsx(Hv,{ref:n,className:Et("text-sm opacity-90",e),...t}));cw.displayName=Hv.displayName;function jE(){const{toasts:e}=Zk();return S.jsxs(DE,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return S.jsxs(sw,{...i,children:[S.jsxs("div",{className:"grid gap-1",children:[n&&S.jsx(lw,{children:n}),r&&S.jsx(cw,{children:r})]}),o,S.jsx(aw,{})]},t)}),S.jsx(iw,{})]})}var am=["light","dark"],LE="(prefers-color-scheme: dark)",_E=v.createContext(void 0),OE={setTheme:e=>{},themes:[]},IE=()=>{var e;return(e=v.useContext(_E))!=null?e:OE};v.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:a,nonce:l})=>{let c=i==="system",u=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=o?am.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(x,p=!1,w=!0)=>{let m=s?s[x]:x,g=p?x+"|| ''":`'${m}'`,y="";return o&&w&&!p&&am.includes(x)&&(y+=`d.style.colorScheme = '${x}';`),n==="class"?p||m?y+=`c.add(${g})`:y+="null":m&&(y+=`d[s](n,${g})`),y},h=e?`!function(){${u}${f(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${LE}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${f(s?"x[e]":"e",!0)}}${c?"":"else{"+f(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${f(s?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${d}}catch(t){}}();`;return v.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})});var FE=e=>{switch(e){case"success":return UE;case"info":return zE;case"warning":return $E;case"error":return WE;default:return null}},BE=Array(12).fill(0),VE=({visible:e,className:t})=>L.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},L.createElement("div",{className:"sonner-spinner"},BE.map((n,r)=>L.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),UE=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),$E=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),zE=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),WE=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),HE=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},L.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),L.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),GE=()=>{let[e,t]=L.useState(document.hidden);return L.useEffect(()=>{let n=()=>{t(document.hidden)};
120return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Ju=1,KE=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Ju++,i=this.toasts.find(a=>a.id===o),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:s,title:n}):a):this.addToast({title:n,...r,dismissible:s,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
120this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,i,s=r.then(async l=>{if(i=["resolve",l],L.isValidElement(l))o=!1,this.create({id:n,type:"default",message:l});else if(YE(l)&&!l.ok){o=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,u=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:c,description:u})}else if(t.success!==void 0){o=!1;let c=typeof t.success=="function"?await t.success(l):t.success,u=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:c,description:u})}}).catch(async l=>{if(i=["reject",l],t.error!==void 0){o=!1;let c=typeof t.error=="function"?await t.error(l):t.error,u=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:c,description:u})}}).finally(()=>{var l;o&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,c)=>s.then(()=>i[0]==="reject"?c(i[1]):l(i[1])).catch(c));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Ju++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Ze=new KE,QE=(e,t)=>{let n=(t==null?void 0:t.id)||Ju++;return Ze.addToast({title:e,...t,id:n}),n},YE=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",qE=QE,XE=()=>Ze.toasts,ZE=()=>Ze.getActiveToasts();Object.assign(qE,{success:Ze.success,info:Ze.info,warning:Ze.warning,error:Ze.error,custom:Ze.custom,message:Ze.message,promise:Ze.promise,dismiss:Ze.dismiss,loading:Ze.loading},{getHistory:XE,getToasts:ZE});function JE(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}JE(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
120left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
120:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
120--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
121`);function na(e){return e.label!==void 0}var eP=3,tP="32px",nP="16px",lm=4e3,rP=356,oP=14,iP=20,sP=200;function jt(...e){return e.filter(Boolean).join(" ")}function aP(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var lP=e=>{var t,n,r,o,i,s,a,l,c,u,d;let{invert:f,toast:h,unstyled:x,interacting:p,setHeights:w,visibleToasts:m,heights:g,index:y,toasts:b,expanded:k,removeToast:C,defaultRichColors:E,closeButton:T,style:D,cancelButtonStyle:N,actionButtonStyle:B,className:O="",descriptionClassName:G="",duration:_,position:K,gap:z,loadingIcon:V,expandByDefault:P,classNames:R,icons:M,closeButtonAriaLabel:U="Close toast",pauseWhenPageIsHidden:$}=e,[Y,q]=L.useState(null),[ye,be]=L.useState(null),[Z,Oe]=L.useState(!1),[Rt,Qt]=L.useState(!1),[Dn,qr]=L.useState(!1),[Nn,js]=L.useState(!1),[Yl,Ls]=L.useState(!1),[ql,ii]=L.useState(0),[Xr,Lh]=L.useState(0),si=L.useRef(h.duration||_||lm),_h=L.useRef(null),br=L.useRef(null),fx=y===0,hx=y+1<=m,pt=h.type,Zr=h.dismissible!==!1,px=h.className||"",mx=h.descriptionClassName||"",_s=L.useMemo(()=>g.findIndex(W=>W.toastId===h.id)||0,[g,h.id]),gx=L.useMemo(()=>{var W;return(W=h.closeButton)!=null?W:T},[h.closeButton,T]),Oh=L.useMemo(()=>h.duration||_||lm,[h.duration,_]),Xl=L.useRef(0),Jr=L.useRef(0),Ih=L.useRef(0),eo=L.useRef(null),[yx,vx]=K.split("-"),Fh=L.useMemo(()=>g.reduce((W,re,ce)=>ce>=_s?W:W+re.height,0),[g,_s]),Bh=GE(),wx=h.invert||f,Zl=pt==="loading";Jr.current=L.useMemo(()=>_s*z+Fh,[_s,Fh]),L.useEffect(()=>{si.current=Oh},[Oh]),L.useEffect(()=>{Oe(!0)},[]),L.useEffect(()=>{let W=br.current;if(W){let re=W.getBoundingClientRect().height;return Lh(re),w(ce=>[{toastId:h.id,height:re,position:h.position},...ce]),()=>w(ce=>ce.filter(At=>At.toastId!==h.id))}},[w,h.id]),L.useLayoutEffect(()=>{if(!Z)return;let W=br.current,re=W.style.height;W.style.height="auto";let ce=W.getBoundingClientRect().height;W.style.height=re,Lh(ce),w(At=>At.find(Dt=>Dt.toastId===h.id)?At.map(Dt=>Dt.toastId===h.id?{...Dt,height:ce}:Dt):[{toastId:h.id,height:ce,position:h.position},...At])},[Z,h.title,h.description,w,h.id]);let Mn=L.useCallback(()=>{Qt(!0),ii(Jr.current),w(W=>W.filter(re=>re.toastId!==h.id)),setTimeout(()=>{C(h)},sP)},[h,C,w,Jr]);L.useEffect(()=>{if(h.promise&&pt==="loading"||h.duration===1/0||h.type==="loading")return;let W;return k||p||$&&Bh?(()=>{if(Ih.current<Xl.current){let re=new Date().getTime()-Xl.current;si.current=si.current-re}
121Ih.current=new Date().getTime()})():si.current!==1/0&&(Xl.current=new Date().getTime(),W=setTimeout(()=>{var re;(re=h.onAutoClose)==null||re.call(h,h),Mn()},si.current)),()=>clearTimeout(W)},[k,p,h,pt,$,Bh,Mn]),L.useEffect(()=>{h.delete&&Mn()},[Mn,h.delete]);function bx(){var W,re,ce;return M!=null&&M.loading?L.createElement("div",{className:jt(R==null?void 0:R.loader,(W=h==null?void 0:h.classNames)==null?void 0:W.loader,"sonner-loader"),"data-visible":pt==="loading"},M.loading):V?L.createElement("div",{className:jt(R==null?void 0:R.loader,(re=h==null?void 0:h.classNames)==null?void 0:re.loader,"sonner-loader"),"data-visible":pt==="loading"},V):L.createElement(VE,{className:jt(R==null?void 0:R.loader,(ce=h==null?void 0:h.classNames)==null?void 0:ce.loader),visible:pt==="loading"})}return L.createElement("li",{tabIndex:0,ref:br,className:jt(O,px,R==null?void 0:R.toast,(t=h==null?void 0:h.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[pt],(n=h==null?void 0:h.classNames)==null?void 0:n[pt]),"data-sonner-toast":"","data-rich-colors":(r=h.richColors)!=null?r:E,"data-styled":!(h.jsx||h.unstyled||x),"data-mounted":Z,"data-promise":!!h.promise,"data-swiped":Yl,"data-removed":Rt,"data-visible":hx,"data-y-position":yx,"data-x-position":vx,"data-index":y,"data-front":fx,"data-swiping":Dn,"data-dismissible":Zr,"data-type":pt,"data-invert":wx,"data-swipe-out":Nn,"data-swipe-direction":ye,"data-expanded":!!(k||P&&Z),style:{"--index":y,"--toasts-before":y,"--z-index":b.length-y,"--offset":`${Rt?ql:Jr.current}px`,"--initial-height":P?"auto":`${Xr}px`,...D,...h.style},onDragEnd:()=>{qr(!1),q(null),eo.current=null},onPointerDown:W=>{Zl||!Zr||(_h.current=new Date,ii(Jr.current),W.target.setPointerCapture(W.pointerId),W.target.tagName!=="BUTTON"&&(qr(!0),eo.current={x:W.clientX,y:W.clientY}))},onPointerUp:()=>{var W,re,ce,At;if(Nn||!Zr)return;eo.current=null;let Dt=Number(((W=br.current)==null?void 0:W.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),jn=Number(((re=br.current)==null?void 0:re.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),xr=new Date().getTime()-((ce=_h.current)==null?void 0:ce.getTime()),Nt=Y==="x"?Dt:jn,Ln=Math.abs(Nt)/xr;if(Math.abs(Nt)>=iP||Ln>.11){ii(Jr.current),(At=h.onDismiss)==null||At.call(h,h),be(Y==="x"?Dt>0?"right":"left":jn>0?"down":"up"),Mn(),js(!0),Ls(!1);return}qr(!1),q(null)},onPointerMove:W=>{var re,ce,At,Dt;if(!eo.current||!Zr||((re=window.getSelection())==null?void 0:re.toString().length)>0)return;let jn=W.clientY-eo.current.y,xr=W.clientX-eo.current.x,Nt=(ce=e.swipeDirections)!=null?ce:aP(K);!Y&&(Math.abs(xr)>1||Math.abs(jn)>1)&&q(Math.abs(xr)>Math.abs(jn)?"x":"y");let Ln={x:0,y:0};Y==="y"?(Nt.includes("top")||Nt.includes("bottom"))&&(Nt.includes("top")&&jn<0||Nt.includes("bottom")&&jn>0)&&(Ln.y=jn):Y==="x"&&(Nt.includes("left")||Nt.includes("right"))&&(Nt.includes("left")&&xr<0||Nt.includes("right")&&xr>0)&&(Ln.x=xr),(Math.abs(Ln.x)>0||Math.abs(Ln.y)>0)&&Ls(!0),(At=br.current)==null||At.style.setProperty("--swipe-amount-x",`${Ln.x}px`),(Dt=br.current)==null||Dt.style.setProperty("--swipe-amount-y",`${Ln.y}px`)}},gx&&!h.jsx?L.createElement("button",{"aria-label":U,"data-disabled":Zl,"data-close-button":!0,onClick:Zl||!Zr?()=>{}:()=>{var W;Mn(),(W=h.onDismiss)==null||W.call(h,h)},className:jt(R==null?void 0:R.closeButton,(o=h==null?void 0:h.classNames)==null?void 0:o.closeButton)},(i=M==null?void 0:M.close)!=null?i:HE):null,h.jsx||v.isValidElement(h.title)?h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title:L.createElement(L.Fragment,null,pt||h.icon||h.promise?L.createElement("div",{"data-icon":"",className:jt(R==null?void 0:R.icon,(s=h==null?void 0:h.classNames)==null?void 0:s.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||bx():null,h.type!=="loading"?h.icon||(M==null?void 0:M[pt])||FE(pt):null):null,L.createElement("div",{"data-content":"",className:jt(R==null?void 0:R.content,(a=h==null?void 0:h.classNames)==null?void 0:a.content)},L.createElement("div",{"data-title":"",className:jt(R==null?void 0:R.title,(l=h==null?void 0:h.classNames)==null?void 0:l.title)},typeof h.title=="function"?h.title():h.title),h.description?L.createElement("div",{"data-description":"",className:jt(G,mx,R==null?void 0:R.description,(c=h==null?void 0:h.classNames)==null?void 0:c.description)},typeof h.description=="function"?h.description():h.description):null),v.isValidElement(h.cancel)?h.cancel:h.cancel&&na(h.cancel)?L.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||N,onClick:W=>{var re,ce;na(h.cancel)&&Zr&&((ce=(re=h.cancel).onClick)==null||ce.call(re,W),Mn())},className:jt(R==null?void 0:R.cancelButton,(u=h==null?void 0:h.classNames)==null?void 0:u.cancelButton)},h.cancel.label):null,v.isValidElement(h.action)?h.action:h.action&&na(h.action)?L.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||B,onClick:W=>{var re,ce;na(h.action)&&((ce=(re=h.action).onClick)==null||ce.call(re,W),!W.defaultPrevented&&Mn())},className:jt(R==null?void 0:R.actionButton,(d=h==null?void 0:h.classNames)==null?void 0:d.actionButton)},h.action.label):null))};function cm(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function cP(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,s=i?"--mobile-offset":"--offset",a=i?nP:tP;function l(c){["top","right","bottom","left"].forEach(u=>{n[`${s}-${u}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${s}-${c}`]=a:n[`${s}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(a)}),n}var uP=v.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:s,className:a,offset:l,mobileOffset:c,theme:u="light",richColors:d,duration:f,style:h,visibleToasts:x=eP,toastOptions:p,dir:w=cm(),gap:m=oP,loadingIcon:g,icons:y,containerAriaLabel:b="Notifications",pauseWhenPageIsHidden:k}=e,[C,E]=L.useState([]),T=L.useMemo(()=>Array.from(new Set([r].concat(C.filter($=>$.position).map($=>$.position)))),[C,r]),[D,N]=L.useState([]),[B,O]=L.useState(!1),[G,_]=L.useState(!1),[K,z]=L.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
121k":"light"),V=L.useRef(null),P=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=L.useRef(null),M=L.useRef(!1),U=L.useCallback($=>{E(Y=>{var q;return(q=Y.find(ye=>ye.id===$.id))!=null&&q.delete||Ze.dismiss($.id),Y.filter(({id:ye})=>ye!==$.id)})},[]);return L.useEffect(()=>Ze.subscribe($=>{if($.dismiss){E(Y=>Y.map(q=>q.id===$.id?{...q,delete:!0}:q));return}setTimeout(()=>{wv.flushSync(()=>{E(Y=>{let q=Y.findIndex(ye=>ye.id===$.id);return q!==-1?[...Y.slice(0,q),{...Y[q],...$},...Y.slice(q+1)]:[$,...Y]})})})}),[]),L.useEffect(()=>{if(u!=="system"){z(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?z("dark"):z("light")),typeof window>"u")return;let $=window.matchMedia("(prefers-color-scheme: dark)");try{$.addEventListener("change",({matches:Y})=>{z(Y?"dark":"light")})}catch{$.addListener(({matches:q})=>{try{z(q?"dark":"light")}catch(ye){console.error(ye)}})}},[u]),L.useEffect(()=>{C.length<=1&&O(!1)},[C]),L.useEffect(()=>{let $=Y=>{var q,ye;o.every(be=>Y[be]||Y.code===be)&&(O(!0),(q=V.current)==null||q.focus()),Y.code==="Escape"&&(document.activeElement===V.current||(ye=V.current)!=null&&ye.contains(document.activeElement))&&O(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[o]),L.useEffect(()=>{if(V.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,M.current=!1)}},[V.current]),L.createElement("section",{ref:t,"aria-label":`${b} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map(($,Y)=>{var q;let[ye,be]=$.split("-");return C.length?L.createElement("ol",{key:$,dir:w==="auto"?cm():w,tabIndex:-1,ref:V,className:a,"data-sonner-toaster":!0,"data-theme":K,"data-y-position":ye,"data-lifted":B&&C.length>1&&!i,"data-x-position":be,style:{"--front-toast-height":`${((q=D[0])==null?void 0:q.height)||0}px`,"--width":`${rP}px`,"--gap":`${m}px`,...h,...cP(l,c)},onBlur:Z=>{M.current&&!Z.currentTarget.contains(Z.relatedTarget)&&(M.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||M.current||(M.current=!0,R.current=Z.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{G||O(!1)},onDragEnd:()=>O(!1),onPointerDown:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||_(!0)},onPointerUp:()=>_(!1)},C.filter(Z=>!Z.position&&Y===0||Z.position===$).map((Z,Oe)=>{var Rt,Qt;return L.createElement(lP,{key:Z.id,icons:y,index:Oe,toast:Z,defaultRichColors:d,duration:(Rt=p==null?void 0:p.duration)!=null?Rt:f,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:n,visibleToasts:x,closeButton:(Qt=p==null?void 0:p.closeButton)!=null?Qt:s,interacting:G,position:$,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:U,toasts:C.filter(Dn=>Dn.position==Z.position),heights:D.filter(Dn=>Dn.position==Z.position),setHeights:N,expandByDefault:i,gap:m,loadingIcon:g,expanded:B,pauseWhenPageIsHidden:k,swipeDirections:e.swipeDirections})})):null}))});const dP=({...e})=>{const{theme:t="system"}=IE();return S.jsx(uP,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},fP=["top","right","bottom","left"],dr=Math.min,it=Math.max,nl=Math.round,ra=Math.floor,on=e=>({x:e,y:e}),hP={left:"right",right:"left",bottom:"top",top:"bottom"},pP={start:"end",end:"start"};function ed(e,t,n){return it(e,dr(t,n))}function Cn(e,t){return typeof e=="function"?e(t):e}function En(e){return e.split("-")[0]}function Zo(e){return e.split("-")[1]}function Lf(e){return e==="x"?"y":"x"}function _f(e){return e==="y"?"height":"width"}const mP=new Set(["top","bottom"]);function tn(e){return mP.has(En(e))?"y":"x"}function Of(e){return Lf(tn(e))}function gP(e,t,n){n===void 0&&(n=!1);const r=Zo(e),o=Of(e),i=_f(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=rl(s)),[s,rl(s)]}function yP(e){const t=rl(e);return[td(e),t,td(t)]}function td(e){return e.replace(/start|end/g,t=>pP[t])}const um=["left","right"],dm=["right","left"],vP=["top","bottom"],wP=["bottom","top"];function bP(e,t,n){switch(e){case"top":case"bottom":return n?t?dm:um:t?um:dm;case"left":case"right":return t?vP:wP;default:return[]}}function xP(e,t,n,r){const o=Zo(e);let i=bP(En(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(td)))),i}function rl(e){return e.replace(/left|right|bottom|top/g,t=>hP[t])}function SP(e){return{top:0,right:0,bottom:0,left:0,...e}}function uw(e){return typeof e!="number"?SP(e):{top:e,right:e,bottom:e,left:e}}function ol(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function fm(e,t,n){let{reference:r,floating:o}=e;const i=tn(t),s=Of(t),a=_f(s),l=En(t),c=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Zo(t)){case"start":h[s]-=f*(n&&c?-1:1);break;case"end":h[s]+=f*(n&&c?-1:1);break}return h}const kP=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}
vendor: 9,929 bytes, line 121
121=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=fm(c,r,l),f=r,h={},x=0;for(let p=0;p<a.length;p++){const{name:w,fn:m}=a[p],{x:g,y,data:b,reset:k}=await m({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});u=g??u,d=y??d,h={...h,[w]:{...h[w],...b}},k&&x<=50&&(x++,typeof k=="object"&&(k.placement&&(f=k.placement),k.rects&&(c=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:u,y:d}=fm(c,f,l)),p=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}};async function ns(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=Cn(t,e),x=uw(h),w=a[f?d==="floating"?"reference":"floating":d],m=ol(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),g=d==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},k=ol(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:l}):g);return{top:(m.top-k.top+x.top)/b.y,bottom:(k.bottom-m.bottom+x.bottom)/b.y,left:(m.left-k.left+x.left)/b.x,right:(k.right-m.right+x.right)/b.x}}const CP=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Cn(e,t)||{};if(c==null)return{};const d=uw(u),f={x:n,y:r},h=Of(o),x=_f(h),p=await s.getDimensions(c),w=h==="y",m=w?"top":"left",g=w?"bottom":"right",y=w?"clientHeight":"clientWidth",b=i.reference[x]+i.reference[h]-f[h]-i.floating[x],k=f[h]-i.reference[h],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let E=C?C[y]:0;(!E||!await(s.isElement==null?void 0:s.isElement(C)))&&(E=a.floating[y]||i.floating[x]);const T=b/2-k/2,D=E/2-p[x]/2-1,N=dr(d[m],D),B=dr(d[g],D),O=N,G=E-p[x]-B,_=E/2-p[x]/2+T,K=ed(O,_,G),z=!l.arrow&&Zo(o)!=null&&_!==K&&i.reference[x]/2-(_<O?N:B)-p[x]/2<0,V=z?_<O?_-O:_-G:0;return{[h]:f[h]+V,data:{[h]:K,centerOffset:_-K-V,...z&&{alignmentOffset:V}},reset:z}}}),EP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:p=!0,...w}=Cn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=En(o),g=tn(a),y=En(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(c.floating)),k=f||(y||!p?[rl(a)]:yP(a)),C=x!=="none";!f&&C&&k.push(...xP(a,p,x,b));const E=[a,...k],T=await ns(t,w),D=[];let N=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&D.push(T[m]),d){const _=gP(o,s,b);D.push(T[_[0]],T[_[1]])}if(N=[...N,{placement:o,overflows:D}],!D.every(_=>_<=0)){var B,O;const _=(((B=i.flip)==null?void 0:B.index)||0)+1,K=E[_];if(K&&(!(d==="alignment"?g!==tn(K):!1)||N.every(P=>P.overflows[0]>0&&tn(P.placement)===g)))return{data:{index:_,overflows:N},reset:{placement:K}};let z=(O=N.filter(V=>V.overflows[0]<=0).sort((V,P)=>V.overflows[1]-P.overflows[1])[0])==null?void 0:O.placement;if(!z)switch(h){case"bestFit":{var G;const V=(G=N.filter(P=>{if(C){const R=tn(P.placement);return R===g||R==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(R=>R>0).reduce((R,M)=>R+M,0)]).sort((P,R)=>P[1]-R[1])[0])==null?void 0:G[0];V&&(z=V);break}case"initialPlacement":z=a;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function hm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pm(e){return fP.some(t=>e[t]>=0)}const PP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Cn(e,t);switch(r){case"referenceHidden":{const i=await ns(t,{...o,elementContext:"reference"}),s=hm(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:pm(s)}}}case"escaped":{const i=await ns(t,{...o,altBoundary:!0}),s=hm(i,n.floating);return{data:{escapedOffsets:s,escaped:pm(s)}}}default:return{}}}}},dw=new Set(["left","top"]);async function TP(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=En(n),a=Zo(n),l=tn(n)==="y",c=dw.has(s)?-1:1,u=i&&l?-1:1,d=Cn(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:x}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof x=="number"&&(h=a==="end"?x*-1:x),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const RP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await TP(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},AP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:w=>{let{x:m,y:g}=w;return{x:m,y:g}}},...l}=Cn(e,t),c={x:n,y:r},u=await ns(t,l),d=tn(En(o)),f=Lf(d);let h=c[f],x=c[d];if(i){const w=f==="y"?"top":"left",m=f==="y"?"bottom":"right",g=h+u[w],y=h-u[m];h=ed(g,h,y)}if(s){const w=d==="y"?"top":"left",m=d==="y"?"bottom":"right",g=x+u[w],y=x-u[m];x=ed(g,x,y)}const p=a.fn({...t,[f]:h,[d]:x});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[f]:i,[d]:s}}}}}},DP=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Cn(e,t),u={x:n,y:r},d=tn(o),f=Lf(d);let h=u[f],x=u[d];const p=Cn(a,t),w=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const y=f==="y"?"height":"width",b=i.reference[f]-i.floating[y]+w.mainAxis,k=i.reference[f]+i.reference[y]-w.mainAxis;h<b?h=b:h>k&&(h=k)}if(c){var m,g;const y=f==="y"?"width":"height",b=dw.has(En(o)),k=i.reference[d]-i.floating[y]+(b&&((m=s.offset)==null?void 0:m[d])||0)+(b?0:w.crossAxis),C=i.reference[d]+i.reference[y]+(b?0:((g=s.offset)==null?void 0:g[d])||0)-(b?w.crossAxis:0);x<k?x=k:x>C&&(x=C)}return{[f]:h,[d]:x}}}},NP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Cn(e,t),u=await ns(t,c),d=En(o),f=Zo(o),h=tn(o)==="y",{width:x,height:p}=i.floating;let w,m;d==="top"||d==="bottom"?(w=d,m=f===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(m=d,w=f==="end"?"top":"bottom");const g=p-u.top-u.bottom,y=x-u.left-u.right,b=dr(p-u[w],g),k=dr(x-u[m],y),C=!t.middlewareData.shift;let E=b,T=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=g),C&&!f){const N=it(u.left,0),B=it(u.right,0),O=it(u.top,0),G=it(u.bottom,0);h?T=x-2*(N!==0||B!==0?N+B:it(u.left,u.right)):E=p-2*(O!==0||G!==0?O+G:it(u.top,u.bottom))}await l({...t,availableWidth:T,availableHeight:E});const D=await s.getDimensions(a.floating);return x!==D.width||p!==D.height?{reset:{rects:!0}}:{}}}};function Ll(){return typeof window<"u"}function Jo(e){return fw(e)?(e.nodeName||"").toLowerCase():"#document"}function ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function un(e){var t;return(t=(fw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fw(e){return Ll()?e instanceof Node||e instanceof ct(e).Node:!1}function Ht(e){return Ll()?e instanceof Element||e instanceof ct(e).Element:!1}function ln(e){return Ll()?e instanceof HTMLElement||e instanceof ct(e).HTMLElement:!1}function mm(e){return!Ll()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ct(e).ShadowRoot}const MP=new Set(["inline","contents"]);function Cs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Gt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!MP.has(o)}const jP=new Set(["table","td","th"]);function LP(e){return jP.has(Jo(e))}const _P=[":popover-open",":modal"];function _l(e){return _P.some(t=>{try{return e.matches(t)}catch{return!1}})}const OP=["transform","translate","scale","rotate","perspective"],IP=["transform","translate","scale","rotate","perspective","filter"],FP=["paint","layout","strict","content"];function If(e){const t=Ff(),n=Ht(e)?Gt(e):e;return OP.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||IP.some(r=>(n.willChange||"").includes(r))||FP.some(r=>(n.contain||"").includes(r))}function BP(e){let t=fr(e);for(;ln(t)&&!zo(t);){if(If(t))return t;if(_l(t))return null;t=fr(t)}return null}function Ff(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const VP=new Set(["html","body","#document"]);function zo(e){return VP.has(Jo(e))}function Gt(e){return ct(e).getComputedStyle(e)}function Ol(e){return Ht(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fr(e){if(Jo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mm(e)&&e.host||un(e);return mm(t)?t.host:t}function hw(e){const t=fr(e);return zo(t)?e.ownerDocument?e.ownerDocument.body:e.body:ln(t)&&Cs(t)?t:hw(t)}function rs(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=hw(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ct(o);if(i){const a=nd(s);
vendor: 7,136 bytes, line 121
121return t.concat(s,s.visualViewport||[],Cs(o)?o:[],a&&n?rs(a):[])}return t.concat(o,rs(o,[],n))}function nd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pw(e){const t=Gt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ln(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=nl(n)!==i||nl(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Bf(e){return Ht(e)?e:e.contextElement}function Po(e){const t=Bf(e);if(!ln(t))return on(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=pw(t);let s=(i?nl(n.width):n.width)/r,a=(i?nl(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const UP=on(0);function mw(e){const t=ct(e);return!Ff()||!t.visualViewport?UP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $P(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ct(e)?!1:t}function Kr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Bf(e);let s=on(1);t&&(r?Ht(r)&&(s=Po(r)):s=Po(e));const a=$P(i,n,r)?mw(i):on(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const f=ct(i),h=r&&Ht(r)?ct(r):r;let x=f,p=nd(x);for(;p&&r&&h!==x;){const w=Po(p),m=p.getBoundingClientRect(),g=Gt(p),y=m.left+(p.clientLeft+parseFloat(g.paddingLeft))*w.x,b=m.top+(p.clientTop+parseFloat(g.paddingTop))*w.y;l*=w.x,c*=w.y,u*=w.x,d*=w.y,l+=y,c+=b,x=ct(p),p=nd(x)}}return ol({width:u,height:d,x:l,y:c})}function Vf(e,t){const n=Ol(e).scrollLeft;return t?t.left+n:Kr(un(e)).left+n}function gw(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Vf(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function zP(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=un(r),a=t?_l(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=on(1);const u=on(0),d=ln(r);if((d||!d&&!i)&&((Jo(r)!=="body"||Cs(s))&&(l=Ol(r)),ln(r))){const h=Kr(r);c=Po(r),u.x=h.x+r.clientLeft,u.y=h.y+r.clientTop}const f=s&&!d&&!i?gw(s,l,!0):on(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function WP(e){return Array.from(e.getClientRects())}function HP(e){const t=un(e),n=Ol(e),r=e.ownerDocument.body,o=it(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=it(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Vf(e);const a=-n.scrollTop;return Gt(r).direction==="rtl"&&(s+=it(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function GP(e,t){const n=ct(e),r=un(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const c=Ff();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}const KP=new Set(["absolute","fixed"]);function QP(e,t){const n=Kr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ln(e)?Po(e):on(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function gm(e,t,n){let r;if(t==="viewport")r=GP(e,n);else if(t==="document")r=HP(un(e));else if(Ht(t))r=QP(t,n);else{const o=mw(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ol(r)}function yw(e,t){const n=fr(e);return n===t||!Ht(n)||zo(n)?!1:Gt(n).position==="fixed"||yw(n,t)}function YP(e,t){const n=t.get(e);if(n)return n;let r=rs(e,[],!1).filter(a=>Ht(a)&&Jo(a)!=="body"),o=null;const i=Gt(e).position==="fixed";let s=i?fr(e):e;for(;Ht(s)&&!zo(s);){const a=Gt(s),l=If(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&KP.has(o.position)||Cs(s)&&!l&&yw(e,s))?r=r.filter(u=>u!==s):o=a,s=fr(s)}return t.set(e,r),r}function qP(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?_l(t)?[]:YP(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const d=gm(t,u,o);return c.top=it(d.top,c.top),c.right=dr(d.right,c.right),c.bottom=dr(d.bottom,c.bottom),c.left=it(d.left,c.left),c},gm(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function XP(e){const{width:t,height:n}=pw(e);return{width:t,height:n}}function ZP(e,t,n){const r=ln(t),o=un(t),i=n==="fixed",s=Kr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=on(0);function c(){l.x=Vf(o)}if(r||!r&&!i)if((Jo(t)!=="body"||Cs(o))&&(a=Ol(t)),r){const h=Kr(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=o&&!r&&!i?gw(o,a):on(0),d=s.left+a.scrollLeft-l.x-u.x,f=s.top+a.scrollTop-l.y-u.y;return{x:d,y:f,width:s.width,height:s.height}}function Nc(e){return Gt(e).position==="static"}function ym(e,t){if(!ln(e)||Gt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return un(e)===n&&(n=n.ownerDocument.body),n}function vw(e,t){const n=ct(e);if(_l(e))return n;if(!ln(e)){let o=fr(e);for(;o&&!zo(o);){if(Ht(o)&&!Nc(o))return o;o=fr(o)}return n}let r=ym(e,t);for(;r&&LP(r)&&Nc(r);)r=ym(r,t);return r&&zo(r)&&Nc(r)&&!If(r)?n:r||BP(e)||n}const JP=async function(e){const t=this.getOffsetParent||vw,n=this.getDimensions,r=await n(e.floating);return{reference:ZP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function eT(e){return Gt(e).direction==="rtl"}const tT={convertOffsetParentRelativeRectToViewportRelativeRect:zP,getDocumentElement:un,getClippingRect:qP,getOffsetParent:vw,getElementRects:JP,getClientRects:WP,getDimensions:XP,getScale:Po,isElement:Ht,isRTL:eT};function ww(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function nT(e,t){let n=null,r;const o=un(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:h}=c;if(a||t(),!f||!h)return;const x=ra(d),p=ra(o.clientWidth-(u+f)),w=ra(o.clientHeight-(d+h)),m=ra(u),y={rootMargin:-x+"px "+-p+"px "+-w+"px "+-m+"px",threshold:it(0,dr(1,l))||1};let b=!0;function k(C){const E=C[0].intersectionRatio;if(E!==l){if(!b)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!ww(c,e.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(k,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,y)}n.observe(e)}return s(!0),i}function rT(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Bf(e),u=o||i?[...c?rs(c):[],...rs(t)]:[];u.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const d=c&&a?nT(c,n):null;let f=-1,h=null;s&&(h=new ResizeObserver(m=>{let[g]=m;g&&g.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let x,p=l?Kr(e):null;l&&w();function w(){const m=Kr(e);p&&!ww(p,m)&&n(),p=m,x=requestAnimationFrame(w)}return n(),()=>{var m;u.forEach(g=>{o&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),d==null||d(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(x)}}
vendor: 4,250 bytes, line 121
121const oT=RP,iT=AP,sT=EP,aT=NP,lT=PP,vm=CP,cT=DP,uT=(e,t,n)=>{const r=new Map,o={platform:tT,...n},i={...o.platform,_c:r};return kP(e,t,{...o,platform:i})};var dT=typeof document<"u",fT=function(){},Ca=dT?v.useLayoutEffect:fT;function il(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!il(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!il(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function bw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wm(e,t){const n=bw(e);return Math.round(t*n)/n}function Mc(e){const t=v.useRef(e);return Ca(()=>{t.current=e}),t}function hT(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=v.useState(r);il(f,r)||h(r);const[x,p]=v.useState(null),[w,m]=v.useState(null),g=v.useCallback(P=>{P!==C.current&&(C.current=P,p(P))},[]),y=v.useCallback(P=>{P!==E.current&&(E.current=P,m(P))},[]),b=i||x,k=s||w,C=v.useRef(null),E=v.useRef(null),T=v.useRef(u),D=l!=null,N=Mc(l),B=Mc(o),O=Mc(c),G=v.useCallback(()=>{if(!C.current||!E.current)return;const P={placement:t,strategy:n,middleware:f};B.current&&(P.platform=B.current),uT(C.current,E.current,P).then(R=>{const M={...R,isPositioned:O.current!==!1};_.current&&!il(T.current,M)&&(T.current=M,xs.flushSync(()=>{d(M)}))})},[f,t,n,B,O]);Ca(()=>{c===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[c]);const _=v.useRef(!1);Ca(()=>(_.current=!0,()=>{_.current=!1}),[]),Ca(()=>{if(b&&(C.current=b),k&&(E.current=k),b&&k){if(N.current)return N.current(b,k,G);G()}},[b,k,G,N,D]);const K=v.useMemo(()=>({reference:C,floating:E,setReference:g,setFloating:y}),[g,y]),z=v.useMemo(()=>({reference:b,floating:k}),[b,k]),V=v.useMemo(()=>{const P={position:n,left:0,top:0};if(!z.floating)return P;const R=wm(z.floating,u.x),M=wm(z.floating,u.y);return a?{...P,transform:"translate("+R+"px, "+M+"px)",...bw(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:M}},[n,a,z.floating,u.x,u.y]);return v.useMemo(()=>({...u,update:G,refs:K,elements:z,floatingStyles:V}),[u,G,K,z,V])}const pT=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?vm({element:r.current,padding:o}).fn(n):{}:r?vm({element:r,padding:o}).fn(n):{}}}},mT=(e,t)=>({...oT(e),options:[e,t]}),gT=(e,t)=>({...iT(e),options:[e,t]}),yT=(e,t)=>({...cT(e),options:[e,t]}),vT=(e,t)=>({...sT(e),options:[e,t]}),wT=(e,t)=>({...aT(e),options:[e,t]}),bT=(e,t)=>({...lT(e),options:[e,t]}),xT=(e,t)=>({...pT(e),options:[e,t]});var ST="Arrow",xw=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return S.jsx(_e.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:S.jsx("polygon",{points:"0,0 30,0 15,10"})})});xw.displayName=ST;var kT=xw;function Sw(e){const[t,n]=v.useState(void 0);return ur(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var kw="Popper",[Cw,Ew]=Ss(kw),[bj,Pw]=Cw(kw),Tw="PopperAnchor",Rw=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Pw(Tw,n),s=v.useRef(null),a=dt(t,s);return v.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:S.jsx(_e.div,{...o,ref:a})});Rw.displayName=Tw;var Uf="PopperContent",[CT,ET]=Cw(Uf),Aw=v.forwardRef((e,t)=>
vendor: 4,442 bytes, line 121
121{var Z,Oe,Rt,Qt,Dn,qr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:x,...p}=e,w=Pw(Uf,n),[m,g]=v.useState(null),y=dt(t,Nn=>g(Nn)),[b,k]=v.useState(null),C=Sw(b),E=(C==null?void 0:C.width)??0,T=(C==null?void 0:C.height)??0,D=r+(i!=="center"?"-"+i:""),N=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},B=Array.isArray(c)?c:[c],O=B.length>0,G={padding:N,boundary:B.filter(TT),altBoundary:O},{refs:_,floatingStyles:K,placement:z,isPositioned:V,middlewareData:P}=hT({strategy:"fixed",placement:D,whileElementsMounted:(...Nn)=>rT(...Nn,{animationFrame:h==="always"}),elements:{reference:w.anchor},middleware:[mT({mainAxis:o+T,alignmentAxis:s}),l&&gT({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?yT():void 0,...G}),l&&vT({...G}),wT({...G,apply:({elements:Nn,rects:js,availableWidth:Yl,availableHeight:Ls})=>{const{width:ql,height:ii}=js.reference,Xr=Nn.floating.style;Xr.setProperty("--radix-popper-available-width",`${Yl}px`),Xr.setProperty("--radix-popper-available-height",`${Ls}px`),Xr.setProperty("--radix-popper-anchor-width",`${ql}px`),Xr.setProperty("--radix-popper-anchor-height",`${ii}px`)}}),b&&xT({element:b,padding:a}),RT({arrowWidth:E,arrowHeight:T}),f&&bT({strategy:"referenceHidden",...G})]}),[R,M]=Mw(z),U=cr(x);ur(()=>{V&&(U==null||U())},[V,U]);const $=(Z=P.arrow)==null?void 0:Z.x,Y=(Oe=P.arrow)==null?void 0:Oe.y,q=((Rt=P.arrow)==null?void 0:Rt.centerOffset)!==0,[ye,be]=v.useState();return ur(()=>{m&&be(window.getComputedStyle(m).zIndex)},[m]),S.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:V?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ye,"--radix-popper-transform-origin":[(Qt=P.transformOrigin)==null?void 0:Qt.x,(Dn=P.transformOrigin)==null?void 0:Dn.y].join(" "),...((qr=P.hide)==null?void 0:qr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:S.jsx(CT,{scope:n,placedSide:R,onArrowChange:k,arrowX:$,arrowY:Y,shouldHideArrow:q,children:S.jsx(_e.div,{"data-side":R,"data-align":M,...p,ref:y,style:{...p.style,animation:V?void 0:"none"}})})})});Aw.displayName=Uf;var Dw="PopperArrow",PT={top:"bottom",right:"left",bottom:"top",left:"right"},Nw=v.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=ET(Dw,r),s=PT[i.placedSide];return S.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:S.jsx(kT,{...o,ref:n,style:{...o.style,display:"block"}})})});Nw.displayName=Dw;function TT(e){return e!==null}var RT=e=>({name:"transformOrigin",options:e,fn(t){var w,m,g;const{placement:n,rects:r,middlewareData:o}=t,s=((w=o.arrow)==null?void 0:w.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,u]=Mw(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((m=o.arrow)==null?void 0:m.x)??0)+a/2,h=(((g=o.arrow)==null?void 0:g.y)??0)+l/2;let x="",p="";return c==="bottom"?(x=s?d:`${f}px`,p=`${-l}px`):c==="top"?(x=s?d:`${f}px`,p=`${r.floating.height+l}px`):c==="right"?(x=`${-l}px`,p=s?d:`${h}px`):c==="left"&&(x=`${r.floating.width+l}px`,p=s?d:`${h}px`),{data:{x,y:p}}}});function Mw(e){const[t,n="center"]=e.split("-");return[t,n]}var AT=Rw,DT=Aw,NT=Nw,[Il,xj]=Ss("Tooltip",[Ew]),$f=Ew(),jw="TooltipProvider",MT=700,bm="tooltip.open",[jT,Lw]=Il(jw),_w=e=>{const{__scopeTooltip:t,delayDuration:n=MT,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=v.useRef(!0),a=v.useRef(!1),l=v.useRef(0);return v.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),S.jsx(jT,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:v.useCallback(c=>{a.current=c},[]),disableHoverableContent:o,children:i})};_w.displayName=jw;var Ow="Tooltip",[Sj,Fl]=Il(Ow),rd="TooltipTrigger",LT=v.forwardRef((e,t)=>
vendor: 5,599 bytes, line 121
121{const{__scopeTooltip:n,...r}=e,o=Fl(rd,n),i=Lw(rd,n),s=$f(n),a=v.useRef(null),l=dt(t,a,o.onTriggerChange),c=v.useRef(!1),u=v.useRef(!1),d=v.useCallback(()=>c.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),S.jsx(AT,{asChild:!0,...s,children:S.jsx(_e.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:Se(e.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:Se(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:Se(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Se(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:Se(e.onBlur,o.onClose),onClick:Se(e.onClick,o.onClose)})})});LT.displayName=rd;var _T="TooltipPortal",[kj,OT]=Il(_T,{forceMount:void 0}),Wo="TooltipContent",Iw=v.forwardRef((e,t)=>{const n=OT(Wo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Fl(Wo,e.__scopeTooltip);return S.jsx(Dl,{present:r||s.open,children:s.disableHoverableContent?S.jsx(Fw,{side:o,...i,ref:t}):S.jsx(IT,{side:o,...i,ref:t})})}),IT=v.forwardRef((e,t)=>{const n=Fl(Wo,e.__scopeTooltip),r=Lw(Wo,e.__scopeTooltip),o=v.useRef(null),i=dt(t,o),[s,a]=v.useState(null),{trigger:l,onClose:c}=n,u=o.current,{onPointerInTransitChange:d}=r,f=v.useCallback(()=>{a(null),d(!1)},[d]),h=v.useCallback((x,p)=>{const w=x.currentTarget,m={x:x.clientX,y:x.clientY},g=$T(m,w.getBoundingClientRect()),y=zT(m,g),b=WT(p.getBoundingClientRect()),k=GT([...y,...b]);a(k),d(!0)},[d]);return v.useEffect(()=>()=>f(),[f]),v.useEffect(()=>{if(l&&u){const x=w=>h(w,u),p=w=>h(w,l);return l.addEventListener("pointerleave",x),u.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",x),u.removeEventListener("pointerleave",p)}}},[l,u,h,f]),v.useEffect(()=>{if(s){const x=p=>{const w=p.target,m={x:p.clientX,y:p.clientY},g=(l==null?void 0:l.contains(w))||(u==null?void 0:u.contains(w)),y=!HT(m,s);g?f():y&&(f(),c())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,u,s,c,f]),S.jsx(Fw,{...e,ref:i})}),[FT,BT]=Il(Ow,{isInside:!1}),VT=nC("TooltipContent"),Fw=v.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=Fl(Wo,n),c=$f(n),{onClose:u}=l;return v.useEffect(()=>(document.addEventListener(bm,u),()=>document.removeEventListener(bm,u)),[u]),v.useEffect(()=>{if(l.trigger){const d=f=>{const h=f.target;h!=null&&h.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),S.jsx(Rf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:S.jsxs(DT,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[S.jsx(VT,{children:r}),S.jsx(FT,{scope:n,isInside:!0,children:S.jsx(PC,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Iw.displayName=Wo;var Bw="TooltipArrow",UT=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=$f(n);return BT(Bw,n).isInside?null:S.jsx(NT,{...o,...r,ref:t})});UT.displayName=Bw;function $T(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function zT(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function WT(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function HT(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],l=t[s],c=a.x,u=a.y,d=l.x,f=l.y;u>r!=f>r&&n<(d-c)*(r-u)/(f-u)+c&&(o=!o)}return o}function GT(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),KT(t)}function KT(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var QT=_w,Vw=Iw;const YT=QT,qT=v.forwardRef(({className:e,sideOffset:t=4,...n},r)=>S.jsx(Vw,{ref:r,sideOffset:t,className:Et("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
121de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));qT.displayName=Vw.displayName;var Bl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Vl=typeof window>"u"||"Deno"in globalThis;function It(){}function XT(e,t){return typeof e=="function"?e(t):e}function ZT(e){return typeof e=="number"&&e>=0&&e!==1/0}function JT(e,t){return Math.max(e+(t||0)-Date.now(),0)}function od(e,t){return typeof e=="function"?e(t):e}function e2(e,t){return typeof e=="function"?e(t):e}function xm(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==zf(s,t.options))return!1}else if(!is(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function Sm(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(os(t.options.mutationKey)!==os(i))return!1}else if(!is(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function zf(e,t){return((t==null?void 0:t.queryKeyHashFn)||os)(e)}function os(e){return JSON.stringify(e,(t,n)=>id(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function is(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>is(e[n],t[n])):!1}function Uw(e,t){if(e===t)return e;const n=km(e)&&km(t);if(n||id(e)&&id(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{},l=new Set(r);let c=0;for(let u=0;u<s;u++){const d=n?u:i[u];(!n&&l.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=Uw(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return o===s&&c===o?e:a}return t}function km(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function id(e){if(!Cm(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Cm(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Cm(e){return Object.prototype.toString.call(e)==="[object Object]"}function t2(e){return new Promise(t=>{setTimeout(t,e)})}function n2(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Uw(e,t):t}function r2(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function o2(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Wf=Symbol();function $w(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Wf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Mr,Wn,Ro,Zg,i2=(Zg=class extends Bl{constructor(){super();ee(this,Mr);ee(this,Wn);ee(this,Ro);H(this,Ro,t=>{if(!Vl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){A(this,Wn)||this.setEventListener(A(this,Ro))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,Wn))==null||t.call(this),H(this,Wn,void 0))}setEventListener(t){var n;H(this,Ro,t),(n=A(this,Wn))==null||n.call(this),H(this,Wn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){A(this,Mr)!==t&&(H(this,Mr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof A(this,Mr)=="boolean"?A(this,Mr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Mr=new WeakMap,Wn=new WeakMap,Ro=new WeakMap,Zg),zw=new i2,Ao,Hn,Do,Jg,s2=(Jg=class extends Bl{constructor(){super();ee(this,Ao,!0);ee(this,Hn);ee(this,Do);H(this,Do,t=>{if(!Vl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){A(this,Hn)||this.setEventListener(A(this,Do))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,Hn))==null||t.call(this),H(this,Hn,void 0))}setEventListener(t){var n;H(this,Do,t),(n=A(this,Hn))==null||n.call(this),H(this,Hn,t(this.setOnline.bind(this)))}setOnline(t){A(this,Ao)!==t&&(H(this,Ao,t),this.listeners.forEac
vendor: 19,398 bytes, line 121
121h(r=>{r(t)}))}isOnline(){return A(this,Ao)}},Ao=new WeakMap,Hn=new WeakMap,Do=new WeakMap,Jg),sl=new s2;function a2(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function l2(e){return Math.min(1e3*2**e,3e4)}function Ww(e){return(e??"online")==="online"?sl.isOnline():!0}var Hw=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function jc(e){return e instanceof Hw}function Gw(e){let t=!1,n=0,r=!1,o;const i=a2(),s=p=>{var w;r||(f(new Hw(p)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>zw.isFocused()&&(e.networkMode==="always"||sl.isOnline())&&e.canRun(),u=()=>Ww(e.networkMode)&&e.canRun(),d=p=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,p),o==null||o(),i.resolve(p))},f=p=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,p),o==null||o(),i.reject(p))},h=()=>new Promise(p=>{var w;o=m=>{(r||c())&&p(m)},(w=e.onPause)==null||w.call(e)}).then(()=>{var p;o=void 0,r||(p=e.onContinue)==null||p.call(e)}),x=()=>{if(r)return;let p;const w=n===0?e.initialPromise:void 0;try{p=w??e.fn()}catch(m){p=Promise.reject(m)}Promise.resolve(p).then(d).catch(m=>{var C;if(r)return;const g=e.retry??(Vl?0:3),y=e.retryDelay??l2,b=typeof y=="function"?y(n,m):y,k=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,m);if(t||!k){f(m);return}n++,(C=e.onFail)==null||C.call(e,n,m),t2(b).then(()=>c()?void 0:h()).then(()=>{t?f(m):x()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?x():h().then(x),i)}}var c2=e=>setTimeout(e,0);function u2(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=c2;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Ge=u2(),jr,ey,Kw=(ey=class{constructor(){ee(this,jr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ZT(this.gcTime)&&H(this,jr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Vl?1/0:5*60*1e3))}clearGcTimeout(){A(this,jr)&&(clearTimeout(A(this,jr)),H(this,jr,void 0))}},jr=new WeakMap,ey),No,Lr,gt,_r,Ve,ps,Or,Ft,fn,ty,d2=(ty=class extends Kw{constructor(t){super();ee(this,Ft);ee(this,No);ee(this,Lr);ee(this,gt);ee(this,_r);ee(this,Ve);ee(this,ps);ee(this,Or);H(this,Or,!1),H(this,ps,t.defaultOptions),this.setOptions(t.options),this.observers=[],H(this,_r,t.client),H(this,gt,A(this,_r).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,H(this,No,h2(this.options)),this.state=t.state??A(this,No),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=A(this,Ve))==null?void 0:t.promise}setOptions(t){this.options={...A(this,ps),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&A(this,gt).remove(this)}setData(t,n){const r=n2(this.state.data,t,this.options);return Ie(this,Ft,fn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ie(this,Ft,fn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=A(this,Ve))==null?void 0:r.promise;return(o=A(this,Ve))==null||o.cancel(t),n?n.then(It).catch(It):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(A(this,No))}isActive(){return this.observers.some(t=>e2(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Wf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>od(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!JT(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=A(this,Ve))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=A(this,Ve))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),A(this,gt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(A(this,Ve)&&(A(this,Or)?A(this,Ve).cancel({revert:!0}):A(this,Ve).cancelRetry()),this.scheduleGc()),A(this,gt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ie(this,Ft,fn).call(this,{type:"invalidate"})}fetch(t,n){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(A(this,Ve))return A(this,Ve).continueRetry(),A(this,Ve).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(H(this,Or,!0),r.signal)})},i=()=>{const f=$w(this.options,n),x=(()=>{const p={client:A(this,_r),queryKey:this.queryKey,meta:this.meta};return o(p),p})();return H(this,Or,!1),this.options.persister?this.options.persister(f,x,this):f(x)},a=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:A(this,_r),state:this.state,fetchFn:i};return o(f),f})();(c=this.options.behavior)==null||c.onFetch(a,this),H(this,Lr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&Ie(this,Ft,fn).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=f=>{var h,x,p,w;jc(f)&&f.silent||Ie(this,Ft,fn).call(this,{type:"error",error:f}),jc(f)||((x=(h=A(this,gt).config).onError)==null||x.call(h,f,this),(w=(p=A(this,gt).config).onSettled)==null||w.call(p,this.state.data,f,this)),this.scheduleGc()};return H(this,Ve,Gw({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var h,x,p,w;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(m){l(m);return}(x=(h=A(this,gt).config).onSuccess)==null||x.call(h,f,this),(w=(p=A(this,gt).config).onSettled)==null||w.call(p,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,h)=>{Ie(this,Ft,fn).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{Ie(this,Ft,fn).call(this,{type:"pause"})},onContinue:()=>{Ie(this,Ft,fn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),A(this,Ve).start()}},No=new WeakMap,Lr=new WeakMap,gt=new WeakMap,_r=new WeakMap,Ve=new WeakMap,ps=new WeakMap,Or=new WeakMap,Ft=new WeakSet,fn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...f2(r.data,this.options),fetchMeta:t.meta??null};case"success":return H(this,Lr,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return jc(o)&&o.revert&&A(this,Lr)?{...A(this,Lr),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ge.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),A(this,gt).notify({query:this,type:"updated",action:t})})},ty);function f2(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ww(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function h2(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Xt,ny,p2=(ny=class extends Bl{constructor(t={}){super();ee(this,Xt);this.config=t,H(this,Xt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??zf(o,n);let s=this.get(i);return s||(s=new d2({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){A(this,Xt).has(t.queryHash)||(A(this,Xt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=A(this,Xt).get(t.queryHash);n&&(t.destroy(),n===t&&A(this,Xt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ge.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return A(this,Xt).get(t)}getAll(){return[...A(this,Xt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>xm(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>xm(t,r)):n}notify(t){Ge.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ge.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ge.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Xt=new WeakMap,ny),Zt,We,Ir,Jt,Fn,ry,m2=(ry=class extends Kw{constructor(t){super();ee(this,Jt);ee(this,Zt);ee(this,We);ee(this,Ir);this.mutationId=t.mutationId,H(this,We,t.mutationCache),H(this,Zt,[]),this.state=t.state||g2(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){A(this,Zt).includes(t)||(A(this,Zt).push(t),this.clearGcTimeout(),A(this,We).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){H(this,Zt,A(this,Zt).filter(n=>n!==t)),this.scheduleGc(),A(this,We).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){A(this,Zt).length||(this.state.status==="pending"?this.scheduleGc():A(this,We).remove(this))}continue(){var t;return((t=A(this,Ir))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,a,l,c,u,d,f,h,x,p,w,m,g,y,b,k,C,E,T;const n=()=>{Ie(this,Jt,Fn).call(this,{type:"continue"})};H(this,Ir,Gw({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(D,N)=>{Ie(this,Jt,Fn).call(this,{type:"failed",failureCount:D,error:N})},onPause:()=>{Ie(this,Jt,Fn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>A(this,We).canRun(this)}));const r=this.state.status==="pending",o=!A(this,Ir).canStart();try{if(r)n();else{Ie(this,Jt,Fn).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=A(this,We).config).onMutate)==null?void 0:s.call(i,t,this));const N=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));N!==this.state.context&&Ie(this,Jt,Fn).call(this,{type:"pending",context:N,variables:t,isPaused:o})}const D=await A(this,Ir).start();return await((u=(c=A(this,We).config).onSuccess)==null?void 0:u.call(c,D,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,D,t,this.state.context)),await((x=(h=A(this,We).config).onSettled)==null?void 0:x.call(h,D,null,this.state.variables,this.state.context,this)),await((w=(p=this.options).onSettled)==null?void 0:w.call(p,D,null,t,this.state.context)),Ie(this,Jt,Fn).call(this,{type:"success",data:D}),D}catch(D){try{throw await((g=(m=A(this,We).config).onError)==null?void 0:g.call(m,D,t,this.state.context,this)),await((b=(y=this.options).onError)==null?void 0:b.call(y,D,t,this.state.context)),await((C=(k=A(this,We).config).onSettled)==null?void 0:C.call(k,void 0,D,this.state.variables,this.state.context,this)),await((T=(E=this.options).onSettled)==null?void 0:T.call(E,void 0,D,t,this.state.context)),D}finally{Ie(this,Jt,Fn).call(this,{type:"error",error:D})}}finally{A(this,We).runNext(this)}}},Zt=new WeakMap,We=new WeakMap,Ir=new WeakMap,Jt=new WeakSet,Fn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ge.batch(()=>{A(this,Zt).forEach(r=>{r.onMutationUpdate(t)}),A(this,We).notify({mutation:this,type:"updated",action:t})})},ry);function g2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var mn,Bt,ms,oy,y2=(oy=class extends Bl{constructor(t={}){super();ee(this,mn);ee(this,Bt);ee(this,ms);this.config=t,H(this,mn,new Set),H(this,Bt,new Map),H(this,ms,0)}build(t,n,r){const o=new m2({mutationCache:this,mutationId:++Os(this,ms)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){A(this,mn).add(t);const n=oa(t);if(typeof n=="string"){const r=A(this,Bt).get(n);r?r.push(t):A(this,Bt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(A(this,mn).delete(t)){const n=oa(t);if(typeof n=="string"){const r=A(this,Bt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&A(this,Bt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=oa(t);if(typeof n=="string"){const r=A(this,Bt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=oa(t);if(typeof n=="string"){const o=(r=A(this,Bt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ge.batch(()=>{A(this,mn).forEach(t=>{this.notify({type:"removed",mutation:t})}),A(this,mn).clear(),A(this,Bt).clear()})}getAll(){return Array.from(A(this,mn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Sm(n,r))}findAll(t={}){return this.getAll().filter(n=>Sm(t,n))}notify(t){Ge.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ge.batch(()=>Promise.all(t.map(n=>n.continue().catch(It))))}},mn=new WeakMap,Bt=new WeakMap,ms=new WeakMap,oy);function oa(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Em(e){return{onFetch:(t,n)=>{var u,d,f,h,x;const r=t.options,o=(f=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,i=((h=t.state.data)==null?void 0:h.pages)||[],s=((x=t.state.data)==null?void 0:x.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let p=!1;const w=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},m=$w(t.options,t.fetchOptions),g=async(y,b,k)=>{if(p)return Promise.reject();if(b==null&&y.pages.length)return Promise.resolve(y);const E=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:b,direction:k?"backward":"forward",meta:t.options.meta};return w(B),B})(),T=await m(E),{maxPages:D}=t.options,N=k?o2:r2;return{pages:N(y.pages,T,D),pageParams:N(y.pageParams,b,D)}};if(o&&i.length){const y=o==="backward",b=y?v2:Pm,k={pages:i,pageParams:s},C=b(r,k);a=await g(k,C,y)}else{const y=e??i.length;do{const b=l===0?s[0]??r.initialPageParam:Pm(r,a);if(l>0&&b==null)break;a=await g(a,b),l++}while(l<y)}return a};t.options.persister?t.fetchFn=()=>{var p,w;return(w=(p=t.options).persister)==null?void 0:w.call(p,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Pm(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function v2(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ve,Gn,Kn,Mo,jo,Qn,Lo,_o,iy,w2=(iy=class{constructor(e={}){ee(this,ve);ee(this,Gn);ee(this,Kn);ee(this,Mo);ee(this,jo);ee(this,Qn);ee(this,Lo);ee(this,_o);H(this,ve,e.queryCache||new p2),H(this,Gn,e.mutationCache||new y2),H(this,Kn,e.defaultOptions||{}),H(this,Mo,new Map),H(this,jo,new Map),H(this,Qn,0)}mount(){Os(this,Qn)._++,A(this,Qn)===1&&(H(this,Lo,zw.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,ve).onFocus())})),H(this,_o,sl.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,ve).onOnline())})))}unmount(){var e,t;Os(this,Qn)._--,A(this,Qn)===0&&((e=A(this,Lo))==null||e.call(this),H(this,Lo,void 0),(t=A(this,_o))==null||t.call(this),H(this,_o,void 0))}isFetching(e){return A(this,ve).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return A(this,Gn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=A(this,ve).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=A(this,ve).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(od(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return A(this,ve).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=A(this,ve).get(r.queryHash),i=o==null?void 0:o.state.data,s=XT(t,i);if(s!==void 0)return A(this,ve).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Ge.batch(()=>A(this,ve).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=A(this,ve).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=A(this,ve);Ge.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=A(this,ve);return Ge.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ge.batch(()=>A(this,ve).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(It).catch(It)}invalidateQueries(e,t={}){return Ge.batch(()=>(A(this,ve).findAll(e).forEach(n=>
121{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ge.batch(()=>A(this,ve).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(It)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(It)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=A(this,ve).build(this,t);return n.isStaleByTime(od(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(It).catch(It)}fetchInfiniteQuery(e){return e.behavior=Em(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(It).catch(It)}ensureInfiniteQueryData(e){return e.behavior=Em(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return sl.isOnline()?A(this,Gn).resumePausedMutations():Promise.resolve()}getQueryCache(){return A(this,ve)}getMutationCache(){return A(this,Gn)}getDefaultOptions(){return A(this,Kn)}setDefaultOptions(e){H(this,Kn,e)}setQueryDefaults(e,t){A(this,Mo).set(os(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...A(this,Mo).values()],n={};return t.forEach(r=>{is(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){A(this,jo).set(os(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...A(this,jo).values()],n={};return t.forEach(r=>{is(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...A(this,Kn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=zf(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Wf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...A(this,Kn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){A(this,ve).clear(),A(this,Gn).clear()}},ve=new WeakMap,Gn=new WeakMap,Kn=new WeakMap,Mo=new WeakMap,jo=new WeakMap,Qn=new WeakMap,Lo=new WeakMap,_o=new WeakMap,iy),b2=v.createContext(void 0),x2=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),S.jsx(b2.Provider,{value:e,children:t}));/**
122 * react-router v7.12.0
123 *
124 * Copyright (c) Remix Software Inc.
125 *
126 * This source code is licensed under the MIT license found in the
127 * LICENSE.md file in the root directory of this source tree.
128 *
129 * @license MIT
130 */var Tm="popstate";function S2(e={}){function t(r,o){let{pathname:i,search:s,hash:a}=r.location;return sd("",{pathname:i,search:s,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:ss(o)}return C2(t,n,null,e)}function me(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Kt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function k2(){return Math.random().toString(36).substring(2,10)}function Rm(e,t){return{usr:e.state,key:e.key,idx:t}}function sd(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ei(t):t,state:n,key:t&&t.key||r||k2()}}function ss({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ei(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function C2(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a="POP",l=null,c=u();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function u(){return(s.state||{idx:null}).idx}function d(){a="POP";let w=u(),m=w==null?null:w-c;c=w,l&&l({action:a,location:p.location,delta:m})}function f(w,m){a="PUSH";let g=sd(p.location,w,m);c=u()+1;let y=Rm(g,c),b=p.createHref(g);
130try{s.pushState(y,"",b)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(b)}i&&l&&l({action:a,location:p.location,delta:1})}function h(w,m){a="REPLACE";let g=sd(p.location,w,m);c=u();let y=Rm(g,c),b=p.createHref(g);s.replaceState(y,"",b),i&&l&&l({action:a,location:p.location,delta:0})}function x(w){return E2(w)}let p={get action(){return a},get location(){return e(o,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Tm,d),l=w,()=>{o.removeEventListener(Tm,d),l=null}},createHref(w){return t(o,w)},createURL:x,encodeLocation(w){let m=x(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:h,go(w){return s.go(w)}};return p}function E2(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),me(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:ss(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Qw(e,t,n="/"){return P2(e,t,n,!1)}function P2(e,t,n,r){let o=typeof t=="string"?ei(t):t,i=Pn(o.pathname||"/",n);if(i==null)return null;let s=Yw(e);T2(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let c=F2(i);a=O2(s[l],c,r)}return a}function Yw(e,t=[],n=[],r="",o=!1){let i=(s,a,l=o,c)=>{let u={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(r)&&l)return;me(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length)}let d=wn([r,u.relativePath]),f=n.concat(u);s.children&&s.children.length>0&&(me(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Yw(s.children,t,f,d,l)),!(s.path==null&&!s.index)&&t.push({path:d,score:L2(d,s.index),routesMeta:f})};return e.forEach((s,a)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,a);else for(let c of qw(s.path))i(s,a,!0,c)}),t}function qw(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=qw(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function T2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:_2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var R2=/^:[\w-]+$/,A2=3,D2=2,N2=1,M2=10,j2=-2,Am=e=>e==="*";function L2(e,t){let n=e.split("/"),r=n.length;return n.some(Am)&&(r+=j2),t&&(r+=D2),n.filter(o=>!Am(o)).reduce((o,i)=>o+(R2.test(i)?A2:i===""?N2:M2),r)}function _2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function O2(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,u=i==="/"?t:t.slice(i.length)||"/",d=al({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),f=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=al({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;
130Object.assign(o,d.params),s.push({params:o,pathname:wn([i,d.pathname]),pathnameBase:$2(wn([i,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(i=wn([i,d.pathnameBase]))}return s}function al(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=I2(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((c,{paramName:u,isOptional:d},f)=>{if(u==="*"){let x=a[f]||"";s=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const h=a[f];return d&&!h?c[u]=void 0:c[u]=(h||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function I2(e,t=!1,n=!0){Kt(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function F2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Kt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Pn(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)||"/"}var Xw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,B2=e=>Xw.test(e);function V2(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ei(e):e,i;if(n)if(B2(n))i=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),Kt(!1,`Pathnames cannot have embedded double slashes - normalizing ${s} -> ${n}`)}n.startsWith("/")?i=Dm(n.substring(1),"/"):i=Dm(n,t)}else i=t;return{pathname:i,search:z2(r),hash:W2(o)}}function Dm(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Lc(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 U2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Zw(e){let t=U2(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Jw(e,t,n,r=!1){let o;typeof e=="string"?o=ei(e):(o={...e},me(!o.pathname||!o.pathname.includes("?"),Lc("?","pathname","search",o)),me(!o.pathname||!o.pathname.includes("#"),Lc("#","pathname","hash",o)),me(!o.search||!o.search.includes("#"),Lc("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=V2(o,a),c=s&&s!=="/"&&s.endsWith("/"),u=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var wn=e=>e.join("/").replace(/\/\/+/g,"/"),$2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),z2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,W2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,H2=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function G2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function K2(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var eb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function tb(e,t){let n=e;
130if(typeof n!="string"||!Xw.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(eb)try{let i=new URL(window.location.href),s=n.startsWith("//")?new URL(i.protocol+n):new URL(n),a=Pn(s.pathname,t);s.origin===i.origin&&a!=null?n=a+s.search+s.hash:o=!0}catch{Kt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var nb=["POST","PUT","PATCH","DELETE"];new Set(nb);var Q2=["GET",...nb];new Set(Q2);var ti=v.createContext(null);ti.displayName="DataRouter";var Ul=v.createContext(null);Ul.displayName="DataRouterState";var Y2=v.createContext(!1),rb=v.createContext({isTransitioning:!1});rb.displayName="ViewTransition";var q2=v.createContext(new Map);q2.displayName="Fetchers";var X2=v.createContext(null);X2.displayName="Await";var Tt=v.createContext(null);Tt.displayName="Navigation";var Es=v.createContext(null);Es.displayName="Location";var An=v.createContext({outlet:null,matches:[],isDataRoute:!1});An.displayName="Route";var Hf=v.createContext(null);Hf.displayName="RouteError";var ob="REACT_ROUTER_ERROR",Z2="REDIRECT",J2="ROUTE_ERROR_RESPONSE";function eR(e){if(e.startsWith(`${ob}:${Z2}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function tR(e){if(e.startsWith(`${ob}:${J2}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new H2(t.status,t.statusText,t.data)}catch{}}function nR(e,{relative:t}={}){me(Ps(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=v.useContext(Tt),{hash:o,pathname:i,search:s}=Ts(e,{relative:t}),a=i;return n!=="/"&&(a=i==="/"?n:wn([n,i])),r.createHref({pathname:a,search:s,hash:o})}function Ps(){return v.useContext(Es)!=null}function vr(){return me(Ps(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(Es).location}var ib="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function sb(e){v.useContext(Tt).static||v.useLayoutEffect(e)}function rR(){let{isDataRoute:e}=v.useContext(An);return e?gR():oR()}function oR(){me(Ps(),"useNavigate() may be used only in the context of a <Router> component.");let e=v.useContext(ti),{basename:t,navigator:n}=v.useContext(Tt),{matches:r}=v.useContext(An),{pathname:o}=vr(),i=JSON.stringify(Zw(r)),s=v.useRef(!1);return sb(()=>{s.current=!0}),v.useCallback((l,c={})=>{if(Kt(s.current,ib),!s.current)return;if(typeof l=="number"){n.go(l);return}let u=Jw(l,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:wn([t,u.pathname])),(c.replace?n.replace:n.push)(u,c.state,c)},[t,n,i,o,e])}v.createContext(null);function Ts(e,{relative:t}={}){let{matches:n}=v.useContext(An),{pathname:r}=vr(),o=JSON.stringify(Zw(n));return v.useMemo(()=>Jw(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function iR(e,t){return ab(e,t)}function ab(e,t,n,r,o){var g;me(Ps(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=v.useContext(Tt),{matches:s}=v.useContext(An),a=s[s.length-1],l=a?a.params:{},c=a?a.pathname:"/",u=a?a.pathnameBase:"/",d=a&&a.route;{let y=d&&d.path||"";cb(c,!d||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
131
132Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let f=vr(),h;if(t){let y=typeof t=="string"?ei(t):t;me(u==="/"||((g=y.pathname)==null?void 0:g.startsWith(u)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${y.pathname}" was given in the \`location\` prop.`),h=y}else h=f;let x=h.pathname||"/",p=x;if(u!=="/"){let y=u.replace(/^\//,"").split("/");p="/"+x.replace(/^\//,"").split("/").slice(y.length).join("/")}let w=Qw(e,{pathname:p});Kt(d||w!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Kt(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let m=uR(w&&w.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:wn([u,i.encodeLocation?i.encodeLocation(y.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?u:wn([u,i.encodeLocation?i.encodeLocation(y.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),s,n,r,o);return t&&m?v.createElement(Es.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},m):m}function sR(){let e=mR(),t=G2(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:i},"ErrorBoundary")," or"," ",v.createElement("code",{style:i},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application 
132Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,s)}var aR=v.createElement(sR,null),lb=class extends v.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=tR(e.digest);n&&(e=n)}let t=e!==void 0?v.createElement(An.Provider,{value:this.props.routeContext},v.createElement(Hf.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?v.createElement(lR,{error:e},t):t}};lb.contextType=Y2;var _c=new WeakMap;function lR({children:e,error:t}){let{basename:n}=v.useContext(Tt);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=eR(t.digest);if(r){let o=_c.get(t);if(o)throw o;let i=tb(r.location,n);if(eb&&!_c.get(t))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw _c.set(t,s),s}return v.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function cR({routeContext:e,match:t,children:n}){let r=v.useContext(ti);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),v.createElement(An.Provider,{value:e},n)}function uR(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=n==null?void 0:n.errors;if(s!=null){let u=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);me(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let a=!1,l=-1;if(n)for(let u=0;u<i.length;u++){let d=i[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(l=u),d.route.id){let{loaderData:f,errors:h}=n,x=d.route.loader&&!f.hasOwnProperty(d.route.id)&&(!h||h[d.route.id]===void 0);if(d.route.lazy||x){a=!0,l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}let c=n&&r?(u,d)=>{var f,h;r(u,{location:n.location,params:((h=(f=n.matches)==null?void 0:f[0])==null?void 0:h.params)??{},unstable_pattern:K2(n.matches),errorInfo:d})}:void 0;return i.reduceRight((u,d,f)=>{let h,x=!1,p=null,w=null;n&&(h=s&&d.route.id?s[d.route.id]:void 0,p=d.route.errorElement||aR,a&&(l<0&&f===0?(cb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,w=null):l===f&&(x=!0,w=d.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,f+1)),g=()=>{let y;return h?y=p:x?y=w:d.route.Component?y=v.createElement(d.route.Component,null):d.route.element?y=d.route.element:y=u,v.createElement(cR,{match:d,routeContext:{outlet:u,matches:m,isDataRoute:n!=null},children:y})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?v.createElement(lb,{location:n.location,revalidation:n.revalidation,component:p,error:h,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:c}):g()},null)}function Gf(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function dR(e){let t=v.useContext(ti);return me(t,Gf(e)),t}function fR(e){let t=v.useContext(Ul);return me(t,Gf(e)),t}function hR(e){let t=v.useContext(An);return me(t,Gf(e)),t}function Kf(e){let t=hR(e),n=t.matches[t.matches.length-1];return me(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function pR(){return Kf("useRouteId")}function mR(){var r;let e=v.useContext(Hf),t=fR("useRouteError"),n=Kf("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function gR(){let{router:e}=dR("useNavigate"),t=Kf("useNavigate"),n=v.useRef(!1);return sb(()=>{n.current=!0}),v.useCallback(async(o,i={})=>{Kt(n.current,ib),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var Nm={};function cb(e,t,n){!t&&!Nm[e]&&(Nm[e]=!0,Kt(!1,n))}v.memo(yR);function yR({routes:e,future:t,state:n,onError:r}){return ab(e,void 0,n,r,t)}function ad(e){me(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function vR({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:s}){me(!Ps(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),l=v.useMemo(()=>({basename:a,navigator:o,static:i,unstable_useTransitions:s,future:{}}),[a,o,i,s]);typeof n=="string"&&(n=ei(n));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:h="default"}=n,x=v.useMemo(()=>{let p=Pn(c,a);return p==null?null:{location:{pathname:p,search:u,hash:d,state:f,key:h},navigationType:r}},[a,c,u,d,f,h,r]);
132return Kt(x!=null,`<Router basename="${a}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:v.createElement(Tt.Provider,{value:l},v.createElement(Es.Provider,{children:t,value:x}))}function wR({children:e,location:t}){return iR(ld(e),t)}function ld(e,t=[]){let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let i=[...t,o];if(r.type===v.Fragment){n.push.apply(n,ld(r.props.children,i));return}me(r.type===ad,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),me(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||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=ld(r.props.children,i)),n.push(s)}),n}var Ea="get",Pa="application/x-www-form-urlencoded";function $l(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function bR(e){return $l(e)&&e.tagName.toLowerCase()==="button"}function xR(e){return $l(e)&&e.tagName.toLowerCase()==="form"}function SR(e){return $l(e)&&e.tagName.toLowerCase()==="input"}function kR(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function CR(e,t){return e.button===0&&(!t||t==="_self")&&!kR(e)}var ia=null;function ER(){if(ia===null)try{new FormData(document.createElement("form"),0),ia=!1}catch{ia=!0}return ia}var PR=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Oc(e){return e!=null&&!PR.has(e)?(Kt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Pa}"`),null):e}function TR(e,t){let n,r,o,i,s;if(xR(e)){let a=e.getAttribute("action");r=a?Pn(a,t):null,n=e.getAttribute("method")||Ea,o=Oc(e.getAttribute("enctype"))||Pa,i=new FormData(e)}else if(bR(e)||SR(e)&&(e.type==="submit"||e.type==="image")){let a=e.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||a.getAttribute("action");if(r=l?Pn(l,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||Ea,o=Oc(e.getAttribute("formenctype"))||Oc(a.getAttribute("enctype"))||Pa,i=new FormData(a,e),!ER()){let{name:c,type:u,value:d}=e;if(u==="image"){let f=c?`${c}.`:"";i.append(`${f}x`,"0"),i.append(`${f}y`,"0")}else c&&i.append(c,d)}}else{if($l(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ea,r=null,o=Pa,s=e}return i&&o==="text/plain"&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Qf(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function RR(e,t,n,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:t&&Pn(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function AR(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function DR(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function NR(e,t,n){let r=await Promise.all(e.map(async o=>{let i=t.routes[o.route.id];if(i){let s=await AR(i,n);return s.links?s.links():[]}return[]}));return _R(r.flat(1).filter(DR).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Mm(e,t,n,r,o,i){let s=(l,c)=>n[c]?l.route.id!==n[c].route.id:!0,a=(l,c)=>{var u;return n[c].pathname!==l.pathname||((u=n[c].route.path)==null?void 0:u.endsWith("*"))&&n[c].params["*"]!==l.params["*"]};return i==="assets"?t.filter((l,c)=>s(l,c)||a(l,c)):i==="data"?t.filter((l,c)=>{var d;let u=r.routes[l.route.id];if(!u||!u.hasLoader)return!1;if(s(l,c)||a(l,c))return!0;
132if(l.route.shouldRevalidate){let f=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((d=n[0])==null?void 0:d.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function MR(e,t,{includeHydrateFallback:n}={}){return jR(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function jR(e){return[...new Set(e)]}function LR(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function _R(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let i=JSON.stringify(LR(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function ub(){let e=v.useContext(ti);return Qf(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function OR(){let e=v.useContext(Ul);return Qf(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Yf=v.createContext(void 0);Yf.displayName="FrameworkContext";function db(){let e=v.useContext(Yf);return Qf(e,"You must render this element inside a <HydratedRouter> element"),e}function IR(e,t){let n=v.useContext(Yf),[r,o]=v.useState(!1),[i,s]=v.useState(!1),{onFocus:a,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:d}=t,f=v.useRef(null);v.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let p=m=>{m.forEach(g=>{s(g.isIntersecting)})},w=new IntersectionObserver(p,{threshold:.5});return f.current&&w.observe(f.current),()=>{w.disconnect()}}},[e]),v.useEffect(()=>{if(r){let p=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(p)}}},[r]);let h=()=>{o(!0)},x=()=>{o(!1),s(!1)};return n?e!=="intent"?[i,f,{}]:[i,f,{onFocus:yi(a,h),onBlur:yi(l,x),onMouseEnter:yi(c,h),onMouseLeave:yi(u,x),onTouchStart:yi(d,h)}]:[!1,f,{}]}function yi(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function FR({page:e,...t}){let{router:n}=ub(),r=v.useMemo(()=>Qw(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?v.createElement(VR,{page:e,matches:r,...t}):null}function BR(e){let{manifest:t,routeModules:n}=db(),[r,o]=v.useState([]);return v.useEffect(()=>{let i=!1;return NR(e,t,n).then(s=>{i||o(s)}),()=>{i=!0}},[e,t,n]),r}function VR({page:e,matches:t,...n}){let r=vr(),{future:o,manifest:i,routeModules:s}=db(),{basename:a}=ub(),{loaderData:l,matches:c}=OR(),u=v.useMemo(()=>Mm(e,t,c,i,r,"data"),[e,t,c,i,r]),d=v.useMemo(()=>Mm(e,t,c,i,r,"assets"),[e,t,c,i,r]),f=v.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let p=new Set,w=!1;if(t.forEach(g=>{var b;let y=i.routes[g.route.id];!y||!y.hasLoader||(!u.some(k=>k.route.id===g.route.id)&&g.route.id in l&&((b=s[g.route.id])!=null&&b.shouldRevalidate)||y.hasClientLoader?w=!0:p.add(g.route.id))}),p.size===0)return[];let m=RR(e,a,o.unstable_trailingSlashAwareDataRequests,"data");return w&&p.size>0&&m.searchParams.set("_routes",t.filter(g=>p.has(g.route.id)).map(g=>g.route.id).join(",")),[m.pathname+m.search]},[a,o.unstable_trailingSlashAwareDataRequests,l,r,i,u,t,e,s]),h=v.useMemo(()=>MR(d,i),[d,i]),x=BR(d);return v.createElement(v.Fragment,null,f.map(p=>v.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...n})),h.map(p=>v.createElement("link",{key:p,rel:"modulepreload",href:p,...n})),x.map(({key:p,link:w})=>v.createElement("link",{key:p,nonce:n.nonce,...w})))}function UR(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var $R=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{$R&&(window.__reactRouterVersion="7.12.0")}catch{}function zR({basename:e,children:t,unstable_useTransitions:n,window:r}){let o=v.useRef();o.current==null&&(o.current=S2({window:r,v5Compat:!0}));let i=o.current,[s,a]=v.useState({action:i.action,location:i.location}),l=v.useCallback(c=>{n===!1?a(c):v.startTransition(()=>a(c))},[n]);return v.useLayoutEffect(()=>i.listen(l),[i,l]),v.createElement(vR,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i,unstable_useTransitions:n})}var fb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hb=v.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:s,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:f,...h},x){let{basename:p,unstable_useTransitions:w}=v.useContext(Tt),m=typeof c=="string"&&fb.test(c),g=tb(c,p);c=g.to;let y=nR(c,{relative:o}),[b,k,C]=IR(r,h),E=KR(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:o,viewTransition:d,unstable_defaultShouldRevalidate:f,unstable_useTransitions:w});function T(N){t&&t(N),N.defaultPrevented||E(N)}let D=v.createElement("a",{...h,...C,href:g.absoluteURL||y,onClick:g.isExternal||i?t
vendor: 1,523 bytes, line 132
132:T,ref:UR(x,k),target:l,"data-discover":!m&&n==="render"?"true":void 0});return b&&!m?v.createElement(v.Fragment,null,D,v.createElement(FR,{page:y})):D});hb.displayName="Link";var WR=v.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:s,viewTransition:a,children:l,...c},u){let d=Ts(s,{relative:c.relative}),f=vr(),h=v.useContext(Ul),{navigator:x,basename:p}=v.useContext(Tt),w=h!=null&&ZR(d)&&a===!0,m=x.encodeLocation?x.encodeLocation(d).pathname:d.pathname,g=f.pathname,y=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;n||(g=g.toLowerCase(),y=y?y.toLowerCase():null,m=m.toLowerCase()),y&&p&&(y=Pn(y,p)||y);const b=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let k=g===m||!o&&g.startsWith(m)&&g.charAt(b)==="/",C=y!=null&&(y===m||!o&&y.startsWith(m)&&y.charAt(m.length)==="/"),E={isActive:k,isPending:C,isTransitioning:w},T=k?t:void 0,D;typeof r=="function"?D=r(E):D=[r,k?"active":null,C?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let N=typeof i=="function"?i(E):i;return v.createElement(hb,{...c,"aria-current":T,className:D,ref:u,style:N,to:s,viewTransition:a},typeof l=="function"?l(E):l)});WR.displayName="NavLink";var HR=v.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:s=Ea,action:a,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:f,...h},x)=>{let{unstable_useTransitions:p}=v.useContext(Tt),w=qR(),m=XR(a,{relative:c}
132),g=s.toLowerCase()==="get"?"get":"post",y=typeof a=="string"&&fb.test(a),b=k=>{if(l&&l(k),k.defaultPrevented)return;k.preventDefault();let C=k.nativeEvent.submitter,E=(C==null?void 0:C.getAttribute("formmethod"))||s,T=()=>w(C||k.currentTarget,{fetcherKey:t,method:E,navigate:n,replace:o,state:i,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:f});p&&n!==!1?v.startTransition(()=>T()):T()};return v.createElement("form",{ref:x,method:g,action:m,onSubmit:r?l:b,...h,"data-discover":!y&&e==="render"?"true":void 0})});HR.displayName="Form";function GR(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function pb(e){let t=v.useContext(ti);return me(t,GR(e)),t}function KR(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:a,unstable_useTransitions:l}={}){let c=rR(),u=vr(),d=Ts(e,{relative:i});return v.useCallback(f=>{if(CR(f,t)){f.preventDefault();let h=n!==void 0?n:ss(u)===ss(d),x=()=>c(e,{replace:h,state:r,preventScrollReset:o,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:a});l?v.startTransition(()=>x()):x()}},[u,c,d,n,r,t,e,o,i,s,a,l])}var QR=0,YR=()=>`__${String(++QR)}__`;function qR(){let{router:e}=pb("useSubmit"),{basename:t}=v.useContext(Tt),n=pR(),r=e.fetch,o=e.navigate;return v.useCallback(async(i,s={})=>{let{action:a,method:l,encType:c,formData:u,body:d}=TR(i,t);if(s.navigate===!1){let f=s.fetcherKey||YR();await r(f,n,s.action||a,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:d,formMethod:s.method||l,formEncType:s.encType||c,flushSync:s.flushSync})}else await o(s.action||a,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:d,formMethod:s.method||l,formEncType:s.encType||c,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,o,t,n])}function XR(e,{relative:t}={}){let{basename:n}=v.useContext(Tt),r=v.useContext(An);me(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...Ts(e||".",{relative:t})},s=vr();if(e==null){i.search=s.search;let a=new URLSearchParams(i.search),l=a.getAll("index");if(l.some(u=>u==="")){a.delete("index"),l.filter(d=>d).forEach(d=>a.append("index",d));let u=a.toString();i.search=u?`?${u}
132`:""}}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:wn([n,i.pathname])),ss(i)}function ZR(e,{relative:t}={}){let n=v.useContext(rb);me(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=pb("useViewTransitionState"),o=Ts(e,{relative:t});if(!n.isTransitioning)return!1;let i=Pn(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Pn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return al(o.pathname,s)!=null||al(o.pathname,i)!=null}const JR=v.createContext(void 0);function eA({children:e}){const[t,n]=v.useState([]),r=a=>{n(l=>l.find(u=>u.id===a.id)?l.map(u=>u.id===a.id?{...u,quantity:u.quantity+1}:u):[...l,{...a,quantity:1}]),Me({title:"Added to cart",description:`${a.name} has been added to your cart.`})},o=a=>{n(l=>l.filter(c=>c.id!==a))},i=()=>{n([])},s=t.reduce((a,l)=>a+l.quantity,0);return S.jsx(JR.Provider,{value:{items:t,addToCart:r,removeFromCart:o,clearCart:i,itemCount:s},children:e})}const qf=v.createContext({});function Xf(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const Zf=typeof window<"u",mb=Zf?v.useLayoutEffect:v.useEffect,zl=v.createContext(null);function Jf(e,t){e.indexOf(t)===-1&&e.push(t)}function eh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const cn=(e,t,n)=>n>t?t:n<e?e:n;let Wl=()=>{},Ho=()=>{};const Tn={},gb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function yb(e){return typeof e=="object"&&e!==null}const vb=e=>/^0[^.\s]+$/u.test(e);function th(e){let t;return()=>(t===void 0&&(t=e()),t)}const St=e=>e,tA=(e,t)=>n=>t(e(n)),Rs=(...e)=>e.reduce(tA),as=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class nh{constructor(){this.subscriptions=[]}add(t){return Jf(this.subscriptions,t),()=>eh(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const sn=e=>e*1e3,bt=e=>e/1e3;function wb(e,t){return t?e*(1e3/t):0}const bb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,nA=1e-7,rA=12;function oA(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=bb(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>nA&&++a<rA);return s}function As(e,t,n,r){if(e===t&&n===r)return St;const o=i=>oA(i,0,1,e,n);return i=>i===0||i===1?i:bb(o(i),t,r)}const xb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Sb=e=>t=>1-e(1-t),kb=As(.33,1.53,.69,.99),rh=Sb(kb),Cb=xb(rh),Eb=e=>(e*=2)<1?.5*rh(e):.5*(2-Math.pow(2,-10*(e-1))),oh=e=>1-Math.sin(Math.acos(e)),Pb=Sb(oh),Tb=xb(oh),iA=As(.42,0,1,1),sA=As(0,0,.58,1),Rb=As(.42,0,.58,1),aA=e=>Array.isArray(e)&&typeof e[0]!="number",Ab=e=>Array.isArray(e)&&typeof e[0]=="number",jm={linear:St,easeIn:iA,easeInOut:Rb,easeOut:sA,circIn:oh,circInOut:Tb,circOut:Pb,backIn:rh,backInOut:Cb,backOut:kb,anticipate:Eb},lA=e=>typeof e=="string",Lm=e=>{if(Ab(e)){Ho(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return As(t,n,r,o)}else if(lA(e))return Ho(jm[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),jm[e];return e},sa=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],_m={value:null,addProjectionMetrics:null};function cA(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function c(d){s.has(d)&&(u.schedule(d),e()),l++,d(a)}const u={schedule:(d,f=!1,h=!1)=>{const p=h&&o?n:r;return f&&s.add(d),p.has(d)||p.add(d),d},cancel:d=>{r.delete(d),s.delete(d)},process:d=>{if(a=d,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(c),t&&_m.value&&_m.value.frameloop[t].push(l),l=0,n.clear(),o=!1,i&&(i=!1,u.process(d))}};return u}const uA=40;function Db(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=sa.reduce((y,b)=>(y[b]=cA(i,t?b:void 0),y),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:f,render:h,postRender:x}=s,p=()=>{const y=Tn.useManualTiming?o.timestamp:performance.now();n=!1,Tn.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(y-o.timestamp,uA),1)),o.timestamp=y,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),f.process(o),h.process(o),x.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(p))},w=()=>{n=!0,r=!0,o.isProcessing||e(p)};return{schedule:sa.reduce((y,b)=>{const k=s[b];return y[b]=(C,E=!1,T=!1)=>(n||w(),k.schedule(C,E,T)),y},{}),cancel:y=>{for(let b=0;b<sa.length;b++)s[sa[b]].cancel(y)},state:o,steps:s}}const{schedule:le,cancel:hr,state:Ne,steps:Ic}=Db(typeof requestAnimationFrame<"u"?requestAnimationFrame:St,!0);let Ta;function dA(){Ta=void 0}const Ke={now:()=>(Ta===void 0&&Ke.set(Ne.isProcessing||Tn.useManualTiming?Ne.timestamp:performance.now()),Ta),set:e=>{Ta=e,queueMicrotask(dA)}},Nb=e=>t=>typeof t=="string"&&t.startsWith(e),Mb=Nb("--"),fA=Nb("var(--"),ih=e=>fA(e)?hA.test(e.split("/*")[0].trim()):!1,hA=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
vendor: 5,470 bytes, line 132
132function Om(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const ni={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ls={...ni,transform:e=>cn(0,1,e)},aa={...ni,default:1},_i=e=>Math.round(e*1e5)/1e5,sh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function pA(e){return e==null}const mA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ah=(e,t)=>n=>!!(typeof n=="string"&&mA.test(n)&&n.startsWith(e)||t&&!pA(n)&&Object.prototype.hasOwnProperty.call(n,t)),jb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(sh);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},gA=e=>cn(0,255,e),Fc={...ni,transform:e=>Math.round(gA(e))},Dr={test:ah("rgb","red"),parse:jb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Fc.transform(e)+", "+Fc.transform(t)+", "+Fc.transform(n)+", "+_i(ls.transform(r))+")"};function yA(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const cd={test:ah("#"),parse:yA,transform:Dr.transform},Ds=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Bn=Ds("deg"),an=Ds("%"),I=Ds("px"),vA=Ds("vh"),wA=Ds("vw"),Im={...an,parse:e=>an.parse(e)/100,transform:e=>an.transform(e*100)},mo={test:ah("hsl","hue"),parse:jb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+an.transform(_i(t))+", "+an.transform(_i(n))+", "+_i(ls.transform(r))+")"},ke={test:e=>Dr.test(e)||cd.test(e)||mo.test(e),parse:e=>Dr.test(e)?Dr.parse(e):mo.test(e)?mo.parse(e):cd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Dr.transform(e):mo.transform(e),getAnimatableNone:e=>{const t=ke.parse(e);return t.alpha=0,ke.transform(t)}},bA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function xA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(sh))==null?void 0:t.length)||0)+(((n=e.match(bA))==null?void 0:n.length)||0)>0}const Lb="number",_b="color",SA="var",kA="var(",Fm="${}",CA=/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 cs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(CA,l=>(ke.test(l)?(r.color.push(i),o.push(_b),n.push(ke.parse(l))):l.startsWith(kA)?(r.var.push(i),o.push(SA),n.push(l)):(r.number.push(i),o.push(Lb),n.push(parseFloat(l))),++i,Fm)).split(Fm);return{values:n,split:a,indexes:r,types:o}}function Ob(e){return cs(e).values}function Ib(e){const{split:t,types:n}=cs(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===Lb?i+=_i(o[s]):a===_b?i+=ke.transform(o[s]):i+=o[s]}return i}}const EA=e=>typeof e=="number"?0:ke.test(e)?ke.getAnimatableNone(e):e;function PA(e){const t=Ob(e);return Ib(e)(t.map(EA))}const pr={test:xA,parse:Ob,createTransformer:Ib,getAnimatableNone:PA};function Bc(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 TA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Bc(l,a,e+1/3),i=Bc(l,a,e),s=Bc(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function ll(e,t){return n=>n>0?t:e}const he=(e,t,n)=>e+(t-e)*n,Vc=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},RA=[cd,Dr,mo],AA=e=>RA.find(t=>t.test(e));function Bm(e){const t=AA(e);if(Wl(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===mo&&(n=TA(n)),n}const Vm=(e,t)=>{const n=Bm(e),r=Bm(t);if(!n||!r)return ll(e,t);const o={...n};return i=>(o.red=Vc(n.red,r.red,i),o.green=Vc(n.green,r.green,i),o.blue=Vc(n.blue,r.blue,i),o.alpha=he(n.alpha,r.alpha,i),Dr.transform(o))},ud=new Set(["none","hidden"]);function DA(e,t){return ud.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function NA(e,t){return n=>he(e,t,n)}function lh(e){return typeof e=="number"?NA:typeof e=="string"?ih(e)?ll:ke.test(e)?Vm:LA:Array.isArray(e)?Fb:typeof e=="object"?ke.test(e)?Vm:MA:ll}function Fb(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>lh(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function MA(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=lh(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function jA(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}const LA=(e,t)=>{const n=pr.createTransformer(t),r=cs(e),o=cs(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?ud.has(e)&&!o.values.length||ud.has(t)&&!r.values.length?DA(e,t):Rs(Fb(jA(r,o),o.values),n):(Wl(!0,`Complex values '${e}' and '${t}
132' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),ll(e,t))};function Bb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?he(e,t,n):lh(e)(e,t)}const _A=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>le.update(t,n),stop:()=>hr(t),now:()=>Ne.isProcessing?Ne.timestamp:Ke.now()}},Vb=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},cl=2e4;function ch(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<cl;)t+=n,r=e.next(t);return t>=cl?1/0:t}function OA(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(ch(r),cl);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:bt(o)}}const IA=5;function Ub(e,t,n){const r=Math.max(t-IA,0);return wb(n-e(r),t-r)}const de={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},Uc=.001;function FA({duration:e=de.duration,bounce:t=de.bounce,velocity:n=de.velocity,mass:r=de.mass}){let o,i;Wl(e<=sn(de.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=cn(de.minDamping,de.maxDamping,s),e=cn(de.minDuration,de.maxDuration,bt(e)),s<1?(o=c=>{const u=c*s,d=u*e,f=u-n,h=dd(c,s),x=Math.exp(-d);return Uc-f/h*x},i=c=>{const d=c*s*e,f=d*n+n,h=Math.pow(s,2)*Math.pow(c,2)*e,x=Math.exp(-d),p=dd(Math.pow(c,2),s);return(-o(c)+Uc>0?-1:1)*((f-h)*x)/p}):(o=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-Uc+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=VA(o,i,a);if(e=sn(e),isNaN(l))return{stiffness:de.stiffness,damping:de.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const BA=12;function VA(e,t,n){let r=n;for(let o=1;o<BA;o++)r=r-e(r)/t(r);return r}function dd(e,t){return e*Math.sqrt(1-t*t)}const UA=["duration","bounce"],$A=["stiffness","damping","mass"];function Um(e,t){return t.some(n=>e[n]!==void 0)}function zA(e){let t={velocity:de.velocity,stiffness:de.stiffness,damping:de.damping,mass:de.mass,isResolvedFromDuration:!1,...e};if(!Um(e,$A)&&Um(e,UA))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*cn(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:de.mass,stiffness:o,damping:i}}else{const n=FA(e);t={...t,...n,mass:de.mass},t.isResolvedFromDuration=!0}return t}function ul(e=de.visualDuration,t=de.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=zA({...n,velocity:-bt(n.velocity||0)}),x=f||0,p=c/(2*Math.sqrt(l*u)),w=s-i,m=bt(Math.sqrt(l/u)),g=Math.abs(w)<5;r||(r=g?de.restSpeed.granular:de.restSpeed.default),o||(o=g?de.restDelta.granular:de.restDelta.default);let y;if(p<1){const k=dd(m,p);y=C=>{const E=Math.exp(-p*m*C);return s-E*((x+p*m*w)/k*Math.sin(k*C)+w*Math.cos(k*C))}}else if(p===1)y=k=>s-Math.exp(-m*k)*(w+(x+m*w)*k);
vendor: 15,857 bytes, line 132
132else{const k=m*Math.sqrt(p*p-1);y=C=>{const E=Math.exp(-p*m*C),T=Math.min(k*C,300);return s-E*((x+p*m*w)*Math.sinh(T)+k*w*Math.cosh(T))/k}}const b={calculatedDuration:h&&d||null,next:k=>{const C=y(k);if(h)a.done=k>=d;else{let E=k===0?x:0;p<1&&(E=k===0?sn(x):Ub(y,k,C));const T=Math.abs(E)<=r,D=Math.abs(s-C)<=o;a.done=T&&D}return a.value=a.done?s:C,a},toString:()=>{const k=Math.min(ch(b),cl),C=Vb(E=>b.next(k*E).value,k,30);return k+"ms "+C},toTransition:()=>{}};return b}ul.applyToOptions=e=>{const t=OA(e,100,ul);return e.ease=t.ease,e.duration=sn(t.duration),e.type="keyframes",e};function fd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=T=>a!==void 0&&T<a||l!==void 0&&T>l,x=T=>a===void 0?l:l===void 0||Math.abs(a-T)<Math.abs(l-T)?a:l;let p=n*t;const w=d+p,m=s===void 0?w:s(w);m!==w&&(p=m-d);const g=T=>-p*Math.exp(-T/r),y=T=>m+g(T),b=T=>{const D=g(T),N=y(T);f.done=Math.abs(D)<=c,f.value=f.done?m:N};let k,C;const E=T=>{h(f.value)&&(k=T,C=ul({keyframes:[f.value,x(f.value)],velocity:Ub(y,T,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:T=>{let D=!1;return!C&&k===void 0&&(D=!0,b(T),E(T)),k!==void 0&&T>=k?C.next(T-k):(!D&&b(T),f)}}}function WA(e,t,n){const r=[],o=n||Tn.mix||Bb,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||St:t;a=Rs(l,a)}r.push(a)}return r}function HA(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Ho(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=WA(t,r,o),l=a.length,c=u=>{if(s&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=as(e[d],e[d+1],u);return a[d](f)};return n?u=>c(cn(e[0],e[i-1],u)):c}function GA(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=as(0,t,r);e.push(he(n,1,o))}}function KA(e){const t=[0];return GA(t,e.length-1),t}function QA(e,t){return e.map(n=>n*t)}function YA(e,t){return e.map(()=>t||Rb).splice(0,e.length-1)}function Oi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=aA(r)?r.map(Lm):Lm(r),i={done:!1,value:t[0]},s=QA(n&&n.length===t.length?n:KA(t),e),a=HA(s,t,{ease:Array.isArray(o)?o:YA(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const qA=e=>e!==null;function uh(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(qA),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const XA={decay:fd,inertia:fd,tween:Oi,keyframes:Oi,spring:ul};function $b(e){typeof e.type=="string"&&(e.type=XA[e.type])}class dh{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 ZA=e=>e/100;class fh extends dh{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,o;const{motionValue:n}=this.options;n&&n.updatedAt!==Ke.now()&&this.tick(Ke.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;$b(t);const{type:n=Oi,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Oi;l!==Oi&&typeof a[0]!="number"&&(this.mixKeyframes=Rs(ZA,Bb(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=ch(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=c}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:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:h,type:x,onUpdate:p,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-c*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?m<0:m>o;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let y=this.currentTime,b=r;if(d){const T=Math.min(this.currentTime,o)/a;let D=Math.floor(T),N=T%1;!N&&T>=1&&(N=1),N===1&&D--,D=Math.min(D,d+1),!!(D%2)&&(f==="reverse"?(N=1-N,h&&(N-=h/a)):f==="mirror"&&(b=s)),y=cn(0,1,N)*a}const k=g?{done:!1,value:u[0]}:b.next(y);i&&(k.value=i(k.value));let{done:C}=k;!g&&l!==null&&(C=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return E&&x!==fd&&(k.value=uh(u,this.options,w,this.speed)),p&&p(k.value),E&&this.finish(),k}then(t,n){return this.finished.then(t,n)}get duration(){return bt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+bt(t)}get time(){return bt(this.currentTime)}set time(t){var n;t=sn(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(Ke.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=bt(this.currentTime))}play(){var o,i;if(this.isStopped)return;const{driver:t=_A,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(i=(o=this.options).onPlay)==null||i.call(o);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(Ke.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 JA(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Nr=e=>e*180/Math.PI,hd=e=>{const t=Nr(Math.atan2(e[1],e[0]));return pd(t)},e5={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:hd,rotateZ:hd,skewX:e=>Nr(Math.atan(e[1])),skewY:e=>Nr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},pd=e=>(e=e%360,e<0&&(e+=360),e),$m=hd,zm=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Wm=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),t5={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zm,scaleY:Wm,scale:e=>(zm(e)+Wm(e))/2,rotateX:e=>pd(Nr(Math.atan2(e[6],e[5]))),rotateY:e=>pd(Nr(Math.atan2(-e[2],e[0]))),rotateZ:$m,rotate:$m,skewX:e=>Nr(Math.atan(e[4])),skewY:e=>Nr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function md(e){return e.includes("scale")?1:0}function gd(e,t){if(!e||e==="none")return md(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=t5,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=e5,o=a}if(!o)return md(t);const i=r[t],s=o[1].split(",").map(r5);return typeof i=="function"?i(s):s[i]}const n5=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return gd(n,t)};function r5(e){return parseFloat(e.trim())}const ri=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],oi=new Set(ri),Hm=e=>e===ni||e===I,o5=new Set(["x","y","z"]),i5=ri.filter(e=>!o5.has(e));function s5(e){const t=[];return i5.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Xn={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})=>gd(t,"x"),y:(e,{transform:t})=>gd(t,"y")};Xn.translateX=Xn.x;Xn.translateY=Xn.y;const Vr=new Set;let yd=!1,vd=!1,wd=!1;function zb(){if(vd){const e=Array.from(Vr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=s5(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))==null||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}vd=!1,yd=!1,Vr.forEach(e=>e.complete(wd)),Vr.clear()}function Wb(){Vr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(vd=!0)})}function a5(){wd=!0,Wb(),zb(),wd=!1}class hh{constructor(t,n,r,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Vr.add(this),yd||(yd=!0,le.read(Wb),le.resolveKeyframes(zb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o==null?void 0:o.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}JA(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Vr.delete(this)}cancel(){this.state==="scheduled"&&(Vr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const l5=e=>e.startsWith("--");function c5(e,t,n){l5(t)?e.style.setProperty(t,n):e.style[t]=n}const u5=th(()=>window.ScrollTimeline!==void 0),d5={};function f5(e,t){const n=th(e);return()=>d5[t]??n()}const Hb=f5(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ki=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Gm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ki([0,.65,.55,1]),circOut:ki([.55,0,1,.45]),backIn:ki([.31,.01,.66,-.59]),backOut:ki([.33,1.53,.69,.99])};function Gb(e,t){if(e)return typeof e=="function"?Hb()?Vb(e,t):"ease-out":Ab(e)?ki(e):Array.isArray(e)?e.map(n=>Gb(n,t)||Gm.easeOut):Gm[e]}function h5(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=Gb(a,o);Array.isArray(d)&&(u.easing=d);const f={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(u,f)}function Kb(e){return typeof e=="function"&&"applyToOptions"in e}function p5({type:e,...t}){return Kb(e)&&Hb()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class m5 extends dh{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,Ho(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=p5(t);this.animation=h5(n,r,o,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=uh(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):c5(n,r,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,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 bt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+bt(t)}get time(){return bt(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=sn(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 this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=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&&u5()?(this.animation.timeline=t,St):n(this)}}const Qb={anticipate:Eb,backInOut:Cb,circInOut:Tb};function g5(e){return e in Qb}function y5(e){typeof e.ease=="string"&&g5(e.ease)&&(e.ease=Qb[e.ease])}const $c=10;class v5 extends m5{constructor(t){y5(t),$b(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new fh({...s,autoplay:!1}),l=Math.max($c,Ke.now()-this.startTime),c=cn(0,$c,l-$c);n.setWithVelocity(a.sample(Math.max(0,l-c)).value,a.sample(l).value,c),a.stop()}}const Km=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(pr.test(e)||e==="0")&&!e.startsWith("url("));function w5(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 b5(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=Km(o,t),a=Km(i,t);return Wl(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:w5(e)||(n==="spring"||Kb(n))&&r}function bd(e){e.duration=0,e.type="keyframes"}const x5=new Set(["opacity","clipPath","filter","transform"]),S5=th(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function k5(e){var u;
132const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(((u=t==null?void 0:t.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return S5()&&n&&x5.has(n)&&(n!=="transform"||!c)&&!l&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const C5=40;class E5 extends dh{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){var x;super(),this.stop=()=>{var p,w;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=Ke.now();const f={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:c,element:u,...d},h=(u==null?void 0:u.KeyframeResolver)||hh;this.keyframeResolver=new h(a,(p,w,m)=>this.onKeyframesResolved(p,w,f,!m),l,c,u),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=Ke.now(),b5(t,i,s,a)||((Tn.instantAnimations||!l)&&(u==null||u(uh(t,r,n))),t[0]=t[t.length-1],bd(r),r.repeat=0);const f={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>C5?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!c&&k5(f)?new v5({...f,element:f.motionValue.owner.current}):new fh(f);h.finished.then(()=>this.notifyFinished()).catch(St),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}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(),a5()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}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 P5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function T5(e){const t=P5.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const R5=4;function Yb(e,t,n=1){Ho(n<=R5,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=T5(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return gb(s)?parseFloat(s):s}return ih(o)?Yb(o,t,n+1):o}function ph(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const qb=new Set(["width","height","top","left","right","bottom",...ri]),A5={test:e=>e==="auto",parse:e=>e},Xb=e=>t=>t.test(e),Zb=[ni,I,an,Bn,wA,vA,A5],Qm=e=>Zb.find(Xb(e));function D5(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||vb(e):!0}const N5=new Set(["brightness","contrast","saturate","opacity"]);function M5(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(sh)||[];if(!r)return e;const o=n.replace(r,"");let i=N5.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const j5=/\b([a-z-]*)\(.*?\)/gu,xd={...pr,getAnimatableNone:e=>{const t=e.match(j5);return t?t.map(M5).join(" "):e}},Ym={...ni,transform:Math.round},L5={rotate:Bn,rotateX:Bn,rotateY:Bn,rotateZ:Bn,scale:aa,scaleX:aa,scaleY:aa,scaleZ:aa,skew:Bn,skewX:Bn,skewY:Bn,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:ls,originX:Im,originY:Im,originZ:I},mh={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,radius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,top:I,right:I,bottom:I,left:I,inset:I,insetBlock:I,insetBlockStart:I,insetBlockEnd:I,insetInline:I,insetInlineStart:I,insetInlineEnd:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,paddingBlock:I,paddingBlockStart:I,paddingBlockEnd:I,paddingInline:I,paddingInlineStart:I,paddingInlineEnd:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,marginBlock:I,marginBlockStart:I,marginBlockEnd:I,marginInline:I,marginInlineStart:I,marginInlineEnd:I,backgroundPositionX:I,backgroundPositionY:I,...L5,zIndex:Ym,fillOpacity:ls,strokeOpacity:ls,numOctaves:Ym},_5={...mh,color:ke,backgroundColor:ke,outlineColor:ke,fill:ke,stroke:ke,borderColor:ke,borderTopColor:ke,borderRightColor:ke,borderBottomColor:ke,borderLeftColor:ke,filter:xd,WebkitFilter:xd},Jb=e=>_5[e];function e1(e,t){let n=Jb(e);return n!==xd&&(n=pr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
vendor: 10,436 bytes, lines 132-140
132const O5=new Set(["auto","none","0"]);function I5(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!O5.has(i)&&cs(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=e1(n,o)}class F5 extends hh{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),ih(d))){const f=Yb(d,n.current);f!==void 0&&(t[u]=f),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!qb.has(r)||t.length!==2)return;const[o,i]=t,s=Qm(o),a=Qm(i),l=Om(o),c=Om(i);if(l!==c&&Xn[r]){this.needsMeasurement=!0;return}if(s!==a)if(Hm(s)&&Hm(a))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else Xn[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||D5(t[o]))&&r.push(o);r.length&&I5(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=Xn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=Xn[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,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function B5(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const o=document.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const t1=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function n1(e){return yb(e)&&"offsetHeight"in e}const qm=30,V5=e=>!isNaN(parseFloat(e));class U5{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const o=Ke.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.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=Ke.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=V5(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 nh);const r=this.events[t].add(n);return t==="change"?()=>{r(),le.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=Ke.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>qm)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,qm);return wb(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 Go(e,t){return new U5(e,t)}const{schedule:gh,cancel:Cj}=Db(queueMicrotask,!1),_t={x:!1,y:!1};function r1(){return _t.x||_t.y}function $5(e){return e==="x"||e==="y"?_t[e]?null:(_t[e]=!0,()=>{_t[e]=!1}):_t.x||_t.y?null:(_t.x=_t.y=!0,()=>{_t.x=_t.y=!1})}function o1(e,t){const n=B5(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Xm(e){return!(e.pointerType==="touch"||r1())}function z5(e,t,n={}){const[r,o,i]=o1(e,n),s=a=>{if(!Xm(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const u=d=>{Xm(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const i1=(e,t)=>t?e===t?!0:i1(e,t.parentElement):!1,yh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,W5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function s1(e){return W5.has(e.tagName)||e.isContentEditable===!0}const Ra=new WeakSet;function Zm(e){return t=>{t.key==="Enter"&&e(t)}}function zc(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const H5=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Zm(()=>{if(Ra.has(n))return;zc(n,"down");const o=Zm(()=>{zc(n,"up")}),i=()=>zc(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Jm(e){return yh(e)&&!r1()}function G5(e,t,n={}){const[r,o,i]=o1(e,n),s=a=>{const l=a.currentTarget;if(!Jm(a))return;Ra.add(l);const c=t(l,a),u=(h,x)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Ra.has(l)&&Ra.delete(l),Jm(h)&&typeof c=="function"&&c(h,{success:x})},d=h=>{u(h,l===window||l===document||n.useGlobalTarget||i1(l,h.target))},f=h=>{u(h,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),n1(a)&&(a.addEventListener("focus",c=>H5(c,o)),!s1(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function a1(e){return yb(e)&&"ownerSVGElement"in e}function K5(e){return a1(e)&&e.tagName==="svg"}const $e=e=>!!(e&&e.getVelocity),Q5=[...Zb,ke,pr],Y5=e=>Q5.find(Xb(e)),vh=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function eg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function q5(...e){return t=>{let n=!1;const r=e.map(o=>{const i=eg(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():eg(e[o],null)}}}}function X5(...e){return v.useCallback(q5(...e),e)}class Z5 extends v.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=n1(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function J5({children:e,isPresent:t,anchorX:n,root:r}){var u;const o=v.useId(),i=v.useRef(null),s=v.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=v.useContext(vh),l=((u=e.props)==null?void 0:u.ref)??(e==null?void 0:e.ref),c=X5(i,l);return v.useInsertionEffect(()=>{const{width:d,height:f,top:h,left:x,right:p}=s.current;if(t||!i.current||!d||!f)return;const w=n==="left"?`left: ${x}`:`right: ${p}`;i.current.dataset.motionPopId=o;const m=document.createElement("style");a&&(m.nonce=a);const g=r??document.head;return g.appendChild(m),m.sheet&&m.sheet.insertRule(`
133          [data-motion-pop-id="${o}"] {
134            position: absolute !important;
135            width: ${d}px !important;
136            height: ${f}px !important;
137            ${w}px !important;
138            top: ${h}px !important;
139          }
140        `),()=>{g.contains(m)&&g.removeChild(m)}},[t]),S.jsx(Z5,{isPresent:t,childRef:i,sizeRef:s,children:v.cloneElement(e,{ref:c})})}const eD=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:l})=>{const c=Xf(tD),u=v.useId();let d=!0,f=v.useMemo(()=>(d=!1,{id:u,initial:t,isPresent:n,custom:o,onExitComplete:h=>{c.set(h,!0);for(const x of c.values())if(!x)return;r&&r()},register:h=>(c.set(h,!1),()=>c.delete(h))}),[n,c,r]);return i&&d&&(f={...f}),v.useMemo(()=>{c.forEach((h,x)=>c.set(x,!1))},[n]),v.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),s==="popLayout"&&(e=S.jsx(J5,{isPresent:n,anchorX:a,root:l,children:e})),S.jsx(zl.Provider,{value:f,children:e})};function tD(){return new Map}function l1(e=!0){const t=v.useContext(zl);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=v.useId();v.useEffect(()=>{if(e)return o(i)},[e]);const s=v.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const la=e=>e.key||"";function tg(e){const t=[];return v.Children.forEach(e,n=>{v.isValidElement(n)&&t.push(n)}),t}const wh=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[c,u]=l1(s),d=v.useMemo(()=>tg(e),[e]),f=s&&!c?[]:d.map(la),h=v.useRef(!0),x=v.useRef(d),p=Xf(()=>new Map),w=v.useRef(new Set),[m,g]=v.useState(d),[y,b]=v.useState(d);mb(()=>{h.current=!1,x.current=d;for(let E=0;E<y.length;E++){const T=la(y[E]);f.includes(T)?(p.delete(T),w.current.delete(T)):p.get(T)!==!0&&p.set(T,!1)}},[y,f.length,f.join("-")]);const k=[];if(d!==m){let E=[...d];for(let T=0;T<y.length;T++){const D=y[T],N=la(D);f.includes(N)||(E.splice(T,0,D),k.push(D))}return i==="wait"&&k.length&&(E=k),b(tg(E)),g(d),null}const{forceRender:C}=v.useContext(qf);return S.jsx(S.Fragment,{children:y.map(E=>{const T=la(E),D=s&&!c?!1:d===y||f.includes(T),N=()=>
vendor: 4,900 bytes, line 140
140{if(w.current.has(T))return;if(w.current.add(T),p.has(T))p.set(T,!0);else return;let B=!0;p.forEach(O=>{O||(B=!1)}),B&&(C==null||C(),b(x.current),s&&(u==null||u()),r&&r())};return S.jsx(eD,{isPresent:D,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:D?void 0:N,anchorX:a,children:E},T)})})},c1=v.createContext({strict:!1}),ng={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"]},Ko={};for(const e in ng)Ko[e]={isEnabled:t=>ng[e].some(n=>!!t[n])};function nD(e){for(const t in e)Ko[t]={...Ko[t],...e[t]}}const rD=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 dl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rD.has(e)}let u1=e=>!dl(e);function oD(e){typeof e=="function"&&(u1=t=>t.startsWith("on")?!dl(t):e(t))}try{oD(require("@emotion/is-prop-valid").default)}catch{}function iD(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(u1(o)||n===!0&&dl(o)||!t&&!dl(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const Hl=v.createContext({});function Gl(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function us(e){return typeof e=="string"||Array.isArray(e)}const bh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xh=["initial",...bh];function Kl(e){return Gl(e.animate)||xh.some(t=>us(e[t]))}function d1(e){return!!(Kl(e)||e.variants)}function sD(e,t){if(Kl(e)){const{initial:n,animate:r}=e;return{initial:n===!1||us(n)?n:void 0,animate:us(r)?r:void 0}}return e.inherit!==!1?t:{}}function aD(e){const{initial:t,animate:n}=sD(e,v.useContext(Hl));return v.useMemo(()=>({initial:t,animate:n}),[rg(t),rg(n)])}function rg(e){return Array.isArray(e)?e.join(" "):e}function og(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const vi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(I.test(e))e=parseFloat(e);else return e;const n=og(e,t.target.x),r=og(e,t.target.y);return`${n}% ${r}%`}},lD={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=pr.parse(e);if(o.length>5)return r;const i=pr.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=he(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),i(o)}},Sd={borderRadius:{...vi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:vi,borderTopRightRadius:vi,borderBottomLeftRadius:vi,borderBottomRightRadius:vi,boxShadow:lD};function f1(e,{layout:t,layoutId:n}){return oi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Sd[e]||e==="opacity")}const cD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},uD=ri.length;function dD(e,t,n){let r="",o=!0;for(let i=0;i<uD;i++){const s=ri[i],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 c=t1(a,mh[s]);if(!l){o=!1;const u=cD[s]||s;r+=`${u}(${c}) `}n&&(t[s]=c)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Sh(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const c=t[l];if(oi.has(l)){s=!0;continue}else if(Mb(l)){o[l]=c;continue}else{const u=t1(c,mh[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(s||n?r.transform=dD(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}const kh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function h1(e,t,n){for(const r in t)!$e(t[r])&&!f1(r,n)&&(e[r]=t[r])}function fD({transformTemplate:e},t){return v.useMemo(()=>{const n=kh();return Sh(n,t,e),Object.assign({},n.vars,n.style)},[t])}function hD(e,t){const n=e.style||{},r={};return h1(r,n,e),Object.assign(r,fD(e,t)),r}function pD(e,t){const n={},r=hD(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"}
140`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const mD={offset:"stroke-dashoffset",array:"stroke-dasharray"},gD={offset:"strokeDashoffset",array:"strokeDasharray"};function yD(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?mD:gD;e[i.offset]=I.transform(-r);const s=I.transform(t),a=I.transform(n);e[i.array]=`${s} ${a}`}const vD=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function p1(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,c,u){if(Sh(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox);for(const h of vD)d[h]!==void 0&&(f[h]=d[h],delete d[h]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&yD(d,o,i,s,!1)}const m1=()=>({...kh(),attrs:{}}),g1=e=>typeof e=="string"&&e.toLowerCase()==="svg";function wD(e,t,n,r){const o=v.useMemo(()=>{const i=m1();return p1(i,t,g1(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};h1(i,e.style,e),o.style={...i,...o.style}}return o}const bD=["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 Ch(e){return typeof e!="string"||e.includes("-")?!1:!!(bD.indexOf(e)>-1||/[A-Z]/u.test(e))}function xD(e,t,n,{latestValues:r},o,i=!1,s){const l=(s??Ch(e)?wD:pD)(t,r,o,e),c=iD(t,typeof e=="string",i),u=e!==v.Fragment?{...c,...l,ref:n}:{},{children:d}=t,f=v.useMemo(()=>$e(d)?d.get():d,[d]);return v.createElement(e,{...u,children:f})}function ig(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Eh(e,t,n,r){if(typeof t=="function"){const[o,i]=ig(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=ig(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Aa(e){return $e(e)?e.get():e}function SD({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:kD(n,r,o,e),renderState:t()}}function kD(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Aa(i[f]);let{initial:s,animate:a}=e;const l=Kl(e),c=d1(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!Gl(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const x=Eh(e,f[h]);if(x){const{transitionEnd:p,transition:w,...m}=x;for(const g in m){let y=m[g];if(Array.isArray(y)){const b=u?y.length-1:0;y=y[b]}y!==null&&(o[g]=y)}for(const g in p)o[g]=p[g]}}}return o}const y1=e=>(t,n)=>{const r=v.useContext(Hl),o=v.useContext(zl),i=()=>SD(e,t,r,o);return n?i():Xf(i)};function Ph(e,t,n){var i;const{style:r}=e,o={};for(const s in r)($e(r[s])||t.style&&$e(t.style[s])||f1(s,e)||((i=n==null?void 0:n.getValue(s))==null?void 0:i.liveStyle)!==void 0)&&(o[s]=r[s]);return o}const CD=y1({scrapeMotionValuesFromProps:Ph,createRenderState:kh});function v1(e,t,n){const r=Ph(e,t,n);for(const o in e)if($e(e[o])||$e(t[o])){const i=ri.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const ED=y1({scrapeMotionValuesFromProps:v1,createRenderState:m1}),PD=Symbol.for("motionComponentSymbol");function TD(e,t,n){const r=v.useRef(n);v.useInsertionEffect(()=>{r.current=n});const o=v.useRef(null);return v.useCallback(i=>{var a;i&&((a=e.onMount)==null||a.call(e,i)),t&&(i?t.mount(i):t.unmount());const s=r.current;if(typeof s=="function")if(i){const l=s(i);typeof l=="function"&&(o.current=l)}else o.current?(o.current(),o.current=null):s(i);else s&&(s.current=i)},[t])}const Th=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),RD="framerAppearId",w1="data-"+Th(RD),b1=v.createContext({});function Ci(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function AD(e,t,n,r,o,i){var w,m;const{visualElement:s}=v.useContext(Hl),a=v.useContext(c1),l=v.useContext(zl),c=v.useContext(vh).reducedMotion,u=v.useRef(null);r=r||a.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,isSVG:i}));const d=u.current,f=v.useContext(b1);d&&!d.projection&&o&&(d.type==="html"||d.type==="svg")&&DD(u.current,n,o,f);const h=v.useRef(!1);v.useInsertionEffect(()=>{d&&h.current&&d.update(n,l)});const x=n[w1],p=v.useRef(!!x&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,x))&&((m=window.MotionHasOptimisedAnimation)==null?void 0:m.call(window,x)));return mb(()=>{d&&(h.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),p.current&&d.animationState&&d.animationState.animateChanges())}),v.useEffect(()=>{d&&(!p.current&&d.animationState&&d.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{var g;(g=window.MotionHandoffMarkAsComplete)==null||g.call(window,x)}),p.current=!1),d.enteringChildren=void 0)}),d}function DD(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:x1(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Ci(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}function x1(e){if(e)return e.options.allowProjection!==!1?e.projection:x1(e.parent)}function Wc(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&nD(r);const i=n?n==="svg":Ch(e),s=i?ED:CD;function a(c,u){let d;const f={...v.useContext(vh),...c,layoutId:ND(c)},{isStatic:h}=f,x=aD(c),p=s(c,h);if(!h&&Zf){MD();const w=jD(f);d=w.MeasureLayout,x.visualElement=AD(e,p,f,o,w.ProjectionNode,i)}return S.jsxs(Hl.Provider,{value:x,children:[d&&x.visualElement?S.jsx(d,{visualElement:x.visualElement,...f}):null,xD(e,c,TD(p,x.visualElement,u),p,h,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=v.forwardRef(a);return l[PD]=e,l}function ND({layoutId:e}){const t=v.useContext(qf).id;return t&&e!==void 0?t+"-"+e:e}function MD(e,t){v.useContext(c1).strict}function jD(e){const{drag:t,layout:n}=Ko;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}}
vendor: 34,896 bytes, line 140
140function LD(e,t){if(typeof Proxy>"u")return Wc;const n=new Map,r=(i,s)=>Wc(i,s,e,t),o=(i,s)=>r(i,s);return new Proxy(o,{get:(i,s)=>s==="create"?r:(n.has(s)||n.set(s,Wc(s,void 0,e,t)),n.get(s))})}function S1({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function _D({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function OD(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 Hc(e){return e===void 0||e===1}function kd({scale:e,scaleX:t,scaleY:n}){return!Hc(e)||!Hc(t)||!Hc(n)}function Er(e){return kd(e)||k1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function k1(e){return sg(e.x)||sg(e.y)}function sg(e){return e&&e!=="0%"}function fl(e,t,n){const r=e-n,o=t*r;return n+o}function ag(e,t,n,r,o){return o!==void 0&&(e=fl(e,o,r)),fl(e,n,r)+t}function Cd(e,t=0,n=1,r,o){e.min=ag(e.min,t,n,r,o),e.max=ag(e.max,t,n,r,o)}function C1(e,{x:t,y:n}){Cd(e.x,t.translate,t.scale,t.originPoint),Cd(e.y,n.translate,n.scale,n.originPoint)}const lg=.999999999999,cg=1.0000000000001;function ID(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&yo(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,C1(e,s)),r&&Er(i.latestValues)&&yo(e,i.latestValues))}t.x<cg&&t.x>lg&&(t.x=1),t.y<cg&&t.y>lg&&(t.y=1)}function go(e,t){e.min=e.min+t,e.max=e.max+t}function ug(e,t,n,r,o=.5){const i=he(e.min,e.max,o);Cd(e,t,n,i,r)}function yo(e,t){ug(e.x,t.x,t.scaleX,t.scale,t.originX),ug(e.y,t.y,t.scaleY,t.scale,t.originY)}function E1(e,t){return S1(OD(e.getBoundingClientRect(),t))}function FD(e,t,n){const r=E1(e,n),{scroll:o}=t;return o&&(go(r.x,o.offset.x),go(r.y,o.offset.y)),r}const dg=()=>({translate:0,scale:1,origin:0,originPoint:0}),vo=()=>({x:dg(),y:dg()}),fg=()=>({min:0,max:0}),Ee=()=>({x:fg(),y:fg()}),Ed={current:null},P1={current:!1};function BD(){if(P1.current=!0,!!Zf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ed.current=e.matches;e.addEventListener("change",t),t()}else Ed.current=!1}const VD=new WeakMap;function UD(e,t,n){for(const r in t){const o=t[r],i=n[r];if($e(o))e.addValue(r,o);else if($e(i))e.addValue(r,Go(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,Go(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const hg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class $D{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,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=hh,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 f=Ke.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,le.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=Kl(n),this.isVariantNode=d1(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const h=d[f];l[f]!==void 0&&$e(h)&&h.set(l[f])}}mount(t){var n;this.current=t,VD.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,o)=>this.bindToMotionValue(o,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(P1.current||BD(),this.shouldReduceMotion=Ed.current),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),hr(this.notifyUpdate),hr(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=oi.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&le.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),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 Ko){const n=Ko[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ee()}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<hg.length;r++){const o=hg[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=UD(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=Go(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"&&(gb(r)||vb(r))?r=parseFloat(r):!Y5(r)&&pr.test(n)&&(r=e1(t,n)),this.setBaseTarget(t,$e(r)?r.get():r)),$e(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Eh(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!$e(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new nh),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){gh.render(this.render)}}class T1 extends $D{constructor(){super(...arguments),this.KeyframeResolver=F5}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;$e(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function R1(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];o==null||o.applyProjectionStyles(i,r);for(s in n)i.setProperty(s,n[s])}function zD(e){return window.getComputedStyle(e)}class WD extends T1{constructor(){super(...arguments),this.type="html",this.renderInstance=R1}readValueFromInstance(t,n){var r;if(oi.has(n))return(r=this.projection)!=null&&r.isProjecting?md(n):n5(t,n);{const o=zD(t),i=(Mb(n)?o.getPropertyValue(n):o[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return E1(t,n)}build(t,n,r){Sh(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ph(t,n,r)}}const A1=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 HD(e,t,n,r){R1(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(A1.has(o)?o:Th(o),t.attrs[o])}class GD extends T1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ee}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(oi.has(n)){const r=Jb(n);return r&&r.default||0}return n=A1.has(n)?n:Th(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return v1(t,n,r)}build(t,n,r){p1(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){HD(t,n,r,o)}mount(t){this.isSVGTag=g1(t.tagName),super.mount(t)}}const KD=(e,t)=>t.isSVG??Ch(e)?new GD(t):new WD(t,{allowProjection:e!==v.Fragment});function To(e,t,n){const r=e.getProps();return Eh(r,t,n!==void 0?n:r.custom,e)}const Pd=e=>Array.isArray(e);function QD(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Go(n))}function YD(e){return Pd(e)?e[e.length-1]||0:e}function qD(e,t){const n=To(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=YD(i[s]);QD(e,s,a)}}function XD(e){return!!($e(e)&&e.add)}function Td(e,t){const n=e.getValue("willChange");if(XD(n))return n.add(t);if(!n&&Tn.WillChange){const r=new Tn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function D1(e){return e.props[w1]}const ZD=e=>e!==null;function JD(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(ZD),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const eN={type:"spring",stiffness:500,damping:25,restSpeed:10},tN=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),nN={type:"keyframes",duration:.8},rN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},oN=(e,{keyframes:t})=>t.length>2?nN:oi.has(e)?e.startsWith("scale")?tN(t[1]):eN:rN;function iN({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Rh=(e,t,n,r={},o,i)=>s=>{const a=ph(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-sn(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};iN(a)||Object.assign(u,oN(e,u)),u.duration&&(u.duration=sn(u.duration)),u.repeatDelay&&(u.repeatDelay=sn(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(bd(u),u.delay===0&&(d=!0)),(Tn.instantAnimations||Tn.skipAnimations)&&(d=!0,bd(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const f=JD(u.keyframes,a);if(f!==void 0){le.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new fh(u):new E5(u)};function sN({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function N1(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(i=r);const l=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const u in a){const d=e.getValue(u,e.latestValues[u]??null),f=a[u];if(f===void 0||c&&sN(c,u))continue;const h={delay:n,...ph(i||{},u)},x=d.get();if(x!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===x&&!h.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){const m=D1(e);if(m){const g=window.MotionHandoffAnimation(m,u,le);g!==null&&(h.startTime=g,p=!0)}}Td(e,u),d.start(Rh(u,d,f,e.shouldReduceMotion&&qb.has(u)?{type:!1}:h,e,p));const w=d.animation;w&&l.push(w)}return s&&Promise.all(l).then(()=>{le.update(()=>{s&&qD(e,s)})}),l}function M1(e,t,n,r=0,o=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}function Rd(e,t,n={}){var l;const r=To(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(N1(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=o;return aN(e,t,c,u,d,f,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[c,u]=a==="beforeChildren"?[i,s]:[s,i];return c().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function aN(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Rd(l,t,{...s,delay:n+(typeof r=="function"?0:r)+M1(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function lN(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Rd(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Rd(e,t,n);else{const o=typeof t=="function"?To(e,t,n.custom):t;r=Promise.all(N1(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function j1(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 cN=xh.length;function L1(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?L1(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<cN;n++){const r=xh[n],o=e.props[r];(us(o)||o===!1)&&(t[r]=o)}return t}const uN=[...bh].reverse(),dN=bh.length;function fN(e){return t=>Promise.all(t.map(({animation:n,options:r})=>lN(e,n,r)))}function hN(e){let t=fN(e),n=pg(),r=!0;const o=l=>(c,u)=>{var f;const d=To(e,u,l==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(d){const{transition:h,transitionEnd:x,...p}=d;c={...c,...p,...x}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,u=L1(e.parent)||{},d=[],f=new Set;let h={},x=1/0;for(let w=0;w<dN;w++){const m=uN[w],g=n[m],y=c[m]!==void 0?c[m]:u[m],b=us(y),k=m===l?g.isActive:null;k===!1&&(x=w);let C=y===u[m]&&y!==c[m]&&b;if(C&&r&&e.manuallyAnimateOnMount&&(C=!1),g.protectedKeys={...h},!g.isActive&&k===null||!y&&!g.prevProp||Gl(y)||typeof y=="boolean")continue;const E=pN(g.prevProp,y);let T=E||m===l&&g.isActive&&!C&&b||w>x&&b,D=!1;const N=Array.isArray(y)?y:[y];let B=N.reduce(o(m),{});k===!1&&(B={});const{prevResolvedValues:O={}}=g,G={...O,...B},_=V=>{T=!0,f.has(V)&&(D=!0,f.delete(V)),g.needsAnimating[V]=!0;const P=e.getValue(V);P&&(P.liveStyle=!1)};for(const V in G){const P=B[V],R=O[V];if(h.hasOwnProperty(V))continue;let M=!1;Pd(P)&&Pd(R)?M=!j1(P,R):M=P!==R,M?P!=null?_(V):f.add(V):P!==void 0&&f.has(V)?_(V):g.protectedKeys[V]=!0}g.prevProp=y,g.prevResolvedValues=B,g.isActive&&(h={...h,...B}),r&&e.blockInitialAnimation&&(T=!1);const K=C&&E;T&&(!K||D)&&d.push(...N.map(V=>{const P={type:m};if(typeof V=="string"&&r&&!K&&e.manuallyAnimateOnMount&&e.parent){const{parent:R}=e,M=To(R,V);if(R.enteringChildren&&M){const{delayChildren:U}=M.transition||{};P.delay=M1(R.enteringChildren,e,U)}}return{animation:V,options:P}}))}if(f.size){const w={};if(typeof c.initial!="boolean"){const m=To(e,Array.isArray(c.initial)?c.initial[0]:c.initial);m&&m.transition&&(w.transition=m.transition)}f.forEach(m=>{const g=e.getBaseTarget(m),y=e.getValue(m);y&&(y.liveStyle=!0),w[m]=g??null}),d.push({animation:w})}let p=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(d):Promise.resolve()}function a(l,c){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(f=>{var h;return(h=f.animationState)==null?void 0:h.setActive(l,c)}),n[l].isActive=c;const u=s(l);for(const f in n)n[f].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=pg()}}}function pN(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!j1(t,e):!1}function Sr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function pg(){return{animate:Sr(!0),whileInView:Sr(),whileHover:Sr(),whileTap:Sr(),whileDrag:Sr(),whileFocus:Sr(),exit:Sr()}}class wr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class mN extends wr{constructor(t){super(t),t.animationState||(t.animationState=hN(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Gl(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 gN=0;class yN extends wr{constructor(){super(...arguments),this.id=gN++}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 o=this.node.animationState.setActive("exit",!t);n&&!t&&o.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 vN={animation:{Feature:mN},exit:{Feature:yN}};function ds(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ns(e){return{point:{x:e.pageX,y:e.pageY}}}const wN=e=>t=>yh(t)&&e(t,Ns(t));function Ii(e,t,n,r){return ds(e,t,wN(n),r)}const _1=1e-4,bN=1-_1,xN=1+_1,O1=.01,SN=0-O1,kN=0+O1;function Qe(e){return e.max-e.min}function CN(e,t,n){return Math.abs(e-t)<=n}function mg(e,t,n,r=.5){e.origin=r,e.originPoint=he(t.min,t.max,e.origin),e.scale=Qe(n)/Qe(t),e.translate=he(n.min,n.max,e.origin)-e.originPoint,(e.scale>=bN&&e.scale<=xN||isNaN(e.scale))&&(e.scale=1),(e.translate>=SN&&e.translate<=kN||isNaN(e.translate))&&(e.translate=0)}function Fi(e,t,n,r){mg(e.x,t.x,n.x,r?r.originX:void 0),mg(e.y,t.y,n.y,r?r.originY:void 0)}function gg(e,t,n){e.min=n.min+t.min,e.max=e.min+Qe(t)}function EN(e,t,n){gg(e.x,t.x,n.x),gg(e.y,t.y,n.y)}function yg(e,t,n){e.min=t.min-n.min,e.max=e.min+Qe(t)}function hl(e,t,n){yg(e.x,t.x,n.x),yg(e.y,t.y,n.y)}function mt(e){return[e("x"),e("y")]}const I1=({current:e})=>e?e.ownerDocument.defaultView:null,vg=(e,t)=>Math.abs(e-t);function PN(e,t){const n=vg(e.x,t.x),r=vg(e.y,t.y);return Math.sqrt(n**2+r**2)}const wg=new Set(["auto","scroll"]);class F1{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=h=>{this.handleScroll(h.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Kc(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,p=PN(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!p)return;const{point:w}=h,{timestamp:m}=Ne;this.history.push({...w,timestamp:m});const{onStart:g,onMove:y}=this.handlers;x||(g&&g(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,h)},this.handlePointerMove=(h,x)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Gc(x,this.transformPagePoint),le.update(this.updatePoint,!0)},this.handlePointerUp=(h,x)=>{this.end();const{onEnd:p,onSessionEnd:w,resumeAnimation:m}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Kc(h.type==="pointercancel"?this.lastMoveEventInfo:Gc(x,this.transformPagePoint),this.history);this.startEvent&&p&&p(h,g),w&&w(h,g)},!yh(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const l=Ns(t),c=Gc(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=Ne;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,Kc(c,this.history)),this.removeListeners=Rs(Ii(this.contextWindow,"pointermove",this.handlePointerMove),Ii(this.contextWindow,"pointerup",this.handlePointerUp),Ii(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(wg.has(r.overflowX)||wg.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:o.x-n.x,y:o.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,o),le.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),hr(this.updatePoint)}}function Gc(e,t){return t?{point:t(e.point)}:e}function bg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Kc({point:e},t){return{point:e,delta:bg(e,B1(t)),offset:bg(e,TN(t)),velocity:RN(t,.1)}}function TN(e){return e[0]}function B1(e){return e[e.length-1]}function RN(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=B1(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>sn(t)));)n--;if(!r)return{x:0,y:0};const i=bt(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function AN(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?he(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?he(n,e,r.max):Math.min(e,n)),e}function xg(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 DN(e,{top:t,left:n,bottom:r,right:o}){return{x:xg(e.x,n,o),y:xg(e.y,t,r)}}function Sg(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 NN(e,t){return{x:Sg(e.x,t.x),y:Sg(e.y,t.y)}}function MN(e,t){let n=.5;const r=Qe(e),o=Qe(t);return o>r?n=as(t.min,t.max-r,e.min):r>o&&(n=as(e.min,e.max-o,t.min)),cn(0,1,n)}function jN(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 Ad=.35;function LN(e=Ad){return e===!1?e=0:e===!0&&(e=Ad),{x:kg(e,"left","right"),y:kg(e,"top","bottom")}}function kg(e,t,n){return{min:Cg(e,t),max:Cg(e,n)}}function Cg(e,t){return typeof e=="number"?e:e[t]||0}const _N=new WeakMap;class ON{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=Ee(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=d=>{n?(this.stopAnimation(),this.snapToCursor(Ns(d).point)):this.pauseAnimation()},s=(d,f)=>{this.stopAnimation();const{drag:h,dragPropagation:x,onDragStart:p}=this.getProps();if(h&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$5(h),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),mt(m=>{let g=this.getAxisMotionValue(m).get()||0;if(an.test(g)){const{projection:y}=this.visualElement;if(y&&y.layout){const b=y.layout.layoutBox[m];b&&(g=Qe(b)*(parseFloat(g)/100))}}this.originPoint[m]=g}),p&&le.postRender(()=>p(d,f)),Td(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:h,dragDirectionLock:x,onDirectionLock:p,onDrag:w}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:m}=f;if(x&&this.currentDirection===null){this.currentDirection=IN(m),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",f.point,m),this.updateAxis("y",f.point,m),this.visualElement.render(),w&&w(d,f)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>mt(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)==null?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new F1(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:I1(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&le.postRender(()=>a(r,o))}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:o}=this.getProps();if(!r||!ca(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=AN(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,o=this.constraints;t&&Ci(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=DN(r.layoutBox,t):this.constraints=!1,this.elastic=LN(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&mt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=jN(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ci(t))return!1;const r=t.current;Ho(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=FD(r,o.root,this.visualElement.getTransformPagePoint());let s=NN(o.layout.layoutBox,i);if(n){const a=n(_D(s));this.hasMutatedConstraints=!!a,a&&(s=S1(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=mt(u=>{if(!ca(u,n,this.currentDirection))return;let d=l&&l[u]||{};s&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,x={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,x)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Td(this.visualElement,t),r.start(Rh(t,r,0,n,this.visualElement,!1))}stopAnimation(){mt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){mt(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(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){mt(n=>{const{drag:r}=this.getProps();if(!ca(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n],l=i.get()||0;i.set(t[n]-he(s,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ci(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};mt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=MN({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),mt(s=>{if(!ca(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(he(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;_N.set(this.visualElement,this);const t=this.visualElement.current,n=Ii(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&!s1(l.target)&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ci(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),le.read(r);const s=ds(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(mt(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Ad,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function ca(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function IN(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class FN extends wr{constructor(t){super(t),this.removeGroupControls=St,this.removeListeners=St,this.controls=new ON(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||St}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const Eg=e=>(t,n)=>{e&&le.postRender(()=>e(t,n))};class BN extends wr{constructor(){super(...arguments),this.removePointerDownListener=St}onPointerDown(t){this.session=new F1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:I1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Eg(t),onStart:Eg(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&le.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Ii(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 Da={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Qc=!1;class VN extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Qc&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Da.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,Qc=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||le.postRender(()=>
vendor: 4,243 bytes, line 140
140{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),gh.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Qc=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function V1(e){const[t,n]=l1(),r=v.useContext(qf);return S.jsx(VN,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(b1),isPresent:t,safeToRemove:n})}function UN(e,t,n){const r=$e(e)?e:Go(e);return r.start(Rh("",r,t,n)),r.animation}const $N=(e,t)=>e.depth-t.depth;class zN{constructor(){this.children=[],this.isDirty=!1}add(t){Jf(this.children,t),this.isDirty=!0}remove(t){eh(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort($N),this.isDirty=!1,this.children.forEach(t)}}function WN(e,t){const n=Ke.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(hr(r),e(i-t))};return le.setup(r,!0),()=>hr(r)}const U1=["TopLeft","TopRight","BottomLeft","BottomRight"],HN=U1.length,Pg=e=>typeof e=="string"?parseFloat(e):e,Tg=e=>typeof e=="number"||I.test(e);function GN(e,t,n,r,o,i){o?(e.opacity=he(0,n.opacity??1,KN(r)),e.opacityExit=he(t.opacity??1,0,QN(r))):i&&(e.opacity=he(t.opacity??1,n.opacity??1,r));for(let s=0;s<HN;s++){const a=`border${U1[s]}Radius`;let l=Rg(t,a),c=Rg(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Tg(l)===Tg(c)?(e[a]=Math.max(he(Pg(l),Pg(c),r),0),(an.test(c)||an.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=he(t.rotate||0,n.rotate||0,r))}function Rg(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const KN=$1(0,.5,Pb),QN=$1(.5,.95,St);function $1(e,t,n){return r=>r<e?0:r>t?1:n(as(e,t,r))}function Ag(e,t){e.min=t.min,e.max=t.max}function Lt(e,t){Ag(e.x,t.x),Ag(e.y,t.y)}function Dg(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ng(e,t,n,r,o){return e-=t,e=fl(e,1/n,r),o!==void 0&&(e=fl(e,1/o,r)),e}function YN(e,t=0,n=1,r=.5,o,i=e,s=e){if(an.test(t)&&(t=parseFloat(t),t=he(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=he(i.min,i.max,r);e===i&&(a-=t),e.min=Ng(e.min,t,n,a,o),e.max=Ng(e.max,t,n,a,o)}function Mg(e,t,[n,r,o],i,s){YN(e,t[n],t[r],t[o],t.scale,i,s)}const qN=["x","scaleX","originX"],XN=["y","scaleY","originY"];function jg(e,t,n,r){Mg(e.x,t,qN,n?n.x:void 0,r?r.x:void 0),Mg(e.y,t,XN,n?n.y:void 0,r?r.y:void 0)}function Lg(e){return e.translate===0&&e.scale===1}function z1(e){return Lg(e.x)&&Lg(e.y)}function _g(e,t){return e.min===t.min&&e.max===t.max}function ZN(e,t){return _g(e.x,t.x)&&_g(e.y,t.y)}function Og(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function W1(e,t){return Og(e.x,t.x)&&Og(e.y,t.y)}function Ig(e){return Qe(e.x)/Qe(e.y)}function Fg(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class JN{constructor(){this.members=[]}add(t){Jf(this.members,t),t.scheduleRender()}remove(t){if(eh(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(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;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:o}=t.options;o===!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 eM(e,t,n){let r="";
vendor: 12,463 bytes, line 140
140const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:h,skewY:x}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),x&&(r+=`skewY(${x}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 Yc=["","X","Y","Z"],tM=1e3;let nM=0;function qc(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function H1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=D1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",le,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&H1(r)}function G1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=nM++,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.layoutVersion=0,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(iM),this.nodes.forEach(cM),this.nodes.forEach(uM),this.nodes.forEach(sM)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=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 zN)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new nh),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=a1(s)&&!K5(s),this.instance=s;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let u,d=0;const f=()=>this.root.updateBlockedByResize=!1;le.read(()=>{d=window.innerWidth}),e(s,()=>{const h=window.innerWidth;h!==d&&(d=h,this.root.updateBlockedByResize=!0,u&&u(),u=WN(f,250),Da.hasAnimatedSinceResize&&(Da.hasAnimatedSinceResize=!1,this.nodes.forEach(Ug)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||c.getDefaultTransition()||mM,{onLayoutAnimationStart:p,onLayoutAnimationComplete:w}=c.getProps(),m=!this.targetLayout||!W1(this.targetLayout,h),g=!d&&f;if(this.options.layoutRoot||this.resumeFrom||g||d&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...ph(x,"layout"),onPlay:p,onComplete:w};(c.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(u,g)}else d||Ug(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}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(),hr(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(dM),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&&H1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Bg);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Vg);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(lM),this.nodes.forEach(rM),this.nodes.forEach(oM)):this.nodes.forEach(Vg),this.clearAllSnapshots();const a=Ke.now();Ne.delta=cn(0,1e3/60,a-Ne.timestamp),Ne.timestamp=a,Ne.isProcessing=!0,Ic.update.process(Ne),Ic.preRender.process(Ne),Ic.render.process(Ne),Ne.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(aM),this.sharedNodes.forEach(fM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,le.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){le.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Qe(this.snapshot.measuredBox.x)&&!Qe(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.layoutVersion++,this.layoutCorrected=Ee(),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(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!z1(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&this.instance&&(a||Er(this.latestValues)||u)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),gM(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:s}=this.options;if(!s)return Ee();const a=s.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(yM))){const{scroll:u}=this.root;u&&(go(a.x,u.offset.x),go(a.y,u.offset.y))}return a}removeElementScroll(s){var l;const a=Ee();if(Lt(a,s),(l=this.scroll)!=null&&l.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Lt(a,s),go(a.x,d.offset.x),go(a.y,d.offset.y))}return a}applyTransform(s,a=!1){const l=Ee();Lt(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&yo(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Er(u.latestValues)&&yo(l,u.latestValues)}return Er(this.latestValues)&&yo(l,this.latestValues),l}removeTransform(s){const a=Ee();Lt(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Er(c.latestValues))continue;kd(c.latestValues)&&c.updateSnapshot();const u=Ee(),d=c.measurePageBox();Lt(u,d),jg(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Er(this.latestValues)&&jg(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!==Ne.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var h;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||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=Ne.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ee(),this.targetWithTransforms=Ee()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),EN(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Lt(this.target,this.layout.layoutBox),C1(this.target,this.targetDelta)):Lt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||kd(this.parent.latestValues)||k1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,a,l){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ee(),this.relativeTargetOrigin=Ee(),hl(this.relativeTargetOrigin,a,l),Lt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var x;const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&
vendor: 5,271 bytes, line 140
140(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Ne.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;Lt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;ID(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=Ee());const{target:h}=s;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Dg(this.prevProjectionDelta.x,this.projectionDelta.x),Dg(this.prevProjectionDelta.y,this.projectionDelta.y)),Fi(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!Fg(this.projectionDelta.x,this.prevProjectionDelta.x)||!Fg(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}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=vo(),this.projectionDelta=vo(),this.projectionDeltaWithTransform=vo()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=vo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=Ee(),h=l?l.source:void 0,x=this.layout?this.layout.source:void 0,p=h!==x,w=this.getStack(),m=!w||w.members.length<=1,g=!!(p&&!m&&this.options.crossfade===!0&&!this.path.some(pM));this.animationProgress=0;let y;this.mixTargetDelta=b=>{const k=b/1e3;$g(d.x,s.x,k),$g(d.y,s.y,k),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(hl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),hM(this.relativeTarget,this.relativeTargetOrigin,f,k),y&&ZN(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=Ee()),Lt(y,this.relativeTarget)),p&&(this.animationValues=u,GN(u,c,this.latestValues,k,g,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(hr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=le.update(()=>{Da.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Go(0)),this.currentAnimation=UN(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),s.onUpdate&&s.onUpdate(u)},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(tM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&K1(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ee();const d=Qe(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Qe(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Lt(a,l),yo(a,u),Fi(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new JN),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.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 c=this.getStack();c&&c.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}
vendor: 4,211 bytes, line 140
140resetSkewAndRotation(){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 c={};l.z&&qc("z",s,c,this.animationValues);for(let u=0;u<Yc.length;u++)qc(`rotate${Yc[u]}`,s,c,this.animationValues),qc(`skew${Yc[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);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=Aa(a==null?void 0:a.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Er(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=eM(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),s.transform=d;const{x:f,y:h}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${h.origin*100}% 0`,c.animationValues?s.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const x in Sd){if(u[x]===void 0)continue;const{correct:p,applyTo:w,isCSSVariable:m}=Sd[x],g=d==="none"?u[x]:p(u[x],c);if(w){const y=w.length;for(let b=0;b<y;b++)s[w[b]]=g}else m?this.options.visualElement.renderState.vars[x]=g:s[x]=g}this.options.layoutId&&(s.pointerEvents=c===this?Aa(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(Bg),this.root.sharedNodes.clear()}}}function rM(e){e.updateLayout()}function oM(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:o}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;i==="size"?mt(d=>{const f=s?t.measuredBox[d]:t.layoutBox[d],h=Qe(f);f.min=r[d].min,f.max=f.min+h}):K1(i,t.layoutBox,r)&&mt(d=>{const f=s?t.measuredBox[d]:t.layoutBox[d],h=Qe(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const a=vo();Fi(a,r,t.layoutBox);const l=vo();s?Fi(l,e.applyTransform(o,!0),t.measuredBox):Fi(l,r,t.layoutBox);const c=!z1(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const x=Ee();hl(x,t.layoutBox,f.layoutBox);const p=Ee();hl(p,r,h.layoutBox),W1(x,p)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=x,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function iM(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 sM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function aM(e){e.clearSnapshot()}function Bg(e){e.clearMeasurements()}function Vg(e){e.isLayoutDirty=!1}function lM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ug(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function cM(e){e.resolveTargetDelta()}function uM(e){e.calcProjection()}
vendor: 4,358 bytes, line 140
140function dM(e){e.resetSkewAndRotation()}function fM(e){e.removeLeadSnapshot()}function $g(e,t,n){e.translate=he(t.translate,0,n),e.scale=he(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function zg(e,t,n,r){e.min=he(t.min,n.min,r),e.max=he(t.max,n.max,r)}function hM(e,t,n,r){zg(e.x,t.x,n.x,r),zg(e.y,t.y,n.y,r)}function pM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const mM={duration:.45,ease:[.4,0,.1,1]},Wg=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Hg=Wg("applewebkit/")&&!Wg("chrome/")?Math.round:St;function Gg(e){e.min=Hg(e.min),e.max=Hg(e.max)}function gM(e){Gg(e.x),Gg(e.y)}function K1(e,t,n){return e==="position"||e==="preserve-aspect"&&!CN(Ig(t),Ig(n),.2)}function yM(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const vM=G1({attachResizeListener:(e,t)=>ds(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Xc={current:void 0},Q1=G1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Xc.current){const e=new vM({});e.mount(window),e.setOptions({layoutScroll:!0}),Xc.current=e}return Xc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),wM={pan:{Feature:BN},drag:{Feature:FN,ProjectionNode:Q1,MeasureLayout:V1}};function Kg(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&le.postRender(()=>i(t,Ns(t)))}class bM extends wr{mount(){const{current:t}=this.node;t&&(this.unmount=z5(t,(n,r)=>(Kg(this.node,r,"Start"),o=>Kg(this.node,o,"End"))))}unmount(){}}class xM extends wr{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=Rs(ds(this.node.current,"focus",()=>this.onFocus()),ds(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Qg(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 o="onTap"+(n==="End"?"":n),i=r[o];i&&le.postRender(()=>i(t,Ns(t)))}class SM extends wr{mount(){const{current:t}=this.node;t&&(this.unmount=G5(t,(n,r)=>(Qg(this.node,r,"Start"),(o,{success:i})=>Qg(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Dd=new WeakMap,Zc=new WeakMap,kM=e=>{const t=Dd.get(e.target);t&&t(e)},CM=e=>{e.forEach(kM)};function EM({root:e,...t}){const n=e||document;Zc.has(n)||Zc.set(n,{});const r=Zc.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(CM,{root:e,...t})),r[o]}function PM(e,t,n){const r=EM(t);return Dd.set(e,n),r.observe(e),()=>{Dd.delete(e),r.unobserve(e)}}const TM={some:0,all:1};class RM extends wr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:TM[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return PM(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(AM(t,n))&&this.startObserver()}unmount(){}}function AM({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const DM={inView:{Feature:RM},tap:{Feature:SM},focus:{Feature:xM},hover:{Feature:bM}},NM={layout:{ProjectionNode:Q1,MeasureLayout:V1}},MM={...vN,...DM,...wM,...NM},te=LD(MM,KD),jM="/assets/duck-logo-bibP-0wr.jpg";function LM(){return S.jsxs(te.header,{initial:{opacity:0,y:-20}
140,animate:{opacity:1,y:0},transition:{duration:.6},className:"text-center mb-10",children:[S.jsx(te.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,delay:.2},className:"inline-flex items-center justify-center w-24 h-24 rounded-full overflow-hidden bg-secondary mb-6 shadow-lg",children:S.jsx("img",{src:jM,alt:"Fledge and Thread",className:"w-full h-full object-cover"})}),S.jsx(te.h1,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.3},className:"font-display text-4xl md:text-5xl lg:text-6xl font-medium text-foreground mb-4",children:"Find the Perfect Gift"}),S.jsx(te.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.4},className:"text-lg text-muted-foreground font-body max-w-md mx-auto",children:"Give a gift that tells a story. Answer a few questions and we'll help you find something truly meaningful."}),S.jsx(te.div,{initial:{opacity:0,scaleX:0},animate:{opacity:1,scaleX:1},transition:{delay:.5,duration:.6},className:"w-24 h-px bg-primary/30 mx-auto mt-6"})]})}const Jc=[{id:"recipient",question:"Who is this gift for?",subtitle:"Select the age of the little one",options:[{id:"newborn",label:"Newborn",description:"0-3 months",icon:"👶"},{id:"baby",label:"Baby",description:"3-12 months",icon:"🧸"},{id:"toddler",label:"Toddler",description:"1-3 years",icon:"🌟"},{id:"child",label:"Older Child",description:"3+ years",icon:"🎈"}]},{id:"gender",question:"Boy or girl?",subtitle:"Or keep it neutral",options:[{id:"girl",label:"Girl",icon:"🌸"},{id:"boy",label:"Boy",icon:"🐻"},{id:"unisex",label:"Gender Neutral",icon:"🪿"}]},{id:"collection",question:"Meet our characters",subtitle:"Each one has their own story to tell",options:[{id:"duck",label:"Duck Collection",description:"Our signature duck prints",icon:"🪿"},{id:"bunny",label:"Bunny",description:"Sweet bunny illustrations",icon:"🐰"},{id:"teddy-bear",label:"Teddy Bear",description:"Adorable bear prints",icon:"🧸"},{id:"mouse",label:"Mouse",description:"Charming mouse illustrations",icon:"🐭"},{id:"floral",label:"Florals, Stripes & Gingham",description:"Vintage-inspired blooms, stripes & gingham",icon:"🌷"}]},{id:"giftType",question:"What type of gift?",subtitle:"Select a category",options:[{id:"clothing",label:"Clothing",description:"Hand illustrated prints on soft cottons",icon:"🧸"},{id:"blankets",label:"Blankets & Wraps",description:"Heirloom blankets & swaddles",icon:"🧶"},{id:"gift-sets",label:"Gift Boxes",description:"Beautifully curated bundles",icon:"🎁"},{id:"decor",label:"Nursery Art",description:"Prints & original paintings",icon:"🎨"}]},{id:"budget",question:"What's your budget?",subtitle:"Heirloom quality, designed in Australia",options:[{id:"under-50",label:"Under $50"},{id:"50-100",label:"$50 - $100"},{id:"100-150",label:"$100 - $150"},{id:"150-plus",label:"$150+"}]}],Pr=[{id:"painting-light",name:"'A Little light' Original painting",description:"A one-of-a-kind hand-painted heirloom artwork featuring soft, dreamy tones. Perfect as a timeless centrepiece for any nursery or child's room, this piece grows with your child and makes a treasured keepsake.",priceAUD:381,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20241215_120020.jpg?v=1734235264&width=800",category:"decor",collection:"originals",gender:"unisex",url:"https://fledgeandthread.com.au/products/a-little-light-original-painting",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"],isOriginalArt:!0,inStock:!0},{id:"painting-autumn-bunny",name:"'Autumn Bunny' Original painting",description:"A charming vintage-style bunny portrait in warm autumn tones. This original artwork creates a cosy focal point for the nursery and becomes a cherished family heirloom.",priceAUD:365,image:"https://fledgeandthread.com.au/cdn/shop/files/078A14863.jpg?v=1710391984&width=800",category:"decor",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/autumn-bunny-original-painting",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"],isOriginalArt:!0,inStock:!0},{id:"painting-pink-bunny",name:"'Baby Pink Bunny' Original painting",description:"A delicate hand-painted bunny portrait in soft pink tones, designed especially for a little girl's space. This heirloom piece makes a meaningful christening or first birthday gift.",priceAUD:334,image:"https://fledgeandthread.c
140om.au/cdn/shop/files/Photoroom_20250317_140415.jpg?v=1742192333&width=800",category:"decor",collection:"bunny",gender:"girl",url:"https://fledgeandthread.com.au/products/pink-bunny-original-heirloom-painting-copy",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"],isOriginalArt:!0,inStock:!0},{id:"painting-blue-bunny",name:"'Blue Ribbon Bunny' Original painting",description:"A classic bunny portrait adorned with a beautiful blue ribbon. Hand-painted with love, this original artwork is ideal for a baby boy's nursery and makes a treasured christening gift.",priceAUD:334,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20250317_142132.jpg?v=1742192526&width=800",category:"decor",collection:"bunny",gender:"boy",url:"https://fledgeandthread.com.au/products/blue-ribbon-bunny-original-heirloom-painting-copy",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"],isOriginalArt:!0,inStock:!0},{id:"painting-mustard-bunny",name:"'Mustard Ribbon Bunny' Original painting",description:"A gorgeous bunny portrait in warm mustard tones with ribbon detail. This gender-neutral original artwork adds elegance to any nursery and pairs beautifully with natural wood furniture.",priceAUD:334,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20250317_140812.jpg?v=1742192724&width=800",category:"decor",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/mustard-ribbon-bunny-original-painting-copy",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"],isOriginalArt:!0,inStock:!0},{id:"painting-cottage",name:"'Cottage by the sea' - Original painting",description:"A charming coastal cottage scene capturing the magic of seaside living. This hand-painted original brings calm and wonder to any nursery, perfect for sparking imagination as your child grows.",priceAUD:479,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20250209_135002.jpg?v=1739080556&width=800",category:"decor",collection:"originals",gender:"unisex",url:"https://fledgeandthread.com.au/products/duck-in-bowtie-original-heirloom-painting-copy",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"],isOriginalArt:!0,inStock:!0},{id:"painting-best-wishes",name:"'Best wishes bunny' Original painting",description:"A festive bunny painting perfect for celebrating new arrivals and special occasions. This original hand-painted artwork makes a meaningful baby shower or christening gift.",priceAUD:365,image:"https://fledgeandthread.com.au/cdn/shop/files/078A14825.jpg?v=1710392050&width=800",category:"decor",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/best-wishes-bunny-original-painting",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"],isOriginalArt:!0,inStock:!0},{id:"painting-pink-bunny-2",name:"'Pink Bunny' Original painting",description:"A sweet hand-painted bunny portrait in beautiful pink tones. This one-of-a-kind original artwork makes a perfect heirloom gift for a little girl, treasured for generations.",priceAUD:334,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20250317_140131.jpg?v=1742192257&width=800",category:"decor",collection:"bunny",gender:"girl",url:"https://fledgeandthread.com.au/products/duck-in-bowtie-original-heirloom-painting-copy-1",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"],isOriginalArt:!0,inStock:!0},{id:"a5-bear",name:"'Bear portrait' A5 original",description:"A beautifully detailed small format original bear artwork. Perfect for compact spaces, gallery walls, or as a thoughtful gift that fits any nursery style.",priceAUD:329,image:"https://fledgeandthread.com.au/cdn/shop/files/IMG_2698.jpg?v=1731047254&width=800",category:"decor",collection:"teddy-bear",gender:"unisex",url:"https://fledgeandthread.com.au/products/bear-portrait-a5-original",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"],isOriginalArt:!0,inStock:!0},{id:"a5-bunny",name:"'Bunny portrait' A5 original",description:"A sweet hand-painted bunny portrait in a compact A5 format. Ideal for smaller nurseries or creating a curated gallery wall with matching prints.",priceAUD:329,image:"https://fledgeandthread.c
140om.au/cdn/shop/files/IMG_2700.jpg?v=1731047561&width=800",category:"decor",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/bunny-portrait-a5-original-1",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"],isOriginalArt:!0,inStock:!0},{id:"a5-bunny-cape",name:"'Bunny with cape portrait' A5 original",description:"A charming bunny wearing a cape, hand-painted and loved by customers. This whimsical A5 original sparks imagination and adds character to any nursery.",priceAUD:302,image:"https://fledgeandthread.com.au/cdn/shop/files/IMG_2697.jpg?v=1731047482&width=800",category:"decor",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/bunny-portrait-a5-original",tags:["baby","toddler","child","decor"],rating:5,reviewCount:1,ageRange:["newborn","baby","toddler","child"],isOriginalArt:!0,inStock:!0},{id:"a5-mouse",name:"'Mouse portrait' A5 original",description:"An adorable hand-painted mouse portrait in a compact A5 format. Brings gentle charm to any child's room and coordinates beautifully with our mouse collection.",priceAUD:302,image:"https://fledgeandthread.com.au/cdn/shop/files/IMG_2699.jpg?v=1731047614&width=800",category:"decor",collection:"mouse",gender:"unisex",url:"https://fledgeandthread.com.au/products/mouse-portrait-a5-original-copy",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"],isOriginalArt:!0,inStock:!0},{id:"a5-bear",name:"'Bear portrait' A5 original",description:"A beautifully detailed small format original bear artwork, hand-painted with care. Perfect for a compact space or as part of a gallery wall.",priceAUD:329,image:"https://fledgeandthread.com.au/cdn/shop/files/IMG_2698.jpg?v=1731047254&width=800",category:"decor",collection:"teddy-bear",gender:"unisex",url:"https://fledgeandthread.com.au/products/bear-portrait-a5-original",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"],isOriginalArt:!0,inStock:!0},{id:"a5-bunny",name:"'Bunny portrait' A5 original",description:"A sweet hand-painted bunny portrait in a compact A5 format. This original artwork captures timeless charm and makes a wonderful heirloom gift.",priceAUD:329,image:"https://fledgeandthread.com.au/cdn/shop/files/IMG_2700.jpg?v=1731047561&width=800",category:"decor",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/bunny-portrait-a5-original-1",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"],isOriginalArt:!0,inStock:!0},{id:"a5-bunny-cape",name:"'Bunny with cape portrait' A5 original",description:"A charming bunny wearing a cape, hand-painted and loved by customers. This A5 original artwork adds a touch of whimsy to any nursery.",priceAUD:302,image:"https://fledgeandthread.com.au/cdn/shop/files/IMG_2697.jpg?v=1731047482&width=800",category:"decor",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/bunny-portrait-a5-original",tags:["baby","toddler","child","decor"],rating:5,reviewCount:1,ageRange:["newborn","baby","toddler","child"],isOriginalArt:!0,inStock:!0},{id:"a5-mouse",name:"'Mouse portrait' A5 original",description:"An adorable hand-painted mouse portrait in a compact A5 format. This original artwork brings gentle charm and character to any child's room.",priceAUD:302,image:"https://fledgeandthread.com.au/cdn/shop/files/IMG_2699.jpg?v=1731047614&width=800",category:"decor",collection:"mouse",gender:"unisex",url:"https://fledgeandthread.com.au/products/mouse-portrait-a5-original-copy",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"],isOriginalArt:!0,inStock:!0},{id:"print-bear",name:"'Bear' print",description:"Fine art print on 100% cotton paper, A4 size. A budget-friendly way to add heirloom charm to the nursery without the original artwork price.",priceAUD:79.95,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20250312_114634.jpg?v=1741751390&width=800",category:"decor",collection:"teddy-bear",gender:"unisex",url:"https://fledgeandthread.c
140om.au/products/bear-print",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"]},{id:"print-bunny-floral",name:"'Bunny in Floral' print",description:"Bunny surrounded by vintage florals on 100% cotton paper. Perfect for creating a coordinated nursery theme or as a thoughtful baby shower gift.",priceAUD:79.95,image:"https://fledgeandthread.com.au/cdn/shop/files/IMG_1915.jpg?v=1728365036&width=800",category:"decor",collection:"floral",gender:"girl",url:"https://fledgeandthread.com.au/products/bunny-in-floral-print",tags:["baby","toddler","child","decor","floral"],ageRange:["newborn","baby","toddler","child"]},{id:"print-bunny-gingham",name:"'Bunny in Gingham' print",description:"Classic bunny with timeless gingham backdrop. Printed on archival cotton paper, ideal for traditional nursery styling or pairing with our bunny collection.",priceAUD:79.95,image:"https://fledgeandthread.com.au/cdn/shop/files/IMG_1918.jpg?v=1728365036&width=800",category:"decor",collection:"gingham",gender:"unisex",url:"https://fledgeandthread.com.au/products/bunny-in-gingham-print",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"]},{id:"print-boating",name:"'Boating' print",description:"Whimsical boating scene print on fine art paper. A charming addition for nautical-themed nurseries or adventurous little ones.",priceAUD:79.95,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20250312_120714.jpg?v=1741752509&width=800",category:"decor",collection:"originals",gender:"boy",url:"https://fledgeandthread.com.au/products/boating-print",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"]},{id:"print-duck-stripe",name:"'Duck in Stripe' print",description:"Charming duck with striped background on 100% cotton paper. Coordinates perfectly with our duck clothing and blankets for a complete nursery look.",priceAUD:79.95,image:"https://fledgeandthread.com.au/cdn/shop/files/IMG_1921.jpg?v=1728364631&width=800",category:"decor",collection:"duck",gender:"unisex",url:"https://fledgeandthread.com.au/products/duck-in-stripe-print",tags:["baby","toddler","child","decor"],rating:5,reviewCount:1,ageRange:["newborn","baby","toddler","child"]},{id:"print-duck-bow",name:"'Duck with Bow' print",description:"Sweet duck portrait with decorative bow on fine art paper. A lovely gift for a baby girl that pairs beautifully with our duck blankets and clothing.",priceAUD:79.95,image:"https://fledgeandthread.com.au/cdn/shop/files/IMG_1913.jpg?v=1728365036&width=800",category:"decor",collection:"duck",gender:"girl",url:"https://fledgeandthread.com.au/products/duck-with-bow-print",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"]},{id:"print-bunny-floral",name:"'Bunny in Floral' print",description:"Bunny surrounded by vintage florals",priceAUD:79.95,image:"https://fledgeandthread.com.au/cdn/shop/files/IMG_1915.jpg?v=1728365036&width=800",category:"decor",collection:"floral",gender:"girl",url:"https://fledgeandthread.com.au/products/bunny-in-floral-print",tags:["baby","toddler","child","decor","floral"],ageRange:["newborn","baby","toddler","child"]},{id:"print-bunny-gingham",name:"'Bunny in Gingham' print",description:"Classic bunny with gingham backdrop",priceAUD:79.95,image:"https://fledgeandthread.com.au/cdn/shop/files/IMG_1918.jpg?v=1728365036&width=800",category:"decor",collection:"gingham",gender:"unisex",url:"https://fledgeandthread.com.au/products/bunny-in-gingham-print",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"]},{id:"print-boating",name:"'Boating' print",description:"Whimsical boating scene print",priceAUD:79.95,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20250312_120714.jpg?v=1741752509&width=800",category:"decor",collection:"originals",gender:"boy",url:"https://fledgeandthread.com.au/products/boating-print",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"]},{id:"print-duck-stripe",name:"'Duck in Stripe' print",description:"Charming duck with striped background",priceAUD:79.95,image:"https://fledgeandthread.c
140om.au/cdn/shop/files/IMG_1921.jpg?v=1728364631&width=800",category:"decor",collection:"duck",gender:"unisex",url:"https://fledgeandthread.com.au/products/duck-in-stripe-print",tags:["baby","toddler","child","decor"],rating:5,reviewCount:1,ageRange:["newborn","baby","toddler","child"]},{id:"print-duck-bow",name:"'Duck with Bow' print",description:"Sweet duck portrait with decorative bow",priceAUD:79.95,image:"https://fledgeandthread.com.au/cdn/shop/files/IMG_1913.jpg?v=1728365036&width=800",category:"decor",collection:"duck",gender:"girl",url:"https://fledgeandthread.com.au/products/duck-with-bow-print",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"]},{id:"gift-bunny",name:"Baby Gift Box - Bunny",description:"Curated bunny-themed gift box with essentials. Beautifully presented and ready to give — perfect for baby showers or when you want to send something special.",priceAUD:79,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20251004_103630.jpg?v=1759558342&width=800",category:"gift-sets",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/gift-box-bunny",tags:["newborn","baby","gift-sets"],rating:5,reviewCount:1,ageRange:["newborn","baby"]},{id:"gift-duck",name:"Baby Gift Box - Duck",description:"Delightful duck-themed gift set with baby essentials. Arrives beautifully packaged, ideal for new parents or as a thoughtful hospital visit gift.",priceAUD:79,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20251004_103816.jpg?v=1759558586&width=800",category:"gift-sets",collection:"duck",gender:"unisex",url:"https://fledgeandthread.com.au/products/gift-box-duck",tags:["newborn","baby","gift-sets"],ageRange:["newborn","baby"]},{id:"gift-teddy",name:"Baby Gift Box - Teddy Bear",description:"Sweet teddy bear themed gift box with coordinated essentials. Takes the guesswork out of gift-giving — simply wrap and give with confidence.",priceAUD:79,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20251004_103949.jpg?v=1759558630&width=800",category:"gift-sets",collection:"teddy-bear",gender:"unisex",url:"https://fledgeandthread.com.au/products/gift-box-teddy-bear",tags:["newborn","baby","gift-sets"],rating:5,reviewCount:1,ageRange:["newborn","baby"]},{id:"blanket-bunny",name:"Baby Heirloom blanket - Bunny",description:"Made from 100% organic cotton, this lightweight blanket is perfect for warmer months or layering when it's cool. Ideal for prams, car seats, and tummy time.",priceAUD:70,image:"https://fledgeandthread.com.au/cdn/shop/files/078A03423_a278554a-a6a6-4c89-90ff-3e23b567daae_3.jpg?v=1740571959&width=800",category:"blankets",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/baby-heirloom-blanket-bunny",tags:["newborn","baby","toddler","blankets"],rating:5,reviewCount:5,ageRange:["newborn","baby","toddler"]},{id:"blanket-mouse",name:"Baby Heirloom blanket - Mouse",description:"Soft 100% organic cotton blanket, breathable and gentle on delicate skin. Perfect for snuggles, pram covers, and as a lightweight layer in cooler weather.",priceAUD:70,image:"https://fledgeandthread.com.au/cdn/shop/files/078A0348_693c6bb8-d21a-4d88-96c7-a6a2a5af1a82_2.jpg?v=1740571649&width=800",category:"blankets",collection:"mouse",gender:"unisex",url:"https://fledgeandthread.com.au/products/baby-heirloom-blanket-mouse",tags:["newborn","baby","toddler","blankets"],rating:5,reviewCount:4,ageRange:["newborn","baby","toddler"]},{id:"blanket-teddy",name:"Baby Heirloom blanket - Teddy Bear",description:"Cosy 100% organic cotton blanket in our beloved teddy bear print. Machine washable and gets softer with every wash — a true heirloom piece.",priceAUD:78,image:"https://fledgeandthread.com.au/cdn/shop/files/078A78348.jpg?v=1765517424&width=800",category:"blankets",collection:"teddy-bear",gender:"unisex",url:"https://fledgeandthread.com.au/products/baby-heirloom-blanket-teddy-bear",tags:["newborn","baby","toddler","blankets"],rating:5,reviewCount:1,ageRange:["newborn","baby","toddler"]},{id:"blanket-duck",name:"Baby Heirloom blanket - Duck",description:"Adorable duck print on 100% organic cotton. Lightweight and breathable for year-round use — perfect for the pram, car seat, or as a comforting cuddle blanket.",priceAUD:70,image:"https://fledgeandthread.c
140om.au/cdn/shop/files/IMG_1157.jpg?v=1725746933&width=800",category:"blankets",collection:"duck",gender:"unisex",url:"https://fledgeandthread.com.au/products/baby-heirloom-blanket-duck",tags:["newborn","baby","toddler","blankets"],rating:5,reviewCount:3,ageRange:["newborn","baby","toddler"],inStock:!1},{id:"quilted-blanket-bunny",name:"Quilted baby blanket - Bunny",description:"Super-soft muslin quilted blanket, perfect for cooler months. The quilted layers provide warmth without bulk — ideal for cots, prams, and cosy cuddles.",priceAUD:119,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/IMG_1935.jpg?v=1728368042",category:"blankets",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/quilted-baby-blanket-bunny",tags:["newborn","baby","toddler","blankets"],rating:5,reviewCount:6,ageRange:["newborn","baby","toddler"]},{id:"quilted-blanket-duck",name:"Quilted baby blanket - Duck",description:"Super-soft muslin quilted blanket with charming duck print. Three layers of breathable muslin keep baby warm without overheating — perfect for all seasons.",priceAUD:119,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/IMG_1938.jpg?v=1728368043",category:"blankets",collection:"duck",gender:"unisex",url:"https://fledgeandthread.com.au/products/quilted-baby-blanket-duck",tags:["newborn","baby","toddler","blankets"],rating:5,reviewCount:7,ageRange:["newborn","baby","toddler"]},{id:"knitted-blanket",name:"Knitted Baby Blanket",description:"Beautifully soft organic cotton knitted blanket in a classic cream colour. Lightweight yet warm, perfect for prams, cots, and cuddles. A timeless baby essential.",priceAUD:99.95,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20250625_141126.jpg?v=1750832209&width=800",category:"blankets",collection:"originals",gender:"unisex",url:"https://fledgeandthread.com.au/products/baby-blanket-organic-cotton",tags:["newborn","baby","toddler","blankets"],rating:5,reviewCount:1,ageRange:["newborn","baby","toddler"]},{id:"stretch-wrap-mouse",name:"Stretch Wrap - Mouse and Rockinghorse",description:"Soft stretch cotton swaddle, perfect for newborns. The gentle stretch makes swaddling easy whilst keeping baby feeling secure and settled for better sleep.",priceAUD:39.95,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20250424_163612.jpg?v=1745484023&width=800",category:"blankets",collection:"mouse",gender:"unisex",url:"https://fledgeandthread.com.au/products/stretch-wrap-mouse-and-rockinghorse",tags:["newborn","baby","blankets","swaddle"],ageRange:["newborn","baby"]},{id:"stretch-wrap-bear",name:"Stretch Wrap - Bear with Berries",description:"Cosy stretch cotton swaddle with charming bear print. Lightweight and breathable for all seasons — helps baby feel snug and sleep more soundly.",priceAUD:39.95,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20250424_163744.jpg?v=1745483891&width=800",category:"blankets",collection:"teddy-bear",gender:"unisex",url:"https://fledgeandthread.com.au/products/stretch-wrap-bear-with-berries",tags:["newborn","baby","blankets","swaddle"],rating:5,reviewCount:1,ageRange:["newborn","baby"]},{id:"stretch-wrap-floral",name:"Stretch Wrap - Blue Floral",description:"Beautiful blue floral stretch swaddle at an exceptional price. Perfect for hospital bags, everyday use, or as a thoughtful add-on to any baby gift.",priceAUD:19,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20240908_062423.png?v=1725747894&width=800",category:"blankets",collection:"floral",gender:"unisex",url:"https://fledgeandthread.com.au/products/swaddle-blanket-blue-floral",tags:["newborn","baby","blankets","swaddle","floral"],rating:5,reviewCount:1,ageRange:["newborn","baby"]},{id:"stretch-wrap-bunny",name:"Swaddle Wrap - Bunny",description:"Sweet bunny print stretch cotton swaddle. The gentle stretch fabric makes wrapping easy whilst coordinating perfectly with our bunny collection.",priceAUD:39.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/IMG_1155.jpg?v=1725746503",category:"blankets",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.c
140om.au/products/swaddle-wrap-bunny",tags:["newborn","baby","blankets","swaddle"],ageRange:["newborn","baby"]},{id:"stretch-wrap-duck",name:"Swaddle Wrap - Duck",description:"Classic duck print stretch swaddle, perfect for creating a coordinated gift set. Soft and stretchy for easy swaddling and restful sleep.",priceAUD:39.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/IMG_1157.jpg?v=1725746933",category:"blankets",collection:"duck",gender:"unisex",url:"https://fledgeandthread.com.au/products/stretch-wrap-duck",tags:["newborn","baby","blankets","swaddle"],rating:5,reviewCount:2,ageRange:["newborn","baby"]},{id:"stretch-wrap-teddy",name:"Swaddle Wrap - Teddy Bear",description:"Soft teddy bear print stretch swaddle. The breathable cotton keeps baby comfortable whilst the stretch makes for a perfect swaddle every time.",priceAUD:39.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20251004_101256.png?v=1759544004",category:"blankets",collection:"teddy-bear",gender:"unisex",url:"https://fledgeandthread.com.au/products/swaddle-wrap-teddy-bear",tags:["newborn","baby","blankets","swaddle"],ageRange:["newborn","baby"]},{id:"cot-sheet-floral",name:"Cot sheet - Blue Floral",description:"100% cotton fitted cot sheet with deep pockets for a secure fit. Soft against delicate skin and coordinates beautifully with our floral blankets.",priceAUD:59,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20240226_193039.jpg?v=1709010495&width=800",category:"bedding",collection:"floral",gender:"unisex",url:"https://fledgeandthread.com.au/products/cot-sheet-blue-floral",tags:["baby","toddler","bedding","floral"],rating:5,reviewCount:3,ageRange:["baby","toddler"]},{id:"cot-sheet-bunny",name:"Cot sheet - Bunny",description:"100% cotton fitted cot sheet in our beloved bunny print. Machine washable and stays snug on the mattress for safe, comfortable sleep.",priceAUD:59,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250617_150951.jpg?v=1750145371",category:"bedding",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/cot-sheet-bunny-1",tags:["baby","toddler","bedding"],ageRange:["baby","toddler"]},{id:"cot-sheet-duck",name:"Cot sheet - Duck",description:"100% cotton fitted cot sheet with charming duck print. Soft, breathable, and gets softer with every wash — perfect for daily use.",priceAUD:59,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250617_151112.jpg?v=1750145720",category:"bedding",collection:"duck",gender:"unisex",url:"https://fledgeandthread.com.au/products/cot-sheet-duck",tags:["baby","toddler","bedding"],ageRange:["baby","toddler"]},{id:"cot-sheet-cream-floral",name:"Cot sheet - Cream Floral",description:"100% cotton fitted cot sheet in soft cream floral. A neutral base that works with any nursery palette and our full floral collection.",priceAUD:59,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20240226_193326.jpg?v=1709010562&width=800",category:"bedding",collection:"floral",gender:"unisex",url:"https://fledgeandthread.com.au/products/cot-sheet-cream-floral",tags:["baby","toddler","bedding","floral"],rating:5,reviewCount:1,ageRange:["baby","toddler"],inStock:!1},{id:"cot-sheet-squirrel",name:"Cot sheet - Squirrel",description:"100% cotton fitted cot sheet with woodland squirrel print. Creates a cosy forest theme and coordinates with our woodland collection.",priceAUD:59,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250617_151112.jpg",category:"bedding",collection:"woodland",gender:"unisex",url:"https://fledgeandthread.com.au/products/cot-sheet-squirrel",tags:["baby","toddler","bedding"],ageRange:["baby","toddler"]},{id:"cot-sheet-mouse",name:"Cot sheet - Mouse",description:"100% cotton fitted cot sheet in our sweet mouse print. Pair with our mouse blankets and clothing for a complete, coordinated nursery look.",priceAUD:59,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250617_151112.jpg",category:"bedding",collection:"mouse",gender:"unisex",url:"https://fledgeandthread.c
140om.au/products/cot-sheet-mouse",tags:["baby","toddler","bedding"],ageRange:["baby","toddler"]},{id:"bib-blue-floral",name:"Blue Floral Bib",description:"Pretty blue floral print bib with absorbent backing. Protects clothing during feeds whilst looking stylish — perfect for everyday use and special occasions.",priceAUD:19.95,image:"https://fledgeandthread.com.au/cdn/shop/files/IMG_1192.jpg?v=1725749627&width=800",category:"accessories",collection:"floral",gender:"unisex",url:"https://fledgeandthread.com.au/products/blue-floral-bib",tags:["newborn","baby","accessories","floral"],ageRange:["newborn","baby"]},{id:"bib-bunny",name:"Bunny Bib",description:"Adorable bunny print bib, absorbent and machine washable. Coordinates with our bunny collection for a complete gift set or matching outfit.",priceAUD:19.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20251005_065909.jpg?v=1759619059",category:"accessories",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/bunny-bib",tags:["newborn","baby","accessories"],ageRange:["newborn","baby"]},{id:"bib-duck",name:"Duck Bib",description:"Adorable duck print bib with soft, absorbent cotton. Perfect for teething and feeding — pairs beautifully with our duck babygrow and blanket.",priceAUD:19.95,image:"https://fledgeandthread.com.au/cdn/shop/files/IMG_1191.jpg?v=1725749107&width=800",category:"accessories",collection:"duck",gender:"unisex",url:"https://fledgeandthread.com.au/products/duck-bib",tags:["newborn","baby","accessories"],ageRange:["newborn","baby"]},{id:"bib-teddy-bear",name:"Teddy Bear Bib",description:"Sweet teddy bear print bib with absorbent backing. Coordinates perfectly with our teddy bear collection for a complete gift set.",priceAUD:19.95,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20251005_070127_2.jpg?v=1759619204&width=800",category:"accessories",collection:"teddy-bear",gender:"unisex",url:"https://fledgeandthread.com.au/products/teddy-bear-bib",tags:["newborn","baby","accessories"],ageRange:["newborn","baby"]},{id:"bib-green-stripe",name:"Green Stripe Bib",description:"Classic green stripe print bib with soft, absorbent cotton. Perfect for everyday wear — pairs beautifully with our striped collection.",priceAUD:19.95,image:"https://fledgeandthread.com.au/cdn/shop/files/IMG_1187.jpg?v=1725749536&width=800",category:"accessories",collection:"florals-stripes",gender:"unisex",url:"https://fledgeandthread.com.au/products/green-stripe-bib",tags:["newborn","baby","accessories","stripes"],ageRange:["newborn","baby"]},{id:"romper-teddy-bear",name:"Romper - Teddy Bear",description:"100% cotton romper with hand-illustrated teddy print. Soft and breathable for everyday wear — easy nappy changes with snap closures at the legs.",priceAUD:39.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250725_154500_2.jpg?v=1760334316",category:"clothing",collection:"teddy-bear",gender:"unisex",url:"https://fledgeandthread.com.au/products/romper-teddy-bear",tags:["newborn","baby","clothing"],rating:5,reviewCount:1,ageRange:["newborn","baby"],productType:"romper"},{id:"romper-bunny",name:"Romper - Bunny",description:"100% cotton romper designed in Australia. Perfect for warm days or layering under cardigans — pairs beautifully with our bunny blanket.",priceAUD:39.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250227_154841.jpg?v=1740642708",category:"clothing",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/romper-bunny",tags:["newborn","baby","clothing"],ageRange:["newborn","baby"],productType:"romper"},{id:"romper-duck",name:"Romper - Duck",description:"Sweet duck print cotton romper, soft and stretchy for easy dressing. Ideal for playtime, naps, or as part of a coordinated duck gift set.",priceAUD:39.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250227_154518.jpg?v=1740642645",category:"clothing",collection:"duck",gender:"unisex",url:"https://fledgeandthread.com.au/products/romper-duck",tags:["newborn","baby","clothing"],ageRange:["newborn","baby"],productType:"romper"},{id:"romper-bear-berries",name:"Romper - Bear with Berries",description:"Charming bear and berries print romper in 100% cotton. Machine washable and gets softer with every wear — a wardrobe staple for little ones.",priceAUD:39.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250227_200026.png?v=1740657676",category:"clothing",collection:"teddy-bear",gender:"unisex",url:"https://fledgeandthread.c
140om.au/products/romper-bear-with-berries",tags:["newborn","baby","clothing"],ageRange:["newborn","baby"],productType:"romper"},{id:"romper-sailboat",name:"Romper - Sailboat",description:"Nautical sailboat print romper, perfect for seaside holidays or everyday adventures. Soft cotton keeps baby cool and comfortable all day.",priceAUD:39.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250227_154706_7.jpg?v=1740657806",category:"clothing",collection:"mouse",gender:"unisex",url:"https://fledgeandthread.com.au/products/romper-boat",tags:["newborn","baby","clothing"],ageRange:["newborn","baby"],productType:"romper"},{id:"bodysuit-bunny",name:"Long Sleeve Bodysuit - Bunny",description:"Soft 100% cotton bodysuit with long sleeves for cooler days. Envelope neckline for easy dressing, snap closures for quick nappy changes.",priceAUD:39.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20240828_140336.jpg?v=1724934038",category:"clothing",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/long-sleeve-bodysuit-bunny",tags:["newborn","baby","clothing"],ageRange:["newborn","baby"],matchingPants:["pants-oat-stripe"],productType:"bodysuit"},{id:"bodysuit-duck",name:"Long Sleeve Bodysuit - Duck",description:"Classic duck print long sleeve bodysuit in 100% cotton. Perfect as a base layer or worn alone — coordinates with our duck blankets and accessories.",priceAUD:39.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20240828_135846.jpg?v=1724934012",category:"clothing",collection:"duck",gender:"unisex",url:"https://fledgeandthread.com.au/products/long-sleeve-bodysuit",tags:["newborn","baby","clothing"],ageRange:["newborn","baby"],matchingPants:["pants-green-stripe","pants-brown-gingham"],productType:"bodysuit"},{id:"bodysuit-teddy-bear",name:"Long Sleeve Bodysuit - Teddy Bear",description:"Cosy teddy bear print bodysuit, ideal for layering in winter or wearing alone in milder weather. Machine washable and built to last.",priceAUD:39.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20251004_095553.png?v=1759543045",category:"clothing",collection:"teddy-bear",gender:"unisex",url:"https://fledgeandthread.com.au/products/long-sleeve-bodysuit-teddy-bear",tags:["newborn","baby","clothing"],ageRange:["newborn","baby"],matchingPants:["pants-brown-gingham","pants-oat-stripe"],productType:"bodysuit"},{id:"bodysuit-bear-berries",name:"Long Sleeve Bodysuit - Bear with Berries",description:"Adorable bear and berries print bodysuit, perfect for autumn and winter. Pairs beautifully with our matching babygrow and blanket.",priceAUD:39.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250425_130053_2.jpg?v=1745557464",category:"clothing",collection:"teddy-bear",gender:"unisex",url:"https://fledgeandthread.com.au/products/long-sleeve-bodysuit-bear-with-berries",tags:["newborn","baby","clothing"],ageRange:["newborn","baby"],matchingPants:["pants-oat-stripe"],productType:"bodysuit"},{id:"bodysuit-mouse-rockinghorse",name:"Long Sleeve Bodysuit - Mouse and Rockinghorse",description:"Whimsical mouse and rocking horse print in soft 100% cotton. A playful everyday essential that coordinates with our mouse collection.",priceAUD:39.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250425_130200_2.jpg?v=1745557494",category:"clothing",collection:"mouse",gender:"unisex",url:"https://fledgeandthread.com.au/products/long-sleeve-bodysuit-mouse-and-rockinghorse",tags:["newborn","baby","clothing"],ageRange:["newborn","baby"],matchingPants:["pants-brown-gingham","pants-oat-stripe","pants-blue-gingham"],productType:"bodysuit"},{id:"dress-blue-floral",name:"Blue Floral dress",description:"Beautiful blue floral dress for special occasions and everyday elegance. Soft cotton, easy to wash, and grows beautifully with your little one.",priceAUD:79.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20240828_134310.jpg?v=1725257175",category:"clothing",collection:"floral",gender:"girl",url:"https://fledgeandthread.c
140om.au/products/blue-floral-dress",tags:["baby","toddler","child","clothing","floral"],rating:5,reviewCount:2,ageRange:["baby","toddler","child"],productType:"dress"},{id:"dress-duck",name:"Duck dress",description:"Adorable duck print dress in soft cotton, perfect for special occasions and everyday wear. Features our signature duck illustration, ideal for toddlers and older children.",priceAUD:79.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20240828_132749.jpg?v=1725256299",category:"clothing",collection:"duck",gender:"girl",url:"https://fledgeandthread.com.au/products/dress-duck",tags:["toddler","child","clothing"],rating:5,reviewCount:3,ageRange:["toddler","child"],productType:"dress"},{id:"dress-teddy-bear",name:"Teddy Bear dress",description:"Charming teddy bear print dress in soft cotton, perfect for special occasions and everyday wear. Features our signature teddy bear illustration, ideal for toddlers and older children.",priceAUD:79.95,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20251008_140316.png?v=1759903418&width=800",category:"clothing",collection:"teddy-bear",gender:"girl",url:"https://fledgeandthread.com.au/products/teddy-bear-dress",tags:["toddler","child","clothing"],rating:5,reviewCount:2,ageRange:["toddler","child"],productType:"dress"},{id:"shirt-shorts-bunny",name:"Shirt and Short Set - Bunny",description:"Lightweight cotton shirt and shorts set featuring our classic bunny print. Perfect for warm weather play, parties, or special occasions. Easy to wash and pairs beautifully with our bunny accessories.",priceAUD:69.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250227_193541.png?v=1740656173",category:"clothing",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/shirt-and-short-set-bunny",tags:["baby","toddler","child","clothing"],rating:5,reviewCount:2,ageRange:["baby","toddler","child"],productType:"shirt-shorts"},{id:"shirt-shorts-duck",name:"Shirt and Short Set - Duck",description:"Charming duck print shirt and shorts in breathable cotton. Ideal for summer days, garden parties, or holiday wear. Coordinates with our duck blankets and accessories for a complete look.",priceAUD:69.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250227_1944082.jpg?v=1740656917",category:"clothing",collection:"duck",gender:"unisex",url:"https://fledgeandthread.com.au/products/shirt-and-short-set-duck",tags:["baby","toddler","child","clothing"],rating:5,reviewCount:2,ageRange:["baby","toddler","child"],productType:"shirt-shorts"},{id:"shirt-shorts-green-stripe",name:"Shirt and Short Set - Green Stripe",description:"Vintage-inspired green stripe shirt and shorts in soft cotton. A timeless wardrobe staple perfect for warm weather outings, family photos, or everyday adventures.",priceAUD:69.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250226_141154.jpg?v=1740570188",category:"clothing",collection:"floral",gender:"unisex",url:"https://fledgeandthread.com.au/products/shirt-and-short-set-green-stripe",tags:["baby","toddler","child","clothing"],rating:5,reviewCount:1,ageRange:["toddler","child"],productType:"shirt-shorts"},{id:"blanket-bunny-floral",name:"Baby Heirloom blanket - Bunny",description:"Made from 100% organic cotton, this lightweight blanket is perfect for warmer months or layering when it's cool. Ideal for prams, car seats, and tummy time.",priceAUD:70,image:"https://fledgeandthread.com.au/cdn/shop/files/078A03423_a278554a-a6a6-4c89-90ff-3e23b567daae_3.jpg?v=1740571959&width=800",category:"blankets",collection:"floral",gender:"unisex",url:"https://fledgeandthread.com.au/products/baby-heirloom-blanket-bunny",tags:["newborn","baby","blankets"],rating:5,reviewCount:5,ageRange:["newborn","baby"]},{id:"blanket-mouse-floral",name:"Baby Heirloom blanket - Mouse",description:"Soft 100% organic cotton blanket, breathable and gentle on delicate skin. Perfect for snuggles, pram covers, and as a lightweight layer in cooler weather.",priceAUD:70,image:"https://fledgeandthread.c
140om.au/cdn/shop/files/078A0348_693c6bb8-d21a-4d88-96c7-a6a2a5af1a82_2.jpg?v=1740571649&width=800",category:"blankets",collection:"floral",gender:"unisex",url:"https://fledgeandthread.com.au/products/baby-heirloom-blanket-mouse",tags:["newborn","baby","blankets"],rating:5,reviewCount:4,ageRange:["newborn","baby"]},{id:"pants-green-stripe",name:"Pants - Green Stripe",description:"Classic striped pants in soft organic cotton. Perfect for everyday wear with a timeless vintage feel.",priceAUD:29.95,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20250424_164829.jpg?v=1745484565&width=800",category:"clothing",collection:"floral",gender:"unisex",url:"https://fledgeandthread.com.au/products/pants-green-stripe",tags:["baby","toddler","child","clothing","pants"],rating:5,reviewCount:1,ageRange:["baby","toddler","child"],productType:"pants"},{id:"pants-oat-stripe",name:"Pants - Oat Stripe",description:"Neutral striped pants in soft organic cotton. A versatile wardrobe staple with vintage charm.",priceAUD:29.95,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20250424_165009.jpg?v=1745484636&width=800",category:"clothing",collection:"floral",gender:"unisex",url:"https://fledgeandthread.com.au/products/pants-oat-stripe",tags:["baby","toddler","child","clothing","pants"],rating:5,reviewCount:1,ageRange:["baby","toddler","child"],productType:"pants"},{id:"pants-blue-gingham",name:"Pants - Blue Gingham",description:"Sweet gingham pants in soft organic cotton. A classic pattern perfect for any occasion.",priceAUD:29.95,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20250424_165129.jpg?v=1745484733&width=800",category:"clothing",collection:"floral",gender:"unisex",url:"https://fledgeandthread.com.au/products/pants-blue-gingham",tags:["baby","toddler","child","clothing","pants"],rating:5,reviewCount:1,ageRange:["baby","toddler","child"],productType:"pants"},{id:"pants-brown-gingham",name:"Pants - Brown Gingham",description:"Warm brown gingham pants in soft organic cotton. Timeless style for everyday adventures.",priceAUD:29.95,image:"https://fledgeandthread.com.au/cdn/shop/files/Photoroom_20250424_165338.jpg?v=1745484849&width=800",category:"clothing",collection:"floral",gender:"unisex",url:"https://fledgeandthread.com.au/products/pants-brown-gingham",tags:["baby","toddler","child","clothing","pants"],rating:5,reviewCount:1,ageRange:["baby","toddler","child"],productType:"pants"},{id:"babygrow-mouse-rockinghorse",name:"Cotton Babygrow - Mouse and Rockinghorse",description:"Cosy 100% cotton babygrow featuring our whimsical mouse and rocking horse print. Full-length for warmth, with snap closures for easy nappy changes. Perfect for bedtime or cosy days at home.",priceAUD:59.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250425_122618_2.jpg?v=1745555244",category:"clothing",collection:"mouse",gender:"unisex",url:"https://fledgeandthread.com.au/products/mouse-and-rockinghorse-babygrow",tags:["newborn","baby","clothing"],ageRange:["newborn","baby"],productType:"babygrow"},{id:"babygrow-bear-berries",name:"Cotton Babygrow - Bear with Berries",description:"Soft 100% cotton babygrow in our popular bear and berries print. Full foot coverage keeps little toes warm. Ideal for autumn and winter, and pairs beautifully with our matching blanket.",priceAUD:59.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250425_113834.jpg?v=1745554970",category:"clothing",collection:"teddy-bear",gender:"unisex",url:"https://fledgeandthread.com.au/products/bear-with-berries-babygrow",tags:["newborn","baby","clothing"],ageRange:["newborn","baby"],productType:"babygrow"},{id:"babygrow-bunny",name:"Cotton Babygrow - Bunny",description:"Sweet bunny print babygrow in breathable 100% cotton. Full-length with covered feet for extra warmth. A lovely choice for newborn gifts or adding to your baby's everyday wardrobe.",priceAUD:59.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20240829_203916.jpg?v=1724935275",category:"clothing",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.c
140om.au/products/bunny-babygrow",tags:["newborn","baby","clothing"],ageRange:["newborn","baby"],productType:"babygrow"},{id:"babygrow-duck",name:"Cotton Babygrow - Duck",description:"Classic duck print babygrow in soft 100% cotton. Perfect for overnight or everyday wear, with snap closures for fuss-free dressing. Coordinates with our duck collection for a complete gift.",priceAUD:59.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20240829_204335.jpg?v=1724935472",category:"clothing",collection:"duck",gender:"unisex",url:"https://fledgeandthread.com.au/products/duck-babygrow",tags:["newborn","baby","clothing"],ageRange:["newborn","baby"],productType:"babygrow"},{id:"babygrow-squirrel",name:"Cotton Babygrow - Squirrel",description:"Charming woodland squirrel print babygrow in cosy 100% cotton. Full-length with foot coverage, perfect for cooler months or layered under a blanket during nap time.",priceAUD:59.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20240829_205318.jpg?v=1724936065",category:"clothing",collection:"woodland",gender:"unisex",url:"https://fledgeandthread.com.au/products/squirrel-babygrow",tags:["newborn","baby","clothing"],ageRange:["newborn","baby"],productType:"babygrow"},{id:"babygrow-duck-cream",name:"Cotton Babygrow - Duck Cream",description:"Elegant cream duck print babygrow in soft 100% cotton. A neutral colour that suits any nursery, perfect for gifting or as a wardrobe essential for newborns.",priceAUD:59.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20240829_204335.jpg",category:"clothing",collection:"duck",gender:"unisex",url:"https://fledgeandthread.com.au/products/duck-cream-babygrow",tags:["newborn","baby","clothing"],ageRange:["newborn","baby"],productType:"babygrow"},{id:"cushion-blue-floral",name:"Blue floral cushion",description:"Soft vintage-style cushion in beautiful blue floral print. Perfect for adding character to a nursing chair, reading nook, or child's bed. A lovely finishing touch for any nursery.",priceAUD:39,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20240525_115321.jpg?v=1716609286",category:"decor",collection:"floral",gender:"unisex",url:"https://fledgeandthread.com.au/products/blue-floral-cushion",tags:["baby","toddler","child","decor","floral"],ageRange:["newborn","baby","toddler","child"]},{id:"cushion-bunny",name:"Bunny cushion",description:"Adorable bunny illustration cushion, perfect for decorating a nursery chair, cot corner, or toddler's reading spot. Coordinates beautifully with our bunny bedding and blankets.",priceAUD:39,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20240829_195251.jpg?v=1724933543",category:"decor",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/bunny-cushion",tags:["baby","toddler","child","decor"],rating:5,reviewCount:1,ageRange:["newborn","baby","toddler","child"]},{id:"cushion-duck",name:"Duck cushion",description:"Sweet duck illustration cushion, ideal for adding charm to a nursing chair, window seat, or child's bedroom. Pairs perfectly with our duck blankets and prints for a coordinated look.",priceAUD:39,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20240829_195251.jpg",category:"decor",collection:"duck",gender:"unisex",url:"https://fledgeandthread.com.au/products/duck-cushion",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"]},{id:"cushion-cream-floral",name:"Cream floral cushion",description:"Elegant cream cushion with delicate floral print. Adds a touch of vintage charm to nurseries, bedrooms, or living spaces. A thoughtful gift for new parents decorating baby's room.",priceAUD:39,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20240525_115321.jpg",category:"decor",collection:"floral",gender:"unisex",url:"https://fledgeandthread.com.au/products/cream-floral-cushion",tags:["baby","toddler","child","decor","floral"],ageRange:["newborn","baby","toddler","child"]},{id:"bootie-bonnet-bow",name:"Bootie and Bonnet set - Bow",description:"Delicate bow design bootie and bonnet set in soft cotton. Perfect for newborn photoshoots, christenings, or as a treasured coming-home outfit. A beautiful gift for baby girls.",priceAUD:59.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/078A41825.jpg?v=1724987743",category:"accessories",collection:"duck",gender:"girl",url:"https://fledgeandthread.c
140om.au/products/bow-bootie-and-bonnet-set",tags:["newborn","baby","accessories"],rating:5,reviewCount:1,ageRange:["newborn","baby"]},{id:"bootie-bonnet-bunny",name:"Bootie and Bonnet set - Bunny",description:"Sweet bunny print bootie and bonnet set, ideal for keeping tiny heads and feet warm. Perfect for pram walks, hospital visits, or as a thoughtful baby shower gift.",priceAUD:59.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/078A41804.jpg?v=1724987901",category:"accessories",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/bootie-and-bonnet-set-bunny",tags:["newborn","baby","accessories"],rating:5,reviewCount:2,ageRange:["newborn","baby"]},{id:"newborn-bundle-bunny",name:"Bunny Newborn Bundle - Save 10%",description:"Complete bunny-themed gift set including babygrow, bonnet, and booties. Everything a newborn needs for cosy days, beautifully coordinated and gift-ready. Save 10% compared to buying separately.",priceAUD:107.9,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/078A1400.jpg?v=1741319642",category:"gift-sets",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/newborn-bundle-bunny",tags:["newborn","baby","gift-sets"],ageRange:["newborn"]},{id:"newborn-bundle-duck",name:"Duck Newborn Bundle - Save 10%",description:"Complete duck-themed gift set with babygrow, bonnet, and booties. A thoughtful, coordinated gift for new arrivals. Perfect for baby showers or welcoming a new baby home.",priceAUD:107.9,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/078A1415.jpg?v=1741320101",category:"gift-sets",collection:"duck",gender:"unisex",url:"https://fledgeandthread.com.au/products/newborn-bundle-duck",tags:["newborn","baby","gift-sets"],ageRange:["newborn"]},{id:"soft-toy-goose-plushie",name:"Goose Plushie Soft Toy",description:"Irresistibly soft and fluffy goose plushie, perfect for cuddles and playtime. A comforting companion for naps, car journeys, or bedtime. Suitable from birth and machine washable.",priceAUD:49,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/078A3757_2.jpg?v=1752209091",category:"toys",collection:"originals",gender:"unisex",url:"https://fledgeandthread.com.au/products/goose-plushie-soft-toy",tags:["newborn","baby","toddler","child","toys"],ageRange:["newborn","baby","toddler","child"]},{id:"soft-toy-goose-boucle",name:"Goose Boucle Soft Toy",description:"Luxurious handmade goose in textured bouclé fabric. A statement nursery piece that doubles as a cuddly companion. Perfect as a christening gift or special keepsake.",priceAUD:109,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/078A3953.jpg?v=1752209059",category:"toys",collection:"originals",gender:"unisex",url:"https://fledgeandthread.com.au/products/goose-boucle-soft-toy",tags:["newborn","baby","toddler","child","toys"],ageRange:["newborn","baby","toddler","child"]},{id:"soft-toy-duck-comforter",name:"Duck comforter",description:"100% cotton muslin duck comforter, perfect for soothing and settling baby. Lightweight and breathable, ideal for little hands to hold. A must-have for nap time and travel.",priceAUD:39,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/078A3593.jpg?v=1752209118",category:"toys",collection:"duck",gender:"unisex",url:"https://fledgeandthread.com.au/products/duck-comforter",tags:["newborn","baby","toddler","toys"],ageRange:["newborn","baby","toddler"]},{id:"soft-toy-long-eared-bunny",name:"Long Eared Bunny",description:"Super-soft plush bunny with adorable long ears, perfect for cuddling and imaginative play. A cherished companion from babyhood through childhood. Makes a thoughtful first birthday gift.",priceAUD:49,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/078A4800.jpg?v=1752207800",category:"toys",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/long-eared-bunny",tags:["baby","toddler","child","toys"],ageRange:["baby","toddler","child"]},{id:"soft-toy-handmade-mouse",name:"Handmade Mouse",description:"Sweet handmade mouse soft toy, perfectly sized for small hands. A gentle companion for nursery rhymes, story time, and imaginative play. Coordinates with our mouse 
140collection.",priceAUD:39,image:"https://fledgeandthread.com.au/cdn/shop/files/078A0883.jpg?v=1709270440&width=800",category:"toys",collection:"mouse",gender:"unisex",url:"https://fledgeandthread.com.au/products/little-mouse",tags:["baby","toddler","child","toys"],ageRange:["baby","toddler","child"]},{id:"change-bag-bunny",name:"Quilted Change Bag - Bunny",description:"Stylish quilted change bag in our classic bunny print. Spacious enough for nappies, wipes, and essentials, yet compact for outings. A practical and beautiful gift for new parents.",priceAUD:29.95,image:"https://fledgeandthread.com.au/cdn/shop/files/078A7356.jpg?v=1761284797&width=800",category:"accessories",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/quilted-change-bag-bunny",tags:["baby","accessories"],rating:5,reviewCount:1,ageRange:["newborn","baby","toddler"]},{id:"change-bag-duck",name:"Quilted Change Bag - Duck",description:"Practical quilted change bag featuring our duck print. Perfect for keeping baby essentials organised during days out. Coordinates beautifully with our duck blankets and clothing.",priceAUD:29.95,image:"https://fledgeandthread.com.au/cdn/shop/files/078A69652.jpg?v=1759559034&width=800",category:"accessories",collection:"duck",gender:"unisex",url:"https://fledgeandthread.com.au/products/quilted-change-bag-duck",tags:["baby","accessories"],ageRange:["newborn","baby","toddler"]},{id:"change-bag-teddy-bear",name:"Quilted Change Bag - Teddy Bear",description:"Adorable quilted change bag featuring our teddy bear print. Spacious enough for nappies, wipes, and essentials, yet compact for outings. Coordinates with our teddy bear collection.",priceAUD:29.95,image:"https://fledgeandthread.com.au/cdn/shop/files/078A6980.jpg?v=1759559095&width=800",category:"accessories",collection:"teddy-bear",gender:"unisex",url:"https://fledgeandthread.com.au/products/quilted-change-bag-teddy-bear",tags:["baby","accessories"],ageRange:["newborn","baby","toddler"]},{id:"quilt-cover-bunny-single",name:"Quilt Cover Set - Bunny Single",description:"Beautiful bunny print quilt cover set for single beds. Soft cotton for comfortable sleep, easy to wash and care for. Perfect for transitioning toddlers to their big bed.",priceAUD:139,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/078A30985.jpg",category:"bedding",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/quilt-cover-set-bunny-single",tags:["toddler","child","bedding"],ageRange:["toddler","child"]},{id:"quilt-cover-bunny-frill-single",name:"Quilt Cover Set - Bunny with Frill Single",description:"Bunny print quilt cover with elegant frill detail, designed for little girls' bedrooms. Soft cotton ensures restful sleep. A lovely bedroom update as they grow.",priceAUD:149,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/078A30985.jpg",category:"bedding",collection:"bunny",gender:"girl",url:"https://fledgeandthread.com.au/products/quilt-cover-set-bunny-with-frill-single",tags:["toddler","child","bedding"],ageRange:["toddler","child"]},{id:"bunny-floral-frame",name:"Bunny in floral with bobbin frame A5",description:"Ready-to-hang bunny print in a charming vintage bobbin frame. A beautiful gift that requires no additional framing. Perfect for nurseries, bedrooms, or creating a gallery wall.",priceAUD:139,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/078A30985.jpg?v=1716528459",category:"decor",collection:"floral",gender:"unisex",url:"https://fledgeandthread.com.au/products/bunny-in-floral-with-bobbin-frame",tags:["baby","toddler","child","decor","floral"],ageRange:["newborn","baby","toddler","child"]},{id:"bunny-stripe-frame-a5",name:"Bunny in Stripe with bobbin frame A5",description:"Classic bunny print with stripe background, beautifully framed in a vintage bobbin frame. Ready to hang immediately, making it an ideal baby shower or christening gift.",priceAUD:139,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/078A3803_6.jpg?v=1719207607",category:"decor",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.c
140om.au/products/bunny-in-stripe-with-bobbin-frame-a5",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"]},{id:"duck-bobbin-frame-a6",name:"Duck in Bobbin frame A6",description:"Petite duck print in a vintage bobbin frame, perfect for small spaces, shelves, or grouped with other artwork. A thoughtful gift that arrives ready to display.",priceAUD:129,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/078A30985.jpg",category:"decor",collection:"duck",gender:"unisex",url:"https://fledgeandthread.com.au/products/duck-in-bobbin-frame",tags:["baby","toddler","child","decor"],ageRange:["newborn","baby","toddler","child"]},{id:"organic-cotton-blanket",name:"Baby Blanket - Organic Cotton",description:"Super soft 100% organic cotton baby blanket. Gentle on sensitive skin, perfect for swaddling, tummy time, or as a pram cover. Breathable for year-round use and machine washable.",priceAUD:59,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/IMG_1157.jpg",category:"blankets",collection:"originals",gender:"unisex",url:"https://fledgeandthread.com.au/products/baby-blanket-organic-cotton",tags:["newborn","baby","toddler","blankets"],ageRange:["newborn","baby","toddler"]},{id:"long-sleeve-top-bear",name:"Long sleeve top - Bear",description:"Soft cotton long sleeve top featuring our hand-illustrated bear print. Perfect for cooler days, layering under dungarees, or pairing with trousers for a complete outfit.",priceAUD:39.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250425_112055.jpg?v=1745551561",category:"clothing",collection:"teddy-bear",gender:"unisex",url:"https://fledgeandthread.com.au/products/long-sleeve-top-bear",tags:["baby","toddler","child","clothing"],ageRange:["baby","toddler","child"]},{id:"long-sleeve-top-mouse",name:"Long sleeve top - Mouse",description:"Cosy cotton long sleeve top with charming hand-illustrated mouse print. Ideal for nursery days, weekend adventures, or casual playdates. Pairs beautifully with our mouse collection.",priceAUD:39.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250425_112426.jpg?v=1745551605",category:"clothing",collection:"mouse",gender:"unisex",url:"https://fledgeandthread.com.au/products/long-sleeve-top-mouse",tags:["baby","toddler","child","clothing"],ageRange:["baby","toddler","child"]},{id:"long-sleeve-top-bear-berries",name:"Long sleeve top - Bear with Berries",description:"Sweet bear and berries print long sleeve top in soft cotton. A versatile wardrobe staple for autumn and winter. Coordinates with our matching babygrow and blanket.",priceAUD:39.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250425_112316.jpg?v=1745551646",category:"clothing",collection:"teddy-bear",gender:"unisex",url:"https://fledgeandthread.com.au/products/long-sleeve-top-bear-with-berries",tags:["baby","toddler","child","clothing"],ageRange:["baby","toddler","child"]},{id:"long-sleeve-top-mouse-rockinghorse",name:"Long sleeve top - Mouse and Rockinghorse",description:"Whimsical mouse and rocking horse print long sleeve top. Soft cotton for all-day comfort, perfect for play, outings, or everyday wear.",priceAUD:39.95,image:"https://cdn.shopify.com/s/files/1/0706/0013/0875/files/Photoroom_20250425_112218.jpg?v=1745551676",category:"clothing",collection:"mouse",gender:"unisex",url:"https://fledgeandthread.com.au/products/long-sleeve-top-mouse-and-rockinghorse",tags:["baby","toddler","child","clothing"],ageRange:["baby","toddler","child"]},{id:"soft-toy-bunny",name:"Long Eared Bunny",description:"An irresistibly cuddly bunny with long floppy ears and a sweet ribbon. This soft plushie makes the perfect first companion for any little one.",priceAUD:49,image:"https://fledgeandthread.com.au/cdn/shop/files/078A4800.jpg?v=1752207800&width=800",category:"toys",collection:"bunny",gender:"unisex",url:"https://fledgeandthread.com.au/products/long-eared-bunny",tags:["newborn","baby","toddler","child","toys"],ageRange:["newborn","baby","toddler","child"],inStock:!0},{id:"soft-toy-teddy",name:"Teddy Bear Plushie",description:"A beautifully soft teddy bear with a charming ribbon bow. This cuddly companion is perfect for snuggles and makes a treasured gift for any occasion.",priceAUD:49,image:"https://fledgeandthread.c
140om.au/cdn/shop/files/078A47822_f3639b9e-a6c8-41c8-a023-3c3e7ce89c6c.jpg?v=1752208284&width=800",category:"toys",collection:"teddy-bear",gender:"unisex",url:"https://fledgeandthread.com.au/products/teddy-bear-plushie",tags:["newborn","baby","toddler","child","toys"],rating:5,reviewCount:2,ageRange:["newborn","baby","toddler","child"],inStock:!0},{id:"soft-toy-goose",name:"Goose Plushie Soft Toy",description:"An adorable goose plushie with a sweet gingham ribbon. This charming soft toy is perfect for little ones who love our duck collection.",priceAUD:49,image:"https://fledgeandthread.com.au/cdn/shop/files/078A3757_2.jpg?v=1752209091&width=800",category:"toys",collection:"duck",gender:"unisex",url:"https://fledgeandthread.com.au/products/goose-plushie-soft-toy",tags:["newborn","baby","toddler","child","toys"],ageRange:["newborn","baby","toddler","child"],inStock:!0}];function _M(e){let t=[...Pr].filter(p=>p.inStock!==!1);e.recipient&&(t=t.filter(p=>p.ageRange?p.ageRange.includes(e.recipient):!0));const n=e.recipient==="newborn"||e.recipient==="baby",r=e.recipient==="toddler"||e.recipient==="child";if(n&&(t=t.filter(p=>!(p.id.includes("shirt-shorts")||p.id.includes("dress")))),r&&(t=t.filter(p=>!(p.id.includes("babygrow")||p.id.includes("romper")||p.id.includes("bodysuit")||p.id.includes("gift-")||p.category==="gift-sets"||p.id.includes("bootie")||p.id.includes("bonnet")||p.id.includes("bundle")||p.id.includes("bib")||p.id.includes("stretch-wrap")||p.id.includes("swaddle")))),e.gender==="boy"&&(t=t.filter(p=>!p.id.includes("dress"))),e.giftType){const w={clothing:["clothing","accessories"],blankets:["blankets","bedding"],toy:["toys"],decor:["decor"],"gift-sets":["gift-sets"]}[e.giftType]||[];w.length>0&&(t=t.filter(m=>w.includes(m.category)))}const o={"under-50":[0,50],"50-100":[50,100],"100-150":[100,150],"150-plus":[150,1e3]},i=e.budget?o[e.budget]:void 0,s=p=>{let w=0;return e.gender&&p.gender!=="unisex"&&(p.gender===e.gender?w+=20:w-=30),e.collection&&p.collection===e.collection&&(w+=15),p.rating&&(w+=p.rating*2),p.reviewCount&&(w+=Math.min(p.reviewCount,5)),w},a=p=>{const w=p.id.toLowerCase();return w.includes("babygrow")?"babygrow":w.includes("romper")?"romper":w.includes("bodysuit")?"bodysuit":w.includes("bootie")||w.includes("bonnet")?"bootie-bonnet":w.includes("bib")?"bib":w.includes("blanket")?"blanket":w.includes("shirt-shorts")?"shirt-shorts":w.includes("dress")?"dress":w.includes("cushion")?"cushion":w.includes("gift-box")||w.includes("gift-bunny")||w.includes("gift-duck")?"gift-box":w.includes("print-")?"print":w.includes("painting")||w.includes("a5-")?"painting":w.includes("top-")?"top":p.category},l=(p,w,m=new Set)=>{const g=[],y=new Set(m);for(const{product:b}of p){if(g.length>=w)break;const k=a(b);y.has(k)||(g.push(b),y.add(k))}return g};e.collection&&(t=t.filter(p=>p.collection===e.collection));let c=t;if(i){const[p,w]=i;c=t.filter(m=>e.budget!=="150-plus"&&m.isOriginalArt?!1:m.priceAUD>=p&&m.priceAUD<=w)}const u=c.map(p=>({product:p,score:s(p)})).sort((p,w)=>w.score-p.score);let d=l(u,3);const f=d.length;if(d.length<3&&e.collection&&i){const p=new Set(d.map(b=>b.id)),w=new Set(d.map(b=>a(b))),[m]=i,g=t.filter(b=>b.collection===e.collection).filter(b=>!p.has(b.id)).filter(b=>b.priceAUD<m).filter(b=>!b.isOriginalArt||e.budget==="150-plus").map(b=>({product:b,score:b.priceAUD*100+s(b)})).sort((b,k)=>k.score-b.score),y=l(g,3-d.length,w);d=[...d,...y]}if(d.length<3&&r&&e.collection){const p=new Set(d.map(b=>b.id)),w=new Set(d.map(b=>a(b))),g=[...Pr].filter(b=>b.inStock!==!1).filter(b=>!p.has(b.id)).filter(b=>b.category==="toys"||b.id.includes("soft-toy")||b.id.includes("goose")).filter(b=>b.collection===e.collection).filter(b=>!b.isOriginalArt||e.budget==="150-plus").map(b=>({product:b,score:s(b)+10})).sort((b,k)=>k.score-b.score),y=l(g,3-d.length,w);d=[...d,...y]}const h=p=>!!(p.id.includes("babygrow")||p.id.includes("romper")||p.id.includes("bodysuit")||p.id.includes("gift-")||p.category==="gift-sets"||p.id.includes("bootie")||p.id.includes("bonnet")||p.id.includes("bundle")||p.id.includes("bib")||p.id.includes("stretch-wrap")||p.id.includes("swaddle"));if(d.length<3&&e.collection){const p=new Set(d.map(b=>b.id)),w=new Set(d.map(b=>a(b))),g=[...Pr].filter(b=>b.inStock!==!1).filter(b=>b.collection===e.collection).filter(b=>!p.has(b.id)).filter(b=>
140!b.isOriginalArt||e.budget==="150-plus").filter(b=>!e.recipient||!b.ageRange||b.ageRange.includes(e.recipient)).filter(b=>!r||!h(b)).map(b=>({product:b,score:b.priceAUD+s(b)})).sort((b,k)=>k.score-b.score),y=l(g,3-d.length,w);d=[...d,...y]}if(d.length<3){const p=new Set(d.map(b=>b.id)),w=new Set(d.map(b=>a(b))),g=[...Pr].filter(b=>b.inStock!==!1).filter(b=>!p.has(b.id)).filter(b=>!b.isOriginalArt||e.budget==="150-plus").filter(b=>{var k;return e.recipient&&((k=b.ageRange)==null?void 0:k.includes(e.recipient))}).filter(b=>!r||!h(b)).map(b=>({product:b,score:s(b)})).sort((b,k)=>k.score-b.score),y=l(g,3-d.length,w);d=[...d,...y]}if(d.length<3){const p=new Set(d.map(b=>b.id)),w=new Set(d.map(b=>a(b))),g=[...Pr].filter(b=>b.inStock!==!1).filter(b=>!p.has(b.id)).filter(b=>!b.isOriginalArt).filter(b=>b.category!=="decor").filter(b=>!r||!h(b)).map(b=>({product:b,score:s(b)+(b.rating||0)*5})).sort((b,k)=>k.score-b.score),y=l(g,3-d.length,w);d=[...d,...y]}if(n&&(!e.giftType||e.giftType==="clothing")&&!d.some(w=>w.id.includes("babygrow"))){const m=t.filter(g=>g.id.includes("babygrow")).filter(g=>e.collection?g.collection===e.collection:!0).sort((g,y)=>(y.rating||0)-(g.rating||0))[0];m&&(d=d.filter(g=>g.id!==m.id).slice(0,2),d.push(m))}return f===0&&(d=d.map(p=>({...p,isFallback:!0}))),d}function OM({currentStep:e,totalSteps:t}){const n=(e+1)/t*100;return S.jsxs("div",{className:"w-full max-w-md mx-auto mb-8",children:[S.jsxs("div",{className:"flex justify-between items-center mb-2",children:[S.jsxs("span",{className:"text-sm text-muted-foreground font-body",children:["Question ",e+1," of ",t]}),S.jsxs("span",{className:"text-sm text-muted-foreground font-body",children:[Math.round(n),"%"]})]}),S.jsx("div",{className:"h-2 bg-secondary rounded-full overflow-hidden",children:S.jsx(te.div,{className:"h-full bg-primary rounded-full",initial:{width:0},animate:{width:`${n}%`},transition:{duration:.5,ease:"easeOut"}})})]})}function IM({option:e,isSelected:t,onSelect:n,index:r}){return S.jsx(te.button,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4,delay:r*.1},onClick:()=>n(e.id),className:Et("w-full p-5 rounded-xl border-2 transition-all duration-300 text-left group","hover:border-primary/60 hover:shadow-md hover:-translate-y-1",t?"border-primary bg-primary/5 shadow-lg":"border-border bg-card/50"),children:S.jsxs("div",{className:"flex items-start gap-4",children:[S.jsx("span",{className:"text-3xl group-hover:scale-110 transition-transform duration-300",children:e.icon}),S.jsxs("div",{className:"flex-1",children:[S.jsx("h3",{className:"font-display text-xl font-medium text-foreground mb-1",children:e.label}),e.description&&S.jsx("p",{className:"text-sm text-muted-foreground font-body",children:e.description})]}),S.jsx("div",{className:Et("w-6 h-6 rounded-full border-2 flex items-center justify-center transition-all duration-300",t?"border-primary bg-primary":"border-muted-foreground/30"),children:t&&S.jsx(te.svg,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:30},className:"w-3 h-3 text-primary-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})})]})})}function FM({question:e,selectedAnswer:t,onAnswer:n}){return S.jsx(wh,{mode:"wait",children:S.jsxs(te.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},exit:{opacity:0,x:-50},transition:{duration:.4,ease:"easeOut"},className:"w-full",children:[S.jsxs("div",{className:"text-center mb-8",children:[S.jsx(te.h2,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{delay:.1},className:"font-display text-3xl md:text-4xl font-medium text-foreground mb-2",children:e.question}),e.subtitle&&S.jsx(te.p,{initial:{opacity:0}
140,animate:{opacity:1},transition:{delay:.2},className:"text-muted-foreground font-body",children:e.subtitle})]}),S.jsx("div",{className:"grid gap-3 max-w-lg mx-auto",children:e.options.map((r,o)=>S.jsx(IM,{option:r,isSelected:t===r.id,onSelect:n,index:o},r.id))})]},e.id)})}const BM=qv("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),at=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?eC:"button";return S.jsx(s,{className:Et(BM({variant:t,size:n,className:e})),ref:i,...o})});at.displayName="Button";function VM(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ql="Checkbox",[UM,Pj]=Ss(Ql),[$M,Ah]=UM(Ql);function zM(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:s,name:a,onCheckedChange:l,required:c,value:u="on",internal_do_not_use_render:d}=e,[f,h]=Rv({prop:n,defaultProp:o??!1,onChange:l,caller:Ql}),[x,p]=v.useState(null),[w,m]=v.useState(null),g=v.useRef(!1),y=x?!!s||!!x.closest("form"):!0,b={checked:f,disabled:i,setChecked:h,control:x,setControl:p,name:a,form:s,value:u,hasConsumerStoppedPropagationRef:g,required:c,defaultChecked:sr(o)?!1:o,isFormControl:y,bubbleInput:w,setBubbleInput:m};return S.jsx($M,{scope:t,...b,children:WM(d)?d(b):r})}var Y1="CheckboxTrigger",q1=v.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:s,disabled:a,checked:l,required:c,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:h,bubbleInput:x}=Ah(Y1,e),p=dt(o,u),w=v.useRef(l);return v.useEffect(()=>{const m=i==null?void 0:i.form;if(m){const g=()=>d(w.current);return m.addEventListener("reset",g),()=>m.removeEventListener("reset",g)}},[i,d]),S.jsx(_e.button,{type:"button",role:"checkbox","aria-checked":sr(l)?"mixed":l,"aria-required":c,"data-state":tx(l),"data-disabled":a?"":void 0,disabled:a,value:s,...r,ref:p,onKeyDown:Se(t,m=>{m.key==="Enter"&&m.preventDefault()}),onClick:Se(n,m=>{d(g=>sr(g)?!0:!g),x&&h&&(f.current=m.isPropagationStopped(),f.current||m.stopPropagation())})})});q1.displayName=Y1;var Dh=v.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:s,disabled:a,value:l,onCheckedChange:c,form:u,...d}=e;return S.jsx(zM,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:a,required:s,onCheckedChange:c,name:r,form:u,value:l,internal_do_not_use_render:({isFormControl:f})=>S.jsxs(S.Fragment,{children:[S.jsx(q1,{...d,ref:t,__scopeCheckbox:n}),f&&S.jsx(ex,{__scopeCheckbox:n})]})})});Dh.displayName=Ql;var X1="CheckboxIndicator",Z1=v.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Ah(X1,n);return S.jsx(Dl,{present:r||sr(i.checked)||i.checked===!0,children:S.jsx(_e.span,{"data-state":tx(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Z1.displayName=X1;var J1="CheckboxBubbleInput",ex=v.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:s,required:a,disabled:l,name:c,value:u,form:d,bubbleInput:f,setBubbleInput:h}=Ah(J1,e),x=dt(n,h),p=VM(i),w=Sw(r);v.useEffect(()=>{const g=f;if(!g)return;const y=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(y,"checked").set,C=!o.current;if(p!==i&&k){const E=new Event("click",{bubbles:C});g.indeterminate=sr(i),k.call(g,sr(i)?!1:i),g.dispatchEvent(E)}},[f,p,i,o]);const m=v.useRef(sr(i)?!1:i);return S.jsx(_e.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??m.current,required:a,disabled:l,name:c,value:u,form:d,...t,tabIndex:-1,ref:x,style:{...t.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});ex.displayName=J1;function WM(e){return typeof e=="function"}function sr(e){return e==="indeterminate"}function tx(e){return sr(e)?"indeterminate":e?"checked":"unchecked"}const nx=v.forwardRef(({className:e,...t},n)=>S.jsx(Dh,{ref:n,className:Et("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:S.jsx(Z1,{className:Et("flex items-center justify-center text-current"),children:S.jsx(Mf,{className:"h-4 w-4"})})}));nx.displayName=Dh.displayName;const Nd={AU:"AUD",US:"USD",GB:"GBP",CA:"CAD",NZ:"NZD",DE:"EUR",FR:"EUR",ES:"EUR",IT:"EUR",NL:"EUR",BE:"EUR",AT:"EUR",IE:"EUR",PT:"EUR",FI:"EUR",GR:"EUR",JP:"JPY",CN:"CNY",KR:"KRW",SG:"SGD",HK:"HKD",IN:"INR",MY:"MYR",TH:"THB",PH:"PHP",ID:"IDR",VN:"VND",AE:"AED",SA:"SAR",ZA:"ZAR",CH:"CHF",SE:"SEK",NO:"NOK",DK:"DKK",PL:"PLN",CZ:"CZK",HU:"HUF",RO:"RON",RU:"RUB",BR:"BRL",MX:"MXN",AR:"ARS",CL:"CLP",CO:"COP",PE:"PEN",TR:"TRY",IL:"ILS",EG:"EGP",NG:"NGN",KE:"KES",PK:"PKR",BD:"BDT",TW:"TWD"},eu={"en-AU":"AUD","en-US":"USD","en-GB":"GBP","en-CA":"CAD","en-NZ":"NZD","de-DE":"EUR","fr-FR":"EUR","es-ES":"EUR","it-IT":"EUR","ja-JP":"JPY","zh-CN":"CNY","ko-KR":"KRW","en-SG":"SGD","en-HK":"HKD","en-IN":"INR"};async function HM(){try{const e=localStorage.getItem("user_country");if(e){const n=Nd[e];if(n)return n}const t=await fetch("https://ipapi.co/json/",{signal:AbortSignal.timeout(3e3)});if(t.ok){const r=(await t.json()).country_code;if(r){localStorage.setItem("user_country",r);const o=Nd[r];if(o)return o}}}catch{console.log("Geolocation detection failed, using locale fallback")}return rx()}function Yg(){const e=localStorage.getItem("user_country");if(e){const t=Nd[e];if(t)return t}return rx()}function rx(){try{const e=navigator.language||"en-AU";if(eu[e])return eu[e];const t=e.split("-")[0],n=Object.entries(eu).find(([r])=>r.startsWith(t+"-"));
140return n?n[1]:"AUD"}catch{return"AUD"}}function GM(e,t){try{return`${new Intl.NumberFormat("en-US",{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:2,currencyDisplay:"narrowSymbol"}).format(e)} ${t}`}catch{return`$${e.toFixed(2)} ${t}`}}function ox(){const[e,t]=v.useState(()=>Yg()),[n,r]=v.useState({AUD:1}),[o,i]=v.useState(!0);v.useEffect(()=>{(async()=>{const[c,u]=await Promise.all([HM().catch(()=>Yg()),fetch("https://api.frankfurter.app/latest?from=AUD").then(d=>d.ok?d.json():null).catch(()=>null)]);t(c),u!=null&&u.rates&&r({AUD:1,...u.rates}),i(!1)})()},[]);const s=l=>{if(e==="AUD")return l;const c=n[e];return c?l*c:l};return{currency:e,setCurrency:t,convert:s,format:l=>{const c=s(l);return GM(c,e)},isLoading:o,rates:n}}function ix({rating:e,reviewCount:t,size:n="sm"}){const r=n==="sm"?"w-3.5 h-3.5":"w-4 h-4";return S.jsxs("div",{className:"flex items-center gap-1",children:[S.jsx("div",{className:"flex",children:[1,2,3,4,5].map(o=>{const i=Math.min(Math.max(e-o+1,0),1)*100;return S.jsxs("div",{className:"relative",children:[S.jsx(om,{className:`${r} text-muted-foreground/30`}),S.jsx("div",{className:"absolute inset-0 overflow-hidden",style:{width:`${i}%`},children:S.jsx(om,{className:`${r} text-amber-400 fill-amber-400`})})]},o)})}),t!==void 0&&S.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",t,")"]})]})}const KM="fledgeandthread.com.au",QM="1c530241755d11bb5aaca77f45c88115",YM="2024-01",qM=`https://${KM}/api/${YM}/graphql.json`;async function Ms(e,t){var o;const n=await fetch(qM,{method:"POST",headers:{"Content-Type":"application/json","X-Shopify-Storefront-Access-Token":QM},body:JSON.stringify({query:e,variables:t})});if(!n.ok)throw new Error(`Shopify API error: ${n.statusText}`);const r=await n.json();if(r.errors)throw console.error("Shopify GraphQL errors:",r.errors),new Error(((o=r.errors[0])==null?void 0:o.message)||"GraphQL error");return r.data}function Nh(e){const t=e.match(/\/products\/([^/?#]+)/);return t?t[1]:null}async function XM(e){var n;const t=`
141    query getProductByHandle($handle: String!) {
142      productByHandle(handle: $handle) {
143        variants(first: 20) {
144          edges {
145            node {
146              id
147              title
148              availableForSale
149              price {
150                amount
151                currencyCode
152              }
153            }
154          }
155        }
156      }
157    }
158  `;try{return((n=(await Ms(t,{handle:e})).productByHandle)==null?void 0:n.variants.edges.map(o=>({id:o.node.id,title:o.node.title,availableForSale:o.node.availableForSale,price:o.node.price.amount})))||[]}catch(r){return console.error("Error fetching variants:",r),[]}}async function sx(e){var n,r;const t=`
159    query getProductByHandle($handle: String!) {
160      productByHandle(handle: $handle) {
161        variants(first: 1) {
162          edges {
163            node {
164              id
165            }
166          }
167        }
168      }
169    }
170  `;try{return((r=(n=(await Ms(t,{handle:e})).productByHandle)==null?void 0:n.variants.edges[0])==null?void 0:r.node.id)||null}catch(o){return console.error("Error fetching variant ID:",o),null}}async function fs(){const e=`
171    mutation cartCreate {
172      cartCreate {
173        cart {
174          id
175          checkoutUrl
176        }
177        userErrors {
178          field
179          message
180        }
181      }
182    }
183  `;try{const t=await Ms(e);return t.cartCreate.userErrors.length>0?(console.error("Cart creation errors:",t.cartCreate.userErrors),null):t.cartCreate.cart?{cartId:t.cartCreate.cart.id,checkoutUrl:t.cartCreate.cart.checkoutUrl}:null}catch(t){return console.error("Error creating cart:",t),null}}async function qg(e,t,n=1){const r=`
184    mutation cartLinesAdd($cartId: ID!, $lines: [CartLineInput!]!) {
185      cartLinesAdd(cartId: $cartId, lines: $lines) {
186        cart {
187          id
188          checkoutUrl
189        }
190        userErrors {
191          field
192          message
193        }
194      }
195    }
196  `;try{const o=await Ms(r,{cartId:e,lines:[{merchandiseId:t,quantity:n}]});return o.cartLinesAdd.userErrors.length>0?(console.error("Add to cart errors:",o.cartLinesAdd.userErrors),null):o.cartLinesAdd.cart?{checkoutUrl:o.cartLinesAdd.cart.checkoutUrl}:null}catch(o){return console.error("Error adding to cart:",o),null}}async function Md(e,t){const n=`
197    mutation cartLinesAdd($cartId: ID!, $lines: [CartLineInput!]!) {
198      cartLinesAdd(cartId: $cartId, lines: $lines) {
199        cart {
200          id
201          checkoutUrl
202        }
203        userErrors {
204          field
205          message
206        }
207      }
208    }
209  `;try{const r=t.map(i=>({merchandiseId:i,quantity:1})),o=await Ms(n,{cartId:e,lines:r});return o.cartLinesAdd.userErrors.length>0?(console.error("Add to cart errors:",o.cartLinesAdd.userErrors),null):o.cartLinesAdd.cart?{checkoutUrl:o.cartLinesAdd.cart.checkoutUrl}:null}catch(r){return console.error("Error adding multiple items to cart:",r),null}}const ax="shopify_cart_id",lx="shopify_variant_id:";function Mh(){return typeof window>"u"?null:localStorage.getItem(ax)}function hs(e){typeof window>"u"||localStorage.setItem(ax,e)}function cx(e){if(typeof window>"u")return null;try{return localStorage.getItem(`${lx}${e}`)}catch{return null}}function ZM(e,t){if(!(typeof window>"u"))try{localStorage.setItem(`${lx}${e}`,t)}catch{}}async function jh(e){const t=cx(e);if(t)return t;const n=await sx(e);return n&&ZM(e,n),n}async function JM(e){const t=e.map(n=>Nh(n)).filter(n=>!!n).filter(n=>!cx(n));t.length!==0&&await Promise.all(t.map(n=>jh(n)))}async function ej(e){try{const t=Nh(e);if(!t)return{success:!1,error:"Invalid product URL"};const n=await jh(t);if(!n)return{success:!1,error:"Product not found"};let r=Mh();if(!r){const i=await fs();if(!i)return{success:!1,error:"Failed to create cart"};r=i.cartId,hs(r)}const o=await qg(r,n);if(!o){const i=await fs();if(!i)return{success:!1,error:"Failed to create cart"};r=i.cartId,hs(r);const s=await qg(r,n);return s?{success:!0,checkoutUrl:s.checkoutUrl}:{success:!1,error:"Failed to add item to cart"}}return{success:!0,checkoutUrl:o.checkoutUrl}}catch(t){return console.error("Error adding to Shopify cart:",t),{success:!1,error:t instanceof Error?t.message:"Unknown error"}}}async function ux(e){try{const t=e.map(s=>Nh(s)).filter(s=>!!s),r=(await Promise.all(t.map(s=>jh(s)))).filter(s=>!!s);if(r.length===0)return{success:!1,error:"No valid products found",addedCount:0};let o=Mh();if(!o){const s=await fs();if(!s)return{success:!1,error:"Failed to create cart",addedCount:0};o=s.cartId,hs(o)}const i=await Md(o,r);if(!i){const s=await fs();if(!s)return{success:!1,error:"Failed to create cart",addedCount:0};o=s.cartId,hs(o);const a=await Md(o,r);return a?{success:!0,checkoutUrl:a.checkoutUrl,addedCount:r.length}:{success:!1,error:"Failed to add items to cart",addedCount:0}}return{success:!0,checkoutUrl:i.checkoutUrl,addedCount:r.length}}catch(t){return console.error("Error adding multiple products to Shopify cart:",t),{success:!1,error:t instanceof Error?t.message:"Unknown error",addedCount:0}}}
209const tj="https://fledgeandthread.com.au/products/gift-wrap";function nj({productName:e,checkoutUrl:t,onComplete:n,onSkip:r}){const[o,i]=v.useState(!1),[s,a]=v.useState(!1),l=f=>{var x,p;if(!f)return;if((()=>{try{return window.parent&&window.parent!==window}catch{return!0}})()){try{if(window.open(f,"_top"))return}catch{}try{(x=window.parent)==null||x.postMessage({type:"GIFT_QUIZ_NAVIGATE",url:f},"*");return}catch{}try{(p=window.top)==null||p.location.assign(f);return}catch{}}try{window.location.assign(f)}catch{window.open(f,"_blank","noopener,noreferrer")}},c=async()=>{i(!0);try{const f=await ej(tj);f.success?(Me({title:"Gift wrapping added!",description:"Your gift will be beautifully wrapped."}),i(!1),a(!0),l(f.checkoutUrl||t)):(Me({title:"Couldn't add gift wrapping",description:"Please add it manually at checkout.",variant:"destructive"}),i(!1),a(!0),l(t))}catch{Me({title:"Error",description:"Something went wrong. Proceeding to checkout.",variant:"destructive"}),i(!1),a(!0),l(t)}},u=()=>{a(!0),l(t)},d=()=>{r()};return S.jsx(te.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm p-4",children:S.jsxs(te.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-card rounded-2xl shadow-2xl max-w-md w-full p-6 relative",children:[S.jsx("button",{onClick:d,className:"absolute top-4 right-4 text-muted-foreground hover:text-foreground transition-colors",children:S.jsx(jl,{className:"w-5 h-5"})}),s?S.jsxs("div",{className:"text-center py-8",children:[S.jsx(Gr,{className:"w-10 h-10 text-primary animate-spin mx-auto mb-4"}),S.jsx("p",{className:"text-lg font-medium text-foreground",children:"Taking you to checkout..."}),S.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Please wait"})]}):S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"text-center mb-6",children:[S.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-4",children:S.jsx(Ac,{className:"w-8 h-8 text-primary"})}),S.jsx("h2",{className:"font-display text-2xl font-semibold text-foreground mb-2",children:"Add Gift Wrapping?"}),S.jsxs("p",{className:"text-muted-foreground",children:[S.jsx("span",{className:"font-medium text-foreground",children:e})," has been added to your cart!"]})]}),S.jsx("div",{className:"bg-secondary/50 rounded-xl p-4 mb-6",children:S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center",children:S.jsx(Ac,{className:"w-6 h-6 text-primary"})}),S.jsxs("div",{children:[S.jsx("p",{className:"font-medium text-foreground",children:"Gift Wrapping"}),S.jsx("p",{className:"text-sm text-muted-foreground",children:"Hand-wrapped with love"})]})]}),S.jsx("p",{className:"font-display text-xl font-medium text-primary",children:"$5.00 AUD"})]})}),S.jsxs("div",{className:"space-y-3",children:[S.jsx(at,{onClick:c,disabled:o,className:"w-full gap-2",size:"lg",children:o?S.jsxs(S.Fragment,{children:[S.jsx(Gr,{className:"w-4 h-4 animate-spin"}),"Adding..."]}):S.jsxs(S.Fragment,{children:[S.jsx(Ac,{className:"w-4 h-4"}),"Yes, Add Gift Wrapping (+$5)"]})}),S.jsxs(at,{onClick:u,variant:"outline",className:"w-full gap-2",size:"lg",children:[S.jsx(Jv,{className:"w-4 h-4"}),"No Thanks, Checkout Now"]}),S.jsx("button",{onClick:d,className:"w-full text-sm text-muted-foreground hover:text-foreground transition-colors py-2",children:"Continue Shopping"})]})]})]})})}const rj="fledgeandthread.com.au",oj="1c530241755d11bb5aaca77f45c88115",ij="2024-01",sj=`https://${rj}/api/${ij}/graphql.json`;async function aj(e,t){var o;const n=await fetch(sj,{method:"POST",headers:{"Content-Type":"application/json","X-Shopify-Storefront-Access-Token":oj},body:JSON.stringify({query:e,variables:t})});if(!n.ok)throw new Error(`Shopify API error: ${n.statusText}`);const r=await n.json();if(r.errors)throw console.error("Shopify GraphQL errors:",r.errors),new Error(((o=r.errors[0])==null?void 0:o.message)||"GraphQL error");return r.data}function tu(e){const t=e.match(/\/products\/([^/?#]+)/);return t?t[1]:null}async function dx(e){const t=new Map,n=30;for(let r=0;r<e.length;r+=n){const s=`
210      query getProductsByHandleBatch @inContext(country: AU) {
211        ${e.slice(r,r+n).map((l,c)=>{const u=JSON.stringify(l);return`p${c}: product(handle: ${u}) {
212          handle
213          availableForSale
214          variants(first: 50) {
215            edges {
216              node {
217                availableForSale
218                price {
219                  amount
220                  currencyCode
221                }
222              }
223            }
224          }
225        }`}).join(`
226`)}
227      }
228    `,a=await aj(s);
228Object.values(a).forEach(l=>{var h,x;if(!l)return;const c=l.variants.edges.map(p=>p.node),u=c.some(p=>p.availableForSale),d=c.find(p=>p.availableForSale)??c[0],f=(h=d==null?void 0:d.price)!=null&&h.amount?parseFloat(d.price.amount):void 0;t.set(l.handle,{handle:l.handle,inStock:!!(l.availableForSale&&u),price:f,currencyCode:(x=d==null?void 0:d.price)==null?void 0:x.currencyCode})})}return t}function lj(e){const[t,n]=v.useState(new Map),[r,o]=v.useState(!0),[i,s]=v.useState(!1),[a,l]=v.useState(null),c=v.useCallback(async()=>{o(!0),l(null);try{const f=e.map(x=>tu(x.url)).filter(x=>x!==null);if(f.length===0){s(!0);return}const h=await dx(f);n(h),s(!0)}catch(f){console.error("Error fetching stock data:",f),l(f instanceof Error?f.message:"Failed to fetch stock data"),s(!1)}finally{o(!1)}},[e]);v.useEffect(()=>{c()},[c]);const u=e.filter(f=>{const h=tu(f.url);if(!h)return!0;if(!i){const p=t.get(h);return p?p.inStock:f.inStock!==!1}const x=t.get(h);return x?x.inStock:!1}),d=e.map(f=>{const h=tu(f.url);if(!h)return f;const x=t.get(h);return x?{...f,inStock:x.inStock,priceAUD:x.price??f.priceAUD}:i?{...f,inStock:!1}:f});return{inStockProducts:u,productsWithStock:d,isLoading:r,error:a,refetch:c}}function cj({selectedProducts:e,checkoutUrl:t,onComplete:n,onSkip:r}){const{format:o}=ox(),[i,s]=v.useState(new Set),[a,l]=v.useState(!1),c=new Set(e.map(k=>k.collection).filter(Boolean)),u=new Set(e.map(k=>k.id)),d=new Set(e.flatMap(k=>k.matchingPants||[])),f=new Set,h=Pr.filter(k=>f.has(k.id)||u.has(k.id)||k.inStock===!1||!d.has(k.id)?!1:(f.add(k.id),!0)),x=Pr.filter(k=>f.has(k.id)||u.has(k.id)||k.inStock===!1||!k.collection||!c.has(k.collection)?!1:(f.add(k.id),!0)),p=[...h,...x].slice(0,20),{inStockProducts:w}=lj(p),m=w.filter(k=>k.priceAUD<100).slice(0,6);v.useEffect(()=>{if(m.length>0){const k=m.map(C=>C.url);JM(k)}},[m]);const g=k=>{s(C=>{const E=new Set(C);return E.has(k)?E.delete(k):E.add(k),E})},y=m.filter(k=>i.has(k.id)).reduce((k,C)=>k+C.priceAUD,0),b=async()=>{if(i.size===0){r();return}l(!0);try{const k=m.filter(E=>i.has(E.id)).map(E=>E.url),C=await ux(k);C.success&&C.checkoutUrl?(Me({title:"Add-ons added!",description:`${C.addedCount} matching item${C.addedCount>1?"s":""} added to your cart.`}),n(C.checkoutUrl)):(Me({title:"Couldn't add items",description:C.error||"Please try again.",variant:"destructive"}),r())}catch{Me({title:"Error",description:"Something went wrong. Please try again.",variant:"destructive"}),r()}finally{l(!1)}};return m.length===0?(r(),null):S.jsx(te.div,{initial:{opacity:0}
228,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm",children:S.jsxs(te.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},transition:{duration:.3},className:"relative w-full max-w-3xl max-h-[90vh] overflow-y-auto bg-background rounded-2xl shadow-2xl",children:[S.jsx("button",{onClick:r,className:"absolute top-4 right-4 z-10 p-2 rounded-full bg-muted/80 hover:bg-muted transition-colors",children:S.jsx(jl,{className:"w-5 h-5"})}),S.jsxs("div",{className:"p-6 md:p-8",children:[S.jsxs("div",{className:"text-center mb-6",children:[S.jsx(te.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.1,type:"spring",stiffness:200},className:"w-16 h-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:S.jsx(qC,{className:"w-8 h-8 text-primary"})}),S.jsx("h2",{className:"font-display text-2xl md:text-3xl font-medium text-foreground mb-2",children:"Would you like to include?"}),S.jsx("p",{className:"text-muted-foreground font-body",children:"Complete the look with matching pieces from the same collection"})]}),S.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4 mb-6",children:m.map((k,C)=>S.jsxs(te.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1+C*.05},className:`relative rounded-xl overflow-hidden border-2 transition-all cursor-pointer ${i.has(k.id)?"border-primary shadow-lg":"border-transparent bg-card hover:border-muted"}`,onClick:()=>g(k.id),children:[S.jsx("div",{className:`absolute top-2 left-2 z-10 w-5 h-5 rounded-full border-2 flex items-center justify-center transition-all ${i.has(k.id)?"bg-primary border-primary text-primary-foreground":"bg-white/80 border-muted-foreground/30"}`,children:i.has(k.id)&&S.jsx(Mf,{className:"w-3 h-3"})}),S.jsx("a",{href:k.url,target:"_blank",rel:"noopener noreferrer",onClick:E=>E.stopPropagation(),className:"absolute top-2 right-2 z-10 w-6 h-6 rounded-full bg-white/80 flex items-center justify-center hover:bg-white transition-colors",children:S.jsx(Zv,{className:"w-3 h-3 text-muted-foreground"})}),S.jsx("div",{className:"aspect-square overflow-hidden bg-secondary",children:S.jsx("img",{src:k.image,alt:k.name,className:"w-full h-full object-cover"})}),S.jsxs("div",{className:"p-3",children:[S.jsx("h4",{className:"font-display text-sm font-medium text-foreground line-clamp-2 mb-1",children:k.name}),k.rating!==void 0&&S.jsx("div",{className:"mb-1",children:S.jsx(ix,{rating:k.rating,reviewCount:k.reviewCount,size:"sm"})}),S.jsx("p",{className:"font-display text-xs font-medium text-primary",children:o(k.priceAUD)})]})]},k.id))}),i.size>0&&S.jsx(te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"text-center mb-4 p-3 bg-muted/50 rounded-lg",children:S.jsxs("span",{className:"text-sm text-muted-foreground",children:[i.size," item",i.size>1?"s":""," selected •",S.jsx("span",{className:"font-semibold text-foreground ml-1",children:o(y)})]})}),S.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[S.jsxs(at,{onClick:b,disabled:a,className:"flex-1 gap-2 h-16 text-lg font-medium",size:"lg",children:[a?S.jsx(Gr,{className:"w-5 h-5 animate-spin"}):S.jsx(Jv,{className:"w-5 h-5"}),a?"Adding...":i.size>0?`Add ${i.size} to Cart`:"Continue"]}),S.jsx(at,{onClick:r,variant:"outline",size:"lg",className:"flex-1 h-16 text-lg font-medium",children:"No Thanks, Continue"})]})]})]})})}const uj={romper:["3-6 months","6-12 months","12-18 months / 1 year"],bodysuit:["0-3 months","3-6 months","6-12 months","12-18 months / 1 year"],babygrow:["Newborn","0-3 months","3-6 months","6-12 months","12-18 months / 1 year"],"shirt-shorts":["6-12 months","12-18 months / 1 year","2 years","3 years","4 years"],pants:["0-3 months","3-6 months","6-12 months","12-18 months / 1 year","2 years","3 years","4 years"],"long-sleeve-top":["0-3 months","3-6 months","6-12 months","12-18 months / 1 year","2 years","3 years","4 years"],dress:["2 years","3 years","4 years"]};function dj({product:e,onSelect:t,onCancel:n}){var x;const[r,o]=v.useState([]),[i,s]=v.useState(!0),[a,l]=v.useState(null),[c,u]=v.useState(null);v.useEffect(()=>{async function p(){var w;s(!0);try{const m=(w=e.url.match(/\/products\/([^/?#]+)/))==null?void 0:w[1];if(m){const g=await XM(m);o(g)}}catch(m){console.error("Error fetching variants:",m)}finally{s(!1)}}p()},[e.url]);const d=p=>{p.availableForSale&&(l(p.title),u(p.id))},f=()=>{c&&a&&t(c,a)},h=e.productType?uj[e.productType]:[];return S.jsx(wh,{children:S.jsx(te.div,{initial:{opacity:0}
228,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",onClick:n,children:S.jsxs(te.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},transition:{duration:.2},className:"relative w-full max-w-md bg-card rounded-2xl shadow-xl overflow-hidden",onClick:p=>p.stopPropagation(),children:[S.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[S.jsx("h3",{className:"font-display text-lg font-medium",children:"Select Size"}),S.jsx("button",{onClick:n,className:"p-1 rounded-full hover:bg-muted transition-colors",children:S.jsx(jl,{className:"w-5 h-5"})})]}),S.jsxs("div",{className:"flex items-center gap-4 p-4 bg-muted/50",children:[S.jsx("img",{src:e.image,alt:e.name,className:"w-16 h-16 rounded-lg object-cover"}),S.jsxs("div",{children:[S.jsx("h4",{className:"font-medium text-sm",children:e.name}),S.jsx("p",{className:"text-muted-foreground text-xs",children:(x=e.productType)==null?void 0:x.replace("-"," ")})]})]}),S.jsx("div",{className:"p-4",children:i?S.jsx("div",{className:"flex items-center justify-center py-8",children:S.jsx(Gr,{className:"w-6 h-6 animate-spin text-muted-foreground"})}):r.length>0?S.jsx("div",{className:"grid grid-cols-2 gap-2",children:r.map(p=>S.jsxs("button",{onClick:()=>d(p),disabled:!p.availableForSale,className:`
229                      relative py-3 px-4 rounded-lg border-2 text-sm font-medium transition-all
230                      ${a===p.title?"border-primary bg-primary/10 text-primary":p.availableForSale?"border-border hover:border-primary/50 hover:bg-muted":"border-border bg-muted/50 text-muted-foreground cursor-not-allowed"}
231                    `,children:[p.title,!p.availableForSale&&S.jsx("span",{className:"absolute inset-0 flex items-center justify-center",children:S.jsx("span",{className:"text-xs text-muted-foreground bg-muted/80 px-2 py-0.5 rounded",children:"Sold out"})})]},p.id))}):h.length>0?S.jsx("div",{className:"grid grid-cols-2 gap-2",children:h.map(p=>S.jsx("button",{onClick:()=>{l(p)},className:`
232                      py-3 px-4 rounded-lg border-2 text-sm font-medium transition-all
233                      ${a===p?"border-primary bg-primary/10 text-primary":"border-border hover:border-primary/50 hover:bg-muted"}
234                    `,children:p},p))}):S.jsx("p",{className:"text-center text-muted-foreground py-4",children:"No size options available"})}),S.jsxs("div",{className:"flex gap-3 p-4 border-t",children:[S.jsx(at,{variant:"outline",onClick:n,className:"flex-1",children:"Cancel"}),S.jsx(at,{onClick:f,disabled:!c,className:"flex-1",children:"Add to Cart"})]})]})})})}function fj({recommendations:e,onRestart:t}){const{format:n,currency:r}=ox(),[o,i]=v.useState(new Set),[s,a]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(!1),[f,h]=v.useState(""),[x,p]=v.useState([]),[w,m]=v.useState([]),[g,y]=v.useState(null),[b,k]=v.useState(new Map),C=P=>{i(R=>{const M=new Set(R);return M.has(P)?M.delete(P):M.add(P),M})},E=()=>{o.size===e.length?i(new Set):i(new Set(e.map(P=>P.id)))},T=e.filter(P=>o.has(P.id)).reduce((P,R)=>P+R.priceAUD,0),D=async()=>{if(o.size===0){Me({title:"No products selected",description:"Please select at least one product to add to cart.",variant:"destructive"});return}const P=e.filter(M=>o.has(M.id)),R=P.filter(M=>M.productType&&!b.has(M.id));if(R.length>0){m(R.slice(1)),y(R[0]);return}await G(P)},N=(P,R)=>{if(g)if(k(M=>new Map(M).set(g.id,{variantId:P,size:R})),w.length>0)y(w[0]),m(w.slice(1));else{y(null);const M=e.filter($=>o.has($.id)),U=new Map(b);U.set(g.id,{variantId:P,size:R}),O(M,U)}},B=()=>{y(null),m([])},O=async(P,R)=>{var M;a(!0);try{let U=Mh();if(!U){const Oe=await fs();if(!Oe){Me({title:"Couldn't create cart",description:"Please try again.",variant:"destructive"});return}U=Oe.cartId,hs(U)}const $=[],Y=[];for(const Oe of P){const Rt=R.get(Oe.id);if(Rt){$.push(Rt.variantId);continue}const Qt=(M=Oe.url.match(/\/products\/([^/?#]+)/))==null?void 0:M[1];Qt&&Y.push(Qt)}const ye=(await Promise.all(Y.map(Oe=>sx(Oe)))).filter(Oe=>!!Oe),be=[...$,...ye];if(be.length===0){Me({title:"Couldn't add to cart",description:"Please try again.",variant:"destructive"});return}const Z=await Md(U,be);Z?(h(Z.checkoutUrl),p(P),c(!0),Me({title:"Added to cart!",description:`${be.length} item${be.length>
2341?"s":""} added to your cart.`})):Me({title:"Couldn't add to cart",description:"Please try again.",variant:"destructive"});return}catch{Me({title:"Error",description:"Something went wrong. Please try again.",variant:"destructive"})}finally{a(!1)}},G=async P=>{if(P.some(M=>b.has(M.id))||P.some(M=>M.productType)){await O(P,b);return}a(!0);try{const M=P.map($=>$.url),U=await ux(M);U.success&&U.checkoutUrl?(h(U.checkoutUrl),p(P),c(!0),Me({title:"Added to cart!",description:`${U.addedCount} item${U.addedCount>1?"s":""} added to your cart.`})):Me({title:"Couldn't add to cart",description:U.error||"Please try again.",variant:"destructive"})}catch{Me({title:"Error",description:"Something went wrong. Please try again.",variant:"destructive"})}finally{a(!1)}},_=P=>{h(P),c(!1),d(!0)},K=()=>{c(!1),d(!0)},z=()=>{d(!1)},V=()=>{d(!1)};return S.jsxs(S.Fragment,{children:[S.jsxs(te.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.5},className:"w-full max-w-4xl mx-auto",children:[S.jsxs("div",{className:"text-center mb-10",children:[S.jsx(te.h2,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.3},className:"font-display text-3xl md:text-4xl font-medium text-foreground mb-3",children:"We think they'll love these"}),S.jsx(te.p,{initial:{opacity:0}
234,animate:{opacity:1},transition:{delay:.4},className:"text-muted-foreground font-body max-w-md mx-auto",children:"Handpicked from our heirloom-quality collection, designed in Australia."})]}),e.length>0&&S.jsxs(S.Fragment,{children:[e.length>0&&e.some(P=>P.isFallback)&&S.jsx(te.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.35},className:"text-center text-muted-foreground font-body mb-6",children:"We couldn't quite find what you were after, but here are some ideas that you might like"}),S.jsxs(te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.45},className:"flex flex-col sm:flex-row items-center justify-between gap-4 mb-6 p-4 bg-card rounded-xl border",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(nx,{id:"select-all",checked:o.size===e.length&&e.length>0,onCheckedChange:E}),S.jsx("label",{htmlFor:"select-all",className:"text-sm font-medium cursor-pointer",children:o.size===e.length?"Deselect All":"Select All"}),o.size>0&&S.jsxs("span",{className:"text-sm text-muted-foreground",children:["(",o.size," selected • ",n(T),")"]})]}),S.jsxs(at,{onClick:D,disabled:o.size===0||s,className:"gap-2 hidden sm:flex",children:[s?S.jsx(Gr,{className:"w-4 h-4 animate-spin"}):S.jsx(rm,{className:"w-4 h-4"}),s?"Adding...":`Add ${o.size>0?o.size:""} to Cart`]})]}),S.jsx("div",{className:"grid md:grid-cols-3 gap-6 mb-10 pb-24 sm:pb-0",children:e.map((P,R)=>{var M;return S.jsxs(te.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.5,delay:R*.15},className:`group relative bg-card rounded-2xl overflow-hidden shadow-lg transition-all duration-300 hover:-translate-y-2 cursor-pointer ${o.has(P.id)?"ring-2 ring-primary shadow-xl":"hover:shadow-xl"}`,onClick:()=>C(P.id),children:[S.jsx("div",{className:`absolute top-3 left-3 z-10 w-6 h-6 rounded-full border-2 flex items-center justify-center transition-all ${o.has(P.id)?"bg-primary border-primary text-primary-foreground":"bg-white/80 border-muted-foreground/30"}`,children:o.has(P.id)&&S.jsx(Mf,{className:"w-4 h-4"})}),S.jsx("a",{href:P.url,target:"_blank",rel:"noopener noreferrer",onClick:U=>U.stopPropagation(),className:"absolute top-3 right-3 z-10 w-8 h-8 rounded-full bg-white/80 flex items-center justify-center hover:bg-white transition-colors",children:S.jsx(Zv,{className:"w-4 h-4 text-muted-foreground"})}),S.jsx("div",{className:"aspect-square overflow-hidden bg-secondary",children:S.jsx("img",{src:P.image,alt:P.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),S.jsxs("div",{className:"p-5",children:[S.jsx("h3",{className:"font-display text-xl font-medium text-foreground mb-1",children:P.name}),P.rating!==void 0&&S.jsx("div",{className:"mb-2",children:S.jsx(ix,{rating:P.rating,reviewCount:P.reviewCount})}),S.jsx("p",{className:"text-sm text-muted-foreground font-body mb-3 line-clamp-2",children:P.description}),S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx("p",{className:"font-display text-sm font-medium text-primary",children:n(P.priceAUD)}),P.productType&&b.has(P.id)&&S.jsxs("span",{className:"text-xs bg-primary/10 text-primary px-2 py-1 rounded-full",children:["Size: ",(M=b.get(P.id))==null?void 0:M.size]}),P.productType&&o.has(P.id)&&!b.has(P.id)&&S.jsx("span",{className:"text-xs bg-muted text-muted-foreground px-2 py-1 rounded-full",children:"Select size"})]})]})]},P.id)})}),S.jsx(te.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"fixed left-0 right-0 p-4 bg-background/95 backdrop-blur-sm border-t sm:hidden z-50",style:{bottom:"max(0px, env(safe-area-inset-bottom, 0px))"},children:S.jsxs(at,{onClick:D,disabled:o.size===0||s,className:"w-full gap-2",size:"lg",children:[s?S.jsx(Gr,{className:"w-4 h-4 animate-spin"}):S.jsx(rm,{className:"w-4 h-4"}),s?"Adding...":o.size>0?`Add ${o.size} to Cart • ${n(T)}`:"Select products to add"]})})]}),S.jsxs(te.div,{initial:{opacity:0}
234,animate:{opacity:1},transition:{delay:.6},className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[S.jsxs(at,{onClick:t,variant:"outline",size:"lg",className:"gap-2",children:[S.jsx(XC,{className:"w-4 h-4"}),"Start Again"]}),S.jsx(at,{asChild:!0,size:"lg",children:S.jsx("a",{href:"https://fledgeandthread.com.au",children:"Shop All Products"})})]})]}),l&&S.jsx(cj,{selectedProducts:x,checkoutUrl:f,onComplete:_,onSkip:K}),u&&S.jsx(nj,{productName:`${o.size} selected items`,checkoutUrl:f,onComplete:z,onSkip:V}),g&&S.jsx(dj,{product:g,onSelect:N,onCancel:B})]})}function Xg(e){const t=e.match(/\/products\/([^/?#]+)/);return t?t[1]:null}function hj(){const[e,t]=v.useState(0),[n,r]=v.useState({}),[o,i]=v.useState(!1),[s,a]=v.useState([]),[l,c]=v.useState(!1),u=Jc[e],d=e===Jc.length-1,f=n[u.id],h=v.useCallback(m=>{r(g=>({...g,[u.id]:m}))},[u.id]),x=v.useCallback(async()=>{if(d){c(!0);const m={...n,[u.id]:f},g=_M(m);try{const y=g.map(b=>Xg(b.url)).filter(b=>b!==null);if(y.length>0){const b=await dx(y);let C=g.map(E=>{const T=Xg(E.url);if(!T)return E;const D=b.get(T);return{...E,inStock:D?D.inStock:E.inStock!==!1,priceAUD:(D==null?void 0:D.price)??E.priceAUD}}).filter(E=>E.inStock!==!1);if((m.recipient==="newborn"||m.recipient==="baby")&&(!m.giftType||m.giftType==="clothing")&&m.budget){const T={"under-50":[0,50],"50-100":[50,100],"100-150":[100,150],"150-plus":[150,1e3]}[m.budget];if(T){const[D,N]=T;C=C.filter(B=>B.id.includes("babygrow")?B.priceAUD>=D&&B.priceAUD<=N:!0)}}a(C)}else a(g.filter(b=>b.inStock!==!1))}catch(y){console.error("Error fetching live stock data:",y),a(g.filter(b=>b.inStock!==!1))}finally{c(!1),i(!0)}}else t(m=>m+1)},[d,n,u.id,f]),p=v.useCallback(()=>{e>0&&t(m=>m-1)},[e]),w=v.useCallback(()=>{t(0),r({}),i(!1),a([])},[]);return o?S.jsx(fj,{recommendations:s,onRestart:w}):S.jsxs("div",{className:"w-full max-w-2xl mx-auto",children:[S.jsx(OM,{currentStep:e,totalSteps:Jc.length}),S.jsx(FM,{question:u,selectedAnswer:f,onAnswer:h}),S.jsxs(te.div,{initial:{opacity:0}
234,animate:{opacity:1},transition:{delay:.5},className:"flex justify-between items-center mt-8 max-w-lg mx-auto",children:[S.jsxs(at,{variant:"ghost",onClick:p,disabled:e===0,className:"gap-2",children:[S.jsx(QC,{className:"w-4 h-4"}),"Back"]}),S.jsx(wh,{mode:"wait",children:f&&S.jsx(te.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},children:S.jsx(at,{onClick:x,className:"gap-2",size:"lg",disabled:l,children:l?S.jsxs(S.Fragment,{children:[S.jsx(Gr,{className:"w-4 h-4 animate-spin"}),"Finding gifts..."]}):S.jsxs(S.Fragment,{children:[d?"See My Picks":"Continue",S.jsx(YC,{className:"w-4 h-4"})]})})})})]})]})}const pj=()=>S.jsxs("main",{className:"min-h-screen bg-background",children:[S.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[S.jsx("div",{className:"absolute -top-40 -right-40 w-96 h-96 bg-blush-pink/30 rounded-full blur-3xl"}),S.jsx("div",{className:"absolute -bottom-40 -left-40 w-96 h-96 bg-golden-wheat/20 rounded-full blur-3xl"}),S.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] bg-sage-green/5 rounded-full blur-3xl"})]}),S.jsxs("div",{className:"relative z-10 container mx-auto px-4 py-12 md:py-20",children:[S.jsx(LM,{}),S.jsx(hj,{})]})]}),mj=()=>{const e=vr();return v.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),S.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:S.jsxs("div",{className:"text-center",children:[S.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),S.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),S.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},gj=new w2,yj=()=>S.jsx(x2,{client:gj,children:S.jsx(YT,{children:S.jsxs(eA,{children:[S.jsx(jE,{}),S.jsx(dP,{}),S.jsx(zR,{children:S.jsxs(wR,{children:[S.jsx(ad,{path:"/",element:S.jsx(pj,{})}),S.jsx(ad,{path:"*",element:S.jsx(mj,{})})]})})]})})});bv(document.getElementById("root")).render(S.jsx(yj,{}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.