PageSourceSearch

https://smartcallerlive.ai/assets/index-BgpVYcqJ.js

js smartcallerlive.ai collected 2026-10-05 15:05:29 UTC 867,993 bytes, 452 lines download raw bytes

vendor: 4,140 bytes, lines 1-9
1var Eg=e=>{throw TypeError(e)};var zu=(e,t,n)=>t.has(e)||Eg("Cannot "+n);var P=(e,t,n)=>(zu(e,t,"read from private field"),n?n.call(e):t.get(e)),ue=(e,t,n)=>t.has(e)?Eg("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ne=(e,t,n,r)=>(zu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),rt=(e,t,n)=>(zu(e,t,"access private method"),n);var el=(e,t,n,r)=>({set _(s){ne(e,t,s,n)},get _(){return P(e,t,r)}});function zE(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function $0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var F0={exports:{}},Gc={},V0={exports:{}},ie={};/**
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 Da=Symbol.for("react.element"),WE=Symbol.for("react.portal"),HE=Symbol.for("react.fragment"),KE=Symbol.for("react.strict_mode"),qE=Symbol.for("react.profiler"),GE=Symbol.for("react.provider"),YE=Symbol.for("react.context"),QE=Symbol.for("react.forward_ref"),XE=Symbol.for("react.suspense"),JE=Symbol.for("react.memo"),ZE=Symbol.for("react.lazy"),Tg=Symbol.iterator;function eT(e){return e===null||typeof e!="object"?null:(e=Tg&&e[Tg]||e["@@iterator"],typeof e=="function"?e:null)}var U0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B0=Object.assign,z0={};function to(e,t,n){this.props=e,this.context=t,this.refs=z0,this.updater=n||U0}to.prototype.isReactComponent={};to.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")};to.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function W0(){}W0.prototype=to.prototype;function tm(e,t,n){this.props=e,this.context=t,this.refs=z0,this.updater=n||U0}var nm=tm.prototype=new W0;nm.constructor=tm;B0(nm,to.prototype);nm.isPureReactComponent=!0;var kg=Array.isArray,H0=Object.prototype.hasOwnProperty,rm={current:null},K0={key:!0,ref:!0,__self:!0,__source:!0};function q0(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)H0.call(t,r)&&!K0.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];s.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:Da,type:e,key:i,ref:o,props:s,_owner:rm.current}}function tT(e,t){return{$$typeof:Da,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function sm(e){return typeof e=="object"&&e!==null&&e.$$typeof===Da}function nT(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var _g=/\/+/g;function Wu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?nT(""+e.key):t.toString(36)}
vendor: 4,786 bytes, lines 9-17
9function Ll(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Da:case WE:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+Wu(o,0):r,kg(s)?(n="",e!=null&&(n=e.replace(_g,"$&/")+"/"),Ll(s,t,n,"",function(u){return u})):s!=null&&(sm(s)&&(s=tT(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(_g,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",kg(e))for(var l=0;l<e.length;l++){i=e[l];var c=r+Wu(i,l);o+=Ll(i,t,n,c,s)}else if(c=eT(e),typeof c=="function")for(e=c.call(e),l=0;!(i=e.next()).done;)i=i.value,c=r+Wu(i,l++),o+=Ll(i,t,n,c,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function tl(e,t,n){if(e==null)return e;var r=[],s=0;return Ll(e,r,"","",function(i){return t.call(n,i,s++)}),r}function rT(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var pt={current:null},Dl={transition:null},sT={ReactCurrentDispatcher:pt,ReactCurrentBatchConfig:Dl,ReactCurrentOwner:rm};function G0(){throw Error("act(...) is not supported in production builds of React.")}ie.Children={map:tl,forEach:function(e,t,n){tl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return tl(e,function(){t++}),t},toArray:function(e){return tl(e,function(t){return t})||[]},only:function(e){if(!sm(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ie.Component=to;ie.Fragment=HE;ie.Profiler=qE;ie.PureComponent=tm;ie.StrictMode=KE;ie.Suspense=XE;ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sT;ie.act=G0;ie.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=B0({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=rm.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)H0.call(t,c)&&!K0.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Da,type:e.type,key:s,ref:i,props:r,_owner:o}};ie.createContext=function(e){return e={$$typeof:YE,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:GE,_context:e},e.Consumer=e};ie.createElement=q0;ie.createFactory=function(e){var t=q0.bind(null,e);return t.type=e,t};ie.createRef=function(){return{current:null}};ie.forwardRef=function(e){return{$$typeof:QE,render:e}};ie.isValidElement=sm;ie.lazy=function(e){return{$$typeof:ZE,_payload:{_status:-1,_result:e},_init:rT}};ie.memo=function(e,t){return{$$typeof:JE,type:e,compare:t===void 0?null:t}};ie.startTransition=function(e){var t=Dl.transition;Dl.transition={};try{e()}finally{Dl.transition=t}};ie.unstable_act=G0;ie.useCallback=function(e,t){return pt.current.useCallback(e,t)};ie.useContext=function(e){return pt.current.useContext(e)};ie.useDebugValue=function(){};ie.useDeferredValue=function(e){return pt.current.useDeferredValue(e)};ie.useEffect=function(e,t){return pt.current.useEffect(e,t)};ie.useId=function(){return pt.current.useId()};ie.useImperativeHandle=function(e,t,n){return pt.current.useImperativeHandle(e,t,n)};ie.useInsertionEffect=function(e,t){return pt.current.useInsertionEffect(e,t)};ie.useLayoutEffect=function(e,t){return pt.current.useLayoutEffect(e,t)};ie.useMemo=function(e,t){return pt.current.useMemo(e,t)};ie.useReducer=function(e,t,n){return pt.current.useReducer(e,t,n)};ie.useRef=function(e){return pt.current.useRef(e)};ie.useState=function(e){return pt.current.useState(e)};ie.useSyncExternalStore=function(e,t,n){return pt.current.useSyncExternalStore(e,t,n)};ie.useTransition=function(){return pt.current.useTransition()};ie.version="18.3.1";V0.exports=ie;var y=V0.exports;const R=$0(y),im=zE({__proto__:null,default:R},[y]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var iT=y,oT=Symbol.for("react.element"),aT=Symbol.for("react.fragment"),lT=Object.prototype.hasOwnProperty,cT=iT.__SECRET_INT
vendor: 11,405 bytes, lines 17-34
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,uT={key:!0,ref:!0,__self:!0,__source:!0};function Y0(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)lT.call(t,r)&&!uT.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:oT,type:e,key:i,ref:o,props:s,_owner:cT.current}}Gc.Fragment=aT;Gc.jsx=Y0;Gc.jsxs=Y0;F0.exports=Gc;var a=F0.exports,Q0={exports:{}},It={},X0={exports:{}},J0={};/**
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(k,_){var D=k.length;k.push(_);e:for(;0<D;){var H=D-1>>>1,B=k[H];if(0<s(B,_))k[H]=_,k[D]=B,D=H;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var _=k[0],D=k.pop();if(D!==_){k[0]=D;e:for(var H=0,B=k.length,ee=B>>>1;H<ee;){var X=2*(H+1)-1,de=k[X],ye=X+1,F=k[ye];if(0>s(de,D))ye<B&&0>s(F,de)?(k[H]=F,k[ye]=D,H=ye):(k[H]=de,k[X]=D,H=X);else if(ye<B&&0>s(F,D))k[H]=F,k[ye]=D,H=ye;else break e}}return _}function s(k,_){var D=k.sortIndex-_.sortIndex;return D!==0?D:k.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,h=null,f=3,m=!1,w=!1,p=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(k){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=k)r(u),_.sortIndex=_.expirationTime,t(c,_);else break;_=n(u)}}function S(k){if(p=!1,x(k),!w)if(n(c)!==null)w=!0,U(j);else{var _=n(u);_!==null&&$(S,_.startTime-k)}}function j(k,_){w=!1,p&&(p=!1,v(E),E=-1),m=!0;var D=f;try{for(x(_),h=n(c);h!==null&&(!(h.expirationTime>_)||k&&!M());){var H=h.callback;if(typeof H=="function"){h.callback=null,f=h.priorityLevel;var B=H(h.expirationTime<=_);_=e.unstable_now(),typeof B=="function"?h.callback=B:h===n(c)&&r(c),x(_)}else r(c);h=n(c)}if(h!==null)var ee=!0;else{var X=n(u);X!==null&&$(S,X.startTime-_),ee=!1}return ee}finally{h=null,f=D,m=!1}}var N=!1,C=null,E=-1,T=5,A=-1;function M(){return!(e.unstable_now()-A<T)}function L(){if(C!==null){var k=e.unstable_now();A=k;var _=!0;try{_=C(!0,k)}finally{_?W():(N=!1,C=null)}}else N=!1}var W;if(typeof g=="function")W=function(){g(L)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,K=O.port2;O.port1.onmessage=L,W=function(){K.postMessage(null)}}else W=function(){b(L,0)};function U(k){C=k,N||(N=!0,W())}function $(k,_){E=b(function(){k(e.unstable_now())},_)}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(k){k.callback=null},e.unstable_continueExecution=function(){w||m||(w=!0,U(j))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(k){switch(f){case 1:case 2:case 3:var _=3;break;default:_=f}var D=f;f=_;try{return k()}finally{f=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,_){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var D=f;f=k;try{return _()}finally{f=D}},e.unstable_scheduleCallback=function(k,_,D){var H=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?H+D:H):D=H,k){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=D+B,k={id:d++,callback:_,priorityLevel:k,startTime:D,expirationTime:B,sortIndex:-1},D>H?(k.sortIndex=D,t(u,k),n(c)===null&&k===n(u)&&(p?(v(E),E=-1):p=!0,$(S,D-H))):(k.sortIndex=B,t(c,k),w||m||(w=!0,U(j))),k},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(k){var _=f;return function(){var D=f;f=_;try{return k.apply(this,arguments)}finally{f=D}}}})(J0);X0.exports=J0;var dT=X0.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 hT=y,Rt=dT;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Z0=new Set,Zo={};function Ds(e,t){Bi(e,t),Bi(e+"Capture",t)}function Bi(e,t){for(Zo[e]=t,e=0;e<t.length;e++)Z0.add(t[e])}var Kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rh=Object.prototype.hasOwnProperty,fT=/^[: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]*$/,Ag={},Pg={};function mT(e){return rh.call(Pg,e)?!0:rh.call(Ag,e)?!1:fT.test(e)?Pg[e]=!0:(Ag[e]=!0,!1)}function pT(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function gT(e,t,n,r){if(t===null||typeof t>"u"||pT(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function gt(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){tt[e]=new gt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];tt[t]=new gt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tt[e]=new gt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tt[e]=new gt(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){tt[e]=new gt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tt[e]=new gt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tt[e]=new gt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tt[e]=new gt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tt[e]=new gt(e,5,!1,e.toLowerCase(),null,!1,!1)});var om=/[\-:]([a-z])/g;function am(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(om,am);tt[t]=new gt(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(om,am);tt[t]=new gt(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(om,am);tt[t]=new gt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){tt[e]=new gt(e,1,!1,e.toLowerCase(),null,!1,!1)});tt.xlinkHref=new gt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){tt[e]=new gt(e,1,!1,e.toLowerCase(),null,!0,!0)});function lm(e,t,n,r){var s=tt.hasOwnProperty(t)?tt[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(gT(t,n,s,r)&&(n=null),r||s===null?mT(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var tr=hT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,nl=Symbol.for("react.element"),ii=Symbol.for("react.portal"),oi=Symbol.for("react.fragment"),cm=Symbol.for("react.strict_mode"),sh=Symbol.for("react.profiler"),ew=Symbol.for("react.provider"),tw=Symbol.for("react.context"),um=Symbol.for("react.forward_ref"),ih=Symbol.for("react.suspense"),oh=Symbol.for("react.suspense_list"),dm=Symbol.for("react.memo"),mr=Symbol.for("react.lazy"),nw=Symbol.for("react.offscreen"),Rg=Symbol.iterator;function vo(e){return e===null||typeof e!="object"?null:(e=Rg&&e[Rg]||e["@@iterator"],typeof e=="function"?e:null)}var Pe=Object.assign,Hu;function _o(e){if(Hu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Hu=t&&t[1]||""}return`
34`+Hu+e}var Ku=!1;function qu(e,t){if(!e||Ku)return"";Ku=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 17,106 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
35`),i=r.stack.split(`
36`),o=s.length-1,l=i.length-1;1<=o&&0<=l&&s[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(s[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||s[o]!==i[l]){var c=`
37`+s[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=l);break}}}finally{Ku=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_o(e):""}function yT(e){switch(e.tag){case 5:return _o(e.type);case 16:return _o("Lazy");case 13:return _o("Suspense");case 19:return _o("SuspenseList");case 0:case 2:case 15:return e=qu(e.type,!1),e;case 11:return e=qu(e.type.render,!1),e;case 1:return e=qu(e.type,!0),e;default:return""}}function ah(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case oi:return"Fragment";case ii:return"Portal";case sh:return"Profiler";case cm:return"StrictMode";case ih:return"Suspense";case oh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tw:return(e.displayName||"Context")+".Consumer";case ew:return(e._context.displayName||"Context")+".Provider";case um:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case dm:return t=e.displayName||null,t!==null?t:ah(e.type)||"Memo";case mr:t=e._payload,e=e._init;try{return ah(e(t))}catch{}}return null}function vT(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 ah(t);case 8:return t===cm?"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 $r(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xT(e){var t=rw(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rl(e){e._valueTracker||(e._valueTracker=xT(e))}function sw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=rw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function sc(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 lh(e,t){var n=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ig(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$r(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function iw(e,t){t=t.checked,t!=null&&lm(e,"checked",t,!1)}function ch(e,t){iw(e,t);var n=$r(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?uh(e,t.type,n):t.hasOwnProperty("defaultValue")&&uh(e,t.type,$r(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Og(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function uh(e,t,n){(t!=="number"||sc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ao=Array.isArray;function ji(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$r(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function dh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(I(91));return Pe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Mg(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(I(92));if(Ao(n)){if(1<n.length)throw Error(I(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:$r(n)}}function ow(e,t){var n=$r(t.value),r=$r(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Lg(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function aw(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 hh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?aw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var sl,lw=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(sl=sl||document.createElement("div"),sl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=sl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ea(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lo={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},wT=["Webkit","ms","Moz","O"];Object.keys(Lo).forEach(function(e){wT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lo[t]=Lo[e]})});function cw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Lo.hasOwnProperty(e)&&Lo[e]?(""+t).trim():t+"px"}function uw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=cw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var bT=Pe({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 fh(e,t){if(t){if(bT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function mh(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 ph=null;function hm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gh=null,Ni=null,Ci=null;function Dg(e){if(e=Va(e)){if(typeof gh!="function")throw Error(I(280));var t=e.stateNode;t&&(t=Zc(t),gh(e.stateNode,e.type,t))}}function dw(e){Ni?Ci?Ci.push(e):Ci=[e]:Ni=e}function hw(){if(Ni){var e=Ni,t=Ci;if(Ci=Ni=null,Dg(e),t)for(e=0;e<t.length;e++)Dg(t[e])}}function fw(e,t){return e(t)}function mw(){}var Gu=!1;function pw(e,t,n){if(Gu)return e(t,n);Gu=!0;try{return fw(e,t,n)}finally{Gu=!1,(Ni!==null||Ci!==null)&&(mw(),hw())}}function ta(e,t){var n=e.stateNode;if(n===null)return null;var r=Zc(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(I(231,t,typeof n));return n}var yh=!1;if(Kn)try{var xo={};Object.defineProperty(xo,"passive",{get:function(){yh=!0}}),window.addEventListener("test",xo,xo),window.removeEventListener("test",xo,xo)}catch{yh=!1}function ST(e,t,n,r,s,i,o,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Do=!1,ic=null,oc=!1,vh=null,jT={onError:function(e){Do=!0,ic=e}};function NT(e,t,n,r,s,i,o,l,c){Do=!1,ic=null,ST.apply(jT,arguments)}function CT(e,t,n,r,s,i,o,l,c){if(NT.apply(this,arguments),Do){if(Do){var u=ic;Do=!1,ic=null}else throw Error(I(198));oc||(oc=!0,vh=u)}}function $s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function gw(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 $g(e){if($s(e)!==e)throw Error(I(188))}function ET(e){var t=e.alternate;if(!t){if(t=$s(e),t===null)throw Error(I(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return $g(s),e;if(i===r)return $g(s),t;i=i.sibling}throw Error(I(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o)throw Error(I(189))}}if(n.alternate!==r)throw Error(I(190))}if(n.tag!==3)throw Error(I(188));return n.stateNode.current===n?e:t}function yw(e){return e=ET(e),e!==null?vw(e):null}function vw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=vw(e);if(t!==null)return t;e=e.sibling}return null}var xw=Rt.unstable_scheduleCallback,Fg=Rt.unstable_cancelCallback,TT=Rt.unstable_shouldYield,kT=Rt.unstable_requestPaint,Le=Rt.unstable_now,_T=Rt.unstable_getCurrentPriorityLevel,fm=Rt.unstable_ImmediatePriority,ww=Rt.unstable_UserBlockingPriority,ac=Rt.unstable_NormalPriority,AT=Rt.unstable_LowPriority,bw=Rt.unstable_IdlePriority,Yc=null,_n=null;function PT(e){if(_n&&typeof _n.onCommitFiberRoot=="function")try{_n.onCommitFiberRoot(Yc,e,void 0,(e.current.flags&128)===128)}catch{}}var mn=Math.clz32?Math.clz32:OT,RT=Math.log,IT=Math.LN2;function OT(e){return e>>>=0,e===0?32:31-(RT(e)/IT|0)|0}var il=64,ol=4194304;function Po(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 lc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~s;l!==0?r=Po(l):(i&=o,i!==0&&(r=Po(i)))}else o=n&~s,o!==0?r=Po(o):i!==0&&(r=Po(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-mn(t),s=1<<n,r|=e[n],t&=~s;return r}function MT(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 LT(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-mn(i),l=1<<o,c=s[o];c===-1?(!(l&n)||l&r)&&(s[o]=MT(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}function xh(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Sw(){var e=il;return il<<=1,!(il&4194240)&&(il=64),e}function Yu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $a(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-mn(t),e[t]=n}function DT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-mn(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function mm(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-mn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var me=0;function jw(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Nw,pm,Cw,Ew,Tw,wh=!1,al=[],_r=null,Ar=null,Pr=null,na=new Map,ra=new Map,yr=[],$T="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 Vg(e,t){switch(e){case"focusin":case"focusout":_r=null;break;case"dragenter":case"dragleave":Ar=null;break;case"mouseover":case"mouseout":Pr=null;break;case"pointerover":case"pointerout":na.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ra.delete(t.pointerId)}}function wo(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Va(t),t!==null&&pm(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function FT(e,t,n,r,s){switch(t){case"focusin":return _r=wo(_r,e,t,n,r,s),!0;case"dragenter":return Ar=wo(Ar,e,t,n,r,s),!0;case"mouseover":return Pr=wo(Pr,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return na.set(i,wo(na.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,ra.set(i,wo(ra.get(i)||null,e,t,n,r,s)),!0}return!1}function kw(e){var t=hs(e.target);if(t!==null){var n=$s(t);if(n!==null){if(t=n.tag,t===13){if(t=gw(n),t!==null){e.blockedOn=t,Tw(e.priority,function(){Cw(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function $l(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bh(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ph=r,n.target.dispatchEvent(r),ph=null}else return t=Va(n),t!==null&&pm(t),e.blockedOn=n,!1;t.shift()}return!0}function Ug(e,t,n){$l(e)&&n.delete(t)}function VT(){wh=!1,_r!==null&&$l(_r)&&(_r=null),Ar!==null&&$l(Ar)&&(Ar=null),Pr!==null&&$l(Pr)&&(Pr=null),na.forEach(Ug),ra.forEach(Ug)}function bo(e,t){e.blockedOn===t&&(e.blockedOn=null,wh||(wh=!0,Rt.unstable_scheduleCallback(Rt.unstable_NormalPriority,VT)))}function sa(e){function t(s){return bo(s,e)}if(0<al.length){bo(al[0],e);for(var n=1;n<al.length;n++){var r=al[n];r.blockedOn===e&&(r.blockedOn=null)}}for(_r!==null&&bo(_r,e),Ar!==null&&bo(Ar,e),Pr!==null&&bo(Pr,e),na.forEac
vendor: 10,198 bytes, line 37
37h(t),ra.forEach(t),n=0;n<yr.length;n++)r=yr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<yr.length&&(n=yr[0],n.blockedOn===null);)kw(n),n.blockedOn===null&&yr.shift()}var Ei=tr.ReactCurrentBatchConfig,cc=!0;function UT(e,t,n,r){var s=me,i=Ei.transition;Ei.transition=null;try{me=1,gm(e,t,n,r)}finally{me=s,Ei.transition=i}}function BT(e,t,n,r){var s=me,i=Ei.transition;Ei.transition=null;try{me=4,gm(e,t,n,r)}finally{me=s,Ei.transition=i}}function gm(e,t,n,r){if(cc){var s=bh(e,t,n,r);if(s===null)id(e,t,r,uc,n),Vg(e,r);else if(FT(s,e,t,n,r))r.stopPropagation();else if(Vg(e,r),t&4&&-1<$T.indexOf(e)){for(;s!==null;){var i=Va(s);if(i!==null&&Nw(i),i=bh(e,t,n,r),i===null&&id(e,t,r,uc,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else id(e,t,r,null,n)}}var uc=null;function bh(e,t,n,r){if(uc=null,e=hm(r),e=hs(e),e!==null)if(t=$s(e),t===null)e=null;else if(n=t.tag,n===13){if(e=gw(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return uc=e,null}function _w(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(_T()){case fm:return 1;case ww:return 4;case ac:case AT:return 16;case bw:return 536870912;default:return 16}default:return 16}}var Cr=null,ym=null,Fl=null;function Aw(){if(Fl)return Fl;var e,t=ym,n=t.length,r,s="value"in Cr?Cr.value:Cr.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return Fl=s.slice(e,1<r?1-r:void 0)}function Vl(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 ll(){return!0}function Bg(){return!1}function Ot(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ll:Bg,this.isPropagationStopped=Bg,this}return Pe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ll)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ll)},persist:function(){},isPersistent:ll}),t}var no={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vm=Ot(no),Fa=Pe({},no,{view:0,detail:0}),zT=Ot(Fa),Qu,Xu,So,Qc=Pe({},Fa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xm,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!==So&&(So&&e.type==="mousemove"?(Qu=e.screenX-So.screenX,Xu=e.screenY-So.screenY):Xu=Qu=0,So=e),Qu)},movementY:function(e){return"movementY"in e?e.movementY:Xu}}),zg=Ot(Qc),WT=Pe({},Qc,{dataTransfer:0}),HT=Ot(WT),KT=Pe({},Fa,{relatedTarget:0}),Ju=Ot(KT),qT=Pe({},no,{animationName:0,elapsedTime:0,pseudoElement:0}),GT=Ot(qT),YT=Pe({},no,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),QT=Ot(YT),XT=Pe({},no,{data:0}),Wg=Ot(XT),JT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ZT={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"},ek={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tk(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ek[e])?!!t[e]:!1}function xm(){return tk}var nk=Pe({},Fa,{key:function(e){if(e.key){var t=JT[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ZT[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xm,charCode:function(e){return e.type==="keypress"?Vl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rk=Ot(nk),sk=Pe({},Qc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hg=Ot(sk),ik=Pe({},Fa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xm}),ok=Ot(ik),ak=Pe({},no,{propertyName:0,elapsedTime:0,pseudoElement:0}),lk=Ot(ak),ck=Pe({},Qc,{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}),uk=Ot(ck),dk=[9,13,27,32],wm=Kn&&"CompositionEvent"in window,$o=null;Kn&&"documentMode"in document&&($o=document.documentMode);var hk=Kn&&"TextEvent"in window&&!$o,Pw=Kn&&(!wm||$o&&8<$o&&11>=$o),Kg=" ",qg=!1;function Rw(e,t){switch(e){case"keyup":return dk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Iw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ai=!1;function fk(e,t){switch(e){case"compositionend":return Iw(t);case"keypress":return t.which!==32?null:(qg=!0,Kg);case"textInput":return e=t.data,e===Kg&&qg?null:e;default:return null}}function mk(e,t){if(ai)return e==="compositionend"||!wm&&Rw(e,t)?(e=Aw(),Fl=ym=Cr=null,ai=!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 Pw&&t.locale!=="ko"?null:t.data;default:return null}}var pk={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 Gg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!pk[e.type]:t==="textarea"}function Ow(e,t,n,r){dw(r),t=dc(t,"onChange"),0<t.length&&(n=new vm("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fo=null,ia=null;function gk(e){Hw(e,0)}function Xc(e){var t=ui(e);if(sw(t))return e}function yk(e,t){if(e==="change")return t}var Mw=!1;if(Kn){var Zu;if(Kn){var ed="oninput"in document;if(!ed){var Yg=document.createElement("div");Yg.setAttribute("oninput","return;"),ed=typeof Yg.oninput=="function"}Zu=ed}else Zu=!1;Mw=Zu&&(!document.documentMode||9<document.documentMode)}function Qg(){Fo&&(Fo.detachEvent("onpropertychange",Lw),ia=Fo=null)}function Lw(e){if(e.propertyName==="value"&&Xc(ia)){var t=[];Ow(t,ia,e,hm(e)),pw(gk,t)}}function vk(e,t,n){e==="focusin"?(Qg(),Fo=t,ia=n,Fo.attachEvent("onpropertychange",Lw)):e==="focusout"&&Qg()}function xk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xc(ia)}function wk(e,t){if(e==="click")return Xc(t)}function bk(e,t){if(e==="input"||e==="change")return Xc(t)}function Sk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yn=typeof Object.is=="function"?Object.is:Sk;function oa(e,t){if(yn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!rh.call(t,s)||!yn(e[s],t[s]))return!1}return!0}function Xg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jg(e,t){var n=Xg(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xg(n)}}function Dw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $w(){for(var e=window,t=sc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sc(e.document)}return t}function bm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function jk(e){var t=$w(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dw(n.ownerDocument.documentElement,n)){if(r!==null&&bm(n)){if
vendor: 5,626 bytes, line 37
37(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Jg(n,i);var o=Jg(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Nk=Kn&&"documentMode"in document&&11>=document.documentMode,li=null,Sh=null,Vo=null,jh=!1;function Zg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jh||li==null||li!==sc(r)||(r=li,"selectionStart"in r&&bm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vo&&oa(Vo,r)||(Vo=r,r=dc(Sh,"onSelect"),0<r.length&&(t=new vm("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=li)))}function cl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ci={animationend:cl("Animation","AnimationEnd"),animationiteration:cl("Animation","AnimationIteration"),animationstart:cl("Animation","AnimationStart"),transitionend:cl("Transition","TransitionEnd")},td={},Fw={};Kn&&(Fw=document.createElement("div").style,"AnimationEvent"in window||(delete ci.animationend.animation,delete ci.animationiteration.animation,delete ci.animationstart.animation),"TransitionEvent"in window||delete ci.transitionend.transition);function Jc(e){if(td[e])return td[e];if(!ci[e])return e;var t=ci[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Fw)return td[e]=t[n];return e}var Vw=Jc("animationend"),Uw=Jc("animationiteration"),Bw=Jc("animationstart"),zw=Jc("transitionend"),Ww=new Map,ey="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 Wr(e,t){Ww.set(e,t),Ds(t,[e])}for(var nd=0;nd<ey.length;nd++){var rd=ey[nd],Ck=rd.toLowerCase(),Ek=rd[0].toUpperCase()+rd.slice(1);Wr(Ck,"on"+Ek)}Wr(Vw,"onAnimationEnd");Wr(Uw,"onAnimationIteration");Wr(Bw,"onAnimationStart");Wr("dblclick","onDoubleClick");Wr("focusin","onFocus");Wr("focusout","onBlur");Wr(zw,"onTransitionEnd");Bi("onMouseEnter",["mouseout","mouseover"]);Bi("onMouseLeave",["mouseout","mouseover"]);Bi("onPointerEnter",["pointerout","pointerover"]);Bi("onPointerLeave",["pointerout","pointerover"]);Ds("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ds("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ds("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ds("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ds("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ds("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ro="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(" "),Tk=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ro));function ty(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,CT(r,t,void 0,e),e.currentTarget=null}function Hw(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==i&&s.isPropagationStopped())break e;ty(s,l,u),i=c}else for(o=0;o<r.length;o++){if(l=r[o],c=l.instance,u=l.currentTarget,l=l.listener,c!==i&&s.isPropagationStopped())break e;ty(s,l,u),i=c}}}if(oc)throw e=vh,oc=!1,vh=null,e}function Se(e,t){var n=t[kh];n===void 0&&(n=t[kh]=new Set);var r=e+"__bubble";n.has(r)||(Kw(t,e,2,!1),n.add(r))}function sd(e,t,n){var r=0;t&&(r|=4),Kw(n,e,r,t)}var ul="_reactListening"+Math.random().toString(36).slice(2);function aa(e){if(!e[ul]){e[ul]=!0,Z0.forEach(function(n){n!=="selectionchange"&&(Tk.has(n)||sd(n,!1,e),sd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ul]||(t[ul]=!0,sd("selectionchange",!1,t))}}function Kw(e,t,n,r){switch(_w(t)){case 1:var s=UT;break;case 4:s=BT;break;default:s=gm}n=s.bind(null,t,n,e),s=void 0,!yh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}
vendor: 4,454 bytes, line 37
37function id(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===s||c.nodeType===8&&c.parentNode===s))return;o=o.return}for(;l!==null;){if(o=hs(l),o===null)return;if(c=o.tag,c===5||c===6){r=i=o;continue e}l=l.parentNode}}r=r.return}pw(function(){var u=i,d=hm(n),h=[];e:{var f=Ww.get(e);if(f!==void 0){var m=vm,w=e;switch(e){case"keypress":if(Vl(n)===0)break e;case"keydown":case"keyup":m=rk;break;case"focusin":w="focus",m=Ju;break;case"focusout":w="blur",m=Ju;break;case"beforeblur":case"afterblur":m=Ju;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=zg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=HT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=ok;break;case Vw:case Uw:case Bw:m=GT;break;case zw:m=lk;break;case"scroll":m=zT;break;case"wheel":m=uk;break;case"copy":case"cut":case"paste":m=QT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Hg}var p=(t&4)!==0,b=!p&&e==="scroll",v=p?f!==null?f+"Capture":null:f;p=[];for(var g=u,x;g!==null;){x=g;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,v!==null&&(S=ta(g,v),S!=null&&p.push(la(g,S,x)))),b)break;g=g.return}0<p.length&&(f=new m(f,w,null,n,d),h.push({event:f,listeners:p}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&n!==ph&&(w=n.relatedTarget||n.fromElement)&&(hs(w)||w[qn]))break e;if((m||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,m?(w=n.relatedTarget||n.toElement,m=u,w=w?hs(w):null,w!==null&&(b=$s(w),w!==b||w.tag!==5&&w.tag!==6)&&(w=null)):(m=null,w=u),m!==w)){if(p=zg,S="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(p=Hg,S="onPointerLeave",v="onPointerEnter",g="pointer"),b=m==null?f:ui(m),x=w==null?f:ui(w),f=new p(S,g+"leave",m,n,d),f.target=b,f.relatedTarget=x,S=null,hs(d)===u&&(p=new p(v,g+"enter",w,n,d),p.target=x,p.relatedTarget=b,S=p),b=S,m&&w)t:{for(p=m,v=w,g=0,x=p;x;x=Ks(x))g++;for(x=0,S=v;S;S=Ks(S))x++;for(;0<g-x;)p=Ks(p),g--;for(;0<x-g;)v=Ks(v),x--;for(;g--;){if(p===v||v!==null&&p===v.alternate)break t;p=Ks(p),v=Ks(v)}p=null}else p=null;m!==null&&ny(h,f,m,p,!1),w!==null&&b!==null&&ny(h,b,w,p,!0)}}e:{if(f=u?ui(u):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var j=yk;else if(Gg(f))if(Mw)j=bk;else{j=xk;var N=vk}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(j=wk);if(j&&(j=j(e,u))){Ow(h,j,n,d);break e}N&&N(e,f,u),e==="focusout"&&(N=f._wrapperState)&&N.controlled&&f.type==="number"&&uh(f,"number",f.value)}switch(N=u?ui(u):window,e){case"focusin":(Gg(N)||N.contentEditable==="true")&&(li=N,Sh=u,Vo=null);break;case"focusout":Vo=Sh=li=null;break;case"mousedown":jh=!0;break;case"contextmenu":case"mouseup":case"dragend":jh=!1,Zg(h,n,d);break;case"selectionchange":if(Nk)break;case"keydown":case"keyup":Zg(h,n,d)}var C;if(wm)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else ai?Rw(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(Pw&&n.locale!=="ko"&&(ai||E!=="onCompositionStart"?E==="onCompositionEnd"&&ai&&(C=Aw()):(Cr=d,ym="value"in Cr?Cr.value:Cr.textContent,ai=!0)),N=dc(u,E),0<N.length&&(E=new Wg(E,e,null,n,d),h.push({event:E,listeners:N}),C?E.data=C:(C=Iw(n),C!==null&&(E.data=C)))),(C=hk?fk(e,n):mk(e,n))&&(u=dc(u,"onBeforeInput"),0<u.length&&(d=new Wg("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:u}),d.data=C))}Hw(h,t)})}function la(e,t,n){return{instance:e,listener:t,currentTarget:n}}function dc(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=ta(e,n),i!=null&&r.unshift(la(e,i,s)),i=ta(e,t),i!=null&&r.push(la(e,i,s))),e=e.return}return r}function Ks(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}
vendor: 5,804 bytes, lines 37-38
37function ny(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,s?(c=ta(n,i),c!=null&&o.unshift(la(n,c,l))):s||(c=ta(n,i),c!=null&&o.push(la(n,c,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var kk=/\r\n?/g,_k=/\u0000|\uFFFD/g;function ry(e){return(typeof e=="string"?e:""+e).replace(kk,`
38`).replace(_k,"")}function dl(e,t,n){if(t=ry(t),ry(e)!==t&&n)throw Error(I(425))}function hc(){}var Nh=null,Ch=null;function Eh(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 Th=typeof setTimeout=="function"?setTimeout:void 0,Ak=typeof clearTimeout=="function"?clearTimeout:void 0,sy=typeof Promise=="function"?Promise:void 0,Pk=typeof queueMicrotask=="function"?queueMicrotask:typeof sy<"u"?function(e){return sy.resolve(null).then(e).catch(Rk)}:Th;function Rk(e){setTimeout(function(){throw e})}function od(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),sa(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);sa(t)}function Rr(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 iy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ro=Math.random().toString(36).slice(2),En="__reactFiber$"+ro,ca="__reactProps$"+ro,qn="__reactContainer$"+ro,kh="__reactEvents$"+ro,Ik="__reactListeners$"+ro,Ok="__reactHandles$"+ro;function hs(e){var t=e[En];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qn]||n[En]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=iy(e);e!==null;){if(n=e[En])return n;e=iy(e)}return t}e=n,n=e.parentNode}return null}function Va(e){return e=e[En]||e[qn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ui(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(I(33))}function Zc(e){return e[ca]||null}var _h=[],di=-1;function Hr(e){return{current:e}}function je(e){0>di||(e.current=_h[di],_h[di]=null,di--)}function we(e,t){di++,_h[di]=e.current,e.current=t}var Fr={},lt=Hr(Fr),bt=Hr(!1),ks=Fr;function zi(e,t){var n=e.type.contextTypes;if(!n)return Fr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function St(e){return e=e.childContextTypes,e!=null}function fc(){je(bt),je(lt)}function oy(e,t,n){if(lt.current!==Fr)throw Error(I(168));we(lt,t),we(bt,n)}function qw(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(I(108,vT(e)||"Unknown",s));return Pe({},n,r)}function mc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fr,ks=lt.current,we(lt,e),we(bt,bt.current),!0}function ay(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=qw(e,t,ks),r.__reactInternalMemoizedMergedChildContext=e,je(bt),je(lt),we(lt,e)):je(bt),we(bt,n)}var Un=null,eu=!1,ad=!1;function Gw(e){Un===null?Un=[e]:Un.push(e)}function Mk(e){eu=!0,Gw(e)}function Kr(){if(!ad&&Un!==null){ad=!0;var e=0,t=me;try{var n=Un;for(me=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Un=null,eu=!1}catch(s){throw Un!==null&&(Un=Un.slice(e+1)),xw(fm,Kr),s}finally{me=t,ad=!1}}return null}var hi=[],fi=0,pc=null,gc=0,Ft=[],Vt=0,_s=null,zn=1,Wn="";function os(e,t){hi[fi++]=gc,hi[fi++]=pc,pc=e,gc=t}function Yw(e,t,n){Ft[Vt++]=zn,Ft[Vt++]=Wn,Ft[Vt++]=_s,_s=e;var r=zn;e=Wn;var s=32-mn(r)-1;r&=~(1<<s),n+=1;var i=32-mn(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,zn=1<<32-mn(t)+s|n<<s|r,Wn=i+e}else zn=1<<i|n<<s|r,Wn=e}function Sm(e){e.return!==null&&(os(e,1),Yw(e,1,0))}function jm(e){for(;e===pc;)pc=hi[--fi],hi[fi]=null,gc=hi[--fi],hi[fi]=null;for(;e===_s;)_s=Ft[--Vt],Ft[Vt]=null,Wn=Ft[--Vt],Ft[Vt]=null,zn=Ft[--Vt],Ft[Vt]=null}var At=null,_t=null,Ee=!1,hn=null;function Qw(e,t){var n=Ut(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ly(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,At=e,_t=Rr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,At=e,_t=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=_s!==null?{id:zn,overflow:Wn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ut(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,At=e,_t=null,!0):!1;default:return!1}}function Ah(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ph(e){if(Ee){var t=_t;if(t){var n=t;if(!ly(e,t)){if(Ah(e))throw Error(I(418));t=Rr(n.nextSibling);var r=At;t&&ly(e,t)?Qw(r,n):(e.flags=e.flags&-4097|2,Ee=!1,At=e)}}else{if(Ah(e))throw Error(I(418));e.flags=e.flags&-4097|2,Ee=!1,At=e}}}function cy(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;At=e}function hl(e){if(e!==At)return!1;if(!Ee)return cy(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Eh(e.type,e.memoizedProps)),t&&(t=_t)){if(Ah(e))throw Xw(),Error(I(418));for(;t;)Qw(e,t),t=Rr(t.nextSibling)}if(cy(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317)
vendor: 25,627 bytes, lines 38-40
38);e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){_t=Rr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}_t=null}}else _t=At?Rr(e.stateNode.nextSibling):null;return!0}function Xw(){for(var e=_t;e;)e=Rr(e.nextSibling)}function Wi(){_t=At=null,Ee=!1}function Nm(e){hn===null?hn=[e]:hn.push(e)}var Lk=tr.ReactCurrentBatchConfig;function jo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(I(309));var r=n.stateNode}if(!r)throw Error(I(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var l=s.refs;o===null?delete l[i]:l[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(I(284));if(!n._owner)throw Error(I(290,e))}return e}function fl(e,t){throw e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function uy(e){var t=e._init;return t(e._payload)}function Jw(e){function t(v,g){if(e){var x=v.deletions;x===null?(v.deletions=[g],v.flags|=16):x.push(g)}}function n(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function r(v,g){for(v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function s(v,g){return v=Lr(v,g),v.index=0,v.sibling=null,v}function i(v,g,x){return v.index=x,e?(x=v.alternate,x!==null?(x=x.index,x<g?(v.flags|=2,g):x):(v.flags|=2,g)):(v.flags|=1048576,g)}function o(v){return e&&v.alternate===null&&(v.flags|=2),v}function l(v,g,x,S){return g===null||g.tag!==6?(g=md(x,v.mode,S),g.return=v,g):(g=s(g,x),g.return=v,g)}function c(v,g,x,S){var j=x.type;return j===oi?d(v,g,x.props.children,S,x.key):g!==null&&(g.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===mr&&uy(j)===g.type)?(S=s(g,x.props),S.ref=jo(v,g,x),S.return=v,S):(S=ql(x.type,x.key,x.props,null,v.mode,S),S.ref=jo(v,g,x),S.return=v,S)}function u(v,g,x,S){return g===null||g.tag!==4||g.stateNode.containerInfo!==x.containerInfo||g.stateNode.implementation!==x.implementation?(g=pd(x,v.mode,S),g.return=v,g):(g=s(g,x.children||[]),g.return=v,g)}function d(v,g,x,S,j){return g===null||g.tag!==7?(g=Cs(x,v.mode,S,j),g.return=v,g):(g=s(g,x),g.return=v,g)}function h(v,g,x){if(typeof g=="string"&&g!==""||typeof g=="number")return g=md(""+g,v.mode,x),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case nl:return x=ql(g.type,g.key,g.props,null,v.mode,x),x.ref=jo(v,null,g),x.return=v,x;case ii:return g=pd(g,v.mode,x),g.return=v,g;case mr:var S=g._init;return h(v,S(g._payload),x)}if(Ao(g)||vo(g))return g=Cs(g,v.mode,x,null),g.return=v,g;fl(v,g)}return null}function f(v,g,x,S){var j=g!==null?g.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return j!==null?null:l(v,g,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case nl:return x.key===j?c(v,g,x,S):null;case ii:return x.key===j?u(v,g,x,S):null;case mr:return j=x._init,f(v,g,j(x._payload),S)}if(Ao(x)||vo(x))return j!==null?null:d(v,g,x,S,null);fl(v,x)}return null}function m(v,g,x,S,j){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(x)||null,l(g,v,""+S,j);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case nl:return v=v.get(S.key===null?x:S.key)||null,c(g,v,S,j);case ii:return v=v.get(S.key===null?x:S.key)||null,u(g,v,S,j);case mr:var N=S._init;return m(v,g,x,N(S._payload),j)}if(Ao(S)||vo(S))return v=v.get(x)||null,d(g,v,S,j,null);fl(g,S)}return null}function w(v,g,x,S){for(var j=null,N=null,C=g,E=g=0,T=null;C!==null&&E<x.length;E++){C.index>E?(T=C,C=null):T=C.sibling;var A=f(v,C,x[E],S);if(A===null){C===null&&(C=T);break}e&&C&&A.alternate===null&&t(v,C),g=i(A,g,E),N===null?j=A:N.sibling=A,N=A,C=T}if(E===x.length)return n(v,C),Ee&&os(v,E),j;if(C===null){for(;E<x.length;E++)C=h(v,x[E],S),C!==null&&(g=i(C,g,E),N===null?j=C:N.sibling=C,N=C);return Ee&&os(v,E),j}for(C=r(v,C);E<x.length;E++)T=m(C,v,E,x[E],S),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?E:T.key),g=i(T,g,E),N===null?j=T:N.sibling=T,N=T);return e&&C.forEach(function(M){return t(v,M)}),Ee&&os(v,E),j}function p(v,g,x,S){var j=vo(x);if(typeof j!="function")throw Error(I(150));if(x=j.call(x),x==null)throw Error(I(151));for(var N=j=null,C=g,E=g=0,T=null,A=x.next();C!==null&&!A.done;E++,A=x.next()){C.index>E?(T=C,C=null):T=C.sibling;var M=f(v,C,A.value,S);if(M===null){C===null&&(C=T);break}e&&C&&M.alternate===null&&t(v,C),g=i(M,g,E),N===null?j=M:N.sibling=M,N=M,C=T}if(A.done)return n(v,C),Ee&&os(v,E),j;if(C===null){for(;!A.done;E++,A=x.next())A=h(v,A.value,S),A!==null&&(g=i(A,g,E),N===null?j=A:N.sibling=A,N=A);return Ee&&os(v,E),j}for(C=r(v,C);!A.done;E++,A=x.next())A=m(C,v,E,A.value,S),A!==null&&(e&&A.alternate!==null&&C.delete(A.key===null?E:A.key),g=i(A,g,E),N===null?j=A:N.sibling=A,N=A);return e&&C.forEach(function(L){return t(v,L)}),Ee&&os(v,E),j}function b(v,g,x,S){if(typeof x=="object"&&x!==null&&x.type===oi&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case nl:e:{for(var j=x.key,N=g;N!==null;){if(N.key===j){if(j=x.type,j===oi){if(N.tag===7){n(v,N.sibling),g=s(N,x.props.children),g.return=v,v=g;break e}}else if(N.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===mr&&uy(j)===N.type){n(v,N.sibling),g=s(N,x.props),g.ref=jo(v,N,x),g.return=v,v=g;break e}n(v,N);break}else t(v,N);N=N.sibling}x.type===oi?(g=Cs(x.props.children,v.mode,S,x.key),g.return=v,v=g):(S=ql(x.type,x.key,x.props,null,v.mode,S),S.ref=jo(v,g,x),S.return=v,v=S)}return o(v);case ii:e:{for(N=x.key;g!==null;){if(g.key===N)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(v,g.sibling),g=s(g,x.children||[]),g.return=v,v=g;break e}else{n(v,g);break}else t(v,g);g=g.sibling}g=pd(x,v.mode,S),g.return=v,v=g}return o(v);case mr:return N=x._init,b(v,g,N(x._payload),S)}if(Ao(x))return w(v,g,x,S);if(vo(x))return p(v,g,x,S);fl(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(v,g.sibling),g=s(g,x),g.return=v,v=g):(n(v,g),g=md(x,v.mode,S),g.return=v,v=g),o(v)):n(v,g)}return b}var Hi=Jw(!0),Zw=Jw(!1),yc=Hr(null),vc=null,mi=null,Cm=null;function Em(){Cm=mi=vc=null}function Tm(e){var t=yc.current;je(yc),e._currentValue=t}function Rh(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ti(e,t){vc=e,Cm=mi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(xt=!0),e.firstContext=null)}function Kt(e){var t=e._currentValue;if(Cm!==e)if(e={context:e,memoizedValue:t,next:null},mi===null){if(vc===null)throw Error(I(308));mi=e,vc.dependencies={lanes:0,firstContext:e}}else mi=mi.next=e;return t}var fs=null;function km(e){fs===null?fs=[e]:fs.push(e)}function eb(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,km(t)):(n.next=s.next,s.next=n),t.interleaved=n,Gn(e,r)}function Gn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var pr=!1;function _m(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function tb(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 Hn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ir(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,le&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Gn(e,n)}return s=r.interleaved,s===null?(t.next=t,km(r)):(t.next=s.next,s.next=t),r.interleaved=t,Gn(e,n)}function Ul(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mm(e,n)}}function dy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xc(e,t,n,r){var s=e.updateQueue;pr=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var c=l,u=c.next;c.next=null,o===null?i=u:o.next=u,o=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(i!==null){var h=s.baseState;o=0,d=u=c=null,l=i;do{var f=l.lane,m=l.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=e,p=l;switch(f=t,m=n,p.tag){case 1:if(w=p.payload,typeof w=="function"){h=w.call(m,h,f);break e}h=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=p.payload,f=typeof w=="function"?w.call(m,h,f):w,f==null)break e;h=Pe({},h,f);break e;case 2:pr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=s.effects,f===null?s.effects=[l]:f.push(l))}else m={eventTime:m,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=m,c=h):d=d.next=m,o|=f;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;f=l,l=f.next,f.next=null,s.lastBaseUpdate=f,s.shared.pending=null}}while(!0);if(d===null&&(c=h),s.baseState=c,s.firstBaseUpdate=u,s.lastBaseUpdate=d,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);Ps|=o,e.lanes=o,e.memoizedState=h}}function hy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(I(191,s));s.call(r)}}}var Ua={},An=Hr(Ua),ua=Hr(Ua),da=Hr(Ua);function ms(e){if(e===Ua)throw Error(I(174));return e}function Am(e,t){switch(we(da,t),we(ua,e),we(An,Ua),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=hh(t,e)}je(An),we(An,t)}function Ki(){je(An),je(ua),je(da)}function nb(e){ms(da.current);var t=ms(An.current),n=hh(t,e.type);t!==n&&(we(ua,e),we(An,n))}function Pm(e){ua.current===e&&(je(An),je(ua))}var _e=Hr(0);function wc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ld=[];function Rm(){for(var e=0;e<ld.length;e++)ld[e]._workInProgressVersionPrimary=null;ld.length=0}var Bl=tr.ReactCurrentDispatcher,cd=tr.ReactCurrentBatchConfig,As=0,Ae=null,ze=null,Ke=null,bc=!1,Uo=!1,ha=0,Dk=0;function st(){throw Error(I(321))}function Im(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yn(e[n],t[n]))return!1;return!0}function Om(e,t,n,r,s,i){if(As=i,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Bl.current=e===null||e.memoizedState===null?Uk:Bk,e=n(r,s),Uo){i=0;do{if(Uo=!1,ha=0,25<=i)throw Error(I(301));i+=1,Ke=ze=null,t.updateQueue=null,Bl.current=zk,e=n(r,s)}while(Uo)}if(Bl.current=Sc,t=ze!==null&&ze.next!==null,As=0,Ke=ze=Ae=null,bc=!1,t)throw Error(I(300));return e}function Mm(){var e=ha!==0;return ha=0,e}function Sn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?Ae.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function qt(){if(ze===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Ke===null?Ae.memoizedState:Ke.next;if(t!==null)Ke=t,ze=e;else{if(e===null)throw Error(I(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Ke===null?Ae.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function fa(e,t){return typeof t=="function"?t(e):t}function ud(e){var t=qt(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=ze,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var l=o=null,c=null,u=i;do{var d=u.lane;if((As&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=h,o=r):c=c.next=h,Ae.lanes|=d,Ps|=d}u=u.next}while(u!==null&&u!==i);c===null?o=r:c.next=l,yn(r,t.memoizedState)||(xt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,Ae.lanes|=i,Ps|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function dd(e){var t=qt(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);yn(i,t.memoizedState)||(xt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function rb(){}function sb(e,t){var n=Ae,r=qt(),s=t(),i=!yn(r.memoizedState,s);if(i&&(r.memoizedState=s,xt=!0),r=r.queue,Lm(ab.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ke!==null&&Ke.memoizedState.tag&1){if(n.flags|=2048,ma(9,ob.bind(null,n,r,s,t),void 0,null),Ye===null)throw Error(I(349));As&30||ib(n,t,s)}return s}function ib(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ae.updateQueue,t===null?(t={lastEffect:null,stores:null},Ae.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ob(e,t,n,r){t.value=n,t.getSnapshot=r,lb(t)&&cb(e)}function ab(e,t,n){return n(function(){lb(t)&&cb(e)})}function lb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yn(e,n)}catch{return!0}}function cb(e){var t=Gn(e,1);t!==null&&pn(t,e,1,-1)}function fy(e){var t=Sn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:e},t.queue=e,e=e.dispatch=Vk.bind(null,Ae,e),[t.memoizedState,e]}function ma(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ae.updateQueue,t===null?(t={lastEffect:null,stores:null},Ae.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function ub(){return qt().memoizedState}function zl(e,t,n,r){var s=Sn();Ae.flags|=e,s.memoizedState=ma(1|t,n,void 0,r===void 0?null:r)}function tu(e,t,n,r){var s=qt();r=r===void 0?null:r;var i=void 0;if(ze!==null){var o=ze.memoizedState;if(i=o.destroy,r!==null&&Im(r,o.deps)){s.memoizedState=ma(t,n,i,r);return}}Ae.flags|=e,s.memoizedState=ma(1|t,n,i,r)}function my(e,t){return zl(8390656,8,e,t)}function Lm(e,t){return tu(2048,8,e,t)}function db(e,t){return tu(4,2,e,t)}function hb(e,t){return tu(4,4,e,t)}function fb(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 mb(e,t,n){return n=n!=null?n.concat([e]):null,tu(4,4,fb.bind(null,t,e),n)}function Dm(){}function pb(e,t){var n=qt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Im(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function gb(e,t){var n=qt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Im(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function yb(e,t,n){return As&21?(yn(n,t)||(n=Sw(),Ae.lanes|=n,Ps|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,xt=!0),e.memoizedState=n)}function $k(e,t){var n=me;me=n!==0&&4>n?n:4,e(!0);var r=cd.transition;cd.transition={};try{e(!1),t()}finally{me=n,cd.transition=r}}function vb(){return qt().memoizedState}function Fk(e,t,n){var r=Mr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xb(e))wb(t,n);else if(n=eb(e,t,n,r),n!==null){var s=mt();pn(n,e,r,s),bb(n,t,r)}}function Vk(e,t,n){var r=Mr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xb(e))wb(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,l=i(o,n);if(s.hasEagerState=!0,s.eagerState=l,yn(l,o)){var c=t.interleaved;c===null?(s.next=s,km(t)):(s.next=c.next,c.next=s),t.interleaved=s;return}}catch{}finally{}n=eb(e,t,s,r),n!==null&&(s=mt(),pn(n,e,r,s),bb(n,t,r))}}function xb(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function wb(e,t){Uo=bc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bb(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mm(e,n)}}var Sc={readContext:Kt,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},Uk={readContext:Kt,useCallback:function(e,t){return Sn().memoizedState=[e,t===void 0?null:t],e},useContext:Kt,useEffect:my,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,zl(4194308,4,fb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zl(4194308,4,e,t)},useInsertionEffect:function(e,t){return zl(4,2,e,t)},useMemo:function(e,t){var n=Sn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Sn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Fk.bind(null,Ae,e),[r.memoizedState,e]},useRef:function(e){var t=Sn();return e={current:e},t.memoizedState=e},useState:fy,useDebugValue:Dm,useDeferredValue:function(e){return Sn().memoizedState=e},useTransition:function(){var e=fy(!1),t=e[0];return e=$k.bind(null,e[1]),Sn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ae,s=Sn();if(Ee){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),Ye===null)throw Error(I(349));As&30||ib(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,my(ab.bind(null,r,i,e),[e]),r.flags|=2048,ma(9,ob.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Sn(),t=Ye.identifierPrefix;if(Ee){var n=Wn,r=zn;n=(r&~(1<<32-mn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ha++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Dk++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Bk={readContext:Kt,useCallback:pb,useContext:Kt,useEffect:Lm,useImperativeHandle:mb,useInsertionEffect:db,useLayoutEffect:hb,useMemo:gb,useReducer:ud,useRef:ub,useState:function(){return ud(fa)},useDebugValue:Dm,useDeferredValue:function(e){var t=qt();return yb(t,ze.memoizedState,e)},useTransition:function(){var e=ud(fa)[0],t=qt().memoizedState;return[e,t]},useMutableSource:rb,useSyncExternalStore:sb,useId:vb,unstable_isNewReconciler:!1},zk={readContext:Kt,useCallback:pb,useContext:Kt,useEffect:Lm,useImperativeHandle:mb,useInsertionEffect:db,useLayoutEffect:hb,useMemo:gb,useReducer:dd,useRef:ub,useState:function(){return dd(fa)},useDebugValue:Dm,useDeferredValue:function(e){var t=qt();return ze===null?t.memoizedState=e:yb(t,ze.memoizedState,e)},useTransition:function(){var e=dd(fa)[0],t=qt().memoizedState;return[e,t]},useMutableSource:rb,useSyncExternalStore:sb,useId:vb,unstable_isNewReconciler:!1};function sn(e,t){if(e&&e.defaultProps){t=Pe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ih(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Pe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var nu={isMounted:function(e){return(e=e._reactInternals)?$s(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mt(),s=Mr(e),i=Hn(r,s);i.payload=t,n!=null&&(i.callback=n),t=Ir(e,i,s),t!==null&&(pn(t,e,s,r),Ul(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mt(),s=Mr(e),i=Hn(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ir(e,i,s),t!==null&&(pn(t,e,s,r),Ul(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mt(),r=Mr(e),s=Hn(n,r);s.tag=2,t!=null&&(s.callback=t),t=Ir(e,s,r),t!==null&&(pn(t,e,r,n),Ul(t,e,r))}};function py(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!oa(n,r)||!oa(s,i):!0}function Sb(e,t,n){var r=!1,s=Fr,i=t.contextType;return typeof i=="object"&&i!==null?i=Kt(i):(s=St(t)?ks:lt.current,r=t.contextTypes,i=(r=r!=null)?zi(e,s):Fr),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=nu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function gy(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&nu.enqueueReplaceState(t,t.state,null)}function Oh(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},_m(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Kt(i):(i=St(t)?ks:lt.current,s.context=zi(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ih(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&nu.enqueueReplaceState(s,s.state,null),xc(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function qi(e,t){try{var n="",r=t;do n+=yT(r),r=r.return;while(r);var s=n}catch(i){s=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:e,source:t,stack:s,digest:null}}function hd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Mh(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Wk=typeof WeakMap=="function"?WeakMap:Map;function jb(e,t,n){n=Hn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Nc||(Nc=!0,Hh=r),Mh(e,t)},n}function Nb(e,t,n){n=Hn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Mh(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Mh(e,t),typeof r!="function"&&(Or===null?Or=new Set([this]):Or.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function yy(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Wk;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=s_.bind(null,e,t,n),t.then(e,e))}function vy(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 xy(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Hn(-1,1),t.tag=2,Ir(n,t,1))),n.lanes|=1),e)}var Hk=tr.ReactCurrentOwner,xt=!1;function ut(e,t,n,r){t.child=e===null?Zw(t,null,n,r):Hi(t,e.child,n,r)}function wy(e,t,n,r,s){n=n.render;var i=t.ref;return Ti(t,s),r=Om(e,t,n,r,i,s),n=Mm(),e!==null&&!xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Yn(e,t,s)):(Ee&&n&&Sm(t),t.flags|=1,ut(e,t,r,s),t.child)}function by(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Hm(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Cb(e,t,i,r,s)):(e=ql(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:oa,n(o,r)&&e.ref===t.ref)return Yn(e,t,s)}return t.flags|=1,e=Lr(i,r),e.ref=t.ref,e.return=t,t.child=e}function Cb(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(oa(i,r)&&e.ref===t.ref)if(xt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(xt=!0);else return t.lanes=e.lanes,Yn(e,t,s)}return Lh(e,t,n,r,s)}function Eb(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},we(gi,Ct),Ct|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,we(gi,Ct),Ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,we(gi,Ct),Ct|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,we(gi,Ct),Ct|=r;return ut(e,t,s,n),t.child}function Tb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 6,726 bytes, line 40
40function Lh(e,t,n,r,s){var i=St(n)?ks:lt.current;return i=zi(t,i),Ti(t,s),n=Om(e,t,n,r,i,s),r=Mm(),e!==null&&!xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Yn(e,t,s)):(Ee&&r&&Sm(t),t.flags|=1,ut(e,t,n,s),t.child)}function Sy(e,t,n,r,s){if(St(n)){var i=!0;mc(t)}else i=!1;if(Ti(t,s),t.stateNode===null)Wl(e,t),Sb(t,n,r),Oh(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var c=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Kt(u):(u=St(n)?ks:lt.current,u=zi(t,u));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||c!==u)&&gy(t,o,r,u),pr=!1;var f=t.memoizedState;o.state=f,xc(t,r,o,s),c=t.memoizedState,l!==r||f!==c||bt.current||pr?(typeof d=="function"&&(Ih(t,n,d,r),c=t.memoizedState),(l=pr||py(t,n,l,r,f,c,u))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,tb(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:sn(t.type,l),o.props=u,h=t.pendingProps,f=o.context,c=n.contextType,typeof c=="object"&&c!==null?c=Kt(c):(c=St(n)?ks:lt.current,c=zi(t,c));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==h||f!==c)&&gy(t,o,r,c),pr=!1,f=t.memoizedState,o.state=f,xc(t,r,o,s);var w=t.memoizedState;l!==h||f!==w||bt.current||pr?(typeof m=="function"&&(Ih(t,n,m,r),w=t.memoizedState),(u=pr||py(t,n,u,r,f,w,c)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=c,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Dh(e,t,n,r,i,s)}function Dh(e,t,n,r,s,i){Tb(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&ay(t,n,!1),Yn(e,t,i);r=t.stateNode,Hk.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Hi(t,e.child,null,i),t.child=Hi(t,null,l,i)):ut(e,t,l,i),t.memoizedState=r.state,s&&ay(t,n,!0),t.child}function kb(e){var t=e.stateNode;t.pendingContext?oy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&oy(e,t.context,!1),Am(e,t.containerInfo)}function jy(e,t,n,r,s){return Wi(),Nm(s),t.flags|=256,ut(e,t,n,r),t.child}var $h={dehydrated:null,treeContext:null,retryLane:0};function Fh(e){return{baseLanes:e,cachePool:null,transitions:null}}function _b(e,t,n){var r=t.pendingProps,s=_e.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),we(_e,s&1),e===null)return Ph(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=iu(o,r,0,null),e=Cs(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Fh(n),t.memoizedState=$h,e):$m(t,o));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return Kk(e,t,o,r,l,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,l=s.sibling;var c={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Lr(s,c),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=Lr(l,i):(i=Cs(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Fh(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=$h,r}return i=e.child,e=i.sibling,r=Lr(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function $m(e,t){return t=iu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ml(e,t,n,r){return r!==null&&Nm(r),Hi(t,e.child,null,n),e=$m(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Kk(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=hd(Error(I(422))),ml(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=iu({mode:"visible",children:r.children},s,0,null),i=Cs(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Hi(t,e.child,null,o),t.child.memoizedState=Fh(o),t.memoizedState=$h,i);if(!(t.mode&1))return ml(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(I(419)),r=hd(i,r,void 0),ml(e,t,o,r)}if(l=(o&e.childLanes)!==0,xt||l){if(r=Ye,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Gn(e,s),pn(r,e,s,-1))}return Wm(),r=hd(Error(I(421))),ml(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=i_.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,_t=Rr(s.nextSibling),At=t,Ee=!0,hn=null,e!==null&&(Ft[Vt++]=zn,Ft[Vt++]=Wn,Ft[Vt++]=_s,zn=e.id,Wn=e.overflow,_s=t),t=$m(t,r.children),t.flags|=4096,t)}function Ny(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Rh(e.return,t,n)}
vendor: 4,865 bytes, line 40
40function fd(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function Ab(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(ut(e,t,r.children,n),r=_e.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ny(e,n,t);else if(e.tag===19)Ny(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(we(_e,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&wc(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),fd(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&wc(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}fd(t,!0,n,null,i);break;case"together":fd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Yn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ps|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(I(153));if(t.child!==null){for(e=t.child,n=Lr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Lr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function qk(e,t,n){switch(t.tag){case 3:kb(t),Wi();break;case 5:nb(t);break;case 1:St(t.type)&&mc(t);break;case 4:Am(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;we(yc,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(we(_e,_e.current&1),t.flags|=128,null):n&t.child.childLanes?_b(e,t,n):(we(_e,_e.current&1),e=Yn(e,t,n),e!==null?e.sibling:null);we(_e,_e.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ab(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),we(_e,_e.current),r)break;return null;case 22:case 23:return t.lanes=0,Eb(e,t,n)}return Yn(e,t,n)}var Pb,Vh,Rb,Ib;Pb=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Vh=function(){};Rb=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,ms(An.current);var i=null;switch(n){case"input":s=lh(e,s),r=lh(e,r),i=[];break;case"select":s=Pe({},s,{value:void 0}),r=Pe({},r,{value:void 0}),i=[];break;case"textarea":s=dh(e,s),r=dh(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=hc)}fh(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var l=s[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Zo.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(l=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(i||(i=[]),i.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Zo.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Se("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Ib=function(e,t,n,r){n!==r&&(t.flags|=4)};function No(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function it(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}
vendor: 30,229 bytes, line 40
40function Gk(e,t,n){var r=t.pendingProps;switch(jm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(t),null;case 1:return St(t.type)&&fc(),it(t),null;case 3:return r=t.stateNode,Ki(),je(bt),je(lt),Rm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(hl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,hn!==null&&(Gh(hn),hn=null))),Vh(e,t),it(t),null;case 5:Pm(t);var s=ms(da.current);if(n=t.type,e!==null&&t.stateNode!=null)Rb(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(I(166));return it(t),null}if(e=ms(An.current),hl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[En]=t,r[ca]=i,e=(t.mode&1)!==0,n){case"dialog":Se("cancel",r),Se("close",r);break;case"iframe":case"object":case"embed":Se("load",r);break;case"video":case"audio":for(s=0;s<Ro.length;s++)Se(Ro[s],r);break;case"source":Se("error",r);break;case"img":case"image":case"link":Se("error",r),Se("load",r);break;case"details":Se("toggle",r);break;case"input":Ig(r,i),Se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Se("invalid",r);break;case"textarea":Mg(r,i),Se("invalid",r)}fh(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&dl(r.textContent,l,e),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&dl(r.textContent,l,e),s=["children",""+l]):Zo.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&Se("scroll",r)}switch(n){case"input":rl(r),Og(r,i,!0);break;case"textarea":rl(r),Lg(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=hc)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=aw(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[En]=t,e[ca]=r,Pb(e,t,!1,!1),t.stateNode=e;e:{switch(o=mh(n,r),n){case"dialog":Se("cancel",e),Se("close",e),s=r;break;case"iframe":case"object":case"embed":Se("load",e),s=r;break;case"video":case"audio":for(s=0;s<Ro.length;s++)Se(Ro[s],e);s=r;break;case"source":Se("error",e),s=r;break;case"img":case"image":case"link":Se("error",e),Se("load",e),s=r;break;case"details":Se("toggle",e),s=r;break;case"input":Ig(e,r),s=lh(e,r),Se("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Pe({},r,{value:void 0}),Se("invalid",e);break;case"textarea":Mg(e,r),s=dh(e,r),Se("invalid",e);break;default:s=r}fh(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?uw(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&lw(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&ea(e,c):typeof c=="number"&&ea(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Zo.hasOwnProperty(i)?c!=null&&i==="onScroll"&&Se("scroll",e):c!=null&&lm(e,i,c,o))}switch(n){case"input":rl(e),Og(e,r,!1);break;case"textarea":rl(e),Lg(e);break;case"option":r.value!=null&&e.setAttribute("value",""+$r(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?ji(e,!!r.multiple,i,!1):r.defaultValue!=null&&ji(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=hc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return it(t),null;case 6:if(e&&t.stateNode!=null)Ib(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(I(166));if(n=ms(da.current),ms(An.current),hl(t)){if(r=t.stateNode,n=t.memoizedProps,r[En]=t,(i=r.nodeValue!==n)&&(e=At,e!==null))switch(e.tag){case 3:dl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&dl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[En]=t,t.stateNode=r}return it(t),null;case 13:if(je(_e),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&_t!==null&&t.mode&1&&!(t.flags&128))Xw(),Wi(),t.flags|=98560,i=!1;else if(i=hl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(I(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(I(317));i[En]=t}else Wi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;it(t),i=!1}else hn!==null&&(Gh(hn),hn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||_e.current&1?We===0&&(We=3):Wm())),t.updateQueue!==null&&(t.flags|=4),it(t),null);case 4:return Ki(),Vh(e,t),e===null&&aa(t.stateNode.containerInfo),it(t),null;case 10:return Tm(t.type._context),it(t),null;case 17:return St(t.type)&&fc(),it(t),null;case 19:if(je(_e),i=t.memoizedState,i===null)return it(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)No(i,!1);else{if(We!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=wc(e),o!==null){for(t.flags|=128,No(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return we(_e,_e.current&1|2),t.child}e=e.sibling}i.tail!==null&&Le()>Gi&&(t.flags|=128,r=!0,No(i,!1),t.lanes=4194304)}else{if(!r)if(e=wc(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),No(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Ee)return it(t),null}else 2*Le()-i.renderingStartTime>Gi&&n!==1073741824&&(t.flags|=128,r=!0,No(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Le(),t.sibling=null,n=_e.current,we(_e,r?n&1|2:n&1),t):(it(t),null);case 22:case 23:return zm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ct&1073741824&&(it(t),t.subtreeFlags&6&&(t.flags|=8192)):it(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function Yk(e,t){switch(jm(t),t.tag){case 1:return St(t.type)&&fc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ki(),je(bt),je(lt),Rm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pm(t),null;case 13:if(je(_e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return je(_e),null;case 4:return Ki(),null;case 10:return Tm(t.type._context),null;case 22:case 23:return zm(),null;case 24:return null;default:return null}}var pl=!1,at=!1,Qk=typeof WeakSet=="function"?WeakSet:Set,V=null;function pi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Me(e,t,r)}else n.current=null}function Uh(e,t,n){try{n()}catch(r){Me(e,t,r)}}var Cy=!1;function Xk(e,t){if(Nh=cc,e=$w(),bm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,c=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var m;h!==n||s!==0&&h.nodeType!==3||(l=o+s),h!==i||r!==0&&h.nodeType!==3||(c=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(m=h.firstChild)!==null;)f=h,h=m;for(;;){if(h===e)break t;if(f===n&&++u===s&&(l=o),f===i&&++d===r&&(c=o),(m=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=m}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ch={focusedElem:e,selectionRange:n},cc=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;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 p=w.memoizedProps,b=w.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?p:sn(t.type,p),b);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(S){Me(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return w=Cy,Cy=!1,w}function Bo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Uh(t,n,i)}s=s.next}while(s!==r)}}function ru(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Bh(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ob(e){var t=e.alternate;t!==null&&(e.alternate=null,Ob(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[En],delete t[ca],delete t[kh],delete t[Ik],delete t[Ok])),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 Mb(e){return e.tag===5||e.tag===3||e.tag===4}function Ey(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mb(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 zh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hc));else if(r!==4&&(e=e.child,e!==null))for(zh(e,t,n),e=e.sibling;e!==null;)zh(e,t,n),e=e.sibling}function Wh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Wh(e,t,n),e=e.sibling;e!==null;)Wh(e,t,n),e=e.sibling}var Je=null,un=!1;function ar(e,t,n){for(n=n.child;n!==null;)Lb(e,t,n),n=n.sibling}function Lb(e,t,n){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(Yc,n)}catch{}switch(n.tag){case 5:at||pi(n,t);case 6:var r=Je,s=un;Je=null,ar(e,t,n),Je=r,un=s,Je!==null&&(un?(e=Je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Je.removeChild(n.stateNode));break;case 18:Je!==null&&(un?(e=Je,n=n.stateNode,e.nodeType===8?od(e.parentNode,n):e.nodeType===1&&od(e,n),sa(e)):od(Je,n.stateNode));break;case 4:r=Je,s=un,Je=n.stateNode.containerInfo,un=!0,ar(e,t,n),Je=r,un=s;break;case 0:case 11:case 14:case 15:if(!at&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Uh(n,t,o),s=s.next}while(s!==r)}ar(e,t,n);break;case 1:if(!at&&(pi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Me(n,t,l)}ar(e,t,n);break;case 21:ar(e,t,n);break;case 22:n.mode&1?(at=(r=at)||n.memoizedState!==null,ar(e,t,n),at=r):ar(e,t,n);break;default:ar(e,t,n)}}function Ty(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Qk),t.forEach(function(r){var s=o_.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Jt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:Je=l.stateNode,un=!1;break e;case 3:Je=l.stateNode.containerInfo,un=!0;break e;case 4:Je=l.stateNode.containerInfo,un=!0;break e}l=l.return}if(Je===null)throw Error(I(160));Lb(i,o,s),Je=null,un=!1;var c=s.alternate;c!==null&&(c.return=null),s.return=null}catch(u){Me(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Db(t,e),t=t.sibling}function Db(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Jt(t,e),bn(e),r&4){try{Bo(3,e,e.return),ru(3,e)}catch(p){Me(e,e.return,p)}try{Bo(5,e,e.return)}catch(p){Me(e,e.return,p)}}break;case 1:Jt(t,e),bn(e),r&512&&n!==null&&pi(n,n.return);break;case 5:if(Jt(t,e),bn(e),r&512&&n!==null&&pi(n,n.return),e.flags&32){var s=e.stateNode;try{ea(s,"")}catch(p){Me(e,e.return,p)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&iw(s,i),mh(l,o);var u=mh(l,i);for(o=0;o<c.length;o+=2){var d=c[o],h=c[o+1];d==="style"?uw(s,h):d==="dangerouslySetInnerHTML"?lw(s,h):d==="children"?ea(s,h):lm(s,d,h,u)}switch(l){case"input":ch(s,i);break;case"textarea":ow(s,i);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?ji(s,!!i.multiple,m,!1):f!==!!i.multiple&&(i.defaultValue!=null?ji(s,!!i.multiple,i.defaultValue,!0):ji(s,!!i.multiple,i.multiple?[]:"",!1))}s[ca]=i}catch(p){Me(e,e.return,p)}}break;case 6:if(Jt(t,e),bn(e),r&4){if(e.stateNode===null)throw Error(I(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(p){Me(e,e.return,p)}}break;case 3:if(Jt(t,e),bn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{sa(t.containerInfo)}catch(p){Me(e,e.return,p)}break;case 4:Jt(t,e),bn(e);break;case 13:Jt(t,e),bn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Um=Le())),r&4&&Ty(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(at=(u=at)||d,Jt(t,e),at=u):Jt(t,e),bn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(V=e,d=e.child;d!==null;){for(h=V=d;V!==null;){switch(f=V,m=f.child,f.tag){case 0:case 11:case 14:case 15:Bo(4,f,f.return);break;case 1:pi(f,f.return);var w=f.stateNode;if(typeof w.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(p){Me(r,n,p)}}break;case 5:pi(f,f.return);break;case 22:if(f.memoizedState!==null){_y(h);continue}}m!==null?(m.return=f,V=m):_y(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{s=h.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=h.stateNode,c=h.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=cw("display",o))}catch(p){Me(e,e.return,p)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(p){Me(e,e.return,p)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Jt(t,e),bn(e),r&4&&Ty(e);break;case 21:break;default:Jt(t,e),bn(e)}}function bn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Mb(n)){var r=n;break e}n=n.return}throw Error(I(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(ea(s,""),r.flags&=-33);var i=Ey(e);Wh(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,l=Ey(e);zh(e,l,o);break;default:throw Error(I(161))}}catch(c){Me(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jk(e,t,n){V=e,$b(e)}function $b(e,t,n){for(var r=(e.mode&1)!==0;V!==null;){var s=V,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||pl;if(!o){var l=s.alternate,c=l!==null&&l.memoizedState!==null||at;l=pl;var u=at;if(pl=o,(at=c)&&!u)for(V=s;V!==null;)o=V,c=o.child,o.tag===22&&o.memoizedState!==null?Ay(s):c!==null?(c.return=o,V=c):Ay(s);for(;i!==null;)V=i,$b(i),i=i.sibling;V=s,pl=l,at=u}ky(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,V=i):ky(e)}}function ky(e){for(;V!==null;){var t=V;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:at||ru(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!at)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:sn(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&hy(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}hy(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.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 d=u.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&sa(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(I(163))}at||t.flags&512&&Bh(t)}catch(f){Me(t,t.return,f)}}if(t===e){V=null;break}if(n=t.sibling,n!==null){n.return=t.return,V=n;break}V=t.return}}function _y(e){for(;V!==null;){var t=V;if(t===e){V=null;break}var n=t.sibling;if(n!==null){n.return=t.return,V=n;break}V=t.return}}function Ay(e){for(;V!==null;){var t=V;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ru(4,t)}catch(c){Me(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(c){Me(t,s,c)}}var i=t.return;try{Bh(t)}catch(c){Me(t,i,c)}break;case 5:var o=t.return;try{Bh(t)}catch(c){Me(t,o,c)}}}catch(c){Me(t,t.return,c)}if(t===e){V=null;break}var l=t.sibling;if(l!==null){l.return=t.return,V=l;break}V=t.return}}var Zk=Math.ceil,jc=tr.ReactCurrentDispatcher,Fm=tr.ReactCurrentOwner,zt=tr.ReactCurrentBatchConfig,le=0,Ye=null,Ve=null,et=0,Ct=0,gi=Hr(0),We=0,pa=null,Ps=0,su=0,Vm=0,zo=null,vt=null,Um=0,Gi=1/0,Fn=null,Nc=!1,Hh=null,Or=null,gl=!1,Er=null,Cc=0,Wo=0,Kh=null,Hl=-1,Kl=0;function mt(){return le&6?Le():Hl!==-1?Hl:Hl=Le()}function Mr(e){return e.mode&1?le&2&&et!==0?et&-et:Lk.transition!==null?(Kl===0&&(Kl=Sw()),Kl):(e=me,e!==0||(e=window.event,e=e===void 0?16:_w(e.type)),e):1}function pn(e,t,n,r){if(50<Wo)throw Wo=0,Kh=null,Error(I(185));$a(e,n,r),(!(le&2)||e!==Ye)&&(e===Ye&&(!(le&2)&&(su|=n),We===4&&vr(e,et)),jt(e,r),n===1&&le===0&&!(t.mode&1)&&(Gi=Le()+500,eu&&Kr()))}function jt(e,t){var n=e.callbackNode;LT(e,t);var r=lc(e,e===Ye?et:0);if(r===0)n!==null&&Fg(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Fg(n),t===1)e.tag===0?Mk(Py.bind(null,e)):Gw(Py.bind(null,e)),Pk(function(){!(le&6)&&Kr()}),n=null;else{switch(jw(r)){case 1:n=fm;break;case 4:n=ww;break;case 16:n=ac;break;case 536870912:n=bw;break;default:n=ac}n=Kb(n,Fb.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Fb(e,t){if(Hl=-1,Kl=0,le&6)throw Error(I(327));var n=e.callbackNode;if(ki()&&e.callbackNode!==n)return null;var r=lc(e,e===Ye?et:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ec(e,r);else{t=r;var s=le;le|=2;var i=Ub();(Ye!==e||et!==t)&&(Fn=null,Gi=Le()+500,Ns(e,t));do try{n_();break}catch(l){Vb(e,l)}while(!0);Em(),jc.current=i,le=s,Ve!==null?t=0:(Ye=null,et=0,t=We)}if(t!==0){if(t===2&&(s=xh(e),s!==0&&(r=s,t=qh(e,s))),t===1)throw n=pa,Ns(e,0),vr(e,r),jt(e,Le()),n;if(t===6)vr(e,r);else{if(s=e.current.alternate,!(r&30)&&!e_(s)&&(t=Ec(e,r),t===2&&(i=xh(e),i!==0&&(r=i,t=qh(e,i))),t===1))throw n=pa,Ns(e,0),vr(e,r),jt(e,Le()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(I(345));case 2:as(e,vt,Fn);break;case 3:if(vr(e,r),(r&130023424)===r&&(t=Um+500-Le(),10<t)){if(lc(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){mt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Th(as.bind(null,e,vt,Fn),t);break}as(e,vt,Fn);break;case 4:if(vr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-mn(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=Le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Zk(r/1960))-r,10<r){e.timeoutHandle=Th(as.bind(null,e,vt,Fn),r);break}as(e,vt,Fn);break;case 5:as(e,vt,Fn);break;default:throw Error(I(329))}}}return jt(e,Le()),e.callbackNode===n?Fb.bind(null,e):null}function qh(e,t){var n=zo;return e.current.memoizedState.isDehydrated&&(Ns(e,t).flags|=256),e=Ec(e,t),e!==2&&(t=vt,vt=n,t!==null&&Gh(t)),e}function Gh(e){vt===null?vt=e:vt.push.apply(vt,e)}function e_(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!yn(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function vr(e,t){for(t&=~Vm,t&=~su,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-mn(t),r=1<<n;e[n]=-1,t&=~r}}function Py(e){if(le&6)throw Error(I(327));ki();var t=lc(e,0);if(!(t&1))return jt(e,Le()),null;var n=Ec(e,t);if(e.tag!==0&&n===2){var r=xh(e);r!==0&&(t=r,n=qh(e,r))}if(n===1)throw n=pa,Ns(e,0),vr(e,t),jt(e,Le()),n;if(n===6)throw Error(I(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,as(e,vt,Fn),jt(e,Le()),null}function Bm(e,t){var n=le;le|=1;try{return e(t)}finally{le=n,le===0&&(Gi=Le()+500,eu&&Kr())}}function Rs(e){Er!==null&&Er.tag===0&&!(le&6)&&ki();var t=le;le|=1;var n=zt.transition,r=me;try{if(zt.transition=null,me=1,e)return e()}finally{me=r,zt.transition=n,le=t,!(le&6)&&Kr()}}function zm(){Ct=gi.current,je(gi)}function Ns(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ak(n)),Ve!==null)for(n=Ve.return;n!==null;){var r=n;switch(jm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&fc();break;case 3:Ki(),je(bt),je(lt),Rm();break;case 5:Pm(r);break;case 4:Ki();break;case 13:je(_e);break;case 19:je(_e);break;case 10:Tm(r.type._context);break;case 22:case 23:zm()}n=n.return}if(Ye=e,Ve=e=Lr(e.current,null),et=Ct=t,We=0,pa=null,Vm=su=Ps=0,vt=zo=null,fs!==null){for(t=0;t<fs.length;t++)if(n=fs[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}fs=null}return e}function Vb(e,t){do{var n=Ve;try{if(Em(),Bl.current=Sc,bc){for(var r=Ae.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}bc=!1}if(As=0,Ke=ze=Ae=null,Uo=!1,ha=0,Fm.current=null,n===null||n.return===null){We=1,pa=t,Ve=null;break}e:{var i=e,o=n.return,l=n,c=t;if(t=et,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=vy(o);if(m!==null){m.flags&=-257,xy(m,o,l,i,t),m.mode&1&&yy(i,u,t),t=m,c=u;var w=t.updateQueue;if(w===null){var p=new Set;p.add(c),t.updateQueue=p}else w.add(c);break e}else{if(!(t&1)){yy(i,u,t),Wm();break e}c=Error(I(426))}}else if(Ee&&l.mode&1){var b=vy(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),xy(b,o,l,i,t),Nm(qi(c,l));break e}}i=c=qi(c,l),We!==4&&(We=2),zo===null?zo=[i]:zo.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=jb(i,c,t);dy(i,v);break e;case 1:l=c;var g=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Or===null||!Or.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=Nb(i,l,t);dy(i,S);break e}}i=i.return}while(i!==null)}zb(n)}catch(j){t=j,Ve===n&&n!==null&&(Ve=n=n.return);continue}break}while(!0)}function Ub(){var e=jc.current;return jc.current=Sc,e===null?Sc:e}function Wm(){(We===0||We===3||We===2)&&(We=4),Ye===null||!(Ps&268435455)&&!(su&268435455)||vr(Ye,et)}function Ec(e,t){var n=le;le|=2;var r=Ub();(Ye!==e||et!==t)&&(Fn=null,Ns(e,t));do try{t_();break}catch(s){Vb(e,s)}while(!0);if(Em(),le=n,jc.current=r,Ve!==null)throw Error(I(261));return Ye=null,et=0,We}function t_(){for(;Ve!==null;)Bb(Ve)}function n_(){for(;Ve!==null&&!TT();)Bb(Ve)}function Bb(e){var t=Hb(e.alternate,e,Ct);e.memoizedProps=e.pendingProps,t===null?zb(e):Ve=t,Fm.current=null}function zb(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Yk(n,t),n!==null){n.flags&=32767,Ve=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{We=6,Ve=null;return}}else if(n=Gk(n,t,Ct),n!==null){Ve=n;return}if(t=t.sibling,t!==null){Ve=t;return}Ve=t=e}while(t!==null);We===0&&(We=5)}function as(e,t,n){var r=me,s=zt.transition;try{zt.transition=null,me=1,r_(e,t,n,r)}finally{zt.transition=s,me=r}return null}function r_(e,t,n,r){do ki();while(Er!==null);if(le&6)throw Error(I(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(I(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(DT(e,i),e===Ye&&(Ve=Ye=null,et=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||gl||(gl=!0,Kb(ac,function(){return ki(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=zt.transition,zt.transition=null;var o=me;me=1;var l=le;le|=4,Fm.current=null,Xk(e,n),Db(n,e),jk(Ch),cc=!!Nh,Ch=Nh=null,e.current=n,Jk(n),kT(),le=l,me=o,zt.transition=i}else e.current=n;if(gl&&(gl=!1,Er=e,Cc=s),i=e.pendingLanes,i===0&&(Or=null),PT(n.stateNode),jt(e,Le()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Nc)throw Nc=!1,e=Hh,Hh=null,e;return Cc&1&&e.tag!==0&&ki(),i=e.pendingLanes,i&1?e===Kh?Wo++:(Wo=0,Kh=e):Wo=0,Kr(),null}function ki(){if(Er!==null){var e=jw(Cc),t=zt.transition,n=me;try{if(zt.transition=null,me=16>e?16:e,Er===null)var r=!1;else{if(e=Er,Er=null,Cc=0,le&6)throw Error(I(331));var s=le;for(le|=4,V=e.current;V!==null;){var i=V,o=i.child;if(V.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(V=u;V!==null;){var d=V;switch(d.tag){case 0:case 11:case 15:Bo(8,d,i)}var h=d.child;if(h!==null)h.return=d,V=h;else for(;V!==null;){d=V;var f=d.sibling,m=d.return;if(Ob(d),d===u){V=null;break}if(f!==null){f.return=m,V=f;break}V=m}}}var w=i.alternate;if(w!==null){var p=w.child;if(p!==null){w.child=null;do{var b=p.sibling;p.sibling=null,p=b}while(p!==null)}}V=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,V=o;else e:for(;V!==null;){if(i=V,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Bo(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,V=v;break e}V=i.return}}var g=e.current;for(V=g;V!==null;){o=V;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,V=x;else e:for(o=g;V!==null;){if(l=V,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:ru(9,l)}}catch(j){Me(l,l.return,j)}if(l===o){V=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,V=S;break e}V=l.return}}if(le=s,Kr(),_n&&typeof _n.onPostCommitFiberRoot=="function")try{_n.onPostCommitFiberRoot(Yc,e)}catch{}r=!0}return r}finally{me=n,zt.transition=t}}return!1}function Ry(e,t,n){t=qi(n,t),t=jb(e,t,1),e=Ir(e,t,1),t=mt(),e!==null&&($a(e,1,t),jt(e,t))}function Me(e,t,n){if(e.tag===3)Ry(e,e,n);else for(;t!==null;){if(t.tag===3){Ry(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Or===null||!Or.has(r))){e=qi(n,e),e=Nb(t,e,1),t=Ir(t,e,1),e=mt(),t!==null&&($a(t,1,e),jt(t,e));break}}t=t.return}}function s_(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=mt(),e.pingedLanes|=e.suspendedLanes&n,Ye===e&&(et&n)===n&&(We===4||We===3&&(et&130023424)===et&&500>Le()-Um?Ns(e,0):Vm|=n),jt(e,t)}function Wb(e,t){t===0&&(e.mode&1?(t=ol,ol<<=1,!(ol&130023424)&&(ol=4194304)):t=1);var n=mt();e=Gn(e,t),e!==null&&($a(e,t,n),jt(e,n))}function i_(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wb(e,n)}function o_(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(I(314))}r!==null&&r.delete(t),Wb(e,n)}var Hb;Hb=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||bt.current)xt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return xt=!1,qk(e,t,n);xt=!!(e.flags&131072)}else xt=!1,Ee&&t.flags&1048576&&Yw(t,gc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wl(e,t),e=t.pendingProps;var s=zi(t,lt.current);Ti(t,n),s=Om(null,t,r,e,s,n);var i=Mm();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,St(r)?(i=!0,mc(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,_m(t),s.updater=nu,t.stateNode=s,s._reactInternals=t,Oh(t,r,e,n),t=Dh(null,t,r,!0,i,n)):(t.tag=0,Ee&&i&&Sm(t),ut(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=l_(r),e=sn(r,e),s){case 0:t=Lh(null,t,r,e,n);break e;case 1:t=Sy(null,t,r,e,n);break e;case 11:t=wy(null,t,r,e,n);break e;case 14:t=by(null,t,r,sn(r.type,e),n);break e}throw Error(I(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:sn(r,s),Lh(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:sn(r,s),Sy(e,t,r,s,n);case 3:e:{if(kb(t),e===null)throw Error(I(387));
vendor: 4,166 bytes, line 40
40r=t.pendingProps,i=t.memoizedState,s=i.element,tb(e,t),xc(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=qi(Error(I(423)),t),t=jy(e,t,r,n,s);break e}else if(r!==s){s=qi(Error(I(424)),t),t=jy(e,t,r,n,s);break e}else for(_t=Rr(t.stateNode.containerInfo.firstChild),At=t,Ee=!0,hn=null,n=Zw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wi(),r===s){t=Yn(e,t,n);break e}ut(e,t,r,n)}t=t.child}return t;case 5:return nb(t),e===null&&Ph(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Eh(r,s)?o=null:i!==null&&Eh(r,i)&&(t.flags|=32),Tb(e,t),ut(e,t,o,n),t.child;case 6:return e===null&&Ph(t),null;case 13:return _b(e,t,n);case 4:return Am(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hi(t,null,r,n):ut(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:sn(r,s),wy(e,t,r,s,n);case 7:return ut(e,t,t.pendingProps,n),t.child;case 8:return ut(e,t,t.pendingProps.children,n),t.child;case 12:return ut(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,we(yc,r._currentValue),r._currentValue=o,i!==null)if(yn(i.value,o)){if(i.children===s.children&&!bt.current){t=Yn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Hn(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Rh(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(I(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Rh(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}ut(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ti(t,n),s=Kt(s),r=r(s),t.flags|=1,ut(e,t,r,n),t.child;case 14:return r=t.type,s=sn(r,t.pendingProps),s=sn(r.type,s),by(e,t,r,s,n);case 15:return Cb(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:sn(r,s),Wl(e,t),t.tag=1,St(r)?(e=!0,mc(t)):e=!1,Ti(t,n),Sb(t,r,s),Oh(t,r,s,n),Dh(null,t,r,!0,e,n);case 19:return Ab(e,t,n);case 22:return Eb(e,t,n)}throw Error(I(156,t.tag))};function Kb(e,t){return xw(e,t)}function a_(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,n,r){return new a_(e,t,n,r)}function Hm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function l_(e){if(typeof e=="function")return Hm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===um)return 11;if(e===dm)return 14}return 2}function Lr(e,t){var n=e.alternate;return n===null?(n=Ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ql(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")Hm(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case oi:return Cs(n.children,s,i,t);case cm:o=8,s|=8;break;case sh:return e=Ut(12,n,t,s|2),e.elementType=sh,e.lanes=i,e;case ih:return e=Ut(13,n,t,s),e.elementType=ih,e.lanes=i,e;
vendor: 4,173 bytes, line 40
40case oh:return e=Ut(19,n,t,s),e.elementType=oh,e.lanes=i,e;case nw:return iu(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ew:o=10;break e;case tw:o=9;break e;case um:o=11;break e;case dm:o=14;break e;case mr:o=16,r=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=Ut(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Cs(e,t,n,r){return e=Ut(7,e,r,t),e.lanes=n,e}function iu(e,t,n,r){return e=Ut(22,e,r,t),e.elementType=nw,e.lanes=n,e.stateNode={isHidden:!1},e}function md(e,t,n){return e=Ut(6,e,null,t),e.lanes=n,e}function pd(e,t,n){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function c_(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yu(0),this.expirationTimes=Yu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yu(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Km(e,t,n,r,s,i,o,l,c){return e=new c_(e,t,n,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ut(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_m(i),e}function u_(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ii,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function qb(e){if(!e)return Fr;e=e._reactInternals;e:{if($s(e)!==e||e.tag!==1)throw Error(I(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(St(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(I(171))}if(e.tag===1){var n=e.type;if(St(n))return qw(e,n,t)}return t}function Gb(e,t,n,r,s,i,o,l,c){return e=Km(n,r,!0,e,s,i,o,l,c),e.context=qb(null),n=e.current,r=mt(),s=Mr(n),i=Hn(r,s),i.callback=t??null,Ir(n,i,s),e.current.lanes=s,$a(e,s,r),jt(e,r),e}function ou(e,t,n,r){var s=t.current,i=mt(),o=Mr(s);return n=qb(n),t.context===null?t.context=n:t.pendingContext=n,t=Hn(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ir(s,t,o),e!==null&&(pn(e,s,o,i),Ul(e,s,o)),o}function Tc(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 Iy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function qm(e,t){Iy(e,t),(e=e.alternate)&&Iy(e,t)}function d_(){return null}var Yb=typeof reportError=="function"?reportError:function(e){console.error(e)};function Gm(e){this._internalRoot=e}au.prototype.render=Gm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));ou(e,t,null,null)};au.prototype.unmount=Gm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Rs(function(){ou(null,e,null,null)}),t[qn]=null}};function au(e){this._internalRoot=e}au.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ew();e={blockedOn:null,target:e,priority:t};for(var n=0;n<yr.length&&t!==0&&t<yr[n].priority;n++);yr.splice(n,0,e),n===0&&kw(e)}};function Ym(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function lu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Oy(){}function h_(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=Tc(o);i.call(u)}}var o=Gb(t,r,e,0,null,!1,!1,"",Oy);return e._reactRootContainer=o,e[qn]=o.current,aa(e.nodeType===8?e.parentNode:e),Rs(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var u=Tc(c);l.call(u)}}var c=Km(e,0,!1,null,null,!1,!1,"",Oy);return e._reactRootContainer=c,e[qn]=c.current,aa(e.nodeType===8?e.parentNode:e),Rs(function(){ou(t,c,n,r)}),c}
vendor: 4,437 bytes, line 40
40function cu(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var l=s;s=function(){var c=Tc(o);l.call(c)}}ou(t,o,e,s)}else o=h_(n,t,e,s,r);return Tc(o)}Nw=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Po(t.pendingLanes);n!==0&&(mm(t,n|1),jt(t,Le()),!(le&6)&&(Gi=Le()+500,Kr()))}break;case 13:Rs(function(){var r=Gn(e,1);if(r!==null){var s=mt();pn(r,e,1,s)}}),qm(e,1)}};pm=function(e){if(e.tag===13){var t=Gn(e,134217728);if(t!==null){var n=mt();pn(t,e,134217728,n)}qm(e,134217728)}};Cw=function(e){if(e.tag===13){var t=Mr(e),n=Gn(e,t);if(n!==null){var r=mt();pn(n,e,t,r)}qm(e,t)}};Ew=function(){return me};Tw=function(e,t){var n=me;try{return me=e,t()}finally{me=n}};gh=function(e,t,n){switch(t){case"input":if(ch(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Zc(r);if(!s)throw Error(I(90));sw(r),ch(r,s)}}}break;case"textarea":ow(e,n);break;case"select":t=n.value,t!=null&&ji(e,!!n.multiple,t,!1)}};fw=Bm;mw=Rs;var f_={usingClientEntryPoint:!1,Events:[Va,ui,Zc,dw,hw,Bm]},Co={findFiberByHostInstance:hs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},m_={bundleType:Co.bundleType,version:Co.version,rendererPackageName:Co.rendererPackageName,rendererConfig:Co.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:tr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yw(e),e===null?null:e.stateNode},findFiberByHostInstance:Co.findFiberByHostInstance||d_,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yl.isDisabled&&yl.supportsFiber)try{Yc=yl.inject(m_),_n=yl}catch{}}It.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=f_;It.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ym(t))throw Error(I(200));return u_(e,t,null,n)};It.createRoot=function(e,t){if(!Ym(e))throw Error(I(299));var n=!1,r="",s=Yb;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Km(e,1,!1,null,null,n,!1,r,s),e[qn]=t.current,aa(e.nodeType===8?e.parentNode:e),new Gm(t)};It.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=yw(t),e=e===null?null:e.stateNode,e};It.flushSync=function(e){return Rs(e)};It.hydrate=function(e,t,n){if(!lu(t))throw Error(I(200));return cu(null,e,t,!0,n)};It.hydrateRoot=function(e,t,n){if(!Ym(e))throw Error(I(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Yb;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Gb(t,null,e,1,n??null,s,!1,i,o),e[qn]=t.current,aa(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new au(t)};It.render=function(e,t,n){if(!lu(t))throw Error(I(200));return cu(null,e,t,!1,n)};It.unmountComponentAtNode=function(e){if(!lu(e))throw Error(I(40));return e._reactRootContainer?(Rs(function(){cu(null,null,e,!1,function(){e._reactRootContainer=null,e[qn]=null})}),!0):!1};It.unstable_batchedUpdates=Bm;It.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!lu(n))throw Error(I(200));if(e==null||e._reactInternals===void 0)throw Error(I(38));return cu(e,t,n,!1,r)};It.version="18.3.1-next-f1338f8080-20240426";function Qb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qb)}catch(e){console.error(e)}}Qb(),Q0.exports=It;var Fs=Q0.exports;const Xb=$0(Fs);var Jb,My=Fs;Jb=My.createRoot,My.hydrateRoot;
40const p_=1,g_=1e6;let gd=0;function y_(){return gd=(gd+1)%Number.MAX_SAFE_INTEGER,gd.toString()}const yd=new Map,Ly=e=>{if(yd.has(e))return;const t=setTimeout(()=>{yd.delete(e),Ho({type:"REMOVE_TOAST",toastId:e})},g_);yd.set(e,t)},v_=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,p_)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Ly(n):e.toasts.forEach(r=>{Ly(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Gl=[];let Yl={toasts:[]};function Ho(e){Yl=v_(Yl,e),Gl.forEach(t=>{t(Yl)})}function x_({...e}){const t=y_(),n=s=>Ho({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>Ho({type:"DISMISS_TOAST",toastId:t});return Ho({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function Qm(){const[e,t]=y.useState(Yl);return y.useEffect(()=>(Gl.push(t),()=>{const n=Gl.indexOf(t);n>-1&&Gl.splice(n,1)}),[e]),{...e,toast:x_,dismiss:n=>Ho({type:"DISMISS_TOAST",toastId:n})}}function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Dy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Zb(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Dy(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():Dy(e[s],null)}}}}function fe(...e){return y.useCallback(Zb(...e),e)}function qr(e,t=[]){let n=[];function r(i,o){const l=y.createContext(o),c=n.length;n=[...n,o];const u=h=>{var v;const{scope:f,children:m,...w}=h,p=((v=f==null?void 0:f[e])==null?void 0:v[c])||l,b=y.useMemo(()=>w,Object.values(w));return a.jsx(p.Provider,{value:b,children:m})};u.displayName=i+"Provider";function d(h,f){var p;const m=((p=f==null?void 0:f[e])==null?void 0:p[c])||l,w=y.useContext(m);if(w)return w;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,d]}const s=()=>{const i=n.map(o=>y.createContext(o));return function(l){const c=(l==null?void 0:l[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return s.scopeName=e,[r,w_(s,...t)]}function w_(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:c,scopeName:u})=>{const h=c(i)[`__scope${u}`];return{...l,...h}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function ga(e){const t=S_(e),n=y.forwardRef((r,s)=>{const{children:i,...o}=r,l=y.Children.toArray(i),c=l.find(N_);if(c){const u=c.props.children,d=l.map(h=>h===c?y.Children.count(u)>1?y.Children.only(null):y.isValidElement(u)?u.props.children:null:h);return a.jsx(t,{...o,ref:s,children:y.isValidElement(u)?y.cloneElement(u,void 0,d):null})}return a.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var b_=ga("Slot");function S_(e){const t=y.forwardRef((n,r)=>{const{children:s,...i}=n;if(y.isValidElement(s)){const o=E_(s),l=C_(i,s.props);return s.type!==y.Fragment&&(l.ref=r?Zb(r,o):o),y.cloneElement(s,l)}return y.Children.count(s)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var e1=Symbol("radix.slottable");function j_(e){const t=({children:n})=>a.jsx(a.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=e1,t}function N_(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===e1}function C_(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...l)=>{const c=i(...l);return s(...l),c}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function E_(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Xm(e){const t=e+"CollectionProvider",[n,r]=qr(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:b,children:v}=p,g=R.useRef(null),x=R.useRef(new Map).current;return a.jsx(s,{scope:b,itemMap:x,collectionRef:g,children:v})};o.displayName=t;const l=e+"CollectionSlot",c=ga(l),u=R.forwardRef((p,b)=>{const{scope:v,children:g}=p,x=i(l,v),S=fe(b,x.collectionRef);return a.jsx(c,{ref:S,children:g})});u.displayName=l;const d=e+"CollectionItemSlot",h="data-radix-collection-item",f=ga(d),m=R.forwardRef((p,b)=>{const{scope:v,children:g,...x}=p,S=R.useRef(null),j=fe(b,S),N=i(d,v);return R.useEffect(()=>(N.itemMap.set(S,{ref:S,...x}
vendor: 9,171 bytes, line 40
40),()=>void N.itemMap.delete(S))),a.jsx(f,{[h]:"",ref:j,children:g})});m.displayName=d;function w(p){const b=i(e+"CollectionConsumer",p);return R.useCallback(()=>{const g=b.collectionRef.current;if(!g)return[];const x=Array.from(g.querySelectorAll(`[${h}]`));return Array.from(b.itemMap.values()).sort((N,C)=>x.indexOf(N.ref.current)-x.indexOf(C.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:o,Slot:u,ItemSlot:m},w,r]}var T_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],se=T_.reduce((e,t)=>{const n=ga(`Primitive.${t}`),r=y.forwardRef((s,i)=>{const{asChild:o,...l}=s,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function t1(e,t){e&&Fs.flushSync(()=>e.dispatchEvent(t))}function qe(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function k_(e,t=globalThis==null?void 0:globalThis.document){const n=qe(e);y.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var __="DismissableLayer",Yh="dismissableLayer.update",A_="dismissableLayer.pointerDownOutside",P_="dismissableLayer.focusOutside",$y,n1=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),uu=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...c}=e,u=y.useContext(n1),[d,h]=y.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=y.useState({}),w=fe(t,C=>h(C)),p=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(b),g=d?p.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=g>=v,j=I_(C=>{const E=C.target,T=[...u.branches].some(A=>A.contains(E));!S||T||(s==null||s(C),o==null||o(C),C.defaultPrevented||l==null||l())},f),N=O_(C=>{const E=C.target;[...u.branches].some(A=>A.contains(E))||(i==null||i(C),o==null||o(C),C.defaultPrevented||l==null||l())},f);return k_(C=>{g===u.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&l&&(C.preventDefault(),l()))},f),y.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&($y=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Fy(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=$y)}},[d,f,n,u]),y.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Fy())},[d,u]),y.useEffect(()=>{const C=()=>m({});return document.addEventListener(Yh,C),()=>document.removeEventListener(Yh,C)},[]),a.jsx(se.div,{...c,ref:w,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,j.onPointerDownCapture)})});uu.displayName=__;var R_="DismissableLayerBranch",r1=y.forwardRef((e,t)=>{const n=y.useContext(n1),r=y.useRef(null),s=fe(t,r);return y.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),a.jsx(se.div,{...e,ref:s})});r1.displayName=R_;function I_(e,t=globalThis==null?void 0:globalThis.document){const n=qe(e),r=y.useRef(!1),s=y.useRef(()=>{});return y.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let c=function(){s1(A_,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function O_(e,t=globalThis==null?void 0:globalThis.document){const n=qe(e),r=y.useRef(!1);return y.useEffect(()=>{const s=i=>{i.target&&!r.current&&s1(P_,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Fy(){const e=new CustomEvent(Yh);document.dispatchEvent(e)}function s1(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?t1(s,i):s.dispatchEvent(i)}var M_=uu,L_=r1,He=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},D_="Portal",Jm=y.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[s,i]=y.useState(!1);He(()=>i(!0),[]);const o=n||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?Xb.createPortal(a.jsx(se.div,{...r,ref:t}),o):null});Jm.displayName=D_;function $_(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var Gr=e=>{const{present:t,children:n}=e,r=F_(t),s=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),i=fe(r.ref,V_(s));return typeof n=="function"||r.isPresent?y.cloneElement(s,{ref:i}):null};Gr.displayName="Presence";function F_(e){const[t,n]=y.useState(),r=y.useRef(null),s=y.useRef(e),i=y.useRef("none"),o=e?"mounted":"unmounted",[l,c]=$_(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=vl(r.current);i.current=l==="mounted"?u:"none"},[l]),He(()=>{const u=r.current,d=s.current;if(d!==e){const f=i.current,m=vl(u);e?c("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&f!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),He(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,h=m=>{const p=vl(r.current).includes(m.animationName);if(m.target===t&&p&&(c("ANIMATION_END"),!s.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=m=>{m.target===t&&(i.current=vl(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:y.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function vl(e){return(e==null?void 0:e.animationName)||"none"}function V_(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var U_=im[" useInsertionEffect ".trim().toString()]||He;function Yi({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,o]=B_({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:s;{const d=y.useRef(e!==void 0);y.useEffect(()=>{const h=d.current;h!==l&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,r])}const u=y.useCallback(d=>{var h;if(l){const f=z_(d)?d(e):d;f!==e&&((h=o.current)==null||h.call(o,f))}else i(d)},[l,e,i,o]);return[c,u]}function B_({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),s=y.useRef(n),i=y.useRef(t);return U_(()=>{i.current=t},[t]),y.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function z_(e){return typeof e=="function"}var i1=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"}),W_="VisuallyHidden",du=y.forwardRef((e,t)=>a.jsx(se.span,{...e,ref:t,style:{...i1,...e.style}}));du.displayName=W_;var H_=du,Zm="ToastProvider",[ep,K_,q_]=Xm("Toast"),[o1,k6]=qr("Toast",[q_]),[G_,hu]=o1(Zm),a1=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[l,c]=y.useState(null),[u,d]=y.useState(0),h=y.useRef(!1),f=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Zm}\`. Expected non-empty \`string\`.`),a.jsx(ep.Provider,{scope:t,children:a.jsx(G_,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:y.useCallback(()=>d(m=>m+1),[]),onToastRemove:y.useCallback(()=>d(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:o})})};a1.displayName=Zm;var l1="ToastViewport",Y_=["F8"],Qh="toast.viewportPause",Xh="toast.viewportResume",c1=y.forwardRef((e,t)=>
40{const{__scopeToast:n,hotkey:r=Y_,label:s="Notifications ({hotkey})",...i}=e,o=hu(l1,n),l=K_(n),c=y.useRef(null),u=y.useRef(null),d=y.useRef(null),h=y.useRef(null),f=fe(t,h,o.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=o.toastCount>0;y.useEffect(()=>{const b=v=>{var x;r.length!==0&&r.every(S=>v[S]||v.code===S)&&((x=h.current)==null||x.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),y.useEffect(()=>{const b=c.current,v=h.current;if(w&&b&&v){const g=()=>{if(!o.isClosePausedRef.current){const N=new CustomEvent(Qh);v.dispatchEvent(N),o.isClosePausedRef.current=!0}},x=()=>{if(o.isClosePausedRef.current){const N=new CustomEvent(Xh);v.dispatchEvent(N),o.isClosePausedRef.current=!1}},S=N=>{!b.contains(N.relatedTarget)&&x()},j=()=>{b.contains(document.activeElement)||x()};return b.addEventListener("focusin",g),b.addEventListener("focusout",S),b.addEventListener("pointermove",g),b.addEventListener("pointerleave",j),window.addEventListener("blur",g),window.addEventListener("focus",x),()=>{b.removeEventListener("focusin",g),b.removeEventListener("focusout",S),b.removeEventListener("pointermove",g),b.removeEventListener("pointerleave",j),window.removeEventListener("blur",g),window.removeEventListener("focus",x)}}},[w,o.isClosePausedRef]);const p=y.useCallback(({tabbingDirection:b})=>{const g=l().map(x=>{const S=x.ref.current,j=[S,...l2(S)];return b==="forwards"?j:j.reverse()});return(b==="forwards"?g.reverse():g).flat()},[l]);return y.useEffect(()=>{const b=h.current;if(b){const v=g=>{var j,N,C;const x=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!x){const E=document.activeElement,T=g.shiftKey;if(g.target===b&&T){(j=u.current)==null||j.focus();return}const L=p({tabbingDirection:T?"backwards":"forwards"}),W=L.findIndex(O=>O===E);vd(L.slice(W+1))?g.preventDefault():T?(N=u.current)==null||N.focus():(C=d.current)==null||C.focus()}};return b.addEventListener("keydown",v),()=>b.removeEventListener("keydown",v)}},[l,p]),a.jsxs(L_,{ref:c,role:"region","aria-label":s.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&a.jsx(Jh,{ref:u,onFocusFromOutsideViewport:()=>{const b=p({tabbingDirection:"forwards"});vd(b)}}),a.jsx(ep.Slot,{scope:n,children:a.jsx(se.ol,{tabIndex:-1,...i,ref:f})}),w&&a.jsx(Jh,{ref:d,onFocusFromOutsideViewport:()=>{const b=p({tabbingDirection:"backwards"});vd(b)}})]})});c1.displayName=l1;var u1="ToastFocusProxy",Jh=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=hu(u1,n);return a.jsx(du,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const l=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});Jh.displayName=u1;var Ba="Toast",Q_="toast.swipeStart",X_="toast.swipeMove",J_="toast.swipeCancel",Z_="toast.swipeEnd",d1=y.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=e,[l,c]=Yi({prop:r,defaultProp:s??!0,onChange:i,caller:Ba});return a.jsx(Gr,{present:n||l,children:a.jsx(n2,{open:l,...o,ref:t,onClose:()=>c(!1),onPause:qe(e.onPause),onResume:qe(e.onResume),onSwipeStart:Z(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Z(e.onSwipeMove,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:Z(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:Z(e.onSwipeEnd,u=>{const{x:d,y:h}=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",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),c(!1)})})})});d1.displayName=Ba;var[e2,t2]=o1(Ba,{onClose(){}}),n2=y.forwardRef((e,t)=>
40{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:m,...w}=e,p=hu(Ba,n),[b,v]=y.useState(null),g=fe(t,O=>v(O)),x=y.useRef(null),S=y.useRef(null),j=s||p.duration,N=y.useRef(0),C=y.useRef(j),E=y.useRef(0),{onToastAdd:T,onToastRemove:A}=p,M=qe(()=>{var K;(b==null?void 0:b.contains(document.activeElement))&&((K=p.viewport)==null||K.focus()),o()}),L=y.useCallback(O=>{!O||O===1/0||(window.clearTimeout(E.current),N.current=new Date().getTime(),E.current=window.setTimeout(M,O))},[M]);y.useEffect(()=>{const O=p.viewport;if(O){const K=()=>{L(C.current),u==null||u()},U=()=>{const $=new Date().getTime()-N.current;C.current=C.current-$,window.clearTimeout(E.current),c==null||c()};return O.addEventListener(Qh,U),O.addEventListener(Xh,K),()=>{O.removeEventListener(Qh,U),O.removeEventListener(Xh,K)}}},[p.viewport,j,c,u,L]),y.useEffect(()=>{i&&!p.isClosePausedRef.current&&L(j)},[i,j,p.isClosePausedRef,L]),y.useEffect(()=>(T(),()=>A()),[T,A]);const W=y.useMemo(()=>b?v1(b):null,[b]);return p.viewport?a.jsxs(a.Fragment,{children:[W&&a.jsx(r2,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:W}),a.jsx(e2,{scope:n,onClose:M,children:Fs.createPortal(a.jsx(ep.ItemSlot,{scope:n,children:a.jsx(M_,{asChild:!0,onEscapeKeyDown:Z(l,()=>{p.isFocusedToastEscapeKeyDownRef.current||M(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:a.jsx(se.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":p.swipeDirection,...w,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Z(e.onKeyDown,O=>{O.key==="Escape"&&(l==null||l(O.nativeEvent),O.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,M()))}),onPointerDown:Z(e.onPointerDown,O=>{O.button===0&&(x.current={x:O.clientX,y:O.clientY})}),onPointerMove:Z(e.onPointerMove,O=>{if(!x.current)return;const K=O.clientX-x.current.x,U=O.clientY-x.current.y,$=!!S.current,k=["left","right"].includes(p.swipeDirection),_=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,D=k?_(0,K):0,H=k?0:_(0,U),B=O.pointerType==="touch"?10:2,ee={x:D,y:H},X={originalEvent:O,delta:ee};$?(S.current=ee,xl(X_,h,X,{discrete:!1})):Vy(ee,p.swipeDirection,B)?(S.current=ee,xl(Q_,d,X,{discrete:!1}),O.target.setPointerCapture(O.pointerId)):(Math.abs(K)>B||Math.abs(U)>B)&&(x.current=null)}),onPointerUp:Z(e.onPointerUp,O=>{const K=S.current,U=O.target;if(U.hasPointerCapture(O.pointerId)&&U.releasePointerCapture(O.pointerId),S.current=null,x.current=null,K){const $=O.currentTarget,k={originalEvent:O,delta:K};Vy(K,p.swipeDirection,p.swipeThreshold)?xl(Z_,m,k,{discrete:!0}):xl(J_,f,k,{discrete:!0}),$.addEventListener("click",_=>_.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),r2=e=>{const{__scopeToast:t,children:n,...r}=e,s=hu(Ba,t),[i,o]=y.useState(!1),[l,c]=y.useState(!1);return o2(()=>o(!0)),y.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:a.jsx(Jm,{asChild:!0,children:a.jsx(du,{...r,children:i&&a.jsxs(a.Fragment,{children:[s.label," ",n]})})})},s2="ToastTitle",h1=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return a.jsx(se.div,{...r,ref:t})});h1.displayName=s2;var i2="ToastDescription",f1=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return a.jsx(se.div,{...r,ref:t})});f1.displayName=i2;var m1="ToastAction",p1=y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?a.jsx(y1,{altText:n,asChild:!0,children:a.jsx(tp,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${m1}\`. Expected non-empty \`string\`.`),null)});p1.displayName=m1;var g1="ToastClose",tp=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=t2(g1,n);return a.jsx(y1,{asChild:!0,children:a.jsx(se.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,s.onClose)})})});tp.displayName=g1;var y1=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return a.jsx(se.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function v1(e){const t=[];
vendor: 5,842 bytes, lines 40-85
40return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),a2(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...v1(r))}}),t}function xl(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?t1(s,i):s.dispatchEvent(i)}var Vy=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),i=r>s;return t==="left"||t==="right"?i&&r>n:!i&&s>n};function o2(e=()=>{}){const t=qe(e);He(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function a2(e){return e.nodeType===e.ELEMENT_NODE}function l2(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function vd(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var c2=a1,x1=c1,w1=d1,b1=h1,S1=f1,j1=p1,N1=tp;function C1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=C1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function E1(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=C1(e))&&(r&&(r+=" "),r+=t);return r}const Uy=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,By=E1,T1=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return By(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(u=>{const d=n==null?void 0:n[u],h=i==null?void 0:i[u];if(d===null)return null;const f=Uy(d)||Uy(h);return s[u][f]}),l=n&&Object.entries(n).reduce((u,d)=>{let[h,f]=d;return f===void 0||(u[h]=f),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:h,className:f,...m}=d;return Object.entries(m).every(w=>{let[p,b]=w;return Array.isArray(b)?b.includes({...i,...l}[p]):{...i,...l}[p]===b})?[...u,h,f]:u},[]);return By(e,o,c,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.462.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const u2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),k1=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.462.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var d2={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 h2=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...l},c)=>y.createElement("svg",{ref:c,...d2,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:k1("lucide",s),...l},[...o.map(([u,d])=>y.createElement(u,d)),...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 Y=(e,t)=>{const n=y.forwardRef(({className:r,...s},i)=>y.createElement(h2,{ref:i,iconNode:t,className:k1(`lucide-${u2(e)}`,r),...s}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.462.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const f2=Y("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
66 * @license lucide-react v0.462.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const Vr=Y("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
71 * @license lucide-react v0.462.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const Zh=Y("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
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 fu=Y("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
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 m2=Y("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
85],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
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 np=Y("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
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 p2=Y("Car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]);/**
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 g2=Y("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
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 ef=Y("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
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 za=Y("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
111 * @license lucide-react v0.462.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const y2=Y("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
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 _1=Y("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
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 v2=Y("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
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 zy=Y("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
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 x2=Y("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
136 * @license lucide-react v0.462.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const w2=Y("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
141 * @license lucide-react v0.462.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const rp=Y("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
146 * @license lucide-react v0.462.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const b2=Y("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
151 * @license lucide-react v0.462.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const A1=Y("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"}]]);/**
156 * @license lucide-react v0.462.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const P1=Y("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"}]]);/**
161 * @license lucide-react v0.462.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const R1=Y("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
166 * @license lucide-react v0.462.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const S2=Y("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/**
171 * @license lucide-react v0.462.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const j2=Y("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/**
176 * @license lucide-react v0.462.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const N2=Y("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"}]]);/**
181 * @license lucide-react v0.462.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const C2=Y("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
186 * @license lucide-react v0.462.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const I1=Y("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
191 * @license lucide-react v0.462.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const E2=Y("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
196 * @license lucide-react v0.462.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const O1=Y("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/**
201 * @license lucide-react v0.462.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const M1=Y("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
206 * @license lucide-react v0.462.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const L1=Y("PhoneCall",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}],["path",{d:"M14.05 2a9 9 0 0 1 8 7.94",key:"vmijpz"}],["path",{d:"M14.05 6A5 5 0 0 1 18 10",key:"13nbpp"}]]);/**
211 * @license lucide-react v0.462.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const In=Y("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
216 * @license lucide-react v0.462.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const T2=Y("Plane",[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.
2201-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]]);/**
221 * @license lucide-react v0.462.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const sp=Y("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
226 * @license lucide-react v0.462.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const k2=Y("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"}]]);/**
231 * @license lucide-react v0.462.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const D1=Y("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
236 * @license lucide-react v0.462.0 - ISC
237 *
238 * This source code is licensed under the ISC license.
239 * See the LICENSE file in the root directory of this source tree.
240 */const Wy=Y("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/**
241 * @license lucide-react v0.462.0 - ISC
242 *
243 * This source code is licensed under the ISC license.
244 * See the LICENSE file in the root directory of this source tree.
245 */const _2=Y("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/**
246 * @license lucide-react v0.462.0 - ISC
247 *
248 * This source code is licensed under the ISC license.
249 * See the LICENSE file in the root directory of this source tree.
250 */const A2=Y("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
251 * @license lucide-react v0.462.0 - ISC
252 *
253 * This source code is licensed under the ISC license.
254 * See the LICENSE file in the root directory of this source tree.
255 */const $1=Y("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
256 * @license lucide-react v0.462.0 - ISC
257 *
258 * This source code is licensed under the ISC license.
259 * See the LICENSE file in the root directory of this source tree.
260 */const P2=Y("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"}]]);/**
261 * @license lucide-react v0.462.0 - ISC
262 *
263 * This source code is licensed under the ISC license.
264 * See the LICENSE file in the root directory of this source tree.
265 */const R2=Y("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
266 * @license lucide-react v0.462.0 - ISC
267 *
268 * This source code is licensed under the ISC license.
269 * See the LICENSE file in the root directory of this source tree.
270 */const I2=Y("Stethoscope",[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]]);/**
271 * @license lucide-react v0.462.0 - ISC
272 *
273 * This source code is licensed under the ISC license.
274 * See the LICENSE file in the root directory of this source tree.
vendor: 10,193 bytes, lines 275-305
275 */const O2=Y("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/**
276 * @license lucide-react v0.462.0 - ISC
277 *
278 * This source code is licensed under the ISC license.
279 * See the LICENSE file in the root directory of this source tree.
280 */const F1=Y("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
281 * @license lucide-react v0.462.0 - ISC
282 *
283 * This source code is licensed under the ISC license.
284 * See the LICENSE file in the root directory of this source tree.
285 */const Ql=Y("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"}]]);/**
286 * @license lucide-react v0.462.0 - ISC
287 *
288 * This source code is licensed under the ISC license.
289 * See the LICENSE file in the root directory of this source tree.
290 */const M2=Y("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);/**
291 * @license lucide-react v0.462.0 - ISC
292 *
293 * This source code is licensed under the ISC license.
294 * See the LICENSE file in the root directory of this source tree.
295 */const L2=Y("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
296 * @license lucide-react v0.462.0 - ISC
297 *
298 * This source code is licensed under the ISC license.
299 * See the LICENSE file in the root directory of this source tree.
300 */const ip=Y("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
301 * @license lucide-react v0.462.0 - ISC
302 *
303 * This source code is licensed under the ISC license.
304 * See the LICENSE file in the root directory of this source tree.
305 */const mu=Y("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),op="-",D2=e=>{const t=F2(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const l=o.split(op);return l[0]===""&&l.length!==1&&l.shift(),V1(l,t)||$2(o)},getConflictingClassGroupIds:(o,l)=>{const c=n[o]||[];return l&&r[o]?[...c,...r[o]]:c}}},V1=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?V1(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(op);return(o=t.validators.find(({validator:l})=>l(i)))==null?void 0:o.classGroupId},Hy=/^\[(.+)\]$/,$2=e=>{if(Hy.test(e)){const t=Hy.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},F2=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return U2(Object.entries(e.classGroups),n).forEach(([i,o])=>{tf(o,r,i,t)}),r},tf=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Ky(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(V2(s)){tf(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{tf(o,Ky(t,i),n,r)})})},Ky=(e,t)=>{let n=e;return t.split(op).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},V2=e=>e.isThemeGetter,U2=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,l])=>[t+o,l])):i);return[n,s]}):e,B2=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},U1="!",z2=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=l=>{const c=[];let u=0,d=0,h;for(let b=0;b<l.length;b++){let v=l[b];if(u===0){if(v===s&&(r||l.slice(b,b+i)===t)){c.push(l.slice(d,b)),d=b+i;continue}if(v==="/"){h=b;continue}}v==="["?u++:v==="]"&&u--}const f=c.length===0?l:l.substring(d),m=f.startsWith(U1),w=m?f.substring(1):f,p=h&&h>d?h-d:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:w,maybePostfixModifierPosition:p}};return n?l=>n({className:l,parseClassName:o}):o},W2=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},H2=e=>({cache:B2(e.cacheSize),parseClassName:z2(e),...D2(e)}),K2=/\s+/,q2=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(K2);let l="";for(let c=o.length-1;c>=0;c-=1){const u=o[c],{modifiers:d,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:m}=n(u);let w=!!m,p=r(w?f.substring(0,m):f);if(!p){if(!w){l=u+(l.length>0?" "+l:l);continue}if(p=r(f),!p){l=u+(l.length>0?" "+l:l);continue}w=!1}const b=W2(d).join(":"),v=h?b+U1:b,g=v+p;if(i.includes(g))continue;i.push(g);const x=s(p,w);for(let S=0;S<x.length;++S){const j=x[S];i.push(v+j)}l=u+(l.length>0?" "+l:l)}return l};function G2(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=B1(t))&&(r&&(r+=" "),r+=n);return r}const B1=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=B1(e[r]))&&(n&&(n+=" "),n+=t);return n};function Y2(e,...t){let n,r,s,i=o;function o(c){const u=t.reduce((d,h)=>h(d),e());return n=H2(u),r=n.cache.get,s=n.cache.set,i=l,l(c)}function l(c){const u=r(c);if(u)return u;const d=q2(c,n);return s(c,d),d}return function(){return i(G2.apply(null,arguments))}}const be=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},z1=/^\[(?:([a-z-]+):)?(.+)\]$/i,Q2=/^\d+\/\d+$/,X2=new Set(["px","full","screen"]),J2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Z2=/\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$/,eA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dn=e=>_i(e)||X2.has(e)||Q2.test(e),lr=e=>so(e,"length",uA),_i=e=>!!e&&!Number.isNaN(Number(e)),xd=e=>so(e,"number",_i),Eo=e=>!!e&&Number.isInteger(Number(e)),rA=e=>e.endsWith("%")&&_i(e.slice(0,-1)),re=e=>z1.test(e),cr=e=>J2.test(e),sA=new Set(["length","size","percentage"]),iA=e=>so(e,sA,W1),oA=e=>so(e,"position",W1),aA=new Set(["image","url"]),lA=e=>so(e,aA,hA),cA=e=>so(e,"",dA),To=()=>!0,so=(e,t,n)=>{const r=z1.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},uA=e=>Z2.test(e)&&!eA.test(e),W1=()=>!1,dA=e=>tA.test(e),hA=e=>nA.test(e),fA=()=>{const e=be("colors"),t=be("spacing"),n=be("blur"),r=be("brightness"),s=be("borderColor"),i=be("borderRadius"),o=be("borderSpacing"),l=be("borderWidth"),c=be("contrast"),u=be("grayscale"),d=be("hueRotate"),h=be("invert"),f=be("gap"),m=be("gradientColorStops"),w=be("gradientColorStopPositions"),p=be("inset"),b=be("margin"),v=be("opacity"),g=be("padding"),x=be("saturate"),S=be("scale"),j=be("sepia"),N=be("skew"),C=be("space"),E=be("translate"),T=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",re,t],L=()=>[re,t],W=()=>["",Dn,lr],O=()=>["auto",_i,re],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],$=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",re],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[_i,re];return{cacheSize:500,separator:":",theme:{colors:[To],spacing:[Dn,lr],blur:["none","",cr,re],brightness:H(),borderColor:[e],borderRadius:["none","","full",cr,re],borderSpacing:L(),borderWidth:W(),contrast:H(),grayscale:_(),hueRotate:H(),invert:_(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[rA,lr],inset:M(),margin:M(),opacity:H(),padding:L(),saturate:H(),scale:H(),sepia:_(),skew:H(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",re]}],container:["container"],columns:[{columns:[cr]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"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:[...K(),re]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}
vendor: 9,947 bytes, line 305
305],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Eo,re]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",re]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",Eo,re]}],"grid-cols":[{"grid-cols":[To]}],"col-start-end":[{col:["auto",{span:["full",Eo,re]},re]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[To]}],"row-start-end":[{row:["auto",{span:[Eo,re]},re]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",re]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",re,t]}],"min-w":[{"min-w":[re,t,"min","max","fit"]}],"max-w":[{"max-w":[re,t,"none","full","min","max","fit","prose",{screen:[cr]},cr]}],h:[{h:[re,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[re,t,"auto","min","max","fit"]}],"font-size":[{text:["base",cr,lr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xd]}],"font-family":[{font:[To]}],"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",re]}],"line-clamp":[{"line-clamp":["none",_i,xd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Dn,re]}],"list-image":[{"list-image":["none",re]}],"list-style-type":[{list:["none","disc","decimal",re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Dn,lr]}],"underline-offset":[{"underline-offset":["auto",Dn,re]}],"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:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re]}],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",re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),oA]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",iA]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lA]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"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":[Dn,re]}],"outline-w":[{outline:[Dn,lr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Dn,lr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",cr,cA]}],"shadow-color":[{shadow:[To]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...$(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":$()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",cr,re]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[x]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"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",re]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",re]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Eo,re]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",re]}],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",re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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,662 bytes, line 305
305],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",re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Dn,lr,xd]}],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"]}}},mA=Y2(fA);function ve(...e){return mA(E1(e))}const pA=c2,H1=y.forwardRef(({className:e,...t},n)=>a.jsx(x1,{ref:n,className:ve("fixed top-0 left-1/2 -translate-x-1/2 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));H1.displayName=x1.displayName;const gA=T1("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"}}),K1=y.forwardRef(({className:e,variant:t,...n},r)=>a.jsx(w1,{ref:r,className:ve(gA({variant:t}),e),...n}));K1.displayName=w1.displayName;const yA=y.forwardRef(({className:e,...t},n)=>a.jsx(j1,{ref:n,className:ve("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}));yA.displayName=j1.displayName;const q1=y.forwardRef(({className:e,...t},n)=>a.jsx(N1,{ref:n,className:ve("absolute right-2 top-2 rounded-md p-1 text-foreground
305/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:a.jsx(ip,{className:"h-4 w-4"})}));q1.displayName=N1.displayName;const G1=y.forwardRef(({className:e,...t},n)=>a.jsx(b1,{ref:n,className:ve("text-sm font-semibold",e),...t}));G1.displayName=b1.displayName;const Y1=y.forwardRef(({className:e,...t},n)=>a.jsx(S1,{ref:n,className:ve("text-sm opacity-90",e),...t}));Y1.displayName=S1.displayName;function vA(){const{toasts:e}=Qm();return a.jsxs(pA,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return a.jsxs(K1,{...i,children:[a.jsxs("div",{className:"grid gap-1",children:[n&&a.jsx(G1,{children:n}),r&&a.jsx(Y1,{children:r})]}),s,a.jsx(q1,{})]},t)}),a.jsx(H1,{})]})}var qy=["light","dark"],xA="(prefers-color-scheme: dark)",wA=y.createContext(void 0),bA={setTheme:e=>{},themes:[]},SA=()=>{var e;return(e=y.useContext(wA))!=null?e:bA};y.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:l,nonce:c})=>{let u=i==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(w=>`'${w}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=s?qy.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(w,p=!1,b=!0)=>{let v=o?o[w]:w,g=p?w+"|| ''":`'${v}'`,x="";return s&&b&&!p&&qy.includes(w)&&(x+=`d.style.colorScheme = '${w}';`),n==="class"?p||v?x+=`c.add(${g})`:x+="null":v&&(x+=`d[s](n,${g})`),x},m=e?`!function(){${d}${f(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${xA}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}${u?"":"else{"+f(i,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${h}}catch(t){}}();`;return y.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:m}})});var jA=e=>{switch(e){case"success":return EA;case"info":return kA;case"warning":return TA;case"error":return _A;default:return null}},NA=Array(12).fill(0),CA=({visible:e,className:t})=>R.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},R.createElement("div",{className:"sonner-spinner"},NA.map((n,r)=>R.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),EA=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.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"})),TA=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},R.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"})),kA=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.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"})),_A=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.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"})),AA=R.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"},R.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),R.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),PA=()=>{let[e,t]=R.useState(document.hidden);return R.useEffect(()=>{let n=()=>{t(document.hidden)};
305return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},nf=1,RA=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:nf++,i=this.toasts.find(l=>l.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(l=>l.id===s?(this.publish({...l,...e,id:s,title:n}),{...l,...e,id:s,dismissible:o,title:n}):l):this.addToast({title:n,...r,dismissible:o,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
305this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0,i,o=r.then(async c=>{if(i=["resolve",c],R.isValidElement(c))s=!1,this.create({id:n,type:"default",message:c});else if(OA(c)&&!c.ok){s=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){s=!1;let u=typeof t.success=="function"?await t.success(c):t.success,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async c=>{if(i=["reject",c],t.error!==void 0){s=!1;let u=typeof t.error=="function"?await t.error(c):t.error,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var c;s&&(this.dismiss(n),n=void 0),(c=t.finally)==null||c.call(t)}),l=()=>new Promise((c,u)=>o.then(()=>i[0]==="reject"?u(i[1]):c(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||nf++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},yt=new RA,IA=(e,t)=>{let n=(t==null?void 0:t.id)||nf++;return yt.addToast({title:e,...t,id:n}),n},OA=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",MA=IA,LA=()=>yt.toasts,DA=()=>yt.getActiveToasts();Object.assign(MA,{success:yt.success,info:yt.info,warning:yt.warning,error:yt.error,custom:yt.custom,message:yt.message,promise:yt.promise,dismiss:yt.dismiss,loading:yt.loading},{getHistory:LA,getToasts:DA});function $A(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}$A(`: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;
305left: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}
305: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%);
305--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%)}
306`);function wl(e){return e.label!==void 0}var FA=3,VA="32px",UA="16px",Gy=4e3,BA=356,zA=14,WA=20,HA=200;function Zt(...e){return e.filter(Boolean).join(" ")}function KA(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var qA=e=>{var t,n,r,s,i,o,l,c,u,d,h;let{invert:f,toast:m,unstyled:w,interacting:p,setHeights:b,visibleToasts:v,heights:g,index:x,toasts:S,expanded:j,removeToast:N,defaultRichColors:C,closeButton:E,style:T,cancelButtonStyle:A,actionButtonStyle:M,className:L="",descriptionClassName:W="",duration:O,position:K,gap:U,loadingIcon:$,expandByDefault:k,classNames:_,icons:D,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:B}
vendor: 2,491 bytes, line 306
306=e,[ee,X]=R.useState(null),[de,ye]=R.useState(null),[F,oe]=R.useState(!1),[pe,he]=R.useState(!1),[ae,ce]=R.useState(!1),[nt,Mt]=R.useState(!1),[Zr,rr]=R.useState(!1),[es,go]=R.useState(0),[Bs,wg]=R.useState(0),yo=R.useRef(m.duration||O||Gy),bg=R.useRef(null),ts=R.useRef(null),OE=x===0,ME=x+1<=v,Lt=m.type,zs=m.dismissible!==!1,LE=m.className||"",DE=m.descriptionClassName||"",Za=R.useMemo(()=>g.findIndex(te=>te.toastId===m.id)||0,[g,m.id]),$E=R.useMemo(()=>{var te;return(te=m.closeButton)!=null?te:E},[m.closeButton,E]),Sg=R.useMemo(()=>m.duration||O||Gy,[m.duration,O]),Uu=R.useRef(0),Ws=R.useRef(0),jg=R.useRef(0),Hs=R.useRef(null),[FE,VE]=K.split("-"),Ng=R.useMemo(()=>g.reduce((te,ge,Ce)=>Ce>=Za?te:te+ge.height,0),[g,Za]),Cg=PA(),UE=m.invert||f,Bu=Lt==="loading";Ws.current=R.useMemo(()=>Za*U+Ng,[Za,Ng]),R.useEffect(()=>{yo.current=Sg},[Sg]),R.useEffect(()=>{oe(!0)},[]),R.useEffect(()=>{let te=ts.current;if(te){let ge=te.getBoundingClientRect().height;return wg(ge),b(Ce=>[{toastId:m.id,height:ge,position:m.position},...Ce]),()=>b(Ce=>Ce.filter(Yt=>Yt.toastId!==m.id))}},[b,m.id]),R.useLayoutEffect(()=>{if(!F)return;let te=ts.current,ge=te.style.height;te.style.height="auto";let Ce=te.getBoundingClientRect().height;te.style.height=ge,wg(Ce),b(Yt=>Yt.find(Qt=>Qt.toastId===m.id)?Yt.map(Qt=>Qt.toastId===m.id?{...Qt,height:Ce}:Qt):[{toastId:m.id,height:Ce,position:m.position},...Yt])},[F,m.title,m.description,b,m.id]);let sr=R.useCallback(()=>{he(!0),go(Ws.current),b(te=>te.filter(ge=>ge.toastId!==m.id)),setTimeout(()=>{N(m)},HA)},[m,N,b,Ws]);R.useEffect(()=>{if(m.promise&&Lt==="loading"||m.duration===1/0||m.type==="loading")return;let te;return j||p||B&&Cg?(()=>{if(jg.current<Uu.current){let ge=new Date().getTime()-Uu.current;yo.current=yo.current-ge}jg.current=new Date().getTime()})():yo.current!==1/0&&(Uu.current=new Date().getTime(),te=setTimeout(()=>{var ge;(ge=m.onAutoClose)==null||ge.call(m,m),sr()},yo.current)),()=>clearTimeout(te)},[j,p,m,Lt,B,Cg,sr]),R.useEffect(()=>{m.delete&&sr()},[sr,m.delete]);function BE(){var te,ge,Ce;return D!=null&&D.loading?R.createElement("div",{className:Zt(_==null?void 0:_.loader,(te=m==null?void 0:m.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":Lt==="loading"},D.loading):$?R.createElement("div",{className:Zt(_==null?void 0:_.loader,(ge=m==null?void 0:m.classNames)==null?void 0:ge.loader,"sonner-loader"),"data-visible":Lt==="loading"},$):R.createElement(CA,{className:Zt(_==null?void 0:_.loader,(Ce
306=m==null?void 0:m.classNames)==null?void 0:Ce.loader),visible:Lt==="loading"})}return R.createElement("li",{tabIndex:0,ref:ts,className:Zt(L,LE,_==null?void 0:_.toast,(t=m==null?void 0:m.classNames)==null?void 0:t.toast,_==null?void 0:_.default,_==null?void 0:_[Lt],(n=m==null?void 0:m.classNames)==null?void 0:n[Lt]),"data-sonner-toast":"","data-rich-colors":(r=m.richColors)!=null?r:C,"data-styled":!(m.jsx||m.unstyled||w),"data-mounted":F,"data-promise":!!m.promise,"data-swiped":Zr,"data-removed":pe,"data-visible":ME,"data-y-position":FE,"data-x-position":VE,"data-index":x,"data-front":OE,"data-swiping":ae,"data-dismissible":zs,"data-type":Lt,"data-invert":UE,"data-swipe-out":nt,"data-swipe-direction":de,"data-expanded":!!(j||k&&F),style:{"--index":x,"--toasts-before":x,"--z-index":S.length-x,"--offset":`${pe?es:Ws.current}px`,"--initial-height":k?"auto":`${Bs}px`,...T,...m.style},onDragEnd:()=>{ce(!1),X(null),Hs.current=null},onPointerDown:te=>{Bu||!zs||(bg.current=new Date,go(Ws.current),te.target.setPointerCapture(te.pointerId),te.target.tagName!=="BUTTON"&&(ce(!0),Hs.current={x:te.clientX,y:te.clientY}))},onPointerUp:()=>{var te,ge,Ce,Yt;if(nt||!zs)return;Hs.current=null;let Qt=Number(((te=ts.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ir=Number(((ge=ts.current)==null?void 0:ge.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ns=new Date().getTime()-((Ce=bg.current)==null?void 0:Ce.getTime()),Xt=ee==="x"?Qt:ir,or=Math.abs(Xt)/ns;if(Math.abs(Xt)>=WA||or>.11){go(Ws.current),(Yt=m.onDismiss)==null||Yt.call(m,m),ye(ee==="x"?Qt>0?"right":"left":ir>0?"down":"up"),sr(),Mt(!0),rr(!1);return}ce(!1),X(null)},onPointerMove:te=>{var ge,Ce,Yt,Qt;if(!Hs.current||!zs||((ge=window.getSelection())==null?void 0:ge.toString().length)>0)return;let ir=te.clientY-Hs.current.y,ns=te.clientX-Hs.current.x,Xt=(Ce=e.swipeDirections)!=null?Ce:KA(K);!ee&&(Math.abs(ns)>1||Math.abs(ir)>1)&&X(Math.abs(ns)>Math.abs(ir)?"x":"y");let or={x:0,y:0};ee==="y"?(Xt.includes("top")||Xt.includes("bottom"))&&(Xt.includes("top")&&ir<0||Xt.includes("bottom")&&ir>0)&&(or.y=ir):ee==="x"&&(Xt.includes("left")||Xt.includes("right"))&&(Xt.includes("left")&&ns<0||Xt.includes("right")&&ns>0)&&(or.x=ns),(Math.abs(or.x)>0||Math.abs(or.y)>0)&&rr(!0),(Yt=ts.current)==null||Yt.style.setProperty("--swipe-amount-x",`${or.x}px`),(Qt=ts.current)==null||Qt.style.setProperty("--swipe-amount-y",`${or.y}px`)}},$E&&!m.jsx?R.createElement("button",{"aria-label":H,"data-disabled":Bu,"data-close-button":!0,onClick:Bu||!zs?()=>{}:()=>{var te;sr(),(te=m.onDismiss)==null||te.call(m,m)},className:Zt(_==null?void 0:_.closeButton,(s=m==null?void 0:m.classNames)==null?void 0:s.closeButton)},(i=D==null?void 0:D.close)!=null?i:AA):null,m.jsx||y.isValidElement(m.title)?m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title:R.createElement(R.Fragment,null,Lt||m.icon||m.promise?R.createElement("div",{"data-icon":"",className:Zt(_==null?void 0:_.icon,(o=m==null?void 0:m.classNames)==null?void 0:o.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||BE():null,m.type!=="loading"?m.
vendor: 4,801 bytes, line 306
306icon||(D==null?void 0:D[Lt])||jA(Lt):null):null,R.createElement("div",{"data-content":"",className:Zt(_==null?void 0:_.content,(l=m==null?void 0:m.classNames)==null?void 0:l.content)},R.createElement("div",{"data-title":"",className:Zt(_==null?void 0:_.title,(c=m==null?void 0:m.classNames)==null?void 0:c.title)},typeof m.title=="function"?m.title():m.title),m.description?R.createElement("div",{"data-description":"",className:Zt(W,DE,_==null?void 0:_.description,(u=m==null?void 0:m.classNames)==null?void 0:u.description)},typeof m.description=="function"?m.description():m.description):null),y.isValidElement(m.cancel)?m.cancel:m.cancel&&wl(m.cancel)?R.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||A,onClick:te=>{var ge,Ce;wl(m.cancel)&&zs&&((Ce=(ge=m.cancel).onClick)==null||Ce.call(ge,te),sr())},className:Zt(_==null?void 0:_.cancelButton,(d=m==null?void 0:m.classNames)==null?void 0:d.cancelButton)},m.cancel.label):null,y.isValidElement(m.action)?m.action:m.action&&wl(m.action)?R.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||M,onClick:te=>{var ge,Ce;wl(m.action)&&((Ce=(ge=m.action).onClick)==null||Ce.call(ge,te),!te.defaultPrevented&&sr())},className:Zt(_==null?void 0:_.actionButton,(h=m==null?void 0:m.classNames)==null?void 0:h.actionButton)},m.action.label):null))};function Yy(){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 GA(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",l=i?UA:VA;function c(u){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=l:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):c(l)}),n}var YA=y.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:l,offset:c,mobileOffset:u,theme:d="light",richColors:h,duration:f,style:m,visibleToasts:w=FA,toastOptions:p,dir:b=Yy(),gap:v=zA,loadingIcon:g,icons:x,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:j}=e,[N,C]=R.useState([]),E=R.useMemo(()=>Array.from(new Set([r].concat(N.filter(B=>B.position).map(B=>B.position)))),[N,r]),[T,A]=R.useState([]),[M,L]=R.useState(!1),[W,O]=R.useState(!1),[K,U]=R.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),$=R.useRef(null),k=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=R.useRef(null),D=R.useRef(!1),H=R.useCallback(B=>{C(ee=>{var X;return(X=ee.find(de=>de.id===B.id))!=null&&X.delete||yt.dismiss(B.id),ee.filter(({id:de})=>de!==B.id)})},[]);return R.useEffect(()=>yt.subscribe(B=>{if(B.dismiss){C(ee=>ee.map(X=>X.id===B.id?{...X,delete:!0}:X));return}setTimeout(()=>{Xb.flushSync(()=>{C(ee=>{let X=ee.findIndex(de=>de.id===B.id);return X!==-1?[...ee.slice(0,X),{...ee[X],...B},...ee.slice(X+1)]:[B,...ee]})})})}),[]),R.useEffect(()=>{if(d!=="system"){U(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?U("dark"):U("light")),typeof window>"u")return;let B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:ee})=>{U(ee?"dark":"light")})}catch{B.addListener(({matches:X})=>{try{U(X?"dark":"light")}catch(de){console.error(de)}})}},[d]),R.useEffect(()=>{N.length<=1&&L(!1)},[N]),R.useEffect(()=>{let B=ee=>{var X,de;s.every(ye=>ee[ye]||ee.code===ye)&&(L(!0),(X=$.current)==null||X.focus()),ee.code==="Escape"&&(document.activeElement===$.current||(de=$.current)!=null&&de.contains(document.activeElement))&&L(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[s]),R.useEffect(()=>{if($.current)return()=>{_.current&&(_.current.focus({preventScroll:!0}),_.current=null,D.current=!1)}},[$.current]),R.createElement("section",{ref:t,"aria-label":`${S} ${k}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},E.map((B,ee)=>{var X;let[de,ye]=B.split("-");return N.length?R.createElement("ol",{key:B,dir:b==="auto"?Yy():b,tabIndex:-1,ref:$,className:l,"data-sonner-toaster":!0,"data-theme":K,"data-y-position":de,"data-lifted":M&&N.length>1&&!i,"data-x-position":ye,style:{"--front-toast-height":`${((X=T[0])==null?void 0:X.height)||0}px`,"--width":`${BA}px`,"--gap":`${v}px`,...m,...GA(c,u)},onBlur:F=>{D.current&&!F.currentTarget.contains(F.relatedTarget)&&(D.current=!1,_.current&&(_.current.focus({preventScroll:!0}),_.current=null))}
vendor: 4,922 bytes, line 306
306,onFocus:F=>{F.target instanceof HTMLElement&&F.target.dataset.dismissible==="false"||D.current||(D.current=!0,_.current=F.relatedTarget)},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{W||L(!1)},onDragEnd:()=>L(!1),onPointerDown:F=>{F.target instanceof HTMLElement&&F.target.dataset.dismissible==="false"||O(!0)},onPointerUp:()=>O(!1)},N.filter(F=>!F.position&&ee===0||F.position===B).map((F,oe)=>{var pe,he;return R.createElement(qA,{key:F.id,icons:x,index:oe,toast:F,defaultRichColors:h,duration:(pe=p==null?void 0:p.duration)!=null?pe:f,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:n,visibleToasts:w,closeButton:(he=p==null?void 0:p.closeButton)!=null?he:o,interacting:W,position:B,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:H,toasts:N.filter(ae=>ae.position==F.position),heights:T.filter(ae=>ae.position==F.position),setHeights:A,expandByDefault:i,gap:v,loadingIcon:g,expanded:M,pauseWhenPageIsHidden:j,swipeDirections:e.swipeDirections})})):null}))});const QA=({...e})=>{const{theme:t="system"}=SA();return a.jsx(YA,{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 XA=im[" useId ".trim().toString()]||(()=>{}),JA=0;function Wa(e){const[t,n]=y.useState(XA());return He(()=>{n(r=>r??String(JA++))},[e]),t?`radix-${t}`:""}const ZA=["top","right","bottom","left"],Ur=Math.min,Et=Math.max,kc=Math.round,bl=Math.floor,Pn=e=>({x:e,y:e}),eP={left:"right",right:"left",bottom:"top",top:"bottom"},tP={start:"end",end:"start"};function rf(e,t,n){return Et(e,Ur(t,n))}function Qn(e,t){return typeof e=="function"?e(t):e}function Xn(e){return e.split("-")[0]}function io(e){return e.split("-")[1]}function ap(e){return e==="x"?"y":"x"}function lp(e){return e==="y"?"height":"width"}const nP=new Set(["top","bottom"]);function kn(e){return nP.has(Xn(e))?"y":"x"}function cp(e){return ap(kn(e))}function rP(e,t,n){n===void 0&&(n=!1);const r=io(e),s=cp(e),i=lp(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=_c(o)),[o,_c(o)]}function sP(e){const t=_c(e);return[sf(e),t,sf(t)]}function sf(e){return e.replace(/start|end/g,t=>tP[t])}const Qy=["left","right"],Xy=["right","left"],iP=["top","bottom"],oP=["bottom","top"];function aP(e,t,n){switch(e){case"top":case"bottom":return n?t?Xy:Qy:t?Qy:Xy;case"left":case"right":return t?iP:oP;default:return[]}}function lP(e,t,n,r){const s=io(e);let i=aP(Xn(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(sf)))),i}function _c(e){return e.replace(/left|right|bottom|top/g,t=>eP[t])}function cP(e){return{top:0,right:0,bottom:0,left:0,...e}}function Q1(e){return typeof e!="number"?cP(e):{top:e,right:e,bottom:e,left:e}}function Ac(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Jy(e,t,n){let{reference:r,floating:s}=e;const i=kn(t),o=cp(t),l=lp(o),c=Xn(t),u=i==="y",d=r.x+r.width/2-s.width/2,h=r.y+r.height/2-s.height/2,f=r[l]/2-s[l]/2;let m;switch(c){case"top":m={x:d,y:r.y-s.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-s.width,y:h};break;default:m={x:r.x,y:r.y}}switch(io(t)){case"start":m[o]-=f*(n&&u?-1:1);break;case"end":m[o]+=f*(n&&u?-1:1);break}return m}const uP=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,l=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:h}=Jy(u,r,c),f=r,m={},w=0;for(let p=0;p<l.length;p++){const{name:b,fn:v}=l[p],{x:g,y:x,data:S,reset:j}=await v({x:d,y:h,initialPlacement:r,placement:f,strategy:s,middlewareData:m,rects:u,platform:o,elements:{reference:e,floating:t}});d=g??d,h=x??h,m={...m,[b]:{...m[b],...S}},j&&w<=50&&(w++,typeof j=="object"&&(j.placement&&(f=j.placement),j.rects&&(u=j.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):j.rects),{x:d,y:h}=Jy(u,f,c)),p=-1)}return{x:d,y:h,placement:f,strategy:s,middlewareData:m}};async function ya(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:m=0}=Qn(t,e),w=Q1(m),b=l[f?h==="floating"?"reference":"floating":h],v=Ac(await i.getClippingRect
vendor: 7,385 bytes, line 306
306({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),g=h==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),S=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},j=Ac(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:x,strategy:c}):g);return{top:(v.top-j.top+w.top)/S.y,bottom:(j.bottom-v.bottom+w.bottom)/S.y,left:(v.left-j.left+w.left)/S.x,right:(j.right-v.right+w.right)/S.x}}const dP=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=Qn(e,t)||{};if(u==null)return{};const h=Q1(d),f={x:n,y:r},m=cp(s),w=lp(m),p=await o.getDimensions(u),b=m==="y",v=b?"top":"left",g=b?"bottom":"right",x=b?"clientHeight":"clientWidth",S=i.reference[w]+i.reference[m]-f[m]-i.floating[w],j=f[m]-i.reference[m],N=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let C=N?N[x]:0;(!C||!await(o.isElement==null?void 0:o.isElement(N)))&&(C=l.floating[x]||i.floating[w]);const E=S/2-j/2,T=C/2-p[w]/2-1,A=Ur(h[v],T),M=Ur(h[g],T),L=A,W=C-p[w]-M,O=C/2-p[w]/2+E,K=rf(L,O,W),U=!c.arrow&&io(s)!=null&&O!==K&&i.reference[w]/2-(O<L?A:M)-p[w]/2<0,$=U?O<L?O-L:O-W:0;return{[m]:f[m]+$,data:{[m]:K,centerOffset:O-K-$,...U&&{alignmentOffset:$}},reset:U}}}),hP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:p=!0,...b}=Qn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=Xn(s),g=kn(l),x=Xn(l)===l,S=await(c.isRTL==null?void 0:c.isRTL(u.floating)),j=f||(x||!p?[_c(l)]:sP(l)),N=w!=="none";!f&&N&&j.push(...lP(l,p,w,S));const C=[l,...j],E=await ya(t,b),T=[];let A=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&T.push(E[v]),h){const O=rP(s,o,S);T.push(E[O[0]],E[O[1]])}if(A=[...A,{placement:s,overflows:T}],!T.every(O=>O<=0)){var M,L;const O=(((M=i.flip)==null?void 0:M.index)||0)+1,K=C[O];if(K&&(!(h==="alignment"?g!==kn(K):!1)||A.every(k=>k.overflows[0]>0&&kn(k.placement)===g)))return{data:{index:O,overflows:A},reset:{placement:K}};let U=(L=A.filter($=>$.overflows[0]<=0).sort(($,k)=>$.overflows[1]-k.overflows[1])[0])==null?void 0:L.placement;if(!U)switch(m){case"bestFit":{var W;const $=(W=A.filter(k=>{if(N){const _=kn(k.placement);return _===g||_==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(_=>_>0).reduce((_,D)=>_+D,0)]).sort((k,_)=>k[1]-_[1])[0])==null?void 0:W[0];$&&(U=$);break}case"initialPlacement":U=l;break}if(s!==U)return{reset:{placement:U}}}return{}}}};function Zy(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ev(e){return ZA.some(t=>e[t]>=0)}const fP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=Qn(e,t);switch(r){case"referenceHidden":{const i=await ya(t,{...s,elementContext:"reference"}),o=Zy(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:ev(o)}}}case"escaped":{const i=await ya(t,{...s,altBoundary:!0}),o=Zy(i,n.floating);return{data:{escapedOffsets:o,escaped:ev(o)}}}default:return{}}}}},X1=new Set(["left","top"]);async function mP(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Xn(n),l=io(n),c=kn(n)==="y",u=X1.has(o)?-1:1,d=i&&c?-1:1,h=Qn(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof w=="number"&&(m=l==="end"?w*-1:w),c?{x:m*d,y:f*u}:{x:f*u,y:m*d}}const pP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:l}=t,c=await mP(t,e);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:o}}}}},gP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:b=>{let{x:v,y:g}=b;return{x:v,y:g}}},...c}=Qn(e,t),u={x:n,y:r},d=await ya(t,c),h=kn(Xn(s)),f=ap(h);let m=u[f],w=u[h];if(i){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",g=m+d[b],x=m-d[v];m=rf(g,m,x)}if(o){const b=h==="y"?"top":"left",v=h==="y"?"bottom":"right",g=w+d[b],x=w-d[v];w=rf(g,w,x)}const p=l.fn({...t,[f]:m,[h]:w});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[f]:i,[h]:o}}}}}},yP=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=Qn(e,t),d={x:n,y:r},h=kn(s),f=ap(h);let m=d[f],w=d[h];const p=Qn(l,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const x=f==="y"?"height":"width",S=i.reference[f]-i.floating[x]+b.mainAxis,j=i.reference[f]+i.reference[x]-b.mainAxis;m<S?m=S:m>j&&(m=j)}if(u){var v,g;const x=f==="y"?"width":"height",S=X1.has(Xn(s)),j=i.reference[h]-i.floating[x]+(S&&((v=o.offset)==null?void 0:v[h])||0)+(S?0:b.crossAxis),N=i.reference[h]+i.reference[x]+(S?0:((g=o.offset)==null?void 0:g[h])||0)-(S?b.crossAxis:0);w<j?w=j:w>N&&(w=N)}return{[f]:m,[h]:w}}}},vP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:l}=t,{apply:c=()=>{},...u}=Qn(e,t),d=await ya(t,u),h=Xn(s),f=io(s),m=kn(s)==="y",{width:w,height:p}=i.floating;let b,v;h==="top"||h==="bottom"?(b=h,v=f===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(v=h,b=f==="end"?"top":"bottom");const g=p-d.top-d.bottom,x=w-d.left-d.right,S=Ur(p-d[b],g),j=Ur(w-d[v],x),N=!t.middlewareData.shift;let C=S,E=j;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=g),N&&!f){const A=Et(d.left,0),M=Et(d.right,0),L=Et(d.top,0),W=Et(d.bottom,0);m?E=w-2*(A!==0||M!==0?A+M:Et(d.left,d.right)):C=p-2*(L!==0||W!==0?L+W:Et(d.top,d.bottom))}await c({...t,availableWidth:E,availableHeight:C});const T=await o.getDimensions(l.floating);return w!==T.width||p!==T.height?{reset:{rects:!0}}:{}}}};function pu(){return typeof window<"u"}function oo(e){return J1(e)?(e.nodeName||"").toLowerCase():"#document"}function Pt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mn(e){var t;return(t=(J1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function J1(e){return pu()?e instanceof Node||e instanceof Pt(e).Node:!1}function vn(e){return pu()?e instanceof Element||e instanceof Pt(e).Element:!1}function On(e){return pu()?e instanceof HTMLElement||e instanceof Pt(e).HTMLElement:!1}function tv(e){return!pu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pt(e).ShadowRoot}const xP=new Set(["inline","contents"]);function Ha(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=xn(e);
vendor: 4,121 bytes, line 306
306return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!xP.has(s)}const wP=new Set(["table","td","th"]);function bP(e){return wP.has(oo(e))}const SP=[":popover-open",":modal"];function gu(e){return SP.some(t=>{try{return e.matches(t)}catch{return!1}})}const jP=["transform","translate","scale","rotate","perspective"],NP=["transform","translate","scale","rotate","perspective","filter"],CP=["paint","layout","strict","content"];function up(e){const t=dp(),n=vn(e)?xn(e):e;return jP.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||NP.some(r=>(n.willChange||"").includes(r))||CP.some(r=>(n.contain||"").includes(r))}function EP(e){let t=Br(e);for(;On(t)&&!Qi(t);){if(up(t))return t;if(gu(t))return null;t=Br(t)}return null}function dp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const TP=new Set(["html","body","#document"]);function Qi(e){return TP.has(oo(e))}function xn(e){return Pt(e).getComputedStyle(e)}function yu(e){return vn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Br(e){if(oo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tv(e)&&e.host||Mn(e);return tv(t)?t.host:t}function Z1(e){const t=Br(e);return Qi(t)?e.ownerDocument?e.ownerDocument.body:e.body:On(t)&&Ha(t)?t:Z1(t)}function va(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Z1(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Pt(s);if(i){const l=of(o);return t.concat(o,o.visualViewport||[],Ha(s)?s:[],l&&n?va(l):[])}return t.concat(s,va(s,[],n))}function of(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eS(e){const t=xn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=On(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,l=kc(n)!==i||kc(r)!==o;return l&&(n=i,r=o),{width:n,height:r,$:l}}function hp(e){return vn(e)?e:e.contextElement}function Ai(e){const t=hp(e);if(!On(t))return Pn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=eS(t);let o=(i?kc(n.width):n.width)/r,l=(i?kc(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const kP=Pn(0);function tS(e){const t=Pt(e);return!dp()||!t.visualViewport?kP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _P(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pt(e)?!1:t}function Is(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=hp(e);let o=Pn(1);t&&(r?vn(r)&&(o=Ai(r)):o=Ai(e));const l=_P(i,n,r)?tS(i):Pn(0);let c=(s.left+l.x)/o.x,u=(s.top+l.y)/o.y,d=s.width/o.x,h=s.height/o.y;if(i){const f=Pt(i),m=r&&vn(r)?Pt(r):r;let w=f,p=of(w);for(;p&&r&&m!==w;){const b=Ai(p),v=p.getBoundingClientRect(),g=xn(p),x=v.left+(p.clientLeft+parseFloat(g.paddingLeft))*b.x,S=v.top+(p.clientTop+parseFloat(g.paddingTop))*b.y;c*=b.x,u*=b.y,d*=b.x,h*=b.y,c+=x,u+=S,w=Pt(p),p=of(w)}}return Ac({width:d,height:h,x:c,y:u})}function fp(e,t){const n=yu(e).scrollLeft;return t?t.left+n:Is(Mn(e)).left+n}function nS(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:fp(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function AP(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=Mn(r),l=t?gu(t.floating):!1;if(r===o||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Pn(1);const d=Pn(0),h=On(r);if((h||!h&&!i)&&((oo(r)!=="body"||Ha(o))&&(c=yu(r)),On(r))){const m=Is(r);u=Ai(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const f=o&&!h&&!i?nS(o,c,!0):Pn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-c.scrollTop*u.y+d.y+f.y}}function PP(e){return Array.from(e.getClientRects())}function RP(e){const t=Mn(e),n=yu(e),r=e.ownerDocument.body,s=Et(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Et(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+fp(e);const l=-n.scrollTop;return xn(r).direction==="rtl"&&(o+=Et(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:l}}
vendor: 4,590 bytes, line 306
306function IP(e,t){const n=Pt(e),r=Mn(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,l=0,c=0;if(s){i=s.width,o=s.height;const u=dp();(!u||u&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:l,y:c}}const OP=new Set(["absolute","fixed"]);function MP(e,t){const n=Is(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=On(e)?Ai(e):Pn(1),o=e.clientWidth*i.x,l=e.clientHeight*i.y,c=s*i.x,u=r*i.y;return{width:o,height:l,x:c,y:u}}function nv(e,t,n){let r;if(t==="viewport")r=IP(e,n);else if(t==="document")r=RP(Mn(e));else if(vn(t))r=MP(t,n);else{const s=tS(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Ac(r)}function rS(e,t){const n=Br(e);return n===t||!vn(n)||Qi(n)?!1:xn(n).position==="fixed"||rS(n,t)}function LP(e,t){const n=t.get(e);if(n)return n;let r=va(e,[],!1).filter(l=>vn(l)&&oo(l)!=="body"),s=null;const i=xn(e).position==="fixed";let o=i?Br(e):e;for(;vn(o)&&!Qi(o);){const l=xn(o),c=up(o);!c&&l.position==="fixed"&&(s=null),(i?!c&&!s:!c&&l.position==="static"&&!!s&&OP.has(s.position)||Ha(o)&&!c&&rS(e,o))?r=r.filter(d=>d!==o):s=l,o=Br(o)}return t.set(e,r),r}function DP(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?gu(t)?[]:LP(t,this._c):[].concat(n),r],l=o[0],c=o.reduce((u,d)=>{const h=nv(t,d,s);return u.top=Et(h.top,u.top),u.right=Ur(h.right,u.right),u.bottom=Ur(h.bottom,u.bottom),u.left=Et(h.left,u.left),u},nv(t,l,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function $P(e){const{width:t,height:n}=eS(e);return{width:t,height:n}}function FP(e,t,n){const r=On(t),s=Mn(t),i=n==="fixed",o=Is(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=Pn(0);function u(){c.x=fp(s)}if(r||!r&&!i)if((oo(t)!=="body"||Ha(s))&&(l=yu(t)),r){const m=Is(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else s&&u();i&&!r&&s&&u();const d=s&&!r&&!i?nS(s,l):Pn(0),h=o.left+l.scrollLeft-c.x-d.x,f=o.top+l.scrollTop-c.y-d.y;return{x:h,y:f,width:o.width,height:o.height}}function wd(e){return xn(e).position==="static"}function rv(e,t){if(!On(e)||xn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Mn(e)===n&&(n=n.ownerDocument.body),n}function sS(e,t){const n=Pt(e);if(gu(e))return n;if(!On(e)){let s=Br(e);for(;s&&!Qi(s);){if(vn(s)&&!wd(s))return s;s=Br(s)}return n}let r=rv(e,t);for(;r&&bP(r)&&wd(r);)r=rv(r,t);return r&&Qi(r)&&wd(r)&&!up(r)?n:r||EP(e)||n}const VP=async function(e){const t=this.getOffsetParent||sS,n=this.getDimensions,r=await n(e.floating);return{reference:FP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function UP(e){return xn(e).direction==="rtl"}const BP={convertOffsetParentRelativeRectToViewportRelativeRect:AP,getDocumentElement:Mn,getClippingRect:DP,getOffsetParent:sS,getElementRects:VP,getClientRects:PP,getDimensions:$P,getScale:Ai,isElement:vn,isRTL:UP};function iS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function zP(e,t){let n=null,r;const s=Mn(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:h,width:f,height:m}=u;if(l||t(),!f||!m)return;const w=bl(h),p=bl(s.clientWidth-(d+f)),b=bl(s.clientHeight-(h+m)),v=bl(d),x={rootMargin:-w+"px "+-p+"px "+-b+"px "+-v+"px",threshold:Et(0,Ur(1,c))||1};let S=!0;function j(N){const C=N[0].intersectionRatio;if(C!==c){if(!S)return o();C?o(!1,C):r=setTimeout(()=>{o(!1,1e-7)},1e3)}C===1&&!iS(u,e.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(j,{...x,root:s.ownerDocument})}catch{n=new IntersectionObserver(j,x)}n.observe(e)}return o(!0),i}function WP(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=hp(e),d=s||i?[...u?va(u):[],...va(t)]:[];d.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const h=u&&l?zP(u,n):null;let f=-1,m=null;o&&(m=new ResizeObserver(v=>{let[g]=v;g&&g.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),u&&!c&&m.observe(u),m.observe(t));let w,p=c?Is(e):null;c&&b();function b(){const v=Is(e);p&&!iS(p,v)&&n(),p=v,w=requestAnimationFrame(b)}return n(),()=>{var v;d.forEach(g=>{s&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),h==null||h(),(v=m)==null||v.disconnect(),m=null,c&&cancelAnimationFrame(w)}}
vendor: 4,124 bytes, line 306
306const HP=pP,KP=gP,qP=hP,GP=vP,YP=fP,sv=dP,QP=yP,XP=(e,t,n)=>{const r=new Map,s={platform:BP,...n},i={...s.platform,_c:r};return uP(e,t,{...s,platform:i})};var JP=typeof document<"u",ZP=function(){},Xl=JP?y.useLayoutEffect:ZP;function Pc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Pc(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!Pc(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function oS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function iv(e,t){const n=oS(e);return Math.round(t*n)/n}function bd(e){const t=y.useRef(e);return Xl(()=>{t.current=e}),t}function eR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,h]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=y.useState(r);Pc(f,r)||m(r);const[w,p]=y.useState(null),[b,v]=y.useState(null),g=y.useCallback(k=>{k!==N.current&&(N.current=k,p(k))},[]),x=y.useCallback(k=>{k!==C.current&&(C.current=k,v(k))},[]),S=i||w,j=o||b,N=y.useRef(null),C=y.useRef(null),E=y.useRef(d),T=c!=null,A=bd(c),M=bd(s),L=bd(u),W=y.useCallback(()=>{if(!N.current||!C.current)return;const k={placement:t,strategy:n,middleware:f};M.current&&(k.platform=M.current),XP(N.current,C.current,k).then(_=>{const D={..._,isPositioned:L.current!==!1};O.current&&!Pc(E.current,D)&&(E.current=D,Fs.flushSync(()=>{h(D)}))})},[f,t,n,M,L]);Xl(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,h(k=>({...k,isPositioned:!1})))},[u]);const O=y.useRef(!1);Xl(()=>(O.current=!0,()=>{O.current=!1}),[]),Xl(()=>{if(S&&(N.current=S),j&&(C.current=j),S&&j){if(A.current)return A.current(S,j,W);W()}},[S,j,W,A,T]);const K=y.useMemo(()=>({reference:N,floating:C,setReference:g,setFloating:x}),[g,x]),U=y.useMemo(()=>({reference:S,floating:j}),[S,j]),$=y.useMemo(()=>{const k={position:n,left:0,top:0};if(!U.floating)return k;const _=iv(U.floating,d.x),D=iv(U.floating,d.y);return l?{...k,transform:"translate("+_+"px, "+D+"px)",...oS(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:D}},[n,l,U.floating,d.x,d.y]);return y.useMemo(()=>({...d,update:W,refs:K,elements:U,floatingStyles:$}),[d,W,K,U,$])}const tR=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?sv({element:r.current,padding:s}).fn(n):{}:r?sv({element:r,padding:s}).fn(n):{}}}},nR=(e,t)=>({...HP(e),options:[e,t]}),rR=(e,t)=>({...KP(e),options:[e,t]}),sR=(e,t)=>({...QP(e),options:[e,t]}),iR=(e,t)=>({...qP(e),options:[e,t]}),oR=(e,t)=>({...GP(e),options:[e,t]}),aR=(e,t)=>({...YP(e),options:[e,t]}),lR=(e,t)=>({...tR(e),options:[e,t]});var cR="Arrow",aS=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return a.jsx(se.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});aS.displayName=cR;var uR=aS;function dR(e){const[t,n]=y.useState(void 0);return He(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,l;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,l=u.blockSize}else o=e.offsetWidth,l=e.offsetHeight;n({width:o,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var mp="Popper",[lS,vu]=qr(mp),[hR,cS]=lS(mp),uS=e=>{const{__scopePopper:t,children:n}=e,[r,s]=y.useState(null);return a.jsx(hR,{scope:t,anchor:r,onAnchorChange:s,children:n})};uS.displayName=mp;var dS="PopperAnchor",hS=y.forwardRef((e,t)=>
vendor: 4,492 bytes, line 306
306{const{__scopePopper:n,virtualRef:r,...s}=e,i=cS(dS,n),o=y.useRef(null),l=fe(t,o);return y.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:a.jsx(se.div,{...s,ref:l})});hS.displayName=dS;var pp="PopperContent",[fR,mR]=lS(pp),fS=y.forwardRef((e,t)=>{var F,oe,pe,he,ae,ce;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:w,...p}=e,b=cS(pp,n),[v,g]=y.useState(null),x=fe(t,nt=>g(nt)),[S,j]=y.useState(null),N=dR(S),C=(N==null?void 0:N.width)??0,E=(N==null?void 0:N.height)??0,T=r+(i!=="center"?"-"+i:""),A=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},M=Array.isArray(u)?u:[u],L=M.length>0,W={padding:A,boundary:M.filter(gR),altBoundary:L},{refs:O,floatingStyles:K,placement:U,isPositioned:$,middlewareData:k}=eR({strategy:"fixed",placement:T,whileElementsMounted:(...nt)=>WP(...nt,{animationFrame:m==="always"}),elements:{reference:b.anchor},middleware:[nR({mainAxis:s+E,alignmentAxis:o}),c&&rR({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?sR():void 0,...W}),c&&iR({...W}),oR({...W,apply:({elements:nt,rects:Mt,availableWidth:Zr,availableHeight:rr})=>{const{width:es,height:go}=Mt.reference,Bs=nt.floating.style;Bs.setProperty("--radix-popper-available-width",`${Zr}px`),Bs.setProperty("--radix-popper-available-height",`${rr}px`),Bs.setProperty("--radix-popper-anchor-width",`${es}px`),Bs.setProperty("--radix-popper-anchor-height",`${go}px`)}}),S&&lR({element:S,padding:l}),yR({arrowWidth:C,arrowHeight:E}),f&&aR({strategy:"referenceHidden",...W})]}),[_,D]=gS(U),H=qe(w);He(()=>{$&&(H==null||H())},[$,H]);const B=(F=k.arrow)==null?void 0:F.x,ee=(oe=k.arrow)==null?void 0:oe.y,X=((pe=k.arrow)==null?void 0:pe.centerOffset)!==0,[de,ye]=y.useState();return He(()=>{v&&ye(window.getComputedStyle(v).zIndex)},[v]),a.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:$?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(he=k.transformOrigin)==null?void 0:he.x,(ae=k.transformOrigin)==null?void 0:ae.y].join(" "),...((ce=k.hide)==null?void 0:ce.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(fR,{scope:n,placedSide:_,onArrowChange:j,arrowX:B,arrowY:ee,shouldHideArrow:X,children:a.jsx(se.div,{"data-side":_,"data-align":D,...p,ref:x,style:{...p.style,animation:$?void 0:"none"}})})})});fS.displayName=pp;var mS="PopperArrow",pR={top:"bottom",right:"left",bottom:"top",left:"right"},pS=y.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=mR(mS,r),o=pR[i.placedSide];return a.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:a.jsx(uR,{...s,ref:n,style:{...s.style,display:"block"}})})});pS.displayName=mS;function gR(e){return e!==null}var yR=e=>({name:"transformOrigin",options:e,fn(t){var b,v,g;const{placement:n,rects:r,middlewareData:s}=t,o=((b=s.arrow)==null?void 0:b.centerOffset)!==0,l=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,d]=gS(n),h={start:"0%",center:"50%",end:"100%"}[d],f=(((v=s.arrow)==null?void 0:v.x)??0)+l/2,m=(((g=s.arrow)==null?void 0:g.y)??0)+c/2;let w="",p="";return u==="bottom"?(w=o?h:`${f}px`,p=`${-c}px`):u==="top"?(w=o?h:`${f}px`,p=`${r.floating.height+c}px`):u==="right"?(w=`${-c}px`,p=o?h:`${m}px`):u==="left"&&(w=`${r.floating.width+c}px`,p=o?h:`${m}px`),{data:{x:w,y:p}}}});function gS(e){const[t,n="center"]=e.split("-");return[t,n]}var vR=uS,yS=hS,vS=fS,xS=pS,[xu,_6]=qr("Tooltip",[vu]),gp=vu(),wS="TooltipProvider",xR=700,ov="tooltip.open",[wR,bS]=xu(wS),SS=e=>{const{__scopeTooltip:t,delayDuration:n=xR,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,o=y.useRef(!0),l=y.useRef(!1),c=y.useRef(0);return y.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),a.jsx(wR,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>
vendor: 4,659 bytes, line 306
306o.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:y.useCallback(u=>{l.current=u},[]),disableHoverableContent:s,children:i})};SS.displayName=wS;var jS="Tooltip",[A6,wu]=xu(jS),af="TooltipTrigger",bR=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=wu(af,n),i=bS(af,n),o=gp(n),l=y.useRef(null),c=fe(t,l,s.onTriggerChange),u=y.useRef(!1),d=y.useRef(!1),h=y.useCallback(()=>u.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),a.jsx(yS,{asChild:!0,...o,children:a.jsx(se.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:Z(e.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:Z(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:Z(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Z(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:Z(e.onBlur,s.onClose),onClick:Z(e.onClick,s.onClose)})})});bR.displayName=af;var SR="TooltipPortal",[P6,jR]=xu(SR,{forceMount:void 0}),Xi="TooltipContent",NS=y.forwardRef((e,t)=>{const n=jR(Xi,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,o=wu(Xi,e.__scopeTooltip);return a.jsx(Gr,{present:r||o.open,children:o.disableHoverableContent?a.jsx(CS,{side:s,...i,ref:t}):a.jsx(NR,{side:s,...i,ref:t})})}),NR=y.forwardRef((e,t)=>{const n=wu(Xi,e.__scopeTooltip),r=bS(Xi,e.__scopeTooltip),s=y.useRef(null),i=fe(t,s),[o,l]=y.useState(null),{trigger:c,onClose:u}=n,d=s.current,{onPointerInTransitChange:h}=r,f=y.useCallback(()=>{l(null),h(!1)},[h]),m=y.useCallback((w,p)=>{const b=w.currentTarget,v={x:w.clientX,y:w.clientY},g=_R(v,b.getBoundingClientRect()),x=AR(v,g),S=PR(p.getBoundingClientRect()),j=IR([...x,...S]);l(j),h(!0)},[h]);return y.useEffect(()=>()=>f(),[f]),y.useEffect(()=>{if(c&&d){const w=b=>m(b,d),p=b=>m(b,c);return c.addEventListener("pointerleave",w),d.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",p)}}},[c,d,m,f]),y.useEffect(()=>{if(o){const w=p=>{const b=p.target,v={x:p.clientX,y:p.clientY},g=(c==null?void 0:c.contains(b))||(d==null?void 0:d.contains(b)),x=!RR(v,o);g?f():x&&(f(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,d,o,u,f]),a.jsx(CS,{...e,ref:i})}),[CR,ER]=xu(jS,{isInside:!1}),TR=j_("TooltipContent"),CS=y.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...l}=e,c=wu(Xi,n),u=gp(n),{onClose:d}=c;return y.useEffect(()=>(document.addEventListener(ov,d),()=>document.removeEventListener(ov,d)),[d]),y.useEffect(()=>{if(c.trigger){const h=f=>{const m=f.target;m!=null&&m.contains(c.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,d]),a.jsx(uu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:a.jsxs(vS,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.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:[a.jsx(TR,{children:r}),a.jsx(CR,{scope:n,isInside:!0,children:a.jsx(H_,{id:c.contentId,role:"tooltip",children:s||r})})]})})});NS.displayName=Xi;var ES="TooltipArrow",kR=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=gp(n);return ER(ES,n).isInside?null:a.jsx(xS,{...s,...r,ref:t})});kR.displayName=ES;function _R(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function AR(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function PR(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function RR(e,t){const{x:n,y:r}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;
306o=i++){const l=t[i],c=t[o],u=l.x,d=l.y,h=c.x,f=c.y;d>r!=f>r&&n<(h-u)*(r-d)/(f-d)+u&&(s=!s)}return s}function IR(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),OR(t)}function OR(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var MR=SS,TS=NS;const LR=MR,DR=y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>a.jsx(TS,{ref:r,sideOffset:t,className:ve("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));DR.displayName=TS.displayName;var bu=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(){}},Su=typeof window>"u"||"Deno"in globalThis;function on(){}function $R(e,t){return typeof e=="function"?e(t):e}function FR(e){return typeof e=="number"&&e>=0&&e!==1/0}function VR(e,t){return Math.max(e+(t||0)-Date.now(),0)}function lf(e,t){return typeof e=="function"?e(t):e}function UR(e,t){return typeof e=="function"?e(t):e}function av(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==yp(o,t.options))return!1}else if(!wa(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||s&&s!==t.state.fetchStatus||i&&!i(t))}function lv(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(xa(t.options.mutationKey)!==xa(i))return!1}else if(!wa(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function yp(e,t){return((t==null?void 0:t.queryKeyHashFn)||xa)(e)}function xa(e){return JSON.stringify(e,(t,n)=>cf(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function wa(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>wa(e[n],t[n])):!1}function kS(e,t){if(e===t)return e;const n=cv(e)&&cv(t);if(n||cf(e)&&cf(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),o=i.length,l=n?[]:{},c=new Set(r);let u=0;for(let d=0;d<o;d++){const h=n?d:i[d];(!n&&c.has(h)||n)&&e[h]===void 0&&t[h]===void 0?(l[h]=void 0,u++):(l[h]=kS(e[h],t[h]),l[h]===e[h]&&e[h]!==void 0&&u++)}return s===o&&u===s?e:l}return t}function cv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function cf(e){if(!uv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!uv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function uv(e){return Object.prototype.toString.call(e)==="[object Object]"}function BR(e){return new Promise(t=>{setTimeout(t,e)})}function zR(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?kS(e,t):t}function WR(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function HR(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var vp=Symbol();function _S(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===vp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var vs,wr,Oi,A0,KR=(A0=class extends bu{constructor(){super();ue(this,vs);ue(this,wr);ue(this,Oi);ne(this,Oi,t=>{if(!Su&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,wr)||this.setEventListener(P(this,Oi))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,wr))==null||t.call(this),ne(this,wr,void 0))}setEventListener(t){var n;ne(this,Oi,t),(n=P(this,wr))==null||n.call(this),ne(this,wr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,vs)!==t&&(ne(this,vs,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 19,936 bytes, line 306
306this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,vs)=="boolean"?P(this,vs):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},vs=new WeakMap,wr=new WeakMap,Oi=new WeakMap,A0),AS=new KR,Mi,br,Li,P0,qR=(P0=class extends bu{constructor(){super();ue(this,Mi,!0);ue(this,br);ue(this,Li);ne(this,Li,t=>{if(!Su&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){P(this,br)||this.setEventListener(P(this,Li))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,br))==null||t.call(this),ne(this,br,void 0))}setEventListener(t){var n;ne(this,Li,t),(n=P(this,br))==null||n.call(this),ne(this,br,t(this.setOnline.bind(this)))}setOnline(t){P(this,Mi)!==t&&(ne(this,Mi,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,Mi)}},Mi=new WeakMap,br=new WeakMap,Li=new WeakMap,P0),Rc=new qR;function GR(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function YR(e){return Math.min(1e3*2**e,3e4)}function PS(e){return(e??"online")==="online"?Rc.isOnline():!0}var RS=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Sd(e){return e instanceof RS}function IS(e){let t=!1,n=0,r=!1,s;const i=GR(),o=p=>{var b;r||(f(new RS(p)),(b=e.abort)==null||b.call(e))},l=()=>{t=!0},c=()=>{t=!1},u=()=>AS.isFocused()&&(e.networkMode==="always"||Rc.isOnline())&&e.canRun(),d=()=>PS(e.networkMode)&&e.canRun(),h=p=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,p),s==null||s(),i.resolve(p))},f=p=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,p),s==null||s(),i.reject(p))},m=()=>new Promise(p=>{var b;s=v=>{(r||u())&&p(v)},(b=e.onPause)==null||b.call(e)}).then(()=>{var p;s=void 0,r||(p=e.onContinue)==null||p.call(e)}),w=()=>{if(r)return;let p;const b=n===0?e.initialPromise:void 0;try{p=b??e.fn()}catch(v){p=Promise.reject(v)}Promise.resolve(p).then(h).catch(v=>{var N;if(r)return;const g=e.retry??(Su?0:3),x=e.retryDelay??YR,S=typeof x=="function"?x(n,v):x,j=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,v);if(t||!j){f(v);return}n++,(N=e.onFail)==null||N.call(e,n,v),BR(S).then(()=>u()?void 0:m()).then(()=>{t?f(v):w()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?w():m().then(w),i)}}var QR=e=>setTimeout(e,0);function XR(){let e=[],t=0,n=l=>{l()},r=l=>{l()},s=QR;const i=l=>{t?e.push(l):s(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&s(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||o()}return c},batchCalls:l=>(...c)=>{i(()=>{l(...c)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{s=l}}}var dt=XR(),xs,R0,OS=(R0=class{constructor(){ue(this,xs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),FR(this.gcTime)&&ne(this,xs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Su?1/0:5*60*1e3))}clearGcTimeout(){P(this,xs)&&(clearTimeout(P(this,xs)),ne(this,xs,void 0))}},xs=new WeakMap,R0),Di,ws,$t,bs,ot,Ma,Ss,ln,$n,I0,JR=(I0=class extends OS{constructor(t){super();ue(this,ln);ue(this,Di);ue(this,ws);ue(this,$t);ue(this,bs);ue(this,ot);ue(this,Ma);ue(this,Ss);ne(this,Ss,!1),ne(this,Ma,t.defaultOptions),this.setOptions(t.options),this.observers=[],ne(this,bs,t.client),ne(this,$t,P(this,bs).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ne(this,Di,eI(this.options)),this.state=t.state??P(this,Di),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=P(this,ot))==null?void 0:t.promise}setOptions(t){this.options={...P(this,Ma),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,$t).remove(this)}setData(t,n){const r=zR(this.state.data,t,this.options);return rt(this,ln,$n).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){rt(this,ln,$n).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=P(this,ot))==null?void 0:r.promise;return(s=P(this,ot))==null||s.cancel(t),n?n.then(on).catch(on):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,Di))}isActive(){return this.observers.some(t=>UR(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vp||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>lf(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:!VR(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,ot))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,ot))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,$t).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(P(this,ot)&&(P(this,Ss)?P(this,ot).cancel({revert:!0}):P(this,ot).cancelRetry()),this.scheduleGc()),P(this,$t).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||rt(this,ln,$n).call(this,{type:"invalidate"})}fetch(t,n){var u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,ot))return P(this,ot).continueRetry(),P(this,ot).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(m=>m.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(ne(this,Ss,!0),r.signal)})},i=()=>{const f=_S(this.options,n),w=(()=>{const p={client:P(this,bs),queryKey:this.queryKey,meta:this.meta};return s(p),p})();return ne(this,Ss,!1),this.options.persister?this.options.persister(f,w,this):f(w)},l=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:P(this,bs),state:this.state,fetchFn:i};return s(f),f})();(u=this.options.behavior)==null||u.onFetch(l,this),ne(this,ws,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&rt(this,ln,$n).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta});const c=f=>{var m,w,p,b;Sd(f)&&f.silent||rt(this,ln,$n).call(this,{type:"error",error:f}),Sd(f)||((w=(m=P(this,$t).config).onError)==null||w.call(m,f,this),(b=(p=P(this,$t).config).onSettled)==null||b.call(p,this.state.data,f,this)),this.scheduleGc()};return ne(this,ot,IS({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var m,w,p,b;if(f===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(v){c(v);return}(w=(m=P(this,$t).config).onSuccess)==null||w.call(m,f,this),(b=(p=P(this,$t).config).onSettled)==null||b.call(p,f,this.state.error,this),this.scheduleGc()},onError:c,onFail:(f,m)=>{rt(this,ln,$n).call(this,{type:"failed",failureCount:f,error:m})},onPause:()=>{rt(this,ln,$n).call(this,{type:"pause"})},onContinue:()=>{rt(this,ln,$n).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),P(this,ot).start()}},Di=new WeakMap,ws=new WeakMap,$t=new WeakMap,bs=new WeakMap,ot=new WeakMap,Ma=new WeakMap,Ss=new WeakMap,ln=new WeakSet,$n=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...ZR(r.data,this.options),fetchMeta:t.meta??null};case"success":return ne(this,ws,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Sd(s)&&s.revert&&P(this,ws)?{...P(this,ws),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),dt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,$t).notify({query:this,type:"updated",action:t})})},I0);function ZR(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:PS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function eI(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var jn,O0,tI=(O0=class extends bu{constructor(t={}){super();ue(this,jn);this.config=t,ne(this,jn,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??yp(s,n);let o=this.get(i);return o||(o=new JR({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){P(this,jn).has(t.queryHash)||(P(this,jn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,jn).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,jn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){dt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,jn).get(t)}getAll(){return[...P(this,jn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>av(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>av(t,r)):n}notify(t){dt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){dt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){dt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},jn=new WeakMap,O0),Nn,ct,js,Cn,ur,M0,nI=(M0=class extends OS{constructor(t){super();ue(this,Cn);ue(this,Nn);ue(this,ct);ue(this,js);this.mutationId=t.mutationId,ne(this,ct,t.mutationCache),ne(this,Nn,[]),this.state=t.state||rI(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,Nn).includes(t)||(P(this,Nn).push(t),this.clearGcTimeout(),P(this,ct).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ne(this,Nn,P(this,Nn).filter(n=>n!==t)),this.scheduleGc(),P(this,ct).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,Nn).length||(this.state.status==="pending"?this.scheduleGc():P(this,ct).remove(this))}continue(){var t;return((t=P(this,js))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,l,c,u,d,h,f,m,w,p,b,v,g,x,S,j,N,C,E;const n=()=>{rt(this,Cn,ur).call(this,{type:"continue"})};ne(this,js,IS({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(T,A)=>{rt(this,Cn,ur).call(this,{type:"failed",failureCount:T,error:A})},onPause:()=>{rt(this,Cn,ur).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,ct).canRun(this)}));const r=this.state.status==="pending",s=!P(this,js).canStart();try{if(r)n();else{rt(this,Cn,ur).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=P(this,ct).config).onMutate)==null?void 0:o.call(i,t,this));const A=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t));A!==this.state.context&&rt(this,Cn,ur).call(this,{type:"pending",context:A,variables:t,isPaused:s})}const T=await P(this,js).start();return await((d=(u=P(this,ct).config).onSuccess)==null?void 0:d.call(u,T,t,this.state.context,this)),await((f=(h=this.options).onSuccess)==null?void 0:f.call(h,T,t,this.state.context)),await((w=(m=P(this,ct).config).onSettled)==null?void 0:w.call(m,T,null,this.state.variables,this.state.context,this)),await((b=(p=this.options).onSettled)==null?void 0:b.call(p,T,null,t,this.state.context)),rt(this,Cn,ur).call(this,{type:"success",data:T}),T}catch(T){try{throw await((g=(v=P(this,ct).config).onError)==null?void 0:g.call(v,T,t,this.state.context,this)),await((S=(x=this.options).onError)==null?void 0:S.call(x,T,t,this.state.context)),await((N=(j=P(this,ct).config).onSettled)==null?void 0:N.call(j,void 0,T,this.state.variables,this.state.context,this)),await((E=(C=this.options).onSettled)==null?void 0:E.call(C,void 0,T,t,this.state.context)),T}finally{rt(this,Cn,ur).call(this,{type:"error",error:T})}}finally{P(this,ct).runNext(this)}}},Nn=new WeakMap,ct=new WeakMap,js=new WeakMap,Cn=new WeakSet,ur=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),dt.batch(()=>{P(this,Nn).forEach(r=>{r.onMutationUpdate(t)}),P(this,ct).notify({mutation:this,type:"updated",action:t})})},M0);function rI(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Bn,cn,La,L0,sI=(L0=class extends bu{constructor(t={}){super();ue(this,Bn);ue(this,cn);ue(this,La);this.config=t,ne(this,Bn,new Set),ne(this,cn,new Map),ne(this,La,0)}build(t,n,r){const s=new nI({mutationCache:this,mutationId:++el(this,La)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){P(this,Bn).add(t);const n=Sl(t);if(typeof n=="string"){const r=P(this,cn).get(n);r?r.push(t):P(this,cn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(P(this,Bn).delete(t)){const n=Sl(t);if(typeof n=="string"){const r=P(this,cn).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&P(this,cn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Sl(t);if(typeof n=="string"){const r=P(this,cn).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Sl(t);if(typeof n=="string"){const s=(r=P(this,cn).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){dt.batch(()=>{P(this,Bn).forEach(t=>{this.notify({type:"removed",mutation:t})}),P(this,Bn).clear(),P(this,cn).clear()})}getAll(){return Array.from(P(this,Bn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>lv(n,r))}findAll(t={}){return this.getAll().filter(n=>lv(t,n))}notify(t){dt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return dt.batch(()=>Promise.all(t.map(n=>n.continue().catch(on))))}},Bn=new WeakMap,cn=new WeakMap,La=new WeakMap,L0);function Sl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function dv(e){return{onFetch:(t,n)=>{var d,h,f,m,w;const r=t.options,s=(f=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:f.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],o=((w=t.state.data)==null?void 0:w.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let p=!1;const b=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},v=_S(t.options,t.fetchOptions),g=async(x,S,j)=>{if(p)return Promise.reject();if(S==null&&x.pages.length)return Promise.resolve(x);const C=(()=>{const M={client:t.client,queryKey:t.queryKey,pageParam:S,direction:j?"backward":"forward",meta:t.options.meta};return b(M),M})(),E=await v(C),{maxPages:T}=t.options,A=j?HR:WR;return{pages:A(x.pages,E,T),pageParams:A(x.pageParams,S,T)}};if(s&&i.length){const x=s==="backward",S=x?iI:hv,j={pages:i,pageParams:o},N=S(r,j);l=await g(j,N,x)}else{const x=e??i.length;do{const S=c===0?o[0]??r.initialPageParam:hv(r,l);if(c>0&&S==null)break;l=await g(l,S),c++}while(c<x)}return l};t.options.persister?t.fetchFn=()=>{var p,b;return(b=(p=t.options).persister)==null?void 0:b.call(p,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function hv(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function iI(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Re,Sr,jr,$i,Fi,Nr,Vi,Ui,D0,oI=(D0=class{constructor(e={}){ue(this,Re);ue(this,Sr);ue(this,jr);ue(this,$i);ue(this,Fi);ue(this,Nr);ue(this,Vi);ue(this,Ui);ne(this,Re,e.queryCache||new tI),ne(this,Sr,e.mutationCache||new sI),ne(this,jr,e.defaultOptions||{}),ne(this,$i,new Map),ne(this,Fi,new Map),ne(this,Nr,0)}mount(){el(this,Nr)._++,P(this,Nr)===1&&(ne(this,Vi,AS.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,Re).onFocus())})),ne(this,Ui,Rc.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,Re).onOnline())})))}unmount(){var e,t;el(this,Nr)._--,P(this,Nr)===0&&((e=P(this,Vi))==null||e.call(this),ne(this,Vi,void 0),(t=P(this,Ui))==null||t.call(this),ne(this,Ui,void 0))}isFetching(e){return P(this,Re).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,Sr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,Re).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=P(this,Re).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(lf(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return P(this,Re).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=P(this,Re).get(r.queryHash),i=s==null?void 0:s.state.data,o=$R(t,i);if(o!==void 0)return P(this,Re).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return dt.batch(()=>P(this,Re).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,Re).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,Re);dt.batch(()=>
306{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,Re);return dt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=dt.batch(()=>P(this,Re).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(on).catch(on)}invalidateQueries(e,t={}){return dt.batch(()=>(P(this,Re).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=dt.batch(()=>P(this,Re).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(on)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(on)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(this,Re).build(this,t);return n.isStaleByTime(lf(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(on).catch(on)}fetchInfiniteQuery(e){return e.behavior=dv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(on).catch(on)}ensureInfiniteQueryData(e){return e.behavior=dv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Rc.isOnline()?P(this,Sr).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,Re)}getMutationCache(){return P(this,Sr)}getDefaultOptions(){return P(this,jr)}setDefaultOptions(e){ne(this,jr,e)}setQueryDefaults(e,t){P(this,$i).set(xa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,$i).values()],n={};return t.forEach(r=>{wa(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){P(this,Fi).set(xa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,Fi).values()],n={};return t.forEach(r=>{wa(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,jr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=yp(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===vp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,jr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,Re).clear(),P(this,Sr).clear()}},Re=new WeakMap,Sr=new WeakMap,jr=new WeakMap,$i=new WeakMap,Fi=new WeakMap,Nr=new WeakMap,Vi=new WeakMap,Ui=new WeakMap,D0),aI=y.createContext(void 0),lI=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),a.jsx(aI.Provider,{value:e,children:t}));/**
307 * @remix-run/router v1.23.0
308 *
309 * Copyright (c) Remix Software Inc.
310 *
311 * This source code is licensed under the MIT license found in the
312 * LICENSE.md file in the root directory of this source tree.
313 *
314 * @license MIT
315 */function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ba.apply(this,arguments)}var Tr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Tr||(Tr={}));const fv="popstate";function cI(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:l}=r.location;return uf("",{pathname:i,search:o,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Ic(s)}return dI(t,n,null,e)}function Ue(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function MS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function uI(){return Math.random().toString(36).substr(2,8)}function mv(e,t){return{usr:e.state,key:e.key,idx:t}}function uf(e,t,n,r){return n===void 0&&(n=null),ba({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ao(t):t,{state:n,key:t&&t.key||r||uI()})}function Ic(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ao(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function dI(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,l=Tr.Pop,c=null,u=d();u==null&&(u=0,o.replaceState(ba({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function h(){l=Tr.Pop;let b=d(),v=b==null?null:b-u;u=b,c&&c({action:l,location:p.location,delta:v})}function f(b,v){l=Tr.Push;let g=uf(p.location,b,v);u=d()+1;let x=mv(g,u),S=p.createHref(g);try{o.pushState(x,"",S)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;s.location.assign(S)}i&&c&&c({action:l,location:p.location,delta:1})}function m(b,v){l=Tr.Replace;let g=uf(p.location,b,v);u=d();let x=mv(g,u),S=p.createHref(g);o.replaceState(x,"",S),i&&c&&c({action:l,location:p.location,delta:0})}function w(b){let v=s.location.origin!=="null"?s.location.origin:s.location.href,g=typeof b=="string"?b:Ic(b);return g=g.replace(/ $/,"%20"),Ue(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let p={get action(){return l},get location(){return e(s,o)},listen(b){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(fv,h),c=b,()=>{s.removeEventListener(fv,h),c=null}},createHref(b){return t(s,b)},createURL:w,encodeLocation(b){let v=w(b);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:m,go(b){return o.go(b)}};return p}var pv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(pv||(pv={}));
vendor: 9,121 bytes, lines 315-324
315function hI(e,t,n){return n===void 0&&(n="/"),fI(e,t,n,!1)}function fI(e,t,n,r){let s=typeof t=="string"?ao(t):t,i=xp(s.pathname||"/",n);if(i==null)return null;let o=LS(e);mI(o);let l=null;for(let c=0;l==null&&c<o.length;++c){let u=CI(i);l=jI(o[c],u,r)}return l}function LS(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,o,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};c.relativePath.startsWith("/")&&(Ue(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Dr([r,c.relativePath]),d=n.concat(c);i.children&&i.children.length>0&&(Ue(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),LS(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:bI(u,i.index),routesMeta:d})};return e.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))s(i,o);else for(let c of DS(i.path))s(i,o,c)}),t}function DS(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=DS(r.join("/")),l=[];return l.push(...o.map(c=>c===""?i:[i,c].join("/"))),s&&l.push(...o),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function mI(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:SI(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const pI=/^:[\w-]+$/,gI=3,yI=2,vI=1,xI=10,wI=-2,gv=e=>e==="*";function bI(e,t){let n=e.split("/"),r=n.length;return n.some(gv)&&(r+=wI),t&&(r+=yI),n.filter(s=>!gv(s)).reduce((s,i)=>s+(pI.test(i)?gI:i===""?vI:xI),r)}function SI(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function jI(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",h=yv({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),f=c.route;if(!h&&u&&n&&!r[r.length-1].route.index&&(h=yv({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!h)return null;Object.assign(s,h.params),o.push({params:s,pathname:Dr([i,h.pathname]),pathnameBase:_I(Dr([i,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(i=Dr([i,h.pathnameBase]))}return o}function yv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=NI(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:r.reduce((u,d,h)=>{let{paramName:f,isOptional:m}=d;if(f==="*"){let p=l[h]||"";o=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}const w=l[h];return m&&!w?u[f]=void 0:u[f]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function NI(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),MS(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function CI(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return MS(!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 xp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function EI(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?ao(e):e;return{pathname:n?n.startsWith("/")?n:TI(n,t):t,search:AI(r),hash:PI(s)}}function TI(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function jd(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function kI(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function $S(e,t){let n=kI(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function FS(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=ao(e):(s=ba({},e),Ue(!s.pathname||!s.pathname.includes("?"),jd("?","pathname","search",s)),Ue(!s.pathname||!s.pathname.includes("#"),jd("#","pathname","hash",s)),Ue(!s.search||!s.search.includes("#"),jd("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,l;if(o==null)l=n;else{let h=t.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),h-=1;s.pathname=f.join("/")}l=h>=0?t[h]:"/"}let c=EI(s,l),u=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const Dr=e=>e.join("/").replace(/\/\/+/g,"/"),_I=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),AI=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,PI=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function RI(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const VS=["post","put","patch","delete"];new Set(VS);const II=["get",...VS];new Set(II);/**
316 * React Router v6.30.1
317 *
318 * Copyright (c) Remix Software Inc.
319 *
320 * This source code is licensed under the MIT license found in the
321 * LICENSE.md file in the root directory of this source tree.
322 *
323 * @license MIT
324 */function Sa(){return Sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sa.apply(this,arguments)}const wp=y.createContext(null),OI=y.createContext(null),Vs=y.createContext(null),ju=y.createContext(null),Us=y.createContext({outlet:null,matches:[],isDataRoute:!1}),US=y.createContext(null);function MI(e,t){let{relative:n}=t===void 0?{}:t;Ka()||Ue(!1);let{basename:r,navigator:s}=y.useContext(Vs),{hash:i,pathname:o,search:l}=zS(e,{relative:n}),c=o;return r!=="/"&&(c=o==="/"?r:Dr([r,o])),s.createHref({pathname:c,search:l,hash:i})}function Ka(){return y.useContext(ju)!=null}function Yr(){return Ka()||Ue(!1),y.useContext(ju).location}function BS(e){y.useContext(Vs).static||y.useLayoutEffect(e)}function LI(){let{isDataRoute:e}=y.useContext(Us);return e?YI():DI()}function DI(){Ka()||Ue(!1);let e=y.useContext(wp),{basename:t,future:n,navigator:r}=y.useContext(Vs),{matches:s}=y.useContext(Us),{pathname:i}=Yr(),o=JSON.stringify($S(s,n.v7_relativeSplatPath)),l=y.useRef(!1);return BS(()=>{l.current=!0}),y.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let h=FS(u,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Dr([t,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[t,r,o,i,e])}function zS(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(Vs),{matches:s}=y.useContext(Us),{pathname:i}=Yr(),o=JSON.stringify($S(s,r.v7_relativeSplatPath));return y.useMemo(()=>FS(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function $I(e,t){return FI(e,t)}function FI(e,t,n,r){Ka()||Ue(!1);let{navigator:s}=y.useContext(Vs),{matches:i}=y.useContext(Us),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let u=Yr(),d;if(t){var h;let b=typeof t=="string"?ao(t):t;c==="/"||(h=b.pathname)!=null&&h.startsWith(c)||Ue(!1),d=b}else d=u;let f=d.pathname||"/",m=f;if(c!=="/"){let b=c.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(b.length).join("/")}let w=hI(e,{pathname:m}),p=WI(w&&w.map(b=>Object.assign({},b,{params:Object.assign({},l,b.params),pathname:Dr([c,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:Dr([c,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return t&&p?y.createElement(ju.Provider,{value:{location:Sa({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Tr.Pop}},p):p}function VI(){let e=GI(),t=RI(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application 
324Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:s},n):null,null)}const UI=y.createElement(VI,null);class BI extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(Us.Provider,{value:this.props.routeContext},y.createElement(US.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function zI(e){let{routeContext:t,match:n,children:r}=e,s=y.useContext(wp);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Us.Provider,{value:t},r)}function WI(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=(s=n)==null?void 0:s.errors;if(l!=null){let d=o.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);d>=0||Ue(!1),o=o.slice(0,Math.min(o.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let h=o[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=d),h.route.id){let{loaderData:f,errors:m}=n,w=h.route.loader&&f[h.route.id]===void 0&&(!m||m[h.route.id]===void 0);if(h.route.lazy||w){c=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,h,f)=>{let m,w=!1,p=null,b=null;n&&(m=l&&h.route.id?l[h.route.id]:void 0,p=h.route.errorElement||UI,c&&(u<0&&f===0?(w=!0,b=null):u===f&&(w=!0,b=h.route.hydrateFallbackElement||null)));let v=t.concat(o.slice(0,f+1)),g=()=>{let x;return m?x=p:w?x=b:h.route.Component?x=y.createElement(h.route.Component,null):h.route.element?x=h.route.element:x=d,y.createElement(zI,{match:h,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:x})};return n&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?y.createElement(BI,{location:n.location,revalidation:n.revalidation,component:p,error:m,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var WS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(WS||{}),Oc=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}(Oc||{});function HI(e){let t=y.useContext(wp);return t||Ue(!1),t}function KI(e){let t=y.useContext(OI);return t||Ue(!1),t}function qI(e){let t=y.useContext(Us);return t||Ue(!1),t}function HS(e){let t=qI(),n=t.matches[t.matches.length-1];return n.route.id||Ue(!1),n.route.id}function GI(){var e;let t=y.useContext(US),n=KI(Oc.UseRouteError),r=HS(Oc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function YI(){let{router:e}=HI(WS.UseNavigateStable),t=HS(Oc.UseNavigateStable),n=y.useRef(!1);return BS(()=>{n.current=!0}),y.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Sa({fromRouteId:t},i)))},[e,t])}function QI(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function dr(e){Ue(!1)}function XI(e){let{basename:t="/",children:n=null,location:r,navigationType:s=Tr.Pop,navigator:i,static:o=!1,future:l}=e;Ka()&&Ue(!1);let c=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:c,navigator:i,static:o,future:Sa({v7_relativeSplatPath:!1},l)}),[c,l,i,o]);typeof r=="string"&&(r=ao(r));let{pathname:d="/",search:h="",hash:f="",state:m=null,key:w="default"}=r,p=y.useMemo(()=>{let b=xp(d,c);return b==null?null:{location:{pathname:b,search:h,hash:f,state:m,ke
324y:w},navigationType:s}},[c,d,h,f,m,w,s]);return p==null?null:y.createElement(Vs.Provider,{value:u},y.createElement(ju.Provider,{children:n,value:p}))}function JI(e){let{children:t,location:n}=e;return $I(df(t),n)}new Promise(()=>{});function df(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,s)=>{if(!y.isValidElement(r))return;let i=[...t,s];if(r.type===y.Fragment){n.push.apply(n,df(r.props.children,i));return}r.type!==dr&&Ue(!1),!r.props.index||!r.props.children||Ue(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=df(r.props.children,i)),n.push(o)}),n}/**
325 * React Router DOM v6.30.1
326 *
327 * Copyright (c) Remix Software Inc.
328 *
329 * This source code is licensed under the MIT license found in the
330 * LICENSE.md file in the root directory of this source tree.
331 *
332 * @license MIT
333 */function hf(){return hf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hf.apply(this,arguments)}function ZI(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function eO(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function tO(e,t){return e.button===0&&(!t||t==="_self")&&!eO(e)}const nO=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],rO="6";try{window.__reactRouterVersion=rO}catch{}const sO="startTransition",vv=im[sO];function iO(e){let{basename:t,children:n,future:r,window:s}=e,i=y.useRef();i.current==null&&(i.current=cI({window:s,v5Compat:!0}));let o=i.current,[l,c]=y.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},d=y.useCallback(h=>{u&&vv?vv(()=>c(h)):c(h)},[c,u]);return y.useLayoutEffect(()=>o.listen(d),[o,d]),y.useEffect(()=>QI(r),[r]),y.createElement(XI,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}const oO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",aO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Wt=y.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:l,target:c,to:u,preventScrollReset:d,viewTransition:h}=t,f=ZI(t,nO),{basename:m}=y.useContext(Vs),w,p=!1;if(typeof u=="string"&&aO.test(u)&&(w=u,oO))try{let x=new URL(window.location.href),S=u.startsWith("//")?new URL(x.protocol+u):new URL(u),j=xp(S.pathname,m);S.origin===x.origin&&j!=null?u=j+S.search+S.hash:p=!0}catch{}let b=MI(u,{relative:s}),v=lO(u,{replace:o,state:l,target:c,preventScrollReset:d,relative:s,viewTransition:h});function g(x){r&&r(x),x.defaultPrevented||v(x)}return y.createElement("a",hf({},f,{href:w||b,onClick:p||i?r:g,ref:n,target:c}))});var xv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(xv||(xv={}));var wv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wv||(wv={}));function lO(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:l}=t===void 0?{}:t,c=LI(),u=Yr(),d=zS(e,{relative:o});return y.useCallback(h=>{if(tO(h,n)){h.preventDefault();let f=r!==void 0?r:Ic(u)===Ic(d);c(e,{replace:f,state:s,preventScrollReset:i,relative:o,viewTransition:l})}},[u,c,d,r,s,n,e,i,o,l])}const cO=()=>{const{pathname:e,hash:t}=Yr();return y.useEffect(()=>{t?setTimeout(()=>{const n=document.getElementById(t.replace("#",""));n&&n.scrollIntoView({behavior:"smooth"})},100):window.scrollTo(0,0)},[e,t]),null},bp=y.createContext({});function qa(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const Sp=typeof window<"u",jp=Sp?y.useLayoutEffect:y.useEffect,Nu=y.createContext(null);function Np(e,t){e.indexOf(t)===-1&&e.push(t)}function Cu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Jn=(e,t,n)=>n>t?t:n<e?e:n;let Mc=()=>{};const Zn={},KS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function qS(e){return typeof e=="object"&&e!==null}const GS=e=>/^0[^.\s]+$/u.test(e);function Cp(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ht=e=>e,uO=(e,t)=>n=>t(e(n)),Ga=(...e)=>e.reduce(uO),Ji=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Ep{constructor(){this.subscriptions=[]}add(t){return Np(this.subscriptions,t),()=>Cu(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const gn=e=>e*1e3,Bt=e=>e/1e3;function YS(e,t){return t?e*(1e3/t):0}
vendor: 4,100 bytes, line 333
333const dO=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e},QS=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,hO=1e-7,fO=12;function mO(e,t,n,r,s){let i,o,l=0;do o=t+(n-t)/2,i=QS(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>hO&&++l<fO);return o}function Ya(e,t,n,r){if(e===t&&n===r)return Ht;const s=i=>mO(i,0,1,e,n);return i=>i===0||i===1?i:QS(s(i),t,r)}const XS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,JS=e=>t=>1-e(1-t),ZS=Ya(.33,1.53,.69,.99),Tp=JS(ZS),ej=XS(Tp),tj=e=>(e*=2)<1?.5*Tp(e):.5*(2-Math.pow(2,-10*(e-1))),kp=e=>1-Math.sin(Math.acos(e)),nj=JS(kp),rj=XS(kp),pO=Ya(.42,0,1,1),gO=Ya(0,0,.58,1),sj=Ya(.42,0,.58,1),ij=e=>Array.isArray(e)&&typeof e[0]!="number";function oj(e,t){return ij(e)?e[dO(0,e.length,t)]:e}const aj=e=>Array.isArray(e)&&typeof e[0]=="number",bv={linear:Ht,easeIn:pO,easeInOut:sj,easeOut:gO,circIn:kp,circInOut:rj,circOut:nj,backIn:Tp,backInOut:ej,backOut:ZS,anticipate:tj},yO=e=>typeof e=="string",Sv=e=>{if(aj(e)){Mc(e.length===4);const[t,n,r,s]=e;return Ya(t,n,r,s)}else if(yO(e))return Mc(bv[e]!==void 0),bv[e];return e},jl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],jv={value:null,addProjectionMetrics:null};function vO(e,t){let n=new Set,r=new Set,s=!1,i=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},c=0;function u(h){o.has(h)&&(d.schedule(h),e()),c++,h(l)}const d={schedule:(h,f=!1,m=!1)=>{const p=m&&s?n:r;return f&&o.add(h),p.has(h)||p.add(h),h},cancel:h=>{r.delete(h),o.delete(h)},process:h=>{if(l=h,s){i=!0;return}s=!0,[n,r]=[r,n],n.forEach(u),t&&jv.value&&jv.value.frameloop[t].push(c),c=0,n.clear(),s=!1,i&&(i=!1,d.process(h))}};return d}const xO=40;function lj(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=jl.reduce((x,S)=>(x[S]=vO(i,t?S:void 0),x),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:h,preRender:f,render:m,postRender:w}=o,p=()=>{const x=Zn.useManualTiming?s.timestamp:performance.now();n=!1,Zn.useManualTiming||(s.delta=r?1e3/60:Math.max(Math.min(x-s.timestamp,xO),1)),s.timestamp=x,s.isProcessing=!0,l.process(s),c.process(s),u.process(s),d.process(s),h.process(s),f.process(s),m.process(s),w.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(p))},b=()=>{n=!0,r=!0,s.isProcessing||e(p)};return{schedule:jl.reduce((x,S)=>{const j=o[S];return x[S]=(N,C=!1,E=!1)=>(n||b(),j.schedule(N,C,E)),x},{}),cancel:x=>{for(let S=0;S<jl.length;S++)o[jl[S]].cancel(x)},state:s,steps:o}}const{schedule:Ne,cancel:er,state:Ze,steps:Nd}=lj(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ht,!0);let Jl;function wO(){Jl=void 0}const wt={now:()=>(Jl===void 0&&wt.set(Ze.isProcessing||Zn.useManualTiming?Ze.timestamp:performance.now()),Jl),set:e=>{Jl=e,queueMicrotask(wO)}},cj=e=>t=>typeof t=="string"&&t.startsWith(e),uj=cj("--"),bO=cj("var(--"),_p=e=>bO(e)?SO.test(e.split("/*")[0].trim()):!1,SO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,lo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ja={...lo,transform:e=>Jn(0,1,e)},Nl={...lo,default:1},Ko=e=>Math.round(e*1e5)/1e5,Ap=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function jO(e){return e==null}const NO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Pp=(e,t)=>n=>!!(typeof n=="string"&&NO.test(n)&&n.startsWith(e)||t&&!jO(n)&&Object.prototype.hasOwnProperty.call(n,t)),dj=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,l]=r.match(Ap);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},CO=e=>Jn(0,255,e),Cd={...lo,transform:e=>Math.round(CO(e))},ps={test:Pp("rgb","red"),parse:dj("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Cd.transform(e)+", "+Cd.transform(t)+", "+Cd.transform(n)+", "+Ko(ja.transform(r))+")"};function EO(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alph
vendor: 1,975 bytes, line 333
333a:s?parseInt(s,16)/255:1}}const ff={test:Pp("#"),parse:EO,transform:ps.transform},Qa=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),hr=Qa("deg"),Rn=Qa("%"),Q=Qa("px"),TO=Qa("vh"),kO=Qa("vw"),Nv={...Rn,parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(e*100)},yi={test:Pp("hsl","hue"),parse:dj("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rn.transform(Ko(t))+", "+Rn.transform(Ko(n))+", "+Ko(ja.transform(r))+")"},Fe={test:e=>ps.test(e)||ff.test(e)||yi.test(e),parse:e=>ps.test(e)?ps.parse(e):yi.test(e)?yi.parse(e):ff.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ps.transform(e):yi.transform(e),getAnimatableNone:e=>{const t=Fe.parse(e);return t.alpha=0,Fe.transform(t)}},_O=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function AO(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ap))==null?void 0:t.length)||0)+(((n=e.match(_O))==null?void 0:n.length)||0)>0}const hj="number",fj="color",PO="var",RO="var(",Cv="${}",IO=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Na(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const l=t.replace(IO,c=>(Fe.test(c)?(r.color.push(i),s.push(fj),n.push(Fe.parse(c))):c.startsWith(RO)?(r.var.push(i),s.push(PO),n.push(c)):(r.number.push(i),s.push(hj),n.push(parseFloat(c))),++i,Cv)).split(Cv);return{values:n,split:l,indexes:r,types:s}}function mj(e){return Na(e).values}function pj(e){const{split:t,types:n}=Na(e),r=t.length;return s=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],s[o]!==void 0){const l=n[o];l===hj?i+=Ko(s[o]):l===fj?i+=Fe.transform(s[o]):i+=s[o]}return i}}const OO=e=>
vendor: 20,969 bytes, line 333
333typeof e=="number"?0:Fe.test(e)?Fe.getAnimatableNone(e):e;function MO(e){const t=mj(e);return pj(e)(t.map(OO))}const zr={test:AO,parse:mj,createTransformer:pj,getAnimatableNone:MO};function Ed(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function LO({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;s=Ed(c,l,e+1/3),i=Ed(c,l,e),o=Ed(c,l,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Lc(e,t){return n=>n>0?t:e}const Te=(e,t,n)=>e+(t-e)*n,Td=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},DO=[ff,ps,yi],$O=e=>DO.find(t=>t.test(e));function Ev(e){const t=$O(e);if(!t)return!1;let n=t.parse(e);return t===yi&&(n=LO(n)),n}const Tv=(e,t)=>{const n=Ev(e),r=Ev(t);if(!n||!r)return Lc(e,t);const s={...n};return i=>(s.red=Td(n.red,r.red,i),s.green=Td(n.green,r.green,i),s.blue=Td(n.blue,r.blue,i),s.alpha=Te(n.alpha,r.alpha,i),ps.transform(s))},mf=new Set(["none","hidden"]);function FO(e,t){return mf.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function VO(e,t){return n=>Te(e,t,n)}function Rp(e){return typeof e=="number"?VO:typeof e=="string"?_p(e)?Lc:Fe.test(e)?Tv:zO:Array.isArray(e)?gj:typeof e=="object"?Fe.test(e)?Tv:UO:Lc}function gj(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Rp(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function UO(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Rp(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function BO(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],o=e.indexes[i][r[i]],l=e.values[o]??0;n[s]=l,r[i]++}return n}const zO=(e,t)=>{const n=zr.createTransformer(t),r=Na(e),s=Na(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?mf.has(e)&&!s.values.length||mf.has(t)&&!r.values.length?FO(e,t):Ga(gj(BO(r,s),s.values),n):Lc(e,t)};function yj(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Te(e,t,n):Rp(e)(e,t)}const WO=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ne.update(t,n),stop:()=>er(t),now:()=>Ze.isProcessing?Ze.timestamp:wt.now()}},vj=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Dc=2e4;function Ip(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Dc;)t+=n,r=e.next(t);return t>=Dc?1/0:t}function xj(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(Ip(r),Dc);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:Bt(s)}}const HO=5;function wj(e,t,n){const r=Math.max(t-HO,0);return YS(n-e(r),t-r)}const Oe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},kd=.001;function KO({duration:e=Oe.duration,bounce:t=Oe.bounce,velocity:n=Oe.velocity,mass:r=Oe.mass}){let s,i,o=1-t;o=Jn(Oe.minDamping,Oe.maxDamping,o),e=Jn(Oe.minDuration,Oe.maxDuration,Bt(e)),o<1?(s=u=>{const d=u*o,h=d*e,f=d-n,m=pf(u,o),w=Math.exp(-h);return kd-f/m*w},i=u=>{const h=u*o*e,f=h*n+n,m=Math.pow(o,2)*Math.pow(u,2)*e,w=Math.exp(-h),p=pf(Math.pow(u,2),o);return(-s(u)+kd>0?-1:1)*((f-m)*w)/p}):(s=u=>{const d=Math.exp(-u*e),h=(u-n)*e+1;return-kd+d*h},i=u=>{const d=Math.exp(-u*e),h=(n-u)*(e*e);return d*h});const l=5/e,c=GO(s,i,l);if(e=gn(e),isNaN(c))return{stiffness:Oe.stiffness,damping:Oe.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const qO=12;function GO(e,t,n){let r=n;for(let s=1;s<qO;s++)r=r-e(r)/t(r);return r}function pf(e,t){return e*Math.sqrt(1-t*t)}const YO=["duration","bounce"],QO=["stiffness","damping","mass"];function kv(e,t){return t.some(n=>e[n]!==void 0)}function XO(e){let t={velocity:Oe.velocity,stiffness:Oe.stiffness,damping:Oe.damping,mass:Oe.mass,isResolvedFromDuration:!1,...e};if(!kv(e,QO)&&kv(e,YO))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Jn(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:Oe.mass,stiffness:s,damping:i}}else{const n=KO(e);t={...t,...n,mass:Oe.mass},t.isResolvedFromDuration=!0}return t}function Ca(e=Oe.visualDuration,t=Oe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:u,mass:d,duration:h,velocity:f,isResolvedFromDuration:m}=XO({...n,velocity:-Bt(n.velocity||0)}),w=f||0,p=u/(2*Math.sqrt(c*d)),b=o-i,v=Bt(Math.sqrt(c/d)),g=Math.abs(b)<5;r||(r=g?Oe.restSpeed.granular:Oe.restSpeed.default),s||(s=g?Oe.restDelta.granular:Oe.restDelta.default);let x;if(p<1){const j=pf(v,p);x=N=>{const C=Math.exp(-p*v*N);return o-C*((w+p*v*b)/j*Math.sin(j*N)+b*Math.cos(j*N))}}else if(p===1)x=j=>o-Math.exp(-v*j)*(b+(w+v*b)*j);else{const j=v*Math.sqrt(p*p-1);x=N=>{const C=Math.exp(-p*v*N),E=Math.min(j*N,300);return o-C*((w+p*v*b)*Math.sinh(E)+j*b*Math.cosh(E))/j}}const S={calculatedDuration:m&&h||null,next:j=>{const N=x(j);if(m)l.done=j>=h;else{let C=j===0?w:0;p<1&&(C=j===0?gn(w):wj(x,j,N));const E=Math.abs(C)<=r,T=Math.abs(o-N)<=s;l.done=E&&T}return l.value=l.done?o:N,l},toString:()=>{const j=Math.min(Ip(S),Dc),N=vj(C=>S.next(j*C).value,j,30);return j+"ms "+N},toTransition:()=>{}};return S}Ca.applyToOptions=e=>{const t=xj(e,100,Ca);return e.ease=t.ease,e.duration=gn(t.duration),e.type="keyframes",e};function gf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:l,max:c,restDelta:u=.5,restSpeed:d}){const h=e[0],f={done:!1,value:h},m=E=>l!==void 0&&E<l||c!==void 0&&E>c,w=E=>l===void 0?c:c===void 0||Math.abs(l-E)<Math.abs(c-E)?l:c;let p=n*t;const b=h+p,v=o===void 0?b:o(b);v!==b&&(p=v-h);const g=E=>-p*Math.exp(-E/r),x=E=>v+g(E),S=E=>{const T=g(E),A=x(E);f.done=Math.abs(T)<=u,f.value=f.done?v:A};let j,N;const C=E=>{m(f.value)&&(j=E,N=Ca({keyframes:[f.value,w(f.value)],velocity:wj(x,E,f.value),damping:s,stiffness:i,restDelta:u,restSpeed:d}))};return C(0),{calculatedDuration:null,next:E=>{let T=!1;return!N&&j===void 0&&(T=!0,S(E),C(E)),j!==void 0&&E>=j?N.next(E-j):(!T&&S(E),f)}}}function JO(e,t,n){const r=[],s=n||Zn.mix||yj,i=e.length-1;for(let o=0;o<i;o++){let l=s(e[o],e[o+1]);if(t){const c=Array.isArray(t)?t[o]||Ht:t;l=Ga(c,l)}r.push(l)}return r}function bj(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Mc(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=JO(t,r,s),c=l.length,u=d=>{if(o&&d<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const f=Ji(e[h],e[h+1],d);return l[h](f)};return n?d=>u(Jn(e[0],e[i-1],d)):u}function Sj(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Ji(0,t,r);e.push(Te(n,1,s))}}function jj(e){const t=[0];return Sj(t,e.length-1),t}function ZO(e,t){return e.map(n=>n*t)}function eM(e,t){return e.map(()=>t||sj).splice(0,e.length-1)}function qo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=ij(r)?r.map(Sv):Sv(r),i={done:!1,value:t[0]},o=ZO(n&&n.length===t.length?n:jj(t),e),l=bj(o,t,{ease:Array.isArray(s)?s:eM(t,s)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const tM=e=>e!==null;function Op(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(tM),l=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||r===void 0?i[l]:r}const nM={decay:gf,inertia:gf,tween:qo,keyframes:qo,spring:Ca};function Nj(e){typeof e.type=="string"&&(e.type=nM[e.type])}class Mp{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const rM=e=>e/100;class Lp extends Mp{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==wt.now()&&this.tick(wt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Nj(t);const{type:n=qo,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:l}=t;const c=n||qo;c!==qo&&typeof l[0]!="number"&&(this.mixKeyframes=Ga(rM,yj(l[0],l[1])),l=[0,100]);const u=c({...t,keyframes:l});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=Ip(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:d,repeat:h,repeatType:f,repeatDelay:m,type:w,onUpdate:p,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let x=this.currentTime,S=r;if(h){const E=Math.min(this.currentTime,s)/l;let T=Math.floor(E),A=E%1;!A&&E>=1&&(A=1),A===1&&T--,T=Math.min(T,h+1),!!(T%2)&&(f==="reverse"?(A=1-A,m&&(A-=m/l)):f==="mirror"&&(S=o)),x=Jn(0,1,A)*l}const j=g?{done:!1,value:d[0]}:S.next(x);i&&(j.value=i(j.value));let{done:N}=j;!g&&c!==null&&(N=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return C&&w!==gf&&(j.value=Op(d,this.options,b,this.speed)),p&&p(j.value),C&&this.finish(),j}then(t,n){return this.finished.then(t,n)}get duration(){return Bt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Bt(t)}get time(){return Bt(this.currentTime)}set time(t){var n;t=gn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(wt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Bt(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=WO,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(wt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function sM(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const gs=e=>e*180/Math.PI,yf=e=>{const t=gs(Math.atan2(e[1],e[0]));return vf(t)},iM={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:yf,rotateZ:yf,skewX:e=>gs(Math.atan(e[1])),skewY:e=>gs(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},vf=e=>(e=e%360,e<0&&(e+=360),e),_v=yf,Av=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Pv=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),oM={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Av,scaleY:Pv,scale:e=>(Av(e)+Pv(e))/2,rotateX:e=>vf(gs(Math.atan2(e[6],e[5]))),rotateY:e=>vf(gs(Math.atan2(-e[2],e[0]))),rotateZ:_v,rotate:_v,skewX:e=>gs(Math.atan(e[4])),skewY:e=>gs(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function xf(e){return e.includes("scale")?1:0}function wf(e,t){if(!e||e==="none")return xf(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=oM,s=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=iM,s=l}if(!s)return xf(t);const i=r[t],o=s[1].split(",").map(lM);return typeof i=="function"?i(o):o[i]}const aM=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return wf(n,t)};function lM(e){return parseFloat(e.trim())}const co=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],uo=new Set(co),Rv=e=>e===lo||e===Q,cM=new Set(["x","y","z"]),uM=co.filter(e=>!cM.has(e));function dM(e){const t=[];return uM.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Es={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>wf(t,"x"),y:(e,{transform:t})=>wf(t,"y")};Es.translateX=Es.x;Es.translateY=Es.y;const Ts=new Set;let bf=!1,Sf=!1,jf=!1;function Cj(){if(Sf){const e=Array.from(Ts).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=dM(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var l;(l=r.getValue(i))==null||l.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Sf=!1,bf=!1,Ts.forEach(e=>e.complete(jf)),Ts.clear()}function Ej(){Ts.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Sf=!0)})}function hM(){jf=!0,Ej(),Cj(),jf=!1}class Dp{constructor(t,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Ts.add(this),bf||(bf=!0,Ne.read(Ej),Ne.resolveKeyframes(Cj))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const l=r.readValue(n,o);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=o),s&&i===void 0&&s.set(t[0])}sM(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ts.delete(this)}cancel(){this.state==="scheduled"&&(Ts.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const fM=e=>e.startsWith("--");function mM(e,t,n){fM(t)?e.style.setProperty(t,n):e.style[t]=n}const pM=Cp(()=>window.ScrollTimeline!==void 0),gM={};function yM(e,t){const n=Cp(e);return()=>gM[t]??n()}const Tj=yM(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Io=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Iv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Io([0,.65,.55,1]),circOut:Io([.55,0,1,.45]),backIn:Io([.31,.01,.66,-.59]),backOut:Io([.33,1.53,.69,.99])};function kj(e,t){if(e)return typeof e=="function"?Tj()?vj(e,t):"ease-out":aj(e)?Io(e):Array.isArray(e)?e.map(n=>kj(n,t)||Iv.easeOut):Iv[e]}function vM(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:l="easeOut",times:c}={},u=void 0){const d={[t]:n};c&&(d.offset=c);const h=kj(l,s);Array.isArray(h)&&(d.easing=h);const f={delay:r,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(d,f)}function $p(e){return typeof e=="function"&&"applyToOptions"in e}function xM({type:e,...t}){return $p(e)&&Tj()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class wM extends Mp{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,Mc(typeof t.type!="string");const u=xM(t);this.animation=vM(n,r,s,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=Op(s,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):mM(n,r,d),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Bt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Bt(t)}get time(){return Bt(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=gn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&pM()?(this.animation.timeline=t,Ht):n(this)}}const _j={anticipate:tj,backInOut:ej,circInOut:rj};function bM(e){return e in _j}function SM(e){typeof e.ease=="string"&&bM(e.ease)&&(e.ease=_j[e.ease])}const Ov=10;class jM extends wM{constructor(t){SM(t),Nj(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new Lp({...o,autoplay:!1}),c=gn(this.finishedTime??this.time);n.setWithVelocity(l.sample(c-Ov).value,l.sample(c).value,Ov),l.stop()}}const Mv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(zr.test(e)||e==="0")&&!e.startsWith("url("));function NM(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function CM(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=Mv(s,t),l=Mv(i,t);return!o||!l?!1:NM(e)||(n==="spring"||$p(n))&&r}function Nf(e){e.duration=0,e.type="keyframes"}const EM=new Set(["opacity","clipPath","filter","transform"]),TM=Cp(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function kM(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:o}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return TM()&&n&&EM.has(n)&&(n!=="transform"||!u)&&!c&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const _M=40;class AM extends Mp{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:
333o="loop",keyframes:l,name:c,motionValue:u,element:d,...h}){var w;super(),this.stop=()=>{var p,b;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=wt.now();const f={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:c,motionValue:u,element:d,...h},m=(d==null?void 0:d.KeyframeResolver)||Dp;this.keyframeResolver=new m(l,(p,b,v)=>this.onKeyframesResolved(p,b,f,!v),c,u,d),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,n,r,s){this.keyframeResolver=void 0;const{name:i,type:o,velocity:l,delay:c,isHandoff:u,onUpdate:d}=r;this.resolvedAt=wt.now(),CM(t,i,o,l)||((Zn.instantAnimations||!c)&&(d==null||d(Op(t,r,n))),t[0]=t[t.length-1],Nf(r),r.repeat=0);const f={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>_M?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!u&&kM(f)?new jM({...f,element:f.motionValue.owner.current}):new Lp(f);m.finished.then(()=>this.notifyFinished()).catch(Ht),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),hM()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}class PM{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t){const n=this.animations.map(r=>r.attachTimeline(t));return()=>{n.forEach((r,s)=>{r&&r(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return Lv(this.animations,"duration")}get iterationDuration(){return Lv(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Lv(e,t){let n=0;for(let r=0;r<e.length;r++){const s=e[r][t];s!==null&&s>n&&(n=s)}return n}class RM extends PM{then(t,n){return this.finished.finally(t).then(()=>{})}}const IM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function OM(e){const t=IM.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function Aj(e,t,n=1){const[r,s]=OM(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return KS(o)?parseFloat(o):o}return _p(s)?Aj(s,t,n+1):s}function Fp(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Pj=new Set(["width","height","top","left","right","bottom",...co]),MM={test:e=>e==="auto",parse:e=>e},Rj=e=>t=>t.test(e),Ij=[lo,Q,Rn,hr,kO,TO,MM],Dv=e=>Ij.find(Rj(e));function LM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||GS(e):!0}const DM=new Set(["brightness","contrast","saturate","opacity"]);function $M(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ap)||[];if(!r)return e;const s=n.replace(r,"");let i=DM.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const FM=/\b([a-z-]*)\(.*?\)/gu,Cf={...zr,getAnimatableNone:e=>{const t=e.match(FM);return t?t.map($M).join(" "):e}},$v={...lo,transform:Math.round},VM={rotate:hr,rotateX:hr,rotateY:hr,rotateZ:hr,scale:Nl,scaleX:Nl,scaleY:Nl,scaleZ:Nl,skew:hr,skewX:hr,skewY:hr,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:ja,originX:Nv,originY:Nv,originZ:Q},Vp={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,radius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,top:Q,right:Q,bottom:Q,left:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,backgroundPositionX:Q,backgroundPositionY:Q,...VM,zIndex:$v,fillOpacity:ja,strokeOpacity:ja,numOctaves:$v},UM={...Vp,color:Fe,backgroundColor:Fe,outlineColor:Fe,fill:Fe,stroke:Fe,borderColor:Fe,borderTopColor:Fe,borderRightColor:Fe,borderBottomColor:Fe,borderLeftColor:Fe,filter:Cf,WebkitFilter:Cf},Oj=e=>UM[e];function Mj(e,t){let n=Oj(e);return n!==Cf&&(n=zr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
vendor: 1,652 bytes, line 333
333const BM=new Set(["auto","none","0"]);function zM(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!BM.has(i)&&Na(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=Mj(n,s)}class WM extends Dp{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),_p(u))){const d=Aj(u,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Pj.has(r)||t.length!==2)return;const[s,i]=t,o=Dv(s),l=Dv(i);if(o!==l)if(Rv(o)&&Rv(l))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else Es[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||LM(t[s]))&&r.push(s);r.length&&zM(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Es[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var l;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=Es[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEac
vendor: 5,501 bytes, line 333
333h(([c,u])=>{t.getValue(c).set(u)}),this.resolveNoneKeyframes()}}function Lj(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const s=(n==null?void 0:n[e])??r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}const Dj=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function $j(e){return qS(e)&&"offsetHeight"in e}const Fv=30,HM=e=>!isNaN(parseFloat(e)),Go={current:void 0};class KM{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=wt.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=wt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=HM(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ep);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ne.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Go.current&&Go.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=wt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Fv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Fv);return YS(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Os(e,t){return new KM(e,t)}const{schedule:Up,cancel:R6}=lj(queueMicrotask,!1),nn={x:!1,y:!1};function Fj(){return nn.x||nn.y}function qM(e){return e==="x"||e==="y"?nn[e]?null:(nn[e]=!0,()=>{nn[e]=!1}):nn.x||nn.y?null:(nn.x=nn.y=!0,()=>{nn.x=nn.y=!1})}function Vj(e,t){const n=Lj(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function Vv(e){return!(e.pointerType==="touch"||Fj())}function GM(e,t,n={}){const[r,s,i]=Vj(e,n),o=l=>{if(!Vv(l))return;const{target:c}=l,u=t(c,l);if(typeof u!="function"||!c)return;const d=h=>{Vv(h)&&(u(h),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,s)};return r.forEach(l=>{l.addEventListener("pointerenter",o,s)}),i}const Uj=(e,t)=>t?e===t?!0:Uj(e,t.parentElement):!1,Bp=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,YM=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function QM(e){return YM.has(e.tagName)||e.tabIndex!==-1}const Zl=new WeakSet;function Uv(e){return t=>{t.key==="Enter"&&e(t)}}function _d(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const XM=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Uv(()=>{if(Zl.has(n))return;_d(n,"down");const s=Uv(()=>{_d(n,"up")}),i=()=>_d(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Bv(e){return Bp(e)&&!Fj()}function JM(e,t,n={}){const[r,s,i]=Vj(e,n),o=l=>{const c=l.currentTarget;if(!Bv(l))return;Zl.add(c);const u=t(c,l),d=(m,w)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),Zl.has(c)&&Zl.delete(c),Bv(m)&&typeof u=="function"&&u(m,{success:w})},h=m=>{d(m,c===window||c===document||n.useGlobalTarget||Uj(c,m.target))},f=m=>{d(m,!1)};window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",f,s)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",o,s),$j(l)&&(l.addEventListener("focus",u=>XM(u,s)),!QM(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function zp(e){return qS(e)&&"ownerSVGElement"in e}function Bj(e){return zp(e)&&e.tagName==="svg"}function ZM(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],s=e[1+n],i=e[2+n],o=e[3+n],l=bj(s,i,o);return t?l(r):l}const Ge=e=>!!(e&&e.getVelocity),eL=[...Ij,Fe,zr],tL=e=>eL.find(Rj(e)),Eu=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function zv(e,t){if(typeof e=="function")return e(t);
vendor: 5,946 bytes, lines 333-341
333e!=null&&(e.current=t)}function nL(...e){return t=>{let n=!1;const r=e.map(s=>{const i=zv(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():zv(e[s],null)}}}}function rL(...e){return y.useCallback(nL(...e),e)}class sL extends y.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=$j(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=s-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function iL({children:e,isPresent:t,anchorX:n,root:r}){const s=y.useId(),i=y.useRef(null),o=y.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=y.useContext(Eu),c=rL(i,e==null?void 0:e.ref);return y.useInsertionEffect(()=>{const{width:u,height:d,top:h,left:f,right:m}=o.current;if(t||!i.current||!u||!d)return;const w=n==="left"?`left: ${f}`:`right: ${m}`;i.current.dataset.motionPopId=s;const p=document.createElement("style");l&&(p.nonce=l);const b=r??document.head;return b.appendChild(p),p.sheet&&p.sheet.insertRule(`
334          [data-motion-pop-id="${s}"] {
335            position: absolute !important;
336            width: ${u}px !important;
337            height: ${d}px !important;
338            ${w}px !important;
339            top: ${h}px !important;
340          }
341        `),()=>{b.contains(p)&&b.removeChild(p)}},[t]),a.jsx(sL,{isPresent:t,childRef:i,sizeRef:o,children:y.cloneElement(e,{ref:c})})}const oL=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:l,root:c})=>{const u=qa(aL),d=y.useId();let h=!0,f=y.useMemo(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:s,onExitComplete:m=>{u.set(m,!0);for(const w of u.values())if(!w)return;r&&r()},register:m=>(u.set(m,!1),()=>u.delete(m))}),[n,u,r]);return i&&h&&(f={...f}),y.useMemo(()=>{u.forEach((m,w)=>u.set(w,!1))},[n]),y.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=a.jsx(iL,{isPresent:n,anchorX:l,root:c,children:e})),a.jsx(Nu.Provider,{value:f,children:e})};function aL(){return new Map}function zj(e=!0){const t=y.useContext(Nu);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=y.useId();y.useEffect(()=>{if(e)return s(i)},[e]);const o=y.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const Cl=e=>e.key||"";function Wv(e){const t=[];return y.Children.forEach(e,n=>{y.isValidElement(n)&&t.push(n)}),t}const Wj=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:l="left",root:c})=>{const[u,d]=zj(o),h=y.useMemo(()=>Wv(e),[e]),f=o&&!u?[]:h.map(Cl),m=y.useRef(!0),w=y.useRef(h),p=qa(()=>new Map),[b,v]=y.useState(h),[g,x]=y.useState(h);jp(()=>{m.current=!1,w.current=h;for(let N=0;N<g.length;N++){const C=Cl(g[N]);f.includes(C)?p.delete(C):p.get(C)!==!0&&p.set(C,!1)}},[g,f.length,f.join("-")]);const S=[];if(h!==b){let N=[...h];for(let C=0;C<g.length;C++){const E=g[C],T=Cl(E);f.includes(T)||(N.splice(C,0,E),S.push(E))}return i==="wait"&&S.length&&(N=S),x(Wv(N)),v(h),null}const{forceRender:j}=y.useContext(bp);return a.jsx(a.Fragment,{children:g.map(N=>{const C=Cl(N),E=o&&!u?!1:h===g||f.includes(C),T=()=>{if(p.has(C))p.set(C,!0);else return;let A=!0;p.forEach(M=>{M||(A=!1)}),A&&(j==null||j(),x(w.current),o&&(d==null||d()),r&&r())};return a.jsx(oL,{isPresent:E,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,root:c,onExitComplete:E?void 0:T,anchorX:l,children:N},C)})})},Hj=y.createContext({strict:!1}),Hv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Zi={};for(const e in Hv)Zi[e]={isEnabled:t=>Hv[e].some(n=>!!t[n])};function lL(e){for(const t in e)Zi[t]={...Zi[t],...e[t]}}const cL=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function $c(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||cL.has(e)}let Kj=e=>!$c(e);function uL(e){typeof e=="function"&&(Kj=t=>t.startsWith("on")?!$c(t):e(t))}try{uL(require("@emotion/is-prop-valid").default)}catch{}function dL(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(Kj(s)||n===!0&&$c(s)||!t&&!$c(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const Tu=y.createContext({});function ku(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ea(e){return typeof e=="string"||Array.isArray(e)}const Wp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Hp=["initial",...Wp];function _u(e){return ku(e.animate)||Hp.some(t=>Ea(e[t]))}function qj(e){return!!(_u(e)||e.variants)}function hL(e,t){if(_u(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ea(n)?n:void 0,animate:Ea(r)?r:void 0}}return e.inherit!==!1?t:{}}function fL(e){const{initial:t,animate:n}=hL(e,y.useContext(Tu));return y.useMemo(()=>({initial:t,animate:n}),[Kv(t),Kv(n)])}function Kv(e){return Array.isArray(e)?e.join(" "):e}function qv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ko={correct:(e,t)=>
vendor: 13,012 bytes, line 341
341{if(!t.target)return e;if(typeof e=="string")if(Q.test(e))e=parseFloat(e);else return e;const n=qv(e,t.target.x),r=qv(e,t.target.y);return`${n}% ${r}%`}},mL={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=zr.parse(e);if(s.length>5)return r;const i=zr.createTransformer(e),o=typeof s[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;s[0+o]/=l,s[1+o]/=c;const u=Te(l,c,.5);return typeof s[2+o]=="number"&&(s[2+o]/=u),typeof s[3+o]=="number"&&(s[3+o]/=u),i(s)}},Ef={borderRadius:{...ko,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ko,borderTopRightRadius:ko,borderBottomLeftRadius:ko,borderBottomRightRadius:ko,boxShadow:mL};function Gj(e,{layout:t,layoutId:n}){return uo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ef[e]||e==="opacity")}const pL={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gL=co.length;function yL(e,t,n){let r="",s=!0;for(let i=0;i<gL;i++){const o=co[i],l=e[o];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(o.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const u=Dj(l,Vp[o]);if(!c){s=!1;const d=pL[o]||o;r+=`${d}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Kp(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,l=!1;for(const c in t){const u=t[c];if(uo.has(c)){o=!0;continue}else if(uj(c)){s[c]=u;continue}else{const d=Dj(u,Vp[c]);c.startsWith("origin")?(l=!0,i[c]=d):r[c]=d}}if(t.transform||(o||n?r.transform=yL(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=i;r.transformOrigin=`${c} ${u} ${d}`}}const qp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Yj(e,t,n){for(const r in t)!Ge(t[r])&&!Gj(r,n)&&(e[r]=t[r])}function vL({transformTemplate:e},t){return y.useMemo(()=>{const n=qp();return Kp(n,t,e),Object.assign({},n.vars,n.style)},[t])}function xL(e,t){const n=e.style||{},r={};return Yj(r,n,e),Object.assign(r,vL(e,t)),r}function wL(e,t){const n={},r=xL(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const bL={offset:"stroke-dashoffset",array:"stroke-dasharray"},SL={offset:"strokeDashoffset",array:"strokeDasharray"};function jL(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?bL:SL;e[i.offset]=Q.transform(-r);const o=Q.transform(t),l=Q.transform(n);e[i.array]=`${o} ${l}`}function Qj(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...l},c,u,d){if(Kp(e,l,u),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:f}=e;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete h.transformBox),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&jL(h,s,i,o,!1)}const Xj=()=>({...qp(),attrs:{}}),Jj=e=>typeof e=="string"&&e.toLowerCase()==="svg";function NL(e,t,n,r){const s=y.useMemo(()=>{const i=Xj();return Qj(i,t,Jj(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Yj(i,e.style,e),s.style={...i,...s.style}}return s}const CL=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Gp(e){return typeof e!="string"||e.includes("-")?!1:!!(CL.indexOf(e)>-1||/[A-Z]/u.test(e))}function EL(e,t,n,{latestValues:r},s,i=!1){const l=(Gp(e)?NL:wL)(t,r,s,e),c=dL(t,typeof e=="string",i),u=e!==y.Fragment?{...c,...l,ref:n}:{},{children:d}=t,h=y.useMemo(()=>Ge(d)?d.get():d,[d]);return y.createElement(e,{...u,children:h})}function Gv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Yp(e,t,n,r){if(typeof t=="function"){const[s,i]=Gv(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=Gv(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function ec(e){return Ge(e)?e.get():e}function TL({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:kL(n,r,s,e),renderState:t()}}function kL(e,t,n,r){const s={},i=r(e,{});for(const f in i)s[f]=ec(i[f]);let{initial:o,animate:l}=e;const c=_u(e),u=qj(e);t&&u&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const h=d?l:o;if(h&&typeof h!="boolean"&&!ku(h)){const f=Array.isArray(h)?h:[h];for(let m=0;m<f.length;m++){const w=Yp(e,f[m]);if(w){const{transitionEnd:p,transition:b,...v}=w;for(const g in v){let x=v[g];if(Array.isArray(x)){const S=d?x.length-1:0;x=x[S]}x!==null&&(s[g]=x)}for(const g in p)s[g]=p[g]}}}return s}const Zj=e=>(t,n)=>{const r=y.useContext(Tu),s=y.useContext(Nu),i=()=>TL(e,t,r,s);return n?i():qa(i)};function Qp(e,t,n){var i;const{style:r}=e,s={};for(const o in r)(Ge(r[o])||t.style&&Ge(t.style[o])||Gj(o,e)||((i=n==null?void 0:n.getValue(o))==null?void 0:i.liveStyle)!==void 0)&&(s[o]=r[o]);return s}const _L=Zj({scrapeMotionValuesFromProps:Qp,createRenderState:qp});function eN(e,t,n){const r=Qp(e,t,n);for(const s in e)if(Ge(e[s])||Ge(t[s])){const i=co.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}const AL=Zj({scrapeMotionValuesFromProps:eN,createRenderState:Xj}),PL=Symbol.for("motionComponentSymbol");function vi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function RL(e,t,n){return y.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):vi(n)&&(n.current=r))},[t])}const Xp=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),IL="framerAppearId",tN="data-"+Xp(IL),nN=y.createContext({});function OL(e,t,n,r,s){var p,b;const{visualElement:i}=y.useContext(Tu),o=y.useContext(Hj),l=y.useContext(Nu),c=y.useContext(Eu).reducedMotion,u=y.useRef(null);r=r||o.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:i,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const d=u.current,h=y.useContext(nN);d&&!d.projection&&s&&(d.type==="html"||d.type==="svg")&&ML(u.current,n,s,h);const f=y.useRef(!1);y.useInsertionEffect(()=>{d&&f.current&&d.update(n,l)});const m=n[tN],w=y.useRef(!!m&&!((p=window.MotionHandoffIsComplete)!=null&&p.call(window,m))&&((b=window.MotionHasOptimisedAnimation)==null?void 0:b.call(window,m)));return jp(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),w.current&&d.animationState&&d.animationState.animateChanges())}),y.useEffect(()=>{d&&(!w.current&&d.animationState&&d.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)==null||v.call(window,m)}),w.current=!1),d.enteringChildren=void 0)}),d}function ML(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:l,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:rN(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||l&&vi(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:u})}function rN(e){if(e)return e.options.allowProjection!==!1?e.projection:rN(e.parent)}function Ad(e,{forwardMotionProps:t=!1}={},n,r){n&&lL(n);const s=Gp(e)?AL:_L;function i(l,c){let u;const d={...y.useContext(Eu),...l,layoutId:LL(l)},{isStatic:h}=d,f=fL(l),m=s(l,h);if(!h&&Sp){DL();const w=$L(d);u=w.MeasureLayout,f.visualElement=OL(e,m,d,r,w.ProjectionNode)}return a.jsxs(Tu.Provider,{value:f,children:[u&&f.visualElement?a.jsx(u,{visualElement:f.visualElement,...d}):null,EL(e,l,RL(m,f.visualElement,c),m,h,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=y.forwardRef(i);return o[PL]=e,o}function LL({layoutId:e}){const t=y.useContext(bp).id;return t&&e!==void 0?t+"-"+e:e}function DL(e,t){y.useContext(Hj).strict}function $L(e){const{drag:t,layout:n}=Zi;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function FL(e,t){if(typeof Proxy>"u")return Ad;const n=new Map,r=(i,o)=>Ad(i,o,e,t),s=(i,o)=>r(i,o);return new Proxy(s,{get:(i,o)=>o==="create"?r:(n.has(o)||n.set(o,Ad(o,void 0,e,t)),n.get(o))})}function sN({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function VL({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function UL(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Pd(e){return e===void 0||e===1}function Tf({scale:e,scaleX:t,scaleY:n}){return!Pd(e)||!Pd(t)||!Pd(n)}function ls(e){return Tf(e)||iN(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function iN(e){return Yv(e.x)||Yv(e.y)}function Yv(e){return e&&e!=="0%"}function Fc(e,t,n){const r=e-n,s=t*r;return n+s}function Qv(e,t,n,r,s){return s!==void 0&&(e=Fc(e,s,r)),Fc(e,n,r)+t}function kf(e,t=0,n=1,r,s){e.min=Qv(e.min,t,n,r,s),e.max=Qv(e.max,t,n,r,s)}function oN(e,{x:t,y:n}){kf(e.x,t.translate,t.scale,t.originPoint),kf(e.y,n.translate,n.scale,n.originPoint)}const Xv=.999999999999,Jv=1.0000000000001;function BL(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let l=0;l<s;l++){i=n[l],o=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&wi(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,oN(e,o)),r&&ls(i.latestValues)&&wi(e,i.latestValues))}t.x<Jv&&t.x>Xv&&(t.x=1),t.y<Jv&&t.y>Xv&&(t.y=1)}function xi(e,t){e.min=e.min+t,e.max=e.max+t}function Zv(e,t,n,r,s=.5){const i=Te(e.min,e.max,s);kf(e,t,n,i,r)}function wi(e,t){Zv(e.x,t.x,t.scaleX,t.scale,t.originX),Zv(e.y,t.y,t.scaleY,t.scale,t.originY)}function aN(e,t){return sN(UL(e.getBoundingClientRect(),t))}function zL(e,t,n){const r=aN(e,n),{scroll:s}=t;return s&&(xi(r.x,s.offset.x),xi(r.y,s.offset.y)),r}const ex=()=>({translate:0,scale:1,origin:0,originPoint:0}),bi=()=>({x:ex(),y:ex()}),tx=()=>({min:0,max:0}),De=()=>({x:tx(),y:tx()}),_f={current:null},lN={current:!1};function WL(){if(lN.current=!0,!!Sp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_f.current=e.matches;e.addEventListener("change",t),t()}else _f.current=!1}const Ta=new WeakMap;function HL(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Ge(s))e.addValue(r,s);else if(Ge(i))e.addValue(r,Os(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,Os(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const nx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class cN{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Dp,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=wt.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Ne.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=_u(n),this.isVariantNode=qj(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const m=h[f];c[f]!==void 0&&Ge(m)&&m.set(c[f])}}mount(t){var n;this.current=t,Ta.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 11,026 bytes, line 341
341h((r,s)=>this.bindToMotionValue(s,r)),lN.current||WL(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_f.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),er(this.notifyUpdate),er(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=uo.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Ne.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Zi){const n=Zi[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):De()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<nx.length;r++){const s=nx[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=HL(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Os(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(KS(r)||GS(r))?r=parseFloat(r):!tL(r)&&zr.test(n)&&(r=Mj(t,n)),this.setBaseTarget(t,Ge(r)?r.get():r)),Ge(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Yp(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Ge(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ep),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Up.render(this.render)}}class uN extends cN{constructor(){super(...arguments),this.KeyframeResolver=WM}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ge(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function dN(e,{style:t,vars:n},r,s){const i=e.style;let o;for(o in t)i[o]=t[o];s==null||s.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function KL(e){return window.getComputedStyle(e)}class hN extends uN{constructor(){super(...arguments),this.type="html",this.renderInstance=dN}readValueFromInstance(t,n){var r;if(uo.has(n))return(r=this.projection)!=null&&r.isProjecting?xf(n):aM(t,n);{const s=KL(t),i=(uj(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return aN(t,n)}build(t,n,r){Kp(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Qp(t,n,r)}}const fN=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function qL(e,t,n,r){dN(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(fN.has(s)?s:Xp(s),t.attrs[s])}class mN extends uN{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=De}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(uo.has(n)){const r=Oj(n);return r&&r.default||0}return n=fN.has(n)?n:Xp(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return eN(t,n,r)}build(t,n,r){Qj(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){qL(t,n,r,s)}mount(t){this.isSVGTag=Jj(t.tagName),super.mount(t)}}const GL=(e,t)=>Gp(e)?new mN(t):new hN(t,{allowProjection:e!==y.Fragment});function Pi(e,t,n){const r=e.getProps();return Yp(r,t,n!==void 0?n:r.custom,e)}const Af=e=>Array.isArray(e);function YL(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Os(n))}function QL(e){return Af(e)?e[e.length-1]||0:e}function XL(e,t){const n=Pi(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const l=QL(i[o]);YL(e,o,l)}}function JL(e){return!!(Ge(e)&&e.add)}function Pf(e,t){const n=e.getValue("willChange");if(JL(n))return n.add(t);if(!n&&Zn.WillChange){const r=new Zn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function pN(e){return e.props[tN]}const ZL=e=>e!==null;function e4(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(ZL),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const t4={type:"spring",stiffness:500,damping:25,restSpeed:10},n4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),r4={type:"keyframes",duration:.8},s4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},i4=(e,{keyframes:t})=>t.length>2?r4:uo.has(e)?e.startsWith("scale")?n4(t[1]):t4:s4;function o4({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const Jp=(e,t,n,r={},s,i)=>o=>{const l=Fp(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-gn(c);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:f=>{t.set(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:s};o4(l)||Object.assign(d,i4(e,d)),d.duration&&(d.duration=gn(d.duration)),d.repeatDelay&&(d.repeatDelay=gn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Nf(d),d.delay===0&&(h=!0)),(Zn.instantAnimations||Zn.skipAnimations)&&(h=!0,Nf(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,h&&!i&&t.get()!==void 0){const f=e4(d.keyframes,l);if(f!==void 0){Ne.update(()=>{d.onUpdate(f),d.onComplete()});return}}return l.isSync?new Lp(d):new AM(d)};function a4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Zp(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:o,...l}=t;r&&(i=r);const c=[],u=s&&e.animationState&&e.animationState.getState()[s];for(const d in l){const h=e.getValue(d,e.latestValues[d]??null),f=l[d];if(f===void 0||u&&a4(u,d))continue;const m={delay:n,...Fp(i||{},d)},w=h.get();if(w!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===w&&!m.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){const v=pN(e);if(v){const g=window.MotionHandoffAnimation(v,d,Ne);g!==null&&(m.startTime=g,p=!0)}}Pf(e,d),h.start(Jp(d,h,f,e.shouldReduceMotion&&Pj.has(d)?{type:!1}:m,e,p));const b=h.animation;b&&c.push(b)}return o&&Promise.all(c).then(()=>{Ne.update(()=>{o&&XL(e,o)})}),c}function gN(e,t,n,r=0,s=1){const i=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),o=e.size,l=(o-1)*r;return typeof n=="function"?n(i,o):s===1?i*r:l-i*r}function Rf(e,t,n={}){var c;const r=Pi(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(Zp(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:f}=s;return l4(e,t,u,d,h,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,d]=l==="beforeChildren"?[i,o]:[o,i];return u().then(()=>d())}else return Promise.all([i(),o(n.delay)])}function l4(e,t,n=0,r=0,s=0,i=1,o){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(Rf(c,t,{...o,delay:n+(typeof r=="function"?0:r)+gN(e.variantChildren,c,r,s,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function c4(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>Rf(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=Rf(e,t,n);else{const s=typeof t=="function"?Pi(e,t,n.custom):t;r=Promise.all(Zp(e,s,n))}return r.then(()=>
vendor: 23,775 bytes, line 341
341{e.notify("AnimationComplete",t)})}function yN(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const u4=Hp.length;function vN(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?vN(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<u4;n++){const r=Hp[n],s=e.props[r];(Ea(s)||s===!1)&&(t[r]=s)}return t}const d4=[...Wp].reverse(),h4=Wp.length;function f4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>c4(e,n,r)))}function m4(e){let t=f4(e),n=rx(),r=!0;const s=c=>(u,d)=>{var f;const h=Pi(e,d,c==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(h){const{transition:m,transitionEnd:w,...p}=h;u={...u,...p,...w}}return u};function i(c){t=c(e)}function o(c){const{props:u}=e,d=vN(e.parent)||{},h=[],f=new Set;let m={},w=1/0;for(let b=0;b<h4;b++){const v=d4[b],g=n[v],x=u[v]!==void 0?u[v]:d[v],S=Ea(x),j=v===c?g.isActive:null;j===!1&&(w=b);let N=x===d[v]&&x!==u[v]&&S;if(N&&r&&e.manuallyAnimateOnMount&&(N=!1),g.protectedKeys={...m},!g.isActive&&j===null||!x&&!g.prevProp||ku(x)||typeof x=="boolean")continue;const C=p4(g.prevProp,x);let E=C||v===c&&g.isActive&&!N&&S||b>w&&S,T=!1;const A=Array.isArray(x)?x:[x];let M=A.reduce(s(v),{});j===!1&&(M={});const{prevResolvedValues:L={}}=g,W={...L,...M},O=$=>{E=!0,f.has($)&&(T=!0,f.delete($)),g.needsAnimating[$]=!0;const k=e.getValue($);k&&(k.liveStyle=!1)};for(const $ in W){const k=M[$],_=L[$];if(m.hasOwnProperty($))continue;let D=!1;Af(k)&&Af(_)?D=!yN(k,_):D=k!==_,D?k!=null?O($):f.add($):k!==void 0&&f.has($)?O($):g.protectedKeys[$]=!0}g.prevProp=x,g.prevResolvedValues=M,g.isActive&&(m={...m,...M}),r&&e.blockInitialAnimation&&(E=!1);const K=N&&C;E&&(!K||T)&&h.push(...A.map($=>{const k={type:v};if(typeof $=="string"&&r&&!K&&e.manuallyAnimateOnMount&&e.parent){const{parent:_}=e,D=Pi(_,$);if(_.enteringChildren&&D){const{delayChildren:H}=D.transition||{};k.delay=gN(_.enteringChildren,e,H)}}return{animation:$,options:k}}))}if(f.size){const b={};if(typeof u.initial!="boolean"){const v=Pi(e,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(b.transition=v.transition)}f.forEach(v=>{const g=e.getBaseTarget(v),x=e.getValue(v);x&&(x.liveStyle=!0),b[v]=g??null}),h.push({animation:b})}let p=!!h.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(h):Promise.resolve()}function l(c,u){var h;if(n[c].isActive===u)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(f=>{var m;return(m=f.animationState)==null?void 0:m.setActive(c,u)}),n[c].isActive=u;const d=o(c);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=rx()}}}function p4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!yN(t,e):!1}function rs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rx(){return{animate:rs(!0),whileInView:rs(),whileHover:rs(),whileTap:rs(),whileDrag:rs(),whileFocus:rs(),exit:rs()}}class Qr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class g4 extends Qr{constructor(t){super(t),t.animationState||(t.animationState=m4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ku(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let y4=0;class v4 extends Qr{constructor(){super(...arguments),this.id=y4++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const x4={animation:{Feature:g4},exit:{Feature:v4}};function ka(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Xa(e){return{point:{x:e.pageX,y:e.pageY}}}const w4=e=>t=>Bp(t)&&e(t,Xa(t));function Yo(e,t,n,r){return ka(e,t,w4(n),r)}const xN=1e-4,b4=1-xN,S4=1+xN,wN=.01,j4=0-wN,N4=0+wN;function ht(e){return e.max-e.min}function C4(e,t,n){return Math.abs(e-t)<=n}function sx(e,t,n,r=.5){e.origin=r,e.originPoint=Te(t.min,t.max,e.origin),e.scale=ht(n)/ht(t),e.translate=Te(n.min,n.max,e.origin)-e.originPoint,(e.scale>=b4&&e.scale<=S4||isNaN(e.scale))&&(e.scale=1),(e.translate>=j4&&e.translate<=N4||isNaN(e.translate))&&(e.translate=0)}function Qo(e,t,n,r){sx(e.x,t.x,n.x,r?r.originX:void 0),sx(e.y,t.y,n.y,r?r.originY:void 0)}function ix(e,t,n){e.min=n.min+t.min,e.max=e.min+ht(t)}function E4(e,t,n){ix(e.x,t.x,n.x),ix(e.y,t.y,n.y)}function ox(e,t,n){e.min=t.min-n.min,e.max=e.min+ht(t)}function Vc(e,t,n){ox(e.x,t.x,n.x),ox(e.y,t.y,n.y)}function Dt(e){return[e("x"),e("y")]}const bN=({current:e})=>e?e.ownerDocument.defaultView:null,ax=(e,t)=>Math.abs(e-t);function T4(e,t){const n=ax(e.x,t.x),r=ax(e.y,t.y);return Math.sqrt(n**2+r**2)}class SN{constructor(t,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Id(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,w=T4(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!w)return;const{point:p}=f,{timestamp:b}=Ze;this.history.push({...p,timestamp:b});const{onStart:v,onMove:g}=this.handlers;m||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Rd(m,this.transformPagePoint),Ne.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:w,onSessionEnd:p,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Id(f.type==="pointercancel"?this.lastMoveEventInfo:Rd(m,this.transformPagePoint),this.history);this.startEvent&&w&&w(f,v),p&&p(f,v)},!Bp(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const l=Xa(t),c=Rd(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=Ze;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,Id(c,this.history)),this.removeListeners=Ga(Yo(this.contextWindow,"pointermove",this.handlePointerMove),Yo(this.contextWindow,"pointerup",this.handlePointerUp),Yo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),er(this.updatePoint)}}function Rd(e,t){return t?{point:t(e.point)}:e}function lx(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Id({point:e},t){return{point:e,delta:lx(e,jN(t)),offset:lx(e,k4(t)),velocity:_4(t,.1)}}function k4(e){return e[0]}function jN(e){return e[e.length-1]}function _4(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=jN(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>gn(t)));)n--;if(!r)return{x:0,y:0};const i=Bt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function A4(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Te(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Te(n,e,r.max):Math.min(e,n)),e}function cx(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function P4(e,{top:t,left:n,bottom:r,right:s}){return{x:cx(e.x,n,s),y:cx(e.y,t,r)}}function ux(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function R4(e,t){return{x:ux(e.x,t.x),y:ux(e.y,t.y)}}function I4(e,t){let n=.5;const r=ht(e),s=ht(t);return s>r?n=Ji(t.min,t.max-r,e.min):r>s&&(n=Ji(e.min,e.max-s,t.min)),Jn(0,1,n)}function O4(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const If=.35;function M4(e=If){return e===!1?e=0:e===!0&&(e=If),{x:dx(e,"left","right"),y:dx(e,"top","bottom")}}function dx(e,t,n){return{min:hx(e,t),max:hx(e,n)}}function hx(e,t){return typeof e=="number"?e:e[t]||0}const L4=new WeakMap;class D4{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=De(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Xa(h).point)},o=(h,f)=>{const{drag:m,dragPropagation:w,onDragStart:p}=this.getProps();if(m&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=qM(m),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Dt(v=>{let g=this.getAxisMotionValue(v).get()||0;if(Rn.test(g)){const{projection:x}=this.visualElement;if(x&&x.layout){const S=x.layout.layoutBox[v];S&&(g=ht(S)*(parseFloat(g)/100))}}this.originPoint[v]=g}),p&&Ne.postRender(()=>p(h,f)),Pf(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:m,dragDirectionLock:w,onDirectionLock:p,onDrag:b}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:v}=f;if(w&&this.currentDirection===null){this.currentDirection=$4(v),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),b&&b(h,f)},c=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Dt(h=>{var f;return this.getAnimationState(h)==="paused"&&((f=this.getAxisMotionValue(h).animation)==null?void 0:f.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new SN(t,{onSessionStart:i,onStart:o,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:bN(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,s=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!r)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:l}=this.getProps();l&&Ne.postRender(()=>l(r,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!El(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=A4(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,s=this.constraints;t&&vi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=P4(r.layoutBox,t):this.constraints=!1,this.elastic=M4(n),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Dt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=O4(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!vi(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=zL(r,s.root,this.visualElement.getTransformPagePoint());let o=R4(s.layout.layoutBox,i);if(n){const l=n(VL(o));this.hasMutatedConstraints=!!l,l&&(o=sN(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=Dt(d=>{if(!El(d,n,this.currentDirection))return;let h=c&&c[d]||{};o&&(h={min:0,max:0});const f=s?200:1e6,m=s?40:1e7,w={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...h};return this.startAxisValueAnimation(d,w)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Pf(this.visualElement,t),r.start(Jp(t,r,0,n,this.visualElement,!1))}stopAnimation(){Dt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Dt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Dt(n=>{const{drag:r}=this.getProps();if(!El(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:l}=s.layout.layoutBox[n];i.set(t[n]-Te(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!vi(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Dt(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const c=l.get();s[o]=I4({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Dt(o=>{if(!El(o,t,null))return;const l=this.getAxisMotionValue(o),{min:c,max:u}=this.constraints[o];l.set(Te(c,u,s[o]))})}addListeners(){if(!this.visualElement.current)return;L4.set(this.visualElement,this);const t=this.visualElement.current,n=Yo(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();vi(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Ne.read(r);const o=ka(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Dt(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=c[d].translate,h.set(h.get()+c[d].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=If,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:l}}}function El(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function $4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class F4 extends Qr{constructor(t){super(t),this.removeGroupControls=Ht,this.removeListeners=Ht,this.controls=new D4(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ht}unmount(){this.removeGroupControls(),this.removeListeners()}}const fx=e=>(t,n)=>{e&&Ne.postRender(()=>e(t,n))};class V4 extends Qr{constructor(){super(...arguments),this.removePointerDownListener=Ht}onPointerDown(t){this.session=new SN(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:bN(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:fx(t),onStart:fx(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&Ne.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=Yo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const tc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Od=!1;class U4 extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),Od&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),tc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,Od=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Ne.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Up.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;Od=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function NN(e){const[t,n]=zj(),r=y.useContext(bp);return a.jsx(U4,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(nN),isPresent:t,safeToRemove:n})}function CN(e,t,n){const r=Ge(e)?e:Os(e);return r.start(Jp("",r,t,n)),r.animation}const B4=(e,t)=>e.depth-t.depth;class z4{constructor(){this.children=[],this.isDirty=!1}add(t){Np(this.children,t),this.isDirty=!0}remove(t){Cu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(B4),this.isDirty=!1,this.children.forEach(t)}}function W4(e,t){const n=wt.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(er(r),e(i-t))};return Ne.setup(r,!0),()=>er(r)}const EN=["TopLeft","TopRight","BottomLeft","BottomRight"],H4=EN.length,mx=e=>typeof e=="string"?parseFloat(e):e,px=e=>typeof e=="number"||Q.test(e);function K4(e,t,n,r,s,i){s?(e.opacity=Te(0,n.opacity??1,q4(r)),e.opacityExit=Te(t.opacity??1,0,G4(r))):i&&(e.opacity=Te(t.opacity??1,n.opacity??1,r));for(let o=0;o<H4;o++){const l=`border${EN[o]}Radius`;let c=gx(t,l),u=gx(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||px(c)===px(u)?(e[l]=Math.max(Te(mx(c),mx(u),r),0),(Rn.test(u)||Rn.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=Te(t.rotate||0,n.rotate||0,r))}function gx(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const q4=TN(0,.5,nj),G4=TN(.5,.95,Ht);function TN(e,t,n){return r=>r<e?0:r>t?1:n(Ji(e,t,r))}function yx(e,t){e.min=t.min,e.max=t.max}function en(e,t){yx(e.x,t.x),yx(e.y,t.y)}function vx(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function xx(e,t,n,r,s){return e-=t,e=Fc(e,1/n,r),s!==void 0&&(e=Fc(e,1/s,r)),e}function Y4(e,t=0,n=1,r=.5,s,i=e,o=e){if(Rn.test(t)&&(t=parseFloat(t),t=Te(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=Te(i.min,i.max,r);e===i&&(l-=t),e.min=xx(e.min,t,n,l,s),e.max=xx(e.max,t,n,l,s)}function wx(e,t,[n,r,s],i,o){Y4(e,t[n],t[r],t[s],t.scale,i,o)}const Q4=["x","scaleX","originX"],X4=["y","scaleY","originY"];function bx(e,t,n,r){wx(e.x,t,Q4,n?n.x:void 0,r?r.x:void 0),wx(e.y,t,X4,n?n.y:void 0,r?r.y:void 0)}function Sx(e){return e.translate===0&&e.scale===1}function kN(e){return Sx(e.x)&&Sx(e.y)}function jx(e,t){return e.min===t.min&&e.max===t.max}function J4(e,t){return jx(e.x,t.x)&&jx(e.y,t.y)}function Nx(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function _N(e,t){return Nx(e.x,t.x)&&Nx(e.y,t.y)}function Cx(e){return ht(e.x)/ht(e.y)}function Ex(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Z4{constructor(){this.members=[]}add(t){Np(this.members,t),t.scheduleRender()}remove(t){if(Cu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function eD(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:h,rotateY:f,skewX:m,skewY:w}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),f&&(r+=`rotateY(${f}deg) `),m&&(r+=`skewX(${m}deg) `),w&&(r+=`skewY(${w}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const Md=["","X","Y","Z"],tD=1e3;let nD=0;function Ld(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function AN(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=pN(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ne,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&AN(r)}function PN({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},l=t==null?void 0:t()){this.id=nD++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
vendor: 14,720 bytes, line 341
341{this.projectionUpdateScheduled=!1,this.nodes.forEach(iD),this.nodes.forEach(cD),this.nodes.forEach(uD),this.nodes.forEach(oD)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new z4)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Ep),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const c=this.eventHandlers.get(o);c&&c.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=zp(o)&&!Bj(o),this.instance=o;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let d,h=0;const f=()=>this.root.updateBlockedByResize=!1;Ne.read(()=>{h=window.innerWidth}),e(o,()=>{const m=window.innerWidth;m!==h&&(h=m,this.root.updateBlockedByResize=!0,d&&d(),d=W4(f,250),tc.hasAnimatedSinceResize&&(tc.hasAnimatedSinceResize=!1,this.nodes.forEach(_x)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||u.getDefaultTransition()||pD,{onLayoutAnimationStart:p,onLayoutAnimationComplete:b}=u.getProps(),v=!this.targetLayout||!_N(this.targetLayout,m),g=!h&&f;if(this.options.layoutRoot||this.resumeFrom||g||h&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...Fp(w,"layout"),onPlay:p,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(d,g)}else h||_x(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),er(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(dD),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&AN(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Tx);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(kx);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(lD),this.nodes.forEach(rD),this.nodes.forEach(sD)):this.nodes.forEach(kx),this.clearAllSnapshots();const l=wt.now();Ze.delta=Jn(0,1e3/60,l-Ze.timestamp),Ze.timestamp=l,Ze.isProcessing=!0,Nd.update.process(Ze),Nd.preRender.process(Ze),Nd.render.process(Ze),Ze.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Up.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(aD),this.sharedNodes.forEach(hD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ne.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ne.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ht(this.snapshot.measuredBox.x)&&!ht(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=De(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!kN(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&this.instance&&(l||ls(this.latestValues)||d)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return o&&(c=this.removeTransform(c)),gD(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return De();const l=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(yD))){const{scroll:d}=this.root;d&&(xi(l.x,d.offset.x),xi(l.y,d.offset.y))}return l}removeElementScroll(o){var c;const l=De();if(en(l,o),(c=this.scroll)!=null&&c.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:h,options:f}=d;d!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&en(l,o),xi(l.x,h.offset.x),xi(l.y,h.offset.y))}return l}applyTransform(o,l=!1){const c=De();en(c,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&wi(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),ls(d.latestValues)&&wi(c,d.latestValues)}return ls(this.latestValues)&&wi(c,this.latestValues),c}removeTransform(o){const l=De();en(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!ls(u.latestValues))continue;Tf(u.latestValues)&&u.updateSnapshot();const d=De(),h=u.measurePageBox();en(d,h),bx(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return ls(this.latestValues)&&bx(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ze.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var m;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:h}=this.options;if(!this.layout||!(d||h))return;this.resolvedRelativeTargetAt=Ze.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=De(),this.targetWithTransforms=De()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),E4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):en(this.target,this.layout.layoutBox),oN(this.target,this.targetDelta)):en(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Tf(this.parent.latestValues)||iN(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,l,c){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=De(),this.relativeTargetOrigin=De(),Vc(this.relativeTargetOrigin,l,c),en(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var w;const o=this.getLead(),l=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Ze.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;en(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;BL(this.layoutCorrected,this.treeScale,this.path,l),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=De());const{target:m}=o;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(vx(this.prevProjectionDelta.x,this.projectionDelta.x),vx(this.prevProjectionDelta.y,this.projectionDelta.y)),Qo(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Ex(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ex(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=bi(),this.projectionDelta=bi(),this.projectionDeltaWithTransform=bi()}setAnimationOrigin(o,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},h=bi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=De(),m=c?c.source:void 0,w=this.layout?this.layout.source:void 0,p=m!==w,b=this.getStack(),v=!b||b.members.length<=1,g=!!(p&&!v&&this.options.crossfade===!0&&!this.path.some(mD));this.animationProgress=0;let x;this.mixTargetDelta=S=>{const j=S/1e3;Ax(h.x,o.x,j),Ax(h.y,o.y,j),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vc(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),fD(this.relativeTarget,this.relativeTargetOrigin,f,j),x&&J4(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=De()),en(x,this.relativeTarget)),p&&(this.animationValues=d,K4(d,u,this.latestValues,j,g,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=j},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var l,c,u;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(),this.pendingAnimation&&(er(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ne.update(()=>{tc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Os(0)),this.currentAnimation=CN(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),o.onUpdate&&o.onUpdate(d)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(tD),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=o;if(!(!l||!c||!u)){if(this!==o&&this.layout&&u&&RN(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||De();const h=ht(this.layout.layoutBox.x);
vendor: 9,724 bytes, line 341
341c.x.min=o.target.x.min,c.x.max=c.x.min+h;const f=ht(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+f}en(l,c),wi(l,d),Qo(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Z4),this.sharedNodes.get(o).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var l;const{layoutId:o}=this.options;return o?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:o}=this.options;return o?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&Ld("z",o,u,this.animationValues);for(let d=0;d<Md.length;d++)Ld(`rotate${Md[d]}`,o,u,this.animationValues),Ld(`skew${Md[d]}`,o,u,this.animationValues);o.render();for(const d in u)o.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);o.scheduleRender()}applyProjectionStyles(o,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=ec(l==null?void 0:l.pointerEvents)||"",o.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=ec(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!ls(this.latestValues)&&(o.transform=c?c({},""):"none",this.hasProjected=!1);return}o.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=eD(this.projectionDeltaWithTransform,this.treeScale,d);c&&(h=c(d,h)),o.transform=h;const{x:f,y:m}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,u.animationValues?o.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:o.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const w in Ef){if(d[w]===void 0)continue;const{correct:p,applyTo:b,isCSSVariable:v}=Ef[w],g=h==="none"?d[w]:p(d[w],u);if(b){const x=b.length;for(let S=0;S<x;S++)o[b[S]]=g}else v?this.options.visualElement.renderState.vars[w]=g:o[w]=g}this.options.layoutId&&(o.pointerEvents=u===this?ec(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(Tx),this.root.sharedNodes.clear()}}}function rD(e){e.updateLayout()}function sD(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;i==="size"?Dt(h=>{const f=o?t.measuredBox[h]:t.layoutBox[h],m=ht(f);f.min=r[h].min,f.max=f.min+m}):RN(i,t.layoutBox,r)&&Dt(h=>{const f=o?t.measuredBox[h]:t.layoutBox[h],m=ht(r[h]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+m)});const l=bi();Qo(l,r,t.layoutBox);const c=bi();o?Qo(c,e.applyTransform(s,!0),t.measuredBox):Qo(c,r,t.layoutBox);const u=!kN(l);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:m}=h;if(f&&m){const w=De();Vc(w,t.layoutBox,f.layoutBox);const p=De();Vc(p,r,m.layoutBox),_N(w,p)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=w,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function iD(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function oD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function aD(e){e.clearSnapshot()}function Tx(e){e.clearMeasurements()}function kx(e){e.isLayoutDirty=!1}function lD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function _x(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function cD(e){e.resolveTargetDelta()}function uD(e){e.calcProjection()}function dD(e){e.resetSkewAndRotation()}function hD(e){e.removeLeadSnapshot()}function Ax(e,t,n){e.translate=Te(t.translate,0,n),e.scale=Te(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Px(e,t,n,r){e.min=Te(t.min,n.min,r),e.max=Te(t.max,n.max,r)}function fD(e,t,n,r){Px(e.x,t.x,n.x,r),Px(e.y,t.y,n.y,r)}function mD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const pD={duration:.45,ease:[.4,0,.1,1]},Rx=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ix=Rx("applewebkit/")&&!Rx("chrome/")?Math.round:Ht;function Ox(e){e.min=Ix(e.min),e.max=Ix(e.max)}function gD(e){Ox(e.x),Ox(e.y)}function RN(e,t,n){return e==="position"||e==="preserve-aspect"&&!C4(Cx(t),Cx(n),.2)}function yD(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const vD=PN({attachResizeListener:(e,t)=>ka(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Dd={current:void 0},IN=PN({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Dd.current){const e=new vD({});e.mount(window),e.setOptions({layoutScroll:!0}),Dd.current=e}return Dd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),xD={pan:{Feature:V4},drag:{Feature:F4,ProjectionNode:IN,MeasureLayout:NN}};function Mx(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&Ne.postRender(()=>i(t,Xa(t)))}class wD extends Qr{mount(){const{current:t}=this.node;t&&(this.unmount=GM(t,(n,r)=>(Mx(this.node,r,"Start"),s=>Mx(this.node,s,"End"))))}unmount(){}}class bD extends Qr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ga(ka(this.node.current,"focus",()=>this.onFocus()),ka(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Lx(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&Ne.postRender(()=>i(t,Xa(t)))}class SD extends Qr{mount(){const{current:t}=this.node;t&&(this.unmount=JM(t,(n,r)=>(Lx(this.node,r,"Start"),(s,{success:i})=>Lx(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Of=new WeakMap,$d=new WeakMap,jD=e=>{const t=Of.get(e.target);t&&t(e)},ND=e=>{e.forEach(jD)};function CD({root:e,...t}){const n=e||document;$d.has(n)||$d.set(n,{});const r=$d.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(ND,{root:e,...t})),r[s]}function ED(e,t,n){const r=CD(t);return Of.set(e,n),r.observe(e),()=>{Of.delete(e),r.unobserve(e)}}const TD={some:0,all:1};class kD extends Qr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:TD[s]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),f=u?d:h;f&&f(c)};return ED(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(_D(t,n))&&this.startObserver()}unmount(){}}function _D({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const AD={inView:{Feature:kD},tap:{Feature:SD},focus:{Feature:bD},hover:{Feature:wD}},PD={layout:{ProjectionNode:IN,MeasureLayout:NN}},RD={...x4,...AD,...xD,...PD},J=FL(RD,GL);function ON(e){const t=qa(()=>Os(e)),{isStatic:n}=y.useContext(Eu);if(n){const[,r]=y.useState(e);y.useEffect(()=>t.on("change",r),[])}return t}
vendor: 4,085 bytes, line 341
341function MN(e,t){const n=ON(t()),r=()=>n.set(t());return r(),jp(()=>{const s=()=>Ne.preRender(r,!1,!0),i=e.map(o=>o.on("change",s));return()=>{i.forEach(o=>o()),er(r)}}),n}function ID(e){Go.current=[],e();const t=MN(Go.current,e);return Go.current=void 0,t}function Dx(e,t,n,r){if(typeof e=="function")return ID(e);const s=typeof t=="function"?t:ZM(t,n,r);return Array.isArray(e)?$x(e,s):$x([e],([i])=>s(i))}function $x(e,t){const n=qa(()=>[]);return MN(e,()=>{n.length=0;const r=e.length;for(let s=0;s<r;s++)n[s]=e[s].get();return t(n)})}function eg(e){return typeof e=="object"&&!Array.isArray(e)}function LN(e,t,n,r){return typeof e=="string"&&eg(t)?Lj(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function OD(e,t,n){return e*(t+1)}function Fx(e,t,n,r){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function MD(e,t,n){for(let r=0;r<e.length;r++){const s=e[r];s.at>t&&s.at<n&&(Cu(e,s),r--)}}function LD(e,t,n,r,s,i){MD(e,s,i);for(let o=0;o<t.length;o++)e.push({value:t[o],at:Te(s,i,r[o]),easing:oj(n,o)})}function DD(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function $D(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const FD="easeInOut";function VD(e,{defaultTransition:t={},...n}={},r,s){const i=t.duration||.3,o=new Map,l=new Map,c={},u=new Map;let d=0,h=0,f=0;for(let m=0;m<e.length;m++){const w=e[m];if(typeof w=="string"){u.set(w,h);continue}else if(!Array.isArray(w)){u.set(w.name,Fx(h,w.at,d,u));continue}let[p,b,v={}]=w;v.at!==void 0&&(h=Fx(h,v.at,d,u));let g=0;const x=(S,j,N,C=0,E=0)=>{const T=UD(S),{delay:A=0,times:M=jj(T),type:L="keyframes",repeat:W,repeatType:O,repeatDelay:K=0,...U}=j;let{ease:$=t.ease||"easeOut",duration:k}=j;const _=typeof A=="function"?A(C,E):A,D=T.length,H=$p(L)?L:s==null?void 0:s[L||"keyframes"];if(D<=2&&H){let de=100;if(D===2&&WD(T)){const oe=T[1]-T[0];de=Math.abs(oe)}const ye={...U};k!==void 0&&(ye.duration=gn(k));const F=xj(ye,de,H);$=F.ease,k=F.duration}k??(k=i);const B=h+_;M.length===1&&M[0]===0&&(M[1]=1);const ee=M.length-T.length;if(ee>0&&Sj(M,ee),T.length===1&&T.unshift(null),W){k=OD(k,W);const de=[...T],ye=[...M];$=Array.isArray($)?[...$]:[$];const F=[...$];for(let oe=0;oe<W;oe++){T.push(...de);for(let pe=0;pe<de.length;pe++)M.push(ye[pe]+(oe+1)),$.push(pe===0?"linear":oj(F,pe-1))}DD(M,W)}const X=B+k;LD(N,T,$,M,B,X),g=Math.max(_+k,g),f=Math.max(X,f)};if(Ge(p)){const S=Vx(p,l);x(b,v,Ux("default",S))}else{const S=LN(p,b,r,c),j=S.length;for(let N=0;N<j;N++){b=b,v=v;const C=S[N],E=Vx(C,l);for(const T in b)x(b[T],BD(v,T),Ux(T,E),N,j)}}d=h,h+=g}return l.forEach((m,w)=>{for(const p in m){const b=m[p];b.sort($D);const v=[],g=[],x=[];for(let j=0;j<b.length;j++){const{at:N,value:C,easing:E}=b[j];v.push(C),g.push(Ji(0,f,N)),x.push(E||"easeOut")}g[0]!==0&&(g.unshift(0),v.unshift(v[0]),x.unshift(FD)),g[g.length-1]!==1&&(g.push(1),v.push(null)),o.has(w)||o.set(w,{keyframes:{},transition:{}});const S=o.get(w);S.keyframes[p]=v,S.transition[p]={...t,duration:f,ease:x,times:g,...n}}}),o}function Vx(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Ux(e,t){return t[e]||(t[e]=[]),t[e]}function UD(e){return Array.isArray(e)?e:[e]}function BD(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const zD=e=>typeof e=="number",WD=e=>e.every(zD);function HD(e,t){return e in t}class KD extends cN{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(HD(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return De()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}function qD(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=zp(e)&&!Bj(e)?new mN(t):new hN(t);n.mount(e),Ta.set(e,n)}function GD(e){const t={presenceContext:null,props:{}
341,visualState:{renderState:{output:{}},latestValues:{}}},n=new KD(t);n.mount(e),Ta.set(e,n)}function YD(e,t){return Ge(e)||typeof e=="number"||typeof e=="string"&&!eg(t)}function DN(e,t,n,r){const s=[];if(YD(e,t))s.push(CN(e,eg(t)&&t.default||t,n&&(n.default||n)));else{const i=LN(e,t,r),o=i.length;for(let l=0;l<o;l++){const c=i[l],u=c instanceof Element?qD:GD;Ta.has(c)||u(c);const d=Ta.get(c),h={...n};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(l,o)),s.push(...Zp(d,{...t,transition:h},{}))}}return s}function QD(e,t,n){const r=[];return VD(e,t,n,{spring:Ca}).forEach(({keyframes:i,transition:o},l)=>{r.push(...DN(l,i,o))}),r}function XD(e){return Array.isArray(e)&&e.some(Array.isArray)}function JD(e){function t(n,r,s){let i=[],o;if(XD(n))i=QD(n,r,e);else{const{onComplete:c,...u}=s||{};typeof c=="function"&&(o=c),i=DN(n,r,u,e)}const l=new RM(i);return o&&l.finished.then(o),l}return t}const Bx=JD(),ZD=T1("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl text-sm font-semibold ring-offset-background transition-all duration-300 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-lg hover:shadow-xl hover:scale-[1.02]",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-border bg-background hover:bg-secondary hover:text-secondary-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-secondary hover:text-secondary-foreground",link:"text-primary underline-offset-4 hover:underline",hero:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-lg hover:shadow-glow hover:scale-[1.03]",glass:"bg-card/50 backdrop-blur-lg border border-border/50 text-foreground hover:bg-card/80 hover:border-primary/30"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-lg px-3",lg:"h-12 rounded-xl px-8 text-base",xl:"h-14 roun
341ded-2xl px-10 text-lg",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ft=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?b_:"button";return a.jsx(o,{className:ve(ZD({variant:t,size:n,className:e})),ref:i,...s})});ft.displayName="Button";const ho=()=>{const[e,t]=y.useState(!1),r=Yr().pathname==="/",s=[{name:"Features",href:"#features"},{name:"How it Works",href:"#how-it-works"},{name:"Pricing",href:"#pricing"},{name:"FAQ",href:"#faq"},{name:"Platform Guide",href:"/platform-guide"},{name:"Contact",href:"/contact"}],i=o=>o.startsWith("/")||r?o:`/${o}`;return a.jsxs("header",{className:"fixed top-0 left-0 right-0 z-50 bg-background/80 backdrop-blur-xl border-b border-border/50",children:[a.jsx("div",{className:"container mx-auto px-4",children:a.jsxs("div",{className:"flex items-center justify-between h-16 md:h-20",children:[a.jsxs(Wt,{to:"/",className:"flex items-center gap-2 group",children:[a.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary flex items-center justify-center shadow-lg group-hover:shadow-glow transition-shadow duration-300",children:a.jsx(In,{className:"w-5 h-5 text-primary-foreground"})}),a.jsxs("span",{className:"text-xl font-bold text-foreground",children:["Smart",a.jsx("span",{className:"gradient-text",children:"Caller"})]})]}),a.jsx("nav",{className:"hidden lg:flex items-center gap-8",children:s.map(o=>o.href.startsWith("/")?a.jsx(Wt,{to:o.href,className:"text-muted-foreground hover:text-primary transition-colors duration-200 text-sm font-medium",children:o.name},o.name):a.jsx("a",{href:i(o.href),className:"text-muted-foreground hover:text-primary transition-colors duration-200 text-sm font-medium",children:o.name},o.name))}),a.jsxs("div",{className:"hidden lg:flex items-center gap-4",children:[a.jsx(ft,{variant:"ghost",size:"sm",asChild:!0,children:a.jsx("a",{href:"https://app.smartcallerlive.ai/login",children:"Login"})}),a.jsx(ft,{variant:"default",size:"sm",asChild:!0,children:a.jsx("a",{href:"https://app.smartcallerlive.ai/register",children:"Get Started"})})]}),a.jsx("button",{className:"lg:hidden p-2 text-foreground",onClick:()=>t(!e),children:e?a.jsx(ip,{className:"w-6 h-6"}):a.jsx(E2,{className:"w-6 h-6"})})]})}),a.jsx(Wj,{children:e&&a.jsx(J.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"lg:hidden bg-background/95 backdrop-blur-xl border-b border-border",children:a.jsxs("nav",{className:"container mx-auto px-4 py-6 flex flex-col gap-4",children:[s.map(o=>o.href.startsWith("/")?a.jsx(Wt,{to:o.href,className:"text-foreground hover:text-primary transition-colors duration-200 text-base font-medium py-2",onClick:()=>t(!1),children:o.name},o.name):a.jsx("a",{href:i(o.href),className:"text-foreground hover:text-primary transition-colors duration-200 text-base font-medium py-2",onClick:l=>{if(r){l.preventDefault(),t(!1);const c=o.href.replace("#",""),u=document.getElementById(c);u&&setTimeout(()=>{u.scrollIntoView({behavior:"smooth"})},300)}else t(!1)},children:o.name},o.name)),a.jsxs("div",{className:"flex flex-col gap-3 pt-4 border-t border-border",children:[a.jsx(ft,{variant:"ghost",asChild:!0,children:a.jsx("a",{href:"https://app.smartcallerlive.ai/login",children:"Login"})}),a.jsx(ft,{variant:"default",asChild:!0,children:a.jsx("a",{href:"https://app.smartcallerlive.ai/register",children:"Get Started"})})]})]})})})]})},kr=y.forwardRef(({className:e,type:t,...n},r)=>a.jsx("input",{type:t,className:ve("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));kr.displayName="Input";var Tn=function(){return Tn=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Tn.apply(this,arguments)};function fo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function e3(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}
341return new(n||(n=Promise))(function(i,o){function l(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?i(d.value):s(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})}function t3(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}const n3=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class tg extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class r3 extends tg{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class zx extends tg{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Wx extends tg{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Mf;(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"})(Mf||(Mf={}));class s3{constructor(t,{headers:n={},customFetch:r,region:s=Mf.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=n3(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return e3(this,arguments,void 0,function*(n,r={}){var s;let i,o;try{const{headers:l,method:c,body:u,signal:d,timeout:h}=r;let f={},{region:m}=r;m||(m=this.region);const w=new URL(`${this.url}/${n}`);m&&m!=="any"&&(f["x-region"]=m,w.searchParams.set("forceFunctionRegion",m));let p;u&&(l&&!Object.prototype.hasOwnProperty.call(l,"Content-Type")||!l)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(f["Content-Type"]="application/octet-stream",p=u):typeof u=="string"?(f["Content-Type"]="text/plain",p=u):typeof FormData<"u"&&u instanceof FormData?p=u:(f["Content-Type"]="application/json",p=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?p=JSON.stringify(u):p=u;let b=d;h&&(o=new AbortController,i=setTimeout(()=>o.abort(),h),d?(b=o.signal,d.addEventListener("abort",()=>o.abort())):b=o.signal);const v=yield this.fetch(w.toString(),{method:c||"POST",headers:Object.assign(Object.assign(Object.assign({},f),this.headers),l),body:p,signal:b}).catch(j=>{throw new r3(j)}),g=v.headers.get("x-relay-error");if(g&&g==="true")throw new zx(v);if(!v.ok)throw new Wx(v);let x=((s=v.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),S;return x==="application/json"?S=yield v.json():x==="application/octet-stream"||x==="application/pdf"?S=yield v.blob():x==="text/event-stream"?S=v:x==="multipart/form-data"?S=yield v.formData():S=yield v.text(),{data:S,error:null,response:v}}catch(l){return{data:null,error:l,response:l instanceof Wx||l instanceof zx?l.context:void 0}}finally{i&&clearTimeout(i)}})}}var i3=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
341de=e.code}},o3=class{constructor(e){var t,n;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var n=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{let o=null,l=null,c=null,u=i.status,d=i.statusText;if(i.ok){var h,f;if(n.method!=="HEAD"){var m;const v=await i.text();v===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((m=n.headers.get("Accept"))===null||m===void 0)&&m.includes("application/vnd.pgrst.plan+text"))?l=v:l=JSON.parse(v))}const p=(h=n.headers.get("Prefer"))===null||h===void 0?void 0:h.match(/count=(exact|planned|estimated)/),b=(f=i.headers.get("content-range"))===null||f===void 0?void 0:f.split("/");p&&b&&b.length>1&&(c=parseInt(b[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(l)&&(l.length>1?(o={code:"PGRST116",details:`Results contain ${l.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},l=null,c=null,u=406,d="Not Acceptable"):l.length===1?l=l[0]:l=null)}else{var w;const p=await i.text();try{o=JSON.parse(p),Array.isArray(o)&&i.status===404&&(l=[],o=null,u=200,d="OK")}catch{i.status===404&&p===""?(u=204,d="No Content"):o={message:p}}if(o&&n.isMaybeSingle&&(!(o==null||(w=o.details)===null||w===void 0)&&w.includes("0 rows"))&&(o=null,u=200,d="OK"),o&&n.shouldThrowOnError)throw new i3(o)}return{error:o,data:l,count:c,status:u,statusText:d}});return this.shouldThrowOnError||(s=s.catch(i=>{var o;let l="";const c=i==null?void 0:i.cause;if(c){var u,d,h,f;const w=(u=c==null?void 0:c.message)!==null&&u!==void 0?u:"",p=(d=c==null?void 0:c.code)!==null&&d!==void 0?d:"";l=`${(h=i==null?void 0:i.name)!==null&&h!==void 0?h:"FetchError"}: ${i==null?void 0:i.message}`,l+=`
342
343Caused by: ${(f=c==null?void 0:c.name)!==null&&f!==void 0?f:"Error"}: ${w}`,p&&(l+=` (${p})`),c!=null&&c.stack&&(l+=`
344${c.stack}`)}else{var m;l=(m=i==null?void 0:i.stack)!==null&&m!==void 0?m:""}return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:l,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),s.then(e,t)}returns(){return this}overrideTypes(){return this}},a3=class extends o3{select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:s=r}={}){const i=s?`${s}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"offset":`${r}.offset`,i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(i,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
344explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:i="text"}={}){var o;const l=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,s?"wal":null].filter(Boolean).join("|"),c=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${c}"; options=${l};`),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 Hx=new RegExp("[,()]");var ni=class extends a3{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Hx.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Hx.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let s="";r==="plain"?s="pl":r==="phrase"?s="ph":r==="websearch"&&(s="w");const i=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${s}fts${i}.${t}`),this}match(e){return Object.entries(e).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},l3=class{constructor(e,{headers:t={},schema:n,fetch:r}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},s=n?"HEAD":"GET";let i=!1;const o=(e??"*").split("").map(u=>/\s/.test(u)&&!i?"":(u==='"'&&(i=!i),u)).join(""),{url:l,headers:c}=this.cloneRequestState();return l.searchParams.set("select",o),r&&c.append("Prefer",`count=${r}`),new ni({method:s,url:l,headers:c,schema:this.schema,fetch:this.fetch})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const s="POST",{url:i,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),n||o.append("Prefer","missing=default"),Array.isArray(e)){const l=e.reduce((c,u)=>c.concat(Object.keys(u)),[]);if(l.length>0){const c=[...new Set(l)].map(u=>`"${u}"`);i.searchParams.set("columns",c.join(","))}}return new ni({method:s,url:i,headers:o,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:s=!0}={}){var i;const o="POST",{url:l,headers:c}=this.cloneRequestState();if(c.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&l.searchParams.set("on_conflict",t),r&&c.append("Prefer",`count=${r}`),s||c.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((d,h)=>d.concat(Object.keys(h)),[]);if(u.length>0){const d=[...new Set(u)].map(h=>`"${h}"`);l.searchParams.set("columns",d.join(","))}}return new ni({method:o,url:l,headers:c,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}update(e,{count:t}={}){var n;const r="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new ni({method:r,url:s,headers:i,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new ni({method:n,url:r,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch})}},c3=class $N{constructor(t,{headers:n={},schema:r,fetch:s}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,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 l3(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new $N(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let l;const c=new URL(`${this.url}/rpc/${t}`);let u;const d=m=>m!==null&&typeof m=="object"&&(!Array.isArray(m)||m.some(d)),h=r&&Object.values(n).some(d);h?(l="POST",u=n):r||s?(l=r?"HEAD":"GET",Object.entries(n).filter(([m,w])=>w!==void 0).map(([m,w])=>[m,Array.isArray(w)?`{${w.join(",")}}`:`${w}
344`]).forEach(([m,w])=>{c.searchParams.append(m,w)})):(l="POST",u=n);const f=new Headers(this.headers);return h?f.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&f.set("Prefer",`count=${i}`),new ni({method:l,url:c,headers:f,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};class u3{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const s=r.node,i=parseInt(s.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
345import ws from "ws"
346new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
347
348Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const d3="2.90.1",h3=`realtime-js/${d3}`,FN="1.0.0",f3="2.0.0",Kx=FN,Lf=1e4,m3=1e3,p3=100;var gr;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(gr||(gr={}));var Be;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Be||(Be={}));var dn;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(dn||(dn={}));var Df;(function(e){e.websocket="websocket"})(Df||(Df={}));var us;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(us||(us={}));class g3{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,n,r){var s,i;const o=t.topic,l=(s=t.ref)!==null&&s!==void 0?s:"",c=(i=t.join_ref)!==null&&i!==void 0?i:"",u=t.payload.event,d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},h=Object.keys(d).length===0?"":JSON.stringify(d);if(c.length>255)throw new Error(`joinRef length ${c.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`ref length ${l.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(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const f=this.USER_BROADCAST_PUSH_META_LENGTH+c.length+l.length+o.length+u.length+h.length,m=new ArrayBuffer(this.HEADER_LENGTH+f);let w=new DataView(m),p=0;w.setUint8(p++,this.KINDS.userBroadcastPush),w.setUint8(p++,c.length),w.setUint8(p++,l.length),w.setUint8(p++,o.length),w.setUint8(p++,u.length),w.setUint8(p++,h.length),w.setUint8(p++,n),Array.from(c,v=>w.setUint8(p++,v.charCodeAt(0))),Array.from(l,v=>w.setUint8(p++,v.charCodeAt(0))),Array.from(o,v=>w.setUint8(p++,v.charCodeAt(0))),Array.from(u,v=>w.setUint8(p++,v.charCodeAt(0))),Array.from(h,v=>w.setUint8(p++,v.charCodeAt(0)));var b=new Uint8Array(m.byteLength+r.byteLength);return b.set(new Uint8Array(m),0),b.set(new Uint8Array(r),m.byteLength),b.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[s,i,o,l,c]=r;
348return n({join_ref:s,ref:i,topic:o,event:l,payload:c})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),s=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,s)}}_decodeUserBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2),o=n.getUint8(3),l=n.getUint8(4);let c=this.HEADER_LENGTH+4;const u=r.decode(t.slice(c,c+s));c=c+s;const d=r.decode(t.slice(c,c+i));c=c+i;const h=r.decode(t.slice(c,c+o));c=c+o;const f=t.slice(c,t.byteLength),m=l===this.JSON_ENCODING?JSON.parse(r.decode(f)):f,w={type:this.BROADCAST_EVENT,event:d,payload:m};return o>0&&(w.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:w}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}class VN{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var xe;(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"})(xe||(xe={}));const qx=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((i,o)=>(i[o]=y3(o,e,t,s),i),{}):{}},y3=(e,t,n,r)=>{const s=t.find(l=>
348l.name===e),i=s==null?void 0:s.type,o=n[e];return i&&!r.includes(i)?UN(i,o):$f(o)},UN=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return b3(t,n)}switch(e){case xe.bool:return v3(t);case xe.float4:case xe.float8:case xe.int2:case xe.int4:case xe.int8:case xe.numeric:case xe.oid:return x3(t);case xe.json:case xe.jsonb:return w3(t);case xe.timestamp:return S3(t);case xe.abstime:case xe.date:case xe.daterange:case xe.int4range:case xe.int8range:case xe.money:case xe.reltime:case xe.text:case xe.time:case xe.timestamptz:case xe.timetz:case xe.tsrange:case xe.tstzrange:return $f(t);default:return $f(t)}},$f=e=>e,v3=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},x3=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},w3=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},b3=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(l=>UN(t,l))}return e},S3=e=>typeof e=="string"?e.replace(" ","T"):e,BN=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 Fd{constructor(t,n,r={},s=Lf){this.channel=t,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Gx;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Gx||(Gx={}));class Xo{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:i,onLeave:o,onSync:l}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Xo.syncState(this.state,s,i,o),this.pendingDiffs.forEach(c=>{this.state=Xo.syncDiff(this.state,c,i,o)}),this.pendingDiffs=[],l()}),this.channel._on(r.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Xo.syncDiff(this.state,s,i,o),l())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,s){const i=this.cloneDeep(t),o=this.transformState(n),l={},c={};return this.map(i,(u,d)=>{o[u]||(c[u]=d)}),this.map(o,(u,d)=>{const h=i[u];if(h){const f=d.map(b=>b.presence_ref),m=h.map(b=>b.presence_ref),w=d.filter(b=>m.indexOf(b.presence_ref)<0),p=h.filter(b=>f.indexOf(b.presence_ref)<0);w.length>0&&(l[u]=w),p.length>0&&(c[u]=p)}else l[u]=d}),this.syncDiff(i,{joins:l,leaves:c},r,s)}static syncDiff(t,n,r,s){const{joins:i,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(i,(l,c)=>{var u;
348const d=(u=t[l])!==null&&u!==void 0?u:[];if(t[l]=this.cloneDeep(c),d.length>0){const h=t[l].map(m=>m.presence_ref),f=d.filter(m=>h.indexOf(m.presence_ref)<0);t[l].unshift(...f)}r(l,d,c)}),this.map(o,(l,c)=>{let u=t[l];if(!u)return;const d=c.map(h=>h.presence_ref);u=u.filter(h=>d.indexOf(h.presence_ref)<0),t[l]=u,s(l,u,c),u.length===0&&delete t[l]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return"metas"in s?n[r]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):n[r]=s,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Yx;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Yx||(Yx={}));var Jo;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Jo||(Jo={}));var Vn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Vn||(Vn={}));class Si{constructor(t,n={config:{}},r){var s,i;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Be.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new Fd(this,dn.join,this.params,this.timeout),this.rejoinTimer=new VN(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Be.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=Be.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Be.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Be.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Be.errored,this.rejoinTimer.scheduleTimeout())}),this._on(dn.reply,{},(o,l)=>{this._trigger(this._replyEventName(l),o)}),this.presence=new Xo(this),this.broadcastEndpointURL=BN(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==Be.closed){const{config:{broadcast:o,presence:l,private:c}}=this.params,u=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(m=>m.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[Jo.PRESENCE]&&this.bindings[Jo.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,h={},f={broadcast:o,presence:Object.assign(Object.assign({},l),{enabled:d}),postgres_changes:u,private:c};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(m=>t==null?void 0:t(Vn.CHANNEL_ERROR,m)),this._onClose(()=>t==null?void 0:t(Vn.CLOSED)),this.updateJoinPayload(Object.assign({config:f},h)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:m})=>{var w;if(this.socket._isManualToken()||this.socket.setAuth(),m===void 0){t==null||t(Vn.SUBSCRIBED);return}else{const p=this.bindings.postgres_changes,b=(w=p==null?void 0:p.length)!==null&&w!==void 0?w:0,v=[];for(let g=0;g<b;g++){const x=p[g],{filter:{event:S,schema:j,table:N,filter:C}}=x,E=m&&m[g];if(E&&E.event===S&&Si.isFilterValueEqual(E.schema,j)&&Si.isFilterValueEqual(E.table,N)&&Si.isFilterValueEqual(E.filter,C))v.push(Object.assign(Object.assign({},x),{id:E.id}));else{this.unsubscribe(),this.state=Be.errored,t==null||t(Vn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=v,t&&t(Vn.SUBSCRIBED);return}}).receive("error",m=>{this.state=Be.errored,t==null||t(Vn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(m).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Vn.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===Be.joined&&t===Jo.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,n,r)}async httpSend(t,n,r={}){var s;if(n==null)return Promise.reject("Payload is required for httpSend()");const i={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},l=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(l.status===202)return{success:!0};let c=l.statusText;
348try{const u=await l.json();c=u.error||u.message||c}catch{}return Promise.reject(new Error(c))}async send(t,n={}){var r,s;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=t,l={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(l.Authorization=`Bearer ${this.socket.accessTokenValue}`);const c={method:"POST",headers:l,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,l,c;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(l=(o=this.params)===null||o===void 0?void 0:o.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.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=Be.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(dn.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new Fd(this,dn.leave,{},t),r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Be.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new Fd(this,t,n,r);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>p3){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var s,i;const o=t.toLocaleLowerCase(),{close:l,error:c,leave:u,join:d}=dn;if(r&&[l,c,u,d].indexOf(o)>=0&&r!==this._joinRef())return;let f=this._onMessage(o,n,r);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(m=>{var w,p,b;return((w=m.filter)===null||w===void 0?void 0:w.event)==="*"||((b=(p=m.filter)===null||p===void 0?void 0:p.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===o}).map(m=>m.callback(f,r)):(i=this.bindings[o])===null||i===void 0||i.filter(m=>{var w,p,b,v,g,x,S,j;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in m){const N=m.id,C=(w=m.filter)===null||w===void 0?void 0:w.event;return N&&((p=n.ids)===null||p===void 0?void 0:p.includes(N))&&(C==="*"||(C==null?void 0:C.toLocaleLowerCase())===((b=n.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))&&(!(!((v=m.filter)===null||v===void 0)&&v.table)||m.filter.table===((g=n.data)===null||g===void 0?void 0:g.table))}else{const N=(S=(x=m==null?void 0:m.filter)===null||x===void 0?void 0:x.event)===null||S===void 0?void 0:S.toLocaleLowerCase();return N==="*"||N===((j=n==null?void 0:n.event)===null||j===void 0?void 0:j.toLocaleLowerCase())}else return m.type.toLocaleLowerCase()===o}).map(m=>{if(typeof f=="object"&&"ids"in f){const w=f.data,{schema:p,table:b,commit_timestamp:v,type:g,errors:x}=w;f=Object.assign(Object.assign({},{schema:p,table:b,commit_timestamp:v,eventType:g,new:{},old:{},errors:x}),this._getPayloadRecords(w))}m.callback(f,r)}
348)}_isClosed(){return this.state===Be.closed}_isJoined(){return this.state===Be.joined}_isJoining(){return this.state===Be.joining}_isLeaving(){return this.state===Be.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const s=t.toLocaleLowerCase(),i={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===r&&Si.isEqual(s.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(dn.close,{},t)}_onError(t){this._on(dn.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Be.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=qx(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=qx(t.columns,t.old_record)),n}}const Vd=()=>{},Tl={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},j3=[1e3,2e3,5e3,1e4],N3=1e4,C3=`
349  addEventListener("message", (e) => {
350    if (e.data.event === "start") {
351      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
352    }
353  });`;class E3{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Lf,this.transport=null,this.heartbeatIntervalMs=Tl.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Vd,this.ref=0,this.reconnectTimer=null,this.vsn=Kx,this.logger=Vd,this.conn=null,this.sendBuffer=[],this.serializer=new g3,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=s=>s?(...i)=>s(...i):(...i)=>fetch(...i),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${Df.websocket}`,this.httpEndpoint=BN(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=u3.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
354
355To use Realtime in Node.js, you need to provide a WebSocket implementation:
356
357Option 1: Use Node.js 22+ which has native WebSocket support
358Option 2: Install and provide the "ws" package:
359
360  npm install ws
361
362  import ws from "ws"
363  const client = new RealtimeClient(url, {
364    ...options,
365    transport: ws
366  })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,n??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case gr.connecting:return us.Connecting;case gr.open:return us.Open;case gr.closing:return us.Closing;default:return us.Closed}}isConnected(){return this.connectionState()===us.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}
366channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new Si(`realtime:${t}`,n,this);return this.channels.push(i),i}}push(t){const{topic:n,event:r,payload:s,ref:i}=t,o=()=>{this.encode(t,l=>{var c;(c=this.conn)===null||c===void 0||c.send(l)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(m3,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Tl.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>{if(n.topic==="phoenix"&&n.event==="phx_reply"&&n.ref&&n.ref===this.pendingHeartbeatRef){const u=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error",u)}catch(d){this.log("error","error in heartbeat callback",d)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:r,event:s,payload:i,ref:o}=n,l=o?`(${o})`:"",c=i.status||"";this.log("receive",`${c} ${r} ${s} ${l}`.trim(),i),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(s,i,o)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===gr.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===gr.open||this.conn.readyState===gr.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(n=>{this.log("error","error waiting for auth on connect",n),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}
366_triggerChanError(){this.channels.forEach(t=>t._trigger(dn.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${t}${r}${s}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([C3],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(s=>{const i={access_token:n,version:h3};n&&s.updateJoinPayload(i),s.joinedOnce&&s._isJoined()&&s._push(dn.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new VN(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Tl.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,s,i,o,l,c,u,d,h,f,m;switch(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.timeout)!==null&&r!==void 0?r:Lf,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:Tl.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=(l=t==null?void 0:t.heartbeatCallback)!==null&&l!==void 0?l:Vd,this.vsn=(c=t==null?void 0:t.vsn)!==null&&c!==void 0?c:Kx,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=>j3[w-1]||N3,this.vsn){case FN:this.encode=(d=t==null?void 0:t.encode)!==null&&d!==void 0?d:(w,p)=>p(JSON.stringify(w)),this.decode=(h=t==null?void 0:t.decode)!==null&&h!==void 0?h:(w,p)=>p(JSON.parse(w));break;case f3:this.encode=(f=t==null?void 0:t.encode)!==null&&f!==void 0?f:this.serializer.encode.bind(this.serializer),this.decode=(m=t==null?void 0:t.decode)!==null&&m!==void 0?m: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 _a=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function T3(e,t,n){const r=new URL(t,e);if(n)for(const[s,i]of Object.entries(n))i!==void 0&&r.searchParams.set(s,i);return r.toString()}async function k3(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 _3(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:o}){const l=T3(e.baseUrl,r,s),c=await k3(e.auth),u=await t(l,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...c,...o},body:i?JSON.stringify(i):void 0}),d=await u.text(),h=(u.headers.get("content-type")||"").includes("application/json"),f=h&&d?JSON.parse(d):d;if(!u.ok){const m=h?f:void 0,w=m==null?void 0:m.error;throw new _a((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:m})}return{status:u.status,headers:u.headers,data:f}}}}function kl(e){return e.join("�")}var A3=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:kl(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${kl(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${kl(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${kl(e.namespace)}`}),!0}catch(t){if(t instanceof _a&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof _a&&n.status===409)return;throw n}}};function qs(e){return e.join("�")}var P3=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${qs(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${qs(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${qs(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${qs(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/${qs(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/${qs(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof _a&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof _a&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},R3=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=_3({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new A3(this.client,t),this.tableOps=new P3(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)}
366async 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)}},Au=class extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}};function ke(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var I3=class extends Au{constructor(e,t,n){super(e),this.name="StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},Ff=class extends Au{constructor(e,t){super(e),this.name="StorageUnknownError",this.originalError=t}};const ng=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),O3=()=>Response,Vf=e=>{if(Array.isArray(e))return e.map(n=>Vf(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=Vf(r)}),t},M3=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)},L3=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function Aa(e){"@babel/helpers - typeof";return Aa=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},Aa(e)}function D3(e,t){if(Aa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Aa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $3(e){var t=D3(e,"string");return Aa(t)=="symbol"?t:t+""}function F3(e,t,n){return(t=$3(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qx(Object(n),!0).forEach(function(r){F3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const Ud=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)},V3=async(e,t,n)=>{e instanceof await O3()&&!(n!=null&&n.noResolveJson)?e.json().then(r=>{const s=e.status||500,i=(r==null?void 0:r.statusCode)||s+"";t(new I3(Ud(r),s,i))}).catch(r=>{t(new Ff(Ud(r),r))}):t(new Ff(Ud(e),e))},U3=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!r?s:(M3(r)?(s.headers=G({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(r)):s.body=r,t!=null&&t.duplex&&(s.duplex=t.duplex),G(G({},s),n))};async function Ja(e,t,n,r,s,i){return new Promise((o,l)=>{e(n,U3(t,r,s,i)).then(c=>{if(!c.ok)throw c;return r!=null&&r.noResolveJson?c:c.json()}).then(c=>o(c)).catch(c=>V3(c,l,r))})}async function Pa(e,t,n,r){return Ja(e,"GET",t,n,r)}async function an(e,t,n,r,s){return Ja(e,"POST",t,r,s,n)}async function Uf(e,t,n,r,s){return Ja(e,"PUT",t,r,s,n)}async function B3(e,t,n,r){return Ja(e,"HEAD",t,G(G({},n),{},{noResolveJson:!0}),r)}async function rg(e,t,n,r,s){return Ja(e,"DELETE",t,r,s,n)}var z3=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(ke(t))return{data:null,error:t};throw t}}};let zN;zN=Symbol.toStringTag;var W3=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[zN]="BlobDownloadBuilder",this.promise=null}asStream(){return new z3(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(ke(t))return{data:null,error:t};throw t}}};const H3={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Xx={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var K3=class{constructor(e,t={},n,r){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.bucketId=n,this.fetch=ng(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async uploadOrUpdate(e,t,n,r){var s=this;try{let i;const o=G(G({},Xx),r);let l=G(G({},s.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const c=o.metadata;typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),c&&i.append("metadata",s.encodeMetadata(c)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),c&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(c))):(i=n,l["cache-control"]=`max-age=${o.cacheControl}`,l["content-type"]=o.contentType,c&&(l["x-metadata"]=s.toBase64(s.encodeMetadata(c))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),r!=null&&r.headers&&(l=G(G({},l),r.headers));const u=s._removeEmptyFolders(t),d=s._getFinalPath(u),h=await(e=="PUT"?Uf:an)(s.fetch,`${s.url}/object/${d}`,i,G({headers:l},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:u,id:h.Id,fullPath:h.Key},error:null}}catch(i){if(s.shouldThrowOnError)throw i;if(ke(i))return{data:null,error:i};throw i}}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var s=this;const i=s._removeEmptyFolders(e),o=s._getFinalPath(i),l=new URL(s.url+`/object/upload/sign/${o}`);l.searchParams.set("token",t);try{let c;const u=G({upsert:Xx.upsert},r),d=G(G({},s.headers),{"x-upsert":String(u.upsert)});return typeof Blob<"u"&&n instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),c.append("",n)):typeof FormData<"u"&&n instanceof FormData?(c=n,c.append("cacheControl",u.cacheControl)):(c=n,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType),{data:{path:i,fullPath:(await Uf(s.fetch,l.toString(),c,{headers:d})).Key},error:null}}catch(c){if(s.shouldThrowOnError)throw c;if(ke(c))return{data:null,error:c};throw c}}async createSignedUploadUrl(e,t){var n=this;try{let r=n._getFinalPath(e);const s=G({},n.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await an(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:s}),o=new URL(n.url+i.url),l=o.searchParams.get("token");if(!l)throw new Au("No token returned by API");return{data:{signedUrl:o.toString(),path:e,token:l},error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(ke(r))return{data:null,error:r};throw r}}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;try{return{data:await an(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
366stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}),error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(ke(s))return{data:null,error:s};throw s}}async copy(e,t,n){var r=this;try{return{data:{path:(await an(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key},error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(ke(s))return{data:null,error:s};throw s}}async createSignedUrl(e,t,n){var r=this;try{let s=r._getFinalPath(e),i=await an(r.fetch,`${r.url}/object/sign/${s}`,G({expiresIn:t},n!=null&&n.transform?{transform:n.transform}:{}),{headers:r.headers});const o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i={signedUrl:encodeURI(`${r.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(ke(s))return{data:null,error:s};throw s}}async createSignedUrls(e,t,n){var r=this;try{const s=await an(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),i=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:s.map(o=>G(G({},o),{},{signedUrl:o.signedURL?encodeURI(`${r.url}${o.signedURL}${i}`):null})),error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(ke(s))return{data:null,error:s};throw s}}download(e,t){const n=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",r=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),s=r?`?${r}`:"",i=this._getFinalPath(e),o=()=>Pa(this.fetch,`${this.url}/${n}/${i}${s}`,{headers:this.headers,noResolveJson:!0});return new W3(o,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);try{return{data:Vf(await Pa(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(ke(r))return{data:null,error:r};throw r}}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await B3(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(ke(r)&&r instanceof Ff){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],s=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";s!==""&&r.push(s);const i=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",o=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});o!==""&&r.push(o);let l=r.join("&");return l!==""&&(l=`?${l}`),{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}${l}`)}}}async remove(e){var t=this;try{return{data:await rg(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ke(n))return{data:null,error:n};throw n}}async list(e,t,n){var r=this;try{const s=G(G(G({},H3),t),{},{prefix:e||""});return{data:await an(r.fetch,`${r.url}/object/list/${r.bucketId}`,s,{headers:r.headers},n),error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(ke(s))return{data:null,error:s};throw s}}async listV2(e,t){var n=this;try{const r=G({},e);return{data:await an(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(ke(r))return{data:null,error:r};throw r}}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 WN="2.90.1",HN={"X-Client-Info":`storage-js/${WN}`};var q3=class{constructor(e,t={},n,r){this.shouldThrowOnError=!1;const s=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase.")),this.url=s.href.replace(/\/$/,""),this.headers=G(G({},HN),t),this.fetch=ng(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async listBuckets(e){var t=this;try{const n=t.listBucketOptionsToQueryString(e);return{data:await Pa(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ke(n))return{data:null,error:n};throw n}}async getBucket(e){var t=this;try{return{data:await Pa(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ke(n))return{data:null,error:n};throw n}}async createBucket(e,t={public:!1}){var n=this;try{return{data:await an(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(ke(r))return{data:null,error:r};throw r}}async updateBucket(e,t){var n=this;try{return{data:await Uf(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(ke(r))return{data:null,error:r};throw r}}async emptyBucket(e){var t=this;try{return{data:await an(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ke(n))return{data:null,error:n};throw n}}async deleteBucket(e){var t=this;try{return{data:await rg(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ke(n))return{data:null,error:n};throw n}}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():""}},G3=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=G(G({},HN),t),this.fetch=ng(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await an(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ke(n))return{data:null,error:n};throw n}}async listBuckets(e){var t=this;try{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),s=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return{data:await Pa(t.fetch,s,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ke(n))return{data:null,error:n};throw n}}async deleteBucket(e){var t=this;try{return{data:await rg(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ke(n))return{data:null,error:n};throw n}}from(e){var t=this;if(!L3(e))throw new Au("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new R3({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
366),r=this.shouldThrowOnError;return new Proxy(n,{get(s,i){const o=s[i];return typeof o!="function"?o:async(...l)=>{try{return{data:await o.apply(s,l),error:null}}catch(c){if(r)throw c;return{data:null,error:c}}}}})}};const sg={"X-Client-Info":`storage-js/${WN}`,"Content-Type":"application/json"};var KN=class extends Error{constructor(e){super(e),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}};function Tt(e){return typeof e=="object"&&e!==null&&"__isStorageVectorsError"in e}var Bd=class extends KN{constructor(e,t,n){super(e),this.name="StorageVectorsApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},Y3=class extends KN{constructor(e,t){super(e),this.name="StorageVectorsUnknownError",this.originalError=t}};const ig=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),Q3=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)},Jx=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),X3=async(e,t,n)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(n!=null&&n.noResolveJson)){const r=e.status||500,s=e;if(typeof s.json=="function")s.json().then(i=>{const o=(i==null?void 0:i.statusCode)||(i==null?void 0:i.code)||r+"";t(new Bd(Jx(i),r,o))}).catch(()=>{const i=r+"";t(new Bd(s.statusText||`HTTP ${r} error`,r,i))});else{const i=r+"";t(new Bd(s.statusText||`HTTP ${r} error`,r,i))}}else t(new Y3(Jx(e),e))},J3=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return r?(Q3(r)?(s.headers=G({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(r)):s.body=r,G(G({},s),n)):s};async function Z3(e,t,n,r,s,i){return new Promise((o,l)=>{e(n,J3(t,r,s,i)).then(c=>{if(!c.ok)throw c;if(r!=null&&r.noResolveJson)return c;const u=c.headers.get("content-type");return!u||!u.includes("application/json")?{}:c.json()}).then(c=>o(c)).catch(c=>X3(c,l,r))})}async function kt(e,t,n,r,s){return Z3(e,"POST",t,r,s,n)}var e5=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=G(G({},sg),t),this.fetch=ig(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createIndex(e){var t=this;try{return{data:await kt(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Tt(n))return{data:null,error:n};throw n}}async getIndex(e,t){var n=this;try{return{data:await kt(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(Tt(r))return{data:null,error:r};throw r}}async listIndexes(e){var t=this;try{return{data:await kt(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Tt(n))return{data:null,error:n};throw n}}async deleteIndex(e,t){var n=this;try{return{data:await kt(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{},error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(Tt(r))return{data:null,error:r};throw r}}},t5=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=G(G({},sg),t),this.fetch=ig(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async putVectors(e){var t=this;try{if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:await kt(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Tt(n))return{data:null,error:n};throw n}}async getVectors(e){var t=this;try{return{data:await kt(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Tt(n))return{data:null,error:n};throw n}}async listVectors(e){var t=this;try{if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
366if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return{data:await kt(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Tt(n))return{data:null,error:n};throw n}}async queryVectors(e){var t=this;try{return{data:await kt(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Tt(n))return{data:null,error:n};throw n}}async deleteVectors(e){var t=this;try{if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:await kt(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Tt(n))return{data:null,error:n};throw n}}},n5=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=G(G({},sg),t),this.fetch=ig(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await kt(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Tt(n))return{data:null,error:n};throw n}}async getBucket(e){var t=this;try{return{data:await kt(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Tt(n))return{data:null,error:n};throw n}}async listBuckets(e={}){var t=this;try{return{data:await kt(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Tt(n))return{data:null,error:n};throw n}}async deleteBucket(e){var t=this;try{return{data:await kt(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Tt(n))return{data:null,error:n};throw n}}},r5=class extends n5{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new s5(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},s5=class extends e5{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new i5(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},i5=class extends t5{constructor(e,t,n,r,s){super(e,t,s),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},o5=class extends q3{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new K3(this.url,this.headers,e,this.fetch)}get vectors(){return new r5(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new G3(this.url+"/iceberg",this.headers,this.fetch)}};const qN="2.90.1",ri=30*1e3,Bf=3,zd=Bf*ri,a5="http://localhost:9999",l5="supabase.auth.token",c5={"X-Client-Info":`gotrue-js/${qN}`},zf="X-Supabase-Api-Version",GN={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},u5=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,d5=10*60*1e3;
366class Ra extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function z(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class h5 extends Ra{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function f5(e){return z(e)&&e.name==="AuthApiError"}class ds extends Ra{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class nr extends Ra{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class Nt extends nr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function m5(e){return z(e)&&e.name==="AuthSessionMissingError"}class Gs extends nr{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class _l extends nr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Al extends nr{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function p5(e){return z(e)&&e.name==="AuthImplicitGrantRedirectError"}class Zx extends nr{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class g5 extends nr{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 Wf extends nr{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Wd(e){return z(e)&&e.name==="AuthRetryableFetchError"}class e0 extends nr{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class Hf extends nr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Uc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),t0=` 	
367\r=`.split(""),y5=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<t0.length;t+=1)e[t0[t].charCodeAt(0)]=-2;for(let t=0;t<Uc.length;t+=1)e[Uc[t].charCodeAt(0)]=t;return e})();function n0(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Uc[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Uc[r]),t.queuedBits-=6}}function YN(e,t,n){const r=y5[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function r0(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{w5(o,r,n)};for(let o=0;o<e.length;o+=1)YN(e.charCodeAt(o),s,i);return t.join("")}function v5(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 x5(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}v5(r,t)}}function w5(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function Ri(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)YN(e.charCodeAt(s),n,r);return new Uint8Array(t)}function b5(e){const t=[];return x5(e,n=>t.push(n)),new Uint8Array(t)}function ys(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>n0(s,n,r)),n0(null,n,r),t.join("")}function S5(e){return Math.round(Date.now()/1e3)+e}function j5(){return Symbol("auth-callback")}const Xe=()=>typeof window<"u"&&typeof document<"u",ss={tested:!1,writable:!1},QN=()=>{if(!Xe())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(ss.tested)return ss.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),ss.tested=!0,ss.writable=!0}catch{ss.tested=!0,ss.writable=!1}return ss.writable};function N5(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const XN=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),C5=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",si=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},is=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Qe=async(e,t)=>{await e.removeItem(t)};class Pu{constructor(){this.promise=new Pu.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Pu.promiseConstructor=Promise;function Hd(e){const t=e.split(".");if(t.length!==3)throw new Hf("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!u5.test(t[r]))throw new Hf("JWT not in base64url format");return{header:JSON.parse(r0(t[0])),payload:JSON.parse(r0(t[1])),signature:Ri(t[2]),raw:{header:t[0],payload:t[1]}}}async function E5(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function T5(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){r(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function k5(e){return("0"+e.toString(16)).substr(-2)}function _5(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,k5).join("")}async function A5(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",
367n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function P5(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await A5(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Ys(e,t,n=!1){const r=_5();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await si(e,`${t}-code-verifier`,s);const i=await P5(r);return[i,r===i?"plain":"s256"]}const R5=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function I5(e){const t=e.headers.get(zf);if(!t||!t.match(R5))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function O5(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 M5(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 L5=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Qs(e){if(!L5.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Kd(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function D5(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;if(typeof r=="symbol"){const i=r.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,s)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,s)}})}function s0(e){return JSON.parse(JSON.stringify(e))}const cs=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),$5=[502,503,504];async function i0(e){var t;if(!C5(e))throw new Wf(cs(e),0);if($5.includes(e.status))throw new Wf(cs(e),e.status);let n;try{n=await e.json()}catch(i){throw new ds(cs(i),i)}let r;const s=I5(e);if(s&&s.getTime()>=GN["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new e0(cs(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new Nt}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new e0(cs(n),e.status,n.weak_password.reasons);throw new h5(cs(n),e.status||500,r)}const F5=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function q(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[zf]||(i[zf]=GN["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const o=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const l=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",c=await V5(e,t,n+l,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(c):{data:Object.assign({},c),error:null}}async function V5(e,t,n,r,s,i){const o=F5(t,r,s,i);let l;try{l=await e(n,Object.assign({},o))}catch(c){throw console.error(c),new Wf(cs(c),0)}if(l.ok||await i0(l),r!=null&&r.noResolveJson)return l;try{return await l.json()}catch(c){await i0(c)}}function tn(e){var t;let n=null;z5(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=S5(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function o0(e){const t=tn(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function xr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function U5(e){return{data:e,error:null}}function B5(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=fo(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},c=Object.assign({},o);return{data:{properties:l,user:c},error:null}}function a0(e){return e}function z5(e){return e.access_token&&e.refresh_token&&e.expires_in}const qd=["global","local","others"];class W5{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=XN(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,n=qd[0]){if(qd.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${qd.join(", ")}`);try{return await q(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(z(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await q(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:xr})}catch(r){if(z(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=fo(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await q(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:B5,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(z(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await q(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:xr})}catch(n){if(z(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,o,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await q(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:a0});if(d.error)throw d.error;const h=await d.json(),f=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,m=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return m.length>0&&(m.forEach(w=>{const p=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(w.split(";")[1].split("=")[1]);u[`${b}Page`]=p}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(z(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){Qs(t);try{return await q(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:xr})}catch(n){if(z(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Qs(t);try{return await q(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:xr})}catch(r){if(z(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){Qs(t);
367try{return await q(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:xr})}catch(r){if(z(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){Qs(t.userId);try{const{data:n,error:r}=await q(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(z(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Qs(t.userId),Qs(t.id);try{return{data:await q(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(z(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,s,i,o,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await q(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:a0});if(d.error)throw d.error;const h=await d.json(),f=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,m=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return m.length>0&&(m.forEach(w=>{const p=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(w.split(";")[1].split("=")[1]);u[`${b}Page`]=p}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(z(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await q(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(z(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await q(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(z(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await q(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(z(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await q(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(z(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await q(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(z(n))return{data:null,error:n};throw n}}}function l0(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const Xs={debug:!!(globalThis&&QN()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class JN extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class H5 extends JN{}async function K5(e,t,n){Xs.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),Xs.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){Xs.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{Xs.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw Xs.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new H5(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Xs.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null,"  "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}function q5(){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 ZN(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}
367" is invalid.`);return e.toLowerCase()}function G5(e){return parseInt(e,16)}function Y5(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function Q5(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:l,requestId:c,resources:u,scheme:d,uri:h,version:f}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
368`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const m=ZN(e.address),w=d?`${d}://${r}`:r,p=e.statement?`${e.statement}
369`:"",b=`${w} wants you to sign in with your Ethereum account:
370${m}
371
372${p}`;let v=`URI: ${h}
373Version: ${f}
374Chain ID: ${n}${o?`
375Nonce: ${o}`:""}
376Issued At: ${i.toISOString()}`;if(s&&(v+=`
377Expiration Time: ${s.toISOString()}`),l&&(v+=`
378Not Before: ${l.toISOString()}`),c&&(v+=`
379Request ID: ${c}`),u){let g=`
380Resources:`;for(const x of u){if(!x||typeof x!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${x}`);g+=`
381- ${x}`}v+=g}return`${b}
382${v}`}class $e extends Error{constructor({message:t,code:n,cause:r,name:s}){var i;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=s??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}}class Bc extends $e{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function X5({error:e,options:t}){var n,r,s;const{publicKey:i}=t;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new $e({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=i.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new $e({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=i.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new $e({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 $e({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 $e({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new $e({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(l=>l.type==="public-key").length===0?new $e({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new $e({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(eC(o)){if(i.rp.id!==o)return new $e({message:`The RP ID "${i.rp.id}
382" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new $e({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 $e({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 $e({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 $e({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function J5({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new $e({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new $e({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(eC(r)){if(n.rpId!==r)return new $e({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new $e({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new $e({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 $e({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class Z5{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const e$=new Z5;function t$(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,s=fo(e,["challenge","user","excludeCredentials"]),i=Ri(t).buffer,o=Object.assign(Object.assign({},n),{id:Ri(n.id).buffer}),l=Object.assign(Object.assign({},s),{challenge:i,user:o});if(r&&r.length>0){l.excludeCredentials=new Array(r.length);for(let c=0;c<r.length;c++){const u=r[c];l.excludeCredentials[c]=Object.assign(Object.assign({},u),{id:Ri(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return l}function n$(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=fo(e,["challenge","allowCredentials"]),s=Ri(t).buffer,i=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const l=n[o];i.allowCredentials[o]=Object.assign(Object.assign({},l),{id:Ri(l.id).buffer,type:l.type||"public-key",transports:l.transports})}}return i}function r$(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:ys(new Uint8Array(e.response.attestationObject)),clientDataJSON:ys(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function s$(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:ys(new Uint8Array(s.authenticatorData)),clientDataJSON:ys(new Uint8Array(s.clientDataJSON)),signature:ys(new Uint8Array(s.signature)),userHandle:s.userHandle?ys(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function eC(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function c0(){var e,t;return!!(Xe()&&"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 i$(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Bc("Browser returned unexpected credential type",t)}:{data:null,error:new Bc("Empty credential response",t)}}
382catch(t){return{data:null,error:X5({error:t,options:e})}}}async function o$(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Bc("Browser returned unexpected credential type",t)}:{data:null,error:new Bc("Empty credential response",t)}}catch(t){return{data:null,error:J5({error:t,options:e})}}}const a$={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},l$={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function zc(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of e)if(s)for(const i in s){const o=s[i];if(o!==void 0)if(Array.isArray(o))r[i]=o;else if(n(o))r[i]=o;else if(t(o)){const l=r[i];t(l)?r[i]=zc(l,o):r[i]=zc(o)}else r[i]=o}return r}function c$(e,t){return zc(a$,e,t||{})}function u$(e,t){return zc(l$,e,t||{})}class d${constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:s},i){try{const{data:o,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!o)return{data:null,error:l};const c=s??e$.createNewAbortSignal();if(o.webauthn.type==="create"){const{user:u}=o.webauthn.credential_options.publicKey;u.name||(u.name=`${u.id}:${r}`),u.displayName||(u.displayName=u.name)}switch(o.webauthn.type){case"create":{const u=c$(o.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:d,error:h}=await i$({publicKey:u,signal:c});return d?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}case"request":{const u=u$(o.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:d,error:h}=await o$(Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:u,signal:c}));return d?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}}}catch(o){return z(o)?{data:null,error:o}:{data:null,error:new ds("Unexpected error in challenge",o)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Ra("rpId is required for WebAuthn authentication")};try{if(!c0())return{data:null,error:new ds("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:i});if(!o)return{data:null,error:l};const{webauthn:c}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:c.type,rpId:n,rpOrigins:r,credential_response:c.credential_response}})}catch(o){return z(o)?{data:null,error:o}:{data:null,error:new ds("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Ra("rpId is required for WebAuthn registration")};try{if(!c0())return{data:null,error:new ds("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(d=>{var h;return(h=d.data)===null||h===void 0?void 0:h.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===t&&f.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:l};const{data:c,error:u}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return c?this._verify({factorId:o.id,challengeId:c.challengeId,webauthn:{rpId:n,rpOrigins:r,type:c.webauthn.type,credential_response:c.webauthn.credential_response}}):{data:null,error:u}}catch(o){return z(o)?{data:null,error:o}:{data:null,error:new ds("Unexpected error in register",o)}}}}q5();const h$={url:a5,storageKey:l5,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:c5,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4};async function u0(e,t,n){return await n()}const Js={};class Ia{get jwks(){var t,n;return(n=(t=Js[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Js[this.storageKey]=Object.assign(Object.assign({},Js[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Js[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Js[this.storageKey]=Object.assign(Object.assign({},Js[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},h$),t);if(this.storageKey=i.storageKey,this.instanceID=(n=Ia.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Ia.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>
3820&&Xe()){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 W5({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=XN(i.fetch),this.lock=i.lock||u0,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&&Xe()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=K5:this.lock=u0,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 d$(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:QN()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=l0(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=l0(this.memoryStorage)),Xe()&&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),await this._notifyAllSubscribers(o.data.event,o.data.session,!1)})}this.initialize()}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${qN}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(Xe()&&(n=N5(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),Xe()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),p5(i)){const c=(t=i.details)===null||t===void 0?void 0:t.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:i}}return{error:i}}const{session:o,redirectType:l}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",l),await this._saveSession(o),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return z(n)?this._returnResult({error:n}):this._returnResult({error:new ds("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await q(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:tn}),{data:o,error:l}=i;if(l||!o)return this._returnResult({data:{user:null,session:null},error:l});const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(i){if(z(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(t){var n,r,s;try{let i;if("email"in t){const{email:d,password:h,options:f}=t;let m=null,w=null;this.flowType==="pkce"&&([m,w]=await Ys(this.storage,this.storageKey)),i=await q(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:d,password:h,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:m,code_challenge_method:w},xform:tn})}else if("phone"in t){const{phone:d,password:h,options:f}=t;i=await q(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(s=f==null?void 0:f.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:tn})}else throw new _l("You must provide either an email or phone number and a password");const{data:o,error:l}=i;if(l||!o)return await Qe(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:l});const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(i){if(await Qe(this.storage,`${this.storageKey}-code-verifier`),z(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(t){try{let n;if("email"in t){const{email:i,password:o,options:l}=t;n=await q(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:o0})}else if("phone"in t){const{phone:i,password:o,options:l}=t;n=await q(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:o0})}else throw new _l("You must provide either an email or phone number and a password");const{data:r,error:s}=n;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!r||!r.session||!r.user){const i=new Gs;return this._returnResult({data:{user:null,session:null},error:i})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(z(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,s,i,o,l,c,u,d,h,f;let m,w;if("message"in t)m=t.message,w=t.signature;else{const{chain:p,wallet:b,statement:v,options:g}=t;let x;if(Xe())if(typeof b=="object")x=b;else{const T=window;if("ethereum"in T&&typeof T.ethereum=="object"&&"request"in T.ethereum&&typeof T.ethereum.request=="function")x=T.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 b!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");x=b}const S=new URL((n=g==null?void 0:g.url)!==null&&n!==void 0?n:window.location.href),j=await x.request({method:"eth_requestAccounts"}).then(T=>T).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!j||j.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const N=ZN(j[0]);let C=(r=g==null?void 0:g.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!C){const T=await x.request({method:"eth_chainId"});C=G5(T)}const E={domain:S.host,address:N,statement:v,uri:S.href,version:"1",chainId:C,nonce:(s=g==null?void 0:g.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=g==null?void 0:g.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(l=g==null?void 0:g.signInWithEthereum)===null||l===void 0?void 0:l.expirationTime,notBefore:(c=g==null?void 0:g.signInWithEthereum)===null||c===void 0?void 0:c.notBefore,requestId:(u=g==null?void 0:g.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(d=g==null?void 0:g.signInWithEthereum)===null||d===void 0?void 0:d.resources};m=Q5(E),w=await x.request({method:"personal_sign",params:[Y5(m),N]})}try{const{data:p,error:b}=await q(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:m,signature:w}
382,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:tn});if(b)throw b;if(!p||!p.session||!p.user){const v=new Gs;return this._returnResult({data:{user:null,session:null},error:v})}return p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("SIGNED_IN",p.session)),this._returnResult({data:Object.assign({},p),error:b})}catch(p){if(z(p))return this._returnResult({data:{user:null,session:null},error:p});throw p}}async signInWithSolana(t){var n,r,s,i,o,l,c,u,d,h,f,m;let w,p;if("message"in t)w=t.message,p=t.signature;else{const{chain:b,wallet:v,statement:g,options:x}=t;let S;if(Xe())if(typeof v=="object")S=v;else{const N=window;if("solana"in N&&typeof N.solana=="object"&&("signIn"in N.solana&&typeof N.solana.signIn=="function"||"signMessage"in N.solana&&typeof N.solana.signMessage=="function"))S=N.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 v!="object"||!(x!=null&&x.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=v}const j=new URL((n=x==null?void 0:x.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in S&&S.signIn){const N=await S.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},x==null?void 0:x.signInWithSolana),{version:"1",domain:j.host,uri:j.href}),g?{statement:g}:null));let C;if(Array.isArray(N)&&N[0]&&typeof N[0]=="object")C=N[0];else if(N&&typeof N=="object"&&"signedMessage"in N&&"signature"in N)C=N;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in C&&"signature"in C&&(typeof C.signedMessage=="string"||C.signedMessage instanceof Uint8Array)&&C.signature instanceof Uint8Array)w=typeof C.signedMessage=="string"?C.signedMessage:new TextDecoder().decode(C.signedMessage),p=C.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in S)||typeof S.signMessage!="function"||!("publicKey"in S)||typeof S!="object"||!S.publicKey||!("toBase58"in S.publicKey)||typeof S.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");w=[`${j.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...g?["",g,""]:[""],"Version: 1",`URI: ${j.href}`,`Issued At: ${(s=(r=x==null?void 0:x.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=x==null?void 0:x.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${x.signInWithSolana.notBefore}`]:[],...!((o=x==null?void 0:x.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${x.signInWithSolana.expirationTime}`]:[],...!((l=x==null?void 0:x.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${x.signInWithSolana.chainId}`]:[],...!((c=x==null?void 0:x.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${x.signInWithSolana.nonce}`]:[],...!((u=x==null?void 0:x.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${x.signInWithSolana.requestId}`]:[],...!((h=(d=x==null?void 0:x.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...x.signInWithSolana.resources.map(C=>`- ${C}`)]:[]].join(`
383`);const N=await S.signMessage(new TextEncoder().encode(w),"utf8");if(!N||!(N instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");p=N}}try{const{data:b,error:v}=await q(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:w,signature:ys(p)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(m=t.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:tn});if(v)throw v;if(!b||!b.session||!b.user){const g=new Gs;return this._returnResult({data:{user:null,session:null},error:g})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:v})}catch(b){if(z(b))return this._returnResult({data:{user:null,session:null},error:b});throw b}}async _exchangeCodeForSession(t){const n=await is(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new g5;const{data:i,error:o}=await q(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:tn});if(await Qe(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const l=new Gs;return this._returnResult({data:{user:null,session:null,redirectType:null},error:l})}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 Qe(this.storage,`${this.storageKey}-code-verifier`),z(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=t,l=await q(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:tn}),{data:c,error:u}=l;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!c||!c.session||!c.user){const d=new Gs;return this._returnResult({data:{user:null,session:null},error:d})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),this._returnResult({data:c,error:u})}catch(n){if(z(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,s,i,o;try{if("email"in t){const{email:l,options:c}=t;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await Ys(this.storage,this.storageKey));const{error:h}=await q(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(n=c==null?void 0:c.data)!==null&&n!==void 0?n:{},create_user:(r=c==null?void 0:c.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:c==null?void 0:c.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in t){const{phone:l,options:c}=t,{data:u,error:d}=await q(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(s=c==null?void 0:c.data)!==null&&s!==void 0?s:{},create_user:(i=c==null?void 0:c.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(o=c==null?void 0:c.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d})}throw new _l("You must provide either an email or phone number.")}catch(l){if(await Qe(this.storage,`${this.storageKey}-code-verifier`),z(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async verifyOtp(t){var n,r;try{let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:l}=await q(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:tn});if(l)throw l;if(!o)throw new Error("An error occurred on token verification.");const c=o.session,u=o.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(s){if(z(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var n,r,s,i,o;try{let l=null,c=null;this.flowType==="pkce"&&([l,c]=await Ys(this.storage,this.storageKey));const u=await q(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:l,code_challenge_method:c}),headers:this.headers,xform:U5});return!((i=u.data)===null||i===void 0)&&i.url&&Xe()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(l){if(await Qe(this.storage,`${this.storageKey}-code-verifier`),z(l))return this._returnResult({data:null,error:l});throw l}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new Nt;const{error:s}=await q(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(z(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:i}=t,{error:o}=await q(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:r,type:s,options:i}=t,{data:o,error:l}=await q(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:l})}throw new _l("You must provide either an email or phone number and a type")}catch(n){if(z(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await is(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
383id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<zd:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await is(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=Kd()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=D5(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await q(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:xr}):await this._useSession(async n=>{var r,s,i;const{data:o,error:l}=n;if(l)throw l;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Nt}:await q(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:xr})})}catch(n){if(z(n))return m5(n)&&(await this._removeSession(),await Qe(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new Nt;const o=s.session;let l=null,c=null;this.flowType==="pkce"&&t.email!=null&&([l,c]=await Ys(this.storage,this.storageKey));const{data:u,error:d}=await q(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:l,code_challenge_method:c}),jwt:o.access_token,xform:xr});if(d)throw d;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await Qe(this.storage,`${this.storageKey}-code-verifier`),z(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Nt;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=Hd(t.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{data:l,error:c}=await this._callRefreshToken(t.refresh_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l)return{data:{user:null,session:null},error:null};i=l}else{const{data:l,error:c}=await this._getUser(t.access_token);if(c)throw c;i={access_token:t.access_token,refresh_token:t.refresh_token,user:l.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(n){if(z(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:o,error:l}=n;if(l)throw l;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new Nt;const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(z(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!Xe())throw new Al("No browser detected.");
383if(t.error||t.error_description||t.error_code)throw new Al(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Zx("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Al("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Zx("No code detected.");const{data:g,error:x}=await this._exchangeCodeForSession(t.code);if(x)throw x;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:g.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:l,expires_at:c,token_type:u}=t;if(!i||!l||!o||!u)throw new Al("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(l);let f=d+h;c&&(f=parseInt(c));const m=f-d;m*1e3<=ri&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${m}s, should have been closer to ${h}s`);const w=f-h;d-w>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",w,f,d):d-w<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",w,f,d);const{data:p,error:b}=await this._getUser(i);if(b)throw b;const v={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:h,expires_at:f,refresh_token:o,token_type:u,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:v,redirectType:t.type},error:null})}catch(r){if(z(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await is(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({error:i});const o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:l}=await this.admin.signOut(o,t);if(l&&!(f5(l)&&(l.status===404||l.status===401||l.status===403)))return this._returnResult({error:l})}return t!=="others"&&(await this._removeSession(),await Qe(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=j5(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await Ys(this.storage,this.storageKey,!0));try{return await q(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(await Qe(this.storage,`${this.storageKey}-code-verifier`),z(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var o,l,c,u,d;const{data:h,error:f}=i;if(f)throw f;const m=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(l=t.options)===null||l===void 0?void 0:l.scopes,queryParams:(c=t.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await q(this.fetch,"GET",m,{headers:this.headers,jwt:(d=(u=h.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return Xe()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(z(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:s,data:{session:i}}=n;
383if(s)throw s;const{options:o,provider:l,token:c,access_token:u,nonce:d}=t,h=await q(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=i==null?void 0:i.access_token)!==null&&r!==void 0?r:void 0,body:{provider:l,id_token:c,access_token:u,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:tn}),{data:f,error:m}=h;return m?this._returnResult({data:{user:null,session:null},error:m}):!f||!f.session||!f.user?this._returnResult({data:{user:null,session:null},error:new Gs}):(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),this._returnResult({data:f,error:m}))}catch(s){if(await Qe(this.storage,`${this.storageKey}-code-verifier`),z(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)throw o;return await q(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await T5(async s=>(s>
3830&&await E5(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await q(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:tn})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Wd(i)&&Date.now()+o-r<ri})}catch(r){if(this._debug(n,"error",r),z(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),Xe()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await is(this.storage,this.storageKey);if(s&&this.userStorage){let o=await is(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await si(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:Kd()}else if(s&&!s.user&&!s.user){const o=await is(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await Qe(this.storage,this.storageKey+"-user"),await si(this.storage,this.storageKey,s)):s.user=Kd()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const i=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<zd;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${zd}
383s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),Wd(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:l}=await this._getUser(s.access_token);!l&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new Nt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Pu;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new Nt;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const l={data:i.session,error:null};return this.refreshingDeferred.resolve(l),l}catch(i){if(this._debug(s,"error",i),z(i)){const o={data:null,error:i};return Wd(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(t,n)}catch(c){i.push(c)}});if(await Promise.all(o),i.length>0){for(let l=0;l<i.length;l+=1)console.error(i[l]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Qe(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await si(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=s0(s);await si(this.storage,this.storageKey,i)}else{const s=s0(n);await si(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Qe(this.storage,this.storageKey),await Qe(this.storage,this.storageKey+"-code-verifier"),await Qe(this.storage,this.storageKey+"-user"),this.userStorage&&await Qe(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Xe()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),ri);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/ri);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${ri}ms, refresh threshold is ${Bf} ticks`),s<=Bf&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof JN)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Xe()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>
383{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await Ys(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(l.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?this._returnResult({data:null,error:i}):await q(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)return this._returnResult({data:null,error:o});const l=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:c,error:u}=await q(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&c.type==="totp"&&(!((s=c==null?void 0:c.totp)===null||s===void 0)&&s.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),this._returnResult({data:c,error:null}))})}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?r$(t.webauthn.credential_response):s$(t.webauthn.credential_response)})}:{code:t.code}),{data:l,error:c}=await q(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return c?this._returnResult({data:null,error:c}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+l.expires_in},l)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",l),this._returnResult({data:l,error:c}))})}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=await q(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});if(o.error)return o;const{data:l}=o;if(l.type!=="webauthn")return{data:l,error:null};switch(l.webauthn.type){case"create":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:t$(l.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:n$(l.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(){var t,n;const{data:{session:r},error:s}
383=await this.getSession();if(s)return this._returnResult({data:null,error:s});if(!r)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:i}=Hd(r.access_token);let o=null;i.aal&&(o=i.aal);let l=o;((n=(t=r.user.factors)===null||t===void 0?void 0:t.filter(d=>d.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(l="aal2");const u=i.amr||[];return{data:{currentLevel:o,nextLevel:l,currentAuthenticationMethods:u},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await q(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Nt})})}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Nt});const o=await q(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:l=>({data:l,error:null})});return o.data&&o.data.redirect_url&&Xe()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(z(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Nt});const o=await q(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:l=>({data:l,error:null})});return o.data&&o.data.redirect_url&&Xe()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(z(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await q(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new Nt})})}catch(t){if(z(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?(await q(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Nt})})}catch(n){if(z(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(l=>l.kid===t);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(l=>l.kid===t),r&&this.jwks_cached_at+d5>s)return r;const{data:i,error:o}=await q(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(l=>l.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:m,error:w}
383=await this.getSession();if(w||!m.session)return this._returnResult({data:null,error:w});r=m.session.access_token}const{header:s,payload:i,signature:o,raw:{header:l,payload:c}}=Hd(r);n!=null&&n.allowExpired||O5(i.exp);const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:m}=await this.getUser(r);if(m)throw m;return{data:{claims:i,header:s,signature:o},error:null}}const d=M5(s.alg),h=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,o,b5(`${l}.${c}`)))throw new Hf("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(z(r))return this._returnResult({data:null,error:r});throw r}}}Ia.nextInstanceID={};const f$=Ia,m$="2.90.1";let Oo="";typeof Deno<"u"?Oo="deno":typeof document<"u"?Oo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Oo="react-native":Oo="node";const p$={"X-Client-Info":`supabase-js-${Oo}/${m$}`},g$={headers:p$},y$={schema:"public"},v$={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},x$={};function Oa(e){"@babel/helpers - typeof";return Oa=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},Oa(e)}function w$(e,t){if(Oa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Oa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b$(e){var t=w$(e,"string");return Oa(t)=="symbol"?t:t+""}function S$(e,t,n){return(t=b$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d0(Object(n),!0).forEach(function(r){S$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const j$=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),N$=()=>Headers,C$=(e,t,n)=>{const r=j$(n),s=N$();return async(i,o)=>{var l;const c=(l=await t())!==null&&l!==void 0?l: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 ${c}`),r(i,Ie(Ie({},o),{},{headers:u}))}};function E$(e){return e.endsWith("/")?e:e+"/"}function T$(e,t){var n,r;const{db:s,auth:i,realtime:o,global:l}=e,{db:c,auth:u,realtime:d,global:h}=t,f={db:Ie(Ie({},c),s),auth:Ie(Ie({},u),i),realtime:Ie(Ie({},d),o),storage:{},global:Ie(Ie(Ie({},h),l),{},{headers:Ie(Ie({},(n=h==null?void 0:h.headers)!==null&&n!==void 0?n:{}),(r=l==null?void 0:l.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}function k$(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(E$(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var _$=class extends f${constructor(e){super(e)}},A$=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const i=k$(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`,l={db:y$,realtime:x$,auth:Ie(Ie({},v$),{},{storageKey:o}),global:g$},c=T$(n??{},l);if(this.storageKey=(r=c.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(s=c.global.headers)!==null&&s!==void 0?s:{},c.accessToken)this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=c.auth)!==null&&u!==void 0?u:{},this.headers,c.global.fetch)}this.fetch=C$(t,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(Ie({headers:this.headers,accessToken:this._getAccessToken.bind(this)},c.realtime)),this.accessToken&&this.accessToken().then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new c3(new URL("rest/v1",i).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),this.storage=new o5(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new s3(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}
383channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,storageKey:i,flowType:o,lock:l,debug:c,throwOnError:u},d,h){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new _$({url:this.authUrl.href,headers:Ie(Ie({},f),d),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:o,lock:l,debug:c,throwOnError:u,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(m=>m.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new E3(this.realtimeUrl.href,Ie(Ie({},e),{},{params:Ie(Ie({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const P$=(e,t,n)=>new A$(e,t,n);function R$(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}R$()&&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 I$="https://aqrdmvscucdawmdrwkqv.supabase.co",O$="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImFxcmRtdnNjdWNkYXdtZHJ3a3F2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njg1ODQzODIsImV4cCI6MjA4NDE2MDM4Mn0.Mm30PlHi19VW9MOksrMK3EvfjfsTvDzgBxXAvP1yYMY",tC=P$(I$,O$,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),M$=({onSlideComplete:e})=>{const[t,n]=y.useState(!1),r=y.useRef(null),s=ON(0),l=280-56-4*2,c=Dx(s,[0,l],[.3,.8]),u=Dx(s,[0,l*.5],[1,0]),d=()=>{s.get()>l*.8?(Bx(s,l,{type:"spring",stiffness:400,damping:30}),n(!0),e==null||e()):Bx(s,0,{type:"spring",stiffness:400,damping:30})};return a.jsxs("div",{ref:r,className:"relative w-full max-w-[280px] h-14 bg-[hsl(220_25%_20%)] rounded-full overflow-hidden border border-[hsl(220_25%_28%)]",children:[a.jsx(J.div,{className:"absolute inset-0 bg-primary/30 rounded-full",style:{opacity:c}}),a.jsx(J.div,{className:"absolute inset-0 flex items-center justify-center pointer-events-none",style:{opacity:u},children:a.jsxs("span",{className:"text-[hsl(200_20%_60%)] text-sm font-medium ml-8 flex items-center gap-2",children:[a.jsx("span",{className:"text-[hsl(200_20%_50%)]",children:"→"}),"SLIDE TO CALL"]})}),a.jsx(J.div,{drag:"x",dragConstraints:{left:0,right:l},dragElastic:0,onDragEnd:d,style:{x:s},className:"absolute top-1 left-1 w-12 h-12 rounded-full bg-primary flex items-center justify-center cursor-grab active:cursor-grabbing shadow-lg z-10",whileTap:{scale:.95},children:a.jsx(In,{className:"w-5 h-5 text-primary-foreground"})}),t&&a.jsx(J.div,{initial:{opacity:0}
vendor: 4,862 bytes, line 383
383,animate:{opacity:1},className:"absolute inset-0 flex items-center justify-center bg-primary rounded-full",children:a.jsx("span",{className:"text-primary-foreground font-semibold text-sm",children:"Calling..."})})]})};function Kf(e,[t,n]){return Math.min(n,Math.max(t,e))}var L$=y.createContext(void 0);function og(e){const t=y.useContext(L$);return e||t||"ltr"}var Gd=0;function D$(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??h0()),document.body.insertAdjacentElement("beforeend",e[1]??h0()),Gd++,()=>{Gd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Gd--}},[])}function h0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Yd="focusScope.autoFocusOnMount",Qd="focusScope.autoFocusOnUnmount",f0={bubbles:!1,cancelable:!0},$$="FocusScope",nC=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[l,c]=y.useState(null),u=qe(s),d=qe(i),h=y.useRef(null),f=fe(t,p=>c(p)),m=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let p=function(x){if(m.paused||!l)return;const S=x.target;l.contains(S)?h.current=S:fr(h.current,{select:!0})},b=function(x){if(m.paused||!l)return;const S=x.relatedTarget;S!==null&&(l.contains(S)||fr(h.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const j of x)j.removedNodes.length>0&&fr(l)};document.addEventListener("focusin",p),document.addEventListener("focusout",b);const g=new MutationObserver(v);return l&&g.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",b),g.disconnect()}}},[r,l,m.paused]),y.useEffect(()=>{if(l){p0.add(m);const p=document.activeElement;if(!l.contains(p)){const v=new CustomEvent(Yd,f0);l.addEventListener(Yd,u),l.dispatchEvent(v),v.defaultPrevented||(F$(W$(rC(l)),{select:!0}),document.activeElement===p&&fr(l))}return()=>{l.removeEventListener(Yd,u),setTimeout(()=>{const v=new CustomEvent(Qd,f0);l.addEventListener(Qd,d),l.dispatchEvent(v),v.defaultPrevented||fr(p??document.body,{select:!0}),l.removeEventListener(Qd,d),p0.remove(m)},0)}}},[l,u,d,m]);const w=y.useCallback(p=>{if(!n&&!r||m.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(b&&v){const g=p.currentTarget,[x,S]=V$(g);x&&S?!p.shiftKey&&v===S?(p.preventDefault(),n&&fr(x,{select:!0})):p.shiftKey&&v===x&&(p.preventDefault(),n&&fr(S,{select:!0})):v===g&&p.preventDefault()}},[n,r,m.paused]);return a.jsx(se.div,{tabIndex:-1,...o,ref:f,onKeyDown:w})});nC.displayName=$$;function F$(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(fr(r,{select:t}),document.activeElement!==n)return}function V$(e){const t=rC(e),n=m0(t,e),r=m0(t.reverse(),e);return[n,r]}function rC(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function m0(e,t){for(const n of e)if(!U$(n,{upTo:t}))return n}function U$(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function B$(e){return e instanceof HTMLInputElement&&"select"in e}function fr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&B$(e)&&t&&e.select()}}var p0=z$();function z$(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=g0(e,t),e.unshift(t)},remove(t){var n;e=g0(e,t),(n=e[0])==null||n.resume()}}}function g0(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function W$(e){return e.filter(t=>t.tagName!=="A")}function H$(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var K$=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Zs=new WeakMap,Pl=new WeakMap,Rl={},Xd=0,sC=function(e){return e&&(e.host||sC(e.parentNode))},q$=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=sC(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},G$=function(e,t,n,r){var s=q$(t,Array.isArray(e)?e:[e]);Rl[n]||(Rl[n]=new WeakMap);var i=Rl[n],o=[],l=new Set,c=new Set(s),u=function(h){!h||l.has(h
vendor: 5,746 bytes, lines 383-398
383)||(l.add(h),u(h.parentNode))};s.forEach(u);var d=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(f){if(l.has(f))d(f);else try{var m=f.getAttribute(r),w=m!==null&&m!=="false",p=(Zs.get(f)||0)+1,b=(i.get(f)||0)+1;Zs.set(f,p),i.set(f,b),o.push(f),p===1&&w&&Pl.set(f,!0),b===1&&f.setAttribute(n,"true"),w||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return d(t),l.clear(),Xd++,function(){o.forEach(function(h){var f=Zs.get(h)-1,m=i.get(h)-1;Zs.set(h,f),i.set(h,m),f||(Pl.has(h)||h.removeAttribute(r),Pl.delete(h)),m||h.removeAttribute(n)}),Xd--,Xd||(Zs=new WeakMap,Zs=new WeakMap,Pl=new WeakMap,Rl={})}},Y$=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=K$(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),G$(r,s,n,"aria-hidden")):function(){return null}},nc="right-scroll-bar-position",rc="width-before-scroll-bar",Q$="with-scroll-bars-hidden",X$="--removed-body-scroll-bar-size";function Jd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function J$(e,t){var n=y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var Z$=typeof window<"u"?y.useLayoutEffect:y.useEffect,y0=new WeakMap;function eF(e,t){var n=J$(null,function(r){return e.forEach(function(s){return Jd(s,r)})});return Z$(function(){var r=y0.get(n);if(r){var s=new Set(r),i=new Set(e),o=n.current;s.forEach(function(l){i.has(l)||Jd(l,null)}),i.forEach(function(l){s.has(l)||Jd(l,o)})}y0.set(n,e)},[e]),n}function tF(e){return e}function nF(e,t){t===void 0&&(t=tF);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,r);return n.push(o),function(){n=n.filter(function(l){return l!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var l=n;n=[],l.forEach(i),o=n}var c=function(){var d=o;o=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),n}}}};return s}function rF(e){e===void 0&&(e={});var t=nF(null);return t.options=Tn({async:!0,ssr:!1},e),t}var iC=function(e){var t=e.sideCar,n=fo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return y.createElement(r,Tn({},n))};iC.isSideCarExport=!0;function sF(e,t){return e.useMedium(t),iC}var oC=rF(),Zd=function(){},Ru=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:Zd,onWheelCapture:Zd,onTouchMoveCapture:Zd}),s=r[0],i=r[1],o=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,f=e.sideCar,m=e.noRelative,w=e.noIsolation,p=e.inert,b=e.allowPinchZoom,v=e.as,g=v===void 0?"div":v,x=e.gapMode,S=fo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=f,N=eF([n,t]),C=Tn(Tn({},S),s);return y.createElement(y.Fragment,null,d&&y.createElement(j,{sideCar:oC,removeScrollBar:u,shards:h,noRelative:m,noIsolation:w,inert:p,setCallbacks:i,allowPinchZoom:!!b,lockRef:n,gapMode:x}),o?y.cloneElement(y.Children.only(l),Tn(Tn({},C),{ref:N})):y.createElement(g,Tn({},C,{className:c,ref:N}),l))});Ru.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ru.classNames={fullWidth:rc,zeroRight:nc};var iF=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function oF(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=iF();return t&&e.setAttribute("nonce",t),e}function aF(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function lF(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cF=function(){var e=0,t=null;return{add:function(n){e==0&&(t=oF())&&(aF(t,n),lF(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},uF=function(){var e=cF();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},aC=function(){var e=uF(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},dF={left:0,top:0,right:0,gap:0},eh=function(e){return parseInt(e||"",10)||0},hF=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[eh(n),eh(r),eh(s)]},fF=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return dF;var t=hF(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},mF=aC(),Ii="data-scroll-locked",pF=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,l=e.gap;return n===void 0&&(n="margin"),`
384  .`.concat(Q$,` {
385   overflow: hidden `).concat(r,`;
386   padding-right: `).concat(l,"px ").concat(r,`;
387  }
388  body[`).concat(Ii,`] {
389    overflow: hidden `).concat(r,`;
390    overscroll-behavior: contain;
391    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
392    padding-left: `.concat(s,`px;
393    padding-top: `).concat(i,`px;
394    padding-right: `).concat(o,`px;
395    margin-left:0;
396    margin-top:0;
397    margin-right: `).concat(l,"px ").concat(r,`;
398    `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";
398")].filter(Boolean).join(""),`
399  }
400  
401  .`).concat(nc,` {
402    right: `).concat(l,"px ").concat(r,`;
403  }
404  
405  .`).concat(rc,` {
406    margin-right: `).concat(l,"px ").concat(r,`;
407  }
408  
409  .`).concat(nc," .").concat(nc,` {
410    right: 0 `).concat(r,`;
411  }
412  
413  .`).concat(rc," .").concat(rc,` {
414    margin-right: 0 `).concat(r,`;
415  }
416  
417  body[`).concat(Ii,`] {
418    `).concat(X$,": ").concat(l,`px;
419  }
420`)},v0=function(){var e=parseInt(document.body.getAttribute(Ii)||"0",10);return isFinite(e)?e:0},gF=function(){y.useEffect(function(){return document.body.setAttribute(Ii,(v0()+1).toString()),function(){var e=v0()-1;e<=0?document.body.removeAttribute(Ii):document.body.setAttribute(Ii,e.toString())}},[])},yF=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;gF();var i=y.useMemo(function(){return fF(s)},[s]);return y.createElement(mF,{styles:pF(i,!t,s,n?"":"!important")})},qf=!1;if(typeof window<"u")try{var Il=Object.defineProperty({},"passive",{get:function(){return qf=!0,!0}});window.addEventListener("test",Il,Il),window.removeEventListener("test",Il,Il)}catch{qf=!1}var ei=qf?{passive:!1}:!1,vF=function(e){return e.tagName==="TEXTAREA"},lC=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!vF(e)&&n[t]==="visible")},xF=function(e){return lC(e,"overflowY")},wF=function(e){return lC(e,"overflowX")},x0=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=cC(e,r);if(s){var i=uC(e,r),o=i[1],l=i[2];if(o>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},bF=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},SF=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},cC=function(e,t){return e==="v"?xF(t):wF(t)},uC=function(e,t){return e==="v"?bF(t):SF(t)},jF=function(e,t){return e==="h"&&t==="rtl"?-1:1},NF=function(e,t,n,r,s){var i=jF(e,window.getComputedStyle(t).direction),o=i*r,l=n.target,c=t.contains(l),u=!1,d=o>0,h=0,f=0;do{if(!l)break;var m=uC(e,l),w=m[0],p=m[1],b=m[2],v=p-b-i*w;(w||v)&&cC(e,l)&&(h+=v,f+=w);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&(Math.abs(h)<1||!s)||!d&&(Math.abs(f)<1||!s))&&(u=!0),u},Ol=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},w0=function(e){return[e.deltaX,e.deltaY]},b0=function(e){return e&&"current"in e?e.current:e},CF=function(e,t){return e[0]===t[0]&&e[1]===t[1]},EF=function(e){return`
421  .block-interactivity-`.concat(e,` {pointer-events: none;}
422  .allow-interactivity-`).concat(e,` {pointer-events: all;}
423`)},TF=0,ti=[];function kF(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),s=y.useState(TF++)[0],i=y.useState(aC)[0],o=y.useRef(e);y.useEffect(function(){o.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var p=t3([e.lockRef.current],(e.shards||[]).map(b0),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var l=y.useCallback(function(p,b){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var v=Ol(p),g=n.current,x="deltaX"in p?p.deltaX:g[0]-v[0],S="deltaY"in p?p.deltaY:g[1]-v[1],j,N=p.target,C=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in p&&C==="h"&&N.type==="range")return!1;var E=x0(C,N);if(!E)return!0;if(E?j=C:(j=C==="v"?"h":"v",E=x0(C,N)),!E)return!1;if(!r.current&&"changedTouches"in p&&(x||S)&&(r.current=j),!j)return!0;var T=r.current||j;return NF(T,b,p,T==="h"?x:S,!0)},[]),c=y.useCallback(function(p){var b=p;if(!(!ti.length||ti[ti.length-1]!==i)){var v="deltaY"in b?w0(b):Ol(b),g=t.current.filter(function(j){return j.name===b.type&&(j.target===b.target||b.target===j.shadowParent)&&CF(j.delta,v)}
vendor: 4,278 bytes, line 423
423)[0];if(g&&g.should){b.cancelable&&b.preventDefault();return}if(!g){var x=(o.current.shards||[]).map(b0).filter(Boolean).filter(function(j){return j.contains(b.target)}),S=x.length>0?l(b,x[0]):!o.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),u=y.useCallback(function(p,b,v,g){var x={name:p,delta:b,target:v,should:g,shadowParent:_F(v)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),d=y.useCallback(function(p){n.current=Ol(p),r.current=void 0},[]),h=y.useCallback(function(p){u(p.type,w0(p),p.target,l(p,e.lockRef.current))},[]),f=y.useCallback(function(p){u(p.type,Ol(p),p.target,l(p,e.lockRef.current))},[]);y.useEffect(function(){return ti.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",c,ei),document.addEventListener("touchmove",c,ei),document.addEventListener("touchstart",d,ei),function(){ti=ti.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,ei),document.removeEventListener("touchmove",c,ei),document.removeEventListener("touchstart",d,ei)}},[]);var m=e.removeScrollBar,w=e.inert;return y.createElement(y.Fragment,null,w?y.createElement(i,{styles:EF(s)}):null,m?y.createElement(yF,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function _F(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const AF=sF(oC,kF);var dC=y.forwardRef(function(e,t){return y.createElement(Ru,Tn({},e,{ref:t,sideCar:AF}))});dC.classNames=Ru.classNames;var PF=[" ","Enter","ArrowUp","ArrowDown"],RF=[" ","Enter"],Ms="Select",[Iu,Ou,IF]=Xm(Ms),[mo,O6]=qr(Ms,[IF,vu]),Mu=vu(),[OF,Xr]=mo(Ms),[MF,LF]=mo(Ms),hC=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:s,onOpenChange:i,value:o,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:h,disabled:f,required:m,form:w}=e,p=Mu(t),[b,v]=y.useState(null),[g,x]=y.useState(null),[S,j]=y.useState(!1),N=og(u),[C,E]=Yi({prop:r,defaultProp:s??!1,onChange:i,caller:Ms}),[T,A]=Yi({prop:o,defaultProp:l,onChange:c,caller:Ms}),M=y.useRef(null),L=b?w||!!b.closest("form"):!0,[W,O]=y.useState(new Set),K=Array.from(W).map(U=>U.props.value).join(";");return a.jsx(vR,{...p,children:a.jsxs(OF,{required:m,scope:t,trigger:b,onTriggerChange:v,valueNode:g,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:j,contentId:Wa(),value:T,onValueChange:A,open:C,onOpenChange:E,dir:N,triggerPointerDownPosRef:M,disabled:f,children:[a.jsx(Iu.Provider,{scope:t,children:a.jsx(MF,{scope:e.__scopeSelect,onNativeOptionAdd:y.useCallback(U=>{O($=>new Set($).add(U))},[]),onNativeOptionRemove:y.useCallback(U=>{O($=>{const k=new Set($);return k.delete(U),k})},[]),children:n})}),L?a.jsxs(LC,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:h,value:T,onChange:U=>A(U.target.value),disabled:f,form:w,children:[T===void 0?a.jsx("option",{value:""}):null,Array.from(W)]},K):null]})})};hC.displayName=Ms;var fC="SelectTrigger",mC=y.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...s}=e,i=Mu(n),o=Xr(fC,n),l=o.disabled||r,c=fe(t,o.onTriggerChange),u=Ou(n),d=y.useRef("touch"),[h,f,m]=$C(p=>{const b=u().filter(x=>!x.disabled),v=b.find(x=>x.value===o.value),g=FC(b,p,v);g!==void 0&&o.onValueChange(g.value)}),w=p=>{l||(o.onOpenChange(!0),m()),p&&(o.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return a.jsx(yS,{asChild:!0,...i,children:a.jsx(se.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":DC(o.value)?"":void 0,...s,ref:c,onClick:Z(s.onClick,p=>{p.currentTarget.focus(),d.current!=="mouse"&&w(p)}),onPointerDown:Z(s.onPointerDown,p=>{d.current=p.pointerType;const b=p.target;b.hasPointerCapture(p.pointerId)&&b.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(w(p),p.preventDefault())}),onKeyDown:Z(s.onKeyDown,p=>{const b=h.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&f(p.key),!(b&&p.key===" ")&&PF.includes(p.key)&&(w(),p.preventDefault())})})})});mC.displayName=fC;var pC="SelectValue",gC=y.forwardRef((e,t)=>
vendor: 15,527 bytes, line 423
423{const{__scopeSelect:n,className:r,style:s,children:i,placeholder:o="",...l}=e,c=Xr(pC,n),{onValueNodeHasChildrenChange:u}=c,d=i!==void 0,h=fe(t,c.onValueNodeChange);return He(()=>{u(d)},[u,d]),a.jsx(se.span,{...l,ref:h,style:{pointerEvents:"none"},children:DC(c.value)?a.jsx(a.Fragment,{children:o}):i})});gC.displayName=pC;var DF="SelectIcon",yC=y.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...s}=e;return a.jsx(se.span,{"aria-hidden":!0,...s,ref:t,children:r||"▼"})});yC.displayName=DF;var $F="SelectPortal",vC=e=>a.jsx(Jm,{asChild:!0,...e});vC.displayName=$F;var Ls="SelectContent",xC=y.forwardRef((e,t)=>{const n=Xr(Ls,e.__scopeSelect),[r,s]=y.useState();if(He(()=>{s(new DocumentFragment)},[]),!n.open){const i=r;return i?Fs.createPortal(a.jsx(wC,{scope:e.__scopeSelect,children:a.jsx(Iu.Slot,{scope:e.__scopeSelect,children:a.jsx("div",{children:e.children})})}),i):null}return a.jsx(bC,{...e,ref:t})});xC.displayName=Ls;var rn=10,[wC,Jr]=mo(Ls),FF="SelectContentImpl",VF=ga("SelectContent.RemoveScroll"),bC=y.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:m,sticky:w,hideWhenDetached:p,avoidCollisions:b,...v}=e,g=Xr(Ls,n),[x,S]=y.useState(null),[j,N]=y.useState(null),C=fe(t,F=>S(F)),[E,T]=y.useState(null),[A,M]=y.useState(null),L=Ou(n),[W,O]=y.useState(!1),K=y.useRef(!1);y.useEffect(()=>{if(x)return Y$(x)},[x]),D$();const U=y.useCallback(F=>{const[oe,...pe]=L().map(ce=>ce.ref.current),[he]=pe.slice(-1),ae=document.activeElement;for(const ce of F)if(ce===ae||(ce==null||ce.scrollIntoView({block:"nearest"}),ce===oe&&j&&(j.scrollTop=0),ce===he&&j&&(j.scrollTop=j.scrollHeight),ce==null||ce.focus(),document.activeElement!==ae))return},[L,j]),$=y.useCallback(()=>U([E,x]),[U,E,x]);y.useEffect(()=>{W&&$()},[W,$]);const{onOpenChange:k,triggerPointerDownPosRef:_}=g;y.useEffect(()=>{if(x){let F={x:0,y:0};const oe=he=>{var ae,ce;F={x:Math.abs(Math.round(he.pageX)-(((ae=_.current)==null?void 0:ae.x)??0)),y:Math.abs(Math.round(he.pageY)-(((ce=_.current)==null?void 0:ce.y)??0))}},pe=he=>{F.x<=10&&F.y<=10?he.preventDefault():x.contains(he.target)||k(!1),document.removeEventListener("pointermove",oe),_.current=null};return _.current!==null&&(document.addEventListener("pointermove",oe),document.addEventListener("pointerup",pe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",oe),document.removeEventListener("pointerup",pe,{capture:!0})}}},[x,k,_]),y.useEffect(()=>{const F=()=>k(!1);return window.addEventListener("blur",F),window.addEventListener("resize",F),()=>{window.removeEventListener("blur",F),window.removeEventListener("resize",F)}},[k]);const[D,H]=$C(F=>{const oe=L().filter(ae=>!ae.disabled),pe=oe.find(ae=>ae.ref.current===document.activeElement),he=FC(oe,F,pe);he&&setTimeout(()=>he.ref.current.focus())}),B=y.useCallback((F,oe,pe)=>{const he=!K.current&&!pe;(g.value!==void 0&&g.value===oe||he)&&(T(F),he&&(K.current=!0))},[g.value]),ee=y.useCallback(()=>x==null?void 0:x.focus(),[x]),X=y.useCallback((F,oe,pe)=>{const he=!K.current&&!pe;(g.value!==void 0&&g.value===oe||he)&&M(F)},[g.value]),de=r==="popper"?Gf:SC,ye=de===Gf?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:m,sticky:w,hideWhenDetached:p,avoidCollisions:b}:{};return a.jsx(wC,{scope:n,content:x,viewport:j,onViewportChange:N,itemRefCallback:B,selectedItem:E,onItemLeave:ee,itemTextRefCallback:X,focusSelectedItem:$,selectedItemText:A,position:r,isPositioned:W,searchRef:D,children:a.jsx(dC,{as:VF,allowPinchZoom:!0,children:a.jsx(nC,{asChild:!0,trapped:g.open,onMountAutoFocus:F=>{F.preventDefault()},onUnmountAutoFocus:Z(s,F=>{var oe;(oe=g.trigger)==null||oe.focus({preventScroll:!0}),F.preventDefault()}),children:a.jsx(uu,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:F=>F.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:a.jsx(de,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:F=>F.preventDefault(),...v,...ye,onPlaced:()=>O(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:Z(v.onKeyDown,F=>{const oe=F.ctrlKey||F.altKey||F.metaKey;if(F.key==="Tab"&&F.preventDefault(),!oe&&F.key.length===1&&H(F.key),["ArrowUp","ArrowDown","Home","End"].includes(F.key)){let he=L().filter(ae=>!ae.disabled).map(ae=>ae.ref.current);if(["ArrowUp","End"].includes(F.key)&&(he=he.slice().reverse()),["ArrowUp","ArrowDown"].includes(F.key)){const ae=F.target,ce=he.indexOf(ae);he=he.slice(ce+1)}setTimeout(()=>U(he)),F.preventDefault()}})})})})})})});bC.displayName=FF;var UF="SelectItemAlignedPosition",SC=y.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...s}=e,i=Xr(Ls,n),o=Jr(Ls,n),[l,c]=y.useState(null),[u,d]=y.useState(null),h=fe(t,C=>d(C)),f=Ou(n),m=y.useRef(!1),w=y.useRef(!0),{viewport:p,selectedItem:b,selectedItemText:v,focusSelectedItem:g}=o,x=y.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&p&&b&&v){const C=i.trigger.getBoundingClientRect(),E=u.getBoundingClientRect(),T=i.valueNode.getBoundingClientRect(),A=v.getBoundingClientRect();if(i.dir!=="rtl"){const ae=A.left-E.left,ce=T.left-ae,nt=C.left-ce,Mt=C.width+nt,Zr=Math.max(Mt,E.width),rr=window.innerWidth-rn,es=Kf(ce,[rn,Math.max(rn,rr-Zr)]);l.style.minWidth=Mt+"px",l.style.left=es+"px"}else{const ae=E.right-A.right,ce=window.innerWidth-T.right-ae,nt=window.innerWidth-C.right-ce,Mt=C.width+nt,Zr=Math.max(Mt,E.width),rr=window.innerWidth-rn,es=Kf(ce,[rn,Math.max(rn,rr-Zr)]);l.style.minWidth=Mt+"px",l.style.right=es+"px"}const M=f(),L=window.innerHeight-rn*2,W=p.scrollHeight,O=window.getComputedStyle(u),K=parseInt(O.borderTopWidth,10),U=parseInt(O.paddingTop,10),$=parseInt(O.borderBottomWidth,10),k=parseInt(O.paddingBottom,10),_=K+U+W+k+$,D=Math.min(b.offsetHeight*5,_),H=window.getComputedStyle(p),B=parseInt(H.paddingTop,10),ee=parseInt(H.paddingBottom,10),X=C.top+C.height/2-rn,de=L-X,ye=b.offsetHeight/2,F=b.offsetTop+ye,oe=K+U+F,pe=_-oe;if(oe<=X){const ae=M.length>0&&b===M[M.length-1].ref.current;l.style.bottom="0px";const ce=u.clientHeight-p.offsetTop-p.offsetHeight,nt=Math.max(de,ye+(ae?ee:0)+ce+$),Mt=oe+nt;l.style.height=Mt+"px"}else{const ae=M.length>0&&b===M[0].ref.current;l.style.top="0px";const nt=Math.max(X,K+p.offsetTop+(ae?B:0)+ye)+pe;l.style.height=nt+"px",p.scrollTop=oe-X+p.offsetTop}l.style.margin=`${rn}px 0`,l.style.minHeight=D+"px",l.style.maxHeight=L+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[f,i.trigger,i.valueNode,l,u,p,b,v,i.dir,r]);He(()=>x(),[x]);const[S,j]=y.useState();He(()=>{u&&j(window.getComputedStyle(u).zIndex)},[u]);const N=y.useCallback(C=>{C&&w.current===!0&&(x(),g==null||g(),w.current=!1)},[x,g]);return a.jsx(zF,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:N,children:a.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:a.jsx(se.div,{...s,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});SC.displayName=UF;var BF="SelectPopperPosition",Gf=y.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:s=rn,...i}=e,o=Mu(n);return a.jsx(vS,{...o,...i,ref:t,align:r,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Gf.displayName=BF;var[zF,ag]=mo(Ls,{}),Yf="SelectViewport",jC=y.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...s}=e,i=Jr(Yf,n),o=ag(Yf,n),l=fe(t,i.onViewportChange),c=y.useRef(0);return a.jsxs(a.Fragment,{children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),a.jsx(Iu.Slot,{scope:n,children:a.jsx(se.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:Z(s.onScroll,u=>{const d=u.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:f}=o;if(f!=null&&f.current&&h){const m=Math.abs(c.current-d.scrollTop);if(m>0){const w=window.innerHeight-rn*2,p=parseFloat(h.style.minHeight),b=parseFloat(h.style.height),v=Math.max(p,b);if(v<w){const g=v+m,x=Math.min(w,g),S=g-x;h.style.height=x+"px",h.style.bottom==="0px"&&(d.scrollTop=S>0?S:0,h.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});jC.displayName=Yf;var NC="SelectGroup",[WF,HF]=mo(NC),KF=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=Wa();return a.jsx(WF,{scope:n,id:s,children:a.jsx(se.div,{role:"group","aria-labelledby":s,...r,ref:t})})});KF.displayName=NC;var CC="SelectLabel",EC=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=HF(CC,n);return a.jsx(se.div,{id:s.id,...r,ref:t})});EC.displayName=CC;var Wc="SelectItem",[qF,TC]=mo(Wc),kC=y.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:s=!1,textValue:i,...o}=e,l=Xr(Wc,n),c=Jr(Wc,n),u=l.value===r,[d,h]=y.useState(i??""),[f,m]=y.useState(!1),w=fe(t,g=>{var x;return(x=c.itemRefCallback)==null?void 0:x.call(c,g,r,s)}),p=Wa(),b=y.useRef("touch"),v=()=>{s||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return a.jsx(qF,{scope:n,value:r,disabled:s,textId:p,isSelected:u,onItemTextChange:y.useCallback(g=>{h(x=>x||((g==null?void 0:g.textContent)??"").trim())},[]),children:a.jsx(Iu.ItemSlot,{scope:n,value:r,disabled:s,textValue:d,children:a.jsx(se.div,{role:"option","aria-labelledby":p,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:w,onFocus:Z(o.onFocus,()=>m(!0)),onBlur:Z(o.onBlur,()=>m(!1)),onClick:Z(o.onClick,()=>{b.current!=="mouse"&&v()}),onPointerUp:Z(o.onPointerUp,()=>{b.current==="mouse"&&v()}),onPointerDown:Z(o.onPointerDown,g=>{b.current=g.pointerType}),onPointerMove:Z(o.onPointerMove,g=>{var x;b.current=g.pointerType,s?(x=c.onItemLeave)==null||x.call(c):b.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Z(o.onPointerLeave,g=>{var x;g.currentTarget===document.activeElement&&((x=c.onItemLeave)==null||x.call(c))}),onKeyDown:Z(o.onKeyDown,g=>{var S;((S=c.searchRef)==null?void 0:S.current)!==""&&g.key===" "||(RF.includes(g.key)&&v(),g.key===" "&&g.preventDefault())})})})})});kC.displayName=Wc;var Mo="SelectItemText",_C=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,...i}=e,o=Xr(Mo,n),l=Jr(Mo,n),c=TC(Mo,n),u=LF(Mo,n),[d,h]=y.useState(null),f=fe(t,v=>h(v),c.onItemTextChange,v=>{var g;return(g=l.itemTextRefCallback)==null?void 0:g.call(l,v,c.value,c.disabled)}),m=d==null?void 0:d.textContent,w=y.useMemo(()=>a.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:p,onNativeOptionRemove:b}=u;return He(()=>(p(w),()=>b(w)),[p,b,w]),a.jsxs(a.Fragment,{children:[a.jsx(se.span,{id:c.textId,...i,ref:f}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Fs.createPortal(i.children,o.valueNode):null]})});_C.displayName=Mo;var AC="SelectItemIndicator",PC=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return TC(AC,n).isSelected?a.jsx(se.span,{"aria-hidden":!0,...r,ref:t}):null});PC.displayName=AC;var Qf="SelectScrollUpButton",RC=y.forwardRef((e,t)=>{const n=Jr(Qf,e.__scopeSelect),r=ag(Qf,e.__scopeSelect),[s,i]=y.useState(!1),o=fe(t,r.onScrollButtonChange);return He(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollTop>0;i(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?a.jsx(OC,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});RC.displayName=Qf;var Xf="SelectScrollDownButton",IC=y.forwardRef((e,t)=>{const n=Jr(Xf,e.__scopeSelect),r=ag(Xf,e.__scopeSelect),[s,i]=y.useState(!1),o=fe(t,r.onScrollButtonChange);return He(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;i(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?a.jsx(OC,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});IC.displayName=Xf;var OC=y.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...s}=e,i=Jr("SelectScrollButton",n),o=y.useRef(null),l=Ou(n),c=y.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return y.useEffect(()=>()=>c(),[c]),He(()=>{var d;const u=l().find(h=>h.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),a.jsx(se.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:Z(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:Z(s.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:Z(s.onPointerLeave,()=>{c()})})}),GF="SelectSeparator",MC=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return a.jsx(se.div,{"aria-hidden":!0,...r,ref:t})});MC.displayName=GF;var Jf="SelectArrow",YF=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=Mu(n),i=Xr(Jf,n),o=Jr(Jf,n);return i.open&&o.position==="popper"?a.jsx(xS,{...s,...r,ref:t}):null});YF.displayName=Jf;var QF="SelectBubbleInput",LC=y.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const s=y.useRef(null),i=fe(r,s),o=H$(t);return y.useEffect(()=>{const l=s.current;if(!l)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==t&&d){const h=new Event("change",{bubbles:!0});d.call(l,t),l.dispatchEvent(h)}},[o,t]),a.jsx(se.select,{...n,style:{...i1,...n.style},ref:i,defaultValue:t})});LC.displayName=QF;function DC(e){return e===""||e===void 0}function $C(e){const t=qe(e),n=y.useRef(""),r=y.useRef(0),s=y.useCallback(o=>{const l=n.current+o;t(l),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),i=y.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,s,i]}function FC(e,t,n){const s=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=XF(e,Math.max(i,0));s.length===1&&(o=o.filter(u=>u!==n));const c=o.find(u=>u.textValue.toLowerCase().startsWith(s.toLowerCase()));return c!==n?c:void 0}function XF(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var JF=hC,VC=mC,ZF=gC,eV=yC,tV=vC,UC=xC,nV=jC,BC=EC,zC=kC,rV=_C,sV=PC,WC=RC,HC=IC,KC=MC;const iV=JF,oV=ZF,qC=y.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(VC,{ref:r,className:ve("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
423ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,a.jsx(eV,{asChild:!0,children:a.jsx(za,{className:"h-4 w-4 opacity-50"})})]}));qC.displayName=VC.displayName;const GC=y.forwardRef(({className:e,...t},n)=>a.jsx(WC,{ref:n,className:ve("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(v2,{className:"h-4 w-4"})}));GC.displayName=WC.displayName;const YC=y.forwardRef(({className:e,...t},n)=>a.jsx(HC,{ref:n,className:ve("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(za,{className:"h-4 w-4"})}));YC.displayName=HC.displayName;const QC=y.forwardRef(({className:e,children:t,position:n="popper",...r},s)=>a.jsx(tV,{children:a.jsxs(UC,{ref:s,className:ve("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[a.jsx(GC,{}),a.jsx(nV,{className:ve("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(YC,{})]})}));QC.displayName=UC.displayName;const aV=y.forwardRef(({className:e,...t},n)=>a.jsx(BC,{ref:n,className:ve("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));aV.displayName=BC.displayName;const XC=y.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(zC,{ref:r,className:ve("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(sV,{children:a.jsx(ef,{className:"h-4 w-4"})})}),a.jsx(rV,{children:t})]}));XC.displayName=zC.displayName;const lV=y.forwardRef(({className:e,...t},n)=>a.jsx(KC,{ref:n,className:ve("-mx-1 my-1 h-px bg-muted",e),...t}));lV.displayName=KC.displayName;const fn=[{code:"+1",country:"United States",flag:"🇺🇸"},{code:"+1",country:"Canada",flag:"🇨🇦"},{code:"+44",country:"United Kingdom",flag:"🇬🇧"},{code:"+61",country:"Australia",flag:"🇦🇺"},{code:"+49",country:"Germany",flag:"🇩🇪"},{code:"+33",country:"France",flag:"🇫🇷"},{code:"+34",country:"Spain",flag:"🇪🇸"},{code:"+39",country:"Italy",flag:"🇮🇹"},{code:"+31",country:"Netherlands",flag:"🇳🇱"},{code:"+32",country:"Belgium",flag:"🇧🇪"},{code:"+41",country:"Switzerland",flag:"🇨🇭"},{code:"+43",country:"Austria",flag:"🇦🇹"},{code:"+45",country:"Denmark",flag:"🇩🇰"},{code:"+46",country:"Sweden",flag:"🇸🇪"},{code:"+47",country:"Norway",flag:"🇳🇴"},{code:"+358",country:"Finland",flag:"🇫🇮"},{code:"+48",country:"Poland",flag:"🇵🇱"},{code:"+351",country:"Portugal",flag:"🇵🇹"},{code:"+353",country:"Ireland",flag:"🇮🇪"},{code:"+30",country:"Greece",flag:"🇬🇷"},{code:"+420",country:"Czech Republic",flag:"🇨🇿"},{code:"+36",country:"Hungary",flag:"🇭🇺"},{code:"+40",country:"Romania",flag:"🇷🇴"},{code:"+359",country:"Bulgaria",flag:"🇧🇬"},{code:"+385",country:"Croatia",flag:"🇭🇷"},{code:"+386",country:"Slovenia",flag:"🇸🇮"},{code:"+421",country:"Slovakia",flag:"🇸🇰"},{code:"+372",country:"Estonia",flag:"🇪🇪"},{code:"+371",country:"Latvia",flag:"🇱🇻"},{code:"+370",country:"Lithuania",flag:"🇱🇹"},{code:"+352",country:"Luxembourg",flag:"🇱🇺"},{code:"+356",country:"Malta",flag:"🇲🇹"},{code:"+357",country:"Cyprus",flag:"🇨🇾"},{code:"+354",country:"Iceland",flag:"🇮🇸"},{code:"+7",country:"Russia",flag:"🇷🇺"},{code:"+380",country:"Ukraine",flag:"🇺🇦"},{code:"+90",country:"Turkey",flag:"🇹🇷"},{code:"+972",country:"Israel",flag:"🇮🇱"},{code:"+971",country:"UAE",flag:"🇦🇪"},{code:"+966",country:"Saudi Arabia",flag:"🇸🇦"},{code:"+965",country:"Kuwait",flag:"🇰🇼"},{code:"+974",country:"Qatar",flag:"🇶🇦"},{code:"+973",country:"Bahrain",flag:"🇧🇭"},{code:"+968",country:"Oman",flag:"🇴🇲"},{code:"+962",country:"Jordan",flag:"🇯🇴"},{code:"+961",country:"Lebanon",flag:"🇱🇧"},{code:"+20",country:"Egypt",flag:"🇪🇬"},{code:"+212",country:"Morocco",flag:"🇲🇦"},{code:"+213",country:"Algeria",flag:"🇩🇿"},{code:"+216",country:"Tunisia",flag:"🇹🇳"},{code:"+27",country:"South Africa",flag:"🇿🇦"},{code:"+234",country:"Nigeria",flag:"🇳🇬"},{code:"+254",country:"Kenya",flag:"🇰🇪"},{code:"+233",country:"Ghana",flag:"🇬🇭"},{code:"+81",country:"Japan",flag:"🇯🇵"},{code:"+82",country:"South Korea",flag:"🇰🇷"},{code:"+86",country:"China",flag:"🇨🇳"},{code:"+852",country:"Hong Kong",flag:"🇭🇰"},{code:"+886",country:"Taiwan",flag:"🇹🇼"},{code:"+65",country:"Singapore",flag:"🇸🇬"},{code:"+60",country:"Malaysia",flag:"🇲🇾"},{code:"+66",country:"Thailand",flag:"🇹🇭"},{code:"+84",country:"Vietnam",flag:"🇻🇳"},{code:"+62",country:"Indonesia",flag:"🇮🇩"},{code:"+63",country:"Philippines",flag:"🇵🇭"},{code:"+91",country:"India",flag:"🇮🇳"},{code:"+92",country:"Pakistan",flag:"🇵🇰"},{code:"+880",country:"Bangladesh",flag:"🇧🇩"},{code:"+94",country:"Sri Lanka",flag:"🇱🇰"},{code:"+977",country:"Nepal",flag:"🇳🇵"},{code:"+64",country:"New Zealand",flag:"🇳🇿"},{code:"+55",country:"Brazil",flag:"🇧🇷"},{code:"+52",country:"Mexico",flag:"🇲🇽"},{code:"+54",country:"Argentina",flag:"🇦🇷"},{code:"+56",country:"Chile",flag:"🇨🇱"},{code:"+57",country:"Colombia",flag:"🇨🇴"},{code:"+51",country:"Peru",flag:"🇵🇪"},{code:"+58",country:"Venezuela",flag:"🇻🇪"},{code:"+593",country:"Ecuador",flag:"🇪🇨"},{code:"+591",country:"Bolivia",flag:"🇧🇴"},{code:"+595",country:"Paraguay",flag:"🇵🇾"},{code:"+598",country:"Uruguay",flag:"🇺🇾"},{code:"+506",country:"Costa Rica",flag:"🇨🇷"},{code:"+507",country:"Panama",flag:"🇵🇦"},{code:"+503",country:"El Salvador",flag:"🇸🇻"},{code:"+502",country:"Guatemala",flag:"🇬🇹"},{code:"+504",country:"Honduras",flag:"🇭🇳"},{code:"+505",country:"Nicaragua",flag:"🇳🇮"},{code:"+509",country:"Haiti",flag:"🇭🇹"},{code:"+1809",country:"Dominican Republic",flag:"🇩🇴"}
423,{code:"+1787",country:"Puerto Rico",flag:"🇵🇷"},{code:"+1876",country:"Jamaica",flag:"🇯🇲"},{code:"+1868",country:"Trinidad and Tobago",flag:"🇹🇹"},{code:"+1246",country:"Barbados",flag:"🇧🇧"},{code:"+1242",country:"Bahamas",flag:"🇧🇸"}],JC=({value:e,onChange:t,disabled:n})=>{const r=fn.find(s=>`${s.code}-${s.country}`===e)||fn[0];return a.jsxs(iV,{value:e,onValueChange:t,disabled:n,children:[a.jsx(qC,{className:"w-[100px] bg-background border-border/50 text-foreground focus:border-primary focus:ring-0 shrink-0",children:a.jsx(oV,{children:a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx("span",{children:r.flag}),a.jsx("span",{className:"text-sm",children:r.code})]})})}),a.jsx(QC,{className:"bg-popover border-border max-h-[300px] z-50",children:fn.map((s,i)=>a.jsx(XC,{value:`${s.code}-${s.country}`,className:"text-foreground hover:bg-accent focus:bg-accent focus:text-accent-foreground cursor-pointer",children:a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx("span",{children:s.flag}),a.jsx("span",{className:"text-sm",children:s.country}),a.jsxs("span",{className:"text-muted-foreground text-xs",children:["(",s.code,")"]})]})},`${s.code}-${s.country}-${i}`))})]})},cV="0x4AAAAAAD1_Trf4IF42mHlG",S0=["Book Appointments","Handle Inquiries","Qualify Leads","Support Customers","Answer Questions","Schedule Calls"],uV=()=>{const{toast:e}=Qm(),[t,n]=y.useState(0),[r,s]=y.useState(!1),[i,o]=y.useState(`${fn[0].code}-${fn[0].country}`),[l,c]=y.useState({name:"",email:"",phone:""}),u=y.useRef(null),d=y.useRef(null),h=y.useRef(null);y.useEffect(()=>{const p=setInterval(()=>{n(b=>(b+1)%S0.length)},2500);return()=>clearInterval(p)},[]),y.useEffect(()=>{const p=()=>d.current||!window.turnstile||!u.current?!1:(d.current=window.turnstile.render(u.current,{sitekey:cV,size:"invisible",callback:v=>{var g;(g=h.current)==null||g.call(h,v),h.current=null},"error-callback":()=>{var v;(v=h.current)==null||v.call(h,""),h.current=null},"timeout-callback":()=>{var v;(v=h.current)==null||v.call(h,""),h.current=null}}),!0);if(p())return;const b=setInterval(()=>{p()&&clearInterval(b)},200);return()=>clearInterval(b)},[]);const f=()=>new Promise(p=>{if(!window.turnstile||!d.current){p("");return}h.current=p;try{window.turnstile.reset(d.current),window.turnstile.execute(d.current)}catch{p("")}setTimeout(()=>{h.current===p&&(h.current=null,p(""))},1e4)}),m=p=>{c(b=>({...b,[p.target.name]:p.target.value}))},w=async()=>{if(!l.name.trim()||!l.email.trim()||!l.phone.trim()){e({variant:"destructive",title:"Missing information",description:"Please fill in all fields before requesting a call."});return}s(!0);const p=i.split("-")[0],b=l.phone.replace(/[^\d]/g,""),v=b.startsWith(p.replace("+",""))?`+${b}`:`${p}${b}`,g=await f();if(!g){e({variant:"destructive",title:"Verification failed",description:"Please try again in a moment."}),s(!1);return}try{const{data:x,error:S}=await tC.functions.invoke("trigger-demo-call",{body:{name:l.name,email:l.email,phone:v,turnstileToken:g}});if(S){console.error("Error triggering call:",S),e({variant:"destructive",title:"Call failed",description:"Unable to initiate the demo call. Please try again."}),s(!1);return}console.log("Call triggered successfully:",x),e({title:"Call initiated! 📞",description:"Our AI agent will call you in a few seconds."})}catch(x){console.error("Exception triggering call:",x),e({variant:"destructive",title:"Call failed",description:"An unexpected error occurred. Please try again."}),s(!1)}};return a.jsxs("section",{className:"relative min-h-screen flex items-center justify-center overflow-hidden icy-gradient-bg pt-32 md:pt-40",children:[a.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[a.jsx(J.div,{className:"absolute top-32 left-[5%] w-20 h-20 bg-gradient-to-br from-muted to-secondary rounded-2xl shadow-lg opacity-60",animate:{y:[-10,10,-10],rotateZ:[0,5,0],rotateY:[0,15,0]},transition:{duration:6,repeat:1/0,ease:"easeInOut"},style:{transformStyle:"preserve-3d"}}),a.jsx(J.div,{className:"absolute top-48 left-[12%] w-14 h-14 bg-gradient-to-br from-secondary to-muted rounded-xl shadow-md opacity-50",animate:{y:[10,-15,10],rotateZ:[0,-8,0]},transition:{duration:7,repeat:1/0,ease:"easeInOut",delay:.5}}),a.jsx(J.div,{className:"absolute top-60 left-[3%] w-10 h-10 rounded-full bg-primary/20 shadow-sm",animate:{y:[-5,15,-5],scale:[1,1.1,1]},transition:{duration:5,repeat:1/0,ease:"easeInOut",delay:1}}),a.jsx(J.div,{className:"absolute top-28 right-[8%] w-24 h-24 bg-gradient-to-br from-muted to-background rounded-3xl shadow-lg op
423acity-50",animate:{y:[10,-10,10],rotateZ:[0,-5,0],rotateX:[0,10,0]},transition:{duration:8,repeat:1/0,ease:"easeInOut"}}),a.jsx(J.div,{className:"absolute top-56 right-[4%] w-16 h-16 bg-gradient-to-br from-secondary to-muted rounded-2xl shadow-md opacity-40",animate:{y:[-10,10,-10],rotateZ:[0,8,0]},transition:{duration:6,repeat:1/0,ease:"easeInOut",delay:.8}}),a.jsx(J.div,{className:"absolute top-40 left-[18%] w-4 h-4 rounded-full bg-accent/60",animate:{scale:[1,1.3,1],opacity:[.6,1,.6]},transition:{duration:3,repeat:1/0,ease:"easeInOut"}}),a.jsx(J.div,{className:"absolute top-52 right-[15%] w-3 h-3 rounded-full bg-primary/50",animate:{scale:[1,1.4,1],opacity:[.5,1,.5]},transition:{duration:4,repeat:1/0,ease:"easeInOut",delay:.5}}),a.jsx("div",{className:"absolute top-1/3 left-1/4 w-80 h-80 bg-primary/5 rounded-full blur-3xl"}),a.jsx("div",{className:"absolute bottom-1/3 right-1/4 w-64 h-64 bg-accent/5 rounded-full blur-3xl"})]}),a.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[a.jsxs("div",{className:"max-w-5xl mx-auto text-center",children:[a.jsxs(J.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},className:"text-4xl md:text-6xl lg:text-7xl font-bold leading-tight mb-6",children:[a.jsx("span",{className:"text-foreground",children:"Never Lose a Customer"}),a.jsx("br",{}),a.jsxs("span",{className:"text-foreground",children:["With our ",a.jsx("span",{className:"text-primary",children:"AI Automation"})," Service"]})]}),a.jsxs(J.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.05},className:"h-12 md:h-14 mb-6 flex items-center justify-center gap-2",children:[a.jsx("span",{className:"text-lg md:text-2xl text-muted-foreground",children:"Your AI can"}),a.jsx("div",{className:"relative h-8 md:h-10 min-w-[200px] md:min-w-[280px] flex items-center",children:a.jsx(Wj,{mode:"wait",children:a.jsx(J.span,{initial:{y:30,opacity:0},animate:{y:0,opacity:1},exit:{y:-30,opacity:0},transition:{duration:.35,ease:"easeInOut"},className:"absolute left-0 text-lg md:text-2xl font-bold text-primary whitespace-nowrap",children:S0[t]},t)})})]}),a.jsx(J.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:"text-lg md:text-xl text-muted-foreground max-w-3xl mx-auto mb-6 leading-relaxed",children:"We build custom AI voice agents and automated workflows that handle repetitive tasks, save your team hundreds of hours, and help your business grow. From intelligent call handling to advanced workflow integrations, we deliver powerful AI automation solutions for businesses worldwide."}),a.jsxs(J.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.15},className:"mb-12 flex flex-col sm:flex-row items-center justify-center gap-4",children:[a.jsx(Wt,{to:"/contact",className:"inline-flex items-center px-8 py-4 bg-transparent text-foreground rounded-full font-semibold text-lg border-2 border-border/60 hover:border-primary/60 hover:bg-primary/5 transition-all duration-300 hover:-translate-y-0.5 active:scale-95",children:a.jsx("span",{className:"relative",children:"Contact Sales"})}),a.jsxs("a",{href:"https://app.smartcallerlive.ai/register",className:"group relative inline-flex items-center gap-3 px-8 py-4 bg-[#0ea5e9] text-white rounded-full font-semibold text-lg border-2 border-[#22d3ee] shadow-[0_0_20px_rgba(34,211,238,0.5),_inset_0_0_10px_rgba(34,211,238,0.2)] hover:shadow-[0_0_40px_rgba(34,211,238,0.8),_inset_0_0_15px_rgba(34,211,238,0.4)] transition-all duration-300 hover:-translate-y-0.5 active:scale-95",children:[a.jsx("span",{className:"absolute inset-0 rounded-full bg-gradient-to-tr from-cyan-400/20 to-transparent opacity-50 group-hover:opacity-100 transition-opacity"}),a.jsx("span",{className:"absolute -inset-[1px] rounded-full border border-cyan-300/30 blur-[2px]"}),a.jsx("span",{className:"relative drop-shadow-[0_0_8px_rgba(255,255,255,0.3)]",children:"Get Started"}),a.jsx(Vr,{className:"w-5 h-5 relative transition-transform duration-300 group-hover:translate-x-1 drop-shadow-[0_0_5px_#22d3ee]"})]})]})]}),a.jsx(J.div,{id:"demo",initial:{opacity:0,y:50}
423,animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},className:"mt-4 max-w-5xl mx-auto",children:a.jsx("div",{className:"bg-[hsl(215_40%_12%)] rounded-3xl p-8 md:p-12 shadow-elevated",children:a.jsxs("div",{className:"flex flex-col lg:flex-row items-start gap-8 lg:gap-12",children:[a.jsxs("div",{className:"flex-1 text-left",children:[a.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full bg-primary/20 text-primary text-sm font-semibold mb-6",children:"Live demo"}),a.jsxs("h3",{className:"text-2xl md:text-4xl font-bold mb-2 text-sky-500",children:["Try ",a.jsx("span",{className:"text-white",children:"a free test call"})," ",a.jsx("span",{className:"text-primary",children:"NOW"}),"!"]}),a.jsx("p",{className:"text-[hsl(200_20%_70%)] mb-6 leading-relaxed",children:"Curious how our AI agents work?"}),a.jsx("p",{className:"text-[hsl(200_20%_70%)] mb-6 leading-relaxed",children:"Get a hands-on experience by trying a free demo call. Fill in your details, and our AI representative will call you instantly."}),a.jsx("p",{className:"text-[hsl(200_20%_60%)] text-sm",children:"Agent is trained to discuss about SmartCaller services and book appointments."})]}),a.jsx("div",{className:"w-full lg:w-96 shrink-0",children:a.jsxs("div",{className:"bg-[hsl(220_30%_16%)] rounded-2xl p-6 border border-primary/30 shadow-lg relative overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/10 to-transparent rounded-2xl"}),a.jsxs("div",{className:"relative z-10",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[a.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/20 flex items-center justify-center border-2 border-primary/40",children:a.jsx(In,{className:"w-5 h-5 text-primary"})}),a.jsxs("div",{children:[a.jsx("p",{className:"font-semibold text-white",children:"Demo AI agent"}),a.jsx("p",{className:"text-sm text-primary",children:"SmartCaller representative"})]})]}),a.jsxs("div",{className:"space-y-4 mb-6",children:[a.jsx(kr,{name:"name",placeholder:"Your name",value:l.name,onChange:m,disabled:r,className:"bg-[hsl(220_25%_20%)] border-[hsl(220_25%_28%)] text-white placeholder:text-[hsl(200_20%_50%)] focus:border-primary"}),a.jsx(kr,{name:"email",type:"email",placeholder:"Your e-mail",value:l.email,onChange:m,disabled:r,className:"bg-[hsl(220_25%_20%)] border-[hsl(220_25%_28%)] text-white placeholder:text-[hsl(200_20%_50%)] focus:border-primary"}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx(JC,{value:i,onChange:o,disabled:r}),a.jsx(kr,{name:"phone",type:"tel",placeholder:"Phone number",value:l.phone,onChange:m,disabled:r,className:"flex-1 bg-[hsl(220_25%_20%)] border-[hsl(220_25%_28%)] text-white placeholder:text-[hsl(200_20%_50%)] focus:border-primary"})]})]}),a.jsxs("p",{className:"text-sm text-[hsl(200_20%_60%)] text-center mb-4",children:["The call will automatically end after ",a.jsx("span",{className:"text-primary font-semibold",children:"5 minutes"})]}),a.jsx("div",{className:"flex justify-center",children:a.jsx(M$,{onSlideComplete:w})}),a.jsx("div",{ref:u,className:"hidden"})]})]})})]})})})]})]})},dV=[{icon:np,title:"Appointment Booking",description:"Dental clinics, beauty salons, dealerships, and other service providers can automate appointment scheduling. AI voice agents connect with any live calendar and handle all routine calls.",highlights:["Live calendar integration","GoHighLevel, Calendly, Cal.com, Google & Apple"],color:"from-sky-400 to-cyan-300"},{icon:j2,title:"Customer Support",description:"Instantly answer customer support phone calls — zero waiting time, zero queue, zero customer frustrations. Build a complete AI call center for your business.",highlights:["24/7 Availability","Real-time system integration","Support procedure documents"],color:"from-blue-400 to-indigo-300"},{icon:L1,title:"Cold Calling",description:"Think sales on autopilot. AI voice agents can cold call, follow-up leads, qualify prospects and book appointments. Close more deals without increasing your sales team.",highlights:["Automated follow-ups","Qualify leads on autopilot","Close deals faster"],color:"from-teal-400 to-emerald-300"}],hV=[{icon:R1,value:"100+",label:"Languages Supported"},{icon:mu,value:"300+",label:"Integrations Ready"},{icon:rp,value:"24/7",label:"AI Availability"},{icon:Ql,value:"50+",label:"Parallel Calls"}],fV=()=>a.jsxs("section",{id:"features",className:"py-24 md:py-32 bg-background relative overflow-hidden",children:[a.jsx("div",{className:"absolute top-0 left-0 w-full h-px bg-gradient-to-r from-transparent via-border to-transparent"}),a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsxs(J.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-20",children:[a.jsx("span",{className:"inline-block px-4 py-2 rounded-full bg-primary/10 text-primary text-sm font-semibold mb-6",children:"Powerful Features"}),a.jsxs("h2",{className:"text-3xl md:text-5xl font-bold text-foreground mb-6",children:["Everything You Need to"," ",a.jsx("span",{className:"gradient-text",children:"Never Lose a Customer"})]}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"From appointment booking to cold calling, SmartCaller handles every phone interaction with human-like precision."})]}),a.jsx("div",{className:"grid md:grid-cols-3 gap-8 mb-24",children:dV.map((e,t)=>a.jsx(J.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:t*.1},className:"group",children:a.jsxs("div",{className:"glass-card p-8 h-full hover:shadow-elevated transition-all duration-500 hover:-translate-y-2",children:[a.jsx("div",{className:`w-14 h-14 roun
423ded-2xl bg-gradient-to-br ${e.color} flex items-center justify-center mb-6 shadow-lg group-hover:scale-110 transition-transform duration-300`,children:a.jsx(e.icon,{className:"w-7 h-7 text-white"})}),a.jsx("h3",{className:"text-xl font-bold text-foreground mb-4",children:e.title}),a.jsx("p",{className:"text-muted-foreground mb-6 leading-relaxed",children:e.description}),a.jsx("ul",{className:"space-y-3",children:e.highlights.map((n,r)=>a.jsxs("li",{className:"flex items-center gap-3 text-sm",children:[a.jsx("div",{className:"w-5 h-5 rounded-full bg-primary/10 flex items-center justify-center shrink-0",children:a.jsx("div",{className:"w-2 h-2 rounded-full bg-primary"})}),a.jsx("span",{className:"text-foreground",children:n})]},r))}),a.jsx(ft,{variant:"ghost",className:"mt-6 group-hover:text-primary transition-colors",asChild:!0,children:a.jsx(Wt,{to:"/contact",children:"Learn more →"})})]})},e.title))}),a.jsx(J.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"glass-card p-8 md:p-12",children:a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8 md:gap-12",children:hV.map((e,t)=>a.jsxs(J.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.4,delay:t*.1},className:"text-center",children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center mx-auto mb-4",children:a.jsx(e.icon,{className:"w-6 h-6 text-primary"})}),a.jsx("div",{className:"text-3xl md:text-4xl font-bold gradient-text mb-2",children:e.value}),a.jsx("p",{className:"text-sm text-muted-foreground",children:e.label})]},e.label))})})]})]}),mV=["Create voice agents in minutes","300+ integrations with your tools","Real-time analytics & call tracking"],pV=()=>a.jsx("section",{className:"py-20 md:py-28 bg-background",children:a.jsx("div",{className:"container mx-auto px-4",children:a.jsx(J.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"max-w-6xl mx-auto bg-[hsl(215_40%_12%)] rounded-3xl p-8 md:p-12 lg:p-16 overflow-hidden",children:a.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-10 lg:gap-14",children:[a.jsxs("div",{className:"flex-1 text-left",children:[a.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full bg-primary/20 text-primary text-sm font-semibold mb-6",children:"Demo"}),a.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold mb-4 text-white leading-tight",children:"Call in action"}),a.jsx("p",{className:"text-[hsl(200_20%_70%)] mb-8 leading-relaxed max-w-md",children:"Watch a real SmartCaller AI agent handle a roof repair call — qualifying the lead, booking the appointment, and updating your CRM in real time."}),a.jsx("ul",{className:"space-y-3 mb-8",children:mV.map(e=>a.jsxs("li",{className:"flex items-center gap-3",children:[a.jsx(x2,{className:"w-5 h-5 text-primary shrink-0"}),a.jsx("span",{className:"text-[hsl(200_20%_80%)] text-sm md:text-base",children:e})]},e))}),a.jsxs("a",{href:"https://app.smartcallerlive.ai/register",className:"inline-flex items-center gap-2 text-primary font-semibold hover:gap-3 transition-all",children:["Get started ",a.jsx(Vr,{className:"w-4 h-4"})]})]}),a.jsx("div",{className:"w-full lg:w-[55%] shrink-0",children:a.jsx("div",{className:"rounded-2xl overflow-hidden shadow-2xl border border-white/10",children:a.jsxs("video",{className:"w-full aspect-video object-cover",controls:!0,preload:"metadata",poster:"",children:[a.jsx("source",{src:"https://aqrdmvscucdawmdrwkqv.supabase.co/storage/v1/object/public/videos/call-in-action.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]})})})]})})})}),j0=[{name:"English",flag:"🇺🇸"},{name:"Spanish",flag:"🇪🇸"},{name:"French",flag:"🇫🇷"},{name:"German",flag:"🇩🇪"},{name:"Italian",flag:"🇮🇹"},{name:"Portuguese",flag:"🇧🇷"},{name:"Japanese",flag:"🇯🇵"},{name:"Korean",flag:"🇰🇷"},{name:"Chinese",flag:"🇨🇳"},{name:"Arabic",flag:"🇸🇦"},{name:"Hindi",flag:"🇮🇳"},{name:"Russian",flag:"🇷🇺"}],N0=[{name:"Dutch",flag:"🇳🇱"},{name:"Swedish",flag:"🇸🇪"},{name:"Polish",flag:"🇵🇱"},{name:"Turkish",flag:"🇹🇷"},{name:"Greek",flag:"🇬🇷"},{name:"Czech",flag:"🇨🇿"},{name:"Danish",flag:"🇩🇰"},{name:"Finnish",flag:"🇫🇮"},{name:"Norwegian",flag:"🇳🇴"},{name:"Thai",flag:"🇹🇭"},{name:"Vietnamese",flag:"🇻🇳"},{name:"Indonesian",flag:"🇮🇩"}],C0=({name:e,flag:t})=>a.jsxs("div",{className:"flex items-center gap-3 px-5 py-3 bg-card/50 backdrop-blur-sm border border-border/50 rounded-full shrink-0",children:[a.jsx("span",{className:"text-2xl",children:t}),a.jsx("span",{className:"text-foreground font-medium whitespace-nowrap",children:e})]}),gV=()=>a.jsxs("section",{className:"py-20 bg-gradient-to-b from-background to-muted/20 overflow-hidden",children:[a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsxs(J.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-12",children:[a.jsxs("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:[a.jsx("span",{className:"gradient-text",children:"100+ languages"})," to choose from"]}),a.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Our AI supports over 100 languages and diverse accents to address a global audience. Each language is equipped with 
423natural-sounding voice options."})]}),a.jsx("div",{className:"relative mb-4 overflow-hidden",children:a.jsx("div",{className:"flex gap-4 animate-scroll-left w-max",children:[...j0,...j0].map((e,t)=>a.jsx(C0,{name:e.name,flag:e.flag},`row1-${t}`))})}),a.jsx("div",{className:"relative mb-12 overflow-hidden",children:a.jsx("div",{className:"flex gap-4 animate-scroll-right w-max",children:[...N0,...N0].map((e,t)=>a.jsx(C0,{name:e.name,flag:e.flag},`row2-${t}`))})}),a.jsx(J.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.2},className:"text-center",children:a.jsx(Wt,{to:"/languages",children:a.jsxs(ft,{variant:"outline",className:"group",children:["View Languages",a.jsx(Vr,{className:"ml-2 w-4 h-4 group-hover:translate-x-1 transition-transform"})]})})})]}),a.jsx("style",{children:`
424        @keyframes scroll-left {
425          from {
426            transform: translateX(0);
427          }
428          to {
429            transform: translateX(-50%);
430          }
431        }
432        @keyframes scroll-right {
433          from {
434            transform: translateX(-50%);
435          }
436          to {
437            transform: translateX(0);
438          }
439        }
440        .animate-scroll-left {
441          animation: scroll-left 50s linear infinite;
442        }
443        .animate-scroll-right {
444          animation: scroll-right 50s linear infinite;
445        }
446      `})]}),yV="/assets/lisa-order-tracking-B-bTtum6.mp3",vV="/assets/mark-appointment-booking-UDZgEJWl.mp3",xV="/assets/cold-call-lead-3kfik3eT.mp3",wV=[{title:"Listen to AI track Lisa's order and shift languages",description:"Let AI handle customer support for your business and allow your team to focus on high-value tasks. Designed to detect and switch between over 100 languages mid-conversation.",category:"Customer Support",duration:"0:41",audio:yV},{title:"See how Mark books an appointment",description:"Medical, dental, home services, professional services, salons and many more keep up easier with appointments and reminders. Scaling effortlessly for peak times and ensuring consistent service.",category:"Appointment Booking",duration:"1:16",audio:vV},{title:"AI voice agent cold calls lead",description:"Check out our AI voice agent in action, making cold calls to leads and opening doors for your business. AI systems can dial hundreds or thousands of numbers simultaneously, a volume impossible for human teams.",category:"Cold Calling",duration:"0:52",audio:xV}],bV=({isPlaying:e})=>a.jsx("div",{className:"flex items-end gap-[3px] h-4",children:[1,2,3,4].map(t=>a.jsx(J.div,{className:"w-[3px] rounded-full bg-primary/80",animate:e?{height:[4,12+t*2,6,14,4]}:{height:4},transition:e?{duration:.8+t*.15,repeat:1/0,ease:"easeInOut"}:{duration:.2},style:{height:4}},t))}),SV=()=>{const[e,t]=y.useState(null),n=y.useRef(null),r=(s,i)=>{var o;i&&(e===s?((o=n.current)==null||o.pause(),t(null)):(n.current&&n.current.pause(),n.current=new Audio(i),n.current.play(),n.current.onended=()=>t(null),t(s)))};return a.jsx("section",{className:"py-20 bg-background",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsxs(J.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-12",children:[a.jsx("span",{className:"inline-block px-4 py-2 rounded-full bg-primary/10 text-primary text-sm font-semibold mb-4",children:"See It In Action"}),a.jsxs("h2",{className:"text-3xl md:text-4xl font-bold text-foreground",children:["Listen to SmartCaller ",a.jsx("span",{className:"gradient-text",children:"Live"})]})]}),a.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:wV.map((s,i)=>{const o=e===i;return a.jsx(J.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:i*.1},className:"group",children:a.jsxs("div",{className:"glass-card p-6 h-full hover:shadow-elevated transition-all duration-500 hover:-translate-y-1 flex flex-col",children:[a.jsxs("div",{className:"flex items-center justify-between mb-4",children:[a.jsx("span",{className:"inline-block px-2.5 py-1 rounded-md bg-secondary text-xs font-medium text-secondary-foreground",children:s.category}),a.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[a.jsx(rp,{className:"w-3.5 h-3.5"}),a.jsx("span",{children:s.duration})]})]}),a.jsx("h3",{className:"font-bold text-foreground mb-3 group-hover:text-primary transition-colors leading-snug",children:s.title}),a.jsxs("div",{className:"flex-1 flex flex-col justify-between gap-5",children:[a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:s.description}),a.jsxs("button",{onClick:()=>r(i,s.audio),className:"self-start flex items-center gap-3 px-4 py-2.5 rounded-full bg-primary/10 hover:bg-primary/20 border border-primary/20 transition-colors group/btn",children:[a.jsx("span",{className:"w-8 h-8 rounded-full bg-primary flex items-center justify-center shadow-lg group-hover/btn:scale-105 transition-transform",children:o?a.jsx(M1,{className:"w-3.5 h-3.5 text-primary-foreground"}):a.jsx(sp,{className:"w-3.5 h-3.5 text-primary-foreground ml-0.5"})}),a.jsx("span",{className:"text-sm font-semibold text-primary",children:o?"Playing":"Play example"}),a.jsx(bV,{isPlaying:o})]})]})]})},s.title)})})]})})},E0=[{step:"01",icon:$1,title:"Create Your Agent",description:"Use our intuitive prompt builder to instruct your AI agent. No coding required — just describe how you want it to behave."},{step:"02",icon:fu,title:"Train & Customize",description:"Upload your knowledge base, FAQs, and scripts. Your AI learns your business and speaks in your brand voice."},{step:"03",icon:g2,title:"Deploy & Monitor",description:"Go live instantly with detailed analytics. Track every call, review transcripts, and optimize performance."}],jV=()=>a.jsxs("section",{id:"how-it-works",className:"py-24 md:py-32 icy-gradient-bg relative overflow-hidden",children:[a.jsx("div",{className:"absolute top-1/2 left-0 w-96 h-96 bg-primary/5 rounded-full blur-3xl -translate-y-1/2"}),a.jsx("div",{className:"absolute top-1/2 right-0 w-80 h-80 bg-accent/5 rounded-full blur-3xl -translate-y-1/2"}),a.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[a.jsxs(J.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-20",children:[a.jsx("span",{className:"inline-block px-4 py-2 rounded-full bg-primary/10 text-primary text-sm font-semibold mb-6",children:"Simple Setup"}),a.jsxs("h2",{className:"text-3xl md:text-5xl font-bold text-foreground mb-6",children:["Get Started in"," ",a.jsx("span",{className:"gradient-text",children:"3 Easy Steps"})]}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Launch your AI voice agent in minutes, not days. Our no-code platform makes it effortless."})]}),a.jsx("div",{className:"max-w-5xl mx-auto",children:a.jsx("div",{className:"grid md:grid-cols-3 gap-8 relative",children:E0.map((e,t)=>a.jsxs(J.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:t*.15},className:"relative",children:[a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"inline-block mb-8",children:a.jsx("div",{className:"w-20 h-20 rounded-2xl bg-card shadow-card flex items-center justify-center border border-border",children:a.jsx(e.icon,{className:"w-8 h-8 text-primary"})})}),a.jsx("h3",{className:"text-xl font-bold text-foreground mb-4",children:e.title}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.description})]}),t<E0.length-1&&a.jsx("div",{className:"hidden md:flex absolute top-20 -right-4 z-20",children:a.jsx(Vr,{className:"w-8 h-8 text-primary/30"})})]},e.step))})}),a.jsx(J.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.3},className:"text-center mt-16",children:a.jsx(ft,{variant:"hero",size:"xl",asChild:!0,children:a.jsx("a",{href:"https://app.smartcallerlive.ai/register",children:"Create Your Agent in 60 Seconds"})})})]})]}),T0=[{name:"HubSpot",color:"#FF7A59"},{name:"Salesforce",color:"#00A1E0"},{name:"Calendly",color:"#006BFF"},{name:"Slack",color:"#4A154B"},{name:"Zapier",color:"#FF4A00"},{name:"Google",color:"#4285F4"},{name:"Zoom",color:"#2D8CFF"},{name:"Microsoft",color:"#00A4EF"}],NV=()=>a.jsxs("section",{className:"py-16 bg-background border-y border-border/50 overflow-hidden",children:[a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsx(J.div,{initial:{opacity:0}
446,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-10",children:a.jsxs("p",{className:"text-muted-foreground text-sm font-medium",children:["Seamlessly integrates with ",a.jsx("strong",{className:"text-foreground",children:"300+"})," popular tools"]})}),a.jsx(CV,{})]}),a.jsx("style",{children:`
447        /* Keep paint/layout stable for smooth marquee */
448        .marquee-track {
449          will-change: transform;
450          transform: translateZ(0);
451        }
452      `})]}),CV=()=>{const e=y.useRef(null),[t,n]=y.useState(0);return y.useEffect(()=>{if(!e.current)return;const r=()=>{const i=Math.floor(e.current.scrollWidth/2);n(i)};r();const s=new ResizeObserver(()=>r());return s.observe(e.current),()=>s.disconnect()},[]),a.jsx("div",{className:"relative overflow-hidden",children:a.jsx(J.div,{ref:e,className:"marquee-track flex w-max",animate:t?{x:[0,-t]}:void 0,transition:{duration:24,ease:"linear",repeat:1/0},children:[...T0,...T0].map((r,s)=>a.jsxs("div",{className:"flex items-center gap-3 shrink-0 mx-6",children:[a.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center text-white font-bold text-sm",style:{backgroundColor:r.color},children:r.name.charAt(0)}),a.jsx("span",{className:"text-foreground font-medium whitespace-nowrap",children:r.name})]},s))})})},EV=[{name:"Real Estate",icon:N2},{name:"Healthcare",icon:I2},{name:"Automotive",icon:p2},{name:"E-commerce",icon:O2},{name:"Legal",icon:_2},{name:"Travel",icon:T2},{name:"Corporate",icon:m2},{name:"Education",icon:S2}],TV=()=>a.jsx("section",{className:"py-16 border-y border-border/50 icy-gradient-bg",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsxs(J.div,{initial:{opacity:0}
452,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-10",children:[a.jsx("p",{className:"text-muted-foreground text-sm font-medium mb-2",children:"Trusted by businesses across industries"}),a.jsxs("h3",{className:"text-xl font-bold text-foreground",children:["Industries Leveraging ",a.jsx("span",{className:"gradient-text",children:"Voice AI"})]})]}),a.jsx("div",{className:"flex flex-wrap justify-center gap-6 md:gap-10",children:EV.map((e,t)=>a.jsxs(J.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:t*.05},className:"flex items-center gap-2 px-4 py-2 rounded-full bg-card/80 border border-border/50 hover:border-primary/30 transition-colors group",children:[a.jsx(e.icon,{className:"w-4 h-4 text-primary group-hover:scale-110 transition-transform"}),a.jsx("span",{className:"text-sm font-medium text-foreground",children:e.name})]},e.name))})]})}),kV=[{name:"Sarah Chen",role:"CEO, MediBook Clinic",avatar:"SC",content:"SmartCaller transformed our appointment booking process. We've reduced no-shows by 60% and our front desk staff can now focus on patient care instead of phone calls.",rating:5,industry:"Healthcare"},{name:"Michael Rodriguez",role:"Sales Director, TechFlow Inc",avatar:"MR",content:"Our cold calling efficiency skyrocketed. The AI qualifies leads 24/7 and books meetings directly in our CRM. It's like having 50 SDRs working around the clock.",rating:5,industry:"Technology"},{name:"Emma Thompson",role:"Owner, Luxe Beauty Spa",avatar:"ET",content:"The natural conversations amazed me. Clients often don't realize they're talking to AI. Booking confirmations and reminders run on autopilot now.",rating:5,industry:"Beauty & Wellness"},{name:"David Park",role:"Operations Manager, AutoCare Plus",avatar:"DP",content:"Customer support calls are handled flawlessly. Response time went from 5 minutes to instant. Our customer satisfaction scores increased by 40%.",rating:5,industry:"Automotive"},{name:"Lisa Wang",role:"Founder, PropertyFirst Realty",avatar:"LW",content:"SmartCaller handles property inquiries and schedules viewings while I sleep. My conversion rate doubled and I never miss a potential buyer.",rating:5,industry:"Real Estate"},{name:"James Morrison",role:"VP of Sales, InsureCo",avatar:"JM",content:"We process 10x more leads than before. The multilingual support opened up entire new markets for us. ROI was positive within the first month.",rating:5,industry:"Insurance"}],_V=()=>a.jsx("section",{id:"testimonials",className:"py-24 md:py-32 bg-background relative overflow-hidden",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsxs(J.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[a.jsx("span",{className:"inline-block px-4 py-2 rounded-full bg-primary/10 text-primary text-sm font-semibold mb-6",children:"Customer Stories"}),a.jsxs("h2",{className:"text-3xl md:text-5xl font-bold text-foreground mb-6",children:["Trusted by"," ",a.jsx("span",{className:"gradient-text",children:"Industry Leaders"})]}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"See how businesses across industries are transforming their phone operations with SmartCaller."})]}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:kV.map((e,t)=>a.jsx(J.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:t*.1},className:"group",children:a.jsxs("div",{className:"glass-card p-6 h-full hover:shadow-elevated transition-all duration-500 hover:-translate-y-1",children:[a.jsx(k2,{className:"w-8 h-8 text-primary/20 mb-4"}),a.jsx("div",{className:"flex gap-1 mb-4",children:[...Array(e.rating)].map((n,r)=>a.jsx(R2,{className:"w-4 h-4 fill-primary text-primary"},r))}),a.jsxs("p",{className:"text-foreground/90 leading-relaxed mb-6",children:['"',e.content,'"']}),a.jsxs("div",{className:"flex items-center gap-4 pt-4 border-t border-border/50",children:[a.jsx("div",{className:"w-12 h-12 rounded-full bg-gradient-to-br from-primary to-accent flex items-center justify-center text-primary-foreground font-semibold text-sm",children:e.avatar}),a.jsxs("div",{children:[a.jsx("p",{className:"font-semibold text-foreground",children:e.name}),a.jsx("p",{className:"text-sm text-muted-foreground",children:e.role})]})]}),a.jsx("div",{className:"mt-4",children:a.jsx("span",{className:"inline-block px-3 py-1 rounded-full bg-secondary text-xs font-medium text-secondary-foreground",children:e.industry})})]})},e.name))})]})});var Lu="Collapsible",[AV,ZC]=qr(Lu),[PV,lg]=AV(Lu),eE=y.forwardRef((e,t)=>
vendor: 4,177 bytes, line 452
452{const{__scopeCollapsible:n,open:r,defaultOpen:s,disabled:i,onOpenChange:o,...l}=e,[c,u]=Yi({prop:r,defaultProp:s??!1,onChange:o,caller:Lu});return a.jsx(PV,{scope:n,disabled:i,contentId:Wa(),open:c,onOpenToggle:y.useCallback(()=>u(d=>!d),[u]),children:a.jsx(se.div,{"data-state":hg(c),"data-disabled":i?"":void 0,...l,ref:t})})});eE.displayName=Lu;var tE="CollapsibleTrigger",cg=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,s=lg(tE,n);return a.jsx(se.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":hg(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:t,onClick:Z(e.onClick,s.onOpenToggle)})});cg.displayName=tE;var ug="CollapsibleContent",dg=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=lg(ug,e.__scopeCollapsible);return a.jsx(Gr,{present:n||s.open,children:({present:i})=>a.jsx(RV,{...r,ref:t,present:i})})});dg.displayName=ug;var RV=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:s,...i}=e,o=lg(ug,n),[l,c]=y.useState(r),u=y.useRef(null),d=fe(t,u),h=y.useRef(0),f=h.current,m=y.useRef(0),w=m.current,p=o.open||l,b=y.useRef(p),v=y.useRef(void 0);return y.useEffect(()=>{const g=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(g)},[]),He(()=>{const g=u.current;if(g){v.current=v.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const x=g.getBoundingClientRect();h.current=x.height,m.current=x.width,b.current||(g.style.transitionDuration=v.current.transitionDuration,g.style.animationName=v.current.animationName),c(r)}},[o.open,r]),a.jsx(se.div,{"data-state":hg(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!p,...i,ref:d,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:p&&s})});function hg(e){return e?"open":"closed"}var nE=eE,IV=cg,OV=dg;const MV=nE,LV=cg,DV=dg,$V=["Web Widget","Secondary Languages","Automation Platform","Calendar Integrations","Custom Dashboards","AI Prompt Editor","Flow Builder"],FV=[{name:"Starter",description:"Start automating calls with voice AI agents.",price:"$299",period:"/month",implementationFee:"$1,000",features:["250 included minutes, then $0.39/min","2 AI assistants","2 outbound campaigns","3 calls in parallel","1 cloned voice","3,000 no-code runs/month"],additionalFeatures:[!1,!1,!0,!0,!1,!0,!1],cta:"Get Started",popular:!1},{name:"Pro",description:"For revenue focused businesses automating inbound and outbound calls.",price:"$549",period:"/month",implementationFee:"$1,750",features:["800 included minutes, then $0.34/min","6 AI assistants","8 outbound campaigns","25 calls in parallel","6 cloned voices","50,000 no-code automation runs/month"],additionalFeatures:[!0,!0,!0,!0,!1,!0,!0],cta:"Get Started",popular:!0},{name:"Growth",description:"Built for fast-growing teams running serious outbounds and customer engagement.",price:"$999",period:"/month",implementationFee:"$2,500",features:["1,400 included minutes, then $0.29/min","Unlimited AI assistants","Unlimited outbound campaigns","300 calls in parallel","Unlimited cloned voices","100,000 no-code automation runs/month"],additionalFeatures:[!0,!0,!0,!0,!0,!0,!0],cta:"Get Started",popular:!1},{name:"Scale",description:"For businesses, agencies and call centers with maximum capacity needs.",price:"$1,499",period:"/month",implementationFee:"$4,000",features:["3,000 included minutes, then $0.24/min","Unlimited AI assistants","Unlimited outbound campaigns","1,000 calls in parallel","Unlimited cloned voices","Unlimited no-code platform runs","Unlimited knowledgebases","Advanced mid-call tools","Unlimited phone numbers"],additionalFeatures:[!0,!0,!0,!0,!0,!0,!0],cta:"Get Started",popular:!1}],VV=[{name:"Starter",description:"Start automating calls with voice AI agents.",price:"$270",period:"/month",implementationFee:"$1,000",features:["250 included minutes, then $0.39 / extra minute","2 AI assistants","2 outbound campaigns","3 calls in parallel","1 cloned voice","3,000 no-code runs/month"],additionalFeatures:[!1,!1,
452!0,!0,!1,!0,!1],cta:"Get Started",popular:!1},{name:"Pro",description:"For revenue focused businesses automating inbound and outbound calls.",price:"$494",period:"/month",implementationFee:"$1,750",features:["800 included minutes, then $0.34 / extra minute","6 AI assistants","8 outbound campaigns","25 calls in parallel","6 cloned voices","50,000 no-code automation runs/month"],additionalFeatures:[!0,!0,!0,!0,!1,!0,!0],cta:"Get Started",popular:!0},{name:"Growth",description:"Built for fast-growing teams running serious outbounds and customer engagement.",price:"$900",period:"/month",implementationFee:"$2,500",features:["1,400 included minutes, then $0.29 / extra minute","Unlimited AI assistants","Unlimited outbound campaigns","300 calls in parallel","Unlimited cloned voices","100,000 no-code automation runs/month"],additionalFeatures:[!0,!0,!0,!0,!0,!0,!0],cta:"Get Started",popular:!1},{name:"Scale",description:"For businesses, agencies and call centers with maximum capacity needs.",price:"$1,350",period:"/month",implementationFee:"$4,000",features:["3,000 included minutes, then $0.24 / extra minute","Unlimited AI assistants","Unlimited outbound campaigns","1,000 calls in parallel","Unlimited cloned voices","Unlimited no-code platform runs","Unlimited knowledgebases","Advanced mid-call tools","Unlimited phone numbers"],additionalFeatures:[!0,!0,!0,!0,!0,!0,!0],cta:"Get Started",popular:!1}],UV=()=>{const[e,t]=y.useState("monthly"),n=e==="monthly"?FV:VV;return a.jsxs("section",{id:"pricing",className:"py-24 md:py-32 icy-gradient-bg relative overflow-hidden",children:[a.jsx("div",{className:"absolute top-20 right-0 w-72 h-72 bg-primary/5 rounded-full blur-3xl"}),a.jsx("div",{className:"absolute bottom-20 left-0 w-96 h-96 bg-accent/5 rounded-full blur-3xl"}),a.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[a.jsxs(J.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[a.jsx("span",{className:"inline-block px-4 py-2 rounded-full bg-primary/10 text-primary text-sm font-semibold mb-6",children:"Pricing"}),a.jsxs("h2",{className:"text-3xl md:text-5xl font-bold text-foreground mb-6",children:["Ready to"," ",a.jsx("span",{className:"gradient-text",children:"Never Lose a Customer?"})]}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto mb-8",children:"Choose the plan that fits your needs. All plans include our core AI technology and integrations."}),a.jsx("div",{className:"flex justify-center",children:a.jsxs("div",{className:"inline-flex items-center gap-2 p-1 rounded-full bg-muted/50 border border-border",children:[a.jsx("button",{onClick:()=>t("monthly"),className:`px-6 py-2 rounded-full text-sm font-medium transition-all ${e==="monthly"?"bg-primary text-primary-foreground shadow-md":"text-muted-foreground hover:text-foreground"}`,children:"Monthly"}),a.jsxs("button",{onClick:()=>t("yearly"),className:`px-6 py-2 rounded-full text-sm font-medium transition-all flex items-center gap-2 ${e==="yearly"?"bg-primary text-primary-foreground shadow-md":"text-muted-foreground hover:text-foreground"}`,children:["Yearly",a.jsx("span",{className:"text-xs px-2 py-0.5 rounded-full bg-accent text-accent-foreground",children:"10% off"})]})]})})]}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6 max-w-6xl mx-auto",children:n.map((r,s)=>a.jsx(J.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:s*.1},className:`relative ${r.popular?"md:-mt-4 md:mb-4":""}`,children:a.jsxs("div",{className:`glass-card p-8 h-full ${r.popular?"border-primary/50 shadow-glow":""}`,children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.jsx("h3",{className:"text-xl font-bold text-foreground",children:r.name}),r.popular&&a.jsxs("div",{className:"flex items-center gap-1 px-3 py-0.5 rounded-full bg-primary text-primary-foreground text-xs font-semibold shadow-lg",children:[a.jsx(mu,{className:"w-3 h-3"}),"Most Popular"]})]}),a.jsx("p",{className:"text-muted-foreground text-sm mb-6",children:r.description}),a.jsxs("div",{className:"mb-8",children:[a.jsx("span",{className:"text-4xl font-bold text-foreground",children:r.price}),a.jsx("span",{className:"text-muted-foreground",children:r.period}),e==="yearly"&&a.jsx("span",{className:"block text-xs text-muted-foreground mt-1",children:"billed annually"})]}),a.jsx("ul",{className:"space-y-4 mb-4",children:r.features.map((i,o)=>a.jsxs("li",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-5 h-5 rounded-full bg-primary/10 flex items-center justify-center shrink-0",children:a.jsx(ef,{className:"w-3 h-3 text-primary"})}),a.jsx("span",{className:"text-foreground text-sm",children:i})]},o))}),a.jsxs(MV,{className:"mb-8",children:[a.jsxs(LV,{className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors w-full group",children:[a.jsx(za,{className:"w-4 h-4 transition-transform group-data-[state=open]:rotate-180"}),a.jsx("span",{children:"View more features"})]}),a.jsx(DV,{className:"pt-4",children:a.jsx("ul",{className:"space-y-3",children:$V.map((i,o)=>{const l=r.additionalFeatures[o];return a.jsxs("li",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-5 h-5 rounded-full flex items-center justify-center shrink-0 bg-primary/10",children:l?a.jsx(ef,{className:"w-3 h-3 text-primary"}):a.jsx(ip,{className:"w-3 h-3 text-primary"})}),a.jsx("span",{className:`text-sm ${l?"text-foreground":"text-muted-foreground"}`,children:i})]},o)})})})]}),a.jsx(ft,{variant:r.popular?"hero":"outline",className:"w-full",size:"lg",asChild:!0,children:a.jsx("a",{href:"https://app.smartcallerlive.ai/register",children:r.cta})}),a.jsxs("div",{className:"mt-5 text-center",children:[a.jsxs("p",{className:"text-xs text-muted-foreground mb-1",children:["Billed monthly or ",a.jsx("span",{className:"text-primary font-semibold",children:"save 10% annually"})]}),a.jsxs("p",{className:"text-sm font-semibold text-foreground",children:["One-Time Implementation: ",r.implementationFee]})]})]})},`${e}-${r.name}`))}),a.jsx(J.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.2},className:"mt-16 max-w-6xl mx-auto",children:a.jsxs("div",{className:"glass-card p-8 md:p-12 border border-primary/10",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center",children:a.jsx(Wy,{className:"w-6 h-6 text-primary"})}),a.jsx("h3",{className:"text-2xl md:text-3xl font-bold text-foreground",children:"White-Glove AI Launch"})]}),a.jsxs("div",{className:"grid lg:grid-cols-2 gap-10 lg:gap-14",children:[a.jsxs("div",{className:"space-y-6",children:[a.jsx("p",{className:"text-primary font-semibold text-lg",children:"We don't just give you software. We launch fully configured AI employees for your business."}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Our implementation team handles everything needed to get your AI answering calls, qualifying leads, booking appointments, and integrating with your existing tools."}),a.jsxs("div",{className:"p-6 md:p-8 rounded-2xl border border-border bg-background/50",children:[a.jsx("h4",{className:"text-center text-lg font-bold text-foreground mb-8",children:"One-Time Implementation"}),a.jsxs("div",{className:"grid grid-cols-2 lg:flex lg:divide-x lg:divide-border",children:[a.jsxs("div",{className:"flex-1 text-center px-4 py-2",children:[a.jsx("p",{className:"text-sm font-semibold text-muted-foreground mb-2",children:"Starter"}),a.jsx("p",{className:"text-2xl font-bold text-primary",children:"$1,000"})]}),a.jsxs("div",{className:"flex-1 text-center px-4 py-2",children:[a.jsx("p",{className:"text-sm font-semibold text-muted-foreground mb-2",children:"Pro"}),a.jsx("p",{className:"text-2xl font-bold text-primary",children:"$1,750"})]}),a.jsxs("div",{className:"flex-1 text-center px-4 py-2",children:[a.jsx("p",{className:"text-sm font-semibold text-muted-foreground mb-2",children:"Growth"}),a.jsx("p",{className:"text-2xl font-bold text-primary",children:"$2,500"})]}),a.jsxs("div",{className:"flex-1 text-center px-4 py-2",children:[a.jsx("p",{className:"text-sm font-semibold text-muted-foreground mb-2",children:"Scale"}),a.jsx("p",{className:"text-2xl font-bold text-primary",children:"$4,000"})]})]}),a.jsxs("div",{className:"mt-6 flex items-center justify-center gap-2 text-sm text-muted-foreground",children:[a.jsx(P2,{className:"w-4 h-4 text-primary"}),a.jsx("span",{children:"One-time fee. No recurring onboarding costs."})]})]})]}),a.jsxs("div",{className:"grid sm:grid-cols-3 gap-6",children:[a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:a.jsx(fu,{className:"w-5 h-5 text-primary"})}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground text-sm",children:"AI Agent Configuration"}),a.jsx("p",{className:"text-muted-foreground text-xs mt-0.5",children:"Custom setup for your business"})]})]}),a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:a.jsx(O1,{className:"w-5 h-5 text-primary"})}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground text-sm",children:"Voice & Personality Setup"}),a.jsx("p",{className:"text-muted-foreground text-xs mt-0.5",children:"Tailored to your brand voice"})]})]}),a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:a.jsx(Zh,{className:"w-5 h-5 text-primary"})}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground text-sm",children:"Knowledge Base Training"}),a.jsx("p",{className:"text-muted-foreground text-xs mt-0.5",children:"Website, PDFs, FAQs & more"})]})]}),a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:a.jsx(b2,{className:"w-5 h-5 text-primary"})}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground text-sm",children:"CRM Integration"}),a.jsx("p",{className:"text-muted-foreground text-xs mt-0.5",children:"Connect your existing tools"})]})]}),a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:a.jsx(np,{className:"w-5 h-5 text-primary"})}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground text-sm",children:"Calendar Integration"}),a.jsx("p",{className:"text-muted-foreground text-xs mt-0.5",children:"Calendly, Cal.com & more"})]})]}),a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:a.jsx(In,{className:"w-5 h-5 text-primary"})}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground text-sm",children:"Call Routing"}),a.jsx("p",{className:"text-muted-foreground text-xs mt-0.5",children:"Intelligent call flow setup"})]})]}),a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:a.jsx(M2,{className:"w-5 h-5 text-primary"})}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground text-sm",children:"Workflow Automation"}),a.jsx("p",{className:"text-muted-foreground text-xs mt-0.5",children:"No-code automations"})]})]}),a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:a.jsx(L2,{className:"w-5 h-5 text-primary"})}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground text-sm",children:"Live Testing & Optimization"}),a.jsx("p",{className:"text-muted-foreground text-xs mt-0.5",children:"We test, refine & perfect"})]})]}),a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:a.jsx(Wy,{className:"w-5 h-5 text-primary"})}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground text-sm",children:"Launch Support"}),a.jsx("p",{className:"text-muted-foreground text-xs mt-0.5",children:"Go live with confidence"})]})]})]})]})]})}),a.jsx(J.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.4},className:"mt-16 text-center",children:a.jsxs("div",{className:"glass-card p-8 max-w-2xl mx-auto",children:[a.jsx("h3",{className:"text-xl font-bold text-foreground mb-2",children:"Enterprise & Agency Solutions"}),a.jsxs("p",{className:"text-muted-foreground mb-4",children:["Custom pricing for high-volume usage, agencies, and resellers.",a.jsx("br",{}),"Includes wholesale minute rates, pooled usage, and dedicated capacity."]}),a.jsx("a",{href:"/contact",className:"text-primary font-semibold hover:underline",children:"Contact Sales →"})]})})]})]})};var wn="Accordion",BV=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[fg,zV,WV]=Xm(wn),[Du,M6]=qr(wn,[WV,ZC]),mg=ZC(),rE=R.forwardRef((e,t)=>
452{const{type:n,...r}=e,s=r,i=r;return a.jsx(fg.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?a.jsx(GV,{...i,ref:t}):a.jsx(qV,{...s,ref:t})})});rE.displayName=wn;var[sE,HV]=Du(wn),[iE,KV]=Du(wn,{collapsible:!1}),qV=R.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},collapsible:i=!1,...o}=e,[l,c]=Yi({prop:n,defaultProp:r??"",onChange:s,caller:wn});return a.jsx(sE,{scope:e.__scopeAccordion,value:R.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:R.useCallback(()=>i&&c(""),[i,c]),children:a.jsx(iE,{scope:e.__scopeAccordion,collapsible:i,children:a.jsx(oE,{...o,ref:t})})})}),GV=R.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},...i}=e,[o,l]=Yi({prop:n,defaultProp:r??[],onChange:s,caller:wn}),c=R.useCallback(d=>l((h=[])=>[...h,d]),[l]),u=R.useCallback(d=>l((h=[])=>h.filter(f=>f!==d)),[l]);return a.jsx(sE,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:u,children:a.jsx(iE,{scope:e.__scopeAccordion,collapsible:!0,children:a.jsx(oE,{...i,ref:t})})})}),[YV,$u]=Du(wn),oE=R.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:s,orientation:i="vertical",...o}=e,l=R.useRef(null),c=fe(l,t),u=zV(n),h=og(s)==="ltr",f=Z(e.onKeyDown,m=>{var E;if(!BV.includes(m.key))return;const w=m.target,p=u().filter(T=>{var A;return!((A=T.ref.current)!=null&&A.disabled)}),b=p.findIndex(T=>T.ref.current===w),v=p.length;if(b===-1)return;m.preventDefault();let g=b;const x=0,S=v-1,j=()=>{g=b+1,g>S&&(g=x)},N=()=>{g=b-1,g<x&&(g=S)};switch(m.key){case"Home":g=x;break;case"End":g=S;break;case"ArrowRight":i==="horizontal"&&(h?j():N());break;case"ArrowDown":i==="vertical"&&j();break;case"ArrowLeft":i==="horizontal"&&(h?N():j());break;case"ArrowUp":i==="vertical"&&N();break}const C=g%v;(E=p[C].ref.current)==null||E.focus()});return a.jsx(YV,{scope:n,disabled:r,direction:s,orientation:i,children:a.jsx(fg.Slot,{scope:n,children:a.jsx(se.div,{...o,"data-orientation":i,ref:c,onKeyDown:r?void 0:f})})})}),Hc="AccordionItem",[QV,pg]=Du(Hc),aE=R.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...s}=e,i=$u(Hc,n),o=HV(Hc,n),l=mg(n),c=Wa(),u=r&&o.value.includes(r)||!1,d=i.disabled||e.disabled;return a.jsx(QV,{scope:n,open:u,disabled:d,triggerId:c,children:a.jsx(nE,{"data-orientation":i.orientation,"data-state":fE(u),...l,...s,ref:t,disabled:d,open:u,onOpenChange:h=>{h?o.onItemOpen(r):o.onItemClose(r)}})})});aE.displayName=Hc;var lE="AccordionHeader",cE=R.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=$u(wn,n),i=pg(lE,n);return a.jsx(se.h3,{"data-orientation":s.orientation,"data-state":fE(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});cE.displayName=lE;var Zf="AccordionTrigger",uE=R.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=$u(wn,n),i=pg(Zf,n),o=KV(Zf,n),l=mg(n);return a.jsx(fg.ItemSlot,{scope:n,children:a.jsx(IV,{"aria-disabled":i.open&&!o.collapsible||void 0,"data-orientation":s.orientation,id:i.triggerId,...l,...r,ref:t})})});uE.displayName=Zf;var dE="AccordionContent",hE=R.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=$u(wn,n),i=pg(dE,n),o=mg(n);return a.jsx(OV,{role:"region","aria-labelledby":i.triggerId,"data-orientation":s.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});hE.displayName=dE;function fE(e){return e?"open":"closed"}var XV=rE,JV=aE,ZV=cE,mE=uE,pE=hE;const e6=XV,gE=y.forwardRef(({className:e,...t},n)=>a.jsx(JV,{ref:n,className:ve("border-b",e),...t}));gE.displayName="AccordionItem";const yE=y.forwardRef(({className:e,children:t,...n},r)=>a.jsx(ZV,{className:"flex",children:a.jsxs(mE,{ref:r,className:ve("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,a.jsx(za,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));yE.displayName=mE.displayName;const vE=y.forwardRef(({className:e,children:t,...n},r)=>a.jsx(pE,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:a.jsx("div",{className:ve("pb-4 pt-0",e),children:t})}));vE.displayName=pE.displayName;const t6=[{question:"How does SmartCaller work as an AI phone call platform?",answer:"SmartCaller automates customer interactions with a customizable AI voice agent that can scale. It manages outbound (proactive outreach) and inbound (responsive) calls for tasks like lead qualification, customer support, and appointment scheduling. With no-code tools and flexible deployment options, SmartCaller enhances engagement and streamlines communication using the latest AI technology."},{question:"Can I use SmartCaller with my existing phone system?",answer:"Yes, SmartCaller can integrate with most existing phone systems through SIP integration, ensuring a smooth transition and maintaining your current phone numbers and functionality."},{question:"Do I need technical expertise to create quality prompts?",answer:"No, you don't need to be an expert in prompting. We provide templates to help you get started, and our AI agents are designed to be flexible with various types of prompts, offering a natural conversation experience."},{question:"How does the AI learn about my company?",answer:"Any document containing your company information can be used to train the AI. These include your website content, internal process documentation (PDF, Word, etc.), FAQs, and scripts. The AI learns your business context and responds correctly according to your specific needs and requirements."},{question:"What languages does SmartCaller support?",answer:"SmartCaller supports over 100 languages and diverse accents to address a global audience. Each language is equipped with hundreds of natural-sounding voice options, and you can also clone your own voice for consistent brand representation."},{question:"How do I get a phone number?",answer:"We offer international phone numbers from over 150 countries inside our platform, and you can choose the one that best suits your needs. You can also integrate your existing phone numbers using SIP from the dashboard."}],n6=()=>a.jsx("section",{id:"faq",className:"py-24 md:py-32 bg-background relative overflow-hidden",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsxs(J.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[a.jsx("span",{className:"inline-block px-4 py-2 rounded-full bg-primary/10 text-primary text-sm font-semibold mb-6",children:"FAQ"}),a.jsxs("h2",{className:"text-3xl md:text-5xl font-bold text-foreground mb-6",children:["Frequently Asked"," ",a.jsx("span",{className:"gradient-text",children:"Questions"})]}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Everything you need to know about SmartCaller. Can't find your answer? Contact our support team."})]}),a.jsx(J.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.2},className:"max-w-3xl mx-auto",children:a.jsx(e6,{type:"single",collapsible:!0,className:"space-y-4",children:t6.map((e,t)=>a.jsxs(gE,{value:`item-${t}`,className:"glass-card px-6 border-none",children:[a.jsx(yE,{className:"text-left font-semibold text-foreground hover:text-primary transition-colors py-6",children:e.question}),a.jsx(vE,{className:"text-muted-foreground pb-6 leading-relaxed",children:e.answer})]},t))})})]})}),r6=()=>a.jsxs("section",{id:"cta",className:"py-24 md:py-32 relative overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/10 via-accent/5 to-primary/10"}),a.jsx("div",{className:"absolute top-0 left-1/4 w-72 h-72 bg-primary/10 rounded-full blur-3xl"}),a.jsx("div",{className:"absolute bottom-0 right-1/4 w-96 h-96 bg-accent/10 rounded-full blur-3xl"}),a.jsx("div",{className:"container mx-auto px-4 relative z-10",children:a.jsx(J.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"max-w-4xl mx-auto text-center",children:a.jsxs("div",{className:"glass-card p-12 md:p-16",children:[a.jsx("div",{className:"w-20 h-20 rounded-2xl bg-primary mx-auto mb-8 flex items-center justify-center shadow-glow",children:a.jsx(In,{className:"w-10 h-10 text-primary-foreground"})}),a.jsxs("h2",{className:"text-3xl md:text-5xl font-bold text-foreground mb-6",children:["Ready to Transform Your"," ",a.jsx("span",{className:"gradient-text",children:"Phone Operations?"})]}),a.jsx("p",{className:"text-lg text-muted-foreground mb-8 max-w-2xl mx-auto",children:"Join thousands of businesses using SmartCaller to automate c
452alls, boost efficiency, and delight customers — all while reducing costs."}),a.jsxs(Wt,{to:"/languages",className:"inline-flex items-center gap-2 text-sm text-primary hover:text-primary/80 transition-colors mb-8",children:[a.jsx(R1,{className:"w-4 h-4"}),a.jsx("span",{children:"Available in 100+ languages"}),a.jsx(Vr,{className:"w-3 h-3"})]}),a.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[a.jsx("a",{href:"#demo",children:a.jsxs(ft,{variant:"hero",size:"xl",children:[a.jsx(In,{className:"w-5 h-5"}),"Try Free Demo Call"]})}),a.jsx(Wt,{to:"/contact",children:a.jsxs(ft,{variant:"outline",size:"xl",children:["Schedule a Call",a.jsx(Vr,{className:"w-5 h-5"})]})})]})]})})})]}),po=()=>{const e={Product:[{name:"Features",href:"#features"},{name:"Pricing",href:"#pricing"},{name:"Available Languages",href:"/languages"}],Solutions:[{name:"Appointment Booking",href:"#features"},{name:"Customer Support",href:"#features"},{name:"Cold Calling",href:"#features"}],Company:[{name:"Contact",href:"/contact"},{name:"Platform Guide",href:"/platform-guide"},{name:"Careers",href:"#"}]};return a.jsx("footer",{className:"bg-foreground text-background py-16 md:py-20",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-8 mb-12",children:[a.jsxs("div",{className:"col-span-2",children:[a.jsxs("a",{href:"/",className:"flex items-center gap-2 mb-6",children:[a.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary flex items-center justify-center",children:a.jsx(In,{className:"w-5 h-5 text-primary-foreground"})}),a.jsx("span",{className:"text-xl font-bold",children:"SmartCaller"})]}),a.jsx("p",{className:"text-background/70 text-sm leading-relaxed mb-6 max-w-xs",children:"The all-in-one AI phone call platform. Book appointments, support customers, and close deals with human-like AI voice agents."}),a.jsx("div",{className:"flex items-center gap-4",children:a.jsx(Wt,{to:"/contact",className:"w-10 h-10 rounded-lg bg-background/10 flex items-center justify-center hover:bg-primary transition-colors",children:a.jsx(I1,{className:"w-5 h-5"})})})]}),Object.entries(e).map(([t,n])=>a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold mb-4",children:t}),a.jsx("ul",{className:"space-y-3",children:n.map(r=>a.jsx("li",{children:a.jsx("a",{href:r.href,className:"text-sm text-background/70 hover:text-primary transition-colors",children:r.name})},r.name))})]},t))]}),a.jsxs("div",{className:"pt-8 border-t border-background/10 flex flex-col md:flex-row items-center justify-between gap-4",children:[a.jsx("p",{className:"text-sm text-background/50",children:"© 2025 SmartCallerLive.ai. All rights reserved."}),a.jsxs("div",{className:"flex items-center gap-6 text-sm text-background/50",children:[a.jsx("a",{href:"/privacy",className:"hover:text-background transition-colors",children:"Privacy Policy"}),a.jsx("a",{href:"/terms",className:"hover:text-background transition-colors",children:"Terms and Conditions"})]})]})]})})},s6=()=>a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(ho,{}),a.jsxs("main",{children:[a.jsx(uV,{}),a.jsx(fV,{}),a.jsx(pV,{}),a.jsx(gV,{}),a.jsx(SV,{}),a.jsx(NV,{}),a.jsx(jV,{}),a.jsx(TV,{}),a.jsx(_V,{}),a.jsx(UV,{}),a.jsx(n6,{}),a.jsx(r6,{})]}),a.jsx(po,{})]}),k0=[{code:"EN",name:"English"},{code:"ES",name:"Spanish"},{code:"FR",name:"French"},{code:"DE",name:"German"},{code:"IT",name:"Italian"},{code:"PT",name:"Portuguese"},{code:"NL",name:"Dutch"},{code:"PL",name:"Polish"},{code:"RU",name:"Russian"},{code:"JA",name:"Japanese"},{code:"ZH",name:"Chinese"},{code:"KO",name:"Korean"},{code:"AR",name:"Arabic"},{code:"HI",name:"Hindi"},{code:"TR",name:"Turkish"},{code:"VI",name:"Vietnamese"},{code:"TH",name:"Thai"},{code:"ID",name:"Indonesian"},{code:"MS",name:"Malay"},{code:"FI",name:"Finnish"},{code:"SV",name:"Swedish"},{code:"NO",name:"Norwegian"},{code:"DA",name:"Danish"},{code:"CS",name:"Czech"},{code:"EL",name:"Greek"},{code:"HE",name:"Hebrew"},{code:"HU",name:"Hungarian"},{code:"RO",name:"Romanian"},{code:"SK",name:"Slovak"},{code:"UK",name:"Ukrainian"},{code:"BG",name:"Bulgarian"},{code:"HR",name:"Croatian"}
452,{code:"SL",name:"Slovenian"},{code:"SR",name:"Serbian"},{code:"LT",name:"Lithuanian"},{code:"LV",name:"Latvian"},{code:"ET",name:"Estonian"},{code:"FA",name:"Persian"},{code:"UR",name:"Urdu"},{code:"BN",name:"Bengali"},{code:"TA",name:"Tamil"},{code:"TE",name:"Telugu"},{code:"MR",name:"Marathi"},{code:"GU",name:"Gujarati"},{code:"KN",name:"Kannada"},{code:"ML",name:"Malayalam"},{code:"PA",name:"Punjabi"},{code:"SW",name:"Swahili"},{code:"AF",name:"Afrikaans"},{code:"CA",name:"Catalan"},{code:"EU",name:"Basque"},{code:"GL",name:"Galician"},{code:"CY",name:"Welsh"},{code:"GA",name:"Irish"},{code:"MT",name:"Maltese"},{code:"IS",name:"Icelandic"},{code:"MK",name:"Macedonian"},{code:"SQ",name:"Albanian"},{code:"BS",name:"Bosnian"},{code:"KA",name:"Georgian"},{code:"HY",name:"Armenian"},{code:"AZ",name:"Azerbaijani"},{code:"KK",name:"Kazakh"},{code:"UZ",name:"Uzbek"},{code:"MN",name:"Mongolian"},{code:"NE",name:"Nepali"},{code:"SI",name:"Sinhala"},{code:"MY",name:"Burmese"},{code:"KM",name:"Khmer"},{code:"LO",name:"Lao"},{code:"AM",name:"Amharic"},{code:"SO",name:"Somali"},{code:"YO",name:"Yoruba"},{code:"IG",name:"Igbo"},{code:"HA",name:"Hausa"},{code:"ZU",name:"Zulu"},{code:"XH",name:"Xhosa"},{code:"FIL",name:"Filipino"},{code:"JV",name:"Javanese"},{code:"SU",name:"Sundanese"}],th=20,i6=()=>{const[e,t]=y.useState(1),n=Math.ceil(k0.length/th),r=(e-1)*th,s=r+th,i=k0.slice(r,s),o=()=>{e<n&&(t(e+1),window.scrollTo({top:0,behavior:"smooth"}))},l=()=>{e>1&&(t(e-1),window.scrollTo({top:0,behavior:"smooth"}))};return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(ho,{}),a.jsx("main",{className:"pt-32 pb-20",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsx("div",{className:"mb-8",children:a.jsxs(Wt,{to:"/",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-primary transition-colors",children:[a.jsx(f2,{className:"w-4 h-4"}),"Back to Home"]})}),a.jsxs("div",{className:"text-center mb-12",children:[a.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:["AI Voice ",a.jsx("span",{className:"gradient-text",children:"Languages"})]}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Explore 100+ languages with natural AI voices"})]}),a.jsxs("div",{className:"glass-card p-6 mb-8 max-w-xs",children:[a.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"Global Coverage"}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"text-muted-foreground text-sm",children:"Total Languages"}),a.jsx("span",{className:"text-2xl font-bold text-primary",children:"111"})]})]}),a.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4 mb-8",children:i.map(c=>a.jsxs("div",{className:"glass-card p-4 flex items-center gap-3 hover:border-primary/50 transition-colors cursor-default",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center text-primary font-semibold text-sm",children:c.code}),a.jsx("span",{className:"font-medium text-foreground text-sm",children:c.name})]},c.code))}),a.jsxs("div",{className:"flex items-center justify-center gap-4 mb-12",children:[a.jsxs(ft,{variant:"outline",size:"sm",onClick:l,disabled:e===1,className:"flex items-center gap-2",children:[a.jsx(y2,{className:"w-4 h-4"}),"Previous"]}),a.jsxs("span",{className:"text-sm text-muted-foreground",children:["Page ",e," of ",n]}),a.jsxs(ft,{variant:"outline",size:"sm",onClick:o,disabled:e===n,className:"flex items-center gap-2",children:["Next",a.jsx(_1,{className:"w-4 h-4"})]})]}),a.jsx("div",{className:"text-center",children:a.jsx(Wt,{to:"/#cta",children:a.jsx(ft,{size:"lg",className:"text-lg px-8",children:"See It In Action"})})})]})}),a.jsx(po,{})]})},o6=()=>a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(ho,{}),a.jsx("main",{className:"pt-24 pb-16",children:a.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[a.jsx("h1",{className:"text-4xl font-bold text-foreground mb-2",children:"Terms and Conditions"}),a.jsx("p",{className:"text-muted-foreground mb-8",children:"Last Updated: January 4, 2026"}),a.jsxs("div",{className:"prose prose-lg dark:prose-invert max-w-none space-y-6 text-foreground
452/90",children:[a.jsx("p",{children:'These Terms and Conditions ("Terms") govern your access to and use of the SmartCallerLive.ai website, platform, software, applications, and related services (collectively, the "Services"), operated by SmartCaller LLC, operating as SmartCallerLive.ai ("SmartCallerLive.ai," "we," "us," or "our"). By accessing or using the Services, you agree to be bound by these Terms. If you do not agree, you may not use the Services.'}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"1. Eligibility and Account Registration"}),a.jsx("p",{children:"You must be at least 18 years old and have the legal capacity to enter into a binding agreement to use the Services. When creating an account, you agree to provide accurate, complete, and current information and to keep such information updated. You are responsible for maintaining the confidentiality of your account credentials and for all activities that occur under your account."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"2. Description of Services"}),a.jsx("p",{children:"SmartCallerLive.ai provides AI-powered inbound and outbound calling, virtual receptionist services, multilingual AI voice support, call automation, call recording, and related communication services. Features and functionality may change over time at our sole discretion. We do not guarantee that any specific feature will always be available."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"3. Acceptable Use and Prohibited Activities"}),a.jsx("p",{children:"You agree to use the Services only for lawful purposes and in compliance with all applicable local, state, federal, and international laws and regulations."}),a.jsx("p",{className:"mt-4",children:"You may not use the Services to:"}),a.jsxs("ul",{className:"list-disc pl-6 mt-2 space-y-2",children:[a.jsx("li",{children:"Violate any law, regulation, or industry standard, including but not limited to TCPA, FCC regulations, CAN-SPAM, or similar consumer protection laws."}),a.jsx("li",{children:"Engage in illegal robocalling, spam, harassment, fraud, or deceptive practices."}),a.jsx("li",{children:"Impersonate any person or entity without authorization."}),a.jsx("li",{children:"Transmit unlawful, harmful, threatening, abusive, defamatory, obscene, or otherwise objectionable content."}),a.jsx("li",{children:"Attempt to gain unauthorized access to systems, networks, or data."}),a.jsx("li",{children:"Use the Services in a manner that interferes with or disrupts the integrity or performance of the platform."})]}),a.jsx("p",{className:"mt-4",children:"You are solely responsible for ensuring that your use of SmartCallerLive.ai complies with all telecommunication, consent, recording, disclosure, and privacy laws applicable to your jurisdiction and use case."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"4. Compliance With Calling and Recording Laws"}),a.jsx("p",{children:"SmartCallerLive.ai does not provide legal advice. You acknowledge that laws governing automated calls, AI-generated voices, call recording, consent, and disclosures vary by jurisdiction."}),a.jsx("p",{className:"mt-4",children:"You agree that:"}),a.jsxs("ul",{className:"list-disc pl-6 mt-2 space-y-2",children:[a.jsx("li",{children:"You are responsible for obtaining all required consents prior to initiating or receiving calls, including consent for call recording and AI-generated voice usage."}),a.jsx("li",{children:"You will provide all legally required disclosures, including AI usage and call recording notices."}),a.jsx("li",{children:"SmartCallerLive.ai is not liable for your failure to comply with applicable laws."})]}),a.jsx("p",{className:"mt-4",children:"We reserve the right to suspend or terminate accounts engaged in unlawful or high-risk calling activity."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"5. Fees, Subscriptions, and Payments"}),a.jsx("p",{children:"Certain Services require payment of fees under monthly subscription plans and/or usage-based pricing models. All fees are non-refundable unless otherwise expressly stated in writing."}),a.jsx("p",{className:"mt-4",children:"You authorize SmartCallerLive.ai (or its payment processor) to charge your provided payment method for all applicable fees, taxes, and overages. We may change pricing or plans upon reasonable notice."}),a.jsx("p",{className:"mt-4",children:"Failure to pay fees when due may result in suspension or termination of Services."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"6. Free Trials and Promotional Offers"}),a.jsx("p",{children:"Free trials or promotional credits, if offered, are provided at our discretion and may be modified or terminated at any time. Upon expiration of a free trial, your account may automatically convert to a paid plan unless canceled prior to the end of the trial period."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"7. Intellectual Property Rights"}
452),a.jsx("p",{children:"All content, software, models, algorithms, trademarks, logos, and materials associated with SmartCallerLive.ai are owned by or licensed to SmartCallerLive.ai and are protected by intellectual property laws."}),a.jsx("p",{className:"mt-4",children:"You are granted a limited, non-exclusive, non-transferable, revocable license to use the Services solely for your internal business purposes in accordance with these Terms. No rights are granted except as expressly stated."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"8. User Content and Data"}),a.jsx("p",{children:'You retain ownership of data and content you submit through the Services ("User Content"). By using the Services, you grant SmartCallerLive.ai a limited license to process, host, store, and transmit User Content solely to provide and improve the Services.'}),a.jsx("p",{className:"mt-4",children:"You represent and warrant that you have all rights necessary to submit User Content and that such content does not violate any law or third-party rights."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"9. Data Privacy"}),a.jsx("p",{children:"Your use of the Services is also governed by our Privacy Policy, which describes how we collect, use, store, process, and safeguard personal data, including recorded call data. By using SmartCallerLive.ai, you consent to our data practices as described in the Privacy Policy."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"10. Service Availability and Modifications"}),a.jsx("p",{children:"We strive to maintain reliable Services but do not guarantee uninterrupted or error-free operation. We may suspend, modify, or discontinue any part of the Services at any time without liability."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"11. Termination"}),a.jsx("p",{children:"We may suspend or terminate your access to the Services at any time, with or without notice, if we reasonably believe you have violated these Terms, applicable laws, or pose a risk to SmartCallerLive.ai or third parties."}),a.jsx("p",{className:"mt-4",children:"Upon termination, your right to use the Services will immediately cease, and any outstanding fees will remain due."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"12. Disclaimers"}),a.jsx("p",{className:"uppercase font-medium",children:'THE SERVICES ARE PROVIDED ON AN "AS IS" AND "AS AVAILABLE" BASIS. TO THE MAXIMUM EXTENT PERMITTED BY LAW, SMARTCALLERLIVE.AI DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.'}),a.jsx("p",{className:"uppercase font-medium mt-4",children:"WE DO NOT GUARANTEE RESULTS, CALL ANSWER RATES, REVENUE, COMPLIANCE OUTCOMES, OR BUSINESS PERFORMANCE."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"13. Limitation of Liability"}),a.jsx("p",{className:"uppercase font-medium",children:"TO THE MAXIMUM EXTENT PERMITTED BY LAW, SMARTCALLERLIVE.AI SHALL NOT BE LIABLE FOR ANY INDIRECT, INCIDENTAL, CONSEQUENTIAL, SPECIAL, EXEMPLARY, OR PUNITIVE DAMAGES, INCLUDING LOST PROFITS, LOST DATA, OR BUSINESS INTERRUPTION."}),a.jsx("p",{className:"uppercase font-medium mt-4",children:"IN NO EVENT SHALL SMARTCALLERLIVE.AI'S TOTAL LIABILITY EXCEED THE AMOUNT PAID BY YOU TO SMARTCALLERLIVE.AI IN THE TWELVE (12) MONTHS PRECEDING THE EVENT GIVING RISE TO THE CLAIM."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"14. Indemnification"}),a.jsx("p",{children:"You agree to indemnify, defend, and hold harmless SmartCaller LLC, SmartCallerLive.ai, and their officers, directors, employees, contractors, affiliates, resellers, and licensors from any claims, damages, losses, liabilities, and expenses arising out of or related to:"}),a.jsxs("ul",{className:"list-disc pl-6 mt-2 space-y-2",children:[a.jsx("li",{children:"Your use of the Services;"}),a.jsx("li",{children:"Your violation of these Terms or applicable laws;"}),a.jsx("li",{children:"Your calling campaigns, scripts, data, or consent practices."})]})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"15. Governing Law and Dispute Resolution"}),a.jsx("p",{children:"These Terms shall be governed by and construed in accordance with the laws of the State in which SmartCaller LLC is registered, without regard to conflict of law principles."}),a.jsx("p",{className:"mt-4",children:"Any dispute arising out of or relating to these Terms or the Services shall be resolved exclusively in the state or federal courts located in the jurisdiction of SmartCaller LLC's principal place of business, and 
452you consent to their jurisdiction."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"16. Changes to These Terms"}),a.jsx("p",{children:"We may update these Terms from time to time. Continued use of the Services after changes become effective constitutes acceptance of the revised Terms."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"17. Entire Agreement"}),a.jsx("p",{children:"These Terms constitute the entire agreement between you and SmartCallerLive.ai regarding the Services and supersede any prior agreements or understandings."})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground mt-8 mb-4",children:"18. Contact Information"}),a.jsx("p",{children:"If you have questions about these Terms, please contact us at:"}),a.jsxs("p",{className:"mt-2",children:[a.jsx("strong",{children:"Email:"})," ",a.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})]})]})]})]})}),a.jsx(po,{})]}),a6=()=>a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(ho,{}),a.jsxs("main",{className:"container mx-auto px-4 py-24 max-w-4xl",children:[a.jsxs("div",{className:"mb-12",children:[a.jsxs("h1",{className:"text-5xl md:text-6xl font-bold mb-4",children:["Privacy ",a.jsx("span",{className:"text-primary",children:"Policy"})]}),a.jsx("p",{className:"text-muted-foreground text-lg",children:"Last Updated: January 4, 2026"})]}),a.jsxs("div",{className:"bg-muted/30 border border-border/50 rounded-2xl p-6 md:p-8 mb-12",children:[a.jsxs("p",{className:"text-lg leading-relaxed",children:[a.jsx("strong",{children:"SmartCaller LLC"}),", operating as ",a.jsx("strong",{children:"SmartCallerLive.ai"}),' ("SmartCallerLive.ai," "we," "us," or "our"), respects your privacy and is committed to protecting personal data. This Privacy Policy explains how we collect, use, disclose, and safeguard information when you access or use our website, platform, applications, and AI-powered calling services (collectively, the "Services").']}),a.jsx("p",{className:"text-lg leading-relaxed mt-4",children:"By using the Services, you consent to the data practices described in this Privacy Policy."})]}),a.jsxs("div",{className:"space-y-12",children:[a.jsxs("section",{children:[a.jsxs("h2",{className:"text-2xl md:text-3xl font-bold mb-6 flex items-center gap-3",children:[a.jsx("span",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center text-lg font-bold",children:"1"}),"Information We Collect"]}),a.jsxs("div",{className:"space-y-6 pl-0 md:pl-14",children:[a.jsxs("div",{className:"bg-card border border-border/50 rounded-xl p-6",children:[a.jsx("h3",{className:"text-xl font-semibold mb-4",children:"1.1 Information You Provide"}),a.jsx("p",{className:"text-muted-foreground mb-4",children:"We may collect information you voluntarily provide, including:"}),a.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," Name, business name, email address, phone number, and billing information"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," Account credentials and profile details"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," Call scripts, configurations, prompts, and campaign data"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," Communications with our support team"]})]})]}),a.jsxs("div",{className:"bg-card border border-border/50 rounded-xl p-6",children:[a.jsx("h3",{className:"text-xl font-semibold mb-4",children:"1.2 Call Data and Recordings"}),a.jsx("p",{className:"text-muted-foreground mb-4",children:"When using our inbound or outbound calling services, we may collect and process:"}),a.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," ",a.jsx("strong",{children:"Call metadata"})," (caller ID, timestamps, duration, call routing)"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," ",a.jsx("strong",{children:"Audio recordings"})," of calls"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," ",a.jsx("strong",{children:"Transcripts"})," generated by AI systems"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," ",a.jsx("strong",{children:"AI-generated responses"})," and interaction logs"]})]}),a.jsx("p",{className:"text-sm text-muted-foreground mt-4 bg-muted/50 rounded-lg p-3",children:"⚠️ You are responsible for providing all legally required disclosures and obtaining consent for call recording and AI-generated voice usage."})]}),a.jsxs("div",{className:"bg-card border border-border/50 rounded-xl p-6",children:[a.jsx("h3",{className:"text-xl font-semibold mb-4",children:"1.3 Automatically Collected Information"}),a.jsx("p",{className:"text-muted-foreground mb-4",children:"We automatically collect certain information when you access the Services, including:"}),a.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," IP address, device identifiers, browser type, and operating system"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," Usage data, logs, and performance metrics"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," Cookies and similar tracking technologies"]})]})]})]})]}),a.jsxs("section",{children:[a.jsxs("h2",{className:"text-2xl md:text-3xl font-bold mb-6 flex items-center gap-3",children:[a.jsx("span",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center text-lg font-bold",children:"2"}),"How We Use Information"]}),a.jsx("div",{className:"pl-0 md:pl-14",children:a.jsxs("div",{className:"bg-card border border-border/50 rounded-xl p-6",children:[a.jsx("p",{className:"text-muted-foreground mb-4",children:"We use collected information to:"}),a.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," ",a.jsx("strong",{children:"Provide, operate, and maintain"})," the Services"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," Process calls, recordings, transcripts, and AI interactions"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," Manage accounts, subscriptions, billing, and payments"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," ",a.jsx("strong",{children:"Improve, monitor, and secure"})," our platform"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," Train and enhance AI models (in an aggregated and anonymized manner where feasible)"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," Comply with legal obligations and enforce our Terms and Conditions"]})]})]})})]}),a.jsxs("section",{children:[a.jsxs("h2",{className:"text-2xl md:text-3xl font-bold mb-6 flex items-center gap-3",children:[a.jsx("span",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center text-lg font-bold",children:"3"}),"Legal Bases for Processing"]}),a.jsx("div",{className:"pl-0 md:pl-14",children:a.jsxs("div",{className:"bg-card border border-border/50 rounded-xl p-6",children:[a.jsxs("p",{className:"text-muted-foreground mb-4",children:["For users located outside the United States, including the ",a.jsx("strong",{children:"European Economic Area (EEA)"})," and ",a.jsx("strong",{children:"United Kingdom"}),", we process personal data under one or more of the following legal bases:"]}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 mt-4",children:[a.jsx("div",{className:"bg-muted/30 rounded-lg p-4 text-center font-medium",children:"Performance of a contract"}),a.jsx("div",{className:"bg-muted/30 rounded-lg p-4 text-center font-medium",children:"Legitimate business interests"}),a.jsx("div",{className:"bg-muted/30 rounded-lg p-4 text-center font-medium",children:"Compliance with legal obligations"}),a.jsx("div",{className:"bg-muted/30 rounded-lg p-4 text-center font-medium",children:"Consent, where required by law"})]})]})})]}),a.jsxs("section",{children:[a.jsxs("h2",{className:"text-2xl md:text-3xl font-bold mb-6 flex items-center gap-3",children:[a.jsx("span",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center text-lg font-bold",children:"4"}),"Cookies and Tracking Technologies"]}),a.jsx("div",{className:"pl-0 md:pl-14",children:a.jsxs("div",{className:"bg-card border border-border/50 rounded-xl p-6",children:[a.jsx("p",{className:"text-muted-foreground mb-4",children:"SmartCallerLive.ai uses cookies and similar technologies to:"}),a.jsxs("ul",{className:"space-y-2 text-muted-foreground mb-4",children:[a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," Enable core platform functionality"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," Analyze usage and performance"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," Improve user experience"]})]}),a.jsx("p",{className:"text-sm text-muted-foreground bg-muted/50 rounded-lg p-3",children:"You may control cookies through your browser settings; however, disabling cookies may limit certain features."})]})})]}),a.jsxs("section",{children:[a.jsxs("h2",{className:"text-2xl md:text-3xl font-bold mb-6 flex items-center gap-3",children:[a.jsx("span",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center text-lg font-bold",children:"5"}),"Data Sharing and Disclosure"]}),a.jsx("div",{className:"pl-0 md:pl-14",children:a.jsxs("div",{className:"bg-card border border-border/50 rounded-xl p-6",children:[a.jsx("p",{className:"text-muted-foreground mb-4",children:"We may share information with:"}),a.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," ",a.jsx("strong",{children:"Service providers and vendors"}
452)," (e.g., hosting, payment processing, telephony providers)"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," AI and infrastructure partners necessary to deliver the Services"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," Resellers or white-label partners, where applicable"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," Legal authorities, if required to comply with law or legal process"]})]}),a.jsx("div",{className:"mt-4 bg-green-500/10 border border-green-500/20 rounded-lg p-4",children:a.jsx("p",{className:"text-green-700 dark:text-green-400 font-semibold",children:"✓ We do not sell personal data."})})]})})]}),a.jsxs("section",{children:[a.jsxs("h2",{className:"text-2xl md:text-3xl font-bold mb-6 flex items-center gap-3",children:[a.jsx("span",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center text-lg font-bold",children:"6"}),"Data Retention"]}),a.jsx("div",{className:"pl-0 md:pl-14",children:a.jsxs("div",{className:"bg-card border border-border/50 rounded-xl p-6",children:[a.jsx("p",{className:"text-muted-foreground mb-4",children:"We retain personal data and call recordings only for as long as necessary to:"}),a.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," Provide the Services"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," Meet legal, regulatory, and contractual obligations"]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-primary mt-1.5",children:"•"})," Resolve disputes and enforce agreements"]})]}),a.jsx("p",{className:"text-sm text-muted-foreground mt-4",children:"Retention periods may vary based on customer configuration, jurisdiction, and applicable law."})]})})]}),a.jsxs("section",{children:[a.jsxs("h2",{className:"text-2xl md:text-3xl font-bold mb-6 flex items-center gap-3",children:[a.jsx("span",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center text-lg font-bold",children:"7"}),"Data Security"]}),a.jsx("div",{className:"pl-0 md:pl-14",children:a.jsx("div",{className:"bg-card border border-border/50 rounded-xl p-6",children:a.jsxs("p",{className:"text-muted-foreground",children:["We implement reasonable ",a.jsx("strong",{children:"administrative, technical, and physical safeguards"})," designed to protect personal data. However, no system can be guaranteed to be 100% secure, and we cannot ensure absolute security."]})})})]}),a.jsxs("section",{children:[a.jsxs("h2",{className:"text-2xl md:text-3xl font-bold mb-6 flex items-center gap-3",children:[a.jsx("span",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center text-lg font-bold",children:"8"}),"Your Rights and Choices"]}),a.jsx("div",{className:"pl-0 md:pl-14",children:a.jsxs("div",{className:"bg-card border border-border/50 rounded-xl p-6",children:[a.jsx("p",{className:"text-muted-foreground mb-4",children:"Depending on your jurisdiction, you may have rights to:"}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[a.jsx("div",{className:"bg-muted/30 rounded-lg p-4 text-center font-medium",children:"Access, correct, or delete personal data"}),a.jsx("div",{className:"bg-muted/30 rounded-lg p-4 text-center font-medium",children:"Object to or restrict processing"}),a.jsx("div",{className:"bg-muted/30 rounded-lg p-4 text-center font-medium",children:"Request data portability"}),a.jsx("div",{className:"bg-muted/30 rounded-lg p-4 text-center font-medium",children:"Withdraw consent"})]}),a.jsxs("p",{className:"text-sm text-muted-foreground mt-4",children:["Requests may be submitted to ",a.jsx("strong",{children:"[email protected]"}),". We may need to verify your identity before fulfilling requests."]})]})})]}),a.jsxs("section",{children:[a.jsxs("h2",{className:"text-2xl md:text-3xl font-bold mb-6 flex items-center gap-3",children:[a.jsx("span",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center text-lg font-bold",children:"9"}),"International Data Transfers"]}),a.jsx("div",{className:"pl-0 md:pl-14",children:a.jsx("div",{className:"bg-card border border-border/50 rounded-xl p-6",children:a.jsxs("p",{className:"text-muted-foreground",children:["Your information may be transferred to and processed in countries other than your own, including the ",a.jsx("strong",{children:"United States"}),", where data protection laws may differ. By using the Services, you consent to such transfers where permitted by law."]})})})]}),a.jsxs("section",{children:[a.jsxs("h2",{className:"text-2xl md:text-3xl font-bold mb-6 flex items-center gap-3",children:[a.jsx("span",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center text-lg font-bold",children:"10"}),"Children's Privacy"]}),a.jsx("div",{className:"pl-0 md:pl-14",children:a.jsx("div",{className:"bg-card border border-border/50 rounded-xl p-6",children:a.jsxs("p",{className:"text-muted-foreground",children:["The Services are ",a.jsx("strong",{children:"not intended for individuals under the age of 18"}),". We do not knowingly collect personal data from children."]})})})]}),a.jsxs("section",{children:[a.jsxs("h2",{className:"text-2xl md:text-3xl font-bold mb-6 flex items-center gap-3",children:[a.jsx("span",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center text-lg font-bold",children:"11"}),"Third-Party Services"]}),a.jsx("div",{className:"pl-0 md:pl-14",children:a.jsx("div",{className:"bg-card border border-border/50 rounded-xl p-6",children:a.jsx("p",{className:"text-muted-foreground",children:"The Services may integrate with third-party platforms. We are not responsible for the privacy practices of third parties, and you should review their privacy policies separately."})})})]}),a.jsxs("section",{children:[a.jsxs("h2",{className:"text-2xl md:text-3xl font-bold mb-6 flex items-center gap-3",children:[a.jsx("span",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center text-lg font-bold",children:"12"}),"Changes to This Privacy Policy"]}),a.jsx("div",{className:"pl-0 md:pl-14",children:a.jsx("div",{className:"bg-card border border-border/50 rounded-xl p-6",children:a.jsx("p",{className:"text-muted-foreground",children:"We may update this Privacy Policy from time to time. Changes become effective when posted. Continued use of the Services constitutes acceptance of the revised Privacy Policy."})})})]}),a.jsxs("section",{children:[a.jsxs("h2",{className:"text-2xl md:text-3xl font-bold mb-6 flex items-center gap-3",children:[a.jsx("span",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center text-lg font-bold",children:"13"}),"Contact Information"]}),a.jsx("div",{className:"pl-0 md:pl-14",children:a.jsxs("div",{className:"bg-gradient-to-br from-primary/10 to-primary/5 border border-primary/20 rounded-xl p-6",children:[a.jsx("p",{className:"text-muted-foreground mb-2",children:"If you have questions about this Privacy Policy or our data practices, contact us at:"}),a.jsx("p",{className:"font-semibold text-lg",children:"SmartCaller LLC"}),a.jsx("p",{className:"text-primary font-medium",children:"[email protected]"})]})})]})]}),a.jsx("div",{className:"mt-16 pt-8 border-t border-border"})]}),a.jsx(po,{})]}),xE=y.forwardRef(({className:e,...t},n)=>a.jsx("textarea",{className:ve("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
452ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));xE.displayName="Textarea";const l6=()=>{const{toast:e}=Qm(),[t,n]=y.useState(!1),[r,s]=y.useState({firstName:"",lastName:"",email:"",countryCode:`${fn[0].code}-${fn[0].country}`,phone:"",message:""}),i=async c=>{var d;c.preventDefault(),n(!0);const u=((d=document.cookie.split("; ").find(h=>h.startsWith("hubspotutk=")))==null?void 0:d.split("=")[1])||"";try{const h=fn.find(p=>`${p.code}-${p.country}`===r.countryCode)||fn[0],f=r.phone?`${h.code} ${r.phone}`:"",{data:m,error:w}=await tC.functions.invoke("submit-contact-form",{body:{firstName:r.firstName,lastName:r.lastName,email:r.email,phone:f,message:r.message,hutk:u,pageUri:window.location.href,pageName:document.title}});if(w){console.error("Error submitting form:",w),e({variant:"destructive",title:"Submission failed",description:"Unable to submit your message. Please try again."}),n(!1);return}console.log("Form submitted successfully:",m),e({title:"Message sent! 🎉",description:"Our team will review your request and contact you as soon as possible."}),s({firstName:"",lastName:"",email:"",countryCode:`${fn[0].code}-${fn[0].country}`,phone:"",message:""})}catch(h){console.error("Exception submitting form:",h),e({variant:"destructive",title:"Submission failed",description:"An unexpected error occurred. Please try again."})}n(!1)},o=c=>{const u=c.replace(/\D/g,"");return u.length<=3?u:u.length<=6?`(${u.slice(0,3)}) ${u.slice(3)}`:`(${u.slice(0,3)}) ${u.slice(3,6)}-${u.slice(6,10)}`},l=c=>{const{name:u,value:d}=c.target;s(u==="phone"?h=>({...h,phone:o(d)}):h=>({...h,[u]:d}))};return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(ho,{}),a.jsxs("section",{className:"relative pt-24 pb-8 overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-sky-100/30 via-sky-50/15 via-50% to-transparent dark:from-sky-900/15 dark:via-sky-900/5"}),a.jsx("div",{className:"absolute top-0 left-0 right-0 h-[500px] bg-gradient-to-b from-primary/6 via-primary/2 to-transparent"}),a.jsx("div",{className:"absolute top-20 left-1/2 -translate-x-1/2 w-[600px] h-[600px] rounded-full bg-primary/5 blur-3xl"}),a.jsx("div",{className:"absolute top-40 left-1/4 w-64 h-64 rounded-full bg-accent/10 blur-2xl floating-element"}),a.jsx("div",{className:"absolute top-60 right-1/4 w-48 h-48 rounded-full bg-primary/10 blur-2xl floating-element-delayed"}),a.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[a.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-center text-foreground mb-6",children:"Get in touch with us"}),a.jsx("div",{className:"flex justify-center mb-2",children:a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"w-14 h-14 rounded-full bg-primary flex items-center justify-center shadow-lg animate-pulse-glow",children:a.jsx(In,{className:"w-6 h-6 text-primary-foreground"})}),a.jsx("div",{className:"absolute -inset-2 rounded-full border-2 border-primary/20 animate-ping",style:{animationDuration:"2s"}})]})}),a.jsx("div",{className:"max-w-2xl mx-auto",children:a.jsxs("div",{className:"glass-card p-8 md:p-12",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground mb-2",children:"Want to talk? Contact us now!"}),a.jsx("p",{className:"text-muted-foreground mb-8",children:"Discover how our phone call automation solution can transform your business. Complete the form and we will contact you as soon as possible."}),a.jsxs("form",{onSubmit:i,className:"space-y-6",children:[a.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsxs("label",{htmlFor:"firstName",className:"text-sm font-medium text-foreground",children:["First Name ",a.jsx("span",{className:"text-primary",children:"*"})]}),a.jsx(kr,{id:"firstName",name:"firstName",value:r.firstName,onChange:l,placeholder:"John",required:!0,className:"h-12 bg-background border-border/50 focus:border-primary"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs("label",{htmlFor:"lastName",className:"text-sm font-medium text-foreground",children:["Last Name ",a.jsx("span",{className:"text-primary",children:"*"})]}),a.jsx(kr,{id:"lastName",name:"lastName",value:r.lastName,onChange:l,placeholder:"Doe",required:!0,className:"h-12 bg-background border-border/50 focus:border-primary"})]})]}),a.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsxs("label",{htmlFor:"email",className:"text-sm font-medium text-foreground",children:["Email ",a.jsx("span",{className:"text-primary",children:"*"})]}),a.jsx(kr,{id:"email",name:"email",type:"email",value:r.email,onChange:l,placeholder:"[email protected]",required:!0,className:"h-12 bg-background border-border/50 focus:border-primary"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("label",{htmlFor:"phone",className:"text-sm font-medium text-foreground",children:"Phone Number"}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx(JC,{value:r.countryCode,onChange:c=>s(u=>({...u,countryCode:c})),disabled:t}),a.jsx(kr,{id:"phone",name:"phone",type:"tel",value:r.phone,onChange:l,placeholder:"(555) 000-0000",className:"h-12 bg-background border-border/50 focus:border-primary flex-1"})]})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs("label",{htmlFor:"message",className:"text-sm font-medium text-foreground",children:["Your message ",a.jsx("span",{className:"text-primary",children:"*"})]}),a.jsx(xE,{id:"message",name:"message",value:r.message,onChange:l,placeholder:"Tell us about your business needs...",required:!0,className:"min-h-[150px] bg-background border-border/50 focus:border-primary resize-none"})]}),a.jsx(ft,{type:"submit",disabled:t,className:"w-full h-14 text-lg font-semibold bg-primary hover:bg-primary/90 text-primary-foreground rounded-xl shadow-lg hover:shadow-xl transition-all duration-300",children:t?"Sending...":a.jsxs(a.Fragment,{children:["Send Message",a.jsx(A2,{className:"w-5 h-5 ml-2"})]})})]})]})})]})]}),a.jsx("section",{className:"py-8",children:a.jsx("div",{className:"container mx-auto px-4",children:a.jsx("div",{className:"max-w-xl mx-auto",children:a.jsxs("div",{className:"glass-card p-8 hover:shadow-elevated transition-all duration-300",children:[a.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center",children:a.jsx(I1,{className:"w-6 h-6 text-primary"})}),a.jsx("span",{className:"text-muted-foreground font-medium",children:"Email"})]}),a.jsx("a",{href:"mailto:[email protected]",className:"text-2xl font-bold text-foreground hover:text-primary transition-colors block mb-2",children:"[email protected]"}),a.jsx("p",{className:"text-muted-foreground",children:"Write to us for any questions or concerns"})]})})})}),a.jsx(po,{})]})},c6="/assets/platform-guide-hero-CMpWC8yk.jpeg";function u6(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var gg="ScrollArea",[wE,L6]=qr(gg),[d6,Gt]=wE(gg),bE=y.forwardRef((e,t)=>
vendor: 16,554 bytes, line 452
452{const{__scopeScrollArea:n,type:r="hover",dir:s,scrollHideDelay:i=600,...o}=e,[l,c]=y.useState(null),[u,d]=y.useState(null),[h,f]=y.useState(null),[m,w]=y.useState(null),[p,b]=y.useState(null),[v,g]=y.useState(0),[x,S]=y.useState(0),[j,N]=y.useState(!1),[C,E]=y.useState(!1),T=fe(t,M=>c(M)),A=og(s);return a.jsx(d6,{scope:n,type:r,dir:A,scrollHideDelay:i,scrollArea:l,viewport:u,onViewportChange:d,content:h,onContentChange:f,scrollbarX:m,onScrollbarXChange:w,scrollbarXEnabled:j,onScrollbarXEnabledChange:N,scrollbarY:p,onScrollbarYChange:b,scrollbarYEnabled:C,onScrollbarYEnabledChange:E,onCornerWidthChange:g,onCornerHeightChange:S,children:a.jsx(se.div,{dir:A,...o,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});bE.displayName=gg;var SE="ScrollAreaViewport",jE=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:s,...i}=e,o=Gt(SE,n),l=y.useRef(null),c=fe(t,l,o.onViewportChange);return a.jsxs(a.Fragment,{children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),a.jsx(se.div,{"data-radix-scroll-area-viewport":"",...i,ref:c,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style},children:a.jsx("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});jE.displayName=SE;var Ln="ScrollAreaScrollbar",yg=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=Gt(Ln,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:o}=s,l=e.orientation==="horizontal";return y.useEffect(()=>(l?i(!0):o(!0),()=>{l?i(!1):o(!1)}),[l,i,o]),s.type==="hover"?a.jsx(h6,{...r,ref:t,forceMount:n}):s.type==="scroll"?a.jsx(f6,{...r,ref:t,forceMount:n}):s.type==="auto"?a.jsx(NE,{...r,ref:t,forceMount:n}):s.type==="always"?a.jsx(vg,{...r,ref:t}):null});yg.displayName=Ln;var h6=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=Gt(Ln,e.__scopeScrollArea),[i,o]=y.useState(!1);return y.useEffect(()=>{const l=s.scrollArea;let c=0;if(l){const u=()=>{window.clearTimeout(c),o(!0)},d=()=>{c=window.setTimeout(()=>o(!1),s.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",d),()=>{window.clearTimeout(c),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",d)}}},[s.scrollArea,s.scrollHideDelay]),a.jsx(Gr,{present:n||i,children:a.jsx(NE,{"data-state":i?"visible":"hidden",...r,ref:t})})}),f6=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=Gt(Ln,e.__scopeScrollArea),i=e.orientation==="horizontal",o=Vu(()=>c("SCROLL_END"),100),[l,c]=u6("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return y.useEffect(()=>{if(l==="idle"){const u=window.setTimeout(()=>c("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,s.scrollHideDelay,c]),y.useEffect(()=>{const u=s.viewport,d=i?"scrollLeft":"scrollTop";if(u){let h=u[d];const f=()=>{const m=u[d];h!==m&&(c("SCROLL"),o()),h=m};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[s.viewport,i,c,o]),a.jsx(Gr,{present:n||l!=="hidden",children:a.jsx(vg,{"data-state":l==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:Z(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:Z(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),NE=y.forwardRef((e,t)=>{const n=Gt(Ln,e.__scopeScrollArea),{forceMount:r,...s}=e,[i,o]=y.useState(!1),l=e.orientation==="horizontal",c=Vu(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;o(l?u:d)}},10);return eo(n.viewport,c),eo(n.content,c),a.jsx(Gr,{present:r||i,children:a.jsx(vg,{"data-state":i?"visible":"hidden",...s,ref:t})})}),vg=y.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,s=Gt(Ln,e.__scopeScrollArea),i=y.useRef(null),o=y.useRef(0),[l,c]=y.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=_E(l.viewport,l.content),d={...r,sizes:l,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>i.current=f,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:f=>o.current=f};function h(f,m){return x6(f,o.current,l,m)}return n==="horizontal"?a.jsx(m6,{...d,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const f=s.viewport.scrollLeft,m=_0(f,l,s.dir);i.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:f=>{s.viewport&&(s.viewport.scrollLeft=f)},onDragScroll:f=>{s.viewport&&(s.viewport.scrollLeft=h(f,s.dir))}}):n==="vertical"?a.jsx(p6,{...d,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const f=s.viewport.scrollTop,m=_0(f,l);i.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:f=>{s.viewport&&(s.viewport.scrollTop=f)},onDragScroll:f=>{s.viewport&&(s.viewport.scrollTop=h(f))}}):null}),m6=y.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...s}=e,i=Gt(Ln,e.__scopeScrollArea),[o,l]=y.useState(),c=y.useRef(null),u=fe(t,c,i.onScrollbarXChange);return y.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),a.jsx(EE,{"data-orientation":"horizontal",...s,ref:u,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Fu(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,h)=>{if(i.viewport){const f=i.viewport.scrollLeft+d.deltaX;e.onWheelScroll(f),PE(f,h)&&d.preventDefault()}},onResize:()=>{c.current&&i.viewport&&o&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:qc(o.paddingLeft),paddingEnd:qc(o.paddingRight)}})}})}),p6=y.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...s}=e,i=Gt(Ln,e.__scopeScrollArea),[o,l]=y.useState(),c=y.useRef(null),u=fe(t,c,i.onScrollbarYChange);return y.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),a.jsx(EE,{"data-orientation":"vertical",...s,ref:u,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Fu(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,h)=>{if(i.viewport){const f=i.viewport.scrollTop+d.deltaY;e.onWheelScroll(f),PE(f,h)&&d.preventDefault()}},onResize:()=>{c.current&&i.viewport&&o&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:qc(o.paddingTop),paddingEnd:qc(o.paddingBottom)}})}})}),[g6,CE]=wE(Ln),EE=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:s,onThumbChange:i,onThumbPointerUp:o,onThumbPointerDown:l,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:d,onResize:h,...f}=e,m=Gt(Ln,n),[w,p]=y.useState(null),b=fe(t,T=>p(T)),v=y.useRef(null),g=y.useRef(""),x=m.viewport,S=r.content-r.viewport,j=qe(d),N=qe(c),C=Vu(h,10);function E(T){if(v.current){const A=T.clientX-v.current.left,M=T.clientY-v.current.top;u({x:A,y:M})}}return y.useEffect(()=>{const T=A=>{const M=A.target;(w==null?void 0:w.contains(M))&&j(A,S)};return document.addEventListener("wheel",T,{passive:!1}),()=>document.removeEventListener("wheel",T,{passive:!1})},[x,w,S,j]),y.useEffect(N,[r,N]),eo(w,C),eo(m.content,C),a.jsx(g6,{scope:n,scrollbar:w,hasThumb:s,onThumbChange:qe(i),onThumbPointerUp:qe(o),onThumbPositionChange:N,onThumbPointerDown:qe(l),children:a.jsx(se.div,{...f,ref:b,style:{position:"absolute",...f.style},onPointerDown:Z(e.onPointerDown,T=>{T.button===0&&(T.target.setPointerCapture(T.pointerId),v.current=w.getBoundingClientRect(),g.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),E(T))}),onPointerMove:Z(e.onPointerMove,E),onPointerUp:Z(e.onPointerUp,T=>{const A=T.target;A.hasPointerCapture(T.pointerId)&&A.releasePointerCapture(T.pointerId),document.body.style.webkitUserSelect=g.current,m.viewport&&(m.viewport.style.scrollBehavior=""),v.current=null})})})}),Kc="ScrollAreaThumb",TE=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=CE(Kc,e.__scopeScrollArea);return a.jsx(Gr,{present:n||s.hasThumb,children:a.jsx(y6,{ref:t,...r})})}),y6=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...s}=e,i=Gt(Kc,n),o=CE(Kc,n),{onThumbPositionChange:l}=o,c=fe(t,h=>o.onThumbChange(h)),u=y.useRef(void 0),d=Vu(()=>{u.current&&(u.current(),u.current=void 0)},100);return y.useEffect(()=>{const h=i.viewport;if(h){const f=()=>{if(d(),!u.current){const m=w6(h,l);u.current=m,l()}};return l(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[i.viewport,d,l]),a.jsx(se.div,{"data-state":o.hasThumb?"visible":"hidden",...s,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Z(e.onPointerDownCapture,h=>{const m=h.target.getBoundingClientRect(),w=h.clientX-m.left,p=h.clientY-m.top;o.onThumbPointerDown({x:w,y:p})}),onPointerUp:Z(e.onPointerUp,o.onThumbPointerUp)})});TE.displayName=Kc;var xg="ScrollAreaCorner",kE=y.forwardRef((e,t)=>{const n=Gt(xg,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?a.jsx(v6,{...e,ref:t}):null});kE.displayName=xg;var v6=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,s=Gt(xg,n),[i,o]=y.useState(0),[l,c]=y.useState(0),u=!!(i&&l);return eo(s.scrollbarX,()=>{var h;const d=((h=s.scrollbarX)==null?void 0:h.offsetHeight)||0;s.onCornerHeightChange(d),c(d)}),eo(s.scrollbarY,()=>{var h;const d=((h=s.scrollbarY)==null?void 0:h.offsetWidth)||0;s.onCornerWidthChange(d),o(d)}),u?a.jsx(se.div,{...r,ref:t,style:{width:i,height:l,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function qc(e){return e?parseInt(e,10):0}function _E(e,t){const n=e/t;return isNaN(n)?0:n}function Fu(e){const t=_E(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function x6(e,t,n,r="ltr"){const s=Fu(n),i=s/2,o=t||i,l=s-o,c=n.scrollbar.paddingStart+o,u=n.scrollbar.size-n.scrollbar.paddingEnd-l,d=n.content-n.viewport,h=r==="ltr"?[0,d]:[d*-1,0];return AE([c,u],h)(e)}function _0(e,t,n="ltr"){const r=Fu(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-s,o=t.content-t.viewport,l=i-r,c=n==="ltr"?[0,o]:[o*-1,0],u=Kf(e,c);return AE([0,o],[0,l])(u)}function AE(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function PE(e,t){return e>0&&e<t}var w6=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function s(){const i={left:e.scrollLeft,top:e.scrollTop},o=n.left!==i.left,l=n.top!==i.top;(o||l)&&t(),n=i,r=window.requestAnimationFrame(s)}(),()=>window.cancelAnimationFrame(r)};function Vu(e,t){const n=qe(e),r=y.useRef(0);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),y.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function eo(e,t){const n=qe(t);He(()=>{let r=0;if(e){const s=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return s.observe(e),()=>{window.cancelAnimationFrame(r),s.unobserve(e)}}},[e,n])}var RE=bE,b6=jE,S6=kE;const em=y.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(RE,{ref:r,className:ve("relative overflow-hidden",e),...n,children:[a.jsx(b6,{className:"h-full w-full rounded-[inherit]",children:t}),a.jsx(IE,{}),a.jsx(S6,{})]}));em.displayName=RE.displayName;const IE=y.forwardRef(({className:e,orientation:t="vertical",...n},r)=>a.jsx(yg,{ref:r,orientation:t,className:ve("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:a.jsx(TE,{className:"relative flex-1 rounded-full bg-border"})}));IE.displayName=yg.displayName;const Ml=[{title:"Platform Guide",items:[{id:"overview",label:"Overview",icon:Zh}]},{title:"Introduction",items:[{id:"what-is-smartcaller",label:"What is SmartCaller?",icon:In},{id:"how-it-works",label:"How It Works",icon:mu},{id:"key-terminology",label:"Key Terminology",icon:P1}]},{title:"Getting Started",items:[{id:"core-concepts",label:"Core Concepts",icon:Zh},{id:"understanding-billing",label:"Understanding Billing",icon:A1}]},{title:"AI Assistants",items:[{id:"what-is-ai-assistant",label:"What is an AI Assistant?",icon:fu},{id:"general-settings",label:"Quick Start Guide",icon:sp},{id:"assistant-settings",label:"Assistant Settings",icon:$1},{id:"voice-settings",label:"Voice Settings",icon:O1}]},{title:"Phone Numbers",items:[{id:"phone-number-types",label:"Types of Phone Numbers",icon:L1}]},{title:"Campaigns",items:[{id:"campaigns-overview",label:"Campaigns Overview",icon:F1},{id:"campaign-status",label:"Campaign Status",icon:C2},{id:"retry-system",label:"Retry System",icon:D1}]},{title:"Help",items:[{id:"why-choose",label:"Why Choose SmartCaller?",icon:w2}]}],nh={overview:a.jsxs("div",{className:"space-y-8",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("h1",{className:"text-4xl font-bold text-foreground",children:"Platform Guide"}),a.jsx("p",{className:"text-xl text-muted-foreground",children:"Learn how to use SmartCaller to automate your phone calls with AI"})]}),a.jsx("div",{className:"relative rounded-2xl overflow-hidden bg-gradient-to-br from-primary/10 to-accent/10 p-8",children:a.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-8",children:[a.jsx("div",{className:"space-y-4 flex-1",children:a.jsxs("h2",{className:"text-2xl font-bold text-foreground",children:["Automate your business phone calls using"," ",a.jsx("span",{className:"gradient-text",children:"voice AI agents"})]})}),a.jsx("div",{className:"w-full md:w-96",children:a.jsx("img",{src:c6,alt:"SmartCaller AI Call Agent",className:"w-full h-auto rounded-xl shadow-lg"})})]})}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("h2",{className:"text-2xl font-semibold text-foreground flex items-center gap-2",children:[a.jsx(In,{className:"w-6 h-6 text-primary"}),"Automate phone calls with AI"]}),a.jsx("p",{className:"text-muted-foreground",children:"Welcome to the SmartCaller documentation hub. Whether you're a product owner, marketer, or developer, these guides will help you build, launch, and scale AI-powered voice experiences."}),a.jsx("div",{className:"glass-card p-4 border-l-4 border-primary bg-primary/5",children:a.jsxs("p",{className:"text-foreground",children:["Need help getting started? Jump to our"," ",a.jsx("a",{href:"#core-concepts",className:"text-primary hover:underline font-medium",children:"core concepts guide"})," ","or"," ",a.jsx(Wt,{to:"/contact",className:"text-primary hover:underline font-medium",children:"contact support"}),"."]})})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h3",{className:"text-xl font-semibold text-foreground",children:"Get started in minutes"}),a.jsx("div",{className:"space-y-4",children:[{step:1,title:"Sign up on SmartCaller",desc:"Create your free account and access your dashboard."},{step:2,title:"Create your first AI assistant",desc:"Define the prompt, choose a voice, and connect any tools you need."},{step:3,title:"Start making & receiving calls",desc:"Attach a phone number, launch a campaign, or route inbound calls to your assistant."}].map(e=>a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"w-8 h-8 rounded-full bg-primary flex items-center justify-center text-primary-foreground font-bold text-sm shrink-0",children:e.step}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground",children:e.title}),a.jsx("p",{className:"text-muted-foreground text-sm",children:e.desc})]})]},e.step))})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[{title:"Platform Guide",desc:"Learn the core concepts of SmartCaller, including AI assistants, phone numbers, and call management.",href:"#what-is-smartcaller"},{title:"AI Assistants",desc:"Build powerful AI assistants that can handle calls, answer questions, and schedule appointments.",href:"#what-is-ai-assistant"}
452,{title:"Phone Numbers",desc:"Set up inbound and outbound phone numbers for your AI assistants.",href:"#phone-number-types"},{title:"Campaigns",desc:"Launch outbound calling campaigns to reach leads and customers at scale.",href:"#campaigns-overview"}].map(e=>a.jsxs("a",{href:e.href,className:"glass-card p-6 hover:shadow-lg transition-all duration-300 group",children:[a.jsx("h4",{className:"font-semibold text-foreground group-hover:text-primary transition-colors",children:e.title}),a.jsx("p",{className:"text-muted-foreground text-sm mt-2",children:e.desc}),a.jsx(Vr,{className:"w-4 h-4 text-primary mt-3 opacity-0 group-hover:opacity-100 transition-opacity"})]},e.title))})]}),"what-is-smartcaller":a.jsxs("div",{className:"space-y-8",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("h1",{className:"text-4xl font-bold text-foreground",children:"What is SmartCaller?"}),a.jsx("p",{className:"text-xl text-muted-foreground",children:"SmartCaller is a voice automation platform that leverages AI to handle phone calls in real time."})]}),a.jsx("p",{className:"text-muted-foreground",children:'It allows you to create AI-driven assistants (or "agents") that can speak with your customers over the phone—both inbound and outbound.'}),a.jsxs("div",{className:"space-y-6",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Core Features"}),a.jsx("div",{className:"space-y-4",children:[{title:"Inbound & Outbound Calls",desc:"Handle both incoming support calls or automated outbound campaigns to reach leads and customers."},{title:"AI-Powered Conversations",desc:"Uses advanced language models (LLMs) and speech recognition for natural-sounding interactions."},{title:"No-Code Flows",desc:"Built-in automation platform to connect with Google Sheets, CRMs, calendars, and more—no coding required."}].map(e=>a.jsxs("div",{className:"glass-card p-4",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:e.title}),a.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:e.desc})]},e.title))})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Key Benefits"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[{icon:rp,title:"24/7 Availability",desc:"Your AI agent can handle calls around the clock, reducing missed calls or wait times."},{icon:Ql,title:"Scalability",desc:"The same number can handle multiple calls in parallel, perfect for high-volume scenarios."},{icon:A1,title:"Time & Cost Savings",desc:"Free up human agents for complex tasks while the AI handles repetitive inquiries."}].map(e=>a.jsxs("div",{className:"text-center p-6 glass-card",children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center mx-auto mb-4",children:a.jsx(e.icon,{className:"w-6 h-6 text-primary"})}),a.jsx("h4",{className:"font-semibold text-foreground",children:e.title}),a.jsx("p",{className:"text-muted-foreground text-sm mt-2",children:e.desc})]},e.title))})]})]}),"how-it-works":a.jsxs("div",{className:"space-y-8",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("h1",{className:"text-4xl font-bold text-foreground",children:"How It Works"}),a.jsx("p",{className:"text-xl text-muted-foreground",children:"A quick overview of SmartCaller's AI voice technology"})]}),a.jsxs("p",{className:"text-muted-foreground",children:["SmartCaller blends ",a.jsx("strong",{className:"text-foreground",children:"AI voice recognition"})," with"," ",a.jsx("strong",{className:"text-foreground",children:"LLM-based replies"})," to conduct live phone conversations. Below is a simplified flow:"]}),a.jsx("div",{className:"space-y-4",children:[{step:1,title:"Caller or Lead is Dialed",desc:"Inbound: A customer dials your assigned phone number. Outbound: SmartCaller's system calls a list of phone numbers from your campaign."},{step:2,title:"Speech Recognition",desc:"The AI listens to what the person says and transcribes it into text in real time."},{step:3,title:"LLM Decision",desc:"SmartCaller uses a large language model (LLM) and your configured 'system prompt' to craft a reply or decide the next action (like transferring the call)."},{step:4,title:"Voice Output",desc:"The AI's response is converted to natural-sounding speech via our voice engine."},{step:5,title:"Result & Actions",desc:"For Inbound: The AI may answer questions, verify info, book appointments, or take a message. For Outbound: The AI can pitch a product, qualify leads, or transfer interested callers to a human agent."},{step:6,title:"Data & Reporting",desc:"You get transcripts, call recordings, call outcomes (like 'no answer' or 'success'), and the ability to automate follow-up actions."}].map(e=>a.jsxs("div",{className:"flex items-start gap-4 glass-card p-4",children:[a.jsx("div",{className:"w-8 h-8 rounded-full bg-primary flex items-center justify-center text-primary-foreground font-bold text-sm shrink-0",children:e.step}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground",children:e.title}),a.jsx("p",{className:"text-muted-foreground text-sm",children:e.desc})]})]},e.step))}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Distinctions: Inbound vs. Outbound"}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Inbound"}),a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2",children:[a.jsx("li",{children:"• Caller dials a number you rented or integrated"}),a.jsx("li",{children:"• AI picks up, greets, and handles queries or routes the caller if needed"})]})]}),a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Outbound"}),a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2",children:[a.jsx("li",{children:"• You upload or sync leads"}),a.jsx("li",{children:"• AI dials each number, follows your call script, possibly transfers if the lead is interested"})]})]})]})]})]}),"key-terminology":a.jsxs("div",{className:"space-y-8",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("h1",{className:"text-4xl font-bold text-foreground",children:"Key Terminology"}),a.jsx("p",{className:"text-xl text-muted-foreground",children:"Understanding these terms will help you navigate SmartCaller more easily"})]}),a.jsx("div",{className:"space-y-6",children:[{term:"AI Assistant / Agent",def:"A customizable bot you configure to handle inbound or outbound calls. Defines conversation style, voice, and behavior via a 'system prompt.'"}
452,{term:"Campaign (Outbound)",def:"A sequence or batch of calls to a list of contacts or leads. You can upload a CSV, connect Google Sheets, or integrate your CRM to launch these calls."},{term:"Inbound Number",def:"A dedicated phone number that customers dial to reach your AI assistant. You can get one from the platform or integrate via SIP/PBX."},{term:"Outbound Caller ID",def:"The number displayed on the customer's phone when your AI calls them. You can rent one or verify an existing number to use as Caller ID."},{term:"No-Code Automation Platform",def:"SmartCaller's built-in workflow platform, similar to Zapier/Make. It lets you connect triggers (like 'call ended') to actions (like 'send an email' or 'update a Google Sheet') without writing code."},{term:"Tools / Integrations",def:"Refers to the specialized features your AI assistant can use, like transferring a call, ending a call, scheduling an appointment, or webhooks to external apps."},{term:"Knowledge Base",def:"A collection of documents (PDFs, websites, text files) that your AI assistant can reference during calls to provide accurate information and answer customer questions."},{term:"Post-Call Variables",def:"Data extracted by AI after each call (like status, summary, formatted_transcript) that can be used in automations and follow-up actions."},{term:"Call Variables",def:"Dynamic data that personalizes each call (like customer_name, email, company) and can be used in system prompts and automations."},{term:"Lead Status",def:"The current state of a lead in your system: Created, Scheduled, Processing, Completed, Rescheduled, or Max Retries."},{term:"Campaign Status",def:"The current state of a campaign: Draft, In Progress, Paused, or Completed."},{term:"Webhook",def:"A URL endpoint that receives data when specific events occur (like call endings), enabling real-time integrations with external systems."},{term:"SIP Integration",def:"A method to connect your existing phone system or VOIP provider with SmartCaller without renting new numbers."}].map(e=>a.jsxs("div",{className:"glass-card p-4",children:[a.jsx("h4",{className:"font-semibold text-primary",children:e.term}),a.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:e.def})]},e.term))}),a.jsx("div",{className:"glass-card p-4 border-l-4 border-primary bg-primary/5",children:a.jsxs("p",{className:"text-foreground text-sm",children:[a.jsx("strong",{children:"Tip:"})," Keep these definitions in mind as you proceed through the docs. They'll pop up in various setup steps or feature explanations."]})})]}),"core-concepts":a.jsxs("div",{className:"space-y-8",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("h1",{className:"text-4xl font-bold text-foreground",children:"Core Concepts"}),a.jsx("p",{className:"text-xl text-muted-foreground",children:"The essential building blocks you need to understand before configuring your AI assistant and calls"})]}),a.jsxs("div",{className:"space-y-8",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"1. System Prompt & Initial Message"}),a.jsxs("div",{className:"glass-card p-6 space-y-4",children:[a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground",children:"System Prompt"}),a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2 mt-2",children:[a.jsx("li",{children:`• The "brain" of your AI assistant. You write a short (or long) set of instructions that guide the assistant's behavior and tone of voice.`}),a.jsx("li",{children:"• This includes any important business info, disclaimers, or how you want the AI to handle edge cases."}),a.jsxs("li",{children:["• For example: ",a.jsx("em",{children:`"You are a helpful phone assistant for XYZ Company, you greet in a friendly manner, confirm the caller's info, etc."`})]})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground",children:"Initial Message"}),a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2 mt-2",children:[a.jsx("li",{children:"• The very first thing the AI says."}),a.jsx("li",{children:'• Typically short, like "Hello, thanks for calling XYZ Company!"'})]})]})]})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"2. Voices"}),a.jsx("div",{className:"glass-card p-6",children:a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2",children:[a.jsx("li",{children:"• SmartCaller integrates with premium voice providers for natural-sounding speech."}),a.jsxs("li",{children:["• You can ",a.jsx("strong",{className:"text-foreground",children:"clone"})," your own voice by providing audio samples or pick from built-in voices."]}),a.jsx("li",{children:"• Each voice can have adjustable parameters like speech speed, filler usage, or accent (if available)."})]})})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"3. Putting It All Together"}),a.jsx("div",{className:"glass-card p-6",children:a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2",children:[a.jsxs("li",{children:["• An ",a.jsx("strong",{className:"text-foreground",children:"AI Assistant"})," is built by combining a system prompt, an initial message, and a chosen voice."]}),a.jsx("li",{children:'• Optionally, you add tools (like "transfer call" or "end call").'}),a.jsx("li",{children:"• Once the assistant is set, you assign it to a phone number (for inbound) or a campaign (for outbound)."})]})})]})]}),a.jsx("div",{className:"glass-card p-4 border-l-4 border-primary bg-primary/5",children:a.jsxs("p",{className:"text-foreground",children:[a.jsx("strong",{children:"Next Steps:"})," Learn how"," ",a.jsx("a",{href:"#understanding-billing",className:"text-primary hover:underline",children:"call minutes and billing"})," ","work to plan your usage. Or, jump to"," ",a.jsx("a",{href:"#what-is-ai-assistant",className:"text-primary hover:underline",children:"AI Assistants Overview"})," ","to start building your first assistant."]})})]}),"understanding-billing":a.jsxs("div",{className:"space-y-8",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("h1",{className:"text-4xl font-bold text-foreground",children:"Understanding Call Minutes & Billing"}),a.jsx("p",{className:"text-xl text-muted-foreground",children:"SmartCaller operates on a usage-based model"})]}),a.jsx("p",{className:"text-muted-foreground",children:"You pay primarily for two things:"}),a.jsxs("ol",{className:"list-decimal list-inside text-muted-foreground space-y-2 ml-4",children:[a.jsxs("li",{children:["The ",a.jsx("strong",{className:"text-foreground",children:"minutes"})," your AI spends in calls."]}),a.jsxs("li",{children:["Any ",a.jsx("strong",{className:"text-foreground",children:"dedicated phone number"})," rentals."]})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"1. Included Minutes vs. Pay-as-You-Go"}),a.jsx("div",{className:"glass-card p-6",children:a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2",children:[a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Included Minutes:"})," Some plans may come with a set of monthly minutes. These are consumed first."]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Pay-as-You-Go:"})," If you exceed included minutes (or if you're on a usage-based plan), you pay for each additional minute used."]})]})})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"2. How We Calculate Minutes"}),a.jsx("div",{className:"glass-card p-6",children:a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2",children:[a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Per-Second Billing:"})," Typically, SmartCaller bills by the second (converted to minutes). For example, a 90-second call is 1.5 minutes."]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Rounding:"})," Make sure you check your plan's rounding rules. Some might round up to the nearest 30 seconds, while others do pure per-second."]})]})})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"3. Monthly Usage & Purchasing Extra"}),a.jsx("div",{className:"glass-card p-6",children:a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2",children:[a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Monthly Reset:"})," If your plan includes minutes, those reset monthly on your billing date."]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Buying Add-Ons:"})," You can purchase extra minute bundles if you expect a spike in call volume."]})]})})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"4. Additional Costs"}),a.jsx("div",{className:"glass-card p-6",children:a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2",children:[a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Phone Number Rental:"})," A monthly fee for each dedicated inbound/outbound number you rent (varies by region)."]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Possible Carrier Surcharges:"})," Some countries may have unique taxes or surcharges."]})]})})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"5. Monitoring Usage"}),a.jsx("div",{className:"glass-card p-6",children:a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2",children:[a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Dashboard:"})," The platform displays your current usage, how many minutes are left, and your estimated cost so far."]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Notifications:"}),' You can set up alerts (e.g., "Email me when I hit 80% of monthly minutes") using the no-code automation platform.']}
452)]})})]})]})]}),"what-is-ai-assistant":a.jsxs("div",{className:"space-y-8",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("h1",{className:"text-4xl font-bold text-foreground",children:"What is an AI Assistant?"}),a.jsx("p",{className:"text-xl text-muted-foreground",children:"Your configurable bot that speaks with customers or leads over the phone"})]}),a.jsxs("p",{className:"text-muted-foreground",children:["An ",a.jsx("strong",{className:"text-foreground",children:"AI Assistant"})," (sometimes called an agent) is your configurable bot that speaks with customers or leads over the phone—either when they call you (",a.jsx("strong",{className:"text-foreground",children:"inbound"}),") or when your system calls them (",a.jsx("strong",{className:"text-foreground",children:"outbound"}),")."]}),a.jsxs("div",{className:"space-y-6",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Why Use an AI Assistant?"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[{icon:fu,title:"Automate Common Interactions",desc:"Answer FAQs, book appointments, or qualify leads 24/7."},{icon:Ql,title:"Reduce Workload",desc:"Free your human team from repetitive tasks like verifying contact info or taking messages."},{icon:mu,title:"Scalable",desc:"One assistant can handle many calls in parallel, allowing you to grow without adding more agents."}].map(e=>a.jsxs("div",{className:"glass-card p-6 text-center",children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center mx-auto mb-4",children:a.jsx(e.icon,{className:"w-6 h-6 text-primary"})}),a.jsx("h4",{className:"font-semibold text-foreground",children:e.title}),a.jsx("p",{className:"text-muted-foreground text-sm mt-2",children:e.desc})]},e.title))})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Key Components"}),a.jsx("div",{className:"space-y-4",children:[{num:1,title:"System Prompt",desc:"The core instructions guiding how your assistant behaves."},{num:2,title:"Initial Message",desc:"The very first phrase the AI says (especially critical for inbound calls)."},{num:3,title:"Voice Settings",desc:"Choose a built-in voice or clone your own."},{num:4,title:"Tools (Optional)",desc:"Transfer, end call, scheduling, and more."}].map(e=>a.jsxs("div",{className:"flex items-start gap-4 glass-card p-4",children:[a.jsx("div",{className:"w-8 h-8 rounded-full bg-primary flex items-center justify-center text-primary-foreground font-bold text-sm shrink-0",children:e.num}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground",children:e.title}),a.jsx("p",{className:"text-muted-foreground text-sm",children:e.desc})]})]},e.num))})]})]}),"general-settings":a.jsxs("div",{className:"space-y-8",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("h1",{className:"text-4xl font-bold text-foreground",children:"Creating and Editing an AI Assistant"}),a.jsx("p",{className:"text-xl text-muted-foreground",children:"General Settings - Configure the fundamental settings for your AI assistant"})]}),a.jsx("p",{className:"text-muted-foreground",children:"Configure the fundamental settings for your AI assistant including call direction, phone numbers, voice selection, and technical parameters."}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Quick Start Guide"}),a.jsx("p",{className:"text-muted-foreground",children:"Ready to set up your first AI assistant? Here's the essential flow:"}),a.jsx("div",{className:"space-y-3",children:[{step:1,title:"Choose Call Direction",desc:"Inbound (answers calls) or Outbound (makes calls)"},{step:2,title:"Set Assistant Name",desc:'Internal label like "Support Bot" or "Sales Bot"'},{step:3,title:"Configure Phone Numbers",desc:"Assign platform numbers, SIP, or Caller ID"},{step:4,title:"Select Voice & Language",desc:"Choose from built-in voices or clone custom ones"},{step:5,title:"Adjust Advanced Settings",desc:"Fine-tune models, timing, and audio parameters"}].map(e=>a.jsxs("div",{className:"flex items-start gap-4 glass-card p-4",children:[a.jsx("div",{className:"w-8 h-8 rounded-full bg-primary flex items-center justify-center text-primary-foreground font-bold text-sm shrink-0",children:e.step}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground",children:e.title}),a.jsx("p",{className:"text-muted-foreground text-sm",children:e.desc})]})]},e.step))}),a.jsx("div",{className:"glass-card p-4 border-l-4 border-primary bg-primary/5",children:a.jsxs("p",{className:"text-foreground text-sm",children:[a.jsx("strong",{children:"Always test your changes"})," by calling the assistant or running a small campaign to confirm it behaves as expected."]})})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Call Direction & Basic Setup"}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"Assistant Type"}),a.jsxs("p",{className:"text-muted-foreground text-sm mb-4",children:["Choose whether your assistant handles ",a.jsx("strong",{className:"text-foreground",children:"inbound"})," or ",a.jsx("strong",{className:"text-foreground",children:"outbound"})," calls. This fundamental choice affects which other options become available."]}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"p-4 bg-primary/5 rounded-lg",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:"Inbound (Receive calls)"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:"Handles incoming calls from customers."})]}),a.jsxs("div",{className:"p-4 bg-primary/5 rounded-lg",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:"Outbound (Make calls)"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:"Initiates calls to leads or customers."})]})]})]}),a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"Assistant Name"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:`A descriptive name to identify your assistant in the dashboard. Use something memorable that describes the assistant's purpose (e.g. "Sales Qualifier", "Support Bot", "Appointment Scheduler").`})]})]})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Phone Number C
452onfiguration"}),a.jsx("p",{className:"text-muted-foreground",children:"Your assistant needs a phone number to operate. The available options depend on your call direction choice."}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"For Outbound Assistants"}),a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2",children:[a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Platform numbers:"})," Numbers rented directly from our platform"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"SIP numbers:"})," Connect your existing VOIP/PBX system"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Caller ID only:"})," Verify ownership of an existing number to display it on outbound calls"]})]})]}),a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"For Inbound Assistants"}),a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2",children:[a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Platform numbers:"})," Numbers rented directly from our platform"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"SIP numbers:"})," Connect your existing VOIP/PBX system"]})]}),a.jsx("p",{className:"text-muted-foreground text-sm mt-3 italic",children:"Note: Caller ID only numbers cannot handle inbound calls."})]})]}),a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"Pricing & Costs"}),a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2",children:[a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Platform numbers:"})," Monthly rental fees starting from $3.99/month"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"SIP integration:"})," No monthly fee, only $0.00045/min for AI bridging"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Caller ID:"})," No monthly fee, region-based per-minute rates (e.g., $0.01/min in the US)"]})]})]})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Engine Type (Voice Processing Mode)"}),a.jsx("p",{className:"text-muted-foreground",children:"Choose how your AI processes speech and generates responses. Each mode is optimized for different use cases."}),a.jsx("div",{className:"space-y-4",children:[{title:"Pipeline Mode",desc:"Traditional Speech-to-Text → LLM → Text-to-Speech pipeline. Offers maximum control over voice selection and response generation.",best:"Complex reasoning, function calling, custom voice requirements"},{title:"Speech-to-Speech Mode",desc:"Direct speech-to-speech generation without intermediate text processing. Provides the most natural conversational flow.",best:"Quick conversations, natural back-and-forth dialogue"},{title:"Dualplex Mode (Beta)",desc:"Combines fast multimodal processing with premium ElevenLabs voice output.",best:"Most use cases - recommended default"}].map(e=>a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-2",children:e.title}),a.jsx("p",{className:"text-muted-foreground text-sm mb-2",children:e.desc}),a.jsxs("p",{className:"text-sm",children:[a.jsx("strong",{className:"text-primary",children:"Best for:"})," ",a.jsx("span",{className:"text-muted-foreground",children:e.best})]})]},e.title))})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Language Configuration"}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"Primary Language"}),a.jsx("p",{className:"text-muted-foreground text-sm mb-3",children:"The main language your assistant will use for speech recognition and synthesis. This affects:"}),a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-1",children:[a.jsx("li",{children:"• Speech recognition accuracy"}),a.jsx("li",{children:"• Available voice options"}),a.jsx("li",{children:"• Filler audio phrases"}),a.jsx("li",{children:"• Voice model selection"})]})]}),a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"Secondary Languages"}),a.jsx("p",{className:"text-muted-foreground text-sm mb-3",children:"Additional languages your assistant can understand and speak. Useful for:"}),a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-1",children:[a.jsx("li",{children:"• Multilingual customer support"}),a.jsx("li",{children:"• International businesses"}),a.jsx("li",{children:"• Code-switching conversations"})]}),a.jsx("p",{className:"text-muted-foreground text-sm mt-3 italic",children:"Note: The AI can detect which language the customer is speaking and respond appropriately."})]})]})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"TTS Provider & Voice Selection"}),a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"TTS Provider"}),a.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:"Select your Text-to-Speech provider. Available in Pipeline and Dualplex modes."}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"p-4 bg-primary/5 rounded-lg",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:"ElevenLabs"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:"High-quality voices"})]}),a.jsxs("div",{className:"p-4 bg-primary/5 rounded-lg",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:"Cartesia"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:"Fast, low-latency synthesis"})]})]})]}),a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"Voice Options"}),a.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:"You have three ways to get the perfect voice for your assistant:"}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"p-4 bg-muted/50 rounded-lg",children:[a.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"1. Choose from existing voices"}),a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-1",children:[a.jsx("li",{children:"• Professional voices: Pre-trained, high-quality options"}),a.jsx("li",{children:"• Multiple accents: Available for most languages"}),a.jsx("li",{children:"• Gender options: Male and female voices for each language"}),a.jsx("li",{children:"• Tone variety: From formal business to casual conversational"})]})]}),a.jsxs("div",{className:"p-4 bg-muted/50 rounded-lg",children:[a.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"2. Clone a custom voice"}),a.jsx("p",{className:"text-muted-foreground text-sm mb-2",children:"Create a custom voice by uploading audio samples. Available in Pipeline and Dualplex modes."}),a.jsx("p",{className:"text-muted-foreground text-sm",children:a.jsx("strong",{children:"Requirements:"})}),a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-1",children:[a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Cartesia:"})," Single audio file, at least 10 seconds, 1 speaker, no background noise"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"ElevenLabs:"})," Samples over 1 minute, 1 speaker, no background noise. Max 5 minutes total."]})]})]}),a.jsxs("div",{className:"p-4 bg-muted/50 rounded-lg",children:[a.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"3. Request from voice library"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:"Contact support to add specific voices from public libraries to your account."})]})]})]})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Timezone Configuration"}),a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"Timezone"}),a.jsx("p",{className:"text-muted-foreground text-sm mb-3",children:"Set the timezone your assistant operates in. This affects:"}),a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-1",children:[a.jsx("li",{children:"• Time-based variables in conversations"}),a.jsx("li",{children:"• Appointment scheduling functions"}),a.jsx("li",{children:'• "Current time" references in system prompts'}),a.jsx("li",{children:"• Timestamps in call logs and data extraction"})]}),a.jsx("p",{className:"text-muted-foreground text-sm mt-3 italic",children:"Important: Choose the timezone where your business operates or where most customers are located."})]})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Audio Enhancement Settings"}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"Ambient Sound"}),a.jsx("p",{className:"text-muted-foreground text-sm mb-3",children:"Optional background sound mixed under your assistant's voice to mask processing delays and create a more natural audio experience."}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"p-4 bg-muted/50 rounded-lg",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:"None"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:"No background sound (default)"})]}),a.jsxs("div",{className:"p-4 bg-muted/50 rounded-lg",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:"Office"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:"Subtle office environment sounds"})]})]}),a.jsx("p",{className:"text-muted-foreground text-sm mt-3 italic",children:"Tip: Turn off or lower volume if the assistant isn't hearing the customer clearly."})]}),a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"Filler Audio"}),a.jsx("p",{className:"text-muted-foreground text-sm mb-3",children:'Short conversational phrases like "mhm", "okay", "I understand" that play during AI processing time.'}),a.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Benefits:"}),a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-1",children:[a.jsx("li",{children:"• Eliminates awkward silences during processing"}),a.jsx("li",{children:"• Keeps callers engaged"}),a.jsx("li",{children:"• Creates more natural conversation flow"}),a.jsx("li",{children:"• Reduces hang-up rates"})]}),a.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-2 mt-4",children:[a.jsxs("div",{className:"p-3 bg-primary/5 rounded-lg text-center",children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:"Positive"}),a.jsx("p",{className:"text-sm text-foreground",children:'"Great!", "Perfect!"'})]}),a.jsxs("div",{className:"p-3 bg-primary/5 rounded-lg text-center",children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:"Negative"}),a.jsx("p",{className:"text-sm text-foreground",children:'"Hmm.", "I see."'})]}),a.jsxs("div",{className:"p-3 bg-primary/5 rounded-lg text-center",children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:"Question"}),a.jsx("p",{className:"text-sm text-foreground",children:'"Right?", "Really?"'})]}),a.jsxs("div",{className:"p-3 bg-primary/5 rounded-lg text-center",children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:"Neutral"}),a.jsx("p",{className:"text-sm text-foreground",children:'"Okay.", "Got it."'})]})]})]})]})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Advanced Settings"}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"LLM Model Selection"}),a.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:"Choose the best language model for your assistant's mode."}),a.jsx("div",{className:"overflow-x-auto",children:a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{children:a.jsxs("tr",{className:"border-b border-border",children:[a.jsx("th",{className:"text-left py-2 text-foreground",children:"Model"}),a.jsx("th",{className:"text-left py-2 text-foreground",children:"Strengths"}),a.jsx("th",{className:"text-left py-2 text-foreground",children:"Best for"})]})}),a.jsxs("tbody",{className:"text-muted-foreground",children:[a.jsxs("tr",{className:"border-b border-border/50",children:[a.jsx("td",{className:"py-2 font-medium",children:"GPT-5 Mini"}),a.jsx("td",{className:"py-2",children:"Balanced reasoning with low latency"}),a.jsx("td",{className:"py-2",children:"Pipeline mode for complex reasoning"})]}),a.jsxs("tr",{className:"border-b border-border/50",children:[a.jsx("td",{className:"py-2 font-medium",children:"GPT-5 Realtime"}),a.jsx("td",{className:"py-2",children:"Ultra-low-latency voice turns"}),a.jsx("td",{className:"py-2",children:"Speech-to-Speech and Dualplex"})]}),a.jsxs("tr",{className:"border-b border-border/50",children:[a.jsx("td",{className:"py-2 font-medium",children:"GPT-4o"}),a.jsx("td",{className:"py-2",children:"Strong reasoning and multimodal"}),a.jsx("td",{className:"py-2",children:"Complex tasks (higher latency)"})]}),a.jsxs("tr",{children:[a.jsx("td",{className:"py-2 font-medium",children:"Gemini Flash 2.0/2.5"}),a.jsx("td",{className:"py-2",children:"Ultra-fast for voice turns"}),a.jsx("td",{className:"py-2",children:"Dualplex/Multimodal for minimal latency"})]})]})]})})]}),a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"LLM Temperature"}),a.jsxs("p",{className:"text-muted-foreground text-sm mb-3",children:[a.jsx("strong",{children:"Range:"}
452)," 0.0 - 1.0 | ",a.jsx("strong",{children:"Default:"})," 0.1"]}),a.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:"Adjust the level of creativity of the AI when generating responses. Lower value yields better function call results."}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"p-4 bg-muted/50 rounded-lg",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:"Lower (0.0-0.3)"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:"More stable: Predictable responses, better for function calling and business use cases"})]}),a.jsxs("div",{className:"p-4 bg-muted/50 rounded-lg",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:"Higher (0.7-1.0)"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:"More random: Creative and varied responses, good for casual conversations"})]})]})]}),a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"Duration Settings"}),a.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:"Control timing and call limits to optimize user experience and costs:"}),a.jsx("div",{className:"space-y-3",children:[{title:"Re-engagement Interval",range:"7-600 seconds",default:"30 seconds",desc:"AI will try to re-engage the user if no reply is detected within this time."},{title:"Max Call Duration",range:"20-1200 seconds",default:"600 seconds (10 min)",desc:"Call will automatically end if this value is reached."},{title:"Max Silence Duration",range:"1-120 seconds",default:"40 seconds",desc:"Call will end if user doesn't reply within this time."},{title:"Ringing Time",range:"1-60 seconds",default:"30 seconds",desc:"How long the call will ring before marking as unanswered."}].map(e=>a.jsxs("div",{className:"p-3 bg-muted/50 rounded-lg",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:e.title}),a.jsxs("p",{className:"text-xs text-primary",children:["Range: ",e.range," | Default: ",e.default]}),a.jsx("p",{className:"text-muted-foreground text-sm",children:e.desc})]},e.title))})]}),a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"Call Protection Settings"}),a.jsx("div",{className:"space-y-3",children:[{title:"Noise Cancellation",default:"Enabled",desc:"Filters caller background noise for clearer speech recognition. Turn OFF if experiencing audio clipping."},{title:"End Call on Voicemail",default:"Enabled",desc:"Immediately ends call if voicemail is detected during outbound calls (saves costs)."},{title:"Voicemail Message",default:"Empty",desc:"Prompt for the message the AI will say when voicemail is detected before ending the call."},{title:"Record Calls",default:"Enabled",desc:"Records call audio for review and analysis. Ensure compliance with local recording laws."},{title:"Max Initial Silence",default:"20 seconds",desc:"End the call if no first user response within this time. Detects if anyone actually answered."}].map(e=>a.jsxs("div",{className:"p-3 bg-muted/50 rounded-lg",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:e.title}),a.jsxs("p",{className:"text-xs text-primary",children:["Default: ",e.default]}),a.jsx("p",{className:"text-muted-foreground text-sm",children:e.desc})]},e.title))})]})]})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Synthesizer Settings"}),a.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:"Configure text-to-speech voice parameters for natural-sounding conversations. Available for Pipeline and Dualplex modes only."}),a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"Voice Tuning Parameters"}),a.jsx("div",{className:"space-y-4",children:[{title:"TTS Emotion",default:"Enabled",desc:"When enabled, the AI will add emotional cues to the synthesized speech based on conversation context. Makes the voice sound more natural and expressive."},{title:"Voice Stability",range:"0.0-1.0",default:"0.7",desc:"Lower settings make the voice more expressive but less predictable. Higher settings make it steadier but less emotional."},{title:"Voice Similarity",range:"0.0-1.0",default:"0.5",desc:"Determines how closely the AI matches the original voice. Higher settings potentially include unwanted noise from the original recording."},{title:"Speech Speed",range:"0.7-1.2",default:"1.0",desc:"Adjust the speed of the AI's speech. Slower (0.7-0.85) for complex information, Normal (0.9-1.1) for standard pace, Faster (1.15-1.2) for quick conversations."}].map(e=>a.jsxs("div",{className:"p-3 bg-muted/50 rounded-lg",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:e.title}),a.jsxs("p",{className:"text-xs text-primary",children:[e.range&&`Range: ${e.range} | `,"Default: ",e.default]}),a.jsx("p",{className:"text-muted-foreground text-sm",children:e.desc})]},e.title))})]})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Transcriber Settings"}),a.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:"Configure speech-to-text recognition for optimal accuracy and speed. Available for Pipeline mode only."}),a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"Provider Selection"}),a.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:"Choose the best transcriber for your language and use case:"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[{name:"Azure",accuracy:"⭐⭐⭐⭐",latency:"Slower",desc:"Best for highest transcription fidelity"},{name:"Gladia",accuracy:"⭐⭐⭐",latency:"Faster",desc:"Good all-rounder for most languages"},{name:"Deepgram",accuracy:"⭐⭐⭐",latency:"Faster",desc:"Solid choice for English and major languages"}].map(e=>a.jsxs("div",{className:"p-4 bg-muted/50 rounded-lg",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:e.name}),a.jsxs("p",{className:"text-xs text-primary",children:["Accuracy: ",e.accuracy," | Latency: ",e.latency]}),a.jsx("p",{className:"text-muted-foreground text-sm",children:e.desc})]},e.name))})]}),a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:"Voice Activity Detection (VAD)"}),a.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:"Control when your assistant starts and stops talking:"}),a.jsx("div",{className:"space-y-3",children:[{title:"Endpoint Sensitivity",range:"0-5 seconds",default:"0.5",desc:"Time the AI waits for user to speak after the last word. Lower = faster responses, Higher = better for long phrases."},{title:"Interrupt Sensitivity",desc:"How easily the assistant stops when caller talks over it. Controls detection sensitivity for caller interruptions."},{title:"Minimum Interrupt Words",desc:"Require at least N caller words before interrupting assistant. Prevents false triggers from background noise."},{title:"Turn Detection Threshold",range:"0-1",default:"Auto",de
452sc:"Controls how sensitive the model is to detecting when caller finished speaking. Available for Speech-to-Speech and Dualplex modes only."}].map(e=>a.jsxs("div",{className:"p-3 bg-muted/50 rounded-lg",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:e.title}),e.range&&a.jsxs("p",{className:"text-xs text-primary",children:["Range: ",e.range," | Default: ",e.default]}),a.jsx("p",{className:"text-muted-foreground text-sm",children:e.desc})]},e.title))}),a.jsx("div",{className:"glass-card p-4 border-l-4 border-primary bg-primary/5 mt-4",children:a.jsxs("p",{className:"text-foreground text-sm",children:[a.jsx("strong",{children:"Pro tip:"})," Start with default VAD settings and adjust based on real call testing. Increase endpoint sensitivity if callers get cut off, decrease if responses feel slow."]})})]})]})]}),"assistant-settings":a.jsxs("div",{className:"space-y-8",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("h1",{className:"text-4xl font-bold text-foreground",children:"Assistant Settings"}),a.jsx("p",{className:"text-xl text-muted-foreground",children:"Configure your AI assistant's behavior and capabilities"})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"General Settings"}),a.jsxs("div",{className:"glass-card p-6 space-y-4",children:[a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground",children:"Assistant Name"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:"Give your assistant a descriptive name for easy identification."})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground",children:"Language"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:"Select the primary language for your assistant's conversations."})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground",children:"Timezone"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:"Set the timezone for scheduling and time-based features."})]})]})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Prompt Configuration"}),a.jsxs("div",{className:"glass-card p-6 space-y-4",children:[a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground",children:"System Prompt"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:"Define the assistant's personality, knowledge, and behavior guidelines. This is the core instruction set that shapes how your AI responds."})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground",children:"Initial Message"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:"Set the first message your assistant says when answering or making a call."})]})]})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Available Tools"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[{title:"Transfer Call",desc:"Route calls to human agents or other departments"},{title:"End Call",desc:"Gracefully terminate conversations when complete"},{title:"Schedule Appointment",desc:"Book meetings directly from the call"},{title:"Send SMS",desc:"Trigger text message follow-ups"},{title:"Webhook",desc:"Send data to external systems in real-time"},{title:"Knowledge Base",desc:"Reference documents to answer questions"}].map(e=>a.jsxs("div",{className:"glass-card p-4",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:e.title}),a.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:e.desc})]},e.title))})]})]}),"voice-settings":a.jsxs("div",{className:"space-y-8",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("h1",{className:"text-4xl font-bold text-foreground",children:"Voice Settings"}),a.jsx("p",{className:"text-xl text-muted-foreground",children:"Choose and customize the voice for your AI assistant"})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Voice Selection"}),a.jsxs("div",{className:"glass-card p-6 space-y-4",children:[a.jsx("p",{className:"text-muted-foreground",children:"SmartCaller offers a variety of natural-sounding voices. You can:"}),a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2",children:[a.jsx("li",{children:"• Choose from our library of pre-built voices"}),a.jsx("li",{children:"• Clone your own voice using audio samples"}),a.jsx("li",{children:"• Adjust voice parameters like speed and tone"})]})]})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Voice Parameters"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[{title:"Speech Speed",desc:"Adjust how fast the AI speaks (0.5x to 2x)"},{title:"Stability",desc:"Control voice consistency across responses"},{title:"Clarity",desc:"Enhance speech clarity for better understanding"},{title:"Style",desc:"Add emotional expressiveness to the voice"}].map(e=>a.jsxs("div",{className:"glass-card p-4",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:e.title}),a.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:e.desc})]},e.title))})]})]}),"phone-number-types":a.jsxs("div",{className:"space-y-8",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("h1",{className:"text-4xl font-bold text-foreground",children:"Types of Phone Numbers"}),a.jsx("p",{className:"text-xl text-muted-foreground",children:"SmartCaller lets you connect three different kinds of phone numbers to your AI assistant"})]}),a.jsx("div",{className:"space-y-6",children:[{title:"1. Normal (Dedicated) Numbers",
452items:["Rented directly from SmartCaller","Can be used for both inbound and outbound calls","Typically charged as a monthly rental, with the ability to handle multiple parallel calls on a single number"]},{title:"2. SIP Integration (VOIP/PBX)",items:["Connect an existing VOIP or PBX number via SIP","This setup allows you to keep your existing numbers while benefiting from SmartCaller's AI","Works for both inbound and outbound","You can configure this directly in your dashboard under Phone Numbers"]},{title:"3. Caller ID (Outbound Only)",items:["When you already have a phone number (e.g., your personal or business line) but don't want to port it or integrate via SIP","You verify ownership (via OTP or a short call) so that number can appear on people's caller ID","Inbound calls won't be answered by the AI if you use Caller ID alone—it only masks the AI's outbound calls"]}].map(e=>a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("h3",{className:"font-semibold text-foreground text-lg mb-3",children:e.title}),a.jsx("ul",{className:"text-muted-foreground text-sm space-y-2",children:e.items.map((t,n)=>a.jsxs("li",{children:["• ",t]},n))})]},e.title))}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Choosing the Right Option"}),a.jsx("div",{className:"glass-card p-6",children:a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2",children:[a.jsxs("li",{children:["• If you need ",a.jsx("strong",{className:"text-foreground",children:"inbound"})," and you don't already have a VOIP solution, consider renting a dedicated number."]}),a.jsxs("li",{children:["• If you have an established ",a.jsx("strong",{className:"text-foreground",children:"PBX"})," or VOIP provider, use ",a.jsx("strong",{className:"text-foreground",children:"SIP integration"}),"."]}),a.jsxs("li",{children:["• If you just want to do ",a.jsx("strong",{className:"text-foreground",children:"outbound"})," calls showing your existing phone line, pick ",a.jsx("strong",{className:"text-foreground",children:"Caller ID"}),"."]})]})})]})]}),"campaigns-overview":a.jsxs("div",{className:"space-y-8",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("h1",{className:"text-4xl font-bold text-foreground",children:"Campaigns Overview"}),a.jsx("p",{className:"text-xl text-muted-foreground",children:"Automate calls to multiple leads using your AI assistant"})]}),a.jsx("p",{className:"text-muted-foreground",children:"Campaigns enable you to automate calls to multiple leads using your AI assistant. Set up scheduling, retry logic, and lead management to run efficient outbound calling operations."}),a.jsxs("div",{className:"space-y-6",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"What is a Campaign?"}),a.jsx("p",{className:"text-muted-foreground",children:"A campaign is an automated system that calls multiple leads on your behalf using a configured AI assistant. Each campaign includes:"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[{icon:Ql,title:"Lead Management",desc:"Primary and secondary contacts for comprehensive outreach. Import leads from CSV, integrations, or add manually."},{icon:np,title:"Scheduling Control",desc:"Time and day restrictions to respect customer preferences. Set allowed calling hours and days of the week."},{icon:D1,title:"Retry Logic",desc:"Intelligent retry system for unanswered calls. Configure retry attempts, intervals, and conditions."},{icon:F1,title:"Goal Tracking",desc:"Success measurement with completion variables. Track campaign objectives and lead conversion."}].map(e=>a.jsxs("div",{className:"glass-card p-4",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[a.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center",children:a.jsx(e.icon,{className:"w-4 h-4 text-primary"})}),a.jsx("h4",{className:"font-semibold text-foreground",children:e.title})]}),a.jsx("p",{className:"text-muted-foreground text-sm",children:e.desc})]},e.title))})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Qu
452ick Start"}),a.jsx("div",{className:"space-y-3",children:[{step:1,title:"Create Campaign",desc:"Choose a name and select your AI assistant"},{step:2,title:"Set Schedule",desc:"Define allowed calling hours and days"},{step:3,title:"Configure Retries",desc:"Set retry attempts and intervals"},{step:4,title:"Add Leads",desc:"Import from CSV or add manually"},{step:5,title:"Start Campaign",desc:"Click start when ready to begin calling"}].map(e=>a.jsxs("div",{className:"flex items-start gap-4 glass-card p-4",children:[a.jsx("div",{className:"w-8 h-8 rounded-full bg-primary flex items-center justify-center text-primary-foreground font-bold text-sm shrink-0",children:e.step}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-foreground",children:e.title}),a.jsx("p",{className:"text-muted-foreground text-sm",children:e.desc})]})]},e.step))})]})]}),"campaign-status":a.jsxs("div",{className:"space-y-8",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("h1",{className:"text-4xl font-bold text-foreground",children:"Campaign Status"}),a.jsx("p",{className:"text-xl text-muted-foreground",children:"Understanding campaign states and lead tracking"})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Campaign States"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[{icon:P1,status:"Draft",desc:"Campaign is being configured but not yet active. Add leads and configure settings.",color:"text-muted-foreground"},{icon:sp,status:"In Progress",desc:"Campaign is actively making calls according to your schedule and retry settings.",color:"text-accent"},{icon:M1,status:"Paused",desc:"Campaign is temporarily stopped. Can be resumed without losing progress.",color:"text-muted-foreground"},{icon:zy,status:"Completed",desc:"All leads have been successfully contacted or marked complete.",color:"text-primary"}].map(e=>a.jsxs("div",{className:"glass-card p-4",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[a.jsx(e.icon,{className:ve("w-5 h-5",e.color)}),a.jsx("h4",{className:"font-semibold text-foreground",children:e.status})]}),a.jsx("p",{className:"text-muted-foreground text-sm",children:e.desc})]},e.status))})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Lead Status Tracking"}),a.jsx("p",{className:"text-muted-foreground",children:"Monitor individual lead progress through the campaign:"}),a.jsx("div",{className:"glass-card p-6",children:a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2",children:[a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Created:"})," Ready to be called"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Scheduled:"})," Queued for next call attempt"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Processing:"})," Currently being called"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Completed:"})," Successfully contacted or goal achieved"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Rescheduled:"})," Scheduled for retry attempt"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Max Retries:"})," Reached maximum retry attempts"]})]})})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Call Results"}),a.jsx("p",{className:"text-muted-foreground",children:"Individual call outcomes with detailed status:"}),a.jsx("div",{className:"glass-card p-6",children:a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2",children:[a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Initiated:"})," Call started"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Ringing:"})," Phone is ringing"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"In Progress:"})," Call connected and active"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Completed:"})," Call finished successfully"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Busy:"})," Line was busy"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Unanswered:"})," No one answered"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Failed:"})," Technical issue prevented call"]})]})})]})]}),"retry-system":a.jsxs("div",{className:"space-y-8",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("h1",{className:"text-4xl font-bold text-foreground",children:"Retry System"}),a.jsx("p",{className:"text-xl text-muted-foreground",children:"Configure intelligent retry logic for unanswered calls"})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Retry Configuration"}),a.jsx("div",{className:"space-y-4",children:[{title:"Max Retries",desc:"1-5 attempts for unanswered calls (default: 3)"},{title:"Retry Interval",desc:"10-4320 minutes between attempts (default: 60 minutes)"},{title:"Retry on Voicemail",desc:"Continue calling until human answers"},{title:"Goal-based Retry",desc:"Keep calling until objective is achieved (requires post-call variables with boolean type)"}].map(e=>a.jsxs("div",{className:"glass-card p-4",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:e.title}),a.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:e.desc})]},e.title))})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Scheduling & Timing"}),a.jsx("div",{className:"glass-card p-6",children:a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-2",children:[a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Allowed calling hours:"})," Set start and end times (e.g., 9:00 AM - 6:00 PM)"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Allowed days:"})," Choose specific days of the week for calling"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Timezone support:"})," Uses assistant's configured timezone"]}),a.jsxs("li",{children:["• ",a.jsx("strong",{className:"text-foreground",children:"Call window validation:"})," System automatically respects time restrictions"]})]})})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Troubleshooting"}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"glass-card p-4 border-l-4 border-yellow-500",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:"Campaign won't start:"}),a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-1 mt-2",children:[a.jsx("li",{children:"• Check if assistant has phone number configured"}),a.jsx("li",{children:"• Verify sufficient account balance"}),a.jsx("li",{children:"• Ensure leads are added to campaign"})]})]}),a.jsxs("div",{className:"glass-card p-4 border-l-4 border-yellow-500",children:[a.jsx("h4",{className:"font-semibold text-foreground",children:"No calls being made:"}),a.jsxs("ul",{className:"text-muted-foreground text-sm space-y-1 mt-2",children:[a.jsx("li",{children:"• Wait 10-15 minutes after starting - campaigns take time to initialize"}),a.jsx("li",{children:"• Check if current time is within allowed calling hours"}),a.jsx("li",{children:"• Verify allowed days include current day"}),a.jsx("li",{children:"• Confirm leads have valid phone numbers"})]})]})]})]}),a.jsx("div",{className:"glass-card p-4 border-l-4 border-primary bg-primary/5",children:a.jsxs("p",{className:"text-foreground text-sm",children:[a.jsx("strong",{children:"Best Practice:"})," Start with conservative retry settings and adjust based on campaign performance and customer feedback."]})})]}),"why-choose":a.jsxs("div",{className:"space-y-8",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("h1",{className:"text-4xl font-bold text-foreground",children:"Why Choose SmartCaller?"}),a.jsx("p",{className:"text-xl text-muted-foreground",children:"The leading AI voice automation platform for businesses"})]}),a.jsx("div",{className:"space-y-6",children:a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[{title:"Real-Time Phone Call Automation",desc:"The AI transcribes, understands, and responds live, just like a human agent."},{title:"Multiple Language & Voice Options",desc:"Built-in library or custom voice cloning, plus support for many languages."}
452,{title:"Easy Setup",desc:"Create your first assistant in minutes. Testing and iterating are straightforward."},{title:"No-Code Automation",desc:"Build powerful workflows without writing code using our visual editor."},{title:"Enterprise Ready",desc:"Scalable infrastructure that grows with your business needs."},{title:"24/7 Support",desc:"Our team is always available to help you succeed."}].map(e=>a.jsxs("div",{className:"glass-card p-6",children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center mb-4",children:a.jsx(zy,{className:"w-6 h-6 text-primary"})}),a.jsx("h4",{className:"font-semibold text-foreground text-lg",children:e.title}),a.jsx("p",{className:"text-muted-foreground mt-2",children:e.desc})]},e.title))})}),a.jsxs("div",{className:"glass-card p-8 text-center",children:[a.jsx("h3",{className:"text-2xl font-bold text-foreground mb-4",children:"Ready to get started?"}),a.jsx("p",{className:"text-muted-foreground mb-6",children:"Create your free account and start automating your phone calls today."}),a.jsxs("a",{href:"https://app.smartcallerlive.ai/register",className:"inline-flex items-center gap-2 px-6 py-3 bg-primary text-primary-foreground rounded-xl font-semibold hover:bg-primary/90 transition-colors",children:["Get Started Free",a.jsx(Vr,{className:"w-4 h-4"})]})]})]})},j6=()=>{const e=Yr(),[t,n]=y.useState("overview"),[r,s]=y.useState(Ml.map(l=>l.title));y.useEffect(()=>{const l=e.hash.replace("#","");l&&nh[l]&&n(l)},[e.hash]);const i=l=>{s(c=>c.includes(l)?c.filter(u=>u!==l):[...c,l])},o=l=>{n(l),window.history.replaceState(null,"",`#${l}`),window.scrollTo({top:0,behavior:"smooth"})};return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx(ho,{}),a.jsx("div",{className:"pt-20 md:pt-24",children:a.jsxs("div",{className:"flex",children:[a.jsx("aside",{className:"hidden lg:block w-72 shrink-0 border-r border-border sticky top-20 h-[calc(100vh-5rem)] overflow-hidden",children:a.jsx(em,{className:"h-full py-6 px-4",children:a.jsx("nav",{className:"space-y-6",children:Ml.map(l=>a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>i(l.title),className:"flex items-center justify-between w-full text-left text-sm font-semibold text-foreground/70 mb-2 hover:text-foreground transition-colors",children:[l.title,r.includes(l.title)?a.jsx(za,{className:"w-4 h-4"}):a.jsx(_1,{className:"w-4 h-4"})]}),r.includes(l.title)&&a.jsx("div",{className:"space-y-1 ml-1",children:l.items.map(c=>a.jsxs("button",{onClick:()=>o(c.id),className:ve("flex items-center gap-2 w-full px-3 py-2 rounded-lg text-sm transition-all duration-200",t===c.id?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:bg-muted hover:text-foreground"),children:[a.jsx(c.icon,{className:"w-4 h-4 shrink-0"}),a.jsx("span",{className:"truncate",children:c.label})]},c.id))})]},l.title))})})}),a.jsx("div",{className:"lg:hidden fixed bottom-0 left-0 right-0 bg-background/95 backdrop-blur-xl border-t border-border z-40 p-2",children:a.jsx(em,{className:"w-full",children:a.jsx("div",{className:"flex gap-2 px-2 pb-safe",children:Ml.flatMap(l=>l.items).slice(0,6).map(l=>a.jsxs("button",{onClick:()=>o(l.id),className:ve("flex flex-col items-center gap-1 px-3 py-2 rounded-lg text-xs shrink-0 transition-all",t===l.id?"bg-primary/10 text-primary":"text-muted-foreground"),children:[a.jsx(l.icon,{className:"w-5 h-5"}),a.jsx("span",{className:"truncate max-w-[60px]",children:l.label.split(" ")[0]})]},l.id))})})}),a.jsx("main",{className:"flex-1 min-w-0 pb-24 lg:pb-12",children:a.jsx("div",{className:"container max-w-4xl mx-auto px-4 py-8 md:py-12",children:a.jsx(J.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},children:nh[t]||nh.overview},t)})}),a.jsx("aside",{className:"hidden xl:block w-56 shrink-0 sticky top-20 h-[calc(100vh-5rem)] overflow-hidden",children:a.jsxs("div",{className:"py-6 px-4",children:[a.jsx("h4",{className:"text-sm font-semibold text-foreground/70 mb-4",children:"On this page"}),a.jsx("nav",{className:"space-y-2 text-sm",children:Ml.flatMap(l=>l.items).map(l=>a.jsx("button",{onClick:()=>o(l.id),className:ve("block w-full text-left truncate py-1 transition-colors",t===l.id?"text-primary font-medium":"text-muted-foreground hover:text-foreground"),children:l.label},l.id))})]})})]})}),a.jsx(po,{})]})},N6=()=>{const e=Yr();return y.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),a.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:a.jsxs("div",{className:"text-center",children:[a.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),a.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),a.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},C6=new oI,E6=()=>a.jsx(lI,{client:C6,children:a.jsxs(LR,{children:[a.jsx(vA,{}),a.jsx(QA,{}),a.jsxs(iO,{children:[a.jsx(cO,{}),a.jsxs(JI,{children:[a.jsx(dr,{path:"/",element:a.jsx(s6,{})}),a.jsx(dr,{path:"/languages",element:a.jsx(i6,{})}),a.jsx(dr,{path:"/terms",element:a.jsx(o6,{})}),a.jsx(dr,{path:"/privacy",element:a.jsx(a6,{})}),a.jsx(dr,{path:"/contact",element:a.jsx(l6,{})}),a.jsx(dr,{path:"/platform-guide",element:a.jsx(j6,{})}),a.jsx(dr,{path:"*",element:a.jsx(N6,{})})]})]})]})});Jb(document.getElementById("root")).render(a.jsx(E6,{}));

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.