PageSourceSearch

https://mfr-2.lovable.app/assets/index-DXBGK0xH.js

js mfr-2.lovable.app collected 2026-10-03 03:32:56 UTC 529,226 bytes, 205 lines download raw bytes

1var af=e=>{throw TypeError(e)};var kl=(e,t,r)=>t.has(e)||af("Cannot "+r);var T=(e,t,r)=>(kl(e,t,"read from private field"),r?r.call(e):t.get(e)),te=(e,t,r)=>t.has(e)?af("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),W=(e,t,r,n)=>(kl(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Me=(e,t,r)=>(kl(e,t,"access private method"),r);var mo=(e,t,r,n)=>({set _(s){W(e,t,s,r)},get _(){return T(e,t,n)}});function Ty(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(n,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();function jp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ip={exports:{}},za={}
vendor: 4,430 bytes, lines 1-9
1,Lp={exports:{}},X={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var to=Symbol.for("react.element"),Ry=Symbol.for("react.portal"),Py=Symbol.for("react.fragment"),Ny=Symbol.for("react.strict_mode"),Oy=Symbol.for("react.profiler"),Ay=Symbol.for("react.provider"),jy=Symbol.for("react.context"),Iy=Symbol.for("react.forward_ref"),Ly=Symbol.for("react.suspense"),$y=Symbol.for("react.memo"),Dy=Symbol.for("react.lazy"),lf=Symbol.iterator;function My(e){return e===null||typeof e!="object"?null:(e=lf&&e[lf]||e["@@iterator"],typeof e=="function"?e:null)}var $p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dp=Object.assign,Mp={};function Ms(e,t,r){this.props=e,this.context=t,this.refs=Mp,this.updater=r||$p}Ms.prototype.isReactComponent={};Ms.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")};Ms.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Up(){}Up.prototype=Ms.prototype;function Lc(e,t,r){this.props=e,this.context=t,this.refs=Mp,this.updater=r||$p}var $c=Lc.prototype=new Up;$c.constructor=Lc;Dp($c,Ms.prototype);$c.isPureReactComponent=!0;var uf=Array.isArray,Fp=Object.prototype.hasOwnProperty,Dc={current:null},zp={key:!0,ref:!0,__self:!0,__source:!0};function Bp(e,t,r){var n,s={},i=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Fp.call(t,n)&&!zp.hasOwnProperty(n)&&(s[n]=t[n]);var a=arguments.length-2;if(a===1)s.children=r;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)s[n]===void 0&&(s[n]=a[n]);return{$$typeof:to,type:e,key:i,ref:o,props:s,_owner:Dc.current}}function Uy(e,t){return{$$typeof:to,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Mc(e){return typeof e=="object"&&e!==null&&e.$$typeof===to}function Fy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var cf=/\/+/g;function Cl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Fy(""+e.key):t.toString(36)}function Ho(e,t,r,n,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case to:case Ry:o=!0}}if(o)return o=e,s=s(o),e=n===""?"."+Cl(o,0):n,uf(s)?(r="",e!=null&&(r=e.replace(cf,"$&/")+"/"),Ho(s,t,r,"",function(u){return u})):s!=null&&(Mc(s)&&(s=Uy(s,r+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(cf,"$&/")+"/")+e)),t.push(s)),1;if(o=0,n=n===""?".":n+":",uf(e))for(var a=0;a<e.length;a++){i=e[a];var l=n+Cl(i,a);o+=Ho(i,t,r,l,s)}else if(l=My(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=n+Cl(i,a++),o+=Ho(i,t,r,l,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function go(e,t,r){if(e==null)return e;var n=[],s=0;return Ho(e,n,"","",function(i){return t.call(r,i,s++)}),n}function zy(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 Qe={current:null},Wo={transition:null},By={ReactCurrentDispatcher:Qe,ReactCurrentBatchConfig:Wo,ReactCurrentOwner:Dc};function Vp(){throw Error("act(...) is not supported in production builds of React.")}X.Children={map:go,forEach:function(e,t,r){go(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return go(e,function(){t++}),t},toArray:function(e){return go(e,function(t){return t})||[]},only:function(e){if(!Mc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};X.Component=Ms;X.Fragment=Py;X.Profiler=Oy;
vendor: 2,147 bytes, line 9
9X.PureComponent=Lc;X.StrictMode=Ny;X.Suspense=Ly;X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=By;X.act=Vp;X.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=Dp({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Dc.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Fp.call(t,l)&&!zp.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 u=0;u<l;u++)a[u]=arguments[u+2];n.children=a}return{$$typeof:to,type:e.type,key:s,ref:i,props:n,_owner:o}};X.createContext=function(e){return e={$$typeof:jy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ay,_context:e},e.Consumer=e};X.createElement=Bp;X.createFactory=function(e){var t=Bp.bind(null,e);return t.type=e,t};X.createRef=function(){return{current:null}};X.forwardRef=function(e){return{$$typeof:Iy,render:e}};X.isValidElement=Mc;X.lazy=function(e){return{$$typeof:Dy,_payload:{_status:-1,_result:e},_init:zy}};X.memo=function(e,t){return{$$typeof:$y,type:e,compare:t===void 0?null:t}};X.startTransition=function(e){var t=Wo.transition;Wo.transition={};try{e()}finally{Wo.transition=t}};X.unstable_act=Vp;X.useCallback=function(e,t){return Qe.current.useCallback(e,t)};X.useContext=function(e){return Qe.current.useContext(e)};X.useDebugValue=function(){};X.useDeferredValue=function(e){return Qe.current.useDeferredValue(e)};X.useEffect=function(e,t){return Qe.current.useEffect(e,t)};X.useId=function(){return Qe.current.useId()};X.useImperativeHandle=function(e,t,r){return Qe.current.useImperativeHandle(e,t,r)};X.useInsertionEffect=function(e,t){return Qe.current.useInsertionEffect(e,t)};X.useLayoutEffect=function(e,t){return Qe.current.useLayoutEffect(e,t)};X.useMemo=function(e,t){return Qe.current.useMemo(e,t)};X.useReducer=function(e,t,r){return Qe.current.useReducer(e,t,r)};X.useRef=function(e){return Qe.current.useRef(e)};
vendor: 4,888 bytes, lines 9-25
9X.useState=function(e){return Qe.current.useState(e)};X.useSyncExternalStore=function(e,t,r){return Qe.current.useSyncExternalStore(e,t,r)};X.useTransition=function(){return Qe.current.useTransition()};X.version="18.3.1";Lp.exports=X;var b=Lp.exports;const A=jp(b),Uc=Ty({__proto__:null,default:A},[b]);/**
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 Vy=b,Hy=Symbol.for("react.element"),Wy=Symbol.for("react.fragment"),qy=Object.prototype.hasOwnProperty,Ky=Vy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Gy={key:!0,ref:!0,__self:!0,__source:!0};function Hp(e,t,r){var n,s={},i=null,o=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)qy.call(t,n)&&!Gy.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)s[n]===void 0&&(s[n]=t[n]);return{$$typeof:Hy,type:e,key:i,ref:o,props:s,_owner:Ky.current}}za.Fragment=Wy;za.jsx=Hp;za.jsxs=Hp;Ip.exports=za;var v=Ip.exports,Wp={exports:{}},ft={},qp={exports:{}},Kp={};/**
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(R,P){var L=R.length;R.push(P);e:for(;0<L;){var K=L-1>>>1,F=R[K];if(0<s(F,P))R[K]=P,R[L]=F,L=K;else break e}}function r(R){return R.length===0?null:R[0]}function n(R){if(R.length===0)return null;var P=R[0],L=R.pop();if(L!==P){R[0]=L;e:for(var K=0,F=R.length,Y=F>>>1;K<Y;){var Z=2*(K+1)-1,_e=R[Z],De=Z+1,re=R[De];if(0>s(_e,L))De<F&&0>s(re,_e)?(R[K]=re,R[De]=L,K=De):(R[K]=_e,R[Z]=L,K=Z);else if(De<F&&0>s(re,L))R[K]=re,R[De]=L,K=De;else break e}}return P}function s(R,P){var L=R.sortIndex-P.sortIndex;return L!==0?L:R.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,f=null,h=3,d=!1,w=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(R){for(var P=r(u);P!==null;){if(P.callback===null)n(u);else if(P.startTime<=R)n(u),P.sortIndex=P.expirationTime,t(l,P);else break;P=r(u)}}function _(R){if(g=!1,y(R),!w)if(r(l)!==null)w=!0,U(S);else{var P=r(u);P!==null&&q(_,P.startTime-R)}}function S(R,P){w=!1,g&&(g=!1,m(C),C=-1),d=!0;var L=h;try{for(y(P),f=r(l);f!==null&&(!(f.expirationTime>P)||R&&!z());){var K=f.callback;if(typeof K=="function"){f.callback=null,h=f.priorityLevel;var F=K(f.expirationTime<=P);P=e.unstable_now(),typeof F=="function"?f.callback=F:f===r(l)&&n(l),y(P)}else n(l);f=r(l)}if(f!==null)var Y=!0;else{var Z=r(u);Z!==null&&q(_,Z.startTime-P),Y=!1}return Y}finally{f=null,h=L,d=!1}}var E=!1,k=null,C=-1,O=5,j=-1;function z(){return!(e.unstable_now()-j<O)}function $(){if(k!==null){var R=e.unstable_now();j=R;var P=!0;try{P=k(!0,R)}finally{P?Q():(E=!1,k=null)}}else E=!1}var Q;if(typeof p=="function")Q=function(){p($)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,J=I.port2;I.port1.onmessage=$,Q=function(){J.postMessage(null)}}else Q=function(){x($,0)};function U(R){k=R,E||(E=!0,Q())}function q(R,P){C=x(function(){R(e.unstable_now())},P)}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(R){R.callback=null},e.unstable_continueExecution=function(){w||d||(w=!0,U(S))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(R){switch(h){case 1:case 2:case 3:var P=3;break;default:P=h}var L=h;h=P;try{return R()}finally{h=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,P){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var L=h;h=R;try{return P()}finally{h=L}},e.unstable_scheduleCallback=function(R,P,L){var K=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?K+L:K):L=K,R){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}
vendor: 4,614 bytes, lines 25-33
25return F=L+F,R={id:c++,callback:P,priorityLevel:R,startTime:L,expirationTime:F,sortIndex:-1},L>K?(R.sortIndex=L,t(u,R),r(l)===null&&R===r(u)&&(g?(m(C),C=-1):g=!0,q(_,L-K))):(R.sortIndex=F,t(l,R),w||d||(w=!0,U(S))),R},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(R){var P=h;return function(){var L=h;h=P;try{return R.apply(this,arguments)}finally{h=L}}}})(Kp);qp.exports=Kp;var Qy=qp.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 Jy=b,dt=Qy;function N(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 Gp=new Set,Ei={};function In(e,t){Ps(e,t),Ps(e+"Capture",t)}function Ps(e,t){for(Ei[e]=t,e=0;e<t.length;e++)Gp.add(t[e])}var lr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pu=Object.prototype.hasOwnProperty,Yy=/^[: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]*$/,df={},ff={};function Xy(e){return pu.call(ff,e)?!0:pu.call(df,e)?!1:Yy.test(e)?ff[e]=!0:(df[e]=!0,!1)}function Zy(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 ew(e,t,r,n){if(t===null||typeof t>"u"||Zy(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 Je(e,t,r,n,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var $e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$e[e]=new Je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];$e[t]=new Je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){$e[e]=new Je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$e[e]=new Je(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){$e[e]=new Je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){$e[e]=new Je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){$e[e]=new Je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){$e[e]=new Je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){$e[e]=new Je(e,5,!1,e.toLowerCase(),null,!1,!1)});var Fc=/[\-:]([a-z])/g;function zc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
33-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Fc,zc);$e[t]=new Je(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(Fc,zc);$e[t]=new Je(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(Fc,zc);$e[t]=new Je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){$e[e]=new Je(e,1,!1,e.toLowerCase(),null,!1,!1)});$e.xlinkHref=new Je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){$e[e]=new Je(e,1,!1,e.toLowerCase(),null,!0,!0)});function Bc(e,t,r,n){var s=$e.hasOwnProperty(t)?$e[t]:null;(s!==null?s.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ew(t,r,s,n)&&(r=null),n||s===null?Xy(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):s.mustUseProperty?e[s.propertyName]=r===null?s.type===3?!1:"":r:(t=s.attributeName,n=s.attributeNamespace,r===null?e.removeAttribute(t):(s=s.type,r=s===3||s===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var gr=Jy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,vo=Symbol.for("react.element"),Zn=Symbol.for("react.portal"),es=Symbol.for("react.fragment"),Vc=Symbol.for("react.strict_mode"),mu=Symbol.for("react.profiler"),Qp=Symbol.for("react.provider"),Jp=Symbol.for("react.context"),Hc=Symbol.for("react.forward_ref"),gu=Symbol.for("react.suspense"),vu=Symbol.for("react.suspense_list"),Wc=Symbol.for("react.memo"),Pr=Symbol.for("react.lazy"),Yp=Symbol.for("react.offscreen"),hf=Symbol.iterator;function Qs(e){return e===null||typeof e!="object"?null:(e=hf&&e[hf]||e["@@iterator"],typeof e=="function"?e:null)}var ge=Object.assign,Tl;function oi(e){if(Tl===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Tl=t&&t[1]||""}return`
34`+Tl+e}var Rl=!1;function Pl(e,t){if(!e||Rl)return"";Rl=!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(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var s=u.stack.split(`
35`),i=n.stack.split(`
36`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=`
37`+s[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Rl=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?oi(e):""}function tw(e){switch(e.tag){case 5:return oi(e.type);case 16:return oi("Lazy");case 13:return oi("Suspense");case 19:return oi("SuspenseList");case 0:case 2:case 15:return e=Pl(e.type,!1),e;case 11:return e=Pl(e.type.render,!1),e;case 1:return e=Pl(e.type,!0),e;default:return""}}function yu(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 es:return"Fragment";case Zn:return"Portal";case mu:return"Profiler";case Vc:return"StrictMode";case gu:return"Suspense";case vu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jp:return(e.displayName||"Context")+".Consumer";case Qp:return(e._context.displayName||"Context")+".Provider";case Hc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Wc:return t=e.displayName||null,t!==null?t:yu(e.type)||"Memo";case Pr:t=e._payload,e=e._init;try{return yu(e(t))}catch{}}return null}function rw(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 yu(t);case 8:return t===Vc?"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 Yr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nw(e){var t=Xp(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 s=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){n=""+o,i.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 yo(e){e._valueTracker||(e._valueTracker=nw(e))}function Zp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Xp(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function aa(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 wu(e,t){var r=t.checked;return ge({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function pf(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Yr(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 em(e,t){t=t.checked,t!=null&&Bc(e,"checked",t,!1)}function xu(e,t){em(e,t);var r=Yr(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")?bu(e,t.type,r):t.hasOwnProperty("defaultValue")&&bu(e,t.type,Yr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function mf(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 bu(e,t,r){(t!=="number"||aa(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ai=Array.isArray;function fs(e,t,r,n){if(e=e.options,t){t={};for(var s=0;s<r.length;s++)t["$"+r[s]]=!0;for(r=0;r<e.length;r++)s=t.hasOwnProperty("$"+e[r].value),e[r].selected!==s&&(e[r].selected=s),s&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Yr(r),t=null,s=0;s<e.length;s++){if(e[s].value===r){e[s].selected=!0,n&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function _u(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return ge({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function gf(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(N(92));if(ai(r)){if(1<r.length)throw Error(N(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Yr(r)}}function tm(e,t){var r=Yr(t.value),n=Yr(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 vf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function rm(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 Su(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?rm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var wo,nm=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,s){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(wo=wo||document.createElement("div"),wo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=wo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ki(e,t){if(t){var r=e.firstChild;
vendor: 7,358 bytes, line 37
37if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var fi={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},sw=["Webkit","ms","Moz","O"];Object.keys(fi).forEach(function(e){sw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fi[t]=fi[e]})});function sm(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||fi.hasOwnProperty(e)&&fi[e]?(""+t).trim():t+"px"}function im(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=sm(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,s):e[r]=s}}var iw=ge({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Eu(e,t){if(t){if(iw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function ku(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 Cu=null;function qc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tu=null,hs=null,ps=null;function yf(e){if(e=so(e)){if(typeof Tu!="function")throw Error(N(280));var t=e.stateNode;t&&(t=qa(t),Tu(e.stateNode,e.type,t))}}function om(e){hs?ps?ps.push(e):ps=[e]:hs=e}function am(){if(hs){var e=hs,t=ps;if(ps=hs=null,yf(e),t)for(e=0;e<t.length;e++)yf(t[e])}}function lm(e,t){return e(t)}function um(){}var Nl=!1;function cm(e,t,r){if(Nl)return e(t,r);Nl=!0;try{return lm(e,t,r)}finally{Nl=!1,(hs!==null||ps!==null)&&(um(),am())}}function Ci(e,t){var r=e.stateNode;if(r===null)return null;var n=qa(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(N(231,t,typeof r));return r}var Ru=!1;if(lr)try{var Js={};Object.defineProperty(Js,"passive",{get:function(){Ru=!0}}),window.addEventListener("test",Js,Js),window.removeEventListener("test",Js,Js)}catch{Ru=!1}function ow(e,t,r,n,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(c){this.onError(c)}}var hi=!1,la=null,ua=!1,Pu=null,aw={onError:function(e){hi=!0,la=e}};function lw(e,t,r,n,s,i,o,a,l){hi=!1,la=null,ow.apply(aw,arguments)}function uw(e,t,r,n,s,i,o,a,l){if(lw.apply(this,arguments),hi){if(hi){var u=la;hi=!1,la=null}else throw Error(N(198));ua||(ua=!0,Pu=u)}}function Ln(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 dm(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 wf(e){if(Ln(e)!==e)throw Error(N(188))}function cw(e){var t=e.alternate;if(!t){if(t=Ln(e),t===null)throw Error(N(188));return t!==e?null:e}for(var r=e,n=t;;){var s=r.return;if(s===null)break;var i=s.alternate;if(i===null){if(n=s.return,n!==null){r=n;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===r)return wf(s),e;if(i===n)return wf(s),t;i=i.sibling}throw Error(N(188))}if(r.return!==n.return)r=s,n=i;else{for(var o=!1,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){for(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)throw Error(N(189))}}if(r.alternate!==n)throw Error(N(190))}if(r.tag!==3)throw Error(N(188));return r.stateNode.current===r?e:t}function fm(e){return e=cw(e),e!==null?hm(e):null}function hm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=hm(e);if(t!==null)return t;e=e.sibling}return null}var pm=dt.unstable_scheduleCallback,xf=dt.unstable_cancelCallback,dw=dt.unstable_shouldYield,fw=dt.unstable_requestPaint,xe=dt.unstable_now,hw=dt.unstable_getCurrentPriorityLevel,Kc=dt.unstable_ImmediatePriority,mm=dt.unstable_UserBlockingPriority,ca=dt.unstable_NormalPriority,pw=dt.unstable_LowPriority,gm=dt.unstable_IdlePriority,Ba=null,Gt=null;function mw(e){if(Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(Ba,e,void 0,(e.current.flags&128)===128)}catch{}}var Lt=Math.clz32?Math.clz32:yw,gw=Math.log,vw=Math.LN2;function yw(e){return e>>>=0,e===0?32:31-(gw(e)/vw|0)|0}var xo=64,bo=4194304;function li(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 da(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,s=e.suspendedLanes,i=e.pingedLanes,o=r&268435455;if(o!==0){var a=o&~s;a!==0?n=li(a):(i&=o,i!==0&&(n=li(i)))}else o=r&~s,o!==0?n=li(o):i!==0&&(n=li(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&s)&&(s=n&-n,i=t&-t,s>=i||s===16&&(i&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-Lt(t),s=1<<r,n|=e[r],t&=~s;return n}function ww(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 xw(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Lt(i),a=1<<o,l=s[o];l===-1?(!(a&r)||a&n)&&(s[o]=ww(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function Nu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function vm(){var e=xo;return xo<<=1,!(xo&4194240)&&(xo=64),e}function Ol(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function ro(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Lt(t),e[t]=r}function bw(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 s=31-Lt(r),i=1<<s;t[s]=0,n[s]=-1,e[s]=-1,r&=~i}}function Gc(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Lt(r),s=1<<n;s&t|e[n]&t&&(e[n]|=t),r&=~s}}var ne=0;function ym(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var wm,Qc,xm,bm,_m,Ou=!1,_o=[],Vr=null,Hr=null,Wr=null,Ti=new Map,Ri=new Map,Ar=[],_w="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 bf(e,t){switch(e){case"focusin":case"focusout":Vr=null;break;case"dragenter":case"dragleave":Hr=null;break;case"mouseover":case"mouseout":Wr=null;break;case"pointerover":case"pointerout":Ti.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ri.delete(t.pointerId)}}function Ys(e,t,r,n,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[s]},t!==null&&(t=so(t),t!==null&&Qc(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Sw(e,t,r,n,s){switch(t){case"focusin":return Vr=Ys(Vr,e,t,r,n,s),!0;case"dragenter":return Hr=Ys(Hr,e,t,r,n,s),!0;case"mouseover":return Wr=Ys(Wr,e,t,r,n,s),!0;case"pointerover":var i=s.pointerId;return Ti.set(i,Ys(Ti.get(i)||null,e,t,r,n,s)),!0;case"gotpointercapture":return i=s.pointerId,Ri.set(i,Ys(Ri.get(i)||null,e,t,r,n,s)),!0}return!1}function Sm(e){var t=mn(e.target);if(t!==null){var r=Ln(t);if(r!==null){if(t=r.tag,t===13){if(t=dm(r),t!==null){e.blockedOn=t,_m(e.priority,function(){xm(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 qo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Au(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Cu=n,r.target.dispatchEvent(n),Cu=null}else return t=so(r),t!==null&&Qc(t),e.blockedOn=r,!1;t.shift()}return!0}function _f(e,t,r){qo(e)&&r.delete(t)}function Ew(){Ou=!1,Vr!==null&&qo(Vr)&&(Vr=null),Hr!==null&&qo(Hr)&&(Hr=null),Wr!==null&&qo(Wr)&&(Wr=null),Ti.forEach(_f),Ri.forEach(_f)}function Xs(e,t){e.blockedOn===t&&(e.blockedOn=null,Ou||(Ou=!0,dt.unstable_scheduleCallback(dt.unstable_NormalPriority,Ew)))}function Pi(e){function t(s){return Xs(s,e)}if(0<_o.length){Xs(_o[0],e);for(var r=1;r<_o.length;r++){var n=_o[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Vr!==null&&Xs(Vr,e),Hr!==null&&Xs(Hr,e),Wr!==null&&Xs(Wr,e),Ti.forEach(t),Ri.forEach(t),r=0;r<Ar.length;r++)n=Ar[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Ar.length&&(r=Ar[0],r.blockedOn===null);)Sm(r),r.blockedOn===null&&Ar.shift()}var ms=gr.ReactCurrentBatchConfig,fa=!0;function kw(e,t,r,n){var s=ne,i=ms.transition;ms.transition=null;try{ne=1,Jc(e,t,r,n)}finally{ne=s,ms.transition=i}}function Cw(e,t,r,n){var s=ne,i=ms.transition;ms.transition=null;try{ne=4,Jc(e,t,r,n)}finally{ne=s,ms.transition=i}}function Jc(e,t,r,n){if(fa){var s=Au(e,t,r,n);if(s===null)zl(e,t,n,ha,r),bf(e,n);else if(Sw(s,e,t,r,n))n.stopPropagation();else if(bf(e,n),t&4&&-1<_w.indexOf(e)){for(;s!==null;){var i=so(s);if(i!==null&&wm(i),i=Au(e,t,r,n),i===null&&zl(e,t,n,ha,r),i===s)break;s=i}s!==null&&n.stopPropagation()}else zl(e,t,n,null,r)}}var ha=null;function Au(e,t,r,n){if(ha=null,e=qc(n),e=mn(e),e!==null)if(t=Ln(e),t===null)e=null;else if(r=t.tag,r===13){if(e=dm(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 ha=e,null}
vendor: 10,401 bytes, line 37
37function Em(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(hw()){case Kc:return 1;case mm:return 4;case ca:case pw:return 16;case gm:return 536870912;default:return 16}default:return 16}}var Fr=null,Yc=null,Ko=null;function km(){if(Ko)return Ko;var e,t=Yc,r=t.length,n,s="value"in Fr?Fr.value:Fr.textContent,i=s.length;for(e=0;e<r&&t[e]===s[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===s[i-n];n++);return Ko=s.slice(e,1<n?1-n:void 0)}function Go(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 So(){return!0}function Sf(){return!1}function ht(e){function t(r,n,s,i,o){this._reactName=r,this._targetInst=s,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?So:Sf,this.isPropagationStopped=Sf,this}return ge(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=So)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=So)},persist:function(){},isPersistent:So}),t}var Us={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xc=ht(Us),no=ge({},Us,{view:0,detail:0}),Tw=ht(no),Al,jl,Zs,Va=ge({},no,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zc,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!==Zs&&(Zs&&e.type==="mousemove"?(Al=e.screenX-Zs.screenX,jl=e.screenY-Zs.screenY):jl=Al=0,Zs=e),Al)},movementY:function(e){return"movementY"in e?e.movementY:jl}}),Ef=ht(Va),Rw=ge({},Va,{dataTransfer:0}),Pw=ht(Rw),Nw=ge({},no,{relatedTarget:0}),Il=ht(Nw),Ow=ge({},Us,{animationName:0,elapsedTime:0,pseudoElement:0}),Aw=ht(Ow),jw=ge({},Us,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Iw=ht(jw),Lw=ge({},Us,{data:0}),kf=ht(Lw),$w={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Dw={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"},Mw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Uw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Mw[e])?!!t[e]:!1}function Zc(){return Uw}var Fw=ge({},no,{key:function(e){if(e.key){var t=$w[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Go(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Dw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zc,charCode:function(e){return e.type==="keypress"?Go(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Go(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zw=ht(Fw),Bw=ge({},Va,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cf=ht(Bw),Vw=ge({},no,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zc}),Hw=ht(Vw),Ww=ge({},Us,{propertyName:0,elapsedTime:0,pseudoElement:0}),qw=ht(Ww),Kw=ge({},Va,{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}),Gw=ht(Kw),Qw=[9,13,27,32],ed=lr&&"CompositionEvent"in window,pi=null;lr&&"documentMode"in document&&(pi=document.documentMode);var Jw=lr&&"TextEvent"in window&&!pi,Cm=lr&&(!ed||pi&&8<pi&&11>=pi),Tf=" ",Rf=!1;function Tm(e,t){switch(e){case"keyup":return Qw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ts=!1;function Yw(e,t){switch(e){case"compositionend":return Rm(t);case"keypress":return t.which!==32?null:(Rf=!0,Tf);case"textInput":return e=t.data,e===Tf&&Rf?null:e;default:return null}}function Xw(e,t){if(ts)return e==="compositionend"||!ed&&Tm(e,t)?(e=km(),Ko=Yc=Fr=null,ts=!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 Cm&&t.locale!=="ko"?null:t.data;default:return null}}var Zw={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 Pf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zw[e.type]:t==="textarea"}function Pm(e,t,r,n){om(n),t=pa(t,"onChange"),0<t.length&&(r=new Xc("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var mi=null,Ni=null;function e1(e){Fm(e,0)}function Ha(e){var t=ss(e);if(Zp(t))return e}function t1(e,t){if(e==="change")return t}var Nm=!1;if(lr){var Ll;if(lr){var $l="oninput"in document;if(!$l){var Nf=document.createElement("div");Nf.setAttribute("oninput","return;"),$l=typeof Nf.oninput=="function"}Ll=$l}else Ll=!1;Nm=Ll&&(!document.documentMode||9<document.documentMode)}function Of(){mi&&(mi.detachEvent("onpropertychange",Om),Ni=mi=null)}function Om(e){if(e.propertyName==="value"&&Ha(Ni)){var t=[];Pm(t,Ni,e,qc(e)),cm(e1,t)}}function r1(e,t,r){e==="focusin"?(Of(),mi=t,Ni=r,mi.attachEvent("onpropertychange",Om)):e==="focusout"&&Of()}function n1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ha(Ni)}function s1(e,t){if(e==="click")return Ha(t)}function i1(e,t){if(e==="input"||e==="change")return Ha(t)}function o1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:o1;function Oi(e,t){if(Dt(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 s=r[n];if(!pu.call(t,s)||!Dt(e[s],t[s]))return!1}return!0}function Af(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jf(e,t){var r=Af(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=Af(r)}}function Am(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Am(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jm(){for(var e=window,t=aa();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=aa(e.document)}return t}function td(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 a1(e){var t=jm(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Am(r.ownerDocument.documentElement,r)){if(n!==null&&td(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 s=r.textContent.length,i=Math.min(n.start,s);n=n.end===void 0?i:Math.min(n.end,s),!e.extend&&i>n&&(s=n,n=i,i=s),s=jf(r,i);var o=jf(r,n);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>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 l1=lr&&"documentMode"in document&&11>=document.documentMode,rs=null,ju=null,gi=null,Iu=!1;function If(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Iu||rs==null||rs!==aa(n)||(n=rs,"selectionStart"in n&&td(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}),gi&&Oi(gi,n)||(gi=n,n=pa(ju,"onSelect"),0<n.length&&(t=new Xc("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=rs)))}function Eo(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ns={animationend:Eo("Animation","AnimationEnd"),animationiteration:Eo("Animation","AnimationIteration"),animationstart:Eo("Animation","AnimationStart"),transitionend:Eo("Transition","TransitionEnd")},Dl={},Im={};lr&&(Im=document.createElement("div").style,"AnimationEvent"in window||(delete ns.animationend.animation,delete ns.animationiteration.animation,delete ns.animationstart.animation),"TransitionEvent"in window||delete ns.transitionend.transition);function Wa(e){if(Dl[e])return Dl[e];if(!ns[e])return e;var t=ns[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Im)return Dl[e]=t[r];return e}var Lm=Wa("animationend"),$m=Wa("animationiteration"),Dm=Wa("animationstart"),Mm=Wa("transitionend"),Um=new Map,Lf="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 tn(e,t){Um.set(e,t),In(t,[e])}for(var Ml=0;Ml<Lf.length;Ml++){var Ul=Lf[Ml],u1=Ul.toLowerCase(),c1=Ul[0].toUpperCase()+Ul.slice(1);tn(u1,"on"+c1)}tn(Lm,"onAnimationEnd");tn($m,"onAnimationIteration");tn(Dm,"onAnimationStart");tn("dblclick","onDoubleClick");tn("focusin","onFocus");tn("focusout","onBlur");tn(Mm,"onTransitionEnd");Ps("onMouseEnter",["mouseout","mouseover"]);Ps("onMouseLeave",["mouseout","mouseover"]);Ps("onPointerEnter",["pointerout","pointerover"]);Ps("onPointerLeave",["pointerout","pointerover"]);In("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));In("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));In("onBeforeInput",["compositionend","keypress","textInput","paste"]);In("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));In("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));In("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ui="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(" "),d1=new Set("cancel close invalid load scroll toggle".split(" ").concat(ui));function $f(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,uw(n,t,void 0,e),e.currentTarget=null}function Fm(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],s=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var o=n.length-1;0<=o;o--){var a=n[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;$f(s,a,u),i=l}else for(o=0;o<n.length;o++){if(a=n[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;$f(s,a,u),i=l}}}if(ua)throw e=Pu,ua=!1,Pu=null,e}function ue(e,t){var r=t[Uu];r===void 0&&(r=t[Uu]=new Set);var n=e+"__bubble";r.has(n)||(zm(t,e,2,!1),r.add(n))}function Fl(e,t,r){var n=0;t&&(n|=4),zm(r,e,n,t)}var ko="_reactListening"+Math.random().toString(36).slice(2);function Ai(e){if(!e[ko]){e[ko]=!0,Gp.forEach(function(r){r!=="selectionchange"&&(d1.has(r)||Fl(r,!1,e),Fl(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ko]||(t[ko]=!0,Fl("selectionchange",!1,t))}}function zm(e,t,r,n){switch(Em(t)){case 1:var s=kw;break;case 4:s=Cw;break;default:s=Jc}r=s.bind(null,t,r,e),s=void 0,!Ru||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),n?s!==void 0?e.addEventListener(t,r,{capture:!0,passive:s}):e.addEventListener(t,r,!0):s!==void 0?e.addEventListener(t,r,{passive:s}):e.addEventListener(t,r,!1)}function zl(e,t,r,n,s){var i=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===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=mn(a),o===null)return;if(l=o.tag,l===5||l===6){n=i=o;continue e}a=a.parentNode}}n=n.return}cm(function(){var u=i,c=qc(r),f=[];e:{var h=Um.get(e);if(h!==void 0){var d=Xc,w=e;switch(e){case"keypress":if(Go(r)===0)break e;case"keydown":case"keyup":d=zw;break;case"focusin":w="focus",d=Il;break;case"focusout":w="blur",d=Il;break;case"beforeblur":case"afterblur":d=Il;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":d=Ef;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=Pw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=Hw;break;case Lm:case $m:case Dm:d=Aw;break;case Mm:d=qw;break;case"scroll":d=Tw;break;case"wheel":d=Gw;break;case"copy":case"cut":case"paste":d=Iw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=Cf}var g=(t&4)!==0,x=!g&&e==="scroll",m=g?h!==null?h+"Capture":null:h;g=[];for(var p=u,y;p!==null;){y=p;var _=y.stateNode;if(y.tag===5&&_!==null&&(y=_,m!==null&&(_=Ci(p,m),_!=null&&g.push(ji(p,_,y)))),x)break;p=p.return}0<g.length&&(h=new d(h,w,null,r,c),f.push({event:h,listeners:g}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",h&&r!==Cu&&(w=r.relatedTarget||r.fromElement)&&(mn(w)||w[ur]))break e;if((d||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,d?(w=r.relatedTarget||r.toElement,d=u,w=w?mn(w):null,w!==null&&(x=Ln(w),w!==x||w.tag!==5&&w.tag!==6)&&(w=null)):(d=null,w=u),d!==w)){if(g=Ef,_="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(g=Cf,_="onPointerLeave",m="onPointerEnter",p="pointer"),x=d==null?h:ss(d),y=w==null?h:ss(w),h=new g(_,p+"leave",d,r,c),h.target=x,h.relatedTarget=y,_=null,mn(c)===u&&(g=new g(m,p+"enter",w,r,c),g.target=y,g.relatedTarget=x,_=g),x=_,d&&w)t:{for(g=d,m=w,p=0,y=g;y;y=Vn(y))p++;for(y=0,_=m;_;_=Vn(_))y++;for(;0<p-y;)g=Vn(g),p--;for(;0<y-p;)m=Vn(m),y--;for(;p--;){if(g===m||m!==null&&g===m.alternate)break t;g=Vn(g),m=Vn(m)}g=null}else g=null;d!==null&&Df(f,h,d,g,!1),w!==null&&x!==null&&Df(f,x,w,g,!0)}}
vendor: 5,973 bytes, lines 37-38
37e:{if(h=u?ss(u):window,d=h.nodeName&&h.nodeName.toLowerCase(),d==="select"||d==="input"&&h.type==="file")var S=t1;else if(Pf(h))if(Nm)S=i1;else{S=n1;var E=r1}else(d=h.nodeName)&&d.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(S=s1);if(S&&(S=S(e,u))){Pm(f,S,r,c);break e}E&&E(e,h,u),e==="focusout"&&(E=h._wrapperState)&&E.controlled&&h.type==="number"&&bu(h,"number",h.value)}switch(E=u?ss(u):window,e){case"focusin":(Pf(E)||E.contentEditable==="true")&&(rs=E,ju=u,gi=null);break;case"focusout":gi=ju=rs=null;break;case"mousedown":Iu=!0;break;case"contextmenu":case"mouseup":case"dragend":Iu=!1,If(f,r,c);break;case"selectionchange":if(l1)break;case"keydown":case"keyup":If(f,r,c)}var k;if(ed)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else ts?Tm(e,r)&&(C="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(C="onCompositionStart");C&&(Cm&&r.locale!=="ko"&&(ts||C!=="onCompositionStart"?C==="onCompositionEnd"&&ts&&(k=km()):(Fr=c,Yc="value"in Fr?Fr.value:Fr.textContent,ts=!0)),E=pa(u,C),0<E.length&&(C=new kf(C,e,null,r,c),f.push({event:C,listeners:E}),k?C.data=k:(k=Rm(r),k!==null&&(C.data=k)))),(k=Jw?Yw(e,r):Xw(e,r))&&(u=pa(u,"onBeforeInput"),0<u.length&&(c=new kf("onBeforeInput","beforeinput",null,r,c),f.push({event:c,listeners:u}),c.data=k))}Fm(f,t)})}function ji(e,t,r){return{instance:e,listener:t,currentTarget:r}}function pa(e,t){for(var r=t+"Capture",n=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Ci(e,r),i!=null&&n.unshift(ji(e,i,s)),i=Ci(e,t),i!=null&&n.push(ji(e,i,s))),e=e.return}return n}function Vn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Df(e,t,r,n,s){for(var i=t._reactName,o=[];r!==null&&r!==n;){var a=r,l=a.alternate,u=a.stateNode;if(l!==null&&l===n)break;a.tag===5&&u!==null&&(a=u,s?(l=Ci(r,i),l!=null&&o.unshift(ji(r,l,a))):s||(l=Ci(r,i),l!=null&&o.push(ji(r,l,a)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var f1=/\r\n?/g,h1=/\u0000|\uFFFD/g;function Mf(e){return(typeof e=="string"?e:""+e).replace(f1,`
38`).replace(h1,"")}function Co(e,t,r){if(t=Mf(t),Mf(e)!==t&&r)throw Error(N(425))}function ma(){}var Lu=null,$u=null;function Du(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 Mu=typeof setTimeout=="function"?setTimeout:void 0,p1=typeof clearTimeout=="function"?clearTimeout:void 0,Uf=typeof Promise=="function"?Promise:void 0,m1=typeof queueMicrotask=="function"?queueMicrotask:typeof Uf<"u"?function(e){return Uf.resolve(null).then(e).catch(g1)}:Mu;function g1(e){setTimeout(function(){throw e})}function Bl(e,t){var r=t,n=0;do{var s=r.nextSibling;if(e.removeChild(r),s&&s.nodeType===8)if(r=s.data,r==="/$"){if(n===0){e.removeChild(s),Pi(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=s}while(r);Pi(t)}function qr(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 Ff(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 Fs=Math.random().toString(36).slice(2),qt="__reactFiber$"+Fs,Ii="__reactProps$"+Fs,ur="__reactContainer$"+Fs,Uu="__reactEvents$"+Fs,v1="__reactListeners$"+Fs,y1="__reactHandles$"+Fs;function mn(e){var t=e[qt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ur]||r[qt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Ff(e);e!==null;){if(r=e[qt])return r;e=Ff(e)}return t}e=r,r=e.parentNode}return null}function so(e){return e=e[qt]||e[ur],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ss(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function qa(e){return e[Ii]||null}var Fu=[],is=-1;function rn(e){return{current:e}}function ce(e){0>is||(e.current=Fu[is],Fu[is]=null,is--)}function ae(e,t){is++,Fu[is]=e.current,e.current=t}var Xr={},Ve=rn(Xr),tt=rn(!1),Rn=Xr;function Ns(e,t){var r=e.type.contextTypes;if(!r)return Xr;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in r)s[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function rt(e){return e=e.childContextTypes,e!=null}function ga(){ce(tt),ce(Ve)}function zf(e,t,r){if(Ve.current!==Xr)throw Error(N(168));ae(Ve,t),ae(tt,r)}function Bm(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in t))throw Error(N(108,rw(e)||"Unknown",s));return ge({},r,n)}function va(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xr,Rn=Ve.current,ae(Ve,e),ae(tt,tt.current),!0}function Bf(e,t,r){var n=e.stateNode;if(!n)throw Error(N(169));r?(e=Bm(e,t,Rn),n.__reactInternalMemoizedMergedChildContext=e,ce(tt),ce(Ve),ae(Ve,e)):ce(tt),ae(tt,r)}var nr=null,Ka=!1,Vl=!1;function Vm(e){nr===null?nr=[e]:nr.push(e)}function w1(e){Ka=!0,Vm(e)}function nn(){if(!Vl&&nr!==null){Vl=!0;var e=0,t=ne;try{var r=nr;for(ne=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}nr=null,Ka=!1}catch(s){throw nr!==null&&(nr=nr.slice(e+1)),pm(Kc,nn),s}finally{ne=t,Vl=!1}}return null}var os=[],as=0,ya=null,wa=0,gt=[],vt=0,Pn=null,ir=1,or="";function cn(e,t){os[as++]=wa,os[as++]=ya,ya=e,wa=t}function Hm(e,t,r){gt[vt++]=ir,gt[vt++]=or,gt[vt++]=Pn,Pn=e;var n=ir;e=or;var s=32-Lt(n)-1;n&=~(1<<s),r+=1;var i=32-Lt(t)+s;if(30<i){var o=s-s%5;i=(n&(1<<o)-1).toString(32),n>>=o,s-=o,ir=1<<32-Lt(t)+s|r<<s|n,or=i+e}else ir=1<<i|r<<s|n,or=e}function rd(e){e.return!==null&&(cn(e,1),Hm(e,1,0))}
vendor: 14,025 bytes, line 38
38function nd(e){for(;e===ya;)ya=os[--as],os[as]=null,wa=os[--as],os[as]=null;for(;e===Pn;)Pn=gt[--vt],gt[vt]=null,or=gt[--vt],gt[vt]=null,ir=gt[--vt],gt[vt]=null}var ut=null,lt=null,he=!1,It=null;function Wm(e,t){var r=yt(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 Vf(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ut=e,lt=qr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ut=e,lt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Pn!==null?{id:ir,overflow:or}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=yt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,ut=e,lt=null,!0):!1;default:return!1}}function zu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Bu(e){if(he){var t=lt;if(t){var r=t;if(!Vf(e,t)){if(zu(e))throw Error(N(418));t=qr(r.nextSibling);var n=ut;t&&Vf(e,t)?Wm(n,r):(e.flags=e.flags&-4097|2,he=!1,ut=e)}}else{if(zu(e))throw Error(N(418));e.flags=e.flags&-4097|2,he=!1,ut=e}}}function Hf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ut=e}function To(e){if(e!==ut)return!1;if(!he)return Hf(e),he=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Du(e.type,e.memoizedProps)),t&&(t=lt)){if(zu(e))throw qm(),Error(N(418));for(;t;)Wm(e,t),t=qr(t.nextSibling)}if(Hf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){lt=qr(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}lt=null}}else lt=ut?qr(e.stateNode.nextSibling):null;return!0}function qm(){for(var e=lt;e;)e=qr(e.nextSibling)}function Os(){lt=ut=null,he=!1}function sd(e){It===null?It=[e]:It.push(e)}var x1=gr.ReactCurrentBatchConfig;function ei(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(N(309));var n=r.stateNode}if(!n)throw Error(N(147,e));var s=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(N(284));if(!r._owner)throw Error(N(290,e))}return e}function Ro(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Wf(e){var t=e._init;return t(e._payload)}function Km(e){function t(m,p){if(e){var y=m.deletions;y===null?(m.deletions=[p],m.flags|=16):y.push(p)}}function r(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function n(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function s(m,p){return m=Jr(m,p),m.index=0,m.sibling=null,m}function i(m,p,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<p?(m.flags|=2,p):y):(m.flags|=2,p)):(m.flags|=1048576,p)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,p,y,_){return p===null||p.tag!==6?(p=Jl(y,m.mode,_),p.return=m,p):(p=s(p,y),p.return=m,p)}function l(m,p,y,_){var S=y.type;return S===es?c(m,p,y.props.children,_,y.key):p!==null&&(p.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Pr&&Wf(S)===p.type)?(_=s(p,y.props),_.ref=ei(m,p,y),_.return=m,_):(_=ta(y.type,y.key,y.props,null,m.mode,_),_.ref=ei(m,p,y),_.return=m,_)}function u(m,p,y,_){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=Yl(y,m.mode,_),p.return=m,p):(p=s(p,y.children||[]),p.return=m,p)}function c(m,p,y,_,S){return p===null||p.tag!==7?(p=Cn(y,m.mode,_,S),p.return=m,p):(p=s(p,y),p.return=m,p)}function f(m,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Jl(""+p,m.mode,y),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case vo:return y=ta(p.type,p.key,p.props,null,m.mode,y),y.ref=ei(m,null,p),y.return=m,y;case Zn:return p=Yl(p,m.mode,y),p.return=m,p;case Pr:var _=p._init;return f(m,_(p._payload),y)}if(ai(p)||Qs(p))return p=Cn(p,m.mode,y,null),p.return=m,p;Ro(m,p)}return null}function h(m,p,y,_){var S=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return S!==null?null:a(m,p,""+y,_);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case vo:return y.key===S?l(m,p,y,_):null;case Zn:return y.key===S?u(m,p,y,_):null;case Pr:return S=y._init,h(m,p,S(y._payload),_)}if(ai(y)||Qs(y))return S!==null?null:c(m,p,y,_,null);Ro(m,y)}return null}function d(m,p,y,_,S){if(typeof _=="string"&&_!==""||typeof _=="number")return m=m.get(y)||null,a(p,m,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case vo:return m=m.get(_.key===null?y:_.key)||null,l(p,m,_,S);case Zn:return m=m.get(_.key===null?y:_.key)||null,u(p,m,_,S);case Pr:var E=_._init;return d(m,p,y,E(_._payload),S)}if(ai(_)||Qs(_))return m=m.get(y)||null,c(p,m,_,S,null);Ro(p,_)}return null}function w(m,p,y,_){for(var S=null,E=null,k=p,C=p=0,O=null;k!==null&&C<y.length;C++){k.index>C?(O=k,k=null):O=k.sibling;var j=h(m,k,y[C],_);if(j===null){k===null&&(k=O);break}e&&k&&j.alternate===null&&t(m,k),p=i(j,p,C),E===null?S=j:E.sibling=j,E=j,k=O}if(C===y.length)return r(m,k),he&&cn(m,C),S;if(k===null){for(;C<y.length;C++)k=f(m,y[C],_),k!==null&&(p=i(k,p,C),E===null?S=k:E.sibling=k,E=k);return he&&cn(m,C),S}for(k=n(m,k);C<y.length;C++)O=d(k,m,C,y[C],_),O!==null&&(e&&O.alternate!==null&&k.delete(O.key===null?C:O.key),p=i(O,p,C),E===null?S=O:E.sibling=O,E=O);return e&&k.forEach(function(z){return t(m,z)}),he&&cn(m,C),S}function g(m,p,y,_){var S=Qs(y);if(typeof S!="function")throw Error(N(150));if(y=S.call(y),y==null)throw Error(N(151));for(var E=S=null,k=p,C=p=0,O=null,j=y.next();k!==null&&!j.done;C++,j=y.next()){k.index>C?(O=k,k=null):O=k.sibling;var z=h(m,k,j.value,_);if(z===null){k===null&&(k=O);break}e&&k&&z.alternate===null&&t(m,k),p=i(z,p,C),E===null?S=z:E.sibling=z,E=z,k=O}if(j.done)return r(m,k),he&&cn(m,C),S;if(k===null){for(;!j.done;C++,j=y.next())j=f(m,j.value,_),j!==null&&(p=i(j,p,C),E===null?S=j:E.sibling=j,E=j);return he&&cn(m,C),S}for(k=n(m,k);!j.done;C++,j=y.next())j=d(k,m,C,j.value,_),j!==null&&(e&&j.alternate!==null&&k.delete(j.key===null?C:j.key),p=i(j,p,C),E===null?S=j:E.sibling=j,E=j);return e&&k.forEach(function($){return t(m,$)}),he&&cn(m,C),S}function x(m,p,y,_){if(typeof y=="object"&&y!==null&&y.type===es&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case vo:e:{for(var S=y.key,E=p;E!==null;){if(E.key===S){if(S=y.type,S===es){if(E.tag===7){r(m,E.sibling),p=s(E,y.props.children),p.return=m,m=p;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Pr&&Wf(S)===E.type){r(m,E.sibling),p=s(E,y.props),p.ref=ei(m,E,y),p.return=m,m=p;break e}r(m,E);break}else t(m,E);E=E.sibling}y.type===es?(p=Cn(y.props.children,m.mode,_,y.key),p.return=m,m=p):(_=ta(y.type,y.key,y.props,null,m.mode,_),_.ref=ei(m,p,y),_.return=m,m=_)}return o(m);case Zn:e:{for(E=y.key;p!==null;){if(p.key===E)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){r(m,p.sibling),p=s(p,y.children||[]),p.return=m,m=p;break e}else{r(m,p);break}else t(m,p);p=p.sibling}p=Yl(y,m.mode,_),p.return=m,m=p}return o(m);case Pr:return E=y._init,x(m,p,E(y._payload),_)}if(ai(y))return w(m,p,y,_);if(Qs(y))return g(m,p,y,_);Ro(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(r(m,p.sibling),p=s(p,y),p.return=m,m=p):(r(m,p),p=Jl(y,m.mode,_),p.return=m,m=p),o(m)):r(m,p)}return x}var As=Km(!0),Gm=Km(!1),xa=rn(null),ba=null,ls=null,id=null;function od(){id=ls=ba=null}function ad(e){var t=xa.current;ce(xa),e._currentValue=t}function Vu(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 gs(e,t){ba=e,id=ls=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(et=!0),e.firstContext=null)}function xt(e){var t=e._currentValue;if(id!==e)if(e={context:e,memoizedValue:t,next:null},ls===null){if(ba===null)throw Error(N(308));ls=e,ba.dependencies={lanes:0,firstContext:e}}else ls=ls.next=e;return t}var gn=null;function ld(e){gn===null?gn=[e]:gn.push(e)}function Qm(e,t,r,n){var s=t.interleaved;return s===null?(r.next=r,ld(t)):(r.next=s.next,s.next=r),t.interleaved=r,cr(e,n)}function cr(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 Nr=!1;function ud(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jm(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 ar(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Kr(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,ee&2){var s=n.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),n.pending=t,cr(e,r)}return s=n.interleaved,s===null?(t.next=t,ld(n)):(t.next=s.next,s.next=t),n.interleaved=t,cr(e,r)}function Qo(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,Gc(e,r)}}function qf(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,i=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};i===null?s=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?s=i=t:i=i.next=t}else s=i=t;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:i,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 _a(e,t,r,n){var s=e.updateQueue;Nr=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var f=s.baseState;o=0,c=u=l=null,a=i;do{var h=a.lane,d=a.eventTime;if((n&h)===h){c!==null&&(c=c.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,g=a;switch(h=t,d=r,g.tag){case 1:if(w=g.payload,typeof w=="function"){f=w.call(d,f,h);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=g.payload,h=typeof w=="function"?w.call(d,f,h):w,h==null)break e;f=ge({},f,h);break e;case 2:Nr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else d={eventTime:d,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=d,l=f):c=c.next=d,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(c===null&&(l=f),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=c,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);On|=o,e.lanes=o,e.memoizedState=f}}function Kf(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],s=n.callback;if(s!==null){if(n.callback=null,n=r,typeof s!="function")throw Error(N(191,s));s.call(n)}}}var io={},Qt=rn(io),Li=rn(io),$i=rn(io);function vn(e){if(e===io)throw Error(N(174));return e}function cd(e,t){switch(ae($i,t),ae(Li,e),ae(Qt,io),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Su(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Su(t,e)}ce(Qt),ae(Qt,t)}function js(){ce(Qt),ce(Li),ce($i)}function Ym(e){vn($i.current);var t=vn(Qt.current),r=Su(t,e.type);t!==r&&(ae(Li,e),ae(Qt,r))}function dd(e){Li.current===e&&(ce(Qt),ce(Li))}var pe=rn(0);function Sa(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 Hl=[];function fd(){for(var e=0;e<Hl.length;e++)Hl[e]._workInProgressVersionPrimary=null;Hl.length=0}var Jo=gr.ReactCurrentDispatcher,Wl=gr.ReactCurrentBatchConfig,Nn=0,me=null,Ce=null,Pe=null,Ea=!1,vi=!1,Di=0,b1=0;function Ue(){throw Error(N(321))}function hd(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Dt(e[r],t[r]))return!1;return!0}function pd(e,t,r,n,s,i){if(Nn=i,me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Jo.current=e===null||e.memoizedState===null?k1:C1,e=r(n,s),vi){i=0;do{if(vi=!1,Di=0,25<=i)throw Error(N(301));i+=1,Pe=Ce=null,t.updateQueue=null,Jo.current=T1,e=r(n,s)}while(vi)}if(Jo.current=ka,t=Ce!==null&&Ce.next!==null,Nn=0,Pe=Ce=me=null,Ea=!1,t)throw Error(N(300));return e}function md(){var e=Di!==0;return Di=0,e}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?me.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function bt(){if(Ce===null){var e=me.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Pe===null?me.memoizedState:Pe.next;if(t!==null)Pe=t,Ce=e;else{if(e===null)throw Error(N(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Pe===null?me.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function Mi(e,t){return typeof t=="function"?t(e):t}
vendor: 5,780 bytes, line 38
38function ql(e){var t=bt(),r=t.queue;if(r===null)throw Error(N(311));r.lastRenderedReducer=e;var n=Ce,s=n.baseQueue,i=r.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}n.baseQueue=s=i,r.pending=null}if(s!==null){i=s.next,n=n.baseState;var a=o=null,l=null,u=i;do{var c=u.lane;if((Nn&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,o=n):l=l.next=f,me.lanes|=c,On|=c}u=u.next}while(u!==null&&u!==i);l===null?o=n:l.next=a,Dt(n,t.memoizedState)||(et=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){s=e;do i=s.lane,me.lanes|=i,On|=i,s=s.next;while(s!==e)}else s===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Kl(e){var t=bt(),r=t.queue;if(r===null)throw Error(N(311));r.lastRenderedReducer=e;var n=r.dispatch,s=r.pending,i=t.memoizedState;if(s!==null){r.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Dt(i,t.memoizedState)||(et=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function Xm(){}function Zm(e,t){var r=me,n=bt(),s=t(),i=!Dt(n.memoizedState,s);if(i&&(n.memoizedState=s,et=!0),n=n.queue,gd(rg.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||Pe!==null&&Pe.memoizedState.tag&1){if(r.flags|=2048,Ui(9,tg.bind(null,r,n,s,t),void 0,null),Ne===null)throw Error(N(349));Nn&30||eg(r,t,s)}return s}function eg(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=me.updateQueue,t===null?(t={lastEffect:null,stores:null},me.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function tg(e,t,r,n){t.value=r,t.getSnapshot=n,ng(t)&&sg(e)}function rg(e,t,r){return r(function(){ng(t)&&sg(e)})}function ng(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Dt(e,r)}catch{return!0}}function sg(e){var t=cr(e,1);t!==null&&$t(t,e,1,-1)}function Gf(e){var t=zt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mi,lastRenderedState:e},t.queue=e,e=e.dispatch=E1.bind(null,me,e),[t.memoizedState,e]}function Ui(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=me.updateQueue,t===null?(t={lastEffect:null,stores:null},me.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 ig(){return bt().memoizedState}function Yo(e,t,r,n){var s=zt();me.flags|=e,s.memoizedState=Ui(1|t,r,void 0,n===void 0?null:n)}function Ga(e,t,r,n){var s=bt();n=n===void 0?null:n;var i=void 0;if(Ce!==null){var o=Ce.memoizedState;if(i=o.destroy,n!==null&&hd(n,o.deps)){s.memoizedState=Ui(t,r,i,n);return}}me.flags|=e,s.memoizedState=Ui(1|t,r,i,n)}function Qf(e,t){return Yo(8390656,8,e,t)}function gd(e,t){return Ga(2048,8,e,t)}function og(e,t){return Ga(4,2,e,t)}function ag(e,t){return Ga(4,4,e,t)}function lg(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 ug(e,t,r){return r=r!=null?r.concat([e]):null,Ga(4,4,lg.bind(null,t,e),r)}function vd(){}function cg(e,t){var r=bt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&hd(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function dg(e,t){var r=bt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&hd(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function fg(e,t,r){return Nn&21?(Dt(r,t)||(r=vm(),me.lanes|=r,On|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,et=!0),e.memoizedState=r)}function _1(e,t){var r=ne;ne=r!==0&&4>r?r:4,e(!0);var n=Wl.transition;Wl.transition={};try{e(!1),t()}finally{ne=r,Wl.transition=n}}function hg(){return bt().memoizedState}function S1(e,t,r){var n=Qr(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},pg(e))mg(t,r);else if(r=Qm(e,t,r,n),r!==null){var s=Ke();$t(r,e,n,s),gg(r,t,n)}}function E1(e,t,r){var n=Qr(e),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(pg(e))mg(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,r);if(s.hasEagerState=!0,s.eagerState=a,Dt(a,o)){var l=t.interleaved;l===null?(s.next=s,ld(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}r=Qm(e,t,s,n),r!==null&&(s=Ke(),$t(r,e,n,s),gg(r,t,n))}}function pg(e){var t=e.alternate;return e===me||t!==null&&t===me}function mg(e,t){vi=Ea=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function gg(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Gc(e,r)}}var ka={readContext:xt,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},k1={readContext:xt,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:xt,useEffect:Qf,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Yo(4194308,4,lg.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Yo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yo(4,2,e,t)},useMemo:function(e,t){var r=zt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=zt();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=S1.bind(null,me,e),[n.memoizedState,e]}
vendor: 5,346 bytes, lines 38-40
38,useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:Gf,useDebugValue:vd,useDeferredValue:function(e){return zt().memoizedState=e},useTransition:function(){var e=Gf(!1),t=e[0];return e=_1.bind(null,e[1]),zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=me,s=zt();if(he){if(r===void 0)throw Error(N(407));r=r()}else{if(r=t(),Ne===null)throw Error(N(349));Nn&30||eg(n,t,r)}s.memoizedState=r;var i={value:r,getSnapshot:t};return s.queue=i,Qf(rg.bind(null,n,i,e),[e]),n.flags|=2048,Ui(9,tg.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=zt(),t=Ne.identifierPrefix;if(he){var r=or,n=ir;r=(n&~(1<<32-Lt(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Di++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=b1++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},C1={readContext:xt,useCallback:cg,useContext:xt,useEffect:gd,useImperativeHandle:ug,useInsertionEffect:og,useLayoutEffect:ag,useMemo:dg,useReducer:ql,useRef:ig,useState:function(){return ql(Mi)},useDebugValue:vd,useDeferredValue:function(e){var t=bt();return fg(t,Ce.memoizedState,e)},useTransition:function(){var e=ql(Mi)[0],t=bt().memoizedState;return[e,t]},useMutableSource:Xm,useSyncExternalStore:Zm,useId:hg,unstable_isNewReconciler:!1},T1={readContext:xt,useCallback:cg,useContext:xt,useEffect:gd,useImperativeHandle:ug,useInsertionEffect:og,useLayoutEffect:ag,useMemo:dg,useReducer:Kl,useRef:ig,useState:function(){return Kl(Mi)},useDebugValue:vd,useDeferredValue:function(e){var t=bt();return Ce===null?t.memoizedState=e:fg(t,Ce.memoizedState,e)},useTransition:function(){var e=Kl(Mi)[0],t=bt().memoizedState;return[e,t]},useMutableSource:Xm,useSyncExternalStore:Zm,useId:hg,unstable_isNewReconciler:!1};function Rt(e,t){if(e&&e.defaultProps){t=ge({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Hu(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:ge({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Qa={isMounted:function(e){return(e=e._reactInternals)?Ln(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Ke(),s=Qr(e),i=ar(n,s);i.payload=t,r!=null&&(i.callback=r),t=Kr(e,i,s),t!==null&&($t(t,e,s,n),Qo(t,e,s))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Ke(),s=Qr(e),i=ar(n,s);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=Kr(e,i,s),t!==null&&($t(t,e,s,n),Qo(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ke(),n=Qr(e),s=ar(r,n);s.tag=2,t!=null&&(s.callback=t),t=Kr(e,s,n),t!==null&&($t(t,e,n,r),Qo(t,e,n))}};function Jf(e,t,r,n,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,o):t.prototype&&t.prototype.isPureReactComponent?!Oi(r,n)||!Oi(s,i):!0}function vg(e,t,r){var n=!1,s=Xr,i=t.contextType;return typeof i=="object"&&i!==null?i=xt(i):(s=rt(t)?Rn:Ve.current,n=t.contextTypes,i=(n=n!=null)?Ns(e,s):Xr),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Qa,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Yf(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&&Qa.enqueueReplaceState(t,t.state,null)}function Wu(e,t,r,n){var s=e.stateNode;s.props=r,s.state=e.memoizedState,s.refs={},ud(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=xt(i):(i=rt(t)?Rn:Ve.current,s.context=Ns(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Hu(e,t,i,r),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Qa.enqueueReplaceState(s,s.state,null),_a(e,r,s,n),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Is(e,t){try{var r="",n=t;do r+=tw(n),n=n.return;while(n);var s=r}catch(i){s=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:e,source:t,stack:s,digest:null}}function Gl(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function qu(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var R1=typeof WeakMap=="function"?WeakMap:Map;function yg(e,t,r){r=ar(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Ta||(Ta=!0,rc=n),qu(e,t)},r}function wg(e,t,r){r=ar(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var s=t.value;r.payload=function(){return n(s)},r.callback=function(){qu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){qu(e,t),typeof n!="function"&&(Gr===null?Gr=new Set([this]):Gr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function Xf(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new R1;var s=new Set;n.set(t,s)}else s=n.get(t),s===void 0&&(s=new Set,n.set(t,s));
vendor: 6,796 bytes, line 40
40s.has(r)||(s.add(r),e=B1.bind(null,e,t,r),t.then(e,e))}function Zf(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 eh(e,t,r,n,s){return e.mode&1?(e.flags|=65536,e.lanes=s,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=ar(-1,1),t.tag=2,Kr(r,t,1))),r.lanes|=1),e)}var P1=gr.ReactCurrentOwner,et=!1;function We(e,t,r,n){t.child=e===null?Gm(t,null,r,n):As(t,e.child,r,n)}function th(e,t,r,n,s){r=r.render;var i=t.ref;return gs(t,s),n=pd(e,t,r,n,i,s),r=md(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,dr(e,t,s)):(he&&r&&rd(t),t.flags|=1,We(e,t,n,s),t.child)}function rh(e,t,r,n,s){if(e===null){var i=r.type;return typeof i=="function"&&!kd(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,xg(e,t,i,n,s)):(e=ta(r.type,null,n,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(r=r.compare,r=r!==null?r:Oi,r(o,n)&&e.ref===t.ref)return dr(e,t,s)}return t.flags|=1,e=Jr(i,n),e.ref=t.ref,e.return=t,t.child=e}function xg(e,t,r,n,s){if(e!==null){var i=e.memoizedProps;if(Oi(i,n)&&e.ref===t.ref)if(et=!1,t.pendingProps=n=i,(e.lanes&s)!==0)e.flags&131072&&(et=!0);else return t.lanes=e.lanes,dr(e,t,s)}return Ku(e,t,r,n,s)}function bg(e,t,r){var n=t.pendingProps,s=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ae(cs,ot),ot|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ae(cs,ot),ot|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,ae(cs,ot),ot|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,ae(cs,ot),ot|=n;return We(e,t,s,r),t.child}function _g(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ku(e,t,r,n,s){var i=rt(r)?Rn:Ve.current;return i=Ns(t,i),gs(t,s),r=pd(e,t,r,n,i,s),n=md(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,dr(e,t,s)):(he&&n&&rd(t),t.flags|=1,We(e,t,r,s),t.child)}function nh(e,t,r,n,s){if(rt(r)){var i=!0;va(t)}else i=!1;if(gs(t,s),t.stateNode===null)Xo(e,t),vg(t,r,n),Wu(t,r,n,s),n=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=xt(u):(u=rt(r)?Rn:Ve.current,u=Ns(t,u));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||l!==u)&&Yf(t,o,n,u),Nr=!1;var h=t.memoizedState;o.state=h,_a(t,n,o,s),l=t.memoizedState,a!==n||h!==l||tt.current||Nr?(typeof c=="function"&&(Hu(t,r,c,n),l=t.memoizedState),(a=Nr||Jf(t,r,a,n,h,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,Jm(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Rt(t.type,a),o.props=u,f=t.pendingProps,h=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=xt(l):(l=rt(r)?Rn:Ve.current,l=Ns(t,l));var d=r.getDerivedStateFromProps;(c=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||h!==l)&&Yf(t,o,n,l),Nr=!1,h=t.memoizedState,o.state=h,_a(t,n,o,s);var w=t.memoizedState;a!==f||h!==w||tt.current||Nr?(typeof d=="function"&&(Hu(t,r,d,n),w=t.memoizedState),(u=Nr||Jf(t,r,u,n,h,w,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,w,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,w,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=w),o.props=n,o.state=w,o.context=l,n=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return Gu(e,t,r,n,i,s)}function Gu(e,t,r,n,s,i){_g(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return s&&Bf(t,r,!1),dr(e,t,i);n=t.stateNode,P1.current=t;var a=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=As(t,e.child,null,i),t.child=As(t,null,a,i)):We(e,t,a,i),t.memoizedState=n.state,s&&Bf(t,r,!0),t.child}function Sg(e){var t=e.stateNode;t.pendingContext?zf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&zf(e,t.context,!1),cd(e,t.containerInfo)}function sh(e,t,r,n,s){return Os(),sd(s),t.flags|=256,We(e,t,r,n),t.child}var Qu={dehydrated:null,treeContext:null,retryLane:0};function Ju(e){return{baseLanes:e,cachePool:null,transitions:null}}function Eg(e,t,r){var n=t.pendingProps,s=pe.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),ae(pe,s&1),e===null)return Bu(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,i?(n=t.mode,i=t.child,o={mode:"hidden",children:o},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Xa(o,n,0,null),e=Cn(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ju(r),t.memoizedState=Qu,e):yd(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return N1(e,t,o,n,a,s,r);if(i){i=n.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==s?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Jr(s,l),n.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=Jr(a,i):(i=Cn(i,o,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,o=e.child.memoizedState,o=o===null?Ju(r):{base
vendor: 8,213 bytes, line 40
40Lanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~r,t.memoizedState=Qu,n}return i=e.child,e=i.sibling,n=Jr(i,{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 yd(e,t){return t=Xa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Po(e,t,r,n){return n!==null&&sd(n),As(t,e.child,null,r),e=yd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function N1(e,t,r,n,s,i,o){if(r)return t.flags&256?(t.flags&=-257,n=Gl(Error(N(422))),Po(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,s=t.mode,n=Xa({mode:"visible",children:n.children},s,0,null),i=Cn(i,s,o,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,t.mode&1&&As(t,e.child,null,o),t.child.memoizedState=Ju(o),t.memoizedState=Qu,i);if(!(t.mode&1))return Po(e,t,o,null);if(s.data==="$!"){if(n=s.nextSibling&&s.nextSibling.dataset,n)var a=n.dgst;return n=a,i=Error(N(419)),n=Gl(i,n,void 0),Po(e,t,o,n)}if(a=(o&e.childLanes)!==0,et||a){if(n=Ne,n!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(n.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,cr(e,s),$t(n,e,s,-1))}return Ed(),n=Gl(Error(N(421))),Po(e,t,o,n)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=V1.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,lt=qr(s.nextSibling),ut=t,he=!0,It=null,e!==null&&(gt[vt++]=ir,gt[vt++]=or,gt[vt++]=Pn,ir=e.id,or=e.overflow,Pn=t),t=yd(t,n.children),t.flags|=4096,t)}function ih(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Vu(e.return,t,r)}function Ql(e,t,r,n,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=s)}function kg(e,t,r){var n=t.pendingProps,s=n.revealOrder,i=n.tail;if(We(e,t,n.children,r),n=pe.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&&ih(e,r,t);else if(e.tag===19)ih(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(ae(pe,n),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(r=t.child,s=null;r!==null;)e=r.alternate,e!==null&&Sa(e)===null&&(s=r),r=r.sibling;r=s,r===null?(s=t.child,t.child=null):(s=r.sibling,r.sibling=null),Ql(t,!1,s,r,i);break;case"backwards":for(r=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Sa(e)===null){t.child=s;break}e=s.sibling,s.sibling=r,r=s,s=e}Ql(t,!0,r,null,i);break;case"together":Ql(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function dr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),On|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,r=Jr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Jr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function O1(e,t,r){switch(t.tag){case 3:Sg(t),Os();break;case 5:Ym(t);break;case 1:rt(t.type)&&va(t);break;case 4:cd(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,s=t.memoizedProps.value;ae(xa,n._currentValue),n._currentValue=s;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ae(pe,pe.current&1),t.flags|=128,null):r&t.child.childLanes?Eg(e,t,r):(ae(pe,pe.current&1),e=dr(e,t,r),e!==null?e.sibling:null);ae(pe,pe.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return kg(e,t,r);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ae(pe,pe.current),n)break;return null;case 22:case 23:return t.lanes=0,bg(e,t,r)}return dr(e,t,r)}var Cg,Yu,Tg,Rg;Cg=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}};Yu=function(){};Tg=function(e,t,r,n){var s=e.memoizedProps;if(s!==n){e=t.stateNode,vn(Qt.current);var i=null;switch(r){case"input":s=wu(e,s),n=wu(e,n),i=[];break;case"select":s=ge({},s,{value:void 0}),n=ge({},n,{value:void 0}),i=[];break;case"textarea":s=_u(e,s),n=_u(e,n),i=[];break;default:typeof s.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=ma)}Eu(r,n);var o;r=null;for(u in s)if(!n.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ei.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var l=n[u];if(a=s!=null?s[u]:void 0,n.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="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||(i||(i=[]),i.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ei.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ue("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}r&&(i=i||[]).push("style",r);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Rg=function(e,t,r,n){r!==n&&(t.flags|=4)};function ti(e,t){if(!he)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 Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags&14680064,n|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags,n|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function A1(e,t,r){var n=t.pendingProps;switch(nd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return rt(t.type)&&ga(),Fe(t),null;case 3:return n=t.stateNode,js(),ce(tt),ce(Ve),fd(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(To(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,It!==null&&(ic(It),It=null))),Yu(e,t),Fe(t),null;case 5:dd(t);var s=vn($i.current);if(r=t.type,e!==null&&t.stateNode!=null)Tg(e,t,r,n,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(N(166));return Fe(t),null}if(e=vn(Qt.current),To(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[qt]=t,n[Ii]=i,e=(t.mode&1)!==0,r){case"dialog":ue("cancel",n),ue("close",n);break;case"iframe":case"object":case"embed":ue("load",n);break;case"video":case"audio":for(s=0;s<ui.length;s++)ue(ui[s],n);break;case"source":ue("error",n);break;case"img":case"image":case"link":ue("error",n),ue("load",n);break;case"details":ue("toggle",n);break;case"input":pf(n,i),ue("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},ue("invalid",n);break;case"textarea":gf(n,i),ue("invalid",n)}Eu(r,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];
vendor: 29,238 bytes, line 40
40o==="children"?typeof a=="string"?n.textContent!==a&&(i.suppressHydrationWarning!==!0&&Co(n.textContent,a,e),s=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Co(n.textContent,a,e),s=["children",""+a]):Ei.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ue("scroll",n)}switch(r){case"input":yo(n),mf(n,i,!0);break;case"textarea":yo(n),vf(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=ma)}n=s,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=rm(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[qt]=t,e[Ii]=n,Cg(e,t,!1,!1),t.stateNode=e;e:{switch(o=ku(r,n),r){case"dialog":ue("cancel",e),ue("close",e),s=n;break;case"iframe":case"object":case"embed":ue("load",e),s=n;break;case"video":case"audio":for(s=0;s<ui.length;s++)ue(ui[s],e);s=n;break;case"source":ue("error",e),s=n;break;case"img":case"image":case"link":ue("error",e),ue("load",e),s=n;break;case"details":ue("toggle",e),s=n;break;case"input":pf(e,n),s=wu(e,n),ue("invalid",e);break;case"option":s=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},s=ge({},n,{value:void 0}),ue("invalid",e);break;case"textarea":gf(e,n),s=_u(e,n),ue("invalid",e);break;default:s=n}Eu(r,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?im(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&nm(e,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&ki(e,l):typeof l=="number"&&ki(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Ei.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ue("scroll",e):l!=null&&Bc(e,i,l,o))}switch(r){case"input":yo(e),mf(e,n,!1);break;case"textarea":yo(e),vf(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Yr(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?fs(e,!!n.multiple,i,!1):n.defaultValue!=null&&fs(e,!!n.multiple,n.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=ma)}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)}return Fe(t),null;case 6:if(e&&t.stateNode!=null)Rg(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(N(166));if(r=vn($i.current),vn(Qt.current),To(t)){if(n=t.stateNode,r=t.memoizedProps,n[qt]=t,(i=n.nodeValue!==r)&&(e=ut,e!==null))switch(e.tag){case 3:Co(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Co(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[qt]=t,t.stateNode=n}return Fe(t),null;case 13:if(ce(pe),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(he&&lt!==null&&t.mode&1&&!(t.flags&128))qm(),Os(),t.flags|=98560,i=!1;else if(i=To(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(N(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(N(317));i[qt]=t}else Os(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fe(t),i=!1}else It!==null&&(ic(It),It=null),i=!0;if(!i)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||pe.current&1?Te===0&&(Te=3):Ed())),t.updateQueue!==null&&(t.flags|=4),Fe(t),null);case 4:return js(),Yu(e,t),e===null&&Ai(t.stateNode.containerInfo),Fe(t),null;case 10:return ad(t.type._context),Fe(t),null;case 17:return rt(t.type)&&ga(),Fe(t),null;case 19:if(ce(pe),i=t.memoizedState,i===null)return Fe(t),null;if(n=(t.flags&128)!==0,o=i.rendering,o===null)if(n)ti(i,!1);else{if(Te!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Sa(e),o!==null){for(t.flags|=128,ti(i,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ae(pe,pe.current&1|2),t.child}e=e.sibling}i.tail!==null&&xe()>Ls&&(t.flags|=128,n=!0,ti(i,!1),t.lanes=4194304)}else{if(!n)if(e=Sa(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ti(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!he)return Fe(t),null}else 2*xe()-i.renderingStartTime>Ls&&r!==1073741824&&(t.flags|=128,n=!0,ti(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(r=i.last,r!==null?r.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=xe(),t.sibling=null,r=pe.current,ae(pe,n?r&1|2:r&1),t):(Fe(t),null);case 22:case 23:return Sd(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?ot&1073741824&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function j1(e,t){switch(nd(t),t.tag){case 1:return rt(t.type)&&ga(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return js(),ce(tt),ce(Ve),fd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return dd(t),null;case 13:if(ce(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Os()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(pe),null;case 4:return js(),null;case 10:return ad(t.type._context),null;case 22:case 23:return Sd(),null;case 24:return null;default:return null}}var No=!1,Be=!1,I1=typeof WeakSet=="function"?WeakSet:Set,D=null;function us(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){we(e,t,n)}else r.current=null}function Xu(e,t,r){try{r()}catch(n){we(e,t,n)}}var oh=!1;function L1(e,t){if(Lu=fa,e=jm(),td(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 s=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var o=0,a=-1,l=-1,u=0,c=0,f=e,h=null;t:for(;;){for(var d;f!==r||s!==0&&f.nodeType!==3||(a=o+s),f!==i||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(d=f.firstChild)!==null;)h=f,f=d;for(;;){if(f===e)break t;if(h===r&&++u===s&&(a=o),h===i&&++c===n&&(l=o),(d=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=d}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for($u={focusedElem:e,selectionRange:r},fa=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var g=w.memoizedProps,x=w.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:Rt(t.type,g),x);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(_){we(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return w=oh,oh=!1,w}function yi(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Xu(t,r,i)}s=s.next}while(s!==n)}}function Ja(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 Zu(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 Pg(e){var t=e.alternate;t!==null&&(e.alternate=null,Pg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[qt],delete t[Ii],delete t[Uu],delete t[v1],delete t[y1])),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 Ng(e){return e.tag===5||e.tag===3||e.tag===4}function ah(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ng(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 ec(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=ma));else if(n!==4&&(e=e.child,e!==null))for(ec(e,t,r),e=e.sibling;e!==null;)ec(e,t,r),e=e.sibling}function tc(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(tc(e,t,r),e=e.sibling;e!==null;)tc(e,t,r),e=e.sibling}var Ie=null,At=!1;function Er(e,t,r){for(r=r.child;r!==null;)Og(e,t,r),r=r.sibling}function Og(e,t,r){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(Ba,r)}catch{}switch(r.tag){case 5:Be||us(r,t);case 6:var n=Ie,s=At;Ie=null,Er(e,t,r),Ie=n,At=s,Ie!==null&&(At?(e=Ie,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ie.removeChild(r.stateNode));break;case 18:Ie!==null&&(At?(e=Ie,r=r.stateNode,e.nodeType===8?Bl(e.parentNode,r):e.nodeType===1&&Bl(e,r),Pi(e)):Bl(Ie,r.stateNode));break;case 4:n=Ie,s=At,Ie=r.stateNode.containerInfo,At=!0,Er(e,t,r),Ie=n,At=s;break;case 0:case 11:case 14:case 15:if(!Be&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Xu(r,t,o),s=s.next}while(s!==n)}Er(e,t,r);break;case 1:if(!Be&&(us(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){we(r,t,a)}Er(e,t,r);break;case 21:Er(e,t,r);break;case 22:r.mode&1?(Be=(n=Be)||r.memoizedState!==null,Er(e,t,r),Be=n):Er(e,t,r);break;default:Er(e,t,r)}}function lh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new I1),t.forEach(function(n){var s=H1.bind(null,e,n);r.has(n)||(r.add(n),n.then(s,s))})}}function kt(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var s=r[n];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Ie=a.stateNode,At=!1;break e;case 3:Ie=a.stateNode.containerInfo,At=!0;break e;case 4:Ie=a.stateNode.containerInfo,At=!0;break e}a=a.return}if(Ie===null)throw Error(N(160));Og(i,o,s),Ie=null,At=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){we(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ag(t,e),t=t.sibling}function Ag(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(kt(t,e),Ft(e),n&4){try{yi(3,e,e.return),Ja(3,e)}catch(g){we(e,e.return,g)}try{yi(5,e,e.return)}catch(g){we(e,e.return,g)}}break;case 1:kt(t,e),Ft(e),n&512&&r!==null&&us(r,r.return);break;case 5:if(kt(t,e),Ft(e),n&512&&r!==null&&us(r,r.return),e.flags&32){var s=e.stateNode;try{ki(s,"")}catch(g){we(e,e.return,g)}}if(n&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=r!==null?r.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&em(s,i),ku(a,o);var u=ku(a,i);for(o=0;o<l.length;o+=2){var c=l[o],f=l[o+1];c==="style"?im(s,f):c==="dangerouslySetInnerHTML"?nm(s,f):c==="children"?ki(s,f):Bc(s,c,f,u)}switch(a){case"input":xu(s,i);break;case"textarea":tm(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var d=i.value;d!=null?fs(s,!!i.multiple,d,!1):h!==!!i.multiple&&(i.defaultValue!=null?fs(s,!!i.multiple,i.defaultValue,!0):fs(s,!!i.multiple,i.multiple?[]:"",!1))}s[Ii]=i}catch(g){we(e,e.return,g)}}break;case 6:if(kt(t,e),Ft(e),n&4){if(e.stateNode===null)throw Error(N(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(g){we(e,e.return,g)}}break;case 3:if(kt(t,e),Ft(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Pi(t.containerInfo)}catch(g){we(e,e.return,g)}break;case 4:kt(t,e),Ft(e);break;case 13:kt(t,e),Ft(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(bd=xe())),n&4&&lh(e);break;case 22:if(c=r!==null&&r.memoizedState!==null,e.mode&1?(Be=(u=Be)||c,kt(t,e),Be=u):kt(t,e),Ft(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(D=e,c=e.child;c!==null;){for(f=D=c;D!==null;){switch(h=D,d=h.child,h.tag){case 0:case 11:case 14:case 15:yi(4,h,h.return);break;case 1:us(h,h.return);var w=h.stateNode;if(typeof w.componentWillUnmount=="function"){n=h,r=h.return;try{t=n,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(g){we(n,r,g)}}break;case 5:us(h,h.return);break;case 22:if(h.memoizedState!==null){ch(f);continue}}d!==null?(d.return=h,D=d):ch(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{s=f.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=sm("display",o))}catch(g){we(e,e.return,g)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){we(e,e.return,g)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:kt(t,e),Ft(e),n&4&&lh(e);break;case 21:break;default:kt(t,e),Ft(e)}}function Ft(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Ng(r)){var n=r;break e}r=r.return}throw Error(N(160))}switch(n.tag){case 5:var s=n.stateNode;n.flags&32&&(ki(s,""),n.flags&=-33);var i=ah(e);tc(e,i,s);break;case 3:case 4:var o=n.stateNode.containerInfo,a=ah(e);ec(e,a,o);break;default:throw Error(N(161))}}catch(l){we(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $1(e,t,r){D=e,jg(e)}function jg(e,t,r){for(var n=(e.mode&1)!==0;D!==null;){var s=D,i=s.child;if(s.tag===22&&n){var o=s.memoizedState!==null||No;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Be;a=No;var u=Be;if(No=o,(Be=l)&&!u)for(D=s;D!==null;)o=D,l=o.child,o.tag===22&&o.memoizedState!==null?dh(s):l!==null?(l.return=o,D=l):dh(s);for(;i!==null;)D=i,jg(i),i=i.sibling;D=s,No=a,Be=u}uh(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,D=i):uh(e)}}function uh(e){for(;D!==null;){var t=D;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Be||Ja(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Be)if(r===null)n.componentDidMount();else{var s=t.elementType===t.type?r.memoizedProps:Rt(t.type,r.memoizedProps);n.componentDidUpdate(s,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Kf(t,i,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}Kf(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 u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Pi(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}Be||t.flags&512&&Zu(t)}catch(h){we(t,t.return,h)}}if(t===e){D=null;break}if(r=t.sibling,r!==null){r.return=t.return,D=r;break}D=t.return}}function ch(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var r=t.sibling;if(r!==null){r.return=t.return,D=r;break}D=t.return}}function dh(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Ja(4,t)}catch(l){we(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var s=t.return;try{n.componentDidMount()}catch(l){we(t,s,l)}}var i=t.return;try{Zu(t)}catch(l){we(t,i,l)}break;case 5:var o=t.return;try{Zu(t)}catch(l){we(t,o,l)}}}catch(l){we(t,t.return,l)}if(t===e){D=null;break}var a=t.sibling;if(a!==null){a.return=t.return,D=a;break}D=t.return}}var D1=Math.ceil,Ca=gr.ReactCurrentDispatcher,wd=gr.ReactCurrentOwner,wt=gr.ReactCurrentBatchConfig,ee=0,Ne=null,Ee=null,Le=0,ot=0,cs=rn(0),Te=0,Fi=null,On=0,Ya=0,xd=0,wi=null,Ze=null,bd=0,Ls=1/0,tr=null,Ta=!1,rc=null,Gr=null,Oo=!1,zr=null,Ra=0,xi=0,nc=null,Zo=-1,ea=0;function Ke(){return ee&6?xe():Zo!==-1?Zo:Zo=xe()}function Qr(e){return e.mode&1?ee&2&&Le!==0?Le&-Le:x1.transition!==null?(ea===0&&(ea=vm()),ea):(e=ne,e!==0||(e=window.event,e=e===void 0?16:Em(e.type)),e):1}function $t(e,t,r,n){if(50<xi)throw xi=0,nc=null,Error(N(185));ro(e,r,n),(!(ee&2)||e!==Ne)&&(e===Ne&&(!(ee&2)&&(Ya|=r),Te===4&&jr(e,Le)),nt(e,n),r===1&&ee===0&&!(t.mode&1)&&(Ls=xe()+500,Ka&&nn()))}function nt(e,t){var r=e.callbackNode;xw(e,t);var n=da(e,e===Ne?Le:0);if(n===0)r!==null&&xf(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&xf(r),t===1)e.tag===0?w1(fh.bind(null,e)):Vm(fh.bind(null,e)),m1(function(){!(ee&6)&&nn()}),r=null;else{switch(ym(n)){case 1:r=Kc;break;case 4:r=mm;break;case 16:r=ca;break;case 536870912:r=gm;break;default:r=ca}r=zg(r,Ig.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Ig(e,t){if(Zo=-1,ea=0,ee&6)throw Error(N(327));var r=e.callbackNode;if(vs()&&e.callbackNode!==r)return null;var n=da(e,e===Ne?Le:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Pa(e,n);else{t=n;var s=ee;ee|=2;var i=$g();(Ne!==e||Le!==t)&&(tr=null,Ls=xe()+500,kn(e,t));do try{F1();break}catch(a){Lg(e,a)}while(!0);od(),Ca.current=i,ee=s,Ee!==null?t=0:(Ne=null,Le=0,t=Te)}if(t!==0){if(t===2&&(s=Nu(e),s!==0&&(n=s,t=sc(e,s))),t===1)throw r=Fi,kn(e,0),jr(e,n),nt(e,xe()),r;if(t===6)jr(e,n);else{if(s=e.current.alternate,!(n&30)&&!M1(s)&&(t=Pa(e,n),t===2&&(i=Nu(e),i!==0&&(n=i,t=sc(e,i))),t===1))throw r=Fi,kn(e,0),jr(e,n),nt(e,xe()),r;switch(e.finishedWork=s,e.finishedLanes=n,t){case 0:case 1:throw Error(N(345));case 2:dn(e,Ze,tr);break;case 3:if(jr(e,n),(n&130023424)===n&&(t=bd+500-xe(),10<t)){if(da(e,0)!==0)break;if(s=e.suspendedLanes,(s&n)!==n){Ke(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Mu(dn.bind(null,e,Ze,tr),t);break}dn(e,Ze,tr);break;case 4:if(jr(e,n),(n&4194240)===n)break;for(t=e.eventTimes,s=-1;0<n;){var o=31-Lt(n);i=1<<o,o=t[o],o>s&&(s=o),n&=~i}if(n=s,n=xe()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*D1(n/1960))-n,10<n){e.timeoutHandle=Mu(dn.bind(null,e,Ze,tr),n);break}dn(e,Ze,tr);break;case 5:dn(e,Ze,tr);break;default:throw Error(N(329))}}}return nt(e,xe()),e.callbackNode===r?Ig.bind(null,e):null}function sc(e,t){var r=wi;return e.current.memoizedState.isDehydrated&&(kn(e,t).flags|=256),e=Pa(e,t),e!==2&&(t=Ze,Ze=r,t!==null&&ic(t)),e}function ic(e){Ze===null?Ze=e:Ze.push.apply(Ze,e)}function M1(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 s=r[n],i=s.getSnapshot;s=s.value;try{if(!Dt(i(),s))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 jr(e,t){for(t&=~xd,t&=~Ya,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Lt(t),n=1<<r;e[r]=-1,t&=~n}}function fh(e){if(ee&6)throw Error(N(327));vs();var t=da(e,0);if(!(t&1))return nt(e,xe()),null;var r=Pa(e,t);if(e.tag!==0&&r===2){var n=Nu(e);n!==0&&(t=n,r=sc(e,n))}if(r===1)throw r=Fi,kn(e,0),jr(e,t),nt(e,xe()),r;if(r===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,dn(e,Ze,tr),nt(e,xe()),null}function _d(e,t){var r=ee;ee|=1;try{return e(t)}finally{ee=r,ee===0&&(Ls=xe()+500,Ka&&nn())}}function An(e){zr!==null&&zr.tag===0&&!(ee&6)&&vs();var t=ee;ee|=1;var r=wt.transition,n=ne;try{if(wt.transition=null,ne=1,e)return e()}finally{ne=n,wt.transition=r,ee=t,!(ee&6)&&nn()}}function Sd(){ot=cs.current,ce(cs)}function kn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,p1(r)),Ee!==null)for(r=Ee.return;r!==null;){var n=r;switch(nd(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&ga();break;case 3:js(),ce(tt),ce(Ve),fd();break;case 5:dd(n);break;case 4:js();break;case 13:ce(pe);break;case 19:ce(pe);break;case 10:ad(n.type._context);break;case 22:case 23:Sd()}r=r.return}if(Ne=e,Ee=e=Jr(e.current,null),Le=ot=t,Te=0,Fi=null,xd=Ya=On=0,Ze=wi=null,gn!==null){for(t=0;t<gn.length;t++)if(r=gn[t],n=r.interleaved,n!==null){r.interleaved=null;var s=n.next,i=r.pending;if(i!==null){var o=i.next;i.next=s,n.next=o}r.pending=n}gn=null}return e}function Lg(e,t){do{var r=Ee;try{if(od(),Jo.current=ka,Ea){for(var n=me.memoizedState;n!==null;){var s=n.queue;s!==null&&(s.pending=null),n=n.next}Ea=!1}if(Nn=0,Pe=Ce=me=null,vi=!1,Di=0,wd.current=null,r===null||r.return===null){Te=1,Fi=t,Ee=null;break}e:{var i=e,o=r.return,a=r,l=t;if(t=Le,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var d=Zf(o);if(d!==null){d.flags&=-257,eh(d,o,a,i,t),d.mode&1&&Xf(i,u,t),t=d,l=u;var w=t.updateQueue;if(w===null){var g=new Set;g.add(l),t.updateQueue=g}else w.add(l);break e}else{if(!(t&1)){Xf(i,u,t),Ed();break e}l=Error(N(426))}}else if(he&&a.mode&1){var x=Zf(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),eh(x,o,a,i,t),sd(Is(l,a));break e}}i=l=Is(l,a),Te!==4&&(Te=2),wi===null?wi=[i]:wi.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=yg(i,l,t);qf(i,m);break e;case 1:a=l;var p=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Gr===null||!Gr.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var _=wg(i,a,t);qf(i,_);break e}}i=i.return}while(i!==null)}Mg(r)}catch(S){t=S,Ee===r&&r!==null&&(Ee=r=r.return);continue}break}while(!0)}function $g(){var e=Ca.current;return Ca.current=ka,e===null?ka:e}function Ed(){(Te===0||Te===3||Te===2)&&(Te=4),Ne===null||!(On&268435455)&&!(Ya&268435455)||jr(Ne,Le)}function Pa(e,t){var r=ee;ee|=2;var n=$g();(Ne!==e||Le!==t)&&(tr=null,kn(e,t));do try{U1();break}catch(s){Lg(e,s)}while(!0);if(od(),ee=r,Ca.current=n,Ee!==null)throw Error(N(261));return Ne=null,Le=0,Te}function U1(){for(;Ee!==null;)Dg(Ee)}function F1(){for(;Ee!==null&&!dw();)Dg(Ee)}function Dg(e){var t=Fg(e.alternate,e,ot);e.memoizedProps=e.pendingProps,t===null?Mg(e):Ee=t,wd.current=null}function Mg(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=j1(r,t),r!==null){r.flags&=32767,Ee=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Te=6,Ee=null;return}}else if(r=A1(r,t,ot),r!==null){Ee=r;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Te===0&&(Te=5)}function dn(e,t,r){var n=ne,s=wt.transition;try{wt.transition=null,ne=1,z1(e,t,r,n)}finally{wt.transition=s,ne=n}return null}function z1(e,t,r,n){do vs();while(zr!==null);if(ee&6)throw Error(N(327));r=e.finishedWork;var s=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(bw(e,i),e===Ne&&(Ee=Ne=null,Le=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Oo||(Oo=!0,zg(ca,function(){return vs(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=wt.transition,wt.transition=null;var o=ne;ne=1;var a=ee;ee|=4,wd.current=null,L1(e,r),Ag(r,e),a1($u),fa=!!Lu,$u=Lu=null,e.current=r,$1(r),fw(),ee=a,ne=o,wt.transition=i}else e.current=r;if(Oo&&(Oo=!1,zr=e,Ra=s),i=e.pendingLanes,i===0&&(Gr=null),mw(r.stateNode),nt(e,xe()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)s=t[r],n(s.value,{componentStack:s.stack,digest:s.digest});if(Ta)throw Ta=!1,e=rc,rc=null,e;return Ra&1&&e.tag!==0&&vs(),i=e.pendingLanes,i&1?e===nc?xi++:(xi=0,nc=e):xi=0,nn(),null}function vs(){if(zr!==null){var e=ym(Ra),t=wt.transition,r=ne;try{if(wt.transition=null,ne=16>e?16:e,zr===null)var n=!1;else{if(e=zr,zr=null,Ra=0,ee&6)throw Error(N(331));var s=ee;for(ee|=4,D=e.current;D!==null;){var i=D,o=i.child;if(D.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(D=u;D!==null;){var c=D;switch(c.tag){case 0:case 11:case 15:yi(8,c,i)}var f=c.child;if(f!==null)f.return=c,D=f;else for(;D!==null;){c=D;var h=c.sibling,d=c.return;if(Pg(c),c===u){D=null;break}if(h!==null){h.return=d,D=h;break}D=d}}}var w=i.alternate;if(w!==null){var g=w.child;if(g!==null){w.child=null;do{var x=g.sibling;g.sibling=null,g=x}while(g!==null)}}D=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,D=o;else e:for(;D!==null;){if(i=D,i.flags&2048)switch(i.tag){case 0:case 11:case 15:yi(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,D=m;break e}D=i.return}}var p=e.current;for(D=p;D!==null;){o=D;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,D=y;else e:for(o=p;D!==null;){if(a=D,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Ja(9,a)}}catch(S){we(a,a.return,S)}if(a===o){D=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,D=_;break e}D=a.return}}if(ee=s,nn(),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(Ba,e)}catch{}n=!0}return n}finally{ne=r,wt.transition=t}}return!1}function hh(e,t,r){t=Is(r,t),t=yg(e,t,1),e=Kr(e,t,1),t=Ke(),e!==null&&(ro(e,1,t),nt(e,t))}function we(e,t,r){if(e.tag===3)hh(e,e,r);else for(;t!==null;){if(t.tag===3){hh(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Gr===null||!Gr.has(n))){e=Is(r,e),e=wg(t,e,1),t=Kr(t,e,1),e=Ke(),t!==null&&(ro(t,1,e),nt(t,e));break}}t=t.return}}function B1(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Ke(),e.pingedLanes|=e.suspendedLanes&r,Ne===e&&(Le&r)===r&&(Te===4||Te===3&&(Le&130023424)===Le&&500>xe()-bd?kn(e,0):xd|=r),nt(e,t)}function Ug(e,t){t===0&&(e.mode&1?(t=bo,bo<<=1,!(bo&130023424)&&(bo=4194304)):t=1);var r=Ke();e=cr(e,t),e!==null&&(ro(e,t,r),nt(e,r))}function V1(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Ug(e,r)}function H1(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,s=e.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(N(314))}n!==null&&n.delete(t),Ug(e,r)}var Fg;Fg=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||tt.current)et=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return et=!1,O1(e,t,r);et=!!(e.flags&131072)}else et=!1,he&&t.flags&1048576&&Hm(t,wa,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Xo(e,t),e=t.pendingProps;var s=Ns(t,Ve.current);gs(t,r),s=pd(null,t,n,e,s,r);var i=md();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(n)?(i=!0,va(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,ud(t),s.updater=Qa,t.stateNode=s,s._reactInternals=t,Wu(t,n,e,r),t=Gu(null,t,n,!0,i,r)):(t.tag=0,he&&i&&rd(t),We(null,t,s,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Xo(e,t),e=t.pendingProps,s=n._init,n=s(n._payload),t.type=n,s=t.tag=q1(n),e=Rt(n,e),s){case 0:t=Ku(null,t,n,e,r);break e;case 1:t=nh(null,t,n,e,r);break e;case 11:t=th(null,t,n,e,r);break e;case 14:t=rh(null,t,n,Rt(n.type,e),r);break e}throw Error(N(306,n,""))}return t;case 0:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Rt(n,s),Ku(e,t,n,s,r);case 1:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Rt(n,s),nh(e,t,n,s,r);case 3:e:{if(Sg(t),e===null)throw Error(N(387));n=t.pendingProps,i=t.memoizedState,s=i.element,Jm(e,t),_a(t,n,null,r);var o=t.memoizedState;if(n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Is(Error(N(423)),t),t=sh(e,t,n,r,s
vendor: 5,432 bytes, line 40
40);break e}else if(n!==s){s=Is(Error(N(424)),t),t=sh(e,t,n,r,s);break e}else for(lt=qr(t.stateNode.containerInfo.firstChild),ut=t,he=!0,It=null,r=Gm(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Os(),n===s){t=dr(e,t,r);break e}We(e,t,n,r)}t=t.child}return t;case 5:return Ym(t),e===null&&Bu(t),n=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Du(n,s)?o=null:i!==null&&Du(n,i)&&(t.flags|=32),_g(e,t),We(e,t,o,r),t.child;case 6:return e===null&&Bu(t),null;case 13:return Eg(e,t,r);case 4:return cd(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=As(t,null,n,r):We(e,t,n,r),t.child;case 11:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Rt(n,s),th(e,t,n,s,r);case 7:return We(e,t,t.pendingProps,r),t.child;case 8:return We(e,t,t.pendingProps.children,r),t.child;case 12:return We(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,ae(xa,n._currentValue),n._currentValue=o,i!==null)if(Dt(i.value,o)){if(i.children===s.children&&!tt.current){t=dr(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=ar(-1,r&-r),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),Vu(i.return,r,t),a.lanes|=r;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(N(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),Vu(o,r,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}We(e,t,s.children,r),t=t.child}return t;case 9:return s=t.type,n=t.pendingProps.children,gs(t,r),s=xt(s),n=n(s),t.flags|=1,We(e,t,n,r),t.child;case 14:return n=t.type,s=Rt(n,t.pendingProps),s=Rt(n.type,s),rh(e,t,n,s,r);case 15:return xg(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Rt(n,s),Xo(e,t),t.tag=1,rt(n)?(e=!0,va(t)):e=!1,gs(t,r),vg(t,n,s),Wu(t,n,s,r),Gu(null,t,n,!0,e,r);case 19:return kg(e,t,r);case 22:return bg(e,t,r)}throw Error(N(156,t.tag))};function zg(e,t){return pm(e,t)}function W1(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 yt(e,t,r,n){return new W1(e,t,r,n)}function kd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function q1(e){if(typeof e=="function")return kd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Hc)return 11;if(e===Wc)return 14}return 2}function Jr(e,t){var r=e.alternate;return r===null?(r=yt(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 ta(e,t,r,n,s,i){var o=2;if(n=e,typeof e=="function")kd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case es:return Cn(r.children,s,i,t);case Vc:o=8,s|=8;break;case mu:return e=yt(12,r,t,s|2),e.elementType=mu,e.lanes=i,e;case gu:return e=yt(13,r,t,s),e.elementType=gu,e.lanes=i,e;case vu:return e=yt(19,r,t,s),e.elementType=vu,e.lanes=i,e;case Yp:return Xa(r,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qp:o=10;break e;case Jp:o=9;break e;case Hc:o=11;break e;case Wc:o=14;break e;case Pr:o=16,n=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=yt(o,r,t,s),t.elementType=e,t.type=n,t.lanes=i,t}function Cn(e,t,r,n){return e=yt(7,e,n,t),e.lanes=r,e}function Xa(e,t,r,n){return e=yt(22,e,n,t),e.elementType=Yp,e.lanes=r,e.stateNode={isHidden:!1},e}function Jl(e,t,r){return e=yt(6,e,null,t),e.lanes=r,e}function Yl(e,t,r){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function K1(e,t,r,n,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ol(0),this.expirationTimes=Ol(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ol(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Cd(e,t,r,n,s,i,o,a,l){return e=new K1(e,t,r,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=yt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ud(i),e}function G1(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;
vendor: 4,591 bytes, line 40
40return{$$typeof:Zn,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Bg(e){if(!e)return Xr;e=e._reactInternals;e:{if(Ln(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(rt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var r=e.type;if(rt(r))return Bm(e,r,t)}return t}function Vg(e,t,r,n,s,i,o,a,l){return e=Cd(r,n,!0,e,s,i,o,a,l),e.context=Bg(null),r=e.current,n=Ke(),s=Qr(r),i=ar(n,s),i.callback=t??null,Kr(r,i,s),e.current.lanes=s,ro(e,s,n),nt(e,n),e}function Za(e,t,r,n){var s=t.current,i=Ke(),o=Qr(s);return r=Bg(r),t.context===null?t.context=r:t.pendingContext=r,t=ar(i,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Kr(s,t,o),e!==null&&($t(e,s,o,i),Qo(e,s,o)),o}function Na(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 ph(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Td(e,t){ph(e,t),(e=e.alternate)&&ph(e,t)}function Q1(){return null}var Hg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Rd(e){this._internalRoot=e}el.prototype.render=Rd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));Za(e,t,null,null)};el.prototype.unmount=Rd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;An(function(){Za(null,e,null,null)}),t[ur]=null}};function el(e){this._internalRoot=e}el.prototype.unstable_scheduleHydration=function(e){if(e){var t=bm();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ar.length&&t!==0&&t<Ar[r].priority;r++);Ar.splice(r,0,e),r===0&&Sm(e)}};function Pd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function tl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function mh(){}function J1(e,t,r,n,s){if(s){if(typeof n=="function"){var i=n;n=function(){var u=Na(o);i.call(u)}}var o=Vg(t,n,e,0,null,!1,!1,"",mh);return e._reactRootContainer=o,e[ur]=o.current,Ai(e.nodeType===8?e.parentNode:e),An(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof n=="function"){var a=n;n=function(){var u=Na(l);a.call(u)}}var l=Cd(e,0,!1,null,null,!1,!1,"",mh);return e._reactRootContainer=l,e[ur]=l.current,Ai(e.nodeType===8?e.parentNode:e),An(function(){Za(t,l,r,n)}),l}function rl(e,t,r,n,s){var i=r._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=Na(o);a.call(l)}}Za(t,o,e,s)}else o=J1(r,t,e,s,n);return Na(o)}wm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=li(t.pendingLanes);r!==0&&(Gc(t,r|1),nt(t,xe()),!(ee&6)&&(Ls=xe()+500,nn()))}break;case 13:An(function(){var n=cr(e,1);if(n!==null){var s=Ke();$t(n,e,1,s)}}),Td(e,1)}};Qc=function(e){if(e.tag===13){var t=cr(e,134217728);if(t!==null){var r=Ke();$t(t,e,134217728,r)}Td(e,134217728)}};xm=function(e){if(e.tag===13){var t=Qr(e),r=cr(e,t);if(r!==null){var n=Ke();$t(r,e,t,n)}Td(e,t)}};bm=function(){return ne};_m=function(e,t){var r=ne;try{return ne=e,t()}finally{ne=r}};Tu=function(e,t,r){switch(t){case"input":if(xu(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 s=qa(n);if(!s)throw Error(N(90));Zp(n),xu(n,s)}}}break;case"textarea":tm(e,r);break;case"select":t=r.value,t!=null&&fs(e,!!r.multiple,t,!1)}};lm=_d;um=An;var Y1={usingClientEntryPoint:!1,Events:[so,ss,qa,om,am,_d]},ri={findFiberByHostInstance:mn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},X1={bundleType:ri.bundleType,version:ri.version,rendererPackageName:ri.rendererPackageName,rendererConfig:ri.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=fm(e),e===null?null:e.stateNode},findFiberByHostInstance:ri.findFiberByHostInstance||Q1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ao=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ao.isDisabled&&Ao.supportsFiber)try{Ba=Ao.inject(X1),Gt=Ao}catch{}}ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y1;ft.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pd(t))throw Error(N(200));return G1(e,t,null,r)};ft.createRoot=function(e,t){if(!Pd(e))throw Error(N(299));var r=!1,n="",s=Hg;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Cd(e,1,!1,null,null,r,!1,n,s),e[ur]=t.current,Ai(e.nodeType===8?e.parentNode:e),new Rd(t)};ft.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=fm(t),e=e===null?null:e.stateNode,e};ft.flushSync=function(e){return An(e)};ft.hydrate=function(e,t,r){if(!tl(t))throw Error(N(200));return rl(null,e,t,!0,r)};ft.hydrateRoot=function(e,t,r){if(!Pd(e))throw Error(N(405));var n=r!=null&&r.hydratedSources||null,s=!1,i="",o=Hg;if(r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=Vg(t,null,e,1,r??null,s,!1,i,o),e[ur]=t.current,Ai(e),n)for(e=0;e<n.length;e++)r=n[e],s=r._getVersion,s=s(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,s]:t.mutableSourceEagerHydrationData.push(r,s);return new el(t)};ft.render=function(e,t,r){if(!tl(t))throw Error(N(200));return rl(null,e,t,!1,r)};ft.unmountComponentAtNode=function(e){if(!tl(e))throw Error(N(40));return e._reactRootContainer?(An(function(){rl(null,null,e,!1,function(){e._reactRootContainer=null,e[ur]=null})}),!0):!1};ft.unstable_batchedUpdates=_d;ft.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!tl(r))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return rl(e,t,r,!1,n)};ft.version="18.3.1-next-f1338f8080-20240426";function Wg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wg)}catch(e){console.error(e)}}Wg(),Wp.exports=ft;var oo=Wp.exports;const qg=jp(oo);var Kg,gh=oo;Kg=gh.createRoot,gh.hydrateRoot;const Z1=1,ex=1e6;let Xl=0;function tx(){return Xl=(Xl+1)%Number.MAX_SAFE_INTEGER,Xl.toString()}const Zl=new Map,vh=e=>{if(Zl.has(e))return;const t=setTimeout(()=>{Zl.delete(e),bi({type:"REMOVE_TOAST",toastId:e})},ex);Zl.set(e,t)},rx=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Z1)};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;return r?vh(r):e.toasts.forEach(n=>{vh(n.id)}),{...e,toasts:e.toasts.map(n=>
40n.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)}}},ra=[];let na={toasts:[]};function bi(e){na=rx(na,e),ra.forEach(t=>{t(na)})}function nx({...e}){const t=tx(),r=s=>bi({type:"UPDATE_TOAST",toast:{...s,id:t}}),n=()=>bi({type:"DISMISS_TOAST",toastId:t});return bi({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||n()}}}),{id:t,dismiss:n,update:r}}function Gg(){const[e,t]=b.useState(na);return b.useEffect(()=>(ra.push(t),()=>{const r=ra.indexOf(t);r>-1&&ra.splice(r,1)}),[e]),{...e,toast:nx,dismiss:r=>bi({type:"DISMISS_TOAST",toastId:r})}}function ie(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function yh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qg(...e){return t=>{let r=!1;const n=e.map(s=>{const i=yh(s,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():yh(e[s],null)}}}}function Ge(...e){return b.useCallback(Qg(...e),e)}function $n(e,t=[]){let r=[];function n(i,o){const a=b.createContext(o),l=r.length;r=[...r,o];const u=f=>{var m;const{scope:h,children:d,...w}=f,g=((m=h==null?void 0:h[e])==null?void 0:m[l])||a,x=b.useMemo(()=>w,Object.values(w));return v.jsx(g.Provider,{value:x,children:d})};u.displayName=i+"Provider";function c(f,h){var g;const d=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,w=b.useContext(d);if(w)return w;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,c]}const s=()=>{const i=r.map(o=>b.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[n,sx(s,...t)]}function sx(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=n.reduce((a,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...a,...f}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function Oa(e){const t=ox(e),r=b.forwardRef((n,s)=>{const{children:i,...o}=n,a=b.Children.toArray(i),l=a.find(lx);if(l){const u=l.props.children,c=a.map(f=>f===l?b.Children.count(u)>1?b.Children.only(null):b.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...o,ref:s,children:b.isValidElement(u)?b.cloneElement(u,void 0,c):null})}return v.jsx(t,{...o,ref:s,children:i})});return r.displayName=`${e}.Slot`,r}var ix=Oa("Slot");function ox(e){const t=b.forwardRef((r,n)=>{const{children:s,...i}=r;if(b.isValidElement(s)){const o=cx(s),a=ux(i,s.props);return s.type!==b.Fragment&&(a.ref=n?Qg(n,o):o),b.cloneElement(s,a)}return b.Children.count(s)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Jg=Symbol("radix.slottable");function ax(e){const t=({children:r})=>v.jsx(v.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Jg,t}function lx(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Jg}function ux(e,t){const r={...t};for(const n in t){const s=e[n],i=t[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...a)=>{const l=i(...a);return s(...a),l}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...e,...r}}function cx(e){var n,s;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=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Yg(e){const t=e+"CollectionProvider",[r,n]=$n(t),[s,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=g=>{const{scope:x,children:m}=g,p=A.useRef(null),y=A.useRef(new Map).current;return v.jsx(s,{scope:x,itemMap:y,collectionRef:p,children:m})};o.displayName=t;const a=e+"CollectionSlot",l=Oa(a),u=A.forwardRef((g,x)=>{const{scope:m,children:p}
vendor: 10,023 bytes, line 40
40=g,y=i(a,m),_=Ge(x,y.collectionRef);return v.jsx(l,{ref:_,children:p})});u.displayName=a;const c=e+"CollectionItemSlot",f="data-radix-collection-item",h=Oa(c),d=A.forwardRef((g,x)=>{const{scope:m,children:p,...y}=g,_=A.useRef(null),S=Ge(x,_),E=i(c,m);return A.useEffect(()=>(E.itemMap.set(_,{ref:_,...y}),()=>void E.itemMap.delete(_))),v.jsx(h,{[f]:"",ref:S,children:p})});d.displayName=c;function w(g){const x=i(e+"CollectionConsumer",g);return A.useCallback(()=>{const p=x.collectionRef.current;if(!p)return[];const y=Array.from(p.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((E,k)=>y.indexOf(E.ref.current)-y.indexOf(k.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:u,ItemSlot:d},w,n]}var dx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],be=dx.reduce((e,t)=>{const r=Oa(`Primitive.${t}`),n=b.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(l,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Xg(e,t){e&&oo.flushSync(()=>e.dispatchEvent(t))}function fr(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function fx(e,t=globalThis==null?void 0:globalThis.document){const r=fr(e);b.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var hx="DismissableLayer",oc="dismissableLayer.update",px="dismissableLayer.pointerDownOutside",mx="dismissableLayer.focusOutside",wh,Zg=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nd=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,u=b.useContext(Zg),[c,f]=b.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=b.useState({}),w=Ge(t,k=>f(k)),g=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=g.indexOf(x),p=c?g.indexOf(c):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,_=p>=m,S=vx(k=>{const C=k.target,O=[...u.branches].some(j=>j.contains(C));!_||O||(s==null||s(k),o==null||o(k),k.defaultPrevented||a==null||a())},h),E=yx(k=>{const C=k.target;[...u.branches].some(j=>j.contains(C))||(i==null||i(k),o==null||o(k),k.defaultPrevented||a==null||a())},h);return fx(k=>{p===u.layers.size-1&&(n==null||n(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},h),b.useEffect(()=>{if(c)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(wh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),xh(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=wh)}},[c,h,r,u]),b.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),xh())},[c,u]),b.useEffect(()=>{const k=()=>d({});return document.addEventListener(oc,k),()=>document.removeEventListener(oc,k)},[]),v.jsx(be.div,{...l,ref:w,style:{pointerEvents:y?_?"auto":"none":void 0,...e.style},onFocusCapture:ie(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ie(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ie(e.onPointerDownCapture,S.onPointerDownCapture)})});Nd.displayName=hx;var gx="DismissableLayerBranch",e0=b.forwardRef((e,t)=>{const r=b.useContext(Zg),n=b.useRef(null),s=Ge(t,n);return b.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),v.jsx(be.div,{...e,ref:s})});e0.displayName=gx;function vx(e,t=globalThis==null?void 0:globalThis.document){const r=fr(e),n=b.useRef(!1),s=b.useRef(()=>{});return b.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let l=function(){t0(px,r,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function yx(e,t=globalThis==null?void 0:globalThis.document){const r=fr(e),n=b.useRef(!1);return b.useEffect(()=>{const s=i=>{i.target&&!n.current&&t0(mx,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function xh(){const e=new CustomEvent(oc);document.dispatchEvent(e)}function t0(e,t,r,{discrete:n}){const s=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?Xg(s,i):s.dispatchEvent(i)}var wx=Nd,xx=e0,hr=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},bx="Portal",r0=b.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[s,i]=b.useState(!1);hr(()=>i(!0),[]);const o=r||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?qg.createPortal(v.jsx(be.div,{...n,ref:t}),o):null});r0.displayName=bx;function _x(e,t){return b.useReducer((r,n)=>t[r][n]??r,e)}var nl=e=>{const{present:t,children:r}=e,n=Sx(t),s=typeof r=="function"?r({present:n.isPresent}):b.Children.only(r),i=Ge(n.ref,Ex(s));return typeof r=="function"||n.isPresent?b.cloneElement(s,{ref:i}):null};nl.displayName="Presence";function Sx(e){const[t,r]=b.useState(),n=b.useRef(null),s=b.useRef(e),i=b.useRef("none"),o=e?"mounted":"unmounted",[a,l]=_x(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const u=jo(n.current);i.current=a==="mounted"?u:"none"},[a]),hr(()=>{const u=n.current,c=s.current;if(c!==e){const h=i.current,d=jo(u);e?l("MOUNT"):d==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&h!==d?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),hr(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=d=>{const g=jo(n.current).includes(d.animationName);if(d.target===t&&g&&(l("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},h=d=>{d.target===t&&(i.current=jo(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function jo(e){return(e==null?void 0:e.animationName)||"none"}function Ex(e){var n,s;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=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var kx=Uc[" useInsertionEffect ".trim().toString()]||hr;function Od({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[s,i,o]=Cx({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:s;{const c=b.useRef(e!==void 0);b.useEffect(()=>{const f=c.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.`),c.current=a},[a,n])}const u=b.useCallback(c=>{var f;if(a){const h=Tx(c)?c(e):c;h!==e&&((f=o.current)==null||f.call(o,h))}else i(c)},[a,e,i,o]);return[l,u]}function Cx({defaultProp:e,onChange:t}){const[r,n]=b.useState(e),s=b.useRef(r),i=b.useRef(t);return kx(()=>{i.current=t},[t]),b.useEffect(()=>{var o;s.current!==r&&((o=i.current)==null||o.call(i,r),s.current=r)},[r,s]),[r,n,i]}function Tx(e){return typeof e=="function"}var Rx=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"}),Px="VisuallyHidden",sl=b.forwardRef((e,t)=>v.jsx(be.span,{...e,ref:t,style:{...Rx,...e.style}}));sl.displayName=Px;var Nx=sl,Ad="ToastProvider",[jd,Ox,Ax]=Yg("Toast"),[n0,mR]=$n("Toast",[Ax]),[jx,il]=n0(Ad),s0=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[a,l]=b.useState(null),[u,c]=b.useState(0),f=b.useRef(!1),h=b.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Ad}\`. Expected non-empty \`string\`.`),v.jsx(jd.Provider,{scope:t,children:v.jsx(jx,{scope:t,label:r,duration:n,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:b.useCallback(()=>c(d=>d+1),[]),onToastRemove:b.useCallback(()=>c(d=>d-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:o})})};s0.displayName=Ad;var i0="ToastViewport",Ix=["F8"],ac="toast.viewportPause",lc="toast.viewportResume",o0=b.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=Ix,label:s="Notifications ({hotkey})",...i}=e,o=il(i0,r),a=Ox(r),l=b.useRef(null),u=b.useRef(null),c=b.useRef(null),f=b.useRef(null),h=Ge(t,f,o.onViewportChange),d=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=o.toastCount>0;b.useEffect(()=>{const x=m=>{var y;n.length!==0&&n.every(_=>m[_]||m.code===_)&&((y=f.current)==null||y.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[n]),b.useEffect(()=>{const x=l.current,m=f.current;if(w&&x&&m){const p=()=>
40{if(!o.isClosePausedRef.current){const E=new CustomEvent(ac);m.dispatchEvent(E),o.isClosePausedRef.current=!0}},y=()=>{if(o.isClosePausedRef.current){const E=new CustomEvent(lc);m.dispatchEvent(E),o.isClosePausedRef.current=!1}},_=E=>{!x.contains(E.relatedTarget)&&y()},S=()=>{x.contains(document.activeElement)||y()};return x.addEventListener("focusin",p),x.addEventListener("focusout",_),x.addEventListener("pointermove",p),x.addEventListener("pointerleave",S),window.addEventListener("blur",p),window.addEventListener("focus",y),()=>{x.removeEventListener("focusin",p),x.removeEventListener("focusout",_),x.removeEventListener("pointermove",p),x.removeEventListener("pointerleave",S),window.removeEventListener("blur",p),window.removeEventListener("focus",y)}}},[w,o.isClosePausedRef]);const g=b.useCallback(({tabbingDirection:x})=>{const p=a().map(y=>{const _=y.ref.current,S=[_,...Kx(_)];return x==="forwards"?S:S.reverse()});return(x==="forwards"?p.reverse():p).flat()},[a]);return b.useEffect(()=>{const x=f.current;if(x){const m=p=>{var S,E,k;const y=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!y){const C=document.activeElement,O=p.shiftKey;if(p.target===x&&O){(S=u.current)==null||S.focus();return}const $=g({tabbingDirection:O?"backwards":"forwards"}),Q=$.findIndex(I=>I===C);eu($.slice(Q+1))?p.preventDefault():O?(E=u.current)==null||E.focus():(k=c.current)==null||k.focus()}};return x.addEventListener("keydown",m),()=>x.removeEventListener("keydown",m)}},[a,g]),v.jsxs(xx,{ref:l,role:"region","aria-label":s.replace("{hotkey}",d),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&v.jsx(uc,{ref:u,onFocusFromOutsideViewport:()=>{const x=g({tabbingDirection:"forwards"});eu(x)}}),v.jsx(jd.Slot,{scope:r,children:v.jsx(be.ol,{tabIndex:-1,...i,ref:h})}),w&&v.jsx(uc,{ref:c,onFocusFromOutsideViewport:()=>{const x=g({tabbingDirection:"backwards"});eu(x)}})]})});o0.displayName=i0;var a0="ToastFocusProxy",uc=b.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=e,i=il(a0,r);return v.jsx(sl,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const a=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&n()}})});uc.displayName=a0;var ao="Toast",Lx="toast.swipeStart",$x="toast.swipeMove",Dx="toast.swipeCancel",Mx="toast.swipeEnd",l0=b.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:i,...o}=e,[a,l]=Od({prop:n,defaultProp:s??!0,onChange:i,caller:ao});return v.jsx(nl,{present:r||a,children:v.jsx(zx,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:fr(e.onPause),onResume:fr(e.onResume),onSwipeStart:ie(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ie(e.onSwipeMove,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:ie(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ie(e.onSwipeEnd,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});l0.displayName=ao;var[Ux,Fx]=n0(ao,{onClose(){}}),zx=b.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:d,...w}=e,g=il(ao,r),[x,m]=b.useState(null),p=Ge(t,I=>m(I)),y=b.useRef(null),_=b.useRef(null),S=s||g.duration,E=b.useRef(0),k=b.useRef(S),C=b.useRef(0),{onToastAdd:O,onToastRemove:j}=g,z=fr(()=>{var J;(x==null?void 0:x.contains(document.activeElement))&&((J=g.viewport)==null||J.focus()),o()}),$=b.useCallback(I=>
vendor: 4,521 bytes, line 40
40{!I||I===1/0||(window.clearTimeout(C.current),E.current=new Date().getTime(),C.current=window.setTimeout(z,I))},[z]);b.useEffect(()=>{const I=g.viewport;if(I){const J=()=>{$(k.current),u==null||u()},U=()=>{const q=new Date().getTime()-E.current;k.current=k.current-q,window.clearTimeout(C.current),l==null||l()};return I.addEventListener(ac,U),I.addEventListener(lc,J),()=>{I.removeEventListener(ac,U),I.removeEventListener(lc,J)}}},[g.viewport,S,l,u,$]),b.useEffect(()=>{i&&!g.isClosePausedRef.current&&$(S)},[i,S,g.isClosePausedRef,$]),b.useEffect(()=>(O(),()=>j()),[O,j]);const Q=b.useMemo(()=>x?m0(x):null,[x]);return g.viewport?v.jsxs(v.Fragment,{children:[Q&&v.jsx(Bx,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:Q}),v.jsx(Ux,{scope:r,onClose:z,children:oo.createPortal(v.jsx(jd.ItemSlot,{scope:r,children:v.jsx(wx,{asChild:!0,onEscapeKeyDown:ie(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||z(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:v.jsx(be.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...w,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ie(e.onKeyDown,I=>{I.key==="Escape"&&(a==null||a(I.nativeEvent),I.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:ie(e.onPointerDown,I=>{I.button===0&&(y.current={x:I.clientX,y:I.clientY})}),onPointerMove:ie(e.onPointerMove,I=>{if(!y.current)return;const J=I.clientX-y.current.x,U=I.clientY-y.current.y,q=!!_.current,R=["left","right"].includes(g.swipeDirection),P=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,L=R?P(0,J):0,K=R?0:P(0,U),F=I.pointerType==="touch"?10:2,Y={x:L,y:K},Z={originalEvent:I,delta:Y};q?(_.current=Y,Io($x,f,Z,{discrete:!1})):bh(Y,g.swipeDirection,F)?(_.current=Y,Io(Lx,c,Z,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(J)>F||Math.abs(U)>F)&&(y.current=null)}),onPointerUp:ie(e.onPointerUp,I=>{const J=_.current,U=I.target;if(U.hasPointerCapture(I.pointerId)&&U.releasePointerCapture(I.pointerId),_.current=null,y.current=null,J){const q=I.currentTarget,R={originalEvent:I,delta:J};bh(J,g.swipeDirection,g.swipeThreshold)?Io(Mx,d,R,{discrete:!0}):Io(Dx,h,R,{discrete:!0}),q.addEventListener("click",P=>P.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),Bx=e=>{const{__scopeToast:t,children:r,...n}=e,s=il(ao,t),[i,o]=b.useState(!1),[a,l]=b.useState(!1);return Wx(()=>o(!0)),b.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:v.jsx(r0,{asChild:!0,children:v.jsx(sl,{...n,children:i&&v.jsxs(v.Fragment,{children:[s.label," ",r]})})})},Vx="ToastTitle",u0=b.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return v.jsx(be.div,{...n,ref:t})});u0.displayName=Vx;var Hx="ToastDescription",c0=b.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return v.jsx(be.div,{...n,ref:t})});c0.displayName=Hx;var d0="ToastAction",f0=b.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?v.jsx(p0,{altText:r,asChild:!0,children:v.jsx(Id,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${d0}\`. Expected non-empty \`string\`.`),null)});f0.displayName=d0;var h0="ToastClose",Id=b.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,s=Fx(h0,r);return v.jsx(p0,{asChild:!0,children:v.jsx(be.button,{type:"button",...n,ref:t,onClick:ie(e.onClick,s.onClose)})})});Id.displayName=h0;var p0=b.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...s}=e;return v.jsx(be.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:t})});function m0(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),qx(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=n.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...m0(n))}}),t}function Io(e,t,r,{discrete:n}){const s=r.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?Xg(s,i):s.dispatchEvent(i)}var bh=(e,t,r=0)=>{const n=Math.abs(e.x),s=Math.abs(e.y),i=n>s;return t==="left"||t==="right"?i&&n>r:!i&&s>r};function Wx(e=()=>{}){const t=fr(e);hr(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}
vendor: 4,111 bytes, lines 40-75
40function qx(e){return e.nodeType===e.ELEMENT_NODE}function Kx(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function eu(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var Gx=s0,g0=o0,v0=l0,y0=u0,w0=c0,x0=f0,b0=Id;function _0(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=_0(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function S0(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=_0(e))&&(n&&(n+=" "),n+=t);return n}const _h=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Sh=S0,Ld=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Sh(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(u=>{const c=r==null?void 0:r[u],f=i==null?void 0:i[u];if(c===null)return null;const h=_h(c)||_h(f);return s[u][h]}),a=r&&Object.entries(r).reduce((u,c)=>{let[f,h]=c;return h===void 0||(u[f]=h),u},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,c)=>{let{class:f,className:h,...d}=c;return Object.entries(d).every(w=>{let[g,x]=w;return Array.isArray(x)?x.includes({...i,...a}[g]):{...i,...a}[g]===x})?[...u,f,h]:u},[]);return Sh(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 Qx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),E0=(...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 Jx={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 Yx=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:i,iconNode:o,...a},l)=>b.createElement("svg",{ref:l,...Jx,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:E0("lucide",s),...a},[...o.map(([u,c])=>b.createElement(u,c)),...Array.isArray(i)?i:[i]]));/**
56 * @license lucide-react v0.462.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const Ye=(e,t)=>{const r=b.forwardRef(({className:n,...s},i)=>b.createElement(Yx,{ref:i,iconNode:t,className:E0(`lucide-${Qx(e)}`,n),...s}));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 ci=Ye("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
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 Xx=Ye("Banknote",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]]);/**
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 Eh=Ye("ChartPie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",ke
75y:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/**
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 Zx=Ye("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
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 eb=Ye("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
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 tb=Ye("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
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 rb=Ye("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
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 nb=Ye("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"}]]);/**
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 Bt=Ye("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"}]]);/**
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 sb=Ye("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"}]]);/**
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.
vendor: 9,212 bytes, lines 115-135
115 */const ib=Ye("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
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 k0=Ye("ShieldCheck",[["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"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
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 cc=Ye("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
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 dc=Ye("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"}]]);/**
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 ob=Ye("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),$d="-",ab=e=>{const t=ub(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const a=o.split($d);return a[0]===""&&a.length!==1&&a.shift(),C0(a,t)||lb(o)},getConflictingClassGroupIds:(o,a)=>{const l=r[o]||[];return a&&n[o]?[...l,...n[o]]:l}}},C0=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),s=n?C0(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join($d);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},kh=/^\[(.+)\]$/,lb=e=>{if(kh.test(e)){const t=kh.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ub=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return db(Object.entries(e.classGroups),r).forEach(([i,o])=>{fc(o,n,i,t)}),n},fc=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Ch(t,s);i.classGroupId=r;return}if(typeof s=="function"){if(cb(s)){fc(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([i,o])=>{fc(o,Ch(t,i),r,n)})})},Ch=(e,t)=>{let r=e;return t.split($d).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},cb=e=>e.isThemeGetter,db=(e,t)=>t?e.map(([r,n])=>{const s=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[r,s]}):e,fb=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(i,o)=>{r.set(i,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let o=r.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return s(i,o),o},set(i,o){r.has(i)?r.set(i,o):s(i,o)}}},T0="!",hb=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let u=0,c=0,f;for(let x=0;x<a.length;x++){let m=a[x];if(u===0){if(m===s&&(n||a.slice(x,x+i)===t)){l.push(a.slice(c,x)),c=x+i;continue}if(m==="/"){f=x;continue}}m==="["?u++:m==="]"&&u--}const h=l.length===0?a:a.substring(c),d=h.startsWith(T0),w=d?h.substring(1):h,g=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:d,baseClassName:w,maybePostfixModifierPosition:g}};return r?a=>r({className:a,parseClassName:o}):o},pb=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},mb=e=>({cache:fb(e.cacheSize),parseClassName:hb(e),...ab(e)}),gb=/\s+/,vb=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(gb);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:d}=r(u);let w=!!d,g=n(w?h.substring(0,d):h);if(!g){if(!w){a=u+(a.length>0?" "+a:a);continue}if(g=n(h),!g){a=u+(a.length>0?" "+a:a);continue}w=!1}const x=pb(c).join(":"),m=f?x+T0:x,p=m+g;if(i.includes(p))continue;i.push(p);const y=s(g,w);for(let _=0;_<y.length;++_){const S=y[_];i.push(m+S)}a=u+(a.length>0?" "+a:a)}return a};function yb(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=R0(t))&&(n&&(n+=" "),n+=r);return n}const R0=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=R0(e[n]))&&(r&&(r+=" "),r+=t);return r};function wb(e,...t){let r,n,s,i=o;function o(l){const u=t.reduce((c,f)=>f(c),e());return r=mb(u),n=r.cache.get,s=r.cache.set,i=a,a(l)}function a(l){const u=n(l);if(u)return u;const c=vb(l,r);return s(l,c),c}return function(){return i(yb.apply(null,arguments))}}const le=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},P0=/^\[(?:([a-z-]+):)?(.+)\]$/i,xb=/^\d+\/\d+$/,bb=new Set(["px","full","screen"]),_b=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Sb=/\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$/,Eb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,kb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Cb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zt=e=>ys(e)||bb.has(e)||xb.test(e),kr=e=>zs(e,"length",Ib),ys=e=>!!e&&!Number.isNaN(Number(e)),tu=e=>zs(e,"number",ys),ni=e=>!!e&&Number.isInteger(Number(e)),Tb=e=>e.endsWith("%")&&ys(e.slice(0,-1)),G=e=>P0.test(e),Cr=e=>_b.test(e),Rb=new Set(["length","size","percentage"]),Pb=e=>zs(e,Rb,N0),Nb=e=>zs(e,"position",N0),Ob=new Set(["image","url"]),Ab=e=>zs(e,Ob,$b),jb=e=>zs(e,"",Lb),si=()=>!0,zs=(e,t,r)=>{const n=P0.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Ib=e=>Sb.test(e)&&!Eb.test(e),N0=()=>!1,Lb=e=>kb.test(e),$b=e=>Cb.test(e),Db=()=>{const e=le("colors"),t=le("spacing"),r=le("blur"),n=le("brightness"),s=le("borderColor"),i=le("borderRadius"),o=le("borderSpacing"),a=le("borderWidth"),l=le("contrast"),u=le("grayscale"),c=le("hueRotate"),f=le("invert"),h=le("gap"),d=le("gradientColorStops"),w=le("gradientColorStopPositions"),g=le("inset"),x=le("margin"),m=le("opacity"),p=le("padding"),y=le("saturate"),_=le("scale"),S=le("sepia"),E=le("skew"),k=le("space"),C=le("translate"),O=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",G,t],$=()=>[G,t],Q=()=>["",Zt,kr],I=()=>["auto",ys,G],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",G],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[ys,G];return{cacheSize:500,separator:":",theme:{colors:[si],spacing:[Zt,kr],blur:["none","",Cr,G],brightness:K(),borderColor:[e],borderRadius:["none","","full",Cr,G],borderSpacing:$(),borderWidth:Q(),contrast:K(),grayscale:P(),hueRotate:K(),invert:P(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[Tb,kr],inset:z(),margin:z(),opacity:K(),padding:$(),saturate:K(),scale:K(),sepia:P(),skew:K(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",G]}],container:["container"],columns:[{columns:[Cr]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),G]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],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]}
vendor: 9,916 bytes, line 135
135],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ni,G]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",G]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",ni,G]}],"grid-cols":[{"grid-cols":[si]}],"col-start-end":[{col:["auto",{span:["full",ni,G]},G]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[si]}],"row-start-end":[{row:["auto",{span:[ni,G]},G]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",G]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",G]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[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":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",G,t]}],"min-w":[{"min-w":[G,t,"min","max","fit"]}],"max-w":[{"max-w":[G,t,"none","full","min","max","fit","prose",{screen:[Cr]},Cr]}],h:[{h:[G,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[G,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Cr,kr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",tu]}],"font-family":[{font:[si]}],"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",G]}],"line-clamp":[{"line-clamp":["none",ys,tu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Zt,G]}],"list-image":[{"list-image":["none",G]}],"list-style-type":[{list:["none","disc","decimal",G]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Zt,kr]}],"underline-offset":[{"underline-offset":["auto",Zt,G]}],"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",G]}],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",G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),Nb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Pb]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ab]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:U()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[Zt,G]}],"outline-w":[{outline:[Zt,kr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Zt,kr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Cr,jb]}],"shadow-color":[{shadow:[si]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Cr,G]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[y]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",G]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",G]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",G]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[ni,G]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"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",G]}],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",G]}],"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,646 bytes, line 135
135],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",G]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Zt,kr,tu]}],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"]}}},Mb=wb(Db);function Oe(...e){return Mb(S0(e))}const Ub=Gx,O0=b.forwardRef(({className:e,...t},r)=>v.jsx(g0,{ref:r,className:Oe("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}));O0.displayName=g0.displayName;const Fb=Ld("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"}}),A0=b.forwardRef(({className:e,variant:t,...r},n)=>v.jsx(v0,{ref:n,className:Oe(Fb({variant:t}),e),...r}));A0.displayName=v0.displayName;const zb=b.forwardRef(({className:e,...t},r)=>v.jsx(x0,{ref:r,className:Oe("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}));zb.displayName=x0.displayName;const j0=b.forwardRef(({className:e,...t},r)=>v.jsx(b0,{ref:r,className:Oe("absolute right-2 top-2 rounded-md p-1 text-foreground
135/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:v.jsx(ob,{className:"h-4 w-4"})}));j0.displayName=b0.displayName;const I0=b.forwardRef(({className:e,...t},r)=>v.jsx(y0,{ref:r,className:Oe("text-sm font-semibold",e),...t}));I0.displayName=y0.displayName;const L0=b.forwardRef(({className:e,...t},r)=>v.jsx(w0,{ref:r,className:Oe("text-sm opacity-90",e),...t}));L0.displayName=w0.displayName;function Bb(){const{toasts:e}=Gg();return v.jsxs(Ub,{children:[e.map(function({id:t,title:r,description:n,action:s,...i}){return v.jsxs(A0,{...i,children:[v.jsxs("div",{className:"grid gap-1",children:[r&&v.jsx(I0,{children:r}),n&&v.jsx(L0,{children:n})]}),s,v.jsx(j0,{})]},t)}),v.jsx(O0,{})]})}var Th=["light","dark"],Vb="(prefers-color-scheme: dark)",Hb=b.createContext(void 0),Wb={setTheme:e=>{},themes:[]},qb=()=>{var e;return(e=b.useContext(Hb))!=null?e:Wb};b.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:l})=>{let u=i==="system",c=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(w=>`'${w}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,f=s?Th.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(w,g=!1,x=!0)=>{let m=o?o[w]:w,p=g?w+"|| ''":`'${m}'`,y="";return s&&x&&!g&&Th.includes(w)&&(y+=`d.style.colorScheme = '${w}';`),r==="class"?g||m?y+=`c.add(${p})`:y+="null":m&&(y+=`d[s](n,${p})`),y},d=e?`!function(){${c}${h(e)}}()`:n?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Vb}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}${u?"":"else{"+h(i,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${f}}catch(t){}}();`;return b.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:d}})});var Kb=e=>{switch(e){case"success":return Jb;case"info":return Xb;case"warning":return Yb;case"error":return Zb;default:return null}},Gb=Array(12).fill(0),Qb=({visible:e,className:t})=>A.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},A.createElement("div",{className:"sonner-spinner"},Gb.map((r,n)=>A.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),Jb=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"})),Yb=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"})),Xb=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"})),Zb=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"})),e_=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"})),t_=()=>{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},hc=1,r_=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 135
135{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,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:hc++,i=this.toasts.find(a=>a.id===s),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:r}),{...a,...e,id:s,dismissible:o,title:r}):a):this.addToast({title:r,...n,dismissible:o,id:s}),s},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)=>
135this.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(),s=r!==void 0,i,o=n.then(async l=>{if(i=["resolve",l],A.isValidElement(l))s=!1,this.create({id:r,type:"default",message:l});else if(s_(l)&&!l.ok){s=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:r,type:"error",message:u,description:c})}else if(t.success!==void 0){s=!1;let u=typeof t.success=="function"?await t.success(l):t.success,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"success",message:u,description:c})}}).catch(async l=>{if(i=["reject",l],t.error!==void 0){s=!1;let u=typeof t.error=="function"?await t.error(l):t.error,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"error",message:u,description:c})}}).finally(()=>{var l;s&&(this.dismiss(r),r=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>o.then(()=>i[0]==="reject"?u(i[1]):l(i[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:a}:Object.assign(r,{unwrap:a})},this.custom=(e,t)=>{let r=(t==null?void 0:t.id)||hc++;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}},Xe=new r_,n_=(e,t)=>{let r=(t==null?void 0:t.id)||hc++;return Xe.addToast({title:e,...t,id:r}),r},s_=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",i_=n_,o_=()=>Xe.toasts,a_=()=>Xe.getActiveToasts();Object.assign(i_,{success:Xe.success,info:Xe.info,warning:Xe.warning,error:Xe.error,custom:Xe.custom,message:Xe.message,promise:Xe.promise,dismiss:Xe.dismiss,loading:Xe.loading},{getHistory:o_,getToasts:a_});function l_(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))}l_(`: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;
135left: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}
135: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%);
135--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%)}
136`);function Lo(e){return e.label!==void 0}var u_=3,c_="32px",d_="16px",Rh=4e3,f_=356,h_=14,p_=20,m_=200;function Ct(...e){return e.filter(Boolean).join(" ")}function g_(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var v_=e=>{var t,r,n,s,i,o,a,l,u,c,f;let{invert:h,toast:d,unstyled:w,interacting:g,setHeights:x,visibleToasts:m,heights:p,index:y,toasts:_,expanded:S,removeToast:E,defaultRichColors:k,closeButton:C,style:O,cancelButtonStyle:j,actionButtonStyle:z,className:$="",descriptionClassName:Q="",duration:I,position:J,gap:U,loadingIcon:q,expandByDefault:R,classNames:P,icons:L,closeButtonAriaLabel:K="Close toast",pauseWhenPageIsHidden:F}=e,[Y,Z]=A.useState(null),[_e,De]=A.useState(null),[re,Dn]=A.useState(!1),[yr,sn]=A.useState(!1),[wr,Mn]=A.useState(!1),[xr,fo]=A.useState(!1),[bl,ho]=A.useState(!1),[_l,Ks]=A.useState(0),[Un,ef]=A.useState(0),Gs=A.useRef(d.duration||I||Rh),tf=A.useRef(null),on=A.useRef(null),yy=y===0,wy=y+1<=m,pt=d.type,Fn=d.dismissible!==!1,xy=d.className||"",by=d.descriptionClassName||"",po=A.useMemo(()=>p.findIndex(H=>H.toastId===d.id)||0,[p,d.id]),_y=A.useMemo(()=>{var H;return(H=d.closeButton)!=null?H:C},[d.closeButton,C]),rf=A.useMemo(()=>d.duration||I||Rh,[d.duration,I]),Sl=A.useRef(0),zn=A.useRef(0),nf=A.useRef(0),Bn=A.useRef(null),[Sy,Ey]=J.split("-"),sf=A.useMemo(()=>p.reduce((H,se,de)=>de>=po?H:H+se.height,0),[p,po]),of=t_(),ky=d.invert||h,El=pt==="loading";zn.current=A.useMemo(()=>po*U+sf,[po,sf]),A.useEffect(()=>{Gs.current=rf},[rf]),A.useEffect(()=>{Dn(!0)},[]),A.useEffect(()=>{let H=on.current;if(H){let se=H.getBoundingClientRect().height;return ef(se),x(de=>[{toastId:d.id,height:se,position:d.position},...de]),()=>x(de=>de.filter(_t=>_t.toastId!==d.id))}},[x,d.id]),A.useLayoutEffect(()=>{if(!re)return;let H=on.current,se=H.style.height;H.style.height="auto";let de=H.getBoundingClientRect().height;H.style.height=se,ef(de),x(_t=>_t.find(St=>St.toastId===d.id)?_t.map(St=>St.toastId===d.id?{...St,height:de}:St):[{toastId:d.id,height:de,position:d.position},..._t])},[re,d.title,d.description,x,d.id]);let br=A.useCallback(()=>{sn(!0),Ks(zn.current),x(H=>H.filter(se=>se.toastId!==d.id)),setTimeout(()=>{E(d)},m_)},[d,E,x,zn]);A.useEffect(()=>{if(d.promise&&pt==="loading"||d.duration===1/0||d.type==="loading")return;let H;return S||g||F&&of?(()=>{if(nf.current<Sl.current){let se=new Date().getTime()-Sl.current;Gs.current=Gs.current-se}
136nf.current=new Date().getTime()})():Gs.current!==1/0&&(Sl.current=new Date().getTime(),H=setTimeout(()=>{var se;(se=d.onAutoClose)==null||se.call(d,d),br()},Gs.current)),()=>clearTimeout(H)},[S,g,d,pt,F,of,br]),A.useEffect(()=>{d.delete&&br()},[br,d.delete]);function Cy(){var H,se,de;return L!=null&&L.loading?A.createElement("div",{className:Ct(P==null?void 0:P.loader,(H=d==null?void 0:d.classNames)==null?void 0:H.loader,"sonner-loader"),"data-visible":pt==="loading"},L.loading):q?A.createElement("div",{className:Ct(P==null?void 0:P.loader,(se=d==null?void 0:d.classNames)==null?void 0:se.loader,"sonner-loader"),"data-visible":pt==="loading"},q):A.createElement(Qb,{className:Ct(P==null?void 0:P.loader,(de=d==null?void 0:d.classNames)==null?void 0:de.loader),visible:pt==="loading"})}return A.createElement("li",{tabIndex:0,ref:on,className:Ct($,xy,P==null?void 0:P.toast,(t=d==null?void 0:d.classNames)==null?void 0:t.toast,P==null?void 0:P.default,P==null?void 0:P[pt],(r=d==null?void 0:d.classNames)==null?void 0:r[pt]),"data-sonner-toast":"","data-rich-colors":(n=d.richColors)!=null?n:k,"data-styled":!(d.jsx||d.unstyled||w),"data-mounted":re,"data-
136promise":!!d.promise,"data-swiped":bl,"data-removed":yr,"data-visible":wy,"data-y-position":Sy,"data-x-position":Ey,"data-index":y,"data-front":yy,"data-swiping":wr,"data-dismissible":Fn,"data-type":pt,"data-invert":ky,"data-swipe-out":xr,"data-swipe-direction":_e,"data-expanded":!!(S||R&&re),style:{"--index":y,"--toasts-before":y,"--z-index":_.length-y,"--offset":`${yr?_l:zn.current}px`,"--initial-height":R?"auto":`${Un}px`,...O,...d.style},onDragEnd:()=>{Mn(!1),Z(null),Bn.current=null},onPointerDown:H=>{El||!Fn||(tf.current=new Date,Ks(zn.current),H.target.setPointerCapture(H.pointerId),H.target.tagName!=="BUTTON"&&(Mn(!0),Bn.current={x:H.clientX,y:H.clientY}))},onPointerUp:()=>{var H,se,de,_t;if(xr||!Fn)return;Bn.current=null;let St=Number(((H=on.current)==null?void 0:H.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),_r=Number(((se=on.current)==null?void 0:se.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),an=new Date().getTime()-((de=tf.current)==null?void 0:de.getTime()),Et=Y==="x"?St:_r,Sr=Math.abs(Et)/an;if(Math.abs(Et)>=p_||Sr>.11){Ks(zn.current),(_t=d.onDismiss)==null||_t.call(d,d),De(Y==="x"?St>0?"right":"left":_r>0?"down":"up"),br(),fo(!0),ho(!1);return}Mn(!1),Z(null)},onPointerMove:H=>{var se,de,_t,St;if(!Bn.current||!Fn||((se=window.getSelection())==null?void 0:se.toString().length)>0)return;let _r=H.clientY-Bn.current.y,an=H.clientX-Bn.current.x,Et=(de=e.swipeDirections)!=null?de:g_(J);!Y&&(Math.abs(an)>1||Math.abs(_r)>1)&&Z(Math.abs(an)>Math.abs(_r)?"x":"y");let Sr={x:0,y:0};Y==="y"?(Et.includes("top")||Et.includes("bottom"))&&(Et.includes("top")&&_r<0||Et.includes("bottom")&&_r>0)&&(Sr.y=_r):Y==="x"&&(Et.includes("left")||Et.includes("right"))&&(Et.includes("left")&&an<0||Et.includes("right")&&an>0)&&(Sr.x=an),(Math.abs(Sr.x)>0||Math.abs(Sr.y)>0)&&ho(!0),(_t=on.current)==null||_t.style.setProperty("--swipe-amount-x",`${Sr.x}px`),(St=on.current)==null||St.style.setProperty("--swipe-amount-y",`${Sr.y}px`)}},_y&&!d.jsx?A.createElement("button",{"aria-label":K,"data-disabled":El,"data-close-button":!0,onClick:El||!Fn?()=>{}:()=>{var H;br(),(H=d.onDismiss)==null||H.call(d,d)},className:Ct(P==null?void 0:P.closeButton,(s=d==null?void 0:d.classNames)==null?void 0:s.closeButton)},(i=L==null?void 0:L.close)!=null?i:e_):null,d.jsx||b.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:A.createElement(A.Fragment,null,pt||d.icon||d.promise?A.createElement("div",{"data-icon":"",className:Ct(P==null?void 0:P.icon,(o=d==null?void 0:d.classNames)==null?void 0:o.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Cy():null,d.type!=="loading"?d.icon||(L==null?void 0:L[pt])||Kb(pt):null):null,A.createElement("div",{"data-content":"",className:Ct(P==null?void 0:P.content,(a=d==null?void 0:d.classNames)==null?void 0:a.content)},A.createElement("div",{"data-title":"",className:Ct(P==null?void 0:P.title,(l=d==null?void 0:d.classNames)==null?void 0:l.title)},typeof d.title=="function"?d.title():d.title),d.description?A.createElement("div",{"data-description":"",className:Ct(Q,by,P==null?void 0:P.description,(u=d==null?void 0:d.classNames)==null?void 0:u.description)},typeof d.description=="function"?d.description():d.description):null),b.isValidElement(d.cancel)?d.cancel:d.cancel&&Lo(d.cancel)?A.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||j,onClick:H=>{var se,de;Lo(d.cancel)&&Fn&&((de=(se=d.cancel).onClick)==null||de.call(se,H),br())},className:Ct(P==null?void 0:P.cancelButton,(c=d==null?void 0:d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,b.isValidElement(d.action)?d.action:d.action&&Lo(d.action)?A.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||z,onClick:H=>{var se,de;Lo(d.action)&&((de=(se=d.action).onClick)==null||de.call(se,H),!H.defaultPrevented&&br())},className:Ct(P==null?void 0:P.actionButton,(f=d==null?void 0:d.classNames)==null?void 0:f.actionButton)},d.action.label):null))};function Ph(){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 y_(e,t){let r={};return[e,t].forEach((n,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?d_:c_;function l(u){["top","right","bottom","left"].forEach(c=>{r[`${o}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof n=="number"||typeof n=="string"?l(n):typeof n=="object"?["top","right","bottom","left"].forEach(u=>{n[u]===void 0?r[`${o}-${u}`]=a:r[`${o}-${u}`]=typeof n[u]=="number"?`${n[u]}px`:n[u]}):l(a)}),r}var w_=b.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:u,theme:c="light",richColors:f,duration:h,style:d,visibleToasts:w=u_,toastOptions:g,dir:x=Ph(),gap:m=h_,loadingIcon:p,icons:y,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:S}=e,[E,k]=A.useState([]),C=A.useMemo(()=>Array.from(new Set([n].concat(E.filter(F=>F.position).map(F=>F.position)))),[E,n]),[O,j]=A.useState([]),[z,$]=A.useState(!1),[Q,I]=A.useState(!1),[J,U]=A.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
136k":"light"),q=A.useRef(null),R=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=A.useRef(null),L=A.useRef(!1),K=A.useCallback(F=>{k(Y=>{var Z;return(Z=Y.find(_e=>_e.id===F.id))!=null&&Z.delete||Xe.dismiss(F.id),Y.filter(({id:_e})=>_e!==F.id)})},[]);return A.useEffect(()=>Xe.subscribe(F=>{if(F.dismiss){k(Y=>Y.map(Z=>Z.id===F.id?{...Z,delete:!0}:Z));return}setTimeout(()=>{qg.flushSync(()=>{k(Y=>{let Z=Y.findIndex(_e=>_e.id===F.id);return Z!==-1?[...Y.slice(0,Z),{...Y[Z],...F},...Y.slice(Z+1)]:[F,...Y]})})})}),[]),A.useEffect(()=>{if(c!=="system"){U(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?U("dark"):U("light")),typeof window>"u")return;let F=window.matchMedia("(prefers-color-scheme: dark)");try{F.addEventListener("change",({matches:Y})=>{U(Y?"dark":"light")})}catch{F.addListener(({matches:Z})=>{try{U(Z?"dark":"light")}catch(_e){console.error(_e)}})}},[c]),A.useEffect(()=>{E.length<=1&&$(!1)},[E]),A.useEffect(()=>{let F=Y=>{var Z,_e;s.every(De=>Y[De]||Y.code===De)&&($(!0),(Z=q.current)==null||Z.focus()),Y.code==="Escape"&&(document.activeElement===q.current||(_e=q.current)!=null&&_e.contains(document.activeElement))&&$(!1)};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[s]),A.useEffect(()=>{if(q.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,L.current=!1)}},[q.current]),A.createElement("section",{ref:t,"aria-label":`${_} ${R}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},C.map((F,Y)=>{var Z;let[_e,De]=F.split("-");return E.length?A.createElement("ol",{key:F,dir:x==="auto"?Ph():x,tabIndex:-1,ref:q,className:a,"data-sonner-toaster":!0,"data-theme":J,"data-y-position":_e,"data-lifted":z&&E.length>1&&!i,"data-x-position":De,style:{"--front-toast-height":`${((Z=O[0])==null?void 0:Z.height)||0}px`,"--width":`${f_}px`,"--gap":`${m}px`,...d,...y_(l,u)},onBlur:re=>{L.current&&!re.currentTarget.contains(re.relatedTarget)&&(L.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||L.current||(L.current=!0,P.current=re.relatedTarget)},onMouseEnter:()=>$(!0),onMouseMove:()=>$(!0),onMouseLeave:()=>{Q||$(!1)},onDragEnd:()=>$(!1),onPointerDown:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},E.filter(re=>!re.position&&Y===0||re.position===F).map((re,Dn)=>{var yr,sn;return A.createElement(v_,{key:re.id,icons:y,index:Dn,toast:re,defaultRichColors:f,duration:(yr=g==null?void 0:g.duration)!=null?yr:h,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:r,visibleToasts:w,closeButton:(sn=g==null?void 0:g.closeButton)!=null?sn:o,interacting:Q,position:F,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:K,toasts:E.filter(wr=>wr.position==re.position),heights:O.filter(wr=>wr.position==re.position),setHeights:j,expandByDefault:i,gap:m,loadingIcon:p,expanded:z,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const x_=({...e})=>{const{theme:t="system"}=qb();return v.jsx(w_,{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 b_=Uc[" useId ".trim().toString()]||(()=>{}),__=0;function S_(e){const[t,r]=b.useState(b_());return hr(()=>{r(n=>n??String(__++))},[e]),t?`radix-${t}`:""}const E_=["top","right","bottom","left"],Zr=Math.min,at=Math.max,Aa=Math.round,$o=Math.floor,Jt=e=>({x:e,y:e}
vendor: 11,919 bytes, line 136
136),k_={left:"right",right:"left",bottom:"top",top:"bottom"},C_={start:"end",end:"start"};function pc(e,t,r){return at(e,Zr(t,r))}function pr(e,t){return typeof e=="function"?e(t):e}function mr(e){return e.split("-")[0]}function Bs(e){return e.split("-")[1]}function Dd(e){return e==="x"?"y":"x"}function Md(e){return e==="y"?"height":"width"}const T_=new Set(["top","bottom"]);function Kt(e){return T_.has(mr(e))?"y":"x"}function Ud(e){return Dd(Kt(e))}function R_(e,t,r){r===void 0&&(r=!1);const n=Bs(e),s=Ud(e),i=Md(s);let o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=ja(o)),[o,ja(o)]}function P_(e){const t=ja(e);return[mc(e),t,mc(t)]}function mc(e){return e.replace(/start|end/g,t=>C_[t])}const Nh=["left","right"],Oh=["right","left"],N_=["top","bottom"],O_=["bottom","top"];function A_(e,t,r){switch(e){case"top":case"bottom":return r?t?Oh:Nh:t?Nh:Oh;case"left":case"right":return t?N_:O_;default:return[]}}function j_(e,t,r,n){const s=Bs(e);let i=A_(mr(e),r==="start",n);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(mc)))),i}function ja(e){return e.replace(/left|right|bottom|top/g,t=>k_[t])}function I_(e){return{top:0,right:0,bottom:0,left:0,...e}}function $0(e){return typeof e!="number"?I_(e):{top:e,right:e,bottom:e,left:e}}function Ia(e){const{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function Ah(e,t,r){let{reference:n,floating:s}=e;const i=Kt(t),o=Ud(t),a=Md(o),l=mr(t),u=i==="y",c=n.x+n.width/2-s.width/2,f=n.y+n.height/2-s.height/2,h=n[a]/2-s[a]/2;let d;switch(l){case"top":d={x:c,y:n.y-s.height};break;case"bottom":d={x:c,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:f};break;case"left":d={x:n.x-s.width,y:f};break;default:d={x:n.x,y:n.y}}switch(Bs(t)){case"start":d[o]-=h*(r&&u?-1:1);break;case"end":d[o]+=h*(r&&u?-1:1);break}return d}const L_=async(e,t,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:f}=Ah(u,n,l),h=n,d={},w=0;for(let g=0;g<a.length;g++){const{name:x,fn:m}=a[g],{x:p,y,data:_,reset:S}=await m({x:c,y:f,initialPlacement:n,placement:h,strategy:s,middlewareData:d,rects:u,platform:o,elements:{reference:e,floating:t}});c=p??c,f=y??f,d={...d,[x]:{...d[x],..._}},S&&w<=50&&(w++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(u=S.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):S.rects),{x:c,y:f}=Ah(u,h,l)),g=-1)}return{x:c,y:f,placement:h,strategy:s,middlewareData:d}};async function zi(e,t){var r;t===void 0&&(t={});const{x:n,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=pr(t,e),w=$0(d),x=a[h?f==="floating"?"reference":"floating":f],m=Ia(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(x)))==null||r?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),p=f==="floating"?{x:n,y:s,width:o.floating.width,height:o.floating.height}:o.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),_=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},S=Ia(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:p,offsetParent:y,strategy:l}):p);return{top:(m.top-S.top+w.top)/_.y,bottom:(S.bottom-m.bottom+w.bottom)/_.y,left:(m.left-S.left+w.left)/_.x,right:(S.right-m.right+w.right)/_.x}}const $_=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=pr(e,t)||{};if(u==null)return{};const f=$0(c),h={x:r,y:n},d=Ud(s),w=Md(d),g=await o.getDimensions(u),x=d==="y",m=x?"top":"left",p=x?"bottom":"right",y=x?"clientHeight":"clientWidth",_=i.reference[w]+i.reference[d]-h[d]-i.floating[w],S=h[d]-i.reference[d],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let k=E?E[y]:0;(!k||!await(o.isElement==null?void 0:o.isElement(E)))&&(k=a.floating[y]||i.floating[w]);const C=_/2-S/2,O=k/2-g[w]/2-1,j=Zr(f[m],O),z=Zr(f[p],O),$=j,Q=k-g[w]-z,I=k/2-g[w]/2+C,J=pc($,I,Q),U=!l.arrow&&Bs(s)!=null&&I!==J&&i.reference[w]/2-(I<$?j:z)-g[w]/2<0,q=U?I<$?I-$:I-Q:0;return{[d]:h[d]+q,data:{[d]:J,centerOffset:I-J-q,...U&&{alignmentOffset:q}},reset:U}}}),D_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:g=!0,...x}=pr(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const m=mr(s),p=Kt(a),y=mr(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=h||(y||!g?[ja(a)]:P_(a)),E=w!=="none";!h&&E&&S.push(...j_(a,g,w,_));const k=[a,...S],C=await zi(t,x),O=[];let j=((n=i.flip)==null?void 0:n.overflows)||[];if(c&&O.push(C[m]),f){const I=R_(s,o,_);O.push(C[I[0]],C[I[1]])}if(j=[...j,{placement:s,overflows:O}],!O.every(I=>I<=0)){var z,$;const I=(((z=i.flip)==null?void 0:z.index)||0)+1,J=k[I];if(J&&(!(f==="alignment"?p!==Kt(J):!1)||j.every(R=>R.overflows[0]>0&&Kt(R.placement)===p)))return{data:{index:I,overflows:j},reset:{placement:J}};let U=($=j.filter(q=>q.overflows[0]<=0).sort((q,R)=>q.overflows[1]-R.overflows[1])[0])==null?void 0:$.placement;if(!U)switch(d){case"bestFit":{var Q;const q=(Q=j.filter(R=>{if(E){const P=Kt(R.placement);return P===p||P==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(P=>P>0).reduce((P,L)=>P+L,0)]).sort((R,P)=>R[1]-P[1])[0])==null?void 0:Q[0];q&&(U=q);break}case"initialPlacement":U=a;break}if(s!==U)return{reset:{placement:U}}}return{}}}};function jh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ih(e){return E_.some(t=>e[t]>=0)}const M_=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...s}=pr(e,t);switch(n){case"referenceHidden":{const i=await zi(t,{...s,elementContext:"reference"}),o=jh(i,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Ih(o)}}}case"escaped":{const i=await zi(t,{...s,altBoundary:!0}),o=jh(i,r.floating);return{data:{escapedOffsets:o,escaped:Ih(o)}}}default:return{}}}}},D0=new Set(["left","top"]);async function U_(e,t){const{placement:r,platform:n,elements:s}=e,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),o=mr(r),a=Bs(r),l=Kt(r)==="y",u=D0.has(o)?-1:1,c=i&&l?-1:1,f=pr(t,e);let{mainAxis:h,crossAxis:d,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof w=="number"&&(d=a==="end"?w*-1:w),l?{x:d*c,y:h*u}:{x:h*u,y:d*c}}const F_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await U_(t,e);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},z_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:m,y:p}=x;return{x:m,y:p}}},...l}=pr(e,t),u={x:r,y:n},c=await zi(t,l),f=Kt(mr(s)),h=Dd(f);let d=u[h],w=u[f];if(i){const x=h==="y"?"top":"left",m=h==="y"?"bottom":"right",p=d+c[x],y=d-c[m];d=pc(p,d,y)}if(o){const x=f==="y"?"top":"left",m=f==="y"?"bottom":"right",p=w+c[x],y=w-c[m];w=pc(p,w,y)}const g=a.fn({...t,[h]:d,[f]:w});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[h]:i,[f]:o}}}}}},B_=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=pr(e,t),c={x:r,y:n},f=Kt(s),h=Dd(f);let d=c[h],w=c[f];const g=pr(a,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const y=h==="y"?"height":"width",_=i.reference[h]-i.floating[y]+x.mainAxis,S=i.reference[h]+i.reference[y]-x.mainAxis;d<_?d=_:d>S&&(d=S)}if(u){var m,p;const y=h==="y"?"width":"height",_=D0.has(mr(s)),S=i.reference[f]-i.floating[y]+(_&&((m=o.offset)==null?void 0:m[f])||0)+(_?0:x.crossAxis),E=i.reference[f]+i.reference[y]+(_?0:((p=o.offset)==null?void 0:p[f])||0)-(_?x.crossAxis:0);w<S?w=S:w>E&&(w=E)}return{[h]:d,[f]:w}}}},V_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...u}=pr(e,t),c=await zi(t,u),f=mr(s),h=Bs(s),d=Kt(s)==="y",{width:w,height:g}=i.floating;let x,m;f==="top"||f==="bottom"?(x=f,m=h===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(m=f,x=h==="end"?"top":"bottom");const p=g-c.top-c.bottom,y=w-c.left-c.right,_=Zr(g-c[x],p),S=Zr(w-c[m],y),E=!t.middlewareData.shift;let k=_,C=S;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(C=y),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(k=p),E&&!h){const j=at(c.left,0),z=at(c.right,0),$=at(c.top,0),Q=at(c.bottom,0);d?C=w-2*(j!==0||z!==0?j+z:at(c.left,c.right)):k=g-2*($!==0||Q!==0?$+Q:at(c.top,c.bottom))}await l({...t,availableWidth:C,availableHeight:k});const O=await o.getDimensions(a.floating);return w!==O.width||g!==O.height?{reset:{rects:!0}}:{}}}};function ol(){return typeof window<"u"}function Vs(e){return M0(e)?(e.nodeName||"").toLowerCase():"#document"}function ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xt(e){var t;return(t=(M0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function M0(e){return ol()?e instanceof Node||e instanceof ct(e).Node:!1}function Mt(e){return ol()?e instanceof Element||e instanceof ct(e).Element:!1}function Yt(e){return ol()?e instanceof HTMLElement||e instanceof ct(e).HTMLElement:!1}function Lh(e){return!ol()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ct(e).ShadowRoot}const H_=new Set(["inline","contents"]);function lo(e){const{overflow:t,overflowX:r,overflowY:n,display:s}=Ut(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!H_.has(s)}const W_=new Set(["table","td","th"]);function q_(e){return W_.has(Vs(e))}const K_=[":popover-open",":modal"];function al(e){return K_.some(t=>{try{return e.matches(t)}catch{return!1}})}const G_=["transform","translate","scale","rotate","perspective"],Q_=["transform","translate","scale","rotate","perspective","filter"],J_=["paint","layout","strict","content"];function Fd(e){const t=zd(),r=Mt(e)?Ut(e):e;return G_.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)||Q_.some(n=>(r.willChange||"").includes(n))||J_.some(n=>(r.contain||"").includes(n))}function Y_(e){let t=en(e);for(;Yt(t)&&!$s(t);){if(Fd(t))return t;if(al(t))return null;t=en(t)}return null}function zd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const X_=new Set(["html","body","#document"]);function $s(e){return X_.has(Vs(e))}function Ut(e){return ct(e).getComputedStyle(e)}function ll(e){return Mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function en(e){if(Vs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Lh(e)&&e.host||Xt(e);return Lh(t)?t.host:t}function U0(e){const t=en(e);return $s(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yt(t)&&lo(t)?t:U0(t)}function Bi(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=U0(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=ct(s);if(i){const a=gc(o);
vendor: 4,828 bytes, line 136
136return t.concat(o,o.visualViewport||[],lo(s)?s:[],a&&r?Bi(a):[])}return t.concat(s,Bi(s,[],r))}function gc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function F0(e){const t=Ut(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=Yt(e),i=s?e.offsetWidth:r,o=s?e.offsetHeight:n,a=Aa(r)!==i||Aa(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function Bd(e){return Mt(e)?e:e.contextElement}function ws(e){const t=Bd(e);if(!Yt(t))return Jt(1);const r=t.getBoundingClientRect(),{width:n,height:s,$:i}=F0(t);let o=(i?Aa(r.width):r.width)/n,a=(i?Aa(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Z_=Jt(0);function z0(e){const t=ct(e);return!zd()||!t.visualViewport?Z_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function e2(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ct(e)?!1:t}function jn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),i=Bd(e);let o=Jt(1);t&&(n?Mt(n)&&(o=ws(n)):o=ws(e));const a=e2(i,r,n)?z0(i):Jt(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,c=s.width/o.x,f=s.height/o.y;if(i){const h=ct(i),d=n&&Mt(n)?ct(n):n;let w=h,g=gc(w);for(;g&&n&&d!==w;){const x=ws(g),m=g.getBoundingClientRect(),p=Ut(g),y=m.left+(g.clientLeft+parseFloat(p.paddingLeft))*x.x,_=m.top+(g.clientTop+parseFloat(p.paddingTop))*x.y;l*=x.x,u*=x.y,c*=x.x,f*=x.y,l+=y,u+=_,w=ct(g),g=gc(w)}}return Ia({width:c,height:f,x:l,y:u})}function Vd(e,t){const r=ll(e).scrollLeft;return t?t.left+r:jn(Xt(e)).left+r}function B0(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-(r?0:Vd(e,n)),i=n.top+t.scrollTop;return{x:s,y:i}}function t2(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e;const i=s==="fixed",o=Xt(n),a=t?al(t.floating):!1;if(n===o||a&&i)return r;let l={scrollLeft:0,scrollTop:0},u=Jt(1);const c=Jt(0),f=Yt(n);if((f||!f&&!i)&&((Vs(n)!=="body"||lo(o))&&(l=ll(n)),Yt(n))){const d=jn(n);u=ws(n),c.x=d.x+n.clientLeft,c.y=d.y+n.clientTop}const h=o&&!f&&!i?B0(o,l,!0):Jt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:r.y*u.y-l.scrollTop*u.y+c.y+h.y}}function r2(e){return Array.from(e.getClientRects())}function n2(e){const t=Xt(e),r=ll(e),n=e.ownerDocument.body,s=at(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=at(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+Vd(e);const a=-r.scrollTop;return Ut(n).direction==="rtl"&&(o+=at(t.clientWidth,n.clientWidth)-s),{width:s,height:i,x:o,y:a}}function s2(e,t){const r=ct(e),n=Xt(e),s=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=zd();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}const i2=new Set(["absolute","fixed"]);function o2(e,t){const r=jn(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,i=Yt(e)?ws(e):Jt(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,u=n*i.y;return{width:o,height:a,x:l,y:u}}function $h(e,t,r){let n;if(t==="viewport")n=s2(e,r);else if(t==="document")n=n2(Xt(e));else if(Mt(t))n=o2(t,r);else{const s=z0(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Ia(n)}function V0(e,t){const r=en(e);return r===t||!Mt(r)||$s(r)?!1:Ut(r).position==="fixed"||V0(r,t)}function a2(e,t){const r=t.get(e);if(r)return r;let n=Bi(e,[],!1).filter(a=>Mt(a)&&Vs(a)!=="body"),s=null;const i=Ut(e).position==="fixed";let o=i?en(e):e;for(;Mt(o)&&!$s(o);){const a=Ut(o),l=Fd(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&i2.has(s.position)||lo(o)&&!l&&V0(e,o))?n=n.filter(c=>c!==o):s=a,o=en(o)}return t.set(e,n),n}function l2(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e;const o=[...r==="clippingAncestors"?al(t)?[]:a2(t,this._c):[].concat(r),n],a=o[0],l=o.reduce((u,c)=>{const f=$h(t,c,s);return u.top=at(f.top,u.top),u.right=Zr(f.right,u.right),u.bottom=Zr(f.bottom,u.bottom),u.left=at(f.left,u.left),u},$h(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function u2(e){const{width:t,height:r}=F0(e);return{width:t,height:r}}function c2(e,t,r){const n=Yt(t),s=Xt(t),i=r==="fixed",o=jn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Jt(0);function u(){l.x=Vd(s)}if(n||!n&&!i)if((Vs(t)!=="body"||lo(s))&&(a=ll(t)),n){const d=jn(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else s&&u();i&&!n&&s&&u();const c=s&&!n&&!i?B0(s,a):Jt(0),f=o.left+a.scrollLeft-l.x-c.x,h=o.top+a.scrollTop-l.y-c.y;return{x:f,y:h,width:o.width,height:o.height}}function ru(e){return Ut(e).position==="static"}function Dh(e,t){if(!Yt(e)||Ut(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Xt(e)===r&&(r=r.ownerDocument.body),r}function H0(e,t){const r=ct(e);if(al(e))return r;if(!Yt(e)){let s=en(e);for(;s&&!$s(s);
vendor: 8,932 bytes, line 136
136){if(Mt(s)&&!ru(s))return s;s=en(s)}return r}let n=Dh(e,t);for(;n&&q_(n)&&ru(n);)n=Dh(n,t);return n&&$s(n)&&ru(n)&&!Fd(n)?r:n||Y_(e)||r}const d2=async function(e){const t=this.getOffsetParent||H0,r=this.getDimensions,n=await r(e.floating);return{reference:c2(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function f2(e){return Ut(e).direction==="rtl"}const h2={convertOffsetParentRelativeRectToViewportRelativeRect:t2,getDocumentElement:Xt,getClippingRect:l2,getOffsetParent:H0,getElementRects:d2,getClientRects:r2,getDimensions:u2,getScale:ws,isElement:Mt,isRTL:f2};function W0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function p2(e,t){let r=null,n;const s=Xt(e);function i(){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),i();const u=e.getBoundingClientRect(),{left:c,top:f,width:h,height:d}=u;if(a||t(),!h||!d)return;const w=$o(f),g=$o(s.clientWidth-(c+h)),x=$o(s.clientHeight-(f+d)),m=$o(c),y={rootMargin:-w+"px "+-g+"px "+-x+"px "+-m+"px",threshold:at(0,Zr(1,l))||1};let _=!0;function S(E){const k=E[0].intersectionRatio;if(k!==l){if(!_)return o();k?o(!1,k):n=setTimeout(()=>{o(!1,1e-7)},1e3)}k===1&&!W0(u,e.getBoundingClientRect())&&o(),_=!1}try{r=new IntersectionObserver(S,{...y,root:s.ownerDocument})}catch{r=new IntersectionObserver(S,y)}r.observe(e)}return o(!0),i}function m2(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=Bd(e),c=s||i?[...u?Bi(u):[],...Bi(t)]:[];c.forEach(m=>{s&&m.addEventListener("scroll",r,{passive:!0}),i&&m.addEventListener("resize",r)});const f=u&&a?p2(u,r):null;let h=-1,d=null;o&&(d=new ResizeObserver(m=>{let[p]=m;p&&p.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=d)==null||y.observe(t)})),r()}),u&&!l&&d.observe(u),d.observe(t));let w,g=l?jn(e):null;l&&x();function x(){const m=jn(e);g&&!W0(g,m)&&r(),g=m,w=requestAnimationFrame(x)}return r(),()=>{var m;c.forEach(p=>{s&&p.removeEventListener("scroll",r),i&&p.removeEventListener("resize",r)}),f==null||f(),(m=d)==null||m.disconnect(),d=null,l&&cancelAnimationFrame(w)}}const g2=F_,v2=z_,y2=D_,w2=V_,x2=M_,Mh=$_,b2=B_,_2=(e,t,r)=>{const n=new Map,s={platform:h2,...r},i={...s.platform,_c:n};return L_(e,t,{...s,platform:i})};var S2=typeof document<"u",E2=function(){},sa=S2?b.useLayoutEffect:E2;function La(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,s;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(!La(e[n],t[n]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){const i=s[n];if(!(i==="_owner"&&e.$$typeof)&&!La(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function q0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Uh(e,t){const r=q0(e);return Math.round(t*r)/r}function nu(e){const t=b.useRef(e);return sa(()=>{t.current=e}),t}function k2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,f]=b.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,d]=b.useState(n);La(h,n)||d(n);const[w,g]=b.useState(null),[x,m]=b.useState(null),p=b.useCallback(R=>{R!==E.current&&(E.current=R,g(R))},[]),y=b.useCallback(R=>{R!==k.current&&(k.current=R,m(R))},[]),_=i||w,S=o||x,E=b.useRef(null),k=b.useRef(null),C=b.useRef(c),O=l!=null,j=nu(l),z=nu(s),$=nu(u),Q=b.useCallback(()=>{if(!E.current||!k.current)return;const R={placement:t,strategy:r,middleware:h};z.current&&(R.platform=z.current),_2(E.current,k.current,R).then(P=>{const L={...P,isPositioned:$.current!==!1};I.current&&!La(C.current,L)&&(C.current=L,oo.flushSync(()=>{f(L)}))})},[h,t,r,z,$]);sa(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[u]);const I=b.useRef(!1);sa(()=>(I.current=!0,()=>{I.current=!1}),[]),sa(()=>{if(_&&(E.current=_),S&&(k.current=S),_&&S){if(j.current)return j.current(_,S,Q);Q()}},[_,S,Q,j,O]);const J=b.useMemo(()=>({reference:E,floating:k,setReference:p,setFloating:y}),[p,y]),U=b.useMemo(()=>({reference:_,floating:S}),[_,S]),q=b.useMemo(()=>{const R={position:r,left:0,top:0};if(!U.floating)return R;const P=Uh(U.floating,c.x),L=Uh(U.floating,c.y);return a?{...R,transform:"translate("+P+"px, "+L+"px)",...q0(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:P,top:L}},[r,a,U.floating,c.x,c.y]);return b.useMemo(()=>({...c,update:Q,refs:J,elements:U,floatingStyles:q}),[c,Q,J,U,q])}const C2=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:s}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Mh({element:n.current,padding:s}).fn(r):{}:n?Mh({element:n,padding:s}).fn(r):{}}}},T2=(e,t)=>({...g2(e),options:[e,t]}),R2=(e,t)=>({...v2(e),options:[e,t]}),P2=(e,t)=>({...b2(e),options:[e,t]}),N2=(e,t)=>({...y2(e),options:[e,t]}),O2=(e,t)=>({...w2(e),options:[e,t]}),A2=(e,t)=>({...x2(e),options:[e,t]}),j2=(e,t)=>({...C2(e),options:[e,t]});var I2="Arrow",K0=b.forwardRef((e,t)=>{const{children:r,width:n=10,height:s=5,...i}=e;return v.jsx(be.svg,{...i,ref:t,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});K0.displayName=I2;var L2=K0;function G0(e){const[t,r]=b.useState(void 0);return hr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,a=u.blockSize}else o=e.offsetWidth,a=e.offsetHeight;r({width:o,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Q0="Popper",[J0,Y0]=$n(Q0),[gR,X0]=J0(Q0),Z0="PopperAnchor",ev=b.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...s}=e,i=X0(Z0,r),o=b.useRef(null),a=Ge(t,o);return b.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:v.jsx(be.div,{...s,ref:a})});ev.displayName=Z0;var Hd="PopperContent",[$2,D2]=J0(Hd),tv=b.forwardRef((e,t)=>{var re,Dn,yr,sn,wr,Mn;const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:w,...g}=e,x=X0(Hd,r),[m,p]=b.useState(null),y=Ge(t,xr=>p(xr)),[_,S]=b.useState(null),E=G0(_),k=(E==null?void 0:E.width)??0,C=(E==null?void 0:E.height)??0,O=n+(i!=="center"?"-"+i:""),j=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},z=Array.isArray(u)?u:[u],$=z.length>0,Q={padding:j,boundary:z.filter(U2),altBoundary:$},{refs:I,floatingStyles:J,placement:U,isPositioned:q,middlewareData:R}=k2({strategy:"fixed",placement:O,whileElementsMounted:(...xr)=>m2(...xr,{animationFrame:d==="always"}),elements:{reference:x.anchor},middleware:[T2({mainAxis:s+C,alignmentAxis:o}),l&&R2({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?P2():void 0,...Q}),l&&N2({...Q}),O2({...Q,apply:({elements:xr,rects:fo,availableWidth:bl,availableHeight:ho})=>{const{width:_l,height:Ks}=fo.reference,Un=xr.floating.style;Un.setProperty("--radix-popper-available-width",`${bl}px`),Un.setProperty("--radix-popper-available-height",`${ho}px`),Un.setProperty("--radix-popper-anchor-width",`${_l}px`),Un.setProperty("--radix-popper-anchor-height",`${Ks}px`)}}),_&&j2({element:_,padding:a}),F2({arrowWidth:k,arrowHeight:C}),h&&A2({strategy:"referenceHidden",...Q})]}),[P,L]=sv(U),K=fr(w);hr(()=>{q&&(K==null||K())},[q,K]);const F=(re=R.arrow)==null?void 0:re.x,Y=(Dn=R.arrow)==null?void 0:Dn.y,Z=((yr=R.arrow)==null?void 0:yr.centerOffset)!==0,[_e,De]=b.useState();return hr(()=>{m&&De(window.getComputedStyle(m).zIndex)},[m]),v.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:q?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_e,"--radix-popper-transform-origin":[(sn=R.transformOrigin)==null?void 0:sn.x,(wr=R.transformOrigin)==null?void 0:wr.y].join(" "),...((Mn=R.hide)==null?void 0:Mn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx($2,{scope:r,placedSide:P,onArrowChange:S,arrowX:F,arrowY:Y,shouldHideArrow:Z,children:v.jsx(be.div,{"data-side":P,"data-align":L,...g,ref:y,style:{...g.style,animation:q?void 0:"none"}})})})});tv.displayName=Hd;var rv="PopperArrow",M2={top:"bottom",right:"left",bottom:"top",left:"r
136ight"},nv=b.forwardRef(function(t,r){const{__scopePopper:n,...s}=t,i=D2(rv,n),o=M2[i.placedSide];return v.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:v.jsx(L2,{...s,ref:r,style:{...s.style,display:"block"}})})});nv.displayName=rv;function U2(e){return e!==null}var F2=e=>({name:"transformOrigin",options:e,fn(t){var x,m,p;const{placement:r,rects:n,middlewareData:s}=t,o=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[u,c]=sv(r),f={start:"0%",center:"50%",end:"100%"}[c],h=(((m=s.arrow)==null?void 0:m.x)??0)+a/2,d=(((p=s.arrow)==null?void 0:p.y)??0)+l/2;let w="",g="";return u==="bottom"?(w=o?f:`${h}px`,g=`${-l}px`):u==="top"?(w=o?f:`${h}px`,g=`${n.floating.height+l}px`):u==="right"?(w=`${-l}px`,g=o?f:`${d}px`):u==="left"&&(w=`${n.floating.width+l}px`,g=o?f:`${d}px`),{data:{x:w,y:g}}}});function sv(e){const[t,r="center"]=e.split("-");return[t,r]}var z2=ev,B2=tv,V2=nv,[ul,vR]=$n("Tooltip",[Y0]),Wd=Y0(),iv="TooltipProvider",H2=700,Fh="tooltip.open",[W2,ov]=ul(iv),av=e=>{const{__scopeTooltip:t,delayDuration:r=H2,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:i}=e,o=b.useRef(!0),a=b.useRef(!1),l=b.useRef(0);return b.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),v.jsx(W2,{scope:t,isOpenDelayedRef:o,delayDuration:r,onOpen:b.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:b.useCallback(u=>{a.current=u},[]),disableHoverableContent:s,children:i})};av.displayName=iv;var lv="Tooltip",[yR,cl]=ul(lv),vc="TooltipTrigger",q2=b.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=cl(vc,r),i=ov(vc,r),o=Wd(r),a=b.useRef(null),l=Ge(t,a,s.onTriggerChange),u=b.useRef(!1),c=b.useRef(!1),f=b.useCallback(()=>u.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),v.jsx(z2,{asChild:!0,...o,children:v.jsx(be.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:l,onPointerMove:ie(e.onPointerMove,h=>{h.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),c.current=!0)}),onPointerLeave:ie(e.onPointerLeave,()=>{s.onTriggerLeave(),c.current=!1}),onPointerDown:ie(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ie(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:ie(e.onBlur,s.onClose),onClick:ie(e.onClick,s.onClose)})})});q2.displayName=vc;var K2="TooltipPortal",[wR,G2]=ul(K2,{forceMount:void 0}),Ds="TooltipContent",uv=b.forwardRef((e,t)=>{const r=G2(Ds,e.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...i}=e,o=cl(Ds,e.__scopeTooltip);return v.jsx(nl,{present:n||o.open,children:o.disableHoverableContent?v.jsx(cv,{side:s,...i,ref:t}):v.jsx(Q2,{side:s,...i,ref:t})})}),Q2=b.forwardRef((e,t)=>{const r=cl(Ds,e.__scopeTooltip),n=ov(Ds,e.__scopeTooltip),s=b.useRef(null),i=Ge(t,s),[o,a]=b.useState(null),{trigger:l,onClose:u}=r,c=s.current,{onPointerInTransitChange:f}=n,h=b.useCallback(()=>{a(null),f(!1)},[f]),d=b.useCallback((w,g)=>{const x=w.currentTarget,m={x:w.clientX,y:w.clientY},p=eS(m,x.getBoundingClientRect()),y=tS(m,p),_=rS(g.getBoundingClientRect()),S=sS([...y,..._]);a(S),f(!0)},[f]);return b.useEffect(()=>()=>h(),[h]),b.useEffect(()=>{if(l&&c){const w=x=>d(x,c),g=x=>d(x,l);return l.addEventListener("pointerleave",w),c.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",w),c.removeEventListener("pointerleave",g)}}},[l,c,d,h]),b.useEffect(()=>{if(o){const w=g=>{const x=g.target,m={x:g.clientX,y:g.clientY},p=(l==null?void 0:l.contains(x))||(c==null?void 0:c.contains(x)),y=!nS(m,o);p?h():y&&(h(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,c,o,u,h]),v.jsx(cv,{...e,ref:i})}),[J2,Y2]=ul(lv,{isInside:!1}),X2=ax("TooltipContent"),cv=b.forwardRef((e,t)=>
136{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=e,l=cl(Ds,r),u=Wd(r),{onClose:c}=l;return b.useEffect(()=>(document.addEventListener(Fh,c),()=>document.removeEventListener(Fh,c)),[c]),b.useEffect(()=>{if(l.trigger){const f=h=>{const d=h.target;d!=null&&d.contains(l.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,c]),v.jsx(Nd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:v.jsxs(B2,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[v.jsx(X2,{children:n}),v.jsx(J2,{scope:r,isInside:!0,children:v.jsx(Nx,{id:l.contentId,role:"tooltip",children:s||n})})]})})});uv.displayName=Ds;var dv="TooltipArrow",Z2=b.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=Wd(r);return Y2(dv,r).isInside?null:v.jsx(V2,{...s,...n,ref:t})});Z2.displayName=dv;function eS(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,s,i)){case i:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function tS(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 rS(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function nS(e,t){const{x:r,y:n}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const a=t[i],l=t[o],u=a.x,c=a.y,f=l.x,h=l.y;c>n!=h>n&&r<(f-u)*(n-c)/(h-c)+u&&(s=!s)}return s}function sS(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),iS(t)}function iS(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const s=e[n];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))r.pop();else break}r.push(s)}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 oS=av,fv=uv;const aS=oS,lS=b.forwardRef(({className:e,sideOffset:t=4,...r},n)=>v.jsx(fv,{ref:n,sideOffset:t,className:Oe("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}));lS.displayName=fv.displayName;var dl=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(){}},fl=typeof window>"u"||"Deno"in globalThis;function Pt(){}function uS(e,t){return typeof e=="function"?e(t):e}function cS(e){return typeof e=="number"&&e>=0&&e!==1/0}function dS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function yc(e,t){return typeof e=="function"?e(t):e}function fS(e,t){return typeof e=="function"?e(t):e}function zh(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(n){if(t.queryHash!==qd(o,t.options))return!1}else if(!Hi(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||s&&s!==t.state.fetchStatus||i&&!i(t))}function Bh(e,t){const{exact:r,status:n,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(Vi(t.options.mutationKey)!==Vi(i))return!1}else if(!Hi(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function qd(e,t){return((t==null?void 0:t.queryKeyHashFn)||Vi)(e)}function Vi(e){return JSON.stringify(e,(t,r)=>wc(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function Hi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Hi(e[r],t[r])):!1}function hv(e,t){if(e===t)return e;const r=Vh(e)&&Vh(t);if(r||wc(e)&&wc(t)){const n=r?e:Object.keys(e),s=n.length,i=r?t:Object.keys(t),o=i.length,a=r?[]:{},l=new Set(n);let u=0;for(let c=0;c<o;c++){const f=r?c:i[c];(!r&&l.has(f)||r)&&e[f]===void 0&&t[f]===void 0?(a[f]=void 0,u++):(a[f]=hv(e[f],t[f]),a[f]===e[f]&&e[f]!==void 0&&u++)}return s===o&&u===s?e:a}return t}function Vh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function wc(e){if(!Hh(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Hh(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Hh(e){return Object.prototype.toString.call(e)==="[object Object]"}function hS(e){return new Promise(t=>{setTimeout(t,e)})}function pS(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?hv(e,t):t}function mS(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function gS(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Kd=Symbol();function pv(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Kd?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var wn,Lr,bs,kp,vS=(kp=class extends dl{constructor(){super();te(this,wn);te(this,Lr);te(this,bs);W(this,bs,t=>{if(!fl&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){T(this,Lr)||this.setEventListener(T(this,bs))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Lr))==null||t.call(this),W(this,Lr,void 0))}setEventListener(t){var r;W(this,bs,t),(r=T(this,Lr))==null||r.call(this),W(this,Lr,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){T(this,wn)!==t&&(W(this,wn,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 20,025 bytes, line 136
136this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof T(this,wn)=="boolean"?T(this,wn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},wn=new WeakMap,Lr=new WeakMap,bs=new WeakMap,kp),mv=new vS,_s,$r,Ss,Cp,yS=(Cp=class extends dl{constructor(){super();te(this,_s,!0);te(this,$r);te(this,Ss);W(this,Ss,t=>{if(!fl&&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(){T(this,$r)||this.setEventListener(T(this,Ss))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,$r))==null||t.call(this),W(this,$r,void 0))}setEventListener(t){var r;W(this,Ss,t),(r=T(this,$r))==null||r.call(this),W(this,$r,t(this.setOnline.bind(this)))}setOnline(t){T(this,_s)!==t&&(W(this,_s,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return T(this,_s)}},_s=new WeakMap,$r=new WeakMap,Ss=new WeakMap,Cp),$a=new yS;function wS(){let e,t;const r=new Promise((s,i)=>{e=s,t=i});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}function xS(e){return Math.min(1e3*2**e,3e4)}function gv(e){return(e??"online")==="online"?$a.isOnline():!0}var vv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function su(e){return e instanceof vv}function yv(e){let t=!1,r=0,n=!1,s;const i=wS(),o=g=>{var x;n||(h(new vv(g)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>mv.isFocused()&&(e.networkMode==="always"||$a.isOnline())&&e.canRun(),c=()=>gv(e.networkMode)&&e.canRun(),f=g=>{var x;n||(n=!0,(x=e.onSuccess)==null||x.call(e,g),s==null||s(),i.resolve(g))},h=g=>{var x;n||(n=!0,(x=e.onError)==null||x.call(e,g),s==null||s(),i.reject(g))},d=()=>new Promise(g=>{var x;s=m=>{(n||u())&&g(m)},(x=e.onPause)==null||x.call(e)}).then(()=>{var g;s=void 0,n||(g=e.onContinue)==null||g.call(e)}),w=()=>{if(n)return;let g;const x=r===0?e.initialPromise:void 0;try{g=x??e.fn()}catch(m){g=Promise.reject(m)}Promise.resolve(g).then(f).catch(m=>{var E;if(n)return;const p=e.retry??(fl?0:3),y=e.retryDelay??xS,_=typeof y=="function"?y(r,m):y,S=p===!0||typeof p=="number"&&r<p||typeof p=="function"&&p(r,m);if(t||!S){h(m);return}r++,(E=e.onFail)==null||E.call(e,r,m),hS(_).then(()=>u()?void 0:d()).then(()=>{t?h(m):w()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?w():d().then(w),i)}}var bS=e=>setTimeout(e,0);function _S(){let e=[],t=0,r=a=>{a()},n=a=>{a()},s=bS;const i=a=>{t?e.push(a):s(()=>{r(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{n(()=>{a.forEach(l=>{r(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{s=a}}}var qe=_S(),xn,Tp,wv=(Tp=class{constructor(){te(this,xn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),cS(this.gcTime)&&W(this,xn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(fl?1/0:5*60*1e3))}clearGcTimeout(){T(this,xn)&&(clearTimeout(T(this,xn)),W(this,xn,void 0))}},xn=new WeakMap,Tp),Es,bn,mt,_n,ze,Zi,Sn,Nt,er,Rp,SS=(Rp=class extends wv{constructor(t){super();te(this,Nt);te(this,Es);te(this,bn);te(this,mt);te(this,_n);te(this,ze);te(this,Zi);te(this,Sn);W(this,Sn,!1),W(this,Zi,t.defaultOptions),this.setOptions(t.options),this.observers=[],W(this,_n,t.client),W(this,mt,T(this,_n).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,W(this,Es,kS(this.options)),this.state=t.state??T(this,Es),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,ze))==null?void 0:t.promise}setOptions(t){this.options={...T(this,Zi),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,mt).remove(this)}setData(t,r){const n=pS(this.state.data,t,this.options);return Me(this,Nt,er).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){Me(this,Nt,er).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,s;const r=(n=T(this,ze))==null?void 0:n.promise;return(s=T(this,ze))==null||s.cancel(t),r?r.then(Pt).catch(Pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Es))}isActive(){return this.observers.some(t=>fS(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Kd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>yc(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:!dS(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=T(this,ze))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=T(this,ze))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,mt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(T(this,ze)&&(T(this,Sn)?T(this,ze).cancel({revert:!0}):T(this,ze).cancelRetry()),this.scheduleGc()),T(this,mt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Me(this,Nt,er).call(this,{type:"invalidate"})}fetch(t,r){var u,c,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(T(this,ze))return T(this,ze).continueRetry(),T(this,ze).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(d=>d.options.queryFn);h&&this.setOptions(h.options)}const n=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(W(this,Sn,!0),n.signal)})},i=()=>{const h=pv(this.options,r),w=(()=>{const g={client:T(this,_n),queryKey:this.queryKey,meta:this.meta};return s(g),g})();return W(this,Sn,!1),this.options.persister?this.options.persister(h,w,this):h(w)},a=(()=>{const h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:T(this,_n),state:this.state,fetchFn:i};return s(h),h})();(u=this.options.behavior)==null||u.onFetch(a,this),W(this,bn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&Me(this,Nt,er).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const l=h=>{var d,w,g,x;su(h)&&h.silent||Me(this,Nt,er).call(this,{type:"error",error:h}),su(h)||((w=(d=T(this,mt).config).onError)==null||w.call(d,h,this),(x=(g=T(this,mt).config).onSettled)==null||x.call(g,this.state.data,h,this)),this.scheduleGc()};return W(this,ze,yv({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:h=>{var d,w,g,x;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(m){l(m);return}(w=(d=T(this,mt).config).onSuccess)==null||w.call(d,h,this),(x=(g=T(this,mt).config).onSettled)==null||x.call(g,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,d)=>{Me(this,Nt,er).call(this,{type:"failed",failureCount:h,error:d})},onPause:()=>{Me(this,Nt,er).call(this,{type:"pause"})},onContinue:()=>{Me(this,Nt,er).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),T(this,ze).start()}},Es=new WeakMap,bn=new WeakMap,mt=new WeakMap,_n=new WeakMap,ze=new WeakMap,Zi=new WeakMap,Sn=new WeakMap,Nt=new WeakSet,er=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,...ES(n.data,this.options),fetchMeta:t.meta??null};case"success":return W(this,bn,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 s=t.error;return su(s)&&s.revert&&T(this,bn)?{...T(this,bn),fetchStatus:"idle"}:{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),qe.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),T(this,mt).notify({query:this,type:"updated",action:t})})},Rp);function ES(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:gv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function kS(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 Vt,Pp,CS=(Pp=class extends dl{constructor(t={}){super();te(this,Vt);this.config=t,W(this,Vt,new Map)}build(t,r,n){const s=r.queryKey,i=r.queryHash??qd(s,r);let o=this.get(i);return o||(o=new SS({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){T(this,Vt).has(t.queryHash)||(T(this,Vt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=T(this,Vt).get(t.queryHash);r&&(t.destroy(),r===t&&T(this,Vt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){qe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,Vt).get(t)}getAll(){return[...T(this,Vt).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>zh(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>zh(t,n)):r}notify(t){qe.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){qe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){qe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Vt=new WeakMap,Pp),Ht,He,En,Wt,Tr,Np,TS=(Np=class extends wv{constructor(t){super();te(this,Wt);te(this,Ht);te(this,He);te(this,En);this.mutationId=t.mutationId,W(this,He,t.mutationCache),W(this,Ht,[]),this.state=t.state||RS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,Ht).includes(t)||(T(this,Ht).push(t),this.clearGcTimeout(),T(this,He).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){W(this,Ht,T(this,Ht).filter(r=>r!==t)),this.scheduleGc(),T(this,He).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,Ht).length||(this.state.status==="pending"?this.scheduleGc():T(this,He).remove(this))}continue(){var t;return((t=T(this,En))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,l,u,c,f,h,d,w,g,x,m,p,y,_,S,E,k,C;const r=()=>{Me(this,Wt,Tr).call(this,{type:"continue"})};W(this,En,yv({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,j)=>{Me(this,Wt,Tr).call(this,{type:"failed",failureCount:O,error:j})},onPause:()=>{Me(this,Wt,Tr).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,He).canRun(this)}));const n=this.state.status==="pending",s=!T(this,En).canStart();try{if(n)r();else{Me(this,Wt,Tr).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=T(this,He).config).onMutate)==null?void 0:o.call(i,t,this));const j=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));j!==this.state.context&&Me(this,Wt,Tr).call(this,{type:"pending",context:j,variables:t,isPaused:s})}const O=await T(this,En).start();return await((c=(u=T(this,He).config).onSuccess)==null?void 0:c.call(u,O,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,O,t,this.state.context)),await((w=(d=T(this,He).config).onSettled)==null?void 0:w.call(d,O,null,this.state.variables,this.state.context,this)),await((x=(g=this.options).onSettled)==null?void 0:x.call(g,O,null,t,this.state.context)),Me(this,Wt,Tr).call(this,{type:"success",data:O}),O}catch(O){try{throw await((p=(m=T(this,He).config).onError)==null?void 0:p.call(m,O,t,this.state.context,this)),await((_=(y=this.options).onError)==null?void 0:_.call(y,O,t,this.state.context)),await((E=(S=T(this,He).config).onSettled)==null?void 0:E.call(S,void 0,O,this.state.variables,this.state.context,this)),await((C=(k=this.options).onSettled)==null?void 0:C.call(k,void 0,O,t,this.state.context)),O}finally{Me(this,Wt,Tr).call(this,{type:"error",error:O})}}finally{T(this,He).runNext(this)}}},Ht=new WeakMap,He=new WeakMap,En=new WeakMap,Wt=new WeakSet,Tr=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),qe.batch(()=>{T(this,Ht).forEach(n=>{n.onMutationUpdate(t)}),T(this,He).notify({mutation:this,type:"updated",action:t})})},Np);function RS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var sr,Ot,eo,Op,PS=(Op=class extends dl{constructor(t={}){super();te(this,sr);te(this,Ot);te(this,eo);this.config=t,W(this,sr,new Set),W(this,Ot,new Map),W(this,eo,0)}build(t,r,n){const s=new TS({mutationCache:this,mutationId:++mo(this,eo)._,options:t.defaultMutationOptions(r),state:n});return this.add(s),s}add(t){T(this,sr).add(t);const r=Do(t);if(typeof r=="string"){const n=T(this,Ot).get(r);n?n.push(t):T(this,Ot).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,sr).delete(t)){const r=Do(t);if(typeof r=="string"){const n=T(this,Ot).get(r);if(n)if(n.length>1){const s=n.indexOf(t);s!==-1&&n.splice(s,1)}else n[0]===t&&T(this,Ot).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Do(t);if(typeof r=="string"){const n=T(this,Ot).get(r),s=n==null?void 0:n.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var n;const r=Do(t);if(typeof r=="string"){const s=(n=T(this,Ot).get(r))==null?void 0:n.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){qe.batch(()=>{T(this,sr).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,sr).clear(),T(this,Ot).clear()})}getAll(){return Array.from(T(this,sr))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Bh(r,n))}findAll(t={}){return this.getAll().filter(r=>Bh(t,r))}notify(t){qe.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return qe.batch(()=>Promise.all(t.map(r=>r.continue().catch(Pt))))}},sr=new WeakMap,Ot=new WeakMap,eo=new WeakMap,Op);function Do(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Wh(e){return{onFetch:(t,r)=>{var c,f,h,d,w;const n=t.options,s=(h=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,i=((d=t.state.data)==null?void 0:d.pages)||[],o=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const x=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},m=pv(t.options,t.fetchOptions),p=async(y,_,S)=>{if(g)return Promise.reject();if(_==null&&y.pages.length)return Promise.resolve(y);const k=(()=>{const z={client:t.client,queryKey:t.queryKey,pageParam:_,direction:S?"backward":"forward",meta:t.options.meta};return x(z),z})(),C=await m(k),{maxPages:O}=t.options,j=S?gS:mS;return{pages:j(y.pages,C,O),pageParams:j(y.pageParams,_,O)}};if(s&&i.length){const y=s==="backward",_=y?NS:qh,S={pages:i,pageParams:o},E=_(n,S);a=await p(S,E,y)}else{const y=e??i.length;do{const _=l===0?o[0]??n.initialPageParam:qh(n,a);if(l>0&&_==null)break;a=await p(a,_),l++}while(l<y)}return a};t.options.persister?t.fetchFn=()=>{var g,x;return(x=(g=t.options).persister)==null?void 0:x.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function qh(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 NS(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 ve,Dr,Mr,ks,Cs,Ur,Ts,Rs,Ap,OS=(Ap=class{constructor(e={}){te(this,ve);te(this,Dr);te(this,Mr);te(this,ks);te(this,Cs);te(this,Ur);te(this,Ts);te(this,Rs);W(this,ve,e.queryCache||new CS),W(this,Dr,e.mutationCache||new PS),W(this,Mr,e.defaultOptions||{}),W(this,ks,new Map),W(this,Cs,new Map),W(this,Ur,0)}mount(){mo(this,Ur)._++,T(this,Ur)===1&&(W(this,Ts,mv.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,ve).onFocus())})),W(this,Rs,$a.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,ve).onOnline())})))}unmount(){var e,t;mo(this,Ur)._--,T(this,Ur)===0&&((e=T(this,Ts))==null||e.call(this),W(this,Ts,void 0),(t=T(this,Rs))==null||t.call(this),W(this,Rs,void 0))}isFetching(e){return T(this,ve).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,Dr).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=T(this,ve).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=T(this,ve).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(yc(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return T(this,ve).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),s=T(this,ve).get(n.queryHash),i=s==null?void 0:s.state.data,o=uS(t,i);if(o!==void 0)return T(this,ve).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return qe.batch(()=>T(this,ve).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=T(this,ve).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=T(this,ve);qe.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=T(this,ve);return qe.batch(()=>(r.findAll(e).forEach(n=>
136{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=qe.batch(()=>T(this,ve).findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(Pt).catch(Pt)}invalidateQueries(e,t={}){return qe.batch(()=>(T(this,ve).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=qe.batch(()=>T(this,ve).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,r);return r.throwOnError||(i=i.catch(Pt)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(Pt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=T(this,ve).build(this,t);return r.isStaleByTime(yc(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pt).catch(Pt)}fetchInfiniteQuery(e){return e.behavior=Wh(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pt).catch(Pt)}ensureInfiniteQueryData(e){return e.behavior=Wh(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return $a.isOnline()?T(this,Dr).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,ve)}getMutationCache(){return T(this,Dr)}getDefaultOptions(){return T(this,Mr)}setDefaultOptions(e){W(this,Mr,e)}setQueryDefaults(e,t){T(this,ks).set(Vi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,ks).values()],r={};return t.forEach(n=>{Hi(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){T(this,Cs).set(Vi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,Cs).values()],r={};return t.forEach(n=>{Hi(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,Mr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=qd(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===Kd&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,Mr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,ve).clear(),T(this,Dr).clear()}},ve=new WeakMap,Dr=new WeakMap,Mr=new WeakMap,ks=new WeakMap,Cs=new WeakMap,Ur=new WeakMap,Ts=new WeakMap,Rs=new WeakMap,Ap),AS=b.createContext(void 0),jS=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(AS.Provider,{value:e,children:t}));/**
137 * @remix-run/router v1.23.0
138 *
139 * Copyright (c) Remix Software Inc.
140 *
141 * This source code is licensed under the MIT license found in the
142 * LICENSE.md file in the root directory of this source tree.
143 *
144 * @license MIT
145 */function Wi(){return Wi=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},Wi.apply(this,arguments)}var Br;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Br||(Br={}));const Kh="popstate";function IS(e){e===void 0&&(e={});function t(n,s){let{pathname:i,search:o,hash:a}=n.location;return xc("",{pathname:i,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(n,s){return typeof s=="string"?s:bv(s)}return $S(t,r,null,e)}function Re(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function LS(){return Math.random().toString(36).substr(2,8)}function Gh(e,t){return{usr:e.state,key:e.key,idx:t}}function xc(e,t,r,n){return r===void 0&&(r=null),Wi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Hs(t):t,{state:r,key:t&&t.key||n||LS()})}function bv(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 Hs(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 $S(e,t,r,n){n===void 0&&(n={});let{window:s=document.defaultView,v5Compat:i=!1}=n,o=s.history,a=Br.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(Wi({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){a=Br.Pop;let x=c(),m=x==null?null:x-u;u=x,l&&l({action:a,location:g.location,delta:m})}function h(x,m){a=Br.Push;let p=xc(g.location,x,m);u=c()+1;let y=Gh(p,u),_=g.createHref(p);try{o.pushState(y,"",_)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(_)}i&&l&&l({action:a,location:g.location,delta:1})}function d(x,m){a=Br.Replace;let p=xc(g.location,x,m);u=c();let y=Gh(p,u),_=g.createHref(p);o.replaceState(y,"",_),i&&l&&l({action:a,location:g.location,delta:0})}function w(x){let m=s.location.origin!=="null"?s.location.origin:s.location.href,p=typeof x=="str
145ing"?x:bv(x);return p=p.replace(/ $/,"%20"),Re(m,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,m)}let g={get action(){return a},get location(){return e(s,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(Kh,f),l=x,()=>{s.removeEventListener(Kh,f),l=null}},createHref(x){return t(s,x)},createURL:w,encodeLocation(x){let m=w(x);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:d,go(x){return o.go(x)}};return g}var Qh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Qh||(Qh={}));function DS(e,t,r){return r===void 0&&(r="/"),MS(e,t,r,!1)}function MS(e,t,r,n){let s=typeof t=="string"?Hs(t):t,i=Ev(s.pathname||"/",r);if(i==null)return null;let o=_v(e);US(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=JS(i);a=GS(o[l],u,n)}return a}function _v(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let s=(i,o,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(Re(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 u=Tn([n,l.relativePath]),c=r.concat(l);i.children&&i.children.length>0&&(Re(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),_v(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:qS(u,i.index),routesMeta:c})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let l of Sv(i.path))s(i,o,l)}),t}function Sv(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,s=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return s?[i,""]:[i];let o=Sv(n.join("/")),a=[];return a.push(...o.map(l=>l===""?i:[i,l].join("/"))),s&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function US(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:KS(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const FS=/^:[\w-]+$/,zS=3,BS=2,VS=1,HS=10,WS=-2,Jh=e=>e==="*";function qS(e,t){let r=e.split("/"),n=r.length;return r.some(Jh)&&(n+=WS),t&&(n+=BS),r.filter(s=>!Jh(s)).reduce((s,i)=>s+(FS.test(i)?zS:i===""?VS:HS),n)}function KS(e,t){return e.length===t.length&&e.slice(0,-1).every((n,s)=>n===t[s])?e[e.length-1]-t[t.length-1]:0}function GS(e,t,r){let{routesMeta:n}=e,s={},i="/",o=[];for(let a=0;a<n.length;++a){let l=n[a],u=a===n.length-1,c=i==="/"?t:t.slice(i.length)||"/",f=Yh({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),h=l.route;if(!f&&u&&r&&!n[n.length-1].route.index&&(f=Yh({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!f)return null;
vendor: 14,966 bytes, lines 145-163
145Object.assign(s,f.params),o.push({params:s,pathname:Tn([i,f.pathname]),pathnameBase:rE(Tn([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=Tn([i,f.pathnameBase]))}return o}function Yh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=QS(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:n.reduce((u,c,f)=>{let{paramName:h,isOptional:d}=c;if(h==="*"){let g=a[f]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const w=a[f];return d&&!w?u[h]=void 0:u[h]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function QS(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),xv(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=[],s="^"+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:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}function JS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xv(!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 Ev(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 YS(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:s=""}=typeof e=="string"?Hs(e):e;return{pathname:r?r.startsWith("/")?r:XS(r,t):t,search:nE(n),hash:sE(s)}}function XS(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function iu(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 ZS(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function eE(e,t){let r=ZS(e);return t?r.map((n,s)=>s===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function tE(e,t,r,n){n===void 0&&(n=!1);let s;typeof e=="string"?s=Hs(e):(s=Wi({},e),Re(!s.pathname||!s.pathname.includes("?"),iu("?","pathname","search",s)),Re(!s.pathname||!s.pathname.includes("#"),iu("#","pathname","hash",s)),Re(!s.search||!s.search.includes("#"),iu("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.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;s.pathname=h.join("/")}a=f>=0?t[f]:"/"}let l=YS(s,a),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Tn=e=>e.join("/").replace(/\/\/+/g,"/"),rE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),nE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function iE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const kv=["post","put","patch","delete"];new Set(kv);const oE=["get",...kv];new Set(oE);/**
146 * React Router v6.30.1
147 *
148 * Copyright (c) Remix Software Inc.
149 *
150 * This source code is licensed under the MIT license found in the
151 * LICENSE.md file in the root directory of this source tree.
152 *
153 * @license MIT
154 */function qi(){return qi=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},qi.apply(this,arguments)}const Gd=b.createContext(null),aE=b.createContext(null),hl=b.createContext(null),pl=b.createContext(null),Ws=b.createContext({outlet:null,matches:[],isDataRoute:!1}),Cv=b.createContext(null);function ml(){return b.useContext(pl)!=null}function Qd(){return ml()||Re(!1),b.useContext(pl).location}function Tv(e){b.useContext(hl).static||b.useLayoutEffect(e)}function lE(){let{isDataRoute:e}=b.useContext(Ws);return e?bE():uE()}function uE(){ml()||Re(!1);let e=b.useContext(Gd),{basename:t,future:r,navigator:n}=b.useContext(hl),{matches:s}=b.useContext(Ws),{pathname:i}=Qd(),o=JSON.stringify(eE(s,r.v7_relativeSplatPath)),a=b.useRef(!1);return Tv(()=>{a.current=!0}),b.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){n.go(u);return}let f=tE(u,JSON.parse(o),i,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Tn([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,o,i,e])}function cE(e,t){return dE(e,t)}function dE(e,t,r,n){ml()||Re(!1);let{navigator:s}=b.useContext(hl),{matches:i}=b.useContext(Ws),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=Qd(),c;if(t){var f;let x=typeof t=="string"?Hs(t):t;l==="/"||(f=x.pathname)!=null&&f.startsWith(l)||Re(!1),c=x}else c=u;let h=c.pathname||"/",d=h;if(l!=="/"){let x=l.replace(/^\//,"").split("/");d="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let w=DS(e,{pathname:d}),g=gE(w&&w.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Tn([l,s.encodeLocation?s.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Tn([l,s.encodeLocation?s.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,r,n);return t&&g?b.createElement(pl.Provider,{value:{location:qi({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Br.Pop}},g):g}function fE(){let e=xE(),t=iE(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),r?b.createElement("pre",{style:s},r):null,null)}const hE=b.createElement(fE,null);class pE extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,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?b.createElement(Ws.Provider,{value:this.props.routeContext},b.createElement(Cv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function mE(e){let{routeContext:t,match:r,children:n}=e,s=b.useContext(Gd);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(Ws.Provider,{value:t},n)}function gE(e,t,r,n){var s;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,a=(s=r)==null?void 0:s.errors;if(a!=null){let c=o.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);c>=0||Re(!1),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c<o.length;c++){let f=o[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=c),f.route.id){let{loaderData:h,errors:d}=r,w=f.route.loader&&h[f.route.id]===void 0&&(!d||d[f.route.id]===void 0);if(f.route.lazy||w){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,f,h)=>{let d,w=!1,g=null,x=null;r&&(d=a&&f.route.id?a[f.route.id]:void 0,g=f.route.errorElement||hE,l&&(u<0&&h===0?(w=!0,x=null):u===h&&(w=!0,x=f.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,h+1)),p=()=>{let y;return d?y=g:w?y=x:f.route.Component?y=b.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=c,b.createElement(mE,{match:f,routeContext:{outlet:c,matches:m,isDataRoute:r!=null},children:y})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?b.createElement(pE,{location:r.location,revalidation:r.revalidation,component:g,error:d,children:p(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):p()},null)}var Rv=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Rv||{}),Da=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}(Da||{});function vE(e){let t=b.useContext(Gd);return t||Re(!1),t}function yE(e){let t=b.useContext(aE);return t||Re(!1),t}function wE(e){let t=b.useContext(Ws);return t||Re(!1),t}function Pv(e){let t=wE(),r=t.matches[t.matches.length-1];return r.route.id||Re(!1),r.route.id}function xE(){var e;let t=b.useContext(Cv),r=yE(Da.UseRouteError),n=Pv(Da.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function bE(){let{router:e}=vE(Rv.UseNavigateStable),t=Pv(Da.UseNavigateStable),r=b.useRef(!1);return Tv(()=>{r.current=!0}),b.useCallback(function(s,i){i===void 0&&(i={}),r.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,qi({fromRouteId:t},i)))},[e,t])}function _E(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function ia(e){Re(!1)}function SE(e){let{basename:t="/",children:r=null,location:n,navigationType:s=Br.Pop,navigator:i,static:o=!1,future:a}=e;ml()&&Re(!1);let l=t.replace(/^\/*/,"/"),u=b.useMemo(()=>({basename:l,navigator:i,static:o,future:qi({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof n=="string"&&(n=Hs(n));let{pathname:c="/",search:f="",hash:h="",state:d=null,key:w="default"}=n,g=b.useMemo(()=>{let x=Ev(c,l);return x==null?null:{location:{pathname:x,search:f,hash:h,state:d,key:w},navigationType:s}},[l,c,f,h,d,w,s]);return g==null?null:b.createElement(hl.Provider,{value:u},b.createElement(pl.Provider,{children:r,value:g}))}function EE(e){let{children:t,location:r}=e;return cE(bc(t),r)}new Promise(()=>{});function bc(e,t){t===void 0&&(t=[]);let r=[];return b.Children.forEach(e,(n,s)=>{if(!b.isValidElement(n))return;let i=[...t,s];if(n.type===b.Fragment){r.push.apply(r,bc(n.props.children,i));return}n.type!==ia&&Re(!1),!n.props.index||!n.props.children||Re(!1);let o={id:n.props.id||i.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=bc(n.props.children,i)),r.push(o)}),r}/**
155 * React Router DOM v6.30.1
156 *
157 * Copyright (c) Remix Software Inc.
158 *
159 * This source code is licensed under the MIT license found in the
160 * LICENSE.md file in the root directory of this source tree.
161 *
162 * @license MIT
163 */const kE="6";try{window.__reactRouterVersion=kE}catch{}const CE="startTransition",Xh=Uc[CE];function TE(e){let{basename:t,children:r,future:n,window:s}=e,i=b.useRef();i.current==null&&(i.current=IS({window:s,v5Compat:!0}));let o=i.current,[a,l]=b.useState({action:o.action,location:o.location}),{v7_startTransition:u}=n||{},c=b.useCallback(f=>{u&&Xh?Xh(()=>l(f)):l(f)},[l,u]);return b.useLayoutEffect(()=>o.listen(c),[o,c]),b.useEffect(()=>_E(n),[n]),b.createElement(SE,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:o,future:n})}var Zh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Zh||(Zh={}));var ep;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ep||(ep={}));const RE=Ld("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 shadow-soft",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",hero:"bg-hero-gradient text-primary-foreground font-semibold shadow-medium hover:shadow-strong transform transition-all duration-300 hover:scale-[1.02]",accent:"bg-hero-accent-gradient text-accent-foreground font-semibold shadow-medium hover:shadow-strong transform transition-all duration-300 hover:scale-[1.02]",form:"bg-primary text-primary-foreground hover:bg-primary-dark shadow-soft transition-all duration-200"},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"}}),Jd=b.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...s},i)=>{const o=n?ix:"button";return v.jsx(o,{className:Oe(RE({variant:t,size:r,className:e})),ref:i,...s})});Jd.displayName="Button";const oa=b.forwardRef(({className:e,type:t,...r},n)=>v.jsx("input",{type:t,className:Oe("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}));oa.displayName="Input";var PE="Label",Nv=b.forwardRef((e,t)=>
vendor: 7,823 bytes, line 163
163v.jsx(be.label,{...e,ref:t,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Nv.displayName=PE;var Ov=Nv;const NE=Ld("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),st=b.forwardRef(({className:e,...t},r)=>v.jsx(Ov,{ref:r,className:Oe(NE(),e),...t}));st.displayName=Ov.displayName;const Av=b.forwardRef(({className:e,...t},r)=>v.jsx("div",{ref:r,className:Oe("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Av.displayName="Card";const jv=b.forwardRef(({className:e,...t},r)=>v.jsx("div",{ref:r,className:Oe("flex flex-col space-y-1.5 p-6",e),...t}));jv.displayName="CardHeader";const Iv=b.forwardRef(({className:e,...t},r)=>v.jsx("h3",{ref:r,className:Oe("text-2xl font-semibold leading-none tracking-tight",e),...t}));Iv.displayName="CardTitle";const OE=b.forwardRef(({className:e,...t},r)=>v.jsx("p",{ref:r,className:Oe("text-sm text-muted-foreground",e),...t}));OE.displayName="CardDescription";const Lv=b.forwardRef(({className:e,...t},r)=>v.jsx("div",{ref:r,className:Oe("p-6 pt-0",e),...t}));Lv.displayName="CardContent";const AE=b.forwardRef(({className:e,...t},r)=>v.jsx("div",{ref:r,className:Oe("flex items-center p-6 pt-0",e),...t}));AE.displayName="CardFooter";var jE=b.createContext(void 0);function $v(e){const t=b.useContext(jE);return e||t||"ltr"}var ou="rovingFocusGroup.onEntryFocus",IE={bubbles:!1,cancelable:!0},uo="RovingFocusGroup",[_c,Dv,LE]=Yg(uo),[$E,Mv]=$n(uo,[LE]),[DE,ME]=$E(uo),Uv=b.forwardRef((e,t)=>v.jsx(_c.Provider,{scope:e.__scopeRovingFocusGroup,children:v.jsx(_c.Slot,{scope:e.__scopeRovingFocusGroup,children:v.jsx(UE,{...e,ref:t})})}));Uv.displayName=uo;var UE=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:s=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...f}=e,h=b.useRef(null),d=Ge(t,h),w=$v(i),[g,x]=Od({prop:o,defaultProp:a??null,onChange:l,caller:uo}),[m,p]=b.useState(!1),y=fr(u),_=Dv(r),S=b.useRef(!1),[E,k]=b.useState(0);return b.useEffect(()=>{const C=h.current;if(C)return C.addEventListener(ou,y),()=>C.removeEventListener(ou,y)},[y]),v.jsx(DE,{scope:r,orientation:n,dir:w,loop:s,currentTabStopId:g,onItemFocus:b.useCallback(C=>x(C),[x]),onItemShiftTab:b.useCallback(()=>p(!0),[]),onFocusableItemAdd:b.useCallback(()=>k(C=>C+1),[]),onFocusableItemRemove:b.useCallback(()=>k(C=>C-1),[]),children:v.jsx(be.div,{tabIndex:m||E===0?-1:0,"data-orientation":n,...f,ref:d,style:{outline:"none",...e.style},onMouseDown:ie(e.onMouseDown,()=>{S.current=!0}),onFocus:ie(e.onFocus,C=>{const O=!S.current;if(C.target===C.currentTarget&&O&&!m){const j=new CustomEvent(ou,IE);if(C.currentTarget.dispatchEvent(j),!j.defaultPrevented){const z=_().filter(U=>U.focusable),$=z.find(U=>U.active),Q=z.find(U=>U.id===g),J=[$,Q,...z].filter(Boolean).map(U=>U.ref.current);Bv(J,c)}}S.current=!1}),onBlur:ie(e.onBlur,()=>p(!1))})})}),Fv="RovingFocusGroupItem",zv=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:s=!1,tabStopId:i,children:o,...a}=e,l=S_(),u=i||l,c=ME(Fv,r),f=c.currentTabStopId===u,h=Dv(r),{onFocusableItemAdd:d,onFocusableItemRemove:w,currentTabStopId:g}=c;return b.useEffect(()=>{if(n)return d(),()=>w()},[n,d,w]),v.jsx(_c.ItemSlot,{scope:r,id:u,focusable:n,active:s,children:v.jsx(be.span,{tabIndex:f?0:-1,"data-orientation":c.orientation,...a,ref:t,onMouseDown:ie(e.onMouseDown,x=>{n?c.onItemFocus(u):x.preventDefault()}),onFocus:ie(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:ie(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){c.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const m=BE(x,c.orientation,c.dir);if(m!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let y=h().filter(_=>_.focusable).map(_=>_.ref.current);if(m==="last")y.reverse();else if(m==="prev"||m==="next"){m==="prev"&&y.reverse();const _=y.indexOf(x.currentTarget);y=c.loop?VE(y,_+1):y.slice(_+1)}setTimeout(()=>Bv(y))}}),children:typeof o=="function"?o({isCurrentTabStop:f,hasTabStop:g!=null}):o})})});zv.displayName=Fv;var FE={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zE(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function BE(e,t,r){const n=zE(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return FE[n]}function Bv(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function VE(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var HE=Uv,WE=zv;function qE(e){const t=b.useRef({value:e,previous:e});return b.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Yd="Radio",[KE,Vv]=$n(Yd),[GE,QE]=KE(Yd),Hv=b.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:s=!1,required:i,disabled:o,value:a="on",onCheck:l,form:u,...c}=e,[f,h]=b.useState(null),d=Ge(t,x=>h(x)),w=b.useRef(!1),g=f?u||!!f.closest("form"):!0;return v.jsxs(GE,{scope:r,checked:s,disabled:o,children:[v.jsx(be.button,{type:"button",role:"radio","aria-checked":s,"data-state":Gv(s),"data-disabled":o?"":void 0,disabled:o,value:a,...c,ref:d,onClick:ie(e.onClick,x=>{s||l==null||l(),g&&(w.current=x.isPropagationStopped(),w.current||x.stopPropagation())})}),g&&v.jsx(Kv,{control:f,bubbles:!w.current,name:n,value:a,checked:s,required:i,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});Hv.displayName=Yd;var Wv="RadioIndicator",qv=b.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...s}=e,i=QE(Wv,r);return v.jsx(nl,{present:n||i.checked,children:v.jsx(be.span,{"data-state":Gv(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t})})});qv.displayName=Wv;var JE="RadioBubbleInput",Kv=b.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...s},i)=>{const o=b.useRef(null),a=Ge(o,i),l=qE(r),u=G0(t);return b.useEffect(()=>{const c=o.current;if(!c)return;const f=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==r&&d){const w=new Event("click",{bubbles:n});d.call(c,r),c.dispatchEvent(w)}},[l,r,n]),v.jsx(be.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:a,style:{...s.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Kv.displayName=JE;function Gv(e){return e?"checked":"unchecked"}var YE=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],gl="RadioGroup",[XE,xR]=$n(gl,[Mv,Vv]),Qv=Mv(),Jv=Vv(),[ZE,ek]=XE(gl),Yv=b.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:s,value:i,required:o=!1,disabled:a=!1,orientation:l,dir:u,loop:c=!0,onValueChange:f,...h}=e,d=Qv(r),w=$v(u),[g,x]=Od({prop:i,defaultProp:s??null,onChange:f,caller:gl});return v.jsx(ZE,{scope:r,name:n,required:o,disabled:a,value:g,onValueChange:x,children:v.jsx(HE,{asChild:!0,...d,orientation:l,dir:w,loop:c,children:v.jsx(be.div,{role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":a?"":void 0,dir:w,...h,ref:t})})})});Yv.displayName=gl;var Xv="RadioGroupItem",Zv=b.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...s}=e,i=ek(Xv,r),o=i.disabled||n,a=Qv(r),l=Jv(r),u=b.useRef(null),c=Ge(t,u),f=i.value===s.value,h=b.useRef(!1);return b.useEffect(()=>{const d=g=>{YE.includes(g.key)&&(h.current=!0)},w=()=>h.current=!1;return document.addEventListener("keydown",d),document.addEventListener("keyup",w),()=>{document.removeEventListener("keydown",d),document.removeEventListener("keyup",w)}},[]),v.jsx(WE,{asChild:!0,...a,focusable:!o,active:f,children:v.jsx(Hv,{disabled:o,required:i.required,
163checked:f,...l,...s,name:i.name,ref:c,onCheck:()=>i.onValueChange(s.value),onKeyDown:ie(d=>{d.key==="Enter"&&d.preventDefault()}),onFocus:ie(s.onFocus,()=>{var d;h.current&&((d=u.current)==null||d.click())})})})});Zv.displayName=Xv;var tk="RadioGroupIndicator",ey=b.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,s=Jv(r);return v.jsx(qv,{...s,...n,ref:t})});ey.displayName=tk;var ty=Yv,ry=Zv,rk=ey;const Sc=b.forwardRef(({className:e,...t},r)=>v.jsx(ty,{className:Oe("grid gap-2",e),...t,ref:r}));Sc.displayName=ty.displayName;const Rr=b.forwardRef(({className:e,...t},r)=>v.jsx(ry,{ref:r,className:Oe("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:v.jsx(rk,{className:"flex items-center justify-center",children:v.jsx(eb,{className:"h-2.5 w-2.5 fill-current text-current"})})}));Rr.displayName=ry.displayName;function vl(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 s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function nk(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(c){try{u(n.next(c))}catch(f){o(f)}}function l(c){try{u(n.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}const sk=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Xd extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}}class ik extends Xd{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class tp extends Xd{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class rp extends Xd{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Ec;(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"})(Ec||(Ec={}));class ok{constructor(t,{headers:r={},customFetch:n,region:s=Ec.Any}={}){this.url=t,this.headers=r,this.region=s,this.fetch=sk(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return nk(this,arguments,void 0,function*(r,n={}){var s;let i,o;try{const{headers:a,method:l,body:u,signal:c,timeout:f}=n;let h={},{region:d}=n;d||(d=this.region);const w=new URL(`${this.url}/${r}`);d&&d!=="any"&&(h["x-region"]=d,w.searchParams.set("forceFunctionRegion",d));let g;u&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(h["Content-Type"]="application/octet-stream",g=u):typeof u=="string"?(h["Content-Type"]="text/plain",g=u):typeof FormData<"u"&&u instanceof FormData?g=u:(h["Content-Type"]="application/json",g=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?g=JSON.stringify(u):g=u;let x=c;f&&(o=new AbortController,i=setTimeout(()=>o.abort(),f),c?(x=o.signal,c.addEventListener("abort",()=>o.abort())):x=o.signal);const m=yield this.fetch(w.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},h),this.headers),a),body:g,signal:x}).catch(S=>{throw new ik(S)}),p=m.headers.get("x-relay-error");if(p&&p==="true")throw new tp(m);if(!m.ok)throw new rp(m);let y=((s=m.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),_;return y==="application/json"?_=yield m.json():y==="application/octet-stream"||y==="application/pdf"?_=yield m.blob():y==="text/event-stream"?_=m:y==="multipart/form-data"?_=yield m.formData():_=yield m.text(),{data:_,error:null,response:m}}catch(a){return{data:null,error:a,response:a instanceof rp||a instanceof tp?a.context:void 0}}finally{i&&clearTimeout(i)}})}}
163var ak=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}},lk=class{constructor(e){var t,r;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(r=e.isMaybeSingle)!==null&&r!==void 0?r:!1,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var r=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const n=this.fetch;let s=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{let o=null,a=null,l=null,u=i.status,c=i.statusText;if(i.ok){var f,h;if(r.method!=="HEAD"){var d;const m=await i.text();m===""||(r.headers.get("Accept")==="text/csv"||r.headers.get("Accept")&&(!((d=r.headers.get("Accept"))===null||d===void 0)&&d.includes("application/vnd.pgrst.plan+text"))?a=m:a=JSON.parse(m))}const g=(f=r.headers.get("Prefer"))===null||f===void 0?void 0:f.match(/count=(exact|planned|estimated)/),x=(h=i.headers.get("content-range"))===null||h===void 0?void 0:h.split("/");g&&x&&x.length>1&&(l=parseInt(x[1])),r.isMaybeSingle&&r.method==="GET"&&Array.isArray(a)&&(a.length>1?(o={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,l=null,u=406,c="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{var w;const g=await i.text();try{o=JSON.parse(g),Array.isArray(o)&&i.status===404&&(a=[],o=null,u=200,c="OK")}catch{i.status===404&&g===""?(u=204,c="No Content"):o={message:g}}if(o&&r.isMaybeSingle&&(!(o==null||(w=o.details)===null||w===void 0)&&w.includes("0 rows"))&&(o=null,u=200,c="OK"),o&&r.shouldThrowOnError)throw new ak(o)}return{error:o,data:a,count:l,status:u,statusText:c}});return this.shouldThrowOnError||(s=s.catch(i=>{var o;let a="";const l=i==null?void 0:i.cause;if(l){var u,c,f,h;const w=(u=l==null?void 0:l.message)!==null&&u!==void 0?u:"",g=(c=l==null?void 0:l.code)!==null&&c!==void 0?c:"";a=`${(f=i==null?void 0:i.name)!==null&&f!==void 0?f:"FetchError"}: ${i==null?void 0:i.message}`,a+=`
164
165Caused by: ${(h=l==null?void 0:l.name)!==null&&h!==void 0?h:"Error"}: ${w}`,g&&(a+=` (${g})`),l!=null&&l.stack&&(a+=`
166${l.stack}`)}else{var d;a=(d=i==null?void 0:i.stack)!==null&&d!==void 0?d:""}return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:a,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),s.then(e,t)}returns(){return this}overrideTypes(){return this}},uk=class extends lk{select(e){let t=!1;const r=(e??"*").split("").map(n=>/\s/.test(n)&&!t?"":(n==='"'&&(t=!t),n)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:r,foreignTable:n,referencedTable:s=n}={}){const i=s?`${s}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:r=t}={}){const n=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${e}`),this}range(e,t,{foreignTable:r,referencedTable:n=r}={}){const s=typeof n>"u"?"offset":`${n}.offset`,i=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(i,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
166explain({analyze:e=!1,verbose:t=!1,settings:r=!1,buffers:n=!1,wal:s=!1,format:i="text"}={}){var o;const a=[e?"analyze":null,t?"verbose":null,r?"settings":null,n?"buffers":null,s?"wal":null].filter(Boolean).join("|"),l=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${l}"; options=${a};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const np=new RegExp("[,()]");var Jn=class extends uk{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&np.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}notIn(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&np.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`not.in.(${r})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:r,type:n}={}){let s="";n==="plain"?s="pl":n==="phrase"?s="ph":n==="websearch"&&(s="w");const i=r===void 0?"":`(${r})`;return this.url.searchParams.append(e,`${s}fts${i}.${t}`),this}match(e){return Object.entries(e).forEach(([t,r])=>{this.url.searchParams.append(t,`eq.${r}`)}),this}not(e,t,r){return this.url.searchParams.append(e,`not.${t}.${r}`),this}or(e,{foreignTable:t,referencedTable:r=t}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${e})`),this}filter(e,t,r){return this.url.searchParams.append(e,`${t}.${r}`),this}},ck=class{constructor(e,{headers:t={},schema:r,fetch:n}){this.url=e,this.headers=new Headers(t),this.schema=r,this.fetch=n}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:r=!1,count:n}=t??{},s=r?"HEAD":"GET";let i=!1;const o=(e??"*").split("").map(u=>/\s/.test(u)&&!i?"":(u==='"'&&(i=!i),u)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",o),n&&l.append("Prefer",`count=${n}`),new Jn({method:s,url:a,headers:l,schema:this.schema,fetch:this.fetch})}insert(e,{count:t,defaultToNull:r=!0}={}){var n;const s="POST",{url:i,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),r||o.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,u)=>l.concat(Object.keys(u)),[]);if(a.length>
1660){const l=[...new Set(a)].map(u=>`"${u}"`);i.searchParams.set("columns",l.join(","))}}return new Jn({method:s,url:i,headers:o,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}upsert(e,{onConflict:t,ignoreDuplicates:r=!1,count:n,defaultToNull:s=!0}={}){var i;const o="POST",{url:a,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),t!==void 0&&a.searchParams.set("on_conflict",t),n&&l.append("Prefer",`count=${n}`),s||l.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((c,f)=>c.concat(Object.keys(f)),[]);if(u.length>0){const c=[...new Set(u)].map(f=>`"${f}"`);a.searchParams.set("columns",c.join(","))}}return new Jn({method:o,url:a,headers:l,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}update(e,{count:t}={}){var r;const n="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new Jn({method:n,url:s,headers:i,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}delete({count:e}={}){var t;const r="DELETE",{url:n,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new Jn({method:r,url:n,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch})}},dk=class ny{constructor(t,{headers:r={},schema:n,fetch:s}={}){this.url=t,this.headers=new Headers(r),this.schemaName=n,this.fetch=s}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new ck(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new ny(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,r={},{head:n=!1,get:s=!1,count:i}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let u;const c=d=>d!==null&&typeof d=="object"&&(!Array.isArray(d)||d.some(c)),f=n&&Object.values(r).some(c);f?(a="POST",u=r):n||s?(a=n?"HEAD":"GET",Object.entries(r).filter(([d,w])=>w!==void 0).map(([d,w])=>[d,Array.isArray(w)?`{${w.join(",")}}`:`${w}`]).forEach(([d,w])=>{l.searchParams.append(d,w)})):(a="POST",u=r);const h=new Headers(this.headers);return f?h.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&h.set("Prefer",`count=${i}`),new Jn({method:a,url:l,headers:h,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};class fk{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const r=globalThis.process;if(r){const n=r.versions;if(n&&n.node){const s=n.node,i=parseInt(s.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
167import ws from "ws"
168new 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+=`
169
170Suggested 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 hk="2.93.1",pk=`realtime-js/${hk}`,mk="1.0.0",sy="2.0.0",sp=sy,kc=1e4,gk=1e3,vk=100;var Or;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Or||(Or={}));var ke;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(ke||(ke={}));var jt;(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"})(jt||(jt={}));var Cc;(function(e){e.websocket="websocket"})(Cc||(Cc={}));var hn;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(hn||(hn={}));class yk{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,r){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(t));let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return r(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(t){var r;return this._isArrayBuffer((r=t.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var r,n;const s=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var r,n;const s=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},o=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,r,n){var s,i;const o=t.topic,a=(s=t.ref)!==null&&s!==void 0?s:"",l=(i=t.join_ref)!==null&&i!==void 0?i:"",u=t.payload.event,c=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},f=Object.keys(c).length===0?"":JSON.stringify(c);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(f.length>255)throw new Error(`metadata length ${f.length} exceeds maximum of 255`);const h=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+u.length+f.length,d=new ArrayBuffer(this.HEADER_LENGTH+h);let w=new DataView(d),g=0;w.setUint8(g++,this.KINDS.userBroadcastPush),w.setUint8(g++,l.length),w.setUint8(g++,a.length),w.setUint8(g++,o.length),w.setUint8(g++,u.length),w.setUint8(g++,f.length),w.setUint8(g++,r),Array.from(l,m=>w.setUint8(g++,m.charCodeAt(0))),Array.from(a,m=>w.setUint8(g++,m.charCodeAt(0))),Array.from(o,m=>w.setUint8(g++,m.charCodeAt(0))),Array.from(u,m=>w.setUint8(g++,m.charCodeAt(0))),Array.from(f,m=>w.setUint8(g++,m.charCodeAt(0)));var x=new Uint8Array(d.byteLength+n.byteLength);return x.set(new Uint8Array(d),0),x.set(new Uint8Array(n),d.byteLength),x.buffer}decode(t,r){if(this._isArrayBuffer(t)){let n=this._binaryDecode(t);return r(n)}if(typeof t=="string"){const n=JSON.parse(t),[s,i,o,a,l]=n;return r({join_ref:s,ref:i,topic:o,event:a,payload:l})}return r({})}_binaryDecode(t){const r=new DataView(t),n=r.getUint8(0),s=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,r,s)}}_decodeUserBroadcast(t,r,n){const s=r.getUint8(1),i=r.getUint8(2),o=r.getUint8(3),a=r.getUint8(4);let l=this.HEADER_LENGTH+4;const u=n.decode(t.slice(l,l+s));l=l+s;const c=n.decode(t.slice(l,l+i));l=l+i;
170const f=n.decode(t.slice(l,l+o));l=l+o;const h=t.slice(l,t.byteLength),d=a===this.JSON_ENCODING?JSON.parse(n.decode(h)):h,w={type:this.BROADCAST_EVENT,event:c,payload:d};return o>0&&(w.meta=JSON.parse(f)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:w}}_isArrayBuffer(t){var r;return t instanceof ArrayBuffer||((r=t==null?void 0:t.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(t,r){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([n])=>r.includes(n)))}}class iy{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 oe;(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"})(oe||(oe={}));const ip=(e,t,r={})=>{var n;const s=(n=r.skipTypes)!==null&&n!==void 0?n:[];return t?Object.keys(t).reduce((i,o)=>(i[o]=wk(o,e,t,s),i),{}):{}},wk=(e,t,r,n)=>{const s=t.find(a=>a.name===e),i=s==null?void 0:s.type,o=r[e];return i&&!n.includes(i)?oy(i,o):Tc(o)},oy=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return Sk(t,r)}switch(e){case oe.bool:return xk(t);case oe.float4:case oe.float8:case oe.int2:case oe.int4:case oe.int8:case oe.numeric:case oe.oid:return bk(t);case oe.json:case oe.jsonb:return _k(t);case oe.timestamp:return Ek(t);case oe.abstime:case oe.date:case oe.daterange:case oe.int4range:case oe.int8range:case oe.money:case oe.reltime:case oe.text:case oe.time:case oe.timestamptz:case oe.timetz:case oe.tsrange:case oe.tstzrange:return Tc(t);default:return Tc(t)}},Tc=e=>e,xk=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},bk=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},_k=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},Sk=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let i;const o=e.slice(1,r);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>oy(t,a))}return e},Ek=e=>typeof e=="string"?e.replace(" ","T"):e,ay=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class au{constructor(t,r,n={},s=kc){this.channel=t,this.event=r,this.payload=n,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,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}
170_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 op;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(op||(op={}));class _i{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,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=_i.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=_i.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel._on(n.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=_i.syncDiff(this.state,s,i,o),a())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,r,n,s){const i=this.cloneDeep(t),o=this.transformState(r),a={},l={};return this.map(i,(u,c)=>{o[u]||(l[u]=c)}),this.map(o,(u,c)=>{const f=i[u];if(f){const h=c.map(x=>x.presence_ref),d=f.map(x=>x.presence_ref),w=c.filter(x=>d.indexOf(x.presence_ref)<0),g=f.filter(x=>h.indexOf(x.presence_ref)<0);w.length>0&&(a[u]=w),g.length>0&&(l[u]=g)}else a[u]=c}),this.syncDiff(i,{joins:a,leaves:l},n,s)}static syncDiff(t,r,n,s){const{joins:i,leaves:o}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),s||(s=()=>{}),this.map(i,(a,l)=>{var u;const c=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(l),c.length>0){const f=t[a].map(d=>d.presence_ref),h=c.filter(d=>f.indexOf(d.presence_ref)<0);t[a].unshift(...h)}n(a,c,l)}),this.map(o,(a,l)=>{let u=t[a];if(!u)return;const c=l.map(f=>f.presence_ref);u=u.filter(f=>c.indexOf(f.presence_ref)<0),t[a]=u,s(a,u,l),u.length===0&&delete t[a]}),t}static map(t,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 s=t[n];return"metas"in s?r[n]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):r[n]=s,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 ap;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(ap||(ap={}));var Si;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Si||(Si={}));var rr;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(rr||(rr={}));class ds{constructor(t,r={config:{}},n){var s,i;if(this.topic=t,this.params=r,this.socket=n,this.bindings={},this.state=ke.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 au(this,jt.join,this.params,this.timeout),this.rejoinTimer=new iy(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=ke.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=ke.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=ke.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=ke.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=ke.errored,this.rejoinTimer.scheduleTimeout())}),this._on(jt.reply,{},(o,a)=>{this._trigger(this._replyEventName(a),o)}),this.presence=new _i(this),this.broadcastEndpointURL=ay(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,r=this.timeout){var n,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==ke.closed){const{config:{broadcast:o,presence:a,private:l}}=this.params,u=(s=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(d=>d.filter))!==null&&s!==void 0?s:[],c=!!this.bindings[Si.PRESENCE]&&this.bindings[Si.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,f={},h={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:c}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(f.access_token=this.socket.accessTokenValue),this._onError(d=>t==null?void 0:t(rr.CHANNEL_ERROR,d)),this._onClose(()=>t==null?void 0:t(rr.CLOSED)),this.updateJoinPayload(Object.assign({config:h},f)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:d})=>{var w;if(this.socket._isManualToken()||this.socket.setAuth(),d===void 0){t==null||t(rr.SUBSCRIBED);return}else{const g=this.bindings.postgres_changes,x=(w=g==null?void 0:g.length)!==null&&w!==void 0?w:0,m=[];for(let p=0;p<x;p++){const y=g[p],{filter:{event:_,schema:S,table:E,filter:k}}=y,C=d&&d[p];if(C&&C.event===_&&ds.isFilterValueEqual(C.schema,S)&&ds.isFilterValueEqual(C.table,E)&&ds.isFilterValueEqual(C.filter,k))m.push(Object.assign(Object.assign({},y),{id:C.id}));else{this.unsubscribe(),this.state=ke.errored,t==null||t(rr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=m,t&&t(rr.SUBSCRIBED);return}}).receive("error",d=>{this.state=ke.errored,t==null||t(rr.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(d).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(rr.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===ke.joined&&t===Si.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,r,n)}async httpSend(t,r,n={}){var s;if(r==null)return Promise.reject("Payload is required for httpSend()");const i={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:r,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(s=n.timeout)!==null&&s!==void 0?s:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;
170try{const u=await a.json();l=u.error||u.message||l}catch{}return Promise.reject(new Error(l))}async send(t,r={}){var n,s;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=t,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const u=this._push(t.type,t,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)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=ke.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(jt.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(s=>{n=new au(this,jt.leave,{},t),n.receive("ok",()=>{r(),s("ok")}).receive("timeout",()=>{r(),s("timed out")}).receive("error",()=>{s("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=ke.closed,this.bindings={}}async _fetchWithTimeout(t,r,n){const s=new AbortController,i=setTimeout(()=>s.abort(),n),o=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:s.signal}));return clearTimeout(i),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 s=new au(this,t,r,n);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>vk){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 s,i;const o=t.toLocaleLowerCase(),{close:a,error:l,leave:u,join:c}=jt;if(n&&[a,l,u,c].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)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(d=>{var w,g,x;return((w=d.filter)===null||w===void 0?void 0:w.event)==="*"||((x=(g=d.filter)===null||g===void 0?void 0:g.event)===null||x===void 0?void 0:x.toLocaleLowerCase())===o}).map(d=>d.callback(h,n)):(i=this.bindings[o])===null||i===void 0||i.filter(d=>{var w,g,x,m,p,y;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in d){const _=d.id,S=(w=d.filter)===null||w===void 0?void 0:w.event;return _&&((g=r.ids)===null||g===void 0?void 0:g.includes(_))&&(S==="*"||(S==null?void 0:S.toLocaleLowerCase())===((x=r.data)===null||x===void 0?void 0:x.type.toLocaleLowerCase()))}else{const _=(p=(m=d==null?void 0:d.filter)===null||m===void 0?void 0:m.event)===null||p===void 0?void 0:p.toLocaleLowerCase();return _==="*"||_===((y=r==null?void 0:r.event)===null||y===void 0?void 0:y.toLocaleLowerCase())}else return d.type.toLocaleLowerCase()===o}).map(d=>{if(typeof h=="object"&&"ids"in h){const w=h.data,{schema:g,table:x,commit_timestamp:m,type:p,errors:y}=w;h=Object.assign(Object.assign({},{schema:g,table:x,commit_timestamp:m,eventType:p,new:{},old:{},errors:y}),this._getPayloadRecords(w))}d.callback(h,n)})}_isClosed(){return this.state===ke.closed}_isJoined(){return this.state===ke.joined}_isJoining(){return this.state===ke.joining}_isLeaving(){return this.state===ke.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,r,n){const s=t.toLocaleLowerCase(),i={type:s,filter:r,callback:n};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(t,r){const n=t.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===n&&ds.isEqual(s.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}static isFilterValueEqual(t,r){return(t??void 0)===(r??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(jt.close,{},t)}_onError(t){this._on(jt.error,{},r=>t(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=ke.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=ip(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=ip(t.columns,t.old_record)),r}}const lu=()=>{},Mo={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},kk=[1e3,2e3,5e3,1e4],Ck=1e4,Tk=`
171  addEventListener("message", (e) => {
172    if (e.data.event === "start") {
173      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
174    }
175  });`;class Rk{constructor(t,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=kc,this.transport=null,this.heartbeatIntervalMs=Mo.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=lu,this.ref=0,this.reconnectTimer=null,this.vsn=sp,this.logger=lu,this.conn=null,this.sendBuffer=[],this.serializer
175=new yk,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=s=>s?(...i)=>s(...i):(...i)=>fetch(...i),!(!((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}/${Cc.websocket}`,this.httpEndpoint=ay(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.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=fk.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const r=t.message;throw r.includes("Node.js")?new Error(`${r}
176
177To use Realtime in Node.js, you need to provide a WebSocket implementation:
178
179Option 1: Use Node.js 22+ which has native WebSocket support
180Option 2: Install and provide the "ws" package:
181
182  npm install ws
183
184  import ws from "ws"
185  const client = new RealtimeClient(url, {
186    ...options,
187    transport: ws
188  })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}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")},typeof this.conn.close=="function"&&(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 Or.connecting:return hn.Connecting;case Or.open:return hn.Open;case Or.closing:return hn.Closing;default:return hn.Closed}}isConnected(){return this.connectionState()===hn.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,r={config:{}}){const n=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===n);if(s)return s;{const i=new ds(`realtime:${t}`,r,this);return this.channels.push(i),i}}push(t){const{topic:r,event:n,payload:s,ref:i}=t,o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${r} ${n} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(gk,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
vendor: 3,886 bytes, line 188
188heduleTimeout()},Mo.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(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"&&r.ref&&r.ref===this.pendingHeartbeatRef){const u=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error",u)}catch(c){this.log("error","error in heartbeat callback",c)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:n,event:s,payload:i,ref:o}=r,a=o?`(${o})`:"",l=i.status||"";this.log("receive",`${l} ${n} ${s} ${a}`.trim(),i),this.channels.filter(u=>u._isMember(n)).forEach(u=>u._trigger(s,i,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),this.conn.readyState===Or.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===Or.open||this.conn.readyState===Or.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(r=>{this.log("error","error waiting for auth on connect",r),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._terminateWorker()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var 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
188heduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t);try{this.heartbeatCallback("error")}catch(r){this.log("error","error in heartbeat callback",r)}}_triggerChanError(){this.channels.forEach(t=>t._trigger(jt.error))}_appendParams(t,r){if(Object.keys(r).length===0)return t;const n=t.match(/\?/)?"&":"?",s=new URLSearchParams(r);return`${t}${n}${s}`}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([Tk],{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,n=!1;if(t)r=t,n=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),r=this.accessTokenValue}else r=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(s=>{const i={access_token:r,version:pk};r&&s.updateJoinPayload(i),s.joinedOnce&&s._isJoined()&&s._push(jt.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||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(s){this.log("error",`error in ${t} callback`,s)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new iy(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Mo.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var r,n,s,i,o,a,l,u,c,f,h,d;switch(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:kc,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:Mo.HEARTBEAT_INTERVAL,this.worker=(i=t==null?void 0:t.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=t==null?void 0:t.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(a=t==null?void 0:t.heartbeatCallback)!==null&&a!==void 0?a:lu,this.vsn=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:sp,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=(u=t==null?void 0:t.reconnectAfterMs)!==null&&u!==void 0?u:w=>kk[w-1]||Ck,this.vsn){case mk:this.encode=(c=t==null?void 0:t.encode)!==null&&c!==void 0?c:(w,g)=>g(JSON.stringify(w)),this.decode=(f=t==null?void 0:t.decode)!==null&&f!==void 0?f:(w,g)=>g(JSON.parse(w));break;case sy:this.encode=(h=t==null?void 0:t.encode)!==null&&h!==void 0?h:this.serializer.encode.bind(this.serializer),this.decode=(d=t==null?void 0:t.decode)!==null&&d!==void 0?d:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}var Ki=class extends Error{constructor(e,t){var r;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((r=t.icebergType)==null?void 0:r.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function Pk(e,t,r){const n=new URL(t,e);if(r)for(const[s,i]of Object.entries(r))i!==void 0&&n.searchParams.set(s,i);return n.toString()}async function Nk(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function Ok(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:s,body:i,headers:o}){const a=Pk(e.baseUrl,n,s),l=await Nk(e.auth),u=await t(a,{method:r,headers:{...i?{"Content-Type":"application/json"}:{},...l,...o},body:i?JSON.stringify(i):void 0}),c=await u.text(),f=(u.headers.get("content-type")||"").includes("application/json"),h=f&&c?JSON.parse(c):c;if(!u.ok){const d=f?h:void 0,w=d==null?void 0:d.error;throw new Ki((w==null?void 0:w.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:w==null?void 0:w.type,icebergCode:w==null?void 0:w.code,details:d})}return{status:u.status,headers:u.headers,data:h}}}}function Uo(e){return e.join("�")}var Ak=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Uo(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(e,t){const r={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Uo(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Uo(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Uo(e.namespace)}`}),!0}catch(t){if(t instanceof Ki&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(r){if(r instanceof Ki&&r.status===409)return;throw r}}};function Hn(e){return e.join("�")}var jk=class{constructor(e,t="",r){this.client=e,this.prefix=t,this.accessDelegation=r}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Hn(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Hn(e.namespace)}/tables`,body:t,headers:r})).data.metadata}async updateTable(e,t){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Hn(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Hn(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Hn(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Hn(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(r){if(r instanceof Ki&&r.status===404)return!1;throw r}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(r){if(r instanceof Ki&&r.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw r}}},Ik=class{constructor(e){var n;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const r=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=Ok({baseUrl:r,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(n=e.accessDelegation)==null?void 0:n.join(","),this.namespaceOps=new Ak(this.client,t),this.tableOps=new jk(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
188async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},yl=class extends Error{constructor(e,t="storage",r,n){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=r,this.statusCode=n}};function wl(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Fo=class extends yl{constructor(e,t,r,n="storage"){super(e,n,t,r),this.name=n==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},ly=class extends yl{constructor(e,t,r="storage"){super(e,r),this.name=r==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const Lk=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),$k=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Rc=e=>{if(Array.isArray(e))return e.map(r=>Rc(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const s=r.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=Rc(n)}),t},Dk=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function Gi(e){"@babel/helpers - typeof";return Gi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gi(e)}function Mk(e,t){if(Gi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uk(e){var t=Mk(e,"string");return Gi(t)=="symbol"?t:t+""}function Fk(e,t,r){return(t=Uk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lp(Object(r),!0).forEach(function(n){Fk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const up=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},zk=async(e,t,r,n)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(r!=null&&r.noResolveJson)){const s=e,i=s.status||500;if(typeof s.json=="function")s.json().then(o=>{const a=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||i+"";t(new Fo(up(o),i,a,n))}).catch(()=>{if(n==="vectors"){const o=i+"";t(new Fo(s.statusText||`HTTP ${i} error`,i,o,n))}else{const o=i+"";t(new Fo(s.statusText||`HTTP ${i} error`,i,o,n))}});else{const o=i+"";t(new Fo(s.statusText||`HTTP ${i} error`,i,o,n))}}else t(new ly(up(e),e,n))},Bk=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||e==="HEAD"||!n?V(V({},s),r):($k(n)?(s.headers=V({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(n)):s.body=n,t!=null&&t.duplex&&(s.duplex=t.duplex),V(V({},s),r))};async function ii(e,t,r,n,s,i,o){return new Promise((a,l)=>{e(r,Bk(t,n,s,i)).then(u=>{if(!u.ok)throw u;if(n!=null&&n.noResolveJson)return u;if(o==="vectors"){const c=u.headers.get("content-type");if(!c||!c.includes("application/json"))return{}}return u.json()}).then(u=>a(u)).catch(u=>zk(u,l,n,o))})}function Vk(e="storage"){return{get:async(t,r,n,s)=>ii(t,"GET",r,n,s,void 0,e),post:async(t,r,n,s,i)=>ii(t,"POST",r,s,i,n,e),put:async(t,r,n,s,i)=>ii(t,"PUT",r,s,i,n,e),head:async(t,r,n,s)=>ii(t,"HEAD",r,V(V({},n),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,r,n,s,i)=>ii(t,"DELETE",r,s,i,n,e)}}const Hk=Vk("storage"),{get:Qi,post:fe,put:Pc,head:Wk,remove:Zd}=Hk;var qs=class{constructor(e,t={},r,n="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=Lk(r),this.namespace=n}throwOnError(){return this.shouldThrowOnError=!0,this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(wl(r))return{data:null,error:r};throw r}}},qk=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(wl(t))return{data:null,error:t};throw t}}};let uy;uy=Symbol.toStringTag;var Kk=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[uy]="BlobDownloadBuilder",this.promise=null}asStream(){return new qk(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(wl(t))return{data:null,error:t};throw t}}};const Gk={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},cp={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var Qk=class extends qs{constructor(e,t={},r,n){super(e,t,n,"storage"),this.bucketId=r}async uploadOrUpdate(e,t,r,n){var s=this;return s.handleOperation(async()=>{let i;const o=V(V({},cp),n);let a=V(V({},s.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&r instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",s.encodeMetadata(l)),i.append("",r)):typeof FormData<"u"&&r instanceof FormData?(i=r,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),l&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(l))):(i=r,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=s.toBase64(s.encodeMetadata(l))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),n!=null&&n.headers&&(a=V(V({},a),n.headers));const u=s._removeEmptyFolders(t),c=s._getFinalPath(u),f=await(e=="PUT"?Pc:fe)(s.fetch,`${s.url}/object/${c}`,i,V({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:u,id:f.Id,fullPath:f.Key}})}async upload(e,t,r){return this.uploadOrUpdate("POST",e,t,r)}async uploadToSignedUrl(e,t,r,n){var s=this;const i=s._removeEmptyFolders(e),o=s._getFinalPath(i),a=new URL(s.url+`/object/upload/sign/${o}`);return a.searchParams.set("token",t),s.handleOperation(async()=>{let l;const u=V({upsert:cp.upsert},n),c=V(V({},s.headers),{"x-upsert":String(u.upsert)});return typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",u.cacheControl)):(l=r,c["cac
188he-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType),{path:i,fullPath:(await Pc(s.fetch,a.toString(),l,{headers:c})).Key}})}async createSignedUploadUrl(e,t){var r=this;return r.handleOperation(async()=>{let n=r._getFinalPath(e);const s=V({},r.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await fe(r.fetch,`${r.url}/object/upload/sign/${n}`,{},{headers:s}),o=new URL(r.url+i.url),a=o.searchParams.get("token");if(!a)throw new yl("No token returned by API");return{signedUrl:o.toString(),path:e,token:a}})}async update(e,t,r){return this.uploadOrUpdate("PUT",e,t,r)}async move(e,t,r){var n=this;return n.handleOperation(async()=>await fe(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,destinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers}))}async copy(e,t,r){var n=this;return n.handleOperation(async()=>({path:(await fe(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,destinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers})).Key}))}async createSignedUrl(e,t,r){var n=this;return n.handleOperation(async()=>{let s=n._getFinalPath(e),i=await fe(n.fetch,`${n.url}/object/sign/${s}`,V({expiresIn:t},r!=null&&r.transform?{transform:r.transform}:{}),{headers:n.headers});const o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{signedUrl:encodeURI(`${n.url}${i.signedURL}${o}`)}})}async createSignedUrls(e,t,r){var n=this;return n.handleOperation(async()=>{const s=await fe(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:t,paths:e},{headers:n.headers}),i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return s.map(o=>V(V({},o),{},{signedUrl:o.signedURL?encodeURI(`${n.url}${o.signedURL}${i}`):null}))})}download(e,t){const r=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",n=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),s=n?`?${n}`:"",i=this._getFinalPath(e),o=()=>Qi(this.fetch,`${this.url}/${r}/${i}${s}`,{headers:this.headers,noResolveJson:!0});return new Kk(o,this.shouldThrowOnError)}async info(e){var t=this;const r=t._getFinalPath(e);return t.handleOperation(async()=>Rc(await Qi(t.fetch,`${t.url}/object/info/${r}`,{headers:t.headers})))}async exists(e){var t=this;const r=t._getFinalPath(e);try{return await Wk(t.fetch,`${t.url}/object/${r}`,{headers:t.headers}),{data:!0,error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(wl(n)&&n instanceof ly){const s=n.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:n}}throw n}}getPublicUrl(e,t){const r=this._getFinalPath(e),n=[],s=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";s!==""&&n.push(s);const i=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",o=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});o!==""&&n.push(o);let a=n.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${r}${a}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await Zd(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,r){var n=this;return n.handleOperation(async()=>{const s=V(V(V({},Gk),t),{},{prefix:e||""});return await fe(n.fetch,`${n.url}/object/list/${n.bucketId}`,s,{headers:n.headers},r)})}async listV2(e,t){var r=this;return r.handleOperation(async()=>{const n=V({},e);return await fe(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,n,{headers:r.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const Jk="2.93.1",co={"X-Client-Info":`storage-js/${Jk}`};var Yk=class extends qs{constructor(e,t={},r,n){const s=new URL(e);n!=null&&n.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const i=s.href.replace(/\/$/,""),o=V(V({},co),t);super(i,o,r,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const r=t.listBucketOptionsToQueryString(e);return await Qi(t.fetch,`${t.url}/bucket${r}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Qi(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var r=this;return r.handleOperation(async()=>await fe(r.fetch,`${r.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async updateBucket(e,t){var r=this;return r.handleOperation(async()=>await Pc(r.fetch,`${r.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await fe(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Zd(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},Xk=class extends qs{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=V(V({},co),t);super(n,s,r,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await fe(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>
188{const r=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&r.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&r.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&r.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&r.set("sortOrder",e.sortOrder),e!=null&&e.search&&r.set("search",e.search);const n=r.toString(),s=n?`${t.url}/bucket?${n}`:`${t.url}/bucket`;return await Qi(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Zd(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!Dk(e))throw new yl("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const r=new Ik({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(r,{get(s,i){const o=s[i];return typeof o!="function"?o:async(...a)=>{try{return{data:await o.apply(s,a),error:null}}catch(l){if(n)throw l;return{data:null,error:l}}}}})}},Zk=class extends qs{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=V(V({},co),{},{"Content-Type":"application/json"},t);super(n,s,r,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await fe(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var r=this;return r.handleOperation(async()=>await fe(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await fe(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var r=this;return r.handleOperation(async()=>await fe(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers})||{})}},eC=class extends qs{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=V(V({},co),{},{"Content-Type":"application/json"},t);super(n,s,r,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await fe(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await fe(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await fe(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await fe(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await fe(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},tC=class extends qs{constructor(e,t={},r){const n=e.replace(/\/$/,""),s=V(V({},co),{},{"Content-Type":"application/json"},t);super(n,s,r,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await fe(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await fe(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await fe(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await fe(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},rC=class extends tC{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new nC(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,r=this;return t().call(r,e)}async getBucket(e){var t=()=>super.getBucket,r=this;return t().call(r,e)}async listBuckets(e={}){var t=()=>super.listBuckets,r=this;return t().call(r,e)}async deleteBucket(e){var t=()=>super.deleteBucket,r=this;return t().call(r,e)}},nC=class extends Zk{constructor(e,t,r,n){super(e,t,n),this.vectorBucketName=r}async createIndex(e){var t=()=>super.createIndex,r=this;return t().call(r,V(V({},e),{},{vectorBucketName:r.vectorBucketName}))}
188async listIndexes(e={}){var t=()=>super.listIndexes,r=this;return t().call(r,V(V({},e),{},{vectorBucketName:r.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,r=this;return t().call(r,r.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,r=this;return t().call(r,r.vectorBucketName,e)}index(e){return new sC(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},sC=class extends eC{constructor(e,t,r,n,s){super(e,t,s),this.vectorBucketName=r,this.indexName=n}async putVectors(e){var t=()=>super.putVectors,r=this;return t().call(r,V(V({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async getVectors(e){var t=()=>super.getVectors,r=this;return t().call(r,V(V({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,r=this;return t().call(r,V(V({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,r=this;return t().call(r,V(V({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,r=this;return t().call(r,V(V({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}},iC=class extends Yk{constructor(e,t={},r,n){super(e,t,r,n)}from(e){return new Qk(this.url,this.headers,e,this.fetch)}get vectors(){return new rC(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new Xk(this.url+"/iceberg",this.headers,this.fetch)}};const cy="2.93.1",Yn=30*1e3,Nc=3,uu=Nc*Yn,oC="http://localhost:9999",aC="supabase.auth.token",lC={"X-Client-Info":`gotrue-js/${cy}`},Oc="X-Supabase-Api-Version",dy={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},uC=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,cC=10*60*1e3;class Ji extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function M(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class dC extends Ji{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function fC(e){return M(e)&&e.name==="AuthApiError"}class pn extends Ji{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class vr extends Ji{constructor(t,r,n,s){super(t,n,s),this.name=r,this.status=n}}class it extends vr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function cu(e){return M(e)&&e.name==="AuthSessionMissingError"}class Wn extends vr{constructor(){super("Auth session or user missing","AuthInvalidToken
188ResponseError",500,void 0)}}class zo extends vr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Bo extends vr{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 hC(e){return M(e)&&e.name==="AuthImplicitGrantRedirectError"}class dp extends vr{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 pC extends vr{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Ac extends vr{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function du(e){return M(e)&&e.name==="AuthRetryableFetchError"}class fp extends vr{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class jc extends vr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Ma="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),hp=` 	
189\r=`.split(""),mC=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<hp.length;t+=1)e[hp[t].charCodeAt(0)]=-2;for(let t=0;t<Ma.length;t+=1)e[Ma[t].charCodeAt(0)]=t;return e})();function pp(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(Ma[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(Ma[n]),t.queuedBits-=6}}function fy(e,t,r){const n=mC[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 mp(e){const t=[],r=o=>{t.push(String.fromCodePoint(o))},n={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{yC(o,n,r)};for(let o=0;o<e.length;o+=1)fy(e.charCodeAt(o),s,i);return t.join("")}function gC(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 vC(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const s=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|s)+65536,r+=1}gC(n,t)}}function yC(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 xs(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)fy(e.charCodeAt(s),r,n);return new Uint8Array(t)}function wC(e){const t=[];return vC(e,r=>t.push(r)),new Uint8Array(t)}function yn(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};return e.forEach(s=>pp(s,r,n)),pp(null,r,n),t.join("")}function xC(e){return Math.round(Date.now()/1e3)+e}function bC(){return Symbol("auth-callback")}const je=()=>typeof window<"u"&&typeof document<"u",ln={tested:!1,writable:!1},hy=()=>{if(!je())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(ln.tested)return ln.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),ln.tested=!0,ln.writable=!0}catch{ln.tested=!0,ln.writable=!1}return ln.writable};function _C(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEac
189h((s,i)=>{t[i]=s})}catch{}return r.searchParams.forEach((n,s)=>{t[s]=n}),t}const py=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),SC=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Xn=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},un=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},Ae=async(e,t)=>{await e.removeItem(t)};class xl{constructor(){this.promise=new xl.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}xl.promiseConstructor=Promise;function Vo(e){const t=e.split(".");if(t.length!==3)throw new jc("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!uC.test(t[n]))throw new jc("JWT not in base64url format");return{header:JSON.parse(mp(t[0])),payload:JSON.parse(mp(t[1])),signature:xs(t[2]),raw:{header:t[0],payload:t[1]}}}async function EC(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function kC(e,t){return new Promise((n,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){n(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function CC(e){return("0"+e.toString(16)).substr(-2)}function TC(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let s="";for(let i=0;i<56;i++)s+=r.charAt(Math.floor(Math.random()*n));return s}return crypto.getRandomValues(t),Array.from(t,CC).join("")}async function RC(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),s=new Uint8Array(n);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function PC(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 RC(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function qn(e,t,r=!1){const n=TC();let s=n;r&&(s+="/PASSWORD_RECOVERY"),await Xn(e,`${t}-code-verifier`,s);const i=await PC(n);return[i,n===i?"plain":"s256"]}const NC=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function OC(e){const t=e.headers.get(Oc);if(!t||!t.match(NC))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function AC(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 jC(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 IC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Kn(e){if(!IC.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function fu(){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 LC(e,t){return new Proxy(e,{get:(r,n,s)=>{if(n==="__isInsecureUserWarningProxy")return!0;if(typeof n=="symbol"){const i=n.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,s)}return!t.value&&typeof n=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(r,n,s)}})}function gp(e){return JSON.parse(JSON.stringify(e))}const fn=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),$C=[502,503,504];async function vp(e){var t;if(!SC(e))throw new Ac(fn(e),0);if($C.includes(e.status))throw new Ac(fn(e),e.status);let r;try{r=await e.json()}catch(i){throw new pn(fn(i),i)}let n;const s=OC(e);if(s&&s.getTime()>=dy["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 fp(fn(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new it}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((i,o)=>
189i&&typeof o=="string",!0))throw new fp(fn(r),e.status,r.weak_password.reasons);throw new dC(fn(r),e.status||500,n)}const DC=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(n),Object.assign(Object.assign({},s),r))};async function B(e,t,r,n){var s;const i=Object.assign({},n==null?void 0:n.headers);i[Oc]||(i[Oc]=dy["2024-01-01"].name),n!=null&&n.jwt&&(i.Authorization=`Bearer ${n.jwt}`);const o=(s=n==null?void 0:n.query)!==null&&s!==void 0?s:{};n!=null&&n.redirectTo&&(o.redirect_to=n.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await MC(e,t,r+a,{headers:i,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 MC(e,t,r,n,s,i){const o=DC(t,n,s,i);let a;try{a=await e(r,Object.assign({},o))}catch(l){throw console.error(l),new Ac(fn(l),0)}if(a.ok||await vp(a),n!=null&&n.noResolveJson)return a;try{return await a.json()}catch(l){await vp(l)}}function Tt(e){var t;let r=null;zC(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=xC(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function yp(e){const t=Tt(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 Ir(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function UC(e){return{data:e,error:null}}function FC(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i}=e,o=vl(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function wp(e){return e}function zC(e){return e.access_token&&e.refresh_token&&e.expires_in}const hu=["global","local","others"];class BC{constructor({url:t="",headers:r={},fetch:n}){this.url=t,this.headers=r,this.fetch=py(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,r=hu[0]){if(hu.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${hu.join(", ")}`);try{return await B(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(M(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await B(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:Ir})}catch(n){if(M(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=vl(t,["options"]),s=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(s.new_email=n==null?void 0:n.newEmail,delete s.newEmail),await B(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:FC,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(M(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await B(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Ir})}catch(r){if(M(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,s,i,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await B(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:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:wp});if(c.error)throw c.error;const f=await c.json(),h=(o=c.headers.get("x-total-count"))!==null&&o!==void 0?o:0,d=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return d.length>
1890&&(d.forEach(w=>{const g=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(w.split(";")[1].split("=")[1]);u[`${x}Page`]=g}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(M(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){Kn(t);try{return await B(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Ir})}catch(r){if(M(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){Kn(t);try{return await B(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:Ir})}catch(n){if(M(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){Kn(t);try{return await B(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:Ir})}catch(n){if(M(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){Kn(t.userId);try{const{data:r,error:n}=await B(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:r,error:n}}catch(r){if(M(r))return{data:null,error:r};throw r}}async _deleteFactor(t){Kn(t.userId),Kn(t.id);try{return{data:await B(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(M(r))return{data:null,error:r};throw r}}async _listOAuthClients(t){var r,n,s,i,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await B(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{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:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:wp});if(c.error)throw c.error;const f=await c.json(),h=(o=c.headers.get("x-total-count"))!==null&&o!==void 0?o:0,d=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return d.length>0&&(d.forEach(w=>{const g=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(w.split(";")[1].split("=")[1]);u[`${x}Page`]=g}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(M(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await B(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(M(r))return{data:null,error:r};throw r}}async _getOAuthClient(t){try{return await B(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(M(r))return{data:null,error:r};throw r}}async _updateOAuthClient(t,r){try{return await B(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(M(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(t){try{return await B(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(M(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(t){try{return await B(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(M(r))return{data:null,error:r};throw r}}}function xp(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}const Gn={debug:!!(globalThis&&hy()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class my extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class VC extends my{}async function HC(e,t,r){Gn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;return t>0&&setTimeout(()=>{n.abort(),Gn.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 s=>{if(s){Gn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await r()}finally{Gn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw Gn.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new VC(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Gn.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null,"  "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}}))}function WC(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function gy(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}
189" is invalid.`);return e.toLowerCase()}function qC(e){return parseInt(e,16)}function KC(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")}function GC(e){var t;const{chainId:r,domain:n,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:a,requestId:l,resources:u,scheme:c,uri:f,version:h}=e;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!f)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(h!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${h}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
190`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const d=gy(e.address),w=c?`${c}://${n}`:n,g=e.statement?`${e.statement}
191`:"",x=`${w} wants you to sign in with your Ethereum account:
192${d}
193
194${g}`;let m=`URI: ${f}
195Version: ${h}
196Chain ID: ${r}${o?`
197Nonce: ${o}`:""}
198Issued At: ${i.toISOString()}`;if(s&&(m+=`
199Expiration Time: ${s.toISOString()}`),a&&(m+=`
200Not Before: ${a.toISOString()}`),l&&(m+=`
201Request ID: ${l}`),u){let p=`
202Resources:`;for(const y of u){if(!y||typeof y!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${y}`);p+=`
203- ${y}`}m+=p}return`${x}
204${m}`}class Se extends Error{constructor({message:t,code:r,cause:n,name:s}){var i;super(t,{cause:n}),this.__isWebAuthnError=!0,this.name=(i=s??(n instanceof Error?n.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=r}}class Ua extends Se{constructor(t,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:t}),this.name="WebAuthnUnknownError",this.originalError=r}}function QC({error:e,options:t}){var r,n,s;const{publicKey:i}=t;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Se({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((r=i.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new Se({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((n=i.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new Se({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Se({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Se({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Se({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Se({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Se({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(vy(o)){if(i.rp.id!==o)return new Se({message:`The RP ID "${i.rp.id}
204" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Se({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new Se({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Se({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Se({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function JC({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Se({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Se({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const n=window.location.hostname;if(vy(n)){if(r.rpId!==n)return new Se({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Se({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Se({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Se({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class YC{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const XC=new YC;function ZC(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:r,excludeCredentials:n}=e,s=vl(e,["challenge","user","excludeCredentials"]),i=xs(t).buffer,o=Object.assign(Object.assign({},r),{id:xs(r.id).buffer}),a=Object.assign(Object.assign({},s),{challenge:i,user:o});if(n&&n.length>0){a.excludeCredentials=new Array(n.length);for(let l=0;l<n.length;l++){const u=n[l];a.excludeCredentials[l]=Object.assign(Object.assign({},u),{id:xs(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return a}function eT(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:r}=e,n=vl(e,["challenge","allowCredentials"]),s=xs(t).buffer,i=Object.assign(Object.assign({},n),{challenge:s});if(r&&r.length>0){i.allowCredentials=new Array(r.length);for(let o=0;o<r.length;o++){const a=r[o];i.allowCredentials[o]=Object.assign(Object.assign({},a),{id:xs(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return i}function tT(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e;return{id:e.id,rawId:e.id,response:{attestationObject:yn(new Uint8Array(e.response.attestationObject)),clientDataJSON:yn(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function rT(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e,n=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:yn(new Uint8Array(s.authenticatorData)),clientDataJSON:yn(new Uint8Array(s.clientDataJSON)),signature:yn(new Uint8Array(s.signature)),userHandle:s.userHandle?yn(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function vy(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function bp(){var e,t;return!!(je()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function nT(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Ua("Browser returned unexpected credential type",t)}:{data:null,error:new Ua("Empty credential response",t)}}
204catch(t){return{data:null,error:QC({error:t,options:e})}}}async function sT(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Ua("Browser returned unexpected credential type",t)}:{data:null,error:new Ua("Empty credential response",t)}}catch(t){return{data:null,error:JC({error:t,options:e})}}}const iT={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},oT={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Fa(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),r=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),n={};for(const s of e)if(s)for(const i in s){const o=s[i];if(o!==void 0)if(Array.isArray(o))n[i]=o;else if(r(o))n[i]=o;else if(t(o)){const a=n[i];t(a)?n[i]=Fa(a,o):n[i]=Fa(o)}else n[i]=o}return n}function aT(e,t){return Fa(iT,e,t||{})}function lT(e,t){return Fa(oT,e,t||{})}class uT{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:r,friendlyName:n,signal:s},i){try{const{data:o,error:a}=await this.client.mfa.challenge({factorId:t,webauthn:r});if(!o)return{data:null,error:a};const l=s??XC.createNewAbortSignal();if(o.webauthn.type==="create"){const{user:u}=o.webauthn.credential_options.publicKey;u.name||(u.name=`${u.id}:${n}`),u.displayName||(u.displayName=u.name)}switch(o.webauthn.type){case"create":{const u=aT(o.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:c,error:f}=await nT({publicKey:u,signal:l});return c?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:c}},error:null}:{data:null,error:f}}case"request":{const u=lT(o.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:c,error:f}=await sT(Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:u,signal:l}));return c?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:c}},error:null}:{data:null,error:f}}}}catch(o){return M(o)?{data:null,error:o}:{data:null,error:new pn("Unexpected error in challenge",o)}}}async _verify({challengeId:t,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:t,webauthn:n})}async _authenticate({factorId:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!r)return{data:null,error:new Ji("rpId is required for WebAuthn authentication")};try{if(!bp())return{data:null,error:new pn("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:t,webauthn:{rpId:r,rpOrigins:n},signal:s},{request:i});if(!o)return{data:null,error:a};const{webauthn:l}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:l.type,rpId:r,rpOrigins:n,credential_response:l.credential_response}})}catch(o){return M(o)?{data:null,error:o}:{data:null,error:new pn("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!r)return{data:null,error:new Ji("rpId is required for WebAuthn registration")};try{if(!bp())return{data:null,error:new pn("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(c=>{var f;return(f=c.data)===null||f===void 0?void 0:f.all.find(h=>h.factor_type==="webauthn"&&h.friendly_name===t&&h.status!=="unverified")}).then(c=>c?this.client.mfa.unenroll({factorId:c==null?void 0:c.id}):void 0),{data:null,error:a};const{data:l,error:u}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:s},{create:i});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:r,rpOrigins:n,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:u}}catch(o){return M(o)?{data:null,error:o}:{data:null,error:new pn("Unexpected error in register",o)}}}}WC();const cT={url:oC,storageKey:aC,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:lC,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4};async function _p(e,t,r){return await r()}const Qn={};class Yi{get jwks(){var t,r;return(r=(t=Qn[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){Qn[this.storageKey]=Object.assign(Object.assign({},Qn[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=Qn[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Qn[this.storageKey]=Object.assign(Object.assign({},Qn[this.storageKey]),{cachedAt:t})}constructor(t){var r,n,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},cT),t);if(this.storageKey=i.storageKey,this.instanceID=(r=Yi.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,Yi.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&je()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new BC({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=py(i.fetch),this.lock=i.lock||_p,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock?this.lock=i.lock:this.persistSession&&je()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=HC:this.lock=_p,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new uT(this)}
204,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:hy()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=xp(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=xp(this.memoryStorage)),je()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(a){this._debug("#broadcastChannel","error",a)}})}this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${cy}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let r={},n="none";if(je()&&(r=_C(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),je()&&this.detectSessionInUrl&&n!=="none"){const{data:s,error:i}=await this._getSessionFromURL(r,n);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),hC(i)){const l=(t=i.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:i}}return{error:i}}const{session:o,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return M(r)?this._returnResult({error:r}):this._returnResult({error:new pn("Unexpected error during initialization",r)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,s;try{const i=await B(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:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Tt}),{data:o,error:a}=i;if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(i){if(M(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(t){var r,n,s;try{let i;if("email"in t){const{email:c,password:f,options:h}=t;let d=null,w=null;this.flowType==="pkce"&&([d,w]=await qn(this.storage,this.storageKey)),i=await B(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:c,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:d,code_challenge_method:w},xform:Tt})}else if("phone"in t){const{phone:c,password:f,options:h}=t;i=await B(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:f,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},channel:(s=h==null?void 0:h.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:Tt})}else throw new zo("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return await Ae(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(i){if(await Ae(this.storage,`${this.storageKey}-code-verifier`),M(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(t){try{let r;if("email"in t){const{email:i,password:o,options:a}=t;r=await B(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:yp})}else if("phone"in t){const{phone:i,password:o,options:a}=t;r=await B(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:yp})}else throw new zo("You must provide either an email or phone number and a password");const{data:n,error:s}=r;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!n||!n.session||!n.user){const i=new Wn;return this._returnResult({data:{user:null,session:null},error:i})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:s})}catch(r){if(M(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(t){var r,n,s,i;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:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:r}=t;switch(r){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(t){var r,n,s,i,o,a,l,u,c,f,h;let d,w;if("message"in t)d=t.message,w=t.signature;else{const{chain:g,wallet:x,statement:m,options:p}=t;let y;if(je())if(typeof x=="object")y=x;else{const O=window;if("ethereum"in O&&typeof O.ethereum=="object"&&"request"in O.ethereum&&typeof O.ethereum.request=="function")y=O.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!(p!=null&&p.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");y=x}const _=new URL((r=p==null?void 0:p.url)!==null&&r!==void 0?r:window.location.href),S=await y.request({method:"eth_requestAccounts"}).then(O=>O).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!S||S.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const E=gy(S[0]);
204let k=(n=p==null?void 0:p.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!k){const O=await y.request({method:"eth_chainId"});k=qC(O)}const C={domain:_.host,address:E,statement:m,uri:_.href,version:"1",chainId:k,nonce:(s=p==null?void 0:p.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=p==null?void 0:p.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=p==null?void 0:p.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=p==null?void 0:p.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=p==null?void 0:p.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(c=p==null?void 0:p.signInWithEthereum)===null||c===void 0?void 0:c.resources};d=GC(C),w=await y.request({method:"personal_sign",params:[KC(d),E]})}try{const{data:g,error:x}=await B(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:d,signature:w},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:Tt});if(x)throw x;if(!g||!g.session||!g.user){const m=new Wn;return this._returnResult({data:{user:null,session:null},error:m})}return g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("SIGNED_IN",g.session)),this._returnResult({data:Object.assign({},g),error:x})}catch(g){if(M(g))return this._returnResult({data:{user:null,session:null},error:g});throw g}}async signInWithSolana(t){var r,n,s,i,o,a,l,u,c,f,h,d;let w,g;if("message"in t)w=t.message,g=t.signature;else{const{chain:x,wallet:m,statement:p,options:y}=t;let _;if(je())if(typeof m=="object")_=m;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 m!="object"||!(y!=null&&y.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=m}const S=new URL((r=y==null?void 0:y.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()},y==null?void 0:y.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),p?{statement:p}:null));let k;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")k=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)k=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in k&&"signature"in k&&(typeof k.signedMessage=="string"||k.signedMessage instanceof Uint8Array)&&k.signature instanceof Uint8Array)w=typeof k.signedMessage=="string"?k.signedMessage:new TextDecoder().decode(k.signedMessage),g=k.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");w=[`${S.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...p?["",p,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(s=(n=y==null?void 0:y.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=y==null?void 0:y.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${y.signInWithSolana.notBefore}`]:[],...!((o=y==null?void 0:y.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${y.signInWithSolana.expirationTime}`]:[],...!((a=y==null?void 0:y.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${y.signInWithSolana.chainId}`]:[],...!((l=y==null?void 0:y.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${y.signInWithSolana.nonce}`]:[],...!((u=y==null?void 0:y.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${y.signInWithSolana.requestId}`]:[],...!((f=(c=y==null?void 0:y.signInWithSolana)===null||c===void 0?void 0:c.resources)===null||f===void 0)&&f.length?["Resources",...y.signInWithSolana.resources.map(k=>`- ${k}`)]:[]].join(`
205`);const E=await _.signMessage(new TextEncoder().encode(w),"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:m}=await B(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:w,signature:yn(g)}
205,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(d=t.options)===null||d===void 0?void 0:d.captchaToken}}:null),xform:Tt});if(m)throw m;if(!x||!x.session||!x.user){const p=new Wn;return this._returnResult({data:{user:null,session:null},error:p})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:m})}catch(x){if(M(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(t){const r=await un(this.storage,`${this.storageKey}-code-verifier`),[n,s]=(r??"").split("/");try{if(!n&&this.flowType==="pkce")throw new pC;const{data:i,error:o}=await B(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:Tt});if(await Ae(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const a=new Wn;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(await Ae(this.storage,`${this.storageKey}-code-verifier`),M(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(t){try{const{options:r,provider:n,token:s,access_token:i,nonce:o}=t,a=await B(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:Tt}),{data:l,error:u}=a;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!l||!l.session||!l.user){const c=new Wn;return this._returnResult({data:{user:null,session:null},error:c})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:u})}catch(r){if(M(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(t){var r,n,s,i,o;try{if("email"in t){const{email:a,options:l}=t;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await qn(this.storage,this.storageKey));const{error:f}=await B(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:u,code_challenge_method:c},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:f})}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:c}=await B(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c})}throw new zo("You must provide either an email or phone number.")}catch(a){if(await Ae(this.storage,`${this.storageKey}-code-verifier`),M(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var r,n;try{let s,i;"options"in t&&(s=(r=t.options)===null||r===void 0?void 0:r.redirectTo,i=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:o,error:a}=await B(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Tt});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,u=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(M(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var r,n,s,i,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await qn(this.storage,this.storageKey));const u=await B(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}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:UC});return!((i=u.data)===null||i===void 0)&&i.url&&je()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(a){if(await Ae(this.storage,`${this.storageKey}-code-verifier`),M(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)throw n;if(!r)throw new it;const{error:s}=await B(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(M(t))return this._returnResult({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:s,options:i}=t,{error:o}=await B(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:n,type:s,options:i}=t,{data:o,error:a}=await B(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a})}throw new zo("You must provide either an email or phone number and a type")}catch(r){if(M(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,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(),s=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.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 un(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
205id"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<uu:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const o=await un(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=fu()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=LC(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const r=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(t){try{return t?await B(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Ir}):await this._useSession(async r=>{var n,s,i;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 it}:await B(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:Ir})})}catch(r){if(M(r))return cu(r)&&(await this._removeSession(),await Ae(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:s,error:i}=n;if(i)throw i;if(!s.session)throw new it;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await qn(this.storage,this.storageKey));const{data:u,error:c}=await B(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:Ir});if(c)throw c;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(n){if(await Ae(this.storage,`${this.storageKey}-code-verifier`),M(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new it;const r=Date.now()/1e3;let n=r,s=!0,i=null;const{payload:o}=Vo(t.access_token);if(o.exp&&(n=o.exp,s=n<=r),s){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});i={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(r){if(M(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async 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 it;const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(M(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(t,r){try{if(!je())throw new Bo("No browser detected.");
205if(t.error||t.error_description||t.error_code)throw new Bo(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 dp("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Bo("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 dp("No code detected.");const{data:p,error:y}=await this._exchangeCodeForSession(t.code);if(y)throw y;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:p.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:l,token_type:u}=t;if(!i||!a||!o||!u)throw new Bo("No session defined in URL");const c=Math.round(Date.now()/1e3),f=parseInt(a);let h=c+f;l&&(h=parseInt(l));const d=h-c;d*1e3<=Yn&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${d}s, should have been closer to ${f}s`);const w=h-f;c-w>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",w,h,c):c-w<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",w,h,c);const{data:g,error:x}=await this._getUser(i);if(x)throw x;const m={provider_token:n,provider_refresh_token:s,access_token:i,expires_in:f,expires_at:h,refresh_token:o,token_type:u,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:m,redirectType:t.type},error:null})}catch(n){if(M(n))return this._returnResult({data:{session:null,redirectType:null},error:n});throw n}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const r=await un(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i&&!cu(i))return this._returnResult({error:i});const o=(n=s.session)===null||n===void 0?void 0:n.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(fC(a)&&(a.status===404||a.status===401||a.status===403)||cu(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await Ae(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const r=bC(),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(this.lockAcquireTimeout,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,s;try{const{data:{session:i},error:o}=r;if(o)throw o;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,r={}){let n=null,s=null;this.flowType==="pkce"&&([n,s]=await qn(this.storage,this.storageKey,!0));try{return await B(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:s,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(i){if(await Ae(this.storage,`${this.storageKey}-code-verifier`),M(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var r;try{const{data:n,error:s}=await this._useSession(async i=>{var o,a,l,u,c;const{data:f,error:h}=i;if(h)throw h;const d=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 B(this.fetch,"GET",d,{headers:this.headers,jwt:(c=(u=f.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(s)throw s;return je()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),this._returnResult({data:{provider:t.provider,url:n==null?void 0:n.url},error:null})}catch(n){if(M(n))return this._returnResult({data:{provider:t.provider,url:null},error:n});throw n}}async linkIdentityIdToken(t){return await this._useSession(async r=>{var n;try{const{error:s,data:{session:i}}=r;if(s)throw s;const{options:o,provider:a,token:l,access_token:u,nonce:c}=t,f=await B(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=i==null?void 0:i.access_token)!==null&&n!==void 0?n:void 0,body:{provider:a,id_token:l,access_token:u,nonce:c,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:Tt}),{data:h,error:d}=f;return d?this._returnResult({data:{user:null,session:null},error:d}):!h||!h.session||!h.user?this._returnResult({data:{user:null,session:null},error:new Wn}):(h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("USER_UPDATED",h.session)),this._returnResult({data:h,error:d}))}catch(s){if(await Ae(this.storage,`${this.storageKey}-code-verifier`),M(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,s;const{data:i,error:o}=r;if(o)throw o;
205return await B(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(n=i.session)===null||n===void 0?void 0:n.access_token)!==null&&s!==void 0?s:void 0})})}catch(r){if(M(r))return this._returnResult({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 kC(async s=>(s>0&&await EC(200*Math.pow(2,s-1)),this._debug(r,"refreshing attempt",s),await B(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Tt})),(s,i)=>{const o=200*Math.pow(2,s);return i&&du(i)&&Date.now()+o-n<Yn})}catch(n){if(this._debug(r,"error",n),M(n))return this._returnResult({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),je()&&!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 s=await un(this.storage,this.storageKey);if(s&&this.userStorage){let o=await un(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await Xn(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:fu()}else if(s&&!s.user&&!s.user){const o=await un(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await Ae(this.storage,this.storageKey+"-user"),await Xn(this.storage,this.storageKey,s)):s.user=fu()}if(this._debug(n,"session from storage",s),!this._isValidSession(s)){this._debug(n,"session is not valid"),s!==null&&await this._removeSession();return}const i=((r=s.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<uu;if(this._debug(n,`session has${i?"":" not"} expired with margin of ${uu}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),du(o)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(s.access_token);!a&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(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",s)}catch(s){this._debug(n,"error",s),console.error(s);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new it;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new xl;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new it;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const a={data:i.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(i){if(this._debug(s,"error",i),M(i)){const o={data:null,error:i};return du(i)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(o),o}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,r,n=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,r)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Ae(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},t),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await Xn(this.userStorage,this.storageKey+"-user",{user:r.user});const s=Object.assign({},r);delete s.user;const i=gp(s);await Xn(this.storage,this.storageKey,i)}else{const s=gp(r);await Xn(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Ae(this.storage,this.storageKey),await Ae(this.storage,this.storageKey+"-code-verifier"),await Ae(this.storage,this.storageKey+"-user"),this.userStorage&&await Ae(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&je()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
205catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Yn);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const r=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=r,r&&typeof r=="object"&&typeof r.unref=="function"?r.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(r)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const r=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,r&&clearTimeout(r)}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 s=Math.floor((n.expires_at*1e3-t)/Yn);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Yn}ms, refresh threshold is ${Nc} ticks`),s<=Nc&&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 my)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!je()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(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 s=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&s.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&s.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[i,o]=await qn(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(n!=null&&n.queryParams){const i=new URLSearchParams(n.queryParams);s.push(i.toString())}return n!=null&&n.skipBrowserRedirect&&s.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;return i?this._returnResult({data:null,error:i}):await B(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,s;const{data:i,error:o}=r;if(o)return this._returnResult({data:null,error:o});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:u}=await B(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&l.type==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i)return this._returnResult({data:null,error:i});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?tT(t.webauthn.credential_response):rT(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await B(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i)return this._returnResult({data:null,error:i});const o=await B(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});if(o.error)return o;const{data:a}=o;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:ZC(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:eT(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){var t;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=r==null?void 0:r.factors)!==null&&t!==void 0?t:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(t){var r,n,s,i;if(t)try{const{payload:d}=Vo(t);let w=null;d.aal&&(w=d.aal);let g=w;const{data:{user:x},error:m}=await this.getUser(t);if(m)return this._returnResult({data:null,error:m});((n=(r=x==null?void 0:x.factors)===null||r===void 0?void 0:r.filter(_=>_.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(g="aal2");const y=d.amr||[];return{data:{currentLevel:w,nextLevel:g,currentAuthenticationMethods:y},error:null}}catch(d){if(M(d))return this._returnResult({data:null,error:d});throw d}const{data:{session:o},error:a}
205=await this.getSession();if(a)return this._returnResult({data:null,error:a});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=Vo(o.access_token);let u=null;l.aal&&(u=l.aal);let c=u;((i=(s=o.user.factors)===null||s===void 0?void 0:s.filter(d=>d.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(c="aal2");const h=l.amr||[];return{data:{currentLevel:u,nextLevel:c,currentAuthenticationMethods:h},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?await B(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new it})})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:s},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new it});const o=await B(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&je()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:s},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new it});const o=await B(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&je()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;return n?this._returnResult({data:null,error:n}):r?await B(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new it})})}catch(t){if(M(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?(await B(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new it})})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(a=>a.kid===t);if(n)return n;const s=Date.now();if(n=this.jwks.keys.find(a=>a.kid===t),n&&this.jwks_cached_at+cC>s)return n;const{data:i,error:o}=await B(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,n=i.keys.find(a=>a.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:d,error:w}
205=await this.getSession();if(w||!d.session)return this._returnResult({data:null,error:w});n=d.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=Vo(n);r!=null&&r.allowExpired||AC(i.exp);const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!u){const{error:d}=await this.getUser(n);if(d)throw d;return{data:{claims:i,header:s,signature:o},error:null}}const c=jC(s.alg),f=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,f,o,wC(`${a}.${l}`)))throw new jc("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}}Yi.nextInstanceID={};const dT=Yi,fT="2.93.1";let di="";typeof Deno<"u"?di="deno":typeof document<"u"?di="web":typeof navigator<"u"&&navigator.product==="ReactNative"?di="react-native":di="node";function hT(){const e=globalThis.process;if(e&&e.platform){const t=e.platform;if(t==="darwin")return"macOS";if(t==="win32")return"Windows";if(t==="linux")return"Linux";if(t==="android")return"Android"}if(typeof navigator<"u"&&navigator.userAgentData&&navigator.userAgentData.platform){const t=navigator.userAgentData.platform;if(t==="macOS")return"macOS";if(t==="Windows")return"Windows";if(t==="Linux")return"Linux";if(t==="Android")return"Android";if(t==="iOS")return"iOS"}return null}function pT(){const e=globalThis.process;if(e){const t=e.versions;if(t&&t.node&&typeof window>"u")try{const r=globalThis.require;if(r)return r("os").release()}catch{return null}}if(typeof Deno<"u"&&Deno.osRelease)try{return Deno.osRelease()}catch{return null}return typeof navigator<"u"&&navigator.userAgentData&&navigator.userAgentData.platformVersion?navigator.userAgentData.platformVersion:null}function mT(){if(typeof Deno<"u")return"deno";if(typeof Bun<"u")return"bun";const e=globalThis.process;if(e){const t=e.versions;if(t&&t.node)return"node"}return null}function gT(){if(typeof Deno<"u"&&Deno.version)return Deno.version.deno;if(typeof Bun<"u"&&Bun.version)return Bun.version;const e=globalThis.process;if(e){const t=e.versions;if(t&&t.node)return t.node}return null}function vT(){const e={"X-Client-Info":`supabase-js-${di}/${fT}`},t=hT();t&&(e["X-Supabase-Client-Platform"]=t);const r=pT();r&&(e["X-Supabase-Client-Platform-Version"]=r);const n=mT();n&&(e["X-Supabase-Client-Runtime"]=n);const s=gT();return s&&(e["X-Supabase-Client-Runtime-Version"]=s),e}const yT=vT(),wT={headers:yT},xT={schema:"public"},bT={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},_T={};function Xi(e){"@babel/helpers - typeof";return Xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xi(e)}function ST(e,t){if(Xi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Xi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ET(e){var t=ST(e,"string");return Xi(t)=="symbol"?t:t+""}function kT(e,t,r){return(t=ET(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sp(Object(r),!0).forEach(function(n){kT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const CT=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),TT=()=>Headers,RT=(e,t,r)=>{const n=CT(r),s=TT();return async(i,o)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let u=new s(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),n(i,ye(ye({},o),{},{headers:u}))}};function PT(e){return e.endsWith("/")?e:e+"/"}function NT(e,t){var r,n;const{db:s,auth:i,realtime:o,global:a}=e,{db:l,auth:u,realtime:c,global:f}=t,h={db:ye(ye({},l),s),auth:ye(ye({},u),i),realtime:ye(ye({},c),o),storage:{},global:ye(ye(ye({},f),a),{},{headers:ye(ye({},(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:async()=>""};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}function OT(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");
205if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(PT(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var AT=class extends dT{constructor(e){super(e)}},jT=class{constructor(e,t,r){var n,s;this.supabaseUrl=e,this.supabaseKey=t;const i=OT(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const o=`sb-${i.hostname.split(".")[0]}-auth-token`,a={db:xT,realtime:_T,auth:ye(ye({},bT),{},{storageKey:o}),global:wT},l=NT(r??{},a);if(this.storageKey=(n=l.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(s=l.global.headers)!==null&&s!==void 0?s:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(c,f)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(f)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=l.auth)!==null&&u!==void 0?u:{},this.headers,l.global.fetch)}this.fetch=RT(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(ye({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(c=>this.realtime.setAuth(c)).catch(c=>console.warn("Failed to set initial Realtime auth token:",c)),this.rest=new dk(new URL("rest/v1",i).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch}),this.storage=new iC(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new ok(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,r)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,r;if(e.accessToken)return await e.accessToken();const{data:n}=await e.auth.getSession();return(t=(r=n.session)===null||r===void 0?void 0:r.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:s,storageKey:i,flowType:o,lock:a,debug:l,throwOnError:u},c,f){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new AT({url:this.authUrl.href,headers:ye(ye({},h),c),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:s,flowType:o,lock:a,debug:l,throwOnError:u,fetch:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(d=>d.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new Rk(this.realtimeUrl.href,ye(ye({},e),{},{params:ye(ye({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const IT=(e,t,r)=>new jT(e,t,r);function LT(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const r=t.match(/^v(\d+)\./);return r?parseInt(r[1],10)<=18:!1}LT()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const $T="https://umdwtnyunenvpbjqzcnv.supabase.co",DT="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InVtZHd0bnl1bmVudnBianF6Y252Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzM2OTQzNTAsImV4cCI6MjA4OTI3MDM1MH0.hhuqcuuVRFLJM6uS1H0WRZ60k4yFqGoLsETV-ehgDx8",Ep=IT($T,DT,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}});function MT(){const{toast:e}
205=Gg(),t=lE(),[r,n]=b.useState({fullName:"",email:"",phone:"",ownsProperty:"",numberOfDoors:""}),[s,i]=b.useState(!1),o=(l,u)=>{n(c=>({...c,[l]:u}))},a=async l=>{if(l.preventDefault(),i(!0),!r.fullName||!r.email||!r.phone||!r.ownsProperty||!r.numberOfDoors){e({title:"Please fill in all fields",description:"All fields are required to complete your submission.",variant:"destructive"}),i(!1);return}try{const{error:u}=await Ep.from("property_leads").insert({full_name:r.fullName,email:r.email,phone:r.phone,owns_property:r.ownsProperty,number_of_doors:r.numberOfDoors});if(u)throw u;if(!(r.ownsProperty==="multifamily-small"&&r.numberOfDoors==="1")){const f=r.ownsProperty==="multifamily"||r.ownsProperty==="mixed",w={additionalInfo:`Asset type: ${r.ownsProperty}, Total units: ${r.numberOfDoors}`,utmSource:"MFR UGC Facebook Landing",opportunityRecordType:"multi-family",slug:"multifamily"},{error:g}=await Ep.functions.invoke("create-lead",{body:{fullName:r.fullName,email:r.email,phoneNumber:r.phone,source:"inbound",transactionType:"TRANSACTION_TYPE_CONTACT_INFORMATION",answers:w}});if(g)throw g}t("/thank-you")}catch(u){console.error("Submission error:",u),e({title:"Submission failed",description:"Please try again or contact support.",variant:"destructive"})}finally{i(!1)}};return v.jsxs(Av,{className:"w-full max-w-md mx-auto shadow-strong border-0 bg-card",children:[v.jsx(jv,{className:"text-center pb-6",children:v.jsx(Iv,{className:"text-2xl font-playfair font-bold text-foreground",children:"Request Initial Evaluation"})}),v.jsx(Lv,{children:v.jsxs("form",{onSubmit:a,className:"space-y-5",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx(st,{htmlFor:"fullName",className:"text-sm font-outfit font-medium text-foreground",children:"Full Name *"}),v.jsx(oa,{id:"fullName",type:"text",value:r.fullName,onChange:l=>o("fullName",l.target.value),placeholder:"Enter your full name",className:"transition-all duration-200 focus:shadow-soft",required:!0})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(st,{htmlFor:"email",className:"text-sm font-outfit font-medium text-foreground",children:"Email Address *"}),v.jsx(oa,{id:"email",type:"email",value:r.email,onChange:l=>o("email",l.target.value),placeholder:"Enter your email",className:"transition-all duration-200 focus:shadow-soft",required:!0})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(st,{htmlFor:"phone",className:"text-sm font-outfit font-medium text-foreground",children:"Phone Number *"}),v.jsx(oa,{id:"phone",type:"tel",value:r.phone,onChange:l=>o("phone",l.target.value),placeholder:"Enter your phone number",className:"transition-all duration-200 focus:shadow-soft",required:!0})]}),v.jsxs("div",{className:"space-y-3",children:[v.jsx(st,{className:"text-sm font-outfit font-medium text-foreground",children:"What type of rental assets do you own? *"}),v.jsxs(Sc,{value:r.ownsProperty,onValueChange:l=>o("ownsProperty",l),className:"space-y-2",children:[v.jsxs("div",{className:"flex items-center space-x-3",children:[v.jsx(Rr,{value:"multifamily-small",id:"multifamily-small"}),v.jsx(st,{htmlFor:"multifamily-small",className:"text-sm font-outfit text-foreground cursor-pointer",children:"Single Family Homes, Condos, Duplex, Triplex, Fourplexes"})]}),v.jsxs("div",{className:"flex items-center space-x-3",children:[v.jsx(Rr,{value:"multifamily",id:"multifamily"}),v.jsx(st,{htmlFor:"multifamily",className:"text-sm font-outfit text-foreground cursor-pointer",children:"Multifamily/Large Apartment Buildings (>5 units)"})]}),v.jsxs("div",{className:"flex items-center space-x-3",children:[v.jsx(Rr,{value:"mixed",id:"mixed"}),v.jsx(st,{htmlFor:"mixed",className:"text-sm font-outfit text-foreground cursor-pointer",children:"Mixed Portfolio/Both"})]})]})]}),v.jsxs("div",{className:"space-y-3",children:[v.jsx(st,{className:"text-sm font-outfit font-medium text-foreground",children:"How many total units? *"}),v.jsxs(Sc,{value:r.numberOfDoors,onValueChange:l=>o("numberOfDoors",l),className:"space-y-2",children:[v.jsxs("div",{className:"flex items-center space-x-3",children:[v.jsx(Rr,{value:"1",id:"units-1"}),v.jsx(st,{htmlFor:"units-1",className:"text-sm font-outfit text-foreground cursor-pointer",children:"1"})]}),v.jsxs("div",{className:"flex items-center space-x-3",children:[v.jsx(Rr,{value:"2–4",id:"units-2-4"}),v.jsx(st,{htmlFor:"units-2-4",className:"text-sm font-outfit text-foreground cursor-pointer",children:"2–4"})]}),v.jsxs("div",{className:"flex items-center space-x-3",children:[v.jsx(Rr,{value:"5–10",id:"units-5-10"}),v.jsx(st,{htmlFor:"units-5-10",className:"text-sm font-outfit text-foreground cursor-pointer",children:"5–10"})]}),v.jsxs("div",{className:"flex items-center space-x-3",children:[v.jsx(Rr,{value:"11+",id:"units-11"}),v.jsx(st,{htmlFor:"units-11",className:"text-sm font-outfit text-foreground cursor-pointer",children:"11+"})]})]})]}),v.jsx(Jd,{type:"submit",variant:"hero",size:"lg",className:"w-full mt-6",disabled:s,children:s?"Submitting...":"Submit"}),v.jsxs("p",{className:"text-xs font-outfit text-muted-foreground text-center mt-4",children:["By clicking 'Submit' you agree to the use of your data in accordance with Flock Home's"," ",v.jsx("a",{href:"https://flockhomes.com/privacy/",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Privacy Notice"}),", including for marketing purposes."]})]})})]})}const UT=[{icon:Bt,value:"1,096",label:"Homes"},{icon:rb,value:"$259M",label:"Portfolio Value"},{icon:Xx,value:"$7.8M",label:"Cash Flow Paid Out*"}];function FT(){return v.jsxs("div",{className:"space-y-6",children:[v.jsx("p",{className:"text-center text-sm md:text-base font-outfit font-medium text-muted-foreground uppercase tracking-wide",children:"Flock Fund Performance"}),v.jsx("div",{className:"grid grid-cols-3 gap-6 md:gap-12",children:UT.map(e=>v.jsxs("div",{className:"text-center",children:[v.jsx("div",{className:"flex justify-center mb-2",children:v.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:v.jsx(e.icon,{className:"w-6 h-6 md:w-8 md:h-8 text-primary"})})}),v.jsx("div",{className:"text-2xl md:text-4xl font-playfair font-bold text-foreground mb-1",children:e.value}),v.jsx("div",{className:"text-xs md:text-sm font-outfit text-muted-foreground",children:e.label})]},e.label))})]})}const zT="/assets/stan-CGXVQV9v.png",BT="/assets/wayne-vicki-DucpGK5L.png",VT="/assets/josh-DXbiu5aW.png",HT=[{quote:"We were the perfect fit for Flock. We have been landlords and businesspeople for a long time. We were tired from that and wanted to retire. We wanted to hand over our properties and still hold value.",fullStory:"Jack and Vicki began their journey as landlords 30 years ago. After managing 10+ rentals across Arizona and Seattle, they were ready to retire from active property management.",author:"Wayne & Vicki",location:"Phoenix",image:BT,stats:{rentals:"10+",yearsAsLandlord:"30+"}},{quote:"I had been in the business a long time and I wanted to retire. I didn't want to pay tax penalties, and I wanted to be able to hand off assets to my heirs.",fullStory:"A homebuilder by trade, Stan built a portfolio of over 45 properties over 50 years. He used the 721 exchange to transfer close to 20 properties to Flock.",author:"Stan",location:"Kansas City",image:zT,stats:{rentals:"45+",yearsAsLandlord:"50+"}},{quote:"The best way to describe my experience with Flock is 'peace of mind.' It allows me to keep my equity, still earn passive income, and not have to do anything for it. It solved my problem.",fullStory:"Josh began his real estate journey with a renovated row house. Over 20 years, his portfolio expanded across four states to 13 properties. The stress of managing them became overwhelming.",author:"Josh",location:"Denver",image:VT,stats:{rentals:"13",yearsAsLandlord:"20+"}}];function WT(){return v.jsx("section",{className:"py-20 md:py-28 bg-background",children:v.jsxs("div",{className:"max-w-6xl mx-auto px-6",children:[v.jsxs("div",{className:"text-center mb-12 md:mb-16",children:[v.jsx("h2",{className:"text-3xl md:text-4xl font-playfair font-bold text-foreground mb-4",children:"What Our Clients Say"}),v.jsx("p",{className:"text-lg font-outfit text-muted-foreground max-w-2xl mx-auto",children:"Real stories from property owners who transitioned to stress-free, passive ownership with Flock."})]}),v.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:HT.map((e,t)=>v.jsxs("div",{className:"bg-card rounded-2xl p-6 md:p-8 shadow-soft border border-border relative flex flex-col",children:[v.jsx(ib,{className:"w-10 h-10 text-primary/20 absolute top-6 right-6"}),v.jsxs("div",{className:"mb-6 flex items-center gap-4",children:[e.image?v.jsx("img",{src:e.image,alt:e.author,className:"w-20 h-20 rounded-full object-cover flex-shrink-0"}):v.jsx("div",{className:"w-20 h-20 rounded-full bg-secondary flex items-center justify-center flex-shrink-0",children:v.jsx("span",{className:"font-playfair font-bold text-primary text-2xl",children:e.author.charAt(0)})}),v.jsxs("div",{children:[v.jsx("div",{className:"font-playfair font-bold text-xl text-foreground mb-1",children:e.author}),v.jsxs("div",{className:"flex items-center gap-1 text-sm font-outfit text-muted-foreground",children:[v.jsx(sb,{className:"w-3 h-3"}),e.location]})]})]}),v.jsxs("p",{className:"font-outfit text-foreground mb-4 leading-relaxed text-sm md:text-base italic flex-1",children:['"',e.quote,'"']}),v.jsx("p",{className:"font-outfit text-muted-foreground text-sm mb-6 leading-relaxed",children:e.fullStory}),v.jsx("div",{className:"border-t border-border pt-4 mt-auto",children:v.jsxs("div",{className:"flex gap-6",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Bt,{className:"w-4 h-4 text-primary"}),v.jsxs("span",{className:"text-sm font-outfit",children:[v.jsx("span",{className:"font-bold text-foreground",children:e.stats.rentals}),v.jsx("span",{className:"text-muted-foreground",children:" rentals"})]})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(tb,{className:"w-4 h-4 text-primary"}),v.jsxs("span",{className:"text-sm font-outfit",children:[v.jsx("span",{className:"font-bold text-foreground",children:e.stats.yearsAsLandlord}),v.jsx("span",{className:"text-muted-foreground",children:" years as landlord"})]})]})]})})]},t))})]})})}function qT(){return v.jsx("section",{className:"py-20 md:py-28 bg-secondary/30",children:v.jsxs("div",{className:"max-w-6xl mx-auto px-6",children:[v.jsx("div",{className:"text-center mb-12 md:mb-16",children:v.jsx("h2",{className:"text-3xl md:text-4xl font-playfair font-bold text-foreground",children:"The Tax-Deferred 721 Exchange: How It Works"})}),v.jsxs("div",{className:"hidden md:flex items-center justify-center gap-6 lg:gap-12",children:[v.jsxs("div",{className:"flex flex-col items-center text-center",children:[v.jsx("div",{className:"mb-6",children:v.jsxs("div",{className:"flex gap-2",children:[v.jsx(Bt,{className:"w-12 h-12 lg:w-16 lg:h-16 text-primary",strokeWidth:1.5}),v.jsx(Bt,{className:"w-12 h-12 lg:w-16 lg:h-16 text-primary",strokeWidth:1.5}),v.jsx(Bt,{className:"w-12 h-12 lg:w-16 lg:h-16 text-primary",strokeWidth:1.5})]})}),v.jsxs("p",{className:"font-outfit text-foreground font-medium text-lg",children:["Your",v.jsx("br",{}),"real estate"]})]}),v.jsxs("div",{className:"flex flex-col items-center",children:[v.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[v.jsx("div",{className:"w-20 lg:w-32 h-px bg-muted-foreground
205/40"}),v.jsx(ci,{className:"w-5 h-5"})]}),v.jsxs("p",{className:"font-outfit text-sm lg:text-base text-muted-foreground mt-3",children:["Exchange",v.jsx("br",{}),"property"]})]}),v.jsxs("div",{className:"flex flex-col items-center text-center",children:[v.jsx("div",{className:"mb-6",children:v.jsx("div",{className:"grid grid-cols-5 gap-1",children:[...Array(15)].map((e,t)=>v.jsx(Bt,{className:"w-7 h-7 lg:w-9 lg:h-9 text-primary",strokeWidth:1.5},t))})}),v.jsxs("p",{className:"font-outfit text-foreground font-medium text-lg",children:["Flock's Private",v.jsx("br",{}),"Fund"]})]}),v.jsxs("div",{className:"flex flex-col items-center",children:[v.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[v.jsx("div",{className:"w-20 lg:w-32 h-px bg-muted-foreground/40"}),v.jsx(ci,{className:"w-5 h-5"})]}),v.jsxs("p",{className:"font-outfit text-sm lg:text-base text-muted-foreground mt-3",children:["Receive",v.jsx("br",{}),"shares"]})]}),v.jsxs("div",{className:"flex flex-col items-center text-center",children:[v.jsx("div",{className:"mb-6",children:v.jsx(Eh,{className:"w-20 h-20 lg:w-24 lg:h-24 text-primary",strokeWidth:1.5})}),v.jsxs("p",{className:"font-outfit text-foreground font-medium text-lg",children:["Appreciation &",v.jsx("br",{}),"income"]})]})]}),v.jsxs("div",{className:"md:hidden space-y-8",children:[v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx("div",{className:"flex-shrink-0",children:v.jsxs("div",{className:"flex gap-1",children:[v.jsx(Bt,{className:"w-6 h-6 text-primary",strokeWidth:1.5}),v.jsx(Bt,{className:"w-6 h-6 text-primary",strokeWidth:1.5}),v.jsx(Bt,{className:"w-6 h-6 text-primary",strokeWidth:1.5})]})}),v.jsx("div",{children:v.jsx("p",{className:"font-outfit text-foreground font-medium",children:"Your real estate"})})]}),v.jsxs("div",{className:"flex items-center gap-4 pl-8",children:[v.jsxs("div",{className:"flex flex-col items-center",children:[v.jsx("div",{className:"h-8 w-px bg-muted-foreground/40"}),v.jsx(ci,{className:"w-4 h-4 text-muted-foreground rotate-90"})]}),v.jsx("p",{className:"font-outfit text-sm text-muted-foreground",children:"Exchange property"})]}),v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx("div",{className:"flex-shrink-0",children:v.jsx("div",{className:"grid grid-cols-4 gap-0.5",children:[...Array(12)].map((e,t)=>v.jsx(Bt,{className:"w-4 h-4 text-primary",strokeWidth:1.5},t))})}),v.jsx("div",{children:v.jsx("p",{className:"font-outfit text-foreground font-medium",children:"Flock's Private Fund"})})]}),v.jsxs("div",{className:"flex items-center gap-4 pl-8",children:[v.jsxs("div",{className:"flex flex-col items-center",children:[v.jsx("div",{className:"h-8 w-px bg-muted-foreground/40"}),v.jsx(ci,{className:"w-4 h-4 text-muted-foreground rotate-90"})]}),v.jsx("p",{className:"font-outfit text-sm text-muted-foreground",children:"Receive shares"})]}),v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx("div",{className:"flex-shrink-0",children:v.jsx(Eh,{className:"w-12 h-12 text-primary",strokeWidth:1.5})}),v.jsx("div",{children:v.jsx("p",{className:"font-outfit text-foreground font-medium",children:"Appreciation & income"})})]})]})]})})}const KT="/assets/andreessen-horowitz-B2YSviAJ.svg",GT="data:image/svg+xml,%3csvg%20width='116'%20height='28'%20viewBox='0%200%20116%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_7143_7348)'%3e%3cpath%20d='M7.46875%200.351562V3.30575H9.54459V3.30645C9.57764%203.30574%209.61138%203.30504%209.64436%203.30504C13.853%203.30504%2017.2651%206.73276%2017.2651%2010.9608C17.2651%2015.1888%2013.853%2018.6165%209.64436%2018.6165C9.61138%2018.6165%209.57764%2018.6158%209.54459%2018.6151V18.6257H7.46875V21.5799H20.4678V0.351562H7.46875Z'%20fill='%23212121'/%3e%3cpath%20d='M4.2638%203.30664H1.0625V21.5815H4.2638V3.30664Z'%20fill='%23212121'/%3e%3cpath%20d='M48.2188%209.66335C48.2188%209.66335%2047.3554%209.66404%2046.3579%209.66404C44.5208%209.66404%2043.1292%2011.1933%2043.1292%2014.3049V21.5824H39.9531V6.81641H43.1292V10.5871C43.7853%208.00273%2045.0456%206.81641%2047.1973%206.81641C47.8317%206.81641%2048.2153%206.81641%2048.2153%206.81641L48.2188%209.66335Z'%20fill='%23212121'/%3e%3cpath%20d='M99.5786%209.66335C99.5786%209.66335%2098.2497%209.66404%2097.252%209.66404C95.4153%209.66404%2094.0238%2011.1933%2094.0238%2014.3049V21.5824H90.8477V6.81641H94.0238V10.5871C94.6798%208.00273%2095.9399%206.81641%2098.0918%206.81641H98.3833L99.5786%209.66335Z'%20fill='%23212121'/%3e%3cpath%20d='M52.159%2021.581H48.957V6.81501H52.159V21.581ZM52.1569%203.29977H48.962V0.355469H52.1569V3.29977Z'%20fill='%23212121'/%3e%3cpath%20d='M56.2581%2021.5795H53.082V6.81349H56.2581V10.268C57.1769%207.7627%2058.8566%206.52344%2061.1924%206.52344C63.6856%206.52344%2065.2873%207.92077%2065.8648%2010.2151C66.8623%207.78949%2068.6734%206.52344%2071.0091%206.52344C74.2896%206.52344%2076.0492%208.94902%2076.0492%2012.5355V21.5795H72.8731V13.3528C72.8731%2010.8214%2072.1383%209.18683%2069.7229%209.18683C67.4131%209.18683%2066.1535%2011.0062%2066.1535%2014.2497V21.5802H62.9775V13.3267C62.9775%2010.7691%2062.2426%209.18683%2059.8275%209.18683C57.5176%209.18683%2056.2581%2011.0592%2056.2581%2014.302V21.5795Z'%20fill='%23212121'/%3e%3cpath%20d='M106.156%2027.2783H102.848L10
2055.447%2021.3453L99.3047%206.81641H102.585L106.496%2016.3091L107.1%2018.2605L107.756%2016.3091L111.588%206.81641H114.816L106.156%2027.2783Z'%20fill='%23212121'/%3e%3cpath%20d='M26.8543%2013.7502V21.581H23.6523V0.355469H31.238C36.4091%200.355469%2039.1383%202.86081%2039.1649%206.84182C39.1649%2011.1927%2036.0677%2013.7502%2031.396%2013.7502H26.8543ZM26.8543%203.30824V11.2717H31.1065C34.3086%2011.2717%2036.0149%209.9534%2036.0149%207.26384C36.0149%204.46916%2034.3086%203.30894%2031.1333%203.30894H26.8543V3.30824Z'%20fill='%23212121'/%3e%3cpath%20d='M89.8809%2017.4017C89.8809%2017.4002%2089.8809%2017.3988%2089.8809%2017.3974V11.8101C89.8809%208.35776%2087.6246%206.53906%2083.9517%206.53906C80.6991%206.53906%2078.1018%208.09379%2076.8683%2011.151L79.7278%2012.0734C79.8461%2011.7417%2079.9797%2011.4347%2080.1334%2011.1538C80.8709%209.80868%2082.0398%209.0691%2083.8195%209.0691C86.0236%209.0691%2086.8363%2010.0176%2086.8363%2011.1249C86.8363%2012.2315%2085.9443%2012.6796%2083.3213%2013.2329C80.8027%2013.7601%2079.4384%2014.1291%2078.3892%2014.7876C77.2614%2015.499%2076.5273%2016.4743%2076.5273%2018.161C76.5273%2020.4278%2078.1804%2021.8506%2081.1436%2021.8506C83.7673%2021.8506%2085.945%2020.4271%2086.8627%2018.029C86.8627%2019.1963%2086.9142%2021.5796%2086.9142%2021.5796H89.8795V17.4017H89.8809ZM86.9434%2014.6564C86.9434%2017.1603%2084.9237%2019.4525%2082.3522%2019.4525C80.6204%2019.4525%2079.7292%2018.7941%2079.7292%2017.6338C79.7292%2016.1052%2080.9878%2015.578%2083.6122%2014.9986C85.5526%2014.5766%2086.4974%2014.2083%2086.9441%2013.602L86.9434%2014.6564Z'%20fill='%23212121'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_7143_7348'%3e%3crect%20width='114.799'%20height='27.83'%20fill='white'%20transform='translate(0.507812%200.130859)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",QT="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.681818'%20y='0.681818'%20width='38.6364'%20height='38.6364'%20stroke='%23212121'%20stroke-width='1.36364'/%3e%3cpath%20d='M29.4567%2023.6914C30.2792%2023.6914%2031.0043%2023.8295%2031.632%2024.1057C32.2706%2024.3724%2032.763%2024.7581%2033.1093%2025.2628C33.4556%2025.7676%2033.6288%2026.3533%2033.6288%2027.02C33.6288%2027.6581%2033.4556%2028.2247%2033.1093%2028.72C32.763%2029.2057%2032.2868%2029.5771%2031.6807%2029.8343L33.921%2033.6914H31.2262L29.3268%2030.3343H27.2651V33.6914H24.8301V23.6914H29.4567ZM27.2651%2028.5485H29.2619C29.8355%2028.5485%2030.29%2028.4105%2030.6255%2028.1343C30.9719%2027.8581%2031.145%2027.4866%2031.145%2027.02C31.145%2026.5438%2030.9719%2026.1676%2030.6255%2025.8914C30.29%2025.6152%2029.8355%2025.4771%2029.2619%2025.4771H27.2651V28.5485Z'%20fill='%23212121'/%3e%3c/svg%3e",JT="/assets/susa-DFllD_69.png",YT="/assets/hsbc-C46BLIyt.png",XT="data:image/svg+xml,%3csvg%20width='80'%20height='32'%20viewBox='0%200%2080%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_7143_7378)'%3e%3cpath%20d='M62.2348%200.00390625V15.9612C61.678%2016.3879%2061.207%2016.8572%2060.7359%2017.3692V0.00390625H42.9628V14.5532H41.5067V0.00390625H23.7765V14.5532H22.2776V0.00390625H4.54743V16.6012L0.0078125%2031.6626H3.99068L6.00353%2025.0066H6.56028L9.85792%2031.6626H14.6545L11.4425%2025.0066H18.723L16.7102%2031.6626H21.0785L23.0913%2025.0066H24.0335H25.404H25.5324H33.7551L31.8279%2031.6626H36.1962L38.0806%2025.0066H40.0506L40.0935%2031.6626H43.7765L48.0164%2025.0066H50.8001L49.3868%2031.6626H53.7123L55.1256%2025.0066H57.6095C57.5239%2027.0546%2058.0378%2028.9319%2059.4082%2030.1692C61.0785%2031.7052%2063.6481%2032.0039%2065.5753%2032.0039C68.1877%2032.0039%2070.8858%2031.6199%2073.5838%2031.0226L75.0828%2025.0066H80.0078V0.00390625H62.2348ZM21.678%2015.4066L21.4211%2016.2599L19.0656%2024.0679L18.98%2024.3239H11.1855L10.586%2023.0439L18.9371%2014.5106H13.5838L7.03137%2021.5932L9.12987%2014.5532H5.147V0.643906H21.6352V15.4066H21.678ZM26.2605%2022.0199C26.0892%2022.0199%2025.9179%2022.0626%2025.7466%2022.0626C25.4896%2022.0626%2025.3183%2022.0626%2025.147%2022.0626H24.0763L24.5474%2020.2706L24.7616%2019.3746L25.3183%2017.2839C25.5
205753%2017.2839%2025.7894%2017.2839%2026.0464%2017.2839H26.8601C28.2733%2017.2839%2029.1299%2017.3692%2029.4725%2017.7959C29.7294%2018.1372%2029.6866%2018.6919%2029.3868%2019.5879C28.9157%2021.0812%2028.2733%2021.8919%2026.2605%2022.0199ZM38.2519%2024.3666L40.0078%2018.2226L40.0506%2024.3666H38.2519ZM40.9072%2014.5532H36.7958L33.9693%2024.3666H29.5581C31.7851%2023.5559%2033.1556%2021.9772%2033.5838%2019.6306C33.9264%2017.8386%2033.7551%2016.6439%2033.0271%2015.7479C31.9136%2014.4252%2029.6866%2014.5106%2027.7166%2014.5106C27.374%2014.5106%2024.4618%2014.5106%2024.4618%2014.5106V0.643906H40.95V14.5532H40.9072ZM50.8858%2024.3666H48.4018L52.1706%2018.4786L50.8858%2024.3666ZM60.1363%2014.8092V18.2226C58.98%2019.8012%2058.2519%2021.5506%2057.9521%2022.9159C57.8237%2023.3852%2057.738%2023.8972%2057.6952%2024.3666H55.2541L57.3097%2014.5532H50.329L44.0763%2024.3666H43.6052V0.643906H60.0935V14.8092H60.1363ZM69.6438%2028.3772C68.7016%2028.5479%2067.7594%2028.6759%2066.8601%2028.6759C64.4618%2028.6759%2062.8344%2027.5666%2062.7915%2025.0066H70.4575L69.6438%2028.3772ZM79.3654%2024.3666H75.2112L75.8965%2021.6359H67.5881L66.9029%2024.3666H62.8772V23.8119C62.92%2023.5132%2063.0057%2023.1719%2063.0913%2022.8306C63.8194%2019.8866%2065.7894%2016.9426%2069.1299%2016.9426C70.4575%2016.9426%2071.7851%2017.4546%2071.6138%2019.2892H76.5817C76.7958%2018.4359%2077.0956%2016.9852%2076.1534%2015.6199C75.0828%2014.1692%2072.9843%2013.5719%2070.2005%2013.5719C68.2305%2013.5719%2065.3611%2013.8706%2062.8772%2015.4919V0.643906H79.3654V24.3666Z'%20fill='%23212121'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_7143_7378'%3e%3crect%20width='80'%20height='32'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",ZT=[{name:"Andreessen Horowitz",logo:KT},{name:"Primary",logo:GT},{name:"Robinhood",logo:QT},{name:"SUSA Ventures",logo:JT},{name:"HSBC",logo:YT},{name:"KPMG",logo:XT}],eR=[{icon:cc,title:"8–10% Target Returns",description:"Annual target returns aligned with U.S. housing market fundamentals, providing consistent income without the volatility of stocks."},{icon:dc,title:"95%+ Occupancy Rate",description:"Stabilized occupancy across our professionally managed portfolio ensures reliable cash flow and minimized vacancy risk."},{icon:k0,title:"Tax-Deferred Contribution",description:"Under IRS Section 721, contributing your property to Flock's Fund is not a taxable event. Your original basis carries over, deferring capital gains."},{icon:cc,title:"Ongoing Tax Advantages",description:"Continue earning rental income and share in depreciation benefits without an immediate tax hit. You're protected from forced capital gains."},{icon:dc,title:"Step-Up in Basis for Heirs",description:"Upon inheritance, your partnership interest is stepped up to fair market value, eliminating unrealized gains for your heirs."},{icon:nb,title:"Simplified Tax Filing",description:"Receive one consolidated annual tax packet prepared by KPMG, including federal K-1, K-3, and applicable state K-1s by April 1."}];function tR(){return v.jsx("section",{className:"py-20 md:py-28 bg-secondary/30",children:v.jsxs("div",{className:"max-w-6xl mx-auto px-6",children:[v.jsxs("div",{className:"text-center mb-12 md:mb-16",children:[v.jsx("h2",{className:"text-3xl md:text-4xl font-playfair font-bold text-foreground mb-4",children:"Why Property Owners Trust Flock"}),v.jsx("p",{className:"text-lg font-outfit text-muted-foreground max-w-2xl mx-auto",children:"A smarter way to own real estate—with significant tax advantages and estate planning benefits."})]}),v.jsxs("div",{className:"bg-card rounded-2xl p-8 md:p-10 border border-border mb-12 md:mb-16",children:[v.jsx("h3",{className:"text-xl font-playfair font-bold text-foreground mb-8 text-center",children:"Fund Performance & Tax Advantages"}),v.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:eR.map((e,t)=>v.jsxs("div",{className:"bg-background rounded-xl p-6 border border-border",children:[v.jsx("div",{className:"bg-primary/10 p-3 rounded-xl w-fit mb-4",children:v.jsx(e.icon,{className:"w-6 h-6 text-primary"})}),v.jsx("h4",{className:"text-lg font-playfair font-bold text-foreground mb-2",children:e.title}),v.jsx("p",{className:"text-sm font-outfit text-muted-foreground leading-relaxed",children:e.description})]},t))})]}),v.jsxs("div",{className:"bg-card rounded-2xl border border-border p-8 md:p-10",children:[v.jsx("h3",{className:"text-xl font-playfair font-bold text-foreground mb-8 text-center",children:"Key Investors & Service Providers"}),v.jsx("div",{className:"grid grid-cols-3 md:grid-cols-6 gap-6 md:gap-8 items-center",children:ZT.map((e,t)=>v.jsx("div",{className:"flex items-center justify-center",children:v.jsx("img",{src:e.logo,alt:e.name,className:"h-10 md:h-14 w-auto object-contain"})},t))})]})]})})}const rR="/assets/kara-evaluation-D90P6Qk2.png",nR="/assets/process-step-2-DYvlDXiP.png",sR="/assets/process-step-3-GLvj3_J7.png",iR="/assets/process-step-4-BFcChMfR.png",oR=[{number:"01",label:"Flock Evaluation",title:"We Handle the Valuation: Understanding Your Property and Your Goals",description:"We discuss your goals and use a robust methodology to value your property.",image:rR},{number:"02",label:"Process",title:"We Handle the Details: Due Diligence, Inspections, and Full Transparency",de
205scription:"Our team manages everything from start to finish. You have a dedicated Flock MFR Director to advise you throughout.",image:nR},{number:"03",label:"Exchange Property",title:"We Handle the Closing: Seamless Transfers from Start to Finish",description:"Our team completes your exchange process seamlessly. You're now officially a member of Flock.",image:sR},{number:"04",label:"Income & Growth",title:"We Handle the Rest: Steady Earnings and Portfolio Growth Over Time",description:"Earn quarterly income, gain long-term appreciation, and grow wealth effortlessly without direct ownership burdens.",image:iR}];function aR(){return v.jsx("section",{className:"py-20 md:py-28 bg-background",children:v.jsxs("div",{className:"max-w-6xl mx-auto px-6",children:[v.jsxs("div",{className:"text-center mb-12 md:mb-16",children:[v.jsx("h2",{className:"text-3xl md:text-4xl font-playfair font-bold text-foreground mb-4",children:"Our Process"}),v.jsx("p",{className:"text-lg font-outfit text-muted-foreground max-w-2xl mx-auto",children:"From Rental Owner to Passive Investor in Just Four Simple Steps"})]}),v.jsx("div",{className:"space-y-16 md:space-y-24",children:oR.map((e,t)=>v.jsxs("div",{className:`flex flex-col ${t%2===1?"md:flex-row-reverse":"md:flex-row"} gap-8 md:gap-16 items-center`,children:[v.jsx("div",{className:"w-full md:w-1/2",children:v.jsx("div",{className:"bg-secondary/50 rounded-2xl p-4 md:p-6",children:v.jsx("img",{src:e.image,alt:e.title,className:"w-full h-auto rounded-xl"})})}),v.jsxs("div",{className:"w-full md:w-1/2 space-y-4",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("span",{className:"text-4xl md:text-5xl font-playfair font-bold text-primary/30",children:e.number}),v.jsx("span",{className:"text-sm font-outfit font-semibold text-primary uppercase tracking-wide",children:e.label})]}),v.jsx("h3",{className:"text-xl md:text-2xl font-playfair font-bold text-foreground leading-tight",children:e.title}),v.jsx("p",{className:"font-outfit text-muted-foreground leading-relaxed",children:e.description})]})]},e.number))})]})})}function lR(){const e=()=>{const t=document.getElementById("registration-form");t&&(t.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{const r=document.getElementById("fullName");r&&r.focus()},500))};return v.jsx("section",{className:"py-20 md:py-28 bg-primary text-primary-foreground",children:v.jsxs("div",{className:"max-w-4xl mx-auto px-6 text-center",children:[v.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-playfair font-bold mb-6",children:"Ready to Simplify Your Rental Portfolio?"}),v.jsx("p",{className:"text-lg md:text-xl font-outfit opacity-90 mb-8 max-w-2xl mx-auto",children:"Book a free evaluation to see how much passive income your properties could generate—without the headaches."}),v.jsxs(Jd,{onClick:e,size:"lg",className:"bg-white text-primary hover:bg-white/90 font-outfit font-semibold text-lg px-8 py-6",children:["Get Your Free Evaluation",v.jsx(ci,{className:"ml-2 w-5 h-5"})]})]})})}const Ic="/assets/flock-logo-DiNFnQh2.png",uR=()=>v.jsxs("div",{className:"min-h-screen bg-background",children:[v.jsxs("section",{className:"relative overflow-hidden",children:[v.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-secondary/50 via-background to-accent/20"}),v.jsxs("div",{className:"relative max-w-7xl mx-auto px-6 pt-10 pb-20 md:pt-16 md:pb-32",children:[v.jsx("img",{src:Ic,alt:"Flock Homes",className:"h-10 md:h-12 mb-12"}),v.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-24 xl:gap-28 items-start",children:[v.jsxs("div",{className:"space-y-10",children:[v.jsxs("h1",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl xl:text-6xl font-playfair font-black text-foreground leading-tight",children:[v.jsx("span",{className:"bg-text-gradient bg-clip-text text-transparent",children:"Keep your Equity,"}),v.jsx("br",{}),v.jsx("span",{className:"text-foreground",children:"Lose the Landlord Hassles"})]}),v.jsx("p",{className:"text-xl md:text-2xl font-outfit font-bold text-primary mt-3 mb-6",children:"The tax-deferred 721 exit for Multifamily owners."}),v.jsx("p",{className:"text-lg md:text-xl font-outfit text-muted-foreground max-w-xl",children:"Transition your MFR units into a diversified, professionally managed portfolio."}),v.jsxs("div",{className:"grid grid-cols-3 gap-6 md:gap-10 mt-10",children:[v.jsxs("div",{className:"text-center",children:[v.jsx("div",{className:"bg-secondary/50 w-16 h-16 md:w-20 md:h-20 rounded-full flex items-center justify-center mx-auto mb-4",children:v.jsx(k0,{className:"w-7 h-7 md:w-9 md:h-9 text-primary"})}),v.jsx("h3",{className:"font-outfit font-semibold text-foreground text-base md:text-lg mb-2",children:"Tax-Deferred"}),v.jsx("p",{className:"font-outfit text-muted-foreground text-sm md:text-base leading-relaxed",children:"Defer capital gains taxes while transitioning your portfolio"})]}),v.jsxs("div",{className:"text-center",children:[v.jsx("div",{className:"bg-secondary/50 w-16 h-16 md:w-20 md:h-20 rounded-full flex items-center justify-center mx-auto mb-4",children:v.jsx(cc,{className:"w-7 h-7 md:w-9 md:h-9 text-primary"})}),v.jsx("h3",{className:"font-outfit font-semibold text-foreground text-base md:text-lg mb-2",children:"Diversified"}),v.jsx("p",{className:"font-outfit text-muted-foreground text-sm md:text-base leading-relaxed",children:"Own a share of multiple properties across different markets"})]}),v.jsxs("div",{className:"text-center",children:[v.jsx("div",{className:"bg-secondary/50 w-16 h-16 md:w-20 md:h-20 rounded-full flex items-center justify-center mx-auto mb-4",children:v.jsx(dc,{className:"w-7 h-7 md:w-9 md:h-9 text-primary"})}),v.jsx("h3",{className:"font-outfit font-semibold text-foreground text-base md:text-lg mb-2",children:"Hands-Off"}),v.jsx("p",{className:"font-outfit text-muted-foreground text-sm md:text-base leading-relaxed",children:"Professional management handles everything for you"})]})]})]}),v.jsx("div",{id:"registration-form",className:"lg:pl-16 xl:pl-20 mt-10 lg:mt-0",children:v.jsx(MT,{})})]}),v.jsx("div",{className:"mt-20 md:mt-28",children:v.jsx(FT,{})})]})]}),v.jsx(qT,{}),v.jsx(WT,{}),v.jsx(tR,{}),v.jsx(aR,{}),v.jsx(lR,{}),v.jsx("footer",{className:"bg-foreground text-primary-foreground py-16",children:v.jsx("div",{className:"max-w-6xl mx-auto px-6",children:v.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-6",children:[v.jsx("img",{src:Ic,alt:"Flock Homes",className:"h-8 brightness-0 invert"}),v.jsxs("p",{className:"text-sm font-outfit opacity-70 text-center md:text-right",children:["© ",new Date().getFullYear()," Flock Homes. All rights reserved."," ",v.jsx("a",{href:"https://flockhomes.com/privacy/",target:"_blank",rel:"noopener noreferrer",className:"underline hover:opacity-100",children:"Privacy Policy"})]})]})})})]}),cR=()=>v.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-6",children:v.jsx("div",{className:"max-w-2xl w-full mx-auto text-center",children:v.jsxs("div",{className:"space-y-6",children:[v.jsx("img",{src:Ic,alt:"Flock Homes",className:"h-10 mx-auto"}),v.jsx("div",{className:"w-20 h-20 mx-auto rounded-full bg-secondary/50 flex items-center justify-center",children:v.jsx(Zx,{className:"w-10 h-10 text-primary",strokeWidth:2.5})}),v.jsx("h1",{className:"text-4xl md:text-5xl font-playfair font-bold text-foreground",children:"Thank You"}),v.jsx("p",{className:"text-base md:text-lg font-outfit text-muted-foreground max-w-xl mx-auto",children:"We've received your information. If you qual
205ify for a 721 exchange, a Flock Homes advisor will reach out to schedule your consultation."})]})})}),dR=()=>{const e=Qd();return b.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),v.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-100",children:v.jsxs("div",{className:"text-center",children:[v.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),v.jsx("p",{className:"mb-4 text-xl text-gray-600",children:"Oops! Page not found"}),v.jsx("a",{href:"/",className:"text-blue-500 underline hover:text-blue-700",children:"Return to Home"})]})})},fR=new OS,hR=()=>v.jsx(jS,{client:fR,children:v.jsxs(aS,{children:[v.jsx(Bb,{}),v.jsx(x_,{}),v.jsx(TE,{children:v.jsxs(EE,{children:[v.jsx(ia,{path:"/",element:v.jsx(uR,{})}),v.jsx(ia,{path:"/thank-you",element:v.jsx(cR,{})}),v.jsx(ia,{path:"*",element:v.jsx(dR,{})})]})})]})});Kg(document.getElementById("root")).render(v.jsx(hR,{}));

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.