PageSourceSearch

https://aripipentruviitor.netlify.app/assets/index-CB-Wp2M1.js

js aripipentruviitor.netlify.app collected 2026-10-03 10:27:48 UTC 628,359 bytes, 345 lines download raw bytes

vendor: 6,257 bytes, lines 1-9
1var Dp=e=>{throw TypeError(e)};var Su=(e,t,r)=>t.has(e)||Dp("Cannot "+r);var R=(e,t,r)=>(Su(e,t,"read from private field"),r?r.call(e):t.get(e)),pe=(e,t,r)=>t.has(e)?Dp("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),re=(e,t,r,n)=>(Su(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),st=(e,t,r)=>(Su(e,t,"access private method"),r);var Va=(e,t,r,n)=>({set _(i){re(e,t,i,r)},get _(){return R(e,t,n)}});function t_(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r_(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Kv={exports:{}},Ac={},qv={exports:{}},le={};/**
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 ba=Symbol.for("react.element"),n_=Symbol.for("react.portal"),i_=Symbol.for("react.fragment"),s_=Symbol.for("react.strict_mode"),o_=Symbol.for("react.profiler"),a_=Symbol.for("react.provider"),l_=Symbol.for("react.context"),c_=Symbol.for("react.forward_ref"),u_=Symbol.for("react.suspense"),d_=Symbol.for("react.memo"),f_=Symbol.for("react.lazy"),zp=Symbol.iterator;function h_(e){return e===null||typeof e!="object"?null:(e=zp&&e[zp]||e["@@iterator"],typeof e=="function"?e:null)}var Gv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qv=Object.assign,Yv={};function Xs(e,t,r){this.props=e,this.context=t,this.refs=Yv,this.updater=r||Gv}Xs.prototype.isReactComponent={};Xs.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")};Xs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jv(){}Jv.prototype=Xs.prototype;function Jf(e,t,r){this.props=e,this.context=t,this.refs=Yv,this.updater=r||Gv}var Xf=Jf.prototype=new Jv;Xf.constructor=Jf;Qv(Xf,Xs.prototype);Xf.isPureReactComponent=!0;var Lp=Array.isArray,Xv=Object.prototype.hasOwnProperty,eh={current:null},ey={key:!0,ref:!0,__self:!0,__source:!0};function ty(e,t,r){var n,i={},s=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Xv.call(t,n)&&!ey.hasOwnProperty(n)&&(i[n]=t[n]);var a=arguments.length-2;if(a===1)i.children=r;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)i[n]===void 0&&(i[n]=a[n]);return{$$typeof:ba,type:e,key:s,ref:o,props:i,_owner:eh.current}}function p_(e,t){return{$$typeof:ba,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function th(e){return typeof e=="object"&&e!==null&&e.$$typeof===ba}function m_(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Mp=/\/+/g;function Eu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?m_(""+e.key):t.toString(36)}function Sl(e,t,r,n,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ba:case n_:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+Eu(o,0):n,Lp(i)?(r="",e!=null&&(r=e.replace(Mp,"$&/")+"/"),Sl(i,t,r,"",function(c){return c})):i!=null&&(th(i)&&(i=p_(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Mp,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",Lp(e))for(var a=0;a<e.length;a++){s=e[a];var l=n+Eu(s,a);o+=Sl(s,t,r,l,i)}else if(l=h_(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=n+Eu(s,a++),o+=Sl(s,t,r,l,i);else if(s==="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 Ba(e,t,r){if(e==null)return e;var n=[],i=0;return Sl(e,n,"","",function(s){return t.call(r,s,i++)}),n}function g_(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var bt={current:null},El={transition:null},v_={ReactCurrentDispatcher:bt,ReactCurrentBatchConfig:El,ReactCurrentOwner:eh};function ry(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 5,185 bytes, lines 9-25
9le.Children={map:Ba,forEach:function(e,t,r){Ba(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Ba(e,function(){t++}),t},toArray:function(e){return Ba(e,function(t){return t})||[]},only:function(e){if(!th(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};le.Component=Xs;le.Fragment=i_;le.Profiler=o_;le.PureComponent=Jf;le.StrictMode=s_;le.Suspense=u_;le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=v_;le.act=ry;le.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Qv({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=eh.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Xv.call(t,l)&&!ey.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];n.children=a}return{$$typeof:ba,type:e.type,key:i,ref:s,props:n,_owner:o}};le.createContext=function(e){return e={$$typeof:l_,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:a_,_context:e},e.Consumer=e};le.createElement=ty;le.createFactory=function(e){var t=ty.bind(null,e);return t.type=e,t};le.createRef=function(){return{current:null}};le.forwardRef=function(e){return{$$typeof:c_,render:e}};le.isValidElement=th;le.lazy=function(e){return{$$typeof:f_,_payload:{_status:-1,_result:e},_init:g_}};le.memo=function(e,t){return{$$typeof:d_,type:e,compare:t===void 0?null:t}};le.startTransition=function(e){var t=El.transition;El.transition={};try{e()}finally{El.transition=t}};le.unstable_act=ry;le.useCallback=function(e,t){return bt.current.useCallback(e,t)};le.useContext=function(e){return bt.current.useContext(e)};le.useDebugValue=function(){};le.useDeferredValue=function(e){return bt.current.useDeferredValue(e)};le.useEffect=function(e,t){return bt.current.useEffect(e,t)};le.useId=function(){return bt.current.useId()};le.useImperativeHandle=function(e,t,r){return bt.current.useImperativeHandle(e,t,r)};le.useInsertionEffect=function(e,t){return bt.current.useInsertionEffect(e,t)};le.useLayoutEffect=function(e,t){return bt.current.useLayoutEffect(e,t)};le.useMemo=function(e,t){return bt.current.useMemo(e,t)};le.useReducer=function(e,t,r){return bt.current.useReducer(e,t,r)};le.useRef=function(e){return bt.current.useRef(e)};le.useState=function(e){return bt.current.useState(e)};le.useSyncExternalStore=function(e,t,r){return bt.current.useSyncExternalStore(e,t,r)};le.useTransition=function(){return bt.current.useTransition()};le.version="18.3.1";qv.exports=le;var y=qv.exports;const A=Zv(y),rh=t_({__proto__:null,default:A},[y]);/**
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 y_=y,w_=Symbol.for("react.element"),x_=Symbol.for("react.fragment"),b_=Object.prototype.hasOwnProperty,__=y_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,k_={key:!0,ref:!0,__self:!0,__source:!0};function ny(e,t,r){var n,i={},s=null,o=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)b_.call(t,n)&&!k_.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:w_,type:e,key:s,ref:o,props:i,_owner:__.current}}Ac.Fragment=x_;Ac.jsx=ny;Ac.jsxs=ny;Kv.exports=Ac;var u=Kv.exports,iy={exports:{}},Mt={},sy={exports:{}},oy={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(P,O){var W=P.length;P.push(O);e:for(;0<W;){var ee=W-1>>>1,Y=P[ee];if(0<i(Y,O))P[ee]=O,P[W]=Y,W=ee;else break e}}function r(P){return P.length===0?null:P[0]}function n(P){if(P.length===0)return null;var O=P[0],W=P.pop();if(W!==O){P[0]=W;e:for(var ee=0,Y=P.length,se=Y>>>1;ee<se;){var oe=2*(ee+1)-1,Pe=P[oe],Qe=oe+1,ue=P[Qe];if(0>i(Pe,W))Qe<Y&&0>i(ue,Pe)?(P[ee]=ue,P[Qe]=W,ee=Qe):(P[ee]=Pe,P[oe]=W,ee=oe);else if(Qe<Y&&0>i(ue,W))P[ee]=ue,P[Qe]=W,ee=Qe;else break e}}return O}function i(P,O){var W=P.sortIndex-O.sortIndex;return W!==0?W:P.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],d=1,f=null,h=3,p=!1,b=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,m=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(P){for(var O=r(c);O!==null;){if(O.callback===null)n(c);
vendor: 9,487 bytes, lines 25-34
25else if(O.startTime<=P)n(c),O.sortIndex=O.expirationTime,t(l,O);else break;O=r(c)}}function _(P){if(g=!1,v(P),!b)if(r(l)!==null)b=!0,Z(k);else{var O=r(c);O!==null&&J(_,O.startTime-P)}}function k(P,O){b=!1,g&&(g=!1,w(T),T=-1),p=!0;var W=h;try{for(v(O),f=r(l);f!==null&&(!(f.expirationTime>O)||P&&!G());){var ee=f.callback;if(typeof ee=="function"){f.callback=null,h=f.priorityLevel;var Y=ee(f.expirationTime<=O);O=e.unstable_now(),typeof Y=="function"?f.callback=Y:f===r(l)&&n(l),v(O)}else n(l);f=r(l)}if(f!==null)var se=!0;else{var oe=r(c);oe!==null&&J(_,oe.startTime-O),se=!1}return se}finally{f=null,h=W,p=!1}}var E=!1,j=null,T=-1,L=5,M=-1;function G(){return!(e.unstable_now()-M<L)}function $(){if(j!==null){var P=e.unstable_now();M=P;var O=!0;try{O=j(!0,P)}finally{O?H():(E=!1,j=null)}}else E=!1}var H;if(typeof m=="function")H=function(){m($)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,Q=D.port2;D.port1.onmessage=$,H=function(){Q.postMessage(null)}}else H=function(){x($,0)};function Z(P){j=P,E||(E=!0,H())}function J(P,O){T=x(function(){P(e.unstable_now())},O)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){b||p||(b=!0,Z(k))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(P){switch(h){case 1:case 2:case 3:var O=3;break;default:O=h}var W=h;h=O;try{return P()}finally{h=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,O){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var W=h;h=P;try{return O()}finally{h=W}},e.unstable_scheduleCallback=function(P,O,W){var ee=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?ee+W:ee):W=ee,P){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=W+Y,P={id:d++,callback:O,priorityLevel:P,startTime:W,expirationTime:Y,sortIndex:-1},W>ee?(P.sortIndex=W,t(c,P),r(l)===null&&P===r(c)&&(g?(w(T),T=-1):g=!0,J(_,W-ee))):(P.sortIndex=Y,t(l,P),b||p||(b=!0,Z(k))),P},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(P){var O=h;return function(){var W=h;h=O;try{return P.apply(this,arguments)}finally{h=W}}}})(oy);sy.exports=oy;var S_=sy.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 E_=y,Lt=S_;function z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 ay=new Set,Zo={};function Fi(e,t){Bs(e,t),Bs(e+"Capture",t)}function Bs(e,t){for(Zo[e]=t,e=0;e<t.length;e++)ay.add(t[e])}var dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_d=Object.prototype.hasOwnProperty,j_=/^[: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]*$/,Fp={},Up={};function C_(e){return _d.call(Up,e)?!0:_d.call(Fp,e)?!1:j_.test(e)?Up[e]=!0:(Fp[e]=!0,!1)}function T_(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function N_(e,t,r,n){if(t===null||typeof t>"u"||T_(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 _t(e,t,r,n,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var it={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){it[e]=new _t(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];it[t]=new _t(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){it[e]=new _t(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){it[e]=new _t(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){it[e]=new _t(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){it[e]=new _t(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){it[e]=new _t(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){it[e]=new _t(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){it[e]=new _t(e,5,!1,e.toLowerCase(),null,!1,!1)});var nh=/[\-:]([a-z])/g;function ih(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(nh,ih);it[t]=new _t(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(nh,ih);it[t]=new _t(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(nh,ih);it[t]=new _t(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){it[e]=new _t(e,1,!1,e.toLowerCase(),null,!1,!1)});it.xlinkHref=new _t("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){it[e]=new _t(e,1,!1,e.toLowerCase(),null,!0,!0)});function sh(e,t,r,n){var i=it.hasOwnProperty(t)?it[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(N_(t,r,i,n)&&(r=null),n||i===null?C_(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var yn=E_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Wa=Symbol.for("react.element"),us=Symbol.for("react.portal"),ds=Symbol.for("react.fragment"),oh=Symbol.for("react.strict_mode"),kd=Symbol.for("react.profiler"),ly=Symbol.for("react.provider"),cy=Symbol.for("react.context"),ah=Symbol.for("react.forward_ref"),Sd=Symbol.for("react.suspense"),Ed=Symbol.for("react.suspense_list"),lh=Symbol.for("react.memo"),Rn=Symbol.for("react.lazy"),uy=Symbol.for("react.offscreen"),Vp=Symbol.iterator;function uo(e){return e===null||typeof e!="object"?null:(e=Vp&&e[Vp]||e["@@iterator"],typeof e=="function"?e:null)}var Ie=Object.assign,ju;function So(e){if(ju===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);ju=t&&t[1]||""}return`
34`+ju+e}var Cu=!1;function Tu(e,t){if(!e||Cu)return"";Cu=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}
vendor: 14,090 bytes, lines 34-37
34catch(c){if(c&&n&&typeof c.stack=="string"){for(var i=c.stack.split(`
35`),s=n.stack.split(`
36`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
37`+i[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{Cu=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?So(e):""}function P_(e){switch(e.tag){case 5:return So(e.type);case 16:return So("Lazy");case 13:return So("Suspense");case 19:return So("SuspenseList");case 0:case 2:case 15:return e=Tu(e.type,!1),e;case 11:return e=Tu(e.type.render,!1),e;case 1:return e=Tu(e.type,!0),e;default:return""}}function jd(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 ds:return"Fragment";case us:return"Portal";case kd:return"Profiler";case oh:return"StrictMode";case Sd:return"Suspense";case Ed:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cy:return(e.displayName||"Context")+".Consumer";case ly:return(e._context.displayName||"Context")+".Provider";case ah:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lh:return t=e.displayName||null,t!==null?t:jd(e.type)||"Memo";case Rn:t=e._payload,e=e._init;try{return jd(e(t))}catch{}}return null}function A_(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 jd(t);case 8:return t===oh?"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 ei(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function R_(e){var t=dy(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ha(e){e._valueTracker||(e._valueTracker=R_(e))}function fy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=dy(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Bl(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 Cd(e,t){var r=t.checked;return Ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Bp(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ei(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function hy(e,t){t=t.checked,t!=null&&sh(e,"checked",t,!1)}function Td(e,t){hy(e,t);var r=ei(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Nd(e,t.type,r):t.hasOwnProperty("defaultValue")&&Nd(e,t.type,ei(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wp(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Nd(e,t,r){(t!=="number"||Bl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Eo=Array.isArray;function Es(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ei(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Pd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(z(91));return Ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Hp(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(z(92));if(Eo(r)){if(1<r.length)throw Error(z(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ei(r)}}function py(e,t){var r=ei(t.value),n=ei(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Zp(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function my(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 Ad(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?my(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Za,gy=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Za=Za||document.createElement("div"),Za.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Za.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ko(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var No={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},O_=["Webkit","ms","Moz","O"];Object.keys(No).forEach(function(e){O_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),No[t]=No[e]})});function vy(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||No.hasOwnProperty(e)&&No[e]?(""+t).trim():t+"px"}function yy(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=vy(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var I_=Ie({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 Rd(e,t){if(t){if(I_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Od(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 Id=null;function ch(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $d=null,js=null,Cs=null;function Kp(e){if(e=Sa(e)){if(typeof $d!="function")throw Error(z(280));var t=e.stateNode;t&&(t=Dc(t),$d(e.stateNode,e.type,t))}}function wy(e){js?Cs?Cs.push(e):Cs=[e]:js=e}function xy(){if(js){var e=js,t=Cs;if(Cs=js=null,Kp(e),t)for(e=0;e<t.length;e++)Kp(t[e])}}function by(e,t){return e(t)}function _y(){}var Nu=!1;function ky(e,t,r){if(Nu)return e(t,r);Nu=!0;try{return by(e,t,r)}finally{Nu=!1,(js!==null||Cs!==null)&&(_y(),xy())}}function qo(e,t){var r=e.stateNode;if(r===null)return null;var n=Dc(r);if(n===null)return null;r=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(z(231,t,typeof r));return r}var Dd=!1;if(dn)try{var fo={};Object.defineProperty(fo,"passive",{get:function(){Dd=!0}}),window.addEventListener("test",fo,fo),window.removeEventListener("test",fo,fo)}catch{Dd=!1}function $_(e,t,r,n,i,s,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(d){this.onError(d)}}var Po=!1,Wl=null,Hl=!1,zd=null,D_={onError:function(e){Po=!0,Wl=e}};function z_(e,t,r,n,i,s,o,a,l){Po=!1,Wl=null,$_.apply(D_,arguments)}function L_(e,t,r,n,i,s,o,a,l){if(z_.apply(this,arguments),Po){if(Po){var c=Wl;Po=!1,Wl=null}else throw Error(z(198));Hl||(Hl=!0,zd=c)}}function Ui(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Sy(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 qp(e){if(Ui(e)!==e)throw Error(z(188))}function M_(e){var t=e.alternate;if(!t){if(t=Ui(e),t===null)throw Error(z(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var s=i.alternate;if(s===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===r)return qp(i),e;if(s===n)return qp(i),t;s=s.sibling}throw Error(z(188))}if(r.return!==n.return)r=i,n=s;else{for(var o=!1,a=i.child;a;){if(a===r){o=!0,r=i,n=s;break}if(a===n){o=!0,n=i,r=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===r){o=!0,r=s,n=i;break}if(a===n){o=!0,n=s,r=i;break}a=a.sibling}if(!o)throw Error(z(189))}}if(r.alternate!==n)throw Error(z(190))}if(r.tag!==3)throw Error(z(188));return r.stateNode.current===r?e:t}function Ey(e){return e=M_(e),e!==null?jy(e):null}function jy(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=jy(e);if(t!==null)return t;e=e.sibling}return null}var Cy=Lt.unstable_scheduleCallback,Gp=Lt.unstable_cancelCallback,F_=Lt.unstable_shouldYield,U_=Lt.unstable_requestPaint,Me=Lt.unstable_now,V_=Lt.unstable_getCurrentPriorityLevel,uh=Lt.unstable_ImmediatePriority,Ty=Lt.unstable_UserBlockingPriority,Zl=Lt.unstable_NormalPriority,B_=Lt.unstable_LowPriority,Ny=Lt.unstable_IdlePriority,Rc=null,zr=null;function W_(e){if(zr&&typeof zr.onCommitFiberRoot=="function")try{zr.onCommitFiberRoot(Rc,e,void 0,(e.current.flags&128)===128)}catch{}}var gr=Math.clz32?Math.clz32:K_,H_=Math.log,Z_=Math.LN2;function K_(e){return e>>>=0,e===0?32:31-(H_(e)/Z_|0)|0}var Ka=64,qa=4194304;function jo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Kl(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,o=r&268435455;if(o!==0){var a=o&~i;a!==0?n=jo(a):(s&=o,s!==0&&(n=jo(s)))}else o=r&~i,o!==0?n=jo(o):s!==0&&(n=jo(s));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-gr(t),i=1<<r,n|=e[r],t&=~i;return n}function q_(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 G_(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-gr(s),a=1<<o,l=i[o];l===-1?(!(a&r)||a&n)&&(i[o]=q_(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Ld(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Py(){var e=Ka;return Ka<<=1,!(Ka&4194240)&&(Ka=64),e}function Pu(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function _a(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gr(t),e[t]=r}function Q_(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-gr(r),s=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~s}}function dh(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-gr(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var ve=0;function Ay(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ry,fh,Oy,Iy,$y,Md=!1,Ga=[],Hn=null,Zn=null,Kn=null,Go=new Map,Qo=new Map,In=[],Y_="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 Qp(e,t){switch(e){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":Zn=null;break;case"mouseover":case"mouseout":Kn=null;break;case"pointerover":case"pointerout":Go.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qo.delete(t.pointerId)}}function ho(e,t,r,n,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Sa(t),t!==null&&fh(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function J_(e,t,r,n,i){switch(t){case"focusin":return Hn=ho(Hn,e,t,r,n,i),!0;case"dragenter":return Zn=ho(Zn,e,t,r,n,i),!0;case"mouseover":return Kn=ho(Kn,e,t,r,n,i),!0;case"pointerover":var s=i.pointerId;return Go.set(s,ho(Go.get(s)||null,e,t,r,n,i)),!0;case"gotpointercapture":return s=i.pointerId,Qo.set(s,ho(Qo.get(s)||null,e,t,r,n,i)),!0}return!1}function Dy(e){var t=yi(e.target);if(t!==null){var r=Ui(t);if(r!==null){if(t=r.tag,t===13){if(t=Sy(r),t!==null){e.blockedOn=t,$y(e.priority,function(){Oy(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function jl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Fd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Id=n,r.target.dispatchEvent(n),Id=null}else return t=Sa(r),t!==null&&fh(t),e.blockedOn=r,!1;t.shift()}return!0}function Yp(e,t,r){jl(e)&&r.delete(t)}function X_(){Md=!1,Hn!==null&&jl(Hn)&&(Hn=null),Zn!==null&&jl(Zn)&&(Zn=null),Kn!==null&&jl(Kn)&&(Kn=null),Go.forEach(Yp),Qo.forEach(Yp)}function po(e,t){e.blockedOn===t&&(e.blockedOn=null,Md||(Md=!0,Lt.unstable_scheduleCallback(Lt.unstable_NormalPriority,X_)))}function Yo(e){function t(i){return po(i,e)}if(0<Ga.length){po(Ga[0],e);for(var r=1;r<Ga.length;r++){var n=Ga[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Hn!==null&&po(Hn,e),Zn!==null&&po(Zn,e),Kn!==null&&po(Kn,e),Go.forEach(t),Qo.forEach(t),r=0;r<In.length;r++)n=In[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<In.length&&(r=In[0],r.blockedOn===null);)Dy(r),r.blockedOn===null&&In.shift()}var Ts=yn.ReactCurrentBatchConfig,ql=!0;function ek(e,t,r,n){var i=ve,s=Ts.transition;Ts.transition=null;try{ve=1,hh(e,t,r,n)}finally{ve=i,Ts.transition=s}}function tk(e,t,r,n){var i=ve,s=Ts.transition;Ts.transition=null;try{ve=4,hh(e,t,r,n)}finally{ve=i,Ts.transition=s}}function hh(e,t,r,n){if(ql){var i=Fd(e,t,r,n);if(i===null)Fu(e,t,n,Gl,r),Qp(e,n);else if(J_(i,e,t,r,n))n.stopPropagation();else if(Qp(e,n),t&4&&-1<Y_.indexOf(e)){for(;i!==null;){var s=Sa(i);if(s!==null&&Ry(s),s=Fd(e,t,r,n),s===null&&Fu(e,t,n,Gl,r),s===i)break;i=s}i!==null&&n.stopPropagation()}else Fu(e,t,n,null,r)}}var Gl=null;function Fd(e,t,r,n){if(Gl=null,e=ch(n),e=yi(e),e!==null)if(t=Ui(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Sy(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gl=e,null}
vendor: 10,401 bytes, line 37
37function zy(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(V_()){case uh:return 1;case Ty:return 4;case Zl:case B_:return 16;case Ny:return 536870912;default:return 16}default:return 16}}var Vn=null,ph=null,Cl=null;function Ly(){if(Cl)return Cl;var e,t=ph,r=t.length,n,i="value"in Vn?Vn.value:Vn.textContent,s=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[s-n];n++);return Cl=i.slice(e,1<n?1-n:void 0)}function Tl(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 Qa(){return!0}function Jp(){return!1}function Ft(e){function t(r,n,i,s,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Qa:Jp,this.isPropagationStopped=Jp,this}return Ie(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Qa)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Qa)},persist:function(){},isPersistent:Qa}),t}var eo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mh=Ft(eo),ka=Ie({},eo,{view:0,detail:0}),rk=Ft(ka),Au,Ru,mo,Oc=Ie({},ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gh,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!==mo&&(mo&&e.type==="mousemove"?(Au=e.screenX-mo.screenX,Ru=e.screenY-mo.screenY):Ru=Au=0,mo=e),Au)},movementY:function(e){return"movementY"in e?e.movementY:Ru}}),Xp=Ft(Oc),nk=Ie({},Oc,{dataTransfer:0}),ik=Ft(nk),sk=Ie({},ka,{relatedTarget:0}),Ou=Ft(sk),ok=Ie({},eo,{animationName:0,elapsedTime:0,pseudoElement:0}),ak=Ft(ok),lk=Ie({},eo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ck=Ft(lk),uk=Ie({},eo,{data:0}),em=Ft(uk),dk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fk={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"},hk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pk(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=hk[e])?!!t[e]:!1}function gh(){return pk}var mk=Ie({},ka,{key:function(e){if(e.key){var t=dk[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Tl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?fk[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gh,charCode:function(e){return e.type==="keypress"?Tl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Tl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),gk=Ft(mk),vk=Ie({},Oc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tm=Ft(vk),yk=Ie({},ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gh}),wk=Ft(yk),xk=Ie({},eo,{propertyName:0,elapsedTime:0,pseudoElement:0}),bk=Ft(xk),_k=Ie({},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}),kk=Ft(_k),Sk=[9,13,27,32],vh=dn&&"CompositionEvent"in window,Ao=null;dn&&"documentMode"in document&&(Ao=document.documentMode);var Ek=dn&&"TextEvent"in window&&!Ao,My=dn&&(!vh||Ao&&8<Ao&&11>=Ao),rm=" ",nm=!1;function Fy(e,t){switch(e){case"keyup":return Sk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fs=!1;function jk(e,t){switch(e){case"compositionend":return Uy(t);case"keypress":return t.which!==32?null:(nm=!0,rm);case"textInput":return e=t.data,e===rm&&nm?null:e;default:return null}}function Ck(e,t){if(fs)return e==="compositionend"||!vh&&Fy(e,t)?(e=Ly(),Cl=ph=Vn=null,fs=!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 My&&t.locale!=="ko"?null:t.data;default:return null}}var Tk={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 im(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Tk[e.type]:t==="textarea"}function Vy(e,t,r,n){wy(n),t=Ql(t,"onChange"),0<t.length&&(r=new mh("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Ro=null,Jo=null;function Nk(e){Xy(e,0)}function Ic(e){var t=ms(e);if(fy(t))return e}function Pk(e,t){if(e==="change")return t}var By=!1;if(dn){var Iu;if(dn){var $u="oninput"in document;if(!$u){var sm=document.createElement("div");sm.setAttribute("oninput","return;"),$u=typeof sm.oninput=="function"}Iu=$u}else Iu=!1;By=Iu&&(!document.documentMode||9<document.documentMode)}function om(){Ro&&(Ro.detachEvent("onpropertychange",Wy),Jo=Ro=null)}function Wy(e){if(e.propertyName==="value"&&Ic(Jo)){var t=[];Vy(t,Jo,e,ch(e)),ky(Nk,t)}}function Ak(e,t,r){e==="focusin"?(om(),Ro=t,Jo=r,Ro.attachEvent("onpropertychange",Wy)):e==="focusout"&&om()}function Rk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ic(Jo)}function Ok(e,t){if(e==="click")return Ic(t)}function Ik(e,t){if(e==="input"||e==="change")return Ic(t)}function $k(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yr=typeof Object.is=="function"?Object.is:$k;function Xo(e,t){if(yr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!_d.call(t,i)||!yr(e[i],t[i]))return!1}return!0}function am(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lm(e,t){var r=am(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=am(r)}}function Hy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zy(){for(var e=window,t=Bl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Bl(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 Dk(e){var t=Zy(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Hy(r.ownerDocument.documentElement,r)){if(n!==null&&yh(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!e.extend&&s>n&&(i=n,n=s,s=i),i=lm(r,s);var o=lm(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var zk=dn&&"documentMode"in document&&11>=document.documentMode,hs=null,Ud=null,Oo=null,Vd=!1;function cm(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Vd||hs==null||hs!==Bl(n)||(n=hs,"selectionStart"in n&&yh(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,383 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),Oo&&Xo(Oo,n)||(Oo=n,n=Ql(Ud,"onSelect"),0<n.length&&(t=new mh("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=hs)))}function Ya(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ps={animationend:Ya("Animation","AnimationEnd"),animationiteration:Ya("Animation","AnimationIteration"),animationstart:Ya("Animation","AnimationStart"),transitionend:Ya("Transition","TransitionEnd")},Du={},Ky={};dn&&(Ky=document.createElement("div").style,"AnimationEvent"in window||(delete ps.animationend.animation,delete ps.animationiteration.animation,delete ps.animationstart.animation),"TransitionEvent"in window||delete ps.transitionend.transition);function $c(e){if(Du[e])return Du[e];if(!ps[e])return e;var t=ps[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Ky)return Du[e]=t[r];return e}var qy=$c("animationend"),Gy=$c("animationiteration"),Qy=$c("animationstart"),Yy=$c("transitionend"),Jy=new Map,um="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 ii(e,t){Jy.set(e,t),Fi(t,[e])}for(var zu=0;zu<um.length;zu++){var Lu=um[zu],Lk=Lu.toLowerCase(),Mk=Lu[0].toUpperCase()+Lu.slice(1);ii(Lk,"on"+Mk)}ii(qy,"onAnimationEnd");ii(Gy,"onAnimationIteration");ii(Qy,"onAnimationStart");ii("dblclick","onDoubleClick");ii("focusin","onFocus");ii("focusout","onBlur");ii(Yy,"onTransitionEnd");Bs("onMouseEnter",["mouseout","mouseover"]);Bs("onMouseLeave",["mouseout","mouseover"]);Bs("onPointerEnter",["pointerout","pointerover"]);Bs("onPointerLeave",["pointerout","pointerover"]);Fi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Fi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Fi("onBeforeInput",["compositionend","keypress","textInput","paste"]);Fi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Fi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Fi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Co="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(" "),Fk=new Set("cancel close invalid load scroll toggle".split(" ").concat(Co));function dm(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,L_(n,t,void 0,e),e.currentTarget=null}function Xy(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var s=void 0;if(t)for(var o=n.length-1;0<=o;o--){var a=n[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;dm(i,a,c),s=l}else for(o=0;o<n.length;o++){if(a=n[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;dm(i,a,c),s=l}}}if(Hl)throw e=zd,Hl=!1,zd=null,e}function Ee(e,t){var r=t[Kd];r===void 0&&(r=t[Kd]=new Set);var n=e+"__bubble";r.has(n)||(e0(t,e,2,!1),r.add(n))}function Mu(e,t,r){var n=0;t&&(n|=4),e0(r,e,n,t)}var Ja="_reactListening"+Math.random().toString(36).slice(2);function ea(e){if(!e[Ja]){e[Ja]=!0,ay.forEach(function(r){r!=="selectionchange"&&(Fk.has(r)||Mu(r,!1,e),Mu(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ja]||(t[Ja]=!0,Mu("selectionchange",!1,t))}}function e0(e,t,r,n){switch(zy(t)){case 1:var i=ek;break;case 4:i=tk;break;default:i=hh}r=i.bind(null,t,r,e),i=void 0,!Dd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Fu(e,t,r,n,i){var s=n;
vendor: 2,645 bytes, line 37
37if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var a=n.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=yi(a),o===null)return;if(l=o.tag,l===5||l===6){n=s=o;continue e}a=a.parentNode}}n=n.return}ky(function(){var c=s,d=ch(r),f=[];e:{var h=Jy.get(e);if(h!==void 0){var p=mh,b=e;switch(e){case"keypress":if(Tl(r)===0)break e;case"keydown":case"keyup":p=gk;break;case"focusin":b="focus",p=Ou;break;case"focusout":b="blur",p=Ou;break;case"beforeblur":case"afterblur":p=Ou;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Xp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=ik;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=wk;break;case qy:case Gy:case Qy:p=ak;break;case Yy:p=bk;break;case"scroll":p=rk;break;case"wheel":p=kk;break;case"copy":case"cut":case"paste":p=ck;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=tm}var g=(t&4)!==0,x=!g&&e==="scroll",w=g?h!==null?h+"Capture":null:h;g=[];for(var m=c,v;m!==null;){v=m;var _=v.stateNode;if(v.tag===5&&_!==null&&(v=_,w!==null&&(_=qo(m,w),_!=null&&g.push(ta(m,_,v)))),x)break;m=m.return}0<g.length&&(h=new p(h,b,null,r,d),f.push({event:h,listeners:g}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&r!==Id&&(b=r.relatedTarget||r.fromElement)&&(yi(b)||b[fn]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(b=r.relatedTarget||r.toElement,p=c,b=b?yi(b):null,b!==null&&(x=Ui(b),b!==x||b.tag!==5&&b.tag!==6)&&(b=null)):(p=null,b=c),p!==b)){if(g=Xp,_="onMouseLeave",w="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(g=tm,_="onPointerLeave",w="onPointerEnter",m="pointer"),x=p==null?h:ms(p),v=b==null?h:ms(b),h=new g(_,m+"leave",p,r,d),h.target=x,h.relatedTarget=v,_=null,yi(d)===c&&(g=new g(w,m+"enter",b,r,d),g.target=v,g.relatedTarget=x,_=g),x=_,p&&b)t:{for(g=p,w=b,m=0,v=g;v;v=Ji(v))m++;for(v=0,_=w;_;_=Ji(_))v++;for(;0<m-v;)g=Ji(g),m--;for(;0<v-m;)w=Ji(w),v--;for(;m--;){if(g===w||w!==null&&g===w.alternate)break t;g=Ji(g),w=Ji(w)}g=null}else g=null;p!==null&&fm(f,h,p,g,!1),b!==null&&x!==null&&fm(f,x,b,g,!0)}}
vendor: 6,372 bytes, lines 37-38
37e:{if(h=c?ms(c):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var k=Pk;else if(im(h))if(By)k=Ik;else{k=Rk;var E=Ak}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(k=Ok);if(k&&(k=k(e,c))){Vy(f,k,r,d);break e}E&&E(e,h,c),e==="focusout"&&(E=h._wrapperState)&&E.controlled&&h.type==="number"&&Nd(h,"number",h.value)}switch(E=c?ms(c):window,e){case"focusin":(im(E)||E.contentEditable==="true")&&(hs=E,Ud=c,Oo=null);break;case"focusout":Oo=Ud=hs=null;break;case"mousedown":Vd=!0;break;case"contextmenu":case"mouseup":case"dragend":Vd=!1,cm(f,r,d);break;case"selectionchange":if(zk)break;case"keydown":case"keyup":cm(f,r,d)}var j;if(vh)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else fs?Fy(e,r)&&(T="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(T="onCompositionStart");T&&(My&&r.locale!=="ko"&&(fs||T!=="onCompositionStart"?T==="onCompositionEnd"&&fs&&(j=Ly()):(Vn=d,ph="value"in Vn?Vn.value:Vn.textContent,fs=!0)),E=Ql(c,T),0<E.length&&(T=new em(T,e,null,r,d),f.push({event:T,listeners:E}),j?T.data=j:(j=Uy(r),j!==null&&(T.data=j)))),(j=Ek?jk(e,r):Ck(e,r))&&(c=Ql(c,"onBeforeInput"),0<c.length&&(d=new em("onBeforeInput","beforeinput",null,r,d),f.push({event:d,listeners:c}),d.data=j))}Xy(f,t)})}function ta(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ql(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=qo(e,r),s!=null&&n.unshift(ta(e,s,i)),s=qo(e,t),s!=null&&n.push(ta(e,s,i))),e=e.return}return n}function Ji(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function fm(e,t,r,n,i){for(var s=t._reactName,o=[];r!==null&&r!==n;){var a=r,l=a.alternate,c=a.stateNode;if(l!==null&&l===n)break;a.tag===5&&c!==null&&(a=c,i?(l=qo(r,s),l!=null&&o.unshift(ta(r,l,a))):i||(l=qo(r,s),l!=null&&o.push(ta(r,l,a)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var Uk=/\r\n?/g,Vk=/\u0000|\uFFFD/g;function hm(e){return(typeof e=="string"?e:""+e).replace(Uk,`
38`).replace(Vk,"")}function Xa(e,t,r){if(t=hm(t),hm(e)!==t&&r)throw Error(z(425))}function Yl(){}var Bd=null,Wd=null;function Hd(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 Zd=typeof setTimeout=="function"?setTimeout:void 0,Bk=typeof clearTimeout=="function"?clearTimeout:void 0,pm=typeof Promise=="function"?Promise:void 0,Wk=typeof queueMicrotask=="function"?queueMicrotask:typeof pm<"u"?function(e){return pm.resolve(null).then(e).catch(Hk)}:Zd;function Hk(e){setTimeout(function(){throw e})}function Uu(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Yo(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Yo(t)}function qn(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 mm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var to=Math.random().toString(36).slice(2),Or="__reactFiber$"+to,ra="__reactProps$"+to,fn="__reactContainer$"+to,Kd="__reactEvents$"+to,Zk="__reactListeners$"+to,Kk="__reactHandles$"+to;function yi(e){var t=e[Or];if(t)return t;for(var r=e.parentNode;r;){if(t=r[fn]||r[Or]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=mm(e);e!==null;){if(r=e[Or])return r;e=mm(e)}return t}e=r,r=e.parentNode}return null}function Sa(e){return e=e[Or]||e[fn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ms(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(z(33))}function Dc(e){return e[ra]||null}var qd=[],gs=-1;function si(e){return{current:e}}function je(e){0>gs||(e.current=qd[gs],qd[gs]=null,gs--)}function _e(e,t){gs++,qd[gs]=e.current,e.current=t}var ti={},ut=si(ti),Nt=si(!1),Pi=ti;function Ws(e,t){var r=e.type.contextTypes;if(!r)return ti;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Pt(e){return e=e.childContextTypes,e!=null}function Jl(){je(Nt),je(ut)}function gm(e,t,r){if(ut.current!==ti)throw Error(z(168));_e(ut,t),_e(Nt,r)}function t0(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(z(108,A_(e)||"Unknown",i));return Ie({},r,n)}function Xl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ti,Pi=ut.current,_e(ut,e),_e(Nt,Nt.current),!0}function vm(e,t,r){var n=e.stateNode;if(!n)throw Error(z(169));r?(e=t0(e,t,Pi),n.__reactInternalMemoizedMergedChildContext=e,je(Nt),je(ut),_e(ut,e)):je(Nt),_e(Nt,r)}var sn=null,zc=!1,Vu=!1;function r0(e){sn===null?sn=[e]:sn.push(e)}function qk(e){zc=!0,r0(e)}function oi(){if(!Vu&&sn!==null){Vu=!0;var e=0,t=ve;try{var r=sn;for(ve=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}sn=null,zc=!1}catch(i){throw sn!==null&&(sn=sn.slice(e+1)),Cy(uh,oi),i}finally{ve=t,Vu=!1}}return null}var vs=[],ys=0,ec=null,tc=0,Wt=[],Ht=0,Ai=null,ln=1,cn="";function pi(e,t){vs[ys++]=tc,vs[ys++]=ec,ec=e,tc=t}function n0(e,t,r){Wt[Ht++]=ln,Wt[Ht++]=cn,Wt[Ht++]=Ai,Ai=e;var n=ln;e=cn;var i=32-gr(n)-1;n&=~(1<<i),r+=1;var s=32-gr(t)+i;if(30<s){var o=i-i%5;s=(n&(1<<o)-1).toString(32),n>>=o,i-=o,ln=1<<32-gr(t)+i|r<<i|n,cn=s+e}else ln=1<<s|r<<i|n,cn=e}function wh(e){e.return!==null&&(pi(e,1),n0(e,1,0))}function xh(e){for(;e===ec;)ec=vs[--ys],vs[ys]=null,tc=vs[--ys],vs[ys]=null;for(;e===Ai;)Ai=Wt[--Ht],Wt[Ht]=null,cn=Wt[--Ht],Wt[Ht]=null,ln=Wt[--Ht],Wt[Ht]=null}var Dt=null,$t=null,Te=!1,dr=null;function i0(e,t){var r=Zt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function ym(e,t){switch(e.tag){case 5:var r=e.type;
vendor: 13,718 bytes, line 38
38return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Dt=e,$t=qn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Dt=e,$t=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Ai!==null?{id:ln,overflow:cn}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Zt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Dt=e,$t=null,!0):!1;default:return!1}}function Gd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Qd(e){if(Te){var t=$t;if(t){var r=t;if(!ym(e,t)){if(Gd(e))throw Error(z(418));t=qn(r.nextSibling);var n=Dt;t&&ym(e,t)?i0(n,r):(e.flags=e.flags&-4097|2,Te=!1,Dt=e)}}else{if(Gd(e))throw Error(z(418));e.flags=e.flags&-4097|2,Te=!1,Dt=e}}}function wm(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Dt=e}function el(e){if(e!==Dt)return!1;if(!Te)return wm(e),Te=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Hd(e.type,e.memoizedProps)),t&&(t=$t)){if(Gd(e))throw s0(),Error(z(418));for(;t;)i0(e,t),t=qn(t.nextSibling)}if(wm(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(z(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){$t=qn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}$t=null}}else $t=Dt?qn(e.stateNode.nextSibling):null;return!0}function s0(){for(var e=$t;e;)e=qn(e.nextSibling)}function Hs(){$t=Dt=null,Te=!1}function bh(e){dr===null?dr=[e]:dr.push(e)}var Gk=yn.ReactCurrentBatchConfig;function go(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(z(309));var n=r.stateNode}if(!n)throw Error(z(147,e));var i=n,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(z(284));if(!r._owner)throw Error(z(290,e))}return e}function tl(e,t){throw e=Object.prototype.toString.call(t),Error(z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function xm(e){var t=e._init;return t(e._payload)}function o0(e){function t(w,m){if(e){var v=w.deletions;v===null?(w.deletions=[m],w.flags|=16):v.push(m)}}function r(w,m){if(!e)return null;for(;m!==null;)t(w,m),m=m.sibling;return null}function n(w,m){for(w=new Map;m!==null;)m.key!==null?w.set(m.key,m):w.set(m.index,m),m=m.sibling;return w}function i(w,m){return w=Jn(w,m),w.index=0,w.sibling=null,w}function s(w,m,v){return w.index=v,e?(v=w.alternate,v!==null?(v=v.index,v<m?(w.flags|=2,m):v):(w.flags|=2,m)):(w.flags|=1048576,m)}function o(w){return e&&w.alternate===null&&(w.flags|=2),w}function a(w,m,v,_){return m===null||m.tag!==6?(m=Gu(v,w.mode,_),m.return=w,m):(m=i(m,v),m.return=w,m)}function l(w,m,v,_){var k=v.type;return k===ds?d(w,m,v.props.children,_,v.key):m!==null&&(m.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Rn&&xm(k)===m.type)?(_=i(m,v.props),_.ref=go(w,m,v),_.return=w,_):(_=$l(v.type,v.key,v.props,null,w.mode,_),_.ref=go(w,m,v),_.return=w,_)}function c(w,m,v,_){return m===null||m.tag!==4||m.stateNode.containerInfo!==v.containerInfo||m.stateNode.implementation!==v.implementation?(m=Qu(v,w.mode,_),m.return=w,m):(m=i(m,v.children||[]),m.return=w,m)}function d(w,m,v,_,k){return m===null||m.tag!==7?(m=Ni(v,w.mode,_,k),m.return=w,m):(m=i(m,v),m.return=w,m)}function f(w,m,v){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Gu(""+m,w.mode,v),m.return=w,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Wa:return v=$l(m.type,m.key,m.props,null,w.mode,v),v.ref=go(w,null,m),v.return=w,v;case us:return m=Qu(m,w.mode,v),m.return=w,m;case Rn:var _=m._init;return f(w,_(m._payload),v)}if(Eo(m)||uo(m))return m=Ni(m,w.mode,v,null),m.return=w,m;tl(w,m)}return null}function h(w,m,v,_){var k=m!==null?m.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return k!==null?null:a(w,m,""+v,_);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Wa:return v.key===k?l(w,m,v,_):null;case us:return v.key===k?c(w,m,v,_):null;case Rn:return k=v._init,h(w,m,k(v._payload),_)}if(Eo(v)||uo(v))return k!==null?null:d(w,m,v,_,null);tl(w,v)}return null}function p(w,m,v,_,k){if(typeof _=="string"&&_!==""||typeof _=="number")return w=w.get(v)||null,a(m,w,""+_,k);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Wa:return w=w.get(_.key===null?v:_.key)||null,l(m,w,_,k);case us:return w=w.get(_.key===null?v:_.key)||null,c(m,w,_,k);case Rn:var E=_._init;return p(w,m,v,E(_._payload),k)}if(Eo(_)||uo(_))return w=w.get(v)||null,d(m,w,_,k,null);tl(m,_)}return null}function b(w,m,v,_){for(var k=null,E=null,j=m,T=m=0,L=null;j!==null&&T<v.length;T++){j.index>T?(L=j,j=null):L=j.sibling;var M=h(w,j,v[T],_);if(M===null){j===null&&(j=L);break}e&&j&&M.alternate===null&&t(w,j),m=s(M,m,T),E===null?k=M:E.sibling=M,E=M,j=L}if(T===v.length)return r(w,j),Te&&pi(w,T),k;if(j===null){for(;T<v.length;T++)j=f(w,v[T],_),j!==null&&(m=s(j,m,T),E===null?k=j:E.sibling=j,E=j);return Te&&pi(w,T),k}for(j=n(w,j);T<v.length;T++)L=p(j,w,T,v[T],_),L!==null&&(e&&L.alternate!==null&&j.delete(L.key===null?T:L.key),m=s(L,m,T),E===null?k=L:E.sibling=L,E=L);return e&&j.forEach(function(G){return t(w,G)}),Te&&pi(w,T),k}function g(w,m,v,_){var k=uo(v);if(typeof k!="function")throw Error(z(150));if(v=k.call(v),v==null)throw Error(z(151));for(var E=k=null,j=m,T=m=0,L=null,M=v.next();j!==null&&!M.done;T++,M=v.next()){j.index>T?(L=j,j=null):L=j.sibling;var G=h(w,j,M.value,_);if(G===null){j===null&&(j=L);break}e&&j&&G.alternate===null&&t(w,j),m=s(G,m,T),E===null?k=G:E.sibling=G,E=G,j=L}if(M.done)return r(w,j),Te&&pi(w,T),k;if(j===null){for(;!M.done;T++,M=v.next())M=f(w,M.value,_),M!==null&&(m=s(M,m,T),E===null?k=M:E.sibling=M,E=M);return Te&&pi(w,T),k}for(j=n(w,j);!M.done;T++,M=v.next())M=p(j,w,T,M.value,_),M!==null&&(e&&M.alternate!==null&&j.delete(M.key===null?T:M.key),m=s(M,m,T),E===null?k=M:E.sibling=M,E=M);return e&&j.forEach(function($){return t(w,$)}),Te&&pi(w,T),k}function x(w,m,v,_){if(typeof v=="object"&&v!==null&&v.type===ds&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Wa:e:{for(var k=v.key,E=m;E!==null;){if(E.key===k){if(k=v.type,k===ds){if(E.tag===7){r(w,E.sibling),m=i(E,v.props.children),m.return=w,w=m;break e}}else if(E.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Rn&&xm(k)===E.type){r(w,E.sibling),m=i(E,v.props),m.ref=go(w,E,v),m.return=w,w=m;break e}r(w,E);break}else t(w,E);E=E.sibling}v.type===ds?(m=Ni(v.props.children,w.mode,_,v.key),m.return=w,w=m):(_=$l(v.type,v.key,v.props,null,w.mode,_),_.ref=go(w,m,v),_.return=w,w=_)}return o(w);case us:e:{for(E=v.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){r(w,m.sibling),m=i(m,v.children||[]),m.return=w,w=m;break e}else{r(w,m);break}else t(w,m);m=m.sibling}m=Qu(v,w.mode,_),m.return=w,w=m}return o(w);case Rn:return E=v._init,x(w,m,E(v._payload),_)}if(Eo(v))return b(w,m,v,_);if(uo(v))return g(w,m,v,_);tl(w,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(r(w,m.sibling),m=i(m,v),m.return=w,w=m):(r(w,m),m=Gu(v,w.mode,_),m.return=w,w=m),o(w)):r(w,m)}return x}var Zs=o0(!0),a0=o0(!1),rc=si(null),nc=null,ws=null,_h=null;function kh(){_h=ws=nc=null}function Sh(e){var t=rc.current;je(rc),e._currentValue=t}function Yd(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Ns(e,t){nc=e,_h=ws=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Tt=!0),e.firstContext=null)}function Gt(e){var t=e._currentValue;if(_h!==e)if(e={context:e,memoizedValue:t,next:null},ws===null){if(nc===null)throw Error(z(308));ws=e,nc.dependencies={lanes:0,firstContext:e}}else ws=ws.next=e;return t}var wi=null;function Eh(e){wi===null?wi=[e]:wi.push(e)}function l0(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Eh(t)):(r.next=i.next,i.next=r),t.interleaved=r,hn(e,n)}function hn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var On=!1;function jh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function c0(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 un(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Gn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,he&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,hn(e,r)}return i=n.interleaved,i===null?(t.next=t,Eh(n)):(t.next=i.next,i.next=t),n.interleaved=t,hn(e,r)}function Nl(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,dh(e,r)}}function bm(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=o:s=s.next=o,r=r.next}while(r!==null);s===null?i=s=t:s=s.next=t}else i=s=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ic(e,t,r,n){var i=e.updateQueue;On=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?s=c:o.next=c,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(s!==null){var f=i.baseState;o=0,d=c=l=null,a=s;do{var h=a.lane,p=a.eventTime;if((n&h)===h){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,g=a;switch(h=t,p=r,g.tag){case 1:if(b=g.payload,typeof b=="function"){f=b.call(p,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(p,f,h):b,h==null)break e;f=Ie({},f,h);break e;case 2:On=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=p,l=f):d=d.next=p,o|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(d===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Oi|=o,e.lanes=o,e.memoizedState=f}}function _m(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(z(191,i));i.call(n)}}}var Ea={},Lr=si(Ea),na=si(Ea),ia=si(Ea);function xi(e){if(e===Ea)throw Error(z(174));return e}function Ch(e,t){switch(_e(ia,t),_e(na,e),_e(Lr,Ea),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ad(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ad(t,e)}je(Lr),_e(Lr,t)}function Ks(){je(Lr),je(na),je(ia)}function u0(e){xi(ia.current);var t=xi(Lr.current),r=Ad(t,e.type);t!==r&&(_e(na,e),_e(Lr,r))}function Th(e){na.current===e&&(je(Lr),je(na))}var Re=si(0);function sc(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.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 Bu=[];function Nh(){for(var e=0;e<Bu.length;e++)Bu[e]._workInProgressVersionPrimary=null;Bu.length=0}var Pl=yn.ReactCurrentDispatcher,Wu=yn.ReactCurrentBatchConfig,Ri=0,Oe=null,Ke=null,Ye=null,oc=!1,Io=!1,sa=0,Qk=0;function ot(){throw Error(z(321))}function Ph(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!yr(e[r],t[r]))return!1;return!0}function Ah(e,t,r,n,i,s){if(Ri=s,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Pl.current=e===null||e.memoizedState===null?eS:tS,e=r(n,i),Io){s=0;do{if(Io=!1,sa=0,25<=s)throw Error(z(301));s+=1,Ye=Ke=null,t.updateQueue=null,Pl.current=rS,e=r(n,i)}while(Io)}if(Pl.current=ac,t=Ke!==null&&Ke.next!==null,Ri=0,Ye=Ke=Oe=null,oc=!1,t)throw Error(z(300));return e}function Rh(){var e=sa!==0;return sa=0,e}function Tr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?Oe.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function Qt(){if(Ke===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var t=Ye===null?Oe.memoizedState:Ye.next;if(t!==null)Ye=t,Ke=e;else{if(e===null)throw Error(z(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},Ye===null?Oe.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function oa(e,t){return typeof t=="function"?t(e):t}function Hu(e){var t=Qt(),r=t.queue;if(r===null)throw Error(z(311));r.lastRenderedReducer=e;
vendor: 5,688 bytes, line 38
38var n=Ke,i=n.baseQueue,s=r.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}n.baseQueue=i=s,r.pending=null}if(i!==null){s=i.next,n=n.baseState;var a=o=null,l=null,c=s;do{var d=c.lane;if((Ri&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=f,o=n):l=l.next=f,Oe.lanes|=d,Oi|=d}c=c.next}while(c!==null&&c!==s);l===null?o=n:l.next=a,yr(n,t.memoizedState)||(Tt=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do s=i.lane,Oe.lanes|=s,Oi|=s,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Zu(e){var t=Qt(),r=t.queue;if(r===null)throw Error(z(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,s=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);yr(s,t.memoizedState)||(Tt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function d0(){}function f0(e,t){var r=Oe,n=Qt(),i=t(),s=!yr(n.memoizedState,i);if(s&&(n.memoizedState=i,Tt=!0),n=n.queue,Oh(m0.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||Ye!==null&&Ye.memoizedState.tag&1){if(r.flags|=2048,aa(9,p0.bind(null,r,n,i,t),void 0,null),Xe===null)throw Error(z(349));Ri&30||h0(r,t,i)}return i}function h0(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function p0(e,t,r,n){t.value=r,t.getSnapshot=n,g0(t)&&v0(e)}function m0(e,t,r){return r(function(){g0(t)&&v0(e)})}function g0(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!yr(e,r)}catch{return!0}}function v0(e){var t=hn(e,1);t!==null&&vr(t,e,1,-1)}function km(e){var t=Tr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:e},t.queue=e,e=e.dispatch=Xk.bind(null,Oe,e),[t.memoizedState,e]}function aa(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function y0(){return Qt().memoizedState}function Al(e,t,r,n){var i=Tr();Oe.flags|=e,i.memoizedState=aa(1|t,r,void 0,n===void 0?null:n)}function Lc(e,t,r,n){var i=Qt();n=n===void 0?null:n;var s=void 0;if(Ke!==null){var o=Ke.memoizedState;if(s=o.destroy,n!==null&&Ph(n,o.deps)){i.memoizedState=aa(t,r,s,n);return}}Oe.flags|=e,i.memoizedState=aa(1|t,r,s,n)}function Sm(e,t){return Al(8390656,8,e,t)}function Oh(e,t){return Lc(2048,8,e,t)}function w0(e,t){return Lc(4,2,e,t)}function x0(e,t){return Lc(4,4,e,t)}function b0(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 _0(e,t,r){return r=r!=null?r.concat([e]):null,Lc(4,4,b0.bind(null,t,e),r)}function Ih(){}function k0(e,t){var r=Qt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Ph(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function S0(e,t){var r=Qt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Ph(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function E0(e,t,r){return Ri&21?(yr(r,t)||(r=Py(),Oe.lanes|=r,Oi|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Tt=!0),e.memoizedState=r)}function Yk(e,t){var r=ve;ve=r!==0&&4>r?r:4,e(!0);var n=Wu.transition;Wu.transition={};try{e(!1),t()}finally{ve=r,Wu.transition=n}}function j0(){return Qt().memoizedState}function Jk(e,t,r){var n=Yn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},C0(e))T0(t,r);else if(r=l0(e,t,r,n),r!==null){var i=xt();vr(r,e,n,i),N0(r,t,n)}}function Xk(e,t,r){var n=Yn(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(C0(e))T0(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,r);if(i.hasEagerState=!0,i.eagerState=a,yr(a,o)){var l=t.interleaved;l===null?(i.next=i,Eh(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=l0(e,t,i,n),r!==null&&(i=xt(),vr(r,e,n,i),N0(r,t,n))}}function C0(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function T0(e,t){Io=oc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function N0(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,dh(e,r)}}var ac={readContext:Gt,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useInsertionEffect:ot,useLayoutEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useMutableSource:ot,useSyncExternalStore:ot,useId:ot,unstable_isNewReconciler:!1},eS={readContext:Gt,useCallback:function(e,t){return Tr().memoizedState=[e,t===void 0?null:t],e},useContext:Gt,useEffect:Sm,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Al(4194308,4,b0.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Al(4194308,4,e,t)},useInsertionEffect:function(e,t){return Al(4,2,e,t)},useMemo:function(e,t){var r=Tr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Tr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Jk.bind(null,Oe,e),[n.memoizedState,e]}
vendor: 5,922 bytes, lines 38-40
38,useRef:function(e){var t=Tr();return e={current:e},t.memoizedState=e},useState:km,useDebugValue:Ih,useDeferredValue:function(e){return Tr().memoizedState=e},useTransition:function(){var e=km(!1),t=e[0];return e=Yk.bind(null,e[1]),Tr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Oe,i=Tr();if(Te){if(r===void 0)throw Error(z(407));r=r()}else{if(r=t(),Xe===null)throw Error(z(349));Ri&30||h0(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,Sm(m0.bind(null,n,s,e),[e]),n.flags|=2048,aa(9,p0.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=Tr(),t=Xe.identifierPrefix;if(Te){var r=cn,n=ln;r=(n&~(1<<32-gr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=sa++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Qk++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},tS={readContext:Gt,useCallback:k0,useContext:Gt,useEffect:Oh,useImperativeHandle:_0,useInsertionEffect:w0,useLayoutEffect:x0,useMemo:S0,useReducer:Hu,useRef:y0,useState:function(){return Hu(oa)},useDebugValue:Ih,useDeferredValue:function(e){var t=Qt();return E0(t,Ke.memoizedState,e)},useTransition:function(){var e=Hu(oa)[0],t=Qt().memoizedState;return[e,t]},useMutableSource:d0,useSyncExternalStore:f0,useId:j0,unstable_isNewReconciler:!1},rS={readContext:Gt,useCallback:k0,useContext:Gt,useEffect:Oh,useImperativeHandle:_0,useInsertionEffect:w0,useLayoutEffect:x0,useMemo:S0,useReducer:Zu,useRef:y0,useState:function(){return Zu(oa)},useDebugValue:Ih,useDeferredValue:function(e){var t=Qt();return Ke===null?t.memoizedState=e:E0(t,Ke.memoizedState,e)},useTransition:function(){var e=Zu(oa)[0],t=Qt().memoizedState;return[e,t]},useMutableSource:d0,useSyncExternalStore:f0,useId:j0,unstable_isNewReconciler:!1};function sr(e,t){if(e&&e.defaultProps){t=Ie({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Jd(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Ie({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Mc={isMounted:function(e){return(e=e._reactInternals)?Ui(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=xt(),i=Yn(e),s=un(n,i);s.payload=t,r!=null&&(s.callback=r),t=Gn(e,s,i),t!==null&&(vr(t,e,i,n),Nl(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=xt(),i=Yn(e),s=un(n,i);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=Gn(e,s,i),t!==null&&(vr(t,e,i,n),Nl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=xt(),n=Yn(e),i=un(r,n);i.tag=2,t!=null&&(i.callback=t),t=Gn(e,i,n),t!==null&&(vr(t,e,n,r),Nl(t,e,n))}};function Em(e,t,r,n,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,o):t.prototype&&t.prototype.isPureReactComponent?!Xo(r,n)||!Xo(i,s):!0}function P0(e,t,r){var n=!1,i=ti,s=t.contextType;return typeof s=="object"&&s!==null?s=Gt(s):(i=Pt(t)?Pi:ut.current,n=t.contextTypes,s=(n=n!=null)?Ws(e,i):ti),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Mc,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function jm(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Mc.enqueueReplaceState(t,t.state,null)}function Xd(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},jh(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Gt(s):(s=Pt(t)?Pi:ut.current,i.context=Ws(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Jd(e,t,s,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Mc.enqueueReplaceState(i,i.state,null),ic(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function qs(e,t){try{var r="",n=t;do r+=P_(n),n=n.return;while(n);var i=r}catch(s){i=`
39Error generating stack: `+s.message+`
40`+s.stack}return{value:e,source:t,stack:i,digest:null}}function Ku(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function ef(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var nS=typeof WeakMap=="function"?WeakMap:Map;function A0(e,t,r){r=un(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){cc||(cc=!0,df=n),ef(e,t)},r}function R0(e,t,r){r=un(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){ef(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){ef(e,t),typeof n!="function"&&(Qn===null?Qn=new Set([this]):Qn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function Cm(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new nS;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=vS.bind(null,e,t,r),t.then(e,e))}function Tm(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 Nm(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=un(-1,1),t.tag=2,Gn(r,t,1))),r.lanes|=1),e)}var iS=yn.ReactCurrentOwner,Tt=!1;function pt(e,t,r,n){t.child=e===null?a0(t,null,r,n):Zs(t,e.child,r,n)}function Pm(e,t,r,n,i){r=r.render;var s=t.ref;
vendor: 4,932 bytes, line 40
40return Ns(t,i),n=Ah(e,t,r,n,s,i),r=Rh(),e!==null&&!Tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,pn(e,t,i)):(Te&&r&&wh(t),t.flags|=1,pt(e,t,n,i),t.child)}function Am(e,t,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!Vh(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,O0(e,t,s,n,i)):(e=$l(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(r=r.compare,r=r!==null?r:Xo,r(o,n)&&e.ref===t.ref)return pn(e,t,i)}return t.flags|=1,e=Jn(s,n),e.ref=t.ref,e.return=t,t.child=e}function O0(e,t,r,n,i){if(e!==null){var s=e.memoizedProps;if(Xo(s,n)&&e.ref===t.ref)if(Tt=!1,t.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(Tt=!0);else return t.lanes=e.lanes,pn(e,t,i)}return tf(e,t,r,n,i)}function I0(e,t,r){var n=t.pendingProps,i=n.children,s=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e(bs,Rt),Rt|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_e(bs,Rt),Rt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,_e(bs,Rt),Rt|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,_e(bs,Rt),Rt|=n;return pt(e,t,i,r),t.child}function $0(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function tf(e,t,r,n,i){var s=Pt(r)?Pi:ut.current;return s=Ws(t,s),Ns(t,i),r=Ah(e,t,r,n,s,i),n=Rh(),e!==null&&!Tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,pn(e,t,i)):(Te&&n&&wh(t),t.flags|=1,pt(e,t,r,i),t.child)}function Rm(e,t,r,n,i){if(Pt(r)){var s=!0;Xl(t)}else s=!1;if(Ns(t,i),t.stateNode===null)Rl(e,t),P0(t,r,n),Xd(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,c=r.contextType;typeof c=="object"&&c!==null?c=Gt(c):(c=Pt(r)?Pi:ut.current,c=Ws(t,c));var d=r.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||l!==c)&&jm(t,o,n,c),On=!1;var h=t.memoizedState;o.state=h,ic(t,n,o,i),l=t.memoizedState,a!==n||h!==l||Nt.current||On?(typeof d=="function"&&(Jd(t,r,d,n),l=t.memoizedState),(a=On||Em(t,r,a,n,h,l,c))?(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=n,t.memoizedState=l),o.props=n,o.state=l,o.context=c,n=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,c0(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:sr(t.type,a),o.props=c,f=t.pendingProps,h=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=Gt(l):(l=Pt(r)?Pi:ut.current,l=Ws(t,l));var p=r.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||h!==l)&&jm(t,o,n,l),On=!1,h=t.memoizedState,o.state=h,ic(t,n,o,i);var b=t.memoizedState;a!==f||h!==b||Nt.current||On?(typeof p=="function"&&(Jd(t,r,p,n),b=t.memoizedState),(c=On||Em(t,r,c,n,h,b,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,b,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,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=n,t.memoizedState=b),o.props=n,o.state=b,o.context=l,n=c):(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),n=!1)}return rf(e,t,r,n,s,i)}function rf(e,t,r,n,i,s){$0(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&vm(t,r,!1),pn(e,t,s);n=t.stateNode,iS.current=t;var a=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=Zs(t,e.child,null,s),t.child=Zs(t,null,a,s)):pt(e,t,a,s),t.memoizedState=n.state,i&&vm(t,r,!0),t.child}function D0(e){var t=e.stateNode;t.pendingContext?gm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&gm(e,t.context,!1),Ch(e,t.containerInfo)}
vendor: 6,682 bytes, line 40
40function Om(e,t,r,n,i){return Hs(),bh(i),t.flags|=256,pt(e,t,r,n),t.child}var nf={dehydrated:null,treeContext:null,retryLane:0};function sf(e){return{baseLanes:e,cachePool:null,transitions:null}}function z0(e,t,r){var n=t.pendingProps,i=Re.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),_e(Re,i&1),e===null)return Qd(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=n.children,e=n.fallback,s?(n=t.mode,s=t.child,o={mode:"hidden",children:o},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Vc(o,n,0,null),e=Ni(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=sf(r),t.memoizedState=nf,e):$h(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return sS(e,t,o,n,a,i,r);if(s){s=n.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Jn(i,l),n.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Jn(a,s):(s=Ni(s,o,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,n=s,s=t.child,o=e.child.memoizedState,o=o===null?sf(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~r,t.memoizedState=nf,n}return s=e.child,e=s.sibling,n=Jn(s,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function $h(e,t){return t=Vc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function rl(e,t,r,n){return n!==null&&bh(n),Zs(t,e.child,null,r),e=$h(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sS(e,t,r,n,i,s,o){if(r)return t.flags&256?(t.flags&=-257,n=Ku(Error(z(422))),rl(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,i=t.mode,n=Vc({mode:"visible",children:n.children},i,0,null),s=Ni(s,i,o,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&Zs(t,e.child,null,o),t.child.memoizedState=sf(o),t.memoizedState=nf,s);if(!(t.mode&1))return rl(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var a=n.dgst;return n=a,s=Error(z(419)),n=Ku(s,n,void 0),rl(e,t,o,n)}if(a=(o&e.childLanes)!==0,Tt||a){if(n=Xe,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,hn(e,i),vr(n,e,i,-1))}return Uh(),n=Ku(Error(z(421))),rl(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=yS.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,$t=qn(i.nextSibling),Dt=t,Te=!0,dr=null,e!==null&&(Wt[Ht++]=ln,Wt[Ht++]=cn,Wt[Ht++]=Ai,ln=e.id,cn=e.overflow,Ai=t),t=$h(t,n.children),t.flags|=4096,t)}function Im(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Yd(e.return,t,r)}function qu(e,t,r,n,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i)}function L0(e,t,r){var n=t.pendingProps,i=n.revealOrder,s=n.tail;if(pt(e,t,n.children,r),n=Re.current,n&2)n=n&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&&Im(e,r,t);else if(e.tag===19)Im(e,r,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}n&=1}if(_e(Re,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&sc(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),qu(t,!1,i,r,s);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&sc(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}qu(t,!0,r,null,s);break;case"together":qu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Rl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function pn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Oi|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(z(153));if(t.child!==null){for(e=t.child,r=Jn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Jn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function oS(e,t,r){switch(t.tag){case 3:D0(t),Hs();break;case 5:u0(t);break;case 1:Pt(t.type)&&Xl(t);break;case 4:Ch(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;_e(rc,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(_e(Re,Re.current&1),t.flags|=128,null):r&t.child.childLanes?z0(e,t,r):(_e(Re,Re.current&1),e=pn(e,t,r),e!==null?e.sibling:null);_e(Re,Re.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return L0(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_e(Re,Re.current),n)break;return null;case 22:case 23:return t.lanes=0,I0(e,t,r)}return pn(e,t,r)}var M0,of,F0,U0;M0=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};of=function(){};F0=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,xi(Lr.current);var s=null;switch(r){case"input":i=Cd(e,i),n=Cd(e,n),s=[];break;case"select":i=Ie({},i,{value:void 0}),n=Ie({},n,{value:void 0}),s=[];break;case"textarea":i=Pd(e,i),n=Pd(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Yl)}Rd(r,n);var o;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(o in a)a.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Zo.hasOwnProperty(c)?s||
vendor: 5,320 bytes, line 40
40(s=[]):(s=s||[]).push(c,null));for(c in n){var l=n[c];if(a=i!=null?i[c]:void 0,n.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(s||(s=[]),s.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Zo.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Ee("scroll",e),s||a===l||(s=[])):(s=s||[]).push(c,l))}r&&(s=s||[]).push("style",r);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};U0=function(e,t,r,n){r!==n&&(t.flags|=4)};function vo(e,t){if(!Te)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function at(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function aS(e,t,r){var n=t.pendingProps;switch(xh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(t),null;case 1:return Pt(t.type)&&Jl(),at(t),null;case 3:return n=t.stateNode,Ks(),je(Nt),je(ut),Nh(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(el(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,dr!==null&&(pf(dr),dr=null))),of(e,t),at(t),null;case 5:Th(t);var i=xi(ia.current);if(r=t.type,e!==null&&t.stateNode!=null)F0(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(z(166));return at(t),null}if(e=xi(Lr.current),el(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[Or]=t,n[ra]=s,e=(t.mode&1)!==0,r){case"dialog":Ee("cancel",n),Ee("close",n);break;case"iframe":case"object":case"embed":Ee("load",n);break;case"video":case"audio":for(i=0;i<Co.length;i++)Ee(Co[i],n);break;case"source":Ee("error",n);break;case"img":case"image":case"link":Ee("error",n),Ee("load",n);break;case"details":Ee("toggle",n);break;case"input":Bp(n,s),Ee("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},Ee("invalid",n);break;case"textarea":Hp(n,s),Ee("invalid",n)}Rd(r,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?n.textContent!==a&&(s.suppressHydrationWarning!==!0&&Xa(n.textContent,a,e),i=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Xa(n.textContent,a,e),i=["children",""+a]):Zo.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Ee("scroll",n)}switch(r){case"input":Ha(n),Wp(n,s,!0);break;case"textarea":Ha(n),Zp(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=Yl)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=my(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Or]=t,e[ra]=n,M0(e,t,!1,!1),t.stateNode=e;e:{switch(o=Od(r,n),r){case"dialog":Ee("cancel",e),Ee("close",e),i=n;break;case"iframe":case"object":case"embed":Ee("load",e),i=n;break;case"video":case"audio":for(i=0;i<Co.length;i++)Ee(Co[i],e);i=n;break;case"source":Ee("error",e),i=n;break;case"img":case"image":case"link":Ee("error",e),Ee("load",e),i=n;break;case"details":Ee("toggle",e),i=n;break;case"input":Bp(e,n),i=Cd(e,n),Ee("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Ie({},n,{value:void 0}),Ee("invalid",e);break;case"textarea":Hp(e,n),i=Pd(e,n),Ee("invalid",e);break;default:i=n}Rd(r,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?yy(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&gy(e,l)):s==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Ko(e,l):typeof l=="number"&&Ko(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Zo.hasOwnProperty(s)?l!=null&&s==="onScroll"&&Ee("scroll",e):l!=null&&sh(e,s,l,o))}switch(r){case"input":Ha(e),Wp(e,n,!1);break;case"textarea":Ha(e),Zp(e);break;case"option":n.value!=null&&e.setAttribute("value",""+ei(n.value));break;case"select":e.multiple=!!n.multiple,s=n.value,s!=null?Es(e,!!n.multiple,s,!1):n.defaultValue!=null&&Es(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Yl)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}
vendor: 5,270 bytes, line 40
40return at(t),null;case 6:if(e&&t.stateNode!=null)U0(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(z(166));if(r=xi(ia.current),xi(Lr.current),el(t)){if(n=t.stateNode,r=t.memoizedProps,n[Or]=t,(s=n.nodeValue!==r)&&(e=Dt,e!==null))switch(e.tag){case 3:Xa(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Xa(n.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Or]=t,t.stateNode=n}return at(t),null;case 13:if(je(Re),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Te&&$t!==null&&t.mode&1&&!(t.flags&128))s0(),Hs(),t.flags|=98560,s=!1;else if(s=el(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(z(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(z(317));s[Or]=t}else Hs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;at(t),s=!1}else dr!==null&&(pf(dr),dr=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Re.current&1?qe===0&&(qe=3):Uh())),t.updateQueue!==null&&(t.flags|=4),at(t),null);case 4:return Ks(),of(e,t),e===null&&ea(t.stateNode.containerInfo),at(t),null;case 10:return Sh(t.type._context),at(t),null;case 17:return Pt(t.type)&&Jl(),at(t),null;case 19:if(je(Re),s=t.memoizedState,s===null)return at(t),null;if(n=(t.flags&128)!==0,o=s.rendering,o===null)if(n)vo(s,!1);else{if(qe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=sc(e),o!==null){for(t.flags|=128,vo(s,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)s=r,e=n,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return _e(Re,Re.current&1|2),t.child}e=e.sibling}s.tail!==null&&Me()>Gs&&(t.flags|=128,n=!0,vo(s,!1),t.lanes=4194304)}else{if(!n)if(e=sc(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),vo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Te)return at(t),null}else 2*Me()-s.renderingStartTime>Gs&&r!==1073741824&&(t.flags|=128,n=!0,vo(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(r=s.last,r!==null?r.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Me(),t.sibling=null,r=Re.current,_e(Re,n?r&1|2:r&1),t):(at(t),null);case 22:case 23:return Fh(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Rt&1073741824&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function lS(e,t){switch(xh(t),t.tag){case 1:return Pt(t.type)&&Jl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ks(),je(Nt),je(ut),Nh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Th(t),null;case 13:if(je(Re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));Hs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return je(Re),null;case 4:return Ks(),null;case 10:return Sh(t.type._context),null;case 22:case 23:return Fh(),null;case 24:return null;default:return null}}var nl=!1,ct=!1,cS=typeof WeakSet=="function"?WeakSet:Set,q=null;function xs(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){ze(e,t,n)}else r.current=null}function af(e,t,r){try{r()}catch(n){ze(e,t,n)}}var $m=!1;function uS(e,t){if(Bd=ql,e=Zy(),yh(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var o=0,a=-1,l=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==r||i!==0&&f.nodeType!==3||(a=o+i),f!==s||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===r&&++c===i&&(a=o),h===s&&++d===n&&(l=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Wd={focusedElem:e,selectionRange:r},ql=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;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,x=b.memoizedState,w=t.stateNode,m=w.getSnapshotBeforeUpdate(t.elementType===t.type?g:sr(t.type,g),x);w.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;
vendor: 12,380 bytes, line 40
40case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(_){ze(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return b=$m,$m=!1,b}function $o(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&af(t,r,s)}i=i.next}while(i!==n)}}function Fc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function lf(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function V0(e){var t=e.alternate;t!==null&&(e.alternate=null,V0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Or],delete t[ra],delete t[Kd],delete t[Zk],delete t[Kk])),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 B0(e){return e.tag===5||e.tag===3||e.tag===4}function Dm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||B0(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 cf(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Yl));else if(n!==4&&(e=e.child,e!==null))for(cf(e,t,r),e=e.sibling;e!==null;)cf(e,t,r),e=e.sibling}function uf(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(uf(e,t,r),e=e.sibling;e!==null;)uf(e,t,r),e=e.sibling}var tt=null,cr=!1;function _n(e,t,r){for(r=r.child;r!==null;)W0(e,t,r),r=r.sibling}function W0(e,t,r){if(zr&&typeof zr.onCommitFiberUnmount=="function")try{zr.onCommitFiberUnmount(Rc,r)}catch{}switch(r.tag){case 5:ct||xs(r,t);case 6:var n=tt,i=cr;tt=null,_n(e,t,r),tt=n,cr=i,tt!==null&&(cr?(e=tt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):tt.removeChild(r.stateNode));break;case 18:tt!==null&&(cr?(e=tt,r=r.stateNode,e.nodeType===8?Uu(e.parentNode,r):e.nodeType===1&&Uu(e,r),Yo(e)):Uu(tt,r.stateNode));break;case 4:n=tt,i=cr,tt=r.stateNode.containerInfo,cr=!0,_n(e,t,r),tt=n,cr=i;break;case 0:case 11:case 14:case 15:if(!ct&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&af(r,t,o),i=i.next}while(i!==n)}_n(e,t,r);break;case 1:if(!ct&&(xs(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){ze(r,t,a)}_n(e,t,r);break;case 21:_n(e,t,r);break;case 22:r.mode&1?(ct=(n=ct)||r.memoizedState!==null,_n(e,t,r),ct=n):_n(e,t,r);break;default:_n(e,t,r)}}function zm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new cS),t.forEach(function(n){var i=wS.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function rr(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:tt=a.stateNode,cr=!1;break e;case 3:tt=a.stateNode.containerInfo,cr=!0;break e;case 4:tt=a.stateNode.containerInfo,cr=!0;break e}a=a.return}if(tt===null)throw Error(z(160));W0(s,o,i),tt=null,cr=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){ze(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)H0(t,e),t=t.sibling}function H0(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(rr(t,e),Cr(e),n&4){try{$o(3,e,e.return),Fc(3,e)}catch(g){ze(e,e.return,g)}try{$o(5,e,e.return)}catch(g){ze(e,e.return,g)}}break;case 1:rr(t,e),Cr(e),n&512&&r!==null&&xs(r,r.return);break;case 5:if(rr(t,e),Cr(e),n&512&&r!==null&&xs(r,r.return),e.flags&32){var i=e.stateNode;try{Ko(i,"")}catch(g){ze(e,e.return,g)}}if(n&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=r!==null?r.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&hy(i,s),Od(a,o);var c=Od(a,s);for(o=0;o<l.length;o+=2){var d=l[o],f=l[o+1];d==="style"?yy(i,f):d==="dangerouslySetInnerHTML"?gy(i,f):d==="children"?Ko(i,f):sh(i,d,f,c)}switch(a){case"input":Td(i,s);break;case"textarea":py(i,s);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var p=s.value;p!=null?Es(i,!!s.multiple,p,!1):h!==!!s.multiple&&(s.defaultValue!=null?Es(i,!!s.multiple,s.defaultValue,!0):Es(i,!!s.multiple,s.multiple?[]:"",!1))}i[ra]=s}catch(g){ze(e,e.return,g)}}break;case 6:if(rr(t,e),Cr(e),n&4){if(e.stateNode===null)throw Error(z(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(g){ze(e,e.return,g)}}break;case 3:if(rr(t,e),Cr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Yo(t.containerInfo)}catch(g){ze(e,e.return,g)}break;case 4:rr(t,e),Cr(e);break;case 13:rr(t,e),Cr(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Lh=Me())),n&4&&zm(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(ct=(c=ct)||d,rr(t,e),ct=c):rr(t,e),Cr(e),n&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(q=e,d=e.child;d!==null;){for(f=q=d;q!==null;){switch(h=q,p=h.child,h.tag){case 0:case 11:case 14:case 15:$o(4,h,h.return);break;case 1:xs(h,h.return);var b=h.stateNode;if(typeof b.componentWillUnmount=="function"){n=h,r=h.return;try{t=n,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(g){ze(n,r,g)}}break;case 5:xs(h,h.return);break;case 22:if(h.memoizedState!==null){Mm(f);continue}}p!==null?(p.return=h,q=p):Mm(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{i=f.stateNode,c?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=vy("display",o))}catch(g){ze(e,e.return,g)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(g){ze(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;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:rr(t,e),Cr(e),n&4&&zm(e);break;case 21:break;default:rr(t,e),Cr(e)}}function Cr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(B0(r)){var n=r;break e}r=r.return}throw Error(z(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Ko(i,""),n.flags&=-33);var s=Dm(e);uf(e,s,i);break;case 3:case 4:var o=n.stateNode.containerInfo,a=Dm(e);cf(e,a,o);break;default:throw Error(z(161))}}catch(l){ze(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dS(e,t,r){q=e,Z0(e)}function Z0(e,t,r){for(var n=(e.mode&1)!==0;q!==null;){var i=q,s=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||nl;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||ct;a=nl;var c=ct;if(nl=o,(ct=l)&&!c)for(q=i;q!==null;)o=q,l=o.child,o.tag===22&&o.memoizedState!==null?Fm(i):l!==null?(l.return=o,q=l):Fm(i);for(;s!==null;)q=s,Z0(s),s=s.sibling;q=i,nl=a,ct=c}Lm(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,q=s):Lm(e)}}function Lm(e){for(;q!==null;){var t=q;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ct||Fc(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!ct)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:sr(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&_m(t,s,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}_m(t,o,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Yo(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(z(163))}ct||t.flags&512&&lf(t)}catch(h){ze(t,t.return,h)}}if(t===e){q=null;break}if(r=t.sibling,r!==null){r.return=t.return,q=r;break}q=t.return}}function Mm(e){for(;q!==null;){var t=q;if(t===e){q=null;break}var r=t.sibling;if(r!==null){r.return=t.return,q=r;break}q=t.return}}function Fm(e){for(;q!==null;){var t=q;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Fc(4,t)}catch(l){ze(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){ze(t,i,l)}}var s=t.return;try{lf(t)}catch(l){ze(t,s,l)}break;case 5:var o=t.return;try{lf(t)}catch(l){ze(t,o,l)}}}catch(l){ze(t,t.return,l)}if(t===e){q=null;break}var a=t.sibling;if(a!==null){a.return=t.return,q=a;break}q=t.return}}var fS=Math.ceil,lc=yn.ReactCurrentDispatcher,Dh=yn.ReactCurrentOwner,Kt=yn.ReactCurrentBatchConfig,he=0,Xe=null,Ve=null,nt=0,Rt=0,bs=si(0),qe=0,la=null,Oi=0,Uc=0,zh=0,Do=null,jt=null,Lh=0,Gs=1/0,rn=null,cc=!1,df=null,Qn=null,il=!1,Bn=null,uc=0,zo=0,ff=null,Ol=-1,Il=0;function xt(){return he&6?Me():Ol!==-1?Ol:Ol=Me()}function Yn(e){return e.mode&1?he&2&&nt!==0?nt&-nt:Gk.transition!==null?(Il===0&&(Il=Py()),Il):(e=ve,e!==0||(e=window.event,e=e===void 0?16:zy(e.type)),e):1}function vr(e,t,r,n){if(50<zo)throw zo=0,ff=null,Error(z(185));_a(e,r,n),(!(he&2)||e!==Xe)&&(e===Xe&&(!(he&2)&&(Uc|=r),qe===4&&$n(e,nt)),At(e,n),r===1&&he===0&&!(t.mode&1)&&(Gs=Me()+500,zc&&oi()))}function At(e,t){var r=e.callbackNode;G_(e,t);var n=Kl(e,e===Xe?nt:0);if(n===0)r!==null&&Gp(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Gp(r),t===1)e.tag===0?qk(Um.bind(null,e)):r0(Um.bind(null,e)),Wk(function(){!(he&6)&&oi()}),r=null;else{switch(Ay(n)){case 1:r=uh;break;case 4:r=Ty;break;case 16:r=Zl;break;case 536870912:r=Ny;break;default:r=Zl}r=ew(r,K0.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function K0(e,t){if(Ol=-1,Il=0,he&6)throw Error(z(327));var r=e.callbackNode;if(Ps()&&e.callbackNode!==r)return null;var n=Kl(e,e===Xe?nt:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=dc(e,n);else{t=n;var i=he;he|=2;var s=G0();(Xe!==e||nt!==t)&&(rn=null,Gs=Me()+500,Ti(e,t));do try{mS();break}catch(a){q0(e,a)}while(!0);kh(),lc.current=s,he=i,Ve!==null?t=0:(Xe=null,nt=0,t=qe)}if(t!==0){if(t===2&&(i=Ld(e),i!==0&&(n=i,t=hf(e,i))),t===1)throw r=la,Ti(e,0),$n(e,n),At(e,Me()),r;if(t===6)$n(e,n);else{if(i=e.current.alternate,!(n&30)&&!hS(i)&&(t=dc(e,n),t===2&&(s=Ld(e),s!==0&&(n=s,t=hf(e,s))),t===1))throw r=la,Ti(e,0),$n(e,n),At(e,Me()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(z(345));case 2:mi(e,jt,rn);break;case 3:if($n(e,n),(n&130023424)===n&&(t=Lh+500-Me(),10<t)){if(Kl(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){xt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Zd(mi.bind(null,e,jt,rn),t);break}mi(e,jt,rn);break;case 4:if($n(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-gr(n);s=1<<o,o=t[o],o>i&&(i=o),n&=~s}if(n=i,n=Me()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*fS(n/1960))-n,10<n){e.timeoutHandle=Zd(mi.bind(null,e,jt,rn),n);break}mi(e,jt,rn);break;case 5:mi(e,jt,rn);break;default:throw Error(z(329))}}}return At(e,Me()),e.callbackNode===r?K0.bind(null,e):null}function hf(e,t){var r=Do;return e.current.memoizedState.isDehydrated&&(Ti(e,t).flags|=256),e=dc(e,t),e!==2&&(t=jt,jt=r,t!==null&&pf(t)),e}function pf(e){jt===null?jt=e:jt.push.apply(jt,e)}function hS(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],s=i.getSnapshot;i=i.value;
vendor: 1,610 bytes, line 40
40try{if(!yr(s(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 $n(e,t){for(t&=~zh,t&=~Uc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-gr(t),n=1<<r;e[r]=-1,t&=~n}}function Um(e){if(he&6)throw Error(z(327));Ps();var t=Kl(e,0);if(!(t&1))return At(e,Me()),null;var r=dc(e,t);if(e.tag!==0&&r===2){var n=Ld(e);n!==0&&(t=n,r=hf(e,n))}if(r===1)throw r=la,Ti(e,0),$n(e,t),At(e,Me()),r;if(r===6)throw Error(z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,mi(e,jt,rn),At(e,Me()),null}function Mh(e,t){var r=he;he|=1;try{return e(t)}finally{he=r,he===0&&(Gs=Me()+500,zc&&oi())}}function Ii(e){Bn!==null&&Bn.tag===0&&!(he&6)&&Ps();var t=he;he|=1;var r=Kt.transition,n=ve;try{if(Kt.transition=null,ve=1,e)return e()}finally{ve=n,Kt.transition=r,he=t,!(he&6)&&oi()}}function Fh(){Rt=bs.current,je(bs)}function Ti(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Bk(r)),Ve!==null)for(r=Ve.return;r!==null;){var n=r;switch(xh(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Jl();break;case 3:Ks(),je(Nt),je(ut),Nh();break;case 5:Th(n);break;case 4:Ks();break;case 13:je(Re);break;case 19:je(Re);break;case 10:Sh(n.type._context);break;case 22:case 23:Fh()}r=r.return}if(Xe=e,Ve=e=Jn(e.current,null),nt=Rt=t,qe=0,la=null,zh=Uc=Oi=0,jt=Do=null,wi!==null){for(t=0;t<wi.length;t++)if(r=wi[t],n=r.interleaved,n!==null){r.interleaved=null;
vendor: 9,629 bytes, line 40
40var i=n.next,s=r.pending;if(s!==null){var o=s.next;s.next=i,n.next=o}r.pending=n}wi=null}return e}function q0(e,t){do{var r=Ve;try{if(kh(),Pl.current=ac,oc){for(var n=Oe.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}oc=!1}if(Ri=0,Ye=Ke=Oe=null,Io=!1,sa=0,Dh.current=null,r===null||r.return===null){qe=1,la=t,Ve=null;break}e:{var s=e,o=r.return,a=r,l=t;if(t=nt,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=Tm(o);if(p!==null){p.flags&=-257,Nm(p,o,a,s,t),p.mode&1&&Cm(s,c,t),t=p,l=c;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)){Cm(s,c,t),Uh();break e}l=Error(z(426))}}else if(Te&&a.mode&1){var x=Tm(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Nm(x,o,a,s,t),bh(qs(l,a));break e}}s=l=qs(l,a),qe!==4&&(qe=2),Do===null?Do=[s]:Do.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var w=A0(s,l,t);bm(s,w);break e;case 1:a=l;var m=s.type,v=s.stateNode;if(!(s.flags&128)&&(typeof m.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Qn===null||!Qn.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t;var _=R0(s,a,t);bm(s,_);break e}}s=s.return}while(s!==null)}Y0(r)}catch(k){t=k,Ve===r&&r!==null&&(Ve=r=r.return);continue}break}while(!0)}function G0(){var e=lc.current;return lc.current=ac,e===null?ac:e}function Uh(){(qe===0||qe===3||qe===2)&&(qe=4),Xe===null||!(Oi&268435455)&&!(Uc&268435455)||$n(Xe,nt)}function dc(e,t){var r=he;he|=2;var n=G0();(Xe!==e||nt!==t)&&(rn=null,Ti(e,t));do try{pS();break}catch(i){q0(e,i)}while(!0);if(kh(),he=r,lc.current=n,Ve!==null)throw Error(z(261));return Xe=null,nt=0,qe}function pS(){for(;Ve!==null;)Q0(Ve)}function mS(){for(;Ve!==null&&!F_();)Q0(Ve)}function Q0(e){var t=X0(e.alternate,e,Rt);e.memoizedProps=e.pendingProps,t===null?Y0(e):Ve=t,Dh.current=null}function Y0(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=lS(r,t),r!==null){r.flags&=32767,Ve=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{qe=6,Ve=null;return}}else if(r=aS(r,t,Rt),r!==null){Ve=r;return}if(t=t.sibling,t!==null){Ve=t;return}Ve=t=e}while(t!==null);qe===0&&(qe=5)}function mi(e,t,r){var n=ve,i=Kt.transition;try{Kt.transition=null,ve=1,gS(e,t,r,n)}finally{Kt.transition=i,ve=n}return null}function gS(e,t,r,n){do Ps();while(Bn!==null);if(he&6)throw Error(z(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(z(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(Q_(e,s),e===Xe&&(Ve=Xe=null,nt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||il||(il=!0,ew(Zl,function(){return Ps(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=Kt.transition,Kt.transition=null;var o=ve;ve=1;var a=he;he|=4,Dh.current=null,uS(e,r),H0(r,e),Dk(Wd),ql=!!Bd,Wd=Bd=null,e.current=r,dS(r),U_(),he=a,ve=o,Kt.transition=s}else e.current=r;if(il&&(il=!1,Bn=e,uc=i),s=e.pendingLanes,s===0&&(Qn=null),W_(r.stateNode),At(e,Me()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(cc)throw cc=!1,e=df,df=null,e;return uc&1&&e.tag!==0&&Ps(),s=e.pendingLanes,s&1?e===ff?zo++:(zo=0,ff=e):zo=0,oi(),null}function Ps(){if(Bn!==null){var e=Ay(uc),t=Kt.transition,r=ve;try{if(Kt.transition=null,ve=16>e?16:e,Bn===null)var n=!1;else{if(e=Bn,Bn=null,uc=0,he&6)throw Error(z(331));var i=he;for(he|=4,q=e.current;q!==null;){var s=q,o=s.child;if(q.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(q=c;q!==null;){var d=q;switch(d.tag){case 0:case 11:case 15:$o(8,d,s)}var f=d.child;if(f!==null)f.return=d,q=f;else for(;q!==null;){d=q;var h=d.sibling,p=d.return;if(V0(d),d===c){q=null;break}if(h!==null){h.return=p,q=h;break}q=p}}}var b=s.alternate;if(b!==null){var g=b.child;if(g!==null){b.child=null;do{var x=g.sibling;g.sibling=null,g=x}while(g!==null)}}q=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,q=o;else e:for(;q!==null;){if(s=q,s.flags&2048)switch(s.tag){case 0:case 11:case 15:$o(9,s,s.return)}var w=s.sibling;if(w!==null){w.return=s.return,q=w;break e}q=s.return}}var m=e.current;for(q=m;q!==null;){o=q;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,q=v;else e:for(o=m;q!==null;){if(a=q,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Fc(9,a)}}catch(k){ze(a,a.return,k)}if(a===o){q=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,q=_;break e}q=a.return}}if(he=i,oi(),zr&&typeof zr.onPostCommitFiberRoot=="function")try{zr.onPostCommitFiberRoot(Rc,e)}catch{}n=!0}return n}finally{ve=r,Kt.transition=t}}return!1}function Vm(e,t,r){t=qs(r,t),t=A0(e,t,1),e=Gn(e,t,1),t=xt(),e!==null&&(_a(e,1,t),At(e,t))}function ze(e,t,r){if(e.tag===3)Vm(e,e,r);else for(;t!==null;){if(t.tag===3){Vm(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Qn===null||!Qn.has(n))){e=qs(r,e),e=R0(t,e,1),t=Gn(t,e,1),e=xt(),t!==null&&(_a(t,1,e),At(t,e));break}}t=t.return}}function vS(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=xt(),e.pingedLanes|=e.suspendedLanes&r,Xe===e&&(nt&r)===r&&(qe===4||qe===3&&(nt&130023424)===nt&&500>Me()-Lh?Ti(e,0):zh|=r),At(e,t)}function J0(e,t){t===0&&(e.mode&1?(t=qa,qa<<=1,!(qa&130023424)&&(qa=4194304)):t=1);var r=xt();e=hn(e,t),e!==null&&(_a(e,t,r),At(e,r))}function yS(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),J0(e,r)}function wS(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(z(314))}n!==null&&n.delete(t),J0(e,r)}var X0;X0=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Nt.current)Tt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Tt=!1,oS(e,t,r);Tt=!!(e.flags&131072)}else Tt=!1,Te&&t.flags&1048576&&n0(t,tc,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Rl(e,t),e=t.pendingProps;var i=Ws(t,ut.current);Ns(t,r),i=Ah(null,t,n,e,i,r);var s=Rh();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pt(n)?(s=!0,Xl(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,jh(t),i.updater=Mc,t.stateNode=i,i._reactInternals=t,Xd(t,n,e,r),t=rf(null,t,n,!0,s,r)):(t.tag=0,Te&&s&&wh(t),pt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Rl(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=bS(n),e=sr(n,e),i){case 0:t=tf(null,t,n,e,r);break e;case 1:t=Rm(null,t,n,e,r);break e;case 11:t=Pm(null,t,n,e,r);break e;case 14:t=Am(null,t,n,sr(n.type,e),r);break e}throw Error(z(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:sr(n,i),tf(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:sr(n,i),Rm(e,t,n,i,r);case 3:e:{if(D0(t),e===null)throw Error(z(387));n=t.pendingProps,s=t.memoizedState,i=s.element,c0(e,t),ic(t,n,null,r);var o=t.memoizedState;if(n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=qs(Error(z(423)),t),t=Om(e,t,n,r,i);break e}else if(n!==i){i=qs(Error(z(424)),t),t=Om(e,t,n,r,i);break e}else for($t=qn(t.stateNode.containerInfo.firstChild),Dt=t,Te=!0,dr=null,r=a0(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Hs(),n===i){t=pn(e,t,r);break e}pt(e,t,n,r)}t=t.child}return t;case 5:return u0(t),e===null&&Qd(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Hd(n,i)?o=null:s!==null&&Hd(n,s)&&(t.flags|=32),$0(e,t),pt(e,t,o,r),t.child;case 6:return e===null&&Qd(t),null;case 13:return z0(e,t,r);case 4:return Ch(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Zs(t,null,n,r):pt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:sr(n,i),Pm(e,t,n,i,r);case 7:return pt(e,t,t.pendingProps,r),t.child;case 8:return pt(e,t,t.pendingProps.children,r),t.child;case 12:return pt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,_e(rc,n._currentValue),n._currentValue=o,s!==null)if(yr(s.value,o)){if(s.children===i.children&&!Nt.current){t=pn(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(s.tag===1){l=un(-1,r&-r),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),Yd(s.return,r,t),a.lanes|=r;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(z(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),Yd(o,r,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}pt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Ns(t,r),i=Gt(i),n=n(i),t.flags|=1,pt(e,t,n,r),t.child;case 14:return n=t.type,i=sr(n,t.pendingProps),i=sr(n.type,i),Am(e,t,n,i,r);case 15:return O0(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:sr
vendor: 6,145 bytes, line 40
40(n,i),Rl(e,t),t.tag=1,Pt(n)?(e=!0,Xl(t)):e=!1,Ns(t,r),P0(t,n,i),Xd(t,n,i,r),rf(null,t,n,!0,e,r);case 19:return L0(e,t,r);case 22:return I0(e,t,r)}throw Error(z(156,t.tag))};function ew(e,t){return Cy(e,t)}function xS(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zt(e,t,r,n){return new xS(e,t,r,n)}function Vh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bS(e){if(typeof e=="function")return Vh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ah)return 11;if(e===lh)return 14}return 2}function Jn(e,t){var r=e.alternate;return r===null?(r=Zt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function $l(e,t,r,n,i,s){var o=2;if(n=e,typeof e=="function")Vh(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ds:return Ni(r.children,i,s,t);case oh:o=8,i|=8;break;case kd:return e=Zt(12,r,t,i|2),e.elementType=kd,e.lanes=s,e;case Sd:return e=Zt(13,r,t,i),e.elementType=Sd,e.lanes=s,e;case Ed:return e=Zt(19,r,t,i),e.elementType=Ed,e.lanes=s,e;case uy:return Vc(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ly:o=10;break e;case cy:o=9;break e;case ah:o=11;break e;case lh:o=14;break e;case Rn:o=16,n=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=Zt(o,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function Ni(e,t,r,n){return e=Zt(7,e,n,t),e.lanes=r,e}function Vc(e,t,r,n){return e=Zt(22,e,n,t),e.elementType=uy,e.lanes=r,e.stateNode={isHidden:!1},e}function Gu(e,t,r){return e=Zt(6,e,null,t),e.lanes=r,e}function Qu(e,t,r){return t=Zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _S(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Pu(0),this.expirationTimes=Pu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pu(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Bh(e,t,r,n,i,s,o,a,l){return e=new _S(e,t,r,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Zt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},jh(s),e}function kS(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:us,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function tw(e){if(!e)return ti;e=e._reactInternals;e:{if(Ui(e)!==e||e.tag!==1)throw Error(z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Pt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(z(171))}if(e.tag===1){var r=e.type;if(Pt(r))return t0(e,r,t)}return t}function rw(e,t,r,n,i,s,o,a,l){return e=Bh(r,n,!0,e,i,s,o,a,l),e.context=tw(null),r=e.current,n=xt(),i=Yn(r),s=un(n,i),s.callback=t??null,Gn(r,s,i),e.current.lanes=i,_a(e,i,n),At(e,n),e}function Bc(e,t,r,n){var i=t.current,s=xt(),o=Yn(i);return r=tw(r),t.context===null?t.context=r:t.pendingContext=r,t=un(s,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Gn(i,t,o),e!==null&&(vr(e,i,o,s),Nl(e,i,o)),o}function fc(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 Bm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Wh(e,t){Bm(e,t),(e=e.alternate)&&Bm(e,t)}function SS(){return null}var nw=typeof reportError=="function"?reportError:function(e){console.error(e)};function Hh(e){this._internalRoot=e}Wc.prototype.render=Hh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(z(409));Bc(e,t,null,null)};Wc.prototype.unmount=Hh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ii(function(){Bc(null,e,null,null)}),t[fn]=null}};function Wc(e){this._internalRoot=e}Wc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Iy();e={blockedOn:null,target:e,priority:t};for(var r=0;r<In.length&&t!==0&&t<In[r].priority;r++);In.splice(r,0,e),r===0&&Dy(e)}};function Zh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Hc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Wm(){}function ES(e,t,r,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var c=fc(o);s.call(c)}}var o=rw(t,n,e,0,null,!1,!1,"",Wm);return e._reactRootContainer=o,e[fn]=o.current,ea(e.nodeType===8?e.parentNode:e),Ii(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var a=n;n=function(){var c=fc(l);a.call(c)}}var l=Bh(e,0,!1,null,null,!1,!1,"",Wm);return e._reactRootContainer=l,e[fn]=l.current,ea(e.nodeType===8?e.parentNode:e),Ii(function(){Bc(t,l,r,n)}),l}function Zc(e,t,r,n,i){var s=r._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=fc(o);a.call(l)}}Bc(t,o,e,i)}else o=ES(r,t,e,i,n);return fc(o)}Ry=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=jo(t.pendingLanes);
vendor: 4,598 bytes, line 40
40r!==0&&(dh(t,r|1),At(t,Me()),!(he&6)&&(Gs=Me()+500,oi()))}break;case 13:Ii(function(){var n=hn(e,1);if(n!==null){var i=xt();vr(n,e,1,i)}}),Wh(e,1)}};fh=function(e){if(e.tag===13){var t=hn(e,134217728);if(t!==null){var r=xt();vr(t,e,134217728,r)}Wh(e,134217728)}};Oy=function(e){if(e.tag===13){var t=Yn(e),r=hn(e,t);if(r!==null){var n=xt();vr(r,e,t,n)}Wh(e,t)}};Iy=function(){return ve};$y=function(e,t){var r=ve;try{return ve=e,t()}finally{ve=r}};$d=function(e,t,r){switch(t){case"input":if(Td(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Dc(n);if(!i)throw Error(z(90));fy(n),Td(n,i)}}}break;case"textarea":py(e,r);break;case"select":t=r.value,t!=null&&Es(e,!!r.multiple,t,!1)}};by=Mh;_y=Ii;var jS={usingClientEntryPoint:!1,Events:[Sa,ms,Dc,wy,xy,Mh]},yo={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},CS={bundleType:yo.bundleType,version:yo.version,rendererPackageName:yo.rendererPackageName,rendererConfig:yo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:yn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ey(e),e===null?null:e.stateNode},findFiberByHostInstance:yo.findFiberByHostInstance||SS,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 sl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sl.isDisabled&&sl.supportsFiber)try{Rc=sl.inject(CS),zr=sl}catch{}}Mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jS;Mt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Zh(t))throw Error(z(200));return kS(e,t,null,r)};Mt.createRoot=function(e,t){if(!Zh(e))throw Error(z(299));var r=!1,n="",i=nw;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Bh(e,1,!1,null,null,r,!1,n,i),e[fn]=t.current,ea(e.nodeType===8?e.parentNode:e),new Hh(t)};Mt.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(z(188)):(e=Object.keys(e).join(","),Error(z(268,e)));return e=Ey(t),e=e===null?null:e.stateNode,e};Mt.flushSync=function(e){return Ii(e)};Mt.hydrate=function(e,t,r){if(!Hc(t))throw Error(z(200));return Zc(null,e,t,!0,r)};Mt.hydrateRoot=function(e,t,r){if(!Zh(e))throw Error(z(405));var n=r!=null&&r.hydratedSources||null,i=!1,s="",o=nw;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=rw(t,null,e,1,r??null,i,!1,s,o),e[fn]=t.current,ea(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Wc(t)};Mt.render=function(e,t,r){if(!Hc(t))throw Error(z(200));return Zc(null,e,t,!1,r)};Mt.unmountComponentAtNode=function(e){if(!Hc(e))throw Error(z(40));return e._reactRootContainer?(Ii(function(){Zc(null,null,e,!1,function(){e._reactRootContainer=null,e[fn]=null})}),!0):!1};Mt.unstable_batchedUpdates=Mh;Mt.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Hc(r))throw Error(z(200));if(e==null||e._reactInternals===void 0)throw Error(z(38));return Zc(e,t,r,!1,n)};Mt.version="18.3.1-next-f1338f8080-20240426";function iw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iw)}catch(e){console.error(e)}}iw(),iy.exports=Mt;var ja=iy.exports;const sw=Zv(ja);var ow,Hm=ja;ow=Hm.createRoot,Hm.hydrateRoot;const TS=1,NS=1e6;let Yu=0;function PS(){return Yu=(Yu+1)%Number.MAX_SAFE_INTEGER,Yu.toString()}const Ju=new Map,Zm=e=>{if(Ju.has(e))return;const t=setTimeout(()=>{Ju.delete(e),Lo({type:"REMOVE_TOAST",toastId:e})},NS);Ju.set(e,t)},AS=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,TS)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;
vendor: 13,981 bytes, line 40
40return r?Zm(r):e.toasts.forEach(n=>{Zm(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},Dl=[];let zl={toasts:[]};function Lo(e){zl=AS(zl,e),Dl.forEach(t=>{t(zl)})}function RS({...e}){const t=PS(),r=i=>Lo({type:"UPDATE_TOAST",toast:{...i,id:t}}),n=()=>Lo({type:"DISMISS_TOAST",toastId:t});return Lo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||n()}}}),{id:t,dismiss:n,update:r}}function Kc(){const[e,t]=y.useState(zl);return y.useEffect(()=>(Dl.push(t),()=>{const r=Dl.indexOf(t);r>-1&&Dl.splice(r,1)}),[e]),{...e,toast:RS,dismiss:r=>Lo({type:"DISMISS_TOAST",toastId:r})}}function fe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Km(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function aw(...e){return t=>{let r=!1;const n=e.map(i=>{const s=Km(i,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let i=0;i<n.length;i++){const s=n[i];typeof s=="function"?s():Km(e[i],null)}}}}function dt(...e){return y.useCallback(aw(...e),e)}function OS(e,t){const r=y.createContext(t),n=s=>{const{children:o,...a}=s,l=y.useMemo(()=>a,Object.values(a));return u.jsx(r.Provider,{value:l,children:o})};n.displayName=e+"Provider";function i(s){const o=y.useContext(r);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[n,i]}function Vi(e,t=[]){let r=[];function n(s,o){const a=y.createContext(o),l=r.length;r=[...r,o];const c=f=>{var w;const{scope:h,children:p,...b}=f,g=((w=h==null?void 0:h[e])==null?void 0:w[l])||a,x=y.useMemo(()=>b,Object.values(b));return u.jsx(g.Provider,{value:x,children:p})};c.displayName=s+"Provider";function d(f,h){var g;const p=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,b=y.useContext(p);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[c,d]}const i=()=>{const s=r.map(o=>y.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[n,IS(i,...t)]}function IS(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=n.reduce((a,{useScope:l,scopeName:c})=>{const f=l(s)[`__scope${c}`];return{...a,...f}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function ca(e){const t=$S(e),r=y.forwardRef((n,i)=>{const{children:s,...o}=n,a=y.Children.toArray(s),l=a.find(zS);if(l){const c=l.props.children,d=a.map(f=>f===l?y.Children.count(c)>1?y.Children.only(null):y.isValidElement(c)?c.props.children:null:f);return u.jsx(t,{...o,ref:i,children:y.isValidElement(c)?y.cloneElement(c,void 0,d):null})}return u.jsx(t,{...o,ref:i,children:s})});return r.displayName=`${e}.Slot`,r}var lw=ca("Slot");function $S(e){const t=y.forwardRef((r,n)=>{const{children:i,...s}=r;if(y.isValidElement(i)){const o=MS(i),a=LS(s,i.props);return i.type!==y.Fragment&&(a.ref=n?aw(n,o):o),y.cloneElement(i,a)}return y.Children.count(i)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cw=Symbol("radix.slottable");function DS(e){const t=({children:r})=>u.jsx(u.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=cw,t}function zS(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cw}function LS(e,t){const r={...t};for(const n in t){const i=e[n],s=t[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...a)=>{const l=s(...a);return i(...a),l}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}function MS(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function uw(e){const t=e+"CollectionProvider",[r,n]=Vi(t),[i,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=g=>{const{scope:x,children:w}=g,m=A.useRef(null),v=A.useRef(new Map).current;return u.jsx(i,{scope:x,itemMap:v,collectionRef:m,children:w})};o.displayName=t;const a=e+"CollectionSlot",l=ca(a),c=A.forwardRef((g,x)=>{const{scope:w,children:m}=g,v=s(a,w),_=dt(x,v.collectionRef);return u.jsx(l,{ref:_,children:m})});c.displayName=a;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=ca(d),p=A.forwardRef((g,x)=>{const{scope:w,children:m,...v}=g,_=A.useRef(null),k=dt(x,_),E=s(d,w);return A.useEffect(()=>(E.itemMap.set(_,{ref:_,...v}),()=>void E.itemMap.delete(_))),u.jsx(h,{[f]:"",ref:k,children:m})});p.displayName=d;function b(g){const x=s(e+"CollectionConsumer",g);return A.useCallback(()=>{const m=x.collectionRef.current;if(!m)return[];const v=Array.from(m.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((E,j)=>v.indexOf(E.ref.current)-v.indexOf(j.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:c,ItemSlot:p},b,n]}var FS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xe=FS.reduce((e,t)=>{const r=ca(`Primitive.${t}`),n=y.forwardRef((i,s)=>{const{asChild:o,...a}=i,l=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...a,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function dw(e,t){e&&ja.flushSync(()=>e.dispatchEvent(t))}function wr(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function US(e,t=globalThis==null?void 0:globalThis.document){const r=wr(e);y.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var VS="DismissableLayer",mf="dismissableLayer.update",BS="dismissableLayer.pointerDownOutside",WS="dismissableLayer.focusOutside",qm,fw=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qc=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...l}=e,c=y.useContext(fw),[d,f]=y.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=y.useState({}),b=dt(t,j=>f(j)),g=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(x),m=d?g.indexOf(d):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,_=m>=w,k=ZS(j=>{const T=j.target,L=[...c.branches].some(M=>M.contains(T));!_||L||(i==null||i(j),o==null||o(j),j.defaultPrevented||a==null||a())},h),E=KS(j=>{const T=j.target;[...c.branches].some(M=>M.contains(T))||(s==null||s(j),o==null||o(j),j.defaultPrevented||a==null||a())},h);return US(j=>{m===c.layers.size-1&&(n==null||n(j),!j.defaultPrevented&&a&&(j.preventDefault(),a()))},h),y.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(qm=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Gm(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=qm)}},[d,h,r,c]),y.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Gm())},[d,c]),y.useEffect(()=>{const j=()=>p({});return document.addEventListener(mf,j),()=>document.removeEventListener(mf,j)},[]),u.jsx(xe.div,{...l,ref:b,style:{pointerEvents:v?_?"auto":"none":void 0,...e.style},onFocusCapture:fe(e.onFocusCapture,E.onFocusCapture),onBlurCapture:fe(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:fe(e.onPointerDownCapture,k.onPointerDownCapture)})});qc.displayName=VS;var HS="DismissableLayerBranch",hw=y.forwardRef((e,t)=>{const r=y.useContext(fw),n=y.useRef(null),i=dt(t,n);return y.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),u.jsx(xe.div,{...e,ref:i})});hw.displayName=HS;function ZS(e,t=globalThis==null?void 0:globalThis.document){const r=wr(e),n=y.useRef(!1),i=y.useRef(()=>{});return y.useEffect(()=>{const s=a=>{if(a.target&&!n.current){let l=function(){pw(BS,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function KS(e,t=globalThis==null?void 0:globalThis.document){const r=wr(e),n=y.useRef(!1);return y.useEffect(()=>{const i=s=>{s.target&&!n.current&&pw(WS,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Gm(){const e=new CustomEvent(mf);document.dispatchEvent(e)}function pw(e,t,r,{discrete:n}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?dw(i,s):i.dispatchEvent(s)}var qS=qc,GS=hw,mn=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},QS="Portal",Kh=y.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[i,s]=y.useState(!1);mn(()=>s(!0),[]);const o=r||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?sw.createPortal(u.jsx(xe.div,{...n,ref:t}),o):null});Kh.displayName=QS;function YS(e,t){return y.useReducer((r,n)=>t[r][n]??r,e)}var Bi=e=>{const{present:t,children:r}=e,n=JS(t),i=typeof r=="function"?r({present:n.isPresent}):y.Children.only(r),s=dt(n.ref,XS(i));return typeof r=="function"||n.isPresent?y.cloneElement(i,{ref:s}):null};Bi.displayName="Presence";function JS(e){const[t,r]=y.useState(),n=y.useRef(null),i=y.useRef(e),s=y.useRef("none"),o=e?"mounted":"unmounted",[a,l]=YS(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const c=ol(n.current);s.current=a==="mounted"?c:"none"},[a]),mn(()=>{const c=n.current,d=i.current;if(d!==e){const h=s.current,p=ol(c);e?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&h!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),mn(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,f=p=>{const g=ol(n.current).includes(p.animationName);if(p.target===t&&g&&(l("ANIMATION_END"),!i.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},h=p=>{p.target===t&&(s.current=ol(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function ol(e){return(e==null?void 0:e.animationName)||"none"}function XS(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var eE=rh[" useInsertionEffect ".trim().toString()]||mn;function Gc({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,s,o]=tE({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:i;{const d=y.useRef(e!==void 0);y.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${n} 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.`),d.current=a},[a,n])}const c=y.useCallback(d=>{var f;if(a){const h=rE(d)?d(e):d;h!==e&&((f=o.current)==null||f.call(o,h))}else s(d)},[a,e,s,o]);return[l,c]}function tE({defaultProp:e,onChange:t}){const[r,n]=y.useState(e),i=y.useRef(r),s=y.useRef(t);return eE(()=>{s.current=t},[t]),y.useEffect(()=>{var o;i.current!==r&&((o=s.current)==null||o.call(s,r),i.current=r)},[r,i]),[r,n,s]}function rE(e){return typeof e=="function"}var nE=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"}),iE="VisuallyHidden",Qc=y.forwardRef((e,t)=>u.jsx(xe.span,{...e,ref:t,style:{...nE,...e.style}}));Qc.displayName=iE;var sE=Qc,qh="ToastProvider",[Gh,oE,aE]=uw("Toast"),[mw,cz]=Vi("Toast",[aE]),[lE,Yc]=mw(qh),gw=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:o}=e,[a,l]=y.useState(null),[c,d]=y.useState(0),f=y.useRef(!1),h=y.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${qh}\`. Expected non-empty \`string\`.`),u.jsx(Gh.Provider,{scope:t,children:u.jsx(lE,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:s,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:y.useCallback(()=>d(p=>p+1),[]),onToastRemove:y.useCallback(()=>d(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:o})})};gw.displayName=qh;var vw="ToastViewport",cE=["F8"],gf="toast.viewportPause",vf="toast.viewportResume",yw=y.forwardRef((e,t)=>
40{const{__scopeToast:r,hotkey:n=cE,label:i="Notifications ({hotkey})",...s}=e,o=Yc(vw,r),a=oE(r),l=y.useRef(null),c=y.useRef(null),d=y.useRef(null),f=y.useRef(null),h=dt(t,f,o.onViewportChange),p=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=o.toastCount>0;y.useEffect(()=>{const x=w=>{var v;n.length!==0&&n.every(_=>w[_]||w.code===_)&&((v=f.current)==null||v.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[n]),y.useEffect(()=>{const x=l.current,w=f.current;if(b&&x&&w){const m=()=>{if(!o.isClosePausedRef.current){const E=new CustomEvent(gf);w.dispatchEvent(E),o.isClosePausedRef.current=!0}},v=()=>{if(o.isClosePausedRef.current){const E=new CustomEvent(vf);w.dispatchEvent(E),o.isClosePausedRef.current=!1}},_=E=>{!x.contains(E.relatedTarget)&&v()},k=()=>{x.contains(document.activeElement)||v()};return x.addEventListener("focusin",m),x.addEventListener("focusout",_),x.addEventListener("pointermove",m),x.addEventListener("pointerleave",k),window.addEventListener("blur",m),window.addEventListener("focus",v),()=>{x.removeEventListener("focusin",m),x.removeEventListener("focusout",_),x.removeEventListener("pointermove",m),x.removeEventListener("pointerleave",k),window.removeEventListener("blur",m),window.removeEventListener("focus",v)}}},[b,o.isClosePausedRef]);const g=y.useCallback(({tabbingDirection:x})=>{const m=a().map(v=>{const _=v.ref.current,k=[_,..._E(_)];return x==="forwards"?k:k.reverse()});return(x==="forwards"?m.reverse():m).flat()},[a]);return y.useEffect(()=>{const x=f.current;if(x){const w=m=>{var k,E,j;const v=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!v){const T=document.activeElement,L=m.shiftKey;if(m.target===x&&L){(k=c.current)==null||k.focus();return}const $=g({tabbingDirection:L?"backwards":"forwards"}),H=$.findIndex(D=>D===T);Xu($.slice(H+1))?m.preventDefault():L?(E=c.current)==null||E.focus():(j=d.current)==null||j.focus()}};return x.addEventListener("keydown",w),()=>x.removeEventListener("keydown",w)}},[a,g]),u.jsxs(GS,{ref:l,role:"region","aria-label":i.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&u.jsx(yf,{ref:c,onFocusFromOutsideViewport:()=>{const x=g({tabbingDirection:"forwards"});Xu(x)}}),u.jsx(Gh.Slot,{scope:r,children:u.jsx(xe.ol,{tabIndex:-1,...s,ref:h})}),b&&u.jsx(yf,{ref:d,onFocusFromOutsideViewport:()=>{const x=g({tabbingDirection:"backwards"});Xu(x)}})]})});yw.displayName=vw;var ww="ToastFocusProxy",yf=y.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...i}=e,s=Yc(ww,r);return u.jsx(Qc,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{var c;const a=o.relatedTarget;!((c=s.viewport)!=null&&c.contains(a))&&n()}})});yf.displayName=ww;var Ca="Toast",uE="toast.swipeStart",dE="toast.swipeMove",fE="toast.swipeCancel",hE="toast.swipeEnd",xw=y.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:i,onOpenChange:s,...o}=e,[a,l]=Gc({prop:n,defaultProp:i??!0,onChange:s,caller:Ca});return u.jsx(Bi,{present:r||a,children:u.jsx(gE,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:wr(e.onPause),onResume:wr(e.onResume),onSwipeStart:fe(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:fe(e.onSwipeMove,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:fe(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:fe(e.onSwipeEnd,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});xw.displayName=Ca;var[pE,mE]=mw(Ca,{onClose(){}}),gE=y.forwardRef((e,t)=>
40{const{__scopeToast:r,type:n="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:p,...b}=e,g=Yc(Ca,r),[x,w]=y.useState(null),m=dt(t,D=>w(D)),v=y.useRef(null),_=y.useRef(null),k=i||g.duration,E=y.useRef(0),j=y.useRef(k),T=y.useRef(0),{onToastAdd:L,onToastRemove:M}=g,G=wr(()=>{var Q;(x==null?void 0:x.contains(document.activeElement))&&((Q=g.viewport)==null||Q.focus()),o()}),$=y.useCallback(D=>{!D||D===1/0||(window.clearTimeout(T.current),E.current=new Date().getTime(),T.current=window.setTimeout(G,D))},[G]);y.useEffect(()=>{const D=g.viewport;if(D){const Q=()=>{$(j.current),c==null||c()},Z=()=>{const J=new Date().getTime()-E.current;j.current=j.current-J,window.clearTimeout(T.current),l==null||l()};return D.addEventListener(gf,Z),D.addEventListener(vf,Q),()=>{D.removeEventListener(gf,Z),D.removeEventListener(vf,Q)}}},[g.viewport,k,l,c,$]),y.useEffect(()=>{s&&!g.isClosePausedRef.current&&$(k)},[s,k,g.isClosePausedRef,$]),y.useEffect(()=>(L(),()=>M()),[L,M]);const H=y.useMemo(()=>x?Cw(x):null,[x]);return g.viewport?u.jsxs(u.Fragment,{children:[H&&u.jsx(vE,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:H}),u.jsx(pE,{scope:r,onClose:G,children:ja.createPortal(u.jsx(Gh.ItemSlot,{scope:r,children:u.jsx(qS,{asChild:!0,onEscapeKeyDown:fe(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||G(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(xe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":g.swipeDirection,...b,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:fe(e.onKeyDown,D=>{D.key==="Escape"&&(a==null||a(D.nativeEvent),D.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,G()))}),onPointerDown:fe(e.onPointerDown,D=>{D.button===0&&(v.current={x:D.clientX,y:D.clientY})}),onPointerMove:fe(e.onPointerMove,D=>{if(!v.current)return;const Q=D.clientX-v.current.x,Z=D.clientY-v.current.y,J=!!_.current,P=["left","right"].includes(g.swipeDirection),O=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,W=P?O(0,Q):0,ee=P?0:O(0,Z),Y=D.pointerType==="touch"?10:2,se={x:W,y:ee},oe={originalEvent:D,delta:se};J?(_.current=se,al(dE,f,oe,{discrete:!1})):Qm(se,g.swipeDirection,Y)?(_.current=se,al(uE,d,oe,{discrete:!1}),D.target.setPointerCapture(D.pointerId)):(Math.abs(Q)>Y||Math.abs(Z)>Y)&&(v.current=null)}),onPointerUp:fe(e.onPointerUp,D=>{const Q=_.current,Z=D.target;if(Z.hasPointerCapture(D.pointerId)&&Z.releasePointerCapture(D.pointerId),_.current=null,v.current=null,Q){const J=D.currentTarget,P={originalEvent:D,delta:Q};Qm(Q,g.swipeDirection,g.swipeThreshold)?al(hE,p,P,{discrete:!0}):al(fE,h,P,{discrete:!0}),J.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),vE=e=>{const{__scopeToast:t,children:r,...n}=e,i=Yc(Ca,t),[s,o]=y.useState(!1),[a,l]=y.useState(!1);return xE(()=>o(!0)),y.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:u.jsx(Kh,{asChild:!0,children:u.jsx(Qc,{...n,children:s&&u.jsxs(u.Fragment,{children:[i.label," ",r]})})})},yE="ToastTitle",bw=y.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return u.jsx(xe.div,{...n,ref:t})});bw.displayName=yE;var wE="ToastDescription",_w=y.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return u.jsx(xe.div,{...n,ref:t})});_w.displayName=wE;var kw="ToastAction",Sw=y.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?u.jsx(jw,{altText:r,asChild:!0,children:u.jsx(Qh,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${kw}\`. Expected non-empty \`string\`.`),null)});Sw.displayName=kw;var Ew="ToastClose",Qh=y.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,i=mE(Ew,r);return u.jsx(jw,{asChild:!0,children:u.jsx(xe.button,{type:"button",...n,ref:t,onClick:fe(e.onClick,i.onClose)})})});Qh.displayName=Ew;var jw=y.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...i}=e;return u.jsx(xe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...i,ref:t})});function Cw(e){const t=[];
vendor: 5,488 bytes, lines 40-84
40return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),bE(n)){const i=n.ariaHidden||n.hidden||n.style.display==="none",s=n.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=n.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...Cw(n))}}),t}function al(e,t,r,{discrete:n}){const i=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?dw(i,s):i.dispatchEvent(s)}var Qm=(e,t,r=0)=>{const n=Math.abs(e.x),i=Math.abs(e.y),s=n>i;return t==="left"||t==="right"?s&&n>r:!s&&i>r};function xE(e=()=>{}){const t=wr(e);mn(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function bE(e){return e.nodeType===e.ELEMENT_NODE}function _E(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Xu(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var kE=gw,Tw=yw,Nw=xw,Pw=bw,Aw=_w,Rw=Sw,Ow=Qh;function Iw(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Iw(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function $w(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Iw(e))&&(n&&(n+=" "),n+=t);return n}const Ym=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Jm=$w,Ta=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Jm(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(c=>{const d=r==null?void 0:r[c],f=s==null?void 0:s[c];if(d===null)return null;const h=Ym(d)||Ym(f);return i[c][h]}),a=r&&Object.entries(r).reduce((c,d)=>{let[f,h]=d;return h===void 0||(c[f]=h),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,d)=>{let{class:f,className:h,...p}=d;return Object.entries(p).every(b=>{let[g,x]=b;return Array.isArray(x)?x.includes({...s,...a}[g]):{...s,...a}[g]===x})?[...c,f,h]:c},[]);return Jm(e,o,l,r==null?void 0:r.class,r==null?void 0:r.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 SE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Dw=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).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 EE={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 jE=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:s,iconNode:o,...a},l)=>y.createElement("svg",{ref:l,...EE,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Dw("lucide",i),...a},[...o.map(([c,d])=>y.createElement(c,d)),...Array.isArray(s)?s:[s]]));/**
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 de=(e,t)=>{const r=y.forwardRef(({className:n,...i},s)=>y.createElement(jE,{ref:s,iconNode:t,className:Dw(`lucide-${SE(e)}`,n),...i}));return r.displayName=`${e}`,r};/**
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 Xm=de("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
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 wf=de("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
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 CE=de("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/**
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 TE=de("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
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 Mo=de("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"}]]);/**
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 eg=de("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
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 ll=de("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
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 NE=de("Earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
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 PE=de("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
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 AE=de("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
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 tg=de("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
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 zw=de("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
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 RE=de("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);/**
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 xf=de("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
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 OE=de("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
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 IE=de("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
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 $E=de("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/**
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 DE=de("Leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]);/**
151 * @license lucide-react v0.462.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const Lw=de("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
156 * @license lucide-react v0.462.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const rg=de("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
161 * @license lucide-react v0.462.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const ng=de("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
166 * @license lucide-react v0.462.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const bf=de("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"}]]);/**
171 * @license lucide-react v0.462.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const hc=de("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"}]]);/**
176 * @license lucide-react v0.462.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const zE=de("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/**
181 * @license lucide-react v0.462.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const LE=de("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"}]]);/**
186 * @license lucide-react v0.462.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const ME=de("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"}]]);/**
191 * @license lucide-react v0.462.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const ig=de("Plane",[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.
1951-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]]);/**
196 * @license lucide-react v0.462.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const FE=de("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/**
201 * @license lucide-react v0.462.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const sg=de("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
206 * @license lucide-react v0.462.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const UE=de("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
211 * @license lucide-react v0.462.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const VE=de("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"}]]);/**
216 * @license lucide-react v0.462.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const BE=de("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
221 * @license lucide-react v0.462.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const $i=de("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
226 * @license lucide-react v0.462.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const Mw=de("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Yh="-",WE=e=>{const t=ZE(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const a=o.split(Yh);return a[0]===""&&a.length!==1&&a.shift(),Fw(a,t)||HE(o)},getConflictingClassGroupIds:(o,a)=>{const l=r[o]||[];return a&&n[o]?[...l,...n[o]]:l}}},Fw=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?Fw(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(Yh);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},og=/^\[(.+)\]$/,HE=e=>{if(og.test(e)){const t=og.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ZE=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return qE(Object.entries(e.classGroups),r).forEach(([s,o])=>{_f(o,n,s,t)}),n},_f=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:ag(t,i);s.classGroupId=r;return}if(typeof i=="function"){if(KE(i)){_f(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([s,o])=>{_f(o,ag(t,s),r,n)})})},ag=(e,t)=>
vendor: 4,762 bytes, line 230
230{let r=e;return t.split(Yh).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},KE=e=>e.isThemeGetter,qE=(e,t)=>t?e.map(([r,n])=>{const i=n.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[r,i]}):e,GE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(s,o)=>{r.set(s,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let o=r.get(s);if(o!==void 0)return o;if((o=n.get(s))!==void 0)return i(s,o),o},set(s,o){r.has(s)?r.set(s,o):i(s,o)}}},Uw="!",QE=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],s=t.length,o=a=>{const l=[];let c=0,d=0,f;for(let x=0;x<a.length;x++){let w=a[x];if(c===0){if(w===i&&(n||a.slice(x,x+s)===t)){l.push(a.slice(d,x)),d=x+s;continue}if(w==="/"){f=x;continue}}w==="["?c++:w==="]"&&c--}const h=l.length===0?a:a.substring(d),p=h.startsWith(Uw),b=p?h.substring(1):h,g=f&&f>d?f-d:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:g}};return r?a=>r({className:a,parseClassName:o}):o},YE=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},JE=e=>({cache:GE(e.cacheSize),parseClassName:QE(e),...WE(e)}),XE=/\s+/,ej=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,s=[],o=e.trim().split(XE);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:p}=r(c);let b=!!p,g=n(b?h.substring(0,p):h);if(!g){if(!b){a=c+(a.length>0?" "+a:a);continue}if(g=n(h),!g){a=c+(a.length>0?" "+a:a);continue}b=!1}const x=YE(d).join(":"),w=f?x+Uw:x,m=w+g;if(s.includes(m))continue;s.push(m);const v=i(g,b);for(let _=0;_<v.length;++_){const k=v[_];s.push(w+k)}a=c+(a.length>0?" "+a:a)}return a};function tj(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Vw(t))&&(n&&(n+=" "),n+=r);return n}const Vw=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Vw(e[n]))&&(r&&(r+=" "),r+=t);return r};function rj(e,...t){let r,n,i,s=o;function o(l){const c=t.reduce((d,f)=>f(d),e());return r=JE(c),n=r.cache.get,i=r.cache.set,s=a,a(l)}function a(l){const c=n(l);if(c)return c;const d=ej(l,r);return i(l,d),d}return function(){return s(tj.apply(null,arguments))}}const Se=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Bw=/^\[(?:([a-z-]+):)?(.+)\]$/i,nj=/^\d+\/\d+$/,ij=new Set(["px","full","screen"]),sj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oj=/\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$/,aj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,lj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qr=e=>As(e)||ij.has(e)||nj.test(e),kn=e=>ro(e,"length",vj),As=e=>!!e&&!Number.isNaN(Number(e)),ed=e=>ro(e,"number",As),wo=e=>!!e&&Number.isInteger(Number(e)),uj=e=>e.endsWith("%")&&As(e.slice(0,-1)),ie=e=>Bw.test(e),Sn=e=>sj.test(e),dj=new Set(["length","size","percentage"]),fj=e=>ro(e,dj,Ww),hj=e=>ro(e,"position",Ww),pj=new Set(["image","url"]),mj=e=>ro(e,pj,wj),gj=e=>ro(e,"",yj),xo=()=>!0,ro=(e,t,r)=>{const n=Bw.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},vj=e=>oj.test(e)&&!aj.test(e),Ww=()=>!1,yj=e=>lj.test(e),wj=e=>cj.test(e),xj=()=>{const e=Se("colors"),t=Se("spacing"),r=Se("blur"),n=Se("brightness"),i=Se("borderColor"),s=Se("borderRadius"),o=Se("borderSpacing"),a=Se("borderWidth"),l=Se("contrast"),c=Se("grayscale"),d=Se("hueRotate"),f=Se("invert"),h=Se("gap"),p=Se("gradientColorStops"),b=Se("gradientColorStopPositions"),g=Se("inset"),x=Se("margin"),w=Se("opacity"),m=Se("padding"),v=Se("saturate"),_=Se("scale"),k=Se("sepia"),E=Se("skew"),j=Se("space"),T=Se("translate"),L=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",ie,t],$=()=>[ie,t],H=()=>["",qr,kn],D=()=>["auto",As,ie],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Z=()=>["solid","dashed","dotted","double","none"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",ie],W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>[As,ie];return{cacheSize:500,separator:":",theme:{colors:[xo],spacing:[qr,kn],blur:["none","",Sn,ie],brightness:ee(),borderColor:[e],borderRadius:["n
230one","","full",Sn,ie],borderSpacing:$(),borderWidth:H(),contrast:ee(),grayscale:O(),hueRotate:ee(),invert:O(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[uj,kn],inset:G(),margin:G(),opacity:ee(),padding:$(),saturate:ee(),scale:ee(),sepia:O(),skew:ee(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",ie]}],container:["container"],columns:[{columns:[Sn]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Q(),ie]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],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",wo,ie]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ie]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",wo,ie]}],"grid-cols":[{"grid-cols":[xo]}],"col-start-end":[{col:["auto",{span:["full",wo,ie]},ie]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[xo]}],"row-start-end":[{row:["auto",{span:[wo,ie]},ie]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ie]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ie]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ie,t]}],"min-w":[{"min-w":[ie,t,"min","max","fit"]}],"max-w":[{"max-w":[ie,t,"none","full","min","max","fit","prose",{screen:[Sn]},Sn]}],h:[{h:[ie,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ie,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Sn,kn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ed]}],"font-family":[{font:[xo]}],"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",ie]}],"line-clamp":[{"line-clamp":["none",As,ed]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",qr,ie]}],"list-image":[{"list-image":["none",ie]}],"list-style-type":[{list:["none","disc","decimal",ie]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",qr,kn]}],"underline-offset":[{"underline-offset":["auto",qr,ie]}],"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:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie]}],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",ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),hj]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",fj]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},mj]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}
vendor: 5,182 bytes, line 230
230],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"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":[w]}],"border-style":[{border:[...Z(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:Z()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...Z()]}],"outline-offset":[{"outline-offset":[qr,ie]}],"outline-w":[{outline:[qr,kn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[qr,kn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Sn,gj]}],"shadow-color":[{shadow:[xo]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...J(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Sn,ie]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"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",ie]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",ie]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",ie]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[wo,ie]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ie]}],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",ie]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"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"]}
vendor: 4,647 bytes, line 230
230],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[qr,kn,ed]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},bj=rj(xj);function me(...e){return bj($w(e))}const _j=kE,Hw=y.forwardRef(({className:e,...t},r)=>u.jsx(Tw,{ref:r,className:me("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}));Hw.displayName=Tw.displayName;const kj=Ta("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"}}),Zw=y.forwardRef(({className:e,variant:t,...r},n)=>u.jsx(Nw,{ref:n,className:me(kj({variant:t}),e),...r}));Zw.displayName=Nw.displayName;const Sj=y.forwardRef(({className:e,...t},r)=>u.jsx(Rw,{ref:r,className:me("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}));Sj.displayName=Rw.displayName;const Kw=y.forwardRef(({className:e,...t},r)=>u.jsx(Ow,{ref:r,className:me("absolute right-2 top-2 rounded-md p-1 text-foreground
230/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:u.jsx(Mw,{className:"h-4 w-4"})}));Kw.displayName=Ow.displayName;const qw=y.forwardRef(({className:e,...t},r)=>u.jsx(Pw,{ref:r,className:me("text-sm font-semibold",e),...t}));qw.displayName=Pw.displayName;const Gw=y.forwardRef(({className:e,...t},r)=>u.jsx(Aw,{ref:r,className:me("text-sm opacity-90",e),...t}));Gw.displayName=Aw.displayName;function Ej(){const{toasts:e}=Kc();return u.jsxs(_j,{children:[e.map(function({id:t,title:r,description:n,action:i,...s}){return u.jsxs(Zw,{...s,children:[u.jsxs("div",{className:"grid gap-1",children:[r&&u.jsx(qw,{children:r}),n&&u.jsx(Gw,{children:n})]}),i,u.jsx(Kw,{})]},t)}),u.jsx(Hw,{})]})}var lg=["light","dark"],jj="(prefers-color-scheme: dark)",Cj=y.createContext(void 0),Tj={setTheme:e=>{},themes:[]},Nj=()=>{var e;return(e=y.useContext(Cj))!=null?e:Tj};y.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:i,defaultTheme:s,value:o,attrs:a,nonce:l})=>{let c=s==="system",d=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,f=i?lg.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(b,g=!1,x=!0)=>{let w=o?o[b]:b,m=g?b+"|| ''":`'${w}'`,v="";return i&&x&&!g&&lg.includes(b)&&(v+=`d.style.colorScheme = '${b}';`),r==="class"?g||w?v+=`c.add(${m})`:v+="null":w&&(v+=`d[s](n,${m})`),v},p=e?`!function(){${d}${h(e)}}()`:n?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${jj}',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)}}${c?"":"else{"+h(s,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}else{${h(s,!1,!1)};}${f}}catch(t){}}();`;return y.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})});var Pj=e=>{switch(e){case"success":return Oj;case"info":return $j;case"warning":return Ij;case"error":return Dj;default:return null}},Aj=Array(12).fill(0),Rj=({visible:e,className:t})=>A.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},A.createElement("div",{className:"sonner-spinner"},Aj.map((r,n)=>A.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),Oj=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),Ij=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},A.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"})),$j=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),Dj=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),zj=A.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"},A.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Lj=()=>{let[e,t]=A.useState(document.hidden);return A.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},kf=1,Mj=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
vendor: 1,050 bytes, line 230
230{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:kf++,s=this.toasts.find(a=>a.id===i),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...e,id:i,title:r}),{...a,...e,id:i,dismissible:o,title:r}):a):this.addToast({title:r,...n,dismissible:o,id:i}),i},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({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)=>
230this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let n=e instanceof Promise?e:e(),i=r!==void 0,s,o=n.then(async l=>{if(s=["resolve",l],A.isValidElement(l))i=!1,this.create({id:r,type:"default",message:l});else if(Uj(l)&&!l.ok){i=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:r,type:"error",message:c,description:d})}else if(t.success!==void 0){i=!1;let c=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"success",message:c,description:d})}}).catch(async l=>{if(s=["reject",l],t.error!==void 0){i=!1;let c=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"error",message:c,description:d})}}).finally(()=>{var l;i&&(this.dismiss(r),r=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,c)=>o.then(()=>s[0]==="reject"?c(s[1]):l(s[1])).catch(c));return typeof r!="string"&&typeof r!="number"?{unwrap:a}:Object.assign(r,{unwrap:a})},this.custom=(e,t)=>{let r=(t==null?void 0:t.id)||kf++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Et=new Mj,Fj=(e,t)=>{let r=(t==null?void 0:t.id)||kf++;return Et.addToast({title:e,...t,id:r}),r},Uj=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Vj=Fj,Bj=()=>Et.toasts,Wj=()=>Et.getActiveToasts();Object.assign(Vj,{success:Et.success,info:Et.info,warning:Et.warning,error:Et.error,custom:Et.custom,message:Et.message,promise:Et.promise,dismiss:Et.dismiss,loading:Et.loading},{getHistory:Bj,getToasts:Wj});function Hj(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Hj(`: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;
230left: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}
230: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%);
230--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%)}
231`);function cl(e){return e.label!==void 0}var Zj=3,Kj="32px",qj="16px",cg=4e3,Gj=356,Qj=14,Yj=20,Jj=200;function nr(...e){return e.filter(Boolean).join(" ")}function Xj(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var eC=e=>{var t,r,n,i,s,o,a,l,c,d,f;let{invert:h,toast:p,unstyled:b,interacting:g,setHeights:x,visibleToasts:w,heights:m,index:v,toasts:_,expanded:k,removeToast:E,defaultRichColors:j,closeButton:T,style:L,cancelButtonStyle:M,actionButtonStyle:G,className:$="",descriptionClassName:H="",duration:D,position:Q,gap:Z,loadingIcon:J,expandByDefault:P,classNames:O,icons:W,closeButtonAriaLabel:ee="Close toast",pauseWhenPageIsHidden:Y}=e,[se,oe]=A.useState(null),[Pe,Qe]=A.useState(null),[ue,Br]=A.useState(!1),[Ut,Jt]=A.useState(!1),[kr,Wr]=A.useState(!1),[Sr,ci]=A.useState(!1),[Gi,Qi]=A.useState(!1),[co,Yi]=A.useState(0),[Hr,S]=A.useState(0),C=A.useRef(p.duration||D||cg),N=A.useRef(null),V=A.useRef(null),U=v===0,F=v+1<=w,K=p.type,ce=p.dismissible!==!1,ye=p.className||"",kt=p.descriptionClassName||"",Zr=A.useMemo(()=>m.findIndex(te=>te.toastId===p.id)||0,[m,p.id]),Er=A.useMemo(()=>{var te;return(te=p.closeButton)!=null?te:T},[p.closeButton,T]),Ma=A.useMemo(()=>p.duration||D||cg,[p.duration,D]),ui=A.useRef(0),jr=A.useRef(0),Fa=A.useRef(0),Kr=A.useRef(null),[_u,Ua]=Q.split("-"),Ip=A.useMemo(()=>m.reduce((te,we,Ce)=>Ce>=Zr?te:te+we.height,0),[m,Zr]),$p=Lj(),X1=p.invert||h,ku=K==="loading";jr.current=A.useMemo(()=>Zr*Z+Ip,[Zr,Ip]),A.useEffect(()=>{C.current=Ma},[Ma]),A.useEffect(()=>{Br(!0)},[]),A.useEffect(()=>{let te=V.current;if(te){let we=te.getBoundingClientRect().height;return S(we),x(Ce=>[{toastId:p.id,height:we,position:p.position},...Ce]),()=>x(Ce=>Ce.filter(Xt=>Xt.toastId!==p.id))}},[x,p.id]),A.useLayoutEffect(()=>{if(!ue)return;let te=V.current,we=te.style.height;te.style.height="auto";let Ce=te.getBoundingClientRect().height;te.style.height=we,S(Ce),x(Xt=>Xt.find(er=>er.toastId===p.id)?Xt.map(er=>er.toastId===p.id?{...er,height:Ce}:er):[{toastId:p.id,height:Ce,position:p.position},...Xt])},[ue,p.title,p.description,x,p.id]);let wn=A.useCallback(()=>{Jt(!0),Yi(jr.current),x(te=>te.filter(we=>we.toastId!==p.id)),setTimeout(()=>{E(p)},Jj)},[p,E,x,jr]);A.useEffect(()=>{if(p.promise&&K==="loading"||p.duration===1/0||p.type==="loading")return;let te;return k||g||Y&&$p?(()=>{if(Fa.current<ui.current){let we=new Date().getTime()-ui.current;C.current=C.current-we}
231Fa.current=new Date().getTime()})():C.current!==1/0&&(ui.current=new Date().getTime(),te=setTimeout(()=>{var we;(we=p.onAutoClose)==null||we.call(p,p),wn()},C.current)),()=>clearTimeout(te)},[k,g,p,K,Y,$p,wn]),A.useEffect(()=>{p.delete&&wn()},[wn,p.delete]);function e_(){var te,we,Ce;return W!=null&&W.loading?A.createElement("div",{className:nr(O==null?void 0:O.loader,(te=p==null?void 0:p.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":K==="loading"},W.loading):J?A.createElement("div",{className:nr(O==null?void 0:O.loader,(we=p==null?void 0:p.classNames)==null?void 0:we.loader,"sonner-loader"),"data-visible":K==="loading"},J):A.createElement(Rj,{className:nr(O==null?void 0:O.loader,(Ce=p==null?void 0:p.classNames)==null?void 0:Ce.loader),visible:K==="loading"})}return A.createElement("li",{tabIndex:0,ref:V,className:nr($,ye,O==null?void 0:O.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,O==null?void 0:O.default,O==null?void 0:O[K],(r=p==null?void 0:p.classNames)==null?void 0:r[K]),"data-sonner-toast":"","data-rich-colors":(n=p.richColors)!=null?n:j,"data-styled":!(p.jsx||p.unstyled||b),"data-mounted":ue,"data-promise":!!p.promise,"data-swiped":Gi,"data-removed":Ut,"data-visible":F,"data-y-position":_u,"data-x-position":Ua,"data-index":v,"data-front":U,"data-swiping":kr,"data-dismissible":ce,"data-type":K,"data-invert":X1,"data-swipe-out":Sr,"data-swipe-direction":Pe,"data-expanded":!!(k||P&&ue),style:{"--index":v,"--toasts-before":v,"--z-index":_.length-v,"--offset":`${Ut?co:jr.current}px`,"--initial-height":P?"auto":`${Hr}px`,...L,...p.style},onDragEnd:()=>{Wr(!1),oe(null),Kr.current=null},onPointerDown:te=>{ku||!ce||(N.current=new Date,Yi(jr.current),te.target.setPointerCapture(te.pointerId),te.target.tagName!=="BUTTON"&&(Wr(!0),Kr.current={x:te.clientX,y:te.clientY}))},onPointerUp:()=>{var te,we,Ce,Xt;if(Sr||!ce)return;Kr.current=null;let er=Number(((te=V.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),xn=Number(((we=V.current)==null?void 0:we.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),di=new Date().getTime()-((Ce=N.current)==null?void 0:Ce.getTime()),tr=se==="x"?er:xn,bn=Math.abs(tr)/di;if(Math.abs(tr)>=Yj||bn>.11){Yi(jr.current),(Xt=p.onDismiss)==null||Xt.call(p,p),Qe(se==="x"?er>0?"right":"left":xn>0?"down":"up"),wn(),ci(!0),Qi(!1);return}Wr(!1),oe(null)},onPointerMove:te=>{var we,Ce,Xt,er;if(!Kr.current||!ce||((we=window.getSelection())==null?void 0:we.toString().length)>0)return;let xn=te.clientY-Kr.current.y,di=te.clientX-Kr.current.x,tr=(Ce=e.swipeDirections)!=null?Ce:Xj(Q);!se&&(Math.abs(di)>1||Math.abs(xn)>1)&&oe(Math.abs(di)>Math.abs(xn)?"x":"y");let bn={x:0,y:0};se==="y"?(tr.includes("top")||tr.includes("bottom"))&&(tr.includes("top")&&xn<0||tr.includes("bottom")&&xn>0)&&(bn.y=xn):se==="x"&&(tr.includes("left")||tr.includes("right"))&&(tr.includes("left")&&di<0||tr.includes("right")&&di>0)&&(bn.x=di),(Math.abs(bn.x)>0||Math.abs(bn.y)>0)&&Qi(!0),(Xt=V.current)==null||Xt.style.setProperty("--swipe-amount-x",`${bn.x}px`),(er=V.current)==null||er.style.setProperty("--swipe-amount-y",`${bn.y}px`)}},Er&&!p.jsx?A.createElement("button",{"aria-label":ee,"data-disabled":ku,"data-close-button":!0,onClick:ku||!ce?()=>{}:()=>{var te;wn(),(te=p.onDismiss)==null||te.call(p,p)},className:nr(O==null?void 0:O.closeButton,(i=p==null?void 0:p.classNames)==null?void 0:i.closeButton)},(s=W==null?void 0:W.close)!=null?s:zj):null,p.jsx||y.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:A.createElement(A.Fragment,null,K||p.icon||p.promise?A.createElement("div",{"data-icon":"",className:nr(O==null?void 0:O.icon,(o=p==null?void 0:p.classNames)==null?void 0:o.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||e_():null,p.type!=="loading"?p.icon||(W==null?void 0:W[K])||Pj(K):null):null,A.createElement("div",{"data-content":"",className:nr(O==null?void 0:O.content,(a=p==null?void 0:p.classNames)==null?void 0:a.content)},A.createElement("div",{"data-title":"",className:nr(O==null?void 0:O.title,(l=p==null?void 0:p.classNames)==null?void 0:l.title)},typeof p.title=="function"?p.title():p.title),p.description?A.createElement("div",{"data-description":"",className:nr(H,kt,O==null?void 0:O.de
231scription,(c=p==null?void 0:p.classNames)==null?void 0:c.description)},typeof p.description=="function"?p.description():p.description):null),y.isValidElement(p.cancel)?p.cancel:p.cancel&&cl(p.cancel)?A.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||M,onClick:te=>{var we,Ce;cl(p.cancel)&&ce&&((Ce=(we=p.cancel).onClick)==null||Ce.call(we,te),wn())},className:nr(O==null?void 0:O.cancelButton,(d=p==null?void 0:p.classNames)==null?void 0:d.cancelButton)},p.cancel.label):null,y.isValidElement(p.action)?p.action:p.action&&cl(p.action)?A.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||G,onClick:te=>{var we,Ce;cl(p.action)&&((Ce=(we=p.action).onClick)==null||Ce.call(we,te),!te.defaultPrevented&&wn())},className:nr(O==null?void 0:O.actionButton,(f=p==null?void 0:p.classNames)==null?void 0:f.actionButton)},p.action.label):null))};function ug(){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 tC(e,t){let r={};return[e,t].forEach((n,i)=>{let s=i===1,o=s?"--mobile-offset":"--offset",a=s?qj:Kj;function l(c){["top","right","bottom","left"].forEach(d=>{r[`${o}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof n=="number"||typeof n=="string"?l(n):typeof n=="object"?["top","right","bottom","left"].forEach(c=>{n[c]===void 0?r[`${o}-${c}`]=a:r[`${o}-${c}`]=typeof n[c]=="number"?`${n[c]}px`:n[c]}):l(a)}),r}var rC=y.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:o,className:a,offset:l,mobileOffset:c,theme:d="light",richColors:f,duration:h,style:p,visibleToasts:b=Zj,toastOptions:g,dir:x=ug(),gap:w=Qj,loadingIcon:m,icons:v,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:k}=e,[E,j]=A.useState([]),T=A.useMemo(()=>Array.from(new Set([n].concat(E.filter(Y=>Y.position).map(Y=>Y.position)))),[E,n]),[L,M]=A.useState([]),[G,$]=A.useState(!1),[H,D]=A.useState(!1),[Q,Z]=A.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),J=A.useRef(null),P=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=A.useRef(null),W=A.useRef(!1),ee=A.useCallback(Y=>{j(se=>{var oe;return(oe=se.find(Pe=>Pe.id===Y.id))!=null&&oe.delete||Et.dismiss(Y.id),se.filter(({id:Pe})=>Pe!==Y.id)})},[]);return A.useEffect(()=>Et.subscribe(Y=>{if(Y.dismiss){j(se=>se.map(oe=>oe.id===Y.id?{...oe,delete:!0}:oe));return}setTimeout(()=>{sw.flushSync(()=>
vendor: 5,748 bytes, line 231
231{j(se=>{let oe=se.findIndex(Pe=>Pe.id===Y.id);return oe!==-1?[...se.slice(0,oe),{...se[oe],...Y},...se.slice(oe+1)]:[Y,...se]})})})}),[]),A.useEffect(()=>{if(d!=="system"){Z(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Z("dark"):Z("light")),typeof window>"u")return;let Y=window.matchMedia("(prefers-color-scheme: dark)");try{Y.addEventListener("change",({matches:se})=>{Z(se?"dark":"light")})}catch{Y.addListener(({matches:oe})=>{try{Z(oe?"dark":"light")}catch(Pe){console.error(Pe)}})}},[d]),A.useEffect(()=>{E.length<=1&&$(!1)},[E]),A.useEffect(()=>{let Y=se=>{var oe,Pe;i.every(Qe=>se[Qe]||se.code===Qe)&&($(!0),(oe=J.current)==null||oe.focus()),se.code==="Escape"&&(document.activeElement===J.current||(Pe=J.current)!=null&&Pe.contains(document.activeElement))&&$(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[i]),A.useEffect(()=>{if(J.current)return()=>{O.current&&(O.current.focus({preventScroll:!0}),O.current=null,W.current=!1)}},[J.current]),A.createElement("section",{ref:t,"aria-label":`${_} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((Y,se)=>{var oe;let[Pe,Qe]=Y.split("-");return E.length?A.createElement("ol",{key:Y,dir:x==="auto"?ug():x,tabIndex:-1,ref:J,className:a,"data-sonner-toaster":!0,"data-theme":Q,"data-y-position":Pe,"data-lifted":G&&E.length>1&&!s,"data-x-position":Qe,style:{"--front-toast-height":`${((oe=L[0])==null?void 0:oe.height)||0}px`,"--width":`${Gj}px`,"--gap":`${w}px`,...p,...tC(l,c)},onBlur:ue=>{W.current&&!ue.currentTarget.contains(ue.relatedTarget)&&(W.current=!1,O.current&&(O.current.focus({preventScroll:!0}),O.current=null))},onFocus:ue=>{ue.target instanceof HTMLElement&&ue.target.dataset.dismissible==="false"||W.current||(W.current=!0,O.current=ue.relatedTarget)},onMouseEnter:()=>$(!0),onMouseMove:()=>$(!0),onMouseLeave:()=>{H||$(!1)},onDragEnd:()=>$(!1),onPointerDown:ue=>{ue.target instanceof HTMLElement&&ue.target.dataset.dismissible==="false"||D(!0)},onPointerUp:()=>D(!1)},E.filter(ue=>!ue.position&&se===0||ue.position===Y).map((ue,Br)=>{var Ut,Jt;return A.createElement(eC,{key:ue.id,icons:v,index:Br,toast:ue,defaultRichColors:f,duration:(Ut=g==null?void 0:g.duration)!=null?Ut:h,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:r,visibleToasts:b,closeButton:(Jt=g==null?void 0:g.closeButton)!=null?Jt:o,interacting:H,position:Y,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:ee,toasts:E.filter(kr=>kr.position==ue.position),heights:L.filter(kr=>kr.position==ue.position),setHeights:M,expandByDefault:s,gap:w,loadingIcon:m,expanded:G,pauseWhenPageIsHidden:k,swipeDirections:e.swipeDirections})})):null}))});const nC=({...e})=>{const{theme:t="system"}=Nj();return u.jsx(rC,{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 iC=rh[" useId ".trim().toString()]||(()=>{}),sC=0;function Fo(e){const[t,r]=y.useState(iC());return mn(()=>{e||r(n=>n??String(sC++))},[e]),e||(t?`radix-${t}`:"")}const oC=["top","right","bottom","left"],ri=Math.min,It=Math.max,pc=Math.round,ul=Math.floor,Mr=e=>({x:e,y:e}),aC={left:"right",right:"left",bottom:"top",top:"bottom"},lC={start:"end",end:"start"};function Sf(e,t,r){return It(e,ri(t,r))}function gn(e,t){return typeof e=="function"?e(t):e}function vn(e){return e.split("-")[0]}function no(e){return e.split("-")[1]}function Jh(e){return e==="x"?"y":"x"}function Xh(e){return e==="y"?"height":"width"}const cC=new Set(["top","bottom"]);function $r(e){return cC.has(vn(e))?"y":"x"}function ep(e){return Jh($r(e))}function uC(e,t,r){r===void 0&&(r=!1);const n=no(e),i=ep(e),s=Xh(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=mc(o)),[o,mc(o)]}function dC(e){const t=mc(e);return[Ef(e),t,Ef(t)]}function Ef(e){return e.replace(/start|end/g,t=>lC[t])}const dg=["left","right"],fg=["right","left"],fC=["top","bottom"],hC=["bottom","top"];function pC(e,t,r){switch(e){case"top":case"bottom":return r?t?fg:dg:t?dg:fg;case"left":case"right":return t?fC:hC;default:return[]}}function mC(e,t,r,n){const i=no(e);let s=pC(vn(e),r==="start",n);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(Ef)))),s}function mc(e){return e.replace(/left|right|bottom|top/g,t=>aC[t])}function gC(e){return{top:0,right:0,bottom:0,left:0,...e}}function Qw(e){return typeof e!="number"?gC(e):{top:e,right:e,bottom:e,left:e}}function gc(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function hg(e,t,r){let{reference:n,floating:i}=e;const s=$r(t),o=ep(t),a=Xh(o),l=vn(t),c=s==="y",d=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,h=n[a]/2-i[a]/2;let p;switch(l){case"top":p={x:d,y:n.y-i.height};break;case"bottom":p={x:d,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-i.width,y:f};break;default:p={x:n.x,y:n.y}}switch(no(t)){case"start":p[o]-=h*(r&&c?-1:1);break;case"end":p[o]+=h*(r&&c?-1:1);break}return p}const vC=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}
vendor: 9,931 bytes, line 231
231=r,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=hg(c,n,l),h=n,p={},b=0;for(let g=0;g<a.length;g++){const{name:x,fn:w}=a[g],{x:m,y:v,data:_,reset:k}=await w({x:d,y:f,initialPlacement:n,placement:h,strategy:i,middlewareData:p,rects:c,platform:o,elements:{reference:e,floating:t}});d=m??d,f=v??f,p={...p,[x]:{...p[x],..._}},k&&b<=50&&(b++,typeof k=="object"&&(k.placement&&(h=k.placement),k.rects&&(c=k.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):k.rects),{x:d,y:f}=hg(c,h,l)),g=-1)}return{x:d,y:f,placement:h,strategy:i,middlewareData:p}};async function ua(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=gn(t,e),b=Qw(p),x=a[h?f==="floating"?"reference":"floating":f],w=gc(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(x)))==null||r?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),m=f==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),_=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},k=gc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:v,strategy:l}):m);return{top:(w.top-k.top+b.top)/_.y,bottom:(k.bottom-w.bottom+b.bottom)/_.y,left:(w.left-k.left+b.left)/_.x,right:(k.right-w.right+b.right)/_.x}}const yC=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=gn(e,t)||{};if(c==null)return{};const f=Qw(d),h={x:r,y:n},p=ep(i),b=Xh(p),g=await o.getDimensions(c),x=p==="y",w=x?"top":"left",m=x?"bottom":"right",v=x?"clientHeight":"clientWidth",_=s.reference[b]+s.reference[p]-h[p]-s.floating[b],k=h[p]-s.reference[p],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let j=E?E[v]:0;(!j||!await(o.isElement==null?void 0:o.isElement(E)))&&(j=a.floating[v]||s.floating[b]);const T=_/2-k/2,L=j/2-g[b]/2-1,M=ri(f[w],L),G=ri(f[m],L),$=M,H=j-g[b]-G,D=j/2-g[b]/2+T,Q=Sf($,D,H),Z=!l.arrow&&no(i)!=null&&D!==Q&&s.reference[b]/2-(D<$?M:G)-g[b]/2<0,J=Z?D<$?D-$:D-H:0;return{[p]:h[p]+J,data:{[p]:Q,centerOffset:D-Q-J,...Z&&{alignmentOffset:J}},reset:Z}}}),wC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...x}=gn(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const w=vn(i),m=$r(a),v=vn(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),k=h||(v||!g?[mc(a)]:dC(a)),E=b!=="none";!h&&E&&k.push(...mC(a,g,b,_));const j=[a,...k],T=await ua(t,x),L=[];let M=((n=s.flip)==null?void 0:n.overflows)||[];if(d&&L.push(T[w]),f){const D=uC(i,o,_);L.push(T[D[0]],T[D[1]])}if(M=[...M,{placement:i,overflows:L}],!L.every(D=>D<=0)){var G,$;const D=(((G=s.flip)==null?void 0:G.index)||0)+1,Q=j[D];if(Q&&(!(f==="alignment"?m!==$r(Q):!1)||M.every(P=>P.overflows[0]>0&&$r(P.placement)===m)))return{data:{index:D,overflows:M},reset:{placement:Q}};let Z=($=M.filter(J=>J.overflows[0]<=0).sort((J,P)=>J.overflows[1]-P.overflows[1])[0])==null?void 0:$.placement;if(!Z)switch(p){case"bestFit":{var H;const J=(H=M.filter(P=>{if(E){const O=$r(P.placement);return O===m||O==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(O=>O>0).reduce((O,W)=>O+W,0)]).sort((P,O)=>P[1]-O[1])[0])==null?void 0:H[0];J&&(Z=J);break}case"initialPlacement":Z=a;break}if(i!==Z)return{reset:{placement:Z}}}return{}}}};function pg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function mg(e){return oC.some(t=>e[t]>=0)}const xC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...i}=gn(e,t);switch(n){case"referenceHidden":{const s=await ua(t,{...i,elementContext:"reference"}),o=pg(s,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:mg(o)}}}case"escaped":{const s=await ua(t,{...i,altBoundary:!0}),o=pg(s,r.floating);return{data:{escapedOffsets:o,escaped:mg(o)}}}default:return{}}}}},Yw=new Set(["left","top"]);async function bC(e,t){const{placement:r,platform:n,elements:i}=e,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=vn(r),a=no(r),l=$r(r)==="y",c=Yw.has(o)?-1:1,d=s&&l?-1:1,f=gn(t,e);let{mainAxis:h,crossAxis:p,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"&&(p=a==="end"?b*-1:b),l?{x:p*d,y:h*c}:{x:h*c,y:p*d}}const _C=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:s,placement:o,middlewareData:a}=t,l=await bC(t,e);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},kC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:w,y:m}=x;return{x:w,y:m}}},...l}=gn(e,t),c={x:r,y:n},d=await ua(t,l),f=$r(vn(i)),h=Jh(f);let p=c[h],b=c[f];if(s){const x=h==="y"?"top":"left",w=h==="y"?"bottom":"right",m=p+d[x],v=p-d[w];p=Sf(m,p,v)}if(o){const x=f==="y"?"top":"left",w=f==="y"?"bottom":"right",m=b+d[x],v=b-d[w];b=Sf(m,b,v)}const g=a.fn({...t,[h]:p,[f]:b});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[h]:s,[f]:o}}}}}},SC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:s,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=gn(e,t),d={x:r,y:n},f=$r(i),h=Jh(f);let p=d[h],b=d[f];const g=gn(a,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const v=h==="y"?"height":"width",_=s.reference[h]-s.floating[v]+x.mainAxis,k=s.reference[h]+s.reference[v]-x.mainAxis;p<_?p=_:p>k&&(p=k)}if(c){var w,m;const v=h==="y"?"width":"height",_=Yw.has(vn(i)),k=s.reference[f]-s.floating[v]+(_&&((w=o.offset)==null?void 0:w[f])||0)+(_?0:x.crossAxis),E=s.reference[f]+s.reference[v]+(_?0:((m=o.offset)==null?void 0:m[f])||0)-(_?x.crossAxis:0);b<k?b=k:b>E&&(b=E)}return{[h]:p,[f]:b}}}},EC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:s,platform:o,elements:a}=t,{apply:l=()=>{},...c}=gn(e,t),d=await ua(t,c),f=vn(i),h=no(i),p=$r(i)==="y",{width:b,height:g}=s.floating;let x,w;f==="top"||f==="bottom"?(x=f,w=h===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(w=f,x=h==="end"?"top":"bottom");const m=g-d.top-d.bottom,v=b-d.left-d.right,_=ri(g-d[x],m),k=ri(b-d[w],v),E=!t.middlewareData.shift;let j=_,T=k;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(T=v),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(j=m),E&&!h){const M=It(d.left,0),G=It(d.right,0),$=It(d.top,0),H=It(d.bottom,0);p?T=b-2*(M!==0||G!==0?M+G:It(d.left,d.right)):j=g-2*($!==0||H!==0?$+H:It(d.top,d.bottom))}await l({...t,availableWidth:T,availableHeight:j});const L=await o.getDimensions(a.floating);return b!==L.width||g!==L.height?{reset:{rects:!0}}:{}}}};function Jc(){return typeof window<"u"}function io(e){return Jw(e)?(e.nodeName||"").toLowerCase():"#document"}function zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ur(e){var t;return(t=(Jw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jw(e){return Jc()?e instanceof Node||e instanceof zt(e).Node:!1}function xr(e){return Jc()?e instanceof Element||e instanceof zt(e).Element:!1}function Fr(e){return Jc()?e instanceof HTMLElement||e instanceof zt(e).HTMLElement:!1}function gg(e){return!Jc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof zt(e).ShadowRoot}const jC=new Set(["inline","contents"]);function Na(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=br(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!jC.has(i)}const CC=new Set(["table","td","th"]);function TC(e){return CC.has(io(e))}const NC=[":popover-open",":modal"];function Xc(e){return NC.some(t=>{try{return e.matches(t)}catch{return!1}})}const PC=["transform","translate","scale","rotate","perspective"],AC=["transform","translate","scale","rotate","perspective","filter"],RC=["paint","layout","strict","content"];function tp(e){const t=rp(),r=xr(e)?br(e):e;return PC.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||AC.some(n=>(r.willChange||"").includes(n))||RC.some(n=>(r.contain||"").includes(n))}function OC(e){let t=ni(e);for(;Fr(t)&&!Qs(t);){if(tp(t))return t;if(Xc(t))return null;t=ni(t)}return null}function rp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const IC=new Set(["html","body","#document"]);function Qs(e){return IC.has(io(e))}function br(e){return zt(e).getComputedStyle(e)}function eu(e){return xr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ni(e){if(io(e)==="html")return e;const t=e.assignedSlot||e.parentNode||gg(e)&&e.host||Ur(e);return gg(t)?t.host:t}function Xw(e){const t=ni(e);return Qs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fr(t)&&Na(t)?t:Xw(t)}function da(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=Xw(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=zt(i);if(s){const a=jf(o);
vendor: 4,828 bytes, line 231
231return t.concat(o,o.visualViewport||[],Na(i)?i:[],a&&r?da(a):[])}return t.concat(i,da(i,[],r))}function jf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ex(e){const t=br(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=Fr(e),s=i?e.offsetWidth:r,o=i?e.offsetHeight:n,a=pc(r)!==s||pc(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function np(e){return xr(e)?e:e.contextElement}function Rs(e){const t=np(e);if(!Fr(t))return Mr(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:s}=ex(t);let o=(s?pc(r.width):r.width)/n,a=(s?pc(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const $C=Mr(0);function tx(e){const t=zt(e);return!rp()||!t.visualViewport?$C:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function DC(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==zt(e)?!1:t}function Di(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),s=np(e);let o=Mr(1);t&&(n?xr(n)&&(o=Rs(n)):o=Rs(e));const a=DC(s,r,n)?tx(s):Mr(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,d=i.width/o.x,f=i.height/o.y;if(s){const h=zt(s),p=n&&xr(n)?zt(n):n;let b=h,g=jf(b);for(;g&&n&&p!==b;){const x=Rs(g),w=g.getBoundingClientRect(),m=br(g),v=w.left+(g.clientLeft+parseFloat(m.paddingLeft))*x.x,_=w.top+(g.clientTop+parseFloat(m.paddingTop))*x.y;l*=x.x,c*=x.y,d*=x.x,f*=x.y,l+=v,c+=_,b=zt(g),g=jf(b)}}return gc({width:d,height:f,x:l,y:c})}function ip(e,t){const r=eu(e).scrollLeft;return t?t.left+r:Di(Ur(e)).left+r}function rx(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-(r?0:ip(e,n)),s=n.top+t.scrollTop;return{x:i,y:s}}function zC(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const s=i==="fixed",o=Ur(n),a=t?Xc(t.floating):!1;if(n===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=Mr(1);const d=Mr(0),f=Fr(n);if((f||!f&&!s)&&((io(n)!=="body"||Na(o))&&(l=eu(n)),Fr(n))){const p=Di(n);c=Rs(n),d.x=p.x+n.clientLeft,d.y=p.y+n.clientTop}const h=o&&!f&&!s?rx(o,l,!0):Mr(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:r.y*c.y-l.scrollTop*c.y+d.y+h.y}}function LC(e){return Array.from(e.getClientRects())}function MC(e){const t=Ur(e),r=eu(e),n=e.ownerDocument.body,i=It(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=It(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+ip(e);const a=-r.scrollTop;return br(n).direction==="rtl"&&(o+=It(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:a}}function FC(e,t){const r=zt(e),n=Ur(e),i=r.visualViewport;let s=n.clientWidth,o=n.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=rp();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}const UC=new Set(["absolute","fixed"]);function VC(e,t){const r=Di(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,s=Fr(e)?Rs(e):Mr(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,c=n*s.y;return{width:o,height:a,x:l,y:c}}function vg(e,t,r){let n;if(t==="viewport")n=FC(e,r);else if(t==="document")n=MC(Ur(e));else if(xr(t))n=VC(t,r);else{const i=tx(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return gc(n)}function nx(e,t){const r=ni(e);return r===t||!xr(r)||Qs(r)?!1:br(r).position==="fixed"||nx(r,t)}function BC(e,t){const r=t.get(e);if(r)return r;let n=da(e,[],!1).filter(a=>xr(a)&&io(a)!=="body"),i=null;const s=br(e).position==="fixed";let o=s?ni(e):e;for(;xr(o)&&!Qs(o);){const a=br(o),l=tp(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&UC.has(i.position)||Na(o)&&!l&&nx(e,o))?n=n.filter(d=>d!==o):i=a,o=ni(o)}return t.set(e,n),n}function WC(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?Xc(t)?[]:BC(t,this._c):[].concat(r),n],a=o[0],l=o.reduce((c,d)=>{const f=vg(t,d,i);return c.top=It(f.top,c.top),c.right=ri(f.right,c.right),c.bottom=ri(f.bottom,c.bottom),c.left=It(f.left,c.left),c},vg(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function HC(e){const{width:t,height:r}=ex(e);return{width:t,height:r}}function ZC(e,t,r){const n=Fr(t),i=Ur(t),s=r==="fixed",o=Di(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Mr(0);function c(){l.x=ip(i)}if(n||!n&&!s)if((io(t)!=="body"||Na(i))&&(a=eu(t)),n){const p=Di(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&c();s&&!n&&i&&c();const d=i&&!n&&!s?rx(i,a):Mr(0),f=o.left+a.scrollLeft-l.x-d.x,h=o.top+a.scrollTop-l.y-d.y;return{x:f,y:h,width:o.width,height:o.height}}function td(e){return br(e).position==="static"}function yg(e,t){if(!Fr(e)||br(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ur(e)===r&&(r=r.ownerDocument.body),r}function ix(e,t){const r=zt(e);if(Xc(e))return r;if(!Fr(e)){let i=ni(e);for(;i&&!Qs(i);
vendor: 9,448 bytes, line 231
231){if(xr(i)&&!td(i))return i;i=ni(i)}return r}let n=yg(e,t);for(;n&&TC(n)&&td(n);)n=yg(n,t);return n&&Qs(n)&&td(n)&&!tp(n)?r:n||OC(e)||r}const KC=async function(e){const t=this.getOffsetParent||ix,r=this.getDimensions,n=await r(e.floating);return{reference:ZC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function qC(e){return br(e).direction==="rtl"}const GC={convertOffsetParentRelativeRectToViewportRelativeRect:zC,getDocumentElement:Ur,getClippingRect:WC,getOffsetParent:ix,getElementRects:KC,getClientRects:LC,getDimensions:HC,getScale:Rs,isElement:xr,isRTL:qC};function sx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function QC(e,t){let r=null,n;const i=Ur(e);function s(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:d,top:f,width:h,height:p}=c;if(a||t(),!h||!p)return;const b=ul(f),g=ul(i.clientWidth-(d+h)),x=ul(i.clientHeight-(f+p)),w=ul(d),v={rootMargin:-b+"px "+-g+"px "+-x+"px "+-w+"px",threshold:It(0,ri(1,l))||1};let _=!0;function k(E){const j=E[0].intersectionRatio;if(j!==l){if(!_)return o();j?o(!1,j):n=setTimeout(()=>{o(!1,1e-7)},1e3)}j===1&&!sx(c,e.getBoundingClientRect())&&o(),_=!1}try{r=new IntersectionObserver(k,{...v,root:i.ownerDocument})}catch{r=new IntersectionObserver(k,v)}r.observe(e)}return o(!0),s}function YC(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=np(e),d=i||s?[...c?da(c):[],...da(t)]:[];d.forEach(w=>{i&&w.addEventListener("scroll",r,{passive:!0}),s&&w.addEventListener("resize",r)});const f=c&&a?QC(c,r):null;let h=-1,p=null;o&&(p=new ResizeObserver(w=>{let[m]=w;m&&m.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(t)})),r()}),c&&!l&&p.observe(c),p.observe(t));let b,g=l?Di(e):null;l&&x();function x(){const w=Di(e);g&&!sx(g,w)&&r(),g=w,b=requestAnimationFrame(x)}return r(),()=>{var w;d.forEach(m=>{i&&m.removeEventListener("scroll",r),s&&m.removeEventListener("resize",r)}),f==null||f(),(w=p)==null||w.disconnect(),p=null,l&&cancelAnimationFrame(b)}}const JC=_C,XC=kC,eT=wC,tT=EC,rT=xC,wg=yC,nT=SC,iT=(e,t,r)=>{const n=new Map,i={platform:GC,...r},s={...i.platform,_c:n};return vC(e,t,{...i,platform:s})};var sT=typeof document<"u",oT=function(){},Ll=sT?y.useLayoutEffect:oT;function vc(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 r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!vc(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const s=i[n];if(!(s==="_owner"&&e.$$typeof)&&!vc(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ox(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xg(e,t){const r=ox(e);return Math.round(t*r)/r}function rd(e){const t=y.useRef(e);return Ll(()=>{t.current=e}),t}function aT(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,f]=y.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=y.useState(n);vc(h,n)||p(n);const[b,g]=y.useState(null),[x,w]=y.useState(null),m=y.useCallback(P=>{P!==E.current&&(E.current=P,g(P))},[]),v=y.useCallback(P=>{P!==j.current&&(j.current=P,w(P))},[]),_=s||b,k=o||x,E=y.useRef(null),j=y.useRef(null),T=y.useRef(d),L=l!=null,M=rd(l),G=rd(i),$=rd(c),H=y.useCallback(()=>{if(!E.current||!j.current)return;const P={placement:t,strategy:r,middleware:h};G.current&&(P.platform=G.current),iT(E.current,j.current,P).then(O=>{const W={...O,isPositioned:$.current!==!1};D.current&&!vc(T.current,W)&&(T.current=W,ja.flushSync(()=>{f(W)}))})},[h,t,r,G,$]);Ll(()=>{c===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(P=>({...P,isPositioned:!1})))},[c]);const D=y.useRef(!1);Ll(()=>(D.current=!0,()=>{D.current=!1}),[]),Ll(()=>{if(_&&(E.current=_),k&&(j.current=k),_&&k){if(M.current)return M.current(_,k,H);H()}},[_,k,H,M,L]);const Q=y.useMemo(()=>({reference:E,floating:j,setReference:m,setFloating:v}),[m,v]),Z=y.useMemo(()=>({reference:_,floating:k}),[_,k]),J=y.useMemo(()=>{const P={position:r,left:0,top:0};if(!Z.floating)return P;const O=xg(Z.floating,d.x),W=xg(Z.floating,d.y);return a?{...P,transform:"translate("+O+"px, "+W+"px)",...ox(Z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:O,top:W}},[r,a,Z.floating,d.x,d.y]);return y.useMemo(()=>({...d,update:H,refs:Q,elements:Z,floatingStyles:J}),[d,H,Q,Z,J])}const lT=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?wg({element:n.current,padding:i}).fn(r):{}:n?wg({element:n,padding:i}).fn(r):{}}}},cT=(e,t)=>({...JC(e),options:[e,t]}),uT=(e,t)=>({...XC(e),options:[e,t]}),dT=(e,t)=>({...nT(e),options:[e,t]}),fT=(e,t)=>({...eT(e),options:[e,t]}),hT=(e,t)=>({...tT(e),options:[e,t]}),pT=(e,t)=>({...rT(e),options:[e,t]}),mT=(e,t)=>({...lT(e),options:[e,t]});var gT="Arrow",ax=y.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...s}=e;return u.jsx(xe.svg,{...s,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});ax.displayName=gT;var vT=ax;function yT(e){const[t,r]=y.useState(void 0);return mn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=e.offsetWidth,a=e.offsetHeight;r({width:o,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var lx="Popper",[cx,ux]=Vi(lx),[uz,dx]=cx(lx),fx="PopperAnchor",hx=y.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,s=dx(fx,r),o=y.useRef(null),a=dt(t,o);return y.useEffect(()=>{s.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:u.jsx(xe.div,{...i,ref:a})});hx.displayName=fx;var sp="PopperContent",[wT,xT]=cx(sp),px=y.forwardRef((e,t)=>{var ue,Br,Ut,Jt,kr,Wr;const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:s="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:b,...g}=e,x=dx(sp,r),[w,m]=y.useState(null),v=dt(t,Sr=>m(Sr)),[_,k]=y.useState(null),E=yT(_),j=(E==null?void 0:E.width)??0,T=(E==null?void 0:E.height)??0,L=n+(s!=="center"?"-"+s:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},G=Array.isArray(c)?c:[c],$=G.length>0,H={padding:M,boundary:G.filter(_T),altBoundary:$},{refs:D,floatingStyles:Q,placement:Z,isPositioned:J,middlewareData:P}=aT({strategy:"fixed",placement:L,whileElementsMounted:(...Sr)=>YC(...Sr,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[cT({mainAxis:i+T,alignmentAxis:o}),l&&uT({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?dT():void 0,...H}),l&&fT({...H}),hT({...H,apply:({elements:Sr,rects:ci,availableWidth:Gi,availableHeight:Qi})=>{const{width:co,height:Yi}=ci.reference,Hr=Sr.floating.style;Hr.setProperty("--radix-popper-available-width",`${Gi}px`),Hr.setProperty("--radix-popper-available-height",`${Qi}px`),Hr.setProperty("--radix-popper-anchor-width",`${co}px`),Hr.setProperty("--radix-popper-anchor-height",`${Yi}px`)}}),_&&mT({element:_,padding:a}),kT({arrowWidth:j,arrowHeight:T}),h&&pT({strategy:"referenceHidden",...H})]}),[O,W]=vx(Z),ee=wr(b);mn(()=>{J&&(ee==null||ee())},[J,ee]);const Y=(ue=P.arrow)==null?void 0:ue.x,se=(Br=P.arrow)==null?void 0:Br.y,oe=((Ut=P.arrow)==null?void 0:Ut.centerOffset)!==0,[Pe,Qe]=y.useState();return mn(()=>{w&&Qe(window.getComputedStyle(w).zIndex)},[w]),u.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:J?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Pe,"--radix-popper-transform-origin":[(Jt=P.transformOrigin)==null?void 0:Jt.x,(kr=P.transformOrigin)==null?void 0:kr.y].join(" "),...((Wr=P.hide)==null?void 0:Wr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(wT,{scope:r,placedSide:O,onArrowChange:k,arrowX:Y,arrowY:se,shouldHideArrow:oe,children:u.jsx(xe.div,{"data-side":O,"data-align":W,...g,ref:v,style:{...g.style,animation:J?void 0:"none"}})})})});px.displayName=sp;var mx="PopperArrow",bT={top:"bottom",right:"left",bottom:"top",left:"right"},gx=y.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,s=xT(mx,n),o=bT[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0}
vendor: 5,130 bytes, line 231
231,children:u.jsx(vT,{...i,ref:r,style:{...i.style,display:"block"}})})});gx.displayName=mx;function _T(e){return e!==null}var kT=e=>({name:"transformOrigin",options:e,fn(t){var x,w,m;const{placement:r,rects:n,middlewareData:i}=t,o=((x=i.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,d]=vx(r),f={start:"0%",center:"50%",end:"100%"}[d],h=(((w=i.arrow)==null?void 0:w.x)??0)+a/2,p=(((m=i.arrow)==null?void 0:m.y)??0)+l/2;let b="",g="";return c==="bottom"?(b=o?f:`${h}px`,g=`${-l}px`):c==="top"?(b=o?f:`${h}px`,g=`${n.floating.height+l}px`):c==="right"?(b=`${-l}px`,g=o?f:`${p}px`):c==="left"&&(b=`${n.floating.width+l}px`,g=o?f:`${p}px`),{data:{x:b,y:g}}}});function vx(e){const[t,r="center"]=e.split("-");return[t,r]}var ST=hx,ET=px,jT=gx,[tu,dz]=Vi("Tooltip",[ux]),op=ux(),yx="TooltipProvider",CT=700,bg="tooltip.open",[TT,wx]=tu(yx),xx=e=>{const{__scopeTooltip:t,delayDuration:r=CT,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:s}=e,o=y.useRef(!0),a=y.useRef(!1),l=y.useRef(0);return y.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),u.jsx(TT,{scope:t,isOpenDelayedRef:o,delayDuration:r,onOpen:y.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:y.useCallback(c=>{a.current=c},[]),disableHoverableContent:i,children:s})};xx.displayName=yx;var bx="Tooltip",[fz,ru]=tu(bx),Cf="TooltipTrigger",NT=y.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=ru(Cf,r),s=wx(Cf,r),o=op(r),a=y.useRef(null),l=dt(t,a,i.onTriggerChange),c=y.useRef(!1),d=y.useRef(!1),f=y.useCallback(()=>c.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),u.jsx(ST,{asChild:!0,...o,children:u.jsx(xe.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...n,ref:l,onPointerMove:fe(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:fe(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:fe(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:fe(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:fe(e.onBlur,i.onClose),onClick:fe(e.onClick,i.onClose)})})});NT.displayName=Cf;var PT="TooltipPortal",[hz,AT]=tu(PT,{forceMount:void 0}),Ys="TooltipContent",_x=y.forwardRef((e,t)=>{const r=AT(Ys,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...s}=e,o=ru(Ys,e.__scopeTooltip);return u.jsx(Bi,{present:n||o.open,children:o.disableHoverableContent?u.jsx(kx,{side:i,...s,ref:t}):u.jsx(RT,{side:i,...s,ref:t})})}),RT=y.forwardRef((e,t)=>{const r=ru(Ys,e.__scopeTooltip),n=wx(Ys,e.__scopeTooltip),i=y.useRef(null),s=dt(t,i),[o,a]=y.useState(null),{trigger:l,onClose:c}=r,d=i.current,{onPointerInTransitChange:f}=n,h=y.useCallback(()=>{a(null),f(!1)},[f]),p=y.useCallback((b,g)=>{const x=b.currentTarget,w={x:b.clientX,y:b.clientY},m=zT(w,x.getBoundingClientRect()),v=LT(w,m),_=MT(g.getBoundingClientRect()),k=UT([...v,..._]);a(k),f(!0)},[f]);return y.useEffect(()=>()=>h(),[h]),y.useEffect(()=>{if(l&&d){const b=x=>p(x,d),g=x=>p(x,l);return l.addEventListener("pointerleave",b),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",g)}}},[l,d,p,h]),y.useEffect(()=>{if(o){const b=g=>{const x=g.target,w={x:g.clientX,y:g.clientY},m=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),v=!FT(w,o);m?h():v&&(h(),c())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,d,o,c,h]),u.jsx(kx,{...e,ref:s})}),[OT,IT]=tu(bx,{isInside:!1}),$T=DS("TooltipContent"),kx=y.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=e,l=ru(Ys,r),c=op(r),{onClose:d}=l;return y.useEffect(()=>(document.addEventListener(bg,d),()=>document.removeEventListener(bg,d)),[d]),y.useEffect(()=>{if(l.trigger){const f=h=>{const p=h.target;p!=null&&p.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),u.jsx(qc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:u.jsxs(ET,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx($T,{children:n}),u.jsx(OT,{scope:r,isInside:!0,children:u.jsx(sE,{id:l.contentId,role:"tooltip",children:i||n})})]})})});_x.displayName=Ys;var Sx="TooltipArrow",DT=y.forwardRef((e,t)=>
231{const{__scopeTooltip:r,...n}=e,i=op(r);return IT(Sx,r).isInside?null:u.jsx(jT,{...i,...n,ref:t})});DT.displayName=Sx;function zT(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,n,i,s)){case s:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function LT(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function MT(e){const{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}function FT(e,t){const{x:r,y:n}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const a=t[s],l=t[o],c=a.x,d=a.y,f=l.x,h=l.y;d>n!=h>n&&r<(f-c)*(n-d)/(h-d)+c&&(i=!i)}return i}function UT(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),VT(t)}function VT(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const i=e[n];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const i=e[n];for(;r.length>=2;){const s=r[r.length-1],o=r[r.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))r.pop();else break}r.push(i)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var BT=xx,Ex=_x;const WT=BT,HT=y.forwardRef(({className:e,sideOffset:t=4,...r},n)=>u.jsx(Ex,{ref:n,sideOffset:t,className:me("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),...r}));HT.displayName=Ex.displayName;var nu=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(){}},iu=typeof window>"u"||"Deno"in globalThis;function or(){}function ZT(e,t){return typeof e=="function"?e(t):e}function KT(e){return typeof e=="number"&&e>=0&&e!==1/0}function qT(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Tf(e,t){return typeof e=="function"?e(t):e}function GT(e,t){return typeof e=="function"?e(t):e}function _g(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(n){if(t.queryHash!==ap(o,t.options))return!1}else if(!ha(t.queryKey,o))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||s&&!s(t))}function kg(e,t){const{exact:r,status:n,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(fa(t.options.mutationKey)!==fa(s))return!1}else if(!ha(t.options.mutationKey,s))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function ap(e,t){return((t==null?void 0:t.queryKeyHashFn)||fa)(e)}function fa(e){return JSON.stringify(e,(t,r)=>Nf(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function ha(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>ha(e[r],t[r])):!1}function jx(e,t){if(e===t)return e;const r=Sg(e)&&Sg(t);if(r||Nf(e)&&Nf(t)){const n=r?e:Object.keys(e),i=n.length,s=r?t:Object.keys(t),o=s.length,a=r?[]:{},l=new Set(n);let c=0;for(let d=0;d<o;d++){const f=r?d:s[d];(!r&&l.has(f)||r)&&e[f]===void 0&&t[f]===void 0?(a[f]=void 0,c++):(a[f]=jx(e[f],t[f]),a[f]===e[f]&&e[f]!==void 0&&c++)}return i===o&&c===i?e:a}return t}function Sg(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Nf(e){if(!Eg(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Eg(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Eg(e){return Object.prototype.toString.call(e)==="[object Object]"}function QT(e){return new Promise(t=>{setTimeout(t,e)})}function YT(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?jx(e,t):t}function JT(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function XT(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var lp=Symbol();function Cx(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===lp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var _i,zn,$s,Lv,eN=(Lv=class extends nu{constructor(){super();pe(this,_i);pe(this,zn);pe(this,$s);re(this,$s,t=>{if(!iu&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){R(this,zn)||this.setEventListener(R(this,$s))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,zn))==null||t.call(this),re(this,zn,void 0))}setEventListener(t){var r;re(this,$s,t),(r=R(this,zn))==null||r.call(this),re(this,zn,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){R(this,_i)!==t&&(re(this,_i,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,924 bytes, line 231
231this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof R(this,_i)=="boolean"?R(this,_i):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},_i=new WeakMap,zn=new WeakMap,$s=new WeakMap,Lv),Tx=new eN,Ds,Ln,zs,Mv,tN=(Mv=class extends nu{constructor(){super();pe(this,Ds,!0);pe(this,Ln);pe(this,zs);re(this,zs,t=>{if(!iu&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){R(this,Ln)||this.setEventListener(R(this,zs))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Ln))==null||t.call(this),re(this,Ln,void 0))}setEventListener(t){var r;re(this,zs,t),(r=R(this,Ln))==null||r.call(this),re(this,Ln,t(this.setOnline.bind(this)))}setOnline(t){R(this,Ds)!==t&&(re(this,Ds,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return R(this,Ds)}},Ds=new WeakMap,Ln=new WeakMap,zs=new WeakMap,Mv),yc=new tN;function rN(){let e,t;const r=new Promise((i,s)=>{e=i,t=s});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}function nN(e){return Math.min(1e3*2**e,3e4)}function Nx(e){return(e??"online")==="online"?yc.isOnline():!0}var Px=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function nd(e){return e instanceof Px}function Ax(e){let t=!1,r=0,n=!1,i;const s=rN(),o=g=>{var x;n||(h(new Px(g)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>Tx.isFocused()&&(e.networkMode==="always"||yc.isOnline())&&e.canRun(),d=()=>Nx(e.networkMode)&&e.canRun(),f=g=>{var x;n||(n=!0,(x=e.onSuccess)==null||x.call(e,g),i==null||i(),s.resolve(g))},h=g=>{var x;n||(n=!0,(x=e.onError)==null||x.call(e,g),i==null||i(),s.reject(g))},p=()=>new Promise(g=>{var x;i=w=>{(n||c())&&g(w)},(x=e.onPause)==null||x.call(e)}).then(()=>{var g;i=void 0,n||(g=e.onContinue)==null||g.call(e)}),b=()=>{if(n)return;let g;const x=r===0?e.initialPromise:void 0;try{g=x??e.fn()}catch(w){g=Promise.reject(w)}Promise.resolve(g).then(f).catch(w=>{var E;if(n)return;const m=e.retry??(iu?0:3),v=e.retryDelay??nN,_=typeof v=="function"?v(r,w):v,k=m===!0||typeof m=="number"&&r<m||typeof m=="function"&&m(r,w);if(t||!k){h(w);return}r++,(E=e.onFail)==null||E.call(e,r,w),QT(_).then(()=>c()?void 0:p()).then(()=>{t?h(w):b()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?b():p().then(b),s)}}var iN=e=>setTimeout(e,0);function sN(){let e=[],t=0,r=a=>{a()},n=a=>{a()},i=iN;const s=a=>{t?e.push(a):i(()=>{r(a)})},o=()=>{const a=e;e=[],a.length&&i(()=>{n(()=>{a.forEach(l=>{r(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{i=a}}}var gt=sN(),ki,Fv,Rx=(Fv=class{constructor(){pe(this,ki)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),KT(this.gcTime)&&re(this,ki,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(iu?1/0:5*60*1e3))}clearGcTimeout(){R(this,ki)&&(clearTimeout(R(this,ki)),re(this,ki,void 0))}},ki=new WeakMap,Fv),Ls,Si,Bt,Ei,lt,wa,ji,ar,Qr,Uv,oN=(Uv=class extends Rx{constructor(t){super();pe(this,ar);pe(this,Ls);pe(this,Si);pe(this,Bt);pe(this,Ei);pe(this,lt);pe(this,wa);pe(this,ji);re(this,ji,!1),re(this,wa,t.defaultOptions),this.setOptions(t.options),this.observers=[],re(this,Ei,t.client),re(this,Bt,R(this,Ei).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,re(this,Ls,lN(this.options)),this.state=t.state??R(this,Ls),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=R(this,lt))==null?void 0:t.promise}setOptions(t){this.options={...R(this,wa),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,Bt).remove(this)}setData(t,r){const n=YT(this.state.data,t,this.options);return st(this,ar,Qr).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){st(this,ar,Qr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=R(this,lt))==null?void 0:n.promise;return(i=R(this,lt))==null||i.cancel(t),r?r.then(or).catch(or):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,Ls))}isActive(){return this.observers.some(t=>GT(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===lp||this.state.dataUpdateCount+this.state.errorUpdate
231Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Tf(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:!qT(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=R(this,lt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=R(this,lt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),R(this,Bt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(R(this,lt)&&(R(this,ji)?R(this,lt).cancel({revert:!0}):R(this,lt).cancelRetry()),this.scheduleGc()),R(this,Bt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||st(this,ar,Qr).call(this,{type:"invalidate"})}fetch(t,r){var c,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(R(this,lt))return R(this,lt).continueRetry(),R(this,lt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const n=new AbortController,i=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(re(this,ji,!0),n.signal)})},s=()=>{const h=Cx(this.options,r),b=(()=>{const g={client:R(this,Ei),queryKey:this.queryKey,meta:this.meta};return i(g),g})();return re(this,ji,!1),this.options.persister?this.options.persister(h,b,this):h(b)},a=(()=>{const h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:R(this,Ei),state:this.state,fetchFn:s};return i(h),h})();(c=this.options.behavior)==null||c.onFetch(a,this),re(this,Si,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&st(this,ar,Qr).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const l=h=>{var p,b,g,x;nd(h)&&h.silent||st(this,ar,Qr).call(this,{type:"error",error:h}),nd(h)||((b=(p=R(this,Bt).config).onError)==null||b.call(p,h,this),(x=(g=R(this,Bt).config).onSettled)==null||x.call(g,this.state.data,h,this)),this.scheduleGc()};return re(this,lt,Ax({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:h=>{var p,b,g,x;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(w){l(w);return}(b=(p=R(this,Bt).config).onSuccess)==null||b.call(p,h,this),(x=(g=R(this,Bt).config).onSettled)==null||x.call(g,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,p)=>{st(this,ar,Qr).call(this,{type:"failed",failureCount:h,error:p})},onPause:()=>{st(this,ar,Qr).call(this,{type:"pause"})},onContinue:()=>{st(this,ar,Qr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),R(this,lt).start()}},Ls=new WeakMap,Si=new WeakMap,Bt=new WeakMap,Ei=new WeakMap,lt=new WeakMap,wa=new WeakMap,ji=new WeakMap,ar=new WeakSet,Qr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...aN(n.data,this.options),fetchMeta:t.meta??null};case"success":return re(this,Si,void 0),{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return nd(i)&&i.revert&&R(this,Si)?{...R(this,Si),fetchStatus:"idle"}
vendor: 4,600 bytes, line 231
231:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),gt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),R(this,Bt).notify({query:this,type:"updated",action:t})})},Uv);function aN(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Nx(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function lN(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Pr,Vv,cN=(Vv=class extends nu{constructor(t={}){super();pe(this,Pr);this.config=t,re(this,Pr,new Map)}build(t,r,n){const i=r.queryKey,s=r.queryHash??ap(i,r);let o=this.get(s);return o||(o=new oN({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){R(this,Pr).has(t.queryHash)||(R(this,Pr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=R(this,Pr).get(t.queryHash);r&&(t.destroy(),r===t&&R(this,Pr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){gt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return R(this,Pr).get(t)}getAll(){return[...R(this,Pr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>_g(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>_g(t,n)):r}notify(t){gt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){gt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){gt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Pr=new WeakMap,Vv),Ar,ht,Ci,Rr,Tn,Bv,uN=(Bv=class extends Rx{constructor(t){super();pe(this,Rr);pe(this,Ar);pe(this,ht);pe(this,Ci);this.mutationId=t.mutationId,re(this,ht,t.mutationCache),re(this,Ar,[]),this.state=t.state||dN(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){R(this,Ar).includes(t)||(R(this,Ar).push(t),this.clearGcTimeout(),R(this,ht).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){re(this,Ar,R(this,Ar).filter(r=>r!==t)),this.scheduleGc(),R(this,ht).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){R(this,Ar).length||(this.state.status==="pending"?this.scheduleGc():R(this,ht).remove(this))}continue(){var t;return((t=R(this,Ci))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,a,l,c,d,f,h,p,b,g,x,w,m,v,_,k,E,j,T;const r=()=>{st(this,Rr,Tn).call(this,{type:"continue"})};re(this,Ci,Ax({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,M)=>{st(this,Rr,Tn).call(this,{type:"failed",failureCount:L,error:M})},onPause:()=>{st(this,Rr,Tn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,ht).canRun(this)}));const n=this.state.status==="pending",i=!R(this,Ci).canStart();try{if(n)r();else{st(this,Rr,Tn).call(this,{type:"pending",variables:t,isPaused:i}),await((o=(s=R(this,ht).config).onMutate)==null?void 0:o.call(s,t,this));const M=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));M!==this.state.context&&st(this,Rr,Tn).call(this,{type:"pending",context:M,variables:t,isPaused:i})}const L=await R(this,Ci).start();return await((d=(c=R(this,ht).config).onSuccess)==null?void 0:d.call(c,L,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,L,t,this.state.context)),await((b=(p=R(this,ht).config).onSettled)==null?void 0:b.call(p,L,null,this.state.variables,this.state.context,this)),await((x=(g=this.options).onSettled)==null?void 0:x.call(g,L,null,t,this.state.context)),st(this,Rr,Tn).call(this,{type:"success",data:L}),L}catch(L){try{throw await((m=(w=R(this,ht).config).onError)==null?void 0:m.call(w,L,t,this.state.context,this)),await((_=(v=this.options).onError)==null?void 0:_.call(v,L,t,this.state.context)),await((E=(k=R(this,ht).config).onSettled)==null?void 0:E.
231call(k,void 0,L,this.state.variables,this.state.context,this)),await((T=(j=this.options).onSettled)==null?void 0:T.call(j,void 0,L,t,this.state.context)),L}finally{st(this,Rr,Tn).call(this,{type:"error",error:L})}}finally{R(this,ht).runNext(this)}}},Ar=new WeakMap,ht=new WeakMap,Ci=new WeakMap,Rr=new WeakSet,Tn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),gt.batch(()=>{R(this,Ar).forEach(n=>{n.onMutationUpdate(t)}),R(this,ht).notify({mutation:this,type:"updated",action:t})})},Bv);function dN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var on,lr,xa,Wv,fN=(Wv=class extends nu{constructor(t={}){super();pe(this,on);pe(this,lr);pe(this,xa);this.config=t,re(this,on,new Set),re(this,lr,new Map),re(this,xa,0)}build(t,r,n){const i=new uN({mutationCache:this,mutationId:++Va(this,xa)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){R(this,on).add(t);const r=dl(t);if(typeof r=="string"){const n=R(this,lr).get(r);n?n.push(t):R(this,lr).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(R(this,on).delete(t)){const r=dl(t);if(typeof r=="string"){const n=R(this,lr).get(r);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&R(this,lr).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=dl(t);if(typeof r=="string"){const n=R(this,lr).get(r),i=n==null?void 0:n.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var n;const r=dl(t);if(typeof r=="string"){const i=(n=R(this,lr).get(r))==null?void 0:n.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){gt.batch(()=>{R(this,on).forEach(t=>{this.notify({type:"removed",mutation:t})}),R(this,on).clear(),R(this,lr).clear()})}getAll(){return Array.from(R(this,on))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>kg(r,n))}findAll(t={}){return this.getAll().filter(r=>kg(t,r))}notify(t){gt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>
vendor: 6,897 bytes, lines 231-240
231r.state.isPaused);return gt.batch(()=>Promise.all(t.map(r=>r.continue().catch(or))))}},on=new WeakMap,lr=new WeakMap,xa=new WeakMap,Wv);function dl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function jg(e){return{onFetch:(t,r)=>{var d,f,h,p,b;const n=t.options,i=(h=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,s=((p=t.state.data)==null?void 0:p.pages)||[],o=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const x=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},w=Cx(t.options,t.fetchOptions),m=async(v,_,k)=>{if(g)return Promise.reject();if(_==null&&v.pages.length)return Promise.resolve(v);const j=(()=>{const G={client:t.client,queryKey:t.queryKey,pageParam:_,direction:k?"backward":"forward",meta:t.options.meta};return x(G),G})(),T=await w(j),{maxPages:L}=t.options,M=k?XT:JT;return{pages:M(v.pages,T,L),pageParams:M(v.pageParams,_,L)}};if(i&&s.length){const v=i==="backward",_=v?hN:Cg,k={pages:s,pageParams:o},E=_(n,k);a=await m(k,E,v)}else{const v=e??s.length;do{const _=l===0?o[0]??n.initialPageParam:Cg(n,a);if(l>0&&_==null)break;a=await m(a,_),l++}while(l<v)}return a};t.options.persister?t.fetchFn=()=>{var g,x;return(x=(g=t.options).persister)==null?void 0:x.call(g,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=c}}}function Cg(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function hN(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var De,Mn,Fn,Ms,Fs,Un,Us,Vs,Hv,pN=(Hv=class{constructor(e={}){pe(this,De);pe(this,Mn);pe(this,Fn);pe(this,Ms);pe(this,Fs);pe(this,Un);pe(this,Us);pe(this,Vs);re(this,De,e.queryCache||new cN),re(this,Mn,e.mutationCache||new fN),re(this,Fn,e.defaultOptions||{}),re(this,Ms,new Map),re(this,Fs,new Map),re(this,Un,0)}mount(){Va(this,Un)._++,R(this,Un)===1&&(re(this,Us,Tx.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,De).onFocus())})),re(this,Vs,yc.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,De).onOnline())})))}unmount(){var e,t;Va(this,Un)._--,R(this,Un)===0&&((e=R(this,Us))==null||e.call(this),re(this,Us,void 0),(t=R(this,Vs))==null||t.call(this),re(this,Vs,void 0))}isFetching(e){return R(this,De).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,Mn).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=R(this,De).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=R(this,De).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Tf(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return R(this,De).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=R(this,De).get(n.queryHash),s=i==null?void 0:i.state.data,o=ZT(t,s);if(o!==void 0)return R(this,De).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return gt.batch(()=>R(this,De).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=R(this,De).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=R(this,De);gt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=R(this,De);return gt.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=gt.batch(()=>R(this,De).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(or).catch(or)}invalidateQueries(e,t={}){return gt.batch(()=>(R(this,De).findAll(e).forEach(r=>{r.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 r={...t,cancelRefetch:t.cancelRefetch??!0},n=gt.batch(()=>R(this,De).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,r);return r.throwOnError||(s=s.catch(or)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(n).then(or)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=R(this,De).build(this,t);return r.isStaleByTime(Tf(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(or).catch(or)}fetchInfiniteQuery(e){return e.behavior=jg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(or).catch(or)}ensureInfiniteQueryData(e){return e.behavior=jg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return yc.isOnline()?R(this,Mn).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,De)}getMutationCache(){return R(this,Mn)}getDefaultOptions(){return R(this,Fn)}setDefaultOptions(e){re(this,Fn,e)}setQueryDefaults(e,t){R(this,Ms).set(fa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,Ms).values()],r={};return t.forEach(n=>{ha(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){R(this,Fs).set(fa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,Fs).values()],r={};return t.forEach(n=>{ha(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,Fn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ap(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===lp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,Fn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,De).clear(),R(this,Mn).clear()}},De=new WeakMap,Mn=new WeakMap,Fn=new WeakMap,Ms=new WeakMap,Fs=new WeakMap,Un=new WeakMap,Us=new WeakMap,Vs=new WeakMap,Hv),mN=y.createContext(void 0),gN=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(mN.Provider,{value:e,children:t}));/**
232 * @remix-run/router v1.23.0
233 *
234 * Copyright (c) Remix Software Inc.
235 *
236 * This source code is licensed under the MIT license found in the
237 * LICENSE.md file in the root directory of this source tree.
238 *
239 * @license MIT
240 */function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 5,028 bytes, line 240
240for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pa.apply(this,arguments)}var Wn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Wn||(Wn={}));const Tg="popstate";function vN(e){e===void 0&&(e={});function t(n,i){let{pathname:s,search:o,hash:a}=n.location;return Pf("",{pathname:s,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:wc(i)}return wN(t,r,null,e)}function Be(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ox(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function yN(){return Math.random().toString(36).substr(2,8)}function Ng(e,t){return{usr:e.state,key:e.key,idx:t}}function Pf(e,t,r,n){return r===void 0&&(r=null),pa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?so(t):t,{state:r,key:t&&t.key||n||yN()})}function wc(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function so(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function wN(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,o=i.history,a=Wn.Pop,l=null,c=d();c==null&&(c=0,o.replaceState(pa({},o.state,{idx:c}),""));function d(){return(o.state||{idx:null}).idx}function f(){a=Wn.Pop;let x=d(),w=x==null?null:x-c;c=x,l&&l({action:a,location:g.location,delta:w})}function h(x,w){a=Wn.Push;let m=Pf(g.location,x,w);c=d()+1;let v=Ng(m,c),_=g.createHref(m);try{o.pushState(v,"",_)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(_)}s&&l&&l({action:a,location:g.location,delta:1})}function p(x,w){a=Wn.Replace;let m=Pf(g.location,x,w);c=d();let v=Ng(m,c),_=g.createHref(m);o.replaceState(v,"",_),s&&l&&l({action:a,location:g.location,delta:0})}function b(x){let w=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof x=="string"?x:wc(x);return m=m.replace(/ $/,"%20"),Be(w,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,w)}let g={get action(){return a},get location(){return e(i,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Tg,f),l=x,()=>{i.removeEventListener(Tg,f),l=null}},createHref(x){return t(i,x)},createURL:b,encodeLocation(x){let w=b(x);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:h,replace:p,go(x){return o.go(x)}};return g}var Pg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Pg||(Pg={}));function xN(e,t,r){return r===void 0&&(r="/"),bN(e,t,r,!1)}function bN(e,t,r,n){let i=typeof t=="string"?so(t):t,s=cp(i.pathname||"/",r);if(s==null)return null;let o=Ix(e);_N(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=ON(s);a=AN(o[l],c,n)}return a}function Ix(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(s,o,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(Be(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=Xn([n,l.relativePath]),d=r.concat(l);s.children&&s.children.length>0&&(Be(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Ix(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:NN(c,s.index),routesMeta:d})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of $x(s.path))i(s,o,l)}),t}function $x(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return i?[s,""]:[s];let o=$x(n.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function _N(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:PN(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const kN=/^:[\w-]+$/,SN=3,EN=2,jN=1,CN=10,TN=-2,Ag=e=>e==="*";function NN(e,t){let r=e.split("/"),n=r.length;return r.some(Ag)&&(n+=TN),t&&(n+=EN),r.filter(i=>!Ag(i)).reduce((i,s)=>i+(kN.test(s)?SN:s===""?jN:CN),n)}function PN(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function AN(e,t,r){let{routesMeta:n}=e,i={},s="/",o=[];for(let a=0;a<n.length;++a){let l=n[a],c=a===n.length-1,d=s==="/"?t:t.slice(s.length)||"/",f=Rg({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),h=l.route;if(!f&&c&&r&&!n[n.length-1].route.index&&(f=Rg({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!f)return null;
vendor: 13,850 bytes, lines 240-258
240Object.assign(i,f.params),o.push({params:i,pathname:Xn([s,f.pathname]),pathnameBase:zN(Xn([s,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(s=Xn([s,f.pathnameBase]))}return o}function Rg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=RN(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:n.reduce((c,d,f)=>{let{paramName:h,isOptional:p}=d;if(h==="*"){let g=a[f]||"";o=s.slice(0,s.length-g.length).replace(/(.)\/+$/,"$1")}const b=a[f];return p&&!b?c[h]=void 0:c[h]=(b||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:o,pattern:e}}function RN(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Ox(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 n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(n.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function ON(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ox(!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 cp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function IN(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?so(e):e;return{pathname:r?r.startsWith("/")?r:$N(r,t):t,search:LN(n),hash:MN(i)}}function $N(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function id(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function DN(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Dx(e,t){let r=DN(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function zx(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=so(e):(i=pa({},e),Be(!i.pathname||!i.pathname.includes("?"),id("?","pathname","search",i)),Be(!i.pathname||!i.pathname.includes("#"),id("#","pathname","hash",i)),Be(!i.search||!i.search.includes("#"),id("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=r;else{let f=t.length-1;if(!n&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;i.pathname=h.join("/")}a=f>=0?t[f]:"/"}let l=IN(i,a),c=o&&o!=="/"&&o.endsWith("/"),d=(s||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const Xn=e=>e.join("/").replace(/\/\/+/g,"/"),zN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),LN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,MN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function FN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Lx=["post","put","patch","delete"];new Set(Lx);const UN=["get",...Lx];new Set(UN);/**
241 * React Router v6.30.1
242 *
243 * Copyright (c) Remix Software Inc.
244 *
245 * This source code is licensed under the MIT license found in the
246 * LICENSE.md file in the root directory of this source tree.
247 *
248 * @license MIT
249 */function ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ma.apply(this,arguments)}const up=y.createContext(null),VN=y.createContext(null),Wi=y.createContext(null),su=y.createContext(null),Hi=y.createContext({outlet:null,matches:[],isDataRoute:!1}),Mx=y.createContext(null);function BN(e,t){let{relative:r}=t===void 0?{}:t;Pa()||Be(!1);let{basename:n,navigator:i}=y.useContext(Wi),{hash:s,pathname:o,search:a}=Ux(e,{relative:r}),l=o;return n!=="/"&&(l=o==="/"?n:Xn([n,o])),i.createHref({pathname:l,search:a,hash:s})}function Pa(){return y.useContext(su)!=null}function oo(){return Pa()||Be(!1),y.useContext(su).location}function Fx(e){y.useContext(Wi).static||y.useLayoutEffect(e)}function ou(){let{isDataRoute:e}=y.useContext(Hi);return e?rP():WN()}function WN(){Pa()||Be(!1);let e=y.useContext(up),{basename:t,future:r,navigator:n}=y.useContext(Wi),{matches:i}=y.useContext(Hi),{pathname:s}=oo(),o=JSON.stringify(Dx(i,r.v7_relativeSplatPath)),a=y.useRef(!1);return Fx(()=>{a.current=!0}),y.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){n.go(c);return}let f=zx(c,JSON.parse(o),s,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Xn([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,o,s,e])}function Ux(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=y.useContext(Wi),{matches:i}=y.useContext(Hi),{pathname:s}=oo(),o=JSON.stringify(Dx(i,n.v7_relativeSplatPath));return y.useMemo(()=>zx(e,JSON.parse(o),s,r==="path"),[e,o,s,r])}function HN(e,t){return ZN(e,t)}function ZN(e,t,r,n){Pa()||Be(!1);let{navigator:i}=y.useContext(Wi),{matches:s}=y.useContext(Hi),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=oo(),d;if(t){var f;let x=typeof t=="string"?so(t):t;l==="/"||(f=x.pathname)!=null&&f.startsWith(l)||Be(!1),d=x}else d=c;let h=d.pathname||"/",p=h;if(l!=="/"){let x=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let b=xN(e,{pathname:p}),g=YN(b&&b.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Xn([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Xn([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,r,n);return t&&g?y.createElement(su.Provider,{value:{location:ma({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Wn.Pop}},g):g}function KN(){let e=tP(),t=FN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),r?y.createElement("pre",{style:i},r):null,null)}const qN=y.createElement(KN,null);class GN extends y.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?y.createElement(Hi.Provider,{value:this.props.routeContext},y.createElement(Mx.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function QN(e){let{routeContext:t,match:r,children:n}=e,i=y.useContext(up);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),y.createElement(Hi.Provider,{value:t},n)}function YN(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var s;if(!r)return null;if(r.errors)e=r.matches;else if((s=n)!=null&&s.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,a=(i=r)==null?void 0:i.errors;if(a!=null){let d=o.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||Be(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<o.length;d++){let f=o[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:h,errors:p}=r,b=f.route.loader&&h[f.route.id]===void 0&&(!p||p[f.route.id]===void 0);if(f.route.lazy||b){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,f,h)=>{let p,b=!1,g=null,x=null;r&&(p=a&&f.route.id?a[f.route.id]:void 0,g=f.route.errorElement||qN,l&&(c<0&&h===0?(b=!0,x=null):c===h&&(b=!0,x=f.route.hydrateFallbackElement||null)));let w=t.concat(o.slice(0,h+1)),m=()=>{let v;return p?v=g:b?v=x:f.route.Component?v=y.createElement(f.route.Component,null):f.route.element?v=f.route.element:v=d,y.createElement(QN,{match:f,routeContext:{outlet:d,matches:w,isDataRoute:r!=null},children:v})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?y.createElement(GN,{location:r.location,revalidation:r.revalidation,component:g,error:p,children:m(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):m()},null)}var Vx=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Vx||{}),xc=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}(xc||{});function JN(e){let t=y.useContext(up);return t||Be(!1),t}function XN(e){let t=y.useContext(VN);return t||Be(!1),t}function eP(e){let t=y.useContext(Hi);return t||Be(!1),t}function Bx(e){let t=eP(),r=t.matches[t.matches.length-1];return r.route.id||Be(!1),r.route.id}function tP(){var e;let t=y.useContext(Mx),r=XN(xc.UseRouteError),n=Bx(xc.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function rP(){let{router:e}=JN(Vx.UseNavigateStable),t=Bx(xc.UseNavigateStable),r=y.useRef(!1);return Fx(()=>{r.current=!0}),y.useCallback(function(i,s){s===void 0&&(s={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,ma({fromRouteId:t},s)))},[e,t])}function nP(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Nn(e){Be(!1)}function iP(e){let{basename:t="/",children:r=null,location:n,navigationType:i=Wn.Pop,navigator:s,static:o=!1,future:a}=e;Pa()&&Be(!1);let l=t.replace(/^\/*/,"/"),c=y.useMemo(()=>({basename:l,navigator:s,static:o,future:ma({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof n=="string"&&(n=so(n));let{pathname:d="/",search:f="",hash:h="",state:p=null,key:b="default"}=n,g=y.useMemo(()=>{let x=cp(d,l);return x==null?null:{location:{pathname:x,search:f,hash:h,state:p,key:b},navigationType:i}},[l,d,f,h,p,b,i]);return g==null?null:y.createElement(Wi.Provider,{value:c},y.createElement(su.Provider,{children:r,value:g}))}function sP(e){let{children:t,location:r}=e;return HN(Af(t),r)}new Promise(()=>{});function Af(e,t){t===void 0&&(t=[]);let r=[];return y.Children.forEach(e,(n,i)=>{if(!y.isValidElement(n))return;let s=[...t,i];if(n.type===y.Fragment){r.push.apply(r,Af(n.props.children,s));return}n.type!==Nn&&Be(!1),!n.props.index||!n.props.children||Be(!1);let o={id:n.props.id||s.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=Af(n.props.children,s)),r.push(o)}),r}/**
250 * React Router DOM v6.30.1
251 *
252 * Copyright (c) Remix Software Inc.
253 *
254 * This source code is licensed under the MIT license found in the
255 * LICENSE.md file in the root directory of this source tree.
256 *
257 * @license MIT
258 */function Rf(){return Rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rf.apply(this,arguments)}function oP(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function aP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function lP(e,t){return e.button===0&&(!t||t==="_self")&&!aP(e)}const cP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],uP="6";try{window.__reactRouterVersion=uP}catch{}const dP="startTransition",Og=rh[dP];function fP(e){let{basename:t,children:r,future:n,window:i}=e,s=y.useRef();s.current==null&&(s.current=vN({window:i,v5Compat:!0}));let o=s.current,[a,l]=y.useState({action:o.action,location:o.location}),{v7_startTransition:c}=n||{},d=y.useCallback(f=>{c&&Og?Og(()=>l(f)):l(f)},[l,c]);return y.useLayoutEffect(()=>o.listen(d),[o,d]),y.useEffect(()=>nP(n),[n]),y.createElement(iP,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:o,future:n})}const hP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Vt=y.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:s,replace:o,state:a,target:l,to:c,preventScrollReset:d,viewTransition:f}
258=t,h=oP(t,cP),{basename:p}=y.useContext(Wi),b,g=!1;if(typeof c=="string"&&pP.test(c)&&(b=c,hP))try{let v=new URL(window.location.href),_=c.startsWith("//")?new URL(v.protocol+c):new URL(c),k=cp(_.pathname,p);_.origin===v.origin&&k!=null?c=k+_.search+_.hash:g=!0}catch{}let x=BN(c,{relative:i}),w=mP(c,{replace:o,state:a,target:l,preventScrollReset:d,relative:i,viewTransition:f});function m(v){n&&n(v),v.defaultPrevented||w(v)}return y.createElement("a",Rf({},h,{href:b||x,onClick:g||s?n:m,ref:r,target:l}))});var Ig;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ig||(Ig={}));var $g;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})($g||($g={}));function mP(e,t){let{target:r,replace:n,state:i,preventScrollReset:s,relative:o,viewTransition:a}=t===void 0?{}:t,l=ou(),c=oo(),d=Ux(e,{relative:o});return y.useCallback(f=>{if(lP(f,r)){f.preventDefault();let h=n!==void 0?n:wc(c)===wc(d);l(e,{replace:h,state:i,preventScrollReset:s,relative:o,viewTransition:a})}},[c,l,d,n,i,r,e,s,o,a])}const gP="modulepreload",vP=function(e){return"/"+e},Dg={},Aa=function(t,r,n){let i=Promise.resolve();if(r&&r.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"));i=Promise.allSettled(r.map(l=>{if(l=vP(l),l in Dg)return;Dg[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":gP,c||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})},yP=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>Aa(async()=>{const{default:n}=await Promise.resolve().then(()=>ao);return{default:n}},void 0).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)};class dp extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}}class wP extends dp{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class zg extends dp{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Lg extends dp{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Of;(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"})(Of||(Of={}));var xP=function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(d){try{c(n.next(d))}catch(f){o(f)}}function l(d){try{c(n.throw(d))}catch(f){o(f)}}function c(d){d.done?s(d.value):i(d.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};class bP{constructor(t,{headers:r={},customFetch:n,region:i=Of.Any}={}){this.url=t,this.headers=r,this.region=i,this.fetch=yP(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,r={}){var n;return xP(this,void 0,void 0,function*(){try{const{headers:i,method:s,body:o}=r;let a={},{region:l}=r;l||(l=this.region);const c=new URL(`${this.url}/${t}`);l&&l!=="any"&&(a["x-region"]=l,c.searchParams.set("forceFunctionRegion",l));let d;o&&(i&&!Object.prototype.hasOwnProperty.call(i,"Content-Type")||!i)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",d=o):typeof o=="str
258ing"?(a["Content-Type"]="text/plain",d=o):typeof FormData<"u"&&o instanceof FormData?d=o:(a["Content-Type"]="application/json",d=JSON.stringify(o)));const f=yield this.fetch(c.toString(),{method:s||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),i),body:d}).catch(g=>{throw new wP(g)}),h=f.headers.get("x-relay-error");if(h&&h==="true")throw new zg(f);if(!f.ok)throw new Lg(f);let p=((n=f.headers.get("Content-Type"))!==null&&n!==void 0?n:"text/plain").split(";")[0].trim(),b;return p==="application/json"?b=yield f.json():p==="application/octet-stream"?b=yield f.blob():p==="text/event-stream"?b=f:p==="multipart/form-data"?b=yield f.formData():b=yield f.text(),{data:b,error:null,response:f}}catch(i){return{data:null,error:i,response:i instanceof Lg||i instanceof zg?i.context:void 0}}})}}var Ct={},fp={},au={},Ra={},lu={},cu={},_P=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")},Js=_P();const kP=Js.fetch,Wx=Js.fetch.bind(Js),Hx=Js.Headers,SP=Js.Request,EP=Js.Response,ao=Object.freeze(Object.defineProperty({__proto__:null,Headers:Hx,Request:SP,Response:EP,default:Wx,fetch:kP},Symbol.toStringTag,{value:"Module"})),jP=r_(ao);var uu={};Object.defineProperty(uu,"__esModule",{value:!0});let CP=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
258de=t.code}};uu.default=CP;var Zx=qt&&qt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cu,"__esModule",{value:!0});const TP=Zx(jP),NP=Zx(uu);let PP=class{constructor(t){var r,n;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=(r=t.shouldThrowOnError)!==null&&r!==void 0?r:!1,this.signal=t.signal,this.isMaybeSingle=(n=t.isMaybeSingle)!==null&&n!==void 0?n:!1,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=TP.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,r){return this.headers=new Headers(this.headers),this.headers.set(t,r),this}then(t,r){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 n=this.fetch;let i=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async s=>{var o,a,l,c;let d=null,f=null,h=null,p=s.status,b=s.statusText;if(s.ok){if(this.method!=="HEAD"){const m=await s.text();m===""||(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=m:f=JSON.parse(m))}const x=(a=this.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),w=(l=s.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");x&&w&&w.length>1&&(h=parseInt(w[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(f)&&(f.length>1?(d={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,p=406,b="Not Acceptable"):f.length===1?f=f[0]:f=null)}else{const x=await s.text();try{d=JSON.parse(x),Array.isArray(d)&&s.status===404&&(f=[],d=null,p=200,b="OK")}catch{s.status===404&&x===""?(p=204,b="No Content"):d={message:x}}if(d&&this.isMaybeSingle&&(!((c=d==null?void 0:d.details)===null||c===void 0)&&c.includes("0 rows"))&&(d=null,p=200,b="OK"),d&&this.shouldThrowOnError)throw new NP.default(d)}return{error:d,data:f,count:h,status:p,statusText:b}});return this.shouldThrowOnError||(i=i.catch(s=>{var o,a,l;return{error:{message:`${(o=s==null?void 0:s.name)!==null&&o!==void 0?o:"FetchError"}: ${s==null?void 0:s.message}`,details:`${(a=s==null?void 0:s.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=s==null?void 0:s.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),i.then(t,r)}returns(){return this}overrideTypes(){return this}};cu.default=PP;var AP=qt&&qt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(lu,"__esModule",{value:!0});const RP=AP(cu);let OP=class extends RP.default{select(t){let r=!1;const n=(t??"*").split("").map(i=>/\s/.test(i)&&!r?"":(i==='"'&&(r=!r),i)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:r=!0,nullsFirst:n,foreignTable:i,referencedTable:s=i}={}){const o=s?`${s}.order`:"order",a=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${a?`${a},`:""}${t}.${r?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:r,referencedTable:n=r}={}){const i=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(i,`${t}`),this}range(t,r,{foreignTable:n,referencedTable:i=n}={}){const s=typeof i>"u"?"offset":`${i}.offset`,o=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(s,`${t}`),this.url.searchParams.set(o,`${r-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}
258explain({analyze:t=!1,verbose:r=!1,settings:n=!1,buffers:i=!1,wal:s=!1,format:o="text"}={}){var a;const l=[t?"analyze":null,r?"verbose":null,n?"settings":null,i?"buffers":null,s?"wal":null].filter(Boolean).join("|"),c=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${c}"; 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}};lu.default=OP;var IP=qt&&qt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ra,"__esModule",{value:!0});const $P=IP(lu);let DP=class extends $P.default{eq(t,r){return this.url.searchParams.append(t,`eq.${r}`),this}neq(t,r){return this.url.searchParams.append(t,`neq.${r}`),this}gt(t,r){return this.url.searchParams.append(t,`gt.${r}`),this}gte(t,r){return this.url.searchParams.append(t,`gte.${r}`),this}lt(t,r){return this.url.searchParams.append(t,`lt.${r}`),this}lte(t,r){return this.url.searchParams.append(t,`lte.${r}`),this}like(t,r){return this.url.searchParams.append(t,`like.${r}`),this}likeAllOf(t,r){return this.url.searchParams.append(t,`like(all).{${r.join(",")}}`),this}likeAnyOf(t,r){return this.url.searchParams.append(t,`like(any).{${r.join(",")}}`),this}ilike(t,r){return this.url.searchParams.append(t,`ilike.${r}`),this}ilikeAllOf(t,r){return this.url.searchParams.append(t,`ilike(all).{${r.join(",")}}`),this}ilikeAnyOf(t,r){return this.url.searchParams.append(t,`ilike(any).{${r.join(",")}}`),this}is(t,r){return this.url.searchParams.append(t,`is.${r}`),this}in(t,r){const n=Array.from(new Set(r)).map(i=>typeof i=="string"&&new RegExp("[,()]").test(i)?`"${i}"`:`${i}`).join(",");return this.url.searchParams.append(t,`in.(${n})`),this}contains(t,r){return typeof r=="string"?this.url.searchParams.append(t,`cs.${r}`):Array.isArray(r)?this.url.searchParams.append(t,`cs.{${r.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(r)}`),this}containedBy(t,r){return typeof r=="string"?this.url.searchParams.append(t,`cd.${r}`):Array.isArray(r)?this.url.searchParams.append(t,`cd.{${r.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(r)}`),this}rangeGt(t,r){return this.url.searchParams.append(t,`sr.${r}`),this}rangeGte(t,r){return this.url.searchParams.append(t,`nxl.${r}`),this}rangeLt(t,r){return this.url.searchParams.append(t,`sl.${r}`),this}rangeLte(t,r){return this.url.searchParams.append(t,`nxr.${r}`),this}rangeAdjacent(t,r){return this.url.searchParams.append(t,`adj.${r}`),this}overlaps(t,r){return typeof r=="string"?this.url.searchParams.append(t,`ov.${r}`):this.url.searchParams.append(t,`ov.{${r.join(",")}}`),this}textSearch(t,r,{config:n,type:i}={}){let s="";i==="plain"?s="pl":i==="phrase"?s="ph":i==="websearch"&&(s="w");const o=n===void 0?"":`(${n})`;return this.url.searchParams.append(t,`${s}fts${o}.${r}`),this}match(t){return Object.entries(t).forEach(([r,n])=>{this.url.searchParams.append(r,`eq.${n}`)}),this}not(t,r,n){return this.url.searchParams.append(t,`not.${r}.${n}`),this}or(t,{foreignTable:r,referencedTable:n=r}={}){const i=n?`${n}.or`:"or";return this.url.searchParams.append(i,`(${t})`),this}filter(t,r,n){return this.url.searchParams.append(t,`${r}.${n}`),this}};Ra.default=DP;var zP=qt&&qt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(au,"__esModule",{value:!0});const bo=zP(Ra);let LP=class{constructor(t,{headers:r={},schema:n,fetch:i}){this.url=t,this.headers=new Headers(r),this.schema=n,this.fetch=i}select(t,{head:r=!1,count:n}={}){const i=r?"HEAD":"GET";let s=!1;const o=(t??"*").split("").map(a=>/\s/.test(a)&&!s?"":(a==='"'&&(s=!s),a)).join("");return this.url.searchParams.set("select",o),n&&this.headers.append("Prefer",`count=${n}`),new bo.default({method:i,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(t,{count:r,defaultToNull:n=!0}={}){var i;const s="POST";if(r&&this.headers.append("Prefer",`count=${r}`),n||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const o=t.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(o.length>
2580){const a=[...new Set(o)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new bo.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}upsert(t,{onConflict:r,ignoreDuplicates:n=!1,count:i,defaultToNull:s=!0}={}){var o;const a="POST";if(this.headers.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),r!==void 0&&this.url.searchParams.set("on_conflict",r),i&&this.headers.append("Prefer",`count=${i}`),s||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const l=t.reduce((c,d)=>c.concat(Object.keys(d)),[]);if(l.length>0){const c=[...new Set(l)].map(d=>`"${d}"`);this.url.searchParams.set("columns",c.join(","))}}return new bo.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:r}={}){var n;const i="PATCH";return r&&this.headers.append("Prefer",`count=${r}`),new bo.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}delete({count:t}={}){var r;const n="DELETE";return t&&this.headers.append("Prefer",`count=${t}`),new bo.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}};au.default=LP;var Kx=qt&&qt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fp,"__esModule",{value:!0});const MP=Kx(au),FP=Kx(Ra);let UP=class qx{constructor(t,{headers:r={},schema:n,fetch:i}={}){this.url=t,this.headers=new Headers(r),this.schemaName=n,this.fetch=i}from(t){const r=new URL(`${this.url}/${t}`);return new MP.default(r,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new qx(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,r={},{head:n=!1,get:i=!1,count:s}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let c;n||i?(a=n?"HEAD":"GET",Object.entries(r).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",c=r);const d=new Headers(this.headers);return s&&d.set("Prefer",`count=${s}`),new FP.default({method:a,url:l,headers:d,schema:this.schemaName,body:c,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};fp.default=UP;var lo=qt&&qt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ct,"__esModule",{value:!0});Ct.PostgrestError=Ct.PostgrestBuilder=Ct.PostgrestTransformBuilder=Ct.PostgrestFilterBuilder=Ct.PostgrestQueryBuilder=Ct.PostgrestClient=void 0;const Gx=lo(fp);Ct.PostgrestClient=Gx.default;const Qx=lo(au);Ct.PostgrestQueryBuilder=Qx.default;const Yx=lo(Ra);Ct.PostgrestFilterBuilder=Yx.default;const Jx=lo(lu);Ct.PostgrestTransformBuilder=Jx.default;const Xx=lo(cu);Ct.PostgrestBuilder=Xx.default;const eb=lo(uu);Ct.PostgrestError=eb.default;var VP=Ct.default={PostgrestClient:Gx.default,PostgrestQueryBuilder:Qx.default,PostgrestFilterBuilder:Yx.default,PostgrestTransformBuilder:Jx.default,PostgrestBuilder:Xx.default,PostgrestError:eb.default};const{PostgrestClient:BP,PostgrestQueryBuilder:wz,PostgrestFilterBuilder:xz,PostgrestTransformBuilder:bz,PostgrestBuilder:_z,PostgrestError:kz}=VP;class WP{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 r=process.versions;if(r&&r.node){const n=r.node,i=parseInt(n.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
259import ws from "ws"
260new 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 r=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(r+=`
261
262Suggested solution: ${t.workaround}`),new Error(r)}static createWebSocket(t,r){const n=this.getWebSocketConstructor();return new n(t,r)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const HP="2.15.5",ZP=`realtime-js/${HP}`,KP="1.0.0",If=1e4,qP=1e3,GP=100;var Uo;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Uo||(Uo={}));var We;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(We||(We={}));var ur;(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"})(ur||(ur={}));var $f;(function(e){e.websocket="websocket"})($f||($f={}));var vi;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(vi||(vi={}));class QP{constructor(){this.HEADER_LENGTH=1}decode(t,r){return t.constructor===ArrayBuffer?r(this._binaryDecode(t)):r(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const r=new DataView(t),n=new TextDecoder;return this._decodeBroadcast(t,r,n)}_decodeBroadcast(t,r,n){const i=r.getUint8(1),s=r.getUint8(2);let o=this.HEADER_LENGTH+2;const a=n.decode(t.slice(o,o+i));o=o+i;const l=n.decode(t.slice(o,o+s));o=o+s;const c=JSON.parse(n.decode(t.slice(o,t.byteLength)));return{ref:null,topic:a,event:l,payload:c}}}class tb{constructor(t,r){this.callback=t,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=r}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 be;(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"})(be||(be={}));const Mg=(e,t,r={})=>{var n;const i=(n=r.skipTypes)!==null&&n!==void 0?n:[];return Object.keys(t).reduce((s,o)=>(s[o]=YP(o,e,t,i),s),{})},YP=(e,t,r,n)=>{const i=t.find(a=>a.name===e),s=i==null?void 0:i.type,o=r[e];return s&&!n.includes(s)?rb(s,o):Df(o)},rb=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return t2(t,r)}switch(e){case be.bool:return JP(t);case be.float4:case be.float8:case be.int2:case be.int4:case be.int8:case be.numeric:case be.oid:return XP(t);case be.json:case be.jsonb:return e2(t);case be.timestamp:return r2(t);case be.abstime:case be.date:case be.daterange:case be.int4range:case be.int8range:case be.money:case be.reltime:case be.text:case be.time:case be.timestamptz:case be.timetz:case be.tsrange:case be.tstzrange:return Df(t);default:return Df(t)}},Df=e=>e,JP=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},XP=e=>{if(typeof e=="string"){const t=parseFloat(e);
vendor: 5,658 bytes, line 262
262if(!Number.isNaN(t))return t}return e},e2=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},t2=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let s;const o=e.slice(1,r);try{s=JSON.parse("["+o+"]")}catch{s=o?o.split(","):[]}return s.map(a=>rb(t,a))}return e},r2=e=>typeof e=="string"?e.replace(" ","T"):e,nb=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"};class sd{constructor(t,r,n={},i=If){this.channel=t,this.event=r,this.payload=n,this.timeout=i,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,r){var n;return this._hasReceived(t)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:t,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:r})}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:r}){this.recHooks.filter(n=>n.status===t).forEach(n=>n.callback(r))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Fg;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Fg||(Fg={}));class Vo{constructor(t,r){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},i=>{const{onJoin:s,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Vo.syncState(this.state,i,s,o),this.pendingDiffs.forEach(l=>{this.state=Vo.syncDiff(this.state,l,s,o)}),this.pendingDiffs=[],a()}),this.channel._on(n.diff,{},i=>{const{onJoin:s,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=Vo.syncDiff(this.state,i,s,o),a())}),this.onJoin((i,s,o)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:s,newPresences:o})}),this.onLeave((i,s,o)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:s,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,r,n,i){const s=this.cloneDeep(t),o=this.transformState(r),a={},l={};return this.map(s,(c,d)=>{o[c]||(l[c]=d)}),this.map(o,(c,d)=>{const f=s[c];if(f){const h=d.map(x=>x.presence_ref),p=f.map(x=>x.presence_ref),b=d.filter(x=>p.indexOf(x.presence_ref)<0),g=f.filter(x=>h.indexOf(x.presence_ref)<0);b.length>0&&(a[c]=b),g.length>0&&(l[c]=g)}else a[c]=d}),this.syncDiff(s,{joins:a,leaves:l},n,i)}static syncDiff(t,r,n,i){const{joins:s,leaves:o}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),i||(i=()=>{}),this.map(s,(a,l)=>{var c;const d=(c=t[a])!==null&&c!==void 0?c:[];if(t[a]=this.cloneDeep(l),d.length>0){const f=t[a].map(p=>p.presence_ref),h=d.filter(p=>f.indexOf(p.presence_ref)<0);t[a].unshift(...h)}n(a,d,l)}),this.map(o,(a,l)=>{let c=t[a];if(!c)return;const d=l.map(f=>f.presence_ref);c=c.filter(f=>d.indexOf(f.presence_ref)<0),t[a]=c,i(a,c,l),c.length===0&&delete t[a]}),t}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const i=t[n];return"metas"in i?r[n]=i.metas.map(s=>(s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s)):r[n]=i,r},{})}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 Ug;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Ug||(Ug={}));var Bo;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Bo||(Bo={}));var nn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(nn||(nn={}));class hp{constructor(t,r={config:{}},n){this.topic=t,this.params=r,this.socket=n,this.bindings={},this.state=We.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},r.config),this.timeout=this.socket.timeout,this.joinPush=new sd(this,ur.join,this.params,this.timeout),this.rejoinTimer=new tb(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=We.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>
262i.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=We.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=We.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=We.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=We.errored,this.rejoinTimer.scheduleTimeout())}),this._on(ur.reply,{},(i,s)=>{this._trigger(this._replyEventName(s),i)}),this.presence=new Vo(this),this.broadcastEndpointURL=nb(this.socket.endPoint),this.private=this.params.config.private||!1}subscribe(t,r=this.timeout){var n,i,s;if(this.socket.isConnected()||this.socket.connect(),this.state==We.closed){const{config:{broadcast:o,presence:a,private:l}}=this.params,c=(i=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(p=>p.filter))!==null&&i!==void 0?i:[],d=!!this.bindings[Bo.PRESENCE]&&this.bindings[Bo.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.enabled)===!0,f={},h={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:d}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(f.access_token=this.socket.accessTokenValue),this._onError(p=>t==null?void 0:t(nn.CHANNEL_ERROR,p)),this._onClose(()=>t==null?void 0:t(nn.CLOSED)),this.updateJoinPayload(Object.assign({config:h},f)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:p})=>{var b;if(this.socket.setAuth(),p===void 0){t==null||t(nn.SUBSCRIBED);return}else{const g=this.bindings.postgres_changes,x=(b=g==null?void 0:g.length)!==null&&b!==void 0?b:0,w=[];for(let m=0;m<x;m++){const v=g[m],{filter:{event:_,schema:k,table:E,filter:j}}=v,T=p&&p[m];if(T&&T.event===_&&T.schema===k&&T.table===E&&T.filter===j)w.push(Object.assign(Object.assign({},v),{id:T.id}));else{this.unsubscribe(),this.state=We.errored,t==null||t(nn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=w,t&&t(nn.SUBSCRIBED);return}}).receive("error",p=>{this.state=We.errored,t==null||t(nn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(p).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(nn.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,n){return this.state===We.joined&&t===Bo.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,r,n)}async send(t,r={}){var n,i;if(!this._canPush()&&t.type==="broadcast"){const{event:s,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:s,payload:o,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((i=c.body)===null||i===void 0?void 0:i.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var o,a,l;const c=this._push(t.type,t,r.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)&&s("ok"),c.receive("ok",()=>s("ok")),c.receive("error",()=>s("error")),c.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=We.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(ur.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(i=>{n=new sd(this,ur.leave,{},t),n.receive("ok",()=>{r(),i("ok")}).receive("timeout",()=>{r(),i("timed out")}).receive("error",()=>{i("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n==null||n.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=We.closed,this.bindings={}}async _fetchWithTimeout(t,r,n){const i=new AbortController,s=setTimeout(()=>i.abort(),n),o=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:i.signal}));return clearTimeout(s),o}_push(t,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new sd(this,t,r,n);return this._canPush()?i.send():this._addToPushBuffer(i),i}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>GP){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(t,r,n){return r}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,r,n){var i,s;const o=t.toLocaleLowerCase(),{close:a,error:l,leave:c,join:d}=ur;if(n&&[a,l,c,d].indexOf(o)>=0&&n!==this._joinRef())return;let h=this._onMessage(o,r,n);if(r&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(i=this.bindings.postgres_changes)===null||i===void 0||i.filter(p=>{var b,g,x;return((b=p.filter)===null||b===void 0?void 0:b.event)==="*"||((x=(g=p.filter)===null||g===void 0?void 0:g.event)===null||x===void 0?void 0:x.toLocaleLowerCase())===o}).map(p=>p.callback(h,n)):(s=this.bindings[o])===null||s===void 0||s.filter(p=>{var b,g,x,w,m,v;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in p){const _=p.id,k=(b=p.filter)===null||b===void 0?void 0:b.event;return _&&((g=r.ids)===null||g===void 0?void 0:g.includes(_))&&(k==="*"||(k==null?void 0:k.toLocaleLowerCase())===((x=r.data)===null||x===void 0?void 0:x.type.toLocaleLowerCase()))}else{const _=(m=(w=p==null?void 0:p.filter)===null||w===void 0?void 0:w.event)===null||m===void 0?void 0:m.toLocaleLowerCase();return _==="*"||_===((v=r==null?void 0:r.event)===null||v===void 0?void 0:v.toLocaleLowerCase())}else return p.type.toLocaleLowerCase()===o}).map(p=>{if(typeof h=="object"&&"ids"in h){const b=h.data,{schema:g,table:x,commit_timestamp:w,type:m,errors:v}=b;h=Object.assign(Object.assign({},{schema:g,table:x,commit_timestamp:w,eventType:m,new:{},old:{},errors:v}),this._getPayloadRecords(b))}p.callback(h,n)})}_isClosed(){return this.state===We.closed}_isJoined(){return this.state===We.joined}_isJoining(){return this.state===We.joining}_isLeaving(){return this.state===We.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,r,n){const i=t.toLocaleLowerCase(),s={type:i,filter:r,callback:n};return this.bindings[i]?this.bindings[i].push(s):this.bindings[i]=[s],this}_off(t,r){const n=t.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(i=>{var s;return!(((s=i.type)===null||s===void 0?void 0:s.toLocaleLowerCase())===n&&hp.isEqual(i.filter,r))})),this}static isEqual(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const n in t)if(t[n]!==r[n])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(ur.close,{},t)}_onError(t){this._on(ur.error,{},r=>t(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=We.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=Mg(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=Mg(t.columns,t.old_record)),r}}const od=()=>{},fl={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},n2=[1e3,2e3,5e3,1e4],i2=1e4,s2=`
263  addEventListener("message", (e) => {
264    if (e.data.event === "start") {
265      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
266    }
267  });`;class o2{constructor(t,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=If,this.transport=null,this.heartbeatIntervalMs=fl.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=od,this.ref=0,this.reconnectTimer=null,this.logger=od,this.conn=null,this.sendBuffer=[],this.serializer
267=new QP,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=i=>{let s;return i?s=i:typeof fetch>"u"?s=(...o)=>Aa(async()=>{const{default:a}=await Promise.resolve().then(()=>ao);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.`)}):s=fetch,(...o)=>s(...o)},!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${t}/${$f.websocket}`,this.httpEndpoint=nb(t),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.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=WP.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const r=t.message;throw r.includes("Node.js")?new Error(`${r}
268
269To use Realtime in Node.js, you need to provide a WebSocket implementation:
270
271Option 1: Use Node.js 22+ which has native WebSocket support
272Option 2: Install and provide the "ws" package:
273
274  npm install ws
275
276  import ws from "ws"
277  const client = new RealtimeClient(url, {
278    ...options,
279    transport: ws
280  })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:KP}))}disconnect(t,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},t?this.conn.close(t,r??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const t=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,r,n){this.logger(t,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case Uo.connecting:return vi.Connecting;case Uo.open:return vi.Open;case Uo.closing:return vi.Closing;default:return vi.Closed}}isConnected(){return this.connectionState()===vi.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,r={config:{}}){const n=`realtime:${t}`,i=this.getChannels().find(s=>s.topic===n);if(i)return i;{const s=new hp(`realtime:${t}`,r,this);return this.channels.push(s),s}}push(t){const{topic:r,event:n,payload:i,ref:s}=t,o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${r} ${n} (${s})`,i),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(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(qP,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
280heduleTimeout()},fl.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}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 r=this.channels.find(n=>n.topic===t&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${t}"`),r.unsubscribe())}_remove(t){this.channels=this.channels.filter(r=>r.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply")try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error")}catch(c){this.log("error","error in heartbeat callback",c)}r.ref&&r.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:n,event:i,payload:s,ref:o}=r,a=o?`(${o})`:"",l=s.status||"";this.log("receive",`${l} ${n} ${i} ${a}`.trim(),s),this.channels.filter(c=>c._isMember(n)).forEach(c=>c._trigger(i,s,o)),this._triggerStateCallbacks("message",r)})}_clearTimer(t){var r;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.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=r=>{this.log("worker","worker error",r.message),this.workerRef.terminate()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(t){var r;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
280heduleTimeout(),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(ur.error))}_appendParams(t,r){if(Object.keys(r).length===0)return t;const n=t.match(/\?/)?"&":"?",i=new URLSearchParams(r);return`${t}${n}${i}`}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([s2],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(t,r=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(t=null){let r;t?r=t:this.accessToken?r=await this.accessToken():r=this.accessTokenValue,this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(n=>{const i={access_token:r,version:ZP};r&&n.updateJoinPayload(i),n.joinedOnce&&n._isJoined()&&n._push(ur.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this.setAuth().catch(r=>{this.log("error",`error setting auth in ${t}`,r)})}_triggerStateCallbacks(t,r){try{this.stateChangeCallbacks[t].forEach(n=>{try{n(r)}catch(i){this.log("error",`error in ${t} callback`,i)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new tb(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},fl.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var r,n,i,s,o,a,l,c,d;if(this.transport=(r=t==null?void 0:t.transport)!==null&&r!==void 0?r:null,this.timeout=(n=t==null?void 0:t.timeout)!==null&&n!==void 0?n:If,this.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:fl.HEARTBEAT_INTERVAL,this.worker=(s=t==null?void 0:t.worker)!==null&&s!==void 0?s:!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:od,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=>n2[f-1]||i2,this.encode=(c=t==null?void 0:t.encode)!==null&&c!==void 0?c:(f,h)=>h(JSON.stringify(f)),this.decode=(d=t==null?void 0:t.decode)!==null&&d!==void 0?d: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 pp extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Ze(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class a2 extends pp{constructor(t,r,n){super(t),this.name="StorageApiError",this.status=r,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class zf extends pp{constructor(t,r){super(t),this.name="StorageUnknownError",this.originalError=r}}var l2=function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(d){try{c(n.next(d))}catch(f){o(f)}}function l(d){try{c(n.throw(d))}catch(f){o(f)}}function c(d){d.done?s(d.value):i(d.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const ib=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>Aa(async()=>{const{default:n}=await Promise.resolve().then(()=>ao);return{default:n}},void 0).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)},c2=()=>l2(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield Aa(()=>Promise.resolve().then(()=>ao),void 0)).Response:Response}),Lf=e=>{if(Array.isArray(e))return e.map(r=>Lf(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const i=r.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[i]=Lf(n)}),t},u2=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);
280return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};var Zi=function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(d){try{c(n.next(d))}catch(f){o(f)}}function l(d){try{c(n.throw(d))}catch(f){o(f)}}function c(d){d.done?s(d.value):i(d.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const ad=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),d2=(e,t,r)=>Zi(void 0,void 0,void 0,function*(){const n=yield c2();e instanceof n&&!(r!=null&&r.noResolveJson)?e.json().then(i=>{const s=e.status||500,o=(i==null?void 0:i.statusCode)||s+"";t(new a2(ad(i),s,o))}).catch(i=>{t(new zf(ad(i),i))}):t(new zf(ad(e),e))}),f2=(e,t,r,n)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!n?i:(u2(n)?(i.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(n)):i.body=n,t!=null&&t.duplex&&(i.duplex=t.duplex),Object.assign(Object.assign({},i),r))};function Oa(e,t,r,n,i,s){return Zi(this,void 0,void 0,function*(){return new Promise((o,a)=>{e(r,f2(t,n,i,s)).then(l=>{if(!l.ok)throw l;return n!=null&&n.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>d2(l,a,n))})})}function bc(e,t,r,n){return Zi(this,void 0,void 0,function*(){return Oa(e,"GET",t,r,n)})}function Nr(e,t,r,n,i){return Zi(this,void 0,void 0,function*(){return Oa(e,"POST",t,n,i,r)})}function Mf(e,t,r,n,i){return Zi(this,void 0,void 0,function*(){return Oa(e,"PUT",t,n,i,r)})}function h2(e,t,r,n){return Zi(this,void 0,void 0,function*(){return Oa(e,"HEAD",t,Object.assign(Object.assign({},r),{noResolveJson:!0}),n)})}function sb(e,t,r,n,i){return Zi(this,void 0,void 0,function*(){return Oa(e,"DELETE",t,n,i,r)})}var ft=function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(d){try{c(n.next(d))}catch(f){o(f)}}function l(d){try{c(n.throw(d))}catch(f){o(f)}}function c(d){d.done?s(d.value):i(d.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const p2={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Vg={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class m2{constructor(t,r={},n,i){this.shouldThrowOnError=!1,this.url=t,this.headers=r,this.bucketId=n,this.fetch=ib(i)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(t,r,n,i){return ft(this,void 0,void 0,function*(){try{let s;const o=Object.assign(Object.assign({},Vg),i);let a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&n instanceof Blob?(s=new FormData,s.append("cacheControl",o.cacheControl),l&&s.append("metadata",this.encodeMetadata(l)),s.append("",n)):typeof FormData<"u"&&n instanceof FormData?(s=n,s.append("cacheControl",o.cacheControl),l&&s.append("metadata",this.encodeMetadata(l))):(s=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),i!=null&&i.headers&&(a=Object.assign(Object.assign({},a),i.headers));const c=this._removeEmptyFolders(r),d=this._getFinalPath(c),f=yield(t=="PUT"?Mf:Nr)(this.fetch,`${this.url}/object/${d}`,s,Object.assign({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:c,id:f.Id,fullPath:f.Key},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Ze(s))return{data:null,error:s};throw s}})}upload(t,r,n){return ft(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,r,n)})}uploadToSignedUrl(t,r,n,i){return ft(this,void 0,void 0,function*(){const s=this._removeEmptyFolders(t),o=this._getFinalPath(s),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",r);try{let l;const c=Object.assign({upsert:Vg.upsert},i),d=Object.assign(Object.assign({},this.headers),{"x-upsert":String(c.upsert)});typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",c.cacheControl)):(l=n,d["cache-control"]=`max-age=${c.cacheControl}`,d["content-type"]=c.contentType);const f=yield Mf(this.fetch,a.toString(),l,{headers:d});return{data:{path:s,fullPath:f.Key},error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(Ze(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t,r){return ft(this,void 0,void 0,function*(){try{let n=this._getFinalPath(t);const i=Object.assign({},this.headers);r!=null&&r.upsert&&(i["x-upsert"]="true");const s=yield Nr(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:i}),o=new URL(this.url+s.url),a=o.searchParams.get("token");if(!a)throw new pp("No token returned by API");return{data:{signedUrl:o.toString(),path:t,token:a},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ze(n))return{data:null,error:n};throw n}})}update(t,r,n){return ft(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,r,n)})}move(t,r,n){return ft(this,void 0,void 0,function*(){try{return{data:yield Nr(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Ze(i))return{data:null,error:i};throw i}})}copy(t,r,n){return ft(this,void 0,void 0,function*(){try{return{data:{path:(yield Nr(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers})).Key},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Ze(i))return{data:null,error:i};throw i}})}createSignedUrl(t,r,n){return ft(this,void 0,void 0,function*(){try{let i=this._getFinalPath(t),s=yield Nr(this.fetch,`${this.url}/object/sign/${i}
280`,Object.assign({expiresIn:r},n!=null&&n.transform?{transform:n.transform}:{}),{headers:this.headers});const o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return s={signedUrl:encodeURI(`${this.url}${s.signedURL}${o}`)},{data:s,error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Ze(i))return{data:null,error:i};throw i}})}createSignedUrls(t,r,n){return ft(this,void 0,void 0,function*(){try{const i=yield Nr(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:r,paths:t},{headers:this.headers}),s=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:i.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${s}`):null})),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Ze(i))return{data:null,error:i};throw i}})}download(t,r){return ft(this,void 0,void 0,function*(){const i=typeof(r==null?void 0:r.transform)<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString((r==null?void 0:r.transform)||{}),o=s?`?${s}`:"";try{const a=this._getFinalPath(t);return{data:yield(yield bc(this.fetch,`${this.url}/${i}/${a}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Ze(a))return{data:null,error:a};throw a}})}info(t){return ft(this,void 0,void 0,function*(){const r=this._getFinalPath(t);try{const n=yield bc(this.fetch,`${this.url}/object/info/${r}`,{headers:this.headers});return{data:Lf(n),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ze(n))return{data:null,error:n};throw n}})}exists(t){return ft(this,void 0,void 0,function*(){const r=this._getFinalPath(t);try{return yield h2(this.fetch,`${this.url}/object/${r}`,{headers:this.headers}),{data:!0,error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ze(n)&&n instanceof zf){const i=n.originalError;if([400,404].includes(i==null?void 0:i.status))return{data:!1,error:n}}throw n}})}getPublicUrl(t,r){const n=this._getFinalPath(t),i=[],s=r!=null&&r.download?`download=${r.download===!0?"":r.download}`:"";s!==""&&i.push(s);const a=typeof(r==null?void 0:r.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((r==null?void 0:r.transform)||{});l!==""&&i.push(l);let c=i.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${n}${c}`)}}}remove(t){return ft(this,void 0,void 0,function*(){try{return{data:yield sb(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ze(r))return{data:null,error:r};throw r}})}list(t,r,n){return ft(this,void 0,void 0,function*(){try{const i=Object.assign(Object.assign(Object.assign({},p2),r),{prefix:t||""});return{data:yield Nr(this.fetch,`${this.url}/object/list/${this.bucketId}`,i,{headers:this.headers},n),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Ze(i))return{data:null,error:i};throw i}})}listV2(t,r){return ft(this,void 0,void 0,function*(){try{const n=Object.assign({},t);return{data:yield Nr(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,n,{headers:this.headers},r),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ze(n))return{data:null,error:n};throw n}})}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 r=[];return t.width&&r.push(`width=${t.width}`),t.height&&r.push(`height=${t.height}`),t.resize&&r.push(`resize=${t.resize}`),t.format&&r.push(`format=${t.format}`),t.quality&&r.push(`quality=${t.quality}`),r.join("&")}}const g2="2.12.1",v2={"X-Client-Info":`storage-js/${g2}`};var Xi=function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(d){try{c(n.next(d))}catch(f){o(f)}}function l(d){try{c(n.throw(d))}catch(f){o(f)}}function c(d){d.done?s(d.value):i(d.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};class y2{constructor(t,r={},n,i){this.shouldThrowOnError=!1;const s=new URL(t);i!=null&&i.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase.")),this.url=s.href,this.headers=Object.assign(Object.assign({},v2),r),this.fetch=ib(n)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(){return Xi(this,void 0,void 0,function*(){try{return{data:yield bc(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Ze(t))return{data:null,error:t};throw t}})}getBucket(t){return Xi(this,void 0,void 0,function*(){try{return{data:yield bc(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ze(r))return{data:null,error:r};throw r}})}createBucket(t,r={public:!1}){return Xi(this,void 0,void 0,function*(){try{return{data:yield Nr(this.fetch,`${this.url}/bucket`,{id:t,name:t,type:r.type,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ze(n))return{data:null,error:n};throw n}})}updateBucket(t,r){return Xi(this,void 0,void 0,function*(){try{return{data:yield Mf(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ze(n))return{data:null,error:n};throw n}})}emptyBucket(t){return Xi(this,void 0,void 0,function*(){try{return{data:yield Nr(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ze(r))return{data:null,error:r};throw r}})}deleteBucket(t){return Xi(this,void 0,void 0,function*(){try{return{data:yield sb(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ze(r))return{data:null,error:r};throw r}})}}class w2 extends y2{constructor(t,r={},n,i){super(t,r,n,i)}from(t){return new m2(this.url,this.headers,t,this.fetch)}}const x2="2.57.4";let To="";typeof Deno<"u"?To="deno":typeof document<"u"?To="web":typeof navigator<"u"&&navigator.product==="ReactNative"?To="react-native":To="node";const b2={"X-Client-Info":`supabase-js-${To}/${x2}`},_2={headers:b2},k2={schema:"public"},S2={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},E2={};var j2=function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(d){try{c(n.next(d))}catch(f){o(f)}}function l(d){try{c(n.throw(d))}catch(f){o(f)}}function c(d){d.done?s(d.value):i(d.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const C2=e=>{let t;return e?t=e:typeof fetch>"u"?t=Wx:t=fetch,(...r)=>t(...r)},T2=()=>typeof Headers>"u"?Hx:Headers,N2=(e,t,r)=>{const n=C2(r),i=T2();return(s,o)=>j2(void 0,void 0,void 0,function*(){var a;const l=(a=yield t())!==null&&a!==void 0?a:e;let c=new i(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),n(s,Object.assign(Object.assign({},o),{headers:c}))})};var P2=function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(d){try{c(n.next(d))}catch(f){o(f)}}function l(d){try{c(n.throw(d))}catch(f){o(f)}}function c(d){d.done?s(d.value):i(d.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};function A2(e){return e.endsWith("/")?e:e+"/"}function R2(e,t){var r,n;const{db:i,auth:s,realtime:o,global:a}=e,{db:l,auth:c,realtime:d,global:f}=t,h={db:Object.assign(Object.assign({},l),i),auth:Object.assign(Object.assign({},c),s),realtime:Object.assign(Object.assign({},d),o),storage:{},global:Object.assign(Object.assign(Object.assign({},f),a),{headers:Object.assign(Object.assign({},(r=f==null?void 0:f.headers)!==null&&r!==void 0?r:{}),(n=a==null?void 0:a.headers)!==null&&n!==void 0?n:{})}),accessToken:()=>P2(this,void 0,void 0,function*(){return""})};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}function O2(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");
280if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(A2(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const ob="2.71.1",ls=30*1e3,Ff=3,ld=Ff*ls,I2="http://localhost:9999",$2="supabase.auth.token",D2={"X-Client-Info":`gotrue-js/${ob}`},Uf="X-Supabase-Api-Version",ab={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},z2=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,L2=10*60*1e3;class mp extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function ne(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class M2 extends mp{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function F2(e){return ne(e)&&e.name==="AuthApiError"}class lb extends mp{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class ai extends mp{constructor(t,r,n,i){super(t,n,i),this.name=r,this.status=n}}class Pn extends ai{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function U2(e){return ne(e)&&e.name==="AuthSessionMissingError"}class hl extends ai{constructor(){super("Auth session or user missing","AuthInvalidToken
280ResponseError",500,void 0)}}class pl extends ai{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class ml extends ai{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function V2(e){return ne(e)&&e.name==="AuthImplicitGrantRedirectError"}class Bg extends ai{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Vf extends ai{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function cd(e){return ne(e)&&e.name==="AuthRetryableFetchError"}class Wg extends ai{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class Bf extends ai{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const _c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Hg=` 	
281\r=`.split(""),B2=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Hg.length;t+=1)e[Hg[t].charCodeAt(0)]=-2;for(let t=0;t<_c.length;t+=1)e[_c[t].charCodeAt(0)]=t;return e})();function Zg(e,t,r){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(_c[n]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(_c[n]),t.queuedBits-=6}}function cb(e,t,r){const n=B2[e];if(n>-1)for(t.queue=t.queue<<6|n,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Kg(e){const t=[],r=o=>{t.push(String.fromCodePoint(o))},n={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},s=o=>{Z2(o,n,r)};for(let o=0;o<e.length;o+=1)cb(e.charCodeAt(o),i,s);return t.join("")}function W2(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 H2(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const i=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|i)+65536,r+=1}W2(n,t)}}function Z2(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;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&&r(t.codepoint)}}function K2(e){const t=[],r={queue:0,queuedBits:0},n=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)cb(e.charCodeAt(i),r,n);return new Uint8Array(t)}function q2(e){const t=[];return H2(e,r=>t.push(r)),new Uint8Array(t)}function G2(e){const t=[],r={queue:0,queuedBits:0},n=i=>{t.push(i)};return e.forEach(i=>Zg(i,r,n)),Zg(null,r,n),t.join("")}function Q2(e){return Math.round(Date.now()/1e3)+e}function Y2(){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 ir=()=>typeof window<"u"&&typeof document<"u",fi={tested:!1,writable:!1},ub=()=>{if(!ir())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(fi.tested)return fi.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),fi.tested=!0,fi.writable=!0}catch{fi.tested=!0,fi.writable=!1}return fi.writable};function J2(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEach((i,s)=>{t[s]=i})}catch{}return r.searchParams.forEach((n,i)=>{t[i]=n}),t}const db=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>Aa(async()=>{const{default:n}=await Promise.resolve().then(()=>ao);return{default:n}},void 0).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)},X2=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",cs=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},hi=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},En=async(e,t)=>{await e.removeItem(t)};class du{constructor(){this.promise=new du.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}du.promiseConstructor=Promise;function ud(e){const t=e.split(".");if(t.length!==3)throw new Bf("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!z2.test(t[n]))throw new Bf("JWT not in base64url format");
281return{header:JSON.parse(Kg(t[0])),payload:JSON.parse(Kg(t[1])),signature:K2(t[2]),raw:{header:t[0],payload:t[1]}}}async function eA(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function tA(e,t){return new Promise((n,i)=>{(async()=>{for(let s=0;s<1/0;s++)try{const o=await e(s);if(!t(s,null,o)){n(o);return}}catch(o){if(!t(s,o)){i(o);return}}})()})}function rA(e){return("0"+e.toString(16)).substr(-2)}function nA(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let i="";for(let s=0;s<56;s++)i+=r.charAt(Math.floor(Math.random()*n));return i}return crypto.getRandomValues(t),Array.from(t,rA).join("")}async function iA(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),i=new Uint8Array(n);return Array.from(i).map(s=>String.fromCharCode(s)).join("")}async function sA(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 r=await iA(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function es(e,t,r=!1){const n=nA();let i=n;r&&(i+="/PASSWORD_RECOVERY"),await cs(e,`${t}-code-verifier`,i);const s=await sA(n);return[s,n===s?"plain":"s256"]}const oA=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function aA(e){const t=e.headers.get(Uf);if(!t||!t.match(oA))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function lA(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 cA(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 uA=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function ts(e){if(!uA.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function dd(){const e={};return new Proxy(e,{get:(t,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="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 "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function qg(e){return JSON.parse(JSON.stringify(e))}var dA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const gi=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),fA=[502,503,504];async function Gg(e){var t;if(!X2(e))throw new Vf(gi(e),0);if(fA.includes(e.status))throw new Vf(gi(e),e.status);let r;try{r=await e.json()}catch(s){throw new lb(gi(s),s)}let n;const i=aA(e);if(i&&i.getTime()>=ab["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new Wg(gi(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new Pn}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((s,o)=>
281s&&typeof o=="string",!0))throw new Wg(gi(r),e.status,r.weak_password.reasons);throw new M2(gi(r),e.status||500,n)}const hA=(e,t,r,n)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(n),Object.assign(Object.assign({},i),r))};async function ae(e,t,r,n){var i;const s=Object.assign({},n==null?void 0:n.headers);s[Uf]||(s[Uf]=ab["2024-01-01"].name),n!=null&&n.jwt&&(s.Authorization=`Bearer ${n.jwt}`);const o=(i=n==null?void 0:n.query)!==null&&i!==void 0?i:{};n!=null&&n.redirectTo&&(o.redirect_to=n.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await pA(e,t,r+a,{headers:s,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(l):{data:Object.assign({},l),error:null}}async function pA(e,t,r,n,i,s){const o=hA(t,n,i,s);let a;try{a=await e(r,Object.assign({},o))}catch(l){throw console.error(l),new Vf(gi(l),0)}if(a.ok||await Gg(a),n!=null&&n.noResolveJson)return a;try{return await a.json()}catch(l){await Gg(l)}}function Yr(e){var t;let r=null;yA(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=Q2(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function Qg(e){const t=Yr(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((r,n)=>r&&typeof n=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Dn(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function mA(e){return{data:e,error:null}}function gA(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:i,verification_type:s}=e,o=dA(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:r,hashed_token:n,redirect_to:i,verification_type:s},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function vA(e){return e}function yA(e){return e.access_token&&e.refresh_token&&e.expires_in}const fd=["global","local","others"];var wA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};class xA{constructor({url:t="",headers:r={},fetch:n}){this.url=t,this.headers=r,this.fetch=db(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,r=fd[0]){if(fd.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${fd.join(", ")}`);try{return await ae(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(ne(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await ae(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:Dn})}catch(n){if(ne(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=wA(t,["options"]),i=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(i.new_email=n==null?void 0:n.newEmail,delete i.newEmail),await ae(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:gA,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(ne(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await ae(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Dn})}catch(r){if(ne(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,i,s,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},d=await ae(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:vA});if(d.error)throw d.error;const f=await d.json(),h=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>
2810&&(p.forEach(b=>{const g=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(b.split(";")[1].split("=")[1]);c[`${x}Page`]=g}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},f),c),error:null}}catch(c){if(ne(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){ts(t);try{return await ae(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Dn})}catch(r){if(ne(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){ts(t);try{return await ae(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:Dn})}catch(n){if(ne(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){ts(t);try{return await ae(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:Dn})}catch(n){if(ne(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){ts(t.userId);try{const{data:r,error:n}=await ae(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:r,error:n}}catch(r){if(ne(r))return{data:null,error:r};throw r}}async _deleteFactor(t){ts(t.userId),ts(t.id);try{return{data:await ae(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(ne(r))return{data:null,error:r};throw r}}}function Yg(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}function bA(){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 rs={debug:!!(globalThis&&ub()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class fb extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class _A extends fb{}async function kA(e,t,r){rs.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;return t>0&&setTimeout(()=>{n.abort(),rs.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:n.signal},async i=>{if(i){rs.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await r()}finally{rs.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw rs.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new _A(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(rs.debug)try{const s=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(s,null,"  "))}catch(s){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",s)}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 r()}}))}bA();const SA={url:I2,storageKey:$2,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:D2,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function Jg(e,t,r){return await r()}const ns={};class ga{constructor(t){var r,n;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=ga.nextInstanceID,ga.nextInstanceID+=1,this.instanceID>0&&ir()&&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 i=Object.assign(Object.assign({},SA),t);if(this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.persistSession=i.persistSession,this.storageKey=i.storageKey,this.autoRefreshToken=i.autoRefreshToken,this.admin=new xA({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=db(i.fetch),this.lock=i.lock||Jg,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,i.lock?this.lock=i.lock:ir()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=kA:this.lock=Jg,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?(i.storage?this.storage=i.storage:ub()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Yg(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=Yg(this.memoryStorage)),ir()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(s){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",s)}(n=this.broadcastChannel)===null||n===void 0||n.addEventListener("message",async s=>{this._debug("received broadcast notification from other tab or client",s),await this._notifyAllSubscribers(s.data.event,s.data.session,!1)})}this.initialize()}get jwks(){var t,r;return(r=(t=ns[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){ns[this.storageKey]=Object.assign(Object.assign({},ns[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=ns[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){ns[this.storageKey]=Object.assign(Object.assign({},ns[this.storageKey]),{cachedAt:t})}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${ob}) ${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 r=J2(window.location.href);let n="none";if(this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce"),ir()&&this.detectSessionInUrl&&n!=="none"){const{data:i,error:s}=await this._getSessionFromURL(r,n);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),V2(s)){const l=(t=s.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:s}}return await this._removeSession(),{error:s}}const{session:o,redirectType:a}=i;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(r){return ne(r)?{error:r}:{error:new lb("Unexpected error during initialization",r)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,i;try{const s=await ae(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:Yr}),{data:o,error:a}=s;
281if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(s){if(ne(s))return{data:{user:null,session:null},error:s};throw s}}async signUp(t){var r,n,i;try{let s;if("email"in t){const{email:d,password:f,options:h}=t;let p=null,b=null;this.flowType==="pkce"&&([p,b]=await es(this.storage,this.storageKey)),s=await ae(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:d,password:f,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:p,code_challenge_method:b},xform:Yr})}else if("phone"in t){const{phone:d,password:f,options:h}=t;s=await ae(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:f,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},channel:(i=h==null?void 0:h.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:Yr})}else throw new pl("You must provide either an email or phone number and a password");const{data:o,error:a}=s;
281if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(s){if(ne(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithPassword(t){try{let r;if("email"in t){const{email:s,password:o,options:a}=t;r=await ae(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Qg})}else if("phone"in t){const{phone:s,password:o,options:a}=t;r=await ae(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Qg})}else throw new pl("You must provide either an email or phone number and a password");const{data:n,error:i}=r;return i?{data:{user:null,session:null},error:i}:!n||!n.session||!n.user?{data:{user:null,session:null},error:new hl}:(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),{data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:i})}catch(r){if(ne(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOAuth(t){var r,n,i,s;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=t.options)===null||n===void 0?void 0:n.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:r}=t;if(r==="solana")return await this.signInWithSolana(t);throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}async signInWithSolana(t){var r,n,i,s,o,a,l,c,d,f,h,p;let b,g;if("message"in t)b=t.message,g=t.signature;else{const{chain:x,wallet:w,statement:m,options:v}=t;let _;if(ir())if(typeof w=="object")_=w;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))_=E.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 w!="object"||!(v!=null&&v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=w}const k=new URL((r=v==null?void 0:v.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in _&&_.signIn){const E=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},v==null?void 0:v.signInWithSolana),{version:"1",domain:k.host,uri:k.href}),m?{statement:m}:null));let j;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")j=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)j=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in j&&"signature"in j&&(typeof j.signedMessage=="string"||j.signedMessage instanceof Uint8Array)&&j.signature instanceof Uint8Array)b=typeof j.signedMessage=="string"?j.signedMessage:new TextDecoder().decode(j.signedMessage),g=j.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=[`${k.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...m?["",m,""]:[""],"Version: 1",`URI: ${k.href}`,`Issued At: ${(i=(n=v==null?void 0:v.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}
281`,...!((s=v==null?void 0:v.signInWithSolana)===null||s===void 0)&&s.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}`]:[],...!((c=v==null?void 0:v.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${v.signInWithSolana.requestId}`]:[],...!((f=(d=v==null?void 0:v.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||f===void 0)&&f.length?["Resources",...v.signInWithSolana.resources.map(j=>`- ${j}`)]:[]].join(`
282`);const E=await _.signMessage(new TextEncoder().encode(b),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");g=E}}try{const{data:x,error:w}=await ae(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:b,signature:G2(g)},!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:Yr});if(w)throw w;return!x||!x.session||!x.user?{data:{user:null,session:null},error:new hl}:(x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),{data:Object.assign({},x),error:w})}catch(x){if(ne(x))return{data:{user:null,session:null},error:x};throw x}}async _exchangeCodeForSession(t){const r=await hi(this.storage,`${this.storageKey}-code-verifier`),[n,i]=(r??"").split("/");try{const{data:s,error:o}=await ae(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:Yr});if(await En(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!s||!s.session||!s.user?{data:{user:null,session:null,redirectType:null},error:new hl}:(s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:Object.assign(Object.assign({},s),{redirectType:i??null}),error:o})}catch(s){if(ne(s))return{data:{user:null,session:null,redirectType:null},error:s};throw s}}async signInWithIdToken(t){try{const{options:r,provider:n,token:i,access_token:s,nonce:o}=t,a=await ae(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:i,access_token:s,nonce:o,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:Yr}),{data:l,error:c}=a;return c?{data:{user:null,session:null},error:c}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new hl}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:c})}catch(r){if(ne(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOtp(t){var r,n,i,s,o;try{if("email"in t){const{email:a,options:l}=t;let c=null,d=null;this.flowType==="pkce"&&([c,d]=await es(this.storage,this.storageKey));const{error:f}=await ae(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(r=l==null?void 0:l.data)!==null&&r!==void 0?r:{},create_user:(n=l==null?void 0:l.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:d},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:c,error:d}=await ae(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(i=l==null?void 0:l.data)!==null&&i!==void 0?i:{},create_user:(s=l==null?void 0:l.shouldCreateUser)!==null&&s!==void 0?s:!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:c==null?void 0:c.message_id},error:d}}throw new pl("You must provide either an email or phone number.")}catch(a){if(ne(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var r,n;try{let i,s;"options"in t&&(i=(r=t.options)===null||r===void 0?void 0:r.redirectTo,s=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:o,error:a}=await ae(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:i,xform:Yr});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(i){if(ne(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithSSO(t){var r,n,i;try{let s=null,o=null;return this.flowType==="pkce"&&([s,o]=await es(this.storage,this.storageKey)),await ae(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:(n=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:s,code_challenge_method:o}),headers:this.headers,xform:mA})}catch(s){if(ne(s))return{data:null,error:s};throw s}}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:r},error:n}=t;if(n)throw n;if(!r)throw new Pn;const{error:i}=await ae(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return{data:{user:null,session:null},error:i}})}catch(t){if(ne(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:n,type:i,options:s}=t,{error:o}=await ae(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in t){const{phone:n,type:i,options:s}=t,{data:o,error:a}=await ae(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a}}throw new pl("You must provide either an email or phone number and a type")}catch(r){if(ne(r))return{data:{user:null,session:null},error:r};throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async r=>r))}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await n}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 r=await this.__loadSession();return await t(r)}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 r=await hi(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not val
282id"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<ld:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const o=await hi(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=dd()}if(this.storage.isServer&&t.user){let o=this.suppressGetSessionWarning;t=new Proxy(t,{get:(l,c,d)=>(!o&&c==="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,c,d))})}return{data:{session:t},error:null}}const{session:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?{data:{session:null},error:s}:{data:{session:i},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 ae(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Dn}):await this._useSession(async r=>{var n,i,s;const{data:o,error:a}=r;if(a)throw a;return!(!((n=o.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Pn}:await ae(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(i=o.session)===null||i===void 0?void 0:i.access_token)!==null&&s!==void 0?s:void 0,xform:Dn})})}catch(r){if(ne(r))return U2(r)&&(await this._removeSession(),await En(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:r};throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:i,error:s}=n;if(s)throw s;if(!i.session)throw new Pn;const o=i.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await es(this.storage,this.storageKey));const{data:c,error:d}=await ae(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:Dn});if(d)throw d;return o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(n){if(ne(n))return{data:{user:null},error:n};throw n}}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 Pn;const r=Date.now()/1e3;let n=r,i=!0,s=null;const{payload:o}=ud(t.access_token);if(o.exp&&(n=o.exp,i=n<=r),i){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};s=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;s={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return{data:{user:s.user,session:s},error:null}}catch(r){if(ne(r))return{data:{session:null,user:null},error:r};throw r}}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 r=>{var n;if(!t){const{data:o,error:a}=r;if(a)throw a;t=(n=o.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new Pn;const{session:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?{data:{user:null,session:null},error:s}:i?{data:{user:i.user,session:i},error:null}:{data:{user:null,session:null},error:null}})}catch(r){if(ne(r))return{data:{user:null,session:null},error:r};throw r}}async _getSessionFromURL(t,r){try{if(!ir())throw new ml("No browser detected.");
282if(t.error||t.error_description||t.error_code)throw new ml(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new Bg("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new ml("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Bg("No code detected.");const{data:m,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:m.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:i,access_token:s,refresh_token:o,expires_in:a,expires_at:l,token_type:c}=t;if(!s||!a||!o||!c)throw new ml("No session defined in URL");const d=Math.round(Date.now()/1e3),f=parseInt(a);let h=d+f;l&&(h=parseInt(l));const p=h-d;p*1e3<=ls&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${p}s, should have been closer to ${f}s`);const b=h-f;d-b>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",b,h,d):d-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,d);const{data:g,error:x}=await this._getUser(s);if(x)throw x;const w={provider_token:n,provider_refresh_token:i,access_token:s,expires_in:f,expires_at:h,refresh_token:o,token_type:c,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:w,redirectType:t.type},error:null}}catch(n){if(ne(n))return{data:{session:null,redirectType:null},error:n};throw n}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const r=await hi(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}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 r=>{var n;const{data:i,error:s}=r;if(s)return{error:s};const o=(n=i.session)===null||n===void 0?void 0:n.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(F2(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return t!=="others"&&(await this._removeSession(),await En(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const r=Y2(),n={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,i;try{const{data:{session:s},error:o}=r;if(o)throw o;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}})}async resetPasswordForEmail(t,r={}){let n=null,i=null;this.flowType==="pkce"&&([n,i]=await es(this.storage,this.storageKey,!0));try{return await ae(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:i,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(s){if(ne(s))return{data:null,error:s};throw s}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return{data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(r){if(ne(r))return{data:null,error:r};throw r}}async linkIdentity(t){var r;try{const{data:n,error:i}=await this._useSession(async s=>{var o,a,l,c,d;const{data:f,error:h}=s;if(h)throw h;const p=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 ae(this.fetch,"GET",p,{headers:this.headers,jwt:(d=(c=f.session)===null||c===void 0?void 0:c.access_token)!==null&&d!==void 0?d:void 0})});if(i)throw i;return ir()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),{data:{provider:t.provider,url:n==null?void 0:n.url},error:null}}catch(n){if(ne(n))return{data:{provider:t.provider,url:null},error:n};throw n}}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,i;const{data:s,error:o}=r;if(o)throw o;
282return await ae(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(n=s.session)===null||n===void 0?void 0:n.access_token)!==null&&i!==void 0?i:void 0})})}catch(r){if(ne(r))return{data:null,error:r};throw r}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await tA(async i=>(i>0&&await eA(200*Math.pow(2,i-1)),this._debug(r,"refreshing attempt",i),await ae(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Yr})),(i,s)=>{const o=200*Math.pow(2,i);return s&&cd(s)&&Date.now()+o-n<ls})}catch(n){if(this._debug(r,"error",n),ne(n))return{data:{session:null,user:null},error:n};throw n}finally{this._debug(r,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",r,"url",n),ir()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:t,url:n},error:null}}async _recoverAndRefresh(){var t,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const i=await hi(this.storage,this.storageKey);if(i&&this.userStorage){let o=await hi(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:i.user},await cs(this.userStorage,this.storageKey+"-user",o)),i.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:dd()}else if(i&&!i.user&&!i.user){const o=await hi(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(i.user=o.user,await En(this.storage,this.storageKey+"-user"),await cs(this.storage,this.storageKey,i)):i.user=dd()}if(this._debug(n,"session from storage",i),!this._isValidSession(i)){this._debug(n,"session is not valid"),i!==null&&await this._removeSession();return}const s=((r=i.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<ld;if(this._debug(n,`session has${s?"":" not"} expired with margin of ${ld}s`),s){if(this.autoRefreshToken&&i.refresh_token){const{error:o}=await this._callRefreshToken(i.refresh_token);o&&(console.error(o),cd(o)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(i.access_token);!a&&(o!=null&&o.user)?(i.user=o.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(n,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(n,"error",i),console.error(i);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new Pn;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new du;const{data:s,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!s.session)throw new Pn;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const a={session:s.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(s){if(this._debug(i,"error",s),ne(s)){const o={session:null,error:s};return cd(s)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(o),o}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(s),s}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,r,n=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const s=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,r)}catch(l){s.push(l)}});if(await Promise.all(o),s.length>0){for(let a=0;a<s.length;a+=1)console.error(s[a]);throw s[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0;const r=Object.assign({},t),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await cs(this.userStorage,this.storageKey+"-user",{user:r.user});const i=Object.assign({},r);delete i.user;const s=qg(i);await cs(this.storage,this.storageKey,s)}else{const i=qg(r);await cs(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),await En(this.storage,this.storageKey),await En(this.storage,this.storageKey+"-code-verifier"),await En(this.storage,this.storageKey+"-user"),this.userStorage&&await En(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&ir()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
282catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),ls);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 r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((n.expires_at*1e3-t)/ls);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${ls}ms, refresh threshold is ${Ff} ticks`),i<=Ff&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof fb)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!ir()||!(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 r=`#_onVisibilityChanged(${t})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"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,r,n){const i=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&i.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&i.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[s,o]=await es(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(o)}`});i.push(a.toString())}if(n!=null&&n.queryParams){const s=new URLSearchParams(n.queryParams);i.push(s.toString())}return n!=null&&n.skipBrowserRedirect&&i.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:i,error:s}=r;return s?{data:null,error:s}:await ae(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(ne(r))return{data:null,error:r};throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,i;const{data:s,error:o}=r;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:c}=await ae(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});return c?{data:null,error:c}:(t.factorType==="totp"&&(!((i=l==null?void 0:l.totp)===null||i===void 0)&&i.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),{data:l,error:null})})}catch(r){if(ne(r))return{data:null,error:r};throw r}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:i,error:s}=r;if(s)return{data:null,error:s};const{data:o,error:a}=await ae(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.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(r){if(ne(r))return{data:null,error:r};throw r}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:i,error:s}=r;return s?{data:null,error:s}:await ae(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(ne(r))return{data:null,error:r};throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?{data:null,error:n}:await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){const{data:{user:t},error:r}=await this.getUser();if(r)return{data:null,error:r};const n=(t==null?void 0:t.factors)||[],i=n.filter(o=>o.factor_type==="totp"&&o.status==="verified"),s=n.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:n,totp:i,phone:s},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var r,n;const{data:{session:i},error:s}=t;if(s)return{data:null,error:s};if(!i)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=ud(i.access_token);let a=null;o.aal&&(a=o.aal);let l=a;((n=(r=i.user.factors)===null||r===void 0?void 0:r.filter(f=>f.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(l="aal2");const d=o.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:d},error:null}}))}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(a=>a.kid===t);if(n)return n;const i=Date.now();if(n=this.jwks.keys.find(a=>a.kid===t),n&&this.jwks_cached_at+L2>i)return n;const{data:s,error:o}=await ae(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=i,n=s.keys.find(a=>a.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:p,error:b}
282=await this.getSession();if(b||!p.session)return{data:null,error:b};n=p.session.access_token}const{header:i,payload:s,signature:o,raw:{header:a,payload:l}}=ud(n);r!=null&&r.allowExpired||lA(s.exp);const c=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!c){const{error:p}=await this.getUser(n);if(p)throw p;return{data:{claims:s,header:i,signature:o},error:null}}const d=cA(i.alg),f=await crypto.subtle.importKey("jwk",c,d,!0,["verify"]);if(!await crypto.subtle.verify(d,f,o,q2(`${a}.${l}`)))throw new Bf("Invalid JWT signature");return{data:{claims:s,header:i,signature:o},error:null}}catch(n){if(ne(n))return{data:null,error:n};throw n}}}ga.nextInstanceID=0;const EA=ga;class jA extends EA{constructor(t){super(t)}}var CA=function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(d){try{c(n.next(d))}catch(f){o(f)}}function l(d){try{c(n.throw(d))}catch(f){o(f)}}function c(d){d.done?s(d.value):i(d.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};class TA{constructor(t,r,n){var i,s,o;this.supabaseUrl=t,this.supabaseKey=r;const a=O2(t);if(!r)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`,c={db:k2,realtime:E2,auth:Object.assign(Object.assign({},S2),{storageKey:l}),global:_2},d=R2(n??{},c);this.storageKey=(i=d.auth.storageKey)!==null&&i!==void 0?i:"",this.headers=(s=d.global.headers)!==null&&s!==void 0?s:{},d.accessToken?(this.accessToken=d.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=d.auth)!==null&&o!==void 0?o:{},this.headers,d.global.fetch),this.fetch=N2(r,this._getAccessToken.bind(this),d.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},d.realtime)),this.rest=new BP(new URL("rest/v1",a).href,{headers:this.headers,schema:d.db.schema,fetch:this.fetch}),this.storage=new w2(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),d.accessToken||this._listenForAuthEvents()}get functions(){return new bP(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,r={},n={}){return this.rest.rpc(t,r,n)}channel(t,r={config:{}}){return this.realtime.channel(t,r)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,r;return CA(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:n}=yield this.auth.getSession();return(r=(t=n.session)===null||t===void 0?void 0:t.access_token)!==null&&r!==void 0?r:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:i,userStorage:s,storageKey:o,flowType:a,lock:l,debug:c},d,f){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new jA({url:this.authUrl.href,headers:Object.assign(Object.assign({},h),d),storageKey:o,autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:i,userStorage:s,flowType:a,lock:l,debug:c,fetch:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(p=>p.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new o2(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((r,n)=>{this._handleTokenChanged(r,"CLIENT",n==null?void 0:n.access_token)})}_handleTokenChanged(t,r,n){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==n?this.changedAccessToken=n:t==="SIGNED_OUT"&&(this.realtime.setAuth(),r=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const NA=(e,t,r)=>new TA(e,t,r);function PA(){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}PA()&&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 N
282ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const AA="https://ttdjtsoarggvvnrczyvv.supabase.co",RA="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InR0ZGp0c29hcmdndnZucmN6eXZ2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTg1NDUyNjUsImV4cCI6MjA3NDEyMTI2NX0.16_mNm92t_qVoZPEo00GYUZAdxh67Hw3FnJd1yFWJyA",mr=NA(AA,RA,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),hb=y.createContext(void 0),OA=({children:e})=>{const[t,r]=y.useState(null),[n,i]=y.useState(null),[s,o]=y.useState(!0);y.useEffect(()=>{const{data:{subscription:l}}=mr.auth.onAuthStateChange((c,d)=>{i(d),r((d==null?void 0:d.user)??null),o(!1)});return mr.auth.getSession().then(({data:{session:c}})=>{i(c),r((c==null?void 0:c.user)??null),o(!1)}),()=>l.unsubscribe()},[]);const a=async()=>{await mr.auth.signOut()};return u.jsx(hb.Provider,{value:{user:t,session:n,isLoading:s,signOut:a},children:e})},pb=()=>{const e=y.useContext(hb);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e},IA=Ta("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ae=y.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},s)=>{const o=n?lw:"button";return u.jsx(o,{className:me(IA({variant:t,size:r,className:e})),ref:s,...i})});Ae.displayName="Button";var hd="focusScope.autoFocusOnMount",pd="focusScope.autoFocusOnUnmount",Xg={bubbles:!1,cancelable:!0},$A="FocusScope",mb=y.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=e,[a,l]=y.useState(null),c=wr(i),d=wr(s),f=y.useRef(null),h=dt(t,g=>l(g)),p=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(n){let g=function(v){if(p.paused||!a)return;const _=v.target;a.contains(_)?f.current=_:An(f.current,{select:!0})},x=function(v){if(p.paused||!a)return;const _=v.relatedTarget;_!==null&&(a.contains(_)||An(f.current,{select:!0}))},w=function(v){if(document.activeElement===document.body)for(const k of v)k.removedNodes.length>0&&An(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",x);const m=new MutationObserver(w);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",x),m.disconnect()}}},[n,a,p.paused]),y.useEffect(()=>{if(a){tv.add(p);const g=document.activeElement;if(!a.contains(g)){const w=new CustomEvent(hd,Xg);a.addEventListener(hd,c),a.dispatchEvent(w),w.defaultPrevented||(DA(UA(gb(a)),{select:!0}),document.activeElement===g&&An(a))}return()=>{a.removeEventListener(hd,c),setTimeout(()=>{const w=new CustomEvent(pd,Xg);a.addEventListener(pd,d),a.dispatchEvent(w),w.defaultPrevented||An(g??document.body,{select:!0}),a.removeEventListener(pd,d),tv.remove(p)},0)}}},[a,c,d,p]);const b=y.useCallback(g=>{if(!r&&!n||p.paused)return;const x=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,w=document.activeElement;if(x&&w){const m=g.currentTarget,[v,_]=zA(m);v&&_?!g.shiftKey&&w===_?(g.preventDefault(),r&&An(v,{select:!0})):g.shiftKey&&w===v&&(g.preventDefault(),r&&An(_,{select:!0})):w===m&&g.preventDefault()}},[r,n,p.paused]);return u.jsx(xe.div,{tabIndex:-1,...o,ref:h,onKeyDown:b})});mb.displayName=$A;function DA(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(An(n,{select:t}),document.activeElement!==r)return}function zA(e){const t=gb(e),r=ev(t,e),n=ev(t.reverse(),e);return[r,n]}function gb(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ev(e,t){for(const r of e)if(!LA(r,{upTo:t}))return r}function LA(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 MA(e){return e instanceof HTMLInputElement&&"select"in e}function An(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&MA(e)&&t&&e.select()}}var tv=FA();function FA(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=rv(e,t),e.unshift(t)},remove(t){var r;e=rv(e,t),(r=e[0])==null||r.resume()}}}function rv(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function UA(e){return e.filter(t=>t.tagName!=="A")}var md=0;function VA(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??nv()),document.body.insertAdjacentElement("beforeend",e[1]??nv()),md++,()=>{md===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),md--}},[])}function nv(){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,651 bytes, lines 282-297
282style.position="fixed",e.style.pointerEvents="none",e}var Ir=function(){return Ir=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Ir.apply(this,arguments)};function vb(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function BA(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}var Ml="right-scroll-bar-position",Fl="width-before-scroll-bar",WA="with-scroll-bars-hidden",HA="--removed-body-scroll-bar-size";function gd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ZA(e,t){var r=y.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var KA=typeof window<"u"?y.useLayoutEffect:y.useEffect,iv=new WeakMap;function qA(e,t){var r=ZA(null,function(n){return e.forEach(function(i){return gd(i,n)})});return KA(function(){var n=iv.get(r);if(n){var i=new Set(n),s=new Set(e),o=r.current;i.forEach(function(a){s.has(a)||gd(a,null)}),s.forEach(function(a){i.has(a)||gd(a,o)})}iv.set(r,e)},[e]),r}function GA(e){return e}function QA(e,t){t===void 0&&(t=GA);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var o=t(s,n);return r.push(o),function(){r=r.filter(function(a){return a!==o})}},assignSyncMedium:function(s){for(n=!0;r.length;){var o=r;r=[],o.forEach(s)}r={push:function(a){return s(a)},filter:function(){return r}}},assignMedium:function(s){n=!0;var o=[];if(r.length){var a=r;r=[],a.forEach(s),o=r}var l=function(){var d=o;o=[],d.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(d){o.push(d),c()},filter:function(d){return o=o.filter(d),r}}}};return i}function YA(e){e===void 0&&(e={});var t=QA(null);return t.options=Ir({async:!0,ssr:!1},e),t}var yb=function(e){var t=e.sideCar,r=vb(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return y.createElement(n,Ir({},r))};yb.isSideCarExport=!0;function JA(e,t){return e.useMedium(t),yb}var wb=YA(),vd=function(){},fu=y.forwardRef(function(e,t){var r=y.useRef(null),n=y.useState({onScrollCapture:vd,onWheelCapture:vd,onTouchMoveCapture:vd}),i=n[0],s=n[1],o=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,p=e.noRelative,b=e.noIsolation,g=e.inert,x=e.allowPinchZoom,w=e.as,m=w===void 0?"div":w,v=e.gapMode,_=vb(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=h,E=qA([r,t]),j=Ir(Ir({},_),i);return y.createElement(y.Fragment,null,d&&y.createElement(k,{sideCar:wb,removeScrollBar:c,shards:f,noRelative:p,noIsolation:b,inert:g,setCallbacks:s,allowPinchZoom:!!x,lockRef:r,gapMode:v}),o?y.cloneElement(y.Children.only(a),Ir(Ir({},j),{ref:E})):y.createElement(m,Ir({},j,{className:l,ref:E}),a))});fu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};fu.classNames={fullWidth:Fl,zeroRight:Ml};var XA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function eR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=XA();return t&&e.setAttribute("nonce",t),e}function tR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function rR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var nR=function(){var e=0,t=null;return{add:function(r){e==0&&(t=eR())&&(tR(t,r),rR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},iR=function(){var e=nR();return function(t,r){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},xb=function(){var e=iR(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},sR={left:0,top:0,right:0,gap:0},yd=function(e){return parseInt(e||"",10)||0},oR=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[yd(r),yd(n),yd(i)]},aR=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return sR;var t=oR(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},lR=xb(),Os="data-scroll-locked",cR=function(e,t,r,n){var i=e.left,s=e.top,o=e.right,a=e.gap;return r===void 0&&(r="margin"),`
283  .`.concat(WA,` {
284   overflow: hidden `).concat(n,`;
285   padding-right: `).concat(a,"px ").concat(n,`;
286  }
287  body[`).concat(Os,`] {
288    overflow: hidden `).concat(n,`;
289    overscroll-behavior: contain;
290    `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
291    padding-left: `.concat(i,`px;
292    padding-top: `).concat(s,`px;
293    padding-right: `).concat(o,`px;
294    margin-left:0;
295    margin-top:0;
296    margin-right: `).concat(a,"px ").concat(n,`;
297    `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";
297")].filter(Boolean).join(""),`
298  }
299  
300  .`).concat(Ml,` {
301    right: `).concat(a,"px ").concat(n,`;
302  }
303  
304  .`).concat(Fl,` {
305    margin-right: `).concat(a,"px ").concat(n,`;
306  }
307  
308  .`).concat(Ml," .").concat(Ml,` {
309    right: 0 `).concat(n,`;
310  }
311  
312  .`).concat(Fl," .").concat(Fl,` {
313    margin-right: 0 `).concat(n,`;
314  }
315  
316  body[`).concat(Os,`] {
317    `).concat(HA,": ").concat(a,`px;
318  }
319`)},sv=function(){var e=parseInt(document.body.getAttribute(Os)||"0",10);return isFinite(e)?e:0},uR=function(){y.useEffect(function(){return document.body.setAttribute(Os,(sv()+1).toString()),function(){var e=sv()-1;e<=0?document.body.removeAttribute(Os):document.body.setAttribute(Os,e.toString())}},[])},dR=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;uR();var s=y.useMemo(function(){return aR(i)},[i]);return y.createElement(lR,{styles:cR(s,!t,i,r?"":"!important")})},Wf=!1;if(typeof window<"u")try{var gl=Object.defineProperty({},"passive",{get:function(){return Wf=!0,!0}});window.addEventListener("test",gl,gl),window.removeEventListener("test",gl,gl)}catch{Wf=!1}var is=Wf?{passive:!1}:!1,fR=function(e){return e.tagName==="TEXTAREA"},bb=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!fR(e)&&r[t]==="visible")},hR=function(e){return bb(e,"overflowY")},pR=function(e){return bb(e,"overflowX")},ov=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=_b(e,n);if(i){var s=kb(e,n),o=s[1],a=s[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},mR=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},gR=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},_b=function(e,t){return e==="v"?hR(t):pR(t)},kb=function(e,t){return e==="v"?mR(t):gR(t)},vR=function(e,t){return e==="h"&&t==="rtl"?-1:1},yR=function(e,t,r,n,i){var s=vR(e,window.getComputedStyle(t).direction),o=s*n,a=r.target,l=t.contains(a),c=!1,d=o>0,f=0,h=0;do{if(!a)break;var p=kb(e,a),b=p[0],g=p[1],x=p[2],w=g-x-s*b;(b||w)&&_b(e,a)&&(f+=w,h+=b);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(f)<1||!i)||!d&&(Math.abs(h)<1||!i))&&(c=!0),c},vl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},av=function(e){return[e.deltaX,e.deltaY]},lv=function(e){return e&&"current"in e?e.current:e},wR=function(e,t){return e[0]===t[0]&&e[1]===t[1]},xR=function(e){return`
320  .block-interactivity-`.concat(e,` {pointer-events: none;}
321  .allow-interactivity-`).concat(e,` {pointer-events: all;}
322`)},bR=0,ss=[];function _R(e){var t=y.useRef([]),r=y.useRef([0,0]),n=y.useRef(),i=y.useState(bR++)[0],s=y.useState(xb)[0],o=y.useRef(e);y.useEffect(function(){o.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var g=BA([e.lockRef.current],(e.shards||[]).map(lv),!0).filter(Boolean);return g.forEach(function(x){return x.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=y.useCallback(function(g,x){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!o.current.allowPinchZoom;var w=vl(g),m=r.current,v="deltaX"in g?g.deltaX:m[0]-w[0],_="deltaY"in g?g.deltaY:m[1]-w[1],k,E=g.target,j=Math.abs(v)>Math.abs(_)?"h":"v";if("touches"in g&&j==="h"&&E.type==="range")return!1;var T=ov(j,E);if(!T)return!0;if(T?k=j:(k=j==="v"?"h":"v",T=ov(j,E)),!T)return!1;if(!n.current&&"changedTouches"in g&&(v||_)&&(n.current=k),!k)return!0;var L=n.current||k;return yR(L,x,g,L==="h"?v:_,!0)},[]),l=y.useCallback(function(g){var x=g;if(!(!ss.length||ss[ss.length-1]!==s)){var w="deltaY"in x?av(x):vl(x),m=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&wR(k.delta,w)})[0];if(m&&m.should){x.cancelable&&x.preventDefault();return}
vendor: 4,333 bytes, line 322
322if(!m){var v=(o.current.shards||[]).map(lv).filter(Boolean).filter(function(k){return k.contains(x.target)}),_=v.length>0?a(x,v[0]):!o.current.noIsolation;_&&x.cancelable&&x.preventDefault()}}},[]),c=y.useCallback(function(g,x,w,m){var v={name:g,delta:x,target:w,should:m,shadowParent:kR(w)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(_){return _!==v})},1)},[]),d=y.useCallback(function(g){r.current=vl(g),n.current=void 0},[]),f=y.useCallback(function(g){c(g.type,av(g),g.target,a(g,e.lockRef.current))},[]),h=y.useCallback(function(g){c(g.type,vl(g),g.target,a(g,e.lockRef.current))},[]);y.useEffect(function(){return ss.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,is),document.addEventListener("touchmove",l,is),document.addEventListener("touchstart",d,is),function(){ss=ss.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,is),document.removeEventListener("touchmove",l,is),document.removeEventListener("touchstart",d,is)}},[]);var p=e.removeScrollBar,b=e.inert;return y.createElement(y.Fragment,null,b?y.createElement(s,{styles:xR(i)}):null,p?y.createElement(dR,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function kR(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const SR=JA(wb,_R);var Sb=y.forwardRef(function(e,t){return y.createElement(fu,Ir({},e,{ref:t,sideCar:SR}))});Sb.classNames=fu.classNames;var ER=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},os=new WeakMap,yl=new WeakMap,wl={},wd=0,Eb=function(e){return e&&(e.host||Eb(e.parentNode))},jR=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Eb(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},CR=function(e,t,r,n){var i=jR(t,Array.isArray(e)?e:[e]);wl[r]||(wl[r]=new WeakMap);var s=wl[r],o=[],a=new Set,l=new Set(i),c=function(f){!f||a.has(f)||(a.add(f),c(f.parentNode))};i.forEach(c);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))d(h);else try{var p=h.getAttribute(n),b=p!==null&&p!=="false",g=(os.get(h)||0)+1,x=(s.get(h)||0)+1;os.set(h,g),s.set(h,x),o.push(h),g===1&&b&&yl.set(h,!0),x===1&&h.setAttribute(r,"true"),b||h.setAttribute(n,"true")}catch(w){console.error("aria-hidden: cannot operate on ",h,w)}})};return d(t),a.clear(),wd++,function(){o.forEach(function(f){var h=os.get(f)-1,p=s.get(f)-1;os.set(f,h),s.set(f,p),h||(yl.has(f)||f.removeAttribute(n),yl.delete(f)),p||f.removeAttribute(r)}),wd--,wd||(os=new WeakMap,os=new WeakMap,yl=new WeakMap,wl={})}},TR=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=ER(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),CR(n,i,r,"aria-hidden")):function(){return null}},hu="Dialog",[jb,Sz]=Vi(hu),[NR,_r]=jb(hu),Cb=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:o=!0}=e,a=y.useRef(null),l=y.useRef(null),[c,d]=Gc({prop:n,defaultProp:i??!1,onChange:s,caller:hu});return u.jsx(NR,{scope:t,triggerRef:a,contentRef:l,contentId:Fo(),titleId:Fo(),descriptionId:Fo(),open:c,onOpenChange:d,onOpenToggle:y.useCallback(()=>d(f=>!f),[d]),modal:o,children:r})};Cb.displayName=hu;var Tb="DialogTrigger",Nb=y.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=_r(Tb,r),s=dt(t,i.triggerRef);return u.jsx(xe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":yp(i.open),...n,ref:s,onClick:fe(e.onClick,i.onOpenToggle)})});Nb.displayName=Tb;var gp="DialogPortal",[PR,Pb]=jb(gp,{forceMount:void 0}),Ab=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=e,s=_r(gp,t);return u.jsx(PR,{scope:t,forceMount:r,children:y.Children.map(n,o=>u.jsx(Bi,{present:r||s.open,children:u.jsx(Kh,{asChild:!0,container:i,children:o})}))})};Ab.displayName=gp;var kc="DialogOverlay",Rb=y.forwardRef((e,t)=>{const r=Pb(kc,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,s=_r(kc,e.__scopeDialog);return s.modal?u.jsx(Bi,{present:n||s.open,children:u.jsx(RR,{...i,ref:t})}):null});Rb.displayName=kc;var AR=ca("DialogOverlay.RemoveScroll"),RR=y.forwardRef((e,t)=>
vendor: 4,980 bytes, lines 322-326
322{const{__scopeDialog:r,...n}=e,i=_r(kc,r);return u.jsx(Sb,{as:AR,allowPinchZoom:!0,shards:[i.contentRef],children:u.jsx(xe.div,{"data-state":yp(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),zi="DialogContent",Ob=y.forwardRef((e,t)=>{const r=Pb(zi,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,s=_r(zi,e.__scopeDialog);return u.jsx(Bi,{present:n||s.open,children:s.modal?u.jsx(OR,{...i,ref:t}):u.jsx(IR,{...i,ref:t})})});Ob.displayName=zi;var OR=y.forwardRef((e,t)=>{const r=_r(zi,e.__scopeDialog),n=y.useRef(null),i=dt(t,r.contentRef,n);return y.useEffect(()=>{const s=n.current;if(s)return TR(s)},[]),u.jsx(Ib,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:fe(e.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:fe(e.onPointerDownOutside,s=>{const o=s.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&s.preventDefault()}),onFocusOutside:fe(e.onFocusOutside,s=>s.preventDefault())})}),IR=y.forwardRef((e,t)=>{const r=_r(zi,e.__scopeDialog),n=y.useRef(!1),i=y.useRef(!1);return u.jsx(Ib,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,s),s.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),s.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=s.target;((c=r.triggerRef.current)==null?void 0:c.contains(o))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),Ib=y.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,...o}=e,a=_r(zi,r),l=y.useRef(null),c=dt(t,l);return VA(),u.jsxs(u.Fragment,{children:[u.jsx(mb,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s,children:u.jsx(qc,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":yp(a.open),...o,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx($R,{titleId:a.titleId}),u.jsx(zR,{contentRef:l,descriptionId:a.descriptionId})]})]})}),vp="DialogTitle",$b=y.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=_r(vp,r);return u.jsx(xe.h2,{id:i.titleId,...n,ref:t})});$b.displayName=vp;var Db="DialogDescription",zb=y.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=_r(Db,r);return u.jsx(xe.p,{id:i.descriptionId,...n,ref:t})});zb.displayName=Db;var Lb="DialogClose",Mb=y.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=_r(Lb,r);return u.jsx(xe.button,{type:"button",...n,ref:t,onClick:fe(e.onClick,()=>i.onOpenChange(!1))})});Mb.displayName=Lb;function yp(e){return e?"open":"closed"}var Fb="DialogTitleWarning",[Ez,Ub]=OS(Fb,{contentName:zi,titleName:vp,docsSlug:"dialog"}),$R=({titleId:e})=>{const t=Ub(Fb),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
323
324If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
325
326For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},DR="DialogDescriptionWarning",zR=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ub(DR).contentName}}.`;return y.useEffect(()=>{var s;const i=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},LR=Cb,MR=Nb,FR=Ab,Vb=Rb,Bb=Ob,Wb=$b,Hb=zb,UR=Mb;const VR=LR,BR=MR,WR=FR,Zb=y.forwardRef(({className:e,...t},r)=>u.jsx(Vb,{className:me("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));Zb.displayName=Vb.displayName;const HR=Ta("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Kb=y.forwardRef(({side:e="right",className:t,children:r,...n},i)=>u.jsxs(WR,{children:[u.jsx(Zb,{}),u.jsxs(Bb,{ref:i,className:me(HR({side:e}),t),...n,children:[r,u.jsxs(UR,{className:"absolute right-4 top-4 roun
326ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[u.jsx(Mw,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Kb.displayName=Bb.displayName;const qb=({className:e,...t})=>u.jsx("div",{className:me("flex flex-col space-y-2 text-center sm:text-left",e),...t});qb.displayName="SheetHeader";const Gb=y.forwardRef(({className:e,...t},r)=>u.jsx(Wb,{ref:r,className:me("text-lg font-semibold text-foreground",e),...t}));Gb.displayName=Wb.displayName;const ZR=y.forwardRef(({className:e,...t},r)=>u.jsx(Hb,{ref:r,className:me("text-sm text-muted-foreground",e),...t}));ZR.displayName=Hb.displayName;const Ia=()=>{const[e,t]=y.useState(!1),[r,n]=y.useState(!1),i=ou(),s=oo(),{user:o,signOut:a}=pb();y.useEffect(()=>{(async()=>{if(!o){n(!1);return}try{const{data:h,error:p}=await mr.rpc("is_admin",{_user_id:o.id});n(!p&&h===!0)}catch{n(!1)}})()},[o]);const l=f=>{setTimeout(()=>{const h=document.getElementById(f);h&&h.scrollIntoView({behavior:"smooth"})},100)},c=f=>{if(f.startsWith("#")){const h=f.substring(1);s.pathname!=="/"&&i("/"),l(h)}},d=[{href:"#about",label:"Despre noi"},{href:"#partnerships",label:"Parteneriate"},{href:"/pasii-participarii",label:"Pașii participării"},{href:"#contact",label:"Contact"}];return u.jsx("header",{className:"fixed top-0 left-0 right-0 z-50 bg-background shadow-sm",children:u.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:u.jsxs("div",{className:"flex items-center justify-between h-20",children:[u.jsxs(Vt,{to:"/",className:"flex items-center space-x-4 hover:opacity-80 transition-opacity",children:[u.jsx("img",{src:"/logo.jpg",alt:"Aripi Pentru Viitor Logo",className:"w-12 h-12 rounded-full object-cover"}),u.jsx("div",{children:u.jsx("h1",{className:"text-2xl font-bold text-primary font-gishela",children:"Aripi Pentru Viitor"})})]}),u.jsx("nav",{className:"hidden lg:flex items-center space-x-12",children:d.map(f=>f.href.startsWith("/")?u.jsx(Vt,{to:f.href,className:"text-foreground hover:text-primary transition-colors duration-200 font-medium text-lg",children:f.label},f.href):u.jsx("button",{onClick:()=>c(f.href),className:"text-foreground hover:text-primary transition-colors duration-200 font-medium text-lg",children:f.label},f.href))}),u.jsx("div",{className:"hidden lg:flex items-center space-x-4",children:o?u.jsxs(u.Fragment,{children:[r&&u.jsx(Vt,{to:"/admin",children:u.jsxs(Ae,{variant:"outline",size:"sm",children:[u.jsx(sg,{className:"mr-2 h-4 w-4"}),"Admin"]})}),u.jsxs(Ae,{variant:"outline",size:"sm",onClick:a,children:[u.jsx(ng,{className:"mr-2 h-4 w-4"}),"Ieșire"]})]}):u.jsxs(u.Fragment,{children:[u.jsx(Vt,{to:"/auth",children:u.jsx(Ae,{variant:"outline",size:"lg",children:"Conectare"})}),u.jsx(Vt,{to:"/devino-voluntar",children:u.jsx(Ae,{size:"lg",className:"bg-primary hover:bg-primary-hover text-primary-foreground px-6",children:"Devino voluntar"})})]})}),u.jsxs(VR,{open:e,onOpenChange:t,children:[u.jsx(BR,{asChild:!0,className:"lg:hidden",children:u.jsxs(Ae,{variant:"ghost",size:"sm",className:"p-2",children:[u.jsx(LE,{className:"h-6 w-6"}),u.jsx("span",{className:"sr-only",children:"Deschide meniul"})]})}),u.jsxs(Kb,{side:"right",className:"w-[300px] sm:w-[400px]",children:[u.jsx(qb,{children:u.jsx(Gb,{className:"text-left",children:"Meniu"})}),u.jsxs("div",{className:"mt-8 space-y-8",children:[u.jsx("nav",{className:"space-y-6",children:d.map(f=>f.href.startsWith("/")?u.jsx(Vt,{to:f.href,onClick:()=>t(!1),className:"block text-lg text-foreground hover:text-primary transition-colors duration-200",children:f.label},f.href):u.jsx("button",{onClick:()=>{c(f.href),t(!1)},className:"block text-lg text-foreground hover:text-primary transition-colors duration-200",children:f.label},f.href))}),u.jsx("div",{className:"space-y-4 pt-6 border-t border-border",children:o?u.jsxs(u.Fragment,{children:[r&&u.jsx(Vt,{to:"/admin",onClick:()=>t(!1),children:u.jsxs(Ae,{variant:"outline",className:"w-full",size:"lg",children:[u.jsx(sg,{className:"mr-2 h-4 w-4"}),"Admin"]})}),u.jsxs(Ae,{variant:"outline",className:"w-full",size:"lg",onClick:()=>{a(),t(!1)},children:[u.jsx(ng,{className:"mr-2 h-4 w-4"}),"Ieșire"]})]}):u.jsxs(u.Fragment,{children:[u.jsx(Vt,{to:"/auth",onClick:()=>t(!1),children:u.jsx(Ae,{variant:"outline",className:"w-full",size:"lg",children:"Conectare"})}),u.jsx(Vt,{to:"/devino-voluntar",onClick:()=>t(!1),children:u.jsx(Ae,{className:"w-full bg-primary hover:bg-primary-hover",size:"lg",children:"Devino voluntar"})})]})})]})]})]})]})})})},KR="/assets/worldmap-bg-BIJhxD_S.jpg",qR=()=>{const[e,t]=y.useState("initial"),r=ou();y.useEffect(()=>{const o=setTimeout(()=>{t("dropping")},4e3),a=setTimeout(()=>{t("rising")},8e3),l=setTimeout(()=>{t("settled")},11e3);return()=>{clearTimeout(o),clearTimeout(a),clearTimeout(l)}},[]);const n=Array.from({length:20},(o,a)=>({id:a,size:Math.random()*60+20,left:Math.random()*100,delay:Math.random()*10,duration:Math.random()*20+10})),s=(()=>{const o="w-48 h-48 rounded-full bg-white backdrop-blur-sm p-3 shadow-2xl border-4 border-white/30";switch(e){case"initial":return{className:`${o}`,style:{transform:"translateY(-60px)",animation:"bounce 1.2s ease-in-out 3 both"}};case"dropping":return{className:`${o}`,style:{transform:"translateY(80px)",transition:"transform 4s cubic-bezier(0.25, 0.46, 0.45, 0.94)"}};case"rising":return{className:`${o}`,style:{transform:"translateY(-120px)",transition:"transform 3s cubic-bezier(0.175, 0.885, 0.32, 1.275)"}};case"settled":return{className:`${o}`,style:{transform:"translateY(-120px)",transition:"transform 1s ease-out"}};default:return{className:`${o}`,style:{transform:"translateY(-120px)",transition:"transform 1s ease-out"}}}})();return u.jsxs("section",{className:"relative min-h-screen flex items-center justify-center overflow-hidden pt-40",children:[u.jsx("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${KR})`}}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/80 via-primary/70 to-primary/90"}),u.jsx("div",{className:"absolute inset-0 pointer-events-none",children:n.map(o=>u.jsx("div",{className:"absolute rounded-full bg-white/10 backdrop-blur-sm border border-white/20 animate-bubble-float",style:{width:`${o.size}px`,height:`${o.size}px`,left:`${o.left}%`,animationDelay:`${o.delay}s`,animationDuration:`${o.duration}s`,bottom:"-100px"}},o.id))}),u.jsx("div",{className:"relative z-10 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:u.jsxs("div",{className:"space-y-3",children:[u.jsx("div",{className:"flex justify-center mb-5 relative",children:u.jsx("div",{className:s.className,style:s.style,children:u.jsx("img",{src:"/logo.jpg",alt:"Aripi Pentru Viitor Logo",className:"w-full h-full rounded-full object-cover shadow-lg ring-2 ring-white/20"})})}),u.jsx("div",{className:"space-y-6",children:u.jsx("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-gishela font-semibold text-white tracking-tight",children:"Aripi Pentru Viitor"})}),u.jsxs("div",{className:"space-y-6",children:[u.jsx("h2",{className:"text-2xl sm:text-3xl lg:text-4xl text-white font-light leading-relaxed max-w-3xl mx-auto",children:"Conectăm Tinerii Din Moldova"}),u.jsx("p",{className:"text-lg text-white/80 max-w-2xl mx-auto leading-relaxed",children:"Ofer
326im aripi tinerilor moldoveni pentru a-și construi propriul viitor prin educație non-formală și oportunități de dezvoltare"})]}),u.jsx("div",{className:"pt-8",children:u.jsx(Ae,{size:"lg",onClick:()=>r("/devino-voluntar"),className:"bg-secondary hover:bg-secondary-hover text-white px-12 py-6 text-xl font-semibold rounded-full shadow-2xl transform hover:scale-105 transition-all duration-300",children:"Alătură-te nouă"})}),u.jsxs("div",{className:"grid grid-cols-3 gap-8 max-w-2xl mx-auto pt-16 pb-8",children:[u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"w-20 h-20 bg-white/10 backdrop-blur-sm rounded-full flex items-center justify-center mx-auto mb-4 border border-white/20",children:u.jsx("div",{className:"text-3xl font-bold text-white",children:"100+"})}),u.jsx("div",{className:"text-white/70 text-sm uppercase tracking-wide",children:"Tineri ajutați"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"w-20 h-20 bg-white/10 backdrop-blur-sm rounded-full flex items-center justify-center mx-auto mb-4 border border-white/20",children:u.jsx("div",{className:"text-3xl font-bold text-white",children:"8+"})}),u.jsx("div",{className:"text-white/70 text-sm uppercase tracking-wide",children:"Proiecte Erasmus+"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"w-20 h-20 bg-white/10 backdrop-blur-sm rounded-full flex items-center justify-center mx-auto mb-4 border border-white/20",children:u.jsx("div",{className:"text-3xl font-bold text-white",children:"7+"})}),u.jsx("div",{className:"text-white/70 text-sm uppercase tracking-wide",children:"Țări partenere"})]})]})]})}),u.jsx("div",{className:"absolute bottom-8 left-1/2 transform -translate-x-1/2",children:u.jsx("div",{className:"w-8 h-12 flex justify-center",children:u.jsx(wf,{className:"w-6 h-6 text-white/60 transform rotate-90 animate-bounce"})})})]})},GR="/assets/value1-solidarity-BioDftQK.jpg",QR="/assets/value2-innovation-haGfPpDY.jpg",YR="/assets/value3-teamwork-ziNB4LQK.jpg",JR="/assets/value4-development-BvHQcZcC.jpg",XR="/assets/value5-collaboration-_NLo-yTb.jpg",eO="/assets/value-sustainability-BRepD9Vm.jpg",tO=()=>{const e=[{icon:xf,title:"Solidaritate",description:"Construim punți între tineri și comunități",image:GR},{icon:$i,title:"Implicare civică",description:"Încurajăm participarea activă în societate",image:YR},{icon:DE,title:"Sustenabilitate",description:"Protejăm mediul pentru generațiile viitoare",image:eO},{icon:Lw,title:"Inovare",description:"Găsim soluții creative pentru provocările moderne",image:QR},{icon:NE,title:"Interculturalitate",description:"Celebrăm diversitatea și promovăm înțelegerea",image:JR},{icon:VE,title:"Excelență",description:"Ne străduim pentru rezultate de calitate",image:XR}];return u.jsx("section",{id:"about",className:"py-24 bg-muted/30",children:u.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:u.jsxs("div",{className:"max-w-4xl mx-auto",children:[u.jsxs("div",{className:"text-center mb-20",children:[u.jsxs("h2",{className:"text-3xl md:text-4xl font-bold text-purple mb-6",children:["Despre"," ",u.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-wings",children:"Aripi Pentru Viitor"})]}),u.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto leading-relaxed mb-16",children:"O organizație de tineret din Moldova dedicată dezvoltării personale și profesionale prin educație non-formală și proiecte europene. Ne concentrăm pe oferirea de oportunități tinerilor din Moldova pentru a-și construi viitorul."}),u.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-12",children:e.map((t,r)=>u.jsxs("div",{className:"flex flex-col items-center text-center group",children:[u.jsxs("div",{className:"relative mb-6 group-hover:scale-105 transition-transform duration-300",children:[u.jsx("div",{className:"w-48 h-48 rounded-full overflow-hidden shadow-2xl border-4 border-primary/20",children:u.jsx("img",{src:t.image,alt:t.title,className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-500"})}),u.jsx("div",{className:"absolute inset-0 bg-gradient-wings/20 rounded-full opacity-0 group-hover:opacity-100 transition-opacity duration-300"})]}),u.jsx("h4",{className:"text-xl font-bold text-purple mb-2",children:t.title}),u.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed max-w-xs",children:t.description})]},r))})]}),u.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 mb-20",children:[u.jsxs("div",{className:"space-y-6",children:[u.jsx("h3",{className:"text-2xl font-bold text-purple mb-6",children:"Povestea noastră"}),u.jsx("p",{className:"text-muted-foreground leading-relaxed text-base",children:'Aripi Pentru Viitor s-a născut din dorința de a aduce programele europene în Republica Moldova, unde accesul la resurse educaționale și programe de dezvoltare este mai limitat. Fondată cu viziunea de a oferi "aripi" tinerilor moldoveni pentru a-și construi propriul viitor.'}),u.jsx("p",{className:"text-muted-foreground leading-relaxed text-base",children:"Prin proiectele Erasmus+, traininguri internaționale și inițiative locale, dorim să oferim tinerilor din Moldova - at
326ât din mediul urban cât și rural - acces la oportunități de dezvoltare personală și profesională, competențe digitale și sustenabilitate."})]}),u.jsxs("div",{className:"space-y-6",children:[u.jsx("h3",{className:"text-2xl font-bold text-purple mb-6",children:"Misiunea noastră"}),u.jsx("p",{className:"text-muted-foreground leading-relaxed text-base mb-6",children:"Sprijinim tinerii din Moldova în dezvoltarea personală și profesională prin educație non-formală, antreprenoriat, digitalizare și sustenabilitate. Credem că fiecare tânăr moldovean merită șansa de a-și îndeplini visurile prin accesul la programe europene de calitate."}),u.jsxs("div",{className:"flex items-center space-x-4 p-6 bg-gradient-to-r from-primary/5 to-secondary/5 rounded-xl border border-primary/10",children:[u.jsx("div",{className:"w-14 h-14 bg-gradient-wings rounded-full flex items-center justify-center animate-wings flex-shrink-0",children:u.jsx(xf,{className:"w-7 h-7 text-white"})}),u.jsxs("div",{children:[u.jsx("p",{className:"font-semibold text-foreground text-lg mb-1",children:"Viziunea noastră"}),u.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"O Moldova în care fiecare tânăr are aripi pentru a zbura către viitorul său"})]})]})]})]})]})})})},rt=y.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:me("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));rt.displayName="Card";const vt=y.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:me("flex flex-col space-y-1.5 p-6",e),...t}));vt.displayName="CardHeader";const yt=y.forwardRef(({className:e,...t},r)=>u.jsx("h3",{ref:r,className:me("text-2xl font-semibold leading-none tracking-tight",e),...t}));yt.displayName="CardTitle";const wt=y.forwardRef(({className:e,...t},r)=>u.jsx("p",{ref:r,className:me("text-sm text-muted-foreground",e),...t}));wt.displayName="CardDescription";const Je=y.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:me("p-6 pt-0",e),...t}));Je.displayName="CardContent";const rO=y.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:me("flex items-center p-6 pt-0",e),...t}));rO.displayName="CardFooter";const nO="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAADVCAMAAAARktncAAAAM1BMVEUAM5kHN5SdkDskSIPzxAfMrR7YtBf/zABBWnG8oygUP4wwUHuCgUvlvA9UZWZqclkDNZZkEduEAAAF4ElEQVR42u2d23aDIBBF5TqAovz/1/bBeElqNAUbBc5+ale6rJlwYAaOk6YBAAAAAAAAAAAAAAAAAAAAAACQQAiIQRJ9jxgkYTlikISUiEHKDNgStQhDAh1RhygkoIk0ohBPSwQNR8B6M8KJiPjjl54hMp8ySPqFHBCXV8zbV4R6jZ8SEZcpXak760PonuPX7ZR0ulZtGxJ7r/olfH5vkAmqdQjy/RzP2Sl+1u3nipWWe0we5HiziruDXNGzShVMuxpu9BTA3TgLoko1zA/GVrvMgeJgnNapYU9E6iAy3hh/EGdFRL6muPVaK2utHTO98Uetfosw6HH1cHZTw0ZtXaaK7Vfzu8zw7ebcNsxDcUPDrf9drFQyFzL78sb51irKZbuEfGuSY/zlMvvZTrm1rtzW3TqqbnuV6GW1tXKrl3Ej4i+zKpl1ZbtebBo8PqRcJkwToawtlzYf5XjHQ3C+TG3brssCkHTmsezZ1JZLeyIiTQe59CFqvoyvK37tuEfVSyJKSD7cuIgbX52GORF3TROcndPlmCVkeCR/zNZ2/Cmpn2exhHNLPUd/qEvDRotVSRatYeGXywhd055Wu07+WHQi066Tv4DzYwAAKHHJrfJfnwe70J9Wgmch9Gn7LSkIKuGMxF5XZHVkC1CwTNtvSUGVsM9qUvdMUxRcgGchcLpso6QIzwKTqXumKQqmbH1H4VP/wX9MGlueBZ3behw+9B/8B4V4Fj7zH/zPvy7EszDQsf/gnyjDsxBO8h9EpTC2CM+Co1P8B1Gf3uxZyNhyFBb/gbvss8s6l14m869PQ0MRngVPRNIS0ferekVExGXengUzPqJl/Pc17Ma8U6isPQv88YgWs1/X8OxZ6HLWsJSmCY/3o76t4GEuiXJtuxCMWnTb6m9qOLilbAxO5boOP8097KuZtHgqG0UDAAAAAAAAAAAAUDoMt5NGd6s9JJHfk3TqVrfcqczCF9i9ep9qyk3D/QVn6e9xlJvdnPELztLf62HI7miOSbqTQ15l19ajv8QPs6PgTCwybupfbImIuql/cbhIudPddEREdrqbW7u1uq3+xZfN3/3W3dw8I1x5Km9gr3WvNuMM3JYv/uSr7bUvLb15DkvJWjjXf+BrSchMkkGn7/SBu1kSOhuLB7/Ml7qp4uysqnNru3vk0vNCkk0uvVjL75BLL27zXOzmgRORbnt5Dw0PRCT71uejYSbH1UOoW2jYjl+l4WwuGg5mShdYR5dvwwU2f5XGkIuG7dwSLJjrH1MbZp92I3weLRRWyV9wl1ee3K2rpCY38N2iAAAAAAAAAAAAAN8GbZDTQBvkRNAGORG0QU5UMNogJxHQBjkRtEFOVjDaIEetvWiDnPo20AY5EYc2yKmgDXKylq5rg+zQBjkx/yyiDXKDNsgnZNHX2M0D2iCfkEWjDXKagstpg+yua4Mcsm+DPL2fi9ogh4zbIDfrNsjiq22Qm1Ub5KaMNsjhq22Qw1Mb5IA2yAAAUCDmVpfJj7M8C0X4D+IqvVPyC0GVDsHAzznv7PI/u4xUsDynRZ7O9+wybQCe5Fkow38Qw0mehSL8B1H4czwLKu89079zkmdh03+g+hoi+CfPwvsntgvxH8TwF89C/35MleI/iOGpp9quZ8HurQ+F+A9i+NizsL8f71QR/oPILPoDz0JoD87UFv9Bbbn04lkQB0led5RFj1Q2AFeehW6/TNsv97oi/AexWbTkdJBLt0djqwj/QUwd3I6ehVZvehbY1L+YExHxqX/x72nOjauH0NVpeP7q5u2W8cNW/+Ktv3vkkIwTdVUFcPIshNBvTnJCvcZPbSw2Qc/PcvWyKg2bxacQhN8qIEL3HL9uK9sRq7ayQte0p9Wuw/HGs2BWta7fDo4IT/NqA96UzBUVuafSfZQqgr0s+lHnIhZREyV9Vu6BHQV7Yzw0HFmt6HH1cBYajkLMNUoHDUdVe3JO7IzkiMffA7jaO3AIIAAAAAAAAAAAAAAAAAAAAAAAAABq5AcebEiVMMp0agAAAABJRU5ErkJggg==",iO=()=>{const e=[{name:"EDYN",project:"Proactive Truth Vigilente",type:"Erasmus+ KA1",year:"2024",description:"Program de combatere a dezinformării și promovare a adevărului prin educația tinerilor"},{name:"Stowarzyszenie",project:"The world is within your reach YouthHuman Impact",type:"Erasmus+ KA1",year:"2024",description:"Proiect internațional pentru dezvoltarea impactului social al tinerilor"}];return u.jsx("section",{id:"partnerships",className:"py-24 bg-gradient-partnerships relative overflow-hidden",children:u.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:u.jsxs("div",{className:"max-w-6xl mx-auto",children:[u.jsxs("div",{className:"text-center mb-20 relative overflow-hidden",children:[u.jsx("div",{className:"absolute inset-x-0 top-0 bottom-0 flex items-center justify-center opacity-5 -mx-8 sm:-mx-12 lg:-mx-16",children:u.jsx("img",{src:nO,alt:"European Union Flag",className:"w-full h-full object-cover max-w-none"})}),u.jsxs("div",{className:"relative z-10 py-16",children:[u.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-6 [text-shadow:_0_2px_8px_rgb(0_0_0_/_50%)]",children:u.jsx("span",{className:"text-white [text-shadow:_0_2px_8px_rgb(0_0_0_/_50%)]",children:"Parteneriate"})}),u.jsx("p",{className:"text-xl text-white/95 max-w-2xl mx-auto leading-relaxed [text-shadow:_0_1px_4px_rgb(0_0_0_/_40%)] bg-white/10 backdrop-blur-sm rounded-lg px-6 py-4 border border-white/20",children:"Colaborăm cu organizații din toată Europa pentru a aduce oportunități unice tinerilor din Moldova prin programele Erasmus+"})]})]}),u.jsxs("div",{className:"mb-20",children:[u.jsx("h3",{className:"text-2xl font-bold text-white text-center mb-12 [text-shadow:_0_2px_8px_rgb(0_0_0_/_50%)]",children:"Proiectele noastre"}),u.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:e.map((t,r)=>u.jsx(rt,{className:"hover-lift border-0 shadow-md",children:u.jsxs(Je,{className:"p-8",children:[u.jsxs("div",{className:"flex items-start justify-between mb-6",children:[u.jsx("div",{className:"w-14 h-14 bg-gradient-wings rounded-full flex items-center justify-center shadow-lg",children:u.jsx(RE,{className:"w-7 h-7 text-white"})}),u.jsxs("span",{className:"text-xs px-3 py-2 bg-primary/10 text-primary rounded-full font-medium",children:[t.type," - ",t.year]})]}),u.jsx("h4",{className:"text-xl font-semibold text-foreground mb-3 leading-tight",children:t.project}),u.jsxs("p",{className:"text-sm text-muted-foreground mb-4 font-medium",children:["Partener: ",t.name]}),u.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:t.description})]})},r))})]}),u.jsxs("div",{className:"text-center bg-white/10 backdrop-blur-sm rounded-2xl p-12 border border-white/20 shadow-lg",children:[u.jsx("h3",{className:"text-2xl font-bold text-white mb-6 [text-shadow:_0_1px_4px_rgb(0_0_0_/_30%)]",children:"Vrei să colaborezi cu noi?"}),u.jsx("p",{className:"text-white/90 mb-8 max-w-2xl mx-auto leading-relaxed text-base [text-shadow:_0_1px_2px_rgb(0_0_0_/_20%)]",children:"Căutăm organizații partenere pentru proiecte Erasmus+ care să ne ajute să oferim și mai multe oportunități tinerilor din Moldova."}),u.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[u.jsx(Ae,{size:"lg",className:"bg-gradient-wings hover:opacity-90 px-8 py-6 text-base",children:"Contactează-ne"}),u.jsx(Ae,{variant:"outline",size:"lg",className:"border-white/40 text-white hover:bg-white/20 hover:text-white px-8 py-6 text-base backdrop-blur-sm",children:"Descarcă PIF"})]})]})]})})})},fr=y.forwardRef(({className:e,type:t,...r},n)=>u.jsx("input",{type:t,className:me("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:n,...r}));fr.displayName="Input";const $a=()=>{const e=[{name:"Despre noi",href:"#about"},{name:"Proiecte",href:"/proiecte"},{name:"Parteneriate",href:"#partnerships"},{name:"Devino voluntar",href:"/devino-voluntar"}],t=[{name:"Facebook",icon:AE,href:"https://www.facebook.com/profile.php?id=61580504565300",color:"hover:text-blue-600"},{name:"Instagram",icon:$E,href:"https://www.instagram.com/aripi_pentru_viitor/",color:"hover:text-pink-600"},{name:"Email",icon:bf,href:"mailto:[email protected]",color:"hover:text-primary"}];return u.jsx("footer",{id:"contact",className:"bg-primary/5 py-16 border-t border-border/50",children:u.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:u.jsxs("div",{className:"max-w-6xl mx-auto",children:[u.jsxs("div",{className:"grid lg:grid-cols-4 gap-12",children:[u.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx("div",{className:"w-14 h-14 roun
326ded-full bg-gradient-wings p-2 shadow-lg",children:u.jsx("img",{src:"/logo.jpg",alt:"Aripi Pentru Viitor Logo",className:"w-full h-full rounded-full object-cover"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl font-bold text-foreground",children:"Aripi Pentru Viitor"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Wings for the Future"})]})]}),u.jsx("p",{className:"text-muted-foreground max-w-md leading-relaxed",children:"Organizația de tineret din Moldova care construiește viitorul prin educație non-formală, antreprenoriat și implicare civică. Oferim tinerilor moldoveni oportunități de dezvoltare prin proiecte Erasmus+ și parteneriate europene."}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"flex items-center space-x-3 text-muted-foreground",children:[u.jsx(hc,{className:"w-4 h-4 text-primary"}),u.jsx("span",{className:"text-sm",children:"Chișinău, Republica Moldova"})]}),u.jsxs("div",{className:"flex items-center space-x-3 text-muted-foreground",children:[u.jsx(ME,{className:"w-4 h-4 text-primary"}),u.jsx("span",{className:"text-sm",children:"+40 764 004 994"})]}),u.jsxs("div",{className:"flex items-center space-x-3 text-muted-foreground",children:[u.jsx(bf,{className:"w-4 h-4 text-primary"}),u.jsx("span",{className:"text-sm",children:"[email protected]"})]})]})]}),u.jsxs("div",{className:"space-y-6",children:[u.jsx("h4",{className:"text-lg font-semibold text-purple",children:"Link-uri utile"}),u.jsx("ul",{className:"space-y-3",children:e.map(r=>u.jsx("li",{children:u.jsx("a",{href:r.href,className:"text-muted-foreground hover:text-primary transition-colors duration-200 text-sm",children:r.name})},r.name))})]}),u.jsxs("div",{className:"space-y-6",children:[u.jsx("h4",{className:"text-lg font-semibold text-purple",children:"Newsletter"}),u.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Primește noutăți despre proiectele și oportunitățile noastre de dezvoltare."}),u.jsxs("div",{className:"space-y-3",children:[u.jsx(fr,{type:"email",placeholder:"[email protected]",className:"bg-background/50 border-primary/20"}),u.jsx(Ae,{className:"w-full bg-gradient-wings hover:opacity-90 text-sm py-2",children:"Abonează-te"})]})]})]}),u.jsx("div",{className:"border-t border-border/30 pt-10 mt-12",children:u.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center space-y-6 md:space-y-0",children:[u.jsxs("div",{className:"flex flex-col md:flex-row items-center space-y-4 md:space-y-0 md:space-x-6",children:[u.jsxs("div",{className:"flex items-center space-x-6",children:[u.jsx("span",{className:"text-sm text-muted-foreground font-medium",children:"Urmărește-ne:"}),t.map(r=>u.jsx("a",{href:r.href,className:`text-muted-foreground transition-colors duration-200 ${r.color} hover:scale-110 transform`,"aria-label":r.name,children:u.jsx(r.icon,{className:"w-5 h-5"})},r.name))]}),u.jsx("div",{className:"text-sm text-muted-foreground",children:u.jsx("a",{href:"mailto:[email protected]",className:"hover:text-primary transition-colors",children:"[email protected]"})})]}),u.jsxs("div",{className:"text-center md:text-right",children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"© 2024 Aripi Pentru Viitor. Toate drepturile rezervate."}),u.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"Organizație de tineret înregistrată în Moldova"})]})]})})]})})})},sO=()=>u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(Ia,{}),u.jsxs("main",{children:[u.jsx(qR,{}),u.jsx(tO,{}),u.jsx(iO,{})]}),u.jsx($a,{})]}),oO=Ta("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function _s({className:e,variant:t,...r}){return u.jsx("div",{className:me(oO({variant:t}),e),...r})}const aO=()=>{const e=[{number:"1",title:"Call-ul",subtitle:"Lansarea apelului pentru participare, numit 'call'",icon:$i,description:"Anunțăm prin intermediul canalelor de comunicare online (site, email, Facebook, Instagram) mobilitățile în care Aripi pentru Viitor sunt parteneri cu toate detaliile generale despre proiect: nume, subiecte abordate, data și locul proiectului etc. cât și termenul limită de trimitere a aplicației.",note:"Call-urile sunt anunțate în limba engleză pentru că marea majoritate a mobilităților au engleza ca limbă de lucru.",color:"bg-gradient-step-1"},{number:"2",title:"Aplicarea",subtitle:"Trimitere aplicațiilor către noi",icon:tg,description:"Pentru a verifica condițiile de participare specifice fiecăruia, te rugăm să verifici call-ul cu atenție întrucât acestea pot să difere de call la call.",details:["Aplicațiile se fac exclusiv prin intermediul platformei Aripi pentru Viitor","Toate aplicațiile primite vor fi introduse într-o bază de date, pe care ulterior le vom analiza și vom alege participanții ce se potrivesc profilului cerut de proiect","Tinerii cu oportunități reduse trebuie să specifice acest aspect în aplicația lor, deoarece, dacă nu îl menționează, ulterior nu va fi luat în considerare"],color:"bg-gradient-step-2"},{number:"3",title:"Selecția",subtitle:"Selecția participanților și Confirmarea participării",icon:ll,description:"Selecția se face în aproximativ 1-3 zile lucrătoare de la deadline-ul aplicațiilor. Persoanele selectate vor primi un email și vor avea 48h la dispoziție să confirme prin semnarea contractului și, după caz, achitarea taxei de participare / dovada oportunităților reduse.",details:["În cazul în care există situații speciale, termenul de trimitere a contractului și a taxei/dovezii se poate prelungi în urma unui acord între participant și asociație","Este important ca fiecare participant să verifice frecvent contul/e-mailul și să răspundă prompt pentru a evita situațiile în care nu mai poate beneficia de această oportunitate","Această regulă asigură că toate locurile disponibile sunt ocupate de participanți activi și implicați","Există posibilitatea ca una sau mai multe persoane dintre cele selectate inițial să nu confirme sau să renunțe, astfel că vom trece la o nouă mini-selecție","De aceea, persoanele care nu au fost selectate nu vor fi anunțate"],warning:"Nerespectarea acestui termen poate duce la pierderea locului, iar acesta va fi oferit altui candidat.",color:"bg-gradient-step-3"},{number:"4",title:"Confirmarea participării",subtitle:"Contract și Taxa de participare / Dovadă oportunități reduse / Acord parental",icon:tg,description:"După confirmare, se va încheia un contract între participant și Aripi pentru Viitor, garantând participarea la toate activitățile și respectarea drepturilor acestuia în cadrul proiectului.",details:["🔹 Semnarea contractului: Contractul va fi generat automat în platformă, iar semnarea acestuia se va face digital direct din contul tău. Nu este necesar să trimiți documentul prin e-mail.","🔹 Plata taxei (dacă este cazul): Se va realiza exclusiv prin platformă, urmând instrucțiunile afișate în contul tău."],specialCases:{title:"Cazuri speciale",cases:[{category:"Oportunități reduse",description:"Tinerii cu oportunități reduse ce sunt la prima participare într-o mobilitate Erasmus+ nu vor achita taxa de participare, însă vor fi nevoiți să facă dovada că aparțin unuia din grupurile defavorizate."},{category:"Membri și voluntari",description:"Membrii activi în organizație pentru perioada de 6 luni înainte de începerea proiectului nu achită taxa de participare pentru activitățile în care asociația este coordonator sau partener."},{category:"Corpul European de Solidaritate (ESC)",description:"Aplicanții pentru oricare dintre activitățile din cadrul Corpului European de Solidaritate (ESC) NU achită taxă de participare și de asemenea contractul se va semna prin email. Informații specifice vor fi oferite de la caz la caz."},{category:"Acord parental",description:"În cazul minorilor este nevoie ca unul dintre părinți / tutori să completeze acordul parental. Acesta trebuie completat, semnat și trimis prin e-mail la [email protected]."}]},color:"bg-gradient-step-4"},{number:"5",title:"Pregătirea mobilității",subtitle:"Call de pregătire, Transport, Decont, Asigurare",icon:ig,description:"Odată ce toți participanții selectați confirmă participarea în cadrul mobilității, Aripi pentru Viitor organizează un call de pregătire cu aceștia pentru a îi informa cu diferite aspecte legate de proiect și pentru a se asigura că sunt pregătiți pentru mobilitatea ce o să aibă loc.",transportDetails:{title:"Trans
326port",info:"Transportul este responsabilitatea fiecărui participant. În majoritatea cazurilor participantul își cumpără biletele de tren/avion/autobuz, însă există și cazuri în care organizația gazdă sau Aripi pentru Viitor, în calitate de organizație de trimitere, cumpără biletele tuturor sau unora dintre participanți (această informație se va regăsii în call-ul pentru participare sau se va anunța ulterior, după caz).",travelInfo:["Se poate călători din orice localitate a Republicii Moldova","Călătoria poate fi individuală sau în grup, aceasta fiind decizia participanților","Uneori se pot sta maxim 2 zile înainte și/sau după proiect, pe costul propriu al participantului","Pentru distanțele lungi recomandăm avionul, fiind mai rapid","Biletele pot fi achiziționate de oriunde (cont propriu, agenție de turism, online etc)"],sites:[{category:"Bilete de avion",items:[{name:"Kiwi.com",url:"https://www.kiwi.com"},{name:"Momondo",url:"https://www.momondo.com"},{name:"Skyscanner",url:"https://www.skyscanner.com"}]},{category:"Autobuze",items:[{name:"FlixBus",url:"https://www.flixbus.com"},{name:"Eurolines Moldova",url:"https://eurolines.md"},{name:"Autotransport MD",url:"https://autotransport.md"}]},{category:"Trenuri",items:[{name:"CFM - Căile Ferate din Moldova",url:"https://railway.md"},{name:"Regiotrans (România)",url:"https://www.regiotrans.ro"},{name:"InterCity România",url:"https://www.cfrcalatori.ro"}]}],refund:{title:"Decontul transportului",details:["Organizația gazdă este responsabilă de decontul transportului","Fiecare participant trebuie să se încadreze în suma prestabilită alocată transportului","În cazul în care suma este depășită, participantul va suporta diferența","Trebuie păstrate toate biletele în original, boarding pass-urile, chitanțele, facturile și dovezile de plată și călătorie","Decontul se face numai pentru biletele clasa a 2-a, economic class etc.","Biletele de business class, clasa întâi la tren etc NU se decontează!"]}},insurance:{title:"Asigurare călătorie / sănătate",description:"Asigurarea de călătorie nu este inclusă în bugetul proiectului, participantul fiind nevoit să suporte costul acesteia.",note:"Toți cetățenii Uniunii Europene ce dețin Cardul European de Sănătate beneficiază de asistență medicală gratuită pe teritoriul tuturor statelor membre."},color:"bg-gradient-step-5"},{number:"6",title:"Mobilitatea",subtitle:"Cazare și Masă, Activități, Seara interculturală",icon:OE,description:"Participanții în cadrul unei mobilități Erasmus+ beneficiază gratuit de cazare, 3 mese pe zi și pauzele de cafea oferite de către organizatori.",accommodationInfo:["Cazarea se poate face în diferite structuri precum: hoteluri, pensiuni, vile, hosteluri, corturi normale sau de glamping","Tipul de cazare este cunoscut de către participanți înainte începerii mobilității"],activities:["Organizația gazdă este responsabilă de activități, programul fiind pus la dispoziție participanților înainte sau pe parcursul proiectului","Prezența la activități este obligatorie. Prin semnarea contractului, participantul își asumă să participe la toate activitățile prevăzute","Singurele excepții acceptate sunt reprezentate de situațiile obiective/urgente/neprevăzute","În cazul în care participantul nu se prezintă la activități, din motive neîntemeiate, i se poate imputa plata parțială sau totală a cheltuielilor","Se organizează seri culturale - participanții din fiecare țară au ocazia de a-și prezenta specificul național","Posibilă prezentare a Aripi pentru Viitor în cadrul unora dintre mobilități"],color:"bg-gradient-step-6"},{number:"7",title:"Diseminarea",subtitle:"Ce se întâmplă după mobilitate",icon:FE,description:"Sperăm că experiența ta în proiect a fost plăcută și utilă și că te-ai întors cu informații și prieteni noi. Parte din proiect este și diseminarea. Asta înseamnă că unele din lucrurile pe care le-ai descoperit și învățat pe parcursul mobilității trebuie să le împărtășești cu prietenii, colegii și/sau alți tineri din comunitate.",details:["Împărtășește cu prietenii, colegii și/sau alți tineri din comunitate informațiile dobândite","Trimite-ne poze și filmări cu experiența trăită","Lasă o recenzie pe pagina noastră de Facebook sau Google","Povestește-ne experiența la [email protected] - o vom publica pe site","Ne poți contacta oricând în vederea diseminării și te încurajăm să o faci"],color:"bg-gradient-step-7"}];return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(Ia,{}),u.jsx("section",{className:"relative py-20 bg-gradient-to-br from-primary/5 via-background to-secondary/5",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[u.jsx(_s,{className:"mb-6 bg-primary/10 text-primary border-primary/20",children:"Ghid complet Erasmus+"}),u.jsx("h1",{className:"text-4xl md:text-6xl font-bold mb-6 bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent",children:"Pașii participării la o mobilitate Erasmus+ alături de Aripi pentru Viitor"}),u.jsx("p",{className:"text-xl text-muted-foreground mb-8 leading-relaxed",children:"Te-ai hotărât să iei parte la o mobilitate alătur
326i de noi? Ți-am pregătit o listă cu pașii pe care trebuie să îi ai în vedere pentru a fi unul dintre participanții care se bucură de minunata experiență Erasmus+."}),u.jsxs("div",{className:"bg-card border rounded-lg p-6 text-left",children:[u.jsx("p",{className:"text-muted-foreground mb-4",children:"În cadrul acestei pagini sunt explicați pașii, iar dacă ai mai multe întrebări sau curiozități te invităm să verifici pagina cu Întrebări Frecvente."}),u.jsxs("p",{className:"text-muted-foreground font-medium",children:[u.jsx("strong",{children:"📧 Important:"})," Respectarea acestor pași îți va asigura o experiență Erasmus+ fără probleme! Verifică-ți constant e-mailul și contul din platformă pentru actualizări și informații importante."]})]})]})})}),u.jsx("section",{className:"py-20",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsx("div",{className:"max-w-6xl mx-auto",children:e.map((t,r)=>u.jsxs("div",{className:"relative mb-16",children:[r<e.length-1&&u.jsx("div",{className:"absolute left-8 top-20 w-0.5 h-32 bg-gradient-to-b from-border to-transparent hidden md:block"}),u.jsx(rt,{className:"overflow-hidden hover:shadow-lg transition-all duration-300",children:u.jsx(Je,{className:"p-0",children:u.jsxs("div",{className:"flex flex-col md:flex-row",children:[u.jsxs("div",{className:`${t.color} p-8 md:w-64 flex flex-col items-center justify-center text-white`,children:[u.jsx("div",{className:"w-16 h-16 rounded-full bg-white/20 flex items-center justify-center mb-4",children:u.jsx(t.icon,{className:"w-8 h-8"})}),u.jsx("div",{className:"text-6xl font-bold opacity-80 mb-2",children:t.number}),u.jsx("h3",{className:"text-xl font-bold text-center",children:t.title}),u.jsx("p",{className:"text-sm text-center opacity-90 mt-2",children:t.subtitle})]}),u.jsxs("div",{className:"flex-1 p-8",children:[u.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6",children:t.description}),t.note&&u.jsx("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4 mb-6",children:u.jsxs("p",{className:"text-yellow-800 dark:text-yellow-200 text-sm",children:[u.jsx("strong",{children:"Notă:"})," ",t.note]})}),t.warning&&u.jsx("div",{className:"bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg p-4 mb-6",children:u.jsxs("p",{className:"text-red-800 dark:text-red-200 text-sm",children:[u.jsx(BE,{className:"w-4 h-4 inline mr-2"}),u.jsx("strong",{children:"Atenție:"})," ",t.warning]})}),t.details&&u.jsx("div",{className:"space-y-3 mb-6",children:t.details.map((n,i)=>u.jsxs("div",{className:"flex items-start space-x-3",children:[u.jsx(wf,{className:"w-4 h-4 text-primary mt-1 flex-shrink-0"}),u.jsx("div",{className:"text-sm text-muted-foreground",children:n})]},i))}),t.specialCases&&u.jsxs("div",{className:"bg-card border rounded-lg p-6 mb-6",children:[u.jsxs("h4",{className:"font-semibold text-lg mb-4 flex items-center",children:[u.jsx(IE,{className:"w-5 h-5 mr-2 text-primary"}),t.specialCases.title]}),u.jsx("div",{className:"space-y-4",children:t.specialCases.cases.map((n,i)=>u.jsxs("div",{className:"bg-muted/50 rounded-lg p-4",children:[u.jsx("h5",{className:"font-medium mb-2 text-sm text-primary",children:n.category}),u.jsx("p",{className:"text-sm text-muted-foreground",children:n.description})]},i))})]}),t.transportDetails&&u.jsxs("div",{className:"space-y-6 mb-6",children:[u.jsxs("div",{className:"bg-card border rounded-lg p-6",children:[u.jsxs("h4",{className:"font-semibold text-lg mb-4 flex items-center",children:[u.jsx(ig,{className:"w-5 h-5 mr-2 text-primary"}),t.transportDetails.title]}),u.jsx("p",{className:"text-muted-foreground mb-4",children:t.transportDetails.info}),t.transportDetails.travelInfo&&u.jsxs("div",{className:"mb-4",children:[u.jsx("h5",{className:"font-medium mb-2",children:"Informații generale despre călătorie:"}),u.jsx("div",{className:"space-y-2",children:t.transportDetails.travelInfo.map((n,i)=>u.jsxs("div",{className:"flex items-start space-x-3",children:[u.jsx(ll,{className:"w-4 h-4 text-green-500 mt-1 flex-shrink-0"}),u.jsx("span",{className:"text-sm text-muted-foreground",children:n})]},i))})]}),u.jsx("div",{className:"grid md:grid-cols-3 gap-4 mb-4",children:t.transportDetails.sites.map((n,i)=>u.jsxs("div",{className:"bg-muted/50 rounded-lg p-4",children:[u.jsx("h5",{className:"font-medium mb-2 text-sm",children:n.category}),u.jsx("ul",{className:"space-y-1",children:n.items.map((s,o)=>u.jsxs("li",{className:"text-sm text-muted-foreground",children:["• ",u.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:text-primary-hover underline cursor-pointer transition-colors",children:s.name})]},o))})]},i))}),t.transportDetails.refund&&u.jsxs("div",{className:"bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4",children:[u.jsx("h5",{className:"font-medium mb-3 text-blue-800 dark:text-blue-200",children:t.transportDetails.refund.title}),u.jsx("div",{className:"space-y-2",children:t.transportDetails.refund.details.map((n,i)=>u.jsxs("div",{className:"flex items-start space-x-3",children:[u.jsx(wf,{className:"w-4 h-4 text-blue-600 mt-1 flex-shrink-0"}),u.jsx("span",{className:"text-sm text-blue-800 dark:text-blue-200",children:n})]},i))})]})]}),t.insurance&&u.jsxs("div",{className:"bg-card border rounded-lg p-6",children:[u.jsx("h4",{className:"font-semibold text-lg mb-4",children:t.insurance.title}),u.jsx("p",{className:"text-muted-foreground mb-3",children:t.insurance.description}),u.jsx("div",{className:"bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg p-4",children:u.jsxs("p",{className:"text-green-800 dark:text-green-200 text-sm",children:[u.jsx("strong",{children:"Info:"})," ",t.insurance.note]})})]})]}),t.accommodationInfo&&u.jsxs("div",{className:"space-y-3 mb-6",children:[u.jsx("h4",{className:"font-semibold",children:"Cazare și masă:"}),t.accommodationInfo.map((n,i)=>u.jsxs("div",{className:"flex items-start space-x-3",children:[u.jsx(ll,{className:"w-4 h-4 text-green-500 mt-1 flex-shrink-0"}),u.jsx("span",{className:"text-sm text-muted-foreground",children:n})]},i))]}),t.activities&&u.jsxs("div",{className:"space-y-3",children:[u.jsx("h4",{className:"font-semibold",children:"Activități:"}),t.activities.map((n,i)=>u.jsxs("div",{className:"flex items-start space-x-3",children:[u.jsx(ll,{className:"w-4 h-4 text-green-500 mt-1 flex-shrink-0"}),u.jsx("span",{className:"text-sm text-muted-foreground",children:n})]},i))]})]})]})})})]},t.number))})})}),u.jsx("section",{className:"py-16 bg-gradient-to-r from-primary to-secondary",children:u.jsx("div",{className:"container mx-auto px-4 text-center",children:u.jsxs("div",{className:"max-w-3xl mx-auto text-white",children:[u.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Gata să îți începi aventura Erasmus+?"}),u.jsx("p",{className:"text-xl opacity-90 mb-8",children:"Dacă ai mai multe 
326întrebări sau curiozități te invităm să verifici pagina cu Întrebări Frecvente sau să ne contactezi direct."}),u.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[u.jsxs("button",{onClick:()=>{const t=document.getElementById("contact");t&&t.scrollIntoView({behavior:"smooth"})},className:"inline-flex items-center justify-center px-6 py-3 bg-white text-primary rounded-lg font-medium hover:bg-gray-100 transition-colors",children:[u.jsx(bf,{className:"w-5 h-5 mr-2"}),"Contact"]}),u.jsxs("a",{href:"https://www.cardeuropean.ro/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center px-6 py-3 border border-white text-white rounded-lg font-medium hover:bg-white hover:text-primary transition-colors",children:["Card European de Sănătate",u.jsx(PE,{className:"w-4 h-4 ml-2"})]})]})]})})}),u.jsx($a,{})]})};var Da=e=>e.type==="checkbox",bi=e=>e instanceof Date,mt=e=>e==null;const Qb=e=>typeof e=="object";var Fe=e=>!mt(e)&&!Array.isArray(e)&&Qb(e)&&!bi(e),Yb=e=>Fe(e)&&e.target?Da(e.target)?e.target.checked:e.target.value:e,lO=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Jb=(e,t)=>e.has(lO(t)),cO=e=>{const t=e.constructor&&e.constructor.prototype;return Fe(t)&&t.hasOwnProperty("isPrototypeOf")},wp=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function He(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(wp&&(e instanceof Blob||n))&&(r||Fe(e)))if(t=r?[]:{},!r&&!cO(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=He(e[i]));else return e;return t}var pu=e=>/^\w*$/.test(e),Le=e=>e===void 0,xp=e=>Array.isArray(e)?e.filter(Boolean):[],bp=e=>xp(e.replace(/["|']|\]/g,"").split(/\.|\[/)),B=(e,t,r)=>{if(!t||!Fe(e))return r;const n=(pu(t)?[t]:bp(t)).reduce((i,s)=>mt(i)?i:i[s],e);return Le(n)||n===e?Le(e[t])?r:e[t]:n},Ot=e=>typeof e=="boolean",ge=(e,t,r)=>{let n=-1;const i=pu(t)?[t]:bp(t),s=i.length,o=s-1;for(;++n<s;){const a=i[n];let l=r;if(n!==o){const c=e[a];
326l=Fe(c)||Array.isArray(c)?c:isNaN(+i[n+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;e[a]=l,e=e[a]}};const Sc={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},hr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Gr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},_p=A.createContext(null);_p.displayName="HookFormContext";const mu=()=>A.useContext(_p),uO=e=>{const{children:t,...r}=e;return A.createElement(_p.Provider,{value:r},t)};var Xb=(e,t,r,n=!0)=>{const i={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(i,s,{get:()=>{const o=s;return t._proxyFormState[o]!==hr.all&&(t._proxyFormState[o]=!n||hr.all),r&&(r[o]=!0),e[o]}});return i};const kp=typeof window<"u"?A.useLayoutEffect:A.useEffect;function dO(e){const t=mu(),{control:r=t.control,disabled:n,name:i,exact:s}=e||{},[o,a]=A.useState(r._formState),l=A.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return kp(()=>r._subscribe({name:i,formState:l.current,exact:s,callback:c=>{!n&&a({...r._formState,...c})}}),[i,n,s]),A.useEffect(()=>{l.current.isValid&&r._setValid(!0)},[r]),A.useMemo(()=>Xb(o,r,l.current,!1),[o,r])}var Dr=e=>typeof e=="string",e1=(e,t,r,n,i)=>Dr(e)?(n&&t.watch.add(e),B(r,e,i)):Array.isArray(e)?e.map(s=>(n&&t.watch.add(s),B(r,s))):(n&&(t.watchAll=!0),r),Hf=e=>mt(e)||!Qb(e);function an(e,t,r=new WeakSet){if(Hf(e)||Hf(t))return e===t;if(bi(e)&&bi(t))return e.getTime()===t.getTime();const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const s of n){const o=e[s];if(!i.includes(s))return!1;if(s!=="ref"){const a=t[s];if(bi(o)&&bi(a)||Fe(o)&&Fe(a)||Array.isArray(o)&&Array.isArray(a)?!an(o,a,r):o!==a)return!1}}return!0}function fO(e){const t=mu(),{control:r=t.control,name:n,defaultValue:i,disabled:s,exact:o,compute:a}=e||{},l=A.useRef(i),c=A.useRef(a),d=A.useRef(void 0);c.current=a;const f=A.useMemo(()=>r._getWatch(n,l.current),[r,n]),[h,p]=A.useState(c.current?c.current(f):f);return kp(()=>r._subscribe({name:n,formState:{values:!0},exact:o,callback:b=>{if(!s){const g=e1(n,r._names,b.values||r._formValues,!1,l.current);if(c.current){const x=c.current(g);an(x,d.current)||(p(x),d.current=x)}else p(g)}}}),[r,s,n,o]),A.useEffect(()=>r._removeUnmounted()),h}function hO(e){const t=mu(),{name:r,disabled:n,control:i=t.control,shouldUnregister:s,defaultValue:o}=e,a=Jb(i._names.array,r),l=A.useMemo(()=>B(i._formValues,r,B(i._defaultValues,r,o)),[i,r,o]),c=fO({control:i,name:r,defaultValue:l,exact:!0}),d=dO({control:i,name:r,exact:!0}),f=A.useRef(e),h=A.useRef(i.register(r,{...e.rules,value:c,...Ot(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const p=A.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!B(d.errors,r)},isDirty:{enumerable:!0,get:()=>!!B(d.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!B(d.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!B(d.validatingFields,r)},error:{enumerable:!0,get:()=>B(d.errors,r)}}),[d,r]),b=A.useCallback(m=>h.current.onChange({target:{value:Yb(m),name:r},type:Sc.CHANGE}),[r]),g=A.useCallback(()=>h.current.onBlur({target:{value:B(i._formValues,r),name:r},type:Sc.BLUR}),[r,i._formValues]),x=A.useCallback(m=>{const v=B(i._fields,r);v&&m&&(v._f.ref={focus:()=>m.focus&&m.focus(),select:()=>m.select&&m.select(),setCustomValidity:_=>m.setCustomValidity(_),reportValidity:()=>m.reportValidity()})},[i._fields,r]),w=A.useMemo(()=>({name:r,value:c,...Ot(n)||d.disabled?{disabled:d.disabled||n}:{},onChange:b,onBlur:g,ref:x}),[r,n,d.disabled,b,g,x,c]);return A.useEffect(()=>{const m=i._options.shouldUnregister||s;i.register(r,{...f.current.rules,...Ot(f.current.disabled)?{disabled:f.current.disabled}:{}});const v=(_,k)=>{const E=B(i._fields,_);E&&E._f&&(E._f.mount=k)};if(v(r,!0),m){const _=He(B(i._options.defaultValues,r));ge(i._defaultValues,r,_),Le(B(i._formValues,r))&&ge(i._formValues,r,_)}return!a&&i.register(r),()=>{(a?m&&!i._state.action:m)?i.unregister(r):v(r,!1)}},[r,i,a,s]),A.useEffect(()=>{i._setDisabledField({disabled:n,name:r})},[n,r,i]),A.useMemo(()=>({field:w,formState:d,fieldState:p}),[w,d,p])}const pO=e=>e.render(hO(e));var t1=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},Wo=e=>Array.isArray(e)?e:[e],cv=()=>{let e=[];return{get observers(){return e},next:i=>{for(const s of e)s.next&&s.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(s=>s!==i)}}),unsubscribe:()=>{e=[]}}},St=e=>Fe(e)&&!Object.keys(e).length,Sp=e=>e.type==="file",pr=e=>typeof e=="function",Ec=e=>{if(!wp)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},r1=e=>e.type==="select-multiple",Ep=e=>e.type==="radio",mO=e=>Ep(e)||Da(e),xd=e=>Ec(e)&&e.isConnected;function gO(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=Le(e)?n++:e[t[n++]];return e}function vO(e){for(const t in e)if(e.hasOwnProperty(t)&&!Le(e[t]))return!1;return!0}function Ue(e,t){const r=Array.isArray(t)?t:pu(t)?[t]:bp(t),n=r.length===1?e:gO(e,r),i=r.length-1,s=r[i];return n&&delete n[s],i!==0&&(Fe(n)&&St(n)||Array.isArray(n)&&vO(n))&&Ue(e,r.slice(0,-1)),e}var n1=e=>{for(const t in e)if(pr(e[t]))return!0;return!1};function jc(e,t={}){const r=Array.isArray(e);if(Fe(e)||r)for(const n in e)Array.isArray(e[n])||Fe(e[n])&&!n1(e[n])?(t[n]=Array.isArray(e[n])?[]:{},jc(e[n],t[n])):mt(e[n])||(t[n]=!0);return t}function i1(e,t,r){const n=Array.isArray(e);if(Fe(e)||n)for(const i in e)Array.isArray(e[i])||Fe(e[i])&&!n1(e[i])?Le(t)||Hf(r[i])?r[i]=Array.isArray(e[i])?jc(e[i],[]):{...jc(e[i])}:i1(e[i],mt(t)?{}:t[i],r[i]):r[i]=!an(e[i],t[i]);return r}var _o=(e,t)=>i1(e,t,jc(t));const uv={value:!1,isValid:!1},dv={value:!0,isValid:!0};var s1=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Le(e[0].attributes.value)?Le(e[0].value)||e[0].value===""?dv:{value:e[0].value,isValid:!0}:dv:uv}return uv},o1=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Le(e)?e:t?e===""?NaN:e&&+e:r&&Dr(e)?new Date(e):n?n(e):e;const fv={isValid:!1,value:null};var a1=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,fv):fv;function hv(e){const t=e.ref;return Sp(t)?t.files:Ep(t)?a1(e.refs).value:r1(t)?[...t.selectedOptions].map(({value:r})=>r):Da(t)?s1(e.refs).value:o1(Le(t.value)?e.ref.value:t.value,e)}var yO=(e,t,r,n)=>{const i={};for(const s of e){const o=B(t,s);o&&ge(i,s,o._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},Cc=e=>e instanceof RegExp,ko=e=>Le(e)?e:Cc(e)?e.source:Fe(e)?Cc(e.value)?e.value.source:e.value:e,pv=e=>({isOnSubmit:!e||e===hr.onSubmit,isOnBlur:e===hr.onBlur,isOnChange:e===hr.onChange,isOnAll:e===hr.all,isOnTouch:e===hr.onTouched});const mv="AsyncFunction";var wO=e=>!!e&&!!e.validate&&!!(pr(e.validate)&&e.validate.constructor.name===mv||Fe(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===mv)),xO=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),gv=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Ho=(e,t,r,n)=>{for(const i of r||Object.keys(e)){const s=B(e,i);if(s){const{_f:o,...a}=s;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],i)&&!n)return!0;
vendor: 4,098 bytes, line 326
326if(o.ref&&t(o.ref,o.name)&&!n)return!0;if(Ho(a,t))break}else if(Fe(a)&&Ho(a,t))break}}};function vv(e,t,r){const n=B(e,r);if(n||pu(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const s=i.join("."),o=B(t,s),a=B(e,s);if(o&&!Array.isArray(o)&&r!==s)return{name:r};if(a&&a.type)return{name:s,error:a};if(a&&a.root&&a.root.type)return{name:`${s}.root`,error:a.root};i.pop()}return{name:r}}var bO=(e,t,r,n)=>{r(e);const{name:i,...s}=e;return St(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(o=>t[o]===(!n||hr.all))},_O=(e,t,r)=>!e||!t||e===t||Wo(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),kO=(e,t,r,n,i)=>i.isOnAll?!1:!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?n.isOnChange:i.isOnChange)?e:!0,SO=(e,t)=>!xp(B(e,t)).length&&Ue(e,t),EO=(e,t,r)=>{const n=Wo(B(e,r));return ge(n,"root",t[r]),ge(e,r,n),e},Ul=e=>Dr(e);function yv(e,t,r="validate"){if(Ul(e)||Array.isArray(e)&&e.every(Ul)||Ot(e)&&!e)return{type:r,message:Ul(e)?e:"",ref:t}}var as=e=>Fe(e)&&!Cc(e)?e:{value:e,message:""},wv=async(e,t,r,n,i,s)=>{const{ref:o,refs:a,required:l,maxLength:c,minLength:d,min:f,max:h,pattern:p,validate:b,name:g,valueAsNumber:x,mount:w}=e._f,m=B(r,g);if(!w||t.has(g))return{};const v=a?a[0]:o,_=$=>{i&&v.reportValidity&&(v.setCustomValidity(Ot($)?"":$||""),v.reportValidity())},k={},E=Ep(o),j=Da(o),T=E||j,L=(x||Sp(o))&&Le(o.value)&&Le(m)||Ec(o)&&o.value===""||m===""||Array.isArray(m)&&!m.length,M=t1.bind(null,g,n,k),G=($,H,D,Q=Gr.maxLength,Z=Gr.minLength)=>{const J=$?H:D;k[g]={type:$?Q:Z,message:J,ref:o,...M($?Q:Z,J)}};if(s?!Array.isArray(m)||!m.length:l&&(!T&&(L||mt(m))||Ot(m)&&!m||j&&!s1(a).isValid||E&&!a1(a).isValid)){const{value:$,message:H}=Ul(l)?{value:!!l,message:l}:as(l);if($&&(k[g]={type:Gr.required,message:H,ref:v,...M(Gr.required,H)},!n))return _(H),k}if(!L&&(!mt(f)||!mt(h))){let $,H;const D=as(h),Q=as(f);if(!mt(m)&&!isNaN(m)){const Z=o.valueAsNumber||m&&+m;mt(D.value)||($=Z>D.value),mt(Q.value)||(H=Z<Q.value)}else{const Z=o.valueAsDate||new Date(m),J=W=>new Date(new Date().toDateString()+" "+W),P=o.type=="time",O=o.type=="week";Dr(D.value)&&m&&($=P?J(m)>J(D.value):O?m>D.value:Z>new Date(D.value)),Dr(Q.value)&&m&&(H=P?J(m)<J(Q.value):O?m<Q.value:Z<new Date(Q.value))}if(($||H)&&(G(!!$,D.message,Q.message,Gr.max,Gr.min),!n))return _(k[g].message),k}if((c||d)&&!L&&(Dr(m)||s&&Array.isArray(m))){const $=as(c),H=as(d),D=!mt($.value)&&m.length>+$.value,Q=!mt(H.value)&&m.length<+H.value;if((D||Q)&&(G(D,$.message,H.message),!n))return _(k[g].message),k}if(p&&!L&&Dr(m)){const{value:$,message:H}=as(p);if(Cc($)&&!m.match($)&&(k[g]={type:Gr.pattern,message:H,ref:o,...M(Gr.pattern,H)},!n))return _(H),k}if(b){if(pr(b)){const $=await b(m,r),H=yv($,v);if(H&&(k[g]={...H,...M(Gr.validate,H.message)},!n))return _(H.message),k}else if(Fe(b)){let $={};for(const H in b){if(!St($)&&!n)break;const D=yv(await b[H](m,r),v,H);D&&($={...D,...M(H,D.message)},_(D.message),n&&(k[g]=$))}if(!St($)&&(k[g]={ref:v,...$},!n))return k}}return _(!0),k};const jO={mode:hr.onSubmit,reValidateMode:hr.onChange,shouldFocusError:!0};function CO(e={}){let t={...jO,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:pr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},i=Fe(t.defaultValues)||Fe(t.values)?He(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:He(i),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f={...d};const h={array:cv(),state:cv()},p=t.criteriaMode===hr.all,b=S=>C=>{clearTimeout(c),c=setTimeout(S,C)},g=async S=>{if(!t.disabled&&(d.isValid||f.isValid||S)){const C=t.resolver?St((await j()).errors):await L(n,!0);C!==r.isValid&&h.state.next({isValid:C})}},x=(S,C)=>{!t.disabled&&(d.isValidating||d.validatingFields||f.isValidating||f.validatingFields)&&((S||Array.from(a.mount)).forEac
vendor: 11,997 bytes, line 326
326h(N=>{N&&(C?ge(r.validatingFields,N,C):Ue(r.validatingFields,N))}),h.state.next({validatingFields:r.validatingFields,isValidating:!St(r.validatingFields)}))},w=(S,C=[],N,V,U=!0,F=!0)=>{if(V&&N&&!t.disabled){if(o.action=!0,F&&Array.isArray(B(n,S))){const K=N(B(n,S),V.argA,V.argB);U&&ge(n,S,K)}if(F&&Array.isArray(B(r.errors,S))){const K=N(B(r.errors,S),V.argA,V.argB);U&&ge(r.errors,S,K),SO(r.errors,S)}if((d.touchedFields||f.touchedFields)&&F&&Array.isArray(B(r.touchedFields,S))){const K=N(B(r.touchedFields,S),V.argA,V.argB);U&&ge(r.touchedFields,S,K)}(d.dirtyFields||f.dirtyFields)&&(r.dirtyFields=_o(i,s)),h.state.next({name:S,isDirty:G(S,C),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ge(s,S,C)},m=(S,C)=>{ge(r.errors,S,C),h.state.next({errors:r.errors})},v=S=>{r.errors=S,h.state.next({errors:r.errors,isValid:!1})},_=(S,C,N,V)=>{const U=B(n,S);if(U){const F=B(s,S,Le(N)?B(i,S):N);Le(F)||V&&V.defaultChecked||C?ge(s,S,C?F:hv(U._f)):D(S,F),o.mount&&g()}},k=(S,C,N,V,U)=>{let F=!1,K=!1;const ce={name:S};if(!t.disabled){if(!N||V){(d.isDirty||f.isDirty)&&(K=r.isDirty,r.isDirty=ce.isDirty=G(),F=K!==ce.isDirty);const ye=an(B(i,S),C);K=!!B(r.dirtyFields,S),ye?Ue(r.dirtyFields,S):ge(r.dirtyFields,S,!0),ce.dirtyFields=r.dirtyFields,F=F||(d.dirtyFields||f.dirtyFields)&&K!==!ye}if(N){const ye=B(r.touchedFields,S);ye||(ge(r.touchedFields,S,N),ce.touchedFields=r.touchedFields,F=F||(d.touchedFields||f.touchedFields)&&ye!==N)}F&&U&&h.state.next(ce)}return F?ce:{}},E=(S,C,N,V)=>{const U=B(r.errors,S),F=(d.isValid||f.isValid)&&Ot(C)&&r.isValid!==C;if(t.delayError&&N?(l=b(()=>m(S,N)),l(t.delayError)):(clearTimeout(c),l=null,N?ge(r.errors,S,N):Ue(r.errors,S)),(N?!an(U,N):U)||!St(V)||F){const K={...V,...F&&Ot(C)?{isValid:C}:{},errors:r.errors,name:S};r={...r,...K},h.state.next(K)}},j=async S=>{x(S,!0);const C=await t.resolver(s,t.context,yO(S||a.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return x(S),C},T=async S=>{const{errors:C}=await j(S);if(S)for(const N of S){const V=B(C,N);V?ge(r.errors,N,V):Ue(r.errors,N)}else r.errors=C;return C},L=async(S,C,N={valid:!0})=>{for(const V in S){const U=S[V];if(U){const{_f:F,...K}=U;if(F){const ce=a.array.has(F.name),ye=U._f&&wO(U._f);ye&&d.validatingFields&&x([V],!0);const kt=await wv(U,a.disabled,s,p,t.shouldUseNativeValidation&&!C,ce);if(ye&&d.validatingFields&&x([V]),kt[F.name]&&(N.valid=!1,C))break;!C&&(B(kt,F.name)?ce?EO(r.errors,kt,F.name):ge(r.errors,F.name,kt[F.name]):Ue(r.errors,F.name))}!St(K)&&await L(K,C,N)}}return N.valid},M=()=>{for(const S of a.unMount){const C=B(n,S);C&&(C._f.refs?C._f.refs.every(N=>!xd(N)):!xd(C._f.ref))&&ue(S)}a.unMount=new Set},G=(S,C)=>!t.disabled&&(S&&C&&ge(s,S,C),!an(W(),i)),$=(S,C,N)=>e1(S,a,{...o.mount?s:Le(C)?i:Dr(S)?{[S]:C}:C},N,C),H=S=>xp(B(o.mount?s:i,S,t.shouldUnregister?B(i,S,[]):[])),D=(S,C,N={})=>{const V=B(n,S);let U=C;if(V){const F=V._f;F&&(!F.disabled&&ge(s,S,o1(C,F)),U=Ec(F.ref)&&mt(C)?"":C,r1(F.ref)?[...F.ref.options].forEach(K=>K.selected=U.includes(K.value)):F.refs?Da(F.ref)?F.refs.forEach(K=>{(!K.defaultChecked||!K.disabled)&&(Array.isArray(U)?K.checked=!!U.find(ce=>ce===K.value):K.checked=U===K.value||!!U)}):F.refs.forEach(K=>K.checked=K.value===U):Sp(F.ref)?F.ref.value="":(F.ref.value=U,F.ref.type||h.state.next({name:S,values:He(s)})))}(N.shouldDirty||N.shouldTouch)&&k(S,U,N.shouldTouch,N.shouldDirty,!0),N.shouldValidate&&O(S)},Q=(S,C,N)=>{for(const V in C){if(!C.hasOwnProperty(V))return;const U=C[V],F=S+"."+V,K=B(n,F);(a.array.has(S)||Fe(U)||K&&!K._f)&&!bi(U)?Q(F,U,N):D(F,U,N)}},Z=(S,C,N={})=>{const V=B(n,S),U=a.array.has(S),F=He(C);ge(s,S,F),U?(h.array.next({name:S,values:He(s)}),(d.isDirty||d.dirtyFields||f.isDirty||f.dirtyFields)&&N.shouldDirty&&h.state.next({name:S,dirtyFields:_o(i,s),isDirty:G(S,F)})):V&&!V._f&&!mt(F)?Q(S,F,N):D(S,F,N),gv(S,a)&&h.state.next({...r,name:S}),h.state.next({name:o.mount?S:void 0,values:He(s)})},J=async S=>{o.mount=!0;const C=S.target;let N=C.name,V=!0;const U=B(n,N),F=ye=>{V=Number.isNaN(ye)||bi(ye)&&isNaN(ye.getTime())||an(ye,B(s,N,ye))},K=pv(t.mode),ce=pv(t.reValidateMode);if(U){let ye,kt;const Zr=C.type?hv(U._f):Yb(S),Er=S.type===Sc.BLUR||S.type===Sc.FOCUS_OUT,Ma=!xO(U._f)&&!t.resolver&&!B(r.errors,N)&&!U._f.deps||kO(Er,B(r.touchedFields,N),r.isSubmitted,ce,K),ui=gv(N,a,Er);ge(s,N,Zr),Er?(U._f.onBlur&&U._f.onBlur(S),l&&l(0)):U._f.onChange&&U._f.onChange(S);const jr=k(N,Zr,Er),Fa=!St(jr)||ui;if(!Er&&h.state.next({name:N,type:S.type,values:He(s)}),Ma)return(d.isValid||f.isValid)&&(t.mode==="onBlur"?Er&&g():Er||g()),Fa&&h.state.next({name:N,...ui?{}:jr});if(!Er&&ui&&h.state.next({...r}),t.resolver){const{errors:Kr}=await j([N]);if(F(Zr),V){const _u=vv(r.errors,n,N),Ua=vv(Kr,n,_u.name||N);ye=Ua.error,N=Ua.name,kt=St(Kr)}}else x([N],!0),ye=(await wv(U,a.disabled,s,p,t.shouldUseNativeValidation))[N],x([N]),F(Zr),V&&(ye?kt=!1:(d.isValid||f.isValid)&&(kt=await L(n,!0)));V&&(U._f.deps&&O(U._f.deps),E(N,kt,ye,jr))}},P=(S,C)=>{if(B(r.errors,C)&&S.focus)return S.focus(),1},O=async(S,C={})=>{let N,V;const U=Wo(S);if(t.resolver){const F=await T(Le(S)?S:U);N=St(F),V=S?!U.some(K=>B(F,K)):N}else S?(V=(await Promise.all(U.map(async F=>{const K=B(n,F);return await L(K&&K._f?{[F]:K}:K)}))).every(Boolean),!(!V&&!r.isValid)&&g()):V=N=await L(n);return h.state.next({...!Dr(S)||(d.isValid||f.isValid)&&N!==r.isValid?{}:{name:S},...t.resolver||!S?{isValid:N}:{},errors:r.errors}),C.shouldFocus&&!V&&Ho(n,P,S?U:a.mount),V},W=S=>{const C={...o.mount?s:i};return Le(S)?C:Dr(S)?B(C,S):S.map(N=>B(C,N))},ee=(S,C)=>({invalid:!!B((C||r).errors,S),isDirty:!!B((C||r).dirtyFields,S),error:B((C||r).errors,S),isValidating:!!B(r.validatingFields,S),isTouched:!!B((C||r).touchedFields,S)}),Y=S=>{S&&Wo(S).forEach(C=>Ue(r.errors,C)),h.state.next({errors:S?r.errors:{}})},se=(S,C,N)=>{const V=(B(n,S,{_f:{}})._f||{}).ref,U=B(r.errors,S)||{},{ref:F,message:K,type:ce,...ye}=U;ge(r.errors,S,{...ye,...C,ref:V}),h.state.next({name:S,errors:r.errors,isValid:!1}),N&&N.shouldFocus&&V&&V.focus&&V.focus()},oe=(S,C)=>pr(S)?h.state.subscribe({next:N=>"values"in N&&S($(void 0,C),N)}):$(S,C,!0),Pe=S=>h.state.subscribe({next:C=>{_O(S.name,C.name,S.exact)&&bO(C,S.formState||d,co,S.reRenderRoot)&&S.callback({values:{...s},...r,...C,defaultValues:i})}}).unsubscribe,Qe=S=>(o.mount=!0,f={...f,...S.formState},Pe({...S,formState:f})),ue=(S,C={})=>{for(const N of S?Wo(S):a.mount)a.mount.delete(N),a.array.delete(N),C.keepValue||(Ue(n,N),Ue(s,N)),!C.keepError&&Ue(r.errors,N),!C.keepDirty&&Ue(r.dirtyFields,N),!C.keepTouched&&Ue(r.touchedFields,N),!C.keepIsValidating&&Ue(r.validatingFields,N),!t.shouldUnregister&&!C.keepDefaultValue&&Ue(i,N);h.state.next({values:He(s)}),h.state.next({...r,...C.keepDirty?{isDirty:G()}:{}}),!C.keepIsValid&&g()},Br=({disabled:S,name:C})=>{(Ot(S)&&o.mount||S||a.disabled.has(C))&&(S?a.disabled.add(C):a.disabled.delete(C))},Ut=(S,C={})=>{let N=B(n,S);const V=Ot(C.disabled)||Ot(t.disabled);return ge(n,S,{...N||{},_f:{...N&&N._f?N._f:{ref:{name:S}},name:S,mount:!0,...C}}),a.mount.add(S),N?Br({disabled:Ot(C.disabled)?C.disabled:t.disabled,name:S}):_(S,!0,C.value),{...V?{disabled:C.disabled||t.disabled}:{},...t.progressive?{required:!!C.required,min:ko(C.min),max:ko(C.max),minLength:ko(C.minLength),maxLength:ko(C.maxLength),pattern:ko(C.pattern)}:{},name:S,onChange:J,onBlur:J,ref:U=>{if(U){Ut(S,C),N=B(n,S);const F=Le(U.value)&&U.querySelectorAll&&U.querySelectorAll("input,select,textarea")[0]||U,K=mO(F),ce=N._f.refs||[];if(K?ce.find(ye=>ye===F):F===N._f.ref)return;ge(n,S,{_f:{...N._f,...K?{refs:[...ce.filter(xd),F,...Array.isArray(B(i,S))?[{}]:[]],ref:{type:F.type,name:S}}:{ref:F}}}),_(S,!1,void 0,F)}else N=B(n,S,{}),N._f&&(N._f.mount=!1),(t.shouldUnregister||C.shouldUnregister)&&!(Jb(a.array,S)&&o.action)&&a.unMount.add(S)}}},Jt=()=>t.shouldFocusError&&Ho(n,P,a.mount),kr=S=>{Ot(S)&&(h.state.next({disabled:S}),Ho(n,(C,N)=>{const V=B(n,N);V&&(C.disabled=V._f.disabled||S,Array.isArray(V._f.refs)&&V._f.refs.forEach(U=>{U.disabled=V._f.disabled||S}))},0,!1))},Wr=(S,C)=>async N=>{let V;N&&(N.preventDefault&&N.preventDefault(),N.persist&&N.persist());let U=He(s);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:F,values:K}=await j();r.errors=F,U=He(K)}else await L(n);if(a.disabled.size)for(const F of a.disabled)Ue(U,F);if(Ue(r.errors,"root"),St(r.errors)){h.state.next({errors:{}});try{await S(U,N)}catch(F){V=F}}else C&&await C({...r.errors},N),Jt(),setTimeout(Jt);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:St(r.errors)&&!V,submitCount:r.submitCount+1,errors:r.errors}),V)throw V},Sr=(S,C={})=>{B(n,S)&&(Le(C.defaultValue)?Z(S,He(B(i,S))):(Z(S,C.defaultValue),ge(i,S,He(C.defaultValue))),C.keepTouched||Ue(r.touchedFields,S),C.keepDirty||(Ue(r.dirtyFields,S),r.isDirty=C.defaultValue?G(S,He(B(i,S))):G()),C.keepError||(Ue(r.errors,S),d.isValid&&g()),h.state.next({...r}))},ci=(S,C={})=>{const N=S?He(S):i,V=He(N),U=St(S),F=U?i:V;if(C.keepDefaultValues||(i=N),!C.keepValues){if(C.keepDirtyValues){const K=new Set([...a.mount,...Object.keys(_o(i,s))]);for(const ce of Array.from(K))B(r.dirtyFields,ce)?ge(F,ce,B(s,ce)):Z(ce,B(F,ce))}else{if(wp&&Le(S))for(const K of a.mount){const ce=B(n,K);if(ce&&ce._f){const ye=Array.isArray(ce._f.refs)?ce._f.refs[0]:ce._f.ref;if(Ec(ye)){const kt=ye.closest("form");if(kt){kt.reset();break}}}}if(C.keepFieldsRef)for(const K of a.mount)Z(K,B(F,K));else n={}}s=t.shouldUnregister?C.keepDefaultValues?He(i):{}:He(F),h.array.next({values:{...F}}),h.state.next({values:{...F}})}a={mount:C.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!d.isValid||!!C.keepIsValid||!!C.keepDirtyValues,o.watch=!!t.shouldUnregister,h.state.next({submitCount:C.keepSubmitCount?r.submitCount:0,isDirty:U?!1:C.keepDirty?r.isDirty:!!(C.keepDefaultValues&&!an(S,i)),isSubmitted:C.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:U?{}:C.keepDirtyValues?C.keepDefaultValues&&s?_o(i,s):r.dirtyFields:C.keepDefaultValues&&S?_o(i,S):C.keepDirty?r.dirtyFields:{},touchedFields:C.keepTouched?r.touchedFields:{},errors:C.keepErrors?r.errors:{},isSubmitSuccessful:C.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Gi=(S,C)=>ci(pr(S)?S(s):S,C),Qi=(S,C={})=>{const N=B(n,S),V=N&&N._f;if(V){const U=V.refs?V.refs[0]:V.ref;U.focus&&(U.focus(),C.shouldSelect&&pr(U.select)&&U.select())}},co=S=>{r={...r,...S}},Hr={control:{register:Ut,unregister:ue,getFieldState:ee,handleSubmit:Wr,setError:se,_subscribe:Pe,_runSchema:j,_focusError:Jt,_getWatch:$,_getDirty:G,_setValid:g,_setFieldArray:w,_setDisabledField:Br,_setErrors:v,_getFieldArray:H,_reset:ci,_resetDefaultValues:()=>pr(t.defaultValues)&&t.defaultValues().then(S=>{Gi(S,t.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:M,_disableForm:kr,_subjects:h,_proxyFormState:d,get _fields(){return n},get _formValues(){return s},get _state(){return o},set _state(S){o=S},get _defaultValues(){return i},get _names(){return a},set _names(S){a=S},get _formState(){return r},get _options(){return t},set _options(S){t={...t,...S}}},subscribe:Qe,trigger:O,register:Ut,handleSubmit:Wr,watch:oe,setValue:Z,getValues:W,reset:Gi,resetField:Sr,clearErrors:Y,unregister:ue,setError:se,setFocus:Qi,getFieldState:ee};return{...Hr,formControl:Hr}}function TO(e={}){const t=A.useRef(void 0),r=A.useRef(void 0),[n,i]=A.useState({isDirty:!1,isValidating:!1,isLoading:pr(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:pr(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!pr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:o,...a}=CO(e);t.current={...a,formState:n}}const s=t.current.control;return s._options=e,kp(()=>{const o=s._subscribe({formState:s._proxyFormState,callback:()=>i({...s._formState}
326),reRenderRoot:!0});return i(a=>({...a,isReady:!0})),s._formState.isReady=!0,o},[s]),A.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),A.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),A.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),A.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),A.useEffect(()=>{if(s._proxyFormState.isDirty){const o=s._getDirty();o!==n.isDirty&&s._subjects.state.next({isDirty:o})}},[s,n.isDirty]),A.useEffect(()=>{e.values&&!an(e.values,r.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),r.current=e.values,i(o=>({...o}))):s._resetDefaultValues()},[s,e.values]),A.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=Xb(n,s),t.current}var NO="Label",l1=y.forwardRef((e,t)=>u.jsx(xe.label,{...e,ref:t,onMouseDown:r=>{var i;r.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));l1.displayName=NO;var c1=l1;const PO=Ta("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ks=y.forwardRef(({className:e,...t},r)=>u.jsx(c1,{ref:r,className:me(PO(),e),...t}));ks.displayName=c1.displayName;const AO=uO,u1=y.createContext({}),jn=({...e})=>u.jsx(u1.Provider,{value:{name:e.name},children:u.jsx(pO,{...e})}),gu=()=>{const e=y.useContext(u1),t=y.useContext(d1),{getFieldState:r,formState:n}=mu(),i=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:s}=t;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...i}},d1=y.createContext({}),Jr=y.forwardRef(({className:e,...t},r)=>{const n=y.useId();return u.jsx(d1.Provider,{value:{id:n},children:u.jsx("div",{ref:r,className:me("space-y-2",e),...t})})});Jr.displayName="FormItem";const Xr=y.forwardRef(({className:e,...t},r)=>{const{error:n,formItemId:i}=gu();return u.jsx(ks,{ref:r,className:me(n&&"text-destructive",e),htmlFor:i,...t})});Xr.displayName="FormLabel";const en=y.forwardRef(({...e},t)=>{const{error:r,formItemId:n,formDescriptionId:i,formMessageId:s}=gu();return u.jsx(lw,{ref:t,id:n,"aria-describedby":r?`${i} ${s}`:`${i}`,"aria-invalid":!!r,...e})});en.displayName="FormControl";const RO=y.forwardRef(({className:e,...t},r)=>{const{formDescriptionId:n}=gu();return u.jsx("p",{ref:r,id:n,className:me("text-sm text-muted-foreground",e),...t})});RO.displayName="FormDescription";const tn=y.forwardRef(({className:e,children:t,...r},n)=>{const{error:i,formMessageId:s}=gu(),o=i?String(i==null?void 0:i.message):t;return o?u.jsx("p",{ref:n,id:s,className:me("text-sm font-medium text-destructive",e),...r,children:o}):null});tn.displayName="FormMessage";const Vl=y.forwardRef(({className:e,...t},r)=>u.jsx("textarea",{className:me("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
326ing-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:r,...t}));Vl.displayName="Textarea";const xv=(e,t,r)=>{if(e&&"reportValidity"in e){const n=B(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},f1=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?xv(n.ref,r,e):n.refs&&n.refs.forEach(i=>xv(i,r,e))}},OO=(e,t)=>{t.shouldUseNativeValidation&&f1(e,t);const r={};for(const n in e){const i=B(t.fields,n),s=Object.assign(e[n]||{},{ref:i&&i.ref});if(IO(t.names||Object.keys(e),n)){const o=Object.assign({},B(r,n));ge(o,"root",s),ge(r,n,o)}else ge(r,n,s)}return r},IO=(e,t)=>e.some(r=>r.startsWith(t+"."));var $O=function(e,t){for(var r={};e.length;){var n=e[0],i=n.code,s=n.message,o=n.path.join(".");if(!r[o])if("unionErrors"in n){var a=n.unionErrors[0].errors[0];r[o]={message:a.message,type:a.code}}else r[o]={message:s,type:i};if("unionErrors"in n&&n.unionErrors.forEach(function(d){return d.errors.forEach(function(f){return e.push(f)})}),t){var l=r[o].types,c=l&&l[n.code];r[o]=t1(o,t,r,i,c?[].concat(c,n.message):n.message)}e.shift()}return r},DO=function(e,t,r){return r===void 0&&(r={}),function(n,i,s){try{return Promise.resolve(function(o,a){try{var l=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(c){return s.shouldUseNativeValidation&&f1({},s),{errors:{},values:r.raw?n:c}})}catch(c){return a(c)}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:OO($O(o.errors,!s.shouldUseNativeValidation&&s.criteriaMode==="all"),s)};throw o}))}catch(o){return Promise.reject(o)}}};function I(e,t,r){function n(a,l){var c;Object.defineProperty(a,"_zod",{value:a._zod??{},enumerable:!1}),(c=a._zod).traits??(c.traits=new Set),a._zod.traits.add(e),t(a,l);for(const d in o.prototype)d in a||Object.defineProperty(a,d,{value:o.prototype[d].bind(a)});a._zod.constr=o,a._zod.def=l}const i=(r==null?void 0:r.Parent)??Object;class s extends i{}Object.defineProperty(s,"name",{value:e});function o(a){var l;const c=r!=null&&r.Parent?new s:this;n(c,a),(l=c._zod).deferred??(l.deferred=[]);for(const d of c._zod.deferred)d();return c}return Object.defineProperty(o,"init",{value:n}),Object.defineProperty(o,Symbol.hasInstance,{value:a=>{var l,c;return r!=null&&r.Parent&&a instanceof r.Parent?!0:(c=(l=a==null?void 0:a._zod)==null?void 0:l.traits)==null?void 0:c.has(e)}}),Object.defineProperty(o,"name",{value:e}),o}class Is extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}
vendor: 9,596 bytes, line 326
326class h1 extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const p1={};function Li(e){return p1}function zO(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,i])=>t.indexOf(+n)===-1).map(([n,i])=>i)}function Zf(e,t){return typeof t=="bigint"?t.toString():t}function jp(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Cp(e){return e==null}function Tp(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}const bv=Symbol("evaluating");function ke(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==bv)return n===void 0&&(n=bv,n=r()),n},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function Ki(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function qi(...e){const t={};for(const r of e){const n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function _v(e){return JSON.stringify(e)}const m1="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Tc(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const LO=jp(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function va(e){if(Tc(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(Tc(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function g1(e){return va(e)?{...e}:Array.isArray(e)?[...e]:e}const MO=new Set(["string","number","symbol"]);function vu(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function li(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r!=null&&r.parent)&&(n._zod.parent=e),n}function X(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function FO(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function UO(e,t){const r=e._zod.def,n=qi(e._zod.def,{get shape(){const i={};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(i[s]=r.shape[s])}return Ki(this,"shape",i),i},checks:[]});return li(e,n)}function VO(e,t){const r=e._zod.def,n=qi(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete i[s]}return Ki(this,"shape",i),i},checks:[]});return li(e,n)}function BO(e,t){if(!va(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const i=qi(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return Ki(this,"shape",s),s},checks:[]});return li(e,i)}function WO(e,t){if(!va(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...e._zod.def,get shape(){const n={...e._zod.def.shape,...t};return Ki(this,"shape",n),n},checks:e._zod.def.checks};return li(e,r)}function HO(e,t){const r=qi(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return Ki(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return li(e,r)}function ZO(e,t,r){const n=qi(t._zod.def,{get shape(){const i=t._zod.def.shape,s={...i};if(r)for(const o in r){if(!(o in i))throw new Error(`Unrecognized key: "${o}"`);r[o]&&(s[o]=e?new e({type:"optional",innerType:i[o]}):i[o])}else for(const o in i)s[o]=e?new e({type:"optional",innerType:i[o]}):i[o];return Ki(this,"shape",s),s},checks:[]});return li(t,n)}function KO(e,t,r){const n=qi(t._zod.def,{get shape(){const i=t._zod.def.shape,s={...i};if(r)for(const o in r){if(!(o in s))throw new Error(`Unrecognized key: "${o}"`);r[o]&&(s[o]=new e({type:"nonoptional",innerType:i[o]}))}else for(const o in i)s[o]=new e({type:"nonoptional",innerType:i[o]});return Ki(this,"shape",s),s},checks:[]});return li(t,n)}function Ss(e,t=0){var r;if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(((r=e.issues[n])==null?void 0:r.continue)!==!0)return!0;return!1}function v1(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function xl(e){return typeof e=="string"?e:e==null?void 0:e.message}function Mi(e,t,r){var i,s,o,a,l,c;const n={...e,path:e.path??[]};if(!e.message){const d=xl((o=(s=(i=e.inst)==null?void 0:i._zod.def)==null?void 0:s.error)==null?void 0:o.call(s,e))??xl((a=t==null?void 0:t.error)==null?void 0:a.call(t,e))??xl((l=r.customError)==null?void 0:l.call(r,e))??xl((c=r.localeError)==null?void 0:c.call(r,e))??"Invalid input";n.message=d}return delete n.inst,delete n.continue,t!=null&&t.reportInput||delete n.input,n}function Np(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ya(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const y1=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Zf,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},w1=I("$ZodError",y1),x1=I("$ZodError",y1,{Parent:Error});function qO(e,t=r=>r.message){const r={},n=[];for(const i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}function GO(e,t){const r=t||function(s){return s.message},n={_errors:[]},i=s=>{for(const o of s.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(a=>i({issues:a}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)n._errors.push(r(o));else{let a=n,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(r(o))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return i(e),n}const Pp=e=>(t,r,n,i)=>{const s=n?Object.assign(n,{async:!1}):{async:!1},o=t._zod.run({value:r,issues:[]},s);if(o instanceof Promise)throw new Is;if(o.issues.length){const a=new((i==null?void 0:i.Err)??e)(o.issues.map(l=>Mi(l,s,Li())));throw m1(a,i==null?void 0:i.callee),a}return o.value},Ap=e=>async(t,r,n,i)=>{const s=n?Object.assign(n,{async:!0}):{async:!0};let o=t._zod.run({value:r,issues:[]},s);if(o instanceof Promise&&(o=await o),o.issues.length){const a=new((i==null?void 0:i.Err)??e)(o.issues.map(l=>Mi(l,s,Li())));throw m1(a,i==null?void 0:i.callee),a}return o.value},yu=e=>(t,r,n)=>{const i=n?{...n,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new Is;return s.issues.length?{success:!1,error:new(e??w1)(s.issues.map(o=>Mi(o,i,Li())))}:{success:!0,data:s.value}},QO=yu(x1),wu=e=>async(t,r,n)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},i);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(o=>Mi(o,i,Li())))}:{success:!0,data:s.value}},YO=wu(x1),JO=e=>(t,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Pp(e)(t,r,i)},XO=e=>(t,r,n)=>Pp(e)(t,r,n),eI=e=>async(t,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ap(e)(t,r,i)},tI=e=>async(t,r,n)=>Ap(e)(t,r,n),rI=e=>(t,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return yu(e)(t,r,i)},nI=e=>(t,r,n)=>yu(e)(t,r,n),iI=e=>async(t,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return wu(e)(t,r,i)},sI=e=>async(t,r,n)=>wu(e)(t,r,n),oI=/^[cC][^\s-]{8,}$/,aI=/^[0-9a-z]+$/,lI=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,cI=/^[0-9a-vA-V]{20}$/,uI=/^[A-Za-z0-9]{27}$/,dI=/^[a-zA-Z0-9_-]{21}$/,fI=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,hI=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,kv=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,pI=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,mI="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function gI(){return new RegExp(mI,"u")}const vI=/^(?:(?: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])$/,yI=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,wI=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,xI=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,bI=/^$|^(?:[0-9a-zA-Z+/]{4}
vendor: 4,151 bytes, line 326
326)*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,b1=/^[A-Za-z0-9_-]*$/,_I=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,kI=/^\+(?:[0-9]){6,14}[0-9]$/,_1="(?:(?:\\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])))",SI=new RegExp(`^${_1}$`);function k1(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function EI(e){return new RegExp(`^${k1(e)}$`)}function jI(e){const t=k1({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${t}(?:${r.join("|")})`;return new RegExp(`^${_1}T(?:${n})$`)}const CI=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},TI=/^[^A-Z]*$/,NI=/^[^a-z]*$/,Vr=I("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),PI=I("$ZodCheckMaxLength",(e,t)=>{var r;Vr.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!Cp(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const i=n.value;if(i.length<=t.maximum)return;const o=Np(i);n.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),AI=I("$ZodCheckMinLength",(e,t)=>{var r;Vr.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!Cp(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const i=n.value;if(i.length>=t.minimum)return;const o=Np(i);n.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),RI=I("$ZodCheckLengthEquals",(e,t)=>{var r;Vr.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!Cp(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=n=>{const i=n.value,s=i.length;if(s===t.length)return;const o=Np(i),a=s>t.length;n.issues.push({origin:o,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),xu=I("$ZodCheckStringFormat",(e,t)=>{var r,n;Vr.init(e,t),e._zod.onattach.push(i=>{const s=i._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),OI=I("$ZodCheckRegex",(e,t)=>{xu.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),II=I("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=TI),xu.init(e,t)}),$I=I("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=NI),xu.init(e,t)}),DI=I("$ZodCheckIncludes",(e,t)=>{Vr.init(e,t);const r=vu(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(i=>{const s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),zI=I("$ZodCheckStartsWith",(e,t)=>{Vr.init(e,t);const r=new RegExp(`^${vu(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=n=>
vendor: 5,645 bytes, lines 326-328
326{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),LI=I("$ZodCheckEndsWith",(e,t)=>{Vr.init(e,t);const r=new RegExp(`.*${vu(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),MI=I("$ZodCheckOverwrite",(e,t)=>{Vr.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class FI{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(`
327`).filter(o=>o),i=Math.min(...n.map(o=>o.length-o.trimStart().length)),s=n.map(o=>o.slice(i)).map(o=>" ".repeat(this.indent*2)+o);for(const o of s)this.content.push(o)}compile(){const t=Function,r=this==null?void 0:this.args,i=[...((this==null?void 0:this.content)??[""]).map(s=>`  ${s}`)];return new t(...r,i.join(`
328`))}}const UI={major:4,minor:1,patch:11},Ge=I("$ZodType",(e,t)=>{var i;var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=UI;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const s of n)for(const o of s._zod.onattach)o(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),(i=e._zod.deferred)==null||i.push(()=>{e._zod.run=e._zod.parse});else{const s=(a,l,c)=>{let d=Ss(a),f;for(const h of l){if(h._zod.def.when){if(!h._zod.def.when(a))continue}else if(d)continue;const p=a.issues.length,b=h._zod.check(a);if(b instanceof Promise&&(c==null?void 0:c.async)===!1)throw new Is;if(f||b instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await b,a.issues.length!==p&&(d||(d=Ss(a,p)))});else{if(a.issues.length===p)continue;d||(d=Ss(a,p))}}return f?f.then(()=>a):a},o=(a,l,c)=>{if(Ss(a))return a.aborted=!0,a;const d=s(l,n,c);if(d instanceof Promise){if(c.async===!1)throw new Is;return d.then(f=>e._zod.parse(f,c))}return e._zod.parse(d,c)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){const d=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return d instanceof Promise?d.then(f=>o(f,a,l)):o(d,a,l)}const c=e._zod.parse(a,l);if(c instanceof Promise){if(l.async===!1)throw new Is;return c.then(d=>s(d,n,l))}return s(c,n,l)}}e["~standard"]={validate:s=>{var o;try{const a=QO(e,s);return a.success?{value:a.data}:{issues:(o=a.error)==null?void 0:o.issues}}catch{return YO(e,s).then(l=>{var c;return l.success?{value:l.data}:{issues:(c=l.error)==null?void 0:c.issues}})}},vendor:"zod",version:1}}),Rp=I("$ZodString",(e,t)=>{var r;Ge.init(e,t),e._zod.pattern=[...((r=e==null?void 0:e._zod.bag)==null?void 0:r.patterns)??[]].pop()??CI(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Ne=I("$ZodStringFormat",(e,t)=>{xu.init(e,t),Rp.init(e,t)}),VI=I("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=hI),Ne.init(e,t)}),BI=I("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=kv(n))}else t.pattern??(t.pattern=kv());Ne.init(e,t)}),WI=I("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=pI),Ne.init(e,t)}),HI=I("$ZodURL",(e,t)=>{Ne.init(e,t),e._zod.check=r=>{try{const n=r.value.trim(),i=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:_I.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),ZI=I("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=gI()),Ne.init(e,t)}),KI=I("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=dI),Ne.init(e,t)}),qI=I("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=oI),Ne.init(e,t)}),GI=I("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=aI),Ne.init(e,t)}),QI=I("$ZodULID",(e,t)=>{t.pattern??(t.pattern=lI),Ne.init(e,t)}),YI=I("$ZodXID",(e,t)=>{t.pattern??(t.pattern=cI),Ne.init(e,t)}),JI=I("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=uI),Ne.init(e,t)}),XI=I("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=jI(t)),Ne.init(e,t)}),e$=I("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=SI),Ne.init(e,t)}),t$=I("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=EI(t)),Ne.init(e,t)}),r$=I("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=fI),Ne.init(e,t)}),n$=I("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=vI),Ne.init(e,t),e._zod.onattach.push(r=>{const n=r._zod.bag;n.format="ipv4"})}),i$=I("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=yI),Ne.init(e,t),e._zod.onattach.push(r=>{const n=r._zod.bag;n.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),s$=I("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=wI),Ne.init(e,t)}),o$=I("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=xI),Ne.init(e,t),e._zod.check=r=>{const n=r.value.split("/");try{if(n.length!==2)throw new Error;const[i,s]=n;
vendor: 2,090 bytes, line 328
328if(!s)throw new Error;const o=Number(s);if(`${o}`!==s)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${i}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function S1(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const a$=I("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=bI),Ne.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{S1(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function l$(e){if(!b1.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return S1(r)}const c$=I("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=b1),Ne.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{l$(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),u$=I("$ZodE164",(e,t)=>{t.pattern??(t.pattern=kI),Ne.init(e,t)});function d$(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[n]=r;if(!n)return!1;const i=JSON.parse(atob(n));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const f$=I("$ZodJWT",(e,t)=>{Ne.init(e,t),e._zod.check=r=>{d$(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),h$=I("$ZodUnknown",(e,t)=>{Ge.init(e,t),e._zod.parse=r=>r}),p$=I("$ZodNever",(e,t)=>{Ge.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function Sv(e,t,r){e.issues.length&&t.issues.push(...v1(r,e.issues)),t.value[r]=e.value}const m$=I("$ZodArray",(e,t)=>{Ge.init(e,t),e._zod.parse=(r,n)=>{const i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);const s=[];for(let o=0;o<i.length;o++){const a=i[o],l=t.element._zod.run({value:a,issues:[]},n);l instanceof Promise?s.push(l.then(c=>
vendor: 20,157 bytes, lines 328-345
328Sv(c,r,o))):Sv(l,r,o)}return s.length?Promise.all(s).then(()=>r):r}});function Nc(e,t,r,n){e.issues.length&&t.issues.push(...v1(r,e.issues)),e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function E1(e){var n,i,s,o;const t=Object.keys(e.shape);for(const a of t)if(!((o=(s=(i=(n=e.shape)==null?void 0:n[a])==null?void 0:i._zod)==null?void 0:s.traits)!=null&&o.has("$ZodType")))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const r=FO(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function j1(e,t,r,n,i,s){const o=[],a=i.keySet,l=i.catchall._zod,c=l.def.type;for(const d of Object.keys(t)){if(a.has(d))continue;if(c==="never"){o.push(d);continue}const f=l.run({value:t[d],issues:[]},n);f instanceof Promise?e.push(f.then(h=>Nc(h,r,d,t))):Nc(f,r,d,t)}return o.length&&r.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:s}),e.length?Promise.all(e).then(()=>r):r}const g$=I("$ZodObject",(e,t)=>{Ge.init(e,t);const r=Object.getOwnPropertyDescriptor(t,"shape");if(!(r!=null&&r.get)){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...a};return Object.defineProperty(t,"shape",{value:l}),l}})}const n=jp(()=>E1(t));ke(e._zod,"propValues",()=>{const a=t.shape,l={};for(const c in a){const d=a[c]._zod;if(d.values){l[c]??(l[c]=new Set);for(const f of d.values)l[c].add(f)}}return l});const i=Tc,s=t.catchall;let o;e._zod.parse=(a,l)=>{o??(o=n.value);const c=a.value;if(!i(c))return a.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),a;a.value={};const d=[],f=o.shape;for(const h of o.keys){const b=f[h]._zod.run({value:c[h],issues:[]},l);b instanceof Promise?d.push(b.then(g=>Nc(g,a,h,c))):Nc(b,a,h,c)}return s?j1(d,c,a,l,n.value,e):d.length?Promise.all(d).then(()=>a):a}}),v$=I("$ZodObjectJIT",(e,t)=>{g$.init(e,t);const r=e._zod.parse,n=jp(()=>E1(t)),i=h=>{const p=new FI(["shape","payload","ctx"]),b=n.value,g=v=>{const _=_v(v);return`shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`};p.write("const input = payload.value;");const x=Object.create(null);let w=0;for(const v of b.keys)x[v]=`key_${w++}`;p.write("const newResult = {};");for(const v of b.keys){const _=x[v],k=_v(v);p.write(`const ${_} = ${g(v)};`),p.write(`
329        if (${_}.issues.length) {
330          payload.issues = payload.issues.concat(${_}.issues.map(iss => ({
331            ...iss,
332            path: iss.path ? [${k}, ...iss.path] : [${k}]
333          })));
334        }
335        
336        
337        if (${_}.value === undefined) {
338          if (${k} in input) {
339            newResult[${k}] = undefined;
340          }
341        } else {
342          newResult[${k}] = ${_}.value;
343        }
344        
345      `)}p.write("payload.value = newResult;"),p.write("return payload;");const m=p.compile();return(v,_)=>m(h,v,_)};let s;const o=Tc,a=!p1.jitless,c=a&&LO.value,d=t.catchall;let f;e._zod.parse=(h,p)=>{f??(f=n.value);const b=h.value;return o(b)?a&&c&&(p==null?void 0:p.async)===!1&&p.jitless!==!0?(s||(s=i(t.shape)),h=s(h,p),d?j1([],b,h,p,f,e):h):r(h,p):(h.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),h)}});function Ev(e,t,r,n){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const i=e.filter(s=>!Ss(s));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(s=>s.issues.map(o=>Mi(o,n,Li())))}),t)}const y$=I("$ZodUnion",(e,t)=>{Ge.init(e,t),ke(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),ke(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),ke(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),ke(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${i.map(s=>Tp(s.source)).join("|")})$`)}});const r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(i,s)=>{if(r)return n(i,s);let o=!1;const a=[];for(const l of t.options){const c=l._zod.run({value:i.value,issues:[]},s);if(c instanceof Promise)a.push(c),o=!0;else{if(c.issues.length===0)return c;a.push(c)}}return o?Promise.all(a).then(l=>Ev(l,i,e,s)):Ev(a,i,e,s)}}),w$=I("$ZodIntersection",(e,t)=>{Ge.init(e,t),e._zod.parse=(r,n)=>{const i=r.value,s=t.left._zod.run({value:i,issues:[]},n),o=t.right._zod.run({value:i,issues:[]},n);return s instanceof Promise||o instanceof Promise?Promise.all([s,o]).then(([l,c])=>jv(r,l,c)):jv(r,s,o)}});function Kf(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(va(e)&&va(t)){const r=Object.keys(t),n=Object.keys(e).filter(s=>r.indexOf(s)!==-1),i={...e,...t};for(const s of n){const o=Kf(e[s],t[s]);if(!o.valid)return{valid:!1,mergeErrorPath:[s,...o.mergeErrorPath]};i[s]=o.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const i=e[n],s=t[n],o=Kf(i,s);if(!o.valid)return{valid:!1,mergeErrorPath:[n,...o.mergeErrorPath]};r.push(o.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function jv(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),Ss(e))return e;const n=Kf(t.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}const x$=I("$ZodEnum",(e,t)=>{Ge.init(e,t);const r=zO(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(i=>MO.has(typeof i)).map(i=>typeof i=="string"?vu(i):i.toString()).join("|")})$`),e._zod.parse=(i,s)=>{const o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:r,input:o,inst:e}),i}}),b$=I("$ZodTransform",(e,t)=>{Ge.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new h1(e.constructor.name);const i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(r.value=o,r));if(i instanceof Promise)throw new Is;return r.value=i,r}});function Cv(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const _$=I("$ZodOptional",(e,t)=>{Ge.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ke(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ke(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Tp(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(s=>Cv(s,r.value)):Cv(i,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),k$=I("$ZodNullable",(e,t)=>{Ge.init(e,t),ke(e._zod,"optin",()=>t.innerType._zod.optin),ke(e._zod,"optout",()=>t.innerType._zod.optout),ke(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Tp(r.source)}|null)$`):void 0}),ke(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),S$=I("$ZodDefault",(e,t)=>{Ge.init(e,t),e._zod.optin="optional",ke(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(s=>Tv(s,t)):Tv(i,t)}});function Tv(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const E$=I("$ZodPrefault",(e,t)=>{Ge.init(e,t),e._zod.optin="optional",ke(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),j$=I("$ZodNonOptional",(e,t)=>{Ge.init(e,t),ke(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(s=>Nv(s,e)):Nv(i,e)}});function Nv(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const C$=I("$ZodCatch",(e,t)=>{Ge.init(e,t),ke(e._zod,"optin",()=>t.innerType._zod.optin),ke(e._zod,"optout",()=>t.innerType._zod.optout),ke(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(s=>(r.value=s.value,s.issues.length&&(r.value=t.catchValue({...r,error:{issues:s.issues.map(o=>Mi(o,n,Li()))},input:r.value}),r.issues=[]),r)):(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(s=>Mi(s,n,Li()))},input:r.value}),r.issues=[]),r)}}),T$=I("$ZodPipe",(e,t)=>{Ge.init(e,t),ke(e._zod,"values",()=>t.in._zod.values),ke(e._zod,"optin",()=>t.in._zod.optin),ke(e._zod,"optout",()=>t.out._zod.optout),ke(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const s=t.out._zod.run(r,n);return s instanceof Promise?s.then(o=>bl(o,t.in,n)):bl(s,t.in,n)}const i=t.in._zod.run(r,n);return i instanceof Promise?i.then(s=>bl(s,t.out,n)):bl(i,t.out,n)}});function bl(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const N$=I("$ZodReadonly",(e,t)=>{Ge.init(e,t),ke(e._zod,"propValues",()=>t.innerType._zod.propValues),ke(e._zod,"values",()=>t.innerType._zod.values),ke(e._zod,"optin",()=>t.innerType._zod.optin),ke(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(Pv):Pv(i)}});function Pv(e){return e.value=Object.freeze(e.value),e}const P$=I("$ZodCustom",(e,t)=>{Vr.init(e,t),Ge.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(s=>Av(s,r,n,e));Av(i,r,n,e)}});function Av(e,t,r,n){if(!e){const i={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(i.params=n._zod.def.params),t.issues.push(ya(i))}}class A${constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const n=r[0];if(this._map.set(t,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const i={...n,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function R$(){return new A$}const _l=R$();function O$(e,t){return new e({type:"string",...X(t)})}function I$(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...X(t)})}function Rv(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...X(t)})}function $$(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...X(t)})}function D$(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...X(t)})}function z$(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...X(t)})}function L$(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...X(t)})}function M$(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...X(t)})}function F$(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...X(t)})}function U$(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...X(t)})}function V$(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...X(t)})}function B$(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...X(t)})}function W$(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...X(t)})}function H$(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...X(t)})}function Z$(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...X(t)})}function K$(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...X(t)})}function q$(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...X(t)})}function G$(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...X(t)})}function Q$(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...X(t)})}function Y$(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...X(t)})}function J$(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...X(t)})}function X$(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...X(t)})}function e4(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...X(t)})}function t4(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...X(t)})}function r4(e,t){return new e({type:"string",format:"date",check:"string_format",...X(t)})}function n4(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...X(t)})}function i4(e,t){return new e({type:"string",format:"duration",check:"string_format",...X(t)})}function s4(e){return new e({type:"unknown"})}function o4(e,t){return new e({type:"never",...X(t)})}function C1(e,t){return new PI({check:"max_length",...X(t),maximum:e})}function Pc(e,t){return new AI({check:"min_length",...X(t),minimum:e})}function T1(e,t){return new RI({check:"length_equals",...X(t),length:e})}function a4(e,t){return new OI({check:"string_format",format:"regex",...X(t),pattern:e})}function l4(e){return new II({check:"string_format",format:"lowercase",...X(e)})}function c4(e){return new $I({check:"string_format",format:"uppercase",...X(e)})}function u4(e,t){return new DI({check:"string_format",format:"includes",...X(t),includes:e})}function d4(e,t){return new zI({check:"string_format",format:"starts_with",...X(t),prefix:e})}function f4(e,t){return new LI({check:"string_format",format:"ends_with",...X(t),suffix:e})}function za(e){return new MI({check:"overwrite",tx:e})}function h4(e){return za(t=>t.normalize(e))}function p4(){return za(e=>e.trim())}function m4(){return za(e=>e.toLowerCase())}function g4(){return za(e=>e.toUpperCase())}function v4(e,t,r){return new e({type:"array",element:t,...X(r)})}function y4(e,t,r){return new e({type:"custom",check:"custom",fn:t,...X(r)})}function w4(e){const t=x4(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(ya(n,r.value,t._zod.def));else{const i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),r.issues.push(ya(i))}},e(r.value,r)));return t}function x4(e,t){const r=new Vr({check:"custom",...X(t)});return r._zod.check=e,r}const b4=I("ZodISODateTime",(e,t)=>{XI.init(e,t),$e.init(e,t)});function _4(e){return t4(b4,e)}const k4=I("ZodISODate",(e,t)=>{e$.init(e,t),$e.init(e,t)});function S4(e){return r4(k4,e)}const E4=I("ZodISOTime",(e,t)=>{t$.init(e,t),$e.init(e,t)});function j4(e){return n4(E4,e)}const C4=I("ZodISODuration",(e,t)=>{r$.init(e,t),$e.init(e,t)});function T4(e){return i4(C4,e)}const N4=(e,t)=>{w1.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>GO(e,r)},flatten:{value:r=>qO(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Zf,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Zf,2)}},isEmpty:{get(){return e.issues.length===0}}})},Yt=I("ZodError",N4,{Parent:Error}),P4=Pp(Yt),A4=Ap(Yt),R4=yu(Yt),O4=wu(Yt),I4=JO(Yt),$4=XO(Yt),D4=eI(Yt),z4=tI(Yt),L4=rI(Yt),M4=nI(Yt),F4=iI(Yt),U4=sI(Yt),et=I("ZodType",(e,t)=>(Ge.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(qi(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]})),e.clone=(r,n)=>li(e,r,n),e.brand=()=>e,e.register=(r,n)=>(r.add(e,n),e),e.parse=(r,n)=>P4(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>R4(e,r,n),e.parseAsync=async(r,n)=>A4(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>O4(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>I4(e,r,n),e.decode=(r,n)=>$4(e,r,n),e.encodeAsync=async(r,n)=>D4(e,r,n),e.decodeAsync=async(r,n)=>z4(e,r,n),e.safeEncode=(r,n)=>L4(e,r,n),e.safeDecode=(r,n)=>M4(e,r,n),e.safeEncodeAsync=async(r,n)=>F4(e,r,n),e.safeDecodeAsync=async(r,n)=>U4(e,r,n),e.refine=(r,n)=>e.check(RD(r,n)),e.superRefine=r=>e.check(OD(r)),e.overwrite=r=>e.check(za(r)),e.optional=()=>$v(e),e.nullable=()=>Dv(e),e.nullish=()=>$v(Dv(e)),e.nonoptional=r=>ED(e,r),e.array=()=>uD(e),e.or=r=>pD([e,r]),e.and=r=>gD(e,r),e.transform=r=>zv(e,wD(r)),e.default=r=>_D(e,r),e.prefault=r=>SD(e,r),e.catch=r=>CD(e,r),e.pipe=r=>zv(e,r),e.readonly=()=>PD(e),e.describe=r=>{const n=e.clone();return _l.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){var r;return(r=_l.get(e))==null?void 0:r.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return _l.get(e);const n=e.clone();return _l.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),N1=I("_ZodString",(e,t)=>{Rp.init(e,t),et.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(a4(...n)),e.includes=(...n)=>e.check(u4(...n)),e.startsWith=(...n)=>e.check(d4(...n)),e.endsWith=(...n)=>e.check(f4(...n)),e.min=(...n)=>e.check(Pc(...n)),e.max=(...n)=>e.check(C1(...n)),e.length=(...n)=>e.check(T1(...n)),e.nonempty=(...n)=>e.check(Pc(1,...n)),e.lowercase=n=>e.check(l4(n)),e.uppercase=n=>e.check(c4(n)),e.trim=()=>e.check(p4()),e.normalize=(...n)=>e.check(h4(...n)),e.toLowerCase=()=>e.check(m4()),e.toUpperCase=()=>e.check(g4())}),V4=I("ZodString",(e,t)=>{Rp.init(e,t),N1.init(e,t),e.email=r=>e.check(I$(B4,r)),e.url=r=>e.check(M$(W4,r)),e.jwt=r=>e.check(e4(sD,r)),e.emoji=r=>e.check(F$(H4,r)),e.guid=r=>e.check(Rv(Ov,r)),e.uuid=r=>e.check($$(kl,r)),e.uuidv4=r=>e.check(D$(kl,r)),e.uuidv6=r=>e.check(z$(kl,r)),e.uuidv7=r=>e.check(L$(kl,r)),e.nanoid=r=>e.check(U$(Z4,r)),e.guid=r=>e.check(Rv(Ov,r)),e.cuid=r=>e.check(V$(K4,r)),e.cuid2=r=>e.check(B$(q4,r)),e.ulid=r=>e.check(W$(G4,r)),e.base64=r=>e.check(Y$(rD,r)),e.base64url=r=>e.check(J$(nD,r)),e.xid=r=>e.check(H$(Q4,r)),e.ksuid=r=>e.check(Z$(Y4,r)),e.ipv4=r=>e.check(K$(J4,r)),e.ipv6=r=>e.check(q$(X4,r)),e.cidrv4=r=>e.check(G$(eD,r)),e.cidrv6=r=>e.check(Q$(tD,r)),e.e164=r=>e.check(X$(iD,r)),e.datetime=r=>e.check(_4(r)),e.date=r=>e.check(S4(r)),e.time=r=>e.check(j4(r)),e.duration=r=>e.check(T4(r))});function Cn(e){return O$(V4,e)}const $e=I("ZodStringFormat",(e,t)=>{Ne.init(e,t),N1.init(e,t)}),B4=I("ZodEmail",(e,t)=>{WI.init(e,t),$e.init(e,t)}),Ov=I("ZodGUID",(e,t)=>{VI.init(e,t),$e.init(e,t)}),kl=I("ZodUUID",(e,t)=>{BI.init(e,t),$e.init(e,t)}),W4=I("ZodURL",(e,t)=>{HI.init(e,t),$e.init(e,t)}),H4=I("ZodEmoji",(e,t)=>{ZI.init(e,t),$e.init(e,t)}),Z4=I("ZodNanoID",(e,t)=>{KI.init(e,t),$e.init(e,t)}),K4=I("ZodCUID",(e,t)=>{qI.init(e,t),$e.init(e,t)}),q4=I("ZodCUID2",(e,t)=>{GI.init(e,t),$e.init(e,t)}),G4=I("ZodULID",(e,t)=>{QI.init(e,t),$e.init(e,t)}),Q4=I("ZodXID",(e,t)=>{YI.init(e,t),$e.init(e,t)}),Y4=I("ZodKSUID",(e,t)=>{JI.init(e,t),$e.init(e,t)}),J4=I("ZodIPv4",(e,t)=>{n$.init(e,t),$e.init(e,t)}),X4=I("ZodIPv6",(e,t)=>{i$.init(e,t),$e.init(e,t)}),eD=I("ZodCIDRv4",(e,t)=>{s$.init(e,t),$e.init(e,t)}),tD=I("ZodCIDRv6",(e,t)=>{o$.init(e,t),$e.init(e,t)}),rD=I("ZodBase64",(e,t)=>{a$.init(e,t),$e.init(e,t)}),nD=I("ZodBase64URL",(e,t)=>{c$.init(e,t),$e.init(e,t)}),iD=I("ZodE164",(e,t)=>{u$.init(e,t),$e.init(e,t)}),sD=I("ZodJWT",(e,t)=>{f$.init(e,t),$e.init(e,t)}),oD=I("ZodUnknown",(e,t)=>
345{h$.init(e,t),et.init(e,t)});function Iv(){return s4(oD)}const aD=I("ZodNever",(e,t)=>{p$.init(e,t),et.init(e,t)});function lD(e){return o4(aD,e)}const cD=I("ZodArray",(e,t)=>{m$.init(e,t),et.init(e,t),e.element=t.element,e.min=(r,n)=>e.check(Pc(r,n)),e.nonempty=r=>e.check(Pc(1,r)),e.max=(r,n)=>e.check(C1(r,n)),e.length=(r,n)=>e.check(T1(r,n)),e.unwrap=()=>e.element});function uD(e,t){return v4(cD,e,t)}const dD=I("ZodObject",(e,t)=>{v$.init(e,t),et.init(e,t),ke(e,"shape",()=>t.shape),e.keyof=()=>vD(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Iv()}),e.loose=()=>e.clone({...e._zod.def,catchall:Iv()}),e.strict=()=>e.clone({...e._zod.def,catchall:lD()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>BO(e,r),e.safeExtend=r=>WO(e,r),e.merge=r=>HO(e,r),e.pick=r=>UO(e,r),e.omit=r=>VO(e,r),e.partial=(...r)=>ZO(P1,e,r[0]),e.required=(...r)=>KO(A1,e,r[0])});function fD(e,t){const r={type:"object",shape:e??{},...X(t)};return new dD(r)}const hD=I("ZodUnion",(e,t)=>{y$.init(e,t),et.init(e,t),e.options=t.options});function pD(e,t){return new hD({type:"union",options:e,...X(t)})}const mD=I("ZodIntersection",(e,t)=>{w$.init(e,t),et.init(e,t)});function gD(e,t){return new mD({type:"intersection",left:e,right:t})}const qf=I("ZodEnum",(e,t)=>{x$.init(e,t),et.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,i)=>{const s={};for(const o of n)if(r.has(o))s[o]=t.entries[o];else throw new Error(`Key ${o} not found in enum`);return new qf({...t,checks:[],...X(i),entries:s})},e.exclude=(n,i)=>{const s={...t.entries};for(const o of n)if(r.has(o))delete s[o];else throw new Error(`Key ${o} not found in enum`);return new qf({...t,checks:[],...X(i),entries:s})}});function vD(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new qf({type:"enum",entries:r,...X(t)})}const yD=I("ZodTransform",(e,t)=>{b$.init(e,t),et.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new h1(e.constructor.name);r.addIssue=s=>{if(typeof s=="string")r.issues.push(ya(s,r.value,t));else{const o=s;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=e),r.issues.push(ya(o))}};const i=t.transform(r.value,r);return i instanceof Promise?i.then(s=>(r.value=s,r)):(r.value=i,r)}});function wD(e){return new yD({type:"transform",transform:e})}const P1=I("ZodOptional",(e,t)=>{_$.init(e,t),et.init(e,t),e.unwrap=()=>e._zod.def.innerType});function $v(e){return new P1({type:"optional",innerType:e})}const xD=I("ZodNullable",(e,t)=>{k$.init(e,t),et.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Dv(e){return new xD({type:"nullable",innerType:e})}const bD=I("ZodDefault",(e,t)=>{S$.init(e,t),et.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function _D(e,t){return new bD({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():g1(t)}})}const kD=I("ZodPrefault",(e,t)=>{E$.init(e,t),et.init(e,t),e.unwrap=()=>e._zod.def.innerType});function SD(e,t){return new kD({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():g1(t)}})}const A1=I("ZodNonOptional",(e,t)=>{j$.init(e,t),et.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ED(e,t){return new A1({type:"nonoptional",innerType:e,...X(t)})}const jD=I("ZodCatch",(e,t)=>{C$.init(e,t),et.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function CD(e,t){return new jD({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const TD=I("ZodPipe",(e,t)=>{T$.init(e,t),et.init(e,t),e.in=t.in,e.out=t.out});function zv(e,t){return new TD({type:"pipe",in:e,out:t})}const ND=I("ZodReadonly",(e,t)=>{N$.init(e,t),et.init(e,t),e.unwrap=()=>e._zod.def.innerType});function PD(e){return new ND({type:"readonly",innerType:e})}const AD=I("ZodCustom",(e,t)=>{P$.init(e,t),et.init(e,t)});function RD(e,t={}){return y4(AD,e,t)}function OD(e){return w4(e)}const ID=fD({nume:Cn().min(2,"Numele trebuie să aibă cel puțin 2 caractere"),prenume:Cn().min(2,"Prenumele trebuie să aibă cel puțin 2 caractere"),anNastere:Cn().min(4,"Anul nașterii este obligatoriu").max(4,"Format invalid pentru an"),localitatea:Cn().min(2,"Localitatea este obligatorie"),institutie:Cn().min(2,"Instituția/Compania este obligatorie"),hobbyuri:Cn().min(5,"Descrie-ți cel puțin câteva hobby-uri"),motivatie:Cn().min(50,"Motivația trebuie să aibă cel puțin 50 de caractere"),ideaEveniment:Cn().min(100,"Ideea de eveniment trebuie să fie detaliată (min. 100 caractere)")}),$D=()=>{const{toast:e}=Kc(),[t,r]=y.useState(!1),[n,i]=y.useState(!1),s=()=>{const d=document.getElementById("volunteer-form");d&&d.scrollIntoView({behavior:"smooth"})},o=TO({resolver:DO(ID),defaultValues:{nume:"",prenume:"",anNastere:"",localitatea:"",institutie:"",hobbyuri:"",motivatie:"",ideaEveniment:""}}),a=async d=>{if(o.formState.isValid){r(!0);try{const{error:f}=await mr.from("voluntari").insert([{nume:d.nume,prenume:d.prenume,an_nastere:parseInt(d.anNastere),localitatea:d.localitatea,institutie:d.institutie,hobbyuri:d.hobbyuri,motivatie:d.motivatie,idea_eveniment:d.ideaEveniment}]);if(f){console.error("Supabase error:",f),e({title:"Eroare la trimiterea aplicației",description:"A apărut o problemă. Te rugăm să încerci din nou.",variant:"destructive"});return}e({title:"Aplicația ta a fost trimisă!",description:"Îți mulțumim pentru interesul manifestat. Te vom contacta în curând!"}),o.reset(),i(!0)}catch(f){console.error("Error submitting form:",f),e({title:"Eroare la trimiterea aplicației",description:"A apărut o problemă. Te rugăm să încerci din nou.",variant:"destructive"})}finally{r(!1)}}},l=[{icon:u.jsx(zE,{className:"w-5 h-5"}),title:"Conținut pentru social media",description:"Texte și postări creative"},{icon:u.jsx(Mo,{className:"w-5 h-5"}),title:"Organizare evenimente",description:"Sprijin în planificare și de
345sfășurare"},{icon:u.jsx(Lw,{className:"w-5 h-5"}),title:"Idei și contribuții",description:"Perspective fresh și soluții inovatoare"},{icon:u.jsx($i,{className:"w-5 h-5"}),title:"Comunicare",description:"Asistență cu participanții la proiecte"}],c=[{icon:u.jsx(CE,{className:"w-5 h-5"}),title:"Participare gratuită",description:"Scutire de taxă pentru toate proiectele"},{icon:u.jsx(TE,{className:"w-5 h-5"}),title:"Carnet de voluntar",description:"Documentare oficială"},{icon:u.jsx(UE,{className:"w-5 h-5"}),title:"Experiență facultate",description:"Recunoaștere academică"},{icon:u.jsx(zw,{className:"w-5 h-5"}),title:"Youthpass",description:"Certificare europeană"},{icon:u.jsx($i,{className:"w-5 h-5"}),title:"Networking",description:"Comunitate de tineri activi"},{icon:u.jsx(eg,{className:"w-5 h-5"}),title:"Dezvoltare personală",description:"Abilități noi și certificări"}];return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(Ia,{}),u.jsxs("main",{className:"pt-20",children:[u.jsx("section",{className:"bg-gradient-wings py-16 text-white relative",children:u.jsxs("div",{className:"container mx-auto px-4 text-center",children:[u.jsx("h1",{className:"text-4xl md:text-6xl font-bold mb-6",children:"Devino Voluntar la Aripi Pentru Viitor"}),u.jsx("p",{className:"text-xl md:text-2xl max-w-3xl mx-auto leading-relaxed mb-8",children:"Alătură-te echipei noastre de tineri pasionați și contribuie la schimbarea pozitivă din comunitate!"}),u.jsx(Ae,{onClick:s,size:"lg",className:"bg-white text-primary hover:bg-white/90 font-bold px-8 py-4 text-lg shadow-lg animate-pulse",children:"DEVINO VOLUNTAR"})]})}),u.jsx("section",{className:"py-12 bg-muted",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsx("div",{className:"text-center mb-8",children:u.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground mb-2",children:"Ce vei face ca voluntar?"})}),u.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-4 max-w-4xl mx-auto",children:l.map((d,f)=>u.jsxs(rt,{className:"hover-lift text-center",children:[u.jsxs(vt,{className:"pb-3",children:[u.jsx("div",{className:"mx-auto p-2 bg-primary rounded-lg text-primary-foreground w-fit mb-2",children:d.icon}),u.jsx(yt,{className:"text-base",children:d.title})]}),u.jsx(Je,{className:"pt-0",children:u.jsx(wt,{className:"text-sm",children:d.description})})]},f))})]})}),u.jsx("section",{className:"py-12",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsx("div",{className:"text-center mb-8",children:u.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground mb-2",children:"Ce beneficii vei avea?"})}),u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4 max-w-6xl mx-auto",children:c.map((d,f)=>u.jsxs(rt,{className:"hover-lift text-center",children:[u.jsxs(vt,{className:"pb-3",children:[u.jsx("div",{className:"mx-auto p-2 bg-secondary rounded-lg text-secondary-foreground w-fit mb-2",children:d.icon}),u.jsx(yt,{className:"text-sm",children:d.title})]}),u.jsx(Je,{className:"pt-0",children:u.jsx(wt,{className:"text-xs",children:d.description})})]},f))})]})}),u.jsx("section",{id:"volunteer-form",className:"py-20 bg-gradient-to-br from-primary/5 to-secondary/5",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsx("div",{className:"max-w-4xl mx-auto",children:u.jsx(rt,{className:"shadow-2xl border-0",children:n?u.jsxs(u.Fragment,{children:[u.jsxs(vt,{className:"text-center bg-gradient-to-r from-green-500 to-emerald-600 text-white rounded-t-lg",children:[u.jsx(yt,{className:"text-4xl mb-4 font-bold",children:"🎉 Felicitări!"}),u.jsx(wt,{className:"text-xl text-white/90",children:"Aplicația ta a fost trimisă cu succes!"})]}),u.jsx(Je,{className:"p-12 text-center",children:u.jsxs("div",{className:"space-y-6",children:[u.jsx("div",{className:"mx-auto w-24 h-24 bg-green-100 rounded-full flex items-center justify-center mb-6",children:u.jsx(eg,{className:"w-12 h-12 text-green-600"})}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-2xl font-bold text-foreground",children:"Mulțumim pentru aplicația ta!"}),u.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Echipa noastră va analiza aplicația ta și te vom contacta în cel mai scurt timp pentru a discuta următorii pași. Între timp, poți să ne urmărești pe social media pentru a fi la curent cu toate activitățile noastre."}),u.jsx("div",{className:"pt-6",children:u.jsx(Ae,{onClick:()=>{i(!1),o.reset()},variant:"outline",size:"lg",className:"mx-auto",children:"Trimite o altă aplicație"})})]})]})})]}):u.jsxs(u.Fragment,{children:[u.jsxs(vt,{className:"text-center bg-gradient-wings text-white rounded-t-lg",children:[u.jsx(yt,{className:"text-4xl mb-4 font-bold",children:"🚀 Aplicația de Voluntariat"}),u.jsx(wt,{className:"text-xl text-white/90",children:"Completează formularul și alătură-te echipei noastre de schimbători ai lumii!"})]}),u.jsx(Je,{className:"p-8",children:u.jsx(AO,{...o,children:u.jsxs("form",{onSubmit:o.handleSubmit(a),className:"space-y-8",children:[u.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[u.jsx(jn,{control:o.control,name:"nume",render:({field:d})=>u.jsxs(Jr,{children:[u.jsx(Xr,{children:"Nume *"}),u.jsx(en,{children:u.jsx(fr,{placeholder:"Nume de familie",...d})}),u.jsx(tn,{})]})}),u.jsx(jn,{control:o.control,name:"prenume",render:({field:d})=>u.jsxs(Jr,{children:[u.jsx(Xr,{children:"Prenume *"}),u.jsx(en,{children:u.jsx(fr,{placeholder:"Prenumele tău",...d})}),u.jsx(tn,{})]})})]}),u.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[u.jsx(jn,{control:o.control,name:"anNastere",render:({field:d})=>u.jsxs(Jr,{children:[u.jsx(Xr,{children:"Anul nașterii *"}),u.jsx(en,{children:u.jsx(fr,{placeholder:"ex: 2000",type:"number",...d})}),u.jsx(tn,{})]})}),u.jsx(jn,{control:o.control,name:"localitatea",render:({field:d})=>u.jsxs(Jr,{children:[u.jsx(Xr,{children:"Localitatea de proveniență *"}),u.jsx(en,{children:u.jsx(fr,{placeholder:"ex: București, Cluj-Napoca",...d})}),u.jsx(tn,{})]})})]}),u.jsx(jn,{control:o.control,name:"institutie",render:({field:d})=>u.jsxs(Jr,{children:[u.jsx(Xr,{children:"Instituția de studiu sau compania/domeniul de activitate *"}),u.jsx(en,{children:u.jsx(fr,{placeholder:"ex: Universitatea București - Facultatea de Litere / Google - Marketing",...d})}),u.jsx(tn,{})]})}),u.jsx(jn,{control:o.control,name:"hobbyuri",render:({field:d})=>u.jsxs(Jr,{children:[u.jsx(Xr,{children:"Hobby-uri și pasiuni *"}),u.jsx(en,{children:u.jsx(Vl,{placeholder:"Descrie-ți hobby-urile și pasiunile tale...",...d})}),u.jsx(tn,{})]})}),u.jsx(jn,{control:o.control,name:"motivatie",render:({field:d})=>u.jsxs(Jr,{children:[u.jsx(Xr,{children:"Motivația - De ce îți dorești să fii voluntar la noi? *"}
345),u.jsx(en,{children:u.jsx(Vl,{placeholder:"Spune-ne ce te motivează să te alături echipei noastre...",className:"min-h-[100px]",...d})}),u.jsx(tn,{})]})}),u.jsx(jn,{control:o.control,name:"ideaEveniment",render:({field:d})=>u.jsxs(Jr,{children:[u.jsx(Xr,{children:"Mini-task: Ideea ta de eveniment *"}),u.jsx(en,{children:u.jsx(Vl,{placeholder:"Propune o idee de eveniment pe care l-ai organiza în localitatea ta pentru a rezolva o problemă comunitară. Descrie problema, soluția propusă și cum ai implementa evenimentul...",className:"min-h-[120px]",...d})}),u.jsx(tn,{})]})}),u.jsxs("div",{className:"text-center pt-8",children:[u.jsx(Ae,{type:"submit",size:"lg",disabled:t,className:"bg-gradient-wings hover:opacity-90 text-white px-12 py-4 text-lg font-bold shadow-lg disabled:opacity-50",children:t?"Se trimite...":"🎯 Trimite Aplicația"}),u.jsx("p",{className:"text-sm text-muted-foreground mt-4",children:"Te vom contacta în curând pentru următorii pași!"})]})]})})})]})})})})})]}),u.jsx($a,{})]})},DD="/assets/mobility-application-C4WIx0Ti.jpg",zD="/assets/mobility-sharing-Ch9WSxNg.jpg",LD="/assets/mobility-travel-CGvyiKca.jpg",MD=()=>{const e=[{id:1,titlu:"Youth Mobility Exchange 2024",descriere:"Program de schimb cultural și educațional pentru tinerii din Moldova și țările UE, focusat pe dezvoltarea competențelor antreprenoriale și digitale.",locatie:"Chișinău, Moldova & Cluj-Napoca, România",durata:"Martie - Septembrie 2024",participanti:45,tari:["Moldova","România","Polonia","Italia"],status:"în desfășurare",imagine:DD,tipProiect:"Erasmus+ Youth Exchange"},{id:2,titlu:"Digital Skills for Rural Youth",descriere:"Inițiativă de formare în competențe digitale pentru tinerii din zonele rurale ale Moldovei, cu focus pe oportunități de muncă online și antreprenoriat digital.",locatie:"Verschiedene Gemeinden, Moldova",durata:"Februarie - Decembrie 2024",participanti:120,tari:["Moldova","Estonia","Lituania"],status:"în desfășurare",imagine:zD,tipProiect:"Erasmus+ Capacity Building"},{id:3,titlu:"Green Future Leaders",descriere:"Program de educație ecologică și leadership pentru tineri, promovând soluții sustenabile și conștientizarea schimbărilor climatice.",locatie:"Varșovia, Polonia",durata:"Mai - Iunie 2024",participanti:32,tari:["Moldova","Polonia","România","Ucraina","Bulgaria"],status:"finalizat",imagine:LD,tipProiect:"Erasmus+ Training Course"}],t=[{titlu:"Tech Innovation Hub Moldova",descriere:"Centru de inovație tehnologică pentru tinerii antreprenori moldoveni",perioada:"Ianuarie - Decembrie 2025",status:"în pregătire"},{titlu:"European Citizenship Academy",descriere:"Academie de formare în cetățenie europeană și valori democratice",perioada:"Martie - Noiembrie 2025",status:"în pregătire"},{titlu:"Rural Development Initiative",descriere:"Program de dezvoltare rurală sustenabilă prin implicarea tinerilor",perioada:"Iunie - Septembrie 2025",status:"în pregătire"}],r=n=>{switch(n){case"în desfășurare":return"bg-green-100 text-green-800 border-green-200";case"finalizat":return"bg-blue-100 text-blue-800 border-blue-200";case"în pregătire":return"bg-yellow-100 text-yellow-800 border-yellow-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}};return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(Ia,{}),u.jsxs("main",{className:"pt-20",children:[u.jsx("section",{className:"bg-gradient-wings py-16 text-white",children:u.jsxs("div",{className:"container mx-auto px-4 text-center",children:[u.jsx("h1",{className:"text-4xl md:text-6xl font-bold mb-6",children:"Proiectele Noastre"}),u.jsx("p",{className:"text-xl md:text-2xl max-w-3xl mx-auto leading-relaxed",children:"Descoperă inițiativele prin care transformăm vise în realitate și oferim aripi tinerilor moldoveni"})]})}),u.jsx("section",{className:"py-12 bg-muted",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6 max-w-4xl mx-auto",children:[u.jsxs(rt,{className:"text-center",children:[u.jsxs(vt,{className:"pb-2",children:[u.jsx("div",{className:"w-12 h-12 bg-primary rounded-lg flex items-center justify-center mx-auto mb-2",children:u.jsx(zw,{className:"w-6 h-6 text-primary-foreground"})}),u.jsx(yt,{className:"text-2xl font-bold",children:"15+"})]}),u.jsx(Je,{children:u.jsx(wt,{children:"Proiecte implementate"})})]}),u.jsxs(rt,{className:"text-center",children:[u.jsxs(vt,{className:"pb-2",children:[u.jsx("div",{className:"w-12 h-12 bg-secondary rounded-lg flex items-center justify-center mx-auto mb-2",children:u.jsx($i,{className:"w-6 h-6 text-secondary-foreground"})}),u.jsx(yt,{className:"text-2xl font-bold",children:"500+"})]}),u.jsx(Je,{children:u.jsx(wt,{children:"Tineri beneficiarii"})})]}),u.jsxs(rt,{className:"text-center",children:[u.jsxs(vt,{className:"pb-2",children:[u.jsx("div",{className:"w-12 h-12 bg-accent rounded-lg flex items-center justify-center mx-auto mb-2",children:u.jsx(hc,{className:"w-6 h-6 text-accent-foreground"})}),u.jsx(yt,{className:"text-2xl font-bold",children:"12"})]}),u.jsx(Je,{children:u.jsx(wt,{children:"Țări partenere"})})]}),u.jsxs(rt,{className:"text-center",children:[u.jsxs(vt,{className:"pb-2",children:[u.jsx("div",{className:"w-12 h-12 bg-primary rounded-lg flex items-center justify-center mx-auto mb-2",children:u.jsx(Mo,{className:"w-6 h-6 text-primary-foreground"})}),u.jsx(yt,{className:"text-2xl font-bold",children:"3"})]}),u.jsx(Je,{children:u.jsx(wt,{children:"Ani de activitate"})})]})]})})}),u.jsx("section",{className:"py-16",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"text-center mb-12",children:[u.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"Proiecte în Desfășurare"}),u.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Inițiativele noastre active care creează impact real în comunitățile de tineri"})]}),u.jsx("div",{className:"grid md:grid-cols-1 lg:grid-cols-1 gap-8 max-w-4xl mx-auto",children:e.map(n=>u.jsx(rt,{className:"overflow-hidden hover-lift",children:u.jsxs("div",{className:"md:flex",children:[u.jsx("div",{className:"md:w-1/3",children:u.jsx("img",{src:n.imagine,alt:n.titlu,className:"w-full h-48 md:h-full object-cover"})}),u.jsxs("div",{className:"md:w-2/3 p-6",children:[u.jsxs(vt,{className:"p-0 mb-4",children:[u.jsxs("div",{className:"flex items-start justify-between mb-2",children:[u.jsx(_s,{variant:"outline",className:"mb-2",children:n.tipProiect}),u.jsx(_s,{className:r(n.status),children:n.status})]}),u.jsx(yt,{className:"text-xl mb-2",children:n.titlu}),u.jsx(wt,{className:"text-base",children:n.descriere})]}),u.jsxs(Je,{className:"p-0 space-y-3",children:[u.jsxs("div",{className:"flex items-center text-sm text-muted-foreground",children:[u.jsx(hc,{className:"w-4 h-4 mr-2"}),n.locatie]}),u.jsxs("div",{className:"flex items-center text-sm text-muted-foreground",children:[u.jsx(Mo,{className:"w-4 h-4 mr-2"}),n.durata]}),u.jsxs("div",{className:"flex items-center text-sm text-muted-foreground",children:[u.jsx($i,{className:"w-4 h-4 mr-2"}),n.participanti," participanți din ",n.tari.length," țări"]}
vendor: 4,366 bytes, line 345
345),u.jsx("div",{className:"flex flex-wrap gap-2 mt-4",children:n.tari.map(i=>u.jsx(_s,{variant:"secondary",className:"text-xs",children:i},i))})]})]})]})},n.id))})]})}),u.jsx("section",{className:"py-16 bg-muted",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"text-center mb-12",children:[u.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"Proiecte în Pregătire"}),u.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Inițiativele viitoare care vor continua să construiască punți către un viitor mai bun"})]}),u.jsx("div",{className:"grid md:grid-cols-1 lg:grid-cols-3 gap-6 max-w-6xl mx-auto",children:t.map((n,i)=>u.jsxs(rt,{className:"text-center hover-lift",children:[u.jsxs(vt,{children:[u.jsx(_s,{className:r(n.status),variant:"outline",children:n.status}),u.jsx(yt,{className:"text-lg mt-4",children:n.titlu})]}),u.jsxs(Je,{children:[u.jsx(wt,{className:"text-base mb-4",children:n.descriere}),u.jsxs("div",{className:"flex items-center justify-center text-sm text-muted-foreground",children:[u.jsx(Mo,{className:"w-4 h-4 mr-2"}),n.perioada]})]})]},i))})]})}),u.jsx("section",{className:"py-16 bg-gradient-wings text-white",children:u.jsxs("div",{className:"container mx-auto px-4 text-center",children:[u.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Vrei să faci parte din următorul proiect?"}),u.jsx("p",{className:"text-xl max-w-2xl mx-auto mb-8 leading-relaxed",children:"Alătură-te echipei noastre de voluntari și contribuie la crearea de oportunități pentru tinerii moldoveni"}),u.jsx(Ae,{size:"lg",className:"bg-white text-primary hover:bg-white/90 font-bold px-8 py-4",onClick:()=>window.location.href="/devino-voluntar",children:"Devino Voluntar"})]})})]}),u.jsx($a,{})]})};var FD=y.createContext(void 0);function R1(e){const t=y.useContext(FD);return e||t||"ltr"}var bd="rovingFocusGroup.onEntryFocus",UD={bubbles:!1,cancelable:!0},La="RovingFocusGroup",[Gf,O1,VD]=uw(La),[BD,I1]=Vi(La,[VD]),[WD,HD]=BD(La),$1=y.forwardRef((e,t)=>u.jsx(Gf.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Gf.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(ZD,{...e,ref:t})})}));$1.displayName=La;var ZD=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=e,h=y.useRef(null),p=dt(t,h),b=R1(s),[g,x]=Gc({prop:o,defaultProp:a??null,onChange:l,caller:La}),[w,m]=y.useState(!1),v=wr(c),_=O1(r),k=y.useRef(!1),[E,j]=y.useState(0);return y.useEffect(()=>{const T=h.current;if(T)return T.addEventListener(bd,v),()=>T.removeEventListener(bd,v)},[v]),u.jsx(WD,{scope:r,orientation:n,dir:b,loop:i,currentTabStopId:g,onItemFocus:y.useCallback(T=>x(T),[x]),onItemShiftTab:y.useCallback(()=>m(!0),[]),onFocusableItemAdd:y.useCallback(()=>j(T=>T+1),[]),onFocusableItemRemove:y.useCallback(()=>j(T=>T-1),[]),children:u.jsx(xe.div,{tabIndex:w||E===0?-1:0,"data-orientation":n,...f,ref:p,style:{outline:"none",...e.style},onMouseDown:fe(e.onMouseDown,()=>{k.current=!0}),onFocus:fe(e.onFocus,T=>{const L=!k.current;if(T.target===T.currentTarget&&L&&!w){const M=new CustomEvent(bd,UD);if(T.currentTarget.dispatchEvent(M),!M.defaultPrevented){const G=_().filter(Z=>Z.focusable),$=G.find(Z=>Z.active),H=G.find(Z=>Z.id===g),Q=[$,H,...G].filter(Boolean).map(Z=>Z.ref.current);L1(Q,d)}}k.current=!1}),onBlur:fe(e.onBlur,()=>m(!1))})})}),D1="RovingFocusGroupItem",z1=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:s,children:o,...a}=e,l=Fo(),c=s||l,d=HD(D1,r),f=d.currentTabStopId===c,h=O1(r),{onFocusableItemAdd:p,onFocusableItemRemove:b,currentTabStopId:g}=d;return y.useEffect(()=>{if(n)return p(),()=>b()},[n,p,b]),u.jsx(Gf.ItemSlot,{scope:r,id:c,focusable:n,active:i,children:u.jsx(xe.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:fe(e.onMouseDown,x=>{n?d.onItemFocus(c):x.preventDefault()}),onFocus:fe(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:fe(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const w=GD(x,d.orientation,d.dir);if(w!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let v=h().filter(_=>
345_.focusable).map(_=>_.ref.current);if(w==="last")v.reverse();else if(w==="prev"||w==="next"){w==="prev"&&v.reverse();const _=v.indexOf(x.currentTarget);v=d.loop?QD(v,_+1):v.slice(_+1)}setTimeout(()=>L1(v))}}),children:typeof o=="function"?o({isCurrentTabStop:f,hasTabStop:g!=null}):o})})});z1.displayName=D1;var KD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function qD(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function GD(e,t,r){const n=qD(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return KD[n]}function L1(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function QD(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var YD=$1,JD=z1,bu="Tabs",[XD,jz]=Vi(bu,[I1]),M1=I1(),[ez,Op]=XD(bu),F1=y.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:i,defaultValue:s,orientation:o="horizontal",dir:a,activationMode:l="automatic",...c}=e,d=R1(a),[f,h]=Gc({prop:n,onChange:i,defaultProp:s??"",caller:bu});return u.jsx(ez,{scope:r,baseId:Fo(),value:f,onValueChange:h,orientation:o,dir:d,activationMode:l,children:u.jsx(xe.div,{dir:d,"data-orientation":o,...c,ref:t})})});F1.displayName=bu;var U1="TabsList",V1=y.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...i}=e,s=Op(U1,r),o=M1(r);return u.jsx(YD,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:n,children:u.jsx(xe.div,{role:"tablist","aria-orientation":s.orientation,...i,ref:t})})});V1.displayName=U1;var B1="TabsTrigger",W1=y.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:i=!1,...s}=e,o=Op(B1,r),a=M1(r),l=K1(o.baseId,n),c=q1(o.baseId,n),d=n===o.value;return u.jsx(JD,{asChild:!0,...a,focusable:!i,active:d,children:u.jsx(xe.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l,...s,ref:t,onMouseDown:fe(e.onMouseDown,f=>{!i&&f.button===0&&f.ctrlKey===!1?o.onValueChange(n):f.preventDefault()}),onKeyDown:fe(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(n)}),onFocus:fe(e.onFocus,()=>{const f=o.activationMode!=="manual";!d&&!i&&f&&o.onValueChange(n)})})})});W1.displayName=B1;var H1="TabsContent",Z1=y.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:i,children:s,...o}=e,a=Op(H1,r),l=K1(a.baseId,n),c=q1(a.baseId,n),d=n===a.value,f=y.useRef(d);return y.useEffect(()=>{const h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),u.jsx(Bi,{present:i||d,children:({present:h})=>u.jsx(xe.div,{"data-state":d?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:h&&s})})});Z1.displayName=H1;function K1(e,t){return`${e}-trigger-${t}`}function q1(e,t){return`${e}-content-${t}`}var tz=F1,G1=V1,Q1=W1,Y1=Z1;const rz=tz,J1=y.forwardRef(({className:e,...t},r)=>u.jsx(G1,{ref:r,className:me("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));J1.displayName=G1.displayName;const Qf=y.forwardRef(({className:e,...t},r)=>u.jsx(Q1,{ref:r,className:me("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));Qf.displayName=Q1.displayName;const Yf=y.forwardRef(({className:e,...t},r)=>u.jsx(Y1,{ref:r,className:me("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Yf.displayName=Y1.displayName;const nz=()=>{const[e,t]=y.useState(""),[r,n]=y.useState(""),[i,s]=y.useState(!1);y.useState(!1);const o=ou(),{toast:a}=Kc();y.useEffect(()=>{(async()=>{const{data:{session:h}}=await mr.auth.getSession();h!=null&&h.user&&o("/")})();const{data:{subscription:f}}=mr.auth.onAuthStateChange((h,p)=>{p!=null&&p.user&&o("/")});return()=>f.unsubscribe()},[o]);const l=async d=>{if(d.preventDefault(),!(!e||!r)){s(!0);try{const{error:f}=await mr.auth.signInWithPassword({email:e,password:r});f?f.message.includes("Invalid login credentials")?a({variant:"destructive",title:"Eroare de autentificare",description:"Email sau parolă incorectă. Verificați datele introduse."}):a({variant:"destructive",title:"Eroare",description:f.message}):a({title:"Autentificare reușită",description:"Bine ați revenit!"})}catch{a({variant:"destructive",title:"Eroare",description:"A apărut o eroare neașteptată. Încercați din nou."})}finally{s(!1)}}},c=async d=>{if(d.preventDefault(),!(!e||!r)){s(!0);try{const f=`${window.location.origin}/`,{error:h}=await mr.auth.signUp({email:e,password:r,options:{emailRedirectTo:f}});h?h.message.includes("User already registered")?a({variant:"destructive",title:"Cont existent",description:"Există deja un cont cu această adresă de email. Încercați să vă autentificați."}):a({variant:"destructive",title:"Eroare",description:h.message}):a({title:"Înregistrare reușită",description:"Verificați email-ul pentru a confirma contul."})}catch{a({variant:"destructive",title:"Eroare",description:"A apărut o eroare neașteptată. Încercați din nou."})}finally{s(!1)}}};return u.jsx("div",{className:"min-h-screen bg-gradient-to-br from-primary/5 to-secondary/5 flex items-center justify-center p-4",children:u.jsxs(rt,{className:"w-full max-w-md",children:[u.jsxs(vt,{className:"space-y-1",children:[u.jsx(yt,{className:"text-2xl text-center",children:"Aripi Pentru Viitor"}),u.jsx(wt,{className:"text-center",children:"Conectați-vă pentru a accesa platforma"})]}),u.jsx(Je,{children:u.jsxs(rz,{defaultValue:"signin",className:"w-full",children:[u.jsxs(J1,{className:"grid w-full grid-cols-2",children:[u.jsx(Qf,{value:"signin",children:"Autentificare"}),u.jsx(Qf,{value:"signup",children:"Înregistrare"})]}),u.jsx(Yf,{value:"signin",children:u.jsxs("form",{onSubmit:l,className:"space-y-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(ks,{htmlFor:"signin-email",children:"Email"}),u.jsx(fr,{id:"signin-email",type:"email",placeholder:"[email protected]",value:e,onCh
345ange:d=>t(d.target.value),required:!0})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(ks,{htmlFor:"signin-password",children:"Parolă"}),u.jsx(fr,{id:"signin-password",type:"password",value:r,onChange:d=>n(d.target.value),required:!0})]}),u.jsxs(Ae,{type:"submit",className:"w-full",disabled:i,children:[i&&u.jsx(rg,{className:"mr-2 h-4 w-4 animate-spin"}),"Autentificare"]})]})}),u.jsx(Yf,{value:"signup",children:u.jsxs("form",{onSubmit:c,className:"space-y-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(ks,{htmlFor:"signup-email",children:"Email"}),u.jsx(fr,{id:"signup-email",type:"email",placeholder:"[email protected]",value:e,onChange:d=>t(d.target.value),required:!0})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(ks,{htmlFor:"signup-password",children:"Parolă"}),u.jsx(fr,{id:"signup-password",type:"password",placeholder:"Minim 6 caractere",value:r,onChange:d=>n(d.target.value),required:!0,minLength:6})]}),u.jsxs(Ae,{type:"submit",className:"w-full",disabled:i,children:[i&&u.jsx(rg,{className:"mr-2 h-4 w-4 animate-spin"}),"Înregistrare"]})]})})]})})]})})},iz=()=>{const{user:e}=pb(),[t,r]=y.useState([]),[n,i]=y.useState(!0),[s,o]=y.useState(!1),{toast:a}=Kc();y.useEffect(()=>{(async()=>{if(e)try{const{data:d,error:f}=await mr.rpc("is_admin",{_user_id:e.id});if(f){console.error("Error checking admin status:",f);return}o(d===!0),d===!0&&await l()}catch(d){console.error("Error checking admin status:",d)}})()},[e]);const l=async()=>{i(!0);try{const{data:c,error:d}=await mr.from("voluntari").select("*").order("created_at",{ascending:!1});if(d){a({variant:"destructive",title:"Eroare",description:"Nu s-au putut încărca aplicațiile de voluntariat."});return}r(c||[])}catch{a({variant:"destructive",title:"Eroare",description:"A apărut o eroare neașteptată."})}finally{i(!1)}};return e?s?u.jsxs(u.Fragment,{children:[u.jsx(Ia,{}),u.jsx("div",{className:"min-h-screen bg-gradient-to-br from-primary/5 to-secondary/5 py-8",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"mb-8",children:[u.jsx(Vt,{to:"/",children:u.jsxs(Ae,{variant:"outline",className:"mb-4",children:[u.jsx(Xm,{className:"mr-2 h-4 w-4"}),"Înapoi la pagina principală"]})}),u.jsx("h1",{className:"text-3xl font-bold text-foreground mb-2",children:"Panou de Administrare"}),u.jsx("p",{className:"text-muted-foreground",children:"Aplicații de voluntariat primite"})]}),n?u.jsx("div",{className:"text-center py-8",children:u.jsx("p",{children:"Se încarcă aplicațiile..."})}):t.length===0?u.jsx(rt,{children:u.jsxs(Je,{className:"text-center py-8",children:[u.jsx($i,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),u.jsx("p",{className:"text-muted-foreground",children:"Nu s-au primit încă aplicații de voluntariat."})]})}):u.jsx("div",{className:"grid gap-6",children:t.map(c=>u.jsxs(rt,{className:"overflow-hidden",children:[u.jsx(vt,{className:"bg-primary/5",children:u.jsxs("div",{className:"flex items-start justify-between",children:[u.jsxs("div",{children:[u.jsxs(yt,{className:"text-xl",children:[c.prenume," ",c.nume]}),u.jsxs(wt,{className:"flex items-center gap-4 mt-2",children:[u.jsxs("span",{className:"flex items-center gap-1",children:[u.jsx(Mo,{className:"h-4 w-4"}),c.an_nastere&&`${new Date().getFullYear()-c.an_nastere} ani`]}),u.jsxs("span",{className:"flex items-center gap-1",children:[u.jsx(hc,{className:"h-4 w-4"}),c.localitatea]})]})]}),u.jsx(_s,{variant:"secondary",children:new Date(c.created_at).toLocaleDateString("ro-RO")})]})}),u.jsx(Je,{className:"pt-6",children:u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("h4",{className:"font-semibold text-sm text-muted-foreground mb-1",children:"INSTITUȚIE"}),u.jsx("p",{children:c.institutie})]}),c.motivatie&&u.jsxs("div",{children:[u.jsxs("h4",{className:"font-semibold text-sm text-muted-foreground mb-1 flex items-center gap-1",children:[u.jsx(xf,{className:"h-4 w-4"}),"MOTIVAȚIE"]}),u.jsx("p",{className:"text-sm leading-relaxed",children:c.motivatie})]}),c.hobbyuri&&u.jsxs("div",{children:[u.jsx("h4",{className:"font-semibold text-sm text-muted-foreground mb-1",children:"HOBBY-URI & INTERESE"}),u.jsx("p",{className:"text-sm",children:c.hobbyuri})]}),c.idea_eveniment&&u.jsxs("div",{children:[u.jsx("h4",{className:"font-semibold text-sm text-muted-foreground mb-1",children:"IDEI DE EVENIMENTE"}),u.jsx("p",{className:"text-sm leading-relaxed",children:c.idea_eveniment})]})]})})]},c.id))})]})}),u.jsx($a,{})]}):u.jsx("div",{className:"min-h-screen bg-gradient-to-br from-primary/5 to-secondary/5 flex items-center justify-center",children:u.jsxs(rt,{className:"w-full max-w-md",children:[u.jsxs(vt,{children:[u.jsx(yt,{children:"Acces interzis"}),u.jsx(wt,{children:"Nu aveți permisiunile necesare pentru a accesa panoul de administrare."})]}),u.jsx(Je,{children:u.jsx(Vt,{to:"/",children:u.jsxs(Ae,{className:"w-full",children:[u.jsx(Xm,{className:"mr-2 h-4 w-4"}),"Înapoi la pagina principală"]})})})]})}):u.jsx("div",{className:"min-h-screen bg-gradient-to-br from-primary/5 to-secondary/5 flex items-center justify-center",children:u.jsxs(rt,{className:"w-full max-w-md",children:[u.jsxs(vt,{children:[u.jsx(yt,{children:"Acces restricționat"}),u.jsx(wt,{children:"Trebuie să fiți autentificat pentru a accesa această pagină."})]}),u.jsx(Je,{children:u.jsx(Vt,{to:"/auth",children:u.jsx(Ae,{className:"w-full",children:"Autentificare"})})})]})})},sz=()=>{const e=oo();return y.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),u.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-100",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),u.jsx("p",{className:"mb-4 text-xl text-gray-600",children:"Oops! Page not found"}),u.jsx("a",{href:"/",className:"text-blue-500 underline hover:text-blue-700",children:"Return to Home"})]})})},oz=new pN,az=()=>u.jsx(gN,{client:oz,children:u.jsx(OA,{children:u.jsxs(WT,{children:[u.jsx(Ej,{}),u.jsx(nC,{}),u.jsx(fP,{children:u.jsxs(sP,{children:[u.jsx(Nn,{path:"/",element:u.jsx(sO,{})}),u.jsx(Nn,{path:"/pasii-participarii",element:u.jsx(aO,{})}),u.jsx(Nn,{path:"/devino-voluntar",element:u.jsx($D,{})}),u.jsx(Nn,{path:"/proiecte",element:u.jsx(MD,{})}),u.jsx(Nn,{path:"/auth",element:u.jsx(nz,{})}),u.jsx(Nn,{path:"/admin",element:u.jsx(iz,{})}),u.jsx(Nn,{path:"*",element:u.jsx(sz,{})})]})})]})})});ow(document.getElementById("root")).render(u.jsx(az,{}));

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.