vendor: 4,209 bytes, lines 1-9
1var YA=Object.defineProperty;var _g=e=>{throw TypeError(e)};var JA=(e,t,n)=>t in e?YA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ln=(e,t,n)=>JA(e,typeof t!="symbol"?t+"":t,n),td=(e,t,n)=>t.has(e)||_g("Cannot "+n);var I=(e,t,n)=>(td(e,t,"read from private field"),n?n.call(e):t.get(e)),ie=(e,t,n)=>t.has(e)?_g("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Q=(e,t,n,r)=>(td(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ge=(e,t,n)=>(td(e,t,"access private method"),n);var sl=(e,t,n,r)=>({set _(s){Q(e,t,s,n)},get _(){return I(e,t,r)}});function QA(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 a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).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 Lo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Q0={exports:{}},ou={},X0={exports:{}},te={};/** 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 Mo=Symbol.for("react.element"),XA=Symbol.for("react.portal"),ZA=Symbol.for("react.fragment"),eE=Symbol.for("react.strict_mode"),tE=Symbol.for("react.profiler"),nE=Symbol.for("react.provider"),rE=Symbol.for("react.context"),sE=Symbol.for("react.forward_ref"),iE=Symbol.for("react.suspense"),aE=Symbol.for("react.memo"),oE=Symbol.for("react.lazy"),Ig=Symbol.iterator;function lE(e){return e===null||typeof e!="object"?null:(e=Ig&&e[Ig]||e["@@iterator"],typeof e=="function"?e:null)}var Z0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},eb=Object.assign,tb={};function qi(e,t,n){this.props=e,this.context=t,this.refs=tb,this.updater=n||Z0}qi.prototype.isReactComponent={};qi.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")};qi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nb(){}nb.prototype=qi.prototype;function vp(e,t,n){this.props=e,this.context=t,this.refs=tb,this.updater=n||Z0}var bp=vp.prototype=new nb;bp.constructor=vp;eb(bp,qi.prototype);bp.isPureReactComponent=!0;var Pg=Array.isArray,rb=Object.prototype.hasOwnProperty,wp={current:null},sb={key:!0,ref:!0,__self:!0,__source:!0};function ib(e,t,n){var r,s={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)rb.call(t,r)&&!sb.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:Mo,type:e,key:i,ref:a,props:s,_owner:wp.current}}function cE(e,t){return{$$typeof:Mo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function kp(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mo}function uE(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Rg=/\/+/g;
vendor: 4,880 bytes, lines 9-17
9function nd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?uE(""+e.key):t.toString(36)}function Bl(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Mo:case XA:a=!0}}if(a)return a=e,s=s(a),e=r===""?"."+nd(a,0):r,Pg(s)?(n="",e!=null&&(n=e.replace(Rg,"$&/")+"/"),Bl(s,t,n,"",function(u){return u})):s!=null&&(kp(s)&&(s=cE(s,n+(!s.key||a&&a.key===s.key?"":(""+s.key).replace(Rg,"$&/")+"/")+e)),t.push(s)),1;if(a=0,r=r===""?".":r+":",Pg(e))for(var l=0;l<e.length;l++){i=e[l];var c=r+nd(i,l);a+=Bl(i,t,n,c,s)}else if(c=lE(e),typeof c=="function")for(e=c.call(e),l=0;!(i=e.next()).done;)i=i.value,c=r+nd(i,l++),a+=Bl(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 a}function il(e,t,n){if(e==null)return e;var r=[],s=0;return Bl(e,r,"","",function(i){return t.call(n,i,s++)}),r}function dE(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 lt={current:null},Ul={transition:null},hE={ReactCurrentDispatcher:lt,ReactCurrentBatchConfig:Ul,ReactCurrentOwner:wp};function ab(){throw Error("act(...) is not supported in production builds of React.")}te.Children={map:il,forEach:function(e,t,n){il(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return il(e,function(){t++}),t},toArray:function(e){return il(e,function(t){return t})||[]},only:function(e){if(!kp(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};te.Component=qi;te.Fragment=ZA;te.Profiler=tE;te.PureComponent=vp;te.StrictMode=eE;te.Suspense=iE;te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hE;te.act=ab;te.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=eb({},e.props),s=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=wp.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)rb.call(t,c)&&!sb.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:Mo,type:e.type,key:s,ref:i,props:r,_owner:a}};te.createContext=function(e){return e={$$typeof:rE,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:nE,_context:e},e.Consumer=e};te.createElement=ib;te.createFactory=function(e){var t=ib.bind(null,e);return t.type=e,t};te.createRef=function(){return{current:null}};te.forwardRef=function(e){return{$$typeof:sE,render:e}};te.isValidElement=kp;te.lazy=function(e){return{$$typeof:oE,_payload:{_status:-1,_result:e},_init:dE}};te.memo=function(e,t){return{$$typeof:aE,type:e,compare:t===void 0?null:t}};te.startTransition=function(e){var t=Ul.transition;Ul.transition={};try{e()}finally{Ul.transition=t}};te.unstable_act=ab;te.useCallback=function(e,t){return lt.current.useCallback(e,t)};te.useContext=function(e){return lt.current.useContext(e)};te.useDebugValue=function(){};te.useDeferredValue=function(e){return lt.current.useDeferredValue(e)};te.useEffect=function(e,t){return lt.current.useEffect(e,t)};te.useId=function(){return lt.current.useId()};te.useImperativeHandle=function(e,t,n){return lt.current.useImperativeHandle(e,t,n)};te.useInsertionEffect=function(e,t){return lt.current.useInsertionEffect(e,t)};te.useLayoutEffect=function(e,t){return lt.current.useLayoutEffect(e,t)};te.useMemo=function(e,t){return lt.current.useMemo(e,t)};te.useReducer=function(e,t,n){return lt.current.useReducer(e,t,n)};te.useRef=function(e){return lt.current.useRef(e)};te.useState=function(e){return lt.current.useState(e)};te.useSyncExternalStore=function(e,t,n){return lt.current.useSyncExternalStore(e,t,n)};te.useTransition=function(){return lt.current.useTransition()};te.version="18.3.1";X0.exports=te;var w=X0.exports;const _=Lo(w),Sp=QA({__proto__:null,default:_},[w]);/** 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 fE=w,pE=Symbol.for("react.element"),mE=Symbol.for("react.fragment"),gE=Object.prototype.hasOwnProperty,yE=fE.__SECRET_INT
vendor: 11,418 bytes, lines 17-34
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xE={key:!0,ref:!0,__self:!0,__source:!0};function ob(e,t,n){var r,s={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)gE.call(t,r)&&!xE.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:pE,type:e,key:i,ref:a,props:s,_owner:yE.current}}ou.Fragment=mE;ou.jsx=ob;ou.jsxs=ob;Q0.exports=ou;var o=Q0.exports,lb={exports:{}},At={},cb={exports:{}},ub={};/** 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(T,P){var $=T.length;T.push(P);e:for(;0<$;){var Y=$-1>>>1,W=T[Y];if(0<s(W,P))T[Y]=P,T[$]=W,$=Y;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var P=T[0],$=T.pop();if($!==P){T[0]=$;e:for(var Y=0,W=T.length,ee=W>>>1;Y<ee;){var ne=2*(Y+1)-1,Ce=T[ne],qe=ne+1,oe=T[qe];if(0>s(Ce,$))qe<W&&0>s(oe,Ce)?(T[Y]=oe,T[qe]=$,Y=qe):(T[Y]=Ce,T[ne]=$,Y=ne);else if(qe<W&&0>s(oe,$))T[Y]=oe,T[qe]=$,Y=qe;else break e}}return P}function s(T,P){var $=T.sortIndex-P.sortIndex;return $!==0?$:T.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],u=[],d=1,h=null,f=3,p=!1,x=!1,y=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(T){for(var P=n(u);P!==null;){if(P.callback===null)r(u);else if(P.startTime<=T)r(u),P.sortIndex=P.expirationTime,t(c,P);else break;P=n(u)}}function k(T){if(y=!1,v(T),!x)if(n(c)!==null)x=!0,q(S);else{var P=n(u);P!==null&&V(k,P.startTime-T)}}function S(T,P){x=!1,y&&(y=!1,g(E),E=-1),p=!0;var $=f;try{for(v(P),h=n(c);h!==null&&(!(h.expirationTime>P)||T&&!z());){var Y=h.callback;if(typeof Y=="function"){h.callback=null,f=h.priorityLevel;var W=Y(h.expirationTime<=P);P=e.unstable_now(),typeof W=="function"?h.callback=W:h===n(c)&&r(c),v(P)}else r(c);h=n(c)}if(h!==null)var ee=!0;else{var ne=n(u);ne!==null&&V(k,ne.startTime-P),ee=!1}return ee}finally{h=null,f=$,p=!1}}var j=!1,A=null,E=-1,N=5,R=-1;function z(){return!(e.unstable_now()-R<N)}function D(){if(A!==null){var T=e.unstable_now();R=T;var P=!0;try{P=A(!0,T)}finally{P?K():(j=!1,A=null)}}else j=!1}var K;if(typeof m=="function")K=function(){m(D)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,Z=M.port2;M.port1.onmessage=D,K=function(){Z.postMessage(null)}}else K=function(){b(D,0)};function q(T){A=T,j||(j=!0,K())}function V(T,P){E=b(function(){T(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_continueExecution=function(){x||p||(x=!0,q(S))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(T){switch(f){case 1:case 2:case 3:var P=3;break;default:P=f}var $=f;f=P;try{return T()}finally{f=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,P){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var $=f;f=T;try{return P()}finally{f=$}},e.unstable_scheduleCallback=function(T,P,$){var Y=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?Y+$:Y):$=Y,T){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=$+W,T={id:d++,callback:P,priorityLevel:T,startTime:$,expirationTime:W,sortIndex:-1},$>Y?(T.sortIndex=$,t(u,T),n(c)===null&&T===n(u)&&(y?(g(E),E=-1):y=!0,V(k,$-Y))):(T.sortIndex=W,t(c,T),x||p||(x=!0,q(S))),T},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(T){var P=f;return function(){var $=f;f=P;try{return T.apply(this,arguments)}finally{f=$}}}})(ub);cb.exports=ub;var vE=cb.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 bE=w,St=vE;function O(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 db=new Set,Qa={};function _s(e,t){Di(e,t),Di(e+"Capture",t)}function Di(e,t){for(Qa[e]=t,e=0;e<t.length;e++)db.add(t[e])}var Yn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bh=Object.prototype.hasOwnProperty,wE=/^[: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]*$/,Og={},Dg={};function kE(e){return bh.call(Dg,e)?!0:bh.call(Og,e)?!1:wE.test(e)?Dg[e]=!0:(Og[e]=!0,!1)}function SE(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 jE(e,t,n,r){if(t===null||typeof t>"u"||SE(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 ct(e,t,n,r,s,i,a){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=a}var Ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ke[e]=new ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ke[t]=new ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ke[e]=new ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ke[e]=new ct(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){Ke[e]=new ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ke[e]=new ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ke[e]=new ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ke[e]=new ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ke[e]=new ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var jp=/[\-:]([a-z])/g;function Ap(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(jp,Ap);Ke[t]=new ct(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(jp,Ap);Ke[t]=new ct(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(jp,Ap);Ke[t]=new ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ke[e]=new ct(e,1,!1,e.toLowerCase(),null,!1,!1)});Ke.xlinkHref=new ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ke[e]=new ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ep(e,t,n,r){var s=Ke.hasOwnProperty(t)?Ke[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(jE(t,n,s,r)&&(n=null),r||s===null?kE(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var nr=bE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,al=Symbol.for("react.element"),Qs=Symbol.for("react.portal"),Xs=Symbol.for("react.fragment"),Tp=Symbol.for("react.strict_mode"),wh=Symbol.for("react.profiler"),hb=Symbol.for("react.provider"),fb=Symbol.for("react.context"),Np=Symbol.for("react.forward_ref"),kh=Symbol.for("react.suspense"),Sh=Symbol.for("react.suspense_list"),Cp=Symbol.for("react.memo"),mr=Symbol.for("react.lazy"),pb=Symbol.for("react.offscreen"),Lg=Symbol.iterator;function la(e){return e===null||typeof e!="object"?null:(e=Lg&&e[Lg]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Object.assign,rd;function ja(e){if(rd===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);rd=t&&t[1]||""}return` 34`+rd+e}var sd=!1;function id(e,t){if(!e||sd)return"";sd=!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: 15,597 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`),a=s.length-1,l=i.length-1;1<=a&&0<=l&&s[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(s[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||s[a]!==i[l]){var c=` 37`+s[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=l);break}}}finally{sd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ja(e):""}function AE(e){switch(e.tag){case 5:return ja(e.type);case 16:return ja("Lazy");case 13:return ja("Suspense");case 19:return ja("SuspenseList");case 0:case 2:case 15:return e=id(e.type,!1),e;case 11:return e=id(e.type.render,!1),e;case 1:return e=id(e.type,!0),e;default:return""}}function jh(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 Xs:return"Fragment";case Qs:return"Portal";case wh:return"Profiler";case Tp:return"StrictMode";case kh:return"Suspense";case Sh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fb:return(e.displayName||"Context")+".Consumer";case hb:return(e._context.displayName||"Context")+".Provider";case Np:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cp:return t=e.displayName||null,t!==null?t:jh(e.type)||"Memo";case mr:t=e._payload,e=e._init;try{return jh(e(t))}catch{}}return null}function EE(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 jh(t);case 8:return t===Tp?"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 Fr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function TE(e){var t=mb(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(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ol(e){e._valueTracker||(e._valueTracker=TE(e))}function gb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mb(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function dc(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 Ah(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Mg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Fr(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 yb(e,t){t=t.checked,t!=null&&Ep(e,"checked",t,!1)}function Eh(e,t){yb(e,t);var n=Fr(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")?Th(e,t.type,n):t.hasOwnProperty("defaultValue")&&Th(e,t.type,Fr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $g(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 Th(e,t,n){(t!=="number"||dc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Aa=Array.isArray;function mi(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Fr(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 Nh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return Se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Fg(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(Aa(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Fr(n)}}function xb(e,t){var n=Fr(t.value),r=Fr(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 Bg(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function vb(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 Ch(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?vb(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ll,bb=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(ll=ll||document.createElement("div"),ll.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ll.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pa={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},NE=["Webkit","ms","Moz","O"];Object.keys(Pa).forEach(function(e){NE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pa[t]=Pa[e]})});function wb(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Pa.hasOwnProperty(e)&&Pa[e]?(""+t).trim():t+"px"}function kb(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=wb(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var CE=Se({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 _h(e,t){if(t){if(CE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Ih(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 _p(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rh=null,gi=null,yi=null;function Ug(e){if(e=Bo(e)){if(typeof Rh!="function")throw Error(O(280));var t=e.stateNode;t&&(t=hu(t),Rh(e.stateNode,e.type,t))}}function Sb(e){gi?yi?yi.push(e):yi=[e]:gi=e}function jb(){if(gi){var e=gi,t=yi;if(yi=gi=null,Ug(e),t)for(e=0;e<t.length;e++)Ug(t[e])}}function Ab(e,t){return e(t)}function Eb(){}var ad=!1;function Tb(e,t,n){if(ad)return e(t,n);ad=!0;try{return Ab(e,t,n)}finally{ad=!1,(gi!==null||yi!==null)&&(Eb(),jb())}}function Za(e,t){var n=e.stateNode;if(n===null)return null;var r=hu(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(O(231,t,typeof n));return n}var Oh=!1;if(Yn)try{var ca={};Object.defineProperty(ca,"passive",{get:function(){Oh=!0}}),window.addEventListener("test",ca,ca),window.removeEventListener("test",ca,ca)}catch{Oh=!1}function _E(e,t,n,r,s,i,a,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Ra=!1,hc=null,fc=!1,Dh=null,IE={onError:function(e){Ra=!0,hc=e}};function PE(e,t,n,r,s,i,a,l,c){Ra=!1,hc=null,_E.apply(IE,arguments)}function RE(e,t,n,r,s,i,a,l,c){if(PE.apply(this,arguments),Ra){if(Ra){var u=hc;Ra=!1,hc=null}else throw Error(O(198));fc||(fc=!0,Dh=u)}}function Is(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 Nb(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 zg(e){if(Is(e)!==e)throw Error(O(188))}function OE(e){var t=e.alternate;if(!t){if(t=Is(e),t===null)throw Error(O(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 zg(s),e;if(i===r)return zg(s),t;i=i.sibling}throw Error(O(188))}if(n.return!==r.return)n=s,r=i;else{for(var a=!1,l=s.child;l;){if(l===n){a=!0,n=s,r=i;break}if(l===r){a=!0,r=s,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=s;break}if(l===r){a=!0,r=i,n=s;break}l=l.sibling}if(!a)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function Cb(e){return e=OE(e),e!==null?_b(e):null}function _b(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=_b(e);if(t!==null)return t;e=e.sibling}return null}var Ib=St.unstable_scheduleCallback,Vg=St.unstable_cancelCallback,DE=St.unstable_shouldYield,LE=St.unstable_requestPaint,Te=St.unstable_now,ME=St.unstable_getCurrentPriorityLevel,Ip=St.unstable_ImmediatePriority,Pb=St.unstable_UserBlockingPriority,pc=St.unstable_NormalPriority,$E=St.unstable_LowPriority,Rb=St.unstable_IdlePriority,lu=null,Tn=null;function FE(e){if(Tn&&typeof Tn.onCommitFiberRoot=="function")try{Tn.onCommitFiberRoot(lu,e,void 0,(e.current.flags&128)===128)}catch{}}var ln=Math.clz32?Math.clz32:zE,BE=Math.log,UE=Math.LN2;function zE(e){return e>>>=0,e===0?32:31-(BE(e)/UE|0)|0}var cl=64,ul=4194304;function Ea(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 mc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~s;l!==0?r=Ea(l):(i&=a,i!==0&&(r=Ea(i)))}else a=n&~s,a!==0?r=Ea(a):i!==0&&(r=Ea(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-ln(t),s=1<<n,r|=e[n],t&=~s;return r}function VE(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 WE(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-ln(i),l=1<<a,c=s[a];c===-1?(!(l&n)||l&r)&&(s[a]=VE(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}function Lh(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ob(){var e=cl;return cl<<=1,!(cl&4194240)&&(cl=64),e}function od(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $o(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ln(t),e[t]=n}function HE(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-ln(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Pp(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ln(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var ce=0;function Db(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Lb,Rp,Mb,$b,Fb,Mh=!1,dl=[],_r=null,Ir=null,Pr=null,eo=new Map,to=new Map,yr=[],KE="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 Wg(e,t){switch(e){case"focusin":case"focusout":_r=null;break;case"dragenter":case"dragleave":Ir=null;break;case"mouseover":case"mouseout":Pr=null;break;case"pointerover":case"pointerout":eo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":to.delete(t.pointerId)}}function ua(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=Bo(t),t!==null&&Rp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}
vendor: 12,981 bytes, line 37
37function qE(e,t,n,r,s){switch(t){case"focusin":return _r=ua(_r,e,t,n,r,s),!0;case"dragenter":return Ir=ua(Ir,e,t,n,r,s),!0;case"mouseover":return Pr=ua(Pr,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return eo.set(i,ua(eo.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,to.set(i,ua(to.get(i)||null,e,t,n,r,s)),!0}return!1}function Bb(e){var t=ls(e.target);if(t!==null){var n=Is(t);if(n!==null){if(t=n.tag,t===13){if(t=Nb(n),t!==null){e.blockedOn=t,Fb(e.priority,function(){Mb(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 zl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=$h(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=Bo(n),t!==null&&Rp(t),e.blockedOn=n,!1;t.shift()}return!0}function Hg(e,t,n){zl(e)&&n.delete(t)}function GE(){Mh=!1,_r!==null&&zl(_r)&&(_r=null),Ir!==null&&zl(Ir)&&(Ir=null),Pr!==null&&zl(Pr)&&(Pr=null),eo.forEach(Hg),to.forEach(Hg)}function da(e,t){e.blockedOn===t&&(e.blockedOn=null,Mh||(Mh=!0,St.unstable_scheduleCallback(St.unstable_NormalPriority,GE)))}function no(e){function t(s){return da(s,e)}if(0<dl.length){da(dl[0],e);for(var n=1;n<dl.length;n++){var r=dl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(_r!==null&&da(_r,e),Ir!==null&&da(Ir,e),Pr!==null&&da(Pr,e),eo.forEach(t),to.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);)Bb(n),n.blockedOn===null&&yr.shift()}var xi=nr.ReactCurrentBatchConfig,gc=!0;function YE(e,t,n,r){var s=ce,i=xi.transition;xi.transition=null;try{ce=1,Op(e,t,n,r)}finally{ce=s,xi.transition=i}}function JE(e,t,n,r){var s=ce,i=xi.transition;xi.transition=null;try{ce=4,Op(e,t,n,r)}finally{ce=s,xi.transition=i}}function Op(e,t,n,r){if(gc){var s=$h(e,t,n,r);if(s===null)yd(e,t,r,yc,n),Wg(e,r);else if(qE(s,e,t,n,r))r.stopPropagation();else if(Wg(e,r),t&4&&-1<KE.indexOf(e)){for(;s!==null;){var i=Bo(s);if(i!==null&&Lb(i),i=$h(e,t,n,r),i===null&&yd(e,t,r,yc,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else yd(e,t,r,null,n)}}var yc=null;function $h(e,t,n,r){if(yc=null,e=_p(r),e=ls(e),e!==null)if(t=Is(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Nb(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 yc=e,null}function Ub(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(ME()){case Ip:return 1;case Pb:return 4;case pc:case $E:return 16;case Rb:return 536870912;default:return 16}default:return 16}}var Er=null,Dp=null,Vl=null;function zb(){if(Vl)return Vl;var e,t=Dp,n=t.length,r,s="value"in Er?Er.value:Er.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===s[i-r];r++);return Vl=s.slice(e,1<r?1-r:void 0)}function Wl(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 hl(){return!0}function Kg(){return!1}function Et(e){function t(n,r,s,i,a){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=a,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)?hl:Kg,this.isPropagationStopped=Kg,this}return Se(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=hl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=hl)},persist:function(){},isPersistent:hl}),t}var Gi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lp=Et(Gi),Fo=Se({},Gi,{view:0,detail:0}),QE=Et(Fo),ld,cd,ha,cu=Se({},Fo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mp,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!==ha&&(ha&&e.type==="mousemove"?(ld=e.screenX-ha.screenX,cd=e.screenY-ha.screenY):cd=ld=0,ha=e),ld)},movementY:function(e){return"movementY"in e?e.movementY:cd}}),qg=Et(cu),XE=Se({},cu,{dataTransfer:0}),ZE=Et(XE),eT=Se({},Fo,{relatedTarget:0}),ud=Et(eT),tT=Se({},Gi,{animationName:0,elapsedTime:0,pseudoElement:0}),nT=Et(tT),rT=Se({},Gi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sT=Et(rT),iT=Se({},Gi,{data:0}),Gg=Et(iT),aT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oT={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"},lT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lT[e])?!!t[e]:!1}function Mp(){return cT}var uT=Se({},Fo,{key:function(e){if(e.key){var t=aT[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?oT[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mp,charCode:function(e){return e.type==="keypress"?Wl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),dT=Et(uT),hT=Se({},cu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yg=Et(hT),fT=Se({},Fo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mp}),pT=Et(fT),mT=Se({},Gi,{propertyName:0,elapsedTime:0,pseudoElement:0}),gT=Et(mT),yT=Se({},cu,{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}),xT=Et(yT),vT=[9,13,27,32],$p=Yn&&"CompositionEvent"in window,Oa=null;Yn&&"documentMode"in document&&(Oa=document.documentMode);var bT=Yn&&"TextEvent"in window&&!Oa,Vb=Yn&&(!$p||Oa&&8<Oa&&11>=Oa),Jg=" ",Qg=!1;function Wb(e,t){switch(e){case"keyup":return vT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zs=!1;function wT(e,t){switch(e){case"compositionend":return Hb(t);case"keypress":return t.which!==32?null:(Qg=!0,Jg);case"textInput":return e=t.data,e===Jg&&Qg?null:e;default:return null}}function kT(e,t){if(Zs)return e==="compositionend"||!$p&&Wb(e,t)?(e=zb(),Vl=Dp=Er=null,Zs=!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 Vb&&t.locale!=="ko"?null:t.data;default:return null}}var ST={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 Xg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ST[e.type]:t==="textarea"}function Kb(e,t,n,r){Sb(r),t=xc(t,"onChange"),0<t.length&&(n=new Lp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Da=null,ro=null;function jT(e){rw(e,0)}function uu(e){var t=ni(e);if(gb(t))return e}function AT(e,t){if(e==="change")return t}var qb=!1;if(Yn){var dd;if(Yn){var hd="oninput"in document;if(!hd){var Zg=document.createElement("div");Zg.setAttribute("oninput","return;"),hd=typeof Zg.oninput=="function"}dd=hd}else dd=!1;qb=dd&&(!document.documentMode||9<document.documentMode)}function ey(){Da&&(Da.detachEvent("onpropertychange",Gb),ro=Da=null)}function Gb(e){if(e.propertyName==="value"&&uu(ro)){var t=[];Kb(t,ro,e,_p(e)),Tb(jT,t)}}function ET(e,t,n){e==="focusin"?(ey(),Da=t,ro=n,Da.attachEvent("onpropertychange",Gb)):e==="focusout"&&ey()}function TT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return uu(ro)}function NT(e,t){if(e==="click")return uu(t)}function CT(e,t){if(e==="input"||e==="change")return uu(t)}function _T(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hn=typeof Object.is=="function"?Object.is:_T;function so(e,t){if(hn(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(!bh.call(t,s)||!hn(e[s],t[s]))return!1}return!0}function ty(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ny(e,t){var n=ty(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=ty(n)}}function Yb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jb(){for(var e=window,t=dc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=dc(e.document)}return t}function Fp(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 IT(e){var t=Jb(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Yb(n.ownerDocument.documentElement,n)){if(r!==null&&Fp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=ny(n,i);var a=ny(n,r);s&&a&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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 PT=Yn&&"documentMode"in document&&11>=document.documentMode,ei=null,Fh=null,La=null,Bh=!1;function ry(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bh||ei==null||ei!==dc(r)||(r=ei,"selectionStart"in r&&Fp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,352 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),La&&so(La,r)||(La=r,r=xc(Fh,"onSelect"),0<r.length&&(t=new Lp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ei)))}function fl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ti={animationend:fl("Animation","AnimationEnd"),animationiteration:fl("Animation","AnimationIteration"),animationstart:fl("Animation","AnimationStart"),transitionend:fl("Transition","TransitionEnd")},fd={},Qb={};Yn&&(Qb=document.createElement("div").style,"AnimationEvent"in window||(delete ti.animationend.animation,delete ti.animationiteration.animation,delete ti.animationstart.animation),"TransitionEvent"in window||delete ti.transitionend.transition);function du(e){if(fd[e])return fd[e];if(!ti[e])return e;var t=ti[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Qb)return fd[e]=t[n];return e}var Xb=du("animationend"),Zb=du("animationiteration"),ew=du("animationstart"),tw=du("transitionend"),nw=new Map,sy="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 Hr(e,t){nw.set(e,t),_s(t,[e])}for(var pd=0;pd<sy.length;pd++){var md=sy[pd],RT=md.toLowerCase(),OT=md[0].toUpperCase()+md.slice(1);Hr(RT,"on"+OT)}Hr(Xb,"onAnimationEnd");Hr(Zb,"onAnimationIteration");Hr(ew,"onAnimationStart");Hr("dblclick","onDoubleClick");Hr("focusin","onFocus");Hr("focusout","onBlur");Hr(tw,"onTransitionEnd");Di("onMouseEnter",["mouseout","mouseover"]);Di("onMouseLeave",["mouseout","mouseover"]);Di("onPointerEnter",["pointerout","pointerover"]);Di("onPointerLeave",["pointerout","pointerover"]);_s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));_s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));_s("onBeforeInput",["compositionend","keypress","textInput","paste"]);_s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));_s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));_s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ta="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(" "),DT=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ta));function iy(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,RE(r,t,void 0,e),e.currentTarget=null}function rw(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 a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==i&&s.isPropagationStopped())break e;iy(s,l,u),i=c}else for(a=0;a<r.length;a++){if(l=r[a],c=l.instance,u=l.currentTarget,l=l.listener,c!==i&&s.isPropagationStopped())break e;iy(s,l,u),i=c}}}if(fc)throw e=Dh,fc=!1,Dh=null,e}function me(e,t){var n=t[Hh];n===void 0&&(n=t[Hh]=new Set);var r=e+"__bubble";n.has(r)||(sw(t,e,2,!1),n.add(r))}function gd(e,t,n){var r=0;t&&(r|=4),sw(n,e,r,t)}var pl="_reactListening"+Math.random().toString(36).slice(2);function io(e){if(!e[pl]){e[pl]=!0,db.forEach(function(n){n!=="selectionchange"&&(DT.has(n)||gd(n,!1,e),gd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pl]||(t[pl]=!0,gd("selectionchange",!1,t))}}function sw(e,t,n,r){switch(Ub(t)){case 1:var s=YE;break;case 4:s=JE;break;default:s=Op}n=s.bind(null,t,n,e),s=void 0,!Oh||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,098 bytes, line 37
37function yd(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===s||c.nodeType===8&&c.parentNode===s))return;a=a.return}for(;l!==null;){if(a=ls(l),a===null)return;if(c=a.tag,c===5||c===6){r=i=a;continue e}l=l.parentNode}}r=r.return}Tb(function(){var u=i,d=_p(n),h=[];e:{var f=nw.get(e);if(f!==void 0){var p=Lp,x=e;switch(e){case"keypress":if(Wl(n)===0)break e;case"keydown":case"keyup":p=dT;break;case"focusin":x="focus",p=ud;break;case"focusout":x="blur",p=ud;break;case"beforeblur":case"afterblur":p=ud;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":p=qg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=ZE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=pT;break;case Xb:case Zb:case ew:p=nT;break;case tw:p=gT;break;case"scroll":p=QE;break;case"wheel":p=xT;break;case"copy":case"cut":case"paste":p=sT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Yg}var y=(t&4)!==0,b=!y&&e==="scroll",g=y?f!==null?f+"Capture":null:f;y=[];for(var m=u,v;m!==null;){v=m;var k=v.stateNode;if(v.tag===5&&k!==null&&(v=k,g!==null&&(k=Za(m,g),k!=null&&y.push(ao(m,k,v)))),b)break;m=m.return}0<y.length&&(f=new p(f,x,null,n,d),h.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==Ph&&(x=n.relatedTarget||n.fromElement)&&(ls(x)||x[Jn]))break e;if((p||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,p?(x=n.relatedTarget||n.toElement,p=u,x=x?ls(x):null,x!==null&&(b=Is(x),x!==b||x.tag!==5&&x.tag!==6)&&(x=null)):(p=null,x=u),p!==x)){if(y=qg,k="onMouseLeave",g="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(y=Yg,k="onPointerLeave",g="onPointerEnter",m="pointer"),b=p==null?f:ni(p),v=x==null?f:ni(x),f=new y(k,m+"leave",p,n,d),f.target=b,f.relatedTarget=v,k=null,ls(d)===u&&(y=new y(g,m+"enter",x,n,d),y.target=v,y.relatedTarget=b,k=y),b=k,p&&x)t:{for(y=p,g=x,m=0,v=y;v;v=Bs(v))m++;for(v=0,k=g;k;k=Bs(k))v++;for(;0<m-v;)y=Bs(y),m--;for(;0<v-m;)g=Bs(g),v--;for(;m--;){if(y===g||g!==null&&y===g.alternate)break t;y=Bs(y),g=Bs(g)}y=null}else y=null;p!==null&&ay(h,f,p,y,!1),x!==null&&b!==null&&ay(h,b,x,y,!0)}}e:{if(f=u?ni(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var S=AT;else if(Xg(f))if(qb)S=CT;else{S=TT;var j=ET}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(S=NT);if(S&&(S=S(e,u))){Kb(h,S,n,d);break e}j&&j(e,f,u),e==="focusout"&&(j=f._wrapperState)&&j.controlled&&f.type==="number"&&Th(f,"number",f.value)}switch(j=u?ni(u):window,e){case"focusin":(Xg(j)||j.contentEditable==="true")&&(ei=j,Fh=u,La=null);break;case"focusout":La=Fh=ei=null;break;case"mousedown":Bh=!0;break;case"contextmenu":case"mouseup":case"dragend":Bh=!1,ry(h,n,d);break;case"selectionchange":if(PT)break;case"keydown":case"keyup":ry(h,n,d)}var A;if($p)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 Zs?Wb(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(Vb&&n.locale!=="ko"&&(Zs||E!=="onCompositionStart"?E==="onCompositionEnd"&&Zs&&(A=zb()):(Er=d,Dp="value"in Er?Er.value:Er.textContent,Zs=!0)),j=xc(u,E),0<j.length&&(E=new Gg(E,e,null,n,d),h.push({event:E,listeners:j}),A?E.data=A:(A=Hb(n),A!==null&&(E.data=A)))),(A=bT?wT(e,n):kT(e,n))&&(u=xc(u,"onBeforeInput"),0<u.length&&(d=new Gg("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:u}),d.data=A))}rw(h,t)}
vendor: 4,383 bytes, lines 37-38
37)}function ao(e,t,n){return{instance:e,listener:t,currentTarget:n}}function xc(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Za(e,n),i!=null&&r.unshift(ao(e,i,s)),i=Za(e,t),i!=null&&r.push(ao(e,i,s))),e=e.return}return r}function Bs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ay(e,t,n,r,s){for(var i=t._reactName,a=[];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=Za(n,i),c!=null&&a.unshift(ao(n,c,l))):s||(c=Za(n,i),c!=null&&a.push(ao(n,c,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var LT=/\r\n?/g,MT=/\u0000|\uFFFD/g;function oy(e){return(typeof e=="string"?e:""+e).replace(LT,` 38`).replace(MT,"")}function ml(e,t,n){if(t=oy(t),oy(e)!==t&&n)throw Error(O(425))}function vc(){}var Uh=null,zh=null;function Vh(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 Wh=typeof setTimeout=="function"?setTimeout:void 0,$T=typeof clearTimeout=="function"?clearTimeout:void 0,ly=typeof Promise=="function"?Promise:void 0,FT=typeof queueMicrotask=="function"?queueMicrotask:typeof ly<"u"?function(e){return ly.resolve(null).then(e).catch(BT)}:Wh;function BT(e){setTimeout(function(){throw e})}function xd(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),no(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);no(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 cy(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 Yi=Math.random().toString(36).slice(2),An="__reactFiber$"+Yi,oo="__reactProps$"+Yi,Jn="__reactContainer$"+Yi,Hh="__reactEvents$"+Yi,UT="__reactListeners$"+Yi,zT="__reactHandles$"+Yi;function ls(e){var t=e[An];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Jn]||n[An]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=cy(e);e!==null;){if(n=e[An])return n;e=cy(e)}return t}e=n,n=e.parentNode}return null}function Bo(e){return e=e[An]||e[Jn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ni(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function hu(e){return e[oo]||null}var Kh=[],ri=-1;function Kr(e){return{current:e}}function ge(e){0>ri||(e.current=Kh[ri],Kh[ri]=null,ri--)}function he(e,t){ri++,Kh[ri]=e.current,e.current=t}var Br={},tt=Kr(Br),pt=Kr(!1),js=Br;function Li(e,t){var n=e.type.contextTypes;if(!n)return Br;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 mt(e){return e=e.childContextTypes,e!=null}function bc(){ge(pt),ge(tt)}function uy(e,t,n){if(tt.current!==Br)throw Error(O(168));he(tt,t),he(pt,n)}function iw(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(O(108,EE(e)||"Unknown",s));return Se({},n,r)}function wc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Br,js=tt.current,he(tt,e),he(pt,pt.current),!0}function dy(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=iw(e,t,js),r.__reactInternalMemoizedMergedChildContext=e,ge(pt),ge(tt),he(tt,e)):ge(pt),he(pt,n)}var Wn=null,fu=!1,vd=!1;function aw(e){Wn===null?Wn=[e]:Wn.push(e)}function VT(e){fu=!0,aw(e)}function qr(){if(!vd&&Wn!==null){vd=!0;var e=0,t=ce;try{var n=Wn;for(ce=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Wn=null,fu=!1}catch(s){throw Wn!==null&&(Wn=Wn.slice(e+1)),Ib(Ip,qr),s}finally{ce=t,vd=!1}}return null}var si=[],ii=0,kc=null,Sc=0,Rt=[],Ot=0,As=null,Kn=1,qn="";function ss(e,t){si[ii++]=Sc,si[ii++]=kc,kc=e,Sc=t}function ow(e,t,n){Rt[Ot++]=Kn,Rt[Ot++]=qn,Rt[Ot++]=As,As=e;var r=Kn;e=qn;var s=32-ln(r)-1;r&=~(1<<s),n+=1;var i=32-ln(t)+s;
vendor: 16,024 bytes, line 38
38if(30<i){var a=s-s%5;i=(r&(1<<a)-1).toString(32),r>>=a,s-=a,Kn=1<<32-ln(t)+s|n<<s|r,qn=i+e}else Kn=1<<i|n<<s|r,qn=e}function Bp(e){e.return!==null&&(ss(e,1),ow(e,1,0))}function Up(e){for(;e===kc;)kc=si[--ii],si[ii]=null,Sc=si[--ii],si[ii]=null;for(;e===As;)As=Rt[--Ot],Rt[Ot]=null,qn=Rt[--Ot],Rt[Ot]=null,Kn=Rt[--Ot],Rt[Ot]=null}var wt=null,bt=null,xe=!1,rn=null;function lw(e,t){var n=Dt(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 hy(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,wt=e,bt=Rr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,wt=e,bt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=As!==null?{id:Kn,overflow:qn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Dt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,wt=e,bt=null,!0):!1;default:return!1}}function qh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Gh(e){if(xe){var t=bt;if(t){var n=t;if(!hy(e,t)){if(qh(e))throw Error(O(418));t=Rr(n.nextSibling);var r=wt;t&&hy(e,t)?lw(r,n):(e.flags=e.flags&-4097|2,xe=!1,wt=e)}}else{if(qh(e))throw Error(O(418));e.flags=e.flags&-4097|2,xe=!1,wt=e}}}function fy(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;wt=e}function gl(e){if(e!==wt)return!1;if(!xe)return fy(e),xe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Vh(e.type,e.memoizedProps)),t&&(t=bt)){if(qh(e))throw cw(),Error(O(418));for(;t;)lw(e,t),t=Rr(t.nextSibling)}if(fy(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){bt=Rr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}bt=null}}else bt=wt?Rr(e.stateNode.nextSibling):null;return!0}function cw(){for(var e=bt;e;)e=Rr(e.nextSibling)}function Mi(){bt=wt=null,xe=!1}function zp(e){rn===null?rn=[e]:rn.push(e)}var WT=nr.ReactCurrentBatchConfig;function fa(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(O(309));var r=n.stateNode}if(!r)throw Error(O(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(a){var l=s.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function yl(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function py(e){var t=e._init;return t(e._payload)}function uw(e){function t(g,m){if(e){var v=g.deletions;v===null?(g.deletions=[m],g.flags|=16):v.push(m)}}function n(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function r(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function s(g,m){return g=Mr(g,m),g.index=0,g.sibling=null,g}function i(g,m,v){return g.index=v,e?(v=g.alternate,v!==null?(v=v.index,v<m?(g.flags|=2,m):v):(g.flags|=2,m)):(g.flags|=1048576,m)}function a(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,m,v,k){return m===null||m.tag!==6?(m=Ed(v,g.mode,k),m.return=g,m):(m=s(m,v),m.return=g,m)}function c(g,m,v,k){var S=v.type;return S===Xs?d(g,m,v.props.children,k,v.key):m!==null&&(m.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===mr&&py(S)===m.type)?(k=s(m,v.props),k.ref=fa(g,m,v),k.return=g,k):(k=Ql(v.type,v.key,v.props,null,g.mode,k),k.ref=fa(g,m,v),k.return=g,k)}function u(g,m,v,k){return m===null||m.tag!==4||m.stateNode.containerInfo!==v.containerInfo||m.stateNode.implementation!==v.implementation?(m=Td(v,g.mode,k),m.return=g,m):(m=s(m,v.children||[]),m.return=g,m)}function d(g,m,v,k,S){return m===null||m.tag!==7?(m=ks(v,g.mode,k,S),m.return=g,m):(m=s(m,v),m.return=g,m)}function h(g,m,v){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Ed(""+m,g.mode,v),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case al:return v=Ql(m.type,m.key,m.props,null,g.mode,v),v.ref=fa(g,null,m),v.return=g,v;case Qs:return m=Td(m,g.mode,v),m.return=g,m;case mr:var k=m._init;return h(g,k(m._payload),v)}if(Aa(m)||la(m))return m=ks(m,g.mode,v,null),m.return=g,m;yl(g,m)}return null}function f(g,m,v,k){var S=m!==null?m.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return S!==null?null:l(g,m,""+v,k);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case al:return v.key===S?c(g,m,v,k):null;case Qs:return v.key===S?u(g,m,v,k):null;case mr:return S=v._init,f(g,m,S(v._payload),k)}if(Aa(v)||la(v))return S!==null?null:d(g,m,v,k,null);yl(g,v)}return null}function p(g,m,v,k,S){if(typeof k=="string"&&k!==""||typeof k=="number")return g=g.get(v)||null,l(m,g,""+k,S);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case al:return g=g.get(k.key===null?v:k.key)||null,c(m,g,k,S);case Qs:return g=g.get(k.key===null?v:k.key)||null,u(m,g,k,S);case mr:var j=k._init;return p(g,m,v,j(k._payload),S)}if(Aa(k)||la(k))return g=g.get(v)||null,d(m,g,k,S,null);yl(m,k)}return null}function x(g,m,v,k){for(var S=null,j=null,A=m,E=m=0,N=null;A!==null&&E<v.length;E++){A.index>E?(N=A,A=null):N=A.sibling;var R=f(g,A,v[E],k);if(R===null){A===null&&(A=N);break}e&&A&&R.alternate===null&&t(g,A),m=i(R,m,E),j===null?S=R:j.sibling=R,j=R,A=N}if(E===v.length)return n(g,A),xe&&ss(g,E),S;if(A===null){for(;E<v.length;E++)A=h(g,v[E],k),A!==null&&(m=i(A,m,E),j===null?S=A:j.sibling=A,j=A);return xe&&ss(g,E),S}for(A=r(g,A);E<v.length;E++)N=p(A,g,E,v[E],k),N!==null&&(e&&N.alternate!==null&&A.delete(N.key===null?E:N.key),m=i(N,m,E),j===null?S=N:j.sibling=N,j=N);return e&&A.forEach(function(z){return t(g,z)}),xe&&ss(g,E),S}function y(g,m,v,k){var S=la(v);if(typeof S!="function")throw Error(O(150));if(v=S.call(v),v==null)throw Error(O(151));for(var j=S=null,A=m,E=m=0,N=null,R=v.next();A!==null&&!R.done;E++,R=v.next()){A.index>E?(N=A,A=null):N=A.sibling;var z=f(g,A,R.value,k);if(z===null){A===null&&(A=N);break}e&&A&&z.alternate===null&&t(g,A),m=i(z,m,E),j===null?S=z:j.sibling=z,j=z,A=N}if(R.done)return n(g,A),xe&&ss(g,E),S;if(A===null){for(;!R.done;E++,R=v.next())R=h(g,R.value,k),R!==null&&(m=i(R,m,E),j===null?S=R:j.sibling=R,j=R);return xe&&ss(g,E),S}for(A=r(g,A);!R.done;E++,R=v.next())R=p(A,g,E,R.value,k),R!==null&&(e&&R.alternate!==null&&A.delete(R.key===null?E:R.key),m=i(R,m,E),j===null?S=R:j.sibling=R,j=R);return e&&A.forEach(function(D){return t(g,D)}),xe&&ss(g,E),S}function b(g,m,v,k){if(typeof v=="object"&&v!==null&&v.type===Xs&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case al:e:{for(var S=v.key,j=m;j!==null;){if(j.key===S){if(S=v.type,S===Xs){if(j.tag===7){n(g,j.sibling),m=s(j,v.props.children),m.return=g,g=m;break e}}else if(j.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===mr&&py(S)===j.type){n(g,j.sibling),m=s(j,v.props),m.ref=fa(g,j,v),m.return=g,g=m;break e}n(g,j);break}else t(g,j);j=j.sibling}v.type===Xs?(m=ks(v.props.children,g.mode,k,v.key),m.return=g,g=m):(k=Ql(v.type,v.key,v.props,null,g.mode,k),k.ref=fa(g,m,v),k.return=g,g=k)}return a(g);case Qs:e:{for(j=v.key;m!==null;){if(m.key===j)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(g,m.sibling),m=s(m,v.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=Td(v,g.mode,k),m.return=g,g=m}return a(g);case mr:return j=v._init,b(g,m,j(v._payload),k)}if(Aa(v))return x(g,m,v,k);if(la(v))return y(g,m,v,k);yl(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(g,m.sibling),m=s(m,v),m.return=g,g=m):(n(g,m),m=Ed(v,g.mode,k),m.return=g,g=m),a(g)):n(g,m)}return b}var $i=uw(!0),dw=uw(!1),jc=Kr(null),Ac=null,ai=null,Vp=null;function Wp(){Vp=ai=Ac=null}function Hp(e){var t=jc.current;ge(jc),e._currentValue=t}function Yh(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 vi(e,t){Ac=e,Vp=ai=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ft=!0),e.firstContext=null)}function Bt(e){var t=e._currentValue;if(Vp!==e)if(e={context:e,memoizedValue:t,next:null},ai===null){if(Ac===null)throw Error(O(308));ai=e,Ac.dependencies={lanes:0,firstContext:e}}else ai=ai.next=e;return t}var cs=null;function Kp(e){cs===null?cs=[e]:cs.push(e)}function hw(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Kp(t)):(n.next=s.next,s.next=n),t.interleaved=n,Qn(e,r)}function Qn(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 gr=!1;function qp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fw(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 Gn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Or(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,se&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Qn(e,n)}return s=r.interleaved,s===null?(t.next=t,Kp(r)):(t.next=s.next,s.next=t),r.interleaved=t,Qn(e,n)}function Hl(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,Pp(e,n)}}function my(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 a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=a:i=i.next=a,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 Ec(e,t,n,r){var s=e.updateQueue;gr=!1;var i=s.firstBaseUpdate,a=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?i=u:a.next=u,a=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(i!==null){var h=s.baseState;a=0,d=u=c=null,l=i;do{var f=l.lane,p=l.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,y=l;switch(f=t,p=n,y.tag){case 1:if(x=y.payload,typeof x=="function"){h=x.call(p,h,f);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=y.payload,f=typeof x=="function"?x.call(p,h,f):x,f==null)break e;h=Se({},h,f);break e;case 2:gr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=s.effects,f===null?s.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=p,c=h):d=d.next=p,a|=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 a|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);Ts|=a,e.lanes=a,e.memoizedState=h}}function gy(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(O(191,s));s.call(r)}}}var Uo={},Nn=Kr(Uo),lo=Kr(Uo),co=Kr(Uo);function us(e){if(e===Uo)throw Error(O(174));return e}function Gp(e,t){switch(he(co,t),he(lo,e),he(Nn,Uo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ch(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ch(t,e)}ge(Nn),he(Nn,t)}function Fi(){ge(Nn),ge(lo),ge(co)}function pw(e){us(co.current);var t=us(Nn.current),n=Ch(t,e.type);t!==n&&(he(lo,e),he(Nn,n))}function Yp(e){lo.current===e&&(ge(Nn),ge(lo))}var be=Kr(0);function Tc(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 bd=[];function Jp(){for(var e=0;e<bd.length;e++)bd[e]._workInProgressVersionPrimary=null;bd.length=0}var Kl=nr.ReactCurrentDispatcher,wd=nr.ReactCurrentBatchConfig,Es=0,ke=null,Le=null,Be=null,Nc=!1,Ma=!1,uo=0,HT=0;function Ye(){throw Error(O(321))}function Qp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!hn(e[n],t[n]))return!1;return!0}function Xp(e,t,n,r,s,i){if(Es=i,ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kl.current=e===null||e.memoizedState===null?YT:JT,e=n(r,s),Ma){i=0;do{if(Ma=!1,uo=0,25<=i)throw Error(O(301));i+=1,Be=Le=null,t.updateQueue=null,Kl.current=QT,e=n(r,s)}while(Ma)}if(Kl.current=Cc,t=Le!==null&&Le.next!==null,Es=0,Be=Le=ke=null,Nc=!1,t)throw Error(O(300));return e}function Zp(){var e=uo!==0;return uo=0,e}function xn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?ke.memoizedState=Be=e:Be=Be.next=e,Be}function Ut(){if(Le===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=Be===null?ke.memoizedState:Be.next;if(t!==null)Be=t,Le=e;else{if(e===null)throw Error(O(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},Be===null?ke.memoizedState=Be=e:Be=Be.next=e}return Be}function ho(e,t){return typeof t=="function"?t(e):t}function kd(e){var t=Ut(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=Le,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var a=s.next;s.next=i.next,i.next=a}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var l=a=null,c=null,u=i;do{var d=u.lane;if((Es&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,a=r):c=c.next=h,ke.lanes|=d,Ts|=d}u=u.next}while(u!==null&&u!==i);c===null?a=r:c.next=l,hn(r,t.memoizedState)||(ft=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,ke.lanes|=i,Ts|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sd(e){var t=Ut(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var a=s=s.next;do i=e(i,a.action),a=a.next;while(a!==s);hn(i,t.memoizedState)||(ft=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function mw(){}function gw(e,t){var n=ke,r=Ut(),s=t(),i=!hn(r.memoizedState,s);if(i&&(r.memoizedState=s,ft=!0),r=r.queue,em(vw.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Be!==null&&Be.memoizedState.tag&1){if(n.flags|=2048,fo(9,xw.bind(null,n,r,s,t),void 0,null),Ue===null)throw Error(O(349));Es&30||yw(n,t,s)}return s}function yw(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function xw(e,t,n,r){t.value=n,t.getSnapshot=r,bw(t)&&ww(e)}
vendor: 4,969 bytes, line 38
38function vw(e,t,n){return n(function(){bw(t)&&ww(e)})}function bw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!hn(e,n)}catch{return!0}}function ww(e){var t=Qn(e,1);t!==null&&cn(t,e,1,-1)}function yy(e){var t=xn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ho,lastRenderedState:e},t.queue=e,e=e.dispatch=GT.bind(null,ke,e),[t.memoizedState,e]}function fo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.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 kw(){return Ut().memoizedState}function ql(e,t,n,r){var s=xn();ke.flags|=e,s.memoizedState=fo(1|t,n,void 0,r===void 0?null:r)}function pu(e,t,n,r){var s=Ut();r=r===void 0?null:r;var i=void 0;if(Le!==null){var a=Le.memoizedState;if(i=a.destroy,r!==null&&Qp(r,a.deps)){s.memoizedState=fo(t,n,i,r);return}}ke.flags|=e,s.memoizedState=fo(1|t,n,i,r)}function xy(e,t){return ql(8390656,8,e,t)}function em(e,t){return pu(2048,8,e,t)}function Sw(e,t){return pu(4,2,e,t)}function jw(e,t){return pu(4,4,e,t)}function Aw(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 Ew(e,t,n){return n=n!=null?n.concat([e]):null,pu(4,4,Aw.bind(null,t,e),n)}function tm(){}function Tw(e,t){var n=Ut();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Qp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Nw(e,t){var n=Ut();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Qp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Cw(e,t,n){return Es&21?(hn(n,t)||(n=Ob(),ke.lanes|=n,Ts|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ft=!0),e.memoizedState=n)}function KT(e,t){var n=ce;ce=n!==0&&4>n?n:4,e(!0);var r=wd.transition;wd.transition={};try{e(!1),t()}finally{ce=n,wd.transition=r}}function _w(){return Ut().memoizedState}function qT(e,t,n){var r=Lr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Iw(e))Pw(t,n);else if(n=hw(e,t,n,r),n!==null){var s=ot();cn(n,e,r,s),Rw(n,t,r)}}function GT(e,t,n){var r=Lr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Iw(e))Pw(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(s.hasEagerState=!0,s.eagerState=l,hn(l,a)){var c=t.interleaved;c===null?(s.next=s,Kp(t)):(s.next=c.next,c.next=s),t.interleaved=s;return}}catch{}finally{}n=hw(e,t,s,r),n!==null&&(s=ot(),cn(n,e,r,s),Rw(n,t,r))}}function Iw(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function Pw(e,t){Ma=Nc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pp(e,n)}}var Cc={readContext:Bt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},YT={readContext:Bt,useCallback:function(e,t){return xn().memoizedState=[e,t===void 0?null:t],e},useContext:Bt,useEffect:xy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ql(4194308,4,Aw.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ql(4194308,4,e,t)},useInsertionEffect:function(e,t){return ql(4,2,e,t)},useMemo:function(e,t){var n=xn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xn();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=qT.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=xn();return e={current:e},t.memoizedState=e},useState:yy,useDebugValue:tm,useDeferredValue:function(e){return xn().memoizedState=e},useTransition:function(){var e=yy(!1),t=e[0];return e=KT.bind(null,e[1]),xn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,s=xn();if(xe){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Ue===null)throw Error(O(349));Es&30||yw(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,xy(vw.bind(null,r,i,e),[e]),r.flags|=2048,fo(9,xw.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=xn(),t=Ue.identifierPrefix;if(xe){var n=qn,r=Kn;n=(r&~(1<<32-ln(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=uo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=HT++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},JT={readContext:Bt,useCallback:Tw,useContext:Bt,useEffect:em,useImperativeHandle:Ew,useInsertionEffect:Sw,useLayoutEffect:jw,useMemo:Nw,useReducer:kd,useRef
vendor: 4,528 bytes, lines 38-40
38:kw,useState:function(){return kd(ho)},useDebugValue:tm,useDeferredValue:function(e){var t=Ut();return Cw(t,Le.memoizedState,e)},useTransition:function(){var e=kd(ho)[0],t=Ut().memoizedState;return[e,t]},useMutableSource:mw,useSyncExternalStore:gw,useId:_w,unstable_isNewReconciler:!1},QT={readContext:Bt,useCallback:Tw,useContext:Bt,useEffect:em,useImperativeHandle:Ew,useInsertionEffect:Sw,useLayoutEffect:jw,useMemo:Nw,useReducer:Sd,useRef:kw,useState:function(){return Sd(ho)},useDebugValue:tm,useDeferredValue:function(e){var t=Ut();return Le===null?t.memoizedState=e:Cw(t,Le.memoizedState,e)},useTransition:function(){var e=Sd(ho)[0],t=Ut().memoizedState;return[e,t]},useMutableSource:mw,useSyncExternalStore:gw,useId:_w,unstable_isNewReconciler:!1};function Qt(e,t){if(e&&e.defaultProps){t=Se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Jh(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var mu={isMounted:function(e){return(e=e._reactInternals)?Is(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ot(),s=Lr(e),i=Gn(r,s);i.payload=t,n!=null&&(i.callback=n),t=Or(e,i,s),t!==null&&(cn(t,e,s,r),Hl(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ot(),s=Lr(e),i=Gn(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Or(e,i,s),t!==null&&(cn(t,e,s,r),Hl(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ot(),r=Lr(e),s=Gn(n,r);s.tag=2,t!=null&&(s.callback=t),t=Or(e,s,r),t!==null&&(cn(t,e,r,n),Hl(t,e,r))}};function vy(e,t,n,r,s,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!so(n,r)||!so(s,i):!0}function Ow(e,t,n){var r=!1,s=Br,i=t.contextType;return typeof i=="object"&&i!==null?i=Bt(i):(s=mt(t)?js:tt.current,r=t.contextTypes,i=(r=r!=null)?Li(e,s):Br),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=mu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function by(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&&mu.enqueueReplaceState(t,t.state,null)}function Qh(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},qp(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Bt(i):(i=mt(t)?js:tt.current,s.context=Li(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Jh(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&&mu.enqueueReplaceState(s,s.state,null),Ec(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Bi(e,t){try{var n="",r=t;do n+=AE(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 jd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Xh(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var XT=typeof WeakMap=="function"?WeakMap:Map;function Dw(e,t,n){n=Gn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ic||(Ic=!0,cf=r),Xh(e,t)},n}function Lw(e,t,n){n=Gn(-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(){Xh(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Xh(e,t),typeof r!="function"&&(Dr===null?Dr=new Set([this]):Dr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function wy(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new XT;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=hN.bind(null,e,t,n),t.then(e,e))}function ky(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}
vendor: 10,061 bytes, line 40
40function Sy(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=Gn(-1,1),t.tag=2,Or(n,t,1))),n.lanes|=1),e)}var ZT=nr.ReactCurrentOwner,ft=!1;function rt(e,t,n,r){t.child=e===null?dw(t,null,n,r):$i(t,e.child,n,r)}function jy(e,t,n,r,s){n=n.render;var i=t.ref;return vi(t,s),r=Xp(e,t,n,r,i,s),n=Zp(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Xn(e,t,s)):(xe&&n&&Bp(t),t.flags|=1,rt(e,t,r,s),t.child)}function Ay(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!cm(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Mw(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 a=i.memoizedProps;if(n=n.compare,n=n!==null?n:so,n(a,r)&&e.ref===t.ref)return Xn(e,t,s)}return t.flags|=1,e=Mr(i,r),e.ref=t.ref,e.return=t,t.child=e}function Mw(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(so(i,r)&&e.ref===t.ref)if(ft=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(ft=!0);else return t.lanes=e.lanes,Xn(e,t,s)}return Zh(e,t,n,r,s)}function $w(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},he(li,yt),yt|=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,he(li,yt),yt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,he(li,yt),yt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,he(li,yt),yt|=r;return rt(e,t,s,n),t.child}function Fw(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Zh(e,t,n,r,s){var i=mt(n)?js:tt.current;return i=Li(t,i),vi(t,s),n=Xp(e,t,n,r,i,s),r=Zp(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Xn(e,t,s)):(xe&&r&&Bp(t),t.flags|=1,rt(e,t,n,s),t.child)}function Ey(e,t,n,r,s){if(mt(n)){var i=!0;wc(t)}else i=!1;if(vi(t,s),t.stateNode===null)Gl(e,t),Ow(t,n,r),Qh(t,n,r,s),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var c=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Bt(u):(u=mt(n)?js:tt.current,u=Li(t,u));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||c!==u)&&by(t,a,r,u),gr=!1;var f=t.memoizedState;a.state=f,Ec(t,r,a,s),c=t.memoizedState,l!==r||f!==c||pt.current||gr?(typeof d=="function"&&(Jh(t,n,d,r),c=t.memoizedState),(l=gr||vy(t,n,l,r,f,c,u))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,fw(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Qt(t.type,l),a.props=u,h=t.pendingProps,f=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=Bt(c):(c=mt(n)?js:tt.current,c=Li(t,c));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==h||f!==c)&&by(t,a,r,c),gr=!1,f=t.memoizedState,a.state=f,Ec(t,r,a,s);var x=t.memoizedState;l!==h||f!==x||pt.current||gr?(typeof p=="function"&&(Jh(t,n,p,r),x=t.memoizedState),(u=gr||vy(t,n,u,r,f,x,c)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,x,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,x,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),a.props=r,a.state=x,a.context=c,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return ef(e,t,n,r,i,s)}function ef(e,t,n,r,s,i){Fw(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return s&&dy(t,n,!1),Xn(e,t,i);r=t.stateNode,ZT.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=$i(t,e.child,null,i),t.child=$i(t,null,l,i)):rt(e,t,l,i),t.memoizedState=r.state,s&&dy(t,n,!0),t.child}function Bw(e){var t=e.stateNode;t.pendingContext?uy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&uy(e,t.context,!1),Gp(e,t.containerInfo)}function Ty(e,t,n,r,s){return Mi(),zp(s),t.flags|=256,rt(e,t,n,r),t.child}var tf={dehydrated:null,treeContext:null,retryLane:0};function nf(e){return{baseLanes:e,cachePool:null,transitions:null}}function Uw(e,t,n){var r=t.pendingProps,s=be.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),he(be,s&1),e===null)return Gh(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):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=xu(a,r,0,null),e=ks(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=nf(n),t.memoizedState=tf,e):nm(t,a));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return eN(e,t,a,r,l,s,n);if(i){i=r.fallback,a=t.mode,s=e.child,l=s.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Mr(s,c),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=Mr(l,i):(i=ks(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?nf(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=tf,r}return i=e.child,e=i.sibling,r=Mr(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 nm(e,t){return t=xu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function xl(e,t,n,r){return r!==null&&zp(r),$i(t,e.child,null,n),e=nm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function eN(e,t,n,r,s,i,a){if(n)return t.flags&256?(t.flags&=-257,r=jd(Error(O(422))),xl(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=xu({mode:"visible",children:r.children},s,0,null),i=ks(i,s,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&$i(t,e.child,null,a),t.child.memoizedState=nf(a),t.memoizedState=tf,i);if(!(t.mode&1))return xl(e,t,a,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(O(419)),r=jd(i,r,void 0),xl(e,t,a,r)}if(l=(a&e.childLanes)!==0,ft||l){if(r=Ue,r!==null){switch(a&-a){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|a)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Qn(e,s),cn(r,e,s,-1))}return lm(),r=jd(Error(O(421))),xl(e,t,a,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=fN.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,bt=Rr(s.nextSibling),wt=t,xe=!0,rn=null,e!==null&&(Rt[Ot++]=Kn,Rt[Ot++]=qn,Rt[Ot++]=As,Kn=e.id,qn=e.overflow,As=t),t=nm(t,r.children),t.flags|=4096,t)}function Ny(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Yh(e.return,t,n)}function Ad(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 zw(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(rt(e,t,r.children,n),r=be.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(he(be,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&&Tc(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Ad(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&&Tc(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Ad(t,!0,n,null,i);break;case"together":Ad(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ts|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));
vendor: 5,451 bytes, line 40
40if(t.child!==null){for(e=t.child,n=Mr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Mr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function tN(e,t,n){switch(t.tag){case 3:Bw(t),Mi();break;case 5:pw(t);break;case 1:mt(t.type)&&wc(t);break;case 4:Gp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;he(jc,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(he(be,be.current&1),t.flags|=128,null):n&t.child.childLanes?Uw(e,t,n):(he(be,be.current&1),e=Xn(e,t,n),e!==null?e.sibling:null);he(be,be.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return zw(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),he(be,be.current),r)break;return null;case 22:case 23:return t.lanes=0,$w(e,t,n)}return Xn(e,t,n)}var Vw,rf,Ww,Hw;Vw=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}};rf=function(){};Ww=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,us(Nn.current);var i=null;switch(n){case"input":s=Ah(e,s),r=Ah(e,r),i=[];break;case"select":s=Se({},s,{value:void 0}),r=Se({},r,{value:void 0}),i=[];break;case"textarea":s=Nh(e,s),r=Nh(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vc)}_h(n,r);var a;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var l=s[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Qa.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(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}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"&&(Qa.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&me("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)}};Hw=function(e,t,n,r){n!==r&&(t.flags|=4)};function pa(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function nN(e,t,n){var r=t.pendingProps;switch(Up(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return mt(t.type)&&bc(),Je(t),null;case 3:return r=t.stateNode,Fi(),ge(pt),ge(tt),Jp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(gl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,rn!==null&&(hf(rn),rn=null))),rf(e,t),Je(t),null;case 5:Yp(t);var s=us(co.current);if(n=t.type,e!==null&&t.stateNode!=null)Ww(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return Je(t),null}if(e=us(Nn.current),gl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[An]=t,r[oo]=i,e=(t.mode&1)!==0,n){case"dialog":me("cancel",r),me("close",r);break;case"iframe":case"object":case"embed":me("load",r);break;case"video":case"audio":for(s=0;s<Ta.length;s++)me(Ta[s],r);break;case"source":me("error",r);break;case"img":case"image":case"link":me("error",r),me("load",r);break;case"details":me("toggle",r);break;case"input":Mg(r,i),me("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},me("invalid",r);break;case"textarea":Fg(r,i),me("invalid",r)}_h(n,i),s=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&ml(r.textContent,l,e),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&ml(r.textContent,l,e),s=["children",""+l]):Qa.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&me("scroll",r)}switch(n){case"input":ol(r),$g(r,i,!0);break;case"textarea":ol(r),Bg(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=vc)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=vb(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>
40",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[An]=t,e[oo]=r,Vw(e,t,!1,!1),t.stateNode=e;e:{switch(a=Ih(n,r),n){case"dialog":me("cancel",e),me("close",e),s=r;break;case"iframe":case"object":case"embed":me("load",e),s=r;break;case"video":case"audio":for(s=0;s<Ta.length;s++)me(Ta[s],e);s=r;break;case"source":me("error",e),s=r;break;case"img":case"image":case"link":me("error",e),me("load",e),s=r;break;case"details":me("toggle",e),s=r;break;case"input":Mg(e,r),s=Ah(e,r),me("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Se({},r,{value:void 0}),me("invalid",e);break;case"textarea":Fg(e,r),s=Nh(e,r),me("invalid",e);break;default:s=r}_h(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?kb(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&bb(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Xa(e,c):typeof c=="number"&&Xa(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Qa.hasOwnProperty(i)?c!=null&&i==="onScroll"&&me("scroll",e):c!=null&&Ep(e,i,c,a))}switch(n){case"input":ol(e),$g(e,r,!1);break;case"textarea":ol(e),Bg(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Fr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?mi(e,!!r.multiple,i,!1):r.defaultValue!=null&&mi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=vc)}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 Je(t),null;case 6:if(e&&t.stateNode!=null)Hw(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=us(co.current),us(Nn.current),gl(t)){if(r=t.stateNode,n=t.memoizedProps,r[An]=t,(i=r.nodeValue!==n)&&(e=wt,e!==null))switch(e.tag){case 3:ml(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ml(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[An]=t,t.stateNode=r}return Je(t),null;case 13:if(ge(be),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(xe&&bt!==null&&t.mode&1&&!(t.flags&128))cw(),Mi(),t.flags|=98560,i=!1;else if(i=gl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(O(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(O(317));i[An]=t}else Mi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Je(t),i=!1}else rn!==null&&(hf(rn),rn=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||be.current&1?Me===0&&(Me=3):lm())),t.updateQueue!==null&&(t.flags|=4),Je(t),null);case 4:return Fi(),rf(e,t),e===null&&io(t.stateNode.containerInfo),Je(t),null;case 10:return Hp(t.type._context),Je(t),null;case 17:return mt(t.type)&&bc(),Je(t),null;case 19:if(ge(be),i=t.memoizedState,i===null)return Je(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)pa(i,!1);else{if(Me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Tc(e),a!==null){for(t.flags|=128,pa(i,!1),r=a.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,a=i.alternate,a===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=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return he(be,be.current&1|2),t.child}e=e.sibling}i.tail!==null&&Te()>Ui&&(t.flags|=128,r=!0,pa(i,!1),t.lanes=4194304)}else{if(!r)if(e=Tc(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pa(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!xe)return Je(t),null}else 2*Te()-i.renderingStartTime>Ui&&n!==1073741824&&(t.flags|=128,r=!0,pa(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Te(),t.sibling=null,n=be.current,he(be,r?n&1|2:n&1),t):(Je(t),null);case 22:case 23:return om(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yt&1073741824&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function rN(e,t){switch(Up(t),t.tag){case 1:return mt(t.type)&&bc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 7,024 bytes, line 40
40case 3:return Fi(),ge(pt),ge(tt),Jp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yp(t),null;case 13:if(ge(be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));Mi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(be),null;case 4:return Fi(),null;case 10:return Hp(t.type._context),null;case 22:case 23:return om(),null;case 24:return null;default:return null}}var vl=!1,Ze=!1,sN=typeof WeakSet=="function"?WeakSet:Set,F=null;function oi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ee(e,t,r)}else n.current=null}function sf(e,t,n){try{n()}catch(r){Ee(e,t,r)}}var Cy=!1;function iN(e,t){if(Uh=gc,e=Jb(),Fp(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 a=0,l=-1,c=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||s!==0&&h.nodeType!==3||(l=a+s),h!==i||r!==0&&h.nodeType!==3||(c=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(p=h.firstChild)!==null;)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++u===s&&(l=a),f===i&&++d===r&&(c=a),(p=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=p}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(zh={focusedElem:e,selectionRange:n},gc=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,b=x.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Qt(t.type,y),b);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(k){Ee(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return x=Cy,Cy=!1,x}function $a(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&&sf(t,n,i)}s=s.next}while(s!==r)}}function gu(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 af(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 Kw(e){var t=e.alternate;t!==null&&(e.alternate=null,Kw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[An],delete t[oo],delete t[Hh],delete t[UT],delete t[zT])),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 qw(e){return e.tag===5||e.tag===3||e.tag===4}function _y(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qw(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 of(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=vc));else if(r!==4&&(e=e.child,e!==null))for(of(e,t,n),e=e.sibling;e!==null;)of(e,t,n),e=e.sibling}function lf(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(lf(e,t,n),e=e.sibling;e!==null;)lf(e,t,n),e=e.sibling}var Ve=null,nn=!1;function cr(e,t,n){for(n=n.child;n!==null;)Gw(e,t,n),n=n.sibling}function Gw(e,t,n){if(Tn&&typeof Tn.onCommitFiberUnmount=="function")try{Tn.onCommitFiberUnmount(lu,n)}catch{}switch(n.tag){case 5:Ze||oi(n,t);case 6:var r=Ve,s=nn;Ve=null,cr(e,t,n),Ve=r,nn=s,Ve!==null&&(nn?(e=Ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ve.removeChild(n.stateNode));break;case 18:Ve!==null&&(nn?(e=Ve,n=n.stateNode,e.nodeType===8?xd(e.parentNode,n):e.nodeType===1&&xd(e,n),no(e)):xd(Ve,n.stateNode));break;case 4:r=Ve,s=nn,Ve=n.stateNode.containerInfo,nn=!0,cr(e,t,n),Ve=r,nn=s;break;case 0:case 11:case 14:case 15:if(!Ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&sf(n,t,a),s=s.next}while(s!==r)}cr(e,t,n);break;case 1:if(!Ze&&(oi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ee(n,t,l)}cr(e,t,n);break;case 21:cr(e,t,n);break;case 22:n.mode&1?(Ze=(r=Ze)||n.memoizedState!==null,cr(e,t,n),Ze=r):cr(e,t,n);break;default:cr(e,t,n)}}function Iy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new sN),t.forEach(function(r){var s=pN.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Ht(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,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:Ve=l.stateNode,nn=!1;break e;case 3:Ve=l.stateNode.containerInfo,nn=!0;break e;case 4:Ve=l.stateNode.containerInfo,nn=!0;break e}l=l.return}if(Ve===null)throw Error(O(160));Gw(i,a,s),Ve=null,nn=!1;var c=s.alternate;c!==null&&(c.return=null),s.return=null}catch(u){Ee(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Yw(t,e),t=t.sibling}function Yw(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ht(t,e),yn(e),r&4){try{$a(3,e,e.return),gu(3,e)}catch(y){Ee(e,e.return,y)}try{$a(5,e,e.return)}catch(y){Ee(e,e.return,y)}}break;case 1:Ht(t,e),yn(e),r&512&&n!==null&&oi(n,n.return);break;case 5:if(Ht(t,e),yn(e),r&512&&n!==null&&oi(n,n.return),e.flags&32){var s=e.stateNode;try{Xa(s,"")}catch(y){Ee(e,e.return,y)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,a=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&&yb(s,i),Ih(l,a);var u=Ih(l,i);for(a=0;a<c.length;a+=2){var d=c[a],h=c[a+1];d==="style"?kb(s,h):d==="dangerouslySetInnerHTML"?bb(s,h):d==="children"?Xa(s,h):Ep(s,d,h,u)}switch(l){case"input":Eh(s,i);break;case"textarea":xb(s,i);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?mi(s,!!i.multiple,p,!1):f!==!!i.multiple&&(i.defaultValue!=null?mi(s,!!i.multiple,i.defaultValue,!0):mi(s,!!i.multiple,i.multiple?[]:"",!1))}s[oo]=i}catch(y){Ee(e,e.return,y)}}break;case 6:if(Ht(t,e),yn(e),r&4){if(e.stateNode===null)throw Error(O(162));s=e.stateNode,i=e.memoizedProps;
vendor: 2,242 bytes, line 40
40try{s.nodeValue=i}catch(y){Ee(e,e.return,y)}}break;case 3:if(Ht(t,e),yn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{no(t.containerInfo)}catch(y){Ee(e,e.return,y)}break;case 4:Ht(t,e),yn(e);break;case 13:Ht(t,e),yn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(im=Te())),r&4&&Iy(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Ze=(u=Ze)||d,Ht(t,e),Ze=u):Ht(t,e),yn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(F=e,d=e.child;d!==null;){for(h=F=d;F!==null;){switch(f=F,p=f.child,f.tag){case 0:case 11:case 14:case 15:$a(4,f,f.return);break;case 1:oi(f,f.return);var x=f.stateNode;if(typeof x.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(y){Ee(r,n,y)}}break;case 5:oi(f,f.return);break;case 22:if(f.memoizedState!==null){Ry(h);continue}}p!==null?(p.return=f,F=p):Ry(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,a=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=wb("display",a))}catch(y){Ee(e,e.return,y)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(y){Ee(e,e.return,y)}}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:Ht(t,e),yn(e),r&4&&Iy(e);break;case 21:break;default:Ht(t,e),yn(e)}}function yn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(qw(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Xa(s,""),r.flags&=-33);var i=_y(e);lf(e,i,s);break;case 3:case 4:var a=r.stateNode.containerInfo,l=_y(e);of(e,l,a);break;default:throw Error(O(161))}}catch(c){Ee(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function aN(e,t,n){F=e,Jw(e)}
vendor: 13,878 bytes, line 40
40function Jw(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var s=F,i=s.child;if(s.tag===22&&r){var a=s.memoizedState!==null||vl;if(!a){var l=s.alternate,c=l!==null&&l.memoizedState!==null||Ze;l=vl;var u=Ze;if(vl=a,(Ze=c)&&!u)for(F=s;F!==null;)a=F,c=a.child,a.tag===22&&a.memoizedState!==null?Oy(s):c!==null?(c.return=a,F=c):Oy(s);for(;i!==null;)F=i,Jw(i),i=i.sibling;F=s,vl=l,Ze=u}Py(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,F=i):Py(e)}}function Py(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ze||gu(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ze)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Qt(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&gy(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}gy(t,a,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&&no(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Ze||t.flags&512&&af(t)}catch(f){Ee(t,t.return,f)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function Ry(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function Oy(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{gu(4,t)}catch(c){Ee(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(c){Ee(t,s,c)}}var i=t.return;try{af(t)}catch(c){Ee(t,i,c)}break;case 5:var a=t.return;try{af(t)}catch(c){Ee(t,a,c)}}}catch(c){Ee(t,t.return,c)}if(t===e){F=null;break}var l=t.sibling;if(l!==null){l.return=t.return,F=l;break}F=t.return}}var oN=Math.ceil,_c=nr.ReactCurrentDispatcher,rm=nr.ReactCurrentOwner,Mt=nr.ReactCurrentBatchConfig,se=0,Ue=null,Re=null,He=0,yt=0,li=Kr(0),Me=0,po=null,Ts=0,yu=0,sm=0,Fa=null,ht=null,im=0,Ui=1/0,Bn=null,Ic=!1,cf=null,Dr=null,bl=!1,Tr=null,Pc=0,Ba=0,uf=null,Yl=-1,Jl=0;function ot(){return se&6?Te():Yl!==-1?Yl:Yl=Te()}function Lr(e){return e.mode&1?se&2&&He!==0?He&-He:WT.transition!==null?(Jl===0&&(Jl=Ob()),Jl):(e=ce,e!==0||(e=window.event,e=e===void 0?16:Ub(e.type)),e):1}function cn(e,t,n,r){if(50<Ba)throw Ba=0,uf=null,Error(O(185));$o(e,n,r),(!(se&2)||e!==Ue)&&(e===Ue&&(!(se&2)&&(yu|=n),Me===4&&xr(e,He)),gt(e,r),n===1&&se===0&&!(t.mode&1)&&(Ui=Te()+500,fu&&qr()))}function gt(e,t){var n=e.callbackNode;WE(e,t);var r=mc(e,e===Ue?He:0);if(r===0)n!==null&&Vg(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Vg(n),t===1)e.tag===0?VT(Dy.bind(null,e)):aw(Dy.bind(null,e)),FT(function(){!(se&6)&&qr()}),n=null;else{switch(Db(r)){case 1:n=Ip;break;case 4:n=Pb;break;case 16:n=pc;break;case 536870912:n=Rb;break;default:n=pc}n=sk(n,Qw.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Qw(e,t){if(Yl=-1,Jl=0,se&6)throw Error(O(327));var n=e.callbackNode;if(bi()&&e.callbackNode!==n)return null;var r=mc(e,e===Ue?He:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Rc(e,r);else{t=r;var s=se;se|=2;var i=Zw();(Ue!==e||He!==t)&&(Bn=null,Ui=Te()+500,ws(e,t));do try{uN();break}catch(l){Xw(e,l)}while(!0);Wp(),_c.current=i,se=s,Re!==null?t=0:(Ue=null,He=0,t=Me)}if(t!==0){if(t===2&&(s=Lh(e),s!==0&&(r=s,t=df(e,s))),t===1)throw n=po,ws(e,0),xr(e,r),gt(e,Te()),n;if(t===6)xr(e,r);else{if(s=e.current.alternate,!(r&30)&&!lN(s)&&(t=Rc(e,r),t===2&&(i=Lh(e),i!==0&&(r=i,t=df(e,i))),t===1))throw n=po,ws(e,0),xr(e,r),gt(e,Te()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:is(e,ht,Bn);break;case 3:if(xr(e,r),(r&130023424)===r&&(t=im+500-Te(),10<t)){if(mc(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){ot(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Wh(is.bind(null,e,ht,Bn),t);break}is(e,ht,Bn);break;case 4:if(xr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var a=31-ln(r);i=1<<a,a=t[a],a>s&&(s=a),r&=~i}if(r=s,r=Te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*oN(r/1960))-r,10<r){e.timeoutHandle=Wh(is.bind(null,e,ht,Bn),r);break}is(e,ht,Bn);break;case 5:is(e,ht,Bn);break;default:throw Error(O(329))}}}return gt(e,Te()),e.callbackNode===n?Qw.bind(null,e):null}function df(e,t){var n=Fa;return e.current.memoizedState.isDehydrated&&(ws(e,t).flags|=256),e=Rc(e,t),e!==2&&(t=ht,ht=n,t!==null&&hf(t)),e}function hf(e){ht===null?ht=e:ht.push.apply(ht,e)}function lN(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(!hn(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 xr(e,t){for(t&=~sm,t&=~yu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ln(t),r=1<<n;e[n]=-1,t&=~r}}function Dy(e){if(se&6)throw Error(O(327));bi();var t=mc(e,0);if(!(t&1))return gt(e,Te()),null;var n=Rc(e,t);if(e.tag!==0&&n===2){var r=Lh(e);r!==0&&(t=r,n=df(e,r))}if(n===1)throw n=po,ws(e,0),xr(e,t),gt(e,Te()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,is(e,ht,Bn),gt(e,Te()),null}function am(e,t){var n=se;se|=1;try{return e(t)}finally{se=n,se===0&&(Ui=Te()+500,fu&&qr())}}function Ns(e){Tr!==null&&Tr.tag===0&&!(se&6)&&bi();var t=se;se|=1;var n=Mt.transition,r=ce;try{if(Mt.transition=null,ce=1,e)return e()}finally{ce=r,Mt.transition=n,se=t,!(se&6)&&qr()}}function om(){yt=li.current,ge(li)}function ws(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,$T(n)),Re!==null)for(n=Re.return;n!==null;){var r=n;switch(Up(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&bc();break;case 3:Fi(),ge(pt),ge(tt),Jp();break;case 5:Yp(r);break;case 4:Fi();break;case 13:ge(be);break;case 19:ge(be);break;case 10:Hp(r.type._context);break;case 22:case 23:om()}n=n.return}if(Ue=e,Re=e=Mr(e.current,null),He=yt=t,Me=0,po=null,sm=yu=Ts=0,ht=Fa=null,cs!==null){for(t=0;t<cs.length;t++)if(n=cs[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=s,r.next=a}n.pending=r}cs=null}return e}function Xw(e,t){do{var n=Re;try{if(Wp(),Kl.current=Cc,Nc){for(var r=ke.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Nc=!1}if(Es=0,Be=Le=ke=null,Ma=!1,uo=0,rm.current=null,n===null||n.return===null){Me=1,po=t,Re=null;break}e:{var i=e,a=n.return,l=n,c=t;if(t=He,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 p=ky(a);if(p!==null){p.flags&=-257,Sy(p,a,l,i,t),p.mode&1&&wy(i,u,t),t=p,c=u;var x=t.updateQueue;if(x===null){var y=new Set;y.add(c),t.updateQueue=y}else x.add(c);break e}else{if(!(t&1)){wy(i,u,t),lm();break e}c=Error(O(426))}}else if(xe&&l.mode&1){var b=ky(a);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Sy(b,a,l,i,t),zp(Bi(c,l));break e}}i=c=Bi(c,l),Me!==4&&(Me=2),Fa===null?Fa=[i]:Fa.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=Dw(i,c,t);my(i,g);break e;case 1:l=c;var m=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Dr===null||!Dr.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var k=Lw(i,l,t);my(i,k);break e}}i=i.return}while(i!==null)}tk(n)}catch(S){t=S,Re===n&&n!==null&&(Re=n=n.return);continue}break}while(!0)}function Zw(){var e=_c.current;return _c.current=Cc,e===null?Cc:e}function lm(){(Me===0||Me===3||Me===2)&&(Me=4),Ue===null||!(Ts&268435455)&&!(yu&268435455)||xr(Ue,He)}function Rc(e,t){var n=se;se|=2;var r=Zw();(Ue!==e||He!==t)&&(Bn=null,ws(e,t));do try{cN();break}catch(s){Xw(e,s)}while(!0);if(Wp(),se=n,_c.current=r,Re!==null)throw Error(O(261));return Ue=null,He=0,Me}function cN(){for(;Re!==null;)ek(Re)}function uN(){for(;Re!==null&&!DE();)ek(Re)}function ek(e){var t=rk(e.alternate,e,yt);e.memoizedProps=e.pendingProps,t===null?tk(e):Re=t,rm.current=null}function tk(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=rN(n,t),n!==null){n.flags&=32767,Re=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Me=6,Re=null;return}}else if(n=nN(n,t,yt),n!==null){Re=n;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);Me===0&&(Me=5)}function is(e,t,n){var r=ce,s=Mt.transition;try{Mt.transition=null,ce=1,dN(e,t,n,r)}finally{Mt.transition=s,ce=r}return null}function dN(e,t,n,r){do bi();while(Tr!==null);if(se&6)throw Error(O(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(O(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(HE(e,i),e===Ue&&(Re=Ue=null,He=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||bl||(bl=!0,sk(pc,function(){return bi(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Mt.transition,Mt.transition=null;var a=ce;ce=1;var l=se;se|=4,rm.current=null,iN(e,n),Yw(n,e),IT(zh),gc=!!Uh,zh=Uh=null,e.current=n,aN(n),LE(),se=l,ce=a,Mt.transition=i}else e.current=n;if(bl&&(bl=!1,Tr=e,Pc=s),i=e.pendingLanes,i===0&&(Dr=null),FE(n.stateNode),gt(e,Te()),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(Ic)throw Ic=!1,e=cf,cf=null,e;return Pc&1&&e.tag!==0&&bi(),i=e.pendingLanes,i&1?e===uf?Ba++:(Ba=0,uf=e):Ba=0,qr(),null}function bi(){if(Tr!==null){var e=Db(Pc),t=Mt.transition,n=ce;try{if(Mt.transition=null,ce=16>e?16:e,Tr===null)var r=!1;else{if(e=Tr,Tr=null,Pc=0,se&6)throw Error(O(331));var s=se;for(se|=4,F=e.current;F!==null;){var i=F,a=i.child;if(F.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(F=u;F!==null;){var d=F;switch(d.tag){case 0:case 11:case 15:$a(8,d,i)}var h=d.child;if(h!==null)h.return=d,F=h;else for(;F!==null;){d=F;var f=d.sibling,p=d.return;if(Kw(d),d===u){F=null;break}if(f!==null){f.return=p,F=f;break}F=p}}}var x=i.alternate;if(x!==null){var y=x.child;if(y!==null){x.child=null;do{var b=y.sibling;y.sibling=null,y=b}while(y!==null)}}F=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,F=a;else e:for(;F!==null;){if(i=F,i.flags&2048)switch(i.tag){case 0:case 11:case 15:$a(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,F=g;break e}F=i.return}}var m=e.current;for(F=m;F!==null;){a=F;var v=a.child;if(a.subtreeFlags&2064&&v!==null)v.return=a,F=v;else e:for(a=m;F!==null;){if(l=F,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:gu(9,l)}}catch(S){Ee(l,l.return,S)}if(l===a){F=null;break e}var k=l.sibling;if(k!==null){k.return=l.return,F=k;break e}F=l.return}}if(se=s,qr(),Tn&&typeof Tn.onPostCommitFiberRoot=="function")try{Tn.onPostCommitFiberRoot(lu,e)}catch{}r=!0}return r}finally{ce=n,Mt.transition=t}}return!1}function Ly(e,t,n){t=Bi(n,t),t=Dw(e,t,1),e=Or(e,t,1),t=ot(),e!==null&&($o(e,1,t),gt(e,t))}function Ee(e,t,n){if(e.tag===3)Ly(e,e,n);else for(;t!==null;){if(t.tag===3){Ly(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Dr===null||!Dr.has(r))){e=Bi(n,e),e=Lw(t,e,1),t=Or(t,e,1),e=ot(),t!==null&&($o(t,1,e),gt(t,e));break}}t=t.return}}function hN(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ot(),e.pingedLanes|=e.suspendedLanes&n,Ue===e&&(He&n)===n&&(Me===4||Me===3&&(He&130023424)===He&&500>Te()-im?ws(e,0):sm|=n),gt(e,t)}function nk(e,t){t===0&&(e.mode&1?(t=ul,ul<<=1,!(ul&130023424)&&(ul=4194304)):t=1);var n=ot();e=Qn(e,t),e!==null&&($o(e,t,n),gt(e,n))}function fN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nk(e,n)}function pN(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(O(314))}r!==null&&r.delete(t),nk(e,n)}var rk;rk=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pt.current)ft=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ft=!1,tN(e,t,n);ft=!!(e.flags&131072)}else ft=!1,xe&&t.flags&1048576&&ow(t,Sc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gl(e,t),e=t.pendingProps;var s=Li(t,tt.current);vi(t,n),s=Xp(null,t,r,e,s,n);var i=Zp();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,mt(r)?(i=!0,wc(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,qp(t),s.updater=mu,t.stateNode=s,s._reactInternals=t,Qh(t,r,e,n),t=ef(null,t,r,!0,i,n)):(t.tag=0,xe&&i&&Bp(t),rt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gl(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=gN(r),e=Qt(r,e),s){case 0:t=Zh(null,t,r,e,n);break e;case 1:t=Ey(null,t,r,e,n);break e;case 11:t=jy(null,t,r,e,n);break e;case 14:t=Ay(null,t,r,Qt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Qt(r,s),Zh(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Qt(r,s),Ey(e,t,r,s,n);case 3:e:{if(Bw(t),e===null)throw Error(O(387));
vendor: 4,912 bytes, line 40
40r=t.pendingProps,i=t.memoizedState,s=i.element,fw(e,t),Ec(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Bi(Error(O(423)),t),t=Ty(e,t,r,n,s);break e}else if(r!==s){s=Bi(Error(O(424)),t),t=Ty(e,t,r,n,s);break e}else for(bt=Rr(t.stateNode.containerInfo.firstChild),wt=t,xe=!0,rn=null,n=dw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mi(),r===s){t=Xn(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return pw(t),e===null&&Gh(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,a=s.children,Vh(r,s)?a=null:i!==null&&Vh(r,i)&&(t.flags|=32),Fw(e,t),rt(e,t,a,n),t.child;case 6:return e===null&&Gh(t),null;case 13:return Uw(e,t,n);case 4:return Gp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$i(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Qt(r,s),jy(e,t,r,s,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,a=s.value,he(jc,r._currentValue),r._currentValue=a,i!==null)if(hn(i.value,a)){if(i.children===s.children&&!pt.current){t=Xn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Gn(-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),Yh(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(O(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Yh(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}rt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,vi(t,n),s=Bt(s),r=r(s),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,s=Qt(r,t.pendingProps),s=Qt(r.type,s),Ay(e,t,r,s,n);case 15:return Mw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Qt(r,s),Gl(e,t),t.tag=1,mt(r)?(e=!0,wc(t)):e=!1,vi(t,n),Ow(t,r,s),Qh(t,r,s,n),ef(null,t,r,!0,e,n);case 19:return zw(e,t,n);case 22:return $w(e,t,n)}throw Error(O(156,t.tag))};function sk(e,t){return Ib(e,t)}function mN(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 Dt(e,t,n,r){return new mN(e,t,n,r)}function cm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gN(e){if(typeof e=="function")return cm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Np)return 11;if(e===Cp)return 14}return 2}function Mr(e,t){var n=e.alternate;return n===null?(n=Dt(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 a=2;if(r=e,typeof e=="function")cm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Xs:return ks(n.children,s,i,t);case Tp:a=8,s|=8;break;case wh:return e=Dt(12,n,t,s|2),e.elementType=wh,e.lanes=i,e;case kh:return e=Dt(13,n,t,s),e.elementType=kh,e.lanes=i,e;case Sh:return e=Dt(19,n,t,s),e.elementType=Sh,e.lanes=i,e;case pb:return xu(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hb:a=10;break e;case fb:a=9;break e;case Np:a=11;break e;case Cp:a=14;break e;case mr:a=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=Dt(a,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function ks(e,t,n,r){return e=Dt(7,e,r,t),e.lanes=n,e}function xu(e,t,n,r){return e=Dt(22,e,r,t),e.elementType=pb,e.lanes=n,e.stateNode={isHidden:!1},e}function Ed(e,t,n){return e=Dt(6,e,null,t),e.lanes=n,e}function Td(e,t,n){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}
vendor: 5,453 bytes, line 40
40function yN(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=od(0),this.expirationTimes=od(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=od(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function um(e,t,n,r,s,i,a,l,c){return e=new yN(e,t,n,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Dt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qp(i),e}function xN(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Qs,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ik(e){if(!e)return Br;e=e._reactInternals;e:{if(Is(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(mt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(mt(n))return iw(e,n,t)}return t}function ak(e,t,n,r,s,i,a,l,c){return e=um(n,r,!0,e,s,i,a,l,c),e.context=ik(null),n=e.current,r=ot(),s=Lr(n),i=Gn(r,s),i.callback=t??null,Or(n,i,s),e.current.lanes=s,$o(e,s,r),gt(e,r),e}function vu(e,t,n,r){var s=t.current,i=ot(),a=Lr(s);return n=ik(n),t.context===null?t.context=n:t.pendingContext=n,t=Gn(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Or(s,t,a),e!==null&&(cn(e,s,a,i),Hl(e,s,a)),a}function Oc(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 My(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function dm(e,t){My(e,t),(e=e.alternate)&&My(e,t)}function vN(){return null}var ok=typeof reportError=="function"?reportError:function(e){console.error(e)};function hm(e){this._internalRoot=e}bu.prototype.render=hm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));vu(e,t,null,null)};bu.prototype.unmount=hm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ns(function(){vu(null,e,null,null)}),t[Jn]=null}};function bu(e){this._internalRoot=e}bu.prototype.unstable_scheduleHydration=function(e){if(e){var t=$b();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&&Bb(e)}};function fm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function wu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function $y(){}function bN(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=Oc(a);i.call(u)}}var a=ak(t,r,e,0,null,!1,!1,"",$y);return e._reactRootContainer=a,e[Jn]=a.current,io(e.nodeType===8?e.parentNode:e),Ns(),a}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var u=Oc(c);l.call(u)}}var c=um(e,0,!1,null,null,!1,!1,"",$y);return e._reactRootContainer=c,e[Jn]=c.current,io(e.nodeType===8?e.parentNode:e),Ns(function(){vu(t,c,n,r)}),c}function ku(e,t,n,r,s){var i=n._reactRootContainer;if(i){var a=i;if(typeof s=="function"){var l=s;s=function(){var c=Oc(a);l.call(c)}}vu(t,a,e,s)}else a=bN(n,t,e,s,r);return Oc(a)}Lb=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ea(t.pendingLanes);n!==0&&(Pp(t,n|1),gt(t,Te()),!(se&6)&&(Ui=Te()+500,qr()))}break;case 13:Ns(function(){var r=Qn(e,1);if(r!==null){var s=ot();cn(r,e,1,s)}}),dm(e,1)}};Rp=function(e){if(e.tag===13){var t=Qn(e,134217728);if(t!==null){var n=ot();cn(t,e,134217728,n)}dm(e,134217728)}};Mb=function(e){if(e.tag===13){var t=Lr(e),n=Qn(e,t);if(n!==null){var r=ot();cn(n,e,t,r)}dm(e,t)}};$b=function(){return ce};Fb=function(e,t){var n=ce;try{return ce=e,t()}finally{ce=n}};Rh=function(e,t,n){switch(t){case"input":if(Eh(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=hu(r);if(!s)throw Error(O(90));gb(r),Eh(r,s)}}}break;case"textarea":xb(e,n);break;case"select":t=n.value,t!=null&&mi(e,!!n.multiple,t,!1)}};Ab=am;Eb=Ns;var wN={usingClientEntryPoint:!1,Events:[Bo,ni,hu,Sb,jb,am]},ma={findFiberByHostInstance:ls,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},kN={bundleType:ma.bundleType,version:ma.version,rendererPackageName:ma.rendererPackageName,rendererConfig:ma.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Cb(e),e===null?null:e.stateNode},findFiberByHostInstance:ma.findFiberByHostInstance||vN,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{lu=wl.inject(kN),Tn=wl}catch{}}At.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wN;At.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fm(t))throw Error(O(200));return xN(e,t,null,n)};At.createRoot=function(e,t){if(!fm(e))throw Error(O(299));var n=!1,r="",s=ok;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=um(e,1,!1,null,null,n,!1,r,s),e[Jn]=t.current,io(e.nodeType===8?e.parentNode:e),new hm(t)};At.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(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=Cb(t),e=e===null?null:e.stateNode,e};At.flushSync=function(e){return Ns(e)};At.hydrate=function(e,t,n){if(!wu(t))throw Error(O(200));return ku(null,e,t,!0,n)};At.hydrateRoot=function(e,t,n){if(!fm(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",a=ok;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=ak(t,null,e,1,n??null,s,!1,i,a),e[Jn]=t.current,io(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 bu(t)};At.render=function(e,t,n){if(!wu(t))throw Error(O(200));return ku(null,e,t,!1,n)};At.unmountComponentAtNode=function(e){if(!wu(e))throw Error(O(40));return e._reactRootContainer?(Ns(function(){ku(null,null,e,!1,function(){e._reactRootContainer=null,e[Jn]=null})}),!0):!1};At.unstable_batchedUpdates=am;At.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!wu(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return ku(e,t,n,!1,r)};At.version="18.3.1-next-f1338f8080-20240426";function lk(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lk)}catch(e){console.error(e)}}lk(),lb.exports=At;var zo=lb.exports;const ck=Lo(zo);var uk,Fy=zo;uk=Fy.createRoot,Fy.hydrateRoot;var SN=typeof Element<"u",jN=typeof Map=="function",AN=typeof Set=="function",EN=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Xl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Xl(e[r],t[r]))return!1;return!0}var i;if(jN&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Xl(r.value[1],t.get(r.value[0])))return!1;return!0}if(AN&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(EN&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(SN&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!Xl(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var TN=function(t,n){try{return Xl(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const NN=Lo(TN);var CN=function(e,t,n,r,s,i,a,l){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,s,i,a,l],d=0;c=new Error(t.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},_N=CN;const By=Lo(_N);var IN=function(t,n,r,s){var i=r?r.call(s,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;
40if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),l=Object.keys(n);if(a.length!==l.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(n),u=0;u<a.length;u++){var d=a[u];if(!c(d))return!1;var h=t[d],f=n[d];if(i=r?r.call(s,h,f,d):void 0,i===!1||i===void 0&&h!==f)return!1}return!0};const PN=Lo(IN);var dk=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(dk||{}),Nd={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Uy=Object.values(dk),Su={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},hk=Object.entries(Su).reduce((e,[t,n])=>(e[n]=t,e),{}),on="data-rh",wi={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},ki=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},RN=e=>{let t=ki(e,"title");const n=ki(e,wi.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=ki(e,wi.DEFAULT_TITLE);return t||r||void 0},ON=e=>ki(e,wi.ON_CHANGE_CLIENT_STATE)||(()=>{}),Cd=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),DN=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const s=Object.keys(r);for(let i=0;i<s.length;i+=1){const l=s[i].toLowerCase();if(e.indexOf(l)!==-1&&r[l])return n.concat(r)}}return n},[]),LN=e=>console&&typeof console.warn=="function"&&console.warn(e),ga=(e,t,n)=>{const r={};return n.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&LN(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,i)=>{const a={};i.filter(c=>{let u;const d=Object.keys(c);for(let f=0;f<d.length;f+=1){const p=d[f],x=p.toLowerCase();t.indexOf(x)!==-1&&!(u==="rel"&&c[u].toLowerCase()==="canonical")&&!(x==="rel"&&c[x].toLowerCase()==="stylesheet")&&(u=x),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(u=p)}if(!u||!c[u])return!1;const h=c[u].toLowerCase();return r[u]||(r[u]={}),a[u]||(a[u]={}),r[u][h]?!1:(a[u][h]=!0,!0)}).reverse().forEach(c=>s.push(c));const l=Object.keys(a);for(let c=0;c<l.length;c+=1){const u=l[c],d={...r[u],...a[u]};r[u]=d}return s},[]).reverse()},MN=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},$N=e=>({baseTag:DN(["href"],e),bodyAttributes:Cd("bodyAttributes",e),defer:ki(e,wi.DEFER),encode:ki(e,wi.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Cd("htmlAttributes",e),linkTags:ga("link",["rel","href"],e),metaTags:ga("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:ga("noscript",["innerHTML"],e),onChangeClientState:ON(e),scriptTags:ga("script",["src","innerHTML"],e),styleTags:ga("style",["cssText"],e),title:RN(e),titleAttributes:Cd("titleAttributes",e),prioritizeSeoTags:MN(e,wi.PRIORITIZE_SEO_TAGS)}),fk=e=>Array.isArray(e)?e.join(""):e,FN=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},_d=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(FN(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},zy=(e,t)=>({...e,[t]:void 0}),BN=["noscript","script","style"],ff=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),pk=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),UN=(e,t,n,r)=>{const s=pk(n),i=fk(t);return s?`<${e} ${on}="true" ${s}>${ff(i,r)}</${e}>`:`<${e} ${on}="true">${ff(i,r)}</${e}>`},zN=(e,t,n=!0)=>t.reduce((r,s)=>{const i=s,a=Object.keys(i).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const h=typeof i[d]>"u"?d:`${d}="${ff(i[d],n)}"`;return u?`${u} ${h}`:h},""),l=i.innerHTML||i.cssText||"",c=BN.indexOf(e)===-1;return`${r}<${e} ${on}="true" ${a}${c?"/>":`>${l}</${e}>`}`},""),mk=(e,t={})=>Object.keys(e).reduce((n,r)=>{const s=Su[r];return n[s||r]=e[r],n},t),VN=(e,t,n)=>{const r={key:t,[on]:!0},s=mk(n,r);return[_.createElement("title",s,t)]},Zl=(e,t)=>t.map((n,r)=>{const s={key:r,[on]:!0};
40return Object.keys(n).forEach(i=>{const l=Su[i]||i;if(l==="innerHTML"||l==="cssText"){const c=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:c}}else s[l]=n[i]}),_.createElement(e,s)}),It=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>VN(e,t.title,t.titleAttributes),toString:()=>UN(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>mk(t),toString:()=>pk(t)};default:return{toComponent:()=>Zl(e,t),toString:()=>zN(e,t,n)}}},WN=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const s=_d(e,Nd.meta),i=_d(t,Nd.link),a=_d(n,Nd.script);return{priorityMethods:{toComponent:()=>[...Zl("meta",s.priority),...Zl("link",i.priority),...Zl("script",a.priority)],toString:()=>`${It("meta",s.priority,r)} ${It("link",i.priority,r)} ${It("script",a.priority,r)}`},metaTags:s.default,linkTags:i.default,scriptTags:a.default}},HN=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:i,styleTags:a,title:l="",titleAttributes:c,prioritizeSeoTags:u}=e;let{linkTags:d,metaTags:h,scriptTags:f}=e,p={toComponent:()=>[],toString:()=>""};return u&&({priorityMethods:p,linkTags:d,metaTags:h,scriptTags:f}=WN(e)),{priority:p,base:It("base",t,r),bodyAttributes:It("bodyAttributes",n,r),htmlAttributes:It("htmlAttributes",s,r),link:It("link",d,r),meta:It("meta",h,r),noscript:It("noscript",i,r),script:It("script",f,r),style:It("style",a,r),title:It("title",{title:l,titleAttributes:c},r)}},pf=HN,kl=[],pm=!!(typeof window<"u"&&window.document&&window.document.createElement),mf=class{constructor(e,t){Ln(this,"instances",[]);Ln(this,"canUseDOM",pm);Ln(this,"context");Ln(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?kl:this.instances,add:e=>{(this.canUseDOM?kl:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?kl:this.instances).indexOf(e);(this.canUseDOM?kl:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=pf({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},KN=parseInt(_.version.split(".")[0],10),gf=KN>=19,qN={},gk=_.createContext(qN),ps,yk=(ps=class extends w.Component{constructor(n){super(n);Ln(this,"helmetData");gf?this.helmetData=null:this.helmetData=new mf(this.props.context||{},ps.canUseDOM)}render(){return gf?_.createElement(_.Fragment,null,this.props.children):_.createElement(gk.Provider,{value:this.helmetData.value},this.props.children)}},Ln(ps,"canUseDOM",pm),ps),Us=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${on}]`),s=[].slice.call(r),i=[];let a;return t&&t.length&&t.forEach(l=>{const c=document.createElement(e);for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u))if(u==="innerHTML")c.innerHTML=l.innerHTML;else if(u==="cssText"){const d=l.cssText;c.appendChild(document.createTextNode(d))}else{const d=u,h=typeof l[d]>"u"?"":l[d];c.setAttribute(u,h)}c.setAttribute(on,"true"),s.some((u,d)=>(a=d,c.isEqualNode(u)))?s.splice(a,1):i.push(c)}),s.forEach(l=>{var c;return(c=l.parentNode)==null?void 0:c.removeChild(l)}),i.forEach(l=>n.appendChild(l)),{oldTags:s,newTags:i}},yf=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(on),s=r?r.split(","):[],i=[...s],a=Object.keys(t);for(const l of a){const c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),s.indexOf(l)===-1&&s.push(l);const u=i.indexOf(l);u!==-1&&i.splice(u,1)}for(let l=i.length-1;l>=0;l-=1)n.removeAttribute(i[l]);s.length===i.length?n.removeAttribute(on):n.getAttribute(on)!==a.join(",")&&n.setAttribute(on,a.join(","))},GN=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=fk(e)),yf("title",t)},Vy=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:i,metaTags:a,noscriptTags:l,onChangeClientState:c,scriptTags:u,styleTags:d,title:h,titleAttributes:f}=e;yf("body",r),yf("html",s),GN(h,f);const p={baseTag:Us("base",n),linkTags:Us("link",i),metaTags:Us("meta",a),noscriptTags:Us("noscript",l),scriptTags:Us("script",u),styleTags:Us("style",d)},x={},y={};
40Object.keys(p).forEach(b=>{const{newTags:g,oldTags:m}=p[b];g.length&&(x[b]=g),m.length&&(y[b]=p[b].oldTags)}),t&&t(),c(e,x,y)},ya=null,YN=e=>{ya&&cancelAnimationFrame(ya),e.defer?ya=requestAnimationFrame(()=>{Vy(e,()=>{ya=null})}):(Vy(e),ya=null)},JN=YN,Wy=class extends w.Component{constructor(){super(...arguments);Ln(this,"rendered",!1)}shouldComponentUpdate(t){return!PN(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const s=$N(t.get().map(i=>{const{context:a,...l}=i.props;return l}));yk.canUseDOM?JN(s):pf&&(r=pf(s)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},ec=[],Hy=e=>{const t={};for(const n of Object.keys(e))t[hk[n]||n]=e[n];return t},Zr=e=>{const t={};for(const n of Object.keys(e)){const r=Su[n];t[r||n]=e[n]}return t},Ky=(e,t)=>{if(!pm)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",s=n.getAttribute(r),i=s?s.split(","):[],a=Object.keys(t);for(const l of i)a.includes(l)||n.removeAttribute(l);for(const l of a){const c=t[l];c==null||c===!1?n.removeAttribute(l):c===!0?n.setAttribute(l,""):n.setAttribute(l,String(c))}a.length>0?n.setAttribute(r,a.join(",")):n.removeAttribute(r)},Id=()=>{const e={},t={};for(const n of ec){const{htmlAttributes:r,bodyAttributes:s}=n.props;r&&Object.assign(e,Hy(r)),s&&Object.assign(t,Hy(s))}Ky("html",e),Ky("body",t)},QN=class extends w.Component{componentDidMount(){ec.push(this),Id()}componentDidUpdate(){Id()}componentWillUnmount(){const e=ec.indexOf(this);e!==-1&&ec.splice(e,1),Id()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return _.createElement("title",Zr(t),e)}renderBase(){const{base:e}=this.props;return e?_.createElement("base",Zr(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>_.createElement("meta",{key:n,...Zr(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>_.createElement("link",{key:n,...Zr(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,i=Zr(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),_.createElement("script",{key:n,...i})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:r,...s}=t,i=Zr(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),_.createElement("style",{key:n,...i})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,i=Zr(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),_.createElement("noscript",{key:n,...i})})}render(){return _.createElement(_.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},vh,xk=(vh=class extends w.Component{shouldComponentUpdate(e){return!NN(zy(this.props,"helmetData"),zy(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}
40warnOnInvalidChildren(e,t){return By(Uy.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Uy.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),By(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return _.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:s,...i}=r.props,a=Object.keys(i).reduce((c,u)=>(c[hk[u]||u]=i[u],c),{});let{type:l}=r;switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(r,s),l){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,a,s);break;default:t=this.mapObjectTypeChildren(r,t,a,s);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof mf)){const s=r;r=new mf(s.context,!0),delete n.helmetData}return gf?_.createElement(QN,{...n}):r?_.createElement(Wy,{...n,context:r.value}):_.createElement(gk.Consumer,null,s=>_.createElement(Wy,{...n,context:s}))}},Ln(vh,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),vh);const XN=1,ZN=1e6;let Pd=0;function eC(){return Pd=(Pd+1)%Number.MAX_SAFE_INTEGER,Pd.toString()}const Rd=new Map,qy=e=>{if(Rd.has(e))return;const t=setTimeout(()=>{Rd.delete(e),Ua({type:"REMOVE_TOAST",toastId:e})},ZN);Rd.set(e,t)},tC=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,XN)};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?qy(n):e.toasts.forEach(r=>{qy(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)}}},tc=[];let nc={toasts:[]};function Ua(e){nc=tC(nc,e),tc.forEach(t=>{t(nc)})}function nC({...e}){const t=eC(),n=s=>Ua({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>Ua({type:"DISMISS_TOAST",toastId:t});return Ua({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function Vo(){const[e,t]=w.useState(nc);return w.useEffect(()=>(tc.push(t),()=>{const n=tc.indexOf(t);n>-1&&tc.splice(n,1)}),[e]),{...e,toast:nC,dismiss:n=>Ua({type:"DISMISS_TOAST",toastId:n})}}function Ne(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 Gy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vk(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Gy(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():Gy(e[s],null)}}}}function jt(...e){return w.useCallback(vk(...e),e)}function Ji(e,t=[]){let n=[];function r(i,a){const l=w.createContext(a),c=n.length;n=[...n,a];const u=h=>{var g;const{scope:f,children:p,...x}=h,y=((g=f==null?void 0:f[e])==null?void 0:g[c])||l,b=w.useMemo(()=>x,Object.values(x));return o.jsx(y.Provider,{value:b,children:p})};u.displayName=i+"Provider";function d(h,f){var y;const p=((y=f==null?void 0:f[e])==null?void 0:y[c])||l,x=w.useContext(p);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,d]}const s=()=>{const i=n.map(a=>w.createContext(a));return function(l){const c=(l==null?void 0:l[e])||i;return w.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return s.scopeName=e,[r,rC(s,...t)]}function rC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));
vendor: 8,358 bytes, line 40
40return function(i){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const h=c(i)[`__scope${u}`];return{...l,...h}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Dc(e){const t=iC(e),n=w.forwardRef((r,s)=>{const{children:i,...a}=r,l=w.Children.toArray(i),c=l.find(oC);if(c){const u=c.props.children,d=l.map(h=>h===c?w.Children.count(u)>1?w.Children.only(null):w.isValidElement(u)?u.props.children:null:h);return o.jsx(t,{...a,ref:s,children:w.isValidElement(u)?w.cloneElement(u,void 0,d):null})}return o.jsx(t,{...a,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var sC=Dc("Slot");function iC(e){const t=w.forwardRef((n,r)=>{const{children:s,...i}=n;if(w.isValidElement(s)){const a=cC(s),l=lC(i,s.props);return s.type!==w.Fragment&&(l.ref=r?vk(r,a):a),w.cloneElement(s,l)}return w.Children.count(s)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bk=Symbol("radix.slottable");function aC(e){const t=({children:n})=>o.jsx(o.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=bk,t}function oC(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bk}function lC(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 cC(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 wk(e){const t=e+"CollectionProvider",[n,r]=Ji(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=y=>{const{scope:b,children:g}=y,m=_.useRef(null),v=_.useRef(new Map).current;return o.jsx(s,{scope:b,itemMap:v,collectionRef:m,children:g})};a.displayName=t;const l=e+"CollectionSlot",c=Dc(l),u=_.forwardRef((y,b)=>{const{scope:g,children:m}=y,v=i(l,g),k=jt(b,v.collectionRef);return o.jsx(c,{ref:k,children:m})});u.displayName=l;const d=e+"CollectionItemSlot",h="data-radix-collection-item",f=Dc(d),p=_.forwardRef((y,b)=>{const{scope:g,children:m,...v}=y,k=_.useRef(null),S=jt(b,k),j=i(d,g);return _.useEffect(()=>(j.itemMap.set(k,{ref:k,...v}),()=>void j.itemMap.delete(k))),o.jsx(f,{[h]:"",ref:S,children:m})});p.displayName=d;function x(y){const b=i(e+"CollectionConsumer",y);return _.useCallback(()=>{const m=b.collectionRef.current;if(!m)return[];const v=Array.from(m.querySelectorAll(`[${h}]`));return Array.from(b.itemMap.values()).sort((j,A)=>v.indexOf(j.ref.current)-v.indexOf(A.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:u,ItemSlot:p},x,r]}var uC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$e=uC.reduce((e,t)=>{const n=Dc(`Primitive.${t}`),r=w.forwardRef((s,i)=>{const{asChild:a,...l}=s,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),o.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function kk(e,t){e&&zo.flushSync(()=>e.dispatchEvent(t))}function Ur(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function dC(e,t=globalThis==null?void 0:globalThis.document){const n=Ur(e);w.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 hC="DismissableLayer",xf="dismissableLayer.update",fC="dismissableLayer.pointerDownOutside",pC="dismissableLayer.focusOutside",Yy,Sk=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mm=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...c}=e,u=w.useContext(Sk),[d,h]=w.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=w.useState({}),x=jt(t,A=>h(A)),y=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=y.indexOf(b),m=d?y.indexOf(d):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,k=m>=g,S=gC(A=>{const E=A.target,N=[...u.branches].some(R=>R.contains(E));!k||N||(s==null||s(A),a==null||a(A),A.defaultPrevented||l==null||l())},f),j=yC(A=>{const E=A.target;[...u.branches].some(R=>R.contains(E))||(i==null||i(A),a==null||a(A),A.defaultPrevented||l==null||l())},f);return dC(A=>{m===u.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()))},f),w.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Yy=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Jy(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Yy)}},[d,f,n,u]),w.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Jy())},[d,u]),w.useEffect(()=>{const A=()=>p({});return document.addEventListener(xf,A),()=>document.removeEventListener(xf,A)},[]),o.jsx($e.div,{...c,ref:x,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:Ne(e.onFocusCapture,j.onFocusCapture),onBlurCapture:Ne(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:Ne(e.onPointerDownCapture,S.onPointerDownCapture)})});mm.displayName=hC;var mC="DismissableLayerBranch",jk=w.forwardRef((e,t)=>{const n=w.useContext(Sk),r=w.useRef(null),s=jt(t,r);return w.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),o.jsx($e.div,{...e,ref:s})});jk.displayName=mC;function gC(e,t=globalThis==null?void 0:globalThis.document){const n=Ur(e),r=w.useRef(!1),s=w.useRef(()=>{});return w.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let c=function(){Ak(fC,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},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function yC(e,t=globalThis==null?void 0:globalThis.document){const n=Ur(e),r=w.useRef(!1);return w.useEffect(()=>{const s=i=>{i.target&&!r.current&&Ak(pC,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 Jy(){const e=new CustomEvent(xf);document.dispatchEvent(e)}function Ak(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?kk(s,i):s.dispatchEvent(i)}var xC=mm,vC=jk,In=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},bC="Portal",Ek=w.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[s,i]=w.useState(!1);In(()=>i(!0),[]);const a=n||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?ck.createPortal(o.jsx($e.div,{...r,ref:t}),a):null});Ek.displayName=bC;function wC(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var ju=e=>{const{present:t,children:n}=e,r=kC(t),s=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),i=jt(r.ref,SC(s));return typeof n=="function"||r.isPresent?w.cloneElement(s,{ref:i}):null};ju.displayName="Presence";function kC(e){const[t,n]=w.useState(),r=w.useRef(null),s=w.useRef(e),i=w.useRef("none"),a=e?"mounted":"unmounted",[l,c]=wC(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=Sl(r.current);i.current=l==="mounted"?u:"none"},[l]),In(()=>{const u=r.current,d=s.current;if(d!==e){const f=i.current,p=Sl(u);e?c("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&f!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),In(()=>
40{if(t){let u;const d=t.ownerDocument.defaultView??window,h=p=>{const y=Sl(r.current).includes(p.animationName);if(p.target===t&&y&&(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=p=>{p.target===t&&(i.current=Sl(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:w.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Sl(e){return(e==null?void 0:e.animationName)||"none"}function SC(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 jC=Sp[" useInsertionEffect ".trim().toString()]||In;function Au({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,a]=AC({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:s;{const d=w.useRef(e!==void 0);w.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=w.useCallback(d=>{var h;if(l){const f=EC(d)?d(e):d;f!==e&&((h=a.current)==null||h.call(a,f))}else i(d)},[l,e,i,a]);return[c,u]}function AC({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),s=w.useRef(n),i=w.useRef(t);return jC(()=>{i.current=t},[t]),w.useEffect(()=>{var a;s.current!==n&&((a=i.current)==null||a.call(i,n),s.current=n)},[n,s]),[n,r,i]}function EC(e){return typeof e=="function"}var TC=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"}),NC="VisuallyHidden",Eu=w.forwardRef((e,t)=>o.jsx($e.span,{...e,ref:t,style:{...TC,...e.style}}));Eu.displayName=NC;var CC=Eu,gm="ToastProvider",[ym,_C,IC]=wk("Toast"),[Tk,k6]=Ji("Toast",[IC]),[PC,Tu]=Tk(gm),Nk=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:a}=e,[l,c]=w.useState(null),[u,d]=w.useState(0),h=w.useRef(!1),f=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${gm}\`. Expected non-empty \`string\`.`),o.jsx(ym.Provider,{scope:t,children:o.jsx(PC,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:w.useCallback(()=>d(p=>p+1),[]),onToastRemove:w.useCallback(()=>d(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:a})})};Nk.displayName=gm;var Ck="ToastViewport",RC=["F8"],vf="toast.viewportPause",bf="toast.viewportResume",_k=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=RC,label:s="Notifications ({hotkey})",...i}=e,a=Tu(Ck,n),l=_C(n),c=w.useRef(null),u=w.useRef(null),d=w.useRef(null),h=w.useRef(null),f=jt(t,h,a.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=a.toastCount>0;w.useEffect(()=>{const b=g=>{var v;r.length!==0&&r.every(k=>g[k]||g.code===k)&&((v=h.current)==null||v.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),w.useEffect(()=>{const b=c.current,g=h.current;if(x&&b&&g){const m=()=>{if(!a.isClosePausedRef.current){const j=new CustomEvent(vf);g.dispatchEvent(j),a.isClosePausedRef.current=!0}},v=()=>{if(a.isClosePausedRef.current){const j=new CustomEvent(bf);g.dispatchEvent(j),a.isClosePausedRef.current=!1}},k=j=>{!b.contains(j.relatedTarget)&&v()},S=()=>{b.contains(document.activeElement)||v()};return b.addEventListener("focusin",m),b.addEventListener("focusout",k),b.addEventListener("pointermove",m),b.addEventListener("pointerleave",S),window.addEventListener("blur",m),window.addEventListener("focus",v),()=>{b.removeEventListener("focusin",m),b.removeEventListener("focusout",k),b.removeEventListener("pointermove",m),b.removeEventListener("pointerleave",S),window.removeEventListener("blur",m),window.removeEventListener("focus",v)}}},[x,a.isClosePausedRef]);const y=w.useCallback(({tabbingDirection:b})=>{const m=l().map(v=>
40{const k=v.ref.current,S=[k,...KC(k)];return b==="forwards"?S:S.reverse()});return(b==="forwards"?m.reverse():m).flat()},[l]);return w.useEffect(()=>{const b=h.current;if(b){const g=m=>{var S,j,A;const v=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!v){const E=document.activeElement,N=m.shiftKey;if(m.target===b&&N){(S=u.current)==null||S.focus();return}const D=y({tabbingDirection:N?"backwards":"forwards"}),K=D.findIndex(M=>M===E);Od(D.slice(K+1))?m.preventDefault():N?(j=u.current)==null||j.focus():(A=d.current)==null||A.focus()}};return b.addEventListener("keydown",g),()=>b.removeEventListener("keydown",g)}},[l,y]),o.jsxs(vC,{ref:c,role:"region","aria-label":s.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&o.jsx(wf,{ref:u,onFocusFromOutsideViewport:()=>{const b=y({tabbingDirection:"forwards"});Od(b)}}),o.jsx(ym.Slot,{scope:n,children:o.jsx($e.ol,{tabIndex:-1,...i,ref:f})}),x&&o.jsx(wf,{ref:d,onFocusFromOutsideViewport:()=>{const b=y({tabbingDirection:"backwards"});Od(b)}})]})});_k.displayName=Ck;var Ik="ToastFocusProxy",wf=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=Tu(Ik,n);return o.jsx(Eu,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:a=>{var u;const l=a.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});wf.displayName=Ik;var Wo="Toast",OC="toast.swipeStart",DC="toast.swipeMove",LC="toast.swipeCancel",MC="toast.swipeEnd",Pk=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...a}=e,[l,c]=Au({prop:r,defaultProp:s??!0,onChange:i,caller:Wo});return o.jsx(ju,{present:n||l,children:o.jsx(BC,{open:l,...a,ref:t,onClose:()=>c(!1),onPause:Ur(e.onPause),onResume:Ur(e.onResume),onSwipeStart:Ne(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ne(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:Ne(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:Ne(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)})})})});Pk.displayName=Wo;var[$C,FC]=Tk(Wo,{onClose(){}}),BC=w.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:a,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:p,...x}=e,y=Tu(Wo,n),[b,g]=w.useState(null),m=jt(t,M=>g(M)),v=w.useRef(null),k=w.useRef(null),S=s||y.duration,j=w.useRef(0),A=w.useRef(S),E=w.useRef(0),{onToastAdd:N,onToastRemove:R}=y,z=Ur(()=>{var Z;(b==null?void 0:b.contains(document.activeElement))&&((Z=y.viewport)==null||Z.focus()),a()}),D=w.useCallback(M=>{!M||M===1/0||(window.clearTimeout(E.current),j.current=new Date().getTime(),E.current=window.setTimeout(z,M))},[z]);w.useEffect(()=>{const M=y.viewport;if(M){const Z=()=>{D(A.current),u==null||u()},q=()=>{const V=new Date().getTime()-j.current;A.current=A.current-V,window.clearTimeout(E.current),c==null||c()};return M.addEventListener(vf,q),M.addEventListener(bf,Z),()=>{M.removeEventListener(vf,q),M.removeEventListener(bf,Z)}}},[y.viewport,S,c,u,D]),w.useEffect(()=>{i&&!y.isClosePausedRef.current&&D(S)},[i,S,y.isClosePausedRef,D]),w.useEffect(()=>(N(),()=>R()),[N,R]);const K=w.useMemo(()=>b?Fk(b):null,[b]);return y.viewport?o.jsxs(o.Fragment,{children:[K&&o.jsx(UC,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:K}),o.jsx($C,{scope:n,onClose:z,children:zo.createPortal(o.jsx(ym.ItemSlot,{scope:n,children:o.jsx(xC,{asChild:!0,onEscapeKeyDown:Ne(l,()=>{y.isFocusedToastEscapeKeyDownRef.current||z(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:o.jsx($e.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":y.swipeDirection,...x,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ne(e.onKeyDown,M=>{M.key==="Escape"&&(l==null||l(M.nativeEvent),M.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:Ne(e.onPointerDown,M=>{M.button===0&&(v.current={x:M.clientX,y:M.clientY})}),onPointerMove:Ne(e.onPointerMove,M=>{if(!v.current)return;const Z=M.clientX-v.current.x,q=M.clientY-v.current.y,V=!!k.current,T=["left","right"].includes(y.swipeDirection),P=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,$=T?P(0,Z):0,Y=T?0:P(0,q),W=M.pointerType==="touch"?10:2,ee={x:$,y:Y},ne={originalEvent:M,delta:ee};V?(k.current=ee,jl(DC,h,ne,{discrete:!1})):Qy(ee,y.swipeDirection,W)?(k.current=ee,jl(OC,d,ne,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(Z)>W||Math.abs(q)>W)&&(v.current=null)}),onPointerUp:Ne(e.onPointerUp,M=>{const Z=k.current,q=M.target;if(q.hasPointerCapture(M.pointerId)&&q.releasePointerCapture(M.pointerId),k.current=null,v.current=null,Z){const V=M.currentTarget,T={originalEvent:M,delta:Z};Qy(Z,y.swipeDirection,y.swipeThreshold)?jl(MC,p,T,{discrete:!0}):jl(LC,f,T,{discrete:!0}),V.addEventListener("click",P=>P.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),UC=e=>{const{__scopeToast:t,children:n,...r}=e,s=Tu(Wo,t),[i,a]=w.useState(!1),[l,c]=w.useState(!1);return WC(()=>a(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:o.jsx(Ek,{asChild:!0,children:o.jsx(Eu,{...r,children:i&&o.jsxs(o.Fragment,{children:[s.label," ",n]})})})},zC="ToastTitle",Rk=w.forwardRef((e,t)=>
vendor: 4,742 bytes, lines 40-60
40{const{__scopeToast:n,...r}=e;return o.jsx($e.div,{...r,ref:t})});Rk.displayName=zC;var VC="ToastDescription",Ok=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return o.jsx($e.div,{...r,ref:t})});Ok.displayName=VC;var Dk="ToastAction",Lk=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?o.jsx($k,{altText:n,asChild:!0,children:o.jsx(xm,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Dk}\`. Expected non-empty \`string\`.`),null)});Lk.displayName=Dk;var Mk="ToastClose",xm=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=FC(Mk,n);return o.jsx($k,{asChild:!0,children:o.jsx($e.button,{type:"button",...r,ref:t,onClick:Ne(e.onClick,s.onClose)})})});xm.displayName=Mk;var $k=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return o.jsx($e.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function Fk(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),HC(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...Fk(r))}}),t}function jl(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?kk(s,i):s.dispatchEvent(i)}var Qy=(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 WC(e=()=>{}){const t=Ur(e);In(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function HC(e){return e.nodeType===e.ELEMENT_NODE}function KC(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 Od(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var qC=Nk,Bk=_k,Uk=Pk,zk=Rk,Vk=Ok,Wk=Lk,Hk=xm;function Kk(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=Kk(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qk(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Kk(e))&&(r&&(r+=" "),r+=t);return r}const Xy=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Zy=qk,Gk=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Zy(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,a=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=Xy(d)||Xy(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,...p}=d;return Object.entries(p).every(x=>{let[y,b]=x;return Array.isArray(b)?b.includes({...i,...l}[y]):{...i,...l}[y]===b})?[...u,h,f]:u},[]);return Zy(e,a,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 GC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Yk=(...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 YC={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 JC=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:a,...l},c)=>w.createElement("svg",{ref:c,...YC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Yk("lucide",s),...l},[...a.map(([u,d])=>w.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 le=(e,t)=>
60{const n=w.forwardRef(({className:r,...s},i)=>w.createElement(JC,{ref:i,iconNode:t,className:Yk(`lucide-${GC(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 za=le("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 66 * @license lucide-react v0.462.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const re=le("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** 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 Jk=le("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** 76 * @license lucide-react v0.462.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const QC=le("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 81 * @license lucide-react v0.462.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const Qk=le("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 86 * @license lucide-react v0.462.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const XC=le("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"}]]);/** 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 Ho=le("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 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 Xk=le("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 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 ex=le("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 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 Zk=le("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 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 ZC=le("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 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 e_=le("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 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 e1=le("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"}]]);/** 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 Dd=le("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 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 t_=le("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"}]]);/** 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 vm=le("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"}]]);/** 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 n_=le("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"}]]);/** 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 t1=le("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"}]]);/** 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 r_=le("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 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 bm=le("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"}]]);/** 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 s_=le("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"}]]);/** 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 Nu=le("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"}]]);/** 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 i_=le("Presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]);/** 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 Va=le("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"}]]);/** 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 a_=le("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"}]]);/** 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 o_=le("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"}]]);/** 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 tx=le("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"}]]);/** 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 Qi=le("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"}]]);/** 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 wm=le("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 6,283 bytes, lines 205-210
205],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 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 l_=le("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"}]]),km="-",c_=e=>{const t=d_(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const l=a.split(km);return l[0]===""&&l.length!==1&&l.shift(),n1(l,t)||u_(a)},getConflictingClassGroupIds:(a,l)=>{const c=n[a]||[];return l&&r[a]?[...c,...r[a]]:c}}},n1=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?n1(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(km);return(a=t.validators.find(({validator:l})=>l(i)))==null?void 0:a.classGroupId},nx=/^\[(.+)\]$/,u_=e=>{if(nx.test(e)){const t=nx.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},d_=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return f_(Object.entries(e.classGroups),n).forEach(([i,a])=>{kf(a,r,i,t)}),r},kf=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:rx(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(h_(s)){kf(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,a])=>{kf(a,rx(t,i),n,r)})})},rx=(e,t)=>{let n=e;return t.split(km).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},h_=e=>e.isThemeGetter,f_=(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(([a,l])=>[t+a,l])):i);return[n,s]}):e,p_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return s(i,a),a},set(i,a){n.has(i)?n.set(i,a):s(i,a)}}},r1="!",m_=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,a=l=>{const c=[];let u=0,d=0,h;for(let b=0;b<l.length;b++){let g=l[b];if(u===0){if(g===s&&(r||l.slice(b,b+i)===t)){c.push(l.slice(d,b)),d=b+i;continue}if(g==="/"){h=b;continue}}g==="["?u++:g==="]"&&u--}const f=c.length===0?l:l.substring(d),p=f.startsWith(r1),x=p?f.substring(1):f,y=h&&h>d?h-d:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:x,maybePostfixModifierPosition:y}};return n?l=>n({className:l,parseClassName:a}):a},g_=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},y_=e=>({cache:p_(e.cacheSize),parseClassName:m_(e),...c_(e)}),x_=/\s+/,v_=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],a=e.trim().split(x_);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{modifiers:d,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:p}=n(u);let x=!!p,y=r(x?f.substring(0,p):f);if(!y){if(!x){l=u+(l.length>0?" "+l:l);continue}if(y=r(f),!y){l=u+(l.length>0?" "+l:l);continue}x=!1}const b=g_(d).join(":"),g=h?b+r1:b,m=g+y;if(i.includes(m))continue;i.push(m);const v=s(y,x);for(let k=0;k<v.length;++k){const S=v[k];i.push(g+S)}l=u+(l.length>0?" "+l:l)}return l};function b_(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=s1(t))&&(r&&(r+=" "),r+=n);return r}const s1=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=s1(e[r]))&&(n&&(n+=" "),n+=t);return n};function w_(e,...t){let n,r,s,i=a;function a(c){const u=t.reduce((d,h)=>h(d),e());return n=y_(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=v_(c,n);return s(c,d),d}return function(){return i(b_.apply(null,arguments))}}const pe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},i1=/^\[(?:([a-z-]+):)?(.+)\]$/i,k_=/^\d+\/\d+$/,S_=new Set(["px","full","screen"]),j_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,A_=/\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$/,E_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,T_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,N_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mn=e=>Si(e)||S_.has(e)||k_.test(e),ur=e=>Xi(e,"length",L_),Si=e=>!!e&&!Number.isNaN(Number(e)),Ld=e=>Xi(e,"number",Si),xa=e=>!!e&&Number.isInteger(Number(e)),C_=e=>e.endsWith("%")&&Si(e.slice(0,-1)),X=e=>i1.test(e),dr=e=>j_.test(e),__=new Set(["length","size","percentage"]),I_=e=>Xi(e,__,a1),P_=e=>Xi(e,"position",a1),R_=new Set(["image","url"]),O_=e=>Xi(e,R_,$_),D_=e=>Xi(e,"",M_),va=()=>!0,Xi=(e,t,n)=>{const r=i1.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},L_=e=>A_.test(e)&&!E_.test(e),a1=()=>!1,M_=e=>T_.test(e),$_=e=>N_.test(e),F_=()=>{const e=pe("colors"),t=pe("spacing"),n=pe("blur"),r=pe("brightness"),s=pe("borderColor"),i=pe("borderRadius"),a=pe("borderSpacing"),l=pe("borderWidth"),c=pe("contrast"),u=pe("grayscale"),d=pe("hueRotate"),h=pe("invert"),f=pe("gap"),p=pe("gradientColorStops"),x=pe("gradientColorStopPositions"),y=pe("inset"),b=pe("margin"),g=pe("opacity"),m=pe("padding"),v=pe("saturate"),k=pe("scale"),S=pe("sepia"),j=pe("skew"),A=pe("space"),E=pe("translate"),N=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",X,t],D=()=>[X,t],K=()=>["",Mn,ur],M=()=>["auto",Si,X],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",X],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[Si,X];return{cacheSize:500,separator:":",theme:{colors:[va],spacing:[Mn,ur],blur:["none","",dr,X],brightness:Y(),borderColor:[e],borderRadius:["n
210one","","full",dr,X],borderSpacing:D(),borderWidth:K(),contrast:Y(),grayscale:P(),hueRotate:Y(),invert:P(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[C_,ur],inset:z(),margin:z(),opacity:Y(),padding:D(),saturate:Y(),scale:Y(),sepia:P(),skew:Y(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",X]}],container:["container"],columns:[{columns:[dr]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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:[...Z(),X]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xa,X]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",X]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",xa,X]}],"grid-cols":[{"grid-cols":[va]}],"col-start-end":[{col:["auto",{span:["full",xa,X]},X]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[va]}],"row-start-end":[{row:["auto",{span:[xa,X]},X]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",X]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",X]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[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":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",X,t]}],"min-w":[{"min-w":[X,t,"min","max","fit"]}],"max-w":[{"max-w":[X,t,"none","full","min","max","fit","prose",{screen:[dr]},dr]}],h:[{h:[X,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[X,t,"auto","min","max","fit"]}],"font-size":[{text:["base",dr,ur]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ld]}],"font-family":[{font:[va]}],"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",X]}],"line-clamp":[{"line-clamp":["none",Si,Ld]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Mn,X]}],"list-image":[{"list-image":["none",X]}],"list-style-type":[{list:["none","disc","decimal",X]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Mn,ur]}],"underline-offset":[{"underline-offset":["auto",Mn,X]}],"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:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X]}],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",X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),P_]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",I_]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},O_]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}
vendor: 5,172 bytes, line 210
210],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],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":[g]}],"border-style":[{border:[...q(),"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":[g]}],"divide-style":[{divide:q()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[Mn,X]}],"outline-w":[{outline:[Mn,ur]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Mn,ur]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",dr,D_]}],"shadow-color":[{shadow:[va]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",dr,X]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[v]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",X]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",X]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",X]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[xa,X]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",X]}],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",X]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,646 bytes, line 210
210],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",X]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Mn,ur,Ld]}],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"]}}},B_=w_(F_);function mn(...e){return B_(qk(e))}const U_=qC,o1=w.forwardRef(({className:e,...t},n)=>o.jsx(Bk,{ref:n,className:mn("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));o1.displayName=Bk.displayName;const z_=Gk("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"}}),l1=w.forwardRef(({className:e,variant:t,...n},r)=>o.jsx(Uk,{ref:r,className:mn(z_({variant:t}),e),...n}));l1.displayName=Uk.displayName;const V_=w.forwardRef(({className:e,...t},n)=>o.jsx(Wk,{ref:n,className:mn("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}));V_.displayName=Wk.displayName;const c1=w.forwardRef(({className:e,...t},n)=>o.jsx(Hk,{ref:n,className:mn("absolute right-2 top-2 rounded-md p-1 text-foreground
210/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:o.jsx(wm,{className:"h-4 w-4"})}));c1.displayName=Hk.displayName;const u1=w.forwardRef(({className:e,...t},n)=>o.jsx(zk,{ref:n,className:mn("text-sm font-semibold",e),...t}));u1.displayName=zk.displayName;const d1=w.forwardRef(({className:e,...t},n)=>o.jsx(Vk,{ref:n,className:mn("text-sm opacity-90",e),...t}));d1.displayName=Vk.displayName;function W_(){const{toasts:e}=Vo();return o.jsxs(U_,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return o.jsxs(l1,{...i,children:[o.jsxs("div",{className:"grid gap-1",children:[n&&o.jsx(u1,{children:n}),r&&o.jsx(d1,{children:r})]}),s,o.jsx(c1,{})]},t)}),o.jsx(o1,{})]})}var sx=["light","dark"],H_="(prefers-color-scheme: dark)",K_=w.createContext(void 0),q_={setTheme:e=>{},themes:[]},G_=()=>{var e;return(e=w.useContext(K_))!=null?e:q_};w.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:a,attrs:l,nonce:c})=>{let u=i==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=s?sx.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(x,y=!1,b=!0)=>{let g=a?a[x]:x,m=y?x+"|| ''":`'${g}'`,v="";return s&&b&&!y&&sx.includes(x)&&(v+=`d.style.colorScheme = '${x}';`),n==="class"?y||g?v+=`c.add(${m})`:v+="null":g&&(v+=`d[s](n,${m})`),v},p=e?`!function(){${d}${f(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${H_}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}${u?"":"else{"+f(i,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${h}}catch(t){}}();`;return w.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:p}})});var Y_=e=>{switch(e){case"success":return X_;case"info":return eI;case"warning":return Z_;case"error":return tI;default:return null}},J_=Array(12).fill(0),Q_=({visible:e,className:t})=>_.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},_.createElement("div",{className:"sonner-spinner"},J_.map((n,r)=>_.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),X_=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.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"})),Z_=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},_.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"})),eI=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.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"})),tI=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.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"})),nI=_.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"},_.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),_.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),rI=()=>{let[e,t]=_.useState(document.hidden);return _.useEffect(()=>{let n=()=>{t(document.hidden)};
210return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Sf=1,sI=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:Sf++,i=this.toasts.find(l=>l.id===s),a=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:a,title:n}):l):this.addToast({title:n,...r,dismissible:a,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)=>
210this.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,a=r.then(async c=>{if(i=["resolve",c],_.isValidElement(c))s=!1,this.create({id:n,type:"default",message:c});else if(aI(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)=>a.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)||Sf++;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}},dt=new sI,iI=(e,t)=>{let n=(t==null?void 0:t.id)||Sf++;return dt.addToast({title:e,...t,id:n}),n},aI=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",oI=iI,lI=()=>dt.toasts,cI=()=>dt.getActiveToasts();Object.assign(oI,{success:dt.success,info:dt.info,warning:dt.warning,error:dt.error,custom:dt.custom,message:dt.message,promise:dt.promise,dismiss:dt.dismiss,loading:dt.loading},{getHistory:lI,getToasts:cI});function uI(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))}uI(`: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;
210left: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}
210: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%);
210--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%)} 211`);function Al(e){return e.label!==void 0}var dI=3,hI="32px",fI="16px",ix=4e3,pI=356,mI=14,gI=20,yI=200;function Kt(...e){return e.filter(Boolean).join(" ")}function xI(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var vI=e=>{var t,n,r,s,i,a,l,c,u,d,h;let{invert:f,toast:p,unstyled:x,interacting:y,setHeights:b,visibleToasts:g,heights:m,index:v,toasts:k,expanded:S,removeToast:j,defaultRichColors:A,closeButton:E,style:N,cancelButtonStyle:R,actionButtonStyle:z,className:D="",descriptionClassName:K="",duration:M,position:Z,gap:q,loadingIcon:V,expandByDefault:T,classNames:P,icons:$,closeButtonAriaLabel:Y="Close toast",pauseWhenPageIsHidden:W}=e,[ee,ne]=_.useState(null),[Ce,qe]=_.useState(null),[oe,Os]=_.useState(!1),[rr,Jr]=_.useState(!1),[sr,Ds]=_.useState(!1),[ir,tl]=_.useState(!1),[Qu,nl]=_.useState(!1),[Xu,aa]=_.useState(0),[Ls,jg]=_.useState(0),oa=_.useRef(p.duration||M||ix),Ag=_.useRef(null),Qr=_.useRef(null),BA=v===0,UA=v+1<=g,Nt=p.type,Ms=p.dism
211issible!==!1,zA=p.className||"",VA=p.descriptionClassName||"",rl=_.useMemo(()=>m.findIndex(J=>J.toastId===p.id)||0,[m,p.id]),WA=_.useMemo(()=>{var J;return(J=p.closeButton)!=null?J:E},[p.closeButton,E]),Eg=_.useMemo(()=>p.duration||M||ix,[p.duration,M]),Zu=_.useRef(0),$s=_.useRef(0),Tg=_.useRef(0),Fs=_.useRef(null),[HA,KA]=Z.split("-"),Ng=_.useMemo(()=>m.reduce((J,ue,ye)=>ye>=rl?J:J+ue.height,0),[m,rl]),Cg=rI(),qA=p.invert||f,ed=Nt==="loading";$s.current=_.useMemo(()=>rl*q+Ng,[rl,Ng]),_.useEffect(()=>{oa.current=Eg},[Eg]),_.useEffect(()=>{Os(!0)},[]),_.useEffect(()=>{let J=Qr.current;if(J){let ue=J.getBoundingClientRect().height;return jg(ue),b(ye=>[{toastId:p.id,height:ue,position:p.position},...ye]),()=>b(ye=>ye.filter(zt=>zt.toastId!==p.id))}},[b,p.id]),_.useLayoutEffect(()=>{if(!oe)return;let J=Qr.current,ue=J.style.height;J.style.height="auto";let ye=J.getBoundingClientRect().height;J.style.height=ue,jg(ye),b(zt=>zt.find(Vt=>Vt.toastId===p.id)?zt.map(Vt=>Vt.toastId===p.id?{...Vt,height:ye}:Vt):[{toastId:p.id,height:ye,position:p.position},...zt])},[oe,p.title,p.description,b,p.id]);let ar=_.useCallback(()=>{Jr(!0),aa($s.current),b(J=>J.filter(ue=>ue.toastId!==p.id)),setTimeout(()=>{j(p)},yI)},[p,j,b,$s]);_.useEffect(()=>{if(p.promise&&Nt==="loading"||p.duration===1/0||p.type==="loading")return;let J;return S||y||W&&Cg?(()=>{if(Tg.current<Zu.current){let ue=new Date().getTime()-Zu.current;oa.current=oa.current-ue}Tg.current=new Date().getTime()})():oa.current!==1/0&&(Zu.current=new Date().getTime(),J=setTimeout(()=>{var ue;(ue=p.onAutoClose)==null||ue.call(p,p),ar()},oa.current)),()=>clearTimeout(J)},[S,y,p,Nt,W,Cg,ar]),_.useEffect(()=>{p.delete&&ar()},[ar,p.delete]);function GA(){var J,ue,ye;return $!=null&&$.loading?_.createElement("div",{className:Kt(P==null?void 0:P.loader,(J=p==null?void 0:p.classNames)==null?void 0:J.loader,"sonner-loader"),"data-visible":Nt==="loading"},$.loading):V?_.createElement("div",{className:Kt(P==null?void 0:P.loader,(ue=p==null?void 0:p.classNames)==null?void 0:ue.loader,"sonner-loader"),"data-visible":Nt==="loading"},V):_.createElement(Q_,{className:Kt(P==null?void 0:P.loader,(ye=p==null?void 0:p.classNames)==null?void 0:ye.loader),visible:Nt==="loading"})}return _.createElement("li",{tabIndex:0,ref:Qr,className:Kt(D,zA,P==null?void 0:P.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,P==null?void 0:P.default,P==null?void 0:P[Nt],(n=p==null?void 0:p.classNames)==null?void 0:n[Nt]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:A,"data-styled":!(p.jsx||p.unstyled||x),"data-mounted":oe,"data-promise":!!p.promise,"data-swiped":Qu,"data-removed":rr,"data-visible":UA,"data-y-position":HA,"data-x-position":KA,"data-index":v,"data-front":BA,"data-swiping":sr,"data-dismissible":Ms,"data-type":Nt,"data-invert":qA,"data-swipe-out":ir,"data-swipe-direction":Ce,"data-expanded":!!(S||T&&oe),style:{"--index":v,"--toasts-before":v,"--z-index":k.length-v,"--offset":`${rr?Xu:$s.current}px`,"--initial-height":T?"auto":`${Ls}px`,...N,...p.style},onDragEnd:()=>{Ds(!1),ne(null),Fs.current=null},onPointerDown:J=>{ed||!Ms||(Ag.current=new Date,aa($s.current),J.target.setPointerCapture(J.pointerId),J.target.tagName!=="BUTTON"&&(Ds(!0),Fs.current={x:J.clientX,y:J.clientY}))},onPointerUp:()=>{var J,ue,ye,zt;if(ir||!Ms)return;Fs.current=null;let Vt=Number(((J=Qr.current)==null?void 0:J.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),or=Number(((ue=Qr.current)==null?void 0:ue.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Xr=new Date().getTime()-((ye=Ag.current)==null?void 0:ye.getTime()),Wt=ee==="x"?Vt:or,lr=Math.abs(Wt)/Xr;if(Math.abs(Wt)>=gI||lr>.11){aa($s.current),(zt=p.onDismiss)==null||zt.call(p,p),qe(ee==="x"?Vt>0?"right":"left":or>0?"down":"up"),ar(),tl(!0),nl(!1);return}Ds(!1),ne(null)},onPointerMove:J=>{var ue,ye,zt,Vt;if(!Fs.current||!Ms||((ue=window.getSelection())==null?void 0:ue.toString().length)>0)return;let or=J.clientY-Fs.current.y,Xr=J.clientX-Fs.current.x,Wt=(ye=e.swipeDirections)!=null?ye:xI(Z);!ee&&(Math.abs(Xr)>1||Math.abs(or)>1)&&ne(Math.abs(Xr)>Math.abs(or)?"x":"y");let lr={x:0,y:0};ee==="y"?(Wt.includes("top")||Wt.includes("bottom"))&&(Wt.includes("top")&&or<0||Wt.includes("bottom")&&or>0)&&(lr.y=or):ee==="x"&&(Wt.includes("left")||Wt.includes("right"))&&(Wt.includes("left")&&Xr<0||Wt.includes("right")&&Xr>0)&&(lr.x=Xr),(Math.abs(lr.x)>0||Math.abs(lr.y)>0)&&nl(!0),(zt=Qr.current)==null||zt.style.setProperty("--swipe-amount-x",`${lr.x}px`),(Vt=Qr.current)==null||Vt.style.setProperty("--swipe-amount-y",`${lr.y}px`)}},WA&&!p.jsx?_.createElement("button",{"aria-label":Y,"data-disabled":ed,"data-close-button":!0,onClick:ed||!Ms?()=>{}:()=>{var J;ar(),(J=p.onDismiss)==null||J.call(p,p)},className:Kt(P==null?void 0:P.closeButton,(s=p==null?void 0:p.classNames)==null?void 0:s.closeButton)},(i=$==null?void 0:$.close)!=null?i:nI):null,p.jsx||w.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:_.createElement(_.Fragment,null,Nt||p.icon||p.promise?_.createElement("div",{"data-icon":"",className:Kt(P==null?void 0:P.icon,(a=p==null?void 0:p.classNames)==null?void 0:a.icon)}
211,p.promise||p.type==="loading"&&!p.icon?p.icon||GA():null,p.type!=="loading"?p.icon||($==null?void 0:$[Nt])||Y_(Nt):null):null,_.createElement("div",{"data-content":"",className:Kt(P==null?void 0:P.content,(l=p==null?void 0:p.classNames)==null?void 0:l.content)},_.createElement("div",{"data-title":"",className:Kt(P==null?void 0:P.title,(c=p==null?void 0:p.classNames)==null?void 0:c.title)},typeof p.title=="function"?p.title():p.title),p.description?_.createElement("div",{"data-description":"",className:Kt(K,VA,P==null?void 0:P.description,(u=p==null?void 0:p.classNames)==null?void 0:u.description)},typeof p.description=="function"?p.description():p.description):null),w.isValidElement(p.cancel)?p.cancel:p.cancel&&Al(p.cancel)?_.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||R,onClick:J=>{var ue,ye;Al(p.cancel)&&Ms&&((ye=(ue=p.cancel).onClick)==null||ye.call(ue,J),ar())},className:Kt(P==null?void 0:P.cancelButton,(d=p==null?void 0:p.classNames)==null?void 0:d.cancelButton)},p.cancel.label):null,w.isValidElement(p.action)?p.action:p.action&&Al(p.action)?_.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||z,onClick:J=>{var ue,ye;Al(p.action)&&((ye=(ue=p.action).onClick)==null||ye.call(ue,J),!J.defaultPrevented&&ar())},className:Kt(P==null?void 0:P.actionButton,(h=p==null?void 0:p.classNames)==null?void 0:h.actionButton)},p.action.label):null))};function ax(){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 bI(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,a=i?"--mobile-offset":"--offset",l=i?fI:hI;function c(u){["top","right","bottom","left"].forEach(d=>{n[`${a}-${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[`${a}-${u}`]=l:n[`${a}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):c(l)}),n}var wI=w.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:a,className:l,offset:c,mobileOffset:u,theme:d="light",richColors:h,duration:f,style:p,visibleToasts:x=dI,toastOptions:y,dir:b=ax(),gap:g=mI,loadingIcon:m,icons:v,containerAriaLabel:k="Notifications",pauseWhenPageIsHidden:S}=e,[j,A]=_.useState([]),E=_.useMemo(()=>Array.from(new Set([r].concat(j.filter(W=>W.position).map(W=>W.position)))),[j,r]),[N,R]=_.useState([]),[z,D]=_.useState(!1),[K,M]=_.useState(!1),[Z,q]=_.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=_.useRef(null),T=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=_.useRef(null),$=_.useRef(!1),Y=_.useCallback(W=>{A(ee=>{var ne;return(ne=ee.find(Ce=>Ce.id===W.id))!=null&&ne.delete||dt.dismiss(W.id),ee.filter(({id:Ce})=>Ce!==W.id)})},[]);return _.useEffect(()=>dt.subscribe(W=>{if(W.dismiss){A(ee=>ee.map(ne=>ne.id===W.id?{...ne,delete:!0}:ne));return}setTimeout(()=>{ck.flushSync(()=>{A(ee=>{let ne=ee.findIndex(Ce=>Ce.id===W.id);return ne!==-1?[...ee.slice(0,ne),{...ee[ne],...W},...ee.slice(ne+1)]:[W,...ee]})})})}),[]),_.useEffect(()=>{if(d!=="system"){q(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?q("dark"):q("light")),typeof window>"u")return;let W=window.matchMedia("(prefers-color-scheme: dark)");try{W.addEventListener("change",({matches:ee})=>{q(ee?"dark":"light")})}catch{W.addListener(({matches:ne})=>{try{q(ne?"dark":"light")}catch(Ce){console.error(Ce)}})}},[d]),_.useEffect(()=>{j.length<=1&&D(!1)},[j]),_.useEffect(()=>{let W=ee=>{var ne,Ce;s.every(qe=>ee[qe]||ee.code===qe)&&(D(!0),(ne=V.current)==null||ne.focus()),ee.code==="Escape"&&(document.activeElement===V.current||(Ce=V.current)!=null&&Ce.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[s]),_.useEffect(()=>{if(V.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,$.current=!1)}},[V.current]),_.createElement("section",{ref:t,"aria-label":`${k} ${T}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},E.map((W,ee)=>{var ne;let[Ce,qe]=W.split("-");return j.length?_.createElement("ol",{key:W,dir:b==="auto"?ax():b,tabIndex:-1,ref:V,className:l,"data-sonner-toaster":!0,"data-theme":Z,"data-y-position":Ce,"data-lifted":z&&j.length>1&&!i,"data-x-position":qe,style:{"--front-toast-height":`${((ne=N[0])==null?void 0:ne.height)||0}px`,"--width":`${pI}px`,"--gap":`${g}px`,...p,...bI(c,u)},onBlur:oe=>{$.current&&!oe.currentTarget.contains(oe.relatedTarget)&&($.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:oe=>{oe.target instanceof HTMLElement&&oe.target.dataset.dismissible==="false"||$.current||($.current=!0,P.current=oe.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{K||D(!1)},onDragEnd:()=>D(!1),onPointerDown:oe=>{oe.target instanceof HTMLElement&&oe.target.dataset.dismissible==="false"||M(!0)},onPointerUp:()=>M(!1)},j.filter(oe=>!oe.position&&ee===0||oe.position===W).map((oe,Os)=>{var rr,Jr;return _.createElement(vI,{key:oe.id,icons:v,index:Os,toast:oe,defaultRichColors:h,duration:(rr=y==null?void 0:y.duration)!=null?rr:f,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:n,visibleToasts:x,closeButton:(Jr=y==null?void 0:y.closeButton)!=null?Jr:a,interacting:K,position:W,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:Y,toasts:j.filter(sr=>sr.position==oe.position),heights:N.filter(sr=>sr.position==oe.position),setHeights:R,expandByDefault:i,gap:g,loadingIcon:m,expanded:z,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const kI=({...e})=>{const{theme:t="system"}=G_();return o.jsx(wI,{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 SI=Sp[" useId ".trim().toString()]||(()=>{}),jI=0;function h1(e){const[t,n]=w.useState(SI());return In(()=>{n(r=>r??String(jI++))},[e]),t?`radix-${t}`:""}const AI=["top","right","bottom","left"],zr=Math.min,xt=Math.max,Lc=Math.round,El=Math.floor,Cn=e=>({x:e,y:e}
vendor: 11,113 bytes, line 211
211),EI={left:"right",right:"left",bottom:"top",top:"bottom"},TI={start:"end",end:"start"};function jf(e,t,n){return xt(e,zr(t,n))}function Zn(e,t){return typeof e=="function"?e(t):e}function er(e){return e.split("-")[0]}function Zi(e){return e.split("-")[1]}function Sm(e){return e==="x"?"y":"x"}function jm(e){return e==="y"?"height":"width"}const NI=new Set(["top","bottom"]);function En(e){return NI.has(er(e))?"y":"x"}function Am(e){return Sm(En(e))}function CI(e,t,n){n===void 0&&(n=!1);const r=Zi(e),s=Am(e),i=jm(s);let a=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Mc(a)),[a,Mc(a)]}function _I(e){const t=Mc(e);return[Af(e),t,Af(t)]}function Af(e){return e.replace(/start|end/g,t=>TI[t])}const ox=["left","right"],lx=["right","left"],II=["top","bottom"],PI=["bottom","top"];function RI(e,t,n){switch(e){case"top":case"bottom":return n?t?lx:ox:t?ox:lx;case"left":case"right":return t?II:PI;default:return[]}}function OI(e,t,n,r){const s=Zi(e);let i=RI(er(e),n==="start",r);return s&&(i=i.map(a=>a+"-"+s),t&&(i=i.concat(i.map(Af)))),i}function Mc(e){return e.replace(/left|right|bottom|top/g,t=>EI[t])}function DI(e){return{top:0,right:0,bottom:0,left:0,...e}}function f1(e){return typeof e!="number"?DI(e):{top:e,right:e,bottom:e,left:e}}function $c(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 cx(e,t,n){let{reference:r,floating:s}=e;const i=En(t),a=Am(t),l=jm(a),c=er(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 p;switch(c){case"top":p={x:d,y:r.y-s.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-s.width,y:h};break;default:p={x:r.x,y:r.y}}switch(Zi(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1);break}return p}const LI=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:h}=cx(u,r,c),f=r,p={},x=0;for(let y=0;y<l.length;y++){const{name:b,fn:g}=l[y],{x:m,y:v,data:k,reset:S}=await g({x:d,y:h,initialPlacement:r,placement:f,strategy:s,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});d=m??d,h=v??h,p={...p,[b]:{...p[b],...k}},S&&x<=50&&(x++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:s}):S.rects),{x:d,y:h}=cx(u,f,c)),y=-1)}return{x:d,y:h,placement:f,strategy:s,middlewareData:p}};async function mo(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:a,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:p=0}=Zn(t,e),x=f1(p),b=l[f?h==="floating"?"reference":"floating":h],g=$c(await i.getClippingRect({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})),m=h==="floating"?{x:r,y:s,width:a.floating.width,height:a.floating.height}:a.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),k=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},S=$c(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:m,offsetParent:v,strategy:c}):m);return{top:(g.top-S.top+x.top)/k.y,bottom:(S.bottom-g.bottom+x.bottom)/k.y,left:(g.left-S.left+x.left)/k.x,right:(S.right-g.right+x.right)/k.x}}const MI=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:a,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=Zn(e,t)||{};if(u==null)return{};const h=f1(d),f={x:n,y:r},p=Am(s),x=jm(p),y=await a.getDimensions(u),b=p==="y",g=b?"top":"left",m=b?"bottom":"right",v=b?"clientHeight":"clientWidth",k=i.reference[x]+i.reference[p]-f[p]-i.floating[x],S=f[p]-i.reference[p],j=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let A=j?j[v]:0;(!A||!await(a.isElement==null?void 0:a.isElement(j)))&&(A=l.floating[v]||i.floating[x]);const E=k/2-S/2,N=A/2-y[x]/2-1,R=zr(h[g],N),z=zr(h[m],N),D=R,K=A-y[x]-z,M=A/2-y[x]/2+E,Z=jf(D,M,K),q=!c.arrow&&Zi(s)!=null&&M!==Z&&i.reference[x]/2-(M<D?R:z)-y[x]/2<0,V=q?M<D?M-D:M-K:0;return{[p]:f[p]+V,data:{[p]:Z,centerOffset:M-Z-V,...q&&{alignmentOffset:V}},reset:q}}}),$I=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:a,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:y=!0,...b}=Zn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=er(s),m=En(l),v=er(l)===l,k=await(c.isRTL==null?void 0:c.isRTL(u.floating)),S=f||(v||!y?[Mc(l)]:_I(l)),j=x!=="none";!f&&j&&S.push(...OI(l,y,x,k));const A=[l,...S],E=await mo(t,b),N=[];let R=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&N.push(E[g]),h){const M=CI(s,a,k);N.push(E[M[0]],E[M[1]])}if(R=[...R,{placement:s,overflows:N}],!N.every(M=>M<=0)){var z,D;const M=(((z=i.flip)==null?void 0:z.index)||0)+1,Z=A[M];if(Z&&(!(h==="alignment"?m!==En(Z):!1)||R.every(T=>T.overflows[0]>0&&En(T.placement)===m)))return{data:{index:M,overflows:R},reset:{placement:Z}};let q=(D=R.filter(V=>V.overflows[0]<=0).sort((V,T)=>V.overflows[1]-T.overflows[1])[0])==null?void 0:D.placement;if(!q)switch(p){case"bestFit":{var K;const V=(K=R.filter(T=>{if(j){const P=En(T.placement);return P===m||P==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(P=>P>0).reduce((P,$)=>P+$,0)]).sort((T,P)=>T[1]-P[1])[0])==null?void 0:K[0];V&&(q=V);break}case"initialPlacement":q=l;break}if(s!==q)return{reset:{placement:q}}}return{}}}};function ux(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dx(e){return AI.some(t=>e[t]>=0)}const FI=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=Zn(e,t);switch(r){case"referenceHidden":{const i=await mo(t,{...s,elementContext:"reference"}),a=ux(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:dx(a)}}}case"escaped":{const i=await mo(t,{...s,altBoundary:!0}),a=ux(i,n.floating);return{data:{escapedOffsets:a,escaped:dx(a)}}}default:return{}}}}},p1=new Set(["left","top"]);async function BI(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),a=er(n),l=Zi(n),c=En(n)==="y",u=p1.has(a)?-1:1,d=i&&c?-1:1,h=Zn(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:x}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof x=="number"&&(p=l==="end"?x*-1:x),c?{x:p*d,y:f*u}:{x:f*u,y:p*d}}const UI=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:a,middlewareData:l}=t,c=await BI(t,e);return a===((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:a}}}}},zI=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:a=!1,limiter:l={fn:b=>{let{x:g,y:m}=b;return{x:g,y:m}}},...c}=Zn(e,t),u={x:n,y:r},d=await mo(t,c),h=En(er(s)),f=Sm(h);let p=u[f],x=u[h];if(i){const b=f==="y"?"top":"left",g=f==="y"?"bottom":"right",m=p+d[b],v=p-d[g];p=jf(m,p,v)}if(a){const b=h==="y"?"top":"left",g=h==="y"?"bottom":"right",m=x+d[b],v=x-d[g];x=jf(m,x,v)}const y=l.fn({...t,[f]:p,[h]:x});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[f]:i,[h]:a}}}}}},VI=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=Zn(e,t),d={x:n,y:r},h=En(s),f=Sm(h);let p=d[f],x=d[h];const y=Zn(l,t),b=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const v=f==="y"?"height":"width",k=i.reference[f]-i.floating[v]+b.mainAxis,S=i.reference[f]+i.reference[v]-b.mainAxis;p<k?p=k:p>S&&(p=S)}if(u){var g,m;const v=f==="y"?"width":"height",k=p1.has(er(s)),S=i.reference[h]-i.floating[v]+(k&&((g=a.offset)==null?void 0:g[h])||0)+(k?0:b.crossAxis),j=i.reference[h]+i.reference[v]+(k?0:((m=a.offset)==null?void 0:m[h])||0)-(k?b.crossAxis:0);x<S?x=S:x>j&&(x=j)}return{[f]:p,[h]:x}}}},WI=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:a,elements:l}=t,{apply:c=()=>{},...u}=Zn(e,t),d=await mo(t,u),h=er(s),f=Zi(s),p=En(s)==="y",{width:x,height:y}=i.floating;let b,g;h==="top"||h==="bottom"?(b=h,g=f===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(g=h,b=f==="end"?"top":"bottom");const m=y-d.top-d.bottom,v=x-d.left-d.right,k=zr(y-d[b],m),S=zr(x-d[g],v),j=!t.middlewareData.shift;let A=k,E=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=m),j&&!f){const R=xt(d.left,0),z=xt(d.right,0),D=xt(d.top,0),K=xt(d.bottom,0);p?E=x-2*(R!==0||z!==0?R+z:xt(d.left,d.right)):A=y-2*(D!==0||K!==0?D+K:xt(d.top,d.bottom))}await c({...t,availableWidth:E,availableHeight:A});const N=await a.getDimensions(l.floating);return x!==N.width||y!==N.height?{reset:{rects:!0}}:{}}}};function Cu(){return typeof window<"u"}function ea(e){return m1(e)?(e.nodeName||"").toLowerCase():"#document"}function kt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function On(e){var t;return(t=(m1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function m1(e){return Cu()?e instanceof Node||e instanceof kt(e).Node:!1}function fn(e){return Cu()?e instanceof Element||e instanceof kt(e).Element:!1}function Pn(e){return Cu()?e instanceof HTMLElement||e instanceof kt(e).HTMLElement:!1}function hx(e){return!Cu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof kt(e).ShadowRoot}const HI=new Set(["inline","contents"]);function Ko(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=pn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!HI.has(s)}const KI=new Set(["table","td","th"]);function qI(e){return KI.has(ea(e))}const GI=[":popover-open",":modal"];function _u(e){return GI.some(t=>{try{return e.matches(t)}catch{return!1}})}const YI=["transform","translate","scale","rotate","perspective"],JI=["transform","translate","scale","rotate","perspective","filter"],QI=["paint","layout","strict","content"];function Em(e){const t=Tm(),n=fn(e)?pn(e):e;return YI.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)||JI.some(r=>(n.willChange||"").includes(r))||QI.some(r=>(n.contain||"").includes(r))}function XI(e){let t=Vr(e);for(;
vendor: 4,670 bytes, line 211
211Pn(t)&&!zi(t);){if(Em(t))return t;if(_u(t))return null;t=Vr(t)}return null}function Tm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ZI=new Set(["html","body","#document"]);function zi(e){return ZI.has(ea(e))}function pn(e){return kt(e).getComputedStyle(e)}function Iu(e){return fn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vr(e){if(ea(e)==="html")return e;const t=e.assignedSlot||e.parentNode||hx(e)&&e.host||On(e);return hx(t)?t.host:t}function g1(e){const t=Vr(e);return zi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pn(t)&&Ko(t)?t:g1(t)}function go(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=g1(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),a=kt(s);if(i){const l=Ef(a);return t.concat(a,a.visualViewport||[],Ko(s)?s:[],l&&n?go(l):[])}return t.concat(s,go(s,[],n))}function Ef(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function y1(e){const t=pn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Pn(e),i=s?e.offsetWidth:n,a=s?e.offsetHeight:r,l=Lc(n)!==i||Lc(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function Nm(e){return fn(e)?e:e.contextElement}function ji(e){const t=Nm(e);if(!Pn(t))return Cn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=y1(t);let a=(i?Lc(n.width):n.width)/r,l=(i?Lc(n.height):n.height)/s;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const eP=Cn(0);function x1(e){const t=kt(e);return!Tm()||!t.visualViewport?eP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tP(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==kt(e)?!1:t}function Cs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=Nm(e);let a=Cn(1);t&&(r?fn(r)&&(a=ji(r)):a=ji(e));const l=tP(i,n,r)?x1(i):Cn(0);let c=(s.left+l.x)/a.x,u=(s.top+l.y)/a.y,d=s.width/a.x,h=s.height/a.y;if(i){const f=kt(i),p=r&&fn(r)?kt(r):r;let x=f,y=Ef(x);for(;y&&r&&p!==x;){const b=ji(y),g=y.getBoundingClientRect(),m=pn(y),v=g.left+(y.clientLeft+parseFloat(m.paddingLeft))*b.x,k=g.top+(y.clientTop+parseFloat(m.paddingTop))*b.y;c*=b.x,u*=b.y,d*=b.x,h*=b.y,c+=v,u+=k,x=kt(y),y=Ef(x)}}return $c({width:d,height:h,x:c,y:u})}function Cm(e,t){const n=Iu(e).scrollLeft;return t?t.left+n:Cs(On(e)).left+n}function v1(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:Cm(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function nP(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",a=On(r),l=t?_u(t.floating):!1;if(r===a||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Cn(1);const d=Cn(0),h=Pn(r);if((h||!h&&!i)&&((ea(r)!=="body"||Ko(a))&&(c=Iu(r)),Pn(r))){const p=Cs(r);u=ji(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const f=a&&!h&&!i?v1(a,c,!0):Cn(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 rP(e){return Array.from(e.getClientRects())}function sP(e){const t=On(e),n=Iu(e),r=e.ownerDocument.body,s=xt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=xt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Cm(e);const l=-n.scrollTop;return pn(r).direction==="rtl"&&(a+=xt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:a,y:l}}function iP(e,t){const n=kt(e),r=On(e),s=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(s){i=s.width,a=s.height;const u=Tm();(!u||u&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:a,x:l,y:c}}const aP=new Set(["absolute","fixed"]);function oP(e,t){const n=Cs(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Pn(e)?ji(e):Cn(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,c=s*i.x,u=r*i.y;return{width:a,height:l,x:c,y:u}}function fx(e,t,n){let r;if(t==="viewport")r=iP(e,n);else if(t==="document")r=sP(On(e));else if(fn(t))r=oP(t,n);else{const s=x1(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return $c(r)}function b1(e,t){const n=Vr(e);return n===t||!fn(n)||zi(n)?!1:pn(n).position==="fixed"||b1(n,t)}function lP(e,t){const n=t.get(e);if(n)return n;let r=go(e,[],!1).filter(l=>fn(l)&&ea(l)!=="body"),s=null;const i=pn(e).position==="fixed";let a=i?Vr(e):e;for(;fn(a)&&!zi(a);){const l=pn(a),c=Em(a);!c&&l.position==="fixed"&&(s=null),(i?!c&&!s:!c&&l.position==="static"&&!!s&&aP.has(s.position)||Ko(a)&&!c&&b1(e,a))?r=r.filter(d=>d!==a):s=l,a=Vr(a)}return t.set(e,r),r}function cP(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const a=[...n==="clippingAncestors"?_u(t)?[]:lP(t,this._c):[].concat(n),r],l=a[0],c=a.reduce((u,d)=>{const h=fx(t,d,s);
vendor: 3,274 bytes, line 211
211return u.top=xt(h.top,u.top),u.right=zr(h.right,u.right),u.bottom=zr(h.bottom,u.bottom),u.left=xt(h.left,u.left),u},fx(t,l,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function uP(e){const{width:t,height:n}=y1(e);return{width:t,height:n}}function dP(e,t,n){const r=Pn(t),s=On(t),i=n==="fixed",a=Cs(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=Cn(0);function u(){c.x=Cm(s)}if(r||!r&&!i)if((ea(t)!=="body"||Ko(s))&&(l=Iu(t)),r){const p=Cs(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else s&&u();i&&!r&&s&&u();const d=s&&!r&&!i?v1(s,l):Cn(0),h=a.left+l.scrollLeft-c.x-d.x,f=a.top+l.scrollTop-c.y-d.y;return{x:h,y:f,width:a.width,height:a.height}}function Md(e){return pn(e).position==="static"}function px(e,t){if(!Pn(e)||pn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return On(e)===n&&(n=n.ownerDocument.body),n}function w1(e,t){const n=kt(e);if(_u(e))return n;if(!Pn(e)){let s=Vr(e);for(;s&&!zi(s);){if(fn(s)&&!Md(s))return s;s=Vr(s)}return n}let r=px(e,t);for(;r&&qI(r)&&Md(r);)r=px(r,t);return r&&zi(r)&&Md(r)&&!Em(r)?n:r||XI(e)||n}const hP=async function(e){const t=this.getOffsetParent||w1,n=this.getDimensions,r=await n(e.floating);return{reference:dP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function fP(e){return pn(e).direction==="rtl"}const pP={convertOffsetParentRelativeRectToViewportRelativeRect:nP,getDocumentElement:On,getClippingRect:cP,getOffsetParent:w1,getElementRects:hP,getClientRects:rP,getDimensions:uP,getScale:ji,isElement:fn,isRTL:fP};function k1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mP(e,t){let n=null,r;const s=On(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:h,width:f,height:p}=u;if(l||t(),!f||!p)return;const x=El(h),y=El(s.clientWidth-(d+f)),b=El(s.clientHeight-(h+p)),g=El(d),v={rootMargin:-x+"px "+-y+"px "+-b+"px "+-g+"px",threshold:xt(0,zr(1,c))||1};let k=!0;function S(j){const A=j[0].intersectionRatio;if(A!==c){if(!k)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!k1(u,e.getBoundingClientRect())&&a(),k=!1}try{n=new IntersectionObserver(S,{...v,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return a(!0),i}function gP(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Nm(e),d=s||i?[...u?go(u):[],...go(t)]:[];d.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const h=u&&l?mP(u,n):null;let f=-1,p=null;a&&(p=new ResizeObserver(g=>{let[m]=g;m&&m.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let x,y=c?Cs(e):null;c&&b();function b(){const g=Cs(e);y&&!k1(y,g)&&n(),y=g,x=requestAnimationFrame(b)}return n(),()=>{var g;d.forEach(m=>{s&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),h==null||h(),(g=p)==null||g.disconnect(),p=null,c&&cancelAnimationFrame(x)}}
vendor: 3,493 bytes, line 211
211const yP=UI,xP=zI,vP=$I,bP=WI,wP=FI,mx=MI,kP=VI,SP=(e,t,n)=>{const r=new Map,s={platform:pP,...n},i={...s.platform,_c:r};return LI(e,t,{...s,platform:i})};var jP=typeof document<"u",AP=function(){},rc=jP?w.useLayoutEffect:AP;function Fc(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(!Fc(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)&&!Fc(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function S1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gx(e,t){const n=S1(e);return Math.round(t*n)/n}function $d(e){const t=w.useRef(e);return rc(()=>{t.current=e}),t}function EP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,h]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=w.useState(r);Fc(f,r)||p(r);const[x,y]=w.useState(null),[b,g]=w.useState(null),m=w.useCallback(T=>{T!==j.current&&(j.current=T,y(T))},[]),v=w.useCallback(T=>{T!==A.current&&(A.current=T,g(T))},[]),k=i||x,S=a||b,j=w.useRef(null),A=w.useRef(null),E=w.useRef(d),N=c!=null,R=$d(c),z=$d(s),D=$d(u),K=w.useCallback(()=>{if(!j.current||!A.current)return;const T={placement:t,strategy:n,middleware:f};z.current&&(T.platform=z.current),SP(j.current,A.current,T).then(P=>{const $={...P,isPositioned:D.current!==!1};M.current&&!Fc(E.current,$)&&(E.current=$,zo.flushSync(()=>{h($)}))})},[f,t,n,z,D]);rc(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,h(T=>({...T,isPositioned:!1})))},[u]);const M=w.useRef(!1);rc(()=>(M.current=!0,()=>{M.current=!1}),[]),rc(()=>{if(k&&(j.current=k),S&&(A.current=S),k&&S){if(R.current)return R.current(k,S,K);K()}},[k,S,K,R,N]);const Z=w.useMemo(()=>({reference:j,floating:A,setReference:m,setFloating:v}),[m,v]),q=w.useMemo(()=>({reference:k,floating:S}),[k,S]),V=w.useMemo(()=>{const T={position:n,left:0,top:0};if(!q.floating)return T;const P=gx(q.floating,d.x),$=gx(q.floating,d.y);return l?{...T,transform:"translate("+P+"px, "+$+"px)",...S1(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:$}},[n,l,q.floating,d.x,d.y]);return w.useMemo(()=>({...d,update:K,refs:Z,elements:q,floatingStyles:V}),[d,K,Z,q,V])}const TP=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?mx({element:r.current,padding:s}).fn(n):{}:r?mx({element:r,padding:s}).fn(n):{}}}},NP=(e,t)=>({...yP(e),options:[e,t]}),CP=(e,t)=>({...xP(e),options:[e,t]}),_P=(e,t)=>({...kP(e),options:[e,t]}),IP=(e,t)=>({...vP(e),options:[e,t]}),PP=(e,t)=>({...bP(e),options:[e,t]}),RP=(e,t)=>({...wP(e),options:[e,t]}),OP=(e,t)=>({...TP(e),options:[e,t]});var DP="Arrow",j1=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return o.jsx($e.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:o.jsx("polygon",{points:"0,0 30,0 15,10"})})});j1.displayName=DP;var LP=j1;function MP(e){const[t,n]=w.useState(void 0);return In(()=>
vendor: 5,204 bytes, line 211
211{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 a,l;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,l=u.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var A1="Popper",[E1,T1]=Ji(A1),[S6,N1]=E1(A1),C1="PopperAnchor",_1=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=N1(C1,n),a=w.useRef(null),l=jt(t,a);return w.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:o.jsx($e.div,{...s,ref:l})});_1.displayName=C1;var _m="PopperContent",[$P,FP]=E1(_m),I1=w.forwardRef((e,t)=>{var oe,Os,rr,Jr,sr,Ds;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:x,...y}=e,b=N1(_m,n),[g,m]=w.useState(null),v=jt(t,ir=>m(ir)),[k,S]=w.useState(null),j=MP(k),A=(j==null?void 0:j.width)??0,E=(j==null?void 0:j.height)??0,N=r+(i!=="center"?"-"+i:""),R=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},z=Array.isArray(u)?u:[u],D=z.length>0,K={padding:R,boundary:z.filter(UP),altBoundary:D},{refs:M,floatingStyles:Z,placement:q,isPositioned:V,middlewareData:T}=EP({strategy:"fixed",placement:N,whileElementsMounted:(...ir)=>gP(...ir,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[NP({mainAxis:s+E,alignmentAxis:a}),c&&CP({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?_P():void 0,...K}),c&&IP({...K}),PP({...K,apply:({elements:ir,rects:tl,availableWidth:Qu,availableHeight:nl})=>{const{width:Xu,height:aa}=tl.reference,Ls=ir.floating.style;Ls.setProperty("--radix-popper-available-width",`${Qu}px`),Ls.setProperty("--radix-popper-available-height",`${nl}px`),Ls.setProperty("--radix-popper-anchor-width",`${Xu}px`),Ls.setProperty("--radix-popper-anchor-height",`${aa}px`)}}),k&&OP({element:k,padding:l}),zP({arrowWidth:A,arrowHeight:E}),f&&RP({strategy:"referenceHidden",...K})]}),[P,$]=O1(q),Y=Ur(x);In(()=>{V&&(Y==null||Y())},[V,Y]);const W=(oe=T.arrow)==null?void 0:oe.x,ee=(Os=T.arrow)==null?void 0:Os.y,ne=((rr=T.arrow)==null?void 0:rr.centerOffset)!==0,[Ce,qe]=w.useState();return In(()=>{g&&qe(window.getComputedStyle(g).zIndex)},[g]),o.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:V?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ce,"--radix-popper-transform-origin":[(Jr=T.transformOrigin)==null?void 0:Jr.x,(sr=T.transformOrigin)==null?void 0:sr.y].join(" "),...((Ds=T.hide)==null?void 0:Ds.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:o.jsx($P,{scope:n,placedSide:P,onArrowChange:S,arrowX:W,arrowY:ee,shouldHideArrow:ne,children:o.jsx($e.div,{"data-side":P,"data-align":$,...y,ref:v,style:{...y.style,animation:V?void 0:"none"}})})})});I1.displayName=_m;var P1="PopperArrow",BP={top:"bottom",right:"left",bottom:"top",left:"right"},R1=w.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=FP(P1,r),a=BP[i.placedSide];return o.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]: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:o.jsx(LP,{...s,ref:n,style:{...s.style,display:"block"}})})});R1.displayName=P1;function UP(e){return e!==null}var zP=e=>({name:"transformOrigin",options:e,fn(t){var b,g,m;const{placement:n,rects:r,middlewareData:s}=t,a=((b=s.arrow)==null?void 0:b.centerOffset)!==0,l=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,d]=O1(n),h={start:"0%",center:"50%",end:"100%"}[d],f=(((g=s.arrow)==null?void 0:g.x)??0)+l/2,p=(((m=s.arrow)==null?void 0:m.y)??0)+c/2;let x="",y="";return u==="bottom"?(x=a?h:`${f}px`,y=`${-c}px`):u==="top"?(x=a?h:`${f}px`,y=`${r.floating.height+c}px`):u==="right"?(x=`${-c}px`,y=a?h:`${p}px`):u==="left"&&(x=`${r.floating.width+c}px`,y=a?h:`${p}px`),{data:{x,y}}}});function O1(e){const[t,n="center"]=e.split("-");return[t,n]}var VP=_1,WP=I1,HP=R1,[Pu,j6]=Ji("Tooltip",[T1]),Im=T1(),D1="TooltipProvider",KP=700,yx="tooltip.open",[qP,L1]=Pu(D1),M1=e=>{const{__scopeTooltip:t,delayDuration:n=KP,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,a=w.useRef(!0),l=w.useRef(!1),c=w.useRef(0);return w.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),o.jsx(qP,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:w.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:w.useCallback(u=>{l.current=u},[]),disableHoverableContent:s,children:i})};M1.displayName=D1;var $1="Tooltip",[A6,Ru]=Pu($1),Tf="TooltipTrigger",GP=w.forwardRef((e,t)=>
vendor: 5,599 bytes, line 211
211{const{__scopeTooltip:n,...r}=e,s=Ru(Tf,n),i=L1(Tf,n),a=Im(n),l=w.useRef(null),c=jt(t,l,s.onTriggerChange),u=w.useRef(!1),d=w.useRef(!1),h=w.useCallback(()=>u.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),o.jsx(VP,{asChild:!0,...a,children:o.jsx($e.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:Ne(e.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:Ne(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:Ne(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Ne(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:Ne(e.onBlur,s.onClose),onClick:Ne(e.onClick,s.onClose)})})});GP.displayName=Tf;var YP="TooltipPortal",[E6,JP]=Pu(YP,{forceMount:void 0}),Vi="TooltipContent",F1=w.forwardRef((e,t)=>{const n=JP(Vi,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,a=Ru(Vi,e.__scopeTooltip);return o.jsx(ju,{present:r||a.open,children:a.disableHoverableContent?o.jsx(B1,{side:s,...i,ref:t}):o.jsx(QP,{side:s,...i,ref:t})})}),QP=w.forwardRef((e,t)=>{const n=Ru(Vi,e.__scopeTooltip),r=L1(Vi,e.__scopeTooltip),s=w.useRef(null),i=jt(t,s),[a,l]=w.useState(null),{trigger:c,onClose:u}=n,d=s.current,{onPointerInTransitChange:h}=r,f=w.useCallback(()=>{l(null),h(!1)},[h]),p=w.useCallback((x,y)=>{const b=x.currentTarget,g={x:x.clientX,y:x.clientY},m=nR(g,b.getBoundingClientRect()),v=rR(g,m),k=sR(y.getBoundingClientRect()),S=aR([...v,...k]);l(S),h(!0)},[h]);return w.useEffect(()=>()=>f(),[f]),w.useEffect(()=>{if(c&&d){const x=b=>p(b,d),y=b=>p(b,c);return c.addEventListener("pointerleave",x),d.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",x),d.removeEventListener("pointerleave",y)}}},[c,d,p,f]),w.useEffect(()=>{if(a){const x=y=>{const b=y.target,g={x:y.clientX,y:y.clientY},m=(c==null?void 0:c.contains(b))||(d==null?void 0:d.contains(b)),v=!iR(g,a);m?f():v&&(f(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[c,d,a,u,f]),o.jsx(B1,{...e,ref:i})}),[XP,ZP]=Pu($1,{isInside:!1}),eR=aC("TooltipContent"),B1=w.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:a,...l}=e,c=Ru(Vi,n),u=Im(n),{onClose:d}=c;return w.useEffect(()=>(document.addEventListener(yx,d),()=>document.removeEventListener(yx,d)),[d]),w.useEffect(()=>{if(c.trigger){const h=f=>{const p=f.target;p!=null&&p.contains(c.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,d]),o.jsx(mm,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:o.jsxs(WP,{"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:[o.jsx(eR,{children:r}),o.jsx(XP,{scope:n,isInside:!0,children:o.jsx(CC,{id:c.contentId,role:"tooltip",children:s||r})})]})})});F1.displayName=Vi;var U1="TooltipArrow",tR=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Im(n);return ZP(U1,n).isInside?null:o.jsx(HP,{...s,...r,ref:t})});tR.displayName=U1;function nR(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 rR(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 sR(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 iR(e,t){const{x:n,y:r}=e;let s=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const l=t[i],c=t[a],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 aR(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],a=t[t.length-2];if((i.x-a.x)*(s.y-a.y)>=(i.y-a.y)*(s.x-a.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],a=n[n.length-2];if((i.x-a.x)*(s.y-a.y)>=(i.y-a.y)*(s.x-a.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 lR=M1,z1=F1;const cR=lR,uR=w.forwardRef(({className:e,sideOffset:t=4,...n},r)=>o.jsx(z1,{ref:r,sideOffset:t,className:mn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
211de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));uR.displayName=z1.displayName;var Ou=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(){}},Du=typeof window>"u"||"Deno"in globalThis;function Xt(){}function dR(e,t){return typeof e=="function"?e(t):e}function hR(e){return typeof e=="number"&&e>=0&&e!==1/0}function fR(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Nf(e,t){return typeof e=="function"?e(t):e}function pR(e,t){return typeof e=="function"?e(t):e}function xx(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:a,stale:l}=e;if(a){if(r){if(t.queryHash!==Pm(a,t.options))return!1}else if(!xo(t.queryKey,a))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 vx(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(yo(t.options.mutationKey)!==yo(i))return!1}else if(!xo(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Pm(e,t){return((t==null?void 0:t.queryKeyHashFn)||yo)(e)}function yo(e){return JSON.stringify(e,(t,n)=>Cf(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function xo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>xo(e[n],t[n])):!1}function V1(e,t){if(e===t)return e;const n=bx(e)&&bx(t);if(n||Cf(e)&&Cf(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),a=i.length,l=n?[]:{},c=new Set(r);let u=0;for(let d=0;d<a;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]=V1(e[h],t[h]),l[h]===e[h]&&e[h]!==void 0&&u++)}return s===a&&u===s?e:l}return t}function bx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Cf(e){if(!wx(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!wx(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function wx(e){return Object.prototype.toString.call(e)==="[object Object]"}function mR(e){return new Promise(t=>{setTimeout(t,e)})}function gR(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?V1(e,t):t}function yR(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function xR(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Rm=Symbol();function W1(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Rm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var ms,wr,Ti,V0,vR=(V0=class extends Ou{constructor(){super();ie(this,ms);ie(this,wr);ie(this,Ti);Q(this,Ti,t=>{if(!Du&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){I(this,wr)||this.setEventListener(I(this,Ti))}onUnsubscribe(){var t;this.hasListeners()||((t=I(this,wr))==null||t.call(this),Q(this,wr,void 0))}setEventListener(t){var n;Q(this,Ti,t),(n=I(this,wr))==null||n.call(this),Q(this,wr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){I(this,ms)!==t&&(Q(this,ms,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof I(this,ms)=="boolean"?I(this,ms):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ms=new WeakMap,wr=new WeakMap,Ti=new WeakMap,V0),H1=new vR,Ni,kr,Ci,W0,bR=(W0=class extends Ou{constructor(){super();ie(this,Ni,!0);ie(this,kr);ie(this,Ci);Q(this,Ci,t=>{if(!Du&&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(){I(this,kr)||this.setEventListener(I(this,Ci))}onUnsubscribe(){var t;this.hasListeners()||((t=I(this,kr))==null||t.call(this),Q(this,kr,void 0))}setEventListener(t){var n;Q(this,Ci,t),(n=I(this,kr))==null||n.call(this),Q(this,kr,t(this.setOnline.bind(this)))}setOnline(t){I(this,Ni)!==t&&(Q(this,Ni,t),this.listeners.forEac
vendor: 19,398 bytes, line 211
211h(r=>{r(t)}))}isOnline(){return I(this,Ni)}},Ni=new WeakMap,kr=new WeakMap,Ci=new WeakMap,W0),Bc=new bR;function wR(){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 kR(e){return Math.min(1e3*2**e,3e4)}function K1(e){return(e??"online")==="online"?Bc.isOnline():!0}var q1=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Fd(e){return e instanceof q1}function G1(e){let t=!1,n=0,r=!1,s;const i=wR(),a=y=>{var b;r||(f(new q1(y)),(b=e.abort)==null||b.call(e))},l=()=>{t=!0},c=()=>{t=!1},u=()=>H1.isFocused()&&(e.networkMode==="always"||Bc.isOnline())&&e.canRun(),d=()=>K1(e.networkMode)&&e.canRun(),h=y=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,y),s==null||s(),i.resolve(y))},f=y=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,y),s==null||s(),i.reject(y))},p=()=>new Promise(y=>{var b;s=g=>{(r||u())&&y(g)},(b=e.onPause)==null||b.call(e)}).then(()=>{var y;s=void 0,r||(y=e.onContinue)==null||y.call(e)}),x=()=>{if(r)return;let y;const b=n===0?e.initialPromise:void 0;try{y=b??e.fn()}catch(g){y=Promise.reject(g)}Promise.resolve(y).then(h).catch(g=>{var j;if(r)return;const m=e.retry??(Du?0:3),v=e.retryDelay??kR,k=typeof v=="function"?v(n,g):v,S=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,g);if(t||!S){f(g);return}n++,(j=e.onFail)==null||j.call(e,n,g),mR(k).then(()=>u()?void 0:p()).then(()=>{t?f(g):x()})})};return{promise:i,cancel:a,continue:()=>(s==null||s(),i),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?x():p().then(x),i)}}var SR=e=>setTimeout(e,0);function jR(){let e=[],t=0,n=l=>{l()},r=l=>{l()},s=SR;const i=l=>{t?e.push(l):s(()=>{n(l)})},a=()=>{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||a()}return c},batchCalls:l=>(...c)=>{i(()=>{l(...c)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{s=l}}}var st=jR(),gs,H0,Y1=(H0=class{constructor(){ie(this,gs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),hR(this.gcTime)&&Q(this,gs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Du?1/0:5*60*1e3))}clearGcTimeout(){I(this,gs)&&(clearTimeout(I(this,gs)),Q(this,gs,void 0))}},gs=new WeakMap,H0),_i,ys,Pt,xs,Xe,Oo,vs,en,Fn,K0,AR=(K0=class extends Y1{constructor(t){super();ie(this,en);ie(this,_i);ie(this,ys);ie(this,Pt);ie(this,xs);ie(this,Xe);ie(this,Oo);ie(this,vs);Q(this,vs,!1),Q(this,Oo,t.defaultOptions),this.setOptions(t.options),this.observers=[],Q(this,xs,t.client),Q(this,Pt,I(this,xs).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Q(this,_i,TR(this.options)),this.state=t.state??I(this,_i),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=I(this,Xe))==null?void 0:t.promise}setOptions(t){this.options={...I(this,Oo),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&I(this,Pt).remove(this)}setData(t,n){const r=gR(this.state.data,t,this.options);return Ge(this,en,Fn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ge(this,en,Fn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=I(this,Xe))==null?void 0:r.promise;return(s=I(this,Xe))==null||s.cancel(t),n?n.then(Xt).catch(Xt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(I(this,_i))}isActive(){return this.observers.some(t=>pR(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Rm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Nf(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:!fR(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=I(this,Xe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=I(this,Xe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),I(this,Pt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(I(this,Xe)&&(I(this,vs)?I(this,Xe).cancel({revert:!0}):I(this,Xe).cancelRetry()),this.scheduleGc()),I(this,Pt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ge(this,en,Fn).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(I(this,Xe))return I(this,Xe).continueRetry(),I(this,Xe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(Q(this,vs,!0),r.signal)})},i=()=>{const f=W1(this.options,n),x=(()=>{const y={client:I(this,xs),queryKey:this.queryKey,meta:this.meta};return s(y),y})();return Q(this,vs,!1),this.options.persister?this.options.persister(f,x,this):f(x)},l=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:I(this,xs),state:this.state,fetchFn:i};return s(f),f})();(u=this.options.behavior)==null||u.onFetch(l,this),Q(this,ys,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&Ge(this,en,Fn).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta});const c=f=>{var p,x,y,b;Fd(f)&&f.silent||Ge(this,en,Fn).call(this,{type:"error",error:f}),Fd(f)||((x=(p=I(this,Pt).config).onError)==null||x.call(p,f,this),(b=(y=I(this,Pt).config).onSettled)==null||b.call(y,this.state.data,f,this)),this.scheduleGc()};return Q(this,Xe,G1({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,x,y,b;if(f===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(g){c(g);return}(x=(p=I(this,Pt).config).onSuccess)==null||x.call(p,f,this),(b=(y=I(this,Pt).config).onSettled)==null||b.call(y,f,this.state.error,this),this.scheduleGc()},onError:c,onFail:(f,p)=>{Ge(this,en,Fn).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{Ge(this,en,Fn).call(this,{type:"pause"})},onContinue:()=>{Ge(this,en,Fn).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),I(this,Xe).start()}},_i=new WeakMap,ys=new WeakMap,Pt=new WeakMap,xs=new WeakMap,Xe=new WeakMap,Oo=new WeakMap,vs=new WeakMap,en=new WeakSet,Fn=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,...ER(r.data,this.options),fetchMeta:t.meta??null};case"success":return Q(this,ys,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 Fd(s)&&s.revert&&I(this,ys)?{...I(this,ys),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),st.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),I(this,Pt).notify({query:this,type:"updated",action:t})})},K0);function ER(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:K1(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function TR(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 wn,q0,NR=(q0=class extends Ou{constructor(t={}){super();ie(this,wn);this.config=t,Q(this,wn,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??Pm(s,n);let a=this.get(i);return a||(a=new AR({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(a)),a}add(t){I(this,wn).has(t.queryHash)||(I(this,wn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=I(this,wn).get(t.queryHash);n&&(t.destroy(),n===t&&I(this,wn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){st.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return I(this,wn).get(t)}getAll(){return[...I(this,wn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>xx(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>xx(t,r)):n}notify(t){st.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){st.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){st.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},wn=new WeakMap,q0),kn,nt,bs,Sn,hr,G0,CR=(G0=class extends Y1{constructor(t){super();ie(this,Sn);ie(this,kn);ie(this,nt);ie(this,bs);this.mutationId=t.mutationId,Q(this,nt,t.mutationCache),Q(this,kn,[]),this.state=t.state||_R(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){I(this,kn).includes(t)||(I(this,kn).push(t),this.clearGcTimeout(),I(this,nt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Q(this,kn,I(this,kn).filter(n=>n!==t)),this.scheduleGc(),I(this,nt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){I(this,kn).length||(this.state.status==="pending"?this.scheduleGc():I(this,nt).remove(this))}continue(){var t;return((t=I(this,bs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,l,c,u,d,h,f,p,x,y,b,g,m,v,k,S,j,A,E;const n=()=>{Ge(this,Sn,hr).call(this,{type:"continue"})};Q(this,bs,G1({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,R)=>{Ge(this,Sn,hr).call(this,{type:"failed",failureCount:N,error:R})},onPause:()=>{Ge(this,Sn,hr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>I(this,nt).canRun(this)}));const r=this.state.status==="pending",s=!I(this,bs).canStart();try{if(r)n();else{Ge(this,Sn,hr).call(this,{type:"pending",variables:t,isPaused:s}),await((a=(i=I(this,nt).config).onMutate)==null?void 0:a.call(i,t,this));const R=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t));R!==this.state.context&&Ge(this,Sn,hr).call(this,{type:"pending",context:R,variables:t,isPaused:s})}const N=await I(this,bs).start();return await((d=(u=I(this,nt).config).onSuccess)==null?void 0:d.call(u,N,t,this.state.context,this)),await((f=(h=this.options).onSuccess)==null?void 0:f.call(h,N,t,this.state.context)),await((x=(p=I(this,nt).config).onSettled)==null?void 0:x.call(p,N,null,this.state.variables,this.state.context,this)),await((b=(y=this.options).onSettled)==null?void 0:b.call(y,N,null,t,this.state.context)),Ge(this,Sn,hr).call(this,{type:"success",data:N}),N}catch(N){try{throw await((m=(g=I(this,nt).config).onError)==null?void 0:m.call(g,N,t,this.state.context,this)),await((k=(v=this.options).onError)==null?void 0:k.call(v,N,t,this.state.context)),await((j=(S=I(this,nt).config).onSettled)==null?void 0:j.call(S,void 0,N,this.state.variables,this.state.context,this)),await((E=(A=this.options).onSettled)==null?void 0:E.call(A,void 0,N,t,this.state.context)),N}finally{Ge(this,Sn,hr).call(this,{type:"error",error:N})}}finally{I(this,nt).runNext(this)}}},kn=new WeakMap,nt=new WeakMap,bs=new WeakMap,Sn=new WeakSet,hr=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),st.batch(()=>{I(this,kn).forEach(r=>{r.onMutationUpdate(t)}),I(this,nt).notify({mutation:this,type:"updated",action:t})})},G0);function _R(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Hn,tn,Do,Y0,IR=(Y0=class extends Ou{constructor(t={}){super();ie(this,Hn);ie(this,tn);ie(this,Do);this.config=t,Q(this,Hn,new Set),Q(this,tn,new Map),Q(this,Do,0)}build(t,n,r){const s=new CR({mutationCache:this,mutationId:++sl(this,Do)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){I(this,Hn).add(t);const n=Tl(t);if(typeof n=="string"){const r=I(this,tn).get(n);r?r.push(t):I(this,tn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(I(this,Hn).delete(t)){const n=Tl(t);if(typeof n=="string"){const r=I(this,tn).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&I(this,tn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Tl(t);if(typeof n=="string"){const r=I(this,tn).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=Tl(t);if(typeof n=="string"){const s=(r=I(this,tn).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(){st.batch(()=>{I(this,Hn).forEach(t=>{this.notify({type:"removed",mutation:t})}),I(this,Hn).clear(),I(this,tn).clear()})}getAll(){return Array.from(I(this,Hn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>vx(n,r))}findAll(t={}){return this.getAll().filter(n=>vx(t,n))}notify(t){st.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return st.batch(()=>Promise.all(t.map(n=>n.continue().catch(Xt))))}},Hn=new WeakMap,tn=new WeakMap,Do=new WeakMap,Y0);function Tl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function kx(e){return{onFetch:(t,n)=>{var d,h,f,p,x;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=((p=t.state.data)==null?void 0:p.pages)||[],a=((x=t.state.data)==null?void 0:x.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let y=!1;const b=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},g=W1(t.options,t.fetchOptions),m=async(v,k,S)=>{if(y)return Promise.reject();if(k==null&&v.pages.length)return Promise.resolve(v);const A=(()=>{const z={client:t.client,queryKey:t.queryKey,pageParam:k,direction:S?"backward":"forward",meta:t.options.meta};return b(z),z})(),E=await g(A),{maxPages:N}=t.options,R=S?xR:yR;return{pages:R(v.pages,E,N),pageParams:R(v.pageParams,k,N)}};if(s&&i.length){const v=s==="backward",k=v?PR:Sx,S={pages:i,pageParams:a},j=k(r,S);l=await m(S,j,v)}else{const v=e??i.length;do{const k=c===0?a[0]??r.initialPageParam:Sx(r,l);if(c>0&&k==null)break;l=await m(l,k),c++}while(c<v)}return l};t.options.persister?t.fetchFn=()=>{var y,b;return(b=(y=t.options).persister)==null?void 0:b.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Sx(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 PR(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 je,Sr,jr,Ii,Pi,Ar,Ri,Oi,J0,RR=(J0=class{constructor(e={}){ie(this,je);ie(this,Sr);ie(this,jr);ie(this,Ii);ie(this,Pi);ie(this,Ar);ie(this,Ri);ie(this,Oi);Q(this,je,e.queryCache||new NR),Q(this,Sr,e.mutationCache||new IR),Q(this,jr,e.defaultOptions||{}),Q(this,Ii,new Map),Q(this,Pi,new Map),Q(this,Ar,0)}mount(){sl(this,Ar)._++,I(this,Ar)===1&&(Q(this,Ri,H1.subscribe(async e=>{e&&(await this.resumePausedMutations(),I(this,je).onFocus())})),Q(this,Oi,Bc.subscribe(async e=>{e&&(await this.resumePausedMutations(),I(this,je).onOnline())})))}unmount(){var e,t;sl(this,Ar)._--,I(this,Ar)===0&&((e=I(this,Ri))==null||e.call(this),Q(this,Ri,void 0),(t=I(this,Oi))==null||t.call(this),Q(this,Oi,void 0))}isFetching(e){return I(this,je).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return I(this,Sr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=I(this,je).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=I(this,je).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Nf(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return I(this,je).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=I(this,je).get(r.queryHash),i=s==null?void 0:s.state.data,a=dR(t,i);if(a!==void 0)return I(this,je).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return st.batch(()=>I(this,je).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=I(this,je).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=I(this,je);st.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=I(this,je);return st.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=st.batch(()=>I(this,je).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Xt).catch(Xt)}invalidateQueries(e,t={}){return st.batch(()=>(I(this,je).findAll(e).forEach(n=>
211{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=st.batch(()=>I(this,je).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Xt)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Xt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=I(this,je).build(this,t);return n.isStaleByTime(Nf(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Xt).catch(Xt)}fetchInfiniteQuery(e){return e.behavior=kx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Xt).catch(Xt)}ensureInfiniteQueryData(e){return e.behavior=kx(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Bc.isOnline()?I(this,Sr).resumePausedMutations():Promise.resolve()}getQueryCache(){return I(this,je)}getMutationCache(){return I(this,Sr)}getDefaultOptions(){return I(this,jr)}setDefaultOptions(e){Q(this,jr,e)}setQueryDefaults(e,t){I(this,Ii).set(yo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...I(this,Ii).values()],n={};return t.forEach(r=>{xo(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){I(this,Pi).set(yo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...I(this,Pi).values()],n={};return t.forEach(r=>{xo(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...I(this,jr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Pm(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===Rm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...I(this,jr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){I(this,je).clear(),I(this,Sr).clear()}},je=new WeakMap,Sr=new WeakMap,jr=new WeakMap,Ii=new WeakMap,Pi=new WeakMap,Ar=new WeakMap,Ri=new WeakMap,Oi=new WeakMap,J0),OR=w.createContext(void 0),DR=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),o.jsx(OR.Provider,{value:e,children:t}));/** 212 * @remix-run/router v1.23.0 213 * 214 * Copyright (c) Remix Software Inc. 215 * 216 * This source code is licensed under the MIT license found in the 217 * LICENSE.md file in the root directory of this source tree. 218 * 219 * @license MIT 220 */function vo(){return vo=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},vo.apply(this,arguments)}var Nr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Nr||(Nr={}));const jx="popstate";function LR(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:a,hash:l}=r.location;return _f("",{pathname:i,search:a,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Uc(s)}return $R(t,n,null,e)}function Oe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function J1(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function MR(){return Math.random().toString(36).substr(2,8)}function Ax(e,t){return{usr:e.state,key:e.key,idx:t}}function _f(e,t,n,r){return n===void 0&&(n=null),vo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ta(t):t,{state:n,key:t&&t.key||r||MR()})}function Uc(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 ta(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 $R(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,a=s.history,l=Nr.Pop,c=null,u=d();u==null&&(u=0,a.replaceState(vo({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function h(){l=Nr.Pop;let b=d(),g=b==null?null:b-u;u=b,c&&c({action:l,location:y.location,delta:g})}function f(b,g){l=Nr.Push;let m=_f(y.location,b,g);u=d()+1;let v=Ax(m,u),k=y.createHref(m);try{a.pushState(v,"",k)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(k)}i&&c&&c({action:l,location:y.location,delta:1})}function p(b,g){l=Nr.Replace;let m=_f(y.location,b,g);u=d();let v=Ax(m,u),k=y.createHref(m);a.replaceState(v,"",k),i&&c&&c({action:l,location:y.location,delta:0})}function x(b){let g=s.location.origin!=="null"?s.location.origin:s.location.href,m=typeof b=="string"?b:Uc(b);return m=m.replace(/ $/,"%20"),Oe(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let y={get action(){return l},get location(){return e(s,a)},listen(b){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(jx,h),c=b,()=>{s.removeEventListener(jx,h),c=null}},createHref(b){return t(s,b)},createURL:x,encodeLocation(b){let g=x(b);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:p,go(b){return a.go(b)}};return y}var Ex;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ex||(Ex={}));
vendor: 9,248 bytes, lines 220-229
220function FR(e,t,n){return n===void 0&&(n="/"),BR(e,t,n,!1)}function BR(e,t,n,r){let s=typeof t=="string"?ta(t):t,i=Om(s.pathname||"/",n);if(i==null)return null;let a=Q1(e);UR(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let u=XR(i);l=JR(a[c],u,r)}return l}function Q1(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,a,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("/")&&(Oe(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=$r([r,c.relativePath]),d=n.concat(c);i.children&&i.children.length>0&&(Oe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Q1(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:GR(u,i.index),routesMeta:d})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))s(i,a);else for(let c of X1(i.path))s(i,a,c)}),t}function X1(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 a=X1(r.join("/")),l=[];return l.push(...a.map(c=>c===""?i:[i,c].join("/"))),s&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function UR(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:YR(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const zR=/^:[\w-]+$/,VR=3,WR=2,HR=1,KR=10,qR=-2,Tx=e=>e==="*";function GR(e,t){let n=e.split("/"),r=n.length;return n.some(Tx)&&(r+=qR),t&&(r+=WR),n.filter(s=>!Tx(s)).reduce((s,i)=>s+(zR.test(i)?VR:i===""?HR:KR),r)}function YR(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 JR(e,t,n){let{routesMeta:r}=e,s={},i="/",a=[];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=Nx({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),f=c.route;if(!h&&u&&n&&!r[r.length-1].route.index&&(h=Nx({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!h)return null;Object.assign(s,h.params),a.push({params:s,pathname:$r([i,h.pathname]),pathnameBase:n2($r([i,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(i=$r([i,h.pathnameBase]))}return a}function Nx(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=QR(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],a=i.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:r.reduce((u,d,h)=>{let{paramName:f,isOptional:p}=d;if(f==="*"){let y=l[h]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const x=l[h];return p&&!x?u[f]=void 0:u[f]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function QR(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),J1(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,(a,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 XR(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return J1(!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 Om(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 ZR(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?ta(e):e;return{pathname:n?n.startsWith("/")?n:e2(n,t):t,search:r2(r),hash:s2(s)}}function e2(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 Bd(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 t2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Z1(e,t){let n=t2(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function eS(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=ta(e):(s=vo({},e),Oe(!s.pathname||!s.pathname.includes("?"),Bd("?","pathname","search",s)),Oe(!s.pathname||!s.pathname.includes("#"),Bd("#","pathname","hash",s)),Oe(!s.search||!s.search.includes("#"),Bd("#","search","hash",s)));let i=e===""||s.pathname==="",a=i?"/":s.pathname,l;if(a==null)l=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),h-=1;s.pathname=f.join("/")}l=h>=0?t[h]:"/"}let c=ZR(s,l),u=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const $r=e=>e.join("/").replace(/\/\/+/g,"/"),n2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),r2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,s2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function i2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const tS=["post","put","patch","delete"];new Set(tS);const a2=["get",...tS];new Set(a2);/** 221 * React Router v6.30.1 222 * 223 * Copyright (c) Remix Software Inc. 224 * 225 * This source code is licensed under the MIT license found in the 226 * LICENSE.md file in the root directory of this source tree. 227 * 228 * @license MIT 229 */function bo(){return bo=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},bo.apply(this,arguments)}const Dm=w.createContext(null),o2=w.createContext(null),Ps=w.createContext(null),Lu=w.createContext(null),Gr=w.createContext({outlet:null,matches:[],isDataRoute:!1}),nS=w.createContext(null);function l2(e,t){let{relative:n}=t===void 0?{}:t;qo()||Oe(!1);let{basename:r,navigator:s}=w.useContext(Ps),{hash:i,pathname:a,search:l}=iS(e,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:$r([r,a])),s.createHref({pathname:c,search:l,hash:i})}function qo(){return w.useContext(Lu)!=null}function Rs(){return qo()||Oe(!1),w.useContext(Lu).location}function rS(e){w.useContext(Ps).static||w.useLayoutEffect(e)}function sS(){let{isDataRoute:e}=w.useContext(Gr);return e?S2():c2()}function c2(){qo()||Oe(!1);let e=w.useContext(Dm),{basename:t,future:n,navigator:r}=w.useContext(Ps),{matches:s}=w.useContext(Gr),{pathname:i}=Rs(),a=JSON.stringify(Z1(s,n.v7_relativeSplatPath)),l=w.useRef(!1);return rS(()=>{l.current=!0}),w.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let h=eS(u,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:$r([t,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[t,r,a,i,e])}const u2=w.createContext(null);function d2(e){let t=w.useContext(Gr).outlet;return t&&w.createElement(u2.Provider,{value:e},t)}function iS(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=w.useContext(Ps),{matches:s}=w.useContext(Gr),{pathname:i}=Rs(),a=JSON.stringify(Z1(s,r.v7_relativeSplatPath));return w.useMemo(()=>eS(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function h2(e,t){return f2(e,t)}function f2(e,t,n,r){qo()||Oe(!1);let{navigator:s}=w.useContext(Ps),{matches:i}=w.useContext(Gr),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=Rs(),d;if(t){var h;let b=typeof t=="string"?ta(t):t;c==="/"||(h=b.pathname)!=null&&h.startsWith(c)||Oe(!1),d=b}else d=u;let f=d.pathname||"/",p=f;if(c!=="/"){let b=c.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(b.length).join("/")}let x=FR(e,{pathname:p}),y=x2(x&&x.map(b=>Object.assign({},b,{params:Object.assign({},l,b.params),pathname:$r([c,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:$r([c,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return t&&y?w.createElement(Lu.Provider,{value:{location:bo({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Nr.Pop}},y):y}function p2(){let e=k2(),t=i2(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 w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application
229Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:s},n):null,null)}const m2=w.createElement(p2,null);class g2 extends w.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?w.createElement(Gr.Provider,{value:this.props.routeContext},w.createElement(nS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function y2(e){let{routeContext:t,match:n,children:r}=e,s=w.useContext(Dm);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(Gr.Provider,{value:t},r)}function x2(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 a=e,l=(s=n)==null?void 0:s.errors;if(l!=null){let d=a.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);d>=0||Oe(!1),a=a.slice(0,Math.min(a.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<a.length;d++){let h=a[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=d),h.route.id){let{loaderData:f,errors:p}=n,x=h.route.loader&&f[h.route.id]===void 0&&(!p||p[h.route.id]===void 0);if(h.route.lazy||x){c=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,h,f)=>{let p,x=!1,y=null,b=null;n&&(p=l&&h.route.id?l[h.route.id]:void 0,y=h.route.errorElement||m2,c&&(u<0&&f===0?(x=!0,b=null):u===f&&(x=!0,b=h.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,f+1)),m=()=>{let v;return p?v=y:x?v=b:h.route.Component?v=w.createElement(h.route.Component,null):h.route.element?v=h.route.element:v=d,w.createElement(y2,{match:h,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:v})};return n&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?w.createElement(g2,{location:n.location,revalidation:n.revalidation,component:y,error:p,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var aS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(aS||{}),zc=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}(zc||{});function v2(e){let t=w.useContext(Dm);return t||Oe(!1),t}function b2(e){let t=w.useContext(o2);return t||Oe(!1),t}function w2(e){let t=w.useContext(Gr);return t||Oe(!1),t}function oS(e){let t=w2(),n=t.matches[t.matches.length-1];return n.route.id||Oe(!1),n.route.id}function k2(){var e;let t=w.useContext(nS),n=b2(zc.UseRouteError),r=oS(zc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function S2(){let{router:e}=v2(aS.UseNavigateStable),t=oS(zc.UseNavigateStable),n=w.useRef(!1);return rS(()=>{n.current=!0}),w.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,bo({fromRouteId:t},i)))},[e,t])}function j2(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function A2(e){return d2(e.context)}function ze(e){Oe(!1)}function E2(e){let{basename:t="/",children:n=null,location:r,navigationType:s=Nr.Pop,navigator:i,static:a=!1,future:l}=e;qo()&&Oe(!1);let c=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:c,navigator:i,static:a,future:bo({v7_relativeSplatPath:!1},l)}),[c,l,i,a]);typeof r=="string"&&(r=ta(r));let{pathname:d="/",search:h="",hash:f="",state:p=null,key:x="default"}=r,y=w.useMemo(()=>{let b=Om(d,c);return b==null?null:{location:{pathname:b,search:h,hash:f,state:p,key:x},navigationType:s}},[c,d,h,f,p,x,s]);return y==null?null:w.createElement(Ps.Provider,{value:u},w.createElement(Lu.Provider,{children:n,value:y}))}function T2(e){let{children:t,location:n}=e;return h2(If(t),n)}new Promise(()=>{});function If(e,t){t===void 0&&(t=[]);let n=[];
229return w.Children.forEach(e,(r,s)=>{if(!w.isValidElement(r))return;let i=[...t,s];if(r.type===w.Fragment){n.push.apply(n,If(r.props.children,i));return}r.type!==ze&&Oe(!1),!r.props.index||!r.props.children||Oe(!1);let a={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&&(a.children=If(r.props.children,i)),n.push(a)}),n}/** 230 * React Router DOM v6.30.1 231 * 232 * Copyright (c) Remix Software Inc. 233 * 234 * This source code is licensed under the MIT license found in the 235 * LICENSE.md file in the root directory of this source tree. 236 * 237 * @license MIT 238 */function Pf(){return Pf=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},Pf.apply(this,arguments)}function N2(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 C2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _2(e,t){return e.button===0&&(!t||t==="_self")&&!C2(e)}function Rf(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function I2(e,t){let n=Rf(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(i=>{n.append(s,i)})}),n}const P2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],R2="6";try{window.__reactRouterVersion=R2}catch{}const O2="startTransition",Cx=Sp[O2];function D2(e){let{basename:t,children:n,future:r,window:s}=e,i=w.useRef();i.current==null&&(i.current=LR({window:s,v5Compat:!0}));let a=i.current,[l,c]=w.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},d=w.useCallback(h=>
238{u&&Cx?Cx(()=>c(h)):c(h)},[c,u]);return w.useLayoutEffect(()=>a.listen(d),[a,d]),w.useEffect(()=>j2(r),[r]),w.createElement(E2,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const L2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",M2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ae=w.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:a,state:l,target:c,to:u,preventScrollReset:d,viewTransition:h}=t,f=N2(t,P2),{basename:p}=w.useContext(Ps),x,y=!1;if(typeof u=="string"&&M2.test(u)&&(x=u,L2))try{let v=new URL(window.location.href),k=u.startsWith("//")?new URL(v.protocol+u):new URL(u),S=Om(k.pathname,p);k.origin===v.origin&&S!=null?u=S+k.search+k.hash:y=!0}catch{}let b=l2(u,{relative:s}),g=$2(u,{replace:a,state:l,target:c,preventScrollReset:d,relative:s,viewTransition:h});function m(v){r&&r(v),v.defaultPrevented||g(v)}return w.createElement("a",Pf({},f,{href:x||b,onClick:y||i?r:m,ref:n,target:c}))});var _x;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_x||(_x={}));var Ix;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ix||(Ix={}));function $2(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:a,viewTransition:l}=t===void 0?{}:t,c=sS(),u=Rs(),d=iS(e,{relative:a});return w.useCallback(h=>{if(_2(h,n)){h.preventDefault();let f=r!==void 0?r:Uc(u)===Uc(d);c(e,{replace:f,state:s,preventScrollReset:i,relative:a,viewTransition:l})}},[u,c,d,r,s,n,e,i,a,l])}function F2(e){let t=w.useRef(Rf(e)),n=w.useRef(!1),r=Rs(),s=w.useMemo(()=>I2(r.search,n.current?null:t.current),[r.search]),i=sS(),a=w.useCallback((l,c)=>{const u=Rf(typeof l=="function"?l(s):l);n.current=!0,i("?"+u,c)},[i,s]);return[s,a]}const Lm=w.createContext({});function Mm(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const lS=typeof window<"u",cS=lS?w.useLayoutEffect:w.useEffect,Mu=w.createContext(null);function $m(e,t){e.indexOf(t)===-1&&e.push(t)}function Vc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Rn=(e,t,n)=>n>t?t:n<e?e:n;let $u=()=>{},Wi=()=>{};const tr={},uS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function dS(e){return typeof e=="object"&&e!==null}const hS=e=>/^0[^.\s]+$/u.test(e);function fS(e){let t;return()=>(t===void 0&&(t=e()),t)}const $t=e=>e,B2=(e,t)=>n=>t(e(n)),Go=(...e)=>e.reduce(B2),wo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Fm{constructor(){this.subscriptions=[]}add(t){return $m(this.subscriptions,t),()=>Vc(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 a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ft=e=>e*1e3,Lt=e=>e/1e3;function pS(e,t){return t?e*(1e3/t):0}const mS=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,U2=1e-7,z2=12;function V2(e,t,n,r,s){let i,a,l=0;do a=t+(n-t)/2,i=mS(a,r,s)-e,i>0?n=a:t=a;while(Math.abs(i)>U2&&++l<z2);return a}function Yo(e,t,n,r){if(e===t&&n===r)return $t;const s=i=>V2(i,0,1,e,n);return i=>i===0||i===1?i:mS(s(i),t,r)}const gS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,yS=e=>t=>1-e(1-t),xS=Yo(.33,1.53,.69,.99),Bm=yS(xS),vS=gS(Bm),bS=e=>(e*=2)<1?.5*Bm(e):.5*(2-Math.pow(2,-10*(e-1))),Um=e=>1-Math.sin(Math.acos(e)),wS=yS(Um),kS=gS(Um),W2=Yo(.42,0,1,1),H2=Yo(0,0,.58,1),SS=Yo(.42,0,.58,1),K2=e=>Array.isArray(e)&&typeof e[0]!="number",jS=e=>Array.isArray(e)&&typeof e[0]=="number",Px={linear:$t,easeIn:W2,easeInOut:SS,easeOut:H2,circIn:Um,circInOut:kS,circOut:wS,backIn:Bm,backInOut:vS,backOut:xS,anticipate:bS},q2=e=>typeof e=="string",Rx=e=>{if(jS(e)){Wi(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,s]=e;return Yo(t,n,r,s)}else if(q2(e))return Wi(Px[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Px[e];return e},Nl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Ox={value:null,addProjectionMetrics:null};function G2(e,t){let n=new Set,r=new Set,s=!1,i=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},c=0;function u(h){a.has(h)&&(d.schedule(h),e()),c++,h(l)}
vendor: 19,062 bytes, line 238
238const d={schedule:(h,f=!1,p=!1)=>{const y=p&&s?n:r;return f&&a.add(h),y.has(h)||y.add(h),h},cancel:h=>{r.delete(h),a.delete(h)},process:h=>{if(l=h,s){i=!0;return}s=!0,[n,r]=[r,n],n.forEach(u),t&&Ox.value&&Ox.value.frameloop[t].push(c),c=0,n.clear(),s=!1,i&&(i=!1,d.process(h))}};return d}const Y2=40;function AS(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Nl.reduce((v,k)=>(v[k]=G2(i,t?k:void 0),v),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:h,preRender:f,render:p,postRender:x}=a,y=()=>{const v=tr.useManualTiming?s.timestamp:performance.now();n=!1,tr.useManualTiming||(s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,Y2),1)),s.timestamp=v,s.isProcessing=!0,l.process(s),c.process(s),u.process(s),d.process(s),h.process(s),f.process(s),p.process(s),x.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(y))},b=()=>{n=!0,r=!0,s.isProcessing||e(y)};return{schedule:Nl.reduce((v,k)=>{const S=a[k];return v[k]=(j,A=!1,E=!1)=>(n||b(),S.schedule(j,A,E)),v},{}),cancel:v=>{for(let k=0;k<Nl.length;k++)a[Nl[k]].cancel(v)},state:s,steps:a}}const{schedule:fe,cancel:Wr,state:We,steps:Ud}=AS(typeof requestAnimationFrame<"u"?requestAnimationFrame:$t,!0);let sc;function J2(){sc=void 0}const it={now:()=>(sc===void 0&&it.set(We.isProcessing||tr.useManualTiming?We.timestamp:performance.now()),sc),set:e=>{sc=e,queueMicrotask(J2)}},ES=e=>t=>typeof t=="string"&&t.startsWith(e),TS=ES("--"),Q2=ES("var(--"),zm=e=>Q2(e)?X2.test(e.split("/*")[0].trim()):!1,X2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Dx(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const na={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ko={...na,transform:e=>Rn(0,1,e)},Cl={...na,default:1},Wa=e=>Math.round(e*1e5)/1e5,Vm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Z2(e){return e==null}const eO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Wm=(e,t)=>n=>!!(typeof n=="string"&&eO.test(n)&&n.startsWith(e)||t&&!Z2(n)&&Object.prototype.hasOwnProperty.call(n,t)),NS=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,a,l]=r.match(Vm);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},tO=e=>Rn(0,255,e),zd={...na,transform:e=>Math.round(tO(e))},ds={test:Wm("rgb","red"),parse:NS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+zd.transform(e)+", "+zd.transform(t)+", "+zd.transform(n)+", "+Wa(ko.transform(r))+")"};function nO(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Of={test:Wm("#"),parse:nO,transform:ds.transform},Jo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),fr=Jo("deg"),_n=Jo("%"),B=Jo("px"),rO=Jo("vh"),sO=Jo("vw"),Lx={..._n,parse:e=>_n.parse(e)/100,transform:e=>_n.transform(e*100)},ci={test:Wm("hsl","hue"),parse:NS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+_n.transform(Wa(t))+", "+_n.transform(Wa(n))+", "+Wa(ko.transform(r))+")"},Pe={test:e=>ds.test(e)||Of.test(e)||ci.test(e),parse:e=>ds.test(e)?ds.parse(e):ci.test(e)?ci.parse(e):Of.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ds.transform(e):ci.transform(e),getAnimatableNone:e=>{const t=Pe.parse(e);return t.alpha=0,Pe.transform(t)}},iO=/(?:#[\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(Vm))==null?void 0:t.length)||0)+(((n=e.match(iO))==null?void 0:n.length)||0)>0}const CS="number",_S="color",oO="var",lO="var(",Mx="${}",cO=/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 So(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const l=t.replace(cO,c=>(Pe.test(c)?(r.color.push(i),s.push(_S),n.push(Pe.parse(c))):c.startsWith(lO)?(r.var.push(i),s.push(oO),n.push(c)):(r.number.push(i),s.push(CS),n.push(parseFloat(c))),++i,Mx)).split(Mx);return{values:n,split:l,indexes:r,types:s}}function IS(e){return So(e).values}function PS(e){const{split:t,types:n}=So(e),r=t.length;return s=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],s[a]!==void 0){const l=n[a];l===CS?i+=Wa(s[a]):l===_S?i+=Pe.transform(s[a]):i+=s[a]}return i}}const uO=e=>typeof e=="number"?0:Pe.test(e)?Pe.getAnimatableNone(e):e;function dO(e){const t=IS(e);return PS(e)(t.map(uO))}const un={test:aO,parse:IS,createTransformer:PS,getAnimatableNone:dO};function Vd(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 hO({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,a=0;if(!t)s=i=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;s=Vd(c,l,e+1/3),i=Vd(c,l,e),a=Vd(c,l,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}function Wc(e,t){return n=>n>0?t:e}const we=(e,t,n)=>e+(t-e)*n,Wd=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},fO=[Of,ds,ci],pO=e=>fO.find(t=>t.test(e));function $x(e){const t=pO(e);if($u(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===ci&&(n=hO(n)),n}const Fx=(e,t)=>{const n=$x(e),r=$x(t);if(!n||!r)return Wc(e,t);const s={...n};return i=>(s.red=Wd(n.red,r.red,i),s.green=Wd(n.green,r.green,i),s.blue=Wd(n.blue,r.blue,i),s.alpha=we(n.alpha,r.alpha,i),ds.transform(s))},Df=new Set(["none","hidden"]);function mO(e,t){return Df.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function gO(e,t){return n=>we(e,t,n)}function Hm(e){return typeof e=="number"?gO:typeof e=="string"?zm(e)?Wc:Pe.test(e)?Fx:vO:Array.isArray(e)?RS:typeof e=="object"?Pe.test(e)?Fx:yO:Wc}function RS(e,t){const n=[...e],r=n.length,s=e.map((i,a)=>Hm(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=s[a](i);return n}}function yO(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Hm(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function xO(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],a=e.indexes[i][r[i]],l=e.values[a]??0;n[s]=l,r[i]++}return n}const vO=(e,t)=>{const n=un.createTransformer(t),r=So(e),s=So(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?Df.has(e)&&!s.values.length||Df.has(t)&&!r.values.length?mO(e,t):Go(RS(xO(r,s),s.values),n):($u(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Wc(e,t))};function OS(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?we(e,t,n):Hm(e)(e,t)}const bO=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>fe.update(t,n),stop:()=>Wr(t),now:()=>We.isProcessing?We.timestamp:it.now()}},DS=(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)})`},Hc=2e4;function Km(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Hc;)t+=n,r=e.next(t);return t>=Hc?1/0:t}function wO(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(Km(r),Hc);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:Lt(s)}}const kO=5;function LS(e,t,n){const r=Math.max(t-kO,0);return pS(n-e(r),t-r)}const ve={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},Hd=.001;function SO({duration:e=ve.duration,bounce:t=ve.bounce,velocity:n=ve.velocity,mass:r=ve.mass}){let s,i;$u(e<=Ft(ve.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=Rn(ve.minDamping,ve.maxDamping,a),e=Rn(ve.minDuration,ve.maxDuration,Lt(e)),a<1?(s=u=>{const d=u*a,h=d*e,f=d-n,p=Lf(u,a),x=Math.exp(-h);return Hd-f/p*x},i=u=>{const h=u*a*e,f=h*n+n,p=Math.pow(a,2)*Math.pow(u,2)*e,x=Math.exp(-h),y=Lf(Math.pow(u,2),a);return(-s(u)+Hd>0?-1:1)*((f-p)*x)/y}):(s=u=>{const d=Math.exp(-u*e),h=(u-n)*e+1;return-Hd+d*h},i=u=>{const d=Math.exp(-u*e),h=(n-u)*(e*e);return d*h});const l=5/e,c=AO(s,i,l);if(e=Ft(e),isNaN(c))return{stiffness:ve.stiffness,damping:ve.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const jO=12;function AO(e,t,n){let r=n;for(let s=1;s<jO;s++)r=r-e(r)/t(r);return r}function Lf(e,t){return e*Math.sqrt(1-t*t)}const EO=["duration","bounce"],TO=["stiffness","damping","mass"];function Bx(e,t){return t.some(n=>e[n]!==void 0)}function NO(e){let t={velocity:ve.velocity,stiffness:ve.stiffness,damping:ve.damping,mass:ve.mass,isResolvedFromDuration:!1,...e};if(!Bx(e,TO)&&Bx(e,EO))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Rn(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:ve.mass,stiffness:s,damping:i}}else{const n=SO(e);t={...t,...n,mass:ve.mass},t.isResolvedFromDuration=!0}return t}function Kc(e=ve.visualDuration,t=ve.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],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:u,mass:d,duration:h,velocity:f,isResolvedFromDuration:p}=NO({...n,velocity:-Lt(n.velocity||0)}),x=f||0,y=u/(2*Math.sqrt(c*d)),b=a-i,g=Lt(Math.sqrt(c/d)),m=Math.abs(b)<5;r||(r=m?ve.restSpeed.granular:ve.restSpeed.default),s||(s=m?ve.restDelta.granular:ve.restDelta.default);let v;if(y<1){const S=Lf(g,y);v=j=>{const A=Math.exp(-y*g*j);return a-A*((x+y*g*b)/S*Math.sin(S*j)+b*Math.cos(S*j))}}else if(y===1)v=S=>a-Math.exp(-g*S)*(b+(x+g*b)*S);else{const S=g*Math.sqrt(y*y-1);v=j=>{const A=Math.exp(-y*g*j),E=Math.min(S*j,300);return a-A*((x+y*g*b)*Math.sinh(E)+S*b*Math.cosh(E))/S}}const k={calculatedDuration:p&&h||null,next:S=>{const j=v(S);if(p)l.done=S>=h;else{let A=S===0?x:0;y<1&&(A=S===0?Ft(x):LS(v,S,j));const E=Math.abs(A)<=r,N=Math.abs(a-j)<=s;l.done=E&&N}return l.value=l.done?a:j,l},toString:()=>{const S=Math.min(Km(k),Hc),j=DS(A=>k.next(S*A).value,S,30);return S+"ms "+j},toTransition:()=>{}};return k}Kc.applyToOptions=e=>{const t=wO(e,100,Kc);return e.ease=t.ease,e.duration=Ft(t.duration),e.type="keyframes",e};function Mf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:d}){const h=e[0],f={done:!1,value:h},p=E=>l!==void 0&&E<l||c!==void 0&&E>c,x=E=>l===void 0?c:c===void 0||Math.abs(l-E)<Math.abs(c-E)?l:c;let y=n*t;const b=h+y,g=a===void 0?b:a(b);g!==b&&(y=g-h);const m=E=>-y*Math.exp(-E/r),v=E=>g+m(E),k=E=>{const N=m(E),R=v(E);f.done=Math.abs(N)<=u,f.value=f.done?g:R};let S,j;const A=E=>{p(f.value)&&(S=E,j=Kc({keyframes:[f.value,x(f.value)],velocity:LS(v,E,f.value),damping:s,stiffness:i,restDelta:u,restSpeed:d}))};return A(0),{calculatedDuration:null,next:E=>{let N=!1;return!j&&S===void 0&&(N=!0,k(E),A(E)),S!==void 0&&E>=S?j.next(E-S):(!N&&k(E),f)}}}function CO(e,t,n){const r=[],s=n||tr.mix||OS,i=e.length-1;for(let a=0;a<i;a++){let l=s(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||$t:t;l=Go(c,l)}r.push(l)}return r}function _O(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Wi(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=CO(t,r,s),c=l.length,u=d=>{if(a&&d<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const f=wo(e[h],e[h+1],d);return l[h](f)};return n?d=>u(Rn(e[0],e[i-1],d)):u}function IO(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=wo(0,t,r);e.push(we(n,1,s))}}function PO(e){const t=[0];return IO(t,e.length-1),t}function RO(e,t){return e.map(n=>n*t)}function OO(e,t){return e.map(()=>t||SS).splice(0,e.length-1)}function Ha({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=K2(r)?r.map(Rx):Rx(r),i={done:!1,value:t[0]},a=RO(n&&n.length===t.length?n:PO(t),e),l=_O(a,t,{ease:Array.isArray(s)?s:OO(t,s)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const DO=e=>e!==null;function qm(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(DO),l=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||r===void 0?i[l]:r}const LO={decay:Mf,inertia:Mf,tween:Ha,keyframes:Ha,spring:Kc};function MS(e){typeof e.type=="string"&&(e.type=LO[e.type])}class Gm{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 MO=e=>e/100;class Ym extends Gm{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!==it.now()&&this.tick(it.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;MS(t);const{type:n=Ha,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:a=0}=t;let{keyframes:l}=t;const c=n||Ha;c!==Ha&&typeof l[0]!="number"&&(this.mixKeyframes=Go(MO,OS(l[0],l[1])),l=[0,100]);const u=c({...t,keyframes:l});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=Km(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:a,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:d,repeat:h,repeatType:f,repeatDelay:p,type:x,onUpdate:y,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 g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),m=this.playbackSpeed>=0?g<0:g>s;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let v=this.currentTime,k=r;if(h){const E=Math.min(this.currentTime,s)/l;let N=Math.floor(E),R=E%1;!R&&E>=1&&(R=1),R===1&&N--,N=Math.min(N,h+1),!!(N%2)&&(f==="reverse"?(R=1-R,p&&(R-=p/l)):f==="mirror"&&(k=a)),v=Rn(0,1,R)*l}const S=m?{done:!1,value:d[0]}:k.next(v);i&&(S.value=i(S.value));let{done:j}=S;!m&&c!==null&&(j=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&j);return A&&x!==Mf&&(S.value=qm(d,this.options,b,this.speed)),y&&y(S.value),A&&this.finish(),S}then(t,n){return this.finished.then(t,n)}get duration(){return Lt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Lt(t)}get time(){return Lt(this.currentTime)}set time(t){var n;t=Ft(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(it.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Lt(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=bO,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(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(it.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 $O(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const hs=e=>e*180/Math.PI,$f=e=>{const t=hs(Math.atan2(e[1],e[0]));return Ff(t)},FO={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:$f,rotateZ:$f,skewX:e=>hs(Math.atan(e[1])),skewY:e=>hs(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ff=e=>(e=e%360,e<0&&(e+=360),e),Ux=$f,zx=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Vx=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),BO={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zx,scaleY:Vx,scale:e=>(zx(e)+Vx(e))/2,rotateX:e=>Ff(hs(Math.atan2(e[6],e[5]))),rotateY:e=>Ff(hs(Math.atan2(-e[2],e[0]))),rotateZ:Ux,rotate:Ux,skewX:e=>hs(Math.atan(e[4])),skewY:e=>hs(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Bf(e){return e.includes("scale")?1:0}function Uf(e,t){if(!e||e==="none")return Bf(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=BO,s=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=FO,s=l}if(!s)return Bf(t);const i=r[t],a=s[1].split(",").map(zO);return typeof i=="function"?i(a):a[i]}const UO=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Uf(n,t)};function zO(e){return parseFloat(e.trim())}const ra=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],sa=new Set(ra),Wx=e
vendor: 1,038 bytes, line 238
238=>e===na||e===B,VO=new Set(["x","y","z"]),WO=ra.filter(e=>!VO.has(e));function HO(e){const t=[];return WO.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Cr={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})=>Uf(t,"x"),y:(e,{transform:t})=>Uf(t,"y")};Cr.translateX=Cr.x;Cr.translateY=Cr.y;const Ss=new Set;let zf=!1,Vf=!1,Wf=!1;function $S(){if(Vf){const e=Array.from(Ss).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=HO(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,a])=>{var l;(l=r.getValue(i))==null||l.set(a
vendor: 1,549 bytes, line 238
238)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Vf=!1,zf=!1,Ss.forEach(e=>e.complete(Wf)),Ss.clear()}function FS(){Ss.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Vf=!0)})}function KO(){Wf=!0,FS(),$S(),Wf=!1}class Jm{constructor(t,n,r,s,i,a=!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=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Ss.add(this),zf||(zf=!0,fe.read(FS),fe.resolveKeyframes($S))):(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(),a=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),s&&i===void 0&&s.set(t[0])}$O(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ss.delete(this)}cancel(){this.state==="scheduled"&&(Ss.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const qO=e=>e.startsWith("--");function GO(e,t,n){qO(t)?e.style.setProperty(t,n):e.style[t]=n}const YO={};function BS(e,t){const n=fS(e);return()=>YO[t]??n()}const JO=BS(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),US=BS(()=>{try{document.createElement("div").animate({opacity:0}
238,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Na=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Hx={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Na([0,.65,.55,1]),circOut:Na([.55,0,1,.45]),backIn:Na([.31,.01,.66,-.59]),backOut:Na([.33,1.53,.69,.99])};function zS(e,t){if(e)return typeof e=="function"?US()?DS(e,t):"ease-out":jS(e)?Na(e):Array.isArray(e)?e.map(n=>zS(n,t)||Hx.easeOut):Hx[e]}function QO(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:a="loop",ease:l="easeOut",times:c}={},u=void 0){const d={[t]:n};c&&(d.offset=c);const h=zS(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:a==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(d,f)}function VS(e){return typeof e=="function"&&"applyToOptions"in e}function XO({type:e,...t}){return VS(e)&&US()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class WS extends Gm{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=t,Wi(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=XO(t);this.animation=QO(n,r,s,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=qm(s,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):GO(n,r,d),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Lt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Lt(t)}get time(){return Lt(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ft(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&JO()?(this.animation.timeline=t,$t):n(this)}}const HS={anticipate:bS,backInOut:vS,circInOut:kS};function ZO(e){return e in HS}function eD(e){typeof e.ease=="string"&&ZO(e.ease)&&(e.ease=HS[e.ease])}const Kd=10;class tD extends WS{constructor(t){eD(t),MS(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new Ym({...a,autoplay:!1}),c=Math.max(Kd,it.now()-this.startTime),u=Rn(0,Kd,c-Kd);n.setWithVelocity(l.sample(Math.max(0,c-u)).value,l.sample(c).value,u),l.stop()}}const Kx=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(un.test(e)||e==="0")&&!e.startsWith("url("));function nD(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 rD(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],a=Kx(s,t),l=Kx(i,t);return $u(a===l,`You are trying to animate ${t} from "${s}" to "${i}". "${a?i:s}" is not an animatable value.`,"value-not-animatable"),!a||!l?!1:nD(e)||(n==="spring"||VS(n))&&r}function Hf(e){e.duration=0,e.type="keyframes"}const sD=new Set(["opacity","clipPath","filter","transform"]),iD=fS(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function aD(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:a}=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 iD()&&n&&sD.has(n)&&(n!=="transform"||!u)&&!c&&!r&&s!=="mirror"&&i!==0&&a!=="inertia"}const oD=40;class lD extends Gm{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:a="loop",keyframes:l,name:c,motionValue:u,element:d,...h}){var x;super(),this.stop=()=>{var y,b;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=it.now();
238const f={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:a,name:c,motionValue:u,element:d,...h},p=(d==null?void 0:d.KeyframeResolver)||Jm;this.keyframeResolver=new p(l,(y,b,g)=>this.onKeyframesResolved(y,b,f,!g),c,u,d),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,s){var b,g;this.keyframeResolver=void 0;const{name:i,type:a,velocity:l,delay:c,isHandoff:u,onUpdate:d}=r;this.resolvedAt=it.now(),rD(t,i,a,l)||((tr.instantAnimations||!c)&&(d==null||d(qm(t,r,n))),t[0]=t[t.length-1],Hf(r),r.repeat=0);const f={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>oD?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!u&&aD(f),x=(g=(b=f.motionValue)==null?void 0:b.owner)==null?void 0:g.current,y=p?new tD({...f,element:x}):new Ym(f);y.finished.then(()=>{this.notifyFinished()}).catch($t),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}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(),KO()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function KS(e,t,n,r=0,s=1){const i=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),a=e.size,l=(a-1)*r;return typeof n=="function"?n(i,a):s===1?i*r:l-i*r}const cD=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function uD(e){const t=cD.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const dD=4;function qS(e,t,n=1){Wi(n<=dD,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,s]=uD(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return uS(a)?parseFloat(a):a}return zm(s)?qS(s,t,n+1):s}const hD={type:"spring",stiffness:500,damping:25,restSpeed:10},fD=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),pD={type:"keyframes",duration:.8},mD={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},gD=(e,{keyframes:t})=>t.length>2?pD:sa.has(e)?e.startsWith("scale")?fD(t[1]):hD:mD,yD=e=>e!==null;function xD(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(yD),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}function GS(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Qm(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?GS(n,e):n}function vD({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:a,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const Xm=(e,t,n,r={},s,i)=>a=>{const l=Qm(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Ft(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:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:s};vD(l)||Object.assign(d,gD(e,d)),d.duration&&(d.duration=Ft(d.duration)),d.repeatDelay&&(d.repeatDelay=Ft(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Hf(d),d.delay===0&&(h=!0)),(tr.instantAnimations||tr.skipAnimations||s!=null&&s.shouldSkipAnimations)&&(h=!0,Hf(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,h&&!i&&t.get()!==void 0){const f=xD(d.keyframes,l);if(f!==void 0){fe.update(()=>{d.onUpdate(f),d.onComplete()});return}}return l.isSync?new Ym(d):new lD(d)};function qx(e){const t=[{},{}];
vendor: 20,551 bytes, line 238
238return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Zm(e,t,n,r){if(typeof t=="function"){const[s,i]=qx(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]=qx(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function Ai(e,t,n){const r=e.getProps();return Zm(r,t,n!==void 0?n:r.custom,e)}const YS=new Set(["width","height","top","left","right","bottom",...ra]),Gx=30,bD=e=>!isNaN(parseFloat(e));class wD{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=it.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 a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=it.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=bD(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 Fm);const r=this.events[t].add(n);return t==="change"?()=>{r(),fe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=it.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Gx)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Gx);return pS(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 Hi(e,t){return new wD(e,t)}const Kf=e=>Array.isArray(e);function kD(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Hi(n))}function SD(e){return Kf(e)?e[e.length-1]||0:e}function jD(e,t){const n=Ai(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const a in i){const l=SD(i[a]);kD(e,a,l)}}const et=e=>!!(e&&e.getVelocity);function AD(e){return!!(et(e)&&e.add)}function qf(e,t){const n=e.getValue("willChange");if(AD(n))return n.add(t);if(!n&&tr.WillChange){const r=new tr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function eg(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const ED="framerAppearId",JS="data-"+eg(ED);function QS(e){return e.props[JS]}function TD({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function XS(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:a,...l}=t;const c=e.getDefaultTransition();i=i?GS(i,c):c;const u=i==null?void 0:i.reduceMotion;r&&(i=r);const d=[],h=s&&e.animationState&&e.animationState.getState()[s];for(const f in l){const p=e.getValue(f,e.latestValues[f]??null),x=l[f];if(x===void 0||h&&TD(h,f))continue;const y={delay:n,...Qm(i||{},f)},b=p.get();if(b!==void 0&&!p.isAnimating&&!Array.isArray(x)&&x===b&&!y.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const k=QS(e);if(k){const S=window.MotionHandoffAnimation(k,f,fe);S!==null&&(y.startTime=S,g=!0)}}qf(e,f);const m=u??e.shouldReduceMotion;p.start(Xm(f,p,x,m&&YS.has(f)?{type:!1}:y,e,g));const v=p.animation;v&&d.push(v)}if(a){const f=()=>fe.update(()=>{a&&jD(e,a)});d.length?Promise.all(d).then(f):f()}return d}function Gf(e,t,n={}){var c;const r=Ai(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(XS(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:f}=s;return ND(e,t,u,d,h,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,d]=l==="beforeChildren"?[i,a]:[a,i];return u().then(()=>d())}else return Promise.all([i(),a(n.delay)])}function ND(e,t,n=0,r=0,s=0,i=1,a){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(Gf(c,t,{...a,delay:n+(typeof r=="function"?0:r)+KS(e.variantChildren,c,r,s,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function CD(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>Gf(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=Gf(e,t,n);else{const s=typeof t=="function"?Ai(e,t,n.custom):t;r=Promise.all(XS(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const _D={test:e=>e==="auto",parse:e=>e},ZS=e=>t=>t.test(e),ej=[na,B,_n,fr,sO,rO,_D],Yx=e=>ej.find(ZS(e));function ID(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||hS(e):!0}const PD=new Set(["brightness","contrast","saturate","opacity"]);function RD(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Vm)||[];if(!r)return e;const s=n.replace(r,"");let i=PD.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const OD=/\b([a-z-]*)\(.*?\)/gu,Yf={...un,getAnimatableNone:e=>{const t=e.match(OD);return t?t.map(RD).join(" "):e}},Jf={...un,getAnimatableNone:e=>{const t=un.parse(e);return un.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Jx={...na,transform:Math.round},DD={rotate:fr,rotateX:fr,rotateY:fr,rotateZ:fr,scale:Cl,scaleX:Cl,scaleY:Cl,scaleZ:Cl,skew:fr,skewX:fr,skewY:fr,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:ko,originX:Lx,originY:Lx,originZ:B},tg={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,top:B,right:B,bottom:B,left:B,inset:B,insetBlock:B,insetBlockStart:B,insetBlockEnd:B,insetInline:B,insetInlineStart:B,insetInlineEnd:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,paddingBlock:B,paddingBlockStart:B,paddingBlockEnd:B,paddingInline:B,paddingInlineStart:B,paddingInlineEnd:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,marginBlock:B,marginBlockStart:B,marginBlockEnd:B,marginInline:B,marginInlineStart:B,marginInlineEnd:B,fontSize:B,backgroundPositionX:B,backgroundPositionY:B,...DD,zIndex:Jx,fillOpacity:ko,strokeOpacity:ko,numOctaves:Jx},LD={...tg,color:Pe,backgroundColor:Pe,outlineColor:Pe,fill:Pe,stroke:Pe,borderColor:Pe,borderTopColor:Pe,borderRightColor:Pe,borderBottomColor:Pe,borderLeftColor:Pe,filter:Yf,WebkitFilter:Yf,mask:Jf,WebkitMask:Jf},tj=e=>LD[e],MD=new Set([Yf,Jf]);function nj(e,t){let n=tj(e);return MD.has(n)||(n=un),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const $D=new Set(["auto","none","0"]);function FD(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!$D.has(i)&&So(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=nj(n,s)}class BD extends Jm{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 d=0;d<t.length;d++){let h=t[d];if(typeof h=="string"&&(h=h.trim(),zm(h))){const f=qS(h,n.current);f!==void 0&&(t[d]=f),d===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!YS.has(r)||t.length!==2)return;const[s,i]=t,a=Yx(s),l=Yx(i),c=Dx(s),u=Dx(i);if(c!==u&&Cr[r]){this.needsMeasurement=!0;return}if(a!==l)if(Wx(a)&&Wx(l))for(let d=0;d<t.length;d++){const h=t[d];typeof h=="string"&&(t[d]=parseFloat(h))}else Cr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||ID(t[s]))&&r.push(s);r.length&&FD(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=Cr[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,a=r[i];r[i]=Cr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEach(([c,u])=>{t.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const UD=new Set(["opacity","clipPath","filter","transform"]);function rj(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const s=document.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const sj=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Qf(e){return dS(e)&&"offsetHeight"in e}const{schedule:ng,cancel:T6}=AS(queueMicrotask,!1),Yt={x:!1,y:!1};function ij(){return Yt.x||Yt.y}function zD(e){return e==="x"||e==="y"?Yt[e]?null:(Yt[e]=!0,()=>{Yt[e]=!1}):Yt.x||Yt.y?null:(Yt.x=Yt.y=!0,()=>{Yt.x=Yt.y=!1})}function aj(e,t){const n=rj(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function VD(e){return!(e.pointerType==="touch"||ij())}function WD(e,t,n={}){const[r,s,i]=aj(e,n);return r.forEach(a=>{let l=!1,c=!1,u;const d=()=>{a.removeEventListener("pointerleave",x)},h=b=>{u&&(u(b),u=void 0),d()},f=b=>{l=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,h(b))},p=()=>{l=!0,window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",f,s)},x=b=>{if(b.pointerType!=="touch"){if(l){c=!0;return}h(b)}},y=b=>{if(!VD(b))return;c=!1;const g=t(a,b);typeof g=="function"&&(u=g,a.addEventListener("pointerleave",x,s))};a.addEventListener("pointerenter",y,s),a.addEventListener("pointerdown",p,s)}),i}const oj=(e,t)=>t?e===t?!0:oj(e,t.parentElement):!1,rg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,HD=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function KD(e){return HD.has(e.tagName)||e.isContentEditable===!0}const qD=new Set(["INPUT","SELECT","TEXTAREA"]);function GD(e){return qD.has(e.tagName)||e.isContentEditable===!0}const ic=new WeakSet;function Qx(e){return t=>{t.key==="Enter"&&e(t)}}function qd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const YD=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Qx(()=>{if(ic.has(n))return;qd(n,"down");const s=Qx(()=>{qd(n,"up")}),i=()=>qd(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 Xx(e){return rg(e)&&!ij()}const Zx=new WeakSet;function JD(e,t,n={}){const[r,s,i]=aj(e,n),a=l=>{const c=l.currentTarget;if(!Xx(l)||Zx.has(l))return;ic.add(c),n.stopPropagation&&Zx.add(l);const u=t(c,l),d=(p,x)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),ic.has(c)&&ic.delete(c),Xx(p)&&typeof u=="function"&&u(p,{success:x})},h=p=>{d(p,c===window||c===document||n.useGlobalTarget||oj(c,p.target))},f=p=>{d(p,!1)};window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",f,s)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,s),Qf(l)&&(l.addEventListener("focus",u=>YD(u,s)),!KD(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function sg(e){return dS(e)&&"ownerSVGElement"in e}const ac=new WeakMap;let pr;const lj=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:sg(r)&&"getBBox"in r?r.getBBox()[t]:r[n],QD=lj("inline","width","offsetWidth"),XD=lj("block","height","offsetHeight");function ZD({target:e,borderBoxSize:t}){var n;(n=ac.get(e))==null||n.forEach(r=>{r(e,{get width(){return QD(e,t)},get height(){return XD(e,t)}})})}function eL(e){e.forEach(ZD)}function tL(){typeof ResizeObserver>"u"||(pr=new ResizeObserver(eL))}function nL(e,t){pr||tL();const n=rj(e);return n.forEach(r=>{let s=ac.get(r);s||(s=new Set,ac.set(r,s)),s.add(t),pr==null||pr.observe(r)}),()=>{n.forEach(r=>{const s=ac.get(r);s==null||s.delete(t),s!=null&&s.size||pr==null||pr.unobserve(r)})}}const oc=new Set;let ui;function rL(){ui=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};oc.forEach(t=>t(e))},window.addEventListener("resize",ui)}function sL(e){return oc.add(e),ui||rL(),()=>{oc.delete(e),!oc.size&&typeof ui=="function"&&(window.removeEventListener("resize",ui),ui=void 0)}}function ev(e,t){return typeof e=="function"?sL(e):nL(e,t)}function iL(e){return sg(e)&&e.tagName==="svg"}const aL=[...ej,Pe,un],oL=e=>aL.find(ZS(e)),tv=()=>({translate:0,scale:1,origin:0,originPoint:0}),di=()=>({x:tv(),y:tv()}),nv=()=>({min:0,max:0}),De=()=>({x:nv(),y:nv()}),lL=new WeakMap;function Fu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function jo(e){return typeof e=="string"||Array.isArray(e)}const ig=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ag=["initial",...ig];function Bu(e){return Fu(e.animate)||ag.some(t=>jo(e[t]))}function cj(e){return!!(Bu(e)||e.variants)}function cL(e,t,n){for(const r in t){const s=t[r],i=n[r];if(et(s))e.addValue(r,s);else if(et(i))e.addValue(r,Hi(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(r);e.addValue(r,Hi(a!==void 0?a:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Xf={current:null},uj={current:!1},uL=typeof window<"u";function dL(){if(uj.current=!0,!!uL)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Xf.current=e.matches;e.addEventListener("change",t),t()}else Xf.current=!1}const rv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let qc={};function dj(e){qc=e}function hL(){return qc}class fL{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:a,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Jm,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=it.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,fe.render(this.render,!1,!0))};const{latestValues:u,renderState:d}=l;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=Bu(n),this.isVariantNode=cj(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const x=f[p];u[p]!==void 0&&et(x)&&x.set(u[p])}}mount(t){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,lL.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(uj.current||dL(),this.shouldReduceMotion=Xf.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Wr(this.notifyUpdate),Wr(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&UD.has(t)&&this.current instanceof HTMLElement){const{factory:a,keyframes:l,times:c,ease:u,duration:d}=n.accelerate,h=new WS({element:this.current,name:t,keyframes:l,times:c,ease:u,duration:Ft(d)}),f=a(h);this.valueSubscriptions.set(t,()=>{f(),h.cancel()});return}const r=sa.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&fe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in qc){const n=qc[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<rv.length;r++){const s=rv[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,a=t[i];a&&(this.propEventSubscriptions[s]=this.on(s,a))}this.prevMotionValues=cL(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
vendor: 4,117 bytes, line 238
238addVariantChild(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=Hi(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"&&(uS(r)||hS(r))?r=parseFloat(r):!oL(r)&&un.test(n)&&(r=nj(t,n)),this.setBaseTarget(t,et(r)?r.get():r)),et(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 a=Zm(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!et(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 Fm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ng.render(this.render)}}class hj extends fL{constructor(){super(...arguments),this.KeyframeResolver=BD}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;et(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Yr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function fj({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function pL({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mL(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 Gd(e){return e===void 0||e===1}function Zf({scale:e,scaleX:t,scaleY:n}){return!Gd(e)||!Gd(t)||!Gd(n)}function as(e){return Zf(e)||pj(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function pj(e){return sv(e.x)||sv(e.y)}function sv(e){return e&&e!=="0%"}function Gc(e,t,n){const r=e-n,s=t*r;return n+s}function iv(e,t,n,r,s){return s!==void 0&&(e=Gc(e,s,r)),Gc(e,n,r)+t}function ep(e,t=0,n=1,r,s){e.min=iv(e.min,t,n,r,s),e.max=iv(e.max,t,n,r,s)}function mj(e,{x:t,y:n}){ep(e.x,t.translate,t.scale,t.originPoint),ep(e.y,n.translate,n.scale,n.originPoint)}const av=.999999999999,ov=1.0000000000001;function gL(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,a;for(let l=0;l<s;l++){i=n[l],a=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&&fi(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,mj(e,a)),r&&as(i.latestValues)&&fi(e,i.latestValues))}t.x<ov&&t.x>av&&(t.x=1),t.y<ov&&t.y>av&&(t.y=1)}function hi(e,t){e.min=e.min+t,e.max=e.max+t}function lv(e,t,n,r,s=.5){const i=we(e.min,e.max,s);ep(e,t,n,i,r)}function fi(e,t){lv(e.x,t.x,t.scaleX,t.scale,t.originX),lv(e.y,t.y,t.scaleY,t.scale,t.originY)}function gj(e,t){return fj(mL(e.getBoundingClientRect(),t))}function yL(e,t,n){const r=gj(e,n),{scroll:s}=t;return s&&(hi(r.x,s.offset.x),hi(r.y,s.offset.y)),r}const xL={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vL=ra.length;function bL(e,t,n){let r="",s=!0;for(let i=0;
vendor: 4,561 bytes, line 238
238i<vL;i++){const a=ra[i],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const u=parseFloat(l);c=a.startsWith("scale")?u===1:u===0}if(!c||n){const u=sj(l,tg[a]);if(!c){s=!1;const d=xL[a]||a;r+=`${d}(${u}) `}n&&(t[a]=u)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function og(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let a=!1,l=!1;for(const c in t){const u=t[c];if(sa.has(c)){a=!0;continue}else if(TS(c)){s[c]=u;continue}else{const d=sj(u,tg[c]);c.startsWith("origin")?(l=!0,i[c]=d):r[c]=d}}if(t.transform||(a||n?r.transform=bL(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}`}}function yj(e,{style:t,vars:n},r,s){const i=e.style;let a;for(a in t)i[a]=t[a];s==null||s.applyProjectionStyles(i,r);for(a in n)i.setProperty(a,n[a])}function cv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ba={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(B.test(e))e=parseFloat(e);else return e;const n=cv(e,t.target.x),r=cv(e,t.target.y);return`${n}% ${r}%`}},wL={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=un.parse(e);if(s.length>5)return r;const i=un.createTransformer(e),a=typeof s[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;s[0+a]/=l,s[1+a]/=c;const u=we(l,c,.5);return typeof s[2+a]=="number"&&(s[2+a]/=u),typeof s[3+a]=="number"&&(s[3+a]/=u),i(s)}},tp={borderRadius:{...ba,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ba,borderTopRightRadius:ba,borderBottomLeftRadius:ba,borderBottomRightRadius:ba,boxShadow:wL};function xj(e,{layout:t,layoutId:n}){return sa.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!tp[e]||e==="opacity")}function lg(e,t,n){var a;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const l in r)(et(r[l])||s&&et(s[l])||xj(l,e)||((a=n==null?void 0:n.getValue(l))==null?void 0:a.liveStyle)!==void 0)&&(i[l]=r[l]);return i}function kL(e){return window.getComputedStyle(e)}class SL extends hj{constructor(){super(...arguments),this.type="html",this.renderInstance=yj}readValueFromInstance(t,n){var r;if(sa.has(n))return(r=this.projection)!=null&&r.isProjecting?Bf(n):UO(t,n);{const s=kL(t),i=(TS(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return gj(t,n)}build(t,n,r){og(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return lg(t,n,r)}}const jL={offset:"stroke-dashoffset",array:"stroke-dasharray"},AL={offset:"strokeDashoffset",array:"strokeDasharray"};function EL(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?jL:AL;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const TL=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function vj(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:a=0,...l},c,u,d){if(og(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);for(const p of TL)h[p]!==void 0&&(f[p]=h[p],delete h[p]);t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&EL(h,s,i,a,!1)}const bj=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"]),wj=e=>typeof e=="string"&&e.toLowerCase()==="svg";function NL(e,t,n,r){yj(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(bj.has(s)?s:eg(s),t.attrs[s])}function kj(e,t,n){const r=lg(e,t,n);for(const s in e)if(et(e[s])||et(t[s])){const i=ra.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class CL extends hj{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=De}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(sa.has(n)){const r=tj(n);return r&&r.default||0}return n=bj.has(n)?n:eg(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return kj(t,n,r)}build(t,n,r){vj(t,n,this.isSVGTag,r.transformTemplate,r.style)}
vendor: 24,767 bytes, line 238
238renderInstance(t,n,r,s){NL(t,n,r,s)}mount(t){this.isSVGTag=wj(t.tagName),super.mount(t)}}const _L=ag.length;function Sj(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Sj(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<_L;n++){const r=ag[n],s=e.props[r];(jo(s)||s===!1)&&(t[r]=s)}return t}function jj(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 IL=[...ig].reverse(),PL=ig.length;function RL(e){return t=>Promise.all(t.map(({animation:n,options:r})=>CD(e,n,r)))}function OL(e){let t=RL(e),n=uv(),r=!0;const s=c=>(u,d)=>{var f;const h=Ai(e,d,c==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(h){const{transition:p,transitionEnd:x,...y}=h;u={...u,...y,...x}}return u};function i(c){t=c(e)}function a(c){const{props:u}=e,d=Sj(e.parent)||{},h=[],f=new Set;let p={},x=1/0;for(let b=0;b<PL;b++){const g=IL[b],m=n[g],v=u[g]!==void 0?u[g]:d[g],k=jo(v),S=g===c?m.isActive:null;S===!1&&(x=b);let j=v===d[g]&&v!==u[g]&&k;if(j&&r&&e.manuallyAnimateOnMount&&(j=!1),m.protectedKeys={...p},!m.isActive&&S===null||!v&&!m.prevProp||Fu(v)||typeof v=="boolean")continue;if(g==="exit"&&m.isActive&&S!==!0){m.prevResolvedValues&&(p={...p,...m.prevResolvedValues});continue}const A=DL(m.prevProp,v);let E=A||g===c&&m.isActive&&!j&&k||b>x&&k,N=!1;const R=Array.isArray(v)?v:[v];let z=R.reduce(s(g),{});S===!1&&(z={});const{prevResolvedValues:D={}}=m,K={...D,...z},M=V=>{E=!0,f.has(V)&&(N=!0,f.delete(V)),m.needsAnimating[V]=!0;const T=e.getValue(V);T&&(T.liveStyle=!1)};for(const V in K){const T=z[V],P=D[V];if(p.hasOwnProperty(V))continue;let $=!1;Kf(T)&&Kf(P)?$=!jj(T,P):$=T!==P,$?T!=null?M(V):f.add(V):T!==void 0&&f.has(V)?M(V):m.protectedKeys[V]=!0}m.prevProp=v,m.prevResolvedValues=z,m.isActive&&(p={...p,...z}),r&&e.blockInitialAnimation&&(E=!1);const Z=j&&A;E&&(!Z||N)&&h.push(...R.map(V=>{const T={type:g};if(typeof V=="string"&&r&&!Z&&e.manuallyAnimateOnMount&&e.parent){const{parent:P}=e,$=Ai(P,V);if(P.enteringChildren&&$){const{delayChildren:Y}=$.transition||{};T.delay=KS(P.enteringChildren,e,Y)}}return{animation:V,options:T}}))}if(f.size){const b={};if(typeof u.initial!="boolean"){const g=Ai(e,Array.isArray(u.initial)?u.initial[0]:u.initial);g&&g.transition&&(b.transition=g.transition)}f.forEach(g=>{const m=e.getBaseTarget(g),v=e.getValue(g);v&&(v.liveStyle=!0),b[g]=m??null}),h.push({animation:b})}let y=!!h.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?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 p;return(p=f.animationState)==null?void 0:p.setActive(c,u)}),n[c].isActive=u;const d=a(c);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=uv()}}}function DL(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!jj(t,e):!1}function es(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function uv(){return{animate:es(!0),whileInView:es(),whileHover:es(),whileTap:es(),whileDrag:es(),whileFocus:es(),exit:es()}}function dv(e,t){e.min=t.min,e.max=t.max}function qt(e,t){dv(e.x,t.x),dv(e.y,t.y)}function hv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Aj=1e-4,LL=1-Aj,ML=1+Aj,Ej=.01,$L=0-Ej,FL=0+Ej;function at(e){return e.max-e.min}function BL(e,t,n){return Math.abs(e-t)<=n}function fv(e,t,n,r=.5){e.origin=r,e.originPoint=we(t.min,t.max,e.origin),e.scale=at(n)/at(t),e.translate=we(n.min,n.max,e.origin)-e.originPoint,(e.scale>=LL&&e.scale<=ML||isNaN(e.scale))&&(e.scale=1),(e.translate>=$L&&e.translate<=FL||isNaN(e.translate))&&(e.translate=0)}function Ka(e,t,n,r){fv(e.x,t.x,n.x,r?r.originX:void 0),fv(e.y,t.y,n.y,r?r.originY:void 0)}function pv(e,t,n){e.min=n.min+t.min,e.max=e.min+at(t)}function UL(e,t,n){pv(e.x,t.x,n.x),pv(e.y,t.y,n.y)}function mv(e,t,n){e.min=t.min-n.min,e.max=e.min+at(t)}function Yc(e,t,n){mv(e.x,t.x,n.x),mv(e.y,t.y,n.y)}function gv(e,t,n,r,s){return e-=t,e=Gc(e,1/n,r),s!==void 0&&(e=Gc(e,1/s,r)),e}function zL(e,t=0,n=1,r=.5,s,i=e,a=e){if(_n.test(t)&&(t=parseFloat(t),t=we(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=we(i.min,i.max,r);e===i&&(l-=t),e.min=gv(e.min,t,n,l,s),e.max=gv(e.max,t,n,l,s)}function yv(e,t,[n,r,s],i,a){zL(e,t[n],t[r],t[s],t.scale,i,a)}const VL=["x","scaleX","originX"],WL=["y","scaleY","originY"];function xv(e,t,n,r){yv(e.x,t,VL,n?n.x:void 0,r?r.x:void 0),yv(e.y,t,WL,n?n.y:void 0,r?r.y:void 0)}function vv(e){return e.translate===0&&e.scale===1}function Tj(e){return vv(e.x)&&vv(e.y)}function bv(e,t){return e.min===t.min&&e.max===t.max}function HL(e,t){return bv(e.x,t.x)&&bv(e.y,t.y)}function wv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Nj(e,t){return wv(e.x,t.x)&&wv(e.y,t.y)}function kv(e){return at(e.x)/at(e.y)}function Sv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function vn(e){return[e("x"),e("y")]}function KL(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((s||i||a)&&(r=`translate3d(${s}px, ${i}px, ${a}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:p,skewY:x}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),x&&(r+=`skewY(${x}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 Cj=["TopLeft","TopRight","BottomLeft","BottomRight"],qL=Cj.length,jv=e=>typeof e=="string"?parseFloat(e):e,Av=e=>typeof e=="number"||B.test(e);function GL(e,t,n,r,s,i){s?(e.opacity=we(0,n.opacity??1,YL(r)),e.opacityExit=we(t.opacity??1,0,JL(r))):i&&(e.opacity=we(t.opacity??1,n.opacity??1,r));for(let a=0;a<qL;a++){const l=`border${Cj[a]}Radius`;let c=Ev(t,l),u=Ev(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Av(c)===Av(u)?(e[l]=Math.max(we(jv(c),jv(u),r),0),(_n.test(u)||_n.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=we(t.rotate||0,n.rotate||0,r))}function Ev(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const YL=_j(0,.5,wS),JL=_j(.5,.95,$t);function _j(e,t,n){return r=>r<e?0:r>t?1:n(wo(e,t,r))}function QL(e,t,n){const r=et(e)?e:Hi(e);return r.start(Xm("",r,t,n)),r.animation}function Ao(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const XL=(e,t)=>e.depth-t.depth;class ZL{constructor(){this.children=[],this.isDirty=!1}add(t){$m(this.children,t),this.isDirty=!0}remove(t){Vc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(XL),this.isDirty=!1,this.children.forEach(t)}}function eM(e,t){const n=it.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Wr(r),e(i-t))};return fe.setup(r,!0),()=>Wr(r)}function lc(e){return et(e)?e.get():e}class tM{constructor(){this.members=[]}add(t){$m(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const s=r.instance;s&&s.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&Vc(this.members,r)}t.scheduleRender()}remove(t){if(Vc(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],a=i.instance;if(i.isPresent!==!1&&(!a||a.isConnected!==!1)){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender();const s=r.options.layoutDependency,i=t.options.layoutDependency;if(!(s!==void 0&&i!==void 0&&s===i)){const c=r.instance;c&&c.isConnected===!1&&!r.snapshot||(t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}const{crossfade:l}=t.options;l===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const cc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Yd=["","X","Y","Z"],nM=1e3;let rM=0;function Jd(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ij(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=QS(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",fe,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ij(r)}function Pj({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(a={},l=t==null?void 0:t()){this.id=rM++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(aM),this.nodes.forEach(uM),this.nodes.forEach(dM),this.nodes.forEach(oM)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,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 ZL)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Fm),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=sg(a)&&!iL(a),this.instance=a;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),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;fe.read(()=>{h=window.innerWidth}),e(a,()=>{const p=window.innerWidth;p!==h&&(h=p,this.root.updateBlockedByResize=!0,d&&d(),d=eM(f,250),cc.hasAnimatedSinceResize&&(cc.hasAnimatedSinceResize=!1,this.nodes.forEach(Cv)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||u.getDefaultTransition()||gM,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=u.getProps(),g=!this.targetLayout||!Nj(this.targetLayout,p),m=!h&&f;if(this.options.layoutRoot||this.resumeFrom||m||h&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Qm(x,"layout"),onPlay:y,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(d,m)}else h||Cv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Wr(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(hM),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ij(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(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Tv);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Nv);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(cM),this.nodes.forEach(sM),this.nodes.forEach(iM)):this.nodes.forEach(Nv),this.clearAllSnapshots();const l=it.now();We.delta=Rn(0,1e3/60,l-We.timestamp),We.timestamp=l,We.isProcessing=!0,Ud.update.process(We),Ud.preRender.process(We),Ud.render.process(We),We.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ng.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(lM),this.sharedNodes.forEach(fM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,fe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){fe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!at(this.snapshot.measuredBox.x)&&!at(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 a=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,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!s)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Tj(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&this.instance&&(l||as(this.latestValues)||d)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),yM(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:a}=this.options;if(!a)return De();const l=a.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(xM))){const{scroll:d}=this.root;d&&(hi(l.x,d.offset.x),hi(l.y,d.offset.y))}return l}removeElementScroll(a){var c;const l=De();if(qt(l,a),(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&&qt(l,a),hi(l.x,h.offset.x),hi(l.y,h.offset.y))}return l}applyTransform(a,l=!1){const c=De();qt(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&fi(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),as(d.latestValues)&&fi(c,d.latestValues)}return as(this.latestValues)&&fi(c,this.latestValues),c}removeTransform(a){const l=De();qt(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!as(u.latestValues))continue;Zf(u.latestValues)&&u.updateSnapshot();const d=De(),h=u.measurePageBox();qt(d,h),xv(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return as(this.latestValues)&&xv(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==We.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var p;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(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:h}=this.options;if(!this.layout||!(d||h))return;this.resolvedRelativeTargetAt=We.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(),UL(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):qt(this.target,this.layout.layoutBox),mj(this.target,this.targetDelta)):qt(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||Zf(this.parent.latestValues)||pj(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,l,c){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=De(),this.relativeTargetOrigin=De(),Yc(this.relativeTargetOrigin,l,c),qt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var x;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===We.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;qt(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;gL(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=De());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(hv(this.prevProjectionDelta.x,this.projectionDelta.x),hv(this.prevProjectionDelta.y,this.projectionDelta.y)),Ka(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Sv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Sv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=di(),this.projectionDelta=di(),this.projectionDeltaWithTransform=di()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},h=di();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=De(),p=c?c.source:void 0,x=this.layout?this.layout.source:void 0,y=p!==x,b=this.getStack(),g=!b||b.members.length<=1,m=!!(y&&!g&&this.options.crossfade===!0&&!this.path.some(mM));this.animationProgress=0;let v;this.mixTargetDelta=k=>{const S=k/1e3;_v(h.x,a.x,S),_v(h.y,a.y,S),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Yc(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),pM(this.relativeTarget,this.relativeTargetOrigin,f,S),v&&HL(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=De()),qt(v,this.relativeTarget)),y&&(this.animationValues=d,GL(d,u,this.latestValues,S,m,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){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&&(Wr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=fe.update(()=>{cc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Hi(0)),this.currentAnimation=QL(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),a.onUpdate&&a.onUpdate(d)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=a;if(!(!l||!c||!u)){if(this!==a&&this.layout&&u&&Rj(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||De();const h=at(this.layout.layoutBox.x);
vendor: 5,324 bytes, line 238
238c.x.min=a.target.x.min,c.x.max=c.x.min+h;const f=at(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+f}qt(l,c),fi(l,d),Ka(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new tM),this.sharedNodes.get(a).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 a=this.getStack();return a?a.lead===this:!0}getLead(){var l;const{layoutId:a}=this.options;return a?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:a}=this.options;return a?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&Jd("z",a,u,this.animationValues);for(let d=0;d<Yd.length;d++)Jd(`rotate${Yd[d]}`,a,u,this.animationValues),Jd(`skew${Yd[d]}`,a,u,this.animationValues);a.render();for(const d in u)a.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);a.scheduleRender()}applyProjectionStyles(a,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=lc(l==null?void 0:l.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=lc(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!as(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=KL(this.projectionDeltaWithTransform,this.treeScale,d);c&&(h=c(d,h)),a.transform=h;const{x:f,y:p}=this.projectionDelta;a.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,u.animationValues?a.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:a.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const x in tp){if(d[x]===void 0)continue;const{correct:y,applyTo:b,isCSSVariable:g}=tp[x],m=h==="none"?d[x]:y(d[x],u);if(b){const v=b.length;for(let k=0;k<v;k++)a[b[k]]=m}else g?this.options.visualElement.renderState.vars[x]=m:a[x]=m}this.options.layoutId&&(a.pointerEvents=u===this?lc(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(Tv),this.root.sharedNodes.clear()}}}function sM(e){e.updateLayout()}function iM(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,a=t.source!==e.layout.source;i==="size"?vn(h=>{const f=a?t.measuredBox[h]:t.layoutBox[h],p=at(f);f.min=r[h].min,f.max=f.min+p}):Rj(i,t.layoutBox,r)&&vn(h=>{const f=a?t.measuredBox[h]:t.layoutBox[h],p=at(r[h]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+p)});const l=di();Ka(l,r,t.layoutBox);const c=di();a?Ka(c,e.applyTransform(s,!0),t.measuredBox):Ka(c,r,t.layoutBox);const u=!Tj(l);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:p}=h;if(f&&p){const x=De();Yc(x,t.layoutBox,f.layoutBox);const y=De();Yc(y,r,p.layoutBox),Nj(x,y)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=x,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 aM(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 oM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function lM(e){e.clearSnapshot()}function Tv(e){e.clearMeasurements()}function Nv(e){e.isLayoutDirty=!1}function cM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Cv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function uM(e){e.resolveTargetDelta()}function dM(e){e.calcProjection()}
vendor: 14,305 bytes, lines 238-246
238function hM(e){e.resetSkewAndRotation()}function fM(e){e.removeLeadSnapshot()}function _v(e,t,n){e.translate=we(t.translate,0,n),e.scale=we(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Iv(e,t,n,r){e.min=we(t.min,n.min,r),e.max=we(t.max,n.max,r)}function pM(e,t,n,r){Iv(e.x,t.x,n.x,r),Iv(e.y,t.y,n.y,r)}function mM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const gM={duration:.45,ease:[.4,0,.1,1]},Pv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Rv=Pv("applewebkit/")&&!Pv("chrome/")?Math.round:$t;function Ov(e){e.min=Rv(e.min),e.max=Rv(e.max)}function yM(e){Ov(e.x),Ov(e.y)}function Rj(e,t,n){return e==="position"||e==="preserve-aspect"&&!BL(kv(t),kv(n),.2)}function xM(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const vM=Pj({attachResizeListener:(e,t)=>Ao(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Qd={current:void 0},Oj=Pj({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Qd.current){const e=new vM({});e.mount(window),e.setOptions({layoutScroll:!0}),Qd.current=e}return Qd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),cg=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Dv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function bM(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Dv(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():Dv(e[s],null)}}}}function wM(...e){return w.useCallback(bM(...e),e)}class kM extends w.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,s=Qf(r)&&r.offsetWidth||0,i=Qf(r)&&r.offsetHeight||0,a=this.props.sizeRef.current;a.height=n.offsetHeight||0,a.width=n.offsetWidth||0,a.top=n.offsetTop,a.left=n.offsetLeft,a.right=s-a.width-a.left,a.bottom=i-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function SM({children:e,isPresent:t,anchorX:n,anchorY:r,root:s,pop:i}){var f;const a=w.useId(),l=w.useRef(null),c=w.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=w.useContext(cg),d=((f=e.props)==null?void 0:f.ref)??(e==null?void 0:e.ref),h=wM(l,d);return w.useInsertionEffect(()=>{const{width:p,height:x,top:y,left:b,right:g,bottom:m}=c.current;if(t||i===!1||!l.current||!p||!x)return;const v=n==="left"?`left: ${b}`:`right: ${g}`,k=r==="bottom"?`bottom: ${m}`:`top: ${y}`;l.current.dataset.motionPopId=a;const S=document.createElement("style");u&&(S.nonce=u);const j=s??document.head;return j.appendChild(S),S.sheet&&S.sheet.insertRule(` 239 [data-motion-pop-id="${a}"] { 240 position: absolute !important; 241 width: ${p}px !important; 242 height: ${x}px !important; 243 ${v}px !important; 244 ${k}px !important; 245 } 246 `),()=>{j.contains(S)&&j.removeChild(S)}},[t]),o.jsx(kM,{isPresent:t,childRef:l,sizeRef:c,pop:i,children:i===!1?e:w.cloneElement(e,{ref:h})})}const jM=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:a,anchorX:l,anchorY:c,root:u})=>{const d=Mm(AM),h=w.useId();let f=!0,p=w.useMemo(()=>(f=!1,{id:h,initial:t,isPresent:n,custom:s,onExitComplete:x=>{d.set(x,!0);for(const y of d.values())if(!y)return;r&&r()},register:x=>(d.set(x,!1),()=>d.delete(x))}),[n,d,r]);return i&&f&&(p={...p}),w.useMemo(()=>{d.forEach((x,y)=>d.set(y,!1))},[n]),w.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),e=o.jsx(SM,{pop:a==="popLayout",isPresent:n,anchorX:l,anchorY:c,root:u,children:e}),o.jsx(Mu.Provider,{value:p,children:e})};function AM(){return new Map}function Dj(e=!0){const t=w.useContext(Mu);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=w.useId();w.useEffect(()=>{if(e)return s(i)},[e]);const a=w.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,a]:[!0]}const _l=e=>e.key||"";function Lv(e){const t=[];return w.Children.forEach(e,n=>{w.isValidElement(n)&&t.push(n)}),t}const np=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:a=!1,anchorX:l="left",anchorY:c="top",root:u})=>{const[d,h]=Dj(a),f=w.useMemo(()=>Lv(e),[e]),p=a&&!d?[]:f.map(_l),x=w.useRef(!0),y=w.useRef(f),b=Mm(()=>new Map),g=w.useRef(new Set),[m,v]=w.useState(f),[k,S]=w.useState(f);cS(()=>{x.current=!1,y.current=f;for(let E=0;E<k.length;E++){const N=_l(k[E]);p.includes(N)?(b.delete(N),g.current.delete(N)):b.get(N)!==!0&&b.set(N,!1)}},[k,p.length,p.join("-")]);const j=[];if(f!==m){let E=[...f];for(let N=0;N<k.length;N++){const R=k[N],z=_l(R);p.includes(z)||(E.splice(N,0,R),j.push(R))}return i==="wait"&&j.length&&(E=j),S(Lv(E)),v(f),null}const{forceRender:A}=w.useContext(Lm);return o.jsx(o.Fragment,{children:k.map(E=>{const N=_l(E),R=a&&!d?!1:f===k||p.includes(N),z=()=>{if(g.current.has(N))return;if(g.current.add(N),b.has(N))b.set(N,!0);else return;let D=!0;b.forEach(K=>{K||(D=!1)}),D&&(A==null||A(),S(y.current),a&&(h==null||h()),r&&r())};return o.jsx(jM,{isPresent:R,initial:!x.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,root:u,onExitComplete:R?void 0:z,anchorX:l,anchorY:c,children:E},N)})})},Lj=w.createContext({strict:!1}),Mv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let $v=!1;function EM(){if($v)return;const e={};for(const t in Mv)e[t]={isEnabled:n=>Mv[t].some(r=>!!n[r])};dj(e),$v=!0}function Mj(){return EM(),hL()}function TM(e){const t=Mj();for(const n in e)t[n]={...t[n],...e[n]};dj(t)}const NM=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Jc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||NM.has(e)}let $j=e=>!Jc(e);function CM(e){typeof e=="function"&&($j=t=>t.startsWith("on")?!Jc(t):e(t))}try{CM(require("@emotion/is-prop-valid").default)}catch{}function _M(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||($j(s)||n===!0&&Jc(s)||!t&&!Jc(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const Uu=w.createContext({});function IM(e,t){if(Bu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||jo(n)?n:void 0,animate:jo(r)?r:void 0}}return e.inherit!==!1?t:{}}function PM(e){const{initial:t,animate:n}=IM(e,w.useContext(Uu));return w.useMemo(()=>({initial:t,animate:n}),[Fv(t),Fv(n)])}function Fv(e){return Array.isArray(e)?e.join(" "):e}const ug=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fj(e,t,n){for(const r in t)!et(t[r])&&!xj(r,n)&&(e[r]=t[r])}function RM({transformTemplate:e},t){return w.useMemo(()=>{const n=ug();return og(n,t,e),Object.assign({},n.vars,n.style)},[t])}function OM(e,t){const n=e.style||{},r={};return Fj(r,n,e),Object.assign(r,RM(e,t)),r}function DM(e,t){const n={},r=OM(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 Bj=()=>({...ug(),attrs:{}});function LM(e,t,n,r){const s=w.useMemo(()=>{const i=Bj();return vj(i,t,wj(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Fj(i,e.style,e),s.style={...i,...s.style}}return s}const MM=["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 dg(e){return typeof e!="string"||e.includes("-")?!1:!!(MM.indexOf(e)>-1||/[A-Z]/u.test(e))}function $M(e,t,n,{latestValues:r},s,i=!1,a){const c=(a??dg(e)?LM:DM)(t,r,s,e),u=_M(t,typeof e=="string",i),d=e!==w.Fragment?{...u,...c,ref:n}:{},{children:h}=t,f=w.useMemo(()=>et(h)?h.get():h,[h]);return w.createElement(e,{...d,children:f})}function FM({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:BM(n,r,s,e),renderState:t()}}function BM(e,t,n,r){const s={},i=r(e,{});for(const f in i)s[f]=lc(i[f]);let{initial:a,animate:l}=e;const c=Bu(e),u=cj(e);t&&u&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const h=d?l:a;if(h&&typeof h!="boolean"&&!Fu(h)){const f=Array.isArray(h)?h:[h];for(let p=0;p<f.length;p++){const x=Zm(e,f[p]);if(x){const{transitionEnd:y,transition:b,...g}=x;for(const m in g){let v=g[m];if(Array.isArray(v)){const k=d?v.length-1:0;v=v[k]}v!==null&&(s[m]=v)}for(const m in y)s[m]=y[m]}}}return s}const Uj=e=>(t,n)=>{const r=w.useContext(Uu),s=w.useContext(Mu),i=()=>FM(e,t,r,s);return n?i():Mm(i)},UM=Uj({scrapeMotionValuesFromProps:lg,createRenderState:ug}),zM=Uj({scrapeMotionValuesFromProps:kj,createRenderState:Bj}),VM=Symbol.for("motionComponentSymbol");function WM(e,t,n){const r=w.useRef(n);w.useInsertionEffect(()=>{r.current=n});const s=w.useRef(null);return w.useCallback(i=>{var l;i&&((l=e.onMount)==null||l.call(e,i)),t&&(i?t.mount(i):t.unmount());const a=r.current;if(typeof a=="function")if(i){const c=a(i);typeof c=="function"&&(s.current=c)}else s.current?(s.current(),s.current=null):a(i);else a&&(a.current=i)},[t])}const zj=w.createContext({});function Ks(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function HM(e,t,n,r,s,i){var v,k;const{visualElement:a}=w.useContext(Uu),l=w.useContext(Lj),c=w.useContext(Mu),u=w.useContext(cg),d=u.reducedMotion,h=u.skipAnimations,f=w.useRef(null),p=w.useRef(!1);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,skipAnimations:h,isSVG:i}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const x=f.current,y=w.useContext(zj);x&&!x.projection&&s&&(x.type==="html"||x.type==="svg")&&KM(f.current,n,s,y);const b=w.useRef(!1);w.useInsertionEffect(()=>{x&&b.current&&x.update(n,c)});const g=n[JS],m=w.useRef(!!g&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,g))&&((k=window.MotionHasOptimisedAnimation)==null?void 0:k.call(window,g)));return cS(()=>{p.current=!0,x&&(b.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),m.current&&x.animationState&&x.animationState.animateChanges())}),w.useEffect(()=>{x&&(!m.current&&x.animationState&&x.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)==null||S.call(window,g)}),m.current=!1),x.enteringChildren=void 0)}),x}function KM(e,t,n,r){const{layoutId:s,layout:i,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Vj(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!a||l&&Ks(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:u})}function Vj(e){if(e)return e.options.allowProjection!==!1?e.projection:Vj(e.parent)}function Xd(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&TM(r);const i=n?n==="svg":dg(e),a=i?zM:UM;function l(u,d){let h;const f={...w.useContext(cg),...u,layoutId:qM(u)},{isStatic:p}=f,x=PM(u),y=a(u,p);if(!p&&lS){GM();const b=YM(f);h=b.MeasureLayout,x.visualElement=HM(e,y,f,s,b.ProjectionNode,i)}return o.jsxs(Uu.Provider,{value:x,children:[h&&x.visualElement?o.jsx(h,{visualElement:x.visualElement,...f}):null,$M(e,u,WM(y,x.visualElement,d),y,p,t,i)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=w.forwardRef(l);return c[VM]=e,c}function qM({layoutId:e}){const t=w.useContext(Lm).id;return t&&e!==void 0?t+"-"+e:e}function GM(e,t){w.useContext(Lj).strict}function YM(e){const t=Mj(),{drag:n,layout:r}=t;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function JM(e,t){if(typeof Proxy>"u")return Xd;const n=new Map,r=(i,a)=>Xd(i,a,e,t),s=(i,a)=>r(i,a);return new Proxy(s,{get:(i,a)=>a==="create"?r:(n.has(a)||n.set(a,Xd(a,void 0,e,t)),n.get(a))})}const QM=(e,t)=>t.isSVG??dg(e)?new CL(t):new SL(t,{allowProjection:e!==w.Fragment});class XM extends Yr{constructor(t){super(t),t.animationState||(t.animationState=OL(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Fu(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 ZM=0;class e4 extends Yr{constructor(){super(...arguments),this.id=ZM++}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||{};
vendor: 16,631 bytes, line 246
246n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const t4={animation:{Feature:XM},exit:{Feature:e4}};function Qo(e){return{point:{x:e.pageX,y:e.pageY}}}const n4=e=>t=>rg(t)&&e(t,Qo(t));function qa(e,t,n,r){return Ao(e,t,n4(n),r)}const Wj=({current:e})=>e?e.ownerDocument.defaultView:null,Bv=(e,t)=>Math.abs(e-t);function r4(e,t){const n=Bv(e.x,t.x),r=Bv(e.y,t.y);return Math.sqrt(n**2+r**2)}const Uv=new Set(["auto","scroll"]);class Hj{constructor(t,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=eh(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,y=r4(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!y)return;const{point:b}=p,{timestamp:g}=We;this.history.push({...b,timestamp:g});const{onStart:m,onMove:v}=this.handlers;x||(m&&m(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,p)},this.handlePointerMove=(p,x)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=Zd(x,this.transformPagePoint),fe.update(this.updatePoint,!0)},this.handlePointerUp=(p,x)=>{this.end();const{onEnd:y,onSessionEnd:b,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=eh(p.type==="pointercancel"?this.lastMoveEventInfo:Zd(x,this.transformPagePoint),this.history);this.startEvent&&y&&y(p,m),b&&b(p,m)},!rg(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=s||window;const c=Qo(t),u=Zd(c,this.transformPagePoint),{point:d}=u,{timestamp:h}=We;this.history=[{...d,timestamp:h}];const{onSessionStart:f}=n;f&&f(t,eh(u,this.history)),this.removeListeners=Go(qa(this.contextWindow,"pointermove",this.handlePointerMove),qa(this.contextWindow,"pointerup",this.handlePointerUp),qa(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Uv.has(r.overflowX)||Uv.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,s=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:s.x-n.x,y:s.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,s),fe.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Wr(this.updatePoint)}}function Zd(e,t){return t?{point:t(e.point)}:e}function zv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function eh({point:e},t){return{point:e,delta:zv(e,Kj(t)),offset:zv(e,s4(t)),velocity:i4(t,.1)}}function s4(e){return e[0]}function Kj(e){return e[e.length-1]}function i4(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Kj(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Ft(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>Ft(t)*2&&(r=e[1]);const i=Lt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function a4(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?we(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?we(n,e,r.max):Math.min(e,n)),e}function Vv(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 o4(e,{top:t,left:n,bottom:r,right:s}){return{x:Vv(e.x,n,s),y:Vv(e.y,t,r)}}function Wv(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 l4(e,t){return{x:Wv(e.x,t.x),y:Wv(e.y,t.y)}}function c4(e,t){let n=.5;const r=at(e),s=at(t);return s>r?n=wo(t.min,t.max-r,e.min):r>s&&(n=wo(e.min,e.max-s,t.min)),Rn(0,1,n)}function u4(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 rp=.35;function d4(e=rp){return e===!1?e=0:e===!0&&(e=rp),{x:Hv(e,"left","right"),y:Hv(e,"top","bottom")}}function Hv(e,t,n){return{min:Kv(e,t),max:Kv(e,n)}}function Kv(e,t){return typeof e=="number"?e:e[t]||0}const h4=new WeakMap;class f4{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=>{n&&this.snapToCursor(Qo(h).point),this.stopAnimation()},a=(h,f)=>{const{drag:p,dragPropagation:x,onDragStart:y}=this.getProps();if(p&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=zD(p),!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),vn(g=>{let m=this.getAxisMotionValue(g).get()||0;if(_n.test(m)){const{projection:v}=this.visualElement;if(v&&v.layout){const k=v.layout.layoutBox[g];k&&(m=at(k)*(parseFloat(m)/100))}}this.originPoint[g]=m}),y&&fe.update(()=>y(h,f),!1,!0),qf(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:x,onDirectionLock:y,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:g}=f;if(x&&this.currentDirection===null){this.currentDirection=m4(g),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,g),this.updateAxis("y",f.point,g),this.visualElement.render(),b&&fe.update(()=>b(h,f),!1,!0)},c=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new Hj(t,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:Wj(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,s=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!r)return;const{velocity:a}=s;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&fe.postRender(()=>l(r,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Il(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=a4(a,this.constraints[t],this.elastic[t])),i.set(a)}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&&Ks(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=o4(r.layoutBox,t):this.constraints=!1,this.elastic=d4(n),s!==this.constraints&&!Ks(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&vn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=u4(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ks(t))return!1;const r=t.current;Wi(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=yL(r,s.root,this.visualElement.getTransformPagePoint());let a=l4(s.layout.layoutBox,i);if(n){const l=n(pL(a));this.hasMutatedConstraints=!!l,l&&(a=fj(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=vn(d=>{if(!Il(d,n,this.currentDirection))return;let h=c&&c[d]||{};a&&(h={min:0,max:0});const f=s?200:1e6,p=s?40:1e7,x={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...h};return this.startAxisValueAnimation(d,x)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return qf(this.visualElement,t),r.start(Xm(t,r,0,n,this.visualElement,!1))}stopAnimation(){vn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){vn(n=>{const{drag:r}=this.getProps();if(!Il(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:a,max:l}=s.layout.layoutBox[n],c=i.get()||0;i.set(t[n]-we(a,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ks(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};vn(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();s[a]=c4({min:c,max:c},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),vn(a=>{if(!Il(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(we(c,u,s[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;h4.set(this.visualElement,this);const t=this.visualElement.current,n=qa(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps(),f=u.target,p=f!==t&&GD(f);d&&h&&!p&&this.start(u)});let r;const s=()=>{const{dragConstraints:u}=this.getProps();Ks(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),r||(r=p4(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,a=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),fe.read(s);const l=Ao(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(vn(h=>{const f=this.getAxisMotionValue(h);f&&(this.originPoint[h]+=u[h].translate,f.set(f.get()+u[h].translate))}),this.visualElement.render())});return()=>{l(),n(),a(),c&&c(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:a=rp,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:a,dragMomentum:l}}}function qv(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function p4(e,t,n){const r=ev(e,qv(n)),s=ev(t,qv(n));return()=>{r(),s()}}function Il(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function m4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class g4 extends Yr{constructor(t){super(t),this.removeGroupControls=$t,this.removeListeners=$t,this.controls=new f4(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$t}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const th=e=>(t,n)=>{e&&fe.update(()=>e(t,n),!1,!0)};class y4 extends Yr{constructor(){super(...arguments),this.removePointerDownListener=$t}onPointerDown(t){this.session=new Hj(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Wj(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:th(t),onStart:th(n),onMove:th(r),onEnd:(i,a)=>{delete this.session,s&&fe.postRender(()=>s(i,a))}}}mount(){this.removePointerDownListener=qa(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let nh=!1;class x4 extends w.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),nh&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),cc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,{projection:a}=r;return a&&(a.isPresent=i,t.layoutDependency!==n&&a.setOptions({...a.options,layoutDependency:n}),nh=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||fe.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ng.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;nh=!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 qj(e){const[t,n]=Dj(),r=w.useContext(Lm);return o.jsx(x4,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(zj),isPresent:t,safeToRemove:n})}const v4={pan:{Feature:y4},drag:{Feature:g4,ProjectionNode:Oj,MeasureLayout:qj}};function Gv(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&&fe.postRender(()=>i(t,Qo(t)))}class b4 extends Yr{mount(){const{current:t}=this.node;t&&(this.unmount=WD(t,(n,r)=>(Gv(this.node,r,"Start"),s=>Gv(this.node,s,"End"))))}unmount(){}}class w4 extends Yr{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=Go(Ao(this.node.current,"focus",()=>this.onFocus()),Ao(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Yv(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&&fe.postRender(()=>i(t,Qo(t)))}class k4 extends Yr{mount(){const{current:t}=this.node;if(!t)return;
246const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=JD(t,(s,i)=>(Yv(this.node,i,"Start"),(a,{success:l})=>Yv(this.node,a,l?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const sp=new WeakMap,rh=new WeakMap,S4=e=>{const t=sp.get(e.target);t&&t(e)},j4=e=>{e.forEach(S4)};function A4({root:e,...t}){const n=e||document;rh.has(n)||rh.set(n,{});const r=rh.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(j4,{root:e,...t})),r[s]}function E4(e,t,n){const r=A4(t);return sp.set(e,n),r.observe(e),()=>{sp.delete(e),r.unobserve(e)}}const T4={some:0,all:1};class N4 extends Yr{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,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:T4[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 E4(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(C4(t,n))&&this.startObserver()}unmount(){}}function C4({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const _4={inView:{Feature:N4},tap:{Feature:k4},focus:{Feature:w4},hover:{Feature:b4}},I4={layout:{ProjectionNode:Oj,MeasureLayout:qj}},P4={...t4,..._4,...v4,...I4},G=JM(P4,QM),Jv=[{label:"Home",path:"/"},{label:"About",path:"/about"},{label:"Speaking",path:"/speaking"},{label:"AI CEO Podcast",path:"/podcast"}],sh=[{label:"AI BusinessCon",path:"https://www.businesscon.ai",external:!0},{label:"Disruptive AI",path:"https://www.getdisruptive.ai",external:!0},{label:"AI CEO School",path:"/course"},{label:"Intelligent Operating System",path:"/intelligent-operating-system"},{label:"Media Kit",path:"/media-kit"}],R4=()=>{const[e,t]=w.useState(!1),[n,r]=w.useState(!1),s=Rs(),i=w.useRef(null),a=()=>{i.current&&window.clearTimeout(i.current),r(!0)},l=()=>{i.current=window.setTimeout(()=>r(!1),120)},c=sh.some(d=>!d.external&&d.path===s.pathname),u=(d,h)=>d.external?o.jsxs("a",{href:d.path,target:"_blank",rel:"noopener noreferrer",onClick:h,className:"text-xs font-medium tracking-widest uppercase text-muted-foreground inline-flex items-center gap-1 whitespace-nowrap transition-colors hover:text-foreground",children:[d.label," ",o.jsx(re,{size:10})]},d.path):o.jsx(ae,{to:d.path,onClick:h,className:`text-xs font-medium tracking-widest uppercase whitespace-nowrap transition-colors hover:text-foreground ${s.pathname===d.path?"text-primary":"text-muted-foreground"}`,children:d.label},d.path);return o.jsxs("header",{className:"fixed top-0 left-0 right-0 z-50 bg-background/70 backdrop-blur-2xl border-b border-border",children:[o.jsxs("div",{className:"container mx-auto flex items-center justify-between h-16 px-6",children:[o.jsx(ae,{to:"/",className:"font-heading text-lg font-bold tracking-tight uppercase whitespace-nowrap mr-6",children:"Seema Alexander"}),o.jsxs("nav",{className:"hidden lg:flex items-center gap-6",children:[Jv.map(d=>u(d)),o.jsxs("div",{className:"relative",onMouseEnter:a,onMouseLeave:l,children:[o.jsxs("button",{onClick:()=>r(d=>!d),"aria-haspopup":"menu","aria-expanded":n,className:`text-xs font-medium tracking-widest uppercase whitespace-nowrap inline-flex items-center gap-1 transition-colors hover:text-foreground ${c||n?"text-foreground":"text-muted-foreground"}`,children:["Explore ",o.jsx(Xk,{size:11,className:`transition-transform ${n?"rotate-180":""}`})]}),o.jsx(np,{children:n&&o.jsx(G.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:6},transition:{duration:.15},className:"absolute right-0 top-full pt-3",role:"menu",children:o.jsx("div",{className:"min-w-56 rounded-xl border border-border bg-background/95 backdrop-blur-xl shadow-elegant overflow-hidden py-2",children:sh.map(d=>d.external?o.jsxs("a",{href:d.path,target:"_blank",rel:"noopener noreferrer",onClick:()=>r(!1),className:"flex items-center justify-between gap-4 px-5 py-2.5 text-xs font-medium tracking-widest uppercase text-muted-foreground transition-colors hover:text-primary hover:bg-muted/40",children:[d.label," ",o.jsx(re,{size:11})]},d.path):o.jsx(ae,{to:d.path,onClick:()=>r(!1),className:`flex items-center px-5 py-2.5 text-xs font-medium tracking-widest uppercase transition-colors hover:text-primary hover:bg-muted/40 ${s.pathname===d.path?"text-primary":"text-muted-foreground"}`,children:d.label},d.path))})})})]}),u({label:"Contact",path:"/contact"}),o.jsxs(ae,{to:"/contact",className:"bg-primary text-primary-foreground px-5 py-2 text-xs font-bold tracking-widest uppercase whitespace-nowrap rounded-full hover:opacity-90 transition-opacity inline-flex items-center gap-1.5",children:["Book Now ",o.jsx(re,{size:12})]})]}),o.jsx("button",{onClick:()=>t(!e),className:"lg:hidden text-foreground","aria-label":e?"Close menu":"Open menu","aria-expanded":e,children:e?o.jsx(wm,{size:20}):o.jsx(s_,{size:20})})]}),o.jsx(np,{children:e&&o.jsx(G.div,{initial:{opacity:0,height:0}
246,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"lg:hidden bg-background border-b border-border",children:o.jsxs("nav",{className:"flex flex-col px-6 py-6 gap-4",children:[[...Jv,{label:"Contact",path:"/contact"},...sh].map(d=>u(d,()=>t(!1))),o.jsx(ae,{to:"/contact",onClick:()=>t(!1),className:"bg-primary text-primary-foreground px-5 py-2.5 text-xs font-bold tracking-widest uppercase rounded-full text-center mt-2",children:"Book Now"})]})})})]})},O4=()=>o.jsx("footer",{className:"border-t border-border bg-background",children:o.jsxs("div",{className:"container mx-auto px-6 py-20",children:[o.jsxs("div",{className:"grid md:grid-cols-12 gap-12",children:[o.jsxs("div",{className:"md:col-span-6",children:[o.jsx("h3",{className:"font-heading text-4xl font-bold uppercase tracking-tight mb-4",children:"Seema Alexander"}),o.jsx("p",{className:"text-foreground/60 text-sm max-w-md leading-relaxed",children:"AI Business Futurist · Founder · International Keynote Speaker empowering CEOs to harness AI for lasting advantage."})]}),o.jsxs("div",{className:"md:col-span-2",children:[o.jsx("p",{className:"text-xs font-bold tracking-widest uppercase text-muted-foreground mb-5",children:"Navigate"}),o.jsx("div",{className:"flex flex-col gap-3",children:[{label:"Home",path:"/"},{label:"About",path:"/about"},{label:"Speaking",path:"/speaking"},{label:"Contact",path:"/contact"}].map(e=>o.jsx(ae,{to:e.path,className:"text-sm text-foreground/60 hover:text-primary transition-colors",children:e.label},e.path))})]}),o.jsxs("div",{className:"md:col-span-2",children:[o.jsx("p",{className:"text-xs font-bold tracking-widest uppercase text-muted-foreground mb-5",children:"Explore"}),o.jsx("div",{className:"flex flex-col gap-3",children:[{label:"Podcast",path:"/podcast"},{label:"Media Kit",path:"/media-kit"},{label:"Framework",path:"/framework"},{label:"Intelligent Operating System",path:"/intelligent-operating-system"},{label:"AI CEO School",path:"/course"},{label:"Sponsorship",path:"/sponsorship"}].map(e=>o.jsx(ae,{to:e.path,className:"text-sm text-foreground/60 hover:text-primary transition-colors",children:e.label},e.path))})]}),o.jsxs("div",{className:"md:col-span-2",children:[o.jsx("p",{className:"text-xs font-bold tracking-widest uppercase text-muted-foreground mb-5",children:"Connect"}),o.jsxs("div",{className:"flex flex-col gap-3 text-sm text-foreground/60",children:[o.jsx("a",{href:"https://www.getdisruptive.ai",target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary transition-colors",children:"Disruptive AI"}),o.jsx("a",{href:"https://www.businesscon.ai",target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary transition-colors",children:"AI BusinessCon"}),o.jsx("a",{href:"/podcast",className:"hover:text-primary transition-colors",children:"AI CEO Podcast"}),o.jsx("a",{href:"https://www.linkedin.com/in/seemaalexander",target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary transition-colors",children:"LinkedIn"})]})]})]}),o.jsxs("div",{className:"mt-16 pt-8 border-t border-border flex flex-col md:flex-row items-center justify-between gap-4",children:[o.jsxs("p",{className:"text-xs text-muted-foreground",children:["© ",new Date().getFullYear()," Seema Alexander. All rights reserved."]}),o.jsx("p",{className:"text-xs text-muted-foreground",children:"AI Business Futurist · Global Keynote Speaker"})]})]})}),Qv="aibusinesscon-popup-dismissed",D4=()=>{const[e,t]=w.useState(!1);w.useEffect(()=>{if(typeof window>"u")return;try{if(window.sessionStorage.getItem(Qv)==="1")return}catch{}const r=window.setTimeout(()=>t(!0),6e3);return()=>window.clearTimeout(r)},[]);const n=()=>{t(!1);try{window.sessionStorage.setItem(Qv,"1")}catch{}};return o.jsx(np,{children:e&&o.jsx(G.div,{initial:{opacity:0,y:24,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:24,scale:.98},transition:{duration:.4,ease:[.22,1,.36,1]},role:"dialog","aria-label":"AI BusinessCon 2027",className:"fixed z-[60] bottom-4 right-4 left-4 sm:left-auto sm:bottom-6 sm:right-6 sm:w-[24rem]",children:o.jsxs("div",{className:"relative overflow-hidden rounded-2xl border border-primary/30 bg-card shadow-2xl",children:[o.jsx("div",{className:"absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-primary to-transparent"}),o.jsx("button",{onClick:n,"aria-label":"Close announcement",className:"absolute top-3 right-3 text-muted-foreground hover:text-foreground transition-colors",children:o.jsx(wm,{size:16})}),o.jsxs("div",{className:"p-6",children:[o.jsx("p",{className:"text-primary text-[0.625rem] font-bold tracking-[0.3em] uppercase mb-3",children:"Registration Open"}),o.jsx("h3",{className:"font-heading text-3xl font-bold uppercase tracking-tight leading-none mb-3",children:"AI BusinessCon"}
246),o.jsx("p",{className:"text-sm text-foreground/70 leading-relaxed mb-5",children:"March 2â3, 2027 · Washington, DC Metro. The world's first conference dedicated to the business rewiring of the AI era. Early-bird pricing available now."}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsxs("a",{href:"https://www.businesscon.ai",target:"_blank",rel:"noopener noreferrer",onClick:n,className:"bg-primary text-primary-foreground px-5 py-2.5 text-xs font-bold tracking-widest uppercase rounded-full hover:opacity-90 transition-opacity inline-flex items-center gap-1.5",children:["Register Now ",o.jsx(re,{size:12})]}),o.jsx("button",{onClick:n,className:"text-xs font-medium tracking-widest uppercase text-muted-foreground hover:text-foreground transition-colors",children:"Later"})]})]})]})})})},L4=()=>o.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[o.jsx(R4,{}),o.jsx("main",{className:"flex-1 pt-20",children:o.jsx(A2,{})}),o.jsx(O4,{}),o.jsx(D4,{})]}),C=({children:e,className:t="",delay:n=0})=>o.jsx(G.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.6,delay:n,ease:"easeOut"},className:t,children:e}),ip="https://seemaalexander.com",Xv=`${ip}/__l5e/assets-v1/6a69d603-708d-4dc2-a372-8a84b15b718a/og-image-actual-seema.jpg`,Tt=({title:e,description:t,path:n="/",jsonLd:r})=>o.jsxs(xk,{children:[o.jsx("title",{children:e}),o.jsx("meta",{name:"description",content:t}),o.jsx("link",{rel:"canonical",href:`${ip}${n}`}),o.jsx("meta",{property:"og:title",content:e}),o.jsx("meta",{property:"og:description",content:t}),o.jsx("meta",{property:"og:url",content:`${ip}${n}`}),o.jsx("meta",{property:"og:image",content:Xv}),o.jsx("meta",{property:"og:image:width",content:"1200"}),o.jsx("meta",{property:"og:image:height",content:"630"}),o.jsx("meta",{name:"twitter:title",content:e}),o.jsx("meta",{name:"twitter:description",content:t}),o.jsx("meta",{name:"twitter:image",content:Xv}),r&&o.jsx("script",{type:"application/ld+json",children:JSON.stringify(r)})]});var zu="Collapsible",[M4,Gj]=Ji(zu),[$4,hg]=M4(zu),Yj=w.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:s,disabled:i,onOpenChange:a,...l}=e,[c,u]=Au({prop:r,defaultProp:s??!1,onChange:a,caller:zu});return o.jsx($4,{scope:n,disabled:i,contentId:h1(),open:c,onOpenToggle:w.useCallback(()=>u(d=>!d),[u]),children:o.jsx($e.div,{"data-state":pg(c),"data-disabled":i?"":void 0,...l,ref:t})})});Yj.displayName=zu;var Jj="CollapsibleTrigger",Qj=w.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,s=hg(Jj,n);return o.jsx($e.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":pg(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:t,onClick:Ne(e.onClick,s.onOpenToggle)})});Qj.displayName=Jj;var fg="CollapsibleContent",Xj=w.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=hg(fg,e.__scopeCollapsible);return o.jsx(ju,{present:n||s.open,children:({present:i})=>o.jsx(F4,{...r,ref:t,present:i})})});Xj.displayName=fg;var F4=w.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:s,...i}=e,a=hg(fg,n),[l,c]=w.useState(r),u=w.useRef(null),d=jt(t,u),h=w.useRef(0),f=h.current,p=w.useRef(0),x=p.current,y=a.open||l,b=w.useRef(y),g=w.useRef(void 0);return w.useEffect(()=>{const m=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(m)},[]),In(()=>{const m=u.current;if(m){g.current=g.current||{transitionDuration:m.style.transitionDuration,animationName:m.style.animationName},m.style.transitionDuration="0s",m.style.animationName="none";const v=m.getBoundingClientRect();h.current=v.height,p.current=v.width,b.current||(m.style.transitionDuration=g.current.transitionDuration,m.style.animationName=g.current.animationName),c(r)}},[a.open,r]),o.jsx($e.div,{"data-state":pg(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!y,...i,ref:d,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:y&&s})});function pg(e){return e?"open":"closed"}var B4=Yj,U4=Qj,z4=Xj,V4=w.createContext(void 0);function W4(e){const t=w.useContext(V4);return e||t||"ltr"}var gn="Accordion",H4=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[mg,K4,q4]=wk(gn),[Vu,C6]=Ji(gn,[q4,Gj]),gg=Gj(),Zj=_.forwardRef((e,t)=>
246{const{type:n,...r}=e,s=r,i=r;return o.jsx(mg.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?o.jsx(Q4,{...i,ref:t}):o.jsx(J4,{...s,ref:t})})});Zj.displayName=gn;var[eA,G4]=Vu(gn),[tA,Y4]=Vu(gn,{collapsible:!1}),J4=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},collapsible:i=!1,...a}=e,[l,c]=Au({prop:n,defaultProp:r??"",onChange:s,caller:gn});return o.jsx(eA,{scope:e.__scopeAccordion,value:_.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:_.useCallback(()=>i&&c(""),[i,c]),children:o.jsx(tA,{scope:e.__scopeAccordion,collapsible:i,children:o.jsx(nA,{...a,ref:t})})})}),Q4=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},...i}=e,[a,l]=Au({prop:n,defaultProp:r??[],onChange:s,caller:gn}),c=_.useCallback(d=>l((h=[])=>[...h,d]),[l]),u=_.useCallback(d=>l((h=[])=>h.filter(f=>f!==d)),[l]);return o.jsx(eA,{scope:e.__scopeAccordion,value:a,onItemOpen:c,onItemClose:u,children:o.jsx(tA,{scope:e.__scopeAccordion,collapsible:!0,children:o.jsx(nA,{...i,ref:t})})})}),[X4,Wu]=Vu(gn),nA=_.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:s,orientation:i="vertical",...a}=e,l=_.useRef(null),c=jt(l,t),u=K4(n),h=W4(s)==="ltr",f=Ne(e.onKeyDown,p=>{var E;if(!H4.includes(p.key))return;const x=p.target,y=u().filter(N=>{var R;return!((R=N.ref.current)!=null&&R.disabled)}),b=y.findIndex(N=>N.ref.current===x),g=y.length;if(b===-1)return;p.preventDefault();let m=b;const v=0,k=g-1,S=()=>{m=b+1,m>k&&(m=v)},j=()=>{m=b-1,m<v&&(m=k)};switch(p.key){case"Home":m=v;break;case"End":m=k;break;case"ArrowRight":i==="horizontal"&&(h?S():j());break;case"ArrowDown":i==="vertical"&&S();break;case"ArrowLeft":i==="horizontal"&&(h?j():S());break;case"ArrowUp":i==="vertical"&&j();break}const A=m%g;(E=y[A].ref.current)==null||E.focus()});return o.jsx(X4,{scope:n,disabled:r,direction:s,orientation:i,children:o.jsx(mg.Slot,{scope:n,children:o.jsx($e.div,{...a,"data-orientation":i,ref:c,onKeyDown:r?void 0:f})})})}),Qc="AccordionItem",[Z4,yg]=Vu(Qc),rA=_.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...s}=e,i=Wu(Qc,n),a=G4(Qc,n),l=gg(n),c=h1(),u=r&&a.value.includes(r)||!1,d=i.disabled||e.disabled;return o.jsx(Z4,{scope:n,open:u,disabled:d,triggerId:c,children:o.jsx(B4,{"data-orientation":i.orientation,"data-state":cA(u),...l,...s,ref:t,disabled:d,open:u,onOpenChange:h=>{h?a.onItemOpen(r):a.onItemClose(r)}})})});rA.displayName=Qc;var sA="AccordionHeader",iA=_.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=Wu(gn,n),i=yg(sA,n);return o.jsx($e.h3,{"data-orientation":s.orientation,"data-state":cA(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});iA.displayName=sA;var ap="AccordionTrigger",aA=_.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=Wu(gn,n),i=yg(ap,n),a=Y4(ap,n),l=gg(n);return o.jsx(mg.ItemSlot,{scope:n,children:o.jsx(U4,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":s.orientation,id:i.triggerId,...l,...r,ref:t})})});aA.displayName=ap;var oA="AccordionContent",lA=_.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=Wu(gn,n),i=yg(oA,n),a=gg(n);return o.jsx(z4,{role:"region","aria-labelledby":i.triggerId,"data-orientation":s.orientation,...a,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});lA.displayName=oA;function cA(e){return e?"open":"closed"}var e5=Zj,t5=rA,n5=iA,uA=aA,dA=lA;const hA=e5,xg=w.forwardRef(({className:e,...t},n)=>o.jsx(t5,{ref:n,className:mn("border-b",e),...t}));xg.displayName="AccordionItem";const vg=w.forwardRef(({className:e,children:t,...n},r)=>o.jsx(n5,{className:"flex",children:o.jsxs(uA,{ref:r,className:mn("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,o.jsx(Xk,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));vg.displayName=uA.displayName;const bg=w.forwardRef(({className:e,children:t,...n},r)=>o.jsx(dA,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:o.jsx("div",{className:mn("pb-4 pt-0",e),children:t})}));bg.displayName=dA.displayName;const Ki="/assets/seema-headshot-DFT7yHuK.jpeg",Hu="/assets/seema-audience-DUj93J9A.jpeg",r5="/assets/ziqi-li-ttmI42Kc.jpeg",Xc="/assets/seema-dcstw-stage-CCZljS5s.jpeg",wg="/assets/seema-dcstw-speakers-Dj4HuEFN.jpeg",Xo="/assets/katy-redmond-C0yWzGAR.jpeg",Zo="/assets/kim-sullivan-CkCHQ8g8.jpg",s5="/assets/ai-disruption-audience-D8ZtfHC8.jpg",i5="/assets/ai-disruption-speaking-CX12QGUN.jpg",a5="/assets/ai-disruption-stage-OtHo20ur.jpg",kg="/assets/audience-workshop-aZdcra4x.jpg",o5="/assets/stats-bg-B-ZBkWD1.jpg",l5="/assets/seema-clean-portrait-D8cKCHcQ.png",fA=[{q:"Who is a top AI keynote speaker for CEOs and executive teams?",a:"Seema Alexander is a top AI keynote speaker and AI futurist on AI and the future of business. With 25+ years of executive leadership, she has advised companies with $100M+ collective revenue and is trusted by organizations including the World Trade Center Institute, U.S. State Department, Gensler, World Bank, IB
246M, Wells Fargo, and VeeCon. Her signature keynote 'The Great Business Rewiringâ¢: Why AI Is 10x Bigger Than the Internet' reframes AI from a technology conversation into a business redesign imperative for CEOs, boards, and executive teams. Her AI keynotes start at $12,500."},{q:"What topics does Seema Alexander speak about?",a:"Seema speaks on AI and the future of business, AI business transformation, the future of executive leadership in the AI era, AI-native business model redesign, AI fluency for boards and executives, and why incremental thinkingânot AIâis the real threat to businesses. Her framework 'Rethink, Reimagine, Rewire' helps CEOs and leadership teams strategically integrate AI."},{q:"How much does it cost to book Seema Alexander as an AI keynote speaker?",a:"Seema Alexander's AI keynotes start at $12,500 and executive or employee AI workshops start at $15,000. International engagements, multi-day workshops, and executive retreats are scoped accordingly. Contact her team for a tailored quote."},{q:"Does Seema Alexander deliver executive AI workshops and employee AI training?",a:"Yes. Seema delivers Executive AI Strategy Workshops for C-suites and boards, Leadership & Management AI Workshops for directors and managers, and Employee AI Fluency Workshops that build practical AI skills across the entire workforce. Every workshop is customized by industry and business segment. Workshops start at $15,000."},{q:"Is Seema Alexander an AI futurist?",a:"Yes. Seema Alexander is an AI futurist and AI business strategist who helps leaders see around the corner of AI's impact on industries, operating models, and workforces. She is a founding member of the Futurist Council for AI and the Future of Work with JFF Labs."},{q:"What is Disruptive AI?",a:"Disruptive AI is a strategy studio founded by Seema Alexander that helps CEOs and business leaders redesign their organizations for the AI era. Learn more at getdisruptive.ai."}],c5={"@context":"https://schema.org","@graph":[{"@type":"Service",serviceType:"AI Keynote Speaking",name:"AI Keynote Speaker & Executive AI Workshops â Seema Alexander",description:"Book Seema Alexander â top AI keynote speaker and futurist on AI and the future of business. Executive AI workshops and employee AI fluency training. Keynotes from $12.5K, workshops from $15K.",provider:{"@type":"Person",name:"Seema Alexander",url:"https://seemaalexander.com"},areaServed:"Global",offers:{"@type":"Offer",price:"12500",priceCurrency:"USD",priceSpecification:{"@type":"PriceSpecification",minPrice:"12500",priceCurrency:"USD"}}},{"@type":"FAQPage",mainEntity:fA.map(e=>({"@type":"Question",name:e.q,acceptedAnswer:{"@type":"Answer",text:e.a}}))}]},Zv=["World Trade Center Institute","DC Startup + Tech Week","VeeCon","U.S. State Department","Meridian International Center","CREW DC","MidWest Con","Advocates of Community Health","Washington Business Journal","Mid-Atlantic CoreNet","University of Maryland","Wells Fargo"],e0=["IBM","Gensler","World Bank","Washington Area Community Investment Fund","Code Her Rising","Johns Hopkins University","US Ignite","DC Dept of Insurance, Security & Banking","Voice of Impact","KPMG","Northern Virginia Tech Council","Alliance of Chief Executives","National Restaurant Association"],u5=[{value:"1M",label:"CEO mission â leaders to empower"},{value:"100,000+",label:"Reached across platforms with AI insights"},{value:"115",label:"Keynotes & workshops in 2 years"},{value:"25+",label:"Years of executive leadership"},{value:"Global",label:"Audiences across industries & continents"}],d5=()=>o.jsxs("div",{children:[o.jsx(Tt,{title:"Seema Alexander â AI Keynote Speaker & AI Workshops",description:"Top AI keynote speaker on AI and the future of business. Executive AI workshops and employee AI fluency training. Keynotes from $12.5K, workshops from $15K.",path:"/",jsonLd:c5}),o.jsxs("section",{className:"relative overflow-hidden border-b border-border bg-background",children:[o.jsxs("div",{className:"grid lg:grid-cols-[1.05fr_1fr] lg:min-h-[calc(100vh-14rem)]",children:[o.jsxs("div",{className:"relative flex flex-col justify-center px-5 md:px-10 lg:px-14 py-8 lg:py-8 order-2 lg:order-1",children:[o.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[80%] h-[60%] bg-primary/10 rounded-full blur-[100px] pointer-events-none"}),o.jsxs(G.p,{initial:{opacity:0,y:10}
246,animate:{opacity:1,y:0},transition:{duration:.5},className:"text-primary text-[9px] md:text-[11px] font-bold tracking-[0.15em] md:tracking-[0.25em] uppercase mb-3 leading-relaxed",children:[o.jsx("span",{className:"lg:hidden",children:"Trusted by IBM · World Bank · Wells Fargo"}),o.jsx("span",{className:"hidden lg:inline",children:"Trusted by IBM · World Bank · Wells Fargo · Washington Business Journal"})]}),o.jsxs(G.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,delay:.1},className:"font-heading text-[2.75rem] sm:text-5xl md:text-6xl lg:text-7xl xl:text-[6.5rem] font-bold uppercase tracking-tighter leading-[0.9] mb-4",children:["The Great",o.jsx("br",{}),"Business",o.jsx("br",{}),o.jsxs("span",{className:"text-primary",children:["Rewiring",o.jsx("span",{className:"align-super text-xl md:text-3xl lg:text-4xl",children:"â¢"})]})]}),o.jsx(G.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,delay:.2},className:"text-muted-foreground text-sm md:text-base max-w-lg leading-relaxed mb-5",children:"Seema Alexander helps CEOs, founders and business leaders rethink, reimagine and rewire their businesses for the AI era."}),o.jsxs(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,delay:.3},className:"flex flex-col sm:flex-row flex-wrap gap-3 mb-4",children:[o.jsxs(ae,{to:"/contact",className:"bg-primary text-primary-foreground px-6 py-3 text-[11px] font-bold tracking-widest uppercase rounded-full hover:opacity-90 transition-opacity inline-flex items-center justify-center gap-2",children:["Book Seema ",o.jsx(re,{size:12})]}
246),o.jsx(ae,{to:"/speaking",className:"border border-foreground/30 text-foreground px-6 py-3 text-[11px] font-bold tracking-widest uppercase rounded-full hover:border-primary hover:text-primary transition-colors text-center",children:"Explore Experiences"})]}),o.jsxs(G.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.7,delay:.5},className:"flex flex-col gap-2",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("div",{className:"flex gap-0.5",children:[...Array(5)].map((e,t)=>o.jsx(o_,{size:12,className:"fill-yellow-400 text-yellow-400"},t))}),o.jsx("p",{className:"text-[11px] text-muted-foreground",children:"Trusted by 50+ global organizations"})]}),o.jsx("p",{className:"text-[10px] font-medium tracking-[0.18em] uppercase text-white leading-relaxed",children:"Keynotes · Workshops · Summits · Executive Labs · Trainings"})]})]}),o.jsxs("div",{className:"relative bg-background h-[300px] sm:h-[380px] lg:h-auto lg:min-h-full overflow-hidden order-1 lg:order-2",children:[o.jsx("img",{src:l5,alt:"Seema Alexander â AI Business Futurist",className:"absolute inset-0 w-full h-full object-cover object-[center_top]"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-background lg:bg-gradient-to-r lg:from-background/60 lg:via-transparent lg:to-transparent"}),o.jsx("div",{className:"absolute inset-x-0 bottom-0 h-32 bg-gradient-to-b from-transparent to-background lg:hidden"}),o.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-px bg-primary/30 lg:hidden"}),o.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-px bg-primary/30 lg:hidden"}),o.jsx("div",{className:"absolute top-4 left-4 right-4 flex justify-between items-start text-[9px] font-bold tracking-[0.3em] uppercase text-white/60 z-20 lg:hidden",children:o.jsx("span",{className:"text-primary",children:"Seema Alexander"})}),o.jsx("div",{className:"hidden lg:block absolute left-5 top-1/2 -translate-y-1/2 -rotate-90 origin-center z-20",children:o.jsx("span",{className:"text-[10px] font-bold tracking-[0.5em] uppercase text-primary whitespace-nowrap",children:"AI à Business Futurist"})}),o.jsxs("div",{className:"absolute bottom-6 right-4 md:bottom-8 md:right-6 text-right z-20",children:[o.jsx("p",{className:"text-[9px] md:text-[11px] font-bold tracking-[0.3em] uppercase text-white/70 leading-tight",children:"Keynote Speaker"}),o.jsx("p",{className:"text-[9px] md:text-[11px] font-bold tracking-[0.3em] uppercase text-primary leading-tight mt-1",children:"Founder · Disruptive AI"})]})]})]}),o.jsx("div",{className:"relative w-full overflow-hidden py-3 border-t border-border bg-card/30 [mask-image:linear-gradient(to_right,transparent,black_10%,black_90%,transparent)]",children:o.jsxs("div",{className:"space-y-1",children:[o.jsx("div",{className:"flex gap-10 animate-marquee whitespace-nowrap w-max",children:[...Zv,...Zv].map((e,t)=>o.jsx("span",{className:"text-xs md:text-sm font-heading uppercase tracking-wider text-foreground/60 hover:text-foreground transition-colors flex-shrink-0",children:e},t))}),o.jsx("div",{className:"flex gap-10 animate-marquee-reverse whitespace-nowrap w-max",children:[...e0,...e0].map((e,t)=>o.jsx("span",{className:"text-xs md:text-sm font-heading uppercase tracking-wider text-foreground/60 hover:text-foreground transition-colors flex-shrink-0",children:e},t))})]})}),o.jsx("div",{className:"relative border-t border-border bg-background",children:o.jsx("div",{className:"px-5 md:px-10 lg:px-14 py-4 md:py-5",children:o.jsx("p",{className:"font-heading text-sm md:text-base lg:text-lg uppercase tracking-[0.2em] md:tracking-[0.3em] text-primary text-center",children:"Rethink. Reimagine. Rewire for the AI era"})})})]}),o.jsx("section",{className:"py-14 md:py-20 border-b border-border",children:o.jsx("div",{className:"container mx-auto px-6",children:o.jsx(C,{children:o.jsxs("div",{className:"max-w-4xl mx-auto flex flex-col md:flex-row md:items-center gap-8 md:gap-12",children:[o.jsxs("div",{className:"flex-shrink-0 flex items-center gap-4",children:[o.jsx("div",{className:"w-1 h-16 bg-primary rounded-full"}),o.jsxs("p",{className:"text-[10px] font-bold tracking-[0.3em] uppercase text-primary leading-tight",children:["The Truth",o.jsx("br",{}),"About AI"]})]}),o.jsxs("div",{className:"flex-1",children:[o.jsxs("p",{className:"font-heading text-2xl md:text-3xl lg:text-4xl uppercase tracking-tight leading-[1.1]",children:["AI won't disrupt your business."," ",o.jsx("span",{className:"text-primary",children:"Incremental thinking will."})]}),o.jsxs("p",{className:"text-muted-foreground text-sm md:text-base mt-4 max-w-lg leading-relaxed",children:["This isn't an either/or moment. It's a ",o.jsx("span",{className:"text-foreground font-semibold",children:"yesâand redesign"})," moment."]})]}),o.jsx("div",{className:"flex-shrink-0 hidden md:block",children:o.jsxs("p",{className:"text-[10px] font-bold tracking-[0.3em] uppercase text-muted-foreground",children:["â Seema",o.jsx("br",{}),"Alexander"]})})]})})})}),o.jsxs("section",{className:"py-20 md:py-28 relative overflow-hidden border-b border-border",children:[o.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none select-none",children:o.jsx("p",{className:"font-heading text-[14vw] font-bold uppercase tracking-tighter opacity-[0.04] whitespace-nowrap",children:"KEYNOTE"})}),o.jsx("div",{className:"container mx-auto px-6 text-center max-w-3xl relative z-10",children:o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase mb-8",children:"Signature Keynote"}),o.jsxs("h2",{className:"font-heading text-4xl md:text-6xl lg:text-7xl uppercase tracking-tight leading-[0.95] mb-6",children:["The Great Business",o.jsx("br",{}),"Rewiring",o.jsx("span",{className:"text-primary align-super text-3xl md:text-4xl",children:"â¢"})]}),o.jsxs("p",{className:"font-heading text-lg md:text-2xl uppercase tracking-tight text-muted-foreground mb-8",children:["Why AI Is ",o.jsx("span",{className:"text-primary",children:"10x Bigger"})," Than the Internet"]}),o.jsx("p",{className:"text-muted-foreground text-sm md:text-base leading-relaxed mb-12 max-w-xl mx-auto",children:"A strategic, practical, and tactical keynote that changes mindsets around AI. Tailored for executive teams, company-wide town halls, and women leaders â the same framing, customized by industry, company, and audience."}),o.jsxs(ae,{to:"/contact",className:"bg-primary text-primary-foreground px-10 py-4 text-xs font-bold tracking-widest uppercase rounded-full hover:opacity-90 transition-opacity inline-flex items-center gap-2",children:["Book This Keynote ",o.jsx(re,{size:14})]})]})})]}),o.jsx("section",{className:"py-20 md:py-28 border-b border-border",children:o.jsxs("div",{className:"container mx-auto px-6",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary text-center mb-4",children:"The AI Leadership Shift Framework"}),o.jsxs("h2",{className:"font-heading text-4xl md:text-6xl uppercase tracking-tight text-center leading-[0.95] mb-6",children:["Rethink. Reimagine.",o.jsx("br",{}),"Rewire."]}),o.jsx("p",{className:"text-muted-foreground text-sm md:text-base text-center max-w-xl mx-auto mb-16",children:"A three-phase framework for leaders ready to transform their business for the AI era."})]}),o.jsx("div",{className:"grid md:grid-cols-3 gap-px bg-border rounded-lg overflow-hidden max-w-4xl mx-auto",children:[{num:"01",title:"Rethink",desc:"Gain AI fluency to challenge legacy assumptions. Understand what AI changes about your industry, customers, and competitive landscape."},{num:"02",title:"Reimagine",desc:"Design bold new possibilities. Envision how AI can create new value, experiences, and business models."},{num:"03",title:"Rewire",desc:"Implement with precision. Embed AI into strategy, operations, and culture for sustainable transformation."}].map((e,t)=>o.jsx(C,{delay:t*.1,children:o.jsxs("div",{className:"bg-card p-8 h-full flex flex-col text-center",children:[o.jsx("span",{className:"text-primary text-xs font-bold tracking-widest mb-4",children:e.num}),o.jsx("h3",{className:"font-heading text-2xl uppercase tracking-tight mb-3",children:e.title}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.desc})]})},t))}),o.jsxs("div",{className:"text-center mt-12 flex flex-wrap justify-center gap-x-8 gap-y-4",children:[o.jsxs(ae,{to:"/framework",className:"text-primary text-xs font-bold tracking-widest uppercase inline-flex items-center gap-2 hover:gap-3 transition-all",children:["Explore the Full Framework ",o.jsx(re,{size:14})]}),o.jsxs(ae,{to:"/intelligent-operating-system",className:"text-primary text-xs font-bold tracking-widest uppercase inline-flex items-center gap-2 hover:gap-3 transition-all",children:["The AI Evolution Stack ",o.jsx(re,{size:14})]})]})]})}),o.jsxs("section",{className:"section-padding relative overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-cover bg-center grayscale opacity-40",style:{backgroundImage:`url(${kg})`}}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background/90 via-background/60 to-background/90"}),o.jsxs("div",{className:"container mx-auto px-6 max-w-4xl relative z-10",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase text-center mb-4",children:"Speaking & Workshops"}),o.jsx("h2",{className:"font-heading text-4xl md:text-5xl uppercase tracking-tight text-center leading-[0.95] mb-4",children:"Keynotes & Workshops"}),o.jsx("p",{className:"text-muted-foreground text-sm text-center max-w-xl mx-auto mb-14",children:"High-impact keynotes and interactive workshops that help organizations understand The Great Business Rewiring⢠and build AI-native capability at every level."})]}),o.jsx("div",{className:"grid sm:grid-cols-2 gap-5",children:[{num:"01",title:"Keynote Speaking",desc:"High-impact presentations that help organizations understand The Great Business Rewiring⢠and what AI means for their industry.",perfect:"Conferences, summits, leadership offsites, and industry events.",icon:Nu},{num:"02",title:"Executive Strategy Workshops",desc:"Interactive sessions for executive teams to identify opportunities, prioritize initiatives, and develop an AI-native operating strategy. Customized by industry and/or business segment.",perfect:"C-suites and leadership teams shaping enterprise AI strategy.",icon:ZC},{num:"03",title:"Leadership & Management Workshops",desc:"Equip directors and managers with the mindset, frameworks, and practical tools to lead teams through AI transformation.",perfect:"Director- and manager-level leaders driving operational change.",icon:Qi},{num:"04",title:"Employee AI Fluency Workshops",desc:"Hands-on sessions that build confidence, practical skills, and AI-native thinking across the workforce.",perfect:"Company-wide rollouts, department upskilling, and all-hands learning days.",icon:n_}].map((e,t)=>{const n=e.icon;return o.jsx(C,{delay:t*.06,children:o.jsxs("div",{className:"border border-border rounded-xl p-7 h-full hover:border-primary/40 transition-colors bg-card/80 backdrop-blur-sm group",children:[o.jsxs("div",{className:"flex items-start justify-between mb-5",children:[o.jsx("div",{className:"w-11 h-11 rounded-lg bg-primary/10 border border-primary/20 flex items-center justify-center text-primary group-hover:scale-105 transition-transform",children:o.jsx(n,{size:20,strokeWidth:1.5})}),o.jsx("span",{className:"text-[10px] font-bold tracking-widest text-muted-foreground",children:e.num})]}),o.jsx("h3",{className:"font-heading text-xl uppercase tracking-tight mb-3 text-foreground",children:e.title}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-5",children:e.desc}),o.jsxs("div",{className:"pt-4 border-t border-border/60",children:[o.jsx("p",{className:"text-[10px] font-bold tracking-[0.25em] uppercase text-primary mb-1.5",children:"Perfect For"}),o.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:e.perfect})]})]})},t)})}),o.jsx("p",{className:"text-center text-xs text-muted-foreground
246/80 mt-8 max-w-2xl mx-auto italic",children:"Every experience can be customized for enterprises, companies, trade associations, universities, and non-profit organizations."}),o.jsx("div",{className:"text-center mt-12",children:o.jsxs(ae,{to:"/contact",className:"bg-primary text-primary-foreground px-10 py-4 text-xs font-bold tracking-widest uppercase rounded-full hover:opacity-90 transition-opacity inline-flex items-center gap-2",children:["Request AI Fluency Experience Details ",o.jsx(re,{size:14})]})})]})]}),o.jsx("section",{className:"section-padding border-t border-border",children:o.jsx("div",{className:"container mx-auto px-6 max-w-4xl",children:o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase text-center mb-4",children:"2026 Speaker Guide"}),o.jsx("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight text-center leading-[0.95] mb-8",children:"Best AI Keynote Speakers 2026 â Where Seema Fits"}),o.jsxs("div",{className:"text-muted-foreground text-base leading-relaxed space-y-5 mb-10",children:[o.jsx("p",{children:"Today's AI keynote speakers generally focus on one of three areas: the technology behind AI, the ethics and governance of AI, or the business transformation AI makes possible."}),o.jsx("p",{children:"Seema Alexander specializes in the third."}),o.jsxs("p",{children:["Through her signature framework, ",o.jsx("span",{className:"text-primary font-medium",children:"The Great Business Rewiringâ¢"}),", she helps CEOs, founders, and executive teams understand how AI is changing how organizations operate, compete, innovate, and create value."]}),o.jsx("p",{children:"If your next event needs a top AI keynote speaker who can move a room of CEOs, boards, or executive teams from AI curiosity to strategic conviction â without tool demos, prompt clinics, or recycled trend decks â Seema is on the shortlist."})]}),o.jsx("div",{className:"grid md:grid-cols-4 gap-4 mb-10",children:[{label:"For CEOs, Csuite & Boards",desc:"A keynote or workshop leader for executive offsites, board strategy sessions, and C-suite AI transformation programs."},{label:"For Conferences",desc:"Top AI keynote for conferences, trade associations, industry summits, leadership events and entrepreneur summits"},{label:"For Employees",desc:"AI fluency keynotes and workshops for town halls, department trainings, and company-wide learning days."},{label:"For Women Leaders",desc:"AI futurist keynote for women's leadership conferences, ERGs, and executive summits."}].map((e,t)=>o.jsxs("div",{className:"p-5 border border-border rounded-lg bg-card",children:[o.jsx("p",{className:"text-xs font-bold tracking-widest uppercase text-primary mb-2",children:e.label}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.desc})]},t))}),o.jsx("div",{className:"text-center",children:o.jsxs(ae,{to:"/speaking",className:"border border-border text-foreground px-10 py-4 text-xs font-bold tracking-widest uppercase rounded-full hover:border-primary/50 transition-colors inline-flex items-center gap-2",children:["See Seema's Keynotes ",o.jsx(re,{size:14})]})})]})})}),o.jsx("section",{className:"section-padding",children:o.jsx("div",{className:"container mx-auto px-6 max-w-6xl",children:o.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:[o.jsx(C,{children:o.jsxs("div",{className:"p-6 rounded-lg border border-border bg-card h-full flex flex-col",children:[o.jsx(Va,{className:"text-primary/20 mb-4",size:20}),o.jsxs("p",{className:"text-sm text-muted-foreground leading-relaxed flex-1 mb-6",children:[`"In an environment that's flooded with news and opinions on AI, Seema `,o.jsx("span",{className:"text-primary font-medium",children:"breaks through the noise"})," with insights and forecasts that bring ",o.jsx("span",{className:"text-primary font-medium",children:"intelligence and theory"})," to the conversation. She is an ",o.jsx("span",{className:"text-primary font-medium",children:"expert in this space"}),", and with experience guiding both AI start-ups and large corporates, she brings an ",o.jsx("span",{className:"text-primary font-medium",children:"invaluable perspective"}),' on the value of innovation by challenging what we think we know about AI."']}),o.jsxs("div",{className:"flex items-center gap-3 pt-4 border-t border-border",children:[o.jsx("img",{src:Xo,alt:"Katy Redmond, MCR â testimonial for Seema Alexander",className:"w-9 h-9 rounded-full object-cover grayscale"}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium",children:"Katy Redmond, MCR"}),o.jsxs("p",{className:"text-xs text-muted-foreground",children:["Senior Managing Director, ",o.jsx("span",{className:"text-primary font-medium",children:"JLL"})]})]})]})]})}),o.jsx(C,{delay:.08,children:o.jsxs("div",{className:"p-6 rounded-lg border border-border bg-card h-full flex flex-col",children:[o.jsx(Va,{className:"text-primary/20 mb-4",size:20}),o.jsxs("p",{className:"text-sm text-muted-foreground leading-relaxed flex-1 mb-6",children:['"It was a ',o.jsx("span",{className:"text-primary font-medium",children:"thought provoking and inspiring"})," dialogue that sparked new ideas and ways of leveraging AI in our daily work. Seema is ",o.jsx("span",{className:"text-primary font-medium",children:"extraordinary"}),' and we so appreciate her spending the evening with us."']}),o.jsxs("div",{className:"flex items-center gap-3 pt-4 border-t border-border",children:[o.jsx("img",{src:Zo,alt:"Kimberly Sullivan, Principal & Co-Managing Director at Gensler â testimonial for Seema Alexander",className:"w-9 h-9 rounded-full object-cover grayscale"}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium",children:"Kimberly Sullivan"}),o.jsxs("p",{className:"text-xs text-muted-foreground",children:["Principal & Co-Managing Director, ",o.jsx("span",{className:"text-primary font-medium",children:"Gensler"})," | DC Office"]})]})]})]})}),o.jsx(C,{delay:.16,children:o.jsxs("div",{className:"p-6 rounded-lg border border-border bg-card h-full flex flex-col",children:[o.jsx(Va,{className:"text-primary/20 mb-4",size:20}),o.jsxs("p",{className:"text-sm text-muted-foreground leading-relaxed flex-1 mb-6",children:['"I witnessed firsthand how Seema ',o.jsx("span",{className:"text-primary font-medium",children:"transformed her industry knowledge into living examples"}),", breaking down complex AI concepts into ",o.jsx("span",{className:"text-primary font-medium",children:"practical and digestible insights"})," that resonated across various industries. Her presentation was ",o.jsx("span",{className:"text-primary font-medium",children:"exceptional"})," - relatable, deeply knowledgeable, and offering a ",o.jsx("span",{className:"text-primary font-medium",children:"unique perspective"}),' from the business side. I highly recommend Seema to any organization looking to explore the future of business, work, and AI through a thoughtful and innovative lens."']}),o.jsxs("div",{className:"flex items-center gap-3 pt-4 border-t border-border",children:[o.jsx("img",{src:r5,alt:"Ziqi Li â testimonial for Seema Alexander AI keynote",className:"w-9 h-9 rounded-full object-cover grayscale"}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium",children:"Ziqi Li"}),o.jsxs("p",{className:"text-xs text-muted-foreground",children:["Program Coordinator, Global Engagement - ",o.jsx("span",{className:"text-primary font-medium",children:"World Trade Center Institute"})]})]})]})]})})]})})}),o.jsxs("section",{className:"py-12 border-b border-border relative overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-cover bg-center grayscale opacity-35",style:{backgroundImage:`url(${o5})`}}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-background/85 via-background/60 to-background/85"}),o.jsx("div",{className:"container mx-auto px-6 relative z-10",children:o.jsx("div",{className:"max-w-4xl mx-auto",children:u5.map((e,t)=>o.jsx(C,{delay:t*.05,children:o.jsxs("div",{className:"stat-line",children:[o.jsx("span",{className:"font-heading text-2xl md:text-3xl font-bold text-primary",children:e.value}),o.jsx("span",{className:"text-muted-foreground text-xs md:text-sm tracking-wider up
246percase text-right",children:e.label})]})},t))})})]}),o.jsx("section",{className:"section-padding",children:o.jsx("div",{className:"container mx-auto px-6",children:o.jsx(C,{children:o.jsxs("div",{className:"grid md:grid-cols-2 gap-16 items-center",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary mb-4",children:"Experience"}),o.jsxs("h2",{className:"font-heading text-4xl md:text-5xl uppercase tracking-tight leading-[1] mb-8",children:["Fortune 500 Executive,",o.jsx("br",{}),"Ecosystem Builder to Tech Founder"]}),o.jsxs("div",{className:"space-y-4 text-muted-foreground text-sm leading-relaxed",children:[o.jsxs("p",{children:["CEO + Founder of ",o.jsx("a",{href:"https://www.getdisruptive.ai",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Disruptive AI"}),", an AI strategy, product, and venture studio. Host of the AI CEO Podcast. Creator of AI BusinessCon."]}),o.jsx("p",{children:"Former Co-chair of DC Startup + Tech Week. Founding Member, Futurist Council for AI and the Future of Work (JFF Labs)."}),o.jsx("p",{children:"Former Fortune 500 executive turned serial entrepreneur who has guided hundreds of companies through transformation."})]}),o.jsxs(ae,{to:"/about",className:"mt-8 text-primary text-xs font-bold tracking-widest uppercase inline-flex items-center gap-2 hover:gap-3 transition-all",children:["Full Bio ",o.jsx(re,{size:14})]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsx("div",{className:"rounded-lg overflow-hidden aspect-[3/4]",children:o.jsx("img",{src:Ki,alt:"Seema Alexander professional headshot â AI business futurist and keynote speaker",className:"w-full h-full object-cover grayscale"})}),o.jsx("div",{className:"rounded-lg overflow-hidden aspect-[3/4] mt-8",children:o.jsx("img",{src:Xc,alt:"Seema Alexander speaking on stage at DC Startup Tech Week",className:"w-full h-full object-cover grayscale"})})]})]})})})}),o.jsx("section",{className:"section-padding bg-card",children:o.jsxs("div",{className:"container mx-auto px-6",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary text-center mb-4",children:"What I Do"}),o.jsx("h2",{className:"font-heading text-4xl md:text-5xl uppercase tracking-tight text-center mb-16",children:"Five Pillars"})]}),o.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-5 gap-px bg-border rounded-lg overflow-hidden",children:[{num:"01",title:"Disruptive AI",desc:"CEO â AI strategy + implementation studio for business leaders",href:"https://www.getdisruptive.ai"},{num:"02",title:"Venture Studio",desc:"Building and partnering in accelerating AI innovation to market"},{num:"03",title:"Keynote Speaker",desc:"Signature keynote 'Why AI Is Bigger Than the Internet' delivered worldwide"},{num:"04",title:"The AI CEO Podcast",desc:"Host â the layman business à AI podcast for execs, founders & operators"},{num:"05",title:"AI BusinessCon",desc:"Creator of the world's 1st business rewiring conference â March 2â3, 2027 in the Washington, DC metro area. Registration open"}].map((e,t)=>o.jsx(C,{delay:t*.08,children:o.jsxs("div",{className:"bg-card p-8 h-full flex flex-col",children:[o.jsx("span",{className:"text-primary text-xs font-bold tracking-widest mb-6",children:e.num}),o.jsx("h3",{className:"font-heading text-lg uppercase tracking-tight mb-3",children:e.href?o.jsxs("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary transition-colors inline-flex items-center gap-1.5",children:[e.title," ",o.jsx(re,{size:12,"aria-hidden":"true"})]}):e.title}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mt-auto",children:e.desc})]})},t))})]})}),o.jsxs("section",{className:"py-10 md:py-14 border-b border-border bg-card relative overflow-hidden",children:[o.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none select-none",children:o.jsx("p",{className:"font-heading text-[14vw] font-bold uppercase tracking-tighter opacity-[0.03] whitespace-nowrap",children:"5%"})}),o.jsx("div",{className:"container mx-auto px-6 relative z-10",children:o.jsx(C,{children:o.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-6 max-w-4xl mx-auto",children:[o.jsxs("div",{className:"text-center md:text-left",children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase mb-2",children:"AI BusinessCon · March 2â3, 2027 · Was
246hington, DC Metro · Registration Open"}),o.jsxs("p",{className:"font-heading text-xl md:text-2xl uppercase tracking-tight",children:["Only 5% of leaders get it. ",o.jsx("span",{className:"text-primary",children:"This conference fixes that."})]})]}),o.jsxs("a",{href:"https://www.businesscon.ai",target:"_blank",rel:"noopener noreferrer",className:"bg-primary text-primary-foreground px-8 py-3 text-xs font-bold tracking-widest uppercase rounded-full hover:opacity-90 transition-opacity inline-flex items-center gap-2 whitespace-nowrap shrink-0",children:["Register Now ",o.jsx(re,{size:14})]})]})})})]}),o.jsx("section",{className:"section-padding",children:o.jsxs("div",{className:"container mx-auto px-6",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary text-center mb-4",children:"On Stage"}),o.jsx("h2",{className:"font-heading text-4xl md:text-5xl uppercase tracking-tight text-center mb-12",children:"The Energy"})]}),o.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:[{src:Hu,alt:"Seema Alexander addressing a packed audience at a keynote event"},{src:i5,alt:"Seema Alexander delivering an AI strategy keynote"},{src:a5,alt:"Seema Alexander on stage at a disruption and innovation conference"},{src:Xc,alt:"Seema Alexander speaking at DC Startup Tech Week"},{src:s5,alt:"Audience engaged during Seema Alexander AI keynote presentation"},{src:wg,alt:"Seema Alexander with fellow speakers at DC Startup Tech Week"}].map((e,t)=>o.jsx(C,{delay:t*.06,children:o.jsxs("div",{className:"rounded-lg overflow-hidden aspect-video relative group cursor-pointer",children:[o.jsx("img",{src:e.src,alt:e.alt,className:"w-full h-full object-cover object-center grayscale group-hover:scale-105 transition-transform duration-700"}),o.jsx("div",{className:"absolute inset-0 bg-primary/0 group-hover:bg-primary/10 transition-colors duration-500"})]})},t))})]})}),o.jsx("section",{className:"section-padding border-t border-border",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-3xl",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary text-center mb-4",children:"FAQ"}),o.jsx("h2",{className:"font-heading text-4xl md:text-5xl uppercase tracking-tight text-center mb-12",children:"Frequently Asked Questions"})]}),o.jsx(hA,{type:"single",collapsible:!0,className:"border-t border-border",children:fA.map((e,t)=>o.jsxs(xg,{value:`faq-${t}`,className:"border-border",children:[o.jsx(vg,{className:"text-left font-heading text-base md:text-lg uppercase tracking-tight hover:no-underline hover:text-primary",children:e.q}),o.jsx(bg,{forceMount:!0,className:"text-sm text-muted-foreground leading-relaxed data-[state=closed]:hidden",children:e.a.includes("getdisruptive.ai")?o.jsxs(o.Fragment,{children:[e.a.split("getdisruptive.ai")[0],o.jsx("a",{href:"https://www.getdisruptive.ai",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"getdisruptive.ai"}),e.a.split("getdisruptive.ai")[1]]}):e.a})]},t))})]})}),o.jsxs("section",{className:"section-padding bg-card relative overflow-hidden",children:[o.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none select-none",children:o.jsx("p",{className:"font-heading text-[15vw] font-bold uppercase tracking-tighter opacity-[0.03] whitespace-nowrap",children:"BOOK NOW"})}),o.jsx("div",{className:"container mx-auto px-6 text-center relative z-10",children:o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary mb-4",children:"Ready?"}),o.jsxs("h2",{className:"font-heading text-4xl md:text-6xl uppercase tracking-tight mb-6",children:["Inspire Your",o.jsx("br",{}),"Audience"]}),o.jsx("p",{className:"text-muted-foreground max-w-md mx-auto mb-10 text-sm leading-relaxed",children:"Book Seema for your next conference, corporate event, or executive briefing â and give your audience a real, practical understanding of AI à business that inspires action, creates urgency, and replaces fear with clarity."}),o.jsxs(ae,{to:"/contact",className:"bg-primary text-primary-foreground px-10 py-4 text-xs font-bold tracking-widest uppercase rounded-full hover:opacity-90 transition-opacity inline-flex items-center gap-2",children:["Get in Touch ",o.jsx(re,{size:14})]})]})})]})]}),h5="/assets/seema-panel-D71b_3AQ.jpeg",f5="/assets/seema-speaking-venue-kqmmFbZA.jpeg",p5=[{num:"01",title:"CEO + Founder, Disruptive AI",desc:"AI strategy, product, and venture studio helping CEOs rewire their businesses in the AI era."},{num:"02",title:"Venture Advisor & Growth Accelerant",desc:"Strategic advisor to native AI companies â accelerating growth, sharpening positioning, and unlocking market potential."},{num:"03",title:"Host, AI CEO Podcast",desc:"For the 5% of business leaders who want to lead in the AI era."},{num:"04",title:"Creator, AI BusinessCon",desc:"The AI CEO Summit â March 2â3, 2027, Washington, DC metro. The world's 1st business rewiring conference in the AI era. Registration now open.",link:"https://www.businesscon.ai"},{num:"05",title:"Former Co-chair, DC Startup + Tech Week",desc:"Championing innovation ecosystems and supporting the next generation of founders."},{num:"06",title:"Founding Member, Futurist Council for AI and the Future of Work (JFF Labs)",desc:"Shaping policy on AI and the Future of Work."},{num:"07",title:"Fortune 500 â Entrepreneur",desc:"From corporate leadership to ventures driving meaningful change through technology."},{num:"08",title:"Mom to Two Daughters",desc:"Their futures will be shaped by AI â Seema is committed to being on the right side of the biggest shift of our generation."}],t0={hidden:{opacity:0,y:40,skewY:2},visible:e=>({opacity:1,y:0,skewY:0,transition:{delay:.2+e*.18,duration:.8,ease:[.25,.46,.45,.94]}})},m5={hidden:{opacity:0,x:-20},visible:e=>({opacity:1,x:0,transition:{delay:e*.12,duration:.6,ease:"easeOut"}})},g5=()=>o.jsxs("div",{children:[o.jsx(Tt,{title:"About Seema Alexander â AI Keynote Speaker",description:"With 25+ years of executive leadership, Seema Alexander helps CEOs redesign their businesses for the AI era. Founder of Disruptive AI and host of The AI CEO Podcast.",path:"/about"}),o.jsxs("section",{className:"relative min-h-[80vh] flex items-end pb-20 overflow-hidden",children:[o.jsxs(G.div,{className:"absolute inset-0",initial:{scale:1.1},animate:{scale:1},transition:{duration:1.8,ease:"easeOut"},children:[o.jsx("img",{src:Hu,alt:"Seema Alexander addressing audience",className:"w-full h-full object-cover object-top grayscale"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-background/80 to-background/20"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-background/90 to-transparent"})]}),o.jsx(G.div,{className:"absolute top-1/4 left-0 right-0 pointer-events-none select-none overflow-hidden",initial:{opacity:0,x:-100}
246,animate:{opacity:.04,x:0},transition:{duration:1.5,delay:.5,ease:"easeOut"},children:o.jsx("p",{className:"font-heading text-[20vw] font-bold uppercase leading-none tracking-tighter whitespace-nowrap",children:"SEEMA"})}),o.jsxs("div",{className:"container mx-auto px-6 relative z-10 max-w-3xl",children:[o.jsx(G.p,{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase mb-6",initial:{opacity:0},animate:{opacity:1},transition:{delay:.1,duration:.6},children:"About"}),o.jsx("div",{className:"overflow-hidden",children:o.jsxs(G.h1,{className:"font-heading text-5xl md:text-7xl lg:text-8xl uppercase tracking-tighter leading-[0.9] mb-4",custom:0,initial:"hidden",animate:"visible",variants:t0,children:[o.jsx("span",{className:"text-primary",children:"Seema"})," Alexander"]})}),o.jsx("div",{className:"overflow-hidden",children:o.jsx(G.p,{className:"font-heading text-2xl md:text-3xl uppercase tracking-tight text-muted-foreground",custom:1,initial:"hidden",animate:"visible",variants:t0,children:"The Futurist Behind the Vision"})})]})]}),o.jsx("section",{className:"section-padding",children:o.jsx("div",{className:"container mx-auto px-6",children:o.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-16 items-center",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase mb-6",children:"The Mission"}),o.jsxs("h2",{className:"font-heading text-3xl md:text-4xl uppercase tracking-tighter leading-[0.9] mb-8",children:["Empowering ",o.jsx("span",{className:"text-primary",children:"1 Million CEOs"})," to Rewire for the AI Era"]}),o.jsxs("div",{className:"space-y-5 text-muted-foreground text-sm md:text-base leading-relaxed",children:[o.jsxs("p",{children:["Seema Alexander is an ",o.jsx("span",{className:"text-foreground font-medium",children:"AI Business Futurist"}),", international keynote speaker, and serial entrepreneur on a mission to empower 1 million CEOs to rewire their businesses for the AI eraâunlocking new levels of intelligence, operational leverage, and long-term competitive advantage."]}),o.jsxs("p",{children:["As Founder & CEO of ",o.jsx("a",{href:"https://getdisruptive.ai",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline font-medium",children:"Disruptive AI"}),", she leads a team helping the world's most ambitious leaders rewire their businesses for the AI era."]}),o.jsxs("p",{children:["A former ",o.jsx("span",{className:"text-foreground font-medium",children:"Fortune 500 executive"})," â 13 years at Prudential Financial across five businesses â turned serial entrepreneur, Seema brings over two decades of experience in brand repositioning, growth strategy, and innovation. She has guided hundreds of organizationsâfrom legacy enterprises to high-growth startupsâthrough moments of disruption, helping them not just adapt, but fundamentally reimagine how they operate, compete, and create value."]}),o.jsxs("p",{children:["Through her global keynotes, AI fluency experiences, and ",o.jsx("span",{className:"text-foreground font-medium",children:"The AI CEO Podcast"}),", Seema is shaping how non-technical CEOs and business leaders understand and operationalize AI. Her core belief: this is not a technology upgradeâit's a business rewiring. The companies that win will be those that build intelligence into the core of how decisions are made, how work is executed, and how value is created."]}),o.jsxs("p",{children:["She is also a ",o.jsx("span",{className:"text-foreground font-medium",children:"mother of two daughters"}),"âan identity that deeply shapes her perspective on this moment. For Seema, the rise of AI is not just a business inflection point, but a responsibility: to help build a future where technology expands human potential, preserves what makes us uniquely human, and creates meaningful opportunity for the next generation."]}),o.jsxs("p",{children:["Seema is also the ",o.jsxs("span",{className:"text-foreground font-medium",children:["founding partner of ",o.jsx("a",{href:"https://www.businesscon.ai",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline font-medium",children:"AI BusinessCon"})]}),"âthe world's first business rewiring conference for the AI era, taking place March 2â3, 2027 in the Washington, DC metro area (registration now open)âand former ",o.jsx("span",{className:"text-foreground font-medium",children:"Co-Chair of DC Startup & Tech Week"}),"."]})]})]}),o.jsx(C,{delay:.15,children:o.jsxs(G.div,{className:"rounded-lg overflow-hidden max-h-[500px] relative group",whileHover:{scale:1.02},transition:{duration:.5},children:[o.jsx("img",{src:Ki,alt:"Seema Alexander",className:"w-full h-full object-cover object-top grayscale group-hover:grayscale-0 transition-all duration-700"}),o.jsx("div",{className:"absolute inset-0 bg-primary/10 opacity-0 group-hover:opacity-100 transition-opacity duration-500"})]})})]})})}),o.jsx("section",{className:"section-padding bg-card border-y border-border",children:o.jsxs("div",{className:"container mx-auto px-6",children:[o.jsx(C,{children:o.jsxs("div",{className:"max-w-3xl mb-16",children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary mb-6",children:"The Engine"}),o.jsxs("h2",{className:"font-heading text-4xl md:text-6xl uppercase tracking-tighter leading-[0.9] mb-8",children:["Inside ",o.jsx("a",{href:"https://getdisruptive.ai",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Disruptive AI"})]}),o.jsx("p",{className:"text-muted-foreground text-base md:text-lg leading-relaxed",children:"The engine behind every keynote. Three integrated practices helping leaders rethink, reimagine, and rewire how their businesses operate in the AI era."})]})}),o.jsx("div",{className:"grid md:grid-cols-3 gap-px bg-border border border-border",children:[{num:"01",title:"AI Fluency & Executive Rewiring",desc:"Hands-on executive experiences that move leaders from AI curiosity to clarityâso they can rethink how their business operates, makes decisions, and competes."},{num:"02",title:"Intelligent Systems & Commercial Builds",desc:"Designing and building AI-powered operating systems and products that unlock new revenue, efficiency, and competitive advantageânot tools, but systems that run the business."},{num:"03",title:"AI-Native Ventures & Scale Partnerships",desc:"Backing and co-building AI-native companies solving real industry problemsâcomb
246ining strategy, product, and go-to-market to scale what works."}].map((e,t)=>o.jsx(C,{delay:t*.1,children:o.jsxs(G.div,{className:"bg-background p-8 md:p-10 h-full group hover:bg-card transition-colors duration-300",whileHover:{y:-4},transition:{duration:.3},children:[o.jsx("span",{className:"text-primary text-xs font-bold tracking-[0.3em] block mb-6",children:e.num}),o.jsx("h3",{className:"font-heading text-xl md:text-2xl uppercase tracking-tight mb-4 group-hover:text-primary transition-colors duration-300",children:e.title}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.desc})]})},t))}),o.jsx(C,{delay:.3,children:o.jsxs("div",{className:"mt-12 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-6 max-w-4xl",children:[o.jsx("p",{className:"text-muted-foreground text-sm md:text-base leading-relaxed max-w-xl",children:"From understanding AI â to building with it â to owning what winsâone integrated system."}),o.jsxs(G.a,{href:"https://getdisruptive.ai",target:"_blank",rel:"noopener noreferrer",className:"border border-primary text-primary px-8 py-3 text-xs font-bold tracking-widest uppercase rounded-full hover:bg-primary hover:text-primary-foreground transition-colors inline-flex items-center gap-2 shrink-0",whileHover:{scale:1.05},whileTap:{scale:.97},children:["Visit Disruptive AI ",o.jsx(re,{size:14})]})]})})]})}),o.jsxs("section",{className:"relative py-24 md:py-32 overflow-hidden",children:[o.jsxs("div",{className:"absolute inset-0",children:[o.jsx("img",{src:h5,alt:"",className:"w-full h-full object-cover object-center grayscale"}),o.jsx("div",{className:"absolute inset-0 bg-background/85"})]}),o.jsx("div",{className:"container mx-auto px-6 max-w-3xl relative z-10 text-center",children:o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary mb-6",children:"The Thesis"}),o.jsxs("h2",{className:"font-heading text-4xl md:text-6xl uppercase tracking-tighter leading-[0.9] mb-8",children:["The ",o.jsx("span",{className:"text-primary",children:"3-Year"}),o.jsx("br",{}),"Value Creation Window"]}),o.jsxs("div",{className:"space-y-4 text-muted-foreground text-base md:text-lg leading-relaxed max-w-xl mx-auto",children:[o.jsx("p",{children:"This is the moment companies don't just grow."}),o.jsxs("p",{className:"text-foreground font-heading text-xl md:text-2xl uppercase tracking-tight",children:["They redesign their industries â",o.jsx("br",{}),"and get ",o.jsx("span",{className:"text-primary",children:"valued differently."})]})]})]})})]}),o.jsx("section",{className:"section-padding bg-card",children:o.jsxs("div",{className:"container mx-auto px-6",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary mb-4",children:"Leadership"}),o.jsxs("h2",{className:"font-heading text-4xl md:text-5xl uppercase tracking-tight mb-16",children:["Where ",o.jsx("span",{className:"text-primary",children:"Seema"})," Leads"]})]}),o.jsx("div",{className:"max-w-4xl",children:p5.map((e,t)=>o.jsx(C,{delay:t*.05,children:o.jsxs(G.div,{className:"py-8 border-b border-border flex gap-6 items-start group hover:border-primary/40 transition-all duration-300",whileHover:{x:8},transition:{duration:.3},children:[o.jsx("span",{className:"text-primary text-xs font-bold tracking-widest mt-1 shrink-0",children:e.num}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-heading text-lg uppercase tracking-tight mb-2 group-hover:text-primary transition-colors duration-300",children:e.link?o.jsxs("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary transition-colors",children:[e.title," ",o.jsx(re,{size:14,className:"inline"})]}):e.title}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.desc})]})]})},t))})]})}),o.jsxs("section",{className:"section-padding relative overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background via-card/50 to-background"}),o.jsxs("div",{className:"container mx-auto px-6 max-w-3xl relative z-10",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary mb-6",children:"This Is Personal"}),o.jsxs("h2",{className:"font-heading text-4xl md:text-6xl uppercase tracking-tighter leading-[0.9] mb-12",children:["I've ",o.jsx("span",{className:"text-primary",children:"Seen This"}),o.jsx("br",{}),"Before"]})]}),o.jsx(G.div,{className:"space-y-6 text-muted-foreground text-base md:text-lg leading-relaxed",initial:"hidden",
246whileInView:"visible",viewport:{once:!0,amount:.2},children:[{text:o.jsxs(o.Fragment,{children:["I don't look at AI as a trend.",o.jsx("br",{}),"I look at it as a ",o.jsx("span",{className:"text-foreground font-medium",children:"pattern."})]}),highlight:!1},{text:o.jsxs(o.Fragment,{children:["I grew up around small businesses that did everything rightâ",o.jsx("br",{}),"worked hard, built momentum, were successful."]}),highlight:!1},{text:o.jsx(o.Fragment,{children:"And then the internet changed everything."}),highlight:!1},{text:o.jsxs(o.Fragment,{children:["Not slowly. Not obviously.",o.jsx("br",{}),"It rewired how businesses operated⦠and they didn't see it coming."]}),highlight:!1},{text:o.jsxs(o.Fragment,{children:["What once worked stopped working.",o.jsx("br",{}),"And over time, those businesses didn't survive the shift."]}),highlight:!1},{text:o.jsx(o.Fragment,{children:"That experience stayed with me."}),highlight:!0},{text:o.jsxs(o.Fragment,{children:["So when I say AI is bigger than the internetâ",o.jsx("br",{}),"it's not a headline."]}),highlight:!1},{text:o.jsxs(o.Fragment,{children:["It's pattern recognition.",o.jsx("br",{}),"And this time, I'm not watching it happenâ",o.jsx("br",{}),o.jsx("span",{className:"text-primary",children:"I'm helping leaders build for it."})]}),highlight:!0}].map((e,t)=>o.jsx(G.p,{custom:t,variants:m5,className:e.highlight?"text-foreground font-heading text-xl md:text-2xl uppercase tracking-tight":"",children:e.text},t))})]})]}),o.jsxs("section",{className:"relative section-padding overflow-hidden",children:[o.jsxs("div",{className:"absolute inset-0",children:[o.jsx("img",{src:f5,alt:"Seema Alexander speaking at venue",className:"w-full h-full object-cover object-center grayscale"}),o.jsx("div",{className:"absolute inset-0 bg-background/90"})]}),o.jsxs("div",{className:"container mx-auto px-6 max-w-3xl relative z-10",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary text-center mb-4",children:"Why Seema"}),o.jsxs("h2",{className:"font-heading text-4xl md:text-5xl uppercase tracking-tight text-center mb-12",children:["What Sets ",o.jsx("span",{className:"text-primary",children:"Her"})," Apart"]}),o.jsx("div",{className:"grid sm:grid-cols-2 gap-4",children:["Proven expertise as CEO, strategist, and advisor to scaling companies â $100M in collective revenue","Makes AI simple, actionable, and inspiring for non-technical leaders","Dynamic, engaging style connecting across diverse audiences","Focus on responsible AI, ethics, and societal impact"].map((e,t)=>o.jsxs(G.div,{className:"p-5 rounded-lg border border-border bg-card/80 backdrop-blur-sm hover:border-primary/40 transition-colors duration-300",whileHover:{y:-4},transition:{duration:.3},children:[o.jsxs("span",{className:"text-primary text-xs font-bold tracking-widest mb-3 block",children:["0",t+1]}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e})]},t))})]}),o.jsx(C,{delay:.15,children:o.jsx("div",{className:"text-center mt-12",children:o.jsx(G.div,{whileHover:{scale:1.05},whileTap:{scale:.97},children:o.jsxs(ae,{to:"/contact",className:"bg-primary text-primary-foreground px-10 py-4 text-xs font-bold tracking-widest uppercase rounded-full hover:opacity-90 transition-opacity inline-flex items-center gap-2",children:["Book Seema ",o.jsx(re,{size:14})]})})})})]})]})]}),y5="/assets/dcstw-stage-OemPA8M2.jpeg",Ku="/assets/karima-woods-Fe-yt50i.jpeg",x5="/assets/andrew-nissen-1_Ts6xAo.jpeg",v5="/assets/wacif-cultivate-DuUk5lkF.jpeg",b5="/assets/tammen-nicholson-8RSsASpy.jpeg",w5="/assets/uvika-sharma-DSrWOhXD.jpeg",k5="/assets/daour-diawar-CBK2vp6K.jpeg",pA="/assets/seema-dcstw-panel2-zY1rJ39e.jpeg",S5=1,j5="99364c1d-6c45-4c28-9ff7-bf65a69008bc",A5="e763e4f5-51c9-4eb4-9a8d-62fca5870f9a",E5="/__l5e/assets-v1/99364c1d-6c45-4c28-9ff7-bf65a69008bc/speaking-gensler.jpeg",T5="a/v1/e763e4f5-51c9-4eb4-9a8d-62fca5870f9a/99364c1d-6c45-4c28-9ff7-bf65a69008bc/speaking-gensler.jpeg",N5="speaking-gensler.jpeg",C5=2648066,_5="image/jpeg",I5="2026-07-16T22:38:20Z",P5={version:S5,asset_id:j5,project_id:A5,url:E5,r2_key:T5,original_filename:N5,size:C5,content_type:_5,created_at:I5},R5=1,O5="6d5150aa-380f-4baf-9ba2-8dfd5f6aeb54",D5="e763e4f5-51c9-4eb4-9a8d-62fca5870f9a",L5="/__l5e/assets-v1/6d5150aa-380f-4baf-9ba2-8dfd5f6aeb54/speaking-audience.jpeg",M5="a/v1/e763e4f5-51c9-4eb4-9a8d-62fca5870f9a/6d5150aa-380f-4baf-9ba2-8dfd5f6aeb54/speaking-audience.jpeg",$5="speaking-audience.jpeg",F5=2723982,B5="image/jpeg",U5="2026-07-16T22:38:15Z",z5={version:R5,asset_id:O5,project_id:D5,url:L5,r2_key:M5,original_filename:$5,size:F5,content_type:B5,created_at:U5},V5={"@context":"https://schema.org","@graph":[{"@type":"Service",serviceType:"AI Keynote Speaking",name:"AI Keynote Speaker â Seema Alexander",description:"AI keynote speaker and futurist on AI and the future of business. Signature keynote 'The Great Business Rewiringâ¢: Why AI Is 10x Bigger Than the Internet' for conferences, corporate events, and executive briefings.",provider:{"@type":"Person",name:"Seema Alexander",url:"https://seemaalexander.com"},areaServed:"Global",offers:{"@type":"Offer",price:"12500",priceCurrency:"USD",priceSpecification:{"@type":"PriceSpecification",minPrice:"12500",priceCurrency:"USD"}}},{"@type":"Service",serviceType:"Executive AI Workshop",name:"Executive AI Strategy Workshop",description:"Interactive AI workshop for C-suites, boards, and executive teams to identify AI opportunities, prioritize initiatives, and build an AI-native operating strategy. Customized by industry.",provider:{"@type":"Person",name:"Seema Alexander",url:"https://seemaalexander.com"},areaServed:"Global",offers:{"@type":"Offer",price:"15000",priceCurrency:"USD",priceSpecification:{"@type":"PriceSpecification",minPrice:"15000",priceCurrency:"USD"}}},{"@type":"Service",serviceType:"Employee AI Fluency Workshop",name:"Employee AI Fluency Workshop & Corporate AI Training",description:"Hands-on AI training for employees that builds AI fluency, confidence, and practical AI skills across the workforce. Ideal for company-wide rollouts, department upskilling, and all-hands learning days.",provider:{"@type":"Person",name:"Seema Alexander",url:"https://seemaalexander.com"},areaServed:"Global",offers:{"@type":"Offer",price:"15000",priceCurrency:"USD",priceSpecification:{"@type":"PriceSpecification",minPrice:"15000",priceCurrency:"USD"}}},{"@type":"Service",serviceType:"AI Solution Sprint",name:"AI Solution Sprint â Keynote + Workshop",description:"A combined keynote and working session that helps leaders and team
246s translate AI into real business solutions, identify high-value use cases, and leave with a prioritized action plan. Organizations that run this session accelerate smart AI adoption by 25%.",provider:{"@type":"Person",name:"Seema Alexander",url:"https://seemaalexander.com"},areaServed:"Global",offers:{"@type":"Offer",price:"15000",priceCurrency:"USD",priceSpecification:{"@type":"PriceSpecification",minPrice:"15000",priceCurrency:"USD"}}}]},ih={hidden:{opacity:0,y:30,skewY:2},visible:e=>({opacity:1,y:0,skewY:0,transition:{delay:.15+e*.15,duration:.7,ease:[.25,.46,.45,.94]}})},W5=[{num:"01",title:"The Great Business Rewiringâ¢: Why AI Is 10x Bigger Than the Internet",desc:o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:"mb-4",children:["This is the moment that separates the leaders who will define the next decade from everyone else. Seema takes the stage with a single mission: to make AI feel urgent, actionable, and impossible to ignore for ",o.jsx("span",{className:"text-primary font-medium",children:"C-suite leaders, founders, and boards"}),". She strips away the hype and translates AI into what actually matters â where the value is created, where the risk hides, and what decisions must be made before competitors make them first."]}),o.jsxs("p",{children:["Audiences do not leave with theory. They leave with ",o.jsx("span",{className:"text-primary font-medium",children:"clarity, momentum, and a framework"})," for turning AI from a question mark into a structural advantage. The focus is never on tools alone â it is on operating model redesign, leverage, and the strategic choices that separate optimizers from redesigners."]})]}),for:"C-Suite, Founders & Executive Teams â Leadership Summits, Board Retreats & Strategy Sessions"},{num:"02",title:"The Great Business Rewiringâ¢: How AI Will Change the Way We Work",desc:o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"mb-4",children:"Designed for company-wide rollouts, all-hands events, and employee upskilling programs, this session makes AI accessible, practical, and inspiring for the entire workforce. Seema demystifies how AI will reshape day-to-day work, what skills become more valuable, and how every employee can become a confident contributor."}),o.jsxs("p",{children:['This is not about becoming an "AI-enabled" organization. It is about becoming an ',o.jsx("span",{className:"text-primary font-medium",children:"intelligent organization"})," â one where people use AI as a means to an end to solve real business problems, leverage automation for efficiencies, and leverage intelligence for innovation in ways that were once not possible. Attendees leave with reduced fear, stronger fluency, and immediate ways to apply AI to their own roles."]})]}),for:"Employees & Teams â Town Halls, Department Trainings & AI Fluency Days"}],H5=[{title:"Keynote Speaking",desc:"High-impact presentations that help organizations understand The Great Business Rewiring⢠and what AI means for their industry.",perfect:"Conferences, summits, leadership offsites, and industry events."},{title:"Executive Strategy Workshops",desc:"Interactive sessions for executive teams to identify opportunities, prioritize initiatives, and develop an AI-native operating strategy. Customized by industry and/or business segment.",perfect:"C-suites and leadership teams shaping enterprise AI strategy."},{title:"Leadership & Management Workshops",desc:"Equip directors and managers with the mindset, frameworks, and practical tools to lead teams through AI transformation.",perfect:"Director- and manager-level leaders driving operational change."},{title:"Employee AI Fluency Workshops",desc:"Hands-on sessions that build confidence, practical skills, and AI-native thinking across the workforce.",perfect:"Company-wide rollouts, department upskilling, and all-hands learning days."},{title:"AI Solution Sprint â Keynote + Workshop",desc:"A combined keynote and working session that helps leaders and teams translate AI into real business solutions. Attendees identify high-value use cases, map AI to existing workflows, and leave with a prioritized action plan. Organizations that run this session accelerate smart AI adoption by 25%.",perfect:"Leadership teams, functional groups, and cross-functional teams ready to turn AI conversations into concrete outcomes."}],K5=["Clear mental models for the intelligent economy","Language to lead internal AI conversations with confidence","Understanding AI-native disruption and models","How AI reshapes productivity, personalization, service, and innovation","Reduced fear and inspired, confident action","A shift from incremental thinking to seizing this moment"],q5=["25+ years scaling businesses across industries","Corporate + entrepreneurial operating experience","CEO & Founder of Disruptive AI","Host of The AI CEO Podcast","International keynote speaker","Reached 100,000+ leaders with AI insights","Former Co-Chair of DC Startup and Tech Week"],n0=[{quote:o.jsxs(o.Fragment,{children:["In an environment that's flooded with
246news and opinions on AI, Seema ",o.jsx("span",{className:"text-primary font-medium",children:"breaks through the noise"})," with insights and forecasts that bring ",o.jsx("span",{className:"text-primary font-medium",children:"intelligence and theory"})," to the conversation. She is an ",o.jsx("span",{className:"text-primary font-medium",children:"expert in this space"}),", and with experience guiding both AI start-ups and large corporates, she brings an ",o.jsx("span",{className:"text-primary font-medium",children:"invaluable perspective"})," on the value of innovation by challenging what we think we know about AI."]}),name:"Katy Redmond, MCR",role:"Senior Managing Director, JLL",image:Xo},{quote:o.jsxs(o.Fragment,{children:["Thank you for sharing the ",o.jsx("span",{className:"text-primary font-medium",children:"technologies and business models reshaping the financial services industry"}),". My team and I ",o.jsx("span",{className:"text-primary font-medium",children:"really enjoyed your insights"}),"!"]}),name:"Karima M. Woods",role:"Commissioner, Department of Insurance, Securities and Banking (DISB)",image:Ku},{quote:o.jsxs(o.Fragment,{children:["It was a ",o.jsx("span",{className:"text-primary font-medium",children:"thought provoking and inspiring"})," dialogue that sparked new ideas and ways of leveraging AI in our daily work. Seema is ",o.jsx("span",{className:"text-primary font-medium",children:"extraordinary"})," and we so appreciate her spending the evening with us."]}),name:"Kimberly Sullivan, Principal & Co-Managing Director",role:"Gensler | DC Office",image:Zo},{quote:o.jsxs(o.Fragment,{children:["Seema's sessions ",o.jsx("span",{className:"text-primary font-medium",children:"challenge 'business as usual.'"})," Her insights on AI consistently ",o.jsx("span",{className:"text-primary font-medium",children:"spark global dialogue"})," and help changemakers see beyond today into what's possible tomorrow."]}),name:"Andrew Nissen",role:"International Changemaker Network",image:x5},{quote:o.jsxs(o.Fragment,{children:["Seema delivered an ",o.jsx("span",{className:"text-primary font-medium",children:"engaging and insightful"})," talk on AI's role in business growth. She broke down trends into ",o.jsx("span",{className:"text-primary font-medium",children:"practical strategies"})," CEOs and founders could act on immediately â leaving our group ",o.jsx("span",{className:"text-primary font-medium",children:"inspired and motivated."})]}),name:"Tammen Nicholson",role:"Program Officer, U.S. State Department IVLP",image:b5},{quote:o.jsxs(o.Fragment,{children:["Seema has an ",o.jsx("span",{className:"text-primary font-medium",children:"unparalleled ability to connect"})," with diverse audiences. Her message on why the ",o.jsx("span",{className:"text-primary font-medium",children:"AI revolution will surpass past industrial shifts"})," was both a wake-up call and a call to action."]}),name:"Uvika Sharma",role:"CAIO + Responsible AI Advocate",image:w5},{quote:o.jsxs(o.Fragment,{children:["Seema Alexander delivered an incredibly ",o.jsx("span",{className:"text-primary font-medium",children:"engaging and thought-provoking"})," presentation that highlighted why this moment in history is ",o.jsx("span",{className:"text-primary font-medium",children:"more transformative than the advent of the internet."})," Her insights on the broader impacts of AI on mankind made me ",o.jsx("span",{className:"text-primary font-medium",children:"rethink how I approach AI."})," This was more than just a talk â it was a ",o.jsx("span",{className:"text-primary font-medium",children:"call to action"})," for all of us."]}),name:"Padmini Soni",role:"Co-Chair AWAAI and CEO, Rezonance AI",image:null},{quote:o.jsxs(o.Fragment,{children:["Coming into this [CoreNet Mid-Atlantic] event, I knew it was going to be great; but didn't know it would be ",o.jsx("span",{className:"text-primary font-medium",children:"this great."})," Seema is ",o.jsx("span",{className:"text-primary font-medium",children:"very knowledgeable"})," and her network is also very impressive â so we took ",o.jsx("span",{className:"text-primary font-medium",children:"a lot out of her keynote."})]}),name:"Daour Diawar",role:"Global Real Estate, McKinsey & Company",image:k5}],ah=["JLL","Gensler","U.S. State Department","CoreNet Mid-Atlantic","WACIF","DC Startup & Tech Week","DISB Department of Insurance, Security & Banking","National Restaurant Association"],oh=["Wells Fargo","World Bank","University of Maryland","Voice of Impact","KPMG","Northern Virginia Tech Council","Alliance of Chief Executives"],G5=[{icon:Nu,label:"Signature Keynote",value:"The Great Business Rewiringâ¢"},{icon:i_,label:"Formats",value:"Keynote · Fireside · Workshop · Half / Full Day"},{icon:Qi,label:"Audiences",value:"C-Suite · Boards · Associations · All-Hands"},{icon:e1,label:"Investment",value:"Keynotes from $12.5K+ · Workshops from $15K+"},{icon:vm,label:"Travel",value:"Global · Based in Washington, D.C."},{icon:Qk,label:"Availability",value:"Booking 2026 · Limited dates"}],r0=[0,2,1],Y5=()=>o.jsxs("div",{children:[o.jsx(Tt,{title:"AI Keynote Speaker â Book Seema Alexander",description:"Book Seema Alexander â top AI keynote speaker on AI and the future of business. Keynotes from $12.5K · workshops from $15K.",path:"/speaking",jsonLd:V5}),o.jsxs("section",{className:"relative overflow-hidden min-h-[78vh] flex items-center pt-28 pb-12",children:[o.jsx(G.div,{className:"absolute inset-0 bg-cover bg-center grayscale opacity-40",style:{backgroundImage:`url(${y5})`},initial:{scale:1.15},animate:{scale:1},transition:{duration:1.8,ease:[.25,.46,.45,.94]}}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background/85 via-background/70 to-background"}),o.jsx("div",{className:"container mx-auto px-6 relative z-10",children:o.jsxs("div",{className:"grid lg:grid-cols-12 gap-10 items-end",children:[o.jsxs("div",{className:"lg:col-span-8",children:[o.jsxs(G.div,{className:"inline-flex items-center gap-3 border border-primary/40 px-4 py-2.5 mb-8 animate-float",initial:{opacity:0,y:10}
246,animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},children:[o.jsx("span",{className:"block w-1.5 h-1.5 rounded-full bg-primary animate-pulse"}),o.jsx("span",{className:"text-primary text-[10px] font-bold tracking-[0.25em] uppercase",children:"Booking 2026 · Limited Dates · Booking 2027 · Available Dates â Inquiry Below"})]}),o.jsxs("h1",{className:"font-heading text-4xl md:text-5xl lg:text-6xl xl:text-7xl uppercase tracking-tight leading-[0.92] mb-8",children:[o.jsx(G.span,{className:"block",custom:0,variants:ih,initial:"hidden",animate:"visible",children:"AI Is Rewiring Business."}),o.jsx(G.span,{className:"block text-primary",custom:1,variants:ih,initial:"hidden",animate:"visible",children:"Most Will Optimize."}),o.jsx(G.span,{className:"block",custom:2,variants:ih,initial:"hidden",animate:"visible",children:"A Few Will Redesign."})]})]}),o.jsx("div",{className:"lg:col-span-4",children:o.jsxs("div",{className:"border-l-2 border-primary pl-6 md:pl-8",children:[o.jsxs("p",{className:"text-muted-foreground text-base md:text-lg leading-relaxed mb-8",children:["Seema Alexander believes we are entering ",o.jsx("span",{className:"text-foreground font-medium",children:"The Great Business Rewiringâ¢"})," era â the once-in-a-generation shift that separates leaders who redesign business from those who merely optimize. She is the strategic voice for boards, C-suites, non-technical leaders, and employees navigating this AI-imperative decade."]}),o.jsxs("div",{className:"flex flex-wrap gap-3",children:[o.jsxs(ae,{to:"/contact",className:"bg-primary text-primary-foreground px-8 py-4 text-[11px] font-bold tracking-[0.2em] uppercase hover:bg-foreground transition-colors inline-flex items-center gap-2",children:["Check Availability ",o.jsx(re,{size:14})]}),o.jsx("a",{href:"/media-kit",className:"border border-border text-foreground px-8 py-4 text-[11px] font-bold tracking-[0.2em] uppercase hover:border-primary/60 transition-colors inline-flex items-center gap-2",children:"Media Kit"})]})]})})]})})]}),o.jsx("section",{className:"border-y border-border",children:o.jsx("div",{className:"relative w-full overflow-hidden py-5 bg-card/30 [mask-image:linear-gradient(to_right,transparent,black_8%,black_92%,transparent)]",children:o.jsxs("div",{className:"space-y-2",children:[o.jsx("div",{className:"flex gap-10 animate-marquee whitespace-nowrap w-max",children:[...ah,...ah,...ah].map((e,t)=>o.jsx("span",{className:"text-xs md:text-sm font-heading uppercase tracking-wider text-foreground/60 hover:text-foreground transition-colors flex-shrink-0",children:e},t))}),o.jsx("div",{className:"flex gap-10 animate-marquee-reverse whitespace-nowrap w-max",children:[...oh,...oh,...oh].map((e,t)=>o.jsx("span",{className:"text-xs md:text-sm font-heading uppercase tracking-wider text-foreground/60 hover:text-foreground transition-colors flex-shrink-0",children:e},t))})]})})}),o.jsx("section",{className:"section-padding",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-7xl",children:[o.jsx(C,{children:o.jsxs("div",{className:"flex items-end justify-between mb-10 flex-wrap gap-4",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-primary text-[10px] font-bold tracking-[0.4em] uppercase mb-3",children:"On Stage"}),o.jsxs("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight leading-[0.95]",children:["Rooms Rewired.",o.jsx("br",{}),"Leaders Activated."]})]}),o.jsx("p",{className:"text-xs uppercase tracking-[0.25em] text-muted-foreground max-w-xs",children:"From boardrooms to global HQs â Seema turns AI anxiety into executive momentum."})]})}),o.jsxs("div",{className:"grid lg:grid-cols-12 gap-2",children:[o.jsx(C,{className:"lg:col-span-8",children:o.jsxs(G.div,{className:"relative overflow-hidden aspect-[16/10] border border-border group",whileHover:{scale:1.005},transition:{duration:.5,ease:"easeOut"},children:[o.jsx(G.img,{src:P5.url,alt:"Seema Alexander delivering The Great Business Rewiring keynote at Gensler DC",className:"w-full h-full object-cover grayscale group-hover:grayscale-0 transition-all duration-700",whileHover:{scale:1.04},transition:{duration:.8,ease:"easeOut"}}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/90 via-background/10 to-transparent"}),o.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-6 md:p-8",children:[o.jsx("p",{className:"text-primary text-[10px] font-bold tracking-[0.3em] uppercase mb-2",children:"Gensler · DC Office"}),o.jsx("p",{className:"font-heading text-xl md:text-2xl uppercase tracking-tight leading-tight text-foreground",children:"The Great Business Rewiring⢠â Live"})]})]})}),o.jsx(C,{delay:.15,className:"lg:col-span-4",children:o.jsxs(G.div,{className:"relative overflow-hidden aspect-[16/10] lg:aspect-auto lg:h-full border border-border group",whileHover:{scale:1.005},transition:{duration:.5,ease:"easeOut"},children:[o.jsx(G.img,{src:z5.url,alt:"Seema Alexander with audie
246nce after keynote",className:"w-full h-full object-cover grayscale group-hover:grayscale-0 transition-all duration-700",whileHover:{scale:1.04},transition:{duration:.8,ease:"easeOut"}}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/90 via-background/10 to-transparent"}),o.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-6 md:p-8",children:[o.jsx("p",{className:"text-primary text-[10px] font-bold tracking-[0.3em] uppercase mb-2",children:"Audience · Post-Workshop"}),o.jsx("p",{className:"font-heading text-xl md:text-2xl uppercase tracking-tight leading-tight text-foreground",children:"Standing Room Selfie Every Time."})]})]})})]})]})}),o.jsx("section",{className:"section-padding",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-6xl",children:[o.jsx(C,{children:o.jsxs("div",{className:"flex items-end justify-between mb-12 flex-wrap gap-4",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-primary text-[10px] font-bold tracking-[0.4em] uppercase mb-3",children:"Speaker Fact Sheet"}),o.jsx("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight leading-[0.95]",children:"Seema, At A Glance"})]}),o.jsx("p",{className:"text-xs uppercase tracking-[0.25em] text-muted-foreground max-w-xs",children:"Everything an event planner needs in ten seconds."})]})}),o.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 border-t border-l border-border",children:G5.map((e,t)=>o.jsx(C,{delay:t*.05,children:o.jsxs(G.div,{className:"border-r border-b border-border p-8 h-full group hover:bg-card/50 transition-colors cursor-default",whileHover:{y:-4},transition:{duration:.25,ease:"easeOut"},children:[o.jsx(G.div,{whileHover:{scale:1.15,rotate:5},transition:{duration:.25},children:o.jsx(e.icon,{size:18,className:"text-primary mb-6"})}),o.jsx("p",{className:"text-[10px] font-bold tracking-[0.3em] uppercase text-muted-foreground mb-3",children:e.label}),o.jsx("p",{className:"text-base font-medium text-foreground leading-snug",children:e.value})]})},t))})]})}),o.jsx("section",{className:"section-padding bg-card/30",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-[10px] font-bold tracking-[0.4em] uppercase text-center mb-4",children:"Why Seema"}),o.jsx("h2",{className:"font-heading text-4xl md:text-6xl uppercase tracking-tight text-center leading-[0.95] mb-6",children:"What Sets Her Apart"}),o.jsxs("p",{className:"text-muted-foreground text-sm text-center max-w-2xl mx-auto mb-16",children:["This is not another AI talk. No tool demos. No prompt engineering walkthroughs. No recycled trend decks. Seema speaks about ",o.jsx("span",{className:"text-primary font-semibold",children:"operating model redesign"}),", ",o.jsx("span",{className:"text-primary font-semibold",children:"leverage"}),", and ",o.jsx("span",{className:"text-primary font-semibold",children:"structural advantage"}),"."]})]}),o.jsx("div",{className:"grid sm:grid-cols-2 gap-5 mb-14",children:[{num:"01",text:"Proven expertise as CEO, strategist, and advisor to scaling companies â $100M in collective revenue"},{num:"02",text:"Makes AI simple, actionable, and inspiring for non-technical leaders"},{num:"03",text:"Dynamic, engaging style connecting across diverse audiences â from boardrooms to ballrooms"},{num:"04",text:"Focus on responsible AI, ethics, and societal impact â not hype"}].map((e,t)=>o.jsx(C,{delay:t*.08,children:o.jsxs(G.div,{className:"relative border border-border p-8 h-full bg-background hover:border-primary/40 transition-all group overflow-hidden",whileHover:{y:-5},transition:{duration:.3,ease:"easeOut"},children:[o.jsx("div",{className:"absolute top-0 left-0 w-full h-[2px] bg-gradient-to-r from-primary/40 via-primary to-primary/40"}),o.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(110deg,transparent_25%,rgba(10,240,253,0.05)_50%,transparent_75%)] bg-[length:200%_100%] opacity-0 group-hover:opacity-100 animate-shimmer transition-opacity duration-300"}),o.jsx("span",{className:"text-primary text-2xl font-heading font-bold tracking-wider mb-5 block relative z-10",children:e.num}),o.jsx("p",{className:"text-muted-foreground text-sm md:text-base leading-relaxed relative z-10",children:e.text})]})},t))})]})}),o.jsx("section",{className:"section-padding",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-6xl",children:[o.jsx(C,{children:o.jsxs("div",{className:"flex flex-col md:flex-row md:items-end justify-between gap-6 mb-16",children:[o.jsxs("div",{className:"max-w-2xl",children:[o.jsx("p",{className:"text-primary text-[10px] font-bold tracking-[0.4em] uppercase mb-4",children:"Signature Keynote"}),o.jsxs("h2",{className:"font-heading text-3xl md:text-5xl lg:text-6xl uppercase tracking-tight leading-[0.95]",children:["The Great Business",o.jsx("br",{}),o.jsx("span",{className:"text-primary",children:"Rewiringâ¢"})]})]}),o.jsxs("p",{className:"text-xs uppercase tracking-[0.25em] text-muted-foreground md:text-right max-w-xs",children:["Three delivery tracks",o.jsx("br",{}),"optimized for your audience"]})]})}),o.jsx("div",{className:"grid md:grid-cols-3 border-t border-l border-border",children:W5.map((e,t)=>o.jsx(C,{delay:t*.08,children:o.jsxs(G.div,{className:"border-r border-b border-border p-10 h-full group hover:bg-card/40 transition-colors flex flex-col",whileHover:{y:-6},transition:{duration:.3,ease:"easeOut"},children:[o.jsxs("span",{className:"text-primary font-mono text-xs tracking-widest mb-10 block",children:[e.num," â TRACK"]}),o.jsx("h3",{className:"font-heading text-lg md:text-xl uppercase tracking-tight mb-5 leading-tight",children:e.title.replace("The Great Business Rewiringâ¢: ","")}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-8 flex-1",children:e.desc}),o.jsxs("div",{className:"pt-5 border-t border-border/60",children:[o.jsx("p",{className:"text-[10px] font-bold tracking-[0.25em] uppercase text-primary mb-2",children:"For"}),o.jsx("p",{className:"text-xs text-foreground leading-relaxed",children:e.for})]}),o.jsx("div",{className:"w-8 h-[1px] bg-primary mt-6 group-hover:w-full transition-all duration-500"})]})},t))}),o.jsx(C,{delay:.3,children:o.jsxs(G.div,{className:"mt-8 border border-primary/40 bg-card/30 p-8 md:p-10 relative overflow-hidden group hover:bg-card/50 transition-colors",whileHover:{y:-4},transition:{duration:.3,ease:"easeOut"},children:[o.jsx("div",{className:"absolute top-0 left-0 w-full h-[2px] bg-gradient-to-r from-transparent via-primary to-transparent opacity-60 group-hover:opacity-100 transition-opacity"}),o.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(110deg,transparent_25%,rgba(10,240,253,0.04)_50%,transparent_75%)] bg-[length:200%_100%] opacity-0 group-hover:opacity-100 animate-shimmer transition-opacity duration-300"}),o.jsxs("div",{className:"flex flex-col md:flex-row md:items-start gap-6 md:gap-10 relative z-10",children:[o.jsx("div",{className:"shrink-0",children:o.jsx("span",{className:"inline-flex items-center gap-2 border border-primary/40 px-3 py-1.5 text-[10px] font-bold tracking-[0.3em] uppercase text-primary",children:"Add-On Option"})}),o.jsxs("div",{className:"flex-1",children:[o.jsx("h3",{className:"font-heading text-xl md:text-2xl uppercase tracking-tight mb-4",children:"Keynote + Workshop Option"}),o.jsx("p",{className:"text-sm md:text-base text-muted-foreground leading-relaxed max-w-4xl",children:"After the keynote, Seema has customized workshops to take the concept discussed and make it into an interactive session for attendees. This workshop reduces the fear and uncertainty with AI and begins to get the minds of anyone participating to think of the technology as a means to an end â to solve real business problems, leverage automation for efficiencies, and leverage intelligence for innovation in ways that were once not possible."})]})]})]})})]})}),o.jsxs("section",{className:"py-10 md:py-14 border-y border-border relative overflow-hidden",children:[o.jsx(G.div,{className:"absolute inset-0 bg-gradient-to-r from-primary/[0.03] via-trans
246parent to-primary/[0.03]",animate:{backgroundPosition:["0% 50%","100% 50%","0% 50%"]},transition:{duration:12,repeat:1/0,ease:"linear"},style:{backgroundSize:"200% 100%"}}),o.jsx("div",{className:"container mx-auto px-6 max-w-6xl relative z-10",children:o.jsx(C,{children:o.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-8 md:gap-12",children:[o.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[o.jsx("div",{className:"w-[3px] h-10 bg-primary rounded-full"}),o.jsxs("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary leading-tight",children:["The Truth",o.jsx("br",{}),"About AI"]})]}),o.jsxs("div",{className:"flex-1 text-center md:text-left",children:[o.jsxs("h2",{className:"font-heading text-xl md:text-2xl lg:text-3xl uppercase tracking-tight leading-[0.95] mb-3",children:["AI Won't Disrupt Your Business.",o.jsx("br",{}),o.jsx("span",{className:"text-primary",children:"Incremental Thinking Will."})]}),o.jsxs("p",{className:"text-muted-foreground text-sm md:text-base leading-relaxed",children:["This isn't an either/or moment. It's a ",o.jsxs("span",{className:"text-foreground font-semibold",children:["yesâand ",o.jsx("span",{className:"text-primary font-semibold",children:"redesign"})]})," moment."]})]}),o.jsxs(G.p,{className:"font-heading text-sm uppercase tracking-[0.3em] text-muted-foreground shrink-0 text-right leading-tight",initial:{opacity:0}
246,whileInView:{opacity:1},viewport:{once:!0},transition:{delay:.4,duration:.6},children:["â Seema",o.jsx("br",{}),"Alexander"]})]})})})]}),o.jsx("section",{className:"section-padding",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-6xl",children:[o.jsx(C,{children:o.jsxs("div",{className:"flex flex-col md:flex-row md:items-end justify-between gap-6 mb-16",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-primary text-[10px] font-bold tracking-[0.4em] uppercase mb-4",children:"Programs"}),o.jsx("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight leading-[0.95]",children:"Keynotes & Workshops"})]}),o.jsx("p",{className:"text-xs uppercase tracking-[0.25em] text-muted-foreground max-w-sm",children:"Every program tailored to industry, audience, and business outcome. From 90 mins to multi-day."})]})}),o.jsx(C,{children:o.jsx("div",{className:"mb-10 overflow-hidden aspect-[21/9] border border-border",children:o.jsx("img",{src:v5,alt:"Seema Alexander speaking at WACIF Cultivate Summit",className:"w-full h-full object-cover grayscale animate-slow-pan"})})}),o.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4",children:H5.map((e,t)=>o.jsx(C,{delay:t*.06,children:o.jsxs(G.div,{className:"border border-border p-8 h-full hover:border-primary/40 transition-colors bg-card/40 flex flex-col group",whileHover:{y:-8,scale:1.01},transition:{duration:.3,ease:"easeOut"},children:[o.jsxs("span",{className:"text-primary font-mono text-[10px] tracking-widest mb-6 block",children:["0",t+1]}),o.jsx("h3",{className:"font-heading text-base md:text-lg uppercase tracking-tight mb-4 text-foreground",children:e.title}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-5",children:e.desc}),o.jsxs("div",{className:"pt-4 border-t border-border/60 mt-auto",children:[o.jsx("p",{className:"text-[10px] font-bold tracking-[0.25em] uppercase text-primary mb-1.5",children:"Perfect For"}),o.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:e.perfect})]})]})},t))})]})}),o.jsx("section",{className:"section-padding bg-card/40",children:o.jsx("div",{className:"container mx-auto px-6 max-w-6xl",children:o.jsxs("div",{className:"grid lg:grid-cols-2 gap-16",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-[10px] font-bold tracking-[0.4em] uppercase mb-4",children:"Outcomes"}),o.jsxs("h2",{className:"font-heading text-3xl md:text-4xl uppercase tracking-tight leading-[0.95] mb-10",children:["What Your Audience",o.jsx("br",{}),"Leaves With"]}),o.jsx("div",{children:K5.map((e,t)=>o.jsxs(G.div,{className:"flex items-start gap-4 py-4 border-b border-border",initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:t*.08,duration:.4,ease:"easeOut"},children:[o.jsx(Ho,{size:14,className:"text-primary shrink-0 mt-1"}),o.jsx("p",{className:"text-sm md:text-base text-foreground",children:e})]},t))})]}),o.jsxs(C,{delay:.15,children:[o.jsx("p",{className:"text-primary text-[10px] font-bold tracking-[0.4em] uppercase mb-4",children:"Track Record"}),o.jsx("h2",{className:"font-heading text-3xl md:text-4xl uppercase tracking-tight leading-[0.95] mb-10",children:"Credentials"}),o.jsx("div",{children:q5.map((e,t)=>o.jsxs(G.div,{className:"flex items-start gap-4 py-4 border-b border-border",initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:t*.08,duration:.4,ease:"easeOut"},children:[o.jsxs("span",{className:"text-primary font-mono text-[10px] tracking-widest shrink-0 mt-1 w-6",children:["0",t+1]}),o.jsx("p",{className:"text-sm md:text-base text-foreground",children:typeof e=="string"&&e.includes("Disruptive AI")?o.jsxs(o.Fragment,{children:[e.split("Disruptive AI")[0],o.jsx("a",{href:"https://www.getdisruptive.ai",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Disruptive AI"}),e.split("Disruptive AI")[1]]}):e})]},t))})]})]})})}),o.jsx("section",{className:"section-padding",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-6xl",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-[10px] font-bold tracking-[0.4em] uppercase text-center mb-4",children:"What Leaders Say"}),o.jsx("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight text-center leading-[0.95] mb-16",children:"The Room After Seema Speaks"})]}),o.jsx("div",{className:"grid md:grid-cols-3 gap-4 mb-6",children:r0.map(e=>{const t=n0[e];return o.jsx(C,{delay:e*.05,children:o.jsxs(G.div,{className:"p-8 border border-border bg-card/40 h-full flex flex-col",whileHover:{y:-6},transition:{duration:.3,ease:"easeOut"},children:[o.jsx(Va,{className:"text-primary mb-6",size:22}),o.jsxs("p",{className:"text-sm text-foreground leading-relaxed flex-1 mb-8 italic",children:['"',t.quote,'"']}),o.jsxs("div",{className:"flex items-center gap-4 pt-5 border-t border-border",children:[t.image&&o.jsx("img",{src:t.image,alt:t.name,className:"w-11 h-11 rounded-full object-cover grayscale"}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-semibold",children:t.name}),o.jsx("p",{className:"text-[11px] text-primary tracking-wide",children:t.role})]})]})]})},e)})}),o.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4",children:n0.filter((e,t)=>
246!r0.includes(t)).map((e,t)=>o.jsx(C,{delay:t*.04,children:o.jsxs(G.div,{className:"p-6 border border-border/60 bg-background h-full flex flex-col",whileHover:{y:-5,borderColor:"rgba(10,240,253,0.25)"},transition:{duration:.3,ease:"easeOut"},children:[o.jsxs("p",{className:"text-xs text-muted-foreground leading-relaxed flex-1 mb-5",children:['"',e.quote,'"']}),o.jsxs("div",{className:"flex items-center gap-3 pt-3 border-t border-border/60",children:[e.image?o.jsx("img",{src:e.image,alt:e.name,className:"w-8 h-8 rounded-full object-cover grayscale"}):o.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/20 flex items-center justify-center text-primary text-[10px] font-bold",children:e.name.charAt(0)}),o.jsxs("div",{children:[o.jsx("p",{className:"text-xs font-medium",children:e.name}),o.jsx("p",{className:"text-[10px] text-muted-foreground",children:e.role})]})]})]})},t))})]})}),o.jsx("section",{className:"py-8",children:o.jsx("div",{className:"container mx-auto px-6",children:o.jsx("div",{className:"grid grid-cols-3 gap-2",children:[wg,Hu,pA].map((e,t)=>o.jsx(C,{delay:t*.08,children:o.jsx(G.div,{className:"overflow-hidden aspect-video group cursor-pointer border border-border",whileHover:{scale:1.02},transition:{duration:.4,ease:"easeOut"},children:o.jsx(G.img,{src:e,alt:"Seema Alexander speaking",className:"w-full h-full object-cover grayscale",whileHover:{scale:1.08},transition:{duration:.7,ease:"easeOut"}})})},t))})})}),o.jsx("section",{className:"section-padding",children:o.jsx("div",{className:"container mx-auto px-6 max-w-6xl",children:o.jsxs("div",{className:"grid lg:grid-cols-5 border border-border",children:[o.jsxs("div",{className:"lg:col-span-3 p-10 md:p-14 bg-background",children:[o.jsx("p",{className:"text-primary text-[10px] font-bold tracking-[0.4em] uppercase mb-6",children:"Book Seema"}),o.jsx("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight leading-[0.95] mb-6",children:"Bring The Great Business Rewiring⢠To Your Stage"}),o.jsx("p",{className:"text-muted-foreground text-sm md:text-base leading-relaxed mb-10 max-w-lg",children:"Corporate conferences, founder summits, boards, private equity events, industry associations, and executive briefing programs. Custom-scoped to your audience."}),o.jsxs("div",{className:"flex flex-wrap gap-4 items-center",children:[o.jsxs(ae,{to:"/contact",className:"bg-primary text-primary-foreground px-10 py-5 text-[11px] font-bold tracking-[0.25em] uppercase hover:bg-foreground transition-colors inline-flex items-center gap-2",children:["Check Availability ",o.jsx(re,{size:14})]}),o.jsx("a",{href:"/media-kit",className:"text-[11px] font-bold tracking-[0.25em] uppercase text-muted-foreground hover:text-primary transition-colors",children:"Download Media Kit â"})]})]}),o.jsxs("div",{className:"lg:col-span-2 p-10 md:p-14 bg-primary text-primary-foreground flex flex-col justify-between relative overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(110deg,transparent_30%,rgba(255,255,255,0.12)_50%,transparent_70%)] bg-[length:200%_100%] animate-shimmer"}),o.jsxs("div",{className:"relative z-10",children:[o.jsx("p",{className:"text-[10px] font-bold tracking-[0.4em] uppercase mb-8 opacity-80",children:"Investment"}),o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{className:"border-b border-primary-foreground/20 pb-4",children:[o.jsx("p",{className:"text-[10px] uppercase tracking-[0.25em] opacity-70 mb-2",children:"Keynote"}),o.jsx("p",{className:"font-heading text-3xl font-bold",children:"$12,500+"})]}),o.jsxs("div",{className:"border-b border-primary-foreground/20 pb-4",children:[o.jsx("p",{className:"text-[10px] uppercase tracking-[0.25em] opacity-70 mb-2",children:"Workshop"}),o.jsx("p",{className:"font-heading text-3xl font-bold",children:"$15,000+"})]}),o.jsxs("div",{children:[o.jsx("p",{className:"text-[10px] uppercase tracking-[0.25em] opacity-70 mb-2",children:"Multi-Day"}),o.jsx("p",{className:"font-heading text-3xl font-bold",children:"On Request"})]})]})]}),o.jsx("p",{className:"text-[10px] uppercase tracking-[0.25em] opacity-70 mt-10 relative z-10",children:"Travel & production billed separately"})]})]})})})]}),J5="/assets/contact-bg-BlntZkWs.jpg";function Q5(e,t,n,r){function s(i){return i instanceof n?i:new n(function(a){a(i)})}
246return new(n||(n=Promise))(function(i,a){function l(d){try{u(r.next(d))}catch(h){a(h)}}function c(d){try{u(r.throw(d))}catch(h){a(h)}}function u(d){d.done?i(d.value):s(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})}const X5=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Sg extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class Z5 extends Sg{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class s0 extends Sg{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class i0 extends Sg{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var op;(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"})(op||(op={}));class e${constructor(t,{headers:n={},customFetch:r,region:s=op.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=X5(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return Q5(this,arguments,void 0,function*(n,r={}){var s;let i,a;try{const{headers:l,method:c,body:u,signal:d,timeout:h}=r;let f={},{region:p}=r;p||(p=this.region);const x=new URL(`${this.url}/${n}`);p&&p!=="any"&&(f["x-region"]=p,x.searchParams.set("forceFunctionRegion",p));let y;const b=!!l&&Object.keys(l).some(j=>j.toLowerCase()==="content-type");u&&!b?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(f["Content-Type"]="application/octet-stream",y=u):typeof u=="string"?(f["Content-Type"]="text/plain",y=u):typeof FormData<"u"&&u instanceof FormData?y=u:(f["Content-Type"]="application/json",y=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?y=JSON.stringify(u):y=u;let g=d;h&&(a=new AbortController,i=setTimeout(()=>a.abort(),h),d?(g=a.signal,d.addEventListener("abort",()=>a.abort())):g=a.signal);const m=yield this.fetch(x.toString(),{method:c||"POST",headers:Object.assign(Object.assign(Object.assign({},f),this.headers),l),body:y,signal:g}).catch(j=>{throw new Z5(j)}),v=m.headers.get("x-relay-error");if(v&&v==="true")throw new s0(m);if(!m.ok)throw new i0(m);let k=((s=m.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),S;return k==="application/json"?S=yield m.json():k==="application/octet-stream"||k==="application/pdf"?S=yield m.blob():k==="text/event-stream"?S=m:k==="multipart/form-data"?S=yield m.formData():S=yield m.text(),{data:S,error:null,response:m}}catch(l){return{data:null,error:l,response:l instanceof i0||l instanceof s0?l.context:void 0}}finally{i&&clearTimeout(i)}})}}const mA=3,a0=e=>Math.min(1e3*2**e,3e4),t$=[520,503],gA=["GET","HEAD","OPTIONS"];var o0=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
246de=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function l0(e,t){return new Promise(n=>{if(t!=null&&t.aborted){n();return}const r=setTimeout(()=>{t==null||t.removeEventListener("abort",s),n()},e);function s(){clearTimeout(r),n()}t==null||t.addEventListener("abort",s)})}function n$(e,t,n,r){return!(!r||n>=mA||!gA.includes(e)||!t$.includes(t))}var r$=class{constructor(e){var t,n,r,s,i;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,this.shouldStripNulls=(r=e.shouldStripNulls)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(s=e.urlLengthLimit)!==null&&s!==void 0?s:8e3,this.retryEnabled=(i=e.retry)!==null&&i!==void 0?i:!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var n=this;if(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"),this.shouldStripNulls){const a=this.headers.get("Accept");a==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!a||a==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const r=this.fetch;let i=(async()=>{let a=0;for(;;){const u={};n.headers.forEach((h,f)=>{u[f]=h}),a>0&&(u["X-Retry-Count"]=String(a));let d;try{d=await r(n.url.toString(),{method:n.method,headers:u,body:JSON.stringify(n.body,(h,f)=>typeof f=="bigint"?f.toString():f),signal:n.signal})}catch(h){if((h==null?void 0:h.name)==="AbortError"||(h==null?void 0:h.code)==="ABORT_ERR"||!gA.includes(n.method))throw h;if(n.retryEnabled&&a<mA){const f=a0(a);a++,await l0(f,n.signal);continue}throw h}if(n$(n.method,d.status,a,n.retryEnabled)){var l,c;const h=(l=(c=d.headers)===null||c===void 0?void 0:c.get("Retry-After"))!==null&&l!==void 0?l:null,f=h!==null?Math.max(0,parseInt(h,10)||0)*1e3:a0(a);await d.text(),a++,await l0(f,n.signal);continue}return await n.processResponse(d)}})();return this.shouldThrowOnError||(i=i.catch(a=>{var l;let c="",u="",d="";const h=a==null?void 0:a.cause;if(h){var f,p,x,y;const m=(f=h==null?void 0:h.message)!==null&&f!==void 0?f:"",v=(p=h==null?void 0:h.code)!==null&&p!==void 0?p:"";c=`${(x=a==null?void 0:a.name)!==null&&x!==void 0?x:"FetchError"}: ${a==null?void 0:a.message}`,c+=` 247 248Caused by: ${(y=h==null?void 0:h.name)!==null&&y!==void 0?y:"Error"}: ${m}`,v&&(c+=` (${v})`),h!=null&&h.stack&&(c+=` 249${h.stack}`)}else{var b;c=(b=a==null?void 0:a.stack)!==null&&b!==void 0?b:""}const g=this.url.toString().length;return(a==null?void 0:a.name)==="AbortError"||(a==null?void 0:a.code)==="ABORT_ERR"?(d="",u="Request was aborted (timeout or manual cancellation)",g>this.urlLengthLimit&&(u+=`. Note: Your request URL is ${g} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((h==null?void 0:h.name)==="HeadersOverflowError"||(h==null?void 0:h.code)==="UND_ERR_HEADERS_OVERFLOW")&&(d="",u="HTTP headers exceeded server limits (typically 16KB)",g>this.urlLengthLimit&&(u+=`. Your request URL is ${g} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(l=a==null?void 0:a.name)!==null&&l!==void 0?l:"FetchError"}: ${a==null?void 0:a.message}`,details:c,hint:u,code:d},data:null,count:null,status:0,statusText:""}}
249)),i.then(e,t)}async processResponse(e){var t=this;let n=null,r=null,s=null,i=e.status,a=e.statusText;if(e.ok){var l,c;if(t.method!=="HEAD"){var u;const f=await e.text();if(f!=="")if(t.headers.get("Accept")==="text/csv")r=f;else if(t.headers.get("Accept")&&(!((u=t.headers.get("Accept"))===null||u===void 0)&&u.includes("application/vnd.pgrst.plan+text")))r=f;else try{r=JSON.parse(f)}catch{if(n={message:f},r=null,t.shouldThrowOnError)throw new o0({message:f,details:"",hint:"",code:""})}}const d=(l=t.headers.get("Prefer"))===null||l===void 0?void 0:l.match(/count=(exact|planned|estimated)/),h=(c=e.headers.get("content-range"))===null||c===void 0?void 0:c.split("/");d&&h&&h.length>1&&(s=parseInt(h[1])),t.isMaybeSingle&&Array.isArray(r)&&(r.length>1?(n={code:"PGRST116",details:`Results contain ${r.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},r=null,s=null,i=406,a="Not Acceptable"):r.length===1?r=r[0]:r=null)}else{const d=await e.text();try{n=JSON.parse(d),Array.isArray(n)&&e.status===404&&(r=[],n=null,i=200,a="OK")}catch{e.status===404&&d===""?(i=204,a="No Content"):n={message:d}}if(n&&t.shouldThrowOnError)throw new o0(n)}return{success:n===null,error:n,data:r,count:s,status:i,statusText:a}}returns(){return this}overrideTypes(){return this}},s$=class extends r${throwOnError(){return super.throwOnError()}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",a=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${a?`${a},`:""}${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.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:i="text"}={}){var a;const l=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,s?"wal":null].filter(Boolean).join("|"),c=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${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 c0=new RegExp("[,()]");var qs=class extends s${throwOnError(){return super.throwOnError()}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"&&c0.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"&&c0.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).filter(([t,n])=>
249n!==void 0).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}},i$=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:s=8e3,retry:i}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=s,this.retry=i}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 a=(e??"*").split("").map(u=>/\s/.test(u)&&!i?"":(u==='"'&&(i=!i),u)).join(""),{url:l,headers:c}=this.cloneRequestState();return l.searchParams.set("select",a),r&&c.append("Prefer",`count=${r}`),new qs({method:s,url:l,headers:c,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const s="POST",{url:i,headers:a}=this.cloneRequestState();if(t&&a.append("Prefer",`count=${t}`),n||a.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 qs({method:s,url:i,headers:a,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:s=!0}={}){var i;const a="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 qs({method:a,url:l,headers:c,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var n;const r="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new qs({method:r,url:s,headers:i,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new qs({method:n,url:r,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function Eo(e){"@babel/helpers - typeof";return Eo=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},Eo(e)}function a$(e,t){if(Eo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Eo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o$(e){var t=a$(e,"string");return Eo(t)=="symbol"?t:t+""}function l$(e,t,n){return(t=o$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u0(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 Pl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u0(Object(n),!0).forEach(function(r){l$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var c$=class yA{constructor(t,{headers:n={},schema:r,fetch:s,timeout:i,urlLengthLimit:a=8e3,retry:l}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=a;const c=s??globalThis.fetch;i!==void 0&&i>0?this.fetch=(u,d)=>{const h=new AbortController,f=setTimeout(()=>h.abort(),i),p=d==null?void 0:d.signal;if(p){if(p.aborted)return clearTimeout(f),c(u,d);const x=()=>{clearTimeout(f),h.abort()};return p.addEventListener("abort",x,{once:!0}),c(u,Pl(Pl({},d),{},{signal:h.signal})).finally(()=>{clearTimeout(f),p.removeEventListener("abort",x)})}return c(u,Pl(Pl({},d),{},{signal:h.signal})).finally(()=>clearTimeout(f))}:this.fetch=c,this.retry=l}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new i$(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new yA(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){var a;let l;const c=new URL(`${this.url}/rpc/${t}`);let u;const d=p=>p!==null&&typeof p=="object"&&(!Array.isArray(p)||p.some(d)),h=r&&Object.values(n).some(d);h?(l="POST",u=n):r||s?(l=r?"HEAD":"GET",Object.entries(n).filter(([p,x])=>x!==void 0).map(([p,x])=>[p,Array.isArray(x)?`{${x.join(",")}}`:`${x}
249`]).forEach(([p,x])=>{c.searchParams.append(p,x)})):(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 qs({method:l,url:c,headers:f,schema:this.schemaName,body:u,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class u${constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const n=globalThis;if(typeof globalThis<"u"&&typeof n.WebSocket<"u")return{type:"native",wsConstructor:n.WebSocket};const r=typeof global<"u"?global:void 0;if(r&&typeof r.WebSocket<"u")return{type:"native",wsConstructor:r.WebSocket};if(typeof globalThis<"u"&&typeof n.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"&&n.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 s=globalThis.process;if(s){const i=s.versions;if(i&&i.node)return{type:"unsupported",error:"Node.js detected but native WebSocket not found.",workaround:"Ensure you are running Node.js 22+ or provide a WebSocket implementation via the transport option."}}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.wsConstructor)return t.wsConstructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=` 250 251Suggested solution: ${t.workaround}`),new Error(n)}static isWebSocketSupported(){try{return this.detectEnvironment().type==="native"}catch{return!1}}}const d$="2.110.3",h$=`realtime-js/${d$}`,f$="1.0.0",xA="2.0.0",p$=xA,m$=1e4,g$=100,vr={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},vA={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},lp={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class y${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:{},a=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,a)}_encodeUserBroadcastPush(t,n,r){var s,i;const a=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(a.length>255)throw new Error(`topic length ${a.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+a.length+u.length+h.length,p=new ArrayBuffer(this.HEADER_LENGTH+f);let x=new DataView(p),y=0;x.setUint8(y++,this.KINDS.userBroadcastPush),x.setUint8(y++,c.length),x.setUint8(y++,l.length),x.setUint8(y++,a.length),x.setUint8(y++,u.length),x.setUint8(y++,h.length),x.setUint8(y++,n),Array.from(c,g=>x.setUint8(y++,g.charCodeAt(0))),Array.from(l,g=>x.setUint8(y++,g.charCodeAt(0))),Array.from(a,g=>x.setUint8(y++,g.charCodeAt(0))),Array.from(u,g=>x.setUint8(y++,g.charCodeAt(0))),Array.from(h,g=>x.setUint8(y++,g.charCodeAt(0)));var b=new Uint8Array(p.byteLength+r.byteLength);return b.set(new Uint8Array(p),0),b.set(new Uint8Array(r),p.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,a,l,c]=r;
251return n({join_ref:s,ref:i,topic:a,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),a=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+a));c=c+a;const f=t.slice(c,t.byteLength),p=l===this.JSON_ENCODING?JSON.parse(r.decode(f)):f,x={type:this.BROADCAST_EVENT,event:d,payload:p};return a>0&&(x.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:x}}_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)))}}var de;(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"})(de||(de={}));const d0=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((i,a)=>(i[a]=x$(a,e,t,s),i),{}):{}},x$=(e,t,n,r)=>{const s=t.find(l=>
vendor: 5,523 bytes, line 251
251l.name===e),i=s==null?void 0:s.type,a=n[e];return i&&!r.includes(i)?bA(i,a):cp(a)},bA=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return k$(t,n)}switch(e){case de.bool:return v$(t);case de.float4:case de.float8:case de.int2:case de.int4:case de.int8:case de.numeric:case de.oid:return b$(t);case de.json:case de.jsonb:return w$(t);case de.timestamp:return S$(t);case de.abstime:case de.date:case de.daterange:case de.int4range:case de.int8range:case de.money:case de.reltime:case de.text:case de.time:case de.timestamptz:case de.timetz:case de.tsrange:case de.tstzrange:return cp(t);default:return cp(t)}},cp=e=>e,v$=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},b$=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},w$=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},k$=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const a=e.slice(1,n);try{i=JSON.parse("["+a+"]")}catch{i=a?a.split(","):[]}return i.map(l=>bA(t,l))}return e},S$=e=>typeof e=="string"?e.replace(" ","T"):e,wA=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};var Ga=e=>typeof e=="function"?e:function(){return e},j$=typeof self<"u"?self:null,Gs=typeof window<"u"?window:null,bn=j$||Gs||globalThis,A$="2.0.0",E$=1e4,T$=1e3,jn={connecting:0,open:1,closing:2,closed:3},ut={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Un={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},up={longpoll:"longpoll",websocket:"websocket"},N$={complete:4},dp="base64url.bearer.phx.",Rl=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),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()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},kA=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},C$=class{constructor(e,t,n){this.state=ut.closed,this.topic=e,this.params=Ga(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Rl(this,Un.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new kA(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=ut.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=ut.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=ut.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=ut.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new Rl(this,Un.leave,Ga({}),this.timeout).send(),this.state=ut.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Un.reply,(r,s)=>{this.trigger(this.replyEventName(s),r)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}
vendor: 5,263 bytes, line 251
251teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=ut.closed,this.bindings=[]}onClose(e){this.on(Un.close,e)}onError(e){return this.on(Un.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Rl(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=ut.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Un.close,"leave")},n=new Rl(this,Un.leave,Ga({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}filterBindings(e,t,n){return!0}isMember(e,t,n,r){return this.topic!==e?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=ut.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let s=this.onMessage(e,t,n,r);if(t&&!s)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let i=this.bindings.filter(a=>a.event===e&&this.filterBindings(a,t,n));for(let a=0;a<i.length;a++)i[a].callback(s,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===ut.closed}isErrored(){return this.state===ut.errored}isJoined(){return this.state===ut.joined}isJoining(){return this.state===ut.joining}isLeaving(){return this.state===ut.leaving}},Zc=class{static request(e,t,n,r,s,i,a){if(bn.XDomainRequest){let l=new bn.XDomainRequest;return this.xdomainRequest(l,e,t,r,s,i,a)}else if(bn.XMLHttpRequest){let l=new bn.XMLHttpRequest;return this.xhrRequest(l,e,t,n,r,s,i,a)}else{if(bn.fetch&&bn.AbortController)return this.fetchRequest(e,t,n,r,s,i,a);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,n,r,s,i,a){let l={method:e,headers:n,body:r},c=null;return s&&(c=new AbortController,setTimeout(()=>c.abort(),s),l.signal=c.signal),bn.fetch(t,l).then(u=>u.text()).then(u=>this.parseJSON(u)).then(u=>a&&a(u)).catch(u=>{u.name==="AbortError"&&i?i():a&&a(null)}),c}static xdomainRequest(e,t,n,r,s,i,a){return e.timeout=s,e.open(t,n),e.onload=()=>{let l=this.parseJSON(e.responseText);a&&a(l)},i&&(e.ontimeout=i),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,s,i,a,l){e.open(t,n,!0),e.timeout=i;for(let[c,u]of Object.entries(r))e.setRequestHeader(c,u);return e.onerror=()=>l&&l(null),e.onreadystatechange=()=>{if(e.readyState===N$.complete&&l){let c=this.parseJSON(e.responseText);l(c)}},a&&(e.ontimeout=a),e.send(s),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let s=t?`${t}[${r}]`:r,i=e[r];typeof i=="object"?n.push(this.serialize(i,s)):n.push(encodeURIComponent(s)+"="+encodeURIComponent(i))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},_$=e=>{let t="",n=new Uint8Array(e),r=n.byteLength;for(let s=0;s<r;s++)t+=String.fromCharCode(n[s]);return btoa(t)},zs=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(dp)&&(this.authToken=atob(t[1].slice(dp.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=jn.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+up.websocket),"$1/"+up.longpoll)}endpointURL(){return Zc.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=jn.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===jn.open||this.readyState===jn.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:n,token:r,messages:s}=t;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=r}else n=0;switch(n){case 200:s.forEach(i=>{setTimeout(()=>this.onmessage({data:i}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=jn.open,this.onopen({}),this.poll();break;
251case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(e){typeof e!="string"&&(e=_$(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(` 252`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let s of this.reqs)s.abort();this.readyState=jn.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,s){let i,a=()=>{this.reqs.delete(i),r()};i=Zc.request(e,this.endpointURL(),t,n,this.timeout,a,l=>{this.reqs.delete(i),this.isActive()&&s(l)}),this.reqs.add(i)}},I$=class Ca{constructor(t,n={}){let r=n.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,s=>{let{onJoin:i,onLeave:a,onSync:l}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Ca.syncState(this.state,s,i,a),this.pendingDiffs.forEach(c=>{this.state=Ca.syncDiff(this.state,c,i,a)}),this.pendingDiffs=[],l()}),this.channel.on(r.diff,s=>{let{onJoin:i,onLeave:a,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Ca.syncDiff(this.state,s,i,a),l())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return Ca.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,n,r,s){let i=this.clone(t),a={},l={};return this.map(i,(c,u)=>{n[c]||(l[c]=u)}),this.map(n,(c,u)=>{let d=i[c];if(d){let h=u.metas.map(y=>y.phx_ref),f=d.metas.map(y=>y.phx_ref),p=u.metas.filter(y=>f.indexOf(y.phx_ref)<0),x=d.metas.filter(y=>h.indexOf(y.phx_ref)<0);p.length>0&&(a[c]=u,a[c].metas=p),x.length>0&&(l[c]=this.clone(d),l[c].metas=x)}else a[c]=u}),this.syncDiff(i,{joins:a,leaves:l},r,s)}static syncDiff(t,n,r,s){let{joins:i,leaves:a}=this.clone(n);return r||(r=function(){}),s||(s=function(){}),this.map(i,(l,c)=>{let u=t[l];if(t[l]=this.clone(c),u){let d=t[l].metas.map(f=>f.phx_ref),h=u.metas.filter(f=>d.indexOf(f.phx_ref)<0);t[l].metas.unshift(...h)}r(l,u,c)}),this.map(a,(l,c)=>{let u=t[l];if(!u)return;let d=c.metas.map(h=>h.phx_ref);u.metas=u.metas.filter(h=>d.indexOf(h.phx_ref)<0),s(l,u,c),u.metas.length===0&&delete t[l]}),t}static list(t,n){return n||(n=function(r,s){return s}),this.map(t,(r,s)=>n(r,s))}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static clone(t){return JSON.parse(JSON.stringify(t))}},Ol={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,s,i,a]=JSON.parse(e);return t({join_ref:n,ref:r,topic:s,event:i,payload:a})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:s,payload:i}=e,a=this.META_LENGTH+t.length+n.length+s.length+r.length,l=new ArrayBuffer(this.HEADER_LENGTH+a),c=new DataView(l),u=0;c.setUint8(u++,this.KINDS.push),c.setUint8(u++,t.length),c.setUint8(u++,n.length),c.setUint8(u++,s.length),c.setUint8(u++,r.length),Array.from(t,h=>c.setUint8(u++,h.charCodeAt(0))),Array.from(n,h=>c.setUint8(u++,h.charCodeAt(0))),Array.from(s,h=>c.setUint8(u++,h.charCodeAt(0))),Array.from(r,h=>c.setUint8(u++,h.charCodeAt(0)));var d=new Uint8Array(l.byteLength+i.byteLength);return d.set(new Uint8Array(l),0),d.set(new Uint8Array(i),l.byteLength),d.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}}
vendor: 8,485 bytes, line 252
252,decodePush(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),a=this.HEADER_LENGTH+this.META_LENGTH-1,l=n.decode(e.slice(a,a+r));a=a+r;let c=n.decode(e.slice(a,a+s));a=a+s;let u=n.decode(e.slice(a,a+i));a=a+i;let d=e.slice(a,e.byteLength);return{join_ref:l,ref:null,topic:c,event:u,payload:d}},decodeReply(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),a=t.getUint8(4),l=this.HEADER_LENGTH+this.META_LENGTH,c=n.decode(e.slice(l,l+r));l=l+r;let u=n.decode(e.slice(l,l+s));l=l+s;let d=n.decode(e.slice(l,l+i));l=l+i;let h=n.decode(e.slice(l,l+a));l=l+a;let f=e.slice(l,e.byteLength),p={status:h,response:f};return{join_ref:c,ref:u,topic:d,event:Un.reply,payload:p}},decodeBroadcast(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=this.HEADER_LENGTH+2,a=n.decode(e.slice(i,i+r));i=i+r;let l=n.decode(e.slice(i,i+s));i=i+s;let c=e.slice(i,e.byteLength);return{join_ref:null,ref:null,topic:a,event:l,payload:c}}},P$=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||E$,this.transport=t.transport||bn.WebSocket||zs,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let n=null;try{n=bn&&bn.sessionStorage}catch{}this.sessionStore=t.sessionStorage||n,this.establishedConnections=0,this.defaultEncoder=Ol.encode.bind(Ol),this.defaultDecoder=Ol.decode.bind(Ol),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==zs?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;Gs&&Gs.addEventListener&&(Gs.addEventListener("pagehide",s=>{this.conn&&(this.disconnect(),r=this.connectClock)}),Gs.addEventListener("pageshow",s=>{r===this.connectClock&&(r=null,this.connect())}),Gs.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=s=>t.rejoinAfterMs?t.rejoinAfterMs(s):[1e3,2e3,5e3][s-1]||1e4,this.reconnectAfterMs=s=>t.reconnectAfterMs?t.reconnectAfterMs(s):[10,50,100,150,200,250,500,1e3,2e3][s-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(s,i,a)=>{console.log(`${s}: ${i}`,a)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Ga(t.params||{}),this.endPoint=`${e}/${up.websocket}`,this.vsn=t.vsn||A$,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new kA(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return zs}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=Zc.appendParams(Zc.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Ga(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==zs?this.connectWithFallback(zs,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let r=this.onMessage(s=>{s.ref===t&&(this.off([r]),e(Date.now()-n))});return!0}transportName(e){switch(e){case zs:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${dp}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,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)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,r=!0,s,i,a=this.transportName(e),l=c=>{this.log("transport",`falling back to ${a}...`,c),this.off([s,i]),r=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${a}`))return l("memorized");this.fallbackTimer=setTimeout(l,t),i=this.onError(c=>{this.log("transport","error",c),r&&!n&&(clearTimeout(this.fallbackTimer),l(c))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!r){let c=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${c}`,"true"),this.log("transport",`established ${c} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(l,t),this.ping(c=>{this.log("transport","connected to primary after",c),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),T$,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();const r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,n||""):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,n=1){if(n===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n)}waitForSocketClosed(e,t,n=1){if(n===5||e.readyState===jn.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",e,t,n),(t===this.transport||n>0)&&this.triggerChanError(e)}
vendor: 4,126 bytes, line 252
252triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(Un.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case jn.connecting:return"connecting";case jn.open:return"open";case jn.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([n])=>e.indexOf(n)===-1)}channel(e,t={}){let n=new C$(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:s,join_ref:i}=e;this.log("push",`${t} ${n} (${i}, ${s})`,r)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:n,event:r,payload:s,ref:i,join_ref:a}=t;if(i&&i===this.pendingHeartbeatRef){const l=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(s.status==="ok"?"ok":"error",l)}catch(c){this.log("error","error in heartbeat callback",c)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${s.status||""} ${n} ${r} ${i&&"("+i+")"||""}`.trim(),s);for(let l=0;l<this.channels.length;l++){const c=this.channels[l];c.isMember(n,r,s,a)&&c.trigger(r,s,i,a)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([n,r])=>{try{r(...t)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}leaveOpenTopic(e){let t=this.channels.find(n=>n.topic===e&&(n.isJoined()||n.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class Ya{constructor(t,n){const r=O$(n);this.presence=new I$(t.getChannel(),r),this.presence.onJoin((s,i,a)=>{const l=Ya.onJoinPayload(s,i,a);t.getChannel().trigger("presence",l)}),this.presence.onLeave((s,i,a)=>{const l=Ya.onLeavePayload(s,i,a);t.getChannel().trigger("presence",l)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Ya.transformState(this.presence.state)}static transformState(t){return t=R$(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return n[r]=uc(s),n},{})}static onJoinPayload(t,n,r){const s=h0(n),i=uc(r);return{event:"join",key:t,currentPresences:s,newPresences:i}}static onLeavePayload(t,n,r){const s=h0(n),i=uc(r);return{event:"leave",key:t,currentPresences:s,leftPresences:i}}}function uc(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function R$(e){return JSON.parse(JSON.stringify(e))}function O$(e){return(e==null?void 0:e.events)&&{events:e.events}}function h0(e){return e!=null&&e.metas?uc(e):[]}var f0;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(f0||(f0={}));class D${get state(){return this.presenceAdapter.state}constructor(t,n){this.channel=t,this.presenceAdapter=new Ya(this.channel.channelAdapter,n)}}function L$(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);
252if(e&&typeof e=="object"){const t=e;if(typeof t.code=="number"){const n=typeof t.reason=="string"&&t.reason?` (${t.reason})`:"";return new Error(`socket closed: ${t.code}${n}`,{cause:e})}return new Error("channel error: transport failure",{cause:e})}return new Error("channel error: connection lost")}class M${constructor(t,n,r){const s=$$(r);this.channel=t.getSocket().channel(n,s),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,n){return this.channel.on(t,n)}off(t,n){this.channel.off(t,n)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,n,r){let s;try{s=this.channel.push(t,n,r)}catch{throw new Error(`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>g$){const i=this.channel.pushBuffer.shift();i.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${i.event}`,i.payload())}return s}updateJoinPayload(t){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),t)}canPush(){return this.socket.isConnected()&&this.state===vr.joined}isJoined(){return this.state===vr.joined}isJoining(){return this.state===vr.joining}isClosed(){return this.state===vr.closed}isLeaving(){return this.state===vr.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function $$(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}const F$=/[,()"\\]/,B$=e=>F$.test(e)||e!==e.trim(),U$=e=>`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,p0=e=>{const t=e===null?"null":String(e);return B$(t)?U$(t):t},z$=e=>e===null?"null":String(e),V$=(e,t)=>{if(e==="in"){const n=Array.isArray(t)?t:[t];if(n.length===0)throw new Error("Realtime `in` filter requires at least one value.");return`in.(${Array.from(new Set(n)).map(s=>p0(s)).join(",")})`}return e==="is"?`is.${z$(t)}`:`${e}.${p0(t)}`};class W${constructor(){this.filters=[]}add(t,n,r,s=!1){const i=s?"not.":"";return this.filters.push(`${t}=${i}${V$(n,r)}`),this}eq(t,n){return this.add(t,"eq",n)}neq(t,n){return this.add(t,"neq",n)}gt(t,n){return this.add(t,"gt",n)}gte(t,n){return this.add(t,"gte",n)}lt(t,n){return this.add(t,"lt",n)}lte(t,n){return this.add(t,"lte",n)}in(t,n){return this.add(t,"in",n)}like(t,n){return this.add(t,"like",n)}ilike(t,n){return this.add(t,"ilike",n)}match(t,n){return this.add(t,"match",n)}imatch(t,n){return this.add(t,"imatch",n)}is(t,n){return this.add(t,"is",n)}isDistinct(t,n){return this.add(t,"isdistinct",n)}not(t,n,r){return this.add(t,n,r,!0)}build(){return this.filters.join(",")}toString(){return this.build()}}var m0;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(m0||(m0={}));var pi;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(pi||(pi={}));var zn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(zn||(zn={}));class Ja{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,n={config:{}},r){var s,i;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},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.channelAdapter=new M$(this.socket.socketAdapter,t,this.params),this.presence=new D$(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=wA(this.socket.socketAdapter.endPointURL()),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 new Error(`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.channelAdapter.isClosed()){const{config:{broadcast:a,presence:l,private:c}}=this.params,u=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(p=>p.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[pi.PRESENCE]&&this.bindings[pi.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,h={},f={broadcast:a,presence:Object.assign(Object.assign({},l),{enabled:d}),postgres_changes:u,private:c};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(p=>{t==null||t(zn.CHANNEL_ERROR,L$(p))}),this._onClose(()=>t==null?void 0:t(zn.CLOSED)),this.updateJoinPayload(Object.assign({config:f},h)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:p})=>{if(this.socket._isManualToken()||this.socket.setAuth(),p===void 0){t==null||t(zn.SUBSCRIBED);return}this._updatePostgresBindings(p,t)}
252).receive("error",p=>{this.state=vr.errored;const x=Object.values(p).join(", ")||"error";t==null||t(zn.CHANNEL_ERROR,new Error(x,{cause:p}))}).receive("timeout",()=>{t==null||t(zn.TIMED_OUT)})}return this}_updatePostgresBindings(t,n){var r;const s=this.bindings.postgres_changes,i=(r=s==null?void 0:s.length)!==null&&r!==void 0?r:0,a=[];for(let l=0;l<i;l++){const c=s[l],{filter:{event:u,schema:d,table:h,filter:f}}=c,p=t&&t[l];if(p&&p.event===u&&Ja.isFilterValueEqual(p.schema,d)&&Ja.isFilterValueEqual(p.table,h)&&Ja.isFilterValueEqual(p.filter,f))a.push(Object.assign(Object.assign({},c),{id:p.id}));else{this.unsubscribe(),this.state=vr.errored,n==null||n(zn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=a,this.state!=vr.errored&&n&&n(zn.SUBSCRIBED)}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){const s=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),i=t===pi.PRESENCE||t===pi.POSTGRES_CHANGES;if(s&&i)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,n,r)}async httpSend(t,n,r={}){var s;if(n==null)return Promise.reject(new Error("Payload is required for httpSend()"));const i=n instanceof ArrayBuffer||ArrayBuffer.isView(n),a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":i?"application/octet-stream":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l=new URL(this.broadcastEndpointURL);l.pathname+=`/${encodeURIComponent(this.subTopic)}/events/${encodeURIComponent(t)}`,this.private&&l.searchParams.set("private","true");const c={method:"POST",headers:a,body:i?n:JSON.stringify(n)},u=await this._fetchWithTimeout(l.toString(),c,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(u.status===202)return{success:!0};if(u.status===404)return Promise.reject(new Error("httpSend() requires Realtime server v2.97.0 or newer; the endpoint returned 404. Update your Supabase CLI to a recent version, or upgrade the Realtime server in your self-hosted setup. See https://github.com/supabase/supabase-js/blob/master/packages/core/realtime-js/migrations/httpsend-server-version.md"));let d=u.statusText;try{const h=await u.json();d=h.error||h.message||d}catch{}return Promise.reject(new Error(d))}async send(t,n={}){var r,s;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
252in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:a}=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:a,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 instanceof Error&&u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var a,l,c;const u=this.channelAdapter.push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(l=(a=this.params)===null||a===void 0?void 0:a.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.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),a=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),a}_on(t,n,r){const s=t.toLocaleLowerCase(),i=n==null?void 0:n.filter;(i instanceof W$||typeof i=="object"&&i!==null&&typeof i.build=="function")&&(n=Object.assign(Object.assign({},n),{filter:i.build()}));const a=this.channelAdapter.on(t,r),l={type:s,filter:n,callback:r,ref:a};return this.bindings[s]?this.bindings[s].push(l):this.bindings[s]=[l],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,n,r)=>{var s,i,a,l,c,u,d;const h=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(h,r))return!1;const f=(s=this.bindings[h])===null||s===void 0?void 0:s.find(p=>p.ref===t.ref);if(!f)return!0;if(["broadcast","presence","postgres_changes"].includes(h))if("id"in f){const p=f.id,x=(i=f.filter)===null||i===void 0?void 0:i.event;return p&&((a=n.ids)===null||a===void 0?void 0:a.includes(p))&&(x==="*"||(x==null?void 0:x.toLocaleLowerCase())===((l=n.data)===null||l===void 0?void 0:l.type.toLocaleLowerCase()))}else{const p=(u=(c=f==null?void 0:f.filter)===null||c===void 0?void 0:c.event)===null||u===void 0?void 0:u.toLocaleLowerCase();return p==="*"||p===((d=n==null?void 0:n.event)===null||d===void 0?void 0:d.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===h})}_notThisChannelEvent(t,n){const{close:r,error:s,leave:i,join:a}=vA;return n&&[r,s,i,a].includes(t)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,n,r)=>{if(typeof n=="object"&&"ids"in n){const s=n.data,{schema:i,table:a,commit_timestamp:l,type:c,errors:u}=s;return Object.assign(Object.assign({},{schema:i,table:a,commit_timestamp:l,eventType:c,new:{},old:{},errors:u}),this._getPayloadRecords(s))}return n})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in t.bindings)for(const r of t.bindings[n])this._on(r.type,r.filter,r.callback)}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=d0(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=d0(t.columns,t.old_record)),n}}class H${constructor(t,n){this.socket=new P$(t,n)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,n,r,s=1e4){return new Promise(i=>{setTimeout(()=>i("timeout"),s),this.socket.disconnect(()=>{t(),i("ok")},n,r)})}push(t){this.socket.push(t)}log(t,n,r){this.socket.log(t,n,r)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==lp.connecting}isDisconnecting(){return this.socket.connectionState()==lp.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const g0={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},K$=[1e3,2e3,5e3,1e4],q$=1e4;function G$(){const e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){var n;return(n=Array.from(e.keys())[t])!==null&&n!==void 0?n:null},removeItem(t){e.delete(t)},setItem(t,n){e.set(t,String(n))}}}function Y$(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return G$()}const J$=` 253 addEventListener("message", (e) => { 254 if (e.data.event === "start") { 255 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 256 } 257 });`;class Q${get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,n){var r;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
257,this.ref=0,this.serializer=new y$,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=i=>i?(...a)=>i(...a):(...a)=>fetch(...a),!(!((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;const s=this._initializeOptions(n);this.socketAdapter=new H$(t,s),this.httpEndpoint=wA(t),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const n=t.message;throw new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,n){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,n)}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return n==="ok"&&t.teardown(),n}async removeAllChannels(){const t=this.channels.map(async r=>{const s=await r.unsubscribe();return r.teardown(),s}),n=await Promise.all(t);return await this.disconnect(),n}log(t,n,r){this.socketAdapter.log(t,n,r)}connectionState(){return this.socketAdapter.connectionState()||lp.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new Ja(`realtime:${t}`,n,this);return this._cancelPendingDisconnect(),this.channels.push(i),i}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
257this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}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:h$};n&&s.updateJoinPayload(i),s.joinedOnce&&s.channelAdapter.isJoined()&&s.channelAdapter.push(vA.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)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(n,r)=>{n!=="disconnected"&&(n=="sent"&&this._setAuthSafely(),t&&t(n,r))}}_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.disconnect()},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)}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([J$],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_initializeOptions(t){var n,r,s,i,a,l,c,u,d,h,f,p;this.worker=(n=t==null?void 0:t.worker)!==null&&n!==void 0?n:!1,this.accessToken=(r=t==null?void 0:t.accessToken)!==null&&r!==void 0?r:null;const x={};x.timeout=(s=t==null?void 0:t.timeout)!==null&&s!==void 0?s:m$,x.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:g0.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(a=t==null?void 0:t.disconnectOnEmptyChannelsAfterMs)!==null&&a!==void 0?a:2*((l=t==null?void 0:t.heartbeatIntervalMs)!==null&&l!==void 0?l:g0.HEARTBEAT_INTERVAL),x.transport=(c=t==null?void 0:t.transport)!==null&&c!==void 0?c:u$.getWebSocketConstructor(),x.params=t==null?void 0:t.params,x.logger=t==null?void 0:t.logger,x.heartbeatCallback=this._wrapHeartbeatCallback(t==null?void 0:t.heartbeatCallback),x.sessionStorage=(u=t==null?void 0:t.sessionStorage)!==null&&u!==void 0?u:Y$(),x.reconnectAfterMs=(d=t==null?void 0:t.reconnectAfterMs)!==null&&d!==void 0?d:m=>K$[m-1]||q$;let y,b;const g=(h=t==null?void 0:t.vsn)!==null&&h!==void 0?h:p$;switch(g){case f$:y=(m,v)=>v(JSON.stringify(m)),b=(m,v)=>v(JSON.parse(m));break;case xA:y=this.serializer.encode.bind(this.serializer),b=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${x.vsn}`)}if(x.vsn=g,x.encode=(f=t==null?void 0:t.encode)!==null&&f!==void 0?f:y,x.decode=(p=t==null?void 0:t.decode)!==null&&p!==void 0?p:b,x.beforeReconnect=this._reconnectAuth.bind(this),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,x.params=Object.assign(Object.assign({},x.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl,x.autoSendHeartbeat=!this.worker}return x}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
257var To=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 X$(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 Z$(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 e3(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:a}){const l=X$(e.baseUrl,r,s),c=await Z$(e.auth),u=await t(l,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...c,...a},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 p=h?f:void 0,x=p==null?void 0:p.error;throw new To((x==null?void 0:x.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:x==null?void 0:x.type,icebergCode:x==null?void 0:x.code,details:p})}return{status:u.status,headers:u.headers,data:f}}}}function Dl(e){return e.join("�")}var t3=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Dl(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/${Dl(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Dl(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Dl(e.namespace)}`}),!0}catch(t){if(t instanceof To&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof To&&n.status===409)return;throw n}}};function Vs(e){return e.join("�")}var n3=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/${Vs(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/${Vs(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/${Vs(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/${Vs(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/${Vs(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/${Vs(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof To&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof To&&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=e3({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new t3(this.client,t),this.tableOps=new n3(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)}
257async 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)}};function No(e){"@babel/helpers - typeof";return No=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},No(e)}function s3(e,t){if(No(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(No(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function i3(e){var t=s3(e,"string");return No(t)=="symbol"?t:t+""}function a3(e,t,n){return(t=i3(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y0(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 H(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y0(Object(n),!0).forEach(function(r){a3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var qu=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function Gu(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var hp=class extends qu{constructor(e,t,n,r="storage"){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return H({},super.toJSON())}},SA=class extends qu{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function eu(e,t,n){const r=H({},e),s=t.toLowerCase();for(const i of Object.keys(r))i.toLowerCase()===s&&delete r[i];return r[s]=n,r}function o3(e){const t={};for(const[n,r]of Object.entries(e))t[n.toLowerCase()]=r;return t}const l3=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),c3=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)},fp=e=>{if(Array.isArray(e))return e.map(n=>fp(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]=fp(r)}),t},u3=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),x0=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error;if(typeof t.error=="object"&&t.error!==null){const n=t.error;if(typeof n.message=="string")return n.message}}return JSON.stringify(e)},d3=async(e,t,n,r)=>{if(e!==null&&typeof e=="object"&&"json"in e&&typeof e.json=="function"){const s=e;let i=parseInt(String(s.status),10);Number.isFinite(i)||(i=500),s.json().then(a=>{const l=(a==null?void 0:a.statusCode)||(a==null?void 0:a.code)||i+"";t(new hp(x0(a),i,l,r))}).catch(()=>{const a=i+"";t(new hp(s.statusText||`HTTP ${i} error`,i,a,r))})}else t(new SA(x0(e),e,r))},h3=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};if(e==="GET"||e==="HEAD"||!r)return H(H({},s),n);if(c3(r)){var i;const a=(t==null?void 0:t.headers)||{};let l;for(const[c,u]of Object.entries(a))c.toLowerCase()==="content-type"&&(l=u);s.headers=eu(a,"Content-Type",(i=l)!==null&&i!==void 0?i:"application/json"),s.body=JSON.stringify(r)}else s.body=r;return t!=null&&t.duplex&&(s.duplex=t.duplex),H(H({},s),n)};async function wa(e,t,n,r,s,i,a){return new Promise((l,c)=>{e(n,h3(t,r,s,i)).then(u=>{if(!u.ok)throw u;if(r!=null&&r.noResolveJson)return u;if(a==="vectors"){const d=u.headers.get("content-type");if(u.headers.get("content-length")==="0"||u.status===204)return{};if(!d||!d.includes("application/json"))return{}}return u.json()}).then(u=>l(u)).catch(u=>d3(u,c,r,a))})}function jA(e="storage"){return{get:async(t,n,r,s)=>wa(t,"GET",n,r,s,void 0,e),post:async(t,n,r,s,i)=>wa(t,"POST",n,s,i,r,e),put:async(t,n,r,s,i)=>wa(t,"PUT",n,s,i,r,e),head:async(t,n,r,s)=>wa(t,"HEAD",n,H(H({},r),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,n,r,s,i)=>wa(t,"DELETE",n,s,i,r,e)}}const f3=jA("storage"),{get:Co,post:Zt,put:pp,head:p3,remove:_o}=f3,vt=jA("vectors");var ia=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=o3(t),this.fetch=l3(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=eu(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Gu(n))return{data:null,error:n};throw n}}};let AA;AA=Symbol.toStringTag;var m3=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[AA]="StreamDownloadBuilder",this.promise=null}
257then(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 e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Gu(t))return{data:null,error:t};throw t}}};let EA;EA=Symbol.toStringTag;var g3=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[EA]="BlobDownloadBuilder",this.promise=null}asStream(){return new m3(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(Gu(t))return{data:null,error:t};throw t}}};const lh={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},v0={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var y3=class extends ia{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var s=this;return s.handleOperation(async()=>{let i;const a=H(H({},v0),r);let l=H(H({},s.headers),e==="POST"&&{"x-upsert":String(a.upsert)});const c=a.metadata;if(typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",a.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",a.cacheControl),c&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(c))):(i=n,l["cache-control"]=`max-age=${a.cacheControl}`,l["content-type"]=a.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")&&!a.duplex&&(a.duplex="half")),r!=null&&r.headers)for(const[f,p]of Object.entries(r.headers))l=eu(l,f,p);const u=s._removeEmptyFolders(t),d=s._getFinalPath(u),h=await(e=="PUT"?pp:Zt)(s.fetch,`${s.url}/object/${d}`,i,H({headers:l},a!=null&&a.duplex?{duplex:a.duplex}:{}));return{path:u,id:h.Id,fullPath:h.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var s=this;const i=s._removeEmptyFolders(e),a=s._getFinalPath(i),l=new URL(s.url+`/object/upload/sign/${a}`);return l.searchParams.set("token",t),s.handleOperation(async()=>{let c;const u=H(H({},v0),r);let d=H(H({},s.headers),{"x-upsert":String(u.upsert)});const h=u.metadata;if(typeof Blob<"u"&&n instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),h&&c.append("metadata",s.encodeMetadata(h)),c.append("",n)):typeof FormData<"u"&&n instanceof FormData?(c=n,c.has("cacheControl")||c.append("cacheControl",u.cacheControl),h&&!c.has("metadata")&&c.append("metadata",s.encodeMetadata(h))):(c=n,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType,h&&(d["x-metadata"]=s.toBase64(s.encodeMetadata(h))),(typeof ReadableStream<"u"&&c instanceof ReadableStream||c&&typeof c=="object"&&"pipe"in c&&typeof c.pipe=="function")&&!u.duplex&&(u.duplex="half")),r!=null&&r.headers)for(const[f,p]of Object.entries(r.headers))d=eu(d,f,p);return{path:i,fullPath:(await pp(s.fetch,l.toString(),c,H({headers:d},u!=null&&u.duplex?{duplex:u.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const s=H({},n.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await Zt(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:s}),a=new URL(n.url+i.url),l=a.searchParams.get("token");if(!l)throw new qu("No token returned by API");return{signedUrl:a.toString(),path:e,token:l}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await Zt(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
257stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await Zt(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let s=r._getFinalPath(e);const i=typeof(n==null?void 0:n.transform)=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let a=await Zt(r.fetch,`${r.url}/object/sign/${s}`,H({expiresIn:t},i?{transform:n.transform}:{}),{headers:r.headers});const l=new URLSearchParams;n!=null&&n.download&&l.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&l.set("cacheNonce",String(n.cacheNonce));const c=l.toString();return{signedUrl:encodeURI(`${r.url}${a.signedURL}${c?`&${c}`:""}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const s=await Zt(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),i=new URLSearchParams;n!=null&&n.download&&i.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&i.set("cacheNonce",String(n.cacheNonce));const a=i.toString();return s.map(l=>H(H({},l),{},{signedUrl:l.signedURL?encodeURI(`${r.url}${l.signedURL}${a?`&${a}`:""}`):null}))})}download(e,t,n){const r=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",s=new URLSearchParams;t!=null&&t.transform&&this.applyTransformOptsToQuery(s,t.transform),(t==null?void 0:t.cacheNonce)!=null&&s.set("cacheNonce",String(t.cacheNonce));const i=s.toString(),a=this._getFinalPath(e),l=()=>Co(this.fetch,`${this.url}/${r}/${a}${i?`?${i}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new g3(l,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>fp(await Co(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await p3(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(s){if(t.shouldThrowOnError)throw s;if(Gu(s)){var r;const i=s instanceof hp?s.status:s instanceof SA?(r=s.originalError)===null||r===void 0?void 0:r.status:void 0;if(i!==void 0&&[400,404].includes(i))return{data:!1,error:s}}throw s}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=new URLSearchParams;t!=null&&t.download&&r.set("download",t.download===!0?"":t.download),t!=null&&t.transform&&this.applyTransformOptsToQuery(r,t.transform),(t==null?void 0:t.cacheNonce)!=null&&r.set("cacheNonce",String(t.cacheNonce));const s=r.toString(),i=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}`)+(s?`?${s}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await _o(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async purgeCache(e,t,n){var r=this;return r.handleOperation(async()=>{const s=r._getFinalPath(e),i=new URLSearchParams;t!=null&&t.transformations&&i.set("transformations","true");const a=i.toString();return await _o(r.fetch,`${r.url}/cdn/${s}${a?`?${a}`:""}`,{},{headers:r.headers},n)})}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const s=t!=null&&t.sortBy?H(H({},lh.sortBy),t.sortBy):lh.sortBy,i=H(H(H({},lh),t),{},{sortBy:s,prefix:e||""});return await Zt(r.fetch,`${r.url}/object/list/${r.bucketId}`,i,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=H({},e);return await Zt(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("qual
257ity",t.quality.toString()),e}};const x3="2.110.3",el={"X-Client-Info":`storage-js/${x3}`};var v3=class extends ia{constructor(e,t={},n,r){const s=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const i=s.href.replace(/\/$/,""),a=H(H({},el),t);super(i,a,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await Co(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Co(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await Zt(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await pp(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await Zt(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await _o(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}async purgeBucketCache(e,t,n){var r=this;return r.handleOperation(async()=>{const s=new URLSearchParams;t!=null&&t.transformations&&s.set("transformations","true");const i=s.toString();return await _o(r.fetch,`${r.url}/cdn/${e}${i?`?${i}`:""}`,{},{headers:r.headers},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():""}},b3=class extends ia{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=H(H({},el),t);super(r,s,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Zt(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),s=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await Co(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await _o(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!u3(e))throw new qu("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}),r=this.shouldThrowOnError;return new Proxy(n,{get(s,i){const a=s[i];return typeof a!="function"?a:async(...l)=>{try{return{data:await a.apply(s,l),error:null}}catch(c){if(r)throw c;return{data:null,error:c}}}}})}},w3=class extends ia{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=H(H({},el),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await vt.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await vt.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},k3=class extends ia{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=H(H({},el),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
257if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},S3=class extends ia{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=H(H({},el),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await vt.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},j3=class extends S3{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new A3(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)}},A3=class extends w3{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,H(H({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,H(H({},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 E3(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},E3=class extends k3{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,H(H({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,H(H({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,H(H({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,H(H({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,H(H({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},T3=class extends v3{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new y3(this.url,this.headers,e,this.fetch)}get vectors(){return new j3(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new b3(this.url+"/iceberg",this.headers,this.fetch)}};function Yu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}const TA="2.110.3",Vn=30*1e3,_a=3,ch=_a*Vn,N3=2*Vn,C3="http://localhost:9999",_3="supabase.auth.token",I3={"X-Client-Info":`gotrue-js/${TA}`},mp="X-Supabase-Api-Version",NA={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},P3=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,R3=10*60*1e3;
257class Io extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function L(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class O3 extends Io{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function D3(e){return L(e)&&e.name==="AuthApiError"}class sn extends Io{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Dn extends Io{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class Fe extends Dn{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Ll(e){return L(e)&&e.name==="AuthSessionMissingError"}class Ws extends Dn{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Ml extends Dn{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class $l extends Dn{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function L3(e){return L(e)&&e.name==="AuthImplicitGrantRedirectError"}class b0 extends Dn{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class M3 extends Dn{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 gp extends Dn{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function w0(e){return L(e)&&e.name==="AuthRetryableFetchError"}class k0 extends Dn{constructor(t="Refresh result discarded: session state changed mid-flight (e.g., concurrent signOut)"){super(t,"AuthRefreshDiscardedError",409,void 0)}}function $3(e){return L(e)&&e.name==="AuthRefreshDiscardedError"}class S0 extends Dn{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class tu extends Dn{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const nu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),j0=` 258\r=`.split(""),F3=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<j0.length;t+=1)e[j0[t].charCodeAt(0)]=-2;for(let t=0;t<nu.length;t+=1)e[nu[t].charCodeAt(0)]=t;return e})();function A0(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(nu[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(nu[r]),t.queuedBits-=6}}function CA(e,t,n){const r=F3[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 E0(e){const t=[],n=a=>{t.push(String.fromCodePoint(a))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=a=>{z3(a,r,n)};for(let a=0;a<e.length;a+=1)CA(e.charCodeAt(a),s,i);return t.join("")}function B3(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 U3(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}B3(r,t)}}function z3(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 Ei(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)CA(e.charCodeAt(s),n,r);return new Uint8Array(t)}function V3(e){const t=[];return U3(e,n=>t.push(n)),new Uint8Array(t)}function fs(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>A0(s,n,r)),A0(null,n,r),t.join("")}function W3(e){return Math.round(Date.now()/1e3)+e}function H3(){return Symbol("auth-callback")}const Qe=()=>typeof window<"u"&&typeof document<"u",ts={tested:!1,writable:!1},_A=()=>{if(!Qe())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(ts.tested)return ts.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),ts.tested=!0,ts.writable=!0}catch{ts.tested=!0,ts.writable=!1}return ts.writable};function K3(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
258h((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const IA=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),q3=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Ys=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Gt=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return null}},_e=async(e,t)=>{await e.removeItem(t)};class Ju{constructor(){this.promise=new Ju.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Ju.promiseConstructor=Promise;function Fl(e){const t=e.split(".");if(t.length!==3)throw new tu("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!P3.test(t[r]))throw new tu("JWT not in base64url format");return{header:JSON.parse(E0(t[0])),payload:JSON.parse(E0(t[1])),signature:Ei(t[2]),raw:{header:t[0],payload:t[1]}}}async function G3(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function Y3(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const a=await e(i);if(!t(i,null,a)){r(a);return}}catch(a){if(!t(i,a)){s(a);return}}})()})}function J3(e){return("0"+e.toString(16)).substr(-2)}function Q3(){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,J3).join("")}async function X3(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function Z3(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 X3(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function ns(e,t,n=!1){const r=Q3();let s=r;n&&(s+="/recovery"),await Ys(e,`${t}-code-verifier`,s);const i=await Z3(r);return[i,r===i?"plain":"s256"]}const eF=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function tF(e){const t=e.headers.get(mp);if(!t||!t.match(eF))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function nF(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 rF(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 sF=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function $n(e){if(!sF.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Jt(e){if(!e.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function uh(){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 iF(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;
258if(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 T0(e){return JSON.parse(JSON.stringify(e))}const os=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error}return JSON.stringify(e)},aF=[500,501,502,503,504,520,521,522,523,524,525,526,527,528,529,530];async function N0(e){var t;if(!q3(e))throw new gp(os(e),0);if(aF.includes(e.status))throw new gp(os(e),e.status);let n;try{n=await e.json()}catch(i){throw new sn(os(i),i)}let r;const s=tF(e);if(s&&s.getTime()>=NA["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 S0(os(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new Fe}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,a)=>i&&typeof a=="string",!0))throw new S0(os(n),e.status,n.weak_password.reasons);throw new O3(os(n),e.status||500,r)}const oF=(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 U(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[mp]||(i[mp]=NA["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const a=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(a.redirect_to=r.redirectTo);const l=Object.keys(a).length?"?"+new URLSearchParams(a).toString():"",c=await lF(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 lF(e,t,n,r,s,i){const a=oF(t,r,s,i);let l;try{l=await e(n,Object.assign({},a))}catch(c){throw console.error(c),new gp(os(c),0)}if(l.ok||await N0(l),r!=null&&r.noResolveJson)return l;try{return await l.json()}catch(c){await N0(c)}}function _t(e){var t;let n=null;dF(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=W3(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:typeof(e==null?void 0:e.id)=="string"?e:null;return{data:{session:n,user:r},error:null}}function C0(e){const t=_t(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 br(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function cF(e){return{data:e,error:null}}function uF(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,a=Yu(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({},a);return{data:{properties:l,user:c},error:null}}function _0(e){return e}function dF(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}const dh=["global","local","others"];class hF{constructor({url:t="",headers:n={},fetch:r,experimental:s}){this.url=t,this.headers=n,this.fetch=IA(r),this.experimental=s??{},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)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}
vendor: 4,751 bytes, line 258
258async signOut(t,n=dh[0]){if(dh.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${dh.join(", ")}`);try{return await U(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(L(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await U(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:br})}catch(r){if(L(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=Yu(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 U(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:uF,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(L(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await U(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:br})}catch(n){if(L(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,a,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await U(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:_0});if(d.error)throw d.error;const h=await d.json(),f=(a=d.headers.get("x-total-count"))!==null&&a!==void 0?a:0,p=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return p.length>0&&(p.forEach(x=>{const y=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(x.split(";")[1].split("=")[1]);u[`${b}Page`]=y}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(L(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){$n(t);try{return await U(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:br})}catch(n){if(L(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){$n(t);try{return await U(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:br})}catch(r){if(L(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){$n(t);try{return await U(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:br})}catch(r){if(L(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){$n(t.userId);try{const{data:n,error:r}=await U(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(L(n))return{data:null,error:n};throw n}}async _deleteFactor(t){$n(t.userId),$n(t.id);try{return{data:await U(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(L(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,s,i,a,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await U(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:_0});if(d.error)throw d.error;const h=await d.json(),f=(a=d.headers.get("x-total-count"))!==null&&a!==void 0?a:0,p=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return p.length>0&&(p.forEach(x=>{const y=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(x.split(";")[1].split("=")[1]);u[`${b}Page`]=y}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(L(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await U(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(L(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await U(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(L(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await U(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(L(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await U(this.fetch,"DELET
258E",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(L(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await U(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(L(n))return{data:null,error:n};throw n}}async _listCustomProviders(t){try{const n={};return t!=null&&t.type&&(n.type=t.type),await U(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:r=>{var s;return{data:{providers:(s=r==null?void 0:r.providers)!==null&&s!==void 0?s:[]},error:null}}})}catch(n){if(L(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(t){try{return await U(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(L(n))return{data:null,error:n};throw n}}async _getCustomProvider(t){try{return await U(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(L(n))return{data:null,error:n};throw n}}async _updateCustomProvider(t,n){try{return await U(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(L(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(t){try{return await U(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(L(n))return{data:null,error:n};throw n}}async _adminListPasskeys(t){Jt(this.experimental),$n(t.userId);try{return await U(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/passkeys`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(L(n))return{data:null,error:n};throw n}}async _adminDeletePasskey(t){Jt(this.experimental),$n(t.userId),$n(t.passkeyId);try{return await U(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/passkeys/${t.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(L(n))return{data:null,error:n};throw n}}}function I0(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}globalThis&&_A()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug");class fF extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}function pF(){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 PA(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function mF(e){return parseInt(e,16)}function gF(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function yF(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:a,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(a&&a.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${a}`);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(` 259`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const p=PA(e.address),x=d?`${d}://${r}`:r,y=e.statement?`${e.statement} 260`:"",b=`${x} wants you to sign in with your Ethereum account: 261${p} 262 263${y}`;let g=`URI: ${h} 264Version: ${f} 265Chain ID: ${n}${a?` 266Nonce: ${a}`:""} 267Issued At: ${i.toISOString()}`;if(s&&(g+=` 268Expiration Time: ${s.toISOString()}`),l&&(g+=` 269Not Before: ${l.toISOString()}
269`),c&&(g+=` 270Request ID: ${c}`),u){let m=` 271Resources:`;for(const v of u){if(!v||typeof v!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${v}`);m+=` 272- ${v}`}g+=m}return`${b} 273${g}`}class Ie 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}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class ru extends Ie{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function xF({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 Ie({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 Ie({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 Ie({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 Ie({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 Ie({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Ie({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 Ie({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Ie({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 a=window.location.hostname;if(RA(a)){if(i.rp.id!==a)return new Ie({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ie({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 Ie({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 Ie({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 Ie({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function vF({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 Ie({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Ie({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(RA(r)){if(n.rpId!==r)return new Ie({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ie({message:`${window.location.hostname}
273 is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Ie({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 Ie({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class bF{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 yp=new bF;function P0(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=Yu(e,["challenge","user","excludeCredentials"]),i=Ei(t).buffer,a=Object.assign(Object.assign({},n),{id:Ei(n.id).buffer}),l=Object.assign(Object.assign({},s),{challenge:i,user:a});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:Ei(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return l}function R0(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=Yu(e,["challenge","allowCredentials"]),s=Ei(t).buffer,i=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let a=0;a<n.length;a++){const l=n[a];i.allowCredentials[a]=Object.assign(Object.assign({},l),{id:Ei(l.id).buffer,type:l.type||"public-key",transports:l.transports})}}return i}function O0(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:fs(new Uint8Array(e.response.attestationObject)),clientDataJSON:fs(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function D0(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:fs(new Uint8Array(s.authenticatorData)),clientDataJSON:fs(new Uint8Array(s.clientDataJSON)),signature:fs(new Uint8Array(s.signature)),userHandle:s.userHandle?fs(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function RA(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function su(){var e,t;return!!(Qe()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function OA(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new ru("Browser returned unexpected credential type",t)}:{data:null,error:new ru("Empty credential response",t)}}catch(t){return{data:null,error:xF({error:t,options:e})}}}async function DA(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new ru("Browser returned unexpected credential type",t)}:{data:null,error:new ru("Empty credential response",t)}}
273catch(t){return{data:null,error:vF({error:t,options:e})}}}const wF={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},kF={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function iu(...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 a=s[i];if(a!==void 0)if(Array.isArray(a))r[i]=a;else if(n(a))r[i]=a;else if(t(a)){const l=r[i];t(l)?r[i]=iu(l,a):r[i]=iu(a)}else r[i]=a}return r}function SF(e,t){return iu(wF,e,t||{})}function jF(e,t){return iu(kF,e,t||{})}class AF{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:s},i){var a;try{const{data:l,error:c}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!l)return{data:null,error:c};const u=s??yp.createNewAbortSignal();if(l.webauthn.type==="create"){const{user:d}=l.webauthn.credential_options.publicKey;if(!d.name){const h=r;if(h)d.name=`${d.id}:${h}`;else{const p=(await this.client.getUser()).data.user,x=((a=p==null?void 0:p.user_metadata)===null||a===void 0?void 0:a.name)||(p==null?void 0:p.email)||(p==null?void 0:p.id)||"User";d.name=`${d.id}:${x}`}}d.displayName||(d.displayName=d.name)}switch(l.webauthn.type){case"create":{const d=SF(l.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:h,error:f}=await OA({publicKey:d,signal:u});return h?{data:{factorId:t,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:h}},error:null}:{data:null,error:f}}case"request":{const d=jF(l.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:h,error:f}=await DA(Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:d,signal:u}));return h?{data:{factorId:t,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:h}},error:null}:{data:null,error:f}}}}catch(l){return L(l)?{data:null,error:l}:{data:null,error:new sn("Unexpected error in challenge",l)}}}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 Io("rpId is required for WebAuthn authentication")};try{if(!su())return{data:null,error:new sn("Browser does not support WebAuthn",null)};const{data:a,error:l}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:i});if(!a)return{data:null,error:l};const{webauthn:c}=a;return this._verify({factorId:t,challengeId:a.challengeId,webauthn:{type:c.type,rpId:n,rpOrigins:r,credential_response:c.credential_response}})}catch(a){return L(a)?{data:null,error:a}:{data:null,error:new sn("Unexpected error in authenticate",a)}}}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 Io("rpId is required for WebAuthn registration")};try{if(!su())return{data:null,error:new sn("Browser does not support WebAuthn",null)};const{data:a,error:l}=await this._enroll({friendlyName:t});if(!a)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:a.id,friendlyName:a.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return c?this._verify({factorId:a.id,challengeId:c.challengeId,webauthn:{rpId:n,rpOrigins:r,type:c.webauthn.type,credential_response:c.webauthn.credential_response}}):{data:null,error:u}}catch(a){return L(a)?{data:null,error:a}:{data:null,error:new sn("Unexpected error in register",a)}}}}pF();const EF={url:C3,storageKey:_3,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:I3,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}},Hs={};class Po{get jwks(){var t,n;return(n=(t=Hs[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Hs[this.storageKey]=Object.assign(Object.assign({},Hs[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Hs[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Hs[this.storageKey]=Object.assign(Object.assign({},Hs[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.lastRefreshFailure=null,this._sessionRemovalEpoch=0,this.initializePromise=null,this._pendingInitNotifications=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lock=null,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},EF),t);if(this.storageKey=i.storageKey,this.instanceID=(n=Po.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Po.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&Qe()){const a=`${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(a),this.logDebugMessages&&console.trace(a)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.experimental=(r=i.experimental)!==null&&r!==void 0?r:{},this.admin=new hF({url:i.url,headers:i.headers,fetch:i.fetch,experimental:this.experimental}),this.url=i.url,this.headers=i.headers,this.fetch=IA(i.fetch),this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock!=null&&(this.lock=i.lock),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 AF(this)}
273,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.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:_A()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=I0(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=I0(this.memoryStorage)),Qe()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(a){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",a)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async a=>{this._debug("received broadcast notification from other tab or client",a),(a.data.event==="TOKEN_REFRESHED"||a.data.event==="SIGNED_IN")&&(this.lastRefreshFailure=null);try{await this._notifyAllSubscribers(a.data.event,a.data.session,!1)}catch(l){this._debug("#broadcastChannel","error",l)}})}i.skipAutoInitialize||this.initialize().catch(a=>{this._debug("#initialize()","error",a)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${TA}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){var t;if(this.initializePromise)return await this.initializePromise;this._pendingInitNotifications=[],this.initializePromise=(async()=>this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()):await this._initialize())();const n=await this.initializePromise,r=(t=this._pendingInitNotifications)!==null&&t!==void 0?t:[];this._pendingInitNotifications=null;for(const s of r)await this._notifyAllSubscribers(s.event,s.session,s.broadcast);return n}async _initialize(){var t;try{let n={},r="none";if(Qe()&&(n=K3(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),Qe()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),L3(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:a,redirectType:l}=s;return this._debug("#_initialize()","detected session in URL",a,"redirect type",l),await this._saveSession(a),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",a):await this._notifyAllSubscribers("SIGNED_IN",a)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return L(n)?this._returnResult({error:n}):this._returnResult({error:new sn("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await U(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:_t}),{data:a,error:l}=i;if(l||!a)return this._returnResult({data:{user:null,session:null},error:l});const c=a.session,u=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(i){if(L(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 p=null,x=null;this.flowType==="pkce"&&([p,x]=await ns(this.storage,this.storageKey)),i=await U(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:p,code_challenge_method:x},xform:_t})}else if("phone"in t){const{phone:d,password:h,options:f}=t;i=await U(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:_t})}else throw new Ml("You must provide either an email or phone number and a password");const{data:a,error:l}=i;if(l||!a)return await _e(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:l});const c=a.session,u=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(i){if(await _e(this.storage,`${this.storageKey}-code-verifier`),L(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:a,options:l}=t;n=await U(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:a,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:C0})}else if("phone"in t){const{phone:i,password:a,options:l}=t;n=await U(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:a,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:C0})}else throw new Ml("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 Ws;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(L(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.lock!=null?this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t)):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,a,l,c,u,d,h,f;let p,x;if("message"in t)p=t.message,x=t.signature;else{const{chain:y,wallet:b,statement:g,options:m}=t;let v;if(Qe())if(typeof b=="object")v=b;else{const N=window;if("ethereum"in N&&typeof N.ethereum=="object"&&"request"in N.ethereum&&typeof N.ethereum.request=="function")v=N.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"||!(m!=null&&m.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");v=b}const k=new URL((n=m==null?void 0:m.url)!==null&&n!==void 0?n:window.location.href),S=await v.request({method:"eth_requestAccounts"}).then(N=>N).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!S||S.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const j=PA(S[0]);let A=(r=m==null?void 0:m.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!A){const N=await v.request({method:"eth_chainId"});A=mF(N)}const E={domain:k.host,address:j,statement:g,uri:k.href,version:"1",chainId:A,nonce:(s=m==null?void 0:m.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(a=(i=m==null?void 0:m.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&a!==void 0?a:new Date,expirationTime:(l=m==null?void 0:m.signInWithEthereum)===null||l===void 0?void 0:l.expirationTime,notBefore:(c=m==null?void 0:m.signInWithEthereum)===null||c===void 0?void 0:c.notBefore,requestId:(u=m==null?void 0:m.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(d=m==null?void 0:m.signInWithEthereum)===null||d===void 0?void 0:d.resources};p=yF(E),x=await v.request({method:"personal_sign",params:[gF(p),j]})}try{const{data:y,error:b}=await U(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:p,signature:x}
273,!((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:_t});if(b)throw b;if(!y||!y.session||!y.user){const g=new Ws;return this._returnResult({data:{user:null,session:null},error:g})}return y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("SIGNED_IN",y.session)),this._returnResult({data:Object.assign({},y),error:b})}catch(y){if(L(y))return this._returnResult({data:{user:null,session:null},error:y});throw y}}async signInWithSolana(t){var n,r,s,i,a,l,c,u,d,h,f,p;let x,y;if("message"in t)x=t.message,y=t.signature;else{const{chain:b,wallet:g,statement:m,options:v}=t;let k;if(Qe())if(typeof g=="object")k=g;else{const j=window;if("solana"in j&&typeof j.solana=="object"&&("signIn"in j.solana&&typeof j.solana.signIn=="function"||"signMessage"in j.solana&&typeof j.solana.signMessage=="function"))k=j.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof g!="object"||!(v!=null&&v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");k=g}const S=new URL((n=v==null?void 0:v.url)!==null&&n!==void 0?n:window.location.href);
273if("signIn"in k&&k.signIn){const j=await k.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},v==null?void 0:v.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),m?{statement:m}:null));let A;if(Array.isArray(j)&&j[0]&&typeof j[0]=="object")A=j[0];else if(j&&typeof j=="object"&&"signedMessage"in j&&"signature"in j)A=j;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in A&&"signature"in A&&(typeof A.signedMessage=="string"||A.signedMessage instanceof Uint8Array)&&A.signature instanceof Uint8Array)x=typeof A.signedMessage=="string"?A.signedMessage:new TextDecoder().decode(A.signedMessage),y=A.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in k)||typeof k.signMessage!="function"||!("publicKey"in k)||typeof k!="object"||!k.publicKey||!("toBase58"in k.publicKey)||typeof k.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");x=[`${S.host} wants you to sign in with your Solana account:`,k.publicKey.toBase58(),...m?["",m,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(s=(r=v==null?void 0:v.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=v==null?void 0:v.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${v.signInWithSolana.notBefore}`]:[],...!((a=v==null?void 0:v.signInWithSolana)===null||a===void 0)&&a.expirationTime?[`Expiration Time: ${v.signInWithSolana.expirationTime}`]:[],...!((l=v==null?void 0:v.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${v.signInWithSolana.chainId}`]:[],...!((c=v==null?void 0:v.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${v.signInWithSolana.nonce}`]:[],...!((u=v==null?void 0:v.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${v.signInWithSolana.requestId}`]:[],...!((h=(d=v==null?void 0:v.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...v.signInWithSolana.resources.map(A=>`- ${A}`)]:[]].join(` 274`);const j=await k.signMessage(new TextEncoder().encode(x),"utf8");if(!j||!(j instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");y=j}}try{const{data:b,error:g}=await U(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:x,signature:fs(y)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:_t});if(g)throw g;if(!b||!b.session||!b.user){const m=new Ws;return this._returnResult({data:{user:null,session:null},error:m})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:g})}catch(b){if(L(b))return this._returnResult({data:{user:null,session:null},error:b});throw b}}async _exchangeCodeForSession(t){const n=await Gt(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new M3;const{data:i,error:a}=await U(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:_t});if(await _e(this.storage,`${this.storageKey}-code-verifier`),a)throw a;if(!i||!i.session||!i.user){const l=new Ws;return this._returnResult({data:{user:null,session:null,redirectType:null},error:l})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers(s==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:a})}catch(i){if(await _e(this.storage,`${this.storageKey}-code-verifier`),L(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:a}=t,l=await U(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:a,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:_t}),{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 Ws;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(L(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,s,i,a;try{if("email"in t){const{email:l,options:c}=t;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await ns(this.storage,this.storageKey));const{error:h}=await U(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 U(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:(a=c==null?void 0:c.channel)!==null&&a!==void 0?a:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d})}throw new Ml("You must provide either an email or phone number.")}catch(l){if(await _e(this.storage,`${this.storageKey}-code-verifier`),L(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:a,error:l}=await U(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:_t});if(l)throw l;if(!a)throw new Error("An error occurred on token verification.");const c=a.session,u=a.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(L(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var n,r,s,i,a;try{let l=null,c=null;this.flowType==="pkce"&&([l,c]=await ns(this.storage,this.storageKey));const u=await U(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:cF});return!((i=u.data)===null||i===void 0)&&i.url&&Qe()&&!(!((a=t.options)===null||a===void 0)&&a.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(l){if(await _e(this.storage,`${this.storageKey}-code-verifier`),L(l))return this._returnResult({data:null,error:l});throw l}}async reauthenticate(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate()):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 Fe;const{error:s}=await U(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(L(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;let a=null,l=null;this.flowType==="pkce"&&([a,l]=await ns(this.storage,this.storageKey));const{error:c}=await U(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken},code_challenge:a,code_challenge_method:l},redirectTo:i==null?void 0:i.emailRedirectTo});return c&&await _e(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:c})}else if("phone"in t){const{phone:r,type:s,options:i}=t,{data:a,error:l}=await U(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:a==null?void 0:a.message_id},error:l})}throw new Ml("You must provide either an email or phone number and a type")}catch(n){if(await _e(this.storage,`${this.storageKey}-code-verifier`),L(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async t=>t)):await this._useSession(async t=>t)}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.lock!=null&&!this.lockAcquired&&this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await Gt(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
274id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<ch:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const a=await Gt(this.userStorage,this.storageKey+"-user");a!=null&&a.user?t.user=a.user:t.user=uh()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const a={value:this.suppressGetSessionWarning};t.user=iF(t.user,a),a.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);if(i){if(!!(t.expires_at&&t.expires_at*1e3>Date.now())){const l=await Gt(this.storage,this.storageKey);if(l&&l.refresh_token===t.refresh_token)return this._returnResult({data:{session:t},error:null})}return this._returnResult({data:{session:null},error:i})}return 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;let n;return this.lock!=null?n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser()):n=await this._getUser(),n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await U(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:br}):await this._useSession(async n=>{var r,s,i;const{data:a,error:l}=n;if(l)throw l;return!(!((r=a.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Fe}:await U(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=a.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:br})})}catch(n){if(L(n))return Ll(n)&&(await this._removeSession(),await _e(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n)):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 Fe;const a=s.session;let l=null,c=null;this.flowType==="pkce"&&t.email!=null&&([l,c]=await ns(this.storage,this.storageKey));const{data:u,error:d}=await U(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:a.access_token,xform:br});if(d)throw d;return a.user=u.user,await this._saveSession(a),await this._notifyAllSubscribers("USER_UPDATED",a),this._returnResult({data:{user:a.user},error:null})})}catch(r){if(await _e(this.storage,`${this.storageKey}-code-verifier`),L(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t)):await this._setSession(t)}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Fe;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:a}=Fl(t.access_token);if(a.exp&&(r=a.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)return this._returnResult({data:{user:null,session:null},error: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(L(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t)):await this._refreshSession(t)}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:a,error:l}=n;if(l)throw l;t=(r=a.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new Fe;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(L(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){var r;try{if(!Qe())throw new $l("No browser detected.");
274if(t.error||t.error_description||t.error_code)throw new $l(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 b0("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new $l("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 b0("No code detected.");const{data:v,error:k}=await this._exchangeCodeForSession(t.code);if(k)throw k;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:v.session,redirectType:(r=v.redirectType)!==null&&r!==void 0?r:null},error:null}}const{provider_token:s,provider_refresh_token:i,access_token:a,refresh_token:l,expires_in:c,expires_at:u,token_type:d}=t;if(!a||!c||!l||!d)throw new $l("No session defined in URL");const h=Math.round(Date.now()/1e3),f=parseInt(c);let p=h+f;u&&(p=parseInt(u));const x=p-h;x*1e3<=Vn&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${x}s, should have been closer to ${f}s`);const y=p-f;h-y>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",y,p,h):h-y<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",y,p,h);const{data:b,error:g}=await this._getUser(a);if(g)throw g;const m={provider_token:s,provider_refresh_token:i,access_token:a,expires_in:f,expires_at:p,refresh_token:l,token_type:d,user:b.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:m,redirectType:t.type},error:null})}catch(s){if(L(s))return this._returnResult({data:{session:null,redirectType:null},error:s});throw s}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error||t.error_description||t.error_code)}async _isPKCECallback(t){const n=await Gt(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t)):await this._signOut(t)}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const s=async()=>{await this._removeSession(),await _e(this.storage,`${this.storageKey}-code-verifier`)},{data:i,error:a}=n;if(a&&!Ll(a))return this._returnResult({error:a});const l=(r=i.session)===null||r===void 0?void 0:r.access_token;if(l){const{error:c}=await this.admin.signOut(l,t);if(c&&!(D3(c)&&(c.status===404||c.status===401||c.status===403)||Ll(c)))return t!=="others"&&await s(),this._returnResult({error:c})}return t!=="others"&&await s(),this._returnResult({error:null})})}onAuthStateChange(t){const n=H3(),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,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)}):await this._emitInitialSession(n)))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:a}=n;if(a)throw a;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),Ll(i)?console.warn(i):console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await ns(this.storage,this.storageKey,!0));try{return await U(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 _e(this.storage,`${this.storageKey}-code-verifier`),L(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(L(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 a,l,c,u,d;const{data:h,error:f}=i;if(f)throw f;const p=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(a=t.options)===null||a===void 0?void 0:a.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 U(this.fetch,"GET",p,{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 Qe()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(L(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;
274if(s)throw s;const{options:a,provider:l,token:c,access_token:u,nonce:d}=t,h=await U(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:a==null?void 0:a.captchaToken}},xform:_t}),{data:f,error:p}=h;return p?this._returnResult({data:{user:null,session:null},error:p}):!f||!f.session||!f.user?this._returnResult({data:{user:null,session:null},error:new Ws}):(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),this._returnResult({data:f,error:p}))}catch(s){if(await _e(this.storage,`${this.storageKey}-code-verifier`),L(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:a}=n;if(a)throw a;return await U(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(L(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n="#_refreshAccessToken()";this._debug(n,"begin");try{const r=Date.now();return await Y3(async s=>(s>0&&await G3(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await U(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:_t})),(s,i)=>{const a=200*Math.pow(2,s);return i&&w0(i)&&Date.now()+a-r<Vn})}catch(r){if(this._debug(n,"error",r),L(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),Qe()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await Gt(this.storage,this.storageKey);if(s&&this.userStorage){let a=await Gt(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!a&&(a={user:s.user},await Ys(this.userStorage,this.storageKey+"-user",a)),s.user=(t=a==null?void 0:a.user)!==null&&t!==void 0?t:uh()}else if(s&&!s.user&&!s.user){const a=await Gt(this.storage,this.storageKey+"-user");a&&(a!=null&&a.user)?(s.user=a.user,await _e(this.storage,this.storageKey+"-user"),await Ys(this.storage,this.storageKey,s)):s.user=uh()}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()<ch;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${ch}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:a}=await this._callRefreshToken(s.refresh_token);a&&($3(a)?this._debug(r,"refresh discarded by commit guard",a):this._debug(r,"refresh failed",a))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:a,error:l}=await this._getUser(s.access_token);!l&&(a!=null&&a.user)?(s.user=a.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(a){console.error("Error getting user data:",a),this._debug(r,"error getting user data, skipping SIGNED_IN notification",a)}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 Fe;if(this.refreshingDeferred)return this.refreshingDeferred.promise;if(this.lastRefreshFailure&&this.lastRefreshFailure.refreshToken===t&&Date.now()<this.lastRefreshFailure.expiresAt)return this._debug("#_callRefreshToken()","returning c
274ached failure (cooldown active)"),this.lastRefreshFailure.result;const s="#_callRefreshToken()";this._debug(s,"begin");try{this.refreshingDeferred=new Ju;const i=await Gt(this.storage,this.storageKey),{data:a,error:l}=await this._refreshAccessToken(t);if(l)throw l;if(!a.session)throw new Fe;const c=await Gt(this.storage,this.storageKey);if(i!==null&&(c===null||c.refresh_token!==i.refresh_token)){this._debug(s,"commit guard: storage changed since refresh started, discarding rotated tokens",{startedWith:"present",nowHolds:c?"replaced":"cleared"});const f={data:null,error:new k0};return this.refreshingDeferred.resolve(f),f}const d=this._sessionRemovalEpoch;if(await this._saveSession(a.session),this._sessionRemovalEpoch!==d){this._debug(s,"commit guard (post-save): _removeSession ran during _saveSession, undoing write"),await _e(this.storage,this.storageKey),this.userStorage&&await _e(this.userStorage,this.storageKey+"-user");const f={data:null,error:new k0};return this.refreshingDeferred.resolve(f),f}await this._notifyAllSubscribers("TOKEN_REFRESHED",a.session);const h={data:a.session,error:null};return this.lastRefreshFailure=null,this.refreshingDeferred.resolve(h),h}catch(i){if(this._debug(s,"error",i),L(i)){const a={data:null,error:i};if(!w0(i)){const l=await Gt(this.storage,this.storageKey);!!(l!=null&&l.expires_at&&l.expires_at*1e3>Date.now())?this._debug(s,"proactive refresh failed, access token still valid â preserving session"):await this._removeSession()}return this.lastRefreshFailure={refreshToken:t,result:a,expiresAt:Date.now()+N3},(n=this.refreshingDeferred)===null||n===void 0||n.resolve(a),a}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){if(this._pendingInitNotifications!==null&&r){this._pendingInitNotifications.push({event:t,session:n,broadcast:r});return}const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],a=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(t,n)}catch(c){i.push(c)}});if(await Promise.all(a),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;const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await Ys(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=T0(s);await Ys(this.storage,this.storageKey,i)}else{const s=T0(n);await Ys(this.storage,this.storageKey,s)}}async _removeSession(){this._sessionRemovalEpoch+=1,this._debug("#_removeSession()"),this.lastRefreshFailure=null,this.suppressGetSessionWarning=!1,await _e(this.storage,this.storageKey),await _e(this.storage,this.storageKey+"-code-verifier"),await _e(this.storage,this.storageKey+"-user"),this.userStorage&&await _e(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Qe()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Vn);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 dispose(){var t;this._removeVisibilityChangedCallback(),await this._stopAutoRefresh(),(t=this.broadcastChannel)===null||t===void 0||t.close(),this.broadcastChannel=null,this.stateChangeEmitters.clear()}async _autoRefreshTokenTick(){if(this._debug("#_autoRefreshTokenTick()","begin"),this.lock!=null){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)/Vn);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Vn}ms, refresh threshold is ${_a} ticks`),s<=_a&&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 instanceof fF)this._debug("auto refresh token tick lock not available");else throw t}return}if(this.refreshingDeferred!==null){this._debug("#_autoRefreshTokenTick()","refresh already in flight, skipping");return}try{const t=Date.now();try{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)/Vn);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Vn}ms, refresh threshold is ${_a} ticks`),s<=_a&&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")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Qe()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;if(this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"){if(this.autoRefreshToken&&this._startAutoRefresh(),!t)if(await this.initializePromise,this.lock!=null)await this._acquireLock(this.lockAcquireTimeout,async()=>
274{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()});else{if(document.visibilityState!=="visible"){this._debug(n,"visibilityState is no longer visible, skipping recovery");return}await this._recoverAndRefresh()}}else 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,a]=await ns(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(a)}`});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 U(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(L(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:a}=n;if(a)return this._returnResult({data:null,error:a});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 U(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(L(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){const n=async()=>{try{return await this._useSession(async r=>{var s;const{data:i,error:a}=r;if(a)return this._returnResult({data:null,error:a});const l=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?O0(t.webauthn.credential_response):D0(t.webauthn.credential_response)})}:{code:t.code}),{data:c,error:u}=await U(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:l,headers:this.headers,jwt:(s=i==null?void 0:i.session)===null||s===void 0?void 0:s.access_token});return u?this._returnResult({data:null,error:u}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+c.expires_in},c)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",c),this._returnResult({data:c,error:u}))})}catch(r){if(L(r))return this._returnResult({data:null,error:r});throw r}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,n):n()}async _challenge(t){const n=async()=>{try{return await this._useSession(async r=>{var s;const{data:i,error:a}=r;if(a)return this._returnResult({data:null,error:a});const l=await U(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(s=i==null?void 0:i.session)===null||s===void 0?void 0:s.access_token});if(l.error)return l;const{data:c}=l;if(c.type!=="webauthn")return{data:c,error:null};switch(c.webauthn.type){case"create":return{data:Object.assign(Object.assign({},c),{webauthn:Object.assign(Object.assign({},c.webauthn),{credential_options:Object.assign(Object.assign({},c.webauthn.credential_options),{publicKey:P0(c.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},c),{webauthn:Object.assign(Object.assign({},c.webauthn),{credential_options:Object.assign(Object.assign({},c.webauthn.credential_options),{publicKey:R0(c.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(L(r))return this._returnResult({data:null,error:r});throw r}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,n):n()}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,s,i;if(t)try{const{payload:p}=Fl(t);let x=null;p.aal&&(x=p.aal);let y=x;const{data:{user:b},error:g}=await this.getUser(t);if(g)return this._returnResult({data:null,error:g});((r=(n=b==null?void 0:b.factors)===null||n===void 0?void 0:n.filter(k=>k.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(y="aal2");const v=p.amr||[];return{data:{currentLevel:x,nextLevel:y,currentAuthenticationMethods:v},error:null}}catch(p){if(L(p))return this._returnResult({data:null,error:p});throw p}const{data:{session:a},error:l}
274=await this.getSession();if(l)return this._returnResult({data:null,error:l});if(!a)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:c}=Fl(a.access_token);let u=null;c.aal&&(u=c.aal);let d=u;((i=(s=a.user.factors)===null||s===void 0?void 0:s.filter(p=>p.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(d="aal2");const f=c.amr||[];return{data:{currentLevel:u,nextLevel:d,currentAuthenticationMethods:f},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 U(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 Fe})})}catch(n){if(L(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 Fe});const a=await U(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 a.data&&a.data.redirect_url&&Qe()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(r){if(L(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 Fe});const a=await U(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 a.data&&a.data.redirect_url&&Qe()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(r){if(L(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 U(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 Fe})})}catch(t){if(L(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 U(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 Fe})})}catch(n){if(L(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+R3>s)return r;const{data:i,error:a}=await U(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(a)throw a;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:p,error:x}
274=await this.getSession();if(x||!p.session)return this._returnResult({data:null,error:x});r=p.session.access_token}const{header:s,payload:i,signature:a,raw:{header:l,payload:c}}=Fl(r);if(!(n!=null&&n.allowExpired))try{nF(i.exp)}catch(p){throw new tu(p instanceof Error?p.message:"JWT validation failed")}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:p}=await this.getUser(r);if(p)throw p;return{data:{claims:i,header:s,signature:a},error:null}}const d=rF(s.alg),h=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,a,V3(`${l}.${c}`)))throw new tu("Invalid JWT signature");return{data:{claims:i,header:s,signature:a},error:null}}catch(r){if(L(r))return this._returnResult({data:null,error:r});throw r}}async signInWithPasskey(t){var n,r,s;Jt(this.experimental);try{if(!su())return this._returnResult({data:null,error:new sn("Browser does not support WebAuthn",null)});const{data:i,error:a}=await this._startPasskeyAuthentication({options:{captchaToken:(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.captchaToken}});if(a||!i)return this._returnResult({data:null,error:a});const l=R0(i.options),c=(s=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.signal)!==null&&s!==void 0?s:yp.createNewAbortSignal(),{data:u,error:d}=await DA({publicKey:l,signal:c});if(d||!u)return this._returnResult({data:null,error:d??new sn("WebAuthn ceremony failed",null)});const h=D0(u);return this._verifyPasskeyAuthentication({challengeId:i.challenge_id,credential:h})}catch(i){if(L(i))return this._returnResult({data:null,error:i});throw i}}async registerPasskey(t){var n,r;Jt(this.experimental);try{if(!su())return this._returnResult({data:null,error:new sn("Browser does not support WebAuthn",null)});const{data:s,error:i}=await this._startPasskeyRegistration();if(i||!s)return this._returnResult({data:null,error:i});const a=P0(s.options),l=(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.signal)!==null&&r!==void 0?r:yp.createNewAbortSignal(),{data:c,error:u}=await OA({publicKey:a,signal:l});if(u||!c)return this._returnResult({data:null,error:u??new sn("WebAuthn ceremony failed",null)});const d=O0(c);return this._verifyPasskeyRegistration({challengeId:s.challenge_id,credential:d})}catch(s){if(L(s))return this._returnResult({data:null,error:s});throw s}}async _startPasskeyRegistration(){Jt(this.experimental);try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new Fe});const{data:s,error:i}=await U(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:n.access_token,body:{}});return i?this._returnResult({data:null,error:i}):this._returnResult({data:s,error:null})})}catch(t){if(L(t))return this._returnResult({data:null,error:t});throw t}}async _verifyPasskeyRegistration(t){Jt(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new Fe});const{data:i,error:a}=await U(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:r.access_token,body:{challenge_id:t.challengeId,credential:t.credential}});return a?this._returnResult({data:null,error:a}):this._returnResult({data:i,error:null})})}catch(n){if(L(n))return this._returnResult({data:null,error:n});throw n}}async _startPasskeyAuthentication(t){var n;Jt(this.experimental);try{const{data:r,error:s}=await U(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.captchaToken}}});return s?this._returnResult({data:null,error:s}):this._returnResult({data:r,error:null})}catch(r){if(L(r))return this._returnResult({data:null,error:r});throw r}}async _verifyPasskeyAuthentication(t){Jt(this.experimental);try{const{data:n,error:r}=await U(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:t.challengeId,credential:t.credential},xform:_t});return r?this._returnResult({data:null,error:r}):(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:n,error:null}))}catch(n){if(L(n))return this._returnResult({data:null,error:n});throw n}}async _listPasskeys(){Jt(this.experimental);try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new Fe});const{data:s,error:i}=await U(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:n.access_token,xform:a=>({data:a,error:null})});return i?this._returnResult({data:null,error:i}):this._returnResult({data:s,error:null})})}catch(t){if(L(t))return this._returnResult({data:null,error:t});throw t}}async _updatePasskey(t){Jt(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new Fe});const{data:i,error:a}=await U(this.fetch,"PATCH",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,body:{friendly_name:t.friendlyName}});return a?this._returnResult({data:null,error:a}):this._returnResult({data:i,error:null})})}catch(n){if(L(n))return this._returnResult({data:null,error:n});throw n}}async _deletePasskey(t){Jt(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new Fe});const{error:i}
274=await U(this.fetch,"DELETE",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,noResolveJson:!0});return i?this._returnResult({data:null,error:i}):this._returnResult({data:null,error:null})})}catch(n){if(L(n))return this._returnResult({data:null,error:n});throw n}}}Po.nextInstanceID={};const TF=Po,NF="2.110.3";let Ia="",au;if(typeof Deno<"u"){var hh;Ia="deno",au=(hh=Deno.version)===null||hh===void 0?void 0:hh.deno}else if(typeof document<"u")Ia="web";else if(typeof navigator<"u"&&navigator.product==="ReactNative")Ia="react-native";else{var fh;Ia="node",au=typeof process<"u"?(fh=process.version)===null||fh===void 0?void 0:fh.replace(/^v/,""):void 0}const LA=[`runtime=${Ia}`];au&&LA.push(`runtime-version=${au}`);const CF={"X-Client-Info":`supabase-js/${NF}; ${LA.join("; ")}`},_F={headers:CF},IF={schema:"public"},PF={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},RF={},OF={enabled:!1,respectSamplingDecision:!0};function DF(e,t,n,r){function s(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{u(r.next(d))}catch(h){a(h)}}function c(d){try{u(r.throw(d))}catch(h){a(h)}}function u(d){d.done?i(d.value):s(d.value).then(l,c)}u((r=r.apply(e,[])).next())})}let ph=null;const LF="@opentelemetry/api";function MF(){return ph===null&&(ph=import(LF).catch(()=>null)),ph}function $F(){return DF(this,void 0,void 0,function*(){try{const e=yield MF();if(!e||!e.propagation||!e.context)return null;const t={};e.propagation.inject(e.context.active(),t);const n=t.traceparent;return n?{traceparent:n,tracestate:t.tracestate,baggage:t.baggage}:null}catch{return null}})}function FF(e){if(!e||typeof e!="string")return null;const t=e.split("-");if(t.length!==4)return null;const[n,r,s,i]=t;if(n.length!==2||r.length!==32||s.length!==16||i.length!==2)return null;const a=/^[0-9a-f]+$/i;return!a.test(n)||!a.test(r)||!a.test(s)||!a.test(i)||r==="00000000000000000000000000000000"||s==="0000000000000000"?null:{version:n,traceId:r,parentId:s,traceFlags:i,isSampled:(parseInt(i,16)&1)===1}}function BF(e,t){if(!e||!t||t.length===0)return!1;let n;if(e instanceof URL)n=e;else try{n=new URL(e)}catch{return!1}for(const r of t)try{if(typeof r=="string"){if(UF(n.hostname,r))return!0}else if(r instanceof RegExp){if(r.test(n.hostname))return!0}else if(typeof r=="function"&&r(n))return!0}catch{continue}return!1}function UF(e,t){if(t===e)return!0;if(t.startsWith("*.")){const n=t.slice(2);if(e.endsWith(n)&&(e===n||e.endsWith("."+n)))return!0}return!1}function zF(e){const t=[];try{const n=new URL(e);t.push(n.hostname)}catch{}return t.push("*.supabase.co","*.supabase.in"),t.push("localhost","127.0.0.1","[::1]"),t}function Ro(e){"@babel/helpers - typeof";return Ro=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},Ro(e)}function VF(e,t){if(Ro(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ro(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WF(e){var t=VF(e,"string");return Ro(t)=="symbol"?t:t+""}function HF(e,t,n){return(t=WF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L0(Object(n),!0).forEach(function(r){HF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const KF=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),qF=()=>Headers,GF=(e,t,n,r,s)=>{const i=KF(r),a=qF(),l=(s==null?void 0:s.enabled)===!0,c=(s==null?void 0:s.respectSamplingDecision)!==!1,u=l?zF(t):null;return async(d,h)=>{var f;const p=(f=await n())!==null&&f!==void 0?f:e;let x=new a(h==null?void 0:h.headers);if(x.has("apikey")||x.set("apikey",e),x.has("Authorization")||x.set("Authorization",`Bearer ${p}`),u){const y=await YF(d,u,c);y&&(y.traceparent&&!x.has("traceparent")&&x.set("traceparent",y.traceparent),y.tracestate&&!x.has("tracestate")&&x.set("tracestate",y.tracestate),y.baggage&&!x.has("baggage")&&x.set("baggage",y.baggage))}return i(d,Ae(Ae({},h),{},{headers:x}))}};async function YF(e,t,n){if(!BF(typeof e=="string"||e instanceof URL?e:e.url,t))return null;const r=await $F();if(!r||!r.traceparent)return null;if(n){const s=FF(r.traceparent);if(s&&!s.isSampled)return null}return r}function M0(e){return typeof e=="boolean"?{enabled:e}:e}function JF(e){return e.endsWith("/")?e:e+"/"}function QF(e,t){var n,r,s,i,a,l;const{db:c,auth:u,realtime:d,global:h}=e,{db:f,auth:p,realtime:x,global:y}=t,b=M0(e.tracePropagation),g=M0(t.tracePropagation),m={db:Ae(Ae({},f),c),auth:Ae(Ae({},p),u),realtime:Ae(Ae({},x),d),storage:{},global:Ae(Ae(Ae({},y),h),{},{headers:Ae(Ae({},(n=y==null?void 0:y.headers)!==null&&n!==void 0?n:{}),(r=h==null?void 0:h.headers)!==null&&r!==void 0?r:{})}),tracePropagation:{enabled:(s=(i=b==null?void 0:b.enabled)!==null&&i!==void 0?i:g==null?void 0:g.enabled)!==null&&s!==void 0?s:!1,respectSamplingDecision:(a=(l=b==null?void 0:b.respectSamplingDecision)!==null&&l!==void 0?l:g==null?void 0:g.respectSamplingDecision)!==null&&a!==void 0?a:!0},accessToken:async()=>""};return e.accessToken?m.accessToken=e.accessToken:delete m.accessToken,m}function XF(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");
274if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(JF(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var ZF=class extends TF{constructor(e){super(e)}},eB=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const i=XF(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 a=`sb-${i.hostname.split(".")[0]}-auth-token`,l={db:IF,realtime:RF,auth:Ae(Ae({},PF),{},{storageKey:a}),global:_F,tracePropagation:OF},c=QF(n??{},l);if(this.settings=c,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=GF(t,e,this._getAccessToken.bind(this),c.global.fetch,c.tracePropagation),this.realtime=this._initRealtimeClient(Ae({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},c.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new c$(new
274URL("rest/v1",i).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch,timeout:c.db.timeout,urlLengthLimit:c.db.urlLengthLimit}),this.storage=new T3(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new e$(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)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,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:a,lock:l,debug:c,throwOnError:u,experimental:d,lockAcquireTimeout:h,skipAutoInitialize:f},p,x){const y={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new ZF({url:this.authUrl.href,headers:Ae(Ae({},y),p),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:a,lock:l,debug:c,throwOnError:u,experimental:d,fetch:x,lockAcquireTimeout:h,skipAutoInitialize:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(b=>b.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new Q$(this.realtimeUrl.href,Ae(Ae({},e),{},{params:Ae(Ae({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const tB=(e,t,n)=>new eB(e,t,n);function nB(){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)<=20:!1}nB()&&console.warn("â ï¸ Node.js 20 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 22 or later. For more information, visit: https://github.com/orgs/supabase/discussions/45715");function rB(){var b,g;if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(m=>e===m||e.endsWith("."+m)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=n?((b=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:b[1])??((g=e.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:g[1]):void 0,i=window.parent&&window.parent!==window;if(!s||!i)return localStorage;const a=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),l=a?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,c=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),u=c&&l.test(c)?[c]:a?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],d="lovable-preview-auth:result",h=2e3,f=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),p=(m,v,k)=>new Promise(S=>{const j=f();let A=!1,E;const N=D=>{A||(A=!0,clearTimeout(E),window.removeEventListener("message",R),S(D))},R=D=>{if(u.indexOf(D.origin)<0)return;const K=D.data;K&&K.type===d&&K.requestId===j&&N(K)};window.addEventListener("message",R);const z={type:m,requestId:j,projectId:s,key:v};k!==void 0&&(z.value=k);for(const D of u)window.parent.postMessage(z,D);E=setTimeout(()=>N(null),h)});let x=!0;const y=250;return{getItem:async m=>{let v=await p("lovable-preview-auth:get",m);return!v&&x&&(await new Promise(k=>setTimeout(k,y)),v=await p("lovable-preview-auth:get",m)),x=!1,v&&v.ok&&typeof v.value=="string"?v.value===""?(localStorage.removeItem(m),null):v.value:localStorage.getItem(m)},setItem:(m,v)=>(localStorage.setItem(m,v),p("lovable-preview-auth:set",m,v).then(k=>{k&&k.ok&&typeof k.value=="string"&&localStorage.getItem(m)===v&&(k.value===""?localStorage.removeItem(m):localStorage.setItem(m,k.value))})),removeItem:m=>(localStorage.removeItem(m),p("lovable-preview-auth:remove",m).then(()=>{}))}}const sB="https://duzknkjkkdvbadzffyek.supabase.co",iB="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImR1emtua2pra2R2YmFkemZmeWVrIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzMwMDEzNDUsImV4cCI6MjA4ODU3NzM0NX0.ih7pZGAipomKz1xJEKspp4TlXksubnOXtM-5kXdjhQA",dn=tB(sB,iB,{auth:{storage:rB(),persistSession:!0,autoRefreshToken:!0}}),mh=[{value:"keynote",label:"Keynote"},{value:"workshop",label:"Workshop"},{value:"ai-ceo-school",label:"AI CEO School"},{value:"panel",label:"Panel"},{value:"corporate",label:"Corporate Event"},{value:"podcast",label:"Podcast / Media"},{value:"other",label:"Other"}],gh=[{value:"under-10k",label:"Under $10,000"},{value:"10k-20k",label:"$10,000â$20,000"},{value:"20k-35k",label:"$20,000â$35,000"},{value:"35k-plus",label:"$35,000+"},{value:"not-sure",label:"Not sure"}],aB=()=>{var b;const{toast:e}=Vo(),[t,n]=w.useState({name:"",email:"",organization:"",eventDate:"",message:"",speakingBudget:""}),[r,s]=w.useState([]),[i,a]=w.useState(!1),[l,c]=w.useState(!1),[u,d]=w.useState(!1),h=async g=>{var m;g.preventDefault(),d(!0);try{const v=crypto.randomUUID(),{error:k}=await dn.from("contact_inquiries").insert({id:v,name:t.name,email:t.email,organization:t.organization||null,event_types:r.length>0?r:null,event_date:t.eventDate||null,message:t.message,speaking_budget:t.speakingBudget||null});if(k)throw k;await dn.functions.invoke("send-transactional-email",{body:{templateName:"inquiry-notification",recipientEmail:"[email protected]",idempotencyKey:`inquiry-notify-${v}`,templateData:{name:t.name,email:t.email,organization:t.organization,eventTypes:r.map(S=>{var j;return(j=mh.find(A=>A.value===S))==null?void 0:j.label}
274).filter(Boolean).join(", "),eventDate:t.eventDate,speakingBudget:((m=gh.find(S=>S.value===t.speakingBudget))==null?void 0:m.label)||"Not provided",message:t.message}}}),e({title:"Thank you!",description:"Your inquiry has been received. Seema's team will be in touch shortly."}),n({name:"",email:"",organization:"",eventDate:"",message:"",speakingBudget:""}),s([])}catch(v){console.error("Submission error:",v),e({title:"Something went wrong",description:"Please try again or email [email protected] directly.",variant:"destructive"})}finally{d(!1)}},f=g=>{n({...t,[g.target.name]:g.target.value})},p=g=>{s(m=>m.includes(g)?m.filter(v=>v!==g):[...m,g])},x=r.map(g=>{var m;return(m=mh.find(v=>v.value===g))==null?void 0:m.label}).filter(Boolean).join(", "),y="w-full bg-background border border-border rounded-lg px-4 py-3.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary transition-colors";return o.jsxs("div",{children:[o.jsx(Tt,{title:"Book Seema Alexander â AI Keynote Speaker & Executive AI Workshops",description:"Contact Seema Alexander's team to book an AI keynote, executive AI workshop, or employee AI fluency training. Keynotes from $12.5K · workshops from $15K.",path:"/contact"}),o.jsxs("section",{className:"section-padding relative overflow-hidden min-h-screen",children:[o.jsx("div",{className:"absolute inset-0",children:o.jsx("img",{src:J5,alt:"",className:"w-full h-full object-cover grayscale opacity-[0.07]"})}),o.jsx("div",{className:"absolute top-1/3 left-0 right-0 pointer-events-none select-none overflow-hidden",children:o.jsx("p",{className:"font-heading text-[15vw] font-bold uppercase leading-none tracking-tighter whitespace-nowrap opacity-[0.03]",children:"CONTACT"})}),o.jsx("div",{className:"container mx-auto px-6 max-w-4xl relative z-10",children:o.jsxs("div",{className:"grid lg:grid-cols-2 gap-16",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase mb-6",children:"Contact"}),o.jsxs("h1",{className:"font-heading text-4xl md:text-5xl uppercase tracking-tight leading-[0.95] mb-8",children:["Bring ",o.jsx("span",{className:"text-primary",children:"Seema Alexander"}),o.jsx("br",{}),"And ",o.jsx("span",{className:"text-primary",children:"The Great Business Rewiringâ¢"}),o.jsx("br",{}),"To Your Stage."]}),o.jsx("p",{className:"text-foreground text-sm leading-relaxed mb-10",children:"Whether you're hosting a leadership summit, customer conference, executive offsite, or board retreat, Seema tailors every engagement to your audience, industry, and business objectives."}),o.jsx("div",{className:"space-y-4",children:["International conferences & leadership summits","Corporate keynotes & executive briefings","Executive AI workshops & leadership offsites","Board strategy sessions","Media interviews & podcast appearances"].map((g,m)=>o.jsxs("div",{className:"flex items-center gap-3 text-sm text-foreground",children:[o.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary"}),g]},m))}),o.jsxs("div",{className:"mt-10 space-y-4 text-foreground text-sm leading-relaxed",children:[o.jsx("p",{children:"Every engagement is tailored to your audience, industry, and business objectives. Whether delivering a keynote to thousands, facilitating an executive workshop, or leading an employee town hall, Seema works closely with every client to create a relevant, high-impact experience."}),o.jsx("p",{className:"text-xs text-primary font-bold tracking-[0.3em] uppercase",children:"Engagements include"}),o.jsx("ul",{className:"space-y-2",children:["Executive discovery call","Customized presentation and research","Audience-specific insights and examples","Event promotion assets (bio, headshots, and marketing materials)","Optional Q&A and executive meet-and-greet"].map((g,m)=>o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx("span",{className:"w-1 h-1 rounded-full bg-primary mt-2 shrink-0"}),g]},m))})]}),o.jsxs("div",{className:"mt-10 pt-8 border-t border-border space-y-4",children:[o.jsx("p",{className:"text-xs text-primary font-bold tracking-[0.3em] uppercase",children:"AI Keynote Engagements"}),o.jsx("p",{className:"text-foreground text-sm leading-relaxed",children:"Investment is customized based on engagement type, audience, location, and level of customization. International engagements, executive retreats, multi-day programs, and customized executive experiences are scoped based on audie
274nce, format, travel, and event requirements."}),o.jsx("p",{className:"text-foreground text-sm leading-relaxed",children:"Submit an inquiry to discuss your event, audience, and goals."})]})]}),o.jsx(C,{delay:.15,children:o.jsxs("form",{onSubmit:h,className:"space-y-4 bg-card p-8 rounded-lg border border-border",children:[o.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[o.jsx("input",{type:"text",name:"name",placeholder:"Full Name *",required:!0,value:t.name,onChange:f,className:y}),o.jsx("input",{type:"email",name:"email",placeholder:"Email *",required:!0,value:t.email,onChange:f,className:y})]}),o.jsx("input",{type:"text",name:"organization",placeholder:"Organization",value:t.organization,onChange:f,className:y}),o.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[o.jsxs("div",{className:"relative",children:[o.jsxs("button",{type:"button",onClick:()=>a(!i),className:y+" text-left flex items-center justify-between gap-2",children:[o.jsx("span",{className:x?"text-foreground truncate":"text-muted-foreground",children:x||"Event Type"}),o.jsx("svg",{className:`w-4 h-4 text-muted-foreground shrink-0 transition-transform ${i?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),i&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>a(!1)}),o.jsx("div",{className:"absolute top-full left-0 right-0 mt-1 bg-card border border-border rounded-lg py-1 z-20 shadow-lg",children:mh.map(g=>o.jsxs("button",{type:"button",onClick:()=>p(g.value),className:"w-full text-left flex items-center gap-3 px-4 py-2.5 text-sm cursor-pointer hover:bg-muted/30 transition-colors",children:[o.jsx("span",{className:`w-4 h-4 rounded border flex items-center justify-center shrink-0 transition-colors ${r.includes(g.value)?"bg-primary border-primary":"border-border"}`,children:r.includes(g.value)&&o.jsx("svg",{className:"w-3 h-3 text-primary-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})})}),o.jsx("span",{className:"text-foreground",children:g.label})]},g.value))})]})]}),o.jsx("input",{type:"text",name:"eventDate",placeholder:"Preferred Date(s)",value:t.eventDate,onChange:f,className:y})]}),o.jsxs("div",{className:"relative",children:[o.jsxs("button",{type:"button",onClick:()=>c(!l),className:y+" text-left flex items-center justify-between gap-2",children:[o.jsx("span",{className:t.speakingBudget?"text-foreground truncate":"text-muted-foreground",children:((b=gh.find(g=>g.value===t.speakingBudget))==null?void 0:b.label)||"Speaking Budget"}),o.jsx("svg",{className:`w-4 h-4 text-muted-foreground shrink-0 transition-transform ${l?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),l&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>c(!1)}),o.jsx("div",{className:"absolute top-full left-0 right-0 mt-1 bg-card border border-border rounded-lg py-1 z-20 shadow-lg",children:gh.map(g=>o.jsx("button",{type:"button",onClick:()=>{n(m=>({...m,speakingBudget:g.value})),c(!1)},className:"w-full text-left px-4 py-2.5 text-sm text-foreground hover:bg-muted/30 transition-colors",children:g.label},g.value))})]})]}),o.jsx("textarea",{name:"message",placeholder:"Tell us about your event and audience *",required:!0,rows:5,value:t.message,onChange:f,className:y+" resize-none"}),o.jsxs("button",{type:"submit",disabled:u,className:"w-full bg-primary text-primary-foreground px-8 py-3.5 text-xs font-bold tracking-widest uppercase rounded-full hover:opacity-90 transition-opacity inline-flex items-center justify-center gap-2 disabled:opacity-50",children:[u?"Sendingâ¦":"Send Inquiry"," ",!u&&o.jsx(re,{size:14})]})]})})]})})]})]})},oB="/assets/podcast-interview-BloysFmu.jpeg",lB="https://feeds.libsyn.com/460926/rss",cB=()=>{const[e,t]=w.useState([]),[n,r]=w.useState(!0),[s,i]=w.useState("");return w.useEffect(()=>{(async()=>{var l;try{const u=await(await fetch(`https://api.rss2json.com/v1/api.json?rss_url=${encodeURIComponent(lB)}`)).json();u.status==="ok"&&((l=u.feed)!=null&&l.image&&i(u.feed.image),u.items&&t(u.items.slice(0,6).map(d=>{var h,f,p;
274return{title:d.title,description:((h=d.description)==null?void 0:h.replace(/<[^>]*>/g,"").slice(0,160))+"â¦",pubDate:new Date(d.pubDate).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),link:d.link,thumbnail:d.thumbnail||((f=d.enclosure)==null?void 0:f.thumbnail)||((p=u.feed)==null?void 0:p.image)||""}})))}catch(c){console.error("Failed to fetch podcast episodes:",c)}finally{r(!1)}})()},[]),o.jsx("section",{className:"section-padding",children:o.jsxs("div",{className:"container mx-auto px-6",children:[n?o.jsx("div",{className:"grid md:grid-cols-2 gap-4 max-w-4xl mx-auto",children:[1,2,3,4].map(a=>o.jsxs("div",{className:"rounded-lg border border-border bg-card p-6 animate-pulse",children:[o.jsx("div",{className:"h-3 bg-muted rounded w-1/4 mb-4"}),o.jsx("div",{className:"h-5 bg-muted rounded w-3/4 mb-3"}),o.jsx("div",{className:"h-3 bg-muted rounded w-full"})]},a))}):o.jsx("div",{className:"grid md:grid-cols-2 gap-4 max-w-4xl mx-auto",children:e.map((a,l)=>o.jsx(C,{delay:l*.06,children:o.jsxs("a",{href:a.link,target:"_blank",rel:"noopener noreferrer",className:"flex gap-4 rounded-lg border border-border bg-card p-4 h-full hover:border-primary/40 transition-colors group",children:[(a.thumbnail||s)&&o.jsx("img",{src:a.thumbnail||s,alt:a.title,className:"w-20 h-20 rounded-md object-cover shrink-0 grayscale group-hover:grayscale-0 transition-all"}),o.jsxs("div",{className:"flex flex-col min-w-0",children:[o.jsx("p",{className:"text-xs text-primary font-bold tracking-widest uppercase mb-2",children:a.pubDate}),o.jsx("h3",{className:"text-sm font-semibold mb-1.5 group-hover:text-primary transition-colors leading-snug line-clamp-2",children:a.title}),o.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed line-clamp-2",children:a.description})]})]})},l))}),o.jsx(C,{children:o.jsxs("div",{className:"flex flex-wrap justify-center gap-4 mt-10",children:[o.jsxs("a",{href:"https://podcasts.apple.com/us/podcast/the-ai-ceo-with-seema-alexander/id1676444315",target:"_blank",rel:"noopener noreferrer",className:"border border-foreground
274/30 text-foreground px-6 py-3 text-xs font-bold tracking-widest uppercase rounded-full hover:border-primary hover:text-primary transition-colors inline-flex items-center gap-2",children:["Apple Podcasts ",o.jsx(re,{size:12})]}),o.jsxs("a",{href:"https://open.spotify.com/show/0X43DVq472ql1sYZDfa0nd",target:"_blank",rel:"noopener noreferrer",className:"border border-foreground/30 text-foreground px-6 py-3 text-xs font-bold tracking-widest uppercase rounded-full hover:border-primary hover:text-primary transition-colors inline-flex items-center gap-2",children:["Spotify ",o.jsx(re,{size:12})]}),o.jsxs("a",{href:"https://sites.libsyn.com/460926",target:"_blank",rel:"noopener noreferrer",className:"border border-foreground/30 text-foreground px-6 py-3 text-xs font-bold tracking-widest uppercase rounded-full hover:border-primary hover:text-primary transition-colors inline-flex items-center gap-2",children:["All Episodes ",o.jsx(re,{size:12})]})]})})]})})},uB="/assets/podcast-studio-2-wbMlCY.jpeg",dB=[{icon:XC,value:"100K+",label:"Downloads"},{icon:Qi,value:"50+",label:"Episodes"},{icon:Nu,value:"50+",label:"Countries"}],hB=()=>{const{toast:e}=Vo(),[t,n]=w.useState({name:"",email:"",company:"",title:"",topic:"",bio:"",social_links:"",message:""}),[r,s]=w.useState(!1),i={"@context":"https://schema.org","@type":"PodcastSeries",name:"The AI CEO Podcast",description:"The AI CEO Podcast by Seema Alexander delivers practical AI strategies for executives, founders, and operators navigating the AI revolution.",url:"https://seemaalexander.com/podcast",author:{"@type":"Person",name:"Seema Alexander"},webFeed:"https://feeds.libsyn.com/460926/rss",inLanguage:"en-US"},a=u=>{n({...t,[u.target.name]:u.target.value})},l=async u=>{u.preventDefault(),s(!0);try{const{error:d}=await dn.from("podcast_guest_applications").insert({name:t.name,email:t.email,company:t.company||null,title:t.title||null,topic:t.topic,bio:t.bio||null,social_links:t.social_links||null,message:t.message||null});if(d)throw d;await dn.functions.invoke("send-transactional-email",{body:{templateName:"inquiry-notification",recipientEmail:"[email protected]",idempotencyKey:`guest-app-${Date.now()}`,templateData:{name:t.name,email:t.email,organization:t.company,eventTypes:"Podcast Guest Application",eventDate:"",message:`Topic: ${t.topic} 275 276Bio: ${t.bio||"N/A"} 277 278Social: ${t.social_links||"N/A"} 279 280${t.message||""}`}}}),e({title:"Application Received!",description:"Thank you for your interest. We'll review your application and be in touch."}),n({name:"",email:"",company:"",title:"",topic:"",bio:"",social_links:"",message:""})}catch(d){console.error("Guest application error:",d),e({title:"Something went wrong",description:"Please try again or email [email protected] directly.",variant:"destructive"})}finally{s(!1)}},c="w-full bg-background border border-border rounded-lg px-4 py-3.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary transition-colors";return o.jsxs("div",{children:[o.jsx(Tt,{title:"The AI CEO Podcast â AI Strategy | Seema Alexander",description:"Practical AI strategy for executives, founders, and operators navigating the AI revolution. Listen on Apple Podcasts and Spotify.",path:"/podcast",jsonLd:i}),o.jsxs("section",{className:"section-padding relative overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-cover bg-center grayscale opacity-30",style:{backgroundImage:`url(${uB})`}}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background/80 via-background/60 to-background"}),o.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none select-none",children:o.jsx("p",{className:"font-heading text-[12vw] font-bold uppercase tracking-tighter opacity-[0.03] whitespace-nowrap",children:"PODCAST"})}),o.jsx("div",{className:"container mx-auto px-6 text-center max-w-3xl relative z-10",children:o.jsxs(C,{children:[o.jsxs("div",{className:"flex items-center justify-center gap-3 mb-6",children:[o.jsx(t1,{className:"text-primary",size:20}),o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase",children:"The Podcast"})]}),o.jsx("h1",{className:"font-heading text-4xl md:text-6xl uppercase tracking-tight leading-[0.95] mb-8",children:"The AI CEO"}),o.jsx("p",{className:"text-muted-foreground text-sm md:text-base leading-relaxed mb-10 max-w-xl mx-auto",children:"AI isn't just another tool â it's the next frontier of business. The AI CEO Podcast explores the intersection of AI, business strategy, and leadership, equipping CEOs, founders, and executives with actionable insights."}),o.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[o.jsxs("a",{href:"https://podcasts.apple.com/us/podcast/the-ai-ceo-with-seema-alexander/id1676444315",target:"_blank",rel:"noopener noreferrer",className:"bg-primary text-primary-foreground px-8 py-3.5 text-xs font-bold tracking-widest uppercase rounded-full hover:opacity-90 transition-opacity inline-flex items-center gap-2",children:["Apple Podcasts ",o.jsx(re,{size:14})]}),o.jsxs("a",{href:"https://open.spotify.com/show/0X43DVq472ql1sYZDfa0nd",target:"_blank",rel:"noopener noreferrer",className:"border border-foreground
280/30 text-foreground px-8 py-3.5 text-xs font-bold tracking-widest uppercase rounded-full hover:border-primary hover:text-primary transition-colors inline-flex items-center gap-2",children:["Spotify ",o.jsx(re,{size:14})]}),o.jsxs("a",{href:"https://youtube.com/@AICEOPodcast",target:"_blank",rel:"noopener noreferrer",className:"border border-foreground/30 text-foreground px-8 py-3.5 text-xs font-bold tracking-widest uppercase rounded-full hover:border-primary hover:text-primary transition-colors inline-flex items-center gap-2",children:["YouTube ",o.jsx(re,{size:14})]})]})]})})]}),o.jsx("section",{className:"py-12 border-b border-border",children:o.jsx("div",{className:"container mx-auto px-6",children:o.jsx("div",{className:"flex flex-wrap justify-center gap-12 md:gap-20",children:dB.map((u,d)=>o.jsx(C,{delay:d*.1,children:o.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[o.jsx(u.icon,{className:"text-primary mb-1",size:20}),o.jsx("span",{className:"font-heading text-2xl md:text-3xl font-bold text-primary",children:u.value}),o.jsx("span",{className:"text-xs text-muted-foreground tracking-widest uppercase",children:u.label})]})},d))})})}),o.jsx(cB,{}),o.jsx("section",{className:"section-padding bg-card",children:o.jsx("div",{className:"container mx-auto px-6 max-w-3xl text-center",children:o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary mb-6",children:"Partner With Us"}),o.jsxs("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tighter leading-[0.9] mb-6",children:["Sponsor The ",o.jsx("span",{className:"text-primary",children:"AI CEO"})," Podcast"]}),o.jsx("p",{className:"text-muted-foreground text-sm md:text-base leading-relaxed mb-8 max-w-xl mx-auto",children:"Reach the top 5% of business leaders actively navigating the AI era. The AI CEO Podcast delivers a highly engaged audience of CEOs, founders, and senior executives who are making buying decisions right now."}),o.jsx("div",{className:"grid sm:grid-cols-3 gap-4 mb-10",children:[{label:"Pre-Roll & Mid-Roll",desc:"Premium ad placements woven into each episode"},{label:"Branded Segments",desc:"Custom segments featuring your brand's AI story"},{label:"Cross-Promotion",desc:"Amplification across newsletter, social, and events"}].map((u,d)=>o.jsx(C,{delay:d*.08,children:o.jsxs("div",{className:"p-5 rounded-lg border border-border bg-background text-left",children:[o.jsxs("span",{className:"text-primary text-xs font-bold tracking-widest block mb-2",children:["0",d+1]}),o.jsx("h3",{className:"font-heading text-sm uppercase tracking-tight mb-1",children:u.label}),o.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:u.desc})]})},d))}),o.jsxs(ae,{to:"/sponsorship",className:"bg-primary text-primary-foreground px-10 py-4 text-xs font-bold tracking-widest uppercase rounded-full hover:opacity-90 transition-opacity inline-flex items-center gap-2",children:[o.jsx(bm,{size:14})," Inquire About Sponsorship"]})]})})}),o.jsx("section",{className:"section-padding",children:o.jsx("div",{className:"container mx-auto px-6 max-w-4xl",children:o.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-16",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary mb-6",children:"Be a Guest"}),o.jsxs("h2",{className:"font-heading text-3xl md:text-4xl uppercase tracking-tighter leading-[0.9] mb-6",children:["For The 5% Who Are ",o.jsx("span",{className:"text-primary",children:"Actually Building It"})]}),o.jsxs("p",{className:"text-foreground text-sm leading-relaxed mb-6",children:["The AI CEO Podcast is not for spectators. We feature the small percentage of leaders who are ",o.jsx("span",{className:"text-primary font-semibold",children:"spearheading, building, and educating"})," in the AI space â executives, operators, founders, and advisors who are making real AI decisions, shipping real AI products, or teaching others how to do it."]}),o.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed mb-8",children:"If you are in the arena â not just watching it â tell us what you are building, leading, or teaching, and why our audience of CEOs and operators needs to hear it now."}),o.jsx("div",{className:"space-y-4",children:["C-suite or senior operating leader with direct AI ownership","Founder or builder of an AI product, platform, or service","Educator, researcher, or policy voice shaping responsible AI adoption","Advising enterprise or scale-up teams on AI transformation"].map((u,d)=>o.jsxs("div",{className:"flex items-start gap-3 text-sm text-foreground",children:[o.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary mt-1.5 shrink-0"}),u]},d))})]}),o.jsx(C,{delay:.15,children:o.jsxs("form",{onSubmit:l,className:"space-y-4 bg-card p-8 rounded-lg border border-border",children:[o.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[o.jsx("input",{type:"text",name:"name",placeholder:"Full Name *",required:!0,value:t.name,onChange:a,className:c}),o.jsx("input",{type:"email",name:"email",placeholder:"Email *",required:!0,value:t.email,onChange:a,className:c})]}),o.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[o.jsx("input",{type:"text",name:"company",placeholder:"Company / Organization",value:t.company,onChange:a,className:c}),o.jsx("input",{type:"text",name:"title",placeholder:"Title / Role",value:t.title,onChange:a,className:c})]}),o.jsx("input",{type:"text",name:"topic",placeholder:"Proposed Topic / Angle *",required:!0,value:t.topic,onChange:a,className:c}),o.jsx("textarea",{name:"bio",placeholder:"Brief Bio â what makes you part of the 5%?",rows:3,value:t.bio,onChange:a,className:c+" resize-none"}),o.jsx("input",{type:"text",name:"social_links",placeholder:"LinkedIn / Website / Company URL",value:t.social_links,onChange:a,className:c}),o.jsx("textarea",{name:"message",placeholder:"What are you spearheading, building, or educating on in AI? *",required:!0,rows:4,value:t.message,onChange:a,className:c+" resize-none"}),o.jsxs("button",{type:"submit",disabled:r,className:"w-full bg-primary text-primary-foreground px-8 py-3.5 text-xs font-bold tracking-widest uppercase rounded-full hover:opacity-90 transition-opacity inline-flex items-center justify-center gap-2 disabled:opacity-50",children:[r?"Submittingâ¦":"Apply to Be a Guest"," ",!r&&o.jsx(a_,{size:14})]})]})})]})})}),o.jsx("section",{className:"w-full",children:o.jsx(C,{children:o.jsx("div",{className:"w-full aspect-[21/9] overflow-hidden",children:o.jsx("img",{src:oB,alt:"Seema Alexander podcast interview",className:"w-full h-full object-cover object-center grayscale"})})})})]})},Js=({children:e})=>o.jsx("span",{className:"bg-primary text-primary-foreground px-1.5 py-0.5 rounded-sm font-medium",children:e}),fB=Gk("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),an=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const a=r?sC:"button";return o.jsx(a,{className:mn(fB({variant:t,size:n,className:e})),ref:i,...s})});an.displayName="Button";const pB="/assets/seema-panel-dcstw-BZoK7hro.jpeg",mB="Seema Alexander is an international keynote speaker, AI and business futurist, entrepreneur, and Founder & CEO of Disruptive AI. She helps CEOs, founders, and executive teams navigate what she calls The Great Business Rewiringâ¢âthe fundamental shift in how organizations operate, compete, and create value in the age of AI. Through Disruptive AI's three pillarsâexecutive AI education, AI-native products and intelligent systems, and venture partnerships with AI-native companies redefining the future of their industriesâSeema helps leaders move beyond experimentation and build businesses designed for the AI era. She is also the host of The AI CEO Podcast and creator of AI BusinessConâ¢.",$0=`Seema Alexander is an international keynote speaker, AI and business futurist, entrepreneur, and Founder & CEO of Disruptive AI, a company helping organizations rethink, reimagine, and rewire their businesses for the AI era. 281 282Disruptive AI operates across three core pillars: executive AI education, AI-native products and intelligent systems, and venture partnerships with AI-native companies redefining the future of their industries. Together, these pillars help organizations build the leadership capabilities, intelligent technologies, and next-generation business models needed to compete in a world where intelligence is becoming embedded into every function of the enterprise. 283 284A former Fortune 500 executive turned serial entrepreneur, Seema brings more than 25 years of experience spanning executive leadership, entrepreneurship, growth strategy, and emerging technologies. Throughout her career, she has advised hundreds of organizations, from startups to global enterprises, helping leaders navigate disruption, accelerate growth, and create lasting competitive advantage. 285 286She is the creator of The Great Business Rewiringâ¢, a business-first framework that explores how AI is transforming operating models, organizational design, customer experiences, products, workforce strategy, and competitive advantage. Rather than focusing on AI tools or technical demonstrations, Seema equips executive teams with the strategic frameworks needed to make confident business decisions during one of the most significant technology shifts in history. 287 288Seema is also the host of The AI CEO Podcast, creator of AI BusinessConâ¢âthe world's first conference dedicated to the business rewiring of the AI eraâand CEO & Founder of Disruptive AI. She previously served as Co-Chair of DC Startup & Tech Week, where she helped grow one of the Mid-Atlantic's leading innovation ecosystems and elevate conversations around entrepreneurship and emerging technologies. 289 290Over the past two years, Seema has delivered more than 115 keynotes, executive workshops, briefings, and panel discussions for Fortune 500 companies, global organizations, government agencies, universities, and industry associations. Her clients and audiences include organizations such as the World Bank, IB
290M, Wells Fargo, Gensler, JLL, the U.S. Department of State, the World Trade Center Institute, and the District of Columbia Department of Insurance, Securities and Banking (DISB). 291 292Known for translating complex technological shifts into clear business strategy, Seema helps leaders move beyond AI curiosity to strategic conviction. Whether she's speaking from the main stage, advising executive teams, building AI-native products, or partnering with category-defining startups, her mission is the same: to help leaders build organizations designed to thrive in the age of intelligent systems.`,gB=["Disruptive AI","The Great Business Rewiringâ¢","AI CEO Podcast","AI BusinessConâ¢"],yB=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),xB=({text:e})=>{const t=new RegExp(`(${gB.map(yB).join("|")})`,"g"),n=e.split(t);return o.jsx(o.Fragment,{children:n.map((r,s)=>s%2===1?o.jsx(Js,{children:r},s):o.jsx("span",{children:r},s))})},vB=[{src:Ki,label:"Headshot",alt:"Seema Alexander professional headshot"},{src:Xc,label:"On Stage â DCSTW",alt:"Seema Alexander on stage at DC Startup & Tech Week"},{src:Hu,label:"Audience · Post-Workshop",alt:"Seema Alexander audience selfie after a workshop"},{src:wg,label:"Speakers Panel",alt:"Seema Alexander on a speakers panel"},{src:pB,label:"Panel Discussion",alt:"Seema Alexander participating in a panel discussion"},{src:pA,label:"Panel â DCSTW",alt:"Seema Alexander on a panel at DC Startup & Tech Week"}],bB=[{icon:Nu,label:"Signature Keynote",value:"The Great Business Rewiringâ¢"},{icon:Qi,label:"Audiences",value:"CEOs, C-Suite, Boards, Employees, Conferences"},{icon:vm,label:"Reach",value:"Washington, D.C. · Global"},{icon:e1,label:"Investment",value:"Keynotes from $12,500+ · Workshops from $15,000+"},{icon:Qk,label:"Formats",value:"Keynote, Workshop, Executive Briefing, Fireside Chat"},{icon:Zk,label:"Duration",value:"30 min keynotes to multi-day executive programs"},{icon:Jk,label:"Experience",value:"25+ years · 115+ keynotes in the last 2 years"},{icon:bm,label:"Booking",value:"[email protected]"}],wB=[{title:"The Great Business Rewiringâ¢: Why AI Is 10x Bigger Than the Internet",audience:"C-Suite, Founders & Executive Teams",desc:"A strategic reset for the leaders who will decide the next decade. Seema reframes AI as a business model question â not a technology question â and translates its impact into capital allocation, operating model, margin structure, and competitive moats.",outcomes:["Clear-eyed view of AI's P&L impact","Three strategic decisions to align on now","Framework for leading the intelligent economy"]},{title:"The Great Business Rewiringâ¢: How AI Will Change the Way We Work",audience:"Employees, All-Hands & Workforce Upskilling",desc:"Designed for company-wide rollouts and employee upskilling programs, this session makes AI accessible, practical, and inspiring. Seema demystifies how AI will reshape day-to-day work and how every employee can become a confident contributor in an intelligent organization.",outcomes:["Reduced fear and stronger AI fluency","Immediate ways to apply AI to individual roles","Mindset shift from AI-enabled to intelligent organization"]},{title:"The Great Business Rewiringâ¢: Why AI Is the Defining Moment for Women Leaders",audience:"Women Leaders, Founders & Executives",desc:"A powerful reframing of AI as a leadership advantage for women navigating the AI-imperative decade. Seema connects personal story, business strategy, and the practical steps women leaders should take now to future-proof themselves and their organizations.",outcomes:["Confidence to lead through technological change","Visibility into where AI creates and displaces value","Actionable roadmap for personal and organizational impact"]},{title:"AI Solution Sprint â Keynote + Workshop",audience:"Leadership Teams & Cross-Functional Groups",desc:"A combined keynote and working session that helps leaders and teams translate AI into real business solutions. Attendees identify high-value use cases and leave with a prioritized action plan. Organizations that run this session accelerate smart AI adoption by 25%.",outcomes:["Pri
292oritized AI opportunity map","Cross-functional alignment on pilots","Tangible next steps and ownership"]}],kB=["World Bank","IBM","Wells Fargo","Gensler","JLL","U.S. Department of State","World Trade Center Institute","District of Columbia DISB","University of Maryland","CoreNet Mid-Atlantic","WACIF","DC Startup & Tech Week","Voice of Impact","KPMG","Northern Virginia Tech Council","Alliance of Chief Executives","National Restaurant Association"],SB=[{title:"The AI CEO Podcast",role:"Host & Executive Producer",icon:t1},{title:"AI BusinessConâ¢",role:"Founder & Curator",icon:Jk},{title:"Disruptive AI",role:"CEO & Founder",icon:vm},{title:"DC Startup & Tech Week",role:"Former Co-Chair",icon:Qi}],F0=[{quote:"In an environment flooded with news and opinions on AI, Seema breaks through the noise with insights and forecasts that bring intelligence and theory to the conversation. She is an expert in this space.",name:"Katy Redmond, MCR",role:"Senior Managing Director, JLL",image:Xo},{quote:"Thank you for sharing the technologies and business models reshaping the financial services industry. My team and I really enjoyed your insights!",name:"Karima M. Woods",role:"Commissioner, DISB",image:Ku},{quote:"A thought provoking and inspiring dialogue that sparked new ideas and ways of leveraging AI in our daily work. Seema is extraordinary.",name:"Kimberly Sullivan",role:"Principal & Co-Managing Director, Gensler DC",image:Zo},{quote:"An incredibly engaging and thought-provoking presentation that highlighted why this moment in history is more transformative than the advent of the internet. It was a call to action.",name:"Padmini Soni",role:"Co-Chair AWAAI · CEO, Rezonance AI",image:null},{quote:"Seema delivered an engaging and insightful talk on AI's role in business growth â practical strategies CEOs and founders could act on immediately, leaving our group inspired and motivated.",name:"Tammen Nicholson",role:"Program Officer, U.S. State Department IVLP",image:null},{quote:"Seema's sessions challenge 'business as usual.' Her insights on AI consistently spark global dialogue and help changemakers see beyond today into what's possible tomorrow.",name:"Andrew Nissen",role:"International Changemaker Network",image:null}],jB=({t:e})=>o.jsxs("div",{className:"shrink-0 w-[340px] md:w-[420px] mx-3 p-6 md:p-8 rounded-lg border border-border bg-card flex flex-col",children:[o.jsx(Va,{className:"text-primary mb-4",size:20}),o.jsxs("p",{className:"text-sm text-foreground leading-relaxed italic mb-6 flex-1",children:['"',e.quote,'"']}),o.jsxs("div",{className:"flex items-center gap-3 pt-4 border-t border-border",children:[e.image?o.jsx("img",{src:e.image,alt:`${e.name} testimonial`,className:"w-10 h-10 rounded-full object-cover grayscale"}):o.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/10 text-primary flex items-center justify-center text-xs font-bold",children:e.name.split(" ").map(t=>t[0]).slice(0,2).join("")}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-foreground leading-tight",children:e.name}),o.jsx("p",{className:"text-xs text-muted-foreground leading-tight mt-0.5",children:e.role})]})]})]}),B0=({text:e})=>{const[t,n]=w.useState(!1),r=()=>{navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),2e3)};return o.jsx("button",{onClick:r,className:"text-xs font-bold tracking-widest uppercase text-primary hover:text-primary/80 transition-colors inline-flex items-center gap-1.5",children:t?o.jsxs(o.Fragment,{children:[o.jsx(Ho,{size:12})," Copied"]}):o.jsxs(o.Fragment,{children:[o.jsx(e_,{size:12})," Copy Bio"]})})},AB=()=>o.jsxs("div",{children:[o.jsx(Tt,{title:"Media Kit â Seema Alexander, AI Keynote Speaker",description:"Download photos, speaker bios, keynote topics, and booking essentials for Seema Alexander. Everything event organizers need to promote an AI keynote or workshop.",path:"/media-kit"}),o.jsxs("section",{className:"section-padding relative overflow-hidden",children:[o.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none select-none",children:o.jsx("p",{className:"font-heading text-[14vw] font-bold uppercase tracking-tighter opacity-[0.03] whitespace-nowrap",children:"MEDIA"})}),o.jsx("div",{className:"container mx-auto px-6 relative z-10",children:o.jsx("div",{className:"max-w-4xl",children:o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase mb-6",children:"Speaker Media Kit"}),o.jsxs("h1",{className:"font-heading text-4xl md:text-5xl lg:text-6xl uppercase tracking-tight leading-[0.95] mb-6",children:["Everything You Need to Put"," ",o.jsx("span",{className:"text-primary",children:"Seema Alexander"})," on Stage"]}),o.jsx("p",{className:"text-muted-foreground text-sm md:text-base leading-relaxed max-w-2xl mb-8",children:"Bios, photos, keynote topics, and booking essentials â ready for event organizers, press, and production teams."}),o.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[o.jsx(an,{asChild:!0,children:o.jsxs(ae,{to:"/contact",children:["Book Seema ",o.jsx(za,{size:16})]})}),o.jsx(an,{variant:"outline",asChild:!0,children:o.jsxs("a",{href:"#bios",children:[o.jsx(t_,{size:16})," Copy Bios"]})}),o.jsx(an,{variant:"ghost",asChild:!0,children:o.jsxs("a",{href:"#photos",children:[o.jsx(Dd,{size:16})," Download Photos"]})})]})]})})})]}),o.jsx("section",{className:"section-padding bg-card border-y border-border",children:o.jsx("div",{className:"container mx-auto px-6",children:o.jsxs("div",{className:"grid lg:grid-cols-12 gap-8 lg:gap-12 items-start",children:[o.jsx("div",{className:"lg:col-span-4",children:o.jsx(C,{children:o.jsxs("div",{className:"relative rounded-lg overflow-hidden aspect-[3/4] group",children:[o.jsx("img",{src:Ki,alt:"Seema Alexander professional headshot",className:"w-full h-full object-cover grayscale group-hover:grayscale-0 transition-all duration-500"}),o.jsx("div",{className:"absolute bottom-0 inset-x-0 p-4 bg-gradient-to-t from-background/90 to-transparent",children:o.jsxs("a",{href:Ki,download:!0,className:"inline-flex items-center gap-2 bg-primary text-primary-foreground px-4 py-2 text-xs font-bold tracking-widest uppercase rounded-full",children:[o.jsx(Dd,{size:12})," Download Headshot"]})})]})})}),o.jsx("div",{className:"lg:col-span-8",children:o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary mb-4",children:"At A Glance"}),o.jsx("h2",{className:"font-heading text-3xl md:text-4xl uppercase tracking-tight mb-8",children:"Seema, At A Glance"}),o.jsx("div",{className:"grid sm:grid-cols-2 gap-x-8 gap-y-6",children:bB.map((e,t)=>o.jsxs("div",{className:"flex items-start gap-4 p-4 rounded-lg bg-background/50 border border-border/50",children:[o.jsx("div",{className:"p-2 rounded-md bg-primary/10 text-primary",children:o.jsx(e.icon,{size:18})}),o.jsxs("div",{children:[o.jsx("p",{className:"text-xs uppercase tracking-widest text-muted-foreground mb-1",children:e.label}),o.jsx("p",{className:"text-sm text-foreground font-medium leading-snug",children:e.value})]})]},t))})]})})]})})}),o.jsx("section",{id:"bios",className:"section-padding",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary mb-4",children:"Bios"}),o.jsx("h2",{className:"font-heading text-3xl md:text-4xl uppercase tracking-tight mb-10",children:"Speaker Bios"})]}),o.jsxs("div",{className:"space-y-8",children:[o.jsx(C,{children:o.jsxs("div",{className:"p-6 md:p-8 rounded-lg border border-border bg-card",children:[o.jsxs("div",{className:"flex items-center justify-between mb-4",children:[o.jsx("h3",{className:"font-heading text-sm uppercase tracking-widest text-primary",children:"Short Bio"}),o.jsx(B0,{text:mB})]}),o.jsxs("p",{className:"text-sm md:text-base text-foreground leading-relaxed",children:["Seema Alexander is an international keynote speaker, AI and business futurist, entrepreneur, and Founder & CEO of"," ",o.jsx("a",{href:"https://www.getdisruptive.ai",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:o.jsx(Js,{children:"Disruptive AI"})}),". She helps CEOs, founders, and executive teams navigate what she calls ",o.jsx(Js,{children:"The Great Business Rewiringâ¢"}),"âthe fundamental shift in how organizations operate, compete, and create value in the age of AI. Through"," ",o.jsx("a",{href:"https://www.getdisruptive.ai",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:o.jsx(Js,{children:"Disruptive AI"})}),"'s three pillarsâexecutive AI education, AI-native products and intelligent systems, and venture partnerships with AI-native companies redefining the future of their industriesâSeema helps leaders move beyond experimentation and build businesses designed for the AI era. She is also the host of ",o.jsx(Js,{children:"The AI CEO Podcast"})," and creator of ",o.jsx(Js,{children:"AI BusinessConâ¢"}),"."]})]})}),o.jsx(C,{delay:.08,children:o.jsxs("div",{className:"p-6 md:p-8 rounded-lg border border-border bg-card",children:[o.jsxs("div",{className:"flex items-center justify-between mb-4",children:[o.jsx("h3",{className:"font-heading text-sm uppercase tracking-widest text-primary",children:"Full Bio"}),o.jsx(B0,{text:$0})]}),o.jsx("div",{className:"text-sm md:text-base text-foreground leading-relaxed space-y-4",children:$0.split(` 293 294`).map((e,t)=>o.jsx("p",{children:o.jsx(xB,{text:e})},t))})]})})]})]})}),o.jsx("section",{id:"photos",className:"section-padding bg-card",children:o.jsxs("div",{className:"container mx-auto px-6",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary mb-4",children:"Photos"}),o.jsx("h2",{className:"font-heading text-3xl md:text-4xl uppercase tracking-tight mb-4",children:"Download Photos"}),o.jsx("p",{className:"text-sm text-muted-foreground max-w-2xl mb-10",children:"High-resolution images for press, event promotion, and speaker marketing. Right-click or tap download to save."})]}),o.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4 max-w-5xl",children:vB.map((e,t)=>o.jsx(C,{delay:t*.05,children:o.jsxs("div",{className:"group relative rounded-lg overflow-hidden aspect-[4/3]",children:[o.jsx("img",{src:e.src,alt:e.alt,className:"w-full h-full object-cover grayscale group-hover:grayscale-0 transition-all duration-500"}),o.jsxs("div",{className:"absolute inset-0 bg-background/80 opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex flex-col items-center justify-center gap-2",children:[o.jsxs("a",{href:e.src,download:!0,className:"bg-primary text-primary-foreground px-4 py-2 text-xs font-bold tracking-widest uppercase rounded-full inline-flex items-center gap-1.5",children:[o.jsx(Dd,{size:12})," Download"]}),o.jsx("span",{className:"text-xs text-muted-foreground",children:e.label})]})]})},t))})]})}),o.jsx("section",{className:"section-padding",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary mb-4",children:"Topics"}),o.jsx("h2",{className:"font-heading text-3xl md:text-4xl uppercase tracking-tight mb-4",children:"Keynote Topics"}),o.jsx("p",{className:"text-sm text-muted-foreground max-w-2xl mb-10",children:"Every program is tailored to industry, audience, and business outcome. From 30-minute keynotes to multi-day executive intensives."})]}),o.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:wB.map((e,t)=>o.jsx(C,{delay:t*.06,children:o.jsxs("div",{className:"h-full p-6 md:p-8 rounded-lg border border-border bg-card flex flex-col",children:[o.jsx("p",{className:"text-xs font-bold tracking-widest uppercase text-primary mb-3",children:e.audience}),o.jsx("h3",{className:"font-heading text-lg md:text-xl uppercase tracking-tight mb-4",children:e.title}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-6 flex-1",children:e.desc}),o.jsx("ul",{className:"space-y-2",children:e.outcomes.map((n,r)=>o.jsxs("li",{className:"flex items-start gap-2 text-sm text-foreground",children:[o.jsx("span",{className:"text-primary mt-1",children:"â"}),n]},r))})]})},t))})]})}),o.jsx("section",{className:"section-padding bg-card border-y border-border",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary mb-4",children:"Stages"}),o.jsx("h2",{className:"font-heading text-3xl md:text-4xl uppercase tracking-tight mb-8",children:"Trusted By Global Stages"})]}),o.jsx(C,{children:o.jsx("div",{className:"flex flex-wrap gap-3",children:kB.map((e,t)=>o.jsx("span",{className:"px-4 py-2 rounded-full border border-border bg-background text-sm text-foreground font-medium tracking-tight",children:e},t))})})]})}),o.jsxs("section",{className:"section-padding overflow-hidden",children:[o.jsx("div",{className:"container mx-auto px-6 mb-10",children:o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary mb-4",children:"Praise"}),o.jsx("h2",{className:"font-heading text-3xl md:text-4xl uppercase tracking-tight",children:"What Leaders Are Saying"})]})}),o.jsxs("div",{className:"relative group",children:[o.jsx("div",{className:"flex w-max animate-marquee group-hover:[animation-play-state:paused]",children:[...F0,...F0].map((e,t)=>o.jsx(jB,{t:e},t))}),o.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-24 bg-gradient-to-r from-background to-transparent"}),o.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 w-24 bg-gradient-to-l from-background to-transparent"})]})]}),o.jsx("section",{className:"section-padding",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary mb-4",children:"Media"}),o.jsx("h2",{className:"font-heading text-3xl md:text-4xl uppercase tracking-tight mb-8",children:"Media & Platform Presence"})]}),o.jsx("div",{className:"grid sm:grid-cols-2 gap-4",children:SB.map((e,t)=>o.jsx(C,{delay:t*.06,children:o.jsxs("div",{className:"p-5 rounded-lg border border-border bg-card flex items-start gap-4",children:[o.jsx("div",{className:"p-2 rounded-md bg-primary/10 text-primary shrink-0",children:o.jsx(e.icon,{size:20})}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-heading text-base uppercase tracking-tight mb-1",children:e.title}),o.jsx("p",{className:"text-sm text-muted-foreground",children:e.role})]})]})},t))})]})}),o.jsx("section",{className:"section-padding",children:o.jsx("div",{className:"container mx-auto px-6 max-w-4xl",children:o.jsx(C,{children:o.jsxs("div",{className:"relative overflow-hidden rounded-xl border border-border bg-card p-8 md:p-12",children:[o.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-primary/5 rounded-full blur-3xl -translate-y-1/2 translate-x-1/2"}),o.jsxs("div",{className:"relative z-10 flex flex-col md:flex-row md:items-center md:justify-between gap-8",children:[o.jsxs("div",{className:"max-w-xl",children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary mb-4",children:"Booking"}),o.jsx("h2",{className:"font-heading text-3xl md:text-4xl uppercase tracking-tight mb-4",children:"Bring Seema to Your Stage"}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Keynotes from $12,500+ · Workshops from $15,000+. 2026 dates are limited; 2027 bookings are open."})]}),o.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 shrink-0",children:[o.jsx(an,{asChild:!0,size:"lg",children:o.jsxs(ae,{to:"/contact",children:["Book Now ",o.jsx(za,{size:18})]})}),o.jsx(an,{variant:"outline",size:"lg",asChild:!0,children:o.jsxs("a",{href:"mailto:[email protected]",children:[o.jsx(bm,{size:18})," Email Team"]})})]})]})]})})})})]}),EB=[{num:"01",title:"Rethink",subtitle:"Challenge Every Assumption",points:["Audit your industry through an AI-first lens","Identify which legacy processes AI renders obsolete","Map your competitive landscape post-AI disruption","Assess organizational readiness and resistance"]},{num:"02",ti
294tle:"Reimagine",subtitle:"Design Bold New Possibilities",points:["Envision AI-native business models and revenue streams","Redesign customer experiences with AI at the center","Identify high-impact use cases unique to your industry","Build a vision that inspires your team to move forward"]},{num:"03",title:"Rewire",subtitle:"Implement With Precision",points:["Embed AI into strategy, operations, and culture","Build internal AI fluency across leadership","Create governance frameworks for responsible adoption","Measure outcomes and iterate continuously"]}],TB=()=>o.jsxs("div",{children:[o.jsx(Tt,{title:"Rethink, Reimagine, Rewire â AI Framework | Seema Alexander",description:"Seema Alexander's 3-phase AI leadership framework helps CEOs rethink strategy, reimagine business models, and rewire organizations for the AI era.",path:"/framework"}),o.jsx("section",{className:"pt-32 pb-20 md:pt-40 md:pb-28",children:o.jsx("div",{className:"container mx-auto px-6 max-w-3xl text-center",children:o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase mb-6",children:"The Methodology"}),o.jsxs("h1",{className:"font-heading text-5xl md:text-7xl lg:text-8xl uppercase tracking-tighter leading-[0.9] mb-8",children:["Rethink.",o.jsx("br",{}),"Reimagine.",o.jsx("br",{}),"Rewire."]}),o.jsx("p",{className:"text-muted-foreground text-base md:text-lg leading-relaxed max-w-xl mx-auto",children:"Seema Alexander's Future of Business framework â a proven methodology for leaders ready to move beyond incremental thinking and transform their organizations for the AI era."})]})})}),o.jsx("section",{className:"py-16 border-y border-border",children:o.jsx("div",{className:"container mx-auto px-6 max-w-2xl text-center",children:o.jsx(C,{children:o.jsxs("blockquote",{children:[o.jsxs("p",{className:"font-heading text-xl md:text-2xl leading-snug tracking-tight",children:[`"The companies that will lead the next decade aren't optimizing the old model.`,o.jsx("span",{className:"text-primary",children:" They're building an entirely new one."}),'"']}),o.jsx("footer",{className:"mt-6 text-xs font-bold tracking-[0.3em] uppercase text-muted-foreground",children:"â Seema Alexander"})]})})})}),o.jsx("section",{className:"py-20 md:py-28",children:o.jsx("div",{className:"container mx-auto px-6 max-w-4xl",children:o.jsx("div",{className:"space-y-20",children:EB.map((e,t)=>o.jsx(C,{delay:t*.1,children:o.jsxs("div",{className:"grid md:grid-cols-[200px_1fr] gap-8 items-start",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-primary text-xs font-bold tracking-widest",children:e.num}),o.jsx("h2",{className:"font-heading text-4xl md:text-5xl uppercase tracking-tight leading-none mt-2",children:e.title}),o.jsx("p",{className:"text-muted-foreground text-sm mt-2",children:e.subt
294itle})]}),o.jsx("div",{className:"border-l border-border pl-8",children:o.jsx("ul",{className:"space-y-4",children:e.points.map((n,r)=>o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx("span",{className:"text-primary mt-1 text-xs",children:"â"}),o.jsx("span",{className:"text-sm text-muted-foreground leading-relaxed",children:n})]},r))})})]})},t))})})}),o.jsx("section",{className:"py-12 md:py-16 border-y border-border bg-card",children:o.jsx("div",{className:"container mx-auto px-6 max-w-4xl text-center",children:o.jsx(C,{children:o.jsxs(ae,{to:"/intelligent-operating-system",className:"font-heading text-2xl md:text-3xl uppercase text-primary inline-flex items-center justify-center gap-2 hover:opacity-80 transition-opacity",children:["Go deeper: What is an Intelligent Operating System? ",o.jsx(re,{size:20,className:"shrink-0"})]})})})}),o.jsx("section",{className:"py-20 md:py-28 bg-card",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-3xl text-center",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary mb-4",children:"Who This Is For"}),o.jsxs("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight mb-12",children:["Leaders Who Refuse",o.jsx("br",{}),"to Be Disrupted"]})]}),o.jsx("div",{className:"grid md:grid-cols-3 gap-px bg-border rounded-lg overflow-hidden",children:[{title:"CEOs & Founders",desc:"Setting AI strategy for the entire organization"},{title:"C-Suite Executives",desc:"Embedding AI into operations, product, and culture"},{title:"Board Members",desc:"Governing AI adoption with clarity and confidence"}].map((e,t)=>o.jsx(C,{delay:t*.08,children:o.jsxs("div",{className:"bg-card p-8 h-full",children:[o.jsx("h3",{className:"font-heading text-lg uppercase tracking-tight mb-2",children:e.title}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.desc})]})},t))})]})}),o.jsx("section",{className:"py-20 md:py-28",children:o.jsx("div",{className:"container mx-auto px-6 text-center",children:o.jsxs(C,{children:[o.jsxs("h2",{className:"font-heading text-4xl md:text-5xl uppercase tracking-tight mb-6",children:["Bring This Framework",o.jsx("br",{}),"to Your Organization"]}),o.jsx("p",{className:"text-muted-foreground max-w-md mx-auto mb-10 text-sm leading-relaxed",children:"Book Seema to deliver the Rethink, Reimagine, Rewire methodology as a keynote, workshop, or executive briefing."}),o.jsxs(ae,{to:"/contact",className:"bg-primary text-primary-foreground px-10 py-4 text-xs font-bold tracking-widest uppercase rounded-full hover:opacity-90 transition-opacity inline-flex items-center gap-2",children:["Get in Touch ",o.jsx(re,{size:14})]})]})})})]}),xp="/intelligent-operating-system",ka="https://seemaalexander.com",MA="What Is an Intelligent Operating System?",$A="An Intelligent Operating System (IOS) is AI embedded into the core of how a business runs â data, workflows, and decision-making unified into one system that continuously learns and improves. It is not a tool. It is a new way of running a company.",NB=[{number:"01",name:"AI Automations",label:"The Efficiency Layer",description:"Task automation. Workflow optimization. Productivity gains. This is where most companies start â and it's the lowest-leverage layer.",result:"Same business. Faster."},{number:"02",name:"Agentic AI",label:"The Execution Layer",description:"Systems that act on your behalf. Multi-step workflows. Decision support plus execution. Agents don't assist â they do the work.",result:"More output without more headcount."},{number:"03",name:"Intelligent Operating System",label:"The Transformation Layer",description:"Decision systems. Data, workflows, and intelligence unified. Continuous learning and optimization. AI stops being a tool and becomes how the company runs.",result:"A business that gets smarter every day â and gets valued differently."}],U0=[{label:"What it does",values:["Speeds up tasks","Executes multi-step work","Runs how the business decides and operates"]},{label:"What it changes",values:["Efficiency","Output","Business model and enterprise value"]},{label:"Leverage",values:["Low","Medium","Exponential"]},{label:"The question it answers",values:["How do we do this faster?","What can AI do for us?","How should this business run in the AI era?"]}],CB=["Your AI pilots don't compound â each one starts from zero.","Your data lives in silos across CRM, finance, operations, and people systems.","Leaders make decisions from last month's reports.","You've automated tasks, but the business model hasn't changed.","AI-native competitors are moving faster with smaller teams."],_B=[{title:"Rethink",description:"Challenge legacy assumptions about how work and decisions happen."},{title:"Reimagine",description:"Design where intelligence creates new value."},{title:"Rewire",description:"Embed AI into strategy, operations, and culture."}],FA=[{q:"What is an Intelligent Operating System (IOS)?",a:"An Intelligent Operating System is AI embedded into the core of how a business runs. Data, workflows, and decision-making are unified into one system that continuously learns and improves. It is the third and highest-leverage layer of the AI Evolution Stack, after AI automations and agentic AI."},{q:"How is an Intelligent Operating System different from AI automation?",a:"AI automation speeds up individual tasks. An Intelligent Operating System changes how the whole business decides and operates. Automation improves efficie
294ncy; an Intelligent Operating System changes the business model and how the company is valued."},{q:"What is the difference between AI agents and an Intelligent Operating System?",a:"AI agents execute multi-step work on your behalf. An Intelligent Operating System connects agents, data, and decision-making into one learning system that runs the business. Agents are a component; the Intelligent Operating System is the architecture."},{q:"What is the AI Evolution Stack?",a:"The AI Evolution Stack is Seema Alexander's framework for how companies adopt AI in three layers: AI Automations (the efficiency layer), Agentic AI (the execution layer), and the Intelligent Operating System (the transformation layer). It is part of her Great Business Rewiring⢠methodology."},{q:"How do we start building an Intelligent Operating System?",a:"Start with leadership alignment. Seema's Executive AI Strategy Workshops help C-suites map where their business sits on the AI Evolution Stack and prioritize the moves that matter. Disruptive AI then designs and builds Intelligent Operating Systems with companies ready to rewire."}],IB={"@context":"https://schema.org","@graph":[{"@type":"Article",headline:MA,author:{"@type":"Person","@id":`${ka}/#person`,name:"Seema Alexander"},publisher:{"@type":"Person","@id":`${ka}/#person`,name:"Seema Alexander"},datePublished:"2026-09-26",mainEntityOfPage:`${ka}${xp}`},{"@type":"DefinedTerm",name:"Intelligent Operating System",alternateName:"IOS",description:$A,inDefinedTermSet:"The AI Evolution Stack"},{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ka}/`},{"@type":"ListItem",position:2,name:"Intelligent Operating System",item:`${ka}${xp}`}]},{"@type":"FAQPage",mainEntity:FA.map(({q:e,a:t})=>({"@type":"Question",name:e,acceptedAnswer:{"@type":"Answer",text:t}}))}]},Ct="font-['Bebas_Neue'] font-normal uppercase leading-none",yh="text-primary text-xs font-bold tracking-[0.3em] uppercase mb-5",PB=()=>o.jsxs("div",{children:[o.jsx(Tt,{title:"What Is an Intelligent Operating System? | Seema Alexander",description:"An Intelligent Operating System embeds AI into how a business decides and operates. Learn the AI Evolution Stack: Automations â Agents â IOS.",path:xp,jsonLd:IB}),o.jsxs("section",{className:"relative overflow-hidden border-b border-border min-h-[65vh] flex items-center pt-28 pb-16 md:pt-36 md:pb-24",children:[o.jsx("img",{src:Xc,alt:"Seema Alexander speaking on stage",className:"absolute inset-0 h-full w-full object-cover object-center grayscale opacity-30"}),o.jsx("div",{className:"absolute inset-0 bg-background/75"}),o.jsx("div",{className:"container mx-auto px-6 relative z-10",children:o.jsxs(C,{className:"max-w-4xl",children:[o.jsx("p",{className:yh,children:"The AI Evolution Stack"}),o.jsx("h1",{className:`${Ct} text-5xl sm:text-6xl md:text-7xl lg:text-8xl mb-8`,children:MA}),o.jsx("p",{className:"text-foreground text-lg md:text-2xl leading-relaxed max-w-3xl mb-10",children:$A}),o.jsxs("div",{className:"flex flex-wrap gap-3",children:[o.jsx(an,{asChild:!0,className:"rounded-full px-7 h-12 text-xs font-bold uppercase tracking-widest",children:o.jsxs(ae,{to:"/executive-ai-workshops",children:["Map Your AI Stack ",o.jsx(za,{"aria-hidden":"true"})]})}),o.jsx(an,{asChild:!0,variant:"outline",className:"rounded-full px-7 h-12 text-xs font-bold uppercase tracking-widest",children:o.jsxs(ae,{to:"/contact",children:["Book Seema ",o.jsx(re,{"aria-hidden":"true"})]})})]})]})})]}),o.jsx("section",{className:"py-20 md:py-28 border-b border-border",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[o.jsxs(C,{children:[o.jsx("p",{className:yh,children:"Three Layers"}),o.jsx("h2",{className:`${Ct} text-4xl md:text-6xl max-w-3xl mb-12`,children:"Most Companies Start at the Bottom. Winners Build to the Top."})]}),o.jsx("div",{className:"space-y-4",children:NB.map((e,t)=>o.jsx(C,{delay:t*.08,className:t===0?"md:mr-20":t===1?"md:ml-10 md:mr-10":"md:ml-20",children:o.jsxs("div",{className:`border bg-card p-6 md:p-9 grid md:grid-cols-[5rem_1fr] gap-4 md:gap-6 ${t===2?"border-primary":"border-border"}`,children:[o.jsx("span",{className:"font-['Bebas_Neue'] text-5xl text-primary leading-none",children:e.number}),o.jsxs("div",{children:[o.jsx("p",{className:"text-primary text-xs font-bold uppercase tracking-[0.2em] mb-2",children:e.label}),o.jsx("h3",{className:`${Ct} text-3xl md:text-4xl mb-4`,children:e.name}),o.jsx("p",{className:"text-muted-foreground text-sm md:text-base leading-relaxed mb-6 max-w-2xl",children:e.description}),o.jsxs("p",{className:"border-t border-border pt-4 text-sm",children:[o.jsx("span",{className:"text-primary font-bold",children:"Result:"})," ",e.result]})]})]})},e.number))})]})}),o.jsx("section",{className:"py-20 md:py-28 border-b border-border bg-card",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-6xl",children:[o.jsx(C,{children:o.jsx("h2",{className:`${Ct} text-4xl md:text-6xl mb-10`,children:"Automation vs. Agents vs. Intelligent Operating System"})}),o.jsxs("div",{className:"hidden md:grid grid-cols-[minmax(10rem,1fr)_repeat(3,minmax(0,1fr))] border-t border-l border-border text-sm",children:[o.jsx("div",{className:"border-r border-b border-border p-5"}),["AI Automations","Agentic AI","Intelligent Operating System"].map(e=>o.jsx("div",{className:"border-r border-b border-border p-5 text-primary font-bold uppercase",children:e},e)),U0.map(e=>o.jsxs("div",{className:"contents",children:[o.jsx("div",{className:"border-r border-b border-border p-5 font-bold",children:e.label}),e.values.map((t,n)=>o.jsx("div",{className:"border-r border-b border-border p-5 text-muted-foreground leading-relaxed",children:t},n))]},e.label))]}),o.jsx("div",{className:"md:hidden space-y-5",children:["AI Automations","Agentic AI","Intelligent Operating System"].map((e,t)=>o.jsxs("div",{className:`border p-6 ${t===2?"border-primary":"border-border"}`,children:[o.jsx("h3",{className:`${Ct} text-3xl text-primary mb-5`,children:e}),o.jsx("dl",{className:"space-y-4",children:U0.map(n=>o.jsxs("div",{children:[o.jsx("dt",{className:"text-xs font-bold uppercase text-foreground mb-1",children:n.label}),o.jsx("dd",{className:"text-sm text-muted-foreground",children:n.values[t]})]},n.label))})]},e))})]})}),o.jsx("section",{className:"py-20 md:py-28 border-b border-border",children:o.jsx("div",{className:"container mx-auto px-6 max-w-4xl",children:o.jsxs(C,{children:[o.jsx("h2",{className:`${Ct} text-4xl md:text-6xl mb-7`,children:"Most Stop at Automation. Very Few Rewire."}),o.jsx("p",{className:"text-muted-foreground text-base md:text-lg leading-relaxed max-w-3xl",children:"Most companies automate tasks. Some experiment with agents. Very few redesign the business as an Intelligent Operating System. That's the gap â and it's where defensibility is built, scale is unlocked, and enterprise value is created."}),o.jsxs("blockquote",{className:"mt-12 border-l-2 border-primary pl-6",children:[o.jsx("p",{className:`${Ct}
294 text-3xl md:text-4xl`,children:`"AI won't disrupt your business. Incremental thinking will."`}),o.jsx("footer",{className:"mt-4 text-primary text-xs font-bold uppercase tracking-[0.2em]",children:"â Seema Alexander"})]})]})})}),o.jsx("section",{className:"py-20 md:py-28 border-b border-border bg-card",children:o.jsx("div",{className:"container mx-auto px-6 max-w-4xl",children:o.jsxs(C,{children:[o.jsx("h2",{className:`${Ct} text-4xl md:text-6xl mb-10`,children:"Signs Your Business Needs an Intelligent Operating System"}),o.jsx("ul",{className:"border-t border-border",children:CB.map(e=>o.jsxs("li",{className:"flex items-start gap-4 py-5 border-b border-border text-sm md:text-base leading-relaxed",children:[o.jsx(Ho,{className:"text-primary shrink-0 mt-0.5",size:20,"aria-hidden":"true"}),e]},e))})]})})}),o.jsx("section",{className:"py-20 md:py-28 border-b border-border",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[o.jsxs(C,{children:[o.jsx("h2",{className:`${Ct} text-4xl md:text-6xl mb-7`,children:"Rethink. Reimagine. Rewire."}),o.jsx("p",{className:"text-muted-foreground text-base md:text-lg leading-relaxed max-w-3xl mb-12",children:"An Intelligent Operating System isn't installed. It's designed. Seema's Great Business Rewiring⢠framework moves leadership teams from AI fluency to a redesigned operating model."})]}),o.jsx("div",{className:"grid md:grid-cols-3 gap-px bg-border mb-10",children:_B.map((e,t)=>o.jsx(C,{delay:t*.08,children:o.jsxs("div",{className:"bg-background p-7 h-full",children:[o.jsxs("span",{className:"text-primary text-xs font-bold",children:["0",t+1]}),o.jsx("h3",{className:`${Ct} text-3xl mt-4 mb-3`,children:e.title}),o.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e.description})]})},e.title))}),o.jsx(an,{asChild:!0,variant:"link",className:"px-0 text-xs font-bold uppercase tracking-widest",children:o.jsxs(ae,{to:"/framework",children:["Explore the Framework ",o.jsx(za,{"aria-hidden":"true"})]})})]})}),o.jsx("section",{className:"py-20 md:py-28 border-b border-border bg-card",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-3xl",children:[o.jsxs(C,{children:[o.jsx("p",{className:yh,children:"FAQ"}),o.jsx("h2",{className:`${Ct} text-4xl md:text-6xl mb-10`,children:"Frequently Asked Questions"})]}),o.jsx(hA,{type:"single",collapsible:!0,className:"border-t border-border",children:FA.map(({q:e,a:t},n)=>o.jsxs(xg,{value:`ios-faq-${n}`,className:"border-border",children:[o.jsx(vg,{className:"text-left font-heading text-base md:text-lg uppercase hover:no-underline hover:text-primary",children:e}),o.jsx(bg,{forceMount:!0,className:"text-sm text-muted-foreground leading-relaxed data-[state=closed]:hidden",children:t})]},e))})]})}),o.jsx("section",{className:"py-20 md:py-28",children:o.jsx("div",{className:"container mx-auto px-6 max-w-4xl text-center",children:o.jsxs(C,{children:[o.jsx("h2",{className:`${Ct} text-4xl md:text-6xl mb-6`,children:"Build the Business That Runs on Intelligence"}),o.jsx("p",{className:"text-muted-foreground text-base mb-9",children:"Start with an executive workshop. Build with Disruptive AI."}),o.jsxs("div",{className:"flex justify-center flex-wrap gap-3",children:[o.jsx(an,{asChild:!0,className:"rounded-full px-7 h-12 text-xs font-bold uppercase tracking-widest",children:o.jsxs(ae,{to:"/executive-ai-workshops",children:["Book an Executive Workshop ",o.jsx(za,{"aria-hidden":"true"})]})}),o.jsx(an,{asChild:!0,variant:"outline",className:"rounded-full px-7 h-12 text-xs font-bold uppercase tracking-widest",children:o.jsxs("a",{href:"https://www.getdisruptive.ai",target:"_blank",rel:"noopener noreferrer",children:["Build with Disruptive AI ",o.jsx(re,{"aria-hidden":"true"})]})})]})]})})})]}),RB=1,OB="d31302e1-04dd-4781-be8a-9ad8cbf87821",DB="e763e4f5-51c9-4eb4-9a8d-62fca5870f9a",LB="/__l5e/assets-v1/d31302e1-04dd-4781-be8a-9ad8cbf87821/marcus-finley.jpeg",MB="a/v1/e763e4f5-51c9-4eb4-9a8d-62fca5870f9a/d31302e1-04dd-4781-be8a-9ad8cbf87821/marcus-finley.jpeg",$B="marcus-finley.jpeg",FB=51824,BB="image/jpeg",UB="2026-09-28T00:12:08Z",zB={version:RB,asset_id:OB,project_id:DB,url:LB,r2_key:MB,original_filename:$B,size:FB,content_type:BB,created_at:UB},VB=[{num:"01",title:"AI Landscape",desc:"Understand the AI ecosystem â what's real, what's hype, and what matters for your business."},{num:"02",title:"Business Model Impact",desc:"Identify how AI disrupts your industry and where the biggest opportunities live."},{num:"03",title:"AI Strategy Design",desc:"Build a custom AI roadmap aligned with your business goals and resources."},{num:"04",title:"Tools & Implementation",desc:"Hands-on with the AI tools that drive real business results â no coding required."},{num:"05",title:"Team & Culture",desc:"Lead your team through AI adoption with confidence and clarity."},{num:"06",title:"AI Agents in Practice",desc:"Where AI agents fit alongside your team â practical, workflow-level use cases you can deploy now."},{num:"07",title:"ROI & Measurement",desc:"Prove the return â tie every AI initiative to revenue, margin, time, and customer value so you can scale what works."},{num:"08",title:"Scale & Sustain",desc:"Create systems to continuously evolve your AI strategy as the landscape shifts."}],WB=[{num:"01",title:"Automate With It",desc:"Start where AI compounds fastest â take repetitive, low-leverage work off your team's plate and reclaim time for higher-value decisions."},{num:"02",title:"Augment With It",desc:"Pair AI with your people to compound judgment, creativity, and speed â augmentation, not replacement."},{num:"03",title:"Innovate With It",desc:"Redesign products, services, and business models around what only AI makes possible â not just faster versions of yesterday's business."},{num:"04",title:"Match the Tool to the Workflow",desc:"Generic platforms, specialized AI products, or agents â the right approach depen
294ds on the business problem, and ROI comes from matching them correctly."},{num:"05",title:"Think AI-Native, Not AI-Bolted",desc:"Don't retrofit AI onto old workflows. Rethink the workflow itself as if AI were available from day one."},{num:"06",title:"Measure What Moves",desc:"Every AI initiative ties to a business outcome â revenue, margin, time, or customer value. If it doesn't move a number, it's a hobby."}],HB=["8 weeks of live instruction","AI strategy templates & frameworks","Private community access","1:1 strategy session","Lifetime access to recordings","Certificate of completion"],KB=["1-10","11-50","51-200","201-500","500+"],qB=["Pre-revenue","$0 - $500K","$500K - $1M","$1M - $5M","$5M - $10M","$10M+"],GB=[{value:"exploring",label:"Exploring â I'm curious but haven't started"},{value:"experimenting",label:"Experimenting â Using some AI tools casually"},{value:"implementing",label:"Implementing â Actively integrating AI into operations"},{value:"scaling",label:"Scaling â AI is core to how we operate"}],rs="w-full bg-background border border-border rounded-md px-4 py-3 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/40 focus:border-primary transition-colors",YB=()=>{const{toast:e}=Vo(),[t,n]=w.useState(!1),[r,s]=w.useState(!1),[i,a]=w.useState({name:"",email:"",company:"",title:"",employee_count:"",revenue_range:"",why_join:"",ai_readiness:""}),l=u=>{a({...i,[u.target.name]:u.target.value})},c=async u=>{if(u.preventDefault(),!i.name||!i.email){e({title:"Please fill in your name and email.",variant:"destructive"});return}s(!0);try{const{error:d}=await dn.from("course_waitlist").insert({name:i.name,email:i.email,company:i.company||null,title:i.title||null,employee_count:i.employee_count||null,revenue_range:i.revenue_range||null,why_join:i.why_join||null,ai_readiness:i.ai_readiness||null});if(d)throw d;try{await dn.functions.invoke("waitlist-confirmation",{body:{name:i.name,email:i.email}})}catch{}try{await dn.functions.invoke("send-transactional-email",{body:{templateName:"inquiry-notification",recipientEmail:"[email protected]",idempotencyKey:`course-waitlist-${i.email}-${Date.now()}`,templateData:{name:i.name,email:i.email,organization:i.company||"",eventTypes:"AI CEO School â Waitlist Application",eventDate:"",message:[`Title: ${i.title||"N/A"}`,`Employees: ${i.employee_count||"N/A"}`,`Revenue: ${i.revenue_range||"N/A"}`,`AI readiness: ${i.ai_readiness||"N/A"}`,"",`Why join: ${i.why_join||"N/A"}`].join(` 295`)}}})}catch{}n(!0)}catch(d){e({title:"Something went wrong",description:d.message,variant:"destructive"})}finally{s(!1)}};return o.jsxs("div",{children:[o.jsx(Tt,{title:"AI CEO School â Executive AI Course | Seema Alexander",description:"AI CEO School by Seema Alexander â co-taught with Chief AI Officer Marcus Finley â teaches CEOs to strategically integrate AI. Join the waitlist.",path:"/course",jsonLd:{"@context":"https://schema.org","@type":"Course",name:"AI CEO School â AI Business Mastery",description:"An advanced 8-week executive program for leaders already using AI who want to optimize it â matching the right AI approach to real business workflows to drive measurable ROI.",provider:{"@type":"Organization",name:"Disruptive AI",sameAs:"https://www.getdisruptive.ai"},instructor:[{"@type":"Person",name:"Seema Alexander",jobTitle:"AI Keynote Speaker & AI Futurist"},{"@type":"Person",name:"Marcus Finley",jobTitle:"Chief AI Officer, Disruptive AI"}],url:"https://seemaalexander.com/course",educationalLevel:"Executive",audience:{"@type":"Audience",audienceType:"CEOs, founders, and business leaders"},hasCourseInstance:{"@type":"CourseInstance",courseMode:"Blended",courseWorkload:"PT6W"}}}),o.jsxs("section",{className:"pt-32 pb-20 md:pt-40 md:pb-28 relative overflow-hidden",children:[o.jsx("div",{className:"absolute top-1/4 left-0 right-0 pointer-events-none select-none overflow-hidden",children:o.jsx("p",{className:"font-heading text-[16vw] font-bold uppercase leading-none tracking-tighter opacity-[0.04] whitespace-nowrap",children:"AI CEO"})}),o.jsx("div",{className:"container mx-auto px-6 relative z-10",children:o.jsx("div",{className:"max-w-3xl mx-auto text-center",children:o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase mb-6",children:"For CEOs, Entrepreneurs & Business Leaders"}),o.jsxs("h1",{className:"font-heading text-5xl md:text-7xl lg:text-8xl font-bold uppercase tracking-tighter leading-[0.9] mb-6",children:["AI CEO",o.jsx("br",{}),"School"]}
295),o.jsx("p",{className:"text-muted-foreground text-base md:text-lg max-w-lg mx-auto leading-relaxed mb-4",children:"AI Business Mastery â the advanced course for entrepreneurs already using AI who are ready to optimize it, embed it, and scale with it."}),o.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-4 text-xs font-bold tracking-widest uppercase text-muted-foreground mb-10",children:[o.jsxs("span",{className:"flex items-center gap-1.5",children:[o.jsx(Zk,{size:14,className:"text-primary"})," 8 Weeks"]}),o.jsx("span",{className:"text-foreground/20",children:"·"}),o.jsxs("span",{className:"flex items-center gap-1.5",children:[o.jsx(QC,{size:14,className:"text-primary"})," Live + On-Demand"]}),o.jsx("span",{className:"text-foreground/20",children:"·"}),o.jsxs("span",{className:"flex items-center gap-1.5",children:[o.jsx(tx,{size:14,className:"text-primary"})," CEOs & Their Teams"]})]})]})})})]}),o.jsx("section",{className:"py-20 md:py-28 border-t border-b border-border bg-card",children:o.jsx("div",{className:"container mx-auto px-6 max-w-3xl text-center",children:o.jsxs(C,{children:[o.jsxs("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight mb-6",children:["AI Isn't Optional",o.jsx("br",{}),"Anymore"]}),o.jsx("p",{className:"text-muted-foreground text-sm md:text-base leading-relaxed mb-4",children:"You're already using AI â the real question is whether it's optimized for your business. This course moves you past experimentation and generic tools to AI that is matched to your workflows, decisions, and growth strategy, so you lead with clarity in an AI-first world."}),o.jsx("p",{className:"text-muted-foreground text-sm md:text-base leading-relaxed",children:"No jargon. No fluff. Just the frameworks, tools, and thinking models you need to lead confidently in the AI era."})]})})}),o.jsx("section",{className:"py-20 md:py-28 border-b border-border",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary text-center mb-4",children:"The Mindset"}),o.jsxs("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight text-center mb-6",children:["AI Native",o.jsx("br",{}),"Principles"]}),o.jsx("p",{className:"text-muted-foreground text-sm md:text-base leading-relaxed text-center max-w-2xl mx-auto mb-14",children:"Being AI native isn't about using AI more â it's about thinking differently about how your business runs. Built for CEOs and their teams, these six principles are the operating system we teach throughout the course â so leadership and execution move together."})]}),o.jsx("div",{className:"grid md:grid-cols-2 gap-px bg-border rounded-lg overflow-hidden",children:WB.map((u,d)=>o.jsx(C,{delay:d*.06,children:o.jsxs("div",{className:"bg-card p-8 h-full flex flex-col",children:[o.jsx("span",{className:"text-primary text-xs font-bold tracking-widest mb-4",children:u.num}),o.jsx("h3",{className:"font-heading text-lg uppercase tracking-tight mb-3",children:u.title}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:u.desc})]})},d))})]})}),o.jsx("section",{className:"py-20 md:py-28 border-b border-border",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary text-center mb-4",children:"Curriculum"}),o.jsx("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight text-center mb-16",children:"8-Week Modules"})]}),o.jsx("div",{className:"grid md:grid-cols-2 gap-px bg-border rounded-lg overflow-hidden",children:VB.map((u,d)=>o.jsx(C,{delay:d*.06,children:o.jsxs("div",{className:"bg-card p-8 h-full flex flex-col",children:[o.jsx("span",{className:"text-primary text-xs font-bold tracking-widest mb-4",children:u.num}),o.jsx("h3",{className:"font-heading text-lg uppercase tracking-tight mb-3",children:u.title}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:u.desc})]})},d))})]})}),o.jsx("section",{className:"py-20 md:py-28 border-b border-border bg-card",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary text-center mb-4",children:"Your Instructors"}),o.jsxs("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight text-center mb-6",children:["Learn From Two,",o.jsx("br",{}),"Not One"]}),o.jsx("p",{className:"text-muted-foreground text-sm md:text-base leading-relaxed text-center max-w-2xl mx-auto mb-14",children:"Every module is co-taught by Seema Alexander and Marcus Finley â pairing executive-level AI strategy with hands-on, in-the-trenches implementation."})]}),o.jsxs("div",{className:"grid md:grid-cols-2 gap-px bg-border rounded-lg overflow-hidden",children:[o.jsx(C,{delay:0,children:o.jsxs("div",{className:"bg-background p-8 h-full flex flex-col",children:[o.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[o.jsx("img",{src:Ki,alt:"Seema Alexander",loading:"lazy",className:"w-20 h-20 rounded-full border border-primary/30 object-cover object-top grayscale shrink-0"}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-heading text-lg uppercase tracking-tight",children:"Seema Alexander"}),o.jsx("p",{className:"text-primary text-xs font-bold tracking-widest uppercase mt-1",children:"CEO, Disruptive AI · Lead Instructor"})]})]}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"CEO of Disruptive AI and creator of The Great Business Rewiringâ¢, Seema has spent her career in the rooms where business actually gets rewired â from a Fortune 500 executive seat to advising leaders on their AI moves today. She teaches the strategy: how to rethink, reimagine, and rewire your business for the AI era."})]})}),o.jsx(C,{delay:.08,children:o.jsxs("div",{className:"bg-background p-8 h-full flex flex-col",children:[o.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[o.jsx("img",{src:zB.url,alt:"Marcus Finley",loading:"lazy",className:"w-20 h-20 rounded-full border border-primary/30 object-cover object-top grayscale shrink-0"}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-heading text-lg uppercase tracking-tight",children:"Marcus Finley"}),o.jsx("p",{className:"text-primary text-xs font-bold tracking-widest uppercase mt-1",children:"Chief AI Officer, Disruptive AI · Co-Instructor"})]})]}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Chief AI Officer at Disruptive AI, Marcus co-teaches every module and translates the strategy into working systems, tools, and workflows â so you leave each week with something built, not just understood."})]})})]}),o.jsx(C,{delay:.16,children:o.jsxs("p",{className:"text-center text-muted-foreground text-sm leading-relaxed mt-10",children:["Most courses at this price give you one instructor and a slide deck. AI CEO School gives you the strategist ",o.jsx("span",{className:"text-foreground font-medium",children:"and"})," the operator."]})})]})}),o.jsxs("section",{className:"py-20 md:py-28 relative overflow-hidden",children:[o.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none select-none",children:o.jsx("p",{className:"font-heading text-[14vw] font-bold uppercase tracking-tighter opacity-[0.04] whitespace-nowrap",children:"ENROLL"})}),o.jsxs("div",{className:"container mx-auto px-6 max-w-2xl relative z-10",children:[o.jsx(C,{children:o.jsxs("div",{className:"text-center mb-12",children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary mb-4",children:"Early Bird Pricing"}),o.jsx("h2",{className:"font-heading text-4xl md:text-6xl uppercase tracking-tight mb-2",children:"$997"}),o.jsx("p",{className:"text-muted-foreground text-sm mb-8",children:"AI Business Mastery · 8-Week Advanced Course"}),o.jsxs("div",{className:"bg-card border border-border rounded-lg p-8 text-left max-w-md mx-auto",children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.3em] uppercase text-primary mb-6",children:"What's Included"}),o.jsx("ul",{className:"space-y-3",children:HB.map((u,d)=>o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(ex,{size:16,className:"text-primary mt-0.5 shrink-0"}),o.jsx("span",{className:"text-sm text-muted-foreground",children:u})]},d))})]})]})}),o.jsx(C,{delay:.1,children:t?o.jsxs("div",{className:"bg-card border border-border rounded-lg p-10 text-center",children:[o.jsx(ex,{size:40,className:"text-primary mx-auto mb-4"}),o.jsx("h3",{className:"font-heading text-2xl uppercase tracking-tight mb-3",children:"You're on the list"}),o.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:"Check your inbox â we've sent a confirmation email. We'll notify you as soon as enrollment opens."})]}):o.jsxs("form",{onSubmit:c,className:"bg-card border border-border rounded-lg p-8 md:p-10 space-y-6",children:[o.jsxs("div",{className:"text-center mb-2",children:[o.jsx("h3",{className:"font-heading text-2xl md:text-3xl uppercase tracking-tight mb-2",children:"Join the Waitlist"}),o.jsx("p",{className:"text-muted-foreground text-sm",children:"Limited seats · Be first to know when enrollment opens"})]}),o.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs font-bold tracking-widest uppercase text-muted-foreground mb-2",children:"Name *"}),o.jsx("input",{name:"name",value:i.name,onChange:l,placeholder:"Your full name",required:!0,className:rs})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs font-bold tracking-widest uppercase text-muted-foreground mb-2",children:"Email *"}),o.jsx("input",{name:"email",type:"email",value:i.email,onChange:l,placeholder:"[email protected]",required:!0,className:rs})]})]}),o.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs font-bold tracking-widest uppercase text-muted-foreground mb-2",children:"Company"}),o.jsx("input",{name:"company",value:i.company,onChange:l,placeholder:"Your company name",className:rs})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs font-bold tracking-widest uppercase text-muted-foreground mb-2",children:"Title"}),o.jsx("input",{name:"title",value:i.title,onChange:l,placeholder:"CEO, Founder, etc.",className:rs})]})]}),o.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs font-bold tracking-widest uppercase text-muted-foreground mb-2",children:"Employee Count"}),o.jsxs("select",{name:"employee_count",value:i.employee_count,onChange:l,className:rs,children:[o.jsx("option",{value:"",children:"Select range"}),KB.map(u=>o.jsx("option",{value:u,children:u},u))]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs font-bold tracking-widest uppercase text-muted-foreground mb-2",children:"Revenue Range"}),o.jsxs("select",{name:"revenue_range",value:i.revenue_range,onChange:l,className:rs,children:[o.jsx("option",{value:"",children:"Select range"}),qB.map(u=>o.jsx("option",{value:u,children:u},u))]})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs font-bold tracking-widest uppercase text-muted-foreground mb-3",children:"AI Readiness"}),o.jsx("div",{className:"space-y-2",children:GB.map(u=>o.jsxs("label",{className:`flex items-center gap-3 p-3 rounded-md border cursor-pointer transition-colors ${i.ai_readiness===u.value?"border-primary bg-primary/5":"border-border hover:border-muted-foreground
295/30"}`,children:[o.jsx("input",{type:"radio",name:"ai_readiness",value:u.value,checked:i.ai_readiness===u.value,onChange:l,className:"accent-primary"}),o.jsx("span",{className:"text-sm text-foreground",children:u.label})]},u.value))})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs font-bold tracking-widest uppercase text-muted-foreground mb-2",children:"Why do you want to join?"}),o.jsx("textarea",{name:"why_join",value:i.why_join,onChange:l,placeholder:"What's your biggest challenge with AI right now?",rows:3,className:rs+" resize-none"})]}),o.jsx("button",{type:"submit",disabled:r,className:"w-full bg-primary text-primary-foreground px-10 py-4 text-xs font-bold tracking-widest uppercase rounded-full hover:opacity-90 transition-opacity inline-flex items-center justify-center gap-2 disabled:opacity-50",children:r?o.jsxs(o.Fragment,{children:[o.jsx(r_,{size:14,className:"animate-spin"})," Submitting..."]}):o.jsxs(o.Fragment,{children:["Join the Waitlist ",o.jsx(re,{size:14})]})}),o.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"Limited seats · Early bird pricing ends soon"})]})})]})]}),o.jsx("section",{className:"py-20 md:py-28 border-t border-border bg-card",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-xs font-bold tracking-[0.4em] uppercase text-primary text-center mb-4",children:"Who It's For"}),o.jsxs("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight text-center mb-16",children:["Built for",o.jsx("br",{}),"Entrepreneurs"]})]}),o.jsx("div",{className:"grid md:grid-cols-3 gap-px bg-border rounded-lg overflow-hidden",children:[{icon:l_,title:"Founders",desc:"Building or scaling a business and want AI as a strategic advantage."},{icon:Qi,title:"CEOs",desc:"Leading teams and need to make confident AI decisions for the business."},{icon:tx,title:"Solopreneurs",desc:"Running lean and want to multiply output with AI tools and strategy."}].map((u,d)=>o.jsx(C,{delay:d*.08,children:o.jsxs("div",{className:"bg-background p-8 h-full flex flex-col items-center text-center",children:[o.jsx(u.icon,{className:"text-primary mb-4",size:24}),o.jsx("h3",{className:"font-heading text-lg uppercase tracking-tight mb-3",children:u.title}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:u.desc})]})},d))})]})})]})},JB="https://calendly.com/seemaalexander/strategy-call",QB=[{name:"RETHINK",desc:"Build AI fluency. You can't redesign what you don't understand."},{name:"REIMAGINE",desc:"Redesign workflows, products, and operations around AI."},{name:"REWIRE",desc:"Turn strategy into execution. Become AI-native."}],Sa=[{id:"business",label:"Tell me about your business and who you serve.",placeholder:"e.g. We're a B2B SaaS company serving mid-market healthcare organizations. We help them manage compliance workflows..."},{id:"goal",label:"What are you trying to build or solve with AI?",placeholder:"e.g. I want to automate our compliance reporting process which takes our team 3 weeks per quarter..."},{id:"blocker",label:"What's honestly getting in the way?",placeholder:"e.g. Honestly we've been trying to build internally and it's taking forever. We're also nervous about the ROI..."}],XB=[{key:"PHASE",label:"ð Where You Are In The Rewiring"},{key:"OHSHIT",label:"â¡ The Truth About Your Situation"},{key:"CONCEPTS",label:"ð§ Two Concepts That Apply To You Right Now"},{key:"NEXT",label:"ð¯ Your Honest Next Move"}];function ZB(e){const t={PHASE:"",OHSHIT:"",CONCEPTS:"",NEXT:""},n=/\[(PHASE|OHSHIT|CONCEPTS|NEXT)\]([\s\S]*?)(?=\[(?:PHASE|OHSHIT|CONCEPTS|NEXT)\]|$)/g;let r;for(;(r=n.exec(e))!==null;)t[r[1]]=r[2].trim();return t}const e6=()=>{const[e,t]=w.useState("landing"),[n,r]=w.useState({business:"",goal:"",blocker:""}),[s,i]=w.useState(0),[a,l]=w.useState({first_name:"",email:"",company:""}),[c,u]=w.useState(!1),[d,h]=w.useState(""),[f,p]=w.useState(!1),[x,y]=w.useState(null),b=w.useRef(!1);w.useEffect(()=>{document.title="The Business Rewiring Diagnostic⢠â Seema Alexander"},[]);const g=w.useMemo(()=>ZB(d),[d]),m=async()=>
295{if(!b.current){b.current=!0,y(null),dn.from("diagnostic_leads").insert({first_name:a.first_name,email:a.email,company:a.company||null,business:n.business,goal:n.goal,blocker:n.blocker}).then(()=>{});try{const k="https://duzknkjkkdvbadzffyek.supabase.co",S="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImR1emtua2pra2R2YmFkemZmeWVrIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzMwMDEzNDUsImV4cCI6MjA4ODU3NzM0NX0.ih7pZGAipomKz1xJEKspp4TlXksubnOXtM-5kXdjhQA",j=await fetch(`${k}/functions/v1/diagnostic-generate`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${S}`,apikey:S},body:JSON.stringify({first_name:a.first_name,company:a.company,...n})});if(!j.ok||!j.body){j.status===429?y("Too many requests. Please try again in a moment."):j.status===402?y("AI credits exhausted. Please contact Seema directly."):y("Something went wrong generating your diagnostic."),p(!0);return}const A=j.body.getReader(),E=new TextDecoder;for(;;){const{value:N,done:R}=await A.read();if(R)break;h(z=>z+E.decode(N,{stream:!0}))}p(!0)}catch(k){y((k==null?void 0:k.message)||"Network error"),p(!0)}}};w.useEffect(()=>{e==="results"&&m()},[e]);const v=k=>{k.preventDefault(),!(!a.first_name.trim()||!a.email.trim())&&(u(!0),t("results"))};return o.jsxs("div",{className:"diag-root min-h-screen w-full",children:[o.jsx(Tt,{title:"The Business Rewiring Diagnostic⢠â Seema Alexander",description:"Take Seema Alexander's free Business Rewiring Diagnostic⢠and get a personalized read on how AI should reshape your business model, operations, and team.",path:"/diagnostic"}),o.jsx("style",{children:` 296 .diag-root { background:#080808; color:#fff; font-family:'DM Sans', system-ui, sans-serif; position:relative; overflow-x:hidden; } 297 .diag-root::before { content:""; position:fixed; inset:0; pointer-events:none; background-image:repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px); z-index:0; } 298 .diag-root::after { content:""; position:absolute; top:-220px; left:50%; transform:translateX(-50%); width:900px; height:900px; background:radial-gradient(circle, rgba(0,212,255,0.18), transparent 60%); pointer-events:none; z-index:0; } 299 .diag-wrap { position:relative; z-index:1; max-width:1080px; margin:0 auto; padding:28px 24px 80px; } 300 .diag-bebas { font-family:'Bebas Neue', sans-serif; letter-spacing:0.01em; } 301 .diag-cyan { color:#00d4ff; } 302 .diag-dim { color:rgba(255,255,255,0.35); } 303 .diag-body { color:rgba(255,255,255,0.75); line-height:1.7; } 304 .diag-card { background:#0f0f0f; border:1px solid #1a1a1a; border-radius:14px; padding:28px; } 305 .diag-card-accent { background:#0f0f0f; border:1px solid #00d4ff; border-radius:14px; padding:32px; box-shadow:0 0 60px -20px rgba(0,212,255,0.4); } 306 .diag-card-soft { background:#161616; border:1px solid #1f1f1f; border-radius:14px; padding:24px; } 307 .diag-btn { background:#00d4ff; color:#000; font-weight:700; padding:14px 28px; border-radius:10px; border:none; cursor:pointer; letter-spacing:0.05em; transition:all .2s; font-family:'DM Sans', sans-serif; } 308 .diag-btn:hover:not(:disabled){ box-shadow:0 0 30px rgba(0,212,255,0.5); transform:translateY(-1px); } 309 .diag-btn:disabled { background:#222; color:#555; cursor:not-allowed; } 310 .diag-input, .diag-textarea { width:100%; background:#0a0a0a; border:1px solid #222; border-radius:10px; padding:14px 16px; color:#fff; font-family:'DM Sans', sans-serif; font-size:15px; transition:border-color .2s; } 311 .diag-input:focus, .diag-textarea:focus { outline:none; border-color:#00d4ff; } 312 .diag-textarea { min-height:140px; resize:vertical; line-height:1.6; } 313 .diag-pill { display:inline-flex; align-items:center; gap:8px; padding:6px 14px; border:1px solid rgba(0,212,255,0.4); border-radius:999px; color:#00d4ff; font-size:11px; letter-spacing:0.2em; font-weight:700; } 314 .diag-quote { border-left:3px solid #00d4ff; padding:6px 0 6px 22px; margin:28px 0; color:rgba(255,255,255,0.85); font-size:18px; line-height:1.6; font-style:italic; } 315 .diag-eyebrow { display:inline-flex; align-items:center; gap:12px; color:#00d4ff; font-size:12px; letter-spacing:0.3em; font-weight:700; text-transform:uppercase; } 316 .diag-eyebrow::before { content:""; width:32px; height:1px; background:#00d4ff; display:inline-block; } 317 .diag-fadeup { animation: fadeup .5s ease forwards; } 318 @keyframes fadeup { from { opacity:0; transform:translateY(12px);} to {opacity:1; transform:none;} } 319 .diag-spinner { width:18px; height:18px; border:2px solid rgba(0,212,255,0.25); border-top-color:#00d4ff; border-radius:50%; animation:spin .8s linear infinite; display:inline-block; } 320 @keyframes spin { to { transform:rotate(360deg); } } 321 .diag-dot { width:10px; height:10px; border-radius:50%; background:#222; } 322 .diag-dot.active { background:#00d4ff; box-shadow:0 0 10px rgba(0,212,255,0.6); } 323 .diag-dot.done { background:#00d4ff; opacity:0.4; } 324 `}),o.jsxs("div",{className:"diag-wrap",children:[o.jsxs("div",{className:"flex items-center justify-between mb-12",children:[o.jsxs("div",{className:"diag-bebas text-2xl md:text-3xl",children:["SEEMA ",o.jsx("span",{className:"diag-cyan",children:"ALEXANDER"})]}),o.jsx("div",{className:"diag-pill",children:"FREE · 3 MIN"})]}),e==="landing"&&o.jsx(t6,{onStart:()=>t("questions")}),e==="questions"&&o.jsx(n6,{qIdx:s,setQIdx:i,answers:n,setAnswers:r,onComplete:()=>t("email")}),e==="email"&&o.jsx(r6,{lead:a,setLead:l,submitting:c,onSubmit:v}),e==="results"&&o.jsx(s6,{firstName:a.first_name,sections:g,streamText:d,done:f,error:x})]})]})},t6=({onStart:e})=>o.jsxs("div",{className:"diag-fadeup space-y-10",children:[o.jsx("div",{className:"diag-eyebrow",children:"The Bu
324siness Rewiring Diagnosticâ¢"}),o.jsxs("h1",{className:"diag-bebas text-5xl md:text-7xl lg:text-8xl leading-[0.95]",children:["THE GREAT BUSINESS ",o.jsx("span",{className:"diag-cyan",children:"REWIRING"}),o.jsx("br",{}),o.jsx("span",{className:"diag-dim",children:"HAS BEGUN."})]}),o.jsx("p",{className:"diag-body text-lg max-w-2xl",children:"Most leaders know AI matters. Far fewer know where to start. And even fewer understand that we are entering the biggest business shift since the internet."}),o.jsxs("div",{className:"diag-quote max-w-3xl",children:[`"It's not AI that's going to put your company out of business. It's a company that natively uses AI â and right now, that company might be your competitor."`,o.jsx("div",{className:"mt-3 not-italic text-sm diag-cyan tracking-widest",children:"â SEEMA ALEXANDER"})]}),o.jsx("div",{className:"grid md:grid-cols-3 gap-4",children:QB.map(t=>o.jsxs("div",{className:"diag-card-soft",children:[o.jsx("div",{className:"diag-bebas text-2xl diag-cyan mb-2",children:t.name}),o.jsx("p",{className:"diag-body text-sm",children:t.desc})]},t.name))}),o.jsxs("div",{className:"diag-card-accent",children:[o.jsx("h2",{className:"diag-bebas text-3xl md:text-4xl mb-3",children:"TELL ME ABOUT YOUR BUSINESS"}),o.jsx("p",{className:"diag-body mb-6 max-w-2xl",children:"Three honest questions. Three minutes. You'll get a real diagnostic â not a generic checklist â written specifically for where you and your business actually are right now."}),o.jsx("button",{className:"diag-btn",onClick:e,children:"Start My Diagnostic â"})]})]}),n6=({qIdx:e,setQIdx:t,answers:n,setAnswers:r,onComplete:s})=>{const i=Sa[e],a=n[i.id]||"",l=a.trim().length>20,c=e===Sa.length-1,u=()=>{l&&(c?s():t(e+1))};return o.jsxs("div",{className:"diag-fadeup space-y-10",children:[o.jsxs("div",{className:"space-y-4",children:[o.jsxs("h1",{className:"diag-bebas text-4xl md:text-6xl leading-[0.95]",children:["LET'S TALK ABOUT ",o.jsx("span",{className:"diag-cyan",children:"YOUR BUSINESS"})]}),o.jsx("p",{className:"diag-body max-w-2xl",children:"No multiple choice. No generic results. Tell me what's actually happening and I'll give you something real."}),o.jsxs("div",{className:"flex items-center gap-3 pt-2",children:[Sa.map((d,h)=>o.jsx("div",{className:`diag-dot ${h===e?"active":h<e?"done":""}`},h)),o.jsxs("span",{className:"diag-dim text-xs ml-2 tracking-widest",children:[e+1," / ",Sa.length]})]})]}),Sa.slice(0,e).map(d=>o.jsxs("div",{className:"diag-card flex items-center justify-between",children:[o.jsx("div",{className:"text-sm diag-body truncate pr-4",children:d.label}),o.jsx("div",{className:"diag-cyan text-xl",children:"â"})]},d.id)),o.jsxs("div",{className:"diag-card diag-fadeup",children:[o.jsx("label",{className:"block diag-bebas text-2xl md:text-3xl mb-4",children:i.label}),o.jsx("textarea",{className:"diag-textarea",maxLength:500,placeholder:i.placeholder,value:a,onChange:d=>r({...n,[i.id]:d.target.value})}),o.jsxs("div",{className:"flex items-center justify-between mt-4",children:[o.jsxs("span",{className:"diag-dim text-xs",children:[a.length," / 500"]}),o.jsx("button",{className:"diag-btn",disabled:!l,onClick:u,children:c?"SEE MY DIAGNOSTIC â":"CONTINUE â"})]})]},i.id)]})},r6=({lead:e,setLead:t,submitting:n,onSubmit:r})=>o.jsx("div",{className:"diag-fadeup max-w-xl mx-auto",children:o.jsxs("form",{onSubmit:r,className:"diag-card-accent text-center",children:[o.jsx("div",{className:"text-5xl mb-4",children:"ð"}),o.jsx("h2",{className:"diag-bebas text-3xl md:text-4xl mb-3",children:"YOUR DIAGNOSTIC IS READY"}),o.jsx("p",{className:"diag-body mb-6",children:"Enter your details below to unlock your personalized Business Rewiring Diagnostic."}),o.jsxs("div",{className:"space-y-3 text-left",children:[o.jsx("input",{className:"diag-input",placeholder:"First Name",required:!0,value:e.first_name,onChange:s=>t({...e,first_name:s.target.value})}),o.jsx("input",{className:"diag-input",type:"email",placeholder:"Work Email",required:!0,value:e.email,onChange:s=>t({...e,email:s.target.value})}),o.jsx("input",{className:"diag-input",placeholder:"Company",value:e.company,onChange:s=>t({...e,company:s.target.value})})]}),o.jsx("button",{type:"submit",className:"diag-btn w-full mt-6",disabled:n,children:"UNLOCK MY DIAGNOSTIC â"}),o.jsx("p",{className:"diag-dim text-xs mt-4",children:"No spam. Seema respects your inbox. Unsubscribe anytime."})]})}),s6=({firstName:e,sections:t,streamText:n,done:r,error:s})=>{const i=w.useMemo(()=>{const a=["PHASE","OHSHIT","CONCEPTS","NEXT"];let l=-1;return a.forEach((c,u)=>{n.includes(`[${c}]`)&&(l=u)}),l},[n]);return o.jsxs("div",{className:"diag-fadeup space-y-8",children:[o.jsxs("h1",{className:"diag-bebas text-4xl md:text-6xl leading-[0.95]",children:["HERE'S YOUR DIAGNOSTIC, ",o.jsxs("span",{className:"diag-cyan",children:[e.toUpperCase(),"."]})]}),s&&o.jsx("div",{className:"diag-card border-red-500/40",children:o.jsx("p",{className:"text-red-300 text-sm",children:s})}),XB.map((a,l)=>{const c=t[a.key],u=l===i&&!r;return l<=i||!!c?o.jsxs("div",{className:"diag-card diag-fadeup",children:[o.jsxs("div",{className:"diag-cyan text-xs tracking-widest font-bold uppercase mb-4 flex items-center gap-3",children:[o.jsx("span",{children:a.label}),u&&o.jsx("span",{className:"diag-spinner"})]}),c?o.jsx("div",{className:"diag-body whitespace-pre-wrap text-[15px]",children:c}):o.jsxs("div",{className:"flex items-center gap-3 diag-dim text-sm",children:[o.jsx("span",{className:"diag-spinner"})," Generatingâ¦"]})]},a.key):o.jsxs("div",{className:"diag-card opacity-40",children:[o.jsx("div",{className:"diag-cyan text-xs tracking-widest font-bold uppercase mb-3",children:a.label}),o.jsx("div",{className:"diag-dim text-sm",children:"Waitingâ¦"})]},a.key)}),r&&!s&&o.jsxs("div",{className:"diag-card-accent diag-fadeup text-center",children:[o.jsx("h2",{className:"diag-bebas text-3xl md:text-5xl mb-3",children:"READY TO REWIRE?"}),o.jsx("p",{className:"diag-body mb-6 max-w-2xl mx-auto",children:"You've seen where you are. Now let's build the path forward. Book a direct strategy call with Seema and leave with a clear, personalized AI rewiring roadmap for your business."}),o.jsx("a",{className:"diag-btn inline-block",href:JB,target:"_blank",rel:"noopener noreferrer",children:"BOOK A STRATEGY CALL â"})]})]})},i6=()=>{const e=Rs();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),o.jsxs("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:[o.jsxs(xk,{children:[o.jsx("title",{children:"Page Not Found â Seema Alexander"}),o.jsx("meta",{name:"description",content:"The page you are looking for doesn't exist."}),o.jsx("meta",{name:"robots",content:"noindex"})]}),o.jsxs("div",{className:"text-center",children:[o.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),o.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),o.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})]})},a6=()=>{const[e]=F2(),t=e.get("token"),[n,r]=w.useState("loading");w.useEffect(()=>{if(!t){r("invalid");return}(async()=>{try{const c=await fetch(`https://duzknkjkkdvbadzffyek.supabase.co/functions/v1/handle-email-unsubscribe?token=${t}`,{headers:{apikey:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImR1emtua2pra2R2YmFkemZmeWVrIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzMwMDEzNDUsImV4cCI6MjA4ODU3NzM0NX0.ih7pZGAipomKz1xJEKspp4TlXksubnOXtM-5kXdjhQA"}}),u=await c.json();c.ok?u.valid===!1&&u.reason==="already_unsubscribed"?r("already"):u.valid?r("valid"):r("invalid"):r("invalid")}catch{r("error")}})()},[t]);const s=async()=>{try{const{data:i,error:a}=await dn.functions.invoke("handle-email-unsubscribe",{body:{token:t}});if(a)throw a;i!=null&&i.success?r("success"):(i==null?void 0:i.reason)==="already_unsubscribed"&&r("already")}catch{r("error")}};return o.jsx("div",{className:"min-h-screen flex items-center justify-center px-6",children:o.jsxs("div",{className:"max-w-md w-full text-center",children:[n==="loading"&&o.jsx("p",{className:"text-muted-foreground",children:"Validating your requestâ¦"}),n==="valid"&&o.jsxs(o.Fragment,{children:[o.jsx("h1",{className:"font-heading text-3xl uppercase tracking-tight mb-4",children:"Unsubscribe"}),o.jsx("p",{className:"text-muted-foreground text-sm mb-8",children:"Click below to unsubscribe from future emails."}),o.jsx("button",{onClick:s,className:"bg-primary text-primary-foreground px-8 py-3 text-xs font-bold tracking-widest uppercase rounded-full hover:opacity-90 transition-opacity",children:"Confirm Unsubscribe"})]}),n==="success"&&o.jsxs(o.Fragment,{children:[o.jsx("h1",{className:"font-heading text-3xl uppercase tracking-tight mb-4",children:"Unsubscribed"}),o.jsx("p",{className:"text-muted-foreground text-sm",children:"You've been successfully unsubscribed."})]}),n==="already"&&o.jsxs(o.Fragment,{children:[o.jsx("h1",{className:"font-heading text-3xl uppercase tracking-tight mb-4",children:"Already Unsubscribed"}),o.jsx("p",{className:"text-muted-foreground text-sm",children:"You've already unsubscribed from these emails."})]}),n==="invalid"&&o.jsxs(o.Fragment,{children:[o.jsx("h1",{className:"font-heading text-3xl uppercase tracking-tight mb-4",children:"Invalid Link"}),o.jsx("p",{className:"text-muted-foreground text-sm",children:"This unsubscribe link is invali
324d or has expired."})]}),n==="error"&&o.jsxs(o.Fragment,{children:[o.jsx("h1",{className:"font-heading text-3xl uppercase tracking-tight mb-4",children:"Something Went Wrong"}),o.jsx("p",{className:"text-muted-foreground text-sm",children:"Please try again later."})]})]})})},o6={"@context":"https://schema.org","@graph":[{"@type":"Service",serviceType:"Executive AI Workshop",name:"Executive AI Workshops with Seema Alexander",description:"Executive AI workshops and C-suite AI strategy sessions led by Seema Alexander. Interactive workshops for CEOs, boards, and executive leadership teams to build AI strategy, identify AI opportunities, and redesign the business for the AI era.",provider:{"@type":"Person",name:"Seema Alexander",url:"https://seemaalexander.com"},areaServed:"Global",offers:{"@type":"Offer",price:"15000",priceCurrency:"USD",priceSpecification:{"@type":"PriceSpecification",minPrice:"15000",priceCurrency:"USD"}}},{"@type":"FAQPage",mainEntity:[{"@type":"Question",name:"What is an executive AI workshop?",acceptedA
324nswer:{"@type":"Answer",text:"An executive AI workshop is a facilitated, half-day or full-day strategy session for CEOs, boards, and senior leadership teams to align on AI strategy, identify AI-native opportunities in the operating model, and make the capital and org design decisions AI is forcing. Seema Alexander's executive AI workshops are customized by industry and business segment."}},{"@type":"Question",name:"How much does an executive AI workshop cost?",acceptedAnswer:{"@type":"Answer",text:"Seema Alexander's executive AI workshops start at $15,000. Multi-day executive AI offsites, board strategy sessions, and international leadership retreats are scoped accordingly."}},{"@type":"Question",name:"Who is the executive AI workshop for?",acceptedAnswer:{"@type":"Answer",text:"CEOs, boards, C-suites, executive committees, founders, and senior leadership teams that need to align on an AI strategy and understand how AI is rewiring their industry, operating model, and competitive moats."}}]}]},l6=["A shared executive point of view on AI and the future of your business","A prioritized shortlist of AI-native opportunities across the operating model","The 3 strategic decisions your leadership team must align on this year","A clear-eyed view of what AI actually changes at the P&L level","Language and frameworks to lead internal AI conversations with confidence","A first-draft AI strategy the team owns â not a consultant deck"],c6=[{title:"Board AI Strategy Session",desc:"Half-day working session for boards and CEOs to align on AI strategy, capital allocation, and oversight."},{title:"C-Suite AI Offsite",desc:"Full-day or multi-day executive AI workshop for the C-suite to redesign the operating model for the AI era."},{title:"Executive Leadership Retreat",desc:"Immersive AI leadership retreat blending keynote, workshop, and 1:1 executive strategy sessions."},{title:"Industry Executive Roundtable",desc:"Curated executive AI roundtable for peer CEOs â Seema facilitates the strategy conversation."}],u6=()=>o.jsxs("div",{children:[o.jsx(Tt,{title:"Executive AI Workshops â Seema Alexander",description:"Executive AI workshops and C-suite AI strategy sessions with Seema Alexander. Board AI briefings, executive offsites, and AI leadership retreats. From $15,000.",path:"/executive-ai-workshops",jsonLd:o6}),o.jsxs("section",{className:"section-padding relative overflow-hidden min-h-[60vh] flex items-center",children:[o.jsx("div",{className:"absolute inset-0 bg-cover bg-center grayscale opacity-30",style:{backgroundImage:`url(${kg})`}}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background/70 via-background/60 to-background"}),o.jsxs("div",{className:"container mx-auto px-6 max-w-4xl relative z-10 text-center",children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase mb-6",children:"Executive AI Workshops"}),o.jsx("h1",{className:"font-heading text-4xl md:text-6xl uppercase tracking-tight leading-[0.95] mb-6",children:"AI Strategy Workshops for CEOs, Boards & C-Suites"}),o.jsx("p",{className:"text-muted-foreground text-base md:text-lg leading-relaxed max-w-2xl mx-auto mb-10",children:"Executive AI workshops that move leadership teams from AI curiosity to AI conviction â with a clear strategy, prioritized opportunities, and the decisions only the C-suite can make."}),o.jsxs(ae,{to:"/contact",className:"bg-primary text-primary-foreground px-10 py-4 text-xs font-bold tracking-widest uppercase rounded-full hover:opacity-90 transition-opacity inline-flex items-center gap-2",children:["Request Executive AI Workshop ",o.jsx(re,{size:14})]})]})]}),o.jsx("section",{className:"section-padding",children:o.jsx("div",{className:"container mx-auto px-6 max-w-3xl",children:o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase mb-4",children:"Why This Workshop"}),o.jsx("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight leading-[0.95] mb-8",children:"AI Isn't a Technology Question. It's a Business Redesign Question."}),o.jsxs("div",{className:"text-muted-foreground text-base leading-relaxed space-y-5",children:[o.jsx("p",{children:"Most executive AI workshops turn into tool demos, prompt clinics, or recycled trend decks. Seema's don't. She facilitates the strategic conversation your leadership team should actually be having â capital allocation, operating model, margin structure, and competitive moats in an AI-native world."}),o.jsx("p",{children:"By the end of the session, your C-suite has a shared point of view on AI, a prioritized shortlist of opportunities, and the three strategic decisions they need to align on before the window closes."})]})]})})}),o.jsx("section",{className:"section-padding bg-card/40",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase text-center mb-4",children:"Outcomes"}),o.jsx("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight text-center leading-[0.95] mb-12",children:"What Your Executive Team Leaves With"})]}),o.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:l6.map((e,t)=>o.jsx(C,{delay:t*.05,children:o.jsxs("div",{className:"flex items-start gap-3 p-5 border border-border rounded-lg bg-background",children:[o.jsx(Ho,{className:"text-primary shrink-0 mt-0.5",size:18}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e})]})},t))})]})}),o.jsx("section",{className:"section-padding",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase text-center mb-4",children:"Formats"}),o.jsx("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight text-center leading-[0.95] mb-12",children:"Executive AI Workshop Formats"})]}),o.jsx("div",{className:"grid md:grid-cols-2 gap-5",children:c6.map((e,t)=>o.jsx(C,{delay:t*.06,children:o.jsxs("div",{className:"p-8 border border-border rounded-xl bg-card h-full hover:border-primary/40 transition-colors",children:[o.jsx("h3",{className:"font-heading text-xl uppercase tracking-tight mb-3",children:e.title}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.desc})]})},t))})]})}),o.jsx("section",{className:"section-padding bg-card/40",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase text-center mb-4",children:"What E
324xecutives Say"}),o.jsx("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight text-center leading-[0.95] mb-12",children:"Trusted by Executive Teams"})]}),o.jsx("div",{className:"grid md:grid-cols-3 gap-5",children:[{img:Ku,name:"Karima M. Woods",role:"Commissioner, DISB",quote:"Thank you for sharing the technologies and business models reshaping the financial services industry. My team and I really enjoyed your insights!"},{img:Zo,name:"Kimberly Sullivan",role:"Principal & Co-Managing Director, Gensler",quote:"A thought provoking and inspiring dialogue that sparked new ideas and ways of leveraging AI in our daily work. Seema is extraordinary."},{img:Xo,name:"Katy Redmond, MCR",role:"Senior Managing Director, JLL",quote:"Seema breaks through the noise with insights and forecasts that bring intelligence and theory to the conversation. She is an expert in this space."}].map((e,t)=>o.jsx(C,{delay:t*.06,children:o.jsxs("div",{className:"p-6 border border-border rounded-lg bg-background h-full flex flex-col",children:[o.jsxs("p",{className:"text-sm text-muted-foreground leading-relaxed flex-1 mb-5",children:['"',e.quote,'"']}),o.jsxs("div",{className:"flex items-center gap-3 pt-4 border-t border-border",children:[o.jsx("img",{src:e.img,alt:e.name,className:"w-9 h-9 rounded-full object-cover grayscale"}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium",children:e.name}),o.jsx("p",{className:"text-xs text-muted-foreground",children:e.role})]})]})]})},t))})]})}),o.jsx("section",{className:"section-padding",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-3xl text-center",children:[o.jsx("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight leading-[0.95] mb-6",children:"Bring Seema to Your Executive Team"}),o.jsx("p",{className:"text-muted-foreground text-base leading-relaxed mb-10",children:"Executive AI workshops from $15,000. Board strategy sessions, C-suite offsites, and leadership retreats scoped to your business."}),o.jsxs(ae,{to:"/contact",className:"bg-primary text-primary-foreground px-10 py-4 text-xs font-bold tracking-widest uppercase rounded-full hover:opacity-90 transition-opacity inline-flex items-center gap-2",children:["Request an Executive AI Workshop ",o.jsx(re,{size:14})]})]})})]}),d6={"@context":"https://schema.org","@graph":[{"@type":"Service",serviceType:"Employee AI Training",name:"Employee AI Fluency Workshops & Corporate AI Training",description:"Employee AI fluency workshops and corporate AI training led by Seema Alexander. Hands-on AI training for employees that builds AI fluency, practical AI skills, and AI-native thinking across the workforce. Ideal for company-wide rollouts, department upskilling, and all-hands learning days.",provider:{"@type":"Person",name:"Seema Alexander",url:"https://seemaalexander.com"},areaServed:"Global",offers:{"@type":"Offer",price:"15000",priceCurrency:"USD",priceSpecification:{"@type":"PriceSpecification",minPrice:"15000",priceCurrency:"USD"}}},{"@type":"FAQPage",mainEntity:[{"@type":"Question",name:"What is an employee AI workshop?",acceptedAnswer:{"@type":"Answer",text:"An employee AI workshop is a hands-on training session that builds AI fluency, practical AI skills, and confidence across the workforce. Seema Alexander's employee AI fluency workshops are designed for company-wide rollouts, department upskilling, and all-hands learning days, and are customized by industry and role."}},{"@type":"Question",name:"How much does AI training for employees cost?",acceptedAnswer:{"@type":"Answer",text:"Seema Alexander's employee AI fluency workshops and corporate AI training start at $15,000. Multi-session programs, company-wide rollouts, and international engagements are scoped accordingly."}},{"@type":"Question",name:"Who is the employee AI workshop for?",acceptedAnswer:{"@type":"Answer",text:"Employees, managers, and functional teams across the organization â including operations, marketing, sales, finance, HR, and customer teams â who need practical AI fluency and confidence to use AI in their day-to-day work."}}]}]},h6=["AI fluency and confidence across every function and level","Practical AI skills employees can apply to their work the next day","A shared internal language for AI â no more mystified conversations","Reduced fear of AI. Replaced with clarity, curiosity, and ownership","Role-specific AI use cases mapped to your business","An energized workforce aligned with your AI strategy"],f6=[{title:"Company-Wide AI Fluency Day",desc:"All-hands AI training that gets the entire workforce speaking the same language about AI and what it means for their roles."},{title:"Department AI Upskilling",desc:"Workshop tailored to a specific function â marketing, ops, sales, finance, HR, or customer teams â with role-specific AI use cases."},{title:"Manager AI Enablement",desc:"Workshop for directors and managers to lead their teams through AI transformation with confidence."},{title:"Town Hall AI Keynote + Q&A",desc:"Company town-hall keynote followed by a live Q&A that removes fear and replaces it with momentum."}],p6=()=>o.jsxs("div",{children:[o.jsx(Tt,{title:"Employee AI Workshops â Seema Alexander",description:"Employee AI fluency workshops and corporate AI training with Seema Alexander. Company-wide AI training, department upskilling, and all-hands AI learning days. From $15,000.",path:"/employee-ai-workshops",jsonLd:d6}),o.jsxs("section",{className:"section-padding relative overflow-hidden min-h-[60vh] flex items-center",children:[o.jsx("div",{className:"absolute inset-0 bg-cover bg-center grayscale opacity-30",style:{backgroundImage:`url(${kg})`}}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background/70 via-background/60 to-background"}),o.jsxs("div",{className:"container mx-auto px-6 max-w-4xl relative z-10 text-center",children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase mb-6",children:"Employee AI Workshops"}),o.jsx("h1",{className:"font-heading text-4xl md:text-6xl uppercase tracking-tight leading-[0.95] mb-6",children:"AI Fluency Training for Every Employee"}),o.jsx("p",{className:"text-muted-foreground text-base md:text-lg leading-relaxed max-w-2xl mx-auto mb-10",children:"Hands-on AI training for employees that turns AI from a mystified buzzword into a practical, everyday capability â across every team, every role, and every level."}),o.jsxs(ae,{to:"/contact",className:"bg-primary text-primary-foreground px-10 py-4 text-xs font-bold tracking-widest uppercase rounded-full hover:opacity-90 transition-opacity inline-flex items-center gap-2",children:["Request Employee AI Training ",o.jsx(re,{size:14})]})]})]}),o.jsx("section",{className:"section-padding",children:o.jsx("div",{className:"container mx-auto px-6 max-w-3xl",children:o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase mb-4",children:"Why This Workshop"}),o.jsx("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight leading-[0.95] mb-8",children:"AI Strategy Only Works When Your People Do."}),o.jsxs("div",{className:"text-muted-foreground text-base leading-relaxed space-y-5",children:[o.jsx("p",{children:"The best AI strategy in the world fails if the people executing it are anxious, confused, or on the sidelines. Seema's employee AI workshops close the gap between executive AI vision and the reality on the ground â building fluency, confidence, and practical skills that show up in the work."}),o.jsx("p",{children:"Every workshop is customized to your industry and the roles in the room, with role-specific AI use cases, hands-on exercises, and the language your team needs to move from AI-curious to AI-capable."})]})]})})}),o.jsx("section",{className:"section-padding bg-card/40",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase text-center mb-4",children:"Outcomes"}),o.jsx("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight text-center leading-[0.95] mb-12",children:"What Your Team Leaves With"})]}),o.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:h6.map((e,t)=>o.jsx(C,{delay:t*.05,children:o.jsxs("div",{className:"flex items-start gap-3 p-5 border border-border rounded-lg bg-background",children:[o.jsx(Ho,{className:"text-primary shrink-0 mt-0.5",size:18}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e})]})},t))})]})}),o.jsx("section",{className:"section-padding",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase text-center mb-4",children:"Formats"}),o.jsx("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight text-center leading-[0.95] mb-12",children:"Employee AI Workshop Formats"})]}),o.jsx("div",{className:"grid md:grid-cols-2 gap-5",children:f6.map((e,t)=>o.jsx(C,{delay:t*.06,children:o.jsxs("div",{className:"p-8 border border-border rounded-xl bg-card h-full hover:border-primary/40 transition-colors",children:[o.jsx("h3",{className:"font-heading text-xl uppercase tracking-tight mb-3",children:e.title}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.desc})]})},t))})]})}),o.jsx("section",{className:"section-padding bg-card/40",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase text-center mb-4",children:"What Teams Say"}),o.jsx("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight text-center leading-[0.95] mb-12",children:"Trusted by Teams Across Industries"})]}),o.jsx("div",{className:"grid md:grid-cols-3 gap-5",children:[{img:Zo,name:"Kimberly Sullivan",role:"Principal & Co-Managing Director, Gensler",quote:"A thought provoking and inspiring dialogue that sparked new ideas and ways of leveraging AI in our daily work."},{img:Ku,name:"Karima M. Woods",role:"Commissioner, DISB",quote:"Thank y
324ou for sharing the technologies and business models reshaping the financial services industry. My team and I really enjoyed your insights!"},{img:Xo,name:"Katy Redmond, MCR",role:"Senior Managing Director, JLL",quote:"Seema breaks through the noise with insights that bring intelligence and theory to the conversation."}].map((e,t)=>o.jsx(C,{delay:t*.06,children:o.jsxs("div",{className:"p-6 border border-border rounded-lg bg-background h-full flex flex-col",children:[o.jsxs("p",{className:"text-sm text-muted-foreground leading-relaxed flex-1 mb-5",children:['"',e.quote,'"']}),o.jsxs("div",{className:"flex items-center gap-3 pt-4 border-t border-border",children:[o.jsx("img",{src:e.img,alt:e.name,className:"w-9 h-9 rounded-full object-cover grayscale"}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium",children:e.name}),o.jsx("p",{className:"text-xs text-muted-foreground",children:e.role})]})]})]})},t))})]})}),o.jsx("section",{className:"section-padding",children:o.jsxs("div",{className:"container mx-auto px-6 max-w-3xl text-center",children:[o.jsx("h2",{className:"font-heading text-3xl md:text-5xl uppercase tracking-tight leading-[0.95] mb-6",children:"Bring Seema to Your Team"}),o.jsx("p",{className:"text-muted-foreground text-base leading-relaxed mb-10",children:"Employee AI workshops from $15,000. Company-wide rollouts, department upskilling, and all-hands AI learning days scoped to your business."}),o.jsxs(ae,{to:"/contact",className:"bg-primary text-primary-foreground px-10 py-4 text-xs font-bold tracking-widest uppercase rounded-full hover:opacity-90 transition-opacity inline-flex items-center gap-2",children:["Request Employee AI Training ",o.jsx(re,{size:14})]})]})})]}),z0=[{value:"podcast",label:"AI CEO Podcast"},{value:"ai-businesscon",label:"AI BusinessCon"},{value:"newsletter",label:"Newsletter"},{value:"workshops",label:"Executive Workshops"},{value:"ai-ceo-school",label:"AI CEO School"},{value:"other",label:"Other / Custom Partnership"}],xh=[{value:"under-10k",label:"Under $10,000"},{value:"10k-25k",label:"$10,000â$25,000"},{value:"25k-50k",label:"$25,000â$50,000"},{value:"50k-plus",label:"$50,000+"},{value:"not-sure",label:"Not sure yet"}],m6=[{label:"Presenting Partner",desc:"Top-billed placement across the podcast, AI BusinessCon, and executive programming."},{label:"Episode & Segment",desc:"Pre-roll, mid-roll, and custom branded segments inside The AI CEO Podcast."},{label:"Event & Workshop",desc:"Stage, session, and executive-dinner sponsorships at AI BusinessCon and private programs."}],g6=()=>{var b;const{toast:e}=Vo(),[t,n]=w.useState({name:"",email:"",company:"",title:"",phone:"",website:"",message:"",budgetRange:""}),[r,s]=w.useState([]),[i,a]=w.useState(!1),[l,c]=w.useState(!1),[u,d]=w.useState(!1),h=g=>{n({...t,[g.target.name]:g.target.value})},f=g=>{s(m=>m.includes(g)?m.filter(v=>v!==g):[...m,g])},p=r.map(g=>{var m;return(m=z0.find(v=>v.value===g))==null?void 0:m.label}).filter(Boolean).join(", "),x=async g=>{var m;g.preventDefault(),d(!0);try{const v=crypto.randomUUID(),{error:k}=await dn.from("sponsorship_inquiries").insert({id:v,name:t.name,email:t.email,company:t.company||null,title:t.title||null,phone:t.phone||null,website:t.website||null,sponsorship_interests:r.length>0?r:null,budget_range:t.budgetRange||null,message:t.message||null});if(k)throw k;await dn.functions.invoke("send-transactional-email",{body:{templateName:"inquiry-notification",recipientEmail:"[email protected]",idempotencyKey:`sponsorship-notify-${v}`,templateData:{name:t.name,email:t.email,organization:t.company,eventTypes:p,eventDate:"",speakingBudget:((m=xh.find(S=>S.value===t.budgetRange))==null?void 0:m.label)||"Not provided",message:`[SPONSORSHIP INQUIRY] ${t.title?t.title+" · ":""}${t.website||""} 325${t.phone||""} 326 327${t.message}`}}}),e({title:"Thank you!",description:"Your sponsorship inquiry has been received. Seema's team will follow up shortly."}),n({name:"",email:"",company:"",title:"",phone:"",website:"",message:"",budgetRange:""}),s([])}catch(v){console.error("Submission error:",v),e({title:"Something went wrong",description:"Please try again or email [email protected] directly.",variant:"destructive"})}finally{d(!1)}},y="w-full bg-background border border-border rounded-lg px-4 py-3.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary transition-colors";return o.jsxs("div",{children:[o.jsx(Tt,{title:"Sponsorship & Partnerships | Seema Alexander",description:"Sponsor The AI CEO Podcast, AI BusinessCon, and executive AI programs. Reach CEOs, founders, and senior executives navigating the AI era.",path:"/sponsorship"}),o.jsxs("section",{className:"section-padding relative overflow-hidden",children:[o.jsx("div",{className:"absolute top-1/3 left-0 right-0 pointer-events-none select-none overflow-hidden",children:o.jsx("p",{className:"font-heading text-[15vw] font-bold uppercase leading-none tracking-tighter whitespace-nowrap opacity-[0.03]",children:"SPONSOR"})}),o.jsx("div",{className:"container mx-auto px-6 max-w-4xl relative z-10",children:o.jsxs("div",{className:"grid lg:grid-cols-2 gap-16",children:[o.jsxs(C,{children:[o.jsx("p",{className:"text-primary text-xs font-bold tracking-[0.4em] uppercase mb-6",children:"Partner With Us"}),o.jsxs("h1",{className:"font-heading text-4xl md:text-5xl uppercase tracking-tight leading-[0.95] mb-8",children:["Put Your Brand",o.jsx("br",{}),"In Front Of",o.jsx("br",{}),o.jsx("span",{className:"text-primary",children:"The AI CEO"})," Audience."]}),o.jsx("p",{className:"text-foreground text-sm leading-relaxed mb-10",children:"Seema's platform reaches CEOs, founders, and senior executives actively making decisions about AI â through the podcast, AI BusinessCon, executive workshops, and AI CEO School."}),o.jsx("div",{className:"space-y-4",children:m6.map((g,m)=>o.jsxs("div",{className:"p-5 rounded-lg border border-border bg-card",children:[o.jsxs("span",{className:"text-primary text-xs font-bold tracking-widest block mb-2",children:["0",m+1]}),o.jsx("h2",{className:"font-heading text-sm uppercase tracking-tight mb-1",children:g.label}
327),o.jsx("p",{className:"text-xs text-foreground/70 leading-relaxed",children:g.desc})]},m))}),o.jsxs("div",{className:"mt-10 pt-8 border-t border-border",children:[o.jsx("p",{className:"text-xs text-primary font-bold tracking-[0.3em] uppercase mb-4",children:"What Partners Get"}),o.jsx("ul",{className:"space-y-2 text-sm text-foreground",children:["Access to a senior, decision-making executive audience","Custom activations built around your category","Cross-promotion across podcast, newsletter, social, and events","Performance recap after every campaign"].map((g,m)=>o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx("span",{className:"w-1 h-1 rounded-full bg-primary mt-2 shrink-0"}),g]},m))})]})]}),o.jsx(C,{delay:.15,children:o.jsxs("form",{onSubmit:x,className:"space-y-4 bg-card p-8 rounded-lg border border-border",children:[o.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[o.jsx("input",{type:"text",name:"name",placeholder:"Full Name *",required:!0,value:t.name,onChange:h,className:y}),o.jsx("input",{type:"email",name:"email",placeholder:"Work Email *",required:!0,value:t.email,onChange:h,className:y})]}),o.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[o.jsx("input",{type:"text",name:"company",placeholder:"Company",value:t.company,onChange:h,className:y}),o.jsx("input",{type:"text",name:"title",placeholder:"Title",value:t.title,onChange:h,className:y})]}),o.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[o.jsx("input",{type:"text",name:"website",placeholder:"Website",value:t.website,onChange:h,className:y}),o.jsx("input",{type:"tel",name:"phone",placeholder:"Phone",value:t.phone,onChange:h,className:y})]}),o.jsxs("div",{className:"relative",children:[o.jsxs("button",{type:"button","aria-label":"Select sponsorship interest",onClick:()=>a(!i),className:y+" text-left flex items-center justify-between gap-2",children:[o.jsx("span",{className:p?"text-foreground truncate":"text-muted-foreground",children:p||"Sponsorship Interest"}),o.jsx("svg",{className:`w-4 h-4 text-muted-foreground shrink-0 transition-transform ${i?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),i&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>a(!1)}),o.jsx("div",{className:"absolute top-full left-0 right-0 mt-1 bg-card border border-border rounded-lg py-1 z-20 shadow-lg",children:z0.map(g=>o.jsxs("button",{type:"button",onClick:()=>f(g.value),className:"w-full text-left flex items-center gap-3 px-4 py-2.5 text-sm hover:bg-muted/30 transition-colors",children:[o.jsx("span",{className:`w-4 h-4 rounded border flex items-center justify-center shrink-0 transition-colors ${r.includes(g.value)?"bg-primary border-primary":"border-border"}`,children:r.includes(g.value)&&o.jsx("svg",{className:"w-3 h-3 text-primary-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})})}),o.jsx("span",{className:"text-foreground",children:g.label})]},g.value))})]})]}),o.jsxs("div",{className:"relative",children:[o.jsxs("button",{type:"button","aria-label":"Select sponsorship budget",onClick:()=>c(!l),className:y+" text-left flex items-center justify-between gap-2",children:[o.jsx("span",{className:t.budgetRange?"text-foreground truncate":"text-muted-foreground",children:((b=xh.find(g=>g.value===t.budgetRange))==null?void 0:b.label)||"Sponsorship Budget"}),o.jsx("svg",{className:`w-4 h-4 text-muted-foreground shrink-0 transition-transform ${l?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),l&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>c(!1)}),o.jsx("div",{className:"absolute top-full left-0 right-0 mt-1 bg-card border border-border rounded-lg py-1 z-20 shadow-lg",children:xh.map(g=>o.jsx("button",{type:"button",onClick:()=>{n(m=>({...m,budgetRange:g.value})),c(!1)},className:"w-full text-left px-4 py-2.5 text-sm text-foreground hover:bg-muted/30 transition-colors",children:g.label},g.value))})]})]}),o.jsx("textarea",{name:"message",placeholder:"Tell us about your goals and the audience you want to reach",rows:5,value:t.message,onChange:h,className:y+" resize-none"}),o.jsxs("button",{type:"submit",disabled:u,className:"w-full bg-primary text-primary-foreground px-8 py-3.5 text-xs font-bold tracking-widest uppercase rounded-full hover:opacity-90 transition-opacity inline-flex items-center justify-center gap-2 disabled:opacity-50",children:[u?"Sendingâ¦":"Submit Sponsorship Inquiry"," ",!u&&o.jsx(re,{size:14})]})]})})]})})]})]})},y6=()=>o.jsxs(T2,{children:[o.jsxs(ze,{element:o.jsx(L4,{}),children:[o.jsx(ze,{path:"/",element:o.jsx(d5,{})}),o.jsx(ze,{path:"/about",element:o.jsx(g5,{})}),o.jsx(ze,{path:"/speaking",element:o.jsx(Y5,{})}),o.jsx(ze,{path:"/contact",element:o.jsx(aB,{})}),o.jsx(ze,{path:"/podcast",element:o.jsx(hB,{})}),o.jsx(ze,{path:"/media-kit",element:o.jsx(AB,{})}),o.jsx(ze,{path:"/framework",element:o.jsx(TB,{})}),o.jsx(ze,{path:"/intelligent-operating-system",element:o.jsx(PB,{})}),o.jsx(ze,{path:"/course",element:o.jsx(YB,{})}),o.jsx(ze,{path:"/executive-ai-workshops",element:o.jsx(u6,{})}),o.jsx(ze,{path:"/employee-ai-workshops",element:o.jsx(p6,{})}),o.jsx(ze,{path:"/sponsorship",element:o.jsx(g6,{})}),o.jsx(ze,{path:"/unsubscribe",element:o.jsx(a6,{})})]}),o.jsx(ze,{path:"/diagnostic",element:o.jsx(e6,{})}),o.jsx(ze,{path:"*",element:o.jsx(i6,{})})]}),x6=({children:e,queryClient:t})=>o.jsx(DR,{client:t,children:o.jsxs(cR,{children:[o.jsx(W_,{}),o.jsx(kI,{}),e]})}),v6=new RR,b6=()=>o.jsx(x6,{queryClient:v6,children:o.jsx(D2,{children:o.jsx(y6,{})})});uk(document.getElementById("root")).render(o.jsx(yk,{children:o.jsx(b6,{})}));
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.