vendor: 6,401 bytes, lines 1-9
1var Db=Object.defineProperty;var vg=t=>{throw TypeError(t)};var jb=(t,e,n)=>e in t?Db(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Be=(t,e,n)=>jb(t,typeof e!="symbol"?e+"":e,n),Zc=(t,e,n)=>e.has(t)||vg("Cannot "+n);var R=(t,e,n)=>(Zc(t,e,"read from private field"),n?n.call(t):e.get(t)),pe=(t,e,n)=>e.has(t)?vg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),ee=(t,e,n,i)=>(Zc(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n),Ce=(t,e,n)=>(Zc(t,e,"access private method"),n);var al=(t,e,n,i)=>({set _(a){ee(t,e,a,n)},get _(){return R(t,e,i)}});function Mb(t,e){for(var n=0;n<e.length;n++){const i=e[n];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in t)){const l=Object.getOwnPropertyDescriptor(i,a);l&&Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(a){if(a.ep)return;a.ep=!0;const l=n(a);fetch(a.href,l)}})();function w0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ed={exports:{}},fo={},td={exports:{}},Ee={};/** 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 wg;function Ib(){if(wg)return Ee;wg=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function w(D){return D===null||typeof D!="object"?null:(D=y&&D[y]||D["@@iterator"],typeof D=="function"?D:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,E={};function k(D,$,ge){this.props=D,this.context=$,this.refs=E,this.updater=ge||x}k.prototype.isReactComponent={},k.prototype.setState=function(D,$){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,$,"setState")},k.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function S(){}S.prototype=k.prototype;function A(D,$,ge){this.props=D,this.context=$,this.refs=E,this.updater=ge||x}var P=A.prototype=new S;P.constructor=A,T(P,k.prototype),P.isPureReactComponent=!0;var L=Array.isArray,I=Object.prototype.hasOwnProperty,z={current:null},X={key:!0,ref:!0,__self:!0,__source:!0};function B(D,$,ge){var ye,he={},G=null,xe=null;if($!=null)for(ye in $.ref!==void 0&&(xe=$.ref),$.key!==void 0&&(G=""+$.key),$)I.call($,ye)&&!X.hasOwnProperty(ye)&&(he[ye]=$[ye]);var _e=arguments.length-2;if(_e===1)he.children=ge;else if(1<_e){for(var we=Array(_e),ot=0;ot<_e;ot++)we[ot]=arguments[ot+2];he.children=we}if(D&&D.defaultProps)for(ye in _e=D.defaultProps,_e)he[ye]===void 0&&(he[ye]=_e[ye]);return{$$typeof:t,type:D,key:G,ref:xe,props:he,_owner:z.current}}function Z(D,$){return{$$typeof:t,type:D.type,key:$,ref:D.ref,props:D.props,_owner:D._owner}}function ue(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function be(D){var $={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(ge){return $[ge]})}var Ae=/\/+/g;function Le(D,$){return typeof D=="object"&&D!==null&&D.key!=null?be(""+D.key):$.toString(36)}function Te(D,$,ge,ye,he){var G=typeof D;(G==="undefined"||G==="boolean")&&(D=null);var xe=!1;if(D===null)xe=!0;else switch(G){case"string":case"number":xe=!0;break;case"object":switch(D.$$typeof){case t:case e:xe=!0}}if(xe)return xe=D,he=he(xe),D=ye===""?"."+Le(xe,0):ye,L(he)?(ge="",D!=null&&(ge=D.replace(Ae,"$&/")+"/"),Te(he,$,ge,"",function(ot){return ot})):he!=null&&(ue(he)&&(he=Z(he,ge+(!he.key||xe&&xe.key===he.key?"":(""+he.key).replace(Ae,"$&/")+"/")+D)),$.push(he)),1;if(xe=0,ye=ye===""?".":ye+":",L(D))for(var _e=0;_e<D.length;_e++){G=D[_e];var we=ye+Le(G,_e);xe+=Te(G,$,ge,we,he)}else if(we=w(D),typeof we=="function")for(D=we.call(D),_e=0;!(G=D.next()).done;)G=G.value,we=ye+Le(G,_e++),xe+=Te(G,$,ge,we,he);else if(G==="object")throw $=String(D),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.");return xe}function Me(D,$,ge){if(D==null)return D;var ye=[],he=0;return Te(D,ye,"","",function(G){return $.call(ge,G,he++)}),ye}function fe(D){if(D._status===-1){var $=D._result;$=$(),$.then(function(ge){(D._status===0||D._status===-1)&&(D._status=1,D._result=ge)},function(ge){(D._status===0||D._status===-1)&&(D._status=2,D._result=ge)}),D._status===-1&&(D._status=0,D._result=$)}if(D._status===1)return D._result.default;throw D._result}var le={current:null},K={transition:null},se={ReactCurrentDispatcher:le,ReactCurrentBatchConfig:K,ReactCurrentOwner:z};function V(){throw Error("act(...) is not supported in production builds of React.")}return Ee.Children={map:Me,forEach:function(D,$,ge){Me(D,function(){$.apply(this,arguments)},ge)},count:function(D){var $=0;return Me(D,function(){$++}),$},toArray:function(D){return Me(D,function($){return $})||[]},only:function(D){if(!ue(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},Ee.Component=k,Ee.Fragment=n,Ee.Profiler=a,Ee.PureComponent=A,Ee.StrictMode=i,Ee.Suspense=f,Ee.__SECRET_INT
vendor: 9,335 bytes, lines 9-33
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=se,Ee.act=V,Ee.cloneElement=function(D,$,ge){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var ye=T({},D.props),he=D.key,G=D.ref,xe=D._owner;if($!=null){if($.ref!==void 0&&(G=$.ref,xe=z.current),$.key!==void 0&&(he=""+$.key),D.type&&D.type.defaultProps)var _e=D.type.defaultProps;for(we in $)I.call($,we)&&!X.hasOwnProperty(we)&&(ye[we]=$[we]===void 0&&_e!==void 0?_e[we]:$[we])}var we=arguments.length-2;if(we===1)ye.children=ge;else if(1<we){_e=Array(we);for(var ot=0;ot<we;ot++)_e[ot]=arguments[ot+2];ye.children=_e}return{$$typeof:t,type:D.type,key:he,ref:G,props:ye,_owner:xe}},Ee.createContext=function(D){return D={$$typeof:u,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:l,_context:D},D.Consumer=D},Ee.createElement=B,Ee.createFactory=function(D){var $=B.bind(null,D);return $.type=D,$},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(D){return{$$typeof:d,render:D}},Ee.isValidElement=ue,Ee.lazy=function(D){return{$$typeof:g,_payload:{_status:-1,_result:D},_init:fe}},Ee.memo=function(D,$){return{$$typeof:p,type:D,compare:$===void 0?null:$}},Ee.startTransition=function(D){var $=K.transition;K.transition={};try{D()}finally{K.transition=$}},Ee.unstable_act=V,Ee.useCallback=function(D,$){return le.current.useCallback(D,$)},Ee.useContext=function(D){return le.current.useContext(D)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(D){return le.current.useDeferredValue(D)},Ee.useEffect=function(D,$){return le.current.useEffect(D,$)},Ee.useId=function(){return le.current.useId()},Ee.useImperativeHandle=function(D,$,ge){return le.current.useImperativeHandle(D,$,ge)},Ee.useInsertionEffect=function(D,$){return le.current.useInsertionEffect(D,$)},Ee.useLayoutEffect=function(D,$){return le.current.useLayoutEffect(D,$)},Ee.useMemo=function(D,$){return le.current.useMemo(D,$)},Ee.useReducer=function(D,$,ge){return le.current.useReducer(D,$,ge)},Ee.useRef=function(D){return le.current.useRef(D)},Ee.useState=function(D){return le.current.useState(D)},Ee.useSyncExternalStore=function(D,$,ge){return le.current.useSyncExternalStore(D,$,ge)},Ee.useTransition=function(){return le.current.useTransition()},Ee.version="18.3.1",Ee}var xg;function Tf(){return xg||(xg=1,td.exports=Ib()),td.exports}/** 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 Sg;function Fb(){if(Sg)return fo;Sg=1;var t=Tf(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(d,f,p){var g,y={},w=null,x=null;p!==void 0&&(w=""+p),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(x=f.ref);for(g in f)i.call(f,g)&&!l.hasOwnProperty(g)&&(y[g]=f[g]);if(d&&d.defaultProps)for(g in f=d.defaultProps,f)y[g]===void 0&&(y[g]=f[g]);return{$$typeof:e,type:d,key:w,ref:x,props:y,_owner:a.current}}return fo.Fragment=n,fo.jsx=u,fo.jsxs=u,fo}var bg;function Bb(){return bg||(bg=1,ed.exports=Fb()),ed.exports}var b=Bb(),j=Tf();const Ub=w0(j),x0=Mb({__proto__:null,default:Ub},[j]);var ll={},nd={exports:{}},Mt={},rd={exports:{}},sd={};/** 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 */var kg;function Vb(){return kg||(kg=1,(function(t){function e(K,se){var V=K.length;K.push(se);e:for(;0<V;){var D=V-1>>>1,$=K[D];if(0<a($,se))K[D]=se,K[V]=$,V=D;else break e}}function n(K){return K.length===0?null:K[0]}function i(K){if(K.length===0)return null;var se=K[0],V=K.pop();if(V!==se){K[0]=V;e:for(var D=0,$=K.length,ge=$>>>1;D<ge;){var ye=2*(D+1)-1,he=K[ye],G=ye+1,xe=K[G];if(0>a(he,V))G<$&&0>a(xe,he)?(K[D]=xe,K[G]=V,D=G):(K[D]=he,K[ye]=V,D=ye);else if(G<$&&0>a(xe,V))K[D]=xe,K[G]=V,D=G;else break e}}return se}function a(K,se){var V=K.sortIndex-se.sortIndex;return V!==0?V:K.id-se.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;t.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();t.unstable_now=function(){return u.now()-d}}var f=[],p=[],g=1,y=null,w=3,x=!1,T=!1,E=!1,k=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(K){for(var se=n(p);se!==null;){if(se.callback===null)i(p);else if(se.startTime<=K)i(p),se.sortIndex=se.expirationTime,e(f,se);else break;se=n(p)}}function L(K){if(E=!1,P(K),!T)if(n(f)!==null)T=!0,fe(I);else{var se=n(p);se!==null&&le(L,se.startTime-K)}}function I(K,se){T=!1,E&&(E=!1,S(B),B=-1),x=!0;var V=w;try{for(P(se),y=n(f);y!==null&&(!(y.expirationTime>se)||K&&!be());){var D=y.callback;if(typeof D=="function"){y.callback=null,w=y.priorityLevel;var $=D(y.expirationTime<=se);se=t.unstable_now(),typeof $=="function"?y.callback=$:y===n(f)&&i(f),P(se)}else i(f);y=n(f)}if(y!==null)var ge=!0;else{var ye=n(p);ye!==null&&le(L,ye.startTime-se),ge=!1}return ge}finally{y=null,w=V,x=!1}}var z=!1,X=null,B=-1,Z=5,ue=-1;function be(){return!(t.unstable_now()-ue<Z)}function Ae(){if(X!==null){var K=t.unstable_now();ue=K;var se=!0;try{se=X(!0,K)}finally{se?Le():(z=!1,X=null)}}else z=!1}var Le;if(typeof A=="function")Le=function(){A(Ae)};else if(typeof MessageChannel<"u"){var Te=new MessageChannel,Me=Te.port2;Te.port1.onmessage=Ae,Le=function(){Me.postMessage(null)}}else Le=function(){k(Ae,0)};function fe(K){X=K,z||(z=!0,Le())}function le(K,se){B=k(function(){K(t.unstable_now())},se)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(K){K.callback=null},t.unstable_continueExecution=function(){T||x||(T=!0,fe(I))},t.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<K?Math.floor(1e3/K):5},t.unstable_getCurrentPriorityLevel=function(){return w},t.unstable_getFirstCallbackNode=function(){return n(f)},t.unstable_next=function(K){switch(w){case 1:case 2:case 3:var se=3;break;default:se=w}var V=w;w=se;try{return K()}finally{w=V}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(K,se){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var V=w;w=K;try{return se()}finally{w=V}},t.unstable_scheduleCallback=function(K,se,V){var D=t.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?D+V:D):V=D,K){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=V+$,K={id:g++,callback:se,priorityLevel:K,startTime:V,expirationTime:$,sortIndex:-1},V>D?(K.sortIndex=V,e(p,K),n(f)===null&&K===n(p)&&(E?(S(B),B=-1):E=!0,le(L,V-D))):(K.sortIndex=$,e(f,K),T||x||(T=!0,fe(I))),K},t.unstable_shouldYield=be,t.unstable_wrapCallback=function(K){var se=w;return function(){var V=w;w=se;try{return K.apply(this,arguments)}finally{w=V}}}})(sd)),sd}var Eg;function zb(){return Eg||(Eg=1,rd.exports=Vb()),rd.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 _g;function $b(){if(_g)return Mt;_g=1;var t=Tf(),e=zb();function n(r){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+r,o=1;o<arguments.length;o++)s+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,a={};function l(r,s){u(r,s),u(r+"Capture",s)}function u(r,s){for(a[r]=s,r=0;r<s.length;r++)i.add(s[r])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[: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]*$/,g={},y={};function w(r){return f.call(y,r)?!0:f.call(g,r)?!1:p.test(r)?y[r]=!0:(g[r]=!0,!1)}function x(r,s,o,c){if(o!==null&&o.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return c?!1:o!==null?!o.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function T(r,s,o,c){if(s===null||typeof s>"u"||x(r,s,o,c))return!0;
vendor: 45,264 bytes, lines 33-38
33if(c)return!1;if(o!==null)switch(o.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function E(r,s,o,c,h,m,v){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=c,this.attributeNamespace=h,this.mustUseProperty=o,this.propertyName=r,this.type=s,this.sanitizeURL=m,this.removeEmptyString=v}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){k[r]=new E(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var s=r[0];k[s]=new E(s,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){k[r]=new E(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){k[r]=new E(r,2,!1,r,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(r){k[r]=new E(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){k[r]=new E(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){k[r]=new E(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){k[r]=new E(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){k[r]=new E(r,5,!1,r.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function A(r){return r[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(r){var s=r.replace(S,A);k[s]=new E(s,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var s=r.replace(S,A);k[s]=new E(s,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var s=r.replace(S,A);k[s]=new E(s,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){k[r]=new E(r,1,!1,r.toLowerCase(),null,!1,!1)}),k.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){k[r]=new E(r,1,!1,r.toLowerCase(),null,!0,!0)});function P(r,s,o,c){var h=k.hasOwnProperty(s)?k[s]:null;(h!==null?h.type!==0:c||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(T(s,o,h,c)&&(o=null),c||h===null?w(s)&&(o===null?r.removeAttribute(s):r.setAttribute(s,""+o)):h.mustUseProperty?r[h.propertyName]=o===null?h.type===3?!1:"":o:(s=h.attributeName,c=h.attributeNamespace,o===null?r.removeAttribute(s):(h=h.type,o=h===3||h===4&&o===!0?"":""+o,c?r.setAttributeNS(c,s,o):r.setAttribute(s,o))))}var L=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,I=Symbol.for("react.element"),z=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),ue=Symbol.for("react.provider"),be=Symbol.for("react.context"),Ae=Symbol.for("react.forward_ref"),Le=Symbol.for("react.suspense"),Te=Symbol.for("react.suspense_list"),Me=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),le=Symbol.for("react.offscreen"),K=Symbol.iterator;function se(r){return r===null||typeof r!="object"?null:(r=K&&r[K]||r["@@iterator"],typeof r=="function"?r:null)}var V=Object.assign,D;function $(r){if(D===void 0)try{throw Error()}catch(o){var s=o.stack.trim().match(/\n( *(at )?)/);D=s&&s[1]||""}return` 34`+D+r}var ge=!1;function ye(r,s){if(!r||ge)return"";ge=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(U){var c=U}Reflect.construct(r,[],s)}else{try{s.call()}catch(U){c=U}r.call(s.prototype)}else{try{throw Error()}catch(U){c=U}r()}}catch(U){if(U&&c&&typeof U.stack=="string"){for(var h=U.stack.split(` 35`),m=c.stack.split(` 36`),v=h.length-1,_=m.length-1;1<=v&&0<=_&&h[v]!==m[_];)_--;for(;1<=v&&0<=_;v--,_--)if(h[v]!==m[_]){if(v!==1||_!==1)do if(v--,_--,0>_||h[v]!==m[_]){var C=` 37`+h[v].replace(" at new "," at ");return r.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",r.displayName)),C}while(1<=v&&0<=_);break}}}finally{ge=!1,Error.prepareStackTrace=o}return(r=r?r.displayName||r.name:"")?$(r):""}function he(r){switch(r.tag){case 5:return $(r.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return r=ye(r.type,!1),r;case 11:return r=ye(r.type.render,!1),r;case 1:return r=ye(r.type,!0),r;default:return""}}function G(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case X:return"Fragment";case z:return"Portal";case Z:return"Profiler";case B:return"StrictMode";case Le:return"Suspense";case Te:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case be:return(r.displayName||"Context")+".Consumer";case ue:return(r._context.displayName||"Context")+".Provider";case Ae:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Me:return s=r.displayName||null,s!==null?s:G(r.type)||"Memo";case fe:s=r._payload,r=r._init;try{return G(r(s))}catch{}}return null}function xe(r){var s=r.type;switch(r.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=s.render,r=r.displayName||r.name||"",s.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return G(s);case 8:return s===B?"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 s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function _e(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function we(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function ot(r){var s=we(r)?"checked":"value",o=Object.getOwnPropertyDescriptor(r.constructor.prototype,s),c=""+r[s];if(!r.hasOwnProperty(s)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var h=o.get,m=o.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return h.call(this)},set:function(v){c=""+v,m.call(this,v)}}),Object.defineProperty(r,s,{enumerable:o.enumerable}),{getValue:function(){return c},setValue:function(v){c=""+v},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function Kt(r){r._valueTracker||(r._valueTracker=ot(r))}function dt(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var o=s.getValue(),c="";return r&&(c=we(r)?r.checked?"true":"false":r.value),r=c,r!==o?(s.setValue(r),!0):!1}function un(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Qt(r,s){var o=s.checked;return V({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??r._wrapperState.initialChecked})}function Gt(r,s){var o=s.defaultValue==null?"":s.defaultValue,c=s.checked!=null?s.checked:s.defaultChecked;o=_e(s.value!=null?s.value:o),r._wrapperState={initialChecked:c,initialValue:o,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function Se(r,s){s=s.checked,s!=null&&P(r,"checked",s,!1)}function ft(r,s){Se(r,s);var o=_e(s.value),c=s.type;if(o!=null)c==="number"?(o===0&&r.value===""||r.value!=o)&&(r.value=""+o):r.value!==""+o&&(r.value=""+o);else if(c==="submit"||c==="reset"){r.removeAttribute("value");return}s.hasOwnProperty("value")?dn(r,s.type,o):s.hasOwnProperty("defaultValue")&&dn(r,s.type,_e(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(r.defaultChecked=!!s.defaultChecked)}function cn(r,s,o){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var c=s.type;if(!(c!=="submit"&&c!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+r._wrapperState.initialValue,o||s===r.value||(r.value=s),r.defaultValue=s}o=r.name,o!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,o!==""&&(r.name=o)}function dn(r,s,o){(s!=="number"||un(r.ownerDocument)!==r)&&(o==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+o&&(r.defaultValue=""+o))}var Jn=Array.isArray;function Zn(r,s,o,c){if(r=r.options,s){s={};for(var h=0;h<o.length;h++)s["$"+o[h]]=!0;for(o=0;o<r.length;o++)h=s.hasOwnProperty("$"+r[o].value),r[o].selected!==h&&(r[o].selected=h),h&&c&&(r[o].defaultSelected=!0)}else{for(o=""+_e(o),s=null,h=0;h<r.length;h++){if(r[h].value===o){r[h].selected=!0,c&&(r[h].defaultSelected=!0);return}s!==null||r[h].disabled||(s=r[h])}s!==null&&(s.selected=!0)}}function jn(r,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return V({},s,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Ph(r,s){var o=s.value;if(o==null){if(o=s.children,s=s.defaultValue,o!=null){if(s!=null)throw Error(n(92));if(Jn(o)){if(1<o.length)throw Error(n(93));o=o[0]}s=o}s==null&&(s=""),o=s}r._wrapperState={initialValue:_e(o)}}function Rh(r,s){var o=_e(s.value),c=_e(s.defaultValue);o!=null&&(o=""+o,o!==r.value&&(r.value=o),s.defaultValue==null&&r.defaultValue!==o&&(r.defaultValue=o)),c!=null&&(r.defaultValue=""+c)}function Ah(r){var s=r.textContent;s===r._wrapperState.initialValue&&s!==""&&s!==null&&(r.value=s)}function Nh(r){switch(r){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 cu(r,s){return r==null||r==="http://www.w3.org/1999/xhtml"?Nh(s):r==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Zo,Oh=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,o,c,h){MSApp.execUnsafeLocalFunction(function(){return r(s,o,c,h)})}:r})(function(r,s){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=s;else{for(Zo=Zo||document.createElement("div"),Zo.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Zo.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;s.firstChild;)r.appendChild(s.firstChild)}});function Ci(r,s){if(s){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=s;return}}r.textContent=s}var Pi={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},F1=["Webkit","ms","Moz","O"];Object.keys(Pi).forEach(function(r){F1.forEach(function(s){s=s+r.charAt(0).toUpperCase()+r.substring(1),Pi[s]=Pi[r]})});function Lh(r,s,o){return s==null||typeof s=="boolean"||s===""?"":o||typeof s!="number"||s===0||Pi.hasOwnProperty(r)&&Pi[r]?(""+s).trim():s+"px"}function Dh(r,s){r=r.style;for(var o in s)if(s.hasOwnProperty(o)){var c=o.indexOf("--")===0,h=Lh(o,s[o],c);o==="float"&&(o="cssFloat"),c?r.setProperty(o,h):r[o]=h}}var B1=V({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 du(r,s){if(s){if(B1[r]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function fu(r,s){if(r.indexOf("-")===-1)return typeof s.is=="string";switch(r){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 hu=null;function pu(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var mu=null,_s=null,Ts=null;function jh(r){if(r=Xi(r)){if(typeof mu!="function")throw Error(n(280));var s=r.stateNode;s&&(s=ba(s),mu(r.stateNode,r.type,s))}}function Mh(r){_s?Ts?Ts.push(r):Ts=[r]:_s=r}function Ih(){if(_s){var r=_s,s=Ts;if(Ts=_s=null,jh(r),s)for(r=0;r<s.length;r++)jh(s[r])}}function Fh(r,s){return r(s)}function Bh(){}var gu=!1;function Uh(r,s,o){if(gu)return r(s,o);gu=!0;try{return Fh(r,s,o)}finally{gu=!1,(_s!==null||Ts!==null)&&(Bh(),Ih())}}function Ri(r,s){var o=r.stateNode;if(o===null)return null;var c=ba(o);if(c===null)return null;o=c[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(n(231,s,typeof o));return o}var yu=!1;if(d)try{var Ai={};Object.defineProperty(Ai,"passive",{get:function(){yu=!0}}),window.addEventListener("test",Ai,Ai),window.removeEventListener("test",Ai,Ai)}catch{yu=!1}function U1(r,s,o,c,h,m,v,_,C){var U=Array.prototype.slice.call(arguments,3);try{s.apply(o,U)}catch(H){this.onError(H)}}var Ni=!1,ea=null,ta=!1,vu=null,V1={onError:function(r){Ni=!0,ea=r}};function z1(r,s,o,c,h,m,v,_,C){Ni=!1,ea=null,U1.apply(V1,arguments)}function $1(r,s,o,c,h,m,v,_,C){if(z1.apply(this,arguments),Ni){if(Ni){var U=ea;Ni=!1,ea=null}else throw Error(n(198));ta||(ta=!0,vu=U)}}function Br(r){var s=r,o=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(o=s.return),r=s.return;while(r)}return s.tag===3?o:null}function Vh(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function zh(r){if(Br(r)!==r)throw Error(n(188))}function W1(r){var s=r.alternate;if(!s){if(s=Br(r),s===null)throw Error(n(188));return s!==r?null:r}for(var o=r,c=s;;){var h=o.return;if(h===null)break;var m=h.alternate;if(m===null){if(c=h.return,c!==null){o=c;continue}break}if(h.child===m.child){for(m=h.child;m;){if(m===o)return zh(h),r;if(m===c)return zh(h),s;m=m.sibling}throw Error(n(188))}if(o.return!==c.return)o=h,c=m;else{for(var v=!1,_=h.child;_;){if(_===o){v=!0,o=h,c=m;break}if(_===c){v=!0,c=h,o=m;break}_=_.sibling}if(!v){for(_=m.child;_;){if(_===o){v=!0,o=m,c=h;break}if(_===c){v=!0,c=m,o=h;break}_=_.sibling}if(!v)throw Error(n(189))}}if(o.alternate!==c)throw Error(n(190))}if(o.tag!==3)throw Error(n(188));return o.stateNode.current===o?r:s}function $h(r){return r=W1(r),r!==null?Wh(r):null}function Wh(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var s=Wh(r);if(s!==null)return s;r=r.sibling}return null}var Hh=e.unstable_scheduleCallback,qh=e.unstable_cancelCallback,H1=e.unstable_shouldYield,q1=e.unstable_requestPaint,Ye=e.unstable_now,K1=e.unstable_getCurrentPriorityLevel,wu=e.unstable_ImmediatePriority,Kh=e.unstable_UserBlockingPriority,na=e.unstable_NormalPriority,Q1=e.unstable_LowPriority,Qh=e.unstable_IdlePriority,ra=null,kn=null;function G1(r){if(kn&&typeof kn.onCommitFiberRoot=="function")try{kn.onCommitFiberRoot(ra,r,void 0,(r.current.flags&128)===128)}catch{}}var fn=Math.clz32?Math.clz32:J1,X1=Math.log,Y1=Math.LN2;function J1(r){return r>>>=0,r===0?32:31-(X1(r)/Y1|0)|0}var sa=64,ia=4194304;function Oi(r){switch(r&-r){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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function oa(r,s){var o=r.pendingLanes;if(o===0)return 0;var c=0,h=r.suspendedLanes,m=r.pingedLanes,v=o&268435455;if(v!==0){var _=v&~h;_!==0?c=Oi(_):(m&=v,m!==0&&(c=Oi(m)))}else v=o&~h,v!==0?c=Oi(v):m!==0&&(c=Oi(m));if(c===0)return 0;if(s!==0&&s!==c&&(s&h)===0&&(h=c&-c,m=s&-s,h>=m||h===16&&(m&4194240)!==0))return s;if((c&4)!==0&&(c|=o&16),s=r.entangledLanes,s!==0)for(r=r.entanglements,s&=c;0<s;)o=31-fn(s),h=1<<o,c|=r[o],s&=~h;return c}function Z1(r,s){switch(r){case 1:case 2:case 4:return s+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 s+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 eS(r,s){for(var o=r.suspendedLanes,c=r.pingedLanes,h=r.expirationTimes,m=r.pendingLanes;0<m;){var v=31-fn(m),_=1<<v,C=h[v];C===-1?((_&o)===0||(_&c)!==0)&&(h[v]=Z1(_,s)):C<=s&&(r.expiredLanes|=_),m&=~_}}function xu(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Gh(){var r=sa;return sa<<=1,(sa&4194240)===0&&(sa=64),r}function Su(r){for(var s=[],o=0;31>o;o++)s.push(r);return s}function Li(r,s,o){r.pendingLanes|=s,s!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,s=31-fn(s),r[s]=o}function tS(r,s){var o=r.pendingLanes&~s;r.pendingLanes=s,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=s,r.mutableReadLanes&=s,r.entangledLanes&=s,s=r.entanglements;var c=r.eventTimes;for(r=r.expirationTimes;0<o;){var h=31-fn(o),m=1<<h;s[h]=0,c[h]=-1,r[h]=-1,o&=~m}}function bu(r,s){var o=r.entangledLanes|=s;for(r=r.entanglements;o;){var c=31-fn(o),h=1<<c;h&s|r[c]&s&&(r[c]|=s),o&=~h}}var Ie=0;function Xh(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Yh,ku,Jh,Zh,ep,Eu=!1,aa=[],er=null,tr=null,nr=null,Di=new Map,ji=new Map,rr=[],nS="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 tp(r,s){switch(r){case"focusin":case"focusout":er=null;break;case"dragenter":case"dragleave":tr=null;break;case"mouseover":case"mouseout":nr=null;break;case"pointerover":case"pointerout":Di.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":ji.delete(s.pointerId)}}function Mi(r,s,o,c,h,m){return r===null||r.nativeEvent!==m?(r={blockedOn:s,domEventName:o,eventSystemFlags:c,nativeEvent:m,targetContainers:[h]},s!==null&&(s=Xi(s),s!==null&&ku(s)),r):(r.eventSystemFlags|=c,s=r.targetContainers,h!==null&&s.indexOf(h)===-1&&s.push(h),r)}function rS(r,s,o,c,h){switch(s){case"focusin":return er=Mi(er,r,s,o,c,h),!0;case"dragenter":return tr=Mi(tr,r,s,o,c,h),!0;case"mouseover":return nr=Mi(nr,r,s,o,c,h),!0;case"pointerover":var m=h.pointerId;return Di.set(m,Mi(Di.get(m)||null,r,s,o,c,h)),!0;case"gotpointercapture":return m=h.pointerId,ji.set(m,Mi(ji.get(m)||null,r,s,o,c,h)),!0}return!1}function np(r){var s=Ur(r.target);if(s!==null){var o=Br(s);if(o!==null){if(s=o.tag,s===13){if(s=Vh(o),s!==null){r.blockedOn=s,ep(r.priority,function(){Jh(o)});return}}else if(s===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function la(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var o=Tu(r.domEventName,r.eventSystemFlags,s[0],r.nativeEvent);if(o===null){o=r.nativeEvent;var c=new o.constructor(o.type,o);hu=c,o.target.dispatchEvent(c),hu=null}else return s=Xi(o),s!==null&&ku(s),r.blockedOn=o,!1;s.shift()}return!0}function rp(r,s,o){la(r)&&o.delete(s)}function sS(){Eu=!1,er!==null&&la(er)&&(er=null),tr!==null&&la(tr)&&(tr=null),nr!==null&&la(nr)&&(nr=null),Di.forEach(rp),ji.forEach(rp)}function Ii(r,s){r.blockedOn===s&&(r.blockedOn=null,Eu||(Eu=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,sS)))}function Fi(r){function s(h){return Ii(h,r)}if(0<aa.length){Ii(aa[0],r);for(var o=1;o<aa.length;o++){var c=aa[o];c.blockedOn===r&&(c.blockedOn=null)}}for(er!==null&&Ii(er,r),tr!==null&&Ii(tr,r),nr!==null&&Ii(nr,r),Di.forEach(s),ji.forEach(s),o=0;o<rr.length;o++)c=rr[o],c.blockedOn===r&&(c.blockedOn=null);for(;0<rr.length&&(o=rr[0],o.blockedOn===null);)np(o),o.blockedOn===null&&rr.shift()}var Cs=L.ReactCurrentBatchConfig,ua=!0;function iS(r,s,o,c){var h=Ie,m=Cs.transition;Cs.transition=null;try{Ie=1,_u(r,s,o,c)}finally{Ie=h,Cs.transition=m}}function oS(r,s,o,c){var h=Ie,m=Cs.transition;Cs.transition=null;try{Ie=4,_u(r,s,o,c)}finally{Ie=h,Cs.transition=m}}function _u(r,s,o,c){if(ua){var h=Tu(r,s,o,c);if(h===null)$u(r,s,c,ca,o),tp(r,c);else if(rS(h,r,s,o,c))c.stopPropagation();else if(tp(r,c),s&4&&-1<nS.indexOf(r)){for(;h!==null;){var m=Xi(h);if(m!==null&&Yh(m),m=Tu(r,s,o,c),m===null&&$u(r,s,c,ca,o),m===h)break;h=m}h!==null&&c.stopPropagation()}else $u(r,s,c,null,o)}}var ca=null;function Tu(r,s,o,c){if(ca=null,r=pu(c),r=Ur(r),r!==null)if(s=Br(r),s===null)r=null;else if(o=s.tag,o===13){if(r=Vh(s),r!==null)return r;r=null}else if(o===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null);return ca=r,null}function sp(r){switch(r){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(K1()){case wu:return 1;case Kh:return 4;case na:case Q1:return 16;case Qh:return 536870912;default:return 16}default:return 16}}var sr=null,Cu=null,da=null;function ip(){if(da)return da;var r,s=Cu,o=s.length,c,h="value"in sr?sr.value:sr.textContent,m=h.length;for(r=0;r<o&&s[r]===h[r];r++);var v=o-r;for(c=1;c<=v&&s[o-c]===h[m-c];c++);return da=h.slice(r,1<c?1-c:void 0)}function fa(r){var s=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&s===13&&(r=13)):r=s,r===10&&(r=13),32<=r||r===13?r:0}function ha(){return!0}function op(){return!1}function Vt(r){function s(o,c,h,m,v){this._reactName=o,this._targetInst=h,this.type=c,this.nativeEvent=m,this.target=v,this.currentTarget=null;for(var _ in r)r.hasOwnProperty(_)&&(o=r[_],this[_]=o?o(m):m[_]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?ha:op,this.isPropagationStopped=op,this}return V(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=ha)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=ha)},persist:function(){},isPersistent:ha}),s}var Ps={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pu=Vt(Ps),Bi=V({},Ps,{view:0,detail:0}),aS=Vt(Bi),Ru,Au,Ui,pa=V({},Bi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ou,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Ui&&(Ui&&r.type==="mousemove"?(Ru=r.screenX-Ui.screenX,Au=r.screenY-Ui.screenY):Au=Ru=0,Ui=r),Ru)},movementY:function(r){return"movementY"in r?r.movementY:Au}}),ap=Vt(pa),lS=V({},pa,{dataTransfer:0}),uS=Vt(lS),cS=V({},Bi,{relatedTarget:0}),Nu=Vt(cS),dS=V({},Ps,{animationName:0,elapsedTime:0,pseudoElement:0}),fS=Vt(dS),hS=V({},Ps,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),pS=Vt(hS),mS=V({},Ps,{data:0}),lp=Vt(mS),gS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yS={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"},vS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wS(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=vS[r])?!!s[r]:!1}function Ou(){return wS}var xS=V({},Bi,{key:function(r){if(r.key){var s=gS[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=fa(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?yS[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ou,charCode:function(r){return r.type==="keypress"?fa(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?fa(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),SS=Vt(xS),bS=V({},pa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),up=Vt(bS),kS=V({},Bi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ou}),ES=Vt(kS),_S=V({},Ps,{propertyName:0,elapsedTime:0,pseudoElement:0}),TS=Vt(_S),CS=V({},pa,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),PS=Vt(CS),RS=[9,13,27,32],Lu=d&&"CompositionEvent"in window,Vi=null;d&&"documentMode"in document&&(Vi=document.documentMode);var AS=d&&"TextEvent"in window&&!Vi,cp=d&&(!Lu||Vi&&8<Vi&&11>=Vi),dp=" ",fp=!1;function hp(r,s){switch(r){case"keyup":return RS.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pp(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Rs=!1;function NS(r,s){switch(r){case"compositionend":return pp(s);case"keypress":return s.which!==32?null:(fp=!0,dp);case"textInput":return r=s.data,r===dp&&fp?null:r;default:return null}}function OS(r,s){if(Rs)return r==="compositionend"||!Lu&&hp(r,s)?(r=ip(),da=Cu=sr=null,Rs=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return cp&&s.locale!=="ko"?null:s.data;default:return null}}var LS={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 mp(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!LS[r.type]:s==="textarea"}function gp(r,s,o,c){Mh(c),s=wa(s,"onChange"),0<s.length&&(o=new Pu("onChange","change",null,o,c),r.push({event:o,listeners:s}))}var zi=null,$i=null;function DS(r){Dp(r,0)}function ma(r){var s=Ds(r);if(dt(s))return r}function jS(r,s){if(r==="change")return s}var yp=!1;if(d){var Du;if(d){var ju="oninput"in document;if(!ju){var vp=document.createElement("div");vp.setAttribute("oninput","return;"),ju=typeof vp.oninput=="function"}Du=ju}else Du=!1;yp=Du&&(!document.documentMode||9<document.documentMode)}function wp(){zi&&(zi.detachEvent("onpropertychange",xp),$i=zi=null)}function xp(r){if(r.propertyName==="value"&&ma($i)){var s=[];gp(s,$i,r,pu(r)),Uh(DS,s)}}function MS(r,s,o){r==="focusin"?(wp(),zi=s,$i=o,zi.attachEvent("onpropertychange",xp)):r==="focusout"&&wp()}function IS(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return ma($i)}function FS(r,s){if(r==="click")return ma(s)}function BS(r,s){if(r==="input"||r==="change")return ma(s)}function US(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var hn=typeof Object.is=="function"?Object.is:US;function Wi(r,s){if(hn(r,s))return!0;if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var o=Object.keys(r),c=Object.keys(s);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var h=o[c];if(!f.call(s,h)||!hn(r[h],s[h]))return!1}return!0}function Sp(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function bp(r,s){var o=Sp(r);r=0;for(var c;o;){if(o.nodeType===3){if(c=r+o.textContent.length,r<=s&&c>=s)return{node:o,offset:s-r};r=c}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Sp(o)}}function kp(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?kp(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function Ep(){for(var r=window,s=un();s instanceof r.HTMLIFrameElement;){try{var o=typeof s.contentWindow.location.href=="string"}catch{o=!1}if(o)r=s.contentWindow;else break;s=un(r.document)}return s}function Mu(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}function VS(r){var s=Ep(),o=r.focusedElem,c=r.selectionRange;if(s!==o&&o&&o.ownerDocument&&kp(o.ownerDocument.documentElement,o)){if(c!==null&&Mu(o)){if(s=c.start,r=c.end,r===void 0&&(r=s),"selectionStart"in o)o.selectionStart=s,o.selectionEnd=Math.min(r,o.value.length);else if(r=(s=o.ownerDocument||document)&&s.defaultView||window,r.getSelection){r=r.getSelection();var h=o.textContent.length,m=Math.min(c.start,h);c=c.end===void 0?m:Math.min(c.end,h),!r.extend&&m>c&&(h=c,c=m,m=h),h=bp(o,m);var v=bp(o,c);h&&v&&(r.rangeCount!==1||r.anchorNode!==h.node||r.anchorOffset!==h.offset||r.focusNode!==v.node||r.focusOffset!==v.offset)&&(s=s.createRange(),s.setStart(h.node,h.offset),r.removeAllRanges(),m>c?(r.addRange(s),r.extend(v.node,v.offset)):(s.setEnd(v.node,v.offset),r.addRange(s)))}}for(s=[],r=o;r=r.parentNode;)r.nodeType===1&&s.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<s.length;o++)r=s[o],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var zS=d&&"documentMode"in document&&11>=document.documentMode,As=null,Iu=null,Hi=null,Fu=!1;function _p(r,s,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Fu||As==null||As!==un(c)||(c=As,"selectionStart"in c&&Mu(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Hi&&Wi(Hi,c)||(Hi=c,c=wa(Iu,"onSelect"),0<c.length&&(s=new Pu("onSelect","select",null,s,o),r.push({event:s,listeners:c}),s.target=As)))}function ga(r,s){var o={};return o[r.toLowerCase()]=s.toLowerCase(),o["Webkit"+r]="webkit"+s,o["Moz"+r]="moz"+s,o}var Ns={animationend:ga("Animation","AnimationEnd"),animationiteration:ga("Animation","AnimationIteration"),animationstart:ga("Animation","AnimationStart"),transitionend:ga("Transition","TransitionEnd")},Bu={},Tp={};d&&(Tp=document.createElement("div").style,"AnimationEvent"in window||(delete Ns.animationend.animation,delete Ns.animationiteration.animation,delete Ns.animationstart.animation),"TransitionEvent"in window||delete Ns.transitionend.transition);function ya(r){if(Bu[r])return Bu[r];if(!Ns[r])return r;var s=Ns[r],o;for(o in s)if(s.hasOwnProperty(o)&&o in Tp)return Bu[r]=s[o];return r}var Cp=ya("animationend"),Pp=ya("animationiteration"),Rp=ya("animationstart"),Ap=ya("transitionend"),Np=new Map,Op="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 ir(r,s){Np.set(r,s),l(s,[r])}for(var Uu=0;Uu<Op.length;Uu++){var Vu=Op[Uu],$S=Vu.toLowerCase(),WS=Vu[0].toUpperCase()+Vu.slice(1);ir($S,"on"+WS)}ir(Cp,"onAnimationEnd"),ir(Pp,"onAnimationIteration"),ir(Rp,"onAnimationStart"),ir("dblclick","onDoubleClick"),ir("focusin","onFocus"),ir("focusout","onBlur"),ir(Ap,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qi="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(" "),HS=new Set("cancel close invalid load scroll toggle".split(" ").concat(qi));function Lp(r,s,o){var c=r.type||"unknown-event";r.currentTarget=o,$1(c,s,void 0,r),r.currentTarget=null}function Dp(r,s){s=(s&4)!==0;for(var o=0;o<r.length;o++){var c=r[o],h=c.event;c=c.listeners;e:{var m=void 0;if(s)for(var v=c.length-1;0<=v;v--){var _=c[v],C=_.instance,U=_.currentTarget;if(_=_.listener,C!==m&&h.isPropagationStopped())break e;Lp(h,_,U),m=C}else for(v=0;v<c.length;v++){if(_=c[v],C=_.instance,U=_.currentTarget,_=_.listener,C!==m&&h.isPropagationStopped())break e;Lp(h,_,U),m=C}}}if(ta)throw r=vu,ta=!1,vu=null,r}function Ue(r,s){var o=s[Gu];o===void 0&&(o=s[Gu]=new Set);var c=r+"__bubble";o.has(c)||(jp(s,r,2,!1),o.add(c))}function zu(r,s,o){var c=0;s&&(c|=4),jp(o,r,c,s)}var va="_reactListening"+Math.random().toString(36).slice(2);function Ki(r){if(!r[va]){r[va]=!0,i.forEach(function(o){o!=="selectionchange"&&(HS.has(o)||zu(o,!1,r),zu(o,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[va]||(s[va]=!0,zu("selectionchange",!1,s))}}function jp(r,s,o,c){switch(sp(s)){case 1:var h=iS;break;case 4:h=oS;break;default:h=_u}o=h.bind(null,s,o,r),h=void 0,!yu||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(h=!0),c?h!==void 0?r.addEventListener(s,o,{capture:!0,passive:h}):r.addEventListener(s,o,!0):h!==void 0?r.addEventListener(s,o,{passive:h}):r.addEventListener(s,o,!1)}function $u(r,s,o,c,h){var m=c;if((s&1)===0&&(s&2)===0&&c!==null)e:for(;;){if(c===null)return;var v=c.tag;if(v===3||v===4){var _=c.stateNode.containerInfo;if(_===h||_.nodeType===8&&_.parentNode===h)break;if(v===4)for(v=c.return;v!==null;){var C=v.tag;if((C===3||C===4)&&(C=v.stateNode.containerInfo,C===h||C.nodeType===8&&C.parentNode===h))return;v=v.return}for(;_!==null;){if(v=Ur(_),v===null)return;if(C=v.tag,C===5||C===6){c=m=v;continue e}_=_.parentNode}}c=c.return}Uh(function(){var U=m,H=pu(o),q=[];e:{var W=Np.get(r);if(W!==void 0){var J=Pu,ne=r;switch(r){case"keypress":if(fa(o)===0)break e;case"keydown":case"keyup":J=SS;break;case"focusin":ne="focus",J=Nu;break;case"focusout":ne="blur",J=Nu;break;case"beforeblur":case"afterblur":J=Nu;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=ap;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=uS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=ES;break;case Cp:case Pp:case Rp:J=fS;break;case Ap:J=TS;break;case"scroll":J=aS;break;case"wheel":J=PS;break;case"copy":case"cut":case"paste":J=pS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=up}var oe=(s&4)!==0,Je=!oe&&r==="scroll",M=oe?W!==null?W+"Capture":null:W;oe=[];for(var O=U,F;O!==null;){F=O;var Q=F.stateNode;if(F.tag===5&&Q!==null&&(F=Q,M!==null&&(Q=Ri(O,M),Q!=null&&oe.push(Qi(O,Q,F)))),Je)break;O=O.return}0<oe.length&&(W=new J(W,ne,null,o,H),q.push({event:W,listeners:oe}))}}if((s&7)===0){e:{if(W=r==="mouseover"||r==="pointerover",J=r==="mouseout"||r==="pointerout",W&&o!==hu&&(ne=o.relatedTarget||o.fromElement)&&(Ur(ne)||ne[Mn]))break e;if((J||W)&&(W=H.window===H?H:(W=H.ownerDocument)?W.defaultView||W.parentWindow:window,J?(ne=o.relatedTarget||o.toElement,J=U,ne=ne?Ur(ne):null,ne!==null&&(Je=Br(ne),ne!==Je||ne.tag!==5&&ne.tag!==6)&&(ne=null)):(J=null,ne=U),J!==ne)){if(oe=ap,Q="onMouseLeave",M="onMouseEnter",O="mouse",(r==="pointerout"||r==="pointerover")&&(oe=up,Q="onPointerLeave",M="onPointerEnter",O="pointer"),Je=J==null?W:Ds(J),F=ne==null?W:Ds(ne),W=new oe(Q,O+"leave",J,o,H),W.target=Je,W.relatedTarget=F,Q=null,Ur(H)===U&&(oe=new oe(M,O+"enter",ne,o,H),oe.target=F,oe.relatedTarget=Je,Q=oe),Je=Q,J&&ne)t:{for(oe=J,M=ne,O=0,F=oe;F;F=Os(F))O++;for(F=0,Q=M;Q;Q=Os(Q))F++;for(;0<O-F;)oe=Os(oe),O--;for(;0<F-O;)M=Os(M),F--;for(;O--;){if(oe===M||M!==null&&oe===M.alternate)break t;oe=Os(oe),M=Os(M)}oe=null}else oe=null;J!==null&&Mp(q,W,J,oe,!1),ne!==null&&Je!==null&&Mp(q,Je,ne,oe,!0)}}e:{if(W=U?Ds(U):window,J=W.nodeName&&W.nodeName.toLowerCase(),J==="select"||J==="input"&&W.type==="file")var ae=jS;else if(mp(W))if(yp)ae=BS;else{ae=IS;var ce=MS}else(J=W.nodeName)&&J.toLowerCase()==="input"&&(W.type==="checkbox"||W.type==="radio")&&(ae=FS);if(ae&&(ae=ae(r,U))){gp(q,ae,o,H);break e}ce&&ce(r,W,U),r==="focusout"&&(ce=W._wrapperState)&&ce.controlled&&W.type==="number"&&dn(W,"number",W.value)}switch(ce=U?Ds(U):window,r){case"focusin":(mp(ce)||ce.contentEditable==="true")&&(As=ce,Iu=U,Hi=null);break;case"focusout":Hi=Iu=As=null;break;case"mousedown":Fu=!0;break;case"contextmenu":case"mouseup":case"dragend":Fu=!1,_p(q,o,H);break;case"selectionchange":if(zS)break;case"keydown":case"keyup":_p(q,o,H)}var de;if(Lu)e:{switch(r){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else Rs?hp(r,o)&&(ve="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(ve="onCompositionStart");ve&&(cp&&o.locale!=="ko"&&(Rs||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&Rs&&(de=ip()):(sr=H,Cu="value"in sr?sr.value:sr.textContent,Rs=!0)),ce=wa(U,ve),0<ce.length&&(ve=new lp(ve,r,null,o,H),q.push({event:ve,listeners:ce}),de?ve.data=de:(de=pp(o),de!==null&&(ve.data=de)))),(de=AS?NS(r,o):OS(r,o))&&(U=wa(U,"onBeforeInput"),0<U.length&&(H=new lp("onBeforeInput","beforeinput",null,o,H),q.push({event:H,listeners:U}),H.data=de))}Dp(q,s)})}function Qi(r,s,o){return{instance:r,listener:s,currentTarget:o}}function wa(r,s){for(var o=s+"Capture",c=[];r!==null;){var h=r,m=h.stateNode;h.tag===5&&m!==null&&(h=m,m=Ri(r,o),m!=null&&c.unshift(Qi(r,m,h)),m=Ri(r,s),m!=null&&c.push(Qi(r,m,h))),r=r.return}return c}function Os(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Mp(r,s,o,c,h){for(var m=s._reactName,v=[];o!==null&&o!==c;){var _=o,C=_.alternate,U=_.stateNode;if(C!==null&&C===c)break;_.tag===5&&U!==null&&(_=U,h?(C=Ri(o,m),C!=null&&v.unshift(Qi(o,C,_))):h||(C=Ri(o,m),C!=null&&v.push(Qi(o,C,_)))),o=o.return}v.length!==0&&r.push({event:s,listeners:v})}var qS=/\r\n?/g,KS=/\u0000|\uFFFD/g;function Ip(r){return(typeof r=="string"?r:""+r).replace(qS,` 38`).replace(KS,"")}function xa(r,s,o){if(s=Ip(s),Ip(r)!==s&&o)throw Error(n(425))}function Sa(){}var Wu=null,Hu=null;function qu(r,s){return r==="textarea"||r==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Ku=typeof setTimeout=="function"?setTimeout:void 0,QS=typeof clearTimeout=="function"?clearTimeout:void 0,Fp=typeof Promise=="function"?Promise:void 0,GS=typeof queueMicrotask=="function"?queueMicrotask:typeof Fp<"u"?function(r){return Fp.resolve(null).then(r).catch(XS)}:Ku;function XS(r){setTimeout(function(){throw r})}function Qu(r,s){var o=s,c=0;do{var h=o.nextSibling;if(r.removeChild(o),h&&h.nodeType===8)if(o=h.data,o==="/$"){if(c===0){r.removeChild(h),Fi(s);return}c--}else o!=="$"&&o!=="$?"&&o!=="$!"||c++;o=h}while(o);Fi(s)}function or(r){for(;r!=null;r=r.nextSibling){var s=r.nodeType;if(s===1||s===3)break;if(s===8){if(s=r.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return r}function Bp(r){r=r.previousSibling;for(var s=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"){if(s===0)return r;s--}else o==="/$"&&s++}r=r.previousSibling}return null}var Ls=Math.random().toString(36).slice(2),En="__reactFiber$"+Ls,Gi="__reactProps$"+Ls,Mn="__reactContainer$"+Ls,Gu="__reactEvents$"+Ls,YS="__reactListeners$"+Ls,JS="__reactHandles$"+Ls;function Ur(r){var s=r[En];if(s)return s;for(var o=r.parentNode;o;){if(s=o[Mn]||o[En]){if(o=s.alternate,s.child!==null||o!==null&&o.child!==null)for(r=Bp(r);r!==null;){if(o=r[En])return o;r=Bp(r)}return s}r=o,o=r.parentNode}return null}function Xi(r){return r=r[En]||r[Mn],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Ds(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function ba(r){return r[Gi]||null}var Xu=[],js=-1;function ar(r){return{current:r}}function Ve(r){0>js||(r.current=Xu[js],Xu[js]=null,js--)}function Fe(r,s){js++,Xu[js]=r.current,r.current=s}var lr={},wt=ar(lr),Nt=ar(!1),Vr=lr;function Ms(r,s){var o=r.type.contextTypes;if(!o)return lr;var c=r.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===s)return c.__reactInternalMemoizedMaskedChildContext;var h={},m;
vendor: 4,188 bytes, line 38
38for(m in o)h[m]=s[m];return c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=s,r.__reactInternalMemoizedMaskedChildContext=h),h}function Ot(r){return r=r.childContextTypes,r!=null}function ka(){Ve(Nt),Ve(wt)}function Up(r,s,o){if(wt.current!==lr)throw Error(n(168));Fe(wt,s),Fe(Nt,o)}function Vp(r,s,o){var c=r.stateNode;if(s=s.childContextTypes,typeof c.getChildContext!="function")return o;c=c.getChildContext();for(var h in c)if(!(h in s))throw Error(n(108,xe(r)||"Unknown",h));return V({},o,c)}function Ea(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||lr,Vr=wt.current,Fe(wt,r),Fe(Nt,Nt.current),!0}function zp(r,s,o){var c=r.stateNode;if(!c)throw Error(n(169));o?(r=Vp(r,s,Vr),c.__reactInternalMemoizedMergedChildContext=r,Ve(Nt),Ve(wt),Fe(wt,r)):Ve(Nt),Fe(Nt,o)}var In=null,_a=!1,Yu=!1;function $p(r){In===null?In=[r]:In.push(r)}function ZS(r){_a=!0,$p(r)}function ur(){if(!Yu&&In!==null){Yu=!0;var r=0,s=Ie;try{var o=In;for(Ie=1;r<o.length;r++){var c=o[r];do c=c(!0);while(c!==null)}In=null,_a=!1}catch(h){throw In!==null&&(In=In.slice(r+1)),Hh(wu,ur),h}finally{Ie=s,Yu=!1}}return null}var Is=[],Fs=0,Ta=null,Ca=0,Xt=[],Yt=0,zr=null,Fn=1,Bn="";function $r(r,s){Is[Fs++]=Ca,Is[Fs++]=Ta,Ta=r,Ca=s}function Wp(r,s,o){Xt[Yt++]=Fn,Xt[Yt++]=Bn,Xt[Yt++]=zr,zr=r;var c=Fn;r=Bn;var h=32-fn(c)-1;c&=~(1<<h),o+=1;var m=32-fn(s)+h;if(30<m){var v=h-h%5;m=(c&(1<<v)-1).toString(32),c>>=v,h-=v,Fn=1<<32-fn(s)+h|o<<h|c,Bn=m+r}else Fn=1<<m|o<<h|c,Bn=r}function Ju(r){r.return!==null&&($r(r,1),Wp(r,1,0))}function Zu(r){for(;r===Ta;)Ta=Is[--Fs],Is[Fs]=null,Ca=Is[--Fs],Is[Fs]=null;for(;r===zr;)zr=Xt[--Yt],Xt[Yt]=null,Bn=Xt[--Yt],Xt[Yt]=null,Fn=Xt[--Yt],Xt[Yt]=null}var zt=null,$t=null,$e=!1,pn=null;function Hp(r,s){var o=tn(5,null,null,0);o.elementType="DELETED",o.stateNode=s,o.return=r,s=r.deletions,s===null?(r.deletions=[o],r.flags|=16):s.push(o)}function qp(r,s){switch(r.tag){case 5:var o=r.type;return s=s.nodeType!==1||o.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(r.stateNode=s,zt=r,$t=or(s.firstChild),!0):!1;case 6:return s=r.pendingProps===""||s.nodeType!==3?null:s,s!==null?(r.stateNode=s,zt=r,$t=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(o=zr!==null?{id:Fn,overflow:Bn}:null,r.memoizedState={dehydrated:s,treeContext:o,retryLane:1073741824},o=tn(18,null,null,0),o.stateNode=s,o.return=r,r.child=o,zt=r,$t=null,!0):!1;default:return!1}}function ec(r){return(r.mode&1)!==0&&(r.flags&128)===0}function tc(r){if($e){var s=$t;if(s){var o=s;if(!qp(r,s)){if(ec(r))throw Error(n(418));s=or(o.nextSibling);var c=zt;s&&qp(r,s)?Hp(c,o):(r.flags=r.flags&-4097|2,$e=!1,zt=r)}}else{if(ec(r))throw Error(n(418));r.flags=r.flags&-4097|2,$e=!1,zt=r}}}function Kp(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;zt=r}function Pa(r){if(r!==zt)return!1;if(!$e)return Kp(r),$e=!0,!1;var s;if((s=r.tag!==3)&&!(s=r.tag!==5)&&(s=r.type,s=s!=="head"&&s!=="body"&&!qu(r.type,r.memoizedProps)),s&&(s=$t)){if(ec(r))throw Qp(),Error(n(418));for(;s;)Hp(r,s),s=or(s.nextSibling)}if(Kp(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,s=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"){if(s===0){$t=or(r.nextSibling);break e}s--}else o!=="$"&&o!=="$!"&&o!=="$?"||s++}r=r.nextSibling}$t=null}}else $t=zt?or(r.stateNode.nextSibling):null;return!0}function Qp(){for(var r=$t;r;)r=or(r.nextSibling)}function Bs(){$t=zt=null,$e=!1}function nc(r){pn===null?pn=[r]:pn.push(r)}var eb=L.ReactCurrentBatchConfig;function Yi(r,s,o){if(r=o.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(n(309));var c=o.stateNode}if(!c)throw Error(n(147,r));var h=c,m=""+r;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===m?s.ref:(s=function(v){var _=h.refs;v===null?delete _[m]:_[m]=v},s._stringRef=m,s)}if(typeof r!="string")throw Error(n(284));if(!o._owner)throw Error(n(290,r))}return r}function Ra(r,s){throw r=Object.prototype.toString.call(s),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r))}function Gp(r){var s=r._init;return s(r._payload)}
vendor: 2,592 bytes, line 38
38function Xp(r){function s(M,O){if(r){var F=M.deletions;F===null?(M.deletions=[O],M.flags|=16):F.push(O)}}function o(M,O){if(!r)return null;for(;O!==null;)s(M,O),O=O.sibling;return null}function c(M,O){for(M=new Map;O!==null;)O.key!==null?M.set(O.key,O):M.set(O.index,O),O=O.sibling;return M}function h(M,O){return M=yr(M,O),M.index=0,M.sibling=null,M}function m(M,O,F){return M.index=F,r?(F=M.alternate,F!==null?(F=F.index,F<O?(M.flags|=2,O):F):(M.flags|=2,O)):(M.flags|=1048576,O)}function v(M){return r&&M.alternate===null&&(M.flags|=2),M}function _(M,O,F,Q){return O===null||O.tag!==6?(O=Kc(F,M.mode,Q),O.return=M,O):(O=h(O,F),O.return=M,O)}function C(M,O,F,Q){var ae=F.type;return ae===X?H(M,O,F.props.children,Q,F.key):O!==null&&(O.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===fe&&Gp(ae)===O.type)?(Q=h(O,F.props),Q.ref=Yi(M,O,F),Q.return=M,Q):(Q=Za(F.type,F.key,F.props,null,M.mode,Q),Q.ref=Yi(M,O,F),Q.return=M,Q)}function U(M,O,F,Q){return O===null||O.tag!==4||O.stateNode.containerInfo!==F.containerInfo||O.stateNode.implementation!==F.implementation?(O=Qc(F,M.mode,Q),O.return=M,O):(O=h(O,F.children||[]),O.return=M,O)}function H(M,O,F,Q,ae){return O===null||O.tag!==7?(O=Yr(F,M.mode,Q,ae),O.return=M,O):(O=h(O,F),O.return=M,O)}function q(M,O,F){if(typeof O=="string"&&O!==""||typeof O=="number")return O=Kc(""+O,M.mode,F),O.return=M,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case I:return F=Za(O.type,O.key,O.props,null,M.mode,F),F.ref=Yi(M,null,O),F.return=M,F;case z:return O=Qc(O,M.mode,F),O.return=M,O;case fe:var Q=O._init;return q(M,Q(O._payload),F)}if(Jn(O)||se(O))return O=Yr(O,M.mode,F,null),O.return=M,O;Ra(M,O)}return null}function W(M,O,F,Q){var ae=O!==null?O.key:null;if(typeof F=="string"&&F!==""||typeof F=="number")return ae!==null?null:_(M,O,""+F,Q);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case I:return F.key===ae?C(M,O,F,Q):null;case z:return F.key===ae?U(M,O,F,Q):null;case fe:return ae=F._init,W(M,O,ae(F._payload),Q)}if(Jn(F)||se(F))return ae!==null?null:H(M,O,F,Q,null);Ra(M,F)}return null}function J(M,O,F,Q,ae){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return M=M.get(F)||null,_(O,M,""+Q,ae);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case I:return M=M.get(Q.key===null?F:Q.key)||null,C(O,M,Q,ae);case z:return M=M.get(Q.key===null?F:Q.key)||null,U(O,M,Q,ae);case fe:var ce=Q._init;return J(M,O,F,ce(Q._payload),ae)}if(Jn(Q)||se(Q))return M=M.get(F)||null,H(O,M,Q,ae,null);Ra(O,Q)}return null}function ne(M,O,F,Q){for(var ae=null,ce=null,de=O,ve=O=0,ut=null;de!==null&&ve<F.length;ve++){de.index>
vendor: 1,093 bytes, line 38
38ve?(ut=de,de=null):ut=de.sibling;var Oe=W(M,de,F[ve],Q);if(Oe===null){de===null&&(de=ut);break}r&&de&&Oe.alternate===null&&s(M,de),O=m(Oe,O,ve),ce===null?ae=Oe:ce.sibling=Oe,ce=Oe,de=ut}if(ve===F.length)return o(M,de),$e&&$r(M,ve),ae;if(de===null){for(;ve<F.length;ve++)de=q(M,F[ve],Q),de!==null&&(O=m(de,O,ve),ce===null?ae=de:ce.sibling=de,ce=de);return $e&&$r(M,ve),ae}for(de=c(M,de);ve<F.length;ve++)ut=J(de,M,ve,F[ve],Q),ut!==null&&(r&&ut.alternate!==null&&de.delete(ut.key===null?ve:ut.key),O=m(ut,O,ve),ce===null?ae=ut:ce.sibling=ut,ce=ut);return r&&de.forEach(function(vr){return s(M,vr)}),$e&&$r(M,ve),ae}function oe(M,O,F,Q){var ae=se(F);if(typeof ae!="function")throw Error(n(150));if(F=ae.call(F),F==null)throw Error(n(151));for(var ce=ae=null,de=O,ve=O=0,ut=null,Oe=F.next();de!==null&&!Oe.done;ve++,Oe=F.next()){de.index>ve?(ut=de,de=null):ut=de.sibling;var vr=W(M,de,Oe.value,Q);if(vr===null){de===null&&(de=ut);break}r&&de&&vr.alternate===null&&s(M,de),O=m(vr,O,ve),ce===null?ae=vr:ce.sibling=vr,ce=vr,de=ut}if(Oe.done)return o(M,de),$e&&$r(M,ve),ae;if(de===null){for(;!Oe.done;
vendor: 11,957 bytes, line 38
38ve++,Oe=F.next())Oe=q(M,Oe.value,Q),Oe!==null&&(O=m(Oe,O,ve),ce===null?ae=Oe:ce.sibling=Oe,ce=Oe);return $e&&$r(M,ve),ae}for(de=c(M,de);!Oe.done;ve++,Oe=F.next())Oe=J(de,M,ve,Oe.value,Q),Oe!==null&&(r&&Oe.alternate!==null&&de.delete(Oe.key===null?ve:Oe.key),O=m(Oe,O,ve),ce===null?ae=Oe:ce.sibling=Oe,ce=Oe);return r&&de.forEach(function(Lb){return s(M,Lb)}),$e&&$r(M,ve),ae}function Je(M,O,F,Q){if(typeof F=="object"&&F!==null&&F.type===X&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case I:e:{for(var ae=F.key,ce=O;ce!==null;){if(ce.key===ae){if(ae=F.type,ae===X){if(ce.tag===7){o(M,ce.sibling),O=h(ce,F.props.children),O.return=M,M=O;break e}}else if(ce.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===fe&&Gp(ae)===ce.type){o(M,ce.sibling),O=h(ce,F.props),O.ref=Yi(M,ce,F),O.return=M,M=O;break e}o(M,ce);break}else s(M,ce);ce=ce.sibling}F.type===X?(O=Yr(F.props.children,M.mode,Q,F.key),O.return=M,M=O):(Q=Za(F.type,F.key,F.props,null,M.mode,Q),Q.ref=Yi(M,O,F),Q.return=M,M=Q)}return v(M);case z:e:{for(ce=F.key;O!==null;){if(O.key===ce)if(O.tag===4&&O.stateNode.containerInfo===F.containerInfo&&O.stateNode.implementation===F.implementation){o(M,O.sibling),O=h(O,F.children||[]),O.return=M,M=O;break e}else{o(M,O);break}else s(M,O);O=O.sibling}O=Qc(F,M.mode,Q),O.return=M,M=O}return v(M);case fe:return ce=F._init,Je(M,O,ce(F._payload),Q)}if(Jn(F))return ne(M,O,F,Q);if(se(F))return oe(M,O,F,Q);Ra(M,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,O!==null&&O.tag===6?(o(M,O.sibling),O=h(O,F),O.return=M,M=O):(o(M,O),O=Kc(F,M.mode,Q),O.return=M,M=O),v(M)):o(M,O)}return Je}var Us=Xp(!0),Yp=Xp(!1),Aa=ar(null),Na=null,Vs=null,rc=null;function sc(){rc=Vs=Na=null}function ic(r){var s=Aa.current;Ve(Aa),r._currentValue=s}function oc(r,s,o){for(;r!==null;){var c=r.alternate;if((r.childLanes&s)!==s?(r.childLanes|=s,c!==null&&(c.childLanes|=s)):c!==null&&(c.childLanes&s)!==s&&(c.childLanes|=s),r===o)break;r=r.return}}function zs(r,s){Na=r,rc=Vs=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&s)!==0&&(Lt=!0),r.firstContext=null)}function Jt(r){var s=r._currentValue;if(rc!==r)if(r={context:r,memoizedValue:s,next:null},Vs===null){if(Na===null)throw Error(n(308));Vs=r,Na.dependencies={lanes:0,firstContext:r}}else Vs=Vs.next=r;return s}var Wr=null;function ac(r){Wr===null?Wr=[r]:Wr.push(r)}function Jp(r,s,o,c){var h=s.interleaved;return h===null?(o.next=o,ac(s)):(o.next=h.next,h.next=o),s.interleaved=o,Un(r,c)}function Un(r,s){r.lanes|=s;var o=r.alternate;for(o!==null&&(o.lanes|=s),o=r,r=r.return;r!==null;)r.childLanes|=s,o=r.alternate,o!==null&&(o.childLanes|=s),o=r,r=r.return;return o.tag===3?o.stateNode:null}var cr=!1;function lc(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zp(r,s){r=r.updateQueue,s.updateQueue===r&&(s.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Vn(r,s){return{eventTime:r,lane:s,tag:0,payload:null,callback:null,next:null}}function dr(r,s,o){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Ne&2)!==0){var h=c.pending;return h===null?s.next=s:(s.next=h.next,h.next=s),c.pending=s,Un(r,o)}return h=c.interleaved,h===null?(s.next=s,ac(c)):(s.next=h.next,h.next=s),c.interleaved=s,Un(r,o)}function Oa(r,s,o){if(s=s.updateQueue,s!==null&&(s=s.shared,(o&4194240)!==0)){var c=s.lanes;c&=r.pendingLanes,o|=c,s.lanes=o,bu(r,o)}}function em(r,s){var o=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var h=null,m=null;if(o=o.firstBaseUpdate,o!==null){do{var v={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};m===null?h=m=v:m=m.next=v,o=o.next}while(o!==null);m===null?h=m=s:m=m.next=s}else h=m=s;o={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:m,shared:c.shared,effects:c.effects},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=s:r.next=s,o.lastBaseUpdate=s}function La(r,s,o,c){var h=r.updateQueue;cr=!1;var m=h.firstBaseUpdate,v=h.lastBaseUpdate,_=h.shared.pending;if(_!==null){h.shared.pending=null;var C=_,U=C.next;C.next=null,v===null?m=U:v.next=U,v=C;var H=r.alternate;H!==null&&(H=H.updateQueue,_=H.lastBaseUpdate,_!==v&&(_===null?H.firstBaseUpdate=U:_.next=U,H.lastBaseUpdate=C))}if(m!==null){var q=h.baseState;v=0,H=U=C=null,_=m;do{var W=_.lane,J=_.eventTime;if((c&W)===W){H!==null&&(H=H.next={eventTime:J,lane:0,tag:_.tag,payload:_.payload,callback:_.callback,next:null});e:{var ne=r,oe=_;switch(W=s,J=o,oe.tag){case 1:if(ne=oe.payload,typeof ne=="function"){q=ne.call(J,q,W);break e}q=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=oe.payload,W=typeof ne=="function"?ne.call(J,q,W):ne,W==null)break e;q=V({},q,W);break e;case 2:cr=!0}}_.callback!==null&&_.lane!==0&&(r.flags|=64,W=h.effects,W===null?h.effects=[_]:W.push(_))}else J={eventTime:J,lane:W,tag:_.tag,payload:_.payload,callback:_.callback,next:null},H===null?(U=H=J,C=q):H=H.next=J,v|=W;if(_=_.next,_===null){if(_=h.shared.pending,_===null)break;W=_,_=W.next,W.next=null,h.lastBaseUpdate=W,h.shared.pending=null}}while(!0);if(H===null&&(C=q),h.baseState=C,h.firstBaseUpdate=U,h.lastBaseUpdate=H,s=h.shared.interleaved,s!==null){h=s;do v|=h.lane,h=h.next;while(h!==s)}else m===null&&(h.shared.lanes=0);Kr|=v,r.lanes=v,r.memoizedState=q}}function tm(r,s,o){if(r=s.effects,s.effects=null,r!==null)for(s=0;s<r.length;s++){var c=r[s],h=c.callback;if(h!==null){if(c.callback=null,c=o,typeof h!="function")throw Error(n(191,h));h.call(c)}}}var Ji={},_n=ar(Ji),Zi=ar(Ji),eo=ar(Ji);function Hr(r){if(r===Ji)throw Error(n(174));return r}function uc(r,s){switch(Fe(eo,s),Fe(Zi,r),Fe(_n,Ji),r=s.nodeType,r){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:cu(null,"");break;default:r=r===8?s.parentNode:s,s=r.namespaceURI||null,r=r.tagName,s=cu(s,r)}Ve(_n),Fe(_n,s)}function $s(){Ve(_n),Ve(Zi),Ve(eo)}function nm(r){Hr(eo.current);var s=Hr(_n.current),o=cu(s,r.type);s!==o&&(Fe(Zi,r),Fe(_n,o))}function cc(r){Zi.current===r&&(Ve(_n),Ve(Zi))}var We=ar(0);function Da(r){for(var s=r;s!==null;){if(s.tag===13){var o=s.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var dc=[];function fc(){for(var r=0;r<dc.length;r++)dc[r]._workInProgressVersionPrimary=null;dc.length=0}var ja=L.ReactCurrentDispatcher,hc=L.ReactCurrentBatchConfig,qr=0,He=null,rt=null,at=null,Ma=!1,to=!1,no=0,tb=0;function xt(){throw Error(n(321))}function pc(r,s){if(s===null)return!1;for(var o=0;o<s.length&&o<r.length;o++)if(!hn(r[o],s[o]))return!1;return!0}function mc(r,s,o,c,h,m){if(qr=m,He=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,ja.current=r===null||r.memoizedState===null?ib:ob,r=o(c,h),to){m=0;do{if(to=!1,no=0,25<=m)throw Error(n(301));m+=1,at=rt=null,s.updateQueue=null,ja.current=ab,r=o(c,h)}while(to)}if(ja.current=Ba,s=rt!==null&&rt.next!==null,qr=0,at=rt=He=null,Ma=!1,s)throw Error(n(300));return r}function gc(){var r=no!==0;return no=0,r}function Tn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?He.memoizedState=at=r:at=at.next=r,at}function Zt(){if(rt===null){var r=He.alternate;r=r!==null?r.memoizedState:null}else r=rt.next;var s=at===null?He.memoizedState:at.next;if(s!==null)at=s,rt=r;else{if(r===null)throw Error(n(310));rt=r,r={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},at===null?He.memoizedState=at=r:at=at.next=r}return at}function ro(r,s){return typeof s=="function"?s(r):s}function yc(r){var s=Zt(),o=s.queue;if(o===null)throw Error(n(311));o.lastRenderedReducer=r;var c=rt,h=c.baseQueue,m=o.pending;if(m!==null){if(h!==null){var v=h.next;h.next=m.next,m.next=v}c.baseQueue=h=m,o.pending=null}if(h!==null){m=h.next,c=c.baseState;var _=v=null,C=null,U=m;do{var H=U.lane;if((qr&H)===H)C!==null&&(C=C.next={lane:0,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),c=U.hasEagerState?U.eagerState:r(c,U.action);else{var q={lane:H,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null};C===null?(_=C=q,v=c):C=C.next=q,He.lanes|=H,Kr|=H}U=U.next}while(U!==null&&U!==m);C===null?v=c:C.next=_,hn(c,s.memoizedState)||(Lt=!0),s.memoizedState=c,s.baseState=v,s.baseQueue=C,o.lastRenderedState=c}if(r=o.interleaved,r!==null){h=r;do m=h.lane,He.lanes|=m,Kr|=m,h=h.next;while(h!==r)}else h===null&&(o.lanes=0);return[s.memoizedState,o.dispatch]}function vc(r){var s=Zt(),o=s.queue;if(o===null)throw Error(n(311));o.lastRenderedReducer=r;var c=o.dispatch,h=o.pending,m=s.memoizedState;if(h!==null){o.pending=null;var v=h=h.next;do m=r(m,v.action),v=v.next;while(v!==h);hn(m,s.memoizedState)||(Lt=!0),s.memoizedState=m,s.baseQueue===null&&(s.baseState=m),o.lastRenderedState=m}return[m,c]}function rm(){}function sm(r,s){var o=He,c=Zt(),h=s(),m=!hn(c.memoizedState,h);if(m&&(c.memoizedState=h,Lt=!0),c=c.queue,wc(am.bind(null,o,c,r),[r]),c.getSnapshot!==s||m||at!==null&&at.memoizedState.tag&1){if(o.flags|=2048,so(9,om.bind(null,o,c,h,s),void 0,null),lt===null)throw Error(n(349));(qr&30)!==0||im(o,s,h)}return h}function im(r,s,o){r.flags|=16384,r={getSnapshot:s,value:o},s=He.updateQueue,s===null?(s={lastEffect:null,stores:null},He.updateQueue=s,s.stores=[r]):(o=s.stores,o===null?s.stores=[r]:o.push(r))}function om(r,s,o,c){s.value=o,s.getSnapshot=c,lm(s)&&um(r)}function am(r,s,o){return o(function(){lm(s)&&um(r)})}function lm(r){var s=r.getSnapshot;r=r.value;try{var o=s();return!hn(r,o)}catch{return!0}}function um(r){var s=Un(r,1);s!==null&&vn(s,r,1,-1)}function cm(r){var s=Tn();return typeof r=="function"&&(r=r()),s.memoizedState=s.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ro,lastRenderedState:r},s.queue=r,r=r.dispatch=sb.bind(null,He,r),[s.memoizedState,r]}function so(r,s,o,c){return r={tag:r,create:s,destroy:o,deps:c,next:null},s=He.updateQueue,s===null?(s={lastEffect:null,stores:null},He.updateQueue=s,s.lastEffect=r.next=r):(o=s.lastEffect,o===null?s.lastEffect=r.next=r:(c=o.next,o.next=r,r.next=c,s.lastEffect=r)),r}function dm(){return Zt().memoizedState}function Ia(r,s,o,c){var h=Tn();He.flags|=r,h.memoizedState=so(1|s,o,void 0,c===void 0?null:c)}function Fa(r,s,o,c){var h=Zt();c=c===void 0?null:c;var m=void 0;if(rt!==null){var v=rt.memoizedState;if(m=v.destroy,c!==null&&pc(c,v.deps)){h.memoizedState=so(s,o,m,c);return}}He.flags|=r,h.memoizedState=so(1|s,o,m,c)}function fm(r,s){return Ia(8390656,8,r,s)}function wc(r,s){return Fa(2048,8,r,s)}function hm(r,s){return Fa(4,2,r,s)}function pm(r,s){return Fa(4,4,r,s)}function mm(r,s){if(typeof s=="function")return r=r(),s(r),function(){s(null)};if(s!=null)return r=r(),s.current=r,function(){s.current=null}}function gm(r,s,o){return o=o!=null?o.concat([r]):null,Fa(4,4,mm.bind(null,s,r),o)}function xc(){}function ym(r,s){var o=Zt();s=s===void 0?null:s;var c=o.memoizedState;return c!==null&&s!==null&&pc(s,c[1])?c[0]:(o.memoizedState=[r,s],r)}function vm(r,s){var o=Zt();s=s===void 0?null:s;var c=o.memoizedState;return c!==null&&s!==null&&pc(s,c[1])?c[0]:(r=r(),o.memoizedState=[r,s],r)}function wm(r,s,o){return(qr&21)===0?(r.baseState&&(r.baseState=!1,Lt=!0),r.memoizedState=o):(hn(o,s)||(o=Gh(),He.lanes|=o,Kr|=o,r.baseState=!0),s)}function nb(r,s){var o=Ie;Ie=o!==0&&4>o?o:4,r(!0);var c=hc.transition;hc.transition={};try{r(!1),s()}finally{Ie=o,hc.transition=c}}function xm(){return Zt().memoizedState}function rb(r,s,o){var c=mr(r);if(o={lane:c,action:o,hasEagerState:!1,eagerState:null,next:null},Sm(r))bm(s,o);
vendor: 5,089 bytes, line 38
38else if(o=Jp(r,s,o,c),o!==null){var h=Rt();vn(o,r,c,h),km(o,s,c)}}function sb(r,s,o){var c=mr(r),h={lane:c,action:o,hasEagerState:!1,eagerState:null,next:null};if(Sm(r))bm(s,h);else{var m=r.alternate;if(r.lanes===0&&(m===null||m.lanes===0)&&(m=s.lastRenderedReducer,m!==null))try{var v=s.lastRenderedState,_=m(v,o);if(h.hasEagerState=!0,h.eagerState=_,hn(_,v)){var C=s.interleaved;C===null?(h.next=h,ac(s)):(h.next=C.next,C.next=h),s.interleaved=h;return}}catch{}finally{}o=Jp(r,s,h,c),o!==null&&(h=Rt(),vn(o,r,c,h),km(o,s,c))}}function Sm(r){var s=r.alternate;return r===He||s!==null&&s===He}function bm(r,s){to=Ma=!0;var o=r.pending;o===null?s.next=s:(s.next=o.next,o.next=s),r.pending=s}function km(r,s,o){if((o&4194240)!==0){var c=s.lanes;c&=r.pendingLanes,o|=c,s.lanes=o,bu(r,o)}}var Ba={readContext:Jt,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useInsertionEffect:xt,useLayoutEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useMutableSource:xt,useSyncExternalStore:xt,useId:xt,unstable_isNewReconciler:!1},ib={readContext:Jt,useCallback:function(r,s){return Tn().memoizedState=[r,s===void 0?null:s],r},useContext:Jt,useEffect:fm,useImperativeHandle:function(r,s,o){return o=o!=null?o.concat([r]):null,Ia(4194308,4,mm.bind(null,s,r),o)},useLayoutEffect:function(r,s){return Ia(4194308,4,r,s)},useInsertionEffect:function(r,s){return Ia(4,2,r,s)},useMemo:function(r,s){var o=Tn();return s=s===void 0?null:s,r=r(),o.memoizedState=[r,s],r},useReducer:function(r,s,o){var c=Tn();return s=o!==void 0?o(s):s,c.memoizedState=c.baseState=s,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:s},c.queue=r,r=r.dispatch=rb.bind(null,He,r),[c.memoizedState,r]},useRef:function(r){var s=Tn();return r={current:r},s.memoizedState=r},useState:cm,useDebugValue:xc,useDeferredValue:function(r){return Tn().memoizedState=r},useTransition:function(){var r=cm(!1),s=r[0];return r=nb.bind(null,r[1]),Tn().memoizedState=r,[s,r]},useMutableSource:function(){},useSyncExternalStore:function(r,s,o){var c=He,h=Tn();if($e){if(o===void 0)throw Error(n(407));o=o()}else{if(o=s(),lt===null)throw Error(n(349));(qr&30)!==0||im(c,s,o)}h.memoizedState=o;var m={value:o,getSnapshot:s};return h.queue=m,fm(am.bind(null,c,m,r),[r]),c.flags|=2048,so(9,om.bind(null,c,m,o,s),void 0,null),o},useId:function(){var r=Tn(),s=lt.identifierPrefix;if($e){var o=Bn,c=Fn;o=(c&~(1<<32-fn(c)-1)).toString(32)+o,s=":"+s+"R"+o,o=no++,0<o&&(s+="H"+o.toString(32)),s+=":"}else o=tb++,s=":"+s+"r"+o.toString(32)+":";return r.memoizedState=s},unstable_isNewReconciler:!1},ob={readContext:Jt,useCallback:ym,useContext:Jt,useEffect:wc,useImperativeHandle:gm,useInsertionEffect:hm,useLayoutEffect:pm,useMemo:vm,useReducer:yc,useRef:dm,useState:function(){return yc(ro)},useDebugValue:xc,useDeferredValue:function(r){var s=Zt();return wm(s,rt.memoizedState,r)},useTransition:function(){var r=yc(ro)[0],s=Zt().memoizedState;return[r,s]},useMutableSource:rm,useSyncExternalStore:sm,useId:xm,unstable_isNewReconciler:!1},ab={readContext:Jt,useCallback:ym,useContext:Jt,useEffect:wc,useImperativeHandle:gm,useInsertionEffect:hm,useLayoutEffect:pm,useMemo:vm,useReducer:vc,useRef:dm,useState:function(){return vc(ro)},useDebugValue:xc,useDeferredValue:function(r){var s=Zt();return rt===null?s.memoizedState=r:wm(s,rt.memoizedState,r)},useTransition:function(){var r=vc(ro)[0],s=Zt().memoizedState;return[r,s]},useMutableSource:rm,useSyncExternalStore:sm,useId:xm,unstable_isNewReconciler:!1};function mn(r,s){if(r&&r.defaultProps){s=V({},s),r=r.defaultProps;for(var o in r)s[o]===void 0&&(s[o]=r[o]);return s}return s}function Sc(r,s,o,c){s=r.memoizedState,o=o(c,s),o=o==null?s:V({},s,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var Ua={isMounted:function(r){return(r=r._reactInternals)?Br(r)===r:!1},enqueueSetState:function(r,s,o){r=r._reactInternals;var c=Rt(),h=mr(r),m=Vn(c,h);m.payload=s,o!=null&&(m.callback=o),s=dr(r,m,h),s!==null&&(vn(s,r,h,c),Oa(s,r,h))},enqueueReplaceState:function(r,s,o){r=r._reactInternals;var c=Rt(),h=mr(r),m=Vn(c,h);m.tag=1,m.payload=s,o!=null&&(m.callback=o),s=dr(r,m,h),s!==null&&(vn(s,r,h,c),Oa(s,r,h))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var o=Rt(),c=mr(r),h=Vn(o,c);h.tag=2,s!=null&&(h.callback=s),s=dr(r,h,c),s!==null&&(vn(s,r,c,o),Oa(s,r,c))}};function Em(r,s,o,c,h,m,v){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,m,v):s.prototype&&s.prototype.isPureReactComponent?!Wi(o,c)||!Wi(h,m):!0}function _m(r,s,o){var c=!1,h=lr,m=s.contextType;return typeof m=="object"&&m!==null?m=Jt(m):(h=Ot(s)?Vr:wt.current,c=s.contextTypes,m=(c=c!=null)?Ms(r,h):lr),s=new s(o,m),r.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Ua,r.stateNode=s,s._reactInternals=r,c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=h,r.__reactInternalMemoizedMaskedChildContext=m),s}function Tm(r,s,o,c){r=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(o,c
vendor: 1,787 bytes, lines 38-40
38),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(o,c),s.state!==r&&Ua.enqueueReplaceState(s,s.state,null)}function bc(r,s,o,c){var h=r.stateNode;h.props=o,h.state=r.memoizedState,h.refs={},lc(r);var m=s.contextType;typeof m=="object"&&m!==null?h.context=Jt(m):(m=Ot(s)?Vr:wt.current,h.context=Ms(r,m)),h.state=r.memoizedState,m=s.getDerivedStateFromProps,typeof m=="function"&&(Sc(r,s,m,o),h.state=r.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(s=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),s!==h.state&&Ua.enqueueReplaceState(h,h.state,null),La(r,o,h,c),h.state=r.memoizedState),typeof h.componentDidMount=="function"&&(r.flags|=4194308)}function Ws(r,s){try{var o="",c=s;do o+=he(c),c=c.return;while(c);var h=o}catch(m){h=` 39Error generating stack: `+m.message+` 40`+m.stack}return{value:r,source:s,stack:h,digest:null}}function kc(r,s,o){return{value:r,source:null,stack:o??null,digest:s??null}}function Ec(r,s){try{console.error(s.value)}catch(o){setTimeout(function(){throw o})}}var lb=typeof WeakMap=="function"?WeakMap:Map;function Cm(r,s,o){o=Vn(-1,o),o.tag=3,o.payload={element:null};var c=s.value;return o.callback=function(){Ka||(Ka=!0,Bc=c),Ec(r,s)},o}function Pm(r,s,o){o=Vn(-1,o),o.tag=3;var c=r.type.getDerivedStateFromError;if(typeof c=="function"){var h=s.value;o.payload=function(){return c(h)},o.callback=function(){Ec(r,s)}}var m=r.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(o.callback=function(){Ec(r,s),typeof c!="function"&&(hr===null?hr=ne
vendor: 41,253 bytes, line 40
40w Set([this]):hr.add(this));var v=s.stack;this.componentDidCatch(s.value,{componentStack:v!==null?v:""})}),o}function Rm(r,s,o){var c=r.pingCache;if(c===null){c=r.pingCache=new lb;var h=new Set;c.set(s,h)}else h=c.get(s),h===void 0&&(h=new Set,c.set(s,h));h.has(o)||(h.add(o),r=bb.bind(null,r,s,o),s.then(r,r))}function Am(r){do{var s;if((s=r.tag===13)&&(s=r.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return r;r=r.return}while(r!==null);return null}function Nm(r,s,o,c,h){return(r.mode&1)===0?(r===s?r.flags|=65536:(r.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(s=Vn(-1,1),s.tag=2,dr(o,s,1))),o.lanes|=1),r):(r.flags|=65536,r.lanes=h,r)}var ub=L.ReactCurrentOwner,Lt=!1;function Pt(r,s,o,c){s.child=r===null?Yp(s,null,o,c):Us(s,r.child,o,c)}function Om(r,s,o,c,h){o=o.render;var m=s.ref;return zs(s,h),c=mc(r,s,o,c,m,h),o=gc(),r!==null&&!Lt?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~h,zn(r,s,h)):($e&&o&&Ju(s),s.flags|=1,Pt(r,s,c,h),s.child)}function Lm(r,s,o,c,h){if(r===null){var m=o.type;return typeof m=="function"&&!qc(m)&&m.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(s.tag=15,s.type=m,Dm(r,s,m,c,h)):(r=Za(o.type,null,c,s,s.mode,h),r.ref=s.ref,r.return=s,s.child=r)}if(m=r.child,(r.lanes&h)===0){var v=m.memoizedProps;if(o=o.compare,o=o!==null?o:Wi,o(v,c)&&r.ref===s.ref)return zn(r,s,h)}return s.flags|=1,r=yr(m,c),r.ref=s.ref,r.return=s,s.child=r}function Dm(r,s,o,c,h){if(r!==null){var m=r.memoizedProps;if(Wi(m,c)&&r.ref===s.ref)if(Lt=!1,s.pendingProps=c=m,(r.lanes&h)!==0)(r.flags&131072)!==0&&(Lt=!0);else return s.lanes=r.lanes,zn(r,s,h)}return _c(r,s,o,c,h)}function jm(r,s,o){var c=s.pendingProps,h=c.children,m=r!==null?r.memoizedState:null;if(c.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Fe(qs,Wt),Wt|=o;else{if((o&1073741824)===0)return r=m!==null?m.baseLanes|o:o,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:r,cachePool:null,transitions:null},s.updateQueue=null,Fe(qs,Wt),Wt|=r,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=m!==null?m.baseLanes:o,Fe(qs,Wt),Wt|=c}else m!==null?(c=m.baseLanes|o,s.memoizedState=null):c=o,Fe(qs,Wt),Wt|=c;return Pt(r,s,h,o),s.child}function Mm(r,s){var o=s.ref;(r===null&&o!==null||r!==null&&r.ref!==o)&&(s.flags|=512,s.flags|=2097152)}function _c(r,s,o,c,h){var m=Ot(o)?Vr:wt.current;return m=Ms(s,m),zs(s,h),o=mc(r,s,o,c,m,h),c=gc(),r!==null&&!Lt?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~h,zn(r,s,h)):($e&&c&&Ju(s),s.flags|=1,Pt(r,s,o,h),s.child)}function Im(r,s,o,c,h){if(Ot(o)){var m=!0;Ea(s)}else m=!1;if(zs(s,h),s.stateNode===null)za(r,s),_m(s,o,c),bc(s,o,c,h),c=!0;else if(r===null){var v=s.stateNode,_=s.memoizedProps;v.props=_;var C=v.context,U=o.contextType;typeof U=="object"&&U!==null?U=Jt(U):(U=Ot(o)?Vr:wt.current,U=Ms(s,U));var H=o.getDerivedStateFromProps,q=typeof H=="function"||typeof v.getSnapshotBeforeUpdate=="function";q||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(_!==c||C!==U)&&Tm(s,v,c,U),cr=!1;var W=s.memoizedState;v.state=W,La(s,c,v,h),C=s.memoizedState,_!==c||W!==C||Nt.current||cr?(typeof H=="function"&&(Sc(s,o,H,c),C=s.memoizedState),(_=cr||Em(s,o,_,c,W,C,U))?(q||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(s.flags|=4194308)):(typeof v.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=c,s.memoizedState=C),v.props=c,v.state=C,v.context=U,c=_):(typeof v.componentDidMount=="function"&&(s.flags|=4194308),c=!1)}else{v=s.stateNode,Zp(r,s),_=s.memoizedProps,U=s.type===s.elementType?_:mn(s.type,_),v.props=U,q=s.pendingProps,W=v.context,C=o.contextType,typeof C=="object"&&C!==null?C=Jt(C):(C=Ot(o)?Vr:wt.current,C=Ms(s,C));var J=o.getDerivedStateFromProps;(H=typeof J=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(_!==q||W!==C)&&Tm(s,v,c,C),cr=!1,W=s.memoizedState,v.state=W,La(s,c,v,h);var ne=s.memoizedState;_!==q||W!==ne||Nt.current||cr?(typeof J=="function"&&(Sc(s,o,J,c),ne=s.memoizedState),(U=cr||Em(s,o,U,c,W,ne,C)||!1)?(H||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(c,ne,C),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(c,ne,C)),typeof v.componentDidUpdate=="function"&&(s.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof v.componentDidUpdate!="function"||_===r.memoizedProps&&W===r.memoizedState||(s.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&W===r.memoizedState||(s.flags|=1024),s.memoizedProps=c,s.memoizedState=ne),v.props=c,v.state=ne,v.context=C,c=U):(typeof v.componentDidUpdate!="function"||_===r.memoizedProps&&W===r.memoizedState||(s.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&W===r.memoizedState||(s.flags|=1024),c=!1)}return Tc(r,s,o,c,m,h)}function Tc(r,s,o,c,h,m){Mm(r,s);var v=(s.flags&128)!==0;if(!c&&!v)return h&&zp(s,o,!1),zn(r,s,m);c=s.stateNode,ub.current=s;var _=v&&typeof o.getDerivedStateFromError!="function"?null:c.render();return s.flags|=1,r!==null&&v?(s.child=Us(s,r.child,null,m),s.child=Us(s,null,_,m)):Pt(r,s,_,m),s.memoizedState=c.state,h&&zp(s,o,!0),s.child}function Fm(r){var s=r.stateNode;s.pendingContext?Up(r,s.pendingContext,s.pendingContext!==s.context):s.context&&Up(r,s.context,!1),uc(r,s.containerInfo)}function Bm(r,s,o,c,h){return Bs(),nc(h),s.flags|=256,Pt(r,s,o,c),s.child}var Cc={dehydrated:null,treeContext:null,retryLane:0};function Pc(r){return{baseLanes:r,cachePool:null,transitions:null}}function Um(r,s,o){var c=s.pendingProps,h=We.current,m=!1,v=(s.flags&128)!==0,_;if((_=v)||(_=r!==null&&r.memoizedState===null?!1:(h&2)!==0),_?(m=!0,s.flags&=-129):(r===null||r.memoizedState!==null)&&(h|=1),Fe(We,h&1),r===null)return tc(s),r=s.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((s.mode&1)===0?s.lanes=1:r.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(v=c.children,r=c.fallback,m?(c=s.mode,m=s.child,v={mode:"hidden",children:v},(c&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=v):m=el(v,c,0,null),r=Yr(r,c,o,null),m.return=s,r.return=s,m.sibling=r,s.child=m,s.child.memoizedState=Pc(o),s.memoizedState=Cc,r):Rc(s,v));if(h=r.memoizedState,h!==null&&(_=h.dehydrated,_!==null))return cb(r,s,v,c,_,h,o);if(m){m=c.fallback,v=s.mode,h=r.child,_=h.sibling;var C={mode:"hidden",children:c.children};return(v&1)===0&&s.child!==h?(c=s.child,c.childLanes=0,c.pendingProps=C,s.deletions=null):(c=yr(h,C),c.subtreeFlags=h.subtreeFlags&14680064),_!==null?m=yr(_,m):(m=Yr(m,v,o,null),m.flags|=2),m.return=s,c.return=s,c.sibling=m,s.child=c,c=m,m=s.child,v=r.child.memoizedState,v=v===null?Pc(o):{baseLanes:v.baseLanes|o,cachePool:null,transitions:v.transitions},m.memoizedState=v,m.childLanes=r.childLanes&~o,s.memoizedState=Cc,c}return m=r.child,r=m.sibling,c=yr(m,{mode:"visible",children:c.children}),(s.mode&1)===0&&(c.lanes=o),c.return=s,c.sibling=null,r!==null&&(o=s.deletions,o===null?(s.deletions=[r],s.flags|=16):o.push(r)),s.child=c,s.memoizedState=null,c}function Rc(r,s){return s=el({mode:"visible",children:s},r.mode,0,null),s.return=r,r.child=s}function Va(r,s,o,c){return c!==null&&nc(c),Us(s,r.child,null,o),r=Rc(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function cb(r,s,o,c,h,m,v){if(o)return s.flags&256?(s.flags&=-257,c=kc(Error(n(422))),Va(r,s,v,c)):s.memoizedState!==null?(s.child=r.child,s.flags|=128,null):(m=c.fallback,h=s.mode,c=el({mode:"visible",children:c.children},h,0,null),m=Yr(m,h,v,null),m.flags|=2,c.return=s,m.return=s,c.sibling=m,s.child=c,(s.mode&1)!==0&&Us(s,r.child,null,v),s.child.memoizedState=Pc(v),s.memoizedState=Cc,m);if((s.mode&1)===0)return Va(r,s,v,null);if(h.data==="$!"){if(c=h.nextSibling&&h.nextSibling.dataset,c)var _=c.dgst;return c=_,m=Error(n(419)),c=kc(m,c,void 0),Va(r,s,v,c)}if(_=(v&r.childLanes)!==0,Lt||_){if(c=lt,c!==null){switch(v&-v){case 4:h=2;break;case 16:h=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:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(c.suspendedLanes|v))!==0?0:h,h!==0&&h!==m.retryLane&&(m.retryLane=h,Un(r,h),vn(c,r,h,-1))}return Hc(),c=kc(Error(n(421))),Va(r,s,v,c)}return h.data==="$?"?(s.flags|=128,s.child=r.child,s=kb.bind(null,r),h._reactRetry=s,null):(r=m.treeContext,$t=or(h.nextSibling),zt=s,$e=!0,pn=null,r!==null&&(Xt[Yt++]=Fn,Xt[Yt++]=Bn,Xt[Yt++]=zr,Fn=r.id,Bn=r.overflow,zr=s),s=Rc(s,c.children),s.flags|=4096,s)}function Vm(r,s,o){r.lanes|=s;var c=r.alternate;c!==null&&(c.lanes|=s),oc(r.return,s,o)}function Ac(r,s,o,c,h){var m=r.memoizedState;m===null?r.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:h}:(m.isBackwards=s,m.rendering=null,m.renderingStartTime=0,m.last=c,m.tail=o,m.tailMode=h)}function zm(r,s,o){var c=s.pendingProps,h=c.revealOrder,m=c.tail;if(Pt(r,s,c.children,o),c=We.current,(c&2)!==0)c=c&1|2,s.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Vm(r,o,s);else if(r.tag===19)Vm(r,o,s);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break e;for(;r.sibling===null;){if(r.return===null||r.return===s)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}c&=1}if(Fe(We,c),(s.mode&1)===0)s.memoizedState=null;else switch(h){case"forwards":for(o=s.child,h=null;o!==null;)r=o.alternate,r!==null&&Da(r)===null&&(h=o),o=o.sibling;o=h,o===null?(h=s.child,s.child=null):(h=o.sibling,o.sibling=null),Ac(s,!1,h,o,m);break;case"backwards":for(o=null,h=s.child,s.child=null;h!==null;){if(r=h.alternate,r!==null&&Da(r)===null){s.child=h;break}r=h.sibling,h.sibling=o,o=h,h=r}Ac(s,!0,o,null,m);break;case"together":Ac(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function za(r,s){(s.mode&1)===0&&r!==null&&(r.alternate=null,s.alternate=null,s.flags|=2)}function zn(r,s,o){if(r!==null&&(s.dependencies=r.dependencies),Kr|=s.lanes,(o&s.childLanes)===0)return null;if(r!==null&&s.child!==r.child)throw Error(n(153));if(s.child!==null){for(r=s.child,o=yr(r,r.pendingProps),s.child=o,o.return=s;r.sibling!==null;)r=r.sibling,o=o.sibling=yr(r,r.pendingProps),o.return=s;o.sibling=null}return s.child}function db(r,s,o){switch(s.tag){case 3:Fm(s),Bs();break;case 5:nm(s);break;case 1:Ot(s.type)&&Ea(s);break;case 4:uc(s,s.stateNode.containerInfo);break;case 10:var c=s.type._context,h=s.memoizedProps.value;Fe(Aa,c._currentValue),c._currentValue=h;break;case 13:if(c=s.memoizedState,c!==null)return c.dehydrated!==null?(Fe(We,We.current&1),s.flags|=128,null):(o&s.child.childLanes)!==0?Um(r,s,o):(Fe(We,We.current&1),r=zn(r,s,o),r!==null?r.sibling:null);Fe(We,We.current&1);break;case 19:if(c=(o&s.childLanes)!==0,(r.flags&128)!==0){if(c)return zm(r,s,o);s.flags|=128}if(h=s.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Fe(We,We.current),c)break;return null;case 22:case 23:return s.lanes=0,jm(r,s,o)}return zn(r,s,o)}var $m,Nc,Wm,Hm;$m=function(r,s){for(var o=s.child;o!==null;){if(o.tag===5||o.tag===6)r.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Nc=function(){},Wm=function(r,s,o,c){var h=r.memoizedProps;if(h!==c){r=s.stateNode,Hr(_n.current);var m=null;switch(o){case"input":h=Qt(r,h),c=Qt(r,c),m=[];break;case"select":h=V({},h,{value:void 0}),c=V({},c,{value:void 0}),m=[];break;case"textarea":h=jn(r,h),c=jn(r,c),m=[];break;default:typeof h.onClick!="function"&&typeof c.onClick=="function"&&(r.onclick=Sa)}du(o,c);var v;o=null;for(U in h)if(!c.hasOwnProperty(U)&&h.hasOwnProperty(U)&&h[U]!=null)if(U==="style"){var _=h[U];for(v in _)_.hasOwnProperty(v)&&(o||(o={}),o[v]="")}else U!=="dangerouslySetInnerHTML"&&U!=="children"&&U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&U!=="autoFocus"&&(a.hasOwnProperty(U)?m||(m=[]):(m=m||[]).push(U,null));for(U in c){var C=c[U];if(_=h!=null?h[U]:void 0,c.hasOwnProperty(U)&&C!==_&&(C!=null||_!=null))if(U==="style")if(_){for(v in _)!_.hasOwnProperty(v)||C&&C.hasOwnProperty(v)||(o||(o={}),o[v]="");for(v in C)C.hasOwnProperty(v)&&_[v]!==C[v]&&(o||(o={}),o[v]=C[v])}else o||(m||(m=[]),m.push(U,o)),o=C;else U==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,_=_?_.__html:void 0,C!=null&&_!==C&&(m=m||[]).push(U,C)):U==="children"?typeof C!="string"&&typeof C!="number"||(m=m||[]).push(U,""+C):U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&(a.hasOwnProperty(U)?(C!=null&&U==="onScroll"&&Ue("scroll",r),m||_===C||(m=[])):(m=m||[]).push(U,C))}o&&(m=m||[]).push("style",o);var U=m;(s.updateQueue=U)&&(s.flags|=4)}},Hm=function(r,s,o,c){o!==c&&(s.flags|=4)};function io(r,s){if(!$e)switch(r.tailMode){case"hidden":s=r.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?s||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function St(r){var s=r.alternate!==null&&r.alternate.child===r.child,o=0,c=0;if(s)for(var h=r.child;h!==null;)o|=h.lanes|h.childLanes,c|=h.subtreeFlags&14680064,c|=h.flags&14680064,h.return=r,h=h.sibling;else for(h=r.child;h!==null;)o|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=r,h=h.sibling;return r.subtreeFlags|=c,r.childLanes=o,s}function fb(r,s,o){var c=s.pendingProps;switch(Zu(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return St(s),null;case 1:return Ot(s.type)&&ka(),St(s),null;case 3:return c=s.stateNode,$s(),Ve(Nt),Ve(wt),fc(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&(Pa(s)?s.flags|=4:r===null||r.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,pn!==null&&(zc(pn),pn=null))),Nc(r,s),St(s),null;case 5:cc(s);var h=Hr(eo.current);if(o=s.type,r!==null&&s.stateNode!=null)Wm(r,s,o,c,h),r.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!c){if(s.stateNode===null)throw Error(n(166));return St(s),null}if(r=Hr(_n.current),Pa(s)){c=s.stateNode,o=s.type;var m=s.memoizedProps;switch(c[En]=s,c[Gi]=m,r=(s.mode&1)!==0,o){case"dialog":Ue("cancel",c),Ue("close",c);break;case"iframe":case"object":case"embed":Ue("load",c);break;case"video":case"audio":for(h=0;h<qi.length;h++)Ue(qi[h],c);break;case"source":Ue("error",c);break;case"img":case"image":case"link":Ue("error",c),Ue("load",c);break;case"details":Ue("toggle",c);break;case"input":Gt(c,m),Ue("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!m.multiple},Ue("invalid",c);break;case"textarea":Ph(c,m),Ue("invalid",c)}du(o,m),h=null;for(var v in m)if(m.hasOwnProperty(v)){var _=m[v];v==="children"?typeof _=="string"?c.textContent!==_&&(m.suppressHydrationWarning!==!0&&xa(c.textContent,_,r),h=["children",_]):typeof _=="number"&&c.textContent!==""+_&&(m.suppressHydrationWarning!==!0&&xa(c.textContent,_,r),h=["children",""+_]):a.hasOwnProperty(v)&&_!=null&&v==="onScroll"&&Ue("scroll",c)}switch(o){case"input":Kt(c),cn(c,m,!0);break;case"textarea":Kt(c),Ah(c);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(c.onclick=Sa)}c=h,s.updateQueue=c,c!==null&&(s.flags|=4)}else{v=h.nodeType===9?h:h.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=Nh(o)),r==="http://www.w3.org/1999/xhtml"?o==="script"?(r=v.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof c.is=="string"?r=v.createElement(o,{is:c.is}):(r=v.createElement(o),o==="select"&&(v=r,c.multiple?v.multiple=!0:c.size&&(v.size=c.size))):r=v.createElementNS(r,o),r[En]=s,r[Gi]=c,$m(r,s,!1,!1),s.stateNode=r;e:{switch(v=fu(o,c),o){case"dialog":Ue("cancel",r),Ue("close",r),h=c;break;case"iframe":case"object":case"embed":Ue("load",r),h=c;break;case"video":case"audio":for(h=0;h<qi.length;h++)Ue(qi[h],r);h=c;break;case"source":Ue("error",r),h=c;break;case"img":case"image":case"link":Ue("error",r),Ue("load",r),h=c;break;case"details":Ue("toggle",r),h=c;break;case"input":Gt(r,c),h=Qt(r,c),Ue("invalid",r);break;case"option":h=c;break;case"select":r._wrapperState={wasMultiple:!!c.multiple},h=V({},c,{value:void 0}),Ue("invalid",r);break;case"textarea":Ph(r,c),h=jn(r,c),Ue("invalid",r);break;default:h=c}du(o,h),_=h;for(m in _)if(_.hasOwnProperty(m)){var C=_[m];m==="style"?Dh(r,C):m==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,C!=null&&Oh(r,C)):m==="children"?typeof C=="string"?(o!=="textarea"||C!=="")&&Ci(r,C):typeof C=="number"&&Ci(r,""+C):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(a.hasOwnProperty(m)?C!=null&&m==="onScroll"&&Ue("scroll",r):C!=null&&P(r,m,C,v))}switch(o){case"input":Kt(r),cn(r,c,!1);break;case"textarea":Kt(r),Ah(r);break;case"option":c.value!=null&&r.setAttribute("value",""+_e(c.value));break;case"select":r.multiple=!!c.multiple,m=c.value,m!=null?Zn(r,!!c.multiple,m,!1):c.defaultValue!=null&&Zn(r,!!c.multiple,c.defaultValue,!0);break;default:typeof h.onClick=="function"&&(r.onclick=Sa)}switch(o){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return St(s),null;case 6:if(r&&s.stateNode!=null)Hm(r,s,r.memoizedProps,c);else{if(typeof c!="string"&&s.stateNode===null)throw Error(n(166));if(o=Hr(eo.current),Hr(_n.current),Pa(s)){if(c=s.stateNode,o=s.memoizedProps,c[En]=s,(m=c.nodeValue!==o)&&(r=zt,r!==null))switch(r.tag){case 3:xa(c.nodeValue,o,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&xa(c.nodeValue,o,(r.mode&1)!==0)}m&&(s.flags|=4)}else c=(o.nodeType===9?o:o.ownerDocument).createTextNode(c),c[En]=s,s.stateNode=c}return St(s),null;case 13:if(Ve(We),c=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if($e&&$t!==null&&(s.mode&1)!==0&&(s.flags&128)===0)Qp(),Bs(),s.flags|=98560,m=!1;else if(m=Pa(s),c!==null&&c.dehydrated!==null){if(r===null){if(!m)throw Error(n(318));if(m=s.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));m[En]=s}else Bs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;St(s),m=!1}else pn!==null&&(zc(pn),pn=null),m=!0;if(!m)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=o,s):(c=c!==null,c!==(r!==null&&r.memoizedState!==null)&&c&&(s.child.flags|=8192,(s.mode&1)!==0&&(r===null||(We.current&1)!==0?st===0&&(st=3):Hc())),s.updateQueue!==null&&(s.flags|=4),St(s),null);case 4:return $s(),Nc(r,s),r===null&&Ki(s.stateNode.containerInfo),St(s),null;case 10:return ic(s.type._context),St(s),null;case 17:return Ot(s.type)&&ka(),St(s),null;case 19:if(Ve(We),m=s.memoizedState,m===null)return St(s),null;if(c=(s.flags&128)!==0,v=m.rendering,v===null)if(c)io(m,!1);else{if(st!==0||r!==null&&(r.flags&128)!==0)for(r=s.child;r!==null;){if(v=Da(r),v!==null){for(s.flags|=128,io(m,!1),c=v.updateQueue,c!==null&&(s.updateQueue=c,s.flags|=4),s.subtreeFlags=0,c=o,o=s.child;o!==null;)m=o,r=c,m.flags&=14680066,v=m.alternate,v===null?(m.childLanes=0,m.lanes=r,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=v.childLanes,m.lanes=v.lanes,m.child=v.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=v.memoizedProps,m.memoizedState=v.memoizedState,m.updateQueue=v.updateQueue,m.type=v.type,r=v.dependencies,m.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),o=o.sibling;return Fe(We,We.current&1|2),s.child}r=r.sibling}m.tail!==null&&Ye()>Ks&&(s.flags|=128,c=!0,io(m,!1),s.lanes=4194304)}else{if(!c)if(r=Da(v),r!==null){if(s.flags|=128,c=!0,o=r.updateQueue,o!==null&&(s.updateQueue=o,s.flags|=4),io(m,!0),m.tail===null&&m.tailMode==="hidden"&&!v.alternate&&!$e)return St(s),null}else 2*Ye()-m.renderingStartTime>Ks&&o!==1073741824&&(s.flags|=128,c=!0,io(m,!1),s.lanes=4194304);m.isBackwards?(v.sibling=s.child,s.child=v):(o=m.last,o!==null?o.sibling=v:s.child=v,m.last=v)}return m.tail!==null?(s=m.tail,m.rendering=s,m.tail=s.sibling,m.renderingStartTime=Ye(),s.sibling=null,o=We.current,Fe(We,c?o&1|2:o&1),s):(St(s),null);case 22:case 23:return Wc(),c=s.memoizedState!==null,r!==null&&r.memoizedState!==null!==c&&(s.flags|=8192),c&&(s.mode&1)!==0?(Wt&1073741824)!==0&&(St(s),s.subtreeFlags&6&&(s.flags|=8192)):St(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function hb(r,s){switch(Zu(s),s.tag){case 1:return Ot(s.type)&&ka(),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return $s(),Ve(Nt),Ve(wt),fc(),r=s.flags,(r&65536)!==0&&(r&128)===0?(s.flags=r&-65537|128,s):null;case 5:return cc(s),null;case 13:if(Ve(We),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Bs()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return Ve(We),null;case 4:return $s(),null;case 10:return ic(s.type._context),null;case 22:case 23:return Wc(),null;case 24:return null;default:return null}}var $a=!1,bt=!1,pb=typeof WeakSet=="function"?WeakSet:Set,te=null;function Hs(r,s){var o=r.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(c){Ke(r,s,c)}else o.current=null}function Oc(r,s,o){try{o()}catch(c){Ke(r,s,c)}}var qm=!1;function mb(r,s){if(Wu=ua,r=Ep(),Mu(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var h=c.anchorOffset,m=c.focusNode;c=c.focusOffset;try{o.nodeType,m.nodeType}catch{o=null;break e}var v=0,_=-1,C=-1,U=0,H=0,q=r,W=null;t:for(;;){for(var J;q!==o||h!==0&&q.nodeType!==3||(_=v+h),q!==m||c!==0&&q.nodeType!==3||(C=v+c),q.nodeType===3&&(v+=q.nodeValue.length),(J=q.firstChild)!==null;)W=q,q=J;for(;;){if(q===r)break t;if(W===o&&++U===h&&(_=v),W===m&&++H===c&&(C=v),(J=q.nextSibling)!==null)break;q=W,W=q.parentNode}q=J}o=_===-1||C===-1?null:{start:_,end:C}}else o=null}o=o||{start:0,end:0}}else o=null;for(Hu={focusedElem:r,selectionRange:o},ua=!1,te=s;te!==null;)if(s=te,r=s.child,(s.subtreeFlags&1028)!==0&&r!==null)r.return=s,te=r;else for(;te!==null;){s=te;try{var ne=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(ne!==null){var oe=ne.memoizedProps,Je=ne.memoizedState,M=s.stateNode,O=M.getSnapshotBeforeUpdate(s.elementType===s.type?oe:mn(s.type,oe),Je);M.__reactInternalSnapshotBeforeUpdate=O}break;case 3:var F=s.stateNode.containerInfo;F.nodeType===1?F.textContent="":F.nodeType===9&&F.documentElement&&F.removeChild(F.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Q){Ke(s,s.return,Q)}if(r=s.sibling,r!==null){r.return=s.return,te=r;break}te=s.return}return ne=qm,qm=!1,ne}function oo(r,s,o){var c=s.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var h=c=c.next;do{if((h.tag&r)===r){var m=h.destroy;h.destroy=void 0,m!==void 0&&Oc(s,o,m)}h=h.next}while(h!==c)}}function Wa(r,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var o=s=s.next;do{if((o.tag&r)===r){var c=o.create;o.destroy=c()}o=o.next}while(o!==s)}}function Lc(r){var s=r.ref;if(s!==null){var o=r.stateNode;switch(r.tag){case 5:r=o;break;default:r=o}typeof s=="function"?s(r):s.current=r}}function Km(r){var s=r.alternate;s!==null&&(r.alternate=null,Km(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&(delete s[En],delete s[Gi],delete s[Gu],delete s[YS],delete s[JS])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Qm(r){return r.tag===5||r.tag===3||r.tag===4}function Gm(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Qm(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Dc(r,s,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?o.nodeType===8?o.parentNode.insertBefore(r,s):o.insertBefore(r,s):(o.nodeType===8?(s=o.parentNode,s.insertBefore(r,o)):(s=o,s.appendChild(r)),o=o._reactRootContainer,o!=null||s.onclick!==null||(s.onclick=Sa));else if(c!==4&&(r=r.child,r!==null))for(Dc(r,s,o),r=r.sibling;r!==null;)Dc(r,s,o),r=r.sibling}function jc(r,s,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?o.insertBefore(r,s):o.appendChild(r);else if(c!==4&&(r=r.child,r!==null))for(jc(r,s,o),r=r.sibling;r!==null;)jc(r,s,o),r=r.sibling}var ht=null,gn=!1;function fr(r,s,o){for(o=o.child;o!==null;)Xm(r,s,o),o=o.sibling}function Xm(r,s,o){if(kn&&typeof kn.onCommitFiberUnmount=="function")try{kn.onCommitFiberUnmount(ra,o)}catch{}switch(o.tag){case 5:bt||Hs(o,s);case 6:var c=ht,h=gn;ht=null,fr(r,s,o),ht=c,gn=h,ht!==null&&(gn?(r=ht,o=o.stateNode,r.nodeType===8?r.parentNode.removeChild(o):r.removeChild(o)):ht.removeChild(o.stateNode));break;case 18:ht!==null&&(gn?(r=ht,o=o.stateNode,r.nodeType===8?Qu(r.parentNode,o):r.nodeType===1&&Qu(r,o),Fi(r)):Qu(ht,o.stateNode));break;case 4:c=ht,h=gn,ht=o.stateNode.containerInfo,gn=!0,fr(r,s,o),ht=c,gn=h;break;case 0:case 11:case 14:case 15:if(!bt&&(c=o.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){h=c=c.next;do{var m=h,v=m.destroy;m=m.tag,v!==void 0&&((m&2)!==0||(m&4)!==0)&&Oc(o,s,v),h=h.next}while(h!==c)}fr(r,s,o);break;case 1:if(!bt&&(Hs(o,s),c=o.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=o.memoizedProps,c.state=o.memoizedState,c.componentWillUnmount()}catch(_){Ke(o,s,_)}fr(r,s,o);break;case 21:fr(r,s,o);break;case 22:o.mode&1?(bt=(c=bt)||o.memoizedState!==null,fr(r,s,o),bt=c):fr(r,s,o);break;default:fr(r,s,o)}}function Ym(r){var s=r.updateQueue;if(s!==null){r.updateQueue=null;var o=r.stateNode;o===null&&(o=r.stateNode=new pb),s.forEach(function(c){var h=Eb.bind(null,r,c);o.has(c)||(o.add(c),c.then(h,h))})}}function yn(r,s){var o=s.deletions;if(o!==null)for(var c=0;c<o.length;c++){var h=o[c];try{var m=r,v=s,_=v;e:for(;_!==null;){switch(_.tag){case 5:ht=_.stateNode,gn=!1;break e;case 3:ht=_.stateNode.containerInfo,gn=!0;break e;case 4:ht=_.stateNode.containerInfo,gn=!0;break e}_=_.return}if(ht===null)throw Error(n(160));Xm(m,v,h),ht=null,gn=!1;var C=h.alternate;C!==null&&(C.return=null),h.return=null}catch(U){Ke(h,s,U)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)Jm(s,r),s=s.sibling}function Jm(r,s){var o=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(yn(s,r),Cn(r),c&4){try{oo(3,r,r.return),Wa(3,r)}catch(oe){Ke(r,r.return,oe)}try{oo(5,r,r.return)}catch(oe){Ke(r,r.return,oe)}}break;case 1:yn(s,r),Cn(r),c&512&&o!==null&&Hs(o,o.return);break;case 5:if(yn(s,r),Cn(r),c&512&&o!==null&&Hs(o,o.return),r.flags&32){var h=r.stateNode;try{Ci(h,"")}catch(oe){Ke(r,r.return,oe)}}if(c&4&&(h=r.stateNode,h!=null)){var m=r.memoizedProps,v=o!==null?o.memoizedProps:m,_=r.type,C=r.updateQueue;if(r.updateQueue=null,C!==null)try{_==="input"&&m.type==="radio"&&m.name!=null&&Se(h,m),fu(_,v);var U=fu(_,m);for(v=0;v<C.length;v+=2){var H=C[v],q=C[v+1];H==="style"?Dh(h,q):H==="dangerouslySetInnerHTML"?Oh(h,q):H==="children"?Ci(h,q):P(h,H,q,U)}switch(_){case"input":ft(h,m);break;case"textarea":Rh(h,m);break;case"select":var W=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!m.multiple;var J=m.value;J!=null?Zn(h,!!m.multiple,J,!1):W!==!!m.multiple&&(m.defaultValue!=null?Zn(h,!!m.multiple,m.defaultValue,!0):Zn(h,!!m.multiple,m.multiple?[]:"",!1))}h[Gi]=m}catch(oe){Ke(r,r.return,oe)}}break;case 6:if(yn(s,r),Cn(r),c&4){if(r.stateNode===null)throw Error(n(162));h=r.stateNode,m=r.memoizedProps;try{h.nodeValue=m}catch(oe){Ke(r,r.return,oe)}}break;case 3:if(yn(s,r),Cn(r),c&4&&o!==null&&o.memoizedState.isDehydrated)try{Fi(s.containerInfo)}catch(oe){Ke(r,r.return,oe)}break;case 4:yn(s,r),Cn(r);break;case 13:yn(s,r),Cn(r),h=r.child,h.flags&8192&&(m=h.memoizedState!==null,h.stateNode.isHidden=m,!m||h.alternate!==null&&h.alternate.memoizedState!==null||(Fc=Ye())),c&4&&Ym(r);break;case 22:if(H=o!==null&&o.memoizedState!==null,r.mode&1?(bt=(U=bt)||H,yn(s,r),bt=U):yn(s,r),Cn(r),c&8192){if(U=r.memoizedState!==null,(r.stateNode.isHidden=U)&&!H&&(r.mode&1)!==0)for(te=r,H=r.child;H!==null;){for(q=te=H;te!==null;){switch(W=te,J=W.child,W.tag){case 0:case 11:case 14:case 15:oo(4,W,W.return);break;case 1:Hs(W,W.return);var ne=W.stateNode;if(typeof ne.componentWillUnmount=="function"){c=W,o=W.return;try{s=c,ne.props=s.memoizedProps,ne.state=s.memoizedState,ne.componentWillUnmount()}catch(oe){Ke(c,o,oe)}}break;case 5:Hs(W,W.return);break;case 22:if(W.memoizedState!==null){tg(q);continue}}J!==null?(J.return=W,te=J):tg(q)}H=H.sibling}e:for(H=null,q=r;;){if(q.tag===5){if(H===null){H=q;try{h=q.stateNode,U?(m=h.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(_=q.stateNode,C=q.memoizedProps.style,v=C!=null&&C.hasOwnProperty("display")?C.display:null,_.style.display=Lh("display",v))}catch(oe){Ke(r,r.return,oe)}}}else if(q.tag===6){if(H===null)try{q.stateNode.nodeValue=U?"":q.memoizedProps}catch(oe){Ke(r,r.return,oe)}}else if((q.tag!==22&&q.tag!==23||q.memoizedState===null||q===r)&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===r)break e;for(;q.sibling===null;){if(q.return===null||q.return===r)break e;H===q&&(H=null),q=q.return}H===q&&(H=null),q.sibling.return=q.return,q=q.sibling}}break;case 19:yn(s,r),Cn(r),c&4&&Ym(r);break;case 21:break;default:yn(s,r),Cn(r)}}function Cn(r){var s=r.flags;if(s&2){try{e:{for(var o=r.return;o!==null;){if(Qm(o)){var c=o;break e}o=o.return}throw Error(n(160))}switch(c.tag){case 5:var h=c.stateNode;c.flags&32&&(Ci(h,""),c.flags&=-33);var m=Gm(r);jc(r,m,h);break;case 3:case 4:var v=c.stateNode.containerInfo,_=Gm(r);Dc(r,_,v);break;default:throw Error(n(161))}}catch(C){Ke(r,r.return,C)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function gb(r,s,o){te=r,Zm(r)}function Zm(r,s,o){for(var c=(r.mode&1)!==0;te!==null;){var h=te,m=h.child;if(h.tag===22&&c){var v=h.memoizedState!==null||$a;if(!v){var _=h.alternate,C=_!==null&&_.memoizedState!==null||bt;_=$a;var U=bt;if($a=v,(bt=C)&&!U)for(te=h;te!==null;)v=te,C=v.child,v.tag===22&&v.memoizedState!==null?ng(h):C!==null?(C.return=v,te=C):ng(h);for(;m!==null;)te=m,Zm(m),m=m.sibling;te=h,$a=_,bt=U}eg(r)}else(h.subtreeFlags&8772)!==0&&m!==null?(m.return=h,te=m):eg(r)}}function eg(r){for(;te!==null;){var s=te;if((s.flags&8772)!==0){var o=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:bt||Wa(5,s);break;case 1:var c=s.stateNode;if(s.flags&4&&!bt)if(o===null)c.componentDidMount();else{var h=s.elementType===s.type?o.memoizedProps:mn(s.type,o.memoizedProps);c.componentDidUpdate(h,o.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var m=s.updateQueue;m!==null&&tm(s,m,c);break;case 3:var v=s.updateQueue;if(v!==null){if(o=null,s.child!==null)switch(s.child.tag){case 5:o=s.child.stateNode;break;case 1:o=s.child.stateNode}tm(s,v,o)}break;case 5:var _=s.stateNode;if(o===null&&s.flags&4){o=_;var C=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":C.autoFocus&&o.focus();break;case"img":C.src&&(o.src=C.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var U=s.alternate;if(U!==null){var H=U.memoizedState;if(H!==null){var q=H.dehydrated;q!==null&&Fi(q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}bt||s.flags&512&&Lc(s)}catch(W){Ke(s,s.return,W)}}if(s===r){te=null;break}if(o=s.sibling,o!==null){o.return=s.return,te=o;break}te=s.return}}function tg(r){for(;te!==null;){var s=te;if(s===r){te=null;break}var o=s.sibling;if(o!==null){o.return=s.return,te=o;break}te=s.return}}function ng(r){for(;te!==null;){var s=te;try{switch(s.tag){case 0:case 11:case 15:var o=s.return;try{Wa(4,s)}catch(C){Ke(s,o,C)}break;case 1:var c=s.stateNode;if(typeof c.componentDidMount=="function"){var h=s.return;try{c.componentDidMount()}catch(C){Ke(s,h,C)}}var m=s.return;try{Lc(s)}catch(C){Ke(s,m,C)}break;case 5:var v=s.return;try{Lc(s)}catch(C){Ke(s,v,C)}}}catch(C){Ke(s,s.return,C)}if(s===r){te=null;break}var _=s.sibling;if(_!==null){_.return=s.return,te=_;break}te=s.return}}var yb=Math.ceil,Ha=L.ReactCurrentDispatcher,Mc=L.ReactCurrentOwner,en=L.ReactCurrentBatchConfig,Ne=0,lt=null,tt=null,pt=0,Wt=0,qs=ar(0),st=0,ao=null,Kr=0,qa=0,Ic=0,lo=null,Dt=null,Fc=0,Ks=1/0,$n=null,Ka=!1,Bc=null,hr=null,Qa=!1,pr=null,Ga=0,uo=0,Uc=null,Xa=-1,Ya=0;function Rt(){return(Ne&6)!==0?Ye():Xa!==-1?Xa:Xa=Ye()}function mr(r){return(r.mode&1)===0?1:(Ne&2)!==0&&pt!==0?pt&-pt:eb.transition!==null?(Ya===0&&(Ya=Gh()),Ya):(r=Ie,r!==0||(r=window.event,r=r===void 0?16:sp(r.type)),r)}function vn(r,s,o,c){if(50<uo)throw uo=0,Uc=null,Error(n(185));Li(r,o,c),((Ne&2)===0||r!==lt)&&(r===lt&&((Ne&2)===0&&(qa|=o),st===4&&gr(r,pt)),jt(r,c),o===1&&Ne===0&&(s.mode&1)===0&&(Ks=Ye()+500,_a&&ur()))}function jt(r,s){var o=r.callbackNode;eS(r,s);var c=oa(r,r===lt?pt:0);if(c===0)o!==null&&qh(o),r.callbackNode=null,r.callbackPriority=0;else if(s=c&-c,r.callbackPriority!==s){if(o!=null&&qh(o),s===1)r.tag===0?ZS(sg.bind(null,r)):$p(sg.bind(null,r)),GS(function(){(Ne&6)===0&&ur()}),o=null;else{switch(Xh(c)){case 1:o=wu;break;case 4:o=Kh;break;case 16:o=na;break;case 536870912:o=Qh;break;default:o=na}o=fg(o,rg.bind(null,r))}r.callbackPriority=s,r.callbackNode=o}}function rg(r,s){if(Xa=-1,Ya=0,(Ne&6)!==0)throw Error(n(327));var o=r.callbackNode;if(Qs()&&r.callbackNode!==o)return null;var c=oa(r,r===lt?pt:0);if(c===0)return null;if((c&30)!==0||(c&r.expiredLanes)!==0||s)s=Ja(r,c);else{s=c;var h=Ne;Ne|=2;var m=og();(lt!==r||pt!==s)&&($n=null,Ks=Ye()+500,Gr(r,s));do try{xb();break}catch(_){ig(r,_)}while(!0);sc(),Ha.current=m,Ne=h,tt!==null?s=0:(lt=null,pt=0,s=st)}if(s!==0){if(s===2&&(h=xu(r),h!==0&&(c=h,s=Vc(r,h))),s===1)throw o=ao,Gr(r,0),gr(r,c),jt(r,Ye()),o;if(s===6)gr(r,c);else{if(h=r.current.alternate,(c&30)===0&&!vb(h)&&(s=Ja(r,c),s===2&&(m=xu(r),m!==0&&(c=m,s=Vc(r,m))),s===1))throw o=ao,Gr(r,0),gr(r,c),jt(r,Ye()),o;switch(r.finishedWork=h,r.finishedLanes=c,s){case 0:case 1:throw Error(n(345));case 2:Xr(r,Dt,$n);break;case 3:if(gr(r,c),(c&130023424)===c&&(s=Fc+500-Ye(),10<s)){if(oa(r,0)!==0)break;if(h=r.suspendedLanes,(h&c)!==c){Rt(),r.pingedLanes|=r.suspendedLanes&h;break}r.timeoutHandle=Ku(Xr.bind(null,r,Dt,$n),s);break}Xr(r,Dt,$n);break;case 4:if(gr(r,c),(c&4194240)===c)break;for(s=r.eventTimes,h=-1;0<c;){var v=31-fn(c);m=1<<v,v=s[v],v>h&&(h=v),c&=~m}if(c=h,c=Ye()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*yb(c/1960))-c,10<c){r.timeoutHandle=Ku(Xr.bind(null,r,Dt,$n),c);break}Xr(r,Dt,$n);break;case 5:Xr(r,Dt,$n);break;default:throw Error(n(329))}}}return jt(r,Ye()),r.callbackNode===o?rg.bind(null,r):null}function Vc(r,s){var o=lo;return r.current.memoizedState.isDehydrated&&(Gr(r,s).flags|=256),r=Ja(r,s),r!==2&&(s=Dt,Dt=o,s!==null&&zc(s)),r}function zc(r){Dt===null?Dt=r:Dt.push.apply(Dt,r)}function vb(r){for(var s=r;;){if(s.flags&16384){var o=s.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var c=0;c<o.length;c++){var h=o[c],m=h.getSnapshot;h=h.value;try{if(!hn(m(),h))return!1}catch{return!1}}}if(o=s.child,s.subtreeFlags&16384&&o!==null)o.return=s,s=o;else{if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function gr(r,s){for(s&=~Ic,s&=~qa,r.suspendedLanes|=s,r.pingedLanes&=~s,r=r.expirationTimes;0<s;){var o=31-fn(s),c=1<<o;r[o]=-1,s&=~c}}function sg(r){if((Ne&6)!==0)throw Error(n(327));Qs();var s=oa(r,0);if((s&1)===0)return jt(r,Ye()),null;var o=Ja(r,s);if(r.tag!==0&&o===2){var c=xu(r);c!==0&&(s=c,o=Vc(r,c))}if(o===1)throw o=ao,Gr(r,0),gr(r,s),jt(r,Ye()),o;if(o===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=s,Xr(r,Dt,$n),jt(r,Ye()),null}function $c(r,s){var o=Ne;Ne|=1;try{return r(s)}finally{Ne=o,Ne===0&&(Ks=Ye()+500,_a&&ur())}}function Qr(r){pr!==null&&pr.tag===0&&(Ne&6)===0&&Qs();var s=Ne;Ne|=1;var o=en.transition,c=Ie;try{if(en.transition=null,Ie=1,r)return r()}finally{Ie=c,en.transition=o,Ne=s,(Ne&6)===0&&ur()}}function Wc(){Wt=qs.current,Ve(qs)}function Gr(r,s){r.finishedWork=null,r.finishedLanes=0;var o=r.timeoutHandle;if(o!==-1&&(r.timeoutHandle=-1,QS(o)),tt!==null)for(o=tt.return;o!==null;){var c=o;switch(Zu(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&ka();break;case 3:$s(),Ve(Nt),Ve(wt),fc();break;case 5:cc(c);break;case 4:$s();break;case 13:Ve(We);break;case 19:Ve(We);break;case 10:ic(c.type._context);break;case 22:case 23:Wc()}o=o.return}if(lt=r,tt=r=yr(r.current,null),pt=Wt=s,st=0,ao=null,Ic=qa=Kr=0,Dt=lo=null,Wr!==null){for(s=0;s<Wr.length;s++)if(o=Wr[s],c=o.interleaved,c!==null){o.interleaved=null;var h=c.next,m=o.pending;if(m!==null){var v=m.next;m.next=h,c.next=v}o.pending=c}Wr=null}return r}function ig(r,s){do{var o=tt;try{if(sc(),ja.current=Ba,Ma){for(var c=He.memoizedState;c!==null;){var h=c.queue;h!==null&&(h.pending=null),c=c.next}Ma=!1}if(qr=0,at=rt=He=null,to=!1,no=0,Mc.current=null,o===null||o.return===null){st=1,ao=s,tt=null;break}e:{var m=r,v=o.return,_=o,C=s;if(s=pt,_.flags|=32768,C!==null&&typeof C=="object"&&typeof C.then=="function"){var U=C,H=_,q=H.tag;if((H.mode&1)===0&&(q===0||q===11||q===15)){var W=H.alternate;W?(H.updateQueue=W.updateQueue,H.memoizedState=W.memoizedState,H.lanes=W.lanes):(H.updateQueue=null,H.memoizedState=null)}var J=Am(v);if(J!==null){J.flags&=-257,Nm(J,v,_,m,s),J.mode&1&&Rm(m,U,s),s=J,C=U;var ne=s.updateQueue;if(ne===null){var oe=new Set;oe.add(C),s.updateQueue=oe}else ne.add(C);break e}else{if((s&1)===0){Rm(m,U,s),Hc();break e}C=Error(n(426))}}else if($e&&_.mode&1){var Je=Am(v);if(Je!==null){(Je.flags&65536)===0&&(Je.flags|=256),Nm(Je,v,_,m,s),nc(Ws(C,_));break e}}m=C=Ws(C,_),st!==4&&(st=2),lo===null?lo=[m]:lo.push(m),m=v;do{switch(m.tag){case 3:m.flags|=65536,s&=-s,m.lanes|=s;var M=Cm(m,C,s);em(m,M);break e;case 1:_=C;var O=m.type,F=m.stateNode;if((m.flags&128)===0&&(typeof O.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(hr===null||!hr.has(F)))){m.flags|=65536,s&=-s,m.lanes|=s;var Q=Pm(m,_,s);em(m,Q);break e}}m=m.return}while(m!==null)}lg(o)}catch(ae){s=ae,tt===o&&o!==null&&(tt=o=o.return);continue}break}while(!0)}function og(){var r=Ha.current;return Ha.current=Ba,r===null?Ba:r}function Hc(){(st===0||st===3||st===2)&&(st=4),lt===null||(Kr&268435455)===0&&(qa&268435455)===0||gr(lt,pt)}function Ja(r,s){var o=Ne;Ne|=2;var c=og();(lt!==r||pt!==s)&&($n=null,Gr(r,s));do try{wb();break}catch(h){ig(r,h)}while(!0);if(sc(),Ne=o,Ha.current=c,tt!==null)throw Error(n(261));return lt=null,pt=0,st}function wb(){for(;tt!==null;)ag(tt)}function xb(){for(;tt!==null&&!H1();)ag(tt)}function ag(r){var s=dg(r.alternate,r,Wt);r.memoizedProps=r.pendingProps,s===null?lg(r):tt=s,Mc.current=null}function lg(r){var s=r;do{var o=s.alternate;if(r=s.return,(s.flags&32768)===0){if(o=fb(o,s,Wt),o!==null){tt=o;return}}else{if(o=hb(o,s),o!==null){o.flags&=32767,tt=o;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{st=6,tt=null;return}}if(s=s.sibling,s!==null){tt=s;return}tt=s=r}while(s!==null);st===0&&(st=5)}function Xr(r,s,o){var c=Ie,h=en.transition;try{en.transition=null,Ie=1,Sb(r,s,o,c)}finally{en.transition=h,Ie=c}return null}function Sb(r,s,o,c){do Qs();while(pr!==null);if((Ne&6)!==0)throw Error(n(327));o=r.finishedWork;var h=r.finishedLanes;if(o===null)return null;if(r.finishedWork=null,r.finishedLanes=0,o===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var m=o.lanes|o.childLanes;if(tS(r,m),r===lt&&(tt=lt=null,pt=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Qa||(Qa=!0,fg(na,function(){return Qs(),null})),m=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||m){m=en.transition,en.transition=null;var v=Ie;Ie=1;var _=Ne;Ne|=4,Mc.current=null,mb(r,o),Jm(o,r),VS(Hu),ua=!!Wu,Hu=Wu=null,r.current=o,gb(o),q1(),Ne=_,Ie=v,en.transition=m}else r.current=o;if(Qa&&(Qa=!1,pr=r,Ga=h),m=r.pendingLanes,m===0&&(hr=null),G1(o.stateNode),jt(r,Ye()),s!==null)for(c=r.onRecoverableError,o=0;o<s.length;o++)h=s[o],c(h.value,{componentStack:h.stack,digest:h.digest});if(Ka)throw Ka=!1,r=Bc,Bc=null,r;return(Ga&1)!==0&&r.tag!==0&&Qs(),m=r.pendingLanes,(m&1)!==0?r===Uc?uo++:(uo=0,Uc=r):uo=0,ur(),null}function Qs(){if(pr!==null){var r=Xh(Ga),s=en.transition,o=Ie;try{if(en.transition=null,Ie=16>r?16:r,pr===null)var c=!1;else{if(r=pr,pr=null,Ga=0,(Ne&6)!==0)throw Error(n(331));var h=Ne;for(Ne|=4,te=r.current;te!==null;){var m=te,v=m.child;if((te.flags&16)!==0){var _=m.deletions;if(_!==null){for(var C=0;C<_.length;C++){var U=_[C];for(te=U;te!==null;){var H=te;
vendor: 4,456 bytes, line 40
40switch(H.tag){case 0:case 11:case 15:oo(8,H,m)}var q=H.child;if(q!==null)q.return=H,te=q;else for(;te!==null;){H=te;var W=H.sibling,J=H.return;if(Km(H),H===U){te=null;break}if(W!==null){W.return=J,te=W;break}te=J}}}var ne=m.alternate;if(ne!==null){var oe=ne.child;if(oe!==null){ne.child=null;do{var Je=oe.sibling;oe.sibling=null,oe=Je}while(oe!==null)}}te=m}}if((m.subtreeFlags&2064)!==0&&v!==null)v.return=m,te=v;else e:for(;te!==null;){if(m=te,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:oo(9,m,m.return)}var M=m.sibling;if(M!==null){M.return=m.return,te=M;break e}te=m.return}}var O=r.current;for(te=O;te!==null;){v=te;var F=v.child;if((v.subtreeFlags&2064)!==0&&F!==null)F.return=v,te=F;else e:for(v=O;te!==null;){if(_=te,(_.flags&2048)!==0)try{switch(_.tag){case 0:case 11:case 15:Wa(9,_)}}catch(ae){Ke(_,_.return,ae)}if(_===v){te=null;break e}var Q=_.sibling;if(Q!==null){Q.return=_.return,te=Q;break e}te=_.return}}if(Ne=h,ur(),kn&&typeof kn.onPostCommitFiberRoot=="function")try{kn.onPostCommitFiberRoot(ra,r)}catch{}c=!0}return c}finally{Ie=o,en.transition=s}}return!1}function ug(r,s,o){s=Ws(o,s),s=Cm(r,s,1),r=dr(r,s,1),s=Rt(),r!==null&&(Li(r,1,s),jt(r,s))}function Ke(r,s,o){if(r.tag===3)ug(r,r,o);else for(;s!==null;){if(s.tag===3){ug(s,r,o);break}else if(s.tag===1){var c=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(hr===null||!hr.has(c))){r=Ws(o,r),r=Pm(s,r,1),s=dr(s,r,1),r=Rt(),s!==null&&(Li(s,1,r),jt(s,r));break}}s=s.return}}function bb(r,s,o){var c=r.pingCache;c!==null&&c.delete(s),s=Rt(),r.pingedLanes|=r.suspendedLanes&o,lt===r&&(pt&o)===o&&(st===4||st===3&&(pt&130023424)===pt&&500>Ye()-Fc?Gr(r,0):Ic|=o),jt(r,s)}function cg(r,s){s===0&&((r.mode&1)===0?s=1:(s=ia,ia<<=1,(ia&130023424)===0&&(ia=4194304)));var o=Rt();r=Un(r,s),r!==null&&(Li(r,s,o),jt(r,o))}function kb(r){var s=r.memoizedState,o=0;s!==null&&(o=s.retryLane),cg(r,o)}function Eb(r,s){var o=0;switch(r.tag){case 13:var c=r.stateNode,h=r.memoizedState;h!==null&&(o=h.retryLane);break;case 19:c=r.stateNode;break;default:throw Error(n(314))}c!==null&&c.delete(s),cg(r,o)}var dg;dg=function(r,s,o){if(r!==null)if(r.memoizedProps!==s.pendingProps||Nt.current)Lt=!0;else{if((r.lanes&o)===0&&(s.flags&128)===0)return Lt=!1,db(r,s,o);Lt=(r.flags&131072)!==0}else Lt=!1,$e&&(s.flags&1048576)!==0&&Wp(s,Ca,s.index);switch(s.lanes=0,s.tag){case 2:var c=s.type;za(r,s),r=s.pendingProps;var h=Ms(s,wt.current);zs(s,o),h=mc(null,s,c,r,h,o);var m=gc();return s.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Ot(c)?(m=!0,Ea(s)):m=!1,s.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,lc(s),h.updater=Ua,s.stateNode=h,h._reactInternals=s,bc(s,c,r,o),s=Tc(null,s,c,!0,m,o)):(s.tag=0,$e&&m&&Ju(s),Pt(null,s,h,o),s=s.child),s;case 16:c=s.elementType;e:{switch(za(r,s),r=s.pendingProps,h=c._init,c=h(c._payload),s.type=c,h=s.tag=Tb(c),r=mn(c,r),h){case 0:s=_c(null,s,c,r,o);break e;case 1:s=Im(null,s,c,r,o);break e;case 11:s=Om(null,s,c,r,o);break e;case 14:s=Lm(null,s,c,mn(c.type,r),o);break e}throw Error(n(306,c,""))}return s;case 0:return c=s.type,h=s.pendingProps,h=s.elementType===c?h:mn(c,h),_c(r,s,c,h,o);case 1:return c=s.type,h=s.pendingProps,h=s.elementType===c?h:mn(c,h),Im(r,s,c,h,o);case 3:e:{if(Fm(s),r===null)throw Error(n(387));c=s.pendingProps,m=s.memoizedState,h=m.element,Zp(r,s),La(s,c,null,o);var v=s.memoizedState;if(c=v.element,m.isDehydrated)if(m={element:c,isDehydrated:!1,cache:v.cache,pendingSuspenseBoundaries:v.pendingSuspenseBoundaries,transitions:v.transitions},s.updateQueue.baseState=m,s.memoizedState=m,s.flags&256){h=Ws(Error(n(423)),s),s=Bm(r,s,c,o,h);break e}else if(c!==h){h=Ws(Error(n(424)),s),s=Bm(r,s,c,o,h);break e}else for($t=or(s.stateNode.containerInfo.firstChild),zt=s,$e=!0,pn=null,o=Yp(s,null,c,o),s.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Bs(),c===h){s=zn(r,s,o);break e}Pt(r,s,c,o)}s=s.child}return s;case 5:return nm(s),r===null&&tc(s),c=s.type,h=s.pendingProps,m=r!==null?r.memoizedProps:null,v=h.children,qu(c,h)?v=null:m!==null&&qu(c,m)&&(s.flags|=32),Mm(r,s),Pt(r,s,v,o),s.child;case 6:return r===null&&tc(s),null;case 13:return Um(r,s,o);case 4:return uc(s,s.stateNode.containerInfo),c=s.pendingProps,r===null?s.child=Us(s,null,c,o):Pt(r,s,c,o),s.child;case 11:return c=s.type,h=s.pendingProps,h=s.elementType===c?h:mn(c,h),Om(r,s,c,h,o);
vendor: 9,297 bytes, line 40
40case 7:return Pt(r,s,s.pendingProps,o),s.child;case 8:return Pt(r,s,s.pendingProps.children,o),s.child;case 12:return Pt(r,s,s.pendingProps.children,o),s.child;case 10:e:{if(c=s.type._context,h=s.pendingProps,m=s.memoizedProps,v=h.value,Fe(Aa,c._currentValue),c._currentValue=v,m!==null)if(hn(m.value,v)){if(m.children===h.children&&!Nt.current){s=zn(r,s,o);break e}}else for(m=s.child,m!==null&&(m.return=s);m!==null;){var _=m.dependencies;if(_!==null){v=m.child;for(var C=_.firstContext;C!==null;){if(C.context===c){if(m.tag===1){C=Vn(-1,o&-o),C.tag=2;var U=m.updateQueue;if(U!==null){U=U.shared;var H=U.pending;H===null?C.next=C:(C.next=H.next,H.next=C),U.pending=C}}m.lanes|=o,C=m.alternate,C!==null&&(C.lanes|=o),oc(m.return,o,s),_.lanes|=o;break}C=C.next}}else if(m.tag===10)v=m.type===s.type?null:m.child;else if(m.tag===18){if(v=m.return,v===null)throw Error(n(341));v.lanes|=o,_=v.alternate,_!==null&&(_.lanes|=o),oc(v,o,s),v=m.sibling}else v=m.child;if(v!==null)v.return=m;else for(v=m;v!==null;){if(v===s){v=null;break}if(m=v.sibling,m!==null){m.return=v.return,v=m;break}v=v.return}m=v}Pt(r,s,h.children,o),s=s.child}return s;case 9:return h=s.type,c=s.pendingProps.children,zs(s,o),h=Jt(h),c=c(h),s.flags|=1,Pt(r,s,c,o),s.child;case 14:return c=s.type,h=mn(c,s.pendingProps),h=mn(c.type,h),Lm(r,s,c,h,o);case 15:return Dm(r,s,s.type,s.pendingProps,o);case 17:return c=s.type,h=s.pendingProps,h=s.elementType===c?h:mn(c,h),za(r,s),s.tag=1,Ot(c)?(r=!0,Ea(s)):r=!1,zs(s,o),_m(s,c,h),bc(s,c,h,o),Tc(null,s,c,!0,r,o);case 19:return zm(r,s,o);case 22:return jm(r,s,o)}throw Error(n(156,s.tag))};function fg(r,s){return Hh(r,s)}function _b(r,s,o,c){this.tag=r,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tn(r,s,o,c){return new _b(r,s,o,c)}function qc(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Tb(r){if(typeof r=="function")return qc(r)?1:0;if(r!=null){if(r=r.$$typeof,r===Ae)return 11;if(r===Me)return 14}return 2}function yr(r,s){var o=r.alternate;return o===null?(o=tn(r.tag,s,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=s,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&14680064,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,s=r.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o}function Za(r,s,o,c,h,m){var v=2;if(c=r,typeof r=="function")qc(r)&&(v=1);else if(typeof r=="string")v=5;else e:switch(r){case X:return Yr(o.children,h,m,s);case B:v=8,h|=8;break;case Z:return r=tn(12,o,s,h|2),r.elementType=Z,r.lanes=m,r;case Le:return r=tn(13,o,s,h),r.elementType=Le,r.lanes=m,r;case Te:return r=tn(19,o,s,h),r.elementType=Te,r.lanes=m,r;case le:return el(o,h,m,s);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case ue:v=10;break e;case be:v=9;break e;case Ae:v=11;break e;case Me:v=14;break e;case fe:v=16,c=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return s=tn(v,o,s,h),s.elementType=r,s.type=c,s.lanes=m,s}function Yr(r,s,o,c){return r=tn(7,r,c,s),r.lanes=o,r}function el(r,s,o,c){return r=tn(22,r,c,s),r.elementType=le,r.lanes=o,r.stateNode={isHidden:!1},r}function Kc(r,s,o){return r=tn(6,r,null,s),r.lanes=o,r}function Qc(r,s,o){return s=tn(4,r.children!==null?r.children:[],r.key,s),s.lanes=o,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}function Cb(r,s,o,c,h){this.tag=s,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Su(0),this.expirationTimes=Su(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Su(0),this.identifierPrefix=c,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function Gc(r,s,o,c,h,m,v,_,C){return r=new Cb(r,s,o,_,C),s===1?(s=1,m===!0&&(s|=8)):s=0,m=tn(3,null,null,s),r.current=m,m.stateNode=r,m.memoizedState={element:c,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},lc(m),r}function Pb(r,s,o){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:c==null?null:""+c,children:r,containerInfo:s,implementation:o}}function hg(r){if(!r)return lr;r=r._reactInternals;e:{if(Br(r)!==r||r.tag!==1)throw Error(n(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Ot(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(r.tag===1){var o=r.type;if(Ot(o))return Vp(r,o,s)}return s}function pg(r,s,o,c,h,m,v,_,C){return r=Gc(o,c,!0,r,h,m,v,_,C),r.context=hg(null),o=r.current,c=Rt(),h=mr(o),m=Vn(c,h),m.callback=s??null,dr(o,m,h),r.current.lanes=h,Li(r,h,c),jt(r,c),r}function tl(r,s,o,c){var h=s.current,m=Rt(),v=mr(h);return o=hg(o),s.context===null?s.context=o:s.pendingContext=o,s=Vn(m,v),s.payload={element:r},c=c===void 0?null:c,c!==null&&(s.callback=c),r=dr(h,s,v),r!==null&&(vn(r,h,v,m),Oa(r,h,v)),v}function nl(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function mg(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<s?o:s}}function Xc(r,s){mg(r,s),(r=r.alternate)&&mg(r,s)}function Rb(){return null}var gg=typeof reportError=="function"?reportError:function(r){console.error(r)};function Yc(r){this._internalRoot=r}rl.prototype.render=Yc.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(n(409));tl(r,s,null,null)},rl.prototype.unmount=Yc.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;Qr(function(){tl(null,r,null,null)}),s[Mn]=null}};function rl(r){this._internalRoot=r}rl.prototype.unstable_scheduleHydration=function(r){if(r){var s=Zh();r={blockedOn:null,target:r,priority:s};for(var o=0;o<rr.length&&s!==0&&s<rr[o].priority;o++);rr.splice(o,0,r),o===0&&np(r)}};function Jc(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function sl(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function yg(){}function Ab(r,s,o,c,h){if(h){if(typeof c=="function"){var m=c;c=function(){var U=nl(v);m.call(U)}}var v=pg(s,c,r,0,null,!1,!1,"",yg);return r._reactRootContainer=v,r[Mn]=v.current,Ki(r.nodeType===8?r.parentNode:r),Qr(),v}for(;h=r.lastChild;)r.removeChild(h);if(typeof c=="function"){var _=c;c=function(){var U=nl(C);_.call(U)}}var C=Gc(r,0,!1,null,null,!1,!1,"",yg);return r._reactRootContainer=C,r[Mn]=C.current,Ki(r.nodeType===8?r.parentNode:r),Qr(function(){tl(s,C,o,c)}),C}function il(r,s,o,c,h){var m=o._reactRootContainer;if(m){var v=m;if(typeof h=="function"){var _=h;h=function(){var C=nl(v);_.call(C)}}tl(s,v,r,h)}else v=Ab(o,s,r,h,c);return nl(v)}Yh=function(r){switch(r.tag){case 3:var s=r.stateNode;if(s.current.memoizedState.isDehydrated){var o=Oi(s.pendingLanes);o!==0&&(bu(s,o|1),jt(s,Ye()),(Ne&6)===0&&(Ks=Ye()+500,ur()))}break;case 13:Qr(function(){var c=Un(r,1);if(c!==null){var h=Rt();vn(c,r,1,h)}}),Xc(r,1)}},ku=function(r){if(r.tag===13){var s=Un(r,134217728);if(s!==null){var o=Rt();vn(s,r,134217728,o)}Xc(r,134217728)}},Jh=function(r){if(r.tag===13){var s=mr(r),o=Un(r,s);if(o!==null){var c=Rt();vn(o,r,s,c)}Xc(r,s)}},Zh=function(){return Ie},ep=function(r,s){var o=Ie;try{return Ie=r,s()}finally{Ie=o}},mu=function(r,s,o){switch(s){case"input":if(ft(r,o),s=o.name,o.type==="radio"&&s!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<o.length;s++){var c=o[s];if(c!==r&&c.form===r.form){var h=ba(c);if(!h)throw Error(n(90));dt(c),ft(c,h)}}}break;case"textarea":Rh(r,o);break;case"select":s=o.value,s!=null&&Zn(r,!!o.multiple,s,!1)}},Fh=$c,Bh=Qr;var Nb={usingClientEntryPoint:!1,Events:[Xi,Ds,ba,Mh,Ih,$c]},co={findFiberByHostInstance:Ur,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ob={bundleType:co.bundleType,version:co.version,rendererPackageName:co.rendererPackageName,rendererConfig:co.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:L.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=$h(r),r===null?null:r.stateNode},findFiberByHostInstance:co.findFiberByHostInstance||Rb,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 ol=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ol.isDisabled&&ol.supportsFiber)try{ra=ol.inject(Ob),kn=ol}catch{}}return Mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Nb,Mt.createPortal=function(r,s){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Jc(s))throw Error(n(200));return Pb(r,s,null,o)},Mt.createRoot=function(r,s){if(!Jc(r))throw Error(n(299));var o=!1,c="",h=gg;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onRecoverableError!==void 0&&(h=s.onRecoverableError)),s=Gc(r,1,!1,null,null,o,!1,c,h),r[Mn]=s.current,Ki(r.nodeType===8?r.parentNode:r),new Yc(s)},Mt.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var s=r._reactInternals;if(s===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=$h(s),r=r===null?null:r.stateNode,r},Mt.flushSync=function(r){return Qr(r)},Mt.hydrate=function(r,s,o){if(!sl(s))throw Error(n(200));return il(null,r,s,!0,o)},Mt.hydrateRoot=function(r,s,o){if(!Jc(r))throw Error(n(405));var c=o!=null&&o.hydratedSources||null,h=!1,m="",v=gg;if(o!=null&&(o.unstable_strictMode===!0&&(h=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onRecoverableError!==void 0&&(v=o.onRecoverableError)),s=pg(s,null,r,1,o??null,h,!1,m,v),r[Mn]=s.current,Ki(r),c)for(r=0;r<c.length;r++)o=c[r],h=o._getVersion,h=h(o._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[o,h]:s.mutableSourceEagerHydrationData.push(o,h);return new rl(s)},Mt.render=function(r,s,o){if(!sl(s))throw Error(n(200));return il(null,r,s,!1,o)},Mt.unmountComponentAtNode=function(r){if(!sl(r))throw Error(n(40));return r._reactRootContainer?(Qr(function(){il(null,null,r,!1,function(){r._reactRootContainer=null,r[Mn]=null})}),!0):!1},Mt.unstable_batchedUpdates=$c,Mt.unstable_renderSubtreeIntoContainer=function(r,s,o,c){if(!sl(o))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return il(r,s,o,!1,c)},Mt.version="18.3.1-next-f1338f8080-20240426",Mt}var Tg;function S0(){if(Tg)return nd.exports;Tg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),nd.exports=$b(),nd.exports}var Cg;function Wb(){if(Cg)return ll;Cg=1;var t=S0();return ll.createRoot=t.createRoot,ll.hydrateRoot=t.hydrateRoot,ll}var Hb=Wb();const qb=w0(Hb),Kb=20,Qb=1e6,Qn={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let id=0;function Gb(){return id=(id+1)%Number.MAX_VALUE,id.toString()}const od=new Map,Pg=t=>{if(od.has(t))return;const e=setTimeout(()=>{od.delete(t),_o({type:Qn.REMOVE_TOAST,toastId:t})},Qb);od.set(t,e)},Xb=(t,e)=>{switch(e.type){case Qn.ADD_TOAST:return{...t,toasts:[e.toast,...t.toasts].slice(0,Kb)};case Qn.UPDATE_TOAST:return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case Qn.DISMISS_TOAST:{const{toastId:n}=e;return n?Pg(n):t.toasts.forEach(i=>{Pg(i.id)}),{...t,toasts:t.toasts.map(i=>i.id===n||n===void 0?{...i,open:!1}:i)}}case Qn.REMOVE_TOAST:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},xl=[];let Sl={toasts:[]};function _o(t){Sl=Xb(Sl,t),xl.forEach(e=>{e(Sl)})}function Yb({...t}){const e=Gb(),n=a=>_o({type:Qn.UPDATE_TOAST,toast:{...a,id:e}}),i=()=>_o({type:Qn.DISMISS_TOAST,toastId:e});return _o({type:Qn.ADD_TOAST,toast:{...t,id:e,open:!0,onOpenChange:a=>{a||i()}}}),{id:e,dismiss:i,update:n}}function Jb(){const[t,e]=j.useState(Sl);return j.useEffect(()=>(xl.push(e),()=>{const n=xl.indexOf(e);n>-1&&xl.splice(n,1)}),[t]),{...t,toast:Yb,dismiss:n=>_o({type:Qn.DISMISS_TOAST,toastId:n})}}function b0(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(n=b0(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function k0(){for(var t,e,n=0,i="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=b0(t))&&(i&&(i+=" "),i+=e);return i}const Rg=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Ag=k0,E0=(t,e)=>n=>{var i;if((e==null?void 0:e.variants)==null)return Ag(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:l}=e,u=Object.keys(a).map(p=>{const g=n==null?void 0:n[p],y=l==null?void 0:l[p];if(g===null)return null;const w=Rg(g)||Rg(y);return a[p][w]}),d=n&&Object.entries(n).reduce((p,g)=>{let[y,w]=g;return w===void 0||(p[y]=w),p},{}),f=e==null||(i=e.compoundVariants)===null||i===void 0?void 0:i.reduce((p,g)=>{let{class:y,className:w,...x}=g;return Object.entries(x).every(T=>{let[E,k]=T;return Array.isArray(k)?k.includes({...l,...d}[E]):{...l,...d}[E]===k})?[...p,y,w]:p},[]);return Ag(t,u,f,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.475.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 Zb=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_0=(...t)=>t.filter((e,n,i)=>!!e&&e.trim()!==""&&i.indexOf(e)===n).join(" ").trim();/** 46 * @license lucide-react v0.475.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 ek={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.475.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 tk=j.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:a="",children:l,iconNode:u,...d},f)=>j.createElement("svg",{ref:f,...ek,width:e,height:e,stroke:t,strokeWidth:i?Number(n)*24/Number(e):n,className:_0("lucide",a),...d},[...u.map(([p,g])=>j.createElement(p,g)),...Array.isArray(l)?l:[l]]));/** 56 * @license lucide-react v0.475.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 Xe=(t,e)=>{const n=j.forwardRef(({className:i,...a},l)=>j.createElement(tk,{ref:l,iconNode:e,className:_0(`lucide-${Zb(t)}`,i),...a}
60));return n.displayName=`${t}`,n};/** 61 * @license lucide-react v0.475.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 nk=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],rk=Xe("Award",nk);/** 66 * @license lucide-react v0.475.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 sk=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ik=Xe("Check",sk);/** 71 * @license lucide-react v0.475.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 ok=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ak=Xe("ChevronDown",ok);/** 76 * @license lucide-react v0.475.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 lk=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],uk=Xe("ChevronLeft",lk);/** 81 * @license lucide-react v0.475.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 ck=[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]],T0=Xe("Coins",ck);/** 86 * @license lucide-react v0.475.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 dk=[["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"}]],fk=Xe("ExternalLink",dk);/** 91 * @license lucide-react v0.475.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 hk=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],Cf=Xe("Heart",hk);/** 96 * @license lucide-react v0.475.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 pk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],mk=Xe("Info",pk);/** 101 * @license lucide-react v0.475.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 gk=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],yk=Xe("Layers",gk);/** 106 * @license lucide-react v0.475.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 vk=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],C0=Xe("Leaf",vk);/** 111 * @license lucide-react v0.475.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 wk=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],xk=Xe("Menu",wk);/** 116 * @license lucide-react v0.475.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 Sk=[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]],P0=Xe("Palette",Sk);/** 121 * @license lucide-react v0.475.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const bk=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],kk=Xe("RotateCcw",bk);/** 126 * @license lucide-react v0.475.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const Ek=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],_k=Xe("Route",Ek);/** 131 * @license lucide-react v0.475.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const Tk=[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}
vendor: 6,034 bytes, lines 135-170
135],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]],Ck=Xe("Ruler",Tk);/** 136 * @license lucide-react v0.475.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const Pk=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Rk=Xe("Search",Pk);/** 141 * @license lucide-react v0.475.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const Ak=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Nk=Xe("Share2",Ak);/** 146 * @license lucide-react v0.475.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const Ok=[["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"}]],Ql=Xe("ShoppingBag",Ok);/** 151 * @license lucide-react v0.475.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const Lk=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],ad=Xe("Sparkles",Lk);/** 156 * @license lucide-react v0.475.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const Dk=[["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"}]],jk=Xe("Star",Dk);/** 161 * @license lucide-react v0.475.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const Mk=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Ik=Xe("User",Mk);/** 166 * @license lucide-react v0.475.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const Fk=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Pf=Xe("X",Fk),Bk=(t,e)=>{const n=new Array(t.length+e.length);for(let i=0;i<t.length;i++)n[i]=t[i];for(let i=0;i<e.length;i++)n[t.length+i]=e[i];return n},Uk=(t,e)=>({classGroupId:t,validator:e}),R0=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),Ol="-",Ng=[],Vk="arbitrary..",zk=t=>{const e=Wk(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return $k(u);const d=u.split(Ol),f=d[0]===""&&d.length>1?1:0;return A0(d,f,e)},getConflictingClassGroupIds:(u,d)=>{if(d){const f=i[u],p=n[u];return f?p?Bk(p,f):f:p||Ng}return n[u]||Ng}}},A0=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const a=t[e],l=n.nextPart.get(a);if(l){const p=A0(t,e+1,l);if(p)return p}const u=n.validators;if(u===null)return;const d=e===0?t.join(Ol):t.slice(e).join(Ol),f=u.length;for(let p=0;p<f;p++){const g=u[p];if(g.validator(d))return g.classGroupId}},$k=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),i=e.slice(0,n);return i?Vk+i:void 0})(),Wk=t=>{const{theme:e,classGroups:n}=t;return Hk(n,e)},Hk=(t,e)=>{const n=R0();for(const i in t){const a=t[i];Rf(a,n,i,e)}return n},Rf=(t,e,n,i)=>{const a=t.length;for(let l=0;l<a;l++){const u=t[l];qk(u,e,n,i)}},qk=(t,e,n,i)=>{if(typeof t=="string"){Kk(t,e,n);return}if(typeof t=="function"){Qk(t,e,n,i);return}Gk(t,e,n,i)},Kk=(t,e,n)=>{const i=t===""?e:N0(e,t);i.classGroupId=n},Qk=(t,e,n,i)=>{if(Xk(t)){Rf(t(i),e,n,i);return}e.validators===null&&(e.validators=[]),e.validators.push(Uk(n,t))},Gk=(t,e,n,i)=>{const a=Object.entries(t),l=a.length;for(let u=0;u<l;u++){const[d,f]=a[u];Rf(f,N0(e,d),n,i)}},N0=(t,e)=>{let n=t;const i=e.split(Ol),a=i.length;for(let l=0;l<a;l++){const u=i[l];let d=n.nextPart.get(u);d||(d=R0(),n.nextPart.set(u,d)),n=d}return n},Xk=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Yk=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),i=Object.create(null);const a=(l,u)=>{n[l]=u,e++,e>t&&(e=0,i=n,n=Object.create(null))};return{get(l){let u=n[l];if(u!==void 0)return u;if((u=i[l])!==void 0)return a(l,u),u},set(l,u){l in n?n[l]=u:a(l,u)}}},Ld="!",Og=":",Jk=[],Lg=(t,e,n,i,a)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:i,isExternal:a}),Zk=t=>{const{prefix:e,experimentalParseClassName:n}=t;let i=a=>{const l=[];let u=0,d=0,f=0,p;const g=a.length;for(let E=0;E<g;E++){const k=a[E];if(u===0&&d===0){if(k===Og){l.push(a.slice(f,E)),f=E+1;continue}if(k==="/"){p=E;continue}}k==="["?u++:k==="]"?u--:k==="("?d++:k===")"&&d--}const y=l.length===0?a:a.slice(f);let w=y,x=!1;y.endsWith(Ld)?(w=y.slice(0,-1),x=!0):y.startsWith(Ld)&&(w=y.slice(1),x=!0);const T=p&&p>f?p-f:void 0;return Lg(l,x,w,T)};if(e){const a=e+Og,l=i;i=u=>u.startsWith(a)?l(u.slice(a.length)):Lg(Jk,!1,u,void 0,!0)}if(n){const a=i;i=l=>n({className:l,parseClassName:a})}return i},eE=t=>{const e=new Map;
vendor: 5,462 bytes, line 170
170return t.orderSensitiveModifiers.forEach((n,i)=>{e.set(n,1e6+i)}),n=>{const i=[];let a=[];for(let l=0;l<n.length;l++){const u=n[l],d=u[0]==="[",f=e.has(u);d||f?(a.length>0&&(a.sort(),i.push(...a),a=[]),i.push(u)):a.push(u)}return a.length>0&&(a.sort(),i.push(...a)),i}},tE=t=>({cache:Yk(t.cacheSize),parseClassName:Zk(t),sortModifiers:eE(t),...zk(t)}),nE=/\s+/,rE=(t,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:l}=e,u=[],d=t.trim().split(nE);let f="";for(let p=d.length-1;p>=0;p-=1){const g=d[p],{isExternal:y,modifiers:w,hasImportantModifier:x,baseClassName:T,maybePostfixModifierPosition:E}=n(g);if(y){f=g+(f.length>0?" "+f:f);continue}let k=!!E,S=i(k?T.substring(0,E):T);if(!S){if(!k){f=g+(f.length>0?" "+f:f);continue}if(S=i(T),!S){f=g+(f.length>0?" "+f:f);continue}k=!1}const A=w.length===0?"":w.length===1?w[0]:l(w).join(":"),P=x?A+Ld:A,L=P+S;if(u.indexOf(L)>-1)continue;u.push(L);const I=a(S,k);for(let z=0;z<I.length;++z){const X=I[z];u.push(P+X)}f=g+(f.length>0?" "+f:f)}return f},sE=(...t)=>{let e=0,n,i,a="";for(;e<t.length;)(n=t[e++])&&(i=O0(n))&&(a&&(a+=" "),a+=i);return a},O0=t=>{if(typeof t=="string")return t;let e,n="";for(let i=0;i<t.length;i++)t[i]&&(e=O0(t[i]))&&(n&&(n+=" "),n+=e);return n},iE=(t,...e)=>{let n,i,a,l;const u=f=>{const p=e.reduce((g,y)=>y(g),t());return n=tE(p),i=n.cache.get,a=n.cache.set,l=d,d(f)},d=f=>{const p=i(f);if(p)return p;const g=rE(f,n);return a(f,g),g};return l=u,(...f)=>l(sE(...f))},oE=[],it=t=>{const e=n=>n[t]||oE;return e.isThemeGetter=!0,e},L0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,D0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,aE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,lE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uE=/\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$/,cE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,dE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wr=t=>aE.test(t),ke=t=>!!t&&!Number.isNaN(Number(t)),xr=t=>!!t&&Number.isInteger(Number(t)),ld=t=>t.endsWith("%")&&ke(t.slice(0,-1)),Wn=t=>lE.test(t),j0=()=>!0,hE=t=>uE.test(t)&&!cE.test(t),Af=()=>!1,pE=t=>dE.test(t),mE=t=>fE.test(t),gE=t=>!re(t)&&!ie(t),yE=t=>Ir(t,F0,Af),re=t=>L0.test(t),Jr=t=>Ir(t,B0,hE),Dg=t=>Ir(t,_E,ke),vE=t=>Ir(t,V0,j0),wE=t=>Ir(t,U0,Af),jg=t=>Ir(t,M0,Af),xE=t=>Ir(t,I0,mE),ul=t=>Ir(t,z0,pE),ie=t=>D0.test(t),ho=t=>ks(t,B0),SE=t=>ks(t,U0),Mg=t=>ks(t,M0),bE=t=>ks(t,F0),kE=t=>ks(t,I0),cl=t=>ks(t,z0,!0),EE=t=>ks(t,V0,!0),Ir=(t,e,n)=>{const i=L0.exec(t);return i?i[1]?e(i[1]):n(i[2]):!1},ks=(t,e,n=!1)=>{const i=D0.exec(t);return i?i[1]?e(i[1]):n:!1},M0=t=>t==="position"||t==="percentage",I0=t=>t==="image"||t==="url",F0=t=>t==="length"||t==="size"||t==="bg-size",B0=t=>t==="length",_E=t=>t==="number",U0=t=>t==="family-name",V0=t=>t==="number"||t==="weight",z0=t=>t==="shadow",TE=()=>{const t=it("color"),e=it("font"),n=it("text"),i=it("font-weight"),a=it("tracking"),l=it("leading"),u=it("breakpoint"),d=it("container"),f=it("spacing"),p=it("radius"),g=it("shadow"),y=it("inset-shadow"),w=it("text-shadow"),x=it("drop-shadow"),T=it("blur"),E=it("perspective"),k=it("aspect"),S=it("ease"),A=it("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...L(),ie,re],z=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto","contain","none"],B=()=>[ie,re,f],Z=()=>[wr,"full","auto",...B()],ue=()=>[xr,"none","subgrid",ie,re],be=()=>["auto",{span:["full",xr,ie,re]},xr,ie,re],Ae=()=>[xr,"auto",ie,re],Le=()=>["auto","min","max","fr",ie,re],Te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Me=()=>["start","end","center","stretch","center-safe","end-safe"],fe=()=>["auto",...B()],le=()=>[wr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],K=()=>[wr,"screen","full","dvw","lvw","svw","min","max","fit",...B()],se=()=>[wr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...B()],V=()=>[t,ie,re],D=()=>[...L(),Mg,jg,{position:[ie,re]}],$=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ge=()=>["auto","cover","contain",bE,yE,{size:[ie,re]}],ye=()=>[ld,ho,Jr],he=()=>["","none","full",p,ie,re],G=()=>["",ke,ho,Jr],xe=()=>["solid","dashed","dotted","double"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>[ke,ld,Mg,jg],ot=()=>["","none",T,ie,re],Kt=()=>["none",ke,ie,re],dt=()=>["none",ke,ie,re],un=()=>[ke,ie,re],Qt=()=>[wr,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Wn],breakpoint:[Wn],color:[j0],container:[Wn],"drop-shadow":[Wn],ease:["in","out","in-out"],font:[gE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Wn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Wn],shadow:[Wn],spacing:["px",ke],text:[Wn],"text-shadow":[Wn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wr,re,ie,k]}
vendor: 6,133 bytes, line 170
170],container:["container"],columns:[{columns:[ke,re,ie,d]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"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"],sr:["sr-only","not-sr-only"],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:I()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{"inset-s":Z(),start:Z()}],end:[{"inset-e":Z(),end:Z()}],"inset-bs":[{"inset-bs":Z()}],"inset-be":[{"inset-be":Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[xr,"auto",ie,re]}],basis:[{basis:[wr,"full","auto",d,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,wr,"auto","initial","none",re]}],grow:[{grow:["",ke,ie,re]}],shrink:[{shrink:["",ke,ie,re]}],order:[{order:[xr,"first","last","none",ie,re]}],"grid-cols":[{"grid-cols":ue()}],"col-start-end":[{col:be()}],"col-start":[{"col-start":Ae()}],"col-end":[{"col-end":Ae()}],"grid-rows":[{"grid-rows":ue()}],"row-start-end":[{row:be()}],"row-start":[{"row-start":Ae()}],"row-end":[{"row-end":Ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Le()}],"auto-rows":[{"auto-rows":Le()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...Te(),"normal"]}],"justify-items":[{"justify-items":[...Me(),"normal"]}],"justify-self":[{"justify-self":["auto",...Me()]}],"align-content":[{content:["normal",...Te()]}],"align-items":[{items:[...Me(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Me(),{baseline:["","last"]}]}],"place-content":[{"place-content":Te()}],"place-items":[{"place-items":[...Me(),"baseline"]}],"place-self":[{"place-self":["auto",...Me()]}],p:[{p:B()}],px:[{px:B()}],py:[{py:B()}],ps:[{ps:B()}],pe:[{pe:B()}],pbs:[{pbs:B()}],pbe:[{pbe:B()}],pt:[{pt:B()}],pr:[{pr:B()}],pb:[{pb:B()}],pl:[{pl:B()}],m:[{m:fe()}],mx:[{mx:fe()}],my:[{my:fe()}],ms:[{ms:fe()}],me:[{me:fe()}],mbs:[{mbs:fe()}],mbe:[{mbe:fe()}],mt:[{mt:fe()}],mr:[{mr:fe()}],mb:[{mb:fe()}],ml:[{ml:fe()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:le()}],"inline-size":[{inline:["auto",...K()]}],"min-inline-size":[{"min-inline":["auto",...K()]}],"max-inline-size":[{"max-inline":["none",...K()]}],"block-size":[{block:["auto",...se()]}],"min-block-size":[{"min-block":["auto",...se()]}],"max-block-size":[{"max-block":["none",...se()]}],w:[{w:[d,"screen",...le()]}],"min-w":[{"min-w":[d,"screen","none",...le()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...le()]}],h:[{h:["screen","lh",...le()]}],"min-h":[{"min-h":["screen","lh","none",...le()]}],"max-h":[{"max-h":["screen","lh",...le()]}],"font-size":[{text:["base",n,ho,Jr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,EE,vE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ld,re]}],"font-family":[{font:[SE,wE,e]}],"font-features":[{"font-features":[re]}],"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:[a,ie,re]}],"line-clamp":[{"line-clamp":[ke,"none",ie,Dg]}],leading:[{leading:[l,...B()]}],"list-image":[{"list-image":["none",ie,re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xe(),"wavy"]}],"text-decoration-thickness":[{decoration:[ke,"from-font","auto",ie,Jr]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[ke,"auto",ie,re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie,re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:$()}],"bg-size":[{bg:ge()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},xr,ie,re],radial:["",ie,re],conic:[xr,ie,re]},kE,xE]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:ye()}
vendor: 7,388 bytes, line 170
170],"gradient-via-pos":[{via:ye()}],"gradient-to-pos":[{to:ye()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-bs":[{"border-bs":G()}],"border-w-be":[{"border-be":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...xe(),"hidden","none"]}],"divide-style":[{divide:[...xe(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-bs":[{"border-bs":V()}],"border-color-be":[{"border-be":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...xe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ke,ie,re]}],"outline-w":[{outline:["",ke,ho,Jr]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",g,cl,ul]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",y,cl,ul]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[ke,Jr]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",w,cl,ul]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[ke,ie,re]}],"mix-blend":[{"mix-blend":[..._e(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_e()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":we()}],"mask-image-linear-to-pos":[{"mask-linear-to":we()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":we()}],"mask-image-t-to-pos":[{"mask-t-to":we()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":we()}],"mask-image-r-to-pos":[{"mask-r-to":we()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":we()}],"mask-image-b-to-pos":[{"mask-b-to":we()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":we()}],"mask-image-l-to-pos":[{"mask-l-to":we()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":we()}],"mask-image-x-to-pos":[{"mask-x-to":we()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":we()}],"mask-image-y-to-pos":[{"mask-y-to":we()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[ie,re]}],"mask-image-radial-from-pos":[{"mask-radial-from":we()}],"mask-image-radial-to-pos":[{"mask-radial-to":we()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":L()}],"mask-image-conic-pos":[{"mask-conic":[ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":we()}],"mask-image-conic-to-pos":[{"mask-conic-to":we()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:$()}],"mask-size":[{mask:ge()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,re]}],filter:[{filter:["","none",ie,re]}],blur:[{blur:ot()}],brightness:[{brightness:[ke,ie,re]}],contrast:[{contrast:[ke,ie,re]}],"drop-shadow":[{"drop-shadow":["","none",x,cl,ul]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",ke,ie,re]}],"hue-rotate":[{"hue-rotate":[ke,ie,re]}],invert:[{invert:["",ke,ie,re]}],saturate:[{saturate:[ke,ie,re]}],sepia:[{sepia:["",ke,ie,re]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,re]}],"backdrop-blur":[{"backdrop-blur":ot()}],"backdrop-brightness":[{"backdrop-brightness":[ke,ie,re]}],"backdrop-contrast":[{"backdrop-contrast":[ke,ie,re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ke,ie,re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ke,ie,re]}],"backdrop-invert":[{"backdrop-invert":["",ke,ie,re]}],"backdrop-opacity":[{"backdrop-opacity":[ke,ie,re]}],"backdrop-saturate":[{"backdrop-saturate":[ke,ie,re]}],"backdrop-sepia":[{"backdrop-sepia":["",ke,ie,re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":B()}],"border-spacing-x":[{"border-spacing-x":B()}],"border-spacing-y":[{"border-spacing-y":B()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ke,"initial",ie,re]}],ease:[{ease:["linear","initial",S,ie,re]}],delay:[{delay:[ke,ie,re]}],animate:[{animate:["none",A,ie,re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ie,re]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:Kt()}],"rotate-x":[{"rotate-x":Kt()}],"rotate-y":[{"rotate-y":Kt()}],"rotate-z":[{"rotate-z":Kt()}],scale:[{scale:dt()}],"scale-x":[{"scale-x":dt()}],"scale-y":[{"scale-y":dt()}],"scale-z":[{"scale-z":dt()}],"scale-3d":["scale-3d"],skew:[{skew:un()}],"skew-x":[{"skew-x":un()}],"skew-y":[{"skew-y":un()}],transform:[{transform:[ie,re,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Qt()}],"translate-x":[{"translate-x":Qt()}],"translate-y":[{"translate-y":Qt()}],"translate-z":[{"translate-z":Qt()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}
vendor: 6,955 bytes, line 170
170],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",ie,re]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mbs":[{"scroll-mbs":B()}],"scroll-mbe":[{"scroll-mbe":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pbs":[{"scroll-pbs":B()}],"scroll-pbe":[{"scroll-pbe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"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",ie,re]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[ke,ho,Jr,Dg]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},CE=iE(TE);function Si(...t){return CE(k0(t))}const $0=j.forwardRef(({...t},e)=>b.jsx("div",{ref:e,className:"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]",...t}));$0.displayName="ToastProvider";const W0=j.forwardRef(({...t},e)=>b.jsx("div",{ref:e,className:"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]",...t}));W0.displayName="ToastViewport";const PE=E0("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"}}),H0=j.forwardRef(({className:t,variant:e,...n},i)=>b.jsx("div",{ref:i,className:Si(PE({variant:e}),t),...n}));H0.displayName="Toast";const RE=j.forwardRef(({className:t,...e},n)=>b.jsx("div",{ref:n,className:Si("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 hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...e}));RE.displayName="ToastAction";const q0=j.forwardRef(({className:t,...e},n)=>b.jsx("button",{ref:n,className:Si("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 4,297 bytes, line 170
170/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:b.jsx(Pf,{className:"h-4 w-4"})}));q0.displayName="ToastClose";const K0=j.forwardRef(({className:t,...e},n)=>b.jsx("div",{ref:n,className:Si("text-sm font-semibold",t),...e}));K0.displayName="ToastTitle";const Q0=j.forwardRef(({className:t,...e},n)=>b.jsx("div",{ref:n,className:Si("text-sm opacity-90",t),...e}));Q0.displayName="ToastDescription";function AE(){const{toasts:t}=Jb();return b.jsxs($0,{children:[t.map(function({id:e,title:n,description:i,action:a,...l}){return b.jsxs(H0,{...l,children:[b.jsxs("div",{className:"grid gap-1",children:[n&&b.jsx(K0,{children:n}),i&&b.jsx(Q0,{children:i})]}),a,b.jsx(q0,{})]},e)}),b.jsx(W0,{})]})}var Wo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},NE={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},kr,_f,l0,OE=(l0=class{constructor(){pe(this,kr,NE);pe(this,_f,!1)}setTimeoutProvider(t){ee(this,kr,t)}setTimeout(t,e){return R(this,kr).setTimeout(t,e)}clearTimeout(t){R(this,kr).clearTimeout(t)}setInterval(t,e){return R(this,kr).setInterval(t,e)}clearInterval(t){R(this,kr).clearInterval(t)}},kr=new WeakMap,_f=new WeakMap,l0),ss=new OE;function LE(t){setTimeout(t,0)}var ws=typeof window>"u"||"Deno"in globalThis;function Ft(){}function DE(t,e){return typeof t=="function"?t(e):t}function Dd(t){return typeof t=="number"&&t>=0&&t!==1/0}function G0(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Lr(t,e){return typeof t=="function"?t(e):t}function on(t,e){return typeof t=="function"?t(e):t}function Ig(t,e){const{type:n="all",exact:i,fetchStatus:a,predicate:l,queryKey:u,stale:d}=t;if(u){if(i){if(e.queryHash!==Nf(u,e.options))return!1}else if(!Oo(e.queryKey,u))return!1}if(n!=="all"){const f=e.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof d=="boolean"&&e.isStale()!==d||a&&a!==e.state.fetchStatus||l&&!l(e))}function Fg(t,e){const{exact:n,status:i,predicate:a,mutationKey:l}=t;if(l){if(!e.options.mutationKey)return!1;if(n){if(No(e.options.mutationKey)!==No(l))return!1}else if(!Oo(e.options.mutationKey,l))return!1}return!(i&&e.state.status!==i||a&&!a(e))}function Nf(t,e){return((e==null?void 0:e.queryKeyHashFn)||No)(t)}function No(t){return JSON.stringify(t,(e,n)=>Md(n)?Object.keys(n).sort().reduce((i,a)=>(i[a]=n[a],i),{}):n)}function Oo(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>Oo(t[n],e[n])):!1}var jE=Object.prototype.hasOwnProperty;function X0(t,e,n=0){if(t===e)return t;if(n>500)return e;const i=Bg(t)&&Bg(e);if(!i&&!(Md(t)&&Md(e)))return e;const l=(i?t:Object.keys(t)).length,u=i?e:Object.keys(e),d=u.length,f=i?new Array(d):{};let p=0;for(let g=0;g<d;g++){const y=i?g:u[g],w=t[y],x=e[y];if(w===x){f[y]=w,(i?g<l:jE.call(t,y))&&p++;continue}if(w===null||x===null||typeof w!="object"||typeof x!="object"){f[y]=x;continue}const T=X0(w,x,n+1);f[y]=T,T===w&&p++}return l===d&&p===l?t:f}function jd(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function Bg(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Md(t){if(!Ug(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!Ug(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Ug(t){return Object.prototype.toString.call(t)==="[object Object]"}function ME(t){return new Promise(e=>{ss.setTimeout(e,t)})}function Id(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?X0(t,e):e}function IE(t,e,n=0){const i=[...t,e];return n&&i.length>n?i.slice(1):i}function FE(t,e,n=0){const i=[e,...t];return n&&i.length>n?i.slice(0,-1):i}
170var Of=Symbol();function Y0(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===Of?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function J0(t,e){return typeof t=="function"?t(...e):!!t}function BE(t,e,n){let i=!1,a;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(a??(a=e()),i||(i=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),t}var as,Er,ii,u0,UE=(u0=class extends Wo{constructor(){super();pe(this,as);pe(this,Er);pe(this,ii);ee(this,ii,e=>{if(!ws&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,Er)||this.setEventListener(R(this,ii))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,Er))==null||e.call(this),ee(this,Er,void 0))}setEventListener(e){var n;ee(this,ii,e),(n=R(this,Er))==null||n.call(this),ee(this,Er,e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(e){R(this,as)!==e&&(ee(this,as,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof R(this,as)=="boolean"?R(this,as):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},as=new WeakMap,Er=new WeakMap,ii=new WeakMap,u0),Lf=new UE;function Fd(){let t,e;const n=new Promise((a,l)=>{t=a,e=l});n.status="pending",n.catch(()=>{});function i(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{i({status:"fulfilled",value:a}),t(a)},n.reject=a=>{i({status:"rejected",reason:a}),e(a)},n}var VE=LE;function zE(){let t=[],e=0,n=d=>{d()},i=d=>{d()},a=VE;const l=d=>{e?t.push(d):a(()=>{n(d)})},u=()=>{const d=t;t=[],d.length&&a(()=>{i(()=>{d.forEach(f=>{n(f)})})})};return{batch:d=>{let f;e++;try{f=d()}finally{e--,e||u()}return f},batchCalls:d=>(...f)=>{l(()=>{d(...f)})},schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{i=d},setScheduler:d=>{a=d}}}var yt=zE(),oi,_r,ai,c0,$E=(c0=class extends Wo{constructor(){super();pe(this,oi,!0);pe(this,_r);pe(this,ai);ee(this,ai,e=>{if(!ws&&window.addEventListener){const n=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){R(this,_r)||this.setEventListener(R(this,ai))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,_r))==null||e.call(this),ee(this,_r,void 0))}setEventListener(e){var n;ee(this,ai,e),(n=R(this,_r))==null||n.call(this),ee(this,_r,e(this.setOnline.bind(this)))}setOnline(e){R(this,oi)!==e&&(ee(this,oi,e),this.listeners.forEach(i=>{i(e)}))}isOnline(){return R(this,oi)}},oi=new WeakMap,_r=new WeakMap,ai=new WeakMap,c0),Ll=new $E;function WE(t){return Math.min(1e3*2**t,3e4)}function Z0(t){return(t??"online")==="online"?Ll.isOnline():!0}var Bd=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function ew(t){let e=!1,n=0,i;const a=Fd(),l=()=>a.status!=="pending",u=E=>{var k;if(!l()){const S=new Bd(E);w(S),(k=t.onCancel)==null||k.call(t,S)}},d=()=>{e=!0},f=()=>{e=!1},p=()=>Lf.isFocused()&&(t.networkMode==="always"||Ll.isOnline())&&t.canRun(),g=()=>Z0(t.networkMode)&&t.canRun(),y=E=>{l()||(i==null||i(),a.resolve(E))},w=E=>{l()||(i==null||i(),a.reject(E))},x=()=>new Promise(E=>{var k;i=S=>{(l()||p())&&E(S)},(k=t.onPause)==null||k.call(t)}).then(()=>{var E;i=void 0,l()||(E=t.onContinue)==null||E.call(t)}),T=()=>{if(l())return;let E;const k=n===0?t.initialPromise:void 0;try{E=k??t.fn()}catch(S){E=Promise.reject(S)}Promise.resolve(E).then(y).catch(S=>{var z;if(l())return;const A=t.retry??(ws?0:3),P=t.retryDelay??WE,L=typeof P=="function"?P(n,S):P,I=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,S);if(e||!I){w(S);return}n++,(z=t.onFail)==null||z.call(t,n,S),ME(L).then(()=>p()?void 0:x()).then(()=>{e?w(S):T()})})};return{promise:a,status:()=>a.status,cancel:u,continue:()=>(i==null||i(),a),cancelRetry:d,continueRetry:f,canStart:g,start:()=>(g()?T():x().then(T),a)}}var ls,d0,tw=(d0=class{constructor(){pe(this,ls)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Dd(this.gcTime)&&ee(this,ls,ss.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(ws?1/0:300*1e3))}
170clearGcTimeout(){R(this,ls)&&(ss.clearTimeout(R(this,ls)),ee(this,ls,void 0))}},ls=new WeakMap,d0),us,li,sn,cs,ct,Bo,ds,xn,Hn,f0,HE=(f0=class extends tw{constructor(e){super();pe(this,xn);pe(this,us);pe(this,li);pe(this,sn);pe(this,cs);pe(this,ct);pe(this,Bo);pe(this,ds);ee(this,ds,!1),ee(this,Bo,e.defaultOptions),this.setOptions(e.options),this.observers=[],ee(this,cs,e.client),ee(this,sn,R(this,cs).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,ee(this,us,zg(this.options)),this.state=e.state??R(this,us),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=R(this,ct))==null?void 0:e.promise}setOptions(e){if(this.options={...R(this,Bo),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=zg(this.options);n.data!==void 0&&(this.setState(Vg(n.data,n.dataUpdatedAt)),ee(this,us,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,sn).remove(this)}setData(e,n){const i=Id(this.state.data,e,this.options);return Ce(this,xn,Hn).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(e,n){Ce(this,xn,Hn).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var i,a;const n=(i=R(this,ct))==null?void 0:i.promise;return(a=R(this,ct))==null||a.cancel(e),n?n.then(Ft).catch(Ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,us))}isActive(){return this.observers.some(e=>on(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Of||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Lr(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!G0(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=R(this,ct))==null||n.continue()}onOnline(){var n;const e=this.observers.find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=R(this,ct))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),R(this,sn).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(R(this,ct)&&(R(this,ds)?R(this,ct).cancel({revert:!0}):R(this,ct).cancelRetry()),this.scheduleGc()),R(this,sn).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ce(this,xn,Hn).call(this,{type:"invalidate"})}async fetch(e,n){var f,p,g,y,w,x,T,E,k,S,A,P;if(this.state.fetchStatus!=="idle"&&((f=R(this,ct))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(R(this,ct))return R(this,ct).continueRetry(),R(this,ct).promise}if(e&&this.setOptions(e),!this.options.queryFn){const L=this.observers.find(I=>I.options.queryFn);L&&this.setOptions(L.options)}const i=new AbortController,a=L=>{Object.defineProperty(L,"signal",{enumerable:!0,get:()=>(ee(this,ds,!0),i.signal)})},l=()=>{const L=Y0(this.options,n),z=(()=>{const X={client:R(this,cs),queryKey:this.queryKey,meta:this.meta};return a(X),X})();return ee(this,ds,!1),this.options.persister?this.options.persister(L,z,this):L(z)},d=(()=>{const L={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:R(this,cs),state:this.state,fetchFn:l};return a(L),L})();(p=this.options.behavior)==null||p.onFetch(d,this),ee(this,li,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=d.fetchOptions)==null?void 0:g.meta))&&Ce(this,xn,Hn).call(this,{type:"fetch",meta:(y=d.fetchOptions)==null?void 0:y.meta}),ee(this,ct,ew({initialPromise:n==null?void 0:n.initialPromise,fn:d.fetchFn,onCancel:L=>{L instanceof Bd&&L.revert&&this.setState({...R(this,li),fetchStatus:"idle"}),i.abort()},onFail:(L,I)=>{Ce(this,xn,Hn).call(this,{type:"failed",failureCount:L,error:I})},onPause:()=>{Ce(this,xn,Hn).call(this,{type:"pause"})},onContinue:()=>{Ce(this,xn,Hn).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const L=await R(this,ct).start();if(L===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(L),(x=(w=R(this,sn).config).onSuccess)==null||x.call(w,L,this),(E=(T=R(this,sn).config).onSettled)==null||E.call(T,L,this.state.error,this),L}catch(L){if(L instanceof Bd){if(L.silent)return R(this,ct).promise;if(L.revert){if(this.state.data===void 0)throw L;return this.state.data}}throw Ce(this,xn,Hn).call(this,{type:"error",error:L}),(S=(k=R(this,sn).config).onError)==null||S.call(k,L,this),(P=(A=R(this,sn).config).onSettled)==null||P.call(A,this.state.data,L,this),L}finally{this.scheduleGc()}}},us=new WeakMap,li=new WeakMap,sn=new WeakMap,cs=new WeakMap,ct=new WeakMap,Bo=new WeakMap,ds=new WeakMap,xn=new WeakSet,Hn=function(e){const n=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...nw(i.data,this.options),fetchMeta:e.meta??null};case"success":const a={...i,...Vg(e.data,e.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ee(this,li,e.manual?a:void 0),a;case"error":const l=e.error;
vendor: 9,622 bytes, line 170
170return{...i,error:l,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=n(this.state),yt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),R(this,sn).notify({query:this,type:"updated",action:e})})},f0);function nw(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Z0(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Vg(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function zg(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,i=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var It,Pe,Uo,At,fs,ui,qn,Tr,Vo,ci,di,hs,ps,Cr,fi,je,vo,Ud,Vd,zd,$d,Wd,Hd,qd,rw,h0,qE=(h0=class extends Wo{constructor(e,n){super();pe(this,je);pe(this,It);pe(this,Pe);pe(this,Uo);pe(this,At);pe(this,fs);pe(this,ui);pe(this,qn);pe(this,Tr);pe(this,Vo);pe(this,ci);pe(this,di);pe(this,hs);pe(this,ps);pe(this,Cr);pe(this,fi,new Set);this.options=n,ee(this,It,e),ee(this,Tr,null),ee(this,qn,Fd()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,Pe).addObserver(this),$g(R(this,Pe),this.options)?Ce(this,je,vo).call(this):this.updateResult(),Ce(this,je,$d).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Kd(R(this,Pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Kd(R(this,Pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ce(this,je,Wd).call(this),Ce(this,je,Hd).call(this),R(this,Pe).removeObserver(this)}setOptions(e){const n=this.options,i=R(this,Pe);if(this.options=R(this,It).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof on(this.options.enabled,R(this,Pe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ce(this,je,qd).call(this),R(this,Pe).setOptions(this.options),n._defaulted&&!jd(this.options,n)&&R(this,It).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,Pe),observer:this});const a=this.hasListeners();a&&Wg(R(this,Pe),i,this.options,n)&&Ce(this,je,vo).call(this),this.updateResult(),a&&(R(this,Pe)!==i||on(this.options.enabled,R(this,Pe))!==on(n.enabled,R(this,Pe))||Lr(this.options.staleTime,R(this,Pe))!==Lr(n.staleTime,R(this,Pe)))&&Ce(this,je,Ud).call(this);const l=Ce(this,je,Vd).call(this);a&&(R(this,Pe)!==i||on(this.options.enabled,R(this,Pe))!==on(n.enabled,R(this,Pe))||l!==R(this,Cr))&&Ce(this,je,zd).call(this,l)}getOptimisticResult(e){const n=R(this,It).getQueryCache().build(R(this,It),e),i=this.createResult(n,e);return QE(this,i)&&(ee(this,At,i),ee(this,ui,this.options),ee(this,fs,R(this,Pe).state)),i}getCurrentResult(){return R(this,At)}trackResult(e,n){return new Proxy(e,{get:(i,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&R(this,qn).status==="pending"&&R(this,qn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,a))})}trackProp(e){R(this,fi).add(e)}getCurrentQuery(){return R(this,Pe)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=R(this,It).defaultQueryOptions(e),i=R(this,It).getQueryCache().build(R(this,It),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(e){return Ce(this,je,vo).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),R(this,At)))}createResult(e,n){var Z;const i=R(this,Pe),a=this.options,l=R(this,At),u=R(this,fs),d=R(this,ui),p=e!==i?e.state:R(this,Uo),{state:g}=e;let y={...g},w=!1,x;if(n._optimisticResults){const ue=this.hasListeners(),be=!ue&&$g(e,n),Ae=ue&&Wg(e,i,n,a);(be||Ae)&&(y={...y,...nw(g.data,e.options)}),n._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:T,errorUpdatedAt:E,status:k}=y;x=y.data;let S=!1;if(n.placeholderData!==void 0&&x===void 0&&k==="pending"){let ue;l!=null&&l.isPlaceholderData&&n.placeholderData===(d==null?void 0:d.placeholderData)?(ue=l.data,S=!0):ue=typeof n.placeholderData=="function"?n.placeholderData((Z=R(this,di))==null?void 0:Z.state.data,R(this,di)):n.placeholderData,ue!==void 0&&(k="success",x=Id(l==null?void 0:l.data,ue,n),w=!0)}if(n.select&&x!==void 0&&!S)if(l&&x===(u==null?void 0:u.data)&&n.select===R(this,Vo))x=R(this,ci);else try{ee(this,Vo,n.select),x=n.select(x),x=Id(l==null?void 0:l.data,x,n),ee(this,ci,x),ee(this,Tr,null)}catch(ue){ee(this,Tr,ue)}R(this,Tr)&&(T=R(this,Tr),x=R(this,ci),E=Date.now(),k="error");const A=y.fetchStatus==="fetching",P=k==="pending",L=k==="error",I=P&&A,z=x!==void 0,B={status:k,fetchStatus:y.fetchStatus,isPending:P,isSuccess:k==="success",isError:L,isInitialLoading:I,isLoading:I,data:x,dataUpdatedAt:y.dataUpdatedAt,error:T,errorUpdatedAt:E,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:A,isRefetching:A&&!P,isLoadingError:L&&!z,isPaused:y.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:L&&z,isStale:Df(e,n),refetch:this.refetch,promise:R(this,qn),isEnabled:on(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const ue=B.data!==void 0,be=B.status==="error"&&!ue,Ae=Me=>{be?Me.reject(B.error):ue&&Me.resolve(B.data)},Le=()=>{const Me=ee(this,qn,B.promise=Fd());Ae(Me)},Te=R(this,qn);switch(Te.status){case"pending":e.queryHash===i.queryHash&&Ae(Te);break;case"fulfilled":(be||B.data!==Te.value)&&Le();break;case"rejected":(!be||B.error!==Te.reason)&&Le();break}}return B}updateResult(){const e=R(this,At),n=this.createResult(R(this,Pe),this.options);if(ee(this,fs,R(this,Pe).state),ee(this,ui,this.options),R(this,fs).data!==void 0&&ee(this,di,R(this,Pe)),jd(n,e))return;ee(this,At,n);const i=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!R(this,fi).size)return!0;const u=new Set(l??R(this,fi));return this.options.throwOnError&&u.add("error"),Object.keys(R(this,At)).some(d=>{const f=d;return R(this,At)[f]!==e[f]&&u.has(f)})};Ce(this,je,rw).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ce(this,je,$d).call(this)}},It=new WeakMap,Pe=new WeakMap,Uo=new WeakMap,At=new WeakMap,fs=new WeakMap,ui=new WeakMap,qn=new WeakMap,Tr=new WeakMap,Vo=new WeakMap,ci=new WeakMap,di=new WeakMap,hs=new WeakMap,ps=new WeakMap,Cr=new WeakMap,fi=new WeakMap,je=new WeakSet,vo=function(e){Ce(this,je,qd).call(this);let n=R(this,Pe).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(Ft)),n},Ud=function(){Ce(this,je,Wd).call(this);const e=Lr(this.options.staleTime,R(this,Pe));if(ws||R(this,At).isStale||!Dd(e))return;const i=G0(R(this,At).dataUpdatedAt,e)+1;ee(this,hs,ss.setTimeout(()=>{R(this,At).isStale||this.updateResult()},i))},Vd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,Pe)):this.options.refetchInterval)??!1},zd=function(e){Ce(this,je,Hd).call(this),ee(this,Cr,e),!(ws||on(this.options.enabled,R(this,Pe))===!1||!Dd(R(this,Cr))||R(this,Cr)===0)&&ee(this,ps,ss.setInterval(()=>{(this.options.refetchIntervalInBackground||Lf.isFocused())&&Ce(this,je,vo).call(this)},R(this,Cr)))},$d=function(){Ce(this,je,Ud).call(this),Ce(this,je,zd).call(this,Ce(this,je,Vd).call(this))},Wd=function(){R(this,hs)&&(ss.clearTimeout(R(this,hs)),ee(this,hs,void 0))},Hd=function(){R(this,ps)&&(ss.clearInterval(R(this,ps)),ee(this,ps,void 0))},qd=function(){const e=R(this,It).getQueryCache().build(R(this,It),this.options);if(e===R(this,Pe))return;const n=R(this,Pe);ee(this,Pe,e),ee(this,Uo,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},rw=function(e){yt.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(R(this,At))}),R(this,It).getQueryCache().notify({query:R(this,Pe),type:"observerResultsUpdated"})})},h0);function KE(t,e){return on(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function $g(t,e){return KE(t,e)||t.state.data!==void 0&&Kd(t,e,e.refetchOnMount)}function Kd(t,e,n){if(on(e.enabled,t)!==!1&&Lr(e.staleTime,t)!=="static"){const i=typeof n=="function"?n(t):n;return i==="always"||i!==!1&&Df(t,e)}return!1}function Wg(t,e,n,i){return(t!==e||on(i.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&Df(t,n)}function Df(t,e){return on(e.enabled,t)!==!1&&t.isStaleByTime(Lr(e.staleTime,t))}function QE(t,e){return!jd(t.getCurrentResult(),e)}function Hg(t){return{onFetch:(e,n)=>{var g,y,w,x,T;const i=e.options,a=(w=(y=(g=e.fetchOptions)==null?void 0:g.meta)==null?void 0:y.fetchMore)==null?void 0:w.direction,l=((x=e.state.data)==null?void 0:x.pages)||[],u=((T=e.state.data)==null?void 0:T.pageParams)||[];let d={pages:[],pageParams:[]},f=0;const p=async()=>{let E=!1;const k=P=>{BE(P,()=>e.signal,()=>E=!0)},S=Y0(e.options,e.fetchOptions),A=async(P,L,I)=>
vendor: 4,295 bytes, line 170
170{if(E)return Promise.reject();if(L==null&&P.pages.length)return Promise.resolve(P);const X=(()=>{const be={client:e.client,queryKey:e.queryKey,pageParam:L,direction:I?"backward":"forward",meta:e.options.meta};return k(be),be})(),B=await S(X),{maxPages:Z}=e.options,ue=I?FE:IE;return{pages:ue(P.pages,B,Z),pageParams:ue(P.pageParams,L,Z)}};if(a&&l.length){const P=a==="backward",L=P?GE:qg,I={pages:l,pageParams:u},z=L(i,I);d=await A(I,z,P)}else{const P=t??l.length;do{const L=f===0?u[0]??i.initialPageParam:qg(i,d);if(f>0&&L==null)break;d=await A(d,L),f++}while(f<P)}return d};e.options.persister?e.fetchFn=()=>{var E,k;return(k=(E=e.options).persister)==null?void 0:k.call(E,p,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=p}}}function qg(t,{pages:e,pageParams:n}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,n[i],n):void 0}function GE(t,{pages:e,pageParams:n}){var i;return e.length>0?(i=t.getPreviousPageParam)==null?void 0:i.call(t,e[0],e,n[0],n):void 0}var zo,Pn,Et,ms,Rn,Sr,p0,XE=(p0=class extends tw{constructor(e){super();pe(this,Rn);pe(this,zo);pe(this,Pn);pe(this,Et);pe(this,ms);ee(this,zo,e.client),this.mutationId=e.mutationId,ee(this,Et,e.mutationCache),ee(this,Pn,[]),this.state=e.state||YE(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){R(this,Pn).includes(e)||(R(this,Pn).push(e),this.clearGcTimeout(),R(this,Et).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){ee(this,Pn,R(this,Pn).filter(n=>n!==e)),this.scheduleGc(),R(this,Et).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){R(this,Pn).length||(this.state.status==="pending"?this.scheduleGc():R(this,Et).remove(this))}continue(){var e;return((e=R(this,ms))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var u,d,f,p,g,y,w,x,T,E,k,S,A,P,L,I,z,X;const n=()=>{Ce(this,Rn,Sr).call(this,{type:"continue"})},i={client:R(this,zo),meta:this.options.meta,mutationKey:this.options.mutationKey};ee(this,ms,ew({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(new Error("No mutationFn found")),onFail:(B,Z)=>{Ce(this,Rn,Sr).call(this,{type:"failed",failureCount:B,error:Z})},onPause:()=>{Ce(this,Rn,Sr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,Et).canRun(this)}));const a=this.state.status==="pending",l=!R(this,ms).canStart();try{if(a)n();else{Ce(this,Rn,Sr).call(this,{type:"pending",variables:e,isPaused:l}),R(this,Et).config.onMutate&&await R(this,Et).config.onMutate(e,this,i);const Z=await((d=(u=this.options).onMutate)==null?void 0:d.call(u,e,i));Z!==this.state.context&&Ce(this,Rn,Sr).call(this,{type:"pending",context:Z,variables:e,isPaused:l})}const B=await R(this,ms).start();return await((p=(f=R(this,Et).config).onSuccess)==null?void 0:p.call(f,B,e,this.state.context,this,i)),await((y=(g=this.options).onSuccess)==null?void 0:y.call(g,B,e,this.state.context,i)),await((x=(w=R(this,Et).config).onSettled)==null?void 0:x.call(w,B,null,this.state.variables,this.state.context,this,i)),await((E=(T=this.options).onSettled)==null?void 0:E.call(T,B,null,e,this.state.context,i)),Ce(this,Rn,Sr).call(this,{type:"success",data:B}),B}catch(B){try{await((S=(k=R(this,Et).config).onError)==null?void 0:S.call(k,B,e,this.state.context,this,i))}catch(Z){Promise.reject(Z)}try{await((P=(A=this.options).onError)==null?void 0:P.call(A,B,e,this.state.context,i))}catch(Z){Promise.reject(Z)}try{await((I=(L=R(this,Et).config).onSettled)==null?void 0:I.call(L,void 0,B,this.state.variables,this.state.context,this,i))}catch(Z){Promise.reject(Z)}try{await((X=(z=this.options).onSettled)==null?void 0:X.call(z,void 0,B,e,this.state.context,i))}catch(Z){Promise.reject(Z)}throw Ce(this,Rn,Sr).call(this,{type:"error",error:B}),B}finally{R(this,Et).runNext(this)}}},zo=new WeakMap,Pn=new WeakMap,Et=new WeakMap,ms=new WeakMap,Rn=new WeakSet,Sr=function(e){const n=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};
170case"pending":return{...i,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),yt.batch(()=>{R(this,Pn).forEach(i=>{i.onMutationUpdate(e)}),R(this,Et).notify({mutation:this,type:"updated",action:e})})},p0);function YE(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Kn,Sn,$o,m0,JE=(m0=class extends Wo{constructor(e={}){super();pe(this,Kn);pe(this,Sn);pe(this,$o);this.config=e,ee(this,Kn,new Set),ee(this,Sn,new Map),ee(this,$o,0)}build(e,n,i){const a=new XE({client:e,mutationCache:this,mutationId:++al(this,$o)._,options:e.defaultMutationOptions(n),state:i});return this.add(a),a}add(e){R(this,Kn).add(e);const n=dl(e);if(typeof n=="string"){const i=R(this,Sn).get(n);i?i.push(e):R(this,Sn).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(R(this,Kn).delete(e)){const n=dl(e);if(typeof n=="string"){const i=R(this,Sn).get(n);if(i)if(i.length>1){const a=i.indexOf(e);a!==-1&&i.splice(a,1)}else i[0]===e&&R(this,Sn).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=dl(e);if(typeof n=="string"){const i=R(this,Sn).get(n),a=i==null?void 0:i.find(l=>l.state.status==="pending");return!a||a===e}else return!0}runNext(e){var i;const n=dl(e);if(typeof n=="string"){const a=(i=R(this,Sn).get(n))==null?void 0:i.find(l=>
vendor: 5,228 bytes, line 170
170l!==e&&l.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){yt.batch(()=>{R(this,Kn).forEach(e=>{this.notify({type:"removed",mutation:e})}),R(this,Kn).clear(),R(this,Sn).clear()})}getAll(){return Array.from(R(this,Kn))}find(e){const n={exact:!0,...e};return this.getAll().find(i=>Fg(n,i))}findAll(e={}){return this.getAll().filter(n=>Fg(e,n))}notify(e){yt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return yt.batch(()=>Promise.all(e.map(n=>n.continue().catch(Ft))))}},Kn=new WeakMap,Sn=new WeakMap,$o=new WeakMap,m0);function dl(t){var e;return(e=t.options.scope)==null?void 0:e.id}var An,g0,ZE=(g0=class extends Wo{constructor(e={}){super();pe(this,An);this.config=e,ee(this,An,new Map)}build(e,n,i){const a=n.queryKey,l=n.queryHash??Nf(a,n);let u=this.get(l);return u||(u=new HE({client:e,queryKey:a,queryHash:l,options:e.defaultQueryOptions(n),state:i,defaultOptions:e.getQueryDefaults(a)}),this.add(u)),u}add(e){R(this,An).has(e.queryHash)||(R(this,An).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=R(this,An).get(e.queryHash);n&&(e.destroy(),n===e&&R(this,An).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){yt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return R(this,An).get(e)}getAll(){return[...R(this,An).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(i=>Ig(n,i))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(i=>Ig(e,i)):n}notify(e){yt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){yt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){yt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},An=new WeakMap,g0),Qe,Pr,Rr,hi,pi,Ar,mi,gi,y0,e_=(y0=class{constructor(t={}){pe(this,Qe);pe(this,Pr);pe(this,Rr);pe(this,hi);pe(this,pi);pe(this,Ar);pe(this,mi);pe(this,gi);ee(this,Qe,t.queryCache||new ZE),ee(this,Pr,t.mutationCache||new JE),ee(this,Rr,t.defaultOptions||{}),ee(this,hi,new Map),ee(this,pi,new Map),ee(this,Ar,0)}mount(){al(this,Ar)._++,R(this,Ar)===1&&(ee(this,mi,Lf.subscribe(async t=>{t&&(await this.resumePausedMutations(),R(this,Qe).onFocus())})),ee(this,gi,Ll.subscribe(async t=>{t&&(await this.resumePausedMutations(),R(this,Qe).onOnline())})))}unmount(){var t,e;al(this,Ar)._--,R(this,Ar)===0&&((t=R(this,mi))==null||t.call(this),ee(this,mi,void 0),(e=R(this,gi))==null||e.call(this),ee(this,gi,void 0))}isFetching(t){return R(this,Qe).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return R(this,Pr).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=R(this,Qe).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=R(this,Qe).build(this,e),i=n.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Lr(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(t){return R(this,Qe).findAll(t).map(({queryKey:e,state:n})=>{const i=n.data;return[e,i]})}setQueryData(t,e,n){const i=this.defaultQueryOptions({queryKey:t}),a=R(this,Qe).get(i.queryHash),l=a==null?void 0:a.state.data,u=DE(e,l);if(u!==void 0)return R(this,Qe).build(this,i).setData(u,{...n,manual:!0})}setQueriesData(t,e,n){return yt.batch(()=>R(this,Qe).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=R(this,Qe).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=R(this,Qe);yt.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=R(this,Qe);return yt.batch(()=>(n.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},i=yt.batch(()=>R(this,Qe).findAll(t).map(a=>a.cancel(n)));return Promise.all(i).then(Ft).catch(Ft)}invalidateQueries(t,e={}){return yt.batch(()=>(R(this,Qe).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},i=yt.batch(()=>R(this,Qe).findAll(t).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,n);return n.throwOnError||(l=l.catch(Ft)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(Ft)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=R(this,Qe).build(this,e);return n.isStaleByTime(Lr(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ft).catch(Ft)}fetchInfiniteQuery(t){return t.behavior=Hg(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ft).catch(Ft)}ensureInfiniteQueryData(t){return t.behavior=Hg(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Ll.isOnline()?R(this,Pr).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,Qe)}getMutationCache(){return R(this,Pr)}getDefaultOptions(){return R(this,Rr)}
170setDefaultOptions(t){ee(this,Rr,t)}setQueryDefaults(t,e){R(this,hi).set(No(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...R(this,hi).values()],n={};return e.forEach(i=>{Oo(t,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(t,e){R(this,pi).set(No(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...R(this,pi).values()],n={};return e.forEach(i=>{Oo(t,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...R(this,Rr).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Nf(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Of&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...R(this,Rr).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){R(this,Qe).clear(),R(this,Pr).clear()}},Qe=new WeakMap,Pr=new WeakMap,Rr=new WeakMap,hi=new WeakMap,pi=new WeakMap,Ar=new WeakMap,mi=new WeakMap,gi=new WeakMap,y0),sw=j.createContext(void 0),t_=t=>{const e=j.useContext(sw);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},n_=({client:t,children:e})=>(j.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),b.jsx(sw.Provider,{value:t,children:e})),iw=j.createContext(!1),r_=()=>j.useContext(iw);iw.Provider;function s_(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var i_=j.createContext(s_()),o_=()=>j.useContext(i_),a_=(t,e,n)=>{const i=n!=null&&n.state.error&&typeof t.throwOnError=="function"?J0(t.throwOnError,[n.state.error,n]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||i)&&(e.isReset()||(t.retryOnMount=!1))},l_=t=>{j.useEffect(()=>{t.clearReset()},[t])},u_=({result:t,errorResetBoundary:e,throwOnError:n,query:i,suspense:a})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&(a&&t.data===void 0||J0(n,[t.error,i])),c_=t=>{if(t.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),i=t.staleTime;t.staleTime=typeof i=="function"?(...a)=>n(i(...a)):n(i),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},d_=(t,e)=>t.isLoading&&t.isFetching&&!e,f_=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,Kg=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function h_(t,e,n){var w,x,T,E;const i=r_(),a=o_(),l=t_(),u=l.defaultQueryOptions(t);(x=(w=l.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||x.call(w,u);const d=l.getQueryCache().get(u.queryHash);u._optimisticResults=i?"isRestoring":"optimistic",c_(u),a_(u,a,d),l_(a);const f=!l.getQueryCache().get(u.queryHash),[p]=j.useState(()=>new e(l,u)),g=p.getOptimisticResult(u),y=!i&&t.subscribed!==!1;if(j.useSyncExternalStore(j.useCallback(k=>{const S=y?p.subscribe(yt.batchCalls(k)):Ft;return p.updateResult(),S},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),j.useEffect(()=>{p.setOptions(u)},[u,p]),f_(u,g))throw Kg(u,p,a);if(u_({result:g,errorResetBoundary:a,throwOnError:u.throwOnError,query:d,suspense:u.suspense}))throw g.error;if((E=(T=l.getDefaultOptions().queries)==null?void 0:T._experimental_afterQuery)==null||E.call(T,u,g),u.experimental_prefetchInRender&&!ws&&d_(g,i)){const k=f?Kg(u,p,a):d==null?void 0:d.promise;k==null||k.catch(Ft).finally(()=>{p.updateResult()})}return u.notifyOnChangeProps?g:p.trackResult(g)}function p_(t,e){return h_(t,qE)}const m_=new e_({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});S0();/** 171 * @remix-run/router v1.23.2 172 * 173 * Copyright (c) Remix Software Inc. 174 * 175 * This source code is licensed under the MIT license found in the 176 * LICENSE.md file in the root directory of this source tree. 177 * 178 * @license MIT 179 */function Dl(){return Dl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Dl.apply(this,arguments)}var Nr;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Nr||(Nr={}));const Qg="popstate";function g_(t){t===void 0&&(t={});function e(i,a){let{pathname:l,search:u,hash:d}=i.location;return Qd("",{pathname:l,search:u,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}
vendor: 4,515 bytes, line 179
179function n(i,a){return typeof a=="string"?a:aw(a)}return v_(e,n,null,t)}function Ut(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function ow(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function y_(){return Math.random().toString(36).substr(2,8)}function Gg(t,e){return{usr:t.state,key:t.key,idx:e}}function Qd(t,e,n,i){return n===void 0&&(n=null),Dl({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Gl(e):e,{state:n,key:e&&e.key||i||y_()})}function aw(t){let{pathname:e="/",search:n="",hash:i=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function Gl(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}function v_(t,e,n,i){i===void 0&&(i={});let{window:a=document.defaultView,v5Compat:l=!1}=i,u=a.history,d=Nr.Pop,f=null,p=g();p==null&&(p=0,u.replaceState(Dl({},u.state,{idx:p}),""));function g(){return(u.state||{idx:null}).idx}function y(){d=Nr.Pop;let k=g(),S=k==null?null:k-p;p=k,f&&f({action:d,location:E.location,delta:S})}function w(k,S){d=Nr.Push;let A=Qd(E.location,k,S);p=g()+1;let P=Gg(A,p),L=E.createHref(A);try{u.pushState(P,"",L)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;a.location.assign(L)}l&&f&&f({action:d,location:E.location,delta:1})}function x(k,S){d=Nr.Replace;let A=Qd(E.location,k,S);p=g();let P=Gg(A,p),L=E.createHref(A);u.replaceState(P,"",L),l&&f&&f({action:d,location:E.location,delta:0})}function T(k){let S=a.location.origin!=="null"?a.location.origin:a.location.href,A=typeof k=="string"?k:aw(k);return A=A.replace(/ $/,"%20"),Ut(S,"No window.location.(origin|href) available to create URL for href: "+A),new URL(A,S)}let E={get action(){return d},get location(){return t(a,u)},listen(k){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(Qg,y),f=k,()=>{a.removeEventListener(Qg,y),f=null}},createHref(k){return e(a,k)},createURL:T,encodeLocation(k){let S=T(k);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:w,replace:x,go(k){return u.go(k)}};return E}var Xg;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Xg||(Xg={}));function w_(t,e,n){return n===void 0&&(n="/"),x_(t,e,n)}function x_(t,e,n,i){let a=typeof e=="string"?Gl(e):e,l=cw(a.pathname||"/",n);if(l==null)return null;let u=lw(t);S_(u);let d=null;for(let f=0;d==null&&f<u.length;++f){let p=L_(l);d=A_(u[f],p)}return d}function lw(t,e,n,i){e===void 0&&(e=[]),n===void 0&&(n=[]),i===void 0&&(i="");let a=(l,u,d)=>{let f={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};f.relativePath.startsWith("/")&&(Ut(f.relativePath.startsWith(i),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(i.length));let p=si([i,f.relativePath]),g=n.concat(f);l.children&&l.children.length>0&&(Ut(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),lw(l.children,e,g,p)),!(l.path==null&&!l.index)&&e.push({path:p,score:P_(p,l.index),routesMeta:g})};return t.forEach((l,u)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))a(l,u);else for(let f of uw(l.path))a(l,u,f)}),e}function uw(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(i.length===0)return a?[l,""]:[l];let u=uw(i.join("/")),d=[];return d.push(...u.map(f=>f===""?l:[l,f].join("/"))),a&&d.push(...u),d.map(f=>t.startsWith("/")&&f===""?"/":f)}function S_(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:R_(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const b_=/^:[\w-]+$/,k_=3,E_=2,__=1,T_=10,C_=-2,Yg=t=>t==="*";function P_(t,e){let n=t.split("/"),i=n.length;return n.some(Yg)&&(i+=C_),e&&(i+=E_),n.filter(a=>!Yg(a)).reduce((a,l)=>a+(b_.test(l)?k_:l===""?__:T_),i)}function R_(t,e){return t.length===e.length&&t.slice(0,-1).every((i,a)=>i===e[a])?t[t.length-1]-e[e.length-1]:0}function A_(t,e,n){let{routesMeta:i}=t,a={},l="/",u=[];for(let d=0;d<i.length;++d){let f=i[d],p=d===i.length-1,g=l==="/"?e:e.slice(l.length)||"/",y=N_({path:f.relativePath,caseSensitive:f.caseSensitive,end:p},g),w=f.route;if(!y)return null;
vendor: 4,131 bytes, lines 179-188
179Object.assign(a,y.params),u.push({params:a,pathname:si([l,y.pathname]),pathnameBase:D_(si([l,y.pathnameBase])),route:w}),y.pathnameBase!=="/"&&(l=si([l,y.pathnameBase]))}return u}function N_(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,i]=O_(t.path,t.caseSensitive,t.end),a=e.match(n);if(!a)return null;let l=a[0],u=l.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:i.reduce((p,g,y)=>{let{paramName:w,isOptional:x}=g;if(w==="*"){let E=d[y]||"";u=l.slice(0,l.length-E.length).replace(/(.)\/+$/,"$1")}const T=d[y];return x&&!T?p[w]=void 0:p[w]=(T||"").replace(/%2F/g,"/"),p},{}),pathname:l,pathnameBase:u,pattern:t}}function O_(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),ow(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let i=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,f)=>(i.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),i]}function L_(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return ow(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function cw(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}const si=t=>t.join("/").replace(/\/\/+/g,"/"),D_=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/");function j_(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const dw=["post","put","patch","delete"];new Set(dw);const M_=["get",...dw];new Set(M_);/** 180 * React Router v6.30.3 181 * 182 * Copyright (c) Remix Software Inc. 183 * 184 * This source code is licensed under the MIT license found in the 185 * LICENSE.md file in the root directory of this source tree. 186 * 187 * @license MIT 188 */function jl(){return jl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},jl.apply(this,arguments)}const I_=j.createContext(null),F_=j.createContext(null),fw=j.createContext(null),Xl=j.createContext(null),Yl=j.createContext({outlet:null,matches:[],isDataRoute:!1}),hw=j.createContext(null);function jf(){return j.useContext(Xl)!=null}function pw(){return jf()||Ut(!1),j.useContext(Xl).location}function B_(t,e){return U_(t,e)}function U_(t,e,n,i){jf()||Ut(!1);let{navigator:a}=j.useContext(fw),{matches:l}=j.useContext(Yl),u=l[l.length-1],d=u?u.params:{};u&&u.pathname;let f=u?u.pathnameBase:"/";u&&u.route;let p=pw(),g;if(e){var y;let k=typeof e=="string"?Gl(e):e;f==="/"||(y=k.pathname)!=null&&y.startsWith(f)||Ut(!1),g=k}else g=p;let w=g.pathname||"/",x=w;if(f!=="/"){let k=f.replace(/^\//,"").split("/");x="/"+w.replace(/^\//,"").split("/").slice(k.length).join("/")}let T=w_(t,{pathname:x}),E=H_(T&&T.map(k=>Object.assign({},k,{params:Object.assign({},d,k.params),pathname:si([f,a.encodeLocation?a.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?f:si([f,a.encodeLocation?a.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),l,n,i);return e&&E?j.createElement(Xl.Provider,{value:{location:jl({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:Nr.Pop}},E):E}function V_(){let t=G_(),e=j_(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application
188Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},e),n?j.createElement("pre",{style:a},n):null,null)}const z_=j.createElement(V_,null);class $_ extends j.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,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?j.createElement(Yl.Provider,{value:this.props.routeContext},j.createElement(hw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function W_(t){let{routeContext:e,match:n,children:i}=t,a=j.useContext(I_);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),j.createElement(Yl.Provider,{value:e},i)}function H_(t,e,n,i){var a;if(e===void 0&&(e=[]),n===void 0&&(n=null),i===void 0&&(i=null),t==null){var l;if(!n)return null;if(n.errors)t=n.matches;else if((l=i)!=null&&l.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let u=t,d=(a=n)==null?void 0:a.errors;if(d!=null){let g=u.findIndex(y=>y.route.id&&(d==null?void 0:d[y.route.id])!==void 0);g>=0||Ut(!1),u=u.slice(0,Math.min(u.length,g+1))}let f=!1,p=-1;if(n&&i&&i.v7_partialHydration)for(let g=0;g<u.length;g++){let y=u[g];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(p=g),y.route.id){let{loaderData:w,errors:x}=n,T=y.route.loader&&w[y.route.id]===void 0&&(!x||x[y.route.id]===void 0);if(y.route.lazy||T){f=!0,p>=0?u=u.slice(0,p+1):u=[u[0]];break}}}return u.reduceRight((g,y,w)=>{let x,T=!1,E=null,k=null;n&&(x=d&&y.route.id?d[y.route.id]:void 0,E=y.route.errorElement||z_,f&&(p<0&&w===0?(X_("route-fallback"),T=!0,k=null):p===w&&(T=!0,k=y.route.hydrateFallbackElement||null)));let S=e.concat(u.slice(0,w+1)),A=()=>{let P;return x?P=E:T?P=k:y.route.Component?P=j.createElement(y.route.Component,null):y.route.element?P=y.route.element:P=g,j.createElement(W_,{match:y,routeContext:{outlet:g,matches:S,isDataRoute:n!=null},children:P})};return n&&(y.route.ErrorBoundary||y.route.errorElement||w===0)?j.createElement($_,{location:n.location,revalidation:n.revalidation,component:E,error:x,children:A(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):A()},null)}var mw=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(mw||{});function q_(t){let e=j.useContext(F_);return e||Ut(!1),e}function K_(t){let e=j.useContext(Yl);return e||Ut(!1),e}function Q_(t){let e=K_(),n=e.matches[e.matches.length-1];return n.route.id||Ut(!1),n.route.id}function G_(){var t;let e=j.useContext(hw),n=q_(mw.UseRouteError),i=Q_();return e!==void 0?e:(t=n.errors)==null?void 0:t[i]}const Jg={};function X_(t,e,n){Jg[t]||(Jg[t]=!0)}function Y_(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function Gd(t){Ut(!1)}function J_(t){let{basename:e="/",children:n=null,location:i,navigationType:a=Nr.Pop,navigator:l,static:u=!1,future:d}=t;jf()&&Ut(!1);let f=e.replace(/^\/*/,"/"),p=j.useMemo(()=>({basename:f,navigator:l,static:u,future:jl({v7_relativeSplatPath:!1},d)}),[f,d,l,u]);typeof i=="string"&&(i=Gl(i));let{pathname:g="/",search:y="",hash:w="",state:x=null,key:T="default"}=i,E=j.useMemo(()=>{let k=cw(g,f);return k==null?null:{location:{pathname:k,search:y,hash:w,state:x,key:T},navigationType:a}},[f,g,y,w,x,T,a]);return E==null?null:j.createElement(fw.Provider,{value:p},j.createElement(Xl.Provider,{children:n,value:E}))}function Z_(t){let{children:e,location:n}=t;return B_(Xd(e),n)}new Promise(()=>{});function Xd(t,e){e===void 0&&(e=[]);let n=[];
vendor: 7,170 bytes, lines 188-197
188return j.Children.forEach(t,(i,a)=>{if(!j.isValidElement(i))return;let l=[...e,a];if(i.type===j.Fragment){n.push.apply(n,Xd(i.props.children,l));return}i.type!==Gd&&Ut(!1),!i.props.index||!i.props.children||Ut(!1);let u={id:i.props.id||l.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(u.children=Xd(i.props.children,l)),n.push(u)}),n}/** 189 * React Router DOM v6.30.3 190 * 191 * Copyright (c) Remix Software Inc. 192 * 193 * This source code is licensed under the MIT license found in the 194 * LICENSE.md file in the root directory of this source tree. 195 * 196 * @license MIT 197 */const eT="6";try{window.__reactRouterVersion=eT}catch{}const tT="startTransition",Zg=x0[tT];function nT(t){let{basename:e,children:n,future:i,window:a}=t,l=j.useRef();l.current==null&&(l.current=g_({window:a,v5Compat:!0}));let u=l.current,[d,f]=j.useState({action:u.action,location:u.location}),{v7_startTransition:p}=i||{},g=j.useCallback(y=>{p&&Zg?Zg(()=>f(y)):f(y)},[f,p]);return j.useLayoutEffect(()=>u.listen(g),[u,g]),j.useEffect(()=>Y_(i),[i]),j.createElement(J_,{basename:e,children:n,location:d.location,navigationType:d.action,navigator:u,future:i})}var ey;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(ey||(ey={}));var ty;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(ty||(ty={}));function gw(t,e){return function(){return t.apply(e,arguments)}}const{toString:rT}=Object.prototype,{getPrototypeOf:yi}=Object,{iterator:Ho,toStringTag:yw}=Symbol,Ml=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Lo=(t,e)=>{let n=t;const i=[];for(;n!=null&&n!==Object.prototype;){if(i.indexOf(n)!==-1)return!1;if(i.push(n),Ml(n,e))return!0;n=yi(n)}return!1},sT=(t,e)=>t!=null&&Lo(t,e)?t[e]:void 0,Mf=(t=>e=>{const n=rT.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ln=t=>(t=t.toLowerCase(),e=>Mf(e)===t),Jl=t=>e=>typeof e===t,{isArray:xs}=Array,Ss=Jl("undefined");function bi(t){return t!==null&&!Ss(t)&&t.constructor!==null&&!Ss(t.constructor)&&Bt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const vw=ln("ArrayBuffer");function iT(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&vw(t.buffer),e}const oT=Jl("string"),Bt=Jl("function"),ww=Jl("number"),ki=t=>t!==null&&typeof t=="object",aT=t=>t===!0||t===!1,bl=t=>{if(!ki(t))return!1;const e=yi(t);return(e===null||e===Object.prototype||yi(e)===null)&&!Lo(t,yw)&&!Lo(t,Ho)},lT=t=>{if(!ki(t)||bi(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},uT=ln("Date"),cT=ln("File"),dT=t=>!!(t&&typeof t.uri<"u"),fT=t=>t&&typeof t.getParts<"u",hT=ln("Blob"),pT=ln("FileList"),mT=ln("Set"),gT=t=>ki(t)&&Bt(t.pipe);function yT(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const ny=yT(),ry=typeof ny.FormData<"u"?ny.FormData:void 0,vT=t=>{if(!t)return!1;if(ry&&t instanceof ry)return!0;const e=yi(t);if(!e||e===Object.prototype||!Bt(t.append))return!1;const n=Mf(t);return n==="formdata"||n==="object"&&Bt(t.toString)&&t.toString()==="[object FormData]"},wT=ln("URLSearchParams"),[xT,ST,bT,kT]=["ReadableStream","Request","Response","Headers"].map(ln),ET=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function qo(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,a;if(typeof t!="object"&&(t=[t]),xs(t))for(i=0,a=t.length;i<a;i++)e.call(null,t[i],i,t);else{if(bi(t))return;const l=n?Object.getOwnPropertyNames(t):Object.keys(t),u=l.length;let d;for(i=0;i<u;i++)d=l[i],e.call(null,t[d],d,t)}}function xw(t,e){if(bi(t))return null;e=e.toLowerCase();const n=Object.keys(t);let i=n.length,a;for(;i-- >0;)if(a=n[i],e===a.toLowerCase())return a;return null}const is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Sw=t=>!Ss(t)&&t!==is;function Yd(...t){const{caseless:e,skipUndefined:n}=Sw(this)&&this||{},i={},a=(l,u)=>{if(u==="__proto__"||u==="constructor"||u==="prototype")return;const d=e&&typeof u=="string"&&xw(i,u)||u,f=Ml(i,d)?i[d]:void 0;bl(f)&&bl(l)?i[d]=Yd(f,l):bl(l)?i[d]=Yd({},l):xs(l)?i[d]=l.slice():(!n||!Ss(l))&&(i[d]=l)};for(let l=0,u=t.length;l<u;l++){const d=t[l];if(!d||bi(d)||(qo(d,a),typeof d!="object"||xs(d)))continue;const f=Object.getOwnPropertySymbols(d);for(let p=0;p<f.length;p++){const g=f[p];MT.call(d,g)&&a(d[g],g)}}return i}const _T=(t,e,n,{allOwnKeys:i}={})=>(qo(e,(a,l)=>{n&&Bt(a)?Object.defineProperty(t,l,{__proto__:null,value:gw(a,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,l,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),t),TT=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),CT=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),n&&Object.assign(t.prototype,n)},PT=(t,e,n,i)=>{let a,l,u;const d={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),l=a.length;l-- >0;)u=a[l],(!i||i(u,t,e))&&!d[u]&&(e[u]=t[u],d[u]=!0);t=n!==!1&&yi(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},RT=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},AT=t=>{if(!t)return null;if(xs(t))return t;let e=t.length;if(!ww(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},NT=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&yi(Uint8Array)),OT=(t,e)=>{const i=(t&&t[Ho]).call(t);let a;for(;(a=i.next())&&!a.done;){const l=a.value;e.call(t,l[0],l[1])}},LT=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},DT=ln("HTMLFormElement"),jT=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,a){return i.toUpperCase()+a}),{propertyIsEnumerable:MT}=Object.prototype,IT=ln("RegExp"),bw=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};qo(n,(a,l)=>{let u;(u=e(a,l,t))!==!1&&(i[l]=u||a)}),Object.defineProperties(t,i)},FT=t=>{bw(t,(e,n)=>{if(Bt(t)&&["arguments","caller","callee"].includes(n))return!1;const i=t[n];if(Bt(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},BT=(t,e)=>{const n={},i=a=>{a.forEach(l=>{n[l]=!0})};return xs(t)?i(t):i(String(t).split(e)),n},UT=()=>{},VT=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function zT(t){return!!(t&&Bt(t.append)&&t[yw]==="FormData"&&t[Ho])}const $T=t=>{const e=new WeakSet,n=i=>{if(ki(i)){if(e.has(i))return;if(bi(i))return i;
197if(!("toJSON"in i)){e.add(i);let a;if(mT(i)){a=[];for(const l of i){const u=n(l);!Ss(u)&&a.push(u)}}else a=xs(i)?[]:{},qo(i,(l,u)=>{const d=n(l);!Ss(d)&&(a[u]=d)});return e.delete(i),a}}return i};return n(t)},WT=ln("AsyncFunction"),HT=t=>t&&(ki(t)||Bt(t))&&Bt(t.then)&&Bt(t.catch),kw=((t,e)=>t?setImmediate:e?((n,i)=>(is.addEventListener("message",({source:a,data:l})=>{a===is&&l===n&&i.length&&i.shift()()},!1),a=>{i.push(a),is.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Bt(is.postMessage)),qT=typeof queueMicrotask<"u"?queueMicrotask.bind(is):typeof process<"u"&&process.nextTick||kw,Ew=t=>t!=null&&Bt(t[Ho]),KT=t=>t!=null&&Lo(t,Ho)&&Ew(t),N={isArray:xs,isArrayBuffer:vw,isBuffer:bi,isFormData:vT,isArrayBufferView:iT,isString:oT,isNumber:ww,isBoolean:aT,isObject:ki,isPlainObject:bl,isEmptyObject:lT,isReadableStream:xT,isRequest:ST,isResponse:bT,isHeaders:kT,isUndefined:Ss,isDate:uT,isFile:cT,isReactNativeBlob:dT,isReactNative:fT,isBlob:hT,isRegExp:IT,isFunction:Bt,isStream:gT,isURLSearchParams:wT,isTypedArray:NT,isFileList:pT,forEach:qo,merge:Yd,extend:_T,trim:ET,stripBOM:TT,inherits:CT,toFlatObject:PT,kindOf:Mf,kindOfTest:ln,endsWith:RT,toArray:AT,forEachEntry:OT,matchAll:LT,isHTMLForm:DT,hasOwnProperty:Ml,hasOwnProp:Ml,hasOwnInPrototypeChain:Lo,getSafeProp:sT,reduceDescriptors:bw,freezeMethods:FT,toObjectSet:BT,toCamelCase:jT,noop:UT,toFiniteNumber:VT,findKey:xw,global:is,isContextDefined:Sw,isSpecCompliantForm:zT,toJSONObject:$T,isAsyncFn:WT,isThenable:HT,setImmediate:kw,asap:qT,isIterable:Ew,isSafeIterable:KT},QT=N.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),GT=t=>{const e={};let n,i,a;return t&&t.split(` 198`).forEach(function(u){a=u.indexOf(":"),n=u.substring(0,a).trim().toLowerCase(),i=u.substring(a+1).trim();const d=N.hasOwnProp(e,n);!n||d&&N.hasOwnProp(QT,n)||(n==="set-cookie"?d?e[n].push(i):e[n]=[i]:e[n]=d?e[n]+", "+i:i)}),e};function XT(t){let e=0,n=t.length;for(;e<n;){const i=t.charCodeAt(e);if(i!==9&&i!==32)break;e+=1}for(;n>e;){const i=t.charCodeAt(n-1);if(i!==9&&i!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}const YT=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),JT=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function If(t,e){return N.isArray(t)?t.map(n=>If(n,e)):XT(String(t).replace(e,""))}const ZT=t=>If(t,YT),eC=t=>If(t,JT);function _w(t){const e=Object.create(null);return N.forEach(t.toJSON(),(n,i)=>{e[i]=eC(n)}),e}const sy=Symbol("internals");function po(t){return t&&String(t).trim().toLowerCase()}function kl(t){return t===!1||t==null?t:N.isArray(t)?t.map(kl):ZT(String(t))}function tC(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const nC=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function ud(t){let e=0,n=t.length;for(;e<n;){const i=t.charCodeAt(e);if(i!==9&&i!==32)break;e+=1}for(;n>e;){const i=t.charCodeAt(n-1);if(i!==9&&i!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}function rC(t){const e=t.length-1;if(e<1||t.charCodeAt(0)!==34||t.charCodeAt(e)!==34)return t;let n="";for(let i=1;i<e;i++){const a=t.charCodeAt(i);if(a===34||a===92&&(i+=1,i>=e))return t;n+=t[i]}return n}function sC(t){const e=Object.create(null),n=String(t);let i=0,a=!1,l=!1;function u(d){const f=ud(n.slice(i,d)),p=f.indexOf("=");if(p<1)return;const g=ud(f.slice(0,p));if(!nC.test(g))return;const y=g.toLowerCase();if(y==="__proto__"||y==="constructor"||y==="prototype")return;const w=ud(f.slice(p+1));e[y]=rC(w)}for(let d=0;d<n.length;d++){const f=n.charCodeAt(d);a?l?l=!1:f===92?l=!0:f===34&&(a=!1):f===34?a=!0:(f===44||f===59)&&(u(d),i=d+1)}return u(n.length),e}const iC=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function cd(t,e,n,i,a){if(N.isFunction(i))return i.call(this,e,n);if(a&&(e=n),!!N.isString(e)){if(N.isString(i))return e.indexOf(i)!==-1;if(N.isRegExp(i))return i.test(e)}}function oC(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function aC(t,e){const n=N.toCamelCase(" "+e);["get","set","has"].forEach(i=>
vendor: 11,143 bytes, lines 198-199
198{Object.defineProperty(t,i+n,{__proto__:null,value:function(a,l,u){return this[i].call(this,e,a,l,u)},configurable:!0})})}let Ct=class{constructor(e){e&&this.set(e)}set(e,n,i){const a=this;function l(d,f,p){const g=po(f);if(!g)return;const y=N.findKey(a,g);(!y||a[y]===void 0||p===!0||p===void 0&&a[y]!==!1)&&(a[y||f]=kl(d))}const u=(d,f)=>N.forEach(d,(p,g)=>l(p,g,f));if(N.isPlainObject(e)||e instanceof this.constructor)u(e,n);else if(N.isString(e)&&(e=e.trim())&&!iC(e))u(GT(e),n);else if(N.isObject(e)&&N.isSafeIterable(e)){let d=Object.create(null),f,p;for(const g of e){if(!N.isArray(g))throw new TypeError("Object iterator must return a key-value pair");p=g[0],N.hasOwnProp(d,p)?(f=d[p],d[p]=N.isArray(f)?[...f,g[1]]:[f,g[1]]):d[p]=g[1]}u(d,n)}else e!=null&&l(n,e,i);return this}get(e,n){if(e=po(e),e){const i=N.findKey(this,e);if(i){const a=this[i];if(!n)return a;if(n===!0)return tC(a);if(N.isFunction(n))return n.call(this,a,i);if(N.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=po(e),e){const i=N.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||cd(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let a=!1;function l(u){if(u=po(u),u){const d=N.findKey(i,u);d&&(!n||cd(i,i[d],d,n))&&(delete i[d],a=!0)}}return N.isArray(e)?e.forEach(l):l(e),a}clear(e){const n=Object.keys(this);let i=n.length,a=!1;for(;i--;){const l=n[i];(!e||cd(this,this[l],l,e,!0))&&(delete this[l],a=!0)}return a}normalize(e){const n=this,i={};return N.forEach(this,(a,l)=>{const u=N.findKey(i,l);if(u){n[u]=kl(a),delete n[l];return}const d=e?oC(l):String(l).trim();d!==l&&delete n[l],n[d]=kl(a),i[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return N.forEach(this,(i,a)=>{i!=null&&i!==!1&&(n[a]=e&&N.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` 199`)}getSetCookie(){const e=this.get("set-cookie");return N.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return sC(e)}static concat(e,...n){const i=new this(e);return n.forEach(a=>i.set(a)),i}static accessor(e){const i=(this[sy]=this[sy]={accessors:{}}).accessors,a=this.prototype;function l(u){const d=po(u);i[d]||(aC(a,u),i[d]=!0)}return N.isArray(e)?e.forEach(l):l(e),this}};Ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.reduceDescriptors(Ct.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}});N.freezeMethods(Ct);const Il="[REDACTED ****]";function lC(t){if(N.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(N.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function uC(t,e){const n=new Set(e.map(l=>String(l).toLowerCase())),i=[],a=l=>{if(l===null||typeof l!="object"||N.isBuffer(l))return l;if(i.indexOf(l)!==-1)return;l instanceof Ct&&(l=l.toJSON()),i.push(l);let u;if(N.isArray(l))u=[],l.forEach((d,f)=>{const p=a(d);N.isUndefined(p)||(u[f]=p)});else{if(!N.isPlainObject(l)&&lC(l))return i.pop(),l;u=Object.create(null);for(const[d,f]of Object.entries(l)){const p=n.has(d.toLowerCase())?Il:a(f);N.isUndefined(p)||(u[d]=p)}}return i.pop(),u};return a(t)}function iy(t){try{return String(t)}catch{return""}}function cC(t){return t.errors.map(n=>{try{return n&&n.message?iy(n.message):iy(n)}catch{return""}}).filter(Boolean).join("; ")||t.name||"AggregateError"}let Y=class Tw extends Error{static from(e,n,i,a,l,u){let d=e.message;!d&&N.isArray(e.errors)&&e.errors.length&&(d=cC(e));const f=new Tw(d,n||e.code,i,a,l);return Object.defineProperty(f,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),f.name=e.name,e.status!=null&&f.status==null&&(f.status=e.status),u&&Object.assign(f,u),f}constructor(e,n,i,a,l){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),i&&(this.config=i),a&&(this.request=a),l&&(this.response=l,this.status=l.status)}toJSON(){const e=this.config,n=e&&N.hasOwnProp(e,"redact")?e.redact:void 0,i=N.isArray(n)&&n.length>0?uC(e,n):N.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}};Y.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Y.ERR_BAD_OPTION="ERR_BAD_OPTION";Y.ECONNABORTED="ECONNABORTED";Y.ETIMEDOUT="ETIMEDOUT";Y.ECONNREFUSED="ECONNREFUSED";Y.ERR_NETWORK="ERR_NETWORK";Y.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Y.ERR_DEPRECATED="ERR_DEPRECATED";Y.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Y.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Y.ERR_CANCELED="ERR_CANCELED";Y.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Y.ERR_INVALID_URL="ERR_INVALID_URL";Y.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const dC=null,Cw=100;function Jd(t){return N.isPlainObject(t)||N.isArray(t)}function Pw(t){return N.endsWith(t,"[]")?t.slice(0,-2):t}function dd(t,e,n){return t?t.concat(e).map(function(a,l){return a=Pw(a),!n&&l?"["+a+"]":a}).join(n?".":""):e}function fC(t){return N.isArray(t)&&!t.some(Jd)}const hC=N.toFlatObject(N,{},null,function(e){return/^is[A-Z]/.test(e)});function Zl(t,e,n){if(!N.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=N.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,P){return!N.isUndefined(P[A])});const i=n.metaTokens,a=n.visitor||T,l=n.dots,u=n.indexes,d=n.Blob||typeof Blob<"u"&&Blob,f=n.maxDepth===void 0?Cw:n.maxDepth,p=d&&N.isSpecCompliantForm(e),g=[];if(!N.isFunction(a))throw new TypeError("visitor must be a function");function y(S){if(S===null)return"";if(N.isDate(S))return S.toISOString();if(N.isBoolean(S))return S.toString();if(!p&&N.isBlob(S))throw new Y("Blob is not supported. Use a Buffer instead.");if(N.isArrayBuffer(S)||N.isTypedArray(S)){if(p&&typeof d=="function")return new d([S]);throw new Y("Blob is not supported. Use a Buffer instead.",Y.ERR_NOT_SUPPORT)}return S}function w(S){if(S>f)throw new Y("Object is too deeply nested ("+S+" levels). Max depth: "+f,Y.ERR_FORM_DATA_DEPTH_EXCEEDED)}function x(S,A){if(f===1/0)return JSON.stringify(S);const P=[];return JSON.stringify(S,function(I,z){if(!N.isObject(z))return z;for(;P.length&&P[P.length-1]!==this;)P.pop();return P.push(z),w(A+P.length-1),z})}function T(S,A,P){let L=S;if(N.isReactNative(e)&&N.isReactNativeBlob(S))return e.append(dd(P,A,l),y(S)),!1;if(S&&!P&&typeof S=="object"){if(N.endsWith(A,"{}"))A=i?A:A.slice(0,-2),S=x(S,1);else if(N.isArray(S)&&fC(S)||(N.isFileList(S)||N.endsWith(A,"[]"))&&(L=N.toArray(S)))return A=Pw(A),L.forEach(function(z,X){!(N.isUndefined(z)||z===null)&&e.append(u===!0?dd([A],X,l):u===null?A:A+"[]",y(z))}),!1}return Jd(S)?!0:(e.append(dd(P,A,l),y(S)),!1)}const E=Object.assign(hC,{defaultVisitor:T,convertValue:y,isVisitable:Jd});function k(S,A,P=0){if(!N.isUndefined(S)){if(w(P),g.indexOf(S)!==-1)throw new Error("Circular reference detected in "+A.join("."));g.push(S),N.forEach(S,function(I,z){(!(N.isUndefined(I)||I===null)&&a.call(e,I,N.isString(z)?z.trim():z,A,E))===!0&&k(I,A?A.concat(z):[z],P+1)}),g.pop()}}if(!N.isObject(t))throw new TypeError("data must be an object");return k(t),e}function oy(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(i){return e[i]})}function Ff(t,e){this._pairs=[],t&&Zl(t,this,e)}const Rw=Ff.prototype;Rw.append=function(e,n){this._pairs.push([e,n])};Rw.toString=function(e){const n=e?i=>e.call(this,i,oy):oy;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function pC(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Aw(t,e,n){if(!e)return t;t=t||"";const i=N.isFunction(n)?{serialize:n}:n,a=N.getSafeProp(i,"encode")||pC,l=N.getSafeProp(i,"serialize");let u;if(l?u=l(e,i):u=N.isURLSearchParams(e)?e.toString():new Ff(e,i).toString(a),u){const d=t.indexOf("#");d!==-1&&(t=t.slice(0,d)),t+=(t.indexOf("?")===-1?"?":"&")+u}return t}class ay{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){N.forEach(this.handlers,function(i){i!==null&&e(i)})}}const Bf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},mC=typeof URLSearchParams<"u"?URLSearchParams:Ff,gC=typeof FormData<"u"?FormData:null,yC=typeof Blob<"u"?Blob:null,vC={isBrowser:!0,classes:{URLSearchParams:mC,FormData:gC,Blob:yC},protocols:["http","https","file","blob","url","data"]},Uf=typeof window<"u"&&typeof document<"u",Zd=typeof navigator=="object"&&navigator||void 0,wC=Uf&&(!Zd||["ReactNative","NativeScript","NS"].indexOf(Zd.product)<0),xC=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",SC=Uf&&window.location.href||"http://localhost",bC=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Uf,hasStandardBrowserEnv:wC,hasStandardBrowserWebWorkerEnv:xC,navigator:Zd,origin:SC},Symbol.toStringTag,{value:"Module"})),vt={...bC,...vC};function kC(t,e){return Zl(t,new vt.classes.URLSearchParams,{visitor:function(n,i,a,l){return vt.isNode&&N.isBuffer(n)?(this.append(i,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...e})}const ly=Cw;function Nw(t){if(t>ly)throw new Y("FormData field is too deeply nested ("+t+" levels). Max depth: "+ly,Y.ERR_FORM_DATA_DEPTH_EXCEEDED)}function EC(t){const e=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let i;for(;(i=n.exec(t))!==null;)Nw(e.length),e.push(i[0]==="[]"?"":i[1]||i[0]);return e}function _C(t){const e={},n=Object.keys(t);let i;const a=n.length;let l;for(i=0;i<a;i++)l=n[i],e[l]=t[l];return e}function Ow(t){function e(n,i,a,l){Nw(l);let u=n[l++];if(u==="__proto__")return!0;const d=Number.isFinite(+u),f=l>=n.length;return u=!u&&N.isArray(a)?a.length:u,f?(N.hasOwnProp(a,u)?a[u]=N.isArray(a[u])?a[u].concat(i):[a[u],i]:a[u]=i,!d):((!N.hasOwnProp(a,u)||!N.isObject(a[u]))&&(a[u]=[]),e(n,i,a[u],l)&&N.isArray(a[u])&&(a[u]=_C(a[u])),!d)}if(N.isFormData(t)&&N.isFunction(t.entries)){const n={};return N.forEachEntry(t,(i,a)=>{e(EC(i),a,n,0)}),n}return null}const Gs=(t,e)=>t!=null&&N.hasOwnProp(t,e)?t[e]:void 0;function TC(t,e,n){if(N.isString(t))try{return(e||JSON.parse)(t),N.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const Ko={transitional:Bf,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const i=n.getContentType()||"",a=i.indexOf("application/json")>-1,l=N.isObject(e);
vendor: 9,966 bytes, line 199
199if(l&&N.isHTMLForm(e)&&(e=new FormData(e)),N.isFormData(e))return a?JSON.stringify(Ow(e)):e;if(N.isArrayBuffer(e)||N.isBuffer(e)||N.isStream(e)||N.isFile(e)||N.isBlob(e)||N.isReadableStream(e))return e;if(N.isArrayBufferView(e))return e.buffer;if(N.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(l){const f=Gs(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return kC(e,f).toString();if((d=N.isFileList(e))||i.indexOf("multipart/form-data")>-1){const p=Gs(this,"env"),g=p&&p.FormData;return Zl(d?{"files[]":e}:e,g&&new g,f)}}return l||a?(n.setContentType("application/json",!1),TC(e)):e}],transformResponse:[function(e){const n=Gs(this,"transitional")||Ko.transitional,i=n&&n.forcedJSONParsing,a=Gs(this,"responseType"),l=a==="json";if(N.isResponse(e)||N.isReadableStream(e))return e;if(e&&N.isString(e)&&(i&&!a||l)){const d=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(e,Gs(this,"parseReviver"))}catch(f){if(d)throw f.name==="SyntaxError"?Y.from(f,Y.ERR_BAD_RESPONSE,this,null,Gs(this,"response")):f}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:vt.classes.FormData,Blob:vt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N.forEach(["delete","get","head","post","put","patch","query"],t=>{Ko.headers[t]={}});function fd(t,e){const n=this||Ko,i=e||n,a=Ct.from(i.headers);let l=i.data;return N.forEach(t,function(d){l=d.call(n,l,a.normalize(),e?e.status:void 0)}),a.normalize(),l}function Lw(t){return!!(t&&t.__CANCEL__)}let Qo=class extends Y{constructor(e,n,i){super(e??"canceled",Y.ERR_CANCELED,n,i),this.name="CanceledError",this.__CANCEL__=!0}};function Dw(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new Y("Request failed with status code "+n.status,n.status>=400&&n.status<500?Y.ERR_BAD_REQUEST:Y.ERR_BAD_RESPONSE,n.config,n.request,n))}function CC(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function PC(t,e){t=t||10;const n=new Array(t),i=new Array(t);let a=0,l=0,u;return e=e!==void 0?e:1e3,function(f){const p=Date.now(),g=i[l];u||(u=p),n[a]=f,i[a]=p;let y=l,w=0;for(;y!==a;)w+=n[y++],y=y%t;if(a=(a+1)%t,a===l&&(l=(l+1)%t),p-u<e)return;const x=g&&p-g;return x?Math.round(w*1e3/x):void 0}}function RC(t,e){let n=0,i=1e3/e,a,l;const u=(p,g=Date.now())=>{n=g,a=null,l&&(clearTimeout(l),l=null),t(...p)};return[(...p)=>{const g=Date.now(),y=g-n;y>=i?u(p,g):(a=p,l||(l=setTimeout(()=>{l=null,u(a)},i-y)))},()=>a&&u(a)]}const Fl=(t,e,n=3)=>{let i=0;const a=PC(50,250);return RC(l=>{if(!l||typeof l.loaded!="number")return;const u=l.loaded,d=l.lengthComputable?l.total:void 0,f=Math.max(0,d!=null?Math.min(u,d):u),p=Math.max(0,f-i),g=a(p);i=Math.max(i,f);const y={loaded:f,total:d,progress:d?f/d:void 0,bytes:p,rate:g||void 0,estimated:g&&d?(d-f)/g:void 0,event:l,lengthComputable:d!=null,[e?"download":"upload"]:!0};t(y)},n)},uy=(t,e)=>{const n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},cy=(t,e=N.asap)=>(...n)=>e(()=>t(...n)),AC=vt.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,vt.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(vt.origin),vt.navigator&&/(msie|trident)/i.test(vt.navigator.userAgent)):()=>!0,NC=vt.hasStandardBrowserEnv?{write(t,e,n,i,a,l,u){if(typeof document>"u")return;const d=[`${t}=${encodeURIComponent(e)}`];N.isNumber(n)&&d.push(`expires=${new Date(n).toUTCString()}`),N.isString(i)&&d.push(`path=${i}`),N.isString(a)&&d.push(`domain=${a}`),l===!0&&d.push("secure"),N.isString(u)&&d.push(`SameSite=${u}`),document.cookie=d.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const i=e[n].replace(/^\s+/,""),a=i.indexOf("=");if(a!==-1&&i.slice(0,a)===t)try{return decodeURIComponent(i.slice(a+1))}catch{return i.slice(a+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function OC(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function LC(t,e){if(!e)return t;let n=t.length;for(;n>0&&t.charCodeAt(n-1)===47;)n--;return t.slice(0,n)+"/"+e.replace(/^\/+/,"")}const DC=/^https?:(?!\/\/)/i,jC=/[\t\n\r]/g;function MC(t){let e=0;for(;e<t.length&&t.charCodeAt(e)<=32;)e++;return t.slice(e)}function IC(t){return MC(t).replace(jC,"")}function FC(t){return t&&t.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,n,i="")=>`${n}${i}${Il}`)}function BC(t){const e=t.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Il}@`),n=e.indexOf("#"),a=(n===-1?e:e.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Il}`);return n===-1?a:`${a}#${FC(e.slice(n+1))}`}function dy(t,e){if(typeof t=="string"){const n=IC(t);if(DC.test(n))throw new Y(`Invalid URL ${JSON.stringify(BC(n))}: missing "//" after protocol`,Y.ERR_INVALID_URL,e)}}function jw(t,e,n,i){dy(e,i);let a=!OC(e);return t&&(a||n===!1)?(dy(t,i),LC(t,e)):e}const fy=t=>t instanceof Ct?{...t}:t,UC=t=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(t).concat(Object.getOwnPropertySymbols(t).filter(e=>Object.getOwnPropertyDescriptor(t,e).enumerable)):Object.keys(t);function bs(t,e){t=t||{},e=e||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function i(g,y,w,x){return N.isPlainObject(g)&&N.isPlainObject(y)?N.merge.call({caseless:x},g,y):N.isPlainObject(y)?N.merge({},y):N.isArray(y)?y.slice():y}function a(g,y,w,x){if(N.isUndefined(y)){if(!N.isUndefined(g))return i(void 0,g,w,x)}else return i(g,y,w,x)}function l(g,y){if(!N.isUndefined(y))return i(void 0,y)}function u(g,y){if(N.isUndefined(y)){if(!N.isUndefined(g))return i(void 0,g)}else return i(void 0,y)}function d(g){const y=N.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!N.isUndefined(y))if(N.isPlainObject(y)){if(N.hasOwnProp(y,g))return y[g]}else return;const w=N.hasOwnProp(t,"transitional")?t.transitional:void 0;if(N.isPlainObject(w)&&N.hasOwnProp(w,g))return w[g]}function f(g,y,w){if(N.hasOwnProp(e,w))return i(g,y);if(N.hasOwnProp(t,w))return i(void 0,g)}const p={url:l,method:l,data:l,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,allowedSocketPaths:u,responseEncoding:u,validateStatus:f,headers:(g,y,w)=>a(fy(g),fy(y),w,!0)};return N.forEach(UC({...t,...e}),function(y){if(y==="__proto__"||y==="constructor"||y==="prototype")return;const w=N.hasOwnProp(p,y)?p[y]:a,x=N.hasOwnProp(t,y)?t[y]:void 0,T=N.hasOwnProp(e,y)?e[y]:void 0,E=w(x,T,y);N.isUndefined(E)&&w!==f||(n[y]=E)}),N.hasOwnProp(e,"validateStatus")&&N.isUndefined(e.validateStatus)&&d("validateStatusUndefinedResolves")===!1&&(N.hasOwnProp(t,"validateStatus")?n.validateStatus=i(void 0,t.validateStatus):delete n.validateStatus),n}const VC=["content-type","content-length"];function zC(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([i,a])=>{VC.includes(i.toLowerCase())&&t.set(i,a)})}const $C=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16)));function Mw(t){const e=bs({},t),n=w=>N.hasOwnProp(e,w)?e[w]:void 0,i=n("data");let a=n("withXSRFToken");const l=n("xsrfHeaderName"),u=n("xsrfCookieName");let d=n("headers");const f=n("auth"),p=n("baseURL"),g=n("allowAbsoluteUrls"),y=n("url");if(e.headers=d=Ct.from(d),e.url=Aw(jw(p,y,g,e),n("params"),n("paramsSerializer")),f){const w=N.getSafeProp(f,"username")||"",x=N.getSafeProp(f,"password")||"";try{d.set("Authorization","Basic "+btoa(w+":"+(x?$C(x):"")))}catch(T){throw Y.from(T,Y.ERR_BAD_OPTION_VALUE,t)}}if(N.isFormData(i)&&(vt.hasStandardBrowserEnv||vt.hasStandardBrowserWebWorkerEnv||N.isReactNative(i)?d.setContentType(void 0):N.isFunction(i.getHeaders)&&zC(d,i.getHeaders(),n("formDataHeaderPolicy"))),vt.hasStandardBrowserEnv&&(N.isFunction(a)&&(a=a(e)),a===!0||a==null&&AC(e.url))){const x=l&&u&&NC.read(u);x&&d.set(l,x)}return e}const WC=typeof XMLHttpRequest<"u",HC=WC&&function(t){return new Promise(function(n,i){const a=Mw(t);let l=a.data;const u=Ct.from(a.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:p}=a,g,y,w,x,T;function E(){x&&x(),T&&T(),a.cancelToken&&a.cancelToken.unsubscribe(g),a.signal&&a.signal.removeEventListener("abort",g)}let k=new XMLHttpRequest;k.open(a.method.toUpperCase(),a.url,!0),k.timeout=a.timeout;function S(){if(!k)return;const P=Ct.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),I={data:!d||d==="text"||d==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:P,config:t,request:k};Dw(function(X){n(X),E()},function(X){i(X),E()},I),k=null}"onloadend"in k?k.onloadend=S:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.startsWith("file:"))||setTimeout(S)},k.onabort=function(){k&&(i(new Y("Request aborted",Y.ECONNABORTED,t,k)),E(),k=null)},k.onerror=function(L){const I=L&&L.message?L.message:"Network Error",z=new Y(I,Y.ERR_NETWORK,t,k);z.event=L||null,i(z),E(),k=null},k.ontimeout=function(){let L=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const I=a.transitional||Bf;a.timeoutErrorMessage&&(L=a.timeoutErrorMessage),i(new Y(L,I.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,t,k)),E(),k=null},l===void 0&&u.setContentType(null),"setRequestHeader"in k&&N.forEach(_w(u),function(L,I){k.setRequestHeader(I,L)}),N.isUndefined(a.withCredentials)||(k.withCredentials=!!a.withCredentials),d&&d!=="json"&&(k.responseType=a.responseType),p&&([w,T]=Fl(p,!0),
199k.addEventListener("progress",w)),f&&k.upload&&([y,x]=Fl(f),k.upload.addEventListener("progress",y),k.upload.addEventListener("loadend",x)),(a.cancelToken||a.signal)&&(g=P=>{k&&(i(!P||P.type?new Qo(null,t,k):P),k.abort(),E(),k=null)},a.cancelToken&&a.cancelToken.subscribe(g),a.signal&&(a.signal.aborted?g():a.signal.addEventListener("abort",g)));const A=CC(a.url);if(A&&!vt.protocols.includes(A)){i(new Y("Unsupported protocol "+A+":",Y.ERR_BAD_REQUEST,t)),E();return}k.send(l||null)})},qC=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const n=new AbortController;let i=!1;const a=function(f){if(!i){i=!0,u();const p=f instanceof Error?f:this.reason;n.abort(p instanceof Y?p:new Qo(p instanceof Error?p.message:p))}};let l=e&&setTimeout(()=>{l=null,a(new Y(`timeout of ${e}ms exceeded`,Y.ETIMEDOUT))},e);const u=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(f=>{f.unsubscribe?f.unsubscribe(a):f.removeEventListener("abort",a)}),t=null)};t.forEach(f=>{if(!i){if(f.aborted){a.call(f);return}f.addEventListener("abort",a,{once:!0})}});const{signal:d}=n;return d.unsubscribe=()=>N.asap(u),d},KC=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let i=0,a;for(;i<n;)a=i+e,yield t.slice(i,a),i=a},QC=async function*(t,e){for await(const n of GC(t))yield*KC(n,e)},GC=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:i}=await e.read();if(n)break;yield i}}finally{await e.cancel()}},hy=(t,e,n,i)=>{const a=QC(t,e);let l=0,u,d=f=>{u||(u=!0,i&&i(f))};return new ReadableStream({async pull(f){try{const{done:p,value:g}=await a.next();if(p){d(),f.close();return}let y=g.byteLength;if(n){let w=l+=y;n(w)}f.enqueue(new Uint8Array(g))}catch(p){throw d(p),p}},cancel(f){return d(f),a.return()}},{highWaterMark:2})},py=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,Iw=(t,e,n)=>e+2<n&&py(t.charCodeAt(e+1))&&py(t.charCodeAt(e+2)),my=t=>t<=57?t-48:(t&223)-55,XC=t=>t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===43||t===47||t===45||t===95,YC=t=>t===9||t===10||t===12||t===13||t===32,JC=t=>{const e=Math.floor(t/4),n=t%4;return e*3+(n===2?1:n===3?2:0)},ZC=t=>{const e=t.length;let n=0;return e>0&&t.charCodeAt(e-1)===61&&(n++,e>1&&t.charCodeAt(e-2)===61&&n++),Math.floor((e-n)*3/4)},eP=t=>{const e=t.length;let n=0,i=0,a=!1;for(let l=0;l<e;l++){let u=t.charCodeAt(l);if(u===37&&Iw(t,l,e)&&(u=my(t.charCodeAt(l+1))*16+my(t.charCodeAt(l+2)),l+=2),!YC(u)){if(u===61){i++;continue}if(!XC(u)||i>0){a=!0;continue}n++}}return a||i>2||i>0&&(n+i)%4!==0||n%4===1?ZC(t):JC(n)},tP=(t,e)=>{if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const n=t.indexOf(",");if(n<0)return 0;const i=t.slice(5,n),a=t.slice(n+1);if(/;base64/i.test(i))return e(a);let u=0;for(let d=0,f=a.length;d<f;d++){const p=a.charCodeAt(d);if(p===37&&Iw(a,d,f))u+=1,d+=2;else if(p<128)u+=1;else if(p<2048)u+=2;else if(p>=55296&&p<=56319&&d+1<f){const g=a.charCodeAt(d+1);g>=56320&&g<=57343?(u+=4,d++):u+=3}else u+=3}return u};function nP(t){const e=typeof t=="string"?t.indexOf("#"):-1;return tP(e===-1?t:t.slice(0,e),eP)}const Vf="1.19.0",gy=64*1024,{isFunction:fl}=N,rP=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),yy=t=>{if(!N.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},vy=(t,...e)=>{try{return!!t(...e)}catch{return!1}},sP=t=>{const e=t.indexOf("://");let n=t;return e!==-1&&(n=n.slice(e+3)),n.includes("@")||n.includes(":")},iP=t=>{const e=N.global!==void 0&&N.global!==null?N.global:globalThis,{ReadableStream:n,TextEncoder:i}=e;t=N.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:a,Request:l,Response:u}=t,d=a?fl(a):typeof fetch=="function",f=fl(l),p=fl(u);if(!d)return!1;const g=d&&fl(n),y=d&&(typeof i=="function"?(S=>A=>S.encode(A))(new i):async S=>new Uint8Array(await new l(S).arrayBuffer())),w=f&&g&&vy(()=>{let S=!1;const A=new l(vt.origin,{body:new n,method:"POST",get duplex(){return S=!0,"half"}}),P=A.headers.has("Content-Type");return A.body!=null&&A.body.cancel(),S&&!P}),x=p&&g&&vy(()=>
vendor: 4,129 bytes, line 199
199N.isReadableStream(new u("").body)),T={stream:x&&(S=>S.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!T[S]&&(T[S]=(A,P)=>{let L=A&&A[S];if(L)return L.call(A);throw new Y(`Response type '${S}' is not supported`,Y.ERR_NOT_SUPPORT,P)})});const E=async S=>{if(S==null)return 0;if(N.isBlob(S))return S.size;if(N.isSpecCompliantForm(S))return(await new l(vt.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(N.isArrayBufferView(S)||N.isArrayBuffer(S))return S.byteLength;if(N.isURLSearchParams(S)&&(S=S+""),N.isString(S))return(await y(S)).byteLength},k=async(S,A)=>{const P=N.toFiniteNumber(S.getContentLength());return P??E(A)};return async S=>{let{url:A,method:P,data:L,signal:I,cancelToken:z,timeout:X,onDownloadProgress:B,onUploadProgress:Z,responseType:ue,headers:be,withCredentials:Ae="same-origin",fetchOptions:Le,maxContentLength:Te,maxBodyLength:Me}=Mw(S);const fe=N.isNumber(Te)&&Te>-1,le=N.isNumber(Me)&&Me>-1,K=G=>N.hasOwnProp(S,G)?S[G]:void 0;let se=a||fetch;ue=ue?(ue+"").toLowerCase():"text";let V=qC([I,z&&z.toAbortSignal()],X),D=null;const $=V&&V.unsubscribe&&(()=>{V.unsubscribe()});let ge,ye=null;const he=()=>new Y("Request body larger than maxBodyLength limit",Y.ERR_BAD_REQUEST,S,D);try{let G;const xe=K("auth");if(xe){const Se=N.getSafeProp(xe,"username")||"",ft=N.getSafeProp(xe,"password")||"";G={username:Se,password:ft}}if(sP(A)){const Se=new URL(A,vt.origin);if(!G&&(Se.username||Se.password)){const ft=yy(Se.username),cn=yy(Se.password);G={username:ft,password:cn}}(Se.username||Se.password)&&(Se.username="",Se.password="",A=Se.href)}if(G&&(be.delete("authorization"),be.set("Authorization","Basic "+btoa(rP((G.username||"")+":"+(G.password||""))))),fe&&typeof A=="string"&&A.startsWith("data:")&&nP(A)>Te)throw new Y("maxContentLength size of "+Te+" exceeded",Y.ERR_BAD_RESPONSE,S,D);if(le&&P!=="get"&&P!=="head"){const Se=await E(L);if(typeof Se=="number"&&isFinite(Se)&&(ge=Se,Se>Me))throw he()}const _e=le&&(N.isReadableStream(L)||N.isStream(L)),we=(Se,ft,cn)=>hy(Se,gy,dn=>{if(le&&dn>Me)throw ye=he();ft&&ft(dn)},cn);if(w&&P!=="get"&&P!=="head"&&(Z||_e)){if(ge=ge??await k(be,L),ge!==0||_e){let Se=new l(A,{method:"POST",body:L,duplex:"half"}),ft;if(N.isFormData(L)&&(ft=Se.headers.get("content-type"))&&be.setContentType(ft),Se.body){const[cn,dn]=Z&&uy(ge,Fl(cy(Z)))||[];L=we(Se.body,cn,dn)}}}else if(_e&&!f&&g&&P!=="get"&&P!=="head")L=we(L);else if(_e&&f&&!w&&P!=="get"&&P!=="head")throw new Y("Stream request bodies are not supported by the current fetch implementation",Y.ERR_NOT_SUPPORT,S,D);N.isString(Ae)||(Ae=Ae?"include":"omit");const ot=f&&"credentials"in l.prototype;if(N.isFormData(L)){const Se=be.getContentType();Se&&/^multipart\/form-data/i.test(Se)&&!/boundary=/i.test(Se)&&be.delete("content-type")}be.set("User-Agent","axios/"+Vf,!1);const Kt={...Le,signal:V,method:P.toUpperCase(),headers:_w(be.normalize()),body:L,duplex:"half",credentials:ot?Ae:void 0};D=f&&new l(A,Kt);let dt=await(f?se(D,Le):se(A,Kt));const un=Ct.from(dt.headers);if(fe){const Se=N.toFiniteNumber(un.getContentLength());if(Se!=null&&Se>Te)throw new Y("maxContentLength size of "+Te+" exceeded",Y.ERR_BAD_RESPONSE,S,D)}const Qt=x&&(ue==="stream"||ue==="response");if(x&&dt.body&&(B||fe||Qt&&$)){const Se={};["status","statusText","headers"].forEach(jn=>{Se[jn]=dt[jn]});const ft=N.toFiniteNumber(un.getContentLength()),[cn,dn]=B&&uy(ft,Fl(cy(B),!0))||[];let Jn=0;const Zn=jn=>{if(fe&&(Jn=jn,Jn>Te))throw new Y("maxContentLength size of "+Te+" exceeded",Y.ERR_BAD_RESPONSE,S,D);cn&&cn(jn)};dt=new u(hy(dt.body,gy,Zn,()=>{dn&&dn(),$&&$()}),Se)}ue=ue||"text";let Gt=await T[N.findKey(T,ue)||"text"](dt,S);if(fe&&!x&&!Qt){let Se;if(Gt!=null&&(typeof Gt.byteLength=="number"?Se=Gt.byteLength:typeof Gt.size=="number"?Se=Gt.size:typeof Gt=="string"&&(Se=typeof i=="function"?new i().encode(Gt).byteLength:Gt.length)),typeof Se=="number"&&Se>Te)throw new Y("maxContentLength size of "+Te+" exceeded",Y.ERR_BAD_RESPONSE,S,D)}return!Qt&&$&&$(),await new Promise((Se,ft)=>{Dw(Se,ft,{data:Gt,headers:Ct.from(dt.headers),status:dt.status,statusText:dt.statusText,config:S,request:D})})}
vendor: 6,160 bytes, lines 199-205
199catch(G){if($&&$(),V&&V.aborted&&V.reason instanceof Y){const xe=V.reason;throw xe.config=S,D&&(xe.request=D),G!==xe&&Object.defineProperty(xe,"cause",{__proto__:null,value:G,writable:!0,enumerable:!1,configurable:!0}),xe}if(ye)throw D&&!ye.request&&(ye.request=D),ye;if(G instanceof Y)throw D&&!G.request&&(G.request=D),G;if(G&&G.name==="TypeError"&&/Load failed|fetch/i.test(G.message)){const xe=new Y("Network Error",Y.ERR_NETWORK,S,D,G&&G.response);throw Object.defineProperty(xe,"cause",{__proto__:null,value:G.cause||G,writable:!0,enumerable:!1,configurable:!0}),xe}throw Y.from(G,G&&G.code,S,D,G&&G.response)}}},oP=new Map,Fw=t=>{let e=t&&t.env||{};const{fetch:n,Request:i,Response:a}=e,l=[i,a,n];let u=l.length,d=u,f,p,g=oP;for(;d--;)f=l[d],p=g.get(f),p===void 0&&g.set(f,p=d?new Map:iP(e)),g=p;return p};Fw();const zf={http:dC,xhr:HC,fetch:{get:Fw}};N.forEach(zf,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const wy=t=>`- ${t}`,aP=t=>N.isFunction(t)||t===null||t===!1;function lP(t,e){t=N.isArray(t)?t:[t];const{length:n}=t;let i,a;const l={};for(let u=0;u<n;u++){i=t[u];let d;if(a=i,!aP(i)&&(a=zf[(d=String(i)).toLowerCase()],a===void 0))throw new Y(`Unknown adapter '${d}'`);if(a&&(N.isFunction(a)||(a=a.get(e))))break;l[d||"#"+u]=a}if(!a){const u=Object.entries(l).map(([f,p])=>`adapter ${f} `+(p===!1?"is not supported by the environment":"is not available in the build"));let d=n?u.length>1?`since : 200`+u.map(wy).join(` 201`):" "+wy(u[0]):"as no adapter specified";throw new Y("There is no suitable adapter to dispatch the request "+d,Y.ERR_NOT_SUPPORT)}return a}const Bw={getAdapter:lP,adapters:zf};function hd(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Qo(null,t)}function pd(t){return hd(t),t.headers=Ct.from(t.headers),t.data=fd.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Bw.getAdapter(t.adapter||Ko.adapter,t)(t).then(function(i){hd(t),t.response=i;try{i.data=fd.call(t,t.transformResponse,i)}finally{delete t.response}return i.headers=Ct.from(i.headers),i},function(i){if(!Lw(i)&&(hd(t),i&&i.response)){t.response=i.response;try{i.response.data=fd.call(t,t.transformResponse,i.response)}finally{delete t.response}i.response.headers=Ct.from(i.response.headers)}return Promise.reject(i)})}const eu={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{eu[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const xy={};eu.transitional=function(e,n,i){function a(l,u){return"[Axios v"+Vf+"] Transitional option '"+l+"'"+u+(i?". "+i:"")}return(l,u,d)=>{if(e===!1)throw new Y(a(u," has been removed"+(n?" in "+n:"")),Y.ERR_DEPRECATED);return n&&!xy[u]&&(xy[u]=!0,console.warn(a(u," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(l,u,d):!0}};eu.spelling=function(e){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};function uP(t,e,n){if(typeof t!="object"||t===null)throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let a=i.length;for(;a-- >0;){const l=i[a],u=Object.prototype.hasOwnProperty.call(e,l)?e[l]:void 0;if(u){const d=t[l],f=d===void 0||u(d,l,t);if(f!==!0)throw new Y("option "+l+" must be "+f,Y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Y("Unknown option "+l,Y.ERR_BAD_OPTION)}}const El={assertOptions:uP,validators:eu},kt=El.validators;let gs=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ay,response:new ay}}async request(e,n){try{return await this._request(e,n)}catch(i){if(i instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const l=(()=>{if(!a.stack)return"";const u=a.stack.indexOf(` 202`);return u===-1?"":a.stack.slice(u+1)})();try{if(!i.stack)i.stack=l;else if(l){const u=l.indexOf(` 203`),d=u===-1?-1:l.indexOf(` 204`,u+1),f=d===-1?"":l.slice(d+1);String(i.stack).endsWith(f)||(i.stack+=` 205`+l)}}catch{}}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=bs(this.defaults,n);const{transitional:i,paramsSerializer:a,headers:l}=n;i!==void 0&&El.assertOptions(i,{silentJSONParsing:kt.transitional(kt.boolean),forcedJSONParsing:kt.transitional(kt.boolean),clarifyTimeoutError:kt.transitional(kt.boolean),legacyInterceptorReqResOrdering:kt.transitional(kt.boolean),advertiseZstdAcceptEncoding:kt.transitional(kt.boolean),validateStatusUndefinedResolves:kt.transitional(kt.boolean)},!1),a!=null&&(N.isFunction(a)?n.paramsSerializer={serialize:a}:El.assertOptions(a,{encode:kt.function,serialize:kt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),El.assertOptions(n,{baseUrl:kt.spelling("baseURL"),withXsrfToken:kt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=l&&N.merge(l.common,l[n.method]);l&&N.forEach(["delete","get","head","post","put","patch","query","common"],T=>{delete l[T]}),n.headers=Ct.concat(u,l);const d=[];let f=!0;this.interceptors.request.forEach(function(E){if(typeof E.runWhen=="function"&&E.runWhen(n)===!1)return;f=f&&E.synchronous;const k=n.transitional||Bf;k&&k.legacyInterceptorReqResOrdering?d.unshift(E.fulfilled,E.rejected):d.push(E.fulfilled,E.rejected)});const p=[];this.interceptors.response.forEach(function(E){p.push(E.fulfilled,E.rejected)});let g,y=0,w;if(!f){const T=[pd.bind(this),void 0];for(T.unshift(...d),T.push(...p),w=T.length,g=Promise.resolve(n);y<w;)g=g.then(T[y++],T[y++]);return g}w=d.length;let x=n;for(;y<w;){const T=d[y++],E=d[y++];try{x=T?T(x):x}catch(k){if(!E){g=Promise.reject(k);break}try{const S=E.call(this,k);N.isThenable(S)&&(g=Promise.resolve(S).then(()=>pd.call(this,x)))}catch(S){g=Promise.reject(S)}break}}if(!g)try{g=pd.call(this,x)}catch(T){g=Promise.reject(T)}for(y=0,w=p.length;y<w;)g=g.then(p[y++],p[y++]);return g}getUri(e){e=bs(this.defaults,e);const n=jw(e.baseURL,e.url,e.allowAbsoluteUrls,e);return Aw(n,e.params,e.paramsSerializer)}};
vendor: 1,715 bytes, line 205
205N.forEach(["delete","get","head","options"],function(e){gs.prototype[e]=function(n,i){return this.request(bs(i||{},{method:e,url:n,data:i&&N.hasOwnProp(i,"data")?i.data:void 0}))}});N.forEach(["post","put","patch","query"],function(e){function n(i){return function(l,u,d){return this.request(bs(d||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:l,data:u}))}}gs.prototype[e]=n(),e!=="query"&&(gs.prototype[e+"Form"]=n(!0))});let cP=class Uw{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const i=this;this.promise.then(a=>{if(!i._listeners)return;let l=i._listeners.length;for(;l-- >0;)i._listeners[l](a);i._listeners=null}),this.promise.then=a=>{let l;const u=new Promise(d=>{i.subscribe(d),l=d}).then(a);return u.cancel=function(){i.unsubscribe(l)},u},e(function(l,u,d){i.reason||(i.reason=new Qo(l,u,d),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=i=>{e.abort(i)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Uw(function(a){e=a}),cancel:e}}};function dP(t){return function(n){return t.apply(null,n)}}function fP(t){return N.isObject(t)&&t.isAxiosError===!0}const ef={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
205alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ef).forEach(([t,e])=>{ef[e]=t});function Vw(t){const e=new gs(t),n=gw(gs.prototype.request,e);return N.extend(n,gs.prototype,e,{allOwnKeys:!0}),N.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return Vw(bs(t,a))},n}const et=Vw(Ko);et.Axios=gs;et.CanceledError=Qo;et.CancelToken=cP;et.isCancel=Lw;et.VERSION=Vf;et.toFormData=Zl;et.AxiosError=Y;et.Cancel=et.CanceledError;et.all=function(e){return Promise.all(e)};et.spread=dP;et.isAxiosError=fP;et.mergeConfig=bs;et.AxiosHeaders=Ct;et.formToJSON=t=>Ow(N.isHTMLForm(t)?new FormData(t):t);et.getAdapter=Bw.getAdapter;et.HttpStatusCode=ef;et.default=et;const{Axios:_D,AxiosError:TD,CanceledError:CD,isCancel:PD,CancelToken:RD,VERSION:AD,all:ND,Cancel:OD,isAxiosError:LD,spread:DD,toFormData:jD,AxiosHeaders:MD,HttpStatusCode:ID,formToJSON:FD,getAdapter:BD,mergeConfig:UD,create:VD}=et,zw=typeof window>"u",Sy=!zw&&window.self!==window.top,hP=!zw&&typeof document>"u",$w=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),mt=[];for(let t=0;t<256;++t)mt.push((t+256).toString(16).slice(1));function pP(t,e=0){return(mt[t[e+0]]+mt[t[e+1]]+mt[t[e+2]]+mt[t[e+3]]+"-"+mt[t[e+4]]+mt[t[e+5]]+"-"+mt[t[e+6]]+mt[t[e+7]]+"-"+mt[t[e+8]]+mt[t[e+9]]+"-"+mt[t[e+10]]+mt[t[e+11]]+mt[t[e+12]]+mt[t[e+13]]+mt[t[e+14]]+mt[t[e+15]]).toLowerCase()}let md;const mP=new Uint8Array(16);function gP(){if(!md){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");md=crypto.getRandomValues.bind(crypto)}return md(mP)}const yP=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),by={randomUUID:yP};function vP(t,e,n){var a;t=t||{};const i=t.random??((a=t.rng)==null?void 0:a.call(t))??gP();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,pP(i)}function wP(t,e,n){return by.randomUUID&&!t?by.randomUUID():vP(t)}const mo=typeof window<"u"?window:{base44SharedInstances:{}};function xP(t,e){return mo.base44SharedInstances||(mo.base44SharedInstances={}),mo.base44SharedInstances[t]||(mo.base44SharedInstances[t]={instance:e()}),mo.base44SharedInstances[t].instance}const SP="__user_heartbeat_event__",bP="__initialization_event__",kP="__session_duration_event__",ky="analytics-enable",Ey="base44_analytics_session_id",EP={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},_P="analytics",De=xP(_P,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,fallbackSessionId:null,config:{...EP,...LP()}})),TP=({axiosClient:t,serverUrl:e,appId:n,userAuthModule:i,enabled:a})=>{var l;const{maxQueueSize:u,throttleTime:d,batchSize:f}=De.config;if(!a||!(!((l=De.config)===null||l===void 0)&&l.enabled)||hP)return{track:()=>{},cleanup:()=>{}};let p;const g=`${e}/api/apps/${n}/analytics/track/batch`,y=async L=>{await t.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:L}})},w=L=>{try{const I=JSON.stringify({events:L}),z=new Blob([I],{type:"application/json"});return typeof navigator>"u"||I.length>6e4||!navigator.sendBeacon(g,z)}catch{return!1}},x=async(L,I={})=>
205{if(L.length===0)return;const z=await OP(i),X=L.map(NP(z));try{(!I.isBeacon||!w(X))&&await y(X)}catch{}},T=()=>{Ty(x,{throttleTime:d,batchSize:f})},E=L=>{if(De.requestsQueue.length>=u)return;const I=AP();De.requestsQueue.push({...L,...I}),T()},k=()=>{Ty(x,{throttleTime:d,batchSize:f}),p=Cy(E),PP()},S=()=>{_y(),p==null||p(),RP(E);const L=De.requestsQueue.splice(0);x(L,{isBeacon:!0})},A=()=>{typeof window>"u"||(document.visibilityState==="hidden"?S():document.visibilityState==="visible"&&k())},P=()=>{_y(),p==null||p(),typeof window<"u"&&window.removeEventListener("visibilitychange",A)};return T(),p=Cy(E),CP(E),typeof window<"u"&&window.addEventListener("visibilitychange",A),{track:E,cleanup:P}};function _y(){De.isProcessing=!1}async function Ty(t,e){if(De.isProcessing)return;De.isProcessing=!0;const{throttleTime:n=1e3,batchSize:i=30}=e??{};for(;De.isProcessing&&De.requestsQueue.length>0;){const a=De.requestsQueue.splice(0,i);a.length&&await t(a),await new Promise(l=>setTimeout(l,n))}De.isProcessing=!1}function Cy(t){var e;if(typeof window>"u"||De.isHeartBeatProcessing||((e=De.config.heartBeatInterval)!==null&&e!==void 0?e:0)<10)return()=>{};De.isHeartBeatProcessing=!0;const n=setInterval(()=>{t({eventName:SP})},De.config.heartBeatInterval);return()=>{clearInterval(n),De.isHeartBeatProcessing=!1}}function CP(t){typeof window>"u"||De.wasInitializationTracked||(De.wasInitializationTracked=!0,t({eventName:bP,properties:{referrer:document==null?void 0:document.referrer}}))}function PP(){typeof window>"u"||De.sessionStartTime!==null||(De.sessionStartTime=new Date().toISOString())}function RP(t){if(typeof window>"u"||De.sessionStartTime===null)return;const e=new Date().getTime()-new Date(De.sessionStartTime).getTime();De.sessionStartTime=null,t({eventName:kP,properties:{sessionDuration:e}})}function AP(){var t,e;return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"&&(e=(t=window.location)===null||t===void 0?void 0:t.pathname)!==null&&e!==void 0?e:null}}function NP(t){return e=>({event_name:e.eventName,properties:e.properties,timestamp:e.timestamp,page_url:e.pageUrl,...t})}let wo=null;function Py(){De.sessionContext=null,wo=null}async function OP(t){if(!De.sessionContext){if(!t.hasToken())return{user_id:null,session_id:Bl()};if(!wo){const i=Bl();wo=t.me().then(a=>({user_id:a.id,session_id:i})).catch(()=>({user_id:null,session_id:i}))}const e=wo,n=await e;return wo===e&&(De.sessionContext=n),n}return De.sessionContext}function LP(){if(typeof window>"u"||!window.location)return;const e=new URLSearchParams(window.location.search).get(ky);if(e==null||!e.length)return;const n=new URLSearchParams(window.location.search);n.delete(ky);const i=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",i),{enabled:e==="true"}}function Ry(){var t;return(t=De.fallbackSessionId)!==null&&t!==void 0?t:De.fallbackSessionId=$w()}function Bl(){if(typeof window>"u")return Ry();try{const t=localStorage.getItem(Ey);if(!t){const e=$w();return localStorage.setItem(Ey,e),e}return t}catch{return Ry()}}class DP extends Error{constructor(e,n,i,a,l){super(e),this.name="Base44Error",this.status=n,this.code=i,this.data=a,this.originalError=l}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function Ys({baseURL:t,headers:e={},token:n,interceptResponses:i=!0,onError:a}){const l=et.create({baseURL:t,headers:{"Content-Type":"application/json",Accept:"application/json",...e}});return n&&(l.defaults.headers.common.Authorization=`Bearer ${n}`),l.interceptors.request.use(u=>{typeof window<"u"&&(window.location&&u.headers.set("X-Origin-URL",window.location.href),u.headers.get("Authorization")||u.headers.set("X-Base44-Anonymous-Id",Bl()));const d=wP();if(u.requestId=d,Sy)try{window.parent.postMessage({type:"api-request-start",requestId:d,data:{url:t+u.url,method:u.method,body:u.data instanceof FormData?"[FormData object]":u.data}},"*")}catch{}return u}),i&&l.interceptors.response.use(u=>{var d;const f=(d=u.config)===null||d===void 0?void 0:d.requestId;try{Sy&&f&&window.parent.postMessage({type:"api-request-end",requestId:f,data:{statusCode:u.status,response:u.data}},"*")}catch{}return u.data},u=>{var d,f,p,g,y,w,x,T,E,k,S,A,P,L,I;const z=((f=(d=u.response)===null||d===void 0?void 0:d.data)===null||f===void 0?void 0:f.message)||((g=(p=u.response)===null||p===void 0?void 0:p.data)===null||g===void 0?void 0:g.detail)||u.message,X=new DP(z,(y=u.response)===null||y===void 0?void 0:y.status,(A=(T=(x=(w=u.response)===null||w===void 0?void 0:w.data)===null||x===void 0?void 0:x.code)!==null&&T!==void 0?T:(S=(k=(E=u.response)===null||E===void 0?void 0:E.headers)===null||k===void 0?void 0:k.get)===null||S===void 0?void 0:S.call(k,"x-base44-connector-error"))!==null&&A!==void 0?A:(L=(P=u.response)===null||P===void 0?void 0:P.headers)===null||L===void 0?void 0:L["x-base44-connector-error"],(I=u.response)===null||I===void 0?void 0:I.data,u);return a==null||a(X),Promise.reject(X)}),l}function Ay(t){const{axios:e,appId:n,getSocket:i}=t;return new Proxy({},{get(a,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return MP(e,n,l,i)}})}function jP(t){var e;try{const n=JSON.parse(t);
205return{type:n.type,data:n.data,id:n.id||((e=n.data)===null||e===void 0?void 0:e.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}function MP(t,e,n,i){const a=`/apps/${e}/entities/${n}`;return{async list(l,u,d,f){const p={};return l&&(p.sort=l),u&&(p.limit=u),d&&(p.skip=d),f&&(p.fields=Array.isArray(f)?f.join(","):f),t.get(a,{params:p})},async filter(l,u,d,f,p){const g={q:JSON.stringify(l)};return u&&(g.sort=u),d&&(g.limit=d),f&&(g.skip=f),p&&(g.fields=Array.isArray(p)?p.join(","):p),t.get(a,{params:g})},async get(l){return t.get(`${a}/${l}`)},async create(l){return t.post(a,l)},async update(l,u){return t.put(`${a}/${l}`,u)},async delete(l){return t.delete(`${a}/${l}`)},async deleteMany(l){return t.delete(a,{data:l})},async bulkCreate(l){return t.post(`${a}/bulk`,l)},async updateMany(l,u){return t.patch(`${a}/update-many`,{query:l,data:u})},async bulkUpdate(l){return t.put(`${a}/bulk`,l)},async importEntities(l){const u=new FormData;return u.append("file",l,l.name),t.post(`${a}/import`,u,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(l){const u=`entities:${e}:${n}`;return i().subscribeToRoom(u,{update_model:p=>{var g;const y=jP(p.data);if(y){y.type!=="delete"&&(!((g=y.data)===null||g===void 0)&&g._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${y.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${n}.get("${y.id}")\` to fetch the full record.`);try{l(y)}catch(w){console.error("[Base44 SDK] Subscription callback error:",w)}}}})}}}function IP(t,e){return{async call(n,i,a){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(i!=null&&i.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:l,queryParams:u,...d}=a??{},f={...d,...l&&{path_params:l},...u&&{query_params:u}};return await t.post(`/apps/${e}/integrations/custom/${n}/${i}`,f)}}}function Ny(t,e){const n=IP(t,e);return new Proxy({},{get(i,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return a==="custom"?n:new Proxy({},{get(l,u){if(!(typeof u!="string"||u==="then"||u.startsWith("_")))return async d=>{if(typeof d=="string")throw new Error(`Integration ${u} must receive an object with named parameters, received: ${d}`);let f,p;return d instanceof FormData||d&&Object.values(d).some(g=>g instanceof File)?(f=new FormData,Object.keys(d).forEach(g=>{d[g]instanceof File?f.append(g,d[g],d[g].name):typeof d[g]=="object"&&d[g]!==null?f.append(g,JSON.stringify(d[g])):f.append(g,d[g])}),p="multipart/form-data"):(f=d,p="application/json"),a==="Core"?t.post(`/apps/${e}/integration-endpoints/Core/${u}`,f||d,{headers:{"Content-Type":p}}):t.post(`/apps/${e}/integration-endpoints/installable/${a}/integration-endpoints/${u}`,f||d,{headers:{"Content-Type":p}})}}})}})}function FP(){return typeof window>"u"?!1:window!==window.parent}function BP(t,e,n){const l=Math.round(window.screenX+(window.outerWidth-500)/2),u=Math.round(window.screenY+(window.outerHeight-600)/2),d=window.open(t,"base44_auth",`width=500,height=600,left=${l},top=${u},resizable=yes,scrollbars=yes`);if(!d)return;const f=()=>{window.removeEventListener("message",p),clearInterval(g),d.closed||d.close()},p=y=>{var w;if(y.origin!==n||y.source!==d||!(!((w=y.data)===null||w===void 0)&&w.access_token))return;f();const x=new URL(e),{access_token:T,is_new_user:E}=y.data;x.searchParams.set("access_token",T),E!=null&&x.searchParams.set("is_new_user",String(E)),window.location.href=x.toString()},g=setInterval(()=>{d.closed&&f()},500);window.addEventListener("message",p)}function UP(t,e,n,i){let a=null;const l=()=>{a=null};let u=!!i.token;return{hasToken(){return u},async me(){const d=a??t.get(`/apps/${n}/entities/User/me`).finally(()=>{a===d&&(a=null)});return a=d,d},async updateMe(d){return t.put(`/apps/${n}/entities/User/me`,d)},redirectToLogin(d){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const f=d?new URL(d,window.location.origin).toString():window.location.href,p=`${i.appBaseUrl}/login?from_url=${encodeURIComponent(f)}`;window.location.href=p},loginWithProvider(d,f="/"){const p=new URL(f,window.location.origin).toString(),g=`app_id=${n}&from_url=${encodeURIComponent(p)}`;let y;d==="sso"?y=`/apps/${n}/auth/sso/login`:y=`/apps/auth${d==="google"?"":`/${d}`}/login`;const w=`${i.appBaseUrl}/api${y}?${g}`;if(FP()){const x=`${w}&popup_origin=${encodeURIComponent(window.location.origin)}`;return BP(x,p,window.location.origin)}window.location.href=w},logout(d){if(delete t.defaults.headers.common.Authorization,l(),Py(),u=!1,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(g){console.error("Failed to remove token from localStorage:",g)}const f=d||window.location.href,p=`${i.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(f)}`;window.location.href=p}},setToken(d,f=!0){if(d&&(l(),Py(),u=!0,t.defaults.headers.common.Authorization=`Bearer ${d}`,e.defaults.headers.common.Authorization=`Bearer ${d}`,f&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",d),window.localStorage.setItem("token",d)}catch(p){console.error("Failed to save token to localStorage:",p)}},async loginViaEmailPassword(d,f,p){var g;try{const y=await t.post(`/apps/${n}/auth/login`,{email:d,password:f,...p&&{turnstile_token:p}}),{access_token:w,user:x}=y;return w&&this.setToken(w),{access_token:w,user:x}}catch(y){throw((g=y.response)===null||g===void 0?void 0:g.status)===401&&await this.logout(),y}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(d,f){return t.post(`/apps/${n}/users/invite-user`,{user_email:d,role:f})},register(d){return t.post(`/apps/${n}/auth/register`,d)},verifyOtp({email:d,otpCode:f}){return t.post(`/apps/${n}/auth/verify-otp`,{email:d,otp_code:f})},resendOtp(d){return t.post(`/apps/${n}/auth/resend-otp`,{email:d})},resetPasswordRequest(d){return t.post(`/apps/${n}/auth/reset-password-request`,{email:d})},resetPassword({resetToken:d,newPassword:f}){return t.post(`/apps/${n}/auth/reset-password`,{reset_token:d,new_password:f})},changePassword({userId:d,currentPassword:f,newPassword:p}){return t.post(`/apps/${n}/auth/change-password`,{user_id:d,current_password:f,new_password:p})}}}function VP(t,e){return{async getAccessToken(n){const i=`/apps/${e}/auth/sso/accesstoken/${n}`;return t.get(i)},async getIdToken(n){const i=`/apps/${e}/auth/sso/idtoken/${n}`;return t.get(i)}}}const zP=new Set(["GET","POST","PUT","PATCH","DELETE","HEAD"]);
205function $P(t,e){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await t.get(`/apps/${e}/external-auth/tokens/${encodeURIComponent(n)}`)).access_token},async getConnection(n){var i;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const l=await t.get(`/apps/${e}/external-auth/tokens/${encodeURIComponent(n)}`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}},async getWorkspaceConnection(n){var i;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const l=await t.get(`/apps/${e}/external-auth/tokens/connectors/${encodeURIComponent(n)}`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await t.get(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}/token`)).access_token},async getCurrentAppUserConnection(n){var i;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const l=await t.get(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}/token`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}},async callApi(n,i){return Ww(n,"Integration type"),WP(t,`/apps/${e}/connectors/${encodeURIComponent(n)}/call`,i)}}}function Ww(t,e){if(!t||typeof t!="string")throw new Error(`${e} is required and must be a string`)}async function WP(t,e,n){var i,a,l,u,d,f,p,g,y;if(!n||typeof n!="object")throw new Error("Request is required and must be an object");Ww(n.path,"Request path");const w=(i=n.method)!==null&&i!==void 0?i:"GET";if(!zP.has(w))throw new Error("Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD");const T=await t.post(e,{method:w,...n.host==null?{}:{host:n.host},path:n.path,query:(a=n.query)!==null&&a!==void 0?a:{},headers:(l=n.headers)!==null&&l!==void 0?l:{},body:(u=n.body)!==null&&u!==void 0?u:null});return{success:T.success,phase:T.phase,status:(d=T.status_code)!==null&&d!==void 0?d:null,data:T.data,dataBase64:(f=T.data_base64)!==null&&f!==void 0?f:null,contentType:(p=T.content_type)!==null&&p!==void 0?p:null,headers:(g=T.headers)!==null&&g!==void 0?g:{},creditsCharged:(y=T.credits_charged)!==null&&y!==void 0?y:0}}function HP(t,e){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await t.post(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}/initiate`)).redirect_url},async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await t.delete(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}`)}}}function Or(t={}){const{storageKey:e="base44_access_token",paramName:n="access_token",saveToStorage:i=!0,removeFromUrl:a=!0}=t;let l=null;if(typeof window<"u"&&window.location)try{const u=new URLSearchParams(window.location.search);if(l=u.get(n),l){if(i&&qP(l,{storageKey:e}),a){u.delete(n);const d=`${window.location.pathname}${u.toString()?`?${u.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}return l}}catch(u){console.error("Error retrieving token from URL:",u)}if(typeof window<"u"&&window.localStorage)try{return l=window.localStorage.getItem(e),l}catch(u){console.error("Error retrieving token from local storage:",u)}return null}function qP(t,e){const{storageKey:n="base44_access_token"}=e;if(typeof window>"u"||!window.localStorage||!t)return!1;try{return window.localStorage.setItem(n,t),window.localStorage.setItem("token",t),!0}catch(i){return console.error("Error saving token to local storage:",i),!1}}function KP({axios:t,serviceRoleAxios:e,appId:n,serverUrl:i,functionsVersion:a,platformHeaders:l}){const u=new Headers(l),d=f=>{const p=f.defaults.headers.common.Authorization;return typeof p=="string"&&p.startsWith("Bearer ")?p:null};return async function(p,g={}){QP(p);const{fetch:y=fetch,...w}=g,x=new Headers(g.headers),T=(E,k)=>{k&&!x.has(E)&&x.set(E,k)};return T("Authorization",d(t)),T("Base44-Service-Authorization",d(e)),T("Base44-App-Id",n),T("Base44-Api-Url",i),T("Base44-Functions-Version",a),T("Base44-State",u.get("Base44-State")),T("X-Data-Env",u.get("X-Data-Env")),y(p,{...w,headers:x})}}function QP(t){if(typeof t!="string"||t==="")throw new Error("fetchWithAuth() requires a path, such as '/api/orders'.");const e=t.replace(/[\t\n\r]/g,"").replace(/^[\x00-\x20]+/,"");if(!e.startsWith("/")||e.startsWith("//")||e.startsWith("/\\"))throw new Error(`fetchWithAuth() only sends requests to your app's own origin, so your app's credentials never reach a third party. "${t}" is not a path on it â pass a relative path such as '/api/orders'. Use base44.functions.fetch() to call a Base44 backend function, or plain fetch() for another origin.`)}function Oy(t,e,n){const i=(l,u)=>l?`${String(l).replace(/\/$/,"")}${u}`:u,a=l=>{const u=new Headers;if(n!=null&&n.getAuthHeaders){const d=n.getAuthHeaders();
205Object.entries(d).forEach(([f,p])=>{p!=null&&u.set(f,String(p))})}return l&&new Headers(l).forEach((d,f)=>{u.set(f,d)}),u};return{async invoke(l,u){if(typeof u=="string")throw new Error(`Function ${l} must receive an object with named parameters, received: ${u}`);let d,f;return u instanceof FormData||u&&Object.values(u).some(p=>p instanceof File)?(d=new FormData,Object.keys(u).forEach(p=>{u[p]instanceof File?d.append(p,u[p],u[p].name):typeof u[p]=="object"&&u[p]!==null?d.append(p,JSON.stringify(u[p])):d.append(p,u[p])}),f="multipart/form-data"):(d=u,f="application/json"),t.post(`/apps/${e}/functions/${l}`,d||u,{headers:{"Content-Type":f}})},async fetch(l,u={}){const f=`/functions${l.startsWith("/")?l:`/${l}`}`,p=a(u.headers),g={...u,headers:p};return await fetch(i(n==null?void 0:n.baseURL,f),g)}}}function Ly({axios:t,getSocket:e,appId:n,serverUrl:i,token:a}){const l=`/apps/${n}/agents`,u={},d=()=>t.get(`${l}/conversations`),f=E=>t.get(`${l}/conversations/${E}`);return{getConversations:d,getConversation:f,listConversations:E=>t.get(`${l}/conversations`,{params:E}),createConversation:E=>t.post(`${l}/conversations`,E),addMessage:async(E,k)=>t.post(`${l}/conversations/v2/${E.id}/messages`,k),subscribeToConversation:(E,k)=>{const S=`/agent-conversations/${E}`,A=e(),P=f(E).then(L=>(u[E]=L,L));return A.subscribeToRoom(S,{connect:()=>{},update_model:async({data:L})=>{const I=JSON.parse(L);if(I._message){await P;const z=I._message,X=u[E];if(X){const B=X.messages||[],Z=B.findIndex(be=>be.id===z.id),ue=Z!==-1?B.map((be,Ae)=>Ae===Z?z:be):[...B,z];u[E]={...X,messages:ue},k==null||k(u[E])}}}})},getWhatsAppConnectURL:E=>{const k=`${i}/api/apps/${n}/agents/${encodeURIComponent(E)}/whatsapp`,S=a??Or();return S?`${k}?token=${S}`:k},getTelegramConnectURL:E=>{const k=`${i}/api/apps/${n}/agents/${encodeURIComponent(E)}/telegram`,S=a??Or();return S?`${k}?token=${S}`:k}}}function Dy({serverUrl:t,token:e,appId:n}){return{connection:()=>{var a;return{baseURL:`${t}/api/apps/${n}/ai/openai/v1`,token:(a=e??Or())!==null&&a!==void 0?a:""}}}}function jy(t,e){const n=`/app-logs/${e}`;return{async logUserInApp(i){await t.post(`${n}/log-user-in-app/${i}`)},async fetchLogs(i={}){return await t.get(n,{params:i})},async getStats(i={}){return await t.get(`${n}/stats`,{params:i})}}}function GP(t,e){return{async getPublicSettings(){return t.get(`/apps/public/prod/public-settings/by-id/${e}`)}}}function XP(t,e){return{async inviteUser(n,i){if(i!=="user"&&i!=="admin")throw new Error(`Invalid role: "${i}". Role must be either "user" or "admin".`);return await t.post(`/apps/${e}/runtime/users/invite-user`,{user_email:n,role:i})}}}const Dn=Object.create(null);Dn.open="0";
vendor: 30,188 bytes, line 205
205Dn.close="1";Dn.ping="2";Dn.pong="3";Dn.message="4";Dn.upgrade="5";Dn.noop="6";const _l=Object.create(null);Object.keys(Dn).forEach(t=>{_l[Dn[t]]=t});const tf={type:"error",data:"parser error"},Hw=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",qw=typeof ArrayBuffer=="function",Kw=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,$f=({type:t,data:e},n,i)=>Hw&&e instanceof Blob?n?i(e):My(e,i):qw&&(e instanceof ArrayBuffer||Kw(e))?n?i(e):My(new Blob([e]),i):i(Dn[t]+(e||"")),My=(t,e)=>{const n=new FileReader;return n.onload=function(){const i=n.result.split(",")[1];e("b"+(i||""))},n.readAsDataURL(t)};function Iy(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let gd;function YP(t,e){if(Hw&&t.data instanceof Blob)return t.data.arrayBuffer().then(Iy).then(e);if(qw&&(t.data instanceof ArrayBuffer||Kw(t.data)))return e(Iy(t.data));$f(t,!1,n=>{gd||(gd=new TextEncoder),e(gd.encode(n))})}const Fy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Fy.length;t++)xo[Fy.charCodeAt(t)]=t;const JP=t=>{let e=t.length*.75,n=t.length,i,a=0,l,u,d,f;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const p=new ArrayBuffer(e),g=new Uint8Array(p);for(i=0;i<n;i+=4)l=xo[t.charCodeAt(i)],u=xo[t.charCodeAt(i+1)],d=xo[t.charCodeAt(i+2)],f=xo[t.charCodeAt(i+3)],g[a++]=l<<2|u>>4,g[a++]=(u&15)<<4|d>>2,g[a++]=(d&3)<<6|f&63;return p},ZP=typeof ArrayBuffer=="function",Wf=(t,e)=>{if(typeof t!="string")return{type:"message",data:Qw(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:eR(t.substring(1),e)}:_l[n]?t.length>1?{type:_l[n],data:t.substring(1)}:{type:_l[n]}:tf},eR=(t,e)=>{if(ZP){const n=JP(t);return Qw(n,e)}else return{base64:!0,data:t}},Qw=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Gw="�",tR=(t,e)=>{const n=t.length,i=new Array(n);let a=0;t.forEach((l,u)=>{$f(l,!1,d=>{i[u]=d,++a===n&&e(i.join(Gw))})})},nR=(t,e)=>{const n=t.split(Gw),i=[];for(let a=0;a<n.length;a++){const l=Wf(n[a],e);if(i.push(l),l.type==="error")break}return i};function rR(){return new TransformStream({transform(t,e){YP(t,n=>{const i=n.length;let a;if(i<126)a=new Uint8Array(1),new DataView(a.buffer).setUint8(0,i);else if(i<65536){a=new Uint8Array(3);const l=new DataView(a.buffer);l.setUint8(0,126),l.setUint16(1,i)}else{a=new Uint8Array(9);const l=new DataView(a.buffer);l.setUint8(0,127),l.setBigUint64(1,BigInt(i))}t.data&&typeof t.data!="string"&&(a[0]|=128),e.enqueue(a),e.enqueue(n)})}})}let yd;function hl(t){return t.reduce((e,n)=>e+n.length,0)}function pl(t,e){if(t[0].length===e)return t.shift();const n=new Uint8Array(e);let i=0;for(let a=0;a<e;a++)n[a]=t[0][i++],i===t[0].length&&(t.shift(),i=0);return t.length&&i<t[0].length&&(t[0]=t[0].slice(i)),n}function sR(t,e){yd||(yd=new TextDecoder);const n=[];let i=0,a=-1,l=!1;return new TransformStream({transform(u,d){for(n.push(u);;){if(i===0){if(hl(n)<1)break;const f=pl(n,1);l=(f[0]&128)===128,a=f[0]&127,a<126?i=3:a===126?i=1:i=2}else if(i===1){if(hl(n)<2)break;const f=pl(n,2);a=new DataView(f.buffer,f.byteOffset,f.length).getUint16(0),i=3}else if(i===2){if(hl(n)<8)break;const f=pl(n,8),p=new DataView(f.buffer,f.byteOffset,f.length),g=p.getUint32(0);if(g>Math.pow(2,21)-1){d.enqueue(tf);break}a=g*Math.pow(2,32)+p.getUint32(4),i=3}else{if(hl(n)<a)break;const f=pl(n,a);d.enqueue(Wf(l?f:yd.decode(f),e)),i=0}if(a===0||a>t){d.enqueue(tf);break}}}})}const Xw=4;function nt(t){if(t)return iR(t)}function iR(t){for(var e in nt.prototype)t[e]=nt.prototype[e];return t}nt.prototype.on=nt.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};nt.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};nt.prototype.off=nt.prototype.removeListener=nt.prototype.removeAllListeners=nt.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var i,a=0;a<n.length;a++)if(i=n[a],i===e||i.fn===e){n.splice(a,1);break}return n.length===0&&delete this._callbacks["$"+t],this};nt.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(n){n=n.slice(0);for(var i=0,a=n.length;i<a;++i)n[i].apply(this,e)}return this};nt.prototype.emitReserved=nt.prototype.emit;nt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};nt.prototype.hasListeners=function(t){return!!this.listeners(t).length};const tu=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),an=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),oR="arraybuffer";function Yw(t,...e){return e.reduce((n,i)=>(t.hasOwnProperty(i)&&(n[i]=t[i]),n),{})}const aR=an.setTimeout,lR=an.clearTimeout;function nu(t,e){e.useNativeTimers?(t.setTimeoutFn=aR.bind(an),t.clearTimeoutFn=lR.bind(an)):(t.setTimeoutFn=an.setTimeout.bind(an),t.clearTimeoutFn=an.clearTimeout.bind(an))}const uR=1.33;function cR(t){return typeof t=="string"?dR(t):Math.ceil((t.byteLength||t.size)*uR)}function dR(t){let e=0,n=0;for(let i=0,a=t.length;i<a;i++)e=t.charCodeAt(i),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(i++,n+=4);return n}function Jw(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function fR(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function hR(t){let e={},n=t.split("&");for(let i=0,a=n.length;i<a;i++){let l=n[i].split("=");e[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}return e}class pR extends Error{constructor(e,n,i){super(e),this.description=n,this.context=i,this.type="TransportError"}}class Hf extends nt{constructor(e){super(),this.writable=!1,nu(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,n,i){return super.emitReserved("error",new pR(e,n,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const n=Wf(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const n=fR(e);return n.length?"?"+n:""}}class mR extends Hf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const n=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||n()})),this.writable||(i++,this.once("drain",function(){--i||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};nR(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,tR(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Jw()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}}let Zw=!1;try{Zw=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const gR=Zw;function yR(){}class vR extends mR{constructor(e){if(super(e),typeof location<"u"){const n=location.protocol==="https:";let i=location.port;i||(i=n?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port}}doWrite(e,n){const i=this.request({method:"POST",data:e});i.on("success",n),i.on("error",(a,l)=>{this.onError("xhr post error",a,l)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,i)=>{this.onError("xhr poll error",n,i)}),this.pollXhr=e}}class Nn extends nt{constructor(e,n,i){super(),this.createRequest=e,nu(this,i),this._opts=i,this._method=i.method||"GET",this._uri=n,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var e;const n=Yw(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const i=this._xhr=this.createRequest(n);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let a in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(a)&&i.setRequestHeader(a,this._opts.extraHeaders[a])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var a;i.readyState===3&&((a=this._opts.cookieJar)===null||a===void 0||a.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(a){this.setTimeoutFn(()=>{this._onError(a)},0);return}typeof document<"u"&&(this._index=Nn.requestsCount++,Nn.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=yR,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Nn.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Nn.requestsCount=0;Nn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",By);else if(typeof addEventListener=="function"){const t="onpagehide"in an?"pagehide":"unload";addEventListener(t,By,!1)}}function By(){for(let t in Nn.requests)Nn.requests.hasOwnProperty(t)&&Nn.requests[t].abort()}const wR=(function(){const t=ex({xdomain:!1});return t&&t.responseType!==null})();class xR extends vR{constructor(e){super(e);const n=e&&e.forceBase64;this.supportsBinary=wR&&!n}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Nn(ex,this.uri(),e)}}function ex(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||gR))return new XMLHttpRequest}catch{}if(!e)try{return new an[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const tx=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class SR extends Hf{get name(){return"websocket"}doOpen(){const e=this.uri(),n=this.opts.protocols,i=tx?{}:Yw(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,n,i)}catch(a){return this.emitReserved("error",a)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const i=e[n],a=n===e.length-1;$f(i,this.supportsBinary,l=>{try{this.doWrite(i,l)}catch{}a&&tu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Jw()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}}const vd=an.WebSocket||an.MozWebSocket;class bR extends SR{createSocket(e,n,i){return tx?new vd(e,n,i):n?new vd(e,n):new vd(e)}doWrite(e,n){this.ws.send(n)}}class kR extends Hf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const n=sR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=e.readable.pipeThrough(n).getReader(),a=rR();a.readable.pipeTo(e.writable),this._writer=a.writable.getWriter();const l=()=>{i.read().then(({done:d,value:f})=>{d||(this.onPacket(f),l())}).catch(d=>{})};l();const u={type:"open"};this.query.sid&&(u.data=`{"sid":"${this.query.sid}"}`),this._writer.write(u).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const i=e[n],a=n===e.length-1;this._writer.write(i).then(()=>{a&&tu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const ER={websocket:bR,webtransport:kR,polling:xR},_R=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,TR=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function nf(t){if(t.length>8e3)throw"URI too long";const e=t,n=t.indexOf("["),i=t.indexOf("]");n!=-1&&i!=-1&&(t=t.substring(0,n)+t.substring(n,i).replace(/:/g,";")+t.substring(i,t.length));let a=_R.exec(t||""),l={},u=14;for(;u--;)l[TR[u]]=a[u]||"";return n!=-1&&i!=-1&&(l.source=e,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=CR(l,l.path),l.queryKey=PR(l,l.query),l}function CR(t,e){const n=/\/{2,9}/g,i=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&i.splice(0,1),e.slice(-1)=="/"&&i.splice(i.length-1,1),i}function PR(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,a,l){a&&(n[a]=l)}),n}const rf=typeof addEventListener=="function"&&typeof removeEventListener=="function",Tl=[];rf&&addEventListener("offline",()=>{Tl.forEach(t=>t())},!1);class Dr extends nt{constructor(e,n){if(super(),this.binaryType=oR,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(n=e,e=null),e){const i=nf(e);n.hostname=i.host,n.secure=i.protocol==="https"||i.protocol==="wss",n.port=i.port,i.query&&(n.query=i.query)}else n.host&&(n.hostname=nf(n.host).host);nu(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(i=>{const a=i.prototype.name;this.transports.push(a),this._transportsByName[a]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=hR(this.opts.query)),rf&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Tl.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=Xw,n.transport=e,this.id&&(n.sid=this.id);const i=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&Dr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(e);n.open(),this.setTransport(n)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Dr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=e.data,this._onError(n);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let i=0;i<this.writeBuffer.length;i++){const a=this.writeBuffer[i].data;if(a&&(n+=cR(a)),i>0&&n>this._maxPayload)return this.writeBuffer.slice(0,i);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,tu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,n,i){return this._sendPacket("message",e,n,i),this}send(e,n,i){return this._sendPacket("message",e,n,i),this}_sendPacket(e,n,i,a){if(typeof n=="function"&&(a=n,n=void 0),typeof i=="function"&&(a=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const l={type:e,data:n,options:i};this.emitReserved("packetCreate",l),this.writeBuffer.push(l),a&&this.once("flush",a),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},i=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():e()}):this.upgrading?i():e()),this}_onError(e){if(Dr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),rf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=Tl.indexOf(this._offlineEventListener);i!==-1&&Tl.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}}Dr.protocol=Xw;class RR extends Dr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let n=this.createTransport(e),i=!1;Dr.priorWebsocketSuccess=!1;const a=()=>{i||(n.send([{type:"ping",data:"probe"}]),n.once("packet",y=>{if(!i)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Dr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(g(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const w=new Error("probe error");w.transport=n.name,this.emitReserved("upgradeError",w)}}))};function l(){i||(i=!0,g(),n.close(),n=null)}const u=y=>{const w=new Error("probe error: "+y);w.transport=n.name,l(),this.emitReserved("upgradeError",w)};function d(){u("transport closed")}function f(){u("socket closed")}function p(y){n&&y.name!==n.name&&l()}const g=()=>{n.removeListener("open",a),n.removeListener("error",u),n.removeListener("close",d),this.off("close",f),this.off("upgrading",p)};n.once("open",a),n.once("error",u),n.once("close",d),this.once("close",f),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{i||n.open()},200):n.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const n=[];for(let i=0;i<e.length;i++)~this.transports.indexOf(e[i])&&n.push(e[i]);return n}}let AR=class extends RR{constructor(e,n={}){const i=typeof e=="object"?e:n;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(a=>ER[a]).filter(a=>!!a)),super(e,i)}};function NR(t,e="",n){let i=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),i=nf(t)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const l=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+l+":"+i.port+e,i.href=i.protocol+"://"+l+(n&&n.port===i.port?"":":"+i.port),i}const OR=typeof ArrayBuffer=="function",LR=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,nx=Object.prototype.toString,DR=typeof Blob=="function"||typeof Blob<"u"&&nx.call(Blob)==="[object BlobConstructor]",jR=typeof File=="function"||typeof File<"u"&&nx.call(File)==="[object FileConstructor]";function qf(t){return OR&&(t instanceof ArrayBuffer||LR(t))||DR&&t instanceof Blob||jR&&t instanceof File}function Cl(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,i=t.length;n<i;n++)if(Cl(t[n]))return!0;return!1}if(qf(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Cl(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&Cl(t[n]))return!0;return!1}function MR(t){const e=[],n=t.data,i=t;return i.data=sf(n,e),i.attachments=e.length,{packet:i,buffers:e}}function sf(t,e){if(!t)return t;if(qf(t)){const n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){const n=new Array(t.length);for(let i=0;i<t.length;i++)n[i]=sf(t[i],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){const n={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=sf(t[i],e));return n}return t}function IR(t,e){return t.data=of(t.data,e),delete t.attachments,t}function of(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=of(t[n],e);else if(typeof t=="object")for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=of(t[n],e));return t}const FR=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Re;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(Re||(Re={}));class BR{constructor(e){this.replacer=e}encode(e){return(e.type===Re.EVENT||e.type===Re.ACK)&&Cl(e)?this.encodeAsBinary({type:e.type===Re.EVENT?Re.BINARY_EVENT:Re.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===Re.BINARY_EVENT||e.type===Re.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),n}encodeAsBinary(e){const n=MR(e),i=this.encodeAsString(n.packet),a=n.buffers;return a.unshift(i),a}}class Kf extends nt{constructor(e){super(),this.reviver=e}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);const i=n.type===Re.BINARY_EVENT;i||n.type===Re.BINARY_ACK?(n.type=i?Re.EVENT:Re.ACK,this.reconstructor=new UR(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(qf(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0;const i={type:Number(e.charAt(0))};if(Re[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===Re.BINARY_EVENT||i.type===Re.BINARY_ACK){const l=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);const u=e.substring(l,n);if(u!=Number(u)||e.charAt(n)!=="-")throw new Error("Illegal attachments");i.attachments=Number(u)}if(e.charAt(n+1)==="/"){const l=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););i.nsp=e.substring(l,n)}else i.nsp="/";const a=e.charAt(n+1);if(a!==""&&Number(a)==a){const l=n+1;for(;++n;){const u=e.charAt(n);if(u==null||Number(u)!=u){--n;break}if(n===e.length)break}i.id=Number(e.substring(l,n+1))}if(e.charAt(++n)){const l=this.tryParse(e.substr(n));if(Kf.isPayloadValid(i.type,l))i.data=l;else throw new Error("invalid payload")}return i}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case Re.CONNECT:return Uy(n);case Re.DISCONNECT:return n===void 0;case Re.CONNECT_ERROR:return typeof n=="string"||Uy(n);case Re.EVENT:case Re.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&FR.indexOf(n[0])===-1);case Re.ACK:case Re.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class UR{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const n=IR(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function Uy(t){return Object.prototype.toString.call(t)==="[object Object]"}const VR=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Kf,Encoder:BR,get PacketType(){return Re}},Symbol.toStringTag,{value:"Module"}));function bn(t,e,n){return t.on(e,n),function(){t.off(e,n)}}const zR=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class rx extends nt{constructor(e,n,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=n,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[bn(e,"open",this.onopen.bind(this)),bn(e,"packet",this.onpacket.b
vendor: 2,660 bytes, line 205
205ind(this)),bn(e,"error",this.onerror.bind(this)),bn(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...n){var i,a,l;if(zR.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const u={type:Re.EVENT,data:n};if(u.options={},u.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const g=this.ids++,y=n.pop();this._registerAckCallback(g,y),u.id=g}const d=(a=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||a===void 0?void 0:a.writable,f=this.connected&&!(!((l=this.io.engine)===null||l===void 0)&&l._hasPingExpired());return this.flags.volatile&&!d||(f?(this.notifyOutgoingListeners(u),this.packet(u)):this.sendBuffer.push(u)),this.flags={},this}_registerAckCallback(e,n){var i;const a=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(a===void 0){this.acks[e]=n;return}const l=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let d=0;d<this.sendBuffer.length;d++)this.sendBuffer[d].id===e&&this.sendBuffer.splice(d,1);n.call(this,new Error("operation has timed out"))},a),u=(...d)=>{this.io.clearTimeoutFn(l),n.apply(this,d)};u.withError=!0,this.acks[e]=u}emitWithAck(e,...n){return new Promise((i,a)=>{const l=(u,d)=>u?a(u):i(d);l.withError=!0,n.push(l),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((a,...l)=>(this._queue[0],a!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(a)):(this._queue.shift(),n&&n(null,...l)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Re.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n),this._clearAcks()}
vendor: 7,087 bytes, line 205
205_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(i=>String(i.id)===e)){const i=this.acks[e];delete this.acks[e],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Re.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Re.EVENT:case Re.BINARY_EVENT:this.onevent(e);break;case Re.ACK:case Re.BINARY_ACK:this.onack(e);break;case Re.DISCONNECT:this.ondisconnect();break;case Re.CONNECT_ERROR:this.destroy();const i=new Error(e.data.message);i.data=e.data.data,this.emitReserved("connect_error",i);break}}onevent(e){const n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const i of n)i.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const n=this;let i=!1;return function(...a){i||(i=!0,n.packet({type:Re.ACK,id:e,data:a}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(delete this.acks[e.id],n.withError&&e.data.unshift(null),n.apply(this,e.data))}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Re.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const n=this._anyListeners;for(let i=0;i<n.length;i++)if(e===n[i])return n.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const n=this._anyOutgoingListeners;for(let i=0;i<n.length;i++)if(e===n[i])return n.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const i of n)i.apply(this,e.data)}}}function Ei(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Ei.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-n:t+n}return Math.min(t,this.max)|0};Ei.prototype.reset=function(){this.attempts=0};Ei.prototype.setMin=function(t){this.ms=t};Ei.prototype.setMax=function(t){this.max=t};Ei.prototype.setJitter=function(t){this.jitter=t};class af extends nt{constructor(e,n){var i;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,nu(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((i=n.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new Ei({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const a=n.parser||VR;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new AR(this.uri,this.opts);const n=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const a=bn(n,"open",function(){i.onopen(),e&&e()}),l=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),e?e(d):this.maybeReconnectOnOpen()},u=bn(n,"error",l);if(this._timeout!==!1){const d=this._timeout,f=this.setTimeoutFn(()=>{a(),l(new Error("timeout")),n.close()},d);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(a),this.subs.push(u),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(bn(e,"ping",this.onping.bind(this)),bn(e,"data",this.ondata.bind(this)),bn(e,"error",this.onerror.bind(this)),bn(e,"close",this.onclose.bind(this)),bn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){tu(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let i=this.nsps[e];return i?this._autoConnect&&!i.active&&i.connect():(i=new rx(this,e,n),this.nsps[e]=i),i}_destroy(e){const n=Object.keys(this.nsps);for(const i of n)if(this.nsps[i].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let i=0;i<n.length;i++)this.engine.write(n[i],e.options)}
205cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,n){var i;this.cleanup(),(i=this.engine)===null||i===void 0||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(a=>{a?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",a)):e.onreconnect()}))},n);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const go={};function Pl(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=NR(t,e.path||"/socket.io"),i=n.source,a=n.id,l=n.path,u=go[a]&&l in go[a].nsps,d=e.forceNew||e["force new connection"]||e.multiplex===!1||u;let f;return d?f=new af(i,e):(go[a]||(go[a]=new af(i,e)),f=go[a]),n.query&&!e.query&&(e.query=n.queryKey),f.socket(n.path,e)}Object.assign(Pl,{Manager:af,Socket:rx,io:Pl,connect:Pl});const $R=250;function Vy(t,e){var n;const i=(n=t.token)!==null&&n!==void 0?n:Or(),a={app_id:t.appId,token:i};i||(a.anonymous_id=Bl());const l=Pl(t.serverUrl,{path:t.mountPath,transports:t.transports,query:a});return l.on("connect",async()=>{var u;return console.log("connect",l.id),(u=e.connect)===null||u===void 0?void 0:u.call(e)}),l.on("update_model",async u=>{var d;return(d=e.update_model)===null||d===void 0?void 0:d.call(e,u)}),l.on("error",async u=>{var d;return(d=e.error)===null||d===void 0?void 0:d.call(e,u)}),l.on("connect_error",async u=>{var d;return console.error("connect_error",u),(d=e.error)===null||d===void 0?void 0:d.call(e,u)}),l}function WR({config:t}){let e={...t};const n={},i={},a={connect:async()=>{const S=[];Object.keys(n).forEach(A=>{const P=w(A);P.length!==0&&(p(A),P.forEach(({connect:L})=>{const I=async()=>L==null?void 0:L();S.push(I())}))}),await Promise.all(S)},update_model:async S=>{const P=w(S.room).map(L=>{var I;return(I=L.update_model)===null||I===void 0?void 0:I.call(L,S)});await Promise.all(P)},error:async S=>{console.error("error",S);const A=Object.values(n).flat().map(P=>{var L;return(L=P.error)===null||L===void 0?void 0:L.call(P,S)});await Promise.all(A)}};let l=Vy(t,a);function u(){d()}function d(){T(),l&&l.disconnect()}function f(S){u(),e={...e,...S},l=Vy(e,a)}function p(S){l.emit("join",S)}function g(S){l.emit("leave",S)}async function y(S,A){var P;const L=JSON.stringify(A);return(P=a.update_model)===null||P===void 0?void 0:P.call(a,{room:S,data:L})}function w(S){var A;return(A=n[S])!==null&&A!==void 0?A:[]}function x(S){const A=i[S];A&&(clearTimeout(A),delete i[S])}
205function T(){Object.keys(i).forEach(S=>{var A,P;clearTimeout(i[S]),delete i[S],((P=(A=n[S])===null||A===void 0?void 0:A.length)!==null&&P!==void 0?P:0)===0&&delete n[S]})}function E(S){x(S),i[S]=setTimeout(()=>{var A,P;delete i[S],!(((P=(A=n[S])===null||A===void 0?void 0:A.length)!==null&&P!==void 0?P:0)>0)&&(g(S),delete n[S])},$R)}return{socket:l,subscribeToRoom:(S,A)=>{n[S]?x(S):(p(S),n[S]=[]),n[S].push(A);let P=!1;return()=>{var L,I;P||(P=!0,n[S]=(I=(L=n[S])===null||L===void 0?void 0:L.filter(z=>z!==A))!==null&&I!==void 0?I:[],n[S].length===0&&E(S))}},updateConfig:f,updateModel:y,disconnect:d}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(` 206 PartySocket requires a global 'EventTarget' class to be available! 207 You can polyfill this global by adding this to your code before any partysocket imports: 208 209 \`\`\` 210 import 'partysocket/event-target-polyfill'; 211 \`\`\` 212 Please file an issue at https://github.com/partykit/partykit if you're still having trouble. 213`);var sx=class extends Event{constructor(e,n){super("error",n);Be(this,"message");Be(this,"error");this.message=e.message,this.error=e}},ix=class extends Event{constructor(e=1e3,n="",i){super("close",i);Be(this,"code");Be(this,"reason");Be(this,"wasClean",!0);this.code=e,this.reason=n}},wd={Event,ErrorEvent:sx,CloseEvent:ix};function HR(t,e){if(!t)throw new Error(e)}function qR(t){return new t.constructor(t.type,t)}function KR(t){return"data"in t?new MessageEvent(t.type,t):"code"in t||"reason"in t?new ix(t.code||1999,t.reason||"unknown reason",t):"error"in t?new sx(t.error,t):new Event(t.type,t)}var v0,QR=typeof process<"u"&&typeof((v0=process.versions)==null?void 0:v0.node)<"u"&&typeof document>"u",ml=QR?KR:qR,Zr={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},zy=!1,GR=class ts extends EventTarget{constructor(n,i,a={}){super();Be(this,"_ws");Be(this,"_retryCount",-1);Be(this,"_uptimeTimeout");Be(this,"_connectTimeout");Be(this,"_shouldReconnect",!0);Be(this,"_connectLock",!1);Be(this,"_binaryType","blob");Be(this,"_closeCalled",!1);Be(this,"_messageQueue",[]);Be(this,"_url");Be(this,"_protocols");Be(this,"_options");Be(this,"onclose",null);Be(this,"onerror",null);Be(this,"onmessage",null);Be(this,"onopen",null);Be(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:i=Zr.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),i),HR(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(a=>{var l;return(l=this._ws)==null?void 0:l.send(a)}),this._messageQueue=[],this.onopen&&this.onopen(n),this.dispatchEvent(ml(n))});Be(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(ml(n))});Be(this,"_handleError",n=>{this._debug("error event",n.message),this._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(n),this._debug("exec error listeners"),this.dispatchEvent(ml(n)),this._connect()});Be(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(ml(n))});this._url=n,this._protocols=i,this._options=a,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return ts.CONNECTING}get OPEN(){return ts.OPEN}get CLOSING(){return ts.CLOSING}get CLOSED(){return ts.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((i,a)=>(typeof a=="string"?i+=a.length:a instanceof Blob?i+=a.size:i+=a.byteLength,i),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?ts.CLOSED:ts.
213CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(n=1e3,i){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(n,i)}reconnect(n,i){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,i),this._connect())}send(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{const{maxEnqueuedMessages:i=Zr.maxEnqueuedMessages}=this._options;this._messageQueue.length<i&&(this._debug("enqueue",n),this._messageQueue.push(n))}}_debug(...n){this._options.debug&&console.log.apply(console,["RWS>",...n])}_getNextDelay(){const{reconnectionDelayGrowFactor:n=Zr.reconnectionDelayGrowFactor,minReconnectionDelay:i=Zr.minReconnectionDelay,maxReconnectionDelay:a=Zr.maxReconnectionDelay}=this._options;let l=0;return this._retryCount>0&&(l=i*Math.pow(n,this._retryCount-1),l>a&&(l=a)),this._debug("next delay",l),l}_wait(){return new Promise(n=>{setTimeout(n,this._getNextDelay())})}_getNextProtocols(n){if(!n)return Promise.resolve(null);if(typeof n=="string"||Array.isArray(n))return Promise.resolve(n);if(typeof n=="function"){const i=n();if(!i)return Promise.resolve(null);if(typeof i=="string"||Array.isArray(i))return Promise.resolve(i);if(i.then)return i}throw Error("Invalid protocols")}_getNextUrl(n){if(typeof n=="string")return Promise.resolve(n);if(typeof n=="function"){const i=n();if(typeof i=="string")return Promise.resolve(i);if(i.then)return i}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
213const{maxRetries:n=Zr.maxRetries,connectionTimeout:i=Zr.connectionTimeout}=this._options;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([a,l])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!zy&&(console.error(`â¼ï¸ No WebSocket implementation available. You should define options.WebSocket. 214 215For example, if you're using node.js, run \`npm install ws\`, and then in your code: 216 217import PartySocket from 'partysocket'; 218import WS from 'ws'; 219 220const partysocket = new PartySocket({ 221 host: "127.0.0.1:1999", 222 room: "test-room", 223 WebSocket: WS 224}); 225 226`),zy=!0);const u=this._options.WebSocket||WebSocket;this._debug("connect",{url:a,protocols:l}),this._ws=l?new u(a,l):new u(a),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),i)}).catch(a=>{this._connectLock=!1,this._handleError(new wd.ErrorEvent(Error(a.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new wd.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,i){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,i),this._handleClose(new wd.CloseEvent(n,i,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};/*! 227 * Reconnecting WebSocket 228 * by Pedro Ladaria <[email protected]> 229 * https://github.com/pladaria/reconnecting-websocket 230 * License MIT 231 */const XR=1e3,YR=3e3,JR=new Set([405,409,422,503]),ZR=new Set([400,403,404]);function eA(t){const e=t&&typeof t=="object"?t.status:void 0;return typeof e=="number"?e:void 0}function tA(t){return t instanceof Error?t:new Error(String(t))}class nA{constructor(e,n,i,a,l){var u;this.onClose=l,this.listeners=new Set,this.heartbeat=null,this.closed=!1,this.id=(u=a==null?void 0:a.id)!==null&&u!==void 0?u:crypto.randomUUID();let d=i.transport==="proxy";const f=async()=>{var w;if(this.closed)throw new Error("Actor connection is closed");if(!d)try{const{websocket_url:x,token:T}=await i.mintConnectionToken(e,n,this.id),E=x.includes("?")?"&":"?";return`${x}${E}token=${encodeURIComponent(T)}`}catch(x){const T=eA(x);if(!(i.transport!=="direct"&&T!==void 0&&JR.has(T))){T!==void 0&&ZR.has(T)&&this.close();try{(w=i.onMintError)===null||w===void 0||w.call(i,tA(x))}catch{}throw x}d=!0}return sA(i.host,e,n,this.id,i.appId,i.getAuthToken(),i.functionsVersion)},p=new GR(f);this.ws=p;let g=Date.now();const y=()=>{g=Date.now()};p.addEventListener("open",y),p.addEventListener("message",w=>{y();let x;try{x=JSON.parse(w.data)}catch{return}if((x&&typeof x=="object"?x.type:void 0)!=="__pong")for(const E of this.listeners)E(x)}),this.heartbeat=setInterval(()=>{if(Date.now()-g>YR){y(),p.readyState===p.OPEN&&p.reconnect();return}try{p.send(JSON.stringify({type:"__ping"}))}catch{}},XR)}subscribe(e){return this.listeners.add(e),{unsubscribe:()=>{this.listeners.delete(e)}}}send(e){this.closed||this.ws.send(JSON.stringify(e))}close(){this.closed||(this.closed=!0,this.heartbeat&&(clearInterval(this.heartbeat),this.heartbeat=null),this.listeners.clear(),this.ws.close(),this.onClose())}}function rA(t,e,n,i){let a=null;return{connect(l){if(a)return a;const u=new nA(t,e,n,l,()=>{i.delete(u),a===u&&(a=null)});return a=u,i.add(u),u}}}function sA(t,e,n,i,a,l,u){let d=t.replace(/^(http|https|ws|wss):\/\//,"");d.endsWith("/")&&(d=d.slice(0,-1));const f=d.startsWith("localhost:")||d.startsWith("127.0.0.1:")||d.startsWith("192.168.")||d.startsWith("10.")||d.startsWith("172.")&&d.split(".")[1]>="16"&&d.split(".")[1]<="31"||d.startsWith("[::ffff:7f00:1]:"),p=new URLSearchParams([["_pk",i],["app_id",a],["handler",e]]);return l&&p.append("token",l),u&&p.append("fv",u),`${f?"ws":"wss"}://${d}
231/parties/${e}/${n}?${p}`}function iA(t,e){return t&&!t.startsWith("/")?t:e??t}function oA(t){const e=new Set;return{module:new Proxy({},{get(i,a){if(!(typeof a!="string"||a==="then"))return l=>rA(a,l,t,e)}}),closeAll:()=>{for(const i of[...e])i.close()}}}function aA(t){var e,n,i,a;const{serverUrl:l="https://base44.app",appId:u,analytics:d,token:f,serviceToken:p,requiresAuth:g=!1,appBaseUrl:y,options:w,functionsVersion:x,headers:T}=t,E=typeof y=="string"?y:"",k={serverUrl:l,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:u,token:f};let S=null;const A=()=>(S||(S=WR({config:k})),S),P={...T,"X-App-Id":String(u)},L=x?{...P,"Base44-Functions-Version":x}:P,I=Ys({baseURL:`${l}/api`,headers:P,token:f,onError:w==null?void 0:w.onError}),z=Ys({baseURL:`${l}/api`,headers:L,token:f,interceptResponses:!1,onError:w==null?void 0:w.onError}),X={...P,...f?{"on-behalf-of":`Bearer ${f}`}:{}},B=Ys({baseURL:`${l}/api`,headers:X,token:p,onError:w==null?void 0:w.onError}),Z=Ys({baseURL:`${l}/api`,headers:L,token:p,interceptResponses:!1}),ue=Ys({baseURL:`${l}/api`,headers:P}),be=UP(I,z,u,{appBaseUrl:E,token:f});if(typeof window<"u"){const fe=f||Or();fe&&be.setToken(fe)}const Ae=oA({appId:u,host:iA(l,typeof window<"u"?(e=window.location)===null||e===void 0?void 0:e.origin:void 0),functionsVersion:x,getAuthToken:()=>f||Or(),mintConnectionToken:async(fe,le,K)=>{const se=f||Or();return await ue.post(`/apps/${u}/actors/${encodeURIComponent(fe)}/connection-token`,{room:le,connection_id:K},{headers:{...se?{Authorization:`Bearer ${se}`}:{},...x?{"Base44-Functions-Version":x}:{}}})},transport:w==null?void 0:w.actorsTransport,onMintError:w==null?void 0:w.onError}),Le={entities:Ay({axios:I,appId:u,getSocket:A}),integrations:Ny(I,u),connectors:HP(I,u),auth:be,functions:Oy(z,u,{getAuthHeaders:()=>{const fe={},le=f||Or();return le&&(fe.Authorization=`Bearer ${le}`),fe},baseURL:(n=z.defaults)===null||n===void 0?void 0:n.baseURL}),agents:Ly({axios:I,getSocket:A,appId:u,serverUrl:l,token:f}),aiGateway:Dy({serverUrl:l,token:f,appId:u}),appLogs:jy(I,u),app:GP(I,u),users:XP(I,u),analytics:TP({axiosClient:I,serverUrl:l,appId:u,userAuthModule:be,enabled:(i=d==null?void 0:d.enabled)!==null&&i!==void 0?i:!0}),actors:Ae.module,cleanup:()=>{Le.analytics.cleanup(),Ae.closeAll(),S&&S.disconnect()}},Te={entities:Ay({axios:B,appId:u,getSocket:A}),integrations:Ny(B,u),sso:VP(B,u),connectors:$P(B,u),functions:Oy(Z,u,{getAuthHeaders:()=>{const fe={};return p&&(fe.Authorization=`Bearer ${p}`),fe},baseURL:(a=Z.defaults)===null||a===void 0?void 0:a.baseURL}),agents:Ly({axios:B,getSocket:A,appId:u,serverUrl:l,token:f}),aiGateway:Dy({serverUrl:l,token:p,appId:u}),appLogs:jy(B,u),cleanup:()=>{S&&S.disconnect()}};return g&&typeof window<"u"&&setTimeout(async()=>{try{await Le.auth.isAuthenticated()||Le.auth.redirectToLogin(window.location.href)}catch(fe){console.error("Authentication check failed:",fe),Le.auth.redirectToLogin(window.location.href)}},0),{...Le,fetchWithAuth:KP({axios:I,serviceRoleAxios:B,appId:String(u),serverUrl:l,functionsVersion:x,platformHeaders:T}),setToken(fe){Le.auth.setToken(fe),S&&S.updateConfig({token:fe}),k.token=fe},getConfig(){return{serverUrl:l,appId:u,requiresAuth:g}},get asServiceRole(){if(!p)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return Te}}}const ox=typeof window>"u",lA=ox?{localStorage:new Map}:window,To=lA.localStorage,uA=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase(),Xs=(t,{defaultValue:e=void 0,removeFromUrl:n=!1}={})=>{if(ox)return e;const i=`base44_${uA(t)}`,a=new URLSearchParams(window.location.search),l=a.get(t);if(n){a.delete(t);const d=`${window.location.pathname}${a.toString()?`?${a.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}if(l)return To.setItem(i,l),l;if(e)return To.setItem(i,e),e;const u=To.getItem(i);return u||null},cA=()=>(Xs("clear_access_token")==="true"&&(To.removeItem("base44_access_token"),To.removeItem("token")),{appId:Xs("app_id",{defaultValue:"6a01ffcb4bdfed7f8ac1fde8"}),token:Xs("access_token",{removeFromUrl:!0}),fromUrl:Xs("from_url",{defaultValue:window.location.href}),functionsVersion:Xs("functions_version",{defaultValue:"prod"}),appBaseUrl:Xs("app_base_url",{defaultValue:void 0})}),So={...cA()},{appId:dA,token:fA,functionsVersion:hA,appBaseUrl:pA}=So,Js=aA({appId:dA,token:fA,functionsVersion:hA,serverUrl:"",requiresAuth:!1,appBaseUrl:pA});function mA({}){var a;const e=pw().pathname.substring(1),{data:n,isFetched:i}=p_({queryKey:["user"],queryFn:async()=>{try{return{user:await Js.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return b.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:b.jsx("div",{className:"max-w-md w-full",children:b.jsxs("div",{className:"text-center space-y-6",children:[b.jsxs("div",{className:"space-y-2",children:[b.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),b.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),b.jsxs("div",{className:"space-y-3",children:[b.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),b.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",b.jsxs("span",{className:"font-medium text-slate-700",children:['"',e,'"']})," could not be found in this application."]})]}),i&&n.isAuthenticated&&((a=n.user)==null?void 0:a.role)==="admin"&&b.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:b.jsxs("div",{className:"flex items-start space-x-3",children:[b.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:b.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),b.jsxs("div",{className:"text-left space-y-1",children:[b.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),b.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),b.jsx("div",{className:"pt-6",children:b.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[b.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const ax=j.createContext(),gA=({children:t})=>{const[e,n]=j.useState(null),[i,a]=j.useState(!1),[l,u]=j.useState(!0),[d,f]=j.useState(!0),[p,g]=j.useState(null),[y,w]=j.useState(!1),[x,T]=j.useState(null);j.useEffect(()=>{E()},[]);const E=async()=>{var P,L;try{f(!0),g(null);const I=Ys({baseURL:"/api/apps/public",headers:{"X-App-Id":So.appId},token:So.token,interceptResponses:!0});try{const z=await I.get(`/prod/public-settings/by-id/${So.appId}`);T(z),So.token?await k():(u(!1),a(!1),w(!0)),f(!1)}catch(z){if(console.error("App state check failed:",z),z.status===403&&((L=(P=z.data)==null?void 0:P.extra_data)!=null&&L.reason)){const X=z.data.extra_data.reason;g(X==="auth_required"?{type:"auth_required",message:"Authentication required"}:X==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:X,message:z.message})}else g({type:"unknown",message:z.message||"Failed to load app"});f(!1),u(!1)}}catch(I){console.error("Unexpected error:",I),g({type:"unknown",message:I.message||"An unexpected error occurred"}),f(!1),u(!1)}},k=async()=>{try{u(!0);const P=await Js.auth.me();n(P),a(!0),u(!1),w(!0)}catch(P){console.error("User auth check failed:",P),u(!1),a(!1),w(!0),(P.status===401||P.status===403)&&g({type:"auth_required",message:"Authentication required"})}},S=(P=!0)=>{n(null),a(!1),P?Js.auth.logout(window.location.href):Js.auth.logout()},A=()=>{Js.auth.redirectToLogin(window.location.href)};return b.jsx(ax.Provider,{value:{user:e,isAuthenticated:i,isLoadingAuth:l,isLoadingPublicSettings:d,authError:p,appPublicSettings:x,authChecked:y,logout:S,navigateToLogin:A,checkUserAuth:k,checkAppState:E},children:t})},yA=()=>{const t=j.useContext(ax);if(!t)throw new Error("useAuth must be used within an AuthProvider");return t},vA=()=>b.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:b.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:b.jsxs("div",{className:"text-center",children:[b.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:b.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),b.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),b.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),b.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[b.jsx("p",{children:"If you believe this is an error, you can:"}),b.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[b.jsx("li",{children:"Verify you are logged in with the correct account"}),b.jsx("li",{children:"Contact the app administrator for access"}),b.jsx("li",{children:"Try logging out and back in again"})]})]})]})})});function $y(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function wA(...t){return e=>{let n=!1;const i=t.map(a=>{const l=$y(a,e);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let a=0;a<i.length;a++){const l=i[a];typeof l=="function"?l():$y(t[a],null)}}}}var xA=Symbol.for("react.lazy"),Ul=x0[" use ".trim().toString()];function SA(t){return typeof t=="object"&&t!==null&&"then"in t}function lx(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===xA&&"_payload"in t&&SA(t._payload)}function bA(t){const e=EA(t),n=j.forwardRef((i,a)=>{let{children:l,...u}=i;lx(l)&&typeof Ul=="function"&&(l=Ul(l._payload));const d=j.Children.toArray(l),f=d.find(TA);if(f){const p=f.props.children,g=d.map(y=>y===f?j.Children.count(p)>1?j.Children.only(null):j.isValidElement(p)?p.props.children:null:y);return b.jsx(e,{...u,ref:a,children:j.isValidElement(p)?j.cloneElement(p,void 0,g):null})}return b.jsx(e,{...u,ref:a,children:l})});return n.displayName=`${t}.Slot`,n}var kA=bA("Slot");function EA(t){const e=j.forwardRef((n,i)=>{let{children:a,...l}=n;if(lx(a)&&typeof Ul=="function"&&(a=Ul(a._payload)),j.isValidElement(a)){const u=PA(a),d=CA(l,a.props);return a.type!==j.Fragment&&(d.ref=i?wA(i,u):u),j.cloneElement(a,d)}return j.Children.count(a)>1?j.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var _A=Symbol("radix.slottable");function TA(t){return j.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===_A}function CA(t,e){const n={...e};for(const i in e){const a=t[i],l=e[i];/^on[A-Z]/.test(i)?a&&l?n[i]=(...d)=>{const f=l(...d);return a(...d),f}:a&&(n[i]=a):i==="style"?n[i]={...a,...l}
231:i==="className"&&(n[i]=[a,l].filter(Boolean).join(" "))}return{...t,...n}}function PA(t){var i,a;let e=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(a=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:a.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}const RA=E0("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring 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 shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),AA=j.forwardRef(({className:t,variant:e,size:n,asChild:i=!1,...a},l)=>{const u=i?kA:"button";return b.jsx(u,{className:Si(RA({variant:e,size:n,className:t})),ref:l,...a})});AA.displayName="Button";const NA=["Neu","Damen","Herren","Kinder","Sale"];function OA({cartCount:t,onBack:e}){return b.jsxs("header",{className:"border-b border-gray-200 bg-white sticky top-0 z-40",children:[b.jsx("div",{className:"bg-black text-white text-xs text-center py-2 tracking-widest font-light",children:"KOSTENLOSER VERSAND AB 50⬠· GRATIS RÃCKSENDUNG"}),b.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 flex items-center justify-between h-16 gap-4",children:[e?b.jsxs("button",{onClick:e,className:"flex items-center gap-1 text-sm text-gray-600 hover:text-black transition-colors",children:[b.jsx(uk,{className:"w-4 h-4"}),"Zurück"]}):b.jsx("button",{className:"lg:hidden text-gray-800",children:b.jsx(xk,{className:"w-6 h-6"})}),b.jsx("a",{href:"#",className:"flex-shrink-0 w-28 h-6","aria-label":""}),b.jsx("nav",{className:"hidden lg:flex items-center gap-7",children:NA.map(n=>b.jsxs("a",{href:"#",className:"text-sm font-medium text-gray-700 hover:text-black tracking-wide uppercase transition-colors relative group",children:[n,b.jsx("span",{className:"absolute -bottom-1 left-0 w-0 h-0.5 bg-black group-hover:w-full transition-all duration-200"})]},n))}),b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx("button",{className:"text-gray-700 hover:text-black transition-colors hidden sm:block",children:b.jsx(Rk,{className:"w-5 h-5"})}),b.jsx("button",{className:"text-gray-700 hover:text-black transition-colors hidden sm:block",children:b.jsx(Ik,{className:"w-5 h-5"})}),b.jsx("button",{className:"text-gray-700 hover:text-black transition-colors hidden sm:block",children:b.jsx(Cf,{className:"w-5 h-5"})}),b.jsxs("button",{className:"relative text-gray-700 hover:text-black transition-colors",children:[b.jsx(Ql,{className:"w-5 h-5"}),t>0&&b.jsx("span",{className:"absolute -top-2 -right-2 bg-black text-white text-xs w-4 h-4 rounded-full flex items-center justify-center font-bold",children:t})]})]})]})]})}const Wy=[{id:1,name:"WeiÃes Basic T-Shirt",brand:"",price:"9,99 â¬",priceNum:9.99,image:"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?w=600&h=750&fit=crop",tag:null,description:"Schlichtes weiÃes T-Shirt aus weicher Baumwolle. Regul
231ärer Schnitt, Rundhalsausschnitt.",material:"100% Baumwolle",origin:"Bangladesch",labels:"Keine Zertifizierungen"},{id:2,name:"WeiÃes Slim Fit T-Shirt",brand:"",price:"12,99 â¬",priceNum:12.99,image:"https://images.unsplash.com/photo-1581655353564-df123a1eb820?w=600&h=750&fit=crop",tag:"NEU",description:"Tailliertes weiÃes T-Shirt für einen sportlichen Look.",material:"95% Baumwolle, 5% Elasthan",origin:"Türkei",labels:"Better Cotton Initiative"},{id:3,name:"WeiÃes Oversized T-Shirt",brand:"",price:"14,99 â¬",priceNum:14.99,image:"https://images.unsplash.com/photo-1622445275463-afa2ab738c34?w=600&h=750&fit=crop",tag:"NEU",description:"Locker sitzendes weiÃes Oversized-Shirt im Trendy-Look.",material:"100% Baumwolle",origin:"China",labels:"Keine Zertifizierungen"},{id:4,name:"WeiÃes Premium T-Shirt",brand:"",price:"29,99 â¬",priceNum:29.99,image:"https://images.unsplash.com/photo-1651761179569-4ba2aa054997?w=600&h=750&fit=crop",tag:"PREMIUM",description:"Aus feinstem Pima-Baumwolle gefertigt, extra weich und langlebig.",material:"100% Pima-Baumwolle",origin:"Peru",labels:"GOTS, Fair Trade"},{id:5,name:"WeiÃes Pocket T-Shirt",brand:"",price:"11,99 â¬",priceNum:11.99,image:"https://images.unsplash.com/photo-1574180566232-aaad1b5b8450?w=600&h=750&fit=crop",tag:null,description:"WeiÃes T-Shirt mit kleiner Brusttasche, lässiger Alltagslook.",material:"100% Baumwolle",origin:"Portugal",labels:"Oeko-Tex"},{id:6,name:"WeiÃes T-Shirt SALE",brand:"",price:"4,99 â¬",originalPrice:"12,99 â¬",priceNum:4.99,image:"https://images.unsplash.com/photo-1576417677416-6ca3adfb5435?w=600&h=750&fit=crop",tag:"SALE",description:"Klassisches weiÃes Rundhals-T-Shirt, jetzt reduziert.",material:"100% Baumwolle",origin:"Bangladesch",labels:"Keine Zertifizierungen"}];function LA({onSelect:t}){const[e,n]=j.useState({}),i=(a,l)=>{a.stopPropagation(),n(u=>({...u,[l]:!u[l]}))};return b.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 py-8",children:[b.jsxs("div",{className:"text-xs text-gray-500 mb-4 flex items-center gap-1.5",children:[b.jsx("span",{children:"Startseite"}),b.jsx("span",{children:"/"}),b.jsx("span",{children:"Damen & Herren"}),b.jsx("span",{children:"/"}),b.jsx("span",{className:"text-black font-medium",children:"WeiÃe T-Shirts"})]}),b.jsxs("div",{className:"flex items-end justify-between mb-6",children:[b.jsxs("div",{children:[b.jsx("h1",{className:"text-3xl font-black text-black tracking-tight",children:"WeiÃe T-Shirts"}),b.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:[Wy.length," Artikel"]})]}),b.jsxs("select",{className:"border border-gray-300 rounded px-3 py-1.5 text-sm text-gray-700 focus:outline-none",children:[b.jsx("option",{children:"Beliebtheit"}),b.jsx("option",{children:"Preis aufsteigend"}),b.jsx("option",{children:"Preis absteigend"}),b.jsx("option",{children:"Neu"})]})]}),b.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4",children:Wy.map(a=>b.jsxs("div",{className:"group cursor-pointer",onClick:()=>t(a),children:[b.jsxs("div",{className:"relative aspect-[3/4] overflow-hidden bg-gray-100",children:[b.jsx("img",{src:a.image,alt:a.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),a.tag&&b.jsx("span",{className:`absolute top-2 left-2 text-xs font-bold px-2 py-0.5 tracking-wider 232 ${a.tag==="SALE"?"bg-red-600 text-white":a.tag==="PREMIUM"?"bg-black text-white":"bg-white text-black border border-gray-200"}`,children:a.tag}),b.jsx("button",{onClick:l=>i(l,a.id),className:"absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity",children:b.jsx(Cf,{className:`w-5 h-5 ${e[a.id]?"fill-red-500 text-red-500":"fill-white/60 text-white"}`})})]}),b.jsxs("div",{className:"pt-3 space-y-0.5",children:[b.jsx("p",{className:"text-xs text-gray-500 uppercase tracking-wider font-medium",children:a.brand}),b.jsx("p",{className:"text-sm font-medium text-black leading-snug",children:a.name}),b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("p",{className:`text-sm font-semibold ${a.originalPrice?"text-red-600":"text-black"}`,children:a.price}),a.originalPrice&&b.jsx("p",{className:"text-sm text-gray-400 line-through",children:a.originalPrice})]})]})]},a.id))})]})}const Qf=j.createContext({});function Gf(t){const e=j.useRef(null);return e.current===null&&(e.current=t()),e.current}const ru=j.createContext(null),Xf=j.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class DA extends j.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function jA({children:t,isPresent:e}){const n=j.useId(),i=j.useRef(null),a=j.useRef({width:0,height:0,top:0,left:0}),{nonce:l}=j.useContext(Xf);return j.useInsertionEffect(()=>{const{width:u,height:d,top:f,left:p}=a.current;if(e||!i.current||!u||!d)return;i.current.dataset.motionPopId=n;const g=document.createElement("style");return l&&(g.nonce=l),document.head.appendChild(g),g.sheet&&g.sheet.insertRule(` 233 [data-motion-pop-id="${n}"] { 234 position: absolute !important; 235 width: ${u}px !important; 236 height: ${d}px !important; 237 top: ${f}px !important; 238 left: ${p}px !important; 239 } 240 `),()=>{document.head.removeChild(g)}},[e]),b.jsx(DA,{isPresent:e,childRef:i,sizeRef:a,children:j.cloneElement(t,{ref:i})})}const MA=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:a,presenceAffectsLayout:l,mode:u})=>{const d=Gf(IA),f=j.useId(),p=j.useCallback(y=>{d.set(y,!0);for(const w of d.values())if(!w)return;i&&i()},[d,i]),g=j.useMemo(()=>({id:f,initial:e,isPresent:n,custom:a,onExitComplete:p,register:y=>(d.set(y,!1),()=>d.delete(y))}),l?[Math.random(),p]:[n,p]);return j.useMemo(()=>{d.forEach((y,w)=>d.set(w,!1))},[n]),j.useEffect(()=>{!n&&!d.size&&i&&i()},[n]),u==="popLayout"&&(t=b.jsx(jA,{isPresent:n,children:t})),b.jsx(ru.Provider,{value:g,children:t})};function IA(){return new Map}function ux(t=!0){const e=j.useContext(ru);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:a}=e,l=j.useId();j.useEffect(()=>{t&&a(l)},[t]);const u=j.useCallback(()=>t&&i&&i(l),[l,i,t]);return!n&&i?[!1,u]:[!0]}const gl=t=>t.key||"";function Hy(t){const e=[];
vendor: 29,233 bytes, line 240
240return j.Children.forEach(t,n=>{j.isValidElement(n)&&e.push(n)}),e}const Yf=typeof window<"u",cx=Yf?j.useLayoutEffect:j.useEffect,lf=({children:t,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:a=!0,mode:l="sync",propagate:u=!1})=>{const[d,f]=ux(u),p=j.useMemo(()=>Hy(t),[t]),g=u&&!d?[]:p.map(gl),y=j.useRef(!0),w=j.useRef(p),x=Gf(()=>new Map),[T,E]=j.useState(p),[k,S]=j.useState(p);cx(()=>{y.current=!1,w.current=p;for(let L=0;L<k.length;L++){const I=gl(k[L]);g.includes(I)?x.delete(I):x.get(I)!==!0&&x.set(I,!1)}},[k,g.length,g.join("-")]);const A=[];if(p!==T){let L=[...p];for(let I=0;I<k.length;I++){const z=k[I],X=gl(z);g.includes(X)||(L.splice(I,0,z),A.push(z))}l==="wait"&&A.length&&(L=A),S(Hy(L)),E(p);return}const{forceRender:P}=j.useContext(Qf);return b.jsx(b.Fragment,{children:k.map(L=>{const I=gl(L),z=u&&!d?!1:p===k||g.includes(I),X=()=>{if(x.has(I))x.set(I,!0);else return;let B=!0;x.forEach(Z=>{Z||(B=!1)}),B&&(P==null||P(),S(w.current),u&&(f==null||f()),i&&i())};return b.jsx(MA,{isPresent:z,initial:!y.current||n?void 0:!1,custom:z?void 0:e,presenceAffectsLayout:a,mode:l,onExitComplete:z?void 0:X,children:L},I)})})},Ht=t=>t;let dx=Ht;function Jf(t){let e;return()=>(e===void 0&&(e=t()),e)}const vi=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Gn=t=>t*1e3,Xn=t=>t/1e3,FA={useManualTiming:!1};function BA(t){let e=new Set,n=new Set,i=!1,a=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function d(p){l.has(p)&&(f.schedule(p),t()),p(u)}const f={schedule:(p,g=!1,y=!1)=>{const x=y&&i?e:n;return g&&l.add(p),x.has(p)||x.add(p),p},cancel:p=>{n.delete(p),l.delete(p)},process:p=>{if(u=p,i){a=!0;return}i=!0,[e,n]=[n,e],e.forEach(d),e.clear(),i=!1,a&&(a=!1,f.process(p))}};return f}const yl=["read","resolveKeyframes","update","preRender","render","postRender"],UA=40;function fx(t,e){let n=!1,i=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=yl.reduce((S,A)=>(S[A]=BA(l),S),{}),{read:d,resolveKeyframes:f,update:p,preRender:g,render:y,postRender:w}=u,x=()=>{const S=performance.now();n=!1,a.delta=i?1e3/60:Math.max(Math.min(S-a.timestamp,UA),1),a.timestamp=S,a.isProcessing=!0,d.process(a),f.process(a),p.process(a),g.process(a),y.process(a),w.process(a),a.isProcessing=!1,n&&e&&(i=!1,t(x))},T=()=>{n=!0,i=!0,a.isProcessing||t(x)};return{schedule:yl.reduce((S,A)=>{const P=u[A];return S[A]=(L,I=!1,z=!1)=>(n||T(),P.schedule(L,I,z)),S},{}),cancel:S=>{for(let A=0;A<yl.length;A++)u[yl[A]].cancel(S)},state:a,steps:u}}const{schedule:ze,cancel:jr,state:gt,steps:xd}=fx(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ht,!0),hx=j.createContext({strict:!1}),qy={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"]},wi={};for(const t in qy)wi[t]={isEnabled:e=>qy[t].some(n=>!!e[n])};function VA(t){for(const e in t)wi[e]={...wi[e],...t[e]}}const zA=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 Vl(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||zA.has(t)}let px=t=>!Vl(t);function $A(t){t&&(px=e=>e.startsWith("on")?!Vl(e):t(e))}try{$A(require("@emotion/is-prop-valid").default)}catch{}function WA(t,e,n){const i={};for(const a in t)a==="values"&&typeof t.values=="object"||(px(a)||n===!0&&Vl(a)||!e&&!Vl(a)||t.draggable&&a.startsWith("onDrag"))&&(i[a]=t[a]);return i}function HA(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...i)=>t(...i);return new Proxy(n,{get:(i,a)=>a==="create"?t:(e.has(a)||e.set(a,t(a)),e.get(a))})}const su=j.createContext({});function Do(t){return typeof t=="string"||Array.isArray(t)}function iu(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Zf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eh=["initial",...Zf];function ou(t){return iu(t.animate)||eh.some(e=>Do(t[e]))}function mx(t){return!!(ou(t)||t.variants)}function qA(t,e){if(ou(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Do(n)?n:void 0,animate:Do(i)?i:void 0}}return t.inherit!==!1?e:{}}function KA(t){const{initial:e,animate:n}=qA(t,j.useContext(su));return j.useMemo(()=>({initial:e,animate:n}),[Ky(e),Ky(n)])}function Ky(t){return Array.isArray(t)?t.join(" "):t}const QA=Symbol.for("motionComponentSymbol");function Zs(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function GA(t,e,n){return j.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):Zs(n)&&(n.current=i))},[e])}const th=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),XA="framerAppearId",gx="data-"+th(XA),{schedule:nh}=fx(queueMicrotask,!1),yx=j.createContext({});function YA(t,e,n,i,a){var l,u;const{visualElement:d}=j.useContext(su),f=j.useContext(hx),p=j.useContext(ru),g=j.useContext(Xf).reducedMotion,y=j.useRef(null);i=i||f.renderer,!y.current&&i&&(y.current=i(t,{visualState:e,parent:d,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:g}));const w=y.current,x=j.useContext(yx);w&&!w.projection&&a&&(w.type==="html"||w.type==="svg")&&JA(y.current,n,a,x);const T=j.useRef(!1);j.useInsertionEffect(()=>{w&&T.current&&w.update(n,p)});const E=n[gx],k=j.useRef(!!E&&!(!((l=window.MotionHandoffIsComplete)===null||l===void 0)&&l.call(window,E))&&((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,E)));return cx(()=>{w&&(T.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),nh.render(w.render),k.current&&w.animationState&&w.animationState.animateChanges())}),j.useEffect(()=>{w&&(!k.current&&w.animationState&&w.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,E)}),k.current=!1))}),w}function JA(t,e,n,i){const{layoutId:a,layout:l,drag:u,dragConstraints:d,layoutScroll:f,layoutRoot:p}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:vx(t.parent)),t.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!u||d&&Zs(d),visualElement:t,animationType:typeof l=="string"?l:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:p})}function vx(t){if(t)return t.options.allowProjection!==!1?t.projection:vx(t.parent)}function ZA({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:a}){var l,u;t&&VA(t);function d(p,g){let y;const w={...j.useContext(Xf),...p,layoutId:e2(p)},{isStatic:x}=w,T=KA(p),E=i(p,x);if(!x&&Yf){t2();const k=n2(w);y=k.MeasureLayout,T.visualElement=YA(a,E,w,e,k.ProjectionNode)}return b.jsxs(su.Provider,{value:T,children:[y&&T.visualElement?b.jsx(y,{visualElement:T.visualElement,...w}):null,n(a,p,GA(E,T.visualElement,g),E,x,T.visualElement)]})}d.displayName=`motion.${typeof a=="string"?a:`create(${(u=(l=a.displayName)!==null&&l!==void 0?l:a.name)!==null&&u!==void 0?u:""})`}`;const f=j.forwardRef(d);return f[QA]=a,f}function e2({layoutId:t}){const e=j.useContext(Qf).id;return e&&t!==void 0?e+"-"+t:t}function t2(t,e){j.useContext(hx).strict}function n2(t){const{drag:e,layout:n}=wi;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const r2=["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 rh(t){return typeof t!="string"||t.includes("-")?!1:!!(r2.indexOf(t)>-1||/[A-Z]/u.test(t))}function Qy(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function sh(t,e,n,i){if(typeof e=="function"){const[a,l]=Qy(i);e=e(n!==void 0?n:t.custom,a,l)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[a,l]=Qy(i);e=e(n!==void 0?n:t.custom,a,l)}return e}const uf=t=>Array.isArray(t),s2=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),i2=t=>uf(t)?t[t.length-1]||0:t,Tt=t=>!!(t&&t.getVelocity);function Rl(t){const e=Tt(t)?t.get():t;return s2(e)?e.toValue():e}function o2({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,a,l){const u={latestValues:a2(i,a,l,t),renderState:e()};return n&&(u.onMount=d=>n({props:i,current:d,...u}),u.onUpdate=d=>n(d)),u}const wx=t=>(e,n)=>{const i=j.useContext(su),a=j.useContext(ru),l=()=>o2(t,e,i,a);return n?l():Gf(l)};function a2(t,e,n,i){const a={},l=i(t,{});for(const w in l)a[w]=Rl(l[w]);let{initial:u,animate:d}=t;const f=ou(t),p=mx(t);e&&p&&!f&&t.inherit!==!1&&(u===void 0&&(u=e.initial),d===void 0&&(d=e.animate));let g=n?n.initial===!1:!1;g=g||u===!1;const y=g?d:u;if(y&&typeof y!="boolean"&&!iu(y)){const w=Array.isArray(y)?y:[y];for(let x=0;x<w.length;x++){const T=sh(t,w[x]);if(T){const{transitionEnd:E,transition:k,...S}=T;for(const A in S){let P=S[A];if(Array.isArray(P)){const L=g?P.length-1:0;P=P[L]}P!==null&&(a[A]=P)}for(const A in E)a[A]=E[A]}}}return a}const _i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Es=new Set(_i),xx=t=>e=>typeof e=="string"&&e.startsWith(t),Sx=xx("--"),l2=xx("var(--"),ih=t=>l2(t)?u2.test(t.split("/*")[0].trim()):!1,u2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,bx=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Yn=(t,e,n)=>n>e?e:n<t?t:n,Ti={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},jo={...Ti,transform:t=>Yn(0,1,t)},vl={...Ti,default:1},Go=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),br=Go("deg"),On=Go("%"),me=Go("px"),c2=Go("vh"),d2=Go("vw"),Gy={...On,parse:t=>On.parse(t)/100,transform:t=>On.transform(t*100)},f2={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,radius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,top:me,right:me,bottom:me,left:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,backgroundPositionX:me,backgroundPositionY:me},h2={rotate:br,rotateX:br,rotateY:br,rotateZ:br,scale:vl,scaleX:vl,scaleY:vl,scaleZ:vl,skew:br,skewX:br,skewY:br,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:jo,originX:Gy,originY:Gy,originZ:me},Xy={...Ti,transform:Math.round},oh={...f2,...h2,zIndex:Xy,size:me,fillOpacity:jo,strokeOpacity:jo,numOctaves:Xy},p2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},m2=_i.length;function g2(t,e,n){let i="",a=!0;for(let l=0;l<m2;l++){const u=_i[l],d=t[u];if(d===void 0)continue;let f=!0;if(typeof d=="number"?f=d===(u.startsWith("scale")?1:0):f=parseFloat(d)===0,!f||n){const p=bx(d,oh[u]);if(!f){a=!1;const g=p2[u]||u;i+=`${g}(${p}) `}n&&(e[u]=p)}}return i=i.trim(),n?i=n(e,a?"":i):a&&(i="none"),i}function ah(t,e,n){const{style:i,vars:a,transformOrigin:l}=t;let u=!1,d=!1;for(const f in e){const p=e[f];if(Es.has(f)){u=!0;continue}else if(Sx(f)){a[f]=p;continue}else{const g=bx(p,oh[f]);f.startsWith("origin")?(d=!0,l[f]=g):i[f]=g}}if(e.transform||(u||n?i.transform=g2(e,t.transform,n):i.transform&&(i.transform="none")),d){const{originX:f="50%",originY:p="50%",originZ:g=0}=l;i.transformOrigin=`${f} ${p} ${g}`}}const y2={offset:"stroke-dashoffset",array:"stroke-dasharray"},v2={offset:"strokeDashoffset",array:"strokeDasharray"};function w2(t,e,n=1,i=0,a=!0){t.pathLength=1;const l=a?y2:v2;t[l.offset]=me.transform(-i);const u=me.transform(e),d=me.transform(n);t[l.array]=`${u} ${d}`}function Yy(t,e,n){return typeof t=="string"?t:me.transform(e+n*t)}function x2(t,e,n){const i=Yy(e,t.x,t.width),a=Yy(n,t.y,t.height);return`${i} ${a}`}function lh(t,{attrX:e,attrY:n,attrScale:i,originX:a,originY:l,pathLength:u,pathSpacing:d=1,pathOffset:f=0,...p},g,y){if(ah(t,p,y),g){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:w,style:x,dimensions:T}=t;w.transform&&(T&&(x.transform=w.transform),delete w.transform),T&&(a!==void 0||l!==void 0||x.transform)&&(x.transformOrigin=x2(T,a!==void 0?a:.5,l!==void 0?l:.5)),e!==void 0&&(w.x=e),n!==void 0&&(w.y=n),i!==void 0&&(w.scale=i),u!==void 0&&w2(w,u,d,f,!1)}const uh=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),kx=()=>({...uh(),attrs:{}}),ch=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Ex(t,{style:e,vars:n},i,a){Object.assign(t.style,e,a&&a.getProjectionStyles(i));for(const l in n)t.style.setProperty(l,n[l])}const _x=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 Tx(t,e,n,i){Ex(t,e,void 0,i);for(const a in e.attrs)t.setAttribute(_x.has(a)?a:th(a),e.attrs[a])}const zl={};function S2(t){Object.assign(zl,t)}function Cx(t,{layout:e,layoutId:n}){return Es.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!zl[t]||t==="opacity")}function dh(t,e,n){var i;const{style:a}=t,l={};for(const u in a)(Tt(a[u])||e.style&&Tt(e.style[u])||Cx(u,t)||((i=n==null?void 0:n.getValue(u))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(l[u]=a[u]);return l}function Px(t,e,n){const i=dh(t,e,n);for(const a in t)if(Tt(t[a])||Tt(e[a])){const l=_i.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;i[l]=t[a]}return i}function b2(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const Jy=["x","y","width","height","cx","cy","r"],k2={useVisualState:wx({scrapeMotionValuesFromProps:Px,createRenderState:kx,onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:a})=>{if(!n)return;let l=!!t.drag;if(!l){for(const d in a)if(Es.has(d)){l=!0;break}}if(!l)return;let u=!e;if(e)for(let d=0;d<Jy.length;d++){const f=Jy[d];t[f]!==e[f]&&(u=!0)}u&&ze.read(()=>{b2(n,i),ze.render(()=>{lh(i,a,ch(n.tagName),t.transformTemplate),Tx(n,i)})})}})},E2={useVisualState:wx({scrapeMotionValuesFromProps:dh,createRenderState:uh})};function Rx(t,e,n){for(const i in e)!Tt(e[i])&&!Cx(i,n)&&(t[i]=e[i])}function _2({transformTemplate:t},e){return j.useMemo(()=>{const n=uh();return ah(n,e,t),Object.assign({},n.vars,n.style)},[e])}function T2(t,e){const n=t.style||{},i={};return Rx(i,n,t),Object.assign(i,_2(t,e)),i}function C2(t,e){const n={},i=T2(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}function P2(t,e,n,i){const a=j.useMemo(()=>{const l=kx();return lh(l,e,ch(i),t.transformTemplate),{...l.attrs,style:{...l.style}}},[e]);if(t.style){const l={};Rx(l,t.style,t),a.style={...l,...a.style}}return a}function R2(t=!1){return(n,i,a,{latestValues:l},u)=>{const f=(rh(n)?P2:C2)(i,l,u,n),p=WA(i,typeof n=="string",t),g=n!==j.Fragment?{...p,...f,ref:a}:{},{children:y}=i,w=j.useMemo(()=>Tt(y)?y.get():y,[y]);return j.createElement(n,{...g,children:w})}}function A2(t,e){return function(i,{forwardMotionProps:a}={forwardMotionProps:!1}){const u={...rh(i)?k2:E2,preloadedFeatures:t,useRender:R2(a),createVisualElement:e,Component:i};return ZA(u)}}function Ax(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function au(t,e,n){const i=t.getProps();return sh(i,e,n!==void 0?n:i.custom,t)}const N2=Jf(()=>window.ScrollTimeline!==void 0);class O2{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=n}attachTimeline(e,n){const i=this.animations.map(a=>{if(N2()&&a.attachTimeline)return a.attachTimeline(e);if(typeof n=="function")return n(a)});return()=>{i.forEach((a,l)=>{a&&a(),this.animations[l].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class L2 extends O2{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function fh(t,e){return t?t[e]||t.default||t:void 0}const cf=2e4;function Nx(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<cf;)e+=n,i=t.next(e);return e>=cf?1/0:e}function hh(t){return typeof t=="function"}function Zy(t,e){t.timeline=e,t.onfinish=null}const ph=t=>Array.isArray(t)&&typeof t[0]=="number",D2={linearEasing:void 0};function j2(t,e){const n=Jf(t);return()=>{var i;return(i=D2[e])!==null&&i!==void 0?i:n()}}const $l=j2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ox=(t,e,n=10)=>{let i="";const a=Math.max(Math.round(e/n),2);for(let l=0;l<a;l++)i+=t(vi(0,a-1,l))+", ";return`linear(${i.substring(0,i.length-2)})`};function Lx(t){return!!(typeof t=="function"&&$l()||!t||typeof t=="string"&&(t in df||$l())||ph(t)||Array.isArray(t)&&t.every(Lx))}const bo=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,df={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bo([0,.65,.55,1]),circOut:bo([.55,0,1,.45]),backIn:bo([.31,.01,.66,-.59]),backOut:bo([.33,1.53,.69,.99])};function Dx(t,e){if(t)return typeof t=="function"&&$l()?Ox(t,e):ph(t)?bo(t):Array.isArray(t)?t.map(n=>Dx(n,e)||df.easeOut):df[t]}const wn={x:!1,y:!1};function jx(){return wn.x||wn.y}function M2(t,e,n){var i;if(t instanceof Element)return[t];if(typeof t=="string"){let a=document;const l=(i=void 0)!==null&&i!==void 0?i:a.querySelectorAll(t);return l?Array.from(l):[]}return Array.from(t)}function Mx(t,e){const n=M2(t),i=new AbortController,a={passive:!0,...e,signal:i.signal};return[n,a,()=>i.abort()]}function ev(t){return e=>{e.pointerType==="touch"||jx()||t(e)}}function I2(t,e,n={}){const[i,a,l]=Mx(t,n),u=ev(d=>{const{target:f}=d,p=e(d);if(typeof p!="function"||!f)return;const g=ev(y=>{p(y),f.removeEventListener("pointerleave",g)});f.addEventListener("pointerleave",g,a)});return i.forEach(d=>{d.addEventListener("pointerenter",u,a)}),l}const Ix=(t,e)=>e?t===e?!0:Ix(t,e.parentElement):!1,mh=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,F2=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function B2(t){return F2.has(t.tagName)||t.tabIndex!==-1}const ko=new WeakSet;function tv(t){return e=>{e.key==="Enter"&&t(e)}}function Sd(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const U2=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=tv(()=>{if(ko.has(n))return;Sd(n,"down");const a=tv(()=>{Sd(n,"up")}),l=()=>Sd(n,"cancel");n.addEventListener("keyup",a,e),n.addEventListener("blur",l,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function nv(t){return mh(t)&&!jx()}function V2(t,e,n={}){const[i,a,l]=Mx(t,n),u=d=>{const f=d.currentTarget;if(!nv(d)||ko.has(f))return;ko.add(f);const p=e(d),g=(x,T)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",w),!(!nv(x)||!ko.has(f))&&(ko.delete(f),typeof p=="function"&&p(x,{success:T}))},y=x=>{g(x,n.useGlobalTarget||Ix(f,x.target))},w=x=>{g(x,!1)};window.addEventListener("pointerup",y,a),window.addEventListener("pointercancel",w,a)};return i.forEach(d=>{!B2(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0),(n.useGlobalTarget?window:d).addEventListener("pointerdown",u,a),d.addEventListener("focus",p=>U2(p,a),a)}),l}function z2(t){return t==="x"||t==="y"?wn[t]?null:(wn[t]=!0,()=>{wn[t]=!1}):wn.x||wn.y?null:(wn.x=wn.y=!0,()=>{wn.x=wn.y=!1})}const Fx=new Set(["width","height","top","left","right","bottom",..._i]);let Al;function $2(){Al=void 0}const Ln={now:()=>(Al===void 0&&Ln.set(gt.isProcessing||FA.useManualTiming?gt.timestamp:performance.now()),Al),set:t=>{Al=t,queueMicrotask($2)}};function gh(t,e){t.indexOf(e)===-1&&t.push(e)}function yh(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class vh{constructor(){this.subscriptions=[]}add(e){return gh(this.subscriptions,e),()=>yh(this.subscriptions,e)}notify(e,n,i){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](e,n,i);else for(let l=0;l<a;l++){const u=this.subscriptions[l];u&&u(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Bx(t,e){return e?t*(1e3/e):0}const rv=30,W2=t=>!isNaN(parseFloat(t));class H2{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,a=!0)=>{const l=Ln.now();this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Ln.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=W2(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new vh);const i=this.events[e].add(n);return e==="change"?()=>{i(),ze.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Ln.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>rv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,rv);return Bx(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(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(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Mo(t,e){return new H2(t,e)}function q2(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Mo(n))}function K2(t,e){const n=au(t,e);let{transitionEnd:i={},transition:a={},...l}=n||{};l={...l,...i};for(const u in l){const d=i2(l[u]);q2(t,u,d)}}function Q2(t){return!!(Tt(t)&&t.add)}function ff(t,e){const n=t.getValue("willChange");if(Q2(n))return n.add(e)}function Ux(t){return t.props[gx]}const Vx=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,G2=1e-7,X2=12;function Y2(t,e,n,i,a){let l,u,d=0;do u=e+(n-e)/2,l=Vx(u,i,a)-t,l>0?n=u:e=u;while(Math.abs(l)>G2&&++d<X2);return u}function Xo(t,e,n,i){if(t===e&&n===i)return Ht;const a=l=>Y2(l,0,1,t,n);return l=>l===0||l===1?l:Vx(a(l),e,i)}const zx=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,$x=t=>e=>1-t(1-e),Wx=Xo(.33,1.53,.69,.99),wh=$x(Wx),Hx=zx(wh),qx=t=>(t*=2)<1?.5*wh(t):.5*(2-Math.pow(2,-10*(t-1))),xh=t=>1-Math.sin(Math.acos(t)),Kx=$x(xh),Qx=zx(xh),Gx=t=>/^0[^.\s]+$/u.test(t);function J2(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Gx(t):!0}const Co=t=>Math.round(t*1e5)/1e5,Sh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Z2(t){return t==null}const eN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bh=(t,e)=>n=>!!(typeof n=="string"&&eN.test(n)&&n.startsWith(t)||e&&!Z2(n)&&Object.prototype.hasOwnProperty.call(n,e)),Xx=(t,e,n)=>i=>{if(typeof i!="string")return i;const[a,l,u,d]=i.match(Sh);return{[t]:parseFloat(a),[e]:parseFloat(l),[n]:parseFloat(u),alpha:d!==void 0?parseFloat(d):1}},tN=t=>Yn(0,255,t),bd={...Ti,transform:t=>Math.round(tN(t))},os={test:bh("rgb","red"),parse:Xx("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+bd.transform(t)+", "+bd.transform(e)+", "+bd.transform(n)+", "+Co(jo.transform(i))+")"};function nN(t){let e="",n="",i="",a="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),a=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),a=t.substring(4,5),e+=e,n+=n,i+=i,a+=a),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}}const hf={test:bh("#"),parse:nN,transform:os.transform},ei={test:bh("hsl","hue"),parse:Xx("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+On.transform(Co(e))+", "+On.transform(Co(n))+", "+Co(jo.transform(i))+")"},_t={test:t=>os.test(t)||hf.test(t)||ei.test(t),parse:t=>os.test(t)?os.parse(t):ei.test(t)?ei.parse(t):hf.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?os.transform(t):ei.transform(t)},rN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function sN(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Sh))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(rN))===null||n===void 0?void 0:n.length)||0)>0}const Yx="number",Jx="color",iN="var",oN="var(",sv="${}",aN=/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 Io(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},a=[];let l=0;const d=e.replace(aN,f=>(_t.test(f)?(i.color.push(l),a.push(Jx),n.push(_t.parse(f))):f.startsWith(oN)?(i.var.push(l),a.push(iN),n.push(f)):(i.number.push(l),a.push(Yx),n.push(parseFloat(f))),++l,sv)).split(sv);return{values:n,split:d,indexes:i,types:a}}function Zx(t){return Io(t).values}function e1(t){const{split:e,types:n}=Io(t),i=e.length;return a=>{let l="";for(let u=0;u<i;u++)if(l+=e[u],a[u]!==void 0){const d=n[u];d===Yx?l+=Co(a[u]):d===Jx?l+=_t.transform(a[u]):l+=a[u]}return l}}const lN=t=>typeof t=="number"?0:t;function uN(t){const e=Zx(t);return e1(t)(e.map(lN))}const Mr={test:sN,parse:Zx,createTransformer:e1,getAnimatableNone:uN},cN=new Set(["brightness","contrast","saturate","opacity"]);function dN(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(Sh)||[];if(!i)return t;const a=n.replace(i,"");let l=cN.has(e)?1:0;return i!==n&&(l*=100),e+"("+l+a+")"}const fN=/\b([a-z-]*)\(.*?\)/gu,pf={...Mr,getAnimatableNone:t=>{const e=t.match(fN);return e?e.map(dN).join(" "):t}},hN={...oh,color:_t,backgroundColor:_t,outlineColor:_t,fill:_t,stroke:_t,borderColor:_t,borderTopColor:_t,borderRightColor:_t,borderBottomColor:_t,borderLeftColor:_t,filter:pf,WebkitFilter:pf},kh=t=>hN[t];function t1(t,e){let n=kh(t);return n!==pf&&(n=Mr),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const pN=new Set(["auto","none","0"]);function mN(t,e,n){let i=0,a;for(;i<t.length&&!a;){const l=t[i];typeof l=="string"&&!pN.has(l)&&Io(l).values.length&&(a=t[i]),i++}if(a&&n)for(const l of e)t[l]=t1(n,a)}const iv=t=>t===Ti||t===me,ov=(t,e)=>parseFloat(t.split(", ")[e]),av=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const a=i.match(/^matrix3d\((.+)\)$/u);
vendor: 8,689 bytes, line 240
240if(a)return ov(a[1],e);{const l=i.match(/^matrix\((.+)\)$/u);return l?ov(l[1],t):0}},gN=new Set(["x","y","z"]),yN=_i.filter(t=>!gN.has(t));function vN(t){const e=[];return yN.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const xi={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:av(4,13),y:av(5,14)};xi.translateX=xi.x;xi.translateY=xi.y;const ys=new Set;let mf=!1,gf=!1;function n1(){if(gf){const t=Array.from(ys).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const a=vN(i);a.length&&(n.set(i,a),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const a=n.get(i);a&&a.forEach(([l,u])=>{var d;(d=i.getValue(l))===null||d===void 0||d.set(u)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}gf=!1,mf=!1,ys.forEach(t=>t.complete()),ys.clear()}function r1(){ys.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(gf=!0)})}function wN(){r1(),n1()}class Eh{constructor(e,n,i,a,l,u=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=a,this.element=l,this.isAsync=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ys.add(this),mf||(mf=!0,ze.read(r1),ze.resolveKeyframes(n1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:a}=this;for(let l=0;l<e.length;l++)if(e[l]===null)if(l===0){const u=a==null?void 0:a.get(),d=e[e.length-1];if(u!==void 0)e[0]=u;else if(i&&n){const f=i.readValue(n,d);f!=null&&(e[0]=f)}e[0]===void 0&&(e[0]=d),a&&u===void 0&&a.set(e[0])}else e[l]=e[l-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ys.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ys.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const s1=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),xN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function SN(t){const e=xN.exec(t);if(!e)return[,];const[,n,i,a]=e;return[`--${n??i}`,a]}function i1(t,e,n=1){const[i,a]=SN(t);if(!i)return;const l=window.getComputedStyle(e).getPropertyValue(i);if(l){const u=l.trim();return s1(u)?parseFloat(u):u}return ih(a)?i1(a,e,n+1):a}const o1=t=>e=>e.test(t),bN={test:t=>t==="auto",parse:t=>t},a1=[Ti,me,On,br,d2,c2,bN],lv=t=>a1.find(o1(t));class l1 extends Eh{constructor(e,n,i,a,l){super(e,n,i,a,l,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<e.length;f++){let p=e[f];if(typeof p=="string"&&(p=p.trim(),ih(p))){const g=i1(p,n.current);g!==void 0&&(e[f]=g),f===e.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!Fx.has(i)||e.length!==2)return;const[a,l]=e,u=lv(a),d=lv(l);if(u!==d)if(iv(u)&&iv(d))for(let f=0;f<e.length;f++){const p=e[f];typeof p=="string"&&(e[f]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let a=0;a<e.length;a++)J2(e[a])&&i.push(a);i.length&&mN(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=xi[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&e.getValue(i,a).jump(a,!1)}measureEndState(){var e;const{element:n,name:i,unresolvedKeyframes:a}=this;if(!n||!n.current)return;const l=n.getValue(i);l&&l.jump(this.measuredOrigin,!1);const u=a.length-1,d=a[u];a[u]=xi[i](n.measureViewportBox(),window.getComputedStyle(n.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([f,p])=>{n.getValue(f).set(p)}),this.resolveNoneKeyframes()}}const uv=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Mr.test(t)||t==="0")&&!t.startsWith("url("));function kN(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function EN(t,e,n,i){const a=t[0];if(a===null)return!1;if(e==="display"||e==="visibility")return!0;const l=t[t.length-1],u=uv(a,e),d=uv(l,e);return!u||!d?!1:kN(t)||(n==="spring"||hh(n))&&i}const _N=t=>t!==null;function lu(t,{repeat:e,repeatType:n="loop"},i){const a=t.filter(_N),l=e&&n!=="loop"&&e%2===1?0:a.length-1;return!l||i===void 0?a[l]:i}const TN=40;class u1{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:u="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ln.now(),this.options={autoplay:e,delay:n,type:i,repeat:a,repeatDelay:l,repeatType:u,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>TN?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&wN(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=Ln.now(),this.hasAttemptedResolve=!0;const{name:i,type:a,velocity:l,delay:u,onComplete:d,onUpdate:f,isGenerator:p}=this.options;if(!p&&!EN(e,i,a,l))if(u)this.options.duration=0;else{f&&f(lu(e,this.options,n)),d&&d(),this.resolveFinishedPromise();return}const g=this.initPlayback(e,n);g!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...g},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const qe=(t,e,n)=>t+(e-t)*n;function kd(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function CN({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let a=0,l=0,u=0;if(!e)a=l=u=n;else{const d=n<.5?n*(1+e):n+e-n*e,f=2*n-d;a=kd(f,d,t+1/3),l=kd(f,d,t),u=kd(f,d,t-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(u*255),alpha:i}}function Wl(t,e){return n=>n>0?e:t}const Ed=(t,e,n)=>{const i=t*t,a=n*(e*e-i)+i;return a<0?0:Math.sqrt(a)},PN=[hf,os,ei],RN=t=>PN.find(e=>e.test(t));function cv(t){const e=RN(t);if(!e)return!1;let n=e.parse(t);return e===ei&&(n=CN(n)),n}const dv=(t,e)=>{const n=cv(t),i=cv(e);if(!n||!i)return Wl(t,e);const a={...n};return l=>(a.red=Ed(n.red,i.red,l),a.green=Ed(n.green,i.green,l),a.blue=Ed(n.blue,i.blue,l),a.alpha=qe(n.alpha,i.alpha,l),os.transform(a))},AN=(t,e)=>n=>e(t(n)),Yo=(...t)=>t.reduce(AN),yf=new Set(["none","hidden"]);function NN(t,e){return yf.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ON(t,e){return n=>qe(t,e,n)}function _h(t){return typeof t=="number"?ON:typeof t=="string"?ih(t)?Wl:_t.test(t)?dv:jN:Array.isArray(t)?c1:typeof t=="object"?_t.test(t)?dv:LN:Wl}function c1(t,e){const n=[...t],i=n.length,a=t.map((l,u)=>_h(l)(l,e[u]));return l=>{for(let u=0;u<i;u++)n[u]=a[u](l);return n}}function LN(t,e){const n={...t,...e},i={};for(const a in n)t[a]!==void 0&&e[a]!==void 0&&(i[a]=_h(t[a])(t[a],e[a]));return a=>{for(const l in i)n[l]=i[l](a);return n}}function DN(t,e){var n;const i=[],a={color:0,var:0,number:0};for(let l=0;l<e.values.length;l++){const u=e.types[l],d=t.indexes[u][a[u]],f=(n=t.values[d])!==null&&n!==void 0?n:0;i[l]=f,a[u]++}return i}const jN=(t,e)=>{const n=Mr.createTransformer(e),i=Io(t),a=Io(e);return i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length?yf.has(t)&&!a.values.length||yf.has(e)&&!i.values.length?NN(t,e):Yo(c1(DN(i,a),a.values),n):Wl(t,e)};function d1(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?qe(t,e,n):_h(t)(t,e)}const MN=5;function f1(t,e,n){const i=Math.max(e-MN,0);return Bx(n-t(i),e-i)}const Ge={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},_d=.001;function IN({duration:t=Ge.duration,bounce:e=Ge.bounce,velocity:n=Ge.velocity,mass:i=Ge.mass}){let a,l,u=1-e;u=Yn(Ge.minDamping,Ge.maxDamping,u),t=Yn(Ge.minDuration,Ge.maxDuration,
vendor: 61,916 bytes, line 240
240Xn(t)),u<1?(a=p=>{const g=p*u,y=g*t,w=g-n,x=vf(p,u),T=Math.exp(-y);return _d-w/x*T},l=p=>{const y=p*u*t,w=y*n+n,x=Math.pow(u,2)*Math.pow(p,2)*t,T=Math.exp(-y),E=vf(Math.pow(p,2),u);return(-a(p)+_d>0?-1:1)*((w-x)*T)/E}):(a=p=>{const g=Math.exp(-p*t),y=(p-n)*t+1;return-_d+g*y},l=p=>{const g=Math.exp(-p*t),y=(n-p)*(t*t);return g*y});const d=5/t,f=BN(a,l,d);if(t=Gn(t),isNaN(f))return{stiffness:Ge.stiffness,damping:Ge.damping,duration:t};{const p=Math.pow(f,2)*i;return{stiffness:p,damping:u*2*Math.sqrt(i*p),duration:t}}}const FN=12;function BN(t,e,n){let i=n;for(let a=1;a<FN;a++)i=i-t(i)/e(i);return i}function vf(t,e){return t*Math.sqrt(1-e*e)}const UN=["duration","bounce"],VN=["stiffness","damping","mass"];function fv(t,e){return e.some(n=>t[n]!==void 0)}function zN(t){let e={velocity:Ge.velocity,stiffness:Ge.stiffness,damping:Ge.damping,mass:Ge.mass,isResolvedFromDuration:!1,...t};if(!fv(t,VN)&&fv(t,UN))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),a=i*i,l=2*Yn(.05,1,1-(t.bounce||0))*Math.sqrt(a);e={...e,mass:Ge.mass,stiffness:a,damping:l}}else{const n=IN(t);e={...e,...n,mass:Ge.mass},e.isResolvedFromDuration=!0}return e}function h1(t=Ge.visualDuration,e=Ge.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:a}=n;const l=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],d={done:!1,value:l},{stiffness:f,damping:p,mass:g,duration:y,velocity:w,isResolvedFromDuration:x}=zN({...n,velocity:-Xn(n.velocity||0)}),T=w||0,E=p/(2*Math.sqrt(f*g)),k=u-l,S=Xn(Math.sqrt(f/g)),A=Math.abs(k)<5;i||(i=A?Ge.restSpeed.granular:Ge.restSpeed.default),a||(a=A?Ge.restDelta.granular:Ge.restDelta.default);let P;if(E<1){const I=vf(S,E);P=z=>{const X=Math.exp(-E*S*z);return u-X*((T+E*S*k)/I*Math.sin(I*z)+k*Math.cos(I*z))}}else if(E===1)P=I=>u-Math.exp(-S*I)*(k+(T+S*k)*I);else{const I=S*Math.sqrt(E*E-1);P=z=>{const X=Math.exp(-E*S*z),B=Math.min(I*z,300);return u-X*((T+E*S*k)*Math.sinh(B)+I*k*Math.cosh(B))/I}}const L={calculatedDuration:x&&y||null,next:I=>{const z=P(I);if(x)d.done=I>=y;else{let X=0;E<1&&(X=I===0?Gn(T):f1(P,I,z));const B=Math.abs(X)<=i,Z=Math.abs(u-z)<=a;d.done=B&&Z}return d.value=d.done?u:z,d},toString:()=>{const I=Math.min(Nx(L),cf),z=Ox(X=>L.next(I*X).value,I,30);return I+"ms "+z}};return L}function hv({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:d,max:f,restDelta:p=.5,restSpeed:g}){const y=t[0],w={done:!1,value:y},x=B=>d!==void 0&&B<d||f!==void 0&&B>f,T=B=>d===void 0?f:f===void 0||Math.abs(d-B)<Math.abs(f-B)?d:f;let E=n*e;const k=y+E,S=u===void 0?k:u(k);S!==k&&(E=S-y);const A=B=>-E*Math.exp(-B/i),P=B=>S+A(B),L=B=>{const Z=A(B),ue=P(B);w.done=Math.abs(Z)<=p,w.value=w.done?S:ue};let I,z;const X=B=>{x(w.value)&&(I=B,z=h1({keyframes:[w.value,T(w.value)],velocity:f1(P,B,w.value),damping:a,stiffness:l,restDelta:p,restSpeed:g}))};return X(0),{calculatedDuration:null,next:B=>{let Z=!1;return!z&&I===void 0&&(Z=!0,L(B),X(B)),I!==void 0&&B>=I?z.next(B-I):(!Z&&L(B),w)}}}const $N=Xo(.42,0,1,1),WN=Xo(0,0,.58,1),p1=Xo(.42,0,.58,1),HN=t=>Array.isArray(t)&&typeof t[0]!="number",qN={linear:Ht,easeIn:$N,easeInOut:p1,easeOut:WN,circIn:xh,circInOut:Qx,circOut:Kx,backIn:wh,backInOut:Hx,backOut:Wx,anticipate:qx},pv=t=>{if(ph(t)){dx(t.length===4);const[e,n,i,a]=t;return Xo(e,n,i,a)}else if(typeof t=="string")return qN[t];return t};function KN(t,e,n){const i=[],a=n||d1,l=t.length-1;for(let u=0;u<l;u++){let d=a(t[u],t[u+1]);if(e){const f=Array.isArray(e)?e[u]||Ht:e;d=Yo(f,d)}i.push(d)}return i}function QN(t,e,{clamp:n=!0,ease:i,mixer:a}={}){const l=t.length;if(dx(l===e.length),l===1)return()=>e[0];if(l===2&&e[0]===e[1])return()=>e[1];const u=t[0]===t[1];t[0]>t[l-1]&&(t=[...t].reverse(),e=[...e].reverse());const d=KN(e,i,a),f=d.length,p=g=>{if(u&&g<t[0])return e[0];let y=0;if(f>1)for(;y<t.length-2&&!(g<t[y+1]);y++);const w=vi(t[y],t[y+1],g);return d[y](w)};return n?g=>p(Yn(t[0],t[l-1],g)):p}function GN(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const a=vi(0,e,i);t.push(qe(n,1,a))}}function XN(t){const e=[0];return GN(e,t.length-1),e}function YN(t,e){return t.map(n=>n*e)}function JN(t,e){return t.map(()=>e||p1).splice(0,t.length-1)}function Hl({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const a=HN(i)?i.map(pv):pv(i),l={done:!1,value:e[0]},u=YN(n&&n.length===e.length?n:XN(e),t),d=QN(u,e,{ease:Array.isArray(a)?a:JN(e,a)});return{calculatedDuration:t,next:f=>(l.value=d(f),l.done=f>=t,l)}}const ZN=t=>{const e=({timestamp:n})=>t(n);return{start:()=>ze.update(e,!0),stop:()=>jr(e),now:()=>gt.isProcessing?gt.timestamp:Ln.now()}},eO={decay:hv,inertia:hv,tween:Hl,keyframes:Hl,spring:h1},tO=t=>t/100;class Th extends u1{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:i,element:a,keyframes:l}=this.options,u=(a==null?void 0:a.KeyframeResolver)||Eh,d=(f,p)=>this.onKeyframesResolved(f,p);this.resolver=new u(l,d,n,i,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:l,velocity:u=0}=this.options,d=hh(n)?n:eO[n]||Hl;let f,p;d!==Hl&&typeof e[0]!="number"&&(f=Yo(tO,d1(e[0],e[1])),e=[0,100]);const g=d({...this.options,keyframes:e});l==="mirror"&&(p=d({...this.options,keyframes:[...e].reverse(),velocity:-u})),g.calculatedDuration===null&&(g.calculatedDuration=Nx(g));const{calculatedDuration:y}=g,w=y+a,x=w*(i+1)-a;return{generator:g,mirroredGenerator:p,mapPercentToKeyframes:f,calculatedDuration:y,resolvedDuration:w,totalDuration:x}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:i}=this;if(!i){const{keyframes:B}=this.options;return{done:!0,value:B[B.length-1]}}const{finalKeyframe:a,generator:l,mirroredGenerator:u,mapPercentToKeyframes:d,keyframes:f,calculatedDuration:p,totalDuration:g,resolvedDuration:y}=i;if(this.startTime===null)return l.next(0);const{delay:w,repeat:x,repeatType:T,repeatDelay:E,onUpdate:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-g/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const S=this.currentTime-w*(this.speed>=0?1:-1),A=this.speed>=0?S<0:S>g;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=g);let P=this.currentTime,L=l;if(x){const B=Math.min(this.currentTime,g)/y;let Z=Math.floor(B),ue=B%1;!ue&&B>=1&&(ue=1),ue===1&&Z--,Z=Math.min(Z,x+1),!!(Z%2)&&(T==="reverse"?(ue=1-ue,E&&(ue-=E/y)):T==="mirror"&&(L=u)),P=Yn(0,1,ue)*y}const I=A?{done:!1,value:f[0]}:L.next(P);d&&(I.value=d(I.value));let{done:z}=I;!A&&p!==null&&(z=this.speed>=0?this.currentTime>=g:this.currentTime<=0);const X=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&z);return X&&a!==void 0&&(I.value=lu(f,this.options,a)),k&&k(I.value),X&&this.finish(),I}get duration(){const{resolved:e}=this;return e?Xn(e.calculatedDuration):0}get time(){return Xn(this.currentTime)}set time(e){e=Gn(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Xn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=ZN,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=e(l=>this.tick(l))),n&&n();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const nO=new Set(["opacity","clipPath","filter","transform"]);function rO(t,e,n,{delay:i=0,duration:a=300,repeat:l=0,repeatType:u="loop",ease:d="easeInOut",times:f}={}){const p={[e]:n};f&&(p.offset=f);const g=Dx(d,a);return Array.isArray(g)&&(p.easing=g),t.animate(p,{delay:i,duration:a,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:l+1,direction:u==="reverse"?"alternate":"normal"})}const sO=Jf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ql=10,iO=2e4;function oO(t){return hh(t.type)||t.type==="spring"||!Lx(t.ease)}function aO(t,e){const n=new Th({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const a=[];let l=0;for(;!i.done&&l<iO;)i=n.sample(l),a.push(i.value),l+=ql;return{times:void 0,keyframes:a,duration:l-ql,ease:"linear"}}const m1={anticipate:qx,backInOut:Hx,circInOut:Qx};function lO(t){return t in m1}class mv extends u1{constructor(e){super(e);const{name:n,motionValue:i,element:a,keyframes:l}=this.options;this.resolver=new l1(l,(u,d)=>this.onKeyframesResolved(u,d),n,i,a),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:i=300,times:a,ease:l,type:u,motionValue:d,name:f,startTime:p}=this.options;if(!d.owner||!d.owner.current)return!1;if(typeof l=="string"&&$l()&&lO(l)&&(l=m1[l]),oO(this.options)){const{onComplete:y,onUpdate:w,motionValue:x,element:T,...E}=this.options,k=aO(e,E);e=k.keyframes,e.length===1&&(e[1]=e[0]),i=k.duration,a=k.times,l=k.ease,u="keyframes"}const g=rO(d.owner.current,f,e,{...this.options,duration:i,times:a,ease:l});return g.startTime=p??this.calcStartTime(),this.pendingTimeline?(Zy(g,this.pendingTimeline),this.pendingTimeline=void 0):g.onfinish=()=>{const{onComplete:y}=this.options;d.set(lu(e,this.options,n)),y&&y(),this.cancel(),this.resolveFinishedPromise()},{animation:g,duration:i,times:a,type:u,ease:l,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Xn(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Xn(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Gn(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return Ht;const{animation:i}=n;Zy(i,e)}return Ht}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:i,duration:a,type:l,ease:u,times:d}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:g,onComplete:y,element:w,...x}=this.options,T=new Th({...x,keyframes:i,duration:a,type:l,ease:u,times:d,isGenerator:!0}),E=Gn(this.time);p.setWithVelocity(T.sample(E-ql).value,T.sample(E).value,ql)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:i,repeatDelay:a,repeatType:l,damping:u,type:d}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:p}=n.owner.getProps();return sO()&&i&&nO.has(i)&&!f&&!p&&!a&&l!=="mirror"&&u!==0&&d!=="inertia"}}const uO={type:"spring",stiffness:500,damping:25,restSpeed:10},cO=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),dO={type:"keyframes",duration:.8},fO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hO=(t,{keyframes:e})=>e.length>2?dO:Es.has(t)?t.startsWith("scale")?cO(e[1]):uO:fO;function pO({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:a,repeat:l,repeatType:u,repeatDelay:d,from:f,elapsed:p,...g}){return!!Object.keys(g).length}const Ch=(t,e,n,i={},a,l)=>u=>{const d=fh(i,t)||{},f=d.delay||i.delay||0;let{elapsed:p=0}=i;p=p-Gn(f);let g={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...d,delay:-p,onUpdate:w=>{e.set(w),d.onUpdate&&d.onUpdate(w)},onComplete:()=>{u(),d.onComplete&&d.onComplete()},name:t,motionValue:e,element:l?void 0:a};pO(d)||(g={...g,...hO(t,g)}),g.duration&&(g.duration=Gn(g.duration)),g.repeatDelay&&(g.repeatDelay=Gn(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let y=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(g.duration=0,g.delay===0&&(y=!0)),y&&!l&&e.get()!==void 0){const w=lu(g.keyframes,d);if(w!==void 0)return ze.update(()=>{g.onUpdate(w),g.onComplete()}),new L2([])}return!l&&mv.supports(g)?new mv(g):new Th(g)};function mO({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function g1(t,e,{delay:n=0,transitionOverride:i,type:a}={}){var l;let{transition:u=t.getDefaultTransition(),transitionEnd:d,...f}=e;i&&(u=i);const p=[],g=a&&t.animationState&&t.animationState.getState()[a];for(const y in f){const w=t.getValue(y,(l=t.latestValues[y])!==null&&l!==void 0?l:null),x=f[y];if(x===void 0||g&&mO(g,y))continue;const T={delay:n,...fh(u||{},y)};let E=!1;if(window.MotionHandoffAnimation){const S=Ux(t);if(S){const A=window.MotionHandoffAnimation(S,y,ze);A!==null&&(T.startTime=A,E=!0)}}ff(t,y),w.start(Ch(y,w,x,t.shouldReduceMotion&&Fx.has(y)?{type:!1}:T,t,E));const k=w.animation;k&&p.push(k)}return d&&Promise.all(p).then(()=>{ze.update(()=>{d&&K2(t,d)})}),p}function wf(t,e,n={}){var i;const a=au(t,e,n.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:l=t.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(l=n.transitionOverride);const u=a?()=>Promise.all(g1(t,a,n)):()=>Promise.resolve(),d=t.variantChildren&&t.variantChildren.size?(p=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:w}=l;return gO(t,e,g+p,y,w,n)}:()=>Promise.resolve(),{when:f}=l;if(f){const[p,g]=f==="beforeChildren"?[u,d]:[d,u];return p().then(()=>g())}else return Promise.all([u(),d(n.delay)])}function gO(t,e,n=0,i=0,a=1,l){const u=[],d=(t.variantChildren.size-1)*i,f=a===1?(p=0)=>p*i:(p=0)=>d-p*i;return Array.from(t.variantChildren).sort(yO).forEach((p,g)=>{p.notify("AnimationStart",e),u.push(wf(p,e,{...l,delay:n+f(g)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(u)}function yO(t,e){return t.sortNodePosition(e)}function vO(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const a=e.map(l=>wf(t,l,n));i=Promise.all(a)}else if(typeof e=="string")i=wf(t,e,n);else{const a=typeof e=="function"?au(t,e,n.custom):e;i=Promise.all(g1(t,a,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const wO=eh.length;function y1(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?y1(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<wO;n++){const i=eh[n],a=t.props[i];(Do(a)||a===!1)&&(e[i]=a)}return e}const xO=[...Zf].reverse(),SO=Zf.length;function bO(t){return e=>Promise.all(e.map(({animation:n,options:i})=>vO(t,n,i)))}function kO(t){let e=bO(t),n=gv(),i=!0;const a=f=>(p,g)=>{var y;const w=au(t,g,f==="exit"?(y=t.presenceContext)===null||y===void 0?void 0:y.custom:void 0);if(w){const{transition:x,transitionEnd:T,...E}=w;p={...p,...E,...T}}return p};function l(f){e=f(t)}function u(f){const{props:p}=t,g=y1(t.parent)||{},y=[],w=new Set;let x={},T=1/0;for(let k=0;k<SO;k++){const S=xO[k],A=n[S],P=p[S]!==void 0?p[S]:g[S],L=Do(P),I=S===f?A.isActive:null;I===!1&&(T=k);let z=P===g[S]&&P!==p[S]&&L;if(z&&i&&t.manuallyAnimateOnMount&&(z=!1),A.protectedKeys={...x},!A.isActive&&I===null||!P&&!A.prevProp||iu(P)||typeof P=="boolean")continue;const X=EO(A.prevProp,P);let B=X||S===f&&A.isActive&&!z&&L||k>T&&L,Z=!1;const ue=Array.isArray(P)?P:[P];let be=ue.reduce(a(S),{});I===!1&&(be={});const{prevResolvedValues:Ae={}}=A,Le={...Ae,...be},Te=le=>{B=!0,w.has(le)&&(Z=!0,w.delete(le)),A.needsAnimating[le]=!0;const K=t.getValue(le);K&&(K.liveStyle=!1)};for(const le in Le){const K=be[le],se=Ae[le];if(x.hasOwnProperty(le))continue;let V=!1;uf(K)&&uf(se)?V=!Ax(K,se):V=K!==se,V?K!=null?Te(le):w.add(le):K!==void 0&&w.has(le)?Te(le):A.protectedKeys[le]=!0}A.prevProp=P,A.prevResolvedValues=be,A.isActive&&(x={...x,...be}),i&&t.blockInitialAnimation&&(B=!1),B&&(!(z&&X)||Z)&&y.push(...ue.map(le=>({animation:le,options:{type:S}})))}if(w.size){const k={};w.forEach(S=>{const A=t.getBaseTarget(S),P=t.getValue(S);P&&(P.liveStyle=!0),k[S]=A??null}),y.push({animation:k})}let E=!!y.length;return i&&(p.initial===!1||p.initial===p.animate)&&!t.manuallyAnimateOnMount&&(E=!1),i=!1,E?e(y):Promise.resolve()}function d(f,p){var g;if(n[f].isActive===p)return Promise.resolve();(g=t.variantChildren)===null||g===void 0||g.forEach(w=>{var x;return(x=w.animationState)===null||x===void 0?void 0:x.setActive(f,p)}),n[f].isActive=p;const y=u(f);for(const w in n)n[w].protectedKeys={};return y}return{animateChanges:u,setActive:d,setAnimateFunction:l,getState:()=>n,reset:()=>{n=gv(),i=!0}}}function EO(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Ax(e,t):!1}function es(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function gv(){return{animate:es(!0),whileInView:es(),whileHover:es(),whileTap:es(),whileDrag:es(),whileFocus:es(),exit:es()}}class Fr{constructor(e){this.isMounted=!1,this.node=e}update(){}}class _O extends Fr{constructor(e){super(e),e.animationState||(e.animationState=kO(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();iu(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let TO=0;class CO extends Fr{constructor(){super(...arguments),this.id=TO++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const a=this.node.animationState.setActive("exit",!e);n&&!e&&a.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const PO={animation:{Feature:_O},exit:{Feature:CO}};function Fo(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function Jo(t){return{point:{x:t.pageX,y:t.pageY}}}const RO=t=>e=>mh(e)&&t(e,Jo(e));function Po(t,e,n,i){return Fo(t,e,RO(n),i)}const yv=(t,e)=>Math.abs(t-e);function AO(t,e){const n=yv(t.x,e.x),i=yv(t.y,e.y);return Math.sqrt(n**2+i**2)}class v1{constructor(e,n,{transformPagePoint:i,contextWindow:a,dragSnapToOrigin:l=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Cd(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,x=AO(y.offset,{x:0,y:0})>=3;if(!w&&!x)return;const{point:T}=y,{timestamp:E}=gt;this.history.push({...T,timestamp:E});const{onStart:k,onMove:S}=this.handlers;w||(k&&k(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,y)},this.handlePointerMove=(y,w)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=Td(w,this.transformPagePoint),ze.update(this.updatePoint,!0)},this.handlePointerUp=(y,w)=>{this.end();const{onEnd:x,onSessionEnd:T,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=Cd(y.type==="pointercancel"?this.lastMoveEventInfo:Td(w,this.transformPagePoint),this.history);this.startEvent&&x&&x(y,k),T&&T(y,k)},!mh(e))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=i,this.contextWindow=a||window;const u=Jo(e),d=Td(u,this.transformPagePoint),{point:f}=d,{timestamp:p}=gt;this.history=[{...f,timestamp:p}];const{onSessionStart:g}=n;g&&g(e,Cd(d,this.history)),this.removeListeners=Yo(Po(this.contextWindow,"pointermove",this.handlePointerMove),Po(this.contextWindow,"pointerup",this.handlePointerUp),Po(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),jr(this.updatePoint)}}function Td(t,e){return e?{point:e(t.point)}:t}function vv(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Cd({point:t},e){return{point:t,delta:vv(t,w1(e)),offset:vv(t,NO(e)),velocity:OO(e,.1)}}function NO(t){return t[0]}function w1(t){return t[t.length-1]}function OO(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const a=w1(t);for(;n>=0&&(i=t[n],!(a.timestamp-i.timestamp>Gn(e)));)n--;if(!i)return{x:0,y:0};const l=Xn(a.timestamp-i.timestamp);if(l===0)return{x:0,y:0};const u={x:(a.x-i.x)/l,y:(a.y-i.y)/l};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}const x1=1e-4,LO=1-x1,DO=1+x1,S1=.01,jO=0-S1,MO=0+S1;function qt(t){return t.max-t.min}function IO(t,e,n){return Math.abs(t-e)<=n}function wv(t,e,n,i=.5){t.origin=i,t.originPoint=qe(e.min,e.max,t.origin),t.scale=qt(n)/qt(e),t.translate=qe(n.min,n.max,t.origin)-t.originPoint,(t.scale>=LO&&t.scale<=DO||isNaN(t.scale))&&(t.scale=1),(t.translate>=jO&&t.translate<=MO||isNaN(t.translate))&&(t.translate=0)}function Ro(t,e,n,i){wv(t.x,e.x,n.x,i?i.originX:void 0),wv(t.y,e.y,n.y,i?i.originY:void 0)}function xv(t,e,n){t.min=n.min+e.min,t.max=t.min+qt(e)}function FO(t,e,n){xv(t.x,e.x,n.x),xv(t.y,e.y,n.y)}function Sv(t,e,n){t.min=e.min-n.min,t.max=t.min+qt(e)}function Ao(t,e,n){Sv(t.x,e.x,n.x),Sv(t.y,e.y,n.y)}function BO(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?qe(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?qe(n,t,i.max):Math.min(t,n)),t}function bv(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function UO(t,{top:e,left:n,bottom:i,right:a}){return{x:bv(t.x,n,a),y:bv(t.y,e,i)}}function kv(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function VO(t,e){return{x:kv(t.x,e.x),y:kv(t.y,e.y)}}function zO(t,e){let n=.5;const i=qt(t),a=qt(e);return a>i?n=vi(e.min,e.max-i,t.min):i>a&&(n=vi(t.min,t.max-a,e.min)),Yn(0,1,n)}function $O(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const xf=.35;function WO(t=xf){return t===!1?t=0:t===!0&&(t=xf),{x:Ev(t,"left","right"),y:Ev(t,"top","bottom")}}function Ev(t,e,n){return{min:_v(t,e),max:_v(t,n)}}function _v(t,e){return typeof t=="number"?t:t[e]||0}const Tv=()=>({translate:0,scale:1,origin:0,originPoint:0}),ti=()=>({x:Tv(),y:Tv()}),Cv=()=>({min:0,max:0}),Ze=()=>({x:Cv(),y:Cv()});function rn(t){return[t("x"),t("y")]}function b1({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function HO({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function qO(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Pd(t){return t===void 0||t===1}function Sf({scale:t,scaleX:e,scaleY:n}){return!Pd(t)||!Pd(e)||!Pd(n)}function ns(t){return Sf(t)||k1(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function k1(t){return Pv(t.x)||Pv(t.y)}function Pv(t){return t&&t!=="0%"}function Kl(t,e,n){const i=t-n,a=e*i;return n+a}function Rv(t,e,n,i,a){return a!==void 0&&(t=Kl(t,a,i)),Kl(t,n,i)+e}function bf(t,e=0,n=1,i,a){t.min=Rv(t.min,e,n,i,a),t.max=Rv(t.max,e,n,i,a)}function E1(t,{x:e,y:n}){bf(t.x,e.translate,e.scale,e.originPoint),bf(t.y,n.translate,n.scale,n.originPoint)}const Av=.999999999999,Nv=1.0000000000001;function KO(t,e,n,i=!1){const a=n.length;if(!a)return;e.x=e.y=1;let l,u;for(let d=0;d<a;d++){l=n[d],u=l.projectionDelta;const{visualElement:f}=l.options;f&&f.props.style&&f.props.style.display==="contents"||(i&&l.options.layoutScroll&&l.scroll&&l!==l.root&&ri(t,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),u&&(e.x*=u.x.scale,e.y*=u.y.scale,E1(t,u)),i&&ns(l.latestValues)&&ri(t,l.latestValues))}e.x<Nv&&e.x>Av&&(e.x=1),e.y<Nv&&e.y>Av&&(e.y=1)}function ni(t,e){t.min=t.min+e,t.max=t.max+e}function Ov(t,e,n,i,a=.5){const l=qe(t.min,t.max,a);bf(t,e,n,l,i)}function ri(t,e){Ov(t.x,e.x,e.scaleX,e.scale,e.originX),Ov(t.y,e.y,e.scaleY,e.scale,e.originY)}function _1(t,e){return b1(qO(t.getBoundingClientRect(),e))}function QO(t,e,n){const i=_1(t,n),{scroll:a}=e;return a&&(ni(i.x,a.offset.x),ni(i.y,a.offset.y)),i}const T1=({current:t})=>t?t.ownerDocument.defaultView:null,GO=new WeakMap;class XO{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ze(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=g=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Jo(g).point)},l=(g,y)=>{const{drag:w,dragPropagation:x,onDragStart:T}=this.getProps();if(w&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=z2(w),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rn(k=>{let S=this.getAxisMotionValue(k).get()||0;if(On.test(S)){const{projection:A}=this.visualElement;if(A&&A.layout){const P=A.layout.layoutBox[k];P&&(S=qt(P)*(parseFloat(S)/100))}}this.originPoint[k]=S}),T&&ze.postRender(()=>T(g,y)),ff(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},u=(g,y)=>{const{dragPropagation:w,dragDirectionLock:x,onDirectionLock:T,onDrag:E}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:k}=y;if(x&&this.currentDirection===null){this.currentDirection=YO(k),this.currentDirection!==null&&T&&T(this.currentDirection);return}this.updateAxis("x",y.point,k),this.updateAxis("y",y.point,k),this.visualElement.render(),E&&E(g,y)},d=(g,y)=>this.stop(g,y),f=()=>rn(g=>{var y;return this.getAnimationState(g)==="paused"&&((y=this.getAxisMotionValue(g).animation)===null||y===void 0?void 0:y.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new v1(e,{onSessionStart:a,onStart:l,onMove:u,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:T1(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&ze.postRender(()=>l(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:a}=this.getProps();if(!i||!wl(e,a,this.currentDirection))return;const l=this.getAxisMotionValue(e);let u=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(u=BO(u,this.constraints[e],this.elastic[e])),l.set(u)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,l=this.constraints;n&&Zs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&a?this.constraints=UO(a.layoutBox,n):this.constraints=!1,this.elastic=WO(i),l!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&rn(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=$O(a.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Zs(e))return!1;const i=e.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const l=QO(i,a.root,this.visualElement.getTransformPagePoint());let u=VO(a.layout.layoutBox,l);if(n){const d=n(HO(u));this.hasMutatedConstraints=!!d,d&&(u=b1(d))}return u}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:a,dragTransition:l,dragSnapToOrigin:u,onDragTransitionEnd:d}=this.getProps(),f=this.constraints||{},p=rn(g=>{if(!wl(g,n,this.currentDirection))return;let y=f&&f[g]||{};u&&(y={min:0,max:0});const w=a?200:1e6,x=a?40:1e7,T={type:"inertia",velocity:i?e[g]:0,bounceStiffness:w,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...l,...y};return this.startAxisValueAnimation(g,T)});return Promise.all(p).then(d)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return ff(this.visualElement,e),i.start(Ch(e,i,0,n,this.visualElement,!1))}stopAnimation(){rn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rn(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),a=i[n];return a||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){rn(n=>{const{drag:i}=this.getProps();if(!wl(n,i,this.currentDirection))return;const{projection:a}=this.visualElement,l=this.getAxisMotionValue(n);if(a&&a.layout){const{min:u,max:d}=a.layout.layoutBox[n];l.set(e[n]-qe(u,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Zs(n)||!i||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};rn(u=>{const d=this.getAxisMotionValue(u);if(d&&this.constraints!==!1){const f=d.get();a[u]=zO({min:f,max:f},this.constraints[u])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),rn(u=>{if(!wl(u,e,null))return;const d=this.getAxisMotionValue(u),{min:f,max:p}=this.constraints[u];d.set(qe(f,p,a[u]))})}addListeners(){if(!this.visualElement.current)return;GO.set(this.visualElement,this);const e=this.visualElement.current,n=Po(e,"pointerdown",f=>{const{drag:p,dragListener:g=!0}=this.getProps();p&&g&&this.start(f)}),i=()=>{const{dragConstraints:f}=this.getProps();Zs(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,l=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),ze.read(i);const u=Fo(window,"resize",()=>this.scalePositionWithinConstraints()),d=a.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(rn(g=>{const y=this.getAxisMotionValue(g);y&&(this.originPoint[g]+=f[g].translate,y.set(y.get()+f[g].translate))}),this.visualElement.render())}));return()=>{u(),n(),l(),d&&d()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:a=!1,dragConstraints:l=!1,dragElastic:u=xf,dragMomentum:d=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:d}}}function wl(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function YO(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class JO extends Fr{constructor(e){super(e),this.removeGroupControls=Ht,this.removeListeners=Ht,this.controls=new XO(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ht}unmount(){this.removeGroupControls(),this.removeListeners()}}const Lv=t=>(e,n)=>{t&&ze.postRender(()=>t(e,n))};class ZO extends Fr{constructor(){super(...arguments),this.removePointerDownListener=Ht}onPointerDown(e){this.session=new v1(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:T1(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:a}=this.node.getProps();return{onSessionStart:Lv(e),onStart:Lv(n),onMove:i,onEnd:(l,u)=>{delete this.session,a&&ze.postRender(()=>a(l,u))}}}mount(){this.removePointerDownListener=Po(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Nl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Dv(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const yo={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(me.test(t))t=parseFloat(t);else return t;const n=Dv(t,e.target.x),i=Dv(t,e.target.y);return`${n}% ${i}%`}},eL={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,a=Mr.parse(t);if(a.length>5)return i;const l=Mr.createTransformer(t),u=typeof a[0]!="number"?1:0,d=n.x.scale*e.x,f=n.y.scale*e.y;a[0+u]/=d,a[1+u]/=f;const p=qe(d,f,.5);return typeof a[2+u]=="number"&&(a[2+u]/=p),typeof a[3+u]=="number"&&(a[3+u]/=p),l(a)}};class tL extends j.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:a}=this.props,{projection:l}=e;S2(nL),l&&(n.group&&n.group.add(l),i&&i.register&&a&&i.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),Nl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:a,isPresent:l}=this.props,u=i.projection;return u&&(u.isPresent=l,a||e.layoutDependency!==n||n===void 0?u.willUpdate():this.safeToRemove(),e.isPresent!==l&&(l?u.promote():u.relegate()||ze.postRender(()=>{const d=u.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),nh.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:a}=e;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),i&&i.deregister&&i.deregister(a))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function C1(t){const[e,n]=ux(),i=j.useContext(Qf);return b.jsx(tL,{...t,layoutGroup:i,switchLayoutGroup:j.useContext(yx),isPresent:e,safeToRemove:n})}const nL={borderRadius:{...yo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:yo,borderTopRightRadius:yo,borderBottomLeftRadius:yo,borderBottomRightRadius:yo,boxShadow:eL};function rL(t,e,n){const i=Tt(t)?t:Mo(t);return i.start(Ch("",i,e,n)),i.animation}function sL(t){return t instanceof SVGElement&&t.tagName!=="svg"}const iL=(t,e)=>t.depth-e.depth;class oL{constructor(){this.children=[],this.isDirty=!1}add(e){gh(this.children,e),this.isDirty=!0}remove(e){yh(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(iL),this.isDirty=!1,this.children.forEach(e)}}function aL(t,e){const n=Ln.now(),i=({timestamp:a})=>{const l=a-n;l>=e&&(jr(i),t(l-e))};return ze.read(i,!0),()=>jr(i)}const P1=["TopLeft","TopRight","BottomLeft","BottomRight"],lL=P1.length,jv=t=>typeof t=="string"?parseFloat(t):t,Mv=t=>typeof t=="number"||me.test(t);function uL(t,e,n,i,a,l){a?(t.opacity=qe(0,n.opacity!==void 0?n.opacity:1,cL(i)),t.opacityExit=qe(e.opacity!==void 0?e.opacity:1,0,dL(i))):l&&(t.opacity=qe(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let u=0;u<lL;u++){const d=`border${P1[u]}Radius`;let f=Iv(e,d),p=Iv(n,d);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||Mv(f)===Mv(p)?(t[d]=Math.max(qe(jv(f),jv(p),i),0),(On.test(p)||On.test(f))&&(t[d]+="%")):t[d]=p}(e.rotate||n.rotate)&&(t.rotate=qe(e.rotate||0,n.rotate||0,i))}function Iv(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const cL=R1(0,.5,Kx),dL=R1(.5,.95,Ht);function R1(t,e,n){return i=>i<t?0:i>e?1:n(vi(t,e,i))}function Fv(t,e){t.min=e.min,t.max=e.max}function nn(t,e){Fv(t.x,e.x),Fv(t.y,e.y)}function Bv(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Uv(t,e,n,i,a){return t-=e,t=Kl(t,1/n,i),a!==void 0&&(t=Kl(t,1/a,i)),t}function fL(t,e=0,n=1,i=.5,a,l=t,u=t){if(On.test(e)&&(e=parseFloat(e),e=qe(u.min,u.max,e/100)-u.min),typeof e!="number")return;let d=qe(l.min,l.max,i);t===l&&(d-=e),t.min=Uv(t.min,e,n,d,a),t.max=Uv(t.max,e,n,d,a)}function Vv(t,e,[n,i,a],l,u){fL(t,e[n],e[i],e[a],e.scale,l,u)}const hL=["x","scaleX","originX"],pL=["y","scaleY","originY"];function zv(t,e,n,i){Vv(t.x,e,hL,n?n.x:void 0,i?i.x:void 0),Vv(t.y,e,pL,n?n.y:void 0,i?i.y:void 0)}function $v(t){return t.translate===0&&t.scale===1}function A1(t){return $v(t.x)&&$v(t.y)}function Wv(t,e){return t.min===e.min&&t.max===e.max}function mL(t,e){return Wv(t.x,e.x)&&Wv(t.y,e.y)}function Hv(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function N1(t,e){return Hv(t.x,e.x)&&Hv(t.y,e.y)}function qv(t){return qt(t.x)/qt(t.y)}function Kv(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class gL{constructor(){this.members=[]}add(e){gh(this.members,e),e.scheduleRender()}remove(e){if(yh(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(a=>e===a);if(n===0)return!1;let i;for(let a=n;a>=0;a--){const l=this.members[a];if(l.isPresent!==!1){i=l;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:a}=e.options;a===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function yL(t,e,n){let i="";const a=t.x.translate/e.x,l=t.y.translate/e.y,u=(n==null?void 0:n.z)||0;if((a||l||u)&&(i=`translate3d(${a}px, ${l}px, ${u}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:p,rotate:g,rotateX:y,rotateY:w,skewX:x,skewY:T}=n;p&&(i=`perspective(${p}px) ${i}`),g&&(i+=`rotate(${g}deg) `),y&&(i+=`rotateX(${y}deg) `),w&&(i+=`rotateY(${w}deg) `),x&&(i+=`skewX(${x}deg) `),T&&(i+=`skewY(${T}deg) `)}const d=t.x.scale*e.x,f=t.y.scale*e.y;return(d!==1||f!==1)&&(i+=`scale(${d}, ${f})`),i||"none"}const rs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Eo=typeof window<"u"&&window.MotionDebug!==void 0,Rd=["","X","Y","Z"],vL={visibility:"hidden"},Qv=1e3;let wL=0;function Ad(t,e,n,i){const{latestValues:a}=e;a[t]&&(n[t]=a[t],e.setStaticValue(t,0),i&&(i[t]=0))}function O1(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Ux(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:l}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",ze,!(a||l))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&O1(i)}function L1({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(u={},d=e==null?void 0:e()){this.id=wL++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Eo&&(rs.totalNodes=rs.resolvedTargetDeltas=rs.recalculatedProjection=0),this.nodes.forEach(bL),this.nodes.forEach(CL),this.nodes.forEach(PL),this.nodes.forEach(kL),Eo&&window.MotionDebug.record(rs)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new oL)}addEventListener(u,d){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new vh),this.eventHandlers.get(u).add(d)}notifyListeners(u,...d){const f=this.eventHandlers.get(u);f&&f.notify(...d)}hasListeners(u){return this.eventHandlers.has(u)}mount(u,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=sL(u),this.instance=u;const{layoutId:f,layout:p,visualElement:g}=this.options;if(g&&!g.current&&g.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(p||f)&&(this.isLayoutDirty=!0),t){let y;const w=()=>this.root.updateBlockedByResize=!1;t(u,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=aL(w,250),Nl.hasAnimatedSinceResize&&(Nl.hasAnimatedSinceResize=!1,this.nodes.forEach(Xv))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&g&&(f||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:w,hasRelativeTargetChanged:x,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||g.getDefaultTransition()||LL,{onLayoutAnimationStart:k,onLayoutAnimationComplete:S}=g.getProps(),A=!this.targetLayout||!N1(this.targetLayout,T)||x,P=!w&&x;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||P||w&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,P);const L={...fh(E,"layout"),onPlay:k,onComplete:S};(g.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L)}else w||Xv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,jr(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(RL),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&O1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const y=this.path[g];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:d,layout:f}=this.options;if(d===void 0&&!f)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Gv);return}this.isUpdating||this.nodes.forEach(_L),this.isUpdating=!1,this.nodes.forEach(TL),this.nodes.forEach(xL),this.nodes.forEach(SL),this.clearAllSnapshots();const d=Ln.now();gt.delta=Yn(0,1e3/60,d-gt.timestamp),gt.timestamp=d,gt.isProcessing=!0,xd.update.process(gt),xd.preRender.process(gt),xd.render.process(gt),gt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(EL),this.sharedNodes.forEach(AL)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ze.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ze.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ze(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(d=!1),d){const f=i(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!a)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!A1(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;u&&(d||ns(this.latestValues)||g)&&(a(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const d=this.measurePageBox();let f=this.removeElementScroll(d);return u&&(f=this.removeTransform(f)),DL(f),{animationId:this.root.animationId,measuredBox:d,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:d}=this.options;if(!d)return Ze();const f=d.measureViewportBox();if(!(((u=this.scroll)===null||u===void 0?void 0:u.wasRoot)||this.path.some(jL))){const{scroll:g}=this.root;g&&(ni(f.x,g.offset.x),ni(f.y,g.offset.y))}return f}removeElementScroll(u){var d;const f=Ze();if(nn(f,u),!((d=this.scroll)===null||d===void 0)&&d.wasRoot)return f;for(let p=0;p<this.path.length;p++){const g=this.path[p],{scroll:y,options:w}=g;g!==this.root&&y&&w.layoutScroll&&(y.wasRoot&&nn(f,u),ni(f.x,y.offset.x),ni(f.y,y.offset.y))}return f}applyTransform(u,d=!1){const f=Ze();nn(f,u);for(let p=0;p<this.path.length;p++){const g=this.path[p];!d&&g.options.layoutScroll&&g.scroll&&g!==g.root&&ri(f,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),ns(g.latestValues)&&ri(f,g.latestValues)}return ns(this.latestValues)&&ri(f,this.latestValues),f}removeTransform(u){const d=Ze();nn(d,u);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!ns(p.latestValues))continue;Sf(p.latestValues)&&p.updateSnapshot();const g=Ze(),y=p.measurePageBox();nn(g,y),zv(d,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return ns(this.latestValues)&&zv(d,this.latestValues),d}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.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!==gt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var d;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(u||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:w}=this.options;if(!(!this.layout||!(y||w))){if(this.resolvedRelativeTargetAt=gt.timestamp,!this.targetDelta&&!this.relativeTarget){const x=this.getClosestProjectingParent();x&&x.layout&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ze(),this.relativeTargetOrigin=Ze(),Ao(this.relativeTargetOrigin,this.layout.layoutBox,x.layout.layoutBox),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ze(),this.targetWithTransforms=Ze()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),FO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),E1(this.target,this.targetDelta)):nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const x=this.getClosestProjectingParent();x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ze(),this.relativeTargetOrigin=Ze(),Ao(this.relativeTargetOrigin,this.target,x.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Eo&&rs.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Sf(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)}calcProjection(){var u;const d=this.getLead(),f=!!this.resumingFrom||this!==d;let p=!0;if((this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===gt.timestamp&&(p=!1),p)return;const{layout:g,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||y))return;nn(this.layoutCorrected,this.layout.layoutBox);const w=this.treeScale.x,x=this.treeScale.y;KO(this.layoutCorrected,this.treeScale,this.path,f),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Ze());const{target:T}=d;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Bv(this.prevProjectionDelta.x,this.projectionDelta.x),Bv(this.prevProjectionDelta.y,this.projectionDelta.y)),Ro(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==w||this.treeScale.y!==x||!Kv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Kv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T)),Eo&&rs.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var d;if((d=this.options.visualElement)===null||d===void 0||d.scheduleRender(),u){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ti(),this.projectionDelta=ti(),this.projectionDeltaWithTransform=ti()}setAnimationOrigin(u,d=!1){const f=this.snapshot,p=f?f.latestValues:{},g={...this.latestValues},y=ti();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const w=Ze(),x=f?f.source:void 0,T=this.layout?this.layout.source:void 0,E=x!==T,k=this.getStack(),S=!k||k.members.length<=1,A=!!(E&&!S&&this.options.crossfade===!0&&!this.path.some(OL));this.animationProgress=0;let P;this.mixTargetDelta=L=>{const I=L/1e3;Yv(y.x,u.x,I),Yv(y.y,u.y,I),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ao(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),NL(this.relativeTarget,this.relativeTargetOrigin,w,I),P&&mL(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=Ze()),nn(P,this.relativeTarget)),E&&(this.animationValues=g,uL(g,p,this.latestValues,I,A,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(jr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ze.update(()=>{Nl.hasAnimatedSinceResize=!0,this.currentAnimation=rL(0,Qv,{...u,onUpdate:d=>{this.mixTargetDelta(d),u.onUpdate&&u.onUpdate(d)},onComplete:()=>{u.onComplete&&u.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 u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Qv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:d,target:f,layout:p,latestValues:g}=u;if(!(!d||!f||!p)){if(this!==u&&this.layout&&p&&D1(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||Ze();const y=qt(this.layout.layoutBox.x);f.x.min=u.target.x.min,f.x.max=f.x.min+y;const w=qt(this.layout.layoutBox.y);f.y.min=u.target.y.min,f.y.max=f.y.min+w}nn(d,f),ri(d,g),Ro(this.projectionDeltaWithTransform,this.layoutCorrected,d,g)}}registerSharedNode(u,d){this.sharedNodes.has(u)||this.sharedNodes.set(u,new gL),this.sharedNodes.get(u).add(d);const p=d.options.initialPromotionConfig;d.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(d):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:d}=this.options;return d?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:d}=this.options;return d?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:d,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),u&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let d=!1;const{latestValues:f}=u;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(d=!0),!d)return;const p={};f.z&&Ad("z",u,p,this.animationValues);for(let g=0;g<Rd.length;g++)Ad(`rotate${Rd[g]}`,u,p,this.animationValues),Ad(`skew${Rd[g]}`,u,p,this.animationValues);u.render();for(const g in p)u.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);u.scheduleRender()}getProjectionStyles(u){var d,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return vL;const p={visibility:""},g=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Rl(u==null?void 0:u.pointerEvents)||"",p.transform=g?g(this.latestValues,""):"none",p;const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){const E={};return this.options.layoutId&&(E.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,E.pointerEvents=Rl(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!ns(this.latestValues)&&(E.transform=g?g({},""):"none",this.hasProjected=!1),E}const w=y.animationValues||y.latestValues;this.applyTransformsToTarget(),p.transform=yL(this.projectionDeltaWithTransform,this.treeScale,w),g&&(p.transform=g(w,p.transform));const{x,y:T}=this.projectionDelta;p.transformOrigin=`${x.origin*100}% ${T.origin*100}% 0`,y.animationValues?p.opacity=y===this?(f=(d=w.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:w.opacityExit:p.opacity=y===this?w.opacity!==void 0?w.opacity:"":w.opacityExit!==void 0?w.opacityExit:0;for(const E in zl){if(w[E]===void 0)continue;const{correct:k,applyTo:S}=zl[E],A=p.transform==="none"?w[E]:k(w[E],y);if(S){const P=S.length;for(let L=0;L<P;L++)p[S[L]]=A}else p[E]=A}return this.options.layoutId&&(p.pointerEvents=y===this?Rl(u==null?void 0:u.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var d;return(d=u.currentAnimation)===null||d===void 0?void 0:d.stop()}),this.root.nodes.forEach(Gv),this.root.sharedNodes.clear()}}}function xL(t){t.updateLayout()}function SL(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:a}=t.layout,{animationType:l}=t.options,u=n.source!==t.layout.source;l==="size"?rn(y=>{const w=u?n.measuredBox[y]:n.layoutBox[y],x=qt(w);w.min=i[y].min,w.max=w.min+x}):D1(l,n.layoutBox,i)&&rn(y=>{const w=u?n.measuredBox[y]:n.layoutBox[y],x=qt(i[y]);w.max=w.min+x,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[y].max=t.relativeTarget[y].min+x)});const d=ti();Ro(d,i,n.layoutBox);const f=ti();u?Ro(f,t.applyTransform(a,!0),n.measuredBox):Ro(f,i,n.layoutBox);const p=!A1(d);let g=!1;if(!t.resumeFrom){const y=t.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:w,layout:x}=y;if(w&&x){const T=Ze();Ao(T,n.layoutBox,w.layoutBox);const E=Ze();Ao(E,i,x.layoutBox),N1(T,E)||(g=!0),y.options.layoutRoot&&(t.relativeTarget=E,t.relativeTargetOrigin=T,t.relativeParent=y)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:f,layoutDelta:d,hasLayoutChanged:p,hasRelativeTargetChanged:g})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function bL(t){Eo&&rs.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function kL(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function EL(t){t.clearSnapshot()}function Gv(t){t.clearMeasurements()}function _L(t){t.isLayoutDirty=!1}function TL(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Xv(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function CL(t){t.resolveTargetDelta()}function PL(t){t.calcProjection()}
vendor: 9,379 bytes, line 240
240function RL(t){t.resetSkewAndRotation()}function AL(t){t.removeLeadSnapshot()}function Yv(t,e,n){t.translate=qe(e.translate,0,n),t.scale=qe(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Jv(t,e,n,i){t.min=qe(e.min,n.min,i),t.max=qe(e.max,n.max,i)}function NL(t,e,n,i){Jv(t.x,e.x,n.x,i),Jv(t.y,e.y,n.y,i)}function OL(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const LL={duration:.45,ease:[.4,0,.1,1]},Zv=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),e0=Zv("applewebkit/")&&!Zv("chrome/")?Math.round:Ht;function t0(t){t.min=e0(t.min),t.max=e0(t.max)}function DL(t){t0(t.x),t0(t.y)}function D1(t,e,n){return t==="position"||t==="preserve-aspect"&&!IO(qv(e),qv(n),.2)}function jL(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const ML=L1({attachResizeListener:(t,e)=>Fo(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Nd={current:void 0},j1=L1({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Nd.current){const t=new ML({});t.mount(window),t.setOptions({layoutScroll:!0}),Nd.current=t}return Nd.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),IL={pan:{Feature:ZO},drag:{Feature:JO,ProjectionNode:j1,MeasureLayout:C1}};function n0(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,l=i[a];l&&ze.postRender(()=>l(e,Jo(e)))}class FL extends Fr{mount(){const{current:e}=this.node;e&&(this.unmount=I2(e,n=>(n0(this.node,n,"Start"),i=>n0(this.node,i,"End"))))}unmount(){}}class BL extends Fr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=Yo(Fo(this.node.current,"focus",()=>this.onFocus()),Fo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function r0(t,e,n){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),l=i[a];l&&ze.postRender(()=>l(e,Jo(e)))}class UL extends Fr{mount(){const{current:e}=this.node;e&&(this.unmount=V2(e,n=>(r0(this.node,n,"Start"),(i,{success:a})=>r0(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const kf=new WeakMap,Od=new WeakMap,VL=t=>{const e=kf.get(t.target);e&&e(t)},zL=t=>{t.forEach(VL)};function $L({root:t,...e}){const n=t||document;Od.has(n)||Od.set(n,{});const i=Od.get(n),a=JSON.stringify(e);return i[a]||(i[a]=new IntersectionObserver(zL,{root:t,...e})),i[a]}function WL(t,e,n){const i=$L(e);return kf.set(t,n),i.observe(t),()=>{kf.delete(t),i.unobserve(t)}}const HL={some:0,all:1};class qL extends Fr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:a="some",once:l}=e,u={root:n?n.current:void 0,rootMargin:i,threshold:typeof a=="number"?a:HL[a]},d=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,l&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:g,onViewportLeave:y}=this.node.getProps(),w=p?g:y;w&&w(f)};return WL(this.node.current,u,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(KL(e,n))&&this.startObserver()}unmount(){}}function KL({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const QL={inView:{Feature:qL},tap:{Feature:UL},focus:{Feature:BL},hover:{Feature:FL}},GL={layout:{ProjectionNode:j1,MeasureLayout:C1}},Ef={current:null},M1={current:!1};function XL(){if(M1.current=!0,!!Yf)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ef.current=t.matches;t.addListener(e),e()}else Ef.current=!1}const YL=[...a1,_t,Mr],JL=t=>YL.find(o1(t)),s0=new WeakMap;function ZL(t,e,n){for(const i in e){const a=e[i],l=n[i];if(Tt(a))t.addValue(i,a);else if(Tt(l))t.addValue(i,Mo(a,{owner:t}));else if(l!==a)if(t.hasValue(i)){const u=t.getValue(i);u.liveStyle===!0?u.jump(a):u.hasAnimated||u.set(a)}else{const u=t.getStaticValue(i);t.addValue(i,Mo(u!==void 0?u:a,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const i0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class eD{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:a,blockInitialAnimation:l,visualState:u},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Eh,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 x=Ln.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,ze.render(this.render,!1,!0))};const{latestValues:f,renderState:p,onUpdate:g}=u;this.onUpdate=g,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=p,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=a,this.options=d,this.blockInitialAnimation=!!l,this.isControllingVariants=ou(n),this.isVariantNode=mx(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:y,...w}=this.scrapeMotionValuesFromProps(n,{},this);for(const x in w){const T=w[x];f[x]!==void 0&&Tt(T)&&T.set(f[x],!1)}}mount(e){this.current=e,s0.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),M1.current||XL(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ef.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){s0.delete(this.current),this.projection&&this.projection.unmount(),jr(this.notifyUpdate),jr(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Es.has(e),a=n.on("change",d=>{this.latestValues[e]=d,this.props.onUpdate&&ze.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),l=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{a(),l(),u&&u(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in wi){const n=wi[e];if(!n)continue;const{isEnabled:i,Feature:a}=n;if(!this.features[e]&&a&&i(this.props)&&(this.features[e]=new a(this)),this.features[e]){const l=this.features[e];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ze()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<i0.length;i++){const a=i0[i];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const l="on"+a,u=e[l];u&&(this.propEventSubscriptions[a]=this.on(a,u))}this.prevMotionValues=ZL(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
vendor: 4,423 bytes, line 240
240addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=Mo(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let a=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return a!=null&&(typeof a=="string"&&(s1(a)||Gx(a))?a=parseFloat(a):!JL(a)&&Mr.test(n)&&(a=t1(e,n)),this.setBaseTarget(e,Tt(a)?a.get():a)),Tt(a)?a.get():a}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let a;if(typeof i=="string"||typeof i=="object"){const u=sh(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);u&&(a=u[e])}if(i&&a!==void 0)return a;const l=this.getBaseTargetFromProps(this.props,e);return l!==void 0&&!Tt(l)?l:this.initialValues[e]!==void 0&&a===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new vh),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class I1 extends eD{constructor(){super(...arguments),this.KeyframeResolver=l1}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Tt(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function tD(t){return window.getComputedStyle(t)}class nD extends I1{constructor(){super(...arguments),this.type="html",this.renderInstance=Ex}readValueFromInstance(e,n){if(Es.has(n)){const i=kh(n);return i&&i.default||0}else{const i=tD(e),a=(Sx(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(e,{transformPagePoint:n}){return _1(e,n)}build(e,n,i){ah(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return dh(e,n,i)}}class rD extends I1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ze}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Es.has(n)){const i=kh(n);return i&&i.default||0}return n=_x.has(n)?n:th(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return Px(e,n,i)}build(e,n,i){lh(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,a){Tx(e,n,i,a)}mount(e){this.isSVGTag=ch(e.tagName),super.mount(e)}}const sD=(t,e)=>rh(t)?new rD(e):new nD(e,{allowProjection:t!==j.Fragment}),iD=A2({...PO,...QL,...IL,...GL},sD),vs=HA(iD),oD=[{key:"alle",label:"Alle"},{key:"nachhaltiger",label:"Nachhaltigkeit zuerst",icon:C0},{key:"kreativer",label:"Kreativität zuerst",icon:P0},{key:"secondhand",label:"Second Hand zuerst",icon:Ql},{key:"kosteneffizient",label:"Preis-Leistung zuerst",icon:T0}],o0={nachhaltiger:{icon:C0,label:"Nachhaltiger",bg:"bg-green-50",text:"text-green-700",border:"border-green-200",dot:"bg-green-500"},kreativer:{icon:P0,label:"Kreativer",bg:"bg-purple-50",text:"text-purple-700",border:"border-purple-200",dot:"bg-purple-500"},secondhand:{icon:Ql,label:"Second Hand",bg:"bg-amber-50",text:"text-amber-700",border:"border-amber-200",dot:"bg-amber-500"},kosteneffizient:{icon:T0,label:"Kosteneffizient",bg:"bg-blue-50",text:"text-blue-700",border:"border-blue-200",dot:"bg-blue-400"}};function aD({value:t}){const e=t>=4?"bg-green-500":t>=2.5?"bg-orange-400":"bg-red-500";return b.jsxs("div",{className:"flex items-center gap-1.5",children:[b.jsx("div",{className:`w-2 h-2 rounded-full ${e}`}),b.jsxs("span",{className:"text-xs text-gray-500",children:[t.toFixed(1)," / 5"]})]})}function lD({open:t,onClose:e,alternatives:n}){const[i,a]=j.useState("alle"),l=[...n||[]].sort((u,d)=>
240i==="alle"?0:u.tag===i&&d.tag!==i?-1:d.tag===i&&u.tag!==i?1:0);return b.jsx(lf,{children:t&&b.jsxs(b.Fragment,{children:[b.jsx(vs.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:e,className:"fixed inset-0 bg-black/40 z-[60]"}),b.jsxs(vs.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",stiffness:300,damping:30},className:"fixed right-0 top-0 h-full w-full max-w-md bg-white z-[70] shadow-2xl flex flex-col",children:[b.jsxs("div",{className:"sticky top-0 bg-white border-b border-gray-100 px-6 py-4",children:[b.jsxs("div",{className:"flex items-center justify-between mb-3",children:[b.jsxs("div",{children:[b.jsx("h2",{className:"text-lg font-black text-gray-900",children:"Bessere Alternativen"}),b.jsx("p",{className:"text-xs text-gray-500 mt-0.5",children:"Alle vereinen Preis, Nachhaltigkeit & Kreativität"})]}),b.jsx("button",{onClick:e,className:"p-2 rounded-full hover:bg-gray-100 transition-colors",children:b.jsx(Pf,{className:"w-5 h-5 text-gray-600"})})]}),b.jsx("div",{className:"flex gap-2 flex-wrap",children:oD.map(u=>{const d=u.icon,f=i===u.key;return b.jsxs("button",{onClick:()=>a(u.key),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-semibold border transition-all 241 ${f?"bg-gray-900 text-white border-gray-900":"bg-white text-gray-600 border-gray-200 hover:border-gray-400"}`,children:[d&&b.jsx(d,{className:"w-3 h-3"}),u.label]},u.key)})})]}),b.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-4",children:[l.length===0&&b.jsx("p",{className:"text-sm text-gray-400 text-center pt-10",children:"Keine Alternativen für diesen Filter."}),l.map((u,d)=>{const f=o0[u.tag]||o0.nachhaltiger,p=f.icon;return b.jsxs(vs.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{delay:d*.07},className:"border border-gray-200 rounded-2xl overflow-hidden hover:shadow-md transition-shadow",children:[b.jsxs("div",{className:"flex gap-4 p-4",children:[b.jsx("div",{className:"w-24 h-28 rounded-xl overflow-hidden bg-gray-100 flex-shrink-0",children:b.jsx("img",{src:u.image,alt:u.name,className:"w-full h-full object-cover"})}),b.jsxs("div",{className:"flex-1 min-w-0 space-y-1.5",children:[b.jsxs("div",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full border text-xs font-semibold ${f.bg} ${f.text} ${f.border}`,children:[b.jsx(p,{className:"w-3 h-3"}),f.label]}),b.jsx("p",{className:"text-xs text-gray-400 font-medium uppercase tracking-wider",children:u.brand}),b.jsx("p",{className:"text-sm font-semibold text-gray-900 leading-snug",children:u.name}),b.jsx("p",{className:"text-base font-black text-gray-900",children:u.price}),b.jsx(aD,{value:u.score||3})]})]}),b.jsxs("div",{className:"px-4 pb-4",children:[b.jsx("p",{className:"text-xs text-gray-500 leading-relaxed",children:u.reason}),u.url&&b.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs font-semibold text-gray-900 hover:underline mt-2",children:["Zum Produkt ",b.jsx(fk,{className:"w-3 h-3"})]})]})]},d)})]})]})]})})}const a0=[{key:"material_score",label:"Material",icon:yk,description:"Was bedeutet das? Dieser Score bewertet das Produkt selbst â was es ist und wie lange es hält. Er berechnet sich aus: Material (Bio-Baumwolle oder Recycling = gut, konventionelle Baumwolle oder Synthetik = schlecht), Wasserverbrauch (konventionelle Baumwolle benötigt ~2.700 Liter pro Shirt, recycelte Fasern bis zu 95% weniger), Reparatur & Recycling (gibt es Reparaturhinweise, einen Reparaturservice oder kann es am Ende recycelt werden?) und Langlebigkeit (wie lange hält das Produkt aufgrund von Verarbeitung, Marke und Preis wirklich?)."},{key:"produktionsweg",label:"Produktionsweg",icon:_k,description:"Was bedeutet das? Dieser Score fasst zusammen, wie das Produkt von der Faser bis zum Regal gelangt ist. Er berechnet sich aus zwei Unterkategorien: Herkunftsländer (wie viele Länder an Anbau, Spinnen, Weben, Nähen und Veredeln beteiligt waren) und Transport (wie weit und womit â LKW aus Portugal oder Schiff aus Bangladesch?). Je kürzer und sauberer der Weg, desto besser."},{key:"bewertungen",label:"Bewertungen",icon:rk,description:"Was bedeutet das? Dieser Score fasst externe Bewertungen des Produkts und der Marke zusammen. Er berechnet sich aus: Labels (unabhängige Zertifizierungen wie GOTS, Fair Trade, Oeko-Tex â keine Zertifizierung = 0/5), Kundenbewertungen (echte Qualitäts- und Haltbarkeitseinschätzungen von Käufern) und der Greenpeace-Einschätzung (aus dem 'Detox My Fashion'-Programm, das Marken auf Chemikalieneinsatz und Lieferkettentransparenz bewertet)."}];function uu(t){return t>=4?{bg:"bg-green-500",text:"text-green-700",light:"bg-green-50",border:"border-green-200",label:"Gut"}:t>=2?{bg:"bg-orange-400",text:"text-orange-700",light:"bg-orange-50",border:"border-orange-200",label:"Mittel"}:{bg:"bg-red-500",text:"text-red-700",light:"bg-red-50",border:"border-red-200",label:"Schlecht"}}function uD({value:t}){const e=t/5*100,n=uu(t);return b.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[b.jsx("div",{className:"flex-1 h-1.5 bg-gray-100 rounded-full overflow-hidden",children:b.jsx("div",{className:`h-full rounded-full ${n.bg}`,style:{width:`${e}%`}})}),b.jsx("span",{className:`text-xs font-bold w-6 text-right ${n.text}`,children:t.toFixed(1)})]})}function cD({criterion:t,value:e,onClick:n}){const i=t.icon,a=uu(e);return b.jsxs("button",{onClick:n,className:"w-full flex items-center gap-2 p-2 rounded-lg hover:bg-gray-50 transition-colors group text-left",children:[b.jsx("div",{className:`p-1 rounded ${a.bg} flex-shrink-0`,children:b.jsx(i,{className:"w-3 h-3 text-white"})}),b.jsx("span",{className:"text-xs text-gray-600 w-28 flex-shrink-0",children:t.label}),b.jsx(uD,{value:e}),b.jsx(mk,{className:"w-3 h-3 text-gray-300 group-hover:text-gray-500 flex-shrink-0 transition-colors"})]})}function dD({criterion:t,value:e,detail:n,onClose:i}){const a=t.icon,l=uu(e);return b.jsxs(vs.div,{initial:{opacity:0}
241,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[80] flex items-center justify-center px-4",onClick:i,children:[b.jsx("div",{className:"absolute inset-0 bg-black/40"}),b.jsxs(vs.div,{initial:{scale:.9,y:20},animate:{scale:1,y:0},exit:{scale:.9,y:20},onClick:u=>u.stopPropagation(),className:"relative bg-white rounded-2xl shadow-2xl p-6 max-w-sm w-full z-10",children:[b.jsx("button",{onClick:i,className:"absolute top-4 right-4 text-gray-400 hover:text-gray-700",children:b.jsx(Pf,{className:"w-4 h-4"})}),b.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[b.jsx("div",{className:`p-2.5 rounded-xl ${l.bg}`,children:b.jsx(a,{className:"w-5 h-5 text-white"})}),b.jsxs("div",{children:[b.jsx("h3",{className:"font-black text-gray-900 text-base",children:t.label}),b.jsxs("span",{className:`text-xs font-semibold px-2 py-0.5 rounded-full ${l.light} ${l.text} ${l.border} border`,children:[l.label," · ",e.toFixed(1)," / 5"]})]})]}),b.jsx("div",{className:"h-2 bg-gray-100 rounded-full mb-4 overflow-hidden",children:b.jsx("div",{className:`h-full rounded-full ${l.bg}`,style:{width:`${e/5*100}%`}})}),b.jsx("p",{className:"text-xs text-gray-500 leading-relaxed mb-3",children:t.description}),n&&b.jsxs("div",{className:`p-3 rounded-xl ${l.light} border ${l.border}`,children:[b.jsx("p",{className:`text-xs font-bold ${l.text} mb-1`,children:"Bei diesem Produkt:"}),b.jsx("p",{className:"text-xs text-gray-700 leading-relaxed",children:n})]})]})]})}
241function fD({analysis:t,isLoading:e}){var w;const[n,i]=j.useState(!0),[a,l]=j.useState(!1),[u,d]=j.useState(null);if(e)return b.jsx("div",{className:"fixed top-20 right-4 z-50",children:b.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl border border-gray-100 p-4 w-60 flex items-center gap-3",children:[b.jsx("div",{className:"w-8 h-8 rounded-xl bg-emerald-50 flex items-center justify-center",children:b.jsx(ad,{className:"w-4 h-4 text-emerald-600 animate-pulse"})}),b.jsxs("div",{children:[b.jsx("p",{className:"text-xs font-bold text-gray-800",children:"ClearCloset-Score lädtâ¦"}),b.jsx("div",{className:"flex gap-1 mt-1.5",children:[0,1,2].map(x=>b.jsx("div",{className:"w-1.5 h-1.5 bg-emerald-400 rounded-full animate-bounce",style:{animationDelay:`${x*.15}s`}},x))})]})]})});if(!t)return null;const f=t.criteria_scores||{},p=a0.map(x=>f[x.key]??0),g=p.reduce((x,T)=>x+T,0)/p.length,y=uu(g);return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"fixed top-20 right-4 z-50 w-72",children:b.jsxs(vs.div,{initial:{opacity:0,x:40,scale:.95},animate:{opacity:1,x:0,scale:1},transition:{type:"spring",stiffness:260,damping:22},className:"bg-white rounded-2xl shadow-2xl border border-gray-100 overflow-hidden",children:[b.jsxs("div",{className:`${y.bg} px-4 py-3 flex items-center justify-between`,children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(ad,{className:"w-4 h-4 text-white"}),b.jsx("span",{className:"text-white text-sm font-black tracking-wide",children:"ClearCloset-Score"})]}),b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsxs("div",{className:"bg-white/20 rounded-lg px-2 py-0.5",children:[b.jsx("span",{className:"text-white text-lg font-black",children:g.toFixed(1)}),b.jsx("span",{className:"text-white/70 text-xs",children:"/5"})]}),b.jsx("button",{onClick:()=>i(x=>!x),className:"text-white/80 hover:text-white transition-colors",children:b.jsx(ak,{className:`w-4 h-4 transition-transform ${n?"rotate-180":""}`})})]})]}),b.jsx(lf,{children:n&&b.jsx(vs.div,{initial:{height:0},animate:{height:"auto"},exit:{height:0},className:"overflow-hidden",children:b.jsxs("div",{className:"px-3 py-3 space-y-1",children:[a0.map(x=>b.jsx(cD,{criterion:x,value:f[x.key]??0,onClick:()=>d(x)},x.key)),b.jsx("div",{className:"pt-2 border-t border-gray-100",children:b.jsx("p",{className:"text-xs text-gray-500 leading-relaxed px-1 line-clamp-2",children:t.summary})}),b.jsxs("button",{onClick:()=>l(!0),className:"w-full flex items-center justify-center gap-1.5 bg-gray-900 hover:bg-gray-700 text-white text-xs font-bold py-2.5 rounded-xl transition-colors mt-1",children:[b.jsx(ad,{className:"w-3.5 h-3.5"}),"Bessere Alternativen"]})]})})})]})}),b.jsx(lf,{children:u&&b.jsx(dD,{criterion:u,value:f[u.key]??0,detail:(w=t.criteria_details)==null?void 0:w[u.key],onClose:()=>d(null)})}),b.jsx(lD,{open:a,onClose:()=>l(!1),alternatives:t.alternatives})]})}const hD=["XS","S","M","L","XL","XXL"],pD=t=>` 242Du bist ein strenger Nachhaltigkeitsexperte für Mode. Analysiere das folgende Produkt EHRLICH und ohne Schönfärberei. Gib eine strukturierte JSON-Bewertung zurück. 243 244Produkt: "${t.name}" 245Preis: ${t.price} 246Material: ${t.material} 247Herkunft: ${t.origin} 248Labels: ${t.labels} 249 250Berechne die folgenden 3 zusammengesetzten Scores (0.0â5.0). Sei STRENG und REALISTISCH: 251 252Score 1: "material_score" = Durchschnitt aus material + water + repair_recycling + longevity 253- material: 100% Bio/Recycelt = 5.0, Konv. Baumwolle = 2.5, Baumwolle+Synthetik = 1.5, Polyester = 0.5 254- water: Recycelte Fasern = 5.0, Bio-Baumwolle = 3.5, Konv. Baumwolle ohne Angaben = 1.5, Polyester = 1.0 255- repair_recycling: Kein Hinweis + Mischfasern = 1.0, Pflegehinweise + 100% Baumwolle recyclebar = 2.5, Reparaturservice + Rücknahmeprogramm = 5.0 256- longevity: Fast-Fashion unter 10⬠= 1.0â1.5, Mid-range 10â20⬠= 2.5â3.0, Premium > 25⬠= 3.5â4.5 257 258Score 2: "produktionsweg" = Durchschnitt aus origins_count + transport 259- origins_count: Anzahl beteiligte Länder (AnbauâSpinnenâWebenâNähenâVeredeln) 260 Bangladesch = 1.0â1.5, China = 2.0â2.5, Portugal/Türkei = 3.5â4.0 261- transport: Schiff aus Bangladesch/China = 1.5â2.0, LKW aus Portugal/Türkei = 4.0â4.5, Luftfracht = 0.5 262 263Score 3: "bewertungen" = Durchschnitt aus labels + customer_rating + greenpeace 264- labels: STRENG â Keine Zertifizierungen = 0.0, Better Cotton = 1.5, Oeko-Tex = 2.5, GOTS = 4.0, GOTS+Fair Trade = 5.0 265- customer_rating: Fast-Fashion unter 10⬠= 1.5â2.0, Mid-range = 3.0, Premium > 25⬠= 3.5â4.5 266- greenpeace: H&M/Zara/Primark ohne Kooperation = 1.5â2.0, Unbekannte Marke = 1.0, Aktive Kooperation = 4.0â5.0 267 268Wenn Herkunft China â origins_count max 2.5, transport max 2.0 269Wenn Herkunft Bangladesch â origins_count max 1.5, transport max 2.0 270Wenn Labels = "Keine Zertifizierungen" â labels MUSS 0.0 sein â bewertungen automatisch tiefer 271 272WICHTIG für die Alternativen: 273Schlage genau 4 weiÃe T-Shirt-Alternativen vor. ALLE 4 vereinen Preis, Nachhaltigkeit UND Kreativität â aber jede betont eine Dimension besonders: 274- 1x tag "nachhaltiger": Deutlich nachhaltiger (score >= 4.0), GOTS/Fair Trade, faire Marke. Preis darf höher sein aber muss gerechtfertigt sein. url = echte Produktseite der Marke (z.B. https://www.organicbasics.com/). 275- 1x tag "kreativer": WeiÃes Shirt mit kreativem Design (Spitze, Stickerei, Struktur, Rückenausschnitt), trotzdem nachhaltig produziert. url = echte Produktseite der Marke. 276- 1x tag "secondhand": Ein weiÃes T-Shirt von einer nachhaltigen oder hochwertigen Marke auf Vinted. Günstig UND nachhaltig durch Wiederverwendung. url MUSS "https://www.vinted.de/" sein. 277- 1x tag "kosteneffizient": Das günstigste weiÃe T-Shirt. Preis MUSS deutlich UNTER dem Originalpreis (${t.price}) liegen â ideal 3-6 â¬, absolut maximal 7 â¬. Nutze günstige Basic-Marken (z.B. H&M, C&A, Kik, Ernesto, Sterling). Trotz niedrigem Preis etwas langlebiger als reine Fast-Fashion. url = echte Produktseite der Marke. 278 279Nutze reale Marken: Arket, Patagonia, Everlane, Thought Clothing, People Tree, Samsøe Samsøe, Organic Basics, Tentree, Eileen Fisher, Stanley/Stella, Uniqlo. 280
281Für Bilder: Verwende NUR diese Unsplash-URLs von weiÃen T-Shirts (immer vollständige URL mit ?w=400&h=500&fit=crop). Jede Alternative bekommt ein ANDERES Bild. WICHTIG: Verwende NICHT diese IDs (die schon im Katalog genutzt werden): 1521572163474-6864f9cf17ab, 1581655353564-df123a1eb820, 1622445275463-afa2ab738c34, 1651761179569-4ba2aa054997, 1574180566232-aaad1b5b8450, 1576417677416-6ca3adfb5435. 282Nutze stattdessen diese 4 (jeweils eine pro Alternative, in dieser Reihenfolge): 283- https://images.unsplash.com/photo-1622445272461-c6580cab8755?w=400&h=500&fit=crop (Mann im weiÃen T-Shirt mit Kopfhörer) 284- https://images.unsplash.com/photo-1661181475147-bbd20ef65781?w=400&h=500&fit=crop (Mann im weiÃen T-Shirt mit Sonnenbrille) 285- https://images.unsplash.com/photo-1503342217505-b0a15ec3261c?w=400&h=500&fit=crop (weiÃes T-Shirt auf Bügel) 286- https://images.unsplash.com/photo-1620799140408-edc6dcb6d84b?w=400&h=500&fit=crop (weiÃes T-Shirt gefaltet) 287 288criteria_details: Erkläre für jeden der 3 Scores in 2-3 Sätzen konkret wie es bei DIESEM Produkt aussieht â nenne die einzelnen Unterkategorien mit ihren Einschätzungen. 289 290Antworte NUR als JSON: 291{ 292 "summary": "2-3 Sätze Gesamtbewertung â ehrlich und ohne Schönfärberei", 293 "criteria_scores": { 294 "produktionsweg": 1.8, 295 "bewertungen": 1.2, 296 "material_score": 2.0 297 }, 298 "criteria_details": { 299 "material_score": "Material: 100% konventionelle Baumwolle ohne Bio-Zertifizierung (2.5/5). Wasserverbrauch: Konventionelle Baumwolle ohne Wassermanagement, ca. 2.700 Liter pro Shirt (1.5/5). Reparatur & Recycling: Keine Reparaturhinweise, aber 100% Baumwolle grundsätzlich recyclebar (2.0/5). Langlebigkeit: Als günstige Fast-Fashion erfahrungsgemäà gering (1.5/5).", 300 "produktionsweg": "Herkunftsländer: Produktion in Bangladesch = 4â5 beteiligte Länder (1.2/5). Transport: Schiffstransport von Bangladesch nach Europa â langer Weg, aber immerhin kein Luftfracht (2.0/5).", 301 "bewertungen": "Labels: Keinerlei Zertifizierungen angegeben (0.0/5). Kundenbewertungen: In dieser Preisklasse häufig gemischt (2.0/5). Greenpeace: Keine aktive Kooperation bekannt (1.5/5)." 302 }, 303 "alternatives": [ 304 { "name": "Name", "brand": "Marke", "price": "X,XX â¬", "image": "https://images.unsplash.com/photo-1622445272461-c6580cab8755?w=400&h=500&fit=crop", "tag": "nachhaltiger", "score": 4.5, "reason": "Besonders nachhaltig: 1-2 konkrete Gründe.", "url": "" }, 305 { "name": "Name", "brand": "Marke", "price": "X,XX â¬", "image": "https://images.unsplash.com/photo-1661181475147-bbd20ef65781?w=400&h=500&fit=crop", "tag": "kreativer", "score": 3.8, "reason": "Kreatives Design UND nachhaltig: 1-2 konkrete Gründe.", "url": "" }, 306 { "name": "WeiÃes T-Shirt (Second Hand)", "brand": "Vinted / Depop", "price": "X,XX â¬", "image": "https://images.unsplash.com/photo-1503342217505-b0a15ec3261c?w=400&h=500&fit=crop", "tag": "secondhand", "score": 4.0, "reason": "Second Hand: 1-2 konkrete Gründe warum das nachhaltiger und günstiger ist.", "url": "" }, 307 { "name": "Name", "brand": "Marke", "price": "X,XX â¬", "image": "https://images.unsplash.com/photo-1620799140408-edc6dcb6d84b?w=400&h=500&fit=crop", "tag": "kosteneffizient", "score": 3.5, "reason": "Beste Preis-Leistung: 1-2 konkrete Gründe.", "url": "" } 308 ] 309} 310`,mD={type:"object",properties:{summary:{type:"string"},criteria_scores:{type:"object",properties:{produktionsweg:{type:"number"},bewertungen:{type:"number"},material_score:{type:"number"}}},criteria_details:{type:"object",properties:{produktionsweg:{type:"string"},bewertungen:{type:"string"},material_score:{type:"string"}}},alternatives:{type:"array",items:{type:"object",properties:{name:{type:"string"},brand:{type:"string"},price:{type:"string"},image:{type:"string"},tag:{type:"string"},score:{type:"number"},reason:{type:"string"},url:{type:"string"}}}}}};function gD({product:t,onAddToCart:e}){const[n,i]=j.useState(null),[a,l]=j.useState(!1),[u,d]=j.useState(!1),[f,p]=j.useState(null),[g,y]=j.useState(!0);j.useEffect(()=>{p(null),y(!0),Js.integrations.Core.InvokeLLM({prompt:pD(t),response_json_schema:mD}).then(x=>{p(x),y(!1)})},[t.id]);const w=()=>{n&&(e(),l(!0),setTimeout(()=>l(!1),2e3))};return b.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 py-8",children:[b.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-10 xl:gap-16",children:[b.jsxs("div",{className:"space-y-3",children:[b.jsx("div",{className:"aspect-[3/4] bg-gray-100 overflow-hidden rounded-lg",children:b.jsx("img",{src:t.image,alt:t.name,className:"w-full h-full object-cover"})}),b.jsx("div",{className:"grid grid-cols-4 gap-2",children:[t.image,t.image,t.image,t.image].map((x,T)=>b.jsx("div",{className:`aspect-[3/4] bg-gray-100 overflow-hidden rounded cursor-pointer border-2 ${T===0?"border-black":"border-transparent hover:border-gray-300"} transition-colors`,children:b.jsx("img",{src:x,alt:"",className:"w-full h-full object-cover opacity-80"})},T))})]}),b.jsxs("div",{className:"space-y-6 pt-2 lg:pr-80",children:[b.jsxs("div",{children:[b.jsx("p",{className:"text-xs text-gray-500 uppercase tracking-widest font-semibold mb-1",children:t.brand}),b.jsxs("div",{className:"flex items-start justify-between gap-3",children:[b.jsx("h1",{className:"text-2xl sm:text-3xl font-black text-black leading-tight",children:t.name}),b.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0 pt-1",children:[b.jsx("button",{onClick:()=>d(x=>!x),className:"p-2 rounded-full hover:bg-gray-100 transition-colors",children:b.jsx(Cf,{className:`w-5 h-5 ${u?"fill-red-500 text-red-500":"text-gray-400"}`})}),b.jsx("button",{className:"p-2 rounded-full hover:bg-gray-100 transition-colors",children:b.jsx(Nk,{className:"w-5 h-5 text-gray-400"})})]})]}),b.jsx("p",{className:"text-2xl font-bold text-black mt-3",children:t.price}),b.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[b.jsx("div",{className:"flex",children:[1,2,3,4,5].map(x=>b.jsx(jk,{className:`w-4 h-4 ${x<=2?"fill-amber-400 text-amber-400":"fill-gray-200 text-gray-200"}`},x))}),b.jsx("span",{className:"text-sm text-gray-500",children:"(47 Bewertungen)"})]})]}),b.jsx("p",{className:"text-sm text-gray-600 leading-relaxed",children:t.description}),b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center justify-between mb-3",children:[b.jsx("span",{className:"text-sm font-semibold text-black",children:"GröÃe auswählen"}),b.jsxs("button",{className:"flex items-center gap-1 text-xs text-gray-500 hover:text-black transition-colors",children:[b.jsx(Ck,{className:"w-3.5 h-3.5"})," GröÃentabelle"]})]}),b.jsx("div",{className:"grid grid-cols-6 gap-2",children:hD.map(x=>b.jsx("button",{onClick:()=>i(x),className:`py-2.5 text-sm font-medium rounded border transition-all 311 ${n===x?"border-black bg-black text-white":"border-gray-300 text-gray-700 hover:border-gray-600"}`,children:x},x))})]}),b.jsxs("div",{className:"space-y-3",children:[b.jsx("button",{onClick:w,disabled:!n,className:`w-full py-4 rounded-lg font-bold text-base transition-all flex items-center justify-center gap-2 312 ${n?a?"bg-green-600 text-white":"bg-black text-white hover:bg-gray-800":"bg-gray-200 text-gray-400 cursor-not-allowed"}`,children:a?b.jsxs(b.Fragment,{children:[b.jsx(ik,{className:"w-5 h-5"})," In den Warenkorb gelegt"]}):b.jsxs(b.Fragment,{children:[b.jsx(Ql,{className:"w-5 h-5"})," In den Warenkorb"]})}),!n&&b.jsx("p",{className:"text-xs text-center text-gray-400",children:"Bitte wähle eine GröÃe aus"})]}),b.jsxs("div",{className:"border-t border-gray-200 pt-5 space-y-2",children:[b.jsxs("div",{className:"flex justify-between text-sm",children:[b.jsx("span",{className:"text-gray-500",children:"Material"}),b.jsx("span",{className:"font-medium text-gray-900",children:t.material})]}),b.jsxs("div",{className:"flex justify-between text-sm",children:[b.jsx("span",{className:"text-gray-500",children:"Herkunft"}),b.jsx("span",{className:"font-medium text-gray-900",children:t.origin})]}),b.jsxs("div",{className:"flex justify-between text-sm",children:[b.jsx("span",{className:"text-gray-500",children:"Labels"}),b.jsx("span",{className:"font-medium text-gray-900",children:t.labels})]}),b.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-500 pt-1",children:[b.jsx(kk,{className:"w-4 h-4"}),b.jsx("span",{children:"Kostenlose Rückgabe innerhalb von 30 Tagen"})]})]})]})]}),b.jsx(fD,{analysis:f,isLoading:g})]})}function yD(){const[t,e]=j.useState(null),[n,i]=j.useState(0);return b.jsxs("div",{className:"min-h-screen bg-white font-inter",children:[b.jsx(OA,{cartCount:n,onBack:t?()=>e(null):null}),t?b.jsx(gD,{product:t,onAddToCart:()=>i(a=>a+1),onBack:()=>e(null)}):b.jsx(LA,{onSelect:e})]})}function vD(){return b.jsx(yD,{})}const wD=()=>{const{isLoadingAuth:t,isLoadingPublicSettings:e,authError:n,navigateToLogin:i}=yA();if(e||t)return b.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:b.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(n){if(n.type==="user_not_registered")return b.jsx(vA,{});if(n.type==="auth_required")return i(),null}return b.jsxs(Z_,{children:[b.jsx(Gd,{path:"/",element:b.jsx(vD,{})}),b.jsx(Gd,{path:"*",element:b.jsx(mA,{})})]})};function xD(){return b.jsx(gA,{children:b.jsxs(n_,{client:m_,children:[b.jsx(nT,{children:b.jsx(wD,{})}),b.jsx(AE,{})]})})}qb.createRoot(document.getElementById("root")).render(b.jsx(xD,{}));
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.