1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ProductDetail-S8DYrbLM.js","assets/arrow-left-D8-KqQH5.js","assets/FreshlyBaked-DW5tkEM2.js","assets/StoreLocations-C9gUYEry.js","assets/catalog-DMM6asJb.js","assets/useCatalog-C_01g3IE.js","assets/PickupReservationDialog-CF9CUt9Z.js","assets/dialog-t4CJgRTD.js","assets/input-BADgF_os.js","assets/textarea-Cn23ro13.js","assets/label-DMuLwj-Z.js","assets/PageNavigation-4i4inwhb.js","assets/calendar-clock-Dn1kuORb.js","assets/Frozen-B_zE46MW.js","assets/check-CL-2MtFV.js","assets/copy-jz65nOWl.js","assets/Events-B-9JcVIn.js","assets/YerbaMate-Ce2zbh1I.js","assets/collectionTitles-PYKj2SlU.js","assets/AlmacenArgentino-Bt4xs9AN.js","assets/Vino-BazCd9bK.js","assets/Cupones-Dh1x2IqW.js","assets/Account-B7UtyDWl.js","assets/log-out-CX8ADKsI.js","assets/AccountSettings-Z_DWTDt3.js","assets/ResetPassword-LvaXSrh5.js","assets/Contact-xFytEkh4.js","assets/mail-PLdv9ont.js","assets/AdminLogin-B9efCwkY.js","assets/AdminCoupons-4c8CWkgG.js","assets/AdminClients-CTklPmI1.js","assets/AdminReservations-Bcb3x-q3.js","assets/DeliveryApps-CCLDp8tF.js"])))=>i.map(i=>d[i]); 2var JT=Object.defineProperty;
vendor: 4,273 bytes, lines 2-10
2var ay=e=>{throw TypeError(e)};var XT=(e,t,n)=>t in e?JT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var zn=(e,t,n)=>XT(e,typeof t!="symbol"?t+"":t,n),xd=(e,t,n)=>t.has(e)||ay("Cannot "+n);var T=(e,t,n)=>(xd(e,t,"read from private field"),n?n.call(e):t.get(e)),J=(e,t,n)=>t.has(e)?ay("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),V=(e,t,n,r)=>(xd(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),se=(e,t,n)=>(xd(e,t,"access private method"),n);var _l=(e,t,n,r)=>({set _(s){V(e,t,s,n)},get _(){return T(e,t,r)}});function ZT(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function il(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fx={exports:{}},Ou={},Vx={exports:{}},re={};/** 3 * @license React 4 * react.production.min.js 5 * 6 * Copyright (c) Facebook, Inc. and its affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var ol=Symbol.for("react.element"),eC=Symbol.for("react.portal"),tC=Symbol.for("react.fragment"),nC=Symbol.for("react.strict_mode"),rC=Symbol.for("react.profiler"),sC=Symbol.for("react.provider"),iC=Symbol.for("react.context"),oC=Symbol.for("react.forward_ref"),aC=Symbol.for("react.suspense"),lC=Symbol.for("react.memo"),cC=Symbol.for("react.lazy"),ly=Symbol.iterator;function uC(e){return e===null||typeof e!="object"?null:(e=ly&&e[ly]||e["@@iterator"],typeof e=="function"?e:null)}var Ux={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zx=Object.assign,Bx={};function vo(e,t,n){this.props=e,this.context=t,this.refs=Bx,this.updater=n||Ux}vo.prototype.isReactComponent={};vo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};vo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wx(){}Wx.prototype=vo.prototype;function Jp(e,t,n){this.props=e,this.context=t,this.refs=Bx,this.updater=n||Ux}var Xp=Jp.prototype=new Wx;Xp.constructor=Jp;zx(Xp,vo.prototype);Xp.isPureReactComponent=!0;var cy=Array.isArray,Hx=Object.prototype.hasOwnProperty,Zp={current:null},Kx={key:!0,ref:!0,__self:!0,__source:!0};function qx(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Hx.call(t,r)&&!Kx.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];s.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:ol,type:e,key:i,ref:o,props:s,_owner:Zp.current}}function dC(e,t){return{$$typeof:ol,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function em(e){return typeof e=="object"&&e!==null&&e.$$typeof===ol}function hC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var uy=/\/+/g;function bd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?hC(""+e.key):t.toString(36)}
vendor: 4,786 bytes, lines 10-18
10function mc(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ol:case eC:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+bd(o,0):r,cy(s)?(n="",e!=null&&(n=e.replace(uy,"$&/")+"/"),mc(s,t,n,"",function(c){return c})):s!=null&&(em(s)&&(s=dC(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(uy,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",cy(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+bd(i,a);o+=mc(i,t,n,l,s)}else if(l=uC(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+bd(i,a++),o+=mc(i,t,n,l,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Tl(e,t,n){if(e==null)return e;var r=[],s=0;return mc(e,r,"","",function(i){return t.call(n,i,s++)}),r}function fC(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ft={current:null},gc={transition:null},pC={ReactCurrentDispatcher:ft,ReactCurrentBatchConfig:gc,ReactCurrentOwner:Zp};function Gx(){throw Error("act(...) is not supported in production builds of React.")}re.Children={map:Tl,forEach:function(e,t,n){Tl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Tl(e,function(){t++}),t},toArray:function(e){return Tl(e,function(t){return t})||[]},only:function(e){if(!em(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};re.Component=vo;re.Fragment=tC;re.Profiler=rC;re.PureComponent=Jp;re.StrictMode=nC;re.Suspense=aC;re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pC;re.act=Gx;re.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=zx({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Zp.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Hx.call(t,l)&&!Kx.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:ol,type:e.type,key:s,ref:i,props:r,_owner:o}};re.createContext=function(e){return e={$$typeof:iC,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:sC,_context:e},e.Consumer=e};re.createElement=qx;re.createFactory=function(e){var t=qx.bind(null,e);return t.type=e,t};re.createRef=function(){return{current:null}};re.forwardRef=function(e){return{$$typeof:oC,render:e}};re.isValidElement=em;re.lazy=function(e){return{$$typeof:cC,_payload:{_status:-1,_result:e},_init:fC}};re.memo=function(e,t){return{$$typeof:lC,type:e,compare:t===void 0?null:t}};re.startTransition=function(e){var t=gc.transition;gc.transition={};try{e()}finally{gc.transition=t}};re.unstable_act=Gx;re.useCallback=function(e,t){return ft.current.useCallback(e,t)};re.useContext=function(e){return ft.current.useContext(e)};re.useDebugValue=function(){};re.useDeferredValue=function(e){return ft.current.useDeferredValue(e)};re.useEffect=function(e,t){return ft.current.useEffect(e,t)};re.useId=function(){return ft.current.useId()};re.useImperativeHandle=function(e,t,n){return ft.current.useImperativeHandle(e,t,n)};re.useInsertionEffect=function(e,t){return ft.current.useInsertionEffect(e,t)};re.useLayoutEffect=function(e,t){return ft.current.useLayoutEffect(e,t)};re.useMemo=function(e,t){return ft.current.useMemo(e,t)};re.useReducer=function(e,t,n){return ft.current.useReducer(e,t,n)};re.useRef=function(e){return ft.current.useRef(e)};re.useState=function(e){return ft.current.useState(e)};re.useSyncExternalStore=function(e,t,n){return ft.current.useSyncExternalStore(e,t,n)};re.useTransition=function(){return ft.current.useTransition()};re.version="18.3.1";Vx.exports=re;var b=Vx.exports;const N=il(b),tm=ZT({__proto__:null,default:N},[b]);/** 11 * @license React 12 * react-jsx-runtime.production.min.js 13 * 14 * Copyright (c) Facebook, Inc. and its affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var mC=b,gC=Symbol.for("react.element"),yC=Symbol.for("react.fragment"),vC=Object.prototype.hasOwnProperty,wC=mC.__SECRET_INT
vendor: 10,602 bytes, lines 18-34
18ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xC={key:!0,ref:!0,__self:!0,__source:!0};function Yx(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)vC.call(t,r)&&!xC.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:gC,type:e,key:i,ref:o,props:s,_owner:wC.current}}Ou.Fragment=yC;Ou.jsx=Yx;Ou.jsxs=Yx;Fx.exports=Ou;var h=Fx.exports,Qx={exports:{}},It={},Jx={exports:{}},Xx={};/** 19 * @license React 20 * scheduler.production.min.js 21 * 22 * Copyright (c) Facebook, Inc. and its affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */(function(e){function t(A,R){var L=A.length;A.push(R);e:for(;0<L;){var G=L-1>>>1,W=A[G];if(0<s(W,R))A[G]=R,A[L]=W,L=G;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var R=A[0],L=A.pop();if(L!==R){A[0]=L;e:for(var G=0,W=A.length,X=W>>>1;G<X;){var ee=2*(G+1)-1,he=A[ee],Ce=ee+1,ne=A[Ce];if(0>s(he,L))Ce<W&&0>s(ne,he)?(A[G]=ne,A[Ce]=L,G=Ce):(A[G]=he,A[ee]=L,G=ee);else if(Ce<W&&0>s(ne,L))A[G]=ne,A[Ce]=L,G=Ce;else break e}}return R}function s(A,R){var L=A.sortIndex-R.sortIndex;return L!==0?L:A.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],u=1,d=null,p=3,f=!1,v=!1,m=!1,w=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(A){for(var R=n(c);R!==null;){if(R.callback===null)r(c);else if(R.startTime<=A)r(c),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(c)}}function S(A){if(m=!1,x(A),!v)if(n(l)!==null)v=!0,H(E);else{var R=n(c);R!==null&&$(S,R.startTime-A)}}function E(A,R){v=!1,m&&(m=!1,g(C),C=-1),f=!0;var L=p;try{for(x(R),d=n(l);d!==null&&(!(d.expirationTime>R)||A&&!D());){var G=d.callback;if(typeof G=="function"){d.callback=null,p=d.priorityLevel;var W=G(d.expirationTime<=R);R=e.unstable_now(),typeof W=="function"?d.callback=W:d===n(l)&&r(l),x(R)}else r(l);d=n(l)}if(d!==null)var X=!0;else{var ee=n(c);ee!==null&&$(S,ee.startTime-R),X=!1}return X}finally{d=null,p=L,f=!1}}var k=!1,_=null,C=-1,P=5,j=-1;function D(){return!(e.unstable_now()-j<P)}function O(){if(_!==null){var A=e.unstable_now();j=A;var R=!0;try{R=_(!0,A)}finally{R?z():(k=!1,_=null)}}else k=!1}var z;if(typeof y=="function")z=function(){y(O)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,Q=M.port2;M.port1.onmessage=O,z=function(){Q.postMessage(null)}}else z=function(){w(O,0)};function H(A){_=A,k||(k=!0,z())}function $(A,R){C=w(function(){A(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_continueExecution=function(){v||f||(v=!0,H(E))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(A){switch(p){case 1:case 2:case 3:var R=3;break;default:R=p}var L=p;p=R;try{return A()}finally{p=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,R){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var L=p;p=A;try{return R()}finally{p=L}},e.unstable_scheduleCallback=function(A,R,L){var G=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?G+L:G):L=G,A){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=L+W,A={id:u++,callback:R,priorityLevel:A,startTime:L,expirationTime:W,sortIndex:-1},L>G?(A.sortIndex=L,t(c,A),n(l)===null&&A===n(c)&&(m?(g(C),C=-1):m=!0,$(S,L-G))):(A.sortIndex=W,t(l,A),v||f||(v=!0,H(E))),A},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(A){var R=p;return function(){var L=p;p=R;try{return A.apply(this,arguments)}finally{p=L}}}})(Xx);Jx.exports=Xx;var bC=Jx.exports;/** 27 * @license React 28 * react-dom.production.min.js 29 * 30 * Copyright (c) Facebook, Inc. and its affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var SC=b,Ot=bC;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Zx=new Set,wa={};function Gs(e,t){oo(e,t),oo(e+"Capture",t)}function oo(e,t){for(wa[e]=t,e=0;e<t.length;e++)Zx.add(t[e])}var nr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zh=Object.prototype.hasOwnProperty,kC=/^[: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]*$/,dy={},hy={};function EC(e){return zh.call(hy,e)?!0:zh.call(dy,e)?!1:kC.test(e)?hy[e]=!0:(dy[e]=!0,!1)}function _C(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function TC(e,t,n,r){if(t===null||typeof t>"u"||_C(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function pt(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ze[e]=new pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ze[t]=new pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ze[e]=new pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ze[e]=new pt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ze[e]=new pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ze[e]=new pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ze[e]=new pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ze[e]=new pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ze[e]=new pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var nm=/[\-:]([a-z])/g;function rm(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(nm,rm);Ze[t]=new pt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(nm,rm);Ze[t]=new pt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(nm,rm);Ze[t]=new pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ze[e]=new pt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ze.xlinkHref=new pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ze[e]=new pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function sm(e,t,n,r){var s=Ze.hasOwnProperty(t)?Ze[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(TC(t,n,s,r)&&(n=null),r||s===null?EC(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ur=SC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Cl=Symbol.for("react.element"),yi=Symbol.for("react.portal"),vi=Symbol.for("react.fragment"),im=Symbol.for("react.strict_mode"),Bh=Symbol.for("react.profiler"),eb=Symbol.for("react.provider"),tb=Symbol.for("react.context"),om=Symbol.for("react.forward_ref"),Wh=Symbol.for("react.suspense"),Hh=Symbol.for("react.suspense_list"),am
vendor: 5,108 bytes, lines 34-38
34=Symbol.for("react.memo"),kr=Symbol.for("react.lazy"),nb=Symbol.for("react.offscreen"),fy=Symbol.iterator;function Io(e){return e===null||typeof e!="object"?null:(e=fy&&e[fy]||e["@@iterator"],typeof e=="function"?e:null)}var Te=Object.assign,Sd;function Yo(e){if(Sd===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Sd=t&&t[1]||""}return` 35`+Sd+e}var kd=!1;function Ed(e,t){if(!e||kd)return"";kd=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.stack.split(` 36`),i=r.stack.split(` 37`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=` 38`+s[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{kd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Yo(e):""}function CC(e){switch(e.tag){case 5:return Yo(e.type);case 16:return Yo("Lazy");case 13:return Yo("Suspense");case 19:return Yo("SuspenseList");case 0:case 2:case 15:return e=Ed(e.type,!1),e;case 11:return e=Ed(e.type.render,!1),e;case 1:return e=Ed(e.type,!0),e;default:return""}}function Kh(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case vi:return"Fragment";case yi:return"Portal";case Bh:return"Profiler";case im:return"StrictMode";case Wh:return"Suspense";case Hh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tb:return(e.displayName||"Context")+".Consumer";case eb:return(e._context.displayName||"Context")+".Provider";case om:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case am:return t=e.displayName||null,t!==null?t:Kh(e.type)||"Memo";case kr:t=e._payload,e=e._init;try{return Kh(e(t))}catch{}}return null}function PC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Kh(t);case 8:return t===im?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Jr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function AC(e){var t=rb(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pl(e){e._valueTracker||(e._valueTracker=AC(e))}function sb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=rb(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function qh(e,t){var n=t.checked;return Te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function py(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ib(e,t){t=t.checked,t!=null&&sm(e,"checked",t,!1)}function Gh(e,t){ib(e,t);var n=Jr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Yh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Yh(e,t.type,Jr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}
vendor: 4,180 bytes, line 38
38function my(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Yh(e,t,n){(t!=="number"||zc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qo=Array.isArray;function Mi(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Jr(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Qh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(I(91));return Te({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function gy(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(I(92));if(Qo(n)){if(1<n.length)throw Error(I(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Jr(n)}}function ob(e,t){var n=Jr(t.value),r=Jr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function yy(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ab(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Jh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ab(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Al,lb=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Al=Al||document.createElement("div"),Al.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Al.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function xa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var na={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},jC=["Webkit","ms","Moz","O"];Object.keys(na).forEach(function(e){jC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),na[t]=na[e]})});function cb(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||na.hasOwnProperty(e)&&na[e]?(""+t).trim():t+"px"}function ub(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=cb(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var RC=Te({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 Xh(e,t){if(t){if(RC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function Zh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
38ing";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ef=null;function lm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tf=null,Li=null,Di=null;function vy(e){if(e=cl(e)){if(typeof tf!="function")throw Error(I(280));var t=e.stateNode;t&&(t=$u(t),tf(e.stateNode,e.type,t))}}function db(e){Li?Di?Di.push(e):Di=[e]:Li=e}function hb(){if(Li){var e=Li,t=Di;if(Di=Li=null,vy(e),t)for(e=0;e<t.length;e++)vy(t[e])}}function fb(e,t){return e(t)}function pb(){}var _d=!1;function mb(e,t,n){if(_d)return e(t,n);_d=!0;try{return fb(e,t,n)}finally{_d=!1,(Li!==null||Di!==null)&&(pb(),hb())}}function ba(e,t){var n=e.stateNode;if(n===null)return null;var r=$u(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(I(231,t,typeof n));return n}var nf=!1;if(nr)try{var Mo={};Object.defineProperty(Mo,"passive",{get:function(){nf=!0}}),window.addEventListener("test",Mo,Mo),window.removeEventListener("test",Mo,Mo)}catch{nf=!1}function NC(e,t,n,r,s,i,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var ra=!1,Bc=null,Wc=!1,rf=null,OC={onError:function(e){ra=!0,Bc=e}};function IC(e,t,n,r,s,i,o,a,l){ra=!1,Bc=null,NC.apply(OC,arguments)}function MC(e,t,n,r,s,i,o,a,l){if(IC.apply(this,arguments),ra){if(ra){var c=Bc;ra=!1,Bc=null}else throw Error(I(198));Wc||(Wc=!0,rf=c)}}function Ys(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function gb(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function wy(e){if(Ys(e)!==e)throw Error(I(188))}function LC(e){var t=e.alternate;if(!t){if(t=Ys(e),t===null)throw Error(I(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return wy(s),e;if(i===r)return wy(s),t;i=i.sibling}throw Error(I(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(I(189))}}if(n.alternate!==r)throw Error(I(190))}if(n.tag!==3)throw Error(I(188));return n.stateNode.current===n?e:t}function yb(e){return e=LC(e),e!==null?vb(e):null}function vb(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=vb(e);if(t!==null)return t;e=e.sibling}return null}var wb=Ot.unstable_scheduleCallback,xy=Ot.unstable_cancelCallback,DC=Ot.unstable_shouldYield,$C=Ot.unstable_requestPaint,Ne=Ot.unstable_now,FC=Ot.unstable_getCurrentPriorityLevel,cm=Ot.unstable_ImmediatePriority,xb=Ot.unstable_UserBlockingPriority,Hc=Ot.unstable_NormalPriority,VC=Ot.unstable_LowPriority,bb=Ot.unstable_IdlePriority,Iu=null,On=null;function UC(e){if(On&&typeof On.onCommitFiberRoot=="function")try{On.onCommitFiberRoot(Iu,e,void 0,(e.current.flags&128)===128)}catch{}}var pn=Math.clz32?Math.clz32:WC,zC=Math.log,BC=Math.LN2;function WC(e){return e>>>=0,e===0?32:31-(zC(e)/BC|0)|0}var jl=64,Rl=4194304;function Jo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Kc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Jo(a):(i&=o,i!==0&&(r=Jo(i)))}else o=n&~s,o!==0?r=Jo(o):i!==0&&(r=Jo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-pn(t),s=1<<n,r|=e[n],t&=~s;return r}function HC(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function KC(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-pn(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=HC(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function sf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Sb(){var e=jl;return jl<<=1,!(jl&4194240)&&(jl=64),e}function Td(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function al(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-pn(t),e[t]=n}function qC(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-pn(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function um(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-pn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var ue=0;function kb(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Eb,dm,_b,Tb,Cb,of=!1,Nl=[],Ur=null,zr=null,Br=null,Sa=new Map,ka=new Map,Tr=[],GC="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 by(e,t){switch(e){case"focusin":case"focusout":Ur=null;break;case"dragenter":case"dragleave":zr=null;break;case"mouseover":case"mouseout":Br=null;break;case"pointerover":case"pointerout":Sa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ka.delete(t.pointerId)}}function Lo(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=cl(t),t!==null&&dm(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}
vendor: 5,772 bytes, line 38
38function YC(e,t,n,r,s){switch(t){case"focusin":return Ur=Lo(Ur,e,t,n,r,s),!0;case"dragenter":return zr=Lo(zr,e,t,n,r,s),!0;case"mouseover":return Br=Lo(Br,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Sa.set(i,Lo(Sa.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,ka.set(i,Lo(ka.get(i)||null,e,t,n,r,s)),!0}return!1}function Pb(e){var t=bs(e.target);if(t!==null){var n=Ys(t);if(n!==null){if(t=n.tag,t===13){if(t=gb(n),t!==null){e.blockedOn=t,Cb(e.priority,function(){_b(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function yc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=af(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ef=r,n.target.dispatchEvent(r),ef=null}else return t=cl(n),t!==null&&dm(t),e.blockedOn=n,!1;t.shift()}return!0}function Sy(e,t,n){yc(e)&&n.delete(t)}function QC(){of=!1,Ur!==null&&yc(Ur)&&(Ur=null),zr!==null&&yc(zr)&&(zr=null),Br!==null&&yc(Br)&&(Br=null),Sa.forEach(Sy),ka.forEach(Sy)}function Do(e,t){e.blockedOn===t&&(e.blockedOn=null,of||(of=!0,Ot.unstable_scheduleCallback(Ot.unstable_NormalPriority,QC)))}function Ea(e){function t(s){return Do(s,e)}if(0<Nl.length){Do(Nl[0],e);for(var n=1;n<Nl.length;n++){var r=Nl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ur!==null&&Do(Ur,e),zr!==null&&Do(zr,e),Br!==null&&Do(Br,e),Sa.forEach(t),ka.forEach(t),n=0;n<Tr.length;n++)r=Tr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Tr.length&&(n=Tr[0],n.blockedOn===null);)Pb(n),n.blockedOn===null&&Tr.shift()}var $i=ur.ReactCurrentBatchConfig,qc=!0;function JC(e,t,n,r){var s=ue,i=$i.transition;$i.transition=null;try{ue=1,hm(e,t,n,r)}finally{ue=s,$i.transition=i}}function XC(e,t,n,r){var s=ue,i=$i.transition;$i.transition=null;try{ue=4,hm(e,t,n,r)}finally{ue=s,$i.transition=i}}function hm(e,t,n,r){if(qc){var s=af(e,t,n,r);if(s===null)Ld(e,t,r,Gc,n),by(e,r);else if(YC(s,e,t,n,r))r.stopPropagation();else if(by(e,r),t&4&&-1<GC.indexOf(e)){for(;s!==null;){var i=cl(s);if(i!==null&&Eb(i),i=af(e,t,n,r),i===null&&Ld(e,t,r,Gc,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Ld(e,t,r,null,n)}}var Gc=null;function af(e,t,n,r){if(Gc=null,e=lm(r),e=bs(e),e!==null)if(t=Ys(e),t===null)e=null;else if(n=t.tag,n===13){if(e=gb(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gc=e,null}function Ab(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(FC()){case cm:return 1;case xb:return 4;case Hc:case VC:return 16;case bb:return 536870912;default:return 16}default:return 16}}var Dr=null,fm=null,vc=null;function jb(){if(vc)return vc;var e,t=fm,n=t.length,r,s="value"in Dr?Dr.value:Dr.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return vc=s.slice(e,1<r?1-r:void 0)}function wc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ol(){return!0}function ky(){return!1}function Mt(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ol:ky,this.isPropagationStopped=ky,this}return Te(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ol)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ol)},persist:function(){},isPersistent:Ol}),t}var wo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pm=Mt(wo),ll=Te({},wo,{view:0,detail:0}),ZC=Mt(ll),Cd,Pd,$o,Mu=Te({},ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mm,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==$o&&($o&&e.type==="mousemove"?(Cd=e.screenX-$o.screenX,Pd=e.screenY-$o.screenY):Pd=Cd=0,$o=e),Cd)},movementY:function(e){return"movementY"in e?e.movementY:Pd}}),Ey=Mt(Mu),eP=Te({},Mu,{dataTransfer:0}
vendor: 4,126 bytes, line 38
38),tP=Mt(eP),nP=Te({},ll,{relatedTarget:0}),Ad=Mt(nP),rP=Te({},wo,{animationName:0,elapsedTime:0,pseudoElement:0}),sP=Mt(rP),iP=Te({},wo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),oP=Mt(iP),aP=Te({},wo,{data:0}),_y=Mt(aP),lP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cP={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"},uP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=uP[e])?!!t[e]:!1}function mm(){return dP}var hP=Te({},ll,{key:function(e){if(e.key){var t=lP[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?cP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mm,charCode:function(e){return e.type==="keypress"?wc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fP=Mt(hP),pP=Te({},Mu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ty=Mt(pP),mP=Te({},ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mm}),gP=Mt(mP),yP=Te({},wo,{propertyName:0,elapsedTime:0,pseudoElement:0}),vP=Mt(yP),wP=Te({},Mu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),xP=Mt(wP),bP=[9,13,27,32],gm=nr&&"CompositionEvent"in window,sa=null;nr&&"documentMode"in document&&(sa=document.documentMode);var SP=nr&&"TextEvent"in window&&!sa,Rb=nr&&(!gm||sa&&8<sa&&11>=sa),Cy=" ",Py=!1;function Nb(e,t){switch(e){case"keyup":return bP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ob(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wi=!1;function kP(e,t){switch(e){case"compositionend":return Ob(t);case"keypress":return t.which!==32?null:(Py=!0,Cy);case"textInput":return e=t.data,e===Cy&&Py?null:e;default:return null}}function EP(e,t){if(wi)return e==="compositionend"||!gm&&Nb(e,t)?(e=jb(),vc=fm=Dr=null,wi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rb&&t.locale!=="ko"?null:t.data;default:return null}}var _P={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 Ay(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_P[e.type]:t==="textarea"}function Ib(e,t,n,r){db(r),t=Yc(t,"onChange"),0<t.length&&(n=new pm("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ia=null,_a=null;function TP(e){Hb(e,0)}function Lu(e){var t=Si(e);if(sb(t))return e}function CP(e,t){if(e==="change")return t}var Mb=!1;if(nr){var jd;if(nr){var Rd="oninput"in document;if(!Rd){var jy=document.createElement("div");jy.setAttribute("oninput","return;"),Rd=typeof jy.oninput=="function"}jd=Rd}else jd=!1;Mb=jd&&(!document.documentMode||9<document.documentMode)}function Ry(){ia&&(ia.detachEvent("onpropertychange",Lb),_a=ia=null)}
vendor: 5,341 bytes, line 38
38function Lb(e){if(e.propertyName==="value"&&Lu(_a)){var t=[];Ib(t,_a,e,lm(e)),mb(TP,t)}}function PP(e,t,n){e==="focusin"?(Ry(),ia=t,_a=n,ia.attachEvent("onpropertychange",Lb)):e==="focusout"&&Ry()}function AP(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Lu(_a)}function jP(e,t){if(e==="click")return Lu(t)}function RP(e,t){if(e==="input"||e==="change")return Lu(t)}function NP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gn=typeof Object.is=="function"?Object.is:NP;function Ta(e,t){if(gn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!zh.call(t,s)||!gn(e[s],t[s]))return!1}return!0}function Ny(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Oy(e,t){var n=Ny(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ny(n)}}function Db(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Db(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $b(){for(var e=window,t=zc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zc(e.document)}return t}function ym(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function OP(e){var t=$b(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Db(n.ownerDocument.documentElement,n)){if(r!==null&&ym(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Oy(n,i);var o=Oy(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var IP=nr&&"documentMode"in document&&11>=document.documentMode,xi=null,lf=null,oa=null,cf=!1;function Iy(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cf||xi==null||xi!==zc(r)||(r=xi,"selectionStart"in r&&ym(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),oa&&Ta(oa,r)||(oa=r,r=Yc(lf,"onSelect"),0<r.length&&(t=new pm("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xi)))}function Il(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var bi={animationend:Il("Animation","AnimationEnd"),animationiteration:Il("Animation","AnimationIteration"),animationstart:Il("Animation","AnimationStart"),transitionend:Il("Transition","TransitionEnd")},Nd={},Fb={};nr&&(Fb=document.createElement("div").style,"AnimationEvent"in window||(delete bi.animationend.animation,delete bi.animationiteration.animation,delete bi.animationstart.animation),"TransitionEvent"in window||delete bi.transitionend.transition);function Du(e){if(Nd[e])return Nd[e];if(!bi[e])return e;var t=bi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Fb)return Nd[e]=t[n];return e}var Vb=Du("animationend"),Ub=Du("animationiteration"),zb=Du("animationstart"),Bb=Du("transitionend"),Wb=new Map,My="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 rs(e,t){Wb.set(e,t),Gs(t,[e])}for(var Od=0;Od<My.length;Od++){var Id=My[Od],MP=Id.toLowerCase(),LP=Id[0].toUpperCase()+Id.slice(1);rs(MP,"on"+LP)}rs(Vb,"onAnimationEnd");rs(Ub,"onAnimationIteration");rs(zb,"onAnimationStart");rs("dblclick","onDoubleClick");rs("focusin","onFocus");rs("focusout","onBlur");rs(Bb,"onTransitionEnd");oo("onMouseEnter",["mouseout","mouseover"]);oo("onMouseLeave",["mouseout","mouseover"]);oo("onPointerEnter",["pointerout","pointerover"]);oo("onPointerLeave",["pointerout","pointerover"]);Gs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,770 bytes, line 38
38Gs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Gs("onBeforeInput",["compositionend","keypress","textInput","paste"]);Gs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Gs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Gs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xo="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(" "),DP=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xo));function Ly(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,MC(r,t,void 0,e),e.currentTarget=null}function Hb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;Ly(s,a,c),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;Ly(s,a,c),i=l}}}if(Wc)throw e=rf,Wc=!1,rf=null,e}function ye(e,t){var n=t[pf];n===void 0&&(n=t[pf]=new Set);var r=e+"__bubble";n.has(r)||(Kb(t,e,2,!1),n.add(r))}function Md(e,t,n){var r=0;t&&(r|=4),Kb(n,e,r,t)}var Ml="_reactListening"+Math.random().toString(36).slice(2);function Ca(e){if(!e[Ml]){e[Ml]=!0,Zx.forEach(function(n){n!=="selectionchange"&&(DP.has(n)||Md(n,!1,e),Md(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ml]||(t[Ml]=!0,Md("selectionchange",!1,t))}}function Kb(e,t,n,r){switch(Ab(t)){case 1:var s=JC;break;case 4:s=XC;break;default:s=hm}n=s.bind(null,t,n,e),s=void 0,!nf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Ld(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=bs(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}mb(function(){var c=i,u=lm(n),d=[];e:{var p=Wb.get(e);if(p!==void 0){var f=pm,v=e;switch(e){case"keypress":if(wc(n)===0)break e;case"keydown":case"keyup":f=fP;break;case"focusin":v="focus",f=Ad;break;case"focusout":v="blur",f=Ad;break;case"beforeblur":case"afterblur":f=Ad;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=Ey;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=tP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=gP;break;case Vb:case Ub:case zb:f=sP;break;case Bb:f=vP;break;case"scroll":f=ZC;break;case"wheel":f=xP;break;case"copy":case"cut":case"paste":f=oP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=Ty}var m=(t&4)!==0,w=!m&&e==="scroll",g=m?p!==null?p+"Capture":null:p;m=[];for(var y=c,x;y!==null;){x=y;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,g!==null&&(S=ba(y,g),S!=null&&m.push(Pa(y,S,x)))),w)break;y=y.return}0<m.length&&(p=new f(p,v,null,n,u),d.push({event:p,listeners:m}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&n!==ef&&(v=n.relatedTarget||n.fromElement)&&(bs(v)||v[rr]))break e;if((f||p)&&(p=u.window===u?u:(p=u.ownerDocument)?p.defaultView||p.parentWindow:window,f?(v=n.relatedTarget||n.toElement,f=c,v=v?bs(v):null,v!==null&&(w=Ys(v),v!==w||v.tag!==5&&v.tag!==6)&&(v=null)):(f=null,v=c),f!==v)){if(m=Ey,S="onMouseLeave",g="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(m=Ty,S="onPointerLeave",g="onPointerEnter",y="pointer"),w=f==null?p:Si(f),x=v==null?p:Si(v),p=new m(S,y+"leave",f,n,u),p.target=w,p.relatedTarget=x,S=null,bs(u)===c&&(m=new m(g,y+"enter",v,n,u),m.target=x,m.relatedTarget=w,S=m),w=S,f&&v)t:{for(m=f,g=v,y=0,x=m;x;x=ti(x))y++;for(x=0,S=g;S;S=ti(S))x++;for(;0<y-x;)m=ti(m),y--;for(;0<x-y;)g=ti(g),x--;for(;y--;){if(m===g||g!==null&&m===g.alternate)break t;m=ti(m),g=ti(g)}m=null}else m=null;f!==null&&Dy(d,p,f,m,!1),v!==null&&w!==null&&Dy(d,w,v,m,!0)}}
vendor: 7,582 bytes, lines 38-39
38e:{if(p=c?Si(c):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var E=CP;else if(Ay(p))if(Mb)E=RP;else{E=AP;var k=PP}else(f=p.nodeName)&&f.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(E=jP);if(E&&(E=E(e,c))){Ib(d,E,n,u);break e}k&&k(e,p,c),e==="focusout"&&(k=p._wrapperState)&&k.controlled&&p.type==="number"&&Yh(p,"number",p.value)}switch(k=c?Si(c):window,e){case"focusin":(Ay(k)||k.contentEditable==="true")&&(xi=k,lf=c,oa=null);break;case"focusout":oa=lf=xi=null;break;case"mousedown":cf=!0;break;case"contextmenu":case"mouseup":case"dragend":cf=!1,Iy(d,n,u);break;case"selectionchange":if(IP)break;case"keydown":case"keyup":Iy(d,n,u)}var _;if(gm)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else wi?Nb(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(Rb&&n.locale!=="ko"&&(wi||C!=="onCompositionStart"?C==="onCompositionEnd"&&wi&&(_=jb()):(Dr=u,fm="value"in Dr?Dr.value:Dr.textContent,wi=!0)),k=Yc(c,C),0<k.length&&(C=new _y(C,e,null,n,u),d.push({event:C,listeners:k}),_?C.data=_:(_=Ob(n),_!==null&&(C.data=_)))),(_=SP?kP(e,n):EP(e,n))&&(c=Yc(c,"onBeforeInput"),0<c.length&&(u=new _y("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=_))}Hb(d,t)})}function Pa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yc(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=ba(e,n),i!=null&&r.unshift(Pa(e,i,s)),i=ba(e,t),i!=null&&r.push(Pa(e,i,s))),e=e.return}return r}function ti(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Dy(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,s?(l=ba(n,i),l!=null&&o.unshift(Pa(n,l,a))):s||(l=ba(n,i),l!=null&&o.push(Pa(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var $P=/\r\n?/g,FP=/\u0000|\uFFFD/g;function $y(e){return(typeof e=="string"?e:""+e).replace($P,` 39`).replace(FP,"")}function Ll(e,t,n){if(t=$y(t),$y(e)!==t&&n)throw Error(I(425))}function Qc(){}var uf=null,df=null;function hf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ff=typeof setTimeout=="function"?setTimeout:void 0,VP=typeof clearTimeout=="function"?clearTimeout:void 0,Fy=typeof Promise=="function"?Promise:void 0,UP=typeof queueMicrotask=="function"?queueMicrotask:typeof Fy<"u"?function(e){return Fy.resolve(null).then(e).catch(zP)}:ff;function zP(e){setTimeout(function(){throw e})}function Dd(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Ea(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Ea(t)}function Wr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Vy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var xo=Math.random().toString(36).slice(2),An="__reactFiber$"+xo,Aa="__reactProps$"+xo,rr="__reactContainer$"+xo,pf="__reactEvents$"+xo,BP="__reactListeners$"+xo,WP="__reactHandles$"+xo;function bs(e){var t=e[An];if(t)return t;for(var n=e.parentNode;n;){if(t=n[rr]||n[An]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Vy(e);e!==null;){if(n=e[An])return n;e=Vy(e)}return t}e=n,n=e.parentNode}return null}function cl(e){return e=e[An]||e[rr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Si(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(I(33))}function $u(e){return e[Aa]||null}var mf=[],ki=-1;function ss(e){return{current:e}}function ve(e){0>ki||(e.current=mf[ki],mf[ki]=null,ki--)}function pe(e,t){ki++,mf[ki]=e.current,e.current=t}var Xr={},it=ss(Xr),St=ss(!1),Vs=Xr;function ao(e,t){var n=e.type.contextTypes;if(!n)return Xr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function kt(e){return e=e.childContextTypes,e!=null}function Jc(){ve(St),ve(it)}function Uy(e,t,n){if(it.current!==Xr)throw Error(I(168));pe(it,t),pe(St,n)}function qb(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(I(108,PC(e)||"Unknown",s));return Te({},n,r)}function Xc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xr,Vs=it.current,pe(it,e),pe(St,St.current),!0}function zy(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=qb(e,t,Vs),r.__reactInternalMemoizedMergedChildContext=e,ve(St),ve(it),pe(it,e)):ve(St),pe(St,n)}var Yn=null,Fu=!1,$d=!1;function Gb(e){Yn===null?Yn=[e]:Yn.push(e)}function HP(e){Fu=!0,Gb(e)}function is(){if(!$d&&Yn!==null){$d=!0;var e=0,t=ue;try{var n=Yn;for(ue=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Yn=null,Fu=!1}catch(s){throw Yn!==null&&(Yn=Yn.slice(e+1)),wb(cm,is),s}finally{ue=t,$d=!1}}return null}var Ei=[],_i=0,Zc=null,eu=0,zt=[],Bt=0,Us=null,Jn=1,Xn="";function ms(e,t){Ei[_i++]=eu,Ei[_i++]=Zc,Zc=e,eu=t}function Yb(e,t,n){zt[Bt++]=Jn,zt[Bt++]=Xn,zt[Bt++]=Us,Us=e;var r=Jn;e=Xn;var s=32-pn(r)-1;r&=~(1<<s),n+=1;var i=32-pn(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Jn=1<<32-pn(t)+s|n<<s|r,Xn=i+e}else Jn=1<<i|n<<s|r,Xn=e}function vm(e){e.return!==null&&(ms(e,1),Yb(e,1,0))}function wm(e){for(;e===Zc;)Zc=Ei[--_i],Ei[_i]=null,eu=Ei[--_i],Ei[_i]=null;for(;e===Us;)Us=zt[--Bt],zt[Bt]=null,Xn=zt[--Bt],zt[Bt]=null,Jn=zt[--Bt],zt[Bt]=null}var Rt=null,jt=null,xe=!1,hn=null;function Qb(e,t){var n=Wt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function By(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Rt=e,jt=Wr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Rt=e,jt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Us!==null?{id:Jn,overflow:Xn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Wt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Rt=e,jt=null,!0):!1;default:return!1}}function gf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function yf(e){if(xe){var t=jt;if(t){var n=t;if(!By(e,t)){if(gf(e))throw Error(I(418));t=Wr(n.nextSibling);var r=Rt;t&&By(e,t)?Qb(r,n):(e.flags=e.flags&-4097|2,xe=!1,Rt=e)}}else{if(gf(e))throw Error(I(418));e.flags=e.flags&-4097|2,xe=!1,Rt=e}}}function Wy(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Rt=e}function Dl(e){if(e!==Rt)return!1;if(!xe)return Wy(e),xe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!hf(e.type,e.memoizedProps)),t&&(t=jt)){if(gf(e))throw Jb(),Error(I(418));for(;t;)Qb(e,t),t=Wr(t.nextSibling)}if(Wy(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317)
vendor: 22,620 bytes, lines 39-41
39);e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){jt=Wr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}jt=null}}else jt=Rt?Wr(e.stateNode.nextSibling):null;return!0}function Jb(){for(var e=jt;e;)e=Wr(e.nextSibling)}function lo(){jt=Rt=null,xe=!1}function xm(e){hn===null?hn=[e]:hn.push(e)}var KP=ur.ReactCurrentBatchConfig;function Fo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(I(309));var r=n.stateNode}if(!r)throw Error(I(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(I(284));if(!n._owner)throw Error(I(290,e))}return e}function $l(e,t){throw e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Hy(e){var t=e._init;return t(e._payload)}function Xb(e){function t(g,y){if(e){var x=g.deletions;x===null?(g.deletions=[y],g.flags|=16):x.push(y)}}function n(g,y){if(!e)return null;for(;y!==null;)t(g,y),y=y.sibling;return null}function r(g,y){for(g=new Map;y!==null;)y.key!==null?g.set(y.key,y):g.set(y.index,y),y=y.sibling;return g}function s(g,y){return g=Gr(g,y),g.index=0,g.sibling=null,g}function i(g,y,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<y?(g.flags|=2,y):x):(g.flags|=2,y)):(g.flags|=1048576,y)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,y,x,S){return y===null||y.tag!==6?(y=Hd(x,g.mode,S),y.return=g,y):(y=s(y,x),y.return=g,y)}function l(g,y,x,S){var E=x.type;return E===vi?u(g,y,x.props.children,S,x.key):y!==null&&(y.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===kr&&Hy(E)===y.type)?(S=s(y,x.props),S.ref=Fo(g,y,x),S.return=g,S):(S=Tc(x.type,x.key,x.props,null,g.mode,S),S.ref=Fo(g,y,x),S.return=g,S)}function c(g,y,x,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=Kd(x,g.mode,S),y.return=g,y):(y=s(y,x.children||[]),y.return=g,y)}function u(g,y,x,S,E){return y===null||y.tag!==7?(y=$s(x,g.mode,S,E),y.return=g,y):(y=s(y,x),y.return=g,y)}function d(g,y,x){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Hd(""+y,g.mode,x),y.return=g,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Cl:return x=Tc(y.type,y.key,y.props,null,g.mode,x),x.ref=Fo(g,null,y),x.return=g,x;case yi:return y=Kd(y,g.mode,x),y.return=g,y;case kr:var S=y._init;return d(g,S(y._payload),x)}if(Qo(y)||Io(y))return y=$s(y,g.mode,x,null),y.return=g,y;$l(g,y)}return null}function p(g,y,x,S){var E=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return E!==null?null:a(g,y,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Cl:return x.key===E?l(g,y,x,S):null;case yi:return x.key===E?c(g,y,x,S):null;case kr:return E=x._init,p(g,y,E(x._payload),S)}if(Qo(x)||Io(x))return E!==null?null:u(g,y,x,S,null);$l(g,x)}return null}function f(g,y,x,S,E){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(x)||null,a(y,g,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Cl:return g=g.get(S.key===null?x:S.key)||null,l(y,g,S,E);case yi:return g=g.get(S.key===null?x:S.key)||null,c(y,g,S,E);case kr:var k=S._init;return f(g,y,x,k(S._payload),E)}if(Qo(S)||Io(S))return g=g.get(x)||null,u(y,g,S,E,null);$l(y,S)}return null}function v(g,y,x,S){for(var E=null,k=null,_=y,C=y=0,P=null;_!==null&&C<x.length;C++){_.index>C?(P=_,_=null):P=_.sibling;var j=p(g,_,x[C],S);if(j===null){_===null&&(_=P);break}e&&_&&j.alternate===null&&t(g,_),y=i(j,y,C),k===null?E=j:k.sibling=j,k=j,_=P}if(C===x.length)return n(g,_),xe&&ms(g,C),E;if(_===null){for(;C<x.length;C++)_=d(g,x[C],S),_!==null&&(y=i(_,y,C),k===null?E=_:k.sibling=_,k=_);return xe&&ms(g,C),E}for(_=r(g,_);C<x.length;C++)P=f(_,g,C,x[C],S),P!==null&&(e&&P.alternate!==null&&_.delete(P.key===null?C:P.key),y=i(P,y,C),k===null?E=P:k.sibling=P,k=P);return e&&_.forEach(function(D){return t(g,D)}),xe&&ms(g,C),E}function m(g,y,x,S){var E=Io(x);if(typeof E!="function")throw Error(I(150));if(x=E.call(x),x==null)throw Error(I(151));for(var k=E=null,_=y,C=y=0,P=null,j=x.next();_!==null&&!j.done;C++,j=x.next()){_.index>C?(P=_,_=null):P=_.sibling;var D=p(g,_,j.value,S);if(D===null){_===null&&(_=P);break}e&&_&&D.alternate===null&&t(g,_),y=i(D,y,C),k===null?E=D:k.sibling=D,k=D,_=P}if(j.done)return n(g,_),xe&&ms(g,C),E;if(_===null){for(;!j.done;C++,j=x.next())j=d(g,j.value,S),j!==null&&(y=i(j,y,C),k===null?E=j:k.sibling=j,k=j);return xe&&ms(g,C),E}for(_=r(g,_);!j.done;C++,j=x.next())j=f(_,g,C,j.value,S),j!==null&&(e&&j.alternate!==null&&_.delete(j.key===null?C:j.key),y=i(j,y,C),k===null?E=j:k.sibling=j,k=j);return e&&_.forEach(function(O){return t(g,O)}),xe&&ms(g,C),E}function w(g,y,x,S){if(typeof x=="object"&&x!==null&&x.type===vi&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Cl:e:{for(var E=x.key,k=y;k!==null;){if(k.key===E){if(E=x.type,E===vi){if(k.tag===7){n(g,k.sibling),y=s(k,x.props.children),y.return=g,g=y;break e}}else if(k.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===kr&&Hy(E)===k.type){n(g,k.sibling),y=s(k,x.props),y.ref=Fo(g,k,x),y.return=g,g=y;break e}n(g,k);break}else t(g,k);k=k.sibling}x.type===vi?(y=$s(x.props.children,g.mode,S,x.key),y.return=g,g=y):(S=Tc(x.type,x.key,x.props,null,g.mode,S),S.ref=Fo(g,y,x),S.return=g,g=S)}return o(g);case yi:e:{for(k=x.key;y!==null;){if(y.key===k)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(g,y.sibling),y=s(y,x.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Kd(x,g.mode,S),y.return=g,g=y}return o(g);case kr:return k=x._init,w(g,y,k(x._payload),S)}if(Qo(x))return v(g,y,x,S);if(Io(x))return m(g,y,x,S);$l(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(g,y.sibling),y=s(y,x),y.return=g,g=y):(n(g,y),y=Hd(x,g.mode,S),y.return=g,g=y),o(g)):n(g,y)}return w}var co=Xb(!0),Zb=Xb(!1),tu=ss(null),nu=null,Ti=null,bm=null;function Sm(){bm=Ti=nu=null}function km(e){var t=tu.current;ve(tu),e._currentValue=t}function vf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fi(e,t){nu=e,bm=Ti=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(bt=!0),e.firstContext=null)}function Yt(e){var t=e._currentValue;if(bm!==e)if(e={context:e,memoizedValue:t,next:null},Ti===null){if(nu===null)throw Error(I(308));Ti=e,nu.dependencies={lanes:0,firstContext:e}}else Ti=Ti.next=e;return t}var Ss=null;function Em(e){Ss===null?Ss=[e]:Ss.push(e)}function e1(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Em(t)):(n.next=s.next,s.next=n),t.interleaved=n,sr(e,r)}function sr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Er=!1;function _m(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function t1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function tr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Hr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,oe&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,sr(e,n)}return s=r.interleaved,s===null?(t.next=t,Em(r)):(t.next=s.next,s.next=t),r.interleaved=t,sr(e,n)}function xc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,um(e,n)}}function Ky(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ru(e,t,n,r){var s=e.updateQueue;Er=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?i=c:o.next=c,o=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==o&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=s.baseState;o=0,u=c=l=null,a=i;do{var p=a.lane,f=a.eventTime;if((r&p)===p){u!==null&&(u=u.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,m=a;switch(p=t,f=n,m.tag){case 1:if(v=m.payload,typeof v=="function"){d=v.call(f,d,p);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=m.payload,p=typeof v=="function"?v.call(f,d,p):v,p==null)break e;d=Te({},d,p);break e;case 2:Er=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=s.effects,p===null?s.effects=[a]:p.push(a))}else f={eventTime:f,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=f,l=d):u=u.next=f,o|=p;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;p=a,a=p.next,p.next=null,s.lastBaseUpdate=p,s.shared.pending=null}}while(!0);if(u===null&&(l=d),s.baseState=l,s.firstBaseUpdate=c,s.lastBaseUpdate=u,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);Bs|=o,e.lanes=o,e.memoizedState=d}}function qy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(I(191,s));s.call(r)}}}var ul={},In=ss(ul),ja=ss(ul),Ra=ss(ul);function ks(e){if(e===ul)throw Error(I(174));return e}function Tm(e,t){switch(pe(Ra,t),pe(ja,e),pe(In,ul),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Jh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Jh(t,e)}ve(In),pe(In,t)}function uo(){ve(In),ve(ja),ve(Ra)}function n1(e){ks(Ra.current);var t=ks(In.current),n=Jh(t,e.type);t!==n&&(pe(ja,e),pe(In,n))}function Cm(e){ja.current===e&&(ve(In),ve(ja))}var ke=ss(0);function su(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fd=[];function Pm(){for(var e=0;e<Fd.length;e++)Fd[e]._workInProgressVersionPrimary=null;Fd.length=0}var bc=ur.ReactCurrentDispatcher,Vd=ur.ReactCurrentBatchConfig,zs=0,_e=null,Ve=null,ze=null,iu=!1,aa=!1,Na=0,qP=0;function et(){throw Error(I(321))}function Am(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!gn(e[n],t[n]))return!1;return!0}function jm(e,t,n,r,s,i){if(zs=i,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,bc.current=e===null||e.memoizedState===null?JP:XP,e=n(r,s),aa){i=0;do{if(aa=!1,Na=0,25<=i)throw Error(I(301));i+=1,ze=Ve=null,t.updateQueue=null,bc.current=ZP,e=n(r,s)}while(aa)}if(bc.current=ou,t=Ve!==null&&Ve.next!==null,zs=0,ze=Ve=_e=null,iu=!1,t)throw Error(I(300));return e}function Rm(){var e=Na!==0;return Na=0,e}function En(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ze===null?_e.memoizedState=ze=e:ze=ze.next=e,ze}function Qt(){if(Ve===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=ze===null?_e.memoizedState:ze.next;if(t!==null)ze=t,Ve=e;else{if(e===null)throw Error(I(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},ze===null?_e.memoizedState=ze=e:ze=ze.next=e}return ze}function Oa(e,t){return typeof t=="function"?t(e):t}function Ud(e){var t=Qt(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=Ve,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,c=i;do{var u=c.lane;if((zs&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,_e.lanes|=u,Bs|=u}c=c.next}while(c!==null&&c!==i);l===null?o=r:l.next=a,gn(r,t.memoizedState)||(bt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,_e.lanes|=i,Bs|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function zd(e){var t=Qt(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);gn(i,t.memoizedState)||(bt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function r1(){}function s1(e,t){var n=_e,r=Qt(),s=t(),i=!gn(r.memoizedState,s);if(i&&(r.memoizedState=s,bt=!0),r=r.queue,Nm(a1.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ze!==null&&ze.memoizedState.tag&1){if(n.flags|=2048,Ia(9,o1.bind(null,n,r,s,t),void 0,null),We===null)throw Error(I(349));zs&30||i1(n,t,s)}return s}function i1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=_e.updateQueue,t===null?(t={lastEffect:null,stores:null},_e.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function o1(e,t,n,r){t.value=n,t.getSnapshot=r,l1(t)&&c1(e)}function a1(e,t,n){return n(function(){l1(t)&&c1(e)})}function l1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gn(e,n)}catch{return!0}}function c1(e){var t=sr(e,1);t!==null&&mn(t,e,1,-1)}function Gy(e){var t=En();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:e},t.queue=e,e=e.dispatch=QP.bind(null,_e,e),[t.memoizedState,e]}function Ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=_e.updateQueue,t===null?(t={lastEffect:null,stores:null},_e.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function u1(){return Qt().memoizedState}function Sc(e,t,n,r){var s=En();_e.flags|=e,s.memoizedState=Ia(1|t,n,void 0,r===void 0?null:r)}function Vu(e,t,n,r){var s=Qt();r=r===void 0?null:r;var i=void 0;if(Ve!==null){var o=Ve.memoizedState;if(i=o.destroy,r!==null&&Am(r,o.deps)){s.memoizedState=Ia(t,n,i,r);return}}_e.flags|=e,s.memoizedState=Ia(1|t,n,i,r)}function Yy(e,t){return Sc(8390656,8,e,t)}function Nm(e,t){return Vu(2048,8,e,t)}function d1(e,t){return Vu(4,2,e,t)}function h1(e,t){return Vu(4,4,e,t)}function f1(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function p1(e,t,n){return n=n!=null?n.concat([e]):null,Vu(4,4,f1.bind(null,t,e),n)}function Om(){}function m1(e,t){var n=Qt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Am(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function g1(e,t){var n=Qt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Am(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function y1(e,t,n){return zs&21?(gn(n,t)||(n=Sb(),_e.lanes|=n,Bs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bt=!0),e.memoizedState=n)}function GP(e,t){var n=ue;ue=n!==0&&4>n?n:4,e(!0);var r=Vd.transition;Vd.transition={};try{e(!1),t()}finally{ue=n,Vd.transition=r}}function v1(){return Qt().memoizedState}function YP(e,t,n){var r=qr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},w1(e))x1(t,n);else if(n=e1(e,t,n,r),n!==null){var s=dt();mn(n,e,r,s),b1(n,t,r)}}function QP(e,t,n){var r=qr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(w1(e))x1(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,gn(a,o)){var l=t.interleaved;l===null?(s.next=s,Em(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=e1(e,t,s,r),n!==null&&(s=dt(),mn(n,e,r,s),b1(n,t,r))}}function w1(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function x1(e,t){aa=iu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function b1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,um(e,n)}}var ou={readContext:Yt,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useInsertionEffect:et,useLayoutEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useMutableSource:et,useSyncExternalStore:et,useId:et,unstable_isNewReconciler:!1},JP={readContext:Yt,useCallback:function(e,t){return En().memoizedState=[e,t===void 0?null:t],e},useContext:Yt,useEffect:Yy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Sc(4194308,4,f1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Sc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Sc(4,2,e,t)},useMemo:function(e,t){var n=En();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=En();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=YP.bind(null,_e,e),[r.memoizedState,e]},useRef:function(e){var t=En();return e={current:e},t.memoizedState=e},useState:Gy,useDebugValue:Om,useDeferredValue:function(e){return En().memoizedState=e},useTransition:function(){var e=Gy(!1),t=e[0];return e=GP.bind(null,e[1]),En().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=_e,s=En();if(xe){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),We===null)throw Error(I(349));zs&30||i1(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Yy(a1.bind(null,r,i,e),[e]),r.flags|=2048,Ia(9,o1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=En(),t=We.identifierPrefix;if(xe){var n=Xn,r=Jn;n=(r&~(1<<32-pn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Na++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=qP++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},XP={readContext:Yt,useCallback:m1,useContext:Yt,useEffect:Nm,useImperativeHandle:p1,useInsertionEffect:d1,useLayoutEffect:h1,useMemo:g1,useReducer:Ud,useRef:u1,useState:function(){return Ud(Oa)},useDebugValue:Om,useDeferredValue:function(e){var t=Qt();return y1(t,Ve.memoizedState,e)},useTransition:function(){var e=Ud(Oa)[0],t=Qt().memoizedState;return[e,t]},useMutableSource:r1,useSyncExternalStore:s1,useId:v1,unstable_isNewReconciler:!1},ZP={readContext:Yt,useCallback:m1,useContext:Yt,useEffect:Nm,useImperativeHandle:p1,useInsertionEffect:d1,useLayoutEffect:h1,useMemo:g1,useReducer:zd,useRef:u1,useState:function(){return zd(Oa)},useDebugValue:Om,useDeferredValue:function(e){var t=Qt();return Ve===null?t.memoizedState=e:y1(t,Ve.memoizedState,e)},useTransition:function(){var e=zd(Oa)[0],t=Qt().memoizedState;return[e,t]},useMutableSource:r1,useSyncExternalStore:s1,useId:v1,unstable_isNewReconciler:!1};function on(e,t){if(e&&e.defaultProps){t=Te({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function wf(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Te({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Uu={isMounted:function(e){return(e=e._reactInternals)?Ys(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=dt(),s=qr(e),i=tr(r,s);i.payload=t,n!=null&&(i.callback=n),t=Hr(e,i,s),t!==null&&(mn(t,e,s,r),xc(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=dt(),s=qr(e),i=tr(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Hr(e,i,s),t!==null&&(mn(t,e,s,r),xc(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=dt(),r=qr(e),s=tr(n,r);s.tag=2,t!=null&&(s.callback=t),t=Hr(e,s,r),t!==null&&(mn(t,e,r,n),xc(t,e,r))}};function Qy(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Ta(n,r)||!Ta(s,i):!0}function S1(e,t,n){var r=!1,s=Xr,i=t.contextType;return typeof i=="object"&&i!==null?i=Yt(i):(s=kt(t)?Vs:it.current,r=t.contextTypes,i=(r=r!=null)?ao(e,s):Xr),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Uu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Jy(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Uu.enqueueReplaceState(t,t.state,null)}function xf(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},_m(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Yt(i):(i=kt(t)?Vs:it.current,s.context=ao(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(wf(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Uu.enqueueReplaceState(s,s.state,null),ru(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function ho(e,t){try{var n="",r=t;do n+=CC(r),r=r.return;while(r);var s=n}catch(i){s=` 40Error generating stack: `+i.message+` 41`+i.stack}return{value:e,source:t,stack:s,digest:null}}
vendor: 11,185 bytes, line 41
41function Bd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var eA=typeof WeakMap=="function"?WeakMap:Map;function k1(e,t,n){n=tr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){lu||(lu=!0,Rf=r),bf(e,t)},n}function E1(e,t,n){n=tr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){bf(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){bf(e,t),typeof r!="function"&&(Kr===null?Kr=new Set([this]):Kr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Xy(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new eA;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=pA.bind(null,e,t,n),t.then(e,e))}function Zy(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ev(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=tr(-1,1),t.tag=2,Hr(n,t,1))),n.lanes|=1),e)}var tA=ur.ReactCurrentOwner,bt=!1;function lt(e,t,n,r){t.child=e===null?Zb(t,null,n,r):co(t,e.child,n,r)}function tv(e,t,n,r,s){n=n.render;var i=t.ref;return Fi(t,s),r=jm(e,t,n,r,i,s),n=Rm(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,ir(e,t,s)):(xe&&n&&vm(t),t.flags|=1,lt(e,t,r,s),t.child)}function nv(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Um(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,_1(e,t,i,r,s)):(e=Tc(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Ta,n(o,r)&&e.ref===t.ref)return ir(e,t,s)}return t.flags|=1,e=Gr(i,r),e.ref=t.ref,e.return=t,t.child=e}function _1(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Ta(i,r)&&e.ref===t.ref)if(bt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(bt=!0);else return t.lanes=e.lanes,ir(e,t,s)}return Sf(e,t,n,r,s)}function T1(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},pe(Pi,Ct),Ct|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,pe(Pi,Ct),Ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,pe(Pi,Ct),Ct|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,pe(Pi,Ct),Ct|=r;return lt(e,t,s,n),t.child}function C1(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Sf(e,t,n,r,s){var i=kt(n)?Vs:it.current;return i=ao(t,i),Fi(t,s),n=jm(e,t,n,r,i,s),r=Rm(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,ir(e,t,s)):(xe&&r&&vm(t),t.flags|=1,lt(e,t,n,s),t.child)}function rv(e,t,n,r,s){if(kt(n)){var i=!0;Xc(t)}else i=!1;if(Fi(t,s),t.stateNode===null)kc(e,t),S1(t,n,r),xf(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Yt(c):(c=kt(n)?Vs:it.current,c=ao(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==c)&&Jy(t,o,r,c),Er=!1;var p=t.memoizedState;o.state=p,ru(t,r,o,s),l=t.memoizedState,a!==r||p!==l||St.current||Er?(typeof u=="function"&&(wf(t,n,u,r),l=t.memoizedState),(a=Er||Qy(t,n,a,r,p,l,c))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,t1(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:on(t.type,a),o.props=c,d=t.pendingProps,p=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Yt(l):(l=kt(n)?Vs:it.current,l=ao(t,l));var f=n.getDerivedStateFromProps;(u=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||p!==l)&&Jy(t,o,r,l),Er=!1,p=t.memoizedState,o.state=p,ru(t,r,o,s);var v=t.memoizedState;a!==d||p!==v||St.current||Er?(typeof f=="function"&&(wf(t,n,f,r),v=t.memoizedState),(c=Er||Qy(t,n,c,r,p,v,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return kf(e,t,n,r,i,s)}function kf(e,t,n,r,s,i){C1(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&zy(t,n,!1),ir(e,t,i);r=t.stateNode,tA.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=co(t,e.child,null,i),t.child=co(t,null,a,i)):lt(e,t,a,i),t.memoizedState=r.state,s&&zy(t,n,!0),t.child}function P1(e){var t=e.stateNode;t.pendingContext?Uy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Uy(e,t.context,!1),Tm(e,t.containerInfo)}function sv(e,t,n,r,s){return lo(),xm(s),t.flags|=256,lt(e,t,n,r),t.child}var Ef={dehydrated:null,treeContext:null,retryLane:0};function _f(e){return{baseLanes:e,cachePool:null,transitions:null}}function A1(e,t,n){var r=t.pendingProps,s=ke.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),pe(ke,s&1),e===null)return yf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Wu(o,r,0,null),e=$s(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=_f(n),t.memoizedState=Ef,e):Im(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return nA(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Gr(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=Gr(a,i):(i=$s(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?_f(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Ef,r}return i=e.child,e=i.sibling,r=Gr(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Im(e,t){return t=Wu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Fl(e,t,n,r){return r!==null&&xm(r),co(t,e.child,null,n),e=Im(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nA(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Bd(Error(I(422))),Fl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Wu({mode:"visible",children:r.children},s,0,null),i=$s(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&co(t,e.child,null,o),t.child.memoizedState=_f(o),t.memoizedState=Ef,i);if(!(t.mode&1))return Fl(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(I(419)),r=Bd(i,r,void 0),Fl(e,t,o,r)}if(a=(o&e.childLanes)!==0,bt||a){if(r=We,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,sr(e,s),mn(r,e,s,-1))}return Vm(),r=Bd(Error(I(421))),Fl(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=mA.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,jt=Wr(s.nextSibling),Rt=t,xe=!0,hn=null,e!==null&&(zt[Bt++]=Jn,zt[Bt++]=Xn,zt[Bt++]=Us,Jn=e.id,Xn=e.overflow,Us=t),t=Im(t,r.children),t.flags|=4096,t)}function iv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),vf(e.return,t,n)}function Wd(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function j1(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(lt(e,t,r.children,n),r=ke.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&iv(e,n,t);else if(e.tag===19)iv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(pe(ke,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&su(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Wd(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&su(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Wd(t,!0,n,null,i);break;case"together":Wd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function kc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ir(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Bs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(I(153));
vendor: 4,746 bytes, line 41
41if(t.child!==null){for(e=t.child,n=Gr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Gr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function rA(e,t,n){switch(t.tag){case 3:P1(t),lo();break;case 5:n1(t);break;case 1:kt(t.type)&&Xc(t);break;case 4:Tm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;pe(tu,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(pe(ke,ke.current&1),t.flags|=128,null):n&t.child.childLanes?A1(e,t,n):(pe(ke,ke.current&1),e=ir(e,t,n),e!==null?e.sibling:null);pe(ke,ke.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return j1(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),pe(ke,ke.current),r)break;return null;case 22:case 23:return t.lanes=0,T1(e,t,n)}return ir(e,t,n)}var R1,Tf,N1,O1;R1=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Tf=function(){};N1=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,ks(In.current);var i=null;switch(n){case"input":s=qh(e,s),r=qh(e,r),i=[];break;case"select":s=Te({},s,{value:void 0}),r=Te({},r,{value:void 0}),i=[];break;case"textarea":s=Qh(e,s),r=Qh(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Qc)}Xh(n,r);var o;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(wa.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(a=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(wa.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ye("scroll",e),i||a===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};O1=function(e,t,n,r){n!==r&&(t.flags|=4)};function Vo(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function tt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function sA(e,t,n){var r=t.pendingProps;switch(wm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tt(t),null;case 1:return kt(t.type)&&Jc(),tt(t),null;case 3:return r=t.stateNode,uo(),ve(St),ve(it),Pm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Dl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,hn!==null&&(If(hn),hn=null))),Tf(e,t),tt(t),null;case 5:Cm(t);var s=ks(Ra.current);if(n=t.type,e!==null&&t.stateNode!=null)N1(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(I(166));return tt(t),null}if(e=ks(In.current),Dl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[An]=t,r[Aa]=i,e=(t.mode&1)!==0,n){case"dialog":ye("cancel",r),ye("close",r);break;case"iframe":case"object":case"embed":ye("load",r);break;case"video":case"audio":for(s=0;s<Xo.length;s++)ye(Xo[s],r);break;case"source":ye("error",r);break;case"img":case"image":case"link":ye("error",r),ye("load",r);break;case"details":ye("toggle",r);break;case"input":py(r,i),ye("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ye("invalid",r);break;case"textarea":gy(r,i),ye("invalid",r)}Xh(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];
vendor: 31,695 bytes, line 41
41o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Ll(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Ll(r.textContent,a,e),s=["children",""+a]):wa.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ye("scroll",r)}switch(n){case"input":Pl(r),my(r,i,!0);break;case"textarea":Pl(r),yy(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Qc)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ab(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[An]=t,e[Aa]=r,R1(e,t,!1,!1),t.stateNode=e;e:{switch(o=Zh(n,r),n){case"dialog":ye("cancel",e),ye("close",e),s=r;break;case"iframe":case"object":case"embed":ye("load",e),s=r;break;case"video":case"audio":for(s=0;s<Xo.length;s++)ye(Xo[s],e);s=r;break;case"source":ye("error",e),s=r;break;case"img":case"image":case"link":ye("error",e),ye("load",e),s=r;break;case"details":ye("toggle",e),s=r;break;case"input":py(e,r),s=qh(e,r),ye("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Te({},r,{value:void 0}),ye("invalid",e);break;case"textarea":gy(e,r),s=Qh(e,r),ye("invalid",e);break;default:s=r}Xh(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?ub(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&lb(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&xa(e,l):typeof l=="number"&&xa(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(wa.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ye("scroll",e):l!=null&&sm(e,i,l,o))}switch(n){case"input":Pl(e),my(e,r,!1);break;case"textarea":Pl(e),yy(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Jr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Mi(e,!!r.multiple,i,!1):r.defaultValue!=null&&Mi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Qc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return tt(t),null;case 6:if(e&&t.stateNode!=null)O1(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(I(166));if(n=ks(Ra.current),ks(In.current),Dl(t)){if(r=t.stateNode,n=t.memoizedProps,r[An]=t,(i=r.nodeValue!==n)&&(e=Rt,e!==null))switch(e.tag){case 3:Ll(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ll(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[An]=t,t.stateNode=r}return tt(t),null;case 13:if(ve(ke),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(xe&&jt!==null&&t.mode&1&&!(t.flags&128))Jb(),lo(),t.flags|=98560,i=!1;else if(i=Dl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(I(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(I(317));i[An]=t}else lo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;tt(t),i=!1}else hn!==null&&(If(hn),hn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ke.current&1?Ue===0&&(Ue=3):Vm())),t.updateQueue!==null&&(t.flags|=4),tt(t),null);case 4:return uo(),Tf(e,t),e===null&&Ca(t.stateNode.containerInfo),tt(t),null;case 10:return km(t.type._context),tt(t),null;case 17:return kt(t.type)&&Jc(),tt(t),null;case 19:if(ve(ke),i=t.memoizedState,i===null)return tt(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Vo(i,!1);else{if(Ue!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=su(e),o!==null){for(t.flags|=128,Vo(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return pe(ke,ke.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ne()>fo&&(t.flags|=128,r=!0,Vo(i,!1),t.lanes=4194304)}else{if(!r)if(e=su(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Vo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!xe)return tt(t),null}else 2*Ne()-i.renderingStartTime>fo&&n!==1073741824&&(t.flags|=128,r=!0,Vo(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ne(),t.sibling=null,n=ke.current,pe(ke,r?n&1|2:n&1),t):(tt(t),null);case 22:case 23:return Fm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ct&1073741824&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function iA(e,t){switch(wm(t),t.tag){case 1:return kt(t.type)&&Jc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return uo(),ve(St),ve(it),Pm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Cm(t),null;case 13:if(ve(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));lo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(ke),null;case 4:return uo(),null;case 10:return km(t.type._context),null;case 22:case 23:return Fm(),null;case 24:return null;default:return null}}var Vl=!1,rt=!1,oA=typeof WeakSet=="function"?WeakSet:Set,F=null;function Ci(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){je(e,t,r)}else n.current=null}function Cf(e,t,n){try{n()}catch(r){je(e,t,r)}}var ov=!1;function aA(e,t){if(uf=qc,e=$b(),ym(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var f;d!==n||s!==0&&d.nodeType!==3||(a=o+s),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(f=d.firstChild)!==null;)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++c===s&&(a=o),p===i&&++u===r&&(l=o),(f=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(df={focusedElem:e,selectionRange:n},qc=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var m=v.memoizedProps,w=v.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:on(t.type,m),w);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(S){je(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return v=ov,ov=!1,v}function la(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Cf(t,n,i)}s=s.next}while(s!==r)}}function zu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Pf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function I1(e){var t=e.alternate;t!==null&&(e.alternate=null,I1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[An],delete t[Aa],delete t[pf],delete t[BP],delete t[WP])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function M1(e){return e.tag===5||e.tag===3||e.tag===4}function av(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||M1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Af(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qc));else if(r!==4&&(e=e.child,e!==null))for(Af(e,t,n),e=e.sibling;e!==null;)Af(e,t,n),e=e.sibling}function jf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(jf(e,t,n),e=e.sibling;e!==null;)jf(e,t,n),e=e.sibling}var Ge=null,un=!1;function mr(e,t,n){for(n=n.child;n!==null;)L1(e,t,n),n=n.sibling}function L1(e,t,n){if(On&&typeof On.onCommitFiberUnmount=="function")try{On.onCommitFiberUnmount(Iu,n)}catch{}switch(n.tag){case 5:rt||Ci(n,t);case 6:var r=Ge,s=un;Ge=null,mr(e,t,n),Ge=r,un=s,Ge!==null&&(un?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(un?(e=Ge,n=n.stateNode,e.nodeType===8?Dd(e.parentNode,n):e.nodeType===1&&Dd(e,n),Ea(e)):Dd(Ge,n.stateNode));break;case 4:r=Ge,s=un,Ge=n.stateNode.containerInfo,un=!0,mr(e,t,n),Ge=r,un=s;break;case 0:case 11:case 14:case 15:if(!rt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Cf(n,t,o),s=s.next}while(s!==r)}mr(e,t,n);break;case 1:if(!rt&&(Ci(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){je(n,t,a)}mr(e,t,n);break;case 21:mr(e,t,n);break;case 22:n.mode&1?(rt=(r=rt)||n.memoizedState!==null,mr(e,t,n),rt=r):mr(e,t,n);break;default:mr(e,t,n)}}function lv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new oA),t.forEach(function(r){var s=gA.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function en(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Ge=a.stateNode,un=!1;break e;case 3:Ge=a.stateNode.containerInfo,un=!0;break e;case 4:Ge=a.stateNode.containerInfo,un=!0;break e}a=a.return}if(Ge===null)throw Error(I(160));L1(i,o,s),Ge=null,un=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(c){je(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)D1(t,e),t=t.sibling}function D1(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(en(t,e),kn(e),r&4){try{la(3,e,e.return),zu(3,e)}catch(m){je(e,e.return,m)}try{la(5,e,e.return)}catch(m){je(e,e.return,m)}}break;case 1:en(t,e),kn(e),r&512&&n!==null&&Ci(n,n.return);break;case 5:if(en(t,e),kn(e),r&512&&n!==null&&Ci(n,n.return),e.flags&32){var s=e.stateNode;try{xa(s,"")}catch(m){je(e,e.return,m)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&ib(s,i),Zh(a,o);var c=Zh(a,i);for(o=0;o<l.length;o+=2){var u=l[o],d=l[o+1];u==="style"?ub(s,d):u==="dangerouslySetInnerHTML"?lb(s,d):u==="children"?xa(s,d):sm(s,u,d,c)}switch(a){case"input":Gh(s,i);break;case"textarea":ob(s,i);break;case"select":var p=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var f=i.value;f!=null?Mi(s,!!i.multiple,f,!1):p!==!!i.multiple&&(i.defaultValue!=null?Mi(s,!!i.multiple,i.defaultValue,!0):Mi(s,!!i.multiple,i.multiple?[]:"",!1))}s[Aa]=i}catch(m){je(e,e.return,m)}}break;case 6:if(en(t,e),kn(e),r&4){if(e.stateNode===null)throw Error(I(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(m){je(e,e.return,m)}}break;case 3:if(en(t,e),kn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ea(t.containerInfo)}catch(m){je(e,e.return,m)}break;case 4:en(t,e),kn(e);break;case 13:en(t,e),kn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Dm=Ne())),r&4&&lv(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(rt=(c=rt)||u,en(t,e),rt=c):en(t,e),kn(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(F=e,u=e.child;u!==null;){for(d=F=u;F!==null;){switch(p=F,f=p.child,p.tag){case 0:case 11:case 14:case 15:la(4,p,p.return);break;case 1:Ci(p,p.return);var v=p.stateNode;if(typeof v.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(m){je(r,n,m)}}break;case 5:Ci(p,p.return);break;case 22:if(p.memoizedState!==null){uv(d);continue}}f!==null?(f.return=p,F=f):uv(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{s=d.stateNode,c?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=cb("display",o))}catch(m){je(e,e.return,m)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(m){je(e,e.return,m)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:en(t,e),kn(e),r&4&&lv(e);break;case 21:break;default:en(t,e),kn(e)}}function kn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(M1(n)){var r=n;break e}n=n.return}throw Error(I(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(xa(s,""),r.flags&=-33);var i=av(e);jf(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=av(e);Af(e,a,o);break;default:throw Error(I(161))}}catch(l){je(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lA(e,t,n){F=e,$1(e)}function $1(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var s=F,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Vl;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||rt;a=Vl;var c=rt;if(Vl=o,(rt=l)&&!c)for(F=s;F!==null;)o=F,l=o.child,o.tag===22&&o.memoizedState!==null?dv(s):l!==null?(l.return=o,F=l):dv(s);for(;i!==null;)F=i,$1(i),i=i.sibling;F=s,Vl=a,rt=c}cv(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,F=i):cv(e)}}function cv(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:rt||zu(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!rt)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:on(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&qy(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}qy(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&Ea(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(I(163))}rt||t.flags&512&&Pf(t)}catch(p){je(t,t.return,p)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function uv(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function dv(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{zu(4,t)}catch(l){je(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){je(t,s,l)}}var i=t.return;try{Pf(t)}catch(l){je(t,i,l)}break;case 5:var o=t.return;try{Pf(t)}catch(l){je(t,o,l)}}}catch(l){je(t,t.return,l)}if(t===e){F=null;break}var a=t.sibling;if(a!==null){a.return=t.return,F=a;break}F=t.return}}var cA=Math.ceil,au=ur.ReactCurrentDispatcher,Mm=ur.ReactCurrentOwner,Kt=ur.ReactCurrentBatchConfig,oe=0,We=null,Me=null,Xe=0,Ct=0,Pi=ss(0),Ue=0,Ma=null,Bs=0,Bu=0,Lm=0,ca=null,wt=null,Dm=0,fo=1/0,Kn=null,lu=!1,Rf=null,Kr=null,Ul=!1,$r=null,cu=0,ua=0,Nf=null,Ec=-1,_c=0;function dt(){return oe&6?Ne():Ec!==-1?Ec:Ec=Ne()}function qr(e){return e.mode&1?oe&2&&Xe!==0?Xe&-Xe:KP.transition!==null?(_c===0&&(_c=Sb()),_c):(e=ue,e!==0||(e=window.event,e=e===void 0?16:Ab(e.type)),e):1}function mn(e,t,n,r){if(50<ua)throw ua=0,Nf=null,Error(I(185));al(e,n,r),(!(oe&2)||e!==We)&&(e===We&&(!(oe&2)&&(Bu|=n),Ue===4&&Cr(e,Xe)),Et(e,r),n===1&&oe===0&&!(t.mode&1)&&(fo=Ne()+500,Fu&&is()))}function Et(e,t){var n=e.callbackNode;KC(e,t);var r=Kc(e,e===We?Xe:0);if(r===0)n!==null&&xy(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&xy(n),t===1)e.tag===0?HP(hv.bind(null,e)):Gb(hv.bind(null,e)),UP(function(){!(oe&6)&&is()}),n=null;else{switch(kb(r)){case 1:n=cm;break;case 4:n=xb;break;case 16:n=Hc;break;case 536870912:n=bb;break;default:n=Hc}n=K1(n,F1.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function F1(e,t){if(Ec=-1,_c=0,oe&6)throw Error(I(327));var n=e.callbackNode;if(Vi()&&e.callbackNode!==n)return null;var r=Kc(e,e===We?Xe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=uu(e,r);else{t=r;var s=oe;oe|=2;var i=U1();(We!==e||Xe!==t)&&(Kn=null,fo=Ne()+500,Ds(e,t));do try{hA();break}catch(a){V1(e,a)}while(!0);Sm(),au.current=i,oe=s,Me!==null?t=0:(We=null,Xe=0,t=Ue)}if(t!==0){if(t===2&&(s=sf(e),s!==0&&(r=s,t=Of(e,s))),t===1)throw n=Ma,Ds(e,0),Cr(e,r),Et(e,Ne()),n;if(t===6)Cr(e,r);else{if(s=e.current.alternate,!(r&30)&&!uA(s)&&(t=uu(e,r),t===2&&(i=sf(e),i!==0&&(r=i,t=Of(e,i))),t===1))throw n=Ma,Ds(e,0),Cr(e,r),Et(e,Ne()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(I(345));case 2:gs(e,wt,Kn);break;case 3:if(Cr(e,r),(r&130023424)===r&&(t=Dm+500-Ne(),10<t)){if(Kc(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){dt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=ff(gs.bind(null,e,wt,Kn),t);break}gs(e,wt,Kn);break;case 4:if(Cr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-pn(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=Ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cA(r/1960))-r,10<r){e.timeoutHandle=ff(gs.bind(null,e,wt,Kn),r);break}gs(e,wt,Kn);break;case 5:gs(e,wt,Kn);break;default:throw Error(I(329))}}}return Et(e,Ne()),e.callbackNode===n?F1.bind(null,e):null}function Of(e,t){var n=ca;return e.current.memoizedState.isDehydrated&&(Ds(e,t).flags|=256),e=uu(e,t),e!==2&&(t=wt,wt=n,t!==null&&If(t)),e}function If(e){wt===null?wt=e:wt.push.apply(wt,e)}function uA(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!gn(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Cr(e,t){for(t&=~Lm,t&=~Bu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-pn(t),r=1<<n;e[n]=-1,t&=~r}}function hv(e){if(oe&6)throw Error(I(327));Vi();var t=Kc(e,0);if(!(t&1))return Et(e,Ne()),null;var n=uu(e,t);if(e.tag!==0&&n===2){var r=sf(e);r!==0&&(t=r,n=Of(e,r))}if(n===1)throw n=Ma,Ds(e,0),Cr(e,t),Et(e,Ne()),n;if(n===6)throw Error(I(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,gs(e,wt,Kn),Et(e,Ne()),null}function $m(e,t){var n=oe;oe|=1;try{return e(t)}finally{oe=n,oe===0&&(fo=Ne()+500,Fu&&is())}}function Ws(e){$r!==null&&$r.tag===0&&!(oe&6)&&Vi();var t=oe;oe|=1;var n=Kt.transition,r=ue;try{if(Kt.transition=null,ue=1,e)return e()}finally{ue=r,Kt.transition=n,oe=t,!(oe&6)&&is()}}function Fm(){Ct=Pi.current,ve(Pi)}function Ds(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,VP(n)),Me!==null)for(n=Me.return;n!==null;){var r=n;switch(wm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Jc();break;case 3:uo(),ve(St),ve(it),Pm();break;case 5:Cm(r);break;case 4:uo();break;case 13:ve(ke);break;case 19:ve(ke);break;case 10:km(r.type._context);break;case 22:case 23:Fm()}n=n.return}if(We=e,Me=e=Gr(e.current,null),Xe=Ct=t,Ue=0,Ma=null,Lm=Bu=Bs=0,wt=ca=null,Ss!==null){for(t=0;t<Ss.length;t++)if(n=Ss[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}Ss=null}return e}function V1(e,t){do{var n=Me;try{if(Sm(),bc.current=ou,iu){for(var r=_e.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}iu=!1}if(zs=0,ze=Ve=_e=null,aa=!1,Na=0,Mm.current=null,n===null||n.return===null){Ue=1,Ma=t,Me=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=Xe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var p=u.alternate;p?(u.updateQueue=p.updateQueue,u.memoizedState=p.memoizedState,u.lanes=p.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=Zy(o);if(f!==null){f.flags&=-257,ev(f,o,a,i,t),f.mode&1&&Xy(i,c,t),t=f,l=c;var v=t.updateQueue;if(v===null){var m=new Set;m.add(l),t.updateQueue=m}else v.add(l);break e}else{if(!(t&1)){Xy(i,c,t),Vm();break e}l=Error(I(426))}}else if(xe&&a.mode&1){var w=Zy(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),ev(w,o,a,i,t),xm(ho(l,a));break e}}i=l=ho(l,a),Ue!==4&&(Ue=2),ca===null?ca=[i]:ca.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=k1(i,l,t);Ky(i,g);break e;case 1:a=l;var y=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof y.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Kr===null||!Kr.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=E1(i,a,t);Ky(i,S);break e}}i=i.return}while(i!==null)}B1(n)}catch(E){t=E,Me===n&&n!==null&&(Me=n=n.return);continue}break}while(!0)}function U1(){var e=au.current;return au.current=ou,e===null?ou:e}function Vm(){(Ue===0||Ue===3||Ue===2)&&(Ue=4),We===null||!(Bs&268435455)&&!(Bu&268435455)||Cr(We,Xe)}function uu(e,t){var n=oe;oe|=2;var r=U1();(We!==e||Xe!==t)&&(Kn=null,Ds(e,t));do try{dA();break}catch(s){V1(e,s)}while(!0);if(Sm(),oe=n,au.current=r,Me!==null)throw Error(I(261));return We=null,Xe=0,Ue}function dA(){for(;Me!==null;)z1(Me)}function hA(){for(;Me!==null&&!DC();)z1(Me)}function z1(e){var t=H1(e.alternate,e,Ct);e.memoizedProps=e.pendingProps,t===null?B1(e):Me=t,Mm.current=null}function B1(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=iA(n,t),n!==null){n.flags&=32767,Me=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ue=6,Me=null;return}}else if(n=sA(n,t,Ct),n!==null){Me=n;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);Ue===0&&(Ue=5)}function gs(e,t,n){var r=ue,s=Kt.transition;try{Kt.transition=null,ue=1,fA(e,t,n,r)}finally{Kt.transition=s,ue=r}return null}function fA(e,t,n,r){do Vi();while($r!==null);if(oe&6)throw Error(I(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(I(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(qC(e,i),e===We&&(Me=We=null,Xe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ul||(Ul=!0,K1(Hc,function(){return Vi(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Kt.transition,Kt.transition=null;var o=ue;ue=1;var a=oe;oe|=4,Mm.current=null,aA(e,n),D1(n,e),OP(df),qc=!!uf,df=uf=null,e.current=n,lA(n),$C(),oe=a,ue=o,Kt.transition=i}else e.current=n;if(Ul&&(Ul=!1,$r=e,cu=s),i=e.pendingLanes,i===0&&(Kr=null),UC(n.stateNode),Et(e,Ne()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(lu)throw lu=!1,e=Rf,Rf=null,e;return cu&1&&e.tag!==0&&Vi(),i=e.pendingLanes,i&1?e===Nf?ua++:(ua=0,Nf=e):ua=0,is(),null}function Vi(){if($r!==null){var e=kb(cu),t=Kt.transition,n=ue;try{if(Kt.transition=null,ue=16>e?16:e,$r===null)var r=!1;else{if(e=$r,$r=null,cu=0,oe&6)throw Error(I(331));var s=oe;for(oe|=4,F=e.current;F!==null;){var i=F,o=i.child;if(F.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(F=c;F!==null;){var u=F;switch(u.tag){case 0:case 11:case 15:la(8,u,i)}var d=u.child;if(d!==null)d.return=u,F=d;else for(;F!==null;){u=F;var p=u.sibling,f=u.return;if(I1(u),u===c){F=null;break}if(p!==null){p.return=f,F=p;break}F=f}}}var v=i.alternate;if(v!==null){var m=v.child;if(m!==null){v.child=null;do{var w=m.sibling;m.sibling=null,m=w}while(m!==null)}}F=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,F=o;else e:for(;F!==null;){if(i=F,i.flags&2048)switch(i.tag){case 0:case 11:case 15:la(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,F=g;break e}F=i.return}}var y=e.current;for(F=y;F!==null;){o=F;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,F=x;else e:for(o=y;F!==null;){if(a=F,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:zu(9,a)}}catch(E){je(a,a.return,E)}if(a===o){F=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,F=S;break e}F=a.return}}if(oe=s,is(),On&&typeof On.onPostCommitFiberRoot=="function")try{On.onPostCommitFiberRoot(Iu,e)}catch{}r=!0}return r}finally{ue=n,Kt.transition=t}}return!1}function fv(e,t,n){t=ho(n,t),t=k1(e,t,1),e=Hr(e,t,1),t=dt(),e!==null&&(al(e,1,t),Et(e,t))}function je(e,t,n){if(e.tag===3)fv(e,e,n);else for(;t!==null;){if(t.tag===3){fv(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Kr===null||!Kr.has(r))){e=ho(n,e),e=E1(t,e,1),t=Hr(t,e,1),e=dt(),t!==null&&(al(t,1,e),Et(t,e));break}}t=t.return}}function pA(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=dt(),e.pingedLanes|=e.suspendedLanes&n,We===e&&(Xe&n)===n&&(Ue===4||Ue===3&&(Xe&130023424)===Xe&&500>Ne()-Dm?Ds(e,0):Lm|=n),Et(e,t)}function W1(e,t){t===0&&(e.mode&1?(t=Rl,Rl<<=1,!(Rl&130023424)&&(Rl=4194304)):t=1);var n=dt();e=sr(e,t),e!==null&&(al(e,t,n),Et(e,n))}function mA(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),W1(e,n)}function gA(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(I(314))}r!==null&&r.delete(t),W1(e,n)}var H1;H1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||St.current)bt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bt=!1,rA(e,t,n);bt=!!(e.flags&131072)}else bt=!1,xe&&t.flags&1048576&&Yb(t,eu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;kc(e,t),e=t.pendingProps;var s=ao(t,it.current);Fi(t,n),s=jm(null,t,r,e,s,n);var i=Rm();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,kt(r)?(i=!0,Xc(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,_m(t),s.updater=Uu,t.stateNode=s,s._reactInternals=t,xf(t,r,e,n),t=kf(null,t,r,!0,i,n)):(t.tag=0,xe&&i&&vm(t),lt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(kc(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=vA(r),e=on(r,e),s){case 0:t=Sf(null,t,r,e,n);break e;case 1:t=rv(null,t,r,e,n);break e;case 11:t=tv(null,t,r,e,n);break e;case 14:t=nv(null,t,r,on(r.type,e),n);break e}throw Error(I(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:on(r,s),Sf(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:on(r,s),rv(e,t,r,s,n);case 3:e:{if(P1(t),e===null)throw Error(I(387));r=t.pendingProps,i=t.memoizedState,s=i.element,t1(e,t),ru(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=ho(Error(I(423)),t),t=sv(e,t,r,n,s);break e}else if(r!==s){s=ho(Error(I(424)),t),t=sv(e,t,r,n,s);break e}else for(jt=Wr(t.stateNode.containerInfo.firstChild),Rt=t,xe=!0,hn=null,n=Zb(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(lo(),r===s){t=ir(e,t,n);break e}lt(e,t,r,n)}t=t.child}return t;case 5:return n1(t),e===null&&yf(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,hf(r,s)?o=null:i!==null&&hf(r,i)&&(t.flags|=32),C1(e,t),lt(e,t,o,n),t.child;case 6:return e===null&&yf(t),null;case 13:return A1(e,t,n);case 4:return Tm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=co(t,null,r,n):lt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:on(r,s),tv(e,t,r,s,n);case 7:return lt(e,t,t.pendingProps,n),t.child;case 8:return lt(e,t,t.pendingProps.children,n),t.child;case 12:return lt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,pe(tu,r._currentValue),r._currentValue=o,i!==null)if(gn(i.value,o)){if(i.children===s.children&&!St.current){t=ir(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=tr(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),vf(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(I(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),vf(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}lt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Fi(t,n),s=Yt(s),r=r(s),t.flags|=1,lt(e,t,r,n),t.child;case 14:return r=t.type,s=on(r,t.pendingProps),s=on(r.type,s),nv(e,t,r,s,n);case 15:return _1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:on(r,s),kc(e,t),t.tag=1,kt(r)?(e=!0,Xc(t)):e=!1,Fi(t,n),S1(t,r,s),xf(t,r,s,n),kf(null,t,r,!0,e,n);case 19:return j1(e,t,n);case 22:return T1(e,t,n)}throw Error(I(156,t.tag))};function K1(e,t){return wb(e,t)}function yA(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 5,063 bytes, line 41
41ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(e,t,n,r){return new yA(e,t,n,r)}function Um(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vA(e){if(typeof e=="function")return Um(e)?1:0;if(e!=null){if(e=e.$$typeof,e===om)return 11;if(e===am)return 14}return 2}function Gr(e,t){var n=e.alternate;return n===null?(n=Wt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Tc(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")Um(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case vi:return $s(n.children,s,i,t);case im:o=8,s|=8;break;case Bh:return e=Wt(12,n,t,s|2),e.elementType=Bh,e.lanes=i,e;case Wh:return e=Wt(13,n,t,s),e.elementType=Wh,e.lanes=i,e;case Hh:return e=Wt(19,n,t,s),e.elementType=Hh,e.lanes=i,e;case nb:return Wu(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case eb:o=10;break e;case tb:o=9;break e;case om:o=11;break e;case am:o=14;break e;case kr:o=16,r=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=Wt(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function $s(e,t,n,r){return e=Wt(7,e,r,t),e.lanes=n,e}function Wu(e,t,n,r){return e=Wt(22,e,r,t),e.elementType=nb,e.lanes=n,e.stateNode={isHidden:!1},e}function Hd(e,t,n){return e=Wt(6,e,null,t),e.lanes=n,e}function Kd(e,t,n){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function wA(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Td(0),this.expirationTimes=Td(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Td(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function zm(e,t,n,r,s,i,o,a,l){return e=new wA(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Wt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_m(i),e}function xA(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:yi,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function q1(e){if(!e)return Xr;e=e._reactInternals;e:{if(Ys(e)!==e||e.tag!==1)throw Error(I(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(kt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(I(171))}if(e.tag===1){var n=e.type;if(kt(n))return qb(e,n,t)}return t}function G1(e,t,n,r,s,i,o,a,l){return e=zm(n,r,!0,e,s,i,o,a,l),e.context=q1(null),n=e.current,r=dt(),s=qr(n),i=tr(r,s),i.callback=t??null,Hr(n,i,s),e.current.lanes=s,al(e,s,r),Et(e,r),e}function Hu(e,t,n,r){var s=t.current,i=dt(),o=qr(s);return n=q1(n),t.context===null?t.context=n:t.pendingContext=n,t=tr(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Hr(s,t,o),e!==null&&(mn(e,s,o,i),xc(e,s,o)),o}function du(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function pv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Bm(e,t){pv(e,t),(e=e.alternate)&&pv(e,t)}function bA(){return null}var Y1=typeof reportError=="function"?reportError:function(e){console.error(e)};function Wm(e){this._internalRoot=e}Ku.prototype.render=Wm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));Hu(e,t,null,null)};Ku.prototype.unmount=Wm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ws(function(){Hu(null,e,null,null)}),t[rr]=null}};function Ku(e){this._internalRoot=e}Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=Tb();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tr.length&&t!==0&&t<Tr[n].priority;n++);Tr.splice(n,0,e),n===0&&Pb(e)}};function Hm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function qu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function mv(){}
vendor: 5,083 bytes, line 41
41function SA(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var c=du(o);i.call(c)}}var o=G1(t,r,e,0,null,!1,!1,"",mv);return e._reactRootContainer=o,e[rr]=o.current,Ca(e.nodeType===8?e.parentNode:e),Ws(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var c=du(l);a.call(c)}}var l=zm(e,0,!1,null,null,!1,!1,"",mv);return e._reactRootContainer=l,e[rr]=l.current,Ca(e.nodeType===8?e.parentNode:e),Ws(function(){Hu(t,l,n,r)}),l}function Gu(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=du(o);a.call(l)}}Hu(t,o,e,s)}else o=SA(n,t,e,s,r);return du(o)}Eb=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Jo(t.pendingLanes);n!==0&&(um(t,n|1),Et(t,Ne()),!(oe&6)&&(fo=Ne()+500,is()))}break;case 13:Ws(function(){var r=sr(e,1);if(r!==null){var s=dt();mn(r,e,1,s)}}),Bm(e,1)}};dm=function(e){if(e.tag===13){var t=sr(e,134217728);if(t!==null){var n=dt();mn(t,e,134217728,n)}Bm(e,134217728)}};_b=function(e){if(e.tag===13){var t=qr(e),n=sr(e,t);if(n!==null){var r=dt();mn(n,e,t,r)}Bm(e,t)}};Tb=function(){return ue};Cb=function(e,t){var n=ue;try{return ue=e,t()}finally{ue=n}};tf=function(e,t,n){switch(t){case"input":if(Gh(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=$u(r);if(!s)throw Error(I(90));sb(r),Gh(r,s)}}}break;case"textarea":ob(e,n);break;case"select":t=n.value,t!=null&&Mi(e,!!n.multiple,t,!1)}};fb=$m;pb=Ws;var kA={usingClientEntryPoint:!1,Events:[cl,Si,$u,db,hb,$m]},Uo={findFiberByHostInstance:bs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},EA={bundleType:Uo.bundleType,version:Uo.version,rendererPackageName:Uo.rendererPackageName,rendererConfig:Uo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ur.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yb(e),e===null?null:e.stateNode},findFiberByHostInstance:Uo.findFiberByHostInstance||bA,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zl.isDisabled&&zl.supportsFiber)try{Iu=zl.inject(EA),On=zl}catch{}}It.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kA;It.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Hm(t))throw Error(I(200));return xA(e,t,null,n)};It.createRoot=function(e,t){if(!Hm(e))throw Error(I(299));var n=!1,r="",s=Y1;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=zm(e,1,!1,null,null,n,!1,r,s),e[rr]=t.current,Ca(e.nodeType===8?e.parentNode:e),new Wm(t)};It.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=yb(t),e=e===null?null:e.stateNode,e};It.flushSync=function(e){return Ws(e)};It.hydrate=function(e,t,n){if(!qu(t))throw Error(I(200));return Gu(null,e,t,!0,n)};It.hydrateRoot=function(e,t,n){if(!Hm(e))throw Error(I(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Y1;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=G1(t,null,e,1,n??null,s,!1,i,o),e[rr]=t.current,Ca(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Ku(t)};It.render=function(e,t,n){if(!qu(t))throw Error(I(200));return Gu(null,e,t,!1,n)};It.unmountComponentAtNode=function(e){if(!qu(e))throw Error(I(40));return e._reactRootContainer?(Ws(function(){Gu(null,null,e,!1,function(){e._reactRootContainer=null,e[rr]=null})}),!0):!1};It.unstable_batchedUpdates=$m;It.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!qu(n))throw Error(I(200));if(e==null||e._reactInternals===void 0)throw Error(I(38));return Gu(e,t,n,!1,r)};It.version="18.3.1-next-f1338f8080-20240426";function Q1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Q1)}catch(e){console.error(e)}}Q1(),Qx.exports=It;var dl=Qx.exports;const J1=il(dl);var X1,gv=dl;X1=gv.createRoot,gv.hydrateRoot;var _A=typeof Element<"u",TA=typeof Map=="function",CA=typeof Set=="function",PA=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Cc(e,t){if(e===t)return!0;
41if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Cc(e[r],t[r]))return!1;return!0}var i;if(TA&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Cc(r.value[1],t.get(r.value[0])))return!1;return!0}if(CA&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(PA&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(_A&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!Cc(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var AA=function(t,n){try{return Cc(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const jA=il(AA);var RA=function(e,t,n,r,s,i,o,a){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,s,i,o,a],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},NA=RA;const yv=il(NA);var OA=function(t,n,r,s){var i=r?r.call(s,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),a=Object.keys(n);if(o.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c<o.length;c++){var u=o[c];if(!l(u))return!1;var d=t[u],p=n[u];if(i=r?r.call(s,d,p,u):void 0,i===!1||i===void 0&&d!==p)return!1}return!0};const IA=il(OA);var Z1=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Z1||{}),qd={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},vv=Object.values(Z1),Yu={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},eS=Object.entries(Yu).reduce((e,[t,n])=>(e[n]=t,e),{}),fn="data-rh",Ui={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},zi=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},MA=e=>{let t=zi(e,"title");const n=zi(e,Ui.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=zi(e,Ui.DEFAULT_TITLE);return t||r||void 0},LA=e=>zi(e,Ui.ON_CHANGE_CLIENT_STATE)||(()=>{}),Gd=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),DA=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const s=Object.keys(r);for(let i=0;i<s.length;i+=1){const a=s[i].toLowerCase();if(e.indexOf(a)!==-1&&r[a])return n.concat(r)}}return n},[]),$A=e=>console&&typeof console.warn=="function"&&console.warn(e),zo=(e,t,n)=>{const r={};return n.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&$A(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,i)=>{const o={};i.filter(l=>{let c;const u=Object.keys(l);for(let p=0;p<u.length;p+=1){const f=u[p],v=f.toLowerCase();t.indexOf(v)!==-1&&!(c==="rel"&&l[c].toLowerCase()==="canonical")&&!(v==="rel"&&l[v].toLowerCase()==="stylesheet")&&(c=v),t.indexOf(f)!==-1&&(f==="innerHTML"||f==="cssText"||f==="itemprop")&&(c=f)}if(!c||!l[c])return!1;const d=l[c].toLowerCase();return r[c]||(r[c]={}),o[c]||(o[c]={}),r[c][d]?!1:(o[c][d]=!0,!0)}
41).reverse().forEach(l=>s.push(l));const a=Object.keys(o);for(let l=0;l<a.length;l+=1){const c=a[l],u={...r[c],...o[c]};r[c]=u}return s},[]).reverse()},FA=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},VA=e=>({baseTag:DA(["href"],e),bodyAttributes:Gd("bodyAttributes",e),defer:zi(e,Ui.DEFER),encode:zi(e,Ui.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Gd("htmlAttributes",e),linkTags:zo("link",["rel","href"],e),metaTags:zo("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:zo("noscript",["innerHTML"],e),onChangeClientState:LA(e),scriptTags:zo("script",["src","innerHTML"],e),styleTags:zo("style",["cssText"],e),title:MA(e),titleAttributes:Gd("titleAttributes",e),prioritizeSeoTags:FA(e,Ui.PRIORITIZE_SEO_TAGS)}),tS=e=>Array.isArray(e)?e.join(""):e,UA=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},Yd=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(UA(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},wv=(e,t)=>({...e,[t]:void 0}),zA=["noscript","script","style"],Mf=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),nS=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),BA=(e,t,n,r)=>{const s=nS(n),i=tS(t);return s?`<${e} ${fn}="true" ${s}>${Mf(i,r)}</${e}>`:`<${e} ${fn}="true">${Mf(i,r)}</${e}>`},WA=(e,t,n=!0)=>t.reduce((r,s)=>{const i=s,o=Object.keys(i).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const d=typeof i[u]>"u"?u:`${u}="${Mf(i[u],n)}"`;return c?`${c} ${d}`:d},""),a=i.innerHTML||i.cssText||"",l=zA.indexOf(e)===-1;return`${r}<${e} ${fn}="true" ${o}${l?"/>":`>${a}</${e}>`}`},""),rS=(e,t={})=>Object.keys(e).reduce((n,r)=>{const s=Yu[r];return n[s||r]=e[r],n},t),HA=(e,t,n)=>{const r={key:t,[fn]:!0},s=rS(n,r);return[N.createElement("title",s,t)]},Pc=(e,t)=>t.map((n,r)=>{const s={key:r,[fn]:!0};return Object.keys(n).forEach(i=>{const a=Yu[i]||i;if(a==="innerHTML"||a==="cssText"){const l=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:l}}else s[a]=n[i]}),N.createElement(e,s)}),Ft=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>HA(e,t.title,t.titleAttributes),toString:()=>BA(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>rS(t),toString:()=>nS(t)};default:return{toComponent:()=>Pc(e,t),toString:()=>WA(e,t,n)}}},KA=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const s=Yd(e,qd.meta),i=Yd(t,qd.link),o=Yd(n,qd.script);return{priorityMethods:{toComponent:()=>[...Pc("meta",s.priority),...Pc("link",i.priority),...Pc("script",o.priority)],toString:()=>`${Ft("meta",s.priority,r)} ${Ft("link",i.priority,r)} ${Ft("script",o.priority,r)}`},metaTags:s.default,linkTags:i.default,scriptTags:o.default}},qA=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:i,styleTags:o,title:a="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:d,scriptTags:p}=e,f={toComponent:()=>[],toString:()=>""};return c&&({priorityMethods:f,linkTags:u,metaTags:d,scriptTags:p}=KA(e)),{priority:f,base:Ft("base",t,r),bodyAttributes:Ft("bodyAttributes",n,r),htmlAttributes:Ft("htmlAttributes",s,r),link:Ft("link",u,r),meta:Ft("meta",d,r),noscript:Ft("noscript",i,r),script:Ft("script",p,r),style:Ft("style",o,r),title:Ft("title",{title:a,titleAttributes:l},r)}},Lf=qA,Bl=[],Km=!!(typeof window<"u"&&window.document&&window.document.createElement),Df=class{constructor(e,t){zn(this,"instances",[]);zn(this,"canUseDOM",Km);zn(this,"context");zn(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Bl:this.instances,add:e=>{(this.canUseDOM?Bl:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Bl:this.instances).indexOf(e);(this.canUseDOM?Bl:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Lf({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},GA=parseInt(N.version.split(".")[0],10),$f=GA>=19,YA={},sS=N.createContext(YA),Cs,iS=(Cs=class extends b.Component{constructor(n){super(n);zn(this,"helmetData");$f?this.helmetData=null:this.helmetData=new Df(this.props.context||{},Cs.canUseDOM)}render(){return $f?N.createElement(N.Fragment,null,this.props.children):N.createElement(sS.Provider,{value:this.helmetData.value},this.props.children)}},zn(Cs,"canUseDOM",Km),Cs),ni=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${fn}]`),s=[].slice.call(r),i=[];let o;return t&&t.length&&t.forEach(a=>{const l=document.createElement(e);for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c))if(c==="innerHTML")l.innerHTML=a.innerHTML;else if(c==="cssText"){const u=a.cssText;l.appendChild(document.createTextNode(u))}else{const u=c,d=typeof a[u]>
41"u"?"":a[u];l.setAttribute(c,d)}l.setAttribute(fn,"true"),s.some((c,u)=>(o=u,l.isEqualNode(c)))?s.splice(o,1):i.push(l)}),s.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),i.forEach(a=>n.appendChild(a)),{oldTags:s,newTags:i}},Ff=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(fn),s=r?r.split(","):[],i=[...s],o=Object.keys(t);for(const a of o){const l=t[a]||"";n.getAttribute(a)!==l&&n.setAttribute(a,l),s.indexOf(a)===-1&&s.push(a);const c=i.indexOf(a);c!==-1&&i.splice(c,1)}for(let a=i.length-1;a>=0;a-=1)n.removeAttribute(i[a]);s.length===i.length?n.removeAttribute(fn):n.getAttribute(fn)!==o.join(",")&&n.setAttribute(fn,o.join(","))},QA=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=tS(e)),Ff("title",t)},xv=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:i,metaTags:o,noscriptTags:a,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:p}=e;Ff("body",r),Ff("html",s),QA(d,p);const f={baseTag:ni("base",n),linkTags:ni("link",i),metaTags:ni("meta",o),noscriptTags:ni("noscript",a),scriptTags:ni("script",c),styleTags:ni("style",u)},v={},m={};Object.keys(f).forEach(w=>{const{newTags:g,oldTags:y}=f[w];g.length&&(v[w]=g),y.length&&(m[w]=f[w].oldTags)}),t&&t(),l(e,v,m)},Bo=null,JA=e=>{Bo&&cancelAnimationFrame(Bo),e.defer?Bo=requestAnimationFrame(()=>{xv(e,()=>{Bo=null})}):(xv(e),Bo=null)},XA=JA,bv=class extends b.Component{constructor(){super(...arguments);zn(this,"rendered",!1)}shouldComponentUpdate(t){return!IA(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const s=VA(t.get().map(i=>{const{context:o,...a}=i.props;return a}));iS.canUseDOM?XA(s):Lf&&(r=Lf(s)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Ac=[],Sv=e=>{const t={};for(const n of Object.keys(e))t[eS[n]||n]=e[n];return t},ds=e=>{const t={};for(const n of Object.keys(e)){const r=Yu[n];t[r||n]=e[n]}return t},kv=(e,t)=>{if(!Km)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",s=n.getAttribute(r),i=s?s.split(","):[],o=Object.keys(t);for(const a of i)o.includes(a)||n.removeAttribute(a);for(const a of o){const l=t[a];l==null||l===!1?n.removeAttribute(a):l===!0?n.setAttribute(a,""):n.setAttribute(a,String(l))}o.length>0?n.setAttribute(r,o.join(",")):n.removeAttribute(r)},Qd=()=>{const e={},t={};for(const n of Ac){const{htmlAttributes:r,bodyAttributes:s}=n.props;r&&Object.assign(e,Sv(r)),s&&Object.assign(t,Sv(s))}kv("html",e),kv("body",t)},ZA=class extends b.Component{componentDidMount(){Ac.push(this),Qd()}componentDidUpdate(){Qd()}componentWillUnmount(){const e=Ac.indexOf(this);e!==-1&&Ac.splice(e,1),Qd()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return N.createElement("title",ds(t),e)}renderBase(){const{base:e}=this.props;return e?N.createElement("base",ds(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>N.createElement("meta",{key:n,...ds(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>N.createElement("link",{key:n,...ds(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,i=ds(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),N.createElement("script",{key:n,...i})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:r,...s}=t,i=ds(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),N.createElement("style",{key:n,...i})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,i=ds(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),N.createElement("noscript",{key:n,...i})})}render(){return N.createElement(N.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},Uh,ej=(Uh=class extends b.Component{shouldComponentUpdate(e){return!jA(wv(this.props,"helmetData"),wv(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}
41warnOnInvalidChildren(e,t){return yv(vv.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${vv.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),yv(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return N.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:s,...i}=r.props,o=Object.keys(i).reduce((l,c)=>(l[eS[c]||c]=i[c],l),{});let{type:a}=r;switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,s),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,s);break;default:t=this.mapObjectTypeChildren(r,t,o,s);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof Df)){const s=r;r=new Df(s.context,!0),delete n.helmetData}return $f?N.createElement(ZA,{...n}):r?N.createElement(bv,{...n,context:r.value}):N.createElement(sS.Consumer,null,s=>N.createElement(bv,{...n,context:s}))}},zn(Uh,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Uh);const tj="modulepreload",nj=function(e){return"/"+e},Ev={},He=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(l=>{if(l=nj(l),l in Ev)return;Ev[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":tj,c||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((p,f)=>{d.addEventListener("load",p),d.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},rj=1,sj=1e6;let Jd=0;function ij(){return Jd=(Jd+1)%Number.MAX_SAFE_INTEGER,Jd.toString()}const Xd=new Map,_v=e=>{if(Xd.has(e))return;const t=setTimeout(()=>{Xd.delete(e),da({type:"REMOVE_TOAST",toastId:e})},sj);Xd.set(e,t)},oj=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,rj)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?_v(n):e.toasts.forEach(r=>{_v(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},jc=[];let Rc={toasts:[]};function da(e){Rc=oj(Rc,e),jc.forEach(t=>{t(Rc)})}function aj({...e}){const t=ij(),n=s=>da({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>da({type:"DISMISS_TOAST",toastId:t});return da({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function lj(){const[e,t]=b.useState(Rc);return b.useEffect(()=>(jc.push(t),()=>{const n=jc.indexOf(t);n>-1&&jc.splice(n,1)}),[e]),{...e,toast:aj,dismiss:n=>da({type:"DISMISS_TOAST",toastId:n})}}function be(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Tv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function oS(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Tv(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():Tv(e[s],null)}}}}function ht(...e){return b.useCallback(oS(...e),e)}function cj(e,t){const n=b.createContext(t),r=i=>{const{children:o,...a}=i,l=b.useMemo(()=>a,Object.values(a));return h.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function s(i){const o=b.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function hl(e,t=[]){let n=[];function r(i,o){const a=b.createContext(o),l=n.length;n=[...n,o];const c=d=>{var g;const{scope:p,children:f,...v}=d,m=((g=p==null?void 0:p[e])==null?void 0:g[l])||a,w=b.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:w,children:f})};c.displayName=i+"Provider";function u(d,p){var m;const f=((m=p==null?void 0:p[e])==null?void 0:m[l])||a,v=b.useContext(f);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const s=()=>{const i=n.map(o=>b.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,uj(s,...t)]}function uj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:l,scopeName:c}
vendor: 10,635 bytes, line 41
41)=>{const d=l(i)[`__scope${c}`];return{...a,...d}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function La(e){const t=hj(e),n=b.forwardRef((r,s)=>{const{children:i,...o}=r,a=b.Children.toArray(i),l=a.find(pj);if(l){const c=l.props.children,u=a.map(d=>d===l?b.Children.count(c)>1?b.Children.only(null):b.isValidElement(c)?c.props.children:null:d);return h.jsx(t,{...o,ref:s,children:b.isValidElement(c)?b.cloneElement(c,void 0,u):null})}return h.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var dj=La("Slot");function hj(e){const t=b.forwardRef((n,r)=>{const{children:s,...i}=n;if(b.isValidElement(s)){const o=gj(s),a=mj(i,s.props);return s.type!==b.Fragment&&(a.ref=r?oS(r,o):o),b.cloneElement(s,a)}return b.Children.count(s)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var aS=Symbol("radix.slottable");function fj(e){const t=({children:n})=>h.jsx(h.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=aS,t}function pj(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===aS}function mj(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{const l=i(...a);return s(...a),l}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function gj(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function yj(e){const t=e+"CollectionProvider",[n,r]=hl(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=m=>{const{scope:w,children:g}=m,y=N.useRef(null),x=N.useRef(new Map).current;return h.jsx(s,{scope:w,itemMap:x,collectionRef:y,children:g})};o.displayName=t;const a=e+"CollectionSlot",l=La(a),c=N.forwardRef((m,w)=>{const{scope:g,children:y}=m,x=i(a,g),S=ht(w,x.collectionRef);return h.jsx(l,{ref:S,children:y})});c.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",p=La(u),f=N.forwardRef((m,w)=>{const{scope:g,children:y,...x}=m,S=N.useRef(null),E=ht(w,S),k=i(u,g);return N.useEffect(()=>(k.itemMap.set(S,{ref:S,...x}),()=>void k.itemMap.delete(S))),h.jsx(p,{[d]:"",ref:E,children:y})});f.displayName=u;function v(m){const w=i(e+"CollectionConsumer",m);return N.useCallback(()=>{const y=w.collectionRef.current;if(!y)return[];const x=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(w.itemMap.values()).sort((k,_)=>x.indexOf(k.ref.current)-x.indexOf(_.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:o,Slot:c,ItemSlot:f},v,r]}var vj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],De=vj.reduce((e,t)=>{const n=La(`Primitive.${t}`),r=b.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function lS(e,t){e&&dl.flushSync(()=>e.dispatchEvent(t))}function $n(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function wj(e,t=globalThis==null?void 0:globalThis.document){const n=$n(e);b.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var xj="DismissableLayer",Vf="dismissableLayer.update",bj="dismissableLayer.pointerDownOutside",Sj="dismissableLayer.focusOutside",Cv,cS=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qu=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,c=b.useContext(cS),[u,d]=b.useState(null),p=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=b.useState({}),v=ht(t,_=>d(_)),m=Array.from(c.layers),[w]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(w),y=u?m.indexOf(u):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,S=y>=g,E=Ej(_=>{const C=_.target,P=[...c.branches].some(j=>j.contains(C));!S||P||(s==null||s(_),o==null||o(_),_.defaultPrevented||a==null||a())},p),k=_j(_=>{const C=_.target;[...c.branches].some(j=>j.contains(C))||(i==null||i(_),o==null||o(_),_.defaultPrevented||a==null||a())},p);return wj(_=>{y===c.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&a&&(_.preventDefault(),a()))},p),b.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Cv=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Pv(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Cv)}},[u,p,n,c]),b.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Pv())},[u,c]),b.useEffect(()=>{const _=()=>f({});return document.addEventListener(Vf,_),()=>document.removeEventListener(Vf,_)},[]),h.jsx(De.div,{...l,ref:v,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:be(e.onFocusCapture,k.onFocusCapture),onBlurCapture:be(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:be(e.onPointerDownCapture,E.onPointerDownCapture)})});Qu.displayName=xj;var kj="DismissableLayerBranch",uS=b.forwardRef((e,t)=>{const n=b.useContext(cS),r=b.useRef(null),s=ht(t,r);return b.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),h.jsx(De.div,{...e,ref:s})});uS.displayName=kj;function Ej(e,t=globalThis==null?void 0:globalThis.document){const n=$n(e),r=b.useRef(!1),s=b.useRef(()=>{});return b.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){dS(bj,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function _j(e,t=globalThis==null?void 0:globalThis.document){const n=$n(e),r=b.useRef(!1);return b.useEffect(()=>{const s=i=>{i.target&&!r.current&&dS(Sj,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Pv(){const e=new CustomEvent(Vf);document.dispatchEvent(e)}function dS(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?lS(s,i):s.dispatchEvent(i)}var Tj=Qu,Cj=uS,or=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},Pj="Portal",qm=b.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=b.useState(!1);or(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?J1.createPortal(h.jsx(De.div,{...r,ref:t}),o):null});qm.displayName=Pj;function Aj(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var bo=e=>{const{present:t,children:n}=e,r=jj(t),s=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),i=ht(r.ref,Rj(s));return typeof n=="function"||r.isPresent?b.cloneElement(s,{ref:i}):null};bo.displayName="Presence";function jj(e){const[t,n]=b.useState(),r=b.useRef(null),s=b.useRef(e),i=b.useRef("none"),o=e?"mounted":"unmounted",[a,l]=Aj(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const c=Wl(r.current);i.current=a==="mounted"?c:"none"},[a]),or(()=>{const c=r.current,u=s.current;if(u!==e){const p=i.current,f=Wl(c);e?l("MOUNT"):f==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==f?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),or(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=f=>{const m=Wl(r.current).includes(f.animationName);if(f.target===t&&m&&(l("ANIMATION_END"),!s.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},p=f=>{f.target===t&&(i.current=Wl(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Wl(e){return(e==null?void 0:e.animationName)||"none"}function Rj(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Nj=tm[" useInsertionEffect ".trim().toString()]||or;function hS({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,o]=Oj({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:s;{const u=b.useRef(e!==void 0);b.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,r])}const c=b.useCallback(u=>{var d;if(a){const p=Ij(u)?u(e):u;p!==e&&((d=o.current)==null||d.call(o,p))}else i(u)},[a,e,i,o]);return[l,c]}function Oj({defaultProp:e,onChange:t}){const[n,r]=b.useState(e),s=b.useRef(n),i=b.useRef(t);return Nj(()=>{i.current=t},[t]),b.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function Ij(e){return typeof e=="function"}var Mj=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Lj="VisuallyHidden",Ju=b.forwardRef((e,t)=>
41h.jsx(De.span,{...e,ref:t,style:{...Mj,...e.style}}));Ju.displayName=Lj;var Dj=Ju,Gm="ToastProvider",[Ym,$j,Fj]=yj("Toast"),[fS,hz]=hl("Toast",[Fj]),[Vj,Xu]=fS(Gm),pS=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[a,l]=b.useState(null),[c,u]=b.useState(0),d=b.useRef(!1),p=b.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Gm}\`. Expected non-empty \`string\`.`),h.jsx(Ym.Provider,{scope:t,children:h.jsx(Vj,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:b.useCallback(()=>u(f=>f+1),[]),onToastRemove:b.useCallback(()=>u(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:p,children:o})})};pS.displayName=Gm;var mS="ToastViewport",Uj=["F8"],Uf="toast.viewportPause",zf="toast.viewportResume",gS=b.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Uj,label:s="Notifications ({hotkey})",...i}=e,o=Xu(mS,n),a=$j(n),l=b.useRef(null),c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),p=ht(t,d,o.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=o.toastCount>0;b.useEffect(()=>{const w=g=>{var x;r.length!==0&&r.every(S=>g[S]||g.code===S)&&((x=d.current)==null||x.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),b.useEffect(()=>{const w=l.current,g=d.current;if(v&&w&&g){const y=()=>{if(!o.isClosePausedRef.current){const k=new CustomEvent(Uf);g.dispatchEvent(k),o.isClosePausedRef.current=!0}},x=()=>{if(o.isClosePausedRef.current){const k=new CustomEvent(zf);g.dispatchEvent(k),o.isClosePausedRef.current=!1}},S=k=>{!w.contains(k.relatedTarget)&&x()},E=()=>{w.contains(document.activeElement)||x()};return w.addEventListener("focusin",y),w.addEventListener("focusout",S),w.addEventListener("pointermove",y),w.addEventListener("pointerleave",E),window.addEventListener("blur",y),window.addEventListener("focus",x),()=>{w.removeEventListener("focusin",y),w.removeEventListener("focusout",S),w.removeEventListener("pointermove",y),w.removeEventListener("pointerleave",E),window.removeEventListener("blur",y),window.removeEventListener("focus",x)}}},[v,o.isClosePausedRef]);const m=b.useCallback(({tabbingDirection:w})=>{const y=a().map(x=>{const S=x.ref.current,E=[S,...eR(S)];return w==="forwards"?E:E.reverse()});return(w==="forwards"?y.reverse():y).flat()},[a]);return b.useEffect(()=>{const w=d.current;if(w){const g=y=>{var E,k,_;const x=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!x){const C=document.activeElement,P=y.shiftKey;if(y.target===w&&P){(E=c.current)==null||E.focus();return}const O=m({tabbingDirection:P?"backwards":"forwards"}),z=O.findIndex(M=>M===C);Zd(O.slice(z+1))?y.preventDefault():P?(k=c.current)==null||k.focus():(_=u.current)==null||_.focus()}};return w.addEventListener("keydown",g),()=>w.removeEventListener("keydown",g)}},[a,m]),h.jsxs(Cj,{ref:l,role:"region","aria-label":s.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&h.jsx(Bf,{ref:c,onFocusFromOutsideViewport:()=>{const w=m({tabbingDirection:"forwards"});Zd(w)}}),h.jsx(Ym.Slot,{scope:n,children:h.jsx(De.ol,{tabIndex:-1,...i,ref:p})}),v&&h.jsx(Bf,{ref:u,onFocusFromOutsideViewport:()=>{const w=m({tabbingDirection:"backwards"});Zd(w)}})]})});gS.displayName=mS;var yS="ToastFocusProxy",Bf=b.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=Xu(yS,n);return h.jsx(Ju,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var c;const a=o.relatedTarget;!((c=i.viewport)!=null&&c.contains(a))&&r()}})});Bf.displayName=yS;var fl="Toast",zj="toast.swipeStart",Bj="toast.swipeMove",Wj="toast.swipeCancel",Hj="toast.swipeEnd",vS=b.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=e,[a,l]=hS({prop:r,defaultProp:s??!0,onChange:i,caller:fl});return h.jsx(bo,{present:n||a,children:h.jsx(Gj,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:$n(e.onPause),onResume:$n(e.onResume),onSwipeStart:be(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:be(e.onSwipeMove,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:be(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:be(e.onSwipeEnd,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});vS.displayName=fl;var[Kj,qj]=fS(fl,{onClose(){}}),Gj=b.forwardRef((e,t)=>
41{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:p,onSwipeEnd:f,...v}=e,m=Xu(fl,n),[w,g]=b.useState(null),y=ht(t,M=>g(M)),x=b.useRef(null),S=b.useRef(null),E=s||m.duration,k=b.useRef(0),_=b.useRef(E),C=b.useRef(0),{onToastAdd:P,onToastRemove:j}=m,D=$n(()=>{var Q;(w==null?void 0:w.contains(document.activeElement))&&((Q=m.viewport)==null||Q.focus()),o()}),O=b.useCallback(M=>{!M||M===1/0||(window.clearTimeout(C.current),k.current=new Date().getTime(),C.current=window.setTimeout(D,M))},[D]);b.useEffect(()=>{const M=m.viewport;if(M){const Q=()=>{O(_.current),c==null||c()},H=()=>{const $=new Date().getTime()-k.current;_.current=_.current-$,window.clearTimeout(C.current),l==null||l()};return M.addEventListener(Uf,H),M.addEventListener(zf,Q),()=>{M.removeEventListener(Uf,H),M.removeEventListener(zf,Q)}}},[m.viewport,E,l,c,O]),b.useEffect(()=>{i&&!m.isClosePausedRef.current&&O(E)},[i,E,m.isClosePausedRef,O]),b.useEffect(()=>(P(),()=>j()),[P,j]);const z=b.useMemo(()=>w?_S(w):null,[w]);return m.viewport?h.jsxs(h.Fragment,{children:[z&&h.jsx(Yj,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:z}),h.jsx(Kj,{scope:n,onClose:D,children:dl.createPortal(h.jsx(Ym.ItemSlot,{scope:n,children:h.jsx(Tj,{asChild:!0,onEscapeKeyDown:be(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||D(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:h.jsx(De.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...v,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:be(e.onKeyDown,M=>{M.key==="Escape"&&(a==null||a(M.nativeEvent),M.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:be(e.onPointerDown,M=>{M.button===0&&(x.current={x:M.clientX,y:M.clientY})}),onPointerMove:be(e.onPointerMove,M=>{if(!x.current)return;const Q=M.clientX-x.current.x,H=M.clientY-x.current.y,$=!!S.current,A=["left","right"].includes(m.swipeDirection),R=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,L=A?R(0,Q):0,G=A?0:R(0,H),W=M.pointerType==="touch"?10:2,X={x:L,y:G},ee={originalEvent:M,delta:X};$?(S.current=X,Hl(Bj,d,ee,{discrete:!1})):Av(X,m.swipeDirection,W)?(S.current=X,Hl(zj,u,ee,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(Q)>W||Math.abs(H)>W)&&(x.current=null)}),onPointerUp:be(e.onPointerUp,M=>{const Q=S.current,H=M.target;if(H.hasPointerCapture(M.pointerId)&&H.releasePointerCapture(M.pointerId),S.current=null,x.current=null,Q){const $=M.currentTarget,A={originalEvent:M,delta:Q};Av(Q,m.swipeDirection,m.swipeThreshold)?Hl(Hj,f,A,{discrete:!0}):Hl(Wj,p,A,{discrete:!0}),$.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),Yj=e=>{const{__scopeToast:t,children:n,...r}=e,s=Xu(fl,t),[i,o]=b.useState(!1),[a,l]=b.useState(!1);return Xj(()=>o(!0)),b.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:h.jsx(qm,{asChild:!0,children:h.jsx(Ju,{...r,children:i&&h.jsxs(h.Fragment,{children:[s.label," ",n]})})})},Qj="ToastTitle",wS=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return h.jsx(De.div,{...r,ref:t})});wS.displayName=Qj;var Jj="ToastDescription",xS=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return h.jsx(De.div,{...r,ref:t})});xS.displayName=Jj;var bS="ToastAction",SS=b.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?h.jsx(ES,{altText:n,asChild:!0,children:h.jsx(Qm,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${bS}\`. Expected non-empty \`string\`.`),null)});SS.displayName=bS;var kS="ToastClose",Qm=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=qj(kS,n);return h.jsx(ES,{asChild:!0,children:h.jsx(De.button,{type:"button",...r,ref:t,onClick:be(e.onClick,s.onClose)})})});Qm.displayName=kS;var ES=b.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return h.jsx(De.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function _S(e){const t=[];
vendor: 12,443 bytes, lines 41-181
41return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Zj(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(..._S(r))}}),t}function Hl(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?lS(s,i):s.dispatchEvent(i)}var Av=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),i=r>s;return t==="left"||t==="right"?i&&r>n:!i&&s>n};function Xj(e=()=>{}){const t=$n(e);or(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Zj(e){return e.nodeType===e.ELEMENT_NODE}function eR(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zd(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var tR=pS,TS=gS,CS=vS,PS=wS,AS=xS,jS=SS,RS=Qm;function NS(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=NS(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function OS(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=NS(e))&&(r&&(r+=" "),r+=t);return r}const jv=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Rv=OS,Zu=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Rv(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const p=jv(u)||jv(d);return s[c][p]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,p]=u;return p===void 0||(c[d]=p),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:p,...f}=u;return Object.entries(f).every(v=>{let[m,w]=v;return Array.isArray(w)?w.includes({...i,...a}[m]):{...i,...a}[m]===w})?[...c,d,p]:c},[]);return Rv(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 42 * @license lucide-react v0.462.0 - ISC 43 * 44 * This source code is licensed under the ISC license. 45 * See the LICENSE file in the root directory of this source tree. 46 */const nR=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),IS=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 47 * @license lucide-react v0.462.0 - ISC 48 * 49 * This source code is licensed under the ISC license. 50 * See the LICENSE file in the root directory of this source tree. 51 */var rR={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"};/** 52 * @license lucide-react v0.462.0 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree. 56 */const sR=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>b.createElement("svg",{ref:l,...rR,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:IS("lucide",s),...a},[...o.map(([c,u])=>b.createElement(c,u)),...Array.isArray(i)?i:[i]]));/** 57 * @license lucide-react v0.462.0 - ISC 58 * 59 * This source code is licensed under the ISC license. 60 * See the LICENSE file in the root directory of this source tree. 61 */const ae=(e,t)=>{const n=b.forwardRef(({className:r,...s},i)=>b.createElement(sR,{ref:i,iconNode:t,className:IS(`lucide-${nR(e)}`,r),...s}));return n.displayName=`${e}`,n};/** 62 * @license lucide-react v0.462.0 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */const qn=ae("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 67 * @license lucide-react v0.462.0 - ISC 68 * 69 * This source code is licensed under the ISC license. 70 * See the LICENSE file in the root directory of this source tree. 71 */const iR=ae("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 72 * @license lucide-react v0.462.0 - ISC 73 * 74 * This source code is licensed under the ISC license. 75 * See the LICENSE file in the root directory of this source tree. 76 */const Nv=ae("Bike",[["circle",{cx:"18.5",cy:"17.5",r:"3.5",key:"15x4ox"}],["circle",{cx:"5.5",cy:"17.5",r:"3.5",key:"1noe27"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["path",{d:"M12 17.5V14l-3-3 4-3 2 3h2",key:"1npguv"}]]);/** 77 * @license lucide-react v0.462.0 - ISC 78 * 79 * This source code is licensed under the ISC license. 80 * See the LICENSE file in the root directory of this source tree. 81 */const oR=ae("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 82 * @license lucide-react v0.462.0 - ISC 83 * 84 * This source code is licensed under the ISC license. 85 * See the LICENSE file in the root directory of this source tree. 86 */const aR=ae("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 87 * @license lucide-react v0.462.0 - ISC 88 * 89 * This source code is licensed under the ISC license. 90 * See the LICENSE file in the root directory of this source tree. 91 */const MS=ae("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/** 92 * @license lucide-react v0.462.0 - ISC 93 * 94 * This source code is licensed under the ISC license. 95 * See the LICENSE file in the root directory of this source tree. 96 */const LS=ae("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 97 * @license lucide-react v0.462.0 - ISC 98 * 99 * This source code is licensed under the ISC license. 100 * See the LICENSE file in the root directory of this source tree. 101 */const Kl=ae("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 102 * @license lucide-react v0.462.0 - ISC 103 * 104 * This source code is licensed under the ISC license. 105 * See the LICENSE file in the root directory of this source tree. 106 */const ql=ae("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 107 * @license lucide-react v0.462.0 - ISC 108 * 109 * This source code is licensed under the ISC license. 110 * See the LICENSE file in the root directory of this source tree. 111 */const lR=ae("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 112 * @license lucide-react v0.462.0 - ISC 113 * 114 * This source code is licensed under the ISC license. 115 * See the LICENSE file in the root directory of this source tree. 116 */const eh=ae("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 117 * @license lucide-react v0.462.0 - ISC 118 * 119 * This source code is licensed under the ISC license. 120 * See the LICENSE file in the root directory of this source tree. 121 */const DS=ae("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/** 122 * @license lucide-react v0.462.0 - ISC 123 * 124 * This source code is licensed under the ISC license. 125 * See the LICENSE file in the root directory of this source tree. 126 */const cR=ae("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 127 * @license lucide-react v0.462.0 - ISC 128 * 129 * This source code is licensed under the ISC license. 130 * See the LICENSE file in the root directory of this source tree. 131 */const $S=ae("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/** 132 * @license lucide-react v0.462.0 - ISC 133 * 134 * This source code is licensed under the ISC license. 135 * See the LICENSE file in the root directory of this source tree. 136 */const uR=ae("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** 137 * @license lucide-react v0.462.0 - ISC 138 * 139 * This source code is licensed under the ISC license. 140 * See the LICENSE file in the root directory of this source tree. 141 */const dR=ae("Leaf",[["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"}]]);/** 142 * @license lucide-react v0.462.0 - ISC 143 * 144 * This source code is licensed under the ISC license. 145 * See the LICENSE file in the root directory of this source tree. 146 */const Wf=ae("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 147 * @license lucide-react v0.462.0 - ISC 148 * 149 * This source code is licensed under the ISC license. 150 * See the LICENSE file in the root directory of this source tree. 151 */const Zn=ae("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 152 * @license lucide-react v0.462.0 - ISC 153 * 154 * This source code is licensed under the ISC license. 155 * See the LICENSE file in the root directory of this source tree. 156 */const hR=ae("Menu",[["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"}]]);/** 157 * @license lucide-react v0.462.0 - ISC 158 * 159 * This source code is licensed under the ISC license. 160 * See the LICENSE file in the root directory of this source tree. 161 */const FS=ae("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/** 162 * @license lucide-react v0.462.0 - ISC 163 * 164 * This source code is licensed under the ISC license. 165 * See the LICENSE file in the root directory of this source tree. 166 */const th=ae("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 167 * @license lucide-react v0.462.0 - ISC 168 * 169 * This source code is licensed under the ISC license. 170 * See the LICENSE file in the root directory of this source tree. 171 */const Hf=ae("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 172 * @license lucide-react v0.462.0 - ISC 173 * 174 * This source code is licensed under the ISC license. 175 * See the LICENSE file in the root directory of this source tree. 176 */const Ov=ae("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/** 177 * @license lucide-react v0.462.0 - ISC 178 * 179 * This source code is licensed under the ISC license. 180 * See the LICENSE file in the root directory of this source tree. 181 */const Iv=ae("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}
181],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/** 182 * @license lucide-react v0.462.0 - ISC 183 * 184 * This source code is licensed under the ISC license. 185 * See the LICENSE file in the root directory of this source tree. 186 */const VS=ae("Snowflake",[["line",{x1:"2",x2:"22",y1:"12",y2:"12",key:"1dnqot"}],["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"m20 16-4-4 4-4",key:"rquw4f"}],["path",{d:"m4 8 4 4-4 4",key:"12s3z9"}],["path",{d:"m16 4-4 4-4-4",key:"1tumq1"}],["path",{d:"m8 20 4-4 4 4",key:"9p200w"}]]);/** 187 * @license lucide-react v0.462.0 - ISC 188 * 189 * This source code is licensed under the ISC license. 190 * See the LICENSE file in the root directory of this source tree. 191 */const fR=ae("Sparkles",[["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"}]]);/** 192 * @license lucide-react v0.462.0 - ISC 193 * 194 * This source code is licensed under the ISC license. 195 * See the LICENSE file in the root directory of this source tree. 196 */const Gl=ae("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/** 197 * @license lucide-react v0.462.0 - ISC 198 * 199 * This source code is licensed under the ISC license. 200 * See the LICENSE file in the root directory of this source tree. 201 */const pR=ae("TicketPercent",[["path",{d:"M2 9a3 3 0 1 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 1 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"1l48ns"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M15 15h.01",key:"lqbp3k"}]]);/** 202 * @license lucide-react v0.462.0 - ISC 203 * 204 * This source code is licensed under the ISC license. 205 * See the LICENSE file in the root directory of this source tree. 206 */const mR=ae("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** 207 * @license lucide-react v0.462.0 - ISC 208 * 209 * This source code is licensed under the ISC license. 210 * See the LICENSE file in the root directory of this source tree. 211 */const Jm=ae("User",[["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"}]]);/** 212 * @license lucide-react v0.462.0 - ISC 213 * 214 * This source code is licensed under the ISC license. 215 * See the LICENSE file in the root directory of this source tree. 216 */const US=ae("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]]);/** 217 * @license lucide-react v0.462.0 - ISC 218 * 219 * This source code is licensed under the ISC license. 220 * See the LICENSE file in the root directory of this source tree. 221 */const gR=ae("Wine",[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M12 15v7",key:"t2xh3l"}],["path",{d:"M12 15a5 5 0 0 0 5-5c0-2-.5-4-2-8H9c-1.5 4-2 6-2 8a5 5 0 0 0 5 5Z",key:"10ffi3"}]]);/** 222 * @license lucide-react v0.462.0 - ISC 223 * 224 * This source code is licensed under the ISC license. 225 * See the LICENSE file in the root directory of this source tree. 226 */const So=ae("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,913 bytes, line 226
226],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Xm="-",yR=e=>{const t=wR(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(Xm);return a[0]===""&&a.length!==1&&a.shift(),zS(a,t)||vR(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},zS=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?zS(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(Xm);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Mv=/^\[(.+)\]$/,vR=e=>{if(Mv.test(e)){const t=Mv.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},wR=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return bR(Object.entries(e.classGroups),n).forEach(([i,o])=>{Kf(o,r,i,t)}),r},Kf=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Lv(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(xR(s)){Kf(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Kf(o,Lv(t,i),n,r)})})},Lv=(e,t)=>{let n=e;return t.split(Xm).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},xR=e=>e.isThemeGetter,bR=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,SR=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},BS="!",kR=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let c=0,u=0,d;for(let w=0;w<a.length;w++){let g=a[w];if(c===0){if(g===s&&(r||a.slice(w,w+i)===t)){l.push(a.slice(u,w)),u=w+i;continue}if(g==="/"){d=w;continue}}g==="["?c++:g==="]"&&c--}const p=l.length===0?a:a.substring(u),f=p.startsWith(BS),v=f?p.substring(1):p,m=d&&d>u?d-u:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:v,maybePostfixModifierPosition:m}};return n?a=>n({className:a,parseClassName:o}):o},ER=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},_R=e=>({cache:SR(e.cacheSize),parseClassName:kR(e),...yR(e)}),TR=/\s+/,CR=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(TR);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=n(c);let v=!!f,m=r(v?p.substring(0,f):p);if(!m){if(!v){a=c+(a.length>0?" "+a:a);continue}if(m=r(p),!m){a=c+(a.length>0?" "+a:a);continue}v=!1}const w=ER(u).join(":"),g=d?w+BS:w,y=g+m;if(i.includes(y))continue;i.push(y);const x=s(m,v);for(let S=0;S<x.length;++S){const E=x[S];i.push(g+E)}a=c+(a.length>0?" "+a:a)}return a};function PR(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=WS(t))&&(r&&(r+=" "),r+=n);return r}const WS=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=WS(e[r]))&&(n&&(n+=" "),n+=t);return n};function AR(e,...t){let n,r,s,i=o;function o(l){const c=t.reduce((u,d)=>d(u),e());return n=_R(c),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=CR(l,n);return s(l,u),u}return function(){return i(PR.apply(null,arguments))}}const ge=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},HS=/^\[(?:([a-z-]+):)?(.+)\]$/i,jR=/^\d+\/\d+$/,RR=new Set(["px","full","screen"]),NR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,OR=/\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$/,IR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,MR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,LR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Bn=e=>Bi(e)||RR.has(e)||jR.test(e),gr=e=>ko(e,"length",WR),Bi=e=>!!e&&!Number.isNaN(Number(e)),nh=e=>ko(e,"number",Bi),Wo=e=>!!e&&Number.isInteger(Number(e)),DR=e=>e.endsWith("%")&&Bi(e.slice(0,-1)),te=e=>HS.test(e),yr=e=>NR.test(e),$R=new Set(["length","size","percentage"]),FR=e=>ko(e,$R,KS),VR=e=>ko(e,"position",KS),UR=new Set(["image","url"]),zR=e=>ko(e,UR,KR),BR=e=>ko(e,"",HR),Ho=()=>!0,ko=(e,t,n)=>{const r=HS.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},WR=e=>OR.test(e)&&!IR.test(e),KS=()=>!1,HR=e=>MR.test(e),KR=e=>LR.test(e),qR=()=>{const e=ge("colors"),t=ge("spacing"),n=ge("blur"),r=ge("brightness"),s=ge("borderColor"),i=ge("borderRadius"),o=ge("borderSpacing"),a=ge("borderWidth"),l=ge("contrast"),c=ge("grayscale"),u=ge("hueRotate"),d=ge("invert"),p=ge("gap"),f=ge("gradientColorStops"),v=ge("gradientColorStopPositions"),m=ge("inset"),w=ge("margin"),g=ge("opacity"),y=ge("padding"),x=ge("saturate"),S=ge("scale"),E=ge("sepia"),k=ge("skew"),_=ge("space"),C=ge("translate"),P=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",te,t],O=()=>[te,t],z=()=>["",Bn,gr],M=()=>["auto",Bi,te],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],$=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",te],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[Bi,te];return{cacheSize:500,separator:":",theme:{colors:[Ho],spacing:[Bn,gr],blur:["none","",yr,te],brightness:G(),borderColor:[e],borderRadius:["n
226one","","full",yr,te],borderSpacing:O(),borderWidth:z(),contrast:G(),grayscale:R(),hueRotate:G(),invert:R(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[DR,gr],inset:D(),margin:D(),opacity:G(),padding:O(),saturate:G(),scale:G(),sepia:R(),skew:G(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[yr]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Q(),te]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Wo,te]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Wo,te]}],"grid-cols":[{"grid-cols":[Ho]}],"col-start-end":[{col:["auto",{span:["full",Wo,te]},te]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[Ho]}],"row-start-end":[{row:["auto",{span:[Wo,te]},te]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...A()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...A(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...A(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,t]}],"min-w":[{"min-w":[te,t,"min","max","fit"]}],"max-w":[{"max-w":[te,t,"none","full","min","max","fit","prose",{screen:[yr]},yr]}],h:[{h:[te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",yr,gr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",nh]}],"font-family":[{font:[Ho]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",te]}],"line-clamp":[{"line-clamp":["none",Bi,nh]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Bn,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Bn,gr]}],"underline-offset":[{"underline-offset":["auto",Bn,te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),VR]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",FR]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},zR]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}
vendor: 4,885 bytes, line 226
226],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:H()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[Bn,te]}],"outline-w":[{outline:[Bn,gr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Bn,gr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",yr,BR]}],"shadow-color":[{shadow:[Ho]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...$(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":$()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",yr,te]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Wo,te]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}
vendor: 4,942 bytes, line 226
226],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Bn,gr,nh]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},GR=AR(qR);function _t(...e){return GR(OS(e))}const YR=tR,qS=b.forwardRef(({className:e,...t},n)=>h.jsx(TS,{ref:n,className:_t("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));qS.displayName=TS.displayName;const QR=Zu("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"}}),GS=b.forwardRef(({className:e,variant:t,...n},r)=>h.jsx(CS,{ref:r,className:_t(QR({variant:t}),e),...n}));GS.displayName=CS.displayName;const JR=b.forwardRef(({className:e,...t},n)=>h.jsx(jS,{ref:n,className:_t("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));JR.displayName=jS.displayName;const YS=b.forwardRef(({className:e,...t},n)=>h.jsx(RS,{ref:n,className:_t("absolute right-2 top-2 rounded-md p-1 text-foreground
226/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:h.jsx(So,{className:"h-4 w-4"})}));YS.displayName=RS.displayName;const QS=b.forwardRef(({className:e,...t},n)=>h.jsx(PS,{ref:n,className:_t("text-sm font-semibold",e),...t}));QS.displayName=PS.displayName;const JS=b.forwardRef(({className:e,...t},n)=>h.jsx(AS,{ref:n,className:_t("text-sm opacity-90",e),...t}));JS.displayName=AS.displayName;function XR(){const{toasts:e}=lj();return h.jsxs(YR,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return h.jsxs(GS,{...i,children:[h.jsxs("div",{className:"grid gap-1",children:[n&&h.jsx(QS,{children:n}),r&&h.jsx(JS,{children:r})]}),s,h.jsx(YS,{})]},t)}),h.jsx(qS,{})]})}var Dv=["light","dark"],ZR="(prefers-color-scheme: dark)",e2=b.createContext(void 0),t2={setTheme:e=>{},themes:[]},n2=()=>{var e;return(e=b.useContext(e2))!=null?e:t2};b.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:l})=>{let c=i==="system",u=n==="class"?`var d=document.documentElement,c=d.classList;
226${`c.remove(${a.map(v=>`'${v}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=s?Dv.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(v,m=!1,w=!0)=>{let g=o?o[v]:v,y=m?v+"|| ''":`'${g}'`,x="";return s&&w&&!m&&Dv.includes(v)&&(x+=`d.style.colorScheme = '${v}';`),n==="class"?m||g?x+=`c.add(${y})`:x+="null":g&&(x+=`d[s](n,${y})`),x},f=e?`!function(){${u}${p(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${ZR}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${p(o?"x[e]":"e",!0)}}${c?"":"else{"+p(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${p(o?"x[e]":"e",!0)}}else{${p(i,!1,!1)};}${d}}catch(t){}}();`;return b.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var r2=e=>{switch(e){case"success":return o2;case"info":return l2;case"warning":return a2;case"error":return c2;default:return null}},s2=Array(12).fill(0),i2=({visible:e,className:t})=>N.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},N.createElement("div",{className:"sonner-spinner"},s2.map((n,r)=>N.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),o2=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),a2=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},N.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),l2=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),c2=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),u2=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},N.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),N.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),d2=()=>{let[e,t]=N.useState(document.hidden);return N.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},qf=1,h2=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:qf++,i=this.toasts.find(a=>a.id===s),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:n}),{...a,...e,id:s,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:s}),s},this.dismiss=e=>
226(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0,i,o=r.then(async l=>{if(i=["resolve",l],N.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(p2(l)&&!l.ok){s=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,u=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:c,description:u})}else if(t.success!==void 0){s=!1;let c=typeof t.success=="function"?await t.success(l):t.success,u=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:c,description:u})}}).catch(async l=>{if(i=["reject",l],t.error!==void 0){s=!1;let c=typeof t.error=="function"?await t.error(l):t.error,u=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:c,description:u})}}).finally(()=>{var l;s&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,c)=>o.then(()=>i[0]==="reject"?c(i[1]):l(i[1])).catch(c));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||qf++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},yt=new h2,f2=(e,t)=>{let n=(t==null?void 0:t.id)||qf++;return yt.addToast({title:e,...t,id:n}),n},p2=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",m2=f2,g2=()=>yt.toasts,y2=()=>yt.getActiveToasts(),Zm=Object.assign(m2,{success:yt.success,info:yt.info,warning:yt.warning,error:yt.error,custom:yt.custom,message:yt.message,promise:yt.promise,dismiss:yt.dismiss,loading:yt.loading},{getHistory:g2,getToasts:y2});function v2(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}v2(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
226left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
226:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
226--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 227`);function Yl(e){return e.label!==void 0}var w2=3,x2="32px",b2="16px",$v=4e3,S2=356,k2=14,E2=20,_2=200;function tn(...e){return e.filter(Boolean).join(" ")}function T2(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var C2=e=>{var t,n,r,s,i,o,a,l,c,u,d;let{invert:p,toast:f,unstyled:v,interacting:m,setHeights:w,visibleToasts:g,heights:y,index:x,toasts:S,expanded:E,removeToast:k,defaultRichColors:_,closeButton:C,style:P,cancelButtonStyle:j,actionButtonStyle:D,className:O="",descriptionClassName:z="",duration:M,position:Q,gap:H,loadingIcon:$,expandByDefault:A,classNames:R,icons:L,closeButtonAriaLabel:G="Close toast",pauseWhenPageIsHidden:W}=e,[X,ee]=N.useState(null),[he,Ce]=N.useState(null),[ne,Lt]=N.useState(!1),[mt,Dt]=N.useState(!1),[ce,bn]=N.useState(!1),[Sn,Sl]=N.useState(!1),[gd,kl]=N.useState(!1),[yd,No]=N.useState(0),[Js,ty]=N.useState(0),Oo=N.useRef(f.duration||M||$v),ny=N.useRef(null),cs=N.useRef(null),zT=x===0,BT=x+1<=g,$t=f.type,Xs=f.dismissible!==!1,WT=f.className||"",HT=f.descriptionClassName||"",El=N.useMemo(()=>y.findIndex(Z=>Z.toastId===f.id)||0,[y,f.id]),KT=N.useMemo(()=>{var Z;return(Z=f.closeButton)!=null?Z:C},[f.closeButton,C]),ry=N.useMemo(()=>f.duration||M||$v,[f.duration,M]),vd=N.useRef(0),Zs=N.useRef(0),sy=N.useRef(0),ei=N.useRef(null),[qT,GT]=Q.split("-"),iy=N.useMemo(()=>y.reduce((Z,de,we)=>we>=El?Z:Z+de.height,0),[y,El]),oy=d2(),YT=f.invert||p,wd=$t==="loading";Zs.current=N.useMemo(()=>El*H+iy,[El,iy]),N.useEffect(()=>{Oo.current=ry},[ry]),N.useEffect(()=>{Lt(!0)},[]),N.useEffect(()=>{let Z=cs.current;if(Z){let de=Z.getBoundingClientRect().height;return ty(de),w(we=>[{toastId:f.id,height:de,position:f.position},...we]),()=>w(we=>we.filter(Jt=>Jt.toastId!==f.id))}},[w,f.id]),N.useLayoutEffect(()=>{if(!ne)return;let Z=cs.current,de=Z.style.height;Z.style.height="auto";let we=Z.getBoundingClientRect().height;Z.style.height=de,ty(we),w(Jt=>Jt.find(Xt=>Xt.toastId===f.id)?Jt.map(Xt=>Xt.toastId===f.id?{...Xt,height:we}:Xt):[{toastId:f.id,height:we,position:f.position},...Jt])},[ne,f.title,f.description,w,f.id]);let hr=N.useCallback(()=>{Dt(!0),No(Zs.current),w(Z=>Z.filter(de=>de.toastId!==f.id)),setTimeout(()=>{k(f)},_2)},[f,k,w,Zs]);N.useEffect(()=>{if(f.promise&&$t==="loading"||f.duration===1/0||f.type==="loading")return;let Z;return E||m||W&&oy?(()=>{if(sy.current<vd.current){let de=new Date().getTime()-vd.current;Oo.current=Oo.current-de}
227sy.current=new Date().getTime()})():Oo.current!==1/0&&(vd.current=new Date().getTime(),Z=setTimeout(()=>{var de;(de=f.onAutoClose)==null||de.call(f,f),hr()},Oo.current)),()=>clearTimeout(Z)},[E,m,f,$t,W,oy,hr]),N.useEffect(()=>{f.delete&&hr()},[hr,f.delete]);function QT(){var Z,de,we;return L!=null&&L.loading?N.createElement("div",{className:tn(R==null?void 0:R.loader,(Z=f==null?void 0:f.classNames)==null?void 0:Z.loader,"sonner-loader"),"data-visible":$t==="loading"},L.loading):$?N.createElement("div",{className:tn(R==null?void 0:R.loader,(de=f==null?void 0:f.classNames)==null?void 0:de.loader,"sonner-loader"),"data-visible":$t==="loading"},$):N.createElement(i2,{className:tn(R==null?void 0:R.loader,(we=f==null?void 0:f.classNames)==null?void 0:we.loader),visible:$t==="loading"})}return N.createElement("li",{tabIndex:0,ref:cs,className:tn(O,WT,R==null?void 0:R.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[$t],(n=f==null?void 0:f.classNames)==null?void 0:n[$t]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:_,"data-styled":!(f.jsx||f.unstyled||v),"data-mounted":ne,"data-promise":!!f.promise,"data-swiped":gd,"data-removed":mt,"data-visible":BT,"data-y-position":qT,"data-x-position":GT,"data-index":x,"data-front":zT,"data-swiping":ce,"data-dismissible":Xs,"data-type":$t,"data-invert":YT,"data-swipe-out":Sn,"data-swipe-direction":he,"data-expanded":!!(E||A&&ne),style:{"--index":x,"--toasts-before":x,"--z-index":S.length-x,"--offset":`${mt?yd:Zs.current}px`,"--initial-height":A?"auto":`${Js}px`,...P,...f.style},onDragEnd:()=>{bn(!1),ee(null),ei.current=null},onPointerDown:Z=>{wd||!Xs||(ny.current=new Date,No(Zs.current),Z.target.setPointerCapture(Z.pointerId),Z.target.tagName!=="BUTTON"&&(bn(!0),ei.current={x:Z.clientX,y:Z.clientY}))},onPointerUp:()=>{var Z,de,we,Jt;if(Sn||!Xs)return;ei.current=null;let Xt=Number(((Z=cs.current)==null?void 0:Z.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),fr=Number(((de=cs.current)==null?void 0:de.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),us=new Date().getTime()-((we=ny.current)==null?void 0:we.getTime()),Zt=X==="x"?Xt:fr,pr=Math.abs(Zt)/us;if(Math.abs(Zt)>=E2||pr>.11){No(Zs.current),(Jt=f.onDismiss)==null||Jt.call(f,f),Ce(X==="x"?Xt>0?"right":"left":fr>0?"down":"up"),hr(),Sl(!0),kl(!1);return}bn(!1),ee(null)},onPointerMove:Z=>{var de,we,Jt,Xt;if(!ei.current||!Xs||((de=window.getSelection())==null?void 0:de.toString().length)>0)return;let fr=Z.clientY-ei.current.y,us=Z.clientX-ei.current.x,Zt=(we=e.swipeDirections)!=null?we:T2(Q);!X&&(Math.abs(us)>1||Math.abs(fr)>1)&&ee(Math.abs(us)>Math.abs(fr)?"x":"y");let pr={x:0,y:0};X==="y"?(Zt.includes("top")||Zt.includes("bottom"))&&(Zt.includes("top")&&fr<0||Zt.includes("bottom")&&fr>0)&&(pr.y=fr):X==="x"&&(Zt.includes("left")||Zt.includes("right"))&&(Zt.includes("left")&&us<0||Zt.includes("right")&&us>0)&&(pr.x=us),(Math.abs(pr.x)>0||Math.abs(pr.y)>0)&&kl(!0),(Jt=cs.current)==null||Jt.style.setProperty("--swipe-amount-x",`${pr.x}px`),(Xt=cs.current)==null||Xt.style.setProperty("--swipe-amount-y",`${pr.y}px`)}},KT&&!f.jsx?N.createElement("button",{"aria-label":G,"data-disabled":wd,"data-close-button":!0,onClick:wd||!Xs?()=>{}:()=>{var Z;hr(),(Z=f.onDismiss)==null||Z.call(f,f)},className:tn(R==null?void 0:R.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},(i=L==null?void 0:L.close)!=null?i:u2):null,f.jsx||b.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:N.createElement(N.Fragment,null,$t||f.icon||f.promise?N.createElement("div",{"data-icon":"",className:tn(R==null?void 0:R.icon,(o=f==null?void 0:f.classNames)==null?void 0:o.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||QT():null,f.type!=="loading"?f.icon||(L==null?void 0:L[$t])||r2($t):null):null,N.createElement("div",{"data-content":"",className:tn(R==null?void 0:R.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},N.createElement("div",{"data-title":"",className:tn(R==null?void 0:R.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?N.createElement("div",{"data-description":"",className:tn(z,HT,R==null?void 0:R.description,(c=f==null?void 0:f.classNames)==null?void 0:c.description)},typeof f.description=="function"?f.description():f.description):null),b.isValidElement(f.cancel)?f.cancel:f.cancel&&Yl(f.cancel)?N.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||j,onClick:Z=>{var de,we;Yl(f.cancel)&&Xs&&((we=(de=f.cancel).onClick)==null||we.call(de,Z),hr())},className:tn(R==null?void 0:R.cancelButton,(u=f==null?void 0:f.classNames)==null?void 0:u.cancelButton)},f.cancel.label):null,b.isValidElement(f.action)?f.action:f.action&&Yl(f.action)?N.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||D,onClick:Z=>{var de,we;Yl(f.action)&&((we=(de=f.action).onClick)==null||we.call(de,Z),!Z.defaultPrevented&&hr())},className:tn(R==null?void 0:R.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function Fv(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function P2(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?b2:x2;function l(c){["top","right","bottom","left"].forEach(u=>{n[`${o}-${u}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${o}-${c}`]=a:n[`${o}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(a)}),n}var A2=b.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:c,theme:u="light",richColors:d,duration:p,style:f,visibleToasts:v=w2,toastOptions:m,dir:w=Fv(),gap:g=k2,loadingIcon:y,icons:x,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:E}=e,[k,_]=N.useState([]),C=N.useMemo(()=>Array.from(new Set([r].concat(k.filter(W=>W.position).map(W=>W.position)))),[k,r]),[P,j]=N.useState([]),[D,O]=N.useState(!1),[z,M]=N.useState(!1),[Q,H]=N.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
227k":"light"),$=N.useRef(null),A=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=N.useRef(null),L=N.useRef(!1),G=N.useCallback(W=>{_(X=>{var ee;return(ee=X.find(he=>he.id===W.id))!=null&&ee.delete||yt.dismiss(W.id),X.filter(({id:he})=>he!==W.id)})},[]);return N.useEffect(()=>yt.subscribe(W=>{if(W.dismiss){_(X=>X.map(ee=>ee.id===W.id?{...ee,delete:!0}:ee));return}setTimeout(()=>{J1.flushSync(()=>{_(X=>{let ee=X.findIndex(he=>he.id===W.id);return ee!==-1?[...X.slice(0,ee),{...X[ee],...W},...X.slice(ee+1)]:[W,...X]})})})}),[]),N.useEffect(()=>{if(u!=="system"){H(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?H("dark"):H("light")),typeof window>"u")return;let W=window.matchMedia("(prefers-color-scheme: dark)");try{W.addEventListener("change",({matches:X})=>{H(X?"dark":"light")})}catch{W.addListener(({matches:ee})=>{try{H(ee?"dark":"light")}catch(he){console.error(he)}})}},[u]),N.useEffect(()=>{k.length<=1&&O(!1)},[k]),N.useEffect(()=>{let W=X=>{var ee,he;s.every(Ce=>X[Ce]||X.code===Ce)&&(O(!0),(ee=$.current)==null||ee.focus()),X.code==="Escape"&&(document.activeElement===$.current||(he=$.current)!=null&&he.contains(document.activeElement))&&O(!1)};return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[s]),N.useEffect(()=>{if($.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,L.current=!1)}},[$.current]),N.createElement("section",{ref:t,"aria-label":`${S} ${A}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},C.map((W,X)=>{var ee;let[he,Ce]=W.split("-");return k.length?N.createElement("ol",{key:W,dir:w==="auto"?Fv():w,tabIndex:-1,ref:$,className:a,"data-sonner-toaster":!0,"data-theme":Q,"data-y-position":he,"data-lifted":D&&k.length>1&&!i,"data-x-position":Ce,style:{"--front-toast-height":`${((ee=P[0])==null?void 0:ee.height)||0}px`,"--width":`${S2}px`,"--gap":`${g}px`,...f,...P2(l,c)},onBlur:ne=>{L.current&&!ne.currentTarget.contains(ne.relatedTarget)&&(L.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:ne=>{ne.target instanceof HTMLElement&&ne.target.dataset.dismissible==="false"||L.current||(L.current=!0,R.current=ne.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{z||O(!1)},onDragEnd:()=>O(!1),onPointerDown:ne=>{ne.target instanceof HTMLElement&&ne.target.dataset.dismissible==="false"||M(!0)},onPointerUp:()=>M(!1)},k.filter(ne=>!ne.position&&X===0||ne.position===W).map((ne,Lt)=>{var mt,Dt;return N.createElement(C2,{key:ne.id,icons:x,index:Lt,toast:ne,defaultRichColors:d,duration:(mt=m==null?void 0:m.duration)!=null?mt:p,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:n,visibleToasts:v,closeButton:(Dt=m==null?void 0:m.closeButton)!=null?Dt:o,interacting:z,position:W,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:G,toasts:k.filter(ce=>ce.position==ne.position),heights:P.filter(ce=>ce.position==ne.position),setHeights:j,expandByDefault:i,gap:g,loadingIcon:y,expanded:D,pauseWhenPageIsHidden:E,swipeDirections:e.swipeDirections})})):null}))});const j2=({...e})=>{const{theme:t="system"}=n2();return h.jsx(A2,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var R2=tm[" useId ".trim().toString()]||(()=>{}),N2=0;function rh(e){const[t,n]=b.useState(R2());return or(()=>{n(r=>r??String(N2++))},[e]),t?`radix-${t}`:""}const O2=["top","right","bottom","left"],Zr=Math.min,Pt=Math.max,hu=Math.round,Ql=M
vendor: 19,339 bytes, line 227
227ath.floor,Mn=e=>({x:e,y:e}),I2={left:"right",right:"left",bottom:"top",top:"bottom"},M2={start:"end",end:"start"};function Gf(e,t,n){return Pt(e,Zr(t,n))}function ar(e,t){return typeof e=="function"?e(t):e}function lr(e){return e.split("-")[0]}function Eo(e){return e.split("-")[1]}function eg(e){return e==="x"?"y":"x"}function tg(e){return e==="y"?"height":"width"}const L2=new Set(["top","bottom"]);function Rn(e){return L2.has(lr(e))?"y":"x"}function ng(e){return eg(Rn(e))}function D2(e,t,n){n===void 0&&(n=!1);const r=Eo(e),s=ng(e),i=tg(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=fu(o)),[o,fu(o)]}function $2(e){const t=fu(e);return[Yf(e),t,Yf(t)]}function Yf(e){return e.replace(/start|end/g,t=>M2[t])}const Vv=["left","right"],Uv=["right","left"],F2=["top","bottom"],V2=["bottom","top"];function U2(e,t,n){switch(e){case"top":case"bottom":return n?t?Uv:Vv:t?Vv:Uv;case"left":case"right":return t?F2:V2;default:return[]}}function z2(e,t,n,r){const s=Eo(e);let i=U2(lr(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Yf)))),i}function fu(e){return e.replace(/left|right|bottom|top/g,t=>I2[t])}function B2(e){return{top:0,right:0,bottom:0,left:0,...e}}function XS(e){return typeof e!="number"?B2(e):{top:e,right:e,bottom:e,left:e}}function pu(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function zv(e,t,n){let{reference:r,floating:s}=e;const i=Rn(t),o=ng(t),a=tg(o),l=lr(t),c=i==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,p=r[a]/2-s[a]/2;let f;switch(l){case"top":f={x:u,y:r.y-s.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-s.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Eo(t)){case"start":f[o]-=p*(n&&c?-1:1);break;case"end":f[o]+=p*(n&&c?-1:1);break}return f}const W2=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=zv(c,r,l),p=r,f={},v=0;for(let m=0;m<a.length;m++){const{name:w,fn:g}=a[m],{x:y,y:x,data:S,reset:E}=await g({x:u,y:d,initialPlacement:r,placement:p,strategy:s,middlewareData:f,rects:c,platform:o,elements:{reference:e,floating:t}});u=y??u,d=x??d,f={...f,[w]:{...f[w],...S}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(c=E.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):E.rects),{x:u,y:d}=zv(c,p,l)),m=-1)}return{x:u,y:d,placement:p,strategy:s,middlewareData:f}};async function Da(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=ar(t,e),v=XS(f),w=a[p?d==="floating"?"reference":"floating":d],g=pu(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y=d==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},E=pu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:x,strategy:l}):y);return{top:(g.top-E.top+v.top)/S.y,bottom:(E.bottom-g.bottom+v.bottom)/S.y,left:(g.left-E.left+v.left)/S.x,right:(E.right-g.right+v.right)/S.x}}const H2=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=ar(e,t)||{};if(c==null)return{};const d=XS(u),p={x:n,y:r},f=ng(s),v=tg(f),m=await o.getDimensions(c),w=f==="y",g=w?"top":"left",y=w?"bottom":"right",x=w?"clientHeight":"clientWidth",S=i.reference[v]+i.reference[f]-p[f]-i.floating[v],E=p[f]-i.reference[f],k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let _=k?k[x]:0;(!_||!await(o.isElement==null?void 0:o.isElement(k)))&&(_=a.floating[x]||i.floating[v]);const C=S/2-E/2,P=_/2-m[v]/2-1,j=Zr(d[g],P),D=Zr(d[y],P),O=j,z=_-m[v]-D,M=_/2-m[v]/2+C,Q=Gf(O,M,z),H=!l.arrow&&Eo(s)!=null&&M!==Q&&i.reference[v]/2-(M<O?j:D)-m[v]/2<0,$=H?M<O?M-O:M-z:0;return{[f]:p[f]+$,data:{[f]:Q,centerOffset:M-Q-$,...H&&{alignmentOffset:$}},reset:H}}}),K2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...w}=ar(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=lr(s),y=Rn(a),x=lr(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=p||(x||!m?[fu(a)]:$2(a)),k=v!=="none";!p&&k&&E.push(...z2(a,m,v,S));const _=[a,...E],C=await Da(t,w),P=[];let j=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&P.push(C[g]),d){const M=D2(s,o,S);P.push(C[M[0]],C[M[1]])}if(j=[...j,{placement:s,overflows:P}],!P.every(M=>M<=0)){var D,O;const M=(((D=i.flip)==null?void 0:D.index)||0)+1,Q=_[M];if(Q&&(!(d==="alignment"?y!==Rn(Q):!1)||j.every(A=>A.overflows[0]>0&&Rn(A.placement)===y)))return{data:{index:M,overflows:j},reset:{placement:Q}};let H=(O=j.filter($=>$.overflows[0]<=0).sort(($,A)=>$.overflows[1]-A.overflows[1])[0])==null?void 0:O.placement;if(!H)switch(f){case"bestFit":{var z;const $=(z=j.filter(A=>{if(k){const R=Rn(A.placement);return R===y||R==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(R=>R>0).reduce((R,L)=>R+L,0)]).sort((A,R)=>A[1]-R[1])[0])==null?void 0:z[0];$&&(H=$);break}case"initialPlacement":H=a;break}if(s!==H)return{reset:{placement:H}}}return{}}}};function Bv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wv(e){return O2.some(t=>e[t]>=0)}const q2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=ar(e,t);switch(r){case"referenceHidden":{const i=await Da(t,{...s,elementContext:"reference"}),o=Bv(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Wv(o)}}}case"escaped":{const i=await Da(t,{...s,altBoundary:!0}),o=Bv(i,n.floating);return{data:{escapedOffsets:o,escaped:Wv(o)}}}default:return{}}}}},ZS=new Set(["left","top"]);async function G2(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=lr(n),a=Eo(n),l=Rn(n)==="y",c=ZS.has(o)?-1:1,u=i&&l?-1:1,d=ar(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof v=="number"&&(f=a==="end"?v*-1:v),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}const Y2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await G2(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},Q2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:w=>{let{x:g,y}=w;return{x:g,y}}},...l}=ar(e,t),c={x:n,y:r},u=await Da(t,l),d=Rn(lr(s)),p=eg(d);let f=c[p],v=c[d];if(i){const w=p==="y"?"top":"left",g=p==="y"?"bottom":"right",y=f+u[w],x=f-u[g];f=Gf(y,f,x)}if(o){const w=d==="y"?"top":"left",g=d==="y"?"bottom":"right",y=v+u[w],x=v-u[g];v=Gf(y,v,x)}const m=a.fn({...t,[p]:f,[d]:v});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:i,[d]:o}}}}}},J2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=ar(e,t),u={x:n,y:r},d=Rn(s),p=eg(d);let f=u[p],v=u[d];const m=ar(a,t),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const x=p==="y"?"height":"width",S=i.reference[p]-i.floating[x]+w.mainAxis,E=i.reference[p]+i.reference[x]-w.mainAxis;f<S?f=S:f>E&&(f=E)}if(c){var g,y;const x=p==="y"?"width":"height",S=ZS.has(lr(s)),E=i.reference[d]-i.floating[x]+(S&&((g=o.offset)==null?void 0:g[d])||0)+(S?0:w.crossAxis),k=i.reference[d]+i.reference[x]+(S?0:((y=o.offset)==null?void 0:y[d])||0)-(S?w.crossAxis:0);v<E?v=E:v>k&&(v=k)}return{[p]:f,[d]:v}}}},X2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...c}=ar(e,t),u=await Da(t,c),d=lr(s),p=Eo(s),f=Rn(s)==="y",{width:v,height:m}=i.floating;let w,g;d==="top"||d==="bottom"?(w=d,g=p===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(g=d,w=p==="end"?"top":"bottom");const y=m-u.top-u.bottom,x=v-u.left-u.right,S=Zr(m-u[w],y),E=Zr(v-u[g],x),k=!t.middlewareData.shift;let _=S,C=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=y),k&&!p){const j=Pt(u.left,0),D=Pt(u.right,0),O=Pt(u.top,0),z=Pt(u.bottom,0);f?C=v-2*(j!==0||D!==0?j+D:Pt(u.left,u.right)):_=m-2*(O!==0||z!==0?O+z:Pt(u.top,u.bottom))}await l({...t,availableWidth:C,availableHeight:_});const P=await o.getDimensions(a.floating);return v!==P.width||m!==P.height?{reset:{rects:!0}}:{}}}};function ed(){return typeof window<"u"}function _o(e){return ek(e)?(e.nodeName||"").toLowerCase():"#document"}function Nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Un(e){var t;return(t=(ek(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ek(e){return ed()?e instanceof Node||e instanceof Nt(e).Node:!1}function yn(e){return ed()?e instanceof Element||e instanceof Nt(e).Element:!1}function Fn(e){return ed()?e instanceof HTMLElement||e instanceof Nt(e).HTMLElement:!1}function Hv(e){return!ed()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nt(e).ShadowRoot}const Z2=new Set(["inline","contents"]);function pl(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=vn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Z2.has(s)}const eN=new Set(["table","td","th"]);function tN(e){return eN.has(_o(e))}const nN=[":popover-open",":modal"];function td(e){return nN.some(t=>{try{return e.matches(t)}catch{return!1}})}const rN=["transform","translate","scale","rotate","perspective"],sN=["transform","translate","scale","rotate","perspective","filter"],iN=["paint","layout","strict","content"];function rg(e){const t=sg(),n=yn(e)?vn(e):e;return rN.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||sN.some(r=>(n.willChange||"").includes(r))||iN.some(r=>(n.contain||"").includes(r))}function oN(e){let t=es(e);for(;Fn(t)&&!po(t);){if(rg(t))return t;if(td(t))return null;t=es(t)}return null}function sg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const aN=new Set(["html","body","#document"]);function po(e){return aN.has(_o(e))}function vn(e){return Nt(e).getComputedStyle(e)}function nd(e){return yn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function es(e){if(_o(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Hv(e)&&e.host||Un(e);return Hv(t)?t.host:t}function tk(e){const t=es(e);return po(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fn(t)&&pl(t)?t:tk(t)}function $a(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=tk(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Nt(s);if(i){const a=Qf(o);return t.concat(o,o.visualViewport||[],pl(s)?s:[],a&&n?$a(a):[])}return t.concat(s,$a(s,[],n))}function Qf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nk(e){const t=vn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Fn(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=hu(n)!==i||hu(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function ig(e){return yn(e)?e:e.contextElement}function Wi(e){const t=ig(e);if(!Fn(t))return Mn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=nk(t);let o=(i?hu(n.width):n.width)/r,a=(i?hu(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const lN=Mn(0);function rk(e){const t=Nt(e);return!sg()||!t.visualViewport?lN:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cN(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Nt(e)?!1:t}function Hs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=ig(e);let o=Mn(1);t&&(r?yn(r)&&(o=Wi(r)):o=Wi(e));const a=cN(i,n,r)?rk(i):Mn(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const p=Nt(i),f=r&&yn(r)?Nt(r):r;let v=p,m=Qf(v);for(;m&&r&&f!==v;){const w=Wi(m),g=m.getBoundingClientRect(),y=vn(m),x=g.left+(m.clientLeft+parseFloat(y.paddingLeft))*w.x,S=g.top+(m.clientTop+parseFloat(y.paddingTop))*w.y;l*=w.x,c*=w.y,u*=w.x,d*=w.y,l+=x,c+=S,v=Nt(m),m=Qf(v)}}return pu({width:u,height:d,x:l,y:c})}function og(e,t){const n=nd(e).scrollLeft;return t?t.left+n:Hs(Un(e)).left+n}function sk(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:og(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function uN(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=Un(r),a=t?td(t.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Mn(1);const u=Mn(0),d=Fn(r);if((d||!d&&!i)&&((_o(r)!=="body"||pl(o))&&(l=nd(r)),Fn(r))){const f=Hs(r);c=Wi(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}const p=o&&!d&&!i?sk(o,l,!0):Mn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}}function dN(e){return Array.from(e.getClientRects())}function hN(e){const t=Un(e),n=nd(e),r=e.ownerDocument.body,s=Pt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Pt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+og(e);const a=-n.scrollTop;return vn(r).direction==="rtl"&&(o+=Pt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function fN(e,t){const n=Nt(e),r=Un(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const c=sg();(!c||c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}const pN=new Set(["absolute","fixed"]);function mN(e,t){const n=Hs(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Fn(e)?Wi(e):Mn(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,c=r*i.y;return{width:o,height:a,x:l,y:c}}function Kv(e,t,n){let r;if(t==="viewport")r=fN(e,n);else if(t==="document")r=hN(Un(e));else if(yn(t))r=mN(t,n);else{const s=rk(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return pu(r)}function ik(e,t){const n=es(e);return n===t||!yn(n)||po(n)?!1:vn(n).position==="fixed"||ik(n,t)}function gN(e,t){const n=t.get(e);if(n)return n;let r=$a(e,[],!1).filter(a=>yn(a)&&_o(a)!=="body"),s=null;const i=vn(e).position==="fixed";let o=i?es(e):e;for(;yn(o)&&!po(o);){const a=vn(o),l=rg(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&pN.has(s.position)||pl(o)&&!l&&ik(e,o))?r=r.filter(u=>u!==o):s=a,o=es(o)}return t.set(e,r),r}function yN(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?td(t)?[]:gN(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,u)=>{const d=Kv(t,u,s);return c.top=Pt(d.top,c.top),c.right=Zr(d.right,c.right),c.bottom=Zr(d.bottom,c.bottom),c.left=Pt(d.left,c.left),c},Kv(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function vN(e){const{width:t,height:n}=nk(e);return{width:t,height:n}}function wN(e,t,n){const r=Fn(t),s=Un(t),i=n==="fixed",o=Hs(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Mn(0);function c(){l.x=og(s)}if(r||!r&&!i)if((_o(t)!=="body"||pl(s))&&(a=nd(t)),r){const f=Hs(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else s&&c();i&&!r&&s&&c();const u=s&&!r&&!i?sk(s,a):Mn(0),d=o.left+a.scrollLeft-l.x-u.x,p=o.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:o.width,height:o.height}}function sh(e){return vn(e).position==="static"}function qv(e,t){if(!Fn(e)||vn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Un(e)===n&&(n=n.ownerDocument.body),n}function ok(e,t){const n=Nt(e);if(td(e))return n;if(!Fn(e)){let s=es(e);for(;s&&!po(s);){if(yn(s)&&!sh(s))return s;s=es(s)}return n}let r=qv(e,t);for(;r&&tN(r)&&sh(r);)r=qv(r,t);return r&&po(r)&&sh(r)&&!rg(r)?n:r||oN(e)||n}const xN=async function(e){const t=this.getOffsetParent||ok,n=this.getDimensions,r=await n(e.floating);return{reference:wN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bN(e){return vn(e).direction==="rtl"}const SN={convertOffsetParentRelativeRectToViewportRelativeRect:uN,getDocumentElement:Un,getClippingRect:yN,getOffsetParent:ok,getElementRects:xN,getClientRects:dN,getDimensions:vN,getScale:Wi,isElement:yn,isRTL:bN};function ak(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function kN(e,t){let n=null,r;const s=Un(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(a||t(),!p||!f)return;const v=Ql(d),m=Ql(s.clientWidth-(u+p)),w=Ql(s.clientHeight-(d+f)),g=Ql(u),x={rootMargin:-v+"px "+-m+"px "+-w+"px "+-g+"px",threshold:Pt(0,Zr(1,l))||1};let S=!0;function E(k){const _=k[0].intersectionRatio;if(_!==l){if(!S)return o();_?o(!1,_):r=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!ak(c,e.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(E,{...x,root:s.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}return o(!0),i}function EN(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=ig(e),u=s||i?[...c?$a(c):[],...$a(t)]:[];u.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const d=c&&a?kN(c,n):null;let p=-1,f=null;o&&(f=new ResizeObserver(g=>{let[y]=g;y&&y.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=f)==null||x.observe(t)})),n()}),c&&!l&&f.observe(c),f.observe(t));let v,m=l?Hs(e):null;l&&w();function w(){const g=Hs(e);m&&!ak(m,g)&&n(),m=g,v=requestAnimationFrame(w)}return n(),()=>{var g;u.forEach(y=>{s&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),d==null||d(),(g=f)==null||g.disconnect(),f=null,l&&cancelAnimationFrame(v)}}const _N=Y2,TN=Q2,CN=K2,PN=X2,AN=q2,Gv=H2,jN=J2,RN=(e,t,n)=>{const r=new Map,s={platform:SN,...n},i={...s.platform,_c:r};return W2(e,t,{...s,platform:i})};var NN=typeof document<"u",ON=function(){},Nc=NN?b.useLayoutEffect:ON;function mu(e,t){if(e===t)return!0;
vendor: 4,143 bytes, line 227
227if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!mu(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!mu(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function lk(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yv(e,t){const n=lk(e);return Math.round(t*n)/n}function ih(e){const t=b.useRef(e);return Nc(()=>{t.current=e}),t}function IN(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=b.useState(r);mu(p,r)||f(r);const[v,m]=b.useState(null),[w,g]=b.useState(null),y=b.useCallback(A=>{A!==k.current&&(k.current=A,m(A))},[]),x=b.useCallback(A=>{A!==_.current&&(_.current=A,g(A))},[]),S=i||v,E=o||w,k=b.useRef(null),_=b.useRef(null),C=b.useRef(u),P=l!=null,j=ih(l),D=ih(s),O=ih(c),z=b.useCallback(()=>{if(!k.current||!_.current)return;const A={placement:t,strategy:n,middleware:p};D.current&&(A.platform=D.current),RN(k.current,_.current,A).then(R=>{const L={...R,isPositioned:O.current!==!1};M.current&&!mu(C.current,L)&&(C.current=L,dl.flushSync(()=>{d(L)}))})},[p,t,n,D,O]);Nc(()=>{c===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[c]);const M=b.useRef(!1);Nc(()=>(M.current=!0,()=>{M.current=!1}),[]),Nc(()=>{if(S&&(k.current=S),E&&(_.current=E),S&&E){if(j.current)return j.current(S,E,z);z()}},[S,E,z,j,P]);const Q=b.useMemo(()=>({reference:k,floating:_,setReference:y,setFloating:x}),[y,x]),H=b.useMemo(()=>({reference:S,floating:E}),[S,E]),$=b.useMemo(()=>{const A={position:n,left:0,top:0};if(!H.floating)return A;const R=Yv(H.floating,u.x),L=Yv(H.floating,u.y);return a?{...A,transform:"translate("+R+"px, "+L+"px)",...lk(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:L}},[n,a,H.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:z,refs:Q,elements:H,floatingStyles:$}),[u,z,Q,H,$])}const MN=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Gv({element:r.current,padding:s}).fn(n):{}:r?Gv({element:r,padding:s}).fn(n):{}}}},LN=(e,t)=>({..._N(e),options:[e,t]}),DN=(e,t)=>({...TN(e),options:[e,t]}),$N=(e,t)=>({...jN(e),options:[e,t]}),FN=(e,t)=>({...CN(e),options:[e,t]}),VN=(e,t)=>({...PN(e),options:[e,t]}),UN=(e,t)=>({...AN(e),options:[e,t]}),zN=(e,t)=>({...MN(e),options:[e,t]});var BN="Arrow",ck=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return h.jsx(De.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});ck.displayName=BN;var WN=ck;function HN(e){const[t,n]=b.useState(void 0);return or(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ag="Popper",[uk,dk]=hl(ag),[KN,hk]=uk(ag),fk=e=>{const{__scopePopper:t,children:n}=e,[r,s]=b.useState(null);return h.jsx(KN,{scope:t,anchor:r,onAnchorChange:s,children:n})};fk.displayName=ag;var pk="PopperAnchor",mk=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=hk(pk,n),o=b.useRef(null),a=ht(t,o);return b.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:h.jsx(De.div,{...s,ref:a})});mk.displayName=pk;var lg="PopperContent",[qN,GN]=uk(lg),gk=b.forwardRef((e,t)=>
vendor: 4,216 bytes, line 227
227{var ne,Lt,mt,Dt,ce,bn;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:f="optimized",onPlaced:v,...m}=e,w=hk(lg,n),[g,y]=b.useState(null),x=ht(t,Sn=>y(Sn)),[S,E]=b.useState(null),k=HN(S),_=(k==null?void 0:k.width)??0,C=(k==null?void 0:k.height)??0,P=r+(i!=="center"?"-"+i:""),j=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(c)?c:[c],O=D.length>0,z={padding:j,boundary:D.filter(QN),altBoundary:O},{refs:M,floatingStyles:Q,placement:H,isPositioned:$,middlewareData:A}=IN({strategy:"fixed",placement:P,whileElementsMounted:(...Sn)=>EN(...Sn,{animationFrame:f==="always"}),elements:{reference:w.anchor},middleware:[LN({mainAxis:s+C,alignmentAxis:o}),l&&DN({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?$N():void 0,...z}),l&&FN({...z}),VN({...z,apply:({elements:Sn,rects:Sl,availableWidth:gd,availableHeight:kl})=>{const{width:yd,height:No}=Sl.reference,Js=Sn.floating.style;Js.setProperty("--radix-popper-available-width",`${gd}px`),Js.setProperty("--radix-popper-available-height",`${kl}px`),Js.setProperty("--radix-popper-anchor-width",`${yd}px`),Js.setProperty("--radix-popper-anchor-height",`${No}px`)}}),S&&zN({element:S,padding:a}),JN({arrowWidth:_,arrowHeight:C}),p&&UN({strategy:"referenceHidden",...z})]}),[R,L]=wk(H),G=$n(v);or(()=>{$&&(G==null||G())},[$,G]);const W=(ne=A.arrow)==null?void 0:ne.x,X=(Lt=A.arrow)==null?void 0:Lt.y,ee=((mt=A.arrow)==null?void 0:mt.centerOffset)!==0,[he,Ce]=b.useState();return or(()=>{g&&Ce(window.getComputedStyle(g).zIndex)},[g]),h.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:$?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(Dt=A.transformOrigin)==null?void 0:Dt.x,(ce=A.transformOrigin)==null?void 0:ce.y].join(" "),...((bn=A.hide)==null?void 0:bn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(qN,{scope:n,placedSide:R,onArrowChange:E,arrowX:W,arrowY:X,shouldHideArrow:ee,children:h.jsx(De.div,{"data-side":R,"data-align":L,...m,ref:x,style:{...m.style,animation:$?void 0:"none"}})})})});gk.displayName=lg;var yk="PopperArrow",YN={top:"bottom",right:"left",bottom:"top",left:"right"},vk=b.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=GN(yk,r),o=YN[i.placedSide];return h.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:h.jsx(WN,{...s,ref:n,style:{...s.style,display:"block"}})})});vk.displayName=yk;function QN(e){return e!==null}var JN=e=>({name:"transformOrigin",options:e,fn(t){var w,g,y;const{placement:n,rects:r,middlewareData:s}=t,o=((w=s.arrow)==null?void 0:w.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,u]=wk(n),d={start:"0%",center:"50%",end:"100%"}[u],p=(((g=s.arrow)==null?void 0:g.x)??0)+a/2,f=(((y=s.arrow)==null?void 0:y.y)??0)+l/2;let v="",m="";return c==="bottom"?(v=o?d:`${p}px`,m=`${-l}px`):c==="top"?(v=o?d:`${p}px`,m=`${r.floating.height+l}px`):c==="right"?(v=`${-l}px`,m=o?d:`${f}px`):c==="left"&&(v=`${r.floating.width+l}px`,m=o?d:`${f}px`),{data:{x:v,y:m}}}});function wk(e){const[t,n="center"]=e.split("-");return[t,n]}var fz=fk,XN=mk,ZN=gk,eO=vk,[rd,pz]=hl("Tooltip",[dk]),cg=dk(),xk="TooltipProvider",tO=700,Qv="tooltip.open",[nO,bk]=rd(xk),Sk=e=>{const{__scopeTooltip:t,delayDuration:n=tO,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,o=b.useRef(!0),a=b.useRef(!1),l=b.useRef(0);return b.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),h.jsx(nO,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>
vendor: 5,838 bytes, line 227
227o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:b.useCallback(c=>{a.current=c},[]),disableHoverableContent:s,children:i})};Sk.displayName=xk;var kk="Tooltip",[mz,sd]=rd(kk),Jf="TooltipTrigger",rO=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=sd(Jf,n),i=bk(Jf,n),o=cg(n),a=b.useRef(null),l=ht(t,a,s.onTriggerChange),c=b.useRef(!1),u=b.useRef(!1),d=b.useCallback(()=>c.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),h.jsx(XN,{asChild:!0,...o,children:h.jsx(De.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:be(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:be(e.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:be(e.onPointerDown,()=>{s.open&&s.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:be(e.onFocus,()=>{c.current||s.onOpen()}),onBlur:be(e.onBlur,s.onClose),onClick:be(e.onClick,s.onClose)})})});rO.displayName=Jf;var sO="TooltipPortal",[gz,iO]=rd(sO,{forceMount:void 0}),mo="TooltipContent",Ek=b.forwardRef((e,t)=>{const n=iO(mo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,o=sd(mo,e.__scopeTooltip);return h.jsx(bo,{present:r||o.open,children:o.disableHoverableContent?h.jsx(_k,{side:s,...i,ref:t}):h.jsx(oO,{side:s,...i,ref:t})})}),oO=b.forwardRef((e,t)=>{const n=sd(mo,e.__scopeTooltip),r=bk(mo,e.__scopeTooltip),s=b.useRef(null),i=ht(t,s),[o,a]=b.useState(null),{trigger:l,onClose:c}=n,u=s.current,{onPointerInTransitChange:d}=r,p=b.useCallback(()=>{a(null),d(!1)},[d]),f=b.useCallback((v,m)=>{const w=v.currentTarget,g={x:v.clientX,y:v.clientY},y=dO(g,w.getBoundingClientRect()),x=hO(g,y),S=fO(m.getBoundingClientRect()),E=mO([...x,...S]);a(E),d(!0)},[d]);return b.useEffect(()=>()=>p(),[p]),b.useEffect(()=>{if(l&&u){const v=w=>f(w,u),m=w=>f(w,l);return l.addEventListener("pointerleave",v),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",v),u.removeEventListener("pointerleave",m)}}},[l,u,f,p]),b.useEffect(()=>{if(o){const v=m=>{const w=m.target,g={x:m.clientX,y:m.clientY},y=(l==null?void 0:l.contains(w))||(u==null?void 0:u.contains(w)),x=!pO(g,o);y?p():x&&(p(),c())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[l,u,o,c,p]),h.jsx(_k,{...e,ref:i})}),[aO,lO]=rd(kk,{isInside:!1}),cO=fj("TooltipContent"),_k=b.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=e,l=sd(mo,n),c=cg(n),{onClose:u}=l;return b.useEffect(()=>(document.addEventListener(Qv,u),()=>document.removeEventListener(Qv,u)),[u]),b.useEffect(()=>{if(l.trigger){const d=p=>{const f=p.target;f!=null&&f.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),h.jsx(Qu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:h.jsxs(ZN,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(cO,{children:r}),h.jsx(aO,{scope:n,isInside:!0,children:h.jsx(Dj,{id:l.contentId,role:"tooltip",children:s||r})})]})})});Ek.displayName=mo;var Tk="TooltipArrow",uO=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=cg(n);return lO(Tk,n).isInside?null:h.jsx(eO,{...s,...r,ref:t})});uO.displayName=Tk;function dO(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function hO(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function fO(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function pO(e,t){const{x:n,y:r}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const a=t[i],l=t[o],c=a.x,u=a.y,d=l.x,p=l.y;u>r!=p>r&&n<(d-c)*(r-u)/(p-u)+c&&(s=!s)}return s}function mO(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),gO(t)}function gO(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var yO=Sk,Ck=Ek;const vO=yO,wO=b.forwardRef(({className:e,sideOffset:t=4,...n},r)=>h.jsx(Ck,{ref:r,sideOffset:t,className:_t("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
227de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));wO.displayName=Ck.displayName;var ml=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ks=typeof window>"u"||"Deno"in globalThis;function vt(){}function xO(e,t){return typeof e=="function"?e(t):e}function Xf(e){return typeof e=="number"&&e>=0&&e!==1/0}function Pk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Yr(e,t){return typeof e=="function"?e(t):e}function Ut(e,t){return typeof e=="function"?e(t):e}function Jv(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==ug(o,t.options))return!1}else if(!Va(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||i&&!i(t))}function Xv(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Fa(t.options.mutationKey)!==Fa(i))return!1}else if(!Va(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function ug(e,t){return((t==null?void 0:t.queryKeyHashFn)||Fa)(e)}function Fa(e){return JSON.stringify(e,(t,n)=>ep(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Va(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Va(e[n],t[n])):!1}function Ak(e,t){if(e===t)return e;const n=Zv(e)&&Zv(t);if(n||ep(e)&&ep(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},l=new Set(r);let c=0;for(let u=0;u<o;u++){const d=n?u:i[u];(!n&&l.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=Ak(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return s===o&&c===s?e:a}return t}function Zf(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Zv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ep(e){if(!e0(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!e0(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function e0(e){return Object.prototype.toString.call(e)==="[object Object]"}function bO(e){return new Promise(t=>{setTimeout(t,e)})}function tp(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ak(e,t):t}function SO(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function kO(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var dg=Symbol();function jk(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===dg?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function EO(e,t){return typeof e=="function"?e(...t):!!e}var Ps,Ar,Gi,jx,_O=(jx=class extends ml{constructor(){super();J(this,Ps);J(this,Ar);J(this,Gi);V(this,Gi,t=>{if(!Ks&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,Ar)||this.setEventListener(T(this,Gi))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Ar))==null||t.call(this),V(this,Ar,void 0))}setEventListener(t){var n;V(this,Gi,t),(n=T(this,Ar))==null||n.call(this),V(this,Ar,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){T(this,Ps)!==t&&(V(this,Ps,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,Ps)=="boolean"?T(this,Ps):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ps=new WeakMap,Ar=new WeakMap,Gi=new WeakMap,jx),hg=new _O,Yi,jr,Qi,Rx,TO=(Rx=class extends ml{constructor(){super();J(this,Yi,!0);J(this,jr);J(this,Qi);V(this,Qi,t=>{if(!Ks&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){T(this,jr)||this.setEventListener(T(this,Qi))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,jr))==null||t.call(this),V(this,jr,void 0))}setEventListener(t){var n;V(this,Qi,t),(n=T(this,jr))==null||n.call(this),V(this,jr,t(this.setOnline.bind(this)))}setOnline(t){T(this,Yi)!==t&&(V(this,Yi,t),this.listeners.forEac
vendor: 13,983 bytes, line 227
227h(r=>{r(t)}))}isOnline(){return T(this,Yi)}},Yi=new WeakMap,jr=new WeakMap,Qi=new WeakMap,Rx),gu=new TO;function np(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function CO(e){return Math.min(1e3*2**e,3e4)}function Rk(e){return(e??"online")==="online"?gu.isOnline():!0}var Nk=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function oh(e){return e instanceof Nk}function Ok(e){let t=!1,n=0,r=!1,s;const i=np(),o=m=>{var w;r||(p(new Nk(m)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>hg.isFocused()&&(e.networkMode==="always"||gu.isOnline())&&e.canRun(),u=()=>Rk(e.networkMode)&&e.canRun(),d=m=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,m),s==null||s(),i.resolve(m))},p=m=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,m),s==null||s(),i.reject(m))},f=()=>new Promise(m=>{var w;s=g=>{(r||c())&&m(g)},(w=e.onPause)==null||w.call(e)}).then(()=>{var m;s=void 0,r||(m=e.onContinue)==null||m.call(e)}),v=()=>{if(r)return;let m;const w=n===0?e.initialPromise:void 0;try{m=w??e.fn()}catch(g){m=Promise.reject(g)}Promise.resolve(m).then(d).catch(g=>{var k;if(r)return;const y=e.retry??(Ks?0:3),x=e.retryDelay??CO,S=typeof x=="function"?x(n,g):x,E=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,g);if(t||!E){p(g);return}n++,(k=e.onFail)==null||k.call(e,n,g),bO(S).then(()=>c()?void 0:f()).then(()=>{t?p(g):v()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?v():f().then(v),i)}}var PO=e=>setTimeout(e,0);function AO(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=PO;const i=a=>{t?e.push(a):s(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var Qe=AO(),As,Nx,Ik=(Nx=class{constructor(){J(this,As)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Xf(this.gcTime)&&V(this,As,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ks?1/0:5*60*1e3))}clearGcTimeout(){T(this,As)&&(clearTimeout(T(this,As)),V(this,As,void 0))}},As=new WeakMap,Nx),Ji,js,Vt,Rs,nt,tl,Ns,ln,Hn,Ox,jO=(Ox=class extends Ik{constructor(t){super();J(this,ln);J(this,Ji);J(this,js);J(this,Vt);J(this,Rs);J(this,nt);J(this,tl);J(this,Ns);V(this,Ns,!1),V(this,tl,t.defaultOptions),this.setOptions(t.options),this.observers=[],V(this,Rs,t.client),V(this,Vt,T(this,Rs).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,V(this,Ji,RO(this.options)),this.state=t.state??T(this,Ji),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,nt))==null?void 0:t.promise}setOptions(t){this.options={...T(this,tl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Vt).remove(this)}setData(t,n){const r=tp(this.state.data,t,this.options);return se(this,ln,Hn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){se(this,ln,Hn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=T(this,nt))==null?void 0:r.promise;return(s=T(this,nt))==null||s.cancel(t),n?n.then(vt).catch(vt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Ji))}isActive(){return this.observers.some(t=>Ut(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===dg||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Yr(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Pk(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,nt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,nt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,Vt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,nt)&&(T(this,Ns)?T(this,nt).cancel({revert:!0}):T(this,nt).cancelRetry()),this.scheduleGc()),T(this,Vt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||se(this,ln,Hn).call(this,{type:"invalidate"})}fetch(t,n){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,nt))return T(this,nt).continueRetry(),T(this,nt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(f=>f.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(V(this,Ns,!0),r.signal)})},i=()=>{const p=jk(this.options,n),v=(()=>{const m={client:T(this,Rs),queryKey:this.queryKey,meta:this.meta};return s(m),m})();return V(this,Ns,!1),this.options.persister?this.options.persister(p,v,this):p(v)},a=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,Rs),state:this.state,fetchFn:i};return s(p),p})();(c=this.options.behavior)==null||c.onFetch(a,this),V(this,js,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&se(this,ln,Hn).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=p=>{var f,v,m,w;oh(p)&&p.silent||se(this,ln,Hn).call(this,{type:"error",error:p}),oh(p)||((v=(f=T(this,Vt).config).onError)==null||v.call(f,p,this),(w=(m=T(this,Vt).config).onSettled)==null||w.call(m,this.state.data,p,this)),this.scheduleGc()};return V(this,nt,Ok({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var f,v,m,w;if(p===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(g){l(g);return}(v=(f=T(this,Vt).config).onSuccess)==null||v.call(f,p,this),(w=(m=T(this,Vt).config).onSettled)==null||w.call(m,p,this.state.error,this),this.scheduleGc()},onError:l,onFail:(p,f)=>{se(this,ln,Hn).call(this,{type:"failed",failureCount:p,error:f})},onPause:()=>{se(this,ln,Hn).call(this,{type:"pause"})},onContinue:()=>{se(this,ln,Hn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),T(this,nt).start()}},Ji=new WeakMap,js=new WeakMap,Vt=new WeakMap,Rs=new WeakMap,nt=new WeakMap,tl=new WeakMap,Ns=new WeakMap,ln=new WeakSet,Hn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Mk(r.data,this.options),fetchMeta:t.meta??null};case"success":return V(this,js,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return oh(s)&&s.revert&&T(this,js)?{...T(this,js),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Qe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,Vt).notify({query:this,type:"updated",action:t})})},Ox);function Mk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Rk(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function RO(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Tn,Ix,NO=(Ix=class extends ml{constructor(t={}){super();J(this,Tn);this.config=t,V(this,Tn,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??ug(s,n);let o=this.get(i);return o||(o=new jO({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){T(this,Tn).has(t.queryHash)||(T(this,Tn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,Tn).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,Tn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Qe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,Tn).get(t)}getAll(){return[...T(this,Tn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Jv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Jv(t,r)):n}notify(t){Qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Qe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Qe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Tn=new WeakMap,Ix),Cn,ot,Os,Pn,vr,Mx,OO=(Mx=class extends Ik{constructor(t){super();J(this,Pn);J(this,Cn);J(this,ot);J(this,Os);this.mutationId=t.mutationId,V(this,ot,t.mutationCache),V(this,Cn,[]),this.state=t.state||IO(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,Cn).includes(t)||(T(this,Cn).push(t),this.clearGcTimeout(),T(this,ot).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){V(this,Cn,T(this,Cn).filter(n=>n!==t)),this.scheduleGc(),T(this,ot).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,Cn).length||(this.state.status==="pending"?this.scheduleGc():T(this,ot).remove(this))}continue(){var t;return((t=T(this,Os))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,l,c,u,d,p,f,v,m,w,g,y,x,S,E,k,_,C;const n=()=>{se(this,Pn,vr).call(this,{type:"continue"})};V(this,Os,Ok({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,j)=>{se(this,Pn,vr).call(this,{type:"failed",failureCount:P,error:j})},onPause:()=>{se(this,Pn,vr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,ot).canRun(this)}));const r=this.state.status==="pending",s=!T(this,Os).canStart();try{if(r)n();else{se(this,Pn,vr).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=T(this,ot).config).onMutate)==null?void 0:o.call(i,t,this));const j=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));j!==this.state.context&&se(this,Pn,vr).call(this,{type:"pending",context:j,variables:t,isPaused:s})}const P=await T(this,Os).start();return await((u=(c=T(this,ot).config).onSuccess)==null?void 0:u.call(c,P,t,this.state.context,this)),await((p=(d=this.options).onSuccess)==null?void 0:p.call(d,P,t,this.state.context)),await((v=(f=T(this,ot).config).onSettled)==null?void 0:v.call(f,P,null,this.state.variables,this.state.context,this)),await((w=(m=this.options).onSettled)==null?void 0:w.call(m,P,null,t,this.state.context)),se(this,Pn,vr).call(this,{type:"success",data:P}),P}catch(P){try{throw await((y=(g=T(this,ot).config).onError)==null?void 0:y.call(g,P,t,this.state.context,this)),await((S=(x=this.options).onError)==null?void 0:S.call(x,P,t,this.state.context)),await((k=(E=T(this,ot).config).onSettled)==null?void 0:k.call(E,void 0,P,this.state.variables,this.state.context,this)),await((C=(_=this.options).onSettled)==null?void 0:C.call(_,void 0,P,t,this.state.context)),P}finally{se(this,Pn,vr).call(this,{type:"error",error:P})}}finally{T(this,ot).runNext(this)}}},Cn=new WeakMap,ot=new WeakMap,Os=new WeakMap,Pn=new WeakSet,vr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Qe.batch(()=>{T(this,Cn).forEach(r=>{r.onMutationUpdate(t)}),T(this,ot).notify({mutation:this,type:"updated",action:t})})},Mx);function IO(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Qn,cn,nl,Lx,MO=(Lx=class extends ml{constructor(t={}){super();
227J(this,Qn);J(this,cn);J(this,nl);this.config=t,V(this,Qn,new Set),V(this,cn,new Map),V(this,nl,0)}build(t,n,r){const s=new OO({mutationCache:this,mutationId:++_l(this,nl)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){T(this,Qn).add(t);const n=Jl(t);if(typeof n=="string"){const r=T(this,cn).get(n);r?r.push(t):T(this,cn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,Qn).delete(t)){const n=Jl(t);if(typeof n=="string"){const r=T(this,cn).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&T(this,cn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Jl(t);if(typeof n=="string"){const r=T(this,cn).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Jl(t);if(typeof n=="string"){const s=(r=T(this,cn).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Qe.batch(()=>{T(this,Qn).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,Qn).clear(),T(this,cn).clear()})}getAll(){return Array.from(T(this,Qn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Xv(n,r))}findAll(t={}){return this.getAll().filter(n=>Xv(t,n))}notify(t){Qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Qe.batch(()=>Promise.all(t.map(n=>n.continue().catch(vt))))}},Qn=new WeakMap,cn=new WeakMap,nl=new WeakMap,Lx);function Jl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function t0(e){return{onFetch:(t,n)=>{var u,d,p,f,v;const r=t.options,s=(p=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:p.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],o=((v=t.state.data)==null?void 0:v.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let m=!1;const w=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},g=jk(t.options,t.fetchOptions),y=async(x,S,E)=>{if(m)return Promise.reject();if(S==null&&x.pages.length)return Promise.resolve(x);const _=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:S,direction:E?"backward":"forward",meta:t.options.meta};return w(D),D})(),C=await g(_),{maxPages:P}=t.options,j=E?kO:SO;return{pages:j(x.pages,C,P),pageParams:j(x.pageParams,S,P)}};if(s&&i.length){const x=s==="backward",S=x?LO:n0,E={pages:i,pageParams:o},k=S(r,E);a=await y(E,k,x)}else{const x=e??i.length;do{const S=l===0?o[0]??r.initialPageParam:n0(r,a);if(l>0&&S==null)break;a=await y(a,S),l++}while(l<x)}return a};t.options.persister?t.fetchFn=()=>{var m,w;return(w=(m=t.options).persister)==null?void 0:w.call(m,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function n0(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function LO(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Pe,Rr,Nr,Xi,Zi,Or,eo,to,Dx,DO=(Dx=class{constructor(e={}){J(this,Pe);J(this,Rr);J(this,Nr);J(this,Xi);J(this,Zi);J(this,Or);J(this,eo);J(this,to);V(this,Pe,e.queryCache||new NO),V(this,Rr,e.mutationCache||new MO),V(this,Nr,e.defaultOptions||{}),V(this,Xi,new Map),V(this,Zi,new Map),V(this,Or,0)}mount(){_l(this,Or)._++,T(this,Or)===1&&(V(this,eo,hg.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Pe).onFocus())})),V(this,to,gu.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Pe).onOnline())})))}unmount(){var e,t;_l(this,Or)._--,T(this,Or)===0&&((e=T(this,eo))==null||e.call(this),V(this,eo,void 0),(t=T(this,to))==null||t.call(this),V(this,to,void 0))}isFetching(e){return T(this,Pe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,Rr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Pe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,Pe).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Yr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return T(this,Pe).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=T(this,Pe).get(r.queryHash),i=s==null?void 0:s.state.data,o=xO(t,i);if(o!==void 0)return T(this,Pe).build(this,r).setData(o,{...n,manual:!0})}
vendor: 11,458 bytes, line 227
227setQueriesData(e,t,n){return Qe.batch(()=>T(this,Pe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Pe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,Pe);Qe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,Pe);return Qe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Qe.batch(()=>T(this,Pe).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(vt).catch(vt)}invalidateQueries(e,t={}){return Qe.batch(()=>(T(this,Pe).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Qe.batch(()=>T(this,Pe).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(vt)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(vt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,Pe).build(this,t);return n.isStaleByTime(Yr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(vt).catch(vt)}fetchInfiniteQuery(e){return e.behavior=t0(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(vt).catch(vt)}ensureInfiniteQueryData(e){return e.behavior=t0(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return gu.isOnline()?T(this,Rr).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,Pe)}getMutationCache(){return T(this,Rr)}getDefaultOptions(){return T(this,Nr)}setDefaultOptions(e){V(this,Nr,e)}setQueryDefaults(e,t){T(this,Xi).set(Fa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,Xi).values()],n={};return t.forEach(r=>{Va(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){T(this,Zi).set(Fa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,Zi).values()],n={};return t.forEach(r=>{Va(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,Nr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ug(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===dg&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,Nr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,Pe).clear(),T(this,Rr).clear()}},Pe=new WeakMap,Rr=new WeakMap,Nr=new WeakMap,Xi=new WeakMap,Zi=new WeakMap,Or=new WeakMap,eo=new WeakMap,to=new WeakMap,Dx),gt,ie,rl,at,Is,no,Ir,Mr,sl,ro,so,Ms,Ls,Lr,io,le,Zo,rp,sp,ip,op,ap,lp,cp,Lk,$x,$O=($x=class extends ml{constructor(t,n){super();J(this,le);J(this,gt);J(this,ie);J(this,rl);J(this,at);J(this,Is);J(this,no);J(this,Ir);J(this,Mr);J(this,sl);J(this,ro);J(this,so);J(this,Ms);J(this,Ls);J(this,Lr);J(this,io,new Set);this.options=n,V(this,gt,t),V(this,Mr,null),V(this,Ir,np()),this.options.experimental_prefetchInRender||T(this,Ir).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,ie).addObserver(this),r0(T(this,ie),this.options)?se(this,le,Zo).call(this):this.updateResult(),se(this,le,op).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return up(T(this,ie),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return up(T(this,ie),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,se(this,le,ap).call(this),se(this,le,lp).call(this),T(this,ie).removeObserver(this)}setOptions(t){const n=this.options,r=T(this,ie);if(this.options=T(this,gt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ut(this.options.enabled,T(this,ie))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");se(this,le,cp).call(this),T(this,ie).setOptions(this.options),n._defaulted&&!Zf(this.options,n)&&T(this,gt).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,ie),observer:this});const s=this.hasListeners();s&&s0(T(this,ie),r,this.options,n)&&se(this,le,Zo).call(this),this.updateResult(),s&&(T(this,ie)!==r||Ut(this.options.enabled,T(this,ie))!==Ut(n.enabled,T(this,ie))||Yr(this.options.staleTime,T(this,ie))!==Yr(n.staleTime,T(this,ie)))&&se(this,le,rp).call(this);const i=se(this,le,sp).call(this);s&&(T(this,ie)!==r||Ut(this.options.enabled,T(this,ie))!==Ut(n.enabled,T(this,ie))||i!==T(this,Lr))&&se(this,le,ip).call(this,i)}getOptimisticResult(t){const n=T(this,gt).getQueryCache().build(T(this,gt),t),r=this.createResult(n,t);return VO(this,r)&&(V(this,at,r),V(this,no,this.options),V(this,Is,T(this,ie).state)),r}getCurrentResult(){return T(this,at)}trackResult(t,n){return new Proxy(t,{get:(r,s)=>(this.trackProp(s),n==null||n(s),Reflect.get(r,s))})}trackProp(t){T(this,io).add(t)}getCurrentQuery(){return T(this,ie)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=T(this,gt).defaultQueryOptions(t),r=T(this,gt).getQueryCache().build(T(this,gt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return se(this,le,Zo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,at)))}createResult(t,n){var P;const r=T(this,ie),s=this.options,i=T(this,at),o=T(this,Is),a=T(this,no),c=t!==r?t.state:T(this,rl),{state:u}=t;let d={...u},p=!1,f;if(n._optimisticResults){const j=this.hasListeners(),D=!j&&r0(t,n),O=j&&s0(t,r,n,s);(D||O)&&(d={...d,...Mk(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:v,errorUpdatedAt:m,status:w}=d;f=d.data;let g=!1;if(n.placeholderData!==void 0&&f===void 0&&w==="pending"){let j;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(j=i.data,g=!0):j=typeof n.placeholderData=="function"?n.placeholderData((P=T(this,so))==null?void 0:P.state.data,T(this,so)):n.placeholderData,j!==void 0&&(w="success",f=tp(i==null?void 0:i.data,j,n),p=!0)}if(n.select&&f!==void 0&&!g)if(i&&f===(o==null?void 0:o.data)&&n.select===T(this,sl))f=T(this,ro);else try{V(this,sl,n.select),f=n.select(f),f=tp(i==null?void 0:i.data,f,n),V(this,ro,f),V(this,Mr,null)}catch(j){V(this,Mr,j)}T(this,Mr)&&(v=T(this,Mr),f=T(this,ro),m=Date.now(),w="error");const y=d.fetchStatus==="fetching",x=w==="pending",S=w==="error",E=x&&y,k=f!==void 0,C={status:w,fetchStatus:d.fetchStatus,isPending:x,isSuccess:w==="success",isError:S,isInitialLoading:E,isLoading:E,data:f,dataUpdatedAt:d.dataUpdatedAt,error:v,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:y,isRefetching:y&&!x,isLoadingError:S&&!k,isPaused:d.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:S&&k,isStale:fg(t,n),refetch:this.refetch,promise:T(this,Ir),isEnabled:Ut(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const j=z=>{C.status==="error"?z.reject(C.error):C.data!==void 0&&z.resolve(C.data)},D=()=>{const z=V(this,Ir,C.promise=np());j(z)},O=T(this,Ir);switch(O.status){case"pending":t.queryHash===r.queryHash&&j(O);break;case"fulfilled":(C.status==="error"||C.data!==O.value)&&D();break;case"rejected":(C.status!=="error"||C.error!==O.reason)&&D();break}}return C}updateResult(){const t=T(this,at),n=this.createResult(T(this,ie),this.options);if(V(this,Is,T(this,ie).state),V(this,no,this.options),T(this,Is).data!==void 0&&V(this,so,T(this,ie)),Zf(n,t))return;V(this,at,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,i=typeof s=="function"?s():s;if(i==="all"||!i&&!T(this,io).size)return!0;const o=new Set(i??T(this,io));return this.options.throwOnError&&o.add("error"),Object.keys(T(this,at)).some(a=>{const l=a;return T(this,at)[l]!==t[l]&&o.has(l)})};se(this,le,Lk).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&se(this,le,op).call(this)}},gt=new WeakMap,ie=new WeakMap,rl=new WeakMap,at=new WeakMap,Is=new WeakMap,no=new WeakMap,Ir=new WeakMap,Mr=new WeakMap,sl=new WeakMap,ro=new WeakMap,so=new WeakMap,Ms=new WeakMap,Ls=new WeakMap,Lr=new WeakMap,io=new WeakMap,le=new WeakSet,Zo=function(t){se(this,le,cp).call(this);let n=T(this,ie).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(vt)),n},rp=function(){se(this,le,ap).call(this);const t=Yr(this.options.staleTime,T(this,ie));if(Ks||T(this,at).isStale||!Xf(t))return;const r=Pk(T(this,at).dataUpdatedAt,t)+1;V(this,Ms,setTimeout(()=>{T(this,at).isStale||this.updateResult()},r))},sp=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,ie)):this.options.refetchInterval)??!1},ip=function(t){se(this,le,lp).call(this),V(this,Lr,t),!(Ks||Ut(this.options.enabled,T(this,ie))===!1||!Xf(T(this,Lr))||T(this,Lr)===0)&&V(this,Ls,setInterval(()=>{(this.options.refetchIntervalInBackground||hg.isFocused())&&se(this,le,Zo).call(this)},T(this,Lr)))},op=function(){se(this,le,rp).call(this),se(this,le,ip).call(this,se(this,le,sp).call(this))},ap=function(){T(this,Ms)&&(clearTimeout(T(this,Ms)),V(this,Ms,void 0))},lp=function(){T(this,Ls)&&(clearInterval(T(this,Ls)),V(this,Ls,void 0))},cp=function(){const t=T(this,gt).getQueryCache().build(T(this,gt),this.options);if(t===T(this,ie))return;const n=T(this,ie);V(this,ie,t),V(this,rl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Lk=function(t){Qe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(T(this,at))}),T(this,gt).getQueryCache().notify({query:T(this,ie),type:"observerResultsUpdated"})})},$x);function FO(e,t){return Ut(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function r0(e,t){return FO(e,t)||e.state.data!==void 0&&up(e,t,t.refetchOnMount)}function up(e,t,n){if(Ut(t.enabled,e)!==!1&&Yr(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&fg(e,t)}return!1}function s0(e,t,n,r){return(e!==t||Ut(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&fg(e,n)}function fg(e,t){return Ut(t.enabled,e)!==!1&&e.isStaleByTime(Yr(t.staleTime,e))}function VO(e,t){return!Zf(e.getCurrentResult(),t)}var Dk=b.createContext(void 0),UO=e=>{const t=b.useContext(Dk);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},zO=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(Dk.Provider,{value:e,children:t})),$k=b.createContext(!1),BO=()=>b.useContext($k);$k.Provider;function WO(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
227var HO=b.createContext(WO()),KO=()=>b.useContext(HO),qO=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},GO=e=>{b.useEffect(()=>{e.clearReset()},[e])},YO=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||EO(n,[e.error,r])),QO=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},JO=(e,t)=>e.isLoading&&e.isFetching&&!t,XO=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,i0=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function ZO(e,t,n){var d,p,f,v,m;const r=BO(),s=KO(),i=UO(),o=i.defaultQueryOptions(e);(p=(d=i.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||p.call(d,o),o._optimisticResults=r?"isRestoring":"optimistic",QO(o),qO(o,s),GO(s);const a=!i.getQueryCache().get(o.queryHash),[l]=b.useState(()=>new t(i,o)),c=l.getOptimisticResult(o),u=!r&&e.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(w=>{const g=u?l.subscribe(Qe.batchCalls(w)):vt;return l.updateResult(),g},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),b.useEffect(()=>{l.setOptions(o)},[o,l]),XO(o,c))throw i0(o,l,s);if(YO({result:c,errorResetBoundary:s,throwOnError:o.throwOnError,query:i.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw c.error;if((v=(f=i.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||v.call(f,o,c),o.experimental_prefetchInRender&&!Ks&&JO(c,r)){const w=a?i0(o,l,s):(m=i.getQueryCache().get(o.queryHash))==null?void 0:m.promise;w==null||w.catch(vt).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?c:l.trackResult(c)}function eI(e,t){return ZO(e,$O)}/** 228 * @remix-run/router v1.23.0 229 * 230 * Copyright (c) Remix Software Inc. 231 * 232 * This source code is licensed under the MIT license found in the 233 * LICENSE.md file in the root directory of this source tree. 234 * 235 * @license MIT 236 */function Ua(){return Ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ua.apply(this,arguments)}var Fr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Fr||(Fr={}));const o0="popstate";function tI(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:a}=r.location;return dp("",{pathname:i,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:yu(s)}return rI(t,n,null,e)}function Le(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Fk(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nI(){return Math.random().toString(36).substr(2,8)}function a0(e,t){return{usr:e.state,key:e.key,idx:t}}function dp(e,t,n,r){return n===void 0&&(n=null),Ua({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?To(t):t,{state:n,key:t&&t.key||r||nI()})}function yu(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function To(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function rI(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=Fr.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(Ua({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function d(){a=Fr.Pop;let w=u(),g=w==null?null:w-c;c=w,l&&l({action:a,location:m.location,delta:g})}function p(w,g){a=Fr.Push;let y=dp(m.location,w,g);c=u()+1;let x=a0(y,c),S=m.createHref(y);try{o.pushState(x,"",S)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;s.location.assign(S)}i&&l&&l({action:a,location:m.location,delta:1})}function f(w,g){a=Fr.Replace;let y=dp(m.location,w,g);c=u();let x=a0(y,c),S=m.createHref(y);o.replaceState(x,"",S),i&&l&&l({action:a,location:m.location,delta:0})}function v(w){let g=s.location.origin!=="null"?s.location.origin:s.location.href,y=typeof w=="string"?w:yu(w);return y=y.replace(/ $/,"%20"),Le(g,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,g)}let m={get action(){return a},get location(){return e(s,o)},listen(w){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(o0,d),l=w,()=>{s.removeEventListener(o0,d),l=null}},createHref(w){return t(s,w)},createURL:v,encodeLocation(w){let g=v(w);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:p,replace:f,go(w){return o.go(w)}};return m}var l0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(l0||(l0={}));function sI(e,t,n){return n===void 0&&(n="/"),iI(e,t,n,!1)}function iI(e,t,n,r){let s=typeof t=="string"?To(t):t,i=pg(s.pathname||"/",n);if(i==null)return null;let o=Vk(e);oI(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=yI(i);a=mI(o[l],c,r)}return a}function Vk(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,o,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(Le(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not val
236id. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Qr([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(Le(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Vk(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:fI(c,i.index),routesMeta:u})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let l of Uk(i.path))s(i,o,l)}),t}function Uk(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=Uk(r.join("/")),a=[];return a.push(...o.map(l=>l===""?i:[i,l].join("/"))),s&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function oI(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:pI(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const aI=/^:[\w-]+$/,lI=3,cI=2,uI=1,dI=10,hI=-2,c0=e=>e==="*";function fI(e,t){let n=e.split("/"),r=n.length;return n.some(c0)&&(r+=hI),t&&(r+=cI),n.filter(s=>!c0(s)).reduce((s,i)=>s+(aI.test(i)?lI:i===""?uI:dI),r)}function pI(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function mI(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,u=i==="/"?t:t.slice(i.length)||"/",d=u0({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),p=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=u0({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;
vendor: 13,539 bytes, lines 236-254
236Object.assign(s,d.params),o.push({params:s,pathname:Qr([i,d.pathname]),pathnameBase:bI(Qr([i,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(i=Qr([i,d.pathnameBase]))}return o}function u0(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=gI(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:p,isOptional:f}=u;if(p==="*"){let m=a[d]||"";o=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const v=a[d];return f&&!v?c[p]=void 0:c[p]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function gI(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Fk(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function yI(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fk(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function pg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function vI(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?To(e):e;return{pathname:n?n.startsWith("/")?n:wI(n,t):t,search:SI(r),hash:kI(s)}}function wI(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function ah(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function xI(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function zk(e,t){let n=xI(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Bk(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=To(e):(s=Ua({},e),Le(!s.pathname||!s.pathname.includes("?"),ah("?","pathname","search",s)),Le(!s.pathname||!s.pathname.includes("#"),ah("#","pathname","hash",s)),Le(!s.search||!s.search.includes("#"),ah("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),d-=1;s.pathname=p.join("/")}a=d>=0?t[d]:"/"}let l=vI(s,a),c=o&&o!=="/"&&o.endsWith("/"),u=(i||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Qr=e=>e.join("/").replace(/\/\/+/g,"/"),bI=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),SI=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,kI=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function EI(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Wk=["post","put","patch","delete"];new Set(Wk);const _I=["get",...Wk];new Set(_I);/** 237 * React Router v6.30.1 238 * 239 * Copyright (c) Remix Software Inc. 240 * 241 * This source code is licensed under the MIT license found in the 242 * LICENSE.md file in the root directory of this source tree. 243 * 244 * @license MIT 245 */function za(){return za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},za.apply(this,arguments)}const mg=b.createContext(null),TI=b.createContext(null),Qs=b.createContext(null),id=b.createContext(null),os=b.createContext({outlet:null,matches:[],isDataRoute:!1}),Hk=b.createContext(null);function CI(e,t){let{relative:n}=t===void 0?{}:t;gl()||Le(!1);let{basename:r,navigator:s}=b.useContext(Qs),{hash:i,pathname:o,search:a}=Gk(e,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:Qr([r,o])),s.createHref({pathname:l,search:a,hash:i})}function gl(){return b.useContext(id)!=null}function as(){return gl()||Le(!1),b.useContext(id).location}function Kk(e){b.useContext(Qs).static||b.useLayoutEffect(e)}function qk(){let{isDataRoute:e}=b.useContext(os);return e?VI():PI()}function PI(){gl()||Le(!1);let e=b.useContext(mg),{basename:t,future:n,navigator:r}=b.useContext(Qs),{matches:s}=b.useContext(os),{pathname:i}=as(),o=JSON.stringify(zk(s,n.v7_relativeSplatPath)),a=b.useRef(!1);return Kk(()=>{a.current=!0}),b.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=Bk(c,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Qr([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,o,i,e])}function yz(){let{matches:e}=b.useContext(os),t=e[e.length-1];return t?t.params:{}}function Gk(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(Qs),{matches:s}=b.useContext(os),{pathname:i}=as(),o=JSON.stringify(zk(s,r.v7_relativeSplatPath));return b.useMemo(()=>Bk(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function AI(e,t){return jI(e,t)}function jI(e,t,n,r){gl()||Le(!1);let{navigator:s}=b.useContext(Qs),{matches:i}=b.useContext(os),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=as(),u;if(t){var d;let w=typeof t=="string"?To(t):t;l==="/"||(d=w.pathname)!=null&&d.startsWith(l)||Le(!1),u=w}else u=c;let p=u.pathname||"/",f=p;if(l!=="/"){let w=l.replace(/^\//,"").split("/");f="/"+p.replace(/^\//,"").split("/").slice(w.length).join("/")}let v=sI(e,{pathname:f}),m=MI(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:Qr([l,s.encodeLocation?s.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Qr([l,s.encodeLocation?s.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&m?b.createElement(id.Provider,{value:{location:za({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Fr.Pop}},m):m}function RI(){let e=FI(),t=EI(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:s},n):null,null)}const NI=b.createElement(RI,null);class OI extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(os.Provider,{value:this.props.routeContext},b.createElement(Hk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function II(e){let{routeContext:t,match:n,children:r}=e,s=b.useContext(mg);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(os.Provider,{value:t},r)}function MI(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let u=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||Le(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:p,errors:f}=n,v=d.route.loader&&p[d.route.id]===void 0&&(!f||f[d.route.id]===void 0);if(d.route.lazy||v){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,d,p)=>{let f,v=!1,m=null,w=null;n&&(f=a&&d.route.id?a[d.route.id]:void 0,m=d.route.errorElement||NI,l&&(c<0&&p===0?(v=!0,w=null):c===p&&(v=!0,w=d.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,p+1)),y=()=>{let x;return f?x=m:v?x=w:d.route.Component?x=b.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=u,b.createElement(II,{match:d,routeContext:{outlet:u,matches:g,isDataRoute:n!=null},children:x})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?b.createElement(OI,{location:n.location,revalidation:n.revalidation,component:m,error:f,children:y(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):y()},null)}var Yk=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Yk||{}),vu=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(vu||{});function LI(e){let t=b.useContext(mg);return t||Le(!1),t}function DI(e){let t=b.useContext(TI);return t||Le(!1),t}function $I(e){let t=b.useContext(os);return t||Le(!1),t}function Qk(e){let t=$I(),n=t.matches[t.matches.length-1];return n.route.id||Le(!1),n.route.id}function FI(){var e;let t=b.useContext(Hk),n=DI(vu.UseRouteError),r=Qk(vu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function VI(){let{router:e}=LI(Yk.UseNavigateStable),t=Qk(vu.UseNavigateStable),n=b.useRef(!1);return Kk(()=>{n.current=!0}),b.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,za({fromRouteId:t},i)))},[e,t])}function UI(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Re(e){Le(!1)}function zI(e){let{basename:t="/",children:n=null,location:r,navigationType:s=Fr.Pop,navigator:i,static:o=!1,future:a}=e;gl()&&Le(!1);let l=t.replace(/^\/*/,"/"),c=b.useMemo(()=>({basename:l,navigator:i,static:o,future:za({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof r=="string"&&(r=To(r));let{pathname:u="/",search:d="",hash:p="",state:f=null,key:v="default"}=r,m=b.useMemo(()=>{let w=pg(u,l);return w==null?null:{location:{pathname:w,search:d,hash:p,state:f,key:v},navigationType:s}},[l,u,d,p,f,v,s]);return m==null?null:b.createElement(Qs.Provider,{value:c},b.createElement(id.Provider,{children:n,value:m}))}function BI(e){let{children:t,location:n}=e;return AI(hp(t),n)}new Promise(()=>{});function hp(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,s)=>{if(!b.isValidElement(r))return;let i=[...t,s];if(r.type===b.Fragment){n.push.apply(n,hp(r.props.children,i));return}r.type!==Re&&Le(!1),!r.props.index||!r.props.children||Le(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=hp(r.props.children,i)),n.push(o)}),n}/** 246 * React Router DOM v6.30.1 247 * 248 * Copyright (c) Remix Software Inc. 249 * 250 * This source code is licensed under the MIT license found in the 251 * LICENSE.md file in the root directory of this source tree. 252 * 253 * @license MIT 254 */function fp(){return fp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fp.apply(this,arguments)}function WI(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function HI(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function KI(e,t){return e.button===0&&(!t||t==="_self")&&!HI(e)}const qI=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],GI="6";try{window.__reactRouterVersion=GI}catch{}const YI="startTransition",d0=tm[YI];function QI(e){let{basename:t,children:n,future:r,window:s}=e,i=b.useRef();i.current==null&&(i.current=tI({window:s,v5Compat:!0}));let o=i.current,[a,l]=b.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},u=b.useCallback(d=>{c&&d0?d0(()=>l(d)):l(d)},[l,c]);return b.useLayoutEffect(()=>o.listen(u),[o,u]),b.useEffect(()=>
254UI(r),[r]),b.createElement(zI,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const JI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",XI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Je=b.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,p=WI(t,qI),{basename:f}=b.useContext(Qs),v,m=!1;if(typeof c=="string"&&XI.test(c)&&(v=c,JI))try{let x=new URL(window.location.href),S=c.startsWith("//")?new URL(x.protocol+c):new URL(c),E=pg(S.pathname,f);S.origin===x.origin&&E!=null?c=E+S.search+S.hash:m=!0}catch{}let w=CI(c,{relative:s}),g=ZI(c,{replace:o,state:a,target:l,preventScrollReset:u,relative:s,viewTransition:d});function y(x){r&&r(x),x.defaultPrevented||g(x)}return b.createElement("a",fp({},p,{href:v||w,onClick:m||i?r:y,ref:n,target:l}))});var h0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(h0||(h0={}));var f0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(f0||(f0={}));function ZI(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,l=qk(),c=as(),u=Gk(e,{relative:o});return b.useCallback(d=>{if(KI(d,n)){d.preventDefault();let p=r!==void 0?r:yu(c)===yu(u);l(e,{replace:p,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[c,l,u,r,s,n,e,i,o,a])}const p0=e=>{let t;const n=new Set,r=(c,u)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const p=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({}
254,t,d),n.forEach(f=>f(t,p))}},s=()=>t,a={setState:r,getState:s,getInitialState:()=>l,subscribe:c=>(n.add(c),()=>n.delete(c))},l=t=e(r,s,a);return a},eM=e=>e?p0(e):p0,tM=e=>e;function nM(e,t=tM){const n=N.useSyncExternalStore(e.subscribe,N.useCallback(()=>t(e.getState()),[e,t]),N.useCallback(()=>t(e.getInitialState()),[e,t]));return N.useDebugValue(n),n}const rM=e=>{const t=eM(e),n=r=>nM(t,r);return Object.assign(n,t),n},Jk=e=>rM;function Xk(e,t){let n;try{n=e()}catch{return}return{getItem:s=>{var i;const o=l=>l===null?null:JSON.parse(l,void 0),a=(i=n.getItem(s))!=null?i:null;return a instanceof Promise?a.then(o):o(a)},setItem:(s,i)=>n.setItem(s,JSON.stringify(i,void 0)),removeItem:s=>n.removeItem(s)}}const pp=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return pp(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return pp(r)(n)}}}},sM=(e,t)=>(n,r,s)=>{let i={storage:Xk(()=>window.localStorage),partialize:w=>w,version:0,merge:(w,g)=>({...g,...w}),...t},o=!1,a=0;const l=new Set,c=new Set;let u=i.storage;if(!u)return e((...w)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...w)},r,s);const d=()=>{const w=i.partialize({...r()});return u.setItem(i.name,{state:w,version:i.version})},p=s.setState;s.setState=(w,g)=>(p(w,g),d());const f=e((...w)=>(n(...w),d()),r,s);s.getInitialState=()=>f;let v;const m=()=>{var w,g;if(!u)return;const y=++a;o=!1,l.forEach(S=>{var E;return S((E=r())!=null?E:f)});const x=((g=i.onRehydrateStorage)==null?void 0:g.call(i,(w=r())!=null?w:f))||void 0;return pp(u.getItem.bind(u))(i.name).then(S=>{if(S)if(typeof S.version=="number"&&S.version!==i.version){if(i.migrate){const E=i.migrate(S.state,S.version);return E instanceof Promise?E.then(k=>[!0,k]):[!0,E]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,S.state];return[!1,void 0]}).then(S=>{var E;if(y!==a)return;const[k,_]=S;if(v=i.merge(_,(E=r())!=null?E:f),n(v,!0),k)return d()}).then(()=>{y===a&&(x==null||x(v,void 0),v=r(),o=!0,c.forEach(S=>S(v)))}).catch(S=>{y===a&&(x==null||x(void 0,S))})};return s.persist={setOptions:w=>{i={...i,...w},w.storage&&(u=w.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:w=>(l.add(w),()=>{l.delete(w)}),onFinishHydration:w=>(c.add(w),()=>{c.delete(w)})},i.skipHydration||m(),v||f},Zk=sM,iM="2025-01",gg="malaargenta.myshopify.com",oM=`https://${gg}/api/${iM}/graphql.json`,aM="6d29c04dc35a4bc5b1366010d73bb07b";async function er(e,t={}){const n=await fetch(oM,{method:"POST",headers:{"Content-Type":"application/json","X-Shopify-Storefront-Access-Token":aM},body:JSON.stringify({query:e,variables:t})});if(n.status===402){Zm.error("Shopify: Payment required",{description:"Your store needs to be upgraded to a paid plan."});return}if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const r=await n.json();if(r.errors)throw new Error(`Shopify error: ${r.errors.map(s=>s.message).join(", ")}`);return r}const lM=` 255 query GetProducts($first: Int!, $query: String) { 256 products(first: $first, query: $query) { 257 edges { 258 node { 259 id 260 title 261 description 262 handle 263 priceRange { 264 minVariantPrice { 265 amount 266 currencyCode 267 } 268 } 269 images(first: 2) { 270 edges { 271 node { 272 url 273 altText 274 } 275 } 276 } 277 variants(first: 10) { 278 edges { 279 node { 280 id 281 title 282 price { 283 amount 284 currencyCode 285 } 286 availableForSale 287 selectedOptions { 288 name 289 value 290 } 291 } 292 } 293 } 294 options { 295 name 296 values 297 } 298 } 299 } 300 } 301 } 302`,vz=` 303 query GetProductByHandle($handle: String!) { 304 productByHandle(handle: $handle) { 305 id 306 title 307 description 308 handle 309 priceRange { 310 minVariantPrice { 311 amount 312 currencyCode 313 } 314 } 315 images(first: 10) { 316 edges { 317 node { 318 url 319 altText 320 } 321 } 322 } 323 variants(first: 20) { 324 edges { 325 node { 326 id 327 title 328 price { 329 amount 330 currencyCode 331 } 332 availableForSale 333 selectedOptions { 334 name 335 value 336 } 337 } 338 } 339 } 340 options { 341 name 342 values 343 } 344 } 345 } 346`,cM=` 347 query cart($id: ID!) { 348 cart(id: $id) { 349 id 350 totalQuantity 351 checkoutUrl 352 lines(first: 100) { 353 edges { 354 node { 355 id 356 quantity 357 merchandise { 358 ... on ProductVariant { id } 359 } 360 } 361 } 362 } 363 } 364 } 365`,uM=` 366 mutation cartCreate($input: CartInput!) { 367 cartCreate(input: $input) { 368 cart { 369 id 370 checkoutUrl 371 lines(first: 100) { edges { node { id merchandise { ... on ProductVariant { id } } } } } 372 } 373 userErrors { field message } 374 } 375 } 376`,dM=` 377 mutation cartLinesAdd($cartId: ID!, $lines: [CartLineInput!]!) { 378 cartLinesAdd(cartId: $cartId, lines: $lines) { 379 cart { 380 id 381 lines(first: 100) { edges { node { id merchandise { ... on ProductVariant { id } } } } } 382 } 383 userErrors { field message } 384 } 385 } 386`,hM=` 387 mutation cartLinesUpdate($cartId: ID!, $lines: [CartLineUpdateInput!]!) { 388 cartLinesUpdate(cartId: $cartId, lines: $lines) { 389 cart { id } 390 userErrors { field message } 391 } 392 } 393`,fM=` 394 mutation cartLinesRemove($cartId: ID!, $lineIds: [ID!]!) { 395 cartLinesRemove(cartId: $cartId, lineIds: $lineIds) { 396 cart { id } 397 userErrors { field message } 398 } 399 } 400`;function eE(){var e;try{const t=localStorage.getItem("mala-argenta-locale"),n=t?JSON.parse(t):null,r=((e=n==null?void 0:n.state)==null?void 0:e.locale)??(n==null?void 0:n.locale);if(r==="es"||r==="en"||r==="cs")return r}catch{}return"cs"}function tE(e,t){try{const n=new URL(e);return n.hostname=gg,n.searchParams.set("channel","online_store"),n.searchParams.set("locale",t??eE()),n.toString()}catch{return e}}function yg(e){return e.some(t=>t.message.toLowerCase().includes("cart not found")||t.message.toLowerCase().includes("does not exist"))}function pM(e){const t=e.match(/\/(\d+)$/);return t!=null&&t[1]?t[1]:/^\d+$/.test(e)?e:null}function mM(e,t,n){const r=e.map(({variantId:a,quantity:l})=>{const c=pM(a),u=Math.max(1,Math.floor(l));return c?`${c}:${u}`:null}).filter(a=>!!a);if(r.length===0)return null;const s=t??eE(),i=new URLSearchParams({channel:"online_store",locale:s}),o=n==null?void 0:n.prefill;return o&&(o.email&&i.set("checkout[email]",o.email),[["first_name",o.first_name],["last_name",o.last_name],["address1",o.address1],["address2",o.address2],["city",o.city],["zip",o.zip],["province",o.province],["country",o.country],["phone",o.phone]].forEac
400h(([l,c])=>{c&&i.set(`checkout[shipping_address][${l}]`,c)})),n!=null&&n.discount&&i.set("discount",n.discount),`https://${gg}/cart/${r.join(",")}?${i.toString()}`}async function gM(e){var s,i,o,a,l,c,u;const t=await er(uM,{input:{lines:[{quantity:e.quantity,merchandiseId:e.variantId}]}});if(((o=(i=(s=t==null?void 0:t.data)==null?void 0:s.cartCreate)==null?void 0:i.userErrors)==null?void 0:o.length)>0)return null;const n=(l=(a=t==null?void 0:t.data)==null?void 0:a.cartCreate)==null?void 0:l.cart;if(!(n!=null&&n.checkoutUrl))return null;const r=(u=(c=n.lines.edges[0])==null?void 0:c.node)==null?void 0:u.id;return r?{cartId:n.id,checkoutUrl:tE(n.checkoutUrl),lineId:r}:null}async function yM(e,t){var o,a,l,c,u,d,p;const n=await er(dM,{cartId:e,lines:[{quantity:t.quantity,merchandiseId:t.variantId}]}),r=((a=(o=n==null?void 0:n.data)==null?void 0:o.cartLinesAdd)==null?void 0:a.userErrors)||[];if(yg(r))return{success:!1,cartNotFound:!0};if(r.length>0)return{success:!1};const i=(((d=(u=(c=(l=n==null?void 0:n.data)==null?void 0:l.cartLinesAdd)==null?void 0:c.cart)==null?void 0:u.lines)==null?void 0:d.edges)||[]).find(f=>f.node.merchandise.id===t.variantId);return{success:!0,lineId:(p=i==null?void 0:i.node)==null?void 0:p.id}}async function m0(e,t,n){var i,o;const r=await er(hM,{cartId:e,lines:[{id:t,quantity:n}]}),s=((o=(i=r==null?void 0:r.data)==null?void 0:i.cartLinesUpdate)==null?void 0:o.userErrors)||[];return yg(s)?{success:!1,cartNotFound:!0}:s.length>0?{success:!1}:{success:!0}}async function vM(e,t){var s,i;const n=await er(fM,{cartId:e,lineIds:[t]}),r=((i=(s=n==null?void 0:n.data)==null?void 0:s.cartLinesRemove)==null?void 0:i.userErrors)||[];return yg(r)?{success:!1,cartNotFound:!0}:r.length>0?{success:!1}:{success:!0}}const wu=Jk()(Zk((e,t)=>({items:[],cartId:null,checkoutUrl:null,isLoading:!1,isSyncing:!1,addItem:async n=>{const{items:r,cartId:s,clearCart:i}=t(),o=r.find(a=>a.variantId===n.variantId);e({isLoading:!0});try{if(s)if(o){const a=o.quantity+n.quantity;if(!o.lineId)return;const l=await m0(s,o.lineId,a);l.success?e({items:t().items.map(c=>c.variantId===n.variantId?{...c,quantity:a}:c)}):l.cartNotFound&&i()}else{const a=await yM(s,{...n,lineId:null});a.success?e({items:[...t().items,{...n,lineId:a.lineId??null}]}):a.cartNotFound&&i()}else{const a=await gM({...n,lineId:null});a&&e({cartId:a.cartId,checkoutUrl:a.checkoutUrl,items:[{...n,lineId:a.lineId}]})}}catch(a){console.error("Failed to add item:",a)}finally{e({isLoading:!1})}},updateQuantity:async(n,r)=>{if(r<=0){await t().removeItem(n);return}const{items:s,cartId:i,clearCart:o}=t(),a=s.find(l=>l.variantId===n);if(!(!(a!=null&&a.lineId)||!i)){e({isLoading:!0});try{const l=await m0(i,a.lineId,r);l.success?e({items:t().items.map(c=>c.variantId===n?{...c,quantity:r}:c)}):l.cartNotFound&&o()}catch(l){console.error("Failed to update:",l)}finally{e({isLoading:!1})}}},removeItem:async n=>{const{items:r,cartId:s,clearCart:i}=t(),o=r.find(a=>a.variantId===n);if(!(!(o!=null&&o.lineId)||!s)){e({isLoading:!0});try{const a=await vM(s,o.lineId);if(a.success){const l=t().items.filter(c=>c.variantId!==n);l.length===0?i():e({items:l})}else a.cartNotFound&&i()}catch(a){console.error("Failed to remove:",a)}finally{e({isLoading:!1})}}},clearCart:()=>e({items:[],cartId:null,checkoutUrl:null}),getCheckoutUrl:()=>t().checkoutUrl,syncCart:async()=>{var i;const{cartId:n,isSyncing:r,clearCart:s}=t();if(!(!n||r)){e({isSyncing:!0});try{const o=await er(cM,{id:n});if(!o)return;const a=(i=o==null?void 0:o.data)==null?void 0:i.cart;!a||a.totalQuantity===0?s():a.checkoutUrl&&e({checkoutUrl:tE(a.checkoutUrl)})}catch(o){console.error("Failed to sync cart:",o)}finally{e({isSyncing:!1})}}}}),{name:"shopify-cart",storage:Xk(()=>localStorage),partialize:e=>({items:e.items,cartId:e.cartId,checkoutUrl:e.checkoutUrl})}));function wM(){const e=wu(t=>t.syncCart);b.useEffect(()=>{e();const t=()=>{document.visibilityState==="visible"&&e()};return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)},[e])}const xM={"nav.home":{cs:"Domů",es:"Inicio",en:"Home"}
400,"nav.empanadas":{cs:"Empanadas",es:"Empanadas",en:"Empanadas"},"nav.yerbamate":{cs:"Yerba Mate",es:"Yerba Mate",en:"Yerba Mate World"},"nav.order":{cs:"Objednat",es:"Pedir",en:"Order"},"nav.almacen":{cs:"Kiosk",es:"Kiosk",en:"Kiosk"},"nav.vino":{cs:"VÃno",es:"Vino",en:"Wine"},"nav.cupones":{cs:"Kupóny",es:"Cupones",en:"Coupons"},"nav.events":{cs:"Food Events",es:"Food Events",en:"Food Events"},"nav.contact":{cs:"Kontakt",es:"Contacto",en:"Contact"},"nav.account":{cs:"Můj úÄet",es:"Mi cuenta",en:"My account"},"action.close":{cs:"ZavÅÃt",es:"Cerrar",en:"Close"},"action.back":{cs:"ZpÄt",es:"Volver",en:"Back"},"action.openMenu":{cs:"OtevÅÃt menu",es:"Abrir menú",en:"Open menu"},"action.removeItem":{cs:"Odebrat položku",es:"Eliminar producto",en:"Remove item"},"action.decreaseQuantity":{cs:"SnÞit množstvÃ",es:"Reducir cantidad",en:"Decrease quantity"},"action.increaseQuantity":{cs:"Zvýšit množstvÃ",es:"Aumentar cantidad",en:"Increase quantity"},"hero.title":{cs:"Argentinské empanadas v Praze",es:"Empanadas argentinas en Praga",en:"Argentinian Empanadas in Prague"},"hero.subtitle":{cs:"Autentické empanadas, yerba mate a dalšà argentinské pochoutky",es:"Empanadas auténticas, yerba mate y más delicias argentinas",en:"Authentic empanadas, yerba mate & Argentine delicacies"},"hero.orderNow":{cs:"Objednat nynÃ",es:"Pedir ahora",en:"Order Now"},"hero.explore":{cs:"Prozkoumat",es:"Explorar",en:"Explore"},"home.orderNow.title":{cs:"Objednejte si",es:"Pedà ahora",en:"Order now"},"home.orderNow.subtitle":{cs:"Äerstvé nebo mražené empanadas â pÅipravené podle vašà chuti",es:"Empanadas frescas o congeladas â listas para tu antojo",en:"Fresh or frozen empanadas â ready for your craving"},"empanadas.title":{cs:"NaÅ¡e Empanadas",es:"Nuestras Empanadas",en:"Our Empanadas"},"empanadas.subtitle":{cs:"JedineÄné, z kvalitnÃch surovin a plné chuti.",es:"Ãnicas, con ingredientes de alta calidad y llenas de sabor.",en:"Unique, made with high quality ingredients, and full of flavor."},"mate.title":{cs:"Yerba Mate World",es:"Mundo Yerba Mate",en:"Yerba Mate World"},"mate.subtitle":{cs:"NejvÄtšà výbÄr yerba mate v Äeské republice",es:"La mayor selección de yerba mate en República Checa",en:"The largest yerba mate selection in Czech Republic"},"order.title":{cs:"Objednat online",es:"Pedir online",en:"Order Online"},"order.subtitle":{cs:"VyzvednÄte si v našà poboÄce â Äerstvé nebo mražené",es:"Retira en nuestro local â frescas o congeladas",en:"Pick up at our store â fresh or frozen"},"order.cooked":{cs:"ÄerstvÄ upeÄené",es:"Recién horneadas",en:"Freshly Baked"},"order.cookedDesc":{cs:"Vyberte datum a Äas a vyzvednÄte si je upeÄené v našà poboÄce",es:"Elegà fecha y hora y retiralas cocidas en nuestras tiendas",en:"Select a date and time and pick them up cooked at our shops"},"order.frozen":{cs:"Mražené",es:"Congeladas",en:"Frozen"},"order.frozenDesc":{cs:"VyzvednÄte si je mražené v našà poboÄce a upeÄte doma.",es:"Retiralas congeladas en nuestras tiendas y cociná en casa.",en:"Get them frozen at our shops and cook them at home."},"locations.title":{cs:"Kde nás najdete",es:"Dónde encontrarnos",en:"Find Us"},"locations.hours":{cs:"OtevÃracà doba",es:"Horario",en:"Hours"},"delivery.title":{cs:"Rozvoz",es:"Delivery",en:"Delivery"},"delivery.subtitle":{cs:"Najdete nás na tÄchto aplikacÃch",es:"Nos encontrás en estas apps",en:"Find us on these apps"}
400,"cart.title":{cs:"KoÅ¡Ãk",es:"Carrito",en:"Cart"},"cart.empty":{cs:"KoÅ¡Ãk je prázdný",es:"Tu carrito está vacÃo",en:"Your cart is empty"},"cart.checkout":{cs:"Zaplatit",es:"Pagar",en:"Checkout"},"cart.total":{cs:"Celkem",es:"Total",en:"Total"},"cart.items":{cs:"položek",es:"artÃculos",en:"items"},"cart.checkoutError":{cs:"Platbu se nepodaÅilo otevÅÃt. Zkuste obnovit stránku.",es:"No se pudo abrir el checkout. Probá recargar la página.",en:"Could not open checkout. Try reloading the page."},"product.addToCart":{cs:"PÅidat do koÅ¡Ãku",es:"Agregar al carrito",en:"Add to Cart"},"product.noProducts":{cs:"ZatÃm žádné produkty",es:"Aún no hay productos",en:"No products yet"},"product.soldOut":{cs:"Vyprodáno",es:"Agotado",en:"Sold out"},"product.added":{cs:"PÅidáno",es:"Agregado",en:"Added"},"product.notFound":{cs:"Produkt nenalezen",es:"Producto no encontrado",en:"Product not found"},"footer.tagline":{cs:"Argentinská kuchynÄ v srdci Prahy",es:"Cocina argentina en el corazón de Praga",en:"Argentine Cuisine in the heart of Prague"}};function q(e,t){var n;return((n=xM[e])==null?void 0:n[t])||e}const wn=Jk()(Zk(e=>({locale:"cs",setLocale:t=>e({locale:t})}),{name:"mala-argenta-locale"})),nE="https://malaargenta.cz",bM=["cs","es","en"],SM={cs:"cs_CZ",es:"es_AR",en:"en_US"},g0={home:{cs:{title:"Argentinské empanadas v Praze | Malá Argenta",description:"Autentické argentinské empanadas peÄené každý den, yerba mate, alfajores a dulce de leche. TÅi poboÄky v Praze: Malá Strana, Vinohrady a brzy Staré MÄsto."},es:{title:"Empanadas argentinas en Praga | Malá Argenta",description:"Empanadas argentinas auténticas horneadas todos los dÃas, yerba mate, alfajores y dulce de leche. Tres locales en Praga: Malá Strana, Vinohrady y pronto Staré MÄsto."},en:{title:"Argentine Empanadas in Prague | Malá Argenta",description:"Authentic Argentine empanadas baked fresh daily, yerba mate, alfajores and dulce de leche. Three stores in Prague: Malá Strana, Vinohrady and soon Staré MÄsto."}},freshlyBaked:{cs:{title:"ÄerstvÄ peÄené empanadas v Praze | Malá Argenta",description:"Argentinské empanadas peÄené na mÃstÄ každý den na Malé StranÄ a Vinohradech. PÅes 12 pÅÃchutà â objednávka na telefonu."},es:{title:"Empanadas recién horneadas en Praga | Malá Argenta",description:"Empanadas argentinas horneadas en el dÃa en Malá Strana y Vinohrady. Más de 12 sabores â pre-pedido por teléfono."},en:{title:"Freshly Baked Empanadas in Prague | Malá Argenta",description:"Argentine empanadas baked on site every day at our Malá Strana and Vinohrady stores. 12+ fillings â pre-order by phone."}},frozen:{cs:{title:"Mražené argentinské empanadas online | Malá Argenta Praha",description:"Objednejte mražené argentinské empanadas online v Praze â vyzvednutà v poboÄce nebo rozvoz. UpeÄte doma za pár minut."},es:{title:"Empanadas congeladas online en Praga | Malá Argenta",description:"Comprá empanadas argentinas congeladas online en Praga â retiro en tienda o delivery. Horneálas en casa en minutos."},en:{title:"Frozen Argentine Empanadas Online | Malá Argenta Prague",description:"Order frozen Argentine empanadas online in Prague â store pickup or delivery. Bake them fresh at home in minutes."}},yerbaMate:{cs:{title:"Yerba mate, matero a bombilla | Malá Argenta Praha",description:"NejvÄtšà výbÄr yerba mate v Praze â mate, bombilly, termosky a pÅÃsluÅ¡enstvÃ. Nákup online i v obchodÄ."},es:{title:"Yerba mate, mates y bombillas en Praga | Malá Argenta",description:"La mayor selección de yerba mate en Praga â mates, bombillas, termos y accesorios. Comprá online o en la tienda."},en:{title:"Yerba Mate, Gourds & Bombillas in Prague | Malá Argenta",description:"The largest yerba mate selection in Prague â mate gourds, bombillas, thermos and accessories. Buy online or in store."}},kiosk:{cs:{title:"Argentinské potraviny v Praze â alfajores, dulce de leche | Malá Argenta",description:"Alfajores, dulce de leche, Arcor, nápoje a argentinské speciality. Argentinský kiosk v Praze â objednávka online."},es:{title:"Almacén argentino en Praga â alfajores y dulce de leche | Malá Argenta",description:"Alfajores, dulce de leche, Arcor, bebidas y productos argentinos. Kiosco argentino en Praga â pedà online."},en:{title:"Argentine Kiosk in Prague â Alfajores & Dulce de Leche | Malá Argenta",description:"Alfajores, dulce de leche, Arcor, drinks and Argentine pantry staples. Argentine kiosk in Prague â order online."}},vino:{cs:{title:"Argentinské vÃno v Praze â Malbec a dalšà | Malá Argenta",description:"Vybraná argentinská vÃna â Malbec, Cabernet a dalÅ¡Ã. Objednejte online v Praze nebo kupte v našà poboÄce."},es:{title:"Vino argentino en Praga â Malbec y más | Malá Argenta",description:"Vinos argentinos seleccionados â Malbec, Cabernet y más. Pedà online en Praga o comprá en nuestras tiendas."},en:{title:"Argentine Wine in Prague â Malbec & More | Malá Argenta",description:"Selected Argentine wines â Malbec, Cabernet and more. Order online in Prague or buy at our stores."}},events:{cs:{title:"Food events a trhy | Malá Argenta",description:"Kde nás potkáte: street food trhy a food festivaly v Praze a po celé Äeské republice. Aktuálnà kalendáŠakcÃ."},es:{title:"Food events y mercados | Malá Argenta",description:"Dónde encontrarnos: mercados de street food y festivales gastronómicos en Praga y toda República Checa."},en:{title:"Food Events & Markets | Malá Argenta",description:"Where to find Malá Argenta empanad
400as: street food markets and food festivals in Prague and across Czechia."}},contact:{cs:{title:"Kontakt a poboÄky v Praze | Malá Argenta",description:"NavÅ¡tivte nás v Praze â Malá Strana (Ãjezd 454/46) a Vinohrady (Korunnà 783/23). OtevÃracà doba, telefon a mapa."},es:{title:"Contacto y locales en Praga | Malá Argenta",description:"Visitanos en Praga â Malá Strana (Ãjezd 454/46) y Vinohrady (Korunnà 783/23). Horarios, teléfono y mapa."},en:{title:"Contact & Stores in Prague | Malá Argenta",description:"Visit us in Prague â Malá Strana (Ãjezd 454/46) and Vinohrady (Korunnà 783/23). Opening hours, phone and map."}},cupones:{cs:{title:"Kupóny a slevy | Malá Argenta Praha",description:"Aktuálnà slevy na mražené empanadas a argentinské produkty. Kupóny pro online objednávky v Praze."},es:{title:"Cupones y descuentos | Malá Argenta Praga",description:"Descuentos vigentes en empanadas congeladas y productos argentinos. Cupones para compras online en Praga."},en:{title:"Coupons & Discounts | Malá Argenta Prague",description:"Current discounts on frozen empanadas and Argentine products. Coupons for online orders in Prague."}},delivery:{cs:{title:"Rozvoz empanadas v Praze â Wolt a Bolt Food | Malá Argenta",description:"Objednejte argentinské empanadas a alfajores s rozvozem po Praze pÅes Wolt nebo Bolt Food."},es:{title:"Delivery de empanadas en Praga â Wolt y Bolt Food | Malá Argenta",description:"Pedà empanadas argentinas y alfajores con delivery en Praga por Wolt o Bolt Food."},en:{title:"Empanada Delivery in Prague â Wolt & Bolt Food | Malá Argenta",description:"Order Argentine empanadas and alfajores for delivery in Prague via Wolt or Bolt Food."}},account:{cs:{title:"Můj úÄet a Malá Argenta Club | Malá Argenta",description:"PÅihlaste se a sledujte svou úroveÅ v Malá Argenta Clubu a osobnà slevový kód."},es:{title:"Mi cuenta y Malá Argenta Club | Malá Argenta",description:"Iniciá sesión para ver tu nivel en Malá Argenta Club y tu código de descuento personal."},en:{title:"My Account & Malá Argenta Club | Malá Argenta",description:"Sign in to see your Malá Argenta Club level and your personal discount code."}}};function kM(e,t){return g0[e][t]??g0[e].en}const EM=`${nE}/og-image.jpg`,_M=({title:e,description:t,path:n,type:r="website",image:s,noindex:i=!1,hreflang:o=!0,jsonLd:a})=>{const{locale:l}=wn(),c=`${nE}${n}`,u=o?`${c}?lang=${l}`:c,d=s||EM,p=a?Array.isArray(a)?a:[a]:[];return b.useEffect(()=>{document.querySelectorAll('head meta[name="description"]:not([data-rh]), head meta[property^="og:"]:not([data-rh]), head meta[name^="twitter:"]:not([data-rh])').forEach(f=>f.remove())},[]),h.jsxs(ej,{children:[h.jsx("html",{lang:l}),h.jsx("title",{children:e}),h.jsx("meta",{name:"description",content:t}),h.jsx("link",{rel:"canonical",href:u}),i?h.jsx("meta",{name:"robots",content:"noindex, nofollow"}):h.jsx("meta",{name:"robots",content:"index, follow, max-image-preview:large, max-snippet:-1"}),o&&!i&&h.jsx("link",{rel:"alternate",hrefLang:"x-default",href:c}),o&&!i&&bM.map(f=>h.jsx("link",{rel:"alternate",hrefLang:f,href:`${c}?lang=${f}`},f)),h.jsx("meta",{property:"og:site_name",content:"Malá Argenta"}),h.jsx("meta",{property:"og:title",content:e}),h.jsx("meta",{property:"og:description",content:t}),h.jsx("meta",{property:"og:url",content:u}),h.jsx("meta",{property:"og:type",content:r}),h.jsx("meta",{property:"og:locale",content:SM[l]}),h.jsx("meta",{property:"og:image",content:d}),h.jsx("meta",{property:"og:image:alt",content:e}),h.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),h.jsx("meta",{name:"twitter:title",content:e}),h.jsx("meta",{name:"twitter:description",content:t}),h.jsx("meta",{name:"twitter:image",content:d}),h.jsx("meta",{name:"twitter:image:alt",content:e}),p.map((f,v)=>h.jsx("script",{type:"application/ld+json",children:JSON.stringify(f)},v))]})},TM=Date.UTC(2026,9,8,20,0,0),Oc={key:"stare-mesto",name:"Staré MÄsto",address:"Rybná 715/26, 110 00 Staré MÄsto",shortAddress:"Rybná 715/26",phone:"+420 777 787 652",hours:{cs:"PoâNe 11â22H",es:"LunâDom 11â22H",en:"MonâSun 11â22H"},mapUrl:"https://www.google.com/maps/search/?api=1&query=Rybn%C3%A1%20715%2F26%2C%20110%2000%20Star%C3%A9%20M%C4%9Bsto%2C%20Praha",emoji:"â²"};function rE(e=Date.now()){return e>=TM}const sE=e=>e==="cs"?"Brzy":e==="es"?"Pronto":"Soon",vg=b.createContext({});function wg(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const iE=typeof window<"u",oE=iE?b.useLayoutEffect:b.useEffect,od=b.createContext(null);function xg(e,t){e.indexOf(t)===-1&&e.push(t)}function xu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Vn=(e,t,n)=>n>t?t:n<e?e:n;let ad=()=>{},go=()=>{};const cr={},aE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function lE(e){return typeof e=="object"&&e!==null}const cE=e=>/^0[^.\s]+$/u.test(e);function bg(e){let t;return()=>(t===void 0&&(t=e()),t)}const qt=e=>e,CM=(e,t)=>n=>t(e(n)),yl=(...e)=>e.reduce(CM),Ba=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Sg{constructor(){this.subscriptions=[]}add(t){return xg(this.subscriptions,t),()=>xu(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Gt=e=>e*1e3,Ht=e=>e/1e3;function uE(e,t){return t?e*(1e3/t):0}const dE=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,PM=1e-7,AM=12;
vendor: 8,345 bytes, line 400
400function jM(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=dE(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>PM&&++a<AM);return o}function vl(e,t,n,r){if(e===t&&n===r)return qt;const s=i=>jM(i,0,1,e,n);return i=>i===0||i===1?i:dE(s(i),t,r)}const hE=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,fE=e=>t=>1-e(1-t),pE=vl(.33,1.53,.69,.99),kg=fE(pE),mE=hE(kg),gE=e=>(e*=2)<1?.5*kg(e):.5*(2-Math.pow(2,-10*(e-1))),Eg=e=>1-Math.sin(Math.acos(e)),yE=fE(Eg),vE=hE(Eg),RM=vl(.42,0,1,1),NM=vl(0,0,.58,1),wE=vl(.42,0,.58,1),OM=e=>Array.isArray(e)&&typeof e[0]!="number",xE=e=>Array.isArray(e)&&typeof e[0]=="number",y0={linear:qt,easeIn:RM,easeInOut:wE,easeOut:NM,circIn:Eg,circInOut:vE,circOut:yE,backIn:kg,backInOut:mE,backOut:pE,anticipate:gE},IM=e=>typeof e=="string",v0=e=>{if(xE(e)){go(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,s]=e;return vl(t,n,r,s)}else if(IM(e))return go(y0[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),y0[e];return e},Xl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],w0={value:null,addProjectionMetrics:null};function MM(e,t){let n=new Set,r=new Set,s=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function c(d){o.has(d)&&(u.schedule(d),e()),l++,d(a)}const u={schedule:(d,p=!1,f=!1)=>{const m=f&&s?n:r;return p&&o.add(d),m.has(d)||m.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,s){i=!0;return}s=!0,[n,r]=[r,n],n.forEach(c),t&&w0.value&&w0.value.frameloop[t].push(l),l=0,n.clear(),s=!1,i&&(i=!1,u.process(d))}};return u}const LM=40;function bE(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Xl.reduce((x,S)=>(x[S]=MM(i,t?S:void 0),x),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:p,render:f,postRender:v}=o,m=()=>{const x=cr.useManualTiming?s.timestamp:performance.now();n=!1,cr.useManualTiming||(s.delta=r?1e3/60:Math.max(Math.min(x-s.timestamp,LM),1)),s.timestamp=x,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),p.process(s),f.process(s),v.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(m))},w=()=>{n=!0,r=!0,s.isProcessing||e(m)};return{schedule:Xl.reduce((x,S)=>{const E=o[S];return x[S]=(k,_=!1,C=!1)=>(n||w(),E.schedule(k,_,C)),x},{}),cancel:x=>{for(let S=0;S<Xl.length;S++)o[Xl[S]].cancel(x)},state:s,steps:o}}const{schedule:me,cancel:ts,state:Ye,steps:lh}=bE(typeof requestAnimationFrame<"u"?requestAnimationFrame:qt,!0);let Ic;function DM(){Ic=void 0}const ct={now:()=>(Ic===void 0&&ct.set(Ye.isProcessing||cr.useManualTiming?Ye.timestamp:performance.now()),Ic),set:e=>{Ic=e,queueMicrotask(DM)}},SE=e=>t=>typeof t=="string"&&t.startsWith(e),kE=SE("--"),$M=SE("var(--"),_g=e=>$M(e)?FM.test(e.split("/*")[0].trim()):!1,FM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function x0(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Co={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Wa={...Co,transform:e=>Vn(0,1,e)},Zl={...Co,default:1},ha=e=>Math.round(e*1e5)/1e5,Tg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function VM(e){return e==null}const UM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Cg=(e,t)=>n=>!!(typeof n=="string"&&UM.test(n)&&n.startsWith(e)||t&&!VM(n)&&Object.prototype.hasOwnProperty.call(n,t)),EE=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(Tg);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},zM=e=>Vn(0,255,e),ch={...Co,transform:e=>Math.round(zM(e))},Es={test:Cg("rgb","red"),parse:EE("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ch.transform(e)+", "+ch.transform(t)+", "+ch.transform(n)+", "+ha(Wa.transform(r))+")"};function BM(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const mp={test:Cg("#"),parse:BM,transform:Es.transform},wl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),wr=wl("deg"),Ln=wl("%"),U=wl("px"),WM=wl("vh"),HM=wl("vw"),b0={...Ln,parse:e=>Ln.parse(e)/100,transform:e=>Ln.transform(e*100)},Ai={test:Cg("hsl","hue"),parse:EE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ln.transform(ha(t))+", "+Ln.transform(ha(n))+", "+ha(Wa.transform(r))+")"},Ie={test:e=>Es.test(e)||mp.test(e)||Ai.test(e),parse:e=>Es.test(e)?Es.parse(e):Ai.test(e)?Ai.parse(e):mp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Es.transform(e):Ai.transform(e),getAnimatableNone:e=>{const t=Ie.parse(e);return t.alpha=0,Ie.transform(t)}},KM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function qM(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Tg))==null?void 0:t.length)||0)+(((n=e.match(KM))==null?void 0:n.length)||0)>0}const _E="number",TE="color",GM="var",YM="var(",S0="${}",QM=/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 Ha(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(QM,l=>(Ie.test(l)?(r.color.push(i),s.push(TE),n.push(Ie.parse(l))):l.startsWith(YM)?(r.var.push(i),s.push(GM),n.push(l)):(r.number.push(i),s.push(_E),n.push(parseFloat(l))),++i,S0)).split(S0);return{values:n,split:a,indexes:r,types:s}}function CE(e){return Ha(e).values}function PE(e){const{split:t,types:n}=Ha(e),r=t.length;return s=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],s[o]!==void 0){const a=n[o];a===_E?i+=ha(s[o]):a===TE?i+=Ie.transform(s[o]):i+=s[o]}return i}}const JM=e=>typeof e=="number"?0:Ie.test(e)?Ie.getAnimatableNone(e):e;function XM(e){const t=CE(e);return PE(e)(t.map(JM))}const ns={test:qM,parse:CE,createTransformer:PE,getAnimatableNone:XM};function uh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ZM({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=uh(l,a,e+1/3),i=uh(l,a,e),o=uh(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function bu(e,t){return n=>n>0?t:e}const Ee=(e,t,n)=>e+(t-e)*n,dh=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},eL=[mp,Es,Ai],tL=e=>eL.find(t=>t.test(e));function k0(e){const t=tL(e);if(ad(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Ai&&(n=ZM(n)),n}const E0=(e,t)=>{const n=k0(e),r=k0(t);if(!n||!r)return bu(e,t);const s={...n};return i=>(s.red=dh(n.red,r.red,i),s.green=dh(n.green,r.green,i),s.blue=dh(n.blue,r.blue,i),s.alpha=Ee(n.alpha,r.alpha,i),Es.transform(s))},gp=new Set(["none","hidden"]);function nL(e,t){return gp.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function rL(e,t){return n=>Ee(e,t,n)}function Pg(e){return typeof e=="number"?rL:typeof e=="string"?_g(e)?bu:Ie.test(e)?E0:oL:Array.isArray(e)?AE:typeof e=="object"?Ie.test(e)?E0:sL:bu}function AE(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Pg(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function sL(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Pg(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function iL(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],o=e.indexes[i][r[i]],a=e.values[o]??0;n[s]=a,r[i]++}return n}const oL=(e,t)=>{const n=ns.createTransformer(t),r=Ha(e),s=Ha(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?gp.has(e)&&!s.values.length||gp.has(t)&&!r.values.length?nL(e,t):yl(AE(iL(r,s),s.values),n):(ad(!0,`Complex values '${e}' and '${t}
400' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),bu(e,t))};function jE(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ee(e,t,n):Pg(e)(e,t)}const aL=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>me.update(t,n),stop:()=>ts(t),now:()=>Ye.isProcessing?Ye.timestamp:ct.now()}},RE=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Su=2e4;function Ag(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Su;)t+=n,r=e.next(t);return t>=Su?1/0:t}function lL(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(Ag(r),Su);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:Ht(s)}}const cL=5;function NE(e,t,n){const r=Math.max(t-cL,0);return uE(n-e(r),t-r)}const Se={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},hh=.001;function uL({duration:e=Se.duration,bounce:t=Se.bounce,velocity:n=Se.velocity,mass:r=Se.mass}){let s,i;ad(e<=Gt(Se.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=Vn(Se.minDamping,Se.maxDamping,o),e=Vn(Se.minDuration,Se.maxDuration,Ht(e)),o<1?(s=c=>{const u=c*o,d=u*e,p=u-n,f=yp(c,o),v=Math.exp(-d);return hh-p/f*v},i=c=>{const d=c*o*e,p=d*n+n,f=Math.pow(o,2)*Math.pow(c,2)*e,v=Math.exp(-d),m=yp(Math.pow(c,2),o);return(-s(c)+hh>0?-1:1)*((p-f)*v)/m}):(s=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-hh+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=hL(s,i,a);if(e=Gt(e),isNaN(l))return{stiffness:Se.stiffness,damping:Se.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const dL=12;function hL(e,t,n){let r=n;for(let s=1;s<dL;s++)r=r-e(r)/t(r);return r}function yp(e,t){return e*Math.sqrt(1-t*t)}const fL=["duration","bounce"],pL=["stiffness","damping","mass"];function _0(e,t){return t.some(n=>e[n]!==void 0)}function mL(e){let t={velocity:Se.velocity,stiffness:Se.stiffness,damping:Se.damping,mass:Se.mass,isResolvedFromDuration:!1,...e};if(!_0(e,pL)&&_0(e,fL))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Vn(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:Se.mass,stiffness:s,damping:i}}else{const n=uL(e);t={...t,...n,mass:Se.mass},t.isResolvedFromDuration=!0}return t}function ku(e=Se.visualDuration,t=Se.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:p,isResolvedFromDuration:f}=mL({...n,velocity:-Ht(n.velocity||0)}),v=p||0,m=c/(2*Math.sqrt(l*u)),w=o-i,g=Ht(Math.sqrt(l/u)),y=Math.abs(w)<5;r||(r=y?Se.restSpeed.granular:Se.restSpeed.default),s||(s=y?Se.restDelta.granular:Se.restDelta.default);let x;if(m<1){const E=yp(g,m);x=k=>{const _=Math.exp(-m*g*k);return o-_*((v+m*g*w)/E*Math.sin(E*k)+w*Math.cos(E*k))}}else if(m===1)x=E=>o-Math.exp(-g*E)*(w+(v+g*w)*E);else{const E=g*Math.sqrt(m*m-1);x=k=>{const _=Math.exp(-m*g*k),C=Math.min(E*k,300);return o-_*((v+m*g*w)*Math.sinh(C)+E*w*Math.cosh(C))/E}}const S={calculatedDuration:f&&d||null,next:E=>{const k=x(E);if(f)a.done=E>=d;else{let _=E===0?v:0;m<1&&(_=E===0?Gt(v):NE(x,E,k));const C=Math.abs(_)<=r,P=Math.abs(o-k)<=s;a.done=C&&P}return a.value=a.done?o:k,a},toString:()=>{const E=Math.min(Ag(S),Su),k=RE(_=>S.next(E*_).value,E,30);return E+"ms "+k},toTransition:()=>{}};return S}ku.applyToOptions=e=>{const t=lL(e,100,ku);return e.ease=t.ease,e.duration=Gt(t.duration),e.type="keyframes",e};function vp({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},f=C=>a!==void 0&&C<a||l!==void 0&&C>l,v=C=>a===void 0?l:l===void 0||Math.abs(a-C)<Math.abs(l-C)?a:l;let m=n*t;const w=d+m,g=o===void 0?w:o(w);g!==w&&(m=g-d);const y=C=>-m*Math.exp(-C/r),x=C=>g+y(C),S=C=>{const P=y(C),j=x(C);p.done=Math.abs(P)<=c,p.value=p.done?g:j};let E,k;const _=C=>{f(p.value)&&(E=C,k=ku({keyframes:[p.value,v(p.value)],velocity:NE(x,C,p.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return _(0),{calculatedDuration:null,next:C=>{let P=!1;return!k&&E===void 0&&(P=!0,S(C),_(C)),E!==void 0&&C>=E?k.next(C-E):(!P&&S(C),p)}}}function gL(e,t,n){const r=[],s=n||cr.mix||jE,i=e.length-1;for(let o=0;o<i;o++){let a=s(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||qt:t;a=yl(l,a)}r.push(a)}return r}function yL(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(go(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=gL(t,r,s),l=a.length,c=u=>{if(o&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const p=Ba(e[d],e[d+1],u);return a[d](p)};return n?u=>c(Vn(e[0],e[i-1],u)):c}function vL(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Ba(0,t,r);e.push(Ee(n,1,s))}}function wL(e){const t=[0];return vL(t,e.length-1),t}function xL(e,t){return e.map(n=>n*t)}function bL(e,t){return e.map(()=>t||wE).splice(0,e.length-1)}function fa({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=OM(r)?r.map(v0):v0(r),i={done:!1,value:t[0]},o=xL(n&&n.length===t.length?n:wL(t),e),a=yL(o,t,{ease:Array.isArray(s)?s:bL(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const SL=e=>e!==null;function jg(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(SL),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const kL={decay:vp,inertia:vp,tween:fa,keyframes:fa,spring:ku};function OE(e){typeof e.type=="string"&&(e.type=kL[e.type])}class Rg{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const EL=e=>e/100;class Ng extends Rg{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==ct.now()&&this.tick(ct.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;OE(t);const{type:n=fa,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const l=n||fa;l!==fa&&typeof a[0]!="number"&&(this.mixKeyframes=yl(EL,jE(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Ag(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:p,repeatDelay:f,type:v,onUpdate:m,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>s;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let x=this.currentTime,S=r;if(d){const C=Math.min(this.currentTime,s)/a;let P=Math.floor(C),j=C%1;!j&&C>=1&&(j=1),j===1&&P--,P=Math.min(P,d+1),!!(P%2)&&(p==="reverse"?(j=1-j,f&&(j-=f/a)):p==="mirror"&&(S=o)),x=Vn(0,1,j)*a}const E=y?{done:!1,value:u[0]}:S.next(x);i&&(E.value=i(E.value));let{done:k}=E;!y&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return _&&v!==vp&&(E.value=jg(u,this.options,w,this.speed)),m&&m(E.value),_&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return Ht(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ht(t)}get time(){return Ht(this.currentTime)}set time(t){var n;t=Gt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ct.now());const n=this.playbackSpeed!==t;
vendor: 10,457 bytes, line 400
400this.playbackSpeed=t,n&&(this.time=Ht(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=aL,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ct.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function _L(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const _s=e=>e*180/Math.PI,wp=e=>{const t=_s(Math.atan2(e[1],e[0]));return xp(t)},TL={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:wp,rotateZ:wp,skewX:e=>_s(Math.atan(e[1])),skewY:e=>_s(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},xp=e=>(e=e%360,e<0&&(e+=360),e),T0=wp,C0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),P0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),CL={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:C0,scaleY:P0,scale:e=>(C0(e)+P0(e))/2,rotateX:e=>xp(_s(Math.atan2(e[6],e[5]))),rotateY:e=>xp(_s(Math.atan2(-e[2],e[0]))),rotateZ:T0,rotate:T0,skewX:e=>_s(Math.atan(e[4])),skewY:e=>_s(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function bp(e){return e.includes("scale")?1:0}function Sp(e,t){if(!e||e==="none")return bp(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=CL,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=TL,s=a}if(!s)return bp(t);const i=r[t],o=s[1].split(",").map(AL);return typeof i=="function"?i(o):o[i]}const PL=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Sp(n,t)};function AL(e){return parseFloat(e.trim())}const Po=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ao=new Set(Po),A0=e=>e===Co||e===U,jL=new Set(["x","y","z"]),RL=Po.filter(e=>!jL.has(e));function NL(e){const t=[];return RL.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Vr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Sp(t,"x"),y:(e,{transform:t})=>Sp(t,"y")};Vr.translateX=Vr.x;Vr.translateY=Vr.y;const Fs=new Set;let kp=!1,Ep=!1,_p=!1;function IE(){if(Ep){const e=Array.from(Fs).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=NL(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ep=!1,kp=!1,Fs.forEach(e=>e.complete(_p)),Fs.clear()}function ME(){Fs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ep=!0)})}function OL(){_p=!0,ME(),IE(),_p=!1}class Og{constructor(t,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Fs.add(this),kp||(kp=!0,me.read(ME),me.resolveKeyframes(IE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),s&&i===void 0&&s.set(t[0])}_L(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Fs.delete(this)}cancel(){this.state==="scheduled"&&(Fs.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const IL=e=>e.startsWith("--");function ML(e,t,n){IL(t)?e.style.setProperty(t,n):e.style[t]=n}const LL=bg(()=>window.ScrollTimeline!==void 0),DL={};function $L(e,t){const n=bg(e);return()=>DL[t]??n()}const LE=$L(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ea=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,j0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ea([0,.65,.55,1]),circOut:ea([.55,0,1,.45]),backIn:ea([.31,.01,.66,-.59]),backOut:ea([.33,1.53,.69,.99])};function DE(e,t){if(e)return typeof e=="function"?LE()?RE(e,t):"ease-out":xE(e)?ea(e):Array.isArray(e)?e.map(n=>DE(n,t)||j0.easeOut):j0[e]}function FL(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=DE(a,s);Array.isArray(d)&&(u.easing=d);const p={delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return c&&(p.pseudoElement=c),e.animate(u,p)}function $E(e){return typeof e=="function"&&"applyToOptions"in e}function VL({type:e,...t}){return $E(e)&&LE()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class FE extends Rg{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,go(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=VL(t);this.animation=FL(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=jg(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):ML(n,r,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Ht(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ht(t)}get time(){return Ht(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Gt(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&LL()?(this.animation.timeline=t,qt):n(this)}}const VE={anticipate:gE,backInOut:mE,circInOut:vE};function UL(e){return e in VE}function zL(e){typeof e.ease=="string"&&UL(e.ease)&&(e.ease=VE[e.ease])}const fh=10;class BL extends FE{constructor(t){zL(t),OE(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Ng({...o,autoplay:!1}),l=Math.max(fh,ct.now()-this.startTime),c=Vn(0,fh,l-fh);n.setWithVelocity(a.sample(Math.max(0,l-c)).value,a.sample(l).value,c),a.stop()}}const R0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ns.test(e)||e==="0")&&!e.startsWith("url("));function WL(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function HL(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=R0(s,t),a=R0(i,t);return ad(o===a,`You are trying to animate ${t} from "${s}" to "${i}". "${o?i:s}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:WL(e)||(n==="spring"||$E(n))&&r}function Tp(e){e.duration=0,e.type="keyframes"}const KL=new Set(["opacity","clipPath","filter","transform"]),qL=bg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function GL(e){var u;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:o}=e;if(!(((u=t==null?void 0:t.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return qL()&&n&&KL.has(n)&&(n!=="transform"||!c)&&!l&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const YL=40;class QL extends Rg{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:
400o="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){var v;super(),this.stop=()=>{var m,w;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=ct.now();const p={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:l,motionValue:c,element:u,...d},f=(u==null?void 0:u.KeyframeResolver)||Og;this.keyframeResolver=new f(a,(m,w,g)=>this.onKeyframesResolved(m,w,p,!g),l,c,u),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,n,r,s){var w,g;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=ct.now(),HL(t,i,o,a)||((cr.instantAnimations||!l)&&(u==null||u(jg(t,r,n))),t[0]=t[t.length-1],Tp(r),r.repeat=0);const p={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>YL?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},f=!c&&GL(p),v=(g=(w=p.motionValue)==null?void 0:w.owner)==null?void 0:g.current,m=f?new BL({...p,element:v}):new Ng(p);m.finished.then(()=>{this.notifyFinished()}).catch(qt),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),OL()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function UE(e,t,n,r=0,s=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(i,o):s===1?i*r:a-i*r}const JL=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function XL(e){const t=JL.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const ZL=4;function zE(e,t,n=1){go(n<=ZL,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,s]=XL(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return aE(o)?parseFloat(o):o}return _g(s)?zE(s,t,n+1):s}const eD={type:"spring",stiffness:500,damping:25,restSpeed:10},tD=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),nD={type:"keyframes",duration:.8},rD={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sD=(e,{keyframes:t})=>t.length>2?nD:Ao.has(e)?e.startsWith("scale")?tD(t[1]):eD:rD,iD=e=>e!==null;function oD(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(iD),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}function BE(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Ig(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?BE(n,e):n}function aD({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Mg=(e,t,n,r={},s,i)=>o=>{const a=Ig(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Gt(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:p=>{t.set(p),a.onUpdate&&a.onUpdate(p)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};aD(a)||Object.assign(u,sD(e,u)),u.duration&&(u.duration=Gt(u.duration)),u.repeatDelay&&(u.repeatDelay=Gt(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Tp(u),u.delay===0&&(
vendor: 6,046 bytes, line 400
400d=!0)),(cr.instantAnimations||cr.skipAnimations||s!=null&&s.shouldSkipAnimations)&&(d=!0,Tp(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const p=oD(u.keyframes,a);if(p!==void 0){me.update(()=>{u.onUpdate(p),u.onComplete()});return}}return a.isSync?new Ng(u):new QL(u)};function N0(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Lg(e,t,n,r){if(typeof t=="function"){const[s,i]=N0(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=N0(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function Hi(e,t,n){const r=e.getProps();return Lg(r,t,n!==void 0?n:r.custom,e)}const WE=new Set(["width","height","top","left","right","bottom",...Po]),O0=30,lD=e=>!isNaN(parseFloat(e));class cD{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=ct.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ct.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=lD(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Sg);const r=this.events[t].add(n);return t==="change"?()=>{r(),me.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ct.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>O0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,O0);return uE(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yo(e,t){return new cD(e,t)}const Cp=e=>Array.isArray(e);function uD(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yo(n))}function dD(e){return Cp(e)?e[e.length-1]||0:e}function hD(e,t){const n=Hi(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=dD(i[o]);uD(e,o,a)}}const st=e=>!!(e&&e.getVelocity);function fD(e){return!!(st(e)&&e.add)}function Pp(e,t){const n=e.getValue("willChange");if(fD(n))return n.add(t);if(!n&&cr.WillChange){const r=new cr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Dg(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const pD="framerAppearId",HE="data-"+Dg(pD);function KE(e){return e.props[HE]}function mD({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function qE(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();i=i?BE(i,l):l;const c=i==null?void 0:i.reduceMotion;r&&(i=r);const u=[],d=s&&e.animationState&&e.animationState.getState()[s];for(const p in a){const f=e.getValue(p,e.latestValues[p]??null),v=a[p];if(v===void 0||d&&mD(d,p))continue;const m={delay:n,...Ig(i||{},p)},w=f.get();if(w!==void 0&&!f.isAnimating&&!Array.isArray(v)&&v===w&&!m.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const S=KE(e);if(S){const E=window.MotionHandoffAnimation(S,p,me);E!==null&&(m.startTime=E,g=!0)}}Pp(e,p);const y=c??e.shouldReduceMotion;f.start(Mg(p,f,v,y&&WE.has(p)?{type:!1}:m,e,g));const x=f.animation;x&&u.push(x)}if(o){const p=()=>me.update(()=>{o&&hD(e,o)});u.length?Promise.all(u).then(p):p()}return u}function Ap(e,t,n={}){var l;const r=Hi(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(qE(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:p}=s;return gD(e,t,c,u,d,p,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,u]=a==="beforeChildren"?[i,o]:[o,i];return c().then(()=>u())}else return Promise.all([i(),o(n.delay)])}function gD(e,t,n=0,r=0,s=0,i=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Ap(l,t,{...o,delay:n+(typeof r=="function"?0:r)+UE(e.variantChildren,l,r,s,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function yD(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>Ap(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=Ap(e,t,n);else{const s=typeof t=="function"?Hi(e,t,n.custom):t;r=Promise.all(qE(e,s,n))}return r.then(()=>
vendor: 3,759 bytes, line 400
400{e.notify("AnimationComplete",t)})}const vD={test:e=>e==="auto",parse:e=>e},GE=e=>t=>t.test(e),YE=[Co,U,Ln,wr,HM,WM,vD],I0=e=>YE.find(GE(e));function wD(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||cE(e):!0}const xD=new Set(["brightness","contrast","saturate","opacity"]);function bD(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Tg)||[];if(!r)return e;const s=n.replace(r,"");let i=xD.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const SD=/\b([a-z-]*)\(.*?\)/gu,jp={...ns,getAnimatableNone:e=>{const t=e.match(SD);return t?t.map(bD).join(" "):e}},M0={...Co,transform:Math.round},kD={rotate:wr,rotateX:wr,rotateY:wr,rotateZ:wr,scale:Zl,scaleX:Zl,scaleY:Zl,scaleZ:Zl,skew:wr,skewX:wr,skewY:wr,distance:U,translateX:U,translateY:U,translateZ:U,x:U,y:U,z:U,perspective:U,transformPerspective:U,opacity:Wa,originX:b0,originY:b0,originZ:U},$g={borderWidth:U,borderTopWidth:U,borderRightWidth:U,borderBottomWidth:U,borderLeftWidth:U,borderRadius:U,borderTopLeftRadius:U,borderTopRightRadius:U,borderBottomRightRadius:U,borderBottomLeftRadius:U,width:U,maxWidth:U,height:U,maxHeight:U,top:U,right:U,bottom:U,left:U,inset:U,insetBlock:U,insetBlockStart:U,insetBlockEnd:U,insetInline:U,insetInlineStart:U,insetInlineEnd:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,paddingBlock:U,paddingBlockStart:U,paddingBlockEnd:U,paddingInline:U,paddingInlineStart:U,paddingInlineEnd:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,marginBlock:U,marginBlockStart:U,marginBlockEnd:U,marginInline:U,marginInlineStart:U,marginInlineEnd:U,fontSize:U,backgroundPositionX:U,backgroundPositionY:U,...kD,zIndex:M0,fillOpacity:Wa,strokeOpacity:Wa,numOctaves:M0},ED={...$g,color:Ie,backgroundColor:Ie,outlineColor:Ie,fill:Ie,stroke:Ie,borderColor:Ie,borderTopColor:Ie,borderRightColor:Ie,borderBottomColor:Ie,borderLeftColor:Ie,filter:jp,WebkitFilter:jp},QE=e=>ED[e];function JE(e,t){let n=QE(e);return n!==jp&&(n=ns),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const _D=new Set(["auto","none","0"]);function TD(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!_D.has(i)&&Ha(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=JE(n,s)}class CD extends Og{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),_g(d))){const p=zE(d,n.current);p!==void 0&&(t[u]=p),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!WE.has(r)||t.length!==2)return;const[s,i]=t,o=I0(s),a=I0(i),l=x0(s),c=x0(i);if(l!==c&&Vr[r]){this.needsMeasurement=!0;return}if(o!==a)if(A0(o)&&A0(a))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else Vr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||wD(t[s]))&&r.push(s);r.length&&TD(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Vr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=Vr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEac
vendor: 10,874 bytes, line 400
400h(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const PD=new Set(["opacity","clipPath","filter","transform"]);function XE(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const s=document.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const ZE=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Rp(e){return lE(e)&&"offsetHeight"in e}const{schedule:Fg,cancel:wz}=bE(queueMicrotask,!1),sn={x:!1,y:!1};function e_(){return sn.x||sn.y}function AD(e){return e==="x"||e==="y"?sn[e]?null:(sn[e]=!0,()=>{sn[e]=!1}):sn.x||sn.y?null:(sn.x=sn.y=!0,()=>{sn.x=sn.y=!1})}function t_(e,t){const n=XE(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function jD(e){return!(e.pointerType==="touch"||e_())}function RD(e,t,n={}){const[r,s,i]=t_(e,n);return r.forEach(o=>{let a=!1,l=!1,c;const u=()=>{o.removeEventListener("pointerleave",v)},d=w=>{c&&(c(w),c=void 0),u()},p=w=>{a=!1,window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",p),l&&(l=!1,d(w))},f=()=>{a=!0,window.addEventListener("pointerup",p,s),window.addEventListener("pointercancel",p,s)},v=w=>{if(w.pointerType!=="touch"){if(a){l=!0;return}d(w)}},m=w=>{if(!jD(w))return;l=!1;const g=t(o,w);typeof g=="function"&&(c=g,o.addEventListener("pointerleave",v,s))};o.addEventListener("pointerenter",m,s),o.addEventListener("pointerdown",f,s)}),i}const n_=(e,t)=>t?e===t?!0:n_(e,t.parentElement):!1,Vg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,ND=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function OD(e){return ND.has(e.tagName)||e.isContentEditable===!0}const ID=new Set(["INPUT","SELECT","TEXTAREA"]);function MD(e){return ID.has(e.tagName)||e.isContentEditable===!0}const Mc=new WeakSet;function L0(e){return t=>{t.key==="Enter"&&e(t)}}function ph(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const LD=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=L0(()=>{if(Mc.has(n))return;ph(n,"down");const s=L0(()=>{ph(n,"up")}),i=()=>ph(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function D0(e){return Vg(e)&&!e_()}const $0=new WeakSet;function DD(e,t,n={}){const[r,s,i]=t_(e,n),o=a=>{const l=a.currentTarget;if(!D0(a)||$0.has(a))return;Mc.add(l),n.stopPropagation&&$0.add(a);const c=t(l,a),u=(f,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",p),Mc.has(l)&&Mc.delete(l),D0(f)&&typeof c=="function"&&c(f,{success:v})},d=f=>{u(f,l===window||l===document||n.useGlobalTarget||n_(l,f.target))},p=f=>{u(f,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",p,s)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),Rp(a)&&(a.addEventListener("focus",c=>LD(c,s)),!OD(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Ug(e){return lE(e)&&"ownerSVGElement"in e}const Lc=new WeakMap;let xr;const r_=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:Ug(r)&&"getBBox"in r?r.getBBox()[t]:r[n],$D=r_("inline","width","offsetWidth"),FD=r_("block","height","offsetHeight");function VD({target:e,borderBoxSize:t}){var n;(n=Lc.get(e))==null||n.forEach(r=>{r(e,{get width(){return $D(e,t)},get height(){return FD(e,t)}})})}function UD(e){e.forEach(VD)}function zD(){typeof ResizeObserver>"u"||(xr=new ResizeObserver(UD))}function BD(e,t){xr||zD();const n=XE(e);return n.forEach(r=>{let s=Lc.get(r);s||(s=new Set,Lc.set(r,s)),s.add(t),xr==null||xr.observe(r)}),()=>{n.forEach(r=>{const s=Lc.get(r);s==null||s.delete(t),s!=null&&s.size||xr==null||xr.unobserve(r)})}}const Dc=new Set;let ji;function WD(){ji=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Dc.forEach(t=>t(e))},window.addEventListener("resize",ji)}function HD(e){return Dc.add(e),ji||WD(),()=>{Dc.delete(e),!Dc.size&&typeof ji=="function"&&(window.removeEventListener("resize",ji),ji=void 0)}}function F0(e,t){return typeof e=="function"?HD(e):BD(e,t)}function KD(e){return Ug(e)&&e.tagName==="svg"}const qD=[...YE,Ie,ns],GD=e=>qD.find(GE(e)),V0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ri=()=>({x:V0(),y:V0()}),U0=()=>({min:0,max:0}),Fe=()=>({x:U0(),y:U0()}),YD=new WeakMap;function ld(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ka(e){return typeof e=="string"||Array.isArray(e)}const zg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Bg=["initial",...zg];function cd(e){return ld(e.animate)||Bg.some(t=>Ka(e[t]))}function s_(e){return!!(cd(e)||e.variants)}function QD(e,t,n){for(const r in t){const s=t[r],i=n[r];if(st(s))e.addValue(r,s);else if(st(i))e.addValue(r,yo(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,yo(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Np={current:null},i_={current:!1},JD=typeof window<"u";function XD(){if(i_.current=!0,!!JD)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Np.current=e.matches;e.addEventListener("change",t),t()}else Np.current=!1}const z0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Eu={};function o_(e){Eu=e}function ZD(){return Eu}class e${scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Og,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=ct.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,me.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=cd(n),this.isVariantNode=s_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in p){const v=p[f];c[f]!==void 0&&st(v)&&v.set(c[f])}}mount(t){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,YD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(i_.current||XD(),this.shouldReduceMotion=Np.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),ts(this.notifyUpdate),ts(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&PD.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,d=new FE({element:this.current,name:t,keyframes:a,times:l,ease:c,duration:Gt(u)}),p=o(d);this.valueSubscriptions.set(t,()=>{p(),d.cancel()});return}const r=Ao.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&me.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Eu){const n=Eu[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Fe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<z0.length;r++){const s=z0[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=QD(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
vendor: 15,351 bytes, line 400
400addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=yo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(aE(r)||cE(r))?r=parseFloat(r):!GD(r)&&ns.test(n)&&(r=JE(t,n)),this.setBaseTarget(t,st(r)?r.get():r)),st(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Lg(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!st(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Sg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Fg.render(this.render)}}class a_ extends e${constructor(){super(...arguments),this.KeyframeResolver=CD}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;st(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class ls{constructor(t){this.isMounted=!1,this.node=t}update(){}}function l_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function t$({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function n$(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function mh(e){return e===void 0||e===1}function Op({scale:e,scaleX:t,scaleY:n}){return!mh(e)||!mh(t)||!mh(n)}function ys(e){return Op(e)||c_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function c_(e){return B0(e.x)||B0(e.y)}function B0(e){return e&&e!=="0%"}function _u(e,t,n){const r=e-n,s=t*r;return n+s}function W0(e,t,n,r,s){return s!==void 0&&(e=_u(e,s,r)),_u(e,n,r)+t}function Ip(e,t=0,n=1,r,s){e.min=W0(e.min,t,n,r,s),e.max=W0(e.max,t,n,r,s)}function u_(e,{x:t,y:n}){Ip(e.x,t.translate,t.scale,t.originPoint),Ip(e.y,n.translate,n.scale,n.originPoint)}const H0=.999999999999,K0=1.0000000000001;function r$(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let a=0;a<s;a++){i=n[a],o=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Oi(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,u_(e,o)),r&&ys(i.latestValues)&&Oi(e,i.latestValues))}t.x<K0&&t.x>H0&&(t.x=1),t.y<K0&&t.y>H0&&(t.y=1)}function Ni(e,t){e.min=e.min+t,e.max=e.max+t}function q0(e,t,n,r,s=.5){const i=Ee(e.min,e.max,s);Ip(e,t,n,i,r)}function Oi(e,t){q0(e.x,t.x,t.scaleX,t.scale,t.originX),q0(e.y,t.y,t.scaleY,t.scale,t.originY)}function d_(e,t){return l_(n$(e.getBoundingClientRect(),t))}function s$(e,t,n){const r=d_(e,n),{scroll:s}=t;return s&&(Ni(r.x,s.offset.x),Ni(r.y,s.offset.y)),r}const i$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},o$=Po.length;function a$(e,t,n){let r="",s=!0;for(let i=0;i<o$;i++){const o=Po[i],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(o.startsWith("scale")?1:0);else{const c=parseFloat(a);l=o.startsWith("scale")?c===1:c===0}if(!l||n){const c=ZE(a,$g[o]);if(!l){s=!1;const u=i$[o]||o;r+=`${u}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Wg(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(Ao.has(l)){o=!0;continue}else if(kE(l)){s[l]=c;continue}else{const u=ZE(c,$g[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(o||n?r.transform=a$(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}function h_(e,{style:t,vars:n},r,s){const i=e.style;let o;for(o in t)i[o]=t[o];s==null||s.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function G0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ko={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(U.test(e))e=parseFloat(e);else return e;const n=G0(e,t.target.x),r=G0(e,t.target.y);return`${n}% ${r}%`}},l$={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=ns.parse(e);if(s.length>5)return r;const i=ns.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const c=Ee(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},Mp={borderRadius:{...Ko,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ko,borderTopRightRadius:Ko,borderBottomLeftRadius:Ko,borderBottomRightRadius:Ko,boxShadow:l$};function f_(e,{layout:t,layoutId:n}){return Ao.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Mp[e]||e==="opacity")}function Hg(e,t,n){var o;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const a in r)(st(r[a])||s&&st(s[a])||f_(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function c$(e){return window.getComputedStyle(e)}class u$ extends a_{constructor(){super(...arguments),this.type="html",this.renderInstance=h_}readValueFromInstance(t,n){var r;if(Ao.has(n))return(r=this.projection)!=null&&r.isProjecting?bp(n):PL(t,n);{const s=c$(t),i=(kE(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return d_(t,n)}build(t,n,r){Wg(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Hg(t,n,r)}}const d$={offset:"stroke-dashoffset",array:"stroke-dasharray"},h$={offset:"strokeDashoffset",array:"strokeDasharray"};function f$(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?d$:h$;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const p$=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function p_(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},l,c,u){if(Wg(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox);for(const f of p$)d[f]!==void 0&&(p[f]=d[f],delete d[f]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&f$(d,s,i,o,!1)}const m_=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"]),g_=e=>typeof e=="string"&&e.toLowerCase()==="svg";function m$(e,t,n,r){h_(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(m_.has(s)?s:Dg(s),t.attrs[s])}function y_(e,t,n){const r=Hg(e,t,n);for(const s in e)if(st(e[s])||st(t[s])){const i=Po.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class g$ extends a_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Fe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ao.has(n)){const r=QE(n);return r&&r.default||0}return n=m_.has(n)?n:Dg(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return y_(t,n,r)}build(t,n,r){p_(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){m$(t,n,r,s)}mount(t){this.isSVGTag=g_(t.tagName),super.mount(t)}}const y$=Bg.length;function v_(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?v_(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<y$;n++){const r=Bg[n],s=e.props[r];(Ka(s)||s===!1)&&(t[r]=s)}return t}function w_(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const v$=[...zg].reverse(),w$=zg.length;function x$(e){return t=>Promise.all(t.map(({animation:n,options:r})=>yD(e,n,r)))}function b$(e){let t=x$(e),n=Y0(),r=!0;const s=l=>(c,u)=>{var p;const d=Hi(e,u,l==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(d){const{transition:f,transitionEnd:v,...m}=d;c={...c,...m,...v}}return c};function i(l){t=l(e)}function o(l){const{props:c}=e,u=v_(e.parent)||{},d=[],p=new Set;let f={},v=1/0;for(let w=0;w<w$;w++){const g=v$[w],y=n[g],x=c[g]!==void 0?c[g]:u[g],S=Ka(x),E=g===l?y.isActive:null;E===!1&&(v=w);let k=x===u[g]&&x!==c[g]&&S;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),y.protectedKeys={...f},!y.isActive&&E===null||!x&&!y.prevProp||ld(x)||typeof x=="boolean")continue;if(g==="exit"&&y.isActive&&E!==!0){y.prevResolvedValues&&(f={...f,...y.prevResolvedValues});continue}const _=S$(y.prevProp,x);let C=_||g===l&&y.isActive&&!k&&S||w>v&&S,P=!1;const j=Array.isArray(x)?x:[x];let D=j.reduce(s(g),{});E===!1&&(D={});const{prevResolvedValues:O={}}=y,z={...O,...D},M=$=>{C=!0,p.has($)&&(P=!0,p.delete($)),y.needsAnimating[$]=!0;const A=e.getValue($);A&&(A.liveStyle=!1)};for(const $ in z){const A=D[$],R=O[$];if(f.hasOwnProperty($))continue;let L=!1;Cp(A)&&Cp(R)?L=!w_(A,R):L=A!==R,L?A!=null?M($):p.add($):A!==void 0&&p.has($)?M($):y.protectedKeys[$]=!0}y.prevProp=x,y.prevResolvedValues=D,y.isActive&&(f={...f,...D}),r&&e.blockInitialAnimation&&(C=!1);const Q=k&&_;C&&(!Q||P)&&d.push(...j.map($=>{const A={type:g};if(typeof $=="string"&&r&&!Q&&e.manuallyAnimateOnMount&&e.parent){const{parent:R}=e,L=Hi(R,$);if(R.enteringChildren&&L){const{delayChildren:G}=L.transition||{};A.delay=UE(R.enteringChildren,e,G)}}return{animation:$,options:A}}))}if(p.size){const w={};if(typeof c.initial!="boolean"){const g=Hi(e,Array.isArray(c.initial)?c.initial[0]:c.initial);g&&g.transition&&(w.transition=g.transition)}p.forEach(g=>{const y=e.getBaseTarget(g),x=e.getValue(g);x&&(x.liveStyle=!0),w[g]=y??null}),d.push({animation:w})}let m=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}function a(l,c){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(p=>{var f;return(f=p.animationState)==null?void 0:f.setActive(l,c)}),n[l].isActive=c;const u=o(l);for(const p in n)n[p].protectedKeys={};return u}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Y0()}}}function S$(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!w_(t,e):!1}function hs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Y0(){return{animate:hs(!0),whileInView:hs(),whileHover:hs(),whileTap:hs(),whileDrag:hs(),whileFocus:hs(),exit:hs()}}function Q0(e,t){e.min=t.min,e.max=t.max}function nn(e,t){Q0(e.x,t.x),Q0(e.y,t.y)}function J0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const x_=1e-4,k$=1-x_,E$=1+x_,b_=.01,_$=0-b_,T$=0+b_;function ut(e){return e.max-e.min}function C$(e,t,n){return Math.abs(e-t)<=n}function X0(e,t,n,r=.5){e.origin=r,e.originPoint=Ee(t.min,t.max,e.origin),e.scale=ut(n)/ut(t),e.translate=Ee(n.min,n.max,e.origin)-e.originPoint,(e.scale>=k$&&e.scale<=E$||isNaN(e.scale))&&(e.scale=1),(e.translate>=_$&&e.translate<=T$||isNaN(e.translate))&&(e.translate=0)}function pa(e,t,n,r){X0(e.x,t.x,n.x,r?r.originX:void 0),X0(e.y,t.y,n.y,r?r.originY:void 0)}function Z0(e,t,n){e.min=n.min+t.min,e.max=e.min+ut(t)}function P$(e,t,n){Z0(e.x,t.x,n.x),Z0(e.y,t.y,n.y)}function ew(e,t,n){e.min=t.min-n.min,e.max=e.min+ut(t)}function Tu(e,t,n){ew(e.x,t.x,n.x),ew(e.y,t.y,n.y)}function tw(e,t,n,r,s){return e-=t,e=_u(e,1/n,r),s!==void 0&&(e=_u(e,1/s,r)),e}function A$(e,t=0,n=1,r=.5,s,i=e,o=e){if(Ln.test(t)&&(t=parseFloat(t),t=Ee(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Ee(i.min,i.max,r);e===i&&(a-=t),e.min=tw(e.min,t,n,a,s),e.max=tw(e.max,t,n,a,s)}function nw(e,t,[n,r,s],i,o){A$(e,t[n],t[r],t[s],t.scale,i,o)}const j$=["x","scaleX","originX"],R$=["y","scaleY","originY"];function rw(e,t,n,r){nw(e.x,t,j$,n?n.x:void 0,r?r.x:void 0),nw(e.y,t,R$,n?n.y:void 0,r?r.y:void 0)}function sw(e){return e.translate===0&&e.scale===1}function S_(e){return sw(e.x)&&sw(e.y)}function iw(e,t){return e.min===t.min&&e.max===t.max}function N$(e,t){return iw(e.x,t.x)&&iw(e.y,t.y)}function ow(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function k_(e,t){return ow(e.x,t.x)&&ow(e.y,t.y)}function aw(e){return ut(e.x)/ut(e.y)}function lw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function _n(e){return[e("x"),e("y")]}function O$(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:p,skewX:f,skewY:v}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `),f&&(r+=`skewX(${f}deg) `),v&&(r+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const E_=["TopLeft","TopRight","BottomLeft","BottomRight"],I$=E_.length,cw=e=>typeof e=="string"?parseFloat(e):e,uw=e=>typeof e=="number"||U.test(e);function M$(e,t,n,r,s,i){s?(e.opacity=Ee(0,n.opacity??1,L$(r)),e.opacityExit=Ee(t.opacity??1,0,D$(r))):i&&(e.opacity=Ee(t.opacity??1,n.opacity??1,r));for(let o=0;o<I$;o++){const a=`border${E_[o]}Radius`;let l=dw(t,a),c=dw(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||uw(l)===uw(c)?(e[a]=Math.max(Ee(cw(l),cw(c),r),0),(Ln.test(c)||Ln.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=Ee(t.rotate||0,n.rotate||0,r))}function dw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const L$=__(0,.5,yE),D$=__(.5,.95,qt);function __(e,t,n){return r=>r<e?0:r>t?1:n(Ba(e,t,r))}function $$(e,t,n){const r=st(e)?e:yo(e);return r.start(Mg("",r,t,n)),r.animation}function qa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const F$=(e,t)=>
400e.depth-t.depth;class V${constructor(){this.children=[],this.isDirty=!1}add(t){xg(this.children,t),this.isDirty=!0}remove(t){xu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(F$),this.isDirty=!1,this.children.forEach(t)}}function U$(e,t){const n=ct.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(ts(r),e(i-t))};return me.setup(r,!0),()=>ts(r)}function $c(e){return st(e)?e.get():e}class z${constructor(){this.members=[]}add(t){xg(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const s=r.instance;s&&s.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&xu(this.members,r)}t.scheduleRender()}remove(t){if(xu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s],o=i.instance;if(i.isPresent!==!1&&(!o||o.isConnected!==!1)){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender();const s=r.options.layoutDependency,i=t.options.layoutDependency;if(!(s!==void 0&&i!==void 0&&s===i)){const l=r.instance;l&&l.isConnected===!1&&!r.snapshot||(t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Fc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},gh=["","X","Y","Z"],B$=1e3;let W$=0;function yh(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function T_(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=KE(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",me,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&T_(r)}function C_({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=W$++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(q$),this.nodes.forEach(J$),this.nodes.forEach(X$),this.nodes.forEach(G$)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new V$)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Sg),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Ug(o)&&!KD(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let u,d=0;const p=()=>this.root.updateBlockedByResize=!1;me.read(()=>{d=window.innerWidth}),e(o,()=>{const f=window.innerWidth;f!==d&&(d=f,this.root.updateBlockedByResize=!0,u&&u(),u=U$(p,250),Fc.hasAnimatedSinceResize&&(Fc.hasAnimatedSinceResize=!1,this.nodes.forEac
vendor: 9,256 bytes, line 400
400h(pw)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:p,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||r5,{onLayoutAnimationStart:m,onLayoutAnimationComplete:w}=c.getProps(),g=!this.targetLayout||!k_(this.targetLayout,f),y=!d&&p;if(this.options.layoutRoot||this.resumeFrom||y||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...Ig(v,"layout"),onPlay:m,onComplete:w};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(u,y)}else d||pw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ts(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(Z$),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&T_(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(hw);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(fw);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Q$),this.nodes.forEach(H$),this.nodes.forEach(K$)):this.nodes.forEach(fw),this.clearAllSnapshots();const a=ct.now();Ye.delta=Vn(0,1e3/60,a-Ye.timestamp),Ye.timestamp=a,Ye.isProcessing=!0,lh.update.process(Ye),lh.preRender.process(Ye),lh.render.process(Ye),Ye.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Fg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Y$),this.sharedNodes.forEach(e5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,me.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){me.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ut(this.snapshot.measuredBox.x)&&!ut(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Fe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!S_(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||ys(this.latestValues)||u)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),s5(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return Fe();const a=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(i5))){const{scroll:u}=this.root;u&&(Ni(a.x,u.offset.x),Ni(a.y,u.offset.y))}return a}removeElementScroll(o){var l;const a=Fe();if(nn(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:p}=u;u!==this.root&&d&&p.layoutScroll&&(d.wasRoot&&nn(a,o),Ni(a.x,d.offset.x),Ni(a.y,d.offset.y))}return a}applyTransform(o,a=!1){const l=Fe();nn(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Oi(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ys(u.latestValues)&&Oi(l,u.latestValues)}return ys(this.latestValues)&&Oi(l,this.latestValues),l}removeTransform(o){const a=Fe();nn(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!ys(c.latestValues))continue;Op(c.latestValues)&&c.updateSnapshot();const u=Fe(),d=c.measurePageBox();nn(u,d),rw(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return ys(this.latestValues)&&rw(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==Ye.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var f;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=Ye.timestamp;const p=this.getClosestProjectingParent();p&&this.linkedParentVersion!==p.layoutVersion&&!p.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(p&&p.layout?this.createRelativeTarget(p,this.layout.layoutBox,p.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Fe(),this.targetWithTransforms=Fe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),P$(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),u_(this.target,this.targetDelta)):nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?this.createRelativeTarget(p,this.target,p.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Op(this.parent.latestValues)||c_(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Fe(),this.relativeTargetOrigin=Fe(),Tu(this.relativeTargetOrigin,a,l),nn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var v;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(v=this.parent)!=null&&v.isProjectionDirty)&&
vendor: 5,271 bytes, line 400
400(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Ye.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;nn(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,p=this.treeScale.y;r$(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Fe());const{target:f}=o;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(J0(this.prevProjectionDelta.x,this.projectionDelta.x),J0(this.prevProjectionDelta.y,this.projectionDelta.y)),pa(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==p||!lw(this.projectionDelta.x,this.prevProjectionDelta.x)||!lw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ri(),this.projectionDelta=Ri(),this.projectionDeltaWithTransform=Ri()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=Ri();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const p=Fe(),f=l?l.source:void 0,v=this.layout?this.layout.source:void 0,m=f!==v,w=this.getStack(),g=!w||w.members.length<=1,y=!!(m&&!g&&this.options.crossfade===!0&&!this.path.some(n5));this.animationProgress=0;let x;this.mixTargetDelta=S=>{const E=S/1e3;mw(d.x,o.x,E),mw(d.y,o.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Tu(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),t5(this.relativeTarget,this.relativeTargetOrigin,p,E),x&&N$(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Fe()),nn(x,this.relativeTarget)),m&&(this.animationValues=u,M$(u,c,this.latestValues,E,y,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(ts(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=me.update(()=>{Fc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=yo(0)),this.currentAnimation=$$(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(B$),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&P_(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Fe();const d=ut(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const p=ut(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+p}nn(a,l),Oi(a,u),pa(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new z$),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}
vendor: 11,851 bytes, lines 400-408
400resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&yh("z",o,c,this.animationValues);for(let u=0;u<gh.length;u++)yh(`rotate${gh[u]}`,o,c,this.animationValues),yh(`skew${gh[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=$c(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=$c(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!ys(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=O$(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),o.transform=d;const{x:p,y:f}=this.projectionDelta;o.transformOrigin=`${p.origin*100}% ${f.origin*100}% 0`,c.animationValues?o.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const v in Mp){if(u[v]===void 0)continue;const{correct:m,applyTo:w,isCSSVariable:g}=Mp[v],y=d==="none"?u[v]:m(u[v],c);if(w){const x=w.length;for(let S=0;S<x;S++)o[w[S]]=y}else g?this.options.visualElement.renderState.vars[v]=y:o[v]=y}this.options.layoutId&&(o.pointerEvents=c===this?$c(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(hw),this.root.sharedNodes.clear()}}}function H$(e){e.updateLayout()}function K$(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;i==="size"?_n(d=>{const p=o?t.measuredBox[d]:t.layoutBox[d],f=ut(p);p.min=r[d].min,p.max=p.min+f}):P_(i,t.layoutBox,r)&&_n(d=>{const p=o?t.measuredBox[d]:t.layoutBox[d],f=ut(r[d]);p.max=p.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+f)});const a=Ri();pa(a,r,t.layoutBox);const l=Ri();o?pa(l,e.applyTransform(s,!0),t.measuredBox):pa(l,r,t.layoutBox);const c=!S_(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:p,layout:f}=d;if(p&&f){const v=Fe();Tu(v,t.layoutBox,p.layoutBox);const m=Fe();Tu(m,r,f.layoutBox),k_(v,m)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function q$(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function G$(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Y$(e){e.clearSnapshot()}function hw(e){e.clearMeasurements()}function fw(e){e.isLayoutDirty=!1}function Q$(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function pw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function J$(e){e.resolveTargetDelta()}function X$(e){e.calcProjection()}function Z$(e){e.resetSkewAndRotation()}function e5(e){e.removeLeadSnapshot()}function mw(e,t,n){e.translate=Ee(t.translate,0,n),e.scale=Ee(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function gw(e,t,n,r){e.min=Ee(t.min,n.min,r),e.max=Ee(t.max,n.max,r)}function t5(e,t,n,r){gw(e.x,t.x,n.x,r),gw(e.y,t.y,n.y,r)}function n5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const r5={duration:.45,ease:[.4,0,.1,1]},yw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),vw=yw("applewebkit/")&&!yw("chrome/")?Math.round:qt;function ww(e){e.min=vw(e.min),e.max=vw(e.max)}function s5(e){ww(e.x),ww(e.y)}function P_(e,t,n){return e==="position"||e==="preserve-aspect"&&!C$(aw(t),aw(n),.2)}function i5(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const o5=C_({attachResizeListener:(e,t)=>qa(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),vh={current:void 0},A_=C_({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!vh.current){const e=new o5({});e.mount(window),e.setOptions({layoutScroll:!0}),vh.current=e}return vh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Kg=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function xw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function a5(...e){return t=>{let n=!1;const r=e.map(s=>{const i=xw(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():xw(e[s],null)}}}}function l5(...e){return b.useCallback(a5(...e),e)}class c5 extends b.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,s=Rp(r)&&r.offsetWidth||0,i=Rp(r)&&r.offsetHeight||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=s-o.width-o.left,o.bottom=i-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function u5({children:e,isPresent:t,anchorX:n,anchorY:r,root:s,pop:i}){var p;const o=b.useId(),a=b.useRef(null),l=b.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=b.useContext(Kg),u=((p=e.props)==null?void 0:p.ref)??(e==null?void 0:e.ref),d=l5(a,u);return b.useInsertionEffect(()=>{const{width:f,height:v,top:m,left:w,right:g,bottom:y}=l.current;if(t||i===!1||!a.current||!f||!v)return;const x=n==="left"?`left: ${w}`:`right: ${g}`,S=r==="bottom"?`bottom: ${y}`:`top: ${m}`;a.current.dataset.motionPopId=o;const E=document.createElement("style");c&&(E.nonce=c);const k=s??document.head;return k.appendChild(E),E.sheet&&E.sheet.insertRule(` 401 [data-motion-pop-id="${o}"] { 402 position: absolute !important; 403 width: ${f}px !important; 404 height: ${v}px !important; 405 ${x}px !important; 406 ${S}px !important; 407 } 408 `),()=>{k.contains(E)&&k.removeChild(E)}},[t]),h.jsx(c5,{isPresent:t,childRef:a,sizeRef:l,pop:i,children:i===!1?e:b.cloneElement(e,{ref:d})})}const d5=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a,anchorY:l,root:c})=>{const u=wg(h5),d=b.useId();let p=!0,f=b.useMemo(()=>(p=!1,{id:d,initial:t,isPresent:n,custom:s,onExitComplete:v=>{u.set(v,!0);for(const m of u.values())if(!m)return;r&&r()},register:v=>(u.set(v,!1),()=>u.delete(v))}),[n,u,r]);return i&&p&&(f={...f}),b.useMemo(()=>{u.forEach((v,m)=>u.set(m,!1))},[n]),b.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=h.jsx(u5,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:c,children:e}),h.jsx(od.Provider,{value:f,children:e})};function h5(){return new Map}function j_(e=!0){const t=b.useContext(od);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=b.useId();b.useEffect(()=>{if(e)return s(i)},[e]);const o=b.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const ec=e=>e.key||"";function bw(e){const t=[];return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const Nn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left",anchorY:l="top",root:c})=>{const[u,d]=j_(o),p=b.useMemo(()=>bw(e),[e]),f=o&&!u?[]:p.map(ec),v=b.useRef(!0),m=b.useRef(p),w=wg(()=>new Map),g=b.useRef(new Set),[y,x]=b.useState(p),[S,E]=b.useState(p);oE(()=>{v.current=!1,m.current=p;for(let C=0;C<S.length;C++){const P=ec(S[C]);f.includes(P)?(w.delete(P),g.current.delete(P)):w.get(P)!==!0&&w.set(P,!1)}},[S,f.length,f.join("-")]);const k=[];if(p!==y){let C=[...p];for(let P=0;P<S.length;P++){const j=S[P],D=ec(j);f.includes(D)||(C.splice(P,0,j),k.push(j))}return i==="wait"&&k.length&&(C=k),E(bw(C)),x(p),null}const{forceRender:_}=b.useContext(vg);return h.jsx(h.Fragment,{children:S.map(C=>{const P=ec(C),j=o&&!u?!1:p===S||f.includes(P),D=()=>{if(g.current.has(P))return;if(g.current.add(P),w.has(P))w.set(P,!0);else return;let O=!0;w.forEach(z=>{z||(O=!1)}),O&&(_==null||_(),E(m.current),o&&(d==null||d()),r&&r())};return h.jsx(d5,{isPresent:j,initial:!v.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,root:c,onExitComplete:j?void 0:D,anchorX:a,anchorY:l,children:C},P)})})},R_=b.createContext({strict:!1}),Sw={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"]};let kw=!1;function f5(){if(kw)return;const e={};for(const t in Sw)e[t]={isEnabled:n=>Sw[t].some(r=>!!n[r])};o_(e),kw=!0}function N_(){return f5(),ZD()}function p5(e){const t=N_();for(const n in e)t[n]={...t[n],...e[n]};o_(t)}const m5=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","propagate","ignoreStrict","viewport"]);function Cu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||m5.has(e)}let O_=e=>!Cu(e);function g5(e){typeof e=="function"&&(O_=t=>t.startsWith("on")?!Cu(t):e(t))}try{g5(require("@emotion/is-prop-valid").default)}catch{}function y5(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(O_(s)||n===!0&&Cu(s)||!t&&!Cu(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const ud=b.createContext({});function v5(e,t){if(cd(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ka(n)?n:void 0,animate:Ka(r)?r:void 0}}return e.inherit!==!1?t:{}}function w5(e){const{initial:t,animate:n}=v5(e,b.useContext(ud));return b.useMemo(()=>({initial:t,animate:n}),[Ew(t),Ew(n)])}function Ew(e){return Array.isArray(e)?e.join(" "):e}const qg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});
vendor: 5,457 bytes, line 408
408function I_(e,t,n){for(const r in t)!st(t[r])&&!f_(r,n)&&(e[r]=t[r])}function x5({transformTemplate:e},t){return b.useMemo(()=>{const n=qg();return Wg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function b5(e,t){const n=e.style||{},r={};return I_(r,n,e),Object.assign(r,x5(e,t)),r}function S5(e,t){const n={},r=b5(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const M_=()=>({...qg(),attrs:{}});function k5(e,t,n,r){const s=b.useMemo(()=>{const i=M_();return p_(i,t,g_(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};I_(i,e.style,e),s.style={...i,...s.style}}return s}const E5=["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 Gg(e){return typeof e!="string"||e.includes("-")?!1:!!(E5.indexOf(e)>-1||/[A-Z]/u.test(e))}function _5(e,t,n,{latestValues:r},s,i=!1,o){const l=(o??Gg(e)?k5:S5)(t,r,s,e),c=y5(t,typeof e=="string",i),u=e!==b.Fragment?{...c,...l,ref:n}:{},{children:d}=t,p=b.useMemo(()=>st(d)?d.get():d,[d]);return b.createElement(e,{...u,children:p})}function T5({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:C5(n,r,s,e),renderState:t()}}function C5(e,t,n,r){const s={},i=r(e,{});for(const p in i)s[p]=$c(i[p]);let{initial:o,animate:a}=e;const l=cd(e),c=s_(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!ld(d)){const p=Array.isArray(d)?d:[d];for(let f=0;f<p.length;f++){const v=Lg(e,p[f]);if(v){const{transitionEnd:m,transition:w,...g}=v;for(const y in g){let x=g[y];if(Array.isArray(x)){const S=u?x.length-1:0;x=x[S]}x!==null&&(s[y]=x)}for(const y in m)s[y]=m[y]}}}return s}const L_=e=>(t,n)=>{const r=b.useContext(ud),s=b.useContext(od),i=()=>T5(e,t,r,s);return n?i():wg(i)},P5=L_({scrapeMotionValuesFromProps:Hg,createRenderState:qg}),A5=L_({scrapeMotionValuesFromProps:y_,createRenderState:M_}),j5=Symbol.for("motionComponentSymbol");function R5(e,t,n){const r=b.useRef(n);b.useInsertionEffect(()=>{r.current=n});const s=b.useRef(null);return b.useCallback(i=>{var a;i&&((a=e.onMount)==null||a.call(e,i)),t&&(i?t.mount(i):t.unmount());const o=r.current;if(typeof o=="function")if(i){const l=o(i);typeof l=="function"&&(s.current=l)}else s.current?(s.current(),s.current=null):o(i);else o&&(o.current=i)},[t])}const D_=b.createContext({});function fi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function N5(e,t,n,r,s,i){var x,S;const{visualElement:o}=b.useContext(ud),a=b.useContext(R_),l=b.useContext(od),c=b.useContext(Kg),u=c.reducedMotion,d=c.skipAnimations,p=b.useRef(null),f=b.useRef(!1);r=r||a.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:i}),f.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));const v=p.current,m=b.useContext(D_);v&&!v.projection&&s&&(v.type==="html"||v.type==="svg")&&O5(p.current,n,s,m);const w=b.useRef(!1);b.useInsertionEffect(()=>{v&&w.current&&v.update(n,l)});const g=n[HE],y=b.useRef(!!g&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,g))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,g)));return oE(()=>{f.current=!0,v&&(w.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),y.current&&v.animationState&&v.animationState.animateChanges())}),b.useEffect(()=>{v&&(!y.current&&v.animationState&&v.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,g)}),y.current=!1),v.enteringChildren=void 0)}),v}function O5(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:$_(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&fi(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}function $_(e){if(e)return e.options.allowProjection!==!1?e.projection:$_(e.parent)}function wh(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&p5(r);const i=n?n==="svg":Gg(e),o=i?A5:P5;function a(c,u){let d;const p={...b.useContext(Kg),...c,layoutId:I5(c)},{isStatic:f}=p,v=w5(c),m=o(c,f);if(!f&&iE){M5();const w=L5(p);d=w.MeasureLayout,v.visualElement=N5(e,m,p,s,w.ProjectionNode,i)}return h.jsxs(ud.Provider,{value:v,children:[d&&v.visualElement?h.jsx(d,{visualElement:v.visualElement,...p}):null,_5(e,c,R5(m,v.visualElement,u),m,f,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=b.forwardRef(a);return l[j5]=e,l}function I5({layoutId:e}){const t=b.useContext(vg).id;return t&&e!==void 0?t+"-"+e:e}function M5(e,t){b.useContext(R_).strict}function L5(e){const t=N_(),{drag:n,layout:r}=t;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
vendor: 4,810 bytes, line 408
408function D5(e,t){if(typeof Proxy>"u")return wh;const n=new Map,r=(i,o)=>wh(i,o,e,t),s=(i,o)=>r(i,o);return new Proxy(s,{get:(i,o)=>o==="create"?r:(n.has(o)||n.set(o,wh(o,void 0,e,t)),n.get(o))})}const $5=(e,t)=>t.isSVG??Gg(e)?new g$(t):new u$(t,{allowProjection:e!==b.Fragment});class F5 extends ls{constructor(t){super(t),t.animationState||(t.animationState=b$(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ld(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let V5=0;class U5 extends ls{constructor(){super(...arguments),this.id=V5++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const z5={animation:{Feature:F5},exit:{Feature:U5}};function xl(e){return{point:{x:e.pageX,y:e.pageY}}}const B5=e=>t=>Vg(t)&&e(t,xl(t));function ma(e,t,n,r){return qa(e,t,B5(n),r)}const F_=({current:e})=>e?e.ownerDocument.defaultView:null,_w=(e,t)=>Math.abs(e-t);function W5(e,t){const n=_w(e.x,t.x),r=_w(e.y,t.y);return Math.sqrt(n**2+r**2)}const Tw=new Set(["auto","scroll"]);class V_{constructor(t,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=f=>{this.handleScroll(f.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=bh(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,m=W5(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!v&&!m)return;const{point:w}=f,{timestamp:g}=Ye;this.history.push({...w,timestamp:g});const{onStart:y,onMove:x}=this.handlers;v||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f)},this.handlePointerMove=(f,v)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=xh(v,this.transformPagePoint),me.update(this.updatePoint,!0)},this.handlePointerUp=(f,v)=>{this.end();const{onEnd:m,onSessionEnd:w,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=bh(f.type==="pointercancel"?this.lastMoveEventInfo:xh(v,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,y),w&&w(f,y)},!Vg(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const l=xl(t),c=xh(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=Ye;this.history=[{...u,timestamp:d}];const{onSessionStart:p}=n;p&&p(t,bh(c,this.history)),this.removeListeners=yl(ma(this.contextWindow,"pointermove",this.handlePointerMove),ma(this.contextWindow,"pointerup",this.handlePointerUp),ma(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Tw.has(r.overflowX)||Tw.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,s=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:s.x-n.x,y:s.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,s),me.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ts(this.updatePoint)}}function xh(e,t){return t?{point:t(e.point)}:e}function Cw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bh({point:e}
vendor: 13,029 bytes, line 408
408,t){return{point:e,delta:Cw(e,U_(t)),offset:Cw(e,H5(t)),velocity:K5(t,.1)}}function H5(e){return e[0]}function U_(e){return e[e.length-1]}function K5(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=U_(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Gt(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>Gt(t)*2&&(r=e[1]);const i=Ht(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function q5(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ee(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ee(n,e,r.max):Math.min(e,n)),e}function Pw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function G5(e,{top:t,left:n,bottom:r,right:s}){return{x:Pw(e.x,n,s),y:Pw(e.y,t,r)}}function Aw(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Y5(e,t){return{x:Aw(e.x,t.x),y:Aw(e.y,t.y)}}function Q5(e,t){let n=.5;const r=ut(e),s=ut(t);return s>r?n=Ba(t.min,t.max-r,e.min):r>s&&(n=Ba(e.min,e.max-s,t.min)),Vn(0,1,n)}function J5(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Lp=.35;function X5(e=Lp){return e===!1?e=0:e===!0&&(e=Lp),{x:jw(e,"left","right"),y:jw(e,"top","bottom")}}function jw(e,t,n){return{min:Rw(e,t),max:Rw(e,n)}}function Rw(e,t){return typeof e=="number"?e:e[t]||0}const Z5=new WeakMap;class e4{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Fe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=d=>{n&&this.snapToCursor(xl(d).point),this.stopAnimation()},o=(d,p)=>{const{drag:f,dragPropagation:v,onDragStart:m}=this.getProps();if(f&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=AD(f),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=p,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),_n(g=>{let y=this.getAxisMotionValue(g).get()||0;if(Ln.test(y)){const{projection:x}=this.visualElement;if(x&&x.layout){const S=x.layout.layoutBox[g];S&&(y=ut(S)*(parseFloat(y)/100))}}this.originPoint[g]=y}),m&&me.update(()=>m(d,p),!1,!0),Pp(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(d,p)=>{this.latestPointerEvent=d,this.latestPanInfo=p;const{dragPropagation:f,dragDirectionLock:v,onDirectionLock:m,onDrag:w}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:g}=p;if(v&&this.currentDirection===null){this.currentDirection=n4(g),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",p.point,g),this.updateAxis("y",p.point,g),this.visualElement.render(),w&&me.update(()=>w(d,p),!1,!0)},l=(d,p)=>{this.latestPointerEvent=d,this.latestPanInfo=p,this.stop(d,p),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new V_(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:F_(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,s=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!r)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&me.postRender(()=>a(r,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!tc(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=q5(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,s=this.constraints;t&&fi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=G5(r.layoutBox,t):this.constraints=!1,this.elastic=X5(n),s!==this.constraints&&!fi(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&_n(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=J5(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!fi(t))return!1;const r=t.current;go(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=s$(r,s.root,this.visualElement.getTransformPagePoint());let o=Y5(s.layout.layoutBox,i);if(n){const a=n(t$(o));this.hasMutatedConstraints=!!a,a&&(o=l_(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=_n(u=>{if(!tc(u,n,this.currentDirection))return;let d=l&&l[u]||{};o&&(d={min:0,max:0});const p=s?200:1e6,f=s?40:1e7,v={type:"inertia",velocity:r?t[u]:0,bounceStiffness:p,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,v)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Pp(this.visualElement,t),r.start(Mg(t,r,0,n,this.visualElement,!1))}stopAnimation(){_n(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){_n(n=>{const{drag:r}=this.getProps();if(!tc(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n],l=i.get()||0;i.set(t[n]-Ee(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!fi(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};_n(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=Q5({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),_n(o=>{if(!tc(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(Ee(l,c,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Z5.set(this.visualElement,this);const t=this.visualElement.current,n=ma(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),p=c.target,f=p!==t&&MD(p);u&&d&&!f&&this.start(c)});let r;const s=()=>{const{dragConstraints:c}=this.getProps();fi(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=t4(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),me.read(s);const a=qa(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(_n(d=>{const p=this.getAxisMotionValue(d);p&&(this.originPoint[d]+=c[d].translate,p.set(p.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=Lp,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Nw(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function t4(e,t,n){const r=F0(e,Nw(n)),s=F0(t,Nw(n));return()=>{r(),s()}}function tc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function n4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class r4 extends ls{constructor(t){super(t),this.removeGroupControls=qt,this.removeListeners=qt,this.controls=new e4(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||qt}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Sh=e=>(t,n)=>{e&&me.update(()=>e(t,n),!1,!0)};class s4 extends ls{constructor(){super(...arguments),this.removePointerDownListener=qt}onPointerDown(t){this.session=new V_(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:F_(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Sh(t),onStart:Sh(n),onMove:Sh(r),onEnd:(i,o)=>{delete this.session,s&&me.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=ma(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let kh=!1;class i4 extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),kh&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Fc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),kh=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||me.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Fg.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;kh=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function z_(e){const[t,n]=j_(),r=b.useContext(vg);return h.jsx(i4,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(D_),isPresent:t,safeToRemove:n})}const o4={pan:{Feature:s4},drag:{Feature:r4,ProjectionNode:A_,MeasureLayout:z_}};function Ow(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&me.postRender(()=>i(t,xl(t)))}class a4 extends ls{mount(){const{current:t}=this.node;t&&(this.unmount=RD(t,(n,r)=>(Ow(this.node,r,"Start"),s=>Ow(this.node,s,"End"))))}unmount(){}}class l4 extends ls{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=yl(qa(this.node.current,"focus",()=>this.onFocus()),qa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Iw(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&me.postRender(()=>i(t,xl(t)))}class c4 extends ls{mount(){const{current:t}=this.node;if(!t)return;
408const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=DD(t,(s,i)=>(Iw(this.node,i,"Start"),(o,{success:a})=>Iw(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Dp=new WeakMap,Eh=new WeakMap,u4=e=>{const t=Dp.get(e.target);t&&t(e)},d4=e=>{e.forEach(u4)};function h4({root:e,...t}){const n=e||document;Eh.has(n)||Eh.set(n,{});const r=Eh.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(d4,{root:e,...t})),r[s]}function f4(e,t,n){const r=h4(t);return Dp.set(e,n),r.observe(e),()=>{Dp.delete(e),r.unobserve(e)}}const p4={some:0,all:1};class m4 extends ls{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:p4[s]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),p=c?u:d;p&&p(l)};return f4(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(g4(t,n))&&this.startObserver()}unmount(){}}function g4({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const y4={inView:{Feature:m4},tap:{Feature:c4},focus:{Feature:l4},hover:{Feature:a4}},v4={layout:{ProjectionNode:A_,MeasureLayout:z_}},w4={...z5,...y4,...o4,...v4},Be=D5(w4,$5),x4=Zu("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),xt=b.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?dj:"button";return h.jsx(o,{className:_t(x4({variant:t,size:n,className:e})),ref:i,...s})});xt.displayName="Button";const b4=Zu("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function S4({className:e,variant:t,...n}){return h.jsx("div",{className:_t(b4({variant:t}),e),...n})}var _h="focusScope.autoFocusOnMount",Th="focusScope.autoFocusOnUnmount",Mw={bubbles:!1,cancelable:!0},k4="FocusScope",B_=b.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,l]=b.useState(null),c=$n(s),u=$n(i),d=b.useRef(null),p=ht(t,m=>l(m)),f=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(r){let m=function(x){if(f.paused||!a)return;const S=x.target;a.contains(S)?d.current=S:br(d.current,{select:!0})},w=function(x){if(f.paused||!a)return;const S=x.relatedTarget;S!==null&&(a.contains(S)||br(d.current,{select:!0}))},g=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&br(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",w);const y=new MutationObserver(g);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",w),y.disconnect()}}},[r,a,f.paused]),b.useEffect(()=>{if(a){Dw.add(f);
vendor: 4,406 bytes, line 408
408const m=document.activeElement;if(!a.contains(m)){const g=new CustomEvent(_h,Mw);a.addEventListener(_h,c),a.dispatchEvent(g),g.defaultPrevented||(E4(A4(W_(a)),{select:!0}),document.activeElement===m&&br(a))}return()=>{a.removeEventListener(_h,c),setTimeout(()=>{const g=new CustomEvent(Th,Mw);a.addEventListener(Th,u),a.dispatchEvent(g),g.defaultPrevented||br(m??document.body,{select:!0}),a.removeEventListener(Th,u),Dw.remove(f)},0)}}},[a,c,u,f]);const v=b.useCallback(m=>{if(!n&&!r||f.paused)return;const w=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,g=document.activeElement;if(w&&g){const y=m.currentTarget,[x,S]=_4(y);x&&S?!m.shiftKey&&g===S?(m.preventDefault(),n&&br(x,{select:!0})):m.shiftKey&&g===x&&(m.preventDefault(),n&&br(S,{select:!0})):g===y&&m.preventDefault()}},[n,r,f.paused]);return h.jsx(De.div,{tabIndex:-1,...o,ref:p,onKeyDown:v})});B_.displayName=k4;function E4(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(br(r,{select:t}),document.activeElement!==n)return}function _4(e){const t=W_(e),n=Lw(t,e),r=Lw(t.reverse(),e);return[n,r]}function W_(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Lw(e,t){for(const n of e)if(!T4(n,{upTo:t}))return n}function T4(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function C4(e){return e instanceof HTMLInputElement&&"select"in e}function br(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&C4(e)&&t&&e.select()}}var Dw=P4();function P4(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=$w(e,t),e.unshift(t)},remove(t){var n;e=$w(e,t),(n=e[0])==null||n.resume()}}}function $w(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function A4(e){return e.filter(t=>t.tagName!=="A")}var Ch=0;function j4(){b.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Fw()),document.body.insertAdjacentElement("beforeend",e[1]??Fw()),Ch++,()=>{Ch===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ch--}},[])}function Fw(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var jn=function(){return jn=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},jn.apply(this,arguments)};function jo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function R4(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function N4(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Vc="right-scroll-bar-position",Uc="width-before-scroll-bar",O4="with-scroll-bars-hidden",I4="--removed-body-scroll-bar-size";function Ph(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function M4(e,t){var n=b.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var L4=typeof window<"u"?b.useLayoutEffect:b.useEffect,Vw=new WeakMap;function D4(e,t){var n=M4(null,function(r){return e.forEach(function(s){return Ph(s,r)})});return L4(function(){var r=Vw.get(n);if(r){var s=new Set(r),i=new Set(e),o=n.current;
vendor: 4,196 bytes, lines 408-423
408s.forEach(function(a){i.has(a)||Ph(a,null)}),i.forEach(function(a){s.has(a)||Ph(a,o)})}Vw.set(n,e)},[e]),n}function $4(e){return e}function F4(e,t){t===void 0&&(t=$4);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(i),o=n}var l=function(){var u=o;o=[],u.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){o.push(u),c()},filter:function(u){return o=o.filter(u),n}}}};return s}function V4(e){e===void 0&&(e={});var t=F4(null);return t.options=jn({async:!0,ssr:!1},e),t}var H_=function(e){var t=e.sideCar,n=jo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return b.createElement(r,jn({},n))};H_.isSideCarExport=!0;function U4(e,t){return e.useMedium(t),H_}var K_=V4(),Ah=function(){},dd=b.forwardRef(function(e,t){var n=b.useRef(null),r=b.useState({onScrollCapture:Ah,onWheelCapture:Ah,onTouchMoveCapture:Ah}),s=r[0],i=r[1],o=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,p=e.sideCar,f=e.noRelative,v=e.noIsolation,m=e.inert,w=e.allowPinchZoom,g=e.as,y=g===void 0?"div":g,x=e.gapMode,S=jo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,k=D4([n,t]),_=jn(jn({},S),s);return b.createElement(b.Fragment,null,u&&b.createElement(E,{sideCar:K_,removeScrollBar:c,shards:d,noRelative:f,noIsolation:v,inert:m,setCallbacks:i,allowPinchZoom:!!w,lockRef:n,gapMode:x}),o?b.cloneElement(b.Children.only(a),jn(jn({},_),{ref:k})):b.createElement(y,jn({},_,{className:l,ref:k}),a))});dd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};dd.classNames={fullWidth:Uc,zeroRight:Vc};var z4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function B4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=z4();return t&&e.setAttribute("nonce",t),e}function W4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function H4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var K4=function(){var e=0,t=null;return{add:function(n){e==0&&(t=B4())&&(W4(t,n),H4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},q4=function(){var e=K4();return function(t,n){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},q_=function(){var e=q4(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},G4={left:0,top:0,right:0,gap:0},jh=function(e){return parseInt(e||"",10)||0},Y4=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[jh(n),jh(r),jh(s)]},Q4=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return G4;var t=Y4(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},J4=q_(),Ki="data-scroll-locked",X4=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` 409 .`.concat(O4,` { 410 overflow: hidden `).concat(r,`; 411 padding-right: `).concat(a,"px ").concat(r,`; 412 } 413 body[`).concat(Ki,`] { 414 overflow: hidden `).concat(r,`; 415 overscroll-behavior: contain; 416 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 417 padding-left: `.concat(s,`px; 418 padding-top: `).concat(i,`px; 419 padding-right: `).concat(o,`px; 420 margin-left:0; 421 margin-top:0; 422 margin-right: `).concat(a,"px ").concat(r,`; 423 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
423")].filter(Boolean).join(""),` 424 } 425 426 .`).concat(Vc,` { 427 right: `).concat(a,"px ").concat(r,`; 428 } 429 430 .`).concat(Uc,` { 431 margin-right: `).concat(a,"px ").concat(r,`; 432 } 433 434 .`).concat(Vc," .").concat(Vc,` { 435 right: 0 `).concat(r,`; 436 } 437 438 .`).concat(Uc," .").concat(Uc,` { 439 margin-right: 0 `).concat(r,`; 440 } 441 442 body[`).concat(Ki,`] { 443 `).concat(I4,": ").concat(a,`px; 444 } 445`)},Uw=function(){var e=parseInt(document.body.getAttribute(Ki)||"0",10);return isFinite(e)?e:0},Z4=function(){b.useEffect(function(){return document.body.setAttribute(Ki,(Uw()+1).toString()),function(){var e=Uw()-1;e<=0?document.body.removeAttribute(Ki):document.body.setAttribute(Ki,e.toString())}},[])},e3=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;Z4();var i=b.useMemo(function(){return Q4(s)},[s]);return b.createElement(J4,{styles:X4(i,!t,s,n?"":"!important")})},$p=!1;if(typeof window<"u")try{var nc=Object.defineProperty({},"passive",{get:function(){return $p=!0,!0}});window.addEventListener("test",nc,nc),window.removeEventListener("test",nc,nc)}catch{$p=!1}var ri=$p?{passive:!1}:!1,t3=function(e){return e.tagName==="TEXTAREA"},G_=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!t3(e)&&n[t]==="visible")},n3=function(e){return G_(e,"overflowY")},r3=function(e){return G_(e,"overflowX")},zw=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=Y_(e,r);if(s){var i=Q_(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},s3=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},i3=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Y_=function(e,t){return e==="v"?n3(t):r3(t)},Q_=function(e,t){return e==="v"?s3(t):i3(t)},o3=function(e,t){return e==="h"&&t==="rtl"?-1:1},a3=function(e,t,n,r,s){var i=o3(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,l=t.contains(a),c=!1,u=o>0,d=0,p=0;do{if(!a)break;var f=Q_(e,a),v=f[0],m=f[1],w=f[2],g=m-w-i*v;(v||g)&&Y_(e,a)&&(d+=g,p+=v);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&(Math.abs(d)<1||!s)||!u&&(Math.abs(p)<1||!s))&&(c=!0),c},rc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bw=function(e){return[e.deltaX,e.deltaY]},Ww=function(e){return e&&"current"in e?e.current:e},l3=function(e,t){return e[0]===t[0]&&e[1]===t[1]},c3=function(e){return` 446 .block-interactivity-`.concat(e,` {pointer-events: none;} 447 .allow-interactivity-`).concat(e,` {pointer-events: all;} 448`)},u3=0,si=[];function d3(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),s=b.useState(u3++)[0],i=b.useState(q_)[0],o=b.useRef(e);b.useEffect(function(){o.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var m=N4([e.lockRef.current],(e.shards||[]).map(Ww),!0).filter(Boolean);return m.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),m.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=b.useCallback(function(m,w){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!o.current.allowPinchZoom;var g=rc(m),y=n.current,x="deltaX"in m?m.deltaX:y[0]-g[0],S="deltaY"in m?m.deltaY:y[1]-g[1],E,k=m.target,_=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in m&&_==="h"&&k.type==="range")return!1;var C=zw(_,k);if(!C)return!0;if(C?E=_:(E=_==="v"?"h":"v",C=zw(_,k)),!C)return!1;if(!r.current&&"changedTouches"in m&&(x||S)&&(r.current=E),!E)return!0;var P=r.current||E;return a3(P,w,m,P==="h"?x:S,!0)},[]),l=b.useCallback(function(m){var w=m;if(!(!si.length||si[si.length-1]!==i)){var g="deltaY"in w?Bw(w):rc(w),y=t.current.filter(function(E){return E.name===w.type&&(E.target===w.target||w.target===E.shadowParent)&&l3(E.delta,g)})[0];if(y&&y.should){w.cancelable&&w.preventDefault();return}
vendor: 4,333 bytes, line 448
448if(!y){var x=(o.current.shards||[]).map(Ww).filter(Boolean).filter(function(E){return E.contains(w.target)}),S=x.length>0?a(w,x[0]):!o.current.noIsolation;S&&w.cancelable&&w.preventDefault()}}},[]),c=b.useCallback(function(m,w,g,y){var x={name:m,delta:w,target:g,should:y,shadowParent:h3(g)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),u=b.useCallback(function(m){n.current=rc(m),r.current=void 0},[]),d=b.useCallback(function(m){c(m.type,Bw(m),m.target,a(m,e.lockRef.current))},[]),p=b.useCallback(function(m){c(m.type,rc(m),m.target,a(m,e.lockRef.current))},[]);b.useEffect(function(){return si.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,ri),document.addEventListener("touchmove",l,ri),document.addEventListener("touchstart",u,ri),function(){si=si.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,ri),document.removeEventListener("touchmove",l,ri),document.removeEventListener("touchstart",u,ri)}},[]);var f=e.removeScrollBar,v=e.inert;return b.createElement(b.Fragment,null,v?b.createElement(i,{styles:c3(s)}):null,f?b.createElement(e3,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function h3(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const f3=U4(K_,d3);var J_=b.forwardRef(function(e,t){return b.createElement(dd,jn({},e,{ref:t,sideCar:f3}))});J_.classNames=dd.classNames;var p3=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ii=new WeakMap,sc=new WeakMap,ic={},Rh=0,X_=function(e){return e&&(e.host||X_(e.parentNode))},m3=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=X_(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},g3=function(e,t,n,r){var s=m3(t,Array.isArray(e)?e:[e]);ic[n]||(ic[n]=new WeakMap);var i=ic[n],o=[],a=new Set,l=new Set(s),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};s.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(p){if(a.has(p))u(p);else try{var f=p.getAttribute(r),v=f!==null&&f!=="false",m=(ii.get(p)||0)+1,w=(i.get(p)||0)+1;ii.set(p,m),i.set(p,w),o.push(p),m===1&&v&&sc.set(p,!0),w===1&&p.setAttribute(n,"true"),v||p.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",p,g)}})};return u(t),a.clear(),Rh++,function(){o.forEach(function(d){var p=ii.get(d)-1,f=i.get(d)-1;ii.set(d,p),i.set(d,f),p||(sc.has(d)||d.removeAttribute(r),sc.delete(d)),f||d.removeAttribute(n)}),Rh--,Rh||(ii=new WeakMap,ii=new WeakMap,sc=new WeakMap,ic={})}},y3=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=p3(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),g3(r,s,n,"aria-hidden")):function(){return null}},hd="Dialog",[Z_,bz]=hl(hd),[v3,xn]=Z_(hd),eT=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,a=b.useRef(null),l=b.useRef(null),[c,u]=hS({prop:r,defaultProp:s??!1,onChange:i,caller:hd});return h.jsx(v3,{scope:t,triggerRef:a,contentRef:l,contentId:rh(),titleId:rh(),descriptionId:rh(),open:c,onOpenChange:u,onOpenToggle:b.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};eT.displayName=hd;var tT="DialogTrigger",nT=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=xn(tT,n),i=ht(t,s.triggerRef);return h.jsx(De.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Jg(s.open),...r,ref:i,onClick:be(e.onClick,s.onOpenToggle)})});nT.displayName=tT;var Yg="DialogPortal",[w3,rT]=Z_(Yg,{forceMount:void 0}),sT=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=xn(Yg,t);return h.jsx(w3,{scope:t,forceMount:n,children:b.Children.map(r,o=>h.jsx(bo,{present:n||i.open,children:h.jsx(qm,{asChild:!0,container:s,children:o})}))})};sT.displayName=Yg;var Pu="DialogOverlay",iT=b.forwardRef((e,t)=>{const n=rT(Pu,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=xn(Pu,e.__scopeDialog);return i.modal?h.jsx(bo,{present:r||i.open,children:h.jsx(b3,{...s,ref:t})}):null});iT.displayName=Pu;var x3=La("DialogOverlay.RemoveScroll"),b3=b.forwardRef((e,t)=>
vendor: 5,009 bytes, lines 448-452
448{const{__scopeDialog:n,...r}=e,s=xn(Pu,n);return h.jsx(J_,{as:x3,allowPinchZoom:!0,shards:[s.contentRef],children:h.jsx(De.div,{"data-state":Jg(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),qs="DialogContent",oT=b.forwardRef((e,t)=>{const n=rT(qs,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=xn(qs,e.__scopeDialog);return h.jsx(bo,{present:r||i.open,children:i.modal?h.jsx(S3,{...s,ref:t}):h.jsx(k3,{...s,ref:t})})});oT.displayName=qs;var S3=b.forwardRef((e,t)=>{const n=xn(qs,e.__scopeDialog),r=b.useRef(null),s=ht(t,n.contentRef,r);return b.useEffect(()=>{const i=r.current;if(i)return y3(i)},[]),h.jsx(aT,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:be(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:be(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:be(e.onFocusOutside,i=>i.preventDefault())})}),k3=b.forwardRef((e,t)=>{const n=xn(qs,e.__scopeDialog),r=b.useRef(!1),s=b.useRef(!1);return h.jsx(aT,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),aT=b.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=xn(qs,n),l=b.useRef(null),c=ht(t,l);return j4(),h.jsxs(h.Fragment,{children:[h.jsx(B_,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:h.jsx(Qu,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Jg(a.open),...o,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(E3,{titleId:a.titleId}),h.jsx(T3,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Qg="DialogTitle",lT=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=xn(Qg,n);return h.jsx(De.h2,{id:s.titleId,...r,ref:t})});lT.displayName=Qg;var cT="DialogDescription",uT=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=xn(cT,n);return h.jsx(De.p,{id:s.descriptionId,...r,ref:t})});uT.displayName=cT;var dT="DialogClose",hT=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=xn(dT,n);return h.jsx(De.button,{type:"button",...r,ref:t,onClick:be(e.onClick,()=>s.onOpenChange(!1))})});hT.displayName=dT;function Jg(e){return e?"open":"closed"}var fT="DialogTitleWarning",[Sz,pT]=cj(fT,{contentName:qs,titleName:Qg,docsSlug:"dialog"}),E3=({titleId:e})=>{const t=pT(fT),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 449 450If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 451 452For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return b.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},_3="DialogDescriptionWarning",T3=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${pT(_3).contentName}}.`;return b.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},C3=eT,P3=nT,A3=sT,mT=iT,gT=oT,yT=lT,vT=uT,j3=hT;const R3=C3,N3=P3,O3=A3,wT=b.forwardRef(({className:e,...t},n)=>h.jsx(mT,{className:_t("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));wT.displayName=mT.displayName;const I3=Zu("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),xT=b.forwardRef(({side:e="right",className:t,children:n,...r},s)=>{const{locale:i}=wn();return h.jsxs(O3,{children:[h.jsx(wT,{}),h.jsxs(gT,{ref:s,className:_t(I3({side:e}),t),...r,children:[n,h.jsxs(j3,{className:"absolute right-4 top-4 roun
452ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[h.jsx(So,{className:"h-4 w-4"}),h.jsx("span",{className:"sr-only",children:q("action.close",i)})]})]})]})});xT.displayName=gT.displayName;const bT=({className:e,...t})=>h.jsx("div",{className:_t("flex flex-col space-y-2 text-center sm:text-left",e),...t});bT.displayName="SheetHeader";const ST=b.forwardRef(({className:e,...t},n)=>h.jsx(yT,{ref:n,className:_t("text-lg font-semibold text-foreground",e),...t}));ST.displayName=yT.displayName;const kT=b.forwardRef(({className:e,...t},n)=>h.jsx(vT,{ref:n,className:_t("text-sm text-muted-foreground",e),...t}));kT.displayName=vT.displayName;const M3=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Xg extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class L3 extends Xg{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Hw extends Xg{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Kw extends Xg{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Fp;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(Fp||(Fp={}));class D3{constructor(t,{headers:n={},customFetch:r,region:s=Fp.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=M3(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return R4(this,arguments,void 0,function*(n,r={}){var s;let i,o;try{const{headers:a,method:l,body:c,signal:u,timeout:d}=r;let p={},{region:f}=r;f||(f=this.region);const v=new URL(`${this.url}/${n}`);f&&f!=="any"&&(p["x-region"]=f,v.searchParams.set("forceFunctionRegion",f));let m;c&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(p["Content-Type"]="application/octet-stream",m=c):typeof c=="string"?(p["Content-Type"]="text/plain",m=c):typeof FormData<"u"&&c instanceof FormData?m=c:(p["Content-Type"]="application/json",m=JSON.stringify(c)):c&&typeof c!="string"&&!(typeof Blob<"u"&&c instanceof Blob)&&!(c instanceof ArrayBuffer)&&!(typeof FormData<"u"&&c instanceof FormData)?m=JSON.stringify(c):m=c;let w=u;d&&(o=new AbortController,i=setTimeout(()=>o.abort(),d),u?(w=o.signal,u.addEventListener("abort",()=>o.abort())):w=o.signal);const g=yield this.fetch(v.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},p),this.headers),a),body:m,signal:w}).catch(E=>{throw new L3(E)}),y=g.headers.get("x-relay-error");if(y&&y==="true")throw new Hw(g);if(!g.ok)throw new Kw(g);let x=((s=g.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),S;return x==="application/json"?S=yield g.json():x==="application/octet-stream"||x==="application/pdf"?S=yield g.blob():x==="text/event-stream"?S=g:x==="multipart/form-data"?S=yield g.formData():S=yield g.text(),{data:S,error:null,response:g}}catch(a){return{data:null,error:a,response:a instanceof Kw||a instanceof Hw?a.context:void 0}}finally{i&&clearTimeout(i)}})}}var $3=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
452de=e.code}},F3=class{constructor(e){var t,n,r;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,this.urlLengthLimit=(r=e.urlLengthLimit)!==null&&r!==void 0?r:8e3,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var n=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{let o=null,a=null,l=null,c=i.status,u=i.statusText;if(i.ok){var d,p;if(n.method!=="HEAD"){var f;const g=await i.text();g===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((f=n.headers.get("Accept"))===null||f===void 0)&&f.includes("application/vnd.pgrst.plan+text"))?a=g:a=JSON.parse(g))}const m=(d=n.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),w=(p=i.headers.get("content-range"))===null||p===void 0?void 0:p.split("/");m&&w&&w.length>1&&(l=parseInt(w[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(a)&&(a.length>1?(o={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,l=null,c=406,u="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{var v;const m=await i.text();try{o=JSON.parse(m),Array.isArray(o)&&i.status===404&&(a=[],o=null,c=200,u="OK")}catch{i.status===404&&m===""?(c=204,u="No Content"):o={message:m}}if(o&&n.isMaybeSingle&&(!(o==null||(v=o.details)===null||v===void 0)&&v.includes("0 rows"))&&(o=null,c=200,u="OK"),o&&n.shouldThrowOnError)throw new $3(o)}return{error:o,data:a,count:l,status:c,statusText:u}});return this.shouldThrowOnError||(s=s.catch(i=>{var o;let a="",l="",c="";const u=i==null?void 0:i.cause;if(u){var d,p,f,v;const g=(d=u==null?void 0:u.message)!==null&&d!==void 0?d:"",y=(p=u==null?void 0:u.code)!==null&&p!==void 0?p:"";a=`${(f=i==null?void 0:i.name)!==null&&f!==void 0?f:"FetchError"}: ${i==null?void 0:i.message}`,a+=` 453 454Caused by: ${(v=u==null?void 0:u.name)!==null&&v!==void 0?v:"Error"}: ${g}`,y&&(a+=` (${y})`),u!=null&&u.stack&&(a+=` 455${u.stack}`)}else{var m;a=(m=i==null?void 0:i.stack)!==null&&m!==void 0?m:""}const w=this.url.toString().length;return(i==null?void 0:i.name)==="AbortError"||(i==null?void 0:i.code)==="ABORT_ERR"?(c="",l="Request was aborted (timeout or manual cancellation)",w>this.urlLengthLimit&&(l+=`. Note: Your request URL is ${w} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((u==null?void 0:u.name)==="HeadersOverflowError"||(u==null?void 0:u.code)==="UND_ERR_HEADERS_OVERFLOW")&&(c="",l="HTTP headers exceeded server limits (typically 16KB)",w>this.urlLengthLimit&&(l+=`. Your request URL is ${w} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:a,hint:l,code:c},data:null,count:null,status:0,statusText:""}})),s.then(e,t)}returns(){return this}overrideTypes(){return this}},V3=class extends F3{select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:s=r}={}){const i=s?`${s}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"offset":`${r}.offset`,i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(i,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
455explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:i="text"}={}){var o;const a=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,s?"wal":null].filter(Boolean).join("|"),l=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${l}"; options=${a};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const qw=new RegExp("[,()]");var pi=class extends V3{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&qw.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&qw.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let s="";r==="plain"?s="pl":r==="phrase"?s="ph":r==="websearch"&&(s="w");const i=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${s}fts${i}.${t}`),this}match(e){return Object.entries(e).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},U3=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:s=8e3}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=s}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},s=n?"HEAD":"GET";let i=!1;const o=(e??"*").split("").map(c=>/\s/.test(c)&&!i?"":(c==='"'&&(i=!i),c)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",o),r&&l.append("Prefer",`count=${r}`),new pi({method:s,url:a,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const s="POST",{url:i,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),n||o.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,c)=>l.concat(Object.keys(c)),[]);if(a.length>
4550){const l=[...new Set(a)].map(c=>`"${c}"`);i.searchParams.set("columns",l.join(","))}}return new pi({method:s,url:i,headers:o,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:s=!0}={}){var i;const o="POST",{url:a,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&a.searchParams.set("on_conflict",t),r&&l.append("Prefer",`count=${r}`),s||l.append("Prefer","missing=default"),Array.isArray(e)){const c=e.reduce((u,d)=>u.concat(Object.keys(d)),[]);if(c.length>0){const u=[...new Set(c)].map(d=>`"${d}"`);a.searchParams.set("columns",u.join(","))}}return new pi({method:o,url:a,headers:l,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit})}update(e,{count:t}={}){var n;const r="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new pi({method:r,url:s,headers:i,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new pi({method:n,url:r,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit})}};function Ga(e){"@babel/helpers - typeof";return Ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ga(e)}function z3(e,t){if(Ga(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ga(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function B3(e){var t=z3(e,"string");return Ga(t)=="symbol"?t:t+""}function W3(e,t,n){return(t=B3(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function oc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gw(Object(n),!0).forEach(function(r){W3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var H3=class ET{constructor(t,{headers:n={},schema:r,fetch:s,timeout:i,urlLengthLimit:o=8e3}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=o;const a=s??globalThis.fetch;i!==void 0&&i>0?this.fetch=(l,c)=>{const u=new AbortController,d=setTimeout(()=>u.abort(),i),p=c==null?void 0:c.signal;if(p){if(p.aborted)return clearTimeout(d),a(l,c);const f=()=>{clearTimeout(d),u.abort()};return p.addEventListener("abort",f,{once:!0}),a(l,oc(oc({},c),{},{signal:u.signal})).finally(()=>{clearTimeout(d),p.removeEventListener("abort",f)})}return a(l,oc(oc({},c),{},{signal:u.signal})).finally(()=>clearTimeout(d))}:this.fetch=a}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new U3(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(t){return new ET(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let c;const u=f=>f!==null&&typeof f=="object"&&(!Array.isArray(f)||f.some(u)),d=r&&Object.values(n).some(u);d?(a="POST",c=n):r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([f,v])=>v!==void 0).map(([f,v])=>[f,Array.isArray(v)?`{${v.join(",")}}`:`${v}
455`]).forEach(([f,v])=>{l.searchParams.append(f,v)})):(a="POST",c=n);const p=new Headers(this.headers);return d?p.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&p.set("Prefer",`count=${i}`),new pi({method:a,url:l,headers:p,schema:this.schemaName,body:c,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit})}};class K3{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const s=r.node,i=parseInt(s.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 456import ws from "ws" 457new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=` 458 459Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const q3="2.95.3",G3=`realtime-js/${q3}`,Y3="1.0.0",_T="2.0.0",Yw=_T,Vp=1e4,Q3=1e3,J3=100;var _r;
459(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(_r||(_r={}));var $e;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})($e||($e={}));var dn;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(dn||(dn={}));var Up;(function(e){e.websocket="websocket"})(Up||(Up={}));var ws;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(ws||(ws={}));class X3{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,n,r){var s,i;const o=t.topic,a=(s=t.ref)!==null&&s!==void 0?s:"",l=(i=t.join_ref)!==null&&i!==void 0?i:"",c=t.payload.event,u=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},d=Object.keys(u).length===0?"":JSON.stringify(u);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`userEvent length ${c.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`metadata length ${d.length} exceeds maximum of 255`);const p=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+c.length+d.length,f=new ArrayBuffer(this.HEADER_LENGTH+p);let v=new DataView(f),m=0;v.setUint8(m++,this.KINDS.userBroadcastPush),v.setUint8(m++,l.length),v.setUint8(m++,a.length),v.setUint8(m++,o.length),v.setUint8(m++,c.length),v.setUint8(m++,d.length),v.setUint8(m++,n),Array.from(l,g=>v.setUint8(m++,g.charCodeAt(0))),Array.from(a,g=>v.setUint8(m++,g.charCodeAt(0))),Array.from(o,g=>v.setUint8(m++,g.charCodeAt(0))),Array.from(c,g=>v.setUint8(m++,g.charCodeAt(0))),Array.from(d,g=>v.setUint8(m++,g.charCodeAt(0)));var w=new Uint8Array(f.byteLength+r.byteLength);return w.set(new Uint8Array(f),0),w.set(new Uint8Array(r),f.byteLength),w.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[s,i,o,a,l]=r;return n({join_ref:s,ref:i,topic:o,event:a,payload:l})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),s=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,s)}}_decodeUserBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2),o=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+4;const c=r.decode(t.slice(l,l+s));l=l+s;const u=r.decode(t.slice(l,l+i));l=l+i;const d=r.decode(t.slice(l,l+o));l=l+o;const p=t.slice(l,t.byteLength),f=a===this.JSON_ENCODING?JSON.parse(r.decode(p)):p,v={type:this.BROADCAST_EVENT,event:u,payload:f};return o>0&&(v.meta=JSON.parse(d)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:v}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}class TT{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var fe;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(fe||(fe={}));const Qw=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((i,o)=>(i[o]=Z3(o,e,t,s),i),{}):{}},Z3=(e,t,n,r)=>{const s=t.find(a=>a.name===e),i=s==null?void 0:s.type,o=n[e];return i&&!r.includes(i)?CT(i,o):zp(o)},CT=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return rF(t,n)}switch(e){case fe.bool:return eF(t);case fe.float4:case fe.float8:case fe.int2:case fe.int4:case fe.int8:case fe.numeric:case fe.oid:return tF(t);case fe.json:case fe.jsonb:return nF(t);case fe.timestamp:return sF(t);case fe.abstime:case fe.date:case fe.daterange:case fe.int4range:case fe.int8range:case fe.money:case fe.reltime:case fe.text:case fe.time:case fe.timestamptz:case fe.timetz:case fe.tsrange:case fe.tstzrange:return zp(t);default:return zp(t)}},zp=e=>e,eF=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},tF=e=>{if(typeof e=="string"){const t=parseFloat(e);
459if(!Number.isNaN(t))return t}return e},nF=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},rF=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>CT(t,a))}return e},sF=e=>typeof e=="string"?e.replace(" ","T"):e,PT=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class Nh{constructor(t,n,r={},s=Vp){this.channel=t,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Jw;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Jw||(Jw={}));class ga{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=ga.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=ga.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=ga.syncDiff(this.state,s,i,o),a())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,s){const i=this.cloneDeep(t),o=this.transformState(n),a={},l={};return this.map(i,(c,u)=>{o[c]||(l[c]=u)}),this.map(o,(c,u)=>{const d=i[c];if(d){const p=u.map(w=>w.presence_ref),f=d.map(w=>w.presence_ref),v=u.filter(w=>f.indexOf(w.presence_ref)<0),m=d.filter(w=>p.indexOf(w.presence_ref)<0);v.length>0&&(a[c]=v),m.length>0&&(l[c]=m)}else a[c]=u}),this.syncDiff(i,{joins:a,leaves:l},r,s)}static syncDiff(t,n,r,s){const{joins:i,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(i,(a,l)=>{var c;const u=(c=t[a])!==null&&c!==void 0?c:[];if(t[a]=this.cloneDeep(l),u.length>0){const d=t[a].map(f=>f.presence_ref),p=u.filter(f=>d.indexOf(f.presence_ref)<0);t[a].unshift(...p)}r(a,u,l)}),this.map(o,(a,l)=>{let c=t[a];if(!c)return;const u=l.map(d=>d.presence_ref);c=c.filter(d=>u.indexOf(d.presence_ref)<0),t[a]=c,s(a,c,l),c.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return"metas"in s?n[r]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):n[r]=s,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Xw;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Xw||(Xw={}));var ya;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(ya||(ya={}));var Gn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Gn||(Gn={}));class Ii{constructor(t,n={config:{}},r){var s,i;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=$e.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new Nh(this,dn.join,this.params,this.timeout),this.rejoinTimer=new TT(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=$e.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=$e.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=$e.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=$e.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=$e.errored,this.rejoinTimer.scheduleTimeout())}),this._on(dn.reply,{},(o,a)=>{this._trigger(this._replyEventName(a),o)}),this.presence=new ga(this),this.broadcastEndpointURL=PT(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==$e.closed){const{config:{broadcast:o,presence:a,private:l}}=this.params,c=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(f=>f.filter))!==null&&s!==void 0?s:[],u=!!this.bindings[ya.PRESENCE]&&this.bindings[ya.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,d={},p={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:u}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(f=>t==null?void 0:t(Gn.CHANNEL_ERROR,f)),this._onClose(()=>t==null?void 0:t(Gn.CLOSED)),this.updateJoinPayload(Object.assign({config:p},d)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:f})=>{var v;if(this.socket._isManualToken()||this.socket.setAuth(),f===void 0){t==null||t(Gn.SUBSCRIBED);return}else{const m=this.bindings.postgres_changes,w=(v=m==null?void 0:m.length)!==null&&v!==void 0?v:0,g=[];for(let y=0;y<w;y++){const x=m[y],{filter:{event:S,schema:E,table:k,filter:_}}=x,C=f&&f[y];if(C&&C.event===S&&Ii.isFilterValueEqual(C.schema,E)&&Ii.isFilterValueEqual(C.table,k)&&Ii.isFilterValueEqual(C.filter,_))g.push(Object.assign(Object.assign({},x),{id:C.id}));else{this.unsubscribe(),this.state=$e.errored,t==null||t(Gn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=g,t&&t(Gn.SUBSCRIBED);return}}).receive("error",f=>{this.state=$e.errored,t==null||t(Gn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Gn.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===$e.joined&&t===ya.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,n,r)}async httpSend(t,n,r={}){var s;if(n==null)return Promise.reject("Payload is required for httpSend()");const i={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;
459try{const c=await a.json();l=c.error||c.message||l}catch{}return Promise.reject(new Error(l))}async send(t,n={}){var r,s;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=t,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=c.body)===null||s===void 0?void 0:s.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const c=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&i("ok"),c.receive("ok",()=>i("ok")),c.receive("error",()=>i("error")),c.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=$e.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(dn.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new Nh(this,dn.leave,{},t),r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=$e.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new Nh(this,t,n,r);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>J3){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var s,i;const o=t.toLocaleLowerCase(),{close:a,error:l,leave:c,join:u}=dn;if(r&&[a,l,c,u].indexOf(o)>=0&&r!==this._joinRef())return;let p=this._onMessage(o,n,r);if(n&&!p)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(f=>{var v,m,w;return((v=f.filter)===null||v===void 0?void 0:v.event)==="*"||((w=(m=f.filter)===null||m===void 0?void 0:m.event)===null||w===void 0?void 0:w.toLocaleLowerCase())===o}).map(f=>f.callback(p,r)):(i=this.bindings[o])===null||i===void 0||i.filter(f=>{var v,m,w,g,y,x;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in f){const S=f.id,E=(v=f.filter)===null||v===void 0?void 0:v.event;return S&&((m=n.ids)===null||m===void 0?void 0:m.includes(S))&&(E==="*"||(E==null?void 0:E.toLocaleLowerCase())===((w=n.data)===null||w===void 0?void 0:w.type.toLocaleLowerCase()))}else{const S=(y=(g=f==null?void 0:f.filter)===null||g===void 0?void 0:g.event)===null||y===void 0?void 0:y.toLocaleLowerCase();return S==="*"||S===((x=n==null?void 0:n.event)===null||x===void 0?void 0:x.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===o}).map(f=>{if(typeof p=="object"&&"ids"in p){const v=p.data,{schema:m,table:w,commit_timestamp:g,type:y,errors:x}=v;p=Object.assign(Object.assign({},{schema:m,table:w,commit_timestamp:g,eventType:y,new:{},old:{},errors:x}),this._getPayloadRecords(v))}f.callback(p,r)})}_isClosed(){return this.state===$e.closed}_isJoined(){return this.state===$e.joined}_isJoining(){return this.state===$e.joining}_isLeaving(){return this.state===$e.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const s=t.toLocaleLowerCase(),i={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===r&&Ii.isEqual(s.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(dn.close,{},t)}_onError(t){this._on(dn.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=$e.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Qw(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Qw(t.columns,t.old_record)),n}}const Oh=()=>{},ac={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},iF=[1e3,2e3,5e3,1e4],oF=1e4,aF=` 460 addEventListener("message", (e) => { 461 if (e.data.event === "start") { 462 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 463 } 464 });`;class lF{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Vp,this.transport=null,this.heartbeatIntervalMs=ac.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Oh,this.ref=0,this.reconnectTimer=null,this.vsn=Yw,this.logger=Oh,this.conn=null,this.sendBuffer=[],this.serializer
464=new X3,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=s=>s?(...i)=>s(...i):(...i)=>fetch(...i),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${Up.websocket}`,this.httpEndpoint=PT(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=K3.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n} 465 466To use Realtime in Node.js, you need to provide a WebSocket implementation: 467 468Option 1: Use Node.js 22+ which has native WebSocket support 469Option 2: Install and provide the "ws" package: 470 471 npm install ws 472 473 import ws from "ws" 474 const client = new RealtimeClient(url, { 475 ...options, 476 transport: ws 477 })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,n??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return n==="ok"&&this._remove(t),this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case _r.connecting:return ws.Connecting;case _r.open:return ws.Open;case _r.closing:return ws.Closing;default:return ws.Closed}}isConnected(){return this.connectionState()===ws.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new Ii(`realtime:${t}`,n,this);return this.channels.push(i),i}}push(t){const{topic:n,event:r,payload:s,ref:i}=t,o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(Q3,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},ac.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>
477{if(n.topic==="phoenix"&&n.event==="phx_reply"&&n.ref&&n.ref===this.pendingHeartbeatRef){const c=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error",c)}catch(u){this.log("error","error in heartbeat callback",u)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:r,event:s,payload:i,ref:o}=n,a=o?`(${o})`:"",l=i.status||"";this.log("receive",`${l} ${r} ${s} ${a}`.trim(),i),this.channels.filter(c=>c._isMember(r)).forEach(c=>c._trigger(s,i,o)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===_r.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===_r.open||this.conn.readyState===_r.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(n=>{this.log("error","error waiting for auth on connect",n),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t);try{this.heartbeatCallback("error")}catch(n){this.log("error","error in heartbeat callback",n)}}_triggerChanError(){this.channels.forEach(t=>t._trigger(dn.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${t}${r}${s}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([aF],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEac
477h(s=>{const i={access_token:n,version:G3};n&&s.updateJoinPayload(i),s.joinedOnce&&s._isJoined()&&s._push(dn.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new TT(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},ac.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,s,i,o,a,l,c,u,d,p,f;switch(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.timeout)!==null&&r!==void 0?r:Vp,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:ac.HEARTBEAT_INTERVAL,this.worker=(i=t==null?void 0:t.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=t==null?void 0:t.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(a=t==null?void 0:t.heartbeatCallback)!==null&&a!==void 0?a:Oh,this.vsn=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:Yw,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(c=t==null?void 0:t.reconnectAfterMs)!==null&&c!==void 0?c:v=>iF[v-1]||oF,this.vsn){case Y3:this.encode=(u=t==null?void 0:t.encode)!==null&&u!==void 0?u:(v,m)=>m(JSON.stringify(v)),this.decode=(d=t==null?void 0:t.decode)!==null&&d!==void 0?d:(v,m)=>m(JSON.parse(v));break;case _T:this.encode=(p=t==null?void 0:t.encode)!==null&&p!==void 0?p:this.serializer.encode.bind(this.serializer),this.decode=(f=t==null?void 0:t.decode)!==null&&f!==void 0?f:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}var Ya=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function cF(e,t,n){const r=new URL(t,e);if(n)for(const[s,i]of Object.entries(n))i!==void 0&&r.searchParams.set(s,i);return r.toString()}async function uF(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function dF(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:o}){const a=cF(e.baseUrl,r,s),l=await uF(e.auth),c=await t(a,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...l,...o},body:i?JSON.stringify(i):void 0}),u=await c.text(),d=(c.headers.get("content-type")||"").includes("application/json"),p=d&&u?JSON.parse(u):u;if(!c.ok){const f=d?p:void 0,v=f==null?void 0:f.error;throw new Ya((v==null?void 0:v.message)??`Request failed with status ${c.status}`,{status:c.status,icebergType:v==null?void 0:v.type,icebergCode:v==null?void 0:v.code,details:f})}return{status:c.status,headers:c.headers,data:p}}}}function lc(e){return e.join("�")}var hF=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:lc(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${lc(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${lc(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${lc(e.namespace)}`}),!0}catch(t){if(t instanceof Ya&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Ya&&n.status===409)return;throw n}}};function oi(e){return e.join("�")}var fF=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${oi(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${oi(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${oi(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${oi(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${oi(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${oi(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Ya&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Ya&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},pF=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=dF({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new hF(this.client,t),this.tableOps=new fF(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
477async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},fd=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}};function pd(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var cc=class extends fd{constructor(e,t,n,r="storage"){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},AT=class extends fd{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const mF=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),gF=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Bp=e=>{if(Array.isArray(e))return e.map(n=>Bp(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=Bp(r)}),t},yF=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function Qa(e){"@babel/helpers - typeof";return Qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qa(e)}function vF(e,t){if(Qa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wF(e){var t=vF(e,"string");return Qa(t)=="symbol"?t:t+""}function xF(e,t,n){return(t=wF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zw(Object(n),!0).forEach(function(r){xF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const ex=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},bF=async(e,t,n,r)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(n!=null&&n.noResolveJson)){const s=e,i=s.status||500;if(typeof s.json=="function")s.json().then(o=>{const a=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||i+"";t(new cc(ex(o),i,a,r))}).catch(()=>{if(r==="vectors"){const o=i+"";t(new cc(s.statusText||`HTTP ${i} error`,i,o,r))}else{const o=i+"";t(new cc(s.statusText||`HTTP ${i} error`,i,o,r))}});else{const o=i+"";t(new cc(s.statusText||`HTTP ${i} error`,i,o,r))}}else t(new AT(ex(e),e,r))},SF=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||e==="HEAD"||!r?Y(Y({},s),n):(gF(r)?(s.headers=Y({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(r)):s.body=r,t!=null&&t.duplex&&(s.duplex=t.duplex),Y(Y({},s),n))};async function qo(e,t,n,r,s,i,o){return new Promise((a,l)=>{e(n,SF(t,r,s,i)).then(c=>{if(!c.ok)throw c;if(r!=null&&r.noResolveJson)return c;if(o==="vectors"){const u=c.headers.get("content-type");if(c.headers.get("content-length")==="0"||c.status===204)return{};if(!u||!u.includes("application/json"))return{}}return c.json()}).then(c=>a(c)).catch(c=>bF(c,l,r,o))})}function jT(e="storage"){return{get:async(t,n,r,s)=>qo(t,"GET",n,r,s,void 0,e),post:async(t,n,r,s,i)=>qo(t,"POST",n,s,i,r,e),put:async(t,n,r,s,i)=>qo(t,"PUT",n,s,i,r,e),head:async(t,n,r,s)=>qo(t,"HEAD",n,Y(Y({},r),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,n,r,s,i)=>qo(t,"DELETE",n,s,i,r,e)}}const kF=jT("storage"),{get:Ja,post:an,put:Wp,head:EF,remove:Zg}=kF,At=jT("vectors");var Ro=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=mF(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(pd(n))return{data:null,error:n};throw n}}},_F=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(pd(t))return{data:null,error:t};throw t}}};let RT;RT=Symbol.toStringTag;var TF=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[RT]="BlobDownloadBuilder",this.promise=null}asStream(){return new _F(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(pd(t))return{data:null,error:t};throw t}}};const CF={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},tx={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var PF=class extends Ro{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var s=this;return s.handleOperation(async()=>{let i;const o=Y(Y({},tx),r);let a=Y(Y({},s.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",s.encodeMetadata(l)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),l&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(l))):(i=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=s.toBase64(s.encodeMetadata(l))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),r!=null&&r.headers&&(a=Y(Y({},a),r.headers));const c=s._removeEmptyFolders(t),u=s._getFinalPath(c),d=await(e=="PUT"?Wp:an)(s.fetch,`${s.url}/object/${u}`,i,Y({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:c,id:d.Id,fullPath:d.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var s=this;const i=s._removeEmptyFolders(e),o=s._getFinalPath(i),a=new URL(s.url+`/object/upload/sign/${o}`);return a.searchParams.set("token",t),s.handleOperation(async()=>{let l;const c=Y({upsert:tx.upsert},r),u=Y(Y({},s.headers),{"x-upsert":String(c.upsert)});return typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",c.cacheControl)):(l=n,u["cache-control"]=`max-age=${c.cacheControl}`,u["content-type"]=c.contentType),{path:i,fullPath:(await Wp(s.fetch,a.toString(),l,{headers:u})).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const s=Y({},n.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await an(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:s}),o=new URL(n.url+i.url),a=o.searchParams.get("token");if(!a)throw new fd("No token returned by API");return{signedUrl:o.toString(),path:e,token:a}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await an(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
477stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await an(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let s=r._getFinalPath(e),i=await an(r.fetch,`${r.url}/object/sign/${s}`,Y({expiresIn:t},n!=null&&n.transform?{transform:n.transform}:{}),{headers:r.headers});const o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{signedUrl:encodeURI(`${r.url}${i.signedURL}${o}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const s=await an(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),i=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return s.map(o=>Y(Y({},o),{},{signedUrl:o.signedURL?encodeURI(`${r.url}${o.signedURL}${i}`):null}))})}download(e,t,n){const r=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),i=s?`?${s}`:"",o=this._getFinalPath(e),a=()=>Ja(this.fetch,`${this.url}/${r}/${o}${i}`,{headers:this.headers,noResolveJson:!0},n);return new TF(a,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>Bp(await Ja(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await EF(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(pd(r)&&r instanceof AT){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],s=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";s!==""&&r.push(s);const i=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",o=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});o!==""&&r.push(o);let a=r.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}${a}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await Zg(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const s=Y(Y(Y({},CF),t),{},{prefix:e||""});return await an(r.fetch,`${r.url}/object/list/${r.bucketId}`,s,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=Y({},e);return await an(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const AF="2.95.3",bl={"X-Client-Info":`storage-js/${AF}`};var jF=class extends Ro{constructor(e,t={},n,r){const s=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const i=s.href.replace(/\/$/,""),o=Y(Y({},bl),t);super(i,o,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await Ja(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Ja(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await an(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await Wp(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await an(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Zg(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},RF=class extends Ro{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Y(Y({},bl),t);super(r,s,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await an(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),s=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await Ja(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Zg(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!yF(e))throw new fd("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new pF({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
477),r=this.shouldThrowOnError;return new Proxy(n,{get(s,i){const o=s[i];return typeof o!="function"?o:async(...a)=>{try{return{data:await o.apply(s,a),error:null}}catch(l){if(r)throw l;return{data:null,error:l}}}}})}},NF=class extends Ro{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Y(Y({},bl),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await At.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await At.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await At.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await At.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},OF=class extends Ro{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Y(Y({},bl),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await At.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await At.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await At.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await At.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await At.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},IF=class extends Ro{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Y(Y({},bl),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await At.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await At.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await At.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await At.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},MF=class extends IF{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new LF(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},LF=class extends NF{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,Y(Y({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,Y(Y({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new DF(this.url,this.headers,this.vectorBucketName,e,this.fetch)}}
477,DF=class extends OF{constructor(e,t,n,r,s){super(e,t,s),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,Y(Y({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,Y(Y({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,Y(Y({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,Y(Y({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,Y(Y({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},$F=class extends jF{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new PF(this.url,this.headers,e,this.fetch)}get vectors(){return new MF(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new RF(this.url+"/iceberg",this.headers,this.fetch)}};const NT="2.95.3",mi=30*1e3,Hp=3,Ih=Hp*mi,FF="http://localhost:9999",VF="supabase.auth.token",UF={"X-Client-Info":`gotrue-js/${NT}`},Kp="X-Supabase-Api-Version",OT={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},zF=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,BF=10*60*1e3;class Xa extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function B(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class WF extends Xa{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function HF(e){return B(e)&&e.name==="AuthApiError"}class xs extends Xa{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class dr extends Xa{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class Tt extends dr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Mh(e){return B(e)&&e.name==="AuthSessionMissingError"}class ai extends dr{constructor(){super("Auth session or user missing","AuthInvalidToken
477ResponseError",500,void 0)}}class uc extends dr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class dc extends dr{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function KF(e){return B(e)&&e.name==="AuthImplicitGrantRedirectError"}class nx extends dr{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class qF extends dr{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class qp extends dr{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Lh(e){return B(e)&&e.name==="AuthRetryableFetchError"}class rx extends dr{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class Gp extends dr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Au="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),sx=` 478\r=`.split(""),GF=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<sx.length;t+=1)e[sx[t].charCodeAt(0)]=-2;for(let t=0;t<Au.length;t+=1)e[Au[t].charCodeAt(0)]=t;return e})();function ix(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Au[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Au[r]),t.queuedBits-=6}}function IT(e,t,n){const r=GF[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function ox(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{JF(o,r,n)};for(let o=0;o<e.length;o+=1)IT(e.charCodeAt(o),s,i);return t.join("")}function YF(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function QF(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}YF(r,t)}}function JF(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function qi(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)IT(e.charCodeAt(s),n,r);return new Uint8Array(t)}function XF(e){const t=[];return QF(e,n=>t.push(n)),new Uint8Array(t)}function Ts(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>ix(s,n,r)),ix(null,n,r),t.join("")}function ZF(e){return Math.round(Date.now()/1e3)+e}function eV(){return Symbol("auth-callback")}const qe=()=>typeof window<"u"&&typeof document<"u",fs={tested:!1,writable:!1},MT=()=>{if(!qe())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(fs.tested)return fs.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),fs.tested=!0,fs.writable=!0}catch{fs.tested=!0,fs.writable=!1}return fs.writable};function tV(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
478h((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const LT=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),nV=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",gi=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},ps=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Ke=async(e,t)=>{await e.removeItem(t)};class md{constructor(){this.promise=new md.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}md.promiseConstructor=Promise;function hc(e){const t=e.split(".");if(t.length!==3)throw new Gp("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!zF.test(t[r]))throw new Gp("JWT not in base64url format");return{header:JSON.parse(ox(t[0])),payload:JSON.parse(ox(t[1])),signature:qi(t[2]),raw:{header:t[0],payload:t[1]}}}async function rV(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function sV(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){r(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function iV(e){return("0"+e.toString(16)).substr(-2)}function oV(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,iV).join("")}async function aV(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function lV(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await aV(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function li(e,t,n=!1){const r=oV();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await gi(e,`${t}-code-verifier`,s);const i=await lV(r);return[i,r===i?"plain":"s256"]}const cV=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function uV(e){const t=e.headers.get(Kp);if(!t||!t.match(cV))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function dV(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function hV(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const fV=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function ci(e){if(!fV.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Dh(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function pV(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;if(typeof r=="symbol"){const i=r.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,s)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,s)}})}function ax(e){return JSON.parse(JSON.stringify(e))}const vs=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),mV=[502,503,504];async function lx(e){var t;if(!nV(e))throw new qp(vs(e),0);if(mV.includes(e.status))throw new qp(vs(e),e.status);let n;try{n=await e.json()}catch(i){throw new xs(vs(i),i)}let r;const s=uV(e);if(s&&s.getTime()>=OT["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new rx(vs(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new Tt}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,o)=>
478i&&typeof o=="string",!0))throw new rx(vs(n),e.status,n.weak_password.reasons);throw new WF(vs(n),e.status||500,r)}const gV=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function K(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[Kp]||(i[Kp]=OT["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const o=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await yV(e,t,n+a,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function yV(e,t,n,r,s,i){const o=gV(t,r,s,i);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new qp(vs(l),0)}if(a.ok||await lx(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await lx(l)}}function rn(e){var t;let n=null;xV(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=ZF(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function cx(e){const t=rn(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Pr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function vV(e){return{data:e,error:null}}function wV(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=jo(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function ux(e){return e}function xV(e){return e.access_token&&e.refresh_token&&e.expires_in}const $h=["global","local","others"];class bV{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=LT(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,n=$h[0]){if($h.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${$h.join(", ")}`);try{return await K(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(B(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await K(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Pr})}catch(r){if(B(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=jo(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await K(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:wV,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(B(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await K(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Pr})}catch(n){if(B(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await K(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:ux});if(u.error)throw u.error;const d=await u.json(),p=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(v=>{const m=parseInt(v.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(v.split(";")[1].split("=")[1]);c[`${w}Page`]=m}),c.total=parseInt(p)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if(B(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){ci(t);try{return await K(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Pr})}catch(n){if(B(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){ci(t);try{return await K(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Pr})}catch(r){if(B(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){ci(t);
478try{return await K(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Pr})}catch(r){if(B(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){ci(t.userId);try{const{data:n,error:r}=await K(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(B(n))return{data:null,error:n};throw n}}async _deleteFactor(t){ci(t.userId),ci(t.id);try{return{data:await K(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(B(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await K(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:ux});if(u.error)throw u.error;const d=await u.json(),p=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(v=>{const m=parseInt(v.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(v.split(";")[1].split("=")[1]);c[`${w}Page`]=m}),c.total=parseInt(p)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if(B(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(t){try{return await K(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(B(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await K(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(B(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await K(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(B(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await K(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(B(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await K(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(B(n))return{data:null,error:n};throw n}}}function dx(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const ui={debug:!!(globalThis&&MT()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class DT extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class SV extends DT{}async function kV(e,t,n){ui.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),ui.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){ui.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{ui.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw ui.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new SV(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(ui.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null," "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}function EV(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function $T(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}
478" is invalid.`);return e.toLowerCase()}function _V(e){return parseInt(e,16)}function TV(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function CV(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:a,requestId:l,resources:c,scheme:u,uri:d,version:p}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(p!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${p}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 479`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const f=$T(e.address),v=u?`${u}://${r}`:r,m=e.statement?`${e.statement} 480`:"",w=`${v} wants you to sign in with your Ethereum account: 481${f} 482 483${m}`;let g=`URI: ${d} 484Version: ${p} 485Chain ID: ${n}${o?` 486Nonce: ${o}`:""} 487Issued At: ${i.toISOString()}`;if(s&&(g+=` 488Expiration Time: ${s.toISOString()}`),a&&(g+=` 489Not Before: ${a.toISOString()}`),l&&(g+=` 490Request ID: ${l}`),c){let y=` 491Resources:`;for(const x of c){if(!x||typeof x!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${x}`);y+=` 492- ${x}`}g+=y}return`${w} 493${g}`}class Oe extends Error{constructor({message:t,code:n,cause:r,name:s}){var i;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=s??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}}class ju extends Oe{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function PV({error:e,options:t}){var n,r,s;const{publicKey:i}=t;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Oe({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=i.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Oe({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=i.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Oe({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Oe({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Oe({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Oe({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Oe({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Oe({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(FT(o)){if(i.rp.id!==o)return new Oe({message:`The RP ID "${i.rp.id}
493" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Oe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new Oe({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Oe({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Oe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function AV({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Oe({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Oe({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(FT(r)){if(n.rpId!==r)return new Oe({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Oe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Oe({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Oe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class jV{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const RV=new jV;function NV(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,s=jo(e,["challenge","user","excludeCredentials"]),i=qi(t).buffer,o=Object.assign(Object.assign({},n),{id:qi(n.id).buffer}),a=Object.assign(Object.assign({},s),{challenge:i,user:o});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const c=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},c),{id:qi(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return a}function OV(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=jo(e,["challenge","allowCredentials"]),s=qi(t).buffer,i=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const a=n[o];i.allowCredentials[o]=Object.assign(Object.assign({},a),{id:qi(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return i}function IV(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:Ts(new Uint8Array(e.response.attestationObject)),clientDataJSON:Ts(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function MV(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Ts(new Uint8Array(s.authenticatorData)),clientDataJSON:Ts(new Uint8Array(s.clientDataJSON)),signature:Ts(new Uint8Array(s.signature)),userHandle:s.userHandle?Ts(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function FT(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function hx(){var e,t;return!!(qe()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function LV(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new ju("Browser returned unexpected credential type",t)}:{data:null,error:new ju("Empty credential response",t)}}
493catch(t){return{data:null,error:PV({error:t,options:e})}}}async function DV(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new ju("Browser returned unexpected credential type",t)}:{data:null,error:new ju("Empty credential response",t)}}catch(t){return{data:null,error:AV({error:t,options:e})}}}const $V={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},FV={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Ru(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of e)if(s)for(const i in s){const o=s[i];if(o!==void 0)if(Array.isArray(o))r[i]=o;else if(n(o))r[i]=o;else if(t(o)){const a=r[i];t(a)?r[i]=Ru(a,o):r[i]=Ru(o)}else r[i]=o}return r}function VV(e,t){return Ru($V,e,t||{})}function UV(e,t){return Ru(FV,e,t||{})}class zV{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:s},i){var o;try{const{data:a,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!a)return{data:null,error:l};const c=s??RV.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:u}=a.webauthn.credential_options.publicKey;if(!u.name){const d=r;if(d)u.name=`${u.id}:${d}`;else{const f=(await this.client.getUser()).data.user,v=((o=f==null?void 0:f.user_metadata)===null||o===void 0?void 0:o.name)||(f==null?void 0:f.email)||(f==null?void 0:f.id)||"User";u.name=`${u.id}:${v}`}}u.displayName||(u.displayName=u.name)}switch(a.webauthn.type){case"create":{const u=VV(a.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:d,error:p}=await LV({publicKey:u,signal:c});return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:p}}case"request":{const u=UV(a.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:d,error:p}=await DV(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:u,signal:c}));return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:p}}}}catch(a){return B(a)?{data:null,error:a}:{data:null,error:new xs("Unexpected error in challenge",a)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Xa("rpId is required for WebAuthn authentication")};try{if(!hx())return{data:null,error:new xs("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:i});if(!o)return{data:null,error:a};const{webauthn:l}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:l.type,rpId:n,rpOrigins:r,credential_response:l.credential_response}})}catch(o){return B(o)?{data:null,error:o}:{data:null,error:new xs("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Xa("rpId is required for WebAuthn registration")};try{if(!hx())return{data:null,error:new xs("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(u=>{var d;return(d=u.data)===null||d===void 0?void 0:d.all.find(p=>p.factor_type==="webauthn"&&p.friendly_name===t&&p.status!=="unverified")}).then(u=>u?this.client.mfa.unenroll({factorId:u==null?void 0:u.id}):void 0),{data:null,error:a};const{data:l,error:c}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:c}}catch(o){return B(o)?{data:null,error:o}:{data:null,error:new xs("Unexpected error in register",o)}}}}EV();const BV={url:FF,storageKey:VF,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:UF,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4};async function fx(e,t,n){return await n()}const di={};class Za{get jwks(){var t,n;return(n=(t=di[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){di[this.storageKey]=Object.assign(Object.assign({},di[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=di[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){di[this.storageKey]=Object.assign(Object.assign({},di[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},BV),t);
493if(this.storageKey=i.storageKey,this.instanceID=(n=Za.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Za.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&qe()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new bV({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=LT(i.fetch),this.lock=i.lock||fx,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock?this.lock=i.lock:this.persistSession&&qe()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=kV:this.lock=fx,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new zV(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:MT()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=dx(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=dx(this.memoryStorage)),qe()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(a){this._debug("#broadcastChannel","error",a)}})}this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${NT}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(qe()&&(n=tV(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),qe()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),KF(i)){const l=(t=i.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:i}}return{error:i}}const{session:o,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return B(n)?this._returnResult({error:n}):this._returnResult({error:new xs("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await K(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:rn}),{data:o,error:a}=i;if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(B(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(t){var n,r,s;try{let i;if("email"in t){const{email:u,password:d,options:p}=t;let f=null,v=null;this.flowType==="pkce"&&([f,v]=await li(this.storage,this.storageKey)),i=await K(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:p==null?void 0:p.emailRedirectTo,body:{email:u,password:d,data:(n=p==null?void 0:p.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken},code_challenge:f,code_challenge_method:v},xform:rn})}else if("phone"in t){const{phone:u,password:d,options:p}=t;i=await K(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:d,data:(r=p==null?void 0:p.data)!==null&&r!==void 0?r:{},channel:(s=p==null?void 0:p.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken}},xform:rn})}else throw new uc("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return await Ke(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(await Ke(this.storage,`${this.storageKey}-code-verifier`),B(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(t){try{let n;if("email"in t){const{email:i,password:o,options:a}=t;n=await K(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:cx})}else if("phone"in t){const{phone:i,password:o,options:a}=t;n=await K(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:cx})}else throw new uc("You must provide either an email or phone number and a password");const{data:r,error:s}=n;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!r||!r.session||!r.user){const i=new ai;return this._returnResult({data:{user:null,session:null},error:i})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(B(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,s,i,o,a,l,c,u,d,p;let f,v;if("message"in t)f=t.message,v=t.signature;else{const{chain:m,wallet:w,statement:g,options:y}=t;let x;if(qe())if(typeof w=="object")x=w;else{const P=window;if("ethereum"in P&&typeof P.ethereum=="object"&&"request"in P.ethereum&&typeof P.ethereum.request=="function")x=P.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof w!="object"||!(y!=null&&y.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");x=w}const S=new URL((n=y==null?void 0:y.url)!==null&&n!==void 0?n:window.location.href),E=await x.request({method:"eth_requestAccounts"}).then(P=>P).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!E||E.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const k=$T(E[0]);let _=(r=y==null?void 0:y.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!_){const P=await x.request({method:"eth_chainId"});_=_V(P)}const C={domain:S.host,address:k,statement:g,uri:S.href,version:"1",chainId:_,nonce:(s=y==null?void 0:y.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=y==null?void 0:y.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=y==null?void 0:y.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=y==null?void 0:y.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(c=y==null?void 0:y.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(u=y==null?void 0:y.signInWithEthereum)===null||u===void 0?void 0:u.resources};f=CV(C),v=await x.request({method:"personal_sign",params:[TV(f),k]})}try{const{data:m,error:w}=await K(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:v},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:rn});if(w)throw w;if(!m||!m.session||!m.user){const g=new ai;return this._returnResult({data:{user:null,session:null},error:g})}return m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),this._returnResult({data:Object.assign({},m),error:w})}catch(m){if(B(m))return this._returnResult({data:{user:null,session:null},error:m});throw m}}async signInWithSolana(t){var n,r,s,i,o,a,l,c,u,d,p,f;let v,m;if("message"in t)v=t.message,m=t.signature;else{const{chain:w,wallet:g,statement:y,options:x}=t;let S;if(qe())if(typeof g=="object")S=g;
493else{const k=window;if("solana"in k&&typeof k.solana=="object"&&("signIn"in k.solana&&typeof k.solana.signIn=="function"||"signMessage"in k.solana&&typeof k.solana.signMessage=="function"))S=k.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof g!="object"||!(x!=null&&x.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=g}const E=new URL((n=x==null?void 0:x.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in S&&S.signIn){const k=await S.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},x==null?void 0:x.signInWithSolana),{version:"1",domain:E.host,uri:E.href}),y?{statement:y}:null));let _;if(Array.isArray(k)&&k[0]&&typeof k[0]=="object")_=k[0];else if(k&&typeof k=="object"&&"signedMessage"in k&&"signature"in k)_=k;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in _&&"signature"in _&&(typeof _.signedMessage=="string"||_.signedMessage instanceof Uint8Array)&&_.signature instanceof Uint8Array)v=typeof _.signedMessage=="string"?_.signedMessage:new TextDecoder().decode(_.signedMessage),m=_.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in S)||typeof S.signMessage!="function"||!("publicKey"in S)||typeof S!="object"||!S.publicKey||!("toBase58"in S.publicKey)||typeof S.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");v=[`${E.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...y?["",y,""]:[""],"Version: 1",`URI: ${E.href}`,`Issued At: ${(s=(r=x==null?void 0:x.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=x==null?void 0:x.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${x.signInWithSolana.notBefore}`]:[],...!((o=x==null?void 0:x.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${x.signInWithSolana.expirationTime}`]:[],...!((a=x==null?void 0:x.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${x.signInWithSolana.chainId}`]:[],...!((l=x==null?void 0:x.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${x.signInWithSolana.nonce}`]:[],...!((c=x==null?void 0:x.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${x.signInWithSolana.requestId}`]:[],...!((d=(u=x==null?void 0:x.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||d===void 0)&&d.length?["Resources",...x.signInWithSolana.resources.map(_=>`- ${_}`)]:[]].join(` 494`);const k=await S.signMessage(new TextEncoder().encode(v),"utf8");if(!k||!(k instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");m=k}}try{const{data:w,error:g}=await K(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:v,signature:Ts(m)},!((p=t.options)===null||p===void 0)&&p.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:rn});if(g)throw g;if(!w||!w.session||!w.user){const y=new ai;return this._returnResult({data:{user:null,session:null},error:y})}return w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("SIGNED_IN",w.session)),this._returnResult({data:Object.assign({},w),error:g})}catch(w){if(B(w))return this._returnResult({data:{user:null,session:null},error:w});throw w}}async _exchangeCodeForSession(t){const n=await ps(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new qF;const{data:i,error:o}=await K(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:rn});if(await Ke(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const a=new ai;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(await Ke(this.storage,`${this.storageKey}-code-verifier`),B(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=t,a=await K(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:rn}),{data:l,error:c}=a;if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l||!l.session||!l.user){const u=new ai;return this._returnResult({data:{user:null,session:null},error:u})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:c})}catch(n){if(B(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,s,i,o;try{if("email"in t){const{email:a,options:l}=t;
494let c=null,u=null;this.flowType==="pkce"&&([c,u]=await li(this.storage,this.storageKey));const{error:d}=await K(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:u},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:d})}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:u}=await K(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:u})}throw new uc("You must provide either an email or phone number.")}catch(a){if(await Ke(this.storage,`${this.storageKey}-code-verifier`),B(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var n,r;try{let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await K(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:rn});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(s){if(B(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var n,r,s,i,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await li(this.storage,this.storageKey));const c=await K(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:vV});return!((i=c.data)===null||i===void 0)&&i.url&&qe()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(a){if(await Ke(this.storage,`${this.storageKey}-code-verifier`),B(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new Tt;const{error:s}=await K(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(B(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:i}=t,{error:o}=await K(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:r,type:s,options:i}=t,{data:o,error:a}=await K(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a})}throw new uc("You must provide either an email or phone number and a type")}catch(n){if(B(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await ps(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
494id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Ih:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await ps(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=Dh()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=pV(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await K(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Pr}):await this._useSession(async n=>{var r,s,i;const{data:o,error:a}=n;if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Tt}:await K(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:Pr})})}catch(n){if(B(n))return Mh(n)&&(await this._removeSession(),await Ke(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new Tt;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await li(this.storage,this.storageKey));const{data:c,error:u}=await K(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:Pr});if(u)throw u;return o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await Ke(this.storage,`${this.storageKey}-code-verifier`),B(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Tt;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=hc(t.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});i={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(n){if(B(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:o,error:a}=n;if(a)throw a;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new Tt;const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(B(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!qe())throw new dc("No browser detected.");
494if(t.error||t.error_description||t.error_code)throw new dc(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new nx("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new dc("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new nx("No code detected.");const{data:y,error:x}=await this._exchangeCodeForSession(t.code);if(x)throw x;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:y.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:l,token_type:c}=t;if(!i||!a||!o||!c)throw new dc("No session defined in URL");const u=Math.round(Date.now()/1e3),d=parseInt(a);let p=u+d;l&&(p=parseInt(l));const f=p-u;f*1e3<=mi&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${d}s`);const v=p-d;u-v>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",v,p,u):u-v<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",v,p,u);const{data:m,error:w}=await this._getUser(i);if(w)throw w;const g={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:d,expires_at:p,refresh_token:o,token_type:c,user:m.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:g,redirectType:t.type},error:null})}catch(r){if(B(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await ps(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i&&!Mh(i))return this._returnResult({error:i});const o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(HF(a)&&(a.status===404||a.status===401||a.status===403)||Mh(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await Ke(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=eV(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await li(this.storage,this.storageKey,!0));try{return await K(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(await Ke(this.storage,`${this.storageKey}-code-verifier`),B(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(B(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var o,a,l,c,u;const{data:d,error:p}=i;if(p)throw p;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await K(this.fetch,"GET",f,{headers:this.headers,jwt:(u=(c=d.session)===null||c===void 0?void 0:c.access_token)!==null&&u!==void 0?u:void 0})});if(s)throw s;return qe()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(B(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:s,data:{session:i}}=n;
494if(s)throw s;const{options:o,provider:a,token:l,access_token:c,nonce:u}=t,d=await K(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=i==null?void 0:i.access_token)!==null&&r!==void 0?r:void 0,body:{provider:a,id_token:l,access_token:c,nonce:u,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:rn}),{data:p,error:f}=d;return f?this._returnResult({data:{user:null,session:null},error:f}):!p||!p.session||!p.user?this._returnResult({data:{user:null,session:null},error:new ai}):(p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("USER_UPDATED",p.session)),this._returnResult({data:p,error:f}))}catch(s){if(await Ke(this.storage,`${this.storageKey}-code-verifier`),B(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)throw o;return await K(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(B(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await sV(async s=>(s>
4940&&await rV(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await K(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:rn})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Lh(i)&&Date.now()+o-r<mi})}catch(r){if(this._debug(n,"error",r),B(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),qe()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await ps(this.storage,this.storageKey);if(s&&this.userStorage){let o=await ps(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await gi(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:Dh()}else if(s&&!s.user&&!s.user){const o=await ps(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await Ke(this.storage,this.storageKey+"-user"),await gi(this.storage,this.storageKey,s)):s.user=Dh()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const i=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Ih;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${Ih}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),Lh(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(s.access_token);!a&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new Tt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new md;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new Tt;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const a={data:i.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(i){if(this._debug(s,"error",i),B(i)){const o={data:null,error:i};return Lh(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Ke(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await gi(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=ax(s);await gi(this.storage,this.storageKey,i)}else{const s=ax(n);await gi(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Ke(this.storage,this.storageKey),await Ke(this.storage,this.storageKey+"-code-verifier"),await Ke(this.storage,this.storageKey+"-user"),this.userStorage&&await Ke(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&qe()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
494catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),mi);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/mi);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${mi}ms, refresh threshold is ${Hp} ticks`),s<=Hp&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof DT)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!qe()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await li(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?this._returnResult({data:null,error:i}):await K(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(B(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)return this._returnResult({data:null,error:o});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:c}=await K(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return c?this._returnResult({data:null,error:c}):(t.factorType==="totp"&&l.type==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(n){if(B(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?IV(t.webauthn.credential_response):MV(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await K(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(n){if(B(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=await K(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});if(o.error)return o;const{data:a}=o;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:NV(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:OV(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(B(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,s,i;if(t)try{const{payload:f}=hc(t);let v=null;f.aal&&(v=f.aal);let m=v;const{data:{user:w},error:g}=await this.getUser(t);if(g)return this._returnResult({data:null,error:g});((r=(n=w==null?void 0:w.factors)===null||n===void 0?void 0:n.filter(S=>S.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(m="aal2");const x=f.amr||[];return{data:{currentLevel:v,nextLevel:m,currentAuthenticationMethods:x},error:null}}catch(f){if(B(f))return this._returnResult({data:null,error:f});throw f}const{data:{session:o},error:a}
494=await this.getSession();if(a)return this._returnResult({data:null,error:a});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=hc(o.access_token);let c=null;l.aal&&(c=l.aal);let u=c;((i=(s=o.user.factors)===null||s===void 0?void 0:s.filter(f=>f.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(u="aal2");const p=l.amr||[];return{data:{currentLevel:c,nextLevel:u,currentAuthenticationMethods:p},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await K(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Tt})})}catch(n){if(B(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Tt});const o=await K(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&qe()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(B(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Tt});const o=await K(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&qe()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(B(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await K(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new Tt})})}catch(t){if(B(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?(await K(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Tt})})}catch(n){if(B(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+BF>s)return r;const{data:i,error:o}=await K(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:f,error:v}
494=await this.getSession();if(v||!f.session)return this._returnResult({data:null,error:v});r=f.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=hc(r);n!=null&&n.allowExpired||dV(i.exp);const c=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!c){const{error:f}=await this.getUser(r);if(f)throw f;return{data:{claims:i,header:s,signature:o},error:null}}const u=hV(s.alg),d=await crypto.subtle.importKey("jwk",c,u,!0,["verify"]);if(!await crypto.subtle.verify(u,d,o,XF(`${a}.${l}`)))throw new Gp("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(B(r))return this._returnResult({data:null,error:r});throw r}}}Za.nextInstanceID={};const WV=Za,HV="2.95.3";let ta="";typeof Deno<"u"?ta="deno":typeof document<"u"?ta="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ta="react-native":ta="node";const KV={"X-Client-Info":`supabase-js-${ta}/${HV}`},qV={headers:KV},GV={schema:"public"},YV={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},QV={};function el(e){"@babel/helpers - typeof";return el=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},el(e)}function JV(e,t){if(el(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(el(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XV(e){var t=JV(e,"string");return el(t)=="symbol"?t:t+""}function ZV(e,t,n){return(t=XV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function px(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?px(Object(n),!0).forEach(function(r){ZV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):px(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const eU=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),tU=()=>Headers,nU=(e,t,n)=>{const r=eU(n),s=tU();return async(i,o)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let c=new s(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),r(i,Ae(Ae({},o),{},{headers:c}))}};function rU(e){return e.endsWith("/")?e:e+"/"}function sU(e,t){var n,r;const{db:s,auth:i,realtime:o,global:a}=e,{db:l,auth:c,realtime:u,global:d}=t,p={db:Ae(Ae({},l),s),auth:Ae(Ae({},c),i),realtime:Ae(Ae({},u),o),storage:{},global:Ae(Ae(Ae({},d),a),{},{headers:Ae(Ae({},(n=d==null?void 0:d.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?p.accessToken=e.accessToken:delete p.accessToken,p}function iU(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(rU(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var oU=class extends WV{constructor(e){super(e)}},aU=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const i=iU(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const o=`sb-${i.hostname.split(".")[0]}-auth-token`,a={db:GV,realtime:QV,auth:Ae(Ae({},YV),{},{storageKey:o}),global:qV},l=sU(n??{},a);if(this.storageKey=(r=l.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(s=l.global.headers)!==null&&s!==void 0?s:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(u,d)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(d)} is not possible`)}});else{var c;this.auth=this._initSupabaseAuthClient((c=l.auth)!==null&&c!==void 0?c:{},this.headers,l.global.fetch)}this.fetch=nU(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(Ae({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(u=>this.realtime.setAuth(u)).catch(u=>console.warn("Failed to set initial Realtime auth token:",u)),this.rest=new H3(new URL("rest/v1",i).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch,timeout:l.db.timeout,urlLengthLimit:l.db.urlLengthLimit}),this.storage=new $F(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new D3(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}
494channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,storageKey:i,flowType:o,lock:a,debug:l,throwOnError:c},u,d){const p={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new oU({url:this.authUrl.href,headers:Ae(Ae({},p),u),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:o,lock:a,debug:l,throwOnError:c,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(f=>f.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new lF(this.realtimeUrl.href,Ae(Ae({},e),{},{params:Ae(Ae({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const lU=(e,t,n)=>new aU(e,t,n);function cU(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}cU()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function uU(){var w,g;if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(y=>e===y||e.endsWith("."+y)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=n?((w=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:w[1])??((g=e.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:g[1]):void 0,i=window.parent&&window.parent!==window;if(!s||!i)return localStorage;const o=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),a=o?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,l=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),c=l&&a.test(l)?[l]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],u="lovable-preview-auth:result",d=2e3,p=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),f=(y,x,S)=>new Promise(E=>{const k=p();let _=!1,C;const P=O=>{_||(_=!0,clearTimeout(C),window.removeEventListener("message",j),E(O))},j=O=>{if(c.indexOf(O.origin)<0)return;const z=O.data;z&&z.type===u&&z.requestId===k&&P(z)};window.addEventListener("message",j);const D={type:y,requestId:k,projectId:s,key:x};S!==void 0&&(D.value=S);for(const O of c)window.parent.postMessage(D,O);C=setTimeout(()=>P(null),d)});let v=!0;const m=250;return{getItem:async y=>{let x=await f("lovable-preview-auth:get",y);return!x&&v&&(await new Promise(S=>setTimeout(S,m)),x=await f("lovable-preview-auth:get",y)),v=!1,x&&x.ok&&typeof x.value=="string"?x.value===""?(localStorage.removeItem(y),null):x.value:localStorage.getItem(y)},setItem:(y,x)=>(localStorage.setItem(y,x),f("lovable-preview-auth:set",y,x).then(S=>{S&&S.ok&&typeof S.value=="string"&&localStorage.getItem(y)===x&&(S.value===""?localStorage.removeItem(y):localStorage.setItem(y,S.value))})),removeItem:y=>(localStorage.removeItem(y),f("lovable-preview-auth:remove",y).then(()=>{}))}}const dU="https://piiqbjwyvqgcfuqlkbvo.supabase.co",hU="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InBpaXFiand5dnFnY2Z1cWxrYnZvIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzEyNjY0NzEsImV4cCI6MjA4Njg0MjQ3MX0.aKo6mIT
494wXk2QvPjR3YIfEmbW-gztW3J1d4VqaS77RKc",Dn=lU(dU,hU,{auth:{storage:uU(),persistSession:!0,autoRefreshToken:!0}}),fU={profile:null,loyaltyCode:null,loyaltyPercent:null,loading:!0};let va=fU,Go=null,mx=!1;const Yp=new Set,Qp=e=>{va=e,Yp.forEach(t=>t(e))},pU=async()=>{var o;const{data:e}=await Dn.auth.getSession(),t=(o=e.session)==null?void 0:o.user;if(!t){Qp({profile:null,loyaltyCode:null,loyaltyPercent:null,loading:!1});return}const[{data:n},{data:r}]=await Promise.all([Dn.from("profiles").select("email, first_name, last_name, phone, address1, address2, city, zip, province, country").eq("id",t.id).maybeSingle(),Dn.from("customer_coupons").select("shopify_code, discount_percent, expires_at").eq("is_used",!1).order("created_at",{ascending:!1}).limit(1)]),s=r==null?void 0:r[0],i=s&&(!s.expires_at||new Date(s.expires_at)>new Date);Qp({profile:n?{...n,email:n.email||(t.email??"")}:{email:t.email??""},loyaltyCode:i?s.shopify_code:null,loyaltyPercent:i?s.discount_percent:null,loading:!1})},gx=(e=!1)=>(Go&&!e||(Go=pU().catch(t=>{console.error("Checkout profile load failed",t),Qp({...va,loading:!1})}).finally(()=>{Go=null})),Go),mU=()=>{const[e,t]=b.useState(va);return b.useEffect(()=>(Yp.add(t),t(va),va.loading&&gx(),mx||(mx=!0,Dn.auth.onAuthStateChange(n=>{n==="TOKEN_REFRESHED"||n==="INITIAL_SESSION"||setTimeout(()=>gx(!0),0)})),()=>{Yp.delete(t)}),[]),e};function gU(e,t){return t!=="cs"?e:e.toLocaleLowerCase("cs-CZ").replace(new RegExp("\\p{L}","u"),n=>n.toLocaleUpperCase("cs-CZ"))}function ey(e){const t=eI({queryKey:["product-translations",e],queryFn:async()=>{const{data:s,error:i}=await Dn.from("product_translations").select("product_handle, title, description").eq("locale",e);if(i)throw i;return s||[]},staleTime:3e5}),n=b.useMemo(()=>(t.data||[]).reduce((s,i)=>(s[i.product_handle]={title:i.title,description:i.description},s),{}),[t.data]),r=b.useCallback(s=>{var i;return gU(((i=n[s.handle])==null?void 0:i.title)||s.title,e)},[n,e]);return{...t,byHandle:n,titleFor:r}}const yx={applied:{cs:"Klubová sleva je aktivnÃ",es:"Descuento del Club aplicado",en:"Club discount applied"},code:{cs:"Kód",es:"Código",en:"Code"},whereFrozen:{cs:"Sleva se pÅidá automaticky v pokladnÄ Shopify â uvidÃte ji pÅed zaplacenÃm.",es:"El descuento se aplica automáticamente en el checkout â lo vas a ver antes de pagar.",en:"The discount is applied automatically at checkout â you'll see it before paying."},wherePickup:{cs:"Sleva je pÅipsaná k této objednávce a odeÄteme ji pÅi vyzvednutà a platbÄ.",es:"El descuento queda registrado en este pedido y se descuenta al retirar y pagar.",en:"The discount is recorded on this order and is deducted when you pick up and pay."},confirmFrozen:{cs:"Potvrzenà dostanete e-mailem hned po zaplacenÃ.",es:"RecibÃs la confirmación por email apenas termines el pago.",en:"You'll get the confirmation by email right after paying."},confirmPickup:{cs:"Potvrzenà dostanete e-mailem hned po odeslánà objednávky.",es:"RecibÃs la confirmación por email apenas envÃes el pedido.",en:"You'll get the confirmation by email as soon as you send the order."},sameEverywhere:{cs:"Stejná sleva platà pro mražené i pro ÄerstvÄ peÄené.",es:"El mismo descuento vale para congeladas y para recién horneadas.",en:"The same discount applies to frozen and freshly baked."},noneTitle:{cs:"SbÃrejte klubové slevy",es:"Sumá descuentos del Club",en:"Collect Club discounts"},noneBody:{cs:"PÅihlaste se a zÃskejte 15 % / 20 % / 25 % podle poÄtu nákupů â platà stejnÄ pro mražené i ÄerstvÄ peÄené.",es:"Iniciá sesión y obtené 15% / 20% / 25% según tus compras â igual para congeladas y recién horneadas.",en:"Sign in and unlock 15% / 20% / 25% based on your orders â the same for frozen and freshly baked."}},Wn=(e,t)=>yx[e][t]??yx[e].en,yU=({locale:e,channel:t,code:n,percent:r,className:s=""})=>!n||!r?h.jsx("div",{className:`rounded-2xl border border-primary/20 bg-primary/5 px-4 py-3 ${s}`,children:h.jsxs("div",{className:"flex items-start gap-2",children:[h.jsx($S,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-primary"}),h.jsxs("div",{className:"space-y-1",children:[h.jsx("p",{className:"text-sm font-semibold leading-tight",children:Wn("noneTitle",e)}),h.jsx("p",{className:"text-xs text-muted-foreground",children:Wn("noneBody",e)})]})]})}):h.jsx("div",{className:`rounded-2xl border-2 border-accent bg-accent px-4 py-3 text-accent-foreground ${s}`,children:h.jsxs("div",{className:"flex items-start gap-2",children:[h.jsx(DS,{className:"mt-0.5 h-4 w-4 flex-shrink-0"}),h.jsxs("div",{className:"space-y-1",children:[h.jsxs("p",{className:"text-sm md:text-base font-bold leading-snug",children:[Wn("applied",e)," â ",r,"%"]}),h.jsxs("p",{className:"text-xs font-semibold opacity-90",children:[Wn("code",e),": ",n]}),h.jsx("p",{className:"text-xs opacity-90",children:Wn(t==="frozen"?"whereFrozen":"wherePickup",e)}),h.jsxs("p",{className:"flex items-start gap-1.5 text-xs opacity-90",children:[h.jsx(iR,{className:"mt-0.5 h-3.5 w-3.5 flex-shrink-0"}),Wn(t==="frozen"?"confirmFrozen":"confirmPickup",e)]}),h.jsx("p",{className:"text-[11px] opacity-80",children:Wn("sameEverywhere",e)})]})]})}),hi={title:{cs:"ZÃskejte vÃce slev",es:"Conseguà más cupones",en:"Get more coupons"},text:{cs:"PÅihlaste se a sbÃrejte nákupy: 15 %, 20 % nebo 25 % sleva podle vašà úrovnÄ.",es:"Iniciá sesión y sumá compras: 15 %, 20 % o 25 % de descuento según tu nivel.",en:"Sign in and collect purchases: 15%, 20% or 25% off depending on your level."},frozenOnly:{cs:"Platà pro online pÅedobjednávku ÄerstvÄ peÄených i pro nákup mra
494žených.",es:"Válido para el pre-pedido online de recién horneadas y la compra de congeladas.",en:"Valid for online pre-orders of freshly baked and for frozen purchases."},cta:{cs:"PÅihlásit se / registrovat",es:"Iniciar sesión / crear cuenta",en:"Sign in / create account"},myCoupons:{cs:"Moje kupóny",es:"Mis cupones",en:"My coupons"}},vx=()=>{var S,E;const[e,t]=b.useState(!1),[n,r]=b.useState(!1),{items:s,isLoading:i,isSyncing:o,updateQuantity:a,removeItem:l,getCheckoutUrl:c,syncCart:u}=wu(),{profile:d,loyaltyCode:p,loyaltyPercent:f}=mU(),{locale:v}=wn(),{titleFor:m}=ey(v),w=s.reduce((k,_)=>k+_.quantity,0),g=s.reduce((k,_)=>k+parseFloat(_.price.amount)*_.quantity,0);b.useEffect(()=>{Dn.auth.getSession().then(({data:_})=>r(!!_.session));const{data:k}=Dn.auth.onAuthStateChange((_,C)=>r(!!C));return()=>k.subscription.unsubscribe()},[]),b.useEffect(()=>{e&&u()},[e,u]);const y=k=>{t(!1),window.location.href=k},x=()=>{const k=mM(s.map(({variantId:_,quantity:C})=>({variantId:_,quantity:C})),v,{prefill:d,discount:p});k?y(k):Zm.error(q("cart.checkoutError",v))};return h.jsxs(R3,{open:e,onOpenChange:t,children:[h.jsx(N3,{asChild:!0,children:h.jsxs(xt,{variant:"ghost",size:"icon",className:"relative","aria-label":q("cart.title",v),children:[h.jsx(Iv,{className:"h-5 w-5"}),w>0&&h.jsx(S4,{className:"absolute -top-2 -right-2 h-5 w-5 rounded-full p-0 flex items-center justify-center text-xs",children:w})]})}),h.jsxs(xT,{className:"w-full sm:max-w-lg flex flex-col h-full",children:[h.jsxs(bT,{className:"flex-shrink-0",children:[h.jsx(ST,{children:q("cart.title",v)}),h.jsx(kT,{children:w===0?q("cart.empty",v):`${w} ${q("cart.items",v)}`})]}),h.jsx("div",{className:"flex flex-col flex-1 pt-6 min-h-0",children:s.length===0?h.jsx("div",{className:"flex-1 flex items-center justify-center",children:h.jsxs("div",{className:"text-center",children:[h.jsx(Iv,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),h.jsx("p",{className:"text-muted-foreground",children:q("cart.empty",v)})]})}):h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"flex-1 overflow-y-auto pr-2 min-h-0",children:h.jsx("div",{className:"space-y-4",children:s.map(k=>{var _,C,P;return h.jsxs("div",{className:"flex gap-4 p-2 rounded-lg border border-border",children:[h.jsx("div",{className:"w-16 h-16 bg-secondary rounded-md overflow-hidden flex-shrink-0",children:((P=(C=(_=k.product.node.images)==null?void 0:_.edges)==null?void 0:C[0])==null?void 0:P.node)&&h.jsx("img",{src:k.product.node.images.edges[0].node.url,alt:m(k.product.node),className:"w-full h-full object-cover"})}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("h4",{className:"font-medium truncate text-sm",children:m(k.product.node)}),h.jsx("p",{className:"text-xs text-muted-foreground",children:k.selectedOptions.map(j=>j.value).join(" ⢠")}),h.jsxs("p",{className:"font-semibold text-sm",children:[parseFloat(k.price.amount).toFixed(0)," ",k.price.currencyCode]})]}),h.jsxs("div",{className:"flex flex-col items-end gap-2 flex-shrink-0",children:[h.jsx(xt,{variant:"ghost",size:"icon",className:"h-6 w-6","aria-label":q("action.removeItem",v),onClick:()=>l(k.variantId),children:h.jsx(mR,{className:"h-3 w-3"})}),h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx(xt,{variant:"outline",size:"icon",className:"h-6 w-6","aria-label":q("action.decreaseQuantity",v),onClick:()=>a(k.variantId,k.quantity-1),children:h.jsx(FS,{className:"h-3 w-3"})}),h.jsx("span",{className:"w-6 text-center text-xs",children:k.quantity}),h.jsx(xt,{variant:"outline",size:"icon",className:"h-6 w-6","aria-label":q("action.increaseQuantity",v),onClick:()=>a(k.variantId,k.quantity+1),children:h.jsx(Hf,{className:"h-3 w-3"})})]})]})]},k.variantId)})})}),h.jsxs("div",{className:"flex-shrink-0 space-y-4 pt-4 border-t",children:[p&&f?h.jsx(yU,{locale:v,channel:"frozen",code:p,percent:f}):h.jsx("div",{className:"rounded-2xl border border-primary/20 bg-primary/5 p-3",children:h.jsxs("div",{className:"flex items-start gap-2",children:[h.jsx($S,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-primary"}),h.jsxs("div",{className:"space-y-1",children:[h.jsx("p",{className:"text-sm font-semibold leading-tight",children:hi.title[v]}),h.jsx("p",{className:"text-xs text-muted-foreground",children:hi.text[v]}),h.jsx("p",{className:"text-[11px] text-muted-foreground",children:hi.frozenOnly[v]}),h.jsxs(Je,{to:"/cuenta",onClick:()=>t(!1),className:"inline-flex items-center gap-1 text-xs font-medium text-primary underline underline-offset-4",children:[h.jsx(Jm,{className:"h-3 w-3"}),n?hi.myCoupons[v]:hi.cta[v]]})]})]})}),h.jsxs("div",{className:"space-y-1",children:[h.jsxs("div",{className:"flex justify-between items-center",children:[h.jsx("span",{className:"text-lg font-semibold",children:q("cart.total",v)}),h.jsxs("span",{className:`text-xl font-bold ${f?"line-through opacity-60 text-base":""}`,children:[g.toFixed(0)," ",(S=s[0])==null?void 0:S.price.currencyCode]})]}),f&&h.jsxs("div",{className:"flex justify-between items-center",children:[h.jsx("span",{className:"text-sm text-muted-foreground",children:v==="cs"?`S klubovou slevou ${f} %`:v==="es"?`Con descuento del Club ${f}%`:`With Club discount ${f}%`}),h.jsxs("span",{className:"text-xl font-bold text-accent",children:[(g*(1-f/100)).toFixed(0)," ",(E=s[0])==null?void 0:E.price.currencyCode]})]})]}),h.jsx(xt,{onClick:x,className:"w-full",size:"lg",disabled:s.length===0||i,children:i||o?h.jsx(Wf,{className:"w-4 h-4 animate-spin"}):h.jsxs(h.Fragment,{children:[h.jsx(cR,{className:"w-4 h-4 mr-2"}),q("cart.checkout",v)]})}),h.jsx("p",{className:"text-center text-[11px] text-muted-foreground",children:hi.frozenOnly[v]})]})]})})]})]})},wx={cs:"ð¨ð¿",es:"ðªð¸",en:"ð¬ð§"},vU={cs:"ÄeÅ¡tina",es:"Español",en:"English"},xx=()=>{const{locale:e,setLocale:t}=wn();return h.jsx("div",{className:"flex items-center gap-1",children:Object.keys(wx).map(n=>h.jsx(xt,{variant:"ghost","aria-label":vU[n],"aria-pressed":e===n,onClick:()=>t(n),className:`h-auto text-lg px-1 py-0.5 rounded transition-all ${e===n?"bg-primary/10 scale-110":"opacity-60 hover:opacity-100"}`,children:wx[n]},n))})},wU="/assets/logo-BtOmoH_-.avif",xU=()=>{const{locale:e}=wn(),[t,n]=b.useState(!1),[r,s]=b.useState(!1),i=as(),o=qk(),a=m=>m==="/"?i.pathname==="/":i.pathname.startsWith(m.replace("/#","/"));b.useEffect(()=>{const m=()=>s(window.scrollY>20);return window.addEventListener("scroll",m,{passive:!0}),()=>window.removeEventListener("scroll",m)},[]);const l=()=>
494{const m=document.querySelector("header");return((m==null?void 0:m.offsetHeight)||80)+16};b.useEffect(()=>{if(i.hash){const m=document.getElementById(i.hash.slice(1));m&&setTimeout(()=>{const w=m.getBoundingClientRect().top+window.scrollY-l();window.scrollTo({top:w,behavior:"smooth"})},100)}},[i]);const c=[{href:"/",label:q("nav.home",e),isRoute:!0},{href:"/#empanadas",label:q("nav.empanadas",e)},{href:"/yerba-mate",label:q("nav.yerbamate",e),isRoute:!0},{href:"/kiosk",label:q("nav.almacen",e),isRoute:!0}],u=[{href:"/vino",label:q("nav.vino",e),isRoute:!0},{href:"/events",label:q("nav.events",e),isRoute:!0},{href:"/contact",label:q("nav.contact",e),isRoute:!0},{href:"/cuenta",label:q("nav.account",e),isRoute:!0,icon:Jm}],d=[...c,...u],p=(m,w)=>{m.preventDefault(),n(!1);const g=w.replace("/#","");i.pathname==="/"?window.setTimeout(()=>{const y=document.getElementById(g);if(y){const x=y.getBoundingClientRect().top+window.scrollY-l();window.scrollTo({top:x,behavior:"smooth"})}},80):o(w)},f=(m,w)=>{const g=h.jsxs(h.Fragment,{children:[m.icon&&h.jsx(m.icon,{className:"h-4 w-4"}),h.jsx("span",{children:m.label})]}),y=m.href==="/cuenta",S=w.includes("block")?"flex":"inline-flex",E=y?`${S} items-center gap-1.5 rounded-full px-3 py-1.5 bg-primary/10 text-primary hover:bg-primary/15 ${w}`:`${S} items-center gap-1.5 ${w}`;return m.isRoute?h.jsx(Je,{to:m.href,className:E,onClick:()=>n(!1),children:g},m.href):h.jsx("a",{href:m.href,className:E,onClick:k=>p(k,m.href),children:g},m.href)},v=m=>`text-[13px] font-medium tracking-wide uppercase transition-colors duration-300 ${a(m)?"text-foreground font-semibold":"text-muted-foreground hover:text-foreground"}`;return h.jsxs(h.Fragment,{children:[h.jsxs("header",{className:`sticky top-0 z-50 transition-all duration-500 ${r?"bg-background/95 backdrop-blur-xl shadow-sm border-b border-border/50":"bg-background/95 backdrop-blur-sm border-b border-border/20"}`,children:[h.jsxs("div",{className:"container mx-auto px-4 h-20 flex items-center justify-between",children:[h.jsxs("div",{className:"hidden lg:flex items-center w-full",children:[h.jsx("div",{className:"flex items-center justify-end gap-6 flex-1",children:h.jsx("nav",{className:"flex items-center gap-6",children:c.map(m=>f(m,v(m.href)))})}),h.jsx(Je,{to:"/",className:"flex items-center justify-center gap-2 group shrink-0 px-6",children:h.jsx("img",{src:wU,alt:"Malá Argenta",className:"h-14 w-auto transition-transform duration-300 group-hover:scale-105 rounded-full"})}),h.jsx("div",{className:"flex items-center justify-start gap-6 flex-1",children:h.jsx("nav",{className:"flex items-center gap-6",children:u.map(m=>f(m,v(m.href)))})})]}),h.jsxs("div",{className:"flex lg:hidden items-center justify-between w-full",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(xx,{}),h.jsx(vx,{})]}),h.jsx(xt,{variant:"ghost",size:"icon","aria-label":q(t?"action.close":"action.openMenu",e),"aria-expanded":t,className:"p-2 rounded-xl hover:bg-secondary/50 transition-colors",onClick:()=>n(!t),children:t?h.jsx(So,{className:"h-5 w-5"}):h.jsx(hR,{className:"h-5 w-5"})})]})]}),t&&h.jsx("nav",{className:"lg:hidden bg-background/95 backdrop-blur-xl px-4 py-6 space-y-4 border-t border-border/50",children:d.map(m=>f(m,`block text-sm font-medium transition-colors ${a(m.href)?"text-foreground font-semibold":"text-muted-foreground hover:text-foreground"}`))})]}),h.jsxs("div",{className:"hidden lg:flex fixed top-[5.25rem] right-5 z-40 items-center gap-1.5 px-2 py-1.5 rounded-full bg-background/80 backdrop-blur-md border border-border/30 shadow-sm pointer-events-auto",children:[h.jsx(xx,{}),h.jsx(vx,{})]})]})},fc=new Map;let bx=null;function VT(e,t){const[n,r]=b.useState(e||"");return b.useEffect(()=>{if(bx!==t&&(fc.clear(),bx=t),!e){r("");return}if(t==="cs"){r(e);return}const s=`${t}:${e}`;if(fc.has(s)){r(fc.get(s));return}r(e);let i=!1;return(async()=>{try{const{data:o,error:a}=await Dn.functions.invoke("translate",{body:{text:e,targetLang:t}});if(a){console.error("Translation invoke error:",a);return}!i&&(o!=null&&o.translated)&&(fc.set(s,o.translated),r(o.translated))}catch(o){console.error("Translation failed:",o)}})(),()=>{i=!0}},[e,t]),n}const bU={gluten:["gluten","lepek","wheat","pÅ¡enice","psenice","trigo"],milk:["milk","mleko","mléko","leche","dairy","lácteos","lacteos"],eggs:["egg","eggs","vejce","huevo","huevos"],mustard:["mustard","horcice","hoÅÄice","mostaza"],soy:["soy","soya","soja","sója"],celery:["celery","celer","apio"],nuts:["nuts","nut","orechy","oÅechy","frutos secos","tree nuts"],peanuts:["peanut","peanuts","arasidy","araÅ¡Ãdy","mani","manÃ","cacahuete"],fish:["fish","ryby","pescado"],crustaceans:["crustaceans","korýši","korysi","crustaceos","crustáceos"],molluscs:["molluscs","mollusks","mÄkkýši","mekkysi","moluscos"],sesame:["ses
494ame","sezam","sesamo","sésamo"],sulphites:["sulphites","sulfites","siÅiÄitany","siricitany","sulfitos"],lupin:["lupin","vlÄà bob","vlci bob","altramuces"]},SU={gluten:{cs:"Lepek",es:"Gluten",en:"Gluten"},milk:{cs:"Mléko",es:"Leche",en:"Milk"},eggs:{cs:"Vejce",es:"Huevo",en:"Eggs"},mustard:{cs:"HoÅÄice",es:"Mostaza",en:"Mustard"},soy:{cs:"Sója",es:"Soja",en:"Soy"},celery:{cs:"Celer",es:"Apio",en:"Celery"},nuts:{cs:"OÅechy",es:"Frutos secos",en:"Nuts"},peanuts:{cs:"AraÅ¡Ãdy",es:"ManÃ",en:"Peanuts"},fish:{cs:"Ryby",es:"Pescado",en:"Fish"},crustaceans:{cs:"Korýši",es:"Crustáceos",en:"Crustaceans"},molluscs:{cs:"MÄkkýši",es:"Moluscos",en:"Molluscs"},sesame:{cs:"Sezam",es:"Sésamo",en:"Sesame"},sulphites:{cs:"SiÅiÄitany",es:"Sulfitos",en:"Sulphites"},lupin:{cs:"VlÄà bob",es:"Altramuces",en:"Lupin"}},Fh=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim(),kU=e=>{const t=Fh(e);if(!t)return null;for(const[n,r]of Object.entries(bU))if(r.some(s=>Fh(s)===t||t.includes(Fh(s))))return n;return null},EU=(e,t)=>{var n;return((n=SU[e])==null?void 0:n[t])||e},_U=e=>e==="cs"?"Alergeny":e==="es"?"Alérgenos":"Allergens",Nu=e=>{if(!e)return{description:"",allergens:[]};const t=[],n=[];return{description:e.split(/\r?\n/).map(s=>{const i=s.indexOf("*");return i===-1?s:(s.slice(i+1).split(/[,;/|â¢]+/).map(a=>a.replace(/[*.:]+/g,"").trim()).filter(Boolean).forEach(a=>{const l=kU(a);l?t.includes(l)||t.push(l):a.length<=24&&!n.includes(a)&&n.push(a)}),s.slice(0,i))}).join(` 495`).replace(/\n{3,}/g,` 496 497`).trim(),allergens:[...t,...n]}},UT=({allergens:e,size:t="sm",showTitle:n=!1,className:r=""})=>{const{locale:s}=wn();if(!(e!=null&&e.length))return null;const i=t==="md"?"text-[11px] px-2.5 py-1":"text-[9px] px-1.5 py-0.5";return h.jsxs("div",{className:`flex flex-wrap items-center gap-1 ${r}`,children:[n&&h.jsx("span",{className:"text-[10px] uppercase tracking-[0.12em] text-muted-foreground/70 mr-1",children:_U(s)}),e.map(o=>h.jsx("span",{className:`${i} rounded-full border border-border/60 bg-secondary/40 text-muted-foreground/80 font-medium tracking-wide`,children:EU(o,s)},o))]})}
497,Sx=Be(xt),kx=({product:e,hidePrice:t=!1,disableLink:n=!1,frozenBadge:r=!1,hideCart:s=!1,showDescription:i=!1,imageOnly:o=!1,showCartButton:a=!1,forceSoldOut:l=!1})=>{var ne,Lt,mt,Dt;const c=wu(ce=>ce.addItem),u=wu(ce=>ce.isLoading),{locale:d}=wn(),{byHandle:p,titleFor:f}=ey(d),[v,m]=b.useState(1),[w,g]=b.useState(!1),[y,x]=b.useState(!1),{node:S}=e,E=(ne=S.images.edges[0])==null?void 0:ne.node,k=(Lt=S.images.edges[1])==null?void 0:Lt.node,_=(mt=S.variants.edges[0])==null?void 0:mt.node,C=S.priceRange.minVariantPrice,P=f(S),j=(Dt=p[S.handle])==null?void 0:Dt.description,D=VT(j||!i?null:S.description,d),O=j??D,z=Nu(S.description),M=Nu(typeof O=="string"?O:""),Q=M.description,H=M.allergens.length?M.allergens:z.allergens,$=S.handle.includes("limited-edition"),A=$?"object-contain p-2":"object-cover",R=$?"&width=600":"&width=400&height=400&crop=center",L=S.handle==="alfajor-de-dulce-de-leche-y-chocolate",G=d==="cs"?"Nové":d==="es"?"Nuevo":"New",W=async ce=>{ce.preventDefault(),ce.stopPropagation(),_&&(await c({product:e,variantId:_.id,variantTitle:_.title,price:_.price,quantity:v,selectedOptions:_.selectedOptions||[]}),x(!0),Zm.success(P,{description:`${v}x ${q("product.addToCart",d)}`,position:"bottom-center",duration:2e3}),setTimeout(()=>{x(!1),m(1),g(!1)},1200))},X=(ce,bn)=>{ce.preventDefault(),ce.stopPropagation(),m(Sn=>Math.max(1,Sn+bn))},ee=ce=>{ce.preventDefault(),ce.stopPropagation(),g(bn=>!bn)},he=n?"div":Je,Ce=n?{className:"group block h-full"}:{to:`/product/${S.handle}`,className:"group block h-full"};return o?h.jsx(he,{...Ce,children:h.jsx("div",{className:"relative overflow-hidden rounded-2xl group",children:h.jsxs("div",{className:"aspect-square overflow-hidden relative",children:[E?h.jsxs(h.Fragment,{children:[h.jsx("img",{src:E.url+(E.url.includes("cdn.shopify.com")?R:""),alt:E.altText||P,className:`w-full h-full ${A} transition-all duration-500 group-hover:scale-105 ${k?"group-hover:opacity-0":""}`,loading:"lazy",width:200,height:200}),k&&h.jsx("img",{src:k.url+(k.url.includes("cdn.shopify.com")?R:""),alt:k.altText||P,className:`absolute inset-0 w-full h-full ${A} opacity-0 transition-all duration-500 group-hover:opacity-100 group-hover:scale-105`,loading:"lazy",width:200,height:200})]}):h.jsx("div",{className:"w-full h-full flex items-center justify-center text-4xl",children:"ð¥"}),r&&h.jsx("div",{className:"absolute top-2 left-2 pointer-events-none z-[1]",children:h.jsx("span",{className:"text-[9px] font-bold uppercase tracking-[0.15em] text-white bg-accent/70 backdrop-blur-[2px] px-2 py-0.5 rounded-md",children:d==="cs"?"Mražené":d==="es"?"Congelada":"Frozen"})}),l&&h.jsx("div",{className:"absolute inset-0 pointer-events-none z-[2] flex items-center justify-center bg-black/30",children:h.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.15em] text-white bg-muted-foreground/90 backdrop-blur-[2px] px-3 py-1 rounded-md",children:q("product.soldOut",d)})}),a&&h.jsx("div",{className:"absolute bottom-3 right-3 z-10",children:h.jsx(Sx,{variant:"ghost","aria-label":q("product.addToCart",d),whileTap:{scale:.9},onClick:W,disabled:u||!(_!=null&&_.availableForSale),className:"rounded-full bg-primary text-primary-foreground shadow-lg hover:shadow-xl h-11 w-11 flex items-center justify-center transition-all duration-300",children:u?h.jsx(Wf,{className:"h-5 w-5 animate-spin"}):h.jsx(Ov,{className:"h-5 w-5"})})})]})})}):h.jsx(he,{...Ce,children:h.jsxs("div",{className:"rounded-xl overflow-hidden bg-card border border-border shadow-sm hover:shadow-lg transition-all duration-300 group-hover:-translate-y-1 h-full flex flex-col relative",children:[!s&&h.jsxs("div",{className:"absolute top-2.5 right-2.5 z-10 flex flex-col items-end gap-1.5",children:[h.jsx(Nn,{children:w&&h.jsxs(Be.div,{initial:{opacity:0,scale:.8,y:5},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:5},className:"flex items-center bg-card/95 backdrop-blur-sm border border-border rounded-full shadow-lg overflow-hidden",children:[h.jsx(xt,{variant:"ghost","aria-label":q("action.decreaseQuantity",d),onClick:ce=>X(ce,-1),className:"h-auto p-1.5 hover:bg-secondary transition-colors text-muted-foreground",children:h.jsx(FS,{className:"h-3 w-3"})}),h.jsx("span",{className:"text-xs font-bold min-w-[1.25rem] text-center",children:v}),h.jsx(xt,{variant:"ghost","aria-label":q("action.increaseQuantity",d),onClick:ce=>X(ce,1),className:"h-auto p-1.5 hover:bg-secondary transition-colors text-muted-foreground",children:h.jsx(Hf,{className:"h-3 w-3"})})]})}),h.jsx(Sx,{variant:"ghost","aria-label":q(y?"product.added":"product.addToCart",d),whileTap:{scale:.85},onClick:y?void 0:w?W:ee,disabled:u||!(_!=null&&_.availableForSale)||l,className:`rounded-full shadow-lg flex items-center justify-center gap-1.5 transition-all duration-300 ${y?"bg-green-500 text-white h-9 px-3":w?"bg-primary text-primary-foreground h-9 px-3":"bg-card/90 backdrop-blur-sm border border-border text-foreground hover:bg-primary hover:text-primary-foreground hover:border-primary h-9 w-9"}`,children:u?h.jsx(Wf,{className:"h-4 w-4 animate-spin"}):y?h.jsxs(Be.span,{initial:{scale:0},animate:{scale:1},className:"text-xs font-medium",children:["â ",q("product.added",d)]}):w?h.jsxs(h.Fragment,{children:[h.jsx(Ov,{className:"h-3.5 w-3.5"}),h.jsx("span",{className:"text-xs font-medium",children:q("product.addToCart",d)})]}):h.jsx(Hf,{className:"h-4 w-4"})})]}),h.jsxs("div",{className:"aspect-square overflow-hidden bg-secondary relative",children:[E?h.jsxs(h.Fragment,{children:[h.jsx("img",{src:E.url+(E.url.includes("cdn.shopify.com")?R:""),alt:E.altText||P,className:`w-full h-full ${A} transition-all duration-500 group-hover:scale-105 ${k?"group-hover:opacity-0":""}`,loading:"lazy",width:200,height:200}),k&&h.jsx("img",{src:k.url+(k.url.includes("cdn.shopify.com")?R:""),alt:k.altText||P,className:`absolute inset-0 w-full h-full ${A} opacity-0 transition-all duration-500 group-hover:opacity-100 group-hover:scale-105`,loading:"lazy",width:200,height:200})]}):h.jsx("div",{className:"w-full h-full flex items-center justify-center text-4xl",children:"ð¥"}),r&&h.jsx("div",{className:"absolute top-2 left-2 pointer-events-none z-[1]",children:h.jsx("span",{className:"text-[9px] font-bold uppercase tracking-[0.15em] text-white bg-accent/70 backdrop-blur-[2px] px-2 py-0.5 rounded-md",children:d==="cs"?"Mražené":d==="es"?"Congelada":"Frozen"})}),L&&h.jsx("div",{className:"absolute top-2 left-2 pointer-events-none z-[1]",children:h.jsx("span",{className:"text-[9px] font-bold uppercase tracking-[0.15em] text-white bg-accent px-2 py-0.5 rounded-md shadow-sm",children:G})}),l&&h.jsx("div",{className:"absolute inset-0 pointer-events-none z-[2] flex items-center justify-center bg-black/30",children:h.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.15em] text-white bg-muted-foreground
497/90 backdrop-blur-[2px] px-3 py-1 rounded-md",children:q("product.soldOut",d)})})]}),h.jsxs("div",{className:"p-3 flex-1 flex flex-col gap-1",children:[h.jsx("h3",{className:"font-semibold text-sm leading-tight line-clamp-2",children:P}),i&&Q&&h.jsx("p",{className:"text-xs text-muted-foreground leading-snug line-clamp-3 mt-1",children:Q}),H.length>0&&h.jsx(UT,{allergens:H,className:"mt-1.5"}),!t&&h.jsxs("span",{className:"text-base font-bold text-primary mt-auto pt-1",children:[parseFloat(C.amount).toFixed(0)," ",C.currencyCode]})]})]})})},TU=({product:e,expanded:t,onToggle:n})=>{var w,g;const{locale:r}=wn(),{byHandle:s,titleFor:i}=ey(r),{node:o}=e,a=(w=o.images.edges[0])==null?void 0:w.node,l=i(o),c=(g=s[o.handle])==null?void 0:g.description,u=VT(c?null:o.description,r),d=c??u,p=Nu(typeof d=="string"?d:""),f=Nu(o.description),v=p.description,m=p.allergens.length?p.allergens:f.allergens;return h.jsx("div",{className:"w-[200px] flex-shrink-0 snap-start",children:h.jsxs("div",{className:"rounded-xl bg-card border border-border shadow-sm hover:shadow-lg transition-all duration-300 flex flex-col cursor-pointer",onClick:n,children:[h.jsx("div",{className:"aspect-square overflow-hidden rounded-t-xl bg-secondary",children:a?h.jsx("img",{src:a.url+(a.url.includes("cdn.shopify.com")?"&width=400&height=400&crop=center":""),alt:a.altText||l,className:"w-full h-full object-cover hover:scale-105 transition-transform duration-500",loading:"lazy",width:200,height:200}):h.jsx("div",{className:"w-full h-full flex items-center justify-center text-4xl",children:"ð¥"})}),h.jsxs("div",{className:"p-3",children:[h.jsx("h3",{className:"font-semibold text-sm leading-tight text-center min-h-[2.5rem] flex items-center justify-center",children:l}),h.jsx(Nn,{children:t&&h.jsxs(Be.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeOut"},className:"overflow-hidden",children:[v&&h.jsx("p",{className:"text-xs text-muted-foreground mt-2 mb-2 leading-relaxed text-center",children:v}),m.length>0&&h.jsx(UT,{allergens:m,className:"justify-center mb-3"}),h.jsxs("div",{className:"flex justify-center gap-2",children:[h.jsx(Je,{to:"/freshly-baked",onClick:y=>y.stopPropagation(),className:"w-9 h-9 flex items-center justify-center rounded-full bg-primary/10 hover:bg-primary/20 text-primary transition-colors",title:q("order.cooked",r),"aria-label":q("order.cooked",r),children:h.jsx(US,{className:"h-4 w-4"})}),h.jsx(Je,{to:"/frozen",onClick:y=>y.stopPropagation(),className:"w-9 h-9 flex items-center justify-center rounded-full bg-accent/10 hover:bg-accent/20 text-accent transition-colors",title:q("order.frozen",r),"aria-label":q("order.frozen",r),children:h.jsx(VS,{className:"h-4 w-4"})})]})]})})]})]})})},Sr=({children:e,className:t="",delay:n=0})=>h.jsx(Be.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,delay:n,ease:[.22,1,.36,1]},className:t,children:e}),CU=({children:e,className:t=""})=>h.jsx(Be.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-60px"},variants:{hidden:{},visible:{transition:{staggerChildren:.12}}},className:t,children:e}),Vh=({children:e,className:t=""})=>h.jsx(Be.div,{variants:{hidden:{opacity:0,y:30,scale:.96},visible:{opacity:1,y:0,scale:1,transition:{duration:.5,ease:[.22,1,.36,1]}}},className:t,children:e}),PU={cs:{eyebrow:"Malá Argenta Club",title:"Malá Argenta Club",subtitle:"Slevy a odmÄny podle tvých nákupů",cta:"PÅipojit se"},es:{eyebrow:"Malá Argenta Club",title:"Malá Argenta Club",subtitle:"Descuentos y premios según tus compras",cta:"Unirme"},en:{eyebrow:"Malá Argenta Club",title:"Malá Argenta Club",subtitle:"Discounts and rewards based on your purchases",cta:"Join now"}},AU=({locale:e})=>{const t=PU[e];return h.jsxs(Je,{to:"/cupones","aria-label":t.cta,className:"group relative block overflow-hidden rounded-[2rem] border border-border bg-gradient-to-br from-card via-card to-accent/10 px-6 py-6 md:px-8 md:py-7 shadow-[var(--shadow-elevation-2)] transition-all duration-300 hover:-translate-y-1 hover:shadow-[var(--shadow-elevation-3)]",children:[h.jsx("div",{className:"absolute -right-10 top-0 h-28 w-28 rounded-full bg-accent/15 blur-3xl"}),h.jsx("div",{className:"absolute -left-8 bottom-0 h-24 w-24 rounded-full bg-primary/10 blur-3xl"}),h.jsxs("div",{className:"relative flex flex-col gap-5 lg:flex-row lg:items-center lg:justify-between",children:[h.jsxs("div",{className:"max-w-2xl",children:[h.jsxs("div",{className:"mb-3 inline-flex items-center gap-2 rounded-full bg-accent/10 px-3 py-1 text-xs font-semibold uppercase tracking-[0.18em] text-accent",children:[h.jsx(fR,{className:"h-3.5 w-3.5"}),t.eyebrow]}),h.jsx("h2",{className:"text-2xl font-bold tracking-tight text-foreground md:text-3xl",children:t.title}),h.jsx("p",{className:"mt-2 max-w-xl text-sm text-muted-foreground md:text-base",children:t.subtitle})]}),h.jsxs("div",{className:"inline-flex items-center gap-3 text-sm font-semibold text-accent",children:[h.jsx("span",{children:t.cta}),h.jsx("span",{className:"inline-flex h-10 w-10 items-center justify-center rounded-full bg-accent text-accent-foreground transition-transform duration-300 group-hover:translate-x-1",children:h.jsx(qn,{
497className:"h-4 w-4"})})]})]})]})},jU=()=>{const[e,t]=b.useState(null),[n,r]=b.useState(!0);return b.useEffect(()=>{const{data:s}=Dn.auth.onAuthStateChange((o,a)=>{setTimeout(()=>{t(a),r(!1)},0)});Dn.auth.getSession().then(({data:o})=>{t(o.session),r(!1)}).catch(()=>r(!1));const i=setTimeout(()=>r(!1),2500);return()=>{clearTimeout(i),s.subscription.unsubscribe()}},[]),{session:e,isLoggedIn:!!e,loading:n}},Ex="loyalty_popup_dismissed_v2",pc={cs:{title:"VytvoÅte si úÄet a Å¡etÅete",subtitle:"Malá Argenta Club: 15 %, 20 % až 25 % sleva podle vaÅ¡ich nákupů.",note:"Platà pro online pÅedobjednávku ÄerstvÄ peÄených i pro nákup mražených.",cta:"PÅihlásit se / Registrovat"},es:{title:"Creá tu cuenta y ahorrá",subtitle:"Malá Argenta Club: 15%, 20% y hasta 25% OFF según tus compras.",note:"Válido para el pre-pedido online de recién horneadas y la compra de congeladas.",cta:"Iniciar sesión / Crear cuenta"},en:{title:"Create your account and save",subtitle:"Malá Argenta Club: 15%, 20% and up to 25% off based on your orders.",note:"Valid for online pre-orders of freshly baked and for frozen purchases.",cta:"Log in / Sign up"}},RU=({locale:e})=>{const[t,n]=b.useState(!1),{isLoggedIn:r,loading:s}=jU();b.useEffect(()=>{if(s||r||sessionStorage.getItem(Ex))return;const o=setTimeout(()=>n(!0),1500);return()=>clearTimeout(o)},[s,r]);const i=()=>{n(!1),sessionStorage.setItem(Ex,"1")};return h.jsx(Nn,{children:t&&!r&&h.jsxs(Be.div,{initial:{opacity:0,y:40,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:20,scale:.95},transition:{type:"spring",stiffness:350,damping:28},className:"relative self-end w-[min(340px,calc(100vw-2.5rem))] rounded-2xl border border-border bg-card/95 backdrop-blur-md shadow-lg",children:[h.jsx(xt,{variant:"ghost",size:"icon",onClick:i,"aria-label":q("action.close",e),className:"absolute top-2 right-2 z-10 flex h-8 w-8 items-center justify-center rounded-full border border-border bg-background text-muted-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground",children:h.jsx(So,{className:"h-4 w-4"})}),h.jsxs("div",{className:"p-5",children:[h.jsx("div",{className:"mb-3 flex h-10 w-10 items-center justify-center rounded-full bg-accent/15",children:h.jsx(DS,{className:"h-5 w-5 text-accent"})}),h.jsx("h3",{className:"text-base font-bold text-foreground",children:pc[e].title}),h.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:pc[e].subtitle}),h.jsx("p",{className:"mt-2 text-xs text-muted-foreground/80",children:pc[e].note}),h.jsx(Je,{to:"/cuenta",onClick:i,className:"mt-4 inline-flex w-full items-center justify-center gap-2 rounded-xl bg-accent px-4 py-2.5 text-sm font-semibold text-accent-foreground transition-colors hover:bg-accent/90",children:pc[e].cta})]})]})})},_x="hiring_popup_dismissed_v2",Tx={en:{title:"We are Hiring!",cta:"Apply now",readMore:"Read more",readLess:"Show less"},cs:{title:"Hledáme kolegy!",cta:"Chci se pÅidat",readMore:"ÄÃst vÃce",readLess:"Zobrazit ménÄ"},es:{title:"Búsqueda Laboral",cta:"Postularme",readMore:"Leer más",readLess:"Ver menos"}},NU=({locale:e})=>{const[t,n]=b.useState(!1),[r,s]=b.useState(!1);b.useEffect(()=>{if(sessionStorage.getItem(_x))return;const a=setTimeout(()=>n(!0),1500);return()=>clearTimeout(a)},[]);const i=()=>{n(!1),sessionStorage.setItem(_x,"1")},o=Tx[e]??Tx.en;return h.jsx(Nn,{children:t&&h.jsxs(Be.div,{initial:{opacity:0,y:40,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:20,scale:.95},transition:{type:"spring",stiffness:350,damping:28},className:"relative self-end w-[min(340px,calc(100vw-2.5rem))] flex flex-col max-h-[min(70vh,520px)] sm:max-h-[min(80vh,620px)] overflow-hidden rounded-2xl border border-border bg-card/95 backdrop-blur-md shadow-lg",children:[h.jsx(xt,{variant:"ghost",size:"icon",onClick:i,"aria-label":q("action.close",e),className:"absolute top-2 right-2 z-10 flex h-8 w-8 items-center justify-center rounded-full border border-border bg-background text-muted-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground",children:h.jsx(So,{className:"h-4 w-4"})}),h.jsxs("div",{className:"p-5 overflow-y-auto overscroll-contain",children:[h.jsx("div",{className:"mb-3 flex h-10 w-10 items-center justify-center rounded-full bg-accent/15",children:h.jsx(aR,{
497className:"h-5 w-5 text-accent"})}),h.jsxs("h3",{className:"text-base font-bold text-foreground",children:["ð¯ We're Hiring: Kitchen Staff â Empanada Prep & Cook!",h.jsx("span",{className:"block text-sm font-medium text-muted-foreground mt-0.5",children:"¡Buscamos Personal de Cocina - Armador/a de Empanadas!"})]}),h.jsxs("div",{className:"mt-2 text-sm text-muted-foreground space-y-2",children:[h.jsx("p",{children:"We are looking for a reliable team member to join our kitchen and prepare high-quality empanadas following our recipes and standards."}),r&&h.jsxs(Be.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"overflow-hidden space-y-2",children:[h.jsx("p",{className:"font-semibold text-foreground",children:"ð Key Responsibilities:"}),h.jsxs("ul",{className:"list-disc pl-4 space-y-1 text-xs",children:[h.jsx("li",{children:"Prepare and cook fillings (meat, chicken, cheese, etc.) according to standardized recipes."}),h.jsx("li",{children:"Fill, seal, and crimp empanadas neatly and uniformly."}),h.jsx("li",{children:"Maintain kitchen hygiene, food safety, and proper stock storage."}),h.jsx("li",{children:"Assist with order assembly, dispatch, and station cleanup."})]}),h.jsx("p",{className:"font-semibold text-foreground",children:"ð What we're looking for:"}),h.jsxs("ul",{className:"list-disc pl-4 space-y-1 text-xs",children:[h.jsx("li",{children:"Previous kitchen or food prep experience."}),h.jsx("li",{children:"Basic knowledge of food safety and hygiene practices."}),h.jsx("li",{children:"Ability to work well in a fast-paced team environment."}),h.jsx("li",{children:"Schedule availability and strong punctuality."})]}),h.jsx("p",{className:"font-semibold text-foreground",children:"ð¼ What we offer:"}),h.jsx("ul",{className:"list-disc pl-4 space-y-1 text-xs",children:h.jsx("li",{children:"Great working environment."})}),h.jsxs("p",{className:"text-xs pt-1",children:["Vinohrady â ð© Interested? Send your resume/CV to"," ",h.jsx("a",{href:"mailto:[email protected]",className:"font-medium text-accent underline underline-offset-2",children:"[email protected]"})]}),h.jsx("hr",{className:"border-border"}),h.jsx("p",{children:"Nos encontramos en la búsqueda de personal para sumarse a nuestro equipo de cocina y garantizar la máxima calidad en nuestros productos."}),h.jsx("p",{className:"font-semibold text-foreground",children:"ð Responsabilidades:"}),h.jsxs("ul",{className:"list-disc pl-4 space-y-1 text-xs",children:[h.jsx("li",{children:"Elaborar rellenos (picar, cocinar, sazonar) según nuestras recetas."}),h.jsx("li",{children:"Rellenar, cerrar y realizar el repulgue prolijo de las empanadas."}),h.jsx("li",{children:"Mantener la higiene, orden y cumplimiento de normas de manipulación de alimentos."}),h.jsx("li",{children:"Colaborar en la preparación de pedidos y limpieza del área de trabajo."})]}),h.jsx("p",{className:"font-semibold text-foreground",children:"ð Requisitos:"}),h.jsxs("ul",{className:"list-disc pl-4 space-y-1 text-xs",children:[h.jsx("li",{children:"Experiencia previa en cocina."}),h.jsx("li",{children:"Conocimientos de manipulación segura de alimentos."}),h.jsx("li",{children:"Capacidad para trabajar en equipo y bajo presión."}),h.jsx("li",{children:"Disponibilidad horaria para turnos rotativos y puntualidad."})]}),h.jsx("p",{className:"font-semibold text-foreground",children:"ð¼ Ofrecemos:"}),h.jsx("ul",{className:"list-disc pl-4 space-y-1 text-xs",children:h.jsx("li",{children:"Buen clima laboral y trabajo en equipo."})}),h.jsxs("p",{className:"text-xs pt-1",children:["Vinohrady â ð© ¿Te interesa? EnvÃa tu CV a"," ",h.jsx("a",{href:"mailto:[email protected]",className:"font-medium text-accent underline underline-offset-2",children:"[email protected]"})]})]})]}),h.jsxs("button",{type:"button",onClick:()=>s(a=>!a),className:"mt-3 flex items-center gap-1 text-xs font-medium text-muted-foreground hover:text-foreground transition-colors",children:[r?o.readLess:o.readMore,r?h.jsx(lR,{className:"h-3.5 w-3.5"}):h.jsx(LS,{className:"h-3.5 w-3.5"})]}),h.jsx("a",{href:"mailto:[email protected]?subject=Job%20Application%20-%20Malá%20Argenta",onClick:i,className:"mt-4 inline-flex w-full items-center justify-center gap-2 rounded-xl bg-accent px-4 py-2.5 text-sm font-semibold text-accent-foreground transition-colors hover:bg-accent/90",children:o.cta})]})]})})},Cx="anniversary_vh_dismissed_session",OU={cs:{eyebrow:"1 rok · Vinohrady",title:"SlavÃme s vámi!",subtitle:"Limitovaná edice empanády VÃno",highlight:"Prvnà várka zdarma",date:"17. 6. · od 18h",cta:"Kudy k nám",coupons:"PodÃvat se na kupóny",alt:"Prvnà výroÄà Vinohrady"},es:{eyebrow:"1 año · Vinohrady",title:"¡Lo festejamos con vos!",subtitle:"Edición limitada: empanad
497a de Vino",highlight:"Primera tanda gratis",date:"17/6 · desde las 18h",cta:"Cómo llegar",coupons:"Ver cupones disponibles",alt:"Primer aniversario Vinohrady"},en:{eyebrow:"1 year · Vinohrady",title:"Let's celebrate together!",subtitle:"Limited edition: Wine empanada",highlight:"First batch on us",date:"Jun 17 · from 6pm",cta:"How to find us",coupons:"See available coupons",alt:"First anniversary Vinohrady"}},IU=({locale:e})=>{const[t,n]=b.useState(!1),r=OU[e];b.useEffect(()=>{if(sessionStorage.getItem(Cx))return;const i=setTimeout(()=>n(!0),1500);return()=>clearTimeout(i)},[]);const s=()=>{n(!1),sessionStorage.setItem(Cx,"1")};return h.jsx(Nn,{children:t&&h.jsx(Be.div,{initial:{opacity:1},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"fixed top-20 right-4 z-50 sm:bottom-4 sm:right-4 sm:top-auto",children:h.jsxs(Be.div,{initial:{opacity:0,y:14,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:1},transition:{duration:.5,ease:[.22,1,.36,1]},className:"relative w-[min(260px,calc(100vw-2rem))] overflow-hidden rounded-xl bg-card/85 backdrop-blur-md border border-border/50 shadow-[0_6px_24px_-6px_rgba(0,0,0,0.1)]",children:[h.jsx(xt,{variant:"ghost",size:"icon",onClick:s,"aria-label":q("action.close",e),className:"absolute top-2 right-2 z-10 flex h-5 w-5 items-center justify-center rounded-full bg-background/70 text-muted-foreground/80 backdrop-blur-sm transition-all hover:bg-background hover:text-foreground",children:h.jsx(So,{className:"h-3 w-3"})}),h.jsxs("div",{className:"max-h-[65vh] overflow-y-auto",children:[h.jsx("div",{className:"relative w-full bg-[#a8801f]/85 shrink-1",children:h.jsx("img",{src:"/anniversary-vinohrady.jpg",alt:r.alt,className:"block h-auto w-full object-contain",loading:"eager"})}),h.jsxs("div",{className:"flex flex-col gap-2 p-3",children:[h.jsx("div",{className:"inline-flex w-fit items-center gap-1 rounded-full bg-accent/10 px-2 py-[2px] text-[9px] font-medium uppercase tracking-[0.12em] text-accent/90",children:r.eyebrow}),h.jsxs("div",{children:[h.jsx("h2",{className:"text-sm font-bold leading-snug text-foreground",children:r.title}),h.jsx("p",{className:"mt-0.5 text-[11px] text-muted-foreground/80 leading-relaxed",children:r.subtitle})]}),h.jsx("div",{className:"rounded-lg border border-dashed border-accent/30 bg-accent/[0.04] px-2 py-1.5",children:h.jsxs("p",{className:"text-[11px] font-semibold text-accent/90",children:["ð¥ ",r.highlight]})}),h.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] text-foreground/70",children:[h.jsx(MS,{className:"h-3 w-3 text-accent/70 flex-shrink-1"}),h.jsx("span",{className:"font-medium",children:r.date})]}),h.jsxs("a",{href:"https://maps.app.goo.gl/Ej4xZ2k7wYxFXyhA8",target:"_blank",rel:"noopener noreferrer",onClick:s,className:"mt-0.5 inline-flex w-full items-center justify-center gap-1.5 rounded-lg bg-primary/90 px-3 py-1.5 text-[11px] font-semibold text-primary-foreground transition-all hover:bg-primary hover:gap-2",children:[h.jsx(Zn,{className:"h-3 w-3"}),r.cta]}),h.jsxs(Je,{to:"/cupones",onClick:s,className:"inline-flex w-full items-center justify-center gap-1.5 text-[10px] font-medium text-muted-foreground/90 hover:text-accent transition-colors",children:[h.jsx(pR,{className:"h-3 w-3"}),r.coupons]})]})]})]})})})},Px={wolt:{malaStrana:"https://wolt.com/en/cze/prague/restaurant/mala-argenta",vinohrady:"https://wolt.com/en/cze/prague/restaurant/mala-argenta-korunni"},bolt:{malaStrana:"https://food.bolt.eu/en/271-prague/p/65377-mala-argenta-empanadas-mala-strana/",vinohrady:"https://food.bolt.eu/cs-cz/271-prague/p/140385-mala-argenta-empanadas-vinohrady/"}},MU=({locale:e,variant:t="dark"})=>{const[n,r]=b.useState(null),s=o=>r(a=>a===o?null:o),i=o=>h.jsx(Be.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",children:h.jsxs("div",{className:"flex flex-col gap-1.5 pt-2",children:[h.jsxs("a",{href:Px[o].malaStrana,target:"_blank",rel:"noopener noreferrer",className:`flex items-center gap-2 py-2 px-3 rounded-xl text-[11px] font-semibold transition-colors ${t==="dark"?"bg-accent-foreground
497/10 hover:bg-accent-foreground/20":"bg-accent/10 hover:bg-accent/20"}`,children:[h.jsx("span",{children:"ð°"})," Malá Strana"]}),h.jsxs("a",{href:Px[o].vinohrady,target:"_blank",rel:"noopener noreferrer",className:`flex items-center gap-2 py-2 px-3 rounded-xl text-[11px] font-semibold transition-colors ${t==="dark"?"bg-accent-foreground/10 hover:bg-accent-foreground/20":"bg-accent/10 hover:bg-accent/20"}`,children:[h.jsx("span",{children:"ð"})," Vinohrady"]})]})});return t==="light"?h.jsxs("div",{className:"text-center p-6 rounded-2xl bg-card border border-border",children:[h.jsx("div",{className:"w-10 h-10 rounded-xl bg-accent/10 flex items-center justify-center mx-auto mb-3",children:h.jsx(Nv,{className:"h-5 w-5 text-accent"})}),h.jsx("h4",{className:"font-semibold text-sm mb-1",children:e==="cs"?"Rozvozové aplikace":e==="es"?"Apps de delivery":"Delivery apps"}),h.jsx("p",{className:"text-[10px] text-muted-foreground mb-1",children:e==="cs"?"DoruÄenà v otevÃracÃch hodinách":e==="es"?"Recibà en el momento en nuestros horarios":"Receive now during opening hours"}),h.jsxs("div",{className:"flex flex-col gap-2 mt-3 w-full",children:[h.jsxs("div",{children:[h.jsx("button",{onClick:()=>s("wolt"),className:`w-full bg-accent text-accent-foreground py-2 rounded-full text-xs font-bold tracking-wide transition-all duration-200 ${n==="wolt"?"ring-2 ring-accent/50":"hover:opacity-90"}`,children:"Wolt"}),h.jsx(Nn,{children:n==="wolt"&&i("wolt")})]}),h.jsxs("div",{children:[h.jsx("button",{onClick:()=>s("bolt"),className:`w-full bg-secondary text-foreground border border-border py-2 rounded-full text-xs font-bold tracking-wide transition-all duration-200 ${n==="bolt"?"ring-2 ring-border":"hover:bg-secondary/80"}`,children:"Bolt Food"}),h.jsx(Nn,{children:n==="bolt"&&i("bolt")})]})]})]}):h.jsxs("div",{className:"p-6 rounded-2xl bg-accent text-accent-foreground flex flex-col items-center justify-center text-center",children:[h.jsx(Nv,{className:"h-6 w-6 mb-3 opacity-90"}),h.jsx("p",{className:"font-bold text-sm mb-1",children:q("delivery.title",e)}),h.jsx("p",{className:"text-xs opacity-70 mb-4",children:q("delivery.subtitle",e)}),h.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h.jsxs("div",{children:[h.jsx("button",{onClick:()=>s("wolt"),className:`w-full bg-accent-foreground text-accent py-2 rounded-full text-xs font-bold tracking-wide transition-all duration-300 ${n==="wolt"?"ring-2 ring-accent-foreground/50":"hover:opacity-90 hover:-translate-y-0.5"}`,children:"Wolt"}),h.jsx(Nn,{children:n==="wolt"&&i("wolt")})]}),h.jsxs("div",{children:[h.jsx("button",{onClick:()=>s("bolt"),className:`w-full bg-accent-foreground/20 text-accent-foreground border border-accent-foreground/30 py-2 rounded-full text-xs font-bold tracking-wide transition-all duration-300 ${n==="bolt"?"ring-2 ring-accent-foreground/30":"hover:bg-accent-foreground/30 hover:-translate-y-0.5"}`,children:"Bolt Food"}),h.jsx(Nn,{children:n==="bolt"&&i("bolt")})]})]})]})},LU=()=>{const{locale:e,setLocale:t}=wn();return h.jsxs("footer",{className:"relative bg-primary text-primary-foreground pt-20 pb-12 px-4 overflow-hidden",children:[h.jsx("div",{className:"absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-accent to-transparent opacity-40"}),h.jsx("div",{className:"absolute -top-32 left-1/3 w-[500px] h-[500px] bg-accent/[0.07] rounded-full blur-[150px]"}),h.jsxs("div",{className:"container mx-auto max-w-6xl relative",children:[h.jsx(Sr,{className:"text-center mb-14",children:h.jsx("h2",{className:"text-3xl md:text-4xl font-bold tracking-tight text-white",children:e==="cs"?"Kde nás najdete":e==="es"?"Dónde encontrarnos":"Where to find us"})}),h.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-5 mb-16",children:[h.jsxs("a",{href:"https://www.google.com/maps/place/Mal%C3%A1+Argenta+-+Mal%C3%A1+Strana+%7C+Argentinsk%C3%A9+Empanadas/@50.0840981,14.4020524,17z/data=!3m1!4b1!4m6!3m5!1s0x470b95be1ab09315:0x71680bfa60e77b1a!8m2!3d50.0840981!4d14.4046273!16s%2Fg%2F11j616js_n?entry=ttu&g_ep=EgoyMDI2MDIxNi4wIKXMDSoASAFQAw%3D%3D",target:"_blank",rel:"noopener noreferrer",className:"p-6 rounded-2xl bg-white/[0.08] border border-white/[0.12] hover:bg-white/[0.12] transition-colors duration-300 block",children:[h.jsxs("div",{className:"flex items-center gap-2.5 mb-5",children:[h.jsx("div",{className:"w-9 h-9 rounded-lg bg-white/15 flex items-center justify-center",children:h.jsx(Gl,{className:"h-4 w-4 text-white"})}),h.jsx("h4",{className:"font-bold text-white text-base tracking-tight",children:"Malá Strana"})]}),h.jsxs("div",{className:"space-y-3 text-[13px] text-white/75 leading-relaxed",children:[h.jsxs("p",{className:"flex items-start gap-2.5",children:[h.jsx(Zn,{className:"h-3.5 w-3.5 text-white/60 flex-shrink-0 mt-0.5"}),h.jsxs("span",{children:["Ãjezd 454/46,",h.jsx("br",{}),"Praha 1"]})]}),h.jsxs("p",{className:"flex items-center gap-2.5",children:[h.jsx(eh,{className:"h-3.5 w-3.5 text-white/60 flex-shrink-0"}),e==="cs"?"Každý den 11â19H":e==="es"?"Todos los dÃas 11â19H":"Every day 11â19H"]}),h.jsxs("p",{className:"flex items-center gap-2.5",children:[h.jsx(th,{className:"h-3.5 w-3.5 text-white/60 flex-shrink-0"}),h.jsx("span",{children:"+420 778 514 624"})]})]})]}),h.jsxs("a",{href:"https://www.google.com/maps/place/Mal%C3%A1+Argenta+-+Vinohrady+%7C+Argentinsk%C3%A9+Empanadas/@50.0754606,14.4391809,17z/data=!3m1!4b1!4m6!3m5!1s0x470b952472e45cf5:0xb60a82047c30997f!8m2!3d50.0754606!4d14.4417558!16s%2Fg%2F11yc949trq?entry=ttu&g_ep=EgoyMDI2MDIxNi4wIKXMDSoASAFQAw%3D%3D",target:"_blank",rel:"noopener noreferrer",className:"p-6 rounded-2xl bg-white/[0.08] border border-white/[0.12] hover:bg-white/[0.12] transition-colors duration-300 block",children:[h.jsxs("div",{className:"flex items-center gap-2.5 mb-5",children:[h.jsx("div",{className:"w-9 h-9 rounded-lg bg-white/15 flex items-center justify-center",children:h.jsx(Gl,{className:"h-4 w-4 text-white"})}),h.jsx("h4",{className:"font-bold text-white text-base tracking-tight",children:"Vinohrady"})]}),h.jsxs("div",{className:"space-y-3 text-[13px] text-white/75 leading-relaxed",children:[h.jsxs("p",{className:"flex items-start gap-2.5",children:[h.jsx(Zn,{className:"h-3.5 w-3.5 text-white/60 flex-shrink-0 mt-0.5"}),h.jsxs("span",{children:["Korunnà 783/23,",h.jsx("br",{}),"Praha 2"]})]}),h.jsxs("p",{className:"flex items-center gap-2.5",children:[h.jsx(eh,{className:"h-3.5 w-3.5 text-white/60 flex-shrink-0"}),e==="cs"?"PoâSo 12â20H":e==="es"?"LunâSáb 12â20H":"MonâSat 12â20H"]}),h.jsxs("p",{className:"flex items-center gap-2.5",children:[h.jsx(th,{className:"h-3.5 w-3.5 text-white/60 flex-shrink-0"}),h.jsx("span",{children:"+420 777 920 936"})]})]})]}),rE()?h.jsxs("a",{href:Oc.mapUrl,target:"_blank",rel:"noopener noreferrer",className:"p-6 rounded-2xl bg-white/[0.08] border border-white/[0.12] hover:bg-white/[0.12] transition-colors duration-300 block",children:[h.jsxs("div",{className:"flex items-center gap-2.5 mb-5",children:[h.jsx("div",{className:"w-9 h-9 rounded-lg bg-white/15 flex items-center justify-center",children:h.jsx(Gl,{className:"h-4 w-4 text-white"})}),h.jsx("h4",{className:"font-bold text-white text-base tracking-tight",children:"Staré MÄsto"})]}),h.jsxs("div",{className:"space-y-3 text-[13px] text-white/75 leading-relaxed",children:[h.jsxs("p",{className:"flex items-start gap-2.5",children:[h.jsx(Zn,{className:"h-3.5 w-3.5 text-white/60 flex-shrink-0 mt-0.5"}),h.jsxs("span",{children:["Rybná 715/26,",h.jsx("br",{}),"110 00 Staré MÄsto"]})]}),h.jsxs("p",{className:"flex items-center gap-2.5",children:[h.jsx(eh,{className:"h-3.5 w-3.5 text-white/60 flex-shrink-0"}),Oc.hours[e]]}),h.jsxs("p",{className:"flex items-center gap-2.5",children:[h.jsx(th,{className:"h-3.5 w-3.5 text-white/60 flex-shrink-0"}),h.jsx("span",{children:Oc.phone})]})]})]}):h.jsxs("div",{className:"p-6 rounded-2xl bg-white/[0.04] border border-dashed border-white/[0.18] block cursor-default",children:[h.jsxs("div",{className:"flex items-center gap-2.5 mb-5",children:[h.jsx("div",{className:"w-9 h-9 rounded-lg bg-white/10 flex items-center justify-center",children:h.jsx(Gl,{className:"h-4 w-4 text-white/60"})}),h.jsx("h4",{className:"font-bold text-white/70 text-base tracking-tight",children:"Staré MÄsto"})]}),h.jsxs("p",{className:"flex items-start gap-2.5 text-[13px] text-primary-foreground
497/75 leading-relaxed mb-4",children:[h.jsx(Zn,{className:"h-3.5 w-3.5 text-primary-foreground/60 flex-shrink-0 mt-0.5"}),h.jsx("span",{children:"Rybná 715/26, 110 00 Staré MÄsto"})]}),h.jsx("span",{className:"inline-flex items-center rounded-full bg-white/10 px-3 py-1 text-[11px] font-semibold uppercase tracking-widest text-white/70",children:sE(e)})]}),h.jsx(MU,{locale:e}),h.jsxs(Je,{to:"/events",className:"p-6 rounded-2xl bg-white/[0.08] border border-white/[0.12] hover:bg-white/[0.12] transition-colors duration-300 flex flex-col group",children:[h.jsxs("div",{className:"flex items-center gap-2.5 mb-5",children:[h.jsx("div",{className:"w-9 h-9 rounded-lg bg-white/15 flex items-center justify-center",children:h.jsx(MS,{className:"h-4 w-4 text-white"})}),h.jsx("h4",{className:"font-bold text-white text-base tracking-tight",children:e==="cs"?"Události":e==="es"?"Eventos":"Events"})]}),h.jsx("p",{className:"text-[13px] text-white/75 leading-relaxed mb-4",children:e==="cs"?"Trhy, festivaly a pop-upy kde nás najdete":e==="es"?"Mercados, festivales y pop-ups donde nos encontrás":"Markets, festivals & pop-ups where you can find us"}),h.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-semibold text-white tracking-wide uppercase mt-auto",children:[e==="cs"?"Zobrazit":e==="es"?"Ver":"View"," ",h.jsx(qn,{className:"h-3.5 w-3.5 group-hover:translate-x-1 transition-transform"})]})]})]}),h.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-5 mb-10",children:[h.jsx("a",{href:"mailto:[email protected]",className:"text-xs text-white/70 hover:text-white transition-colors",children:"[email protected]"}),h.jsx("span",{className:"w-px h-3 bg-white/25"}),h.jsx("a",{href:"https://instagram.com/malaargenta",target:"_blank",rel:"noopener noreferrer",className:"text-xs text-white/70 hover:text-white transition-colors tracking-[0.2em] uppercase",children:"Instagram"}),h.jsx("span",{className:"w-px h-3 bg-white/25"}),h.jsx("a",{href:"https://facebook.com/malaargenta",target:"_blank",rel:"noopener noreferrer",className:"text-xs text-white/70 hover:text-white transition-colors tracking-[0.2em] uppercase",children:"Facebook"}),h.jsx("span",{className:"w-px h-3 bg-white/25"}),h.jsxs(Je,{to:"/cuenta",className:"inline-flex items-center gap-1.5 text-xs text-white/70 hover:text-white transition-colors tracking-[0.2em] uppercase",children:[h.jsx(Jm,{className:"h-3 w-3"}),e==="cs"?"Můj úÄet":e==="es"?"Mi cuenta":"My account"]})]}),h.jsx("div",{className:"flex items-center justify-center gap-3 mb-10",children:[["cs","ð¨ð¿","ÄeÅ¡tina"],["es","ðªð¸","Español"],["en","ð¬ð§","English"]].map(([n,r,s])=>h.jsxs("button",{onClick:()=>t(n),className:`inline-flex items-center gap-1.5 text-xs px-3 py-1.5 rounded-full transition-all ${e===n?"bg-white/20 text-white font-semibold":"text-white/50 hover:text-white/80 hover:bg-white/10"}`,children:[h.jsx("span",{className:"text-base",children:r}),s]},n))}),h.jsxs("div",{className:"pt-6 border-t border-white/15 text-center text-[11px] text-white/50 space-y-0.5",children:[h.jsx("p",{children:"Malá Argenta SRO · IÄO: 22511491 · DIÄ: CZ22511491 · Korunnà 783/23, Praha 2"}),h.jsx("p",{children:"© 2026 Malá Argenta"})]})]})]})},DU="/assets/logo-hero-white-CVnhVRJx.png",$U="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsAQMAAABDsxw2AAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABU0lEQVRoge3a0Y2DQAwEUFNBSthSaXVLoAIcWHsWk7vT5ZORxoqiCB5fE8x6E7PvanXUZvbycWzxPl6zutgz2JapHew4cEj33do+sOEqMTIWuUf0p0yA9LsYMYvorTnOitEz3NT7rUuLEbKrRQdu/3VysYczR4Fl6P3PFZfYw9nPwl38yykxCrbO3D8+xCI5b20xJnbWy+OZm2NsQ+4BxAiZlzov6VMu4wuQV4nRsBxdL18G2Di8iHGxNeL+GGMz/cuLPYLFNm903fCOllsfu2J0rM6nVqYY9F4xLoaz8N1yz8HxVBVjY4YfZXw8WMdZpN9zN0mMiNXKL0CbG4NLtmsxKrY6qu42GLYHy4pLjIZtt9zd518d7tGLUbHMfU49ZvkTqnuNXoySOUaehjs6sRgxy9w7VlD4LMbFZov2XB6P0XW+mxgbc9Ts0jX3KDEq9l29AVQJBkd9lXg3AAAAAElFTkSuQmCC",FU={cs:["1. NaplÅte mate (nádobu) do 2/3 yerba mate.","2. Zakryjte dlanà a obraÅ¥te, jemnÄ protÅepejte.",'3. NakloÅte yerbu na jednu stranu a vytvoÅte "kopec".',"4. Nalijte trochu vlažné vody (max 40 °C) do prázdné strany.","5. PoÄkejte minutu, než yerba vsákne vodu.","6. ZasuÅte bombillu do mokré Äásti.","7. Dolijte horkou vodu (70â80 °C) â nikdy ne vÅÃcÃ!","8. Pijte a dolÃvejte. SdÃlejte s pÅáteli."],es:["1. Llená el mate hasta 2/3 con yerba mate.","2. Tapá con la mano y dalo vuelta, agitá suavemente.",'3. Incliná la yerba a un costado formando una "montañita".',"4. Vertà un poco de agua t
497ibia (máx 40 °C) en el lado vacÃo.","5. Esperá un minuto a que la yerba absorba el agua.","6. Insertá la bombilla en la parte húmeda.","7. Agregá agua caliente (70â80 °C) â ¡nunca hirviendo!","8. Tomá y cebá. Compartà con amigos."],en:["1. Fill the mate gourd 2/3 with yerba mate.","2. Cover with your palm and flip, shake gently.",'3. Tilt the yerba to one side creating a "hill".',"4. Pour a little warm water (max 40 °C) into the empty side.","5. Wait a minute for the yerba to absorb the water.","6. Insert the bombilla into the wet part.","7. Add hot water (70â80 °C) â never boiling!","8. Drink and refill. Share with friends."]},VU=({locale:e})=>{const[t,n]=b.useState(!1),r=e==="cs"?"Jak pÅipravit mate":e==="es"?"Cómo preparar mate":"How to prepare mate",s=e==="cs"?"NauÄÃme vás pravou argentinskou pÅÃpravu":e==="es"?"Te enseñamos la preparación argentina auténtica":"Check our preparation guide for Yerba Mate.";return h.jsxs("div",{className:"glass-card-hover p-7 rounded-3xl cursor-pointer h-full flex flex-col",onClick:()=>n(!t),children:[h.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[h.jsx("div",{className:"w-10 h-10 rounded-xl bg-accent/15 flex items-center justify-center",children:h.jsx(oR,{className:"h-5 w-5 text-accent"})}),h.jsx("h3",{className:"text-lg font-bold",children:r})]}),h.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:s}),h.jsxs("div",{className:"flex items-center gap-1 mt-auto",children:[h.jsx("span",{className:"text-xs font-semibold text-accent tracking-wide uppercase",children:t?e==="cs"?"ZavÅÃt":e==="es"?"Cerrar":"Close":e==="cs"?"Zobrazit":e==="es"?"Ver":"Show"}),h.jsx(LS,{className:`h-3.5 w-3.5 text-accent transition-transform duration-300 ${t?"rotate-180":""}`})]}),h.jsx(Nn,{children:t&&h.jsx(Be.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"overflow-hidden",children:h.jsx("ul",{className:"text-left text-sm text-muted-foreground space-y-2 mt-6 pt-5 border-t border-border",children:FU[e].map((i,o)=>h.jsx("li",{children:i},o))})})})]})},UU=()=>{const{locale:e}=wn(),[t,n]=b.useState([]),[r,s]=b.useState([]),[i,o]=b.useState([]),[a,l]=b.useState([]),[c,u]=b.useState(!0),[d,p]=b.useState(!0),[f,v]=b.useState(!0),[m,w]=b.useState(null),g=b.useRef(null),y=b.useRef(null),x=b.useRef(null),S=b.useRef(null),E=b.useCallback(k=>{w(_=>{const C=_===k?null:k;return C&&g.current&&requestAnimationFrame(()=>{const P=g.current;if(!P)return;const j=P.children,O=t.findIndex(z=>z.node.id===k);if(O>=0&&j[O]){const z=j[O],M=P.getBoundingClientRect(),Q=z.getBoundingClientRect();(Q.right>M.right-16||Q.left<M.left+16)&&z.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}}),C})},[t]);return b.useEffect(()=>{const k=` 498 query GetCollectionProducts($id: ID!) { 499 collection(id: $id) { products(first: 20) { edges { node { id title handle description priceRange { minVariantPrice { amount currencyCode } } images(first: 1) { edges { node { url altText } } } variants(first: 10) { edges { node { id title price { amount currencyCode } availableForSale selectedOptions { name value } } } } options { name values } } } } } 500 } 501 `,_=` 502 query GetMateProducts($id1: ID!, $id2: ID!) { 503 c1: collection(id: $id1) { products(first: 10) { edges { node { id title handle description priceRange { minVariantPrice { amount currencyCode } } images(first: 1) { edges { node { url altText } } } variants(first: 10) { edges { node { id title price { amount currencyCode } availableForSale selectedOptions { name value } } } } options { name values } } } } } 504 c2: collection(id: $id2) { products(first: 10) { edges { node { id title handle description priceRange { minVariantPrice { amount currencyCode } } images(first: 1) { edges { node { url altText } } } variants(first: 10) { edges { node { id title price { amount currencyCode } availableForSale selectedOptions { name value } } } } options { name values } } } } } 505 } 506 `;(async()=>{var z,M,Q,H,$,A,R,L,G,W,X,ee,he,Ce;const[P,j,D,O]=await Promise.allSettled([er(lM,{first:12,query:"product_type:Empanada OR product_type:Empanadas OR tag:empanada OR tag:empanadas"}),er(k,{id:"gid://shopify/Collection/688619094345"}),er(_,{id1:"gid://shopify/Collection/688611852617",id2:"gid://shopify/Collection/688618766665"}),er(k,{id:"gid://shopify/Collection/636477800777"})]);if(P.status==="fulfilled"&&n(((Q=(M=(z=P.value)==null?void 0:z.data)==null?void 0:M.products)==null?void 0:Q.edges)||[]),u(!1),j.status==="fulfilled"&&s(((R=(A=($=(H=j.value)==null?void 0:H.data)==null?void 0:$.collection)==null?void 0:A.products)==null?void 0:R.edges)||[]),p(!1),O.status==="fulfilled"&&l(((X=(W=(G=(L=O.value)==null?void 0:L.data)==null?void 0:G.collection)==null?void 0:W.products)==null?void 0:X.edges)||[]),v(!1),D.status==="fulfilled"){const ne=(ee=D.value)==null?void 0:ee.data,Lt=ne
506w Set,mt=[];for(const Dt of["c1","c2"])for(const ce of((Ce=(he=ne==null?void 0:ne[Dt])==null?void 0:he.products)==null?void 0:Ce.edges)||[])Lt.has(ce.node.id)||(Lt.add(ce.node.id),mt.push(ce));o(mt)}})()},[]),h.jsxs("div",{className:"min-h-screen bg-background overflow-x-hidden",children:[h.jsx(_M,{...kM("home",e),path:"/"}),Date.now()<new Date("2026-06-18T00:00:00+02:00").getTime()?h.jsx(IU,{locale:e}):h.jsxs("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col flex-nowrap sm:flex-row sm:flex-wrap gap-3 items-end justify-end pointer-events-auto max-h-[calc(100vh-2rem)] overflow-y-auto overflow-x-hidden overscroll-contain p-1",children:[h.jsx(RU,{locale:e}),h.jsx(NU,{locale:e})]}),h.jsx(xU,{}),h.jsxs("section",{className:"relative min-h-[85vh] flex items-center overflow-hidden",children:[h.jsxs("div",{className:"absolute inset-0 bg-primary",children:[h.jsx("video",{autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"metadata",className:"w-full h-full object-cover opacity-0 transition-opacity duration-700",onLoadedData:k=>{k.target.classList.remove("opacity-0")},children:h.jsx("source",{src:"/videos/hero.mp4",type:"video/mp4"})}),h.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-primary/90 via-primary/60 to-primary/30"})]}),h.jsxs("div",{className:"relative z-10 container mx-auto max-w-6xl px-4 py-32 flex flex-col items-center text-center",children:[h.jsx(Be.div,{className:"flex items-center justify-center gap-6 mb-10",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1},children:[{val:"3",lbl:e==="cs"?"poboÄky":e==="es"?"locales":"locations"},{val:"12+",lbl:e==="cs"?"pÅÃchutà empanadas":e==="es"?"sabores de empanadas":"fillings"},{val:"2020",lbl:e==="cs"?"od roku":e==="es"?"desde":"since"}].map(k=>h.jsxs("span",{className:"text-sm text-white/70",children:[h.jsx("strong",{className:"text-white font-bold",children:k.val})," ",k.lbl]},k.val))}),h.jsxs(Be.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.9,delay:.2,ease:[.22,1,.36,1]},className:"mb-6",children:[h.jsx("img",{src:DU,alt:"Malá Argenta â empanadas argentinas en Praga",width:560,height:224,fetchPriority:"high",decoding:"async",className:"h-40 sm:h-48 md:h-56 w-auto drop-shadow-2xl mx-auto"}),h.jsx("h1",{className:"text-lg sm:text-xl md:text-2xl font-semibold text-white/90 tracking-wide mt-4",children:q("hero.title",e)})]}),h.jsx(Be.div,{className:"w-full max-w-4xl space-y-3",initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.5,delay:.8},children:h.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3 items-stretch",children:[h.jsxs("a",{href:"https://www.google.com/maps/place/Mal%C3%A1+Argenta+-+Mal%C3%A1+Strana+%7C+Argentinsk%C3%A9+Empanadas/@50.0840981,14.4020524,17z/data=!3m1!4b1!4m6!3m5!1s0x470b95be1ab09315:0x71680bfa60e77b1a!8m2!3d50.0840981!4d14.4046273!16s%2Fg%2F11j616js_n?entry=ttu&g_ep=EgoyMDI2MDIxNi4wIKXMDSoASAFQAw%3D%3D",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 bg-white/15 backdrop-blur-md border border-white/20 text-white px-4 py-3.5 rounded-full hover:bg-white/25 transition-colors group",children:[h.jsx(Zn,{className:"h-4 w-4 text-white flex-shrink-0"}),h.jsx("span",{className:"text-sm font-semibold tracking-tight",children:"Malá Strana"}),h.jsx("span",{className:"text-xs text-white/70 hidden md:inline",children:"Ãjezd 454/46"}),h.jsx(qn,{className:"h-3.5 w-3.5 text-white/60 group-hover:translate-x-0.5 transition-transform flex-shrink-0"})]}),h.jsxs("a",{href:"https://www.google.com/maps/place/Mal%C3%A1+Argenta+-+Vinohrady+%7C+Argentinsk%C3%A9+Empanadas/@50.0754606,14.4391809,17z/data=!3m1!4b1!4m6!3m5!1s0x470b952472e45cf5:0xb60a82047c30997f!8m2!3d50.0754606!4d14.4417558!16s%2Fg%2F11yc949trq?entry=ttu&g_ep=EgoyMDI2MDIxNi4wIKXMDSoASAFQAw%3D%3D",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 bg-white/15 backdrop-blur-md border border-white/20 text-white px-4 py-3.5 rounded-full hover:bg-white/25 transition-colors group",children:[h.jsx(Zn,{className:"h-4 w-4 text-white flex-shrink-0"}),h.jsx("span",{className:"text-sm font-semibold tracking-tight",children:"Vinohrady"}),h.jsx("span",{className:"text-xs text-white/70 hidden md:inline",children:"Korunnà 783/23"}
506),h.jsx(qn,{className:"h-3.5 w-3.5 text-white/60 group-hover:translate-x-0.5 transition-transform flex-shrink-0"})]}),rE()?h.jsxs("a",{href:Oc.mapUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 bg-white/15 backdrop-blur-md border border-white/20 text-white px-4 py-3.5 rounded-full hover:bg-white/25 transition-colors group",children:[h.jsx(Zn,{className:"h-4 w-4 text-white flex-shrink-0"}),h.jsx("span",{className:"text-sm font-semibold tracking-tight",children:"Staré MÄsto"}),h.jsx("span",{className:"text-xs text-white/70 hidden md:inline",children:"Rybná 715/26"}),h.jsx(qn,{className:"h-3.5 w-3.5 text-white/60 group-hover:translate-x-0.5 transition-transform flex-shrink-0"})]}):h.jsxs("div",{className:"relative",children:[h.jsxs("div",{"aria-disabled":"true",className:"flex items-center justify-center gap-2 bg-white/10 backdrop-blur-md border border-white/15 border-dashed text-white/70 px-4 py-3.5 rounded-full cursor-default select-none",children:[h.jsx(Zn,{className:"h-4 w-4 text-white/60 flex-shrink-0"}),h.jsx("span",{className:"text-sm font-semibold tracking-tight",children:"Staré MÄsto"}),h.jsx("span",{className:"text-xs text-white/70 hidden md:inline",children:"Rybná 715/26"})]}),h.jsx("p",{className:"absolute left-0 right-0 top-full mt-1 text-center text-[10px] font-bold tracking-[0.15em] uppercase text-white/60 pointer-events-none",children:sE(e)})]})]})})]})]}),h.jsxs("section",{className:"py-16 md:py-24 px-4 relative overflow-hidden",children:[h.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-accent/[0.12] via-background to-background pointer-events-none"}),h.jsxs("div",{className:"container mx-auto max-w-6xl relative z-10",children:[h.jsxs(Sr,{className:"text-center mb-10 md:mb-14",children:[h.jsx("span",{className:"text-xs md:text-sm font-semibold tracking-[0.2em] uppercase text-accent mb-4 block",children:e==="cs"?"Hned k dispozici":e==="es"?"Disponible ahora":"Available now"}),h.jsx("h2",{className:"text-3xl md:text-5xl font-bold tracking-tight mb-4",children:q("home.orderNow.title",e)}),h.jsx("p",{className:"text-sm md:text-base text-muted-foreground max-w-md mx-auto",children:q("home.orderNow.subtitle",e)})]}),h.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5 md:gap-6",style:{perspective:900},children:[{to:"/freshly-baked",icon:US,title:q("order.cooked",e),desc:q("order.cookedDesc",e),delay:0,gradient:"from-amber-500/20 to-orange-500/10"},{to:"/frozen",icon:VS,title:q("order.frozen",e),desc:q("order.frozenDesc",e),delay:.2,gradient:"from-sky-400/20 to-cyan-300/10"}].map(k=>h.jsx(Be.div,{initial:{opacity:0,y:60,scale:.9},whileInView:{opacity:1,y:0,scale:1},viewport:{once:!0,margin:"-80px"},transition:{duration:.8,delay:k.delay,ease:[.22,1,.36,1]},children:h.jsxs(Je,{to:k.to,className:"group relative glass-card-hover p-6 md:p-8 rounded-3xl text-center block h-full overflow-hidden",children:[h.jsx("div",{className:`absolute inset-0 bg-gradient-to-br ${k.gradient} opacity-0 group-hover:opacity-100 transition-opacity duration-500`}),h.jsxs("div",{className:"relative z-10",children:[h.jsx("div",{className:"w-14 h-14 rounded-2xl bg-accent/10 flex items-center justify-center mx-auto mb-4 group-hover:scale-110 group-hover:bg-accent/20 transition-all duration-300",children:h.jsx(k.icon,{className:"h-6 w-6 text-accent"})}),h.jsx("h3",{className:"text-lg md:text-xl font-bold mb-2",children:k.title}),h.jsx("p",{className:"text-muted-foreground text-sm mb-4 max-w-xs mx-auto",children:k.desc}),h.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-semibold text-accent tracking-wide uppercase",children:[e==="cs"?"Prohlédnout":e==="es"?"Ver más":"Explore",h.jsx(qn,{className:"h-4 w-4 group-hover:translate-x-1 transition-transform"})]})]})]})},k.to))})]})]}),h.jsx("section",{id:"empanadas",className:"py-20 md:py-28 px-4",children:h.jsxs("div",{className:"container mx-auto max-w-6xl",children:[h.jsxs(Sr,{className:"text-center mb-12",children:[h.jsx("span",{className:"text-xs font-semibold tracking-[0.2em] uppercase text-accent mb-3 block",children:e==="cs"?"NaÅ¡e nabÃdka":e==="es"?"Nuestra oferta":"With meat, vegetarian and with truffles"}),h.jsx("h2",{className:"text-3xl md:text-5xl font-bold tracking-tight mb-3",children:q("empanadas.title",e)}),h.jsx("p",{className:"text-sm md:text-base text-muted-foreground max-w-md mx-auto",children:q("empanadas.subtitle",e)})]}),c?h.jsx("div",{className:"flex gap-4 overflow-hidden mb-12",children:[...Array(4)].map((k,_)=>h.jsx("div",{className:"min-w-[200px] aspect-square rounded-2xl bg-secondary animate-pulse flex-shrink-0"},_))}):t.length>0&&h.jsxs("div",{className:"mb-12 -mx-4 px-4 relative z-10",children:[h.jsx("button",{onClick:()=>{var k;return(k=g.current)==null?void 0:k.scrollBy({left:-220,behavior:"smooth"})},className:"absolute left-2 top-1/2 -translate-y-1/2 z-20 w-8 h-8 rounded-full bg-background/60 backdrop-blur-sm border border-border/50 flex items-center justify-center text-muted-foreground
506/60 hover:text-foreground hover:bg-background/90 transition-all duration-200 hidden md:flex","aria-label":"Scroll left",children:h.jsx(Kl,{className:"h-4 w-4"})}),h.jsx("div",{ref:g,className:"flex gap-4 overflow-x-auto overflow-y-visible pb-8 snap-x snap-mandatory scrollbar-hide items-start",children:t.map(k=>h.jsx(TU,{product:k,expanded:m===k.node.id,onToggle:()=>E(k.node.id)},k.node.id))}),h.jsx("button",{onClick:()=>{var k;return(k=g.current)==null?void 0:k.scrollBy({left:220,behavior:"smooth"})},className:"absolute right-2 top-1/2 -translate-y-1/2 z-20 w-8 h-8 rounded-full bg-background/60 backdrop-blur-sm border border-border/50 flex items-center justify-center text-muted-foreground/60 hover:text-foreground hover:bg-background/90 transition-all duration-200 hidden md:flex","aria-label":"Scroll right",children:h.jsx(ql,{className:"h-4 w-4"})})]})]})}),h.jsx("section",{id:"yerbamate",className:"py-20 md:py-28 px-4 bg-accent/[0.08]",children:h.jsxs("div",{className:"container mx-auto max-w-6xl",children:[h.jsxs(Sr,{className:"text-center mb-12",children:[h.jsx("span",{className:"text-xs font-semibold tracking-[0.2em] uppercase text-accent mb-3 block",children:e==="cs"?"SvÄt mate":e==="es"?"Mundo mate":"Check our"}),h.jsx("h2",{className:"text-3xl md:text-5xl font-bold tracking-tight mb-3",children:q("mate.title",e)}),h.jsx("p",{className:"text-sm md:text-base text-muted-foreground max-w-md mx-auto",children:q("mate.subtitle",e)})]}),h.jsxs(CU,{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:[h.jsx(Vh,{
506children:h.jsxs(Je,{to:"/yerba-mate",className:"glass-card-hover p-7 rounded-3xl block h-full group",children:[h.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[h.jsx("div",{className:"w-10 h-10 rounded-xl bg-accent/15 flex items-center justify-center group-hover:bg-accent/25 transition-colors",children:h.jsx(dR,{className:"h-5 w-5 text-accent"})}),h.jsx("h3",{className:"text-lg font-bold",children:e==="cs"?"Yerba Mate a pÅÃsluÅ¡enstvÃ":e==="es"?"Yerba Mate y Accesorios":"Yerba Maté, gourds, bombillas & much more"})]}),i.length>0&&h.jsxs("div",{className:"relative",onClick:k=>k.preventDefault(),children:[h.jsx("button",{onClick:k=>{var _;k.preventDefault(),k.stopPropagation(),(_=S.current)==null||_.scrollBy({left:-72,behavior:"smooth"})},className:"absolute -left-2 top-1/2 -translate-y-1/2 z-10 w-5 h-5 rounded-full bg-background/80 border border-border/50 flex items-center justify-center text-muted-foreground/50 hover:text-foreground transition-colors",children:h.jsx(Kl,{className:"h-3 w-3"})}),h.jsx("div",{ref:S,className:"flex gap-2 overflow-x-auto pb-2 mb-3 scrollbar-hide -mx-1 px-5",children:i.slice(0,6).map(k=>{var C;const _=(C=k.node.images.edges[0])==null?void 0:C.node;return h.jsx("div",{className:"w-16 h-16 flex-shrink-0 rounded-lg overflow-hidden bg-secondary border border-border/50",children:_?h.jsx("img",{src:_.url+(_.url.includes("cdn.shopify.com")?"&width=128&height=128&crop=center":""),alt:_.altText||k.node.title,className:"w-full h-full object-cover",loading:"lazy"}):h.jsx("div",{className:"w-full h-full flex items-center justify-center text-lg",children:"ð§"})},k.node.id)})}),h.jsx("button",{onClick:k=>{var _;k.preventDefault(),k.stopPropagation(),(_=S.current)==null||_.scrollBy({left:72,behavior:"smooth"})},className:"absolute -right-2 top-1/2 -translate-y-1/2 z-10 w-5 h-5 rounded-full bg-background/80 border border-border/50 flex items-center justify-center text-muted-foreground/50 hover:text-foreground transition-colors",children:h.jsx(ql,{className:"h-3 w-3"})})]}),h.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:e==="cs"?"Yerba mate, mates, bombillas a dalÅ¡Ã":e==="es"?"Yerba mate, mates, bombillas y más":"Yerba mate, mates, bombillas & more"}),h.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-semibold text-accent tracking-wide uppercase",children:[e==="cs"?"Nakoupit":e==="es"?"Comprar":"Shop"," ",h.jsx(qn,{className:"h-3.5 w-3.5"})]})]})}
506),h.jsx(Vh,{children:h.jsxs("div",{className:"glass-card-hover p-7 rounded-3xl h-full flex flex-col",children:[h.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[h.jsx("div",{className:"w-10 h-10 rounded-xl bg-accent/15 flex items-center justify-center",children:h.jsx(uR,{className:"h-5 w-5 text-accent"})}),h.jsx("h3",{className:"text-lg font-bold",children:"Workshops"})]}),h.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:e==="cs"?"PÅihlaste se na náš workshop pÅÃpravy mate":e==="es"?"Inscribite a nuestro workshop de mate":"Yerba Mate workshops. Preparation, history, degustation & more."}),h.jsx("div",{className:"flex justify-center mb-4",children:h.jsx("img",{src:$U,alt:"QR para registrarse al taller de mate de Malá Argenta",loading:"lazy",decoding:"async",className:"w-24 h-24 rounded-xl border border-border"})}),h.jsxs("span",{className:"text-[11px] text-muted-foreground text-center",children:[e==="cs"?"Naskenujte pro registraci nebo ":e==="es"?"Escaneá para inscribirte o ":"Scan to register or ",h.jsx("a",{href:"https://bit.ly/4rskylj",target:"_blank",rel:"noopener noreferrer",className:"text-accent font-semibold hover:underline",children:e==="cs"?"kliknÄte zde":e==="es"?"hacé clic acá":"click here"})]})]})}
506),h.jsx(Vh,{children:h.jsx(VU,{locale:e})})]})]})}),h.jsx("section",{className:"py-20 md:py-28 px-4",children:h.jsxs("div",{className:"container mx-auto max-w-6xl",children:[h.jsxs(Sr,{className:"text-center mb-12",children:[h.jsx("span",{className:"text-xs font-semibold tracking-[0.2em] uppercase text-accent mb-3 block",children:e==="cs"?"Argentinská vÃna":e==="es"?"Vinos argentinos":"Argentine wines"}),h.jsxs("h2",{className:"text-3xl md:text-5xl font-bold tracking-tight mb-3 flex items-center justify-center gap-3",children:[h.jsx(gR,{className:"h-8 w-8 md:h-10 md:w-10 text-accent"}),e==="cs"?"VÃno":e==="es"?"Vino":"Wine"]}),h.jsx("p",{className:"text-sm md:text-base text-muted-foreground max-w-md mx-auto",children:e==="cs"?"Vybraná argentinská vÃna â Malbec, Cabernet a dalÅ¡Ã":e==="es"?"Vinos argentinos seleccionados â Malbec, Cabernet y más":"Selected Argentine wines â Malbec, Cabernet and more."})]}),f?h.jsx("div",{className:"flex gap-4 overflow-hidden mb-10",children:[...Array(4)].map((k,_)=>h.jsx("div",{className:"min-w-[200px] aspect-square rounded-2xl bg-secondary animate-pulse flex-shrink-0"},_))}):a.length>0&&h.jsxs("div",{className:"mb-10 -mx-4 px-4 relative",children:[h.jsx("button",{onClick:()=>{var k;return(k=x.current)==null?void 0:k.scrollBy({left:-220,behavior:"smooth"})},className:"absolute left-2 top-1/2 -translate-y-1/2 z-20 w-8 h-8 rounded-full bg-background/60 backdrop-blur-sm border border-border/50 flex items-center justify-center text-muted-foreground/60 hover:text-foreground hover:bg-background/90 transition-all duration-200 hidden md:flex","aria-label":"Scroll left",children:h.jsx(Kl,{className:"h-4 w-4"})}),h.jsx("div",{ref:x,className:"flex gap-4 overflow-x-auto pb-4 snap-x snap-mandatory scrollbar-hide",children:a.map(k=>h.jsx(Je,{to:"/vino",className:"w-[200px] flex-shrink-0 snap-start block",children:h.jsx(kx,{product:k,hidePrice:!0,disableLink:!0})},k.node.id))}),h.jsx("button",{onClick:()=>{var k;return(k=x.current)==null?void 0:k.scrollBy({left:220,behavior:"smooth"})},className:"absolute right-2 top-1/2 -translate-y-1/2 z-20 w-8 h-8 rounded-full bg-background/60 backdrop-blur-sm border border-border/50 flex items-center justify-center text-muted-foreground/60 hover:text-foreground hover:bg-background/90 transition-all duration-200 hidden md:flex","aria-label":"Scroll right",children:h.jsx(ql,{className:"h-4 w-4"})})]}),h.jsx(Sr,{className:"text-center",children:h.jsxs(Je,{to:"/vino",className:"inline-flex items-center gap-1.5 text-sm font-semibold text-accent hover:underline tracking-wide uppercase",children:[e==="cs"?"Prozkoumat VÃno":e==="es"?"Explorar Vinos":"Explore Wines",h.jsx(qn,{className:"h-3.5 w-3.5"})]})})]})}),h.jsx("section",{className:"py-20 md:py-28 px-4 bg-secondary/30",children:h.jsxs("div",{className:"container mx-auto max-w-6xl",children:[h.jsxs(Sr,{className:"text-center mb-12",children:[h.jsx("span",{className:"text-xs font-semibold tracking-[0.2em] uppercase text-accent mb-3 block",children:e==="cs"?"Vlastnà výroba":e==="es"?"Elaboración propia":"Argentinian"}),h.jsx("h2",{className:"text-3xl md:text-5xl font-bold tracking-tight mb-3",children:"Kiosk"}),h.jsx("p",{className:"text-sm md:text-base text-muted-foreground max-w-md mx-auto",children:e==="cs"?"Alfajores, dulce de leche, chimichurri a dalšà produkty vlastnà výroby":e==="es"?"Alfajores, dulce de leche, chimichurri y más productos de elaboración propia":"Alfajores, dulce de leche, chimichurri & all the Argentinian products you love."})]}),d?h.jsx("div",{className:"flex gap-4 overflow-hidden mb-10",children:[...Array(4)].map((k,_)=>h.jsx("div",{className:"min-w-[200px] aspect-square rounded-2xl bg-secondary animate-pulse flex-shrink-0"},_))}):r.length>0&&h.jsxs("div",{className:"mb-10 -mx-4 px-4 relative",children:[h.jsx("button",{onClick:()=>{var k;return(k=y.current)==null?void 0:k.scrollBy({left:-220,behavior:"smooth"})},className:"absolute left-2 top-1/2 -translate-y-1/2 z-20 w-8 h-8 rounded-full bg-background/60 backdrop-blur-sm border border-border/50 flex items-center justify-center text-muted-foreground
506/60 hover:text-foreground hover:bg-background/90 transition-all duration-200 hidden md:flex","aria-label":"Scroll left",children:h.jsx(Kl,{className:"h-4 w-4"})}),h.jsx("div",{ref:y,className:"flex gap-4 overflow-x-auto pb-4 snap-x snap-mandatory scrollbar-hide",children:r.map(k=>h.jsx(Je,{to:"/kiosk",className:"w-[200px] flex-shrink-0 snap-start block",children:h.jsx(kx,{product:k,hidePrice:!0,disableLink:!0})},k.node.id))}),h.jsx("button",{onClick:()=>{var k;return(k=y.current)==null?void 0:k.scrollBy({left:220,behavior:"smooth"})},className:"absolute right-2 top-1/2 -translate-y-1/2 z-20 w-8 h-8 rounded-full bg-background/60 backdrop-blur-sm border border-border/50 flex items-center justify-center text-muted-foreground/60 hover:text-foreground hover:bg-background/90 transition-all duration-200 hidden md:flex","aria-label":"Scroll right",children:h.jsx(ql,{className:"h-4 w-4"})})]}),h.jsx(Sr,{className:"text-center",children:h.jsxs(Je,{to:"/kiosk",className:"inline-flex items-center gap-1.5 text-sm font-semibold text-accent hover:underline tracking-wide uppercase",children:[e==="cs"?"Prozkoumat Kiosk":e==="es"?"Explorar Kiosk":"Explore Kiosk",h.jsx(qn,{className:"h-3.5 w-3.5"})]})})]})}),h.jsx("section",{className:"py-6 px-4 md:py-8",children:h.jsx("div",{className:"container mx-auto max-w-6xl",children:h.jsx(AU,{locale:e})})}),h.jsx(LU,{})]})},zU=()=>{const{search:e}=as(),t=wn(n=>n.setLocale);return b.useEffect(()=>{const n=new URLSearchParams(e).get("lang");(n==="cs"||n==="es"||n==="en")&&t(n)},[e,t]),null},BU=()=>{const{pathname:e}=as();return b.useEffect(()=>{window.scrollTo(0,0)},[e]),null},WU=()=>{const{pathname:e}=as();return b.useEffect(()=>{typeof window.fbq=="function"&&window.fbq("track","PageView")},[e]),null},HU=b.lazy(()=>He(()=>import("./ProductDetail-S8DYrbLM.js"),__vite__mapDeps([0,1]))),KU=b.lazy(()=>He(()=>import("./FreshlyBaked-DW5tkEM2.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,1,12]))),qU=b.lazy(()=>He(()=>import("./Frozen-B_zE46MW.js"),__vite__mapDeps([13,3,4,11,1,14,15]))),GU=b.lazy(()=>He(()=>import("./Events-B-9JcVIn.js"),__vite__mapDeps([16,11,1]))),YU=b.lazy(()=>He(()=>import("./YerbaMate-Ce2zbh1I.js"),__vite__mapDeps([17,18,11,1]))),Ax=b.lazy(()=>He(()=>import("./AlmacenArgentino-Bt4xs9AN.js"),__vite__mapDeps([19,5,4,18,11,1]))),QU=b.lazy(()=>He(()=>import("./Vino-BazCd9bK.js"),__vite__mapDeps([20,11,1]))),JU=b.lazy(()=>He(()=>import("./Cupones-Dh1x2IqW.js"),__vite__mapDeps([21,11,1,7,14,15]))),XU=b.lazy(()=>He(()=>import("./Account-B7UtyDWl.js").then(e=>e.A),__vite__mapDeps([22,11,1,8,10,14,23]))),ZU=b.lazy(()=>He(()=>import("./AccountSettings-Z_DWTDt3.js"),__vite__mapDeps([24,22,11,1,8,10,14,23]))),ez=b.lazy(()=>He(()=>import("./ResetPassword-LvaXSrh5.js"),__vite__mapDeps([25,8,10]))),tz=b.lazy(()=>He(()=>import("./Contact-xFytEkh4.js"),__vite__mapDeps([26,11,1,27]))),nz=b.lazy(()=>He(()=>import("./AdminLogin-B9efCwkY.js"),__vite__mapDeps([28,8,10]))),rz=b.lazy(()=>He(()=>import("./AdminCoupons-4c8CWkgG.js"),__vite__mapDeps([29,8,10,14,9,7,1,23]))),sz=b.lazy(()=>He(()=>import("./AdminClients-CTklPmI1.js"),__vite__mapDeps([30,8,1,23]))),iz=b.lazy(()=>He(()=>import("./AdminReservations-Bcb3x-q3.js"),__vite__mapDeps([31,8,1,23,12,27]))),oz=b.lazy(()=>He(()=>import("./DeliveryApps-CCLDp8tF.js"),__vite__mapDeps([32,6,5,4,7,8,9,10]))),az=b.lazy(()=>He(()=>import("./NotFound-BbyQDA9t.js"),[])),lz=new DO,cz=()=>(wM(),h.jsxs(QI,{children:[h.jsx(BU,{}),h.jsx(zU,{}),h.jsx(WU,{}),h.jsx(b.Suspense,{fallback:h.jsx("div",{className:"min-h-screen bg-background"}),children:h.jsxs(BI,{children:[h.jsx(Re,{path:"/",element:h.jsx(UU,{})}),h.jsx(Re,{path:"/product/:handle",element:h.jsx(HU,{})}),h.jsx(Re,{path:"/freshly-baked",element:h.jsx(KU,{})}),h.jsx(Re,{path:"/frozen",element:h.jsx(qU,{})}),h.jsx(Re,{path:"/yerba-mate",element:h.jsx(YU,{})}),h.jsx(Re,{path:"/kiosk",element:h.jsx(Ax,{})}),h.jsx(Re,{path:"/almacen-argentino",element:h.jsx(Ax,{})}),h.jsx(Re,{path:"/vino",element:h.jsx(QU,{})}),h.jsx(Re,{path:"/cupones",element:h.jsx(JU,{})}),h.jsx(Re,{path:"/cuenta",element:h.jsx(XU,{})}),h.jsx(Re,{path:"/cuenta/configuracion",element:h.jsx(ZU,{})}),h.jsx(Re,{path:"/reset-password",element:h.jsx(ez,{})}),h.jsx(Re,{path:"/contact",element:h.jsx(tz,{})}),h.jsx(Re,{path:"/events",element:h.jsx(GU,{})}),h.jsx(Re,{path:"/admin",element:h.jsx(nz,{})}),h.jsx(Re,{path:"/admin/cupones",element:h.jsx(rz,{})}),h.jsx(Re,{path:"/admin/clientes",element:h.jsx(sz,{})}),h.jsx(Re,{path:"/admin/reservas",element:h.jsx(iz,{})}),h.jsx(Re,{path:"/delivery",element:h.jsx(oz,{})}),h.jsx(Re,{path:"*",element:h.jsx(az,{})})]})})]})),uz=()=>h.jsx(zO,{client:lz,children:h.jsxs(vO,{children:[h.jsx(XR,{}),h.jsx(j2,{}),h.jsx(cz,{})]})});X1(document.getElementById("root")).render(h.jsx(iS,{children:h.jsx(uz,{})}));export{Kl as $,UT as A,xt as B,LS as C,MU as D,qn as E,LU as F,Zn as G,sE as H,Oc as I,rE as J,Dn as K,Wf as L,FS as M,xU as N,eh as O,Hf as P,MS as Q,Sr as R,_M as S,dR as T,US as U,CU as V,Vh as W,So as X,uR as Y,$U as Z,gR as _,wn as a,ql as a0,DS as a1,$S as a2,Jm as a3,th as a4,cR as a5,wU as a6,hl as a7,ht as a8,hS as a9,ml as aA,Qe as aB,Ak as aC,$O as aD,UO as aE,BO as aF,KO as aG,QO as aH,qO as aI,GO as aJ,vt as aK,XO as aL,i0 as aM,JO as aN,YO as aO,eI as aP,mT as aQ,gT as aR,j3 as aS,yT as aT,vT as aU,C3 as aV,P3 as aW,A3 as aX,Zu as aY,as as aZ,De as aa,be as ab,HN as ac,_t as ad,yj as ae,dk as af,XN as ag,or as ah,dl as ai,y3 as aj,j4 as ak,J_ as al,B_ as am,Qu as an,ZN as ao,rh as ap,eO as aq,Mj as ar,$n as as,fz as at,qm as au,La as av,lR as aw,mR as ax,lM as ay,yU as az,ey as b,qk as c,wu as d,VT as e,Je as f,vz as g,Zm as h,kM as i,h as j,Gl as k,kx as l,Nn as m,Be as n,ae as o,Nu as p,jU as q,b as r,er as s,q as t,yz as u,mU as v,VS as w,Iv as x,fR as y,Ov as z};
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.