PageSourceSearch

https://fitness-capelle-clean.lovable.app/assets/index-DsWM10RR.js

js fitness-capelle-clean.lovable.app collected 2026-10-03 03:31:24 UTC 659,977 bytes, 242 lines download raw bytes

vendor: 4,703 bytes, lines 1-9
1var jp=e=>{throw TypeError(e)};var qc=(e,t,n)=>t.has(e)||jp("Cannot "+n);var O=(e,t,n)=>(qc(e,t,"read from private field"),n?n.call(e):t.get(e)),xe=(e,t,n)=>t.has(e)?jp("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ae=(e,t,n,r)=>(qc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ut=(e,t,n)=>(qc(e,t,"access private method"),n);var yl=(e,t,n,r)=>({set _(s){ae(e,t,s,n)},get _(){return O(e,t,r)}});function y1(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)}})();var nn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function w1(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var $y={exports:{}},sc={},zy={exports:{}},me={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Ga=Symbol.for("react.element"),x1=Symbol.for("react.portal"),b1=Symbol.for("react.fragment"),_1=Symbol.for("react.strict_mode"),k1=Symbol.for("react.profiler"),S1=Symbol.for("react.provider"),C1=Symbol.for("react.context"),j1=Symbol.for("react.forward_ref"),E1=Symbol.for("react.suspense"),T1=Symbol.for("react.memo"),N1=Symbol.for("react.lazy"),Ep=Symbol.iterator;function P1(e){return e===null||typeof e!="object"?null:(e=Ep&&e[Ep]||e["@@iterator"],typeof e=="function"?e:null)}var Uy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},By=Object.assign,Vy={};function ko(e,t,n){this.props=e,this.context=t,this.refs=Vy,this.updater=n||Uy}ko.prototype.isReactComponent={};ko.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")};ko.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wy(){}Wy.prototype=ko.prototype;function Th(e,t,n){this.props=e,this.context=t,this.refs=Vy,this.updater=n||Uy}var Nh=Th.prototype=new Wy;Nh.constructor=Th;By(Nh,ko.prototype);Nh.isPureReactComponent=!0;var Tp=Array.isArray,Hy=Object.prototype.hasOwnProperty,Ph={current:null},qy={key:!0,ref:!0,__self:!0,__source:!0};function Ky(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)Hy.call(t,r)&&!qy.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),u=0;u<a;u++)l[u]=arguments[u+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:Ga,type:e,key:i,ref:o,props:s,_owner:Ph.current}}function O1(e,t){return{$$typeof:Ga,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Oh(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ga}function R1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Np=/\/+/g;function Kc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?R1(""+e.key):t.toString(36)}
vendor: 4,786 bytes, lines 9-17
9function Ql(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 Ga:case x1:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+Kc(o,0):r,Tp(s)?(n="",e!=null&&(n=e.replace(Np,"$&/")+"/"),Ql(s,t,n,"",function(u){return u})):s!=null&&(Oh(s)&&(s=O1(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Np,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",Tp(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+Kc(i,a);o+=Ql(i,t,n,l,s)}else if(l=P1(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+Kc(i,a++),o+=Ql(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 wl(e,t,n){if(e==null)return e;var r=[],s=0;return Ql(e,r,"","",function(i){return t.call(n,i,s++)}),r}function A1(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 _t={current:null},Zl={transition:null},D1={ReactCurrentDispatcher:_t,ReactCurrentBatchConfig:Zl,ReactCurrentOwner:Ph};function Yy(){throw Error("act(...) is not supported in production builds of React.")}me.Children={map:wl,forEach:function(e,t,n){wl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return wl(e,function(){t++}),t},toArray:function(e){return wl(e,function(t){return t})||[]},only:function(e){if(!Oh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};me.Component=ko;me.Fragment=b1;me.Profiler=k1;me.PureComponent=Th;me.StrictMode=_1;me.Suspense=E1;me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D1;me.act=Yy;me.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=By({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Ph.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Hy.call(t,l)&&!qy.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Ga,type:e.type,key:s,ref:i,props:r,_owner:o}};me.createContext=function(e){return e={$$typeof:C1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:S1,_context:e},e.Consumer=e};me.createElement=Ky;me.createFactory=function(e){var t=Ky.bind(null,e);return t.type=e,t};me.createRef=function(){return{current:null}};me.forwardRef=function(e){return{$$typeof:j1,render:e}};me.isValidElement=Oh;me.lazy=function(e){return{$$typeof:N1,_payload:{_status:-1,_result:e},_init:A1}};me.memo=function(e,t){return{$$typeof:T1,type:e,compare:t===void 0?null:t}};me.startTransition=function(e){var t=Zl.transition;Zl.transition={};try{e()}finally{Zl.transition=t}};me.unstable_act=Yy;me.useCallback=function(e,t){return _t.current.useCallback(e,t)};me.useContext=function(e){return _t.current.useContext(e)};me.useDebugValue=function(){};me.useDeferredValue=function(e){return _t.current.useDeferredValue(e)};me.useEffect=function(e,t){return _t.current.useEffect(e,t)};me.useId=function(){return _t.current.useId()};me.useImperativeHandle=function(e,t,n){return _t.current.useImperativeHandle(e,t,n)};me.useInsertionEffect=function(e,t){return _t.current.useInsertionEffect(e,t)};me.useLayoutEffect=function(e,t){return _t.current.useLayoutEffect(e,t)};me.useMemo=function(e,t){return _t.current.useMemo(e,t)};me.useReducer=function(e,t,n){return _t.current.useReducer(e,t,n)};me.useRef=function(e){return _t.current.useRef(e)};me.useState=function(e){return _t.current.useState(e)};me.useSyncExternalStore=function(e,t,n){return _t.current.useSyncExternalStore(e,t,n)};me.useTransition=function(){return _t.current.useTransition()};me.version="18.3.1";zy.exports=me;var x=zy.exports;const P=Fy(x),Rh=y1({__proto__:null,default:P},[x]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var I1=x,M1=Symbol.for("react.element"),L1=Symbol.for("react.fragment"),F1=Object.prototype.hasOwnProperty,$1=I1.__SECRET_INT
vendor: 8,882 bytes, lines 17-33
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,z1={key:!0,ref:!0,__self:!0,__source:!0};function Gy(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)F1.call(t,r)&&!z1.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:M1,type:e,key:i,ref:o,props:s,_owner:$1.current}}sc.Fragment=L1;sc.jsx=Gy;sc.jsxs=Gy;$y.exports=sc;var d=$y.exports,Qy={exports:{}},Kt={},Zy={exports:{}},Xy={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(j,R){var V=j.length;j.push(R);e:for(;0<V;){var ne=V-1>>>1,te=j[ne];if(0<s(te,R))j[ne]=R,j[V]=te,V=ne;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var R=j[0],V=j.pop();if(V!==R){j[0]=V;e:for(var ne=0,te=j.length,ce=te>>>1;ne<ce;){var de=2*(ne+1)-1,Le=j[de],tt=de+1,ge=j[tt];if(0>s(Le,V))tt<te&&0>s(ge,Le)?(j[ne]=ge,j[tt]=V,ne=tt):(j[ne]=Le,j[de]=V,ne=de);else if(tt<te&&0>s(ge,V))j[ne]=ge,j[tt]=V,ne=tt;else break e}}return R}function s(j,R){var V=j.sortIndex-R.sortIndex;return V!==0?V:j.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=[],u=[],c=1,f=null,h=3,m=!1,b=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(j){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=j)r(u),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(u)}}function _(j){if(g=!1,v(j),!b)if(n(l)!==null)b=!0,Q(S);else{var R=n(u);R!==null&&D(_,R.startTime-j)}}function S(j,R){b=!1,g&&(g=!1,y(A),A=-1),m=!0;var V=h;try{for(v(R),f=n(l);f!==null&&(!(f.expirationTime>R)||j&&!J());){var ne=f.callback;if(typeof ne=="function"){f.callback=null,h=f.priorityLevel;var te=ne(f.expirationTime<=R);R=e.unstable_now(),typeof te=="function"?f.callback=te:f===n(l)&&r(l),v(R)}else r(l);f=n(l)}if(f!==null)var ce=!0;else{var de=n(u);de!==null&&D(_,de.startTime-R),ce=!1}return ce}finally{f=null,h=V,m=!1}}var C=!1,E=null,A=-1,F=5,$=-1;function J(){return!(e.unstable_now()-$<F)}function I(){if(E!==null){var j=e.unstable_now();$=j;var R=!0;try{R=E(!0,j)}finally{R?K():(C=!1,E=null)}}else C=!1}var K;if(typeof p=="function")K=function(){p(I)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,ee=M.port2;M.port1.onmessage=I,K=function(){ee.postMessage(null)}}else K=function(){w(I,0)};function Q(j){E=j,C||(C=!0,K())}function D(j,R){A=w(function(){j(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(j){j.callback=null},e.unstable_continueExecution=function(){b||m||(b=!0,Q(S))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(j){switch(h){case 1:case 2:case 3:var R=3;break;default:R=h}var V=h;h=R;try{return j()}finally{h=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,R){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var V=h;h=j;try{return R()}finally{h=V}},e.unstable_scheduleCallback=function(j,R,V){var ne=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?ne+V:ne):V=ne,j){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=V+te,j={id:c++,callback:R,priorityLevel:j,startTime:V,expirationTime:te,sortIndex:-1},V>ne?(j.sortIndex=V,t(u,j),n(l)===null&&j===n(u)&&(g?(y(A),A=-1):g=!0,D(_,V-ne))):(j.sortIndex=te,t(l,j),b||m||(b=!0,Q(S))),j},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(j){var R=h;return function(){var V=h;h=R;try{return j.apply(this,arguments)}finally{h=V}}}})(Xy);Zy.exports=Xy;var U1=Zy.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var B1=x,Wt=U1;function L(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 Jy=new Set,ga={};function si(e,t){oo(e,t),oo(e+"Capture",t)}function oo(e,t){for(ga[e]=t,e=0;e<t.length;e++)Jy.add(t[e])}var br=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xd=Object.prototype.hasOwnProperty,V1=/^[: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]*$/,Pp={},Op={};function W1(e){return Xd.call(Op,e)?!0:Xd.call(Pp,e)?!1:V1.test(e)?Op[e]=!0:(Pp[e]=!0,!1)}function H1(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 q1(e,t,n,r){if(t===null||typeof t>"u"||H1(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 kt(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 lt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){lt[e]=new kt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];lt[t]=new kt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){lt[e]=new kt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){lt[e]=new kt(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){lt[e]=new kt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){lt[e]=new kt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){lt[e]=new kt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){lt[e]=new kt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){lt[e]=new kt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ah=/[\-:]([a-z])/g;function Dh(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
33-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(Ah,Dh);lt[t]=new kt(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(Ah,Dh);lt[t]=new kt(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(Ah,Dh);lt[t]=new kt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){lt[e]=new kt(e,1,!1,e.toLowerCase(),null,!1,!1)});lt.xlinkHref=new kt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){lt[e]=new kt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ih(e,t,n,r){var s=lt.hasOwnProperty(t)?lt[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(q1(t,n,s,r)&&(n=null),r||s===null?W1(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 Nr=B1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,xl=Symbol.for("react.element"),Pi=Symbol.for("react.portal"),Oi=Symbol.for("react.fragment"),Mh=Symbol.for("react.strict_mode"),Jd=Symbol.for("react.profiler"),e0=Symbol.for("react.provider"),t0=Symbol.for("react.context"),Lh=Symbol.for("react.forward_ref"),ef=Symbol.for("react.suspense"),tf=Symbol.for("react.suspense_list"),Fh=Symbol.for("react.memo"),Br=Symbol.for("react.lazy"),n0=Symbol.for("react.offscreen"),Rp=Symbol.iterator;function Ao(e){return e===null||typeof e!="object"?null:(e=Rp&&e[Rp]||e["@@iterator"],typeof e=="function"?e:null)}var ze=Object.assign,Yc;function Go(e){if(Yc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Yc=t&&t[1]||""}return`
34`+Yc+e}var Gc=!1;function Qc(e,t){if(!e||Gc)return"";Gc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
35`),i=r.stack.split(`
36`),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=`
37`+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{Gc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Go(e):""}function K1(e){switch(e.tag){case 5:return Go(e.type);case 16:return Go("Lazy");case 13:return Go("Suspense");case 19:return Go("SuspenseList");case 0:case 2:case 15:return e=Qc(e.type,!1),e;case 11:return e=Qc(e.type.render,!1),e;case 1:return e=Qc(e.type,!0),e;default:return""}}function nf(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 Oi:return"Fragment";case Pi:return"Portal";case Jd:return"Profiler";case Mh:return"StrictMode";case ef:return"Suspense";case tf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case t0:return(e.displayName||"Context")+".Consumer";case e0:return(e._context.displayName||"Context")+".Provider";case Lh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fh:return t=e.displayName||null,t!==null?t:nf(e.type)||"Memo";case Br:t=e._payload,e=e._init;try{return nf(e(t))}catch{}}return null}function Y1(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 nf(t);case 8:return t===Mh?"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 hs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function r0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function G1(e){var t=r0(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 bl(e){e._valueTracker||(e._valueTracker=G1(e))}function s0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=r0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function pu(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 rf(e,t){var n=t.checked;return ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ap(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=hs(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 i0(e,t){t=t.checked,t!=null&&Ih(e,"checked",t,!1)}function sf(e,t){i0(e,t);var n=hs(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")?of(e,t.type,n):t.hasOwnProperty("defaultValue")&&of(e,t.type,hs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Dp(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 of(e,t,n){(t!=="number"||pu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qo=Array.isArray;function Vi(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=""+hs(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 af(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(L(91));return ze({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ip(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(L(92));if(Qo(n)){if(1<n.length)throw Error(L(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:hs(n)}}function o0(e,t){var n=hs(t.value),r=hs(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 Mp(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function a0(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 lf(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?a0(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var _l,l0=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(_l=_l||document.createElement("div"),_l.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=_l.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function va(e,t){if(t){var n=e.firstChild;
vendor: 7,358 bytes, line 37
37if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ta={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},Q1=["Webkit","ms","Moz","O"];Object.keys(ta).forEach(function(e){Q1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ta[t]=ta[e]})});function u0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ta.hasOwnProperty(e)&&ta[e]?(""+t).trim():t+"px"}function c0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=u0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Z1=ze({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 uf(e,t){if(t){if(Z1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function cf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var df=null;function $h(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ff=null,Wi=null,Hi=null;function Lp(e){if(e=Xa(e)){if(typeof ff!="function")throw Error(L(280));var t=e.stateNode;t&&(t=uc(t),ff(e.stateNode,e.type,t))}}function d0(e){Wi?Hi?Hi.push(e):Hi=[e]:Wi=e}function f0(){if(Wi){var e=Wi,t=Hi;if(Hi=Wi=null,Lp(e),t)for(e=0;e<t.length;e++)Lp(t[e])}}function h0(e,t){return e(t)}function m0(){}var Zc=!1;function p0(e,t,n){if(Zc)return e(t,n);Zc=!0;try{return h0(e,t,n)}finally{Zc=!1,(Wi!==null||Hi!==null)&&(m0(),f0())}}function ya(e,t){var n=e.stateNode;if(n===null)return null;var r=uc(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(L(231,t,typeof n));return n}var hf=!1;if(br)try{var Do={};Object.defineProperty(Do,"passive",{get:function(){hf=!0}}),window.addEventListener("test",Do,Do),window.removeEventListener("test",Do,Do)}catch{hf=!1}function X1(e,t,n,r,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var na=!1,gu=null,vu=!1,mf=null,J1={onError:function(e){na=!0,gu=e}};function ek(e,t,n,r,s,i,o,a,l){na=!1,gu=null,X1.apply(J1,arguments)}function tk(e,t,n,r,s,i,o,a,l){if(ek.apply(this,arguments),na){if(na){var u=gu;na=!1,gu=null}else throw Error(L(198));vu||(vu=!0,mf=u)}}function ii(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 g0(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 Fp(e){if(ii(e)!==e)throw Error(L(188))}function nk(e){var t=e.alternate;if(!t){if(t=ii(e),t===null)throw Error(L(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 Fp(s),e;if(i===r)return Fp(s),t;i=i.sibling}throw Error(L(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(L(189))}}if(n.alternate!==r)throw Error(L(190))}if(n.tag!==3)throw Error(L(188));return n.stateNode.current===n?e:t}function v0(e){return e=nk(e),e!==null?y0(e):null}function y0(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=y0(e);if(t!==null)return t;e=e.sibling}return null}var w0=Wt.unstable_scheduleCallback,$p=Wt.unstable_cancelCallback,rk=Wt.unstable_shouldYield,sk=Wt.unstable_requestPaint,He=Wt.unstable_now,ik=Wt.unstable_getCurrentPriorityLevel,zh=Wt.unstable_ImmediatePriority,x0=Wt.unstable_UserBlockingPriority,yu=Wt.unstable_NormalPriority,ok=Wt.unstable_LowPriority,b0=Wt.unstable_IdlePriority,ic=null,Yn=null;function ak(e){if(Yn&&typeof Yn.onCommitFiberRoot=="function")try{Yn.onCommitFiberRoot(ic,e,void 0,(e.current.flags&128)===128)}catch{}}var Cn=Math.clz32?Math.clz32:ck,lk=Math.log,uk=Math.LN2;function ck(e){return e>>>=0,e===0?32:31-(lk(e)/uk|0)|0}var kl=64,Sl=4194304;function Zo(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 wu(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=Zo(a):(i&=o,i!==0&&(r=Zo(i)))}else o=n&~s,o!==0?r=Zo(o):i!==0&&(r=Zo(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-Cn(t),s=1<<n,r|=e[n],t&=~s;return r}function dk(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 fk(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Cn(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=dk(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function pf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function _0(){var e=kl;return kl<<=1,!(kl&4194240)&&(kl=64),e}function Xc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}
vendor: 1,579 bytes, line 37
37function Qa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Cn(t),e[t]=n}function hk(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-Cn(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Uh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Cn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var Se=0;function k0(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var S0,Bh,C0,j0,E0,gf=!1,Cl=[],rs=null,ss=null,is=null,wa=new Map,xa=new Map,Hr=[],mk="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 zp(e,t){switch(e){case"focusin":case"focusout":rs=null;break;case"dragenter":case"dragleave":ss=null;break;case"mouseover":case"mouseout":is=null;break;case"pointerover":case"pointerout":wa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xa.delete(t.pointerId)}}function Io(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=Xa(t),t!==null&&Bh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function pk(e,t,n,r,s){switch(t){case"focusin":return rs=Io(rs,e,t,n,r,s
vendor: 12,909 bytes, line 37
37),!0;case"dragenter":return ss=Io(ss,e,t,n,r,s),!0;case"mouseover":return is=Io(is,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return wa.set(i,Io(wa.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,xa.set(i,Io(xa.get(i)||null,e,t,n,r,s)),!0}return!1}function T0(e){var t=Is(e.target);if(t!==null){var n=ii(t);if(n!==null){if(t=n.tag,t===13){if(t=g0(n),t!==null){e.blockedOn=t,E0(e.priority,function(){C0(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 Xl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);df=r,n.target.dispatchEvent(r),df=null}else return t=Xa(n),t!==null&&Bh(t),e.blockedOn=n,!1;t.shift()}return!0}function Up(e,t,n){Xl(e)&&n.delete(t)}function gk(){gf=!1,rs!==null&&Xl(rs)&&(rs=null),ss!==null&&Xl(ss)&&(ss=null),is!==null&&Xl(is)&&(is=null),wa.forEach(Up),xa.forEach(Up)}function Mo(e,t){e.blockedOn===t&&(e.blockedOn=null,gf||(gf=!0,Wt.unstable_scheduleCallback(Wt.unstable_NormalPriority,gk)))}function ba(e){function t(s){return Mo(s,e)}if(0<Cl.length){Mo(Cl[0],e);for(var n=1;n<Cl.length;n++){var r=Cl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(rs!==null&&Mo(rs,e),ss!==null&&Mo(ss,e),is!==null&&Mo(is,e),wa.forEach(t),xa.forEach(t),n=0;n<Hr.length;n++)r=Hr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Hr.length&&(n=Hr[0],n.blockedOn===null);)T0(n),n.blockedOn===null&&Hr.shift()}var qi=Nr.ReactCurrentBatchConfig,xu=!0;function vk(e,t,n,r){var s=Se,i=qi.transition;qi.transition=null;try{Se=1,Vh(e,t,n,r)}finally{Se=s,qi.transition=i}}function yk(e,t,n,r){var s=Se,i=qi.transition;qi.transition=null;try{Se=4,Vh(e,t,n,r)}finally{Se=s,qi.transition=i}}function Vh(e,t,n,r){if(xu){var s=vf(e,t,n,r);if(s===null)ld(e,t,r,bu,n),zp(e,r);else if(pk(s,e,t,n,r))r.stopPropagation();else if(zp(e,r),t&4&&-1<mk.indexOf(e)){for(;s!==null;){var i=Xa(s);if(i!==null&&S0(i),i=vf(e,t,n,r),i===null&&ld(e,t,r,bu,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else ld(e,t,r,null,n)}}var bu=null;function vf(e,t,n,r){if(bu=null,e=$h(r),e=Is(e),e!==null)if(t=ii(e),t===null)e=null;else if(n=t.tag,n===13){if(e=g0(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 bu=e,null}function N0(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(ik()){case zh:return 1;case x0:return 4;case yu:case ok:return 16;case b0:return 536870912;default:return 16}default:return 16}}var Jr=null,Wh=null,Jl=null;function P0(){if(Jl)return Jl;var e,t=Wh,n=t.length,r,s="value"in Jr?Jr.value:Jr.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 Jl=s.slice(e,1<r?1-r:void 0)}function eu(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 jl(){return!0}function Bp(){return!1}function Yt(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)?jl:Bp,this.isPropagationStopped=Bp,this}return ze(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=jl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=jl)},persist:function(){},isPersistent:jl}),t}var So={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hh=Yt(So),Za=ze({},So,{view:0,detail:0}),wk=Yt(Za),Jc,ed,Lo,oc=ze({},Za,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qh,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!==Lo&&(Lo&&e.type==="mousemove"?(Jc=e.screenX-Lo.screenX,ed=e.screenY-Lo.screenY):ed=Jc=0,Lo=e),Jc)},movementY:function(e){return"movementY"in e?e.movementY:ed}}),Vp=Yt(oc),xk=ze({},oc,{dataTransfer:0}),bk=Yt(xk),_k=ze({},Za,{relatedTarget:0}),td=Yt(_k),kk=ze({},So,{animationName:0,elapsedTime:0,pseudoElement:0}),Sk=Yt(kk),Ck=ze({},So,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jk=Yt(Ck),Ek=ze({},So,{data:0}),Wp=Yt(Ek),Tk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nk={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"},Pk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ok(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Pk[e])?!!t[e]:!1}function qh(){return Ok}var Rk=ze({},Za,{key:function(e){if(e.key){var t=Tk[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=eu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Nk[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qh,charCode:function(e){return e.type==="keypress"?eu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?eu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ak=Yt(Rk),Dk=ze({},oc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hp=Yt(Dk),Ik=ze({},Za,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qh}),Mk=Yt(Ik),Lk=ze({},So,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fk=Yt(Lk),$k=ze({},oc,{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}),zk=Yt($k),Uk=[9,13,27,32],Kh=br&&"CompositionEvent"in window,ra=null;br&&"documentMode"in document&&(ra=document.documentMode);var Bk=br&&"TextEvent"in window&&!ra,O0=br&&(!Kh||ra&&8<ra&&11>=ra),qp=" ",Kp=!1;function R0(e,t){switch(e){case"keyup":return Uk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function A0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ri=!1;function Vk(e,t){switch(e){case"compositionend":return A0(t);case"keypress":return t.which!==32?null:(Kp=!0,qp);case"textInput":return e=t.data,e===qp&&Kp?null:e;default:return null}}function Wk(e,t){if(Ri)return e==="compositionend"||!Kh&&R0(e,t)?(e=P0(),Jl=Wh=Jr=null,Ri=!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 O0&&t.locale!=="ko"?null:t.data;default:return null}}var Hk={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 Yp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Hk[e.type]:t==="textarea"}function D0(e,t,n,r){d0(r),t=_u(t,"onChange"),0<t.length&&(n=new Hh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var sa=null,_a=null;function qk(e){H0(e,0)}function ac(e){var t=Ii(e);if(s0(t))return e}function Kk(e,t){if(e==="change")return t}var I0=!1;if(br){var nd;if(br){var rd="oninput"in document;if(!rd){var Gp=document.createElement("div");Gp.setAttribute("oninput","return;"),rd=typeof Gp.oninput=="function"}nd=rd}else nd=!1;I0=nd&&(!document.documentMode||9<document.documentMode)}function Qp(){sa&&(sa.detachEvent("onpropertychange",M0),_a=sa=null)}function M0(e){if(e.propertyName==="value"&&ac(_a)){var t=[];D0(t,_a,e,$h(e)),p0(qk,t)}}function Yk(e,t,n){e==="focusin"?(Qp(),sa=t,_a=n,sa.attachEvent("onpropertychange",M0)):e==="focusout"&&Qp()}function Gk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ac(_a)}function Qk(e,t){if(e==="click")return ac(t)}function Zk(e,t){if(e==="input"||e==="change")return ac(t)}function Xk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var En=typeof Object.is=="function"?Object.is:Xk;function ka(e,t){if(En(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(!Xd.call(t,s)||!En(e[s],t[s]))return!1}return!0}function Zp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xp(e,t){var n=Zp(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=Zp(n)}}function L0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?L0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function F0(){for(var e=window,t=pu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=pu(e.document)}return t}function Yh(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 Jk(e){var t=F0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&L0(n.ownerDocument.documentElement,n)){if(r!==null&&Yh(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=Xp(n,i);var o=Xp(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 eS=br&&"documentMode"in document&&11>=document.documentMode,Ai=null,yf=null,ia=null,wf=!1;function Jp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wf||Ai==null||Ai!==pu(r)||(r=Ai,"selectionStart"in r&&Yh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,352 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),ia&&ka(ia,r)||(ia=r,r=_u(yf,"onSelect"),0<r.length&&(t=new Hh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ai)))}function El(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Di={animationend:El("Animation","AnimationEnd"),animationiteration:El("Animation","AnimationIteration"),animationstart:El("Animation","AnimationStart"),transitionend:El("Transition","TransitionEnd")},sd={},$0={};br&&($0=document.createElement("div").style,"AnimationEvent"in window||(delete Di.animationend.animation,delete Di.animationiteration.animation,delete Di.animationstart.animation),"TransitionEvent"in window||delete Di.transitionend.transition);function lc(e){if(sd[e])return sd[e];if(!Di[e])return e;var t=Di[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $0)return sd[e]=t[n];return e}var z0=lc("animationend"),U0=lc("animationiteration"),B0=lc("animationstart"),V0=lc("transitionend"),W0=new Map,eg="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 ws(e,t){W0.set(e,t),si(t,[e])}for(var id=0;id<eg.length;id++){var od=eg[id],tS=od.toLowerCase(),nS=od[0].toUpperCase()+od.slice(1);ws(tS,"on"+nS)}ws(z0,"onAnimationEnd");ws(U0,"onAnimationIteration");ws(B0,"onAnimationStart");ws("dblclick","onDoubleClick");ws("focusin","onFocus");ws("focusout","onBlur");ws(V0,"onTransitionEnd");oo("onMouseEnter",["mouseout","mouseover"]);oo("onMouseLeave",["mouseout","mouseover"]);oo("onPointerEnter",["pointerout","pointerover"]);oo("onPointerLeave",["pointerout","pointerover"]);si("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));si("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));si("onBeforeInput",["compositionend","keypress","textInput","paste"]);si("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));si("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));si("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(" "),rS=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xo));function tg(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,tk(r,t,void 0,e),e.currentTarget=null}function H0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],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,u=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;tg(s,a,u),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;tg(s,a,u),i=l}}}if(vu)throw e=mf,vu=!1,mf=null,e}function Re(e,t){var n=t[Sf];n===void 0&&(n=t[Sf]=new Set);var r=e+"__bubble";n.has(r)||(q0(t,e,2,!1),n.add(r))}function ad(e,t,n){var r=0;t&&(r|=4),q0(n,e,r,t)}var Tl="_reactListening"+Math.random().toString(36).slice(2);function Sa(e){if(!e[Tl]){e[Tl]=!0,Jy.forEach(function(n){n!=="selectionchange"&&(rS.has(n)||ad(n,!1,e),ad(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Tl]||(t[Tl]=!0,ad("selectionchange",!1,t))}}function q0(e,t,n,r){switch(N0(t)){case 1:var s=vk;break;case 4:s=yk;break;default:s=Vh}n=s.bind(null,t,n,e),s=void 0,!hf||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)}
vendor: 2,676 bytes, line 37
37function 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=Is(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}p0(function(){var u=i,c=$h(n),f=[];e:{var h=W0.get(e);if(h!==void 0){var m=Hh,b=e;switch(e){case"keypress":if(eu(n)===0)break e;case"keydown":case"keyup":m=Ak;break;case"focusin":b="focus",m=td;break;case"focusout":b="blur",m=td;break;case"beforeblur":case"afterblur":m=td;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":m=Vp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=bk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=Mk;break;case z0:case U0:case B0:m=Sk;break;case V0:m=Fk;break;case"scroll":m=wk;break;case"wheel":m=zk;break;case"copy":case"cut":case"paste":m=jk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Hp}var g=(t&4)!==0,w=!g&&e==="scroll",y=g?h!==null?h+"Capture":null:h;g=[];for(var p=u,v;p!==null;){v=p;var _=v.stateNode;if(v.tag===5&&_!==null&&(v=_,y!==null&&(_=ya(p,y),_!=null&&g.push(Ca(p,_,v)))),w)break;p=p.return}0<g.length&&(h=new m(h,b,null,n,c),f.push({event:h,listeners:g}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",h&&n!==df&&(b=n.relatedTarget||n.fromElement)&&(Is(b)||b[_r]))break e;if((m||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,m?(b=n.relatedTarget||n.toElement,m=u,b=b?Is(b):null,b!==null&&(w=ii(b),b!==w||b.tag!==5&&b.tag!==6)&&(b=null)):(m=null,b=u),m!==b)){if(g=Vp,_="onMouseLeave",y="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(g=Hp,_="onPointerLeave",y="onPointerEnter",p="pointer"),w=m==null?h:Ii(m),v=b==null?h:Ii(b),h=new g(_,p+"leave",m,n,c),h.target=w,h.relatedTarget=v,_=null,Is(c)===u&&(g=new g(y,p+"enter",b,n,c),g.target=v,g.relatedTarget=w,_=g),w=_,m&&b)t:{for(g=m,y=b,p=0,v=g;v;v=hi(v))p++;for(v=0,_=y;_;_=hi(_))v++;for(;0<p-v;)g=hi(g),p--;for(;0<v-p;)y=hi(y),v--;for(;p--;){if(g===y||y!==null&&g===y.alternate)break t;g=hi(g),y=hi(y)}g=null}else g=null;m!==null&&ng(f,h,m,g,!1),b!==null&&w!==null&&ng(f,w,b,g,!0)}}
vendor: 7,977 bytes, lines 37-38
37e:{if(h=u?Ii(u):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var S=Kk;else if(Yp(h))if(I0)S=Zk;else{S=Gk;var C=Yk}else(m=h.nodeName)&&m.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(S=Qk);if(S&&(S=S(e,u))){D0(f,S,n,c);break e}C&&C(e,h,u),e==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&of(h,"number",h.value)}switch(C=u?Ii(u):window,e){case"focusin":(Yp(C)||C.contentEditable==="true")&&(Ai=C,yf=u,ia=null);break;case"focusout":ia=yf=Ai=null;break;case"mousedown":wf=!0;break;case"contextmenu":case"mouseup":case"dragend":wf=!1,Jp(f,n,c);break;case"selectionchange":if(eS)break;case"keydown":case"keyup":Jp(f,n,c)}var E;if(Kh)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Ri?R0(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(O0&&n.locale!=="ko"&&(Ri||A!=="onCompositionStart"?A==="onCompositionEnd"&&Ri&&(E=P0()):(Jr=c,Wh="value"in Jr?Jr.value:Jr.textContent,Ri=!0)),C=_u(u,A),0<C.length&&(A=new Wp(A,e,null,n,c),f.push({event:A,listeners:C}),E?A.data=E:(E=A0(n),E!==null&&(A.data=E)))),(E=Bk?Vk(e,n):Wk(e,n))&&(u=_u(u,"onBeforeInput"),0<u.length&&(c=new Wp("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=E))}H0(f,t)})}function Ca(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _u(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=ya(e,n),i!=null&&r.unshift(Ca(e,i,s)),i=ya(e,t),i!=null&&r.push(Ca(e,i,s))),e=e.return}return r}function hi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ng(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=ya(n,i),l!=null&&o.unshift(Ca(n,l,a))):s||(l=ya(n,i),l!=null&&o.push(Ca(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var sS=/\r\n?/g,iS=/\u0000|\uFFFD/g;function rg(e){return(typeof e=="string"?e:""+e).replace(sS,`
38`).replace(iS,"")}function Nl(e,t,n){if(t=rg(t),rg(e)!==t&&n)throw Error(L(425))}function ku(){}var xf=null,bf=null;function _f(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 kf=typeof setTimeout=="function"?setTimeout:void 0,oS=typeof clearTimeout=="function"?clearTimeout:void 0,sg=typeof Promise=="function"?Promise:void 0,aS=typeof queueMicrotask=="function"?queueMicrotask:typeof sg<"u"?function(e){return sg.resolve(null).then(e).catch(lS)}:kf;function lS(e){setTimeout(function(){throw e})}function ud(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),ba(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);ba(t)}function os(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 ig(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 Co=Math.random().toString(36).slice(2),Vn="__reactFiber$"+Co,ja="__reactProps$"+Co,_r="__reactContainer$"+Co,Sf="__reactEvents$"+Co,uS="__reactListeners$"+Co,cS="__reactHandles$"+Co;function Is(e){var t=e[Vn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[_r]||n[Vn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ig(e);e!==null;){if(n=e[Vn])return n;e=ig(e)}return t}e=n,n=e.parentNode}return null}function Xa(e){return e=e[Vn]||e[_r],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ii(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(L(33))}function uc(e){return e[ja]||null}var Cf=[],Mi=-1;function xs(e){return{current:e}}function Ae(e){0>Mi||(e.current=Cf[Mi],Cf[Mi]=null,Mi--)}function Te(e,t){Mi++,Cf[Mi]=e.current,e.current=t}var ms={},mt=xs(ms),At=xs(!1),Ys=ms;function ao(e,t){var n=e.type.contextTypes;if(!n)return ms;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 Dt(e){return e=e.childContextTypes,e!=null}function Su(){Ae(At),Ae(mt)}function og(e,t,n){if(mt.current!==ms)throw Error(L(168));Te(mt,t),Te(At,n)}function K0(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(L(108,Y1(e)||"Unknown",s));return ze({},n,r)}function Cu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ms,Ys=mt.current,Te(mt,e),Te(At,At.current),!0}function ag(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=K0(e,t,Ys),r.__reactInternalMemoizedMergedChildContext=e,Ae(At),Ae(mt),Te(mt,e)):Ae(At),Te(At,n)}var mr=null,cc=!1,cd=!1;function Y0(e){mr===null?mr=[e]:mr.push(e)}function dS(e){cc=!0,Y0(e)}function bs(){if(!cd&&mr!==null){cd=!0;var e=0,t=Se;try{var n=mr;for(Se=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mr=null,cc=!1}catch(s){throw mr!==null&&(mr=mr.slice(e+1)),w0(zh,bs),s}finally{Se=t,cd=!1}}return null}var Li=[],Fi=0,ju=null,Eu=0,Zt=[],Xt=0,Gs=null,vr=1,yr="";function Ns(e,t){Li[Fi++]=Eu,Li[Fi++]=ju,ju=e,Eu=t}function G0(e,t,n){Zt[Xt++]=vr,Zt[Xt++]=yr,Zt[Xt++]=Gs,Gs=e;var r=vr;e=yr;var s=32-Cn(r)-1;r&=~(1<<s),n+=1;var i=32-Cn(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,vr=1<<32-Cn(t)+s|n<<s|r,yr=i+e}else vr=1<<i|n<<s|r,yr=e}function Gh(e){e.return!==null&&(Ns(e,1),G0(e,1,0))}function Qh(e){for(;e===ju;)ju=Li[--Fi],Li[Fi]=null,Eu=Li[--Fi],Li[Fi]=null;for(;e===Gs;)Gs=Zt[--Xt],Zt[Xt]=null,yr=Zt[--Xt],Zt[Xt]=null,vr=Zt[--Xt],Zt[Xt]=null}var Bt=null,Ut=null,Ie=!1,xn=null;function Q0(e,t){var n=en(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 lg(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,Bt=e,Ut=os(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Bt=e,Ut=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gs!==null?{id:vr,overflow:yr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=en(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Bt=e,Ut=null,!0):!1;default:return!1}}function jf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ef(e){if(Ie){var t=Ut;if(t){var n=t;if(!lg(e,t)){if(jf(e))throw Error(L(418));t=os(n.nextSibling);var r=Bt;t&&lg(e,t)?Q0(r,n):(e.flags=e.flags&-4097|2,Ie=!1,Bt=e)}}else{if(jf(e))throw Error(L(418));e.flags=e.flags&-4097|2,Ie=!1,Bt=e}}}function ug(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Bt=e}function Pl(e){if(e!==Bt)return!1;if(!Ie)return ug(e),Ie=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!_f(e.type,e.memoizedProps)),t&&(t=Ut)){if(jf(e))throw Z0(),Error(L(418));for(;t;)Q0(e,t),t=os(t.nextSibling)}if(ug(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ut=os(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ut=null}}else Ut=Bt?os(e.stateNode.nextSibling):null;return!0}function Z0(){for(var e=Ut;e;)e=os(e.nextSibling)}function lo(){Ut=Bt=null,Ie=!1}function Zh(e){xn===null?xn=[e]:xn.push(e)}var fS=Nr.ReactCurrentBatchConfig;
vendor: 23,841 bytes, lines 38-40
38function 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(L(309));var r=n.stateNode}if(!r)throw Error(L(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(L(284));if(!n._owner)throw Error(L(290,e))}return e}function Ol(e,t){throw e=Object.prototype.toString.call(t),Error(L(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function cg(e){var t=e._init;return t(e._payload)}function X0(e){function t(y,p){if(e){var v=y.deletions;v===null?(y.deletions=[p],y.flags|=16):v.push(p)}}function n(y,p){if(!e)return null;for(;p!==null;)t(y,p),p=p.sibling;return null}function r(y,p){for(y=new Map;p!==null;)p.key!==null?y.set(p.key,p):y.set(p.index,p),p=p.sibling;return y}function s(y,p){return y=cs(y,p),y.index=0,y.sibling=null,y}function i(y,p,v){return y.index=v,e?(v=y.alternate,v!==null?(v=v.index,v<p?(y.flags|=2,p):v):(y.flags|=2,p)):(y.flags|=1048576,p)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function a(y,p,v,_){return p===null||p.tag!==6?(p=vd(v,y.mode,_),p.return=y,p):(p=s(p,v),p.return=y,p)}function l(y,p,v,_){var S=v.type;return S===Oi?c(y,p,v.props.children,_,v.key):p!==null&&(p.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Br&&cg(S)===p.type)?(_=s(p,v.props),_.ref=Fo(y,p,v),_.return=y,_):(_=au(v.type,v.key,v.props,null,y.mode,_),_.ref=Fo(y,p,v),_.return=y,_)}function u(y,p,v,_){return p===null||p.tag!==4||p.stateNode.containerInfo!==v.containerInfo||p.stateNode.implementation!==v.implementation?(p=yd(v,y.mode,_),p.return=y,p):(p=s(p,v.children||[]),p.return=y,p)}function c(y,p,v,_,S){return p===null||p.tag!==7?(p=qs(v,y.mode,_,S),p.return=y,p):(p=s(p,v),p.return=y,p)}function f(y,p,v){if(typeof p=="string"&&p!==""||typeof p=="number")return p=vd(""+p,y.mode,v),p.return=y,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case xl:return v=au(p.type,p.key,p.props,null,y.mode,v),v.ref=Fo(y,null,p),v.return=y,v;case Pi:return p=yd(p,y.mode,v),p.return=y,p;case Br:var _=p._init;return f(y,_(p._payload),v)}if(Qo(p)||Ao(p))return p=qs(p,y.mode,v,null),p.return=y,p;Ol(y,p)}return null}function h(y,p,v,_){var S=p!==null?p.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return S!==null?null:a(y,p,""+v,_);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case xl:return v.key===S?l(y,p,v,_):null;case Pi:return v.key===S?u(y,p,v,_):null;case Br:return S=v._init,h(y,p,S(v._payload),_)}if(Qo(v)||Ao(v))return S!==null?null:c(y,p,v,_,null);Ol(y,v)}return null}function m(y,p,v,_,S){if(typeof _=="string"&&_!==""||typeof _=="number")return y=y.get(v)||null,a(p,y,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case xl:return y=y.get(_.key===null?v:_.key)||null,l(p,y,_,S);case Pi:return y=y.get(_.key===null?v:_.key)||null,u(p,y,_,S);case Br:var C=_._init;return m(y,p,v,C(_._payload),S)}if(Qo(_)||Ao(_))return y=y.get(v)||null,c(p,y,_,S,null);Ol(p,_)}return null}function b(y,p,v,_){for(var S=null,C=null,E=p,A=p=0,F=null;E!==null&&A<v.length;A++){E.index>A?(F=E,E=null):F=E.sibling;var $=h(y,E,v[A],_);if($===null){E===null&&(E=F);break}e&&E&&$.alternate===null&&t(y,E),p=i($,p,A),C===null?S=$:C.sibling=$,C=$,E=F}if(A===v.length)return n(y,E),Ie&&Ns(y,A),S;if(E===null){for(;A<v.length;A++)E=f(y,v[A],_),E!==null&&(p=i(E,p,A),C===null?S=E:C.sibling=E,C=E);return Ie&&Ns(y,A),S}for(E=r(y,E);A<v.length;A++)F=m(E,y,A,v[A],_),F!==null&&(e&&F.alternate!==null&&E.delete(F.key===null?A:F.key),p=i(F,p,A),C===null?S=F:C.sibling=F,C=F);return e&&E.forEach(function(J){return t(y,J)}),Ie&&Ns(y,A),S}function g(y,p,v,_){var S=Ao(v);if(typeof S!="function")throw Error(L(150));if(v=S.call(v),v==null)throw Error(L(151));for(var C=S=null,E=p,A=p=0,F=null,$=v.next();E!==null&&!$.done;A++,$=v.next()){E.index>A?(F=E,E=null):F=E.sibling;var J=h(y,E,$.value,_);if(J===null){E===null&&(E=F);break}e&&E&&J.alternate===null&&t(y,E),p=i(J,p,A),C===null?S=J:C.sibling=J,C=J,E=F}if($.done)return n(y,E),Ie&&Ns(y,A),S;if(E===null){for(;!$.done;A++,$=v.next())$=f(y,$.value,_),$!==null&&(p=i($,p,A),C===null?S=$:C.sibling=$,C=$);return Ie&&Ns(y,A),S}for(E=r(y,E);!$.done;A++,$=v.next())$=m(E,y,A,$.value,_),$!==null&&(e&&$.alternate!==null&&E.delete($.key===null?A:$.key),p=i($,p,A),C===null?S=$:C.sibling=$,C=$);return e&&E.forEach(function(I){return t(y,I)}),Ie&&Ns(y,A),S}function w(y,p,v,_){if(typeof v=="object"&&v!==null&&v.type===Oi&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case xl:e:{for(var S=v.key,C=p;C!==null;){if(C.key===S){if(S=v.type,S===Oi){if(C.tag===7){n(y,C.sibling),p=s(C,v.props.children),p.return=y,y=p;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Br&&cg(S)===C.type){n(y,C.sibling),p=s(C,v.props),p.ref=Fo(y,C,v),p.return=y,y=p;break e}n(y,C);break}else t(y,C);C=C.sibling}v.type===Oi?(p=qs(v.props.children,y.mode,_,v.key),p.return=y,y=p):(_=au(v.type,v.key,v.props,null,y.mode,_),_.ref=Fo(y,p,v),_.return=y,y=_)}return o(y);case Pi:e:{for(C=v.key;p!==null;){if(p.key===C)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(y,p.sibling),p=s(p,v.children||[]),p.return=y,y=p;break e}else{n(y,p);break}else t(y,p);p=p.sibling}p=yd(v,y.mode,_),p.return=y,y=p}return o(y);case Br:return C=v._init,w(y,p,C(v._payload),_)}if(Qo(v))return b(y,p,v,_);if(Ao(v))return g(y,p,v,_);Ol(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(y,p.sibling),p=s(p,v),p.return=y,y=p):(n(y,p),p=vd(v,y.mode,_),p.return=y,y=p),o(y)):n(y,p)}return w}var uo=X0(!0),J0=X0(!1),Tu=xs(null),Nu=null,$i=null,Xh=null;function Jh(){Xh=$i=Nu=null}function em(e){var t=Tu.current;Ae(Tu),e._currentValue=t}function Tf(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 Ki(e,t){Nu=e,Xh=$i=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Nt=!0),e.firstContext=null)}function rn(e){var t=e._currentValue;if(Xh!==e)if(e={context:e,memoizedValue:t,next:null},$i===null){if(Nu===null)throw Error(L(308));$i=e,Nu.dependencies={lanes:0,firstContext:e}}else $i=$i.next=e;return t}var Ms=null;function tm(e){Ms===null?Ms=[e]:Ms.push(e)}function ew(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,tm(t)):(n.next=s.next,s.next=n),t.interleaved=n,kr(e,r)}function kr(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 Vr=!1;function nm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function tw(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 wr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function as(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ve&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,kr(e,n)}return s=r.interleaved,s===null?(t.next=t,tm(r)):(t.next=s.next,s.next=t),r.interleaved=t,kr(e,n)}function tu(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,Uh(e,n)}}function dg(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 Pu(e,t,n,r){var s=e.updateQueue;Vr=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var f=s.baseState;o=0,c=u=l=null,a=i;do{var h=a.lane,m=a.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,g=a;switch(h=t,m=n,g.tag){case 1:if(b=g.payload,typeof b=="function"){f=b.call(m,f,h);break e}f=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=g.payload,h=typeof b=="function"?b.call(m,f,h):b,h==null)break e;f=ze({},f,h);break e;case 2:Vr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else m={eventTime:m,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=m,l=f):c=c.next=m,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(c===null&&(l=f),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=c,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);Zs|=o,e.lanes=o,e.memoizedState=f}}function fg(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(L(191,s));s.call(r)}}}var Ja={},Gn=xs(Ja),Ea=xs(Ja),Ta=xs(Ja);function Ls(e){if(e===Ja)throw Error(L(174));return e}function rm(e,t){switch(Te(Ta,t),Te(Ea,e),Te(Gn,Ja),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:lf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=lf(t,e)}Ae(Gn),Te(Gn,t)}function co(){Ae(Gn),Ae(Ea),Ae(Ta)}function nw(e){Ls(Ta.current);var t=Ls(Gn.current),n=lf(t,e.type);t!==n&&(Te(Ea,e),Te(Gn,n))}function sm(e){Ea.current===e&&(Ae(Gn),Ae(Ea))}var Fe=xs(0);function Ou(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 dd=[];function im(){for(var e=0;e<dd.length;e++)dd[e]._workInProgressVersionPrimary=null;dd.length=0}var nu=Nr.ReactCurrentDispatcher,fd=Nr.ReactCurrentBatchConfig,Qs=0,$e=null,Je=null,nt=null,Ru=!1,oa=!1,Na=0,hS=0;function ct(){throw Error(L(321))}function om(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!En(e[n],t[n]))return!1;return!0}function am(e,t,n,r,s,i){if(Qs=i,$e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,nu.current=e===null||e.memoizedState===null?vS:yS,e=n(r,s),oa){i=0;do{if(oa=!1,Na=0,25<=i)throw Error(L(301));i+=1,nt=Je=null,t.updateQueue=null,nu.current=wS,e=n(r,s)}while(oa)}if(nu.current=Au,t=Je!==null&&Je.next!==null,Qs=0,nt=Je=$e=null,Ru=!1,t)throw Error(L(300));return e}function lm(){var e=Na!==0;return Na=0,e}function Ln(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?$e.memoizedState=nt=e:nt=nt.next=e,nt}function sn(){if(Je===null){var e=$e.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var t=nt===null?$e.memoizedState:nt.next;if(t!==null)nt=t,Je=e;else{if(e===null)throw Error(L(310));Je=e,e={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},nt===null?$e.memoizedState=nt=e:nt=nt.next=e}return nt}function Pa(e,t){return typeof t=="function"?t(e):t}function hd(e){var t=sn(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=Je,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,u=i;do{var c=u.lane;if((Qs&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,o=r):l=l.next=f,$e.lanes|=c,Zs|=c}u=u.next}while(u!==null&&u!==i);l===null?o=r:l.next=a,En(r,t.memoizedState)||(Nt=!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,Zs|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function md(e){var t=sn(),n=t.queue;if(n===null)throw Error(L(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);En(i,t.memoizedState)||(Nt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function rw(){}function sw(e,t){var n=$e,r=sn(),s=t(),i=!En(r.memoizedState,s);if(i&&(r.memoizedState=s,Nt=!0),r=r.queue,um(aw.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||nt!==null&&nt.memoizedState.tag&1){if(n.flags|=2048,Oa(9,ow.bind(null,n,r,s,t),void 0,null),rt===null)throw Error(L(349));Qs&30||iw(n,t,s)}return s}function iw(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 ow(e,t,n,r){t.value=n,t.getSnapshot=r,lw(t)&&uw(e)}function aw(e,t,n){return n(function(){lw(t)&&uw(e)})}function lw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!En(e,n)}catch{return!0}}function uw(e){var t=kr(e,1);t!==null&&jn(t,e,1,-1)}function hg(e){var t=Ln();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},t.queue=e,e=e.dispatch=gS.bind(null,$e,e),[t.memoizedState,e]}function Oa(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 cw(){return sn().memoizedState}function ru(e,t,n,r){var s=Ln();$e.flags|=e,s.memoizedState=Oa(1|t,n,void 0,r===void 0?null:r)}function dc(e,t,n,r){var s=sn();r=r===void 0?null:r;var i=void 0;if(Je!==null){var o=Je.memoizedState;if(i=o.destroy,r!==null&&om(r,o.deps)){s.memoizedState=Oa(t,n,i,r);return}}$e.flags|=e,s.memoizedState=Oa(1|t,n,i,r)}function mg(e,t){return ru(8390656,8,e,t)}function um(e,t){return dc(2048,8,e,t)}function dw(e,t){return dc(4,2,e,t)}function fw(e,t){return dc(4,4,e,t)}function hw(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 mw(e,t,n){return n=n!=null?n.concat([e]):null,dc(4,4,hw.bind(null,t,e),n)}function cm(){}function pw(e,t){var n=sn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&om(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function gw(e,t){var n=sn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&om(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function vw(e,t,n){return Qs&21?(En(n,t)||(n=_0(),$e.lanes|=n,Zs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Nt=!0),e.memoizedState=n)}function mS(e,t){var n=Se;Se=n!==0&&4>n?n:4,e(!0);var r=fd.transition;fd.transition={};try{e(!1),t()}finally{Se=n,fd.transition=r}}function yw(){return sn().memoizedState}function pS(e,t,n){var r=us(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ww(e))xw(t,n);else if(n=ew(e,t,n,r),n!==null){var s=bt();jn(n,e,r,s),bw(n,t,r)}}function gS(e,t,n){var r=us(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ww(e))xw(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,En(a,o)){var l=t.interleaved;l===null?(s.next=s,tm(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=ew(e,t,s,r),n!==null&&(s=bt(),jn(n,e,r,s),bw(n,t,r))}}function ww(e){var t=e.alternate;return e===$e||t!==null&&t===$e}function xw(e,t){oa=Ru=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uh(e,n)}}var Au={readContext:rn,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useInsertionEffect:ct,useLayoutEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useMutableSource:ct,useSyncExternalStore:ct,useId:ct,unstable_isNewReconciler:!1},vS={readContext:rn,useCallback:function(e,t){return Ln().memoizedState=[e,t===void 0?null:t],e},useContext:rn,useEffect:mg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ru(4194308,4,hw.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ru(4194308,4,e,t)},useInsertionEffect:function(e,t){return ru(4,2,e,t)},useMemo:function(e,t){var n=Ln();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ln();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=pS.bind(null,$e,e),[r.memoizedState,e]},useRef:function(e){var t=Ln();return e={current:e},t.memoizedState=e},useState:hg,useDebugValue:cm,useDeferredValue:function(e){return Ln().memoizedState=e},useTransition:function(){var e=hg(!1),t=e[0];return e=mS.bind(null,e[1]),Ln().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=$e,s=Ln();if(Ie){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),rt===null)throw Error(L(349));Qs&30||iw(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,mg(aw.bind(null,r,i,e),[e]),r.flags|=2048,Oa(9,ow.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ln(),t=rt.identifierPrefix;if(Ie){var n=yr,r=vr;n=(r&~(1<<32-Cn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Na++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=hS++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},yS={readContext:rn,useCallback:pw,useContext:rn,useEffect:um,useImperativeHandle:mw,useInsertionEffect:dw,useLayoutEffect:fw,useMemo:gw,useReducer:hd,useRef:cw,useState:function(){return hd(Pa)},useDebugValue:cm,useDeferredValue:function(e){var t=sn();return vw(t,Je.memoizedState,e)},useTransition:function(){var e=hd(Pa)[0],t=sn().memoizedState;return[e,t]},useMutableSource:rw,useSyncExternalStore:sw,useId:yw,unstable_isNewReconciler:!1},wS={readContext:rn,useCallback:pw,useContext:rn,useEffect:um,useImperativeHandle:mw,useInsertionEffect:dw,useLayoutEffect:fw,useMemo:gw,useReducer:md,useRef:cw,useState:function(){return md(Pa)},useDebugValue:cm,useDeferredValue:function(e){var t=sn();return Je===null?t.memoizedState=e:vw(t,Je.memoizedState,e)},useTransition:function(){var e=md(Pa)[0],t=sn().memoizedState;return[e,t]},useMutableSource:rw,useSyncExternalStore:sw,useId:yw,unstable_isNewReconciler:!1};function mn(e,t){if(e&&e.defaultProps){t=ze({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Nf(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ze({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var fc={isMounted:function(e){return(e=e._reactInternals)?ii(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=bt(),s=us(e),i=wr(r,s);i.payload=t,n!=null&&(i.callback=n),t=as(e,i,s),t!==null&&(jn(t,e,s,r),tu(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=bt(),s=us(e),i=wr(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=as(e,i,s),t!==null&&(jn(t,e,s,r),tu(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=bt(),r=us(e),s=wr(n,r);s.tag=2,t!=null&&(s.callback=t),t=as(e,s,r),t!==null&&(jn(t,e,r,n),tu(t,e,r))}};function pg(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?!ka(n,r)||!ka(s,i):!0}function _w(e,t,n){var r=!1,s=ms,i=t.contextType;return typeof i=="object"&&i!==null?i=rn(i):(s=Dt(t)?Ys:mt.current,r=t.contextTypes,i=(r=r!=null)?ao(e,s):ms),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=fc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function gg(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&&fc.enqueueReplaceState(t,t.state,null)}function Pf(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},nm(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=rn(i):(i=Dt(t)?Ys:mt.current,s.context=ao(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Nf(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&&fc.enqueueReplaceState(s,s.state,null),Pu(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function fo(e,t){try{var n="",r=t;do n+=K1(r),r=r.return;while(r);var s=n}catch(i){s=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:e,source:t,stack:s,digest:null}}function pd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Of(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var xS=typeof WeakMap=="function"?WeakMap:Map;function kw(e,t,n){n=wr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Iu||(Iu=!0,Uf=r),Of(e,t)},n}function Sw(e,t,n){n=wr(-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(){Of(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Of(e,t),typeof r!="function"&&(ls===null?ls=new Set([this]):ls.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function vg(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new xS;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=DS.bind(null,e,t,n),t.then(e,e))}function yg(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 wg(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=wr(-1,1),t.tag=2,as(n,t,1))),n.lanes|=1),e)}var bS=Nr.ReactCurrentOwner,Nt=!1;function vt(e,t,n,r){t.child=e===null?J0(t,null,n,r):uo(t,e.child,n,r)}function xg(e,t,n,r,s){n=n.render;var i=t.ref;return Ki(t,s),r=am(e,t,n,r,i,s),n=lm(),e!==null&&!Nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Sr(e,t,s
vendor: 8,117 bytes, line 40
40)):(Ie&&n&&Gh(t),t.flags|=1,vt(e,t,r,s),t.child)}function bg(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!ym(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Cw(e,t,i,r,s)):(e=au(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:ka,n(o,r)&&e.ref===t.ref)return Sr(e,t,s)}return t.flags|=1,e=cs(i,r),e.ref=t.ref,e.return=t,t.child=e}function Cw(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(ka(i,r)&&e.ref===t.ref)if(Nt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(Nt=!0);else return t.lanes=e.lanes,Sr(e,t,s)}return Rf(e,t,n,r,s)}function jw(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},Te(Ui,Ft),Ft|=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,Te(Ui,Ft),Ft|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Te(Ui,Ft),Ft|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Te(Ui,Ft),Ft|=r;return vt(e,t,s,n),t.child}function Ew(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Rf(e,t,n,r,s){var i=Dt(n)?Ys:mt.current;return i=ao(t,i),Ki(t,s),n=am(e,t,n,r,i,s),r=lm(),e!==null&&!Nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Sr(e,t,s)):(Ie&&r&&Gh(t),t.flags|=1,vt(e,t,n,s),t.child)}function _g(e,t,n,r,s){if(Dt(n)){var i=!0;Cu(t)}else i=!1;if(Ki(t,s),t.stateNode===null)su(e,t),_w(t,n,r),Pf(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=rn(u):(u=Dt(n)?Ys:mt.current,u=ao(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&gg(t,o,r,u),Vr=!1;var h=t.memoizedState;o.state=h,Pu(t,r,o,s),l=t.memoizedState,a!==r||h!==l||At.current||Vr?(typeof c=="function"&&(Nf(t,n,c,r),l=t.memoizedState),(a=Vr||pg(t,n,a,r,h,l,u))?(f||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=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,tw(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:mn(t.type,a),o.props=u,f=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=rn(l):(l=Dt(n)?Ys:mt.current,l=ao(t,l));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||h!==l)&&gg(t,o,r,l),Vr=!1,h=t.memoizedState,o.state=h,Pu(t,r,o,s);var b=t.memoizedState;a!==f||h!==b||At.current||Vr?(typeof m=="function"&&(Nf(t,n,m,r),b=t.memoizedState),(u=Vr||pg(t,n,u,r,h,b,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,b,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,b,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),o.props=r,o.state=b,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Af(e,t,n,r,i,s)}function Af(e,t,n,r,s,i){Ew(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&ag(t,n,!1),Sr(e,t,i);r=t.stateNode,bS.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=uo(t,e.child,null,i),t.child=uo(t,null,a,i)):vt(e,t,a,i),t.memoizedState=r.state,s&&ag(t,n,!0),t.child}function Tw(e){var t=e.stateNode;t.pendingContext?og(e,t.pendingContext,t.pendingContext!==t.context):t.context&&og(e,t.context,!1),rm(e,t.containerInfo)}function kg(e,t,n,r,s){return lo(),Zh(s),t.flags|=256,vt(e,t,n,r),t.child}var Df={dehydrated:null,treeContext:null,retryLane:0};function If(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nw(e,t,n){var r=t.pendingProps,s=Fe.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),Te(Fe,s&1),e===null)return Ef(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=pc(o,r,0,null),e=qs(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=If(n),t.memoizedState=Df,e):dm(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return _S(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=cs(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=cs(a,i):(i=qs(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?If(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Df,r}return i=e.child,e=i.sibling,r=cs(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 dm(e,t){return t=pc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Rl(e,t,n,r){return r!==null&&Zh(r),uo(t,e.child,null,n),e=dm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _S(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=pd(Error(L(422))),Rl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=pc({mode:"visible",children:r.children},s,0,null),i=qs(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&uo(t,e.child,null,o),t.child.memoizedState=If(o),t.memoizedState=Df,i);if(!(t.mode&1))return Rl(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(L(419)),r=pd(i,r,void 0),Rl(e,t,o,r)}if(a=(o&e.childLanes)!==0,Nt||a){if(r=rt,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,kr(e,s),jn(r,e,s,-1))}return vm(),r=pd(Error(L(421))),Rl(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=IS.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Ut=os(s.nextSibling),Bt=t,Ie=!0,xn=null,e!==null&&(Zt[Xt++]=vr,Zt[Xt++]=yr,Zt[Xt++]=Gs,vr=e.id,yr=e.overflow,Gs=t),t=dm(t,r.children),t.flags|=4096,t)}function Sg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Tf(e.return,t,n)}
vendor: 5,381 bytes, line 40
40function gd(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 Pw(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(vt(e,t,r.children,n),r=Fe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Sg(e,n,t);else if(e.tag===19)Sg(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(Te(Fe,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&&Ou(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),gd(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&&Ou(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}gd(t,!0,n,null,i);break;case"together":gd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function su(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Sr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Zs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(L(153));if(t.child!==null){for(e=t.child,n=cs(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=cs(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function kS(e,t,n){switch(t.tag){case 3:Tw(t),lo();break;case 5:nw(t);break;case 1:Dt(t.type)&&Cu(t);break;case 4:rm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;Te(Tu,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Te(Fe,Fe.current&1),t.flags|=128,null):n&t.child.childLanes?Nw(e,t,n):(Te(Fe,Fe.current&1),e=Sr(e,t,n),e!==null?e.sibling:null);Te(Fe,Fe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Pw(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Te(Fe,Fe.current),r)break;return null;case 22:case 23:return t.lanes=0,jw(e,t,n)}return Sr(e,t,n)}var Ow,Mf,Rw,Aw;Ow=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}};Mf=function(){};Rw=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Ls(Gn.current);var i=null;switch(n){case"input":s=rf(e,s),r=rf(e,r),i=[];break;case"select":s=ze({},s,{value:void 0}),r=ze({},r,{value:void 0}),i=[];break;case"textarea":s=af(e,s),r=af(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ku)}uf(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ga.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="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(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ga.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Re("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Aw=function(e,t,n,r){n!==r&&(t.flags|=4)};function $o(e,t){if(!Ie)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 dt(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 SS(e,t,n){var r=t.pendingProps;switch(Qh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dt(t),null;case 1:return Dt(t.type)&&Su(),dt(t),null;case 3:return r=t.stateNode,co(),Ae(At),Ae(mt),im(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Pl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,xn!==null&&(Wf(xn),xn=null))),Mf(e,t),dt(t),null;case 5:sm(t);var s=Ls(Ta.current);
vendor: 33,253 bytes, line 40
40if(n=t.type,e!==null&&t.stateNode!=null)Rw(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(L(166));return dt(t),null}if(e=Ls(Gn.current),Pl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Vn]=t,r[ja]=i,e=(t.mode&1)!==0,n){case"dialog":Re("cancel",r),Re("close",r);break;case"iframe":case"object":case"embed":Re("load",r);break;case"video":case"audio":for(s=0;s<Xo.length;s++)Re(Xo[s],r);break;case"source":Re("error",r);break;case"img":case"image":case"link":Re("error",r),Re("load",r);break;case"details":Re("toggle",r);break;case"input":Ap(r,i),Re("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Re("invalid",r);break;case"textarea":Ip(r,i),Re("invalid",r)}uf(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Nl(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Nl(r.textContent,a,e),s=["children",""+a]):ga.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Re("scroll",r)}switch(n){case"input":bl(r),Dp(r,i,!0);break;case"textarea":bl(r),Mp(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=ku)}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=a0(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[Vn]=t,e[ja]=r,Ow(e,t,!1,!1),t.stateNode=e;e:{switch(o=cf(n,r),n){case"dialog":Re("cancel",e),Re("close",e),s=r;break;case"iframe":case"object":case"embed":Re("load",e),s=r;break;case"video":case"audio":for(s=0;s<Xo.length;s++)Re(Xo[s],e);s=r;break;case"source":Re("error",e),s=r;break;case"img":case"image":case"link":Re("error",e),Re("load",e),s=r;break;case"details":Re("toggle",e),s=r;break;case"input":Ap(e,r),s=rf(e,r),Re("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ze({},r,{value:void 0}),Re("invalid",e);break;case"textarea":Ip(e,r),s=af(e,r),Re("invalid",e);break;default:s=r}uf(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?c0(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&l0(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&va(e,l):typeof l=="number"&&va(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ga.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Re("scroll",e):l!=null&&Ih(e,i,l,o))}switch(n){case"input":bl(e),Dp(e,r,!1);break;case"textarea":bl(e),Mp(e);break;case"option":r.value!=null&&e.setAttribute("value",""+hs(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Vi(e,!!r.multiple,i,!1):r.defaultValue!=null&&Vi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=ku)}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 dt(t),null;case 6:if(e&&t.stateNode!=null)Aw(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(L(166));if(n=Ls(Ta.current),Ls(Gn.current),Pl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Vn]=t,(i=r.nodeValue!==n)&&(e=Bt,e!==null))switch(e.tag){case 3:Nl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Nl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Vn]=t,t.stateNode=r}return dt(t),null;case 13:if(Ae(Fe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ie&&Ut!==null&&t.mode&1&&!(t.flags&128))Z0(),lo(),t.flags|=98560,i=!1;else if(i=Pl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(L(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(L(317));i[Vn]=t}else lo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;dt(t),i=!1}else xn!==null&&(Wf(xn),xn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Fe.current&1?et===0&&(et=3):vm())),t.updateQueue!==null&&(t.flags|=4),dt(t),null);case 4:return co(),Mf(e,t),e===null&&Sa(t.stateNode.containerInfo),dt(t),null;case 10:return em(t.type._context),dt(t),null;case 17:return Dt(t.type)&&Su(),dt(t),null;case 19:if(Ae(Fe),i=t.memoizedState,i===null)return dt(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)$o(i,!1);else{if(et!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ou(e),o!==null){for(t.flags|=128,$o(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 Te(Fe,Fe.current&1|2),t.child}e=e.sibling}i.tail!==null&&He()>ho&&(t.flags|=128,r=!0,$o(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ou(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$o(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Ie)return dt(t),null}else 2*He()-i.renderingStartTime>ho&&n!==1073741824&&(t.flags|=128,r=!0,$o(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=He(),t.sibling=null,n=Fe.current,Te(Fe,r?n&1|2:n&1),t):(dt(t),null);case 22:case 23:return gm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ft&1073741824&&(dt(t),t.subtreeFlags&6&&(t.flags|=8192)):dt(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function CS(e,t){switch(Qh(t),t.tag){case 1:return Dt(t.type)&&Su(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return co(),Ae(At),Ae(mt),im(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sm(t),null;case 13:if(Ae(Fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));lo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(Fe),null;case 4:return co(),null;case 10:return em(t.type._context),null;case 22:case 23:return gm(),null;case 24:return null;default:return null}}var Al=!1,ht=!1,jS=typeof WeakSet=="function"?WeakSet:Set,G=null;function zi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ve(e,t,r)}else n.current=null}function Lf(e,t,n){try{n()}catch(r){Ve(e,t,r)}}var Cg=!1;function ES(e,t){if(xf=xu,e=F0(),Yh(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,u=0,c=0,f=e,h=null;t:for(;;){for(var m;f!==n||s!==0&&f.nodeType!==3||(a=o+s),f!==i||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(m=f.firstChild)!==null;)h=f,f=m;for(;;){if(f===e)break t;if(h===n&&++u===s&&(a=o),h===i&&++c===r&&(l=o),(m=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(bf={focusedElem:e,selectionRange:n},xu=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var g=b.memoizedProps,w=b.memoizedState,y=t.stateNode,p=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:mn(t.type,g),w);y.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(_){Ve(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return b=Cg,Cg=!1,b}function aa(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&&Lf(t,n,i)}s=s.next}while(s!==r)}}function hc(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 Ff(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 Dw(e){var t=e.alternate;t!==null&&(e.alternate=null,Dw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vn],delete t[ja],delete t[Sf],delete t[uS],delete t[cS])),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 Iw(e){return e.tag===5||e.tag===3||e.tag===4}function jg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Iw(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 $f(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=ku));else if(r!==4&&(e=e.child,e!==null))for($f(e,t,n),e=e.sibling;e!==null;)$f(e,t,n),e=e.sibling}function zf(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(zf(e,t,n),e=e.sibling;e!==null;)zf(e,t,n),e=e.sibling}var ot=null,yn=!1;function Ar(e,t,n){for(n=n.child;n!==null;)Mw(e,t,n),n=n.sibling}function Mw(e,t,n){if(Yn&&typeof Yn.onCommitFiberUnmount=="function")try{Yn.onCommitFiberUnmount(ic,n)}catch{}switch(n.tag){case 5:ht||zi(n,t);case 6:var r=ot,s=yn;ot=null,Ar(e,t,n),ot=r,yn=s,ot!==null&&(yn?(e=ot,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ot.removeChild(n.stateNode));break;case 18:ot!==null&&(yn?(e=ot,n=n.stateNode,e.nodeType===8?ud(e.parentNode,n):e.nodeType===1&&ud(e,n),ba(e)):ud(ot,n.stateNode));break;case 4:r=ot,s=yn,ot=n.stateNode.containerInfo,yn=!0,Ar(e,t,n),ot=r,yn=s;break;case 0:case 11:case 14:case 15:if(!ht&&(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)&&Lf(n,t,o),s=s.next}while(s!==r)}Ar(e,t,n);break;case 1:if(!ht&&(zi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ve(n,t,a)}Ar(e,t,n);break;case 21:Ar(e,t,n);break;case 22:n.mode&1?(ht=(r=ht)||n.memoizedState!==null,Ar(e,t,n),ht=r):Ar(e,t,n);break;default:Ar(e,t,n)}}function Eg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jS),t.forEach(function(r){var s=MS.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function dn(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:ot=a.stateNode,yn=!1;break e;case 3:ot=a.stateNode.containerInfo,yn=!0;break e;case 4:ot=a.stateNode.containerInfo,yn=!0;break e}a=a.return}if(ot===null)throw Error(L(160));Mw(i,o,s),ot=null,yn=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){Ve(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Lw(t,e),t=t.sibling}function Lw(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(dn(t,e),Mn(e),r&4){try{aa(3,e,e.return),hc(3,e)}catch(g){Ve(e,e.return,g)}try{aa(5,e,e.return)}catch(g){Ve(e,e.return,g)}}break;case 1:dn(t,e),Mn(e),r&512&&n!==null&&zi(n,n.return);break;case 5:if(dn(t,e),Mn(e),r&512&&n!==null&&zi(n,n.return),e.flags&32){var s=e.stateNode;try{va(s,"")}catch(g){Ve(e,e.return,g)}}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&&i0(s,i),cf(a,o);var u=cf(a,i);for(o=0;o<l.length;o+=2){var c=l[o],f=l[o+1];c==="style"?c0(s,f):c==="dangerouslySetInnerHTML"?l0(s,f):c==="children"?va(s,f):Ih(s,c,f,u)}switch(a){case"input":sf(s,i);break;case"textarea":o0(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?Vi(s,!!i.multiple,m,!1):h!==!!i.multiple&&(i.defaultValue!=null?Vi(s,!!i.multiple,i.defaultValue,!0):Vi(s,!!i.multiple,i.multiple?[]:"",!1))}s[ja]=i}catch(g){Ve(e,e.return,g)}}break;case 6:if(dn(t,e),Mn(e),r&4){if(e.stateNode===null)throw Error(L(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(g){Ve(e,e.return,g)}}break;case 3:if(dn(t,e),Mn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ba(t.containerInfo)}catch(g){Ve(e,e.return,g)}break;case 4:dn(t,e),Mn(e);break;case 13:dn(t,e),Mn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(mm=He())),r&4&&Eg(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ht=(u=ht)||c,dn(t,e),ht=u):dn(t,e),Mn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(G=e,c=e.child;c!==null;){for(f=G=c;G!==null;){switch(h=G,m=h.child,h.tag){case 0:case 11:case 14:case 15:aa(4,h,h.return);break;case 1:zi(h,h.return);var b=h.stateNode;if(typeof b.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(g){Ve(r,n,g)}}break;case 5:zi(h,h.return);break;case 22:if(h.memoizedState!==null){Ng(f);continue}}m!==null?(m.return=h,G=m):Ng(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{s=f.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=u0("display",o))}catch(g){Ve(e,e.return,g)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){Ve(e,e.return,g)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:dn(t,e),Mn(e),r&4&&Eg(e);break;case 21:break;default:dn(t,e),Mn(e)}}function Mn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Iw(n)){var r=n;break e}n=n.return}throw Error(L(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(va(s,""),r.flags&=-33);var i=jg(e);zf(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=jg(e);$f(e,a,o);break;default:throw Error(L(161))}}catch(l){Ve(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function TS(e,t,n){G=e,Fw(e)}function Fw(e,t,n){for(var r=(e.mode&1)!==0;G!==null;){var s=G,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Al;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||ht;a=Al;var u=ht;if(Al=o,(ht=l)&&!u)for(G=s;G!==null;)o=G,l=o.child,o.tag===22&&o.memoizedState!==null?Pg(s):l!==null?(l.return=o,G=l):Pg(s);for(;i!==null;)G=i,Fw(i),i=i.sibling;G=s,Al=a,ht=u}Tg(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,G=i):Tg(e)}}function Tg(e){for(;G!==null;){var t=G;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ht||hc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ht)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:mn(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&fg(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}fg(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 u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&ba(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}ht||t.flags&512&&Ff(t)}catch(h){Ve(t,t.return,h)}}if(t===e){G=null;break}if(n=t.sibling,n!==null){n.return=t.return,G=n;break}G=t.return}}function Ng(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var n=t.sibling;if(n!==null){n.return=t.return,G=n;break}G=t.return}}function Pg(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{hc(4,t)}catch(l){Ve(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){Ve(t,s,l)}}var i=t.return;try{Ff(t)}catch(l){Ve(t,i,l)}break;case 5:var o=t.return;try{Ff(t)}catch(l){Ve(t,o,l)}}}catch(l){Ve(t,t.return,l)}if(t===e){G=null;break}var a=t.sibling;if(a!==null){a.return=t.return,G=a;break}G=t.return}}var NS=Math.ceil,Du=Nr.ReactCurrentDispatcher,fm=Nr.ReactCurrentOwner,tn=Nr.ReactCurrentBatchConfig,ve=0,rt=null,Ye=null,at=0,Ft=0,Ui=xs(0),et=0,Ra=null,Zs=0,mc=0,hm=0,la=null,Et=null,mm=0,ho=1/0,fr=null,Iu=!1,Uf=null,ls=null,Dl=!1,es=null,Mu=0,ua=0,Bf=null,iu=-1,ou=0;function bt(){return ve&6?He():iu!==-1?iu:iu=He()}function us(e){return e.mode&1?ve&2&&at!==0?at&-at:fS.transition!==null?(ou===0&&(ou=_0()),ou):(e=Se,e!==0||(e=window.event,e=e===void 0?16:N0(e.type)),e):1}function jn(e,t,n,r){if(50<ua)throw ua=0,Bf=null,Error(L(185));Qa(e,n,r),(!(ve&2)||e!==rt)&&(e===rt&&(!(ve&2)&&(mc|=n),et===4&&qr(e,at)),It(e,r),n===1&&ve===0&&!(t.mode&1)&&(ho=He()+500,cc&&bs()))}function It(e,t){var n=e.callbackNode;fk(e,t);var r=wu(e,e===rt?at:0);if(r===0)n!==null&&$p(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&$p(n),t===1)e.tag===0?dS(Og.bind(null,e)):Y0(Og.bind(null,e)),aS(function(){!(ve&6)&&bs()}),n=null;else{switch(k0(r)){case 1:n=zh;break;case 4:n=x0;break;case 16:n=yu;break;case 536870912:n=b0;break;default:n=yu}n=qw(n,$w.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function $w(e,t){if(iu=-1,ou=0,ve&6)throw Error(L(327));var n=e.callbackNode;if(Yi()&&e.callbackNode!==n)return null;var r=wu(e,e===rt?at:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Lu(e,r);else{t=r;var s=ve;ve|=2;var i=Uw();(rt!==e||at!==t)&&(fr=null,ho=He()+500,Hs(e,t));do try{RS();break}catch(a){zw(e,a)}while(!0);Jh(),Du.current=i,ve=s,Ye!==null?t=0:(rt=null,at=0,t=et)}if(t!==0){if(t===2&&(s=pf(e),s!==0&&(r=s,t=Vf(e,s))),t===1)throw n=Ra,Hs(e,0),qr(e,r),It(e,He()),n;if(t===6)qr(e,r);else{if(s=e.current.alternate,!(r&30)&&!PS(s)&&(t=Lu(e,r),t===2&&(i=pf(e),i!==0&&(r=i,t=Vf(e,i))),t===1))throw n=Ra,Hs(e,0),qr(e,r),It(e,He()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(L(345));case 2:Ps(e,Et,fr);break;case 3:if(qr(e,r),(r&130023424)===r&&(t=mm+500-He(),10<t)){if(wu(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){bt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=kf(Ps.bind(null,e,Et,fr),t);break}Ps(e,Et,fr);break;case 4:if(qr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-Cn(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=He()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*NS(r/1960))-r,10<r){e.timeoutHandle=kf(Ps.bind(null,e,Et,fr),r);break}Ps(e,Et,fr);break;case 5:Ps(e,Et,fr);break;default:throw Error(L(329))}}}return It(e,He()),e.callbackNode===n?$w.bind(null,e):null}function Vf(e,t){var n=la;return e.current.memoizedState.isDehydrated&&(Hs(e,t).flags|=256),e=Lu(e,t),e!==2&&(t=Et,Et=n,t!==null&&Wf(t)),e}function Wf(e){Et===null?Et=e:Et.push.apply(Et,e)}function PS(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(!En(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 qr(e,t){for(t&=~hm,t&=~mc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Cn(t),r=1<<n;e[n]=-1,t&=~r}}function Og(e){if(ve&6)throw Error(L(327));Yi();var t=wu(e,0);if(!(t&1))return It(e,He()),null;var n=Lu(e,t);if(e.tag!==0&&n===2){var r=pf(e);r!==0&&(t=r,n=Vf(e,r))}if(n===1)throw n=Ra,Hs(e,0),qr(e,t),It(e,He()),n;if(n===6)throw Error(L(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ps(e,Et,fr),It(e,He()),null}function pm(e,t){var n=ve;ve|=1;try{return e(t)}finally{ve=n,ve===0&&(ho=He()+500,cc&&bs())}}function Xs(e){es!==null&&es.tag===0&&!(ve&6)&&Yi();var t=ve;ve|=1;var n=tn.transition,r=Se;try{if(tn.transition=null,Se=1,e)return e()}finally{Se=r,tn.transition=n,ve=t,!(ve&6)&&bs()}}function gm(){Ft=Ui.current,Ae(Ui)}function Hs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,oS(n)),Ye!==null)for(n=Ye.return;n!==null;){var r=n;switch(Qh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Su();break;case 3:co(),Ae(At),Ae(mt),im();break;case 5:sm(r);break;case 4:co();break;case 13:Ae(Fe);break;case 19:Ae(Fe);break;case 10:em(r.type._context);break;case 22:case 23:gm()}n=n.return}if(rt=e,Ye=e=cs(e.current,null),at=Ft=t,et=0,Ra=null,hm=mc=Zs=0,Et=la=null,Ms!==null){for(t=0;t<Ms.length;t++)if(n=Ms[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}Ms=null}return e}function zw(e,t){do{var n=Ye;try{if(Jh(),nu.current=Au,Ru){for(var r=$e.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Ru=!1}if(Qs=0,nt=Je=$e=null,oa=!1,Na=0,fm.current=null,n===null||n.return===null){et=1,Ra=t,Ye=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=at,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var m=yg(o);if(m!==null){m.flags&=-257,wg(m,o,a,i,t),m.mode&1&&vg(i,u,t),t=m,l=u;var b=t.updateQueue;if(b===null){var g=new Set;g.add(l),t.updateQueue=g}else b.add(l);break e}else{if(!(t&1)){vg(i,u,t),vm();break e}l=Error(L(426))}}else if(Ie&&a.mode&1){var w=yg(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),wg(w,o,a,i,t),Zh(fo(l,a));break e}}i=l=fo(l,a),et!==4&&(et=2),la===null?la=[i]:la.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var y=kw(i,l,t);dg(i,y);break e;case 1:a=l;var p=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(ls===null||!ls.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var _=Sw(i,a,t);dg(i,_);break e}}i=i.return}while(i!==null)}Vw(n)}catch(S){t=S,Ye===n&&n!==null&&(Ye=n=n.return);continue}break}while(!0)}function Uw(){var e=Du.current;return Du.current=Au,e===null?Au:e}function vm(){(et===0||et===3||et===2)&&(et=4),rt===null||!(Zs&268435455)&&!(mc&268435455)||qr(rt,at)}function Lu(e,t){var n=ve;ve|=2;var r=Uw();(rt!==e||at!==t)&&(fr=null,Hs(e,t));do try{OS();break}catch(s){zw(e,s)}while(!0);if(Jh(),ve=n,Du.current=r,Ye!==null)throw Error(L(261));return rt=null,at=0,et}function OS(){for(;Ye!==null;)Bw(Ye)}function RS(){for(;Ye!==null&&!rk();)Bw(Ye)}function Bw(e){var t=Hw(e.alternate,e,Ft);e.memoizedProps=e.pendingProps,t===null?Vw(e):Ye=t,fm.current=null}function Vw(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=CS(n,t),n!==null){n.flags&=32767,Ye=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{et=6,Ye=null;return}}else if(n=SS(n,t,Ft),n!==null){Ye=n;return}if(t=t.sibling,t!==null){Ye=t;return}Ye=t=e}while(t!==null);et===0&&(et=5)}function Ps(e,t,n){var r=Se,s=tn.transition;try{tn.transition=null,Se=1,AS(e,t,n,r)}finally{tn.transition=s,Se=r}return null}function AS(e,t,n,r){do Yi();while(es!==null);if(ve&6)throw Error(L(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(L(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(hk(e,i),e===rt&&(Ye=rt=null,at=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Dl||(Dl=!0,qw(yu,function(){return Yi(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=tn.transition,tn.transition=null;var o=Se;Se=1;var a=ve;ve|=4,fm.current=null,ES(e,n),Lw(n,e),Jk(bf),xu=!!xf,bf=xf=null,e.current=n,TS(n),sk(),ve=a,Se=o,tn.transition=i}else e.current=n;if(Dl&&(Dl=!1,es=e,Mu=s),i=e.pendingLanes,i===0&&(ls=null),ak(n.stateNode),It(e,He()),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(Iu)throw Iu=!1,e=Uf,Uf=null,e;return Mu&1&&e.tag!==0&&Yi(),i=e.pendingLanes,i&1?e===Bf?ua++:(ua=0,Bf=e):ua=0,bs(),null}function Yi(){if(es!==null){var e=k0(Mu),t=tn.transition,n=Se;try{if(tn.transition=null,Se=16>e?16:e,es===null)var r=!1;else{if(e=es,es=null,Mu=0,ve&6)throw Error(L(331));var s=ve;for(ve|=4,G=e.current;G!==null;){var i=G,o=i.child;if(G.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(G=u;G!==null;){var c=G;switch(c.tag){case 0:case 11:case 15:aa(8,c,i)}var f=c.child;if(f!==null)f.return=c,G=f;else for(;G!==null;){c=G;var h=c.sibling,m=c.return;if(Dw(c),c===u){G=null;break}if(h!==null){h.return=m,G=h;break}G=m}}}var b=i.alternate;if(b!==null){var g=b.child;if(g!==null){b.child=null;do{var w=g.sibling;g.sibling=null,g=w}while(g!==null)}}G=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,G=o;else e:for(;G!==null;){if(i=G,i.flags&2048)switch(i.tag){case 0:case 11:case 15:aa(9,i,i.return)}var y=i.sibling;if(y!==null){y.return=i.return,G=y;break e}G=i.return}}var p=e.current;for(G=p;G!==null;){o=G;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,G=v;else e:for(o=p;G!==null;){if(a=G,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:hc(9,a)}}catch(S){Ve(a,a.return,S)}if(a===o){G=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,G=_;break e}G=a.return}}if(ve=s,bs(),Yn&&typeof Yn.onPostCommitFiberRoot=="function")try{Yn.onPostCommitFiberRoot(ic,e)}catch{}r=!0}return r}finally{Se=n,tn.transition=t}}return!1}function Rg(e,t,n){t=fo(n,t),t=kw(e,t,1),e=as(e,t,1),t=bt(),e!==null&&(Qa(e,1,t),It(e,t))}function Ve(e,t,n){if(e.tag===3)Rg(e,e,n);else for(;t!==null;){if(t.tag===3){Rg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ls===null||!ls.has(r))){e=fo(n,e),e=Sw(t,e,1),t=as(t,e,1),e=bt(),t!==null&&(Qa(t,1,e),It(t,e));break}}t=t.return}}function DS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=bt(),e.pingedLanes|=e.suspendedLanes&n,rt===e&&(at&n)===n&&(et===4||et===3&&(at&130023424)===at&&500>He()-mm?Hs(e,0):hm|=n),It(e,t)}function Ww(e,t){t===0&&(e.mode&1?(t=Sl,Sl<<=1,!(Sl&130023424)&&(Sl=4194304)):t=1);var n=bt();e=kr(e,t),e!==null&&(Qa(e,t,n),It(e,n))}function IS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ww(e,n)}function MS(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(L(314))}r!==null&&r.delete(t),Ww(e,n)}var Hw;Hw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||At.current)Nt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Nt=!1,kS(e,t,n);Nt=!!(e.flags&131072)}else Nt=!1,Ie&&t.flags&1048576&&G0(t,Eu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;su(e,t),e=t.pendingProps;var s=ao(t,mt.current);Ki(t,n),s=am(null,t,r,e,s,n);var i=lm();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,Dt(r)?(i=!0,Cu(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,nm(t),s.updater=fc,t.stateNode=s,s._reactInternals=t,Pf(t,r,e,n),t=Af(null,t,r,!0,i,n)):(t.tag=0,Ie&&i&&Gh(t),vt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(su(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=FS(r),e=mn(r,e),s){case 0:t=Rf(null,t,r,e,n);break e;case 1:t=_g(null,t,r,e,n);break e;case 11:t=xg(null,t,r,e,n);break e;case 14:t=bg(null,t,r,mn(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:mn(r,s),Rf(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:mn(r,s),_g(e,t,r,s,n);case 3:e:{if(Tw(t),e===null)throw Error(L(387));r=t.pendingProps,i=t.memoizedState,s=i.element,tw(e,t),Pu(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=fo(Error(L(423)),t),t=kg(e,t,r,n,s);break e}else if(r!==s){s=fo(Error(L(424)),t),t=kg(e,t,r,n,s);break e}else for(Ut=os(t.stateNode.containerInfo.firstChild),Bt=t,Ie=!0,xn=null,n=J0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(lo(),r===s){t=Sr(e,t,n);break e}vt(e,t,r,n)}t=t.child}return t;case 5:return nw(t),e===null&&Ef(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,_f(r,s)?o=null:i!==null&&_f(r,i)&&(t.flags|=32),Ew(e,t),vt(e,t,o,n),t.child;case 6:return e===null&&Ef(t),null;case 13:return Nw(e,t,n);case 4:return rm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=uo(t,null,r,n):vt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:mn(r,s),xg(e,t,r,s,n);case 7:return vt(e,t,t.pendingProps,n),t.child;case 8:return vt(e,t,t.pendingProps.children,n),t.child;case 12:return vt(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,Te(Tu,r._currentValue),r._currentValue=o,i!==null)if(En(i.value,o)){if(i.children===s.children&&!At.current){t=Sr(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=wr(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Tf(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(L(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Tf(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}vt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ki(t,n),s=rn(s),r=r(s),t.flags|=1,vt(e,t,r,n),t.child;case 14:return r=t.type,s=mn(r,t.pendingProps),s=mn(r.type,s),bg(e,t,r,s,n);case 15:return Cw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:mn(r,s),su(e,t),t.tag=1,Dt(r)?(e=!0,Cu(t)):e=!1,Ki(t,n),_w(t,r,s),Pf(t,r,s,n),Af(null,t,r,!0,e,n);case 19:return Pw(e,t,n);case 22:return jw(e,t,n)}throw Error(L(156,t.tag))};function qw(e,t){return w0(e,t)}function LS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function en(e,t,n,r){return new LS(e,t,n,r)}function ym(e){return e=e.prototype,!(!e||!e.isReactComponent)}function FS(e){if(typeof e=="function")return ym(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Lh)return 11;if(e===Fh)return 14}return 2}function cs(e,t){var n=e.alternate;return n===null?(n=en(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.deleti
vendor: 4,322 bytes, line 40
40ons=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 au(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")ym(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Oi:return qs(n.children,s,i,t);case Mh:o=8,s|=8;break;case Jd:return e=en(12,n,t,s|2),e.elementType=Jd,e.lanes=i,e;case ef:return e=en(13,n,t,s),e.elementType=ef,e.lanes=i,e;case tf:return e=en(19,n,t,s),e.elementType=tf,e.lanes=i,e;case n0:return pc(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case e0:o=10;break e;case t0:o=9;break e;case Lh:o=11;break e;case Fh:o=14;break e;case Br:o=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=en(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function qs(e,t,n,r){return e=en(7,e,r,t),e.lanes=n,e}function pc(e,t,n,r){return e=en(22,e,r,t),e.elementType=n0,e.lanes=n,e.stateNode={isHidden:!1},e}function vd(e,t,n){return e=en(6,e,null,t),e.lanes=n,e}function yd(e,t,n){return t=en(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $S(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=Xc(0),this.expirationTimes=Xc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xc(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function wm(e,t,n,r,s,i,o,a,l){return e=new $S(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=en(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},nm(i),e}function zS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Pi,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Kw(e){if(!e)return ms;e=e._reactInternals;e:{if(ii(e)!==e||e.tag!==1)throw Error(L(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Dt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(L(171))}if(e.tag===1){var n=e.type;if(Dt(n))return K0(e,n,t)}return t}function Yw(e,t,n,r,s,i,o,a,l){return e=wm(n,r,!0,e,s,i,o,a,l),e.context=Kw(null),n=e.current,r=bt(),s=us(n),i=wr(r,s),i.callback=t??null,as(n,i,s),e.current.lanes=s,Qa(e,s,r),It(e,r),e}function gc(e,t,n,r){var s=t.current,i=bt(),o=us(s);return n=Kw(n),t.context===null?t.context=n:t.pendingContext=n,t=wr(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=as(s,t,o),e!==null&&(jn(e,s,o,i),tu(e,s,o)),o}function Fu(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 Ag(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xm(e,t){Ag(e,t),(e=e.alternate)&&Ag(e,t)}function US(){return null}var Gw=typeof reportError=="function"?reportError:function(e){console.error(e)};function bm(e){this._internalRoot=e}vc.prototype.render=bm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(L(409));gc(e,t,null,null)};vc.prototype.unmount=bm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xs(function(){gc(null,e,null,null)}),t[_r]=null}};function vc(e){this._internalRoot=e}vc.prototype.unstable_scheduleHydration=function(e){if(e){var t=j0();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Hr.length&&t!==0&&t<Hr[n].priority;n++);Hr.splice(n,0,e),n===0&&T0(e)}};function _m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function yc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Dg(){}
vendor: 5,375 bytes, line 40
40function BS(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=Fu(o);i.call(u)}}var o=Yw(t,r,e,0,null,!1,!1,"",Dg);return e._reactRootContainer=o,e[_r]=o.current,Sa(e.nodeType===8?e.parentNode:e),Xs(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=Fu(l);a.call(u)}}var l=wm(e,0,!1,null,null,!1,!1,"",Dg);return e._reactRootContainer=l,e[_r]=l.current,Sa(e.nodeType===8?e.parentNode:e),Xs(function(){gc(t,l,n,r)}),l}function wc(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=Fu(o);a.call(l)}}gc(t,o,e,s)}else o=BS(n,t,e,s,r);return Fu(o)}S0=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Zo(t.pendingLanes);n!==0&&(Uh(t,n|1),It(t,He()),!(ve&6)&&(ho=He()+500,bs()))}break;case 13:Xs(function(){var r=kr(e,1);if(r!==null){var s=bt();jn(r,e,1,s)}}),xm(e,1)}};Bh=function(e){if(e.tag===13){var t=kr(e,134217728);if(t!==null){var n=bt();jn(t,e,134217728,n)}xm(e,134217728)}};C0=function(e){if(e.tag===13){var t=us(e),n=kr(e,t);if(n!==null){var r=bt();jn(n,e,t,r)}xm(e,t)}};j0=function(){return Se};E0=function(e,t){var n=Se;try{return Se=e,t()}finally{Se=n}};ff=function(e,t,n){switch(t){case"input":if(sf(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=uc(r);if(!s)throw Error(L(90));s0(r),sf(r,s)}}}break;case"textarea":o0(e,n);break;case"select":t=n.value,t!=null&&Vi(e,!!n.multiple,t,!1)}};h0=pm;m0=Xs;var VS={usingClientEntryPoint:!1,Events:[Xa,Ii,uc,d0,f0,pm]},zo={findFiberByHostInstance:Is,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},WS={bundleType:zo.bundleType,version:zo.version,rendererPackageName:zo.rendererPackageName,rendererConfig:zo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Nr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=v0(e),e===null?null:e.stateNode},findFiberByHostInstance:zo.findFiberByHostInstance||US,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 Il=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Il.isDisabled&&Il.supportsFiber)try{ic=Il.inject(WS),Yn=Il}catch{}}Kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=VS;Kt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_m(t))throw Error(L(200));return zS(e,t,null,n)};Kt.createRoot=function(e,t){if(!_m(e))throw Error(L(299));var n=!1,r="",s=Gw;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=wm(e,1,!1,null,null,n,!1,r,s),e[_r]=t.current,Sa(e.nodeType===8?e.parentNode:e),new bm(t)};Kt.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(L(188)):(e=Object.keys(e).join(","),Error(L(268,e)));return e=v0(t),e=e===null?null:e.stateNode,e};Kt.flushSync=function(e){return Xs(e)};Kt.hydrate=function(e,t,n){if(!yc(t))throw Error(L(200));return wc(null,e,t,!0,n)};Kt.hydrateRoot=function(e,t,n){if(!_m(e))throw Error(L(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Gw;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Yw(t,null,e,1,n??null,s,!1,i,o),e[_r]=t.current,Sa(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 vc(t)};Kt.render=function(e,t,n){if(!yc(t))throw Error(L(200));return wc(null,e,t,!1,n)};Kt.unmountComponentAtNode=function(e){if(!yc(e))throw Error(L(40));return e._reactRootContainer?(Xs(function(){wc(null,null,e,!1,function(){e._reactRootContainer=null,e[_r]=null})}),!0):!1};Kt.unstable_batchedUpdates=pm;Kt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!yc(n))throw Error(L(200));if(e==null||e._reactInternals===void 0)throw Error(L(38));return wc(e,t,n,!1,r)};Kt.version="18.3.1-next-f1338f8080-20240426";function Qw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qw)}catch(e){console.error(e)}}Qw(),Qy.exports=Kt;var el=Qy.exports;const Zw=Fy(el);var Xw,Ig=el;Xw=Ig.createRoot,Ig.hydrateRoot;const HS=1,qS=1e6;let wd=0;function KS(){return wd=(wd+1)%Number.MAX_SAFE_INTEGER,wd.toString()}const xd=new Map,Mg=e=>{if(xd.has(e))return;const t=setTimeout(()=>{xd.delete(e),ca({type:"REMOVE_TOAST",toastId:e})},qS);xd.set(e,t)},YS=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,HS)};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;
40return n?Mg(n):e.toasts.forEach(r=>{Mg(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)}}},lu=[];let uu={toasts:[]};function ca(e){uu=YS(uu,e),lu.forEach(t=>{t(uu)})}function GS({...e}){const t=KS(),n=s=>ca({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>ca({type:"DISMISS_TOAST",toastId:t});return ca({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function km(){const[e,t]=x.useState(uu);return x.useEffect(()=>(lu.push(t),()=>{const n=lu.indexOf(t);n>-1&&lu.splice(n,1)}),[e]),{...e,toast:GS,dismiss:n=>ca({type:"DISMISS_TOAST",toastId:n})}}function Me(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 Lg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Jw(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Lg(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():Lg(e[s],null)}}}}function Lt(...e){return x.useCallback(Jw(...e),e)}function tl(e,t=[]){let n=[];function r(i,o){const a=x.createContext(o),l=n.length;n=[...n,o];const u=f=>{var y;const{scope:h,children:m,...b}=f,g=((y=h==null?void 0:h[e])==null?void 0:y[l])||a,w=x.useMemo(()=>b,Object.values(b));return d.jsx(g.Provider,{value:w,children:m})};u.displayName=i+"Provider";function c(f,h){var g;const m=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,b=x.useContext(m);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,c]}const s=()=>{const i=n.map(o=>x.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return x.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,QS(s,...t)]}function QS(...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:u})=>{const f=l(i)[`__scope${u}`];return{...a,...f}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Aa(e){const t=ZS(e),n=x.forwardRef((r,s)=>{const{children:i,...o}=r,a=x.Children.toArray(i),l=a.find(JS);if(l){const u=l.props.children,c=a.map(f=>f===l?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:f);return d.jsx(t,{...o,ref:s,children:x.isValidElement(u)?x.cloneElement(u,void 0,c):null})}return d.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var ex=Aa("Slot");function ZS(e){const t=x.forwardRef((n,r)=>{const{children:s,...i}=n;if(x.isValidElement(s)){const o=tC(s),a=eC(i,s.props);return s.type!==x.Fragment&&(a.ref=r?Jw(r,o):o),x.cloneElement(s,a)}return x.Children.count(s)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var tx=Symbol("radix.slottable");function XS(e){const t=({children:n})=>d.jsx(d.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=tx,t}function JS(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===tx}function eC(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 tC(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 nC(e){const t=e+"CollectionProvider",[n,r]=tl(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=g=>{const{scope:w,children:y}=g,p=P.useRef(null),v=P.useRef(new Map).current;return d.jsx(s,{scope:w,itemMap:v,collectionRef:p,children:y})};o.displayName=t;const a=e+"CollectionSlot",l=Aa(a),u=P.forwardRef((g,w)=>{const{scope:y,children:p}=g,v=i(a,y),_=Lt(w,v.collectionRef);return d.jsx(l,{ref:_,children:p})});u.displayName=a;const c=e+"CollectionItemSlot",f="data-radix-collection-item",h=Aa(c),m=P.forwardRef((g,w)=>{const{scope:y,children:p,...v}=g,_=P.useRef(null),S=Lt(w,_),C=i(c,y);return P.useEffect(()=>(C.itemMap.set(_,{ref:_,...v}),()=>
vendor: 7,818 bytes, line 40
40void C.itemMap.delete(_))),d.jsx(h,{[f]:"",ref:S,children:p})});m.displayName=c;function b(g){const w=i(e+"CollectionConsumer",g);return P.useCallback(()=>{const p=w.collectionRef.current;if(!p)return[];const v=Array.from(p.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((C,E)=>v.indexOf(C.ref.current)-v.indexOf(E.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:o,Slot:u,ItemSlot:m},b,r]}var rC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],st=rC.reduce((e,t)=>{const n=Aa(`Primitive.${t}`),r=x.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function nx(e,t){e&&el.flushSync(()=>e.dispatchEvent(t))}function Xn(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function sC(e,t=globalThis==null?void 0:globalThis.document){const n=Xn(e);x.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 iC="DismissableLayer",Hf="dismissableLayer.update",oC="dismissableLayer.pointerDownOutside",aC="dismissableLayer.focusOutside",Fg,rx=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xc=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,u=x.useContext(rx),[c,f]=x.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=x.useState({}),b=Lt(t,E=>f(E)),g=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(w),p=c?g.indexOf(c):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,_=p>=y,S=uC(E=>{const A=E.target,F=[...u.branches].some($=>$.contains(A));!_||F||(s==null||s(E),o==null||o(E),E.defaultPrevented||a==null||a())},h),C=cC(E=>{const A=E.target;[...u.branches].some($=>$.contains(A))||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},h);return sC(E=>{p===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),x.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Fg=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),$g(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Fg)}},[c,h,n,u]),x.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),$g())},[c,u]),x.useEffect(()=>{const E=()=>m({});return document.addEventListener(Hf,E),()=>document.removeEventListener(Hf,E)},[]),d.jsx(st.div,{...l,ref:b,style:{pointerEvents:v?_?"auto":"none":void 0,...e.style},onFocusCapture:Me(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Me(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Me(e.onPointerDownCapture,S.onPointerDownCapture)})});xc.displayName=iC;var lC="DismissableLayerBranch",sx=x.forwardRef((e,t)=>{const n=x.useContext(rx),r=x.useRef(null),s=Lt(t,r);return x.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),d.jsx(st.div,{...e,ref:s})});sx.displayName=lC;function uC(e,t=globalThis==null?void 0:globalThis.document){const n=Xn(e),r=x.useRef(!1),s=x.useRef(()=>{});return x.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){ix(oC,n,u,{discrete:!0})};const u={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 cC(e,t=globalThis==null?void 0:globalThis.document){const n=Xn(e),r=x.useRef(!1);return x.useEffect(()=>{const s=i=>{i.target&&!r.current&&ix(aC,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 $g(){const e=new CustomEvent(Hf);document.dispatchEvent(e)}function ix(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?nx(s,i):s.dispatchEvent(i)}var dC=xc,fC=sx,Cr=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},hC="Portal",Sm=x.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=x.useState(!1);Cr(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Zw.createPortal(d.jsx(st.div,{...r,ref:t}),o):null});Sm.displayName=hC;function mC(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var nl=e=>{const{present:t,children:n}=e,r=pC(t),s=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),i=Lt(r.ref,gC(s));return typeof n=="function"||r.isPresent?x.cloneElement(s,{ref:i}):null};nl.displayName="Presence";function pC(e){const[t,n]=x.useState(),r=x.useRef(null),s=x.useRef(e),i=x.useRef("none"),o=e?"mounted":"unmounted",[a,l]=mC(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=Ml(r.current);i.current=a==="mounted"?u:"none"},[a]),Cr(()=>{const u=r.current,c=s.current;if(c!==e){const h=i.current,m=Ml(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&h!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),Cr(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=m=>{const g=Ml(r.current).includes(m.animationName);if(m.target===t&&g&&(l("ANIMATION_END"),!s.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},h=m=>{m.target===t&&(i.current=Ml(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ml(e){return(e==null?void 0:e.animationName)||"none"}function gC(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 vC=Rh[" useInsertionEffect ".trim().toString()]||Cr;function ox({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,o]=yC({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:s;{const c=x.useRef(e!==void 0);x.useEffect(()=>{const f=c.current;f!==a&&console.warn(`${r} is changing from ${f?"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.`),c.current=a},[a,r])}const u=x.useCallback(c=>{var f;if(a){const h=wC(c)?c(e):c;h!==e&&((f=o.current)==null||f.call(o,h))}else i(c)},[a,e,i,o]);return[l,u]}function yC({defaultProp:e,onChange:t}
40){const[n,r]=x.useState(e),s=x.useRef(n),i=x.useRef(t);return vC(()=>{i.current=t},[t]),x.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function wC(e){return typeof e=="function"}var xC=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"}),bC="VisuallyHidden",bc=x.forwardRef((e,t)=>d.jsx(st.span,{...e,ref:t,style:{...xC,...e.style}}));bc.displayName=bC;var _C=bc,Cm="ToastProvider",[jm,kC,SC]=nC("Toast"),[ax,xL]=tl("Toast",[SC]),[CC,_c]=ax(Cm),lx=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[a,l]=x.useState(null),[u,c]=x.useState(0),f=x.useRef(!1),h=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Cm}\`. Expected non-empty \`string\`.`),d.jsx(jm.Provider,{scope:t,children:d.jsx(CC,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:x.useCallback(()=>c(m=>m+1),[]),onToastRemove:x.useCallback(()=>c(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:o})})};lx.displayName=Cm;var ux="ToastViewport",jC=["F8"],qf="toast.viewportPause",Kf="toast.viewportResume",cx=x.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=jC,label:s="Notifications ({hotkey})",...i}=e,o=_c(ux,n),a=kC(n),l=x.useRef(null),u=x.useRef(null),c=x.useRef(null),f=x.useRef(null),h=Lt(t,f,o.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=o.toastCount>0;x.useEffect(()=>{const w=y=>{var v;r.length!==0&&r.every(_=>y[_]||y.code===_)&&((v=f.current)==null||v.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),x.useEffect(()=>{const w=l.current,y=f.current;if(b&&w&&y){const p=()=>{if(!o.isClosePausedRef.current){const C=new CustomEvent(qf);y.dispatchEvent(C),o.isClosePausedRef.current=!0}},v=()=>{if(o.isClosePausedRef.current){const C=new CustomEvent(Kf);y.dispatchEvent(C),o.isClosePausedRef.current=!1}},_=C=>{!w.contains(C.relatedTarget)&&v()},S=()=>{w.contains(document.activeElement)||v()};return w.addEventListener("focusin",p),w.addEventListener("focusout",_),w.addEventListener("pointermove",p),w.addEventListener("pointerleave",S),window.addEventListener("blur",p),window.addEventListener("focus",v),()=>{w.removeEventListener("focusin",p),w.removeEventListener("focusout",_),w.removeEventListener("pointermove",p),w.removeEventListener("pointerleave",S),window.removeEventListener("blur",p),window.removeEventListener("focus",v)}}},[b,o.isClosePausedRef]);const g=x.useCallback(({tabbingDirection:w})=>{const p=a().map(v=>{const _=v.ref.current,S=[_,...$C(_)];return w==="forwards"?S:S.reverse()});return(w==="forwards"?p.reverse():p).flat()},[a]);return x.useEffect(()=>{const w=f.current;if(w){const y=p=>{var S,C,E;const v=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!v){const A=document.activeElement,F=p.shiftKey;if(p.target===w&&F){(S=u.current)==null||S.focus();return}const I=g({tabbingDirection:F?"backwards":"forwards"}),K=I.findIndex(M=>M===A);bd(I.slice(K+1))?p.preventDefault():F?(C=u.current)==null||C.focus():(E=c.current)==null||E.focus()}};return w.addEventListener("keydown",y),()=>w.removeEventListener("keydown",y)}},[a,g]),d.jsxs(fC,{ref:l,role:"region","aria-label":s.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&d.jsx(Yf,{ref:u,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"forwards"});bd(w)}}),d.jsx(jm.Slot,{scope:n,children:d.jsx(st.ol,{tabIndex:-1,...i,ref:h})}),b&&d.jsx(Yf,{ref:c,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"backwards"});bd(w)}})]})});cx.displayName=ux;var dx="ToastFocusProxy",Yf=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=_c(dx,n);return d.jsx(bc,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const a=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});Yf.displayName=dx;var rl="Toast",EC="toast.swipeStart",TC="toast.swipeMove",NC="toast.swipeCancel",PC="toast.swipeEnd",fx=x.forwardRef((e,t)=>
40{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=e,[a,l]=ox({prop:r,defaultProp:s??!0,onChange:i,caller:rl});return d.jsx(nl,{present:n||a,children:d.jsx(AC,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:Xn(e.onPause),onResume:Xn(e.onResume),onSwipeStart:Me(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Me(e.onSwipeMove,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Me(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Me(e.onSwipeEnd,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});fx.displayName=rl;var[OC,RC]=ax(rl,{onClose(){}}),AC=x.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:m,...b}=e,g=_c(rl,n),[w,y]=x.useState(null),p=Lt(t,M=>y(M)),v=x.useRef(null),_=x.useRef(null),S=s||g.duration,C=x.useRef(0),E=x.useRef(S),A=x.useRef(0),{onToastAdd:F,onToastRemove:$}=g,J=Xn(()=>{var ee;(w==null?void 0:w.contains(document.activeElement))&&((ee=g.viewport)==null||ee.focus()),o()}),I=x.useCallback(M=>{!M||M===1/0||(window.clearTimeout(A.current),C.current=new Date().getTime(),A.current=window.setTimeout(J,M))},[J]);x.useEffect(()=>{const M=g.viewport;if(M){const ee=()=>{I(E.current),u==null||u()},Q=()=>{const D=new Date().getTime()-C.current;E.current=E.current-D,window.clearTimeout(A.current),l==null||l()};return M.addEventListener(qf,Q),M.addEventListener(Kf,ee),()=>{M.removeEventListener(qf,Q),M.removeEventListener(Kf,ee)}}},[g.viewport,S,l,u,I]),x.useEffect(()=>{i&&!g.isClosePausedRef.current&&I(S)},[i,S,g.isClosePausedRef,I]),x.useEffect(()=>(F(),()=>$()),[F,$]);const K=x.useMemo(()=>w?wx(w):null,[w]);return g.viewport?d.jsxs(d.Fragment,{children:[K&&d.jsx(DC,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:K}),d.jsx(OC,{scope:n,onClose:J,children:el.createPortal(d.jsx(jm.ItemSlot,{scope:n,children:d.jsx(dC,{asChild:!0,onEscapeKeyDown:Me(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||J(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:d.jsx(st.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...b,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Me(e.onKeyDown,M=>{M.key==="Escape"&&(a==null||a(M.nativeEvent),M.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,J()))}),onPointerDown:Me(e.onPointerDown,M=>{M.button===0&&(v.current={x:M.clientX,y:M.clientY})}),onPointerMove:Me(e.onPointerMove,M=>{if(!v.current)return;const ee=M.clientX-v.current.x,Q=M.clientY-v.current.y,D=!!_.current,j=["left","right"].includes(g.swipeDirection),R=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,V=j?R(0,ee):0,ne=j?0:R(0,Q),te=M.pointerType==="touch"?10:2,ce={x:V,y:ne},de={originalEvent:M,delta:ce};D?(_.current=ce,Ll(TC,f,de,{discrete:!1})):zg(ce,g.swipeDirection,te)?(_.current=ce,Ll(EC,c,de,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(ee)>te||Math.abs(Q)>te)&&(v.current=null)}),onPointerUp:Me(e.onPointerUp,M=>{const ee=_.current,Q=M.target;if(Q.hasPointerCapture(M.pointerId)&&Q.releasePointerCapture(M.pointerId),_.current=null,v.current=null,ee){const D=M.currentTarget,j={originalEvent:M,delta:ee};zg(ee,g.swipeDirection,g.swipeThreshold)?Ll(PC,m,j,{discrete:!0}):Ll(NC,h,j,{discrete:!0}),D.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),DC=e=>{const{__scopeToast:t,children:n,...r}=e,s=_c(rl,t),[i,o]=x.useState(!1),[a,l]=x.useState(!1);return LC(()=>o(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:d.jsx(Sm,{asChild:!0,children:d.jsx(bc,{...r,children:i&&d.jsxs(d.Fragment,{children:[s.label," ",n]})})})},IC="ToastTitle",hx=x.forwardRef((e,t)=>
vendor: 4,742 bytes, lines 40-60
40{const{__scopeToast:n,...r}=e;return d.jsx(st.div,{...r,ref:t})});hx.displayName=IC;var MC="ToastDescription",mx=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return d.jsx(st.div,{...r,ref:t})});mx.displayName=MC;var px="ToastAction",gx=x.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?d.jsx(yx,{altText:n,asChild:!0,children:d.jsx(Em,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${px}\`. Expected non-empty \`string\`.`),null)});gx.displayName=px;var vx="ToastClose",Em=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=RC(vx,n);return d.jsx(yx,{asChild:!0,children:d.jsx(st.button,{type:"button",...r,ref:t,onClick:Me(e.onClick,s.onClose)})})});Em.displayName=vx;var yx=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return d.jsx(st.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function wx(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),FC(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(...wx(r))}}),t}function Ll(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?nx(s,i):s.dispatchEvent(i)}var zg=(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 LC(e=()=>{}){const t=Xn(e);Cr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function FC(e){return e.nodeType===e.ELEMENT_NODE}function $C(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 bd(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var zC=lx,xx=cx,bx=fx,_x=hx,kx=mx,Sx=gx,Cx=Em;function jx(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=jx(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ex(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=jx(e))&&(r&&(r+=" "),r+=t);return r}const Ug=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Bg=Ex,Tm=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Bg(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(u=>{const c=n==null?void 0:n[u],f=i==null?void 0:i[u];if(c===null)return null;const h=Ug(c)||Ug(f);return s[u][h]}),a=n&&Object.entries(n).reduce((u,c)=>{let[f,h]=c;return h===void 0||(u[f]=h),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:h,...m}=c;return Object.entries(m).every(b=>{let[g,w]=b;return Array.isArray(w)?w.includes({...i,...a}[g]):{...i,...a}[g]===w})?[...u,f,h]:u},[]);return Bg(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.462.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const UC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Tx=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.462.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var BC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51 * @license lucide-react v0.462.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const VC=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>x.createElement("svg",{ref:l,...BC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Tx("lucide",s),...a},[...o.map(([u,c])=>x.createElement(u,c)),...Array.isArray(i)?i:[i]]));/**
56 * @license lucide-react v0.462.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const it=(e,t)=>
60{const n=x.forwardRef(({className:r,...s},i)=>x.createElement(VC,{ref:i,iconNode:t,className:Tx(`lucide-${UC(e)}`,r),...s}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.462.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const WC=it("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
66 * @license lucide-react v0.462.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const Nm=it("Calendar",[["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"}]]);/**
71 * @license lucide-react v0.462.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const HC=it("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
76 * @license lucide-react v0.462.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const qC=it("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
81 * @license lucide-react v0.462.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const KC=it("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
86 * @license lucide-react v0.462.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const YC=it("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
91 * @license lucide-react v0.462.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const Pm=it("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
96 * @license lucide-react v0.462.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const GC=it("Droplets",[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]]);/**
101 * @license lucide-react v0.462.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const QC=it("Dumbbell",[["path",{d:"M14.4 14.4 9.6 9.6",key:"ic80wn"}],["path",{d:"M18.657 21.485a2 2 0 1 1-2.829-2.828l-1.767 1.768a2 2 0 1 1-2.829-2.829l6.364-6.364a2 2 0 1 1 2.829 2.829l-1.768 1.767a2 2 0 1 1 2.828 2.829z",key:"nnl7wr"}],["path",{d:"m21.5 21.5-1.4-1.4",key:"1f1ice"}],["path",{d:"M3.9 3.9 2.5 2.5",key:"1evmna"}],["path",{d:"M6.404 12.768a2 2 0 1 1-2.829-2.829l1.768-1.767a2 2 0 1 1-2.828-2.829l2.828-2.828a2 2 0 1 1 2.829 2.828l1.767-1.768a2 2 0 1 1 2.829 2.829z",key:"yhosts"}]]);/**
106 * @license lucide-react v0.462.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const ZC=it("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
111 * @license lucide-react v0.462.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const Om=it("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
116 * @license lucide-react v0.462.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const Rm=it("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"}]]);/**
121 * @license lucide-react v0.462.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const XC=it("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"}]]);/**
126 * @license lucide-react v0.462.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const Am=it("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"}]]);/**
131 * @license lucide-react v0.462.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const JC=it("Shirt",[["path",{d:"M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z",key:"1wgbhj"}]]);/**
136 * @license lucide-react v0.462.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const ej=it("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
141 * @license lucide-react v0.462.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const tj=it("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"}]]);/**
146 * @license lucide-react v0.462.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const Nx=it("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,916 bytes, line 150
150],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Dm="-",nj=e=>{const t=sj(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(Dm);return a[0]===""&&a.length!==1&&a.shift(),Px(a,t)||rj(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},Px=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Px(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(Dm);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Vg=/^\[(.+)\]$/,rj=e=>{if(Vg.test(e)){const t=Vg.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},sj=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return oj(Object.entries(e.classGroups),n).forEach(([i,o])=>{Gf(o,r,i,t)}),r},Gf=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Wg(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(ij(s)){Gf(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Gf(o,Wg(t,i),n,r)})})},Wg=(e,t)=>{let n=e;return t.split(Dm).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},ij=e=>e.isThemeGetter,oj=(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,aj=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)}}},Ox="!",lj=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let u=0,c=0,f;for(let w=0;w<a.length;w++){let y=a[w];if(u===0){if(y===s&&(r||a.slice(w,w+i)===t)){l.push(a.slice(c,w)),c=w+i;continue}if(y==="/"){f=w;continue}}y==="["?u++:y==="]"&&u--}const h=l.length===0?a:a.substring(c),m=h.startsWith(Ox),b=m?h.substring(1):h,g=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:o}):o},uj=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},cj=e=>({cache:aj(e.cacheSize),parseClassName:lj(e),...nj(e)}),dj=/\s+/,fj=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(dj);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:m}=n(u);let b=!!m,g=r(b?h.substring(0,m):h);if(!g){if(!b){a=u+(a.length>0?" "+a:a);continue}if(g=r(h),!g){a=u+(a.length>0?" "+a:a);continue}b=!1}const w=uj(c).join(":"),y=f?w+Ox:w,p=y+g;if(i.includes(p))continue;i.push(p);const v=s(g,b);for(let _=0;_<v.length;++_){const S=v[_];i.push(y+S)}a=u+(a.length>0?" "+a:a)}return a};function hj(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Rx(t))&&(r&&(r+=" "),r+=n);return r}const Rx=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Rx(e[r]))&&(n&&(n+=" "),n+=t);return n};function mj(e,...t){let n,r,s,i=o;function o(l){const u=t.reduce((c,f)=>f(c),e());return n=cj(u),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=fj(l,n);return s(l,c),c}return function(){return i(hj.apply(null,arguments))}}const Oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ax=/^\[(?:([a-z-]+):)?(.+)\]$/i,pj=/^\d+\/\d+$/,gj=new Set(["px","full","screen"]),vj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yj=/\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$/,wj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,xj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ar=e=>Gi(e)||gj.has(e)||pj.test(e),Dr=e=>jo(e,"length",Nj),Gi=e=>!!e&&!Number.isNaN(Number(e)),_d=e=>jo(e,"number",Gi),Uo=e=>!!e&&Number.isInteger(Number(e)),_j=e=>e.endsWith("%")&&Gi(e.slice(0,-1)),ue=e=>Ax.test(e),Ir=e=>vj.test(e),kj=new Set(["length","size","percentage"]),Sj=e=>jo(e,kj,Dx),Cj=e=>jo(e,"position",Dx),jj=new Set(["image","url"]),Ej=e=>jo(e,jj,Oj),Tj=e=>jo(e,"",Pj),Bo=()=>!0,jo=(e,t,n)=>{const r=Ax.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Nj=e=>yj.test(e)&&!wj.test(e),Dx=()=>!1,Pj=e=>xj.test(e),Oj=e=>bj.test(e),Rj=()=>{const e=Oe("colors"),t=Oe("spacing"),n=Oe("blur"),r=Oe("brightness"),s=Oe("borderColor"),i=Oe("borderRadius"),o=Oe("borderSpacing"),a=Oe("borderWidth"),l=Oe("contrast"),u=Oe("grayscale"),c=Oe("hueRotate"),f=Oe("invert"),h=Oe("gap"),m=Oe("gradientColorStops"),b=Oe("gradientColorStopPositions"),g=Oe("inset"),w=Oe("margin"),y=Oe("opacity"),p=Oe("padding"),v=Oe("saturate"),_=Oe("scale"),S=Oe("sepia"),C=Oe("skew"),E=Oe("space"),A=Oe("translate"),F=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto",ue,t],I=()=>[ue,t],K=()=>["",ar,Dr],M=()=>["auto",Gi,ue],ee=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",ue],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ne=()=>[Gi,ue];return{cacheSize:500,separator:":",theme:{colors:[Bo],spacing:[ar,Dr],blur:["none","",Ir,ue],brightness:ne(),borderColor:[e],borderRadius:["n
150one","","full",Ir,ue],borderSpacing:I(),borderWidth:K(),contrast:ne(),grayscale:R(),hueRotate:ne(),invert:R(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[_j,Dr],inset:J(),margin:J(),opacity:ne(),padding:I(),saturate:ne(),scale:ne(),sepia:R(),skew:ne(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",ue]}],container:["container"],columns:[{columns:[Ir]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"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:[...ee(),ue]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Uo,ue]}],basis:[{basis:J()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ue]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Uo,ue]}],"grid-cols":[{"grid-cols":[Bo]}],"col-start-end":[{col:["auto",{span:["full",Uo,ue]},ue]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[Bo]}],"row-start-end":[{row:["auto",{span:[Uo,ue]},ue]}],"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",ue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ue]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ue,t]}],"min-w":[{"min-w":[ue,t,"min","max","fit"]}],"max-w":[{"max-w":[ue,t,"none","full","min","max","fit","prose",{screen:[Ir]},Ir]}],h:[{h:[ue,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ue,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ue,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ue,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ir,Dr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_d]}],"font-family":[{font:[Bo]}],"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",ue]}],"line-clamp":[{"line-clamp":["none",Gi,_d]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ar,ue]}],"list-image":[{"list-image":["none",ue]}],"list-style-type":[{list:["none","disc","decimal",ue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ar,Dr]}],"underline-offset":[{"underline-offset":["auto",ar,ue]}],"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:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue]}],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",ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ee(),Cj]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Sj]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ej]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}
150],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],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":[y]}],"border-style":[{border:[...Q(),"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":[y]}
vendor: 4,469 bytes, line 150
150],"divide-style":[{divide:Q()}],"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:["",...Q()]}],"outline-offset":[{"outline-offset":[ar,ue]}],"outline-w":[{outline:[ar,Dr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ar,Dr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ir,Tj]}],"shadow-color":[{shadow:[Bo]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...D(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ir,ue]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"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",ue]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",ue]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",ue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[Uo,ue]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ue]}],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",ue]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",ue]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ar,Dr,_d]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
150none"]}]},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"]}}},Aj=mj(Rj);function Ne(...e){return Aj(Ex(e))}const Dj=zC,Ix=x.forwardRef(({className:e,...t},n)=>d.jsx(xx,{ref:n,className:Ne("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}));Ix.displayName=xx.displayName;const Ij=Tm("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"}}),Mx=x.forwardRef(({className:e,variant:t,...n},r)=>d.jsx(bx,{ref:r,className:Ne(Ij({variant:t}),e),...n}));Mx.displayName=bx.displayName;const Mj=x.forwardRef(({className:e,...t},n)=>d.jsx(Sx,{ref:n,className:Ne("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}));Mj.displayName=Sx.displayName;const Lx=x.forwardRef(({className:e,...t},n)=>d.jsx(Cx,{ref:n,className:Ne("absolute right-2 top-2 rounded-md p-1 text-foreground
150/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:d.jsx(Nx,{className:"h-4 w-4"})}));Lx.displayName=Cx.displayName;const Fx=x.forwardRef(({className:e,...t},n)=>d.jsx(_x,{ref:n,className:Ne("text-sm font-semibold",e),...t}));Fx.displayName=_x.displayName;const $x=x.forwardRef(({className:e,...t},n)=>d.jsx(kx,{ref:n,className:Ne("text-sm opacity-90",e),...t}));$x.displayName=kx.displayName;function Lj(){const{toasts:e}=km();return d.jsxs(Dj,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return d.jsxs(Mx,{...i,children:[d.jsxs("div",{className:"grid gap-1",children:[n&&d.jsx(Fx,{children:n}),r&&d.jsx($x,{children:r})]}),s,d.jsx(Lx,{})]},t)}),d.jsx(Ix,{})]})}var Hg=["light","dark"],Fj="(prefers-color-scheme: dark)",$j=x.createContext(void 0),zj={setTheme:e=>{},themes:[]},Uj=()=>{var e;return(e=x.useContext($j))!=null?e:zj};x.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:l})=>{let u=i==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=s?Hg.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(b,g=!1,w=!0)=>{let y=o?o[b]:b,p=g?b+"|| ''":`'${y}'`,v="";return s&&w&&!g&&Hg.includes(b)&&(v+=`d.style.colorScheme = '${b}';`),n==="class"?g||y?v+=`c.add(${p})`:v+="null":y&&(v+=`d[s](n,${p})`),v},m=e?`!function(){${c}${h(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Fj}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}${u?"":"else{"+h(i,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${f}}catch(t){}}();`;return x.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})});var Bj=e=>{switch(e){case"success":return Hj;case"info":return Kj;case"warning":return qj;case"error":return Yj;default:return null}},Vj=Array(12).fill(0),Wj=({visible:e,className:t})=>P.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},P.createElement("div",{className:"sonner-spinner"},Vj.map((n,r)=>P.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Hj=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.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"})),qj=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},P.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"})),Kj=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.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"})),Yj=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.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"})),Gj=P.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"},P.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),P.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Qj=()=>{let[e,t]=P.useState(document.hidden);return P.useEffect(()=>{let n=()=>{t(document.hidden)};
150return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Qf=1,Zj=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=>(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)=>
150this.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],P.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(Jj(l)&&!l.ok){s=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){s=!1;let u=typeof t.success=="function"?await t.success(l):t.success,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async l=>{if(i=["reject",l],t.error!==void 0){s=!1;let u=typeof t.error=="function"?await t.error(l):t.error,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var l;s&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>o.then(()=>i[0]==="reject"?u(i[1]):l(i[1])).catch(u));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}},jt=new Zj,Xj=(e,t)=>{let n=(t==null?void 0:t.id)||Qf++;return jt.addToast({title:e,...t,id:n}),n},Jj=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",eE=Xj,tE=()=>jt.toasts,nE=()=>jt.getActiveToasts();Object.assign(eE,{success:jt.success,info:jt.info,warning:jt.warning,error:jt.error,custom:jt.custom,message:jt.message,promise:jt.promise,dismiss:jt.dismiss,loading:jt.loading},{getHistory:tE,getToasts:nE});function rE(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))}rE(`: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;
150left: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}
150: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%);
150--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%)}
151`);function Fl(e){return e.label!==void 0}var sE=3,iE="32px",oE="16px",qg=4e3,aE=356,lE=14,uE=20,cE=200;function fn(...e){return e.filter(Boolean).join(" ")}function dE(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var fE=e=>{var t,n,r,s,i,o,a,l,u,c,f;let{invert:h,toast:m,unstyled:b,interacting:g,setHeights:w,visibleToasts:y,heights:p,index:v,toasts:_,expanded:S,removeToast:C,defaultRichColors:E,closeButton:A,style:F,c
vendor: 4,708 bytes, line 151
151ancelButtonStyle:$,actionButtonStyle:J,className:I="",descriptionClassName:K="",duration:M,position:ee,gap:Q,loadingIcon:D,expandByDefault:j,classNames:R,icons:V,closeButtonAriaLabel:ne="Close toast",pauseWhenPageIsHidden:te}=e,[ce,de]=P.useState(null),[Le,tt]=P.useState(null),[ge,nr]=P.useState(!1),[Gt,an]=P.useState(!1),[Rn,rr]=P.useState(!1),[An,Ss]=P.useState(!1),[ci,di]=P.useState(!1),[Ro,fi]=P.useState(0),[sr,k]=P.useState(0),T=P.useRef(m.duration||M||qg),N=P.useRef(null),W=P.useRef(null),B=v===0,U=v+1<=y,Y=m.type,pe=m.dismissible!==!1,Ce=m.className||"",St=m.descriptionClassName||"",ir=P.useMemo(()=>p.findIndex(oe=>oe.toastId===m.id)||0,[p,m.id]),Dn=P.useMemo(()=>{var oe;return(oe=m.closeButton)!=null?oe:A},[m.closeButton,A]),pl=P.useMemo(()=>m.duration||M||qg,[m.duration,M]),Cs=P.useRef(0),In=P.useRef(0),gl=P.useRef(0),or=P.useRef(null),[Wc,vl]=ee.split("-"),Sp=P.useMemo(()=>p.reduce((oe,je,De)=>De>=ir?oe:oe+je.height,0),[p,ir]),Cp=Qj(),g1=m.invert||h,Hc=Y==="loading";In.current=P.useMemo(()=>ir*Q+Sp,[ir,Sp]),P.useEffect(()=>{T.current=pl},[pl]),P.useEffect(()=>{nr(!0)},[]),P.useEffect(()=>{let oe=W.current;if(oe){let je=oe.getBoundingClientRect().height;return k(je),w(De=>[{toastId:m.id,height:je,position:m.position},...De]),()=>w(De=>De.filter(ln=>ln.toastId!==m.id))}},[w,m.id]),P.useLayoutEffect(()=>{if(!ge)return;let oe=W.current,je=oe.style.height;oe.style.height="auto";let De=oe.getBoundingClientRect().height;oe.style.height=je,k(De),w(ln=>ln.find(un=>un.toastId===m.id)?ln.map(un=>un.toastId===m.id?{...un,height:De}:un):[{toastId:m.id,height:De,position:m.position},...ln])},[ge,m.title,m.description,w,m.id]);let Pr=P.useCallback(()=>{an(!0),fi(In.current),w(oe=>oe.filter(je=>je.toastId!==m.id)),setTimeout(()=>{C(m)},cE)},[m,C,w,In]);P.useEffect(()=>{if(m.promise&&Y==="loading"||m.duration===1/0||m.type==="loading")return;let oe;return S||g||te&&Cp?(()=>{if(gl.current<Cs.current){let je=new Date().getTime()-Cs.current;T.current=T.current-je}gl.current=new Date().getTime()})():T.current!==1/0&&(Cs.current=new Date().getTime(),oe=setTimeout(()=>{var je;(je=m.onAutoClose)==null||je.call(m,m),Pr()},T.current)),()=>clearTimeout(oe)},[S,g,m,Y,te,Cp,Pr]),P.useEffect(()=>{m.delete&&Pr()},[Pr,m.delete]);function v1(){var oe,je,De;return V!=null&&V.loading?P.createElement("div",{className:fn(R==null?void 0:R.loader,(oe=m==null?void 0:m.classNames)==null?void 0:oe.loader,"sonner-loader"),"data-visible":Y==="loading"},V.loading):D?P.createElement("div",{className:fn(R==null?void 0:R.loader,(je=m==null?void 0:m.classNames)==null?void 0:je.loader,"sonner-loader"),"data-visible":Y==="loading"},D):P.createElement(Wj,{className:fn(R==null?void 0:R.loader,(De=m==null?void 0:m.classNames)==null?void 0:De.loader),visible:Y==="loading"})}return P.createElement("li",{tabIndex:0,ref:W,className:fn(I,Ce,R==null?void 0:R.toast,(t=m==null?void 0:m.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[Y],(n=m==null?void 0:m.classNames)==null?void 0:n[Y]),"data-sonner-toast":"","data-rich-colors":(r=m.richColors)!=null?r:E,"data-styled":!(m.jsx||m.unstyled||b),"data-mounted":ge,"data-promise":!!m.promise,"data-swiped":ci,"data-removed":Gt,"data-visible":U,"data-y-position":Wc,"data-x-position":vl,"data-index":v,"data-front":B,"data-swiping":Rn,"data-dismissible":pe,"data-type":Y,"data-invert":g1,"data-swipe-out":An,"data-swipe-direction":Le,"data-expanded":!!(S||j&&ge),style:{"--index":v,"--toasts-before":v,"--z-index":_.length-v,"--offset":`${Gt?Ro:In.current}px`,"--initial-height":j?"auto":`${sr}px`,...F,...m.style},onDragEnd:()=>{rr(!1),de(null),or.current=null},onPointerDown:oe=>{Hc||!pe||(N.current=new Date,fi(In.current),oe.target.setPointerCapture(oe.pointerId),oe.target.tagName!=="BUTTON"&&(rr(!0),or.current={x:oe.clientX,y:oe.clientY}))},onPointerUp:()=>{var oe,je,De,ln;if(An||!pe)return;or.current=null;let un=Number(((oe=W.current)==null?void 0:oe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Or=Number(((je=W.current)==null?void 0:je.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),js=new Date().getTime()-((De=N.current)==null?void 0:De.getTime()),cn=ce==="x"?un:Or,Rr=Math.abs(cn)/js;if(Math.abs(cn)>=uE||Rr>.11){fi(In.current),(ln=m.onDismiss)==null||ln.call(m,m),tt(ce==="x"?un>0?"right":"left":Or>0?"down":"up"),Pr(),Ss(!0),di(!1);return}rr(!1),de(null)},onPointerMove:oe=>{var je,De,ln,un;if(!or.current||!pe||((je=window.getSelection())==null?void 0:je.toString().length)>0)return;let Or=oe.clientY-or.current.y,js=oe.clientX-or.current.x,cn=(De=e.swipeDirections)!=null?De:dE(ee);!ce&&(Math.abs(js)>1||Math.abs(Or)>1)&&de(Math.abs(js)>Math.abs(Or)?"x":"y");let Rr={x:0,y:0};
151ce==="y"?(cn.includes("top")||cn.includes("bottom"))&&(cn.includes("top")&&Or<0||cn.includes("bottom")&&Or>0)&&(Rr.y=Or):ce==="x"&&(cn.includes("left")||cn.includes("right"))&&(cn.includes("left")&&js<0||cn.includes("right")&&js>0)&&(Rr.x=js),(Math.abs(Rr.x)>0||Math.abs(Rr.y)>0)&&di(!0),(ln=W.current)==null||ln.style.setProperty("--swipe-amount-x",`${Rr.x}px`),(un=W.current)==null||un.style.setProperty("--swipe-amount-y",`${Rr.y}px`)}},Dn&&!m.jsx?P.createElement("button",{"aria-label":ne,"data-disabled":Hc,"data-close-button":!0,onClick:Hc||!pe?()=>{}:()=>{var oe;Pr(),(oe=m.onDismiss)==null||oe.call(m,m)},className:fn(R==null?void 0:R.closeButton,(s=m==null?void 0:m.classNames)==null?void 0:s.closeButton)},(i=V==null?void 0:V.close)!=null?i:Gj):null,m.jsx||x.isValidElement(m.title)?m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title:P.createElement(P.Fragment,null,Y||m.icon||m.promise?P.createElement("div",{"data-icon":"",className:fn(R==null?void 0:R.icon,(o=m==null?void 0:m.classNames)==null?void 0:o.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||v1():null,m.type!=="loading"?m.
151icon||(V==null?void 0:V[Y])||Bj(Y):null):null,P.createElement("div",{"data-content":"",className:fn(R==null?void 0:R.content,(a=m==null?void 0:m.classNames)==null?void 0:a.content)},P.createElement("div",{"data-title":"",className:fn(R==null?void 0:R.title,(l=m==null?void 0:m.classNames)==null?void 0:l.title)},typeof m.title=="function"?m.title():m.title),m.description?P.createElement("div",{"data-description":"",className:fn(K,St,R==null?void 0:R.description,(u=m==null?void 0:m.classNames)==null?void 0:u.description)},typeof m.description=="function"?m.description():m.description):null),x.isValidElement(m.cancel)?m.cancel:m.cancel&&Fl(m.cancel)?P.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||$,onClick:oe=>{var je,De;Fl(m.cancel)&&pe&&((De=(je=m.cancel).onClick)==null||De.call(je,oe),Pr())},className:fn(R==null?void 0:R.cancelButton,(c=m==null?void 0:m.classNames)==null?void 0:c.cancelButton)},m.cancel.label):null,x.isValidElement(m.action)?m.action:m.action&&Fl(m.action)?P.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||J,onClick:oe=>{var je,De;Fl(m.action)&&((De=(je=m.action).onClick)==null||De.call(je,oe),!oe.defaultPrevented&&Pr())},className:fn(R==null?void 0:R.actionButton,(f=m==null?void 0:m.classNames)==null?void 0:f.actionButton)},m.action.label):null))};function Kg(){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 hE(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?oE:iE;function l(u){["top","right","bottom","left"].forEach(c=>{n[`${o}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=a:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var mE=x.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:u,theme:c="light",richColors:f,duration:h,style:m,visibleToasts:b=sE,toastOptions:g,dir:w=Kg(),gap:y=lE,loadingIcon:p,icons:v,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:S}=e,[C,E]=P.useState([]),A=P.useMemo(()=>Array.from(new Set([r].concat(C.filter(te=>te.position).map(te=>te.position)))),[C,r]),[F,$]=P.useState([]),[J,I]=P.useState(!1),[K,M]=P.useState(!1),[ee,Q]=P.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),D=P.useRef(null),j=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=P.useRef(null),V=P.useRef(!1),ne=P.useCallback(te=>{E(ce=>{var de;return(de=ce.find(Le=>Le.id===te.id))!=null&&de.delete||jt.dismiss(te.id),ce.filter(({id:Le})=>Le!==te.id)})},[]);return P.useEffect(()=>jt.subscribe(te=>{if(te.dismiss){E(ce=>ce.map(de=>de.id===te.id?{...de,delete:!0}:de));return}setTimeout(()=>{Zw.flushSync(()=>{E(ce=>{let de=ce.findIndex(Le=>Le.id===te.id);return de!==-1?[...ce.slice(0,de),{...ce[de],...te},...ce.slice(de+1)]:[te,...ce]})})})}),[]),P.useEffect(()=>{if(c!=="system"){Q(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Q("dark"):Q("light")),typeof window>"u")return;let te=window.matchMedia("(prefers-color-scheme: dark)");try{te.addEventListener("change",({matches:ce})=>{Q(ce?"dark":"light")})}catch{te.addListener(({matches:de})=>{try{Q(de?"dark":"light")}catch(Le){console.error(Le)}})}},[c]),P.useEffect(()=>{C.length<=1&&I(!1)},[C]),P.useEffect(()=>{let te=ce=>{var de,Le;s.every(tt=>ce[tt]||ce.code===tt)&&(I(!0),(de=D.current)==null||de.focus()),ce.code==="Escape"&&(document.activeElement===D.current||(Le=D.current)!=null&&Le.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",te),()=>document.removeEventListener("keydown",te)},[s]),P.useEffect(()=>{if(D.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,V.current=!1)}},[D.current]),P.createElement("section",{ref:t,"aria-label":`${_} ${j}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},A.map((te,ce)=>{var de;let[Le,tt]=te.split("-");return C.length?P.createElement("ol",{key:te,dir:w==="auto"?Kg():w,tabIndex:-1,ref:D,className:a,"data-sonner-toaster":!0,"data-theme":ee,"data-y-position":Le,"data-lifted":J&&C.length>1&&!i,"data-x-position":tt,style:{"--front-toast-height":`${((de=F[0])==null?void 0:de.height)||0}px`,"--width":`${aE}px`,"--gap":`${y}px`,...m,...hE(l,u)},onBlur:ge=>{V.current&&!ge.currentTarget.contains(ge.relatedTarget)&&(V.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||V.current||(V.current=!0,R.current=ge.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{K||I(!1)},onDragEnd:()=>I(!1),onPointerDown:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||M(!0)},onPointerUp:()=>M(!1)},C.filter(ge=>!ge.position&&ce===0||ge.position===te).map((ge,nr)=>{var Gt,an;return P.createElement(fE,{key:ge.id,icons:v,index:nr,toast:ge,defaultRichColors:f,duration:(Gt=g==null?void 0:g.duration)!=null?Gt:h,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:b,closeButton:(an=g==null?void 0:g.closeButton)!=null?an:o,interacting:K,position:te,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:ne,toasts:C.filter(Rn=>Rn.position==ge.position),heights:F.filter(Rn=>Rn.position==ge.position),setHeights:$,expandByDefault:i,gap:y,loadingIcon:p,expanded:J,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const pE=({...e})=>{const{theme:t="system"}=Uj();return d.jsx(mE,{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 gE=Rh[" useId ".trim().toString()]||(()=>{}),vE=0;function yE(e){const[t,n]=x.useState(gE());return Cr(()=>{e||n(r=>r??String(vE++))},[e]),e||(t?`radix-${t}`:"")}const wE=["top","right","bottom","left"],ps=Math.min,zt=Math.max,$u=Math.round,$l=Math.floor,Qn=e=>({x:e,y:e}
vendor: 10,354 bytes, line 151
151),xE={left:"right",right:"left",bottom:"top",top:"bottom"},bE={start:"end",end:"start"};function Zf(e,t,n){return zt(e,ps(t,n))}function jr(e,t){return typeof e=="function"?e(t):e}function Er(e){return e.split("-")[0]}function Eo(e){return e.split("-")[1]}function Im(e){return e==="x"?"y":"x"}function Mm(e){return e==="y"?"height":"width"}const _E=new Set(["top","bottom"]);function Hn(e){return _E.has(Er(e))?"y":"x"}function Lm(e){return Im(Hn(e))}function kE(e,t,n){n===void 0&&(n=!1);const r=Eo(e),s=Lm(e),i=Mm(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=zu(o)),[o,zu(o)]}function SE(e){const t=zu(e);return[Xf(e),t,Xf(t)]}function Xf(e){return e.replace(/start|end/g,t=>bE[t])}const Yg=["left","right"],Gg=["right","left"],CE=["top","bottom"],jE=["bottom","top"];function EE(e,t,n){switch(e){case"top":case"bottom":return n?t?Gg:Yg:t?Yg:Gg;case"left":case"right":return t?CE:jE;default:return[]}}function TE(e,t,n,r){const s=Eo(e);let i=EE(Er(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Xf)))),i}function zu(e){return e.replace(/left|right|bottom|top/g,t=>xE[t])}function NE(e){return{top:0,right:0,bottom:0,left:0,...e}}function zx(e){return typeof e!="number"?NE(e):{top:e,right:e,bottom:e,left:e}}function Uu(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 Qg(e,t,n){let{reference:r,floating:s}=e;const i=Hn(t),o=Lm(t),a=Mm(o),l=Er(t),u=i==="y",c=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let m;switch(l){case"top":m={x:c,y:r.y-s.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-s.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Eo(t)){case"start":m[o]-=h*(n&&u?-1:1);break;case"end":m[o]+=h*(n&&u?-1:1);break}return m}const PE=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 u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:f}=Qg(u,r,l),h=r,m={},b=0;for(let g=0;g<a.length;g++){const{name:w,fn:y}=a[g],{x:p,y:v,data:_,reset:S}=await y({x:c,y:f,initialPlacement:r,placement:h,strategy:s,middlewareData:m,rects:u,platform:o,elements:{reference:e,floating:t}});c=p??c,f=v??f,m={...m,[w]:{...m[w],..._}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(u=S.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):S.rects),{x:c,y:f}=Qg(u,h,l)),g=-1)}return{x:c,y:f,placement:h,strategy:s,middlewareData:m}};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:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=jr(t,e),b=zx(m),w=a[h?f==="floating"?"reference":"floating":f],y=Uu(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:u,rootBoundary:c,strategy:l})),p=f==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),_=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},S=Uu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:p,offsetParent:v,strategy:l}):p);return{top:(y.top-S.top+b.top)/_.y,bottom:(S.bottom-y.bottom+b.bottom)/_.y,left:(y.left-S.left+b.left)/_.x,right:(S.right-y.right+b.right)/_.x}}const OE=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:u,padding:c=0}=jr(e,t)||{};if(u==null)return{};const f=zx(c),h={x:n,y:r},m=Lm(s),b=Mm(m),g=await o.getDimensions(u),w=m==="y",y=w?"top":"left",p=w?"bottom":"right",v=w?"clientHeight":"clientWidth",_=i.reference[b]+i.reference[m]-h[m]-i.floating[b],S=h[m]-i.reference[m],C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let E=C?C[v]:0;(!E||!await(o.isElement==null?void 0:o.isElement(C)))&&(E=a.floating[v]||i.floating[b]);const A=_/2-S/2,F=E/2-g[b]/2-1,$=ps(f[y],F),J=ps(f[p],F),I=$,K=E-g[b]-J,M=E/2-g[b]/2+A,ee=Zf(I,M,K),Q=!l.arrow&&Eo(s)!=null&&M!==ee&&i.reference[b]/2-(M<I?$:J)-g[b]/2<0,D=Q?M<I?M-I:M-K:0;return{[m]:h[m]+D,data:{[m]:ee,centerOffset:M-ee-D,...Q&&{alignmentOffset:D}},reset:Q}}}),RE=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:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...w}=jr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=Er(s),p=Hn(a),v=Er(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=h||(v||!g?[zu(a)]:SE(a)),C=b!=="none";!h&&C&&S.push(...TE(a,g,b,_));const E=[a,...S],A=await Da(t,w),F=[];let $=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&F.push(A[y]),f){const M=kE(s,o,_);F.push(A[M[0]],A[M[1]])}if($=[...$,{placement:s,overflows:F}],!F.every(M=>M<=0)){var J,I;const M=(((J=i.flip)==null?void 0:J.index)||0)+1,ee=E[M];if(ee&&(!(f==="alignment"?p!==Hn(ee):!1)||$.every(j=>j.overflows[0]>0&&Hn(j.placement)===p)))return{data:{index:M,overflows:$},reset:{placement:ee}};let Q=(I=$.filter(D=>D.overflows[0]<=0).sort((D,j)=>D.overflows[1]-j.overflows[1])[0])==null?void 0:I.placement;if(!Q)switch(m){case"bestFit":{var K;const D=(K=$.filter(j=>{if(C){const R=Hn(j.placement);return R===p||R==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(R=>R>0).reduce((R,V)=>R+V,0)]).sort((j,R)=>j[1]-R[1])[0])==null?void 0:K[0];D&&(Q=D);break}case"initialPlacement":Q=a;break}if(s!==Q)return{reset:{placement:Q}}}return{}}}};function Zg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xg(e){return wE.some(t=>e[t]>=0)}const AE=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=jr(e,t);switch(r){case"referenceHidden":{const i=await Da(t,{...s,elementContext:"reference"}),o=Zg(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Xg(o)}}}case"escaped":{const i=await Da(t,{...s,altBoundary:!0}),o=Zg(i,n.floating);return{data:{escapedOffsets:o,escaped:Xg(o)}}}default:return{}}}}},Ux=new Set(["left","top"]);async function DE(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Er(n),a=Eo(n),l=Hn(n)==="y",u=Ux.has(o)?-1:1,c=i&&l?-1:1,f=jr(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof b=="number"&&(m=a==="end"?b*-1:b),l?{x:m*c,y:h*u}:{x:h*u,y:m*c}}const IE=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 DE(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}}}}},ME=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:y,y:p}=w;return{x:y,y:p}}},...l}=jr(e,t),u={x:n,y:r},c=await Da(t,l),f=Hn(Er(s)),h=Im(f);let m=u[h],b=u[f];if(i){const w=h==="y"?"top":"left",y=h==="y"?"bottom":"right",p=m+c[w],v=m-c[y];m=Zf(p,m,v)}if(o){const w=f==="y"?"top":"left",y=f==="y"?"bottom":"right",p=b+c[w],v=b-c[y];b=Zf(p,b,v)}const g=a.fn({...t,[h]:m,[f]:b});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:i,[f]:o}}}}}},LE=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:u=!0}=jr(e,t),c={x:n,y:r},f=Hn(s),h=Im(f);let m=c[h],b=c[f];const g=jr(a,t),w=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const v=h==="y"?"height":"width",_=i.reference[h]-i.floating[v]+w.mainAxis,S=i.reference[h]+i.reference[v]-w.mainAxis;m<_?m=_:m>S&&(m=S)}if(u){var y,p;const v=h==="y"?"width":"height",_=Ux.has(Er(s)),S=i.reference[f]-i.floating[v]+(_&&((y=o.offset)==null?void 0:y[f])||0)+(_?0:w.crossAxis),C=i.reference[f]+i.reference[v]+(_?0:((p=o.offset)==null?void 0:p[f])||0)-(_?w.crossAxis:0);b<S?b=S:b>C&&(b=C)}return{[h]:m,[f]:b}}}},FE=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=()=>{},...u}=jr(e,t),c=await Da(t,u),f=Er(s),h=Eo(s),m=Hn(s)==="y",{width:b,height:g}=i.floating;let w,y;f==="top"||f==="bottom"?(w=f,y=h===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=f,w=h==="end"?"top":"bottom");const p=g-c.top-c.bottom,v=b-c.left-c.right,_=ps(g-c[w],p),S=ps(b-c[y],v),C=!t.middlewareData.shift;let E=_,A=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=p),C&&!h){const $=zt(c.left,0),J=zt(c.right,0),I=zt(c.top,0),K=zt(c.bottom,0);m?A=b-2*($!==0||J!==0?$+J:zt(c.left,c.right)):E=g-2*(I!==0||K!==0?I+K:zt(c.top,c.bottom))}await l({...t,availableWidth:A,availableHeight:E});const F=await o.getDimensions(a.floating);return b!==F.width||g!==F.height?{reset:{rects:!0}}:{}}}};function kc(){return typeof window<"u"}function To(e){return Bx(e)?(e.nodeName||"").toLowerCase():"#document"}function Vt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tr(e){var t;return(t=(Bx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Bx(e){return kc()?e instanceof Node||e instanceof Vt(e).Node:!1}function Tn(e){return kc()?e instanceof Element||e instanceof Vt(e).Element:!1}function Jn(e){return kc()?e instanceof HTMLElement||e instanceof Vt(e).HTMLElement:!1}function Jg(e){return!kc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Vt(e).ShadowRoot}const $E=new Set(["inline","contents"]);function sl(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Nn(e);
vendor: 4,121 bytes, line 151
151return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!$E.has(s)}const zE=new Set(["table","td","th"]);function UE(e){return zE.has(To(e))}const BE=[":popover-open",":modal"];function Sc(e){return BE.some(t=>{try{return e.matches(t)}catch{return!1}})}const VE=["transform","translate","scale","rotate","perspective"],WE=["transform","translate","scale","rotate","perspective","filter"],HE=["paint","layout","strict","content"];function Fm(e){const t=$m(),n=Tn(e)?Nn(e):e;return VE.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)||WE.some(r=>(n.willChange||"").includes(r))||HE.some(r=>(n.contain||"").includes(r))}function qE(e){let t=gs(e);for(;Jn(t)&&!mo(t);){if(Fm(t))return t;if(Sc(t))return null;t=gs(t)}return null}function $m(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const KE=new Set(["html","body","#document"]);function mo(e){return KE.has(To(e))}function Nn(e){return Vt(e).getComputedStyle(e)}function Cc(e){return Tn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gs(e){if(To(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jg(e)&&e.host||tr(e);return Jg(t)?t.host:t}function Vx(e){const t=gs(e);return mo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jn(t)&&sl(t)?t:Vx(t)}function Ia(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Vx(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Vt(s);if(i){const a=Jf(o);return t.concat(o,o.visualViewport||[],sl(s)?s:[],a&&n?Ia(a):[])}return t.concat(s,Ia(s,[],n))}function Jf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wx(e){const t=Nn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Jn(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=$u(n)!==i||$u(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function zm(e){return Tn(e)?e:e.contextElement}function Qi(e){const t=zm(e);if(!Jn(t))return Qn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=Wx(t);let o=(i?$u(n.width):n.width)/r,a=(i?$u(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const YE=Qn(0);function Hx(e){const t=Vt(e);return!$m()||!t.visualViewport?YE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function GE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Vt(e)?!1:t}function Js(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=zm(e);let o=Qn(1);t&&(r?Tn(r)&&(o=Qi(r)):o=Qi(e));const a=GE(i,n,r)?Hx(i):Qn(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,c=s.width/o.x,f=s.height/o.y;if(i){const h=Vt(i),m=r&&Tn(r)?Vt(r):r;let b=h,g=Jf(b);for(;g&&r&&m!==b;){const w=Qi(g),y=g.getBoundingClientRect(),p=Nn(g),v=y.left+(g.clientLeft+parseFloat(p.paddingLeft))*w.x,_=y.top+(g.clientTop+parseFloat(p.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,f*=w.y,l+=v,u+=_,b=Vt(g),g=Jf(b)}}return Uu({width:c,height:f,x:l,y:u})}function Um(e,t){const n=Cc(e).scrollLeft;return t?t.left+n:Js(tr(e)).left+n}function qx(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:Um(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function QE(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=tr(r),a=t?Sc(t.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Qn(1);const c=Qn(0),f=Jn(r);if((f||!f&&!i)&&((To(r)!=="body"||sl(o))&&(l=Cc(r)),Jn(r))){const m=Js(r);u=Qi(r),c.x=m.x+r.clientLeft,c.y=m.y+r.clientTop}const h=o&&!f&&!i?qx(o,l,!0):Qn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-l.scrollTop*u.y+c.y+h.y}}function ZE(e){return Array.from(e.getClientRects())}function XE(e){const t=tr(e),n=Cc(e),r=e.ownerDocument.body,s=zt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=zt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Um(e);const a=-n.scrollTop;return Nn(r).direction==="rtl"&&(o+=zt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}
vendor: 13,223 bytes, line 151
151function JE(e,t){const n=Vt(e),r=tr(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=$m();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}const eT=new Set(["absolute","fixed"]);function tT(e,t){const n=Js(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Jn(e)?Qi(e):Qn(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,u=r*i.y;return{width:o,height:a,x:l,y:u}}function ev(e,t,n){let r;if(t==="viewport")r=JE(e,n);else if(t==="document")r=XE(tr(e));else if(Tn(t))r=tT(t,n);else{const s=Hx(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Uu(r)}function Kx(e,t){const n=gs(e);return n===t||!Tn(n)||mo(n)?!1:Nn(n).position==="fixed"||Kx(n,t)}function nT(e,t){const n=t.get(e);if(n)return n;let r=Ia(e,[],!1).filter(a=>Tn(a)&&To(a)!=="body"),s=null;const i=Nn(e).position==="fixed";let o=i?gs(e):e;for(;Tn(o)&&!mo(o);){const a=Nn(o),l=Fm(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&eT.has(s.position)||sl(o)&&!l&&Kx(e,o))?r=r.filter(c=>c!==o):s=a,o=gs(o)}return t.set(e,r),r}function rT(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?Sc(t)?[]:nT(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,c)=>{const f=ev(t,c,s);return u.top=zt(f.top,u.top),u.right=ps(f.right,u.right),u.bottom=ps(f.bottom,u.bottom),u.left=zt(f.left,u.left),u},ev(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function sT(e){const{width:t,height:n}=Wx(e);return{width:t,height:n}}function iT(e,t,n){const r=Jn(t),s=tr(t),i=n==="fixed",o=Js(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Qn(0);function u(){l.x=Um(s)}if(r||!r&&!i)if((To(t)!=="body"||sl(s))&&(a=Cc(t)),r){const m=Js(t,!0,i,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else s&&u();i&&!r&&s&&u();const c=s&&!r&&!i?qx(s,a):Qn(0),f=o.left+a.scrollLeft-l.x-c.x,h=o.top+a.scrollTop-l.y-c.y;return{x:f,y:h,width:o.width,height:o.height}}function kd(e){return Nn(e).position==="static"}function tv(e,t){if(!Jn(e)||Nn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return tr(e)===n&&(n=n.ownerDocument.body),n}function Yx(e,t){const n=Vt(e);if(Sc(e))return n;if(!Jn(e)){let s=gs(e);for(;s&&!mo(s);){if(Tn(s)&&!kd(s))return s;s=gs(s)}return n}let r=tv(e,t);for(;r&&UE(r)&&kd(r);)r=tv(r,t);return r&&mo(r)&&kd(r)&&!Fm(r)?n:r||qE(e)||n}const oT=async function(e){const t=this.getOffsetParent||Yx,n=this.getDimensions,r=await n(e.floating);return{reference:iT(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function aT(e){return Nn(e).direction==="rtl"}const lT={convertOffsetParentRelativeRectToViewportRelativeRect:QE,getDocumentElement:tr,getClippingRect:rT,getOffsetParent:Yx,getElementRects:oT,getClientRects:ZE,getDimensions:sT,getScale:Qi,isElement:Tn,isRTL:aT};function Gx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function uT(e,t){let n=null,r;const s=tr(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 u=e.getBoundingClientRect(),{left:c,top:f,width:h,height:m}=u;if(a||t(),!h||!m)return;const b=$l(f),g=$l(s.clientWidth-(c+h)),w=$l(s.clientHeight-(f+m)),y=$l(c),v={rootMargin:-b+"px "+-g+"px "+-w+"px "+-y+"px",threshold:zt(0,ps(1,l))||1};let _=!0;function S(C){const E=C[0].intersectionRatio;if(E!==l){if(!_)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!Gx(u,e.getBoundingClientRect())&&o(),_=!1}try{n=new IntersectionObserver(S,{...v,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return o(!0),i}function cT(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,u=zm(e),c=s||i?[...u?Ia(u):[],...Ia(t)]:[];c.forEach(y=>{s&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const f=u&&a?uT(u,n):null;let h=-1,m=null;o&&(m=new ResizeObserver(y=>{let[p]=y;p&&p.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=m)==null||v.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let b,g=l?Js(e):null;l&&w();function w(){const y=Js(e);g&&!Gx(g,y)&&n(),g=y,b=requestAnimationFrame(w)}return n(),()=>{var y;c.forEach(p=>{s&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),f==null||f(),(y=m)==null||y.disconnect(),m=null,l&&cancelAnimationFrame(b)}}const dT=IE,fT=ME,hT=RE,mT=FE,pT=AE,nv=OE,gT=LE,vT=(e,t,n)=>{const r=new Map,s={platform:lT,...n},i={...s.platform,_c:r};return PE(e,t,{...s,platform:i})};var yT=typeof document<"u",wT=function(){},cu=yT?x.useLayoutEffect:wT;function Bu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,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(!Bu(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)&&!Bu(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Qx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rv(e,t){const n=Qx(e);return Math.round(t*n)/n}function Sd(e){const t=x.useRef(e);return cu(()=>{t.current=e}),t}function xT(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:u}=e,[c,f]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=x.useState(r);Bu(h,r)||m(r);const[b,g]=x.useState(null),[w,y]=x.useState(null),p=x.useCallback(j=>{j!==C.current&&(C.current=j,g(j))},[]),v=x.useCallback(j=>{j!==E.current&&(E.current=j,y(j))},[]),_=i||b,S=o||w,C=x.useRef(null),E=x.useRef(null),A=x.useRef(c),F=l!=null,$=Sd(l),J=Sd(s),I=Sd(u),K=x.useCallback(()=>{if(!C.current||!E.current)return;const j={placement:t,strategy:n,middleware:h};J.current&&(j.platform=J.current),vT(C.current,E.current,j).then(R=>{const V={...R,isPositioned:I.current!==!1};M.current&&!Bu(A.current,V)&&(A.current=V,el.flushSync(()=>{f(V)}))})},[h,t,n,J,I]);cu(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(j=>({...j,isPositioned:!1})))},[u]);const M=x.useRef(!1);cu(()=>(M.current=!0,()=>{M.current=!1}),[]),cu(()=>{if(_&&(C.current=_),S&&(E.current=S),_&&S){if($.current)return $.current(_,S,K);K()}},[_,S,K,$,F]);const ee=x.useMemo(()=>({reference:C,floating:E,setReference:p,setFloating:v}),[p,v]),Q=x.useMemo(()=>({reference:_,floating:S}),[_,S]),D=x.useMemo(()=>{const j={position:n,left:0,top:0};if(!Q.floating)return j;const R=rv(Q.floating,c.x),V=rv(Q.floating,c.y);return a?{...j,transform:"translate("+R+"px, "+V+"px)",...Qx(Q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:V}},[n,a,Q.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:K,refs:ee,elements:Q,floatingStyles:D}),[c,K,ee,Q,D])}const bT=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?nv({element:r.current,padding:s}).fn(n):{}:r?nv({element:r,padding:s}).fn(n):{}}}},_T=(e,t)=>({...dT(e),options:[e,t]}),kT=(e,t)=>({...fT(e),options:[e,t]}),ST=(e,t)=>({...gT(e),options:[e,t]}),CT=(e,t)=>({...hT(e),options:[e,t]}),jT=(e,t)=>({...mT(e),options:[e,t]}),ET=(e,t)=>({...pT(e),options:[e,t]}),TT=(e,t)=>({...bT(e),options:[e,t]});var NT="Arrow",Zx=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return d.jsx(st.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Zx.displayName=NT;var PT=Zx;function OT(e){const[t,n]=x.useState(void 0);return Cr(()=>{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,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,a=u.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 Bm="Popper",[Xx,jc]=tl(Bm),[RT,Jx]=Xx(Bm),eb=e=>{const{__scopePopper:t,children:n}=e,[r,s]=x.useState(null);return d.jsx(RT,{scope:t,anchor:r,onAnchorChange:s,children:n})};eb.displayName=Bm;var tb="PopperAnchor",nb=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=Jx(tb,n),o=x.useRef(null),a=Lt(t,o);return x.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:d.jsx(st.div,{...s,ref:a})});nb.displayName=tb;var Vm="PopperContent",[AT,DT]=Xx(Vm),rb=x.forwardRef((e,t)=>{var ge,nr,Gt,an,Rn,rr;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:b,...g}=e,w=Jx(Vm,n),[y,p]=x.useState(null),v=Lt(t,An=>p(An)),[_,S]=x.useState(null),C=OT(_),E=(C==null?void 0:C.width)??0,A=(C==null?void 0:C.height)??0,F=r+(i!=="center"?"-"+i:""),$=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},J=Array.isArray(u)?u:[u],I=J.length>0,K={padding:$,boundary:J.filter(MT),altBoundary:I},{refs:M,floatingStyles:ee,placement:Q,isPositioned:D,middlewareData:j}=xT({strategy:"fixed",placement:F,whileElementsMounted:(...An)=>cT(...An,{animationFrame:m==="always"}),elements:{reference:w.anchor},middleware:[_T({mainAxis:s+A,alignmentAxis:o}),l&&kT({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?ST():void 0,...K}),l&&CT({...K}),jT({...K,apply:({elements:An,rects:Ss,availableWidth:ci,availableHeight:di})=>{const{width:Ro,height:fi}=Ss.reference,sr=An.floating.style;sr.setProperty("--radix-popper-available-width",`${ci}px`),sr.setProperty("--radix-popper-available-height",`${di}px`),sr.setProperty("--radix-popper-anchor-width",`${Ro}px`),sr.setProperty("--radix-popper-anchor-height",`${fi}px`)}}),_&&TT({element:_,padding:a}),LT({arrowWidth:E,arrowHeight:A}),h&&ET({strategy:"referenceHidden",...K})]}),[R,V]=ob(Q),ne=Xn(b);Cr(()=>{D&&(ne==null||ne())},[D,ne]);const te=(ge=j.arrow)==null?void 0:ge.x,ce=(nr=j.arrow)==null?void 0:nr.y,de=((Gt=j.arrow)==null?void 0:Gt.centerOffset)!==0,[Le,tt]=x.useState();return Cr(()=>{y&&tt(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...ee,transform:D?ee.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Le,"--radix-popper-transform-origin":[(an=j.transformOrigin)==null?void 0:an.x,(Rn=j.transformOrigin)==null?void 0:Rn.y].join(" "),...((rr=j.hide)==null?void 0:rr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(AT,{scope:n,placedSide:R,onArrowChange:S,arrowX:te,arrowY:ce,shouldHideArrow:de,children:d.jsx(st.div,{"data-side":R,"data-align":V,...g,ref:v,style:{...g.style,animation:D?void 0:"none"}})})})});rb.displayName=Vm;var sb="PopperArrow",IT={top:"bottom",right:"left",bottom:"top",left:"right"},ib=x.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=DT(sb,r),o=IT[i.placedSide];return d.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:d.jsx(PT,{...s,ref:n,style:{...s.style,display:"block"}})})});ib.displayName=sb;function MT(e){return e!==null}var LT=e=>({name:"transformOrigin",options:e,fn(t){var w,y,p;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,[u,c]=ob(n),f={start:"0%",center:"50%",end:"100%"}[c],h=(((y=s.arrow)==null?void 0:y.x)??0)+a/2,m=(((p=s.arrow)==null?void 0:p.y)??0)+l/2;let b="",g="";return u==="bottom"?(b=o?f:`${h}px`,g=`${-l}px`):u==="top"?(b=o?f:`${h}px`,g=`${r.floating.height+l}px`):u==="right"?(b=`${-l}px`,g=o?f:`${m}px`):u==="left"&&(b=`${r.floating.width+l}px`,g=o?f:`${m}px`),{data:{x:b,y:g}}}});function ob(e){const[t,n="center"]=e.split("-");return[t,n]}var FT=eb,Wm=nb,ab=rb,lb=ib,[Ec,bL]=tl("Tooltip",[jc]),Hm=jc(),ub="TooltipProvider",$T=700,sv="tooltip.open",[zT,cb]=Ec(ub),db=e=>{const{__scopeTooltip:t,delayDuration:n=$T,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,o=x.useRef(!0),a=x.useRef(!1),l=x.useRef(0);return x.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),d.jsx(zT,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>
vendor: 5,465 bytes, line 151
151o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:x.useCallback(u=>{a.current=u},[]),disableHoverableContent:s,children:i})};db.displayName=ub;var fb="Tooltip",[_L,Tc]=Ec(fb),eh="TooltipTrigger",UT=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Tc(eh,n),i=cb(eh,n),o=Hm(n),a=x.useRef(null),l=Lt(t,a,s.onTriggerChange),u=x.useRef(!1),c=x.useRef(!1),f=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),d.jsx(Wm,{asChild:!0,...o,children:d.jsx(st.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:Me(e.onPointerMove,h=>{h.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),c.current=!0)}),onPointerLeave:Me(e.onPointerLeave,()=>{s.onTriggerLeave(),c.current=!1}),onPointerDown:Me(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Me(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:Me(e.onBlur,s.onClose),onClick:Me(e.onClick,s.onClose)})})});UT.displayName=eh;var BT="TooltipPortal",[kL,VT]=Ec(BT,{forceMount:void 0}),po="TooltipContent",hb=x.forwardRef((e,t)=>{const n=VT(po,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,o=Tc(po,e.__scopeTooltip);return d.jsx(nl,{present:r||o.open,children:o.disableHoverableContent?d.jsx(mb,{side:s,...i,ref:t}):d.jsx(WT,{side:s,...i,ref:t})})}),WT=x.forwardRef((e,t)=>{const n=Tc(po,e.__scopeTooltip),r=cb(po,e.__scopeTooltip),s=x.useRef(null),i=Lt(t,s),[o,a]=x.useState(null),{trigger:l,onClose:u}=n,c=s.current,{onPointerInTransitChange:f}=r,h=x.useCallback(()=>{a(null),f(!1)},[f]),m=x.useCallback((b,g)=>{const w=b.currentTarget,y={x:b.clientX,y:b.clientY},p=GT(y,w.getBoundingClientRect()),v=QT(y,p),_=ZT(g.getBoundingClientRect()),S=JT([...v,..._]);a(S),f(!0)},[f]);return x.useEffect(()=>()=>h(),[h]),x.useEffect(()=>{if(l&&c){const b=w=>m(w,c),g=w=>m(w,l);return l.addEventListener("pointerleave",b),c.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",b),c.removeEventListener("pointerleave",g)}}},[l,c,m,h]),x.useEffect(()=>{if(o){const b=g=>{const w=g.target,y={x:g.clientX,y:g.clientY},p=(l==null?void 0:l.contains(w))||(c==null?void 0:c.contains(w)),v=!XT(y,o);p?h():v&&(h(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,c,o,u,h]),d.jsx(mb,{...e,ref:i})}),[HT,qT]=Ec(fb,{isInside:!1}),KT=XS("TooltipContent"),mb=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=e,l=Tc(po,n),u=Hm(n),{onClose:c}=l;return x.useEffect(()=>(document.addEventListener(sv,c),()=>document.removeEventListener(sv,c)),[c]),x.useEffect(()=>{if(l.trigger){const f=h=>{const m=h.target;m!=null&&m.contains(l.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,c]),d.jsx(xc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:d.jsxs(ab,{"data-state":l.stateAttribute,...u,...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:[d.jsx(KT,{children:r}),d.jsx(HT,{scope:n,isInside:!0,children:d.jsx(_C,{id:l.contentId,role:"tooltip",children:s||r})})]})})});hb.displayName=po;var pb="TooltipArrow",YT=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Hm(n);return qT(pb,n).isInside?null:d.jsx(lb,{...s,...r,ref:t})});YT.displayName=pb;function GT(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 QT(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 ZT(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 XT(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],u=a.x,c=a.y,f=l.x,h=l.y;c>r!=h>r&&n<(f-u)*(r-c)/(h-c)+u&&(s=!s)}return s}function JT(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),eN(t)}function eN(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 tN=db,gb=hb;const nN=tN,rN=x.forwardRef(({className:e,sideOffset:t=4,...n},r)=>
vendor: 8,841 bytes, line 151
151d.jsx(gb,{ref:r,sideOffset:t,className:Ne("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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));rN.displayName=gb.displayName;var Nc=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(){}},Pc=typeof window>"u"||"Deno"in globalThis;function pn(){}function sN(e,t){return typeof e=="function"?e(t):e}function iN(e){return typeof e=="number"&&e>=0&&e!==1/0}function oN(e,t){return Math.max(e+(t||0)-Date.now(),0)}function th(e,t){return typeof e=="function"?e(t):e}function aN(e,t){return typeof e=="function"?e(t):e}function iv(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==qm(o,t.options))return!1}else if(!La(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 ov(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Ma(t.options.mutationKey)!==Ma(i))return!1}else if(!La(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function qm(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ma)(e)}function Ma(e){return JSON.stringify(e,(t,n)=>nh(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function La(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>La(e[n],t[n])):!1}function vb(e,t){if(e===t)return e;const n=av(e)&&av(t);if(n||nh(e)&&nh(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 u=0;for(let c=0;c<o;c++){const f=n?c:i[c];(!n&&l.has(f)||n)&&e[f]===void 0&&t[f]===void 0?(a[f]=void 0,u++):(a[f]=vb(e[f],t[f]),a[f]===e[f]&&e[f]!==void 0&&u++)}return s===o&&u===s?e:a}return t}function av(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function nh(e){if(!lv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!lv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function lv(e){return Object.prototype.toString.call(e)==="[object Object]"}function lN(e){return new Promise(t=>{setTimeout(t,e)})}function uN(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?vb(e,t):t}function cN(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function dN(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Km=Symbol();function yb(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Km?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var $s,Yr,Xi,Py,fN=(Py=class extends Nc{constructor(){super();xe(this,$s);xe(this,Yr);xe(this,Xi);ae(this,Xi,t=>{if(!Pc&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){O(this,Yr)||this.setEventListener(O(this,Xi))}onUnsubscribe(){var t;this.hasListeners()||((t=O(this,Yr))==null||t.call(this),ae(this,Yr,void 0))}setEventListener(t){var n;ae(this,Xi,t),(n=O(this,Yr))==null||n.call(this),ae(this,Yr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){O(this,$s)!==t&&(ae(this,$s,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof O(this,$s)=="boolean"?O(this,$s):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},$s=new WeakMap,Yr=new WeakMap,Xi=new WeakMap,Py),wb=new fN,Ji,Gr,eo,Oy,hN=(Oy=class extends Nc{constructor(){super();xe(this,Ji,!0);xe(this,Gr);xe(this,eo);ae(this,eo,t=>{if(!Pc&&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(){O(this,Gr)||this.setEventListener(O(this,eo))}onUnsubscribe(){var t;this.hasListeners()||((t=O(this,Gr))==null||t.call(this),ae(this,Gr,void 0))}setEventListener(t){var n;ae(this,eo,t),(n=O(this,Gr))==null||n.call(this),ae(this,Gr,t(this.setOnline.bind(this)))}setOnline(t){O(this,Ji)!==t&&(ae(this,Ji,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return O(this,Ji)}},Ji=new WeakMap,Gr=new WeakMap,eo=new WeakMap,Oy),Vu=new hN;function mN(){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 pN(e){return Math.min(1e3*2**e,3e4)}function xb(e){return(e??"online")==="online"?Vu.isOnline():!0}var bb=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Cd(e){return e instanceof bb}function _b(e){let t=!1,n=0,r=!1,s;const i=mN(),o=g=>{var w;r||(h(new bb(g)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>wb.isFocused()&&(e.networkMode==="always"||Vu.isOnline())&&e.canRun(),c=()=>xb(e.networkMode)&&e.canRun(),f=g=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,g),s==null||s(),i.resolve(g))},h=g=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,g),s==null||s(),i.reject(g))},m=()=>new Promise(g=>{var w;s=y=>{(r||u())&&g(y)},(w=e.onPause)==null||w.call(e)}).then(()=>{var g;s=void 0,r||(g=e.onContinue)==null||g.call(e)}),b=()=>{if(r)return;let g;const w=n===0?e.initialPromise:void 0;try{g=w??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(f).catch(y=>{var C;if(r)return;const p=e.retry??(Pc?0:3),v=e.retryDelay??pN,_=typeof v=="function"?v(n,y):v,S=p===!0||typeof p=="number"&&n<p||typeof p=="function"&&p(n,y);if(t||!S){h(y);return}n++,(C=e.onFail)==null||C.call(e,n,y),lN(_).then(()=>u()?void 0:m()).then(()=>{t?h(y):b()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?b():m().then(b),i)}}var gN=e=>setTimeout(e,0);function vN(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=gN;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 xt=vN(),zs,Ry,kb=(Ry=class{constructor(){xe(this,zs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),iN(this.gcTime)&&ae(this,zs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Pc?1/0:5*60*1e3))}clearGcTimeout(){O(this,zs)&&(clearTimeout(O(this,zs)),ae(this,zs,void 0))}},zs=new WeakMap,Ry),to,Us,Qt,Bs,ft,Ka,Vs,gn,cr,Ay,yN=(Ay=class extends kb{constructor(t){super();xe(this,gn);xe(this,to);xe(this,Us);xe(this,Qt);xe(this,Bs);xe(this,ft);xe(this,Ka);xe(this,Vs);ae(this,Vs,!1),ae(this,Ka,t.defaultOptions),this.setOptions(t.options),this.observers=[],ae(this,Bs,t.client),ae(this,Qt,O(this,Bs).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ae(this,to,xN(this.options)),this.state=t.state??O(this,to),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=O(this,ft))==null?void 0:t.promise}setOptions(t){this.options={...O(this,Ka),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&O(this,Qt).remove(this)}setData(t,n){const r=uN(this.state.data,t,this.options);return ut(this,gn,cr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ut(this,gn,cr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=O(this,ft))==null?void 0:r.promise;return(s=O(this,ft))==null||s.cancel(t),n?n.then(pn).catch(pn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(O(this,to))}isActive(){return this.observers.some(t=>aN(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Km||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 1,274 bytes, line 151
151Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>th(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:!oN(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=O(this,ft))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=O(this,ft))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),O(this,Qt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(O(this,ft)&&(O(this,Vs)?O(this,ft).cancel({revert:!0}):O(this,ft).cancelRetry()),this.scheduleGc()),O(this,Qt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ut(this,gn,cr).call(this,{type:"invalidate"})}
vendor: 13,738 bytes, line 151
151fetch(t,n){var u,c,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(O(this,ft))return O(this,ft).continueRetry(),O(this,ft).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(m=>m.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(ae(this,Vs,!0),r.signal)})},i=()=>{const h=yb(this.options,n),b=(()=>{const g={client:O(this,Bs),queryKey:this.queryKey,meta:this.meta};return s(g),g})();return ae(this,Vs,!1),this.options.persister?this.options.persister(h,b,this):h(b)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:O(this,Bs),state:this.state,fetchFn:i};return s(h),h})();(u=this.options.behavior)==null||u.onFetch(a,this),ae(this,Us,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&ut(this,gn,cr).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const l=h=>{var m,b,g,w;Cd(h)&&h.silent||ut(this,gn,cr).call(this,{type:"error",error:h}),Cd(h)||((b=(m=O(this,Qt).config).onError)==null||b.call(m,h,this),(w=(g=O(this,Qt).config).onSettled)==null||w.call(g,this.state.data,h,this)),this.scheduleGc()};return ae(this,ft,_b({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var m,b,g,w;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(y){l(y);return}(b=(m=O(this,Qt).config).onSuccess)==null||b.call(m,h,this),(w=(g=O(this,Qt).config).onSettled)==null||w.call(g,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,m)=>{ut(this,gn,cr).call(this,{type:"failed",failureCount:h,error:m})},onPause:()=>{ut(this,gn,cr).call(this,{type:"pause"})},onContinue:()=>{ut(this,gn,cr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),O(this,ft).start()}},to=new WeakMap,Us=new WeakMap,Qt=new WeakMap,Bs=new WeakMap,ft=new WeakMap,Ka=new WeakMap,Vs=new WeakMap,gn=new WeakSet,cr=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,...wN(r.data,this.options),fetchMeta:t.meta??null};case"success":return ae(this,Us,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 Cd(s)&&s.revert&&O(this,Us)?{...O(this,Us),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),xt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),O(this,Qt).notify({query:this,type:"updated",action:t})})},Ay);function wN(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xb(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function xN(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 $n,Dy,bN=(Dy=class extends Nc{constructor(t={}){super();xe(this,$n);this.config=t,ae(this,$n,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??qm(s,n);let o=this.get(i);return o||(o=new yN({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){O(this,$n).has(t.queryHash)||(O(this,$n).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=O(this,$n).get(t.queryHash);n&&(t.destroy(),n===t&&O(this,$n).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){xt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return O(this,$n).get(t)}getAll(){return[...O(this,$n).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>iv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>iv(t,r)):n}notify(t){xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){xt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){xt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},$n=new WeakMap,Dy),zn,gt,Ws,Un,Fr,Iy,_N=(Iy=class extends kb{constructor(t){super();xe(this,Un);xe(this,zn);xe(this,gt);xe(this,Ws);this.mutationId=t.mutationId,ae(this,gt,t.mutationCache),ae(this,zn,[]),this.state=t.state||kN(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){O(this,zn).includes(t)||(O(this,zn).push(t),this.clearGcTimeout(),O(this,gt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ae(this,zn,O(this,zn).filter(n=>n!==t)),this.scheduleGc(),O(this,gt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){O(this,zn).length||(this.state.status==="pending"?this.scheduleGc():O(this,gt).remove(this))}continue(){var t;return((t=O(this,Ws))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,l,u,c,f,h,m,b,g,w,y,p,v,_,S,C,E,A;const n=()=>{ut(this,Un,Fr).call(this,{type:"continue"})};ae(this,Ws,_b({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(F,$)=>{ut(this,Un,Fr).call(this,{type:"failed",failureCount:F,error:$})},onPause:()=>{ut(this,Un,Fr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>O(this,gt).canRun(this)}));const r=this.state.status==="pending",s=!O(this,Ws).canStart();try{if(r)n();else{ut(this,Un,Fr).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=O(this,gt).config).onMutate)==null?void 0:o.call(i,t,this));const $=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));$!==this.state.context&&ut(this,Un,Fr).call(this,{type:"pending",context:$,variables:t,isPaused:s})}const F=await O(this,Ws).start();return await((c=(u=O(this,gt).config).onSuccess)==null?void 0:c.call(u,F,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,F,t,this.state.context)),await((b=(m=O(this,gt).config).onSettled)==null?void 0:b.call(m,F,null,this.state.variables,this.state.context,this)),await((w=(g=this.options).onSettled)==null?void 0:w.call(g,F,null,t,this.state.context)),ut(this,Un,Fr).call(this,{type:"success",data:F}),F}catch(F){try{throw await((p=(y=O(this,gt).config).onError)==null?void 0:p.call(y,F,t,this.state.context,this)),await((_=(v=this.options).onError)==null?void 0:_.call(v,F,t,this.state.context)),await((C=(S=O(this,gt).config).onSettled)==null?void 0:C.call(S,void 0,F,this.state.variables,this.state.context,this)),await((A=(E=this.options).onSettled)==null?void 0:A.call(E,void 0,F,t,this.state.context)),F}finally{ut(this,Un,Fr).call(this,{type:"error",error:F})}}finally{O(this,gt).runNext(this)}}},zn=new WeakMap,gt=new WeakMap,Ws=new WeakMap,Un=new WeakSet,Fr=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),xt.batch(()=>{O(this,zn).forEach(r=>{r.onMutationUpdate(t)}),O(this,gt).notify({mutation:this,type:"updated",action:t})})},Iy);function kN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var pr,vn,Ya,My,SN=(My=class extends Nc{constructor(t={}){super();xe(this,pr);xe(this,vn);xe(this,Ya);this.config=t,ae(this,pr,new Set),ae(this,vn,new Map),ae(this,Ya,0)}build(t,n,r){const s=new _N({mutationCache:this,mutationId:++yl(this,Ya)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){O(this,pr).add(t);const n=zl(t);if(typeof n=="string"){const r=O(this,vn).get(n);r?r.push(t):O(this,vn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(O(this,pr).delete(t)){const n=zl(t);if(typeof n=="string"){const r=O(this,vn).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&O(this,vn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=zl(t);if(typeof n=="string"){const r=O(this,vn).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=zl(t);if(typeof n=="string"){const s=(r=O(this,vn).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(){xt.batch(()=>{O(this,pr).forEach(t=>{this.notify({type:"removed",mutation:t})}),O(this,pr).clear(),O(this,vn).clear()})}getAll(){return Array.from(O(this,pr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ov(n,r))}findAll(t={}){return this.getAll().filter(n=>ov(t,n))}notify(t){xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return xt.batch(()=>Promise.all(t.map(n=>n.continue().catch(pn))))}},pr=new WeakMap,vn=new WeakMap,Ya=new WeakMap,My);function zl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function uv(e){return{onFetch:(t,n)=>{var c,f,h,m,b;const r=t.options,s=(h=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],o=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const w=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},y=yb(t.options,t.fetchOptions),p=async(v,_,S)=>{if(g)return Promise.reject();if(_==null&&v.pages.length)return Promise.resolve(v);const E=(()=>{const J={client:t.client,queryKey:t.queryKey,pageParam:_,direction:S?"backward":"forward",meta:t.options.meta};return w(J),J})(),A=await y(E),{maxPages:F}=t.options,$=S?dN:cN;return{pages:$(v.pages,A,F),pageParams:$(v.pageParams,_,F)}};if(s&&i.length){const v=s==="backward",_=v?CN:cv,S={pages:i,pageParams:o},C=_(r,S);a=await p(S,C,v)}else{const v=e??i.length;do{const _=l===0?o[0]??r.initialPageParam:cv(r,a);if(l>0&&_==null)break;a=await p(a,_),l++}while(l<v)}return a};t.options.persister?t.fetchFn=()=>{var g,w;return(w=(g=t.options).persister)==null?void 0:w.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function cv(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 CN(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 Ue,Qr,Zr,no,ro,Xr,so,io,Ly,jN=(Ly=class{constructor(e={}){xe(this,Ue);xe(this,Qr);xe(this,Zr);xe(this,no);xe(this,ro);xe(this,Xr);xe(this,so);xe(this,io);ae(this,Ue,e.queryCache||new bN),ae(this,Qr,e.mutationCache||new SN),ae(this,Zr,e.defaultOptions||{}),ae(this,no,new Map),ae(this,ro,new Map),ae(this,Xr,0)}mount(){yl(this,Xr)._++,O(this,Xr)===1&&(ae(this,so,wb.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,Ue).onFocus())})),ae(this,io,Vu.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,Ue).onOnline())})))}unmount(){var e,t;yl(this,Xr)._--,O(this,Xr)===0&&((e=O(this,so))==null||e.call(this),ae(this,so,void 0),(t=O(this,io))==null||t.call(this),ae(this,io,void 0))}isFetching(e){return O(this,Ue).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return O(this,Qr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=O(this,Ue).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=O(this,Ue).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(th(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return O(this,Ue).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=O(this,Ue).get(r.queryHash),i=s==null?void 0:s.state.data,o=sN(t,i);if(o!==void 0)return O(this,Ue).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return xt.batch(()=>O(this,Ue).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=O(this,Ue).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=O(this,Ue);xt.batch(()=>
151{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=O(this,Ue);return xt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=xt.batch(()=>O(this,Ue).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(pn).catch(pn)}invalidateQueries(e,t={}){return xt.batch(()=>(O(this,Ue).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=xt.batch(()=>O(this,Ue).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(pn)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(pn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=O(this,Ue).build(this,t);return n.isStaleByTime(th(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(pn).catch(pn)}fetchInfiniteQuery(e){return e.behavior=uv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(pn).catch(pn)}ensureInfiniteQueryData(e){return e.behavior=uv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Vu.isOnline()?O(this,Qr).resumePausedMutations():Promise.resolve()}getQueryCache(){return O(this,Ue)}getMutationCache(){return O(this,Qr)}getDefaultOptions(){return O(this,Zr)}setDefaultOptions(e){ae(this,Zr,e)}setQueryDefaults(e,t){O(this,no).set(Ma(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...O(this,no).values()],n={};return t.forEach(r=>{La(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){O(this,ro).set(Ma(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...O(this,ro).values()],n={};return t.forEach(r=>{La(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...O(this,Zr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=qm(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===Km&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...O(this,Zr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){O(this,Ue).clear(),O(this,Qr).clear()}},Ue=new WeakMap,Qr=new WeakMap,Zr=new WeakMap,no=new WeakMap,ro=new WeakMap,Xr=new WeakMap,so=new WeakMap,io=new WeakMap,Ly),EN=x.createContext(void 0),TN=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(EN.Provider,{value:e,children:t}));/**
152 * @remix-run/router v1.23.0
153 *
154 * Copyright (c) Remix Software Inc.
155 *
156 * This source code is licensed under the MIT license found in the
157 * LICENSE.md file in the root directory of this source tree.
158 *
159 * @license MIT
160 */function Fa(){return Fa=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},Fa.apply(this,arguments)}var ts;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ts||(ts={}));const dv="popstate";function NN(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:a}=r.location;return rh("",{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:Wu(s)}return ON(t,n,null,e)}function Ge(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Sb(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function PN(){return Math.random().toString(36).substr(2,8)}function fv(e,t){return{usr:e.state,key:e.key,idx:t}}function rh(e,t,n,r){return n===void 0&&(n=null),Fa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?No(t):t,{state:n,key:t&&t.key||r||PN()})}function Wu(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 No(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 ON(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=ts.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(Fa({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){a=ts.Pop;let w=c(),y=w==null?null:w-u;u=w,l&&l({action:a,location:g.location,delta:y})}function h(w,y){a=ts.Push;let p=rh(g.location,w,y);u=c()+1;let v=fv(p,u),_=g.createHref(p);try{o.pushState(v,"",_)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(_)}i&&l&&l({action:a,location:g.location,delta:1})}function m(w,y){a=ts.Replace;let p=rh(g.location,w,y);u=c();let v=fv(p,u),_=g.createHref(p);o.replaceState(v,"",_),i&&l&&l({action:a,location:g.location,delta:0})}function b(w){let y=s.location.origin!=="null"?s.location.origin:s.location.href,p=typeof w=="string"?w:Wu(w);return p=p.replace(/ $/,"%20"),Ge(y,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,y)}let g={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(dv,f),l=w,()=>{s.removeEventListener(dv,f),l=null}},createHref(w){return t(s,w)},createURL:b,encodeLocation(w){let y=b(w);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:m,go(w){return o.go(w)}};return g}var hv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(hv||(hv={}));function RN(e,t,n){return n===void 0&&(n="/"),AN(e,t,n,!1)}function AN(e,t,n,r){let s=typeof t=="string"?No(t):t,i=Ym(s.pathname||"/",n);if(i==null)return null;let o=Cb(e);DN(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=HN(i);a=VN(o[l],u,r)}return a}function Cb(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("/")&&(Ge(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not val
160id. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=ds([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(Ge(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Cb(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:UN(u,i.index),routesMeta:c})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let l of jb(i.path))s(i,o,l)}),t}function jb(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=jb(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 DN(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:BN(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const IN=/^:[\w-]+$/,MN=3,LN=2,FN=1,$N=10,zN=-2,mv=e=>e==="*";function UN(e,t){let n=e.split("/"),r=n.length;return n.some(mv)&&(r+=zN),t&&(r+=LN),n.filter(s=>!mv(s)).reduce((s,i)=>s+(IN.test(i)?MN:i===""?FN:$N),r)}function BN(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 VN(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=i==="/"?t:t.slice(i.length)||"/",f=pv({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),h=l.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=pv({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!f)return null;
vendor: 9,412 bytes, lines 160-169
160Object.assign(s,f.params),o.push({params:s,pathname:ds([i,f.pathname]),pathnameBase:GN(ds([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=ds([i,f.pathnameBase]))}return o}function pv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=WN(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((u,c,f)=>{let{paramName:h,isOptional:m}=c;if(h==="*"){let g=a[f]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const b=a[f];return m&&!b?u[h]=void 0:u[h]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function WN(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Sb(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 HN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Sb(!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 Ym(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 qN(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?No(e):e;return{pathname:n?n.startsWith("/")?n:KN(n,t):t,search:QN(r),hash:ZN(s)}}function KN(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 jd(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 YN(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Eb(e,t){let n=YN(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Tb(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=No(e):(s=Fa({},e),Ge(!s.pathname||!s.pathname.includes("?"),jd("?","pathname","search",s)),Ge(!s.pathname||!s.pathname.includes("#"),jd("#","pathname","hash",s)),Ge(!s.search||!s.search.includes("#"),jd("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;s.pathname=h.join("/")}a=f>=0?t[f]:"/"}let l=qN(s,a),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const ds=e=>e.join("/").replace(/\/\/+/g,"/"),GN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),QN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ZN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function XN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Nb=["post","put","patch","delete"];new Set(Nb);const JN=["get",...Nb];new Set(JN);/**
161 * React Router v6.30.1
162 *
163 * Copyright (c) Remix Software Inc.
164 *
165 * This source code is licensed under the MIT license found in the
166 * LICENSE.md file in the root directory of this source tree.
167 *
168 * @license MIT
169 */function $a(){return $a=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},$a.apply(this,arguments)}const Gm=x.createContext(null),eP=x.createContext(null),oi=x.createContext(null),Oc=x.createContext(null),ai=x.createContext({outlet:null,matches:[],isDataRoute:!1}),Pb=x.createContext(null);function tP(e,t){let{relative:n}=t===void 0?{}:t;il()||Ge(!1);let{basename:r,navigator:s}=x.useContext(oi),{hash:i,pathname:o,search:a}=Rb(e,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:ds([r,o])),s.createHref({pathname:l,search:a,hash:i})}function il(){return x.useContext(Oc)!=null}function li(){return il()||Ge(!1),x.useContext(Oc).location}function Ob(e){x.useContext(oi).static||x.useLayoutEffect(e)}function Qm(){let{isDataRoute:e}=x.useContext(ai);return e?mP():nP()}function nP(){il()||Ge(!1);let e=x.useContext(Gm),{basename:t,future:n,navigator:r}=x.useContext(oi),{matches:s}=x.useContext(ai),{pathname:i}=li(),o=JSON.stringify(Eb(s,n.v7_relativeSplatPath)),a=x.useRef(!1);return Ob(()=>{a.current=!0}),x.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let f=Tb(u,JSON.parse(o),i,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:ds([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,o,i,e])}function Rb(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=x.useContext(oi),{matches:s}=x.useContext(ai),{pathname:i}=li(),o=JSON.stringify(Eb(s,r.v7_relativeSplatPath));return x.useMemo(()=>Tb(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function rP(e,t){return sP(e,t)}function sP(e,t,n,r){il()||Ge(!1);let{navigator:s}=x.useContext(oi),{matches:i}=x.useContext(ai),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=li(),c;if(t){var f;let w=typeof t=="string"?No(t):t;l==="/"||(f=w.pathname)!=null&&f.startsWith(l)||Ge(!1),c=w}else c=u;let h=c.pathname||"/",m=h;if(l!=="/"){let w=l.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(w.length).join("/")}let b=RN(e,{pathname:m}),g=uP(b&&b.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:ds([l,s.encodeLocation?s.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:ds([l,s.encodeLocation?s.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&g?x.createElement(Oc.Provider,{value:{location:$a({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:ts.Pop}},g):g}function iP(){let e=hP(),t=XN(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 x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:s},n):null,null)}const oP=x.createElement(iP,null);class aP extends x.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?x.createElement(ai.Provider,{value:this.props.routeContext},x.createElement(Pb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function lP(e){let{routeContext:t,match:n,children:r}=e,s=x.useContext(Gm);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(ai.Provider,{value:t},r)}function uP(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 c=o.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);c>=0||Ge(!1),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<o.length;c++){let f=o[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=c),f.route.id){let{loaderData:h,errors:m}=n,b=f.route.loader&&h[f.route.id]===void 0&&(!m||m[f.route.id]===void 0);if(f.route.lazy||b){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,f,h)=>{let m,b=!1,g=null,w=null;n&&(m=a&&f.route.id?a[f.route.id]:void 0,g=f.route.errorElement||oP,l&&(u<0&&h===0?(b=!0,w=null):u===h&&(b=!0,w=f.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,h+1)),p=()=>{let v;return m?v=g:b?v=w:f.route.Component?v=x.createElement(f.route.Component,null):f.route.element?v=f.route.element:v=c,x.createElement(lP,{match:f,routeContext:{outlet:c,matches:y,isDataRoute:n!=null},children:v})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?x.createElement(aP,{location:n.location,revalidation:n.revalidation,component:g,error:m,children:p(),routeC
169ontext:{outlet:null,matches:y,isDataRoute:!0}}):p()},null)}var Ab=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ab||{}),Hu=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}(Hu||{});function cP(e){let t=x.useContext(Gm);return t||Ge(!1),t}function dP(e){let t=x.useContext(eP);return t||Ge(!1),t}function fP(e){let t=x.useContext(ai);return t||Ge(!1),t}function Db(e){let t=fP(),n=t.matches[t.matches.length-1];return n.route.id||Ge(!1),n.route.id}function hP(){var e;let t=x.useContext(Pb),n=dP(Hu.UseRouteError),r=Db(Hu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function mP(){let{router:e}=cP(Ab.UseNavigateStable),t=Db(Hu.UseNavigateStable),n=x.useRef(!1);return Ob(()=>{n.current=!0}),x.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,$a({fromRouteId:t},i)))},[e,t])}function pP(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function $r(e){Ge(!1)}function gP(e){let{basename:t="/",children:n=null,location:r,navigationType:s=ts.Pop,navigator:i,static:o=!1,future:a}=e;il()&&Ge(!1);let l=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:l,navigator:i,static:o,future:$a({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof r=="string"&&(r=No(r));let{pathname:c="/",search:f="",hash:h="",state:m=null,key:b="default"}=r,g=x.useMemo(()=>{let w=Ym(c,l);return w==null?null:{location:{pathname:w,search:f,hash:h,state:m,key:b},navigationType:s}},[l,c,f,h,m,b,s]);return g==null?null:x.createElement(oi.Provider,{value:u},x.createElement(Oc.Provider,{children:n,value:g}))}function vP(e){let{children:t,location:n}=e;return rP(sh(t),n)}new Promise(()=>{});function sh(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,s)=>{if(!x.isValidElement(r))return;let i=[...t,s];if(r.type===x.Fragment){n.push.apply(n,sh(r.props.children,i));return}r.type!==$r&&Ge(!1),!r.props.index||!r.props.children||Ge(!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=sh(r.props.children,i)),n.push(o)}),n}/**
170 * React Router DOM v6.30.1
171 *
172 * Copyright (c) Remix Software Inc.
173 *
174 * This source code is licensed under the MIT license found in the
175 * LICENSE.md file in the root directory of this source tree.
176 *
177 * @license MIT
178 */function ih(){return ih=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},ih.apply(this,arguments)}function yP(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 wP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function xP(e,t){return e.button===0&&(!t||t==="_self")&&!wP(e)}function oh(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function bP(e,t){let n=oh(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(i=>{n.append(s,i)})}),n}const _P=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],kP="6";try{window.__reactRouterVersion=kP}catch{}const SP="startTransition",gv=Rh[SP];function CP(e){let{basename:t,children:n,future:r,window:s}=e,i=x.useRef();i.current==null&&(i.current=NN({window:s,v5Compat:!0}));let o=i.current,[a,l]=x.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=x.useCallback(f=>{u&&gv?gv(()=>l(f)):l(f)},[l,u]);return x.useLayoutEffect(()=>o.listen(c),[o,c]),x.useEffect(()=>pP(r),[r]),x.createElement(gP,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const jP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",EP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ib=x.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:l,to:u,preventScrollReset:c,viewTransition:f}=t,h=yP(t,_P),{basename:m}=x.useContext(oi),b,g=!1;if(typeof u=="string"&&EP.test(u)&&(b=u,jP))try{let v=new URL(window.location.href),_=u.startsWith("//")?new URL(v.protocol+u):new URL(u),S=Ym(_.pathname,m);_.origin===v.origin&&S!=null?u=S+_.search+_.hash:g=!0}catch{}let w=tP(u,{relative:s}),y=TP(u,{replace:o,state:a,target:l,preventScrollReset:c,relative:s,viewTransition:f});function p(v){r&&r(v),v.defaultPrevented||y(v)}return x.createElement("a",ih({},h,{href:b||w,onClick:g||i?r:p,ref:n,target:l}))});var vv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(vv||(vv={}));var yv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(yv||(yv={}));function TP(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,l=Qm(),u=li(),c=Rb(e,{relative:o});return x.useCallback(f=>{if(xP(f,n)){f.preventDefault();let h=r!==void 0?r:Wu(u)===Wu(c);l(e,{replace:h,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[u,l,c,r,s,n,e,i,o,a])}function NP(e){let t=x.useRef(oh(e)),n=x.useRef(!1),r=li(),s=x.useMemo(()=>bP(r.search,n.current?null:t.current),[r.search]),i=Qm(),o=x.useCallback((a,l)=>{const u=oh(typeof a=="function"?a(s):a);n.current=!0,i("?"+u,l)},[i,s]);return[s,o]}const PP="modulepreload",OP=function(e){return"/"+e},wv={},ol=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=OP(l),l in wv)return;wv[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":PP,u||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((h,m)=>{f.addEventListener("load",h),f.addEventListener("error",()=>m(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)})},RP=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>ol(async()=>{const{default:r}=await Promise.resolve().then(()=>Po);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};
178class Zm extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class AP extends Zm{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class xv extends Zm{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class bv extends Zm{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var ah;(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"})(ah||(ah={}));var DP=function(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(c){try{u(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class IP{constructor(t,{headers:n={},customFetch:r,region:s=ah.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=RP(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var r;return DP(this,void 0,void 0,function*(){try{const{headers:s,method:i,body:o}=n;let a={},{region:l}=n;l||(l=this.region);const u=new URL(`${this.url}/${t}`);l&&l!=="any"&&(a["x-region"]=l,u.searchParams.set("forceFunctionRegion",l));let c;o&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",c=o):typeof o=="string"?(a["Content-Type"]="text/plain",c=o):typeof FormData<"u"&&o instanceof FormData?c=o:(a["Content-Type"]="application/json",c=JSON.stringify(o)));const f=yield this.fetch(u.toString(),{method:i||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),s),body:c}).catch(g=>{throw new AP(g)}),h=f.headers.get("x-relay-error");if(h&&h==="true")throw new xv(f);if(!f.ok)throw new bv(f);let m=((r=f.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),b;return m==="application/json"?b=yield f.json():m==="application/octet-stream"?b=yield f.blob():m==="text/event-stream"?b=f:m==="multipart/form-data"?b=yield f.formData():b=yield f.text(),{data:b,error:null,response:f}}catch(s){return{data:null,error:s,response:s instanceof bv||s instanceof xv?s.context:void 0}}})}}var Tt={},Xm={},Rc={},al={},Ac={},Dc={},MP=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},go=MP();const LP=go.fetch,Mb=go.fetch.bind(go),Lb=go.Headers,FP=go.Request,$P=go.Response,Po=Object.freeze(Object.defineProperty({__proto__:null,Headers:Lb,Request:FP,Response:$P,default:Mb,fetch:LP},Symbol.toStringTag,{value:"Module"})),zP=w1(Po);var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0});let UP=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
178de=t.code}};Ic.default=UP;var Fb=nn&&nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dc,"__esModule",{value:!0});const BP=Fb(zP),VP=Fb(Ic);let WP=class{constructor(t){var n,r;this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(n=t.shouldThrowOnError)!==null&&n!==void 0?n:!1,this.signal=t.signal,this.isMaybeSingle=(r=t.isMaybeSingle)!==null&&r!==void 0?r:!1,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=BP.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,n){return this.headers=new Headers(this.headers),this.headers.set(t,n),this}then(t,n){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=>{var o,a,l,u;let c=null,f=null,h=null,m=i.status,b=i.statusText;if(i.ok){if(this.method!=="HEAD"){const p=await i.text();p===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((o=this.headers.get("Accept"))===null||o===void 0)&&o.includes("application/vnd.pgrst.plan+text"))?f=p:f=JSON.parse(p))}const w=(a=this.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),y=(l=i.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");w&&y&&y.length>1&&(h=parseInt(y[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(f)&&(f.length>1?(c={code:"PGRST116",details:`Results contain ${f.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},f=null,h=null,m=406,b="Not Acceptable"):f.length===1?f=f[0]:f=null)}else{const w=await i.text();try{c=JSON.parse(w),Array.isArray(c)&&i.status===404&&(f=[],c=null,m=200,b="OK")}catch{i.status===404&&w===""?(m=204,b="No Content"):c={message:w}}if(c&&this.isMaybeSingle&&(!((u=c==null?void 0:c.details)===null||u===void 0)&&u.includes("0 rows"))&&(c=null,m=200,b="OK"),c&&this.shouldThrowOnError)throw new VP.default(c)}return{error:c,data:f,count:h,status:m,statusText:b}});return this.shouldThrowOnError||(s=s.catch(i=>{var o,a,l;return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:`${(a=i==null?void 0:i.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=i==null?void 0:i.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),s.then(t,n)}returns(){return this}overrideTypes(){return this}};Dc.default=WP;var HP=nn&&nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ac,"__esModule",{value:!0});const qP=HP(Dc);let KP=class extends qP.default{select(t){let n=!1;const r=(t??"*").split("").map(s=>/\s/.test(s)&&!n?"":(s==='"'&&(n=!n),s)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:n=!0,nullsFirst:r,foreignTable:s,referencedTable:i=s}={}){const o=i?`${i}.order`:"order",a=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${a?`${a},`:""}${t}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${t}`),this}range(t,n,{foreignTable:r,referencedTable:s=r}={}){const i=typeof s>"u"?"offset":`${s}.offset`,o=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(i,`${t}`),this.url.searchParams.set(o,`${n-t+1}`),this}abortSignal(t){return this.signal=t,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}
178explain({analyze:t=!1,verbose:n=!1,settings:r=!1,buffers:s=!1,wal:i=!1,format:o="text"}={}){var a;const l=[t?"analyze":null,n?"verbose":null,r?"settings":null,s?"buffers":null,i?"wal":null].filter(Boolean).join("|"),u=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${u}"; options=${l};`),o==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};Ac.default=KP;var YP=nn&&nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(al,"__esModule",{value:!0});const GP=YP(Ac);let QP=class extends GP.default{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const r=Array.from(new Set(n)).map(s=>typeof s=="string"&&new RegExp("[,()]").test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:r,type:s}={}){let i="";s==="plain"?i="pl":s==="phrase"?i="ph":s==="websearch"&&(i="w");const o=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${i}fts${o}.${n}`),this}match(t){return Object.entries(t).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(t,n,r){return this.url.searchParams.append(t,`not.${n}.${r}`),this}or(t,{foreignTable:n,referencedTable:r=n}={}){const s=r?`${r}.or`:"or";return this.url.searchParams.append(s,`(${t})`),this}filter(t,n,r){return this.url.searchParams.append(t,`${n}.${r}`),this}};al.default=QP;var ZP=nn&&nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rc,"__esModule",{value:!0});const Vo=ZP(al);let XP=class{constructor(t,{headers:n={},schema:r,fetch:s}){this.url=t,this.headers=new Headers(n),this.schema=r,this.fetch=s}select(t,{head:n=!1,count:r}={}){const s=n?"HEAD":"GET";let i=!1;const o=(t??"*").split("").map(a=>/\s/.test(a)&&!i?"":(a==='"'&&(i=!i),a)).join("");return this.url.searchParams.set("select",o),r&&this.headers.append("Prefer",`count=${r}`),new Vo.default({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(t,{count:n,defaultToNull:r=!0}={}){var s;const i="POST";if(n&&this.headers.append("Prefer",`count=${n}`),r||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const o=t.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(o.length>
1780){const a=[...new Set(o)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new Vo.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}upsert(t,{onConflict:n,ignoreDuplicates:r=!1,count:s,defaultToNull:i=!0}={}){var o;const a="POST";if(this.headers.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),n!==void 0&&this.url.searchParams.set("on_conflict",n),s&&this.headers.append("Prefer",`count=${s}`),i||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const l=t.reduce((u,c)=>u.concat(Object.keys(c)),[]);if(l.length>0){const u=[...new Set(l)].map(c=>`"${c}"`);this.url.searchParams.set("columns",u.join(","))}}return new Vo.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}update(t,{count:n}={}){var r;const s="PATCH";return n&&this.headers.append("Prefer",`count=${n}`),new Vo.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}delete({count:t}={}){var n;const r="DELETE";return t&&this.headers.append("Prefer",`count=${t}`),new Vo.default({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}};Rc.default=XP;var $b=nn&&nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xm,"__esModule",{value:!0});const JP=$b(Rc),eO=$b(al);let tO=class zb{constructor(t,{headers:n={},schema:r,fetch:s}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.fetch=s}from(t){const n=new URL(`${this.url}/${t}`);return new JP.default(n,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new zb(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let u;r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([f,h])=>h!==void 0).map(([f,h])=>[f,Array.isArray(h)?`{${h.join(",")}}`:`${h}`]).forEach(([f,h])=>{l.searchParams.append(f,h)})):(a="POST",u=n);const c=new Headers(this.headers);return i&&c.set("Prefer",`count=${i}`),new eO.default({method:a,url:l,headers:c,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};Xm.default=tO;var Oo=nn&&nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.PostgrestError=Tt.PostgrestBuilder=Tt.PostgrestTransformBuilder=Tt.PostgrestFilterBuilder=Tt.PostgrestQueryBuilder=Tt.PostgrestClient=void 0;const Ub=Oo(Xm);Tt.PostgrestClient=Ub.default;const Bb=Oo(Rc);Tt.PostgrestQueryBuilder=Bb.default;const Vb=Oo(al);Tt.PostgrestFilterBuilder=Vb.default;const Wb=Oo(Ac);Tt.PostgrestTransformBuilder=Wb.default;const Hb=Oo(Dc);Tt.PostgrestBuilder=Hb.default;const qb=Oo(Ic);Tt.PostgrestError=qb.default;var nO=Tt.default={PostgrestClient:Ub.default,PostgrestQueryBuilder:Bb.default,PostgrestFilterBuilder:Vb.default,PostgrestTransformBuilder:Wb.default,PostgrestBuilder:Hb.default,PostgrestError:qb.default};const{PostgrestClient:rO,PostgrestQueryBuilder:NL,PostgrestFilterBuilder:PL,PostgrestTransformBuilder:OL,PostgrestBuilder:RL,PostgrestError:AL}=nO;class sO{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."};if(typeof process<"u"){const n=process.versions;if(n&&n.node){const r=n.node,s=parseInt(r.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
179import ws from "ws"
180new 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+=`
181
182Suggested 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 iO="2.15.5",oO=`realtime-js/${iO}`,aO="1.0.0",lh=1e4,lO=1e3,uO=100;var da;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(da||(da={}));var Qe;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Qe||(Qe={}));var wn;(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"})(wn||(wn={}));var uh;(function(e){e.websocket="websocket"})(uh||(uh={}));var Ds;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Ds||(Ds={}));class cO{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2);let o=this.HEADER_LENGTH+2;const a=r.decode(t.slice(o,o+s));o=o+s;const l=r.decode(t.slice(o,o+i));o=o+i;const u=JSON.parse(r.decode(t.slice(o,t.byteLength)));return{ref:null,topic:a,event:l,payload:u}}}class Kb{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 Ee;(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"})(Ee||(Ee={}));const _v=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((i,o)=>(i[o]=dO(o,e,t,s),i),{})},dO=(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)?Yb(i,o):ch(o)},Yb=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return pO(t,n)}switch(e){case Ee.bool:return fO(t);case Ee.float4:case Ee.float8:case Ee.int2:case Ee.int4:case Ee.int8:case Ee.numeric:case Ee.oid:return hO(t);case Ee.json:case Ee.jsonb:return mO(t);case Ee.timestamp:return gO(t);case Ee.abstime:case Ee.date:case Ee.daterange:case Ee.int4range:case Ee.int8range:case Ee.money:case Ee.reltime:case Ee.text:case Ee.time:case Ee.timestamptz:case Ee.timetz:case Ee.tsrange:case Ee.tstzrange:return ch(t);default:return ch(t)}},ch=e=>e,fO=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},hO=e=>{if(typeof e=="string"){const t=parseFloat(e);
vendor: 14,647 bytes, lines 182-187
182if(!Number.isNaN(t))return t}return e},mO=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},pO=(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=>Yb(t,a))}return e},gO=e=>typeof e=="string"?e.replace(" ","T"):e,Gb=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"};class Ed{constructor(t,n,r={},s=lh){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 kv;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(kv||(kv={}));class fa{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=fa.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=fa.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=fa.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,(u,c)=>{o[u]||(l[u]=c)}),this.map(o,(u,c)=>{const f=i[u];if(f){const h=c.map(w=>w.presence_ref),m=f.map(w=>w.presence_ref),b=c.filter(w=>m.indexOf(w.presence_ref)<0),g=f.filter(w=>h.indexOf(w.presence_ref)<0);b.length>0&&(a[u]=b),g.length>0&&(l[u]=g)}else a[u]=c}),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 u;const c=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(l),c.length>0){const f=t[a].map(m=>m.presence_ref),h=c.filter(m=>f.indexOf(m.presence_ref)<0);t[a].unshift(...h)}r(a,c,l)}),this.map(o,(a,l)=>{let u=t[a];if(!u)return;const c=l.map(f=>f.presence_ref);u=u.filter(f=>c.indexOf(f.presence_ref)<0),t[a]=u,s(a,u,l),u.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 Sv;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Sv||(Sv={}));var ha;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(ha||(ha={}));var hr;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(hr||(hr={}));class Jm{constructor(t,n={config:{}},r){this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Qe.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 Ed(this,wn.join,this.params,this.timeout),this.rejoinTimer=new Kb(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Qe.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Qe.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=Qe.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Qe.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=Qe.errored,this.rejoinTimer.scheduleTimeout())}),this._on(wn.reply,{},(s,i)=>{this._trigger(this._replyEventName(i),s)}),this.presence=new fa(this),this.broadcastEndpointURL=Gb(this.socket.endPoint),this.private=this.params.config.private||!1}subscribe(t,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==Qe.closed){const{config:{broadcast:o,presence:a,private:l}}=this.params,u=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(m=>m.filter))!==null&&s!==void 0?s:[],c=!!this.bindings[ha.PRESENCE]&&this.bindings[ha.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,f={},h={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:c}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(f.access_token=this.socket.accessTokenValue),this._onError(m=>t==null?void 0:t(hr.CHANNEL_ERROR,m)),this._onClose(()=>t==null?void 0:t(hr.CLOSED)),this.updateJoinPayload(Object.assign({config:h},f)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:m})=>{var b;if(this.socket.setAuth(),m===void 0){t==null||t(hr.SUBSCRIBED);return}else{const g=this.bindings.postgres_changes,w=(b=g==null?void 0:g.length)!==null&&b!==void 0?b:0,y=[];for(let p=0;p<w;p++){const v=g[p],{filter:{event:_,schema:S,table:C,filter:E}}=v,A=m&&m[p];if(A&&A.event===_&&A.schema===S&&A.table===C&&A.filter===E)y.push(Object.assign(Object.assign({},v),{id:A.id}));else{this.unsubscribe(),this.state=Qe.errored,t==null||t(hr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=y,t&&t(hr.SUBSCRIBED);return}}).receive("error",m=>{this.state=Qe.errored,t==null||t(hr.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(m).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(hr.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===Qe.joined&&t===ha.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(t,n,r)}async send(t,n={}){var r,s;if(!this._canPush()&&t.type==="broadcast"){const{event:i,payload:o}=t,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const u=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"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Qe.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(wn.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new Ed(this,wn.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=Qe.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 Ed(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>uO){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:u,join:c}=wn;if(r&&[a,l,u,c].indexOf(o)>=0&&r!==this._joinRef())return;let h=this._onMessage(o,n,r);if(n&&!h)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(m=>{var b,g,w;return((b=m.filter)===null||b===void 0?void 0:b.event)==="*"||((w=(g=m.filter)===null||g===void 0?void 0:g.event)===null||w===void 0?void 0:w.toLocaleLowerCase())===o}).map(m=>m.callback(h,r)):(i=this.bindings[o])===null||i===void 0||i.filter(m=>{var b,g,w,y,p,v;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in m){const _=m.id,S=(b=m.filter)===null||b===void 0?void 0:b.event;return _&&((g=n.ids)===null||g===void 0?void 0:g.includes(_))&&(S==="*"||(S==null?void 0:S.toLocaleLowerCase())===((w=n.data)===null||w===void 0?void 0:w.type.toLocaleLowerCase()))}else{const _=(p=(y=m==null?void 0:m.filter)===null||y===void 0?void 0:y.event)===null||p===void 0?void 0:p.toLocaleLowerCase();return _==="*"||_===((v=n==null?void 0:n.event)===null||v===void 0?void 0:v.toLocaleLowerCase())}else return m.type.toLocaleLowerCase()===o}).map(m=>{if(typeof h=="object"&&"ids"in h){const b=h.data,{schema:g,table:w,commit_timestamp:y,type:p,errors:v}=b;h=Object.assign(Object.assign({},{schema:g,table:w,commit_timestamp:y,eventType:p,new:{},old:{},errors:v}),this._getPayloadRecords(b))}m.callback(h,r)})}_isClosed(){return this.state===Qe.closed}_isJoined(){return this.state===Qe.joined}_isJoining(){return this.state===Qe.joining}_isLeaving(){return this.state===Qe.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&&Jm.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}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(wn.close,{},t)}_onError(t){this._on(wn.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Qe.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=_v(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=_v(t.columns,t.old_record)),n}}const Td=()=>{},Ul={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},vO=[1e3,2e3,5e3,1e4],yO=1e4,wO=`
183  addEventListener("message", (e) => {
184    if (e.data.event === "start") {
185      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
186    }
187  });`;class xO{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=lh,this.transport=null,this.heartbeatIntervalMs=Ul.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Td,this.ref=0,this.reconnectTimer=null,this.logger=Td,this.conn=null,this.sendBuffer=[],this.serializer
187=new cO,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>{let i;return s?i=s:typeof fetch>"u"?i=(...o)=>ol(async()=>{const{default:a}=await Promise.resolve().then(()=>Po);return{default:a}},void 0).then(({default:a})=>a(...o)).catch(a=>{throw new Error(`Failed to load @supabase/node-fetch: ${a.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):i=fetch,(...o)=>i(...o)},!(!((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}/${uh.websocket}`,this.httpEndpoint=Gb(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._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=sO.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
188
189To use Realtime in Node.js, you need to provide a WebSocket implementation:
190
191Option 1: Use Node.js 22+ which has native WebSocket support
192Option 2: Install and provide the "ws" package:
193
194  npm install ws
195
196  import ws from "ws"
197  const client = new RealtimeClient(url, {
198    ...options,
199    transport: ws
200  })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:aO}))}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")},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 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 da.connecting:return Ds.Connecting;case da.open:return Ds.Open;case da.closing:return Ds.Closing;default:return Ds.Closed}}isConnected(){return this.connectionState()===Ds.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 Jm(`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}}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.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(lO,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Ul.HEARTBEAT_TIMEOUT_FALLBACK);return}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=>
200{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(u){this.log("error","error in heartbeat callback",u)}n.ref&&n.ref===this.pendingHeartbeatRef&&(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(u=>u._isMember(r)).forEach(u=>u._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))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),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.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_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)}_triggerChanError(){this.channels.forEach(t=>t._trigger(wn.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([wO],{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;t?n=t:this.accessToken?n=await this.accessToken():n=this.accessTokenValue,this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(r=>{const s={access_token:n,version:oO};n&&r.updateJoinPayload(s),r.joinedOnce&&r._isJoined()&&r._push(wn.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){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 Kb(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Ul.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,s,i,o,a,l,u,c;if(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.t
200imeout)!==null&&r!==void 0?r:lh,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:Ul.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:Td,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=(l=t==null?void 0:t.reconnectAfterMs)!==null&&l!==void 0?l:f=>vO[f-1]||yO,this.encode=(u=t==null?void 0:t.encode)!==null&&u!==void 0?u:(f,h)=>h(JSON.stringify(f)),this.decode=(c=t==null?void 0:t.decode)!==null&&c!==void 0?c:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}class ep extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Xe(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class bO extends ep{constructor(t,n,r){super(t),this.name="StorageApiError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class dh extends ep{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var _O=function(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(c){try{u(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const Qb=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>ol(async()=>{const{default:r}=await Promise.resolve().then(()=>Po);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},kO=()=>_O(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield ol(()=>Promise.resolve().then(()=>Po),void 0)).Response:Response}),fh=e=>{if(Array.isArray(e))return e.map(n=>fh(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]=fh(r)}),t},SO=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)};var ui=function(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(c){try{u(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const Nd=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),CO=(e,t,n)=>ui(void 0,void 0,void 0,function*(){const r=yield kO();e instanceof r&&!(n!=null&&n.noResolveJson)?e.json().then(s=>{const i=e.status||500,o=(s==null?void 0:s.statusCode)||i+"";t(new bO(Nd(s),i,o))}).catch(s=>{t(new dh(Nd(s),s))}):t(new dh(Nd(e),e))}),jO=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!r?s:(SO(r)?(s.headers=Object.assign({"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),Object.assign(Object.assign({},s),n))};function ll(e,t,n,r,s,i){return ui(this,void 0,void 0,function*(){return new Promise((o,a)=>{e(n,jO(t,r,s,i)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>CO(l,a,r))})})}function qu(e,t,n,r){return ui(this,void 0,void 0,function*(){return ll(e,"GET",t,n,r)})}function Fn(e,t,n,r,s){return ui(this,void 0,void 0,function*(){return ll(e,"POST",t,r,s,n)})}function hh(e,t,n,r,s){return ui(this,void 0,void 0,function*(){return ll(e,"PUT",t,r,s,n)})}function EO(e,t,n,r){return ui(this,void 0,void 0,function*(){return ll(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}
200function Zb(e,t,n,r,s){return ui(this,void 0,void 0,function*(){return ll(e,"DELETE",t,r,s,n)})}var pt=function(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(c){try{u(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const TO={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Cv={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class NO{constructor(t,n={},r,s){this.shouldThrowOnError=!1,this.url=t,this.headers=n,this.bucketId=r,this.fetch=Qb(s)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(t,n,r,s){return pt(this,void 0,void 0,function*(){try{let i;const o=Object.assign(Object.assign({},Cv),s);let a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&r instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",this.encodeMetadata(l)),i.append("",r)):typeof FormData<"u"&&r instanceof FormData?(i=r,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",this.encodeMetadata(l))):(i=r,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),s!=null&&s.headers&&(a=Object.assign(Object.assign({},a),s.headers));const u=this._removeEmptyFolders(n),c=this._getFinalPath(u),f=yield(t=="PUT"?hh:Fn)(this.fetch,`${this.url}/object/${c}`,i,Object.assign({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:u,id:f.Id,fullPath:f.Key},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Xe(i))return{data:null,error:i};throw i}})}upload(t,n,r){return pt(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,s){return pt(this,void 0,void 0,function*(){const i=this._removeEmptyFolders(t),o=this._getFinalPath(i),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",n);try{let l;const u=Object.assign({upsert:Cv.upsert},s),c=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",u.cacheControl)):(l=r,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType);const f=yield hh(this.fetch,a.toString(),l,{headers:c});return{data:{path:i,fullPath:f.Key},error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(Xe(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t,n){return pt(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const s=Object.assign({},this.headers);n!=null&&n.upsert&&(s["x-upsert"]="true");const i=yield Fn(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:s}),o=new URL(this.url+i.url),a=o.searchParams.get("token");if(!a)throw new ep("No token returned by API");return{data:{signedUrl:o.toString(),path:t,token:a},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Xe(r))return{data:null,error:r};throw r}})}update(t,n,r){return pt(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n,r){return pt(this,void 0,void 0,function*(){try{return{data:yield Fn(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Xe(s))return{data:null,error:s};throw s}})}copy(t,n,r){return pt(this,void 0,void 0,function*(){try{return{data:{path:(yield Fn(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Xe(s))return{data:null,error:s};throw s}})}createSignedUrl(t,n,r){return pt(this,void 0,void 0,function*(){try{let s=this._getFinalPath(t),i=yield Fn(this.fetch,`${this.url}/object/sign/${s}
200`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return i={signedUrl:encodeURI(`${this.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Xe(s))return{data:null,error:s};throw s}})}createSignedUrls(t,n,r){return pt(this,void 0,void 0,function*(){try{const s=yield Fn(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:s.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${i}`):null})),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Xe(s))return{data:null,error:s};throw s}})}download(t,n){return pt(this,void 0,void 0,function*(){const s=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),o=i?`?${i}`:"";try{const a=this._getFinalPath(t);return{data:yield(yield qu(this.fetch,`${this.url}/${s}/${a}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Xe(a))return{data:null,error:a};throw a}})}info(t){return pt(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{const r=yield qu(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:fh(r),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Xe(r))return{data:null,error:r};throw r}})}exists(t){return pt(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{return yield EO(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Xe(r)&&r instanceof dh){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}})}getPublicUrl(t,n){const r=this._getFinalPath(t),s=[],i=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";i!==""&&s.push(i);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&s.push(l);let u=s.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${u}`)}}}remove(t){return pt(this,void 0,void 0,function*(){try{return{data:yield Zb(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Xe(n))return{data:null,error:n};throw n}})}list(t,n,r){return pt(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},TO),n),{prefix:t||""});return{data:yield Fn(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},r),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Xe(s))return{data:null,error:s};throw s}})}listV2(t,n){return pt(this,void 0,void 0,function*(){try{const r=Object.assign({},t);return{data:yield Fn(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,r,{headers:this.headers},n),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Xe(r))return{data:null,error:r};throw r}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const PO="2.12.1",OO={"X-Client-Info":`storage-js/${PO}`};var mi=function(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(c){try{u(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class RO{constructor(t,n={},r,s){this.shouldThrowOnError=!1;const i=new URL(t);s!=null&&s.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase.")),this.url=i.href,this.headers=Object.assign(Object.assign({}
200,OO),n),this.fetch=Qb(r)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(){return mi(this,void 0,void 0,function*(){try{return{data:yield qu(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Xe(t))return{data:null,error:t};throw t}})}getBucket(t){return mi(this,void 0,void 0,function*(){try{return{data:yield qu(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Xe(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return mi(this,void 0,void 0,function*(){try{return{data:yield Fn(this.fetch,`${this.url}/bucket`,{id:t,name:t,type:n.type,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Xe(r))return{data:null,error:r};throw r}})}updateBucket(t,n){return mi(this,void 0,void 0,function*(){try{return{data:yield hh(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Xe(r))return{data:null,error:r};throw r}})}emptyBucket(t){return mi(this,void 0,void 0,function*(){try{return{data:yield Fn(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Xe(n))return{data:null,error:n};throw n}})}deleteBucket(t){return mi(this,void 0,void 0,function*(){try{return{data:yield Zb(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Xe(n))return{data:null,error:n};throw n}})}}class AO extends RO{constructor(t,n={},r,s){super(t,n,r,s)}from(t){return new NO(this.url,this.headers,t,this.fetch)}}const DO="2.57.4";let Jo="";typeof Deno<"u"?Jo="deno":typeof document<"u"?Jo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Jo="react-native":Jo="node";const IO={"X-Client-Info":`supabase-js-${Jo}/${DO}`},MO={headers:IO},LO={schema:"public"},FO={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},$O={};var zO=function(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(c){try{u(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const UO=e=>{let t;return e?t=e:typeof fetch>"u"?t=Mb:t=fetch,(...n)=>t(...n)},BO=()=>typeof Headers>"u"?Lb:Headers,VO=(e,t,n)=>{const r=UO(n),s=BO();return(i,o)=>zO(void 0,void 0,void 0,function*(){var a;const l=(a=yield t())!==null&&a!==void 0?a:e;let u=new s(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(i,Object.assign(Object.assign({},o),{headers:u}))})};var WO=function(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(c){try{u(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};function HO(e){return e.endsWith("/")?e:e+"/"}function qO(e,t){var n,r;const{db:s,auth:i,realtime:o,global:a}=e,{db:l,auth:u,realtime:c,global:f}=t,h={db:Object.assign(Object.assign({},l),s),auth:Object.assign(Object.assign({},u),i),realtime:Object.assign(Object.assign({},c),o),storage:{},global:Object.assign(Object.assign(Object.assign({},f),a),{headers:Object.assign(Object.assign({},(n=f==null?void 0:f.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:()=>WO(this,void 0,void 0,function*(){return""})};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}function KO(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(HO(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const Xb="2.71.1",Si=30*1e3,mh=3,Pd=mh*Si,YO="http://localhost:9999",GO="supabase.auth.token",QO={"X-Client-Info":`gotrue-js/${Xb}`},ph="X-Supabase-Api-Version",Jb={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},ZO=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,XO=10*60*1e3;
200class tp extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function le(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class JO extends tp{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function e2(e){return le(e)&&e.name==="AuthApiError"}class e_ extends tp{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class _s extends tp{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class zr extends _s{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function t2(e){return le(e)&&e.name==="AuthSessionMissingError"}class Bl extends _s{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Vl extends _s{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Wl extends _s{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 n2(e){return le(e)&&e.name==="AuthImplicitGrantRedirectError"}class jv extends _s{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 gh extends _s{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Od(e){return le(e)&&e.name==="AuthRetryableFetchError"}class Ev extends _s{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class vh extends _s{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Ku="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Tv=` 	
201\r=`.split(""),r2=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Tv.length;t+=1)e[Tv[t].charCodeAt(0)]=-2;for(let t=0;t<Ku.length;t+=1)e[Ku[t].charCodeAt(0)]=t;return e})();function Nv(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(Ku[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(Ku[r]),t.queuedBits-=6}}function t_(e,t,n){const r=r2[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 Pv(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{o2(o,r,n)};for(let o=0;o<e.length;o+=1)t_(e.charCodeAt(o),s,i);return t.join("")}function s2(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 i2(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}s2(r,t)}}function o2(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 a2(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)t_(e.charCodeAt(s),n,r);return new Uint8Array(t)}function l2(e){const t=[];return i2(e,n=>t.push(n)),new Uint8Array(t)}function u2(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>Nv(s,n,r)),Nv(null,n,r),t.join("")}function c2(e){return Math.round(Date.now()/1e3)+e}function d2(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const hn=()=>typeof window<"u"&&typeof document<"u",Es={tested:!1,writable:!1},n_=()=>{if(!hn())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Es.tested)return Es.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Es.tested=!0,Es.writable=!0}catch{Es.tested=!0,Es.writable=!1}return Es.writable};function f2(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
201h((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const r_=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>ol(async()=>{const{default:r}=await Promise.resolve().then(()=>Po);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},h2=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Ci=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Ts=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Mr=async(e,t)=>{await e.removeItem(t)};class Mc{constructor(){this.promise=new Mc.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Mc.promiseConstructor=Promise;function Rd(e){const t=e.split(".");if(t.length!==3)throw new vh("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!ZO.test(t[r]))throw new vh("JWT not in base64url format");return{header:JSON.parse(Pv(t[0])),payload:JSON.parse(Pv(t[1])),signature:a2(t[2]),raw:{header:t[0],payload:t[1]}}}async function m2(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function p2(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 g2(e){return("0"+e.toString(16)).substr(-2)}function v2(){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,g2).join("")}async function y2(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 w2(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 y2(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function pi(e,t,n=!1){const r=v2();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await Ci(e,`${t}-code-verifier`,s);const i=await w2(r);return[i,r===i?"plain":"s256"]}const x2=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function b2(e){const t=e.headers.get(ph);if(!t||!t.match(x2))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function _2(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 k2(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 S2=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function gi(e){if(!S2.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Ad(){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 Ov(e){return JSON.parse(JSON.stringify(e))}var C2=function(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};const Os=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),j2=[502,503,504];async function Rv(e){var t;if(!h2(e))throw new gh(Os(e),0);if(j2.includes(e.status))throw new gh(Os(e),e.status);let n;try{n=await e.json()}catch(i){throw new e_(Os(i),i)}let r;const s=b2(e);if(s&&s.getTime()>=Jb["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 Ev(Os(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new zr}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)=>
201i&&typeof o=="string",!0))throw new Ev(Os(n),e.status,n.weak_password.reasons);throw new JO(Os(n),e.status||500,r)}const E2=(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 he(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[ph]||(i[ph]=Jb["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 T2(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 T2(e,t,n,r,s,i){const o=E2(t,r,s,i);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new gh(Os(l),0)}if(a.ok||await Rv(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await Rv(l)}}function dr(e){var t;let n=null;R2(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=c2(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function Av(e){const t=dr(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 Kr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function N2(e){return{data:e,error:null}}function P2(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=C2(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 O2(e){return e}function R2(e){return e.access_token&&e.refresh_token&&e.expires_in}const Dd=["global","local","others"];var A2=function(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};class D2{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=r_(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,n=Dd[0]){if(Dd.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Dd.join(", ")}`);try{return await he(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(le(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await he(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Kr})}catch(r){if(le(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=A2(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 he(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:P2,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(le(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await he(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Kr})}catch(n){if(le(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await he(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:O2});if(c.error)throw c.error;const f=await c.json(),h=(o=c.headers.get("x-total-count"))!==null&&o!==void 0?o:0,m=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return m.length>0&&(m.forEach(b=>{const g=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(b.split(";")[1].split("=")[1]);u[`${w}Page`]=g}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(le(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){gi(t);try{return await he(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Kr})}catch(n){if(le(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){gi(t);try{return await he(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Kr})}catch(r){if(le(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){gi(t);
201try{return await he(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Kr})}catch(r){if(le(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){gi(t.userId);try{const{data:n,error:r}=await he(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(le(n))return{data:null,error:n};throw n}}async _deleteFactor(t){gi(t.userId),gi(t.id);try{return{data:await he(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(le(n))return{data:null,error:n};throw n}}}function Dv(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function I2(){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)}}const vi={debug:!!(globalThis&&n_()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class s_ extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class M2 extends s_{}async function L2(e,t,n){vi.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),vi.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){vi.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{vi.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw vi.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new M2(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(vi.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()}}))}I2();const F2={url:YO,storageKey:GO,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:QO,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function Iv(e,t,n){return await n()}const yi={};class za{constructor(t){var n,r;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=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,this.instanceID=za.nextInstanceID,za.nextInstanceID+=1,this.instanceID>0&&hn()&&console.warn("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.");const s=Object.assign(Object.assign({},F2),t);if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new D2({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=r_(s.fetch),this.lock=s.lock||Iv,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:hn()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=L2:this.lock=Iv,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)},this.persistSession?(s.storage?this.storage=s.storage:n_()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Dv(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=Dv(this.memoryStorage)),hn()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}get jwks(){var t,n;return(n=(t=yi[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){yi[this.storageKey]=Object.assign(Object.assign({},yi[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=yi[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){yi[this.storageKey]=Object.assign(Object.assign({},yi[this.storageKey]),{cachedAt:t})}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${Xb}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const n=f2(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),hn()&&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),n2(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 await this._removeSession(),{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 le(n)?{error:n}:{error:new e_("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await he(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:dr}),{data:o,error:a}=i;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(i){if(le(i))return{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:c,password:f,options:h}=t;let m=null,b=null;this.flowType==="pkce"&&([m,b]=await pi(this.storage,this.storageKey)),i=await he(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:c,password:f,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:m,code_challenge_method:b},xform:dr})}else if("phone"in t){const{phone:c,password:f,options:h}=t;i=await he(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:f,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},channel:(s=h==null?void 0:h.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:dr})}else throw new Vl("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(i){if(le(i))return{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 he(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:Av})}else if("phone"in t){const{phone:i,password:o,options:a}=t;n=await he(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:Av})}else throw new Vl("You must provide either an email or phone number and a password");const{data:r,error:s}=n;return s?{data:{user:null,session:null},error:s}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new Bl}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(le(n))return{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(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;if(n==="solana")return await this.signInWithSolana(t);throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}async signInWithSolana(t){var n,r,s,i,o,a,l,u,c,f,h,m;let b,g;if("message"in t)b=t.message,g=t.signature;else{const{chain:w,wallet:y,statement:p,options:v}=t;let _;if(hn())if(typeof y=="object")_=y;else{const C=window;if("solana"in C&&typeof C.solana=="object"&&("signIn"in C.solana&&typeof C.solana.signIn=="function"||"signMessage"in C.solana&&typeof C.solana.signMessage=="function"))_=C.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 y!="object"||!(v!=null&&v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=y}const S=new URL((n=v==null?void 0:v.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in _&&_.signIn){const C=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},v==null?void 0:v.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),p?{statement:p}:null));let E;if(Array.isArray(C)&&C[0]&&typeof C[0]=="object")E=C[0];else if(C&&typeof C=="object"&&"signedMessage"in C&&"signature"in C)E=C;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in E&&"signature"in E&&(typeof E.signedMessage=="string"||E.signedMessage instanceof Uint8Array)&&E.signature instanceof Uint8Array)b=typeof E.signedMessage=="string"?E.signedMessage:new TextDecoder().decode(E.signedMessage),g=E.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in _)||typeof _.signMessage!="function"||!("publicKey"in _)||typeof _!="object"||!_.publicKey||!("toBase58"in _.publicKey)||typeof _.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");b=[`${S.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...p?["",p,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(s=(r=v==null?void 0:v.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=v==null?void 0:v.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${v.signInWithSolana.notBefore}`]:[],...!((o=v==null?void 0:v.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${v.signInWithSolana.expirationTime}`]:[],...!((a=v==null?void 0:v.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${v.signInWithSolana.chainId}`]:[],...!((l=v==null?void 0:v.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${v.signInWithSolana.nonce}`]:[],...!((u=v==null?void 0:v.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${v.signInWithSolana.requestId}`]:[],...!((f=(c=v==null?void 0:v.signInWithSolana)===null||c===void 0?void 0:c.resources)===null||f===void 0)&&f.length?["Resources",...v.signInWithSolana.resources.map(E=>`- ${E}`)]:[]].join(`
202`);const C=await _.signMessage(new TextEncoder().encode(b),"utf8");if(!C||!(C instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");g=C}}try{const{data:w,error:y}=await he(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:b,signature:u2(g)}
202,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(m=t.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:dr});if(y)throw y;return!w||!w.session||!w.user?{data:{user:null,session:null},error:new Bl}:(w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("SIGNED_IN",w.session)),{data:Object.assign({},w),error:y})}catch(w){if(le(w))return{data:{user:null,session:null},error:w};throw w}}async _exchangeCodeForSession(t){const n=await Ts(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{const{data:i,error:o}=await he(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:dr});if(await Mr(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!i||!i.session||!i.user?{data:{user:null,session:null,redirectType:null},error:new Bl}:(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(le(i))return{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 he(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:dr}),{data:l,error:u}=a;return u?{data:{user:null,session:null},error:u}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new Bl}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:u})}catch(n){if(le(n))return{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;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await pi(this.storage,this.storageKey));const{error:f}=await he(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:u,code_challenge_method:c},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:f}}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:c}=await he(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{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c}}throw new Vl("You must provide either an email or phone number.")}catch(a){if(le(a))return{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 he(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:dr});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,u=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(s){if(le(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(t){var n,r,s;try{let i=null,o=null;return this.flowType==="pkce"&&([i,o]=await pi(this.storage,this.storageKey)),await he(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:i,code_challenge_method:o}),headers:this.headers,xform:N2})}catch(i){if(le(i))return{data:null,error:i};throw i}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,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 zr;const{error:s}=await he(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:s}})}catch(t){if(le(t))return{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 he(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{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 he(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a}}throw new Vl("You must provide either an email or phone number and a type")}catch(n){if(le(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,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 Ts(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
202id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Pd:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await Ts(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=Ad()}if(this.storage.isServer&&t.user){let o=this.suppressGetSessionWarning;t=new Proxy(t,{get:(l,u,c)=>(!o&&u==="user"&&(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."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(l,u,c))})}return{data:{session:t},error:null}}const{session:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{session:null},error:i}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await he(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Kr}):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 zr}:await he(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:Kr})})}catch(n){if(le(n))return t2(n)&&(await this._removeSession(),await Mr(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,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 zr;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await pi(this.storage,this.storageKey));const{data:u,error:c}=await he(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:Kr});if(c)throw c;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(r){if(le(r))return{data:{user:null},error:r};throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new zr;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=Rd(t.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{session:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return{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)throw 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{data:{user:i.user,session:i},error:null}}catch(n){if(le(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,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 zr;const{session:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{user:null,session:null},error:i}:s?{data:{user:s.user,session:s},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(le(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t,n){try{if(!hn())throw new Wl("No browser detected.");
202if(t.error||t.error_description||t.error_code)throw new Wl(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 jv("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Wl("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 jv("No code detected.");const{data:p,error:v}=await this._exchangeCodeForSession(t.code);if(v)throw v;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:p.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:u}=t;if(!i||!a||!o||!u)throw new Wl("No session defined in URL");const c=Math.round(Date.now()/1e3),f=parseInt(a);let h=c+f;l&&(h=parseInt(l));const m=h-c;m*1e3<=Si&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${m}s, should have been closer to ${f}s`);const b=h-f;c-b>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",b,h,c):c-b<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",b,h,c);const{data:g,error:w}=await this._getUser(i);if(w)throw w;const y={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:f,expires_at:h,refresh_token:o,token_type:u,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:y,redirectType:t.type},error:null}}catch(r){if(le(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await Ts(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,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)return{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&&!(e2(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return t!=="others"&&(await this._removeSession(),await Mr(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const n=d2(),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(-1,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 pi(this.storage,this.storageKey,!0));try{return await he(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(le(i))return{data:null,error:i};throw i}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(le(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var o,a,l,u,c;const{data:f,error:h}=i;if(h)throw h;const m=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 he(this.fetch,"GET",m,{headers:this.headers,jwt:(c=(u=f.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(s)throw s;return hn()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(le(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;
202if(o)throw o;return await he(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(le(n))return{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 p2(async s=>(s>0&&await m2(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await he(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:dr})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Od(i)&&Date.now()+o-r<Si})}catch(r){if(this._debug(n,"error",r),le(r))return{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),hn()&&!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 Ts(this.storage,this.storageKey);if(s&&this.userStorage){let o=await Ts(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await Ci(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:Ad()}else if(s&&!s.user&&!s.user){const o=await Ts(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await Mr(this.storage,this.storageKey+"-user"),await Ci(this.storage,this.storageKey,s)):s.user=Ad()}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()<Pd;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${Pd}
202s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),Od(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 zr;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Mc;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new zr;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const a={session:i.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(i){if(this._debug(s,"error",i),le(i)){const o={session:null,error:i};return Od(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;const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await Ci(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=Ov(s);await Ci(this.storage,this.storageKey,i)}else{const s=Ov(n);await Ci(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),await Mr(this.storage,this.storageKey),await Mr(this.storage,this.storageKey+"-code-verifier"),await Mr(this.storage,this.storageKey+"-user"),this.userStorage&&await Mr(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&hn()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Si);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}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)/Si);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Si}ms, refresh threshold is ${mh} ticks`),s<=mh&&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 s_)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!hn()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),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(-1,async()=>
202{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 pi(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?{data:null,error:i}:await he(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(le(n))return{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{data:null,error:o};const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:l,error:u}=await he(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 u?{data:null,error:u}:(t.factorType==="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}`),{data:l,error:null})})}catch(n){if(le(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return{data:null,error:i};const{data:o,error:a}=await he(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:a})})}catch(n){if(le(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?{data:null,error:i}:await he(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(le(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(t==null?void 0:t.factors)||[],s=r.filter(o=>o.factor_type==="totp"&&o.status==="verified"),i=r.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:r,totp:s,phone:i},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,r;const{data:{session:s},error:i}=t;if(i)return{data:null,error:i};if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=Rd(s.access_token);let a=null;o.aal&&(a=o.aal);let l=a;((r=(n=s.user.factors)===null||n===void 0?void 0:n.filter(f=>f.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(l="aal2");const c=o.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:c},error:null}}))}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+XO>s)return r;const{data:i,error:o}=await he(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:m,error:b}
202=await this.getSession();if(b||!m.session)return{data:null,error:b};r=m.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=Rd(r);n!=null&&n.allowExpired||_2(i.exp);const u=!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(!u){const{error:m}=await this.getUser(r);if(m)throw m;return{data:{claims:i,header:s,signature:o},error:null}}const c=k2(s.alg),f=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,f,o,l2(`${a}.${l}`)))throw new vh("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(le(r))return{data:null,error:r};throw r}}}za.nextInstanceID=0;const $2=za;class z2 extends $2{constructor(t){super(t)}}var U2=function(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(c){try{u(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class B2{constructor(t,n,r){var s,i,o;this.supabaseUrl=t,this.supabaseKey=n;const a=KO(t);if(!n)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",a),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",a),this.storageUrl=new URL("storage/v1",a),this.functionsUrl=new URL("functions/v1",a);const l=`sb-${a.hostname.split(".")[0]}-auth-token`,u={db:LO,realtime:$O,auth:Object.assign(Object.assign({},FO),{storageKey:l}),global:MO},c=qO(r??{},u);this.storageKey=(s=c.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(i=c.global.headers)!==null&&i!==void 0?i:{},c.accessToken?(this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(f,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=c.auth)!==null&&o!==void 0?o:{},this.headers,c.global.fetch),this.fetch=VO(n,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},c.realtime)),this.rest=new rO(new URL("rest/v1",a).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),this.storage=new AO(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new IP(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},r={}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return U2(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,userStorage:i,storageKey:o,flowType:a,lock:l,debug:u},c,f){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new z2({url:this.authUrl.href,headers:Object.assign(Object.assign({},h),c),storageKey:o,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,userStorage:i,flowType:a,lock:l,debug:u,fetch:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(m=>m.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new xO(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?this.changedAccessToken=r:t==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}
202const V2=(e,t,n)=>new B2(e,t,n);function W2(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const t=e.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}W2()&&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");const H2="https://fdxspmqeycbwivdizmfz.supabase.co",q2="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImZkeHNwbXFleWNid2l2ZGl6bWZ6Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTgwMTQyODgsImV4cCI6MjA3MzU5MDI4OH0.ZNezro7Hq0dkWqEb_m9qDqMjwxZRzvDgngZgjvID7UI",Ks=V2(H2,q2,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),K2=e=>{let t=0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=(t<<5)-t+r,t=t&t}return Math.abs(t).toString(16)},Y2=()=>{const e=navigator.userAgent.toLowerCase();return/tablet|ipad|playbook|silk/.test(e)?"tablet":/mobile|iphone|ipod|android|blackberry|opera|mini|windows\sce|palm|smartphone|iemobile/.test(e)?"mobile":"desktop"},Id=()=>{let e=sessionStorage.getItem("visitor_session_id");return e||(e=crypto.randomUUID(),sessionStorage.setItem("visitor_session_id",e)),e},G2=()=>localStorage.getItem("has_visited_fitness_capellexl")?!1:(localStorage.setItem("has_visited_fitness_capellexl","true"),!0),Lc=()=>{var s,i;const e=x.useRef(null),t=x.useRef(!1);x.useEffect(()=>{const a=setTimeout(async()=>{if(console.log("🔍 [VISITOR TRACKING] Starting visitor tracking..."),t.current){console.log("🔍 [VISITOR TRACKING] Already tracked, skipping");return}t.current=!0;try{const l=Id(),u=G2();console.log("🔍 [VISITOR TRACKING] Session ID:",l,"Is unique:",u);const c=K2(navigator.userAgent+Date.now().toString()),f={session_id:l,user_agent:navigator.userAgent,ip_address_hash:c,referrer:document.referrer||null,landing_page:window.location.pathname+window.location.search,device_type:Y2(),is_unique:u};console.log("🔍 [VISITOR TRACKING] Sending visitor data to Supabase:",f);const{data:h,error:m}=await Ks.functions.invoke("track-visitor",{body:f});if(m){console.error("❌ [VISITOR TRACKING] Supabase error:",m),console.error("❌ [VISITOR TRACKING] Error details:",{code:m.code,message:m.message,details:m.details,hint:m.hint}),e.current={sessionId:l,visitorId:null};return}console.log("✅ [VISITOR TRACKING] Successfully inserted visitor:",h),e.current={sessionId:l,visitorId:(h==null?void 0:h.id)||null}}catch(l){console.error("❌ [VISITOR TRACKING] Unexpected error:",l),e.current={sessionId:Id(),visitorId:null}}},100);return()=>clearTimeout(a)},[]);const n=async(o,a)=>{var l;if(console.log("🖱️ [CLICK TRACKING] Attempting to track click:",o,a),!((l=e.current)!=null&&l.sessionId)){console.warn("🖱️ [CLICK TRACKING] No session ID available, skipping");return}if(!e.current.visitorId){console.warn("🖱️ [CLICK TRACKING] No visitor ID available, skipping");return}try{const u={visitor_id:e.current.visitorId,session_id:e.current.sessionId,event_type:o,element_id:a.elementId||null,element_text:a.elementText||null,element_class:a.elementClass||null,page_url:window.location.pathname+window.location.search,page_title:document.title,metadata:a.metadata||null};console.log("🖱️ [CLICK TRACKING] Sending click data:",u);const{data:c,error:f}=await Ks.functions.invoke("track-click",{body:u});f?(console.error("❌ [CLICK TRACKING] Supabase error:",f),console.error("❌ [CLICK TRACKING] Error details:",{code:f.code,message:f.message,details:f.details,hint:f.hint})):console.log("✅ [CLICK TRACKING] Successfully tracked click")}catch(u){console.error("❌ [CLICK TRACKING] Unexpected error:",u)}},r=async()=>{console.log("🧪 [TEST] Testing visitor tracking manually..."),console.log("🧪 [TEST] Current visitor data:",e.current);try{const o={session_id:Id(),user_agent:"TEST_USER_AGENT",ip_address_hash:"TEST_HASH",referrer:null,landing_page:"/test",device_type:"test",is_unique:!1},{data:a,error:l}=await Ks.functions.invoke("track-visitor",{body:o});l?console.error("🧪 [TEST] Test failed:",l):console.log("🧪 [TEST] Test successful:",a)}catch(o){console.error("🧪 [TEST] Test error:",o)}};return{trackClick:n,sessionId:(s=e.current)==null?void 0:s.sessionId,visitorId:(i=e.current)==null?void 0:i.visitorId,testTracking:r}},Q2=()=>{const e=li(),{trackClick:t}=Lc();x.useEffect(()=>{const n=setTimeout(()=>{t("page_view",{elementId:"page_view",elementText:document.title,metadata:{pathname:e.pathname,search:e.search,hash:e.hash}})},1e3);return()=>clearTimeout(n)},[e,t])},yh=Tm("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-200 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",cta:"bg-primary text-primary-foreground hover:bg-fitness-green-light shadow-md hover:shadow-lg transform hover:-translate-y-0.5 font-semibold","outline-primary":"border-2 border-primary bg-transparent text-primary hover:bg-primary hover:text-primary-foreground",minimal:"bg-transparent text-neutral-600 hover:text-primary hover:bg-neutral-50"},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"}}),xr=x.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?ex:"button";return d.jsx(o,{className:Ne(yh({variant:t,size:n,className:e})),ref:i,...s})});xr.displayName="Button";const Ua=P.forwardRef(({trackingId:e,trackingText:t,eventType:n="button_click",metadata:r,onClick:s,children:i,className:o,...a},l)=>{const{trackClick:u}=Lc(),c=async f=>{await u(n,{elementId:e,elementText:t||(typeof i=="string"?i:void 0),elementClass:o,metadata:r}),s&&s(f)};return d.jsx(xr,{ref:l,className:o,onClick:c,...a,children:i})});Ua.displayName="TrackedButton";const i_="/assets/fcxl-logo-new-CuYQGFl8.png",ei=()=>
202{const[e,t]=x.useState(!1),[n,r]=x.useState(!1),{trackClick:s}=Lc();x.useEffect(()=>{const a=()=>{r(window.scrollY>50)};return window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)},[]);const i=a=>{var l;if(s("navigation_click",{elementId:`nav-${a}`,elementText:(l=o.find(u=>u.id===a))==null?void 0:l.label,metadata:{section:"navigation",target:a}}),window.location.pathname==="/"){const u=document.getElementById(a);u&&(u.scrollIntoView({behavior:"smooth"}),t(!1))}else a==="hero"?window.location.href="/":window.location.href=`/#${a}`},o=[{label:"Lidmaatschap",id:"memberships"},{label:"Faciliteiten",id:"facilities"},{label:"Openingstijden",id:"hours"},{label:"Contact",id:"contact"}];return d.jsx("nav",{className:"fixed top-0 left-0 right-0 z-50",children:d.jsx("div",{className:"bg-white/95 backdrop-blur-sm border-b border-neutral-200",children:d.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[d.jsxs("div",{className:"flex items-center justify-between h-16",children:[d.jsx("div",{className:"flex-shrink-0",children:d.jsx("button",{onClick:()=>{s("navigation_click",{elementId:"nav-logo",elementText:"Logo",metadata:{section:"navigation",target:"homepage"}}),window.location.href="/"},className:"flex items-center","aria-label":"Go to top of page",children:d.jsx("img",{src:i_,alt:"FCXL - The Social Gym Logo",className:"h-24 w-auto cursor-pointer hover:opacity-80 transition-opacity duration-200"})})}),d.jsx("div",{className:"hidden md:block",children:d.jsx("div",{className:"ml-10 flex items-baseline space-x-4",children:o.map(a=>d.jsx("button",{onClick:()=>i(a.id),className:"text-neutral-600 hover:text-primary px-3 py-2 text-sm font-medium transition-colors duration-200",children:a.label},a.id))})}),d.jsx("div",{className:"hidden md:block",children:d.jsx(Ua,{variant:"cta",onClick:()=>window.location.href="/inschrijven",className:"ml-4",trackingId:"nav-word-lid-desktop",trackingText:"Word Lid",metadata:{section:"navigation",device:"desktop",action:"signup"},children:"Word Lid"})}),d.jsx("div",{className:"md:hidden",children:d.jsx(xr,{variant:"ghost",size:"icon",onClick:()=>t(!e),"aria-label":"Open menu",children:e?d.jsx(Nx,{className:"h-6 w-6"}):d.jsx(XC,{className:"h-6 w-6"})})})]}),e&&d.jsx("div",{className:"md:hidden",children:d.jsxs("div",{className:"px-2 pt-2 pb-3 space-y-1 bg-background border-t border-neutral-200",children:[o.map(a=>d.jsx("button",{onClick:()=>i(a.id),className:"text-neutral-600 hover:text-primary block px-3 py-2 text-base font-medium w-full text-left transition-colors duration-200",children:a.label},a.id)),d.jsx("div",{className:"pt-2",children:d.jsx(Ua,{variant:"cta",onClick:()=>window.location.href="/inschrijven",className:"w-full",trackingId:"nav-word-lid-mobile",trackingText:"Word Lid",metadata:{section:"navigation",device:"mobile",action:"signup"},children:"Word Lid"})})]})})]})})})},Mv="/assets/fcxl-gym-floor-DfeBUbzK.jpg",Z2=()=>{const e=()=>{const t=document.getElementById("memberships");t&&t.scrollIntoView({behavior:"smooth"})};return d.jsxs("section",{id:"hero",className:"relative min-h-screen flex items-center justify-center overflow-hidden",children:[d.jsxs("div",{className:"absolute inset-0 z-0 md:hidden",style:{backgroundImage:`url(${Mv})`,backgroundSize:"150% 110%",backgroundPosition:"100% 0%",backgroundRepeat:"no-repeat"},children:[d.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background/90 via-background/60 to-transparent"}),d.jsx("div",{className:"absolute inset-0 bg-fitness-primary/30 mix-blend-overlay"})]}),d.jsxs("div",{className:"absolute inset-0 z-0 hidden md:block",children:[d.jsx("img",{src:Mv,alt:"Fitness CapelleXL moderne fitnessruimte",className:"w-full h-full object-cover object-center"}),d.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background/90 via-background/60 to-transparent"}),d.jsx("div",{className:"absolute inset-0 bg-fitness-primary/10 mix-blend-overlay"})]}),d.jsx("div",{className:"relative z-10 container mx-auto px-4 sm:px-6 lg:px-8 text-center lg:text-left",children:d.jsxs("div",{className:"max-w-4xl -mt-20",children:[d.jsx("h1",{className:"text-[1.65rem] sm:text-5xl lg:text-6xl font-bold text-foreground mb-6 leading-tight flex flex-col lg:flex-row items-center justify-center lg:justify-start gap-4",children:d.jsx("span",{children:"Welkom bij Fitness CapelleXL"})}),d.jsx("p",{className:"text-xl sm:text-2xl text-foreground mb-8 max-w-2xl",children:"Gezellige fitness met ruime openingstijden, uitstekende apparatuur en een persoonlijke aanpak"}),d.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center lg:justify-start",children:[d.jsx(Ua,{variant:"cta",size:"lg",onClick:()=>window.location.href="/inschrijven",className:"text-lg px-8 py-4 h-auto",trackingId:"hero-word-lid",trackingText:"Word Lid",metadata:{section:"hero",action:"signup"},children:"Word Lid"}),d.jsx(Ua,{variant:"outline-primary",size:"lg",onClick:e,className:"text-lg px-8 py-4 h-auto",trackingId:"hero-bekijk-lidmaatschappen",trackingText:"Bekijk Lidmaatschap",metadata:{section:"hero",action:"view_memberships"},children:"Bekijk Lidmaatschap"})]}),d.jsxs("div",{className:"mt-12 flex items-center justify-center lg:justify-start text-foreground",children:[d.jsx("p",{className:"text-sm mr-3",children:"Ontdek meer"}),d.jsx(WC,{className:"h-5 w-5 animate-bounce"})]})]})}),d.jsx("div",{className:"absolute bottom-8 left-1/2 transform -translate-x-1/2"})]})},Pt=x.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:Ne("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));
202Pt.displayName="Card";const kn=x.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:Ne("flex flex-col space-y-1.5 p-6",e),...t}));kn.displayName="CardHeader";const Sn=x.forwardRef(({className:e,...t},n)=>d.jsx("h3",{ref:n,className:Ne("text-2xl font-semibold leading-none tracking-tight",e),...t}));Sn.displayName="CardTitle";const np=x.forwardRef(({className:e,...t},n)=>d.jsx("p",{ref:n,className:Ne("text-sm text-muted-foreground",e),...t}));np.displayName="CardDescription";const Ot=x.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:Ne("p-6 pt-0",e),...t}));Ot.displayName="CardContent";const X2=x.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:Ne("flex items-center p-6 pt-0",e),...t}));X2.displayName="CardFooter";const J2="/assets/fcxl-lounge-o8KDJ2hy.jpg",eR=()=>{const e=Qm(),t=()=>{const s=document.getElementById("contact");s&&s.scrollIntoView({behavior:"smooth"})},n=()=>{e("/inschrijven")},r=["Toegang tot apparatuur","Altijd maandelijks opzegbaar","Inclusief alle groepstrainingen","Persoonlijke begeleiding","Geen inschrijfkosten","Gratis vers fruit","Gratis parkeren"];return d.jsxs("section",{id:"memberships",className:"relative py-20 overflow-hidden",children:[d.jsxs("div",{className:"absolute inset-0 z-0",children:[d.jsx("img",{src:J2,alt:"",className:"w-full h-full object-cover"}),d.jsx("div",{className:"absolute inset-x-0 top-0 h-1/3 bg-gradient-to-b from-background/80 to-transparent"})]}),d.jsxs("div",{className:"relative z-10 container mx-auto px-4 sm:px-6 lg:px-8",children:[d.jsxs("div",{className:"text-center mb-16",children:[d.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-foreground mb-4",children:"Ons Lidmaatschap"}),d.jsx("p",{className:"text-xl text-foreground max-w-2xl mx-auto",children:"Eenvoudige prijzen, geen verborgen kosten"})]}),d.jsx("div",{className:"flex justify-center",children:d.jsxs(Pt,{className:"relative border border-border hover:shadow-2xl transition-all duration-300 max-w-md w-full",children:[d.jsxs(kn,{className:"text-center pb-8 pt-8",children:[d.jsx(Sn,{className:"text-2xl font-bold text-foreground",children:"All-In lidmaatschap"}),d.jsx(np,{className:"mt-2",children:"Alles wat je nodig hebt voor je fitness avontuur"}),d.jsx("div",{className:"mt-4",children:d.jsxs("div",{children:[d.jsx("span",{className:"text-4xl font-bold text-primary",children:"€45"}),d.jsx("span",{className:"ml-1 text-muted-foreground",children:"per maand"})]})})]}),d.jsxs(Ot,{className:"space-y-4",children:[r.map((s,i)=>d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(HC,{className:"h-5 w-5 text-primary flex-shrink-0"}),d.jsx("span",{className:"text-foreground",children:s})]},i)),d.jsx("div",{className:"pt-6",children:d.jsx(xr,{variant:"cta",className:"w-full",size:"lg",onClick:n,children:"Kies All-In lidmaatschap"})})]})]})}),d.jsx("div",{className:"text-center mt-12",children:d.jsxs("p",{className:"text-sm text-white mb-4",children:["Vragen over ons lidmaatschap?",d.jsx("br",{}),d.jsx("button",{onClick:t,className:"text-primary hover:underline cursor-pointer",children:"Neem contact op"})," of bekijk onze ",d.jsx("a",{href:"/voorwaarden",className:"text-primary hover:underline",children:"Algemene Voorwaarden"}),"."]})})]})]})},tR="/assets/fcxl-dumbbells-CrDqnd6v.jpg",nR=()=>{const e=[{icon:QC,title:"Ruime trainingsvloer",description:"Moderne apparatuur en voldoende ruimte voor al je workouts"},{icon:JC,title:"Kleedkamers",description:"Schone en ruime kleedkamers voor en na je training"},{icon:ZC,title:"Kluisjes",description:"Veilige opslag voor je persoonlijke spullen tijdens het sporten"},{icon:GC,title:"Douches",description:"Frisse douches om je workout af te sluiten"}];return d.jsxs("section",{id:"facilities",className:"py-20 relative overflow-hidden bg-background",children:[d.jsxs("div",{className:"absolute inset-0 z-0",children:[d.jsx("img",{src:tR,alt:"FCXL faciliteiten",className:"w-full h-full object-cover"}),d.jsx("div",{className:"absolute inset-x-0 top-0 h-2/3 bg-gradient-to-b from-background/80 to-transparent"})]}),d.jsxs("div",{className:"relative container mx-auto px-4 sm:px-6 lg:px-8",children:[d.jsxs("div",{className:"text-center mb-16",children:[d.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-foreground mb-4",children:"Onze Faciliteiten"}),d.jsx("p",{className:"text-xl text-foreground max-w-2xl mx-auto",children:"Alles wat je nodig hebt voor een complete sportervaring onder één dak"})]}),d.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6 max-w-6xl mx-auto",children:e.map((t,n)=>d.jsx(Pt,{className:"border border-border bg-card hover:shadow-lg transition-all duration-300 text-center h-full",children:d.jsxs(Ot,{className:"p-6 flex flex-col items-center h-full",children:[d.jsx("div",{className:"mb-4 p-4 rounded-full bg-primary/10",children:d.jsx(t.icon,{className:"h-8 w-8 text-primary"})}),d.jsx("h3",{className:"text-lg font-semibold text-foreground mb-3",children:t.title}),d.jsx("p",{className:"text-sm leading-relaxed text-muted-foreground flex-grow",children:t.description})]})}
202,n))})]})]})},rR="/assets/fcxl-contact-Do-mtB7C.jpg",sR=()=>{const e=[{days:"Elke dag open",time:"07:00 - 23:00",highlight:!0}];return d.jsxs("section",{id:"hours",className:"relative py-20 overflow-hidden",children:[d.jsxs("div",{className:"absolute inset-0 z-0",children:[d.jsx("img",{src:rR,alt:"",className:"w-full h-full object-cover"}),d.jsx("div",{className:"absolute inset-x-0 top-0 h-2/3 bg-gradient-to-b from-background/80 to-transparent"})]}),d.jsxs("div",{className:"relative z-10 container mx-auto px-4 sm:px-6 lg:px-8",children:[d.jsxs("div",{className:"text-center mb-16",children:[d.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-foreground mb-4",children:"Openingstijden"}),d.jsx("p",{className:"text-xl text-foreground max-w-2xl mx-auto py-0",children:"Ruime openingstijden die bij jouw schema passen"})]}),d.jsx("div",{className:"max-w-3xl mx-auto",children:d.jsxs(Pt,{className:"border-2 border-neutral-200 shadow-lg",children:[d.jsxs(kn,{className:"text-center pb-6",children:[d.jsx("div",{className:"mx-auto mb-4 p-4 bg-primary/10 rounded-full w-20 h-20 flex items-center justify-center",children:d.jsx(Pm,{className:"h-10 w-10 text-primary"})}),d.jsx(Sn,{className:"text-2xl font-bold text-foreground",children:"Wanneer ben je welkom?"})]}),d.jsx(Ot,{className:"space-y-6",children:e.map((t,n)=>d.jsxs("div",{className:`flex justify-between items-center p-6 rounded-xl border-2 transition-all duration-200 ${t.highlight?"border-primary/20 bg-primary/5":"border-neutral-200 bg-neutral-50"}`,children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(Nm,{className:`h-5 w-5 ${t.highlight,"text-foreground"}`}),d.jsx("span",{className:"text-lg font-medium text-foreground",children:t.days})]}),d.jsx("span",{className:"text-xl font-bold text-foreground",children:t.time})]},n))})]})})]})]})},iR="/assets/fcxl-personaltraining-DlZSbXo4.jpg",oR=()=>{const e=()=>{const n=document.getElementById("contact");n&&n.scrollIntoView({behavior:"smooth"})},t=[{icon:ej,title:"Persoonlijke doelen",description:"Training afgestemd op jouw specifieke wensen en doelen"},{icon:tj,title:"1-op-1 begeleiding",description:"Volledige aandacht van een ervaren personal trainer"},{icon:Nm,title:"Flexibele planning",description:"Trainingen op afspraak die in jouw schema passen"},{icon:YC,title:"Effectieve training",description:"Snellere resultaten door persoonlijke coaching"}];return d.jsxs("section",{className:"relative py-20 overflow-hidden",children:[d.jsxs("div",{className:"absolute inset-0 z-0",children:[d.jsx("img",{src:iR,alt:"",className:"w-full h-full object-cover"}),d.jsx("div",{className:"absolute inset-x-0 top-0 h-2/3 bg-gradient-to-b from-background/80 to-transparent"})]}),d.jsxs("div",{className:"relative z-10 container mx-auto px-4 sm:px-6 lg:px-8",children:[d.jsxs("div",{className:"text-center mb-16",children:[d.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-foreground mb-4",children:"Personal Training"}),d.jsx("p",{className:"text-xl text-foreground max-w-2xl mx-auto",children:"Extra begeleiding om jouw doelen te bereiken"})]}),d.jsxs("div",{className:"grid md:grid-cols-2 gap-12 max-w-6xl mx-auto items-center",children:[d.jsx("div",{children:d.jsx("div",{className:"grid sm:grid-cols-2 gap-6",children:t.map((n,r)=>d.jsx(Pt,{className:"border border-border bg-card h-full hover:shadow-lg transition-all duration-300",children:d.jsxs(Ot,{className:"p-6 text-center",children:[d.jsx("div",{className:"mb-4 mx-auto p-3 bg-primary/10 rounded-full w-14 h-14 flex items-center justify-center",children:d.jsx(n.icon,{className:"h-6 w-6 text-primary"})}),d.jsx("h3",{className:"font-semibold text-foreground mb-2 text-sm",children:n.title}),d.jsx("p",{className:"text-xs leading-relaxed text-muted-foreground",children:n.description})]})},r))})}),d.jsx("div",{children:d.jsxs(Pt,{className:"border border-border bg-card",children:[d.jsxs(kn,{className:"text-center pb-6",children:[d.jsx(Sn,{className:"text-2xl font-bold text-foreground mb-2",children:"Geïnteresseerd in personal training?"}),d.jsx("p",{className:"text-muted-foreground",children:"Personal training is niet inbegrepen in het lidmaatschap, maar we bieden verschillende pakketten aan die bij jouw budget passen."})]}),d.jsx(Ot,{className:"text-center",children:d.jsxs("div",{className:"space-y-4",children:[d.jsx(xr,{variant:"cta",size:"lg",onClick:e,className:"w-full",children:"Vraag Meer Info Aan"}),d.jsx("p",{className:"text-xs text-muted-foreground",children:"Geen verplichtingen • Vrijblijvend adviesgesprek"})]})})]})})]})]})]})},Bn=x.forwardRef(({className:e,type:t,...n},r)=>d.jsx("input",{type:t,className:Ne("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Bn.displayName="Input";const o_=x.forwardRef(({className:e,...t},n)=>d.jsx("textarea",{className:Ne("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
202ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));o_.displayName="Textarea";var aR="Label",a_=x.forwardRef((e,t)=>d.jsx(st.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));a_.displayName=aR;var l_=a_;const lR=Tm("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Bi=x.forwardRef(({className:e,...t},n)=>d.jsx(l_,{ref:n,className:Ne(lR(),e),...t}));Bi.displayName=l_.displayName;const uR="/assets/fcxl-openinghours-NeQSDcVK.jpg",cR=()=>{const[e,t]=x.useState({name:"",email:"",phone:"",message:""}),[n,r]=x.useState(!1),{toast:s}=km(),i=async l=>{l.preventDefault(),r(!0);try{const{error:u}=await Ks.from("contact_messages").insert({naam:e.name,email:e.email,telefoonnummer:e.phone||null,bericht:e.message||null});if(u)throw u;try{await Ks.functions.invoke("send-contact-notification",{body:{naam:e.name,email:e.email,telefoonnummer:e.phone||null,bericht:e.message||null,created_at:new Date().toISOString()}})}catch(c){console.error("Email notification failed:",c)}s({title:"Bericht verzonden!",description:"We nemen zo snel mogelijk contact met je op."}),t({name:"",email:"",phone:"",message:""})}catch(u){console.error("Error submitting contact form:",u),s({title:"Fout bij verzenden",description:"Er is iets misgegaan. Probeer het opnieuw.",variant:"destructive"})}finally{r(!1)}},o=l=>{t({...e,[l.target.name]:l.target.value})},a=[{icon:Rm,title:"Adres",content:"Lylantse Baan 3, 2908 LG Capelle aan den IJssel"},{icon:Am,title:"Telefoon",content:"010 261 3326"},{icon:Om,title:"Email",content:"[email protected]"}];return d.jsxs("section",{id:"contact",className:"relative py-20 overflow-hidden",children:[d.jsxs("div",{className:"absolute inset-0 z-0",children:[d.jsx("img",{src:uR,alt:"",className:"w-full h-full object-cover"}),d.jsx("div",{className:"absolute inset-x-0 top-0 h-3/4 bg-gradient-to-b from-background/90 to-transparent"})]}),d.jsxs("div",{className:"relative z-10 container mx-auto px-4 sm:px-6 lg:px-8",children:[d.jsxs("div",{className:"text-center mb-16",children:[d.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-foreground mb-4",children:"Contact"}),d.jsx("p",{className:"text-xl text-foreground max-w-2xl mx-auto",children:"Neem contact op voor een proefles of om je in te schrijven"})]}),d.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 max-w-6xl mx-auto",children:[d.jsxs("div",{className:"flex flex-col h-full",children:[d.jsx("h3",{className:"text-2xl font-bold text-foreground mb-4",children:"Kom langs of neem contact op"}),d.jsx("div",{className:"space-y-6 mb-8",children:a.map((l,u)=>d.jsxs("div",{className:"gap-4 flex items-start justify-start",children:[d.jsx("div",{className:"p-3 bg-primary/10 rounded-full",children:d.jsx(l.icon,{className:"h-5 w-5 text-primary"})}),d.jsxs("div",{children:[d.jsx("h4",{className:"text-foreground mb-1 font-bold",children:l.title}),d.jsx("p",{className:"text-foreground text-sm font-bold",children:l.content})]})]},u))}),d.jsx("div",{className:"flex-1 min-h-[250px]",children:d.jsx("div",{className:"h-full flex-1 rounded-lg overflow-hidden border-2 border-neutral-200 relative",children:d.jsx("iframe",{src:"https://www.google.com/maps?q=Fitness+Capelle+XL,+Lylantse+Baan+3,+2908+LG+Capelle+aan+den+IJssel&output=embed",width:"100%",height:"100%",style:{border:0},allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"Fitness CapelleXL Locatie"})})})]}),d.jsxs(Pt,{className:"border-2 border-neutral-200",children:[d.jsxs(kn,{children:[d.jsx(Sn,{className:"text-2xl font-bold text-foreground",children:"Vraag een proefles aan"}),d.jsx("p",{className:"text-foreground",children:"Vul het formulier in en we nemen contact met je op."})]}),d.jsx(Ot,{children:d.jsxs("form",{onSubmit:i,className:"space-y-6",children:[d.jsxs("div",{children:[d.jsx(Bi,{htmlFor:"name",children:"Naam *"}),d.jsx(Bn,{id:"name",name:"name",value:e.name,onChange:o,required:!0,className:"mt-1"})]}),d.jsxs("div",{children:[d.jsx(Bi,{htmlFor:"email",children:"Email *"}),d.jsx(Bn,{id:"email",name:"email",type:"email",value:e.email,onChange:o,required:!0,className:"mt-1"})]}),d.jsxs("div",{children:[d.jsx(Bi,{htmlFor:"phone",children:"Telefoonnummer"}),d.jsx(Bn,{id:"phone",name:"phone",type:"tel",value:e.phone,onChange:o,className:"mt-1"})]}),d.jsxs("div",{children:[d.jsx(Bi,{htmlFor:"message",children:"Beric
202ht"}),d.jsx(o_,{id:"message",name:"message",value:e.message,onChange:o,placeholder:"Vertel ons wat je wilt weten of wanneer je wilt komen proeftrainen...",className:"mt-1",rows:4})]}),d.jsx(xr,{type:"submit",variant:"cta",size:"lg",className:"w-full",disabled:n,children:n?"Versturen...":"Verstuur Bericht"}),d.jsxs("p",{className:"text-xs text-neutral-500 text-center",children:["Door dit formulier te versturen ga je akkoord met onze"," ",d.jsx(Ib,{to:"/privacy",className:"text-primary hover:underline",children:"privacyverklaring"})]})]})})]})]})]})]})},ti=()=>{const e=new Date().getFullYear();return d.jsx("footer",{className:"bg-neutral-900 text-neutral-300 py-12",children:d.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[d.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[d.jsxs("div",{children:[d.jsx("div",{className:"mb-4",children:d.jsx("img",{src:i_,alt:"FCXL - The Social Gym Logo",className:"h-48 w-auto -mt-12 ml-8"})}),d.jsx("p",{className:"text-sm leading-relaxed mb-4 -mt-8 ml-8",children:"Samen maken we van sporten een gewoonte"})]}),d.jsxs("div",{children:[d.jsx("h4",{className:"font-semibold text-white mb-4",children:"Contact"}),d.jsxs("div",{className:"space-y-3",children:[d.jsxs("div",{className:"flex items-start gap-2",children:[d.jsx(Rm,{className:"h-4 w-4 text-primary mt-0.5 flex-shrink-0"}),d.jsxs("a",{href:"https://maps.google.com/maps?q=Lylantse+Baan+3,+2908+LG+Capelle+aan+den+IJssel",target:"_blank",rel:"noopener noreferrer",className:"text-sm hover:text-primary transition-colors",children:[d.jsx("p",{children:"Lylantse Baan 3"}),d.jsx("p",{children:"2908 LG Capelle aan den IJssel"})]})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Am,{className:"h-4 w-4 text-primary flex-shrink-0"}),d.jsx("a",{href:"tel:+31102613326",className:"text-sm hover:text-primary transition-colors",children:"010 261 3326"})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Om,{className:"h-4 w-4 text-primary flex-shrink-0"}),d.jsx("a",{href:"mailto:[email protected]",className:"text-sm hover:text-primary transition-colors",title:"Send email to FCXL",children:"[email protected]"})]})]})]}),d.jsxs("div",{children:[d.jsx("h4",{className:"font-semibold text-white mb-4",children:"Openingstijden"}),d.jsx("div",{className:"space-y-2 text-sm",children:d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Pm,{className:"h-4 w-4 text-primary flex-shrink-0"}),d.jsxs("div",{children:[d.jsx("p",{children:"Maandag: 07:00-23:00"}),d.jsx("p",{children:"Dinsdag: 07:00-23:00"}),d.jsx("p",{children:"Woensdag: 07:00-23:00"}),d.jsx("p",{children:"Donderdag: 07:00-23:00"}),d.jsx("p",{children:"Vrijdag: 07:00-23:00"}),d.jsx("p",{children:"Zaterdag: 07:00-23:00"}),d.jsx("p",{children:"Zondag: 07:00-23:00"})]})]})})]})]}),d.jsxs("div",{className:"border-t border-neutral-800 mt-8 pt-8 text-center",children:[d.jsxs("p",{className:"text-sm text-neutral-400",children:["© ",e," Fitness CapelleXL. Alle rechten voorbehouden."]}),d.jsx("p",{className:"text-xs text-neutral-500 mt-2",children:"KVK: 96312947 | BTW: NL005201644B96"})]})]})})},dR=()=>d.jsxs("div",{className:"min-h-screen",children:[d.jsx(ei,{}),d.jsx(Z2,{}),d.jsx(eR,{}),d.jsx(nR,{}),d.jsx(sR,{}),d.jsx(oR,{}),d.jsx(cR,{}),d.jsx(ti,{})]});var ul=e=>e.type==="checkbox",Fs=e=>e instanceof Date,yt=e=>e==null;const u_=e=>typeof e=="object";var qe=e=>!yt(e)&&!Array.isArray(e)&&u_(e)&&!Fs(e),c_=e=>qe(e)&&e.target?ul(e.target)?e.target.checked:e.target.value:e,fR=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d_=(e,t)=>e.has(fR(t)),hR=e=>{const t=e.constructor&&e.constructor.prototype;return qe(t)&&t.hasOwnProperty("isPrototypeOf")},rp=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ze(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(rp&&(e instanceof Blob||r))&&(n||qe(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!hR(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=Ze(e[s]));else return e;return t}var Fc=e=>/^\w*$/.test(e),We=e=>e===void 0,sp=e=>Array.isArray(e)?e.filter(Boolean):[],ip=e=>sp(e.replace(/["|']|\]/g,"").split(/\.|\[/)),H=(e,t,n)=>{if(!t||!qe(e))return n;const r=(Fc(t)?[t]:ip(t)).reduce((s,i)=>yt(s)?s:s[i],e);return We(r)||r===e?We(e[t])?n:e[t]:r},$t=e=>
202typeof e=="boolean",_e=(e,t,n)=>{let r=-1;const s=Fc(t)?[t]:ip(t),i=s.length,o=i-1;for(;++r<i;){const a=s[r];let l=n;if(r!==o){const u=e[a];l=qe(u)||Array.isArray(u)?u:isNaN(+s[r+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;e[a]=l,e=e[a]}};const Yu={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},bn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},lr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},op=P.createContext(null);op.displayName="HookFormContext";const $c=()=>P.useContext(op),mR=e=>{const{children:t,...n}=e;return P.createElement(op.Provider,{value:n},t)};var f_=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==bn.all&&(t._proxyFormState[o]=!r||bn.all),n&&(n[o]=!0),e[o]}});return s};const ap=typeof window<"u"?P.useLayoutEffect:P.useEffect;function pR(e){const t=$c(),{control:n=t.control,disabled:r,name:s,exact:i}=e||{},[o,a]=P.useState(n._formState),l=P.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ap(()=>n._subscribe({name:s,formState:l.current,exact:i,callback:u=>{!r&&a({...n._formState,...u})}}),[s,r,i]),P.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),P.useMemo(()=>f_(o,n,l.current,!1),[o,n])}var qn=e=>typeof e=="string",h_=(e,t,n,r,s)=>qn(e)?(r&&t.watch.add(e),H(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),H(n,i))):(r&&(t.watchAll=!0),n),wh=e=>yt(e)||!u_(e);function gr(e,t,n=new WeakSet){if(wh(e)||wh(t))return e===t;if(Fs(e)&&Fs(t))return e.getTime()===t.getTime();const r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const o=e[i];if(!s.includes(i))return!1;if(i!=="ref"){const a=t[i];if(Fs(o)&&Fs(a)||qe(o)&&qe(a)||Array.isArray(o)&&Array.isArray(a)?!gr(o,a,n):o!==a)return!1}}return!0}function gR(e){const t=$c(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:o,compute:a}=e||{},l=P.useRef(s),u=P.useRef(a),c=P.useRef(void 0);u.current=a;const f=P.useMemo(()=>n._getWatch(r,l.current),[n,r]),[h,m]=P.useState(u.current?u.current(f):f);return ap(()=>n._subscribe({name:r,formState:{values:!0},exact:o,callback:b=>{if(!i){const g=h_(r,n._names,b.values||n._formValues,!1,l.current);if(u.current){const w=u.current(g);gr(w,c.current)||(m(w),c.current=w)}else m(g)}}}),[n,i,r,o]),P.useEffect(()=>n._removeUnmounted()),h}function vR(e){const t=$c(),{name:n,disabled:r,control:s=t.control,shouldUnregister:i,defaultValue:o}=e,a=d_(s._names.array,n),l=P.useMemo(()=>H(s._formValues,n,H(s._defaultValues,n,o)),[s,n,o]),u=gR({control:s,name:n,defaultValue:l,exact:!0}),c=pR({control:s,name:n,exact:!0}),f=P.useRef(e),h=P.useRef(s.register(n,{...e.rules,value:u,...$t(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const m=P.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!H(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!H(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!H(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!H(c.validatingFields,n)},error:{enumerable:!0,get:()=>H(c.errors,n)}}),[c,n]),b=P.useCallback(p=>h.current.onChange({target:{value:c_(p),name:n},type:Yu.CHANGE}),[n]),g=P.useCallback(()=>h.current.onBlur({target:{value:H(s._formValues,n),name:n},type:Yu.BLUR}),[n,s._formValues]),w=P.useCallback(p=>{const v=H(s._fields,n);v&&p&&(v._f.ref={focus:()=>p.focus&&p.focus(),select:()=>p.select&&p.select(),setCustomValidity:_=>p.setCustomValidity(_),reportValidity:()=>p.reportValidity()})},[s._fields,n]),y=P.useMemo(()=>({name:n,value:u,...$t(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:b,onBlur:g,ref:w}),[n,r,c.disabled,b,g,w,u]);return P.useEffect(()=>{const p=s._options.shouldUnregister||i;s.register(n,{...f.current.rules,...$t(f.current.disabled)?{disabled:f.current.disabled}:{}});const v=(_,S)=>{const C=H(s._fields,_);C&&C._f&&(C._f.mount=S)};if(v(n,!0),p){const _=Ze(H(s._options.defaultValues,n));_e(s._defaultValues,n,_),We(H(s._formValues,n))&&_e(s._formValues,n,_)}return!a&&s.register(n),()=>{(a?p&&!s._state.action:p)?s.unregister(n):v(n,!1)}},[n,s,a,i]),P.useEffect(()=>{s._setDisabledField({disabled:r,name:n})},[r,n,s]),P.useMemo(()=>({field:y,formState:c,fieldState:m}),[y,c,m])}const yR=e=>e.render(vR(e));
vendor: 7,529 bytes, line 202
202var m_=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},ma=e=>Array.isArray(e)?e:[e],Lv=()=>{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},Ct=e=>qe(e)&&!Object.keys(e).length,lp=e=>e.type==="file",_n=e=>typeof e=="function",Gu=e=>{if(!rp)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},p_=e=>e.type==="select-multiple",up=e=>e.type==="radio",wR=e=>up(e)||ul(e),Md=e=>Gu(e)&&e.isConnected;function xR(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=We(e)?r++:e[t[r++]];return e}function bR(e){for(const t in e)if(e.hasOwnProperty(t)&&!We(e[t]))return!1;return!0}function Ke(e,t){const n=Array.isArray(t)?t:Fc(t)?[t]:ip(t),r=n.length===1?e:xR(e,n),s=n.length-1,i=n[s];return r&&delete r[i],s!==0&&(qe(r)&&Ct(r)||Array.isArray(r)&&bR(r))&&Ke(e,n.slice(0,-1)),e}var g_=e=>{for(const t in e)if(_n(e[t]))return!0;return!1};function Qu(e,t={}){const n=Array.isArray(e);if(qe(e)||n)for(const r in e)Array.isArray(e[r])||qe(e[r])&&!g_(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Qu(e[r],t[r])):yt(e[r])||(t[r]=!0);return t}function v_(e,t,n){const r=Array.isArray(e);if(qe(e)||r)for(const s in e)Array.isArray(e[s])||qe(e[s])&&!g_(e[s])?We(t)||wh(n[s])?n[s]=Array.isArray(e[s])?Qu(e[s],[]):{...Qu(e[s])}:v_(e[s],yt(t)?{}:t[s],n[s]):n[s]=!gr(e[s],t[s]);return n}var Wo=(e,t)=>v_(e,t,Qu(t));const Fv={value:!1,isValid:!1},$v={value:!0,isValid:!0};var y_=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!We(e[0].attributes.value)?We(e[0].value)||e[0].value===""?$v:{value:e[0].value,isValid:!0}:$v:Fv}return Fv},w_=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>We(e)?e:t?e===""?NaN:e&&+e:n&&qn(e)?new Date(e):r?r(e):e;const zv={isValid:!1,value:null};var x_=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,zv):zv;function Uv(e){const t=e.ref;return lp(t)?t.files:up(t)?x_(e.refs).value:p_(t)?[...t.selectedOptions].map(({value:n})=>n):ul(t)?y_(e.refs).value:w_(We(t.value)?e.ref.value:t.value,e)}var _R=(e,t,n,r)=>{const s={};for(const i of e){const o=H(t,i);o&&_e(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},Zu=e=>e instanceof RegExp,Ho=e=>We(e)?e:Zu(e)?e.source:qe(e)?Zu(e.value)?e.value.source:e.value:e,Bv=e=>({isOnSubmit:!e||e===bn.onSubmit,isOnBlur:e===bn.onBlur,isOnChange:e===bn.onChange,isOnAll:e===bn.all,isOnTouch:e===bn.onTouched});const Vv="AsyncFunction";var kR=e=>!!e&&!!e.validate&&!!(_n(e.validate)&&e.validate.constructor.name===Vv||qe(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Vv)),SR=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Wv=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const pa=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=H(e,s);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(pa(a,t))break}else if(qe(a)&&pa(a,t))break}}};function Hv(e,t,n){const r=H(e,n);if(r||Fc(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=H(t,i),a=H(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};if(a&&a.root&&a.root.type)return{name:`${i}.root`,error:a.root};s.pop()}return{name:n}}var CR=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return Ct(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||bn.all))},jR=(e,t,n)=>!e||!t||e===t||ma(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),ER=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,TR=(e,t)=>!sp(H(e,t)).length&&Ke(e,t),NR=(e,t,n)=>{const r=ma(H(e,n));return _e(r,"root",t[n]),_e(e,n,r),e},du=e=>qn(e);function qv(e,t,n="validate"){if(du(e)||Array.isArray(e)&&e.every(du)||$t(e)&&!e)return{type:n,message:du(e)?e:"",ref:t}}var wi=e=>qe(e)&&!Zu(e)?e:{value:e,message:""},Kv=async(e,t,n,r,s,i)=>{const{ref:o,refs:a,required:l,maxLength:u,minLength:c,min:f,max:h,pattern:m,validate:b,name:g,valueAsNumber:w,mount:y}=e._f,p=H(n,g);if(!y||t.has(g))return{};const v=a?a[0]:o,_=I=>{s&&v.reportValidity&&(v.setCustomValidity($t(I)?"":I||""),v.reportValidity())},S={},C=up(o),E=ul(o),A=C||E,F=(w||lp(o))&&We(o.value)&&We(p)||Gu(o)&&o.value===""||p===""||Array.isArray(p)&&!p.length,$=m_.bind(null,g,r,S),J=(I,K,M,ee=lr.maxLength,Q=lr.minLength)=>{const D=I?K:M;S[g]={type:I?ee:Q,message:D,ref:o,...$(I?ee:Q,D)}};if(i?!Array.isArray(p)||!p.length:l&&(!A&&(F||yt(p))||$t(p)&&!p||E&&!y_(a).isValid||C&&!x_(a).isValid)){const{value:I,message:K}=du(l)?{value:!!l,message:l}:wi(l);if(I&&(S[g]={type:lr.required,message:K,ref:v,...$(lr.required,K)},!r))return _(K),S}if(!F&&(!yt(f)||!yt(h))){let I,K;const M=wi(h),ee=wi(f);if(!yt(p)&&!isNaN(p)){const Q=o.valueAsNumber||p&&+p;yt(M.value)||(I=Q>M.value),yt(ee.value)||(K=Q<ee.value)}else{const Q=o.valueAsDate||new Date(p),D=V=>new Date(new Date().toDateString()+" "+V),j=o.type=="time",R=o.type=="week";qn(M.value)&&p&&(I=j?D(p)>D(M.value):R?p>M.value:Q>new Date(M.value)),qn(ee.value)&&p&&(K=j?D(p)<D(ee.value):R?p<ee.value:Q<new Date(ee.value))}if((I||K)&&(J(!!I,M.message,ee.message,lr.max,lr.min),!r))return _(S[g].message),S}if((u||c)&&!F&&(qn(p)||i&&Array.isArray(p))){const I=wi(u),K=wi(c),M=!yt(I.value)&&p.length>+I.value,ee=!yt(K.value)&&p.length<+K.value;if((M||ee)&&(J(M,I.message,K.message),!r))return _(S[g].message),S}if(m&&!F&&qn(p)){const{value:I,message:K}=wi(m);if(Zu(I)&&!p.match(I)&&(S[g]={type:lr.pattern,message:K,ref:o,...$(lr.pattern,K)},!r))return _(K),S}if(b){if(_n(b)){const I=await b(p,n),K=qv(I,v);if(K&&(S[g]={...K,...$(lr.validate,K.message)},!r))return _(K.message),S}else if(qe(b)){let I={};for(const K in b){if(!Ct(I)&&!r)break;const M=qv(await b[K](p,n),v,K);M&&(I={...M,...$(K,M.message)},_(M.message),r&&(S[g]=I))}if(!Ct(I)&&(S[g]={ref:v,...I},!r))return S}}return _(!0),S};const PR={mode:bn.onSubmit,reValidateMode:bn.onChange,shouldFocusError:!0};function OR(e={}){let t={...PR,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:_n(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=qe(t.defaultValues)||qe(t.values)?Ze(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:Ze(s),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f={...c};const h={array:Lv(),state:Lv()},m=t.criteriaMode===bn.all,b=k=>T=>{clearTimeout(u),u=setTimeout(k,T)},g=async k=>{if(!t.disabled&&(c.isValid||f.isValid||k)){const T=t.resolver?Ct((await E()).errors):await F(r,!0);T!==n.isValid&&h.state.next({isValid:T})}},w=(k,T)=>{!t.disabled&&(c.isValidating||c.validatingFields||f.isValidating||f.validatingFields)&&((k||Array.from(a.mount)).forEach(N=>{N&&(T?_e(n.validatingFields,N,T):Ke(n.validatingFields,N))}),h.state.next({validatingFields:n.validatingFields,isValidating:!Ct(n.validatingFields)}))},y=(k,T=[],N,W,B=!0,U=!0)=>
vendor: 11,853 bytes, line 202
202{if(W&&N&&!t.disabled){if(o.action=!0,U&&Array.isArray(H(r,k))){const Y=N(H(r,k),W.argA,W.argB);B&&_e(r,k,Y)}if(U&&Array.isArray(H(n.errors,k))){const Y=N(H(n.errors,k),W.argA,W.argB);B&&_e(n.errors,k,Y),TR(n.errors,k)}if((c.touchedFields||f.touchedFields)&&U&&Array.isArray(H(n.touchedFields,k))){const Y=N(H(n.touchedFields,k),W.argA,W.argB);B&&_e(n.touchedFields,k,Y)}(c.dirtyFields||f.dirtyFields)&&(n.dirtyFields=Wo(s,i)),h.state.next({name:k,isDirty:J(k,T),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else _e(i,k,T)},p=(k,T)=>{_e(n.errors,k,T),h.state.next({errors:n.errors})},v=k=>{n.errors=k,h.state.next({errors:n.errors,isValid:!1})},_=(k,T,N,W)=>{const B=H(r,k);if(B){const U=H(i,k,We(N)?H(s,k):N);We(U)||W&&W.defaultChecked||T?_e(i,k,T?U:Uv(B._f)):M(k,U),o.mount&&g()}},S=(k,T,N,W,B)=>{let U=!1,Y=!1;const pe={name:k};if(!t.disabled){if(!N||W){(c.isDirty||f.isDirty)&&(Y=n.isDirty,n.isDirty=pe.isDirty=J(),U=Y!==pe.isDirty);const Ce=gr(H(s,k),T);Y=!!H(n.dirtyFields,k),Ce?Ke(n.dirtyFields,k):_e(n.dirtyFields,k,!0),pe.dirtyFields=n.dirtyFields,U=U||(c.dirtyFields||f.dirtyFields)&&Y!==!Ce}if(N){const Ce=H(n.touchedFields,k);Ce||(_e(n.touchedFields,k,N),pe.touchedFields=n.touchedFields,U=U||(c.touchedFields||f.touchedFields)&&Ce!==N)}U&&B&&h.state.next(pe)}return U?pe:{}},C=(k,T,N,W)=>{const B=H(n.errors,k),U=(c.isValid||f.isValid)&&$t(T)&&n.isValid!==T;if(t.delayError&&N?(l=b(()=>p(k,N)),l(t.delayError)):(clearTimeout(u),l=null,N?_e(n.errors,k,N):Ke(n.errors,k)),(N?!gr(B,N):B)||!Ct(W)||U){const Y={...W,...U&&$t(T)?{isValid:T}:{},errors:n.errors,name:k};n={...n,...Y},h.state.next(Y)}},E=async k=>{w(k,!0);const T=await t.resolver(i,t.context,_R(k||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return w(k),T},A=async k=>{const{errors:T}=await E(k);if(k)for(const N of k){const W=H(T,N);W?_e(n.errors,N,W):Ke(n.errors,N)}else n.errors=T;return T},F=async(k,T,N={valid:!0})=>{for(const W in k){const B=k[W];if(B){const{_f:U,...Y}=B;if(U){const pe=a.array.has(U.name),Ce=B._f&&kR(B._f);Ce&&c.validatingFields&&w([W],!0);const St=await Kv(B,a.disabled,i,m,t.shouldUseNativeValidation&&!T,pe);if(Ce&&c.validatingFields&&w([W]),St[U.name]&&(N.valid=!1,T))break;!T&&(H(St,U.name)?pe?NR(n.errors,St,U.name):_e(n.errors,U.name,St[U.name]):Ke(n.errors,U.name))}!Ct(Y)&&await F(Y,T,N)}}return N.valid},$=()=>{for(const k of a.unMount){const T=H(r,k);T&&(T._f.refs?T._f.refs.every(N=>!Md(N)):!Md(T._f.ref))&&ge(k)}a.unMount=new Set},J=(k,T)=>!t.disabled&&(k&&T&&_e(i,k,T),!gr(V(),s)),I=(k,T,N)=>h_(k,a,{...o.mount?i:We(T)?s:qn(k)?{[k]:T}:T},N,T),K=k=>sp(H(o.mount?i:s,k,t.shouldUnregister?H(s,k,[]):[])),M=(k,T,N={})=>{const W=H(r,k);let B=T;if(W){const U=W._f;U&&(!U.disabled&&_e(i,k,w_(T,U)),B=Gu(U.ref)&&yt(T)?"":T,p_(U.ref)?[...U.ref.options].forEach(Y=>Y.selected=B.includes(Y.value)):U.refs?ul(U.ref)?U.refs.forEach(Y=>{(!Y.defaultChecked||!Y.disabled)&&(Array.isArray(B)?Y.checked=!!B.find(pe=>pe===Y.value):Y.checked=B===Y.value||!!B)}):U.refs.forEach(Y=>Y.checked=Y.value===B):lp(U.ref)?U.ref.value="":(U.ref.value=B,U.ref.type||h.state.next({name:k,values:Ze(i)})))}(N.shouldDirty||N.shouldTouch)&&S(k,B,N.shouldTouch,N.shouldDirty,!0),N.shouldValidate&&R(k)},ee=(k,T,N)=>{for(const W in T){if(!T.hasOwnProperty(W))return;const B=T[W],U=k+"."+W,Y=H(r,U);(a.array.has(k)||qe(B)||Y&&!Y._f)&&!Fs(B)?ee(U,B,N):M(U,B,N)}},Q=(k,T,N={})=>{const W=H(r,k),B=a.array.has(k),U=Ze(T);_e(i,k,U),B?(h.array.next({name:k,values:Ze(i)}),(c.isDirty||c.dirtyFields||f.isDirty||f.dirtyFields)&&N.shouldDirty&&h.state.next({name:k,dirtyFields:Wo(s,i),isDirty:J(k,U)})):W&&!W._f&&!yt(U)?ee(k,U,N):M(k,U,N),Wv(k,a)&&h.state.next({...n,name:k}),h.state.next({name:o.mount?k:void 0,values:Ze(i)})},D=async k=>{o.mount=!0;const T=k.target;let N=T.name,W=!0;const B=H(r,N),U=Ce=>{W=Number.isNaN(Ce)||Fs(Ce)&&isNaN(Ce.getTime())||gr(Ce,H(i,N,Ce))},Y=Bv(t.mode),pe=Bv(t.reValidateMode);if(B){let Ce,St;const ir=T.type?Uv(B._f):c_(k),Dn=k.type===Yu.BLUR||k.type===Yu.FOCUS_OUT,pl=!SR(B._f)&&!t.resolver&&!H(n.errors,N)&&!B._f.deps||ER(Dn,H(n.touchedFields,N),n.isSubmitted,pe,Y),Cs=Wv(N,a,Dn);_e(i,N,ir),Dn?(!T||!T.readOnly)&&(B._f.onBlur&&B._f.onBlur(k),l&&l(0)):B._f.onChange&&B._f.onChange(k);const In=S(N,ir,Dn),gl=!Ct(In)||Cs;if(!Dn&&h.state.next({name:N,type:k.type,values:Ze(i)}),pl)return(c.isValid||f.isValid)&&(t.mode==="onBlur"?Dn&&g():Dn||g()),gl&&h.state.next({name:N,...Cs?{}:In});if(!Dn&&Cs&&h.state.next({...n}),t.resolver){const{errors:or}=await E([N]);if(U(ir),W){const Wc=Hv(n.errors,r,N),vl=Hv(or,r,Wc.name||N);Ce=vl.error,N=vl.name,St=Ct(or)}}else w([N],!0),Ce=(await Kv(B,a.disabled,i,m,t.shouldUseNativeValidation))[N],w([N]),U(ir),W&&(Ce?St=!1:(c.isValid||f.isValid)&&(St=await F(r,!0)));W&&(B._f.deps&&R(B._f.deps),C(N,St,Ce,In))}},j=(k,T)=>{if(H(n.errors,T)&&k.focus)return k.focus(),1},R=async(k,T={})=>{let N,W;const B=ma(k);if(t.resolver){const U=await A(We(k)?k:B);N=Ct(U),W=k?!B.some(Y=>H(U,Y)):N}else k?(W=(await Promise.all(B.map(async U=>{const Y=H(r,U);return await F(Y&&Y._f?{[U]:Y}:Y)}))).every(Boolean),!(!W&&!n.isValid)&&g()):W=N=await F(r);return h.state.next({...!qn(k)||(c.isValid||f.isValid)&&N!==n.isValid?{}:{name:k},...t.resolver||!k?{isValid:N}:{},errors:n.errors}),T.shouldFocus&&!W&&pa(r,j,k?B:a.mount),W},V=k=>{const T={...o.mount?i:s};return We(k)?T:qn(k)?H(T,k):k.map(N=>H(T,N))},ne=(k,T)=>({invalid:!!H((T||n).errors,k),isDirty:!!H((T||n).dirtyFields,k),error:H((T||n).errors,k),isValidating:!!H(n.validatingFields,k),isTouched:!!H((T||n).touchedFields,k)}),te=k=>{k&&ma(k).forEach(T=>Ke(n.errors,T)),h.state.next({errors:k?n.errors:{}})},ce=(k,T,N)=>{const W=(H(r,k,{_f:{}})._f||{}).ref,B=H(n.errors,k)||{},{ref:U,message:Y,type:pe,...Ce}=B;_e(n.errors,k,{...Ce,...T,ref:W}),h.state.next({name:k,errors:n.errors,isValid:!1}),N&&N.shouldFocus&&W&&W.focus&&W.focus()},de=(k,T)=>_n(k)?h.state.subscribe({next:N=>"values"in N&&k(I(void 0,T),N)}):I(k,T,!0),Le=k=>h.state.subscribe({next:T=>{jR(k.name,T.name,k.exact)&&CR(T,k.formState||c,Ro,k.reRenderRoot)&&k.callback({values:{...i},...n,...T,defaultValues:s})}}).unsubscribe,tt=k=>(o.mount=!0,f={...f,...k.formState},Le({...k,formState:f})),ge=(k,T={})=>{for(const N of k?ma(k):a.mount)a.mount.delete(N),a.array.delete(N),T.keepValue||(Ke(r,N),Ke(i,N)),!T.keepError&&Ke(n.errors,N),!T.keepDirty&&Ke(n.dirtyFields,N),!T.keepTouched&&Ke(n.touchedFields,N),!T.keepIsValidating&&Ke(n.validatingFields,N),!t.shouldUnregister&&!T.keepDefaultValue&&Ke(s,N);h.state.next({values:Ze(i)}),h.state.next({...n,...T.keepDirty?{isDirty:J()}:{}}),!T.keepIsValid&&g()},nr=({disabled:k,name:T})=>{($t(k)&&o.mount||k||a.disabled.has(T))&&(k?a.disabled.add(T):a.disabled.delete(T))},Gt=(k,T={})=>{let N=H(r,k);const W=$t(T.disabled)||$t(t.disabled);return _e(r,k,{...N||{},_f:{...N&&N._f?N._f:{ref:{name:k}},name:k,mount:!0,...T}}),a.mount.add(k),N?nr({disabled:$t(T.disabled)?T.disabled:t.disabled,name:k}):_(k,!0,T.value),{...W?{disabled:T.disabled||t.disabled}:{},...t.progressive?{required:!!T.required,min:Ho(T.min),max:Ho(T.max),minLength:Ho(T.minLength),maxLength:Ho(T.maxLength),pattern:Ho(T.pattern)}:{},name:k,onChange:D,onBlur:D,ref:B=>{if(B){Gt(k,T),N=H(r,k);const U=We(B.value)&&B.querySelectorAll&&B.querySelectorAll("input,select,textarea")[0]||B,Y=wR(U),pe=N._f.refs||[];if(Y?pe.find(Ce=>Ce===U):U===N._f.ref)return;_e(r,k,{_f:{...N._f,...Y?{refs:[...pe.filter(Md),U,...Array.isArray(H(s,k))?[{}]:[]],ref:{type:U.type,name:k}}:{ref:U}}}),_(k,!1,void 0,U)}else N=H(r,k,{}),N._f&&(N._f.mount=!1),(t.shouldUnregister||T.shouldUnregister)&&!(d_(a.array,k)&&o.action)&&a.unMount.add(k)}}},an=()=>t.shouldFocusError&&pa(r,j,a.mount),Rn=k=>{$t(k)&&(h.state.next({disabled:k}),pa(r,(T,N)=>{const W=H(r,N);W&&(T.disabled=W._f.disabled||k,Array.isArray(W._f.refs)&&W._f.refs.forEach(B=>{B.disabled=W._f.disabled||k}))},0,!1))},rr=(k,T)=>async N=>{let W;N&&(N.preventDefault&&N.preventDefault(),N.persist&&N.persist());let B=Ze(i);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:U,values:Y}=await E();n.errors=U,B=Ze(Y)}else await F(r);if(a.disabled.size)for(const U of a.disabled)Ke(B,U);if(Ke(n.errors,"root"),Ct(n.errors)){h.state.next({errors:{}});try{await k(B,N)}catch(U){W=U}}else T&&await T({...n.errors},N),an(),setTimeout(an);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ct(n.errors)&&!W,submitCount:n.submitCount+1,errors:n.errors}),W)throw W},An=(k,T={})=>{H(r,k)&&(We(T.defaultValue)?Q(k,Ze(H(s,k))):(Q(k,T.defaultValue),_e(s,k,Ze(T.defaultValue))),T.keepTouched||Ke(n.touchedFields,k),T.keepDirty||(Ke(n.dirtyFields,k),n.isDirty=T.defaultValue?J(k,Ze(H(s,k))):J()),T.keepError||(Ke(n.errors,k),c.isValid&&g()),h.state.next({...n}))},Ss=(k,T={})=>{const N=k?Ze(k):s,W=Ze(N),B=Ct(k),U=B?s:W;if(T.keepDefaultValues||(s=N),!T.keepValues){if(T.keepDirtyValues){const Y=new Set([...a.mount,...Object.keys(Wo(s,i))]);for(const pe of Array.from(Y))H(n.dirtyFields,pe)?_e(U,pe,H(i,pe)):Q(pe,H(U,pe))}else{if(rp&&We(k))for(const Y of a.mount){const pe=H(r,Y);if(pe&&pe._f){const Ce=Array.isArray(pe._f.refs)?pe._f.refs[0]:pe._f.ref;if(Gu(Ce)){const St=Ce.closest("form");if(St){St.reset();break}}}}if(T.keepFieldsRef)for(const Y of a.mount)Q(Y,H(U,Y));else r={}}i=t.shouldUnregister?T.keepDefaultValues?Ze(s):{}:Ze(U),h.array.next({values:{...U}}),h.state.next({values:{...U}})}a={mount:T.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!c.isValid||!!T.keepIsValid||!!T.keepDirtyValues,o.watch=!!t.shouldUnregister,h.state.next({submitCount:T.keepSubmitCount?n.submitCount:0,isDirty:B?!1:T.keepDirty?n.isDirty:!!(T.keepDefaultValues&&!gr(k,s)),isSubmitted:T.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:B?{}:T.keepDirtyValues?T.keepDefaultValues&&i?Wo(s,i):n.dirtyFields:T.keepDefaultValues&&k?Wo(s,k):T.keepDirty?n.dirtyFields:{},touchedFields:T.keepTouched?n.touchedFields:{},errors:T.keepErrors?n.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},ci=(k,T)=>Ss(_n(k)?k(i):k,T),di=(k,T={})=>{const N=H(r,k),W=N&&N._f;if(W){const B=W.refs?W.refs[0]:W.ref;B.focus&&(B.focus(),T.shouldSelect&&_n(B.select)&&B.select())}},Ro=k=>{n={...n,...k}},sr={control:{register:Gt,unregister:ge,getFieldState:ne,handleSubmit:rr,setError:ce,_subscribe:Le,_runSchema:E,_focusError:an,_getWatch:I,_getDirty:J,_setValid:g,_setFieldArray:y,_setDisabledField:nr,_setErrors:v,_getFieldArray:K,_reset:Ss,_resetDefaultValues:()=>_n(t.defaultValues)&&t.defaultValues().then(k=>{ci(k,t.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:$,_disableForm:Rn,_subjects:h,_proxyFormState:c,get _fields(){return r},get _formValues(){return i},get _state(){return o},set _state(k){o=k},get _defaultValues(){return s},get _names(){return a},set _names(k){a=k},get _formState(){return n},get _options(){return t},set _options(k){t={...t,...k}}},subscribe:tt,trigger:R,register:Gt,handleSubmit:rr,watch:de,setValue:Q,getValues:V,reset:ci,resetField:An,clearErrors:te,unregister:ge,setError:ce,setFocus:di,getFieldState:ne};return{...sr,formControl:sr}}function RR(e={}){const t=P.useRef(void 0),n=P.useRef(void 0),[r,s]=P.useState({isDirty:!1,isValidating:!1,isLoading:_n(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:_n(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!_n(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:o,...a}=OR(e);t.current={...a,formState:r}}const i=t.current.control;return i._options=e,ap(()=>{const o=i._subscribe({formState:i._proxyFormState,callback:()=>s({...i._formState}
vendor: 4,287 bytes, line 202
202),reRenderRoot:!0});return s(a=>({...a,isReady:!0})),i._formState.isReady=!0,o},[i]),P.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),P.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),P.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),P.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),P.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),P.useEffect(()=>{e.values&&!gr(e.values,n.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[i,e.values]),P.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=f_(r,i),t.current}const Yv=(e,t,n)=>{if(e&&"reportValidity"in e){const r=H(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},b_=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Yv(r.ref,n,e):r.refs&&r.refs.forEach(s=>Yv(s,n,e))}},AR=(e,t)=>{t.shouldUseNativeValidation&&b_(e,t);const n={};for(const r in e){const s=H(t.fields,r),i=Object.assign(e[r]||{},{ref:s&&s.ref});if(DR(t.names||Object.keys(e),r)){const o=Object.assign({},H(n,r));_e(o,"root",i),_e(n,r,o)}else _e(n,r,i)}return n},DR=(e,t)=>e.some(n=>n.startsWith(t+"."));var IR=function(e,t){for(var n={};e.length;){var r=e[0],s=r.code,i=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var a=r.unionErrors[0].errors[0];n[o]={message:a.message,type:a.code}}else n[o]={message:i,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(c){return c.errors.forEach(function(f){return e.push(f)})}),t){var l=n[o].types,u=l&&l[r.code];n[o]=m_(o,t,n,s,u?[].concat(u,r.message):r.message)}e.shift()}return n},MR=function(e,t,n){return n===void 0&&(n={}),function(r,s,i){try{return Promise.resolve(function(o,a){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(u){return i.shouldUseNativeValidation&&b_({},i),{errors:{},values:n.raw?r:u}})}catch(u){return a(u)}return l&&l.then?l.then(void 0,a):l}(0,function(o){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(o))return{values:{},errors:AR(IR(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},be;(function(e){e.assertEqual=s=>{};function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},e.getValidEnumValues=s=>{const i=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of i)o[a]=s[a];return e.objectValues(o)},e.objectValues=s=>e.objectKeys(s).map(function(i){return s[i]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},e.find=(s,i)=>{for(const o of s)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(be||(be={}));var Gv;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Gv||(Gv={}));const Z=be.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Wr=e=>{switch(typeof e){case"undefined":return Z.undefined;case"string":return Z.string;case"number":return Number.isNaN(e)?Z.nan:Z.number;case"boolean":return Z.boolean;case"function":return Z.function;case"bigint":return Z.bigint;case"symbol":return Z.symbol;case"object":return Array.isArray(e)?Z.array:e===null?Z.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Z.promise:typeof Map<"u"&&e instanceof Map?Z.map:typeof Set<"u"&&e instanceof Set?Z.set:typeof Date<"u"&&e instanceof Date?Z.date:Z.object;default:return Z.unknown}}
vendor: 4,685 bytes, line 202
202,z=be.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Tr extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},r={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let a=r,l=0;for(;l<o.path.length;){const u=o.path[l];l===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(o))):a[u]=a[u]||{_errors:[]},a=a[u],l++}}};return s(this),r}static assert(t){if(!(t instanceof Tr))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,be.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const s of this.issues)if(s.path.length>0){const i=s.path[0];n[i]=n[i]||[],n[i].push(t(s))}else r.push(t(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Tr.create=e=>new Tr(e);const xh=(e,t)=>{let n;switch(e.code){case z.invalid_type:e.received===Z.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case z.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,be.jsonStringifyReplacer)}`;break;case z.unrecognized_keys:n=`Unrecognized key(s) in object: ${be.joinValues(e.keys,", ")}`;break;case z.invalid_union:n="Invalid input";break;case z.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${be.joinValues(e.options)}`;break;case z.invalid_enum_value:n=`Invalid enum value. Expected ${be.joinValues(e.options)}, received '${e.received}'`;break;case z.invalid_arguments:n="Invalid function arguments";break;case z.invalid_return_type:n="Invalid function return type";break;case z.invalid_date:n="Invalid date";break;case z.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:be.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case z.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case z.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case z.custom:n="Invalid input";break;case z.invalid_intersection_types:n="Intersection results could not be merged";break;case z.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case z.not_finite:n="Number must be finite";break;default:n=t.defaultError,be.assertNever(e)}return{message:n}};let LR=xh;function FR(){return LR}const $R=e=>
vendor: 7,205 bytes, line 202
202{const{data:t,path:n,errorMaps:r,issueData:s}=e,i=[...n,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)a=u(o,{data:t,defaultError:a}).message;return{...s,path:i,message:a}};function q(e,t){const n=FR(),r=$R({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===xh?void 0:xh].filter(s=>!!s)});e.common.issues.push(r)}class Ht{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const s of n){if(s.status==="aborted")return se;s.status==="dirty"&&t.dirty(),r.push(s.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const s of n){const i=await s.key,o=await s.value;r.push({key:i,value:o})}return Ht.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const s of n){const{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return se;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const se=Object.freeze({status:"aborted"}),ea=e=>({status:"dirty",value:e}),on=e=>({status:"valid",value:e}),Qv=e=>e.status==="aborted",Zv=e=>e.status==="dirty",vo=e=>e.status==="valid",Xu=e=>typeof Promise<"u"&&e instanceof Promise;var X;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(X||(X={}));class vs{constructor(t,n,r,s){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Xv=(e,t)=>{if(vo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Tr(e.common.issues);return this._error=n,this._error}}};function fe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:s}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(o,a)=>{const{message:l}=e;return o.code==="invalid_enum_value"?{message:l??a.defaultError}:typeof a.data>"u"?{message:l??r??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:l??n??a.defaultError}},description:s}}class we{get description(){return this._def.description}_getType(t){return Wr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Wr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ht,ctx:{common:t.parent.common,data:t.data,parsedType:Wr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Xu(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wr(t)},s=this._parseSync({data:t,path:r.path,parent:r});return Xv(r,s)}"~validate"(t){var r,s;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wr(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:n});return vo(i)?{value:i.value}:{issues:n.common.issues}}catch(i){(s=(r=i==null?void 0:i.message)==null?void 0:r.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(i=>vo(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wr(t)},s=this._parse({data:t,path:r.path,parent:r}),i=await(Xu(s)?s:Promise.resolve(s));return Xv(r,i)}refine(t,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,i)=>{const o=t(s),a=()=>i.addIssue({code:z.custom,...r(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,s)=>t(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(t){return new wo({schema:this,typeName:ie.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return fs.create(this,this._def)}nullable(){return xo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Zn.create(this)}promise(){return tc.create(this,this._def)}or(t){return Ju.create([this,t],this._def)}and(t){return ec.create(this,t,this._def)}transform(t){return new wo({...fe(this._def),schema:this,typeName:ie.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new _h({...fe(this._def),innerType:this,defaultValue:n,typeName:ie.ZodDefault})}brand(){return new lA({typeName:ie.ZodBranded,type:this,...fe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new kh({...fe(this._def),innerType:this,catchValue:n,typeName:ie.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return cp.create(this,t)}readonly(){return Sh.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const zR=/^c[^\s-]{8,}
vendor: 4,604 bytes, line 202
202$/i,UR=/^[0-9a-z]+$/,BR=/^[0-9A-HJKMNP-TV-Z]{26}$/i,VR=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,WR=/^[a-z0-9_-]{21}$/i,HR=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,qR=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,KR=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,YR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ld;const GR=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,QR=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ZR=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,XR=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,JR=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,eA=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,__="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",tA=new RegExp(`^${__}$`);function k_(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function nA(e){return new RegExp(`^${k_(e)}$`)}function rA(e){let t=`${__}T${k_(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function sA(e,t){return!!((t==="v4"||!t)&&GR.test(e)||(t==="v6"||!t)&&ZR.test(e))}function iA(e,t){if(!HR.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}function oA(e,t){return!!((t==="v4"||!t)&&QR.test(e)||(t==="v6"||!t)&&XR.test(e))}class ns extends we{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Z.string){const i=this._getOrReturnCtx(t);return q(i,{code:z.invalid_type,expected:Z.string,received:i.parsedType}),se}const r=new Ht;let s;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(s=this._getOrReturnCtx(t,s),q(s,{code:z.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(s=this._getOrReturnCtx(t,s),q(s,{code:z.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.length<i.value;(o||a)&&(s=this._getOrReturnCtx(t,s),o?q(s,{code:z.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&q(s,{code:z.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")KR.test(t.data)||(s=this._getOrReturnCtx(t,s),q(s,{validation:"email",code:z.invali
vendor: 5,578 bytes, line 202
202d_string,message:i.message}),r.dirty());else if(i.kind==="emoji")Ld||(Ld=new RegExp(YR,"u")),Ld.test(t.data)||(s=this._getOrReturnCtx(t,s),q(s,{validation:"emoji",code:z.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")VR.test(t.data)||(s=this._getOrReturnCtx(t,s),q(s,{validation:"uuid",code:z.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")WR.test(t.data)||(s=this._getOrReturnCtx(t,s),q(s,{validation:"nanoid",code:z.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")zR.test(t.data)||(s=this._getOrReturnCtx(t,s),q(s,{validation:"cuid",code:z.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")UR.test(t.data)||(s=this._getOrReturnCtx(t,s),q(s,{validation:"cuid2",code:z.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")BR.test(t.data)||(s=this._getOrReturnCtx(t,s),q(s,{validation:"ulid",code:z.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),q(s,{validation:"url",code:z.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),q(s,{validation:"regex",code:z.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(t,s),q(s,{code:z.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(s=this._getOrReturnCtx(t,s),q(s,{code:z.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(s=this._getOrReturnCtx(t,s),q(s,{code:z.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?rA(i).test(t.data)||(s=this._getOrReturnCtx(t,s),q(s,{code:z.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?tA.test(t.data)||(s=this._getOrReturnCtx(t,s),q(s,{code:z.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?nA(i).test(t.data)||(s=this._getOrReturnCtx(t,s),q(s,{code:z.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?qR.test(t.data)||(s=this._getOrReturnCtx(t,s),q(s,{validation:"duration",code:z.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?sA(t.data,i.version)||(s=this._getOrReturnCtx(t,s),q(s,{validation:"ip",code:z.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?iA(t.data,i.alg)||(s=this._getOrReturnCtx(t,s),q(s,{validation:"jwt",code:z.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?oA(t.data,i.version)||(s=this._getOrReturnCtx(t,s),q(s,{validation:"cidr",code:z.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?JR.test(t.data)||(s=this._getOrReturnCtx(t,s),q(s,{validation:"base64",code:z.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?eA.test(t.data)||(s=this._getOrReturnCtx(t,s),q(s,{validation:"base64url",code:z.invalid_string,message:i.message}),r.dirty()):be.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(s=>t.test(s),{validation:n,code:z.invalid_string,...X.errToObj(r)})}_addCheck(t){return new ns({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...X.errToObj(t)})}url(t){return this._addCheck({kind:"url",...X.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...X.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...X.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...X.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...X.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...X.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...X.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...X.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...X.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...X.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...X.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...X.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...X.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...X.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...X.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...X.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...X.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...X.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...X.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...X.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...X.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...X.errToObj(n)})}
vendor: 5,026 bytes, line 202
202nonempty(t){return this.min(1,X.errToObj(t))}trim(){return new ns({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ns({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ns({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}ns.create=e=>new ns({checks:[],typeName:ie.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...fe(e)});function aA(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=n>r?n:r,i=Number.parseInt(e.toFixed(s).replace(".","")),o=Number.parseInt(t.toFixed(s).replace(".",""));return i%o/10**s}class Ba extends we{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Z.number){const i=this._getOrReturnCtx(t);return q(i,{code:z.invalid_type,expected:Z.number,received:i.parsedType}),se}let r;const s=new Ht;for(const i of this._def.checks)i.kind==="int"?be.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),q(r,{code:z.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),q(r,{code:z.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),q(r,{code:z.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?aA(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),q(r,{code:z.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),q(r,{code:z.not_finite,message:i.message}),s.dirty()):be.assertNever(i);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,X.toString(n))}gt(t,n){return this.setLimit("min",t,!1,X.toString(n))}lte(t,n){return this.setLimit("max",t,!0,X.toString(n))}lt(t,n){return this.setLimit("max",t,!1,X.toString(n))}setLimit(t,n,r,s){return new Ba({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:X.toString(s)}]})}_addCheck(t){return new Ba({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:X.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:X.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:X.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:X.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:X.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:X.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:X.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:X.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:X.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&be.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}
vendor: 4,098 bytes, line 202
202}Ba.create=e=>new Ba({checks:[],typeName:ie.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...fe(e)});class Va extends we{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Z.bigint)return this._getInvalidInput(t);let r;const s=new Ht;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),q(r,{code:z.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),q(r,{code:z.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),q(r,{code:z.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):be.assertNever(i);return{status:s.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return q(n,{code:z.invalid_type,expected:Z.bigint,received:n.parsedType}),se}gte(t,n){return this.setLimit("min",t,!0,X.toString(n))}gt(t,n){return this.setLimit("min",t,!1,X.toString(n))}lte(t,n){return this.setLimit("max",t,!0,X.toString(n))}lt(t,n){return this.setLimit("max",t,!1,X.toString(n))}setLimit(t,n,r,s){return new Va({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:X.toString(s)}]})}_addCheck(t){return new Va({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:X.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:X.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:X.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:X.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:X.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Va.create=e=>new Va({checks:[],typeName:ie.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...fe(e)});class Jv extends we{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Z.boolean){const r=this._getOrReturnCtx(t);return q(r,{code:z.invalid_type,expected:Z.boolean,received:r.parsedType}),se}return on(t.data)}}Jv.create=e=>new Jv({typeName:ie.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...fe(e)});class Wa extends we{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Z.date){const i=this._getOrReturnCtx(t);return q(i,{code:z.invalid_type,expected:Z.date,received:i.parsedType}),se}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return q(i,{code:z.invalid_date}),se}const r=new Ht;let s;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(s=this._getOrReturnCtx(t,s),q(s,{code:z.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(s=this._getOrReturnCtx(t,s),q(s,{code:z.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):be.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Wa({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:X.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:X.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Wa.create=e=>new Wa({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ie.ZodD
vendor: 8,492 bytes, line 202
202ate,...fe(e)});class ey extends we{_parse(t){if(this._getType(t)!==Z.symbol){const r=this._getOrReturnCtx(t);return q(r,{code:z.invalid_type,expected:Z.symbol,received:r.parsedType}),se}return on(t.data)}}ey.create=e=>new ey({typeName:ie.ZodSymbol,...fe(e)});class ty extends we{_parse(t){if(this._getType(t)!==Z.undefined){const r=this._getOrReturnCtx(t);return q(r,{code:z.invalid_type,expected:Z.undefined,received:r.parsedType}),se}return on(t.data)}}ty.create=e=>new ty({typeName:ie.ZodUndefined,...fe(e)});class ny extends we{_parse(t){if(this._getType(t)!==Z.null){const r=this._getOrReturnCtx(t);return q(r,{code:z.invalid_type,expected:Z.null,received:r.parsedType}),se}return on(t.data)}}ny.create=e=>new ny({typeName:ie.ZodNull,...fe(e)});class ry extends we{constructor(){super(...arguments),this._any=!0}_parse(t){return on(t.data)}}ry.create=e=>new ry({typeName:ie.ZodAny,...fe(e)});class sy extends we{constructor(){super(...arguments),this._unknown=!0}_parse(t){return on(t.data)}}sy.create=e=>new sy({typeName:ie.ZodUnknown,...fe(e)});class ys extends we{_parse(t){const n=this._getOrReturnCtx(t);return q(n,{code:z.invalid_type,expected:Z.never,received:n.parsedType}),se}}ys.create=e=>new ys({typeName:ie.ZodNever,...fe(e)});class iy extends we{_parse(t){if(this._getType(t)!==Z.undefined){const r=this._getOrReturnCtx(t);return q(r,{code:z.invalid_type,expected:Z.void,received:r.parsedType}),se}return on(t.data)}}iy.create=e=>new iy({typeName:ie.ZodVoid,...fe(e)});class Zn extends we{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),s=this._def;if(n.parsedType!==Z.array)return q(n,{code:z.invalid_type,expected:Z.array,received:n.parsedType}),se;if(s.exactLength!==null){const o=n.data.length>s.exactLength.value,a=n.data.length<s.exactLength.value;(o||a)&&(q(n,{code:o?z.too_big:z.too_small,minimum:a?s.exactLength.value:void 0,maximum:o?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(q(n,{code:z.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(q(n,{code:z.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>s.type._parseAsync(new vs(n,o,n.path,a)))).then(o=>Ht.mergeArray(r,o));const i=[...n.data].map((o,a)=>s.type._parseSync(new vs(n,o,n.path,a)));return Ht.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Zn({...this._def,minLength:{value:t,message:X.toString(n)}})}max(t,n){return new Zn({...this._def,maxLength:{value:t,message:X.toString(n)}})}length(t,n){return new Zn({...this._def,exactLength:{value:t,message:X.toString(n)}})}nonempty(t){return this.min(1,t)}}Zn.create=(e,t)=>new Zn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ie.ZodArray,...fe(t)});function ji(e){if(e instanceof Be){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=fs.create(ji(r))}return new Be({...e._def,shape:()=>t})}else return e instanceof Zn?new Zn({...e._def,type:ji(e.element)}):e instanceof fs?fs.create(ji(e.unwrap())):e instanceof xo?xo.create(ji(e.unwrap())):e instanceof ni?ni.create(e.items.map(t=>ji(t))):e}class Be extends we{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=be.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Z.object){const u=this._getOrReturnCtx(t);return q(u,{code:z.invalid_type,expected:Z.object,received:u.parsedType}),se}const{status:r,ctx:s}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof ys&&this._def.unknownKeys==="strip"))for(const u in s.data)o.includes(u)||a.push(u);const l=[];for(const u of o){const c=i[u],f=s.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new vs(s,f,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof ys){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of a)l.push({key:{status:"valid",value:c},value:{status:"valid",value:s.data[c]}});else if(u==="strict")a.length>0&&(q(s,{code:z.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of a){const f=s.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new vs(s,f,s.path,c)),alwaysSet:c in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const f=await c.key,h=await c.value;u.push({key:f,value:h,alwaysSet:c.alwaysSet})}return u}).then(u=>Ht.mergeObjectSync(r,u)):Ht.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return X.errToObj,new Be({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,o;const s=((o=(i=this._def).errorMap)==null?void 0:o.call(i,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:X.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new Be({...this._def,unknownKeys:"strip"})}passthrough(){return new Be({...this._def,unknownKeys:"passthrough"})}extend(t){return new Be({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Be({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ie.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Be({...this._def,catchall:t})}pick(t){const n={};for(const r of be.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Be({...this._def,shape:()=>n})}omit(t){const n={};for(const r of be.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Be({...this._def,shape:()=>n})}deepPartial(){return ji(this)}partial(t){const n={};for(const r of be.objectKeys(this.shape)){const s=this.shape[r];t&&!t[r]?n[r]=s:n[r]=s.optional()}return new Be({...this._def,shape:()=>n})}required(t){const n={};for(const r of be.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof fs;)i=i._def.innerType;n[r]=i}return new Be({...this._def,shape:()=>n})}keyof(){return S_(be.objectKeys(this.shape))}}Be.create=(e,t)=>new Be({shape:()=>e,unknownKeys:"strip",catchall:ys.create(),typeName:ie.ZodObject,...fe(t)});Be.strictCreate=(e,t)=>new Be({shape:()=>e,unknownKeys:"strict",catchall:ys.create(),typeName:ie.ZodObject,...fe(t)});Be.lazycreate=(e,t)=>new Be({shape:e,unknownKeys:"strip",catchall:ys.create(),typeName:ie.ZodObject,...fe(t)});class Ju extends we{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function s(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new Tr(a.ctx.common.issues));return q(n,{code:z.invalid_union,unionErrors:o}),se}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(s);{let i;const o=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!i&&(i={result:c,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(l=>new Tr(l));return q(n,{code:z.invalid_union,unionErrors:a}),se}}get options(){return this._def.options}}Ju.create=(e,t)=>new Ju({options:e,typeName:ie.ZodUnion,...fe(t)});function bh(e,t){const n=Wr(e),r=Wr(t);if(e===t)return{valid:!0,data:e};if(n===Z.object&&r===Z.object){const s=be.objectKeys(t),i=be.objectKeys(e).filter(a=>s.indexOf(a)!==-1),o={...e,...t};for(const a of i){const l=bh(e[a],t[a]);if(!l.valid)return{valid:!1};o[a]=l.data}return{valid:!0,data:o}}else if(n===Z.array&&r===Z.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let i=0;i<e.length;i++){const o=e[i],a=t[i],l=bh(o,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return n===Z.date&&r===Z.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ec extends we{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=(i,o)=>
vendor: 4,074 bytes, line 202
202{if(Qv(i)||Qv(o))return se;const a=bh(i.value,o.value);return a.valid?((Zv(i)||Zv(o))&&n.dirty(),{status:n.value,value:a.data}):(q(r,{code:z.invalid_intersection_types}),se)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ec.create=(e,t,n)=>new ec({left:e,right:t,typeName:ie.ZodIntersection,...fe(n)});class ni extends we{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Z.array)return q(r,{code:z.invalid_type,expected:Z.array,received:r.parsedType}),se;if(r.data.length<this._def.items.length)return q(r,{code:z.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),se;!this._def.rest&&r.data.length>this._def.items.length&&(q(r,{code:z.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new vs(r,o,r.path,a)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>Ht.mergeArray(n,o)):Ht.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new ni({...this._def,rest:t})}}ni.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ni({items:e,typeName:ie.ZodTuple,rest:null,...fe(t)})};class oy extends we{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Z.map)return q(r,{code:z.invalid_type,expected:Z.map,received:r.parsedType}),se;const s=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([a,l],u)=>({key:s._parse(new vs(r,a,r.path,[u,"key"])),value:i._parse(new vs(r,l,r.path,[u,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of o){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return se;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of o){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return se;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}}}}oy.create=(e,t,n)=>new oy({valueType:t,keyType:e,typeName:ie.ZodMap,...fe(n)});class Ha extends we{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Z.set)return q(r,{code:z.invalid_type,expected:Z.set,received:r.parsedType}),se;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(q(r,{code:z.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(q(r,{code:z.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const i=this._def.valueType;function o(l){const u=new Set;for(const c of l){if(c.status==="aborted")return se;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const a=[...r.data.values()].map((l,u)=>i._parse(new vs(r,l,r.path,u)));return r.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(t,n){return new Ha({...this._def,minSize:{value:t,message:X.toString(n)}})}max(t,n){return new Ha({...this._def,maxSize:{value:t,message:X.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Ha.create=(e,t)=>new Ha({valueType:e,minSize:null,maxSize:null,typeName:ie.ZodSet,...fe(t)});class ay extends we{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}ay.create=(e,t)=>new ay({getter:e,typeName:ie.ZodLazy,...fe(t)});class ly extends we{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);
vendor: 4,225 bytes, line 202
202return q(n,{received:n.data,code:z.invalid_literal,expected:this._def.value}),se}return{status:"valid",value:t.data}}get value(){return this._def.value}}ly.create=(e,t)=>new ly({value:e,typeName:ie.ZodLiteral,...fe(t)});function S_(e,t){return new yo({values:e,typeName:ie.ZodEnum,...fe(t)})}class yo extends we{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return q(n,{expected:be.joinValues(r),received:n.parsedType,code:z.invalid_type}),se}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return q(n,{received:n.data,code:z.invalid_enum_value,options:r}),se}return on(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return yo.create(t,{...this._def,...n})}exclude(t,n=this._def){return yo.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}yo.create=S_;class uy extends we{_parse(t){const n=be.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Z.string&&r.parsedType!==Z.number){const s=be.objectValues(n);return q(r,{expected:be.joinValues(s),received:r.parsedType,code:z.invalid_type}),se}if(this._cache||(this._cache=new Set(be.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const s=be.objectValues(n);return q(r,{received:r.data,code:z.invalid_enum_value,options:s}),se}return on(t.data)}get enum(){return this._def.values}}uy.create=(e,t)=>new uy({values:e,typeName:ie.ZodNativeEnum,...fe(t)});class tc extends we{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Z.promise&&n.common.async===!1)return q(n,{code:z.invalid_type,expected:Z.promise,received:n.parsedType}),se;const r=n.parsedType===Z.promise?n.data:Promise.resolve(n.data);return on(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}tc.create=(e,t)=>new tc({type:e,typeName:ie.ZodPromise,...fe(t)});class wo extends we{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ie.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:o=>{q(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return se;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?se:l.status==="dirty"||n.value==="dirty"?ea(l.value):l});{if(n.value==="aborted")return se;const a=this._def.schema._parseSync({data:o,path:r.path,parent:r});return a.status==="aborted"?se:a.status==="dirty"||n.value==="dirty"?ea(a.value):a}}if(s.type==="refinement"){const o=a=>{const l=s.refinement(a,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?se:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?se:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!vo(o))return se;const a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>vo(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:n.value,value:a})):se);be.assertNever(s)}}
202wo.create=(e,t,n)=>new wo({schema:e,typeName:ie.ZodEffects,effect:t,...fe(n)});wo.createWithPreprocess=(e,t,n)=>new wo({schema:t,effect:{type:"preprocess",transform:e},typeName:ie.ZodEffects,...fe(n)});class fs extends we{_parse(t){return this._getType(t)===Z.undefined?on(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}fs.create=(e,t)=>new fs({innerType:e,typeName:ie.ZodOptional,...fe(t)});class xo extends we{_parse(t){return this._getType(t)===Z.null?on(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}xo.create=(e,t)=>new xo({innerType:e,typeName:ie.ZodNullable,...fe(t)});class _h extends we{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Z.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}_h.create=(e,t)=>new _h({innerType:e,typeName:ie.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...fe(t)});class kh extends we{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Xu(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Tr(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Tr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}kh.create=(e,t)=>new kh({innerType:e,typeName:ie.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...fe(t)});class cy extends we{_parse(t){if(this._getType(t)!==Z.nan){const r=this._getOrReturnCtx(t);return q(r,{code:z.invalid_type,expected:Z.nan,received:r.parsedType}),se}return{status:"valid",value:t.data}}}cy.create=e=>new cy({typeName:ie.ZodNaN,...fe(e)});class lA extends we{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class cp extends we{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?se:i.status==="dirty"?(n.dirty(),ea(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?se:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(t,n){return new cp({in:t,out:n,typeName:ie.ZodPipeline})}}class Sh extends we{_parse(t){const n=this._def.innerType._parse(t),r=s=>(vo(s)&&(s.value=Object.freeze(s.value)),s);return Xu(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}Sh.create=(e,t)=>new Sh({innerType:e,typeName:ie.ZodReadonly,...fe(t)});Be.lazycreate;var ie;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ie||(ie={}));const Hl=ns.create,uA=Wa.create;ys.create;Zn.create;const cA=Be.create;Be.strictCreate;Ju.create;ec.create;ni.create;yo.create;tc.create;fs.create;xo.create;function ye(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function qt(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function wt(e,t){const n=ye(e);return isNaN(t)?qt(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function Pn(e,t){const n=ye(e);if(isNaN(t))return qt(e,NaN);if(!t)return n;const r=n.getDate(),s=qt(e,n.getTime());s.setMonth(n.getMonth()+t+1,0);const i=s.getDate();return r>=i?s:(n.setFullYear(s.getFullYear(),s.getMonth(),r),n)}const dp=6048e5,dA=864e5;let fA={};function cl(){return fA}function er(e,t){var a,l,u,c;const n=cl(),r=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,s=ye(e),i=s.getDay(),o=(i<r?7:0)+i-r;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function ri(e){return er(e,{weekStartsOn:1}
202)}function C_(e){const t=ye(e),n=t.getFullYear(),r=qt(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=ri(r),i=qt(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const o=ri(i);return t.getTime()>=s.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function bo(e){const t=ye(e);return t.setHours(0,0,0,0),t}function nc(e){const t=ye(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Kn(e,t){const n=bo(e),r=bo(t),s=+n-nc(n),i=+r-nc(r);return Math.round((s-i)/dA)}function hA(e){const t=C_(e),n=qt(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),ri(n)}function Ch(e,t){const n=t*7;return wt(e,n)}function mA(e,t){return Pn(e,t*12)}function pA(e){let t;return e.forEach(function(n){const r=ye(n);(t===void 0||t<r||isNaN(Number(r)))&&(t=r)}),t||new Date(NaN)}function gA(e){let t;return e.forEach(n=>{const r=ye(n);(!t||t>r||isNaN(+r))&&(t=r)}),t||new Date(NaN)}function Rt(e,t){const n=bo(e),r=bo(t);return+n==+r}function fp(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function vA(e){if(!fp(e)&&typeof e!="number")return!1;const t=ye(e);return!isNaN(Number(t))}function qa(e,t){const n=ye(e),r=ye(t),s=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return s*12+i}function yA(e,t,n){const r=er(e,n),s=er(t,n),i=+r-nc(r),o=+s-nc(s);return Math.round((i-o)/dp)}function hp(e){const t=ye(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Mt(e){const t=ye(e);return t.setDate(1),t.setHours(0,0,0,0),t}function j_(e){const t=ye(e),n=qt(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function mp(e,t){var a,l,u,c;const n=cl(),r=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,s=ye(e),i=s.getDay(),o=(i<r?-7:0)+6-(i-r);return s.setDate(s.getDate()+o),s.setHours(23,59,59,999),s}function E_(e){return mp(e,{weekStartsOn:1})}const wA={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},xA=(e,t,n)=>{let r;const s=wA[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Fd(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const bA={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},_A={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},kA={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},SA={date:Fd({formats:bA,defaultWidth:"full"}),time:Fd({formats:_A,defaultWidth:"full"}),dateTime:Fd({formats:kA,defaultWidth:"full"})},CA={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},jA=(e,t,n,r)=>CA[e];function qo(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;s=e.formattingValues[a]||e.formattingValues[o]}else{const o=e.defaultWidth,a=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[a]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return s[i]}}const EA={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},TA={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},NA={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},PA={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
202ay","Saturday"]},OA={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},RA={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},AA=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},DA={ordinalNumber:AA,era:qo({values:EA,defaultWidth:"wide"}),quarter:qo({values:TA,defaultWidth:"wide",argumentCallback:e=>e-1}),month:qo({values:NA,defaultWidth:"wide"}),day:qo({values:PA,defaultWidth:"wide"}),dayPeriod:qo({values:OA,defaultWidth:"wide",formattingValues:RA,defaultFormattingWidth:"wide"})};function Ko(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(s);if(!i)return null;const o=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?MA(a,f=>f.test(o)):IA(a,f=>f.test(o));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(o.length);return{value:u,rest:c}}}function IA(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function MA(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function LA(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const s=r[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const a=t.slice(s.length);return{value:o,rest:a}}}const FA=/^(\d+)(th|st|nd|rd)?/i,$A=/\d+/i,zA={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},UA={any:[/^b/i,/^(a|c)/i]},BA={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},VA={any:[/1/i,/2/i,/3/i,/4/i]},WA={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},HA={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},qA={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},KA={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},YA={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},GA={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},QA={ordinalNumber:LA({matchPattern:FA,parsePattern:$A,valueCallback:e=>parseInt(e,10)}),era:Ko({matchPatterns:zA,defaultMatchWidth:"wide",parsePatterns:UA,defaultParseWidth:"any"}),quarter:Ko({matchPatterns:BA,defaultMatchWidth:"wide",parsePatterns:VA,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ko({matchPatterns:WA,defaultMatchWidth:"wide",parsePatterns:HA,defaultParseWidth:"any"}),day:Ko({matchPatterns:qA,defaultMatchWidth:"wide",parsePatterns:KA,defaultParseWidth:"any"}),dayPeriod:Ko({matchPatterns:YA,defaultMatchWidth:"any",parsePatterns:GA,defaultParseWidth:"any"})},T_={code:"en-US",formatDistance:xA,formatLong:SA,formatRelative:jA,localize:DA,match:QA,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ZA(e){const t=ye(e);return Kn(t,j_(t))+1}function N_(e){const t=ye(e),n=+ri(t)-+hA(t);return Math.round(n/dp)+1}function P_(e,t){var c,f,h,m;const n=ye(e),r=n.getFullYear(),s=cl(),i=(t==null?void 0:t.firstWeekContainsDate)??((f=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??s.firstWeekContainsDate??((m=(h=s.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??1,o=qt(e,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const a=er(o,t),l=qt(e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const u=er(l,t);return n.getTime()>=a.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function XA(e,t){var a,l,u,c;const n=cl(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,s=P_(e,t),i=qt(e,0);return i.setFullYear(s,0,r),i.setHours(0,0,0,0),er(i,t)}function O_(e,t){const n=ye(e),r=+er(n,t)-+XA(n,t);return Math.round(r/dp)+1}function ke(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Lr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ke(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ke(n+1,2)},d(e,t){return ke(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return ke(e.getHours()%12||12,t.length)},H(e,t){return ke(e.getHours(),t.length)},m(e,t){return ke(e.getMinutes(),t.length)},s(e,t){return ke(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return ke(s,t.length)}},xi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dy={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Lr.y(e,t)},Y:function(e,t,n,r){const s=P_(e,r),i=s>0?s:1-s;if(t==="YY"){const o=i%100;return ke(o,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):ke(i,t.length)},R:function(e,t){const n=C_(e);return ke(n,t.length)},u:function(e,t){const n=e.getFullYear();return ke(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ke(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ke(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Lr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ke(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const s=O_(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):ke(s,t.length)},I:function(e,t,n){const r=N_(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ke(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Lr.d(e,t)},D:function(e,t,n){const r=ZA(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ke(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const s=e.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return ke(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const s=e.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return ke(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),s=r===0?7:r;switch(t){case"i":return String(s);case"ii":return ke(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let s;switch(r===12?s=xi.noon:r===0?s=xi.midnight:s=r/12>
vendor: 4,693 bytes, line 202
202=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let s;switch(r>=17?s=xi.evening:r>=12?s=xi.afternoon:r>=4?s=xi.morning:s=xi.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Lr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Lr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ke(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ke(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Lr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Lr.s(e,t)},S:function(e,t){return Lr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return hy(r);case"XXXX":case"XX":return Rs(r);case"XXXXX":case"XXX":default:return Rs(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return hy(r);case"xxxx":case"xx":return Rs(r);case"xxxxx":case"xxx":default:return Rs(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+fy(r,":");case"OOOO":default:return"GMT"+Rs(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+fy(r,":");case"zzzz":default:return"GMT"+Rs(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return ke(r,t.length)},T:function(e,t,n){const r=e.getTime();return ke(r,t.length)}};function fy(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Math.trunc(r/60),i=r%60;return i===0?n+String(s):n+String(s)+t+ke(i,2)}function hy(e,t){return e%60===0?(e>0?"-":"+")+ke(Math.abs(e)/60,2):Rs(e,t)}function Rs(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=ke(Math.trunc(r/60),2),i=ke(r%60,2);return n+s+t+i}const my=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},R_=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},JA=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return my(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",my(r,t)).replace("{{time}}",R_(s,t))},eD={p:R_,P:JA},tD=/^D+$/,nD=/^Y+$/,rD=["D","DD","YY","YYYY"];function sD(e){return tD.test(e)}function iD(e){return nD.test(e)}function oD(e,t,n){const r=aD(e,t,n);if(console.warn(r),rD.includes(e))throw new RangeError(r)}function aD(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const lD=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,uD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,cD=/^'([^]*?)'?$/,dD=/''/g,fD=/[a-zA-Z]/;function Jt(e,t,n){var c,f,h,m,b,g,w,y;const r=cl(),s=(n==null?void 0:n.locale)??r.locale??T_,i=(n==null?void 0:n.firstWeekContainsDate)??((f=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((m=(h=r.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((g=(b=n==null?void 0:n.locale)==null?void 0:b.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((y=(w=r.locale)==null?void 0:w.options)==null?void 0:y.weekStartsOn)??0,a=ye(e);if(!vA(a))throw new RangeError("Invalid time value");let l=t.match(uD).map(p=>{const v=p[0];if(v==="p"||v==="P"){const _=eD[v];return _(p,s.formatLong)}return p}).join("").match(lD).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const v=p[0];if(v==="'")return{isToken:!1,value:hD(p)};if(dy[v])return{isToken:!0,value:p};
202if(v.match(fD))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:p}});s.localize.preprocessor&&(l=s.localize.preprocessor(a,l));const u={firstWeekContainsDate:i,weekStartsOn:o,locale:s};return l.map(p=>{if(!p.isToken)return p.value;const v=p.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&iD(v)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&sD(v))&&oD(v,t,String(e));const _=dy[v[0]];return _(a,v,s.localize,u)}).join("")}function hD(e){const t=e.match(cD);return t?t[1].replace(dD,"'"):e}function mD(e){const t=ye(e),n=t.getFullYear(),r=t.getMonth(),s=qt(e,0);return s.setFullYear(n,r+1,0),s.setHours(0,0,0,0),s.getDate()}function pD(e){return Math.trunc(+ye(e)/1e3)}function gD(e){const t=ye(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function vD(e,t){return yA(gD(e),Mt(e),t)+1}function jh(e,t){const n=ye(e),r=ye(t);return n.getTime()>r.getTime()}function A_(e,t){const n=ye(e),r=ye(t);return+n<+r}function pp(e,t){const n=ye(e),r=ye(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function yD(e,t){const n=ye(e),r=ye(t);return n.getFullYear()===r.getFullYear()}function $d(e,t){return wt(e,-t)}function zd(e,t){const n=ye(e),r=n.getFullYear(),s=n.getDate(),i=qt(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const o=mD(i);return n.setMonth(t,Math.min(s,o)),n}function py(e,t){const n=ye(e);return isNaN(+n)?qt(e,NaN):(n.setFullYear(t),n)}var re=function(){return re=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},re.apply(this,arguments)};function wD(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 D_(e,t,n){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))}function dl(e){return e.mode==="multiple"}function fl(e){return e.mode==="range"}function zc(e){return e.mode==="single"}var xD={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function bD(e,t){return Jt(e,"LLLL y",t)}function _D(e,t){return Jt(e,"d",t)}function kD(e,t){return Jt(e,"LLLL",t)}function SD(e){return"".concat(e)}function CD(e,t){return Jt(e,"cccccc",t)}function jD(e,t){return Jt(e,"yyyy",t)}var ED=Object.freeze({__proto__:null,formatCaption:bD,formatDay:_D,formatMonthCaption:kD,formatWeekNumber:SD,formatWeekdayName:CD,formatYearCaption:jD}),TD=function(e,t,n){return Jt(e,"do MMMM (EEEE)",n)},ND=function(){return"Month: "},PD=function(){return"Go to next month"},OD=function(){return"Go to previous month"},RD=function(e,t){return Jt(e,"cccc",t)},AD=function(e){return"Week n. ".concat(e)},DD=function(){return"Year: "},ID=Object.freeze({__proto__:null,labelDay:TD,labelMonthDropdown:ND,labelNext:PD,labelPrevious:OD,labelWeekNumber:AD,labelWeekday:RD,labelYearDropdown:DD});function MD(){var e="buttons",t=xD,n=T_,r={},s={},i=1,o={},a=new Date;return{captionLayout:e,classNames:t,formatters:ED,labels:ID,locale:n,modifiersClassNames:r,modifiers:s,numberOfMonths:i,styles:o,today:a,mode:"default"}}function LD(e){var t=e.fromYear,n=e.toYear,r=e.fromMonth,s=e.toMonth,i=e.fromDate,o=e.toDate;return r?i=Mt(r):t&&(i=new Date(t,0,1)),s?o=hp(s):n&&(o=new Date(n,11,31)),{fromDate:i?bo(i):void 0,toDate:o?bo(o):void 0}}var I_=x.createContext(void 0);function FD(e){var t,n=e.initialProps,r=MD(),s=LD(n),i=s.fromDate,o=s.toDate,a=(t=n.captionLayout)!==null&&t!==void 0?t:r.captionLayout;a!=="buttons"&&(!i||!o)&&(a="buttons");var l;(zc(n)||dl(n)||fl(n))&&(l=n.onSelect);var u=re(re(re({},r),n),{captionLayout:a,classNames:re(re({},r.classNames),n.classNames),components:re({},n.components),formatters:re(re({},r.formatters),n.formatters),fromDate:i,labels:re(re({},r.labels),n.labels),mode:n.mode||r.mode,modifiers:re(re({},r.modifiers),n.modifiers),modifiersClassNames:re(re({},r.modifiersClassNames),n.modifiersClassNames),onSelect:l,styles:re(re({},r.styles),n.styles),toDate:o});return d.jsx(I_.Provider,{value:u,children:e.children})}function Pe(){var e=x.useContext(I_);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function M_(e){var t=Pe(),n=t.locale,r=t.classNames,s=t.styles,i=t.formatters.formatCaption;return d.jsx("div",{className:r.caption_label,style:s.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:i(e.displayMonth,{locale:n})})}function $D(e){return d.jsx("svg",re({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:d.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.7
20278175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function L_(e){var t,n,r=e.onChange,s=e.value,i=e.children,o=e.caption,a=e.className,l=e.style,u=Pe(),c=(n=(t=u.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&n!==void 0?n:$D;return d.jsxs("div",{className:a,style:l,children:[d.jsx("span",{className:u.classNames.vhidden,children:e["aria-label"]}),d.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:u.classNames.dropdown,style:u.styles.dropdown,value:s,onChange:r,children:i}),d.jsxs("div",{className:u.classNames.caption_label,style:u.styles.caption_label,"aria-hidden":"true",children:[o,d.jsx(c,{className:u.classNames.dropdown_icon,style:u.styles.dropdown_icon})]})]})}function zD(e){var t,n=Pe(),r=n.fromDate,s=n.toDate,i=n.styles,o=n.locale,a=n.formatters.formatMonthCaption,l=n.classNames,u=n.components,c=n.labels.labelMonthDropdown;if(!r)return d.jsx(d.Fragment,{});if(!s)return d.jsx(d.Fragment,{});var f=[];if(yD(r,s))for(var h=Mt(r),m=r.getMonth();m<=s.getMonth();m++)f.push(zd(h,m));else for(var h=Mt(new Date),m=0;m<=11;m++)f.push(zd(h,m));var b=function(w){var y=Number(w.target.value),p=zd(Mt(e.displayMonth),y);e.onChange(p)},g=(t=u==null?void 0:u.Dropdown)!==null&&t!==void 0?t:L_;return d.jsx(g,{name:"months","aria-label":c(),className:l.dropdown_month,style:i.dropdown_month,onChange:b,value:e.displayMonth.getMonth(),caption:a(e.displayMonth,{locale:o}),children:f.map(function(w){return d.jsx("option",{value:w.getMonth(),children:a(w,{locale:o})},w.getMonth())})})}function UD(e){var t,n=e.displayMonth,r=Pe(),s=r.fromDate,i=r.toDate,o=r.locale,a=r.styles,l=r.classNames,u=r.components,c=r.formatters.formatYearCaption,f=r.labels.labelYearDropdown,h=[];if(!s)return d.jsx(d.Fragment,{});if(!i)return d.jsx(d.Fragment,{});for(var m=s.getFullYear(),b=i.getFullYear(),g=m;g<=b;g++)h.push(py(j_(new Date),g));var w=function(p){var v=py(Mt(n),Number(p.target.value));e.onChange(v)},y=(t=u==null?void 0:u.Dropdown)!==null&&t!==void 0?t:L_;return d.jsx(y,{name:"years","aria-label":f(),className:l.dropdown_year,style:a.dropdown_year,onChange:w,value:n.getFullYear(),caption:c(n,{locale:o}),children:h.map(function(p){return d.jsx("option",{value:p.getFullYear(),children:c(p,{locale:o})},p.getFullYear())})})}function BD(e,t){var n=x.useState(e),r=n[0],s=n[1],i=t===void 0?r:t;return[i,s]}function VD(e){var t=e.month,n=e.defaultMonth,r=e.today,s=t||n||r||new Date,i=e.toDate,o=e.fromDate,a=e.numberOfMonths,l=a===void 0?1:a;if(i&&qa(i,s)<0){var u=-1*(l-1);s=Pn(i,u)}return o&&qa(s,o)<0&&(s=o),Mt(s)}function WD(){var e=Pe(),t=VD(e),n=BD(t,e.month),r=n[0],s=n[1],i=function(o){var a;if(!e.disableNavigation){var l=Mt(o);s(l),(a=e.onMonthChange)===null||a===void 0||a.call(e,l)}};return[r,i]}function HD(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,s=Mt(e),i=Mt(Pn(s,r)),o=qa(i,s),a=[],l=0;l<o;l++){var u=Pn(s,l);a.push(u)}return n&&(a=a.reverse()),a}function qD(e,t){if(!t.disableNavigation){var n=t.toDate,r=t.pagedNavigation,s=t.numberOfMonths,i=s===void 0?1:s,o=r?i:1,a=Mt(e);if(!n)return Pn(a,o);var l=qa(n,e);if(!(l<i))return Pn(a,o)}}function KD(e,t){if(!t.disableNavigation){var n=t.fromDate,r=t.pagedNavigation,s=t.numberOfMonths,i=s===void 0?1:s,o=r?i:1,a=Mt(e);if(!n)return Pn(a,-o);var l=qa(a,n);if(!(l<=0))return Pn(a,-o)}}var F_=x.createContext(void 0);function YD(e){var t=Pe(),n=WD(),r=n[0],s=n[1],i=HD(r,t),o=qD(r,t),a=KD(r,t),l=function(f){return i.some(function(h){return pp(f,h)})},u=function(f,h){l(f)||(h&&A_(f,h)?s(Pn(f,1+t.numberOfMonths*-1)):s(f))},c={currentMonth:r,displayMonths:i,goToMonth:s,goToDate:u,previousMonth:a,nextMonth:o,isDateDisplayed:l};return d.jsx(F_.Provider,{value:c,children:e.children})}function hl(){var e=x.useContext(F_);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function gy(e){var t,n=Pe(),r=n.classNames,s=n.styles,i=n.components,o=hl().goToMonth,a=function(c){o(Pn(c,e.displayIndex?-e.dis
202playIndex:0))},l=(t=i==null?void 0:i.CaptionLabel)!==null&&t!==void 0?t:M_,u=d.jsx(l,{id:e.id,displayMonth:e.displayMonth});return d.jsxs("div",{className:r.caption_dropdowns,style:s.caption_dropdowns,children:[d.jsx("div",{className:r.vhidden,children:u}),d.jsx(zD,{onChange:a,displayMonth:e.displayMonth}),d.jsx(UD,{onChange:a,displayMonth:e.displayMonth})]})}function GD(e){return d.jsx("svg",re({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:d.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function QD(e){return d.jsx("svg",re({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:d.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var rc=x.forwardRef(function(e,t){var n=Pe(),r=n.classNames,s=n.styles,i=[r.button_reset,r.button];e.className&&i.push(e.className);var o=i.join(" "),a=re(re({},s.button_reset),s.button);return e.style&&Object.assign(a,e.style),d.jsx("button",re({},e,{ref:t,type:"button",className:o,style:a}))});function ZD(e){var t,n,r=Pe(),s=r.dir,i=r.locale,o=r.classNames,a=r.styles,l=r.labels,u=l.labelPrevious,c=l.labelNext,f=r.components;if(!e.nextMonth&&!e.previousMonth)return d.jsx(d.Fragment,{});var h=u(e.previousMonth,{locale:i}),m=[o.nav_button,o.nav_button_previous].join(" "),b=c(e.nextMonth,{locale:i}),g=[o.nav_button,o.nav_button_next].join(" "),w=(t=f==null?void 0:f.IconRight)!==null&&t!==void 0?t:QD,y=(n=f==null?void 0:f.IconLeft)!==null&&n!==void 0?n:GD;return d.jsxs("div",{className:o.nav,style:a.nav,children:[!e.hidePrevious&&d.jsx(rc,{name:"previous-month","aria-label":h,className:m,style:a.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:s==="rtl"?d.jsx(w,{className:o.nav_icon,style:a.nav_icon}):d.jsx(y,{className:o.nav_icon,style:a.nav_icon})}),!e.hideNext&&d.jsx(rc,{name:"next-month","aria-label":b,className:g,style:a.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:s==="rtl"?d.jsx(y,{className:o.nav_icon,style:a.nav_icon}):d.jsx(w,{className:o.nav_icon,style:a.nav_icon})})]})}function vy(e){var t=Pe().numberOfMonths,n=hl(),r=n.previousMonth,s=n.nextMonth,i=n.goToMonth,o=n.displayMonths,a=o.findIndex(function(b){return pp(e.displayMonth,b)}),l=a===0,u=a===o.length-1,c=t>1&&(l||!u),f=t>1&&(u||!l),h=function(){r&&i(r)},m=function(){s&&i(s)};return d.jsx(ZD,{displayMonth:e.displayMonth,hideNext:c,hidePrevious:f,nextMonth:s,previousMonth:r,onPreviousClick:h,onNextClick:m})}function XD(e){var t,n=Pe(),r=n.classNames,s=n.disableNavigation,i=n.styles,o=n.captionLayout,a=n.components,l=(t=a==null?void 0:a.CaptionLabel)!==null&&t!==void 0?t:M_,u;return s?u=d.jsx(l,{id:e.id,displayMonth:e.displayMonth}):o==="dropdown"?u=d.jsx(gy,{displayMonth:e.displayMonth,id:e.id}):o==="dropdown-buttons"?u=d.jsxs(d.Fragment,{children:[d.jsx(gy,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),d.jsx(vy,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):u=d.jsxs(d.Fragment,{children:[d.jsx(l,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),d.jsx(vy,{displayMonth:e.displayMonth,id:e.id})]}),d.jsx("div",{className:r.caption,style:i.caption,children:u})}function JD(e){var t=Pe(),n=t.footer,r=t.styles,s=t.classNames.tfoot;return n?d.jsx("tfoot",{className:s,style:r.tfoot,children:d.jsx("tr",{children:d.jsx("td",{colSpan:8,children:n})})}):d.jsx(d.Fragment,{})}function eI(e,t,n){for(var r=n?ri(new Date):er(new Date,{locale:e,weekStartsOn:t}),s=[],i=0;i<7;i++){var o=wt(r,i);s.push(o)}return s}function tI(){var e=Pe(),t=e.classNames,n=e.styles,r=e.showWeekNumber,s=e.locale,i=e.weekStartsOn,o=e.ISOWeek,a=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,u=eI(s,i,o);return d.jsxs("tr",{style:n.head_row,className:t.head_row,children:[r&&d.jsx("td",{style:n.head_cell,className:t.head_cell}),u.map(function(c,f){return d.jsx("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":l(c,{locale:s}),children:a(c,{locale:s})},f)})]})}function nI(){var e,t=Pe(),n=t.classNames,r=t.styles,s=t.components,i=(e=s==null?void 0:s.HeadRow)!==null&&e!==void 0?e:tI;return d.jsx("thead",{style:r.head,className:n.head,children:d.jsx(i,{})})}function rI(e){var t=Pe(),n=t.locale,r=t.formatters.formatDay;return d.jsx(d.Fragment,{children:r(e.date,{locale:n})})}var gp=x.createContext(void 0);function sI(e){if(!dl(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return d.jsx(gp.Provider,{value:t,children:e.children})}return d.jsx(iI,{initialProps:e.initialProps,children:e.children})}function iI(e){var t=e.initialProps,n=e.children,r=t.selected,s=t.min,i=t.max,o=function(u,c,f){var h,m;(h=t.onDayClick)===null||h===void 0||h.call(t,u,c,f);var b=!!(c.selected&&s&&(r==null?void 0:r.length)===s);if(!b){var g=!!(!c.selected&&i&&(r==null?void 0:r.length)===i);if(!g){var w=r?D_([],r):[];if(c.selected){var y=w.findIndex(function(p){return Rt(u,p)});w.splice(y,1)}else w.push(u);(m=t.onSelect)===null||m===void 0||m.call(t,w,u,c,f)}}},a={disabled:[]};r&&a.disabled.push(function(u){var c=i&&r.length>i-1,f=r.some(function(h){return Rt(h,u)});return!!(c&&!f)});var l={selected:r,onDayClick:o,modifiers:a};return d.jsx(gp.Provider,{value:l,children:n})}function vp(){var e=x.useContext(gp);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function oI(e,t){var n=t||{},r=n.from,s=n.to;return r&&s?Rt(s,e)&&Rt(r,e)?void 0:Rt(s,e)?{from:s,to:void 0}:Rt(r,e)?void 0:jh(r,e)?{from:e,to:s}:{from:r,to:e}:s?jh(e,s)?{from:s,to:e}:{from:e,to:s}:r?A_(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var yp=x.createContext(void 0);function aI(e){if(!fl(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return d.jsx(yp.Provider,{value:t,children:e.children})}return d.jsx(lI,{initialProps:e.initialProps,children:e.children})}function lI(e){var t=e.initialProps,n=e.children,r=t.selected,s=r||{},i=s.from,o=s.to,a=t.min,l=t.max,u=function(m,b,g){var w,y;(w=t.onDayClick)===null||w===void 0||w.call(t,m,b,g);var p=oI(m,r);(y=t.onSelect)===null||y===void 0||y.call(t,p,m,b,g)},c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(i?(c.range_start=[i],o?(c.range_end=[o],Rt(i,o)||(c.range_middle=[{after:i,before:o}])):c.range_end=[i]):o&&(c.range_start=[o],c.range_end=[o]),a&&(i&&!o&&c.disabled.push({after:$d(i,a-1),before:wt(i,a-1)}),i&&o&&c.disabled.push({after:i,before:wt(i,a-1)}
202),!i&&o&&c.disabled.push({after:$d(o,a-1),before:wt(o,a-1)})),l){if(i&&!o&&(c.disabled.push({before:wt(i,-l+1)}),c.disabled.push({after:wt(i,l-1)})),i&&o){var f=Kn(o,i)+1,h=l-f;c.disabled.push({before:$d(i,h)}),c.disabled.push({after:wt(o,h)})}!i&&o&&(c.disabled.push({before:wt(o,-l+1)}),c.disabled.push({after:wt(o,l-1)}))}return d.jsx(yp.Provider,{value:{selected:r,onDayClick:u,modifiers:c},children:n})}function wp(){var e=x.useContext(yp);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function fu(e){return Array.isArray(e)?D_([],e):e!==void 0?[e]:[]}function uI(e){var t={};return Object.entries(e).forEach(function(n){var r=n[0],s=n[1];t[r]=fu(s)}),t}var On;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(On||(On={}));var cI=On.Selected,ur=On.Disabled,dI=On.Hidden,fI=On.Today,Ud=On.RangeEnd,Bd=On.RangeMiddle,Vd=On.RangeStart,hI=On.Outside;function mI(e,t,n){var r,s=(r={},r[cI]=fu(e.selected),r[ur]=fu(e.disabled),r[dI]=fu(e.hidden),r[fI]=[e.today],r[Ud]=[],r[Bd]=[],r[Vd]=[],r[hI]=[],r);return e.fromDate&&s[ur].push({before:e.fromDate}),e.toDate&&s[ur].push({after:e.toDate}),dl(e)?s[ur]=s[ur].concat(t.modifiers[ur]):fl(e)&&(s[ur]=s[ur].concat(n.modifiers[ur]),s[Vd]=n.modifiers[Vd],s[Bd]=n.modifiers[Bd],s[Ud]=n.modifiers[Ud]),s}var $_=x.createContext(void 0);function pI(e){var t=Pe(),n=vp(),r=wp(),s=mI(t,n,r),i=uI(t.modifiers),o=re(re({},s),i);return d.jsx($_.Provider,{value:o,children:e.children})}function z_(){var e=x.useContext($_);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function gI(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function vI(e){return!!(e&&typeof e=="object"&&"from"in e)}function yI(e){return!!(e&&typeof e=="object"&&"after"in e)}function wI(e){return!!(e&&typeof e=="object"&&"before"in e)}function xI(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function bI(e,t){var n,r=t.from,s=t.to;if(r&&s){var i=Kn(s,r)<0;i&&(n=[s,r],r=n[0],s=n[1]);var o=Kn(e,r)>=0&&Kn(s,e)>=0;return o}return s?Rt(s,e):r?Rt(r,e):!1}function _I(e){return fp(e)}function kI(e){return Array.isArray(e)&&e.every(fp)}function SI(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(_I(n))return Rt(e,n);if(kI(n))return n.includes(e);if(vI(n))return bI(e,n);if(xI(n))return n.dayOfWeek.includes(e.getDay());if(gI(n)){var r=Kn(n.before,e),s=Kn(n.after,e),i=r>0,o=s<0,a=jh(n.before,n.after);return a?o&&i:i||o}return yI(n)?Kn(e,n.after)>0:wI(n)?Kn(n.before,e)>0:typeof n=="function"?n(e):!1})}function xp(e,t,n){var r=Object.keys(t).reduce(function(i,o){var a=t[o];return SI(e,a)&&i.push(o),i},[]),s={};return r.forEach(function(i){return s[i]=!0}),n&&!pp(e,n)&&(s.outside=!0),s}function CI(e,t){for(var n=Mt(e[0]),r=hp(e[e.length-1]),s,i,o=n;o<=r;){var a=xp(o,t),l=!a.disabled&&!a.hidden;if(!l){o=wt(o,1);continue}if(a.selected)return o;a.today&&!i&&(i=o),s||(s=o),o=wt(o,1)}return i||s}var jI=365;function U_(e,t){var n=t.moveBy,r=t.direction,s=t.context,i=t.modifiers,o=t.retry,a=o===void 0?{count:0,lastFocused:e}:o,l=s.weekStartsOn,u=s.fromDate,c=s.toDate,f=s.locale,h={day:wt,week:Ch,month:Pn,year:mA,startOfWeek:function(w){return s.ISOWeek?ri(w):er(w,{locale:f,weekStartsOn:l})},endOfWeek:function(w){return s.ISOWeek?E_(w):mp(w,{locale:f,weekStartsOn:l})}},m=h[n](e,r==="after"?1:-1);r==="before"&&u?m=pA([u,m]):r==="after"&&c&&(m=gA([c,m]));var b=!0;if(i){var g=xp(m,i);b=!g.disabled&&!g.hidden}return b?m:a.count>jI?a.lastFocused:U_(m,{moveBy:n,direction:r,context:s,modifiers:i,retry:re(re({},a),{count:a.count+1})})}var B_=x.createContext(void 0);function EI(e){var t=hl(),n=z_(),r=x.useState(),s=r[0],i=r[1],o=x.useState(),a=o[0],l=o[1],u=CI(t.displayMonths,n),c=s??(a&&t.isDateDisplayed(a))?a:u,f=function(){l(s),i(void 0)},h=function(w){i(w)},m=Pe(),b=function(w,y){if(s){var p=U_(s,{moveBy:w,direction:y,context:m,modifiers:n});Rt(s,p)||(t.goToDate(p,s),h(p))}},g={focusedDay:s,focusTarget:c,blur:f,focus:h,focusDayAfter:function(){return b("day","after")},focusDayBefore:function(){return b("day","before")},focusWeekAfter:function(){return b("week","after")},focusWeekBefore:function(){return b("week","before")},focusMonthBefore:function(){return b("month","before")},focusMonthAfter:function(){return b("month","after")},focusYearBefore:function(){return b("year","before")},focusYearAfter:function(){return b("year","after")},focusStartOfWeek:function(){return b("startOfWeek","before")},focusEndOfWeek:function(){return b("endOfWeek","after")}};return d.jsx(B_.Provider,{value:g,children:e.children})}function bp(){var e=x.useContext(B_);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function TI(e,t){var n=z_(),r=xp(e,n,t);return r}var _p=x.createContext(void 0);function NI(e){if(!zc(e.initialProps)){var t={selected:void 0};return d.jsx(_p.Provider,{value:t,children:e.children})}return d.jsx(PI,{initialProps:e.initialProps,children:e.children})}function PI(e){var t=e.initialProps,n=e.children,r=function(i,o,a){var l,u,c;if((l=t.onDayClick)===null||l===void 0||l.call(t,i,o,a),o.selected&&!t.required){(u=t.onSelect)===null||u===void 0||u.call(t,void 0,i,o,a);return}
202(c=t.onSelect)===null||c===void 0||c.call(t,i,i,o,a)},s={selected:t.selected,onDayClick:r};return d.jsx(_p.Provider,{value:s,children:n})}function V_(){var e=x.useContext(_p);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function OI(e,t){var n=Pe(),r=V_(),s=vp(),i=wp(),o=bp(),a=o.focusDayAfter,l=o.focusDayBefore,u=o.focusWeekAfter,c=o.focusWeekBefore,f=o.blur,h=o.focus,m=o.focusMonthBefore,b=o.focusMonthAfter,g=o.focusYearBefore,w=o.focusYearAfter,y=o.focusStartOfWeek,p=o.focusEndOfWeek,v=function(D){var j,R,V,ne;zc(n)?(j=r.onDayClick)===null||j===void 0||j.call(r,e,t,D):dl(n)?(R=s.onDayClick)===null||R===void 0||R.call(s,e,t,D):fl(n)?(V=i.onDayClick)===null||V===void 0||V.call(i,e,t,D):(ne=n.onDayClick)===null||ne===void 0||ne.call(n,e,t,D)},_=function(D){var j;h(e),(j=n.onDayFocus)===null||j===void 0||j.call(n,e,t,D)},S=function(D){var j;f(),(j=n.onDayBlur)===null||j===void 0||j.call(n,e,t,D)},C=function(D){var j;(j=n.onDayMouseEnter)===null||j===void 0||j.call(n,e,t,D)},E=function(D){var j;(j=n.onDayMouseLeave)===null||j===void 0||j.call(n,e,t,D)},A=function(D){var j;(j=n.onDayPointerEnter)===null||j===void 0||j.call(n,e,t,D)},F=function(D){var j;(j=n.onDayPointerLeave)===null||j===void 0||j.call(n,e,t,D)},$=function(D){var j;(j=n.onDayTouchCancel)===null||j===void 0||j.call(n,e,t,D)},J=function(D){var j;(j=n.onDayTouchEnd)===null||j===void 0||j.call(n,e,t,D)},I=function(D){var j;(j=n.onDayTouchMove)===null||j===void 0||j.call(n,e,t,D)},K=function(D){var j;(j=n.onDayTouchStart)===null||j===void 0||j.call(n,e,t,D)},M=function(D){var j;(j=n.onDayKeyUp)===null||j===void 0||j.call(n,e,t,D)},ee=function(D){var j;switch(D.key){case"ArrowLeft":D.preventDefault(),D.stopPropagation(),n.dir==="rtl"?a():l();break;case"ArrowRight":D.preventDefault(),D.stopPropagation(),n.dir==="rtl"?l():a();break;case"ArrowDown":D.preventDefault(),D.stopPropagation(),u();break;case"ArrowUp":D.preventDefault(),D.stopPropagation(),c();break;case"PageUp":D.preventDefault(),D.stopPropagation(),D.shiftKey?g():m();break;case"PageDown":D.preventDefault(),D.stopPropagation(),D.shiftKey?w():b();break;case"Home":D.preventDefault(),D.stopPropagation(),y();break;case"End":D.preventDefault(),D.stopPropagation(),p();break}(j=n.onDayKeyDown)===null||j===void 0||j.call(n,e,t,D)},Q={onClick:v,onFocus:_,onBlur:S,onKeyDown:ee,onKeyUp:M,onMouseEnter:C,onMouseLeave:E,onPointerEnter:A,onPointerLeave:F,onTouchCancel:$,onTouchEnd:J,onTouchMove:I,onTouchStart:K};return Q}function RI(){var e=Pe(),t=V_(),n=vp(),r=wp(),s=zc(e)?t.selected:dl(e)?n.selected:fl(e)?r.selected:void 0;return s}function AI(e){return Object.values(On).includes(e)}function DI(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(r){var s=e.modifiersClassNames[r];if(s)n.push(s);else if(AI(r)){var i=e.classNames["day_".concat(r)];i&&n.push(i)}}),n}function II(e,t){var n=re({},e.styles.day);return Object.keys(t).forEach(function(r){var s;n=re(re({},n),(s=e.modifiersStyles)===null||s===void 0?void 0:s[r])}),n}function MI(e,t,n){var r,s,i,o=Pe(),a=bp(),l=TI(e,t),u=OI(e,l),c=RI(),f=!!(o.onDayCl
202ick||o.mode!=="default");x.useEffect(function(){var C;l.outside||a.focusedDay&&f&&Rt(a.focusedDay,e)&&((C=n.current)===null||C===void 0||C.focus())},[a.focusedDay,e,n,f,l.outside]);var h=DI(o,l).join(" "),m=II(o,l),b=!!(l.outside&&!o.showOutsideDays||l.hidden),g=(i=(s=o.components)===null||s===void 0?void 0:s.DayContent)!==null&&i!==void 0?i:rI,w=d.jsx(g,{date:e,displayMonth:t,activeModifiers:l}),y={style:m,className:h,children:w,role:"gridcell"},p=a.focusTarget&&Rt(a.focusTarget,e)&&!l.outside,v=a.focusedDay&&Rt(a.focusedDay,e),_=re(re(re({},y),(r={disabled:l.disabled,role:"gridcell"},r["aria-selected"]=l.selected,r.tabIndex=v||p?0:-1,r)),u),S={isButton:f,isHidden:b,activeModifiers:l,selectedDays:c,buttonProps:_,divProps:y};return S}function LI(e){var t=x.useRef(null),n=MI(e.date,e.displayMonth,t);return n.isHidden?d.jsx("div",{role:"gridcell"}):n.isButton?d.jsx(rc,re({name:"day",ref:t},n.buttonProps)):d.jsx("div",re({},n.divProps))}function FI(e){var t=e.number,n=e.dates,r=Pe(),s=r.onWeekNumberClick,i=r.styles,o=r.classNames,a=r.locale,l=r.labels.labelWeekNumber,u=r.formatters.formatWeekNumber,c=u(Number(t),{locale:a});if(!s)return d.jsx("span",{className:o.weeknumber,style:i.weeknumber,children:c});var f=l(Number(t),{locale:a}),h=function(m){s(t,n,m)};return d.jsx(rc,{name:"week-number","aria-label":f,className:o.weeknumber,style:i.weeknumber,onClick:h,children:c})}function $I(e){var t,n,r=Pe(),s=r.styles,i=r.classNames,o=r.showWeekNumber,a=r.components,l=(t=a==null?void 0:a.Day)!==null&&t!==void 0?t:LI,u=(n=a==null?void 0:a.WeekNumber)!==null&&n!==void 0?n:FI,c;return o&&(c=d.jsx("td",{className:i.cell,style:s.cell,children:d.jsx(u,{number:e.weekNumber,dates:e.dates})})),d.jsxs("tr",{className:i.row,style:s.row,children:[c,e.dates.map(function(f){return d.jsx("td",{className:i.cell,style:s.cell,role:"presentation",children:d.jsx(l,{displayMonth:e.displayMonth,date:f})},pD(f))})]})}function yy(e,t,n){for(var r=n!=null&&n.ISOWeek?E_(t):mp(t,n),s=n!=null&&n.ISOWeek?ri(e):er(e,n),i=Kn(r,s),o=[],a=0;a<=i;a++)o.push(wt(s,a));var l=o.reduce(function(u,c){var f=n!=null&&n.ISOWeek?N_(c):O_(c,n),h=u.find(function(m){return m.weekNumber===f});return h?(h.dates.push(c),u):(u.push({weekNumber:f,dates:[c]}),u)},[]);return l}function zI(e,t){var n=yy(Mt(e),hp(e),t);if(t!=null&&t.useFixedWeeks){var r=vD(e,t);if(r<6){var s=n[n.length-1],i=s.dates[s.dates.length-1],o=Ch(i,6-r),a=yy(Ch(i,1),o,t);n.push.apply(n,a)}}return n}function UI(e){var t,n,r,s=Pe(),i=s.locale,o=s.classNames,a=s.styles,l=s.hideHead,u=s.fixedWeeks,c=s.components,f=s.weekStartsOn,h=s.firstWeekContainsDate,m=s.ISOWeek,b=zI(e.displayMonth,{useFixedWeeks:!!u,ISOWeek:m,locale:i,weekStartsOn:f,firstWeekContainsDate:h}),g=(t=c==null?void 0:c.Head)!==null&&t!==void 0?t:nI,w=(n=c==null?void 0:c.Row)!==null&&n!==void 0?n:$I,y=(r=c==null?void 0:c.Footer)!==null&&r!==void 0?r:JD;return d.jsxs("table",{id:e.id,className:o.table,style:a.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&d.jsx(g,{}),d.jsx("tbody",{className:o.tbody,style:a.tbody,children:b.map(function(p){return d.jsx(w,{displayMonth:e.displayMonth,dates:p.dates,weekNumber:p.weekNumber},p.weekNumber)})}),d.jsx(y,{displayMonth:e.displayMonth})]})}function BI(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var VI=BI()?x.useLayoutEffect:x.useEffect,Wd=!1,WI=0;function wy(){return"react-day-picker-".concat(++WI)}function HI(e){var t,n=e??(Wd?wy():null),r=x.useState(n),s=r[0],i=r[1];return VI(function(){s===null&&i(wy())},[]),x.useEffect(function(){Wd===!1&&(Wd=!0)},[]),(t=e??s)!==null&&t!==void 0?t:void 0}function qI(e){var t,n,r=Pe(),s=r.dir,i=r.classNames,o=r.styles,a=r.components,l=hl().displayMonths,u=HI(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),c=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,f=[i.month],h=o.month,m=e.displayIndex===0,b=e.displayIndex===l.length-1,g=!m&&!b;s==="rtl"&&(t=[m,b],b=t[0],m=t[1]),m&&(f.push(i.caption_start),h=re(re({},h),o.caption_start)),b&&(f.push(i.caption_end),h=re(re({},h),o.caption_end)),g&&(f.push(i.caption_between),h=re(re({},h),o.caption_between));var w=(n=a==null?void 0:a.Caption)!==null&&n!==void 0?n:XD;return d.jsxs("div",{className:f.join(" "),style:h,children:[d.jsx(w,{id:u,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),d.jsx(UI,{id:c,"aria-labelledby":u,displayMonth:e.displayMonth})]},e.displayIndex)}function KI(e){var t=Pe(),n=t.classNames,r=t.styles;return d.jsx("div",{className:n.months,style:r.months,children:e.children})}function YI(e){var t,n,r=e.initialProps,s=Pe(),i=bp(),o=hl(),a=x.use
202State(!1),l=a[0],u=a[1];x.useEffect(function(){s.initialFocus&&i.focusTarget&&(l||(i.focus(i.focusTarget),u(!0)))},[s.initialFocus,l,i.focus,i.focusTarget,i]);var c=[s.classNames.root,s.className];s.numberOfMonths>1&&c.push(s.classNames.multiple_months),s.showWeekNumber&&c.push(s.classNames.with_weeknumber);var f=re(re({},s.styles.root),s.style),h=Object.keys(r).filter(function(b){return b.startsWith("data-")}).reduce(function(b,g){var w;return re(re({},b),(w={},w[g]=r[g],w))},{}),m=(n=(t=r.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:KI;return d.jsx("div",re({className:c.join(" "),style:f,dir:s.dir,id:s.id,nonce:r.nonce,title:r.title,lang:r.lang},h,{children:d.jsx(m,{children:o.displayMonths.map(function(b,g){return d.jsx(qI,{displayIndex:g,displayMonth:b},g)})})}))}function GI(e){var t=e.children,n=wD(e,["children"]);return d.jsx(FD,{initialProps:n,children:d.jsx(YD,{children:d.jsx(NI,{initialProps:n,children:d.jsx(sI,{initialProps:n,children:d.jsx(aI,{initialProps:n,children:d.jsx(pI,{children:d.jsx(EI,{children:t})})})})})})})}function QI(e){return d.jsx(GI,re({},e,{children:d.jsx(YI,{initialProps:e})}))}function W_({className:e,classNames:t,showOutsideDays:n=!0,...r}){return d.jsx(QI,{showOutsideDays:n,className:Ne("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:Ne(yh({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:Ne(yh({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...s})=>d.jsx(qC,{className:"h-4 w-4"}),IconRight:({...s})=>d.jsx(KC,{className:"h-4 w-4"})},...r})}W_.displayName="Calendar";const ZI=mR,H_=x.createContext({}),Yo=({...e})=>d.jsx(H_.Provider,{value:{name:e.name},children:d.jsx(yR,{...e})}),Uc=()=>{const e=x.useContext(H_),t=x.useContext(q_),{getFieldState:n,formState:r}=$c(),s=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},q_=x.createContext({}),Ei=x.forwardRef(({className:e,...t},n)=>{const r=x.useId();return d.jsx(q_.Provider,{value:{id:r},children:d.jsx("div",{ref:n,className:Ne("space-y-2",e),...t})})});Ei.displayName="FormItem";const Ti=x.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:s}=Uc();return d.jsx(Bi,{ref:n,className:Ne(r&&"text-destructive",e),htmlFor:s,...t})});Ti.displayName="FormLabel";const As=x.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:s,formMessageId:i}=Uc();return d.jsx(ex,{ref:t,id:r,"aria-describedby":n?`${s} ${i}`:`${s}`,"aria-invalid":!!n,...e})});As.displayName="FormControl";const XI=x.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=Uc();return d.jsx("p",{ref:n,id:r,className:Ne("text-sm text-muted-foreground",e),...t})});XI.displayName="FormDescription";const Ni=x.forwardRef(({className:e,children:t,...n},r)=>{const{error:s,formMessageId:i}=Uc(),o=s?String(s==null?void 0:s.message):t;return o?d.jsx("p",{ref:r,id:i,className:Ne("text-sm font-medium text-destructive",e),...n,children:o}):null});Ni.displayName="FormMessage";var Hd=0;function JI(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??xy()),document.body.insertAdjacentElement("beforeend",e[1]??xy()),Hd++,()=>{Hd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Hd--}},[])}function xy(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 5,270 bytes, line 202
202style.position="fixed",e.style.pointerEvents="none",e}var qd="focusScope.autoFocusOnMount",Kd="focusScope.autoFocusOnUnmount",by={bubbles:!1,cancelable:!0},eM="FocusScope",K_=x.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,l]=x.useState(null),u=Xn(s),c=Xn(i),f=x.useRef(null),h=Lt(t,g=>l(g)),m=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(r){let g=function(v){if(m.paused||!a)return;const _=v.target;a.contains(_)?f.current=_:Ur(f.current,{select:!0})},w=function(v){if(m.paused||!a)return;const _=v.relatedTarget;_!==null&&(a.contains(_)||Ur(f.current,{select:!0}))},y=function(v){if(document.activeElement===document.body)for(const S of v)S.removedNodes.length>0&&Ur(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",w);const p=new MutationObserver(y);return a&&p.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",w),p.disconnect()}}},[r,a,m.paused]),x.useEffect(()=>{if(a){ky.add(m);const g=document.activeElement;if(!a.contains(g)){const y=new CustomEvent(qd,by);a.addEventListener(qd,u),a.dispatchEvent(y),y.defaultPrevented||(tM(oM(Y_(a)),{select:!0}),document.activeElement===g&&Ur(a))}return()=>{a.removeEventListener(qd,u),setTimeout(()=>{const y=new CustomEvent(Kd,by);a.addEventListener(Kd,c),a.dispatchEvent(y),y.defaultPrevented||Ur(g??document.body,{select:!0}),a.removeEventListener(Kd,c),ky.remove(m)},0)}}},[a,u,c,m]);const b=x.useCallback(g=>{if(!n&&!r||m.paused)return;const w=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(w&&y){const p=g.currentTarget,[v,_]=nM(p);v&&_?!g.shiftKey&&y===_?(g.preventDefault(),n&&Ur(v,{select:!0})):g.shiftKey&&y===v&&(g.preventDefault(),n&&Ur(_,{select:!0})):y===p&&g.preventDefault()}},[n,r,m.paused]);return d.jsx(st.div,{tabIndex:-1,...o,ref:h,onKeyDown:b})});K_.displayName=eM;function tM(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ur(r,{select:t}),document.activeElement!==n)return}function nM(e){const t=Y_(e),n=_y(t,e),r=_y(t.reverse(),e);return[n,r]}function Y_(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 _y(e,t){for(const n of e)if(!rM(n,{upTo:t}))return n}function rM(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 sM(e){return e instanceof HTMLInputElement&&"select"in e}function Ur(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&sM(e)&&t&&e.select()}}var ky=iM();function iM(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Sy(e,t),e.unshift(t)},remove(t){var n;e=Sy(e,t),(n=e[0])==null||n.resume()}}}function Sy(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function oM(e){return e.filter(t=>t.tagName!=="A")}var aM=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},bi=new WeakMap,ql=new WeakMap,Kl={},Yd=0,G_=function(e){return e&&(e.host||G_(e.parentNode))},lM=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=G_(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})},uM=function(e,t,n,r){var s=lM(t,Array.isArray(e)?e:[e]);Kl[n]||(Kl[n]=new WeakMap);var i=Kl[n],o=[],a=new Set,l=new Set(s),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};s.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))c(h);else try{var m=h.getAttribute(r),b=m!==null&&m!=="false",g=(bi.get(h)||0)+1,w=(i.get(h)||0)+1;bi.set(h,g),i.set(h,w),o.push(h),g===1&&b&&ql.set(h,!0),w===1&&h.setAttribute(n,"true"),b||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return c(t),a.clear(),Yd++,function(){o.forEach(function(f){var h=bi.get(f)-1,m=i.get(f)-1;bi.set(f,h),i.set(f,m),h||(ql.has(f)||f.removeAttribute(r),ql.delete(f)),m||f.removeAttribute(n)}),Yd--,Yd||(bi=new WeakMap,bi=new WeakMap,ql=new WeakMap,Kl={})}},cM=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=aM(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),uM(r,s,n,"aria-hidden")):function(){return null}},Wn=function(){return Wn=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},Wn.apply(this,arguments)};function Q_(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}
vendor: 5,048 bytes, lines 202-217
202function dM(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 hu="right-scroll-bar-position",mu="width-before-scroll-bar",fM="with-scroll-bars-hidden",hM="--removed-body-scroll-bar-size";function Gd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function mM(e,t){var n=x.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 pM=typeof window<"u"?x.useLayoutEffect:x.useEffect,Cy=new WeakMap;function gM(e,t){var n=mM(null,function(r){return e.forEach(function(s){return Gd(s,r)})});return pM(function(){var r=Cy.get(n);if(r){var s=new Set(r),i=new Set(e),o=n.current;s.forEach(function(a){i.has(a)||Gd(a,null)}),i.forEach(function(a){s.has(a)||Gd(a,o)})}Cy.set(n,e)},[e]),n}function vM(e){return e}function yM(e,t){t===void 0&&(t=vM);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 c=o;o=[],c.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){o.push(c),u()},filter:function(c){return o=o.filter(c),n}}}};return s}function wM(e){e===void 0&&(e={});var t=yM(null);return t.options=Wn({async:!0,ssr:!1},e),t}var Z_=function(e){var t=e.sideCar,n=Q_(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 x.createElement(r,Wn({},n))};Z_.isSideCarExport=!0;function xM(e,t){return e.useMedium(t),Z_}var X_=wM(),Qd=function(){},Bc=x.forwardRef(function(e,t){var n=x.useRef(null),r=x.useState({onScrollCapture:Qd,onWheelCapture:Qd,onTouchMoveCapture:Qd}),s=r[0],i=r[1],o=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,h=e.sideCar,m=e.noRelative,b=e.noIsolation,g=e.inert,w=e.allowPinchZoom,y=e.as,p=y===void 0?"div":y,v=e.gapMode,_=Q_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,C=gM([n,t]),E=Wn(Wn({},_),s);return x.createElement(x.Fragment,null,c&&x.createElement(S,{sideCar:X_,removeScrollBar:u,shards:f,noRelative:m,noIsolation:b,inert:g,setCallbacks:i,allowPinchZoom:!!w,lockRef:n,gapMode:v}),o?x.cloneElement(x.Children.only(a),Wn(Wn({},E),{ref:C})):x.createElement(p,Wn({},E,{className:l,ref:C}),a))});Bc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Bc.classNames={fullWidth:mu,zeroRight:hu};var bM=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _M(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=bM();return t&&e.setAttribute("nonce",t),e}function kM(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function SM(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var CM=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_M())&&(kM(t,n),SM(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},jM=function(){var e=CM();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},J_=function(){var e=jM(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},EM={left:0,top:0,right:0,gap:0},Zd=function(e){return parseInt(e||"",10)||0},TM=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[Zd(n),Zd(r),Zd(s)]},NM=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return EM;var t=TM(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])}},PM=J_(),Zi="data-scroll-locked",OM=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),`
203  .`.concat(fM,` {
204   overflow: hidden `).concat(r,`;
205   padding-right: `).concat(a,"px ").concat(r,`;
206  }
207  body[`).concat(Zi,`] {
208    overflow: hidden `).concat(r,`;
209    overscroll-behavior: contain;
210    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
211    padding-left: `.concat(s,`px;
212    padding-top: `).concat(i,`px;
213    padding-right: `).concat(o,`px;
214    margin-left:0;
215    margin-top:0;
216    margin-right: `).concat(a,"px ").concat(r,`;
217    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
217")].filter(Boolean).join(""),`
218  }
219  
220  .`).concat(hu,` {
221    right: `).concat(a,"px ").concat(r,`;
222  }
223  
224  .`).concat(mu,` {
225    margin-right: `).concat(a,"px ").concat(r,`;
226  }
227  
228  .`).concat(hu," .").concat(hu,` {
229    right: 0 `).concat(r,`;
230  }
231  
232  .`).concat(mu," .").concat(mu,` {
233    margin-right: 0 `).concat(r,`;
234  }
235  
236  body[`).concat(Zi,`] {
237    `).concat(hM,": ").concat(a,`px;
238  }
239`)},jy=function(){var e=parseInt(document.body.getAttribute(Zi)||"0",10);return isFinite(e)?e:0},RM=function(){x.useEffect(function(){return document.body.setAttribute(Zi,(jy()+1).toString()),function(){var e=jy()-1;e<=0?document.body.removeAttribute(Zi):document.body.setAttribute(Zi,e.toString())}},[])},AM=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;RM();var i=x.useMemo(function(){return NM(s)},[s]);return x.createElement(PM,{styles:OM(i,!t,s,n?"":"!important")})},Eh=!1;if(typeof window<"u")try{var Yl=Object.defineProperty({},"passive",{get:function(){return Eh=!0,!0}});window.addEventListener("test",Yl,Yl),window.removeEventListener("test",Yl,Yl)}catch{Eh=!1}var _i=Eh?{passive:!1}:!1,DM=function(e){return e.tagName==="TEXTAREA"},e1=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!DM(e)&&n[t]==="visible")},IM=function(e){return e1(e,"overflowY")},MM=function(e){return e1(e,"overflowX")},Ey=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=t1(e,r);if(s){var i=n1(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},LM=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},FM=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},t1=function(e,t){return e==="v"?IM(t):MM(t)},n1=function(e,t){return e==="v"?LM(t):FM(t)},$M=function(e,t){return e==="h"&&t==="rtl"?-1:1},zM=function(e,t,n,r,s){var i=$M(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,l=t.contains(a),u=!1,c=o>0,f=0,h=0;do{if(!a)break;var m=n1(e,a),b=m[0],g=m[1],w=m[2],y=g-w-i*b;(b||y)&&t1(e,a)&&(f+=y,h+=b);var p=a.parentNode;a=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(Math.abs(f)<1||!s)||!c&&(Math.abs(h)<1||!s))&&(u=!0),u},Gl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ty=function(e){return[e.deltaX,e.deltaY]},Ny=function(e){return e&&"current"in e?e.current:e},UM=function(e,t){return e[0]===t[0]&&e[1]===t[1]},BM=function(e){return`
240  .block-interactivity-`.concat(e,` {pointer-events: none;}
241  .allow-interactivity-`).concat(e,` {pointer-events: all;}
242`)},VM=0,ki=[];function WM(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),s=x.useState(VM++)[0],i=x.useState(J_)[0],o=x.useRef(e);x.useEffect(function(){o.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var g=dM([e.lockRef.current],(e.shards||[]).map(Ny),!0).filter(Boolean);return g.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),g.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=x.useCallback(function(g,w){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!o.current.allowPinchZoom;var y=Gl(g),p=n.current,v="deltaX"in g?g.deltaX:p[0]-y[0],_="deltaY"in g?g.deltaY:p[1]-y[1],S,C=g.target,E=Math.abs(v)>Math.abs(_)?"h":"v";if("touches"in g&&E==="h"&&C.type==="range")return!1;var A=Ey(E,C);if(!A)return!0;if(A?S=E:(S=E==="v"?"h":"v",A=Ey(E,C)),!A)return!1;if(!r.current&&"changedTouches"in g&&(v||_)&&(r.current=S),!S)return!0;var F=r.current||S;return zM(F,w,g,F==="h"?v:_,!0)},[]),l=x.useCallback(function(g){var w=g;if(!(!ki.length||ki[ki.length-1]!==i)){var y="deltaY"in w?Ty(w):Gl(w),p=t.current.filter(function(S){return S.name===w.type&&(S.target===w.target||w.target===S.shadowParent)&&UM(S.delta,y)})[0];if(p&&p.should){w.cancelable&&w.preventDefault();return}
vendor: 4,641 bytes, line 242
242if(!p){var v=(o.current.shards||[]).map(Ny).filter(Boolean).filter(function(S){return S.contains(w.target)}),_=v.length>0?a(w,v[0]):!o.current.noIsolation;_&&w.cancelable&&w.preventDefault()}}},[]),u=x.useCallback(function(g,w,y,p){var v={name:g,delta:w,target:y,should:p,shadowParent:HM(y)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(_){return _!==v})},1)},[]),c=x.useCallback(function(g){n.current=Gl(g),r.current=void 0},[]),f=x.useCallback(function(g){u(g.type,Ty(g),g.target,a(g,e.lockRef.current))},[]),h=x.useCallback(function(g){u(g.type,Gl(g),g.target,a(g,e.lockRef.current))},[]);x.useEffect(function(){return ki.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,_i),document.addEventListener("touchmove",l,_i),document.addEventListener("touchstart",c,_i),function(){ki=ki.filter(function(g){return g!==i}),document.removeEventListener("wheel",l,_i),document.removeEventListener("touchmove",l,_i),document.removeEventListener("touchstart",c,_i)}},[]);var m=e.removeScrollBar,b=e.inert;return x.createElement(x.Fragment,null,b?x.createElement(i,{styles:BM(s)}):null,m?x.createElement(AM,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function HM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const qM=xM(X_,WM);var r1=x.forwardRef(function(e,t){return x.createElement(Bc,Wn({},e,{ref:t,sideCar:qM}))});r1.classNames=Bc.classNames;var Vc="Popover",[s1,DL]=tl(Vc,[jc]),ml=jc(),[KM,ks]=s1(Vc),i1=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!1}=e,a=ml(t),l=x.useRef(null),[u,c]=x.useState(!1),[f,h]=ox({prop:r,defaultProp:s??!1,onChange:i,caller:Vc});return d.jsx(FT,{...a,children:d.jsx(KM,{scope:t,contentId:yE(),triggerRef:l,open:f,onOpenChange:h,onOpenToggle:x.useCallback(()=>h(m=>!m),[h]),hasCustomAnchor:u,onCustomAnchorAdd:x.useCallback(()=>c(!0),[]),onCustomAnchorRemove:x.useCallback(()=>c(!1),[]),modal:o,children:n})})};i1.displayName=Vc;var o1="PopoverAnchor",YM=x.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=ks(o1,n),i=ml(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=s;return x.useEffect(()=>(o(),()=>a()),[o,a]),d.jsx(Wm,{...i,...r,ref:t})});YM.displayName=o1;var a1="PopoverTrigger",l1=x.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=ks(a1,n),i=ml(n),o=Lt(t,s.triggerRef),a=d.jsx(st.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":h1(s.open),...r,ref:o,onClick:Me(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?a:d.jsx(Wm,{asChild:!0,...i,children:a})});l1.displayName=a1;var kp="PopoverPortal",[GM,QM]=s1(kp,{forceMount:void 0}),u1=e=>{const{__scopePopover:t,forceMount:n,children:r,container:s}=e,i=ks(kp,t);return d.jsx(GM,{scope:t,forceMount:n,children:d.jsx(nl,{present:n||i.open,children:d.jsx(Sm,{asChild:!0,container:s,children:r})})})};u1.displayName=kp;var _o="PopoverContent",c1=x.forwardRef((e,t)=>{const n=QM(_o,e.__scopePopover),{forceMount:r=n.forceMount,...s}=e,i=ks(_o,e.__scopePopover);return d.jsx(nl,{present:r||i.open,children:i.modal?d.jsx(XM,{...s,ref:t}):d.jsx(JM,{...s,ref:t})})});c1.displayName=_o;var ZM=Aa("PopoverContent.RemoveScroll"),XM=x.forwardRef((e,t)=>{const n=ks(_o,e.__scopePopover),r=x.useRef(null),s=Lt(t,r),i=x.useRef(!1);return x.useEffect(()=>{const o=r.current;if(o)return cM(o)},[]),d.jsx(r1,{as:ZM,allowPinchZoom:!0,children:d.jsx(d1,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Me(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Me(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,u=a.button===2||l;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:Me(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),JM=x.forwardRef((e,t)=>{const n=ks(_o,e.__scopePopover),r=x.useRef(!1),s=x.useRef(!1);return d.jsx(d1,{...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,u;(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;((u=n.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),d1=x.forwardRef((e,t)=>
242{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...f}=e,h=ks(_o,n),m=ml(n);return JI(),d.jsx(K_,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:d.jsx(xc,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:c,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1),children:d.jsx(ab,{"data-state":h1(h.open),role:"dialog",id:h.contentId,...m,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),f1="PopoverClose",eL=x.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=ks(f1,n);return d.jsx(st.button,{type:"button",...r,ref:t,onClick:Me(e.onClick,()=>s.onOpenChange(!1))})});eL.displayName=f1;var tL="PopoverArrow",nL=x.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=ml(n);return d.jsx(lb,{...s,...r,ref:t})});nL.displayName=tL;function h1(e){return e?"open":"closed"}var rL=i1,sL=l1,iL=u1,m1=c1;const oL=rL,aL=sL,p1=x.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>d.jsx(iL,{children:d.jsx(m1,{ref:s,align:t,sideOffset:n,className:Ne("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));p1.displayName=m1.displayName;const lL=({actie:e})=>{if(!e)return null;const n=(r=>{switch(r){case"oudleden":return"🏋️‍♂️ 1 maand vrijblijvend sporten! Blij? Dan krijgt u heel 2025 erbij!🏋️‍♂️ 📍 Alleen geldig voor oud-leden die zich opnieuw aanmelden via deze actie📍";default:return null}})(e);return n?d.jsx(Pt,{className:"mb-6 border-primary/20 bg-primary/5",children:d.jsx(Ot,{className:"p-4",children:d.jsx("p",{className:"text-center font-medium text-primary",children:n})})}):null},uL=cA({voornaam:Hl().min(2,"Voornaam moet minimaal 2 karakters zijn"),achternaam:Hl().min(2,"Achternaam moet minimaal 2 karakters zijn"),geboortedatum:uA({required_error:"Geboortedatum is verplicht"}).refine(e=>new Date().getFullYear()-e.getFullYear()>=16,"Je moet minimaal 16 jaar oud zijn"),email:Hl().email("Ongeldig e-mailadres"),telefoonnummer:Hl().min(10,"Telefoonnummer moet minimaal 10 cijfers bevatten").regex(/^[\d\s\-\+\(\)]+$/,"Ongeldig telefoonnummer format")}),cL=()=>{const[e]=NP(),[t,n]=x.useState(!1),[r,s]=x.useState(!1),{toast:i}=km(),o=e.get("actie")||null,a=RR({resolver:MR(uL),defaultValues:{voornaam:"",achternaam:"",email:"",telefoonnummer:""}});x.useEffect(()=>{window.scrollTo(0,0)},[]);const l=async u=>{n(!0);try{const{error:c}=await Ks.from("inschrijvingen").insert({voornaam:u.voornaam,achternaam:u.achternaam,geboortedatum:Jt(u.geboortedatum,"yyyy-MM-dd"),email:u.email,telefoonnummer:u.telefoonnummer,actie:o});if(c)throw c;try{await Ks.functions.invoke("send-registration-notification",{body:{voornaam:u.voornaam,achternaam:u.achternaam,email:u.email,telefoonnummer:u.telefoonnummer,geboortedatum:Jt(u.geboortedatum,"yyyy-MM-dd"),actie:o,ingeschreven_op:new Date().toISOString()}})}catch(f){console.error("Email notification failed:",f)}s(!0),i({title:"Inschrijving succesvol!",description:"We hebben je gegevens ontvangen. Tot snel bij Fitness CapelleXL!"})}catch(c){console.error("Error submitting form:",c),i({title:"Er ging iets mis",description:"Probeer het opnieuw of neem contact met ons op.",variant:"destructive"})}finally{n(!1)}};return r?d.jsxs("div",{className:"min-h-screen",children:[d.jsx(ei,{}),d.jsx("main",{className:"container mx-auto px-4 py-20",children:d.jsx("div",{className:"max-w-md mx-auto text-center",children:d.jsxs(Pt,{children:[d.jsx(kn,{children:d.jsx(Sn,{className:"text-2xl text-fitness-green",children:"Bedankt voor je inschrijving! 🎉"})}),d.jsxs(Ot,{className:"space-y-4",children:[d.jsx("p",{className:"text-muted-foreground",children:"Kom gezellig langs bij Fitness CapelleXL – we leiden je rond en helpen je met je volledige inschrijving aan de balie."}),d.jsx("div",{className:"pt-4",children:d.jsx(xr,{onClick:()=>window.location.href="/",variant:"cta",className:"w-full",children:"Terug naar website"})})]})]})})}),d.jsx(ti,{})]}):d.jsxs("div",{className:"min-h-screen",children:[d.jsx(ei,{}),d.jsx("main",{className:"container mx-auto px-4 py-20",children:d.jsxs("div",{className:"max-w-lg mx-auto",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("h1",{className:"text-3xl font-bold text-fitness-green mb-4",children:"Inschrijven bij Fitness CapelleXL"}),d.jsx("p",{className:"text-muted-foreground",children:"Vul je gegevens hier in en start vandaag nog met je fitness avontuur.   Dit formulier is vrijblijvend - je kunt eerst een proefles maken!"})]}
242),d.jsx(lL,{actie:o}),d.jsxs(Pt,{children:[d.jsxs(kn,{children:[d.jsx(Sn,{children:"Contactformulier"}),d.jsx(np,{children:"Alle velden zijn verplicht"})]}),d.jsx(Ot,{children:d.jsx(ZI,{...a,children:d.jsxs("form",{onSubmit:a.handleSubmit(l),className:"space-y-6",children:[d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[d.jsx(Yo,{control:a.control,name:"voornaam",render:({field:u})=>d.jsxs(Ei,{children:[d.jsx(Ti,{children:"Voornaam"}),d.jsx(As,{children:d.jsx(Bn,{placeholder:"Jouw voornaam",...u})}),d.jsx(Ni,{})]})}),d.jsx(Yo,{control:a.control,name:"achternaam",render:({field:u})=>d.jsxs(Ei,{children:[d.jsx(Ti,{children:"Achternaam"}),d.jsx(As,{children:d.jsx(Bn,{placeholder:"Jouw achternaam",...u})}),d.jsx(Ni,{})]})})]}),d.jsx(Yo,{control:a.control,name:"geboortedatum",render:({field:u})=>d.jsxs(Ei,{className:"flex flex-col",children:[d.jsx(Ti,{children:"Geboortedatum"}),d.jsx(As,{children:d.jsx(Bn,{type:"date",className:"md:hidden",max:Jt(new Date,"yyyy-MM-dd"),min:"1900-01-01",value:u.value?Jt(u.value,"yyyy-MM-dd"):"",onChange:c=>{const f=c.target.value;if(!f){u.onChange(null);return}const[h,m,b]=f.split("-").map(Number);h&&m&&b&&u.onChange(new Date(h,m-1,b))}})}),d.jsxs("div",{className:"hidden md:flex gap-2",children:[d.jsx(As,{children:d.jsx(Bn,{type:"date",className:"flex-1",value:u.value?Jt(u.value,"yyyy-MM-dd"):"",onChange:c=>{const f=c.target.value?new Date(c.target.value):null;u.onChange(f)}})}),d.jsxs(oL,{children:[d.jsx(aL,{asChild:!0,children:d.jsx(xr,{type:"button",variant:"outline",size:"icon",className:"shrink-0",children:d.jsx(Nm,{className:"h-4 w-4"})})}),d.jsx(p1,{className:"w-auto p-0",align:"start",children:d.jsx(W_,{mode:"single",selected:u.value,onSelect:u.onChange,disabled:c=>c>new Date||c<new Date("1900-01-01"),initialFocus:!0,className:Ne("p-3 pointer-events-auto")})})]})]}),d.jsx(Ni,{})]})}),d.jsx(Yo,{control:a.control,name:"email",render:({field:u})=>d.jsxs(Ei,{children:[d.jsx(Ti,{children:"E-mailadres"}),d.jsx(As,{children:d.jsx(Bn,{type:"email",placeholder:"[email protected]",...u})}),d.jsx(Ni,{})]})}),d.jsx(Yo,{control:a.control,name:"telefoonnummer",render:({field:u})=>d.jsxs(Ei,{children:[d.jsx(Ti,{children:"Telefoonnummer"}),d.jsx(As,{children:d.jsx(Bn,{placeholder:"06 12345678",...u})}),d.jsx(Ni,{})]})}),d.jsx(xr,{type:"submit",variant:"cta",className:"w-full",disabled:t,children:t?"Bezig met inschrijven...":"Inschrijven"}),d.jsxs("p",{className:"text-xs text-muted-foreground text-center",children:["Door dit formulier te versturen ga je akkoord met onze"," ",d.jsx("a",{href:"/privacy",className:"text-primary hover:underline",children:"privacyverklaring"})]})]})})})]})]})}),d.jsx(ti,{})]})},dL=()=>(x.useEffect(()=>{window.scrollTo(0,0)},[]),d.jsxs("div",{className:"min-h-screen",children:[d.jsx(ei,{}),d.jsx("main",{className:"container mx-auto px-4 py-20",children:d.jsxs("div",{className:"max-w-4xl mx-auto",children:[d.jsx("h1",{className:"text-3xl font-bold text-fitness-green mb-8 text-center",children:"Privacyverklaring"}),d.jsxs("div",{className:"prose prose-neutral max-w-none space-y-8",children:[d.jsx("section",{children:d.jsx("p",{className:"text-muted-foreground",children:"FCXL, gevestigd aan Lylantse Baan 3, 2908 LG Capelle aan den IJssel, is verantwoordelijk voor de verwerking van persoonsgegevens zoals weergegeven in deze privacyverklaring."})}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Contactgegevens"}),d.jsxs("ul",{className:"text-muted-foreground space-y-1 list-none pl-0",children:[d.jsx("li",{children:d.jsx("a",{href:"https://fcxl.nl",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"https://fcxl.nl"})}),d.jsx("li",{children:"Lylantse Baan 3, 2908 LG Capelle aan den IJssel"}),d.jsx("li",{children:d.jsx("a",{href:"tel:+31102613326",className:"text-primary hover:underline",children:"+31 (0) 10 261 3326"})})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Persoonsgegevens die wij verwerken"}),d.jsx("p",{className:"text-muted-foreground mb-4",children:"FCXL verwerkt je persoonsgegevens doordat je gebruik maakt van onze diensten en/of omdat je deze gegevens zelf aan ons verstrekt. Hieronder vind je een overzicht van de persoonsgegevens die wij verwerken:"}),d.jsxs("ul",{className:"text-muted-foreground list-disc pl-6 space-y-1",children:[d.jsx("li",{children:"Voor- en achternaam"}),d.jsx("li",{children:"Bankrekeningnummer"}),d.jsx("li",{children:"Geslacht"}),d.jsx("li",{children:"Geboortedatum"}),d.jsx("li",{children:"Adresgegevens"}),d.jsx("li",{children:"Telefoonnummer"}),d.jsx("li",{children:"E-mailadres"})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Bijzondere en/of gevoelige persoonsgegevens die wij verwerken"}),d.jsxs("p",{className:"text-muted-foreground",children:["Onze website en/of dienst heeft niet de intentie gegevens te verzamelen over websitebezoekers die jonger zijn dan 16 jaar. Tenzij ze toestemming hebben van ouders of voogd. We kunnen echter niet controleren of een bezoeker ouder dan 16 is. Wij raden ouders dan ook aan betrokken te zijn bij de online activiteiten van hun kinderen, om zo te voorkomen dat er gegevens over kinderen verzameld worden zonder ouderlijke toestemming. Als je ervan overtuigd bent dat wij zonder toestemming persoonlijke gegevens hebben verzameld over een minderjarige, neem dan contact met ons op via ",d.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),", dan verwijderen wij deze informatie."]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"FCXL verwerkt jouw persoonsgegevens voor de volgende doelen"}),d.jsxs("ul",{className:"text-muted-foreground list-disc pl-6 space-y-1",children:[d.jsx("li",{children:"Je de mogelijkheid te bieden een account aan te maken"}),d.jsx("li",{children:"Het afhandelen van jouw betaling"}),d.jsx("li",{children:"Verzenden van onze nieuwsbrief"}),d.jsx("li",{children:"Je te kunnen bellen of e-mailen indien dit nodig is om onze dienstverlening uit te voeren"}),d.jsx("li",{children:"Je te informeren over wijzigingen van onze diensten en producten"})]}),d.jsx("p",{className:"text-muted-foreground mt-4",children:"FCXL verwerkt ook persoonsgegevens als wij hier wettelijk toe verplicht zijn, zoals gegevens die wij nodig hebben voor onze belastingaangifte."})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Hoe lang we persoonsgegevens bewaren"}),d.jsx("p",{className:"text-muted-foreground",children:"FCXL bewaart je persoonsgegevens niet langer dan strikt nodig is om de doelen te realiseren waarvoor je gegevens worden verzameld."})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Delen van persoonsgegevens met derden"}),d.jsx("p",{className:"text-muted-foreground",children:"FCXL verstrekt uitsluitend aan derden en alleen als dit nodig is voor de uitvoering van onze overeenkomst met jou of om te voldoen aan een wettelijke verplichting."})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Cookies, of vergelijkbare technieken, die wij gebruiken"}),d.jsx("p",{className:"text-muted-foreground",children:"FCXL gebruikt alleen technische en functionele cookies. En analytische cookies die geen inbreuk maken op je privacy. Een co
242okie is een klein tekstbestand dat bij het eerste bezoek aan deze website wordt opgeslagen op jouw computer, tablet of smartphone. De cookies die wij gebruiken zijn noodzakelijk voor de technische werking van de website en jouw gebruiksgemak. Ze zorgen ervoor dat de website naar behoren werkt en onthouden bijvoorbeeld jouw voorkeursinstellingen. Ook kunnen wij hiermee onze website optimaliseren. Je kunt je afmelden voor cookies door je internetbrowser zo in te stellen dat deze geen cookies meer opslaat. Daarnaast kun je ook alle informatie die eerder is opgeslagen via de instellingen van je browser verwijderen."})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Gegevens inzien, aanpassen of verwijderen"}),d.jsx("p",{className:"text-muted-foreground",children:"Je hebt het recht om je persoonsgegevens in te zien, te corrigeren of te verwijderen. Daarnaast heb je het recht om je eventuele toestemming voor de gegevensverwerking in te trekken of bezwaar te maken tegen de verwerking van jouw persoonsgegevens door FCXL en heb je het recht op gegevensoverdraagbaarheid. Dat betekent dat je bij ons een verzoek kan indienen om de persoonsgegevens die wij van jou beschikken in een computerbestand naar jou of een ander, door jou genoemde organisatie, te sturen."}),d.jsxs("p",{className:"text-muted-foreground mt-4",children:["Je kunt een verzoek tot inzage, correctie, verwijdering, gegevensoverdraging van je persoonsgegevens of verzoek tot intrekking van je toestemming of bezwaar op de verwerking van jouw persoonsgegevens sturen naar ",d.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),"."]}),d.jsx("p",{className:"text-muted-foreground mt-4",children:"Om er zeker van te zijn dat het verzoek tot inzage door jou is gedaan, vragen wij jou een kopie van je identiteitsbewijs met het verzoek mee te sturen. Maak in deze kopie je pasfoto, MRZ (machine readable zone, de strook met nummers onderaan het paspoort), paspoortnummer en Burgerservicenummer (BSN) zwart. Dit ter bescherming van je privacy. We reageren zo snel mogelijk, maar binnen vier weken, op jouw verzoek."}),d.jsxs("p",{className:"text-muted-foreground mt-4",children:["FCXL wil je er tevens op wijzen dat je de mogelijkheid hebt om een klacht in te dienen bij de nationale toezichthouder, de Autoriteit Persoonsgegevens. Dat kan via de volgende link: ",d.jsx("a",{href:"https://autoriteitpersoonsgegevens.nl/nl/contact-met-de-autoriteit-persoonsgegevens/tip-ons",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"https://autoriteitpersoonsgegevens.nl"})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Hoe wij persoonsgegevens beveiligen"}),d.jsxs("p",{className:"text-muted-foreground",children:["FCXL neemt de bescherming van jouw gegevens serieus en neemt passende maatregelen om misbruik, verlies, onbevoegde toegang, ongewenste openbaarmaking en ongeoorloofde wijziging tegen te gaan. Als jij het idee hebt dat jouw gegevens toch niet goed beveiligd zijn of er aanwijzingen zijn van misbruik, neem dan contact op met onze klantenservice of via ",d.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),"."]})]})]})]})}),d.jsx(ti,{})]})),fL=()=>d.jsxs("div",{className:"min-h-screen flex flex-col",children:[d.jsx(ei,{}),d.jsx("main",{className:"flex-1 pt-24 pb-16",children:d.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:d.jsxs("div",{className:"max-w-4xl mx-auto",children:[d.jsxs("div",{className:"text-center mb-12",children:[d.jsx("h1",{className:"text-4xl font-bold text-foreground mb-4",children:"Support"}),d.jsx("p",{className:"text-lg text-muted-foreground",children:"Heb je vragen of hulp nodig? We staan voor je klaar!"})]}),d.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[d.jsxs(Pt,{children:[d.jsx(kn,{children:d.jsxs(Sn,{className:"flex items-center gap-2",children:[d.jsx(Am,{className:"h-5 w-5 text-primary"}),"Bel ons"]})}),d.jsxs(Ot,{children:[d.jsx("a",{href:"tel:+31102613326",className:"text-lg font-medium text-primary hover:underline",children:"010 261 3326"}),d.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"Bereikbaar tijdens openingstijden"})]})]}),d.jsxs(Pt,{children:[d.jsx(kn,{children:d.jsxs(Sn,{className:"flex items-center gap-2",children:[d.jsx(Om,{className:"h-5 w-5 text-primary"}),"E-mail"]})}),d.jsxs(Ot,{children:[d.jsx("a",{href:"mailto:[email protected]",className:"text-lg font-medium text-primary hover:underline",children:"[email protected]"}),d.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"We reageren binnen 24 uur"})]})]}),d.jsxs(Pt,{children:[d.jsx(kn,{children:d.jsxs(Sn,{className:"flex items-center gap-2",children:[d.jsx(Rm,{className:"h-5 w-5 text-primary"}),"Bezoek ons"]})}),d.jsx(Ot,{children:d.jsxs("a",{href:"https://maps.google.com/maps?q=Lylantse+Baan+3,+2908+LG+Capelle+aan+den+IJssel",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:[d.jsx("p",{children:"Lylantse Baan 3"}),d.jsx("p",{children:"2908 LG Capelle aan den IJssel"})]})})]}),d.jsxs(Pt,{children:[d.jsx(kn,{children:d.jsxs(Sn,{className:"flex items-center gap-2",children:[d.jsx(Pm,{className:"h-5 w-5 text-primary"}),"Openingstijden"]})}),d.jsxs(Ot,{children:[d.jsx("p",{className:"font-medium",children:"Elke dag geopend"}),d.jsx("p",{className:"text-muted-foreground",children:"07:00 - 23:00"})]})]})]})]})})}),d.jsx(ti,{})]}),hL=()=>(x.useEffect(()=>{window.scrollTo(0,0)},[]),d.jsxs("div",{className:"min-h-screen",children:[d.jsx(ei,{}),d.jsx("main",{className:"container mx-auto px-4 py-20",children:d.jsxs("div",{className:"max-w-4xl mx-auto",children:[d.jsx("h1",{className:"text-3xl font-bold text-fitness-green mb-8 text-center",children:"Algemene Voorwaarden"}),d.jsxs("div",{className:"prose prose-neutral max-w-none space-y-8",children:[d.jsx("section",{children:d.jsx("p",{className:"text-muted-foreground",children:"Deze algemene voorwaarden zijn van toepassing op alle lidmaatschappen en diensten van FCXL (Fitness CapelleXL), gevestigd aan Lylantse Baan 3, 2908 LG Capelle aan den IJssel."})}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Artikel 1 – Lidmaatschap"}),d.jsxs("ul",{className:"text-muted-foreground list-disc pl-6 space-y-2",children:[d.jsx("li",{children:"Het lidmaatschap wordt aangegaan voor onbepaalde tijd en is maandelijks opzegbaar."}),d.jsx("li",{children:"Bij inschrijving dient een geldig identiteitsbewijs te worden getoond."}),d.jsx("li",{children:"Het lidmaatschap is strikt persoonlijk en niet overdraagbaar."}),d.jsx("li",{children:"Leden dienen minimaal 16 jaar oud te zijn. Leden tussen 16 en 18 jaar hebben toestemming nodig van een ouder of voogd."})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Artikel 2 – Betaling"}),d.jsxs("ul",{className:"text-muted-foreground list-disc pl-6 space-y-2",children:[d.jsx("li",{children:"De lidmaatschapskosten worden maandelijks via automatische incasso geïnd."}),d.jsx("li",{children:"Bij niet-tijdige betaling behoudt FCXL zich het recht voor de toegang te blokkeren totdat de betaling is voldaan."}),d.jsx("li",{children:"FCXL behoudt zich het recht voor de tarieven aan te passen. Leden worden hiervan minimaal één maand van tevoren op de hoogte gesteld."})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Artikel 3 – Opzegging"}),d.jsxs("ul",{className:"text-muted-foreground list-disc pl-6 space-y-2",children:[d.jsx("li",{children:"Het lidmaatschap kan op elk moment worden opgezegd met inachtneming van één kalandermaand opzegtermijn."}),d.jsxs("li",{children:["Opzegging dient schriftelijk of per e-mail te geschieden via ",d.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),"."]}),d.jsx("li",{children:"Bij opzegging vindt geen restitutie plaats van reeds betaalde lidmaatschapsgelden."})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Artikel 4 – Huisregels"}),d.jsxs("ul",{className:"text-muted-foreground list-disc pl-6 space-y-2",children:[d.jsxs("li",{children:["Het lid dient zich te houden aan de ",d.jsx(Ib,{to:"/huisregels",className:"text-primary hover:underline",children:"huisregels"})," van FCXL."]}),d.jsx("li",{children:"Het gebruik van de faciliteiten geschiedt op eigen risico."}),d.jsx("li",{children:"Het is verplicht om schone sportschoenen en een handdoek te gebruiken tijdens het sporten."}),d.jsx("li",{children:"We respecteren de privacy en rust van anderen."})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Artikel 5 – Aansprakelijkheid"}),d.jsxs("ul",{className:"text-muted-foreground list-disc pl-6 space-y-2",children:[d.jsx("li",{children:"FCXL is niet aansprakelijk voor diefstal, verlies of beschadiging van eigendommen van leden."}),d.jsx("li",{children:"FCXL is niet aansprakelijk voor enig letsel of schade opgelopen tijdens het gebruik van de faciliteiten, tenzij er sprake is van opzet of grove nalatigheid van FCXL."}),d.jsx("li",{children:"Het lid verklaart in goede gezondheid te verkeren en geen medische beperkingen te hebben die deelname aan sportactiviteiten in de weg staan."})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Artikel 6 – Openingstijden"}),d.jsx("p",{className:"text-muted-foreground",children:"FCXL behoudt zich het recht voor de openingstijden te wijzigen. Op feestdagen kunnen afwijkende openingstijden gelden. Leden worden hiervan tijdig op de hoogte gesteld."})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Artikel 7 – Toepasselijk recht"}),d.jsx("p",{className:"text-muted-foreground",children:"Op deze algemene voorwaarden is Nederlands recht van toepassing. Geschillen zullen worden voorgelegd aan de bevoegde rechter in het arrondissement Rotterdam."})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Contact"}),d.jsxs("p",{className:"text-muted-foreground",children:["Heb je vragen over deze algemene voorwaarden? Neem dan contact met ons op via"," ",d.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})," ","of bel ",d.jsx("a",{href:"tel:+31102613326",className:"text-primary hover:underline",children:"+31 (0) 10 261 3326"}),"."]})]})]})]})}),d.jsx(ti,{})]})),mL=()=>(x.useEffect(()=>{window.scrollTo(0,0)},[]),d.jsxs("div",{className:"min-h-screen",children:[d.jsx(ei,{}),d.jsx("main",{className:"container mx-auto px-4 py-20",children:d.jsxs("div",{className:"max-w-4xl mx-auto",children:[d.jsx("h1",{className:"text-3xl font-bold text-fitness-green mb-8 text-center",children:"Huisregels"}),d.jsxs("div",{className:"prose prose-neutral max-w-none space-y-6",children:[d.jsx("p",{className:"text-muted-foreground",children:"Om het sporten b
242ij FCXL (Fitness CapelleXL) voor iedereen prettig en veilig te houden, hanteren wij de volgende huisregels. Door gebruik te maken van onze faciliteiten ga je akkoord met deze regels."}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Algemeen"}),d.jsxs("ul",{className:"text-muted-foreground list-disc pl-6 space-y-2",children:[d.jsx("li",{children:"Volg te allen tijde de aanwijzingen op van het personeel van FCXL."}),d.jsx("li",{children:"Behandel de apparatuur, materialen en het gebouw met respect."}),d.jsx("li",{children:"Roken, alcohol en drugs zijn niet toegestaan in het pand."}),d.jsx("li",{children:"Huisdieren zijn niet toegestaan in de sportschool."})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Kleding & Hygiëne"}),d.jsxs("ul",{className:"text-muted-foreground list-disc pl-6 space-y-2",children:[d.jsx("li",{children:"Draag altijd schone sportschoenen tijdens het sporten."}),d.jsx("li",{children:"Het gebruik van een handdoek op de apparatuur is verplicht."}),d.jsx("li",{children:"Draag gepaste sportkleding."})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Gebruik van apparatuur"}),d.jsxs("ul",{className:"text-muted-foreground list-disc pl-6 space-y-2",children:[d.jsx("li",{children:"Ruim na gebruik alle gewichten en materialen op naar de daarvoor bestemde plek."}),d.jsx("li",{children:"Monopoliseer geen apparatuur, sta anderen toe om tussendoor te trainen (inwisselen)."}),d.jsx("li",{children:"Gebruik de apparatuur alleen waarvoor het bedoeld is."}),d.jsx("li",{children:"Laat geen gewichten vallen (tenzij noodzakelijk voor veiligheid)."})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Gedrag"}),d.jsxs("ul",{className:"text-muted-foreground list-disc pl-6 space-y-2",children:[d.jsx("li",{children:"We respecteren de privacy en rust van anderen."}),d.jsx("li",{children:"Intimidatie, agressie of discriminatie wordt niet getolereerd."}),d.jsx("li",{children:"Houd het geluidsniveau beperkt, gebruik koptelefoons voor muziek."}),d.jsx("li",{children:"Fotograferen of filmen is alleen toegestaan met toestemming van aanwezigen."})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Eigendommen"}),d.jsxs("ul",{className:"text-muted-foreground list-disc pl-6 space-y-2",children:[d.jsx("li",{children:"FCXL is niet aansprakelijk voor diefstal, verlies of beschadiging van persoonlijke eigendommen."}),d.jsx("li",{children:"Maak gebruik van de beschikbare lockers voor het opbergen van waardevolle spullen."})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Overtreding"}),d.jsx("p",{className:"text-muted-foreground",children:"Bij het niet naleven van de huisregels kan FCXL passende maatregelen nemen, waaronder een waarschuwing, tijdelijke schorsing of beëindiging van het lidmaatschap zonder restitutie."})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-4",children:"Contact"}),d.jsxs("p",{className:"text-muted-foreground",children:["Heb je vragen over de huisregels? Neem dan contact met ons op via"," ",d.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})," ","of bel ",d.jsx("a",{href:"tel:+31102613326",className:"text-primary hover:underline",children:"+31 (0) 10 261 3326"}),"."]})]})]})]})}),d.jsx(ti,{})]})),pL=()=>{const e=li();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),d.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-100",children:d.jsxs("div",{className:"text-center",children:[d.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),d.jsx("p",{className:"mb-4 text-xl text-gray-600",children:"Oops! Page not found"}),d.jsx("a",{href:"/",className:"text-blue-500 underline hover:text-blue-700",children:"Return to Home"})]})})},gL=()=>(Lc(),Q2(),d.jsx(d.Fragment,{children:d.jsxs(vP,{children:[d.jsx($r,{path:"/",element:d.jsx(dR,{})}),d.jsx($r,{path:"/inschrijven",element:d.jsx(cL,{})}),d.jsx($r,{path:"/privacy",element:d.jsx(dL,{})}),d.jsx($r,{path:"/support",element:d.jsx(fL,{})}),d.jsx($r,{path:"/voorwaarden",element:d.jsx(hL,{})}),d.jsx($r,{path:"/huisregels",element:d.jsx(mL,{})}),d.jsx($r,{path:"*",element:d.jsx(pL,{})})]})})),vL=new jN,yL=()=>d.jsx(TN,{client:vL,children:d.jsxs(nN,{children:[d.jsx(Lj,{}),d.jsx(pE,{}),d.jsx(CP,{children:d.jsx(gL,{})})]})});Xw(document.getElementById("root")).render(d.jsx(yL,{}));

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.